papermario/asm/nonmatchings/battle/area_kpa/684A30/func_802180D0_684B00.s
2020-12-28 14:34:30 +09:00

56 lines
2.9 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802180D0_684B00
/* 684B00 802180D0 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 684B04 802180D4 AFB10014 */ sw $s1, 0x14($sp)
/* 684B08 802180D8 0080882D */ daddu $s1, $a0, $zero
/* 684B0C 802180DC AFBF0020 */ sw $ra, 0x20($sp)
/* 684B10 802180E0 AFB3001C */ sw $s3, 0x1c($sp)
/* 684B14 802180E4 AFB20018 */ sw $s2, 0x18($sp)
/* 684B18 802180E8 AFB00010 */ sw $s0, 0x10($sp)
/* 684B1C 802180EC 8E30000C */ lw $s0, 0xc($s1)
/* 684B20 802180F0 8E050000 */ lw $a1, ($s0)
/* 684B24 802180F4 0C0B1EAF */ jal get_variable
/* 684B28 802180F8 26100004 */ addiu $s0, $s0, 4
/* 684B2C 802180FC 8E050000 */ lw $a1, ($s0)
/* 684B30 80218100 26100004 */ addiu $s0, $s0, 4
/* 684B34 80218104 0220202D */ daddu $a0, $s1, $zero
/* 684B38 80218108 0C0B1EAF */ jal get_variable
/* 684B3C 8021810C 0040982D */ daddu $s3, $v0, $zero
/* 684B40 80218110 8E050000 */ lw $a1, ($s0)
/* 684B44 80218114 26100004 */ addiu $s0, $s0, 4
/* 684B48 80218118 0220202D */ daddu $a0, $s1, $zero
/* 684B4C 8021811C 0C0B1EAF */ jal get_variable
/* 684B50 80218120 0040902D */ daddu $s2, $v0, $zero
/* 684B54 80218124 0220202D */ daddu $a0, $s1, $zero
/* 684B58 80218128 8E050000 */ lw $a1, ($s0)
/* 684B5C 8021812C 0C0B1EAF */ jal get_variable
/* 684B60 80218130 0040802D */ daddu $s0, $v0, $zero
/* 684B64 80218134 8E240148 */ lw $a0, 0x148($s1)
/* 684B68 80218138 0C09A75B */ jal get_actor
/* 684B6C 8021813C 0040882D */ daddu $s1, $v0, $zero
/* 684B70 80218140 0040182D */ daddu $v1, $v0, $zero
/* 684B74 80218144 8C620008 */ lw $v0, 8($v1)
/* 684B78 80218148 90420024 */ lbu $v0, 0x24($v0)
/* 684B7C 8021814C 8C640008 */ lw $a0, 8($v1)
/* 684B80 80218150 02629823 */ subu $s3, $s3, $v0
/* 684B84 80218154 A0730194 */ sb $s3, 0x194($v1)
/* 684B88 80218158 90820025 */ lbu $v0, 0x25($a0)
/* 684B8C 8021815C 02429023 */ subu $s2, $s2, $v0
/* 684B90 80218160 A0720195 */ sb $s2, 0x195($v1)
/* 684B94 80218164 90820026 */ lbu $v0, 0x26($a0)
/* 684B98 80218168 02028023 */ subu $s0, $s0, $v0
/* 684B9C 8021816C A0700196 */ sb $s0, 0x196($v1)
/* 684BA0 80218170 90840027 */ lbu $a0, 0x27($a0)
/* 684BA4 80218174 02248823 */ subu $s1, $s1, $a0
/* 684BA8 80218178 A0710197 */ sb $s1, 0x197($v1)
/* 684BAC 8021817C 8FBF0020 */ lw $ra, 0x20($sp)
/* 684BB0 80218180 8FB3001C */ lw $s3, 0x1c($sp)
/* 684BB4 80218184 8FB20018 */ lw $s2, 0x18($sp)
/* 684BB8 80218188 8FB10014 */ lw $s1, 0x14($sp)
/* 684BBC 8021818C 8FB00010 */ lw $s0, 0x10($sp)
/* 684BC0 80218190 24020002 */ addiu $v0, $zero, 2
/* 684BC4 80218194 03E00008 */ jr $ra
/* 684BC8 80218198 27BD0028 */ addiu $sp, $sp, 0x28