de-ascii data files

This commit is contained in:
Charlotte 🦝 Delenk 2022-10-16 13:53:22 +01:00
parent 2f2f75c5b2
commit ce9feb3b0a
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122
15 changed files with 278857 additions and 299149 deletions

View file

@ -80,10 +80,9 @@ ifeq ($(WINDOWS),1)
CPP := $(DEVKITPPC)/bin/powerpc-eabi-cpp.exe -P
else
ifeq ($(NIX),1)
WINE := $(shell nix-build '<nixpkgs>' -A wine-staging)/bin/wine
STDENV := $(shell nix-build '<nixpkgs>' -A pkgsCross.ppc-embedded.gccCrossLibcStdenv.cc --no-link)
AS := $(STDENV)/bin/powerpc-none-eabi-as
CPP := $(STDENV)/bin/powerpc-none-eabi-cpp -P
WINE := $(shell nix-build '<nixpkgs>' -A wine-staging --no-link)/bin/wine
AS := $(shell nix-build '<nixpkgs>' -A pkgsCross.ppc-embedded.gccCrossLibcStdenv.cc --no-link)/bin/powerpc-none-eabi-as
CPP := $(shell nix-build '<nixpkgs>' -A pkgsCross.ppc-embedded.gccCrossLibcStdenv.cc.cc --no-link)/bin/powerpc-none-eabi-cpp -P
else
WINE ?= wine
AS := $(DEVKITPPC)/bin/powerpc-eabi-as

View file

@ -1,4 +1,4 @@
.include "macros.inc"
.include "macros.s"
.section .bss, "", @nobits # 0x80496700 - 0x80556420 ; 0x000BFD20

View file

@ -1,4 +1,4 @@
.include "macros.inc"
.include "macros.s"
.section .ctors, "wa" # 0x80406260 - 0x80406540 ; 0x000002E0

72284
asm/data.s

File diff suppressed because it is too large Load diff

View file

@ -1,4 +1,4 @@
.include "macros.inc"
.include "macros.s"
.section .dtors, "wa" # 0x80406540 - 0x80406560 ; 0x00000020

View file

@ -1,4 +1,4 @@
.include "macros.inc"
.include "macros.s"
.section extab_, "wa" # 0x80006740 - 0x800068E0 ; 0x000001A0
@ -159,14 +159,14 @@ lbl_80006834:
.4byte lbl_800148E0
.4byte 0x8680001D
.4byte 0
.4byte func_80006BD0
.4byte lbl_80006BD0
.4byte 0x02000020
.4byte lbl_800148E0
.4byte 0x8680001E
.4byte 0
.4byte func_80006BD0
.4byte lbl_80006BD0
.4byte 0x82000030
.4byte func_800149D8
.4byte lbl_800149D8
.global lbl_80006894
lbl_80006894:

View file

@ -1,4 +1,4 @@
.include "macros.inc"
.include "macros.s"
.section extabindex_, "wa" # 0x800068E0 - 0x80006A00 ; 0x00000120
@ -7,37 +7,37 @@
lbl_800068E0:
# ROM: 0x402240
.4byte func_80006BD0
.4byte lbl_80006BD0
.4byte 0x00000040
.4byte lbl_80006740
.4byte func_80006E64
.4byte lbl_80006E64
.4byte 0x00000104
.4byte lbl_80006748
.4byte lbl_80006F68
.4byte 0x000000BC
.4byte lbl_80006760
.4byte func_80007024
.4byte lbl_80007024
.4byte 0x000000F8
.4byte lbl_80006768
.4byte func_8000711C
.4byte lbl_8000711C
.4byte 0x00000078
.4byte lbl_80006780
.4byte func_80007B78
.4byte lbl_80007B78
.4byte 0x000001B0
.4byte lbl_80006788
.4byte func_80007D28
.4byte lbl_80007D28
.4byte 0x000001B0
.4byte lbl_80006790
.4byte func_80007ED8
.4byte lbl_80007ED8
.4byte 0x00000554
.4byte lbl_80006798
.4byte func_8000842C
.4byte lbl_8000842C
.4byte 0x0000050C
.4byte lbl_800067A0
.4byte func_80008938
.4byte lbl_80008938
.4byte 0x000001B8
.4byte lbl_800067B4
.4byte func_80008BF8
.4byte lbl_80008BF8
.4byte 0x00000408
.4byte lbl_800067E0
.4byte lbl_8001488C
@ -49,19 +49,19 @@ lbl_800068E0:
.4byte lbl_80014948
.4byte 0x00000090
.4byte lbl_80006804
.4byte func_800149D8
.4byte lbl_800149D8
.4byte 0x00000064
.4byte lbl_8000682C
.4byte func_80014A3C
.4byte lbl_80014A3C
.4byte 0x000003F0
.4byte lbl_80006834
.4byte func_80014E2C
.4byte lbl_80014E2C
.4byte 0x00000094
.4byte lbl_80006894
.4byte func_80014F18
.4byte lbl_80014F18
.4byte 0x00000078
.4byte lbl_800068BC
.4byte func_80014F90
.4byte lbl_80014F90
.4byte 0x000000A0
.4byte lbl_800068C4
@ -71,7 +71,7 @@ lbl_800069C4:
# ROM: 0x402324
.4byte lbl_800068E0
.4byte lbl_800069C4
.4byte func_80006BD0
.4byte lbl_80006BD0
.4byte 0x0000E460
.4byte 0
.4byte 0

View file

@ -1,4 +1,4 @@
.include "macros.inc"
.include "macros.s"
.section .init, "ax" # 0x80004000 - 0x80006740 ; 0x00002740
@ -20,7 +20,7 @@ func_80004000:
/* 80004030 00000130 7D 4B 4A 79 */ xor. r11, r10, r9
/* 80004034 00000134 40 82 01 28 */ bne lbl_8000415C
/* 80004038 00000138 71 4A 00 07 */ andi. r10, r10, 0x7
/* 8000403C 0000013C 41 A2 00 2C */ bc 13, 2, lbl_80004068
/* 8000403C 0000013C 41 A2 00 2C */ beq+ lbl_80004068
/* 80004040 00000140 38 C0 00 08 */ li r6, 0x8
/* 80004044 00000144 7D 29 30 50 */ subf r9, r9, r6
/* 80004048 00000148 39 03 00 00 */ addi r8, r3, 0x0
@ -120,7 +120,7 @@ lbl_80004178:
/* 80004194 00000294 7D 4B 4A 79 */ xor. r11, r10, r9
/* 80004198 00000298 40 82 00 F0 */ bne lbl_80004288
/* 8000419C 0000029C 71 4A 00 07 */ andi. r10, r10, 0x7
/* 800041A0 000002A0 41 A2 00 14 */ bc 13, 2, lbl_800041B4
/* 800041A0 000002A0 41 A2 00 14 */ beq+ lbl_800041B4
/* 800041A4 000002A4 7D 49 03 A6 */ mtctr r10
lbl_800041A8:
/* 800041A8 000002A8 8D 24 FF FF */ lbzu r9, -0x1(r4)
@ -158,7 +158,7 @@ lbl_80004204:
/* 80004218 00000318 7D 4B 4A 79 */ xor. r11, r10, r9
/* 8000421C 0000031C 40 82 00 6C */ bne lbl_80004288
/* 80004220 00000320 71 4A 00 07 */ andi. r10, r10, 0x7
/* 80004224 00000324 41 A2 00 14 */ bc 13, 2, lbl_80004238
/* 80004224 00000324 41 A2 00 14 */ beq+ lbl_80004238
/* 80004228 00000328 7D 49 03 A6 */ mtctr r10
lbl_8000422C:
/* 8000422C 0000032C 8D 24 FF FF */ lbzu r9, -0x1(r4)
@ -194,9 +194,7 @@ lbl_8000428C:
/* 80004290 00000390 9D 2C FF FF */ stbu r9, -0x1(r12)
/* 80004294 00000394 42 00 FF F8 */ bdnz lbl_8000428C
/* 80004298 00000398 4E 80 00 20 */ blr
.global func_8000429C
func_8000429C:
lbl_8000429C:
/* 8000429C 0000039C 28 05 00 20 */ cmplwi r5, 0x20
/* 800042A0 000003A0 54 87 06 3E */ clrlwi r7, r4, 24
/* 800042A4 000003A4 38 C3 FF FF */ addi r6, r3, -0x1
@ -234,7 +232,7 @@ lbl_800042F4:
/* 80004314 00000414 94 E3 00 20 */ stwu r7, 0x20(r3)
/* 80004318 00000418 40 82 FF DC */ bne lbl_800042F4
lbl_8000431C:
/* 8000431C 0000041C 54 A0 F7 7F */ rlwinm. r0, r5, 30, 29, 31
/* 8000431C 0000041C 54 A0 F7 7F */ extrwi. r0, r5, 3, 27
/* 80004320 00000420 41 82 00 10 */ beq lbl_80004330
lbl_80004324:
/* 80004324 00000424 34 00 FF FF */ addic. r0, r0, -0x1
@ -259,7 +257,7 @@ func_80004350:
/* 80004358 00000458 90 01 00 14 */ stw r0, 0x14(r1)
/* 8000435C 0000045C 93 E1 00 0C */ stw r31, 0xc(r1)
/* 80004360 00000460 7C 7F 1B 78 */ mr r31, r3
/* 80004364 00000464 4B FF FF 39 */ bl func_8000429C
/* 80004364 00000464 4B FF FF 39 */ bl lbl_8000429C
/* 80004368 00000468 7F E3 FB 78 */ mr r3, r31
/* 8000436C 0000046C 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 80004370 00000470 80 01 00 14 */ lwz r0, 0x14(r1)
@ -281,7 +279,7 @@ lbl_80004380:
/* 800043A4 000004A4 72 20 50 6F */ andi. r0, r17, 0x506f
/* 800043A8 000004A8 77 65 72 50 */ andis. r5, r27, 0x7250
lbl_800043AC:
/* 800043AC 000004AC 43 00 00 00 */ .4byte 0x43000000 /* bc 24, 0, 0x0 */
/* 800043AC 000004AC 43 00 00 00 */ .4byte 0x43000000 /* bc 24, lt, 0x0 */
/* 800043B0 000004B0 00 00 00 00 */ .4byte 0x00000000
/* 800043B4 000004B4 00 00 00 00 */ .4byte 0x00000000
/* 800043B8 000004B8 00 00 00 00 */ .4byte 0x00000000
@ -398,23 +396,23 @@ lbl_800043AC:
/* 80004574 00000674 00 00 00 00 */ .4byte 0x00000000
/* 80004578 00000678 00 00 00 00 */ .4byte 0x00000000
/* 8000457C 0000067C 00 00 00 00 */ .4byte 0x00000000
/* 80004580 00000680 7C 51 43 A6 */ mtspr 273, r2
/* 80004584 00000684 7C 5A 02 A6 */ mfspr r2, 26
/* 80004580 00000680 7C 51 43 A6 */ mtsprg 1, r2
/* 80004584 00000684 7C 5A 02 A6 */ mfsrr0 r2
/* 80004588 00000688 7C 00 17 AC */ icbi r0, r2
/* 8000458C 0000068C 7C 53 02 A6 */ mfspr r2, 19
/* 8000458C 0000068C 7C 53 02 A6 */ mfdar r2
/* 80004590 00000690 7C 00 13 AC */ dcbi r0, r2
/* 80004594 00000694 7C 51 42 A6 */ mfspr r2, 273
/* 80004598 00000698 7C 51 43 A6 */ mtspr 273, r2
/* 8000459C 0000069C 7C 72 43 A6 */ mtspr 274, r3
/* 800045A0 000006A0 7C 93 43 A6 */ mtspr 275, r4
/* 800045A4 000006A4 7C 5A 02 A6 */ mfspr r2, 26
/* 800045A8 000006A8 7C 9B 02 A6 */ mfspr r4, 27
/* 80004594 00000694 7C 51 42 A6 */ mfsprg r2, 1
/* 80004598 00000698 7C 51 43 A6 */ mtsprg 1, r2
/* 8000459C 0000069C 7C 72 43 A6 */ mtsprg 2, r3
/* 800045A0 000006A0 7C 93 43 A6 */ mtsprg 3, r4
/* 800045A4 000006A4 7C 5A 02 A6 */ mfsrr0 r2
/* 800045A8 000006A8 7C 9B 02 A6 */ mfsrr1 r4
/* 800045AC 000006AC 7C 60 00 A6 */ mfmsr r3
/* 800045B0 000006B0 60 63 00 30 */ ori r3, r3, 0x30
/* 800045B4 000006B4 7C 7B 03 A6 */ mtspr 27, r3
/* 800045B8 000006B8 3C 60 80 01 */ lis r3, func_800190A0@h
/* 800045BC 000006BC 60 63 90 A0 */ ori r3, r3, func_800190A0@l
/* 800045C0 000006C0 7C 7A 03 A6 */ mtspr 26, r3
/* 800045B4 000006B4 7C 7B 03 A6 */ mtsrr1 r3
/* 800045B8 000006B8 3C 60 80 01 */ lis r3, lbl_800190A0@h
/* 800045BC 000006BC 60 63 90 A0 */ ori r3, r3, lbl_800190A0@l
/* 800045C0 000006C0 7C 7A 03 A6 */ mtsrr0 r3
/* 800045C4 000006C4 38 60 02 00 */ li r3, 0x200
/* 800045C8 000006C8 4C 00 00 64 */ rfi
/* 800045CC 000006CC 00 00 00 00 */ .4byte 0x00000000
@ -462,17 +460,17 @@ lbl_800043AC:
/* 80004674 00000774 00 00 00 00 */ .4byte 0x00000000
/* 80004678 00000778 00 00 00 00 */ .4byte 0x00000000
/* 8000467C 0000077C 00 00 00 00 */ .4byte 0x00000000
/* 80004680 00000780 7C 51 43 A6 */ mtspr 273, r2
/* 80004684 00000784 7C 72 43 A6 */ mtspr 274, r3
/* 80004688 00000788 7C 93 43 A6 */ mtspr 275, r4
/* 8000468C 0000078C 7C 5A 02 A6 */ mfspr r2, 26
/* 80004690 00000790 7C 9B 02 A6 */ mfspr r4, 27
/* 80004680 00000780 7C 51 43 A6 */ mtsprg 1, r2
/* 80004684 00000784 7C 72 43 A6 */ mtsprg 2, r3
/* 80004688 00000788 7C 93 43 A6 */ mtsprg 3, r4
/* 8000468C 0000078C 7C 5A 02 A6 */ mfsrr0 r2
/* 80004690 00000790 7C 9B 02 A6 */ mfsrr1 r4
/* 80004694 00000794 7C 60 00 A6 */ mfmsr r3
/* 80004698 00000798 60 63 00 30 */ ori r3, r3, 0x30
/* 8000469C 0000079C 7C 7B 03 A6 */ mtspr 27, r3
/* 800046A0 000007A0 3C 60 80 01 */ lis r3, func_800190A0@h
/* 800046A4 000007A4 60 63 90 A0 */ ori r3, r3, func_800190A0@l
/* 800046A8 000007A8 7C 7A 03 A6 */ mtspr 26, r3
/* 8000469C 0000079C 7C 7B 03 A6 */ mtsrr1 r3
/* 800046A0 000007A0 3C 60 80 01 */ lis r3, lbl_800190A0@h
/* 800046A4 000007A4 60 63 90 A0 */ ori r3, r3, lbl_800190A0@l
/* 800046A8 000007A8 7C 7A 03 A6 */ mtsrr0 r3
/* 800046AC 000007AC 38 60 03 00 */ li r3, 0x300
/* 800046B0 000007B0 4C 00 00 64 */ rfi
/* 800046B4 000007B4 00 00 00 00 */ .4byte 0x00000000
@ -526,17 +524,17 @@ lbl_800043AC:
/* 80004774 00000874 00 00 00 00 */ .4byte 0x00000000
/* 80004778 00000878 00 00 00 00 */ .4byte 0x00000000
/* 8000477C 0000087C 00 00 00 00 */ .4byte 0x00000000
/* 80004780 00000880 7C 51 43 A6 */ mtspr 273, r2
/* 80004784 00000884 7C 72 43 A6 */ mtspr 274, r3
/* 80004788 00000888 7C 93 43 A6 */ mtspr 275, r4
/* 8000478C 0000088C 7C 5A 02 A6 */ mfspr r2, 26
/* 80004790 00000890 7C 9B 02 A6 */ mfspr r4, 27
/* 80004780 00000880 7C 51 43 A6 */ mtsprg 1, r2
/* 80004784 00000884 7C 72 43 A6 */ mtsprg 2, r3
/* 80004788 00000888 7C 93 43 A6 */ mtsprg 3, r4
/* 8000478C 0000088C 7C 5A 02 A6 */ mfsrr0 r2
/* 80004790 00000890 7C 9B 02 A6 */ mfsrr1 r4
/* 80004794 00000894 7C 60 00 A6 */ mfmsr r3
/* 80004798 00000898 60 63 00 30 */ ori r3, r3, 0x30
/* 8000479C 0000089C 7C 7B 03 A6 */ mtspr 27, r3
/* 800047A0 000008A0 3C 60 80 01 */ lis r3, func_800190A0@h
/* 800047A4 000008A4 60 63 90 A0 */ ori r3, r3, func_800190A0@l
/* 800047A8 000008A8 7C 7A 03 A6 */ mtspr 26, r3
/* 8000479C 0000089C 7C 7B 03 A6 */ mtsrr1 r3
/* 800047A0 000008A0 3C 60 80 01 */ lis r3, lbl_800190A0@h
/* 800047A4 000008A4 60 63 90 A0 */ ori r3, r3, lbl_800190A0@l
/* 800047A8 000008A8 7C 7A 03 A6 */ mtsrr0 r3
/* 800047AC 000008AC 38 60 04 00 */ li r3, 0x400
/* 800047B0 000008B0 4C 00 00 64 */ rfi
/* 800047B4 000008B4 00 00 00 00 */ .4byte 0x00000000
@ -590,17 +588,17 @@ lbl_800043AC:
/* 80004874 00000974 00 00 00 00 */ .4byte 0x00000000
/* 80004878 00000978 00 00 00 00 */ .4byte 0x00000000
/* 8000487C 0000097C 00 00 00 00 */ .4byte 0x00000000
/* 80004880 00000980 7C 51 43 A6 */ mtspr 273, r2
/* 80004884 00000984 7C 72 43 A6 */ mtspr 274, r3
/* 80004888 00000988 7C 93 43 A6 */ mtspr 275, r4
/* 8000488C 0000098C 7C 5A 02 A6 */ mfspr r2, 26
/* 80004890 00000990 7C 9B 02 A6 */ mfspr r4, 27
/* 80004880 00000980 7C 51 43 A6 */ mtsprg 1, r2
/* 80004884 00000984 7C 72 43 A6 */ mtsprg 2, r3
/* 80004888 00000988 7C 93 43 A6 */ mtsprg 3, r4
/* 8000488C 0000098C 7C 5A 02 A6 */ mfsrr0 r2
/* 80004890 00000990 7C 9B 02 A6 */ mfsrr1 r4
/* 80004894 00000994 7C 60 00 A6 */ mfmsr r3
/* 80004898 00000998 60 63 00 30 */ ori r3, r3, 0x30
/* 8000489C 0000099C 7C 7B 03 A6 */ mtspr 27, r3
/* 800048A0 000009A0 3C 60 80 01 */ lis r3, func_800190A0@h
/* 800048A4 000009A4 60 63 90 A0 */ ori r3, r3, func_800190A0@l
/* 800048A8 000009A8 7C 7A 03 A6 */ mtspr 26, r3
/* 8000489C 0000099C 7C 7B 03 A6 */ mtsrr1 r3
/* 800048A0 000009A0 3C 60 80 01 */ lis r3, lbl_800190A0@h
/* 800048A4 000009A4 60 63 90 A0 */ ori r3, r3, lbl_800190A0@l
/* 800048A8 000009A8 7C 7A 03 A6 */ mtsrr0 r3
/* 800048AC 000009AC 38 60 05 00 */ li r3, 0x500
/* 800048B0 000009B0 4C 00 00 64 */ rfi
/* 800048B4 000009B4 00 00 00 00 */ .4byte 0x00000000
@ -654,17 +652,17 @@ lbl_800043AC:
/* 80004974 00000A74 00 00 00 00 */ .4byte 0x00000000
/* 80004978 00000A78 00 00 00 00 */ .4byte 0x00000000
/* 8000497C 00000A7C 00 00 00 00 */ .4byte 0x00000000
/* 80004980 00000A80 7C 51 43 A6 */ mtspr 273, r2
/* 80004984 00000A84 7C 72 43 A6 */ mtspr 274, r3
/* 80004988 00000A88 7C 93 43 A6 */ mtspr 275, r4
/* 8000498C 00000A8C 7C 5A 02 A6 */ mfspr r2, 26
/* 80004990 00000A90 7C 9B 02 A6 */ mfspr r4, 27
/* 80004980 00000A80 7C 51 43 A6 */ mtsprg 1, r2
/* 80004984 00000A84 7C 72 43 A6 */ mtsprg 2, r3
/* 80004988 00000A88 7C 93 43 A6 */ mtsprg 3, r4
/* 8000498C 00000A8C 7C 5A 02 A6 */ mfsrr0 r2
/* 80004990 00000A90 7C 9B 02 A6 */ mfsrr1 r4
/* 80004994 00000A94 7C 60 00 A6 */ mfmsr r3
/* 80004998 00000A98 60 63 00 30 */ ori r3, r3, 0x30
/* 8000499C 00000A9C 7C 7B 03 A6 */ mtspr 27, r3
/* 800049A0 00000AA0 3C 60 80 01 */ lis r3, func_800190A0@h
/* 800049A4 00000AA4 60 63 90 A0 */ ori r3, r3, func_800190A0@l
/* 800049A8 00000AA8 7C 7A 03 A6 */ mtspr 26, r3
/* 8000499C 00000A9C 7C 7B 03 A6 */ mtsrr1 r3
/* 800049A0 00000AA0 3C 60 80 01 */ lis r3, lbl_800190A0@h
/* 800049A4 00000AA4 60 63 90 A0 */ ori r3, r3, lbl_800190A0@l
/* 800049A8 00000AA8 7C 7A 03 A6 */ mtsrr0 r3
/* 800049AC 00000AAC 38 60 06 00 */ li r3, 0x600
/* 800049B0 00000AB0 4C 00 00 64 */ rfi
/* 800049B4 00000AB4 00 00 00 00 */ .4byte 0x00000000
@ -718,17 +716,17 @@ lbl_800043AC:
/* 80004A74 00000B74 00 00 00 00 */ .4byte 0x00000000
/* 80004A78 00000B78 00 00 00 00 */ .4byte 0x00000000
/* 80004A7C 00000B7C 00 00 00 00 */ .4byte 0x00000000
/* 80004A80 00000B80 7C 51 43 A6 */ mtspr 273, r2
/* 80004A84 00000B84 7C 72 43 A6 */ mtspr 274, r3
/* 80004A88 00000B88 7C 93 43 A6 */ mtspr 275, r4
/* 80004A8C 00000B8C 7C 5A 02 A6 */ mfspr r2, 26
/* 80004A90 00000B90 7C 9B 02 A6 */ mfspr r4, 27
/* 80004A80 00000B80 7C 51 43 A6 */ mtsprg 1, r2
/* 80004A84 00000B84 7C 72 43 A6 */ mtsprg 2, r3
/* 80004A88 00000B88 7C 93 43 A6 */ mtsprg 3, r4
/* 80004A8C 00000B8C 7C 5A 02 A6 */ mfsrr0 r2
/* 80004A90 00000B90 7C 9B 02 A6 */ mfsrr1 r4
/* 80004A94 00000B94 7C 60 00 A6 */ mfmsr r3
/* 80004A98 00000B98 60 63 00 30 */ ori r3, r3, 0x30
/* 80004A9C 00000B9C 7C 7B 03 A6 */ mtspr 27, r3
/* 80004AA0 00000BA0 3C 60 80 01 */ lis r3, func_800190A0@h
/* 80004AA4 00000BA4 60 63 90 A0 */ ori r3, r3, func_800190A0@l
/* 80004AA8 00000BA8 7C 7A 03 A6 */ mtspr 26, r3
/* 80004A9C 00000B9C 7C 7B 03 A6 */ mtsrr1 r3
/* 80004AA0 00000BA0 3C 60 80 01 */ lis r3, lbl_800190A0@h
/* 80004AA4 00000BA4 60 63 90 A0 */ ori r3, r3, lbl_800190A0@l
/* 80004AA8 00000BA8 7C 7A 03 A6 */ mtsrr0 r3
/* 80004AAC 00000BAC 38 60 07 00 */ li r3, 0x700
/* 80004AB0 00000BB0 4C 00 00 64 */ rfi
/* 80004AB4 00000BB4 00 00 00 00 */ .4byte 0x00000000
@ -782,17 +780,17 @@ lbl_800043AC:
/* 80004B74 00000C74 00 00 00 00 */ .4byte 0x00000000
/* 80004B78 00000C78 00 00 00 00 */ .4byte 0x00000000
/* 80004B7C 00000C7C 00 00 00 00 */ .4byte 0x00000000
/* 80004B80 00000C80 7C 51 43 A6 */ mtspr 273, r2
/* 80004B84 00000C84 7C 72 43 A6 */ mtspr 274, r3
/* 80004B88 00000C88 7C 93 43 A6 */ mtspr 275, r4
/* 80004B8C 00000C8C 7C 5A 02 A6 */ mfspr r2, 26
/* 80004B90 00000C90 7C 9B 02 A6 */ mfspr r4, 27
/* 80004B80 00000C80 7C 51 43 A6 */ mtsprg 1, r2
/* 80004B84 00000C84 7C 72 43 A6 */ mtsprg 2, r3
/* 80004B88 00000C88 7C 93 43 A6 */ mtsprg 3, r4
/* 80004B8C 00000C8C 7C 5A 02 A6 */ mfsrr0 r2
/* 80004B90 00000C90 7C 9B 02 A6 */ mfsrr1 r4
/* 80004B94 00000C94 7C 60 00 A6 */ mfmsr r3
/* 80004B98 00000C98 60 63 00 30 */ ori r3, r3, 0x30
/* 80004B9C 00000C9C 7C 7B 03 A6 */ mtspr 27, r3
/* 80004BA0 00000CA0 3C 60 80 01 */ lis r3, func_800190A0@h
/* 80004BA4 00000CA4 60 63 90 A0 */ ori r3, r3, func_800190A0@l
/* 80004BA8 00000CA8 7C 7A 03 A6 */ mtspr 26, r3
/* 80004B9C 00000C9C 7C 7B 03 A6 */ mtsrr1 r3
/* 80004BA0 00000CA0 3C 60 80 01 */ lis r3, lbl_800190A0@h
/* 80004BA4 00000CA4 60 63 90 A0 */ ori r3, r3, lbl_800190A0@l
/* 80004BA8 00000CA8 7C 7A 03 A6 */ mtsrr0 r3
/* 80004BAC 00000CAC 38 60 08 00 */ li r3, 0x800
/* 80004BB0 00000CB0 4C 00 00 64 */ rfi
/* 80004BB4 00000CB4 00 00 00 00 */ .4byte 0x00000000
@ -846,17 +844,17 @@ lbl_800043AC:
/* 80004C74 00000D74 00 00 00 00 */ .4byte 0x00000000
/* 80004C78 00000D78 00 00 00 00 */ .4byte 0x00000000
/* 80004C7C 00000D7C 00 00 00 00 */ .4byte 0x00000000
/* 80004C80 00000D80 7C 51 43 A6 */ mtspr 273, r2
/* 80004C84 00000D84 7C 72 43 A6 */ mtspr 274, r3
/* 80004C88 00000D88 7C 93 43 A6 */ mtspr 275, r4
/* 80004C8C 00000D8C 7C 5A 02 A6 */ mfspr r2, 26
/* 80004C90 00000D90 7C 9B 02 A6 */ mfspr r4, 27
/* 80004C80 00000D80 7C 51 43 A6 */ mtsprg 1, r2
/* 80004C84 00000D84 7C 72 43 A6 */ mtsprg 2, r3
/* 80004C88 00000D88 7C 93 43 A6 */ mtsprg 3, r4
/* 80004C8C 00000D8C 7C 5A 02 A6 */ mfsrr0 r2
/* 80004C90 00000D90 7C 9B 02 A6 */ mfsrr1 r4
/* 80004C94 00000D94 7C 60 00 A6 */ mfmsr r3
/* 80004C98 00000D98 60 63 00 30 */ ori r3, r3, 0x30
/* 80004C9C 00000D9C 7C 7B 03 A6 */ mtspr 27, r3
/* 80004CA0 00000DA0 3C 60 80 01 */ lis r3, func_800190A0@h
/* 80004CA4 00000DA4 60 63 90 A0 */ ori r3, r3, func_800190A0@l
/* 80004CA8 00000DA8 7C 7A 03 A6 */ mtspr 26, r3
/* 80004C9C 00000D9C 7C 7B 03 A6 */ mtsrr1 r3
/* 80004CA0 00000DA0 3C 60 80 01 */ lis r3, lbl_800190A0@h
/* 80004CA4 00000DA4 60 63 90 A0 */ ori r3, r3, lbl_800190A0@l
/* 80004CA8 00000DA8 7C 7A 03 A6 */ mtsrr0 r3
/* 80004CAC 00000DAC 38 60 09 00 */ li r3, 0x900
/* 80004CB0 00000DB0 4C 00 00 64 */ rfi
/* 80004CB4 00000DB4 00 00 00 00 */ .4byte 0x00000000
@ -1038,17 +1036,17 @@ lbl_800043AC:
/* 80004F74 00001074 00 00 00 00 */ .4byte 0x00000000
/* 80004F78 00001078 00 00 00 00 */ .4byte 0x00000000
/* 80004F7C 0000107C 00 00 00 00 */ .4byte 0x00000000
/* 80004F80 00001080 7C 51 43 A6 */ mtspr 273, r2
/* 80004F84 00001084 7C 72 43 A6 */ mtspr 274, r3
/* 80004F88 00001088 7C 93 43 A6 */ mtspr 275, r4
/* 80004F8C 0000108C 7C 5A 02 A6 */ mfspr r2, 26
/* 80004F90 00001090 7C 9B 02 A6 */ mfspr r4, 27
/* 80004F80 00001080 7C 51 43 A6 */ mtsprg 1, r2
/* 80004F84 00001084 7C 72 43 A6 */ mtsprg 2, r3
/* 80004F88 00001088 7C 93 43 A6 */ mtsprg 3, r4
/* 80004F8C 0000108C 7C 5A 02 A6 */ mfsrr0 r2
/* 80004F90 00001090 7C 9B 02 A6 */ mfsrr1 r4
/* 80004F94 00001094 7C 60 00 A6 */ mfmsr r3
/* 80004F98 00001098 60 63 00 30 */ ori r3, r3, 0x30
/* 80004F9C 0000109C 7C 7B 03 A6 */ mtspr 27, r3
/* 80004FA0 000010A0 3C 60 80 01 */ lis r3, func_800190A0@h
/* 80004FA4 000010A4 60 63 90 A0 */ ori r3, r3, func_800190A0@l
/* 80004FA8 000010A8 7C 7A 03 A6 */ mtspr 26, r3
/* 80004F9C 0000109C 7C 7B 03 A6 */ mtsrr1 r3
/* 80004FA0 000010A0 3C 60 80 01 */ lis r3, lbl_800190A0@h
/* 80004FA4 000010A4 60 63 90 A0 */ ori r3, r3, lbl_800190A0@l
/* 80004FA8 000010A8 7C 7A 03 A6 */ mtsrr0 r3
/* 80004FAC 000010AC 38 60 0C 00 */ li r3, 0xc00
/* 80004FB0 000010B0 4C 00 00 64 */ rfi
/* 80004FB4 000010B4 00 00 00 00 */ .4byte 0x00000000
@ -1102,17 +1100,17 @@ lbl_800043AC:
/* 80005074 00001174 00 00 00 00 */ .4byte 0x00000000
/* 80005078 00001178 00 00 00 00 */ .4byte 0x00000000
/* 8000507C 0000117C 00 00 00 00 */ .4byte 0x00000000
/* 80005080 00001180 7C 51 43 A6 */ mtspr 273, r2
/* 80005084 00001184 7C 72 43 A6 */ mtspr 274, r3
/* 80005088 00001188 7C 93 43 A6 */ mtspr 275, r4
/* 8000508C 0000118C 7C 5A 02 A6 */ mfspr r2, 26
/* 80005090 00001190 7C 9B 02 A6 */ mfspr r4, 27
/* 80005080 00001180 7C 51 43 A6 */ mtsprg 1, r2
/* 80005084 00001184 7C 72 43 A6 */ mtsprg 2, r3
/* 80005088 00001188 7C 93 43 A6 */ mtsprg 3, r4
/* 8000508C 0000118C 7C 5A 02 A6 */ mfsrr0 r2
/* 80005090 00001190 7C 9B 02 A6 */ mfsrr1 r4
/* 80005094 00001194 7C 60 00 A6 */ mfmsr r3
/* 80005098 00001198 60 63 00 30 */ ori r3, r3, 0x30
/* 8000509C 0000119C 7C 7B 03 A6 */ mtspr 27, r3
/* 800050A0 000011A0 3C 60 80 01 */ lis r3, func_800190A0@h
/* 800050A4 000011A4 60 63 90 A0 */ ori r3, r3, func_800190A0@l
/* 800050A8 000011A8 7C 7A 03 A6 */ mtspr 26, r3
/* 8000509C 0000119C 7C 7B 03 A6 */ mtsrr1 r3
/* 800050A0 000011A0 3C 60 80 01 */ lis r3, lbl_800190A0@h
/* 800050A4 000011A4 60 63 90 A0 */ ori r3, r3, lbl_800190A0@l
/* 800050A8 000011A8 7C 7A 03 A6 */ mtsrr0 r3
/* 800050AC 000011AC 38 60 0D 00 */ li r3, 0xd00
/* 800050B0 000011B0 4C 00 00 64 */ rfi
/* 800050B4 000011B4 00 00 00 00 */ .4byte 0x00000000
@ -1166,17 +1164,17 @@ lbl_800043AC:
/* 80005174 00001274 00 00 00 00 */ .4byte 0x00000000
/* 80005178 00001278 00 00 00 00 */ .4byte 0x00000000
/* 8000517C 0000127C 00 00 00 00 */ .4byte 0x00000000
/* 80005180 00001280 7C 51 43 A6 */ mtspr 273, r2
/* 80005184 00001284 7C 72 43 A6 */ mtspr 274, r3
/* 80005188 00001288 7C 93 43 A6 */ mtspr 275, r4
/* 8000518C 0000128C 7C 5A 02 A6 */ mfspr r2, 26
/* 80005190 00001290 7C 9B 02 A6 */ mfspr r4, 27
/* 80005180 00001280 7C 51 43 A6 */ mtsprg 1, r2
/* 80005184 00001284 7C 72 43 A6 */ mtsprg 2, r3
/* 80005188 00001288 7C 93 43 A6 */ mtsprg 3, r4
/* 8000518C 0000128C 7C 5A 02 A6 */ mfsrr0 r2
/* 80005190 00001290 7C 9B 02 A6 */ mfsrr1 r4
/* 80005194 00001294 7C 60 00 A6 */ mfmsr r3
/* 80005198 00001298 60 63 00 30 */ ori r3, r3, 0x30
/* 8000519C 0000129C 7C 7B 03 A6 */ mtspr 27, r3
/* 800051A0 000012A0 3C 60 80 01 */ lis r3, func_800190A0@h
/* 800051A4 000012A4 60 63 90 A0 */ ori r3, r3, func_800190A0@l
/* 800051A8 000012A8 7C 7A 03 A6 */ mtspr 26, r3
/* 8000519C 0000129C 7C 7B 03 A6 */ mtsrr1 r3
/* 800051A0 000012A0 3C 60 80 01 */ lis r3, lbl_800190A0@h
/* 800051A4 000012A4 60 63 90 A0 */ ori r3, r3, lbl_800190A0@l
/* 800051A8 000012A8 7C 7A 03 A6 */ mtsrr0 r3
/* 800051AC 000012AC 38 60 0E 00 */ li r3, 0xe00
/* 800051B0 000012B0 4C 00 00 64 */ rfi
/* 800051B4 000012B4 00 00 00 00 */ .4byte 0x00000000
@ -1230,7 +1228,7 @@ lbl_800043AC:
/* 80005274 00001374 00 00 00 00 */ .4byte 0x00000000
/* 80005278 00001378 00 00 00 00 */ .4byte 0x00000000
/* 8000527C 0000137C 00 00 00 00 */ .4byte 0x00000000
/* 80005280 00001380 48 00 00 54 */ b func_800052D4
/* 80005280 00001380 48 00 00 54 */ b lbl_800052D4
/* 80005284 00001384 00 00 00 00 */ .4byte 0x00000000
/* 80005288 00001388 00 00 00 00 */ .4byte 0x00000000
/* 8000528C 0000138C 00 00 00 00 */ .4byte 0x00000000
@ -1238,33 +1236,31 @@ lbl_800043AC:
/* 80005294 00001394 00 00 00 00 */ .4byte 0x00000000
/* 80005298 00001398 00 00 00 00 */ .4byte 0x00000000
/* 8000529C 0000139C 00 00 00 00 */ .4byte 0x00000000
/* 800052A0 000013A0 7C 51 43 A6 */ mtspr 273, r2
/* 800052A4 000013A4 7C 72 43 A6 */ mtspr 274, r3
/* 800052A8 000013A8 7C 93 43 A6 */ mtspr 275, r4
/* 800052AC 000013AC 7C 5A 02 A6 */ mfspr r2, 26
/* 800052B0 000013B0 7C 9B 02 A6 */ mfspr r4, 27
/* 800052A0 000013A0 7C 51 43 A6 */ mtsprg 1, r2
/* 800052A4 000013A4 7C 72 43 A6 */ mtsprg 2, r3
/* 800052A8 000013A8 7C 93 43 A6 */ mtsprg 3, r4
/* 800052AC 000013AC 7C 5A 02 A6 */ mfsrr0 r2
/* 800052B0 000013B0 7C 9B 02 A6 */ mfsrr1 r4
/* 800052B4 000013B4 7C 60 00 A6 */ mfmsr r3
/* 800052B8 000013B8 60 63 00 30 */ ori r3, r3, 0x30
/* 800052BC 000013BC 7C 7B 03 A6 */ mtspr 27, r3
/* 800052C0 000013C0 3C 60 80 01 */ lis r3, func_800190A0@h
/* 800052C4 000013C4 60 63 90 A0 */ ori r3, r3, func_800190A0@l
/* 800052C8 000013C8 7C 7A 03 A6 */ mtspr 26, r3
/* 800052BC 000013BC 7C 7B 03 A6 */ mtsrr1 r3
/* 800052C0 000013C0 3C 60 80 01 */ lis r3, lbl_800190A0@h
/* 800052C4 000013C4 60 63 90 A0 */ ori r3, r3, lbl_800190A0@l
/* 800052C8 000013C8 7C 7A 03 A6 */ mtsrr0 r3
/* 800052CC 000013CC 38 60 0F 20 */ li r3, 0xf20
/* 800052D0 000013D0 4C 00 00 64 */ rfi
.global func_800052D4
func_800052D4:
/* 800052D4 000013D4 7C 51 43 A6 */ mtspr 273, r2
/* 800052D8 000013D8 7C 72 43 A6 */ mtspr 274, r3
/* 800052DC 000013DC 7C 93 43 A6 */ mtspr 275, r4
/* 800052E0 000013E0 7C 5A 02 A6 */ mfspr r2, 26
/* 800052E4 000013E4 7C 9B 02 A6 */ mfspr r4, 27
lbl_800052D4:
/* 800052D4 000013D4 7C 51 43 A6 */ mtsprg 1, r2
/* 800052D8 000013D8 7C 72 43 A6 */ mtsprg 2, r3
/* 800052DC 000013DC 7C 93 43 A6 */ mtsprg 3, r4
/* 800052E0 000013E0 7C 5A 02 A6 */ mfsrr0 r2
/* 800052E4 000013E4 7C 9B 02 A6 */ mfsrr1 r4
/* 800052E8 000013E8 7C 60 00 A6 */ mfmsr r3
/* 800052EC 000013EC 60 63 00 30 */ ori r3, r3, 0x30
/* 800052F0 000013F0 7C 7B 03 A6 */ mtspr 27, r3
/* 800052F4 000013F4 3C 60 80 01 */ lis r3, func_800190A0@h
/* 800052F8 000013F8 60 63 90 A0 */ ori r3, r3, func_800190A0@l
/* 800052FC 000013FC 7C 7A 03 A6 */ mtspr 26, r3
/* 800052F0 000013F0 7C 7B 03 A6 */ mtsrr1 r3
/* 800052F4 000013F4 3C 60 80 01 */ lis r3, lbl_800190A0@h
/* 800052F8 000013F8 60 63 90 A0 */ ori r3, r3, lbl_800190A0@l
/* 800052FC 000013FC 7C 7A 03 A6 */ mtsrr0 r3
/* 80005300 00001400 38 60 0F 00 */ li r3, 0xf00
/* 80005304 00001404 4C 00 00 64 */ rfi
/* 80005308 00001408 00 00 00 00 */ .4byte 0x00000000
@ -1297,9 +1293,9 @@ func_800052D4:
/* 80005374 00001474 00 00 00 00 */ .4byte 0x00000000
/* 80005378 00001478 00 00 00 00 */ .4byte 0x00000000
/* 8000537C 0000147C 00 00 00 00 */ .4byte 0x00000000
/* 80005380 00001480 7C 51 43 A6 */ mtspr 273, r2
/* 80005380 00001480 7C 51 43 A6 */ mtsprg 1, r2
/* 80005384 00001484 7C 40 00 26 */ mfcr r2
/* 80005388 00001488 7C 52 43 A6 */ mtspr 274, r2
/* 80005388 00001488 7C 52 43 A6 */ mtsprg 2, r2
/* 8000538C 0000148C 7C 40 00 A6 */ mfmsr r2
/* 80005390 00001490 74 42 00 02 */ andis. r2, r2, 0x2
/* 80005394 00001494 41 82 00 1C */ beq lbl_800053B0
@ -1308,22 +1304,22 @@ func_800052D4:
/* 800053A0 000014A0 7C 00 04 AC */ sync
/* 800053A4 000014A4 7C 40 01 24 */ mtmsr r2
/* 800053A8 000014A8 7C 00 04 AC */ sync
/* 800053AC 000014AC 7C 51 43 A6 */ mtspr 273, r2
/* 800053AC 000014AC 7C 51 43 A6 */ mtsprg 1, r2
lbl_800053B0:
/* 800053B0 000014B0 7C 52 42 A6 */ mfspr r2, 274
/* 800053B0 000014B0 7C 52 42 A6 */ mfsprg r2, 2
/* 800053B4 000014B4 7C 4F F1 20 */ mtcrf 255, r2
/* 800053B8 000014B8 7C 51 42 A6 */ mfspr r2, 273
/* 800053BC 000014BC 7C 51 43 A6 */ mtspr 273, r2
/* 800053C0 000014C0 7C 72 43 A6 */ mtspr 274, r3
/* 800053C4 000014C4 7C 93 43 A6 */ mtspr 275, r4
/* 800053C8 000014C8 7C 5A 02 A6 */ mfspr r2, 26
/* 800053CC 000014CC 7C 9B 02 A6 */ mfspr r4, 27
/* 800053B8 000014B8 7C 51 42 A6 */ mfsprg r2, 1
/* 800053BC 000014BC 7C 51 43 A6 */ mtsprg 1, r2
/* 800053C0 000014C0 7C 72 43 A6 */ mtsprg 2, r3
/* 800053C4 000014C4 7C 93 43 A6 */ mtsprg 3, r4
/* 800053C8 000014C8 7C 5A 02 A6 */ mfsrr0 r2
/* 800053CC 000014CC 7C 9B 02 A6 */ mfsrr1 r4
/* 800053D0 000014D0 7C 60 00 A6 */ mfmsr r3
/* 800053D4 000014D4 60 63 00 30 */ ori r3, r3, 0x30
/* 800053D8 000014D8 7C 7B 03 A6 */ mtspr 27, r3
/* 800053DC 000014DC 3C 60 80 01 */ lis r3, func_800190A0@h
/* 800053E0 000014E0 60 63 90 A0 */ ori r3, r3, func_800190A0@l
/* 800053E4 000014E4 7C 7A 03 A6 */ mtspr 26, r3
/* 800053D8 000014D8 7C 7B 03 A6 */ mtsrr1 r3
/* 800053DC 000014DC 3C 60 80 01 */ lis r3, lbl_800190A0@h
/* 800053E0 000014E0 60 63 90 A0 */ ori r3, r3, lbl_800190A0@l
/* 800053E4 000014E4 7C 7A 03 A6 */ mtsrr0 r3
/* 800053E8 000014E8 38 60 10 00 */ li r3, 0x1000
/* 800053EC 000014EC 4C 00 00 64 */ rfi
/* 800053F0 000014F0 00 00 00 00 */ .4byte 0x00000000
@ -1362,9 +1358,9 @@ lbl_800053B0:
/* 80005474 00001574 00 00 00 00 */ .4byte 0x00000000
/* 80005478 00001578 00 00 00 00 */ .4byte 0x00000000
/* 8000547C 0000157C 00 00 00 00 */ .4byte 0x00000000
/* 80005480 00001580 7C 51 43 A6 */ mtspr 273, r2
/* 80005480 00001580 7C 51 43 A6 */ mtsprg 1, r2
/* 80005484 00001584 7C 40 00 26 */ mfcr r2
/* 80005488 00001588 7C 52 43 A6 */ mtspr 274, r2
/* 80005488 00001588 7C 52 43 A6 */ mtsprg 2, r2
/* 8000548C 0000158C 7C 40 00 A6 */ mfmsr r2
/* 80005490 00001590 74 42 00 02 */ andis. r2, r2, 0x2
/* 80005494 00001594 41 82 00 1C */ beq lbl_800054B0
@ -1373,22 +1369,22 @@ lbl_800053B0:
/* 800054A0 000015A0 7C 00 04 AC */ sync
/* 800054A4 000015A4 7C 40 01 24 */ mtmsr r2
/* 800054A8 000015A8 7C 00 04 AC */ sync
/* 800054AC 000015AC 7C 51 43 A6 */ mtspr 273, r2
/* 800054AC 000015AC 7C 51 43 A6 */ mtsprg 1, r2
lbl_800054B0:
/* 800054B0 000015B0 7C 52 42 A6 */ mfspr r2, 274
/* 800054B0 000015B0 7C 52 42 A6 */ mfsprg r2, 2
/* 800054B4 000015B4 7C 4F F1 20 */ mtcrf 255, r2
/* 800054B8 000015B8 7C 51 42 A6 */ mfspr r2, 273
/* 800054BC 000015BC 7C 51 43 A6 */ mtspr 273, r2
/* 800054C0 000015C0 7C 72 43 A6 */ mtspr 274, r3
/* 800054C4 000015C4 7C 93 43 A6 */ mtspr 275, r4
/* 800054C8 000015C8 7C 5A 02 A6 */ mfspr r2, 26
/* 800054CC 000015CC 7C 9B 02 A6 */ mfspr r4, 27
/* 800054B8 000015B8 7C 51 42 A6 */ mfsprg r2, 1
/* 800054BC 000015BC 7C 51 43 A6 */ mtsprg 1, r2
/* 800054C0 000015C0 7C 72 43 A6 */ mtsprg 2, r3
/* 800054C4 000015C4 7C 93 43 A6 */ mtsprg 3, r4
/* 800054C8 000015C8 7C 5A 02 A6 */ mfsrr0 r2
/* 800054CC 000015CC 7C 9B 02 A6 */ mfsrr1 r4
/* 800054D0 000015D0 7C 60 00 A6 */ mfmsr r3
/* 800054D4 000015D4 60 63 00 30 */ ori r3, r3, 0x30
/* 800054D8 000015D8 7C 7B 03 A6 */ mtspr 27, r3
/* 800054DC 000015DC 3C 60 80 01 */ lis r3, func_800190A0@h
/* 800054E0 000015E0 60 63 90 A0 */ ori r3, r3, func_800190A0@l
/* 800054E4 000015E4 7C 7A 03 A6 */ mtspr 26, r3
/* 800054D8 000015D8 7C 7B 03 A6 */ mtsrr1 r3
/* 800054DC 000015DC 3C 60 80 01 */ lis r3, lbl_800190A0@h
/* 800054E0 000015E0 60 63 90 A0 */ ori r3, r3, lbl_800190A0@l
/* 800054E4 000015E4 7C 7A 03 A6 */ mtsrr0 r3
/* 800054E8 000015E8 38 60 11 00 */ li r3, 0x1100
/* 800054EC 000015EC 4C 00 00 64 */ rfi
/* 800054F0 000015F0 00 00 00 00 */ .4byte 0x00000000
@ -1427,9 +1423,9 @@ lbl_800054B0:
/* 80005574 00001674 00 00 00 00 */ .4byte 0x00000000
/* 80005578 00001678 00 00 00 00 */ .4byte 0x00000000
/* 8000557C 0000167C 00 00 00 00 */ .4byte 0x00000000
/* 80005580 00001680 7C 51 43 A6 */ mtspr 273, r2
/* 80005580 00001680 7C 51 43 A6 */ mtsprg 1, r2
/* 80005584 00001684 7C 40 00 26 */ mfcr r2
/* 80005588 00001688 7C 52 43 A6 */ mtspr 274, r2
/* 80005588 00001688 7C 52 43 A6 */ mtsprg 2, r2
/* 8000558C 0000168C 7C 40 00 A6 */ mfmsr r2
/* 80005590 00001690 74 42 00 02 */ andis. r2, r2, 0x2
/* 80005594 00001694 41 82 00 1C */ beq lbl_800055B0
@ -1438,22 +1434,22 @@ lbl_800054B0:
/* 800055A0 000016A0 7C 00 04 AC */ sync
/* 800055A4 000016A4 7C 40 01 24 */ mtmsr r2
/* 800055A8 000016A8 7C 00 04 AC */ sync
/* 800055AC 000016AC 7C 51 43 A6 */ mtspr 273, r2
/* 800055AC 000016AC 7C 51 43 A6 */ mtsprg 1, r2
lbl_800055B0:
/* 800055B0 000016B0 7C 52 42 A6 */ mfspr r2, 274
/* 800055B0 000016B0 7C 52 42 A6 */ mfsprg r2, 2
/* 800055B4 000016B4 7C 4F F1 20 */ mtcrf 255, r2
/* 800055B8 000016B8 7C 51 42 A6 */ mfspr r2, 273
/* 800055BC 000016BC 7C 51 43 A6 */ mtspr 273, r2
/* 800055C0 000016C0 7C 72 43 A6 */ mtspr 274, r3
/* 800055C4 000016C4 7C 93 43 A6 */ mtspr 275, r4
/* 800055C8 000016C8 7C 5A 02 A6 */ mfspr r2, 26
/* 800055CC 000016CC 7C 9B 02 A6 */ mfspr r4, 27
/* 800055B8 000016B8 7C 51 42 A6 */ mfsprg r2, 1
/* 800055BC 000016BC 7C 51 43 A6 */ mtsprg 1, r2
/* 800055C0 000016C0 7C 72 43 A6 */ mtsprg 2, r3
/* 800055C4 000016C4 7C 93 43 A6 */ mtsprg 3, r4
/* 800055C8 000016C8 7C 5A 02 A6 */ mfsrr0 r2
/* 800055CC 000016CC 7C 9B 02 A6 */ mfsrr1 r4
/* 800055D0 000016D0 7C 60 00 A6 */ mfmsr r3
/* 800055D4 000016D4 60 63 00 30 */ ori r3, r3, 0x30
/* 800055D8 000016D8 7C 7B 03 A6 */ mtspr 27, r3
/* 800055DC 000016DC 3C 60 80 01 */ lis r3, func_800190A0@h
/* 800055E0 000016E0 60 63 90 A0 */ ori r3, r3, func_800190A0@l
/* 800055E4 000016E4 7C 7A 03 A6 */ mtspr 26, r3
/* 800055D8 000016D8 7C 7B 03 A6 */ mtsrr1 r3
/* 800055DC 000016DC 3C 60 80 01 */ lis r3, lbl_800190A0@h
/* 800055E0 000016E0 60 63 90 A0 */ ori r3, r3, lbl_800190A0@l
/* 800055E4 000016E4 7C 7A 03 A6 */ mtsrr0 r3
/* 800055E8 000016E8 38 60 12 00 */ li r3, 0x1200
/* 800055EC 000016EC 4C 00 00 64 */ rfi
/* 800055F0 000016F0 00 00 00 00 */ .4byte 0x00000000
@ -1492,17 +1488,17 @@ lbl_800055B0:
/* 80005674 00001774 00 00 00 00 */ .4byte 0x00000000
/* 80005678 00001778 00 00 00 00 */ .4byte 0x00000000
/* 8000567C 0000177C 00 00 00 00 */ .4byte 0x00000000
/* 80005680 00001780 7C 51 43 A6 */ mtspr 273, r2
/* 80005684 00001784 7C 72 43 A6 */ mtspr 274, r3
/* 80005688 00001788 7C 93 43 A6 */ mtspr 275, r4
/* 8000568C 0000178C 7C 5A 02 A6 */ mfspr r2, 26
/* 80005690 00001790 7C 9B 02 A6 */ mfspr r4, 27
/* 80005680 00001780 7C 51 43 A6 */ mtsprg 1, r2
/* 80005684 00001784 7C 72 43 A6 */ mtsprg 2, r3
/* 80005688 00001788 7C 93 43 A6 */ mtsprg 3, r4
/* 8000568C 0000178C 7C 5A 02 A6 */ mfsrr0 r2
/* 80005690 00001790 7C 9B 02 A6 */ mfsrr1 r4
/* 80005694 00001794 7C 60 00 A6 */ mfmsr r3
/* 80005698 00001798 60 63 00 30 */ ori r3, r3, 0x30
/* 8000569C 0000179C 7C 7B 03 A6 */ mtspr 27, r3
/* 800056A0 000017A0 3C 60 80 01 */ lis r3, func_800190A0@h
/* 800056A4 000017A4 60 63 90 A0 */ ori r3, r3, func_800190A0@l
/* 800056A8 000017A8 7C 7A 03 A6 */ mtspr 26, r3
/* 8000569C 0000179C 7C 7B 03 A6 */ mtsrr1 r3
/* 800056A0 000017A0 3C 60 80 01 */ lis r3, lbl_800190A0@h
/* 800056A4 000017A4 60 63 90 A0 */ ori r3, r3, lbl_800190A0@l
/* 800056A8 000017A8 7C 7A 03 A6 */ mtsrr0 r3
/* 800056AC 000017AC 38 60 13 00 */ li r3, 0x1300
/* 800056B0 000017B0 4C 00 00 64 */ rfi
/* 800056B4 000017B4 00 00 00 00 */ .4byte 0x00000000
@ -1556,17 +1552,17 @@ lbl_800055B0:
/* 80005774 00001874 00 00 00 00 */ .4byte 0x00000000
/* 80005778 00001878 00 00 00 00 */ .4byte 0x00000000
/* 8000577C 0000187C 00 00 00 00 */ .4byte 0x00000000
/* 80005780 00001880 7C 51 43 A6 */ mtspr 273, r2
/* 80005784 00001884 7C 72 43 A6 */ mtspr 274, r3
/* 80005788 00001888 7C 93 43 A6 */ mtspr 275, r4
/* 8000578C 0000188C 7C 5A 02 A6 */ mfspr r2, 26
/* 80005790 00001890 7C 9B 02 A6 */ mfspr r4, 27
/* 80005780 00001880 7C 51 43 A6 */ mtsprg 1, r2
/* 80005784 00001884 7C 72 43 A6 */ mtsprg 2, r3
/* 80005788 00001888 7C 93 43 A6 */ mtsprg 3, r4
/* 8000578C 0000188C 7C 5A 02 A6 */ mfsrr0 r2
/* 80005790 00001890 7C 9B 02 A6 */ mfsrr1 r4
/* 80005794 00001894 7C 60 00 A6 */ mfmsr r3
/* 80005798 00001898 60 63 00 30 */ ori r3, r3, 0x30
/* 8000579C 0000189C 7C 7B 03 A6 */ mtspr 27, r3
/* 800057A0 000018A0 3C 60 80 01 */ lis r3, func_800190A0@h
/* 800057A4 000018A4 60 63 90 A0 */ ori r3, r3, func_800190A0@l
/* 800057A8 000018A8 7C 7A 03 A6 */ mtspr 26, r3
/* 8000579C 0000189C 7C 7B 03 A6 */ mtsrr1 r3
/* 800057A0 000018A0 3C 60 80 01 */ lis r3, lbl_800190A0@h
/* 800057A4 000018A4 60 63 90 A0 */ ori r3, r3, lbl_800190A0@l
/* 800057A8 000018A8 7C 7A 03 A6 */ mtsrr0 r3
/* 800057AC 000018AC 38 60 14 00 */ li r3, 0x1400
/* 800057B0 000018B0 4C 00 00 64 */ rfi
/* 800057B4 000018B4 00 00 00 00 */ .4byte 0x00000000
@ -1684,17 +1680,17 @@ lbl_800055B0:
/* 80005974 00001A74 00 00 00 00 */ .4byte 0x00000000
/* 80005978 00001A78 00 00 00 00 */ .4byte 0x00000000
/* 8000597C 00001A7C 00 00 00 00 */ .4byte 0x00000000
/* 80005980 00001A80 7C 51 43 A6 */ mtspr 273, r2
/* 80005984 00001A84 7C 72 43 A6 */ mtspr 274, r3
/* 80005988 00001A88 7C 93 43 A6 */ mtspr 275, r4
/* 8000598C 00001A8C 7C 5A 02 A6 */ mfspr r2, 26
/* 80005990 00001A90 7C 9B 02 A6 */ mfspr r4, 27
/* 80005980 00001A80 7C 51 43 A6 */ mtsprg 1, r2
/* 80005984 00001A84 7C 72 43 A6 */ mtsprg 2, r3
/* 80005988 00001A88 7C 93 43 A6 */ mtsprg 3, r4
/* 8000598C 00001A8C 7C 5A 02 A6 */ mfsrr0 r2
/* 80005990 00001A90 7C 9B 02 A6 */ mfsrr1 r4
/* 80005994 00001A94 7C 60 00 A6 */ mfmsr r3
/* 80005998 00001A98 60 63 00 30 */ ori r3, r3, 0x30
/* 8000599C 00001A9C 7C 7B 03 A6 */ mtspr 27, r3
/* 800059A0 00001AA0 3C 60 80 01 */ lis r3, func_800190A0@h
/* 800059A4 00001AA4 60 63 90 A0 */ ori r3, r3, func_800190A0@l
/* 800059A8 00001AA8 7C 7A 03 A6 */ mtspr 26, r3
/* 8000599C 00001A9C 7C 7B 03 A6 */ mtsrr1 r3
/* 800059A0 00001AA0 3C 60 80 01 */ lis r3, lbl_800190A0@h
/* 800059A4 00001AA4 60 63 90 A0 */ ori r3, r3, lbl_800190A0@l
/* 800059A8 00001AA8 7C 7A 03 A6 */ mtsrr0 r3
/* 800059AC 00001AAC 38 60 16 00 */ li r3, 0x1600
/* 800059B0 00001AB0 4C 00 00 64 */ rfi
/* 800059B4 00001AB4 00 00 00 00 */ .4byte 0x00000000
@ -1748,17 +1744,17 @@ lbl_800055B0:
/* 80005A74 00001B74 00 00 00 00 */ .4byte 0x00000000
/* 80005A78 00001B78 00 00 00 00 */ .4byte 0x00000000
/* 80005A7C 00001B7C 00 00 00 00 */ .4byte 0x00000000
/* 80005A80 00001B80 7C 51 43 A6 */ mtspr 273, r2
/* 80005A84 00001B84 7C 72 43 A6 */ mtspr 274, r3
/* 80005A88 00001B88 7C 93 43 A6 */ mtspr 275, r4
/* 80005A8C 00001B8C 7C 5A 02 A6 */ mfspr r2, 26
/* 80005A90 00001B90 7C 9B 02 A6 */ mfspr r4, 27
/* 80005A80 00001B80 7C 51 43 A6 */ mtsprg 1, r2
/* 80005A84 00001B84 7C 72 43 A6 */ mtsprg 2, r3
/* 80005A88 00001B88 7C 93 43 A6 */ mtsprg 3, r4
/* 80005A8C 00001B8C 7C 5A 02 A6 */ mfsrr0 r2
/* 80005A90 00001B90 7C 9B 02 A6 */ mfsrr1 r4
/* 80005A94 00001B94 7C 60 00 A6 */ mfmsr r3
/* 80005A98 00001B98 60 63 00 30 */ ori r3, r3, 0x30
/* 80005A9C 00001B9C 7C 7B 03 A6 */ mtspr 27, r3
/* 80005AA0 00001BA0 3C 60 80 01 */ lis r3, func_800190A0@h
/* 80005AA4 00001BA4 60 63 90 A0 */ ori r3, r3, func_800190A0@l
/* 80005AA8 00001BA8 7C 7A 03 A6 */ mtspr 26, r3
/* 80005A9C 00001B9C 7C 7B 03 A6 */ mtsrr1 r3
/* 80005AA0 00001BA0 3C 60 80 01 */ lis r3, lbl_800190A0@h
/* 80005AA4 00001BA4 60 63 90 A0 */ ori r3, r3, lbl_800190A0@l
/* 80005AA8 00001BA8 7C 7A 03 A6 */ mtsrr0 r3
/* 80005AAC 00001BAC 38 60 17 00 */ li r3, 0x1700
/* 80005AB0 00001BB0 4C 00 00 64 */ rfi
/* 80005AB4 00001BB4 00 00 00 00 */ .4byte 0x00000000
@ -2068,17 +2064,17 @@ lbl_800055B0:
/* 80005F74 00002074 00 00 00 00 */ .4byte 0x00000000
/* 80005F78 00002078 00 00 00 00 */ .4byte 0x00000000
/* 80005F7C 0000207C 00 00 00 00 */ .4byte 0x00000000
/* 80005F80 00002080 7C 51 43 A6 */ mtspr 273, r2
/* 80005F84 00002084 7C 72 43 A6 */ mtspr 274, r3
/* 80005F88 00002088 7C 93 43 A6 */ mtspr 275, r4
/* 80005F8C 0000208C 7C 5A 02 A6 */ mfspr r2, 26
/* 80005F90 00002090 7C 9B 02 A6 */ mfspr r4, 27
/* 80005F80 00002080 7C 51 43 A6 */ mtsprg 1, r2
/* 80005F84 00002084 7C 72 43 A6 */ mtsprg 2, r3
/* 80005F88 00002088 7C 93 43 A6 */ mtsprg 3, r4
/* 80005F8C 0000208C 7C 5A 02 A6 */ mfsrr0 r2
/* 80005F90 00002090 7C 9B 02 A6 */ mfsrr1 r4
/* 80005F94 00002094 7C 60 00 A6 */ mfmsr r3
/* 80005F98 00002098 60 63 00 30 */ ori r3, r3, 0x30
/* 80005F9C 0000209C 7C 7B 03 A6 */ mtspr 27, r3
/* 80005FA0 000020A0 3C 60 80 01 */ lis r3, func_800190A0@h
/* 80005FA4 000020A4 60 63 90 A0 */ ori r3, r3, func_800190A0@l
/* 80005FA8 000020A8 7C 7A 03 A6 */ mtspr 26, r3
/* 80005F9C 0000209C 7C 7B 03 A6 */ mtsrr1 r3
/* 80005FA0 000020A0 3C 60 80 01 */ lis r3, lbl_800190A0@h
/* 80005FA4 000020A4 60 63 90 A0 */ ori r3, r3, lbl_800190A0@l
/* 80005FA8 000020A8 7C 7A 03 A6 */ mtsrr0 r3
/* 80005FAC 000020AC 38 60 1C 00 */ li r3, 0x1c00
/* 80005FB0 000020B0 4C 00 00 64 */ rfi
/* 80005FB4 000020B4 00 00 00 00 */ .4byte 0x00000000
@ -2132,17 +2128,17 @@ lbl_800055B0:
/* 80006074 00002174 00 00 00 00 */ .4byte 0x00000000
/* 80006078 00002178 00 00 00 00 */ .4byte 0x00000000
/* 8000607C 0000217C 00 00 00 00 */ .4byte 0x00000000
/* 80006080 00002180 7C 51 43 A6 */ mtspr 273, r2
/* 80006084 00002184 7C 72 43 A6 */ mtspr 274, r3
/* 80006088 00002188 7C 93 43 A6 */ mtspr 275, r4
/* 8000608C 0000218C 7C 5A 02 A6 */ mfspr r2, 26
/* 80006090 00002190 7C 9B 02 A6 */ mfspr r4, 27
/* 80006080 00002180 7C 51 43 A6 */ mtsprg 1, r2
/* 80006084 00002184 7C 72 43 A6 */ mtsprg 2, r3
/* 80006088 00002188 7C 93 43 A6 */ mtsprg 3, r4
/* 8000608C 0000218C 7C 5A 02 A6 */ mfsrr0 r2
/* 80006090 00002190 7C 9B 02 A6 */ mfsrr1 r4
/* 80006094 00002194 7C 60 00 A6 */ mfmsr r3
/* 80006098 00002198 60 63 00 30 */ ori r3, r3, 0x30
/* 8000609C 0000219C 7C 7B 03 A6 */ mtspr 27, r3
/* 800060A0 000021A0 3C 60 80 01 */ lis r3, func_800190A0@h
/* 800060A4 000021A4 60 63 90 A0 */ ori r3, r3, func_800190A0@l
/* 800060A8 000021A8 7C 7A 03 A6 */ mtspr 26, r3
/* 8000609C 0000219C 7C 7B 03 A6 */ mtsrr1 r3
/* 800060A0 000021A0 3C 60 80 01 */ lis r3, lbl_800190A0@h
/* 800060A4 000021A4 60 63 90 A0 */ ori r3, r3, lbl_800190A0@l
/* 800060A8 000021A8 7C 7A 03 A6 */ mtsrr0 r3
/* 800060AC 000021AC 38 60 1D 00 */ li r3, 0x1d00
/* 800060B0 000021B0 4C 00 00 64 */ rfi
/* 800060B4 000021B4 00 00 00 00 */ .4byte 0x00000000
@ -2196,17 +2192,17 @@ lbl_800055B0:
/* 80006174 00002274 00 00 00 00 */ .4byte 0x00000000
/* 80006178 00002278 00 00 00 00 */ .4byte 0x00000000
/* 8000617C 0000227C 00 00 00 00 */ .4byte 0x00000000
/* 80006180 00002280 7C 51 43 A6 */ mtspr 273, r2
/* 80006184 00002284 7C 72 43 A6 */ mtspr 274, r3
/* 80006188 00002288 7C 93 43 A6 */ mtspr 275, r4
/* 8000618C 0000228C 7C 5A 02 A6 */ mfspr r2, 26
/* 80006190 00002290 7C 9B 02 A6 */ mfspr r4, 27
/* 80006180 00002280 7C 51 43 A6 */ mtsprg 1, r2
/* 80006184 00002284 7C 72 43 A6 */ mtsprg 2, r3
/* 80006188 00002288 7C 93 43 A6 */ mtsprg 3, r4
/* 8000618C 0000228C 7C 5A 02 A6 */ mfsrr0 r2
/* 80006190 00002290 7C 9B 02 A6 */ mfsrr1 r4
/* 80006194 00002294 7C 60 00 A6 */ mfmsr r3
/* 80006198 00002298 60 63 00 30 */ ori r3, r3, 0x30
/* 8000619C 0000229C 7C 7B 03 A6 */ mtspr 27, r3
/* 800061A0 000022A0 3C 60 80 01 */ lis r3, func_800190A0@h
/* 800061A4 000022A4 60 63 90 A0 */ ori r3, r3, func_800190A0@l
/* 800061A8 000022A8 7C 7A 03 A6 */ mtspr 26, r3
/* 8000619C 0000229C 7C 7B 03 A6 */ mtsrr1 r3
/* 800061A0 000022A0 3C 60 80 01 */ lis r3, lbl_800190A0@h
/* 800061A4 000022A4 60 63 90 A0 */ ori r3, r3, lbl_800190A0@l
/* 800061A8 000022A8 7C 7A 03 A6 */ mtsrr0 r3
/* 800061AC 000022AC 38 60 1E 00 */ li r3, 0x1e00
/* 800061B0 000022B0 4C 00 00 64 */ rfi
/* 800061B4 000022B4 00 00 00 00 */ .4byte 0x00000000
@ -2260,25 +2256,23 @@ lbl_800055B0:
/* 80006274 00002374 00 00 00 00 */ .4byte 0x00000000
/* 80006278 00002378 00 00 00 00 */ .4byte 0x00000000
/* 8000627C 0000237C 00 00 00 00 */ .4byte 0x00000000
/* 80006280 00002380 7C 51 43 A6 */ mtspr 273, r2
/* 80006284 00002384 7C 72 43 A6 */ mtspr 274, r3
/* 80006288 00002388 7C 93 43 A6 */ mtspr 275, r4
/* 8000628C 0000238C 7C 5A 02 A6 */ mfspr r2, 26
/* 80006290 00002390 7C 9B 02 A6 */ mfspr r4, 27
/* 80006280 00002380 7C 51 43 A6 */ mtsprg 1, r2
/* 80006284 00002384 7C 72 43 A6 */ mtsprg 2, r3
/* 80006288 00002388 7C 93 43 A6 */ mtsprg 3, r4
/* 8000628C 0000238C 7C 5A 02 A6 */ mfsrr0 r2
/* 80006290 00002390 7C 9B 02 A6 */ mfsrr1 r4
/* 80006294 00002394 7C 60 00 A6 */ mfmsr r3
/* 80006298 00002398 60 63 00 30 */ ori r3, r3, 0x30
/* 8000629C 0000239C 7C 7B 03 A6 */ mtspr 27, r3
/* 800062A0 000023A0 3C 60 80 01 */ lis r3, func_800190A0@h
/* 800062A4 000023A4 60 63 90 A0 */ ori r3, r3, func_800190A0@l
/* 800062A8 000023A8 7C 7A 03 A6 */ mtspr 26, r3
/* 8000629C 0000239C 7C 7B 03 A6 */ mtsrr1 r3
/* 800062A0 000023A0 3C 60 80 01 */ lis r3, lbl_800190A0@h
/* 800062A4 000023A4 60 63 90 A0 */ ori r3, r3, lbl_800190A0@l
/* 800062A8 000023A8 7C 7A 03 A6 */ mtsrr0 r3
/* 800062AC 000023AC 38 60 1F 00 */ li r3, 0x1f00
/* 800062B0 000023B0 4C 00 00 64 */ rfi
/* 800062B4 000023B4 00 00 00 00 */ .4byte 0x00000000
/* 800062B8 000023B8 00 00 00 00 */ .4byte 0x00000000
/* 800062BC 000023BC 00 00 00 00 */ .4byte 0x00000000
.global func_800062C0
func_800062C0:
lbl_800062C0:
/* 800062C0 000023C0 3C 60 80 00 */ lis r3, 0x800030E4@ha
/* 800062C4 000023C4 A0 03 30 E4 */ lhz r0, 0x800030E4@l(r3)
/* 800062C8 000023C8 70 00 0E EF */ andi. r0, r0, 0xeef
@ -2291,16 +2285,12 @@ func_800062C0:
/* 800062E4 000023E4 4E 80 00 20 */ blr
/* 800062E8 000023E8 00 00 00 00 */ .4byte 0x00000000
/* 800062EC 000023EC 00 00 00 00 */ .4byte 0x00000000
.global func_800062F0
func_800062F0:
lbl_800062F0:
/* 800062F0 000023F0 38 00 00 01 */ li r0, 0x1
/* 800062F4 000023F4 98 0D E4 58 */ stb r0, -0x1ba8(r13)
/* 800062F8 000023F8 4E 80 00 20 */ blr
/* 800062FC 000023FC 00 00 00 00 */ .4byte 0x00000000
.global func_80006300
func_80006300:
lbl_80006300:
/* 80006300 00002400 88 6D E4 58 */ lbz r3, -0x1ba8(r13)
/* 80006304 00002404 4E 80 00 20 */ blr
/* 80006308 00002408 00 00 00 00 */ .4byte 0x00000000
@ -2308,9 +2298,9 @@ func_80006300:
.global __start
__start:
/* 80006310 00002410 48 00 01 C1 */ bl func_800064D0
/* 80006314 00002414 48 00 02 4D */ bl func_80006560
/* 80006318 00002418 48 00 03 09 */ bl func_80006620
/* 80006310 00002410 48 00 01 C1 */ bl lbl_800064D0
/* 80006314 00002414 48 00 02 4D */ bl lbl_80006560
/* 80006318 00002418 48 00 03 09 */ bl lbl_80006620
/* 8000631C 0000241C 38 00 FF FF */ li r0, -0x1
/* 80006320 00002420 94 21 FF F8 */ stwu r1, -0x8(r1)
/* 80006324 00002424 90 01 00 04 */ stw r0, 0x4(r1)
@ -2325,19 +2315,17 @@ __start:
/* 80006348 00002448 28 06 00 00 */ cmplwi r6, 0x0
/* 8000634C 0000244C 41 82 00 0C */ beq lbl_80006358
/* 80006350 00002450 80 E6 00 0C */ lwz r7, 0xc(r6)
/* 80006354 00002454 48 00 00 24 */ b func_80006378
/* 80006354 00002454 48 00 00 24 */ b lbl_80006378
lbl_80006358:
/* 80006358 00002458 3C A0 80 00 */ lis r5, 0x80000034@ha
/* 8000635C 0000245C 38 A5 00 34 */ addi r5, r5, 0x80000034@l
/* 80006360 00002460 80 A5 00 00 */ lwz r5, 0x0(r5)
/* 80006364 00002464 28 05 00 00 */ cmplwi r5, 0x0
/* 80006368 00002468 41 82 00 4C */ beq func_800063B4
/* 80006368 00002468 41 82 00 4C */ beq lbl_800063B4
/* 8000636C 0000246C 3C E0 80 00 */ lis r7, 0x800030E8@ha
/* 80006370 00002470 38 E7 30 E8 */ addi r7, r7, 0x800030E8@l
/* 80006374 00002474 80 E7 00 00 */ lwz r7, 0x0(r7)
.global func_80006378
func_80006378:
lbl_80006378:
/* 80006378 00002478 38 A0 00 00 */ li r5, 0x0
/* 8000637C 0000247C 28 07 00 02 */ cmplwi r7, 0x2
/* 80006380 00002480 41 82 00 24 */ beq lbl_800063A4
@ -2345,26 +2333,24 @@ func_80006378:
/* 80006388 00002488 38 A0 00 01 */ li r5, 0x1
/* 8000638C 0000248C 41 82 00 18 */ beq lbl_800063A4
/* 80006390 00002490 28 07 00 04 */ cmplwi r7, 0x4
/* 80006394 00002494 40 82 00 20 */ bne func_800063B4
/* 80006394 00002494 40 82 00 20 */ bne lbl_800063B4
/* 80006398 00002498 38 A0 00 02 */ li r5, 0x2
/* 8000639C 0000249C 4B FF FF 55 */ bl func_800062F0
/* 800063A0 000024A0 48 00 00 14 */ b func_800063B4
/* 8000639C 0000249C 4B FF FF 55 */ bl lbl_800062F0
/* 800063A0 000024A0 48 00 00 14 */ b lbl_800063B4
lbl_800063A4:
/* 800063A4 000024A4 3C C0 80 01 */ lis r6, lbl_80015A14@ha
/* 800063A8 000024A8 38 C6 5A 14 */ addi r6, r6, lbl_80015A14@l
/* 800063AC 000024AC 7C C8 03 A6 */ mtlr r6
/* 800063B0 000024B0 4E 80 00 21 */ blrl
.global func_800063B4
func_800063B4:
lbl_800063B4:
/* 800063B4 000024B4 3C C0 80 00 */ lis r6, 0x800000F4@ha
/* 800063B8 000024B8 38 C6 00 F4 */ addi r6, r6, 0x800000F4@l
/* 800063BC 000024BC 80 A6 00 00 */ lwz r5, 0x0(r6)
/* 800063C0 000024C0 28 05 00 00 */ cmplwi r5, 0x0
/* 800063C4 000024C4 41 A2 00 60 */ bc 13, 2, lbl_80006424
/* 800063C4 000024C4 41 A2 00 60 */ beq+ lbl_80006424
/* 800063C8 000024C8 80 C5 00 08 */ lwz r6, 0x8(r5)
/* 800063CC 000024CC 28 06 00 00 */ cmplwi r6, 0x0
/* 800063D0 000024D0 41 A2 00 54 */ bc 13, 2, lbl_80006424
/* 800063D0 000024D0 41 A2 00 54 */ beq+ lbl_80006424
/* 800063D4 000024D4 7C C5 32 14 */ add r6, r5, r6
/* 800063D8 000024D8 81 C6 00 00 */ lwz r14, 0x0(r6)
/* 800063DC 000024DC 28 0E 00 00 */ cmplwi r14, 0x0
@ -2379,19 +2365,17 @@ lbl_800063EC:
/* 800063FC 000024FC 42 00 FF F0 */ bdnz lbl_800063EC
/* 80006400 00002500 3C A0 80 00 */ lis r5, 0x80000034@ha
/* 80006404 00002504 38 A5 00 34 */ addi r5, r5, 0x80000034@l
/* 80006408 00002508 55 E7 00 34 */ rlwinm r7, r15, 0, 0, 26
/* 80006408 00002508 55 E7 00 34 */ clrrwi r7, r15, 5
/* 8000640C 0000250C 90 E5 00 00 */ stw r7, 0x0(r5)
/* 80006410 00002510 3C A0 80 00 */ lis r5, 0x80003110@ha
/* 80006414 00002514 38 A5 31 10 */ addi r5, r5, 0x80003110@l
/* 80006418 00002518 55 E7 00 34 */ rlwinm r7, r15, 0, 0, 26
/* 80006418 00002518 55 E7 00 34 */ clrrwi r7, r15, 5
/* 8000641C 0000251C 90 E5 00 00 */ stw r7, 0x0(r5)
/* 80006420 00002520 48 00 00 0C */ b func_8000642C
/* 80006420 00002520 48 00 00 0C */ b lbl_8000642C
lbl_80006424:
/* 80006424 00002524 39 C0 00 00 */ li r14, 0x0
/* 80006428 00002528 39 E0 00 00 */ li r15, 0x0
.global func_8000642C
func_8000642C:
lbl_8000642C:
/* 8000642C 0000252C 48 01 49 55 */ bl func_8001AD80
/* 80006430 00002530 3C 80 80 00 */ lis r4, 0x800030E6@ha
/* 80006434 00002534 38 84 30 E6 */ addi r4, r4, 0x800030E6@l
@ -2402,9 +2386,9 @@ func_8000642C:
/* 80006448 00002548 28 03 00 01 */ cmplwi r3, 0x1
/* 8000644C 0000254C 40 82 00 08 */ bne lbl_80006454
lbl_80006450:
/* 80006450 00002550 4B FF FE 71 */ bl func_800062C0
/* 80006450 00002550 4B FF FE 71 */ bl lbl_800062C0
lbl_80006454:
/* 80006454 00002554 4B FF FE AD */ bl func_80006300
/* 80006454 00002554 4B FF FE AD */ bl lbl_80006300
/* 80006458 00002558 28 03 00 01 */ cmplwi r3, 0x1
/* 8000645C 0000255C 40 82 00 08 */ bne lbl_80006464
/* 80006460 00002560 48 00 F6 4D */ bl func_80015AAC
@ -2416,9 +2400,7 @@ lbl_80006464:
/* 80006474 00002574 48 02 21 2C */ b func_800285A0
/* 80006478 00002578 00 00 00 00 */ .4byte 0x00000000
/* 8000647C 0000257C 00 00 00 00 */ .4byte 0x00000000
.global func_80006480
func_80006480:
lbl_80006480:
/* 80006480 00002580 28 04 00 00 */ cmplwi r4, 0x0
/* 80006484 00002584 4C 81 00 20 */ blelr
/* 80006488 00002588 54 65 06 FE */ clrlwi r5, r3, 27
@ -2430,19 +2412,17 @@ lbl_8000649C:
/* 8000649C 0000259C 7C 00 18 AC */ dcbf r0, r3
/* 800064A0 000025A0 38 63 00 20 */ addi r3, r3, 0x20
/* 800064A4 000025A4 42 00 FF F8 */ bdnz lbl_8000649C
/* 800064A8 000025A8 7C D0 FA A6 */ mfspr r6, 1008
/* 800064A8 000025A8 7C D0 FA A6 */ mfspr r6, HID0
/* 800064AC 000025AC 60 C7 00 08 */ ori r7, r6, 0x8
/* 800064B0 000025B0 7C F0 FB A6 */ mtspr 1008, r7
/* 800064B0 000025B0 7C F0 FB A6 */ mtspr HID0, r7
/* 800064B4 000025B4 4C 00 01 2C */ isync
/* 800064B8 000025B8 7C 00 04 AC */ sync
/* 800064BC 000025BC 7C D0 FB A6 */ mtspr 1008, r6
/* 800064BC 000025BC 7C D0 FB A6 */ mtspr HID0, r6
/* 800064C0 000025C0 4E 80 00 20 */ blr
/* 800064C4 000025C4 00 00 00 00 */ .4byte 0x00000000
/* 800064C8 000025C8 00 00 00 00 */ .4byte 0x00000000
/* 800064CC 000025CC 00 00 00 00 */ .4byte 0x00000000
.global func_800064D0
func_800064D0:
lbl_800064D0:
/* 800064D0 000025D0 38 00 00 00 */ li r0, 0x0
/* 800064D4 000025D4 38 60 00 00 */ li r3, 0x0
/* 800064D8 000025D8 38 80 00 00 */ li r4, 0x0
@ -2479,9 +2459,7 @@ func_800064D0:
/* 80006554 00002654 3D A0 80 55 */ lis r13, lbl_8055E420@h
/* 80006558 00002658 61 AD E4 20 */ ori r13, r13, lbl_8055E420@l
/* 8000655C 0000265C 4E 80 00 20 */ blr
.global func_80006560
func_80006560:
lbl_80006560:
/* 80006560 00002660 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80006564 00002664 7C 08 02 A6 */ mflr r0
/* 80006568 00002668 90 01 00 24 */ stw r0, 0x24(r1)
@ -2490,9 +2468,7 @@ func_80006560:
/* 80006574 00002674 93 A1 00 14 */ stw r29, 0x14(r1)
/* 80006578 00002678 3F A0 80 00 */ lis r29, lbl_80006684@ha
/* 8000657C 0000267C 3B BD 66 84 */ addi r29, r29, lbl_80006684@l
.global func_80006580
func_80006580:
lbl_80006580:
/* 80006580 00002680 83 DD 00 08 */ lwz r30, 0x8(r29)
/* 80006584 00002684 2C 1E 00 00 */ cmpwi r30, 0x0
/* 80006588 00002688 41 82 00 38 */ beq lbl_800065C0
@ -2506,16 +2482,14 @@ func_80006580:
/* 800065A8 000026A8 4B FF DA 59 */ bl func_80004000
/* 800065AC 000026AC 7F E3 FB 78 */ mr r3, r31
/* 800065B0 000026B0 7F C4 F3 78 */ mr r4, r30
/* 800065B4 000026B4 48 00 00 9D */ bl func_80006650
/* 800065B4 000026B4 48 00 00 9D */ bl lbl_80006650
lbl_800065B8:
/* 800065B8 000026B8 3B BD 00 0C */ addi r29, r29, 0xc
/* 800065BC 000026BC 4B FF FF C4 */ b func_80006580
/* 800065BC 000026BC 4B FF FF C4 */ b lbl_80006580
lbl_800065C0:
/* 800065C0 000026C0 3F A0 80 00 */ lis r29, lbl_80006708@ha
/* 800065C4 000026C4 3B BD 67 08 */ addi r29, r29, lbl_80006708@l
.global func_800065C8
func_800065C8:
lbl_800065C8:
/* 800065C8 000026C8 83 DD 00 04 */ lwz r30, 0x4(r29)
/* 800065CC 000026CC 2C 1E 00 00 */ cmpwi r30, 0x0
/* 800065D0 000026D0 41 82 00 30 */ beq lbl_80006600
@ -2527,10 +2501,10 @@ func_800065C8:
/* 800065E8 000026E8 4B FF DD 69 */ bl func_80004350
/* 800065EC 000026EC 7F E3 FB 78 */ mr r3, r31
/* 800065F0 000026F0 7F C4 F3 78 */ mr r4, r30
/* 800065F4 000026F4 4B FF FE 8D */ bl func_80006480
/* 800065F4 000026F4 4B FF FE 8D */ bl lbl_80006480
lbl_800065F8:
/* 800065F8 000026F8 3B BD 00 08 */ addi r29, r29, 0x8
/* 800065FC 000026FC 4B FF FF CC */ b func_800065C8
/* 800065FC 000026FC 4B FF FF CC */ b lbl_800065C8
lbl_80006600:
/* 80006600 00002700 80 01 00 24 */ lwz r0, 0x24(r1)
/* 80006604 00002704 83 E1 00 1C */ lwz r31, 0x1c(r1)
@ -2540,9 +2514,7 @@ lbl_80006600:
/* 80006614 00002714 38 21 00 20 */ addi r1, r1, 0x20
/* 80006618 00002718 4E 80 00 20 */ blr
/* 8000661C 0000271C 00 00 00 00 */ .4byte 0x00000000
.global func_80006620
func_80006620:
lbl_80006620:
/* 80006620 00002720 7C 00 00 A6 */ mfmsr r0
/* 80006624 00002724 60 00 20 00 */ ori r0, r0, 0x2000
/* 80006628 00002728 7C 00 01 24 */ mtmsr r0
@ -2555,9 +2527,7 @@ func_80006620:
/* 80006644 00002744 00 00 00 00 */ .4byte 0x00000000
/* 80006648 00002748 00 00 00 00 */ .4byte 0x00000000
/* 8000664C 0000274C 00 00 00 00 */ .4byte 0x00000000
.global func_80006650
func_80006650:
lbl_80006650:
/* 80006650 00002750 3C A0 FF FF */ lis r5, 0xFFFFFFF1@h
/* 80006654 00002754 60 A5 FF F1 */ ori r5, r5, 0xFFFFFFF1@l
/* 80006658 00002758 7C A5 18 38 */ and r5, r5, r3

File diff suppressed because it is too large Load diff

View file

@ -1,4 +1,4 @@
.include "macros.inc"
.include "macros.s"
.section .sbss, "", @nobits # 0x8055C6E0 - 0x8055DF80 ; 0x000018A0

View file

@ -1,4 +1,4 @@
.include "macros.inc"
.include "macros.s"
.section .sbss2, "", @nobits # 0x805643C0 - 0x805643FC ; 0x0000003C

File diff suppressed because it is too large Load diff

View file

@ -1,4 +1,4 @@
.include "macros.inc"
.include "macros.s"
.section .sdata2, "wa" # 0x8055DF80 - 0x805643C0 ; 0x00006440
@ -26,8 +26,8 @@ lbl_8055DF8C:
lbl_8055DF90:
# ROM: 0x498AD0
.asciz "AM|PM"
.balign 4
.4byte 0x414D7C50
.4byte 0x4D000000
.global lbl_8055DF98
lbl_8055DF98:
@ -1887,8 +1887,8 @@ lbl_8055E6F8:
lbl_8055E700:
# ROM: 0x499240
.asciz "?s33"
.balign 4
.4byte 0x3F733333
.4byte 0
.global lbl_8055E708
lbl_8055E708:
@ -6584,8 +6584,8 @@ lbl_8055F64C:
lbl_8055F650:
# ROM: 0x49A190
.asciz ":MSG:"
.balign 4
.4byte 0x3A4D5347
.4byte 0x3A000000
.global lbl_8055F658
lbl_8055F658:
@ -13970,8 +13970,8 @@ lbl_80560DFC:
lbl_80560E00:
# ROM: 0x49B940
.asciz "?fff"
.balign 4
.4byte 0x3F666666
.4byte 0
.global lbl_80560E08
lbl_80560E08:
@ -14191,7 +14191,7 @@ lbl_80560EA0:
lbl_80560EA4:
# ROM: 0x49B9E4
.4byte func_8029174C
.4byte lbl_8029174C
.global lbl_80560EA8
lbl_80560EA8:
@ -15921,8 +15921,8 @@ lbl_80561388:
lbl_80561390:
# ROM: 0x49BED0
.asciz "?s33"
.balign 4
.4byte 0x3F733333
.4byte 0
.global lbl_80561398
lbl_80561398:
@ -17286,8 +17286,8 @@ lbl_8056179C:
lbl_805617A0:
# ROM: 0x49C2E0
.asciz "?333"
.balign 4
.4byte 0x3F333333
.4byte 0
.global lbl_805617A8
lbl_805617A8:
@ -19918,8 +19918,8 @@ lbl_80561F9C:
lbl_80561FA0:
# ROM: 0x49CAE0
.asciz "?333"
.balign 4
.4byte 0x3F333333
.4byte 0
.global lbl_80561FA8
lbl_80561FA8:
@ -20931,8 +20931,8 @@ lbl_805622B0:
lbl_805622B8:
# ROM: 0x49CDF8
.asciz "?s33"
.balign 4
.4byte 0x3F733333
.4byte 0
.global lbl_805622C0
lbl_805622C0:
@ -21592,8 +21592,8 @@ lbl_805624A8:
lbl_805624B0:
# ROM: 0x49CFF0
.asciz "?fff"
.balign 4
.4byte 0x3F666666
.4byte 0
.global lbl_805624B8
lbl_805624B8:
@ -24860,8 +24860,8 @@ lbl_80562EA4:
lbl_80562EA8:
# ROM: 0x49D9E8
.asciz ">fff"
.balign 4
.4byte 0x3E666666
.4byte 0
.global lbl_80562EB0
lbl_80562EB0:
@ -27105,8 +27105,8 @@ lbl_80563584:
lbl_80563588:
# ROM: 0x49E0C8
.asciz "?fff"
.balign 4
.4byte 0x3F666666
.4byte 0
.global lbl_80563590
lbl_80563590:
@ -27755,8 +27755,8 @@ lbl_8056378C:
lbl_80563790:
# ROM: 0x49E2D0
.asciz "?333"
.balign 4
.4byte 0x3F333333
.4byte 0
.global lbl_80563798
lbl_80563798:
@ -27900,8 +27900,8 @@ lbl_80563804:
lbl_80563808:
# ROM: 0x49E348
.asciz "?fff"
.balign 4
.4byte 0x3F666666
.4byte 0
.global lbl_80563810
lbl_80563810:

494710
asm/text.s

File diff suppressed because it is too large Load diff

View file

@ -50,7 +50,8 @@ while asmline := remainder or sys.stdin.readline():
curfile.write('.include "' + macros + '"\n\n')
curfile.write(section)
if trim.startswith("#"):
continue
if trim.startswith('.skip'):
curaddr += int(trim[6:], 0)
elif trim.startswith('.incbin'):
@ -67,9 +68,19 @@ while asmline := remainder or sys.stdin.readline():
if k < s:
asmline = f + ', 0x' + format(a, 'X') + ', 0x' + format(k, 'X') + '\n'
remainder = f + ', 0x' + format(a + k, 'X') + ', 0x' + format(s - k, 'X') + '\n'
elif trim.startswith(".balign"):
_, alignment = asmline.split(' ')
alignment = int(alignment)
if curaddr % alignment != 0:
curaddr += 4 - (curaddr % alignment)
elif not trim.startswith('.global') and not trim.endswith(':'):
curaddr += 4
if trim.startswith(".2byte"):
curaddr += 2
elif trim.startswith(".byte"):
parts = trim.count(",") + 1
curaddr += parts
else:
curaddr += 4
if not curfile.closed: curfile.write(asmline)