prime/asm/Kyoto/Text/CFontRenderState.s

855 lines
40 KiB
ArmAsm
Raw Permalink Normal View History

.include "macros.inc"
2022-07-14 05:36:41 +00:00
.section .text, "ax"
.global ConvertToTextureSpace__16CFontRenderStateCFRC10CTextColor
ConvertToTextureSpace__16CFontRenderStateCFRC10CTextColor:
/* 802FECC4 002FBC24 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 802FECC8 002FBC28 88 C4 00 00 */ lbz r6, 0(r4)
/* 802FECCC 002FBC2C 88 A4 00 01 */ lbz r5, 1(r4)
/* 802FECD0 002FBC30 88 64 00 02 */ lbz r3, 2(r4)
/* 802FECD4 002FBC34 88 04 00 03 */ lbz r0, 3(r4)
/* 802FECD8 002FBC38 98 C1 00 08 */ stb r6, 8(r1)
/* 802FECDC 002FBC3C 98 A1 00 09 */ stb r5, 9(r1)
/* 802FECE0 002FBC40 98 61 00 0A */ stb r3, 0xa(r1)
/* 802FECE4 002FBC44 98 01 00 0B */ stb r0, 0xb(r1)
/* 802FECE8 002FBC48 80 61 00 08 */ lwz r3, 8(r1)
/* 802FECEC 002FBC4C 38 21 00 10 */ addi r1, r1, 0x10
2022-07-14 05:48:03 +00:00
/* 802FECF0 002FBC50 4E 80 00 20 */ blr
.global PopState__16CFontRenderStateFv
PopState__16CFontRenderStateFv:
/* 802FECF4 002FBC54 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 802FECF8 002FBC58 7C 08 02 A6 */ mflr r0
/* 802FECFC 002FBC5C 90 01 00 14 */ stw r0, 0x14(r1)
/* 802FED00 002FBC60 93 E1 00 0C */ stw r31, 0xc(r1)
/* 802FED04 002FBC64 7C 7F 1B 78 */ mr r31, r3
/* 802FED08 002FBC68 80 83 01 10 */ lwz r4, 0x110(r3)
/* 802FED0C 002FBC6C 38 84 00 08 */ addi r4, r4, 8
/* 802FED10 002FBC70 48 00 00 2D */ bl __as__14CSaveableStateFRC14CSaveableState
/* 802FED14 002FBC74 80 9F 01 10 */ lwz r4, 0x110(r31)
/* 802FED18 002FBC78 38 7F 01 0C */ addi r3, r31, 0x10c
/* 802FED1C 002FBC7C 48 00 09 59 */ bl sub_802ff674
/* 802FED20 002FBC80 7F E3 FB 78 */ mr r3, r31
/* 802FED24 002FBC84 48 00 06 C1 */ bl RefreshPalette__16CFontRenderStateFv
/* 802FED28 002FBC88 80 01 00 14 */ lwz r0, 0x14(r1)
/* 802FED2C 002FBC8C 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 802FED30 002FBC90 7C 08 03 A6 */ mtlr r0
/* 802FED34 002FBC94 38 21 00 10 */ addi r1, r1, 0x10
2022-07-14 05:48:03 +00:00
/* 802FED38 002FBC98 4E 80 00 20 */ blr
.global __as__14CSaveableStateFRC14CSaveableState
__as__14CSaveableStateFRC14CSaveableState:
/* 802FED3C 002FBC9C 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 802FED40 002FBCA0 7C 08 02 A6 */ mflr r0
/* 802FED44 002FBCA4 90 01 00 14 */ stw r0, 0x14(r1)
/* 802FED48 002FBCA8 93 E1 00 0C */ stw r31, 0xc(r1)
/* 802FED4C 002FBCAC 7C 9F 23 78 */ mr r31, r4
/* 802FED50 002FBCB0 38 1F 00 04 */ addi r0, r31, 4
/* 802FED54 002FBCB4 93 C1 00 08 */ stw r30, 8(r1)
/* 802FED58 002FBCB8 7C 7E 1B 78 */ mr r30, r3
/* 802FED5C 002FBCBC 38 7E 00 04 */ addi r3, r30, 4
/* 802FED60 002FBCC0 80 84 00 00 */ lwz r4, 0(r4)
/* 802FED64 002FBCC4 7C 03 00 40 */ cmplw r3, r0
/* 802FED68 002FBCC8 90 9E 00 00 */ stw r4, 0(r30)
/* 802FED6C 002FBCCC 41 82 00 98 */ beq lbl_802FEE04
/* 802FED70 002FBCD0 80 BE 00 04 */ lwz r5, 4(r30)
/* 802FED74 002FBCD4 38 DE 00 08 */ addi r6, r30, 8
/* 802FED78 002FBCD8 38 60 00 00 */ li r3, 0
/* 802FED7C 002FBCDC 2C 05 00 00 */ cmpwi r5, 0
/* 802FED80 002FBCE0 40 81 00 40 */ ble lbl_802FEDC0
/* 802FED84 002FBCE4 2C 05 00 08 */ cmpwi r5, 8
/* 802FED88 002FBCE8 38 85 FF F8 */ addi r4, r5, -8
/* 802FED8C 002FBCEC 40 81 00 20 */ ble lbl_802FEDAC
/* 802FED90 002FBCF0 38 04 00 07 */ addi r0, r4, 7
/* 802FED94 002FBCF4 54 00 E8 FE */ srwi r0, r0, 3
/* 802FED98 002FBCF8 7C 09 03 A6 */ mtctr r0
/* 802FED9C 002FBCFC 2C 04 00 00 */ cmpwi r4, 0
/* 802FEDA0 002FBD00 40 81 00 0C */ ble lbl_802FEDAC
lbl_802FEDA4:
/* 802FEDA4 002FBD04 38 63 00 08 */ addi r3, r3, 8
/* 802FEDA8 002FBD08 42 00 FF FC */ bdnz lbl_802FEDA4
lbl_802FEDAC:
/* 802FEDAC 002FBD0C 7C 03 28 50 */ subf r0, r3, r5
/* 802FEDB0 002FBD10 7C 09 03 A6 */ mtctr r0
/* 802FEDB4 002FBD14 7C 03 28 00 */ cmpw r3, r5
/* 802FEDB8 002FBD18 40 80 00 08 */ bge lbl_802FEDC0
lbl_802FEDBC:
/* 802FEDBC 002FBD1C 42 00 00 00 */ bdnz lbl_802FEDBC
lbl_802FEDC0:
/* 802FEDC0 002FBD20 38 00 00 00 */ li r0, 0
/* 802FEDC4 002FBD24 38 9F 00 08 */ addi r4, r31, 8
/* 802FEDC8 002FBD28 90 1E 00 04 */ stw r0, 4(r30)
/* 802FEDCC 002FBD2C 80 1F 00 04 */ lwz r0, 4(r31)
/* 802FEDD0 002FBD30 54 00 10 3A */ slwi r0, r0, 2
/* 802FEDD4 002FBD34 7C 64 02 14 */ add r3, r4, r0
/* 802FEDD8 002FBD38 48 00 00 1C */ b lbl_802FEDF4
lbl_802FEDDC:
/* 802FEDDC 002FBD3C 28 06 00 00 */ cmplwi r6, 0
/* 802FEDE0 002FBD40 41 82 00 0C */ beq lbl_802FEDEC
/* 802FEDE4 002FBD44 80 04 00 00 */ lwz r0, 0(r4)
/* 802FEDE8 002FBD48 90 06 00 00 */ stw r0, 0(r6)
lbl_802FEDEC:
/* 802FEDEC 002FBD4C 38 C6 00 04 */ addi r6, r6, 4
/* 802FEDF0 002FBD50 38 84 00 04 */ addi r4, r4, 4
lbl_802FEDF4:
/* 802FEDF4 002FBD54 7C 04 18 40 */ cmplw r4, r3
/* 802FEDF8 002FBD58 40 82 FF E4 */ bne lbl_802FEDDC
/* 802FEDFC 002FBD5C 80 1F 00 04 */ lwz r0, 4(r31)
/* 802FEE00 002FBD60 90 1E 00 04 */ stw r0, 4(r30)
lbl_802FEE04:
/* 802FEE04 002FBD64 38 7E 00 48 */ addi r3, r30, 0x48
/* 802FEE08 002FBD68 38 9F 00 48 */ addi r4, r31, 0x48
/* 802FEE0C 002FBD6C 7C 03 20 40 */ cmplw r3, r4
/* 802FEE10 002FBD70 41 82 00 60 */ beq lbl_802FEE70
/* 802FEE14 002FBD74 88 1F 00 50 */ lbz r0, 0x50(r31)
/* 802FEE18 002FBD78 28 00 00 00 */ cmplwi r0, 0
/* 802FEE1C 002FBD7C 41 82 00 30 */ beq lbl_802FEE4C
/* 802FEE20 002FBD80 88 1E 00 50 */ lbz r0, 0x50(r30)
/* 802FEE24 002FBD84 28 00 00 00 */ cmplwi r0, 0
/* 802FEE28 002FBD88 40 82 00 1C */ bne lbl_802FEE44
/* 802FEE2C 002FBD8C 34 7E 00 48 */ addic. r3, r30, 0x48
/* 802FEE30 002FBD90 41 82 00 08 */ beq lbl_802FEE38
/* 802FEE34 002FBD94 48 04 20 75 */ bl __ct__6CTokenFRC6CToken
lbl_802FEE38:
/* 802FEE38 002FBD98 38 00 00 01 */ li r0, 1
/* 802FEE3C 002FBD9C 98 1E 00 50 */ stb r0, 0x50(r30)
/* 802FEE40 002FBDA0 48 00 00 30 */ b lbl_802FEE70
lbl_802FEE44:
/* 802FEE44 002FBDA4 48 04 1E 81 */ bl __as__6CTokenFRC6CToken
/* 802FEE48 002FBDA8 48 00 00 28 */ b lbl_802FEE70
lbl_802FEE4C:
/* 802FEE4C 002FBDAC 88 1E 00 50 */ lbz r0, 0x50(r30)
/* 802FEE50 002FBDB0 28 00 00 00 */ cmplwi r0, 0
/* 802FEE54 002FBDB4 41 82 00 14 */ beq lbl_802FEE68
/* 802FEE58 002FBDB8 34 7E 00 48 */ addic. r3, r30, 0x48
/* 802FEE5C 002FBDBC 41 82 00 0C */ beq lbl_802FEE68
/* 802FEE60 002FBDC0 38 80 00 00 */ li r4, 0
/* 802FEE64 002FBDC4 48 04 1F DD */ bl __dt__6CTokenFv
lbl_802FEE68:
/* 802FEE68 002FBDC8 38 00 00 00 */ li r0, 0
/* 802FEE6C 002FBDCC 98 1E 00 50 */ stb r0, 0x50(r30)
lbl_802FEE70:
/* 802FEE70 002FBDD0 38 7E 00 54 */ addi r3, r30, 0x54
/* 802FEE74 002FBDD4 38 9F 00 54 */ addi r4, r31, 0x54
/* 802FEE78 002FBDD8 48 00 00 55 */ bl sub_802feecc
/* 802FEE7C 002FBDDC 38 7E 00 64 */ addi r3, r30, 0x64
/* 802FEE80 002FBDE0 38 9F 00 64 */ addi r4, r31, 0x64
/* 802FEE84 002FBDE4 4B DA 29 B5 */ bl sub_800a1838
/* 802FEE88 002FBDE8 C0 1F 00 74 */ lfs f0, 0x74(r31)
/* 802FEE8C 002FBDEC 7F C3 F3 78 */ mr r3, r30
/* 802FEE90 002FBDF0 D0 1E 00 74 */ stfs f0, 0x74(r30)
/* 802FEE94 002FBDF4 80 1F 00 78 */ lwz r0, 0x78(r31)
/* 802FEE98 002FBDF8 90 1E 00 78 */ stw r0, 0x78(r30)
/* 802FEE9C 002FBDFC 88 1F 00 7C */ lbz r0, 0x7c(r31)
/* 802FEEA0 002FBE00 98 1E 00 7C */ stb r0, 0x7c(r30)
/* 802FEEA4 002FBE04 80 1F 00 80 */ lwz r0, 0x80(r31)
/* 802FEEA8 002FBE08 90 1E 00 80 */ stw r0, 0x80(r30)
/* 802FEEAC 002FBE0C 80 1F 00 84 */ lwz r0, 0x84(r31)
/* 802FEEB0 002FBE10 90 1E 00 84 */ stw r0, 0x84(r30)
/* 802FEEB4 002FBE14 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 802FEEB8 002FBE18 83 C1 00 08 */ lwz r30, 8(r1)
/* 802FEEBC 002FBE1C 80 01 00 14 */ lwz r0, 0x14(r1)
/* 802FEEC0 002FBE20 7C 08 03 A6 */ mtlr r0
/* 802FEEC4 002FBE24 38 21 00 10 */ addi r1, r1, 0x10
2022-07-14 05:48:03 +00:00
/* 802FEEC8 002FBE28 4E 80 00 20 */ blr
.global sub_802feecc
sub_802feecc:
/* 802FEECC 002FBE2C 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 802FEED0 002FBE30 7C 08 02 A6 */ mflr r0
/* 802FEED4 002FBE34 90 01 00 24 */ stw r0, 0x24(r1)
/* 802FEED8 002FBE38 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 802FEEDC 002FBE3C 7C 9F 23 78 */ mr r31, r4
/* 802FEEE0 002FBE40 93 C1 00 18 */ stw r30, 0x18(r1)
/* 802FEEE4 002FBE44 7C 7E 1B 78 */ mr r30, r3
/* 802FEEE8 002FBE48 7C 1E F8 40 */ cmplw r30, r31
/* 802FEEEC 002FBE4C 40 82 00 08 */ bne lbl_802FEEF4
/* 802FEEF0 002FBE50 48 00 00 D0 */ b lbl_802FEFC0
lbl_802FEEF4:
/* 802FEEF4 002FBE54 80 1E 00 04 */ lwz r0, 4(r30)
/* 802FEEF8 002FBE58 80 7E 00 0C */ lwz r3, 0xc(r30)
/* 802FEEFC 002FBE5C 54 00 10 3A */ slwi r0, r0, 2
/* 802FEF00 002FBE60 7C 03 02 14 */ add r0, r3, r0
/* 802FEF04 002FBE64 90 61 00 0C */ stw r3, 0xc(r1)
/* 802FEF08 002FBE68 90 01 00 14 */ stw r0, 0x14(r1)
/* 802FEF0C 002FBE6C 90 01 00 10 */ stw r0, 0x10(r1)
/* 802FEF10 002FBE70 90 61 00 08 */ stw r3, 8(r1)
/* 802FEF14 002FBE74 48 00 00 08 */ b lbl_802FEF1C
lbl_802FEF18:
/* 802FEF18 002FBE78 38 63 00 04 */ addi r3, r3, 4
lbl_802FEF1C:
/* 802FEF1C 002FBE7C 7C 03 00 40 */ cmplw r3, r0
/* 802FEF20 002FBE80 40 82 FF F8 */ bne lbl_802FEF18
/* 802FEF24 002FBE84 38 00 00 00 */ li r0, 0
/* 802FEF28 002FBE88 90 1E 00 04 */ stw r0, 4(r30)
/* 802FEF2C 002FBE8C 80 9F 00 04 */ lwz r4, 4(r31)
/* 802FEF30 002FBE90 2C 04 00 00 */ cmpwi r4, 0
/* 802FEF34 002FBE94 40 82 00 28 */ bne lbl_802FEF5C
/* 802FEF38 002FBE98 80 7E 00 0C */ lwz r3, 0xc(r30)
/* 802FEF3C 002FBE9C 28 03 00 00 */ cmplwi r3, 0
/* 802FEF40 002FBEA0 41 82 00 08 */ beq lbl_802FEF48
/* 802FEF44 002FBEA4 48 01 69 ED */ bl Free__7CMemoryFPCv
lbl_802FEF48:
/* 802FEF48 002FBEA8 38 00 00 00 */ li r0, 0
/* 802FEF4C 002FBEAC 90 1E 00 04 */ stw r0, 4(r30)
/* 802FEF50 002FBEB0 90 1E 00 08 */ stw r0, 8(r30)
/* 802FEF54 002FBEB4 90 1E 00 0C */ stw r0, 0xc(r30)
/* 802FEF58 002FBEB8 48 00 00 64 */ b lbl_802FEFBC
lbl_802FEF5C:
/* 802FEF5C 002FBEBC 7F C3 F3 78 */ mr r3, r30
/* 802FEF60 002FBEC0 48 00 07 A9 */ bl sub_802ff708
/* 802FEF64 002FBEC4 80 1F 00 04 */ lwz r0, 4(r31)
/* 802FEF68 002FBEC8 80 BF 00 0C */ lwz r5, 0xc(r31)
/* 802FEF6C 002FBECC 54 00 10 3A */ slwi r0, r0, 2
/* 802FEF70 002FBED0 80 7E 00 0C */ lwz r3, 0xc(r30)
/* 802FEF74 002FBED4 7C 85 02 14 */ add r4, r5, r0
/* 802FEF78 002FBED8 48 00 00 34 */ b lbl_802FEFAC
lbl_802FEF7C:
/* 802FEF7C 002FBEDC 28 03 00 00 */ cmplwi r3, 0
/* 802FEF80 002FBEE0 41 82 00 24 */ beq lbl_802FEFA4
/* 802FEF84 002FBEE4 88 05 00 00 */ lbz r0, 0(r5)
/* 802FEF88 002FBEE8 98 03 00 00 */ stb r0, 0(r3)
/* 802FEF8C 002FBEEC 88 05 00 01 */ lbz r0, 1(r5)
/* 802FEF90 002FBEF0 98 03 00 01 */ stb r0, 1(r3)
/* 802FEF94 002FBEF4 88 05 00 02 */ lbz r0, 2(r5)
/* 802FEF98 002FBEF8 98 03 00 02 */ stb r0, 2(r3)
/* 802FEF9C 002FBEFC 88 05 00 03 */ lbz r0, 3(r5)
/* 802FEFA0 002FBF00 98 03 00 03 */ stb r0, 3(r3)
lbl_802FEFA4:
/* 802FEFA4 002FBF04 38 63 00 04 */ addi r3, r3, 4
/* 802FEFA8 002FBF08 38 A5 00 04 */ addi r5, r5, 4
lbl_802FEFAC:
/* 802FEFAC 002FBF0C 7C 05 20 40 */ cmplw r5, r4
/* 802FEFB0 002FBF10 40 82 FF CC */ bne lbl_802FEF7C
/* 802FEFB4 002FBF14 80 1F 00 04 */ lwz r0, 4(r31)
/* 802FEFB8 002FBF18 90 1E 00 04 */ stw r0, 4(r30)
lbl_802FEFBC:
/* 802FEFBC 002FBF1C 7F C3 F3 78 */ mr r3, r30
lbl_802FEFC0:
/* 802FEFC0 002FBF20 80 01 00 24 */ lwz r0, 0x24(r1)
/* 802FEFC4 002FBF24 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 802FEFC8 002FBF28 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 802FEFCC 002FBF2C 7C 08 03 A6 */ mtlr r0
/* 802FEFD0 002FBF30 38 21 00 20 */ addi r1, r1, 0x20
2022-07-14 05:48:03 +00:00
/* 802FEFD4 002FBF34 4E 80 00 20 */ blr
.global sub_802fefd8
sub_802fefd8:
/* 802FEFD8 002FBF38 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 802FEFDC 002FBF3C 7C 08 02 A6 */ mflr r0
/* 802FEFE0 002FBF40 7C 64 1B 78 */ mr r4, r3
/* 802FEFE4 002FBF44 38 63 01 0C */ addi r3, r3, 0x10c
/* 802FEFE8 002FBF48 90 01 00 14 */ stw r0, 0x14(r1)
/* 802FEFEC 002FBF4C 48 00 00 15 */ bl sub_802ff000
/* 802FEFF0 002FBF50 80 01 00 14 */ lwz r0, 0x14(r1)
/* 802FEFF4 002FBF54 7C 08 03 A6 */ mtlr r0
/* 802FEFF8 002FBF58 38 21 00 10 */ addi r1, r1, 0x10
2022-07-14 05:48:03 +00:00
/* 802FEFFC 002FBF5C 4E 80 00 20 */ blr
.global sub_802ff000
sub_802ff000:
/* 802FF000 002FBF60 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 802FF004 002FBF64 7C 08 02 A6 */ mflr r0
/* 802FF008 002FBF68 7C 85 23 78 */ mr r5, r4
/* 802FF00C 002FBF6C 90 01 00 14 */ stw r0, 0x14(r1)
/* 802FF010 002FBF70 80 83 00 04 */ lwz r4, 4(r3)
/* 802FF014 002FBF74 48 00 00 15 */ bl sub_802ff028
/* 802FF018 002FBF78 80 01 00 14 */ lwz r0, 0x14(r1)
/* 802FF01C 002FBF7C 7C 08 03 A6 */ mtlr r0
/* 802FF020 002FBF80 38 21 00 10 */ addi r1, r1, 0x10
2022-07-14 05:48:03 +00:00
/* 802FF024 002FBF84 4E 80 00 20 */ blr
.global sub_802ff028
sub_802ff028:
/* 802FF028 002FBF88 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 802FF02C 002FBF8C 7C 08 02 A6 */ mflr r0
/* 802FF030 002FBF90 7C A6 2B 78 */ mr r6, r5
/* 802FF034 002FBF94 90 01 00 14 */ stw r0, 0x14(r1)
/* 802FF038 002FBF98 93 E1 00 0C */ stw r31, 0xc(r1)
/* 802FF03C 002FBF9C 7C 9F 23 78 */ mr r31, r4
/* 802FF040 002FBFA0 7F E5 FB 78 */ mr r5, r31
/* 802FF044 002FBFA4 93 C1 00 08 */ stw r30, 8(r1)
/* 802FF048 002FBFA8 7C 7E 1B 78 */ mr r30, r3
/* 802FF04C 002FBFAC 80 84 00 00 */ lwz r4, 0(r4)
/* 802FF050 002FBFB0 48 00 00 49 */ bl sub_802ff098
/* 802FF054 002FBFB4 80 1E 00 04 */ lwz r0, 4(r30)
/* 802FF058 002FBFB8 7C 1F 00 40 */ cmplw r31, r0
/* 802FF05C 002FBFBC 40 82 00 08 */ bne lbl_802FF064
/* 802FF060 002FBFC0 90 7E 00 04 */ stw r3, 4(r30)
lbl_802FF064:
/* 802FF064 002FBFC4 80 83 00 00 */ lwz r4, 0(r3)
/* 802FF068 002FBFC8 90 64 00 04 */ stw r3, 4(r4)
/* 802FF06C 002FBFCC 80 83 00 04 */ lwz r4, 4(r3)
/* 802FF070 002FBFD0 90 64 00 00 */ stw r3, 0(r4)
/* 802FF074 002FBFD4 80 9E 00 14 */ lwz r4, 0x14(r30)
/* 802FF078 002FBFD8 38 04 00 01 */ addi r0, r4, 1
/* 802FF07C 002FBFDC 90 1E 00 14 */ stw r0, 0x14(r30)
/* 802FF080 002FBFE0 80 01 00 14 */ lwz r0, 0x14(r1)
/* 802FF084 002FBFE4 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 802FF088 002FBFE8 83 C1 00 08 */ lwz r30, 8(r1)
/* 802FF08C 002FBFEC 7C 08 03 A6 */ mtlr r0
/* 802FF090 002FBFF0 38 21 00 10 */ addi r1, r1, 0x10
2022-07-14 05:48:03 +00:00
/* 802FF094 002FBFF4 4E 80 00 20 */ blr
.global sub_802ff098
sub_802ff098:
/* 802FF098 002FBFF8 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 802FF09C 002FBFFC 7C 08 02 A6 */ mflr r0
/* 802FF0A0 002FC000 3C 60 80 3D */ lis r3, lbl_803D6E60@ha
/* 802FF0A4 002FC004 90 01 00 24 */ stw r0, 0x24(r1)
/* 802FF0A8 002FC008 38 03 6E 60 */ addi r0, r3, lbl_803D6E60@l
/* 802FF0AC 002FC00C 38 60 00 90 */ li r3, 0x90
/* 802FF0B0 002FC010 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 802FF0B4 002FC014 93 C1 00 18 */ stw r30, 0x18(r1)
/* 802FF0B8 002FC018 7C DE 33 78 */ mr r30, r6
/* 802FF0BC 002FC01C 93 A1 00 14 */ stw r29, 0x14(r1)
/* 802FF0C0 002FC020 7C BD 2B 78 */ mr r29, r5
/* 802FF0C4 002FC024 38 A0 00 00 */ li r5, 0
/* 802FF0C8 002FC028 93 81 00 10 */ stw r28, 0x10(r1)
/* 802FF0CC 002FC02C 7C 9C 23 78 */ mr r28, r4
/* 802FF0D0 002FC030 7C 04 03 78 */ mr r4, r0
/* 802FF0D4 002FC034 48 01 67 45 */ bl __nwa__FUlPCcPCc
/* 802FF0D8 002FC038 7C 7F 1B 79 */ or. r31, r3, r3
/* 802FF0DC 002FC03C 41 82 00 0C */ beq lbl_802FF0E8
/* 802FF0E0 002FC040 93 9F 00 00 */ stw r28, 0(r31)
/* 802FF0E4 002FC044 93 BF 00 04 */ stw r29, 4(r31)
lbl_802FF0E8:
/* 802FF0E8 002FC048 34 7F 00 08 */ addic. r3, r31, 8
/* 802FF0EC 002FC04C 41 82 00 0C */ beq lbl_802FF0F8
/* 802FF0F0 002FC050 7F C4 F3 78 */ mr r4, r30
/* 802FF0F4 002FC054 48 00 00 29 */ bl sub_802ff11c
lbl_802FF0F8:
/* 802FF0F8 002FC058 80 01 00 24 */ lwz r0, 0x24(r1)
/* 802FF0FC 002FC05C 7F E3 FB 78 */ mr r3, r31
/* 802FF100 002FC060 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 802FF104 002FC064 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 802FF108 002FC068 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 802FF10C 002FC06C 83 81 00 10 */ lwz r28, 0x10(r1)
/* 802FF110 002FC070 7C 08 03 A6 */ mtlr r0
/* 802FF114 002FC074 38 21 00 20 */ addi r1, r1, 0x20
2022-07-14 05:48:03 +00:00
/* 802FF118 002FC078 4E 80 00 20 */ blr
.global sub_802ff11c
sub_802ff11c:
/* 802FF11C 002FC07C 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 802FF120 002FC080 7C 08 02 A6 */ mflr r0
/* 802FF124 002FC084 90 01 00 14 */ stw r0, 0x14(r1)
/* 802FF128 002FC088 93 E1 00 0C */ stw r31, 0xc(r1)
/* 802FF12C 002FC08C 7C 9F 23 78 */ mr r31, r4
/* 802FF130 002FC090 93 C1 00 08 */ stw r30, 8(r1)
/* 802FF134 002FC094 7C 7E 1B 78 */ mr r30, r3
/* 802FF138 002FC098 38 7E 00 08 */ addi r3, r30, 8
/* 802FF13C 002FC09C 80 04 00 00 */ lwz r0, 0(r4)
/* 802FF140 002FC0A0 38 9F 00 08 */ addi r4, r31, 8
/* 802FF144 002FC0A4 90 1E 00 00 */ stw r0, 0(r30)
/* 802FF148 002FC0A8 80 1F 00 04 */ lwz r0, 4(r31)
/* 802FF14C 002FC0AC 90 1E 00 04 */ stw r0, 4(r30)
/* 802FF150 002FC0B0 80 1E 00 04 */ lwz r0, 4(r30)
/* 802FF154 002FC0B4 7C 09 03 A6 */ mtctr r0
/* 802FF158 002FC0B8 2C 00 00 00 */ cmpwi r0, 0
/* 802FF15C 002FC0BC 40 81 00 20 */ ble lbl_802FF17C
lbl_802FF160:
/* 802FF160 002FC0C0 28 03 00 00 */ cmplwi r3, 0
/* 802FF164 002FC0C4 41 82 00 0C */ beq lbl_802FF170
/* 802FF168 002FC0C8 80 04 00 00 */ lwz r0, 0(r4)
/* 802FF16C 002FC0CC 90 03 00 00 */ stw r0, 0(r3)
lbl_802FF170:
/* 802FF170 002FC0D0 38 63 00 04 */ addi r3, r3, 4
/* 802FF174 002FC0D4 38 84 00 04 */ addi r4, r4, 4
/* 802FF178 002FC0D8 42 00 FF E8 */ bdnz lbl_802FF160
lbl_802FF17C:
/* 802FF17C 002FC0DC 88 1F 00 50 */ lbz r0, 0x50(r31)
/* 802FF180 002FC0E0 98 1E 00 50 */ stb r0, 0x50(r30)
/* 802FF184 002FC0E4 88 1F 00 50 */ lbz r0, 0x50(r31)
/* 802FF188 002FC0E8 28 00 00 00 */ cmplwi r0, 0
/* 802FF18C 002FC0EC 41 82 00 14 */ beq lbl_802FF1A0
/* 802FF190 002FC0F0 34 7E 00 48 */ addic. r3, r30, 0x48
/* 802FF194 002FC0F4 38 9F 00 48 */ addi r4, r31, 0x48
/* 802FF198 002FC0F8 41 82 00 08 */ beq lbl_802FF1A0
/* 802FF19C 002FC0FC 48 04 1D 0D */ bl __ct__6CTokenFRC6CToken
lbl_802FF1A0:
/* 802FF1A0 002FC100 80 1F 00 58 */ lwz r0, 0x58(r31)
/* 802FF1A4 002FC104 90 1E 00 58 */ stw r0, 0x58(r30)
/* 802FF1A8 002FC108 80 1F 00 5C */ lwz r0, 0x5c(r31)
/* 802FF1AC 002FC10C 90 1E 00 5C */ stw r0, 0x5c(r30)
/* 802FF1B0 002FC110 80 1F 00 58 */ lwz r0, 0x58(r31)
/* 802FF1B4 002FC114 2C 00 00 00 */ cmpwi r0, 0
/* 802FF1B8 002FC118 40 82 00 1C */ bne lbl_802FF1D4
/* 802FF1BC 002FC11C 80 1F 00 5C */ lwz r0, 0x5c(r31)
/* 802FF1C0 002FC120 2C 00 00 00 */ cmpwi r0, 0
/* 802FF1C4 002FC124 40 82 00 10 */ bne lbl_802FF1D4
/* 802FF1C8 002FC128 38 00 00 00 */ li r0, 0
/* 802FF1CC 002FC12C 90 1E 00 60 */ stw r0, 0x60(r30)
/* 802FF1D0 002FC130 48 00 00 7C */ b lbl_802FF24C
lbl_802FF1D4:
/* 802FF1D4 002FC134 80 1E 00 5C */ lwz r0, 0x5c(r30)
/* 802FF1D8 002FC138 54 03 10 3B */ rlwinm. r3, r0, 2, 0, 0x1d
/* 802FF1DC 002FC13C 40 82 00 10 */ bne lbl_802FF1EC
/* 802FF1E0 002FC140 38 00 00 00 */ li r0, 0
/* 802FF1E4 002FC144 90 1E 00 60 */ stw r0, 0x60(r30)
/* 802FF1E8 002FC148 48 00 00 18 */ b lbl_802FF200
lbl_802FF1EC:
/* 802FF1EC 002FC14C 3C 80 80 3D */ lis r4, lbl_803D6E60@ha
/* 802FF1F0 002FC150 38 A0 00 00 */ li r5, 0
/* 802FF1F4 002FC154 38 84 6E 60 */ addi r4, r4, lbl_803D6E60@l
/* 802FF1F8 002FC158 48 01 66 21 */ bl __nwa__FUlPCcPCc
/* 802FF1FC 002FC15C 90 7E 00 60 */ stw r3, 0x60(r30)
lbl_802FF200:
/* 802FF200 002FC160 80 1E 00 58 */ lwz r0, 0x58(r30)
/* 802FF204 002FC164 80 9F 00 60 */ lwz r4, 0x60(r31)
/* 802FF208 002FC168 80 7E 00 60 */ lwz r3, 0x60(r30)
/* 802FF20C 002FC16C 7C 09 03 A6 */ mtctr r0
/* 802FF210 002FC170 2C 00 00 00 */ cmpwi r0, 0
/* 802FF214 002FC174 40 81 00 38 */ ble lbl_802FF24C
lbl_802FF218:
/* 802FF218 002FC178 28 03 00 00 */ cmplwi r3, 0
/* 802FF21C 002FC17C 41 82 00 24 */ beq lbl_802FF240
/* 802FF220 002FC180 88 04 00 00 */ lbz r0, 0(r4)
/* 802FF224 002FC184 98 03 00 00 */ stb r0, 0(r3)
/* 802FF228 002FC188 88 04 00 01 */ lbz r0, 1(r4)
/* 802FF22C 002FC18C 98 03 00 01 */ stb r0, 1(r3)
/* 802FF230 002FC190 88 04 00 02 */ lbz r0, 2(r4)
/* 802FF234 002FC194 98 03 00 02 */ stb r0, 2(r3)
/* 802FF238 002FC198 88 04 00 03 */ lbz r0, 3(r4)
/* 802FF23C 002FC19C 98 03 00 03 */ stb r0, 3(r3)
lbl_802FF240:
/* 802FF240 002FC1A0 38 63 00 04 */ addi r3, r3, 4
/* 802FF244 002FC1A4 38 84 00 04 */ addi r4, r4, 4
/* 802FF248 002FC1A8 42 00 FF D0 */ bdnz lbl_802FF218
lbl_802FF24C:
/* 802FF24C 002FC1AC 80 1F 00 68 */ lwz r0, 0x68(r31)
/* 802FF250 002FC1B0 90 1E 00 68 */ stw r0, 0x68(r30)
/* 802FF254 002FC1B4 80 1F 00 6C */ lwz r0, 0x6c(r31)
/* 802FF258 002FC1B8 90 1E 00 6C */ stw r0, 0x6c(r30)
/* 802FF25C 002FC1BC 80 1F 00 68 */ lwz r0, 0x68(r31)
/* 802FF260 002FC1C0 2C 00 00 00 */ cmpwi r0, 0
/* 802FF264 002FC1C4 40 82 00 1C */ bne lbl_802FF280
/* 802FF268 002FC1C8 80 1F 00 6C */ lwz r0, 0x6c(r31)
/* 802FF26C 002FC1CC 2C 00 00 00 */ cmpwi r0, 0
/* 802FF270 002FC1D0 40 82 00 10 */ bne lbl_802FF280
/* 802FF274 002FC1D4 38 00 00 00 */ li r0, 0
/* 802FF278 002FC1D8 90 1E 00 70 */ stw r0, 0x70(r30)
/* 802FF27C 002FC1DC 48 00 00 64 */ b lbl_802FF2E0
lbl_802FF280:
/* 802FF280 002FC1E0 80 7E 00 6C */ lwz r3, 0x6c(r30)
/* 802FF284 002FC1E4 2C 03 00 00 */ cmpwi r3, 0
/* 802FF288 002FC1E8 40 82 00 10 */ bne lbl_802FF298
/* 802FF28C 002FC1EC 38 00 00 00 */ li r0, 0
/* 802FF290 002FC1F0 90 1E 00 70 */ stw r0, 0x70(r30)
/* 802FF294 002FC1F4 48 00 00 18 */ b lbl_802FF2AC
lbl_802FF298:
/* 802FF298 002FC1F8 3C 80 80 3D */ lis r4, lbl_803D6E60@ha
/* 802FF29C 002FC1FC 38 A0 00 00 */ li r5, 0
/* 802FF2A0 002FC200 38 84 6E 60 */ addi r4, r4, lbl_803D6E60@l
/* 802FF2A4 002FC204 48 01 65 75 */ bl __nwa__FUlPCcPCc
/* 802FF2A8 002FC208 90 7E 00 70 */ stw r3, 0x70(r30)
lbl_802FF2AC:
/* 802FF2AC 002FC20C 80 1E 00 68 */ lwz r0, 0x68(r30)
/* 802FF2B0 002FC210 80 9F 00 70 */ lwz r4, 0x70(r31)
/* 802FF2B4 002FC214 80 7E 00 70 */ lwz r3, 0x70(r30)
/* 802FF2B8 002FC218 7C 09 03 A6 */ mtctr r0
/* 802FF2BC 002FC21C 2C 00 00 00 */ cmpwi r0, 0
/* 802FF2C0 002FC220 40 81 00 20 */ ble lbl_802FF2E0
lbl_802FF2C4:
/* 802FF2C4 002FC224 28 03 00 00 */ cmplwi r3, 0
/* 802FF2C8 002FC228 41 82 00 0C */ beq lbl_802FF2D4
/* 802FF2CC 002FC22C 88 04 00 00 */ lbz r0, 0(r4)
/* 802FF2D0 002FC230 98 03 00 00 */ stb r0, 0(r3)
lbl_802FF2D4:
/* 802FF2D4 002FC234 38 63 00 01 */ addi r3, r3, 1
/* 802FF2D8 002FC238 38 84 00 01 */ addi r4, r4, 1
/* 802FF2DC 002FC23C 42 00 FF E8 */ bdnz lbl_802FF2C4
lbl_802FF2E0:
/* 802FF2E0 002FC240 C0 1F 00 74 */ lfs f0, 0x74(r31)
/* 802FF2E4 002FC244 7F C3 F3 78 */ mr r3, r30
/* 802FF2E8 002FC248 D0 1E 00 74 */ stfs f0, 0x74(r30)
/* 802FF2EC 002FC24C 80 1F 00 78 */ lwz r0, 0x78(r31)
/* 802FF2F0 002FC250 90 1E 00 78 */ stw r0, 0x78(r30)
/* 802FF2F4 002FC254 88 1F 00 7C */ lbz r0, 0x7c(r31)
/* 802FF2F8 002FC258 98 1E 00 7C */ stb r0, 0x7c(r30)
/* 802FF2FC 002FC25C 80 1F 00 80 */ lwz r0, 0x80(r31)
/* 802FF300 002FC260 90 1E 00 80 */ stw r0, 0x80(r30)
/* 802FF304 002FC264 80 1F 00 84 */ lwz r0, 0x84(r31)
/* 802FF308 002FC268 90 1E 00 84 */ stw r0, 0x84(r30)
/* 802FF30C 002FC26C 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 802FF310 002FC270 83 C1 00 08 */ lwz r30, 8(r1)
/* 802FF314 002FC274 80 01 00 14 */ lwz r0, 0x14(r1)
/* 802FF318 002FC278 7C 08 03 A6 */ mtlr r0
/* 802FF31C 002FC27C 38 21 00 10 */ addi r1, r1, 0x10
2022-07-14 05:48:03 +00:00
/* 802FF320 002FC280 4E 80 00 20 */ blr
.global SetColor__16CFontRenderStateF10EColorTypeRC10CTextColor
SetColor__16CFontRenderStateF10EColorTypeRC10CTextColor:
/* 802FF324 002FC284 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 802FF328 002FC288 7C 08 02 A6 */ mflr r0
/* 802FF32C 002FC28C 2C 04 00 03 */ cmpwi r4, 3
/* 802FF330 002FC290 90 01 00 14 */ stw r0, 0x14(r1)
/* 802FF334 002FC294 41 82 00 50 */ beq lbl_802FF384
/* 802FF338 002FC298 40 80 00 10 */ bge lbl_802FF348
/* 802FF33C 002FC29C 2C 04 00 00 */ cmpwi r4, 0
/* 802FF340 002FC2A0 40 80 00 14 */ bge lbl_802FF354
/* 802FF344 002FC2A4 48 00 00 8C */ b lbl_802FF3D0
lbl_802FF348:
/* 802FF348 002FC2A8 2C 04 00 05 */ cmpwi r4, 5
/* 802FF34C 002FC2AC 40 80 00 84 */ bge lbl_802FF3D0
/* 802FF350 002FC2B0 48 00 00 5C */ b lbl_802FF3AC
lbl_802FF354:
/* 802FF354 002FC2B4 80 E3 00 60 */ lwz r7, 0x60(r3)
/* 802FF358 002FC2B8 54 86 10 3A */ slwi r6, r4, 2
/* 802FF35C 002FC2BC 88 05 00 00 */ lbz r0, 0(r5)
/* 802FF360 002FC2C0 7C C7 32 14 */ add r6, r7, r6
/* 802FF364 002FC2C4 98 06 00 00 */ stb r0, 0(r6)
/* 802FF368 002FC2C8 88 05 00 01 */ lbz r0, 1(r5)
/* 802FF36C 002FC2CC 98 06 00 01 */ stb r0, 1(r6)
/* 802FF370 002FC2D0 88 05 00 02 */ lbz r0, 2(r5)
/* 802FF374 002FC2D4 98 06 00 02 */ stb r0, 2(r6)
/* 802FF378 002FC2D8 88 05 00 03 */ lbz r0, 3(r5)
/* 802FF37C 002FC2DC 98 06 00 03 */ stb r0, 3(r6)
/* 802FF380 002FC2E0 48 00 00 50 */ b lbl_802FF3D0
lbl_802FF384:
/* 802FF384 002FC2E4 80 C3 00 60 */ lwz r6, 0x60(r3)
/* 802FF388 002FC2E8 88 05 00 00 */ lbz r0, 0(r5)
/* 802FF38C 002FC2EC 98 06 00 00 */ stb r0, 0(r6)
/* 802FF390 002FC2F0 88 05 00 01 */ lbz r0, 1(r5)
/* 802FF394 002FC2F4 98 06 00 01 */ stb r0, 1(r6)
/* 802FF398 002FC2F8 88 05 00 02 */ lbz r0, 2(r5)
/* 802FF39C 002FC2FC 98 06 00 02 */ stb r0, 2(r6)
/* 802FF3A0 002FC300 88 05 00 03 */ lbz r0, 3(r5)
/* 802FF3A4 002FC304 98 06 00 03 */ stb r0, 3(r6)
/* 802FF3A8 002FC308 48 00 00 28 */ b lbl_802FF3D0
lbl_802FF3AC:
/* 802FF3AC 002FC30C 80 C3 00 60 */ lwz r6, 0x60(r3)
/* 802FF3B0 002FC310 88 05 00 00 */ lbz r0, 0(r5)
/* 802FF3B4 002FC314 98 06 00 04 */ stb r0, 4(r6)
/* 802FF3B8 002FC318 88 05 00 01 */ lbz r0, 1(r5)
/* 802FF3BC 002FC31C 98 06 00 05 */ stb r0, 5(r6)
/* 802FF3C0 002FC320 88 05 00 02 */ lbz r0, 2(r5)
/* 802FF3C4 002FC324 98 06 00 06 */ stb r0, 6(r6)
/* 802FF3C8 002FC328 88 05 00 03 */ lbz r0, 3(r5)
/* 802FF3CC 002FC32C 98 06 00 07 */ stb r0, 7(r6)
lbl_802FF3D0:
/* 802FF3D0 002FC330 48 00 00 51 */ bl RefreshColor__16CFontRenderStateF10EColorType
/* 802FF3D4 002FC334 80 01 00 14 */ lwz r0, 0x14(r1)
/* 802FF3D8 002FC338 7C 08 03 A6 */ mtlr r0
/* 802FF3DC 002FC33C 38 21 00 10 */ addi r1, r1, 0x10
2022-07-14 05:48:03 +00:00
/* 802FF3E0 002FC340 4E 80 00 20 */ blr
.global RefreshPalette__16CFontRenderStateFv
RefreshPalette__16CFontRenderStateFv:
/* 802FF3E4 002FC344 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 802FF3E8 002FC348 7C 08 02 A6 */ mflr r0
/* 802FF3EC 002FC34C 38 80 00 03 */ li r4, 3
/* 802FF3F0 002FC350 90 01 00 14 */ stw r0, 0x14(r1)
/* 802FF3F4 002FC354 93 E1 00 0C */ stw r31, 0xc(r1)
/* 802FF3F8 002FC358 7C 7F 1B 78 */ mr r31, r3
/* 802FF3FC 002FC35C 48 00 00 25 */ bl RefreshColor__16CFontRenderStateF10EColorType
/* 802FF400 002FC360 7F E3 FB 78 */ mr r3, r31
/* 802FF404 002FC364 38 80 00 04 */ li r4, 4
/* 802FF408 002FC368 48 00 00 19 */ bl RefreshColor__16CFontRenderStateF10EColorType
/* 802FF40C 002FC36C 80 01 00 14 */ lwz r0, 0x14(r1)
/* 802FF410 002FC370 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 802FF414 002FC374 7C 08 03 A6 */ mtlr r0
/* 802FF418 002FC378 38 21 00 10 */ addi r1, r1, 0x10
2022-07-14 05:48:03 +00:00
/* 802FF41C 002FC37C 4E 80 00 20 */ blr
.global RefreshColor__16CFontRenderStateF10EColorType
RefreshColor__16CFontRenderStateF10EColorType:
/* 802FF420 002FC380 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 802FF424 002FC384 7C 08 02 A6 */ mflr r0
/* 802FF428 002FC388 2C 04 00 02 */ cmpwi r4, 2
/* 802FF42C 002FC38C 90 01 00 14 */ stw r0, 0x14(r1)
/* 802FF430 002FC390 93 E1 00 0C */ stw r31, 0xc(r1)
/* 802FF434 002FC394 7C 7F 1B 78 */ mr r31, r3
/* 802FF438 002FC398 41 82 00 B4 */ beq lbl_802FF4EC
/* 802FF43C 002FC39C 40 80 00 14 */ bge lbl_802FF450
/* 802FF440 002FC3A0 2C 04 00 00 */ cmpwi r4, 0
/* 802FF444 002FC3A4 41 82 00 1C */ beq lbl_802FF460
/* 802FF448 002FC3A8 40 80 00 C8 */ bge lbl_802FF510
/* 802FF44C 002FC3AC 48 00 01 40 */ b lbl_802FF58C
lbl_802FF450:
/* 802FF450 002FC3B0 2C 04 00 04 */ cmpwi r4, 4
/* 802FF454 002FC3B4 41 82 01 30 */ beq lbl_802FF584
/* 802FF458 002FC3B8 40 80 01 34 */ bge lbl_802FF58C
/* 802FF45C 002FC3BC 48 00 01 10 */ b lbl_802FF56C
lbl_802FF460:
/* 802FF460 002FC3C0 48 00 24 99 */ bl IsFinishedLoading__14CSaveableStateFv
/* 802FF464 002FC3C4 54 60 06 3F */ clrlwi. r0, r3, 0x18
/* 802FF468 002FC3C8 41 82 01 24 */ beq lbl_802FF58C
/* 802FF46C 002FC3CC 80 7F 00 48 */ lwz r3, 0x48(r31)
/* 802FF470 002FC3D0 80 03 00 10 */ lwz r0, 0x10(r3)
/* 802FF474 002FC3D4 28 00 00 00 */ cmplwi r0, 0
/* 802FF478 002FC3D8 41 82 01 14 */ beq lbl_802FF58C
/* 802FF47C 002FC3DC 38 7F 00 48 */ addi r3, r31, 0x48
/* 802FF480 002FC3E0 48 04 19 8D */ bl GetObj__6CTokenFv
/* 802FF484 002FC3E4 80 63 00 04 */ lwz r3, 4(r3)
/* 802FF488 002FC3E8 48 00 13 95 */ bl GetMode__11CRasterFontCFv
/* 802FF48C 002FC3EC 2C 03 00 01 */ cmpwi r3, 1
/* 802FF490 002FC3F0 41 82 00 38 */ beq lbl_802FF4C8
/* 802FF494 002FC3F4 40 80 00 F8 */ bge lbl_802FF58C
/* 802FF498 002FC3F8 2C 03 00 00 */ cmpwi r3, 0
/* 802FF49C 002FC3FC 40 80 00 08 */ bge lbl_802FF4A4
/* 802FF4A0 002FC400 48 00 00 EC */ b lbl_802FF58C
lbl_802FF4A4:
/* 802FF4A4 002FC404 80 7F 00 70 */ lwz r3, 0x70(r31)
/* 802FF4A8 002FC408 88 03 00 00 */ lbz r0, 0(r3)
/* 802FF4AC 002FC40C 28 00 00 00 */ cmplwi r0, 0
/* 802FF4B0 002FC410 40 82 00 DC */ bne lbl_802FF58C
/* 802FF4B4 002FC414 80 9F 00 60 */ lwz r4, 0x60(r31)
/* 802FF4B8 002FC418 7F E3 FB 78 */ mr r3, r31
/* 802FF4BC 002FC41C 4B FF F8 09 */ bl ConvertToTextureSpace__16CFontRenderStateCFRC10CTextColor
/* 802FF4C0 002FC420 90 7F 00 08 */ stw r3, 8(r31)
/* 802FF4C4 002FC424 48 00 00 C8 */ b lbl_802FF58C
lbl_802FF4C8:
/* 802FF4C8 002FC428 80 7F 00 70 */ lwz r3, 0x70(r31)
/* 802FF4CC 002FC42C 88 03 00 00 */ lbz r0, 0(r3)
/* 802FF4D0 002FC430 28 00 00 00 */ cmplwi r0, 0
/* 802FF4D4 002FC434 40 82 00 B8 */ bne lbl_802FF58C
/* 802FF4D8 002FC438 80 9F 00 60 */ lwz r4, 0x60(r31)
/* 802FF4DC 002FC43C 7F E3 FB 78 */ mr r3, r31
/* 802FF4E0 002FC440 4B FF F7 E5 */ bl ConvertToTextureSpace__16CFontRenderStateCFRC10CTextColor
/* 802FF4E4 002FC444 90 7F 00 08 */ stw r3, 8(r31)
/* 802FF4E8 002FC448 48 00 00 A4 */ b lbl_802FF58C
lbl_802FF4EC:
/* 802FF4EC 002FC44C 80 9F 00 70 */ lwz r4, 0x70(r31)
/* 802FF4F0 002FC450 88 04 00 02 */ lbz r0, 2(r4)
/* 802FF4F4 002FC454 28 00 00 00 */ cmplwi r0, 0
/* 802FF4F8 002FC458 40 82 00 94 */ bne lbl_802FF58C
/* 802FF4FC 002FC45C 80 9F 00 60 */ lwz r4, 0x60(r31)
/* 802FF500 002FC460 38 84 00 08 */ addi r4, r4, 8
/* 802FF504 002FC464 4B FF F7 C1 */ bl ConvertToTextureSpace__16CFontRenderStateCFRC10CTextColor
/* 802FF508 002FC468 90 7F 00 10 */ stw r3, 0x10(r31)
/* 802FF50C 002FC46C 48 00 00 80 */ b lbl_802FF58C
lbl_802FF510:
/* 802FF510 002FC470 48 00 23 E9 */ bl IsFinishedLoading__14CSaveableStateFv
/* 802FF514 002FC474 54 60 06 3F */ clrlwi. r0, r3, 0x18
/* 802FF518 002FC478 41 82 00 74 */ beq lbl_802FF58C
/* 802FF51C 002FC47C 80 7F 00 48 */ lwz r3, 0x48(r31)
/* 802FF520 002FC480 80 03 00 10 */ lwz r0, 0x10(r3)
/* 802FF524 002FC484 28 00 00 00 */ cmplwi r0, 0
/* 802FF528 002FC488 41 82 00 64 */ beq lbl_802FF58C
/* 802FF52C 002FC48C 80 7F 00 70 */ lwz r3, 0x70(r31)
/* 802FF530 002FC490 88 03 00 01 */ lbz r0, 1(r3)
/* 802FF534 002FC494 28 00 00 00 */ cmplwi r0, 0
/* 802FF538 002FC498 40 82 00 54 */ bne lbl_802FF58C
/* 802FF53C 002FC49C 38 7F 00 48 */ addi r3, r31, 0x48
/* 802FF540 002FC4A0 48 04 18 CD */ bl GetObj__6CTokenFv
/* 802FF544 002FC4A4 80 63 00 04 */ lwz r3, 4(r3)
/* 802FF548 002FC4A8 48 00 12 D5 */ bl GetMode__11CRasterFontCFv
/* 802FF54C 002FC4AC 2C 03 00 01 */ cmpwi r3, 1
/* 802FF550 002FC4B0 40 82 00 3C */ bne lbl_802FF58C
/* 802FF554 002FC4B4 80 9F 00 60 */ lwz r4, 0x60(r31)
/* 802FF558 002FC4B8 7F E3 FB 78 */ mr r3, r31
/* 802FF55C 002FC4BC 38 84 00 04 */ addi r4, r4, 4
/* 802FF560 002FC4C0 4B FF F7 65 */ bl ConvertToTextureSpace__16CFontRenderStateCFRC10CTextColor
/* 802FF564 002FC4C4 90 7F 00 0C */ stw r3, 0xc(r31)
/* 802FF568 002FC4C8 48 00 00 24 */ b lbl_802FF58C
lbl_802FF56C:
/* 802FF56C 002FC4CC 38 80 00 00 */ li r4, 0
/* 802FF570 002FC4D0 4B FF FE B1 */ bl RefreshColor__16CFontRenderStateF10EColorType
/* 802FF574 002FC4D4 7F E3 FB 78 */ mr r3, r31
/* 802FF578 002FC4D8 38 80 00 02 */ li r4, 2
/* 802FF57C 002FC4DC 4B FF FE A5 */ bl RefreshColor__16CFontRenderStateF10EColorType
/* 802FF580 002FC4E0 48 00 00 0C */ b lbl_802FF58C
lbl_802FF584:
/* 802FF584 002FC4E4 38 80 00 01 */ li r4, 1
/* 802FF588 002FC4E8 4B FF FE 99 */ bl RefreshColor__16CFontRenderStateF10EColorType
lbl_802FF58C:
/* 802FF58C 002FC4EC 80 01 00 14 */ lwz r0, 0x14(r1)
/* 802FF590 002FC4F0 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 802FF594 002FC4F4 7C 08 03 A6 */ mtlr r0
/* 802FF598 002FC4F8 38 21 00 10 */ addi r1, r1, 0x10
2022-07-14 05:48:03 +00:00
/* 802FF59C 002FC4FC 4E 80 00 20 */ blr
.global __ct__16CFontRenderStateFv
__ct__16CFontRenderStateFv:
/* 802FF5A0 002FC500 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 802FF5A4 002FC504 7C 08 02 A6 */ mflr r0
/* 802FF5A8 002FC508 90 01 00 14 */ stw r0, 0x14(r1)
/* 802FF5AC 002FC50C 93 E1 00 0C */ stw r31, 0xc(r1)
/* 802FF5B0 002FC510 7C 7F 1B 78 */ mr r31, r3
/* 802FF5B4 002FC514 48 00 23 CD */ bl __ct__14CSaveableStateFv
/* 802FF5B8 002FC518 38 00 00 00 */ li r0, 0
/* 802FF5BC 002FC51C 38 7F 00 8C */ addi r3, r31, 0x8c
/* 802FF5C0 002FC520 90 1F 00 88 */ stw r0, 0x88(r31)
/* 802FF5C4 002FC524 4B FF F4 11 */ bl __ct__18CDrawStringOptionsFv
/* 802FF5C8 002FC528 38 E0 00 00 */ li r7, 0
/* 802FF5CC 002FC52C 38 C0 00 01 */ li r6, 1
/* 802FF5D0 002FC530 90 FF 00 D4 */ stw r7, 0xd4(r31)
/* 802FF5D4 002FC534 38 9F 01 18 */ addi r4, r31, 0x118
/* 802FF5D8 002FC538 38 A0 00 FF */ li r5, 0xff
/* 802FF5DC 002FC53C 38 00 00 80 */ li r0, 0x80
/* 802FF5E0 002FC540 90 FF 00 D8 */ stw r7, 0xd8(r31)
/* 802FF5E4 002FC544 7F E3 FB 78 */ mr r3, r31
/* 802FF5E8 002FC548 90 FF 00 DC */ stw r7, 0xdc(r31)
/* 802FF5EC 002FC54C 90 FF 00 EC */ stw r7, 0xec(r31)
/* 802FF5F0 002FC550 90 FF 00 F0 */ stw r7, 0xf0(r31)
/* 802FF5F4 002FC554 90 FF 00 F4 */ stw r7, 0xf4(r31)
/* 802FF5F8 002FC558 90 FF 00 FC */ stw r7, 0xfc(r31)
/* 802FF5FC 002FC55C 90 FF 01 00 */ stw r7, 0x100(r31)
/* 802FF600 002FC560 90 FF 01 04 */ stw r7, 0x104(r31)
/* 802FF604 002FC564 98 DF 01 08 */ stb r6, 0x108(r31)
/* 802FF608 002FC568 90 9F 01 10 */ stw r4, 0x110(r31)
/* 802FF60C 002FC56C 90 9F 01 14 */ stw r4, 0x114(r31)
/* 802FF610 002FC570 90 9F 01 18 */ stw r4, 0x118(r31)
/* 802FF614 002FC574 90 9F 01 1C */ stw r4, 0x11c(r31)
/* 802FF618 002FC578 90 FF 01 20 */ stw r7, 0x120(r31)
/* 802FF61C 002FC57C 80 9F 00 60 */ lwz r4, 0x60(r31)
/* 802FF620 002FC580 98 A4 00 00 */ stb r5, 0(r4)
/* 802FF624 002FC584 98 A4 00 01 */ stb r5, 1(r4)
/* 802FF628 002FC588 98 A4 00 02 */ stb r5, 2(r4)
/* 802FF62C 002FC58C 98 A4 00 03 */ stb r5, 3(r4)
/* 802FF630 002FC590 80 9F 00 60 */ lwz r4, 0x60(r31)
/* 802FF634 002FC594 98 04 00 04 */ stb r0, 4(r4)
/* 802FF638 002FC598 98 04 00 05 */ stb r0, 5(r4)
/* 802FF63C 002FC59C 98 04 00 06 */ stb r0, 6(r4)
/* 802FF640 002FC5A0 98 A4 00 07 */ stb r5, 7(r4)
/* 802FF644 002FC5A4 80 9F 00 60 */ lwz r4, 0x60(r31)
/* 802FF648 002FC5A8 98 A4 00 08 */ stb r5, 8(r4)
/* 802FF64C 002FC5AC 98 A4 00 09 */ stb r5, 9(r4)
/* 802FF650 002FC5B0 98 A4 00 0A */ stb r5, 0xa(r4)
/* 802FF654 002FC5B4 98 A4 00 0B */ stb r5, 0xb(r4)
/* 802FF658 002FC5B8 4B FF FD 8D */ bl RefreshPalette__16CFontRenderStateFv
/* 802FF65C 002FC5BC 80 01 00 14 */ lwz r0, 0x14(r1)
/* 802FF660 002FC5C0 7F E3 FB 78 */ mr r3, r31
/* 802FF664 002FC5C4 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 802FF668 002FC5C8 7C 08 03 A6 */ mtlr r0
/* 802FF66C 002FC5CC 38 21 00 10 */ addi r1, r1, 0x10
2022-07-14 05:48:03 +00:00
/* 802FF670 002FC5D0 4E 80 00 20 */ blr
.global sub_802ff674
sub_802ff674:
/* 802FF674 002FC5D4 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 802FF678 002FC5D8 7C 08 02 A6 */ mflr r0
/* 802FF67C 002FC5DC 90 01 00 24 */ stw r0, 0x24(r1)
/* 802FF680 002FC5E0 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 802FF684 002FC5E4 93 C1 00 18 */ stw r30, 0x18(r1)
/* 802FF688 002FC5E8 7C 9E 23 78 */ mr r30, r4
/* 802FF68C 002FC5EC 93 A1 00 14 */ stw r29, 0x14(r1)
/* 802FF690 002FC5F0 7C 7D 1B 78 */ mr r29, r3
/* 802FF694 002FC5F4 80 03 00 04 */ lwz r0, 4(r3)
/* 802FF698 002FC5F8 83 E4 00 04 */ lwz r31, 4(r4)
/* 802FF69C 002FC5FC 7C 1E 00 40 */ cmplw r30, r0
/* 802FF6A0 002FC600 40 82 00 08 */ bne lbl_802FF6A8
/* 802FF6A4 002FC604 93 FD 00 04 */ stw r31, 4(r29)
lbl_802FF6A8:
/* 802FF6A8 002FC608 80 1E 00 04 */ lwz r0, 4(r30)
/* 802FF6AC 002FC60C 38 7E 00 08 */ addi r3, r30, 8
/* 802FF6B0 002FC610 80 BE 00 00 */ lwz r5, 0(r30)
/* 802FF6B4 002FC614 38 80 FF FF */ li r4, -1
/* 802FF6B8 002FC618 90 05 00 04 */ stw r0, 4(r5)
/* 802FF6BC 002FC61C 80 1E 00 00 */ lwz r0, 0(r30)
/* 802FF6C0 002FC620 80 BE 00 04 */ lwz r5, 4(r30)
/* 802FF6C4 002FC624 90 05 00 00 */ stw r0, 0(r5)
/* 802FF6C8 002FC628 4B D2 96 5D */ bl __dt__14CSaveableStateFv
/* 802FF6CC 002FC62C 28 1E 00 00 */ cmplwi r30, 0
/* 802FF6D0 002FC630 41 82 00 0C */ beq lbl_802FF6DC
/* 802FF6D4 002FC634 7F C3 F3 78 */ mr r3, r30
/* 802FF6D8 002FC638 48 01 62 59 */ bl Free__7CMemoryFPCv
lbl_802FF6DC:
/* 802FF6DC 002FC63C 80 9D 00 14 */ lwz r4, 0x14(r29)
/* 802FF6E0 002FC640 7F E3 FB 78 */ mr r3, r31
/* 802FF6E4 002FC644 38 04 FF FF */ addi r0, r4, -1
/* 802FF6E8 002FC648 90 1D 00 14 */ stw r0, 0x14(r29)
/* 802FF6EC 002FC64C 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 802FF6F0 002FC650 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 802FF6F4 002FC654 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 802FF6F8 002FC658 80 01 00 24 */ lwz r0, 0x24(r1)
/* 802FF6FC 002FC65C 7C 08 03 A6 */ mtlr r0
/* 802FF700 002FC660 38 21 00 20 */ addi r1, r1, 0x20
2022-07-14 05:48:03 +00:00
/* 802FF704 002FC664 4E 80 00 20 */ blr
.global sub_802ff708
sub_802ff708:
/* 802FF708 002FC668 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 802FF70C 002FC66C 7C 08 02 A6 */ mflr r0
/* 802FF710 002FC670 90 01 00 34 */ stw r0, 0x34(r1)
/* 802FF714 002FC674 93 E1 00 2C */ stw r31, 0x2c(r1)
/* 802FF718 002FC678 7C 9F 23 78 */ mr r31, r4
/* 802FF71C 002FC67C 93 C1 00 28 */ stw r30, 0x28(r1)
/* 802FF720 002FC680 7C 7E 1B 78 */ mr r30, r3
/* 802FF724 002FC684 93 A1 00 24 */ stw r29, 0x24(r1)
/* 802FF728 002FC688 80 03 00 08 */ lwz r0, 8(r3)
/* 802FF72C 002FC68C 7C 1F 00 00 */ cmpw r31, r0
/* 802FF730 002FC690 40 81 00 C0 */ ble lbl_802FF7F0
/* 802FF734 002FC694 57 E3 10 3B */ rlwinm. r3, r31, 2, 0, 0x1d
/* 802FF738 002FC698 40 82 00 0C */ bne lbl_802FF744
/* 802FF73C 002FC69C 3B A0 00 00 */ li r29, 0
/* 802FF740 002FC6A0 48 00 00 18 */ b lbl_802FF758
lbl_802FF744:
/* 802FF744 002FC6A4 3C 80 80 3D */ lis r4, lbl_803D6E60@ha
/* 802FF748 002FC6A8 38 A0 00 00 */ li r5, 0
/* 802FF74C 002FC6AC 38 84 6E 60 */ addi r4, r4, lbl_803D6E60@l
/* 802FF750 002FC6B0 48 01 60 C9 */ bl __nwa__FUlPCcPCc
/* 802FF754 002FC6B4 7C 7D 1B 78 */ mr r29, r3
lbl_802FF758:
/* 802FF758 002FC6B8 80 1E 00 04 */ lwz r0, 4(r30)
/* 802FF75C 002FC6BC 7F A4 EB 78 */ mr r4, r29
/* 802FF760 002FC6C0 80 BE 00 0C */ lwz r5, 0xc(r30)
/* 802FF764 002FC6C4 54 00 10 3A */ slwi r0, r0, 2
/* 802FF768 002FC6C8 7C 65 02 14 */ add r3, r5, r0
/* 802FF76C 002FC6CC 90 A1 00 10 */ stw r5, 0x10(r1)
/* 802FF770 002FC6D0 90 61 00 08 */ stw r3, 8(r1)
/* 802FF774 002FC6D4 90 61 00 0C */ stw r3, 0xc(r1)
/* 802FF778 002FC6D8 90 A1 00 14 */ stw r5, 0x14(r1)
/* 802FF77C 002FC6DC 48 00 00 34 */ b lbl_802FF7B0
lbl_802FF780:
/* 802FF780 002FC6E0 28 04 00 00 */ cmplwi r4, 0
/* 802FF784 002FC6E4 41 82 00 24 */ beq lbl_802FF7A8
/* 802FF788 002FC6E8 88 05 00 00 */ lbz r0, 0(r5)
/* 802FF78C 002FC6EC 98 04 00 00 */ stb r0, 0(r4)
/* 802FF790 002FC6F0 88 05 00 01 */ lbz r0, 1(r5)
/* 802FF794 002FC6F4 98 04 00 01 */ stb r0, 1(r4)
/* 802FF798 002FC6F8 88 05 00 02 */ lbz r0, 2(r5)
/* 802FF79C 002FC6FC 98 04 00 02 */ stb r0, 2(r4)
/* 802FF7A0 002FC700 88 05 00 03 */ lbz r0, 3(r5)
/* 802FF7A4 002FC704 98 04 00 03 */ stb r0, 3(r4)
lbl_802FF7A8:
/* 802FF7A8 002FC708 38 84 00 04 */ addi r4, r4, 4
/* 802FF7AC 002FC70C 38 A5 00 04 */ addi r5, r5, 4
lbl_802FF7B0:
/* 802FF7B0 002FC710 7C 05 18 40 */ cmplw r5, r3
/* 802FF7B4 002FC714 40 82 FF CC */ bne lbl_802FF780
/* 802FF7B8 002FC718 80 1E 00 04 */ lwz r0, 4(r30)
/* 802FF7BC 002FC71C 80 7E 00 0C */ lwz r3, 0xc(r30)
/* 802FF7C0 002FC720 54 00 10 3A */ slwi r0, r0, 2
/* 802FF7C4 002FC724 7C 64 1B 78 */ mr r4, r3
/* 802FF7C8 002FC728 7C 03 02 14 */ add r0, r3, r0
/* 802FF7CC 002FC72C 48 00 00 08 */ b lbl_802FF7D4
lbl_802FF7D0:
/* 802FF7D0 002FC730 38 84 00 04 */ addi r4, r4, 4
lbl_802FF7D4:
/* 802FF7D4 002FC734 7C 04 00 40 */ cmplw r4, r0
/* 802FF7D8 002FC738 40 82 FF F8 */ bne lbl_802FF7D0
/* 802FF7DC 002FC73C 28 03 00 00 */ cmplwi r3, 0
/* 802FF7E0 002FC740 41 82 00 08 */ beq lbl_802FF7E8
/* 802FF7E4 002FC744 48 01 61 4D */ bl Free__7CMemoryFPCv
lbl_802FF7E8:
/* 802FF7E8 002FC748 93 BE 00 0C */ stw r29, 0xc(r30)
/* 802FF7EC 002FC74C 93 FE 00 08 */ stw r31, 8(r30)
lbl_802FF7F0:
/* 802FF7F0 002FC750 80 01 00 34 */ lwz r0, 0x34(r1)
/* 802FF7F4 002FC754 83 E1 00 2C */ lwz r31, 0x2c(r1)
/* 802FF7F8 002FC758 83 C1 00 28 */ lwz r30, 0x28(r1)
/* 802FF7FC 002FC75C 83 A1 00 24 */ lwz r29, 0x24(r1)
/* 802FF800 002FC760 7C 08 03 A6 */ mtlr r0
/* 802FF804 002FC764 38 21 00 30 */ addi r1, r1, 0x30
/* 802FF808 002FC768 4E 80 00 20 */ blr
2022-07-18 05:20:04 +00:00
.section .sdata2, "a"
.balign 8
2022-07-18 05:20:04 +00:00
.global lbl_805AE458
lbl_805AE458:
# ROM: 0x3FACF8
.double 4.503601774854144E15
2022-07-18 05:21:27 +00:00
.section .rodata
.balign 8
2022-07-18 05:21:27 +00:00
.global lbl_803D6E60
lbl_803D6E60:
# ROM: 0x3D3E60
.asciz "??(??)"
.balign 4