mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 17:02:46 +01:00
265 lines
14 KiB
ArmAsm
265 lines
14 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
|
|
glabel crash_show_handler
|
|
/* 0077B0 8002C3B0 27BDFFD8 */ addiu $sp, $sp, -0x28
|
|
/* 0077B4 8002C3B4 AFB1001C */ sw $s1, 0x1c($sp)
|
|
/* 0077B8 8002C3B8 0080882D */ daddu $s1, $a0, $zero
|
|
/* 0077BC 8002C3BC AFB20020 */ sw $s2, 0x20($sp)
|
|
/* 0077C0 8002C3C0 26320020 */ addiu $s2, $s1, 0x20
|
|
/* 0077C4 8002C3C4 AFBF0024 */ sw $ra, 0x24($sp)
|
|
/* 0077C8 8002C3C8 AFB00018 */ sw $s0, 0x18($sp)
|
|
/* 0077CC 8002C3CC 8E220120 */ lw $v0, 0x120($s1)
|
|
/* 0077D0 8002C3D0 24030017 */ addiu $v1, $zero, 0x17
|
|
/* 0077D4 8002C3D4 00021082 */ srl $v0, $v0, 2
|
|
/* 0077D8 8002C3D8 3042001F */ andi $v0, $v0, 0x1f
|
|
/* 0077DC 8002C3DC 14430002 */ bne $v0, $v1, .L8002C3E8
|
|
/* 0077E0 8002C3E0 0040802D */ daddu $s0, $v0, $zero
|
|
/* 0077E4 8002C3E4 24100010 */ addiu $s0, $zero, 0x10
|
|
.L8002C3E8:
|
|
/* 0077E8 8002C3E8 2402001F */ addiu $v0, $zero, 0x1f
|
|
/* 0077EC 8002C3EC 52020001 */ beql $s0, $v0, .L8002C3F4
|
|
/* 0077F0 8002C3F0 24100011 */ addiu $s0, $zero, 0x11
|
|
.L8002C3F4:
|
|
/* 0077F4 8002C3F4 0C018634 */ jal osWritebackDCacheAll
|
|
/* 0077F8 8002C3F8 00000000 */ nop
|
|
/* 0077FC 8002C3FC 24040019 */ addiu $a0, $zero, 0x19
|
|
/* 007800 8002C400 24050014 */ addiu $a1, $zero, 0x14
|
|
/* 007804 8002C404 2406010E */ addiu $a2, $zero, 0x10e
|
|
/* 007808 8002C408 0C00AFEC */ jal func_8002BFB0
|
|
/* 00780C 8002C40C 0080382D */ daddu $a3, $a0, $zero
|
|
/* 007810 8002C410 2404001E */ addiu $a0, $zero, 0x1e
|
|
/* 007814 8002C414 00101080 */ sll $v0, $s0, 2
|
|
/* 007818 8002C418 3C018007 */ lui $at, 0x8007
|
|
/* 00781C 8002C41C 00220821 */ addu $at, $at, $v0
|
|
/* 007820 8002C420 8C227390 */ lw $v0, 0x7390($at)
|
|
/* 007824 8002C424 AFA20010 */ sw $v0, 0x10($sp)
|
|
/* 007828 8002C428 8E270014 */ lw $a3, 0x14($s1)
|
|
/* 00782C 8002C42C 3C06800A */ lui $a2, 0x800a
|
|
/* 007830 8002C430 24C68064 */ addiu $a2, $a2, -0x7f9c
|
|
/* 007834 8002C434 0C00B082 */ jal crash_printf_string
|
|
/* 007838 8002C438 24050019 */ addiu $a1, $zero, 0x19
|
|
/* 00783C 8002C43C 8E220118 */ lw $v0, 0x118($s1)
|
|
/* 007840 8002C440 2404001E */ addiu $a0, $zero, 0x1e
|
|
/* 007844 8002C444 AFA20010 */ sw $v0, 0x10($sp)
|
|
/* 007848 8002C448 8E220124 */ lw $v0, 0x124($s1)
|
|
/* 00784C 8002C44C AFA20014 */ sw $v0, 0x14($sp)
|
|
/* 007850 8002C450 8E27011C */ lw $a3, 0x11c($s1)
|
|
/* 007854 8002C454 3C06800A */ lui $a2, 0x800a
|
|
/* 007858 8002C458 24C68074 */ addiu $a2, $a2, -0x7f8c
|
|
/* 00785C 8002C45C 0C00B082 */ jal crash_printf_string
|
|
/* 007860 8002C460 24050023 */ addiu $a1, $zero, 0x23
|
|
/* 007864 8002C464 0C00AFD0 */ jal crash_delay_msec
|
|
/* 007868 8002C468 240407D0 */ addiu $a0, $zero, 0x7d0
|
|
/* 00786C 8002C46C 0C019CE0 */ jal osViBlack
|
|
/* 007870 8002C470 0000202D */ daddu $a0, $zero, $zero
|
|
/* 007874 8002C474 0C019CF8 */ jal osViRepeatLine
|
|
/* 007878 8002C478 0000202D */ daddu $a0, $zero, $zero
|
|
/* 00787C 8002C47C 3C04800A */ lui $a0, 0x800a
|
|
/* 007880 8002C480 8C84C4FC */ lw $a0, -0x3b04($a0)
|
|
/* 007884 8002C484 0C019C08 */ jal osViSwapBuffer
|
|
/* 007888 8002C488 00000000 */ nop
|
|
/* 00788C 8002C48C 24040019 */ addiu $a0, $zero, 0x19
|
|
/* 007890 8002C490 2405002D */ addiu $a1, $zero, 0x2d
|
|
/* 007894 8002C494 2406010E */ addiu $a2, $zero, 0x10e
|
|
/* 007898 8002C498 0C00AFEC */ jal func_8002BFB0
|
|
/* 00789C 8002C49C 240700B9 */ addiu $a3, $zero, 0xb9
|
|
/* 0078A0 8002C4A0 8E22002C */ lw $v0, 0x2c($s1)
|
|
/* 0078A4 8002C4A4 2404001E */ addiu $a0, $zero, 0x1e
|
|
/* 0078A8 8002C4A8 AFA20010 */ sw $v0, 0x10($sp)
|
|
/* 0078AC 8002C4AC 8E220034 */ lw $v0, 0x34($s1)
|
|
/* 0078B0 8002C4B0 AFA20014 */ sw $v0, 0x14($sp)
|
|
/* 0078B4 8002C4B4 8E270024 */ lw $a3, 0x24($s1)
|
|
/* 0078B8 8002C4B8 3C06800A */ lui $a2, 0x800a
|
|
/* 0078BC 8002C4BC 24C68094 */ addiu $a2, $a2, -0x7f6c
|
|
/* 0078C0 8002C4C0 0C00B082 */ jal crash_printf_string
|
|
/* 0078C4 8002C4C4 24050032 */ addiu $a1, $zero, 0x32
|
|
/* 0078C8 8002C4C8 8E220044 */ lw $v0, 0x44($s1)
|
|
/* 0078CC 8002C4CC 2404001E */ addiu $a0, $zero, 0x1e
|
|
/* 0078D0 8002C4D0 AFA20010 */ sw $v0, 0x10($sp)
|
|
/* 0078D4 8002C4D4 8E22004C */ lw $v0, 0x4c($s1)
|
|
/* 0078D8 8002C4D8 AFA20014 */ sw $v0, 0x14($sp)
|
|
/* 0078DC 8002C4DC 8E27003C */ lw $a3, 0x3c($s1)
|
|
/* 0078E0 8002C4E0 3C06800A */ lui $a2, 0x800a
|
|
/* 0078E4 8002C4E4 24C680B4 */ addiu $a2, $a2, -0x7f4c
|
|
/* 0078E8 8002C4E8 0C00B082 */ jal crash_printf_string
|
|
/* 0078EC 8002C4EC 2405003C */ addiu $a1, $zero, 0x3c
|
|
/* 0078F0 8002C4F0 8E22005C */ lw $v0, 0x5c($s1)
|
|
/* 0078F4 8002C4F4 2404001E */ addiu $a0, $zero, 0x1e
|
|
/* 0078F8 8002C4F8 AFA20010 */ sw $v0, 0x10($sp)
|
|
/* 0078FC 8002C4FC 8E220064 */ lw $v0, 0x64($s1)
|
|
/* 007900 8002C500 AFA20014 */ sw $v0, 0x14($sp)
|
|
/* 007904 8002C504 8E270054 */ lw $a3, 0x54($s1)
|
|
/* 007908 8002C508 3C06800A */ lui $a2, 0x800a
|
|
/* 00790C 8002C50C 24C680D4 */ addiu $a2, $a2, -0x7f2c
|
|
/* 007910 8002C510 0C00B082 */ jal crash_printf_string
|
|
/* 007914 8002C514 24050046 */ addiu $a1, $zero, 0x46
|
|
/* 007918 8002C518 8E220074 */ lw $v0, 0x74($s1)
|
|
/* 00791C 8002C51C 2404001E */ addiu $a0, $zero, 0x1e
|
|
/* 007920 8002C520 AFA20010 */ sw $v0, 0x10($sp)
|
|
/* 007924 8002C524 8E22007C */ lw $v0, 0x7c($s1)
|
|
/* 007928 8002C528 AFA20014 */ sw $v0, 0x14($sp)
|
|
/* 00792C 8002C52C 8E27006C */ lw $a3, 0x6c($s1)
|
|
/* 007930 8002C530 3C06800A */ lui $a2, 0x800a
|
|
/* 007934 8002C534 24C680F4 */ addiu $a2, $a2, -0x7f0c
|
|
/* 007938 8002C538 0C00B082 */ jal crash_printf_string
|
|
/* 00793C 8002C53C 24050050 */ addiu $a1, $zero, 0x50
|
|
/* 007940 8002C540 8E22008C */ lw $v0, 0x8c($s1)
|
|
/* 007944 8002C544 2404001E */ addiu $a0, $zero, 0x1e
|
|
/* 007948 8002C548 AFA20010 */ sw $v0, 0x10($sp)
|
|
/* 00794C 8002C54C 8E220094 */ lw $v0, 0x94($s1)
|
|
/* 007950 8002C550 AFA20014 */ sw $v0, 0x14($sp)
|
|
/* 007954 8002C554 8E270084 */ lw $a3, 0x84($s1)
|
|
/* 007958 8002C558 3C06800A */ lui $a2, 0x800a
|
|
/* 00795C 8002C55C 24C68114 */ addiu $a2, $a2, -0x7eec
|
|
/* 007960 8002C560 0C00B082 */ jal crash_printf_string
|
|
/* 007964 8002C564 2405005A */ addiu $a1, $zero, 0x5a
|
|
/* 007968 8002C568 8E2200A4 */ lw $v0, 0xa4($s1)
|
|
/* 00796C 8002C56C 2404001E */ addiu $a0, $zero, 0x1e
|
|
/* 007970 8002C570 AFA20010 */ sw $v0, 0x10($sp)
|
|
/* 007974 8002C574 8E2200AC */ lw $v0, 0xac($s1)
|
|
/* 007978 8002C578 AFA20014 */ sw $v0, 0x14($sp)
|
|
/* 00797C 8002C57C 8E27009C */ lw $a3, 0x9c($s1)
|
|
/* 007980 8002C580 3C06800A */ lui $a2, 0x800a
|
|
/* 007984 8002C584 24C68134 */ addiu $a2, $a2, -0x7ecc
|
|
/* 007988 8002C588 0C00B082 */ jal crash_printf_string
|
|
/* 00798C 8002C58C 24050064 */ addiu $a1, $zero, 0x64
|
|
/* 007990 8002C590 8E2200BC */ lw $v0, 0xbc($s1)
|
|
/* 007994 8002C594 2404001E */ addiu $a0, $zero, 0x1e
|
|
/* 007998 8002C598 AFA20010 */ sw $v0, 0x10($sp)
|
|
/* 00799C 8002C59C 8E2200C4 */ lw $v0, 0xc4($s1)
|
|
/* 0079A0 8002C5A0 AFA20014 */ sw $v0, 0x14($sp)
|
|
/* 0079A4 8002C5A4 8E2700B4 */ lw $a3, 0xb4($s1)
|
|
/* 0079A8 8002C5A8 3C06800A */ lui $a2, 0x800a
|
|
/* 0079AC 8002C5AC 24C68154 */ addiu $a2, $a2, -0x7eac
|
|
/* 0079B0 8002C5B0 0C00B082 */ jal crash_printf_string
|
|
/* 0079B4 8002C5B4 2405006E */ addiu $a1, $zero, 0x6e
|
|
/* 0079B8 8002C5B8 8E2200D4 */ lw $v0, 0xd4($s1)
|
|
/* 0079BC 8002C5BC 2404001E */ addiu $a0, $zero, 0x1e
|
|
/* 0079C0 8002C5C0 AFA20010 */ sw $v0, 0x10($sp)
|
|
/* 0079C4 8002C5C4 8E2200DC */ lw $v0, 0xdc($s1)
|
|
/* 0079C8 8002C5C8 AFA20014 */ sw $v0, 0x14($sp)
|
|
/* 0079CC 8002C5CC 8E2700CC */ lw $a3, 0xcc($s1)
|
|
/* 0079D0 8002C5D0 3C06800A */ lui $a2, 0x800a
|
|
/* 0079D4 8002C5D4 24C68174 */ addiu $a2, $a2, -0x7e8c
|
|
/* 0079D8 8002C5D8 0C00B082 */ jal crash_printf_string
|
|
/* 0079DC 8002C5DC 24050078 */ addiu $a1, $zero, 0x78
|
|
/* 0079E0 8002C5E0 8E2200EC */ lw $v0, 0xec($s1)
|
|
/* 0079E4 8002C5E4 2404001E */ addiu $a0, $zero, 0x1e
|
|
/* 0079E8 8002C5E8 AFA20010 */ sw $v0, 0x10($sp)
|
|
/* 0079EC 8002C5EC 8E2200F4 */ lw $v0, 0xf4($s1)
|
|
/* 0079F0 8002C5F0 AFA20014 */ sw $v0, 0x14($sp)
|
|
/* 0079F4 8002C5F4 8E2700E4 */ lw $a3, 0xe4($s1)
|
|
/* 0079F8 8002C5F8 3C06800A */ lui $a2, 0x800a
|
|
/* 0079FC 8002C5FC 24C68194 */ addiu $a2, $a2, -0x7e6c
|
|
/* 007A00 8002C600 0C00B082 */ jal crash_printf_string
|
|
/* 007A04 8002C604 24050082 */ addiu $a1, $zero, 0x82
|
|
/* 007A08 8002C608 2404001E */ addiu $a0, $zero, 0x1e
|
|
/* 007A0C 8002C60C 8E220104 */ lw $v0, 0x104($s1)
|
|
/* 007A10 8002C610 AFA20010 */ sw $v0, 0x10($sp)
|
|
/* 007A14 8002C614 8E2700FC */ lw $a3, 0xfc($s1)
|
|
/* 007A18 8002C618 3C06800A */ lui $a2, 0x800a
|
|
/* 007A1C 8002C61C 24C681B4 */ addiu $a2, $a2, -0x7e4c
|
|
/* 007A20 8002C620 0C00B082 */ jal crash_printf_string
|
|
/* 007A24 8002C624 2405008C */ addiu $a1, $zero, 0x8c
|
|
/* 007A28 8002C628 8E24012C */ lw $a0, 0x12c($s1)
|
|
/* 007A2C 8002C62C 0C00B0C9 */ jal func_8002C324
|
|
/* 007A30 8002C630 00000000 */ nop
|
|
/* 007A34 8002C634 2404001E */ addiu $a0, $zero, 0x1e
|
|
/* 007A38 8002C638 240500AA */ addiu $a1, $zero, 0xaa
|
|
/* 007A3C 8002C63C 0000302D */ daddu $a2, $zero, $zero
|
|
/* 007A40 8002C640 0C00B0AE */ jal crash_print_fpr
|
|
/* 007A44 8002C644 26270134 */ addiu $a3, $s1, 0x134
|
|
/* 007A48 8002C648 24040078 */ addiu $a0, $zero, 0x78
|
|
/* 007A4C 8002C64C 240500AA */ addiu $a1, $zero, 0xaa
|
|
/* 007A50 8002C650 24060002 */ addiu $a2, $zero, 2
|
|
/* 007A54 8002C654 0C00B0AE */ jal crash_print_fpr
|
|
/* 007A58 8002C658 2627013C */ addiu $a3, $s1, 0x13c
|
|
/* 007A5C 8002C65C 240400D2 */ addiu $a0, $zero, 0xd2
|
|
/* 007A60 8002C660 240500AA */ addiu $a1, $zero, 0xaa
|
|
/* 007A64 8002C664 24060004 */ addiu $a2, $zero, 4
|
|
/* 007A68 8002C668 0C00B0AE */ jal crash_print_fpr
|
|
/* 007A6C 8002C66C 26270144 */ addiu $a3, $s1, 0x144
|
|
/* 007A70 8002C670 2404001E */ addiu $a0, $zero, 0x1e
|
|
/* 007A74 8002C674 240500B4 */ addiu $a1, $zero, 0xb4
|
|
/* 007A78 8002C678 24060006 */ addiu $a2, $zero, 6
|
|
/* 007A7C 8002C67C 0C00B0AE */ jal crash_print_fpr
|
|
/* 007A80 8002C680 2627014C */ addiu $a3, $s1, 0x14c
|
|
/* 007A84 8002C684 24040078 */ addiu $a0, $zero, 0x78
|
|
/* 007A88 8002C688 240500B4 */ addiu $a1, $zero, 0xb4
|
|
/* 007A8C 8002C68C 24060008 */ addiu $a2, $zero, 8
|
|
/* 007A90 8002C690 0C00B0AE */ jal crash_print_fpr
|
|
/* 007A94 8002C694 26270154 */ addiu $a3, $s1, 0x154
|
|
/* 007A98 8002C698 240400D2 */ addiu $a0, $zero, 0xd2
|
|
/* 007A9C 8002C69C 240500B4 */ addiu $a1, $zero, 0xb4
|
|
/* 007AA0 8002C6A0 2406000A */ addiu $a2, $zero, 0xa
|
|
/* 007AA4 8002C6A4 0C00B0AE */ jal crash_print_fpr
|
|
/* 007AA8 8002C6A8 2627015C */ addiu $a3, $s1, 0x15c
|
|
/* 007AAC 8002C6AC 2404001E */ addiu $a0, $zero, 0x1e
|
|
/* 007AB0 8002C6B0 240500BE */ addiu $a1, $zero, 0xbe
|
|
/* 007AB4 8002C6B4 2406000C */ addiu $a2, $zero, 0xc
|
|
/* 007AB8 8002C6B8 0C00B0AE */ jal crash_print_fpr
|
|
/* 007ABC 8002C6BC 26270164 */ addiu $a3, $s1, 0x164
|
|
/* 007AC0 8002C6C0 24040078 */ addiu $a0, $zero, 0x78
|
|
/* 007AC4 8002C6C4 240500BE */ addiu $a1, $zero, 0xbe
|
|
/* 007AC8 8002C6C8 2406000E */ addiu $a2, $zero, 0xe
|
|
/* 007ACC 8002C6CC 0C00B0AE */ jal crash_print_fpr
|
|
/* 007AD0 8002C6D0 2627016C */ addiu $a3, $s1, 0x16c
|
|
/* 007AD4 8002C6D4 240400D2 */ addiu $a0, $zero, 0xd2
|
|
/* 007AD8 8002C6D8 240500BE */ addiu $a1, $zero, 0xbe
|
|
/* 007ADC 8002C6DC 24060010 */ addiu $a2, $zero, 0x10
|
|
/* 007AE0 8002C6E0 0C00B0AE */ jal crash_print_fpr
|
|
/* 007AE4 8002C6E4 26270174 */ addiu $a3, $s1, 0x174
|
|
/* 007AE8 8002C6E8 2404001E */ addiu $a0, $zero, 0x1e
|
|
/* 007AEC 8002C6EC 240500C8 */ addiu $a1, $zero, 0xc8
|
|
/* 007AF0 8002C6F0 24060012 */ addiu $a2, $zero, 0x12
|
|
/* 007AF4 8002C6F4 0C00B0AE */ jal crash_print_fpr
|
|
/* 007AF8 8002C6F8 2627017C */ addiu $a3, $s1, 0x17c
|
|
/* 007AFC 8002C6FC 24040078 */ addiu $a0, $zero, 0x78
|
|
/* 007B00 8002C700 240500C8 */ addiu $a1, $zero, 0xc8
|
|
/* 007B04 8002C704 24060014 */ addiu $a2, $zero, 0x14
|
|
/* 007B08 8002C708 0C00B0AE */ jal crash_print_fpr
|
|
/* 007B0C 8002C70C 26270184 */ addiu $a3, $s1, 0x184
|
|
/* 007B10 8002C710 240400D2 */ addiu $a0, $zero, 0xd2
|
|
/* 007B14 8002C714 240500C8 */ addiu $a1, $zero, 0xc8
|
|
/* 007B18 8002C718 24060016 */ addiu $a2, $zero, 0x16
|
|
/* 007B1C 8002C71C 0C00B0AE */ jal crash_print_fpr
|
|
/* 007B20 8002C720 2627018C */ addiu $a3, $s1, 0x18c
|
|
/* 007B24 8002C724 2404001E */ addiu $a0, $zero, 0x1e
|
|
/* 007B28 8002C728 240500D2 */ addiu $a1, $zero, 0xd2
|
|
/* 007B2C 8002C72C 24060018 */ addiu $a2, $zero, 0x18
|
|
/* 007B30 8002C730 0C00B0AE */ jal crash_print_fpr
|
|
/* 007B34 8002C734 26270194 */ addiu $a3, $s1, 0x194
|
|
/* 007B38 8002C738 24040078 */ addiu $a0, $zero, 0x78
|
|
/* 007B3C 8002C73C 240500D2 */ addiu $a1, $zero, 0xd2
|
|
/* 007B40 8002C740 2406001A */ addiu $a2, $zero, 0x1a
|
|
/* 007B44 8002C744 0C00B0AE */ jal crash_print_fpr
|
|
/* 007B48 8002C748 2627019C */ addiu $a3, $s1, 0x19c
|
|
/* 007B4C 8002C74C 240400D2 */ addiu $a0, $zero, 0xd2
|
|
/* 007B50 8002C750 0080282D */ daddu $a1, $a0, $zero
|
|
/* 007B54 8002C754 2406001C */ addiu $a2, $zero, 0x1c
|
|
/* 007B58 8002C758 0C00B0AE */ jal crash_print_fpr
|
|
/* 007B5C 8002C75C 262701A4 */ addiu $a3, $s1, 0x1a4
|
|
/* 007B60 8002C760 2404001E */ addiu $a0, $zero, 0x1e
|
|
/* 007B64 8002C764 240500DC */ addiu $a1, $zero, 0xdc
|
|
/* 007B68 8002C768 0080302D */ daddu $a2, $a0, $zero
|
|
/* 007B6C 8002C76C 0C00B0AE */ jal crash_print_fpr
|
|
/* 007B70 8002C770 262701AC */ addiu $a3, $s1, 0x1ac
|
|
/* 007B74 8002C774 0C00AFD0 */ jal crash_delay_msec
|
|
/* 007B78 8002C778 240401F4 */ addiu $a0, $zero, 0x1f4
|
|
/* 007B7C 8002C77C 240400D2 */ addiu $a0, $zero, 0xd2
|
|
/* 007B80 8002C780 8E4200FC */ lw $v0, 0xfc($s2)
|
|
/* 007B84 8002C784 8C470000 */ lw $a3, ($v0)
|
|
/* 007B88 8002C788 3C06800A */ lui $a2, 0x800a
|
|
/* 007B8C 8002C78C 24C681C8 */ addiu $a2, $a2, -0x7e38
|
|
/* 007B90 8002C790 0C00B082 */ jal crash_printf_string
|
|
/* 007B94 8002C794 2405008C */ addiu $a1, $zero, 0x8c
|
|
/* 007B98 8002C798 8FBF0024 */ lw $ra, 0x24($sp)
|
|
/* 007B9C 8002C79C 8FB20020 */ lw $s2, 0x20($sp)
|
|
/* 007BA0 8002C7A0 8FB1001C */ lw $s1, 0x1c($sp)
|
|
/* 007BA4 8002C7A4 8FB00018 */ lw $s0, 0x18($sp)
|
|
/* 007BA8 8002C7A8 03E00008 */ jr $ra
|
|
/* 007BAC 8002C7AC 27BD0028 */ addiu $sp, $sp, 0x28
|
|
|