mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 08:52:40 +01:00
496 lines
24 KiB
ArmAsm
Generated
496 lines
24 KiB
ArmAsm
Generated
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
glabel func_802390B4_700E34
|
|
/* 700E34 802390B4 27BDFFD0 */ addiu $sp, $sp, -0x30
|
|
/* 700E38 802390B8 AFB1001C */ sw $s1, 0x1c($sp)
|
|
/* 700E3C 802390BC 3C11800E */ lui $s1, %hi(gBattleStatus+0xDC)
|
|
/* 700E40 802390C0 8E31C14C */ lw $s1, %lo(gBattleStatus+0xDC)($s1)
|
|
/* 700E44 802390C4 AFB20020 */ sw $s2, 0x20($sp)
|
|
/* 700E48 802390C8 0080902D */ daddu $s2, $a0, $zero
|
|
/* 700E4C 802390CC AFBF0024 */ sw $ra, 0x24($sp)
|
|
/* 700E50 802390D0 AFB00018 */ sw $s0, 0x18($sp)
|
|
/* 700E54 802390D4 F7B40028 */ sdc1 $f20, 0x28($sp)
|
|
/* 700E58 802390D8 10A00002 */ beqz $a1, .L802390E4
|
|
/* 700E5C 802390DC 2630000C */ addiu $s0, $s1, 0xc
|
|
/* 700E60 802390E0 AE400070 */ sw $zero, 0x70($s2)
|
|
.L802390E4:
|
|
/* 700E64 802390E4 8E430070 */ lw $v1, 0x70($s2)
|
|
/* 700E68 802390E8 10600005 */ beqz $v1, .L80239100
|
|
/* 700E6C 802390EC 24020001 */ addiu $v0, $zero, 1
|
|
/* 700E70 802390F0 10620028 */ beq $v1, $v0, .L80239194
|
|
/* 700E74 802390F4 24020002 */ addiu $v0, $zero, 2
|
|
/* 700E78 802390F8 0808E5C8 */ j .L80239720
|
|
/* 700E7C 802390FC 00000000 */ nop
|
|
.L80239100:
|
|
/* 700E80 80239100 C6200144 */ lwc1 $f0, 0x144($s1)
|
|
/* 700E84 80239104 C6220148 */ lwc1 $f2, 0x148($s1)
|
|
/* 700E88 80239108 C624014C */ lwc1 $f4, 0x14c($s1)
|
|
/* 700E8C 8023910C 2404000A */ addiu $a0, $zero, 0xa
|
|
/* 700E90 80239110 E620000C */ swc1 $f0, 0xc($s1)
|
|
/* 700E94 80239114 E6220010 */ swc1 $f2, 0x10($s1)
|
|
/* 700E98 80239118 0C00A67F */ jal rand_int
|
|
/* 700E9C 8023911C E6240014 */ swc1 $f4, 0x14($s1)
|
|
/* 700EA0 80239120 2403003C */ addiu $v1, $zero, 0x3c
|
|
/* 700EA4 80239124 00621823 */ subu $v1, $v1, $v0
|
|
/* 700EA8 80239128 44830000 */ mtc1 $v1, $f0
|
|
/* 700EAC 8023912C 00000000 */ nop
|
|
/* 700EB0 80239130 46800020 */ cvt.s.w $f0, $f0
|
|
/* 700EB4 80239134 E6200054 */ swc1 $f0, 0x54($s1)
|
|
/* 700EB8 80239138 3C014240 */ lui $at, 0x4240
|
|
/* 700EBC 8023913C 44810000 */ mtc1 $at, $f0
|
|
/* 700EC0 80239140 3C013F80 */ lui $at, 0x3f80
|
|
/* 700EC4 80239144 44811000 */ mtc1 $at, $f2
|
|
/* 700EC8 80239148 2402005A */ addiu $v0, $zero, 0x5a
|
|
/* 700ECC 8023914C AE20005C */ sw $zero, 0x5c($s1)
|
|
/* 700ED0 80239150 A6220070 */ sh $v0, 0x70($s1)
|
|
/* 700ED4 80239154 E620004C */ swc1 $f0, 0x4c($s1)
|
|
/* 700ED8 80239158 AE400074 */ sw $zero, 0x74($s2)
|
|
/* 700EDC 8023915C AE400078 */ sw $zero, 0x78($s2)
|
|
/* 700EE0 80239160 AE40007C */ sw $zero, 0x7c($s2)
|
|
/* 700EE4 80239164 E7A20010 */ swc1 $f2, 0x10($sp)
|
|
/* 700EE8 80239168 AFA00014 */ sw $zero, 0x14($sp)
|
|
/* 700EEC 8023916C 8E25000C */ lw $a1, 0xc($s1)
|
|
/* 700EF0 80239170 8E260010 */ lw $a2, 0x10($s1)
|
|
/* 700EF4 80239174 8E270014 */ lw $a3, 0x14($s1)
|
|
/* 700EF8 80239178 0C01C79C */ jal func_80071E70
|
|
/* 700EFC 8023917C 0000202D */ daddu $a0, $zero, $zero
|
|
/* 700F00 80239180 3C018024 */ lui $at, %hi(D_8023BD70)
|
|
/* 700F04 80239184 AC22BD70 */ sw $v0, %lo(D_8023BD70)($at)
|
|
/* 700F08 80239188 24020001 */ addiu $v0, $zero, 1
|
|
/* 700F0C 8023918C 0808E5C6 */ j .L80239718
|
|
/* 700F10 80239190 AE420070 */ sw $v0, 0x70($s2)
|
|
.L80239194:
|
|
/* 700F14 80239194 0200202D */ daddu $a0, $s0, $zero
|
|
/* 700F18 80239198 8E26004C */ lw $a2, 0x4c($s1)
|
|
/* 700F1C 8023919C 8E270054 */ lw $a3, 0x54($s1)
|
|
/* 700F20 802391A0 0C00A7E7 */ jal add_vec2D_polar
|
|
/* 700F24 802391A4 26250010 */ addiu $a1, $s1, 0x10
|
|
/* 700F28 802391A8 3C028024 */ lui $v0, %hi(D_8023BD70)
|
|
/* 700F2C 802391AC 8C42BD70 */ lw $v0, %lo(D_8023BD70)($v0)
|
|
/* 700F30 802391B0 C620000C */ lwc1 $f0, 0xc($s1)
|
|
/* 700F34 802391B4 8C43000C */ lw $v1, 0xc($v0)
|
|
/* 700F38 802391B8 E4600038 */ swc1 $f0, 0x38($v1)
|
|
/* 700F3C 802391BC 8C43000C */ lw $v1, 0xc($v0)
|
|
/* 700F40 802391C0 C6200010 */ lwc1 $f0, 0x10($s1)
|
|
/* 700F44 802391C4 E460003C */ swc1 $f0, 0x3c($v1)
|
|
/* 700F48 802391C8 8C42000C */ lw $v0, 0xc($v0)
|
|
/* 700F4C 802391CC C6200014 */ lwc1 $f0, 0x14($s1)
|
|
/* 700F50 802391D0 E4400040 */ swc1 $f0, 0x40($v0)
|
|
/* 700F54 802391D4 C622000C */ lwc1 $f2, 0xc($s1)
|
|
/* 700F58 802391D8 3C01C33E */ lui $at, 0xc33e
|
|
/* 700F5C 802391DC 44810000 */ mtc1 $at, $f0
|
|
/* 700F60 802391E0 00000000 */ nop
|
|
/* 700F64 802391E4 4600103C */ c.lt.s $f2, $f0
|
|
/* 700F68 802391E8 00000000 */ nop
|
|
/* 700F6C 802391EC 45000053 */ bc1f .L8023933C
|
|
/* 700F70 802391F0 00000000 */ nop
|
|
/* 700F74 802391F4 8E420074 */ lw $v0, 0x74($s2)
|
|
/* 700F78 802391F8 544000F1 */ bnel $v0, $zero, .L802395C0
|
|
/* 700F7C 802391FC 24020002 */ addiu $v0, $zero, 2
|
|
/* 700F80 80239200 C6220054 */ lwc1 $f2, 0x54($s1)
|
|
/* 700F84 80239204 3C014387 */ lui $at, 0x4387
|
|
/* 700F88 80239208 44810000 */ mtc1 $at, $f0
|
|
/* 700F8C 8023920C 00000000 */ nop
|
|
/* 700F90 80239210 4602003E */ c.le.s $f0, $f2
|
|
/* 700F94 80239214 00000000 */ nop
|
|
/* 700F98 80239218 45000019 */ bc1f .L80239280
|
|
/* 700F9C 8023921C 00000000 */ nop
|
|
/* 700FA0 80239220 3C0143B4 */ lui $at, 0x43b4
|
|
/* 700FA4 80239224 44810000 */ mtc1 $at, $f0
|
|
/* 700FA8 80239228 00000000 */ nop
|
|
/* 700FAC 8023922C 4600103C */ c.lt.s $f2, $f0
|
|
/* 700FB0 80239230 00000000 */ nop
|
|
/* 700FB4 80239234 45000012 */ bc1f .L80239280
|
|
/* 700FB8 80239238 00000000 */ nop
|
|
/* 700FBC 8023923C 3C014334 */ lui $at, 0x4334
|
|
/* 700FC0 80239240 44816000 */ mtc1 $at, $f12
|
|
/* 700FC4 80239244 0C00A6C9 */ jal clamp_angle
|
|
/* 700FC8 80239248 460C1300 */ add.s $f12, $f2, $f12
|
|
/* 700FCC 8023924C 3C0142B4 */ lui $at, 0x42b4
|
|
/* 700FD0 80239250 44811000 */ mtc1 $at, $f2
|
|
/* 700FD4 80239254 00000000 */ nop
|
|
/* 700FD8 80239258 46001001 */ sub.s $f0, $f2, $f0
|
|
/* 700FDC 8023925C 46020000 */ add.s $f0, $f0, $f2
|
|
/* 700FE0 80239260 24040004 */ addiu $a0, $zero, 4
|
|
/* 700FE4 80239264 0C00A67F */ jal rand_int
|
|
/* 700FE8 80239268 E6200054 */ swc1 $f0, 0x54($s1)
|
|
/* 700FEC 8023926C 2442FFFE */ addiu $v0, $v0, -2
|
|
/* 700FF0 80239270 44820000 */ mtc1 $v0, $f0
|
|
/* 700FF4 80239274 00000000 */ nop
|
|
/* 700FF8 80239278 46800020 */ cvt.s.w $f0, $f0
|
|
/* 700FFC 8023927C E620005C */ swc1 $f0, 0x5c($s1)
|
|
.L80239280:
|
|
/* 701000 80239280 C60C0048 */ lwc1 $f12, 0x48($s0)
|
|
/* 701004 80239284 3C014334 */ lui $at, 0x4334
|
|
/* 701008 80239288 44811000 */ mtc1 $at, $f2
|
|
/* 70100C 8023928C 00000000 */ nop
|
|
/* 701010 80239290 460C103E */ c.le.s $f2, $f12
|
|
/* 701014 80239294 00000000 */ nop
|
|
/* 701018 80239298 45000017 */ bc1f .L802392F8
|
|
/* 70101C 8023929C 00000000 */ nop
|
|
/* 701020 802392A0 3C014387 */ lui $at, 0x4387
|
|
/* 701024 802392A4 44810000 */ mtc1 $at, $f0
|
|
/* 701028 802392A8 00000000 */ nop
|
|
/* 70102C 802392AC 4600603C */ c.lt.s $f12, $f0
|
|
/* 701030 802392B0 00000000 */ nop
|
|
/* 701034 802392B4 45000010 */ bc1f .L802392F8
|
|
/* 701038 802392B8 00000000 */ nop
|
|
/* 70103C 802392BC 0C00A6C9 */ jal clamp_angle
|
|
/* 701040 802392C0 46026300 */ add.s $f12, $f12, $f2
|
|
/* 701044 802392C4 3C0142B4 */ lui $at, 0x42b4
|
|
/* 701048 802392C8 44811000 */ mtc1 $at, $f2
|
|
/* 70104C 802392CC 00000000 */ nop
|
|
/* 701050 802392D0 46020001 */ sub.s $f0, $f0, $f2
|
|
/* 701054 802392D4 46001081 */ sub.s $f2, $f2, $f0
|
|
/* 701058 802392D8 24040004 */ addiu $a0, $zero, 4
|
|
/* 70105C 802392DC 0C00A67F */ jal rand_int
|
|
/* 701060 802392E0 E6020048 */ swc1 $f2, 0x48($s0)
|
|
/* 701064 802392E4 2442FFFE */ addiu $v0, $v0, -2
|
|
/* 701068 802392E8 44820000 */ mtc1 $v0, $f0
|
|
/* 70106C 802392EC 00000000 */ nop
|
|
/* 701070 802392F0 46800020 */ cvt.s.w $f0, $f0
|
|
/* 701074 802392F4 E6000050 */ swc1 $f0, 0x50($s0)
|
|
.L802392F8:
|
|
/* 701078 802392F8 8E42007C */ lw $v0, 0x7c($s2)
|
|
/* 70107C 802392FC 10400004 */ beqz $v0, .L80239310
|
|
/* 701080 80239300 2404200A */ addiu $a0, $zero, 0x200a
|
|
/* 701084 80239304 C6000008 */ lwc1 $f0, 8($s0)
|
|
/* 701088 80239308 0808E4C7 */ j .L8023931C
|
|
/* 70108C 8023930C E7A00010 */ swc1 $f0, 0x10($sp)
|
|
.L80239310:
|
|
/* 701090 80239310 C6000008 */ lwc1 $f0, 8($s0)
|
|
/* 701094 80239314 2404200B */ addiu $a0, $zero, 0x200b
|
|
/* 701098 80239318 E7A00010 */ swc1 $f0, 0x10($sp)
|
|
.L8023931C:
|
|
/* 70109C 8023931C 8E060000 */ lw $a2, ($s0)
|
|
/* 7010A0 80239320 8E070004 */ lw $a3, 4($s0)
|
|
/* 7010A4 80239324 0C052757 */ jal play_sound_at_position
|
|
/* 7010A8 80239328 0000282D */ daddu $a1, $zero, $zero
|
|
/* 7010AC 8023932C 8E43007C */ lw $v1, 0x7c($s2)
|
|
/* 7010B0 80239330 24020001 */ addiu $v0, $zero, 1
|
|
/* 7010B4 80239334 00431023 */ subu $v0, $v0, $v1
|
|
/* 7010B8 80239338 AE42007C */ sw $v0, 0x7c($s2)
|
|
.L8023933C:
|
|
/* 7010BC 8023933C C6020000 */ lwc1 $f2, ($s0)
|
|
/* 7010C0 80239340 3C01433E */ lui $at, 0x433e
|
|
/* 7010C4 80239344 44810000 */ mtc1 $at, $f0
|
|
/* 7010C8 80239348 00000000 */ nop
|
|
/* 7010CC 8023934C 4602003C */ c.lt.s $f0, $f2
|
|
/* 7010D0 80239350 00000000 */ nop
|
|
/* 7010D4 80239354 45000046 */ bc1f .L80239470
|
|
/* 7010D8 80239358 00000000 */ nop
|
|
/* 7010DC 8023935C 8E420074 */ lw $v0, 0x74($s2)
|
|
/* 7010E0 80239360 1040000E */ beqz $v0, .L8023939C
|
|
/* 7010E4 80239364 24020002 */ addiu $v0, $zero, 2
|
|
/* 7010E8 80239368 0808E5C6 */ j .L80239718
|
|
/* 7010EC 8023936C AE420070 */ sw $v0, 0x70($s2)
|
|
.L80239370:
|
|
/* 7010F0 80239370 3C014334 */ lui $at, 0x4334
|
|
/* 7010F4 80239374 44816000 */ mtc1 $at, $f12
|
|
/* 7010F8 80239378 0C00A6C9 */ jal clamp_angle
|
|
/* 7010FC 8023937C 460C1300 */ add.s $f12, $f2, $f12
|
|
/* 701100 80239380 3C014387 */ lui $at, 0x4387
|
|
/* 701104 80239384 44811000 */ mtc1 $at, $f2
|
|
/* 701108 80239388 00000000 */ nop
|
|
/* 70110C 8023938C 46001001 */ sub.s $f0, $f2, $f0
|
|
/* 701110 80239390 46020000 */ add.s $f0, $f0, $f2
|
|
/* 701114 80239394 0808E50B */ j .L8023942C
|
|
/* 701118 80239398 E6000048 */ swc1 $f0, 0x48($s0)
|
|
.L8023939C:
|
|
/* 70111C 8023939C C6020048 */ lwc1 $f2, 0x48($s0)
|
|
/* 701120 802393A0 44800000 */ mtc1 $zero, $f0
|
|
/* 701124 802393A4 00000000 */ nop
|
|
/* 701128 802393A8 4602003E */ c.le.s $f0, $f2
|
|
/* 70112C 802393AC 00000000 */ nop
|
|
/* 701130 802393B0 45000008 */ bc1f .L802393D4
|
|
/* 701134 802393B4 00000000 */ nop
|
|
/* 701138 802393B8 3C0142B4 */ lui $at, 0x42b4
|
|
/* 70113C 802393BC 44810000 */ mtc1 $at, $f0
|
|
/* 701140 802393C0 00000000 */ nop
|
|
/* 701144 802393C4 4600103C */ c.lt.s $f2, $f0
|
|
/* 701148 802393C8 00000000 */ nop
|
|
/* 70114C 802393CC 4501FFE8 */ bc1t .L80239370
|
|
/* 701150 802393D0 00000000 */ nop
|
|
.L802393D4:
|
|
/* 701154 802393D4 3C0142B4 */ lui $at, 0x42b4
|
|
/* 701158 802393D8 44810000 */ mtc1 $at, $f0
|
|
/* 70115C 802393DC 00000000 */ nop
|
|
/* 701160 802393E0 4602003E */ c.le.s $f0, $f2
|
|
/* 701164 802393E4 00000000 */ nop
|
|
/* 701168 802393E8 45000010 */ bc1f .L8023942C
|
|
/* 70116C 802393EC 00000000 */ nop
|
|
/* 701170 802393F0 3C014334 */ lui $at, 0x4334
|
|
/* 701174 802393F4 44810000 */ mtc1 $at, $f0
|
|
/* 701178 802393F8 00000000 */ nop
|
|
/* 70117C 802393FC 4600103C */ c.lt.s $f2, $f0
|
|
/* 701180 80239400 00000000 */ nop
|
|
/* 701184 80239404 45000009 */ bc1f .L8023942C
|
|
/* 701188 80239408 00000000 */ nop
|
|
/* 70118C 8023940C 0C00A6C9 */ jal clamp_angle
|
|
/* 701190 80239410 46001300 */ add.s $f12, $f2, $f0
|
|
/* 701194 80239414 3C014387 */ lui $at, 0x4387
|
|
/* 701198 80239418 44811000 */ mtc1 $at, $f2
|
|
/* 70119C 8023941C 00000000 */ nop
|
|
/* 7011A0 80239420 46020001 */ sub.s $f0, $f0, $f2
|
|
/* 7011A4 80239424 46001081 */ sub.s $f2, $f2, $f0
|
|
/* 7011A8 80239428 E6020048 */ swc1 $f2, 0x48($s0)
|
|
.L8023942C:
|
|
/* 7011AC 8023942C 8E42007C */ lw $v0, 0x7c($s2)
|
|
/* 7011B0 80239430 10400004 */ beqz $v0, .L80239444
|
|
/* 7011B4 80239434 2404200A */ addiu $a0, $zero, 0x200a
|
|
/* 7011B8 80239438 C6000008 */ lwc1 $f0, 8($s0)
|
|
/* 7011BC 8023943C 0808E514 */ j .L80239450
|
|
/* 7011C0 80239440 E7A00010 */ swc1 $f0, 0x10($sp)
|
|
.L80239444:
|
|
/* 7011C4 80239444 C6000008 */ lwc1 $f0, 8($s0)
|
|
/* 7011C8 80239448 2404200B */ addiu $a0, $zero, 0x200b
|
|
/* 7011CC 8023944C E7A00010 */ swc1 $f0, 0x10($sp)
|
|
.L80239450:
|
|
/* 7011D0 80239450 8E060000 */ lw $a2, ($s0)
|
|
/* 7011D4 80239454 8E070004 */ lw $a3, 4($s0)
|
|
/* 7011D8 80239458 0C052757 */ jal play_sound_at_position
|
|
/* 7011DC 8023945C 0000282D */ daddu $a1, $zero, $zero
|
|
/* 7011E0 80239460 8E43007C */ lw $v1, 0x7c($s2)
|
|
/* 7011E4 80239464 24020001 */ addiu $v0, $zero, 1
|
|
/* 7011E8 80239468 00431023 */ subu $v0, $v0, $v1
|
|
/* 7011EC 8023946C AE42007C */ sw $v0, 0x7c($s2)
|
|
.L80239470:
|
|
/* 7011F0 80239470 C6020004 */ lwc1 $f2, 4($s0)
|
|
/* 7011F4 80239474 3C01C1F0 */ lui $at, 0xc1f0
|
|
/* 7011F8 80239478 44810000 */ mtc1 $at, $f0
|
|
/* 7011FC 8023947C 00000000 */ nop
|
|
/* 701200 80239480 4600103C */ c.lt.s $f2, $f0
|
|
/* 701204 80239484 00000000 */ nop
|
|
/* 701208 80239488 45000043 */ bc1f .L80239598
|
|
/* 70120C 8023948C 00000000 */ nop
|
|
/* 701210 80239490 8E420074 */ lw $v0, 0x74($s2)
|
|
/* 701214 80239494 1040000B */ beqz $v0, .L802394C4
|
|
/* 701218 80239498 24020002 */ addiu $v0, $zero, 2
|
|
/* 70121C 8023949C 0808E5C6 */ j .L80239718
|
|
/* 701220 802394A0 AE420070 */ sw $v0, 0x70($s2)
|
|
.L802394A4:
|
|
/* 701224 802394A4 3C014334 */ lui $at, 0x4334
|
|
/* 701228 802394A8 4481A000 */ mtc1 $at, $f20
|
|
/* 70122C 802394AC 0C00A6C9 */ jal clamp_angle
|
|
/* 701230 802394B0 46146300 */ add.s $f12, $f12, $f20
|
|
/* 701234 802394B4 4600A001 */ sub.s $f0, $f20, $f0
|
|
/* 701238 802394B8 46140000 */ add.s $f0, $f0, $f20
|
|
/* 70123C 802394BC 0808E554 */ j .L80239550
|
|
/* 701240 802394C0 E6000048 */ swc1 $f0, 0x48($s0)
|
|
.L802394C4:
|
|
/* 701244 802394C4 C60C0048 */ lwc1 $f12, 0x48($s0)
|
|
/* 701248 802394C8 3C014387 */ lui $at, 0x4387
|
|
/* 70124C 802394CC 44810000 */ mtc1 $at, $f0
|
|
/* 701250 802394D0 00000000 */ nop
|
|
/* 701254 802394D4 460C003E */ c.le.s $f0, $f12
|
|
/* 701258 802394D8 00000000 */ nop
|
|
/* 70125C 802394DC 45000008 */ bc1f .L80239500
|
|
/* 701260 802394E0 00000000 */ nop
|
|
/* 701264 802394E4 3C0143B4 */ lui $at, 0x43b4
|
|
/* 701268 802394E8 44810000 */ mtc1 $at, $f0
|
|
/* 70126C 802394EC 00000000 */ nop
|
|
/* 701270 802394F0 4600603C */ c.lt.s $f12, $f0
|
|
/* 701274 802394F4 00000000 */ nop
|
|
/* 701278 802394F8 4501FFEA */ bc1t .L802394A4
|
|
/* 70127C 802394FC 00000000 */ nop
|
|
.L80239500:
|
|
/* 701280 80239500 44800000 */ mtc1 $zero, $f0
|
|
/* 701284 80239504 00000000 */ nop
|
|
/* 701288 80239508 460C003E */ c.le.s $f0, $f12
|
|
/* 70128C 8023950C 00000000 */ nop
|
|
/* 701290 80239510 4500000F */ bc1f .L80239550
|
|
/* 701294 80239514 00000000 */ nop
|
|
/* 701298 80239518 3C0142B4 */ lui $at, 0x42b4
|
|
/* 70129C 8023951C 44810000 */ mtc1 $at, $f0
|
|
/* 7012A0 80239520 00000000 */ nop
|
|
/* 7012A4 80239524 4600603C */ c.lt.s $f12, $f0
|
|
/* 7012A8 80239528 00000000 */ nop
|
|
/* 7012AC 8023952C 45000008 */ bc1f .L80239550
|
|
/* 7012B0 80239530 00000000 */ nop
|
|
/* 7012B4 80239534 3C014334 */ lui $at, 0x4334
|
|
/* 7012B8 80239538 4481A000 */ mtc1 $at, $f20
|
|
/* 7012BC 8023953C 0C00A6C9 */ jal clamp_angle
|
|
/* 7012C0 80239540 46146300 */ add.s $f12, $f12, $f20
|
|
/* 7012C4 80239544 46140001 */ sub.s $f0, $f0, $f20
|
|
/* 7012C8 80239548 4600A501 */ sub.s $f20, $f20, $f0
|
|
/* 7012CC 8023954C E6140048 */ swc1 $f20, 0x48($s0)
|
|
.L80239550:
|
|
/* 7012D0 80239550 8E42007C */ lw $v0, 0x7c($s2)
|
|
/* 7012D4 80239554 10400004 */ beqz $v0, .L80239568
|
|
/* 7012D8 80239558 2404200A */ addiu $a0, $zero, 0x200a
|
|
/* 7012DC 8023955C C6000008 */ lwc1 $f0, 8($s0)
|
|
/* 7012E0 80239560 0808E55D */ j .L80239574
|
|
/* 7012E4 80239564 E7A00010 */ swc1 $f0, 0x10($sp)
|
|
.L80239568:
|
|
/* 7012E8 80239568 C6000008 */ lwc1 $f0, 8($s0)
|
|
/* 7012EC 8023956C 2404200B */ addiu $a0, $zero, 0x200b
|
|
/* 7012F0 80239570 E7A00010 */ swc1 $f0, 0x10($sp)
|
|
.L80239574:
|
|
/* 7012F4 80239574 8E060000 */ lw $a2, ($s0)
|
|
/* 7012F8 80239578 8E070004 */ lw $a3, 4($s0)
|
|
/* 7012FC 8023957C 0C052757 */ jal play_sound_at_position
|
|
/* 701300 80239580 0000282D */ daddu $a1, $zero, $zero
|
|
/* 701304 80239584 8E43007C */ lw $v1, 0x7c($s2)
|
|
/* 701308 80239588 24020001 */ addiu $v0, $zero, 1
|
|
/* 70130C 8023958C 00431023 */ subu $v0, $v0, $v1
|
|
/* 701310 80239590 AE42007C */ sw $v0, 0x7c($s2)
|
|
/* 701314 80239594 C6020004 */ lwc1 $f2, 4($s0)
|
|
.L80239598:
|
|
/* 701318 80239598 3C014320 */ lui $at, 0x4320
|
|
/* 70131C 8023959C 44810000 */ mtc1 $at, $f0
|
|
/* 701320 802395A0 00000000 */ nop
|
|
/* 701324 802395A4 4602003C */ c.lt.s $f0, $f2
|
|
/* 701328 802395A8 00000000 */ nop
|
|
/* 70132C 802395AC 45000045 */ bc1f .L802396C4
|
|
/* 701330 802395B0 00000000 */ nop
|
|
/* 701334 802395B4 8E420074 */ lw $v0, 0x74($s2)
|
|
/* 701338 802395B8 1040000C */ beqz $v0, .L802395EC
|
|
/* 70133C 802395BC 24020002 */ addiu $v0, $zero, 2
|
|
.L802395C0:
|
|
/* 701340 802395C0 0808E5C6 */ j .L80239718
|
|
/* 701344 802395C4 AE420070 */ sw $v0, 0x70($s2)
|
|
.L802395C8:
|
|
/* 701348 802395C8 0C00A6C9 */ jal clamp_angle
|
|
/* 70134C 802395CC 46006300 */ add.s $f12, $f12, $f0
|
|
/* 701350 802395D0 3C0143B4 */ lui $at, 0x43b4
|
|
/* 701354 802395D4 44811000 */ mtc1 $at, $f2
|
|
/* 701358 802395D8 00000000 */ nop
|
|
/* 70135C 802395DC 46001001 */ sub.s $f0, $f2, $f0
|
|
/* 701360 802395E0 46020000 */ add.s $f0, $f0, $f2
|
|
/* 701364 802395E4 0808E5A0 */ j .L80239680
|
|
/* 701368 802395E8 E6000048 */ swc1 $f0, 0x48($s0)
|
|
.L802395EC:
|
|
/* 70136C 802395EC C60C0048 */ lwc1 $f12, 0x48($s0)
|
|
/* 701370 802395F0 3C0142B4 */ lui $at, 0x42b4
|
|
/* 701374 802395F4 44810000 */ mtc1 $at, $f0
|
|
/* 701378 802395F8 00000000 */ nop
|
|
/* 70137C 802395FC 460C003E */ c.le.s $f0, $f12
|
|
/* 701380 80239600 00000000 */ nop
|
|
/* 701384 80239604 45000008 */ bc1f .L80239628
|
|
/* 701388 80239608 00000000 */ nop
|
|
/* 70138C 8023960C 3C014334 */ lui $at, 0x4334
|
|
/* 701390 80239610 44810000 */ mtc1 $at, $f0
|
|
/* 701394 80239614 00000000 */ nop
|
|
/* 701398 80239618 4600603C */ c.lt.s $f12, $f0
|
|
/* 70139C 8023961C 00000000 */ nop
|
|
/* 7013A0 80239620 4501FFE9 */ bc1t .L802395C8
|
|
/* 7013A4 80239624 00000000 */ nop
|
|
.L80239628:
|
|
/* 7013A8 80239628 3C014334 */ lui $at, 0x4334
|
|
/* 7013AC 8023962C 44811000 */ mtc1 $at, $f2
|
|
/* 7013B0 80239630 00000000 */ nop
|
|
/* 7013B4 80239634 460C103E */ c.le.s $f2, $f12
|
|
/* 7013B8 80239638 00000000 */ nop
|
|
/* 7013BC 8023963C 45000010 */ bc1f .L80239680
|
|
/* 7013C0 80239640 00000000 */ nop
|
|
/* 7013C4 80239644 3C014387 */ lui $at, 0x4387
|
|
/* 7013C8 80239648 44810000 */ mtc1 $at, $f0
|
|
/* 7013CC 8023964C 00000000 */ nop
|
|
/* 7013D0 80239650 4600603C */ c.lt.s $f12, $f0
|
|
/* 7013D4 80239654 00000000 */ nop
|
|
/* 7013D8 80239658 45000009 */ bc1f .L80239680
|
|
/* 7013DC 8023965C 00000000 */ nop
|
|
/* 7013E0 80239660 0C00A6C9 */ jal clamp_angle
|
|
/* 7013E4 80239664 46026300 */ add.s $f12, $f12, $f2
|
|
/* 7013E8 80239668 3C0143B4 */ lui $at, 0x43b4
|
|
/* 7013EC 8023966C 44811000 */ mtc1 $at, $f2
|
|
/* 7013F0 80239670 00000000 */ nop
|
|
/* 7013F4 80239674 46020001 */ sub.s $f0, $f0, $f2
|
|
/* 7013F8 80239678 46001081 */ sub.s $f2, $f2, $f0
|
|
/* 7013FC 8023967C E6020048 */ swc1 $f2, 0x48($s0)
|
|
.L80239680:
|
|
/* 701400 80239680 8E42007C */ lw $v0, 0x7c($s2)
|
|
/* 701404 80239684 10400004 */ beqz $v0, .L80239698
|
|
/* 701408 80239688 2404200A */ addiu $a0, $zero, 0x200a
|
|
/* 70140C 8023968C C6000008 */ lwc1 $f0, 8($s0)
|
|
/* 701410 80239690 0808E5A9 */ j .L802396A4
|
|
/* 701414 80239694 E7A00010 */ swc1 $f0, 0x10($sp)
|
|
.L80239698:
|
|
/* 701418 80239698 C6000008 */ lwc1 $f0, 8($s0)
|
|
/* 70141C 8023969C 2404200B */ addiu $a0, $zero, 0x200b
|
|
/* 701420 802396A0 E7A00010 */ swc1 $f0, 0x10($sp)
|
|
.L802396A4:
|
|
/* 701424 802396A4 8E060000 */ lw $a2, ($s0)
|
|
/* 701428 802396A8 8E070004 */ lw $a3, 4($s0)
|
|
/* 70142C 802396AC 0C052757 */ jal play_sound_at_position
|
|
/* 701430 802396B0 0000282D */ daddu $a1, $zero, $zero
|
|
/* 701434 802396B4 8E43007C */ lw $v1, 0x7c($s2)
|
|
/* 701438 802396B8 24020001 */ addiu $v0, $zero, 1
|
|
/* 70143C 802396BC 00431023 */ subu $v0, $v0, $v1
|
|
/* 701440 802396C0 AE42007C */ sw $v0, 0x7c($s2)
|
|
.L802396C4:
|
|
/* 701444 802396C4 C6000050 */ lwc1 $f0, 0x50($s0)
|
|
/* 701448 802396C8 3C013FE0 */ lui $at, 0x3fe0
|
|
/* 70144C 802396CC 44811800 */ mtc1 $at, $f3
|
|
/* 701450 802396D0 44801000 */ mtc1 $zero, $f2
|
|
/* 701454 802396D4 46000021 */ cvt.d.s $f0, $f0
|
|
/* 701458 802396D8 46220002 */ mul.d $f0, $f0, $f2
|
|
/* 70145C 802396DC 00000000 */ nop
|
|
/* 701460 802396E0 C60C0048 */ lwc1 $f12, 0x48($s0)
|
|
/* 701464 802396E4 46006321 */ cvt.d.s $f12, $f12
|
|
/* 701468 802396E8 46206300 */ add.d $f12, $f12, $f0
|
|
/* 70146C 802396EC 0C00A6C9 */ jal clamp_angle
|
|
/* 701470 802396F0 46206320 */ cvt.s.d $f12, $f12
|
|
/* 701474 802396F4 86020064 */ lh $v0, 0x64($s0)
|
|
/* 701478 802396F8 96030064 */ lhu $v1, 0x64($s0)
|
|
/* 70147C 802396FC 10400004 */ beqz $v0, .L80239710
|
|
/* 701480 80239700 E6000048 */ swc1 $f0, 0x48($s0)
|
|
/* 701484 80239704 2462FFFF */ addiu $v0, $v1, -1
|
|
/* 701488 80239708 0808E5C6 */ j .L80239718
|
|
/* 70148C 8023970C A6020064 */ sh $v0, 0x64($s0)
|
|
.L80239710:
|
|
/* 701490 80239710 24020001 */ addiu $v0, $zero, 1
|
|
/* 701494 80239714 AE420074 */ sw $v0, 0x74($s2)
|
|
.L80239718:
|
|
/* 701498 80239718 8E430070 */ lw $v1, 0x70($s2)
|
|
/* 70149C 8023971C 24020002 */ addiu $v0, $zero, 2
|
|
.L80239720:
|
|
/* 7014A0 80239720 10620005 */ beq $v1, $v0, .L80239738
|
|
/* 7014A4 80239724 24020003 */ addiu $v0, $zero, 3
|
|
/* 7014A8 80239728 1062000D */ beq $v1, $v0, .L80239760
|
|
/* 7014AC 8023972C 0200202D */ daddu $a0, $s0, $zero
|
|
/* 7014B0 80239730 0808E5E4 */ j .L80239790
|
|
/* 7014B4 80239734 00000000 */ nop
|
|
.L80239738:
|
|
/* 7014B8 80239738 3C038024 */ lui $v1, %hi(D_8023BD70)
|
|
/* 7014BC 8023973C 8C63BD70 */ lw $v1, %lo(D_8023BD70)($v1)
|
|
/* 7014C0 80239740 24020005 */ addiu $v0, $zero, 5
|
|
/* 7014C4 80239744 A6020064 */ sh $v0, 0x64($s0)
|
|
/* 7014C8 80239748 24020003 */ addiu $v0, $zero, 3
|
|
/* 7014CC 8023974C AE420070 */ sw $v0, 0x70($s2)
|
|
/* 7014D0 80239750 8C620000 */ lw $v0, ($v1)
|
|
/* 7014D4 80239754 34420010 */ ori $v0, $v0, 0x10
|
|
/* 7014D8 80239758 AC620000 */ sw $v0, ($v1)
|
|
/* 7014DC 8023975C 0200202D */ daddu $a0, $s0, $zero
|
|
.L80239760:
|
|
/* 7014E0 80239760 8E060040 */ lw $a2, 0x40($s0)
|
|
/* 7014E4 80239764 8E070048 */ lw $a3, 0x48($s0)
|
|
/* 7014E8 80239768 0C00A7E7 */ jal add_vec2D_polar
|
|
/* 7014EC 8023976C 26050004 */ addiu $a1, $s0, 4
|
|
/* 7014F0 80239770 86020064 */ lh $v0, 0x64($s0)
|
|
/* 7014F4 80239774 96030064 */ lhu $v1, 0x64($s0)
|
|
/* 7014F8 80239778 14400004 */ bnez $v0, .L8023978C
|
|
/* 7014FC 8023977C 2462FFFF */ addiu $v0, $v1, -1
|
|
/* 701500 80239780 AE200164 */ sw $zero, 0x164($s1)
|
|
/* 701504 80239784 0808E5EB */ j .L802397AC
|
|
/* 701508 80239788 24020002 */ addiu $v0, $zero, 2
|
|
.L8023978C:
|
|
/* 70150C 8023978C A6020064 */ sh $v0, 0x64($s0)
|
|
.L80239790:
|
|
/* 701510 80239790 C6000000 */ lwc1 $f0, ($s0)
|
|
/* 701514 80239794 E6200144 */ swc1 $f0, 0x144($s1)
|
|
/* 701518 80239798 C6000004 */ lwc1 $f0, 4($s0)
|
|
/* 70151C 8023979C E6200148 */ swc1 $f0, 0x148($s1)
|
|
/* 701520 802397A0 C6000008 */ lwc1 $f0, 8($s0)
|
|
/* 701524 802397A4 0000102D */ daddu $v0, $zero, $zero
|
|
/* 701528 802397A8 E620014C */ swc1 $f0, 0x14c($s1)
|
|
.L802397AC:
|
|
/* 70152C 802397AC 8FBF0024 */ lw $ra, 0x24($sp)
|
|
/* 701530 802397B0 8FB20020 */ lw $s2, 0x20($sp)
|
|
/* 701534 802397B4 8FB1001C */ lw $s1, 0x1c($sp)
|
|
/* 701538 802397B8 8FB00018 */ lw $s0, 0x18($sp)
|
|
/* 70153C 802397BC D7B40028 */ ldc1 $f20, 0x28($sp)
|
|
/* 701540 802397C0 03E00008 */ jr $ra
|
|
/* 701544 802397C4 27BD0030 */ addiu $sp, $sp, 0x30
|