mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 17:02:46 +01:00
109 lines
4.6 KiB
ArmAsm
109 lines
4.6 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
|
|
glabel func_800E06C0
|
|
/* 079B70 800E06C0 38840001 */ xori $a0, $a0, 1
|
|
/* 079B74 800E06C4 2C840001 */ sltiu $a0, $a0, 1
|
|
/* 079B78 800E06C8 3C018011 */ lui $at, 0x8011
|
|
/* 079B7C 800E06CC AC24C950 */ sw $a0, -0x36b0($at)
|
|
/* 079B80 800E06D0 03E00008 */ jr $ra
|
|
/* 079B84 800E06D4 00000000 */ nop
|
|
|
|
/* 079B88 800E06D8 27BDFFE0 */ addiu $sp, $sp, -0x20
|
|
/* 079B8C 800E06DC AFB10014 */ sw $s1, 0x14($sp)
|
|
/* 079B90 800E06E0 3C118011 */ lui $s1, 0x8011
|
|
/* 079B94 800E06E4 2631EFC8 */ addiu $s1, $s1, -0x1038
|
|
/* 079B98 800E06E8 AFBF001C */ sw $ra, 0x1c($sp)
|
|
/* 079B9C 800E06EC AFB20018 */ sw $s2, 0x18($sp)
|
|
/* 079BA0 800E06F0 AFB00010 */ sw $s0, 0x10($sp)
|
|
/* 079BA4 800E06F4 8E2400C8 */ lw $a0, 0xc8($s1)
|
|
/* 079BA8 800E06F8 862200C0 */ lh $v0, 0xc0($s1)
|
|
/* 079BAC 800E06FC 863200C6 */ lh $s2, 0xc6($s1)
|
|
/* 079BB0 800E0700 1440003F */ bnez $v0, .L800E0800
|
|
/* 079BB4 800E0704 0000102D */ daddu $v0, $zero, $zero
|
|
/* 079BB8 800E0708 82220015 */ lb $v0, 0x15($s1)
|
|
/* 079BBC 800E070C 1440003C */ bnez $v0, .L800E0800
|
|
/* 079BC0 800E0710 0000102D */ daddu $v0, $zero, $zero
|
|
/* 079BC4 800E0714 3C028016 */ lui $v0, 0x8016
|
|
/* 079BC8 800E0718 8442A562 */ lh $v0, -0x5a9e($v0)
|
|
/* 079BCC 800E071C 2405FFFF */ addiu $a1, $zero, -1
|
|
/* 079BD0 800E0720 14450003 */ bne $v0, $a1, .L800E0730
|
|
/* 079BD4 800E0724 3C020200 */ lui $v0, 0x200
|
|
.L800E0728:
|
|
/* 079BD8 800E0728 08038200 */ j .L800E0800
|
|
/* 079BDC 800E072C 0000102D */ daddu $v0, $zero, $zero
|
|
|
|
.L800E0730:
|
|
/* 079BE0 800E0730 8E230000 */ lw $v1, ($s1)
|
|
/* 079BE4 800E0734 34422000 */ ori $v0, $v0, 0x2000
|
|
/* 079BE8 800E0738 00621824 */ and $v1, $v1, $v0
|
|
/* 079BEC 800E073C 3C020200 */ lui $v0, 0x200
|
|
/* 079BF0 800E0740 14620009 */ bne $v1, $v0, .L800E0768
|
|
/* 079BF4 800E0744 00000000 */ nop
|
|
/* 079BF8 800E0748 10800007 */ beqz $a0, .L800E0768
|
|
/* 079BFC 800E074C 3C031000 */ lui $v1, 0x1000
|
|
/* 079C00 800E0750 8C820000 */ lw $v0, ($a0)
|
|
/* 079C04 800E0754 00431024 */ and $v0, $v0, $v1
|
|
/* 079C08 800E0758 10400003 */ beqz $v0, .L800E0768
|
|
/* 079C0C 800E075C 00000000 */ nop
|
|
/* 079C10 800E0760 080381FF */ j .L800E07FC
|
|
/* 079C14 800E0764 A62500C6 */ sh $a1, 0xc6($s1)
|
|
|
|
.L800E0768:
|
|
/* 079C18 800E0768 3C108016 */ lui $s0, 0x8016
|
|
/* 079C1C 800E076C 8610A562 */ lh $s0, -0x5a9e($s0)
|
|
/* 079C20 800E0770 32024000 */ andi $v0, $s0, 0x4000
|
|
/* 079C24 800E0774 14400007 */ bnez $v0, .L800E0794
|
|
/* 079C28 800E0778 00000000 */ nop
|
|
/* 079C2C 800E077C 0C05173A */ jal func_80145CE8
|
|
/* 079C30 800E0780 0200202D */ daddu $a0, $s0, $zero
|
|
/* 079C34 800E0784 1440000E */ bnez $v0, .L800E07C0
|
|
/* 079C38 800E0788 0000102D */ daddu $v0, $zero, $zero
|
|
/* 079C3C 800E078C 08038200 */ j .L800E0800
|
|
/* 079C40 800E0790 00000000 */ nop
|
|
|
|
.L800E0794:
|
|
/* 079C44 800E0794 0C0394BE */ jal func_800E52F8
|
|
/* 079C48 800E0798 00000000 */ nop
|
|
/* 079C4C 800E079C 14400003 */ bnez $v0, .L800E07AC
|
|
/* 079C50 800E07A0 2402FFFF */ addiu $v0, $zero, -1
|
|
/* 079C54 800E07A4 080381CA */ j .L800E0728
|
|
/* 079C58 800E07A8 A62200C6 */ sh $v0, 0xc6($s1)
|
|
|
|
.L800E07AC:
|
|
/* 079C5C 800E07AC 0C0441A9 */ jal func_801106A4
|
|
/* 079C60 800E07B0 0200202D */ daddu $a0, $s0, $zero
|
|
/* 079C64 800E07B4 2403000C */ addiu $v1, $zero, 0xc
|
|
/* 079C68 800E07B8 10430011 */ beq $v0, $v1, .L800E0800
|
|
/* 079C6C 800E07BC 0000102D */ daddu $v0, $zero, $zero
|
|
.L800E07C0:
|
|
/* 079C70 800E07C0 16500008 */ bne $s2, $s0, .L800E07E4
|
|
/* 079C74 800E07C4 3C03F7FF */ lui $v1, 0xf7ff
|
|
/* 079C78 800E07C8 8E220000 */ lw $v0, ($s1)
|
|
/* 079C7C 800E07CC 3C030800 */ lui $v1, 0x800
|
|
/* 079C80 800E07D0 00431024 */ and $v0, $v0, $v1
|
|
/* 079C84 800E07D4 10400007 */ beqz $v0, .L800E07F4
|
|
/* 079C88 800E07D8 0000102D */ daddu $v0, $zero, $zero
|
|
/* 079C8C 800E07DC 08038200 */ j .L800E0800
|
|
/* 079C90 800E07E0 00000000 */ nop
|
|
|
|
.L800E07E4:
|
|
/* 079C94 800E07E4 8E220000 */ lw $v0, ($s1)
|
|
/* 079C98 800E07E8 3463FFFF */ ori $v1, $v1, 0xffff
|
|
/* 079C9C 800E07EC 00431024 */ and $v0, $v0, $v1
|
|
/* 079CA0 800E07F0 AE220000 */ sw $v0, ($s1)
|
|
.L800E07F4:
|
|
/* 079CA4 800E07F4 2402FFFF */ addiu $v0, $zero, -1
|
|
/* 079CA8 800E07F8 A62200C6 */ sh $v0, 0xc6($s1)
|
|
.L800E07FC:
|
|
/* 079CAC 800E07FC 24020001 */ addiu $v0, $zero, 1
|
|
.L800E0800:
|
|
/* 079CB0 800E0800 8FBF001C */ lw $ra, 0x1c($sp)
|
|
/* 079CB4 800E0804 8FB20018 */ lw $s2, 0x18($sp)
|
|
/* 079CB8 800E0808 8FB10014 */ lw $s1, 0x14($sp)
|
|
/* 079CBC 800E080C 8FB00010 */ lw $s0, 0x10($sp)
|
|
/* 079CC0 800E0810 03E00008 */ jr $ra
|
|
/* 079CC4 800E0814 27BD0020 */ addiu $sp, $sp, 0x20
|
|
|