.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