-
-
Save sum2012/9edf4e95eebb4c2d43e8 to your computer and use it in GitHub Desktop.
disassamble
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_08818cd0: | |
addiu sp,sp,-0x10 | |
move v1,a0 | |
addiu a0,a1,0x40 | |
addiu a1,a0,0x3F | |
lw a0,0xC(v1) | |
li a2,-0x40 | |
move t3,a0 | |
sw ra,0x0(sp) | |
beq zero,t3,pos_08818D4C | |
and t2,a1,a2 | |
lw a1,0x10(t3) | |
pos_08818CFC: | |
beq t2,a1,pos_08818D18 | |
nop | |
lw t3,0xC(t3) | |
bnel zero,t3,pos_08818CFC | |
lw a1,0x10(t3) | |
b pos_08818D50 | |
move t3,a0 | |
pos_08818D18: | |
jal z_un_08818900 | |
move a0,t3 | |
li a0,0x1 | |
addiu t4,t3,0x40 | |
sb a0,0x14(t3) | |
addiu a2,t2,-0x40 | |
move a0,v1 | |
jal z_un_08818a48 | |
move a1,t4 | |
move v0,t4 | |
lw ra,0x0(sp) | |
jr ra | |
addiu sp,sp,0x10 | |
pos_08818D4C: | |
move t3,a0 | |
pos_08818D50: | |
beq zero,t3,pos_08818D90 | |
li a3,0x0 | |
lw a0,0x10(t3) | |
pos_08818D5C: | |
sltu a0,a0,t2 | |
bnel zero,a0,pos_08818D88 | |
lw t3,0xC(t3) | |
bne zero,a3,pos_08818D78 | |
sltu a0,a3,t3 | |
b pos_08818D84 | |
move a3,t3 | |
pos_08818D78: | |
beql zero,a0,pos_08818D88 | |
lw t3,0xC(t3) | |
move a3,t3 | |
pos_08818D84: | |
lw t3,0xC(t3) | |
pos_08818D88: | |
bnel zero,t3,pos_08818D5C | |
lw a0,0x10(t3) | |
pos_08818D90: | |
beq zero,a3,pos_08818E08 | |
nop | |
lw t3,0x10(a3) | |
beq t2,t3,pos_08818DD4 | |
li t0,0x1 | |
subu t3,t3,t2 | |
sw t3,0x10(a3) | |
addu t3,a3,t3 | |
sw a3,0x0(t3) | |
lw a0,0x4(a3) | |
sw a0,0x4(t3) | |
sw t3,0x4(a3) | |
lw a3,0x4(t3) | |
bnel zero,a3,pos_08818DF0 | |
sw t3,0x0(a3) | |
b pos_08818DF4 | |
sw t2,0x10(t3) | |
pos_08818DD4: | |
jal z_un_08818900 | |
move a0,a3 | |
sb t0,0x14(a3) | |
addiu v0,a3,0x40 | |
lw ra,0x0(sp) | |
jr ra | |
addiu sp,sp,0x10 | |
pos_08818DF0: | |
sw t2,0x10(t3) | |
pos_08818DF4: | |
sb t0,0x14(t3) | |
addiu v0,t3,0x40 | |
lw ra,0x0(sp) | |
jr ra | |
addiu sp,sp,0x10 | |
pos_08818E08: | |
li v0,0 | |
lw ra,0x0(sp) | |
jr ra | |
addiu sp,sp,0x10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment