papermario/asm/nonmatchings/code_10400_len_d30/func_800355D4_2.s
2020-08-12 22:37:16 -04:00

45 lines
1.9 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_800355D4_2
/* 0109D4 800355D4 3C05800A */ lui $a1, 0x800a
/* 0109D8 800355D8 84A50932 */ lh $a1, 0x932($a1)
/* 0109DC 800355DC 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 0109E0 800355E0 18A00009 */ blez $a1, .L80035608
/* 0109E4 800355E4 AFBF0010 */ sw $ra, 0x10($sp)
/* 0109E8 800355E8 44850000 */ mtc1 $a1, $f0
/* 0109EC 800355EC 00000000 */ nop
/* 0109F0 800355F0 46800020 */ cvt.s.w $f0, $f0
/* 0109F4 800355F4 44050000 */ mfc1 $a1, $f0
/* 0109F8 800355F8 3C01800A */ lui $at, 0x800a
/* 0109FC 800355FC A0200931 */ sb $zero, 0x931($at)
/* 010A00 80035600 0800D58A */ j .L80035628
/* 010A04 80035604 0000202D */ daddu $a0, $zero, $zero
.L80035608:
/* 010A08 80035608 24020001 */ addiu $v0, $zero, 1
/* 010A0C 8003560C 44850000 */ mtc1 $a1, $f0
/* 010A10 80035610 00000000 */ nop
/* 010A14 80035614 46800020 */ cvt.s.w $f0, $f0
/* 010A18 80035618 44050000 */ mfc1 $a1, $f0
/* 010A1C 8003561C 0000202D */ daddu $a0, $zero, $zero
/* 010A20 80035620 3C01800A */ lui $at, 0x800a
/* 010A24 80035624 A0220931 */ sb $v0, 0x931($at)
.L80035628:
/* 010A28 80035628 0C04DF62 */ jal func_80137D88
/* 010A2C 8003562C 00000000 */ nop
/* 010A30 80035630 24020001 */ addiu $v0, $zero, 1
/* 010A34 80035634 3C04800A */ lui $a0, 0x800a
/* 010A38 80035638 2484A650 */ addiu $a0, $a0, -0x59b0
/* 010A3C 8003563C 3C01800A */ lui $at, 0x800a
/* 010A40 80035640 A0220930 */ sb $v0, 0x930($at)
/* 010A44 80035644 8C820000 */ lw $v0, ($a0)
/* 010A48 80035648 2403FFBF */ addiu $v1, $zero, -0x41
/* 010A4C 8003564C 00431024 */ and $v0, $v0, $v1
/* 010A50 80035650 AC820000 */ sw $v0, ($a0)
/* 010A54 80035654 8FBF0010 */ lw $ra, 0x10($sp)
/* 010A58 80035658 03E00008 */ jr $ra
/* 010A5C 8003565C 27BD0018 */ addiu $sp, $sp, 0x18