.set noat # allow manual use of $at .set noreorder # don't insert nops after branches glabel func_E0024324 /* 339574 E0024324 3C028007 */ lui $v0, %hi(gGameStatusPtr) /* 339578 E0024328 8C42419C */ lw $v0, %lo(gGameStatusPtr)($v0) /* 33957C E002432C 27BDFFE8 */ addiu $sp, $sp, -0x18 /* 339580 E0024330 AFBF0014 */ sw $ra, 0x14($sp) /* 339584 E0024334 AFB00010 */ sw $s0, 0x10($sp) /* 339588 E0024338 94420134 */ lhu $v0, 0x134($v0) /* 33958C E002433C 00021140 */ sll $v0, $v0, 5 /* 339590 E0024340 00451021 */ addu $v0, $v0, $a1 /* 339594 E0024344 44826000 */ mtc1 $v0, $f12 /* 339598 E0024348 00000000 */ nop /* 33959C E002434C 46806320 */ cvt.s.w $f12, $f12 /* 3395A0 E0024350 0C080140 */ jal func_E0200500 /* 3395A4 E0024354 0080802D */ daddu $s0, $a0, $zero /* 3395A8 E0024358 240200FF */ addiu $v0, $zero, 0xff /* 3395AC E002435C 00501023 */ subu $v0, $v0, $s0 /* 3395B0 E0024360 44821000 */ mtc1 $v0, $f2 /* 3395B4 E0024364 00000000 */ nop /* 3395B8 E0024368 468010A0 */ cvt.s.w $f2, $f2 /* 3395BC E002436C 46020002 */ mul.s $f0, $f0, $f2 /* 3395C0 E0024370 00000000 */ nop /* 3395C4 E0024374 46020000 */ add.s $f0, $f0, $f2 /* 3395C8 E0024378 3C013FE0 */ lui $at, 0x3fe0 /* 3395CC E002437C 44811800 */ mtc1 $at, $f3 /* 3395D0 E0024380 44801000 */ mtc1 $zero, $f2 /* 3395D4 E0024384 46000021 */ cvt.d.s $f0, $f0 /* 3395D8 E0024388 46220002 */ mul.d $f0, $f0, $f2 /* 3395DC E002438C 00000000 */ nop /* 3395E0 E0024390 44901000 */ mtc1 $s0, $f2 /* 3395E4 E0024394 00000000 */ nop /* 3395E8 E0024398 468010A1 */ cvt.d.w $f2, $f2 /* 3395EC E002439C 46220000 */ add.d $f0, $f0, $f2 /* 3395F0 E00243A0 8FBF0014 */ lw $ra, 0x14($sp) /* 3395F4 E00243A4 8FB00010 */ lw $s0, 0x10($sp) /* 3395F8 E00243A8 46200020 */ cvt.s.d $f0, $f0 /* 3395FC E00243AC 4600010D */ trunc.w.s $f4, $f0 /* 339600 E00243B0 44022000 */ mfc1 $v0, $f4 /* 339604 E00243B4 03E00008 */ jr $ra /* 339608 E00243B8 27BD0018 */ addiu $sp, $sp, 0x18