mirror of
https://github.com/pmret/papermario.git
synced 2024-11-10 04:52:34 +01:00
336 lines
17 KiB
ArmAsm
336 lines
17 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
glabel func_802E4E04
|
|
/* 106684 802E4E04 27BDFFC8 */ addiu $sp, $sp, -0x38
|
|
/* 106688 802E4E08 AFB1001C */ sw $s1, 0x1c($sp)
|
|
/* 10668C 802E4E0C 0080882D */ daddu $s1, $a0, $zero
|
|
/* 106690 802E4E10 AFBF0024 */ sw $ra, 0x24($sp)
|
|
/* 106694 802E4E14 AFB20020 */ sw $s2, 0x20($sp)
|
|
/* 106698 802E4E18 AFB00018 */ sw $s0, 0x18($sp)
|
|
/* 10669C 802E4E1C F7B60030 */ sdc1 $f22, 0x30($sp)
|
|
/* 1066A0 802E4E20 F7B40028 */ sdc1 $f20, 0x28($sp)
|
|
/* 1066A4 802E4E24 8E300040 */ lw $s0, 0x40($s1)
|
|
/* 1066A8 802E4E28 92030001 */ lbu $v1, 1($s0)
|
|
/* 1066AC 802E4E2C 3C128011 */ lui $s2, %hi(gPlayerStatus)
|
|
/* 1066B0 802E4E30 2652EFC8 */ addiu $s2, $s2, %lo(gPlayerStatus)
|
|
/* 1066B4 802E4E34 2C620006 */ sltiu $v0, $v1, 6
|
|
/* 1066B8 802E4E38 1040012B */ beqz $v0, .L802E52E8
|
|
/* 1066BC 802E4E3C 00031080 */ sll $v0, $v1, 2
|
|
/* 1066C0 802E4E40 3C01802F */ lui $at, %hi(D_802EB278)
|
|
/* 1066C4 802E4E44 00220821 */ addu $at, $at, $v0
|
|
/* 1066C8 802E4E48 8C22B278 */ lw $v0, %lo(D_802EB278)($at)
|
|
/* 1066CC 802E4E4C 00400008 */ jr $v0
|
|
/* 1066D0 802E4E50 00000000 */ nop
|
|
/* 1066D4 802E4E54 3C014000 */ lui $at, 0x4000
|
|
/* 1066D8 802E4E58 44810000 */ mtc1 $at, $f0
|
|
/* 1066DC 802E4E5C 00000000 */ nop
|
|
/* 1066E0 802E4E60 E7A00010 */ swc1 $f0, 0x10($sp)
|
|
/* 1066E4 802E4E64 8E250048 */ lw $a1, 0x48($s1)
|
|
/* 1066E8 802E4E68 8E26004C */ lw $a2, 0x4c($s1)
|
|
/* 1066EC 802E4E6C 8E270050 */ lw $a3, 0x50($s1)
|
|
/* 1066F0 802E4E70 0C01BFBC */ jal func_8006FEF0
|
|
/* 1066F4 802E4E74 0000202D */ daddu $a0, $zero, $zero
|
|
/* 1066F8 802E4E78 92020001 */ lbu $v0, 1($s0)
|
|
/* 1066FC 802E4E7C 3C0140C0 */ lui $at, 0x40c0
|
|
/* 106700 802E4E80 44810000 */ mtc1 $at, $f0
|
|
/* 106704 802E4E84 AE000020 */ sw $zero, 0x20($s0)
|
|
/* 106708 802E4E88 24420001 */ addiu $v0, $v0, 1
|
|
/* 10670C 802E4E8C A2020001 */ sb $v0, 1($s0)
|
|
/* 106710 802E4E90 080B94BA */ j .L802E52E8
|
|
/* 106714 802E4E94 E6000014 */ swc1 $f0, 0x14($s0)
|
|
/* 106718 802E4E98 C620004C */ lwc1 $f0, 0x4c($s1)
|
|
/* 10671C 802E4E9C C6020014 */ lwc1 $f2, 0x14($s0)
|
|
/* 106720 802E4EA0 46020000 */ add.s $f0, $f0, $f2
|
|
/* 106724 802E4EA4 3C013F80 */ lui $at, 0x3f80
|
|
/* 106728 802E4EA8 44811000 */ mtc1 $at, $f2
|
|
/* 10672C 802E4EAC E620004C */ swc1 $f0, 0x4c($s1)
|
|
/* 106730 802E4EB0 C6000014 */ lwc1 $f0, 0x14($s0)
|
|
/* 106734 802E4EB4 46020001 */ sub.s $f0, $f0, $f2
|
|
/* 106738 802E4EB8 3C014000 */ lui $at, 0x4000
|
|
/* 10673C 802E4EBC 44811000 */ mtc1 $at, $f2
|
|
/* 106740 802E4EC0 00000000 */ nop
|
|
/* 106744 802E4EC4 4602003E */ c.le.s $f0, $f2
|
|
/* 106748 802E4EC8 00000000 */ nop
|
|
/* 10674C 802E4ECC 45000106 */ bc1f .L802E52E8
|
|
/* 106750 802E4ED0 E6000014 */ swc1 $f0, 0x14($s0)
|
|
/* 106754 802E4ED4 0220202D */ daddu $a0, $s1, $zero
|
|
/* 106758 802E4ED8 3C05802F */ lui $a1, %hi(D_802EA744)
|
|
/* 10675C 802E4EDC 24A5A744 */ addiu $a1, $a1, %lo(D_802EA744)
|
|
/* 106760 802E4EE0 92020001 */ lbu $v0, 1($s0)
|
|
/* 106764 802E4EE4 2403DFFF */ addiu $v1, $zero, -0x2001
|
|
/* 106768 802E4EE8 24420001 */ addiu $v0, $v0, 1
|
|
/* 10676C 802E4EEC A2020001 */ sb $v0, 1($s0)
|
|
/* 106770 802E4EF0 8E220000 */ lw $v0, ($s1)
|
|
/* 106774 802E4EF4 3C01C120 */ lui $at, 0xc120
|
|
/* 106778 802E4EF8 44810000 */ mtc1 $at, $f0
|
|
/* 10677C 802E4EFC 00431024 */ and $v0, $v0, $v1
|
|
/* 106780 802E4F00 AE220000 */ sw $v0, ($s1)
|
|
/* 106784 802E4F04 0C0442F3 */ jal func_80110BCC
|
|
/* 106788 802E4F08 E6000054 */ swc1 $f0, 0x54($s0)
|
|
/* 10678C 802E4F0C 3C02802E */ lui $v0, %hi(func_802E4AEC)
|
|
/* 106790 802E4F10 24424AEC */ addiu $v0, $v0, %lo(func_802E4AEC)
|
|
/* 106794 802E4F14 080B94BA */ j .L802E52E8
|
|
/* 106798 802E4F18 AE22003C */ sw $v0, 0x3c($s1)
|
|
/* 10679C 802E4F1C C60C0020 */ lwc1 $f12, 0x20($s0)
|
|
/* 1067A0 802E4F20 3C0140C9 */ lui $at, 0x40c9
|
|
/* 1067A4 802E4F24 34210FD0 */ ori $at, $at, 0xfd0
|
|
/* 1067A8 802E4F28 44810000 */ mtc1 $at, $f0
|
|
/* 1067AC 802E4F2C 00000000 */ nop
|
|
/* 1067B0 802E4F30 46006302 */ mul.s $f12, $f12, $f0
|
|
/* 1067B4 802E4F34 00000000 */ nop
|
|
/* 1067B8 802E4F38 3C0143B4 */ lui $at, 0x43b4
|
|
/* 1067BC 802E4F3C 4481A000 */ mtc1 $at, $f20
|
|
/* 1067C0 802E4F40 0C00A85B */ jal sin_rad
|
|
/* 1067C4 802E4F44 46146303 */ div.s $f12, $f12, $f20
|
|
/* 1067C8 802E4F48 3C013F00 */ lui $at, 0x3f00
|
|
/* 1067CC 802E4F4C 44811000 */ mtc1 $at, $f2
|
|
/* 1067D0 802E4F50 00000000 */ nop
|
|
/* 1067D4 802E4F54 46020002 */ mul.s $f0, $f0, $f2
|
|
/* 1067D8 802E4F58 00000000 */ nop
|
|
/* 1067DC 802E4F5C C622004C */ lwc1 $f2, 0x4c($s1)
|
|
/* 1067E0 802E4F60 46001080 */ add.s $f2, $f2, $f0
|
|
/* 1067E4 802E4F64 3C0141F0 */ lui $at, 0x41f0
|
|
/* 1067E8 802E4F68 44810000 */ mtc1 $at, $f0
|
|
/* 1067EC 802E4F6C E622004C */ swc1 $f2, 0x4c($s1)
|
|
/* 1067F0 802E4F70 C6020020 */ lwc1 $f2, 0x20($s0)
|
|
/* 1067F4 802E4F74 46001001 */ sub.s $f0, $f2, $f0
|
|
/* 1067F8 802E4F78 44802000 */ mtc1 $zero, $f4
|
|
/* 1067FC 802E4F7C 00000000 */ nop
|
|
/* 106800 802E4F80 4604003C */ c.lt.s $f0, $f4
|
|
/* 106804 802E4F84 00000000 */ nop
|
|
/* 106808 802E4F88 45000003 */ bc1f .L802E4F98
|
|
/* 10680C 802E4F8C E6000020 */ swc1 $f0, 0x20($s0)
|
|
/* 106810 802E4F90 46140000 */ add.s $f0, $f0, $f20
|
|
/* 106814 802E4F94 E6000020 */ swc1 $f0, 0x20($s0)
|
|
.L802E4F98:
|
|
/* 106818 802E4F98 C6200064 */ lwc1 $f0, 0x64($s1)
|
|
/* 10681C 802E4F9C C6020054 */ lwc1 $f2, 0x54($s0)
|
|
/* 106820 802E4FA0 46020000 */ add.s $f0, $f0, $f2
|
|
/* 106824 802E4FA4 3C014000 */ lui $at, 0x4000
|
|
/* 106828 802E4FA8 44811000 */ mtc1 $at, $f2
|
|
/* 10682C 802E4FAC E6200064 */ swc1 $f0, 0x64($s1)
|
|
/* 106830 802E4FB0 C6000054 */ lwc1 $f0, 0x54($s0)
|
|
/* 106834 802E4FB4 46020000 */ add.s $f0, $f0, $f2
|
|
/* 106838 802E4FB8 4600203E */ c.le.s $f4, $f0
|
|
/* 10683C 802E4FBC 00000000 */ nop
|
|
/* 106840 802E4FC0 450000AC */ bc1f .L802E5274
|
|
/* 106844 802E4FC4 E6000054 */ swc1 $f0, 0x54($s0)
|
|
/* 106848 802E4FC8 92020001 */ lbu $v0, 1($s0)
|
|
/* 10684C 802E4FCC E6040018 */ swc1 $f4, 0x18($s0)
|
|
/* 106850 802E4FD0 E604001C */ swc1 $f4, 0x1c($s0)
|
|
/* 106854 802E4FD4 24420001 */ addiu $v0, $v0, 1
|
|
/* 106858 802E4FD8 A2020001 */ sb $v0, 1($s0)
|
|
/* 10685C 802E4FDC 864200B0 */ lh $v0, 0xb0($s2)
|
|
/* 106860 802E4FE0 2404FFFF */ addiu $a0, $zero, -1
|
|
/* 106864 802E4FE4 A2000003 */ sb $zero, 3($s0)
|
|
/* 106868 802E4FE8 24420005 */ addiu $v0, $v0, 5
|
|
/* 10686C 802E4FEC 44820000 */ mtc1 $v0, $f0
|
|
/* 106870 802E4FF0 00000000 */ nop
|
|
/* 106874 802E4FF4 46800020 */ cvt.s.w $f0, $f0
|
|
/* 106878 802E4FF8 0C03A8B3 */ jal recover_hp
|
|
/* 10687C 802E4FFC E6000004 */ swc1 $f0, 4($s0)
|
|
/* 106880 802E5000 0C03A899 */ jal recover_fp
|
|
/* 106884 802E5004 2404FFFF */ addiu $a0, $zero, -1
|
|
/* 106888 802E5008 0C05272D */ jal play_sound
|
|
/* 10688C 802E500C 24040131 */ addiu $a0, $zero, 0x131
|
|
/* 106890 802E5010 080B949D */ j .L802E5274
|
|
/* 106894 802E5014 00000000 */ nop
|
|
/* 106898 802E5018 C600001C */ lwc1 $f0, 0x1c($s0)
|
|
/* 10689C 802E501C 3C014000 */ lui $at, 0x4000
|
|
/* 1068A0 802E5020 44811800 */ mtc1 $at, $f3
|
|
/* 1068A4 802E5024 44801000 */ mtc1 $zero, $f2
|
|
/* 1068A8 802E5028 46000021 */ cvt.d.s $f0, $f0
|
|
/* 1068AC 802E502C 46220000 */ add.d $f0, $f0, $f2
|
|
/* 1068B0 802E5030 3C014120 */ lui $at, 0x4120
|
|
/* 1068B4 802E5034 44811000 */ mtc1 $at, $f2
|
|
/* 1068B8 802E5038 46200020 */ cvt.s.d $f0, $f0
|
|
/* 1068BC 802E503C 4600103E */ c.le.s $f2, $f0
|
|
/* 1068C0 802E5040 00000000 */ nop
|
|
/* 1068C4 802E5044 45000002 */ bc1f .L802E5050
|
|
/* 1068C8 802E5048 E600001C */ swc1 $f0, 0x1c($s0)
|
|
/* 1068CC 802E504C E602001C */ swc1 $f2, 0x1c($s0)
|
|
.L802E5050:
|
|
/* 1068D0 802E5050 C6020018 */ lwc1 $f2, 0x18($s0)
|
|
/* 1068D4 802E5054 3C014190 */ lui $at, 0x4190
|
|
/* 1068D8 802E5058 44810000 */ mtc1 $at, $f0
|
|
/* 1068DC 802E505C 00000000 */ nop
|
|
/* 1068E0 802E5060 46001000 */ add.s $f0, $f2, $f0
|
|
/* 1068E4 802E5064 3C0143B4 */ lui $at, 0x43b4
|
|
/* 1068E8 802E5068 4481B000 */ mtc1 $at, $f22
|
|
/* 1068EC 802E506C 00000000 */ nop
|
|
/* 1068F0 802E5070 4600B03E */ c.le.s $f22, $f0
|
|
/* 1068F4 802E5074 00000000 */ nop
|
|
/* 1068F8 802E5078 45000003 */ bc1f .L802E5088
|
|
/* 1068FC 802E507C E6000018 */ swc1 $f0, 0x18($s0)
|
|
/* 106900 802E5080 46160001 */ sub.s $f0, $f0, $f22
|
|
/* 106904 802E5084 E6000018 */ swc1 $f0, 0x18($s0)
|
|
.L802E5088:
|
|
/* 106908 802E5088 C60C0018 */ lwc1 $f12, 0x18($s0)
|
|
/* 10690C 802E508C 3C0140C9 */ lui $at, 0x40c9
|
|
/* 106910 802E5090 34210FD0 */ ori $at, $at, 0xfd0
|
|
/* 106914 802E5094 4481A000 */ mtc1 $at, $f20
|
|
/* 106918 802E5098 00000000 */ nop
|
|
/* 10691C 802E509C 46146302 */ mul.s $f12, $f12, $f20
|
|
/* 106920 802E50A0 00000000 */ nop
|
|
/* 106924 802E50A4 0C00A85B */ jal sin_rad
|
|
/* 106928 802E50A8 46166303 */ div.s $f12, $f12, $f22
|
|
/* 10692C 802E50AC C60C0018 */ lwc1 $f12, 0x18($s0)
|
|
/* 106930 802E50B0 46146302 */ mul.s $f12, $f12, $f20
|
|
/* 106934 802E50B4 00000000 */ nop
|
|
/* 106938 802E50B8 C602001C */ lwc1 $f2, 0x1c($s0)
|
|
/* 10693C 802E50BC 46001502 */ mul.s $f20, $f2, $f0
|
|
/* 106940 802E50C0 00000000 */ nop
|
|
/* 106944 802E50C4 0C00A874 */ jal cos_rad
|
|
/* 106948 802E50C8 46166303 */ div.s $f12, $f12, $f22
|
|
/* 10694C 802E50CC C6060004 */ lwc1 $f6, 4($s0)
|
|
/* 106950 802E50D0 3C01802F */ lui $at, %hi(D_802EB290)
|
|
/* 106954 802E50D4 D424B290 */ ldc1 $f4, %lo(D_802EB290)($at)
|
|
/* 106958 802E50D8 92030003 */ lbu $v1, 3($s0)
|
|
/* 10695C 802E50DC 460030A1 */ cvt.d.s $f2, $f6
|
|
/* 106960 802E50E0 46241081 */ sub.d $f2, $f2, $f4
|
|
/* 106964 802E50E4 24620001 */ addiu $v0, $v1, 1
|
|
/* 106968 802E50E8 462010A0 */ cvt.s.d $f2, $f2
|
|
/* 10696C 802E50EC E6020004 */ swc1 $f2, 4($s0)
|
|
/* 106970 802E50F0 C602001C */ lwc1 $f2, 0x1c($s0)
|
|
/* 106974 802E50F4 30630001 */ andi $v1, $v1, 1
|
|
/* 106978 802E50F8 46001082 */ mul.s $f2, $f2, $f0
|
|
/* 10697C 802E50FC 00000000 */ nop
|
|
/* 106980 802E5100 1060000F */ beqz $v1, .L802E5140
|
|
/* 106984 802E5104 A2020003 */ sb $v0, 3($s0)
|
|
/* 106988 802E5108 C6400028 */ lwc1 $f0, 0x28($s2)
|
|
/* 10698C 802E510C 46140000 */ add.s $f0, $f0, $f20
|
|
/* 106990 802E5110 44050000 */ mfc1 $a1, $f0
|
|
/* 106994 802E5114 C640002C */ lwc1 $f0, 0x2c($s2)
|
|
/* 106998 802E5118 46060000 */ add.s $f0, $f0, $f6
|
|
/* 10699C 802E511C 44060000 */ mfc1 $a2, $f0
|
|
/* 1069A0 802E5120 C6400030 */ lwc1 $f0, 0x30($s2)
|
|
/* 1069A4 802E5124 46020001 */ sub.s $f0, $f0, $f2
|
|
/* 1069A8 802E5128 44070000 */ mfc1 $a3, $f0
|
|
/* 1069AC 802E512C 3C014100 */ lui $at, 0x4100
|
|
/* 1069B0 802E5130 44810000 */ mtc1 $at, $f0
|
|
/* 1069B4 802E5134 24040003 */ addiu $a0, $zero, 3
|
|
/* 1069B8 802E5138 0C01BFBC */ jal func_8006FEF0
|
|
/* 1069BC 802E513C E7A00010 */ swc1 $f0, 0x10($sp)
|
|
.L802E5140:
|
|
/* 1069C0 802E5140 C6000004 */ lwc1 $f0, 4($s0)
|
|
/* 1069C4 802E5144 3C0141A0 */ lui $at, 0x41a0
|
|
/* 1069C8 802E5148 44811000 */ mtc1 $at, $f2
|
|
/* 1069CC 802E514C 00000000 */ nop
|
|
/* 1069D0 802E5150 4602003C */ c.lt.s $f0, $f2
|
|
/* 1069D4 802E5154 00000000 */ nop
|
|
/* 1069D8 802E5158 45000005 */ bc1f .L802E5170
|
|
/* 1069DC 802E515C 00000000 */ nop
|
|
/* 1069E0 802E5160 92020001 */ lbu $v0, 1($s0)
|
|
/* 1069E4 802E5164 E6020004 */ swc1 $f2, 4($s0)
|
|
/* 1069E8 802E5168 24420001 */ addiu $v0, $v0, 1
|
|
/* 1069EC 802E516C A2020001 */ sb $v0, 1($s0)
|
|
.L802E5170:
|
|
/* 1069F0 802E5170 C60C0020 */ lwc1 $f12, 0x20($s0)
|
|
/* 1069F4 802E5174 3C0140C9 */ lui $at, 0x40c9
|
|
/* 1069F8 802E5178 34210FD0 */ ori $at, $at, 0xfd0
|
|
/* 1069FC 802E517C 44810000 */ mtc1 $at, $f0
|
|
/* 106A00 802E5180 00000000 */ nop
|
|
/* 106A04 802E5184 46006302 */ mul.s $f12, $f12, $f0
|
|
/* 106A08 802E5188 00000000 */ nop
|
|
/* 106A0C 802E518C 3C0143B4 */ lui $at, 0x43b4
|
|
/* 106A10 802E5190 4481A000 */ mtc1 $at, $f20
|
|
/* 106A14 802E5194 0C00A85B */ jal sin_rad
|
|
/* 106A18 802E5198 46146303 */ div.s $f12, $f12, $f20
|
|
/* 106A1C 802E519C 3C013F00 */ lui $at, 0x3f00
|
|
/* 106A20 802E51A0 44811000 */ mtc1 $at, $f2
|
|
/* 106A24 802E51A4 00000000 */ nop
|
|
/* 106A28 802E51A8 46020002 */ mul.s $f0, $f0, $f2
|
|
/* 106A2C 802E51AC 00000000 */ nop
|
|
/* 106A30 802E51B0 C622004C */ lwc1 $f2, 0x4c($s1)
|
|
/* 106A34 802E51B4 46001080 */ add.s $f2, $f2, $f0
|
|
/* 106A38 802E51B8 3C0141F0 */ lui $at, 0x41f0
|
|
/* 106A3C 802E51BC 44812000 */ mtc1 $at, $f4
|
|
/* 106A40 802E51C0 E622004C */ swc1 $f2, 0x4c($s1)
|
|
/* 106A44 802E51C4 C6000020 */ lwc1 $f0, 0x20($s0)
|
|
/* 106A48 802E51C8 46040081 */ sub.s $f2, $f0, $f4
|
|
/* 106A4C 802E51CC 44800000 */ mtc1 $zero, $f0
|
|
/* 106A50 802E51D0 00000000 */ nop
|
|
/* 106A54 802E51D4 4600103C */ c.lt.s $f2, $f0
|
|
/* 106A58 802E51D8 00000000 */ nop
|
|
/* 106A5C 802E51DC 45000003 */ bc1f .L802E51EC
|
|
/* 106A60 802E51E0 E6020020 */ swc1 $f2, 0x20($s0)
|
|
/* 106A64 802E51E4 46141000 */ add.s $f0, $f2, $f20
|
|
/* 106A68 802E51E8 E6000020 */ swc1 $f0, 0x20($s0)
|
|
.L802E51EC:
|
|
/* 106A6C 802E51EC C6000054 */ lwc1 $f0, 0x54($s0)
|
|
/* 106A70 802E51F0 3C013FF0 */ lui $at, 0x3ff0
|
|
/* 106A74 802E51F4 44811800 */ mtc1 $at, $f3
|
|
/* 106A78 802E51F8 44801000 */ mtc1 $zero, $f2
|
|
/* 106A7C 802E51FC 46000021 */ cvt.d.s $f0, $f0
|
|
/* 106A80 802E5200 46220000 */ add.d $f0, $f0, $f2
|
|
/* 106A84 802E5204 46200020 */ cvt.s.d $f0, $f0
|
|
/* 106A88 802E5208 4600203C */ c.lt.s $f4, $f0
|
|
/* 106A8C 802E520C 00000000 */ nop
|
|
/* 106A90 802E5210 45000002 */ bc1f .L802E521C
|
|
/* 106A94 802E5214 E6000054 */ swc1 $f0, 0x54($s0)
|
|
/* 106A98 802E5218 E6040054 */ swc1 $f4, 0x54($s0)
|
|
.L802E521C:
|
|
/* 106A9C 802E521C C6220064 */ lwc1 $f2, 0x64($s1)
|
|
/* 106AA0 802E5220 C6000054 */ lwc1 $f0, 0x54($s0)
|
|
/* 106AA4 802E5224 46001000 */ add.s $f0, $f2, $f0
|
|
/* 106AA8 802E5228 4600A03E */ c.le.s $f20, $f0
|
|
/* 106AAC 802E522C 00000000 */ nop
|
|
/* 106AB0 802E5230 45000003 */ bc1f .L802E5240
|
|
/* 106AB4 802E5234 E6200064 */ swc1 $f0, 0x64($s1)
|
|
/* 106AB8 802E5238 46140001 */ sub.s $f0, $f0, $f20
|
|
/* 106ABC 802E523C E6200064 */ swc1 $f0, 0x64($s1)
|
|
.L802E5240:
|
|
/* 106AC0 802E5240 9222000B */ lbu $v0, 0xb($s1)
|
|
/* 106AC4 802E5244 2442FFFB */ addiu $v0, $v0, -5
|
|
/* 106AC8 802E5248 A222000B */ sb $v0, 0xb($s1)
|
|
/* 106ACC 802E524C 304200FF */ andi $v0, $v0, 0xff
|
|
/* 106AD0 802E5250 2C420007 */ sltiu $v0, $v0, 7
|
|
/* 106AD4 802E5254 10400007 */ beqz $v0, .L802E5274
|
|
/* 106AD8 802E5258 24020005 */ addiu $v0, $zero, 5
|
|
/* 106ADC 802E525C A222000B */ sb $v0, 0xb($s1)
|
|
/* 106AE0 802E5260 92030001 */ lbu $v1, 1($s0)
|
|
/* 106AE4 802E5264 24020004 */ addiu $v0, $zero, 4
|
|
/* 106AE8 802E5268 14620002 */ bne $v1, $v0, .L802E5274
|
|
/* 106AEC 802E526C 24620001 */ addiu $v0, $v1, 1
|
|
/* 106AF0 802E5270 A2020001 */ sb $v0, 1($s0)
|
|
.L802E5274:
|
|
/* 106AF4 802E5274 96020024 */ lhu $v0, 0x24($s0)
|
|
/* 106AF8 802E5278 C6200064 */ lwc1 $f0, 0x64($s1)
|
|
/* 106AFC 802E527C 00021080 */ sll $v0, $v0, 2
|
|
/* 106B00 802E5280 02021021 */ addu $v0, $s0, $v0
|
|
/* 106B04 802E5284 E4400028 */ swc1 $f0, 0x28($v0)
|
|
/* 106B08 802E5288 96020024 */ lhu $v0, 0x24($s0)
|
|
/* 106B0C 802E528C 24420001 */ addiu $v0, $v0, 1
|
|
/* 106B10 802E5290 A6020024 */ sh $v0, 0x24($s0)
|
|
/* 106B14 802E5294 3042FFFF */ andi $v0, $v0, 0xffff
|
|
/* 106B18 802E5298 2C42000B */ sltiu $v0, $v0, 0xb
|
|
/* 106B1C 802E529C 50400012 */ beql $v0, $zero, .L802E52E8
|
|
/* 106B20 802E52A0 A6000024 */ sh $zero, 0x24($s0)
|
|
/* 106B24 802E52A4 080B94BA */ j .L802E52E8
|
|
/* 106B28 802E52A8 00000000 */ nop
|
|
/* 106B2C 802E52AC 8E420004 */ lw $v0, 4($s2)
|
|
/* 106B30 802E52B0 2403FDFF */ addiu $v1, $zero, -0x201
|
|
/* 106B34 802E52B4 00431024 */ and $v0, $v0, $v1
|
|
/* 106B38 802E52B8 0C038069 */ jal enable_player_input
|
|
/* 106B3C 802E52BC AE420004 */ sw $v0, 4($s2)
|
|
/* 106B40 802E52C0 0C009C22 */ jal func_80027088
|
|
/* 106B44 802E52C4 0000202D */ daddu $a0, $zero, $zero
|
|
/* 106B48 802E52C8 0220202D */ daddu $a0, $s1, $zero
|
|
/* 106B4C 802E52CC 3C05800A */ lui $a1, %hi(D_8009A650)
|
|
/* 106B50 802E52D0 24A5A650 */ addiu $a1, $a1, %lo(D_8009A650)
|
|
/* 106B54 802E52D4 8CA20000 */ lw $v0, ($a1)
|
|
/* 106B58 802E52D8 2403FFBF */ addiu $v1, $zero, -0x41
|
|
/* 106B5C 802E52DC 00431024 */ and $v0, $v0, $v1
|
|
/* 106B60 802E52E0 0C043F5A */ jal func_8010FD68
|
|
/* 106B64 802E52E4 ACA20000 */ sw $v0, ($a1)
|
|
.L802E52E8:
|
|
/* 106B68 802E52E8 8FBF0024 */ lw $ra, 0x24($sp)
|
|
/* 106B6C 802E52EC 8FB20020 */ lw $s2, 0x20($sp)
|
|
/* 106B70 802E52F0 8FB1001C */ lw $s1, 0x1c($sp)
|
|
/* 106B74 802E52F4 8FB00018 */ lw $s0, 0x18($sp)
|
|
/* 106B78 802E52F8 D7B60030 */ ldc1 $f22, 0x30($sp)
|
|
/* 106B7C 802E52FC D7B40028 */ ldc1 $f20, 0x28($sp)
|
|
/* 106B80 802E5300 03E00008 */ jr $ra
|
|
/* 106B84 802E5304 27BD0038 */ addiu $sp, $sp, 0x38
|