mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 08:52:40 +01:00
87 lines
3.6 KiB
ArmAsm
87 lines
3.6 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
.include "include/macro.inc"
|
|
|
|
glabel func_80112B98
|
|
/* 0A9298 80112B98 3C038015 */ lui $v1, 0x8015
|
|
/* 0A929C 80112B9C 24631700 */ addiu $v1, $v1, 0x1700
|
|
/* 0A92A0 80112BA0 24020001 */ addiu $v0, $zero, 1
|
|
.L80112BA4:
|
|
/* 0A92A4 80112BA4 A4600000 */ sh $zero, ($v1)
|
|
/* 0A92A8 80112BA8 2442FFFF */ addiu $v0, $v0, -1
|
|
/* 0A92AC 80112BAC 0441FFFD */ bgez $v0, .L80112BA4
|
|
/* 0A92B0 80112BB0 24630018 */ addiu $v1, $v1, 0x18
|
|
/* 0A92B4 80112BB4 03E00008 */ jr $ra
|
|
/* 0A92B8 80112BB8 00000000 */ nop
|
|
|
|
/* 0A92BC 80112BBC 27BDFFE8 */ addiu $sp, $sp, -0x18
|
|
/* 0A92C0 80112BC0 AFB00010 */ sw $s0, 0x10($sp)
|
|
/* 0A92C4 80112BC4 3C108015 */ lui $s0, 0x8015
|
|
/* 0A92C8 80112BC8 26101700 */ addiu $s0, $s0, 0x1700
|
|
/* 0A92CC 80112BCC 0000182D */ daddu $v1, $zero, $zero
|
|
/* 0A92D0 80112BD0 AFBF0014 */ sw $ra, 0x14($sp)
|
|
.L80112BD4:
|
|
/* 0A92D4 80112BD4 96020000 */ lhu $v0, ($s0)
|
|
/* 0A92D8 80112BD8 10400006 */ beqz $v0, .L80112BF4
|
|
/* 0A92DC 80112BDC 28620002 */ slti $v0, $v1, 2
|
|
/* 0A92E0 80112BE0 24630001 */ addiu $v1, $v1, 1
|
|
/* 0A92E4 80112BE4 28620002 */ slti $v0, $v1, 2
|
|
/* 0A92E8 80112BE8 1440FFFA */ bnez $v0, .L80112BD4
|
|
/* 0A92EC 80112BEC 26100018 */ addiu $s0, $s0, 0x18
|
|
/* 0A92F0 80112BF0 28620002 */ slti $v0, $v1, 2
|
|
.L80112BF4:
|
|
/* 0A92F4 80112BF4 14400003 */ bnez $v0, .L80112C04
|
|
/* 0A92F8 80112BF8 24020003 */ addiu $v0, $zero, 3
|
|
.L80112BFC:
|
|
/* 0A92FC 80112BFC 08044AFF */ j .L80112BFC
|
|
/* 0A9300 80112C00 00000000 */ nop
|
|
|
|
.L80112C04:
|
|
/* 0A9304 80112C04 A6020000 */ sh $v0, ($s0)
|
|
/* 0A9308 80112C08 8C820004 */ lw $v0, 4($a0)
|
|
/* 0A930C 80112C0C AE020004 */ sw $v0, 4($s0)
|
|
/* 0A9310 80112C10 8C820008 */ lw $v0, 8($a0)
|
|
/* 0A9314 80112C14 8E030004 */ lw $v1, 4($s0)
|
|
/* 0A9318 80112C18 AE020008 */ sw $v0, 8($s0)
|
|
/* 0A931C 80112C1C 8C820010 */ lw $v0, 0x10($a0)
|
|
/* 0A9320 80112C20 AE00000C */ sw $zero, 0xc($s0)
|
|
/* 0A9324 80112C24 14600004 */ bnez $v1, .L80112C38
|
|
/* 0A9328 80112C28 AE020010 */ sw $v0, 0x10($s0)
|
|
/* 0A932C 80112C2C 3C028011 */ lui $v0, 0x8011
|
|
/* 0A9330 80112C30 24422B90 */ addiu $v0, $v0, 0x2b90
|
|
/* 0A9334 80112C34 AE020004 */ sw $v0, 4($s0)
|
|
.L80112C38:
|
|
/* 0A9338 80112C38 8E020008 */ lw $v0, 8($s0)
|
|
/* 0A933C 80112C3C 14400004 */ bnez $v0, .L80112C50
|
|
/* 0A9340 80112C40 00000000 */ nop
|
|
/* 0A9344 80112C44 3C028011 */ lui $v0, 0x8011
|
|
/* 0A9348 80112C48 24422B90 */ addiu $v0, $v0, 0x2b90
|
|
/* 0A934C 80112C4C AE020008 */ sw $v0, 8($s0)
|
|
.L80112C50:
|
|
/* 0A9350 80112C50 8E02000C */ lw $v0, 0xc($s0)
|
|
/* 0A9354 80112C54 14400004 */ bnez $v0, .L80112C68
|
|
/* 0A9358 80112C58 00000000 */ nop
|
|
/* 0A935C 80112C5C 3C028011 */ lui $v0, 0x8011
|
|
/* 0A9360 80112C60 24422B90 */ addiu $v0, $v0, 0x2b90
|
|
/* 0A9364 80112C64 AE02000C */ sw $v0, 0xc($s0)
|
|
.L80112C68:
|
|
/* 0A9368 80112C68 8E020010 */ lw $v0, 0x10($s0)
|
|
/* 0A936C 80112C6C 14400004 */ bnez $v0, .L80112C80
|
|
/* 0A9370 80112C70 00000000 */ nop
|
|
/* 0A9374 80112C74 3C028011 */ lui $v0, 0x8011
|
|
/* 0A9378 80112C78 24422B90 */ addiu $v0, $v0, 0x2b90
|
|
/* 0A937C 80112C7C AE020010 */ sw $v0, 0x10($s0)
|
|
.L80112C80:
|
|
/* 0A9380 80112C80 8E030004 */ lw $v1, 4($s0)
|
|
/* 0A9384 80112C84 3C028011 */ lui $v0, 0x8011
|
|
/* 0A9388 80112C88 24422B90 */ addiu $v0, $v0, 0x2b90
|
|
/* 0A938C 80112C8C 0060F809 */ jalr $v1
|
|
/* 0A9390 80112C90 AE020014 */ sw $v0, 0x14($s0)
|
|
/* 0A9394 80112C94 0200102D */ daddu $v0, $s0, $zero
|
|
/* 0A9398 80112C98 8FBF0014 */ lw $ra, 0x14($sp)
|
|
/* 0A939C 80112C9C 8FB00010 */ lw $s0, 0x10($sp)
|
|
/* 0A93A0 80112CA0 03E00008 */ jr $ra
|
|
/* 0A93A4 80112CA4 27BD0018 */ addiu $sp, $sp, 0x18
|
|
|