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

39 lines
1.7 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80145108
/* 0DB808 80145108 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 0DB80C 8014510C 2402F7FF */ addiu $v0, $zero, -0x801
/* 0DB810 80145110 00822024 */ and $a0, $a0, $v0
/* 0DB814 80145114 3C028015 */ lui $v0, 0x8015
/* 0DB818 80145118 8C427960 */ lw $v0, 0x7960($v0)
/* 0DB81C 8014511C 00042080 */ sll $a0, $a0, 2
/* 0DB820 80145120 AFBF0014 */ sw $ra, 0x14($sp)
/* 0DB824 80145124 AFB00010 */ sw $s0, 0x10($sp)
/* 0DB828 80145128 00822021 */ addu $a0, $a0, $v0
/* 0DB82C 8014512C 8C900000 */ lw $s0, ($a0)
/* 0DB830 80145130 3C030002 */ lui $v1, 2
/* 0DB834 80145134 8E020000 */ lw $v0, ($s0)
/* 0DB838 80145138 8E04001C */ lw $a0, 0x1c($s0)
/* 0DB83C 8014513C 00431024 */ and $v0, $v0, $v1
/* 0DB840 80145140 14400004 */ bnez $v0, .L80145154
/* 0DB844 80145144 00000000 */ nop
/* 0DB848 80145148 0C04EA15 */ jal func_8013A854
/* 0DB84C 8014514C 8C840000 */ lw $a0, ($a0)
/* 0DB850 80145150 8E04001C */ lw $a0, 0x1c($s0)
.L80145154:
/* 0DB854 80145154 0C00AB4B */ jal heap_free
/* 0DB858 80145158 00000000 */ nop
/* 0DB85C 8014515C 3C03BFFC */ lui $v1, 0xbffc
/* 0DB860 80145160 8E020000 */ lw $v0, ($s0)
/* 0DB864 80145164 3463FFFF */ ori $v1, $v1, 0xffff
/* 0DB868 80145168 AE00001C */ sw $zero, 0x1c($s0)
/* 0DB86C 8014516C 00431024 */ and $v0, $v0, $v1
/* 0DB870 80145170 AE020000 */ sw $v0, ($s0)
/* 0DB874 80145174 8FBF0014 */ lw $ra, 0x14($sp)
/* 0DB878 80145178 8FB00010 */ lw $s0, 0x10($sp)
/* 0DB87C 8014517C 03E00008 */ jr $ra
/* 0DB880 80145180 27BD0018 */ addiu $sp, $sp, 0x18