papermario/asm/nonmatchings/code_16c8e0/func_8026D940.s

92 lines
4.6 KiB
ArmAsm
Raw Normal View History

2020-09-24 05:16:13 +02:00
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_8026D940
/* 19C220 8026D940 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 19C224 8026D944 AFB10014 */ sw $s1, 0x14($sp)
/* 19C228 8026D948 0080882D */ daddu $s1, $a0, $zero
/* 19C22C 8026D94C AFBF001C */ sw $ra, 0x1c($sp)
/* 19C230 8026D950 AFB20018 */ sw $s2, 0x18($sp)
/* 19C234 8026D954 AFB00010 */ sw $s0, 0x10($sp)
/* 19C238 8026D958 8E30000C */ lw $s0, 0xc($s1)
/* 19C23C 8026D95C 8E050000 */ lw $a1, ($s0)
/* 19C240 8026D960 0C0B1EAF */ jal get_variable
/* 19C244 8026D964 26100004 */ addiu $s0, $s0, 4
/* 19C248 8026D968 0040902D */ daddu $s2, $v0, $zero
/* 19C24C 8026D96C 2402FF81 */ addiu $v0, $zero, -0x7f
/* 19C250 8026D970 16420002 */ bne $s2, $v0, .L8026D97C
/* 19C254 8026D974 00000000 */ nop
/* 19C258 8026D978 8E320148 */ lw $s2, 0x148($s1)
.L8026D97C:
/* 19C25C 8026D97C 8E050000 */ lw $a1, ($s0)
/* 19C260 8026D980 26100004 */ addiu $s0, $s0, 4
/* 19C264 8026D984 0C0B1EAF */ jal get_variable
/* 19C268 8026D988 0220202D */ daddu $a0, $s1, $zero
/* 19C26C 8026D98C 0220202D */ daddu $a0, $s1, $zero
/* 19C270 8026D990 8E050000 */ lw $a1, ($s0)
/* 19C274 8026D994 0C0B1EAF */ jal get_variable
/* 19C278 8026D998 0040882D */ daddu $s1, $v0, $zero
/* 19C27C 8026D99C 0240202D */ daddu $a0, $s2, $zero
/* 19C280 8026D9A0 0C09A75B */ jal get_actor
/* 19C284 8026D9A4 0040802D */ daddu $s0, $v0, $zero
/* 19C288 8026D9A8 0040202D */ daddu $a0, $v0, $zero
/* 19C28C 8026D9AC 8C820008 */ lw $v0, 8($a0)
/* 19C290 8026D9B0 A0910198 */ sb $s1, 0x198($a0)
/* 19C294 8026D9B4 A0900199 */ sb $s0, 0x199($a0)
/* 19C298 8026D9B8 80420022 */ lb $v0, 0x22($v0)
/* 19C29C 8026D9BC C4820138 */ lwc1 $f2, 0x138($a0)
/* 19C2A0 8026D9C0 44820000 */ mtc1 $v0, $f0
/* 19C2A4 8026D9C4 00000000 */ nop
/* 19C2A8 8026D9C8 46800020 */ cvt.s.w $f0, $f0
/* 19C2AC 8026D9CC 46001080 */ add.s $f2, $f2, $f0
/* 19C2B0 8026D9D0 80820198 */ lb $v0, 0x198($a0)
/* 19C2B4 8026D9D4 44820000 */ mtc1 $v0, $f0
/* 19C2B8 8026D9D8 00000000 */ nop
/* 19C2BC 8026D9DC 46800020 */ cvt.s.w $f0, $f0
/* 19C2C0 8026D9E0 46001080 */ add.s $f2, $f2, $f0
/* 19C2C4 8026D9E4 8C830008 */ lw $v1, 8($a0)
/* 19C2C8 8026D9E8 4600118D */ trunc.w.s $f6, $f2
/* 19C2CC 8026D9EC 44023000 */ mfc1 $v0, $f6
/* 19C2D0 8026D9F0 00000000 */ nop
/* 19C2D4 8026D9F4 A4820156 */ sh $v0, 0x156($a0)
/* 19C2D8 8026D9F8 80620023 */ lb $v0, 0x23($v1)
/* 19C2DC 8026D9FC C482013C */ lwc1 $f2, 0x13c($a0)
/* 19C2E0 8026DA00 44820000 */ mtc1 $v0, $f0
/* 19C2E4 8026DA04 00000000 */ nop
/* 19C2E8 8026DA08 46800020 */ cvt.s.w $f0, $f0
/* 19C2EC 8026DA0C 46001080 */ add.s $f2, $f2, $f0
/* 19C2F0 8026DA10 80820199 */ lb $v0, 0x199($a0)
/* 19C2F4 8026DA14 C4800140 */ lwc1 $f0, 0x140($a0)
/* 19C2F8 8026DA18 44822000 */ mtc1 $v0, $f4
/* 19C2FC 8026DA1C 00000000 */ nop
/* 19C300 8026DA20 46802120 */ cvt.s.w $f4, $f4
/* 19C304 8026DA24 4600018D */ trunc.w.s $f6, $f0
/* 19C308 8026DA28 44023000 */ mfc1 $v0, $f6
/* 19C30C 8026DA2C 00000000 */ nop
/* 19C310 8026DA30 A482015A */ sh $v0, 0x15a($a0)
/* 19C314 8026DA34 8C820000 */ lw $v0, ($a0)
/* 19C318 8026DA38 46041080 */ add.s $f2, $f2, $f4
/* 19C31C 8026DA3C 30420800 */ andi $v0, $v0, 0x800
/* 19C320 8026DA40 4600118D */ trunc.w.s $f6, $f2
/* 19C324 8026DA44 44033000 */ mfc1 $v1, $f6
/* 19C328 8026DA48 1040000B */ beqz $v0, .L8026DA78
/* 19C32C 8026DA4C A4830158 */ sh $v1, 0x158($a0)
/* 19C330 8026DA50 90820191 */ lbu $v0, 0x191($a0)
/* 19C334 8026DA54 C480013C */ lwc1 $f0, 0x13c($a0)
/* 19C338 8026DA58 44821000 */ mtc1 $v0, $f2
/* 19C33C 8026DA5C 00000000 */ nop
/* 19C340 8026DA60 468010A0 */ cvt.s.w $f2, $f2
/* 19C344 8026DA64 46020001 */ sub.s $f0, $f0, $f2
/* 19C348 8026DA68 4600018D */ trunc.w.s $f6, $f0
/* 19C34C 8026DA6C 44023000 */ mfc1 $v0, $f6
/* 19C350 8026DA70 00000000 */ nop
/* 19C354 8026DA74 A4820158 */ sh $v0, 0x158($a0)
.L8026DA78:
/* 19C358 8026DA78 8FBF001C */ lw $ra, 0x1c($sp)
/* 19C35C 8026DA7C 8FB20018 */ lw $s2, 0x18($sp)
/* 19C360 8026DA80 8FB10014 */ lw $s1, 0x14($sp)
/* 19C364 8026DA84 8FB00010 */ lw $s0, 0x10($sp)
/* 19C368 8026DA88 24020002 */ addiu $v0, $zero, 2
/* 19C36C 8026DA8C 03E00008 */ jr $ra
/* 19C370 8026DA90 27BD0020 */ addiu $sp, $sp, 0x20