Created
September 11, 2014 06:36
-
-
Save daniel229/9be33beee1958072c1d7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
z_un_089fa374: | |
addiu sp,sp,-0x20 | |
lw v0,0x28(sp) | |
lw v1,0x20(sp) | |
andi t4,v0,0xFF | |
sw s0,0x4(sp) | |
sw s1,0x8(sp) | |
sw s2,0xC(sp) | |
sw ra,0x10(sp) | |
beq t4,zero,pos_089FA478 | |
lw v0,0x24(sp) | |
srl a2,v0,0x3 | |
srl a3,v1,0x3 | |
addu a2,t2,a2 | |
move a1,t2 | |
slt t2,a1,a2 | |
beq t2,zero,pos_089FA51C | |
addu a3,t1,a3 | |
sll t9,a1,0x3 | |
pos_089FA3BC: | |
move t7,t1 | |
slt t2,t7,a3 | |
beq t2,zero,pos_089FA460 | |
addiu t8,t9,0x8 | |
sll t6,t7,0x5 | |
pos_089FA3D0: | |
move t5,t9 | |
slt t2,t5,t8 | |
beql t2,zero,pos_089FA454 | |
addiu t7,t7,0x1 | |
mult t9,t3 | |
mflo t2 | |
addu t4,t0,t2 | |
addu t4,t4,t6 | |
pos_089FA3F0: | |
move v1,t4 | |
move v0,a0 | |
li t2,0x0 | |
pos_089FA3FC: | |
lw ra,0x0(v1) | |
move s0,v0 | |
srl s1,ra,0x8 | |
srl s2,ra,0x5 | |
andi s1,s1,0xF800 | |
andi s2,s2,0x7E0 | |
srl ra,ra,0x3 | |
or s1,s1,s2 | |
andi ra,ra,0x1F | |
or ra,s1,ra | |
addiu t2,t2,0x1 | |
sh ra,0x0(s0) | |
addiu v0,v0,0x2 | |
sltiu ra,t2,0x8 | |
bne ra,zero,pos_089FA3FC | |
addiu v1,v1,0x4 | |
addiu t5,t5,0x1 | |
addiu a0,a0,0x10 | |
slt t2,t5,t8 | |
bne t2,zero,pos_089FA3F0 | |
addu t4,t4,t3 | |
addiu t7,t7,0x1 | |
pos_089FA454: | |
slt t2,t7,a3 | |
bne t2,zero,pos_089FA3D0 | |
addiu t6,t6,0x20 | |
pos_089FA460: | |
addiu a1,a1,0x1 | |
slt t2,a1,a2 | |
bne t2,zero,pos_089FA3BC | |
addiu t9,t9,0x8 | |
b pos_089FA51C | |
nop | |
pos_089FA478: | |
li t4,0x0 | |
sltu t5,t4,v0 | |
beq t5,zero,pos_089FA51C | |
nop | |
mult a2,a3 | |
sll a2,t1,0x2 | |
addu a1,a1,a1 | |
mflo t1 | |
nop | |
nop | |
mult t2,t3 | |
addu a0,a0,t1 | |
addu a1,a0,a1 | |
mflo a0 | |
addu a0,t0,a0 | |
addu a0,a0,a2 | |
pos_089FA4B8: | |
li a2,0x0 | |
move t1,a1 | |
sltu t2,a2,v1 | |
beq t2,zero,pos_089FA508 | |
move t0,a0 | |
pos_089FA4CC: | |
lw t2,0x0(t0) | |
addiu a2,a2,0x1 | |
srl t5,t2,0x8 | |
srl t6,t2,0x5 | |
andi t5,t5,0xF800 | |
andi t6,t6,0x7E0 | |
srl t2,t2,0x3 | |
or t5,t5,t6 | |
andi t2,t2,0x1F | |
or t2,t5,t2 | |
sh t2,0x0(t1) | |
addiu t1,t1,0x2 | |
sltu t2,a2,v1 | |
bne t2,zero,pos_089FA4CC | |
addiu t0,t0,0x4 | |
pos_089FA508: | |
addiu t4,t4,0x1 | |
addu a1,a1,a3 | |
sltu a2,t4,v0 | |
bne a2,zero,pos_089FA4B8 | |
addu a0,a0,t3 | |
pos_089FA51C: | |
jal zz_sceKernelDcacheWritebackAll | |
nop | |
lw s0,0x4(sp) | |
lw s1,0x8(sp) | |
lw s2,0xC(sp) | |
lw ra,0x10(sp) | |
jr ra | |
addiu sp,sp,0x20 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment