papermario/ver/jp/asm/nonmatchings/main_23330/func_8004909C.s

61 lines
3.0 KiB
ArmAsm
Raw Normal View History

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_8004909C
/* 2449C 8004909C 27BDFFC8 */ addiu $sp, $sp, -0x38
/* 244A0 800490A0 F7B60030 */ sdc1 $f22, 0x30($sp)
/* 244A4 800490A4 4486B000 */ mtc1 $a2, $f22
/* 244A8 800490A8 AFB00018 */ sw $s0, 0x18($sp)
/* 244AC 800490AC AFBF0024 */ sw $ra, 0x24($sp)
/* 244B0 800490B0 AFB20020 */ sw $s2, 0x20($sp)
/* 244B4 800490B4 AFB1001C */ sw $s1, 0x1c($sp)
/* 244B8 800490B8 F7B40028 */ sdc1 $f20, 0x28($sp)
/* 244BC 800490BC 84840008 */ lh $a0, 8($a0)
/* 244C0 800490C0 4487A000 */ mtc1 $a3, $f20
/* 244C4 800490C4 0C00E9EB */ jal func_8003A7AC
/* 244C8 800490C8 00A0802D */ daddu $s0, $a1, $zero
/* 244CC 800490CC 3C128011 */ lui $s2, %hi(D_8010F188)
/* 244D0 800490D0 2652F188 */ addiu $s2, $s2, %lo(D_8010F188)
/* 244D4 800490D4 0600001D */ bltz $s0, .L8004914C
/* 244D8 800490D8 0040882D */ daddu $s1, $v0, $zero
/* 244DC 800490DC 12000003 */ beqz $s0, .L800490EC
/* 244E0 800490E0 0000102D */ daddu $v0, $zero, $zero
/* 244E4 800490E4 0C00A66F */ jal func_800299BC
/* 244E8 800490E8 26040001 */ addiu $a0, $s0, 1
.L800490EC:
/* 244EC 800490EC 14400018 */ bnez $v0, .L80049150
/* 244F0 800490F0 0000102D */ daddu $v0, $zero, $zero
/* 244F4 800490F4 27A40010 */ addiu $a0, $sp, 0x10
/* 244F8 800490F8 C6220034 */ lwc1 $f2, 0x34($s1)
/* 244FC 800490FC 3C014387 */ lui $at, 0x4387
/* 24500 80049100 44810000 */ mtc1 $at, $f0
/* 24504 80049104 4406A000 */ mfc1 $a2, $f20
/* 24508 80049108 46020001 */ sub.s $f0, $f0, $f2
/* 2450C 8004910C C6260038 */ lwc1 $f6, 0x38($s1)
/* 24510 80049110 C6240040 */ lwc1 $f4, 0x40($s1)
/* 24514 80049114 44070000 */ mfc1 $a3, $f0
/* 24518 80049118 27A50014 */ addiu $a1, $sp, 0x14
/* 2451C 8004911C E7A60010 */ swc1 $f6, 0x10($sp)
/* 24520 80049120 0C00A7D7 */ jal func_80029F5C
/* 24524 80049124 E7A40014 */ swc1 $f4, 0x14($sp)
/* 24528 80049128 8E460028 */ lw $a2, 0x28($s2)
/* 2452C 8004912C 8E470030 */ lw $a3, 0x30($s2)
/* 24530 80049130 C7AC0010 */ lwc1 $f12, 0x10($sp)
/* 24534 80049134 0C00A7A5 */ jal func_80029E94
/* 24538 80049138 C7AE0014 */ lwc1 $f14, 0x14($sp)
/* 2453C 8004913C 4616003E */ c.le.s $f0, $f22
/* 24540 80049140 00000000 */ nop
/* 24544 80049144 45010002 */ bc1t .L80049150
/* 24548 80049148 24020001 */ addiu $v0, $zero, 1
.L8004914C:
/* 2454C 8004914C 0000102D */ daddu $v0, $zero, $zero
.L80049150:
/* 24550 80049150 8FBF0024 */ lw $ra, 0x24($sp)
/* 24554 80049154 8FB20020 */ lw $s2, 0x20($sp)
/* 24558 80049158 8FB1001C */ lw $s1, 0x1c($sp)
/* 2455C 8004915C 8FB00018 */ lw $s0, 0x18($sp)
/* 24560 80049160 D7B60030 */ ldc1 $f22, 0x30($sp)
/* 24564 80049164 D7B40028 */ ldc1 $f20, 0x28($sp)
/* 24568 80049168 03E00008 */ jr $ra
/* 2456C 8004916C 27BD0038 */ addiu $sp, $sp, 0x38