papermario/asm/nonmatchings/battle/area_sam/623BA0/func_80219524_6250C4.s
2020-12-28 14:34:30 +09:00

57 lines
3.0 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80219524_6250C4
/* 6250C4 80219524 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 6250C8 80219528 AFB00010 */ sw $s0, 0x10($sp)
/* 6250CC 8021952C 0080802D */ daddu $s0, $a0, $zero
/* 6250D0 80219530 AFBF0014 */ sw $ra, 0x14($sp)
/* 6250D4 80219534 8E02000C */ lw $v0, 0xc($s0)
/* 6250D8 80219538 0C0B1EAF */ jal get_variable
/* 6250DC 8021953C 8C450000 */ lw $a1, ($v0)
/* 6250E0 80219540 8E040148 */ lw $a0, 0x148($s0)
/* 6250E4 80219544 0C09A75B */ jal get_actor
/* 6250E8 80219548 0040802D */ daddu $s0, $v0, $zero
/* 6250EC 8021954C 0040182D */ daddu $v1, $v0, $zero
/* 6250F0 80219550 2610FFFF */ addiu $s0, $s0, -1
/* 6250F4 80219554 2E020009 */ sltiu $v0, $s0, 9
/* 6250F8 80219558 1040001E */ beqz $v0, .L802195D4
/* 6250FC 8021955C 0000202D */ daddu $a0, $zero, $zero
/* 625100 80219560 00101080 */ sll $v0, $s0, 2
/* 625104 80219564 3C018023 */ lui $at, %hi(D_80231320)
/* 625108 80219568 00220821 */ addu $at, $at, $v0
/* 62510C 8021956C 8C221320 */ lw $v0, %lo(D_80231320)($at)
/* 625110 80219570 00400008 */ jr $v0
/* 625114 80219574 00000000 */ nop
/* 625118 80219578 3C048022 */ lui $a0, %hi(D_8021E660)
/* 62511C 8021957C 08086575 */ j .L802195D4
/* 625120 80219580 2484E660 */ addiu $a0, $a0, %lo(D_8021E660)
/* 625124 80219584 3C048022 */ lui $a0, %hi(D_80220314)
/* 625128 80219588 08086575 */ j .L802195D4
/* 62512C 8021958C 24840314 */ addiu $a0, $a0, %lo(D_80220314)
/* 625130 80219590 3C048022 */ lui $a0, %hi(D_80221574)
/* 625134 80219594 08086575 */ j .L802195D4
/* 625138 80219598 24841574 */ addiu $a0, $a0, %lo(D_80221574)
/* 62513C 8021959C 3C048022 */ lui $a0, %hi(D_80222500)
/* 625140 802195A0 08086575 */ j .L802195D4
/* 625144 802195A4 24842500 */ addiu $a0, $a0, %lo(D_80222500)
/* 625148 802195A8 3C048022 */ lui $a0, %hi(D_802238D0)
/* 62514C 802195AC 08086575 */ j .L802195D4
/* 625150 802195B0 248438D0 */ addiu $a0, $a0, %lo(D_802238D0)
/* 625154 802195B4 3C048022 */ lui $a0, %hi(D_802247CC)
/* 625158 802195B8 08086575 */ j .L802195D4
/* 62515C 802195BC 248447CC */ addiu $a0, $a0, %lo(D_802247CC)
/* 625160 802195C0 3C048022 */ lui $a0, %hi(D_80226164)
/* 625164 802195C4 08086575 */ j .L802195D4
/* 625168 802195C8 24846164 */ addiu $a0, $a0, %lo(D_80226164)
/* 62516C 802195CC 3C048022 */ lui $a0, %hi(D_80227404)
/* 625170 802195D0 24847404 */ addiu $a0, $a0, %lo(D_80227404)
.L802195D4:
/* 625174 802195D4 806301F1 */ lb $v1, 0x1f1($v1)
/* 625178 802195D8 AC830008 */ sw $v1, 8($a0)
/* 62517C 802195DC 8FBF0014 */ lw $ra, 0x14($sp)
/* 625180 802195E0 8FB00010 */ lw $s0, 0x10($sp)
/* 625184 802195E4 24020002 */ addiu $v0, $zero, 2
/* 625188 802195E8 03E00008 */ jr $ra
/* 62518C 802195EC 27BD0018 */ addiu $sp, $sp, 0x18