papermario/asm/nonmatchings/battle/area_pra/649B60/func_80218FF8_649E08.s
2021-01-14 17:06:56 +09:00

60 lines
2.9 KiB
ArmAsm
Generated

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80218FF8_649E08
/* 649E08 80218FF8 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 649E0C 80218FFC AFB10014 */ sw $s1, 0x14($sp)
/* 649E10 80219000 0080882D */ daddu $s1, $a0, $zero
/* 649E14 80219004 AFBF0018 */ sw $ra, 0x18($sp)
/* 649E18 80219008 AFB00010 */ sw $s0, 0x10($sp)
/* 649E1C 8021900C 8E30000C */ lw $s0, 0xc($s1)
/* 649E20 80219010 8E050000 */ lw $a1, ($s0)
/* 649E24 80219014 0C0B1EAF */ jal get_variable
/* 649E28 80219018 26100004 */ addiu $s0, $s0, 4
/* 649E2C 8021901C 0040202D */ daddu $a0, $v0, $zero
/* 649E30 80219020 2402FF81 */ addiu $v0, $zero, -0x7f
/* 649E34 80219024 14820002 */ bne $a0, $v0, .L80219030
/* 649E38 80219028 00000000 */ nop
/* 649E3C 8021902C 8E240148 */ lw $a0, 0x148($s1)
.L80219030:
/* 649E40 80219030 0C09A75B */ jal get_actor
/* 649E44 80219034 00000000 */ nop
/* 649E48 80219038 0040202D */ daddu $a0, $v0, $zero
/* 649E4C 8021903C 90830136 */ lbu $v1, 0x136($a0)
/* 649E50 80219040 24020047 */ addiu $v0, $zero, 0x47
/* 649E54 80219044 1062000B */ beq $v1, $v0, .L80219074
/* 649E58 80219048 0062102A */ slt $v0, $v1, $v0
/* 649E5C 8021904C 54400011 */ bnel $v0, $zero, .L80219094
/* 649E60 80219050 0220202D */ daddu $a0, $s1, $zero
/* 649E64 80219054 28620065 */ slti $v0, $v1, 0x65
/* 649E68 80219058 1040000D */ beqz $v0, .L80219090
/* 649E6C 8021905C 2862004D */ slti $v0, $v1, 0x4d
/* 649E70 80219060 1440000C */ bnez $v0, .L80219094
/* 649E74 80219064 0220202D */ daddu $a0, $s1, $zero
/* 649E78 80219068 8E050000 */ lw $a1, ($s0)
/* 649E7C 8021906C 08086427 */ j .L8021909C
/* 649E80 80219070 2406FFFF */ addiu $a2, $zero, -1
.L80219074:
/* 649E84 80219074 8C8300A8 */ lw $v1, 0xa8($a0)
/* 649E88 80219078 24020001 */ addiu $v0, $zero, 1
/* 649E8C 8021907C 14620005 */ bne $v1, $v0, .L80219094
/* 649E90 80219080 0220202D */ daddu $a0, $s1, $zero
/* 649E94 80219084 8E050000 */ lw $a1, ($s0)
/* 649E98 80219088 08086427 */ j .L8021909C
/* 649E9C 8021908C 2406FFFF */ addiu $a2, $zero, -1
.L80219090:
/* 649EA0 80219090 0220202D */ daddu $a0, $s1, $zero
.L80219094:
/* 649EA4 80219094 8E050000 */ lw $a1, ($s0)
/* 649EA8 80219098 0000302D */ daddu $a2, $zero, $zero
.L8021909C:
/* 649EAC 8021909C 0C0B2026 */ jal set_variable
/* 649EB0 802190A0 00000000 */ nop
/* 649EB4 802190A4 8FBF0018 */ lw $ra, 0x18($sp)
/* 649EB8 802190A8 8FB10014 */ lw $s1, 0x14($sp)
/* 649EBC 802190AC 8FB00010 */ lw $s0, 0x10($sp)
/* 649EC0 802190B0 24020002 */ addiu $v0, $zero, 2
/* 649EC4 802190B4 03E00008 */ jr $ra
/* 649EC8 802190B8 27BD0020 */ addiu $sp, $sp, 0x20
/* 649ECC 802190BC 00000000 */ nop