mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 17:02:46 +01:00
221 lines
9.7 KiB
ArmAsm
221 lines
9.7 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
|
|
glabel func_800340A4
|
|
/* 00F4A4 800340A4 3C038007 */ lui $v1, 0x8007
|
|
/* 00F4A8 800340A8 8C63419C */ lw $v1, 0x419c($v1)
|
|
/* 00F4AC 800340AC 27BDFFE8 */ addiu $sp, $sp, -0x18
|
|
/* 00F4B0 800340B0 AFBF0014 */ sw $ra, 0x14($sp)
|
|
/* 00F4B4 800340B4 AFB00010 */ sw $s0, 0x10($sp)
|
|
/* 00F4B8 800340B8 806200AE */ lb $v0, 0xae($v1)
|
|
/* 00F4BC 800340BC 1040000E */ beqz $v0, .L800340F8
|
|
/* 00F4C0 800340C0 00000000 */ nop
|
|
/* 00F4C4 800340C4 0C00CE0C */ jal func_80033830
|
|
/* 00F4C8 800340C8 2404000A */ addiu $a0, $zero, 0xa
|
|
/* 00F4CC 800340CC 104000A4 */ beqz $v0, .L80034360
|
|
/* 00F4D0 800340D0 00000000 */ nop
|
|
/* 00F4D4 800340D4 3C013F80 */ lui $at, 0x3f80
|
|
/* 00F4D8 800340D8 44816000 */ mtc1 $at, $f12
|
|
/* 00F4DC 800340DC 0C00AFBB */ jal func_8002BEEC
|
|
/* 00F4E0 800340E0 00000000 */ nop
|
|
/* 00F4E4 800340E4 44806000 */ mtc1 $zero, $f12
|
|
/* 00F4E8 800340E8 0C00AFC9 */ jal func_8002BF24
|
|
/* 00F4EC 800340EC 00000000 */ nop
|
|
/* 00F4F0 800340F0 0800D0D6 */ j .L80034358
|
|
/* 00F4F4 800340F4 24040002 */ addiu $a0, $zero, 2
|
|
|
|
.L800340F8:
|
|
/* 00F4F8 800340F8 806300AC */ lb $v1, 0xac($v1)
|
|
/* 00F4FC 800340FC 2C62000C */ sltiu $v0, $v1, 0xc
|
|
/* 00F500 80034100 10400097 */ beqz $v0, .L80034360
|
|
/* 00F504 80034104 00031080 */ sll $v0, $v1, 2
|
|
/* 00F508 80034108 3C01800A */ lui $at, 0x800a
|
|
/* 00F50C 8003410C 00220821 */ addu $at, $at, $v0
|
|
/* 00F510 80034110 8C228290 */ lw $v0, -0x7d70($at)
|
|
/* 00F514 80034114 00400008 */ jr $v0
|
|
/* 00F518 80034118 00000000 */ nop
|
|
/* 00F51C 8003411C 3C108007 */ lui $s0, 0x8007
|
|
/* 00F520 80034120 2610419C */ addiu $s0, $s0, 0x419c
|
|
/* 00F524 80034124 8E020000 */ lw $v0, ($s0)
|
|
/* 00F528 80034128 804200AD */ lb $v0, 0xad($v0)
|
|
/* 00F52C 8003412C 1440004D */ bnez $v0, .L80034264
|
|
/* 00F530 80034130 00000000 */ nop
|
|
/* 00F534 80034134 0C00CDF8 */ jal func_800337E0
|
|
/* 00F538 80034138 240400D0 */ addiu $a0, $zero, 0xd0
|
|
/* 00F53C 8003413C 8E030000 */ lw $v1, ($s0)
|
|
/* 00F540 80034140 906200AC */ lbu $v0, 0xac($v1)
|
|
/* 00F544 80034144 24420001 */ addiu $v0, $v0, 1
|
|
/* 00F548 80034148 0800D099 */ j .L80034264
|
|
/* 00F54C 8003414C A06200AC */ sb $v0, 0xac($v1)
|
|
|
|
/* 00F550 80034150 0C00CE0C */ jal func_80033830
|
|
/* 00F554 80034154 2404000A */ addiu $a0, $zero, 0xa
|
|
/* 00F558 80034158 10400081 */ beqz $v0, .L80034360
|
|
/* 00F55C 8003415C 00000000 */ nop
|
|
/* 00F560 80034160 3C038007 */ lui $v1, 0x8007
|
|
/* 00F564 80034164 8C63419C */ lw $v1, 0x419c($v1)
|
|
/* 00F568 80034168 0800D0C5 */ j .L80034314
|
|
/* 00F56C 8003416C 00000000 */ nop
|
|
|
|
/* 00F570 80034170 0C00CDFE */ jal func_800337F8
|
|
/* 00F574 80034174 2404000A */ addiu $a0, $zero, 0xa
|
|
/* 00F578 80034178 10400079 */ beqz $v0, .L80034360
|
|
/* 00F57C 8003417C 00000000 */ nop
|
|
/* 00F580 80034180 3C048007 */ lui $a0, 0x8007
|
|
/* 00F584 80034184 2484419C */ addiu $a0, $a0, 0x419c
|
|
/* 00F588 80034188 8C830000 */ lw $v1, ($a0)
|
|
/* 00F58C 8003418C 906200AC */ lbu $v0, 0xac($v1)
|
|
/* 00F590 80034190 24420001 */ addiu $v0, $v0, 1
|
|
/* 00F594 80034194 A06200AC */ sb $v0, 0xac($v1)
|
|
/* 00F598 80034198 8C830000 */ lw $v1, ($a0)
|
|
/* 00F59C 8003419C 24020028 */ addiu $v0, $zero, 0x28
|
|
/* 00F5A0 800341A0 0800D0D8 */ j .L80034360
|
|
/* 00F5A4 800341A4 A06200AD */ sb $v0, 0xad($v1)
|
|
|
|
/* 00F5A8 800341A8 3C108007 */ lui $s0, 0x8007
|
|
/* 00F5AC 800341AC 2610419C */ addiu $s0, $s0, 0x419c
|
|
/* 00F5B0 800341B0 8E030000 */ lw $v1, ($s0)
|
|
/* 00F5B4 800341B4 806200AD */ lb $v0, 0xad($v1)
|
|
/* 00F5B8 800341B8 1440002B */ bnez $v0, .L80034268
|
|
/* 00F5BC 800341BC 240400D0 */ addiu $a0, $zero, 0xd0
|
|
/* 00F5C0 800341C0 906200AC */ lbu $v0, 0xac($v1)
|
|
/* 00F5C4 800341C4 24420001 */ addiu $v0, $v0, 1
|
|
/* 00F5C8 800341C8 0C00CDF8 */ jal func_800337E0
|
|
/* 00F5CC 800341CC A06200AC */ sb $v0, 0xac($v1)
|
|
/* 00F5D0 800341D0 0800D099 */ j .L80034264
|
|
/* 00F5D4 800341D4 00000000 */ nop
|
|
|
|
/* 00F5D8 800341D8 0C00CE0C */ jal func_80033830
|
|
/* 00F5DC 800341DC 2404000A */ addiu $a0, $zero, 0xa
|
|
/* 00F5E0 800341E0 1040005F */ beqz $v0, .L80034360
|
|
/* 00F5E4 800341E4 00000000 */ nop
|
|
/* 00F5E8 800341E8 3C038007 */ lui $v1, 0x8007
|
|
/* 00F5EC 800341EC 8C63419C */ lw $v1, 0x419c($v1)
|
|
/* 00F5F0 800341F0 0800D0C5 */ j .L80034314
|
|
/* 00F5F4 800341F4 00000000 */ nop
|
|
|
|
/* 00F5F8 800341F8 0C00CDFE */ jal func_800337F8
|
|
/* 00F5FC 800341FC 2404000A */ addiu $a0, $zero, 0xa
|
|
/* 00F600 80034200 10400057 */ beqz $v0, .L80034360
|
|
/* 00F604 80034204 00000000 */ nop
|
|
/* 00F608 80034208 3C048007 */ lui $a0, 0x8007
|
|
/* 00F60C 8003420C 2484419C */ addiu $a0, $a0, 0x419c
|
|
/* 00F610 80034210 8C830000 */ lw $v1, ($a0)
|
|
/* 00F614 80034214 906200AC */ lbu $v0, 0xac($v1)
|
|
/* 00F618 80034218 24420001 */ addiu $v0, $v0, 1
|
|
/* 00F61C 8003421C A06200AC */ sb $v0, 0xac($v1)
|
|
/* 00F620 80034220 8C830000 */ lw $v1, ($a0)
|
|
/* 00F624 80034224 2402001E */ addiu $v0, $zero, 0x1e
|
|
/* 00F628 80034228 0800D0D8 */ j .L80034360
|
|
/* 00F62C 8003422C A06200AD */ sb $v0, 0xad($v1)
|
|
|
|
/* 00F630 80034230 3C108007 */ lui $s0, 0x8007
|
|
/* 00F634 80034234 2610419C */ addiu $s0, $s0, 0x419c
|
|
/* 00F638 80034238 8E030000 */ lw $v1, ($s0)
|
|
/* 00F63C 8003423C 806200AD */ lb $v0, 0xad($v1)
|
|
/* 00F640 80034240 14400009 */ bnez $v0, .L80034268
|
|
/* 00F644 80034244 240400D0 */ addiu $a0, $zero, 0xd0
|
|
/* 00F648 80034248 906200AC */ lbu $v0, 0xac($v1)
|
|
/* 00F64C 8003424C 24420001 */ addiu $v0, $v0, 1
|
|
/* 00F650 80034250 0C00CDF8 */ jal func_800337E0
|
|
/* 00F654 80034254 A06200AC */ sb $v0, 0xac($v1)
|
|
/* 00F658 80034258 8E030000 */ lw $v1, ($s0)
|
|
/* 00F65C 8003425C 2402001E */ addiu $v0, $zero, 0x1e
|
|
/* 00F660 80034260 A06200AD */ sb $v0, 0xad($v1)
|
|
.L80034264:
|
|
/* 00F664 80034264 8E030000 */ lw $v1, ($s0)
|
|
.L80034268:
|
|
/* 00F668 80034268 906200AD */ lbu $v0, 0xad($v1)
|
|
/* 00F66C 8003426C 2442FFFF */ addiu $v0, $v0, -1
|
|
/* 00F670 80034270 0800D0D8 */ j .L80034360
|
|
/* 00F674 80034274 A06200AD */ sb $v0, 0xad($v1)
|
|
|
|
/* 00F678 80034278 3C048007 */ lui $a0, 0x8007
|
|
/* 00F67C 8003427C 8C84419C */ lw $a0, 0x419c($a0)
|
|
/* 00F680 80034280 808200AD */ lb $v0, 0xad($a0)
|
|
/* 00F684 80034284 908300AD */ lbu $v1, 0xad($a0)
|
|
/* 00F688 80034288 14400010 */ bnez $v0, .L800342CC
|
|
/* 00F68C 8003428C 2462FFFF */ addiu $v0, $v1, -1
|
|
/* 00F690 80034290 908200AC */ lbu $v0, 0xac($a0)
|
|
/* 00F694 80034294 3C013F80 */ lui $at, 0x3f80
|
|
/* 00F698 80034298 44816000 */ mtc1 $at, $f12
|
|
/* 00F69C 8003429C 24420001 */ addiu $v0, $v0, 1
|
|
/* 00F6A0 800342A0 0C00AFB7 */ jal func_8002BEDC
|
|
/* 00F6A4 800342A4 A08200AC */ sb $v0, 0xac($a0)
|
|
/* 00F6A8 800342A8 0C00AFC1 */ jal func_8002BF04
|
|
/* 00F6AC 800342AC 0000202D */ daddu $a0, $zero, $zero
|
|
/* 00F6B0 800342B0 3C013E99 */ lui $at, 0x3e99
|
|
/* 00F6B4 800342B4 3421999A */ ori $at, $at, 0x999a
|
|
/* 00F6B8 800342B8 44816000 */ mtc1 $at, $f12
|
|
/* 00F6BC 800342BC 0C00AFC5 */ jal func_8002BF14
|
|
/* 00F6C0 800342C0 00000000 */ nop
|
|
/* 00F6C4 800342C4 0800D0D8 */ j .L80034360
|
|
/* 00F6C8 800342C8 00000000 */ nop
|
|
|
|
.L800342CC:
|
|
/* 00F6CC 800342CC 0800D0D8 */ j .L80034360
|
|
/* 00F6D0 800342D0 A08200AD */ sb $v0, 0xad($a0)
|
|
|
|
/* 00F6D4 800342D4 0C00CE0C */ jal func_80033830
|
|
/* 00F6D8 800342D8 2404000A */ addiu $a0, $zero, 0xa
|
|
/* 00F6DC 800342DC 10400020 */ beqz $v0, .L80034360
|
|
/* 00F6E0 800342E0 2402000F */ addiu $v0, $zero, 0xf
|
|
/* 00F6E4 800342E4 3C048007 */ lui $a0, 0x8007
|
|
/* 00F6E8 800342E8 2484419C */ addiu $a0, $a0, 0x419c
|
|
/* 00F6EC 800342EC 8C830000 */ lw $v1, ($a0)
|
|
/* 00F6F0 800342F0 A06200AD */ sb $v0, 0xad($v1)
|
|
/* 00F6F4 800342F4 0800D0C5 */ j .L80034314
|
|
/* 00F6F8 800342F8 8C830000 */ lw $v1, ($a0)
|
|
|
|
/* 00F6FC 800342FC 3C038007 */ lui $v1, 0x8007
|
|
/* 00F700 80034300 8C63419C */ lw $v1, 0x419c($v1)
|
|
/* 00F704 80034304 806200AD */ lb $v0, 0xad($v1)
|
|
/* 00F708 80034308 906400AD */ lbu $a0, 0xad($v1)
|
|
/* 00F70C 8003430C 14400005 */ bnez $v0, .L80034324
|
|
/* 00F710 80034310 2482FFFF */ addiu $v0, $a0, -1
|
|
.L80034314:
|
|
/* 00F714 80034314 906200AC */ lbu $v0, 0xac($v1)
|
|
/* 00F718 80034318 24420001 */ addiu $v0, $v0, 1
|
|
/* 00F71C 8003431C 0800D0D8 */ j .L80034360
|
|
/* 00F720 80034320 A06200AC */ sb $v0, 0xac($v1)
|
|
|
|
.L80034324:
|
|
/* 00F724 80034324 0800D0D8 */ j .L80034360
|
|
/* 00F728 80034328 A06200AD */ sb $v0, 0xad($v1)
|
|
|
|
/* 00F72C 8003432C 3C10800A */ lui $s0, 0x800a
|
|
/* 00F730 80034330 26100910 */ addiu $s0, $s0, 0x910
|
|
/* 00F734 80034334 0C00AB4B */ jal heap_free
|
|
/* 00F738 80034338 8E040000 */ lw $a0, ($s0)
|
|
/* 00F73C 8003433C 240400FF */ addiu $a0, $zero, 0xff
|
|
/* 00F740 80034340 0C00CDF4 */ jal func_800337D0
|
|
/* 00F744 80034344 AE000000 */ sw $zero, ($s0)
|
|
/* 00F748 80034348 3C028007 */ lui $v0, 0x8007
|
|
/* 00F74C 8003434C 8C42419C */ lw $v0, 0x419c($v0)
|
|
/* 00F750 80034350 24040010 */ addiu $a0, $zero, 0x10
|
|
/* 00F754 80034354 A04000A8 */ sb $zero, 0xa8($v0)
|
|
.L80034358:
|
|
/* 00F758 80034358 0C00CD3C */ jal set_game_mode
|
|
/* 00F75C 8003435C 00000000 */ nop
|
|
.L80034360:
|
|
/* 00F760 80034360 0C00E64C */ jal func_80039930
|
|
/* 00F764 80034364 00000000 */ nop
|
|
/* 00F768 80034368 0C00B500 */ jal update_cameras
|
|
/* 00F76C 8003436C 00000000 */ nop
|
|
/* 00F770 80034370 0C00CE1D */ jal func_80033874
|
|
/* 00F774 80034374 00000000 */ nop
|
|
/* 00F778 80034378 8FBF0014 */ lw $ra, 0x14($sp)
|
|
/* 00F77C 8003437C 8FB00010 */ lw $s0, 0x10($sp)
|
|
/* 00F780 80034380 03E00008 */ jr $ra
|
|
/* 00F784 80034384 27BD0018 */ addiu $sp, $sp, 0x18
|
|
|
|
/* 00F788 80034388 27BDFFE8 */ addiu $sp, $sp, -0x18
|
|
/* 00F78C 8003438C AFBF0010 */ sw $ra, 0x10($sp)
|
|
/* 00F790 80034390 0C00D0E9 */ jal func_800343A4
|
|
/* 00F794 80034394 00000000 */ nop
|
|
/* 00F798 80034398 8FBF0010 */ lw $ra, 0x10($sp)
|
|
/* 00F79C 8003439C 03E00008 */ jr $ra
|
|
/* 00F7A0 800343A0 27BD0018 */ addiu $sp, $sp, 0x18
|
|
|