papermario/asm/nonmatchings/code_710EF0/func_80238014_710F04.s
2021-01-13 00:42:27 +09:00

35 lines
1.7 KiB
ArmAsm
Generated

.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