mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 17:02:46 +01:00
a8c85b377a
* split jp gfxRetrace_Callback * func_80025F70 * use 1370_len_7d0 on jp * rename 1370_len_7d0 to main * coverage.py
102 lines
5.3 KiB
ArmAsm
102 lines
5.3 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
glabel func_8002B450
|
|
/* 6850 8002B450 3C038011 */ lui $v1, %hi(D_8010F450)
|
|
/* 6854 8002B454 2463F450 */ addiu $v1, $v1, %lo(D_8010F450)
|
|
/* 6858 8002B458 3C07800E */ lui $a3, %hi(D_800DACA0)
|
|
/* 685C 8002B45C 24E7ACA0 */ addiu $a3, $a3, %lo(D_800DACA0)
|
|
/* 6860 8002B460 24E20040 */ addiu $v0, $a3, 0x40
|
|
/* 6864 8002B464 24E40460 */ addiu $a0, $a3, 0x460
|
|
.L8002B468:
|
|
/* 6868 8002B468 8C490000 */ lw $t1, ($v0)
|
|
/* 686C 8002B46C 8C4A0004 */ lw $t2, 4($v0)
|
|
/* 6870 8002B470 8C4B0008 */ lw $t3, 8($v0)
|
|
/* 6874 8002B474 8C4C000C */ lw $t4, 0xc($v0)
|
|
/* 6878 8002B478 AC690000 */ sw $t1, ($v1)
|
|
/* 687C 8002B47C AC6A0004 */ sw $t2, 4($v1)
|
|
/* 6880 8002B480 AC6B0008 */ sw $t3, 8($v1)
|
|
/* 6884 8002B484 AC6C000C */ sw $t4, 0xc($v1)
|
|
/* 6888 8002B488 24420010 */ addiu $v0, $v0, 0x10
|
|
/* 688C 8002B48C 1444FFF6 */ bne $v0, $a0, .L8002B468
|
|
/* 6890 8002B490 24630010 */ addiu $v1, $v1, 0x10
|
|
/* 6894 8002B494 8C490000 */ lw $t1, ($v0)
|
|
/* 6898 8002B498 8C4A0004 */ lw $t2, 4($v0)
|
|
/* 689C 8002B49C AC690000 */ sw $t1, ($v1)
|
|
/* 68A0 8002B4A0 AC6A0004 */ sw $t2, 4($v1)
|
|
/* 68A4 8002B4A4 3C038007 */ lui $v1, %hi(gGameStatusPtr)
|
|
/* 68A8 8002B4A8 8C63417C */ lw $v1, %lo(gGameStatusPtr)($v1)
|
|
/* 68AC 8002B4AC 94E20468 */ lhu $v0, 0x468($a3)
|
|
/* 68B0 8002B4B0 A4620086 */ sh $v0, 0x86($v1)
|
|
/* 68B4 8002B4B4 94E2046A */ lhu $v0, 0x46a($a3)
|
|
/* 68B8 8002B4B8 A462008C */ sh $v0, 0x8c($v1)
|
|
/* 68BC 8002B4BC 94E2046C */ lhu $v0, 0x46c($a3)
|
|
/* 68C0 8002B4C0 A462008E */ sh $v0, 0x8e($v1)
|
|
/* 68C4 8002B4C4 94E212E6 */ lhu $v0, 0x12e6($a3)
|
|
/* 68C8 8002B4C8 A4620160 */ sh $v0, 0x160($v1)
|
|
/* 68CC 8002B4CC 94E212E8 */ lhu $v0, 0x12e8($a3)
|
|
/* 68D0 8002B4D0 0000302D */ daddu $a2, $zero, $zero
|
|
/* 68D4 8002B4D4 A4620162 */ sh $v0, 0x162($v1)
|
|
/* 68D8 8002B4D8 94E212EA */ lhu $v0, 0x12ea($a3)
|
|
/* 68DC 8002B4DC 3C08800B */ lui $t0, %hi(D_800B0EF0)
|
|
/* 68E0 8002B4E0 25080EF0 */ addiu $t0, $t0, %lo(D_800B0EF0)
|
|
/* 68E4 8002B4E4 A4620164 */ sh $v0, 0x164($v1)
|
|
/* 68E8 8002B4E8 0000282D */ daddu $a1, $zero, $zero
|
|
.L8002B4EC:
|
|
/* 68EC 8002B4EC 00062080 */ sll $a0, $a2, 2
|
|
.L8002B4F0:
|
|
/* 68F0 8002B4F0 00881821 */ addu $v1, $a0, $t0
|
|
/* 68F4 8002B4F4 00E41021 */ addu $v0, $a3, $a0
|
|
/* 68F8 8002B4F8 8C420470 */ lw $v0, 0x470($v0)
|
|
/* 68FC 8002B4FC 24A50001 */ addiu $a1, $a1, 1
|
|
/* 6900 8002B500 AC6200B0 */ sw $v0, 0xb0($v1)
|
|
/* 6904 8002B504 28A2003C */ slti $v0, $a1, 0x3c
|
|
/* 6908 8002B508 1440FFF9 */ bnez $v0, .L8002B4F0
|
|
/* 690C 8002B50C 24840030 */ addiu $a0, $a0, 0x30
|
|
/* 6910 8002B510 24C60001 */ addiu $a2, $a2, 1
|
|
/* 6914 8002B514 28C2000C */ slti $v0, $a2, 0xc
|
|
/* 6918 8002B518 1440FFF4 */ bnez $v0, .L8002B4EC
|
|
/* 691C 8002B51C 0000282D */ daddu $a1, $zero, $zero
|
|
/* 6920 8002B520 3C038007 */ lui $v1, %hi(gGameStatusPtr)
|
|
/* 6924 8002B524 2463417C */ addiu $v1, $v1, %lo(gGameStatusPtr)
|
|
/* 6928 8002B528 8C620000 */ lw $v0, ($v1)
|
|
/* 692C 8002B52C A0400074 */ sb $zero, 0x74($v0)
|
|
/* 6930 8002B530 8C620000 */ lw $v0, ($v1)
|
|
/* 6934 8002B534 A0400076 */ sb $zero, 0x76($v0)
|
|
/* 6938 8002B538 8C620000 */ lw $v0, ($v1)
|
|
/* 693C 8002B53C A0400077 */ sb $zero, 0x77($v0)
|
|
/* 6940 8002B540 8C640000 */ lw $a0, ($v1)
|
|
/* 6944 8002B544 24020001 */ addiu $v0, $zero, 1
|
|
/* 6948 8002B548 A082007A */ sb $v0, 0x7a($a0)
|
|
/* 694C 8002B54C 8C620000 */ lw $v0, ($v1)
|
|
/* 6950 8002B550 90430166 */ lbu $v1, 0x166($v0)
|
|
/* 6954 8002B554 00031040 */ sll $v0, $v1, 1
|
|
/* 6958 8002B558 00431021 */ addu $v0, $v0, $v1
|
|
/* 695C 8002B55C 000210C0 */ sll $v0, $v0, 3
|
|
/* 6960 8002B560 8CE912EC */ lw $t1, 0x12ec($a3)
|
|
/* 6964 8002B564 8CEA12F0 */ lw $t2, 0x12f0($a3)
|
|
/* 6968 8002B568 8CEB12F4 */ lw $t3, 0x12f4($a3)
|
|
/* 696C 8002B56C 8CEC12F8 */ lw $t4, 0x12f8($a3)
|
|
/* 6970 8002B570 3C018007 */ lui $at, %hi(D_80077994)
|
|
/* 6974 8002B574 00220821 */ addu $at, $at, $v0
|
|
/* 6978 8002B578 AC297994 */ sw $t1, %lo(D_80077994)($at)
|
|
/* 697C 8002B57C 3C018007 */ lui $at, %hi(D_80077998)
|
|
/* 6980 8002B580 00220821 */ addu $at, $at, $v0
|
|
/* 6984 8002B584 AC2A7998 */ sw $t2, %lo(D_80077998)($at)
|
|
/* 6988 8002B588 3C018007 */ lui $at, %hi(D_8007799C)
|
|
/* 698C 8002B58C 00220821 */ addu $at, $at, $v0
|
|
/* 6990 8002B590 AC2B799C */ sw $t3, %lo(D_8007799C)($at)
|
|
/* 6994 8002B594 3C018007 */ lui $at, %hi(D_800779A0)
|
|
/* 6998 8002B598 00220821 */ addu $at, $at, $v0
|
|
/* 699C 8002B59C AC2C79A0 */ sw $t4, %lo(D_800779A0)($at)
|
|
/* 69A0 8002B5A0 8CE912FC */ lw $t1, 0x12fc($a3)
|
|
/* 69A4 8002B5A4 8CEA1300 */ lw $t2, 0x1300($a3)
|
|
/* 69A8 8002B5A8 3C018007 */ lui $at, %hi(D_800779A4)
|
|
/* 69AC 8002B5AC 00220821 */ addu $at, $at, $v0
|
|
/* 69B0 8002B5B0 AC2979A4 */ sw $t1, %lo(D_800779A4)($at)
|
|
/* 69B4 8002B5B4 3C018007 */ lui $at, %hi(D_800779A8)
|
|
/* 69B8 8002B5B8 00220821 */ addu $at, $at, $v0
|
|
/* 69BC 8002B5BC AC2A79A8 */ sw $t2, %lo(D_800779A8)($at)
|
|
/* 69C0 8002B5C0 03E00008 */ jr $ra
|
|
/* 69C4 8002B5C4 00000000 */ nop
|