papermario/asm/nonmatchings/code_163400/func_80243898.s
Ethan Roseman 84f211a2ae First pass
2020-10-14 22:56:47 -04:00

34 lines
1.6 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80243898
/* 1640F8 80243898 3C028016 */ lui $v0, %hi(D_80159D50)
/* 1640FC 8024389C 24429D50 */ addiu $v0, $v0, %lo(D_80159D50)
/* 164100 802438A0 00042140 */ sll $a0, $a0, 5
/* 164104 802438A4 00822021 */ addu $a0, $a0, $v0
/* 164108 802438A8 9083001C */ lbu $v1, 0x1c($a0)
/* 16410C 802438AC 8FA60020 */ lw $a2, 0x20($sp)
/* 164110 802438B0 2862000A */ slti $v0, $v1, 0xa
/* 164114 802438B4 5040000F */ beql $v0, $zero, .L802438F4
/* 164118 802438B8 ACA00000 */ sw $zero, ($a1)
/* 16411C 802438BC 00031040 */ sll $v0, $v1, 1
/* 164120 802438C0 3C018025 */ lui $at, 0x8025
/* 164124 802438C4 00220821 */ addu $at, $at, $v0
/* 164128 802438C8 84229D14 */ lh $v0, -0x62ec($at)
/* 16412C 802438CC C4C00000 */ lwc1 $f0, ($a2)
/* 164130 802438D0 00021023 */ negu $v0, $v0
/* 164134 802438D4 44821000 */ mtc1 $v0, $f2
/* 164138 802438D8 00000000 */ nop
/* 16413C 802438DC 468010A0 */ cvt.s.w $f2, $f2
/* 164140 802438E0 46020000 */ add.s $f0, $f0, $f2
/* 164144 802438E4 24020009 */ addiu $v0, $zero, 9
/* 164148 802438E8 E4C00000 */ swc1 $f0, ($a2)
/* 16414C 802438EC 03E00008 */ jr $ra
/* 164150 802438F0 ACA20000 */ sw $v0, ($a1)
.L802438F4:
/* 164154 802438F4 90820000 */ lbu $v0, ($a0)
/* 164158 802438F8 304200F7 */ andi $v0, $v0, 0xf7
/* 16415C 802438FC 34420004 */ ori $v0, $v0, 4
/* 164160 80243900 03E00008 */ jr $ra
/* 164164 80243904 A0820000 */ sb $v0, ($a0)