.set noat # allow manual use of $at .set noreorder # don't insert nops after branches glabel func_80239140_70CE50 /* 70CE50 80239140 27BDFF90 */ addiu $sp, $sp, -0x70 /* 70CE54 80239144 AFB20038 */ sw $s2, 0x38($sp) /* 70CE58 80239148 3C12800E */ lui $s2, %hi(gBattleStatus+0xDC) /* 70CE5C 8023914C 8E52C14C */ lw $s2, %lo(gBattleStatus+0xDC)($s2) /* 70CE60 80239150 AFB3003C */ sw $s3, 0x3c($sp) /* 70CE64 80239154 0080982D */ daddu $s3, $a0, $zero /* 70CE68 80239158 AFBF004C */ sw $ra, 0x4c($sp) /* 70CE6C 8023915C AFB60048 */ sw $s6, 0x48($sp) /* 70CE70 80239160 AFB50044 */ sw $s5, 0x44($sp) /* 70CE74 80239164 AFB40040 */ sw $s4, 0x40($sp) /* 70CE78 80239168 AFB10034 */ sw $s1, 0x34($sp) /* 70CE7C 8023916C AFB00030 */ sw $s0, 0x30($sp) /* 70CE80 80239170 F7BA0068 */ sdc1 $f26, 0x68($sp) /* 70CE84 80239174 F7B80060 */ sdc1 $f24, 0x60($sp) /* 70CE88 80239178 F7B60058 */ sdc1 $f22, 0x58($sp) /* 70CE8C 8023917C F7B40050 */ sdc1 $f20, 0x50($sp) /* 70CE90 80239180 10A00002 */ beqz $a1, .L8023918C /* 70CE94 80239184 2656000C */ addiu $s6, $s2, 0xc /* 70CE98 80239188 AE600070 */ sw $zero, 0x70($s3) .L8023918C: /* 70CE9C 8023918C 8E630070 */ lw $v1, 0x70($s3) /* 70CEA0 80239190 10600005 */ beqz $v1, .L802391A8 /* 70CEA4 80239194 24020001 */ addiu $v0, $zero, 1 /* 70CEA8 80239198 10620075 */ beq $v1, $v0, .L80239370 /* 70CEAC 8023919C 3C0451EB */ lui $a0, 0x51eb /* 70CEB0 802391A0 0808E53B */ j .L802394EC /* 70CEB4 802391A4 00000000 */ nop .L802391A8: /* 70CEB8 802391A8 0000202D */ daddu $a0, $zero, $zero /* 70CEBC 802391AC 240200A5 */ addiu $v0, $zero, 0xa5 /* 70CEC0 802391B0 24110001 */ addiu $s1, $zero, 1 /* 70CEC4 802391B4 3C06C47A */ lui $a2, 0xc47a /* 70CEC8 802391B8 44800000 */ mtc1 $zero, $f0 /* 70CECC 802391BC 3C013F19 */ lui $at, 0x3f19 /* 70CED0 802391C0 3421999A */ ori $at, $at, 0x999a /* 70CED4 802391C4 44811000 */ mtc1 $at, $f2 /* 70CED8 802391C8 44050000 */ mfc1 $a1, $f0 /* 70CEDC 802391CC 3C01C000 */ lui $at, 0xc000 /* 70CEE0 802391D0 44810000 */ mtc1 $at, $f0 /* 70CEE4 802391D4 241000FF */ addiu $s0, $zero, 0xff /* 70CEE8 802391D8 AE400054 */ sw $zero, 0x54($s2) /* 70CEEC 802391DC A6420070 */ sh $v0, 0x70($s2) /* 70CEF0 802391E0 A6400072 */ sh $zero, 0x72($s2) /* 70CEF4 802391E4 3C018024 */ lui $at, %hi(D_8023D334) /* 70CEF8 802391E8 AC31D334 */ sw $s1, %lo(D_8023D334)($at) /* 70CEFC 802391EC 3C018024 */ lui $at, %hi(D_8023D338) /* 70CF00 802391F0 AC30D338 */ sw $s0, %lo(D_8023D338)($at) /* 70CF04 802391F4 AFA0001C */ sw $zero, 0x1c($sp) /* 70CF08 802391F8 E7A20018 */ swc1 $f2, 0x18($sp) /* 70CF0C 802391FC 00A0382D */ daddu $a3, $a1, $zero /* 70CF10 80239200 AFA50010 */ sw $a1, 0x10($sp) /* 70CF14 80239204 0C01C874 */ jal func_800721D0 /* 70CF18 80239208 E7A00014 */ swc1 $f0, 0x14($sp) /* 70CF1C 8023920C 8C44000C */ lw $a0, 0xc($v0) /* 70CF20 80239210 24030014 */ addiu $v1, $zero, 0x14 /* 70CF24 80239214 AC830018 */ sw $v1, 0x18($a0) /* 70CF28 80239218 8C44000C */ lw $a0, 0xc($v0) /* 70CF2C 8023921C 24030050 */ addiu $v1, $zero, 0x50 /* 70CF30 80239220 AC83001C */ sw $v1, 0x1c($a0) /* 70CF34 80239224 8C43000C */ lw $v1, 0xc($v0) /* 70CF38 80239228 240500F0 */ addiu $a1, $zero, 0xf0 /* 70CF3C 8023922C AC700020 */ sw $s0, 0x20($v1) /* 70CF40 80239230 8C44000C */ lw $a0, 0xc($v0) /* 70CF44 80239234 240300C8 */ addiu $v1, $zero, 0xc8 /* 70CF48 80239238 AC830028 */ sw $v1, 0x28($a0) /* 70CF4C 8023923C 8C43000C */ lw $v1, 0xc($v0) /* 70CF50 80239240 3C068024 */ lui $a2, %hi(D_8023CCC0_7109D0) /* 70CF54 80239244 24C6CCC0 */ addiu $a2, $a2, %lo(D_8023CCC0_7109D0) /* 70CF58 80239248 AC65002C */ sw $a1, 0x2c($v1) /* 70CF5C 8023924C 8C44000C */ lw $a0, 0xc($v0) /* 70CF60 80239250 8CC30000 */ lw $v1, ($a2) /* 70CF64 80239254 3C018024 */ lui $at, %hi(D_8023D1E4) /* 70CF68 80239258 AC22D1E4 */ sw $v0, %lo(D_8023D1E4)($at) /* 70CF6C 8023925C AC850030 */ sw $a1, 0x30($a0) /* 70CF70 80239260 A060005C */ sb $zero, 0x5c($v1) /* 70CF74 80239264 8CC40000 */ lw $a0, ($a2) /* 70CF78 80239268 240200B1 */ addiu $v0, $zero, 0xb1 /* 70CF7C 8023926C A4620054 */ sh $v0, 0x54($v1) /* 70CF80 80239270 A4600044 */ sh $zero, 0x44($v1) /* 70CF84 80239274 A4600046 */ sh $zero, 0x46($v1) /* 70CF88 80239278 A4800070 */ sh $zero, 0x70($a0) /* 70CF8C 8023927C 84820070 */ lh $v0, 0x70($a0) /* 70CF90 80239280 3C014049 */ lui $at, 0x4049 /* 70CF94 80239284 34210FD0 */ ori $at, $at, 0xfd0 /* 70CF98 80239288 44810000 */ mtc1 $at, $f0 /* 70CF9C 8023928C 44826000 */ mtc1 $v0, $f12 /* 70CFA0 80239290 00000000 */ nop /* 70CFA4 80239294 46806320 */ cvt.s.w $f12, $f12 /* 70CFA8 80239298 46006302 */ mul.s $f12, $f12, $f0 /* 70CFAC 8023929C 00000000 */ nop /* 70CFB0 802392A0 3C018024 */ lui $at, %hi(D_8023D27C) /* 70CFB4 802392A4 AC20D27C */ sw $zero, %lo(D_8023D27C)($at) /* 70CFB8 802392A8 3C013F00 */ lui $at, 0x3f00 /* 70CFBC 802392AC 44810000 */ mtc1 $at, $f0 /* 70CFC0 802392B0 24021388 */ addiu $v0, $zero, 0x1388 /* 70CFC4 802392B4 46006302 */ mul.s $f12, $f12, $f0 /* 70CFC8 802392B8 00000000 */ nop /* 70CFCC 802392BC A4820072 */ sh $v0, 0x72($a0) /* 70CFD0 802392C0 3C01443B */ lui $at, 0x443b /* 70CFD4 802392C4 34218000 */ ori $at, $at, 0x8000 /* 70CFD8 802392C8 44810000 */ mtc1 $at, $f0 /* 70CFDC 802392CC 2402FFFF */ addiu $v0, $zero, -1 /* 70CFE0 802392D0 A482005A */ sh $v0, 0x5a($a0) /* 70CFE4 802392D4 0C00A85B */ jal sin_rad /* 70CFE8 802392D8 46006303 */ div.s $f12, $f12, $f0 /* 70CFEC 802392DC 3C013FF0 */ lui $at, 0x3ff0 /* 70CFF0 802392E0 44811800 */ mtc1 $at, $f3 /* 70CFF4 802392E4 44801000 */ mtc1 $zero, $f2 /* 70CFF8 802392E8 46000021 */ cvt.d.s $f0, $f0 /* 70CFFC 802392EC 46201081 */ sub.d $f2, $f2, $f0 /* 70D000 802392F0 3C014020 */ lui $at, 0x4020 /* 70D004 802392F4 44810800 */ mtc1 $at, $f1 /* 70D008 802392F8 44800000 */ mtc1 $zero, $f0 /* 70D00C 802392FC 00000000 */ nop /* 70D010 80239300 46201082 */ mul.d $f2, $f2, $f0 /* 70D014 80239304 00000000 */ nop /* 70D018 80239308 2402FFFF */ addiu $v0, $zero, -1 /* 70D01C 8023930C 3C018024 */ lui $at, %hi(D_8023D274) /* 70D020 80239310 AC22D274 */ sw $v0, %lo(D_8023D274)($at) /* 70D024 80239314 3C01402A */ lui $at, 0x402a /* 70D028 80239318 44810800 */ mtc1 $at, $f1 /* 70D02C 8023931C 44800000 */ mtc1 $zero, $f0 /* 70D030 80239320 240207D0 */ addiu $v0, $zero, 0x7d0 /* 70D034 80239324 3C018024 */ lui $at, %hi(D_8023D26C) /* 70D038 80239328 AC20D26C */ sw $zero, %lo(D_8023D26C)($at) /* 70D03C 8023932C 3C018024 */ lui $at, %hi(D_8023D270) /* 70D040 80239330 AC20D270 */ sw $zero, %lo(D_8023D270)($at) /* 70D044 80239334 46201080 */ add.d $f2, $f2, $f0 /* 70D048 80239338 3C018024 */ lui $at, %hi(D_8023D280) /* 70D04C 8023933C AC20D280 */ sw $zero, %lo(D_8023D280)($at) /* 70D050 80239340 3C018024 */ lui $at, %hi(D_8023D284) /* 70D054 80239344 AC22D284 */ sw $v0, %lo(D_8023D284)($at) /* 70D058 80239348 4620120D */ trunc.w.d $f8, $f2 /* 70D05C 8023934C 3C018024 */ lui $at, %hi(D_8023D278) /* 70D060 80239350 E428D278 */ swc1 $f8, %lo(D_8023D278)($at) /* 70D064 80239354 0C00A67F */ jal rand_int /* 70D068 80239358 2404000A */ addiu $a0, $zero, 0xa /* 70D06C 8023935C 2442000B */ addiu $v0, $v0, 0xb /* 70D070 80239360 AE620074 */ sw $v0, 0x74($s3) /* 70D074 80239364 AE600078 */ sw $zero, 0x78($s3) /* 70D078 80239368 0808E53B */ j .L802394EC /* 70D07C 8023936C AE710070 */ sw $s1, 0x70($s3) .L80239370: /* 70D080 80239370 3C028024 */ lui $v0, %hi(D_8023D26C) /* 70D084 80239374 8C42D26C */ lw $v0, %lo(D_8023D26C)($v0) /* 70D088 80239378 3484851F */ ori $a0, $a0, 0x851f /* 70D08C 8023937C 00021880 */ sll $v1, $v0, 2 /* 70D090 80239380 00621821 */ addu $v1, $v1, $v0 /* 70D094 80239384 00031100 */ sll $v0, $v1, 4 /* 70D098 80239388 00431023 */ subu $v0, $v0, $v1 /* 70D09C 8023938C 00021040 */ sll $v0, $v0, 1 /* 70D0A0 80239390 00440018 */ mult $v0, $a0 /* 70D0A4 80239394 0000882D */ daddu $s1, $zero, $zero /* 70D0A8 80239398 000217C3 */ sra $v0, $v0, 0x1f /* 70D0AC 8023939C 00004810 */ mfhi $t1 /* 70D0B0 802393A0 00091943 */ sra $v1, $t1, 5 /* 70D0B4 802393A4 00621823 */ subu $v1, $v1, $v0 /* 70D0B8 802393A8 2463FFB5 */ addiu $v1, $v1, -0x4b /* 70D0BC 802393AC 8242040C */ lb $v0, 0x40c($s2) /* 70D0C0 802393B0 44830000 */ mtc1 $v1, $f0 /* 70D0C4 802393B4 00000000 */ nop /* 70D0C8 802393B8 46800020 */ cvt.s.w $f0, $f0 /* 70D0CC 802393BC 18400024 */ blez $v0, .L80239450 /* 70D0D0 802393C0 E6400054 */ swc1 $f0, 0x54($s2) /* 70D0D4 802393C4 3C158024 */ lui $s5, %hi(D_8023D2D0) /* 70D0D8 802393C8 26B5D2D0 */ addiu $s5, $s5, %lo(D_8023D2D0) /* 70D0DC 802393CC 2414FFFF */ addiu $s4, $zero, -1 /* 70D0E0 802393D0 3C014150 */ lui $at, 0x4150 /* 70D0E4 802393D4 4481A000 */ mtc1 $at, $f20 /* 70D0E8 802393D8 02511021 */ addu $v0, $s2, $s1 .L802393DC: /* 70D0EC 802393DC 8043040D */ lb $v1, 0x40d($v0) /* 70D0F0 802393E0 00032080 */ sll $a0, $v1, 2 /* 70D0F4 802393E4 00951021 */ addu $v0, $a0, $s5 /* 70D0F8 802393E8 8C420000 */ lw $v0, ($v0) /* 70D0FC 802393EC 10540013 */ beq $v0, $s4, .L8023943C /* 70D100 802393F0 00000000 */ nop /* 70D104 802393F4 10400011 */ beqz $v0, .L8023943C /* 70D108 802393F8 00831021 */ addu $v0, $a0, $v1 /* 70D10C 802393FC 00021080 */ sll $v0, $v0, 2 /* 70D110 80239400 00521021 */ addu $v0, $v0, $s2 /* 70D114 80239404 0C09A75B */ jal get_actor /* 70D118 80239408 8444022C */ lh $a0, 0x22c($v0) /* 70D11C 8023940C 0040802D */ daddu $s0, $v0, $zero /* 70D120 80239410 C600018C */ lwc1 $f0, 0x18c($s0) /* 70D124 80239414 3C028024 */ lui $v0, %hi(D_8023D270) /* 70D128 80239418 8C42D270 */ lw $v0, %lo(D_8023D270)($v0) /* 70D12C 8023941C 46140000 */ add.s $f0, $f0, $f20 /* 70D130 80239420 00021080 */ sll $v0, $v0, 2 /* 70D134 80239424 44826000 */ mtc1 $v0, $f12 /* 70D138 80239428 00000000 */ nop /* 70D13C 8023942C 46806320 */ cvt.s.w $f12, $f12 /* 70D140 80239430 0C00A6C9 */ jal clamp_angle /* 70D144 80239434 460C0300 */ add.s $f12, $f0, $f12 /* 70D148 80239438 E600018C */ swc1 $f0, 0x18c($s0) .L8023943C: /* 70D14C 8023943C 8242040C */ lb $v0, 0x40c($s2) /* 70D150 80239440 26310001 */ addiu $s1, $s1, 1 /* 70D154 80239444 0222102A */ slt $v0, $s1, $v0 /* 70D158 80239448 1440FFE4 */ bnez $v0, .L802393DC /* 70D15C 8023944C 02511021 */ addu $v0, $s2, $s1 .L80239450: /* 70D160 80239450 86C20064 */ lh $v0, 0x64($s6) /* 70D164 80239454 96C30064 */ lhu $v1, 0x64($s6) /* 70D168 80239458 10400003 */ beqz $v0, .L80239468 /* 70D16C 8023945C 2462FFFF */ addiu $v0, $v1, -1 /* 70D170 80239460 0808E53B */ j .L802394EC /* 70D174 80239464 A6C20064 */ sh $v0, 0x64($s6) .L80239468: /* 70D178 80239468 8242040C */ lb $v0, 0x40c($s2) /* 70D17C 8023946C 18400017 */ blez $v0, .L802394CC /* 70D180 80239470 0000882D */ daddu $s1, $zero, $zero /* 70D184 80239474 3C138024 */ lui $s3, %hi(D_8023D2D0) /* 70D188 80239478 2673D2D0 */ addiu $s3, $s3, %lo(D_8023D2D0) /* 70D18C 8023947C 2410FFFF */ addiu $s0, $zero, -1 /* 70D190 80239480 02511021 */ addu $v0, $s2, $s1 .L80239484: /* 70D194 80239484 8043040D */ lb $v1, 0x40d($v0) /* 70D198 80239488 00032080 */ sll $a0, $v1, 2 /* 70D19C 8023948C 00931021 */ addu $v0, $a0, $s3 /* 70D1A0 80239490 8C420000 */ lw $v0, ($v0) /* 70D1A4 80239494 10500008 */ beq $v0, $s0, .L802394B8 /* 70D1A8 80239498 00000000 */ nop /* 70D1AC 8023949C 10400006 */ beqz $v0, .L802394B8 /* 70D1B0 802394A0 00831021 */ addu $v0, $a0, $v1 /* 70D1B4 802394A4 00021080 */ sll $v0, $v0, 2 /* 70D1B8 802394A8 00521021 */ addu $v0, $v0, $s2 /* 70D1BC 802394AC 0C09A75B */ jal get_actor /* 70D1C0 802394B0 8444022C */ lh $a0, 0x22c($v0) /* 70D1C4 802394B4 AC40018C */ sw $zero, 0x18c($v0) .L802394B8: /* 70D1C8 802394B8 8242040C */ lb $v0, 0x40c($s2) /* 70D1CC 802394BC 26310001 */ addiu $s1, $s1, 1 /* 70D1D0 802394C0 0222102A */ slt $v0, $s1, $v0 /* 70D1D4 802394C4 1440FFEF */ bnez $v0, .L80239484 /* 70D1D8 802394C8 02511021 */ addu $v0, $s2, $s1 .L802394CC: /* 70D1DC 802394CC 3C048024 */ lui $a0, %hi(D_8023D1E4) /* 70D1E0 802394D0 8C84D1E4 */ lw $a0, %lo(D_8023D1E4)($a0) /* 70D1E4 802394D4 3C018024 */ lui $at, %hi(D_8023D334) /* 70D1E8 802394D8 AC20D334 */ sw $zero, %lo(D_8023D334)($at) /* 70D1EC 802394DC 0C016914 */ jal remove_effect /* 70D1F0 802394E0 00000000 */ nop /* 70D1F4 802394E4 0808E7D3 */ j .L80239F4C /* 70D1F8 802394E8 24020002 */ addiu $v0, $zero, 2 .L802394EC: /* 70D1FC 802394EC 3C118024 */ lui $s1, %hi(D_8023D1E4) /* 70D200 802394F0 2631D1E4 */ addiu $s1, $s1, %lo(D_8023D1E4) /* 70D204 802394F4 3C018024 */ lui $at, %hi(D_8023D280) /* 70D208 802394F8 C420D280 */ lwc1 $f0, %lo(D_8023D280)($at) /* 70D20C 802394FC 46800021 */ cvt.d.w $f0, $f0 /* 70D210 80239500 3C014049 */ lui $at, 0x4049 /* 70D214 80239504 44811800 */ mtc1 $at, $f3 /* 70D218 80239508 44801000 */ mtc1 $zero, $f2 /* 70D21C 8023950C 3C013FF0 */ lui $at, 0x3ff0 /* 70D220 80239510 44812800 */ mtc1 $at, $f5 /* 70D224 80239514 44802000 */ mtc1 $zero, $f4 /* 70D228 80239518 8E220000 */ lw $v0, ($s1) /* 70D22C 8023951C 46220003 */ div.d $f0, $f0, $f2 /* 70D230 80239520 46240000 */ add.d $f0, $f0, $f4 /* 70D234 80239524 8C42000C */ lw $v0, 0xc($v0) /* 70D238 80239528 46200020 */ cvt.s.d $f0, $f0 /* 70D23C 8023952C E440004C */ swc1 $f0, 0x4c($v0) /* 70D240 80239530 C6400144 */ lwc1 $f0, 0x144($s2) /* 70D244 80239534 C6420148 */ lwc1 $f2, 0x148($s2) /* 70D248 80239538 240403E8 */ addiu $a0, $zero, 0x3e8 /* 70D24C 8023953C E7A00028 */ swc1 $f0, 0x28($sp) /* 70D250 80239540 0C00A67F */ jal rand_int /* 70D254 80239544 E7A2002C */ swc1 $f2, 0x2c($sp) /* 70D258 80239548 3C108024 */ lui $s0, %hi(D_8023D274) /* 70D25C 8023954C 8E10D274 */ lw $s0, %lo(D_8023D274)($s0) /* 70D260 80239550 3C0140A0 */ lui $at, 0x40a0 /* 70D264 80239554 4481A000 */ mtc1 $at, $f20 /* 70D268 80239558 1200003E */ beqz $s0, .L80239654 /* 70D26C 8023955C 00000000 */ nop /* 70D270 80239560 1E000006 */ bgtz $s0, .L8023957C /* 70D274 80239564 24020001 */ addiu $v0, $zero, 1 /* 70D278 80239568 2402FFFF */ addiu $v0, $zero, -1 /* 70D27C 8023956C 12020007 */ beq $s0, $v0, .L8023958C /* 70D280 80239570 27A40028 */ addiu $a0, $sp, 0x28 /* 70D284 80239574 0808E5CE */ j .L80239738 /* 70D288 80239578 00000000 */ nop .L8023957C: /* 70D28C 8023957C 1202003F */ beq $s0, $v0, .L8023967C /* 70D290 80239580 27A40028 */ addiu $a0, $sp, 0x28 /* 70D294 80239584 0808E5CE */ j .L80239738 /* 70D298 80239588 00000000 */ nop .L8023958C: /* 70D29C 8023958C 3C064140 */ lui $a2, 0x4140 /* 70D2A0 80239590 C6400148 */ lwc1 $f0, 0x148($s2) /* 70D2A4 80239594 3C014170 */ lui $at, 0x4170 /* 70D2A8 80239598 44811000 */ mtc1 $at, $f2 /* 70D2AC 8023959C 3C0742B4 */ lui $a3, 0x42b4 /* 70D2B0 802395A0 C6440144 */ lwc1 $f4, 0x144($s2) /* 70D2B4 802395A4 46020000 */ add.s $f0, $f0, $f2 /* 70D2B8 802395A8 C642014C */ lwc1 $f2, 0x14c($s2) /* 70D2BC 802395AC 27A5002C */ addiu $a1, $sp, 0x2c /* 70D2C0 802395B0 E7A40028 */ swc1 $f4, 0x28($sp) /* 70D2C4 802395B4 46141600 */ add.s $f24, $f2, $f20 /* 70D2C8 802395B8 0C00A7E7 */ jal add_vec2D_polar /* 70D2CC 802395BC E7A0002C */ swc1 $f0, 0x2c($sp) /* 70D2D0 802395C0 8E230000 */ lw $v1, ($s1) /* 70D2D4 802395C4 C7A00028 */ lwc1 $f0, 0x28($sp) /* 70D2D8 802395C8 8C62000C */ lw $v0, 0xc($v1) /* 70D2DC 802395CC E4400004 */ swc1 $f0, 4($v0) /* 70D2E0 802395D0 8C62000C */ lw $v0, 0xc($v1) /* 70D2E4 802395D4 C7A0002C */ lwc1 $f0, 0x2c($sp) /* 70D2E8 802395D8 E4400008 */ swc1 $f0, 8($v0) /* 70D2EC 802395DC 8C62000C */ lw $v0, 0xc($v1) /* 70D2F0 802395E0 3C01C000 */ lui $at, 0xc000 /* 70D2F4 802395E4 44810000 */ mtc1 $at, $f0 /* 70D2F8 802395E8 E458000C */ swc1 $f24, 0xc($v0) /* 70D2FC 802395EC 8C62000C */ lw $v0, 0xc($v1) /* 70D300 802395F0 E440003C */ swc1 $f0, 0x3c($v0) /* 70D304 802395F4 8C62000C */ lw $v0, 0xc($v1) /* 70D308 802395F8 3C01C47A */ lui $at, 0xc47a /* 70D30C 802395FC 44810000 */ mtc1 $at, $f0 /* 70D310 80239600 AC400004 */ sw $zero, 4($v0) /* 70D314 80239604 8C62000C */ lw $v0, 0xc($v1) /* 70D318 80239608 E4400008 */ swc1 $f0, 8($v0) /* 70D31C 8023960C 8C62000C */ lw $v0, 0xc($v1) /* 70D320 80239610 AC40000C */ sw $zero, 0xc($v0) /* 70D324 80239614 8E620078 */ lw $v0, 0x78($s3) /* 70D328 80239618 10400007 */ beqz $v0, .L80239638 /* 70D32C 8023961C 2404201E */ addiu $a0, $zero, 0x201e /* 70D330 80239620 C640014C */ lwc1 $f0, 0x14c($s2) /* 70D334 80239624 E7A00010 */ swc1 $f0, 0x10($sp) /* 70D338 80239628 8E460144 */ lw $a2, 0x144($s2) /* 70D33C 8023962C 8E470148 */ lw $a3, 0x148($s2) /* 70D340 80239630 0C052757 */ jal play_sound_at_position /* 70D344 80239634 0000282D */ daddu $a1, $zero, $zero .L80239638: /* 70D348 80239638 24040100 */ addiu $a0, $zero, 0x100 /* 70D34C 8023963C 2405FFFF */ addiu $a1, $zero, -1 /* 70D350 80239640 3C060010 */ lui $a2, 0x10 /* 70D354 80239644 34C60016 */ ori $a2, $a2, 0x16 /* 70D358 80239648 AE600078 */ sw $zero, 0x78($s3) /* 70D35C 8023964C 0808E5CC */ j .L80239730 /* 70D360 80239650 A6C00066 */ sh $zero, 0x66($s6) .L80239654: /* 70D364 80239654 8E230000 */ lw $v1, ($s1) /* 70D368 80239658 3C01C47A */ lui $at, 0xc47a /* 70D36C 8023965C 44810000 */ mtc1 $at, $f0 /* 70D370 80239660 8C62000C */ lw $v0, 0xc($v1) /* 70D374 80239664 AC400004 */ sw $zero, 4($v0) /* 70D378 80239668 8C62000C */ lw $v0, 0xc($v1) /* 70D37C 8023966C E4400008 */ swc1 $f0, 8($v0) /* 70D380 80239670 8C62000C */ lw $v0, 0xc($v1) /* 70D384 80239674 0808E5CE */ j .L80239738 /* 70D388 80239678 AC40000C */ sw $zero, 0xc($v0) .L8023967C: /* 70D38C 8023967C 3C064140 */ lui $a2, 0x4140 /* 70D390 80239680 C6400148 */ lwc1 $f0, 0x148($s2) /* 70D394 80239684 3C014170 */ lui $at, 0x4170 /* 70D398 80239688 44811000 */ mtc1 $at, $f2 /* 70D39C 8023968C 3C0742B4 */ lui $a3, 0x42b4 /* 70D3A0 80239690 C6440144 */ lwc1 $f4, 0x144($s2) /* 70D3A4 80239694 46020000 */ add.s $f0, $f0, $f2 /* 70D3A8 80239698 C642014C */ lwc1 $f2, 0x14c($s2) /* 70D3AC 8023969C 27A5002C */ addiu $a1, $sp, 0x2c /* 70D3B0 802396A0 E7A40028 */ swc1 $f4, 0x28($sp) /* 70D3B4 802396A4 46141600 */ add.s $f24, $f2, $f20 /* 70D3B8 802396A8 0C00A7E7 */ jal add_vec2D_polar /* 70D3BC 802396AC E7A0002C */ swc1 $f0, 0x2c($sp) /* 70D3C0 802396B0 8E230000 */ lw $v1, ($s1) /* 70D3C4 802396B4 C7A00028 */ lwc1 $f0, 0x28($sp) /* 70D3C8 802396B8 8C62000C */ lw $v0, 0xc($v1) /* 70D3CC 802396BC E4400004 */ swc1 $f0, 4($v0) /* 70D3D0 802396C0 8C62000C */ lw $v0, 0xc($v1) /* 70D3D4 802396C4 C7A0002C */ lwc1 $f0, 0x2c($sp) /* 70D3D8 802396C8 E4400008 */ swc1 $f0, 8($v0) /* 70D3DC 802396CC 8C62000C */ lw $v0, 0xc($v1) /* 70D3E0 802396D0 3C014000 */ lui $at, 0x4000 /* 70D3E4 802396D4 44810000 */ mtc1 $at, $f0 /* 70D3E8 802396D8 E458000C */ swc1 $f24, 0xc($v0) /* 70D3EC 802396DC 8C62000C */ lw $v0, 0xc($v1) /* 70D3F0 802396E0 E440003C */ swc1 $f0, 0x3c($v0) /* 70D3F4 802396E4 8E620078 */ lw $v0, 0x78($s3) /* 70D3F8 802396E8 54400009 */ bnel $v0, $zero, .L80239710 /* 70D3FC 802396EC AE700078 */ sw $s0, 0x78($s3) /* 70D400 802396F0 C640014C */ lwc1 $f0, 0x14c($s2) /* 70D404 802396F4 2404201F */ addiu $a0, $zero, 0x201f /* 70D408 802396F8 E7A00010 */ swc1 $f0, 0x10($sp) /* 70D40C 802396FC 8E460144 */ lw $a2, 0x144($s2) /* 70D410 80239700 8E470148 */ lw $a3, 0x148($s2) /* 70D414 80239704 0C052757 */ jal play_sound_at_position /* 70D418 80239708 0000282D */ daddu $a1, $zero, $zero /* 70D41C 8023970C AE700078 */ sw $s0, 0x78($s3) .L80239710: /* 70D420 80239710 86C20066 */ lh $v0, 0x66($s6) /* 70D424 80239714 50400001 */ beql $v0, $zero, .L8023971C /* 70D428 80239718 AE700074 */ sw $s0, 0x74($s3) .L8023971C: /* 70D42C 8023971C A6D00066 */ sh $s0, 0x66($s6) /* 70D430 80239720 24040100 */ addiu $a0, $zero, 0x100 /* 70D434 80239724 2405FFFF */ addiu $a1, $zero, -1 /* 70D438 80239728 3C060010 */ lui $a2, 0x10 /* 70D43C 8023972C 34C60017 */ ori $a2, $a2, 0x17 .L80239730: /* 70D440 80239730 0C098F3F */ jal set_animation /* 70D444 80239734 00000000 */ nop .L80239738: /* 70D448 80239738 3C108024 */ lui $s0, %hi(D_8023D270) /* 70D44C 8023973C 2610D270 */ addiu $s0, $s0, %lo(D_8023D270) /* 70D450 80239740 3C128007 */ lui $s2, %hi(gGameStatusPtr) /* 70D454 80239744 2652419C */ addiu $s2, $s2, %lo(gGameStatusPtr) /* 70D458 80239748 8E020000 */ lw $v0, ($s0) /* 70D45C 8023974C 24110007 */ addiu $s1, $zero, 7 /* 70D460 80239750 00021FC2 */ srl $v1, $v0, 0x1f /* 70D464 80239754 00431021 */ addu $v0, $v0, $v1 /* 70D468 80239758 8E430000 */ lw $v1, ($s2) /* 70D46C 8023975C 00021043 */ sra $v0, $v0, 1 /* 70D470 80239760 94630134 */ lhu $v1, 0x134($v1) /* 70D474 80239764 02221023 */ subu $v0, $s1, $v0 /* 70D478 80239768 14400002 */ bnez $v0, .L80239774 /* 70D47C 8023976C 0062001A */ div $zero, $v1, $v0 /* 70D480 80239770 0007000D */ break 7 .L80239774: /* 70D484 80239774 2401FFFF */ addiu $at, $zero, -1 /* 70D488 80239778 14410004 */ bne $v0, $at, .L8023978C /* 70D48C 8023977C 3C018000 */ lui $at, 0x8000 /* 70D490 80239780 14610002 */ bne $v1, $at, .L8023978C /* 70D494 80239784 00000000 */ nop /* 70D498 80239788 0006000D */ break 6 .L8023978C: /* 70D49C 8023978C 00001010 */ mfhi $v0 /* 70D4A0 80239790 14400043 */ bnez $v0, .L802398A0 /* 70D4A4 80239794 24040064 */ addiu $a0, $zero, 0x64 /* 70D4A8 80239798 3C014248 */ lui $at, 0x4248 /* 70D4AC 8023979C 4481C000 */ mtc1 $at, $f24 /* 70D4B0 802397A0 3C01C35C */ lui $at, 0xc35c /* 70D4B4 802397A4 44810000 */ mtc1 $at, $f0 /* 70D4B8 802397A8 0C00A67F */ jal rand_int /* 70D4BC 802397AC E7A00028 */ swc1 $f0, 0x28($sp) /* 70D4C0 802397B0 24040064 */ addiu $a0, $zero, 0x64 /* 70D4C4 802397B4 240300B0 */ addiu $v1, $zero, 0xb0 /* 70D4C8 802397B8 00621823 */ subu $v1, $v1, $v0 /* 70D4CC 802397BC 44830000 */ mtc1 $v1, $f0 /* 70D4D0 802397C0 00000000 */ nop /* 70D4D4 802397C4 46800020 */ cvt.s.w $f0, $f0 /* 70D4D8 802397C8 0C00A67F */ jal rand_int /* 70D4DC 802397CC E7A0002C */ swc1 $f0, 0x2c($sp) /* 70D4E0 802397D0 240403E8 */ addiu $a0, $zero, 0x3e8 /* 70D4E4 802397D4 24420064 */ addiu $v0, $v0, 0x64 /* 70D4E8 802397D8 C7A2002C */ lwc1 $f2, 0x2c($sp) /* 70D4EC 802397DC 44820000 */ mtc1 $v0, $f0 /* 70D4F0 802397E0 00000000 */ nop /* 70D4F4 802397E4 46800020 */ cvt.s.w $f0, $f0 /* 70D4F8 802397E8 0C00A67F */ jal rand_int /* 70D4FC 802397EC 46001681 */ sub.s $f26, $f2, $f0 /* 70D500 802397F0 4482A000 */ mtc1 $v0, $f20 /* 70D504 802397F4 00000000 */ nop /* 70D508 802397F8 4680A520 */ cvt.s.w $f20, $f20 /* 70D50C 802397FC 3C01453B */ lui $at, 0x453b /* 70D510 80239800 34218000 */ ori $at, $at, 0x8000 /* 70D514 80239804 44810000 */ mtc1 $at, $f0 /* 70D518 80239808 3C013FE0 */ lui $at, 0x3fe0 /* 70D51C 8023980C 44811800 */ mtc1 $at, $f3 /* 70D520 80239810 44801000 */ mtc1 $zero, $f2 /* 70D524 80239814 4600A003 */ div.s $f0, $f20, $f0 /* 70D528 80239818 46000021 */ cvt.d.s $f0, $f0 /* 70D52C 8023981C 46220000 */ add.d $f0, $f0, $f2 /* 70D530 80239820 240403E8 */ addiu $a0, $zero, 0x3e8 /* 70D534 80239824 3C01435C */ lui $at, 0x435c /* 70D538 80239828 4481B000 */ mtc1 $at, $f22 /* 70D53C 8023982C 0C00A67F */ jal rand_int /* 70D540 80239830 46200520 */ cvt.s.d $f20, $f0 /* 70D544 80239834 44820000 */ mtc1 $v0, $f0 /* 70D548 80239838 00000000 */ nop /* 70D54C 8023983C 46800020 */ cvt.s.w $f0, $f0 /* 70D550 80239840 4407C000 */ mfc1 $a3, $f24 /* 70D554 80239844 3C014396 */ lui $at, 0x4396 /* 70D558 80239848 44811000 */ mtc1 $at, $f2 /* 70D55C 8023984C C7A40028 */ lwc1 $f4, 0x28($sp) /* 70D560 80239850 C7A6002C */ lwc1 $f6, 0x2c($sp) /* 70D564 80239854 24040001 */ addiu $a0, $zero, 1 /* 70D568 80239858 E7B60010 */ swc1 $f22, 0x10($sp) /* 70D56C 8023985C E7BA0014 */ swc1 $f26, 0x14($sp) /* 70D570 80239860 E7B40020 */ swc1 $f20, 0x20($sp) /* 70D574 80239864 46020083 */ div.s $f2, $f0, $f2 /* 70D578 80239868 3C014017 */ lui $at, 0x4017 /* 70D57C 8023986C 44810800 */ mtc1 $at, $f1 /* 70D580 80239870 44800000 */ mtc1 $zero, $f0 /* 70D584 80239874 460010A1 */ cvt.d.s $f2, $f2 /* 70D588 80239878 46201080 */ add.d $f2, $f2, $f0 /* 70D58C 8023987C AFA70018 */ sw $a3, 0x18($sp) /* 70D590 80239880 C6000000 */ lwc1 $f0, ($s0) /* 70D594 80239884 46800021 */ cvt.d.w $f0, $f0 /* 70D598 80239888 46201080 */ add.d $f2, $f2, $f0 /* 70D59C 8023988C 44052000 */ mfc1 $a1, $f4 /* 70D5A0 80239890 44063000 */ mfc1 $a2, $f6 /* 70D5A4 80239894 46201020 */ cvt.s.d $f0, $f2 /* 70D5A8 80239898 0C01C904 */ jal func_80072410 /* 70D5AC 8023989C E7A0001C */ swc1 $f0, 0x1c($sp) .L802398A0: /* 70D5B0 802398A0 8E020000 */ lw $v0, ($s0) /* 70D5B4 802398A4 00021FC2 */ srl $v1, $v0, 0x1f /* 70D5B8 802398A8 00431021 */ addu $v0, $v0, $v1 /* 70D5BC 802398AC 8E430000 */ lw $v1, ($s2) /* 70D5C0 802398B0 00021043 */ sra $v0, $v0, 1 /* 70D5C4 802398B4 94630134 */ lhu $v1, 0x134($v1) /* 70D5C8 802398B8 02221023 */ subu $v0, $s1, $v0 /* 70D5CC 802398BC 14400002 */ bnez $v0, .L802398C8 /* 70D5D0 802398C0 0062001A */ div $zero, $v1, $v0 /* 70D5D4 802398C4 0007000D */ break 7 .L802398C8: /* 70D5D8 802398C8 2401FFFF */ addiu $at, $zero, -1 /* 70D5DC 802398CC 14410004 */ bne $v0, $at, .L802398E0 /* 70D5E0 802398D0 3C018000 */ lui $at, 0x8000 /* 70D5E4 802398D4 14610002 */ bne $v1, $at, .L802398E0 /* 70D5E8 802398D8 00000000 */ nop /* 70D5EC 802398DC 0006000D */ break 6 .L802398E0: /* 70D5F0 802398E0 00001010 */ mfhi $v0 /* 70D5F4 802398E4 14400046 */ bnez $v0, .L80239A00 /* 70D5F8 802398E8 24040064 */ addiu $a0, $zero, 0x64 /* 70D5FC 802398EC 3C01C248 */ lui $at, 0xc248 /* 70D600 802398F0 4481C000 */ mtc1 $at, $f24 /* 70D604 802398F4 3C01C35C */ lui $at, 0xc35c /* 70D608 802398F8 44810000 */ mtc1 $at, $f0 /* 70D60C 802398FC 0C00A67F */ jal rand_int /* 70D610 80239900 E7A00028 */ swc1 $f0, 0x28($sp) /* 70D614 80239904 24040064 */ addiu $a0, $zero, 0x64 /* 70D618 80239908 240300B0 */ addiu $v1, $zero, 0xb0 /* 70D61C 8023990C 00621823 */ subu $v1, $v1, $v0 /* 70D620 80239910 44830000 */ mtc1 $v1, $f0 /* 70D624 80239914 00000000 */ nop /* 70D628 80239918 46800020 */ cvt.s.w $f0, $f0 /* 70D62C 8023991C 0C00A67F */ jal rand_int /* 70D630 80239920 E7A0002C */ swc1 $f0, 0x2c($sp) /* 70D634 80239924 240403E8 */ addiu $a0, $zero, 0x3e8 /* 70D638 80239928 24420064 */ addiu $v0, $v0, 0x64 /* 70D63C 8023992C C7A2002C */ lwc1 $f2, 0x2c($sp) /* 70D640 80239930 44820000 */ mtc1 $v0, $f0 /* 70D644 80239934 00000000 */ nop /* 70D648 80239938 46800020 */ cvt.s.w $f0, $f0 /* 70D64C 8023993C 0C00A67F */ jal rand_int /* 70D650 80239940 46001681 */ sub.s $f26, $f2, $f0 /* 70D654 80239944 4482A000 */ mtc1 $v0, $f20 /* 70D658 80239948 00000000 */ nop /* 70D65C 8023994C 4680A520 */ cvt.s.w $f20, $f20 /* 70D660 80239950 3C01457A */ lui $at, 0x457a /* 70D664 80239954 44810000 */ mtc1 $at, $f0 /* 70D668 80239958 3C018024 */ lui $at, %hi(D_8023D1C0_710ED0) /* 70D66C 8023995C D422D1C0 */ ldc1 $f2, %lo(D_8023D1C0_710ED0)($at) /* 70D670 80239960 4600A003 */ div.s $f0, $f20, $f0 /* 70D674 80239964 46000021 */ cvt.d.s $f0, $f0 /* 70D678 80239968 46220000 */ add.d $f0, $f0, $f2 /* 70D67C 8023996C 240403E8 */ addiu $a0, $zero, 0x3e8 /* 70D680 80239970 3C01435C */ lui $at, 0x435c /* 70D684 80239974 4481B000 */ mtc1 $at, $f22 /* 70D688 80239978 0C00A67F */ jal rand_int /* 70D68C 8023997C 46200520 */ cvt.s.d $f20, $f0 /* 70D690 80239980 44820000 */ mtc1 $v0, $f0 /* 70D694 80239984 00000000 */ nop /* 70D698 80239988 46800020 */ cvt.s.w $f0, $f0 /* 70D69C 8023998C 4407C000 */ mfc1 $a3, $f24 /* 70D6A0 80239990 3C014396 */ lui $at, 0x4396 /* 70D6A4 80239994 44811000 */ mtc1 $at, $f2 /* 70D6A8 80239998 C7A40028 */ lwc1 $f4, 0x28($sp) /* 70D6AC 8023999C C7A6002C */ lwc1 $f6, 0x2c($sp) /* 70D6B0 802399A0 24040001 */ addiu $a0, $zero, 1 /* 70D6B4 802399A4 E7B60010 */ swc1 $f22, 0x10($sp) /* 70D6B8 802399A8 E7BA0014 */ swc1 $f26, 0x14($sp) /* 70D6BC 802399AC E7B40020 */ swc1 $f20, 0x20($sp) /* 70D6C0 802399B0 46020083 */ div.s $f2, $f0, $f2 /* 70D6C4 802399B4 460010A1 */ cvt.d.s $f2, $f2 /* 70D6C8 802399B8 AFA70018 */ sw $a3, 0x18($sp) /* 70D6CC 802399BC 8E020000 */ lw $v0, ($s0) /* 70D6D0 802399C0 3C014006 */ lui $at, 0x4006 /* 70D6D4 802399C4 44810800 */ mtc1 $at, $f1 /* 70D6D8 802399C8 44800000 */ mtc1 $zero, $f0 /* 70D6DC 802399CC 00021FC2 */ srl $v1, $v0, 0x1f /* 70D6E0 802399D0 00431021 */ addu $v0, $v0, $v1 /* 70D6E4 802399D4 46201080 */ add.d $f2, $f2, $f0 /* 70D6E8 802399D8 00821007 */ srav $v0, $v0, $a0 /* 70D6EC 802399DC 44820000 */ mtc1 $v0, $f0 /* 70D6F0 802399E0 00000000 */ nop /* 70D6F4 802399E4 46800021 */ cvt.d.w $f0, $f0 /* 70D6F8 802399E8 46201080 */ add.d $f2, $f2, $f0 /* 70D6FC 802399EC 44052000 */ mfc1 $a1, $f4 /* 70D700 802399F0 44063000 */ mfc1 $a2, $f6 /* 70D704 802399F4 46201020 */ cvt.s.d $f0, $f2 /* 70D708 802399F8 0C01C904 */ jal func_80072410 /* 70D70C 802399FC E7A0001C */ swc1 $f0, 0x1c($sp) .L80239A00: /* 70D710 80239A00 3C118024 */ lui $s1, %hi(D_8023CCC0_7109D0) /* 70D714 80239A04 2631CCC0 */ addiu $s1, $s1, %lo(D_8023CCC0_7109D0) /* 70D718 80239A08 8E230000 */ lw $v1, ($s1) /* 70D71C 80239A0C 8064005C */ lb $a0, 0x5c($v1) /* 70D720 80239A10 10800005 */ beqz $a0, .L80239A28 /* 70D724 80239A14 24020001 */ addiu $v0, $zero, 1 /* 70D728 80239A18 10820086 */ beq $a0, $v0, .L80239C34 /* 70D72C 80239A1C 2402000A */ addiu $v0, $zero, 0xa /* 70D730 80239A20 0808E710 */ j .L80239C40 /* 70D734 80239A24 00000000 */ nop .L80239A28: /* 70D738 80239A28 8462005A */ lh $v0, 0x5a($v1) /* 70D73C 80239A2C 24120001 */ addiu $s2, $zero, 1 /* 70D740 80239A30 3C018024 */ lui $at, %hi(D_8023D274) /* 70D744 80239A34 04410003 */ bgez $v0, .L80239A44 /* 70D748 80239A38 AC32D274 */ sw $s2, %lo(D_8023D274)($at) /* 70D74C 80239A3C 94620072 */ lhu $v0, 0x72($v1) /* 70D750 80239A40 A462005A */ sh $v0, 0x5a($v1) .L80239A44: /* 70D754 80239A44 8E220000 */ lw $v0, ($s1) /* 70D758 80239A48 84420072 */ lh $v0, 0x72($v0) /* 70D75C 80239A4C 3C01459C */ lui $at, 0x459c /* 70D760 80239A50 34214000 */ ori $at, $at, 0x4000 /* 70D764 80239A54 44811000 */ mtc1 $at, $f2 /* 70D768 80239A58 44820000 */ mtc1 $v0, $f0 /* 70D76C 80239A5C 00000000 */ nop /* 70D770 80239A60 46800020 */ cvt.s.w $f0, $f0 /* 70D774 80239A64 4600103C */ c.lt.s $f2, $f0 /* 70D778 80239A68 00000000 */ nop /* 70D77C 80239A6C 45030001 */ bc1tl .L80239A74 /* 70D780 80239A70 46001006 */ mov.s $f0, $f2 .L80239A74: /* 70D784 80239A74 3C014049 */ lui $at, 0x4049 /* 70D788 80239A78 34210FD0 */ ori $at, $at, 0xfd0 /* 70D78C 80239A7C 44816000 */ mtc1 $at, $f12 /* 70D790 80239A80 00000000 */ nop /* 70D794 80239A84 460C0302 */ mul.s $f12, $f0, $f12 /* 70D798 80239A88 00000000 */ nop /* 70D79C 80239A8C 3C013F00 */ lui $at, 0x3f00 /* 70D7A0 80239A90 44810000 */ mtc1 $at, $f0 /* 70D7A4 80239A94 00000000 */ nop /* 70D7A8 80239A98 46006302 */ mul.s $f12, $f12, $f0 /* 70D7AC 80239A9C 00000000 */ nop /* 70D7B0 80239AA0 3C013FC9 */ lui $at, 0x3fc9 /* 70D7B4 80239AA4 34210FD0 */ ori $at, $at, 0xfd0 /* 70D7B8 80239AA8 44810000 */ mtc1 $at, $f0 /* 70D7BC 80239AAC 46026303 */ div.s $f12, $f12, $f2 /* 70D7C0 80239AB0 3C108024 */ lui $s0, %hi(D_8023D278) /* 70D7C4 80239AB4 2610D278 */ addiu $s0, $s0, %lo(D_8023D278) /* 70D7C8 80239AB8 C6140000 */ lwc1 $f20, ($s0) /* 70D7CC 80239ABC 4680A521 */ cvt.d.w $f20, $f20 /* 70D7D0 80239AC0 0C00A85B */ jal sin_rad /* 70D7D4 80239AC4 46006300 */ add.s $f12, $f12, $f0 /* 70D7D8 80239AC8 3C013FF0 */ lui $at, 0x3ff0 /* 70D7DC 80239ACC 44811800 */ mtc1 $at, $f3 /* 70D7E0 80239AD0 44801000 */ mtc1 $zero, $f2 /* 70D7E4 80239AD4 46000021 */ cvt.d.s $f0, $f0 /* 70D7E8 80239AD8 46201081 */ sub.d $f2, $f2, $f0 /* 70D7EC 80239ADC 4622A082 */ mul.d $f2, $f20, $f2 /* 70D7F0 80239AE0 00000000 */ nop /* 70D7F4 80239AE4 3C013FF8 */ lui $at, 0x3ff8 /* 70D7F8 80239AE8 44810800 */ mtc1 $at, $f1 /* 70D7FC 80239AEC 44800000 */ mtc1 $zero, $f0 /* 70D800 80239AF0 00000000 */ nop /* 70D804 80239AF4 46201082 */ mul.d $f2, $f2, $f0 /* 70D808 80239AF8 00000000 */ nop /* 70D80C 80239AFC 3C068024 */ lui $a2, %hi(D_8023D27C) /* 70D810 80239B00 24C6D27C */ addiu $a2, $a2, %lo(D_8023D27C) /* 70D814 80239B04 8E250000 */ lw $a1, ($s1) /* 70D818 80239B08 8CC20000 */ lw $v0, ($a2) /* 70D81C 80239B0C 8E030000 */ lw $v1, ($s0) /* 70D820 80239B10 84A40070 */ lh $a0, 0x70($a1) /* 70D824 80239B14 00431021 */ addu $v0, $v0, $v1 /* 70D828 80239B18 ACC20000 */ sw $v0, ($a2) /* 70D82C 80239B1C 4622A500 */ add.d $f20, $f20, $f2 /* 70D830 80239B20 84A20072 */ lh $v0, 0x72($a1) /* 70D834 80239B24 44840000 */ mtc1 $a0, $f0 /* 70D838 80239B28 00000000 */ nop /* 70D83C 80239B2C 46800020 */ cvt.s.w $f0, $f0 /* 70D840 80239B30 4620A520 */ cvt.s.d $f20, $f20 /* 70D844 80239B34 46140000 */ add.s $f0, $f0, $f20 /* 70D848 80239B38 28422329 */ slti $v0, $v0, 0x2329 /* 70D84C 80239B3C 4600020D */ trunc.w.s $f8, $f0 /* 70D850 80239B40 44034000 */ mfc1 $v1, $f8 /* 70D854 80239B44 14400009 */ bnez $v0, .L80239B6C /* 70D858 80239B48 A4A30070 */ sh $v1, 0x70($a1) /* 70D85C 80239B4C 0060102D */ daddu $v0, $v1, $zero /* 70D860 80239B50 00021C00 */ sll $v1, $v0, 0x10 /* 70D864 80239B54 00032403 */ sra $a0, $v1, 0x10 /* 70D868 80239B58 00031FC2 */ srl $v1, $v1, 0x1f /* 70D86C 80239B5C 00832021 */ addu $a0, $a0, $v1 /* 70D870 80239B60 00042043 */ sra $a0, $a0, 1 /* 70D874 80239B64 00441023 */ subu $v0, $v0, $a0 /* 70D878 80239B68 A4A20070 */ sh $v0, 0x70($a1) .L80239B6C: /* 70D87C 80239B6C 8E230000 */ lw $v1, ($s1) /* 70D880 80239B70 84620070 */ lh $v0, 0x70($v1) /* 70D884 80239B74 04420001 */ bltzl $v0, .L80239B7C /* 70D888 80239B78 A4600070 */ sh $zero, 0x70($v1) .L80239B7C: /* 70D88C 80239B7C 8E230000 */ lw $v1, ($s1) /* 70D890 80239B80 84620070 */ lh $v0, 0x70($v1) /* 70D894 80239B84 44820000 */ mtc1 $v0, $f0 /* 70D898 80239B88 00000000 */ nop /* 70D89C 80239B8C 46800020 */ cvt.s.w $f0, $f0 /* 70D8A0 80239B90 46140000 */ add.s $f0, $f0, $f20 /* 70D8A4 80239B94 4600020D */ trunc.w.s $f8, $f0 /* 70D8A8 80239B98 44024000 */ mfc1 $v0, $f8 /* 70D8AC 80239B9C 00000000 */ nop /* 70D8B0 80239BA0 A4620070 */ sh $v0, 0x70($v1) /* 70D8B4 80239BA4 00021400 */ sll $v0, $v0, 0x10 /* 70D8B8 80239BA8 00021403 */ sra $v0, $v0, 0x10 /* 70D8BC 80239BAC 284202EF */ slti $v0, $v0, 0x2ef /* 70D8C0 80239BB0 14400002 */ bnez $v0, .L80239BBC /* 70D8C4 80239BB4 240202EE */ addiu $v0, $zero, 0x2ee /* 70D8C8 80239BB8 A4620070 */ sh $v0, 0x70($v1) .L80239BBC: /* 70D8CC 80239BBC 8CC20000 */ lw $v0, ($a2) /* 70D8D0 80239BC0 284203E9 */ slti $v0, $v0, 0x3e9 /* 70D8D4 80239BC4 14400002 */ bnez $v0, .L80239BD0 /* 70D8D8 80239BC8 240203E8 */ addiu $v0, $zero, 0x3e8 /* 70D8DC 80239BCC ACC20000 */ sw $v0, ($a2) .L80239BD0: /* 70D8E0 80239BD0 8E240000 */ lw $a0, ($s1) /* 70D8E4 80239BD4 94820072 */ lhu $v0, 0x72($a0) /* 70D8E8 80239BD8 94830070 */ lhu $v1, 0x70($a0) /* 70D8EC 80239BDC 3C058024 */ lui $a1, %hi(D_8023D284) /* 70D8F0 80239BE0 24A5D284 */ addiu $a1, $a1, %lo(D_8023D284) /* 70D8F4 80239BE4 00431021 */ addu $v0, $v0, $v1 /* 70D8F8 80239BE8 A4820072 */ sh $v0, 0x72($a0) /* 70D8FC 80239BEC 00021400 */ sll $v0, $v0, 0x10 /* 70D900 80239BF0 8CA30000 */ lw $v1, ($a1) /* 70D904 80239BF4 00021403 */ sra $v0, $v0, 0x10 /* 70D908 80239BF8 24631388 */ addiu $v1, $v1, 0x1388 /* 70D90C 80239BFC 0062182A */ slt $v1, $v1, $v0 /* 70D910 80239C00 1060000F */ beqz $v1, .L80239C40 /* 70D914 80239C04 00000000 */ nop /* 70D918 80239C08 94A20002 */ lhu $v0, 2($a1) /* 70D91C 80239C0C A092005C */ sb $s2, 0x5c($a0) /* 70D920 80239C10 24421388 */ addiu $v0, $v0, 0x1388 /* 70D924 80239C14 A4820072 */ sh $v0, 0x72($a0) /* 70D928 80239C18 8E230000 */ lw $v1, ($s1) /* 70D92C 80239C1C 24020005 */ addiu $v0, $zero, 5 /* 70D930 80239C20 A062005D */ sb $v0, 0x5d($v1) /* 70D934 80239C24 8E230000 */ lw $v1, ($s1) /* 70D938 80239C28 94C20002 */ lhu $v0, 2($a2) /* 70D93C 80239C2C 0808E710 */ j .L80239C40 /* 70D940 80239C30 A4620070 */ sh $v0, 0x70($v1) .L80239C34: /* 70D944 80239C34 3C018024 */ lui $at, %hi(D_8023D274) /* 70D948 80239C38 AC20D274 */ sw $zero, %lo(D_8023D274)($at) /* 70D94C 80239C3C A062005C */ sb $v0, 0x5c($v1) .L80239C40: /* 70D950 80239C40 3C078024 */ lui $a3, %hi(D_8023CCC0_7109D0) /* 70D954 80239C44 24E7CCC0 */ addiu $a3, $a3, %lo(D_8023CCC0_7109D0) /* 70D958 80239C48 8CE50000 */ lw $a1, ($a3) /* 70D95C 80239C4C 80A3005C */ lb $v1, 0x5c($a1) /* 70D960 80239C50 2402000A */ addiu $v0, $zero, 0xa /* 70D964 80239C54 10620005 */ beq $v1, $v0, .L80239C6C /* 70D968 80239C58 2402000B */ addiu $v0, $zero, 0xb /* 70D96C 80239C5C 1062003F */ beq $v1, $v0, .L80239D5C /* 70D970 80239C60 00000000 */ nop /* 70D974 80239C64 0808E792 */ j .L80239E48 /* 70D978 80239C68 00000000 */ nop .L80239C6C: /* 70D97C 80239C6C 3C045555 */ lui $a0, 0x5555 /* 70D980 80239C70 94A20070 */ lhu $v0, 0x70($a1) /* 70D984 80239C74 34845556 */ ori $a0, $a0, 0x5556 /* 70D988 80239C78 00021400 */ sll $v0, $v0, 0x10 /* 70D98C 80239C7C 00021C03 */ sra $v1, $v0, 0x10 /* 70D990 80239C80 00640018 */ mult $v1, $a0 /* 70D994 80239C84 3C014348 */ lui $at, 0x4348 /* 70D998 80239C88 44810000 */ mtc1 $at, $f0 /* 70D99C 80239C8C 2408FFFF */ addiu $t0, $zero, -1 /* 70D9A0 80239C90 3C018024 */ lui $at, %hi(D_8023D274) /* 70D9A4 80239C94 AC28D274 */ sw $t0, %lo(D_8023D274)($at) /* 70D9A8 80239C98 000217C3 */ sra $v0, $v0, 0x1f /* 70D9AC 80239C9C 00004810 */ mfhi $t1 /* 70D9B0 80239CA0 01221023 */ subu $v0, $t1, $v0 /* 70D9B4 80239CA4 00021400 */ sll $v0, $v0, 0x10 /* 70D9B8 80239CA8 00021403 */ sra $v0, $v0, 0x10 /* 70D9BC 80239CAC 00621821 */ addu $v1, $v1, $v0 /* 70D9C0 80239CB0 4483A000 */ mtc1 $v1, $f20 /* 70D9C4 80239CB4 00000000 */ nop /* 70D9C8 80239CB8 4680A520 */ cvt.s.w $f20, $f20 /* 70D9CC 80239CBC 4600A03C */ c.lt.s $f20, $f0 /* 70D9D0 80239CC0 00000000 */ nop /* 70D9D4 80239CC4 45030001 */ bc1tl .L80239CCC /* 70D9D8 80239CC8 46000506 */ mov.s $f20, $f0 .L80239CCC: /* 70D9DC 80239CCC 84A20072 */ lh $v0, 0x72($a1) /* 70D9E0 80239CD0 44820000 */ mtc1 $v0, $f0 /* 70D9E4 80239CD4 00000000 */ nop /* 70D9E8 80239CD8 46800020 */ cvt.s.w $f0, $f0 /* 70D9EC 80239CDC 46140001 */ sub.s $f0, $f0, $f20 /* 70D9F0 80239CE0 3C048024 */ lui $a0, %hi(D_8023D284) /* 70D9F4 80239CE4 2484D284 */ addiu $a0, $a0, %lo(D_8023D284) /* 70D9F8 80239CE8 24061388 */ addiu $a2, $zero, 0x1388 /* 70D9FC 80239CEC 4600020D */ trunc.w.s $f8, $f0 /* 70DA00 80239CF0 44024000 */ mfc1 $v0, $f8 /* 70DA04 80239CF4 00000000 */ nop /* 70DA08 80239CF8 A4A20072 */ sh $v0, 0x72($a1) /* 70DA0C 80239CFC 00021400 */ sll $v0, $v0, 0x10 /* 70DA10 80239D00 8C830000 */ lw $v1, ($a0) /* 70DA14 80239D04 00021403 */ sra $v0, $v0, 0x10 /* 70DA18 80239D08 00C31823 */ subu $v1, $a2, $v1 /* 70DA1C 80239D0C 0043102A */ slt $v0, $v0, $v1 /* 70DA20 80239D10 1040004D */ beqz $v0, .L80239E48 /* 70DA24 80239D14 2403000B */ addiu $v1, $zero, 0xb /* 70DA28 80239D18 94820002 */ lhu $v0, 2($a0) /* 70DA2C 80239D1C A0A3005C */ sb $v1, 0x5c($a1) /* 70DA30 80239D20 00C21023 */ subu $v0, $a2, $v0 /* 70DA34 80239D24 A4A20072 */ sh $v0, 0x72($a1) /* 70DA38 80239D28 8CE30000 */ lw $v1, ($a3) /* 70DA3C 80239D2C 24020005 */ addiu $v0, $zero, 5 /* 70DA40 80239D30 A062005D */ sb $v0, 0x5d($v1) /* 70DA44 80239D34 8C820000 */ lw $v0, ($a0) /* 70DA48 80239D38 8CE30000 */ lw $v1, ($a3) /* 70DA4C 80239D3C 244203E8 */ addiu $v0, $v0, 0x3e8 /* 70DA50 80239D40 A468005A */ sh $t0, 0x5a($v1) /* 70DA54 80239D44 AC820000 */ sw $v0, ($a0) /* 70DA58 80239D48 28421389 */ slti $v0, $v0, 0x1389 /* 70DA5C 80239D4C 5040003E */ beql $v0, $zero, .L80239E48 /* 70DA60 80239D50 AC860000 */ sw $a2, ($a0) /* 70DA64 80239D54 0808E792 */ j .L80239E48 /* 70DA68 80239D58 00000000 */ nop .L80239D5C: /* 70DA6C 80239D5C 3C018024 */ lui $at, %hi(D_8023D274) /* 70DA70 80239D60 AC20D274 */ sw $zero, %lo(D_8023D274)($at) /* 70DA74 80239D64 A0A0005C */ sb $zero, 0x5c($a1) /* 70DA78 80239D68 8CE30000 */ lw $v1, ($a3) /* 70DA7C 80239D6C 84620070 */ lh $v0, 0x70($v1) /* 70DA80 80239D70 3C018024 */ lui $at, %hi(D_8023D1C8_710ED8) /* 70DA84 80239D74 D422D1C8 */ ldc1 $f2, %lo(D_8023D1C8_710ED8)($at) /* 70DA88 80239D78 44820000 */ mtc1 $v0, $f0 /* 70DA8C 80239D7C 00000000 */ nop /* 70DA90 80239D80 46800021 */ cvt.d.w $f0, $f0 /* 70DA94 80239D84 46220083 */ div.d $f2, $f0, $f2 /* 70DA98 80239D88 46220001 */ sub.d $f0, $f0, $f2 /* 70DA9C 80239D8C 4620020D */ trunc.w.d $f8, $f0 /* 70DAA0 80239D90 44024000 */ mfc1 $v0, $f8 /* 70DAA4 80239D94 00000000 */ nop /* 70DAA8 80239D98 A4620070 */ sh $v0, 0x70($v1) /* 70DAAC 80239D9C 84630070 */ lh $v1, 0x70($v1) /* 70DAB0 80239DA0 3C014049 */ lui $at, 0x4049 /* 70DAB4 80239DA4 34210FD0 */ ori $at, $at, 0xfd0 /* 70DAB8 80239DA8 44810000 */ mtc1 $at, $f0 /* 70DABC 80239DAC 44836000 */ mtc1 $v1, $f12 /* 70DAC0 80239DB0 00000000 */ nop /* 70DAC4 80239DB4 46806320 */ cvt.s.w $f12, $f12 /* 70DAC8 80239DB8 46006302 */ mul.s $f12, $f12, $f0 /* 70DACC 80239DBC 00000000 */ nop /* 70DAD0 80239DC0 3C013F00 */ lui $at, 0x3f00 /* 70DAD4 80239DC4 44810000 */ mtc1 $at, $f0 /* 70DAD8 80239DC8 00000000 */ nop /* 70DADC 80239DCC 46006302 */ mul.s $f12, $f12, $f0 /* 70DAE0 80239DD0 00000000 */ nop /* 70DAE4 80239DD4 00021400 */ sll $v0, $v0, 0x10 /* 70DAE8 80239DD8 3C01443B */ lui $at, 0x443b /* 70DAEC 80239DDC 34218000 */ ori $at, $at, 0x8000 /* 70DAF0 80239DE0 44810000 */ mtc1 $at, $f0 /* 70DAF4 80239DE4 00021403 */ sra $v0, $v0, 0x10 /* 70DAF8 80239DE8 3C018024 */ lui $at, %hi(D_8023D27C) /* 70DAFC 80239DEC AC22D27C */ sw $v0, %lo(D_8023D27C)($at) /* 70DB00 80239DF0 0C00A85B */ jal sin_rad /* 70DB04 80239DF4 46006303 */ div.s $f12, $f12, $f0 /* 70DB08 80239DF8 3C013FF0 */ lui $at, 0x3ff0 /* 70DB0C 80239DFC 44811800 */ mtc1 $at, $f3 /* 70DB10 80239E00 44801000 */ mtc1 $zero, $f2 /* 70DB14 80239E04 46000021 */ cvt.d.s $f0, $f0 /* 70DB18 80239E08 46201081 */ sub.d $f2, $f2, $f0 /* 70DB1C 80239E0C 3C014020 */ lui $at, 0x4020 /* 70DB20 80239E10 44810800 */ mtc1 $at, $f1 /* 70DB24 80239E14 44800000 */ mtc1 $zero, $f0 /* 70DB28 80239E18 00000000 */ nop /* 70DB2C 80239E1C 46201082 */ mul.d $f2, $f2, $f0 /* 70DB30 80239E20 00000000 */ nop /* 70DB34 80239E24 3C01402A */ lui $at, 0x402a /* 70DB38 80239E28 44810800 */ mtc1 $at, $f1 /* 70DB3C 80239E2C 44800000 */ mtc1 $zero, $f0 /* 70DB40 80239E30 00000000 */ nop /* 70DB44 80239E34 46201080 */ add.d $f2, $f2, $f0 /* 70DB48 80239E38 4620120D */ trunc.w.d $f8, $f2 /* 70DB4C 80239E3C 3C018024 */ lui $at, %hi(D_8023D278) /* 70DB50 80239E40 0808E680 */ j .L80239A00 /* 70DB54 80239E44 E428D278 */ swc1 $f8, %lo(D_8023D278)($at) .L80239E48: /* 70DB58 80239E48 3C048024 */ lui $a0, %hi(D_8023CCC0_7109D0) /* 70DB5C 80239E4C 8C84CCC0 */ lw $a0, %lo(D_8023CCC0_7109D0)($a0) /* 70DB60 80239E50 8082005C */ lb $v0, 0x5c($a0) /* 70DB64 80239E54 14400008 */ bnez $v0, .L80239E78 /* 70DB68 80239E58 00000000 */ nop /* 70DB6C 80239E5C 84830070 */ lh $v1, 0x70($a0) /* 70DB70 80239E60 04620001 */ bltzl $v1, .L80239E68 /* 70DB74 80239E64 24630003 */ addiu $v1, $v1, 3 .L80239E68: /* 70DB78 80239E68 94820044 */ lhu $v0, 0x44($a0) /* 70DB7C 80239E6C 00031883 */ sra $v1, $v1, 2 /* 70DB80 80239E70 00431021 */ addu $v0, $v0, $v1 /* 70DB84 80239E74 A4820044 */ sh $v0, 0x44($a0) .L80239E78: /* 70DB88 80239E78 3C048024 */ lui $a0, %hi(D_8023CCC0_7109D0) /* 70DB8C 80239E7C 2484CCC0 */ addiu $a0, $a0, %lo(D_8023CCC0_7109D0) /* 70DB90 80239E80 8C830000 */ lw $v1, ($a0) /* 70DB94 80239E84 84620044 */ lh $v0, 0x44($v1) /* 70DB98 80239E88 28422711 */ slti $v0, $v0, 0x2711 /* 70DB9C 80239E8C 14400002 */ bnez $v0, .L80239E98 /* 70DBA0 80239E90 24022710 */ addiu $v0, $zero, 0x2710 /* 70DBA4 80239E94 A4620044 */ sh $v0, 0x44($v1) .L80239E98: /* 70DBA8 80239E98 8C850000 */ lw $a1, ($a0) /* 70DBAC 80239E9C 3C0651EB */ lui $a2, 0x51eb /* 70DBB0 80239EA0 94A30072 */ lhu $v1, 0x72($a1) /* 70DBB4 80239EA4 34C6851F */ ori $a2, $a2, 0x851f /* 70DBB8 80239EA8 00031C00 */ sll $v1, $v1, 0x10 /* 70DBBC 80239EAC 00031403 */ sra $v0, $v1, 0x10 /* 70DBC0 80239EB0 00460018 */ mult $v0, $a2 /* 70DBC4 80239EB4 94A40070 */ lhu $a0, 0x70($a1) /* 70DBC8 80239EB8 00031FC3 */ sra $v1, $v1, 0x1f /* 70DBCC 80239EBC 00042400 */ sll $a0, $a0, 0x10 /* 70DBD0 80239EC0 00004810 */ mfhi $t1 /* 70DBD4 80239EC4 00091143 */ sra $v0, $t1, 5 /* 70DBD8 80239EC8 00431023 */ subu $v0, $v0, $v1 /* 70DBDC 80239ECC 00041C03 */ sra $v1, $a0, 0x10 /* 70DBE0 80239ED0 00021400 */ sll $v0, $v0, 0x10 /* 70DBE4 80239ED4 00660018 */ mult $v1, $a2 /* 70DBE8 80239ED8 00021403 */ sra $v0, $v0, 0x10 /* 70DBEC 80239EDC 3C038024 */ lui $v1, %hi(D_8023D270) /* 70DBF0 80239EE0 2463D270 */ addiu $v1, $v1, %lo(D_8023D270) /* 70DBF4 80239EE4 000427C3 */ sra $a0, $a0, 0x1f /* 70DBF8 80239EE8 3C018024 */ lui $at, %hi(D_8023D26C) /* 70DBFC 80239EEC AC22D26C */ sw $v0, %lo(D_8023D26C)($at) /* 70DC00 80239EF0 00004810 */ mfhi $t1 /* 70DC04 80239EF4 00091143 */ sra $v0, $t1, 5 /* 70DC08 80239EF8 00441023 */ subu $v0, $v0, $a0 /* 70DC0C 80239EFC 00021400 */ sll $v0, $v0, 0x10 /* 70DC10 80239F00 00021403 */ sra $v0, $v0, 0x10 /* 70DC14 80239F04 AC620000 */ sw $v0, ($v1) /* 70DC18 80239F08 2842000B */ slti $v0, $v0, 0xb /* 70DC1C 80239F0C 14400002 */ bnez $v0, .L80239F18 /* 70DC20 80239F10 2402000A */ addiu $v0, $zero, 0xa /* 70DC24 80239F14 AC620000 */ sw $v0, ($v1) .L80239F18: /* 70DC28 80239F18 94A40044 */ lhu $a0, 0x44($a1) /* 70DC2C 80239F1C 00042400 */ sll $a0, $a0, 0x10 /* 70DC30 80239F20 00041403 */ sra $v0, $a0, 0x10 /* 70DC34 80239F24 00460018 */ mult $v0, $a2 /* 70DC38 80239F28 0000102D */ daddu $v0, $zero, $zero /* 70DC3C 80239F2C 000427C3 */ sra $a0, $a0, 0x1f /* 70DC40 80239F30 00004810 */ mfhi $t1 /* 70DC44 80239F34 00091943 */ sra $v1, $t1, 5 /* 70DC48 80239F38 00641823 */ subu $v1, $v1, $a0 /* 70DC4C 80239F3C 00031C00 */ sll $v1, $v1, 0x10 /* 70DC50 80239F40 00031C03 */ sra $v1, $v1, 0x10 /* 70DC54 80239F44 3C018024 */ lui $at, %hi(D_8023D280) /* 70DC58 80239F48 AC23D280 */ sw $v1, %lo(D_8023D280)($at) .L80239F4C: /* 70DC5C 80239F4C 8FBF004C */ lw $ra, 0x4c($sp) /* 70DC60 80239F50 8FB60048 */ lw $s6, 0x48($sp) /* 70DC64 80239F54 8FB50044 */ lw $s5, 0x44($sp) /* 70DC68 80239F58 8FB40040 */ lw $s4, 0x40($sp) /* 70DC6C 80239F5C 8FB3003C */ lw $s3, 0x3c($sp) /* 70DC70 80239F60 8FB20038 */ lw $s2, 0x38($sp) /* 70DC74 80239F64 8FB10034 */ lw $s1, 0x34($sp) /* 70DC78 80239F68 8FB00030 */ lw $s0, 0x30($sp) /* 70DC7C 80239F6C D7BA0068 */ ldc1 $f26, 0x68($sp) /* 70DC80 80239F70 D7B80060 */ ldc1 $f24, 0x60($sp) /* 70DC84 80239F74 D7B60058 */ ldc1 $f22, 0x58($sp) /* 70DC88 80239F78 D7B40050 */ ldc1 $f20, 0x50($sp) /* 70DC8C 80239F7C 03E00008 */ jr $ra /* 70DC90 80239F80 27BD0070 */ addiu $sp, $sp, 0x70