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

69 lines
2.9 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80112CA8
/* 0A93A8 80112CA8 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 0A93AC 80112CAC 3C038015 */ lui $v1, 0x8015
/* 0A93B0 80112CB0 24631700 */ addiu $v1, $v1, 0x1700
/* 0A93B4 80112CB4 00041040 */ sll $v0, $a0, 1
/* 0A93B8 80112CB8 00441021 */ addu $v0, $v0, $a0
/* 0A93BC 80112CBC 000210C0 */ sll $v0, $v0, 3
/* 0A93C0 80112CC0 AFB00010 */ sw $s0, 0x10($sp)
/* 0A93C4 80112CC4 00438021 */ addu $s0, $v0, $v1
/* 0A93C8 80112CC8 28840002 */ slti $a0, $a0, 2
/* 0A93CC 80112CCC 14800003 */ bnez $a0, .L80112CDC
/* 0A93D0 80112CD0 AFBF0014 */ sw $ra, 0x14($sp)
.L80112CD4:
/* 0A93D4 80112CD4 08044B35 */ j .L80112CD4
/* 0A93D8 80112CD8 00000000 */ nop
.L80112CDC:
/* 0A93DC 80112CDC 24020003 */ addiu $v0, $zero, 3
/* 0A93E0 80112CE0 A6020000 */ sh $v0, ($s0)
/* 0A93E4 80112CE4 8CA20004 */ lw $v0, 4($a1)
/* 0A93E8 80112CE8 AE020004 */ sw $v0, 4($s0)
/* 0A93EC 80112CEC 8CA20008 */ lw $v0, 8($a1)
/* 0A93F0 80112CF0 8E030004 */ lw $v1, 4($s0)
/* 0A93F4 80112CF4 AE020008 */ sw $v0, 8($s0)
/* 0A93F8 80112CF8 8CA20010 */ lw $v0, 0x10($a1)
/* 0A93FC 80112CFC AE00000C */ sw $zero, 0xc($s0)
/* 0A9400 80112D00 14600004 */ bnez $v1, .L80112D14
/* 0A9404 80112D04 AE020010 */ sw $v0, 0x10($s0)
/* 0A9408 80112D08 3C028011 */ lui $v0, 0x8011
/* 0A940C 80112D0C 24422B90 */ addiu $v0, $v0, 0x2b90
/* 0A9410 80112D10 AE020004 */ sw $v0, 4($s0)
.L80112D14:
/* 0A9414 80112D14 8E020008 */ lw $v0, 8($s0)
/* 0A9418 80112D18 14400004 */ bnez $v0, .L80112D2C
/* 0A941C 80112D1C 00000000 */ nop
/* 0A9420 80112D20 3C028011 */ lui $v0, 0x8011
/* 0A9424 80112D24 24422B90 */ addiu $v0, $v0, 0x2b90
/* 0A9428 80112D28 AE020008 */ sw $v0, 8($s0)
.L80112D2C:
/* 0A942C 80112D2C 8E02000C */ lw $v0, 0xc($s0)
/* 0A9430 80112D30 14400004 */ bnez $v0, .L80112D44
/* 0A9434 80112D34 00000000 */ nop
/* 0A9438 80112D38 3C028011 */ lui $v0, 0x8011
/* 0A943C 80112D3C 24422B90 */ addiu $v0, $v0, 0x2b90
/* 0A9440 80112D40 AE02000C */ sw $v0, 0xc($s0)
.L80112D44:
/* 0A9444 80112D44 8E020010 */ lw $v0, 0x10($s0)
/* 0A9448 80112D48 14400004 */ bnez $v0, .L80112D5C
/* 0A944C 80112D4C 00000000 */ nop
/* 0A9450 80112D50 3C028011 */ lui $v0, 0x8011
/* 0A9454 80112D54 24422B90 */ addiu $v0, $v0, 0x2b90
/* 0A9458 80112D58 AE020010 */ sw $v0, 0x10($s0)
.L80112D5C:
/* 0A945C 80112D5C 8E030004 */ lw $v1, 4($s0)
/* 0A9460 80112D60 3C028011 */ lui $v0, 0x8011
/* 0A9464 80112D64 24422B90 */ addiu $v0, $v0, 0x2b90
/* 0A9468 80112D68 0060F809 */ jalr $v1
/* 0A946C 80112D6C AE020014 */ sw $v0, 0x14($s0)
/* 0A9470 80112D70 0200102D */ daddu $v0, $s0, $zero
/* 0A9474 80112D74 8FBF0014 */ lw $ra, 0x14($sp)
/* 0A9478 80112D78 8FB00010 */ lw $s0, 0x10($sp)
/* 0A947C 80112D7C 03E00008 */ jr $ra
/* 0A9480 80112D80 27BD0018 */ addiu $sp, $sp, 0x18