mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 17:02:46 +01:00
81 lines
3.4 KiB
ArmAsm
81 lines
3.4 KiB
ArmAsm
|
.set noat # allow manual use of $at
|
||
|
.set noreorder # don't insert nops after branches
|
||
|
|
||
|
|
||
|
glabel func_8024563C
|
||
|
/* 13897C 8024563C 0040182D */ daddu $v1, $v0, $zero
|
||
|
/* 138980 80245640 2A020010 */ slti $v0, $s0, 0x10
|
||
|
/* 138984 80245644 14400012 */ bnez $v0, .L80245690
|
||
|
/* 138988 80245648 00000000 */ nop
|
||
|
/* 13898C 8024564C 3C013FE0 */ lui $at, 0x3fe0
|
||
|
/* 138990 80245650 44811800 */ mtc1 $at, $f3
|
||
|
/* 138994 80245654 44801000 */ mtc1 $zero, $f2
|
||
|
/* 138998 80245658 44900000 */ mtc1 $s0, $f0
|
||
|
/* 13899C 8024565C 00000000 */ nop
|
||
|
/* 1389A0 80245660 46800021 */ cvt.d.w $f0, $f0
|
||
|
/* 1389A4 80245664 46220002 */ mul.d $f0, $f0, $f2
|
||
|
/* 1389A8 80245668 00000000 */ nop
|
||
|
/* 1389AC 8024566C 3C014200 */ lui $at, 0x4200
|
||
|
/* 1389B0 80245670 44812000 */ mtc1 $at, $f4
|
||
|
/* 1389B4 80245674 462000A0 */ cvt.s.d $f2, $f0
|
||
|
/* 1389B8 80245678 4602203C */ c.lt.s $f4, $f2
|
||
|
/* 1389BC 8024567C 00000000 */ nop
|
||
|
/* 1389C0 80245680 45030009 */ bc1tl .L802456A8
|
||
|
/* 1389C4 80245684 46002086 */ mov.s $f2, $f4
|
||
|
/* 1389C8 80245688 080915AA */ j .L802456A8
|
||
|
/* 1389CC 8024568C 00000000 */ nop
|
||
|
.L80245690:
|
||
|
/* 1389D0 80245690 3C028025 */ lui $v0, 0x8025
|
||
|
/* 1389D4 80245694 00501021 */ addu $v0, $v0, $s0
|
||
|
/* 1389D8 80245698 9042F300 */ lbu $v0, -0xd00($v0)
|
||
|
/* 1389DC 8024569C 44821000 */ mtc1 $v0, $f2
|
||
|
/* 1389E0 802456A0 00000000 */ nop
|
||
|
/* 1389E4 802456A4 468010A0 */ cvt.s.w $f2, $f2
|
||
|
.L802456A8:
|
||
|
/* 1389E8 802456A8 44830000 */ mtc1 $v1, $f0
|
||
|
/* 1389EC 802456AC 00000000 */ nop
|
||
|
/* 1389F0 802456B0 46800020 */ cvt.s.w $f0, $f0
|
||
|
/* 1389F4 802456B4 46001082 */ mul.s $f2, $f2, $f0
|
||
|
/* 1389F8 802456B8 00000000 */ nop
|
||
|
/* 1389FC 802456BC 3C028027 */ lui $v0, 0x8027
|
||
|
/* 138A00 802456C0 2442014C */ addiu $v0, $v0, 0x14c
|
||
|
/* 138A04 802456C4 C4400000 */ lwc1 $f0, ($v0)
|
||
|
/* 138A08 802456C8 46800020 */ cvt.s.w $f0, $f0
|
||
|
/* 138A0C 802456CC 46020000 */ add.s $f0, $f0, $f2
|
||
|
/* 138A10 802456D0 3C048027 */ lui $a0, 0x8027
|
||
|
/* 138A14 802456D4 8C840148 */ lw $a0, 0x148($a0)
|
||
|
/* 138A18 802456D8 4600018D */ trunc.w.s $f6, $f0
|
||
|
/* 138A1C 802456DC E4460000 */ swc1 $f6, ($v0)
|
||
|
/* 138A20 802456E0 14800004 */ bnez $a0, .L802456F4
|
||
|
/* 138A24 802456E4 24020005 */ addiu $v0, $zero, 5
|
||
|
/* 138A28 802456E8 82630001 */ lb $v1, 1($s3)
|
||
|
/* 138A2C 802456EC 10620011 */ beq $v1, $v0, .L80245734
|
||
|
/* 138A30 802456F0 00000000 */ nop
|
||
|
.L802456F4:
|
||
|
/* 138A34 802456F4 82630001 */ lb $v1, 1($s3)
|
||
|
/* 138A38 802456F8 0083102A */ slt $v0, $a0, $v1
|
||
|
/* 138A3C 802456FC 14400005 */ bnez $v0, .L80245714
|
||
|
/* 138A40 80245700 24020005 */ addiu $v0, $zero, 5
|
||
|
/* 138A44 80245704 1482000B */ bne $a0, $v0, .L80245734
|
||
|
/* 138A48 80245708 00000000 */ nop
|
||
|
/* 138A4C 8024570C 14600009 */ bnez $v1, .L80245734
|
||
|
/* 138A50 80245710 00000000 */ nop
|
||
|
.L80245714:
|
||
|
/* 138A54 80245714 3C148024 */ lui $s4, 0x8024
|
||
|
/* 138A58 80245718 26943238 */ addiu $s4, $s4, 0x3238
|
||
|
/* 138A5C 8024571C 3C128024 */ lui $s2, 0x8024
|
||
|
/* 138A60 80245720 265232E8 */ addiu $s2, $s2, 0x32e8
|
||
|
/* 138A64 80245724 080915D2 */ j func_80245748
|
||
|
/* 138A68 80245728 0000202D */ daddu $a0, $zero, $zero
|
||
|
|
||
|
.L8024572C:
|
||
|
/* 138A6C 8024572C 080915EE */ j func_802457B8
|
||
|
/* 138A70 80245730 24040001 */ addiu $a0, $zero, 1
|
||
|
|
||
|
.L80245734:
|
||
|
/* 138A74 80245734 3C148024 */ lui $s4, 0x8024
|
||
|
/* 138A78 80245738 26943188 */ addiu $s4, $s4, 0x3188
|
||
|
/* 138A7C 8024573C 3C128024 */ lui $s2, 0x8024
|
||
|
/* 138A80 80245740 26523388 */ addiu $s2, $s2, 0x3388
|
||
|
/* 138A84 80245744 0000202D */ daddu $a0, $zero, $zero
|