Naming battle partner segments + disasm

This commit is contained in:
Ethan Roseman 2021-02-03 19:43:57 +09:00
parent 20a99f4037
commit a19de2273e
111 changed files with 8770 additions and 216 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,161 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238000_6FAD10
/* 6FAD10 80238000 27BDFFC8 */ addiu $sp, $sp, -0x38
/* 6FAD14 80238004 AFB10014 */ sw $s1, 0x14($sp)
/* 6FAD18 80238008 0080882D */ daddu $s1, $a0, $zero
/* 6FAD1C 8023800C AFBF0020 */ sw $ra, 0x20($sp)
/* 6FAD20 80238010 AFB3001C */ sw $s3, 0x1c($sp)
/* 6FAD24 80238014 AFB20018 */ sw $s2, 0x18($sp)
/* 6FAD28 80238018 AFB00010 */ sw $s0, 0x10($sp)
/* 6FAD2C 8023801C F7B60030 */ sdc1 $f22, 0x30($sp)
/* 6FAD30 80238020 F7B40028 */ sdc1 $f20, 0x28($sp)
/* 6FAD34 80238024 8E30000C */ lw $s0, 0xc($s1)
/* 6FAD38 80238028 8E050000 */ lw $a1, ($s0)
/* 6FAD3C 8023802C 0C0B1EAF */ jal get_variable
/* 6FAD40 80238030 26100004 */ addiu $s0, $s0, 4
/* 6FAD44 80238034 8E050000 */ lw $a1, ($s0)
/* 6FAD48 80238038 26100004 */ addiu $s0, $s0, 4
/* 6FAD4C 8023803C 0220202D */ daddu $a0, $s1, $zero
/* 6FAD50 80238040 0C0B1EAF */ jal get_variable
/* 6FAD54 80238044 0040982D */ daddu $s3, $v0, $zero
/* 6FAD58 80238048 0220202D */ daddu $a0, $s1, $zero
/* 6FAD5C 8023804C 8E050000 */ lw $a1, ($s0)
/* 6FAD60 80238050 0C0B1EAF */ jal get_variable
/* 6FAD64 80238054 0040802D */ daddu $s0, $v0, $zero
/* 6FAD68 80238058 4493A000 */ mtc1 $s3, $f20
/* 6FAD6C 8023805C 00000000 */ nop
/* 6FAD70 80238060 4680A520 */ cvt.s.w $f20, $f20
/* 6FAD74 80238064 0040902D */ daddu $s2, $v0, $zero
/* 6FAD78 80238068 4492B000 */ mtc1 $s2, $f22
/* 6FAD7C 8023806C 00000000 */ nop
/* 6FAD80 80238070 4680B5A0 */ cvt.s.w $f22, $f22
/* 6FAD84 80238074 44900000 */ mtc1 $s0, $f0
/* 6FAD88 80238078 00000000 */ nop
/* 6FAD8C 8023807C 46800020 */ cvt.s.w $f0, $f0
/* 6FAD90 80238080 4405A000 */ mfc1 $a1, $f20
/* 6FAD94 80238084 4407B000 */ mfc1 $a3, $f22
/* 6FAD98 80238088 44060000 */ mfc1 $a2, $f0
/* 6FAD9C 8023808C 0C01C04C */ jal func_80070130
/* 6FADA0 80238090 0000202D */ daddu $a0, $zero, $zero
/* 6FADA4 80238094 3C03800E */ lui $v1, %hi(gBattleStatus+0x17C)
/* 6FADA8 80238098 8463C1EC */ lh $v1, %lo(gBattleStatus+0x17C)($v1)
/* 6FADAC 8023809C 24020093 */ addiu $v0, $zero, 0x93
/* 6FADB0 802380A0 1062001F */ beq $v1, $v0, .L80238120
/* 6FADB4 802380A4 28620094 */ slti $v0, $v1, 0x94
/* 6FADB8 802380A8 10400005 */ beqz $v0, .L802380C0
/* 6FADBC 802380AC 24020092 */ addiu $v0, $zero, 0x92
/* 6FADC0 802380B0 10620008 */ beq $v1, $v0, .L802380D4
/* 6FADC4 802380B4 00000000 */ nop
/* 6FADC8 802380B8 0808E074 */ j .L802381D0
/* 6FADCC 802380BC 00000000 */ nop
.L802380C0:
/* 6FADD0 802380C0 24020094 */ addiu $v0, $zero, 0x94
/* 6FADD4 802380C4 1062002C */ beq $v1, $v0, .L80238178
/* 6FADD8 802380C8 00000000 */ nop
/* 6FADDC 802380CC 0808E074 */ j .L802381D0
/* 6FADE0 802380D0 00000000 */ nop
.L802380D4:
/* 6FADE4 802380D4 8E2200AC */ lw $v0, 0xac($s1)
/* 6FADE8 802380D8 18400009 */ blez $v0, .L80238100
/* 6FADEC 802380DC 26020014 */ addiu $v0, $s0, 0x14
/* 6FADF0 802380E0 44820000 */ mtc1 $v0, $f0
/* 6FADF4 802380E4 00000000 */ nop
/* 6FADF8 802380E8 46800020 */ cvt.s.w $f0, $f0
/* 6FADFC 802380EC 4405A000 */ mfc1 $a1, $f20
/* 6FAE00 802380F0 4407B000 */ mfc1 $a3, $f22
/* 6FAE04 802380F4 44060000 */ mfc1 $a2, $f0
/* 6FAE08 802380F8 0808E082 */ j .L80238208
/* 6FAE0C 802380FC 24040001 */ addiu $a0, $zero, 1
.L80238100:
/* 6FAE10 80238100 44820000 */ mtc1 $v0, $f0
/* 6FAE14 80238104 00000000 */ nop
/* 6FAE18 80238108 46800020 */ cvt.s.w $f0, $f0
/* 6FAE1C 8023810C 4405A000 */ mfc1 $a1, $f20
/* 6FAE20 80238110 4407B000 */ mfc1 $a3, $f22
/* 6FAE24 80238114 44060000 */ mfc1 $a2, $f0
/* 6FAE28 80238118 0808E082 */ j .L80238208
/* 6FAE2C 8023811C 0000202D */ daddu $a0, $zero, $zero
.L80238120:
/* 6FAE30 80238120 8E2200AC */ lw $v0, 0xac($s1)
/* 6FAE34 80238124 18400009 */ blez $v0, .L8023814C
/* 6FAE38 80238128 26020014 */ addiu $v0, $s0, 0x14
/* 6FAE3C 8023812C 44820000 */ mtc1 $v0, $f0
/* 6FAE40 80238130 00000000 */ nop
/* 6FAE44 80238134 46800020 */ cvt.s.w $f0, $f0
/* 6FAE48 80238138 4405A000 */ mfc1 $a1, $f20
/* 6FAE4C 8023813C 4407B000 */ mfc1 $a3, $f22
/* 6FAE50 80238140 44060000 */ mfc1 $a2, $f0
/* 6FAE54 80238144 0808E05A */ j .L80238168
/* 6FAE58 80238148 24040001 */ addiu $a0, $zero, 1
.L8023814C:
/* 6FAE5C 8023814C 44820000 */ mtc1 $v0, $f0
/* 6FAE60 80238150 00000000 */ nop
/* 6FAE64 80238154 46800020 */ cvt.s.w $f0, $f0
/* 6FAE68 80238158 4405A000 */ mfc1 $a1, $f20
/* 6FAE6C 8023815C 4407B000 */ mfc1 $a3, $f22
/* 6FAE70 80238160 44060000 */ mfc1 $a2, $f0
/* 6FAE74 80238164 0000202D */ daddu $a0, $zero, $zero
.L80238168:
/* 6FAE78 80238168 0C01C07C */ jal func_800701F0
/* 6FAE7C 8023816C 00000000 */ nop
/* 6FAE80 80238170 0808E085 */ j .L80238214
/* 6FAE84 80238174 24042017 */ addiu $a0, $zero, 0x2017
.L80238178:
/* 6FAE88 80238178 8E2200AC */ lw $v0, 0xac($s1)
/* 6FAE8C 8023817C 18400009 */ blez $v0, .L802381A4
/* 6FAE90 80238180 26020014 */ addiu $v0, $s0, 0x14
/* 6FAE94 80238184 44820000 */ mtc1 $v0, $f0
/* 6FAE98 80238188 00000000 */ nop
/* 6FAE9C 8023818C 46800020 */ cvt.s.w $f0, $f0
/* 6FAEA0 80238190 4405A000 */ mfc1 $a1, $f20
/* 6FAEA4 80238194 4407B000 */ mfc1 $a3, $f22
/* 6FAEA8 80238198 44060000 */ mfc1 $a2, $f0
/* 6FAEAC 8023819C 0808E070 */ j .L802381C0
/* 6FAEB0 802381A0 24040002 */ addiu $a0, $zero, 2
.L802381A4:
/* 6FAEB4 802381A4 44820000 */ mtc1 $v0, $f0
/* 6FAEB8 802381A8 00000000 */ nop
/* 6FAEBC 802381AC 46800020 */ cvt.s.w $f0, $f0
/* 6FAEC0 802381B0 4405A000 */ mfc1 $a1, $f20
/* 6FAEC4 802381B4 4407B000 */ mfc1 $a3, $f22
/* 6FAEC8 802381B8 44060000 */ mfc1 $a2, $f0
/* 6FAECC 802381BC 24040001 */ addiu $a0, $zero, 1
.L802381C0:
/* 6FAED0 802381C0 0C01C07C */ jal func_800701F0
/* 6FAED4 802381C4 00000000 */ nop
/* 6FAED8 802381C8 0808E085 */ j .L80238214
/* 6FAEDC 802381CC 24042017 */ addiu $a0, $zero, 0x2017
.L802381D0:
/* 6FAEE0 802381D0 44930000 */ mtc1 $s3, $f0
/* 6FAEE4 802381D4 00000000 */ nop
/* 6FAEE8 802381D8 46800020 */ cvt.s.w $f0, $f0
/* 6FAEEC 802381DC 26020014 */ addiu $v0, $s0, 0x14
/* 6FAEF0 802381E0 44050000 */ mfc1 $a1, $f0
/* 6FAEF4 802381E4 44820000 */ mtc1 $v0, $f0
/* 6FAEF8 802381E8 00000000 */ nop
/* 6FAEFC 802381EC 46800020 */ cvt.s.w $f0, $f0
/* 6FAF00 802381F0 44060000 */ mfc1 $a2, $f0
/* 6FAF04 802381F4 44920000 */ mtc1 $s2, $f0
/* 6FAF08 802381F8 00000000 */ nop
/* 6FAF0C 802381FC 46800020 */ cvt.s.w $f0, $f0
/* 6FAF10 80238200 44070000 */ mfc1 $a3, $f0
/* 6FAF14 80238204 0000202D */ daddu $a0, $zero, $zero
.L80238208:
/* 6FAF18 80238208 0C01C07C */ jal func_800701F0
/* 6FAF1C 8023820C 00000000 */ nop
/* 6FAF20 80238210 24042016 */ addiu $a0, $zero, 0x2016
.L80238214:
/* 6FAF24 80238214 0C05272D */ jal play_sound
/* 6FAF28 80238218 00000000 */ nop
/* 6FAF2C 8023821C 8FBF0020 */ lw $ra, 0x20($sp)
/* 6FAF30 80238220 8FB3001C */ lw $s3, 0x1c($sp)
/* 6FAF34 80238224 8FB20018 */ lw $s2, 0x18($sp)
/* 6FAF38 80238228 8FB10014 */ lw $s1, 0x14($sp)
/* 6FAF3C 8023822C 8FB00010 */ lw $s0, 0x10($sp)
/* 6FAF40 80238230 D7B60030 */ ldc1 $f22, 0x30($sp)
/* 6FAF44 80238234 D7B40028 */ ldc1 $f20, 0x28($sp)
/* 6FAF48 80238238 24020002 */ addiu $v0, $zero, 2
/* 6FAF4C 8023823C 03E00008 */ jr $ra
/* 6FAF50 80238240 27BD0038 */ addiu $sp, $sp, 0x38

View File

@ -0,0 +1,77 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238244_6FAF54
/* 6FAF54 80238244 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 6FAF58 80238248 AFB00018 */ sw $s0, 0x18($sp)
/* 6FAF5C 8023824C 3C10800E */ lui $s0, %hi(gBattleStatus+0xDC)
/* 6FAF60 80238250 8E10C14C */ lw $s0, %lo(gBattleStatus+0xDC)($s0)
/* 6FAF64 80238254 AFBF0020 */ sw $ra, 0x20($sp)
/* 6FAF68 80238258 AFB1001C */ sw $s1, 0x1c($sp)
/* 6FAF6C 8023825C 10A00007 */ beqz $a1, .L8023827C
/* 6FAF70 80238260 2611000C */ addiu $s1, $s0, 0xc
/* 6FAF74 80238264 C6000144 */ lwc1 $f0, 0x144($s0)
/* 6FAF78 80238268 C6020148 */ lwc1 $f2, 0x148($s0)
/* 6FAF7C 8023826C C604014C */ lwc1 $f4, 0x14c($s0)
/* 6FAF80 80238270 E600000C */ swc1 $f0, 0xc($s0)
/* 6FAF84 80238274 E6020010 */ swc1 $f2, 0x10($s0)
/* 6FAF88 80238278 E6040014 */ swc1 $f4, 0x14($s0)
.L8023827C:
/* 6FAF8C 8023827C 8E05004C */ lw $a1, 0x4c($s0)
/* 6FAF90 80238280 8E060054 */ lw $a2, 0x54($s0)
/* 6FAF94 80238284 0C09904A */ jal add_xz_vec3f
/* 6FAF98 80238288 0220202D */ daddu $a0, $s1, $zero
/* 6FAF9C 8023828C C602004C */ lwc1 $f2, 0x4c($s0)
/* 6FAFA0 80238290 3C014080 */ lui $at, 0x4080
/* 6FAFA4 80238294 44810000 */ mtc1 $at, $f0
/* 6FAFA8 80238298 00000000 */ nop
/* 6FAFAC 8023829C 4600103C */ c.lt.s $f2, $f0
/* 6FAFB0 802382A0 00000000 */ nop
/* 6FAFB4 802382A4 45000007 */ bc1f .L802382C4
/* 6FAFB8 802382A8 0000202D */ daddu $a0, $zero, $zero
/* 6FAFBC 802382AC C6000054 */ lwc1 $f0, 0x54($s0)
/* 6FAFC0 802382B0 E7A00010 */ swc1 $f0, 0x10($sp)
/* 6FAFC4 802382B4 8E05000C */ lw $a1, 0xc($s0)
/* 6FAFC8 802382B8 8E060010 */ lw $a2, 0x10($s0)
/* 6FAFCC 802382BC 0808E0B7 */ j .L802382DC
/* 6FAFD0 802382C0 8E070014 */ lw $a3, 0x14($s0)
.L802382C4:
/* 6FAFD4 802382C4 C6000054 */ lwc1 $f0, 0x54($s0)
/* 6FAFD8 802382C8 E7A00010 */ swc1 $f0, 0x10($sp)
/* 6FAFDC 802382CC 8E05000C */ lw $a1, 0xc($s0)
/* 6FAFE0 802382D0 8E060010 */ lw $a2, 0x10($s0)
/* 6FAFE4 802382D4 8E070014 */ lw $a3, 0x14($s0)
/* 6FAFE8 802382D8 24040001 */ addiu $a0, $zero, 1
.L802382DC:
/* 6FAFEC 802382DC 0C0990BC */ jal play_movement_dust_effects
/* 6FAFF0 802382E0 00000000 */ nop
/* 6FAFF4 802382E4 C6200040 */ lwc1 $f0, 0x40($s1)
/* 6FAFF8 802382E8 3C013FF8 */ lui $at, 0x3ff8
/* 6FAFFC 802382EC 44811800 */ mtc1 $at, $f3
/* 6FB000 802382F0 44801000 */ mtc1 $zero, $f2
/* 6FB004 802382F4 46000021 */ cvt.d.s $f0, $f0
/* 6FB008 802382F8 46220003 */ div.d $f0, $f0, $f2
/* 6FB00C 802382FC C6220000 */ lwc1 $f2, ($s1)
/* 6FB010 80238300 46200020 */ cvt.s.d $f0, $f0
/* 6FB014 80238304 E6200040 */ swc1 $f0, 0x40($s1)
/* 6FB018 80238308 E6020144 */ swc1 $f2, 0x144($s0)
/* 6FB01C 8023830C C6200004 */ lwc1 $f0, 4($s1)
/* 6FB020 80238310 E6000148 */ swc1 $f0, 0x148($s0)
/* 6FB024 80238314 C6200008 */ lwc1 $f0, 8($s1)
/* 6FB028 80238318 E600014C */ swc1 $f0, 0x14c($s0)
/* 6FB02C 8023831C C6200040 */ lwc1 $f0, 0x40($s1)
/* 6FB030 80238320 3C013FF0 */ lui $at, 0x3ff0
/* 6FB034 80238324 44811800 */ mtc1 $at, $f3
/* 6FB038 80238328 44801000 */ mtc1 $zero, $f2
/* 6FB03C 8023832C 46000021 */ cvt.d.s $f0, $f0
/* 6FB040 80238330 4622003C */ c.lt.d $f0, $f2
/* 6FB044 80238334 00000000 */ nop
/* 6FB048 80238338 45010002 */ bc1t .L80238344
/* 6FB04C 8023833C 24020002 */ addiu $v0, $zero, 2
/* 6FB050 80238340 0000102D */ daddu $v0, $zero, $zero
.L80238344:
/* 6FB054 80238344 8FBF0020 */ lw $ra, 0x20($sp)
/* 6FB058 80238348 8FB1001C */ lw $s1, 0x1c($sp)
/* 6FB05C 8023834C 8FB00018 */ lw $s0, 0x18($sp)
/* 6FB060 80238350 03E00008 */ jr $ra
/* 6FB064 80238354 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -0,0 +1,92 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238358_6FB068
/* 6FB068 80238358 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 6FB06C 8023835C AFB10014 */ sw $s1, 0x14($sp)
/* 6FB070 80238360 0080882D */ daddu $s1, $a0, $zero
/* 6FB074 80238364 AFBF0018 */ sw $ra, 0x18($sp)
/* 6FB078 80238368 AFB00010 */ sw $s0, 0x10($sp)
/* 6FB07C 8023836C 8E22000C */ lw $v0, 0xc($s1)
/* 6FB080 80238370 8C450000 */ lw $a1, ($v0)
/* 6FB084 80238374 3C10800E */ lui $s0, %hi(gBattleStatus+0xDC)
/* 6FB088 80238378 8E10C14C */ lw $s0, %lo(gBattleStatus+0xDC)($s0)
/* 6FB08C 8023837C 0C0B1EAF */ jal get_variable
/* 6FB090 80238380 00000000 */ nop
/* 6FB094 80238384 8E030008 */ lw $v1, 8($s0)
/* 6FB098 80238388 0040282D */ daddu $a1, $v0, $zero
/* 6FB09C 8023838C 90630006 */ lbu $v1, 6($v1)
/* 6FB0A0 80238390 24020001 */ addiu $v0, $zero, 1
/* 6FB0A4 80238394 1062001A */ beq $v1, $v0, .L80238400
/* 6FB0A8 80238398 0000202D */ daddu $a0, $zero, $zero
/* 6FB0AC 8023839C 28620002 */ slti $v0, $v1, 2
/* 6FB0B0 802383A0 10400005 */ beqz $v0, .L802383B8
/* 6FB0B4 802383A4 24020002 */ addiu $v0, $zero, 2
/* 6FB0B8 802383A8 10600007 */ beqz $v1, .L802383C8
/* 6FB0BC 802383AC 28A20064 */ slti $v0, $a1, 0x64
/* 6FB0C0 802383B0 0808E11C */ j .L80238470
/* 6FB0C4 802383B4 00000000 */ nop
.L802383B8:
/* 6FB0C8 802383B8 1062001F */ beq $v1, $v0, .L80238438
/* 6FB0CC 802383BC 28A20064 */ slti $v0, $a1, 0x64
/* 6FB0D0 802383C0 0808E11C */ j .L80238470
/* 6FB0D4 802383C4 00000000 */ nop
.L802383C8:
/* 6FB0D8 802383C8 28A20024 */ slti $v0, $a1, 0x24
/* 6FB0DC 802383CC 14400027 */ bnez $v0, .L8023846C
/* 6FB0E0 802383D0 24040001 */ addiu $a0, $zero, 1
/* 6FB0E4 802383D4 28A2003D */ slti $v0, $a1, 0x3d
/* 6FB0E8 802383D8 14400024 */ bnez $v0, .L8023846C
/* 6FB0EC 802383DC 24040002 */ addiu $a0, $zero, 2
/* 6FB0F0 802383E0 28A20051 */ slti $v0, $a1, 0x51
/* 6FB0F4 802383E4 14400021 */ bnez $v0, .L8023846C
/* 6FB0F8 802383E8 24040003 */ addiu $a0, $zero, 3
/* 6FB0FC 802383EC 28A20064 */ slti $v0, $a1, 0x64
/* 6FB100 802383F0 1040001F */ beqz $v0, .L80238470
/* 6FB104 802383F4 24040005 */ addiu $a0, $zero, 5
/* 6FB108 802383F8 0808E11C */ j .L80238470
/* 6FB10C 802383FC 24040004 */ addiu $a0, $zero, 4
.L80238400:
/* 6FB110 80238400 28A20024 */ slti $v0, $a1, 0x24
/* 6FB114 80238404 14400019 */ bnez $v0, .L8023846C
/* 6FB118 80238408 24040001 */ addiu $a0, $zero, 1
/* 6FB11C 8023840C 28A2003D */ slti $v0, $a1, 0x3d
/* 6FB120 80238410 14400016 */ bnez $v0, .L8023846C
/* 6FB124 80238414 24040003 */ addiu $a0, $zero, 3
/* 6FB128 80238418 28A20051 */ slti $v0, $a1, 0x51
/* 6FB12C 8023841C 14400013 */ bnez $v0, .L8023846C
/* 6FB130 80238420 24040004 */ addiu $a0, $zero, 4
/* 6FB134 80238424 28A20064 */ slti $v0, $a1, 0x64
/* 6FB138 80238428 10400011 */ beqz $v0, .L80238470
/* 6FB13C 8023842C 24040006 */ addiu $a0, $zero, 6
/* 6FB140 80238430 0808E11C */ j .L80238470
/* 6FB144 80238434 24040005 */ addiu $a0, $zero, 5
.L80238438:
/* 6FB148 80238438 28A20024 */ slti $v0, $a1, 0x24
/* 6FB14C 8023843C 1440000B */ bnez $v0, .L8023846C
/* 6FB150 80238440 24040001 */ addiu $a0, $zero, 1
/* 6FB154 80238444 28A2003D */ slti $v0, $a1, 0x3d
/* 6FB158 80238448 14400008 */ bnez $v0, .L8023846C
/* 6FB15C 8023844C 24040003 */ addiu $a0, $zero, 3
/* 6FB160 80238450 28A20051 */ slti $v0, $a1, 0x51
/* 6FB164 80238454 14400005 */ bnez $v0, .L8023846C
/* 6FB168 80238458 24040005 */ addiu $a0, $zero, 5
/* 6FB16C 8023845C 28A20064 */ slti $v0, $a1, 0x64
/* 6FB170 80238460 10400003 */ beqz $v0, .L80238470
/* 6FB174 80238464 24040007 */ addiu $a0, $zero, 7
/* 6FB178 80238468 24040006 */ addiu $a0, $zero, 6
.L8023846C:
/* 6FB17C 8023846C 28A20064 */ slti $v0, $a1, 0x64
.L80238470:
/* 6FB180 80238470 54400003 */ bnel $v0, $zero, .L80238480
/* 6FB184 80238474 AE200084 */ sw $zero, 0x84($s1)
/* 6FB188 80238478 24020001 */ addiu $v0, $zero, 1
/* 6FB18C 8023847C AE220084 */ sw $v0, 0x84($s1)
.L80238480:
/* 6FB190 80238480 AE2400C0 */ sw $a0, 0xc0($s1)
/* 6FB194 80238484 8FBF0018 */ lw $ra, 0x18($sp)
/* 6FB198 80238488 8FB10014 */ lw $s1, 0x14($sp)
/* 6FB19C 8023848C 8FB00010 */ lw $s0, 0x10($sp)
/* 6FB1A0 80238490 24020002 */ addiu $v0, $zero, 2
/* 6FB1A4 80238494 03E00008 */ jr $ra
/* 6FB1A8 80238498 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -0,0 +1,70 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_8023849C_6FB1AC
/* 6FB1AC 8023849C 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 6FB1B0 802384A0 AFB10014 */ sw $s1, 0x14($sp)
/* 6FB1B4 802384A4 0080882D */ daddu $s1, $a0, $zero
/* 6FB1B8 802384A8 AFBF0018 */ sw $ra, 0x18($sp)
/* 6FB1BC 802384AC AFB00010 */ sw $s0, 0x10($sp)
/* 6FB1C0 802384B0 8E22000C */ lw $v0, 0xc($s1)
/* 6FB1C4 802384B4 8C450000 */ lw $a1, ($v0)
/* 6FB1C8 802384B8 3C10800E */ lui $s0, %hi(gBattleStatus+0xDC)
/* 6FB1CC 802384BC 8E10C14C */ lw $s0, %lo(gBattleStatus+0xDC)($s0)
/* 6FB1D0 802384C0 0C0B1EAF */ jal get_variable
/* 6FB1D4 802384C4 00000000 */ nop
/* 6FB1D8 802384C8 8E030008 */ lw $v1, 8($s0)
/* 6FB1DC 802384CC 0040282D */ daddu $a1, $v0, $zero
/* 6FB1E0 802384D0 90630006 */ lbu $v1, 6($v1)
/* 6FB1E4 802384D4 24020001 */ addiu $v0, $zero, 1
/* 6FB1E8 802384D8 10620006 */ beq $v1, $v0, .L802384F4
/* 6FB1EC 802384DC 0000202D */ daddu $a0, $zero, $zero
/* 6FB1F0 802384E0 24020002 */ addiu $v0, $zero, 2
/* 6FB1F4 802384E4 10620011 */ beq $v1, $v0, .L8023852C
/* 6FB1F8 802384E8 28A20064 */ slti $v0, $a1, 0x64
/* 6FB1FC 802384EC 0808E159 */ j .L80238564
/* 6FB200 802384F0 00000000 */ nop
.L802384F4:
/* 6FB204 802384F4 28A20024 */ slti $v0, $a1, 0x24
/* 6FB208 802384F8 14400019 */ bnez $v0, .L80238560
/* 6FB20C 802384FC 24040001 */ addiu $a0, $zero, 1
/* 6FB210 80238500 28A2003D */ slti $v0, $a1, 0x3d
/* 6FB214 80238504 14400016 */ bnez $v0, .L80238560
/* 6FB218 80238508 24040003 */ addiu $a0, $zero, 3
/* 6FB21C 8023850C 28A20051 */ slti $v0, $a1, 0x51
/* 6FB220 80238510 14400013 */ bnez $v0, .L80238560
/* 6FB224 80238514 24040004 */ addiu $a0, $zero, 4
/* 6FB228 80238518 28A20064 */ slti $v0, $a1, 0x64
/* 6FB22C 8023851C 10400011 */ beqz $v0, .L80238564
/* 6FB230 80238520 24040006 */ addiu $a0, $zero, 6
/* 6FB234 80238524 0808E159 */ j .L80238564
/* 6FB238 80238528 24040005 */ addiu $a0, $zero, 5
.L8023852C:
/* 6FB23C 8023852C 28A20024 */ slti $v0, $a1, 0x24
/* 6FB240 80238530 1440000B */ bnez $v0, .L80238560
/* 6FB244 80238534 24040001 */ addiu $a0, $zero, 1
/* 6FB248 80238538 28A2003D */ slti $v0, $a1, 0x3d
/* 6FB24C 8023853C 14400008 */ bnez $v0, .L80238560
/* 6FB250 80238540 24040003 */ addiu $a0, $zero, 3
/* 6FB254 80238544 28A20051 */ slti $v0, $a1, 0x51
/* 6FB258 80238548 14400005 */ bnez $v0, .L80238560
/* 6FB25C 8023854C 24040005 */ addiu $a0, $zero, 5
/* 6FB260 80238550 28A20064 */ slti $v0, $a1, 0x64
/* 6FB264 80238554 10400003 */ beqz $v0, .L80238564
/* 6FB268 80238558 24040007 */ addiu $a0, $zero, 7
/* 6FB26C 8023855C 24040006 */ addiu $a0, $zero, 6
.L80238560:
/* 6FB270 80238560 28A20064 */ slti $v0, $a1, 0x64
.L80238564:
/* 6FB274 80238564 54400003 */ bnel $v0, $zero, .L80238574
/* 6FB278 80238568 AE200084 */ sw $zero, 0x84($s1)
/* 6FB27C 8023856C 24020001 */ addiu $v0, $zero, 1
/* 6FB280 80238570 AE220084 */ sw $v0, 0x84($s1)
.L80238574:
/* 6FB284 80238574 AE2400C0 */ sw $a0, 0xc0($s1)
/* 6FB288 80238578 8FBF0018 */ lw $ra, 0x18($sp)
/* 6FB28C 8023857C 8FB10014 */ lw $s1, 0x14($sp)
/* 6FB290 80238580 8FB00010 */ lw $s0, 0x10($sp)
/* 6FB294 80238584 24020002 */ addiu $v0, $zero, 2
/* 6FB298 80238588 03E00008 */ jr $ra
/* 6FB29C 8023858C 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -0,0 +1,51 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238590_6FB2A0
/* 6FB2A0 80238590 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 6FB2A4 80238594 AFB10014 */ sw $s1, 0x14($sp)
/* 6FB2A8 80238598 0080882D */ daddu $s1, $a0, $zero
/* 6FB2AC 8023859C AFBF0018 */ sw $ra, 0x18($sp)
/* 6FB2B0 802385A0 AFB00010 */ sw $s0, 0x10($sp)
/* 6FB2B4 802385A4 8E22000C */ lw $v0, 0xc($s1)
/* 6FB2B8 802385A8 8C450000 */ lw $a1, ($v0)
/* 6FB2BC 802385AC 3C10800E */ lui $s0, %hi(gBattleStatus+0xDC)
/* 6FB2C0 802385B0 8E10C14C */ lw $s0, %lo(gBattleStatus+0xDC)($s0)
/* 6FB2C4 802385B4 0C0B1EAF */ jal get_variable
/* 6FB2C8 802385B8 00000000 */ nop
/* 6FB2CC 802385BC 8E030008 */ lw $v1, 8($s0)
/* 6FB2D0 802385C0 0040282D */ daddu $a1, $v0, $zero
/* 6FB2D4 802385C4 90630006 */ lbu $v1, 6($v1)
/* 6FB2D8 802385C8 24020002 */ addiu $v0, $zero, 2
/* 6FB2DC 802385CC 1462000E */ bne $v1, $v0, .L80238608
/* 6FB2E0 802385D0 0000202D */ daddu $a0, $zero, $zero
/* 6FB2E4 802385D4 28A20024 */ slti $v0, $a1, 0x24
/* 6FB2E8 802385D8 1440000B */ bnez $v0, .L80238608
/* 6FB2EC 802385DC 24040001 */ addiu $a0, $zero, 1
/* 6FB2F0 802385E0 28A2003D */ slti $v0, $a1, 0x3d
/* 6FB2F4 802385E4 14400008 */ bnez $v0, .L80238608
/* 6FB2F8 802385E8 24040003 */ addiu $a0, $zero, 3
/* 6FB2FC 802385EC 28A20051 */ slti $v0, $a1, 0x51
/* 6FB300 802385F0 14400005 */ bnez $v0, .L80238608
/* 6FB304 802385F4 24040005 */ addiu $a0, $zero, 5
/* 6FB308 802385F8 28A20064 */ slti $v0, $a1, 0x64
/* 6FB30C 802385FC 10400003 */ beqz $v0, .L8023860C
/* 6FB310 80238600 24040007 */ addiu $a0, $zero, 7
/* 6FB314 80238604 24040006 */ addiu $a0, $zero, 6
.L80238608:
/* 6FB318 80238608 28A20064 */ slti $v0, $a1, 0x64
.L8023860C:
/* 6FB31C 8023860C 54400003 */ bnel $v0, $zero, .L8023861C
/* 6FB320 80238610 AE200084 */ sw $zero, 0x84($s1)
/* 6FB324 80238614 24020001 */ addiu $v0, $zero, 1
/* 6FB328 80238618 AE220084 */ sw $v0, 0x84($s1)
.L8023861C:
/* 6FB32C 8023861C AE2400C0 */ sw $a0, 0xc0($s1)
/* 6FB330 80238620 8FBF0018 */ lw $ra, 0x18($sp)
/* 6FB334 80238624 8FB10014 */ lw $s1, 0x14($sp)
/* 6FB338 80238628 8FB00010 */ lw $s0, 0x10($sp)
/* 6FB33C 8023862C 24020002 */ addiu $v0, $zero, 2
/* 6FB340 80238630 03E00008 */ jr $ra
/* 6FB344 80238634 27BD0020 */ addiu $sp, $sp, 0x20
/* 6FB348 80238638 00000000 */ nop
/* 6FB34C 8023863C 00000000 */ nop

View File

@ -0,0 +1,9 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238000_710EF0
/* 710EF0 80238000 3C02800E */ lui $v0, %hi(gBattleStatus+0x9A)
/* 710EF4 80238004 8042C10A */ lb $v0, %lo(gBattleStatus+0x9A)($v0)
/* 710EF8 80238008 AC820084 */ sw $v0, 0x84($a0)
/* 710EFC 8023800C 03E00008 */ jr $ra
/* 710F00 80238010 24020002 */ addiu $v0, $zero, 2

View File

@ -0,0 +1,34 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238014_710F04
/* 710F04 80238014 3C02800E */ lui $v0, %hi(gBattleStatus+0xDC)
/* 710F08 80238018 8C42C14C */ lw $v0, %lo(gBattleStatus+0xDC)($v0)
/* 710F0C 8023801C 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 710F10 80238020 AFB00010 */ sw $s0, 0x10($sp)
/* 710F14 80238024 0080802D */ daddu $s0, $a0, $zero
/* 710F18 80238028 AFBF0014 */ sw $ra, 0x14($sp)
/* 710F1C 8023802C 0C09A75B */ jal get_actor
/* 710F20 80238030 84440428 */ lh $a0, 0x428($v0)
/* 710F24 80238034 90430191 */ lbu $v1, 0x191($v0)
/* 710F28 80238038 90420190 */ lbu $v0, 0x190($v0)
/* 710F2C 8023803C 3C014316 */ lui $at, 0x4316
/* 710F30 80238040 44810000 */ mtc1 $at, $f0
/* 710F34 80238044 00621821 */ addu $v1, $v1, $v0
/* 710F38 80238048 00031843 */ sra $v1, $v1, 1
/* 710F3C 8023804C 44831000 */ mtc1 $v1, $f2
/* 710F40 80238050 00000000 */ nop
/* 710F44 80238054 468010A0 */ cvt.s.w $f2, $f2
/* 710F48 80238058 46001002 */ mul.s $f0, $f2, $f0
/* 710F4C 8023805C 00000000 */ nop
/* 710F50 80238060 3C0142C8 */ lui $at, 0x42c8
/* 710F54 80238064 44811000 */ mtc1 $at, $f2
/* 710F58 80238068 00000000 */ nop
/* 710F5C 8023806C 46020083 */ div.s $f2, $f0, $f2
/* 710F60 80238070 4600110D */ trunc.w.s $f4, $f2
/* 710F64 80238074 E6040084 */ swc1 $f4, 0x84($s0)
/* 710F68 80238078 8FBF0014 */ lw $ra, 0x14($sp)
/* 710F6C 8023807C 8FB00010 */ lw $s0, 0x10($sp)
/* 710F70 80238080 24020002 */ addiu $v0, $zero, 2
/* 710F74 80238084 03E00008 */ jr $ra
/* 710F78 80238088 27BD0018 */ addiu $sp, $sp, 0x18

View File

@ -0,0 +1,27 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_8023808C_710F7C
/* 710F7C 8023808C 3C04800E */ lui $a0, %hi(gBattleStatus)
/* 710F80 80238090 2484C070 */ addiu $a0, $a0, %lo(gBattleStatus)
/* 710F84 80238094 8C8200D8 */ lw $v0, 0xd8($a0)
/* 710F88 80238098 8C4501F4 */ lw $a1, 0x1f4($v0)
/* 710F8C 8023809C 8C820004 */ lw $v0, 4($a0)
/* 710F90 802380A0 24030001 */ addiu $v1, $zero, 1
/* 710F94 802380A4 30420002 */ andi $v0, $v0, 2
/* 710F98 802380A8 14400003 */ bnez $v0, .L802380B8
/* 710F9C 802380AC A083009A */ sb $v1, 0x9a($a0)
/* 710FA0 802380B0 2402FFFF */ addiu $v0, $zero, -1
/* 710FA4 802380B4 A082009A */ sb $v0, 0x9a($a0)
.L802380B8:
/* 710FA8 802380B8 3C02FBFF */ lui $v0, 0xfbff
/* 710FAC 802380BC 3C038028 */ lui $v1, %hi(D_80283370)
/* 710FB0 802380C0 24633370 */ addiu $v1, $v1, %lo(D_80283370)
/* 710FB4 802380C4 ACA30094 */ sw $v1, 0x94($a1)
/* 710FB8 802380C8 8C830000 */ lw $v1, ($a0)
/* 710FBC 802380CC 3442FFFF */ ori $v0, $v0, 0xffff
/* 710FC0 802380D0 A080008B */ sb $zero, 0x8b($a0)
/* 710FC4 802380D4 00621824 */ and $v1, $v1, $v0
/* 710FC8 802380D8 24020002 */ addiu $v0, $zero, 2
/* 710FCC 802380DC 03E00008 */ jr $ra
/* 710FD0 802380E0 AC830000 */ sw $v1, ($a0)

View File

@ -0,0 +1,49 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802380E4_710FD4
/* 710FD4 802380E4 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 710FD8 802380E8 AFB10014 */ sw $s1, 0x14($sp)
/* 710FDC 802380EC 0080882D */ daddu $s1, $a0, $zero
/* 710FE0 802380F0 AFBF001C */ sw $ra, 0x1c($sp)
/* 710FE4 802380F4 AFB20018 */ sw $s2, 0x18($sp)
/* 710FE8 802380F8 AFB00010 */ sw $s0, 0x10($sp)
/* 710FEC 802380FC F7B40020 */ sdc1 $f20, 0x20($sp)
/* 710FF0 80238100 8E30000C */ lw $s0, 0xc($s1)
/* 710FF4 80238104 3C12800E */ lui $s2, %hi(gBattleStatus+0xD8)
/* 710FF8 80238108 8E52C148 */ lw $s2, %lo(gBattleStatus+0xD8)($s2)
/* 710FFC 8023810C 8E050000 */ lw $a1, ($s0)
/* 711000 80238110 0C0B1EAF */ jal get_variable
/* 711004 80238114 26100004 */ addiu $s0, $s0, 4
/* 711008 80238118 4482A000 */ mtc1 $v0, $f20
/* 71100C 8023811C 00000000 */ nop
/* 711010 80238120 4680A520 */ cvt.s.w $f20, $f20
/* 711014 80238124 8E050000 */ lw $a1, ($s0)
/* 711018 80238128 0C0B1EAF */ jal get_variable
/* 71101C 8023812C 0220202D */ daddu $a0, $s1, $zero
/* 711020 80238130 C6400188 */ lwc1 $f0, 0x188($s2)
/* 711024 80238134 4600A502 */ mul.s $f20, $f20, $f0
/* 711028 80238138 00000000 */ nop
/* 71102C 8023813C 44821000 */ mtc1 $v0, $f2
/* 711030 80238140 00000000 */ nop
/* 711034 80238144 468010A0 */ cvt.s.w $f2, $f2
/* 711038 80238148 46001082 */ mul.s $f2, $f2, $f0
/* 71103C 8023814C 00000000 */ nop
/* 711040 80238150 C6240084 */ lwc1 $f4, 0x84($s1)
/* 711044 80238154 46802120 */ cvt.s.w $f4, $f4
/* 711048 80238158 46142100 */ add.s $f4, $f4, $f20
/* 71104C 8023815C C6200088 */ lwc1 $f0, 0x88($s1)
/* 711050 80238160 46800020 */ cvt.s.w $f0, $f0
/* 711054 80238164 46020000 */ add.s $f0, $f0, $f2
/* 711058 80238168 4600218D */ trunc.w.s $f6, $f4
/* 71105C 8023816C E6260084 */ swc1 $f6, 0x84($s1)
/* 711060 80238170 4600018D */ trunc.w.s $f6, $f0
/* 711064 80238174 E6260088 */ swc1 $f6, 0x88($s1)
/* 711068 80238178 8FBF001C */ lw $ra, 0x1c($sp)
/* 71106C 8023817C 8FB20018 */ lw $s2, 0x18($sp)
/* 711070 80238180 8FB10014 */ lw $s1, 0x14($sp)
/* 711074 80238184 8FB00010 */ lw $s0, 0x10($sp)
/* 711078 80238188 D7B40020 */ ldc1 $f20, 0x20($sp)
/* 71107C 8023818C 24020002 */ addiu $v0, $zero, 2
/* 711080 80238190 03E00008 */ jr $ra
/* 711084 80238194 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -0,0 +1,17 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238198_711088
/* 711088 80238198 3C03800E */ lui $v1, %hi(gBattleStatus+0xD8)
/* 71108C 8023819C 8C63C148 */ lw $v1, %lo(gBattleStatus+0xD8)($v1)
/* 711090 802381A0 90620210 */ lbu $v0, 0x210($v1)
/* 711094 802381A4 80630214 */ lb $v1, 0x214($v1)
/* 711098 802381A8 2442FFFD */ addiu $v0, $v0, -3
/* 71109C 802381AC 2C450006 */ sltiu $a1, $v0, 6
/* 7110A0 802381B0 2402000C */ addiu $v0, $zero, 0xc
/* 7110A4 802381B4 50620001 */ beql $v1, $v0, .L802381BC
/* 7110A8 802381B8 24050001 */ addiu $a1, $zero, 1
.L802381BC:
/* 7110AC 802381BC AC850084 */ sw $a1, 0x84($a0)
/* 7110B0 802381C0 03E00008 */ jr $ra
/* 7110B4 802381C4 24020002 */ addiu $v0, $zero, 2

View File

@ -0,0 +1,12 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802381C8_7110B8
/* 7110B8 802381C8 3C02800E */ lui $v0, %hi(gBattleStatus+0xD8)
/* 7110BC 802381CC 8C42C148 */ lw $v0, %lo(gBattleStatus+0xD8)($v0)
/* 7110C0 802381D0 8C4301F4 */ lw $v1, 0x1f4($v0)
/* 7110C4 802381D4 3C028028 */ lui $v0, %hi(D_80283238)
/* 7110C8 802381D8 24423238 */ addiu $v0, $v0, %lo(D_80283238)
/* 7110CC 802381DC AC620094 */ sw $v0, 0x94($v1)
/* 7110D0 802381E0 03E00008 */ jr $ra
/* 7110D4 802381E4 24020002 */ addiu $v0, $zero, 2

View File

@ -0,0 +1,82 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802381E8_7110D8
/* 7110D8 802381E8 27BDFFC8 */ addiu $sp, $sp, -0x38
/* 7110DC 802381EC AFB50024 */ sw $s5, 0x24($sp)
/* 7110E0 802381F0 3C15800E */ lui $s5, %hi(gBattleStatus+0xDC)
/* 7110E4 802381F4 8EB5C14C */ lw $s5, %lo(gBattleStatus+0xDC)($s5)
/* 7110E8 802381F8 AFB7002C */ sw $s7, 0x2c($sp)
/* 7110EC 802381FC 0080B82D */ daddu $s7, $a0, $zero
/* 7110F0 80238200 AFB3001C */ sw $s3, 0x1c($sp)
/* 7110F4 80238204 0000982D */ daddu $s3, $zero, $zero
/* 7110F8 80238208 AFB40020 */ sw $s4, 0x20($sp)
/* 7110FC 8023820C 0260A02D */ daddu $s4, $s3, $zero
/* 711100 80238210 AFBF0030 */ sw $ra, 0x30($sp)
/* 711104 80238214 AFB60028 */ sw $s6, 0x28($sp)
/* 711108 80238218 AFB20018 */ sw $s2, 0x18($sp)
/* 71110C 8023821C AFB10014 */ sw $s1, 0x14($sp)
/* 711110 80238220 AFB00010 */ sw $s0, 0x10($sp)
/* 711114 80238224 82A2040C */ lb $v0, 0x40c($s5)
/* 711118 80238228 1840001B */ blez $v0, .L80238298
/* 71111C 8023822C 0260902D */ daddu $s2, $s3, $zero
/* 711120 80238230 2416000E */ addiu $s6, $zero, 0xe
/* 711124 80238234 02A0882D */ daddu $s1, $s5, $zero
.L80238238:
/* 711128 80238238 0C09A75B */ jal get_actor
/* 71112C 8023823C 8624022C */ lh $a0, 0x22c($s1)
/* 711130 80238240 0040802D */ daddu $s0, $v0, $zero
/* 711134 80238244 8625022E */ lh $a1, 0x22e($s1)
/* 711138 80238248 0C099117 */ jal get_actor_part
/* 71113C 8023824C 0200202D */ daddu $a0, $s0, $zero
/* 711140 80238250 8E030008 */ lw $v1, 8($s0)
/* 711144 80238254 9064001B */ lbu $a0, 0x1b($v1)
/* 711148 80238258 82030218 */ lb $v1, 0x218($s0)
/* 71114C 8023825C 50760001 */ beql $v1, $s6, .L80238264
/* 711150 80238260 0000202D */ daddu $a0, $zero, $zero
.L80238264:
/* 711154 80238264 8C42007C */ lw $v0, 0x7c($v0)
/* 711158 80238268 30420020 */ andi $v0, $v0, 0x20
/* 71115C 8023826C 54400001 */ bnel $v0, $zero, .L80238274
/* 711160 80238270 0000202D */ daddu $a0, $zero, $zero
.L80238274:
/* 711164 80238274 18800003 */ blez $a0, .L80238284
/* 711168 80238278 00000000 */ nop
/* 71116C 8023827C 02449021 */ addu $s2, $s2, $a0
/* 711170 80238280 26730001 */ addiu $s3, $s3, 1
.L80238284:
/* 711174 80238284 82A2040C */ lb $v0, 0x40c($s5)
/* 711178 80238288 26940001 */ addiu $s4, $s4, 1
/* 71117C 8023828C 0282102A */ slt $v0, $s4, $v0
/* 711180 80238290 1440FFE9 */ bnez $v0, .L80238238
/* 711184 80238294 26310014 */ addiu $s1, $s1, 0x14
.L80238298:
/* 711188 80238298 5A60000C */ blezl $s3, .L802382CC
/* 71118C 8023829C AEE00084 */ sw $zero, 0x84($s7)
/* 711190 802382A0 16600002 */ bnez $s3, .L802382AC
/* 711194 802382A4 0253001A */ div $zero, $s2, $s3
/* 711198 802382A8 0007000D */ break 7
.L802382AC:
/* 71119C 802382AC 2401FFFF */ addiu $at, $zero, -1
/* 7111A0 802382B0 16610004 */ bne $s3, $at, .L802382C4
/* 7111A4 802382B4 3C018000 */ lui $at, 0x8000
/* 7111A8 802382B8 16410002 */ bne $s2, $at, .L802382C4
/* 7111AC 802382BC 00000000 */ nop
/* 7111B0 802382C0 0006000D */ break 6
.L802382C4:
/* 7111B4 802382C4 00001012 */ mflo $v0
/* 7111B8 802382C8 AEE20084 */ sw $v0, 0x84($s7)
.L802382CC:
/* 7111BC 802382CC 8FBF0030 */ lw $ra, 0x30($sp)
/* 7111C0 802382D0 8FB7002C */ lw $s7, 0x2c($sp)
/* 7111C4 802382D4 8FB60028 */ lw $s6, 0x28($sp)
/* 7111C8 802382D8 8FB50024 */ lw $s5, 0x24($sp)
/* 7111CC 802382DC 8FB40020 */ lw $s4, 0x20($sp)
/* 7111D0 802382E0 8FB3001C */ lw $s3, 0x1c($sp)
/* 7111D4 802382E4 8FB20018 */ lw $s2, 0x18($sp)
/* 7111D8 802382E8 8FB10014 */ lw $s1, 0x14($sp)
/* 7111DC 802382EC 8FB00010 */ lw $s0, 0x10($sp)
/* 7111E0 802382F0 24020002 */ addiu $v0, $zero, 2
/* 7111E4 802382F4 03E00008 */ jr $ra
/* 7111E8 802382F8 27BD0038 */ addiu $sp, $sp, 0x38
/* 7111EC 802382FC 00000000 */ nop

View File

@ -0,0 +1,64 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238000_6F10E0
/* 6F10E0 80238000 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 6F10E4 80238004 3C03800E */ lui $v1, %hi(gBattleStatus)
/* 6F10E8 80238008 2463C070 */ addiu $v1, $v1, %lo(gBattleStatus)
/* 6F10EC 8023800C AFBF0020 */ sw $ra, 0x20($sp)
/* 6F10F0 80238010 AFB1001C */ sw $s1, 0x1c($sp)
/* 6F10F4 80238014 AFB00018 */ sw $s0, 0x18($sp)
/* 6F10F8 80238018 8C6200DC */ lw $v0, 0xdc($v1)
/* 6F10FC 8023801C 0080802D */ daddu $s0, $a0, $zero
/* 6F1100 80238020 C442001C */ lwc1 $f2, 0x1c($v0)
/* 6F1104 80238024 C44C0144 */ lwc1 $f12, 0x144($v0)
/* 6F1108 80238028 C44E0148 */ lwc1 $f14, 0x148($v0)
/* 6F110C 8023802C C444014C */ lwc1 $f4, 0x14c($v0)
/* 6F1110 80238030 C4460018 */ lwc1 $f6, 0x18($v0)
/* 6F1114 80238034 C4400020 */ lwc1 $f0, 0x20($v0)
/* 6F1118 80238038 44062000 */ mfc1 $a2, $f4
/* 6F111C 8023803C 44073000 */ mfc1 $a3, $f6
/* 6F1120 80238040 0060882D */ daddu $s1, $v1, $zero
/* 6F1124 80238044 E7A20010 */ swc1 $f2, 0x10($sp)
/* 6F1128 80238048 0C00A7CB */ jal dist3D
/* 6F112C 8023804C E7A00014 */ swc1 $f0, 0x14($sp)
/* 6F1130 80238050 3C014170 */ lui $at, 0x4170
/* 6F1134 80238054 44811000 */ mtc1 $at, $f2
/* 6F1138 80238058 00000000 */ nop
/* 6F113C 8023805C 46020002 */ mul.s $f0, $f0, $f2
/* 6F1140 80238060 00000000 */ nop
/* 6F1144 80238064 3C0142C8 */ lui $at, 0x42c8
/* 6F1148 80238068 44811000 */ mtc1 $at, $f2
/* 6F114C 8023806C 00000000 */ nop
/* 6F1150 80238070 46020003 */ div.s $f0, $f0, $f2
/* 6F1154 80238074 4600020D */ trunc.w.s $f8, $f0
/* 6F1158 80238078 44024000 */ mfc1 $v0, $f8
/* 6F115C 8023807C 00000000 */ nop
/* 6F1160 80238080 AE020084 */ sw $v0, 0x84($s0)
/* 6F1164 80238084 28420015 */ slti $v0, $v0, 0x15
/* 6F1168 80238088 14400002 */ bnez $v0, .L80238094
/* 6F116C 8023808C 24020014 */ addiu $v0, $zero, 0x14
/* 6F1170 80238090 AE020084 */ sw $v0, 0x84($s0)
.L80238094:
/* 6F1174 80238094 82220083 */ lb $v0, 0x83($s1)
/* 6F1178 80238098 10400007 */ beqz $v0, .L802380B8
/* 6F117C 8023809C 00000000 */ nop
/* 6F1180 802380A0 8E020084 */ lw $v0, 0x84($s0)
/* 6F1184 802380A4 2842000A */ slti $v0, $v0, 0xa
/* 6F1188 802380A8 10400008 */ beqz $v0, .L802380CC
/* 6F118C 802380AC 2402000A */ addiu $v0, $zero, 0xa
/* 6F1190 802380B0 0808E033 */ j .L802380CC
/* 6F1194 802380B4 AE020084 */ sw $v0, 0x84($s0)
.L802380B8:
/* 6F1198 802380B8 8E020084 */ lw $v0, 0x84($s0)
/* 6F119C 802380BC 2842000F */ slti $v0, $v0, 0xf
/* 6F11A0 802380C0 10400002 */ beqz $v0, .L802380CC
/* 6F11A4 802380C4 2402000F */ addiu $v0, $zero, 0xf
/* 6F11A8 802380C8 AE020084 */ sw $v0, 0x84($s0)
.L802380CC:
/* 6F11AC 802380CC 8FBF0020 */ lw $ra, 0x20($sp)
/* 6F11B0 802380D0 8FB1001C */ lw $s1, 0x1c($sp)
/* 6F11B4 802380D4 8FB00018 */ lw $s0, 0x18($sp)
/* 6F11B8 802380D8 24020002 */ addiu $v0, $zero, 2
/* 6F11BC 802380DC 03E00008 */ jr $ra
/* 6F11C0 802380E0 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -0,0 +1,43 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802380E4_6F11C4
/* 6F11C4 802380E4 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 6F11C8 802380E8 AFB10014 */ sw $s1, 0x14($sp)
/* 6F11CC 802380EC 0080882D */ daddu $s1, $a0, $zero
/* 6F11D0 802380F0 AFBF0018 */ sw $ra, 0x18($sp)
/* 6F11D4 802380F4 AFB00010 */ sw $s0, 0x10($sp)
/* 6F11D8 802380F8 0C09A75B */ jal get_actor
/* 6F11DC 802380FC 8E240148 */ lw $a0, 0x148($s1)
/* 6F11E0 80238100 0C09A75B */ jal get_actor
/* 6F11E4 80238104 84440428 */ lh $a0, 0x428($v0)
/* 6F11E8 80238108 24030063 */ addiu $v1, $zero, 0x63
/* 6F11EC 8023810C 3C108024 */ lui $s0, %hi(D_8023BB98_6F4C78)
/* 6F11F0 80238110 2610BB98 */ addiu $s0, $s0, %lo(D_8023BB98_6F4C78)
/* 6F11F4 80238114 AE230084 */ sw $v1, 0x84($s1)
/* 6F11F8 80238118 8C420008 */ lw $v0, 8($v0)
/* 6F11FC 8023811C 8E030000 */ lw $v1, ($s0)
/* 6F1200 80238120 9042001E */ lbu $v0, 0x1e($v0)
/* 6F1204 80238124 00620018 */ mult $v1, $v0
/* 6F1208 80238128 00001812 */ mflo $v1
/* 6F120C 8023812C 3C0251EB */ lui $v0, 0x51eb
/* 6F1210 80238130 3442851F */ ori $v0, $v0, 0x851f
/* 6F1214 80238134 00620018 */ mult $v1, $v0
/* 6F1218 80238138 24040064 */ addiu $a0, $zero, 0x64
/* 6F121C 8023813C 00031FC3 */ sra $v1, $v1, 0x1f
/* 6F1220 80238140 00003010 */ mfhi $a2
/* 6F1224 80238144 00061143 */ sra $v0, $a2, 5
/* 6F1228 80238148 00431023 */ subu $v0, $v0, $v1
/* 6F122C 8023814C 0C00A67F */ jal rand_int
/* 6F1230 80238150 AE020000 */ sw $v0, ($s0)
/* 6F1234 80238154 8E030000 */ lw $v1, ($s0)
/* 6F1238 80238158 0062182A */ slt $v1, $v1, $v0
/* 6F123C 8023815C 54600001 */ bnel $v1, $zero, .L80238164
/* 6F1240 80238160 AE200084 */ sw $zero, 0x84($s1)
.L80238164:
/* 6F1244 80238164 8FBF0018 */ lw $ra, 0x18($sp)
/* 6F1248 80238168 8FB10014 */ lw $s1, 0x14($sp)
/* 6F124C 8023816C 8FB00010 */ lw $s0, 0x10($sp)
/* 6F1250 80238170 24020002 */ addiu $v0, $zero, 2
/* 6F1254 80238174 03E00008 */ jr $ra
/* 6F1258 80238178 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -0,0 +1,583 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_8023817C_6F125C
/* 6F125C 8023817C 27BDFFB8 */ addiu $sp, $sp, -0x48
/* 6F1260 80238180 AFB3001C */ sw $s3, 0x1c($sp)
/* 6F1264 80238184 0080982D */ daddu $s3, $a0, $zero
/* 6F1268 80238188 AFB40020 */ sw $s4, 0x20($sp)
/* 6F126C 8023818C 3C14800E */ lui $s4, %hi(gBattleStatus)
/* 6F1270 80238190 2694C070 */ addiu $s4, $s4, %lo(gBattleStatus)
/* 6F1274 80238194 AFBF0024 */ sw $ra, 0x24($sp)
/* 6F1278 80238198 AFB20018 */ sw $s2, 0x18($sp)
/* 6F127C 8023819C AFB10014 */ sw $s1, 0x14($sp)
/* 6F1280 802381A0 AFB00010 */ sw $s0, 0x10($sp)
/* 6F1284 802381A4 F7BA0040 */ sdc1 $f26, 0x40($sp)
/* 6F1288 802381A8 F7B80038 */ sdc1 $f24, 0x38($sp)
/* 6F128C 802381AC F7B60030 */ sdc1 $f22, 0x30($sp)
/* 6F1290 802381B0 F7B40028 */ sdc1 $f20, 0x28($sp)
/* 6F1294 802381B4 8E9200DC */ lw $s2, 0xdc($s4)
/* 6F1298 802381B8 8E71000C */ lw $s1, 0xc($s3)
/* 6F129C 802381BC 10A00010 */ beqz $a1, .L80238200
/* 6F12A0 802381C0 2650000C */ addiu $s0, $s2, 0xc
/* 6F12A4 802381C4 8E250000 */ lw $a1, ($s1)
/* 6F12A8 802381C8 0C0B1EAF */ jal get_variable
/* 6F12AC 802381CC 26310004 */ addiu $s1, $s1, 4
/* 6F12B0 802381D0 A6420070 */ sh $v0, 0x70($s2)
/* 6F12B4 802381D4 8E250000 */ lw $a1, ($s1)
/* 6F12B8 802381D8 0C0B1EAF */ jal get_variable
/* 6F12BC 802381DC 0260202D */ daddu $a0, $s3, $zero
/* 6F12C0 802381E0 A6420072 */ sh $v0, 0x72($s2)
/* 6F12C4 802381E4 AE600074 */ sw $zero, 0x74($s3)
/* 6F12C8 802381E8 AE600070 */ sw $zero, 0x70($s3)
/* 6F12CC 802381EC 86430072 */ lh $v1, 0x72($s2)
/* 6F12D0 802381F0 24020001 */ addiu $v0, $zero, 1
/* 6F12D4 802381F4 14620002 */ bne $v1, $v0, .L80238200
/* 6F12D8 802381F8 24020002 */ addiu $v0, $zero, 2
/* 6F12DC 802381FC AE620070 */ sw $v0, 0x70($s3)
.L80238200:
/* 6F12E0 80238200 8E620070 */ lw $v0, 0x70($s3)
/* 6F12E4 80238204 144000F5 */ bnez $v0, .L802385DC
/* 6F12E8 80238208 00000000 */ nop
/* 6F12EC 8023820C C6400144 */ lwc1 $f0, 0x144($s2)
/* 6F12F0 80238210 C618000C */ lwc1 $f24, 0xc($s0)
/* 6F12F4 80238214 C61A0014 */ lwc1 $f26, 0x14($s0)
/* 6F12F8 80238218 E6000000 */ swc1 $f0, ($s0)
/* 6F12FC 8023821C C6400148 */ lwc1 $f0, 0x148($s2)
/* 6F1300 80238220 4406C000 */ mfc1 $a2, $f24
/* 6F1304 80238224 4407D000 */ mfc1 $a3, $f26
/* 6F1308 80238228 C6160000 */ lwc1 $f22, ($s0)
/* 6F130C 8023822C E6000004 */ swc1 $f0, 4($s0)
/* 6F1310 80238230 C654014C */ lwc1 $f20, 0x14c($s2)
/* 6F1314 80238234 4600B306 */ mov.s $f12, $f22
/* 6F1318 80238238 4600A386 */ mov.s $f14, $f20
/* 6F131C 8023823C 0C00A720 */ jal atan2
/* 6F1320 80238240 E6140008 */ swc1 $f20, 8($s0)
/* 6F1324 80238244 4600B306 */ mov.s $f12, $f22
/* 6F1328 80238248 4406C000 */ mfc1 $a2, $f24
/* 6F132C 8023824C 4407D000 */ mfc1 $a3, $f26
/* 6F1330 80238250 4600A386 */ mov.s $f14, $f20
/* 6F1334 80238254 0C00A7B5 */ jal dist2D
/* 6F1338 80238258 E6000048 */ swc1 $f0, 0x48($s0)
/* 6F133C 8023825C 86020064 */ lh $v0, 0x64($s0)
/* 6F1340 80238260 46000106 */ mov.s $f4, $f0
/* 6F1344 80238264 14400012 */ bnez $v0, .L802382B0
/* 6F1348 80238268 E604004C */ swc1 $f4, 0x4c($s0)
/* 6F134C 8023826C C6000040 */ lwc1 $f0, 0x40($s0)
/* 6F1350 80238270 C6020040 */ lwc1 $f2, 0x40($s0)
/* 6F1354 80238274 46002003 */ div.s $f0, $f4, $f0
/* 6F1358 80238278 4600028D */ trunc.w.s $f10, $f0
/* 6F135C 8023827C 44035000 */ mfc1 $v1, $f10
/* 6F1360 80238280 00000000 */ nop
/* 6F1364 80238284 00031400 */ sll $v0, $v1, 0x10
/* 6F1368 80238288 00021403 */ sra $v0, $v0, 0x10
/* 6F136C 8023828C 44820000 */ mtc1 $v0, $f0
/* 6F1370 80238290 00000000 */ nop
/* 6F1374 80238294 46800020 */ cvt.s.w $f0, $f0
/* 6F1378 80238298 46020002 */ mul.s $f0, $f0, $f2
/* 6F137C 8023829C 00000000 */ nop
/* 6F1380 802382A0 46002086 */ mov.s $f2, $f4
/* 6F1384 802382A4 A6030064 */ sh $v1, 0x64($s0)
/* 6F1388 802382A8 0808E0B9 */ j .L802382E4
/* 6F138C 802382AC 46001201 */ sub.s $f8, $f2, $f0
.L802382B0:
/* 6F1390 802382B0 44821000 */ mtc1 $v0, $f2
/* 6F1394 802382B4 00000000 */ nop
/* 6F1398 802382B8 468010A0 */ cvt.s.w $f2, $f2
/* 6F139C 802382BC 86020064 */ lh $v0, 0x64($s0)
/* 6F13A0 802382C0 46022083 */ div.s $f2, $f4, $f2
/* 6F13A4 802382C4 44820000 */ mtc1 $v0, $f0
/* 6F13A8 802382C8 00000000 */ nop
/* 6F13AC 802382CC 46800020 */ cvt.s.w $f0, $f0
/* 6F13B0 802382D0 46020002 */ mul.s $f0, $f0, $f2
/* 6F13B4 802382D4 00000000 */ nop
/* 6F13B8 802382D8 C604004C */ lwc1 $f4, 0x4c($s0)
/* 6F13BC 802382DC E6020040 */ swc1 $f2, 0x40($s0)
/* 6F13C0 802382E0 46002201 */ sub.s $f8, $f4, $f0
.L802382E4:
/* 6F13C4 802382E4 86030064 */ lh $v1, 0x64($s0)
/* 6F13C8 802382E8 106001C1 */ beqz $v1, .L802389F0
/* 6F13CC 802382EC 24020002 */ addiu $v0, $zero, 2
/* 6F13D0 802382F0 86020064 */ lh $v0, 0x64($s0)
/* 6F13D4 802382F4 C602000C */ lwc1 $f2, 0xc($s0)
/* 6F13D8 802382F8 3C014049 */ lui $at, 0x4049
/* 6F13DC 802382FC 34210FD0 */ ori $at, $at, 0xfd0
/* 6F13E0 80238300 44810000 */ mtc1 $at, $f0
/* 6F13E4 80238304 C6040000 */ lwc1 $f4, ($s0)
/* 6F13E8 80238308 44823000 */ mtc1 $v0, $f6
/* 6F13EC 8023830C 00000000 */ nop
/* 6F13F0 80238310 468031A0 */ cvt.s.w $f6, $f6
/* 6F13F4 80238314 46060003 */ div.s $f0, $f0, $f6
/* 6F13F8 80238318 46041081 */ sub.s $f2, $f2, $f4
/* 6F13FC 8023831C E600003C */ swc1 $f0, 0x3c($s0)
/* 6F1400 80238320 44830000 */ mtc1 $v1, $f0
/* 6F1404 80238324 00000000 */ nop
/* 6F1408 80238328 46800020 */ cvt.s.w $f0, $f0
/* 6F140C 8023832C 46001083 */ div.s $f2, $f2, $f0
/* 6F1410 80238330 C6000010 */ lwc1 $f0, 0x10($s0)
/* 6F1414 80238334 E6020030 */ swc1 $f2, 0x30($s0)
/* 6F1418 80238338 C6020004 */ lwc1 $f2, 4($s0)
/* 6F141C 8023833C AE000044 */ sw $zero, 0x44($s0)
/* 6F1420 80238340 46020001 */ sub.s $f0, $f0, $f2
/* 6F1424 80238344 C6040014 */ lwc1 $f4, 0x14($s0)
/* 6F1428 80238348 46003086 */ mov.s $f2, $f6
/* 6F142C 8023834C 46020003 */ div.s $f0, $f0, $f2
/* 6F1430 80238350 E6000034 */ swc1 $f0, 0x34($s0)
/* 6F1434 80238354 46003006 */ mov.s $f0, $f6
/* 6F1438 80238358 46004003 */ div.s $f0, $f8, $f0
/* 6F143C 8023835C C6020008 */ lwc1 $f2, 8($s0)
/* 6F1440 80238360 86020066 */ lh $v0, 0x66($s0)
/* 6F1444 80238364 46022101 */ sub.s $f4, $f4, $f2
/* 6F1448 80238368 C6020040 */ lwc1 $f2, 0x40($s0)
/* 6F144C 8023836C 28420003 */ slti $v0, $v0, 3
/* 6F1450 80238370 46001080 */ add.s $f2, $f2, $f0
/* 6F1454 80238374 46062103 */ div.s $f4, $f4, $f6
/* 6F1458 80238378 E6040038 */ swc1 $f4, 0x38($s0)
/* 6F145C 8023837C 10400045 */ beqz $v0, .L80238494
/* 6F1460 80238380 E6020040 */ swc1 $f2, 0x40($s0)
/* 6F1464 80238384 86020064 */ lh $v0, 0x64($s0)
/* 6F1468 80238388 24030168 */ addiu $v1, $zero, 0x168
/* 6F146C 8023838C 14400002 */ bnez $v0, .L80238398
/* 6F1470 80238390 0062001A */ div $zero, $v1, $v0
/* 6F1474 80238394 0007000D */ break 7
.L80238398:
/* 6F1478 80238398 2401FFFF */ addiu $at, $zero, -1
/* 6F147C 8023839C 14410004 */ bne $v0, $at, .L802383B0
/* 6F1480 802383A0 3C018000 */ lui $at, 0x8000
/* 6F1484 802383A4 14610002 */ bne $v1, $at, .L802383B0
/* 6F1488 802383A8 00000000 */ nop
/* 6F148C 802383AC 0006000D */ break 6
.L802383B0:
/* 6F1490 802383B0 00001812 */ mflo $v1
/* 6F1494 802383B4 C608004C */ lwc1 $f8, 0x4c($s0)
/* 6F1498 802383B8 3C014034 */ lui $at, 0x4034
/* 6F149C 802383BC 44811800 */ mtc1 $at, $f3
/* 6F14A0 802383C0 44801000 */ mtc1 $zero, $f2
/* 6F14A4 802383C4 46004021 */ cvt.d.s $f0, $f8
/* 6F14A8 802383C8 46220001 */ sub.d $f0, $f0, $f2
/* 6F14AC 802383CC 3C014018 */ lui $at, 0x4018
/* 6F14B0 802383D0 44811800 */ mtc1 $at, $f3
/* 6F14B4 802383D4 44801000 */ mtc1 $zero, $f2
/* 6F14B8 802383D8 46200220 */ cvt.s.d $f8, $f0
/* 6F14BC 802383DC 46004021 */ cvt.d.s $f0, $f8
/* 6F14C0 802383E0 46220003 */ div.d $f0, $f0, $f2
/* 6F14C4 802383E4 46200220 */ cvt.s.d $f8, $f0
/* 6F14C8 802383E8 3C018024 */ lui $at, %hi(D_8023CD50_6F5E30)
/* 6F14CC 802383EC D422CD50 */ ldc1 $f2, %lo(D_8023CD50_6F5E30)($at)
/* 6F14D0 802383F0 46004021 */ cvt.d.s $f0, $f8
/* 6F14D4 802383F4 46220000 */ add.d $f0, $f0, $f2
/* 6F14D8 802383F8 3C0142B4 */ lui $at, 0x42b4
/* 6F14DC 802383FC 44811000 */ mtc1 $at, $f2
/* 6F14E0 80238400 46200220 */ cvt.s.d $f8, $f0
/* 6F14E4 80238404 44830000 */ mtc1 $v1, $f0
/* 6F14E8 80238408 00000000 */ nop
/* 6F14EC 8023840C 46800020 */ cvt.s.w $f0, $f0
/* 6F14F0 80238410 86030066 */ lh $v1, 0x66($s0)
/* 6F14F4 80238414 24020002 */ addiu $v0, $zero, 2
/* 6F14F8 80238418 E6020024 */ swc1 $f2, 0x24($s0)
/* 6F14FC 8023841C E6080050 */ swc1 $f8, 0x50($s0)
/* 6F1500 80238420 14620008 */ bne $v1, $v0, .L80238444
/* 6F1504 80238424 E6000028 */ swc1 $f0, 0x28($s0)
/* 6F1508 80238428 3C018024 */ lui $at, %hi(D_8023CD58_6F5E38)
/* 6F150C 8023842C D422CD58 */ ldc1 $f2, %lo(D_8023CD58_6F5E38)($at)
/* 6F1510 80238430 46004021 */ cvt.d.s $f0, $f8
/* 6F1514 80238434 46220002 */ mul.d $f0, $f0, $f2
/* 6F1518 80238438 00000000 */ nop
/* 6F151C 8023843C 46200020 */ cvt.s.d $f0, $f0
/* 6F1520 80238440 E6000050 */ swc1 $f0, 0x50($s0)
.L80238444:
/* 6F1524 80238444 C60C0024 */ lwc1 $f12, 0x24($s0)
/* 6F1528 80238448 3C0140C9 */ lui $at, 0x40c9
/* 6F152C 8023844C 34210FD0 */ ori $at, $at, 0xfd0
/* 6F1530 80238450 44810000 */ mtc1 $at, $f0
/* 6F1534 80238454 C6140044 */ lwc1 $f20, 0x44($s0)
/* 6F1538 80238458 C616003C */ lwc1 $f22, 0x3c($s0)
/* 6F153C 8023845C AE000018 */ sw $zero, 0x18($s0)
/* 6F1540 80238460 46006302 */ mul.s $f12, $f12, $f0
/* 6F1544 80238464 00000000 */ nop
/* 6F1548 80238468 AE00001C */ sw $zero, 0x1c($s0)
/* 6F154C 8023846C 4600A521 */ cvt.d.s $f20, $f20
/* 6F1550 80238470 3C0143B4 */ lui $at, 0x43b4
/* 6F1554 80238474 44810000 */ mtc1 $at, $f0
/* 6F1558 80238478 4600B5A1 */ cvt.d.s $f22, $f22
/* 6F155C 8023847C 0C00A85B */ jal sin_rad
/* 6F1560 80238480 46006303 */ div.s $f12, $f12, $f0
/* 6F1564 80238484 3C018024 */ lui $at, %hi(D_8023CD60_6F5E40)
/* 6F1568 80238488 D422CD60 */ ldc1 $f2, %lo(D_8023CD60_6F5E40)($at)
/* 6F156C 8023848C 0808E169 */ j .L802385A4
/* 6F1570 80238490 46000021 */ cvt.d.s $f0, $f0
.L80238494:
/* 6F1574 80238494 86020064 */ lh $v0, 0x64($s0)
/* 6F1578 80238498 24030168 */ addiu $v1, $zero, 0x168
/* 6F157C 8023849C 14400002 */ bnez $v0, .L802384A8
/* 6F1580 802384A0 0062001A */ div $zero, $v1, $v0
/* 6F1584 802384A4 0007000D */ break 7
.L802384A8:
/* 6F1588 802384A8 2401FFFF */ addiu $at, $zero, -1
/* 6F158C 802384AC 14410004 */ bne $v0, $at, .L802384C0
/* 6F1590 802384B0 3C018000 */ lui $at, 0x8000
/* 6F1594 802384B4 14610002 */ bne $v1, $at, .L802384C0
/* 6F1598 802384B8 00000000 */ nop
/* 6F159C 802384BC 0006000D */ break 6
.L802384C0:
/* 6F15A0 802384C0 00001812 */ mflo $v1
/* 6F15A4 802384C4 C608004C */ lwc1 $f8, 0x4c($s0)
/* 6F15A8 802384C8 3C014034 */ lui $at, 0x4034
/* 6F15AC 802384CC 44811800 */ mtc1 $at, $f3
/* 6F15B0 802384D0 44801000 */ mtc1 $zero, $f2
/* 6F15B4 802384D4 46004021 */ cvt.d.s $f0, $f8
/* 6F15B8 802384D8 46220001 */ sub.d $f0, $f0, $f2
/* 6F15BC 802384DC 3C014018 */ lui $at, 0x4018
/* 6F15C0 802384E0 44811800 */ mtc1 $at, $f3
/* 6F15C4 802384E4 44801000 */ mtc1 $zero, $f2
/* 6F15C8 802384E8 46200220 */ cvt.s.d $f8, $f0
/* 6F15CC 802384EC 46004021 */ cvt.d.s $f0, $f8
/* 6F15D0 802384F0 46220003 */ div.d $f0, $f0, $f2
/* 6F15D4 802384F4 46200220 */ cvt.s.d $f8, $f0
/* 6F15D8 802384F8 3C018024 */ lui $at, %hi(D_8023CD68_6F5E48)
/* 6F15DC 802384FC D422CD68 */ ldc1 $f2, %lo(D_8023CD68_6F5E48)($at)
/* 6F15E0 80238500 46004021 */ cvt.d.s $f0, $f8
/* 6F15E4 80238504 46220000 */ add.d $f0, $f0, $f2
/* 6F15E8 80238508 3C0142B4 */ lui $at, 0x42b4
/* 6F15EC 8023850C 44811000 */ mtc1 $at, $f2
/* 6F15F0 80238510 46200220 */ cvt.s.d $f8, $f0
/* 6F15F4 80238514 44830000 */ mtc1 $v1, $f0
/* 6F15F8 80238518 00000000 */ nop
/* 6F15FC 8023851C 46800020 */ cvt.s.w $f0, $f0
/* 6F1600 80238520 86030066 */ lh $v1, 0x66($s0)
/* 6F1604 80238524 24020004 */ addiu $v0, $zero, 4
/* 6F1608 80238528 E6020024 */ swc1 $f2, 0x24($s0)
/* 6F160C 8023852C E6080050 */ swc1 $f8, 0x50($s0)
/* 6F1610 80238530 14620009 */ bne $v1, $v0, .L80238558
/* 6F1614 80238534 E6000028 */ swc1 $f0, 0x28($s0)
/* 6F1618 80238538 3C013FF4 */ lui $at, 0x3ff4
/* 6F161C 8023853C 44811800 */ mtc1 $at, $f3
/* 6F1620 80238540 44801000 */ mtc1 $zero, $f2
/* 6F1624 80238544 46004021 */ cvt.d.s $f0, $f8
/* 6F1628 80238548 46220002 */ mul.d $f0, $f0, $f2
/* 6F162C 8023854C 00000000 */ nop
/* 6F1630 80238550 46200020 */ cvt.s.d $f0, $f0
/* 6F1634 80238554 E6000050 */ swc1 $f0, 0x50($s0)
.L80238558:
/* 6F1638 80238558 C60C0024 */ lwc1 $f12, 0x24($s0)
/* 6F163C 8023855C 3C0140C9 */ lui $at, 0x40c9
/* 6F1640 80238560 34210FD0 */ ori $at, $at, 0xfd0
/* 6F1644 80238564 44810000 */ mtc1 $at, $f0
/* 6F1648 80238568 C6140044 */ lwc1 $f20, 0x44($s0)
/* 6F164C 8023856C C616003C */ lwc1 $f22, 0x3c($s0)
/* 6F1650 80238570 AE000018 */ sw $zero, 0x18($s0)
/* 6F1654 80238574 46006302 */ mul.s $f12, $f12, $f0
/* 6F1658 80238578 00000000 */ nop
/* 6F165C 8023857C AE00001C */ sw $zero, 0x1c($s0)
/* 6F1660 80238580 4600A521 */ cvt.d.s $f20, $f20
/* 6F1664 80238584 3C0143B4 */ lui $at, 0x43b4
/* 6F1668 80238588 44810000 */ mtc1 $at, $f0
/* 6F166C 8023858C 4600B5A1 */ cvt.d.s $f22, $f22
/* 6F1670 80238590 0C00A85B */ jal sin_rad
/* 6F1674 80238594 46006303 */ div.s $f12, $f12, $f0
/* 6F1678 80238598 3C018024 */ lui $at, %hi(D_8023CD70_6F5E50)
/* 6F167C 8023859C D422CD70 */ ldc1 $f2, %lo(D_8023CD70_6F5E50)($at)
/* 6F1680 802385A0 46000021 */ cvt.d.s $f0, $f0
.L802385A4:
/* 6F1684 802385A4 46220002 */ mul.d $f0, $f0, $f2
/* 6F1688 802385A8 00000000 */ nop
/* 6F168C 802385AC 46360002 */ mul.d $f0, $f0, $f22
/* 6F1690 802385B0 00000000 */ nop
/* 6F1694 802385B4 46360000 */ add.d $f0, $f0, $f22
/* 6F1698 802385B8 4620A500 */ add.d $f20, $f20, $f0
/* 6F169C 802385BC 4620A520 */ cvt.s.d $f20, $f20
/* 6F16A0 802385C0 E6140044 */ swc1 $f20, 0x44($s0)
/* 6F16A4 802385C4 24040100 */ addiu $a0, $zero, 0x100
/* 6F16A8 802385C8 8E060058 */ lw $a2, 0x58($s0)
/* 6F16AC 802385CC 0C098F3F */ jal set_animation
/* 6F16B0 802385D0 24050001 */ addiu $a1, $zero, 1
/* 6F16B4 802385D4 24020001 */ addiu $v0, $zero, 1
/* 6F16B8 802385D8 AE620070 */ sw $v0, 0x70($s3)
.L802385DC:
/* 6F16BC 802385DC 8E630070 */ lw $v1, 0x70($s3)
/* 6F16C0 802385E0 24020002 */ addiu $v0, $zero, 2
/* 6F16C4 802385E4 10620094 */ beq $v1, $v0, .L80238838
/* 6F16C8 802385E8 28620003 */ slti $v0, $v1, 3
/* 6F16CC 802385EC 10400005 */ beqz $v0, .L80238604
/* 6F16D0 802385F0 24020001 */ addiu $v0, $zero, 1
/* 6F16D4 802385F4 10620008 */ beq $v1, $v0, .L80238618
/* 6F16D8 802385F8 0000102D */ daddu $v0, $zero, $zero
/* 6F16DC 802385FC 0808E27C */ j .L802389F0
/* 6F16E0 80238600 00000000 */ nop
.L80238604:
/* 6F16E4 80238604 24020003 */ addiu $v0, $zero, 3
/* 6F16E8 80238608 106200BD */ beq $v1, $v0, .L80238900
/* 6F16EC 8023860C 0000102D */ daddu $v0, $zero, $zero
/* 6F16F0 80238610 0808E27C */ j .L802389F0
/* 6F16F4 80238614 00000000 */ nop
.L80238618:
/* 6F16F8 80238618 C6020044 */ lwc1 $f2, 0x44($s0)
/* 6F16FC 8023861C 3C013FC9 */ lui $at, 0x3fc9
/* 6F1700 80238620 34210FD0 */ ori $at, $at, 0xfd0
/* 6F1704 80238624 44810000 */ mtc1 $at, $f0
/* 6F1708 80238628 00000000 */ nop
/* 6F170C 8023862C 4602003C */ c.lt.s $f0, $f2
/* 6F1710 80238630 00000000 */ nop
/* 6F1714 80238634 45000004 */ bc1f .L80238648
/* 6F1718 80238638 24040100 */ addiu $a0, $zero, 0x100
/* 6F171C 8023863C 8E06005C */ lw $a2, 0x5c($s0)
/* 6F1720 80238640 0C098F3F */ jal set_animation
/* 6F1724 80238644 24050001 */ addiu $a1, $zero, 1
.L80238648:
/* 6F1728 80238648 C6060000 */ lwc1 $f6, ($s0)
/* 6F172C 8023864C C6000030 */ lwc1 $f0, 0x30($s0)
/* 6F1730 80238650 C6040004 */ lwc1 $f4, 4($s0)
/* 6F1734 80238654 C6560144 */ lwc1 $f22, 0x144($s2)
/* 6F1738 80238658 46003180 */ add.s $f6, $f6, $f0
/* 6F173C 8023865C C6000034 */ lwc1 $f0, 0x34($s0)
/* 6F1740 80238660 C6020038 */ lwc1 $f2, 0x38($s0)
/* 6F1744 80238664 46002100 */ add.s $f4, $f4, $f0
/* 6F1748 80238668 C6000008 */ lwc1 $f0, 8($s0)
/* 6F174C 8023866C C6540148 */ lwc1 $f20, 0x148($s2)
/* 6F1750 80238670 46020000 */ add.s $f0, $f0, $f2
/* 6F1754 80238674 E6060000 */ swc1 $f6, ($s0)
/* 6F1758 80238678 E6040004 */ swc1 $f4, 4($s0)
/* 6F175C 8023867C E6000008 */ swc1 $f0, 8($s0)
/* 6F1760 80238680 C6400148 */ lwc1 $f0, 0x148($s2)
/* 6F1764 80238684 46003086 */ mov.s $f2, $f6
/* 6F1768 80238688 E6000018 */ swc1 $f0, 0x18($s0)
/* 6F176C 8023868C E6420144 */ swc1 $f2, 0x144($s2)
/* 6F1770 80238690 0C00A85B */ jal sin_rad
/* 6F1774 80238694 C60C0044 */ lwc1 $f12, 0x44($s0)
/* 6F1778 80238698 C6020050 */ lwc1 $f2, 0x50($s0)
/* 6F177C 8023869C 46001082 */ mul.s $f2, $f2, $f0
/* 6F1780 802386A0 00000000 */ nop
/* 6F1784 802386A4 C6000004 */ lwc1 $f0, 4($s0)
/* 6F1788 802386A8 46020000 */ add.s $f0, $f0, $f2
/* 6F178C 802386AC E6400148 */ swc1 $f0, 0x148($s2)
/* 6F1790 802386B0 C6000008 */ lwc1 $f0, 8($s0)
/* 6F1794 802386B4 E640014C */ swc1 $f0, 0x14c($s2)
/* 6F1798 802386B8 C6020010 */ lwc1 $f2, 0x10($s0)
/* 6F179C 802386BC C6400148 */ lwc1 $f0, 0x148($s2)
/* 6F17A0 802386C0 4602003C */ c.lt.s $f0, $f2
/* 6F17A4 802386C4 00000000 */ nop
/* 6F17A8 802386C8 45000007 */ bc1f .L802386E8
/* 6F17AC 802386CC 4600B306 */ mov.s $f12, $f22
/* 6F17B0 802386D0 86020064 */ lh $v0, 0x64($s0)
/* 6F17B4 802386D4 28420003 */ slti $v0, $v0, 3
/* 6F17B8 802386D8 54400002 */ bnel $v0, $zero, .L802386E4
/* 6F17BC 802386DC E6420148 */ swc1 $f2, 0x148($s2)
/* 6F17C0 802386E0 4600B306 */ mov.s $f12, $f22
.L802386E4:
/* 6F17C4 802386E4 C6400148 */ lwc1 $f0, 0x148($s2)
.L802386E8:
/* 6F17C8 802386E8 8E460144 */ lw $a2, 0x144($s2)
/* 6F17CC 802386EC 46000007 */ neg.s $f0, $f0
/* 6F17D0 802386F0 44070000 */ mfc1 $a3, $f0
/* 6F17D4 802386F4 0C00A720 */ jal atan2
/* 6F17D8 802386F8 4600A387 */ neg.s $f14, $f20
/* 6F17DC 802386FC 46000007 */ neg.s $f0, $f0
/* 6F17E0 80238700 E6400164 */ swc1 $f0, 0x164($s2)
/* 6F17E4 80238704 86020066 */ lh $v0, 0x66($s0)
/* 6F17E8 80238708 C6400148 */ lwc1 $f0, 0x148($s2)
/* 6F17EC 8023870C 28420003 */ slti $v0, $v0, 3
/* 6F17F0 80238710 10400013 */ beqz $v0, .L80238760
/* 6F17F4 80238714 E600001C */ swc1 $f0, 0x1c($s0)
/* 6F17F8 80238718 C60C0024 */ lwc1 $f12, 0x24($s0)
/* 6F17FC 8023871C 3C0140C9 */ lui $at, 0x40c9
/* 6F1800 80238720 34210FD0 */ ori $at, $at, 0xfd0
/* 6F1804 80238724 44810000 */ mtc1 $at, $f0
/* 6F1808 80238728 C6140044 */ lwc1 $f20, 0x44($s0)
/* 6F180C 8023872C 46006302 */ mul.s $f12, $f12, $f0
/* 6F1810 80238730 00000000 */ nop
/* 6F1814 80238734 C616003C */ lwc1 $f22, 0x3c($s0)
/* 6F1818 80238738 4600A521 */ cvt.d.s $f20, $f20
/* 6F181C 8023873C 3C0143B4 */ lui $at, 0x43b4
/* 6F1820 80238740 44810000 */ mtc1 $at, $f0
/* 6F1824 80238744 4600B5A1 */ cvt.d.s $f22, $f22
/* 6F1828 80238748 0C00A85B */ jal sin_rad
/* 6F182C 8023874C 46006303 */ div.s $f12, $f12, $f0
/* 6F1830 80238750 3C018024 */ lui $at, %hi(D_8023CD78_6F5E58)
/* 6F1834 80238754 D422CD78 */ ldc1 $f2, %lo(D_8023CD78_6F5E58)($at)
/* 6F1838 80238758 0808E1E9 */ j .L802387A4
/* 6F183C 8023875C 46000021 */ cvt.d.s $f0, $f0
.L80238760:
/* 6F1840 80238760 C60C0024 */ lwc1 $f12, 0x24($s0)
/* 6F1844 80238764 3C0140C9 */ lui $at, 0x40c9
/* 6F1848 80238768 34210FD0 */ ori $at, $at, 0xfd0
/* 6F184C 8023876C 44810000 */ mtc1 $at, $f0
/* 6F1850 80238770 C6140044 */ lwc1 $f20, 0x44($s0)
/* 6F1854 80238774 46006302 */ mul.s $f12, $f12, $f0
/* 6F1858 80238778 00000000 */ nop
/* 6F185C 8023877C C616003C */ lwc1 $f22, 0x3c($s0)
/* 6F1860 80238780 4600A521 */ cvt.d.s $f20, $f20
/* 6F1864 80238784 3C0143B4 */ lui $at, 0x43b4
/* 6F1868 80238788 44810000 */ mtc1 $at, $f0
/* 6F186C 8023878C 4600B5A1 */ cvt.d.s $f22, $f22
/* 6F1870 80238790 0C00A85B */ jal sin_rad
/* 6F1874 80238794 46006303 */ div.s $f12, $f12, $f0
/* 6F1878 80238798 3C018024 */ lui $at, %hi(D_8023CD80_6F5E60)
/* 6F187C 8023879C D422CD80 */ ldc1 $f2, %lo(D_8023CD80_6F5E60)($at)
/* 6F1880 802387A0 46000021 */ cvt.d.s $f0, $f0
.L802387A4:
/* 6F1884 802387A4 46220002 */ mul.d $f0, $f0, $f2
/* 6F1888 802387A8 00000000 */ nop
/* 6F188C 802387AC 46360002 */ mul.d $f0, $f0, $f22
/* 6F1890 802387B0 00000000 */ nop
/* 6F1894 802387B4 46360000 */ add.d $f0, $f0, $f22
/* 6F1898 802387B8 4620A500 */ add.d $f20, $f20, $f0
/* 6F189C 802387BC 4620A520 */ cvt.s.d $f20, $f20
/* 6F18A0 802387C0 E6140044 */ swc1 $f20, 0x44($s0)
/* 6F18A4 802387C4 C60C0024 */ lwc1 $f12, 0x24($s0)
/* 6F18A8 802387C8 C6000028 */ lwc1 $f0, 0x28($s0)
/* 6F18AC 802387CC 46006300 */ add.s $f12, $f12, $f0
/* 6F18B0 802387D0 0C00A6C9 */ jal clamp_angle
/* 6F18B4 802387D4 E60C0024 */ swc1 $f12, 0x24($s0)
/* 6F18B8 802387D8 96020064 */ lhu $v0, 0x64($s0)
/* 6F18BC 802387DC E6000024 */ swc1 $f0, 0x24($s0)
/* 6F18C0 802387E0 2442FFFF */ addiu $v0, $v0, -1
/* 6F18C4 802387E4 A6020064 */ sh $v0, 0x64($s0)
/* 6F18C8 802387E8 00021400 */ sll $v0, $v0, 0x10
/* 6F18CC 802387EC 14400080 */ bnez $v0, .L802389F0
/* 6F18D0 802387F0 0000102D */ daddu $v0, $zero, $zero
/* 6F18D4 802387F4 C6000010 */ lwc1 $f0, 0x10($s0)
/* 6F18D8 802387F8 24040100 */ addiu $a0, $zero, 0x100
/* 6F18DC 802387FC E6400148 */ swc1 $f0, 0x148($s2)
/* 6F18E0 80238800 C6000018 */ lwc1 $f0, 0x18($s0)
/* 6F18E4 80238804 C602001C */ lwc1 $f2, 0x1c($s0)
/* 6F18E8 80238808 8E060060 */ lw $a2, 0x60($s0)
/* 6F18EC 8023880C 46020001 */ sub.s $f0, $f0, $f2
/* 6F18F0 80238810 3C013FE6 */ lui $at, 0x3fe6
/* 6F18F4 80238814 34216666 */ ori $at, $at, 0x6666
/* 6F18F8 80238818 44811000 */ mtc1 $at, $f2
/* 6F18FC 8023881C 24050001 */ addiu $a1, $zero, 1
/* 6F1900 80238820 E602003C */ swc1 $f2, 0x3c($s0)
/* 6F1904 80238824 46000007 */ neg.s $f0, $f0
/* 6F1908 80238828 0C098F3F */ jal set_animation
/* 6F190C 8023882C E6000044 */ swc1 $f0, 0x44($s0)
/* 6F1910 80238830 0808E27C */ j .L802389F0
/* 6F1914 80238834 24020001 */ addiu $v0, $zero, 1
.L80238838:
/* 6F1918 80238838 82820083 */ lb $v0, 0x83($s4)
/* 6F191C 8023883C 10400063 */ beqz $v0, .L802389CC
/* 6F1920 80238840 24020001 */ addiu $v0, $zero, 1
/* 6F1924 80238844 A6020064 */ sh $v0, 0x64($s0)
/* 6F1928 80238848 86020064 */ lh $v0, 0x64($s0)
/* 6F192C 8023884C 24030168 */ addiu $v1, $zero, 0x168
/* 6F1930 80238850 14400002 */ bnez $v0, .L8023885C
/* 6F1934 80238854 0062001A */ div $zero, $v1, $v0
/* 6F1938 80238858 0007000D */ break 7
.L8023885C:
/* 6F193C 8023885C 2401FFFF */ addiu $at, $zero, -1
/* 6F1940 80238860 14410004 */ bne $v0, $at, .L80238874
/* 6F1944 80238864 3C018000 */ lui $at, 0x8000
/* 6F1948 80238868 14610002 */ bne $v1, $at, .L80238874
/* 6F194C 8023886C 00000000 */ nop
/* 6F1950 80238870 0006000D */ break 6
.L80238874:
/* 6F1954 80238874 00001812 */ mflo $v1
/* 6F1958 80238878 C6020018 */ lwc1 $f2, 0x18($s0)
/* 6F195C 8023887C C600001C */ lwc1 $f0, 0x1c($s0)
/* 6F1960 80238880 3C013FE6 */ lui $at, 0x3fe6
/* 6F1964 80238884 34216666 */ ori $at, $at, 0x6666
/* 6F1968 80238888 44814000 */ mtc1 $at, $f8
/* 6F196C 8023888C C604001C */ lwc1 $f4, 0x1c($s0)
/* 6F1970 80238890 46001081 */ sub.s $f2, $f2, $f0
/* 6F1974 80238894 C6000018 */ lwc1 $f0, 0x18($s0)
/* 6F1978 80238898 3C0142B4 */ lui $at, 0x42b4
/* 6F197C 8023889C 44813000 */ mtc1 $at, $f6
/* 6F1980 802388A0 46040001 */ sub.s $f0, $f0, $f4
/* 6F1984 802388A4 E608003C */ swc1 $f8, 0x3c($s0)
/* 6F1988 802388A8 E6060024 */ swc1 $f6, 0x24($s0)
/* 6F198C 802388AC 46001087 */ neg.s $f2, $f2
/* 6F1990 802388B0 E6020044 */ swc1 $f2, 0x44($s0)
/* 6F1994 802388B4 3C018024 */ lui $at, %hi(D_8023CD88_6F5E68)
/* 6F1998 802388B8 D422CD88 */ ldc1 $f2, %lo(D_8023CD88_6F5E68)($at)
/* 6F199C 802388BC 46000005 */ abs.s $f0, $f0
/* 6F19A0 802388C0 46000021 */ cvt.d.s $f0, $f0
/* 6F19A4 802388C4 46220003 */ div.d $f0, $f0, $f2
/* 6F19A8 802388C8 46200020 */ cvt.s.d $f0, $f0
/* 6F19AC 802388CC E6000050 */ swc1 $f0, 0x50($s0)
/* 6F19B0 802388D0 44830000 */ mtc1 $v1, $f0
/* 6F19B4 802388D4 00000000 */ nop
/* 6F19B8 802388D8 46800020 */ cvt.s.w $f0, $f0
/* 6F19BC 802388DC E6000028 */ swc1 $f0, 0x28($s0)
/* 6F19C0 802388E0 C6400144 */ lwc1 $f0, 0x144($s2)
/* 6F19C4 802388E4 E6000000 */ swc1 $f0, ($s0)
/* 6F19C8 802388E8 C6400148 */ lwc1 $f0, 0x148($s2)
/* 6F19CC 802388EC E6000004 */ swc1 $f0, 4($s0)
/* 6F19D0 802388F0 C640014C */ lwc1 $f0, 0x14c($s2)
/* 6F19D4 802388F4 24020003 */ addiu $v0, $zero, 3
/* 6F19D8 802388F8 E6000008 */ swc1 $f0, 8($s0)
/* 6F19DC 802388FC AE620070 */ sw $v0, 0x70($s3)
.L80238900:
/* 6F19E0 80238900 C60C0024 */ lwc1 $f12, 0x24($s0)
/* 6F19E4 80238904 3C0140C9 */ lui $at, 0x40c9
/* 6F19E8 80238908 34210FD0 */ ori $at, $at, 0xfd0
/* 6F19EC 8023890C 4481B000 */ mtc1 $at, $f22
/* 6F19F0 80238910 00000000 */ nop
/* 6F19F4 80238914 46166302 */ mul.s $f12, $f12, $f22
/* 6F19F8 80238918 00000000 */ nop
/* 6F19FC 8023891C C6140000 */ lwc1 $f20, ($s0)
/* 6F1A00 80238920 3C0143B4 */ lui $at, 0x43b4
/* 6F1A04 80238924 4481C000 */ mtc1 $at, $f24
/* 6F1A08 80238928 4600A521 */ cvt.d.s $f20, $f20
/* 6F1A0C 8023892C 0C00A85B */ jal sin_rad
/* 6F1A10 80238930 46186303 */ div.s $f12, $f12, $f24
/* 6F1A14 80238934 C6020050 */ lwc1 $f2, 0x50($s0)
/* 6F1A18 80238938 46001082 */ mul.s $f2, $f2, $f0
/* 6F1A1C 8023893C 00000000 */ nop
/* 6F1A20 80238940 C60C0024 */ lwc1 $f12, 0x24($s0)
/* 6F1A24 80238944 46166302 */ mul.s $f12, $f12, $f22
/* 6F1A28 80238948 00000000 */ nop
/* 6F1A2C 8023894C 3C018024 */ lui $at, %hi(D_8023CD90_6F5E70)
/* 6F1A30 80238950 D420CD90 */ ldc1 $f0, %lo(D_8023CD90_6F5E70)($at)
/* 6F1A34 80238954 460010A1 */ cvt.d.s $f2, $f2
/* 6F1A38 80238958 46201083 */ div.d $f2, $f2, $f0
/* 6F1A3C 8023895C 4622A500 */ add.d $f20, $f20, $f2
/* 6F1A40 80238960 46186303 */ div.s $f12, $f12, $f24
/* 6F1A44 80238964 4620A520 */ cvt.s.d $f20, $f20
/* 6F1A48 80238968 0C00A85B */ jal sin_rad
/* 6F1A4C 8023896C E6140000 */ swc1 $f20, ($s0)
/* 6F1A50 80238970 C6020050 */ lwc1 $f2, 0x50($s0)
/* 6F1A54 80238974 46001082 */ mul.s $f2, $f2, $f0
/* 6F1A58 80238978 00000000 */ nop
/* 6F1A5C 8023897C C60C0024 */ lwc1 $f12, 0x24($s0)
/* 6F1A60 80238980 C6000028 */ lwc1 $f0, 0x28($s0)
/* 6F1A64 80238984 46006300 */ add.s $f12, $f12, $f0
/* 6F1A68 80238988 C6000004 */ lwc1 $f0, 4($s0)
/* 6F1A6C 8023898C 46020001 */ sub.s $f0, $f0, $f2
/* 6F1A70 80238990 E60C0024 */ swc1 $f12, 0x24($s0)
/* 6F1A74 80238994 0C00A6C9 */ jal clamp_angle
/* 6F1A78 80238998 E6000004 */ swc1 $f0, 4($s0)
/* 6F1A7C 8023899C C6020000 */ lwc1 $f2, ($s0)
/* 6F1A80 802389A0 E6000024 */ swc1 $f0, 0x24($s0)
/* 6F1A84 802389A4 E6420144 */ swc1 $f2, 0x144($s2)
/* 6F1A88 802389A8 C6000004 */ lwc1 $f0, 4($s0)
/* 6F1A8C 802389AC E6400148 */ swc1 $f0, 0x148($s2)
/* 6F1A90 802389B0 C6000008 */ lwc1 $f0, 8($s0)
/* 6F1A94 802389B4 E640014C */ swc1 $f0, 0x14c($s2)
/* 6F1A98 802389B8 3C02800E */ lui $v0, %hi(gBattleStatus)
/* 6F1A9C 802389BC 8C42C070 */ lw $v0, %lo(gBattleStatus)($v0)
/* 6F1AA0 802389C0 30422000 */ andi $v0, $v0, 0x2000
/* 6F1AA4 802389C4 10400003 */ beqz $v0, .L802389D4
/* 6F1AA8 802389C8 00000000 */ nop
.L802389CC:
/* 6F1AAC 802389CC 0808E27C */ j .L802389F0
/* 6F1AB0 802389D0 24020002 */ addiu $v0, $zero, 2
.L802389D4:
/* 6F1AB4 802389D4 96030064 */ lhu $v1, 0x64($s0)
/* 6F1AB8 802389D8 2463FFFF */ addiu $v1, $v1, -1
/* 6F1ABC 802389DC A6030064 */ sh $v1, 0x64($s0)
/* 6F1AC0 802389E0 00031C00 */ sll $v1, $v1, 0x10
/* 6F1AC4 802389E4 10600002 */ beqz $v1, .L802389F0
/* 6F1AC8 802389E8 24020001 */ addiu $v0, $zero, 1
/* 6F1ACC 802389EC 0000102D */ daddu $v0, $zero, $zero
.L802389F0:
/* 6F1AD0 802389F0 8FBF0024 */ lw $ra, 0x24($sp)
/* 6F1AD4 802389F4 8FB40020 */ lw $s4, 0x20($sp)
/* 6F1AD8 802389F8 8FB3001C */ lw $s3, 0x1c($sp)
/* 6F1ADC 802389FC 8FB20018 */ lw $s2, 0x18($sp)
/* 6F1AE0 80238A00 8FB10014 */ lw $s1, 0x14($sp)
/* 6F1AE4 80238A04 8FB00010 */ lw $s0, 0x10($sp)
/* 6F1AE8 80238A08 D7BA0040 */ ldc1 $f26, 0x40($sp)
/* 6F1AEC 80238A0C D7B80038 */ ldc1 $f24, 0x38($sp)
/* 6F1AF0 80238A10 D7B60030 */ ldc1 $f22, 0x30($sp)
/* 6F1AF4 80238A14 D7B40028 */ ldc1 $f20, 0x28($sp)
/* 6F1AF8 80238A18 03E00008 */ jr $ra
/* 6F1AFC 80238A1C 27BD0048 */ addiu $sp, $sp, 0x48

View File

@ -0,0 +1,90 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238A20_6F1B00
/* 6F1B00 80238A20 27BDFFD0 */ addiu $sp, $sp, -0x30
/* 6F1B04 80238A24 AFB00018 */ sw $s0, 0x18($sp)
/* 6F1B08 80238A28 3C10800E */ lui $s0, %hi(gBattleStatus+0xDC)
/* 6F1B0C 80238A2C 8E10C14C */ lw $s0, %lo(gBattleStatus+0xDC)($s0)
/* 6F1B10 80238A30 AFBF0020 */ sw $ra, 0x20($sp)
/* 6F1B14 80238A34 AFB1001C */ sw $s1, 0x1c($sp)
/* 6F1B18 80238A38 F7B40028 */ sdc1 $f20, 0x28($sp)
/* 6F1B1C 80238A3C 10A00002 */ beqz $a1, .L80238A48
/* 6F1B20 80238A40 2611000C */ addiu $s1, $s0, 0xc
/* 6F1B24 80238A44 AC800070 */ sw $zero, 0x70($a0)
.L80238A48:
/* 6F1B28 80238A48 8C820070 */ lw $v0, 0x70($a0)
/* 6F1B2C 80238A4C 14400008 */ bnez $v0, .L80238A70
/* 6F1B30 80238A50 24020001 */ addiu $v0, $zero, 1
/* 6F1B34 80238A54 C6000144 */ lwc1 $f0, 0x144($s0)
/* 6F1B38 80238A58 C6020148 */ lwc1 $f2, 0x148($s0)
/* 6F1B3C 80238A5C C604014C */ lwc1 $f4, 0x14c($s0)
/* 6F1B40 80238A60 E600000C */ swc1 $f0, 0xc($s0)
/* 6F1B44 80238A64 E6020010 */ swc1 $f2, 0x10($s0)
/* 6F1B48 80238A68 E6040014 */ swc1 $f4, 0x14($s0)
/* 6F1B4C 80238A6C AC820070 */ sw $v0, 0x70($a0)
.L80238A70:
/* 6F1B50 80238A70 C6000050 */ lwc1 $f0, 0x50($s0)
/* 6F1B54 80238A74 4480A000 */ mtc1 $zero, $f20
/* 6F1B58 80238A78 00000000 */ nop
/* 6F1B5C 80238A7C 4600A03C */ c.lt.s $f20, $f0
/* 6F1B60 80238A80 00000000 */ nop
/* 6F1B64 80238A84 45000005 */ bc1f .L80238A9C
/* 6F1B68 80238A88 24040100 */ addiu $a0, $zero, 0x100
/* 6F1B6C 80238A8C 8E060064 */ lw $a2, 0x64($s0)
/* 6F1B70 80238A90 0C098F3F */ jal set_animation
/* 6F1B74 80238A94 0000282D */ daddu $a1, $zero, $zero
/* 6F1B78 80238A98 C6000050 */ lwc1 $f0, 0x50($s0)
.L80238A9C:
/* 6F1B7C 80238A9C 4614003C */ c.lt.s $f0, $f20
/* 6F1B80 80238AA0 00000000 */ nop
/* 6F1B84 80238AA4 45000004 */ bc1f .L80238AB8
/* 6F1B88 80238AA8 24040100 */ addiu $a0, $zero, 0x100
/* 6F1B8C 80238AAC 8E060068 */ lw $a2, 0x68($s0)
/* 6F1B90 80238AB0 0C098F3F */ jal set_animation
/* 6F1B94 80238AB4 0000282D */ daddu $a1, $zero, $zero
.L80238AB8:
/* 6F1B98 80238AB8 C6040010 */ lwc1 $f4, 0x10($s0)
/* 6F1B9C 80238ABC C6000050 */ lwc1 $f0, 0x50($s0)
/* 6F1BA0 80238AC0 8E05004C */ lw $a1, 0x4c($s0)
/* 6F1BA4 80238AC4 46002100 */ add.s $f4, $f4, $f0
/* 6F1BA8 80238AC8 C6020048 */ lwc1 $f2, 0x48($s0)
/* 6F1BAC 80238ACC 8E060054 */ lw $a2, 0x54($s0)
/* 6F1BB0 80238AD0 46020001 */ sub.s $f0, $f0, $f2
/* 6F1BB4 80238AD4 0220202D */ daddu $a0, $s1, $zero
/* 6F1BB8 80238AD8 E6040010 */ swc1 $f4, 0x10($s0)
/* 6F1BBC 80238ADC 0C09904A */ jal add_xz_vec3f
/* 6F1BC0 80238AE0 E6000050 */ swc1 $f0, 0x50($s0)
/* 6F1BC4 80238AE4 C6000010 */ lwc1 $f0, 0x10($s0)
/* 6F1BC8 80238AE8 C6020014 */ lwc1 $f2, 0x14($s0)
/* 6F1BCC 80238AEC 3C014120 */ lui $at, 0x4120
/* 6F1BD0 80238AF0 44813000 */ mtc1 $at, $f6
/* 6F1BD4 80238AF4 E6000148 */ swc1 $f0, 0x148($s0)
/* 6F1BD8 80238AF8 C600000C */ lwc1 $f0, 0xc($s0)
/* 6F1BDC 80238AFC C6040148 */ lwc1 $f4, 0x148($s0)
/* 6F1BE0 80238B00 E602014C */ swc1 $f2, 0x14c($s0)
/* 6F1BE4 80238B04 4606203C */ c.lt.s $f4, $f6
/* 6F1BE8 80238B08 00000000 */ nop
/* 6F1BEC 80238B0C 45010003 */ bc1t .L80238B1C
/* 6F1BF0 80238B10 E6000144 */ swc1 $f0, 0x144($s0)
/* 6F1BF4 80238B14 0808E2D2 */ j .L80238B48
/* 6F1BF8 80238B18 0000102D */ daddu $v0, $zero, $zero
.L80238B1C:
/* 6F1BFC 80238B1C C600018C */ lwc1 $f0, 0x18c($s0)
/* 6F1C00 80238B20 E6060148 */ swc1 $f6, 0x148($s0)
/* 6F1C04 80238B24 E7A00010 */ swc1 $f0, 0x10($sp)
/* 6F1C08 80238B28 8E050144 */ lw $a1, 0x144($s0)
/* 6F1C0C 80238B2C 8E060148 */ lw $a2, 0x148($s0)
/* 6F1C10 80238B30 8E07014C */ lw $a3, 0x14c($s0)
/* 6F1C14 80238B34 0C0990BC */ jal play_movement_dust_effects
/* 6F1C18 80238B38 24040002 */ addiu $a0, $zero, 2
/* 6F1C1C 80238B3C 0C05272D */ jal play_sound
/* 6F1C20 80238B40 24040148 */ addiu $a0, $zero, 0x148
/* 6F1C24 80238B44 24020001 */ addiu $v0, $zero, 1
.L80238B48:
/* 6F1C28 80238B48 8FBF0020 */ lw $ra, 0x20($sp)
/* 6F1C2C 80238B4C 8FB1001C */ lw $s1, 0x1c($sp)
/* 6F1C30 80238B50 8FB00018 */ lw $s0, 0x18($sp)
/* 6F1C34 80238B54 D7B40028 */ ldc1 $f20, 0x28($sp)
/* 6F1C38 80238B58 03E00008 */ jr $ra
/* 6F1C3C 80238B5C 27BD0030 */ addiu $sp, $sp, 0x30

View File

@ -0,0 +1,32 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238B60_6F1C40
/* 6F1C40 80238B60 3C02800E */ lui $v0, %hi(gBattleStatus+0xDC)
/* 6F1C44 80238B64 8C42C14C */ lw $v0, %lo(gBattleStatus+0xDC)($v0)
/* 6F1C48 80238B68 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 6F1C4C 80238B6C AFB00010 */ sw $s0, 0x10($sp)
/* 6F1C50 80238B70 0080802D */ daddu $s0, $a0, $zero
/* 6F1C54 80238B74 AFBF0014 */ sw $ra, 0x14($sp)
/* 6F1C58 80238B78 0C09A75B */ jal get_actor
/* 6F1C5C 80238B7C 84440428 */ lh $a0, 0x428($v0)
/* 6F1C60 80238B80 0040202D */ daddu $a0, $v0, $zero
/* 6F1C64 80238B84 90820136 */ lbu $v0, 0x136($a0)
/* 6F1C68 80238B88 00021080 */ sll $v0, $v0, 2
/* 6F1C6C 80238B8C 3C018028 */ lui $at, %hi(D_80282B98)
/* 6F1C70 80238B90 00220821 */ addu $at, $at, $v0
/* 6F1C74 80238B94 8C222B98 */ lw $v0, %lo(D_80282B98)($at)
/* 6F1C78 80238B98 3C038028 */ lui $v1, %hi(D_80282B98)
/* 6F1C7C 80238B9C 24632B98 */ addiu $v1, $v1, %lo(D_80282B98)
/* 6F1C80 80238BA0 14400003 */ bnez $v0, .L80238BB0
/* 6F1C84 80238BA4 AE020084 */ sw $v0, 0x84($s0)
/* 6F1C88 80238BA8 8C620000 */ lw $v0, ($v1)
/* 6F1C8C 80238BAC AE020084 */ sw $v0, 0x84($s0)
.L80238BB0:
/* 6F1C90 80238BB0 0C094F44 */ jal save_tattle_flags
/* 6F1C94 80238BB4 90840136 */ lbu $a0, 0x136($a0)
/* 6F1C98 80238BB8 8FBF0014 */ lw $ra, 0x14($sp)
/* 6F1C9C 80238BBC 8FB00010 */ lw $s0, 0x10($sp)
/* 6F1CA0 80238BC0 24020002 */ addiu $v0, $zero, 2
/* 6F1CA4 80238BC4 03E00008 */ jr $ra
/* 6F1CA8 80238BC8 27BD0018 */ addiu $sp, $sp, 0x18

View File

@ -0,0 +1,150 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238BCC_6F1CAC
/* 6F1CAC 80238BCC 3C02800E */ lui $v0, %hi(gBattleStatus+0xDC)
/* 6F1CB0 80238BD0 8C42C14C */ lw $v0, %lo(gBattleStatus+0xDC)($v0)
/* 6F1CB4 80238BD4 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 6F1CB8 80238BD8 AFB00010 */ sw $s0, 0x10($sp)
/* 6F1CBC 80238BDC 0080802D */ daddu $s0, $a0, $zero
/* 6F1CC0 80238BE0 AFBF0014 */ sw $ra, 0x14($sp)
/* 6F1CC4 80238BE4 0C09A75B */ jal get_actor
/* 6F1CC8 80238BE8 84440428 */ lh $a0, 0x428($v0)
/* 6F1CCC 80238BEC 0040202D */ daddu $a0, $v0, $zero
/* 6F1CD0 80238BF0 8C820000 */ lw $v0, ($a0)
/* 6F1CD4 80238BF4 30420800 */ andi $v0, $v0, 0x800
/* 6F1CD8 80238BF8 14400022 */ bnez $v0, .L80238C84
/* 6F1CDC 80238BFC 00000000 */ nop
/* 6F1CE0 80238C00 90830191 */ lbu $v1, 0x191($a0)
/* 6F1CE4 80238C04 3C02AAAA */ lui $v0, 0xaaaa
/* 6F1CE8 80238C08 3442AAAB */ ori $v0, $v0, 0xaaab
/* 6F1CEC 80238C0C 00620019 */ multu $v1, $v0
/* 6F1CF0 80238C10 C4800188 */ lwc1 $f0, 0x188($a0)
/* 6F1CF4 80238C14 00003010 */ mfhi $a2
/* 6F1CF8 80238C18 00061042 */ srl $v0, $a2, 1
/* 6F1CFC 80238C1C 304200FF */ andi $v0, $v0, 0xff
/* 6F1D00 80238C20 44821000 */ mtc1 $v0, $f2
/* 6F1D04 80238C24 00000000 */ nop
/* 6F1D08 80238C28 468010A0 */ cvt.s.w $f2, $f2
/* 6F1D0C 80238C2C 46001082 */ mul.s $f2, $f2, $f0
/* 6F1D10 80238C30 00000000 */ nop
/* 6F1D14 80238C34 C6000088 */ lwc1 $f0, 0x88($s0)
/* 6F1D18 80238C38 46800020 */ cvt.s.w $f0, $f0
/* 6F1D1C 80238C3C 46020000 */ add.s $f0, $f0, $f2
/* 6F1D20 80238C40 4600010D */ trunc.w.s $f4, $f0
/* 6F1D24 80238C44 44032000 */ mfc1 $v1, $f4
/* 6F1D28 80238C48 00000000 */ nop
/* 6F1D2C 80238C4C AE030088 */ sw $v1, 0x88($s0)
/* 6F1D30 80238C50 90820191 */ lbu $v0, 0x191($a0)
/* 6F1D34 80238C54 C4800188 */ lwc1 $f0, 0x188($a0)
/* 6F1D38 80238C58 00021082 */ srl $v0, $v0, 2
/* 6F1D3C 80238C5C 44821000 */ mtc1 $v0, $f2
/* 6F1D40 80238C60 00000000 */ nop
/* 6F1D44 80238C64 468010A0 */ cvt.s.w $f2, $f2
/* 6F1D48 80238C68 46001082 */ mul.s $f2, $f2, $f0
/* 6F1D4C 80238C6C 00000000 */ nop
/* 6F1D50 80238C70 44830000 */ mtc1 $v1, $f0
/* 6F1D54 80238C74 00000000 */ nop
/* 6F1D58 80238C78 46800020 */ cvt.s.w $f0, $f0
/* 6F1D5C 80238C7C 0808E341 */ j .L80238D04
/* 6F1D60 80238C80 46020000 */ add.s $f0, $f0, $f2
.L80238C84:
/* 6F1D64 80238C84 90830191 */ lbu $v1, 0x191($a0)
/* 6F1D68 80238C88 3C02AAAA */ lui $v0, 0xaaaa
/* 6F1D6C 80238C8C 3442AAAB */ ori $v0, $v0, 0xaaab
/* 6F1D70 80238C90 00620019 */ multu $v1, $v0
/* 6F1D74 80238C94 C4800188 */ lwc1 $f0, 0x188($a0)
/* 6F1D78 80238C98 00003010 */ mfhi $a2
/* 6F1D7C 80238C9C 00061042 */ srl $v0, $a2, 1
/* 6F1D80 80238CA0 304200FF */ andi $v0, $v0, 0xff
/* 6F1D84 80238CA4 44821000 */ mtc1 $v0, $f2
/* 6F1D88 80238CA8 00000000 */ nop
/* 6F1D8C 80238CAC 468010A0 */ cvt.s.w $f2, $f2
/* 6F1D90 80238CB0 46001082 */ mul.s $f2, $f2, $f0
/* 6F1D94 80238CB4 00000000 */ nop
/* 6F1D98 80238CB8 C6000088 */ lwc1 $f0, 0x88($s0)
/* 6F1D9C 80238CBC 46800020 */ cvt.s.w $f0, $f0
/* 6F1DA0 80238CC0 46020001 */ sub.s $f0, $f0, $f2
/* 6F1DA4 80238CC4 4600010D */ trunc.w.s $f4, $f0
/* 6F1DA8 80238CC8 44032000 */ mfc1 $v1, $f4
/* 6F1DAC 80238CCC 00000000 */ nop
/* 6F1DB0 80238CD0 AE030088 */ sw $v1, 0x88($s0)
/* 6F1DB4 80238CD4 90820191 */ lbu $v0, 0x191($a0)
/* 6F1DB8 80238CD8 C4800188 */ lwc1 $f0, 0x188($a0)
/* 6F1DBC 80238CDC 00021082 */ srl $v0, $v0, 2
/* 6F1DC0 80238CE0 44821000 */ mtc1 $v0, $f2
/* 6F1DC4 80238CE4 00000000 */ nop
/* 6F1DC8 80238CE8 468010A0 */ cvt.s.w $f2, $f2
/* 6F1DCC 80238CEC 46001082 */ mul.s $f2, $f2, $f0
/* 6F1DD0 80238CF0 00000000 */ nop
/* 6F1DD4 80238CF4 44830000 */ mtc1 $v1, $f0
/* 6F1DD8 80238CF8 00000000 */ nop
/* 6F1DDC 80238CFC 46800020 */ cvt.s.w $f0, $f0
/* 6F1DE0 80238D00 46020001 */ sub.s $f0, $f0, $f2
.L80238D04:
/* 6F1DE4 80238D04 4600010D */ trunc.w.s $f4, $f0
/* 6F1DE8 80238D08 E6040088 */ swc1 $f4, 0x88($s0)
/* 6F1DEC 80238D0C 8C820000 */ lw $v0, ($a0)
/* 6F1DF0 80238D10 30428000 */ andi $v0, $v0, 0x8000
/* 6F1DF4 80238D14 1040000E */ beqz $v0, .L80238D50
/* 6F1DF8 80238D18 00000000 */ nop
/* 6F1DFC 80238D1C 90820191 */ lbu $v0, 0x191($a0)
/* 6F1E00 80238D20 C4800188 */ lwc1 $f0, 0x188($a0)
/* 6F1E04 80238D24 00021042 */ srl $v0, $v0, 1
/* 6F1E08 80238D28 44821000 */ mtc1 $v0, $f2
/* 6F1E0C 80238D2C 00000000 */ nop
/* 6F1E10 80238D30 468010A0 */ cvt.s.w $f2, $f2
/* 6F1E14 80238D34 46001082 */ mul.s $f2, $f2, $f0
/* 6F1E18 80238D38 00000000 */ nop
/* 6F1E1C 80238D3C C6000088 */ lwc1 $f0, 0x88($s0)
/* 6F1E20 80238D40 46800020 */ cvt.s.w $f0, $f0
/* 6F1E24 80238D44 46020001 */ sub.s $f0, $f0, $f2
/* 6F1E28 80238D48 4600010D */ trunc.w.s $f4, $f0
/* 6F1E2C 80238D4C E6040088 */ swc1 $f4, 0x88($s0)
.L80238D50:
/* 6F1E30 80238D50 90820191 */ lbu $v0, 0x191($a0)
/* 6F1E34 80238D54 C4820188 */ lwc1 $f2, 0x188($a0)
/* 6F1E38 80238D58 44820000 */ mtc1 $v0, $f0
/* 6F1E3C 80238D5C 00000000 */ nop
/* 6F1E40 80238D60 46800020 */ cvt.s.w $f0, $f0
/* 6F1E44 80238D64 46020002 */ mul.s $f0, $f0, $f2
/* 6F1E48 80238D68 00000000 */ nop
/* 6F1E4C 80238D6C 90850190 */ lbu $a1, 0x190($a0)
/* 6F1E50 80238D70 4600010D */ trunc.w.s $f4, $f0
/* 6F1E54 80238D74 44032000 */ mfc1 $v1, $f4
/* 6F1E58 80238D78 00000000 */ nop
/* 6F1E5C 80238D7C 0065102A */ slt $v0, $v1, $a1
/* 6F1E60 80238D80 54400001 */ bnel $v0, $zero, .L80238D88
/* 6F1E64 80238D84 00A0182D */ daddu $v1, $a1, $zero
.L80238D88:
/* 6F1E68 80238D88 2462004C */ addiu $v0, $v1, 0x4c
/* 6F1E6C 80238D8C AE020090 */ sw $v0, 0x90($s0)
/* 6F1E70 80238D90 90820136 */ lbu $v0, 0x136($a0)
/* 6F1E74 80238D94 00021080 */ sll $v0, $v0, 2
/* 6F1E78 80238D98 3C038028 */ lui $v1, %hi(D_80282EE8)
/* 6F1E7C 80238D9C 00621821 */ addu $v1, $v1, $v0
/* 6F1E80 80238DA0 80632EE8 */ lb $v1, %lo(D_80282EE8)($v1)
/* 6F1E84 80238DA4 8E020084 */ lw $v0, 0x84($s0)
/* 6F1E88 80238DA8 00431021 */ addu $v0, $v0, $v1
/* 6F1E8C 80238DAC AE020084 */ sw $v0, 0x84($s0)
/* 6F1E90 80238DB0 90820136 */ lbu $v0, 0x136($a0)
/* 6F1E94 80238DB4 00021080 */ sll $v0, $v0, 2
/* 6F1E98 80238DB8 3C038028 */ lui $v1, %hi(D_80282EE9)
/* 6F1E9C 80238DBC 00621821 */ addu $v1, $v1, $v0
/* 6F1EA0 80238DC0 80632EE9 */ lb $v1, %lo(D_80282EE9)($v1)
/* 6F1EA4 80238DC4 8E020088 */ lw $v0, 0x88($s0)
/* 6F1EA8 80238DC8 00431021 */ addu $v0, $v0, $v1
/* 6F1EAC 80238DCC AE020088 */ sw $v0, 0x88($s0)
/* 6F1EB0 80238DD0 90820136 */ lbu $v0, 0x136($a0)
/* 6F1EB4 80238DD4 8E030090 */ lw $v1, 0x90($s0)
/* 6F1EB8 80238DD8 00021080 */ sll $v0, $v0, 2
/* 6F1EBC 80238DDC 3C048028 */ lui $a0, %hi(D_80282EEA)
/* 6F1EC0 80238DE0 00822021 */ addu $a0, $a0, $v0
/* 6F1EC4 80238DE4 80842EEA */ lb $a0, %lo(D_80282EEA)($a0)
/* 6F1EC8 80238DE8 00641821 */ addu $v1, $v1, $a0
/* 6F1ECC 80238DEC AE030090 */ sw $v1, 0x90($s0)
/* 6F1ED0 80238DF0 8FBF0014 */ lw $ra, 0x14($sp)
/* 6F1ED4 80238DF4 8FB00010 */ lw $s0, 0x10($sp)
/* 6F1ED8 80238DF8 24020002 */ addiu $v0, $zero, 2
/* 6F1EDC 80238DFC 03E00008 */ jr $ra
/* 6F1EE0 80238E00 27BD0018 */ addiu $sp, $sp, 0x18

View File

@ -0,0 +1,21 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238E04_6F1EE4
/* 6F1EE4 80238E04 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 6F1EE8 80238E08 0000202D */ daddu $a0, $zero, $zero
/* 6F1EEC 80238E0C 3C013F80 */ lui $at, 0x3f80
/* 6F1EF0 80238E10 44810000 */ mtc1 $at, $f0
/* 6F1EF4 80238E14 3C05434E */ lui $a1, 0x434e
/* 6F1EF8 80238E18 3C064310 */ lui $a2, 0x4310
/* 6F1EFC 80238E1C 0000382D */ daddu $a3, $zero, $zero
/* 6F1F00 80238E20 AFBF0018 */ sw $ra, 0x18($sp)
/* 6F1F04 80238E24 AFA00014 */ sw $zero, 0x14($sp)
/* 6F1F08 80238E28 0C01C844 */ jal func_80072110
/* 6F1F0C 80238E2C E7A00010 */ swc1 $f0, 0x10($sp)
/* 6F1F10 80238E30 8FBF0018 */ lw $ra, 0x18($sp)
/* 6F1F14 80238E34 3C018024 */ lui $at, %hi(D_8023CDA0)
/* 6F1F18 80238E38 AC22CDA0 */ sw $v0, %lo(D_8023CDA0)($at)
/* 6F1F1C 80238E3C 24020002 */ addiu $v0, $zero, 2
/* 6F1F20 80238E40 03E00008 */ jr $ra
/* 6F1F24 80238E44 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -0,0 +1,15 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238E48_6F1F28
/* 6F1F28 80238E48 3C038024 */ lui $v1, %hi(D_8023CDA0)
/* 6F1F2C 80238E4C 8C63CDA0 */ lw $v1, %lo(D_8023CDA0)($v1)
/* 6F1F30 80238E50 3C014310 */ lui $at, 0x4310
/* 6F1F34 80238E54 44810000 */ mtc1 $at, $f0
/* 6F1F38 80238E58 8C62000C */ lw $v0, 0xc($v1)
/* 6F1F3C 80238E5C E4400008 */ swc1 $f0, 8($v0)
/* 6F1F40 80238E60 8C620000 */ lw $v0, ($v1)
/* 6F1F44 80238E64 34420010 */ ori $v0, $v0, 0x10
/* 6F1F48 80238E68 AC620000 */ sw $v0, ($v1)
/* 6F1F4C 80238E6C 03E00008 */ jr $ra
/* 6F1F50 80238E70 24020002 */ addiu $v0, $zero, 2

View File

@ -0,0 +1,33 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238E74_6F1F54
/* 6F1F54 80238E74 3C02800E */ lui $v0, %hi(gBattleStatus)
/* 6F1F58 80238E78 2442C070 */ addiu $v0, $v0, %lo(gBattleStatus)
/* 6F1F5C 80238E7C 8C4500DC */ lw $a1, 0xdc($v0)
/* 6F1F60 80238E80 AC800084 */ sw $zero, 0x84($a0)
/* 6F1F64 80238E84 8443017C */ lh $v1, 0x17c($v0)
/* 6F1F68 80238E88 24020087 */ addiu $v0, $zero, 0x87
/* 6F1F6C 80238E8C 1062000A */ beq $v1, $v0, .L80238EB8
/* 6F1F70 80238E90 28620088 */ slti $v0, $v1, 0x88
/* 6F1F74 80238E94 10400005 */ beqz $v0, .L80238EAC
/* 6F1F78 80238E98 24020086 */ addiu $v0, $zero, 0x86
/* 6F1F7C 80238E9C 10620006 */ beq $v1, $v0, .L80238EB8
/* 6F1F80 80238EA0 24020002 */ addiu $v0, $zero, 2
/* 6F1F84 80238EA4 0808E3B5 */ j .L80238ED4
/* 6F1F88 80238EA8 00000000 */ nop
.L80238EAC:
/* 6F1F8C 80238EAC 24020088 */ addiu $v0, $zero, 0x88
/* 6F1F90 80238EB0 14620008 */ bne $v1, $v0, .L80238ED4
/* 6F1F94 80238EB4 24020002 */ addiu $v0, $zero, 2
.L80238EB8:
/* 6F1F98 80238EB8 80A20220 */ lb $v0, 0x220($a1)
/* 6F1F9C 80238EBC 28420063 */ slti $v0, $v0, 0x63
/* 6F1FA0 80238EC0 14400004 */ bnez $v0, .L80238ED4
/* 6F1FA4 80238EC4 24020002 */ addiu $v0, $zero, 2
/* 6F1FA8 80238EC8 24020001 */ addiu $v0, $zero, 1
/* 6F1FAC 80238ECC AC820084 */ sw $v0, 0x84($a0)
/* 6F1FB0 80238ED0 24020002 */ addiu $v0, $zero, 2
.L80238ED4:
/* 6F1FB4 80238ED4 03E00008 */ jr $ra
/* 6F1FB8 80238ED8 00000000 */ nop

View File

@ -0,0 +1,96 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238EDC_6F1FBC
/* 6F1FBC 80238EDC 27BDFFD0 */ addiu $sp, $sp, -0x30
/* 6F1FC0 80238EE0 AFB30024 */ sw $s3, 0x24($sp)
/* 6F1FC4 80238EE4 0080982D */ daddu $s3, $a0, $zero
/* 6F1FC8 80238EE8 3C03800E */ lui $v1, %hi(gBattleStatus)
/* 6F1FCC 80238EEC 2463C070 */ addiu $v1, $v1, %lo(gBattleStatus)
/* 6F1FD0 80238EF0 AFBF0028 */ sw $ra, 0x28($sp)
/* 6F1FD4 80238EF4 AFB20020 */ sw $s2, 0x20($sp)
/* 6F1FD8 80238EF8 AFB1001C */ sw $s1, 0x1c($sp)
/* 6F1FDC 80238EFC AFB00018 */ sw $s0, 0x18($sp)
/* 6F1FE0 80238F00 8E71000C */ lw $s1, 0xc($s3)
/* 6F1FE4 80238F04 8C6400DC */ lw $a0, 0xdc($v1)
/* 6F1FE8 80238F08 3C058024 */ lui $a1, %hi(D_8023CDA4)
/* 6F1FEC 80238F0C 24A5CDA4 */ addiu $a1, $a1, %lo(D_8023CDA4)
/* 6F1FF0 80238F10 ACA00000 */ sw $zero, ($a1)
/* 6F1FF4 80238F14 80820220 */ lb $v0, 0x220($a0)
/* 6F1FF8 80238F18 18400002 */ blez $v0, .L80238F24
/* 6F1FFC 80238F1C 24020001 */ addiu $v0, $zero, 1
/* 6F2000 80238F20 ACA20000 */ sw $v0, ($a1)
.L80238F24:
/* 6F2004 80238F24 8463017C */ lh $v1, 0x17c($v1)
/* 6F2008 80238F28 24020087 */ addiu $v0, $zero, 0x87
/* 6F200C 80238F2C 1062000B */ beq $v1, $v0, .L80238F5C
/* 6F2010 80238F30 0000902D */ daddu $s2, $zero, $zero
/* 6F2014 80238F34 28620088 */ slti $v0, $v1, 0x88
/* 6F2018 80238F38 10400005 */ beqz $v0, .L80238F50
/* 6F201C 80238F3C 24020086 */ addiu $v0, $zero, 0x86
/* 6F2020 80238F40 10620006 */ beq $v1, $v0, .L80238F5C
/* 6F2024 80238F44 00000000 */ nop
/* 6F2028 80238F48 0808E3E1 */ j .L80238F84
/* 6F202C 80238F4C 00000000 */ nop
.L80238F50:
/* 6F2030 80238F50 24020088 */ addiu $v0, $zero, 0x88
/* 6F2034 80238F54 1462000B */ bne $v1, $v0, .L80238F84
/* 6F2038 80238F58 00000000 */ nop
.L80238F5C:
/* 6F203C 80238F5C 90820220 */ lbu $v0, 0x220($a0)
/* 6F2040 80238F60 24420002 */ addiu $v0, $v0, 2
/* 6F2044 80238F64 A0820220 */ sb $v0, 0x220($a0)
/* 6F2048 80238F68 00021600 */ sll $v0, $v0, 0x18
/* 6F204C 80238F6C 00021603 */ sra $v0, $v0, 0x18
/* 6F2050 80238F70 28420063 */ slti $v0, $v0, 0x63
/* 6F2054 80238F74 14400003 */ bnez $v0, .L80238F84
/* 6F2058 80238F78 24120001 */ addiu $s2, $zero, 1
/* 6F205C 80238F7C 24020063 */ addiu $v0, $zero, 0x63
/* 6F2060 80238F80 A0820220 */ sb $v0, 0x220($a0)
.L80238F84:
/* 6F2064 80238F84 8E250000 */ lw $a1, ($s1)
/* 6F2068 80238F88 26310004 */ addiu $s1, $s1, 4
/* 6F206C 80238F8C 0C0B1EAF */ jal get_variable
/* 6F2070 80238F90 0260202D */ daddu $a0, $s3, $zero
/* 6F2074 80238F94 8E250000 */ lw $a1, ($s1)
/* 6F2078 80238F98 26310004 */ addiu $s1, $s1, 4
/* 6F207C 80238F9C 0260202D */ daddu $a0, $s3, $zero
/* 6F2080 80238FA0 0C0B1EAF */ jal get_variable
/* 6F2084 80238FA4 0040802D */ daddu $s0, $v0, $zero
/* 6F2088 80238FA8 0260202D */ daddu $a0, $s3, $zero
/* 6F208C 80238FAC 8E250000 */ lw $a1, ($s1)
/* 6F2090 80238FB0 0C0B1EAF */ jal get_variable
/* 6F2094 80238FB4 0040882D */ daddu $s1, $v0, $zero
/* 6F2098 80238FB8 0240202D */ daddu $a0, $s2, $zero
/* 6F209C 80238FBC 44901000 */ mtc1 $s0, $f2
/* 6F20A0 80238FC0 00000000 */ nop
/* 6F20A4 80238FC4 468010A0 */ cvt.s.w $f2, $f2
/* 6F20A8 80238FC8 44051000 */ mfc1 $a1, $f2
/* 6F20AC 80238FCC 44911000 */ mtc1 $s1, $f2
/* 6F20B0 80238FD0 00000000 */ nop
/* 6F20B4 80238FD4 468010A0 */ cvt.s.w $f2, $f2
/* 6F20B8 80238FD8 44061000 */ mfc1 $a2, $f2
/* 6F20BC 80238FDC 44821000 */ mtc1 $v0, $f2
/* 6F20C0 80238FE0 00000000 */ nop
/* 6F20C4 80238FE4 468010A0 */ cvt.s.w $f2, $f2
/* 6F20C8 80238FE8 3C013F80 */ lui $at, 0x3f80
/* 6F20CC 80238FEC 44810000 */ mtc1 $at, $f0
/* 6F20D0 80238FF0 44071000 */ mfc1 $a3, $f2
/* 6F20D4 80238FF4 2403003C */ addiu $v1, $zero, 0x3c
/* 6F20D8 80238FF8 AFA30014 */ sw $v1, 0x14($sp)
/* 6F20DC 80238FFC 0C01C634 */ jal func_800718D0
/* 6F20E0 80239000 E7A00010 */ swc1 $f0, 0x10($sp)
/* 6F20E4 80239004 3C05800E */ lui $a1, %hi(gBattleStatus)
/* 6F20E8 80239008 24A5C070 */ addiu $a1, $a1, %lo(gBattleStatus)
/* 6F20EC 8023900C 8CA30000 */ lw $v1, ($a1)
/* 6F20F0 80239010 3C044000 */ lui $a0, 0x4000
/* 6F20F4 80239014 00641825 */ or $v1, $v1, $a0
/* 6F20F8 80239018 ACA30000 */ sw $v1, ($a1)
/* 6F20FC 8023901C 8FBF0028 */ lw $ra, 0x28($sp)
/* 6F2100 80239020 8FB30024 */ lw $s3, 0x24($sp)
/* 6F2104 80239024 8FB20020 */ lw $s2, 0x20($sp)
/* 6F2108 80239028 8FB1001C */ lw $s1, 0x1c($sp)
/* 6F210C 8023902C 8FB00018 */ lw $s0, 0x18($sp)
/* 6F2110 80239030 24020002 */ addiu $v0, $zero, 2
/* 6F2114 80239034 03E00008 */ jr $ra
/* 6F2118 80239038 27BD0030 */ addiu $sp, $sp, 0x30

View File

@ -0,0 +1,15 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_8023903C_6F211C
/* 6F211C 8023903C 3C03800E */ lui $v1, %hi(gBattleStatus)
/* 6F2120 80239040 2463C070 */ addiu $v1, $v1, %lo(gBattleStatus)
/* 6F2124 80239044 8C6200DC */ lw $v0, 0xdc($v1)
/* 6F2128 80239048 3C04BFFF */ lui $a0, 0xbfff
/* 6F212C 8023904C A0400220 */ sb $zero, 0x220($v0)
/* 6F2130 80239050 8C620000 */ lw $v0, ($v1)
/* 6F2134 80239054 3484FFFF */ ori $a0, $a0, 0xffff
/* 6F2138 80239058 00441024 */ and $v0, $v0, $a0
/* 6F213C 8023905C AC620000 */ sw $v0, ($v1)
/* 6F2140 80239060 03E00008 */ jr $ra
/* 6F2144 80239064 24020002 */ addiu $v0, $zero, 2

View File

@ -0,0 +1,23 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80239068_6F2148
/* 6F2148 80239068 3C06800E */ lui $a2, %hi(gBattleStatus)
/* 6F214C 8023906C 24C6C070 */ addiu $a2, $a2, %lo(gBattleStatus)
/* 6F2150 80239070 3C034000 */ lui $v1, 0x4000
/* 6F2154 80239074 8CC20000 */ lw $v0, ($a2)
/* 6F2158 80239078 8CC500DC */ lw $a1, 0xdc($a2)
/* 6F215C 8023907C 00431024 */ and $v0, $v0, $v1
/* 6F2160 80239080 50400001 */ beql $v0, $zero, .L80239088
/* 6F2164 80239084 A0A00220 */ sb $zero, 0x220($a1)
.L80239088:
/* 6F2168 80239088 80A20220 */ lb $v0, 0x220($a1)
/* 6F216C 8023908C 3C03BFFF */ lui $v1, 0xbfff
/* 6F2170 80239090 AC820084 */ sw $v0, 0x84($a0)
/* 6F2174 80239094 A0A00220 */ sb $zero, 0x220($a1)
/* 6F2178 80239098 8CC20000 */ lw $v0, ($a2)
/* 6F217C 8023909C 3463FFFF */ ori $v1, $v1, 0xffff
/* 6F2180 802390A0 00431024 */ and $v0, $v0, $v1
/* 6F2184 802390A4 ACC20000 */ sw $v0, ($a2)
/* 6F2188 802390A8 03E00008 */ jr $ra
/* 6F218C 802390AC 24020002 */ addiu $v0, $zero, 2

View File

@ -0,0 +1,10 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802390B0_6F2190
/* 6F2190 802390B0 3C02800E */ lui $v0, %hi(gBattleStatus+0xDC)
/* 6F2194 802390B4 8C42C14C */ lw $v0, %lo(gBattleStatus+0xDC)($v0)
/* 6F2198 802390B8 80420220 */ lb $v0, 0x220($v0)
/* 6F219C 802390BC AC820084 */ sw $v0, 0x84($a0)
/* 6F21A0 802390C0 03E00008 */ jr $ra
/* 6F21A4 802390C4 24020002 */ addiu $v0, $zero, 2

View File

@ -0,0 +1,54 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802390C8_6F21A8
/* 6F21A8 802390C8 27BDFFD0 */ addiu $sp, $sp, -0x30
/* 6F21AC 802390CC AFB1001C */ sw $s1, 0x1c($sp)
/* 6F21B0 802390D0 0080882D */ daddu $s1, $a0, $zero
/* 6F21B4 802390D4 AFBF0028 */ sw $ra, 0x28($sp)
/* 6F21B8 802390D8 AFB30024 */ sw $s3, 0x24($sp)
/* 6F21BC 802390DC AFB20020 */ sw $s2, 0x20($sp)
/* 6F21C0 802390E0 AFB00018 */ sw $s0, 0x18($sp)
/* 6F21C4 802390E4 8E30000C */ lw $s0, 0xc($s1)
/* 6F21C8 802390E8 8E050000 */ lw $a1, ($s0)
/* 6F21CC 802390EC 0C0B1EAF */ jal get_variable
/* 6F21D0 802390F0 26100004 */ addiu $s0, $s0, 4
/* 6F21D4 802390F4 8E050000 */ lw $a1, ($s0)
/* 6F21D8 802390F8 26100004 */ addiu $s0, $s0, 4
/* 6F21DC 802390FC 0220202D */ daddu $a0, $s1, $zero
/* 6F21E0 80239100 0C0B1EAF */ jal get_variable
/* 6F21E4 80239104 0040982D */ daddu $s3, $v0, $zero
/* 6F21E8 80239108 8E050000 */ lw $a1, ($s0)
/* 6F21EC 8023910C 26100004 */ addiu $s0, $s0, 4
/* 6F21F0 80239110 0220202D */ daddu $a0, $s1, $zero
/* 6F21F4 80239114 0C0B1EAF */ jal get_variable
/* 6F21F8 80239118 0040902D */ daddu $s2, $v0, $zero
/* 6F21FC 8023911C 0220202D */ daddu $a0, $s1, $zero
/* 6F2200 80239120 8E050000 */ lw $a1, ($s0)
/* 6F2204 80239124 0C0B210B */ jal get_float_variable
/* 6F2208 80239128 0040802D */ daddu $s0, $v0, $zero
/* 6F220C 8023912C 24040006 */ addiu $a0, $zero, 6
/* 6F2210 80239130 44931000 */ mtc1 $s3, $f2
/* 6F2214 80239134 00000000 */ nop
/* 6F2218 80239138 468010A0 */ cvt.s.w $f2, $f2
/* 6F221C 8023913C 44051000 */ mfc1 $a1, $f2
/* 6F2220 80239140 44921000 */ mtc1 $s2, $f2
/* 6F2224 80239144 00000000 */ nop
/* 6F2228 80239148 468010A0 */ cvt.s.w $f2, $f2
/* 6F222C 8023914C 44061000 */ mfc1 $a2, $f2
/* 6F2230 80239150 44901000 */ mtc1 $s0, $f2
/* 6F2234 80239154 00000000 */ nop
/* 6F2238 80239158 468010A0 */ cvt.s.w $f2, $f2
/* 6F223C 8023915C 44071000 */ mfc1 $a3, $f2
/* 6F2240 80239160 2402002D */ addiu $v0, $zero, 0x2d
/* 6F2244 80239164 E7A00010 */ swc1 $f0, 0x10($sp)
/* 6F2248 80239168 0C01C82C */ jal func_800720B0
/* 6F224C 8023916C AFA20014 */ sw $v0, 0x14($sp)
/* 6F2250 80239170 8FBF0028 */ lw $ra, 0x28($sp)
/* 6F2254 80239174 8FB30024 */ lw $s3, 0x24($sp)
/* 6F2258 80239178 8FB20020 */ lw $s2, 0x20($sp)
/* 6F225C 8023917C 8FB1001C */ lw $s1, 0x1c($sp)
/* 6F2260 80239180 8FB00018 */ lw $s0, 0x18($sp)
/* 6F2264 80239184 24020002 */ addiu $v0, $zero, 2
/* 6F2268 80239188 03E00008 */ jr $ra
/* 6F226C 8023918C 27BD0030 */ addiu $sp, $sp, 0x30

View File

@ -0,0 +1,13 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80239190_6F2270
/* 6F2270 80239190 3C028024 */ lui $v0, %hi(D_8023CDA4)
/* 6F2274 80239194 8C42CDA4 */ lw $v0, %lo(D_8023CDA4)($v0)
/* 6F2278 80239198 54400002 */ bnel $v0, $zero, .L802391A4
/* 6F227C 8023919C 24020025 */ addiu $v0, $zero, 0x25
/* 6F2280 802391A0 24020024 */ addiu $v0, $zero, 0x24
.L802391A4:
/* 6F2284 802391A4 AC820084 */ sw $v0, 0x84($a0)
/* 6F2288 802391A8 03E00008 */ jr $ra
/* 6F228C 802391AC 24020002 */ addiu $v0, $zero, 2

View File

@ -0,0 +1,77 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238000_6F5E80
/* 6F5E80 80238000 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 6F5E84 80238004 AFB00018 */ sw $s0, 0x18($sp)
/* 6F5E88 80238008 3C10800E */ lui $s0, %hi(gBattleStatus+0xDC)
/* 6F5E8C 8023800C 8E10C14C */ lw $s0, %lo(gBattleStatus+0xDC)($s0)
/* 6F5E90 80238010 AFBF0020 */ sw $ra, 0x20($sp)
/* 6F5E94 80238014 AFB1001C */ sw $s1, 0x1c($sp)
/* 6F5E98 80238018 10A00007 */ beqz $a1, .L80238038
/* 6F5E9C 8023801C 2611000C */ addiu $s1, $s0, 0xc
/* 6F5EA0 80238020 C6000144 */ lwc1 $f0, 0x144($s0)
/* 6F5EA4 80238024 C6020148 */ lwc1 $f2, 0x148($s0)
/* 6F5EA8 80238028 C604014C */ lwc1 $f4, 0x14c($s0)
/* 6F5EAC 8023802C E600000C */ swc1 $f0, 0xc($s0)
/* 6F5EB0 80238030 E6020010 */ swc1 $f2, 0x10($s0)
/* 6F5EB4 80238034 E6040014 */ swc1 $f4, 0x14($s0)
.L80238038:
/* 6F5EB8 80238038 8E05004C */ lw $a1, 0x4c($s0)
/* 6F5EBC 8023803C 8E060054 */ lw $a2, 0x54($s0)
/* 6F5EC0 80238040 0C09904A */ jal add_xz_vec3f
/* 6F5EC4 80238044 0220202D */ daddu $a0, $s1, $zero
/* 6F5EC8 80238048 C602004C */ lwc1 $f2, 0x4c($s0)
/* 6F5ECC 8023804C 3C014080 */ lui $at, 0x4080
/* 6F5ED0 80238050 44810000 */ mtc1 $at, $f0
/* 6F5ED4 80238054 00000000 */ nop
/* 6F5ED8 80238058 4600103C */ c.lt.s $f2, $f0
/* 6F5EDC 8023805C 00000000 */ nop
/* 6F5EE0 80238060 45000007 */ bc1f .L80238080
/* 6F5EE4 80238064 0000202D */ daddu $a0, $zero, $zero
/* 6F5EE8 80238068 C6000054 */ lwc1 $f0, 0x54($s0)
/* 6F5EEC 8023806C E7A00010 */ swc1 $f0, 0x10($sp)
/* 6F5EF0 80238070 8E05000C */ lw $a1, 0xc($s0)
/* 6F5EF4 80238074 8E060010 */ lw $a2, 0x10($s0)
/* 6F5EF8 80238078 0808E026 */ j .L80238098
/* 6F5EFC 8023807C 8E070014 */ lw $a3, 0x14($s0)
.L80238080:
/* 6F5F00 80238080 C6000054 */ lwc1 $f0, 0x54($s0)
/* 6F5F04 80238084 E7A00010 */ swc1 $f0, 0x10($sp)
/* 6F5F08 80238088 8E05000C */ lw $a1, 0xc($s0)
/* 6F5F0C 8023808C 8E060010 */ lw $a2, 0x10($s0)
/* 6F5F10 80238090 8E070014 */ lw $a3, 0x14($s0)
/* 6F5F14 80238094 24040001 */ addiu $a0, $zero, 1
.L80238098:
/* 6F5F18 80238098 0C0990BC */ jal play_movement_dust_effects
/* 6F5F1C 8023809C 00000000 */ nop
/* 6F5F20 802380A0 C6200040 */ lwc1 $f0, 0x40($s1)
/* 6F5F24 802380A4 3C013FF8 */ lui $at, 0x3ff8
/* 6F5F28 802380A8 44811800 */ mtc1 $at, $f3
/* 6F5F2C 802380AC 44801000 */ mtc1 $zero, $f2
/* 6F5F30 802380B0 46000021 */ cvt.d.s $f0, $f0
/* 6F5F34 802380B4 46220003 */ div.d $f0, $f0, $f2
/* 6F5F38 802380B8 C6220000 */ lwc1 $f2, ($s1)
/* 6F5F3C 802380BC 46200020 */ cvt.s.d $f0, $f0
/* 6F5F40 802380C0 E6200040 */ swc1 $f0, 0x40($s1)
/* 6F5F44 802380C4 E6020144 */ swc1 $f2, 0x144($s0)
/* 6F5F48 802380C8 C6200004 */ lwc1 $f0, 4($s1)
/* 6F5F4C 802380CC E6000148 */ swc1 $f0, 0x148($s0)
/* 6F5F50 802380D0 C6200008 */ lwc1 $f0, 8($s1)
/* 6F5F54 802380D4 E600014C */ swc1 $f0, 0x14c($s0)
/* 6F5F58 802380D8 C6200040 */ lwc1 $f0, 0x40($s1)
/* 6F5F5C 802380DC 3C013FF0 */ lui $at, 0x3ff0
/* 6F5F60 802380E0 44811800 */ mtc1 $at, $f3
/* 6F5F64 802380E4 44801000 */ mtc1 $zero, $f2
/* 6F5F68 802380E8 46000021 */ cvt.d.s $f0, $f0
/* 6F5F6C 802380EC 4622003C */ c.lt.d $f0, $f2
/* 6F5F70 802380F0 00000000 */ nop
/* 6F5F74 802380F4 45010002 */ bc1t .L80238100
/* 6F5F78 802380F8 24020002 */ addiu $v0, $zero, 2
/* 6F5F7C 802380FC 0000102D */ daddu $v0, $zero, $zero
.L80238100:
/* 6F5F80 80238100 8FBF0020 */ lw $ra, 0x20($sp)
/* 6F5F84 80238104 8FB1001C */ lw $s1, 0x1c($sp)
/* 6F5F88 80238108 8FB00018 */ lw $s0, 0x18($sp)
/* 6F5F8C 8023810C 03E00008 */ jr $ra
/* 6F5F90 80238110 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -0,0 +1,110 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238114_6F5F94
/* 6F5F94 80238114 27BDFFC0 */ addiu $sp, $sp, -0x40
/* 6F5F98 80238118 AFB3001C */ sw $s3, 0x1c($sp)
/* 6F5F9C 8023811C 3C13800E */ lui $s3, %hi(gBattleStatus+0xDC)
/* 6F5FA0 80238120 8E73C14C */ lw $s3, %lo(gBattleStatus+0xDC)($s3)
/* 6F5FA4 80238124 AFBF0020 */ sw $ra, 0x20($sp)
/* 6F5FA8 80238128 AFB20018 */ sw $s2, 0x18($sp)
/* 6F5FAC 8023812C AFB10014 */ sw $s1, 0x14($sp)
/* 6F5FB0 80238130 AFB00010 */ sw $s0, 0x10($sp)
/* 6F5FB4 80238134 F7B80038 */ sdc1 $f24, 0x38($sp)
/* 6F5FB8 80238138 F7B60030 */ sdc1 $f22, 0x30($sp)
/* 6F5FBC 8023813C 10A00003 */ beqz $a1, .L8023814C
/* 6F5FC0 80238140 F7B40028 */ sdc1 $f20, 0x28($sp)
/* 6F5FC4 80238144 AC800070 */ sw $zero, 0x70($a0)
/* 6F5FC8 80238148 A2600425 */ sb $zero, 0x425($s3)
.L8023814C:
/* 6F5FCC 8023814C 8C820070 */ lw $v0, 0x70($a0)
/* 6F5FD0 80238150 14400047 */ bnez $v0, .L80238270
/* 6F5FD4 80238154 0000102D */ daddu $v0, $zero, $zero
/* 6F5FD8 80238158 8262040C */ lb $v0, 0x40c($s3)
/* 6F5FDC 8023815C 1840002D */ blez $v0, .L80238214
/* 6F5FE0 80238160 0000902D */ daddu $s2, $zero, $zero
/* 6F5FE4 80238164 3C014204 */ lui $at, 0x4204
/* 6F5FE8 80238168 4481C000 */ mtc1 $at, $f24
/* 6F5FEC 8023816C 02721021 */ addu $v0, $s3, $s2
.L80238170:
/* 6F5FF0 80238170 8043040D */ lb $v1, 0x40d($v0)
/* 6F5FF4 80238174 C6740144 */ lwc1 $f20, 0x144($s3)
/* 6F5FF8 80238178 00031080 */ sll $v0, $v1, 2
/* 6F5FFC 8023817C 00431021 */ addu $v0, $v0, $v1
/* 6F6000 80238180 00021080 */ sll $v0, $v0, 2
/* 6F6004 80238184 2442022C */ addiu $v0, $v0, 0x22c
/* 6F6008 80238188 02628821 */ addu $s1, $s3, $v0
/* 6F600C 8023818C 86220004 */ lh $v0, 4($s1)
/* 6F6010 80238190 86240000 */ lh $a0, ($s1)
/* 6F6014 80238194 4482B000 */ mtc1 $v0, $f22
/* 6F6018 80238198 00000000 */ nop
/* 6F601C 8023819C 0C09A75B */ jal get_actor
/* 6F6020 802381A0 4680B5A0 */ cvt.s.w $f22, $f22
/* 6F6024 802381A4 0040802D */ daddu $s0, $v0, $zero
/* 6F6028 802381A8 12000015 */ beqz $s0, .L80238200
/* 6F602C 802381AC 00000000 */ nop
/* 6F6030 802381B0 86250002 */ lh $a1, 2($s1)
/* 6F6034 802381B4 0C099117 */ jal get_actor_part
/* 6F6038 802381B8 0200202D */ daddu $a0, $s0, $zero
/* 6F603C 802381BC 82030218 */ lb $v1, 0x218($s0)
/* 6F6040 802381C0 1460000F */ bnez $v1, .L80238200
/* 6F6044 802381C4 00000000 */ nop
/* 6F6048 802381C8 8C42007C */ lw $v0, 0x7c($v0)
/* 6F604C 802381CC 30420020 */ andi $v0, $v0, 0x20
/* 6F6050 802381D0 1440000B */ bnez $v0, .L80238200
/* 6F6054 802381D4 00000000 */ nop
/* 6F6058 802381D8 4614B03C */ c.lt.s $f22, $f20
/* 6F605C 802381DC 00000000 */ nop
/* 6F6060 802381E0 45020004 */ bc1fl .L802381F4
/* 6F6064 802381E4 AE00018C */ sw $zero, 0x18c($s0)
/* 6F6068 802381E8 C600018C */ lwc1 $f0, 0x18c($s0)
/* 6F606C 802381EC 46180000 */ add.s $f0, $f0, $f24
/* 6F6070 802381F0 E600018C */ swc1 $f0, 0x18c($s0)
.L802381F4:
/* 6F6074 802381F4 0C00A6C9 */ jal clamp_angle
/* 6F6078 802381F8 C60C018C */ lwc1 $f12, 0x18c($s0)
/* 6F607C 802381FC E600018C */ swc1 $f0, 0x18c($s0)
.L80238200:
/* 6F6080 80238200 8262040C */ lb $v0, 0x40c($s3)
/* 6F6084 80238204 26520001 */ addiu $s2, $s2, 1
/* 6F6088 80238208 0242102A */ slt $v0, $s2, $v0
/* 6F608C 8023820C 1440FFD8 */ bnez $v0, .L80238170
/* 6F6090 80238210 02721021 */ addu $v0, $s3, $s2
.L80238214:
/* 6F6094 80238214 8E620088 */ lw $v0, 0x88($s3)
/* 6F6098 80238218 10400015 */ beqz $v0, .L80238270
/* 6F609C 8023821C 0000102D */ daddu $v0, $zero, $zero
/* 6F60A0 80238220 8262040C */ lb $v0, 0x40c($s3)
/* 6F60A4 80238224 18400011 */ blez $v0, .L8023826C
/* 6F60A8 80238228 0000902D */ daddu $s2, $zero, $zero
/* 6F60AC 8023822C 02721021 */ addu $v0, $s3, $s2
.L80238230:
/* 6F60B0 80238230 8043040D */ lb $v1, 0x40d($v0)
/* 6F60B4 80238234 00031080 */ sll $v0, $v1, 2
/* 6F60B8 80238238 00431021 */ addu $v0, $v0, $v1
/* 6F60BC 8023823C 00021080 */ sll $v0, $v0, 2
/* 6F60C0 80238240 00538821 */ addu $s1, $v0, $s3
/* 6F60C4 80238244 0C09A75B */ jal get_actor
/* 6F60C8 80238248 8624022C */ lh $a0, 0x22c($s1)
/* 6F60CC 8023824C 0040802D */ daddu $s0, $v0, $zero
/* 6F60D0 80238250 56000001 */ bnel $s0, $zero, .L80238258
/* 6F60D4 80238254 AE00018C */ sw $zero, 0x18c($s0)
.L80238258:
/* 6F60D8 80238258 8262040C */ lb $v0, 0x40c($s3)
/* 6F60DC 8023825C 26520001 */ addiu $s2, $s2, 1
/* 6F60E0 80238260 0242102A */ slt $v0, $s2, $v0
/* 6F60E4 80238264 1440FFF2 */ bnez $v0, .L80238230
/* 6F60E8 80238268 02721021 */ addu $v0, $s3, $s2
.L8023826C:
/* 6F60EC 8023826C 24020002 */ addiu $v0, $zero, 2
.L80238270:
/* 6F60F0 80238270 8FBF0020 */ lw $ra, 0x20($sp)
/* 6F60F4 80238274 8FB3001C */ lw $s3, 0x1c($sp)
/* 6F60F8 80238278 8FB20018 */ lw $s2, 0x18($sp)
/* 6F60FC 8023827C 8FB10014 */ lw $s1, 0x14($sp)
/* 6F6100 80238280 8FB00010 */ lw $s0, 0x10($sp)
/* 6F6104 80238284 D7B80038 */ ldc1 $f24, 0x38($sp)
/* 6F6108 80238288 D7B60030 */ ldc1 $f22, 0x30($sp)
/* 6F610C 8023828C D7B40028 */ ldc1 $f20, 0x28($sp)
/* 6F6110 80238290 03E00008 */ jr $ra
/* 6F6114 80238294 27BD0040 */ addiu $sp, $sp, 0x40

View File

@ -0,0 +1,86 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238298_6F6118
/* 6F6118 80238298 27BDFFC8 */ addiu $sp, $sp, -0x38
/* 6F611C 8023829C AFB60028 */ sw $s6, 0x28($sp)
/* 6F6120 802382A0 3C16800E */ lui $s6, %hi(gBattleStatus+0xDC)
/* 6F6124 802382A4 8ED6C14C */ lw $s6, %lo(gBattleStatus+0xDC)($s6)
/* 6F6128 802382A8 AFBE0030 */ sw $fp, 0x30($sp)
/* 6F612C 802382AC 0080F02D */ daddu $fp, $a0, $zero
/* 6F6130 802382B0 AFB40020 */ sw $s4, 0x20($sp)
/* 6F6134 802382B4 0000A02D */ daddu $s4, $zero, $zero
/* 6F6138 802382B8 AFB50024 */ sw $s5, 0x24($sp)
/* 6F613C 802382BC 0280A82D */ daddu $s5, $s4, $zero
/* 6F6140 802382C0 AFBF0034 */ sw $ra, 0x34($sp)
/* 6F6144 802382C4 AFB7002C */ sw $s7, 0x2c($sp)
/* 6F6148 802382C8 AFB3001C */ sw $s3, 0x1c($sp)
/* 6F614C 802382CC AFB20018 */ sw $s2, 0x18($sp)
/* 6F6150 802382D0 AFB10014 */ sw $s1, 0x14($sp)
/* 6F6154 802382D4 AFB00010 */ sw $s0, 0x10($sp)
/* 6F6158 802382D8 82C2040C */ lb $v0, 0x40c($s6)
/* 6F615C 802382DC 1840001E */ blez $v0, .L80238358
/* 6F6160 802382E0 0280982D */ daddu $s3, $s4, $zero
/* 6F6164 802382E4 2417000E */ addiu $s7, $zero, 0xe
/* 6F6168 802382E8 02C0902D */ daddu $s2, $s6, $zero
.L802382EC:
/* 6F616C 802382EC 0C09A75B */ jal get_actor
/* 6F6170 802382F0 8644022C */ lh $a0, 0x22c($s2)
/* 6F6174 802382F4 0040802D */ daddu $s0, $v0, $zero
/* 6F6178 802382F8 8645022E */ lh $a1, 0x22e($s2)
/* 6F617C 802382FC 0C099117 */ jal get_actor_part
/* 6F6180 80238300 0200202D */ daddu $a0, $s0, $zero
/* 6F6184 80238304 24050004 */ addiu $a1, $zero, 4
/* 6F6188 80238308 8E04020C */ lw $a0, 0x20c($s0)
/* 6F618C 8023830C 0C0997A6 */ jal lookup_status_chance
/* 6F6190 80238310 0040882D */ daddu $s1, $v0, $zero
/* 6F6194 80238314 82030218 */ lb $v1, 0x218($s0)
/* 6F6198 80238318 14770002 */ bne $v1, $s7, .L80238324
/* 6F619C 8023831C 0040202D */ daddu $a0, $v0, $zero
/* 6F61A0 80238320 0000202D */ daddu $a0, $zero, $zero
.L80238324:
/* 6F61A4 80238324 8E22007C */ lw $v0, 0x7c($s1)
/* 6F61A8 80238328 30420020 */ andi $v0, $v0, 0x20
/* 6F61AC 8023832C 54400001 */ bnel $v0, $zero, .L80238334
/* 6F61B0 80238330 0000202D */ daddu $a0, $zero, $zero
.L80238334:
/* 6F61B4 80238334 18800003 */ blez $a0, .L80238344
/* 6F61B8 80238338 00000000 */ nop
/* 6F61BC 8023833C 02649821 */ addu $s3, $s3, $a0
/* 6F61C0 80238340 26940001 */ addiu $s4, $s4, 1
.L80238344:
/* 6F61C4 80238344 82C2040C */ lb $v0, 0x40c($s6)
/* 6F61C8 80238348 26B50001 */ addiu $s5, $s5, 1
/* 6F61CC 8023834C 02A2102A */ slt $v0, $s5, $v0
/* 6F61D0 80238350 1440FFE6 */ bnez $v0, .L802382EC
/* 6F61D4 80238354 26520014 */ addiu $s2, $s2, 0x14
.L80238358:
/* 6F61D8 80238358 5A80000C */ blezl $s4, .L8023838C
/* 6F61DC 8023835C AFC00084 */ sw $zero, 0x84($fp)
/* 6F61E0 80238360 16800002 */ bnez $s4, .L8023836C
/* 6F61E4 80238364 0274001A */ div $zero, $s3, $s4
/* 6F61E8 80238368 0007000D */ break 7
.L8023836C:
/* 6F61EC 8023836C 2401FFFF */ addiu $at, $zero, -1
/* 6F61F0 80238370 16810004 */ bne $s4, $at, .L80238384
/* 6F61F4 80238374 3C018000 */ lui $at, 0x8000
/* 6F61F8 80238378 16610002 */ bne $s3, $at, .L80238384
/* 6F61FC 8023837C 00000000 */ nop
/* 6F6200 80238380 0006000D */ break 6
.L80238384:
/* 6F6204 80238384 00001012 */ mflo $v0
/* 6F6208 80238388 AFC20084 */ sw $v0, 0x84($fp)
.L8023838C:
/* 6F620C 8023838C 8FBF0034 */ lw $ra, 0x34($sp)
/* 6F6210 80238390 8FBE0030 */ lw $fp, 0x30($sp)
/* 6F6214 80238394 8FB7002C */ lw $s7, 0x2c($sp)
/* 6F6218 80238398 8FB60028 */ lw $s6, 0x28($sp)
/* 6F621C 8023839C 8FB50024 */ lw $s5, 0x24($sp)
/* 6F6220 802383A0 8FB40020 */ lw $s4, 0x20($sp)
/* 6F6224 802383A4 8FB3001C */ lw $s3, 0x1c($sp)
/* 6F6228 802383A8 8FB20018 */ lw $s2, 0x18($sp)
/* 6F622C 802383AC 8FB10014 */ lw $s1, 0x14($sp)
/* 6F6230 802383B0 8FB00010 */ lw $s0, 0x10($sp)
/* 6F6234 802383B4 24020002 */ addiu $v0, $zero, 2
/* 6F6238 802383B8 03E00008 */ jr $ra
/* 6F623C 802383BC 27BD0038 */ addiu $sp, $sp, 0x38

View File

@ -0,0 +1,37 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802383C0_6F6240
/* 6F6240 802383C0 8C830084 */ lw $v1, 0x84($a0)
/* 6F6244 802383C4 28620024 */ slti $v0, $v1, 0x24
/* 6F6248 802383C8 10400003 */ beqz $v0, .L802383D8
/* 6F624C 802383CC 0000102D */ daddu $v0, $zero, $zero
/* 6F6250 802383D0 0808E107 */ j .L8023841C
/* 6F6254 802383D4 24030001 */ addiu $v1, $zero, 1
.L802383D8:
/* 6F6258 802383D8 2862003D */ slti $v0, $v1, 0x3d
/* 6F625C 802383DC 10400003 */ beqz $v0, .L802383EC
/* 6F6260 802383E0 24020001 */ addiu $v0, $zero, 1
/* 6F6264 802383E4 0808E107 */ j .L8023841C
/* 6F6268 802383E8 24030003 */ addiu $v1, $zero, 3
.L802383EC:
/* 6F626C 802383EC 28620051 */ slti $v0, $v1, 0x51
/* 6F6270 802383F0 10400003 */ beqz $v0, .L80238400
/* 6F6274 802383F4 24020002 */ addiu $v0, $zero, 2
/* 6F6278 802383F8 0808E107 */ j .L8023841C
/* 6F627C 802383FC 24030004 */ addiu $v1, $zero, 4
.L80238400:
/* 6F6280 80238400 28620064 */ slti $v0, $v1, 0x64
/* 6F6284 80238404 10400003 */ beqz $v0, .L80238414
/* 6F6288 80238408 24030005 */ addiu $v1, $zero, 5
/* 6F628C 8023840C 0808E107 */ j .L8023841C
/* 6F6290 80238410 24020003 */ addiu $v0, $zero, 3
.L80238414:
/* 6F6294 80238414 24030006 */ addiu $v1, $zero, 6
/* 6F6298 80238418 24020004 */ addiu $v0, $zero, 4
.L8023841C:
/* 6F629C 8023841C AC8200BC */ sw $v0, 0xbc($a0)
/* 6F62A0 80238420 24020002 */ addiu $v0, $zero, 2
/* 6F62A4 80238424 03E00008 */ jr $ra
/* 6F62A8 80238428 AC8300C0 */ sw $v1, 0xc0($a0)
/* 6F62AC 8023842C 00000000 */ nop

View File

@ -0,0 +1,21 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238000_70BD10
/* 70BD10 80238000 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 70BD14 80238004 10A00003 */ beqz $a1, .L80238014
/* 70BD18 80238008 AFBF0010 */ sw $ra, 0x10($sp)
/* 70BD1C 8023800C 3C018024 */ lui $at, %hi(D_8023D2C8)
/* 70BD20 80238010 AC20D2C8 */ sw $zero, %lo(D_8023D2C8)($at)
.L80238014:
/* 70BD24 80238014 3C028024 */ lui $v0, %hi(D_8023D2C8)
/* 70BD28 80238018 8C42D2C8 */ lw $v0, %lo(D_8023D2C8)($v0)
/* 70BD2C 8023801C 14400004 */ bnez $v0, .L80238030
/* 70BD30 80238020 24020002 */ addiu $v0, $zero, 2
/* 70BD34 80238024 0C093EB1 */ jal set_popup_duration
/* 70BD38 80238028 24040063 */ addiu $a0, $zero, 0x63
/* 70BD3C 8023802C 0000102D */ daddu $v0, $zero, $zero
.L80238030:
/* 70BD40 80238030 8FBF0010 */ lw $ra, 0x10($sp)
/* 70BD44 80238034 03E00008 */ jr $ra
/* 70BD48 80238038 27BD0018 */ addiu $sp, $sp, 0x18

View File

@ -0,0 +1,691 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_8023803C_70BD4C
/* 70BD4C 8023803C 27BDFF98 */ addiu $sp, $sp, -0x68
/* 70BD50 80238040 AFB00030 */ sw $s0, 0x30($sp)
/* 70BD54 80238044 3C10800E */ lui $s0, %hi(gBattleStatus)
/* 70BD58 80238048 2610C070 */ addiu $s0, $s0, %lo(gBattleStatus)
/* 70BD5C 8023804C AFBF0054 */ sw $ra, 0x54($sp)
/* 70BD60 80238050 AFBE0050 */ sw $fp, 0x50($sp)
/* 70BD64 80238054 AFB7004C */ sw $s7, 0x4c($sp)
/* 70BD68 80238058 AFB60048 */ sw $s6, 0x48($sp)
/* 70BD6C 8023805C AFB50044 */ sw $s5, 0x44($sp)
/* 70BD70 80238060 AFB40040 */ sw $s4, 0x40($sp)
/* 70BD74 80238064 AFB3003C */ sw $s3, 0x3c($sp)
/* 70BD78 80238068 AFB20038 */ sw $s2, 0x38($sp)
/* 70BD7C 8023806C AFB10034 */ sw $s1, 0x34($sp)
/* 70BD80 80238070 F7B60060 */ sdc1 $f22, 0x60($sp)
/* 70BD84 80238074 F7B40058 */ sdc1 $f20, 0x58($sp)
/* 70BD88 80238078 AFA40068 */ sw $a0, 0x68($sp)
/* 70BD8C 8023807C 8E1700DC */ lw $s7, 0xdc($s0)
/* 70BD90 80238080 8E0200D8 */ lw $v0, 0xd8($s0)
/* 70BD94 80238084 26F6000C */ addiu $s6, $s7, 0xc
/* 70BD98 80238088 10A00002 */ beqz $a1, .L80238094
/* 70BD9C 8023808C 245E000C */ addiu $fp, $v0, 0xc
/* 70BDA0 80238090 AC800070 */ sw $zero, 0x70($a0)
.L80238094:
/* 70BDA4 80238094 8FA80068 */ lw $t0, 0x68($sp)
/* 70BDA8 80238098 8D030070 */ lw $v1, 0x70($t0)
/* 70BDAC 8023809C 24020001 */ addiu $v0, $zero, 1
/* 70BDB0 802380A0 106200B4 */ beq $v1, $v0, .L80238374
/* 70BDB4 802380A4 28620002 */ slti $v0, $v1, 2
/* 70BDB8 802380A8 10400005 */ beqz $v0, .L802380C0
/* 70BDBC 802380AC 24020002 */ addiu $v0, $zero, 2
/* 70BDC0 802380B0 10600007 */ beqz $v1, .L802380D0
/* 70BDC4 802380B4 00000000 */ nop
/* 70BDC8 802380B8 0808E21D */ j .L80238874
/* 70BDCC 802380BC 00000000 */ nop
.L802380C0:
/* 70BDD0 802380C0 106200CD */ beq $v1, $v0, .L802383F8
/* 70BDD4 802380C4 00000000 */ nop
/* 70BDD8 802380C8 0808E21D */ j .L80238874
/* 70BDDC 802380CC 00000000 */ nop
.L802380D0:
/* 70BDE0 802380D0 3C048029 */ lui $a0, %hi(D_8029369C)
/* 70BDE4 802380D4 2484369C */ addiu $a0, $a0, %lo(D_8029369C)
/* 70BDE8 802380D8 0C050529 */ jal create_icon
/* 70BDEC 802380DC 0000902D */ daddu $s2, $zero, $zero
/* 70BDF0 802380E0 0040202D */ daddu $a0, $v0, $zero
/* 70BDF4 802380E4 3C018024 */ lui $at, %hi(D_8023D288)
/* 70BDF8 802380E8 AC24D288 */ sw $a0, %lo(D_8023D288)($at)
/* 70BDFC 802380EC 0C051277 */ jal func_801449DC
/* 70BE00 802380F0 2405000A */ addiu $a1, $zero, 0xa
/* 70BE04 802380F4 3C048029 */ lui $a0, %hi(D_802936D4)
/* 70BE08 802380F8 248436D4 */ addiu $a0, $a0, %lo(D_802936D4)
/* 70BE0C 802380FC 0C050529 */ jal create_icon
/* 70BE10 80238100 00000000 */ nop
/* 70BE14 80238104 0040202D */ daddu $a0, $v0, $zero
/* 70BE18 80238108 2405000A */ addiu $a1, $zero, 0xa
/* 70BE1C 8023810C 3C108024 */ lui $s0, %hi(D_8023D28C)
/* 70BE20 80238110 2610D28C */ addiu $s0, $s0, %lo(D_8023D28C)
/* 70BE24 80238114 0C051277 */ jal func_801449DC
/* 70BE28 80238118 AE040000 */ sw $a0, ($s0)
/* 70BE2C 8023811C 3C148024 */ lui $s4, %hi(D_8023D2B8)
/* 70BE30 80238120 2694D2B8 */ addiu $s4, $s4, %lo(D_8023D2B8)
/* 70BE34 80238124 8E040000 */ lw $a0, ($s0)
/* 70BE38 80238128 3C138024 */ lui $s3, %hi(D_8023AB80_70E890)
/* 70BE3C 8023812C 0C0513CA */ jal func_80144F28
/* 70BE40 80238130 2673AB80 */ addiu $s3, $s3, %lo(D_8023AB80_70E890)
/* 70BE44 80238134 3C048011 */ lui $a0, %hi(D_80108E1C)
/* 70BE48 80238138 24848E1C */ addiu $a0, $a0, %lo(D_80108E1C)
/* 70BE4C 8023813C 3C118024 */ lui $s1, %hi(D_8023D2C0)
/* 70BE50 80238140 2631D2C0 */ addiu $s1, $s1, %lo(D_8023D2C0)
/* 70BE54 80238144 2402FFD0 */ addiu $v0, $zero, -0x30
/* 70BE58 80238148 3C108024 */ lui $s0, %hi(D_8023D2C4)
/* 70BE5C 8023814C 2610D2C4 */ addiu $s0, $s0, %lo(D_8023D2C4)
/* 70BE60 80238150 AE220000 */ sw $v0, ($s1)
/* 70BE64 80238154 24020046 */ addiu $v0, $zero, 0x46
/* 70BE68 80238158 0C050529 */ jal create_icon
/* 70BE6C 8023815C AE020000 */ sw $v0, ($s0)
/* 70BE70 80238160 0040A82D */ daddu $s5, $v0, $zero
/* 70BE74 80238164 8E250000 */ lw $a1, ($s1)
/* 70BE78 80238168 8E060000 */ lw $a2, ($s0)
/* 70BE7C 8023816C 3C018024 */ lui $at, %hi(D_8023D2BC)
/* 70BE80 80238170 AC35D2BC */ sw $s5, %lo(D_8023D2BC)($at)
/* 70BE84 80238174 0C051261 */ jal set_icon_render_pos
/* 70BE88 80238178 02A0202D */ daddu $a0, $s5, $zero
/* 70BE8C 8023817C 02A0202D */ daddu $a0, $s5, $zero
/* 70BE90 80238180 0C051277 */ jal func_801449DC
/* 70BE94 80238184 0240282D */ daddu $a1, $s2, $zero
.L80238188:
/* 70BE98 80238188 8E640000 */ lw $a0, ($s3)
/* 70BE9C 8023818C 26730004 */ addiu $s3, $s3, 4
/* 70BEA0 80238190 0C050529 */ jal create_icon
/* 70BEA4 80238194 26520001 */ addiu $s2, $s2, 1
/* 70BEA8 80238198 0040202D */ daddu $a0, $v0, $zero
/* 70BEAC 8023819C 2405000A */ addiu $a1, $zero, 0xa
/* 70BEB0 802381A0 0C051277 */ jal func_801449DC
/* 70BEB4 802381A4 AE840000 */ sw $a0, ($s4)
/* 70BEB8 802381A8 1A40FFF7 */ blez $s2, .L80238188
/* 70BEBC 802381AC 26940004 */ addiu $s4, $s4, 4
/* 70BEC0 802381B0 C6E00144 */ lwc1 $f0, 0x144($s7)
/* 70BEC4 802381B4 3C014204 */ lui $at, 0x4204
/* 70BEC8 802381B8 44813000 */ mtc1 $at, $f6
/* 70BECC 802381BC 00000000 */ nop
/* 70BED0 802381C0 46060000 */ add.s $f0, $f0, $f6
/* 70BED4 802381C4 3C014208 */ lui $at, 0x4208
/* 70BED8 802381C8 44812000 */ mtc1 $at, $f4
/* 70BEDC 802381CC E6C00000 */ swc1 $f0, ($s6)
/* 70BEE0 802381D0 C6E00148 */ lwc1 $f0, 0x148($s7)
/* 70BEE4 802381D4 46040000 */ add.s $f0, $f0, $f4
/* 70BEE8 802381D8 3C014170 */ lui $at, 0x4170
/* 70BEEC 802381DC 44811000 */ mtc1 $at, $f2
/* 70BEF0 802381E0 E6C00004 */ swc1 $f0, 4($s6)
/* 70BEF4 802381E4 C6E0014C */ lwc1 $f0, 0x14c($s7)
/* 70BEF8 802381E8 46020000 */ add.s $f0, $f0, $f2
/* 70BEFC 802381EC E6C00008 */ swc1 $f0, 8($s6)
/* 70BF00 802381F0 C6E00144 */ lwc1 $f0, 0x144($s7)
/* 70BF04 802381F4 46060000 */ add.s $f0, $f0, $f6
/* 70BF08 802381F8 E6C00018 */ swc1 $f0, 0x18($s6)
/* 70BF0C 802381FC C6E00148 */ lwc1 $f0, 0x148($s7)
/* 70BF10 80238200 46040000 */ add.s $f0, $f0, $f4
/* 70BF14 80238204 E6C0001C */ swc1 $f0, 0x1c($s6)
/* 70BF18 80238208 C6E0014C */ lwc1 $f0, 0x14c($s7)
/* 70BF1C 8023820C 46020000 */ add.s $f0, $f0, $f2
/* 70BF20 80238210 E6C00020 */ swc1 $f0, 0x20($s6)
/* 70BF24 80238214 86E50428 */ lh $a1, 0x428($s7)
/* 70BF28 80238218 82E60426 */ lb $a2, 0x426($s7)
/* 70BF2C 8023821C 0C09A5D5 */ jal set_goal_pos_to_part
/* 70BF30 80238220 02C0202D */ daddu $a0, $s6, $zero
/* 70BF34 80238224 86E40428 */ lh $a0, 0x428($s7)
/* 70BF38 80238228 0C09A75B */ jal get_actor
/* 70BF3C 8023822C 00000000 */ nop
/* 70BF40 80238230 0040882D */ daddu $s1, $v0, $zero
/* 70BF44 80238234 82E50426 */ lb $a1, 0x426($s7)
/* 70BF48 80238238 0C099117 */ jal get_actor_part
/* 70BF4C 8023823C 0220202D */ daddu $a0, $s1, $zero
/* 70BF50 80238240 0040802D */ daddu $s0, $v0, $zero
/* 70BF54 80238244 C6CC0000 */ lwc1 $f12, ($s6)
/* 70BF58 80238248 82020075 */ lb $v0, 0x75($s0)
/* 70BF5C 8023824C C6C0000C */ lwc1 $f0, 0xc($s6)
/* 70BF60 80238250 44821000 */ mtc1 $v0, $f2
/* 70BF64 80238254 00000000 */ nop
/* 70BF68 80238258 468010A0 */ cvt.s.w $f2, $f2
/* 70BF6C 8023825C 46020000 */ add.s $f0, $f0, $f2
/* 70BF70 80238260 C6CE0004 */ lwc1 $f14, 4($s6)
/* 70BF74 80238264 E6C0000C */ swc1 $f0, 0xc($s6)
/* 70BF78 80238268 82020076 */ lb $v0, 0x76($s0)
/* 70BF7C 8023826C C6C00010 */ lwc1 $f0, 0x10($s6)
/* 70BF80 80238270 44821000 */ mtc1 $v0, $f2
/* 70BF84 80238274 00000000 */ nop
/* 70BF88 80238278 468010A0 */ cvt.s.w $f2, $f2
/* 70BF8C 8023827C 46020000 */ add.s $f0, $f0, $f2
/* 70BF90 80238280 8EC6000C */ lw $a2, 0xc($s6)
/* 70BF94 80238284 E6C00010 */ swc1 $f0, 0x10($s6)
/* 70BF98 80238288 44070000 */ mfc1 $a3, $f0
/* 70BF9C 8023828C 0C00A7B5 */ jal dist2D
/* 70BFA0 80238290 C6C00014 */ lwc1 $f0, 0x14($s6)
/* 70BFA4 80238294 E6C0004C */ swc1 $f0, 0x4c($s6)
/* 70BFA8 80238298 3C014040 */ lui $at, 0x4040
/* 70BFAC 8023829C 44810000 */ mtc1 $at, $f0
/* 70BFB0 802382A0 3C01BF80 */ lui $at, 0xbf80
/* 70BFB4 802382A4 44811000 */ mtc1 $at, $f2
/* 70BFB8 802382A8 2402001E */ addiu $v0, $zero, 0x1e
/* 70BFBC 802382AC AEC00040 */ sw $zero, 0x40($s6)
/* 70BFC0 802382B0 AEC00030 */ sw $zero, 0x30($s6)
/* 70BFC4 802382B4 AEC00034 */ sw $zero, 0x34($s6)
/* 70BFC8 802382B8 3C018024 */ lui $at, %hi(D_8023D290)
/* 70BFCC 802382BC AC20D290 */ sw $zero, %lo(D_8023D290)($at)
/* 70BFD0 802382C0 3C018024 */ lui $at, %hi(D_8023D294)
/* 70BFD4 802382C4 AC20D294 */ sw $zero, %lo(D_8023D294)($at)
/* 70BFD8 802382C8 3C018024 */ lui $at, %hi(D_8023D298)
/* 70BFDC 802382CC AC22D298 */ sw $v0, %lo(D_8023D298)($at)
/* 70BFE0 802382D0 3C018024 */ lui $at, %hi(D_8023D2A0)
/* 70BFE4 802382D4 AC20D2A0 */ sw $zero, %lo(D_8023D2A0)($at)
/* 70BFE8 802382D8 3C018024 */ lui $at, %hi(D_8023D2A4)
/* 70BFEC 802382DC AC20D2A4 */ sw $zero, %lo(D_8023D2A4)($at)
/* 70BFF0 802382E0 3C018024 */ lui $at, %hi(D_8023D2A8)
/* 70BFF4 802382E4 AC20D2A8 */ sw $zero, %lo(D_8023D2A8)($at)
/* 70BFF8 802382E8 3C018024 */ lui $at, %hi(D_8023D2AC)
/* 70BFFC 802382EC AC20D2AC */ sw $zero, %lo(D_8023D2AC)($at)
/* 70C000 802382F0 3C018024 */ lui $at, %hi(D_8023D29C)
/* 70C004 802382F4 AC20D29C */ sw $zero, %lo(D_8023D29C)($at)
/* 70C008 802382F8 3C018024 */ lui $at, %hi(D_8023D2B0)
/* 70C00C 802382FC E420D2B0 */ swc1 $f0, %lo(D_8023D2B0)($at)
/* 70C010 80238300 3C018024 */ lui $at, %hi(D_8023D2B4)
/* 70C014 80238304 E422D2B4 */ swc1 $f2, %lo(D_8023D2B4)($at)
/* 70C018 80238308 92020073 */ lbu $v0, 0x73($s0)
/* 70C01C 8023830C 92030072 */ lbu $v1, 0x72($s0)
/* 70C020 80238310 3C014038 */ lui $at, 0x4038
/* 70C024 80238314 44811800 */ mtc1 $at, $f3
/* 70C028 80238318 44801000 */ mtc1 $zero, $f2
/* 70C02C 8023831C 00431021 */ addu $v0, $v0, $v1
/* 70C030 80238320 00021043 */ sra $v0, $v0, 1
/* 70C034 80238324 44820000 */ mtc1 $v0, $f0
/* 70C038 80238328 00000000 */ nop
/* 70C03C 8023832C 46800021 */ cvt.d.w $f0, $f0
/* 70C040 80238330 46220003 */ div.d $f0, $f0, $f2
/* 70C044 80238334 46200020 */ cvt.s.d $f0, $f0
/* 70C048 80238338 E6C00024 */ swc1 $f0, 0x24($s6)
/* 70C04C 8023833C C6220188 */ lwc1 $f2, 0x188($s1)
/* 70C050 80238340 46020002 */ mul.s $f0, $f0, $f2
/* 70C054 80238344 00000000 */ nop
/* 70C058 80238348 3C048024 */ lui $a0, %hi(D_8023D28C)
/* 70C05C 8023834C 8C84D28C */ lw $a0, %lo(D_8023D28C)($a0)
/* 70C060 80238350 44050000 */ mfc1 $a1, $f0
/* 70C064 80238354 0C051308 */ jal func_80144C20
/* 70C068 80238358 00000000 */ nop
/* 70C06C 8023835C 8FA90068 */ lw $t1, 0x68($sp)
/* 70C070 80238360 24020001 */ addiu $v0, $zero, 1
/* 70C074 80238364 3C018024 */ lui $at, %hi(D_8023D2C8)
/* 70C078 80238368 AC22D2C8 */ sw $v0, %lo(D_8023D2C8)($at)
/* 70C07C 8023836C 0808E21D */ j .L80238874
/* 70C080 80238370 AD220070 */ sw $v0, 0x70($t1)
.L80238374:
/* 70C084 80238374 8E02021C */ lw $v0, 0x21c($s0)
/* 70C088 80238378 14400004 */ bnez $v0, .L8023838C
/* 70C08C 8023837C 00000000 */ nop
/* 70C090 80238380 8E020220 */ lw $v0, 0x220($s0)
/* 70C094 80238384 10400003 */ beqz $v0, .L80238394
/* 70C098 80238388 00000000 */ nop
.L8023838C:
/* 70C09C 8023838C 3C018024 */ lui $at, %hi(D_8023D298)
/* 70C0A0 80238390 AC20D298 */ sw $zero, %lo(D_8023D298)($at)
.L80238394:
/* 70C0A4 80238394 3C038024 */ lui $v1, %hi(D_8023D298)
/* 70C0A8 80238398 2463D298 */ addiu $v1, $v1, %lo(D_8023D298)
/* 70C0AC 8023839C 8C620000 */ lw $v0, ($v1)
/* 70C0B0 802383A0 10400003 */ beqz $v0, .L802383B0
/* 70C0B4 802383A4 2442FFFF */ addiu $v0, $v0, -1
/* 70C0B8 802383A8 0808E21D */ j .L80238874
/* 70C0BC 802383AC AC620000 */ sw $v0, ($v1)
.L802383B0:
/* 70C0C0 802383B0 3C058011 */ lui $a1, %hi(D_801091E4)
/* 70C0C4 802383B4 24A591E4 */ addiu $a1, $a1, %lo(D_801091E4)
/* 70C0C8 802383B8 3C048024 */ lui $a0, %hi(D_8023D2BC)
/* 70C0CC 802383BC 8C84D2BC */ lw $a0, %lo(D_8023D2BC)($a0)
/* 70C0D0 802383C0 24020050 */ addiu $v0, $zero, 0x50
/* 70C0D4 802383C4 0C0511FF */ jal set_menu_icon_script
/* 70C0D8 802383C8 AC620000 */ sw $v0, ($v1)
/* 70C0DC 802383CC 44800000 */ mtc1 $zero, $f0
/* 70C0E0 802383D0 24040312 */ addiu $a0, $zero, 0x312
/* 70C0E4 802383D4 44060000 */ mfc1 $a2, $f0
/* 70C0E8 802383D8 0000282D */ daddu $a1, $zero, $zero
/* 70C0EC 802383DC 00C0382D */ daddu $a3, $a2, $zero
/* 70C0F0 802383E0 0C052757 */ jal play_sound_at_position
/* 70C0F4 802383E4 AFA60010 */ sw $a2, 0x10($sp)
/* 70C0F8 802383E8 8FA80068 */ lw $t0, 0x68($sp)
/* 70C0FC 802383EC 24020002 */ addiu $v0, $zero, 2
/* 70C100 802383F0 0808E21D */ j .L80238874
/* 70C104 802383F4 AD020070 */ sw $v0, 0x70($t0)
.L802383F8:
/* 70C108 802383F8 8E05022C */ lw $a1, 0x22c($s0)
/* 70C10C 802383FC 28A20051 */ slti $v0, $a1, 0x51
/* 70C110 80238400 50400001 */ beql $v0, $zero, .L80238408
/* 70C114 80238404 24050050 */ addiu $a1, $zero, 0x50
.L80238408:
/* 70C118 80238408 C6160228 */ lwc1 $f22, 0x228($s0)
/* 70C11C 8023840C 4680B5A0 */ cvt.s.w $f22, $f22
/* 70C120 80238410 28A20023 */ slti $v0, $a1, 0x23
/* 70C124 80238414 10400014 */ beqz $v0, .L80238468
/* 70C128 80238418 00051040 */ sll $v0, $a1, 1
/* 70C12C 8023841C 3C0140C9 */ lui $at, 0x40c9
/* 70C130 80238420 34210FD0 */ ori $at, $at, 0xfd0
/* 70C134 80238424 44810000 */ mtc1 $at, $f0
/* 70C138 80238428 44826000 */ mtc1 $v0, $f12
/* 70C13C 8023842C 00000000 */ nop
/* 70C140 80238430 46806320 */ cvt.s.w $f12, $f12
/* 70C144 80238434 46006302 */ mul.s $f12, $f12, $f0
/* 70C148 80238438 00000000 */ nop
/* 70C14C 8023843C 3C0143B4 */ lui $at, 0x43b4
/* 70C150 80238440 44810000 */ mtc1 $at, $f0
/* 70C154 80238444 4485A000 */ mtc1 $a1, $f20
/* 70C158 80238448 00000000 */ nop
/* 70C15C 8023844C 4680A520 */ cvt.s.w $f20, $f20
/* 70C160 80238450 0C00A85B */ jal sin_rad
/* 70C164 80238454 46006303 */ div.s $f12, $f12, $f0
/* 70C168 80238458 4600A502 */ mul.s $f20, $f20, $f0
/* 70C16C 8023845C 00000000 */ nop
/* 70C170 80238460 4600A28D */ trunc.w.s $f10, $f20
/* 70C174 80238464 44055000 */ mfc1 $a1, $f10
.L80238468:
/* 70C178 80238468 3C038024 */ lui $v1, %hi(D_8023D2A0)
/* 70C17C 8023846C 2463D2A0 */ addiu $v1, $v1, %lo(D_8023D2A0)
/* 70C180 80238470 3C048024 */ lui $a0, %hi(D_8023D2A4)
/* 70C184 80238474 2484D2A4 */ addiu $a0, $a0, %lo(D_8023D2A4)
/* 70C188 80238478 C4680000 */ lwc1 $f8, ($v1)
/* 70C18C 8023847C C4860000 */ lwc1 $f6, ($a0)
/* 70C190 80238480 3C028024 */ lui $v0, %hi(D_8023D2A8)
/* 70C194 80238484 2442D2A8 */ addiu $v0, $v0, %lo(D_8023D2A8)
/* 70C198 80238488 46064080 */ add.s $f2, $f8, $f6
/* 70C19C 8023848C C4400000 */ lwc1 $f0, ($v0)
/* 70C1A0 80238490 3C014040 */ lui $at, 0x4040
/* 70C1A4 80238494 44812000 */ mtc1 $at, $f4
/* 70C1A8 80238498 46001080 */ add.s $f2, $f2, $f0
/* 70C1AC 8023849C 44850000 */ mtc1 $a1, $f0
/* 70C1B0 802384A0 00000000 */ nop
/* 70C1B4 802384A4 46800020 */ cvt.s.w $f0, $f0
/* 70C1B8 802384A8 E4600000 */ swc1 $f0, ($v1)
/* 70C1BC 802384AC 46041083 */ div.s $f2, $f2, $f4
/* 70C1C0 802384B0 46020001 */ sub.s $f0, $f0, $f2
/* 70C1C4 802384B4 E4460000 */ swc1 $f6, ($v0)
/* 70C1C8 802384B8 4600028D */ trunc.w.s $f10, $f0
/* 70C1CC 802384BC 44025000 */ mfc1 $v0, $f10
/* 70C1D0 802384C0 00000000 */ nop
/* 70C1D4 802384C4 1840002B */ blez $v0, .L80238574
/* 70C1D8 802384C8 E4880000 */ swc1 $f8, ($a0)
/* 70C1DC 802384CC C6E6004C */ lwc1 $f6, 0x4c($s7)
/* 70C1E0 802384D0 44800000 */ mtc1 $zero, $f0
/* 70C1E4 802384D4 44822000 */ mtc1 $v0, $f4
/* 70C1E8 802384D8 00000000 */ nop
/* 70C1EC 802384DC 46802120 */ cvt.s.w $f4, $f4
/* 70C1F0 802384E0 3C018024 */ lui $at, %hi(D_8023D2AC)
/* 70C1F4 802384E4 E424D2AC */ swc1 $f4, %lo(D_8023D2AC)($at)
/* 70C1F8 802384E8 46003032 */ c.eq.s $f6, $f0
/* 70C1FC 802384EC 00000000 */ nop
/* 70C200 802384F0 4503000F */ bc1tl .L80238530
/* 70C204 802384F4 460020A1 */ cvt.d.s $f2, $f4
/* 70C208 802384F8 460030A1 */ cvt.d.s $f2, $f6
/* 70C20C 802384FC 46002021 */ cvt.d.s $f0, $f4
/* 70C210 80238500 3C014021 */ lui $at, 0x4021
/* 70C214 80238504 44812800 */ mtc1 $at, $f5
/* 70C218 80238508 44802000 */ mtc1 $zero, $f4
/* 70C21C 8023850C 3C014008 */ lui $at, 0x4008
/* 70C220 80238510 44813800 */ mtc1 $at, $f7
/* 70C224 80238514 44803000 */ mtc1 $zero, $f6
/* 70C228 80238518 46240003 */ div.d $f0, $f0, $f4
/* 70C22C 8023851C 46260003 */ div.d $f0, $f0, $f6
/* 70C230 80238520 46201080 */ add.d $f2, $f2, $f0
/* 70C234 80238524 462010A0 */ cvt.s.d $f2, $f2
/* 70C238 80238528 0808E159 */ j .L80238564
/* 70C23C 8023852C E6E2004C */ swc1 $f2, 0x4c($s7)
.L80238530:
/* 70C240 80238530 3C014021 */ lui $at, 0x4021
/* 70C244 80238534 44810800 */ mtc1 $at, $f1
/* 70C248 80238538 44800000 */ mtc1 $zero, $f0
/* 70C24C 8023853C 3C013FE0 */ lui $at, 0x3fe0
/* 70C250 80238540 44812800 */ mtc1 $at, $f5
/* 70C254 80238544 44802000 */ mtc1 $zero, $f4
/* 70C258 80238548 46201083 */ div.d $f2, $f2, $f0
/* 70C25C 8023854C 46241082 */ mul.d $f2, $f2, $f4
/* 70C260 80238550 00000000 */ nop
/* 70C264 80238554 46003021 */ cvt.d.s $f0, $f6
/* 70C268 80238558 46220000 */ add.d $f0, $f0, $f2
/* 70C26C 8023855C 46200020 */ cvt.s.d $f0, $f0
/* 70C270 80238560 E6E0004C */ swc1 $f0, 0x4c($s7)
.L80238564:
/* 70C274 80238564 3C018024 */ lui $at, %hi(D_8023D2B4)
/* 70C278 80238568 E436D2B4 */ swc1 $f22, %lo(D_8023D2B4)($at)
/* 70C27C 8023856C 0808E163 */ j .L8023858C
/* 70C280 80238570 28A2001F */ slti $v0, $a1, 0x1f
.L80238574:
/* 70C284 80238574 44820000 */ mtc1 $v0, $f0
/* 70C288 80238578 00000000 */ nop
/* 70C28C 8023857C 46800020 */ cvt.s.w $f0, $f0
/* 70C290 80238580 3C018024 */ lui $at, %hi(D_8023D2AC)
/* 70C294 80238584 E420D2AC */ swc1 $f0, %lo(D_8023D2AC)($at)
/* 70C298 80238588 28A2001F */ slti $v0, $a1, 0x1f
.L8023858C:
/* 70C29C 8023858C 14400003 */ bnez $v0, .L8023859C
/* 70C2A0 80238590 00000000 */ nop
/* 70C2A4 80238594 3C018024 */ lui $at, %hi(D_8023D2B4)
/* 70C2A8 80238598 E436D2B4 */ swc1 $f22, %lo(D_8023D2B4)($at)
.L8023859C:
/* 70C2AC 8023859C C6C00040 */ lwc1 $f0, 0x40($s6)
/* 70C2B0 802385A0 3C018024 */ lui $at, %hi(D_8023D1B0_710EC0)
/* 70C2B4 802385A4 D422D1B0 */ ldc1 $f2, %lo(D_8023D1B0_710EC0)($at)
/* 70C2B8 802385A8 46000021 */ cvt.d.s $f0, $f0
/* 70C2BC 802385AC 4620103C */ c.lt.d $f2, $f0
/* 70C2C0 802385B0 00000000 */ nop
/* 70C2C4 802385B4 45000006 */ bc1f .L802385D0
/* 70C2C8 802385B8 24020028 */ addiu $v0, $zero, 0x28
/* 70C2CC 802385BC 3C0140D6 */ lui $at, 0x40d6
/* 70C2D0 802385C0 34216666 */ ori $at, $at, 0x6666
/* 70C2D4 802385C4 44810000 */ mtc1 $at, $f0
/* 70C2D8 802385C8 00000000 */ nop
/* 70C2DC 802385CC E6C00040 */ swc1 $f0, 0x40($s6)
.L802385D0:
/* 70C2E0 802385D0 00451023 */ subu $v0, $v0, $a1
/* 70C2E4 802385D4 44820000 */ mtc1 $v0, $f0
/* 70C2E8 802385D8 00000000 */ nop
/* 70C2EC 802385DC 46800021 */ cvt.d.w $f0, $f0
/* 70C2F0 802385E0 46200000 */ add.d $f0, $f0, $f0
/* 70C2F4 802385E4 3C014044 */ lui $at, 0x4044
/* 70C2F8 802385E8 44811800 */ mtc1 $at, $f3
/* 70C2FC 802385EC 44801000 */ mtc1 $zero, $f2
/* 70C300 802385F0 00000000 */ nop
/* 70C304 802385F4 46220003 */ div.d $f0, $f0, $f2
/* 70C308 802385F8 C6C20040 */ lwc1 $f2, 0x40($s6)
/* 70C30C 802385FC 46200020 */ cvt.s.d $f0, $f0
/* 70C310 80238600 46001081 */ sub.s $f2, $f2, $f0
/* 70C314 80238604 4480B000 */ mtc1 $zero, $f22
/* 70C318 80238608 00000000 */ nop
/* 70C31C 8023860C 4616103E */ c.le.s $f2, $f22
/* 70C320 80238610 00000000 */ nop
/* 70C324 80238614 45000004 */ bc1f .L80238628
/* 70C328 80238618 E6C20040 */ swc1 $f2, 0x40($s6)
/* 70C32C 8023861C E6D60040 */ swc1 $f22, 0x40($s6)
/* 70C330 80238620 3C018024 */ lui $at, %hi(D_8023D2AC)
/* 70C334 80238624 E436D2AC */ swc1 $f22, %lo(D_8023D2AC)($at)
.L80238628:
/* 70C338 80238628 3C018024 */ lui $at, %hi(D_8023D2B4)
/* 70C33C 8023862C C420D2B4 */ lwc1 $f0, %lo(D_8023D2B4)($at)
/* 70C340 80238630 4600B03E */ c.le.s $f22, $f0
/* 70C344 80238634 00000000 */ nop
/* 70C348 80238638 4500001B */ bc1f .L802386A8
/* 70C34C 8023863C 00000000 */ nop
/* 70C350 80238640 3C0140C9 */ lui $at, 0x40c9
/* 70C354 80238644 34210FD0 */ ori $at, $at, 0xfd0
/* 70C358 80238648 4481A000 */ mtc1 $at, $f20
/* 70C35C 8023864C 00000000 */ nop
/* 70C360 80238650 46140502 */ mul.s $f20, $f0, $f20
/* 70C364 80238654 00000000 */ nop
/* 70C368 80238658 3C0143B4 */ lui $at, 0x43b4
/* 70C36C 8023865C 44810000 */ mtc1 $at, $f0
/* 70C370 80238660 00000000 */ nop
/* 70C374 80238664 4600A503 */ div.s $f20, $f20, $f0
/* 70C378 80238668 0C00A85B */ jal sin_rad
/* 70C37C 8023866C 4600A306 */ mov.s $f12, $f20
/* 70C380 80238670 4600A306 */ mov.s $f12, $f20
/* 70C384 80238674 0C00A874 */ jal cos_rad
/* 70C388 80238678 46000506 */ mov.s $f20, $f0
/* 70C38C 8023867C C6C40040 */ lwc1 $f4, 0x40($s6)
/* 70C390 80238680 46142502 */ mul.s $f20, $f4, $f20
/* 70C394 80238684 00000000 */ nop
/* 70C398 80238688 46002102 */ mul.s $f4, $f4, $f0
/* 70C39C 8023868C 00000000 */ nop
/* 70C3A0 80238690 C6C20000 */ lwc1 $f2, ($s6)
/* 70C3A4 80238694 46141080 */ add.s $f2, $f2, $f20
/* 70C3A8 80238698 C6C00004 */ lwc1 $f0, 4($s6)
/* 70C3AC 8023869C 46040000 */ add.s $f0, $f0, $f4
/* 70C3B0 802386A0 E6C20000 */ swc1 $f2, ($s6)
/* 70C3B4 802386A4 E6C00004 */ swc1 $f0, 4($s6)
.L802386A8:
/* 70C3B8 802386A8 C6C00000 */ lwc1 $f0, ($s6)
/* 70C3BC 802386AC 3C01C1F0 */ lui $at, 0xc1f0
/* 70C3C0 802386B0 44811000 */ mtc1 $at, $f2
/* 70C3C4 802386B4 00000000 */ nop
/* 70C3C8 802386B8 4602003C */ c.lt.s $f0, $f2
/* 70C3CC 802386BC 00000000 */ nop
/* 70C3D0 802386C0 45030001 */ bc1tl .L802386C8
/* 70C3D4 802386C4 E6C20000 */ swc1 $f2, ($s6)
.L802386C8:
/* 70C3D8 802386C8 C6C00000 */ lwc1 $f0, ($s6)
/* 70C3DC 802386CC 3C01432A */ lui $at, 0x432a
/* 70C3E0 802386D0 44811000 */ mtc1 $at, $f2
/* 70C3E4 802386D4 00000000 */ nop
/* 70C3E8 802386D8 4600103C */ c.lt.s $f2, $f0
/* 70C3EC 802386DC 00000000 */ nop
/* 70C3F0 802386E0 45030001 */ bc1tl .L802386E8
/* 70C3F4 802386E4 E6C20000 */ swc1 $f2, ($s6)
.L802386E8:
/* 70C3F8 802386E8 C6C00004 */ lwc1 $f0, 4($s6)
/* 70C3FC 802386EC 3C014302 */ lui $at, 0x4302
/* 70C400 802386F0 44811000 */ mtc1 $at, $f2
/* 70C404 802386F4 00000000 */ nop
/* 70C408 802386F8 4600103C */ c.lt.s $f2, $f0
/* 70C40C 802386FC 00000000 */ nop
/* 70C410 80238700 45030001 */ bc1tl .L80238708
/* 70C414 80238704 E6C20004 */ swc1 $f2, 4($s6)
.L80238708:
/* 70C418 80238708 C6C00004 */ lwc1 $f0, 4($s6)
/* 70C41C 8023870C 4616003C */ c.lt.s $f0, $f22
/* 70C420 80238710 00000000 */ nop
/* 70C424 80238714 45030001 */ bc1tl .L8023871C
/* 70C428 80238718 E6D60004 */ swc1 $f22, 4($s6)
.L8023871C:
/* 70C42C 8023871C 8E020214 */ lw $v0, 0x214($s0)
/* 70C430 80238720 30428000 */ andi $v0, $v0, 0x8000
/* 70C434 80238724 10400003 */ beqz $v0, .L80238734
/* 70C438 80238728 00000000 */ nop
/* 70C43C 8023872C 3C018024 */ lui $at, %hi(D_8023D298)
/* 70C440 80238730 AC20D298 */ sw $zero, %lo(D_8023D298)($at)
.L80238734:
/* 70C444 80238734 3C108024 */ lui $s0, %hi(D_8023D298)
/* 70C448 80238738 2610D298 */ addiu $s0, $s0, %lo(D_8023D298)
/* 70C44C 8023873C 8E030000 */ lw $v1, ($s0)
/* 70C450 80238740 2402003C */ addiu $v0, $zero, 0x3c
/* 70C454 80238744 14620008 */ bne $v1, $v0, .L80238768
/* 70C458 80238748 2402001E */ addiu $v0, $zero, 0x1e
/* 70C45C 8023874C 24040100 */ addiu $a0, $zero, 0x100
/* 70C460 80238750 0000282D */ daddu $a1, $zero, $zero
/* 70C464 80238754 3C060010 */ lui $a2, 0x10
/* 70C468 80238758 0C098F3F */ jal set_animation
/* 70C46C 8023875C 34C60010 */ ori $a2, $a2, 0x10
/* 70C470 80238760 8E030000 */ lw $v1, ($s0)
/* 70C474 80238764 2402001E */ addiu $v0, $zero, 0x1e
.L80238768:
/* 70C478 80238768 14620005 */ bne $v1, $v0, .L80238780
/* 70C47C 8023876C 24040100 */ addiu $a0, $zero, 0x100
/* 70C480 80238770 0000282D */ daddu $a1, $zero, $zero
/* 70C484 80238774 3C060010 */ lui $a2, 0x10
/* 70C488 80238778 0C098F3F */ jal set_animation
/* 70C48C 8023877C 34C60011 */ ori $a2, $a2, 0x11
.L80238780:
/* 70C490 80238780 8E020000 */ lw $v0, ($s0)
/* 70C494 80238784 10400003 */ beqz $v0, .L80238794
/* 70C498 80238788 2442FFFF */ addiu $v0, $v0, -1
/* 70C49C 8023878C 0808E21D */ j .L80238874
/* 70C4A0 80238790 AE020000 */ sw $v0, ($s0)
.L80238794:
/* 70C4A4 80238794 8FA90068 */ lw $t1, 0x68($sp)
/* 70C4A8 80238798 AD2000BC */ sw $zero, 0xbc($t1)
/* 70C4AC 8023879C AD2000C0 */ sw $zero, 0xc0($t1)
/* 70C4B0 802387A0 C6C00000 */ lwc1 $f0, ($s6)
/* 70C4B4 802387A4 4600028D */ trunc.w.s $f10, $f0
/* 70C4B8 802387A8 E52A00A0 */ swc1 $f10, 0xa0($t1)
/* 70C4BC 802387AC C6C00004 */ lwc1 $f0, 4($s6)
/* 70C4C0 802387B0 4600028D */ trunc.w.s $f10, $f0
/* 70C4C4 802387B4 E52A00A4 */ swc1 $f10, 0xa4($t1)
/* 70C4C8 802387B8 C6C00008 */ lwc1 $f0, 8($s6)
/* 70C4CC 802387BC 4600028D */ trunc.w.s $f10, $f0
/* 70C4D0 802387C0 E52A00A8 */ swc1 $f10, 0xa8($t1)
/* 70C4D4 802387C4 C6CC0000 */ lwc1 $f12, ($s6)
/* 70C4D8 802387C8 C6CE0004 */ lwc1 $f14, 4($s6)
/* 70C4DC 802387CC 8EC6000C */ lw $a2, 0xc($s6)
/* 70C4E0 802387D0 0C00A7B5 */ jal dist2D
/* 70C4E4 802387D4 8EC70010 */ lw $a3, 0x10($s6)
/* 70C4E8 802387D8 C6C20024 */ lwc1 $f2, 0x24($s6)
/* 70C4EC 802387DC 3C014028 */ lui $at, 0x4028
/* 70C4F0 802387E0 44812800 */ mtc1 $at, $f5
/* 70C4F4 802387E4 44802000 */ mtc1 $zero, $f4
/* 70C4F8 802387E8 46020003 */ div.s $f0, $f0, $f2
/* 70C4FC 802387EC 460000A1 */ cvt.d.s $f2, $f0
/* 70C500 802387F0 4624103E */ c.le.d $f2, $f4
/* 70C504 802387F4 00000000 */ nop
/* 70C508 802387F8 45000004 */ bc1f .L8023880C
/* 70C50C 802387FC E6C0004C */ swc1 $f0, 0x4c($s6)
/* 70C510 80238800 8FA90068 */ lw $t1, 0x68($sp)
/* 70C514 80238804 24020001 */ addiu $v0, $zero, 1
/* 70C518 80238808 AD2200C0 */ sw $v0, 0xc0($t1)
.L8023880C:
/* 70C51C 8023880C 3C048024 */ lui $a0, %hi(D_8023D28C)
/* 70C520 80238810 8C84D28C */ lw $a0, %lo(D_8023D28C)($a0)
/* 70C524 80238814 0C05123D */ jal free_icon
/* 70C528 80238818 0000902D */ daddu $s2, $zero, $zero
/* 70C52C 8023881C 3C048024 */ lui $a0, %hi(D_8023D288)
/* 70C530 80238820 8C84D288 */ lw $a0, %lo(D_8023D288)($a0)
/* 70C534 80238824 0C05123D */ jal free_icon
/* 70C538 80238828 00000000 */ nop
/* 70C53C 8023882C 3C048024 */ lui $a0, %hi(D_8023D2BC)
/* 70C540 80238830 8C84D2BC */ lw $a0, %lo(D_8023D2BC)($a0)
/* 70C544 80238834 3C108024 */ lui $s0, %hi(D_8023D2B8)
/* 70C548 80238838 2610D2B8 */ addiu $s0, $s0, %lo(D_8023D2B8)
/* 70C54C 8023883C 0C05123D */ jal free_icon
/* 70C550 80238840 00000000 */ nop
.L80238844:
/* 70C554 80238844 8E040000 */ lw $a0, ($s0)
/* 70C558 80238848 26100004 */ addiu $s0, $s0, 4
/* 70C55C 8023884C 0C05123D */ jal free_icon
/* 70C560 80238850 26520001 */ addiu $s2, $s2, 1
/* 70C564 80238854 1A40FFFB */ blez $s2, .L80238844
/* 70C568 80238858 00000000 */ nop
/* 70C56C 8023885C 0C093EB1 */ jal set_popup_duration
/* 70C570 80238860 0000202D */ daddu $a0, $zero, $zero
/* 70C574 80238864 0C05271B */ jal stop_sound
/* 70C578 80238868 24040312 */ addiu $a0, $zero, 0x312
/* 70C57C 8023886C 0808E28D */ j .L80238A34
/* 70C580 80238870 24020002 */ addiu $v0, $zero, 2
.L80238874:
/* 70C584 80238874 3C148007 */ lui $s4, %hi(gCurrentCameraID)
/* 70C588 80238878 26947410 */ addiu $s4, $s4, %lo(gCurrentCameraID)
/* 70C58C 8023887C 27B30020 */ addiu $s3, $sp, 0x20
/* 70C590 80238880 27B20024 */ addiu $s2, $sp, 0x24
/* 70C594 80238884 8E840000 */ lw $a0, ($s4)
/* 70C598 80238888 27B10028 */ addiu $s1, $sp, 0x28
/* 70C59C 8023888C AFB30010 */ sw $s3, 0x10($sp)
/* 70C5A0 80238890 AFB20014 */ sw $s2, 0x14($sp)
/* 70C5A4 80238894 AFB10018 */ sw $s1, 0x18($sp)
/* 70C5A8 80238898 8EC5000C */ lw $a1, 0xc($s6)
/* 70C5AC 8023889C 8EC60010 */ lw $a2, 0x10($s6)
/* 70C5B0 802388A0 0C00B94E */ jal get_screen_coords
/* 70C5B4 802388A4 8EC70014 */ lw $a3, 0x14($s6)
/* 70C5B8 802388A8 3C158024 */ lui $s5, %hi(D_8023D28C)
/* 70C5BC 802388AC 8EB5D28C */ lw $s5, %lo(D_8023D28C)($s5)
/* 70C5C0 802388B0 8FA50020 */ lw $a1, 0x20($sp)
/* 70C5C4 802388B4 8FA60024 */ lw $a2, 0x24($sp)
/* 70C5C8 802388B8 0C051261 */ jal set_icon_render_pos
/* 70C5CC 802388BC 02A0202D */ daddu $a0, $s5, $zero
/* 70C5D0 802388C0 02A0202D */ daddu $a0, $s5, $zero
/* 70C5D4 802388C4 3C108024 */ lui $s0, %hi(D_8023D290)
/* 70C5D8 802388C8 2610D290 */ addiu $s0, $s0, %lo(D_8023D290)
/* 70C5DC 802388CC 44800000 */ mtc1 $zero, $f0
/* 70C5E0 802388D0 C60A0000 */ lwc1 $f10, ($s0)
/* 70C5E4 802388D4 468052A0 */ cvt.s.w $f10, $f10
/* 70C5E8 802388D8 44050000 */ mfc1 $a1, $f0
/* 70C5EC 802388DC 44075000 */ mfc1 $a3, $f10
/* 70C5F0 802388E0 0C051489 */ jal func_80145224
/* 70C5F4 802388E4 00A0302D */ daddu $a2, $a1, $zero
/* 70C5F8 802388E8 8E020000 */ lw $v0, ($s0)
/* 70C5FC 802388EC 2442FFF6 */ addiu $v0, $v0, -0xa
/* 70C600 802388F0 44826000 */ mtc1 $v0, $f12
/* 70C604 802388F4 00000000 */ nop
/* 70C608 802388F8 46806320 */ cvt.s.w $f12, $f12
/* 70C60C 802388FC 0C00A6C9 */ jal clamp_angle
/* 70C610 80238900 AE020000 */ sw $v0, ($s0)
/* 70C614 80238904 8E840000 */ lw $a0, ($s4)
/* 70C618 80238908 AFB30010 */ sw $s3, 0x10($sp)
/* 70C61C 8023890C AFB20014 */ sw $s2, 0x14($sp)
/* 70C620 80238910 AFB10018 */ sw $s1, 0x18($sp)
/* 70C624 80238914 8EC50000 */ lw $a1, ($s6)
/* 70C628 80238918 8EC60004 */ lw $a2, 4($s6)
/* 70C62C 8023891C 8EC70008 */ lw $a3, 8($s6)
/* 70C630 80238920 4600028D */ trunc.w.s $f10, $f0
/* 70C634 80238924 0C00B94E */ jal get_screen_coords
/* 70C638 80238928 E60A0000 */ swc1 $f10, ($s0)
/* 70C63C 8023892C 3C048024 */ lui $a0, %hi(D_8023D288)
/* 70C640 80238930 8C84D288 */ lw $a0, %lo(D_8023D288)($a0)
/* 70C644 80238934 8FA50020 */ lw $a1, 0x20($sp)
/* 70C648 80238938 0C051261 */ jal set_icon_render_pos
/* 70C64C 8023893C 8FA60024 */ lw $a2, 0x24($sp)
/* 70C650 80238940 8FA90068 */ lw $t1, 0x68($sp)
/* 70C654 80238944 8D230070 */ lw $v1, 0x70($t1)
/* 70C658 80238948 28620003 */ slti $v0, $v1, 3
/* 70C65C 8023894C 10400013 */ beqz $v0, .L8023899C
/* 70C660 80238950 00000000 */ nop
/* 70C664 80238954 18600011 */ blez $v1, .L8023899C
/* 70C668 80238958 00000000 */ nop
/* 70C66C 8023895C 3C058024 */ lui $a1, %hi(D_8023D2C0)
/* 70C670 80238960 24A5D2C0 */ addiu $a1, $a1, %lo(D_8023D2C0)
/* 70C674 80238964 8CA20000 */ lw $v0, ($a1)
/* 70C678 80238968 24420014 */ addiu $v0, $v0, 0x14
/* 70C67C 8023896C ACA20000 */ sw $v0, ($a1)
/* 70C680 80238970 28420033 */ slti $v0, $v0, 0x33
/* 70C684 80238974 14400002 */ bnez $v0, .L80238980
/* 70C688 80238978 24020032 */ addiu $v0, $zero, 0x32
/* 70C68C 8023897C ACA20000 */ sw $v0, ($a1)
.L80238980:
/* 70C690 80238980 3C048024 */ lui $a0, %hi(D_8023D2BC)
/* 70C694 80238984 8C84D2BC */ lw $a0, %lo(D_8023D2BC)($a0)
/* 70C698 80238988 8CA50000 */ lw $a1, ($a1)
/* 70C69C 8023898C 3C068024 */ lui $a2, %hi(D_8023D2C4)
/* 70C6A0 80238990 8CC6D2C4 */ lw $a2, %lo(D_8023D2C4)($a2)
/* 70C6A4 80238994 0C051261 */ jal set_icon_render_pos
/* 70C6A8 80238998 00000000 */ nop
.L8023899C:
/* 70C6AC 8023899C 8FA80068 */ lw $t0, 0x68($sp)
/* 70C6B0 802389A0 8D040070 */ lw $a0, 0x70($t0)
/* 70C6B4 802389A4 28820003 */ slti $v0, $a0, 3
/* 70C6B8 802389A8 1040001F */ beqz $v0, .L80238A28
/* 70C6BC 802389AC 00000000 */ nop
/* 70C6C0 802389B0 1880001D */ blez $a0, .L80238A28
/* 70C6C4 802389B4 0000902D */ daddu $s2, $zero, $zero
/* 70C6C8 802389B8 27B40020 */ addiu $s4, $sp, 0x20
/* 70C6CC 802389BC C6C00000 */ lwc1 $f0, ($s6)
/* 70C6D0 802389C0 27B30024 */ addiu $s3, $sp, 0x24
/* 70C6D4 802389C4 E7C00000 */ swc1 $f0, ($fp)
/* 70C6D8 802389C8 C6C00004 */ lwc1 $f0, 4($s6)
/* 70C6DC 802389CC 27B10028 */ addiu $s1, $sp, 0x28
/* 70C6E0 802389D0 E7C00004 */ swc1 $f0, 4($fp)
/* 70C6E4 802389D4 C6C00008 */ lwc1 $f0, 8($s6)
/* 70C6E8 802389D8 3C108024 */ lui $s0, %hi(D_8023D2B8)
/* 70C6EC 802389DC 2610D2B8 */ addiu $s0, $s0, %lo(D_8023D2B8)
/* 70C6F0 802389E0 E7C00008 */ swc1 $f0, 8($fp)
.L802389E4:
/* 70C6F4 802389E4 3C048007 */ lui $a0, %hi(gCurrentCameraID)
/* 70C6F8 802389E8 8C847410 */ lw $a0, %lo(gCurrentCameraID)($a0)
/* 70C6FC 802389EC AFB40010 */ sw $s4, 0x10($sp)
/* 70C700 802389F0 AFB30014 */ sw $s3, 0x14($sp)
/* 70C704 802389F4 AFB10018 */ sw $s1, 0x18($sp)
/* 70C708 802389F8 8FC50000 */ lw $a1, ($fp)
/* 70C70C 802389FC 8FC60004 */ lw $a2, 4($fp)
/* 70C710 80238A00 8FC70008 */ lw $a3, 8($fp)
/* 70C714 80238A04 0C00B94E */ jal get_screen_coords
/* 70C718 80238A08 26520001 */ addiu $s2, $s2, 1
/* 70C71C 80238A0C 8E040000 */ lw $a0, ($s0)
/* 70C720 80238A10 8FA50020 */ lw $a1, 0x20($sp)
/* 70C724 80238A14 8FA60024 */ lw $a2, 0x24($sp)
/* 70C728 80238A18 0C051261 */ jal set_icon_render_pos
/* 70C72C 80238A1C 26100004 */ addiu $s0, $s0, 4
/* 70C730 80238A20 1A40FFF0 */ blez $s2, .L802389E4
/* 70C734 80238A24 00000000 */ nop
.L80238A28:
/* 70C738 80238A28 0C093EB1 */ jal set_popup_duration
/* 70C73C 80238A2C 24040063 */ addiu $a0, $zero, 0x63
/* 70C740 80238A30 0000102D */ daddu $v0, $zero, $zero
.L80238A34:
/* 70C744 80238A34 8FBF0054 */ lw $ra, 0x54($sp)
/* 70C748 80238A38 8FBE0050 */ lw $fp, 0x50($sp)
/* 70C74C 80238A3C 8FB7004C */ lw $s7, 0x4c($sp)
/* 70C750 80238A40 8FB60048 */ lw $s6, 0x48($sp)
/* 70C754 80238A44 8FB50044 */ lw $s5, 0x44($sp)
/* 70C758 80238A48 8FB40040 */ lw $s4, 0x40($sp)
/* 70C75C 80238A4C 8FB3003C */ lw $s3, 0x3c($sp)
/* 70C760 80238A50 8FB20038 */ lw $s2, 0x38($sp)
/* 70C764 80238A54 8FB10034 */ lw $s1, 0x34($sp)
/* 70C768 80238A58 8FB00030 */ lw $s0, 0x30($sp)
/* 70C76C 80238A5C D7B60060 */ ldc1 $f22, 0x60($sp)
/* 70C770 80238A60 D7B40058 */ ldc1 $f20, 0x58($sp)
/* 70C774 80238A64 03E00008 */ jr $ra
/* 70C778 80238A68 27BD0068 */ addiu $sp, $sp, 0x68

View File

@ -0,0 +1,61 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238A6C_70C77C
/* 70C77C 80238A6C 27BDFFA8 */ addiu $sp, $sp, -0x58
/* 70C780 80238A70 3C03800E */ lui $v1, %hi(gBattleStatus+0xDC)
/* 70C784 80238A74 8C63C14C */ lw $v1, %lo(gBattleStatus+0xDC)($v1)
/* 70C788 80238A78 3C0140A0 */ lui $at, 0x40a0
/* 70C78C 80238A7C 44810000 */ mtc1 $at, $f0
/* 70C790 80238A80 2404008C */ addiu $a0, $zero, 0x8c
/* 70C794 80238A84 AFBF0028 */ sw $ra, 0x28($sp)
/* 70C798 80238A88 F7BC0050 */ sdc1 $f28, 0x50($sp)
/* 70C79C 80238A8C F7BA0048 */ sdc1 $f26, 0x48($sp)
/* 70C7A0 80238A90 F7B80040 */ sdc1 $f24, 0x40($sp)
/* 70C7A4 80238A94 F7B60038 */ sdc1 $f22, 0x38($sp)
/* 70C7A8 80238A98 F7B40030 */ sdc1 $f20, 0x30($sp)
/* 70C7AC 80238A9C C4780144 */ lwc1 $f24, 0x144($v1)
/* 70C7B0 80238AA0 90620191 */ lbu $v0, 0x191($v1)
/* 70C7B4 80238AA4 4600C600 */ add.s $f24, $f24, $f0
/* 70C7B8 80238AA8 C4760148 */ lwc1 $f22, 0x148($v1)
/* 70C7BC 80238AAC 44820000 */ mtc1 $v0, $f0
/* 70C7C0 80238AB0 00000000 */ nop
/* 70C7C4 80238AB4 46800020 */ cvt.s.w $f0, $f0
/* 70C7C8 80238AB8 4600B580 */ add.s $f22, $f22, $f0
/* 70C7CC 80238ABC 3C0141A0 */ lui $at, 0x41a0
/* 70C7D0 80238AC0 4481D000 */ mtc1 $at, $f26
/* 70C7D4 80238AC4 C47C014C */ lwc1 $f28, 0x14c($v1)
/* 70C7D8 80238AC8 0C00A67F */ jal rand_int
/* 70C7DC 80238ACC 461AB580 */ add.s $f22, $f22, $f26
/* 70C7E0 80238AD0 2442000A */ addiu $v0, $v0, 0xa
/* 70C7E4 80238AD4 4482A000 */ mtc1 $v0, $f20
/* 70C7E8 80238AD8 00000000 */ nop
/* 70C7EC 80238ADC 4680A520 */ cvt.s.w $f20, $f20
/* 70C7F0 80238AE0 0C00A67F */ jal rand_int
/* 70C7F4 80238AE4 24040050 */ addiu $a0, $zero, 0x50
/* 70C7F8 80238AE8 0000202D */ daddu $a0, $zero, $zero
/* 70C7FC 80238AEC 2442000A */ addiu $v0, $v0, 0xa
/* 70C800 80238AF0 44820000 */ mtc1 $v0, $f0
/* 70C804 80238AF4 00000000 */ nop
/* 70C808 80238AF8 46800020 */ cvt.s.w $f0, $f0
/* 70C80C 80238AFC E7A00014 */ swc1 $f0, 0x14($sp)
/* 70C810 80238B00 3C013FC0 */ lui $at, 0x3fc0
/* 70C814 80238B04 44810000 */ mtc1 $at, $f0
/* 70C818 80238B08 4405C000 */ mfc1 $a1, $f24
/* 70C81C 80238B0C 4407E000 */ mfc1 $a3, $f28
/* 70C820 80238B10 4406B000 */ mfc1 $a2, $f22
/* 70C824 80238B14 2402001E */ addiu $v0, $zero, 0x1e
/* 70C828 80238B18 E7B40010 */ swc1 $f20, 0x10($sp)
/* 70C82C 80238B1C E7BA0018 */ swc1 $f26, 0x18($sp)
/* 70C830 80238B20 AFA20020 */ sw $v0, 0x20($sp)
/* 70C834 80238B24 0C01C784 */ jal func_80071E10
/* 70C838 80238B28 E7A0001C */ swc1 $f0, 0x1c($sp)
/* 70C83C 80238B2C 8FBF0028 */ lw $ra, 0x28($sp)
/* 70C840 80238B30 D7BC0050 */ ldc1 $f28, 0x50($sp)
/* 70C844 80238B34 D7BA0048 */ ldc1 $f26, 0x48($sp)
/* 70C848 80238B38 D7B80040 */ ldc1 $f24, 0x40($sp)
/* 70C84C 80238B3C D7B60038 */ ldc1 $f22, 0x38($sp)
/* 70C850 80238B40 D7B40030 */ ldc1 $f20, 0x30($sp)
/* 70C854 80238B44 24020002 */ addiu $v0, $zero, 2
/* 70C858 80238B48 03E00008 */ jr $ra
/* 70C85C 80238B4C 27BD0058 */ addiu $sp, $sp, 0x58

View File

@ -0,0 +1,60 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238B50_70C860
/* 70C860 80238B50 3C02800E */ lui $v0, %hi(gBattleStatus+0xDC)
/* 70C864 80238B54 8C42C14C */ lw $v0, %lo(gBattleStatus+0xDC)($v0)
/* 70C868 80238B58 8C420008 */ lw $v0, 8($v0)
/* 70C86C 80238B5C 24030001 */ addiu $v1, $zero, 1
/* 70C870 80238B60 90450006 */ lbu $a1, 6($v0)
/* 70C874 80238B64 8C8700AC */ lw $a3, 0xac($a0)
/* 70C878 80238B68 10A30010 */ beq $a1, $v1, .L80238BAC
/* 70C87C 80238B6C 0000302D */ daddu $a2, $zero, $zero
/* 70C880 80238B70 28A20002 */ slti $v0, $a1, 2
/* 70C884 80238B74 10400005 */ beqz $v0, .L80238B8C
/* 70C888 80238B78 24020002 */ addiu $v0, $zero, 2
/* 70C88C 80238B7C 10A00007 */ beqz $a1, .L80238B9C
/* 70C890 80238B80 28E20064 */ slti $v0, $a3, 0x64
/* 70C894 80238B84 0808E2FE */ j .L80238BF8
/* 70C898 80238B88 00000000 */ nop
.L80238B8C:
/* 70C89C 80238B8C 10A2000F */ beq $a1, $v0, .L80238BCC
/* 70C8A0 80238B90 28E20064 */ slti $v0, $a3, 0x64
/* 70C8A4 80238B94 0808E2FE */ j .L80238BF8
/* 70C8A8 80238B98 00000000 */ nop
.L80238B9C:
/* 70C8AC 80238B9C 10400015 */ beqz $v0, .L80238BF4
/* 70C8B0 80238BA0 24060002 */ addiu $a2, $zero, 2
/* 70C8B4 80238BA4 0808E2FD */ j .L80238BF4
/* 70C8B8 80238BA8 24060001 */ addiu $a2, $zero, 1
.L80238BAC:
/* 70C8BC 80238BAC 28E20047 */ slti $v0, $a3, 0x47
/* 70C8C0 80238BB0 14400010 */ bnez $v0, .L80238BF4
/* 70C8C4 80238BB4 24060001 */ addiu $a2, $zero, 1
/* 70C8C8 80238BB8 28E20064 */ slti $v0, $a3, 0x64
/* 70C8CC 80238BBC 1040000E */ beqz $v0, .L80238BF8
/* 70C8D0 80238BC0 24060003 */ addiu $a2, $zero, 3
/* 70C8D4 80238BC4 0808E2FE */ j .L80238BF8
/* 70C8D8 80238BC8 24060002 */ addiu $a2, $zero, 2
.L80238BCC:
/* 70C8DC 80238BCC 28E20029 */ slti $v0, $a3, 0x29
/* 70C8E0 80238BD0 14400008 */ bnez $v0, .L80238BF4
/* 70C8E4 80238BD4 24060001 */ addiu $a2, $zero, 1
/* 70C8E8 80238BD8 28E20047 */ slti $v0, $a3, 0x47
/* 70C8EC 80238BDC 14400005 */ bnez $v0, .L80238BF4
/* 70C8F0 80238BE0 24060002 */ addiu $a2, $zero, 2
/* 70C8F4 80238BE4 28E20064 */ slti $v0, $a3, 0x64
/* 70C8F8 80238BE8 10400003 */ beqz $v0, .L80238BF8
/* 70C8FC 80238BEC 24060004 */ addiu $a2, $zero, 4
/* 70C900 80238BF0 24060003 */ addiu $a2, $zero, 3
.L80238BF4:
/* 70C904 80238BF4 28E20064 */ slti $v0, $a3, 0x64
.L80238BF8:
/* 70C908 80238BF8 54400003 */ bnel $v0, $zero, .L80238C08
/* 70C90C 80238BFC AC800084 */ sw $zero, 0x84($a0)
/* 70C910 80238C00 24020001 */ addiu $v0, $zero, 1
/* 70C914 80238C04 AC820084 */ sw $v0, 0x84($a0)
.L80238C08:
/* 70C918 80238C08 AC8600C0 */ sw $a2, 0xc0($a0)
/* 70C91C 80238C0C 03E00008 */ jr $ra
/* 70C920 80238C10 24020002 */ addiu $v0, $zero, 2

View File

@ -0,0 +1,22 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238C14_70C924
/* 70C924 80238C14 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 70C928 80238C18 AFB00010 */ sw $s0, 0x10($sp)
/* 70C92C 80238C1C 3C10800E */ lui $s0, %hi(gBattleStatus)
/* 70C930 80238C20 2610C070 */ addiu $s0, $s0, %lo(gBattleStatus)
/* 70C934 80238C24 AFBF0014 */ sw $ra, 0x14($sp)
/* 70C938 80238C28 8E0400A8 */ lw $a0, 0xa8($s0)
/* 70C93C 80238C2C 10800006 */ beqz $a0, .L80238C48
/* 70C940 80238C30 24020002 */ addiu $v0, $zero, 2
/* 70C944 80238C34 0C016914 */ jal remove_effect
/* 70C948 80238C38 00000000 */ nop
/* 70C94C 80238C3C 24020002 */ addiu $v0, $zero, 2
/* 70C950 80238C40 AE0000A8 */ sw $zero, 0xa8($s0)
/* 70C954 80238C44 A20000A4 */ sb $zero, 0xa4($s0)
.L80238C48:
/* 70C958 80238C48 8FBF0014 */ lw $ra, 0x14($sp)
/* 70C95C 80238C4C 8FB00010 */ lw $s0, 0x10($sp)
/* 70C960 80238C50 03E00008 */ jr $ra
/* 70C964 80238C54 27BD0018 */ addiu $sp, $sp, 0x18

View File

@ -0,0 +1,69 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238C58_70C968
/* 70C968 80238C58 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 70C96C 80238C5C AFB00018 */ sw $s0, 0x18($sp)
/* 70C970 80238C60 0080802D */ daddu $s0, $a0, $zero
/* 70C974 80238C64 3C06800E */ lui $a2, %hi(gBattleStatus)
/* 70C978 80238C68 24C6C070 */ addiu $a2, $a2, %lo(gBattleStatus)
/* 70C97C 80238C6C AFBF001C */ sw $ra, 0x1c($sp)
/* 70C980 80238C70 8CC400D8 */ lw $a0, 0xd8($a2)
/* 70C984 80238C74 54A00001 */ bnel $a1, $zero, .L80238C7C
/* 70C988 80238C78 AE000070 */ sw $zero, 0x70($s0)
.L80238C7C:
/* 70C98C 80238C7C 8E030070 */ lw $v1, 0x70($s0)
/* 70C990 80238C80 10600005 */ beqz $v1, .L80238C98
/* 70C994 80238C84 24020001 */ addiu $v0, $zero, 1
/* 70C998 80238C88 10620013 */ beq $v1, $v0, .L80238CD8
/* 70C99C 80238C8C 0000102D */ daddu $v0, $zero, $zero
/* 70C9A0 80238C90 0808E34E */ j .L80238D38
/* 70C9A4 80238C94 00000000 */ nop
.L80238C98:
/* 70C9A8 80238C98 3C013DCC */ lui $at, 0x3dcc
/* 70C9AC 80238C9C 3421CCCD */ ori $at, $at, 0xcccd
/* 70C9B0 80238CA0 44810000 */ mtc1 $at, $f0
/* 70C9B4 80238CA4 24C200A8 */ addiu $v0, $a2, 0xa8
/* 70C9B8 80238CA8 AFA20014 */ sw $v0, 0x14($sp)
/* 70C9BC 80238CAC E7A00010 */ swc1 $f0, 0x10($sp)
/* 70C9C0 80238CB0 8C850144 */ lw $a1, 0x144($a0)
/* 70C9C4 80238CB4 8C860148 */ lw $a2, 0x148($a0)
/* 70C9C8 80238CB8 8C87014C */ lw $a3, 0x14c($a0)
/* 70C9CC 80238CBC 3C018024 */ lui $at, %hi(D_8023D1E0)
/* 70C9D0 80238CC0 E420D1E0 */ swc1 $f0, %lo(D_8023D1E0)($at)
/* 70C9D4 80238CC4 0C01C304 */ jal func_80070C10
/* 70C9D8 80238CC8 0000202D */ daddu $a0, $zero, $zero
/* 70C9DC 80238CCC 24020001 */ addiu $v0, $zero, 1
/* 70C9E0 80238CD0 0808E34D */ j .L80238D34
/* 70C9E4 80238CD4 AE020070 */ sw $v0, 0x70($s0)
.L80238CD8:
/* 70C9E8 80238CD8 3C038024 */ lui $v1, %hi(D_8023D1E0)
/* 70C9EC 80238CDC 2463D1E0 */ addiu $v1, $v1, %lo(D_8023D1E0)
/* 70C9F0 80238CE0 C4620000 */ lwc1 $f2, ($v1)
/* 70C9F4 80238CE4 3C013FF0 */ lui $at, 0x3ff0
/* 70C9F8 80238CE8 44810800 */ mtc1 $at, $f1
/* 70C9FC 80238CEC 44800000 */ mtc1 $zero, $f0
/* 70CA00 80238CF0 460010A1 */ cvt.d.s $f2, $f2
/* 70CA04 80238CF4 4622003E */ c.le.d $f0, $f2
/* 70CA08 80238CF8 00000000 */ nop
/* 70CA0C 80238CFC 4501000E */ bc1t .L80238D38
/* 70CA10 80238D00 24020002 */ addiu $v0, $zero, 2
/* 70CA14 80238D04 8CC200A8 */ lw $v0, 0xa8($a2)
/* 70CA18 80238D08 3C018024 */ lui $at, %hi(D_8023D1B8_710EC8)
/* 70CA1C 80238D0C D424D1B8 */ ldc1 $f4, %lo(D_8023D1B8_710EC8)($at)
/* 70CA20 80238D10 8C42000C */ lw $v0, 0xc($v0)
/* 70CA24 80238D14 46241080 */ add.d $f2, $f2, $f4
/* 70CA28 80238D18 C4400010 */ lwc1 $f0, 0x10($v0)
/* 70CA2C 80238D1C 46000021 */ cvt.d.s $f0, $f0
/* 70CA30 80238D20 46240000 */ add.d $f0, $f0, $f4
/* 70CA34 80238D24 462010A0 */ cvt.s.d $f2, $f2
/* 70CA38 80238D28 E4620000 */ swc1 $f2, ($v1)
/* 70CA3C 80238D2C 46200020 */ cvt.s.d $f0, $f0
/* 70CA40 80238D30 E4400010 */ swc1 $f0, 0x10($v0)
.L80238D34:
/* 70CA44 80238D34 0000102D */ daddu $v0, $zero, $zero
.L80238D38:
/* 70CA48 80238D38 8FBF001C */ lw $ra, 0x1c($sp)
/* 70CA4C 80238D3C 8FB00018 */ lw $s0, 0x18($sp)
/* 70CA50 80238D40 03E00008 */ jr $ra
/* 70CA54 80238D44 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -0,0 +1,22 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238D48_70CA58
/* 70CA58 80238D48 3C05800E */ lui $a1, %hi(gBattleStatus)
/* 70CA5C 80238D4C 24A5C070 */ addiu $a1, $a1, %lo(gBattleStatus)
/* 70CA60 80238D50 80A200A4 */ lb $v0, 0xa4($a1)
/* 70CA64 80238D54 8C8300AC */ lw $v1, 0xac($a0)
/* 70CA68 80238D58 0043102A */ slt $v0, $v0, $v1
/* 70CA6C 80238D5C 10400009 */ beqz $v0, .L80238D84
/* 70CA70 80238D60 24020032 */ addiu $v0, $zero, 0x32
/* 70CA74 80238D64 908300AF */ lbu $v1, 0xaf($a0)
/* 70CA78 80238D68 A0A200A5 */ sb $v0, 0xa5($a1)
/* 70CA7C 80238D6C 8CA2043C */ lw $v0, 0x43c($a1)
/* 70CA80 80238D70 A0A300A4 */ sb $v1, 0xa4($a1)
/* 70CA84 80238D74 00031E00 */ sll $v1, $v1, 0x18
/* 70CA88 80238D78 8C42000C */ lw $v0, 0xc($v0)
/* 70CA8C 80238D7C 00031E03 */ sra $v1, $v1, 0x18
/* 70CA90 80238D80 A443001A */ sh $v1, 0x1a($v0)
.L80238D84:
/* 70CA94 80238D84 03E00008 */ jr $ra
/* 70CA98 80238D88 24020002 */ addiu $v0, $zero, 2

View File

@ -0,0 +1,207 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238D8C_70CA9C
/* 70CA9C 80238D8C 27BDFFC8 */ addiu $sp, $sp, -0x38
/* 70CAA0 80238D90 AFB50024 */ sw $s5, 0x24($sp)
/* 70CAA4 80238D94 3C15800E */ lui $s5, %hi(gBattleStatus+0xDC)
/* 70CAA8 80238D98 8EB5C14C */ lw $s5, %lo(gBattleStatus+0xDC)($s5)
/* 70CAAC 80238D9C AFBF0034 */ sw $ra, 0x34($sp)
/* 70CAB0 80238DA0 AFBE0030 */ sw $fp, 0x30($sp)
/* 70CAB4 80238DA4 AFB7002C */ sw $s7, 0x2c($sp)
/* 70CAB8 80238DA8 AFB60028 */ sw $s6, 0x28($sp)
/* 70CABC 80238DAC AFB40020 */ sw $s4, 0x20($sp)
/* 70CAC0 80238DB0 AFB3001C */ sw $s3, 0x1c($sp)
/* 70CAC4 80238DB4 AFB20018 */ sw $s2, 0x18($sp)
/* 70CAC8 80238DB8 AFB10014 */ sw $s1, 0x14($sp)
/* 70CACC 80238DBC AFB00010 */ sw $s0, 0x10($sp)
/* 70CAD0 80238DC0 AFA40038 */ sw $a0, 0x38($sp)
/* 70CAD4 80238DC4 3C018024 */ lui $at, %hi(D_8023D330)
/* 70CAD8 80238DC8 AC20D330 */ sw $zero, %lo(D_8023D330)($at)
/* 70CADC 80238DCC 3C018024 */ lui $at, %hi(D_8023D334)
/* 70CAE0 80238DD0 AC20D334 */ sw $zero, %lo(D_8023D334)($at)
/* 70CAE4 80238DD4 82A2040C */ lb $v0, 0x40c($s5)
/* 70CAE8 80238DD8 18400009 */ blez $v0, .L80238E00
/* 70CAEC 80238DDC 0000982D */ daddu $s3, $zero, $zero
/* 70CAF0 80238DE0 3C038024 */ lui $v1, %hi(D_8023D2D0)
/* 70CAF4 80238DE4 2463D2D0 */ addiu $v1, $v1, %lo(D_8023D2D0)
.L80238DE8:
/* 70CAF8 80238DE8 AC600000 */ sw $zero, ($v1)
/* 70CAFC 80238DEC 82A2040C */ lb $v0, 0x40c($s5)
/* 70CB00 80238DF0 26730001 */ addiu $s3, $s3, 1
/* 70CB04 80238DF4 0262102A */ slt $v0, $s3, $v0
/* 70CB08 80238DF8 1440FFFB */ bnez $v0, .L80238DE8
/* 70CB0C 80238DFC 24630004 */ addiu $v1, $v1, 4
.L80238E00:
/* 70CB10 80238E00 0000B02D */ daddu $s6, $zero, $zero
/* 70CB14 80238E04 02C0902D */ daddu $s2, $s6, $zero
/* 70CB18 80238E08 82A2040C */ lb $v0, 0x40c($s5)
/* 70CB1C 80238E0C 18400056 */ blez $v0, .L80238F68
/* 70CB20 80238E10 02C0982D */ daddu $s3, $s6, $zero
/* 70CB24 80238E14 3C1751EB */ lui $s7, 0x51eb
/* 70CB28 80238E18 36F7851F */ ori $s7, $s7, 0x851f
/* 70CB2C 80238E1C 3C1E8024 */ lui $fp, %hi(D_8023D2D0)
/* 70CB30 80238E20 27DED2D0 */ addiu $fp, $fp, %lo(D_8023D2D0)
.L80238E24:
/* 70CB34 80238E24 02B31021 */ addu $v0, $s5, $s3
/* 70CB38 80238E28 8054040D */ lb $s4, 0x40d($v0)
/* 70CB3C 80238E2C 00141080 */ sll $v0, $s4, 2
/* 70CB40 80238E30 00541021 */ addu $v0, $v0, $s4
/* 70CB44 80238E34 00021080 */ sll $v0, $v0, 2
/* 70CB48 80238E38 2442022C */ addiu $v0, $v0, 0x22c
/* 70CB4C 80238E3C 02A28021 */ addu $s0, $s5, $v0
/* 70CB50 80238E40 0C09A75B */ jal get_actor
/* 70CB54 80238E44 86040000 */ lh $a0, ($s0)
/* 70CB58 80238E48 0040882D */ daddu $s1, $v0, $zero
/* 70CB5C 80238E4C 86050002 */ lh $a1, 2($s0)
/* 70CB60 80238E50 0C099117 */ jal get_actor_part
/* 70CB64 80238E54 0220202D */ daddu $a0, $s1, $zero
/* 70CB68 80238E58 822401B8 */ lb $a0, 0x1b8($s1)
/* 70CB6C 80238E5C 00041840 */ sll $v1, $a0, 1
/* 70CB70 80238E60 00641821 */ addu $v1, $v1, $a0
/* 70CB74 80238E64 000318C0 */ sll $v1, $v1, 3
/* 70CB78 80238E68 00641821 */ addu $v1, $v1, $a0
/* 70CB7C 80238E6C 822401B9 */ lb $a0, 0x1b9($s1)
/* 70CB80 80238E70 00031880 */ sll $v1, $v1, 2
/* 70CB84 80238E74 14800002 */ bnez $a0, .L80238E80
/* 70CB88 80238E78 0064001A */ div $zero, $v1, $a0
/* 70CB8C 80238E7C 0007000D */ break 7
.L80238E80:
/* 70CB90 80238E80 2401FFFF */ addiu $at, $zero, -1
/* 70CB94 80238E84 14810004 */ bne $a0, $at, .L80238E98
/* 70CB98 80238E88 3C018000 */ lui $at, 0x8000
/* 70CB9C 80238E8C 14610002 */ bne $v1, $at, .L80238E98
/* 70CBA0 80238E90 00000000 */ nop
/* 70CBA4 80238E94 0006000D */ break 6
.L80238E98:
/* 70CBA8 80238E98 00001812 */ mflo $v1
/* 70CBAC 80238E9C 0040282D */ daddu $a1, $v0, $zero
/* 70CBB0 80238EA0 8E240008 */ lw $a0, 8($s1)
/* 70CBB4 80238EA4 24020064 */ addiu $v0, $zero, 0x64
/* 70CBB8 80238EA8 9084001A */ lbu $a0, 0x1a($a0)
/* 70CBBC 80238EAC 18800026 */ blez $a0, .L80238F48
/* 70CBC0 80238EB0 00431023 */ subu $v0, $v0, $v1
/* 70CBC4 80238EB4 00820018 */ mult $a0, $v0
/* 70CBC8 80238EB8 00001812 */ mflo $v1
/* 70CBCC 80238EBC 00000000 */ nop
/* 70CBD0 80238EC0 00000000 */ nop
/* 70CBD4 80238EC4 00770018 */ mult $v1, $s7
/* 70CBD8 80238EC8 00031FC3 */ sra $v1, $v1, 0x1f
/* 70CBDC 80238ECC 00003810 */ mfhi $a3
/* 70CBE0 80238ED0 00071143 */ sra $v0, $a3, 5
/* 70CBE4 80238ED4 00431023 */ subu $v0, $v0, $v1
/* 70CBE8 80238ED8 00822021 */ addu $a0, $a0, $v0
/* 70CBEC 80238EDC 28820065 */ slti $v0, $a0, 0x65
/* 70CBF0 80238EE0 50400001 */ beql $v0, $zero, .L80238EE8
/* 70CBF4 80238EE4 24040064 */ addiu $a0, $zero, 0x64
.L80238EE8:
/* 70CBF8 80238EE8 82220210 */ lb $v0, 0x210($s1)
/* 70CBFC 80238EEC 1040000D */ beqz $v0, .L80238F24
/* 70CC00 80238EF0 00041880 */ sll $v1, $a0, 2
/* 70CC04 80238EF4 00641821 */ addu $v1, $v1, $a0
/* 70CC08 80238EF8 00031100 */ sll $v0, $v1, 4
/* 70CC0C 80238EFC 00431023 */ subu $v0, $v0, $v1
/* 70CC10 80238F00 00021040 */ sll $v0, $v0, 1
/* 70CC14 80238F04 00570018 */ mult $v0, $s7
/* 70CC18 80238F08 000217C3 */ sra $v0, $v0, 0x1f
/* 70CC1C 80238F0C 00003010 */ mfhi $a2
/* 70CC20 80238F10 00061943 */ sra $v1, $a2, 5
/* 70CC24 80238F14 00622023 */ subu $a0, $v1, $v0
/* 70CC28 80238F18 28820097 */ slti $v0, $a0, 0x97
/* 70CC2C 80238F1C 50400001 */ beql $v0, $zero, .L80238F24
/* 70CC30 80238F20 24040096 */ addiu $a0, $zero, 0x96
.L80238F24:
/* 70CC34 80238F24 82230218 */ lb $v1, 0x218($s1)
/* 70CC38 80238F28 2402000E */ addiu $v0, $zero, 0xe
/* 70CC3C 80238F2C 50620001 */ beql $v1, $v0, .L80238F34
/* 70CC40 80238F30 0000202D */ daddu $a0, $zero, $zero
.L80238F34:
/* 70CC44 80238F34 8CA2007C */ lw $v0, 0x7c($a1)
/* 70CC48 80238F38 30420020 */ andi $v0, $v0, 0x20
/* 70CC4C 80238F3C 54400001 */ bnel $v0, $zero, .L80238F44
/* 70CC50 80238F40 0000202D */ daddu $a0, $zero, $zero
.L80238F44:
/* 70CC54 80238F44 26520001 */ addiu $s2, $s2, 1
.L80238F48:
/* 70CC58 80238F48 00141080 */ sll $v0, $s4, 2
/* 70CC5C 80238F4C 005E1021 */ addu $v0, $v0, $fp
/* 70CC60 80238F50 AC440000 */ sw $a0, ($v0)
/* 70CC64 80238F54 82A2040C */ lb $v0, 0x40c($s5)
/* 70CC68 80238F58 26730001 */ addiu $s3, $s3, 1
/* 70CC6C 80238F5C 0262102A */ slt $v0, $s3, $v0
/* 70CC70 80238F60 1440FFB0 */ bnez $v0, .L80238E24
/* 70CC74 80238F64 02C4B021 */ addu $s6, $s6, $a0
.L80238F68:
/* 70CC78 80238F68 5240000B */ beql $s2, $zero, .L80238F98
/* 70CC7C 80238F6C 0000B02D */ daddu $s6, $zero, $zero
/* 70CC80 80238F70 16400002 */ bnez $s2, .L80238F7C
/* 70CC84 80238F74 02D2001A */ div $zero, $s6, $s2
/* 70CC88 80238F78 0007000D */ break 7
.L80238F7C:
/* 70CC8C 80238F7C 2401FFFF */ addiu $at, $zero, -1
/* 70CC90 80238F80 16410004 */ bne $s2, $at, .L80238F94
/* 70CC94 80238F84 3C018000 */ lui $at, 0x8000
/* 70CC98 80238F88 16C10002 */ bne $s6, $at, .L80238F94
/* 70CC9C 80238F8C 00000000 */ nop
/* 70CCA0 80238F90 0006000D */ break 6
.L80238F94:
/* 70CCA4 80238F94 0000B012 */ mflo $s6
.L80238F98:
/* 70CCA8 80238F98 8FA60038 */ lw $a2, 0x38($sp)
/* 70CCAC 80238F9C ACD60084 */ sw $s6, 0x84($a2)
/* 70CCB0 80238FA0 82A2040C */ lb $v0, 0x40c($s5)
/* 70CCB4 80238FA4 18400024 */ blez $v0, .L80239038
/* 70CCB8 80238FA8 0000982D */ daddu $s3, $zero, $zero
/* 70CCBC 80238FAC 3C178024 */ lui $s7, %hi(D_8023D2D0)
/* 70CCC0 80238FB0 26F7D2D0 */ addiu $s7, $s7, %lo(D_8023D2D0)
/* 70CCC4 80238FB4 241EFFFF */ addiu $fp, $zero, -1
/* 70CCC8 80238FB8 02B31021 */ addu $v0, $s5, $s3
.L80238FBC:
/* 70CCCC 80238FBC 8054040D */ lb $s4, 0x40d($v0)
/* 70CCD0 80238FC0 00149080 */ sll $s2, $s4, 2
/* 70CCD4 80238FC4 02541021 */ addu $v0, $s2, $s4
/* 70CCD8 80238FC8 00021080 */ sll $v0, $v0, 2
/* 70CCDC 80238FCC 2442022C */ addiu $v0, $v0, 0x22c
/* 70CCE0 80238FD0 02A28021 */ addu $s0, $s5, $v0
/* 70CCE4 80238FD4 0C09A75B */ jal get_actor
/* 70CCE8 80238FD8 86040000 */ lh $a0, ($s0)
/* 70CCEC 80238FDC 0040882D */ daddu $s1, $v0, $zero
/* 70CCF0 80238FE0 86050002 */ lh $a1, 2($s0)
/* 70CCF4 80238FE4 0C099117 */ jal get_actor_part
/* 70CCF8 80238FE8 0220202D */ daddu $a0, $s1, $zero
/* 70CCFC 80238FEC 82230218 */ lb $v1, 0x218($s1)
/* 70CD00 80238FF0 2406000E */ addiu $a2, $zero, 0xe
/* 70CD04 80238FF4 10660005 */ beq $v1, $a2, .L8023900C
/* 70CD08 80238FF8 0040282D */ daddu $a1, $v0, $zero
/* 70CD0C 80238FFC 8CA2007C */ lw $v0, 0x7c($a1)
/* 70CD10 80239000 30420020 */ andi $v0, $v0, 0x20
/* 70CD14 80239004 10400004 */ beqz $v0, .L80239018
/* 70CD18 80239008 02571821 */ addu $v1, $s2, $s7
.L8023900C:
/* 70CD1C 8023900C 02571021 */ addu $v0, $s2, $s7
/* 70CD20 80239010 0808E409 */ j .L80239024
/* 70CD24 80239014 AC5E0000 */ sw $fp, ($v0)
.L80239018:
/* 70CD28 80239018 8C620000 */ lw $v0, ($v1)
/* 70CD2C 8023901C 54400001 */ bnel $v0, $zero, .L80239024
/* 70CD30 80239020 AC760000 */ sw $s6, ($v1)
.L80239024:
/* 70CD34 80239024 82A2040C */ lb $v0, 0x40c($s5)
/* 70CD38 80239028 26730001 */ addiu $s3, $s3, 1
/* 70CD3C 8023902C 0262102A */ slt $v0, $s3, $v0
/* 70CD40 80239030 1440FFE2 */ bnez $v0, .L80238FBC
/* 70CD44 80239034 02B31021 */ addu $v0, $s5, $s3
.L80239038:
/* 70CD48 80239038 8FBF0034 */ lw $ra, 0x34($sp)
/* 70CD4C 8023903C 8FBE0030 */ lw $fp, 0x30($sp)
/* 70CD50 80239040 8FB7002C */ lw $s7, 0x2c($sp)
/* 70CD54 80239044 8FB60028 */ lw $s6, 0x28($sp)
/* 70CD58 80239048 8FB50024 */ lw $s5, 0x24($sp)
/* 70CD5C 8023904C 8FB40020 */ lw $s4, 0x20($sp)
/* 70CD60 80239050 8FB3001C */ lw $s3, 0x1c($sp)
/* 70CD64 80239054 8FB20018 */ lw $s2, 0x18($sp)
/* 70CD68 80239058 8FB10014 */ lw $s1, 0x14($sp)
/* 70CD6C 8023905C 8FB00010 */ lw $s0, 0x10($sp)
/* 70CD70 80239060 24020002 */ addiu $v0, $zero, 2
/* 70CD74 80239064 03E00008 */ jr $ra
/* 70CD78 80239068 27BD0038 */ addiu $sp, $sp, 0x38

View File

@ -0,0 +1,60 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_8023906C_70CD7C
/* 70CD7C 8023906C 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 70CD80 80239070 AFB3001C */ sw $s3, 0x1c($sp)
/* 70CD84 80239074 0080982D */ daddu $s3, $a0, $zero
/* 70CD88 80239078 3C06800E */ lui $a2, %hi(gBattleStatus)
/* 70CD8C 8023907C 24C6C070 */ addiu $a2, $a2, %lo(gBattleStatus)
/* 70CD90 80239080 AFBF0024 */ sw $ra, 0x24($sp)
/* 70CD94 80239084 AFB40020 */ sw $s4, 0x20($sp)
/* 70CD98 80239088 AFB20018 */ sw $s2, 0x18($sp)
/* 70CD9C 8023908C AFB10014 */ sw $s1, 0x14($sp)
/* 70CDA0 80239090 AFB00010 */ sw $s0, 0x10($sp)
/* 70CDA4 80239094 8CC400DC */ lw $a0, 0xdc($a2)
/* 70CDA8 80239098 80820425 */ lb $v0, 0x425($a0)
/* 70CDAC 8023909C 3C038024 */ lui $v1, %hi(D_8023D2D0)
/* 70CDB0 802390A0 2463D2D0 */ addiu $v1, $v1, %lo(D_8023D2D0)
/* 70CDB4 802390A4 00821021 */ addu $v0, $a0, $v0
/* 70CDB8 802390A8 8045040D */ lb $a1, 0x40d($v0)
/* 70CDBC 802390AC 00051080 */ sll $v0, $a1, 2
/* 70CDC0 802390B0 00438021 */ addu $s0, $v0, $v1
/* 70CDC4 802390B4 00451021 */ addu $v0, $v0, $a1
/* 70CDC8 802390B8 00021080 */ sll $v0, $v0, 2
/* 70CDCC 802390BC 2442022C */ addiu $v0, $v0, 0x22c
/* 70CDD0 802390C0 8E030000 */ lw $v1, ($s0)
/* 70CDD4 802390C4 00828821 */ addu $s1, $a0, $v0
/* 70CDD8 802390C8 AE630084 */ sw $v1, 0x84($s3)
/* 70CDDC 802390CC 8E020000 */ lw $v0, ($s0)
/* 70CDE0 802390D0 2412FFFF */ addiu $s2, $zero, -1
/* 70CDE4 802390D4 10520011 */ beq $v0, $s2, .L8023911C
/* 70CDE8 802390D8 00C0A02D */ daddu $s4, $a2, $zero
/* 70CDEC 802390DC 10400010 */ beqz $v0, .L80239120
/* 70CDF0 802390E0 24020002 */ addiu $v0, $zero, 2
/* 70CDF4 802390E4 86240000 */ lh $a0, ($s1)
/* 70CDF8 802390E8 0C09A75B */ jal get_actor
/* 70CDFC 802390EC 00000000 */ nop
/* 70CE00 802390F0 0C00A67F */ jal rand_int
/* 70CE04 802390F4 24040063 */ addiu $a0, $zero, 0x63
/* 70CE08 802390F8 82830081 */ lb $v1, 0x81($s4)
/* 70CE0C 802390FC 0043102A */ slt $v0, $v0, $v1
/* 70CE10 80239100 50400005 */ beql $v0, $zero, .L80239118
/* 70CE14 80239104 AE000000 */ sw $zero, ($s0)
/* 70CE18 80239108 AE120000 */ sw $s2, ($s0)
/* 70CE1C 8023910C 86220000 */ lh $v0, ($s1)
/* 70CE20 80239110 0808E447 */ j .L8023911C
/* 70CE24 80239114 AE620084 */ sw $v0, 0x84($s3)
.L80239118:
/* 70CE28 80239118 AE600084 */ sw $zero, 0x84($s3)
.L8023911C:
/* 70CE2C 8023911C 24020002 */ addiu $v0, $zero, 2
.L80239120:
/* 70CE30 80239120 8FBF0024 */ lw $ra, 0x24($sp)
/* 70CE34 80239124 8FB40020 */ lw $s4, 0x20($sp)
/* 70CE38 80239128 8FB3001C */ lw $s3, 0x1c($sp)
/* 70CE3C 8023912C 8FB20018 */ lw $s2, 0x18($sp)
/* 70CE40 80239130 8FB10014 */ lw $s1, 0x14($sp)
/* 70CE44 80239134 8FB00010 */ lw $s0, 0x10($sp)
/* 70CE48 80239138 03E00008 */ jr $ra
/* 70CE4C 8023913C 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -0,0 +1,961 @@
.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

View File

@ -0,0 +1,143 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80239F84_70DC94
/* 70DC94 80239F84 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 70DC98 80239F88 AFB10014 */ sw $s1, 0x14($sp)
/* 70DC9C 80239F8C AFBF001C */ sw $ra, 0x1c($sp)
/* 70DCA0 80239F90 AFB20018 */ sw $s2, 0x18($sp)
/* 70DCA4 80239F94 AFB00010 */ sw $s0, 0x10($sp)
/* 70DCA8 80239F98 F7B40020 */ sdc1 $f20, 0x20($sp)
/* 70DCAC 80239F9C 10A00006 */ beqz $a1, .L80239FB8
/* 70DCB0 80239FA0 0080882D */ daddu $s1, $a0, $zero
/* 70DCB4 80239FA4 8E2400AC */ lw $a0, 0xac($s1)
/* 70DCB8 80239FA8 0C09A75B */ jal get_actor
/* 70DCBC 80239FAC 00000000 */ nop
/* 70DCC0 80239FB0 AE220074 */ sw $v0, 0x74($s1)
/* 70DCC4 80239FB4 AE200070 */ sw $zero, 0x70($s1)
.L80239FB8:
/* 70DCC8 80239FB8 8E300074 */ lw $s0, 0x74($s1)
/* 70DCCC 80239FBC 8E230070 */ lw $v1, 0x70($s1)
/* 70DCD0 80239FC0 10600006 */ beqz $v1, .L80239FDC
/* 70DCD4 80239FC4 2612000C */ addiu $s2, $s0, 0xc
/* 70DCD8 80239FC8 24020001 */ addiu $v0, $zero, 1
/* 70DCDC 80239FCC 1062001B */ beq $v1, $v0, .L8023A03C
/* 70DCE0 80239FD0 00000000 */ nop
/* 70DCE4 80239FD4 0808E859 */ j .L8023A164
/* 70DCE8 80239FD8 00000000 */ nop
.L80239FDC:
/* 70DCEC 80239FDC 3C038024 */ lui $v1, %hi(D_8023D330)
/* 70DCF0 80239FE0 2463D330 */ addiu $v1, $v1, %lo(D_8023D330)
/* 70DCF4 80239FE4 0200202D */ daddu $a0, $s0, $zero
/* 70DCF8 80239FE8 C6000144 */ lwc1 $f0, 0x144($s0)
/* 70DCFC 80239FEC C6020148 */ lwc1 $f2, 0x148($s0)
/* 70DD00 80239FF0 C604014C */ lwc1 $f4, 0x14c($s0)
/* 70DD04 80239FF4 3C0140B0 */ lui $at, 0x40b0
/* 70DD08 80239FF8 44813000 */ mtc1 $at, $f6
/* 70DD0C 80239FFC 8C620000 */ lw $v0, ($v1)
/* 70DD10 8023A000 24050016 */ addiu $a1, $zero, 0x16
/* 70DD14 8023A004 A6000070 */ sh $zero, 0x70($s0)
/* 70DD18 8023A008 24420001 */ addiu $v0, $v0, 1
/* 70DD1C 8023A00C E600000C */ swc1 $f0, 0xc($s0)
/* 70DD20 8023A010 E6020010 */ swc1 $f2, 0x10($s0)
/* 70DD24 8023A014 E6040014 */ swc1 $f4, 0x14($s0)
/* 70DD28 8023A018 E606004C */ swc1 $f6, 0x4c($s0)
/* 70DD2C 8023A01C AC620000 */ sw $v0, ($v1)
/* 70DD30 8023A020 3C02800E */ lui $v0, %hi(gBattleStatus)
/* 70DD34 8023A024 2442C070 */ addiu $v0, $v0, %lo(gBattleStatus)
/* 70DD38 8023A028 0C09DC58 */ jal dispatch_event_actor
/* 70DD3C 8023A02C AC400188 */ sw $zero, 0x188($v0)
/* 70DD40 8023A030 24020001 */ addiu $v0, $zero, 1
/* 70DD44 8023A034 0808E859 */ j .L8023A164
/* 70DD48 8023A038 AE220070 */ sw $v0, 0x70($s1)
.L8023A03C:
/* 70DD4C 8023A03C C602000C */ lwc1 $f2, 0xc($s0)
/* 70DD50 8023A040 C600004C */ lwc1 $f0, 0x4c($s0)
/* 70DD54 8023A044 86020070 */ lh $v0, 0x70($s0)
/* 70DD58 8023A048 46001080 */ add.s $f2, $f2, $f0
/* 70DD5C 8023A04C 3C0140C9 */ lui $at, 0x40c9
/* 70DD60 8023A050 34210FD0 */ ori $at, $at, 0xfd0
/* 70DD64 8023A054 44810000 */ mtc1 $at, $f0
/* 70DD68 8023A058 44826000 */ mtc1 $v0, $f12
/* 70DD6C 8023A05C 00000000 */ nop
/* 70DD70 8023A060 46806320 */ cvt.s.w $f12, $f12
/* 70DD74 8023A064 46006302 */ mul.s $f12, $f12, $f0
/* 70DD78 8023A068 00000000 */ nop
/* 70DD7C 8023A06C C6140010 */ lwc1 $f20, 0x10($s0)
/* 70DD80 8023A070 3C0143B4 */ lui $at, 0x43b4
/* 70DD84 8023A074 44810000 */ mtc1 $at, $f0
/* 70DD88 8023A078 4600A521 */ cvt.d.s $f20, $f20
/* 70DD8C 8023A07C E602000C */ swc1 $f2, 0xc($s0)
/* 70DD90 8023A080 0C00A85B */ jal sin_rad
/* 70DD94 8023A084 46006303 */ div.s $f12, $f12, $f0
/* 70DD98 8023A088 46000000 */ add.s $f0, $f0, $f0
/* 70DD9C 8023A08C 3C014049 */ lui $at, 0x4049
/* 70DDA0 8023A090 34210FD0 */ ori $at, $at, 0xfd0
/* 70DDA4 8023A094 44816000 */ mtc1 $at, $f12
/* 70DDA8 8023A098 00000000 */ nop
/* 70DDAC 8023A09C 460C0302 */ mul.s $f12, $f0, $f12
/* 70DDB0 8023A0A0 0C00A85B */ jal sin_rad
/* 70DDB4 8023A0A4 00000000 */ nop
/* 70DDB8 8023A0A8 3C018024 */ lui $at, %hi(D_8023D1D0_710EE0)
/* 70DDBC 8023A0AC D422D1D0 */ ldc1 $f2, %lo(D_8023D1D0_710EE0)($at)
/* 70DDC0 8023A0B0 46000021 */ cvt.d.s $f0, $f0
/* 70DDC4 8023A0B4 46220002 */ mul.d $f0, $f0, $f2
/* 70DDC8 8023A0B8 00000000 */ nop
/* 70DDCC 8023A0BC 96030070 */ lhu $v1, 0x70($s0)
/* 70DDD0 8023A0C0 3C013FE0 */ lui $at, 0x3fe0
/* 70DDD4 8023A0C4 44811800 */ mtc1 $at, $f3
/* 70DDD8 8023A0C8 44801000 */ mtc1 $zero, $f2
/* 70DDDC 8023A0CC 24630006 */ addiu $v1, $v1, 6
/* 70DDE0 8023A0D0 46220000 */ add.d $f0, $f0, $f2
/* 70DDE4 8023A0D4 00031400 */ sll $v0, $v1, 0x10
/* 70DDE8 8023A0D8 00021403 */ sra $v0, $v0, 0x10
/* 70DDEC 8023A0DC 4620A500 */ add.d $f20, $f20, $f0
/* 70DDF0 8023A0E0 44826000 */ mtc1 $v0, $f12
/* 70DDF4 8023A0E4 00000000 */ nop
/* 70DDF8 8023A0E8 46806320 */ cvt.s.w $f12, $f12
/* 70DDFC 8023A0EC A6030070 */ sh $v1, 0x70($s0)
/* 70DE00 8023A0F0 4620A520 */ cvt.s.d $f20, $f20
/* 70DE04 8023A0F4 0C00A6C9 */ jal clamp_angle
/* 70DE08 8023A0F8 E6140010 */ swc1 $f20, 0x10($s0)
/* 70DE0C 8023A0FC C60C018C */ lwc1 $f12, 0x18c($s0)
/* 70DE10 8023A100 3C014204 */ lui $at, 0x4204
/* 70DE14 8023A104 44811000 */ mtc1 $at, $f2
/* 70DE18 8023A108 00000000 */ nop
/* 70DE1C 8023A10C 46026300 */ add.s $f12, $f12, $f2
/* 70DE20 8023A110 4600020D */ trunc.w.s $f8, $f0
/* 70DE24 8023A114 44024000 */ mfc1 $v0, $f8
/* 70DE28 8023A118 00000000 */ nop
/* 70DE2C 8023A11C A6020070 */ sh $v0, 0x70($s0)
/* 70DE30 8023A120 0C00A6C9 */ jal clamp_angle
/* 70DE34 8023A124 E60C018C */ swc1 $f12, 0x18c($s0)
/* 70DE38 8023A128 C604000C */ lwc1 $f4, 0xc($s0)
/* 70DE3C 8023A12C 3C014370 */ lui $at, 0x4370
/* 70DE40 8023A130 44811000 */ mtc1 $at, $f2
/* 70DE44 8023A134 00000000 */ nop
/* 70DE48 8023A138 4604103C */ c.lt.s $f2, $f4
/* 70DE4C 8023A13C 00000000 */ nop
/* 70DE50 8023A140 45000008 */ bc1f .L8023A164
/* 70DE54 8023A144 E600018C */ swc1 $f0, 0x18c($s0)
/* 70DE58 8023A148 3C048024 */ lui $a0, %hi(D_8023D330)
/* 70DE5C 8023A14C 2484D330 */ addiu $a0, $a0, %lo(D_8023D330)
/* 70DE60 8023A150 8C830000 */ lw $v1, ($a0)
/* 70DE64 8023A154 24020002 */ addiu $v0, $zero, 2
/* 70DE68 8023A158 2463FFFF */ addiu $v1, $v1, -1
/* 70DE6C 8023A15C 0808E860 */ j .L8023A180
/* 70DE70 8023A160 AC830000 */ sw $v1, ($a0)
.L8023A164:
/* 70DE74 8023A164 C6400000 */ lwc1 $f0, ($s2)
/* 70DE78 8023A168 E6000144 */ swc1 $f0, 0x144($s0)
/* 70DE7C 8023A16C C6400004 */ lwc1 $f0, 4($s2)
/* 70DE80 8023A170 E6000148 */ swc1 $f0, 0x148($s0)
/* 70DE84 8023A174 C6400008 */ lwc1 $f0, 8($s2)
/* 70DE88 8023A178 0000102D */ daddu $v0, $zero, $zero
/* 70DE8C 8023A17C E600014C */ swc1 $f0, 0x14c($s0)
.L8023A180:
/* 70DE90 8023A180 8FBF001C */ lw $ra, 0x1c($sp)
/* 70DE94 8023A184 8FB20018 */ lw $s2, 0x18($sp)
/* 70DE98 8023A188 8FB10014 */ lw $s1, 0x14($sp)
/* 70DE9C 8023A18C 8FB00010 */ lw $s0, 0x10($sp)
/* 70DEA0 8023A190 D7B40020 */ ldc1 $f20, 0x20($sp)
/* 70DEA4 8023A194 03E00008 */ jr $ra
/* 70DEA8 8023A198 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -0,0 +1,9 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_8023A19C_70DEAC
/* 70DEAC 8023A19C 3C028024 */ lui $v0, %hi(D_8023D330)
/* 70DEB0 8023A1A0 8C42D330 */ lw $v0, %lo(D_8023D330)($v0)
/* 70DEB4 8023A1A4 2C420001 */ sltiu $v0, $v0, 1
/* 70DEB8 8023A1A8 03E00008 */ jr $ra
/* 70DEBC 8023A1AC 00021040 */ sll $v0, $v0, 1

View File

@ -0,0 +1,8 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_8023A1B0_70DEC0
/* 70DEC0 8023A1B0 3C028024 */ lui $v0, %hi(D_8023D334)
/* 70DEC4 8023A1B4 8C42D334 */ lw $v0, %lo(D_8023D334)($v0)
/* 70DEC8 8023A1B8 AC820084 */ sw $v0, 0x84($a0)
/* 70DECC 8023A1BC 03E00008 */ jr $ra

View File

@ -0,0 +1,842 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238000_6FFD80
/* 6FFD80 80238000 27BDFF80 */ addiu $sp, $sp, -0x80
/* 6FFD84 80238004 AFB7005C */ sw $s7, 0x5c($sp)
/* 6FFD88 80238008 0080B82D */ daddu $s7, $a0, $zero
/* 6FFD8C 8023800C AFB60058 */ sw $s6, 0x58($sp)
/* 6FFD90 80238010 3C16800E */ lui $s6, %hi(gBattleStatus)
/* 6FFD94 80238014 26D6C070 */ addiu $s6, $s6, %lo(gBattleStatus)
/* 6FFD98 80238018 AFBF0060 */ sw $ra, 0x60($sp)
/* 6FFD9C 8023801C AFB50054 */ sw $s5, 0x54($sp)
/* 6FFDA0 80238020 AFB40050 */ sw $s4, 0x50($sp)
/* 6FFDA4 80238024 AFB3004C */ sw $s3, 0x4c($sp)
/* 6FFDA8 80238028 AFB20048 */ sw $s2, 0x48($sp)
/* 6FFDAC 8023802C AFB10044 */ sw $s1, 0x44($sp)
/* 6FFDB0 80238030 AFB00040 */ sw $s0, 0x40($sp)
/* 6FFDB4 80238034 F7B80078 */ sdc1 $f24, 0x78($sp)
/* 6FFDB8 80238038 F7B60070 */ sdc1 $f22, 0x70($sp)
/* 6FFDBC 8023803C F7B40068 */ sdc1 $f20, 0x68($sp)
/* 6FFDC0 80238040 8ED500DC */ lw $s5, 0xdc($s6)
/* 6FFDC4 80238044 3C04802A */ lui $a0, %hi(D_8029FBE0)
/* 6FFDC8 80238048 2484FBE0 */ addiu $a0, $a0, %lo(D_8029FBE0)
/* 6FFDCC 8023804C 10A00002 */ beqz $a1, .L80238058
/* 6FFDD0 80238050 26B4000C */ addiu $s4, $s5, 0xc
/* 6FFDD4 80238054 AEE00070 */ sw $zero, 0x70($s7)
.L80238058:
/* 6FFDD8 80238058 8EE30070 */ lw $v1, 0x70($s7)
/* 6FFDDC 8023805C 24020001 */ addiu $v0, $zero, 1
/* 6FFDE0 80238060 1062019B */ beq $v1, $v0, .L802386D0
/* 6FFDE4 80238064 28620002 */ slti $v0, $v1, 2
/* 6FFDE8 80238068 10400005 */ beqz $v0, .L80238080
/* 6FFDEC 8023806C 24020002 */ addiu $v0, $zero, 2
/* 6FFDF0 80238070 10600009 */ beqz $v1, .L80238098
/* 6FFDF4 80238074 28620003 */ slti $v0, $v1, 3
/* 6FFDF8 80238078 0808E26D */ j .L802389B4
/* 6FFDFC 8023807C 00000000 */ nop
.L80238080:
/* 6FFE00 80238080 106201B5 */ beq $v1, $v0, .L80238758
/* 6FFE04 80238084 24020003 */ addiu $v0, $zero, 3
/* 6FFE08 80238088 106201F2 */ beq $v1, $v0, .L80238854
/* 6FFE0C 8023808C 00000000 */ nop
/* 6FFE10 80238090 0808E26B */ j .L802389AC
/* 6FFE14 80238094 00000000 */ nop
.L80238098:
/* 6FFE18 80238098 3C048029 */ lui $a0, %hi(D_80293014)
/* 6FFE1C 8023809C 24843014 */ addiu $a0, $a0, %lo(D_80293014)
/* 6FFE20 802380A0 0C050529 */ jal create_icon
/* 6FFE24 802380A4 00000000 */ nop
/* 6FFE28 802380A8 0040982D */ daddu $s3, $v0, $zero
/* 6FFE2C 802380AC 0260202D */ daddu $a0, $s3, $zero
/* 6FFE30 802380B0 2405000A */ addiu $a1, $zero, 0xa
/* 6FFE34 802380B4 3C108024 */ lui $s0, %hi(D_8023BD78)
/* 6FFE38 802380B8 2610BD78 */ addiu $s0, $s0, %lo(D_8023BD78)
/* 6FFE3C 802380BC 0C051277 */ jal func_801449DC
/* 6FFE40 802380C0 AE130000 */ sw $s3, ($s0)
/* 6FFE44 802380C4 0260202D */ daddu $a0, $s3, $zero
/* 6FFE48 802380C8 2405FF9C */ addiu $a1, $zero, -0x64
/* 6FFE4C 802380CC 0C051261 */ jal set_icon_render_pos
/* 6FFE50 802380D0 00A0302D */ daddu $a2, $a1, $zero
/* 6FFE54 802380D4 3C048029 */ lui $a0, %hi(D_80292F7C)
/* 6FFE58 802380D8 24842F7C */ addiu $a0, $a0, %lo(D_80292F7C)
/* 6FFE5C 802380DC 0C050529 */ jal create_icon
/* 6FFE60 802380E0 00000000 */ nop
/* 6FFE64 802380E4 0040982D */ daddu $s3, $v0, $zero
/* 6FFE68 802380E8 0260202D */ daddu $a0, $s3, $zero
/* 6FFE6C 802380EC 2405000A */ addiu $a1, $zero, 0xa
/* 6FFE70 802380F0 0C051277 */ jal func_801449DC
/* 6FFE74 802380F4 AE130004 */ sw $s3, 4($s0)
/* 6FFE78 802380F8 0260202D */ daddu $a0, $s3, $zero
/* 6FFE7C 802380FC 2405FF9C */ addiu $a1, $zero, -0x64
/* 6FFE80 80238100 0C051261 */ jal set_icon_render_pos
/* 6FFE84 80238104 00A0302D */ daddu $a2, $a1, $zero
/* 6FFE88 80238108 3C048029 */ lui $a0, %hi(D_80292EE4)
/* 6FFE8C 8023810C 24842EE4 */ addiu $a0, $a0, %lo(D_80292EE4)
/* 6FFE90 80238110 0C050529 */ jal create_icon
/* 6FFE94 80238114 00000000 */ nop
/* 6FFE98 80238118 0040982D */ daddu $s3, $v0, $zero
/* 6FFE9C 8023811C 0260202D */ daddu $a0, $s3, $zero
/* 6FFEA0 80238120 2405000A */ addiu $a1, $zero, 0xa
/* 6FFEA4 80238124 0C051277 */ jal func_801449DC
/* 6FFEA8 80238128 AE130008 */ sw $s3, 8($s0)
/* 6FFEAC 8023812C 0260202D */ daddu $a0, $s3, $zero
/* 6FFEB0 80238130 2405FF9C */ addiu $a1, $zero, -0x64
/* 6FFEB4 80238134 0C051261 */ jal set_icon_render_pos
/* 6FFEB8 80238138 00A0302D */ daddu $a2, $a1, $zero
/* 6FFEBC 8023813C 3C048029 */ lui $a0, %hi(D_80292E4C)
/* 6FFEC0 80238140 24842E4C */ addiu $a0, $a0, %lo(D_80292E4C)
/* 6FFEC4 80238144 0C050529 */ jal create_icon
/* 6FFEC8 80238148 00000000 */ nop
/* 6FFECC 8023814C 0040982D */ daddu $s3, $v0, $zero
/* 6FFED0 80238150 0260202D */ daddu $a0, $s3, $zero
/* 6FFED4 80238154 2405000A */ addiu $a1, $zero, 0xa
/* 6FFED8 80238158 0C051277 */ jal func_801449DC
/* 6FFEDC 8023815C AE13000C */ sw $s3, 0xc($s0)
/* 6FFEE0 80238160 0260202D */ daddu $a0, $s3, $zero
/* 6FFEE4 80238164 2405FF9C */ addiu $a1, $zero, -0x64
/* 6FFEE8 80238168 0C051261 */ jal set_icon_render_pos
/* 6FFEEC 8023816C 00A0302D */ daddu $a2, $a1, $zero
/* 6FFEF0 80238170 3C048029 */ lui $a0, %hi(D_80292DB4)
/* 6FFEF4 80238174 24842DB4 */ addiu $a0, $a0, %lo(D_80292DB4)
/* 6FFEF8 80238178 0C050529 */ jal create_icon
/* 6FFEFC 8023817C 00000000 */ nop
/* 6FFF00 80238180 0040982D */ daddu $s3, $v0, $zero
/* 6FFF04 80238184 0260202D */ daddu $a0, $s3, $zero
/* 6FFF08 80238188 2405000A */ addiu $a1, $zero, 0xa
/* 6FFF0C 8023818C 0C051277 */ jal func_801449DC
/* 6FFF10 80238190 AE130010 */ sw $s3, 0x10($s0)
/* 6FFF14 80238194 0260202D */ daddu $a0, $s3, $zero
/* 6FFF18 80238198 2405FF9C */ addiu $a1, $zero, -0x64
/* 6FFF1C 8023819C 0C051261 */ jal set_icon_render_pos
/* 6FFF20 802381A0 00A0302D */ daddu $a2, $a1, $zero
/* 6FFF24 802381A4 3C048029 */ lui $a0, %hi(D_80292D1C)
/* 6FFF28 802381A8 24842D1C */ addiu $a0, $a0, %lo(D_80292D1C)
/* 6FFF2C 802381AC 0C050529 */ jal create_icon
/* 6FFF30 802381B0 00000000 */ nop
/* 6FFF34 802381B4 0040982D */ daddu $s3, $v0, $zero
/* 6FFF38 802381B8 0260202D */ daddu $a0, $s3, $zero
/* 6FFF3C 802381BC 2405000A */ addiu $a1, $zero, 0xa
/* 6FFF40 802381C0 0C051277 */ jal func_801449DC
/* 6FFF44 802381C4 AE130014 */ sw $s3, 0x14($s0)
/* 6FFF48 802381C8 0260202D */ daddu $a0, $s3, $zero
/* 6FFF4C 802381CC 2405FF9C */ addiu $a1, $zero, -0x64
/* 6FFF50 802381D0 0C051261 */ jal set_icon_render_pos
/* 6FFF54 802381D4 00A0302D */ daddu $a2, $a1, $zero
/* 6FFF58 802381D8 3C048029 */ lui $a0, %hi(D_8029369C)
/* 6FFF5C 802381DC 2484369C */ addiu $a0, $a0, %lo(D_8029369C)
/* 6FFF60 802381E0 0C050529 */ jal create_icon
/* 6FFF64 802381E4 00000000 */ nop
/* 6FFF68 802381E8 0040982D */ daddu $s3, $v0, $zero
/* 6FFF6C 802381EC 0260202D */ daddu $a0, $s3, $zero
/* 6FFF70 802381F0 2405000A */ addiu $a1, $zero, 0xa
/* 6FFF74 802381F4 0C051277 */ jal func_801449DC
/* 6FFF78 802381F8 AE130018 */ sw $s3, 0x18($s0)
/* 6FFF7C 802381FC 0260202D */ daddu $a0, $s3, $zero
/* 6FFF80 80238200 2405FF9C */ addiu $a1, $zero, -0x64
/* 6FFF84 80238204 0C051261 */ jal set_icon_render_pos
/* 6FFF88 80238208 00A0302D */ daddu $a2, $a1, $zero
/* 6FFF8C 8023820C 3C048029 */ lui $a0, %hi(D_802934D4)
/* 6FFF90 80238210 248434D4 */ addiu $a0, $a0, %lo(D_802934D4)
/* 6FFF94 80238214 0C050529 */ jal create_icon
/* 6FFF98 80238218 00000000 */ nop
/* 6FFF9C 8023821C 0040982D */ daddu $s3, $v0, $zero
/* 6FFFA0 80238220 0260202D */ daddu $a0, $s3, $zero
/* 6FFFA4 80238224 24050009 */ addiu $a1, $zero, 9
/* 6FFFA8 80238228 3C108024 */ lui $s0, %hi(D_8023BD98)
/* 6FFFAC 8023822C 2610BD98 */ addiu $s0, $s0, %lo(D_8023BD98)
/* 6FFFB0 80238230 0C051277 */ jal func_801449DC
/* 6FFFB4 80238234 AE130000 */ sw $s3, ($s0)
/* 6FFFB8 80238238 0260202D */ daddu $a0, $s3, $zero
/* 6FFFBC 8023823C 2405FF9C */ addiu $a1, $zero, -0x64
/* 6FFFC0 80238240 0C051261 */ jal set_icon_render_pos
/* 6FFFC4 80238244 00A0302D */ daddu $a2, $a1, $zero
/* 6FFFC8 80238248 3C048029 */ lui $a0, %hi(D_8029343C)
/* 6FFFCC 8023824C 2484343C */ addiu $a0, $a0, %lo(D_8029343C)
/* 6FFFD0 80238250 0C050529 */ jal create_icon
/* 6FFFD4 80238254 00000000 */ nop
/* 6FFFD8 80238258 0040982D */ daddu $s3, $v0, $zero
/* 6FFFDC 8023825C 0260202D */ daddu $a0, $s3, $zero
/* 6FFFE0 80238260 24050009 */ addiu $a1, $zero, 9
/* 6FFFE4 80238264 0C051277 */ jal func_801449DC
/* 6FFFE8 80238268 AE130004 */ sw $s3, 4($s0)
/* 6FFFEC 8023826C 0260202D */ daddu $a0, $s3, $zero
/* 6FFFF0 80238270 2405FF9C */ addiu $a1, $zero, -0x64
/* 6FFFF4 80238274 0C051261 */ jal set_icon_render_pos
/* 6FFFF8 80238278 00A0302D */ daddu $a2, $a1, $zero
/* 6FFFFC 8023827C 3C048029 */ lui $a0, %hi(D_802933A4)
/* 700000 80238280 248433A4 */ addiu $a0, $a0, %lo(D_802933A4)
/* 700004 80238284 0C050529 */ jal create_icon
/* 700008 80238288 00000000 */ nop
/* 70000C 8023828C 0040982D */ daddu $s3, $v0, $zero
/* 700010 80238290 0260202D */ daddu $a0, $s3, $zero
/* 700014 80238294 24050009 */ addiu $a1, $zero, 9
/* 700018 80238298 0C051277 */ jal func_801449DC
/* 70001C 8023829C AE130008 */ sw $s3, 8($s0)
/* 700020 802382A0 0260202D */ daddu $a0, $s3, $zero
/* 700024 802382A4 2405FF9C */ addiu $a1, $zero, -0x64
/* 700028 802382A8 0C051261 */ jal set_icon_render_pos
/* 70002C 802382AC 00A0302D */ daddu $a2, $a1, $zero
/* 700030 802382B0 3C048029 */ lui $a0, %hi(D_8029330C)
/* 700034 802382B4 2484330C */ addiu $a0, $a0, %lo(D_8029330C)
/* 700038 802382B8 0C050529 */ jal create_icon
/* 70003C 802382BC 00000000 */ nop
/* 700040 802382C0 0040982D */ daddu $s3, $v0, $zero
/* 700044 802382C4 0260202D */ daddu $a0, $s3, $zero
/* 700048 802382C8 24050009 */ addiu $a1, $zero, 9
/* 70004C 802382CC 0C051277 */ jal func_801449DC
/* 700050 802382D0 AE13000C */ sw $s3, 0xc($s0)
/* 700054 802382D4 0260202D */ daddu $a0, $s3, $zero
/* 700058 802382D8 2405FF9C */ addiu $a1, $zero, -0x64
/* 70005C 802382DC 0C051261 */ jal set_icon_render_pos
/* 700060 802382E0 00A0302D */ daddu $a2, $a1, $zero
/* 700064 802382E4 3C048029 */ lui $a0, %hi(D_80293274)
/* 700068 802382E8 24843274 */ addiu $a0, $a0, %lo(D_80293274)
/* 70006C 802382EC 0C050529 */ jal create_icon
/* 700070 802382F0 00000000 */ nop
/* 700074 802382F4 0040982D */ daddu $s3, $v0, $zero
/* 700078 802382F8 0260202D */ daddu $a0, $s3, $zero
/* 70007C 802382FC 24050009 */ addiu $a1, $zero, 9
/* 700080 80238300 0C051277 */ jal func_801449DC
/* 700084 80238304 AE130010 */ sw $s3, 0x10($s0)
/* 700088 80238308 0260202D */ daddu $a0, $s3, $zero
/* 70008C 8023830C 2405FF9C */ addiu $a1, $zero, -0x64
/* 700090 80238310 0C051261 */ jal set_icon_render_pos
/* 700094 80238314 00A0302D */ daddu $a2, $a1, $zero
/* 700098 80238318 3C048029 */ lui $a0, %hi(D_802931DC)
/* 70009C 8023831C 248431DC */ addiu $a0, $a0, %lo(D_802931DC)
/* 7000A0 80238320 0C050529 */ jal create_icon
/* 7000A4 80238324 00000000 */ nop
/* 7000A8 80238328 0040982D */ daddu $s3, $v0, $zero
/* 7000AC 8023832C 0260202D */ daddu $a0, $s3, $zero
/* 7000B0 80238330 24050009 */ addiu $a1, $zero, 9
/* 7000B4 80238334 0C051277 */ jal func_801449DC
/* 7000B8 80238338 AE130014 */ sw $s3, 0x14($s0)
/* 7000BC 8023833C 0260202D */ daddu $a0, $s3, $zero
/* 7000C0 80238340 2405FF9C */ addiu $a1, $zero, -0x64
/* 7000C4 80238344 0C051261 */ jal set_icon_render_pos
/* 7000C8 80238348 00A0302D */ daddu $a2, $a1, $zero
/* 7000CC 8023834C 3C048029 */ lui $a0, %hi(D_802936D4)
/* 7000D0 80238350 248436D4 */ addiu $a0, $a0, %lo(D_802936D4)
/* 7000D4 80238354 0C050529 */ jal create_icon
/* 7000D8 80238358 00000000 */ nop
/* 7000DC 8023835C 0040982D */ daddu $s3, $v0, $zero
/* 7000E0 80238360 0260202D */ daddu $a0, $s3, $zero
/* 7000E4 80238364 2405000A */ addiu $a1, $zero, 0xa
/* 7000E8 80238368 3C128024 */ lui $s2, %hi(D_8023BDB4)
/* 7000EC 8023836C 2652BDB4 */ addiu $s2, $s2, %lo(D_8023BDB4)
/* 7000F0 80238370 0C051277 */ jal func_801449DC
/* 7000F4 80238374 AE530000 */ sw $s3, ($s2)
/* 7000F8 80238378 8E440000 */ lw $a0, ($s2)
/* 7000FC 8023837C 0C0513CA */ jal func_80144F28
/* 700100 80238380 00000000 */ nop
/* 700104 80238384 0260202D */ daddu $a0, $s3, $zero
/* 700108 80238388 2405FF9C */ addiu $a1, $zero, -0x64
/* 70010C 8023838C 0C051261 */ jal set_icon_render_pos
/* 700110 80238390 00A0302D */ daddu $a2, $a1, $zero
/* 700114 80238394 3C048011 */ lui $a0, %hi(D_80108E48)
/* 700118 80238398 24848E48 */ addiu $a0, $a0, %lo(D_80108E48)
/* 70011C 8023839C 3C118024 */ lui $s1, %hi(D_8023BDC4)
/* 700120 802383A0 2631BDC4 */ addiu $s1, $s1, %lo(D_8023BDC4)
/* 700124 802383A4 2402FFD0 */ addiu $v0, $zero, -0x30
/* 700128 802383A8 3C108024 */ lui $s0, %hi(D_8023BDC8)
/* 70012C 802383AC 2610BDC8 */ addiu $s0, $s0, %lo(D_8023BDC8)
/* 700130 802383B0 AE220000 */ sw $v0, ($s1)
/* 700134 802383B4 24020050 */ addiu $v0, $zero, 0x50
/* 700138 802383B8 0C050529 */ jal create_icon
/* 70013C 802383BC AE020000 */ sw $v0, ($s0)
/* 700140 802383C0 0040982D */ daddu $s3, $v0, $zero
/* 700144 802383C4 8E250000 */ lw $a1, ($s1)
/* 700148 802383C8 8E060000 */ lw $a2, ($s0)
/* 70014C 802383CC 3C018024 */ lui $at, %hi(D_8023BDC0)
/* 700150 802383D0 AC33BDC0 */ sw $s3, %lo(D_8023BDC0)($at)
/* 700154 802383D4 0C051261 */ jal set_icon_render_pos
/* 700158 802383D8 0260202D */ daddu $a0, $s3, $zero
/* 70015C 802383DC 0260202D */ daddu $a0, $s3, $zero
/* 700160 802383E0 0C051277 */ jal func_801449DC
/* 700164 802383E4 0000282D */ daddu $a1, $zero, $zero
/* 700168 802383E8 86A50428 */ lh $a1, 0x428($s5)
/* 70016C 802383EC 82A60426 */ lb $a2, 0x426($s5)
/* 700170 802383F0 0C09A5D5 */ jal set_goal_pos_to_part
/* 700174 802383F4 0280202D */ daddu $a0, $s4, $zero
/* 700178 802383F8 86A40428 */ lh $a0, 0x428($s5)
/* 70017C 802383FC 0C09A75B */ jal get_actor
/* 700180 80238400 0000882D */ daddu $s1, $zero, $zero
/* 700184 80238404 0040802D */ daddu $s0, $v0, $zero
/* 700188 80238408 82A50426 */ lb $a1, 0x426($s5)
/* 70018C 8023840C 0C099117 */ jal get_actor_part
/* 700190 80238410 0200202D */ daddu $a0, $s0, $zero
/* 700194 80238414 80430075 */ lb $v1, 0x75($v0)
/* 700198 80238418 C6000188 */ lwc1 $f0, 0x188($s0)
/* 70019C 8023841C 44831000 */ mtc1 $v1, $f2
/* 7001A0 80238420 00000000 */ nop
/* 7001A4 80238424 468010A0 */ cvt.s.w $f2, $f2
/* 7001A8 80238428 46001082 */ mul.s $f2, $f2, $f0
/* 7001AC 8023842C 00000000 */ nop
/* 7001B0 80238430 C6A00018 */ lwc1 $f0, 0x18($s5)
/* 7001B4 80238434 46020000 */ add.s $f0, $f0, $f2
/* 7001B8 80238438 E6A00018 */ swc1 $f0, 0x18($s5)
/* 7001BC 8023843C 80430076 */ lb $v1, 0x76($v0)
/* 7001C0 80238440 C6020188 */ lwc1 $f2, 0x188($s0)
/* 7001C4 80238444 44830000 */ mtc1 $v1, $f0
/* 7001C8 80238448 00000000 */ nop
/* 7001CC 8023844C 46800020 */ cvt.s.w $f0, $f0
/* 7001D0 80238450 46020002 */ mul.s $f0, $f0, $f2
/* 7001D4 80238454 00000000 */ nop
/* 7001D8 80238458 C6A2001C */ lwc1 $f2, 0x1c($s5)
/* 7001DC 8023845C 46001080 */ add.s $f2, $f2, $f0
/* 7001E0 80238460 C6A00020 */ lwc1 $f0, 0x20($s5)
/* 7001E4 80238464 E6A2001C */ swc1 $f2, 0x1c($s5)
/* 7001E8 80238468 90430073 */ lbu $v1, 0x73($v0)
/* 7001EC 8023846C 90420072 */ lbu $v0, 0x72($v0)
/* 7001F0 80238470 3C014038 */ lui $at, 0x4038
/* 7001F4 80238474 44811800 */ mtc1 $at, $f3
/* 7001F8 80238478 44801000 */ mtc1 $zero, $f2
/* 7001FC 8023847C 00621821 */ addu $v1, $v1, $v0
/* 700200 80238480 00031843 */ sra $v1, $v1, 1
/* 700204 80238484 44830000 */ mtc1 $v1, $f0
/* 700208 80238488 00000000 */ nop
/* 70020C 8023848C 46800021 */ cvt.d.w $f0, $f0
/* 700210 80238490 46220003 */ div.d $f0, $f0, $f2
/* 700214 80238494 46200020 */ cvt.s.d $f0, $f0
/* 700218 80238498 E6A00030 */ swc1 $f0, 0x30($s5)
/* 70021C 8023849C C6020188 */ lwc1 $f2, 0x188($s0)
/* 700220 802384A0 46020002 */ mul.s $f0, $f0, $f2
/* 700224 802384A4 00000000 */ nop
/* 700228 802384A8 8E440000 */ lw $a0, ($s2)
/* 70022C 802384AC 44050000 */ mfc1 $a1, $f0
/* 700230 802384B0 3C013F80 */ lui $at, 0x3f80
/* 700234 802384B4 4481B000 */ mtc1 $at, $f22
/* 700238 802384B8 0C051308 */ jal func_80144C20
/* 70023C 802384BC 00000000 */ nop
/* 700240 802384C0 27B30028 */ addiu $s3, $sp, 0x28
/* 700244 802384C4 8EA60018 */ lw $a2, 0x18($s5)
/* 700248 802384C8 C6A00144 */ lwc1 $f0, 0x144($s5)
/* 70024C 802384CC 3C014100 */ lui $at, 0x4100
/* 700250 802384D0 44811000 */ mtc1 $at, $f2
/* 700254 802384D4 3C014180 */ lui $at, 0x4180
/* 700258 802384D8 44812000 */ mtc1 $at, $f4
/* 70025C 802384DC 46020000 */ add.s $f0, $f0, $f2
/* 700260 802384E0 C6A20148 */ lwc1 $f2, 0x148($s5)
/* 700264 802384E4 8EA7001C */ lw $a3, 0x1c($s5)
/* 700268 802384E8 46041080 */ add.s $f2, $f2, $f4
/* 70026C 802384EC E6A0000C */ swc1 $f0, 0xc($s5)
/* 700270 802384F0 46000306 */ mov.s $f12, $f0
/* 700274 802384F4 C6A0014C */ lwc1 $f0, 0x14c($s5)
/* 700278 802384F8 27B2002C */ addiu $s2, $sp, 0x2c
/* 70027C 802384FC E6A20010 */ swc1 $f2, 0x10($s5)
/* 700280 80238500 46001386 */ mov.s $f14, $f2
/* 700284 80238504 0C00A720 */ jal atan2
/* 700288 80238508 E6A00014 */ swc1 $f0, 0x14($s5)
/* 70028C 8023850C E6A00054 */ swc1 $f0, 0x54($s5)
/* 700290 80238510 46000106 */ mov.s $f4, $f0
/* 700294 80238514 3C0142E8 */ lui $at, 0x42e8
/* 700298 80238518 44811000 */ mtc1 $at, $f2
/* 70029C 8023851C 27B00030 */ addiu $s0, $sp, 0x30
/* 7002A0 80238520 E6A0005C */ swc1 $f0, 0x5c($s5)
/* 7002A4 80238524 E6A40024 */ swc1 $f4, 0x24($s5)
/* 7002A8 80238528 E6A20058 */ swc1 $f2, 0x58($s5)
.L8023852C:
/* 7002AC 8023852C C68C0018 */ lwc1 $f12, 0x18($s4)
/* 7002B0 80238530 46166301 */ sub.s $f12, $f12, $f22
/* 7002B4 80238534 0C00A6C9 */ jal clamp_angle
/* 7002B8 80238538 E68C0018 */ swc1 $f12, 0x18($s4)
/* 7002BC 8023853C 27A40020 */ addiu $a0, $sp, 0x20
/* 7002C0 80238540 C6940008 */ lwc1 $f20, 8($s4)
/* 7002C4 80238544 8E86004C */ lw $a2, 0x4c($s4)
/* 7002C8 80238548 44070000 */ mfc1 $a3, $f0
/* 7002CC 8023854C C6800000 */ lwc1 $f0, ($s4)
/* 7002D0 80238550 C6820004 */ lwc1 $f2, 4($s4)
/* 7002D4 80238554 27A50024 */ addiu $a1, $sp, 0x24
/* 7002D8 80238558 E7A00020 */ swc1 $f0, 0x20($sp)
/* 7002DC 8023855C 0C00A7E7 */ jal add_vec2D_polar
/* 7002E0 80238560 E7A20024 */ swc1 $f2, 0x24($sp)
/* 7002E4 80238564 3C048007 */ lui $a0, %hi(gCurrentCameraID)
/* 7002E8 80238568 8C847410 */ lw $a0, %lo(gCurrentCameraID)($a0)
/* 7002EC 8023856C 4407A000 */ mfc1 $a3, $f20
/* 7002F0 80238570 C7A00020 */ lwc1 $f0, 0x20($sp)
/* 7002F4 80238574 C7A20024 */ lwc1 $f2, 0x24($sp)
/* 7002F8 80238578 44050000 */ mfc1 $a1, $f0
/* 7002FC 8023857C 44061000 */ mfc1 $a2, $f2
/* 700300 80238580 AFB30010 */ sw $s3, 0x10($sp)
/* 700304 80238584 AFB20014 */ sw $s2, 0x14($sp)
/* 700308 80238588 0C00B94E */ jal get_screen_coords
/* 70030C 8023858C AFB00018 */ sw $s0, 0x18($sp)
/* 700310 80238590 8FA2002C */ lw $v0, 0x2c($sp)
/* 700314 80238594 284200B5 */ slti $v0, $v0, 0xb5
/* 700318 80238598 10400004 */ beqz $v0, .L802385AC
/* 70031C 8023859C 26310001 */ addiu $s1, $s1, 1
/* 700320 802385A0 2A22001E */ slti $v0, $s1, 0x1e
/* 700324 802385A4 1440FFE1 */ bnez $v0, .L8023852C
/* 700328 802385A8 00000000 */ nop
.L802385AC:
/* 70032C 802385AC 0000882D */ daddu $s1, $zero, $zero
/* 700330 802385B0 27B30028 */ addiu $s3, $sp, 0x28
/* 700334 802385B4 27B2002C */ addiu $s2, $sp, 0x2c
/* 700338 802385B8 3C013F80 */ lui $at, 0x3f80
/* 70033C 802385BC 4481B000 */ mtc1 $at, $f22
/* 700340 802385C0 C6800048 */ lwc1 $f0, 0x48($s4)
/* 700344 802385C4 27B00030 */ addiu $s0, $sp, 0x30
/* 700348 802385C8 E680001C */ swc1 $f0, 0x1c($s4)
.L802385CC:
/* 70034C 802385CC C68C001C */ lwc1 $f12, 0x1c($s4)
/* 700350 802385D0 46166300 */ add.s $f12, $f12, $f22
/* 700354 802385D4 0C00A6C9 */ jal clamp_angle
/* 700358 802385D8 E68C001C */ swc1 $f12, 0x1c($s4)
/* 70035C 802385DC 27A40020 */ addiu $a0, $sp, 0x20
/* 700360 802385E0 C6940008 */ lwc1 $f20, 8($s4)
/* 700364 802385E4 8E86004C */ lw $a2, 0x4c($s4)
/* 700368 802385E8 44070000 */ mfc1 $a3, $f0
/* 70036C 802385EC C6800000 */ lwc1 $f0, ($s4)
/* 700370 802385F0 C6820004 */ lwc1 $f2, 4($s4)
/* 700374 802385F4 27A50024 */ addiu $a1, $sp, 0x24
/* 700378 802385F8 E7A00020 */ swc1 $f0, 0x20($sp)
/* 70037C 802385FC 0C00A7E7 */ jal add_vec2D_polar
/* 700380 80238600 E7A20024 */ swc1 $f2, 0x24($sp)
/* 700384 80238604 3C048007 */ lui $a0, %hi(gCurrentCameraID)
/* 700388 80238608 8C847410 */ lw $a0, %lo(gCurrentCameraID)($a0)
/* 70038C 8023860C 4407A000 */ mfc1 $a3, $f20
/* 700390 80238610 C7A00020 */ lwc1 $f0, 0x20($sp)
/* 700394 80238614 C7A20024 */ lwc1 $f2, 0x24($sp)
/* 700398 80238618 44050000 */ mfc1 $a1, $f0
/* 70039C 8023861C 44061000 */ mfc1 $a2, $f2
/* 7003A0 80238620 AFB30010 */ sw $s3, 0x10($sp)
/* 7003A4 80238624 AFB20014 */ sw $s2, 0x14($sp)
/* 7003A8 80238628 0C00B94E */ jal get_screen_coords
/* 7003AC 8023862C AFB00018 */ sw $s0, 0x18($sp)
/* 7003B0 80238630 8FA2002C */ lw $v0, 0x2c($sp)
/* 7003B4 80238634 2842001E */ slti $v0, $v0, 0x1e
/* 7003B8 80238638 14400004 */ bnez $v0, .L8023864C
/* 7003BC 8023863C 26310001 */ addiu $s1, $s1, 1
/* 7003C0 80238640 2A22001E */ slti $v0, $s1, 0x1e
/* 7003C4 80238644 1440FFE1 */ bnez $v0, .L802385CC
/* 7003C8 80238648 00000000 */ nop
.L8023864C:
/* 7003CC 8023864C C682001C */ lwc1 $f2, 0x1c($s4)
/* 7003D0 80238650 C6800018 */ lwc1 $f0, 0x18($s4)
/* 7003D4 80238654 46001081 */ sub.s $f2, $f2, $f0
/* 7003D8 80238658 3C014000 */ lui $at, 0x4000
/* 7003DC 8023865C 44810000 */ mtc1 $at, $f0
/* 7003E0 80238660 00000000 */ nop
/* 7003E4 80238664 46001081 */ sub.s $f2, $f2, $f0
/* 7003E8 80238668 24020078 */ addiu $v0, $zero, 0x78
/* 7003EC 8023866C 4600120D */ trunc.w.s $f8, $f2
/* 7003F0 80238670 44044000 */ mfc1 $a0, $f8
/* 7003F4 80238674 0C00A67F */ jal rand_int
/* 7003F8 80238678 A6820064 */ sh $v0, 0x64($s4)
/* 7003FC 8023867C 44822000 */ mtc1 $v0, $f4
/* 700400 80238680 00000000 */ nop
/* 700404 80238684 46802120 */ cvt.s.w $f4, $f4
/* 700408 80238688 C6800018 */ lwc1 $f0, 0x18($s4)
/* 70040C 8023868C 3C014040 */ lui $at, 0x4040
/* 700410 80238690 44811000 */ mtc1 $at, $f2
/* 700414 80238694 2402005A */ addiu $v0, $zero, 0x5a
/* 700418 80238698 3C018024 */ lui $at, %hi(D_8023BDB8)
/* 70041C 8023869C AC20BDB8 */ sw $zero, %lo(D_8023BDB8)($at)
/* 700420 802386A0 46040000 */ add.s $f0, $f0, $f4
/* 700424 802386A4 3C018024 */ lui $at, %hi(D_8023BDBC)
/* 700428 802386A8 AC22BDBC */ sw $v0, %lo(D_8023BDBC)($at)
/* 70042C 802386AC E6820044 */ swc1 $f2, 0x44($s4)
/* 700430 802386B0 E6800048 */ swc1 $f0, 0x48($s4)
/* 700434 802386B4 0C09A216 */ jal func_80268858
/* 700438 802386B8 A2C00086 */ sb $zero, 0x86($s6)
/* 70043C 802386BC 0C09A446 */ jal func_80269118
/* 700440 802386C0 00000000 */ nop
/* 700444 802386C4 24020001 */ addiu $v0, $zero, 1
/* 700448 802386C8 0808E26B */ j .L802389AC
/* 70044C 802386CC AEE20070 */ sw $v0, 0x70($s7)
.L802386D0:
/* 700450 802386D0 8082005E */ lb $v0, 0x5e($a0)
/* 700454 802386D4 14400005 */ bnez $v0, .L802386EC
/* 700458 802386D8 3C030004 */ lui $v1, 4
/* 70045C 802386DC 8EC20210 */ lw $v0, 0x210($s6)
/* 700460 802386E0 00431024 */ and $v0, $v0, $v1
/* 700464 802386E4 10400003 */ beqz $v0, .L802386F4
/* 700468 802386E8 00000000 */ nop
.L802386EC:
/* 70046C 802386EC 3C018024 */ lui $at, %hi(D_8023BDBC)
/* 700470 802386F0 AC20BDBC */ sw $zero, %lo(D_8023BDBC)($at)
.L802386F4:
/* 700474 802386F4 3C038024 */ lui $v1, %hi(D_8023BDBC)
/* 700478 802386F8 2463BDBC */ addiu $v1, $v1, %lo(D_8023BDBC)
/* 70047C 802386FC 8C620000 */ lw $v0, ($v1)
/* 700480 80238700 1040000D */ beqz $v0, .L80238738
/* 700484 80238704 2442FFFF */ addiu $v0, $v0, -1
/* 700488 80238708 144000A8 */ bnez $v0, .L802389AC
/* 70048C 8023870C AC620000 */ sw $v0, ($v1)
/* 700490 80238710 0C00A67F */ jal rand_int
/* 700494 80238714 24040064 */ addiu $a0, $zero, 0x64
/* 700498 80238718 28420032 */ slti $v0, $v0, 0x32
/* 70049C 8023871C 10400004 */ beqz $v0, .L80238730
/* 7004A0 80238720 00000000 */ nop
/* 7004A4 80238724 C6800018 */ lwc1 $f0, 0x18($s4)
/* 7004A8 80238728 0808E1CE */ j .L80238738
/* 7004AC 8023872C E6800048 */ swc1 $f0, 0x48($s4)
.L80238730:
/* 7004B0 80238730 C680001C */ lwc1 $f0, 0x1c($s4)
/* 7004B4 80238734 E6800048 */ swc1 $f0, 0x48($s4)
.L80238738:
/* 7004B8 80238738 0C05272D */ jal play_sound
/* 7004BC 8023873C 24040311 */ addiu $a0, $zero, 0x311
/* 7004C0 80238740 2402003C */ addiu $v0, $zero, 0x3c
/* 7004C4 80238744 3C018024 */ lui $at, %hi(D_8023BDBC)
/* 7004C8 80238748 AC22BDBC */ sw $v0, %lo(D_8023BDBC)($at)
/* 7004CC 8023874C 24020002 */ addiu $v0, $zero, 2
/* 7004D0 80238750 0808E26B */ j .L802389AC
/* 7004D4 80238754 AEE20070 */ sw $v0, 0x70($s7)
.L80238758:
/* 7004D8 80238758 8082005E */ lb $v0, 0x5e($a0)
/* 7004DC 8023875C 14400007 */ bnez $v0, .L8023877C
/* 7004E0 80238760 3C030004 */ lui $v1, 4
/* 7004E4 80238764 8EC20210 */ lw $v0, 0x210($s6)
/* 7004E8 80238768 00431024 */ and $v0, $v0, $v1
/* 7004EC 8023876C 1440001F */ bnez $v0, .L802387EC
/* 7004F0 80238770 24020003 */ addiu $v0, $zero, 3
/* 7004F4 80238774 0808E26B */ j .L802389AC
/* 7004F8 80238778 AEE20070 */ sw $v0, 0x70($s7)
.L8023877C:
/* 7004FC 8023877C 3C038024 */ lui $v1, %hi(D_8023BDBC)
/* 700500 80238780 2463BDBC */ addiu $v1, $v1, %lo(D_8023BDBC)
/* 700504 80238784 8C620000 */ lw $v0, ($v1)
/* 700508 80238788 14400017 */ bnez $v0, .L802387E8
/* 70050C 8023878C 2442FFFF */ addiu $v0, $v0, -1
/* 700510 80238790 86A40428 */ lh $a0, 0x428($s5)
/* 700514 80238794 0C09A75B */ jal get_actor
/* 700518 80238798 00000000 */ nop
/* 70051C 8023879C C6AC0054 */ lwc1 $f12, 0x54($s5)
/* 700520 802387A0 C6AE005C */ lwc1 $f14, 0x5c($s5)
/* 700524 802387A4 0C00A70A */ jal get_clamped_angle_diff
/* 700528 802387A8 0040802D */ daddu $s0, $v0, $zero
/* 70052C 802387AC 46000005 */ abs.s $f0, $f0
/* 700530 802387B0 C6A20030 */ lwc1 $f2, 0x30($s5)
/* 700534 802387B4 C6040188 */ lwc1 $f4, 0x188($s0)
/* 700538 802387B8 46020003 */ div.s $f0, $f0, $f2
/* 70053C 802387BC 46040082 */ mul.s $f2, $f0, $f4
/* 700540 802387C0 00000000 */ nop
/* 700544 802387C4 3C014040 */ lui $at, 0x4040
/* 700548 802387C8 44810000 */ mtc1 $at, $f0
/* 70054C 802387CC 00000000 */ nop
/* 700550 802387D0 4600103C */ c.lt.s $f2, $f0
/* 700554 802387D4 00000000 */ nop
/* 700558 802387D8 45000004 */ bc1f .L802387EC
/* 70055C 802387DC 24020003 */ addiu $v0, $zero, 3
/* 700560 802387E0 0808E26B */ j .L802389AC
/* 700564 802387E4 AEE20070 */ sw $v0, 0x70($s7)
.L802387E8:
/* 700568 802387E8 AC620000 */ sw $v0, ($v1)
.L802387EC:
/* 70056C 802387EC C6800048 */ lwc1 $f0, 0x48($s4)
/* 700570 802387F0 C6820044 */ lwc1 $f2, 0x44($s4)
/* 700574 802387F4 46020000 */ add.s $f0, $f0, $f2
/* 700578 802387F8 C6840018 */ lwc1 $f4, 0x18($s4)
/* 70057C 802387FC 4604003E */ c.le.s $f0, $f4
/* 700580 80238800 00000000 */ nop
/* 700584 80238804 45000006 */ bc1f .L80238820
/* 700588 80238808 E6800048 */ swc1 $f0, 0x48($s4)
/* 70058C 8023880C 44800000 */ mtc1 $zero, $f0
/* 700590 80238810 00000000 */ nop
/* 700594 80238814 46020001 */ sub.s $f0, $f0, $f2
/* 700598 80238818 E6840048 */ swc1 $f4, 0x48($s4)
/* 70059C 8023881C E6800044 */ swc1 $f0, 0x44($s4)
.L80238820:
/* 7005A0 80238820 C6800048 */ lwc1 $f0, 0x48($s4)
/* 7005A4 80238824 C684001C */ lwc1 $f4, 0x1c($s4)
/* 7005A8 80238828 4600203E */ c.le.s $f4, $f0
/* 7005AC 8023882C 00000000 */ nop
/* 7005B0 80238830 4500005E */ bc1f .L802389AC
/* 7005B4 80238834 00000000 */ nop
/* 7005B8 80238838 C6820044 */ lwc1 $f2, 0x44($s4)
/* 7005BC 8023883C 44800000 */ mtc1 $zero, $f0
/* 7005C0 80238840 00000000 */ nop
/* 7005C4 80238844 46020001 */ sub.s $f0, $f0, $f2
/* 7005C8 80238848 E6840048 */ swc1 $f4, 0x48($s4)
/* 7005CC 8023884C 0808E26B */ j .L802389AC
/* 7005D0 80238850 E6800044 */ swc1 $f0, 0x44($s4)
.L80238854:
/* 7005D4 80238854 86A40428 */ lh $a0, 0x428($s5)
/* 7005D8 80238858 0C09A75B */ jal get_actor
/* 7005DC 8023885C 00000000 */ nop
/* 7005E0 80238860 C6AC0054 */ lwc1 $f12, 0x54($s5)
/* 7005E4 80238864 C6AE005C */ lwc1 $f14, 0x5c($s5)
/* 7005E8 80238868 0C00A70A */ jal get_clamped_angle_diff
/* 7005EC 8023886C 0040802D */ daddu $s0, $v0, $zero
/* 7005F0 80238870 46000186 */ mov.s $f6, $f0
/* 7005F4 80238874 46003005 */ abs.s $f0, $f6
/* 7005F8 80238878 C6A20030 */ lwc1 $f2, 0x30($s5)
/* 7005FC 8023887C C6040188 */ lwc1 $f4, 0x188($s0)
/* 700600 80238880 46020003 */ div.s $f0, $f0, $f2
/* 700604 80238884 46040082 */ mul.s $f2, $f0, $f4
/* 700608 80238888 00000000 */ nop
/* 70060C 8023888C C6A00050 */ lwc1 $f0, 0x50($s5)
/* 700610 80238890 44802000 */ mtc1 $zero, $f4
/* 700614 80238894 00000000 */ nop
/* 700618 80238898 4600203E */ c.le.s $f4, $f0
/* 70061C 8023889C 00000000 */ nop
/* 700620 802388A0 45000007 */ bc1f .L802388C0
/* 700624 802388A4 00000000 */ nop
/* 700628 802388A8 4604303C */ c.lt.s $f6, $f4
/* 70062C 802388AC 00000000 */ nop
/* 700630 802388B0 4503000A */ bc1tl .L802388DC
/* 700634 802388B4 A2C00086 */ sb $zero, 0x86($s6)
/* 700638 802388B8 0808E234 */ j .L802388D0
/* 70063C 802388BC 2402FFFF */ addiu $v0, $zero, -1
.L802388C0:
/* 700640 802388C0 4604303C */ c.lt.s $f6, $f4
/* 700644 802388C4 00000000 */ nop
/* 700648 802388C8 45000003 */ bc1f .L802388D8
/* 70064C 802388CC 2402FFFF */ addiu $v0, $zero, -1
.L802388D0:
/* 700650 802388D0 0808E237 */ j .L802388DC
/* 700654 802388D4 A2C20086 */ sb $v0, 0x86($s6)
.L802388D8:
/* 700658 802388D8 A2C00086 */ sb $zero, 0x86($s6)
.L802388DC:
/* 70065C 802388DC 3C0140E0 */ lui $at, 0x40e0
/* 700660 802388E0 44810000 */ mtc1 $at, $f0
/* 700664 802388E4 00000000 */ nop
/* 700668 802388E8 4600103C */ c.lt.s $f2, $f0
/* 70066C 802388EC 00000000 */ nop
/* 700670 802388F0 45000007 */ bc1f .L80238910
/* 700674 802388F4 A2C00084 */ sb $zero, 0x84($s6)
/* 700678 802388F8 24020001 */ addiu $v0, $zero, 1
/* 70067C 802388FC A2C20084 */ sb $v0, 0x84($s6)
/* 700680 80238900 0C09A458 */ jal func_80269160
/* 700684 80238904 A2C20086 */ sb $v0, 0x86($s6)
/* 700688 80238908 0808E24C */ j .L80238930
/* 70068C 8023890C 0000882D */ daddu $s1, $zero, $zero
.L80238910:
/* 700690 80238910 C6820048 */ lwc1 $f2, 0x48($s4)
/* 700694 80238914 C6800050 */ lwc1 $f0, 0x50($s4)
/* 700698 80238918 4600103C */ c.lt.s $f2, $f0
/* 70069C 8023891C 00000000 */ nop
/* 7006A0 80238920 45000002 */ bc1f .L8023892C
/* 7006A4 80238924 2402FFFF */ addiu $v0, $zero, -1
/* 7006A8 80238928 A2C20084 */ sb $v0, 0x84($s6)
.L8023892C:
/* 7006AC 8023892C 0000882D */ daddu $s1, $zero, $zero
.L80238930:
/* 7006B0 80238930 3C108024 */ lui $s0, %hi(D_8023BD78)
/* 7006B4 80238934 2610BD78 */ addiu $s0, $s0, %lo(D_8023BD78)
.L80238938:
/* 7006B8 80238938 8E040000 */ lw $a0, ($s0)
/* 7006BC 8023893C 26100004 */ addiu $s0, $s0, 4
/* 7006C0 80238940 0C05123D */ jal free_icon
/* 7006C4 80238944 26310001 */ addiu $s1, $s1, 1
/* 7006C8 80238948 2A220007 */ slti $v0, $s1, 7
/* 7006CC 8023894C 1440FFFA */ bnez $v0, .L80238938
/* 7006D0 80238950 00000000 */ nop
/* 7006D4 80238954 0000882D */ daddu $s1, $zero, $zero
/* 7006D8 80238958 3C108024 */ lui $s0, %hi(D_8023BD98)
/* 7006DC 8023895C 2610BD98 */ addiu $s0, $s0, %lo(D_8023BD98)
.L80238960:
/* 7006E0 80238960 8E040000 */ lw $a0, ($s0)
/* 7006E4 80238964 26100004 */ addiu $s0, $s0, 4
/* 7006E8 80238968 0C05123D */ jal free_icon
/* 7006EC 8023896C 26310001 */ addiu $s1, $s1, 1
/* 7006F0 80238970 2A220006 */ slti $v0, $s1, 6
/* 7006F4 80238974 1440FFFA */ bnez $v0, .L80238960
/* 7006F8 80238978 00000000 */ nop
/* 7006FC 8023897C 3C048024 */ lui $a0, %hi(D_8023BDB4)
/* 700700 80238980 8C84BDB4 */ lw $a0, %lo(D_8023BDB4)($a0)
/* 700704 80238984 0C05123D */ jal free_icon
/* 700708 80238988 00000000 */ nop
/* 70070C 8023898C 3C048024 */ lui $a0, %hi(D_8023BDC0)
/* 700710 80238990 8C84BDC0 */ lw $a0, %lo(D_8023BDC0)($a0)
/* 700714 80238994 0C05123D */ jal free_icon
/* 700718 80238998 00000000 */ nop
/* 70071C 8023899C 0C093EB1 */ jal set_popup_duration
/* 700720 802389A0 0000202D */ daddu $a0, $zero, $zero
/* 700724 802389A4 0808E314 */ j .L80238C50
/* 700728 802389A8 24020002 */ addiu $v0, $zero, 2
.L802389AC:
/* 70072C 802389AC 8EE30070 */ lw $v1, 0x70($s7)
/* 700730 802389B0 28620003 */ slti $v0, $v1, 3
.L802389B4:
/* 700734 802389B4 50400030 */ beql $v0, $zero, .L80238A78
/* 700738 802389B8 27B50028 */ addiu $s5, $sp, 0x28
/* 70073C 802389BC 5860002E */ blezl $v1, .L80238A78
/* 700740 802389C0 27B50028 */ addiu $s5, $sp, 0x28
/* 700744 802389C4 86A40428 */ lh $a0, 0x428($s5)
/* 700748 802389C8 3C138024 */ lui $s3, %hi(D_8023BDC0)
/* 70074C 802389CC 8E73BDC0 */ lw $s3, %lo(D_8023BDC0)($s3)
/* 700750 802389D0 0C09A75B */ jal get_actor
/* 700754 802389D4 00000000 */ nop
/* 700758 802389D8 C68C0048 */ lwc1 $f12, 0x48($s4)
/* 70075C 802389DC C68E0050 */ lwc1 $f14, 0x50($s4)
/* 700760 802389E0 0C00A70A */ jal get_clamped_angle_diff
/* 700764 802389E4 0040802D */ daddu $s0, $v0, $zero
/* 700768 802389E8 46000005 */ abs.s $f0, $f0
/* 70076C 802389EC C6820024 */ lwc1 $f2, 0x24($s4)
/* 700770 802389F0 C6040188 */ lwc1 $f4, 0x188($s0)
/* 700774 802389F4 46020003 */ div.s $f0, $f0, $f2
/* 700778 802389F8 46040082 */ mul.s $f2, $f0, $f4
/* 70077C 802389FC 00000000 */ nop
/* 700780 80238A00 3C0140E0 */ lui $at, 0x40e0
/* 700784 80238A04 44810000 */ mtc1 $at, $f0
/* 700788 80238A08 00000000 */ nop
/* 70078C 80238A0C 4600103C */ c.lt.s $f2, $f0
/* 700790 80238A10 00000000 */ nop
/* 700794 80238A14 45000005 */ bc1f .L80238A2C
/* 700798 80238A18 0260202D */ daddu $a0, $s3, $zero
/* 70079C 80238A1C 3C058011 */ lui $a1, %hi(D_80108E1C)
/* 7007A0 80238A20 24A58E1C */ addiu $a1, $a1, %lo(D_80108E1C)
/* 7007A4 80238A24 0808E28D */ j .L80238A34
/* 7007A8 80238A28 00000000 */ nop
.L80238A2C:
/* 7007AC 80238A2C 3C058011 */ lui $a1, %hi(D_80108E48)
/* 7007B0 80238A30 24A58E48 */ addiu $a1, $a1, %lo(D_80108E48)
.L80238A34:
/* 7007B4 80238A34 0C0511FF */ jal set_menu_icon_script
/* 7007B8 80238A38 00000000 */ nop
/* 7007BC 80238A3C 3C058024 */ lui $a1, %hi(D_8023BDC4)
/* 7007C0 80238A40 24A5BDC4 */ addiu $a1, $a1, %lo(D_8023BDC4)
/* 7007C4 80238A44 8CA20000 */ lw $v0, ($a1)
/* 7007C8 80238A48 24420014 */ addiu $v0, $v0, 0x14
/* 7007CC 80238A4C ACA20000 */ sw $v0, ($a1)
/* 7007D0 80238A50 28420033 */ slti $v0, $v0, 0x33
/* 7007D4 80238A54 14400002 */ bnez $v0, .L80238A60
/* 7007D8 80238A58 24020032 */ addiu $v0, $zero, 0x32
/* 7007DC 80238A5C ACA20000 */ sw $v0, ($a1)
.L80238A60:
/* 7007E0 80238A60 8CA50000 */ lw $a1, ($a1)
/* 7007E4 80238A64 3C068024 */ lui $a2, %hi(D_8023BDC8)
/* 7007E8 80238A68 8CC6BDC8 */ lw $a2, %lo(D_8023BDC8)($a2)
/* 7007EC 80238A6C 0C051261 */ jal set_icon_render_pos
/* 7007F0 80238A70 0260202D */ daddu $a0, $s3, $zero
/* 7007F4 80238A74 27B50028 */ addiu $s5, $sp, 0x28
.L80238A78:
/* 7007F8 80238A78 27B2002C */ addiu $s2, $sp, 0x2c
/* 7007FC 80238A7C 3C048007 */ lui $a0, %hi(gCurrentCameraID)
/* 700800 80238A80 8C847410 */ lw $a0, %lo(gCurrentCameraID)($a0)
/* 700804 80238A84 27A20030 */ addiu $v0, $sp, 0x30
/* 700808 80238A88 AFB50010 */ sw $s5, 0x10($sp)
/* 70080C 80238A8C AFB20014 */ sw $s2, 0x14($sp)
/* 700810 80238A90 AFA20018 */ sw $v0, 0x18($sp)
/* 700814 80238A94 8E85000C */ lw $a1, 0xc($s4)
/* 700818 80238A98 8E860010 */ lw $a2, 0x10($s4)
/* 70081C 80238A9C 0C00B94E */ jal get_screen_coords
/* 700820 80238AA0 8E870014 */ lw $a3, 0x14($s4)
/* 700824 80238AA4 3C138024 */ lui $s3, %hi(D_8023BDB4)
/* 700828 80238AA8 8E73BDB4 */ lw $s3, %lo(D_8023BDB4)($s3)
/* 70082C 80238AAC 8FA50028 */ lw $a1, 0x28($sp)
/* 700830 80238AB0 8FA6002C */ lw $a2, 0x2c($sp)
/* 700834 80238AB4 0C051261 */ jal set_icon_render_pos
/* 700838 80238AB8 0260202D */ daddu $a0, $s3, $zero
/* 70083C 80238ABC 0260202D */ daddu $a0, $s3, $zero
/* 700840 80238AC0 3C108024 */ lui $s0, %hi(D_8023BDB8)
/* 700844 80238AC4 2610BDB8 */ addiu $s0, $s0, %lo(D_8023BDB8)
/* 700848 80238AC8 44800000 */ mtc1 $zero, $f0
/* 70084C 80238ACC C6080000 */ lwc1 $f8, ($s0)
/* 700850 80238AD0 46804220 */ cvt.s.w $f8, $f8
/* 700854 80238AD4 44050000 */ mfc1 $a1, $f0
/* 700858 80238AD8 44074000 */ mfc1 $a3, $f8
/* 70085C 80238ADC 0C051489 */ jal func_80145224
/* 700860 80238AE0 00A0302D */ daddu $a2, $a1, $zero
/* 700864 80238AE4 8E020000 */ lw $v0, ($s0)
/* 700868 80238AE8 2442FFF6 */ addiu $v0, $v0, -0xa
/* 70086C 80238AEC 44826000 */ mtc1 $v0, $f12
/* 700870 80238AF0 00000000 */ nop
/* 700874 80238AF4 46806320 */ cvt.s.w $f12, $f12
/* 700878 80238AF8 0C00A6C9 */ jal clamp_angle
/* 70087C 80238AFC AE020000 */ sw $v0, ($s0)
/* 700880 80238B00 8EE40070 */ lw $a0, 0x70($s7)
/* 700884 80238B04 4600020D */ trunc.w.s $f8, $f0
/* 700888 80238B08 E6080000 */ swc1 $f8, ($s0)
/* 70088C 80238B0C 28820002 */ slti $v0, $a0, 2
/* 700890 80238B10 1440004F */ bnez $v0, .L80238C50
/* 700894 80238B14 0000102D */ daddu $v0, $zero, $zero
/* 700898 80238B18 28820003 */ slti $v0, $a0, 3
/* 70089C 80238B1C 1040004B */ beqz $v0, .L80238C4C
/* 7008A0 80238B20 0000882D */ daddu $s1, $zero, $zero
/* 7008A4 80238B24 C68C0048 */ lwc1 $f12, 0x48($s4)
/* 7008A8 80238B28 3C0140C0 */ lui $at, 0x40c0
/* 7008AC 80238B2C 4481B000 */ mtc1 $at, $f22
/* 7008B0 80238B30 0C00A6C9 */ jal clamp_angle
/* 7008B4 80238B34 0240982D */ daddu $s3, $s2, $zero
/* 7008B8 80238B38 27A40034 */ addiu $a0, $sp, 0x34
/* 7008BC 80238B3C 8E86004C */ lw $a2, 0x4c($s4)
/* 7008C0 80238B40 44070000 */ mfc1 $a3, $f0
/* 7008C4 80238B44 C6800000 */ lwc1 $f0, ($s4)
/* 7008C8 80238B48 C6820004 */ lwc1 $f2, 4($s4)
/* 7008CC 80238B4C E7A00034 */ swc1 $f0, 0x34($sp)
/* 7008D0 80238B50 E7A20038 */ swc1 $f2, 0x38($sp)
/* 7008D4 80238B54 C6980008 */ lwc1 $f24, 8($s4)
/* 7008D8 80238B58 0C00A7E7 */ jal add_vec2D_polar
/* 7008DC 80238B5C 27A50038 */ addiu $a1, $sp, 0x38
/* 7008E0 80238B60 C6940008 */ lwc1 $f20, 8($s4)
/* 7008E4 80238B64 C6800000 */ lwc1 $f0, ($s4)
/* 7008E8 80238B68 C6820004 */ lwc1 $f2, 4($s4)
/* 7008EC 80238B6C 3C128024 */ lui $s2, %hi(D_8023BD78)
/* 7008F0 80238B70 2652BD78 */ addiu $s2, $s2, %lo(D_8023BD78)
/* 7008F4 80238B74 E7A00020 */ swc1 $f0, 0x20($sp)
/* 7008F8 80238B78 E7A20024 */ swc1 $f2, 0x24($sp)
.L80238B7C:
/* 7008FC 80238B7C C7A20034 */ lwc1 $f2, 0x34($sp)
/* 700900 80238B80 C6800000 */ lwc1 $f0, ($s4)
/* 700904 80238B84 46001081 */ sub.s $f2, $f2, $f0
/* 700908 80238B88 C7A60020 */ lwc1 $f6, 0x20($sp)
/* 70090C 80238B8C C6800004 */ lwc1 $f0, 4($s4)
/* 700910 80238B90 46161083 */ div.s $f2, $f2, $f22
/* 700914 80238B94 46023180 */ add.s $f6, $f6, $f2
/* 700918 80238B98 C7A20038 */ lwc1 $f2, 0x38($sp)
/* 70091C 80238B9C 46001081 */ sub.s $f2, $f2, $f0
/* 700920 80238BA0 C6800008 */ lwc1 $f0, 8($s4)
/* 700924 80238BA4 4600C001 */ sub.s $f0, $f24, $f0
/* 700928 80238BA8 C7A40024 */ lwc1 $f4, 0x24($sp)
/* 70092C 80238BAC 46161083 */ div.s $f2, $f2, $f22
/* 700930 80238BB0 46022100 */ add.s $f4, $f4, $f2
/* 700934 80238BB4 3C048007 */ lui $a0, %hi(gCurrentCameraID)
/* 700938 80238BB8 8C847410 */ lw $a0, %lo(gCurrentCameraID)($a0)
/* 70093C 80238BBC 46160003 */ div.s $f0, $f0, $f22
/* 700940 80238BC0 4600A500 */ add.s $f20, $f20, $f0
/* 700944 80238BC4 44053000 */ mfc1 $a1, $f6
/* 700948 80238BC8 44062000 */ mfc1 $a2, $f4
/* 70094C 80238BCC 4407A000 */ mfc1 $a3, $f20
/* 700950 80238BD0 27A20030 */ addiu $v0, $sp, 0x30
/* 700954 80238BD4 AFA50020 */ sw $a1, 0x20($sp)
/* 700958 80238BD8 AFA60024 */ sw $a2, 0x24($sp)
/* 70095C 80238BDC AFB50010 */ sw $s5, 0x10($sp)
/* 700960 80238BE0 AFB30014 */ sw $s3, 0x14($sp)
/* 700964 80238BE4 0C00B94E */ jal get_screen_coords
/* 700968 80238BE8 AFA20018 */ sw $v0, 0x18($sp)
/* 70096C 80238BEC 00118080 */ sll $s0, $s1, 2
/* 700970 80238BF0 8E440000 */ lw $a0, ($s2)
/* 700974 80238BF4 8FA50028 */ lw $a1, 0x28($sp)
/* 700978 80238BF8 8FA6002C */ lw $a2, 0x2c($sp)
/* 70097C 80238BFC 0C051261 */ jal set_icon_render_pos
/* 700980 80238C00 26310001 */ addiu $s1, $s1, 1
/* 700984 80238C04 3C048024 */ lui $a0, %hi(D_8023BD98)
/* 700988 80238C08 00902021 */ addu $a0, $a0, $s0
/* 70098C 80238C0C 8C84BD98 */ lw $a0, %lo(D_8023BD98)($a0)
/* 700990 80238C10 8FA50028 */ lw $a1, 0x28($sp)
/* 700994 80238C14 8FA6002C */ lw $a2, 0x2c($sp)
/* 700998 80238C18 0C051261 */ jal set_icon_render_pos
/* 70099C 80238C1C 26520004 */ addiu $s2, $s2, 4
/* 7009A0 80238C20 2A220006 */ slti $v0, $s1, 6
/* 7009A4 80238C24 1440FFD5 */ bnez $v0, .L80238B7C
/* 7009A8 80238C28 00111080 */ sll $v0, $s1, 2
/* 7009AC 80238C2C 3C048024 */ lui $a0, %hi(D_8023BD78)
/* 7009B0 80238C30 00822021 */ addu $a0, $a0, $v0
/* 7009B4 80238C34 8C84BD78 */ lw $a0, %lo(D_8023BD78)($a0)
/* 7009B8 80238C38 8FA50028 */ lw $a1, 0x28($sp)
/* 7009BC 80238C3C 0C051261 */ jal set_icon_render_pos
/* 7009C0 80238C40 8FA6002C */ lw $a2, 0x2c($sp)
/* 7009C4 80238C44 0C093EB1 */ jal set_popup_duration
/* 7009C8 80238C48 24040063 */ addiu $a0, $zero, 0x63
.L80238C4C:
/* 7009CC 80238C4C 0000102D */ daddu $v0, $zero, $zero
.L80238C50:
/* 7009D0 80238C50 8FBF0060 */ lw $ra, 0x60($sp)
/* 7009D4 80238C54 8FB7005C */ lw $s7, 0x5c($sp)
/* 7009D8 80238C58 8FB60058 */ lw $s6, 0x58($sp)
/* 7009DC 80238C5C 8FB50054 */ lw $s5, 0x54($sp)
/* 7009E0 80238C60 8FB40050 */ lw $s4, 0x50($sp)
/* 7009E4 80238C64 8FB3004C */ lw $s3, 0x4c($sp)
/* 7009E8 80238C68 8FB20048 */ lw $s2, 0x48($sp)
/* 7009EC 80238C6C 8FB10044 */ lw $s1, 0x44($sp)
/* 7009F0 80238C70 8FB00040 */ lw $s0, 0x40($sp)
/* 7009F4 80238C74 D7B80078 */ ldc1 $f24, 0x78($sp)
/* 7009F8 80238C78 D7B60070 */ ldc1 $f22, 0x70($sp)
/* 7009FC 80238C7C D7B40068 */ ldc1 $f20, 0x68($sp)
/* 700A00 80238C80 03E00008 */ jr $ra
/* 700A04 80238C84 27BD0080 */ addiu $sp, $sp, 0x80

View File

@ -0,0 +1,29 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238C88_700A08
/* 700A08 80238C88 3C02800E */ lui $v0, %hi(gBattleStatus+0xDC)
/* 700A0C 80238C8C 8C42C14C */ lw $v0, %lo(gBattleStatus+0xDC)($v0)
/* 700A10 80238C90 8C420008 */ lw $v0, 8($v0)
/* 700A14 80238C94 90430006 */ lbu $v1, 6($v0)
/* 700A18 80238C98 24020001 */ addiu $v0, $zero, 1
/* 700A1C 80238C9C 1062000C */ beq $v1, $v0, .L80238CD0
/* 700A20 80238CA0 0000282D */ daddu $a1, $zero, $zero
/* 700A24 80238CA4 28620002 */ slti $v0, $v1, 2
/* 700A28 80238CA8 10400005 */ beqz $v0, .L80238CC0
/* 700A2C 80238CAC 24020002 */ addiu $v0, $zero, 2
/* 700A30 80238CB0 50600008 */ beql $v1, $zero, .L80238CD4
/* 700A34 80238CB4 24050005 */ addiu $a1, $zero, 5
/* 700A38 80238CB8 03E00008 */ jr $ra
/* 700A3C 80238CBC AC8500C0 */ sw $a1, 0xc0($a0)
.L80238CC0:
/* 700A40 80238CC0 50620004 */ beql $v1, $v0, .L80238CD4
/* 700A44 80238CC4 24050007 */ addiu $a1, $zero, 7
/* 700A48 80238CC8 03E00008 */ jr $ra
/* 700A4C 80238CCC AC8500C0 */ sw $a1, 0xc0($a0)
.L80238CD0:
/* 700A50 80238CD0 24050006 */ addiu $a1, $zero, 6
.L80238CD4:
/* 700A54 80238CD4 AC8500C0 */ sw $a1, 0xc0($a0)
/* 700A58 80238CD8 03E00008 */ jr $ra
/* 700A5C 80238CDC 24020002 */ addiu $v0, $zero, 2

View File

@ -0,0 +1,91 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238CE0_700A60
/* 700A60 80238CE0 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 700A64 80238CE4 AFB00010 */ sw $s0, 0x10($sp)
/* 700A68 80238CE8 3C10800E */ lui $s0, %hi(gBattleStatus+0xDC)
/* 700A6C 80238CEC 8E10C14C */ lw $s0, %lo(gBattleStatus+0xDC)($s0)
/* 700A70 80238CF0 AFB20018 */ sw $s2, 0x18($sp)
/* 700A74 80238CF4 0080902D */ daddu $s2, $a0, $zero
/* 700A78 80238CF8 AFBF001C */ sw $ra, 0x1c($sp)
/* 700A7C 80238CFC AFB10014 */ sw $s1, 0x14($sp)
/* 700A80 80238D00 0C09A75B */ jal get_actor
/* 700A84 80238D04 86040428 */ lh $a0, 0x428($s0)
/* 700A88 80238D08 0040882D */ daddu $s1, $v0, $zero
/* 700A8C 80238D0C 82050426 */ lb $a1, 0x426($s0)
/* 700A90 80238D10 0C099117 */ jal get_actor_part
/* 700A94 80238D14 0220202D */ daddu $a0, $s1, $zero
/* 700A98 80238D18 822401B8 */ lb $a0, 0x1b8($s1)
/* 700A9C 80238D1C 00041840 */ sll $v1, $a0, 1
/* 700AA0 80238D20 00641821 */ addu $v1, $v1, $a0
/* 700AA4 80238D24 000318C0 */ sll $v1, $v1, 3
/* 700AA8 80238D28 00641821 */ addu $v1, $v1, $a0
/* 700AAC 80238D2C 822401B9 */ lb $a0, 0x1b9($s1)
/* 700AB0 80238D30 00031880 */ sll $v1, $v1, 2
/* 700AB4 80238D34 14800002 */ bnez $a0, .L80238D40
/* 700AB8 80238D38 0064001A */ div $zero, $v1, $a0
/* 700ABC 80238D3C 0007000D */ break 7
.L80238D40:
/* 700AC0 80238D40 2401FFFF */ addiu $at, $zero, -1
/* 700AC4 80238D44 14810004 */ bne $a0, $at, .L80238D58
/* 700AC8 80238D48 3C018000 */ lui $at, 0x8000
/* 700ACC 80238D4C 14610002 */ bne $v1, $at, .L80238D58
/* 700AD0 80238D50 00000000 */ nop
/* 700AD4 80238D54 0006000D */ break 6
.L80238D58:
/* 700AD8 80238D58 00001812 */ mflo $v1
/* 700ADC 80238D5C 0040282D */ daddu $a1, $v0, $zero
/* 700AE0 80238D60 8E240008 */ lw $a0, 8($s1)
/* 700AE4 80238D64 24020064 */ addiu $v0, $zero, 0x64
/* 700AE8 80238D68 90840019 */ lbu $a0, 0x19($a0)
/* 700AEC 80238D6C 00433023 */ subu $a2, $v0, $v1
/* 700AF0 80238D70 82230218 */ lb $v1, 0x218($s1)
/* 700AF4 80238D74 2402000E */ addiu $v0, $zero, 0xe
/* 700AF8 80238D78 50620001 */ beql $v1, $v0, .L80238D80
/* 700AFC 80238D7C 0000202D */ daddu $a0, $zero, $zero
.L80238D80:
/* 700B00 80238D80 8CA2007C */ lw $v0, 0x7c($a1)
/* 700B04 80238D84 30420020 */ andi $v0, $v0, 0x20
/* 700B08 80238D88 54400001 */ bnel $v0, $zero, .L80238D90
/* 700B0C 80238D8C 0000202D */ daddu $a0, $zero, $zero
.L80238D90:
/* 700B10 80238D90 1880001C */ blez $a0, .L80238E04
/* 700B14 80238D94 00860018 */ mult $a0, $a2
/* 700B18 80238D98 00001812 */ mflo $v1
/* 700B1C 80238D9C 3C0551EB */ lui $a1, 0x51eb
/* 700B20 80238DA0 34A5851F */ ori $a1, $a1, 0x851f
/* 700B24 80238DA4 00650018 */ mult $v1, $a1
/* 700B28 80238DA8 00031FC3 */ sra $v1, $v1, 0x1f
/* 700B2C 80238DAC 00003010 */ mfhi $a2
/* 700B30 80238DB0 00061143 */ sra $v0, $a2, 5
/* 700B34 80238DB4 00431023 */ subu $v0, $v0, $v1
/* 700B38 80238DB8 00822021 */ addu $a0, $a0, $v0
/* 700B3C 80238DBC 28820065 */ slti $v0, $a0, 0x65
/* 700B40 80238DC0 50400001 */ beql $v0, $zero, .L80238DC8
/* 700B44 80238DC4 24040064 */ addiu $a0, $zero, 0x64
.L80238DC8:
/* 700B48 80238DC8 82220210 */ lb $v0, 0x210($s1)
/* 700B4C 80238DCC 1040000D */ beqz $v0, .L80238E04
/* 700B50 80238DD0 00041880 */ sll $v1, $a0, 2
/* 700B54 80238DD4 00641821 */ addu $v1, $v1, $a0
/* 700B58 80238DD8 00031100 */ sll $v0, $v1, 4
/* 700B5C 80238DDC 00431023 */ subu $v0, $v0, $v1
/* 700B60 80238DE0 00021040 */ sll $v0, $v0, 1
/* 700B64 80238DE4 00450018 */ mult $v0, $a1
/* 700B68 80238DE8 000217C3 */ sra $v0, $v0, 0x1f
/* 700B6C 80238DEC 00003810 */ mfhi $a3
/* 700B70 80238DF0 00071943 */ sra $v1, $a3, 5
/* 700B74 80238DF4 00622023 */ subu $a0, $v1, $v0
/* 700B78 80238DF8 28820097 */ slti $v0, $a0, 0x97
/* 700B7C 80238DFC 50400001 */ beql $v0, $zero, .L80238E04
/* 700B80 80238E00 24040096 */ addiu $a0, $zero, 0x96
.L80238E04:
/* 700B84 80238E04 AE440084 */ sw $a0, 0x84($s2)
/* 700B88 80238E08 8FBF001C */ lw $ra, 0x1c($sp)
/* 700B8C 80238E0C 8FB20018 */ lw $s2, 0x18($sp)
/* 700B90 80238E10 8FB10014 */ lw $s1, 0x14($sp)
/* 700B94 80238E14 8FB00010 */ lw $s0, 0x10($sp)
/* 700B98 80238E18 24020002 */ addiu $v0, $zero, 2
/* 700B9C 80238E1C 03E00008 */ jr $ra
/* 700BA0 80238E20 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -0,0 +1,174 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238E24_700BA4
/* 700BA4 80238E24 27BDFFC0 */ addiu $sp, $sp, -0x40
/* 700BA8 80238E28 AFB60030 */ sw $s6, 0x30($sp)
/* 700BAC 80238E2C 3C16800E */ lui $s6, %hi(gBattleStatus)
/* 700BB0 80238E30 26D6C070 */ addiu $s6, $s6, %lo(gBattleStatus)
/* 700BB4 80238E34 AFBF0034 */ sw $ra, 0x34($sp)
/* 700BB8 80238E38 AFB5002C */ sw $s5, 0x2c($sp)
/* 700BBC 80238E3C AFB40028 */ sw $s4, 0x28($sp)
/* 700BC0 80238E40 AFB30024 */ sw $s3, 0x24($sp)
/* 700BC4 80238E44 AFB20020 */ sw $s2, 0x20($sp)
/* 700BC8 80238E48 AFB1001C */ sw $s1, 0x1c($sp)
/* 700BCC 80238E4C AFB00018 */ sw $s0, 0x18($sp)
/* 700BD0 80238E50 F7B40038 */ sdc1 $f20, 0x38($sp)
/* 700BD4 80238E54 8ED000DC */ lw $s0, 0xdc($s6)
/* 700BD8 80238E58 0080902D */ daddu $s2, $a0, $zero
/* 700BDC 80238E5C 8E1501F4 */ lw $s5, 0x1f4($s0)
/* 700BE0 80238E60 10A00006 */ beqz $a1, .L80238E7C
/* 700BE4 80238E64 2611000C */ addiu $s1, $s0, 0xc
/* 700BE8 80238E68 86040428 */ lh $a0, 0x428($s0)
/* 700BEC 80238E6C 0C09A75B */ jal get_actor
/* 700BF0 80238E70 00000000 */ nop
/* 700BF4 80238E74 AE420074 */ sw $v0, 0x74($s2)
/* 700BF8 80238E78 AE400070 */ sw $zero, 0x70($s2)
.L80238E7C:
/* 700BFC 80238E7C 8E540070 */ lw $s4, 0x70($s2)
/* 700C00 80238E80 8E530074 */ lw $s3, 0x74($s2)
/* 700C04 80238E84 12800005 */ beqz $s4, .L80238E9C
/* 700C08 80238E88 24020001 */ addiu $v0, $zero, 1
/* 700C0C 80238E8C 12820015 */ beq $s4, $v0, .L80238EE4
/* 700C10 80238E90 00000000 */ nop
/* 700C14 80238E94 0808E40F */ j .L8023903C
/* 700C18 80238E98 00000000 */ nop
.L80238E9C:
/* 700C1C 80238E9C C6600144 */ lwc1 $f0, 0x144($s3)
/* 700C20 80238EA0 C6020144 */ lwc1 $f2, 0x144($s0)
/* 700C24 80238EA4 46020001 */ sub.s $f0, $f0, $f2
/* 700C28 80238EA8 C6020148 */ lwc1 $f2, 0x148($s0)
/* 700C2C 80238EAC E6000018 */ swc1 $f0, 0x18($s0)
/* 700C30 80238EB0 C6600148 */ lwc1 $f0, 0x148($s3)
/* 700C34 80238EB4 46020001 */ sub.s $f0, $f0, $f2
/* 700C38 80238EB8 C602014C */ lwc1 $f2, 0x14c($s0)
/* 700C3C 80238EBC E600001C */ swc1 $f0, 0x1c($s0)
/* 700C40 80238EC0 C660014C */ lwc1 $f0, 0x14c($s3)
/* 700C44 80238EC4 3C014000 */ lui $at, 0x4000
/* 700C48 80238EC8 44812000 */ mtc1 $at, $f4
/* 700C4C 80238ECC 46020001 */ sub.s $f0, $f0, $f2
/* 700C50 80238ED0 E604004C */ swc1 $f4, 0x4c($s0)
/* 700C54 80238ED4 A6000070 */ sh $zero, 0x70($s0)
/* 700C58 80238ED8 E6000020 */ swc1 $f0, 0x20($s0)
/* 700C5C 80238EDC 0808E40F */ j .L8023903C
/* 700C60 80238EE0 AE420070 */ sw $v0, 0x70($s2)
.L80238EE4:
/* 700C64 80238EE4 C600000C */ lwc1 $f0, 0xc($s0)
/* 700C68 80238EE8 C602004C */ lwc1 $f2, 0x4c($s0)
/* 700C6C 80238EEC 46020000 */ add.s $f0, $f0, $f2
/* 700C70 80238EF0 3C013F80 */ lui $at, 0x3f80
/* 700C74 80238EF4 44811000 */ mtc1 $at, $f2
/* 700C78 80238EF8 E600000C */ swc1 $f0, 0xc($s0)
/* 700C7C 80238EFC E6A20090 */ swc1 $f2, 0x90($s5)
/* 700C80 80238F00 86020070 */ lh $v0, 0x70($s0)
/* 700C84 80238F04 3C0140C9 */ lui $at, 0x40c9
/* 700C88 80238F08 34210FD0 */ ori $at, $at, 0xfd0
/* 700C8C 80238F0C 44810000 */ mtc1 $at, $f0
/* 700C90 80238F10 44826000 */ mtc1 $v0, $f12
/* 700C94 80238F14 00000000 */ nop
/* 700C98 80238F18 46806320 */ cvt.s.w $f12, $f12
/* 700C9C 80238F1C 46006302 */ mul.s $f12, $f12, $f0
/* 700CA0 80238F20 00000000 */ nop
/* 700CA4 80238F24 C6140010 */ lwc1 $f20, 0x10($s0)
/* 700CA8 80238F28 3C0143B4 */ lui $at, 0x43b4
/* 700CAC 80238F2C 44810000 */ mtc1 $at, $f0
/* 700CB0 80238F30 4600A521 */ cvt.d.s $f20, $f20
/* 700CB4 80238F34 0C00A85B */ jal sin_rad
/* 700CB8 80238F38 46006303 */ div.s $f12, $f12, $f0
/* 700CBC 80238F3C 46000000 */ add.s $f0, $f0, $f0
/* 700CC0 80238F40 3C014049 */ lui $at, 0x4049
/* 700CC4 80238F44 34210FD0 */ ori $at, $at, 0xfd0
/* 700CC8 80238F48 44816000 */ mtc1 $at, $f12
/* 700CCC 80238F4C 00000000 */ nop
/* 700CD0 80238F50 460C0302 */ mul.s $f12, $f0, $f12
/* 700CD4 80238F54 0C00A85B */ jal sin_rad
/* 700CD8 80238F58 00000000 */ nop
/* 700CDC 80238F5C 3C018024 */ lui $at, %hi(D_8023BD60_703AE0)
/* 700CE0 80238F60 D422BD60 */ ldc1 $f2, %lo(D_8023BD60_703AE0)($at)
/* 700CE4 80238F64 46000021 */ cvt.d.s $f0, $f0
/* 700CE8 80238F68 46220002 */ mul.d $f0, $f0, $f2
/* 700CEC 80238F6C 00000000 */ nop
/* 700CF0 80238F70 96030070 */ lhu $v1, 0x70($s0)
/* 700CF4 80238F74 3C013FE0 */ lui $at, 0x3fe0
/* 700CF8 80238F78 44811800 */ mtc1 $at, $f3
/* 700CFC 80238F7C 44801000 */ mtc1 $zero, $f2
/* 700D00 80238F80 24630006 */ addiu $v1, $v1, 6
/* 700D04 80238F84 46220000 */ add.d $f0, $f0, $f2
/* 700D08 80238F88 00031400 */ sll $v0, $v1, 0x10
/* 700D0C 80238F8C 00021403 */ sra $v0, $v0, 0x10
/* 700D10 80238F90 4620A500 */ add.d $f20, $f20, $f0
/* 700D14 80238F94 44826000 */ mtc1 $v0, $f12
/* 700D18 80238F98 00000000 */ nop
/* 700D1C 80238F9C 46806320 */ cvt.s.w $f12, $f12
/* 700D20 80238FA0 A6030070 */ sh $v1, 0x70($s0)
/* 700D24 80238FA4 4620A520 */ cvt.s.d $f20, $f20
/* 700D28 80238FA8 0C00A6C9 */ jal clamp_angle
/* 700D2C 80238FAC E6140010 */ swc1 $f20, 0x10($s0)
/* 700D30 80238FB0 3C038007 */ lui $v1, %hi(gGameStatusPtr)
/* 700D34 80238FB4 8C63419C */ lw $v1, %lo(gGameStatusPtr)($v1)
/* 700D38 80238FB8 4600018D */ trunc.w.s $f6, $f0
/* 700D3C 80238FBC 44023000 */ mfc1 $v0, $f6
/* 700D40 80238FC0 00000000 */ nop
/* 700D44 80238FC4 A6020070 */ sh $v0, 0x70($s0)
/* 700D48 80238FC8 94630134 */ lhu $v1, 0x134($v1)
/* 700D4C 80238FCC 3C02CCCC */ lui $v0, 0xcccc
/* 700D50 80238FD0 3442CCCD */ ori $v0, $v0, 0xcccd
/* 700D54 80238FD4 00620019 */ multu $v1, $v0
/* 700D58 80238FD8 00004010 */ mfhi $t0
/* 700D5C 80238FDC 000820C2 */ srl $a0, $t0, 3
/* 700D60 80238FE0 00041080 */ sll $v0, $a0, 2
/* 700D64 80238FE4 00441021 */ addu $v0, $v0, $a0
/* 700D68 80238FE8 00021040 */ sll $v0, $v0, 1
/* 700D6C 80238FEC 00621823 */ subu $v1, $v1, $v0
/* 700D70 80238FF0 3063FFFF */ andi $v1, $v1, 0xffff
/* 700D74 80238FF4 14600007 */ bnez $v1, .L80239014
/* 700D78 80238FF8 24042009 */ addiu $a0, $zero, 0x2009
/* 700D7C 80238FFC C6000014 */ lwc1 $f0, 0x14($s0)
/* 700D80 80239000 E7A00010 */ swc1 $f0, 0x10($sp)
/* 700D84 80239004 8E06000C */ lw $a2, 0xc($s0)
/* 700D88 80239008 8E070010 */ lw $a3, 0x10($s0)
/* 700D8C 8023900C 0C052757 */ jal play_sound_at_position
/* 700D90 80239010 0000282D */ daddu $a1, $zero, $zero
.L80239014:
/* 700D94 80239014 C602000C */ lwc1 $f2, 0xc($s0)
/* 700D98 80239018 3C014370 */ lui $at, 0x4370
/* 700D9C 8023901C 44810000 */ mtc1 $at, $f0
/* 700DA0 80239020 00000000 */ nop
/* 700DA4 80239024 4602003C */ c.lt.s $f0, $f2
/* 700DA8 80239028 00000000 */ nop
/* 700DAC 8023902C 45000003 */ bc1f .L8023903C
/* 700DB0 80239030 24020002 */ addiu $v0, $zero, 2
/* 700DB4 80239034 0808E422 */ j .L80239088
/* 700DB8 80239038 A2D40084 */ sb $s4, 0x84($s6)
.L8023903C:
/* 700DBC 8023903C C6200000 */ lwc1 $f0, ($s1)
/* 700DC0 80239040 E6000144 */ swc1 $f0, 0x144($s0)
/* 700DC4 80239044 C6200004 */ lwc1 $f0, 4($s1)
/* 700DC8 80239048 E6000148 */ swc1 $f0, 0x148($s0)
/* 700DCC 8023904C C6200008 */ lwc1 $f0, 8($s1)
/* 700DD0 80239050 E600014C */ swc1 $f0, 0x14c($s0)
/* 700DD4 80239054 C6200000 */ lwc1 $f0, ($s1)
/* 700DD8 80239058 C622000C */ lwc1 $f2, 0xc($s1)
/* 700DDC 8023905C 46020000 */ add.s $f0, $f0, $f2
/* 700DE0 80239060 E6600144 */ swc1 $f0, 0x144($s3)
/* 700DE4 80239064 C6200004 */ lwc1 $f0, 4($s1)
/* 700DE8 80239068 C6220010 */ lwc1 $f2, 0x10($s1)
/* 700DEC 8023906C 46020000 */ add.s $f0, $f0, $f2
/* 700DF0 80239070 E6600148 */ swc1 $f0, 0x148($s3)
/* 700DF4 80239074 C6200008 */ lwc1 $f0, 8($s1)
/* 700DF8 80239078 C6220014 */ lwc1 $f2, 0x14($s1)
/* 700DFC 8023907C 46020000 */ add.s $f0, $f0, $f2
/* 700E00 80239080 0000102D */ daddu $v0, $zero, $zero
/* 700E04 80239084 E660014C */ swc1 $f0, 0x14c($s3)
.L80239088:
/* 700E08 80239088 8FBF0034 */ lw $ra, 0x34($sp)
/* 700E0C 8023908C 8FB60030 */ lw $s6, 0x30($sp)
/* 700E10 80239090 8FB5002C */ lw $s5, 0x2c($sp)
/* 700E14 80239094 8FB40028 */ lw $s4, 0x28($sp)
/* 700E18 80239098 8FB30024 */ lw $s3, 0x24($sp)
/* 700E1C 8023909C 8FB20020 */ lw $s2, 0x20($sp)
/* 700E20 802390A0 8FB1001C */ lw $s1, 0x1c($sp)
/* 700E24 802390A4 8FB00018 */ lw $s0, 0x18($sp)
/* 700E28 802390A8 D7B40038 */ ldc1 $f20, 0x38($sp)
/* 700E2C 802390AC 03E00008 */ jr $ra
/* 700E30 802390B0 27BD0040 */ addiu $sp, $sp, 0x40

View File

@ -0,0 +1,495 @@
.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

View File

@ -0,0 +1,22 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802397C8_701548
/* 701548 802397C8 3C053473 */ lui $a1, 0x3473
/* 70154C 802397CC 8C830084 */ lw $v1, 0x84($a0)
/* 701550 802397D0 34A524C7 */ ori $a1, $a1, 0x24c7
/* 701554 802397D4 00031040 */ sll $v0, $v1, 1
/* 701558 802397D8 00431021 */ addu $v0, $v0, $v1
/* 70155C 802397DC 000210C0 */ sll $v0, $v0, 3
/* 701560 802397E0 00431021 */ addu $v0, $v0, $v1
/* 701564 802397E4 00021080 */ sll $v0, $v0, 2
/* 701568 802397E8 00450018 */ mult $v0, $a1
/* 70156C 802397EC 000217C3 */ sra $v0, $v0, 0x1f
/* 701570 802397F0 00003010 */ mfhi $a2
/* 701574 802397F4 00061A43 */ sra $v1, $a2, 9
/* 701578 802397F8 00621823 */ subu $v1, $v1, $v0
/* 70157C 802397FC 24630002 */ addiu $v1, $v1, 2
/* 701580 80239800 24020002 */ addiu $v0, $zero, 2
/* 701584 80239804 03E00008 */ jr $ra
/* 701588 80239808 AC8300C0 */ sw $v1, 0xc0($a0)
/* 70158C 8023980C 00000000 */ nop

View File

@ -0,0 +1,74 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238000_707CA0
/* 707CA0 80238000 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 707CA4 80238004 AFB00010 */ sw $s0, 0x10($sp)
/* 707CA8 80238008 3C10800E */ lui $s0, %hi(gBattleStatus+0xDC)
/* 707CAC 8023800C 8E10C14C */ lw $s0, %lo(gBattleStatus+0xDC)($s0)
/* 707CB0 80238010 AFBF0014 */ sw $ra, 0x14($sp)
/* 707CB4 80238014 86050428 */ lh $a1, 0x428($s0)
/* 707CB8 80238018 82060426 */ lb $a2, 0x426($s0)
/* 707CBC 8023801C 0C09A5D5 */ jal set_goal_pos_to_part
/* 707CC0 80238020 2604000C */ addiu $a0, $s0, 0xc
/* 707CC4 80238024 86040428 */ lh $a0, 0x428($s0)
/* 707CC8 80238028 0C09A75B */ jal get_actor
/* 707CCC 8023802C 00000000 */ nop
/* 707CD0 80238030 82050426 */ lb $a1, 0x426($s0)
/* 707CD4 80238034 0C099117 */ jal get_actor_part
/* 707CD8 80238038 0040202D */ daddu $a0, $v0, $zero
/* 707CDC 8023803C 80430075 */ lb $v1, 0x75($v0)
/* 707CE0 80238040 C6020018 */ lwc1 $f2, 0x18($s0)
/* 707CE4 80238044 C6060144 */ lwc1 $f6, 0x144($s0)
/* 707CE8 80238048 44830000 */ mtc1 $v1, $f0
/* 707CEC 8023804C 00000000 */ nop
/* 707CF0 80238050 46800020 */ cvt.s.w $f0, $f0
/* 707CF4 80238054 46001080 */ add.s $f2, $f2, $f0
/* 707CF8 80238058 3C014100 */ lui $at, 0x4100
/* 707CFC 8023805C 44810000 */ mtc1 $at, $f0
/* 707D00 80238060 C6040148 */ lwc1 $f4, 0x148($s0)
/* 707D04 80238064 46003180 */ add.s $f6, $f6, $f0
/* 707D08 80238068 3C014180 */ lui $at, 0x4180
/* 707D0C 8023806C 44810000 */ mtc1 $at, $f0
/* 707D10 80238070 00000000 */ nop
/* 707D14 80238074 46002100 */ add.s $f4, $f4, $f0
/* 707D18 80238078 E6020018 */ swc1 $f2, 0x18($s0)
/* 707D1C 8023807C 44061000 */ mfc1 $a2, $f2
/* 707D20 80238080 80420076 */ lb $v0, 0x76($v0)
/* 707D24 80238084 C602001C */ lwc1 $f2, 0x1c($s0)
/* 707D28 80238088 44820000 */ mtc1 $v0, $f0
/* 707D2C 8023808C 00000000 */ nop
/* 707D30 80238090 46800020 */ cvt.s.w $f0, $f0
/* 707D34 80238094 46001080 */ add.s $f2, $f2, $f0
/* 707D38 80238098 C6000020 */ lwc1 $f0, 0x20($s0)
/* 707D3C 8023809C E606000C */ swc1 $f6, 0xc($s0)
/* 707D40 802380A0 46003306 */ mov.s $f12, $f6
/* 707D44 802380A4 E6040010 */ swc1 $f4, 0x10($s0)
/* 707D48 802380A8 E602001C */ swc1 $f2, 0x1c($s0)
/* 707D4C 802380AC C602014C */ lwc1 $f2, 0x14c($s0)
/* 707D50 802380B0 8E07001C */ lw $a3, 0x1c($s0)
/* 707D54 802380B4 46002386 */ mov.s $f14, $f4
/* 707D58 802380B8 0C00A720 */ jal atan2
/* 707D5C 802380BC E6020014 */ swc1 $f2, 0x14($s0)
/* 707D60 802380C0 3C0142B4 */ lui $at, 0x42b4
/* 707D64 802380C4 44812000 */ mtc1 $at, $f4
/* 707D68 802380C8 00000000 */ nop
/* 707D6C 802380CC 46040101 */ sub.s $f4, $f0, $f4
/* 707D70 802380D0 3C013E80 */ lui $at, 0x3e80
/* 707D74 802380D4 44811000 */ mtc1 $at, $f2
/* 707D78 802380D8 00000000 */ nop
/* 707D7C 802380DC 46022102 */ mul.s $f4, $f4, $f2
/* 707D80 802380E0 00000000 */ nop
/* 707D84 802380E4 44801000 */ mtc1 $zero, $f2
/* 707D88 802380E8 E6000054 */ swc1 $f0, 0x54($s0)
/* 707D8C 802380EC 4602203C */ c.lt.s $f4, $f2
/* 707D90 802380F0 00000000 */ nop
/* 707D94 802380F4 45000002 */ bc1f .L80238100
/* 707D98 802380F8 E6040164 */ swc1 $f4, 0x164($s0)
/* 707D9C 802380FC E6020164 */ swc1 $f2, 0x164($s0)
.L80238100:
/* 707DA0 80238100 8FBF0014 */ lw $ra, 0x14($sp)
/* 707DA4 80238104 8FB00010 */ lw $s0, 0x10($sp)
/* 707DA8 80238108 24020002 */ addiu $v0, $zero, 2
/* 707DAC 8023810C 03E00008 */ jr $ra
/* 707DB0 80238110 27BD0018 */ addiu $sp, $sp, 0x18

View File

@ -0,0 +1,65 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238114_707DB4
/* 707DB4 80238114 3C02800E */ lui $v0, %hi(gBattleStatus+0xDC)
/* 707DB8 80238118 8C42C14C */ lw $v0, %lo(gBattleStatus+0xDC)($v0)
/* 707DBC 8023811C 8C860084 */ lw $a2, 0x84($a0)
/* 707DC0 80238120 AC800084 */ sw $zero, 0x84($a0)
/* 707DC4 80238124 8C420008 */ lw $v0, 8($v0)
/* 707DC8 80238128 90430006 */ lbu $v1, 6($v0)
/* 707DCC 8023812C 24070001 */ addiu $a3, $zero, 1
/* 707DD0 80238130 10670013 */ beq $v1, $a3, .L80238180
/* 707DD4 80238134 0000282D */ daddu $a1, $zero, $zero
/* 707DD8 80238138 28620002 */ slti $v0, $v1, 2
/* 707DDC 8023813C 10400005 */ beqz $v0, .L80238154
/* 707DE0 80238140 24020002 */ addiu $v0, $zero, 2
/* 707DE4 80238144 10600007 */ beqz $v1, .L80238164
/* 707DE8 80238148 28C20029 */ slti $v0, $a2, 0x29
/* 707DEC 8023814C 0808E079 */ j .L802381E4
/* 707DF0 80238150 AC8500C0 */ sw $a1, 0xc0($a0)
.L80238154:
/* 707DF4 80238154 10620015 */ beq $v1, $v0, .L802381AC
/* 707DF8 80238158 28C20015 */ slti $v0, $a2, 0x15
/* 707DFC 8023815C 03E00008 */ jr $ra
/* 707E00 80238160 AC8500C0 */ sw $a1, 0xc0($a0)
.L80238164:
/* 707E04 80238164 1440001E */ bnez $v0, .L802381E0
/* 707E08 80238168 24050003 */ addiu $a1, $zero, 3
/* 707E0C 8023816C 28C2004C */ slti $v0, $a2, 0x4c
/* 707E10 80238170 1440001B */ bnez $v0, .L802381E0
/* 707E14 80238174 24050004 */ addiu $a1, $zero, 4
/* 707E18 80238178 0808E077 */ j .L802381DC
/* 707E1C 8023817C 24050005 */ addiu $a1, $zero, 5
.L80238180:
/* 707E20 80238180 28C20024 */ slti $v0, $a2, 0x24
/* 707E24 80238184 14400016 */ bnez $v0, .L802381E0
/* 707E28 80238188 24050003 */ addiu $a1, $zero, 3
/* 707E2C 8023818C 28C2003D */ slti $v0, $a2, 0x3d
/* 707E30 80238190 14400013 */ bnez $v0, .L802381E0
/* 707E34 80238194 24050004 */ addiu $a1, $zero, 4
/* 707E38 80238198 28C20051 */ slti $v0, $a2, 0x51
/* 707E3C 8023819C 14400010 */ bnez $v0, .L802381E0
/* 707E40 802381A0 24050005 */ addiu $a1, $zero, 5
/* 707E44 802381A4 0808E077 */ j .L802381DC
/* 707E48 802381A8 24050006 */ addiu $a1, $zero, 6
.L802381AC:
/* 707E4C 802381AC 1440000C */ bnez $v0, .L802381E0
/* 707E50 802381B0 24050003 */ addiu $a1, $zero, 3
/* 707E54 802381B4 28C2001F */ slti $v0, $a2, 0x1f
/* 707E58 802381B8 14400009 */ bnez $v0, .L802381E0
/* 707E5C 802381BC 24050004 */ addiu $a1, $zero, 4
/* 707E60 802381C0 28C2003D */ slti $v0, $a2, 0x3d
/* 707E64 802381C4 14400006 */ bnez $v0, .L802381E0
/* 707E68 802381C8 24050005 */ addiu $a1, $zero, 5
/* 707E6C 802381CC 28C20051 */ slti $v0, $a2, 0x51
/* 707E70 802381D0 14400003 */ bnez $v0, .L802381E0
/* 707E74 802381D4 24050006 */ addiu $a1, $zero, 6
/* 707E78 802381D8 24050007 */ addiu $a1, $zero, 7
.L802381DC:
/* 707E7C 802381DC AC870084 */ sw $a3, 0x84($a0)
.L802381E0:
/* 707E80 802381E0 AC8500C0 */ sw $a1, 0xc0($a0)
.L802381E4:
/* 707E84 802381E4 03E00008 */ jr $ra
/* 707E88 802381E8 24020002 */ addiu $v0, $zero, 2

View File

@ -0,0 +1,52 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802381EC_707E8C
/* 707E8C 802381EC 3C03800E */ lui $v1, %hi(gBattleStatus+0xDC)
/* 707E90 802381F0 8C63C14C */ lw $v1, %lo(gBattleStatus+0xDC)($v1)
/* 707E94 802381F4 10A00003 */ beqz $a1, .L80238204
/* 707E98 802381F8 24020006 */ addiu $v0, $zero, 6
/* 707E9C 802381FC AC800070 */ sw $zero, 0x70($a0)
/* 707EA0 80238200 AC820074 */ sw $v0, 0x74($a0)
.L80238204:
/* 707EA4 80238204 C4640170 */ lwc1 $f4, 0x170($v1)
/* 707EA8 80238208 3C013FF0 */ lui $at, 0x3ff0
/* 707EAC 8023820C 44814800 */ mtc1 $at, $f9
/* 707EB0 80238210 44804000 */ mtc1 $zero, $f8
/* 707EB4 80238214 C4620174 */ lwc1 $f2, 0x174($v1)
/* 707EB8 80238218 46002121 */ cvt.d.s $f4, $f4
/* 707EBC 8023821C 46244001 */ sub.d $f0, $f8, $f4
/* 707EC0 80238220 3C014008 */ lui $at, 0x4008
/* 707EC4 80238224 44815800 */ mtc1 $at, $f11
/* 707EC8 80238228 44805000 */ mtc1 $zero, $f10
/* 707ECC 8023822C 460010A1 */ cvt.d.s $f2, $f2
/* 707ED0 80238230 46224181 */ sub.d $f6, $f8, $f2
/* 707ED4 80238234 462A0003 */ div.d $f0, $f0, $f10
/* 707ED8 80238238 46202100 */ add.d $f4, $f4, $f0
/* 707EDC 8023823C 462A3183 */ div.d $f6, $f6, $f10
/* 707EE0 80238240 C4600178 */ lwc1 $f0, 0x178($v1)
/* 707EE4 80238244 46261080 */ add.d $f2, $f2, $f6
/* 707EE8 80238248 46000021 */ cvt.d.s $f0, $f0
/* 707EEC 8023824C 46204201 */ sub.d $f8, $f8, $f0
/* 707EF0 80238250 46202120 */ cvt.s.d $f4, $f4
/* 707EF4 80238254 462010A0 */ cvt.s.d $f2, $f2
/* 707EF8 80238258 462A4203 */ div.d $f8, $f8, $f10
/* 707EFC 8023825C 46280000 */ add.d $f0, $f0, $f8
/* 707F00 80238260 E4640170 */ swc1 $f4, 0x170($v1)
/* 707F04 80238264 E4620174 */ swc1 $f2, 0x174($v1)
/* 707F08 80238268 46200020 */ cvt.s.d $f0, $f0
/* 707F0C 8023826C E4600178 */ swc1 $f0, 0x178($v1)
/* 707F10 80238270 8C820074 */ lw $v0, 0x74($a0)
/* 707F14 80238274 14400008 */ bnez $v0, .L80238298
/* 707F18 80238278 2442FFFF */ addiu $v0, $v0, -1
/* 707F1C 8023827C 3C013F80 */ lui $at, 0x3f80
/* 707F20 80238280 44810000 */ mtc1 $at, $f0
/* 707F24 80238284 24020002 */ addiu $v0, $zero, 2
/* 707F28 80238288 E4600170 */ swc1 $f0, 0x170($v1)
/* 707F2C 8023828C E4600174 */ swc1 $f0, 0x174($v1)
/* 707F30 80238290 03E00008 */ jr $ra
/* 707F34 80238294 E4600178 */ swc1 $f0, 0x178($v1)
.L80238298:
/* 707F38 80238298 AC820074 */ sw $v0, 0x74($a0)
/* 707F3C 8023829C 03E00008 */ jr $ra
/* 707F40 802382A0 0000102D */ daddu $v0, $zero, $zero

View File

@ -0,0 +1,37 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802382A4_707F44
/* 707F44 802382A4 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 707F48 802382A8 AFB00018 */ sw $s0, 0x18($sp)
/* 707F4C 802382AC 0080802D */ daddu $s0, $a0, $zero
/* 707F50 802382B0 AFBF001C */ sw $ra, 0x1c($sp)
/* 707F54 802382B4 C6040090 */ lwc1 $f4, 0x90($s0)
/* 707F58 802382B8 46802120 */ cvt.s.w $f4, $f4
/* 707F5C 802382BC 44062000 */ mfc1 $a2, $f4
/* 707F60 802382C0 C6040094 */ lwc1 $f4, 0x94($s0)
/* 707F64 802382C4 46802120 */ cvt.s.w $f4, $f4
/* 707F68 802382C8 44072000 */ mfc1 $a3, $f4
/* 707F6C 802382CC C60C0084 */ lwc1 $f12, 0x84($s0)
/* 707F70 802382D0 46806320 */ cvt.s.w $f12, $f12
/* 707F74 802382D4 E7AC0010 */ swc1 $f12, 0x10($sp)
/* 707F78 802382D8 C60E0088 */ lwc1 $f14, 0x88($s0)
/* 707F7C 802382DC 468073A0 */ cvt.s.w $f14, $f14
/* 707F80 802382E0 0C00A720 */ jal atan2
/* 707F84 802382E4 E7AE0014 */ swc1 $f14, 0x14($sp)
/* 707F88 802382E8 27A40010 */ addiu $a0, $sp, 0x10
/* 707F8C 802382EC 3C064396 */ lui $a2, 0x4396
/* 707F90 802382F0 44070000 */ mfc1 $a3, $f0
/* 707F94 802382F4 0C00A7E7 */ jal add_vec2D_polar
/* 707F98 802382F8 27A50014 */ addiu $a1, $sp, 0x14
/* 707F9C 802382FC C7A00010 */ lwc1 $f0, 0x10($sp)
/* 707FA0 80238300 C7A20014 */ lwc1 $f2, 0x14($sp)
/* 707FA4 80238304 4600010D */ trunc.w.s $f4, $f0
/* 707FA8 80238308 E6040090 */ swc1 $f4, 0x90($s0)
/* 707FAC 8023830C 4600110D */ trunc.w.s $f4, $f2
/* 707FB0 80238310 E6040094 */ swc1 $f4, 0x94($s0)
/* 707FB4 80238314 8FBF001C */ lw $ra, 0x1c($sp)
/* 707FB8 80238318 8FB00018 */ lw $s0, 0x18($sp)
/* 707FBC 8023831C 24020002 */ addiu $v0, $zero, 2
/* 707FC0 80238320 03E00008 */ jr $ra
/* 707FC4 80238324 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -0,0 +1,31 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238328_707FC8
/* 707FC8 80238328 8C830084 */ lw $v1, 0x84($a0)
/* 707FCC 8023832C 3C05800E */ lui $a1, %hi(gBattleStatus)
/* 707FD0 80238330 24A5C070 */ addiu $a1, $a1, %lo(gBattleStatus)
/* 707FD4 80238334 18600003 */ blez $v1, .L80238344
/* 707FD8 80238338 24020001 */ addiu $v0, $zero, 1
/* 707FDC 8023833C 0808E0D2 */ j .L80238348
/* 707FE0 80238340 AC820084 */ sw $v0, 0x84($a0)
.L80238344:
/* 707FE4 80238344 AC800084 */ sw $zero, 0x84($a0)
.L80238348:
/* 707FE8 80238348 AC8000C0 */ sw $zero, 0xc0($a0)
/* 707FEC 8023834C AC8300AC */ sw $v1, 0xac($a0)
/* 707FF0 80238350 80A2009D */ lb $v0, 0x9d($a1)
/* 707FF4 80238354 0043102A */ slt $v0, $v0, $v1
/* 707FF8 80238358 10400009 */ beqz $v0, .L80238380
/* 707FFC 8023835C 24020001 */ addiu $v0, $zero, 1
/* 708000 80238360 A0A3009D */ sb $v1, 0x9d($a1)
/* 708004 80238364 A0A2009E */ sb $v0, 0x9e($a1)
/* 708008 80238368 0060102D */ daddu $v0, $v1, $zero
/* 70800C 8023836C 8CA3043C */ lw $v1, 0x43c($a1)
/* 708010 80238370 00021600 */ sll $v0, $v0, 0x18
/* 708014 80238374 8C63000C */ lw $v1, 0xc($v1)
/* 708018 80238378 00021603 */ sra $v0, $v0, 0x18
/* 70801C 8023837C A4620010 */ sh $v0, 0x10($v1)
.L80238380:
/* 708020 80238380 03E00008 */ jr $ra
/* 708024 80238384 24020002 */ addiu $v0, $zero, 2

View File

@ -0,0 +1,66 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238388_708028
/* 708028 80238388 27BDFFC8 */ addiu $sp, $sp, -0x38
/* 70802C 8023838C 3C02800E */ lui $v0, %hi(gBattleStatus)
/* 708030 80238390 2442C070 */ addiu $v0, $v0, %lo(gBattleStatus)
/* 708034 80238394 AFBF0030 */ sw $ra, 0x30($sp)
/* 708038 80238398 AFB1002C */ sw $s1, 0x2c($sp)
/* 70803C 8023839C AFB00028 */ sw $s0, 0x28($sp)
/* 708040 802383A0 8C5000DC */ lw $s0, 0xdc($v0)
/* 708044 802383A4 8C5100D8 */ lw $s1, 0xd8($v0)
/* 708048 802383A8 0C00A67F */ jal rand_int
/* 70804C 802383AC 2404000A */ addiu $a0, $zero, 0xa
/* 708050 802383B0 3C018024 */ lui $at, %hi(D_8023C060_70BD00)
/* 708054 802383B4 D422C060 */ ldc1 $f2, %lo(D_8023C060_70BD00)($at)
/* 708058 802383B8 C6200144 */ lwc1 $f0, 0x144($s1)
/* 70805C 802383BC C6040144 */ lwc1 $f4, 0x144($s0)
/* 708060 802383C0 C6060148 */ lwc1 $f6, 0x148($s0)
/* 708064 802383C4 C60A014C */ lwc1 $f10, 0x14c($s0)
/* 708068 802383C8 E7A00010 */ swc1 $f0, 0x10($sp)
/* 70806C 802383CC 44820000 */ mtc1 $v0, $f0
/* 708070 802383D0 00000000 */ nop
/* 708074 802383D4 46800021 */ cvt.d.w $f0, $f0
/* 708078 802383D8 46220002 */ mul.d $f0, $f0, $f2
/* 70807C 802383DC 00000000 */ nop
/* 708080 802383E0 24040001 */ addiu $a0, $zero, 1
/* 708084 802383E4 C6220148 */ lwc1 $f2, 0x148($s1)
/* 708088 802383E8 2402001E */ addiu $v0, $zero, 0x1e
/* 70808C 802383EC E7A20014 */ swc1 $f2, 0x14($sp)
/* 708090 802383F0 3C013FF0 */ lui $at, 0x3ff0
/* 708094 802383F4 44811800 */ mtc1 $at, $f3
/* 708098 802383F8 44801000 */ mtc1 $zero, $f2
/* 70809C 802383FC 46002121 */ cvt.d.s $f4, $f4
/* 7080A0 80238400 46220000 */ add.d $f0, $f0, $f2
/* 7080A4 80238404 3C014016 */ lui $at, 0x4016
/* 7080A8 80238408 44811800 */ mtc1 $at, $f3
/* 7080AC 8023840C 44801000 */ mtc1 $zero, $f2
/* 7080B0 80238410 C628014C */ lwc1 $f8, 0x14c($s1)
/* 7080B4 80238414 46222101 */ sub.d $f4, $f4, $f2
/* 7080B8 80238418 3C01402F */ lui $at, 0x402f
/* 7080BC 8023841C 44811800 */ mtc1 $at, $f3
/* 7080C0 80238420 44801000 */ mtc1 $zero, $f2
/* 7080C4 80238424 460031A1 */ cvt.d.s $f6, $f6
/* 7080C8 80238428 AFA20020 */ sw $v0, 0x20($sp)
/* 7080CC 8023842C E7A80018 */ swc1 $f8, 0x18($sp)
/* 7080D0 80238430 46223180 */ add.d $f6, $f6, $f2
/* 7080D4 80238434 3C0140A0 */ lui $at, 0x40a0
/* 7080D8 80238438 44811000 */ mtc1 $at, $f2
/* 7080DC 8023843C 46202120 */ cvt.s.d $f4, $f4
/* 7080E0 80238440 46025280 */ add.s $f10, $f10, $f2
/* 7080E4 80238444 44052000 */ mfc1 $a1, $f4
/* 7080E8 80238448 462031A0 */ cvt.s.d $f6, $f6
/* 7080EC 8023844C 44063000 */ mfc1 $a2, $f6
/* 7080F0 80238450 44075000 */ mfc1 $a3, $f10
/* 7080F4 80238454 46200020 */ cvt.s.d $f0, $f0
/* 7080F8 80238458 0C01C67C */ jal func_800719F0
/* 7080FC 8023845C E7A0001C */ swc1 $f0, 0x1c($sp)
/* 708100 80238460 8FBF0030 */ lw $ra, 0x30($sp)
/* 708104 80238464 8FB1002C */ lw $s1, 0x2c($sp)
/* 708108 80238468 8FB00028 */ lw $s0, 0x28($sp)
/* 70810C 8023846C 3C018024 */ lui $at, %hi(D_8023C070)
/* 708110 80238470 AC22C070 */ sw $v0, %lo(D_8023C070)($at)
/* 708114 80238474 24020002 */ addiu $v0, $zero, 2
/* 708118 80238478 03E00008 */ jr $ra
/* 70811C 8023847C 27BD0038 */ addiu $sp, $sp, 0x38

View File

@ -0,0 +1,53 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238480_708120
/* 708120 80238480 27BDFFC0 */ addiu $sp, $sp, -0x40
/* 708124 80238484 AFB1001C */ sw $s1, 0x1c($sp)
/* 708128 80238488 0080882D */ daddu $s1, $a0, $zero
/* 70812C 8023848C AFBF0020 */ sw $ra, 0x20($sp)
/* 708130 80238490 AFB00018 */ sw $s0, 0x18($sp)
/* 708134 80238494 F7B80038 */ sdc1 $f24, 0x38($sp)
/* 708138 80238498 F7B60030 */ sdc1 $f22, 0x30($sp)
/* 70813C 8023849C F7B40028 */ sdc1 $f20, 0x28($sp)
/* 708140 802384A0 8E30000C */ lw $s0, 0xc($s1)
/* 708144 802384A4 8E050000 */ lw $a1, ($s0)
/* 708148 802384A8 0C0B210B */ jal get_float_variable
/* 70814C 802384AC 26100004 */ addiu $s0, $s0, 4
/* 708150 802384B0 8E050000 */ lw $a1, ($s0)
/* 708154 802384B4 26100004 */ addiu $s0, $s0, 4
/* 708158 802384B8 0220202D */ daddu $a0, $s1, $zero
/* 70815C 802384BC 0C0B210B */ jal get_float_variable
/* 708160 802384C0 46000606 */ mov.s $f24, $f0
/* 708164 802384C4 0220202D */ daddu $a0, $s1, $zero
/* 708168 802384C8 8E050000 */ lw $a1, ($s0)
/* 70816C 802384CC 0C0B210B */ jal get_float_variable
/* 708170 802384D0 46000586 */ mov.s $f22, $f0
/* 708174 802384D4 3C02800E */ lui $v0, %hi(gBattleStatus)
/* 708178 802384D8 2442C070 */ addiu $v0, $v0, %lo(gBattleStatus)
/* 70817C 802384DC 0040802D */ daddu $s0, $v0, $zero
/* 708180 802384E0 8E0400A0 */ lw $a0, 0xa0($s0)
/* 708184 802384E4 10800003 */ beqz $a0, .L802384F4
/* 708188 802384E8 46000506 */ mov.s $f20, $f0
/* 70818C 802384EC 0C016914 */ jal remove_effect
/* 708190 802384F0 00000000 */ nop
.L802384F4:
/* 708194 802384F4 4405C000 */ mfc1 $a1, $f24
/* 708198 802384F8 3C013FC0 */ lui $at, 0x3fc0
/* 70819C 802384FC 44810000 */ mtc1 $at, $f0
/* 7081A0 80238500 4406B000 */ mfc1 $a2, $f22
/* 7081A4 80238504 4407A000 */ mfc1 $a3, $f20
/* 7081A8 80238508 0000202D */ daddu $a0, $zero, $zero
/* 7081AC 8023850C AFA00014 */ sw $zero, 0x14($sp)
/* 7081B0 80238510 0C01C694 */ jal func_80071A50
/* 7081B4 80238514 E7A00010 */ swc1 $f0, 0x10($sp)
/* 7081B8 80238518 AE0200A0 */ sw $v0, 0xa0($s0)
/* 7081BC 8023851C 8FBF0020 */ lw $ra, 0x20($sp)
/* 7081C0 80238520 8FB1001C */ lw $s1, 0x1c($sp)
/* 7081C4 80238524 8FB00018 */ lw $s0, 0x18($sp)
/* 7081C8 80238528 D7B80038 */ ldc1 $f24, 0x38($sp)
/* 7081CC 8023852C D7B60030 */ ldc1 $f22, 0x30($sp)
/* 7081D0 80238530 D7B40028 */ ldc1 $f20, 0x28($sp)
/* 7081D4 80238534 24020002 */ addiu $v0, $zero, 2
/* 7081D8 80238538 03E00008 */ jr $ra
/* 7081DC 8023853C 27BD0040 */ addiu $sp, $sp, 0x40

View File

@ -0,0 +1,616 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238540_7081E0
/* 7081E0 80238540 27BDFFC8 */ addiu $sp, $sp, -0x38
/* 7081E4 80238544 AFB10024 */ sw $s1, 0x24($sp)
/* 7081E8 80238548 3C11800E */ lui $s1, %hi(gBattleStatus+0xDC)
/* 7081EC 8023854C 8E31C14C */ lw $s1, %lo(gBattleStatus+0xDC)($s1)
/* 7081F0 80238550 AFB20028 */ sw $s2, 0x28($sp)
/* 7081F4 80238554 0080902D */ daddu $s2, $a0, $zero
/* 7081F8 80238558 AFBF002C */ sw $ra, 0x2c($sp)
/* 7081FC 8023855C AFB00020 */ sw $s0, 0x20($sp)
/* 708200 80238560 F7B40030 */ sdc1 $f20, 0x30($sp)
/* 708204 80238564 10A00002 */ beqz $a1, .L80238570
/* 708208 80238568 2630000C */ addiu $s0, $s1, 0xc
/* 70820C 8023856C AE400070 */ sw $zero, 0x70($s2)
.L80238570:
/* 708210 80238570 8E430070 */ lw $v1, 0x70($s2)
/* 708214 80238574 10600005 */ beqz $v1, .L8023858C
/* 708218 80238578 24020001 */ addiu $v0, $zero, 1
/* 70821C 8023857C 1062002C */ beq $v1, $v0, .L80238630
/* 708220 80238580 24020002 */ addiu $v0, $zero, 2
/* 708224 80238584 0808E346 */ j .L80238D18
/* 708228 80238588 00000000 */ nop
.L8023858C:
/* 70822C 8023858C C6200144 */ lwc1 $f0, 0x144($s1)
/* 708230 80238590 C6220148 */ lwc1 $f2, 0x148($s1)
/* 708234 80238594 C624014C */ lwc1 $f4, 0x14c($s1)
/* 708238 80238598 3C01439D */ lui $at, 0x439d
/* 70823C 8023859C 34218000 */ ori $at, $at, 0x8000
/* 708240 802385A0 44813000 */ mtc1 $at, $f6
/* 708244 802385A4 3C014200 */ lui $at, 0x4200
/* 708248 802385A8 44814000 */ mtc1 $at, $f8
/* 70824C 802385AC 3C013F80 */ lui $at, 0x3f80
/* 708250 802385B0 44815000 */ mtc1 $at, $f10
/* 708254 802385B4 2402005A */ addiu $v0, $zero, 0x5a
/* 708258 802385B8 AE20005C */ sw $zero, 0x5c($s1)
/* 70825C 802385BC A6220070 */ sh $v0, 0x70($s1)
/* 708260 802385C0 E620000C */ swc1 $f0, 0xc($s1)
/* 708264 802385C4 E6220010 */ swc1 $f2, 0x10($s1)
/* 708268 802385C8 E6240014 */ swc1 $f4, 0x14($s1)
/* 70826C 802385CC E6260054 */ swc1 $f6, 0x54($s1)
/* 708270 802385D0 E628004C */ swc1 $f8, 0x4c($s1)
/* 708274 802385D4 AE400074 */ sw $zero, 0x74($s2)
/* 708278 802385D8 AE400078 */ sw $zero, 0x78($s2)
/* 70827C 802385DC E7AA0010 */ swc1 $f10, 0x10($sp)
/* 708280 802385E0 AFA00014 */ sw $zero, 0x14($sp)
/* 708284 802385E4 8E25000C */ lw $a1, 0xc($s1)
/* 708288 802385E8 8E260010 */ lw $a2, 0x10($s1)
/* 70828C 802385EC 8E270014 */ lw $a3, 0x14($s1)
/* 708290 802385F0 0C01C6C4 */ jal func_80071B10
/* 708294 802385F4 24040001 */ addiu $a0, $zero, 1
/* 708298 802385F8 8C43000C */ lw $v1, 0xc($v0)
/* 70829C 802385FC C6200054 */ lwc1 $f0, 0x54($s1)
/* 7082A0 80238600 E4600038 */ swc1 $f0, 0x38($v1)
/* 7082A4 80238604 8C43000C */ lw $v1, 0xc($v0)
/* 7082A8 80238608 C6200170 */ lwc1 $f0, 0x170($s1)
/* 7082AC 8023860C 3C018024 */ lui $at, %hi(D_8023C070)
/* 7082B0 80238610 AC22C070 */ sw $v0, %lo(D_8023C070)($at)
/* 7082B4 80238614 E460003C */ swc1 $f0, 0x3c($v1)
/* 7082B8 80238618 8C43000C */ lw $v1, 0xc($v0)
/* 7082BC 8023861C C6200170 */ lwc1 $f0, 0x170($s1)
/* 7082C0 80238620 24020001 */ addiu $v0, $zero, 1
/* 7082C4 80238624 E4600040 */ swc1 $f0, 0x40($v1)
/* 7082C8 80238628 0808E344 */ j .L80238D10
/* 7082CC 8023862C AE420070 */ sw $v0, 0x70($s2)
.L80238630:
/* 7082D0 80238630 0200202D */ daddu $a0, $s0, $zero
/* 7082D4 80238634 8E26004C */ lw $a2, 0x4c($s1)
/* 7082D8 80238638 8E270054 */ lw $a3, 0x54($s1)
/* 7082DC 8023863C 0C00A7E7 */ jal add_vec2D_polar
/* 7082E0 80238640 26250010 */ addiu $a1, $s1, 0x10
/* 7082E4 80238644 C622000C */ lwc1 $f2, 0xc($s1)
/* 7082E8 80238648 3C01C320 */ lui $at, 0xc320
/* 7082EC 8023864C 44810000 */ mtc1 $at, $f0
/* 7082F0 80238650 00000000 */ nop
/* 7082F4 80238654 4600103C */ c.lt.s $f2, $f0
/* 7082F8 80238658 00000000 */ nop
/* 7082FC 8023865C 45000042 */ bc1f .L80238768
/* 708300 80238660 00000000 */ nop
/* 708304 80238664 8E420074 */ lw $v0, 0x74($s2)
/* 708308 80238668 544000EF */ bnel $v0, $zero, .L80238A28
/* 70830C 8023866C 24020002 */ addiu $v0, $zero, 2
/* 708310 80238670 C6220054 */ lwc1 $f2, 0x54($s1)
/* 708314 80238674 3C014387 */ lui $at, 0x4387
/* 708318 80238678 44810000 */ mtc1 $at, $f0
/* 70831C 8023867C 00000000 */ nop
/* 708320 80238680 4602003E */ c.le.s $f0, $f2
/* 708324 80238684 00000000 */ nop
/* 708328 80238688 45000019 */ bc1f .L802386F0
/* 70832C 8023868C 00000000 */ nop
/* 708330 80238690 3C0143B4 */ lui $at, 0x43b4
/* 708334 80238694 44810000 */ mtc1 $at, $f0
/* 708338 80238698 00000000 */ nop
/* 70833C 8023869C 4600103C */ c.lt.s $f2, $f0
/* 708340 802386A0 00000000 */ nop
/* 708344 802386A4 45000012 */ bc1f .L802386F0
/* 708348 802386A8 00000000 */ nop
/* 70834C 802386AC 3C014334 */ lui $at, 0x4334
/* 708350 802386B0 44816000 */ mtc1 $at, $f12
/* 708354 802386B4 0C00A6C9 */ jal clamp_angle
/* 708358 802386B8 460C1300 */ add.s $f12, $f2, $f12
/* 70835C 802386BC 3C0142B4 */ lui $at, 0x42b4
/* 708360 802386C0 44811000 */ mtc1 $at, $f2
/* 708364 802386C4 00000000 */ nop
/* 708368 802386C8 46001001 */ sub.s $f0, $f2, $f0
/* 70836C 802386CC 46020000 */ add.s $f0, $f0, $f2
/* 708370 802386D0 24040004 */ addiu $a0, $zero, 4
/* 708374 802386D4 0C00A67F */ jal rand_int
/* 708378 802386D8 E6200054 */ swc1 $f0, 0x54($s1)
/* 70837C 802386DC 2442FFFE */ addiu $v0, $v0, -2
/* 708380 802386E0 44820000 */ mtc1 $v0, $f0
/* 708384 802386E4 00000000 */ nop
/* 708388 802386E8 46800020 */ cvt.s.w $f0, $f0
/* 70838C 802386EC E620005C */ swc1 $f0, 0x5c($s1)
.L802386F0:
/* 708390 802386F0 C60C0048 */ lwc1 $f12, 0x48($s0)
/* 708394 802386F4 3C014334 */ lui $at, 0x4334
/* 708398 802386F8 44811000 */ mtc1 $at, $f2
/* 70839C 802386FC 00000000 */ nop
/* 7083A0 80238700 460C103E */ c.le.s $f2, $f12
/* 7083A4 80238704 00000000 */ nop
/* 7083A8 80238708 45000017 */ bc1f .L80238768
/* 7083AC 8023870C 00000000 */ nop
/* 7083B0 80238710 3C014387 */ lui $at, 0x4387
/* 7083B4 80238714 44810000 */ mtc1 $at, $f0
/* 7083B8 80238718 00000000 */ nop
/* 7083BC 8023871C 4600603C */ c.lt.s $f12, $f0
/* 7083C0 80238720 00000000 */ nop
/* 7083C4 80238724 45000010 */ bc1f .L80238768
/* 7083C8 80238728 00000000 */ nop
/* 7083CC 8023872C 0C00A6C9 */ jal clamp_angle
/* 7083D0 80238730 46026300 */ add.s $f12, $f12, $f2
/* 7083D4 80238734 3C0142B4 */ lui $at, 0x42b4
/* 7083D8 80238738 44811000 */ mtc1 $at, $f2
/* 7083DC 8023873C 00000000 */ nop
/* 7083E0 80238740 46020001 */ sub.s $f0, $f0, $f2
/* 7083E4 80238744 46001081 */ sub.s $f2, $f2, $f0
/* 7083E8 80238748 24040004 */ addiu $a0, $zero, 4
/* 7083EC 8023874C 0C00A67F */ jal rand_int
/* 7083F0 80238750 E6020048 */ swc1 $f2, 0x48($s0)
/* 7083F4 80238754 2442FFFE */ addiu $v0, $v0, -2
/* 7083F8 80238758 44820000 */ mtc1 $v0, $f0
/* 7083FC 8023875C 00000000 */ nop
/* 708400 80238760 46800020 */ cvt.s.w $f0, $f0
/* 708404 80238764 E6000050 */ swc1 $f0, 0x50($s0)
.L80238768:
/* 708408 80238768 C6020000 */ lwc1 $f2, ($s0)
/* 70840C 8023876C 3C014320 */ lui $at, 0x4320
/* 708410 80238770 44810000 */ mtc1 $at, $f0
/* 708414 80238774 00000000 */ nop
/* 708418 80238778 4602003C */ c.lt.s $f0, $f2
/* 70841C 8023877C 00000000 */ nop
/* 708420 80238780 4500004F */ bc1f .L802388C0
/* 708424 80238784 00000000 */ nop
/* 708428 80238788 8E420074 */ lw $v0, 0x74($s2)
/* 70842C 8023878C 1040000F */ beqz $v0, .L802387CC
/* 708430 80238790 24020002 */ addiu $v0, $zero, 2
/* 708434 80238794 0808E344 */ j .L80238D10
/* 708438 80238798 AE420070 */ sw $v0, 0x70($s2)
.L8023879C:
/* 70843C 8023879C 3C014334 */ lui $at, 0x4334
/* 708440 802387A0 44816000 */ mtc1 $at, $f12
/* 708444 802387A4 0C00A6C9 */ jal clamp_angle
/* 708448 802387A8 460C1300 */ add.s $f12, $f2, $f12
/* 70844C 802387AC 3C014387 */ lui $at, 0x4387
/* 708450 802387B0 44811000 */ mtc1 $at, $f2
/* 708454 802387B4 00000000 */ nop
/* 708458 802387B8 46001001 */ sub.s $f0, $f2, $f0
/* 70845C 802387BC 46020000 */ add.s $f0, $f0, $f2
/* 708460 802387C0 24040004 */ addiu $a0, $zero, 4
/* 708464 802387C4 0808E218 */ j .L80238860
/* 708468 802387C8 E6000048 */ swc1 $f0, 0x48($s0)
.L802387CC:
/* 70846C 802387CC C6020048 */ lwc1 $f2, 0x48($s0)
/* 708470 802387D0 44800000 */ mtc1 $zero, $f0
/* 708474 802387D4 00000000 */ nop
/* 708478 802387D8 4602003E */ c.le.s $f0, $f2
/* 70847C 802387DC 00000000 */ nop
/* 708480 802387E0 45000008 */ bc1f .L80238804
/* 708484 802387E4 00000000 */ nop
/* 708488 802387E8 3C0142B4 */ lui $at, 0x42b4
/* 70848C 802387EC 44810000 */ mtc1 $at, $f0
/* 708490 802387F0 00000000 */ nop
/* 708494 802387F4 4600103C */ c.lt.s $f2, $f0
/* 708498 802387F8 00000000 */ nop
/* 70849C 802387FC 4501FFE7 */ bc1t .L8023879C
/* 7084A0 80238800 00000000 */ nop
.L80238804:
/* 7084A4 80238804 3C0142B4 */ lui $at, 0x42b4
/* 7084A8 80238808 44810000 */ mtc1 $at, $f0
/* 7084AC 8023880C 00000000 */ nop
/* 7084B0 80238810 4602003E */ c.le.s $f0, $f2
/* 7084B4 80238814 00000000 */ nop
/* 7084B8 80238818 45000018 */ bc1f .L8023887C
/* 7084BC 8023881C 00000000 */ nop
/* 7084C0 80238820 3C014334 */ lui $at, 0x4334
/* 7084C4 80238824 44810000 */ mtc1 $at, $f0
/* 7084C8 80238828 00000000 */ nop
/* 7084CC 8023882C 4600103C */ c.lt.s $f2, $f0
/* 7084D0 80238830 00000000 */ nop
/* 7084D4 80238834 45000011 */ bc1f .L8023887C
/* 7084D8 80238838 00000000 */ nop
/* 7084DC 8023883C 0C00A6C9 */ jal clamp_angle
/* 7084E0 80238840 46001300 */ add.s $f12, $f2, $f0
/* 7084E4 80238844 3C014387 */ lui $at, 0x4387
/* 7084E8 80238848 44811000 */ mtc1 $at, $f2
/* 7084EC 8023884C 00000000 */ nop
/* 7084F0 80238850 46020001 */ sub.s $f0, $f0, $f2
/* 7084F4 80238854 46001081 */ sub.s $f2, $f2, $f0
/* 7084F8 80238858 24040004 */ addiu $a0, $zero, 4
/* 7084FC 8023885C E6020048 */ swc1 $f2, 0x48($s0)
.L80238860:
/* 708500 80238860 0C00A67F */ jal rand_int
/* 708504 80238864 00000000 */ nop
/* 708508 80238868 2442FFFE */ addiu $v0, $v0, -2
/* 70850C 8023886C 44820000 */ mtc1 $v0, $f0
/* 708510 80238870 00000000 */ nop
/* 708514 80238874 46800020 */ cvt.s.w $f0, $f0
/* 708518 80238878 E6000050 */ swc1 $f0, 0x50($s0)
.L8023887C:
/* 70851C 8023887C 8E420078 */ lw $v0, 0x78($s2)
/* 708520 80238880 10400004 */ beqz $v0, .L80238894
/* 708524 80238884 2404029B */ addiu $a0, $zero, 0x29b
/* 708528 80238888 C6000008 */ lwc1 $f0, 8($s0)
/* 70852C 8023888C 0808E228 */ j .L802388A0
/* 708530 80238890 E7A00010 */ swc1 $f0, 0x10($sp)
.L80238894:
/* 708534 80238894 C6000008 */ lwc1 $f0, 8($s0)
/* 708538 80238898 2404029C */ addiu $a0, $zero, 0x29c
/* 70853C 8023889C E7A00010 */ swc1 $f0, 0x10($sp)
.L802388A0:
/* 708540 802388A0 8E060000 */ lw $a2, ($s0)
/* 708544 802388A4 8E070004 */ lw $a3, 4($s0)
/* 708548 802388A8 0C052757 */ jal play_sound_at_position
/* 70854C 802388AC 0000282D */ daddu $a1, $zero, $zero
/* 708550 802388B0 8E430078 */ lw $v1, 0x78($s2)
/* 708554 802388B4 24020001 */ addiu $v0, $zero, 1
/* 708558 802388B8 00431023 */ subu $v0, $v0, $v1
/* 70855C 802388BC AE420078 */ sw $v0, 0x78($s2)
.L802388C0:
/* 708560 802388C0 C6000004 */ lwc1 $f0, 4($s0)
/* 708564 802388C4 44801000 */ mtc1 $zero, $f2
/* 708568 802388C8 00000000 */ nop
/* 70856C 802388CC 4602003C */ c.lt.s $f0, $f2
/* 708570 802388D0 00000000 */ nop
/* 708574 802388D4 45000049 */ bc1f .L802389FC
/* 708578 802388D8 00000000 */ nop
/* 70857C 802388DC 8E420074 */ lw $v0, 0x74($s2)
/* 708580 802388E0 1040000C */ beqz $v0, .L80238914
/* 708584 802388E4 24020002 */ addiu $v0, $zero, 2
/* 708588 802388E8 0808E344 */ j .L80238D10
/* 70858C 802388EC AE420070 */ sw $v0, 0x70($s2)
.L802388F0:
/* 708590 802388F0 3C014334 */ lui $at, 0x4334
/* 708594 802388F4 4481A000 */ mtc1 $at, $f20
/* 708598 802388F8 0C00A6C9 */ jal clamp_angle
/* 70859C 802388FC 46146300 */ add.s $f12, $f12, $f20
/* 7085A0 80238900 4600A001 */ sub.s $f0, $f20, $f0
/* 7085A4 80238904 46140000 */ add.s $f0, $f0, $f20
/* 7085A8 80238908 24040004 */ addiu $a0, $zero, 4
/* 7085AC 8023890C 0808E267 */ j .L8023899C
/* 7085B0 80238910 E6000048 */ swc1 $f0, 0x48($s0)
.L80238914:
/* 7085B4 80238914 C60C0048 */ lwc1 $f12, 0x48($s0)
/* 7085B8 80238918 3C014387 */ lui $at, 0x4387
/* 7085BC 8023891C 44810000 */ mtc1 $at, $f0
/* 7085C0 80238920 00000000 */ nop
/* 7085C4 80238924 460C003E */ c.le.s $f0, $f12
/* 7085C8 80238928 00000000 */ nop
/* 7085CC 8023892C 45000008 */ bc1f .L80238950
/* 7085D0 80238930 00000000 */ nop
/* 7085D4 80238934 3C0143B4 */ lui $at, 0x43b4
/* 7085D8 80238938 44810000 */ mtc1 $at, $f0
/* 7085DC 8023893C 00000000 */ nop
/* 7085E0 80238940 4600603C */ c.lt.s $f12, $f0
/* 7085E4 80238944 00000000 */ nop
/* 7085E8 80238948 4501FFE9 */ bc1t .L802388F0
/* 7085EC 8023894C 00000000 */ nop
.L80238950:
/* 7085F0 80238950 460C103E */ c.le.s $f2, $f12
/* 7085F4 80238954 00000000 */ nop
/* 7085F8 80238958 45000017 */ bc1f .L802389B8
/* 7085FC 8023895C 00000000 */ nop
/* 708600 80238960 3C0142B4 */ lui $at, 0x42b4
/* 708604 80238964 44810000 */ mtc1 $at, $f0
/* 708608 80238968 00000000 */ nop
/* 70860C 8023896C 4600603C */ c.lt.s $f12, $f0
/* 708610 80238970 00000000 */ nop
/* 708614 80238974 45000010 */ bc1f .L802389B8
/* 708618 80238978 00000000 */ nop
/* 70861C 8023897C 3C014334 */ lui $at, 0x4334
/* 708620 80238980 4481A000 */ mtc1 $at, $f20
/* 708624 80238984 0C00A6C9 */ jal clamp_angle
/* 708628 80238988 46146300 */ add.s $f12, $f12, $f20
/* 70862C 8023898C 46140001 */ sub.s $f0, $f0, $f20
/* 708630 80238990 4600A501 */ sub.s $f20, $f20, $f0
/* 708634 80238994 24040004 */ addiu $a0, $zero, 4
/* 708638 80238998 E6140048 */ swc1 $f20, 0x48($s0)
.L8023899C:
/* 70863C 8023899C 0C00A67F */ jal rand_int
/* 708640 802389A0 00000000 */ nop
/* 708644 802389A4 2442FFFE */ addiu $v0, $v0, -2
/* 708648 802389A8 44820000 */ mtc1 $v0, $f0
/* 70864C 802389AC 00000000 */ nop
/* 708650 802389B0 46800020 */ cvt.s.w $f0, $f0
/* 708654 802389B4 E6000050 */ swc1 $f0, 0x50($s0)
.L802389B8:
/* 708658 802389B8 8E420078 */ lw $v0, 0x78($s2)
/* 70865C 802389BC 10400004 */ beqz $v0, .L802389D0
/* 708660 802389C0 2404029B */ addiu $a0, $zero, 0x29b
/* 708664 802389C4 C6000008 */ lwc1 $f0, 8($s0)
/* 708668 802389C8 0808E277 */ j .L802389DC
/* 70866C 802389CC E7A00010 */ swc1 $f0, 0x10($sp)
.L802389D0:
/* 708670 802389D0 C6000008 */ lwc1 $f0, 8($s0)
/* 708674 802389D4 2404029C */ addiu $a0, $zero, 0x29c
/* 708678 802389D8 E7A00010 */ swc1 $f0, 0x10($sp)
.L802389DC:
/* 70867C 802389DC 8E060000 */ lw $a2, ($s0)
/* 708680 802389E0 8E070004 */ lw $a3, 4($s0)
/* 708684 802389E4 0C052757 */ jal play_sound_at_position
/* 708688 802389E8 0000282D */ daddu $a1, $zero, $zero
/* 70868C 802389EC 8E430078 */ lw $v1, 0x78($s2)
/* 708690 802389F0 24020001 */ addiu $v0, $zero, 1
/* 708694 802389F4 00431023 */ subu $v0, $v0, $v1
/* 708698 802389F8 AE420078 */ sw $v0, 0x78($s2)
.L802389FC:
/* 70869C 802389FC C6020004 */ lwc1 $f2, 4($s0)
/* 7086A0 80238A00 3C014302 */ lui $at, 0x4302
/* 7086A4 80238A04 44810000 */ mtc1 $at, $f0
/* 7086A8 80238A08 00000000 */ nop
/* 7086AC 80238A0C 4602003C */ c.lt.s $f0, $f2
/* 7086B0 80238A10 00000000 */ nop
/* 7086B4 80238A14 4500004E */ bc1f .L80238B50
/* 7086B8 80238A18 00000000 */ nop
/* 7086BC 80238A1C 8E420074 */ lw $v0, 0x74($s2)
/* 7086C0 80238A20 1040000D */ beqz $v0, .L80238A58
/* 7086C4 80238A24 24020002 */ addiu $v0, $zero, 2
.L80238A28:
/* 7086C8 80238A28 0808E344 */ j .L80238D10
/* 7086CC 80238A2C AE420070 */ sw $v0, 0x70($s2)
.L80238A30:
/* 7086D0 80238A30 0C00A6C9 */ jal clamp_angle
/* 7086D4 80238A34 46006300 */ add.s $f12, $f12, $f0
/* 7086D8 80238A38 3C0143B4 */ lui $at, 0x43b4
/* 7086DC 80238A3C 44811000 */ mtc1 $at, $f2
/* 7086E0 80238A40 00000000 */ nop
/* 7086E4 80238A44 46001001 */ sub.s $f0, $f2, $f0
/* 7086E8 80238A48 46020000 */ add.s $f0, $f0, $f2
/* 7086EC 80238A4C 24040004 */ addiu $a0, $zero, 4
/* 7086F0 80238A50 0808E2BC */ j .L80238AF0
/* 7086F4 80238A54 E6000048 */ swc1 $f0, 0x48($s0)
.L80238A58:
/* 7086F8 80238A58 C60C0048 */ lwc1 $f12, 0x48($s0)
/* 7086FC 80238A5C 3C0142B4 */ lui $at, 0x42b4
/* 708700 80238A60 44810000 */ mtc1 $at, $f0
/* 708704 80238A64 00000000 */ nop
/* 708708 80238A68 460C003E */ c.le.s $f0, $f12
/* 70870C 80238A6C 00000000 */ nop
/* 708710 80238A70 45000008 */ bc1f .L80238A94
/* 708714 80238A74 00000000 */ nop
/* 708718 80238A78 3C014334 */ lui $at, 0x4334
/* 70871C 80238A7C 44810000 */ mtc1 $at, $f0
/* 708720 80238A80 00000000 */ nop
/* 708724 80238A84 4600603C */ c.lt.s $f12, $f0
/* 708728 80238A88 00000000 */ nop
/* 70872C 80238A8C 4501FFE8 */ bc1t .L80238A30
/* 708730 80238A90 00000000 */ nop
.L80238A94:
/* 708734 80238A94 3C014334 */ lui $at, 0x4334
/* 708738 80238A98 44811000 */ mtc1 $at, $f2
/* 70873C 80238A9C 00000000 */ nop
/* 708740 80238AA0 460C103E */ c.le.s $f2, $f12
/* 708744 80238AA4 00000000 */ nop
/* 708748 80238AA8 45000018 */ bc1f .L80238B0C
/* 70874C 80238AAC 00000000 */ nop
/* 708750 80238AB0 3C014387 */ lui $at, 0x4387
/* 708754 80238AB4 44810000 */ mtc1 $at, $f0
/* 708758 80238AB8 00000000 */ nop
/* 70875C 80238ABC 4600603C */ c.lt.s $f12, $f0
/* 708760 80238AC0 00000000 */ nop
/* 708764 80238AC4 45000011 */ bc1f .L80238B0C
/* 708768 80238AC8 00000000 */ nop
/* 70876C 80238ACC 0C00A6C9 */ jal clamp_angle
/* 708770 80238AD0 46026300 */ add.s $f12, $f12, $f2
/* 708774 80238AD4 3C0143B4 */ lui $at, 0x43b4
/* 708778 80238AD8 44811000 */ mtc1 $at, $f2
/* 70877C 80238ADC 00000000 */ nop
/* 708780 80238AE0 46020001 */ sub.s $f0, $f0, $f2
/* 708784 80238AE4 46001081 */ sub.s $f2, $f2, $f0
/* 708788 80238AE8 24040004 */ addiu $a0, $zero, 4
/* 70878C 80238AEC E6020048 */ swc1 $f2, 0x48($s0)
.L80238AF0:
/* 708790 80238AF0 0C00A67F */ jal rand_int
/* 708794 80238AF4 00000000 */ nop
/* 708798 80238AF8 2442FFFE */ addiu $v0, $v0, -2
/* 70879C 80238AFC 44820000 */ mtc1 $v0, $f0
/* 7087A0 80238B00 00000000 */ nop
/* 7087A4 80238B04 46800020 */ cvt.s.w $f0, $f0
/* 7087A8 80238B08 E6000050 */ swc1 $f0, 0x50($s0)
.L80238B0C:
/* 7087AC 80238B0C 8E420078 */ lw $v0, 0x78($s2)
/* 7087B0 80238B10 10400004 */ beqz $v0, .L80238B24
/* 7087B4 80238B14 2404029B */ addiu $a0, $zero, 0x29b
/* 7087B8 80238B18 C6000008 */ lwc1 $f0, 8($s0)
/* 7087BC 80238B1C 0808E2CC */ j .L80238B30
/* 7087C0 80238B20 E7A00010 */ swc1 $f0, 0x10($sp)
.L80238B24:
/* 7087C4 80238B24 C6000008 */ lwc1 $f0, 8($s0)
/* 7087C8 80238B28 2404029C */ addiu $a0, $zero, 0x29c
/* 7087CC 80238B2C E7A00010 */ swc1 $f0, 0x10($sp)
.L80238B30:
/* 7087D0 80238B30 8E060000 */ lw $a2, ($s0)
/* 7087D4 80238B34 8E070004 */ lw $a3, 4($s0)
/* 7087D8 80238B38 0C052757 */ jal play_sound_at_position
/* 7087DC 80238B3C 0000282D */ daddu $a1, $zero, $zero
/* 7087E0 80238B40 8E430078 */ lw $v1, 0x78($s2)
/* 7087E4 80238B44 24020001 */ addiu $v0, $zero, 1
/* 7087E8 80238B48 00431023 */ subu $v0, $v0, $v1
/* 7087EC 80238B4C AE420078 */ sw $v0, 0x78($s2)
.L80238B50:
/* 7087F0 80238B50 C6000050 */ lwc1 $f0, 0x50($s0)
/* 7087F4 80238B54 3C013FE0 */ lui $at, 0x3fe0
/* 7087F8 80238B58 44811800 */ mtc1 $at, $f3
/* 7087FC 80238B5C 44801000 */ mtc1 $zero, $f2
/* 708800 80238B60 46000021 */ cvt.d.s $f0, $f0
/* 708804 80238B64 46220002 */ mul.d $f0, $f0, $f2
/* 708808 80238B68 00000000 */ nop
/* 70880C 80238B6C C60C0048 */ lwc1 $f12, 0x48($s0)
/* 708810 80238B70 46006321 */ cvt.d.s $f12, $f12
/* 708814 80238B74 46206300 */ add.d $f12, $f12, $f0
/* 708818 80238B78 0C00A6C9 */ jal clamp_angle
/* 70881C 80238B7C 46206320 */ cvt.s.d $f12, $f12
/* 708820 80238B80 3C01439D */ lui $at, 0x439d
/* 708824 80238B84 34218000 */ ori $at, $at, 0x8000
/* 708828 80238B88 44816000 */ mtc1 $at, $f12
/* 70882C 80238B8C 00000000 */ nop
/* 708830 80238B90 460C0301 */ sub.s $f12, $f0, $f12
/* 708834 80238B94 0C00A6C9 */ jal clamp_angle
/* 708838 80238B98 E6000048 */ swc1 $f0, 0x48($s0)
/* 70883C 80238B9C C6220170 */ lwc1 $f2, 0x170($s1)
/* 708840 80238BA0 3C018024 */ lui $at, %hi(D_8023C068_70BD08)
/* 708844 80238BA4 D424C068 */ ldc1 $f4, %lo(D_8023C068_70BD08)($at)
/* 708848 80238BA8 460010A1 */ cvt.d.s $f2, $f2
/* 70884C 80238BAC 46241081 */ sub.d $f2, $f2, $f4
/* 708850 80238BB0 E6200164 */ swc1 $f0, 0x164($s1)
/* 708854 80238BB4 462010A0 */ cvt.s.d $f2, $f2
/* 708858 80238BB8 E6220170 */ swc1 $f2, 0x170($s1)
/* 70885C 80238BBC 46001006 */ mov.s $f0, $f2
/* 708860 80238BC0 E6220174 */ swc1 $f2, 0x174($s1)
/* 708864 80238BC4 E6220178 */ swc1 $f2, 0x178($s1)
/* 708868 80238BC8 3C013FF0 */ lui $at, 0x3ff0
/* 70886C 80238BCC 44811800 */ mtc1 $at, $f3
/* 708870 80238BD0 44801000 */ mtc1 $zero, $f2
/* 708874 80238BD4 46000021 */ cvt.d.s $f0, $f0
/* 708878 80238BD8 4622003C */ c.lt.d $f0, $f2
/* 70887C 80238BDC 00000000 */ nop
/* 708880 80238BE0 45000007 */ bc1f .L80238C00
/* 708884 80238BE4 00000000 */ nop
/* 708888 80238BE8 3C013F80 */ lui $at, 0x3f80
/* 70888C 80238BEC 44810000 */ mtc1 $at, $f0
/* 708890 80238BF0 00000000 */ nop
/* 708894 80238BF4 E6200170 */ swc1 $f0, 0x170($s1)
/* 708898 80238BF8 E6200174 */ swc1 $f0, 0x174($s1)
/* 70889C 80238BFC E6200178 */ swc1 $f0, 0x178($s1)
.L80238C00:
/* 7088A0 80238C00 C6220170 */ lwc1 $f2, 0x170($s1)
/* 7088A4 80238C04 3C01C170 */ lui $at, 0xc170
/* 7088A8 80238C08 44810000 */ mtc1 $at, $f0
/* 7088AC 80238C0C 00000000 */ nop
/* 7088B0 80238C10 46001082 */ mul.s $f2, $f2, $f0
/* 7088B4 80238C14 00000000 */ nop
/* 7088B8 80238C18 27A40018 */ addiu $a0, $sp, 0x18
/* 7088BC 80238C1C 8E070048 */ lw $a3, 0x48($s0)
/* 7088C0 80238C20 4480A000 */ mtc1 $zero, $f20
/* 7088C4 80238C24 44061000 */ mfc1 $a2, $f2
/* 7088C8 80238C28 27A5001C */ addiu $a1, $sp, 0x1c
/* 7088CC 80238C2C E7B40018 */ swc1 $f20, 0x18($sp)
/* 7088D0 80238C30 0C00A7E7 */ jal add_vec2D_polar
/* 7088D4 80238C34 E7B4001C */ swc1 $f20, 0x1c($sp)
/* 7088D8 80238C38 C6000000 */ lwc1 $f0, ($s0)
/* 7088DC 80238C3C C7A20018 */ lwc1 $f2, 0x18($sp)
/* 7088E0 80238C40 3C038024 */ lui $v1, %hi(D_8023C070)
/* 7088E4 80238C44 8C63C070 */ lw $v1, %lo(D_8023C070)($v1)
/* 7088E8 80238C48 46020000 */ add.s $f0, $f0, $f2
/* 7088EC 80238C4C 8C62000C */ lw $v0, 0xc($v1)
/* 7088F0 80238C50 E4400004 */ swc1 $f0, 4($v0)
/* 7088F4 80238C54 C6000004 */ lwc1 $f0, 4($s0)
/* 7088F8 80238C58 C7A2001C */ lwc1 $f2, 0x1c($sp)
/* 7088FC 80238C5C 8C62000C */ lw $v0, 0xc($v1)
/* 708900 80238C60 46020000 */ add.s $f0, $f0, $f2
/* 708904 80238C64 3C0140A0 */ lui $at, 0x40a0
/* 708908 80238C68 44811000 */ mtc1 $at, $f2
/* 70890C 80238C6C E4400008 */ swc1 $f0, 8($v0)
/* 708910 80238C70 C6000008 */ lwc1 $f0, 8($s0)
/* 708914 80238C74 46020000 */ add.s $f0, $f0, $f2
/* 708918 80238C78 8C62000C */ lw $v0, 0xc($v1)
/* 70891C 80238C7C E440000C */ swc1 $f0, 0xc($v0)
/* 708920 80238C80 8C62000C */ lw $v0, 0xc($v1)
/* 708924 80238C84 C6000048 */ lwc1 $f0, 0x48($s0)
/* 708928 80238C88 E4400038 */ swc1 $f0, 0x38($v0)
/* 70892C 80238C8C 8C62000C */ lw $v0, 0xc($v1)
/* 708930 80238C90 C6200170 */ lwc1 $f0, 0x170($s1)
/* 708934 80238C94 E440003C */ swc1 $f0, 0x3c($v0)
/* 708938 80238C98 8C62000C */ lw $v0, 0xc($v1)
/* 70893C 80238C9C C6200170 */ lwc1 $f0, 0x170($s1)
/* 708940 80238CA0 E4400040 */ swc1 $f0, 0x40($v0)
/* 708944 80238CA4 86030064 */ lh $v1, 0x64($s0)
/* 708948 80238CA8 24020046 */ addiu $v0, $zero, 0x46
/* 70894C 80238CAC 14620010 */ bne $v1, $v0, .L80238CF0
/* 708950 80238CB0 2404029D */ addiu $a0, $zero, 0x29d
/* 708954 80238CB4 4406A000 */ mfc1 $a2, $f20
/* 708958 80238CB8 4407A000 */ mfc1 $a3, $f20
/* 70895C 80238CBC 0000282D */ daddu $a1, $zero, $zero
/* 708960 80238CC0 0C052757 */ jal play_sound_at_position
/* 708964 80238CC4 E7B40010 */ swc1 $f20, 0x10($sp)
/* 708968 80238CC8 0000202D */ daddu $a0, $zero, $zero
/* 70896C 80238CCC 3C05C248 */ lui $a1, 0xc248
/* 708970 80238CD0 3C0641A0 */ lui $a2, 0x41a0
/* 708974 80238CD4 4407A000 */ mfc1 $a3, $f20
/* 708978 80238CD8 3C013F80 */ lui $at, 0x3f80
/* 70897C 80238CDC 44810000 */ mtc1 $at, $f0
/* 708980 80238CE0 24020078 */ addiu $v0, $zero, 0x78
/* 708984 80238CE4 AFA20014 */ sw $v0, 0x14($sp)
/* 708988 80238CE8 0C01C6DC */ jal func_80071B70
/* 70898C 80238CEC E7A00010 */ swc1 $f0, 0x10($sp)
.L80238CF0:
/* 708990 80238CF0 86020064 */ lh $v0, 0x64($s0)
/* 708994 80238CF4 96030064 */ lhu $v1, 0x64($s0)
/* 708998 80238CF8 10400003 */ beqz $v0, .L80238D08
/* 70899C 80238CFC 2462FFFF */ addiu $v0, $v1, -1
/* 7089A0 80238D00 0808E344 */ j .L80238D10
/* 7089A4 80238D04 A6020064 */ sh $v0, 0x64($s0)
.L80238D08:
/* 7089A8 80238D08 24020001 */ addiu $v0, $zero, 1
/* 7089AC 80238D0C AE420074 */ sw $v0, 0x74($s2)
.L80238D10:
/* 7089B0 80238D10 8E430070 */ lw $v1, 0x70($s2)
/* 7089B4 80238D14 24020002 */ addiu $v0, $zero, 2
.L80238D18:
/* 7089B8 80238D18 10620005 */ beq $v1, $v0, .L80238D30
/* 7089BC 80238D1C 24020003 */ addiu $v0, $zero, 3
/* 7089C0 80238D20 10620008 */ beq $v1, $v0, .L80238D44
/* 7089C4 80238D24 0200202D */ daddu $a0, $s0, $zero
/* 7089C8 80238D28 0808E374 */ j .L80238DD0
/* 7089CC 80238D2C 00000000 */ nop
.L80238D30:
/* 7089D0 80238D30 24020005 */ addiu $v0, $zero, 5
/* 7089D4 80238D34 A6020064 */ sh $v0, 0x64($s0)
/* 7089D8 80238D38 24020003 */ addiu $v0, $zero, 3
/* 7089DC 80238D3C AE420070 */ sw $v0, 0x70($s2)
/* 7089E0 80238D40 0200202D */ daddu $a0, $s0, $zero
.L80238D44:
/* 7089E4 80238D44 8E060040 */ lw $a2, 0x40($s0)
/* 7089E8 80238D48 8E070048 */ lw $a3, 0x48($s0)
/* 7089EC 80238D4C 0C00A7E7 */ jal add_vec2D_polar
/* 7089F0 80238D50 26050004 */ addiu $a1, $s0, 4
/* 7089F4 80238D54 3C048024 */ lui $a0, %hi(D_8023C070)
/* 7089F8 80238D58 8C84C070 */ lw $a0, %lo(D_8023C070)($a0)
/* 7089FC 80238D5C C6000000 */ lwc1 $f0, ($s0)
/* 708A00 80238D60 8C82000C */ lw $v0, 0xc($a0)
/* 708A04 80238D64 E4400004 */ swc1 $f0, 4($v0)
/* 708A08 80238D68 8C82000C */ lw $v0, 0xc($a0)
/* 708A0C 80238D6C C6000004 */ lwc1 $f0, 4($s0)
/* 708A10 80238D70 E4400008 */ swc1 $f0, 8($v0)
/* 708A14 80238D74 8C82000C */ lw $v0, 0xc($a0)
/* 708A18 80238D78 C6000008 */ lwc1 $f0, 8($s0)
/* 708A1C 80238D7C E440000C */ swc1 $f0, 0xc($v0)
/* 708A20 80238D80 8C82000C */ lw $v0, 0xc($a0)
/* 708A24 80238D84 C6000048 */ lwc1 $f0, 0x48($s0)
/* 708A28 80238D88 E4400038 */ swc1 $f0, 0x38($v0)
/* 708A2C 80238D8C 8C82000C */ lw $v0, 0xc($a0)
/* 708A30 80238D90 C6200170 */ lwc1 $f0, 0x170($s1)
/* 708A34 80238D94 E440003C */ swc1 $f0, 0x3c($v0)
/* 708A38 80238D98 8C82000C */ lw $v0, 0xc($a0)
/* 708A3C 80238D9C C6200170 */ lwc1 $f0, 0x170($s1)
/* 708A40 80238DA0 E4400040 */ swc1 $f0, 0x40($v0)
/* 708A44 80238DA4 86020064 */ lh $v0, 0x64($s0)
/* 708A48 80238DA8 96030064 */ lhu $v1, 0x64($s0)
/* 708A4C 80238DAC 14400007 */ bnez $v0, .L80238DCC
/* 708A50 80238DB0 2462FFFF */ addiu $v0, $v1, -1
/* 708A54 80238DB4 AE200164 */ sw $zero, 0x164($s1)
/* 708A58 80238DB8 8C830000 */ lw $v1, ($a0)
/* 708A5C 80238DBC 24020002 */ addiu $v0, $zero, 2
/* 708A60 80238DC0 34630010 */ ori $v1, $v1, 0x10
/* 708A64 80238DC4 0808E385 */ j .L80238E14
/* 708A68 80238DC8 AC830000 */ sw $v1, ($a0)
.L80238DCC:
/* 708A6C 80238DCC A6020064 */ sh $v0, 0x64($s0)
.L80238DD0:
/* 708A70 80238DD0 C6000000 */ lwc1 $f0, ($s0)
/* 708A74 80238DD4 3C013F80 */ lui $at, 0x3f80
/* 708A78 80238DD8 44811000 */ mtc1 $at, $f2
/* 708A7C 80238DDC E6200144 */ swc1 $f0, 0x144($s1)
/* 708A80 80238DE0 C6000004 */ lwc1 $f0, 4($s0)
/* 708A84 80238DE4 E6200148 */ swc1 $f0, 0x148($s1)
/* 708A88 80238DE8 C6000008 */ lwc1 $f0, 8($s0)
/* 708A8C 80238DEC 2402000A */ addiu $v0, $zero, 0xa
/* 708A90 80238DF0 E620014C */ swc1 $f0, 0x14c($s1)
/* 708A94 80238DF4 E7A20010 */ swc1 $f2, 0x10($sp)
/* 708A98 80238DF8 AFA20014 */ sw $v0, 0x14($sp)
/* 708A9C 80238DFC 8E250144 */ lw $a1, 0x144($s1)
/* 708AA0 80238E00 8E260148 */ lw $a2, 0x148($s1)
/* 708AA4 80238E04 8E27014C */ lw $a3, 0x14c($s1)
/* 708AA8 80238E08 0C01C70C */ jal func_80071C30
/* 708AAC 80238E0C 24040003 */ addiu $a0, $zero, 3
/* 708AB0 80238E10 0000102D */ daddu $v0, $zero, $zero
.L80238E14:
/* 708AB4 80238E14 8FBF002C */ lw $ra, 0x2c($sp)
/* 708AB8 80238E18 8FB20028 */ lw $s2, 0x28($sp)
/* 708ABC 80238E1C 8FB10024 */ lw $s1, 0x24($sp)
/* 708AC0 80238E20 8FB00020 */ lw $s0, 0x20($sp)
/* 708AC4 80238E24 D7B40030 */ ldc1 $f20, 0x30($sp)
/* 708AC8 80238E28 03E00008 */ jr $ra
/* 708ACC 80238E2C 27BD0038 */ addiu $sp, $sp, 0x38

View File

@ -0,0 +1,44 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238E30_708AD0
/* 708AD0 80238E30 3C014008 */ lui $at, 0x4008
/* 708AD4 80238E34 44811800 */ mtc1 $at, $f3
/* 708AD8 80238E38 44801000 */ mtc1 $zero, $f2
/* 708ADC 80238E3C C4800084 */ lwc1 $f0, 0x84($a0)
/* 708AE0 80238E40 46800021 */ cvt.d.w $f0, $f0
/* 708AE4 80238E44 46220002 */ mul.d $f0, $f0, $f2
/* 708AE8 80238E48 00000000 */ nop
/* 708AEC 80238E4C 3C014059 */ lui $at, 0x4059
/* 708AF0 80238E50 44811800 */ mtc1 $at, $f3
/* 708AF4 80238E54 44801000 */ mtc1 $zero, $f2
/* 708AF8 80238E58 00000000 */ nop
/* 708AFC 80238E5C 46220003 */ div.d $f0, $f0, $f2
/* 708B00 80238E60 3C013FF0 */ lui $at, 0x3ff0
/* 708B04 80238E64 44811800 */ mtc1 $at, $f3
/* 708B08 80238E68 44801000 */ mtc1 $zero, $f2
/* 708B0C 80238E6C 3C02800E */ lui $v0, %hi(gBattleStatus+0xDC)
/* 708B10 80238E70 8C42C14C */ lw $v0, %lo(gBattleStatus+0xDC)($v0)
/* 708B14 80238E74 46220000 */ add.d $f0, $f0, $f2
/* 708B18 80238E78 C44A0170 */ lwc1 $f10, 0x170($v0)
/* 708B1C 80238E7C 46200020 */ cvt.s.d $f0, $f0
/* 708B20 80238E80 460A0081 */ sub.s $f2, $f0, $f10
/* 708B24 80238E84 3C014040 */ lui $at, 0x4040
/* 708B28 80238E88 44814000 */ mtc1 $at, $f8
/* 708B2C 80238E8C 00000000 */ nop
/* 708B30 80238E90 46081083 */ div.s $f2, $f2, $f8
/* 708B34 80238E94 46025280 */ add.s $f10, $f10, $f2
/* 708B38 80238E98 C4460174 */ lwc1 $f6, 0x174($v0)
/* 708B3C 80238E9C 46060081 */ sub.s $f2, $f0, $f6
/* 708B40 80238EA0 C4440178 */ lwc1 $f4, 0x178($v0)
/* 708B44 80238EA4 46040001 */ sub.s $f0, $f0, $f4
/* 708B48 80238EA8 46081083 */ div.s $f2, $f2, $f8
/* 708B4C 80238EAC 46023180 */ add.s $f6, $f6, $f2
/* 708B50 80238EB0 46080003 */ div.s $f0, $f0, $f8
/* 708B54 80238EB4 46002100 */ add.s $f4, $f4, $f0
/* 708B58 80238EB8 E44A0170 */ swc1 $f10, 0x170($v0)
/* 708B5C 80238EBC E4460174 */ swc1 $f6, 0x174($v0)
/* 708B60 80238EC0 E4440178 */ swc1 $f4, 0x178($v0)
/* 708B64 80238EC4 03E00008 */ jr $ra
/* 708B68 80238EC8 24020002 */ addiu $v0, $zero, 2
/* 708B6C 80238ECC 00000000 */ nop

View File

@ -0,0 +1,16 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238000_714CF0
/* 714CF0 80238000 3C02800E */ lui $v0, %hi(gBattleStatus+0x4)
/* 714CF4 80238004 8C42C074 */ lw $v0, %lo(gBattleStatus+0x4)($v0)
/* 714CF8 80238008 30420040 */ andi $v0, $v0, 0x40
/* 714CFC 8023800C 10400003 */ beqz $v0, .L8023801C
/* 714D00 80238010 24020001 */ addiu $v0, $zero, 1
/* 714D04 80238014 0808E008 */ j .L80238020
/* 714D08 80238018 AC820084 */ sw $v0, 0x84($a0)
.L8023801C:
/* 714D0C 8023801C AC800084 */ sw $zero, 0x84($a0)
.L80238020:
/* 714D10 80238020 03E00008 */ jr $ra
/* 714D14 80238024 24020002 */ addiu $v0, $zero, 2

View File

@ -0,0 +1,46 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238028_714D18
/* 714D18 80238028 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 714D1C 8023802C AFBF0018 */ sw $ra, 0x18($sp)
/* 714D20 80238030 AFB10014 */ sw $s1, 0x14($sp)
/* 714D24 80238034 AFB00010 */ sw $s0, 0x10($sp)
/* 714D28 80238038 0C09A75B */ jal get_actor
/* 714D2C 8023803C 8C840148 */ lw $a0, 0x148($a0)
/* 714D30 80238040 3C108024 */ lui $s0, %hi(D_802382F8_714FE8)
/* 714D34 80238044 261082F8 */ addiu $s0, $s0, %lo(D_802382F8_714FE8)
/* 714D38 80238048 8E030000 */ lw $v1, ($s0)
/* 714D3C 8023804C 0040882D */ daddu $s1, $v0, $zero
/* 714D40 80238050 24630012 */ addiu $v1, $v1, 0x12
/* 714D44 80238054 44836000 */ mtc1 $v1, $f12
/* 714D48 80238058 00000000 */ nop
/* 714D4C 8023805C 46806320 */ cvt.s.w $f12, $f12
/* 714D50 80238060 0C00A6C9 */ jal clamp_angle
/* 714D54 80238064 AE030000 */ sw $v1, ($s0)
/* 714D58 80238068 4600008D */ trunc.w.s $f2, $f0
/* 714D5C 8023806C 44021000 */ mfc1 $v0, $f2
/* 714D60 80238070 3C0140C9 */ lui $at, 0x40c9
/* 714D64 80238074 34210FD0 */ ori $at, $at, 0xfd0
/* 714D68 80238078 44810000 */ mtc1 $at, $f0
/* 714D6C 8023807C 44826000 */ mtc1 $v0, $f12
/* 714D70 80238080 00000000 */ nop
/* 714D74 80238084 46806320 */ cvt.s.w $f12, $f12
/* 714D78 80238088 46006302 */ mul.s $f12, $f12, $f0
/* 714D7C 8023808C 00000000 */ nop
/* 714D80 80238090 3C0143B4 */ lui $at, 0x43b4
/* 714D84 80238094 44810000 */ mtc1 $at, $f0
/* 714D88 80238098 AE020000 */ sw $v0, ($s0)
/* 714D8C 8023809C 0C00A85B */ jal sin_rad
/* 714D90 802380A0 46006303 */ div.s $f12, $f12, $f0
/* 714D94 802380A4 46000000 */ add.s $f0, $f0, $f0
/* 714D98 802380A8 4600008D */ trunc.w.s $f2, $f0
/* 714D9C 802380AC 44031000 */ mfc1 $v1, $f2
/* 714DA0 802380B0 00000000 */ nop
/* 714DA4 802380B4 A223019A */ sb $v1, 0x19a($s1)
/* 714DA8 802380B8 8FBF0018 */ lw $ra, 0x18($sp)
/* 714DAC 802380BC 8FB10014 */ lw $s1, 0x14($sp)
/* 714DB0 802380C0 8FB00010 */ lw $s0, 0x10($sp)
/* 714DB4 802380C4 24020002 */ addiu $v0, $zero, 2
/* 714DB8 802380C8 03E00008 */ jr $ra
/* 714DBC 802380CC 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -0,0 +1,236 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238000_703AF0
/* 703AF0 80238000 27BDFFB0 */ addiu $sp, $sp, -0x50
/* 703AF4 80238004 AFB3002C */ sw $s3, 0x2c($sp)
/* 703AF8 80238008 3C13800E */ lui $s3, %hi(gBattleStatus)
/* 703AFC 8023800C 2673C070 */ addiu $s3, $s3, %lo(gBattleStatus)
/* 703B00 80238010 AFBF0030 */ sw $ra, 0x30($sp)
/* 703B04 80238014 AFB20028 */ sw $s2, 0x28($sp)
/* 703B08 80238018 AFB10024 */ sw $s1, 0x24($sp)
/* 703B0C 8023801C AFB00020 */ sw $s0, 0x20($sp)
/* 703B10 80238020 F7B80048 */ sdc1 $f24, 0x48($sp)
/* 703B14 80238024 F7B60040 */ sdc1 $f22, 0x40($sp)
/* 703B18 80238028 F7B40038 */ sdc1 $f20, 0x38($sp)
/* 703B1C 8023802C 8E7200DC */ lw $s2, 0xdc($s3)
/* 703B20 80238030 10A00022 */ beqz $a1, .L802380BC
/* 703B24 80238034 24110005 */ addiu $s1, $zero, 5
/* 703B28 80238038 3C013F80 */ lui $at, 0x3f80
/* 703B2C 8023803C 4481A000 */ mtc1 $at, $f20
/* 703B30 80238040 AFB10014 */ sw $s1, 0x14($sp)
/* 703B34 80238044 AFA00018 */ sw $zero, 0x18($sp)
/* 703B38 80238048 E7B40010 */ swc1 $f20, 0x10($sp)
/* 703B3C 8023804C 8E450144 */ lw $a1, 0x144($s2)
/* 703B40 80238050 8E460148 */ lw $a2, 0x148($s2)
/* 703B44 80238054 8E47014C */ lw $a3, 0x14c($s2)
/* 703B48 80238058 24100001 */ addiu $s0, $zero, 1
/* 703B4C 8023805C 3C018024 */ lui $at, %hi(D_8023C1BC)
/* 703B50 80238060 AC30C1BC */ sw $s0, %lo(D_8023C1BC)($at)
/* 703B54 80238064 3C018024 */ lui $at, %hi(D_8023C1C0)
/* 703B58 80238068 AC20C1C0 */ sw $zero, %lo(D_8023C1C0)($at)
/* 703B5C 8023806C 3C018024 */ lui $at, %hi(D_8023C1C4)
/* 703B60 80238070 AC30C1C4 */ sw $s0, %lo(D_8023C1C4)($at)
/* 703B64 80238074 3C018024 */ lui $at, %hi(D_8023C1C8)
/* 703B68 80238078 AC20C1C8 */ sw $zero, %lo(D_8023C1C8)($at)
/* 703B6C 8023807C 0C01C8EC */ jal func_800723B0
/* 703B70 80238080 0000202D */ daddu $a0, $zero, $zero
/* 703B74 80238084 E7B40010 */ swc1 $f20, 0x10($sp)
/* 703B78 80238088 AFB10014 */ sw $s1, 0x14($sp)
/* 703B7C 8023808C AFA00018 */ sw $zero, 0x18($sp)
/* 703B80 80238090 8E450144 */ lw $a1, 0x144($s2)
/* 703B84 80238094 3C06C47A */ lui $a2, 0xc47a
/* 703B88 80238098 8E47014C */ lw $a3, 0x14c($s2)
/* 703B8C 8023809C 3C018024 */ lui $at, %hi(D_8023C1CC)
/* 703B90 802380A0 AC22C1CC */ sw $v0, %lo(D_8023C1CC)($at)
/* 703B94 802380A4 0C01C8EC */ jal func_800723B0
/* 703B98 802380A8 0200202D */ daddu $a0, $s0, $zero
/* 703B9C 802380AC 3C018024 */ lui $at, %hi(D_8023C1D0)
/* 703BA0 802380B0 AC22C1D0 */ sw $v0, %lo(D_8023C1D0)($at)
/* 703BA4 802380B4 3C018024 */ lui $at, %hi(D_8023C1B8)
/* 703BA8 802380B8 AC30C1B8 */ sw $s0, %lo(D_8023C1B8)($at)
.L802380BC:
/* 703BAC 802380BC 3C028024 */ lui $v0, %hi(D_8023C1B8)
/* 703BB0 802380C0 8C42C1B8 */ lw $v0, %lo(D_8023C1B8)($v0)
/* 703BB4 802380C4 104000A0 */ beqz $v0, .L80238348
/* 703BB8 802380C8 24020002 */ addiu $v0, $zero, 2
/* 703BBC 802380CC 3C028024 */ lui $v0, %hi(D_8023C1BC)
/* 703BC0 802380D0 8C42C1BC */ lw $v0, %lo(D_8023C1BC)($v0)
/* 703BC4 802380D4 1040000C */ beqz $v0, .L80238108
/* 703BC8 802380D8 00000000 */ nop
/* 703BCC 802380DC 3C108024 */ lui $s0, %hi(D_8023C1C0)
/* 703BD0 802380E0 2610C1C0 */ addiu $s0, $s0, %lo(D_8023C1C0)
/* 703BD4 802380E4 8E020000 */ lw $v0, ($s0)
/* 703BD8 802380E8 2442000F */ addiu $v0, $v0, 0xf
/* 703BDC 802380EC 44826000 */ mtc1 $v0, $f12
/* 703BE0 802380F0 00000000 */ nop
/* 703BE4 802380F4 46806320 */ cvt.s.w $f12, $f12
/* 703BE8 802380F8 0C00A6C9 */ jal clamp_angle
/* 703BEC 802380FC AE020000 */ sw $v0, ($s0)
/* 703BF0 80238100 4600018D */ trunc.w.s $f6, $f0
/* 703BF4 80238104 E6060000 */ swc1 $f6, ($s0)
.L80238108:
/* 703BF8 80238108 3C0140C9 */ lui $at, 0x40c9
/* 703BFC 8023810C 34210FD0 */ ori $at, $at, 0xfd0
/* 703C00 80238110 44810000 */ mtc1 $at, $f0
/* 703C04 80238114 3C018024 */ lui $at, %hi(D_8023C1C0)
/* 703C08 80238118 C42CC1C0 */ lwc1 $f12, %lo(D_8023C1C0)($at)
/* 703C0C 8023811C 46806320 */ cvt.s.w $f12, $f12
/* 703C10 80238120 46006302 */ mul.s $f12, $f12, $f0
/* 703C14 80238124 00000000 */ nop
/* 703C18 80238128 3C0143B4 */ lui $at, 0x43b4
/* 703C1C 8023812C 44810000 */ mtc1 $at, $f0
/* 703C20 80238130 0C00A85B */ jal sin_rad
/* 703C24 80238134 46006303 */ div.s $f12, $f12, $f0
/* 703C28 80238138 3C014040 */ lui $at, 0x4040
/* 703C2C 8023813C 44811000 */ mtc1 $at, $f2
/* 703C30 80238140 00000000 */ nop
/* 703C34 80238144 46020002 */ mul.s $f0, $f0, $f2
/* 703C38 80238148 00000000 */ nop
/* 703C3C 8023814C 86420152 */ lh $v0, 0x152($s2)
/* 703C40 80238150 3C014140 */ lui $at, 0x4140
/* 703C44 80238154 44812000 */ mtc1 $at, $f4
/* 703C48 80238158 44821000 */ mtc1 $v0, $f2
/* 703C4C 8023815C 00000000 */ nop
/* 703C50 80238160 468010A0 */ cvt.s.w $f2, $f2
/* 703C54 80238164 4600018D */ trunc.w.s $f6, $f0
/* 703C58 80238168 44033000 */ mfc1 $v1, $f6
/* 703C5C 8023816C 00000000 */ nop
/* 703C60 80238170 00031600 */ sll $v0, $v1, 0x18
/* 703C64 80238174 C6400148 */ lwc1 $f0, 0x148($s2)
/* 703C68 80238178 00021603 */ sra $v0, $v0, 0x18
/* 703C6C 8023817C A243019A */ sb $v1, 0x19a($s2)
/* 703C70 80238180 46020000 */ add.s $f0, $f0, $f2
/* 703C74 80238184 44821000 */ mtc1 $v0, $f2
/* 703C78 80238188 00000000 */ nop
/* 703C7C 8023818C 468010A0 */ cvt.s.w $f2, $f2
/* 703C80 80238190 86420150 */ lh $v0, 0x150($s2)
/* 703C84 80238194 46020000 */ add.s $f0, $f0, $f2
/* 703C88 80238198 44821000 */ mtc1 $v0, $f2
/* 703C8C 8023819C 00000000 */ nop
/* 703C90 802381A0 468010A0 */ cvt.s.w $f2, $f2
/* 703C94 802381A4 8E620004 */ lw $v0, 4($s3)
/* 703C98 802381A8 86430154 */ lh $v1, 0x154($s2)
/* 703C9C 802381AC 30420014 */ andi $v0, $v0, 0x14
/* 703CA0 802381B0 46040580 */ add.s $f22, $f0, $f4
/* 703CA4 802381B4 C6400144 */ lwc1 $f0, 0x144($s2)
/* 703CA8 802381B8 44832000 */ mtc1 $v1, $f4
/* 703CAC 802381BC 00000000 */ nop
/* 703CB0 802381C0 46802120 */ cvt.s.w $f4, $f4
/* 703CB4 802381C4 46020500 */ add.s $f20, $f0, $f2
/* 703CB8 802381C8 C640014C */ lwc1 $f0, 0x14c($s2)
/* 703CBC 802381CC 24030004 */ addiu $v1, $zero, 4
/* 703CC0 802381D0 14430003 */ bne $v0, $v1, .L802381E0
/* 703CC4 802381D4 46040600 */ add.s $f24, $f0, $f4
/* 703CC8 802381D8 3C01C47A */ lui $at, 0xc47a
/* 703CCC 802381DC 4481B000 */ mtc1 $at, $f22
.L802381E0:
/* 703CD0 802381E0 3C028024 */ lui $v0, %hi(D_8023C1C4)
/* 703CD4 802381E4 8C42C1C4 */ lw $v0, %lo(D_8023C1C4)($v0)
/* 703CD8 802381E8 10400044 */ beqz $v0, .L802382FC
/* 703CDC 802381EC 00000000 */ nop
/* 703CE0 802381F0 3C038024 */ lui $v1, %hi(D_8023C1C8)
/* 703CE4 802381F4 8C63C1C8 */ lw $v1, %lo(D_8023C1C8)($v1)
/* 703CE8 802381F8 10600005 */ beqz $v1, .L80238210
/* 703CEC 802381FC 24020001 */ addiu $v0, $zero, 1
/* 703CF0 80238200 1062001D */ beq $v1, $v0, .L80238278
/* 703CF4 80238204 0000102D */ daddu $v0, $zero, $zero
/* 703CF8 80238208 0808E0D2 */ j .L80238348
/* 703CFC 8023820C 00000000 */ nop
.L80238210:
/* 703D00 80238210 3C108024 */ lui $s0, %hi(D_8023C1CC)
/* 703D04 80238214 2610C1CC */ addiu $s0, $s0, %lo(D_8023C1CC)
/* 703D08 80238218 8E020000 */ lw $v0, ($s0)
/* 703D0C 8023821C 1440000C */ bnez $v0, .L80238250
/* 703D10 80238220 0000202D */ daddu $a0, $zero, $zero
/* 703D14 80238224 4405A000 */ mfc1 $a1, $f20
/* 703D18 80238228 4406B000 */ mfc1 $a2, $f22
/* 703D1C 8023822C 4407C000 */ mfc1 $a3, $f24
/* 703D20 80238230 3C013F80 */ lui $at, 0x3f80
/* 703D24 80238234 44810000 */ mtc1 $at, $f0
/* 703D28 80238238 24020005 */ addiu $v0, $zero, 5
/* 703D2C 8023823C AFA20014 */ sw $v0, 0x14($sp)
/* 703D30 80238240 AFA00018 */ sw $zero, 0x18($sp)
/* 703D34 80238244 0C01C8EC */ jal func_800723B0
/* 703D38 80238248 E7A00010 */ swc1 $f0, 0x10($sp)
/* 703D3C 8023824C AE020000 */ sw $v0, ($s0)
.L80238250:
/* 703D40 80238250 3C048024 */ lui $a0, %hi(D_8023C1D0)
/* 703D44 80238254 2484C1D0 */ addiu $a0, $a0, %lo(D_8023C1D0)
/* 703D48 80238258 8C830000 */ lw $v1, ($a0)
/* 703D4C 8023825C 1060001F */ beqz $v1, .L802382DC
/* 703D50 80238260 00000000 */ nop
/* 703D54 80238264 8C620000 */ lw $v0, ($v1)
/* 703D58 80238268 AC800000 */ sw $zero, ($a0)
/* 703D5C 8023826C 34420010 */ ori $v0, $v0, 0x10
/* 703D60 80238270 0808E0B7 */ j .L802382DC
/* 703D64 80238274 AC620000 */ sw $v0, ($v1)
.L80238278:
/* 703D68 80238278 3C048024 */ lui $a0, %hi(D_8023C1CC)
/* 703D6C 8023827C 2484C1CC */ addiu $a0, $a0, %lo(D_8023C1CC)
/* 703D70 80238280 8C830000 */ lw $v1, ($a0)
/* 703D74 80238284 10600005 */ beqz $v1, .L8023829C
/* 703D78 80238288 00000000 */ nop
/* 703D7C 8023828C 8C620000 */ lw $v0, ($v1)
/* 703D80 80238290 AC800000 */ sw $zero, ($a0)
/* 703D84 80238294 34420010 */ ori $v0, $v0, 0x10
/* 703D88 80238298 AC620000 */ sw $v0, ($v1)
.L8023829C:
/* 703D8C 8023829C 3C108024 */ lui $s0, %hi(D_8023C1D0)
/* 703D90 802382A0 2610C1D0 */ addiu $s0, $s0, %lo(D_8023C1D0)
/* 703D94 802382A4 8E020000 */ lw $v0, ($s0)
/* 703D98 802382A8 1440000C */ bnez $v0, .L802382DC
/* 703D9C 802382AC 24040001 */ addiu $a0, $zero, 1
/* 703DA0 802382B0 4405A000 */ mfc1 $a1, $f20
/* 703DA4 802382B4 4406B000 */ mfc1 $a2, $f22
/* 703DA8 802382B8 4407C000 */ mfc1 $a3, $f24
/* 703DAC 802382BC 3C013F80 */ lui $at, 0x3f80
/* 703DB0 802382C0 44810000 */ mtc1 $at, $f0
/* 703DB4 802382C4 24020005 */ addiu $v0, $zero, 5
/* 703DB8 802382C8 AFA20014 */ sw $v0, 0x14($sp)
/* 703DBC 802382CC AFA00018 */ sw $zero, 0x18($sp)
/* 703DC0 802382D0 0C01C8EC */ jal func_800723B0
/* 703DC4 802382D4 E7A00010 */ swc1 $f0, 0x10($sp)
/* 703DC8 802382D8 AE020000 */ sw $v0, ($s0)
.L802382DC:
/* 703DCC 802382DC 8E030000 */ lw $v1, ($s0)
/* 703DD0 802382E0 8C62000C */ lw $v0, 0xc($v1)
/* 703DD4 802382E4 E4540004 */ swc1 $f20, 4($v0)
/* 703DD8 802382E8 8C62000C */ lw $v0, 0xc($v1)
/* 703DDC 802382EC E4560008 */ swc1 $f22, 8($v0)
/* 703DE0 802382F0 8C62000C */ lw $v0, 0xc($v1)
/* 703DE4 802382F4 0808E0D1 */ j .L80238344
/* 703DE8 802382F8 E458000C */ swc1 $f24, 0xc($v0)
.L802382FC:
/* 703DEC 802382FC 3C048024 */ lui $a0, %hi(D_8023C1CC)
/* 703DF0 80238300 2484C1CC */ addiu $a0, $a0, %lo(D_8023C1CC)
/* 703DF4 80238304 8C830000 */ lw $v1, ($a0)
/* 703DF8 80238308 10600005 */ beqz $v1, .L80238320
/* 703DFC 8023830C 00000000 */ nop
/* 703E00 80238310 8C620000 */ lw $v0, ($v1)
/* 703E04 80238314 AC800000 */ sw $zero, ($a0)
/* 703E08 80238318 34420010 */ ori $v0, $v0, 0x10
/* 703E0C 8023831C AC620000 */ sw $v0, ($v1)
.L80238320:
/* 703E10 80238320 3C048024 */ lui $a0, %hi(D_8023C1D0)
/* 703E14 80238324 2484C1D0 */ addiu $a0, $a0, %lo(D_8023C1D0)
/* 703E18 80238328 8C830000 */ lw $v1, ($a0)
/* 703E1C 8023832C 10600006 */ beqz $v1, .L80238348
/* 703E20 80238330 0000102D */ daddu $v0, $zero, $zero
/* 703E24 80238334 8C620000 */ lw $v0, ($v1)
/* 703E28 80238338 AC800000 */ sw $zero, ($a0)
/* 703E2C 8023833C 34420010 */ ori $v0, $v0, 0x10
/* 703E30 80238340 AC620000 */ sw $v0, ($v1)
.L80238344:
/* 703E34 80238344 0000102D */ daddu $v0, $zero, $zero
.L80238348:
/* 703E38 80238348 8FBF0030 */ lw $ra, 0x30($sp)
/* 703E3C 8023834C 8FB3002C */ lw $s3, 0x2c($sp)
/* 703E40 80238350 8FB20028 */ lw $s2, 0x28($sp)
/* 703E44 80238354 8FB10024 */ lw $s1, 0x24($sp)
/* 703E48 80238358 8FB00020 */ lw $s0, 0x20($sp)
/* 703E4C 8023835C D7B80048 */ ldc1 $f24, 0x48($sp)
/* 703E50 80238360 D7B60040 */ ldc1 $f22, 0x40($sp)
/* 703E54 80238364 D7B40038 */ ldc1 $f20, 0x38($sp)
/* 703E58 80238368 03E00008 */ jr $ra
/* 703E5C 8023836C 27BD0050 */ addiu $sp, $sp, 0x50

View File

@ -0,0 +1,26 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238370_703E60
/* 703E60 80238370 3C048024 */ lui $a0, %hi(D_8023C1CC)
/* 703E64 80238374 8C84C1CC */ lw $a0, %lo(D_8023C1CC)($a0)
/* 703E68 80238378 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 703E6C 8023837C AFBF0010 */ sw $ra, 0x10($sp)
/* 703E70 80238380 3C018024 */ lui $at, %hi(D_8023C1B8)
/* 703E74 80238384 AC20C1B8 */ sw $zero, %lo(D_8023C1B8)($at)
/* 703E78 80238388 10800003 */ beqz $a0, .L80238398
/* 703E7C 8023838C 00000000 */ nop
/* 703E80 80238390 0C016914 */ jal remove_effect
/* 703E84 80238394 00000000 */ nop
.L80238398:
/* 703E88 80238398 3C048024 */ lui $a0, %hi(D_8023C1D0)
/* 703E8C 8023839C 8C84C1D0 */ lw $a0, %lo(D_8023C1D0)($a0)
/* 703E90 802383A0 10800003 */ beqz $a0, .L802383B0
/* 703E94 802383A4 00000000 */ nop
/* 703E98 802383A8 0C016914 */ jal remove_effect
/* 703E9C 802383AC 00000000 */ nop
.L802383B0:
/* 703EA0 802383B0 8FBF0010 */ lw $ra, 0x10($sp)
/* 703EA4 802383B4 24020002 */ addiu $v0, $zero, 2
/* 703EA8 802383B8 03E00008 */ jr $ra
/* 703EAC 802383BC 27BD0018 */ addiu $sp, $sp, 0x18

View File

@ -0,0 +1,9 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802383C0_703EB0
/* 703EB0 802383C0 24020001 */ addiu $v0, $zero, 1
/* 703EB4 802383C4 3C018024 */ lui $at, %hi(D_8023C1BC)
/* 703EB8 802383C8 AC22C1BC */ sw $v0, %lo(D_8023C1BC)($at)
/* 703EBC 802383CC 03E00008 */ jr $ra
/* 703EC0 802383D0 24020002 */ addiu $v0, $zero, 2

View File

@ -0,0 +1,8 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802383D4_703EC4
/* 703EC4 802383D4 3C018024 */ lui $at, %hi(D_8023C1BC)
/* 703EC8 802383D8 AC20C1BC */ sw $zero, %lo(D_8023C1BC)($at)
/* 703ECC 802383DC 03E00008 */ jr $ra
/* 703ED0 802383E0 24020002 */ addiu $v0, $zero, 2

View File

@ -0,0 +1,9 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802383E4_703ED4
/* 703ED4 802383E4 24020001 */ addiu $v0, $zero, 1
/* 703ED8 802383E8 3C018024 */ lui $at, %hi(D_8023C1C4)
/* 703EDC 802383EC AC22C1C4 */ sw $v0, %lo(D_8023C1C4)($at)
/* 703EE0 802383F0 03E00008 */ jr $ra
/* 703EE4 802383F4 24020002 */ addiu $v0, $zero, 2

View File

@ -0,0 +1,8 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802383F8_703EE8
/* 703EE8 802383F8 3C018024 */ lui $at, %hi(D_8023C1C4)
/* 703EEC 802383FC AC20C1C4 */ sw $zero, %lo(D_8023C1C4)($at)
/* 703EF0 80238400 03E00008 */ jr $ra
/* 703EF4 80238404 24020002 */ addiu $v0, $zero, 2

View File

@ -0,0 +1,15 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238408_703EF8
/* 703EF8 80238408 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 703EFC 8023840C AFBF0010 */ sw $ra, 0x10($sp)
/* 703F00 80238410 8C82000C */ lw $v0, 0xc($a0)
/* 703F04 80238414 0C0B1EAF */ jal get_variable
/* 703F08 80238418 8C450000 */ lw $a1, ($v0)
/* 703F0C 8023841C 8FBF0010 */ lw $ra, 0x10($sp)
/* 703F10 80238420 3C018024 */ lui $at, %hi(D_8023C1C8)
/* 703F14 80238424 AC22C1C8 */ sw $v0, %lo(D_8023C1C8)($at)
/* 703F18 80238428 24020002 */ addiu $v0, $zero, 2
/* 703F1C 8023842C 03E00008 */ jr $ra
/* 703F20 80238430 27BD0018 */ addiu $sp, $sp, 0x18

View File

@ -0,0 +1,21 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238434_703F24
/* 703F24 80238434 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 703F28 80238438 AFBF0010 */ sw $ra, 0x10($sp)
/* 703F2C 8023843C 0C04760B */ jal func_8011D82C
/* 703F30 80238440 24040001 */ addiu $a0, $zero, 1
/* 703F34 80238444 0000202D */ daddu $a0, $zero, $zero
/* 703F38 80238448 24020001 */ addiu $v0, $zero, 1
/* 703F3C 8023844C 0080282D */ daddu $a1, $a0, $zero
/* 703F40 80238450 0080302D */ daddu $a2, $a0, $zero
/* 703F44 80238454 3C038015 */ lui $v1, %hi(D_801512F0)
/* 703F48 80238458 8C6312F0 */ lw $v1, %lo(D_801512F0)($v1)
/* 703F4C 8023845C 0080382D */ daddu $a3, $a0, $zero
/* 703F50 80238460 0C046F97 */ jal set_background_color_blend
/* 703F54 80238464 A0620000 */ sb $v0, ($v1)
/* 703F58 80238468 8FBF0010 */ lw $ra, 0x10($sp)
/* 703F5C 8023846C 24020002 */ addiu $v0, $zero, 2
/* 703F60 80238470 03E00008 */ jr $ra
/* 703F64 80238474 27BD0018 */ addiu $sp, $sp, 0x18

View File

@ -0,0 +1,18 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238478_703F68
/* 703F68 80238478 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 703F6C 8023847C AFBF0010 */ sw $ra, 0x10($sp)
/* 703F70 80238480 8C82000C */ lw $v0, 0xc($a0)
/* 703F74 80238484 0C0B1EAF */ jal get_variable
/* 703F78 80238488 8C450000 */ lw $a1, ($v0)
/* 703F7C 8023848C 0000202D */ daddu $a0, $zero, $zero
/* 703F80 80238490 0080282D */ daddu $a1, $a0, $zero
/* 703F84 80238494 0080302D */ daddu $a2, $a0, $zero
/* 703F88 80238498 0C046F97 */ jal set_background_color_blend
/* 703F8C 8023849C 304700FF */ andi $a3, $v0, 0xff
/* 703F90 802384A0 8FBF0010 */ lw $ra, 0x10($sp)
/* 703F94 802384A4 24020002 */ addiu $v0, $zero, 2
/* 703F98 802384A8 03E00008 */ jr $ra
/* 703F9C 802384AC 27BD0018 */ addiu $sp, $sp, 0x18

View File

@ -0,0 +1,52 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802384B0_703FA0
/* 703FA0 802384B0 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 703FA4 802384B4 AFB1001C */ sw $s1, 0x1c($sp)
/* 703FA8 802384B8 0080882D */ daddu $s1, $a0, $zero
/* 703FAC 802384BC AFBF0024 */ sw $ra, 0x24($sp)
/* 703FB0 802384C0 AFB20020 */ sw $s2, 0x20($sp)
/* 703FB4 802384C4 AFB00018 */ sw $s0, 0x18($sp)
/* 703FB8 802384C8 8E30000C */ lw $s0, 0xc($s1)
/* 703FBC 802384CC 8E050000 */ lw $a1, ($s0)
/* 703FC0 802384D0 0C0B1EAF */ jal get_variable
/* 703FC4 802384D4 26100004 */ addiu $s0, $s0, 4
/* 703FC8 802384D8 8E050000 */ lw $a1, ($s0)
/* 703FCC 802384DC 26100004 */ addiu $s0, $s0, 4
/* 703FD0 802384E0 0220202D */ daddu $a0, $s1, $zero
/* 703FD4 802384E4 0C0B1EAF */ jal get_variable
/* 703FD8 802384E8 0040902D */ daddu $s2, $v0, $zero
/* 703FDC 802384EC 0220202D */ daddu $a0, $s1, $zero
/* 703FE0 802384F0 8E050000 */ lw $a1, ($s0)
/* 703FE4 802384F4 0C0B1EAF */ jal get_variable
/* 703FE8 802384F8 0040802D */ daddu $s0, $v0, $zero
/* 703FEC 802384FC 24040008 */ addiu $a0, $zero, 8
/* 703FF0 80238500 44921000 */ mtc1 $s2, $f2
/* 703FF4 80238504 00000000 */ nop
/* 703FF8 80238508 468010A0 */ cvt.s.w $f2, $f2
/* 703FFC 8023850C 44051000 */ mfc1 $a1, $f2
/* 704000 80238510 44901000 */ mtc1 $s0, $f2
/* 704004 80238514 00000000 */ nop
/* 704008 80238518 468010A0 */ cvt.s.w $f2, $f2
/* 70400C 8023851C 44061000 */ mfc1 $a2, $f2
/* 704010 80238520 44821000 */ mtc1 $v0, $f2
/* 704014 80238524 00000000 */ nop
/* 704018 80238528 468010A0 */ cvt.s.w $f2, $f2
/* 70401C 8023852C 3C013FA6 */ lui $at, 0x3fa6
/* 704020 80238530 34216666 */ ori $at, $at, 0x6666
/* 704024 80238534 44810000 */ mtc1 $at, $f0
/* 704028 80238538 44071000 */ mfc1 $a3, $f2
/* 70402C 8023853C 24030037 */ addiu $v1, $zero, 0x37
/* 704030 80238540 AFA30014 */ sw $v1, 0x14($sp)
/* 704034 80238544 0C01C2EC */ jal func_80070BB0
/* 704038 80238548 E7A00010 */ swc1 $f0, 0x10($sp)
/* 70403C 8023854C 8FBF0024 */ lw $ra, 0x24($sp)
/* 704040 80238550 8FB20020 */ lw $s2, 0x20($sp)
/* 704044 80238554 8FB1001C */ lw $s1, 0x1c($sp)
/* 704048 80238558 8FB00018 */ lw $s0, 0x18($sp)
/* 70404C 8023855C 3C018024 */ lui $at, %hi(D_80239A0C_7054FC)
/* 704050 80238560 AC229A0C */ sw $v0, %lo(D_80239A0C_7054FC)($at)
/* 704054 80238564 24020002 */ addiu $v0, $zero, 2
/* 704058 80238568 03E00008 */ jr $ra
/* 70405C 8023856C 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -0,0 +1,16 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238570_704060
/* 704060 80238570 3C048024 */ lui $a0, %hi(D_80239A0C_7054FC)
/* 704064 80238574 24849A0C */ addiu $a0, $a0, %lo(D_80239A0C_7054FC)
/* 704068 80238578 8C830000 */ lw $v1, ($a0)
/* 70406C 8023857C 50600005 */ beql $v1, $zero, .L80238594
/* 704070 80238580 AC800000 */ sw $zero, ($a0)
/* 704074 80238584 8C620000 */ lw $v0, ($v1)
/* 704078 80238588 34420010 */ ori $v0, $v0, 0x10
/* 70407C 8023858C AC620000 */ sw $v0, ($v1)
/* 704080 80238590 AC800000 */ sw $zero, ($a0)
.L80238594:
/* 704084 80238594 03E00008 */ jr $ra
/* 704088 80238598 24020002 */ addiu $v0, $zero, 2

View File

@ -0,0 +1,55 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_8023859C_70408C
/* 70408C 8023859C 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 704090 802385A0 AFB1001C */ sw $s1, 0x1c($sp)
/* 704094 802385A4 0080882D */ daddu $s1, $a0, $zero
/* 704098 802385A8 AFBF0024 */ sw $ra, 0x24($sp)
/* 70409C 802385AC AFB20020 */ sw $s2, 0x20($sp)
/* 7040A0 802385B0 AFB00018 */ sw $s0, 0x18($sp)
/* 7040A4 802385B4 8E30000C */ lw $s0, 0xc($s1)
/* 7040A8 802385B8 8E050000 */ lw $a1, ($s0)
/* 7040AC 802385BC 0C0B1EAF */ jal get_variable
/* 7040B0 802385C0 26100004 */ addiu $s0, $s0, 4
/* 7040B4 802385C4 8E050000 */ lw $a1, ($s0)
/* 7040B8 802385C8 26100004 */ addiu $s0, $s0, 4
/* 7040BC 802385CC 0220202D */ daddu $a0, $s1, $zero
/* 7040C0 802385D0 0C0B1EAF */ jal get_variable
/* 7040C4 802385D4 0040902D */ daddu $s2, $v0, $zero
/* 7040C8 802385D8 0220202D */ daddu $a0, $s1, $zero
/* 7040CC 802385DC 8E050000 */ lw $a1, ($s0)
/* 7040D0 802385E0 0C0B1EAF */ jal get_variable
/* 7040D4 802385E4 0040802D */ daddu $s0, $v0, $zero
/* 7040D8 802385E8 0000202D */ daddu $a0, $zero, $zero
/* 7040DC 802385EC 44921000 */ mtc1 $s2, $f2
/* 7040E0 802385F0 00000000 */ nop
/* 7040E4 802385F4 468010A0 */ cvt.s.w $f2, $f2
/* 7040E8 802385F8 44051000 */ mfc1 $a1, $f2
/* 7040EC 802385FC 44901000 */ mtc1 $s0, $f2
/* 7040F0 80238600 00000000 */ nop
/* 7040F4 80238604 468010A0 */ cvt.s.w $f2, $f2
/* 7040F8 80238608 44061000 */ mfc1 $a2, $f2
/* 7040FC 8023860C 44821000 */ mtc1 $v0, $f2
/* 704100 80238610 00000000 */ nop
/* 704104 80238614 468010A0 */ cvt.s.w $f2, $f2
/* 704108 80238618 3C013F80 */ lui $at, 0x3f80
/* 70410C 8023861C 44810000 */ mtc1 $at, $f0
/* 704110 80238620 44071000 */ mfc1 $a3, $f2
/* 704114 80238624 2403000A */ addiu $v1, $zero, 0xa
/* 704118 80238628 AFA30014 */ sw $v1, 0x14($sp)
/* 70411C 8023862C 0C01C664 */ jal func_80071990
/* 704120 80238630 E7A00010 */ swc1 $f0, 0x10($sp)
/* 704124 80238634 0040182D */ daddu $v1, $v0, $zero
/* 704128 80238638 8C64000C */ lw $a0, 0xc($v1)
/* 70412C 8023863C 3C018024 */ lui $at, %hi(D_8023C1B4)
/* 704130 80238640 AC23C1B4 */ sw $v1, %lo(D_8023C1B4)($at)
/* 704134 80238644 24030003 */ addiu $v1, $zero, 3
/* 704138 80238648 AC830030 */ sw $v1, 0x30($a0)
/* 70413C 8023864C 8FBF0024 */ lw $ra, 0x24($sp)
/* 704140 80238650 8FB20020 */ lw $s2, 0x20($sp)
/* 704144 80238654 8FB1001C */ lw $s1, 0x1c($sp)
/* 704148 80238658 8FB00018 */ lw $s0, 0x18($sp)
/* 70414C 8023865C 24020002 */ addiu $v0, $zero, 2
/* 704150 80238660 03E00008 */ jr $ra
/* 704154 80238664 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -0,0 +1,78 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238668_704158
/* 704158 80238668 3C03800E */ lui $v1, %hi(gBattleStatus+0xDC)
/* 70415C 8023866C 8C63C14C */ lw $v1, %lo(gBattleStatus+0xDC)($v1)
/* 704160 80238670 27BDFFC8 */ addiu $sp, $sp, -0x38
/* 704164 80238674 AFBF001C */ sw $ra, 0x1c($sp)
/* 704168 80238678 AFB00018 */ sw $s0, 0x18($sp)
/* 70416C 8023867C F7B80030 */ sdc1 $f24, 0x30($sp)
/* 704170 80238680 F7B60028 */ sdc1 $f22, 0x28($sp)
/* 704174 80238684 F7B40020 */ sdc1 $f20, 0x20($sp)
/* 704178 80238688 84620150 */ lh $v0, 0x150($v1)
/* 70417C 8023868C C4620144 */ lwc1 $f2, 0x144($v1)
/* 704180 80238690 44820000 */ mtc1 $v0, $f0
/* 704184 80238694 00000000 */ nop
/* 704188 80238698 46800020 */ cvt.s.w $f0, $f0
/* 70418C 8023869C 46001600 */ add.s $f24, $f2, $f0
/* 704190 802386A0 84620152 */ lh $v0, 0x152($v1)
/* 704194 802386A4 C4620148 */ lwc1 $f2, 0x148($v1)
/* 704198 802386A8 44820000 */ mtc1 $v0, $f0
/* 70419C 802386AC 00000000 */ nop
/* 7041A0 802386B0 46800020 */ cvt.s.w $f0, $f0
/* 7041A4 802386B4 46001080 */ add.s $f2, $f2, $f0
/* 7041A8 802386B8 8062019A */ lb $v0, 0x19a($v1)
/* 7041AC 802386BC 0080802D */ daddu $s0, $a0, $zero
/* 7041B0 802386C0 44820000 */ mtc1 $v0, $f0
/* 7041B4 802386C4 00000000 */ nop
/* 7041B8 802386C8 46800020 */ cvt.s.w $f0, $f0
/* 7041BC 802386CC 46001080 */ add.s $f2, $f2, $f0
/* 7041C0 802386D0 3C014140 */ lui $at, 0x4140
/* 7041C4 802386D4 44810000 */ mtc1 $at, $f0
/* 7041C8 802386D8 84620154 */ lh $v0, 0x154($v1)
/* 7041CC 802386DC 46001580 */ add.s $f22, $f2, $f0
/* 7041D0 802386E0 44820000 */ mtc1 $v0, $f0
/* 7041D4 802386E4 00000000 */ nop
/* 7041D8 802386E8 46800020 */ cvt.s.w $f0, $f0
/* 7041DC 802386EC C462014C */ lwc1 $f2, 0x14c($v1)
/* 7041E0 802386F0 8E02000C */ lw $v0, 0xc($s0)
/* 7041E4 802386F4 10A00010 */ beqz $a1, .L80238738
/* 7041E8 802386F8 46001500 */ add.s $f20, $f2, $f0
/* 7041EC 802386FC 8C450000 */ lw $a1, ($v0)
/* 7041F0 80238700 0C0B1EAF */ jal get_variable
/* 7041F4 80238704 00000000 */ nop
/* 7041F8 80238708 4405C000 */ mfc1 $a1, $f24
/* 7041FC 8023870C 3C013F80 */ lui $at, 0x3f80
/* 704200 80238710 44810000 */ mtc1 $at, $f0
/* 704204 80238714 4406B000 */ mfc1 $a2, $f22
/* 704208 80238718 4407A000 */ mfc1 $a3, $f20
/* 70420C 8023871C 0000202D */ daddu $a0, $zero, $zero
/* 704210 80238720 AE020070 */ sw $v0, 0x70($s0)
/* 704214 80238724 3C028024 */ lui $v0, %hi(D_8023C1B0)
/* 704218 80238728 2442C1B0 */ addiu $v0, $v0, %lo(D_8023C1B0)
/* 70421C 8023872C AFA20014 */ sw $v0, 0x14($sp)
/* 704220 80238730 0C01C3C4 */ jal func_80070F10
/* 704224 80238734 E7A00010 */ swc1 $f0, 0x10($sp)
.L80238738:
/* 704228 80238738 8E020070 */ lw $v0, 0x70($s0)
/* 70422C 8023873C 2442FFFF */ addiu $v0, $v0, -1
/* 704230 80238740 10400003 */ beqz $v0, .L80238750
/* 704234 80238744 AE020070 */ sw $v0, 0x70($s0)
/* 704238 80238748 0808E1DA */ j .L80238768
/* 70423C 8023874C 0000102D */ daddu $v0, $zero, $zero
.L80238750:
/* 704240 80238750 3C038024 */ lui $v1, %hi(D_8023C1B0)
/* 704244 80238754 8C63C1B0 */ lw $v1, %lo(D_8023C1B0)($v1)
/* 704248 80238758 24020002 */ addiu $v0, $zero, 2
/* 70424C 8023875C 8C64000C */ lw $a0, 0xc($v1)
/* 704250 80238760 24030005 */ addiu $v1, $zero, 5
/* 704254 80238764 AC830014 */ sw $v1, 0x14($a0)
.L80238768:
/* 704258 80238768 8FBF001C */ lw $ra, 0x1c($sp)
/* 70425C 8023876C 8FB00018 */ lw $s0, 0x18($sp)
/* 704260 80238770 D7B80030 */ ldc1 $f24, 0x30($sp)
/* 704264 80238774 D7B60028 */ ldc1 $f22, 0x28($sp)
/* 704268 80238778 D7B40020 */ ldc1 $f20, 0x20($sp)
/* 70426C 8023877C 03E00008 */ jr $ra
/* 704270 80238780 27BD0038 */ addiu $sp, $sp, 0x38

View File

@ -0,0 +1,41 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238784_704274
/* 704274 80238784 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 704278 80238788 AFB00010 */ sw $s0, 0x10($sp)
/* 70427C 8023878C 3C10800E */ lui $s0, %hi(gBattleStatus+0xDC)
/* 704280 80238790 8E10C14C */ lw $s0, %lo(gBattleStatus+0xDC)($s0)
/* 704284 80238794 AFB20018 */ sw $s2, 0x18($sp)
/* 704288 80238798 0080902D */ daddu $s2, $a0, $zero
/* 70428C 8023879C AFBF001C */ sw $ra, 0x1c($sp)
/* 704290 802387A0 AFB10014 */ sw $s1, 0x14($sp)
/* 704294 802387A4 0C09A75B */ jal get_actor
/* 704298 802387A8 86040428 */ lh $a0, 0x428($s0)
/* 70429C 802387AC 82050426 */ lb $a1, 0x426($s0)
/* 7042A0 802387B0 0040802D */ daddu $s0, $v0, $zero
/* 7042A4 802387B4 0C099117 */ jal get_actor_part
/* 7042A8 802387B8 0200202D */ daddu $a0, $s0, $zero
/* 7042AC 802387BC 24050005 */ addiu $a1, $zero, 5
/* 7042B0 802387C0 8E04020C */ lw $a0, 0x20c($s0)
/* 7042B4 802387C4 0C0997A6 */ jal lookup_status_chance
/* 7042B8 802387C8 0040882D */ daddu $s1, $v0, $zero
/* 7042BC 802387CC 0040202D */ daddu $a0, $v0, $zero
/* 7042C0 802387D0 82030218 */ lb $v1, 0x218($s0)
/* 7042C4 802387D4 2402000E */ addiu $v0, $zero, 0xe
/* 7042C8 802387D8 50620001 */ beql $v1, $v0, .L802387E0
/* 7042CC 802387DC 0000202D */ daddu $a0, $zero, $zero
.L802387E0:
/* 7042D0 802387E0 8E22007C */ lw $v0, 0x7c($s1)
/* 7042D4 802387E4 30420020 */ andi $v0, $v0, 0x20
/* 7042D8 802387E8 54400001 */ bnel $v0, $zero, .L802387F0
/* 7042DC 802387EC 0000202D */ daddu $a0, $zero, $zero
.L802387F0:
/* 7042E0 802387F0 AE440084 */ sw $a0, 0x84($s2)
/* 7042E4 802387F4 8FBF001C */ lw $ra, 0x1c($sp)
/* 7042E8 802387F8 8FB20018 */ lw $s2, 0x18($sp)
/* 7042EC 802387FC 8FB10014 */ lw $s1, 0x14($sp)
/* 7042F0 80238800 8FB00010 */ lw $s0, 0x10($sp)
/* 7042F4 80238804 24020002 */ addiu $v0, $zero, 2
/* 7042F8 80238808 03E00008 */ jr $ra
/* 7042FC 8023880C 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -0,0 +1,217 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238810_704300
/* 704300 80238810 27BDFFC8 */ addiu $sp, $sp, -0x38
/* 704304 80238814 AFB20018 */ sw $s2, 0x18($sp)
/* 704308 80238818 0080902D */ daddu $s2, $a0, $zero
/* 70430C 8023881C 3C02800E */ lui $v0, %hi(gBattleStatus)
/* 704310 80238820 2442C070 */ addiu $v0, $v0, %lo(gBattleStatus)
/* 704314 80238824 AFBF0024 */ sw $ra, 0x24($sp)
/* 704318 80238828 AFB40020 */ sw $s4, 0x20($sp)
/* 70431C 8023882C AFB3001C */ sw $s3, 0x1c($sp)
/* 704320 80238830 AFB10014 */ sw $s1, 0x14($sp)
/* 704324 80238834 AFB00010 */ sw $s0, 0x10($sp)
/* 704328 80238838 F7B60030 */ sdc1 $f22, 0x30($sp)
/* 70432C 8023883C F7B40028 */ sdc1 $f20, 0x28($sp)
/* 704330 80238840 8C5000DC */ lw $s0, 0xdc($v0)
/* 704334 80238844 8E44000C */ lw $a0, 0xc($s2)
/* 704338 80238848 8C5100D8 */ lw $s1, 0xd8($v0)
/* 70433C 8023884C 10A00002 */ beqz $a1, .L80238858
/* 704340 80238850 2613000C */ addiu $s3, $s0, 0xc
/* 704344 80238854 AE400070 */ sw $zero, 0x70($s2)
.L80238858:
/* 704348 80238858 8E430070 */ lw $v1, 0x70($s2)
/* 70434C 8023885C 24140001 */ addiu $s4, $zero, 1
/* 704350 80238860 10740035 */ beq $v1, $s4, .L80238938
/* 704354 80238864 28620002 */ slti $v0, $v1, 2
/* 704358 80238868 50400005 */ beql $v0, $zero, .L80238880
/* 70435C 8023886C 24020002 */ addiu $v0, $zero, 2
/* 704360 80238870 10600009 */ beqz $v1, .L80238898
/* 704364 80238874 00000000 */ nop
/* 704368 80238878 0808E2AA */ j .L80238AA8
/* 70436C 8023887C 00000000 */ nop
.L80238880:
/* 704370 80238880 1062005A */ beq $v1, $v0, .L802389EC
/* 704374 80238884 24020003 */ addiu $v0, $zero, 3
/* 704378 80238888 10620084 */ beq $v1, $v0, .L80238A9C
/* 70437C 8023888C 24020002 */ addiu $v0, $zero, 2
/* 704380 80238890 0808E2AA */ j .L80238AA8
/* 704384 80238894 00000000 */ nop
.L80238898:
/* 704388 80238898 8C850000 */ lw $a1, ($a0)
/* 70438C 8023889C 0C0B1EAF */ jal get_variable
/* 704390 802388A0 0240202D */ daddu $a0, $s2, $zero
/* 704394 802388A4 AE420078 */ sw $v0, 0x78($s2)
/* 704398 802388A8 C62C0144 */ lwc1 $f12, 0x144($s1)
/* 70439C 802388AC C62E0148 */ lwc1 $f14, 0x148($s1)
/* 7043A0 802388B0 8E060144 */ lw $a2, 0x144($s0)
/* 7043A4 802388B4 0C00A7B5 */ jal dist2D
/* 7043A8 802388B8 8E070148 */ lw $a3, 0x148($s0)
/* 7043AC 802388BC E6000058 */ swc1 $f0, 0x58($s0)
/* 7043B0 802388C0 C6200144 */ lwc1 $f0, 0x144($s1)
/* 7043B4 802388C4 3C014210 */ lui $at, 0x4210
/* 7043B8 802388C8 44811000 */ mtc1 $at, $f2
/* 7043BC 802388CC C60A0144 */ lwc1 $f10, 0x144($s0)
/* 7043C0 802388D0 3C0142B4 */ lui $at, 0x42b4
/* 7043C4 802388D4 44812000 */ mtc1 $at, $f4
/* 7043C8 802388D8 3C0140A0 */ lui $at, 0x40a0
/* 7043CC 802388DC 44813000 */ mtc1 $at, $f6
/* 7043D0 802388E0 E6000018 */ swc1 $f0, 0x18($s0)
/* 7043D4 802388E4 C6200148 */ lwc1 $f0, 0x148($s1)
/* 7043D8 802388E8 3C013F00 */ lui $at, 0x3f00
/* 7043DC 802388EC 44814000 */ mtc1 $at, $f8
/* 7043E0 802388F0 46020000 */ add.s $f0, $f0, $f2
/* 7043E4 802388F4 C602014C */ lwc1 $f2, 0x14c($s0)
/* 7043E8 802388F8 E600001C */ swc1 $f0, 0x1c($s0)
/* 7043EC 802388FC C62C014C */ lwc1 $f12, 0x14c($s1)
/* 7043F0 80238900 C6000148 */ lwc1 $f0, 0x148($s0)
/* 7043F4 80238904 2402005A */ addiu $v0, $zero, 0x5a
/* 7043F8 80238908 A6020070 */ sh $v0, 0x70($s0)
/* 7043FC 8023890C 2402000A */ addiu $v0, $zero, 0xa
/* 704400 80238910 E60A000C */ swc1 $f10, 0xc($s0)
/* 704404 80238914 E6020014 */ swc1 $f2, 0x14($s0)
/* 704408 80238918 E6040054 */ swc1 $f4, 0x54($s0)
/* 70440C 8023891C E6060050 */ swc1 $f6, 0x50($s0)
/* 704410 80238920 E6080048 */ swc1 $f8, 0x48($s0)
/* 704414 80238924 E6000010 */ swc1 $f0, 0x10($s0)
/* 704418 80238928 E60C0020 */ swc1 $f12, 0x20($s0)
/* 70441C 8023892C AE420074 */ sw $v0, 0x74($s2)
/* 704420 80238930 0808E2AA */ j .L80238AA8
/* 704424 80238934 AE540070 */ sw $s4, 0x70($s2)
.L80238938:
/* 704428 80238938 C6000054 */ lwc1 $f0, 0x54($s0)
/* 70442C 8023893C 3C0140C9 */ lui $at, 0x40c9
/* 704430 80238940 34210FD0 */ ori $at, $at, 0xfd0
/* 704434 80238944 44811000 */ mtc1 $at, $f2
/* 704438 80238948 00000000 */ nop
/* 70443C 8023894C 46020002 */ mul.s $f0, $f0, $f2
/* 704440 80238950 00000000 */ nop
/* 704444 80238954 3C0143B4 */ lui $at, 0x43b4
/* 704448 80238958 44811000 */ mtc1 $at, $f2
/* 70444C 8023895C 00000000 */ nop
/* 704450 80238960 46020503 */ div.s $f20, $f0, $f2
/* 704454 80238964 0C00A85B */ jal sin_rad
/* 704458 80238968 4600A306 */ mov.s $f12, $f20
/* 70445C 8023896C 46000586 */ mov.s $f22, $f0
/* 704460 80238970 0C00A874 */ jal cos_rad
/* 704464 80238974 4600A306 */ mov.s $f12, $f20
/* 704468 80238978 C6020058 */ lwc1 $f2, 0x58($s0)
/* 70446C 8023897C 46161182 */ mul.s $f6, $f2, $f22
/* 704470 80238980 00000000 */ nop
/* 704474 80238984 46001087 */ neg.s $f2, $f2
/* 704478 80238988 46001202 */ mul.s $f8, $f2, $f0
/* 70447C 8023898C 00000000 */ nop
/* 704480 80238990 C6020050 */ lwc1 $f2, 0x50($s0)
/* 704484 80238994 C6000048 */ lwc1 $f0, 0x48($s0)
/* 704488 80238998 46001080 */ add.s $f2, $f2, $f0
/* 70448C 8023899C C60C0054 */ lwc1 $f12, 0x54($s0)
/* 704490 802389A0 46026300 */ add.s $f12, $f12, $f2
/* 704494 802389A4 C6040018 */ lwc1 $f4, 0x18($s0)
/* 704498 802389A8 C600001C */ lwc1 $f0, 0x1c($s0)
/* 70449C 802389AC 46062100 */ add.s $f4, $f4, $f6
/* 7044A0 802389B0 E6020050 */ swc1 $f2, 0x50($s0)
/* 7044A4 802389B4 46080000 */ add.s $f0, $f0, $f8
/* 7044A8 802389B8 E60C0054 */ swc1 $f12, 0x54($s0)
/* 7044AC 802389BC E604000C */ swc1 $f4, 0xc($s0)
/* 7044B0 802389C0 0C00A6C9 */ jal clamp_angle
/* 7044B4 802389C4 E6000010 */ swc1 $f0, 0x10($s0)
/* 7044B8 802389C8 96020070 */ lhu $v0, 0x70($s0)
/* 7044BC 802389CC E6000054 */ swc1 $f0, 0x54($s0)
/* 7044C0 802389D0 2442FFFF */ addiu $v0, $v0, -1
/* 7044C4 802389D4 A6020070 */ sh $v0, 0x70($s0)
/* 7044C8 802389D8 00021400 */ sll $v0, $v0, 0x10
/* 7044CC 802389DC 14400032 */ bnez $v0, .L80238AA8
/* 7044D0 802389E0 24020002 */ addiu $v0, $zero, 2
/* 7044D4 802389E4 0808E2AA */ j .L80238AA8
/* 7044D8 802389E8 AE420070 */ sw $v0, 0x70($s2)
.L802389EC:
/* 7044DC 802389EC C6000054 */ lwc1 $f0, 0x54($s0)
/* 7044E0 802389F0 3C0140C9 */ lui $at, 0x40c9
/* 7044E4 802389F4 34210FD0 */ ori $at, $at, 0xfd0
/* 7044E8 802389F8 44811000 */ mtc1 $at, $f2
/* 7044EC 802389FC 00000000 */ nop
/* 7044F0 80238A00 46020002 */ mul.s $f0, $f0, $f2
/* 7044F4 80238A04 00000000 */ nop
/* 7044F8 80238A08 3C0143B4 */ lui $at, 0x43b4
/* 7044FC 80238A0C 44811000 */ mtc1 $at, $f2
/* 704500 80238A10 00000000 */ nop
/* 704504 80238A14 46020503 */ div.s $f20, $f0, $f2
/* 704508 80238A18 0C00A85B */ jal sin_rad
/* 70450C 80238A1C 4600A306 */ mov.s $f12, $f20
/* 704510 80238A20 46000586 */ mov.s $f22, $f0
/* 704514 80238A24 0C00A874 */ jal cos_rad
/* 704518 80238A28 4600A306 */ mov.s $f12, $f20
/* 70451C 80238A2C C6020058 */ lwc1 $f2, 0x58($s0)
/* 704520 80238A30 46161182 */ mul.s $f6, $f2, $f22
/* 704524 80238A34 00000000 */ nop
/* 704528 80238A38 46001087 */ neg.s $f2, $f2
/* 70452C 80238A3C 46001202 */ mul.s $f8, $f2, $f0
/* 704530 80238A40 00000000 */ nop
/* 704534 80238A44 C60C0054 */ lwc1 $f12, 0x54($s0)
/* 704538 80238A48 C6000050 */ lwc1 $f0, 0x50($s0)
/* 70453C 80238A4C 46006300 */ add.s $f12, $f12, $f0
/* 704540 80238A50 C6020018 */ lwc1 $f2, 0x18($s0)
/* 704544 80238A54 46061080 */ add.s $f2, $f2, $f6
/* 704548 80238A58 C600001C */ lwc1 $f0, 0x1c($s0)
/* 70454C 80238A5C 46080000 */ add.s $f0, $f0, $f8
/* 704550 80238A60 E60C0054 */ swc1 $f12, 0x54($s0)
/* 704554 80238A64 E602000C */ swc1 $f2, 0xc($s0)
/* 704558 80238A68 0C00A6C9 */ jal clamp_angle
/* 70455C 80238A6C E6000010 */ swc1 $f0, 0x10($s0)
/* 704560 80238A70 3C014234 */ lui $at, 0x4234
/* 704564 80238A74 44811000 */ mtc1 $at, $f2
/* 704568 80238A78 00000000 */ nop
/* 70456C 80238A7C 4602003C */ c.lt.s $f0, $f2
/* 704570 80238A80 00000000 */ nop
/* 704574 80238A84 45000004 */ bc1f .L80238A98
/* 704578 80238A88 E6000054 */ swc1 $f0, 0x54($s0)
/* 70457C 80238A8C 24020003 */ addiu $v0, $zero, 3
/* 704580 80238A90 0808E2AA */ j .L80238AA8
/* 704584 80238A94 AE420070 */ sw $v0, 0x70($s2)
.L80238A98:
/* 704588 80238A98 24020002 */ addiu $v0, $zero, 2
.L80238A9C:
/* 70458C 80238A9C AE20018C */ sw $zero, 0x18c($s1)
/* 704590 80238AA0 0808E2C5 */ j .L80238B14
/* 704594 80238AA4 AE00018C */ sw $zero, 0x18c($s0)
.L80238AA8:
/* 704598 80238AA8 C6600048 */ lwc1 $f0, 0x48($s3)
/* 70459C 80238AAC 3C014334 */ lui $at, 0x4334
/* 7045A0 80238AB0 44811000 */ mtc1 $at, $f2
/* 7045A4 80238AB4 00000000 */ nop
/* 7045A8 80238AB8 4600103C */ c.lt.s $f2, $f0
/* 7045AC 80238ABC 00000000 */ nop
/* 7045B0 80238AC0 45020002 */ bc1fl .L80238ACC
/* 7045B4 80238AC4 E602018C */ swc1 $f2, 0x18c($s0)
/* 7045B8 80238AC8 AE00018C */ sw $zero, 0x18c($s0)
.L80238ACC:
/* 7045BC 80238ACC C6600000 */ lwc1 $f0, ($s3)
/* 7045C0 80238AD0 E6000144 */ swc1 $f0, 0x144($s0)
/* 7045C4 80238AD4 C6600004 */ lwc1 $f0, 4($s3)
/* 7045C8 80238AD8 E6000148 */ swc1 $f0, 0x148($s0)
/* 7045CC 80238ADC C6600008 */ lwc1 $f0, 8($s3)
/* 7045D0 80238AE0 E600014C */ swc1 $f0, 0x14c($s0)
/* 7045D4 80238AE4 8E420078 */ lw $v0, 0x78($s2)
/* 7045D8 80238AE8 1440000A */ bnez $v0, .L80238B14
/* 7045DC 80238AEC 0000102D */ daddu $v0, $zero, $zero
/* 7045E0 80238AF0 C620018C */ lwc1 $f0, 0x18c($s1)
/* 7045E4 80238AF4 C6420074 */ lwc1 $f2, 0x74($s2)
/* 7045E8 80238AF8 468010A0 */ cvt.s.w $f2, $f2
/* 7045EC 80238AFC 46020000 */ add.s $f0, $f0, $f2
/* 7045F0 80238B00 E620018C */ swc1 $f0, 0x18c($s1)
/* 7045F4 80238B04 8E420074 */ lw $v0, 0x74($s2)
/* 7045F8 80238B08 24420001 */ addiu $v0, $v0, 1
/* 7045FC 80238B0C AE420074 */ sw $v0, 0x74($s2)
/* 704600 80238B10 0000102D */ daddu $v0, $zero, $zero
.L80238B14:
/* 704604 80238B14 8FBF0024 */ lw $ra, 0x24($sp)
/* 704608 80238B18 8FB40020 */ lw $s4, 0x20($sp)
/* 70460C 80238B1C 8FB3001C */ lw $s3, 0x1c($sp)
/* 704610 80238B20 8FB20018 */ lw $s2, 0x18($sp)
/* 704614 80238B24 8FB10014 */ lw $s1, 0x14($sp)
/* 704618 80238B28 8FB00010 */ lw $s0, 0x10($sp)
/* 70461C 80238B2C D7B60030 */ ldc1 $f22, 0x30($sp)
/* 704620 80238B30 D7B40028 */ ldc1 $f20, 0x28($sp)
/* 704624 80238B34 03E00008 */ jr $ra
/* 704628 80238B38 27BD0038 */ addiu $sp, $sp, 0x38

View File

@ -0,0 +1,55 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238B3C_70462C
/* 70462C 80238B3C 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 704630 80238B40 AFB1001C */ sw $s1, 0x1c($sp)
/* 704634 80238B44 0080882D */ daddu $s1, $a0, $zero
/* 704638 80238B48 AFBF0024 */ sw $ra, 0x24($sp)
/* 70463C 80238B4C AFB20020 */ sw $s2, 0x20($sp)
/* 704640 80238B50 AFB00018 */ sw $s0, 0x18($sp)
/* 704644 80238B54 8E30000C */ lw $s0, 0xc($s1)
/* 704648 80238B58 8E050000 */ lw $a1, ($s0)
/* 70464C 80238B5C 0C0B1EAF */ jal get_variable
/* 704650 80238B60 26100004 */ addiu $s0, $s0, 4
/* 704654 80238B64 8E050000 */ lw $a1, ($s0)
/* 704658 80238B68 26100004 */ addiu $s0, $s0, 4
/* 70465C 80238B6C 0220202D */ daddu $a0, $s1, $zero
/* 704660 80238B70 0C0B1EAF */ jal get_variable
/* 704664 80238B74 0040902D */ daddu $s2, $v0, $zero
/* 704668 80238B78 0220202D */ daddu $a0, $s1, $zero
/* 70466C 80238B7C 8E050000 */ lw $a1, ($s0)
/* 704670 80238B80 0C0B1EAF */ jal get_variable
/* 704674 80238B84 0040802D */ daddu $s0, $v0, $zero
/* 704678 80238B88 0000202D */ daddu $a0, $zero, $zero
/* 70467C 80238B8C 44921000 */ mtc1 $s2, $f2
/* 704680 80238B90 00000000 */ nop
/* 704684 80238B94 468010A0 */ cvt.s.w $f2, $f2
/* 704688 80238B98 44051000 */ mfc1 $a1, $f2
/* 70468C 80238B9C 44901000 */ mtc1 $s0, $f2
/* 704690 80238BA0 00000000 */ nop
/* 704694 80238BA4 468010A0 */ cvt.s.w $f2, $f2
/* 704698 80238BA8 44061000 */ mfc1 $a2, $f2
/* 70469C 80238BAC 44821000 */ mtc1 $v0, $f2
/* 7046A0 80238BB0 00000000 */ nop
/* 7046A4 80238BB4 468010A0 */ cvt.s.w $f2, $f2
/* 7046A8 80238BB8 3C013F80 */ lui $at, 0x3f80
/* 7046AC 80238BBC 44810000 */ mtc1 $at, $f0
/* 7046B0 80238BC0 44071000 */ mfc1 $a3, $f2
/* 7046B4 80238BC4 2403003C */ addiu $v1, $zero, 0x3c
/* 7046B8 80238BC8 AFA30014 */ sw $v1, 0x14($sp)
/* 7046BC 80238BCC 0C01C664 */ jal func_80071990
/* 7046C0 80238BD0 E7A00010 */ swc1 $f0, 0x10($sp)
/* 7046C4 80238BD4 0040182D */ daddu $v1, $v0, $zero
/* 7046C8 80238BD8 8C64000C */ lw $a0, 0xc($v1)
/* 7046CC 80238BDC 24020002 */ addiu $v0, $zero, 2
/* 7046D0 80238BE0 3C018024 */ lui $at, %hi(D_8023C1B4)
/* 7046D4 80238BE4 AC23C1B4 */ sw $v1, %lo(D_8023C1B4)($at)
/* 7046D8 80238BE8 0040182D */ daddu $v1, $v0, $zero
/* 7046DC 80238BEC AC830030 */ sw $v1, 0x30($a0)
/* 7046E0 80238BF0 8FBF0024 */ lw $ra, 0x24($sp)
/* 7046E4 80238BF4 8FB20020 */ lw $s2, 0x20($sp)
/* 7046E8 80238BF8 8FB1001C */ lw $s1, 0x1c($sp)
/* 7046EC 80238BFC 8FB00018 */ lw $s0, 0x18($sp)
/* 7046F0 80238C00 03E00008 */ jr $ra
/* 7046F4 80238C04 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -0,0 +1,39 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238C08_7046F8
/* 7046F8 80238C08 8C830084 */ lw $v1, 0x84($a0)
/* 7046FC 80238C0C 3C05800E */ lui $a1, %hi(gBattleStatus)
/* 704700 80238C10 24A5C070 */ addiu $a1, $a1, %lo(gBattleStatus)
/* 704704 80238C14 18600003 */ blez $v1, .L80238C24
/* 704708 80238C18 24020001 */ addiu $v0, $zero, 1
/* 70470C 80238C1C 0808E30A */ j .L80238C28
/* 704710 80238C20 AC820084 */ sw $v0, 0x84($a0)
.L80238C24:
/* 704714 80238C24 AC800084 */ sw $zero, 0x84($a0)
.L80238C28:
/* 704718 80238C28 AC8000C0 */ sw $zero, 0xc0($a0)
/* 70471C 80238C2C AC8300AC */ sw $v1, 0xac($a0)
/* 704720 80238C30 80A2009B */ lb $v0, 0x9b($a1)
/* 704724 80238C34 0043102A */ slt $v0, $v0, $v1
/* 704728 80238C38 10400009 */ beqz $v0, .L80238C60
/* 70472C 80238C3C 24020001 */ addiu $v0, $zero, 1
/* 704730 80238C40 A0A3009B */ sb $v1, 0x9b($a1)
/* 704734 80238C44 A0A2009C */ sb $v0, 0x9c($a1)
/* 704738 80238C48 0060102D */ daddu $v0, $v1, $zero
/* 70473C 80238C4C 8CA3043C */ lw $v1, 0x43c($a1)
/* 704740 80238C50 00021600 */ sll $v0, $v0, 0x18
/* 704744 80238C54 8C63000C */ lw $v1, 0xc($v1)
/* 704748 80238C58 00021603 */ sra $v0, $v0, 0x18
/* 70474C 80238C5C A4620024 */ sh $v0, 0x24($v1)
.L80238C60:
/* 704750 80238C60 3C04800E */ lui $a0, %hi(gBattleStatus)
/* 704754 80238C64 2484C070 */ addiu $a0, $a0, %lo(gBattleStatus)
/* 704758 80238C68 8C830004 */ lw $v1, 4($a0)
/* 70475C 80238C6C 30620002 */ andi $v0, $v1, 2
/* 704760 80238C70 10400002 */ beqz $v0, .L80238C7C
/* 704764 80238C74 34620100 */ ori $v0, $v1, 0x100
/* 704768 80238C78 AC820004 */ sw $v0, 4($a0)
.L80238C7C:
/* 70476C 80238C7C 03E00008 */ jr $ra
/* 704770 80238C80 24020002 */ addiu $v0, $zero, 2

View File

@ -0,0 +1,130 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238C84_704774
/* 704774 80238C84 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 704778 80238C88 AFB20020 */ sw $s2, 0x20($sp)
/* 70477C 80238C8C 0080902D */ daddu $s2, $a0, $zero
/* 704780 80238C90 AFBF0024 */ sw $ra, 0x24($sp)
/* 704784 80238C94 AFB1001C */ sw $s1, 0x1c($sp)
/* 704788 80238C98 AFB00018 */ sw $s0, 0x18($sp)
/* 70478C 80238C9C 8E50000C */ lw $s0, 0xc($s2)
/* 704790 80238CA0 54A00001 */ bnel $a1, $zero, .L80238CA8
/* 704794 80238CA4 AE400070 */ sw $zero, 0x70($s2)
.L80238CA8:
/* 704798 80238CA8 8E430070 */ lw $v1, 0x70($s2)
/* 70479C 80238CAC 10600005 */ beqz $v1, .L80238CC4
/* 7047A0 80238CB0 24020001 */ addiu $v0, $zero, 1
/* 7047A4 80238CB4 1062003F */ beq $v1, $v0, .L80238DB4
/* 7047A8 80238CB8 0000102D */ daddu $v0, $zero, $zero
/* 7047AC 80238CBC 0808E391 */ j .L80238E44
/* 7047B0 80238CC0 00000000 */ nop
.L80238CC4:
/* 7047B4 80238CC4 8E050000 */ lw $a1, ($s0)
/* 7047B8 80238CC8 26100004 */ addiu $s0, $s0, 4
/* 7047BC 80238CCC 0C0B1EAF */ jal get_variable
/* 7047C0 80238CD0 0240202D */ daddu $a0, $s2, $zero
/* 7047C4 80238CD4 AE420074 */ sw $v0, 0x74($s2)
/* 7047C8 80238CD8 8E050000 */ lw $a1, ($s0)
/* 7047CC 80238CDC 26100004 */ addiu $s0, $s0, 4
/* 7047D0 80238CE0 0C0B1EAF */ jal get_variable
/* 7047D4 80238CE4 0240202D */ daddu $a0, $s2, $zero
/* 7047D8 80238CE8 8E050000 */ lw $a1, ($s0)
/* 7047DC 80238CEC 26100004 */ addiu $s0, $s0, 4
/* 7047E0 80238CF0 0240202D */ daddu $a0, $s2, $zero
/* 7047E4 80238CF4 0C0B1EAF */ jal get_variable
/* 7047E8 80238CF8 0040882D */ daddu $s1, $v0, $zero
/* 7047EC 80238CFC 0240202D */ daddu $a0, $s2, $zero
/* 7047F0 80238D00 8E050000 */ lw $a1, ($s0)
/* 7047F4 80238D04 0C0B1EAF */ jal get_variable
/* 7047F8 80238D08 0040802D */ daddu $s0, $v0, $zero
/* 7047FC 80238D0C 0000202D */ daddu $a0, $zero, $zero
/* 704800 80238D10 24030014 */ addiu $v1, $zero, 0x14
/* 704804 80238D14 AE430078 */ sw $v1, 0x78($s2)
/* 704808 80238D18 2403000A */ addiu $v1, $zero, 0xa
/* 70480C 80238D1C 44911000 */ mtc1 $s1, $f2
/* 704810 80238D20 00000000 */ nop
/* 704814 80238D24 468010A0 */ cvt.s.w $f2, $f2
/* 704818 80238D28 44051000 */ mfc1 $a1, $f2
/* 70481C 80238D2C 44901000 */ mtc1 $s0, $f2
/* 704820 80238D30 00000000 */ nop
/* 704824 80238D34 468010A0 */ cvt.s.w $f2, $f2
/* 704828 80238D38 3C013F80 */ lui $at, 0x3f80
/* 70482C 80238D3C 44810000 */ mtc1 $at, $f0
/* 704830 80238D40 44061000 */ mfc1 $a2, $f2
/* 704834 80238D44 44821000 */ mtc1 $v0, $f2
/* 704838 80238D48 00000000 */ nop
/* 70483C 80238D4C 468010A0 */ cvt.s.w $f2, $f2
/* 704840 80238D50 AE43007C */ sw $v1, 0x7c($s2)
/* 704844 80238D54 E7A00010 */ swc1 $f0, 0x10($sp)
/* 704848 80238D58 8E430078 */ lw $v1, 0x78($s2)
/* 70484C 80238D5C 44071000 */ mfc1 $a3, $f2
/* 704850 80238D60 2463000A */ addiu $v1, $v1, 0xa
/* 704854 80238D64 0C01C664 */ jal func_80071990
/* 704858 80238D68 AFA30014 */ sw $v1, 0x14($sp)
/* 70485C 80238D6C 8C43000C */ lw $v1, 0xc($v0)
/* 704860 80238D70 3C018024 */ lui $at, %hi(D_8023C1B4)
/* 704864 80238D74 AC22C1B4 */ sw $v0, %lo(D_8023C1B4)($at)
/* 704868 80238D78 24020003 */ addiu $v0, $zero, 3
/* 70486C 80238D7C AC620030 */ sw $v0, 0x30($v1)
/* 704870 80238D80 8E420074 */ lw $v0, 0x74($s2)
/* 704874 80238D84 04420001 */ bltzl $v0, .L80238D8C
/* 704878 80238D88 2442000F */ addiu $v0, $v0, 0xf
.L80238D8C:
/* 70487C 80238D8C 00021103 */ sra $v0, $v0, 4
/* 704880 80238D90 00021080 */ sll $v0, $v0, 2
/* 704884 80238D94 3C038024 */ lui $v1, %hi(D_8023B948_707438)
/* 704888 80238D98 2463B948 */ addiu $v1, $v1, %lo(D_8023B948_707438)
/* 70488C 80238D9C 00431021 */ addu $v0, $v0, $v1
/* 704890 80238DA0 8C430000 */ lw $v1, ($v0)
/* 704894 80238DA4 24020001 */ addiu $v0, $zero, 1
/* 704898 80238DA8 AE420070 */ sw $v0, 0x70($s2)
/* 70489C 80238DAC 0808E390 */ j .L80238E40
/* 7048A0 80238DB0 AE430074 */ sw $v1, 0x74($s2)
.L80238DB4:
/* 7048A4 80238DB4 2402000A */ addiu $v0, $zero, 0xa
/* 7048A8 80238DB8 8E43007C */ lw $v1, 0x7c($s2)
/* 7048AC 80238DBC 8E440074 */ lw $a0, 0x74($s2)
/* 7048B0 80238DC0 00431023 */ subu $v0, $v0, $v1
/* 7048B4 80238DC4 00820018 */ mult $a0, $v0
/* 7048B8 80238DC8 3C046666 */ lui $a0, 0x6666
/* 7048BC 80238DCC 34846667 */ ori $a0, $a0, 0x6667
/* 7048C0 80238DD0 00031040 */ sll $v0, $v1, 1
/* 7048C4 80238DD4 00004812 */ mflo $t1
/* 7048C8 80238DD8 00431021 */ addu $v0, $v0, $v1
/* 7048CC 80238DDC 00491021 */ addu $v0, $v0, $t1
/* 7048D0 80238DE0 00440018 */ mult $v0, $a0
/* 7048D4 80238DE4 3C058024 */ lui $a1, %hi(D_8023C1B4)
/* 7048D8 80238DE8 24A5C1B4 */ addiu $a1, $a1, %lo(D_8023C1B4)
/* 7048DC 80238DEC 8CA40000 */ lw $a0, ($a1)
/* 7048E0 80238DF0 000217C3 */ sra $v0, $v0, 0x1f
/* 7048E4 80238DF4 8C84000C */ lw $a0, 0xc($a0)
/* 7048E8 80238DF8 00001810 */ mfhi $v1
/* 7048EC 80238DFC 00031883 */ sra $v1, $v1, 2
/* 7048F0 80238E00 00621823 */ subu $v1, $v1, $v0
/* 7048F4 80238E04 AC830030 */ sw $v1, 0x30($a0)
/* 7048F8 80238E08 8E42007C */ lw $v0, 0x7c($s2)
/* 7048FC 80238E0C 10400002 */ beqz $v0, .L80238E18
/* 704900 80238E10 2442FFFF */ addiu $v0, $v0, -1
/* 704904 80238E14 AE42007C */ sw $v0, 0x7c($s2)
.L80238E18:
/* 704908 80238E18 8E420078 */ lw $v0, 0x78($s2)
/* 70490C 80238E1C 14400007 */ bnez $v0, .L80238E3C
/* 704910 80238E20 2442FFFF */ addiu $v0, $v0, -1
/* 704914 80238E24 8CA40000 */ lw $a0, ($a1)
/* 704918 80238E28 8C830000 */ lw $v1, ($a0)
/* 70491C 80238E2C 24020002 */ addiu $v0, $zero, 2
/* 704920 80238E30 34630010 */ ori $v1, $v1, 0x10
/* 704924 80238E34 0808E391 */ j .L80238E44
/* 704928 80238E38 AC830000 */ sw $v1, ($a0)
.L80238E3C:
/* 70492C 80238E3C AE420078 */ sw $v0, 0x78($s2)
.L80238E40:
/* 704930 80238E40 0000102D */ daddu $v0, $zero, $zero
.L80238E44:
/* 704934 80238E44 8FBF0024 */ lw $ra, 0x24($sp)
/* 704938 80238E48 8FB20020 */ lw $s2, 0x20($sp)
/* 70493C 80238E4C 8FB1001C */ lw $s1, 0x1c($sp)
/* 704940 80238E50 8FB00018 */ lw $s0, 0x18($sp)
/* 704944 80238E54 03E00008 */ jr $ra
/* 704948 80238E58 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -0,0 +1,85 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238E5C_70494C
/* 70494C 80238E5C 27BDFFC8 */ addiu $sp, $sp, -0x38
/* 704950 80238E60 AFB60028 */ sw $s6, 0x28($sp)
/* 704954 80238E64 3C16800E */ lui $s6, %hi(gBattleStatus+0xDC)
/* 704958 80238E68 8ED6C14C */ lw $s6, %lo(gBattleStatus+0xDC)($s6)
/* 70495C 80238E6C AFBE0030 */ sw $fp, 0x30($sp)
/* 704960 80238E70 0080F02D */ daddu $fp, $a0, $zero
/* 704964 80238E74 AFB40020 */ sw $s4, 0x20($sp)
/* 704968 80238E78 0000A02D */ daddu $s4, $zero, $zero
/* 70496C 80238E7C AFB50024 */ sw $s5, 0x24($sp)
/* 704970 80238E80 0280A82D */ daddu $s5, $s4, $zero
/* 704974 80238E84 AFBF0034 */ sw $ra, 0x34($sp)
/* 704978 80238E88 AFB7002C */ sw $s7, 0x2c($sp)
/* 70497C 80238E8C AFB3001C */ sw $s3, 0x1c($sp)
/* 704980 80238E90 AFB20018 */ sw $s2, 0x18($sp)
/* 704984 80238E94 AFB10014 */ sw $s1, 0x14($sp)
/* 704988 80238E98 AFB00010 */ sw $s0, 0x10($sp)
/* 70498C 80238E9C 82C2040C */ lb $v0, 0x40c($s6)
/* 704990 80238EA0 1840001E */ blez $v0, .L80238F1C
/* 704994 80238EA4 0280982D */ daddu $s3, $s4, $zero
/* 704998 80238EA8 2417000E */ addiu $s7, $zero, 0xe
/* 70499C 80238EAC 02C0902D */ daddu $s2, $s6, $zero
.L80238EB0:
/* 7049A0 80238EB0 0C09A75B */ jal get_actor
/* 7049A4 80238EB4 8644022C */ lh $a0, 0x22c($s2)
/* 7049A8 80238EB8 0040802D */ daddu $s0, $v0, $zero
/* 7049AC 80238EBC 8645022E */ lh $a1, 0x22e($s2)
/* 7049B0 80238EC0 0C099117 */ jal get_actor_part
/* 7049B4 80238EC4 0200202D */ daddu $a0, $s0, $zero
/* 7049B8 80238EC8 24050005 */ addiu $a1, $zero, 5
/* 7049BC 80238ECC 8E04020C */ lw $a0, 0x20c($s0)
/* 7049C0 80238ED0 0C0997A6 */ jal lookup_status_chance
/* 7049C4 80238ED4 0040882D */ daddu $s1, $v0, $zero
/* 7049C8 80238ED8 82030218 */ lb $v1, 0x218($s0)
/* 7049CC 80238EDC 14770002 */ bne $v1, $s7, .L80238EE8
/* 7049D0 80238EE0 0040202D */ daddu $a0, $v0, $zero
/* 7049D4 80238EE4 0000202D */ daddu $a0, $zero, $zero
.L80238EE8:
/* 7049D8 80238EE8 8E22007C */ lw $v0, 0x7c($s1)
/* 7049DC 80238EEC 30420020 */ andi $v0, $v0, 0x20
/* 7049E0 80238EF0 54400001 */ bnel $v0, $zero, .L80238EF8
/* 7049E4 80238EF4 0000202D */ daddu $a0, $zero, $zero
.L80238EF8:
/* 7049E8 80238EF8 18800003 */ blez $a0, .L80238F08
/* 7049EC 80238EFC 00000000 */ nop
/* 7049F0 80238F00 02649821 */ addu $s3, $s3, $a0
/* 7049F4 80238F04 26940001 */ addiu $s4, $s4, 1
.L80238F08:
/* 7049F8 80238F08 82C2040C */ lb $v0, 0x40c($s6)
/* 7049FC 80238F0C 26B50001 */ addiu $s5, $s5, 1
/* 704A00 80238F10 02A2102A */ slt $v0, $s5, $v0
/* 704A04 80238F14 1440FFE6 */ bnez $v0, .L80238EB0
/* 704A08 80238F18 26520014 */ addiu $s2, $s2, 0x14
.L80238F1C:
/* 704A0C 80238F1C 5A80000C */ blezl $s4, .L80238F50
/* 704A10 80238F20 AFC00084 */ sw $zero, 0x84($fp)
/* 704A14 80238F24 16800002 */ bnez $s4, .L80238F30
/* 704A18 80238F28 0274001A */ div $zero, $s3, $s4
/* 704A1C 80238F2C 0007000D */ break 7
.L80238F30:
/* 704A20 80238F30 2401FFFF */ addiu $at, $zero, -1
/* 704A24 80238F34 16810004 */ bne $s4, $at, .L80238F48
/* 704A28 80238F38 3C018000 */ lui $at, 0x8000
/* 704A2C 80238F3C 16610002 */ bne $s3, $at, .L80238F48
/* 704A30 80238F40 00000000 */ nop
/* 704A34 80238F44 0006000D */ break 6
.L80238F48:
/* 704A38 80238F48 00001012 */ mflo $v0
/* 704A3C 80238F4C AFC20084 */ sw $v0, 0x84($fp)
.L80238F50:
/* 704A40 80238F50 8FBF0034 */ lw $ra, 0x34($sp)
/* 704A44 80238F54 8FBE0030 */ lw $fp, 0x30($sp)
/* 704A48 80238F58 8FB7002C */ lw $s7, 0x2c($sp)
/* 704A4C 80238F5C 8FB60028 */ lw $s6, 0x28($sp)
/* 704A50 80238F60 8FB50024 */ lw $s5, 0x24($sp)
/* 704A54 80238F64 8FB40020 */ lw $s4, 0x20($sp)
/* 704A58 80238F68 8FB3001C */ lw $s3, 0x1c($sp)
/* 704A5C 80238F6C 8FB20018 */ lw $s2, 0x18($sp)
/* 704A60 80238F70 8FB10014 */ lw $s1, 0x14($sp)
/* 704A64 80238F74 8FB00010 */ lw $s0, 0x10($sp)
/* 704A68 80238F78 24020002 */ addiu $v0, $zero, 2
/* 704A6C 80238F7C 03E00008 */ jr $ra

View File

@ -0,0 +1,11 @@
#include "common.h"
INCLUDE_ASM(s32, "battle/partner/bombette_6FAD10", func_80238000_6FAD10);
INCLUDE_ASM(s32, "battle/partner/bombette_6FAD10", func_80238244_6FAF54);
INCLUDE_ASM(s32, "battle/partner/bombette_6FAD10", func_80238358_6FB068);
INCLUDE_ASM(s32, "battle/partner/bombette_6FAD10", func_8023849C_6FB1AC);
INCLUDE_ASM(s32, "battle/partner/bombette_6FAD10", func_80238590_6FB2A0);

View File

@ -0,0 +1,15 @@
#include "common.h"
INCLUDE_ASM(s32, "battle/partner/bow_710EF0", func_80238000_710EF0);
INCLUDE_ASM(s32, "battle/partner/bow_710EF0", func_80238014_710F04);
INCLUDE_ASM(s32, "battle/partner/bow_710EF0", func_8023808C_710F7C);
INCLUDE_ASM(s32, "battle/partner/bow_710EF0", func_802380E4_710FD4);
INCLUDE_ASM(s32, "battle/partner/bow_710EF0", func_80238198_711088);
INCLUDE_ASM(s32, "battle/partner/bow_710EF0", func_802381C8_7110B8);
INCLUDE_ASM(s32, "battle/partner/bow_710EF0", func_802381E8_7110D8);

View File

@ -0,0 +1,31 @@
#include "common.h"
INCLUDE_ASM(s32, "battle/partner/goombario_6F10E0", func_80238000_6F10E0);
INCLUDE_ASM(s32, "battle/partner/goombario_6F10E0", func_802380E4_6F11C4);
INCLUDE_ASM(s32, "battle/partner/goombario_6F10E0", func_8023817C_6F125C);
INCLUDE_ASM(s32, "battle/partner/goombario_6F10E0", func_80238A20_6F1B00);
INCLUDE_ASM(s32, "battle/partner/goombario_6F10E0", func_80238B60_6F1C40);
INCLUDE_ASM(s32, "battle/partner/goombario_6F10E0", func_80238BCC_6F1CAC);
INCLUDE_ASM(s32, "battle/partner/goombario_6F10E0", func_80238E04_6F1EE4);
INCLUDE_ASM(s32, "battle/partner/goombario_6F10E0", func_80238E48_6F1F28);
INCLUDE_ASM(s32, "battle/partner/goombario_6F10E0", func_80238E74_6F1F54);
INCLUDE_ASM(s32, "battle/partner/goombario_6F10E0", func_80238EDC_6F1FBC);
INCLUDE_ASM(s32, "battle/partner/goombario_6F10E0", func_8023903C_6F211C);
INCLUDE_ASM(s32, "battle/partner/goombario_6F10E0", func_80239068_6F2148);
INCLUDE_ASM(s32, "battle/partner/goombario_6F10E0", func_802390B0_6F2190);
INCLUDE_ASM(s32, "battle/partner/goombario_6F10E0", func_802390C8_6F21A8);
INCLUDE_ASM(s32, "battle/partner/goombario_6F10E0", func_80239190_6F2270);

View File

@ -0,0 +1,9 @@
#include "common.h"
INCLUDE_ASM(s32, "battle/partner/kooper_6F5E80", func_80238000_6F5E80);
INCLUDE_ASM(s32, "battle/partner/kooper_6F5E80", func_80238114_6F5F94);
INCLUDE_ASM(s32, "battle/partner/kooper_6F5E80", func_80238298_6F6118);
INCLUDE_ASM(s32, "battle/partner/kooper_6F5E80", func_802383C0_6F6240);

View File

@ -0,0 +1,27 @@
#include "common.h"
INCLUDE_ASM(s32, "battle/partner/lakilester_70BD10", func_80238000_70BD10);
INCLUDE_ASM(s32, "battle/partner/lakilester_70BD10", func_8023803C_70BD4C);
INCLUDE_ASM(s32, "battle/partner/lakilester_70BD10", func_80238A6C_70C77C);
INCLUDE_ASM(s32, "battle/partner/lakilester_70BD10", func_80238B50_70C860);
INCLUDE_ASM(s32, "battle/partner/lakilester_70BD10", func_80238C14_70C924);
INCLUDE_ASM(s32, "battle/partner/lakilester_70BD10", func_80238C58_70C968);
INCLUDE_ASM(s32, "battle/partner/lakilester_70BD10", func_80238D48_70CA58);
INCLUDE_ASM(s32, "battle/partner/lakilester_70BD10", func_80238D8C_70CA9C);
INCLUDE_ASM(s32, "battle/partner/lakilester_70BD10", func_8023906C_70CD7C);
INCLUDE_ASM(s32, "battle/partner/lakilester_70BD10", func_80239140_70CE50);
INCLUDE_ASM(s32, "battle/partner/lakilester_70BD10", func_80239F84_70DC94);
INCLUDE_ASM(s32, "battle/partner/lakilester_70BD10", func_8023A19C_70DEAC);
INCLUDE_ASM(s32, "battle/partner/lakilester_70BD10", func_8023A1B0_70DEC0);

View File

@ -0,0 +1,13 @@
#include "common.h"
INCLUDE_ASM(s32, "battle/partner/parakarry_6FFD80", func_80238000_6FFD80);
INCLUDE_ASM(s32, "battle/partner/parakarry_6FFD80", func_80238C88_700A08);
INCLUDE_ASM(s32, "battle/partner/parakarry_6FFD80", func_80238CE0_700A60);
INCLUDE_ASM(s32, "battle/partner/parakarry_6FFD80", func_80238E24_700BA4);
INCLUDE_ASM(s32, "battle/partner/parakarry_6FFD80", func_802390B4_700E34);
INCLUDE_ASM(s32, "battle/partner/parakarry_6FFD80", func_802397C8_701548);

View File

@ -0,0 +1,19 @@
#include "common.h"
INCLUDE_ASM(s32, "battle/partner/sushie_707CA0", func_80238000_707CA0);
INCLUDE_ASM(s32, "battle/partner/sushie_707CA0", func_80238114_707DB4);
INCLUDE_ASM(s32, "battle/partner/sushie_707CA0", func_802381EC_707E8C);
INCLUDE_ASM(s32, "battle/partner/sushie_707CA0", func_802382A4_707F44);
INCLUDE_ASM(s32, "battle/partner/sushie_707CA0", func_80238328_707FC8);
INCLUDE_ASM(s32, "battle/partner/sushie_707CA0", func_80238388_708028);
INCLUDE_ASM(s32, "battle/partner/sushie_707CA0", func_80238480_708120);
INCLUDE_ASM(s32, "battle/partner/sushie_707CA0", func_80238540_7081E0);
INCLUDE_ASM(s32, "battle/partner/sushie_707CA0", func_80238E30_708AD0);

View File

@ -0,0 +1,5 @@
#include "common.h"
INCLUDE_ASM(s32, "battle/partner/twink_714CF0", func_80238000_714CF0);
INCLUDE_ASM(s32, "battle/partner/twink_714CF0", func_80238028_714D18);

View File

@ -0,0 +1,39 @@
#include "common.h"
INCLUDE_ASM(s32, "battle/partner/watt_703AF0", func_80238000_703AF0);
INCLUDE_ASM(s32, "battle/partner/watt_703AF0", func_80238370_703E60);
INCLUDE_ASM(s32, "battle/partner/watt_703AF0", func_802383C0_703EB0);
INCLUDE_ASM(s32, "battle/partner/watt_703AF0", func_802383D4_703EC4);
INCLUDE_ASM(s32, "battle/partner/watt_703AF0", func_802383E4_703ED4);
INCLUDE_ASM(s32, "battle/partner/watt_703AF0", func_802383F8_703EE8);
INCLUDE_ASM(s32, "battle/partner/watt_703AF0", func_80238408_703EF8);
INCLUDE_ASM(s32, "battle/partner/watt_703AF0", func_80238434_703F24);
INCLUDE_ASM(s32, "battle/partner/watt_703AF0", func_80238478_703F68);
INCLUDE_ASM(s32, "battle/partner/watt_703AF0", func_802384B0_703FA0);
INCLUDE_ASM(s32, "battle/partner/watt_703AF0", func_80238570_704060);
INCLUDE_ASM(s32, "battle/partner/watt_703AF0", func_8023859C_70408C);
INCLUDE_ASM(s32, "battle/partner/watt_703AF0", func_80238668_704158);
INCLUDE_ASM(s32, "battle/partner/watt_703AF0", func_80238784_704274);
INCLUDE_ASM(s32, "battle/partner/watt_703AF0", func_80238810_704300);
INCLUDE_ASM(s32, "battle/partner/watt_703AF0", func_80238B3C_70462C);
INCLUDE_ASM(s32, "battle/partner/watt_703AF0", func_80238C08_7046F8);
INCLUDE_ASM(s32, "battle/partner/watt_703AF0", func_80238C84_704774);
INCLUDE_ASM(s32, "battle/partner/watt_703AF0", func_80238E5C_70494C);

View File

@ -1,31 +0,0 @@
#include "common.h"
INCLUDE_ASM(s32, "code_6F10E0", func_80238000_6F10E0);
INCLUDE_ASM(s32, "code_6F10E0", func_802380E4_6F11C4);
INCLUDE_ASM(s32, "code_6F10E0", func_8023817C_6F125C);
INCLUDE_ASM(s32, "code_6F10E0", func_80238A20_6F1B00);
INCLUDE_ASM(s32, "code_6F10E0", func_80238B60_6F1C40);
INCLUDE_ASM(s32, "code_6F10E0", func_80238BCC_6F1CAC);
INCLUDE_ASM(s32, "code_6F10E0", func_80238E04_6F1EE4);
INCLUDE_ASM(s32, "code_6F10E0", func_80238E48_6F1F28);
INCLUDE_ASM(s32, "code_6F10E0", func_80238E74_6F1F54);
INCLUDE_ASM(s32, "code_6F10E0", func_80238EDC_6F1FBC);
INCLUDE_ASM(s32, "code_6F10E0", func_8023903C_6F211C);
INCLUDE_ASM(s32, "code_6F10E0", func_80239068_6F2148);
INCLUDE_ASM(s32, "code_6F10E0", func_802390B0_6F2190);
INCLUDE_ASM(s32, "code_6F10E0", func_802390C8_6F21A8);
INCLUDE_ASM(s32, "code_6F10E0", func_80239190_6F2270);

Some files were not shown because too many files have changed in this diff Show More