mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 08:52:40 +01:00
50 lines
2.5 KiB
ArmAsm
50 lines
2.5 KiB
ArmAsm
.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
|