papermario/asm/nonmatchings/code_707CA0/func_802381EC_707E8C.s
Ethan Roseman d5018e6a9f 🐟 🐟 🐟
2021-01-10 21:00:17 +09:00

53 lines
2.7 KiB
ArmAsm
Generated

.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