match ansi_files.c

also various data cleanups
This commit is contained in:
EpochFlame 2022-02-08 22:51:16 -05:00
parent f9eb2c70cc
commit 351b7f2755
10 changed files with 228 additions and 871 deletions

View File

@ -1,173 +0,0 @@
.include "macros.inc"
.section .data, "wa" # 0x8049E220 - 0x804EFC20
.balign 8
.global __files
__files:
.4byte 0x00000000
.4byte 0x0A800000
.4byte 0x00000000
.4byte 0x00000000
.4byte 0x00000000
.4byte 0x00000000
.4byte 0x00000000
.4byte stdin_buff
.4byte 0x00000100
.4byte stdin_buff
.4byte 0x00000000
.4byte 0x00000000
.4byte 0x00000000
.4byte 0x00000000
.4byte 0x00000000
.4byte __read_console
.4byte __write_console
.4byte __close_console
.4byte 0x00000000
.4byte lbl_804A6998
lbl_804A6998:
.4byte 0x00000001
.4byte 0x12800000
.4byte 0x00000000
.4byte 0x00000000
.4byte 0x00000000
.4byte 0x00000000
.4byte 0x00000000
.4byte stdout_buff
.4byte 0x00000100
.4byte stdout_buff
.4byte 0x00000000
.4byte 0x00000000
.4byte 0x00000000
.4byte 0x00000000
.4byte 0x00000000
.4byte __read_console
.4byte __write_console
.4byte __close_console
.4byte 0x00000000
.4byte lbl_804A69E8
lbl_804A69E8:
.4byte 0x00000002
.4byte 0x10800000
.4byte 0x00000000
.4byte 0x00000000
.4byte 0x00000000
.4byte 0x00000000
.4byte 0x00000000
.4byte stderr_buff
.4byte 0x00000100
.4byte stderr_buff
.4byte 0x00000000
.4byte 0x00000000
.4byte 0x00000000
.4byte 0x00000000
.4byte 0x00000000
.4byte __read_console
.4byte __write_console
.4byte __close_console
.4byte 0x00000000
.4byte lbl_804A6A38
lbl_804A6A38:
.4byte 0x00000000
.4byte 0x00000000
.4byte 0x00000000
.4byte 0x00000000
.4byte 0x00000000
.4byte 0x00000000
.4byte 0x00000000
.4byte 0x00000000
.4byte 0x00000000
.4byte 0x00000000
.4byte 0x00000000
.4byte 0x00000000
.4byte 0x00000000
.4byte 0x00000000
.4byte 0x00000000
.4byte 0x00000000
.4byte 0x00000000
.4byte 0x00000000
.4byte 0x00000000
.4byte 0x00000000
.section .text, "ax" # 0x800056C0 - 0x80472F00
.global __flush_all
__flush_all:
/* 800C2A04 000BF944 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 800C2A08 000BF948 7C 08 02 A6 */ mflr r0
/* 800C2A0C 000BF94C 3C 60 80 4A */ lis r3, __files@ha
/* 800C2A10 000BF950 90 01 00 14 */ stw r0, 0x14(r1)
/* 800C2A14 000BF954 38 03 69 48 */ addi r0, r3, __files@l
/* 800C2A18 000BF958 93 E1 00 0C */ stw r31, 0xc(r1)
/* 800C2A1C 000BF95C 3B E0 00 00 */ li r31, 0
/* 800C2A20 000BF960 93 C1 00 08 */ stw r30, 8(r1)
/* 800C2A24 000BF964 7C 1E 03 78 */ mr r30, r0
/* 800C2A28 000BF968 48 00 00 28 */ b lbl_800C2A50
lbl_800C2A2C:
/* 800C2A2C 000BF96C A0 1E 00 04 */ lhz r0, 4(r30)
/* 800C2A30 000BF970 54 00 D7 7F */ rlwinm. r0, r0, 0x1a, 0x1d, 0x1f
/* 800C2A34 000BF974 41 82 00 18 */ beq lbl_800C2A4C
/* 800C2A38 000BF978 7F C3 F3 78 */ mr r3, r30
/* 800C2A3C 000BF97C 48 00 3B D5 */ bl fflush
/* 800C2A40 000BF980 2C 03 00 00 */ cmpwi r3, 0
/* 800C2A44 000BF984 41 82 00 08 */ beq lbl_800C2A4C
/* 800C2A48 000BF988 3B E0 FF FF */ li r31, -1
lbl_800C2A4C:
/* 800C2A4C 000BF98C 83 DE 00 4C */ lwz r30, 0x4c(r30)
lbl_800C2A50:
/* 800C2A50 000BF990 28 1E 00 00 */ cmplwi r30, 0
/* 800C2A54 000BF994 40 82 FF D8 */ bne lbl_800C2A2C
/* 800C2A58 000BF998 80 01 00 14 */ lwz r0, 0x14(r1)
/* 800C2A5C 000BF99C 7F E3 FB 78 */ mr r3, r31
/* 800C2A60 000BF9A0 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 800C2A64 000BF9A4 83 C1 00 08 */ lwz r30, 8(r1)
/* 800C2A68 000BF9A8 7C 08 03 A6 */ mtlr r0
/* 800C2A6C 000BF9AC 38 21 00 10 */ addi r1, r1, 0x10
/* 800C2A70 000BF9B0 4E 80 00 20 */ blr
.global __close_all
__close_all:
/* 800C2A74 000BF9B4 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 800C2A78 000BF9B8 7C 08 02 A6 */ mflr r0
/* 800C2A7C 000BF9BC 3C 80 80 4A */ lis r4, __files@ha
/* 800C2A80 000BF9C0 38 60 00 02 */ li r3, 2
/* 800C2A84 000BF9C4 90 01 00 14 */ stw r0, 0x14(r1)
/* 800C2A88 000BF9C8 38 04 69 48 */ addi r0, r4, __files@l
/* 800C2A8C 000BF9CC 93 E1 00 0C */ stw r31, 0xc(r1)
/* 800C2A90 000BF9D0 7C 1F 03 78 */ mr r31, r0
/* 800C2A94 000BF9D4 48 00 37 C9 */ bl __begin_critical_region
/* 800C2A98 000BF9D8 48 00 00 60 */ b lbl_800C2AF8
lbl_800C2A9C:
/* 800C2A9C 000BF9DC A0 1F 00 04 */ lhz r0, 4(r31)
/* 800C2AA0 000BF9E0 54 00 D7 7F */ rlwinm. r0, r0, 0x1a, 0x1d, 0x1f
/* 800C2AA4 000BF9E4 41 82 00 0C */ beq lbl_800C2AB0
/* 800C2AA8 000BF9E8 7F E3 FB 78 */ mr r3, r31
/* 800C2AAC 000BF9EC 48 00 3C 9D */ bl fclose
lbl_800C2AB0:
/* 800C2AB0 000BF9F0 7F E3 FB 78 */ mr r3, r31
/* 800C2AB4 000BF9F4 83 FF 00 4C */ lwz r31, 0x4c(r31)
/* 800C2AB8 000BF9F8 88 03 00 0C */ lbz r0, 0xc(r3)
/* 800C2ABC 000BF9FC 28 00 00 00 */ cmplwi r0, 0
/* 800C2AC0 000BFA00 41 82 00 0C */ beq lbl_800C2ACC
/* 800C2AC4 000BFA04 4B FF FA 8D */ bl free
/* 800C2AC8 000BFA08 48 00 00 30 */ b lbl_800C2AF8
lbl_800C2ACC:
/* 800C2ACC 000BFA0C A0 03 00 04 */ lhz r0, 4(r3)
/* 800C2AD0 000BFA10 38 80 00 03 */ li r4, 3
/* 800C2AD4 000BFA14 50 80 35 F2 */ rlwimi r0, r4, 6, 0x17, 0x19
/* 800C2AD8 000BFA18 28 1F 00 00 */ cmplwi r31, 0
/* 800C2ADC 000BFA1C B0 03 00 04 */ sth r0, 4(r3)
/* 800C2AE0 000BFA20 41 82 00 18 */ beq lbl_800C2AF8
/* 800C2AE4 000BFA24 88 1F 00 0C */ lbz r0, 0xc(r31)
/* 800C2AE8 000BFA28 28 00 00 00 */ cmplwi r0, 0
/* 800C2AEC 000BFA2C 41 82 00 0C */ beq lbl_800C2AF8
/* 800C2AF0 000BFA30 38 00 00 00 */ li r0, 0
/* 800C2AF4 000BFA34 90 03 00 4C */ stw r0, 0x4c(r3)
lbl_800C2AF8:
/* 800C2AF8 000BFA38 28 1F 00 00 */ cmplwi r31, 0
/* 800C2AFC 000BFA3C 40 82 FF A0 */ bne lbl_800C2A9C
/* 800C2B00 000BFA40 38 60 00 02 */ li r3, 2
/* 800C2B04 000BFA44 48 00 37 55 */ bl __end_critical_region
/* 800C2B08 000BFA48 80 01 00 14 */ lwz r0, 0x14(r1)
/* 800C2B0C 000BFA4C 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 800C2B10 000BFA50 7C 08 03 A6 */ mtlr r0
/* 800C2B14 000BFA54 38 21 00 10 */ addi r1, r1, 0x10
/* 800C2B18 000BFA58 4E 80 00 20 */ blr

View File

@ -1,521 +0,0 @@
.include "macros.inc"
.section .rodata # 0x804732E0 - 0x8049E220
.balign 8
lbl_80481428:
.asciz "pikiContainer"
.balign 4
lbl_80481438:
.asciz "pikiContainer.cpp"
.balign 4
lbl_8048144C:
.asciz "P2Assert"
.balign 4
lbl_80481458:
.asciz "# PikiCounter\r\n"
.balign 4
lbl_80481468:
.asciz "\t# col%d happa%d\r\n"
.section .data, "wa" # 0x8049E220 - 0x804EFC20
.balign 8
.global __vt__Q24Game13PikiContainer
__vt__Q24Game13PikiContainer:
.4byte 0
.4byte 0
.4byte read__Q24Game13PikiContainerFR6Stream
.4byte write__Q24Game13PikiContainerFR6Stream
.section .text, "ax" # 0x800056C0 - 0x80472F00
.global __ct__Q24Game13PikiContainerFv
__ct__Q24Game13PikiContainerFv:
/* 801F1240 001EE180 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 801F1244 001EE184 7C 08 02 A6 */ mflr r0
/* 801F1248 001EE188 3C 80 80 4C */ lis r4, __vt__Q24Game13PikiContainer@ha
/* 801F124C 001EE18C 90 01 00 14 */ stw r0, 0x14(r1)
/* 801F1250 001EE190 38 04 BB F8 */ addi r0, r4, __vt__Q24Game13PikiContainer@l
/* 801F1254 001EE194 93 E1 00 0C */ stw r31, 0xc(r1)
/* 801F1258 001EE198 7C 7F 1B 78 */ mr r31, r3
/* 801F125C 001EE19C 38 60 00 54 */ li r3, 0x54
/* 801F1260 001EE1A0 90 1F 00 00 */ stw r0, 0(r31)
/* 801F1264 001EE1A4 4B E3 2D 49 */ bl __nwa__FUl
/* 801F1268 001EE1A8 90 7F 00 04 */ stw r3, 4(r31)
/* 801F126C 001EE1AC 7F E3 FB 78 */ mr r3, r31
/* 801F1270 001EE1B0 48 00 00 1D */ bl clear__Q24Game13PikiContainerFv
/* 801F1274 001EE1B4 80 01 00 14 */ lwz r0, 0x14(r1)
/* 801F1278 001EE1B8 7F E3 FB 78 */ mr r3, r31
/* 801F127C 001EE1BC 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 801F1280 001EE1C0 7C 08 03 A6 */ mtlr r0
/* 801F1284 001EE1C4 38 21 00 10 */ addi r1, r1, 0x10
/* 801F1288 001EE1C8 4E 80 00 20 */ blr
.global clear__Q24Game13PikiContainerFv
clear__Q24Game13PikiContainerFv:
/* 801F128C 001EE1CC 38 00 00 03 */ li r0, 3
/* 801F1290 001EE1D0 39 60 00 00 */ li r11, 0
/* 801F1294 001EE1D4 7C 09 03 A6 */ mtctr r0
/* 801F1298 001EE1D8 7D 6A 5B 78 */ mr r10, r11
lbl_801F129C:
/* 801F129C 001EE1DC 80 83 00 04 */ lwz r4, 4(r3)
/* 801F12A0 001EE1E0 39 0B 00 04 */ addi r8, r11, 4
/* 801F12A4 001EE1E4 38 EB 00 08 */ addi r7, r11, 8
/* 801F12A8 001EE1E8 38 CB 00 0C */ addi r6, r11, 0xc
/* 801F12AC 001EE1EC 7D 44 59 2E */ stwx r10, r4, r11
/* 801F12B0 001EE1F0 38 AB 00 10 */ addi r5, r11, 0x10
/* 801F12B4 001EE1F4 38 8B 00 14 */ addi r4, r11, 0x14
/* 801F12B8 001EE1F8 38 0B 00 18 */ addi r0, r11, 0x18
/* 801F12BC 001EE1FC 81 23 00 04 */ lwz r9, 4(r3)
/* 801F12C0 001EE200 39 6B 00 1C */ addi r11, r11, 0x1c
/* 801F12C4 001EE204 7D 49 41 2E */ stwx r10, r9, r8
/* 801F12C8 001EE208 81 03 00 04 */ lwz r8, 4(r3)
/* 801F12CC 001EE20C 7D 48 39 2E */ stwx r10, r8, r7
/* 801F12D0 001EE210 80 E3 00 04 */ lwz r7, 4(r3)
/* 801F12D4 001EE214 7D 47 31 2E */ stwx r10, r7, r6
/* 801F12D8 001EE218 80 C3 00 04 */ lwz r6, 4(r3)
/* 801F12DC 001EE21C 7D 46 29 2E */ stwx r10, r6, r5
/* 801F12E0 001EE220 80 A3 00 04 */ lwz r5, 4(r3)
/* 801F12E4 001EE224 7D 45 21 2E */ stwx r10, r5, r4
/* 801F12E8 001EE228 80 83 00 04 */ lwz r4, 4(r3)
/* 801F12EC 001EE22C 7D 44 01 2E */ stwx r10, r4, r0
/* 801F12F0 001EE230 42 00 FF AC */ bdnz lbl_801F129C
/* 801F12F4 001EE234 4E 80 00 20 */ blr
.global __as__Q24Game13PikiContainerFRQ24Game13PikiContainer
__as__Q24Game13PikiContainerFRQ24Game13PikiContainer:
/* 801F12F8 001EE238 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 801F12FC 001EE23C 38 00 00 03 */ li r0, 3
/* 801F1300 001EE240 38 A0 00 00 */ li r5, 0
/* 801F1304 001EE244 93 E1 00 0C */ stw r31, 0xc(r1)
/* 801F1308 001EE248 7C 09 03 A6 */ mtctr r0
lbl_801F130C:
/* 801F130C 001EE24C 80 E4 00 04 */ lwz r7, 4(r4)
/* 801F1310 001EE250 39 85 00 04 */ addi r12, r5, 4
/* 801F1314 001EE254 80 C3 00 04 */ lwz r6, 4(r3)
/* 801F1318 001EE258 39 65 00 08 */ addi r11, r5, 8
/* 801F131C 001EE25C 7C 07 28 2E */ lwzx r0, r7, r5
/* 801F1320 001EE260 39 45 00 0C */ addi r10, r5, 0xc
/* 801F1324 001EE264 39 25 00 10 */ addi r9, r5, 0x10
/* 801F1328 001EE268 39 05 00 14 */ addi r8, r5, 0x14
/* 801F132C 001EE26C 7C 06 29 2E */ stwx r0, r6, r5
/* 801F1330 001EE270 38 E5 00 18 */ addi r7, r5, 0x18
/* 801F1334 001EE274 38 A5 00 1C */ addi r5, r5, 0x1c
/* 801F1338 001EE278 83 E4 00 04 */ lwz r31, 4(r4)
/* 801F133C 001EE27C 80 C3 00 04 */ lwz r6, 4(r3)
/* 801F1340 001EE280 7C 1F 60 2E */ lwzx r0, r31, r12
/* 801F1344 001EE284 7C 06 61 2E */ stwx r0, r6, r12
/* 801F1348 001EE288 81 84 00 04 */ lwz r12, 4(r4)
/* 801F134C 001EE28C 80 C3 00 04 */ lwz r6, 4(r3)
/* 801F1350 001EE290 7C 0C 58 2E */ lwzx r0, r12, r11
/* 801F1354 001EE294 7C 06 59 2E */ stwx r0, r6, r11
/* 801F1358 001EE298 81 64 00 04 */ lwz r11, 4(r4)
/* 801F135C 001EE29C 80 C3 00 04 */ lwz r6, 4(r3)
/* 801F1360 001EE2A0 7C 0B 50 2E */ lwzx r0, r11, r10
/* 801F1364 001EE2A4 7C 06 51 2E */ stwx r0, r6, r10
/* 801F1368 001EE2A8 81 44 00 04 */ lwz r10, 4(r4)
/* 801F136C 001EE2AC 80 C3 00 04 */ lwz r6, 4(r3)
/* 801F1370 001EE2B0 7C 0A 48 2E */ lwzx r0, r10, r9
/* 801F1374 001EE2B4 7C 06 49 2E */ stwx r0, r6, r9
/* 801F1378 001EE2B8 81 24 00 04 */ lwz r9, 4(r4)
/* 801F137C 001EE2BC 80 C3 00 04 */ lwz r6, 4(r3)
/* 801F1380 001EE2C0 7C 09 40 2E */ lwzx r0, r9, r8
/* 801F1384 001EE2C4 7C 06 41 2E */ stwx r0, r6, r8
/* 801F1388 001EE2C8 81 04 00 04 */ lwz r8, 4(r4)
/* 801F138C 001EE2CC 80 C3 00 04 */ lwz r6, 4(r3)
/* 801F1390 001EE2D0 7C 08 38 2E */ lwzx r0, r8, r7
/* 801F1394 001EE2D4 7C 06 39 2E */ stwx r0, r6, r7
/* 801F1398 001EE2D8 42 00 FF 74 */ bdnz lbl_801F130C
/* 801F139C 001EE2DC 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 801F13A0 001EE2E0 38 21 00 10 */ addi r1, r1, 0x10
/* 801F13A4 001EE2E4 4E 80 00 20 */ blr
.global dump__Q24Game13PikiContainerFPc
dump__Q24Game13PikiContainerFPc:
/* 801F13A8 001EE2E8 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 801F13AC 001EE2EC 7C 08 02 A6 */ mflr r0
/* 801F13B0 001EE2F0 90 01 00 24 */ stw r0, 0x24(r1)
/* 801F13B4 001EE2F4 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 801F13B8 001EE2F8 3B E0 00 00 */ li r31, 0
/* 801F13BC 001EE2FC 93 C1 00 18 */ stw r30, 0x18(r1)
/* 801F13C0 001EE300 93 A1 00 14 */ stw r29, 0x14(r1)
/* 801F13C4 001EE304 7C 7D 1B 78 */ mr r29, r3
lbl_801F13C8:
/* 801F13C8 001EE308 7F A3 EB 78 */ mr r3, r29
/* 801F13CC 001EE30C 7F E4 FB 78 */ mr r4, r31
/* 801F13D0 001EE310 48 00 01 E1 */ bl getColorSum__Q24Game13PikiContainerFi
/* 801F13D4 001EE314 3B C0 00 00 */ li r30, 0
lbl_801F13D8:
/* 801F13D8 001EE318 7F A3 EB 78 */ mr r3, r29
/* 801F13DC 001EE31C 7F E4 FB 78 */ mr r4, r31
/* 801F13E0 001EE320 7F C5 F3 78 */ mr r5, r30
/* 801F13E4 001EE324 48 00 00 39 */ bl getCount__Q24Game13PikiContainerFii
/* 801F13E8 001EE328 3B DE 00 01 */ addi r30, r30, 1
/* 801F13EC 001EE32C 2C 1E 00 03 */ cmpwi r30, 3
/* 801F13F0 001EE330 41 80 FF E8 */ blt lbl_801F13D8
/* 801F13F4 001EE334 3B FF 00 01 */ addi r31, r31, 1
/* 801F13F8 001EE338 2C 1F 00 07 */ cmpwi r31, 7
/* 801F13FC 001EE33C 41 80 FF CC */ blt lbl_801F13C8
/* 801F1400 001EE340 80 01 00 24 */ lwz r0, 0x24(r1)
/* 801F1404 001EE344 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 801F1408 001EE348 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 801F140C 001EE34C 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 801F1410 001EE350 7C 08 03 A6 */ mtlr r0
/* 801F1414 001EE354 38 21 00 20 */ addi r1, r1, 0x20
/* 801F1418 001EE358 4E 80 00 20 */ blr
.global getCount__Q24Game13PikiContainerFii
getCount__Q24Game13PikiContainerFii:
/* 801F141C 001EE35C 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 801F1420 001EE360 7C 08 02 A6 */ mflr r0
/* 801F1424 001EE364 90 01 00 24 */ stw r0, 0x24(r1)
/* 801F1428 001EE368 38 00 00 00 */ li r0, 0
/* 801F142C 001EE36C 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 801F1430 001EE370 7C BF 2B 78 */ mr r31, r5
/* 801F1434 001EE374 93 C1 00 18 */ stw r30, 0x18(r1)
/* 801F1438 001EE378 7C 9E 23 79 */ or. r30, r4, r4
/* 801F143C 001EE37C 93 A1 00 14 */ stw r29, 0x14(r1)
/* 801F1440 001EE380 7C 7D 1B 78 */ mr r29, r3
/* 801F1444 001EE384 41 80 00 10 */ blt lbl_801F1454
/* 801F1448 001EE388 2C 1E 00 07 */ cmpwi r30, 7
/* 801F144C 001EE38C 40 80 00 08 */ bge lbl_801F1454
/* 801F1450 001EE390 38 00 00 01 */ li r0, 1
lbl_801F1454:
/* 801F1454 001EE394 54 00 06 3F */ clrlwi. r0, r0, 0x18
/* 801F1458 001EE398 40 82 00 20 */ bne lbl_801F1478
/* 801F145C 001EE39C 3C 60 80 48 */ lis r3, lbl_80481438@ha
/* 801F1460 001EE3A0 3C A0 80 48 */ lis r5, lbl_8048144C@ha
/* 801F1464 001EE3A4 38 63 14 38 */ addi r3, r3, lbl_80481438@l
/* 801F1468 001EE3A8 38 80 00 5F */ li r4, 0x5f
/* 801F146C 001EE3AC 38 A5 14 4C */ addi r5, r5, lbl_8048144C@l
/* 801F1470 001EE3B0 4C C6 31 82 */ crclr 6
/* 801F1474 001EE3B4 4B E3 91 CD */ bl panic_f__12JUTExceptionFPCciPCce
lbl_801F1478:
/* 801F1478 001EE3B8 2C 1F 00 00 */ cmpwi r31, 0
/* 801F147C 001EE3BC 38 00 00 00 */ li r0, 0
/* 801F1480 001EE3C0 41 80 00 10 */ blt lbl_801F1490
/* 801F1484 001EE3C4 2C 1F 00 03 */ cmpwi r31, 3
/* 801F1488 001EE3C8 40 80 00 08 */ bge lbl_801F1490
/* 801F148C 001EE3CC 38 00 00 01 */ li r0, 1
lbl_801F1490:
/* 801F1490 001EE3D0 54 00 06 3F */ clrlwi. r0, r0, 0x18
/* 801F1494 001EE3D4 40 82 00 20 */ bne lbl_801F14B4
/* 801F1498 001EE3D8 3C 60 80 48 */ lis r3, lbl_80481438@ha
/* 801F149C 001EE3DC 3C A0 80 48 */ lis r5, lbl_8048144C@ha
/* 801F14A0 001EE3E0 38 63 14 38 */ addi r3, r3, lbl_80481438@l
/* 801F14A4 001EE3E4 38 80 00 60 */ li r4, 0x60
/* 801F14A8 001EE3E8 38 A5 14 4C */ addi r5, r5, lbl_8048144C@l
/* 801F14AC 001EE3EC 4C C6 31 82 */ crclr 6
/* 801F14B0 001EE3F0 4B E3 91 91 */ bl panic_f__12JUTExceptionFPCciPCce
lbl_801F14B4:
/* 801F14B4 001EE3F4 1C 1E 00 03 */ mulli r0, r30, 3
/* 801F14B8 001EE3F8 80 7D 00 04 */ lwz r3, 4(r29)
/* 801F14BC 001EE3FC 7C 1F 02 14 */ add r0, r31, r0
/* 801F14C0 001EE400 54 00 10 3A */ slwi r0, r0, 2
/* 801F14C4 001EE404 7C 63 02 14 */ add r3, r3, r0
/* 801F14C8 001EE408 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 801F14CC 001EE40C 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 801F14D0 001EE410 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 801F14D4 001EE414 80 01 00 24 */ lwz r0, 0x24(r1)
/* 801F14D8 001EE418 7C 08 03 A6 */ mtlr r0
/* 801F14DC 001EE41C 38 21 00 20 */ addi r1, r1, 0x20
/* 801F14E0 001EE420 4E 80 00 20 */ blr
.global __cl__Q24Game13PikiContainerFPQ24Game4Piki
__cl__Q24Game13PikiContainerFPQ24Game4Piki:
/* 801F14E4 001EE424 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 801F14E8 001EE428 7C 08 02 A6 */ mflr r0
/* 801F14EC 001EE42C 90 01 00 24 */ stw r0, 0x24(r1)
/* 801F14F0 001EE430 38 00 00 00 */ li r0, 0
/* 801F14F4 001EE434 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 801F14F8 001EE438 93 C1 00 18 */ stw r30, 0x18(r1)
/* 801F14FC 001EE43C 93 A1 00 14 */ stw r29, 0x14(r1)
/* 801F1500 001EE440 7C 7D 1B 78 */ mr r29, r3
/* 801F1504 001EE444 8B C4 02 B8 */ lbz r30, 0x2b8(r4)
/* 801F1508 001EE448 8B E4 02 B9 */ lbz r31, 0x2b9(r4)
/* 801F150C 001EE44C 2C 1E 00 00 */ cmpwi r30, 0
/* 801F1510 001EE450 41 80 00 10 */ blt lbl_801F1520
/* 801F1514 001EE454 2C 1E 00 07 */ cmpwi r30, 7
/* 801F1518 001EE458 40 80 00 08 */ bge lbl_801F1520
/* 801F151C 001EE45C 38 00 00 01 */ li r0, 1
lbl_801F1520:
/* 801F1520 001EE460 54 00 06 3F */ clrlwi. r0, r0, 0x18
/* 801F1524 001EE464 40 82 00 20 */ bne lbl_801F1544
/* 801F1528 001EE468 3C 60 80 48 */ lis r3, lbl_80481438@ha
/* 801F152C 001EE46C 3C A0 80 48 */ lis r5, lbl_8048144C@ha
/* 801F1530 001EE470 38 63 14 38 */ addi r3, r3, lbl_80481438@l
/* 801F1534 001EE474 38 80 00 5F */ li r4, 0x5f
/* 801F1538 001EE478 38 A5 14 4C */ addi r5, r5, lbl_8048144C@l
/* 801F153C 001EE47C 4C C6 31 82 */ crclr 6
/* 801F1540 001EE480 4B E3 91 01 */ bl panic_f__12JUTExceptionFPCciPCce
lbl_801F1544:
/* 801F1544 001EE484 2C 1F 00 00 */ cmpwi r31, 0
/* 801F1548 001EE488 38 00 00 00 */ li r0, 0
/* 801F154C 001EE48C 41 80 00 10 */ blt lbl_801F155C
/* 801F1550 001EE490 2C 1F 00 03 */ cmpwi r31, 3
/* 801F1554 001EE494 40 80 00 08 */ bge lbl_801F155C
/* 801F1558 001EE498 38 00 00 01 */ li r0, 1
lbl_801F155C:
/* 801F155C 001EE49C 54 00 06 3F */ clrlwi. r0, r0, 0x18
/* 801F1560 001EE4A0 40 82 00 20 */ bne lbl_801F1580
/* 801F1564 001EE4A4 3C 60 80 48 */ lis r3, lbl_80481438@ha
/* 801F1568 001EE4A8 3C A0 80 48 */ lis r5, lbl_8048144C@ha
/* 801F156C 001EE4AC 38 63 14 38 */ addi r3, r3, lbl_80481438@l
/* 801F1570 001EE4B0 38 80 00 60 */ li r4, 0x60
/* 801F1574 001EE4B4 38 A5 14 4C */ addi r5, r5, lbl_8048144C@l
/* 801F1578 001EE4B8 4C C6 31 82 */ crclr 6
/* 801F157C 001EE4BC 4B E3 90 C5 */ bl panic_f__12JUTExceptionFPCciPCce
lbl_801F1580:
/* 801F1580 001EE4C0 1C 1E 00 03 */ mulli r0, r30, 3
/* 801F1584 001EE4C4 80 7D 00 04 */ lwz r3, 4(r29)
/* 801F1588 001EE4C8 7C 1F 02 14 */ add r0, r31, r0
/* 801F158C 001EE4CC 54 00 10 3A */ slwi r0, r0, 2
/* 801F1590 001EE4D0 7C 63 02 14 */ add r3, r3, r0
/* 801F1594 001EE4D4 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 801F1598 001EE4D8 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 801F159C 001EE4DC 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 801F15A0 001EE4E0 80 01 00 24 */ lwz r0, 0x24(r1)
/* 801F15A4 001EE4E4 7C 08 03 A6 */ mtlr r0
/* 801F15A8 001EE4E8 38 21 00 20 */ addi r1, r1, 0x20
/* 801F15AC 001EE4EC 4E 80 00 20 */ blr
.global getColorSum__Q24Game13PikiContainerFi
getColorSum__Q24Game13PikiContainerFi:
/* 801F15B0 001EE4F0 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 801F15B4 001EE4F4 7C 08 02 A6 */ mflr r0
/* 801F15B8 001EE4F8 90 01 00 24 */ stw r0, 0x24(r1)
/* 801F15BC 001EE4FC BF 61 00 0C */ stmw r27, 0xc(r1)
/* 801F15C0 001EE500 7C 9D 23 78 */ mr r29, r4
/* 801F15C4 001EE504 1C 1D 00 03 */ mulli r0, r29, 3
/* 801F15C8 001EE508 7C 7C 1B 78 */ mr r28, r3
/* 801F15CC 001EE50C 3B E0 00 00 */ li r31, 0
/* 801F15D0 001EE510 3B C0 00 00 */ li r30, 0
/* 801F15D4 001EE514 54 1B 10 3A */ slwi r27, r0, 2
lbl_801F15D8:
/* 801F15D8 001EE518 2C 1D 00 00 */ cmpwi r29, 0
/* 801F15DC 001EE51C 38 00 00 00 */ li r0, 0
/* 801F15E0 001EE520 41 80 00 10 */ blt lbl_801F15F0
/* 801F15E4 001EE524 2C 1D 00 07 */ cmpwi r29, 7
/* 801F15E8 001EE528 40 80 00 08 */ bge lbl_801F15F0
/* 801F15EC 001EE52C 38 00 00 01 */ li r0, 1
lbl_801F15F0:
/* 801F15F0 001EE530 54 00 06 3F */ clrlwi. r0, r0, 0x18
/* 801F15F4 001EE534 40 82 00 20 */ bne lbl_801F1614
/* 801F15F8 001EE538 3C 60 80 48 */ lis r3, lbl_80481438@ha
/* 801F15FC 001EE53C 3C A0 80 48 */ lis r5, lbl_8048144C@ha
/* 801F1600 001EE540 38 63 14 38 */ addi r3, r3, lbl_80481438@l
/* 801F1604 001EE544 38 80 00 5F */ li r4, 0x5f
/* 801F1608 001EE548 38 A5 14 4C */ addi r5, r5, lbl_8048144C@l
/* 801F160C 001EE54C 4C C6 31 82 */ crclr 6
/* 801F1610 001EE550 4B E3 90 31 */ bl panic_f__12JUTExceptionFPCciPCce
lbl_801F1614:
/* 801F1614 001EE554 2C 1E 00 00 */ cmpwi r30, 0
/* 801F1618 001EE558 38 00 00 00 */ li r0, 0
/* 801F161C 001EE55C 41 80 00 10 */ blt lbl_801F162C
/* 801F1620 001EE560 2C 1E 00 03 */ cmpwi r30, 3
/* 801F1624 001EE564 40 80 00 08 */ bge lbl_801F162C
/* 801F1628 001EE568 38 00 00 01 */ li r0, 1
lbl_801F162C:
/* 801F162C 001EE56C 54 00 06 3F */ clrlwi. r0, r0, 0x18
/* 801F1630 001EE570 40 82 00 20 */ bne lbl_801F1650
/* 801F1634 001EE574 3C 60 80 48 */ lis r3, lbl_80481438@ha
/* 801F1638 001EE578 3C A0 80 48 */ lis r5, lbl_8048144C@ha
/* 801F163C 001EE57C 38 63 14 38 */ addi r3, r3, lbl_80481438@l
/* 801F1640 001EE580 38 80 00 60 */ li r4, 0x60
/* 801F1644 001EE584 38 A5 14 4C */ addi r5, r5, lbl_8048144C@l
/* 801F1648 001EE588 4C C6 31 82 */ crclr 6
/* 801F164C 001EE58C 4B E3 8F F5 */ bl panic_f__12JUTExceptionFPCciPCce
lbl_801F1650:
/* 801F1650 001EE590 80 7C 00 04 */ lwz r3, 4(r28)
/* 801F1654 001EE594 3B DE 00 01 */ addi r30, r30, 1
/* 801F1658 001EE598 2C 1E 00 03 */ cmpwi r30, 3
/* 801F165C 001EE59C 7C 03 D8 2E */ lwzx r0, r3, r27
/* 801F1660 001EE5A0 3B 7B 00 04 */ addi r27, r27, 4
/* 801F1664 001EE5A4 7F FF 02 14 */ add r31, r31, r0
/* 801F1668 001EE5A8 41 80 FF 70 */ blt lbl_801F15D8
/* 801F166C 001EE5AC 7F E3 FB 78 */ mr r3, r31
/* 801F1670 001EE5B0 BB 61 00 0C */ lmw r27, 0xc(r1)
/* 801F1674 001EE5B4 80 01 00 24 */ lwz r0, 0x24(r1)
/* 801F1678 001EE5B8 7C 08 03 A6 */ mtlr r0
/* 801F167C 001EE5BC 38 21 00 20 */ addi r1, r1, 0x20
/* 801F1680 001EE5C0 4E 80 00 20 */ blr
.global getTotalSum__Q24Game13PikiContainerFv
getTotalSum__Q24Game13PikiContainerFv:
/* 801F1684 001EE5C4 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 801F1688 001EE5C8 7C 08 02 A6 */ mflr r0
/* 801F168C 001EE5CC 90 01 00 24 */ stw r0, 0x24(r1)
/* 801F1690 001EE5D0 BF 41 00 08 */ stmw r26, 8(r1)
/* 801F1694 001EE5D4 7C 7B 1B 78 */ mr r27, r3
/* 801F1698 001EE5D8 3B C0 00 00 */ li r30, 0
/* 801F169C 001EE5DC 3B A0 00 00 */ li r29, 0
lbl_801F16A0:
/* 801F16A0 001EE5E0 7F BF EB 78 */ mr r31, r29
/* 801F16A4 001EE5E4 57 BA 10 3A */ slwi r26, r29, 2
/* 801F16A8 001EE5E8 3B 80 00 00 */ li r28, 0
lbl_801F16AC:
/* 801F16AC 001EE5EC 2C 1C 00 00 */ cmpwi r28, 0
/* 801F16B0 001EE5F0 38 00 00 00 */ li r0, 0
/* 801F16B4 001EE5F4 41 80 00 10 */ blt lbl_801F16C4
/* 801F16B8 001EE5F8 2C 1C 00 07 */ cmpwi r28, 7
/* 801F16BC 001EE5FC 40 80 00 08 */ bge lbl_801F16C4
/* 801F16C0 001EE600 38 00 00 01 */ li r0, 1
lbl_801F16C4:
/* 801F16C4 001EE604 54 00 06 3F */ clrlwi. r0, r0, 0x18
/* 801F16C8 001EE608 40 82 00 20 */ bne lbl_801F16E8
/* 801F16CC 001EE60C 3C 60 80 48 */ lis r3, lbl_80481438@ha
/* 801F16D0 001EE610 3C A0 80 48 */ lis r5, lbl_8048144C@ha
/* 801F16D4 001EE614 38 63 14 38 */ addi r3, r3, lbl_80481438@l
/* 801F16D8 001EE618 38 80 00 5F */ li r4, 0x5f
/* 801F16DC 001EE61C 38 A5 14 4C */ addi r5, r5, lbl_8048144C@l
/* 801F16E0 001EE620 4C C6 31 82 */ crclr 6
/* 801F16E4 001EE624 4B E3 8F 5D */ bl panic_f__12JUTExceptionFPCciPCce
lbl_801F16E8:
/* 801F16E8 001EE628 2C 1D 00 00 */ cmpwi r29, 0
/* 801F16EC 001EE62C 38 00 00 00 */ li r0, 0
/* 801F16F0 001EE630 41 80 00 10 */ blt lbl_801F1700
/* 801F16F4 001EE634 2C 1D 00 03 */ cmpwi r29, 3
/* 801F16F8 001EE638 40 80 00 08 */ bge lbl_801F1700
/* 801F16FC 001EE63C 38 00 00 01 */ li r0, 1
lbl_801F1700:
/* 801F1700 001EE640 54 00 06 3F */ clrlwi. r0, r0, 0x18
/* 801F1704 001EE644 40 82 00 20 */ bne lbl_801F1724
/* 801F1708 001EE648 3C 60 80 48 */ lis r3, lbl_80481438@ha
/* 801F170C 001EE64C 3C A0 80 48 */ lis r5, lbl_8048144C@ha
/* 801F1710 001EE650 38 63 14 38 */ addi r3, r3, lbl_80481438@l
/* 801F1714 001EE654 38 80 00 60 */ li r4, 0x60
/* 801F1718 001EE658 38 A5 14 4C */ addi r5, r5, lbl_8048144C@l
/* 801F171C 001EE65C 4C C6 31 82 */ crclr 6
/* 801F1720 001EE660 4B E3 8F 21 */ bl panic_f__12JUTExceptionFPCciPCce
lbl_801F1724:
/* 801F1724 001EE664 80 7B 00 04 */ lwz r3, 4(r27)
/* 801F1728 001EE668 3B 9C 00 01 */ addi r28, r28, 1
/* 801F172C 001EE66C 2C 1C 00 07 */ cmpwi r28, 7
/* 801F1730 001EE670 3B FF 00 03 */ addi r31, r31, 3
/* 801F1734 001EE674 7C 03 D0 2E */ lwzx r0, r3, r26
/* 801F1738 001EE678 3B 5A 00 0C */ addi r26, r26, 0xc
/* 801F173C 001EE67C 7F DE 02 14 */ add r30, r30, r0
/* 801F1740 001EE680 41 80 FF 6C */ blt lbl_801F16AC
/* 801F1744 001EE684 3B BD 00 01 */ addi r29, r29, 1
/* 801F1748 001EE688 2C 1D 00 03 */ cmpwi r29, 3
/* 801F174C 001EE68C 41 80 FF 54 */ blt lbl_801F16A0
/* 801F1750 001EE690 7F C3 F3 78 */ mr r3, r30
/* 801F1754 001EE694 BB 41 00 08 */ lmw r26, 8(r1)
/* 801F1758 001EE698 80 01 00 24 */ lwz r0, 0x24(r1)
/* 801F175C 001EE69C 7C 08 03 A6 */ mtlr r0
/* 801F1760 001EE6A0 38 21 00 20 */ addi r1, r1, 0x20
/* 801F1764 001EE6A4 4E 80 00 20 */ blr
.global write__Q24Game13PikiContainerFR6Stream
write__Q24Game13PikiContainerFR6Stream:
/* 801F1768 001EE6A8 94 21 FE D0 */ stwu r1, -0x130(r1)
/* 801F176C 001EE6AC 7C 08 02 A6 */ mflr r0
/* 801F1770 001EE6B0 3C A0 80 48 */ lis r5, lbl_80481428@ha
/* 801F1774 001EE6B4 90 01 01 34 */ stw r0, 0x134(r1)
/* 801F1778 001EE6B8 BF 01 01 10 */ stmw r24, 0x110(r1)
/* 801F177C 001EE6BC 7C 99 23 78 */ mr r25, r4
/* 801F1780 001EE6C0 7C 78 1B 78 */ mr r24, r3
/* 801F1784 001EE6C4 3B C5 14 28 */ addi r30, r5, lbl_80481428@l
/* 801F1788 001EE6C8 7F 23 CB 78 */ mr r3, r25
/* 801F178C 001EE6CC 80 84 04 14 */ lwz r4, 0x414(r4)
/* 801F1790 001EE6D0 48 22 2C A5 */ bl textWriteTab__6StreamFi
/* 801F1794 001EE6D4 7F 23 CB 78 */ mr r3, r25
/* 801F1798 001EE6D8 38 9E 00 30 */ addi r4, r30, 0x30
/* 801F179C 001EE6DC 4C C6 31 82 */ crclr 6
/* 801F17A0 001EE6E0 48 22 2A 3D */ bl textWriteText__6StreamFPce
/* 801F17A4 001EE6E4 3B 60 00 00 */ li r27, 0
/* 801F17A8 001EE6E8 3B 80 00 00 */ li r28, 0
lbl_801F17AC:
/* 801F17AC 001EE6EC 7F 9D E3 78 */ mr r29, r28
/* 801F17B0 001EE6F0 57 9F 10 3A */ slwi r31, r28, 2
/* 801F17B4 001EE6F4 3B 40 00 00 */ li r26, 0
lbl_801F17B8:
/* 801F17B8 001EE6F8 80 99 04 14 */ lwz r4, 0x414(r25)
/* 801F17BC 001EE6FC 7F 23 CB 78 */ mr r3, r25
/* 801F17C0 001EE700 48 22 2C 75 */ bl textWriteTab__6StreamFi
/* 801F17C4 001EE704 2C 1B 00 00 */ cmpwi r27, 0
/* 801F17C8 001EE708 38 00 00 00 */ li r0, 0
/* 801F17CC 001EE70C 41 80 00 10 */ blt lbl_801F17DC
/* 801F17D0 001EE710 2C 1B 00 07 */ cmpwi r27, 7
/* 801F17D4 001EE714 40 80 00 08 */ bge lbl_801F17DC
/* 801F17D8 001EE718 38 00 00 01 */ li r0, 1
lbl_801F17DC:
/* 801F17DC 001EE71C 54 00 06 3F */ clrlwi. r0, r0, 0x18
/* 801F17E0 001EE720 40 82 00 18 */ bne lbl_801F17F8
/* 801F17E4 001EE724 38 7E 00 10 */ addi r3, r30, 0x10
/* 801F17E8 001EE728 38 BE 00 24 */ addi r5, r30, 0x24
/* 801F17EC 001EE72C 38 80 00 5F */ li r4, 0x5f
/* 801F17F0 001EE730 4C C6 31 82 */ crclr 6
/* 801F17F4 001EE734 4B E3 8E 4D */ bl panic_f__12JUTExceptionFPCciPCce
lbl_801F17F8:
/* 801F17F8 001EE738 2C 1A 00 00 */ cmpwi r26, 0
/* 801F17FC 001EE73C 38 00 00 00 */ li r0, 0
/* 801F1800 001EE740 41 80 00 10 */ blt lbl_801F1810
/* 801F1804 001EE744 2C 1A 00 03 */ cmpwi r26, 3
/* 801F1808 001EE748 40 80 00 08 */ bge lbl_801F1810
/* 801F180C 001EE74C 38 00 00 01 */ li r0, 1
lbl_801F1810:
/* 801F1810 001EE750 54 00 06 3F */ clrlwi. r0, r0, 0x18
/* 801F1814 001EE754 40 82 00 18 */ bne lbl_801F182C
/* 801F1818 001EE758 38 7E 00 10 */ addi r3, r30, 0x10
/* 801F181C 001EE75C 38 BE 00 24 */ addi r5, r30, 0x24
/* 801F1820 001EE760 38 80 00 60 */ li r4, 0x60
/* 801F1824 001EE764 4C C6 31 82 */ crclr 6
/* 801F1828 001EE768 4B E3 8E 19 */ bl panic_f__12JUTExceptionFPCciPCce
lbl_801F182C:
/* 801F182C 001EE76C 80 98 00 04 */ lwz r4, 4(r24)
/* 801F1830 001EE770 7F 23 CB 78 */ mr r3, r25
/* 801F1834 001EE774 7C 84 F8 2E */ lwzx r4, r4, r31
/* 801F1838 001EE778 48 22 3F 89 */ bl writeInt__6StreamFi
/* 801F183C 001EE77C 7F 65 DB 78 */ mr r5, r27
/* 801F1840 001EE780 7F 46 D3 78 */ mr r6, r26
/* 801F1844 001EE784 38 61 00 08 */ addi r3, r1, 8
/* 801F1848 001EE788 38 9E 00 40 */ addi r4, r30, 0x40
/* 801F184C 001EE78C 4C C6 31 82 */ crclr 6
/* 801F1850 001EE790 4B ED 5B E9 */ bl sprintf
/* 801F1854 001EE794 7F 23 CB 78 */ mr r3, r25
/* 801F1858 001EE798 38 81 00 08 */ addi r4, r1, 8
/* 801F185C 001EE79C 4C C6 31 82 */ crclr 6
/* 801F1860 001EE7A0 48 22 29 7D */ bl textWriteText__6StreamFPce
/* 801F1864 001EE7A4 3B 5A 00 01 */ addi r26, r26, 1
/* 801F1868 001EE7A8 3B FF 00 04 */ addi r31, r31, 4
/* 801F186C 001EE7AC 2C 1A 00 03 */ cmpwi r26, 3
/* 801F1870 001EE7B0 3B BD 00 01 */ addi r29, r29, 1
/* 801F1874 001EE7B4 41 80 FF 44 */ blt lbl_801F17B8
/* 801F1878 001EE7B8 3B 7B 00 01 */ addi r27, r27, 1
/* 801F187C 001EE7BC 3B 9C 00 03 */ addi r28, r28, 3
/* 801F1880 001EE7C0 2C 1B 00 07 */ cmpwi r27, 7
/* 801F1884 001EE7C4 41 80 FF 28 */ blt lbl_801F17AC
/* 801F1888 001EE7C8 BB 01 01 10 */ lmw r24, 0x110(r1)
/* 801F188C 001EE7CC 80 01 01 34 */ lwz r0, 0x134(r1)
/* 801F1890 001EE7D0 7C 08 03 A6 */ mtlr r0
/* 801F1894 001EE7D4 38 21 01 30 */ addi r1, r1, 0x130
/* 801F1898 001EE7D8 4E 80 00 20 */ blr
.global read__Q24Game13PikiContainerFR6Stream
read__Q24Game13PikiContainerFR6Stream:
/* 801F189C 001EE7DC 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 801F18A0 001EE7E0 7C 08 02 A6 */ mflr r0
/* 801F18A4 001EE7E4 90 01 00 24 */ stw r0, 0x24(r1)
/* 801F18A8 001EE7E8 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 801F18AC 001EE7EC 3B E0 00 00 */ li r31, 0
/* 801F18B0 001EE7F0 93 C1 00 18 */ stw r30, 0x18(r1)
/* 801F18B4 001EE7F4 3B C0 00 00 */ li r30, 0
/* 801F18B8 001EE7F8 93 A1 00 14 */ stw r29, 0x14(r1)
/* 801F18BC 001EE7FC 7C 9D 23 78 */ mr r29, r4
/* 801F18C0 001EE800 93 81 00 10 */ stw r28, 0x10(r1)
/* 801F18C4 001EE804 7C 7C 1B 78 */ mr r28, r3
lbl_801F18C8:
/* 801F18C8 001EE808 7F A3 EB 78 */ mr r3, r29
/* 801F18CC 001EE80C 48 22 31 C5 */ bl readInt__6StreamFv
/* 801F18D0 001EE810 80 9C 00 04 */ lwz r4, 4(r28)
/* 801F18D4 001EE814 3B DE 00 01 */ addi r30, r30, 1
/* 801F18D8 001EE818 2C 1E 00 15 */ cmpwi r30, 0x15
/* 801F18DC 001EE81C 7C 64 F9 2E */ stwx r3, r4, r31
/* 801F18E0 001EE820 3B FF 00 04 */ addi r31, r31, 4
/* 801F18E4 001EE824 41 80 FF E4 */ blt lbl_801F18C8
/* 801F18E8 001EE828 80 01 00 24 */ lwz r0, 0x24(r1)
/* 801F18EC 001EE82C 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 801F18F0 001EE830 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 801F18F4 001EE834 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 801F18F8 001EE838 83 81 00 10 */ lwz r28, 0x10(r1)
/* 801F18FC 001EE83C 7C 08 03 A6 */ mtlr r0
/* 801F1900 001EE840 38 21 00 20 */ addi r1, r1, 0x20
/* 801F1904 001EE844 4E 80 00 20 */ blr

View File

@ -5,26 +5,21 @@ lbl_constructor:
.section .rodata # 0x804732E0 - 0x8049E220
.balign 8
.global lbl_80483720
lbl_80483720:
.4byte 0x00000000
.4byte 0x00000000
.4byte 0x00000000
.4byte 0x76734753
.4byte 0x5F526573
.4byte 0x756C7400
.global lbl_80483738
.balign 4
lbl_8048372C:
.asciz "vsGS_Result"
.balign 4
lbl_80483738:
.4byte 0x76734753
.4byte 0x5F526573
.4byte 0x756C742E
.4byte 0x63707000
.global lbl_80483748
.asciz "vsGS_Result.cpp"
.balign 4
lbl_80483748:
.asciz "P2Assert"
.skip 3
.global lbl_80483754
lbl_80483754:
.balign 4
lbl_80483754: # "Course %d Opened !!\n" Shift-JIS
.4byte 0x81978197
.4byte 0x81972043
.4byte 0x6F757273
@ -32,24 +27,20 @@ lbl_80483754:
.4byte 0x204F7065
.4byte 0x6E656420
.4byte 0x21210A00
.global lbl_80483770
.balign 4
lbl_80483770:
.4byte 0x50534761
.4byte 0x6D652E68
.4byte 0x00000000
.4byte 0x50535363
.4byte 0x656E652E
.4byte 0x68000000
.asciz "PSGame.h"
.balign 4
lbl_8048377C:
.asciz "PSScene.h"
.section .data, "wa" # 0x8049E220 - 0x804EFC20
.balign 8
.global lbl_804C0FE0
lbl_804C0FE0:
.4byte 0x00000000
.4byte 0x00000000
.4byte 0x00000000
.global lbl_804C0FEC
lbl_804C0FEC:
govNAN___Q24Game5P2JST:
.float 0.0
.float 0.0
.float 0.0
lbl_804C0FEC: # local object
.4byte 0x00000000
.4byte 0xFFFFFFFF
.4byte dvdload__Q34Game6VsGame11ResultStateFv
@ -90,19 +81,15 @@ __vt__Q34Game6VsGame11ResultState:
.section .sbss # 0x80514D80 - 0x80516360
.balign 8
.global lbl_80515C70
lbl_80515C70:
gu32NAN___Q24Game5P2JST:
.skip 0x4
.global lbl_80515C74
lbl_80515C74:
gfNAN___Q24Game5P2JST:
.skip 0x4
.section .sdata2, "a" # 0x80516360 - 0x80520E40
.balign 8
.global lbl_8051A2C0
lbl_8051A2C0:
.4byte 0x00000000
.4byte 0x00000000
.float 0.0
.section .text, "ax" # 0x800056C0 - 0x80472F00
.global __ct__Q34Game6VsGame11ResultStateFv
@ -733,15 +720,14 @@ getMemberID__Q28Morimura25DispMemberChallengeResultFv:
/* 8022D0B8 00229FF8 38 21 00 10 */ addi r1, r1, 0x10
/* 8022D0BC 00229FFC 4E 80 00 20 */ blr
.global __sinit_vsGS_Result_cpp
__sinit_vsGS_Result_cpp:
__sinit_vsGS_Result_cpp: #static initializer
/* 8022D0C0 0022A000 3C 80 80 51 */ lis r4, __float_nan@ha
/* 8022D0C4 0022A004 38 00 FF FF */ li r0, -1
/* 8022D0C8 0022A008 C0 04 48 B0 */ lfs f0, __float_nan@l(r4)
/* 8022D0CC 0022A00C 3C 60 80 4C */ lis r3, lbl_804C0FE0@ha
/* 8022D0D0 0022A010 90 0D 95 F0 */ stw r0, lbl_80515C70@sda21(r13)
/* 8022D0D4 0022A014 D4 03 0F E0 */ stfsu f0, lbl_804C0FE0@l(r3)
/* 8022D0D8 0022A018 D0 0D 95 F4 */ stfs f0, lbl_80515C74@sda21(r13)
/* 8022D0CC 0022A00C 3C 60 80 4C */ lis r3, govNAN___Q24Game5P2JST@ha
/* 8022D0D0 0022A010 90 0D 95 F0 */ stw r0, gu32NAN___Q24Game5P2JST@sda21(r13)
/* 8022D0D4 0022A014 D4 03 0F E0 */ stfsu f0, govNAN___Q24Game5P2JST@l(r3)
/* 8022D0D8 0022A018 D0 0D 95 F4 */ stfs f0, gfNAN___Q24Game5P2JST@sda21(r13)
/* 8022D0DC 0022A01C D0 03 00 04 */ stfs f0, 4(r3)
/* 8022D0E0 0022A020 D0 03 00 08 */ stfs f0, 8(r3)
/* 8022D0E4 0022A024 4E 80 00 20 */ blr

View File

@ -5,48 +5,51 @@ lbl_constructor:
.section .rodata # 0x804732E0 - 0x8049E220
.balign 8
.global lbl_80483458
lbl_80483458:
.skip 0xC
.global lbl_80483464
.4byte 0
.4byte 0
.4byte 0
.balign 4
lbl_80483464:
.asciz "vsGS_Title"
.skip 1
.global lbl_80483470
.balign 4
lbl_80483470:
.asciz "caveinfo.txt"
.skip 3
.global lbl_80483480
.balign 4
lbl_80483480:
.asciz "caveinfo_metal.txt"
.skip 1
.global lbl_80483494
.balign 4
lbl_80483494:
.asciz "caveinfo_conc.txt"
.skip 2
.global lbl_804834A8
.balign 4
lbl_804834A8:
.asciz "caveinfo_tsuchi.txt"
.balign 4
lbl_804834BC: #Shift-JIS
.4byte 0x83528393
.4byte 0x834E838A
.4byte 0x815B8367
.4byte 0x00000000
.global lbl_804834CC
.byte 0x00
.balign 4
lbl_804834CC:
.asciz "PSGame.h"
.skip 3
.global lbl_804834D8
.balign 4
lbl_804834D8:
.asciz "P2Assert"
.skip 3
.balign 4
lbl_804834E4:
.asciz "PSScene.h"
.skip 2
.balign 4
lbl_804834F0:
.asciz "from Morimun:STATE_GO:stageNo=%d:playType=%d\n"
.skip 2
.balign 4
lbl_80483520:
.asciz "vsGS_Title.cpp"
.skip 1
.balign 4
lbl_80483530:
.asciz "PikiContainer"
.skip 2
.balign 4
lbl_80483540:
.4byte 0x00000000
.4byte 0x00000001
.4byte 0x00000002
@ -54,19 +57,16 @@ lbl_804834D8:
.section .data, "wa" # 0x8049E220 - 0x804EFC20
.balign 8
.global lbl_804C0DE8
lbl_804C0DE8:
.4byte 0x00000000
.4byte 0x00000000
.4byte 0x00000000
.global "cMaps__24@unnamed@vsGS_Title_cpp@"
"cMaps__24@unnamed@vsGS_Title_cpp@":
govNAN___Q24Game5P2JST:
.float 0.0
.float 0.0
.float 0.0
"cMaps__24@unnamed@vsGS_Title_cpp@": #local object
.4byte lbl_80483470
.4byte lbl_80483480
.4byte lbl_80483494
.4byte lbl_804834A8
.global lbl_804C0E04
lbl_804C0E04:
lbl_804C0E04: #local object
.4byte 0x00000000
.4byte 0xFFFFFFFF
.4byte dvdload__Q34Game6VsGame10TitleStateFv
@ -143,35 +143,26 @@ __vt__Q34Game6VsGame5State:
.4byte "resume__Q24Game32FSMState<Q24Game13VsGameSection>FPQ24Game13VsGameSection"
.4byte "restart__Q24Game32FSMState<Q24Game13VsGameSection>FPQ24Game13VsGameSection"
.4byte "transit__Q24Game32FSMState<Q24Game13VsGameSection>FPQ24Game13VsGameSectioniPQ24Game8StateArg"
.4byte 0
.section .sbss # 0x80514D80 - 0x80516360
.balign 8
.global lbl_80515C60
lbl_80515C60:
gu32NAN___Q24Game5P2JST:
.skip 0x4
.global lbl_80515C64
lbl_80515C64:
gfNAN___Q24Game5P2JST:
.skip 0x4
.section .sdata2, "a" # 0x80516360 - 0x80520E40
.balign 8
.global lbl_8051A250
lbl_8051A250:
.4byte 0x00000000
.global lbl_8051A254
.float 0.0
lbl_8051A254:
.float 1.0
.global lbl_8051A258
lbl_8051A258:
.4byte 0xBF800000
.global lbl_8051A25C
.float -1.0
lbl_8051A25C:
.float 0.5
.global lbl_8051A260
lbl_8051A260:
.4byte 0x3F7FBE77
.4byte 0x00000000
.float 0.999
.section .text, "ax" # 0x800056C0 - 0x80472F00
.global __ct__Q34Game6VsGame10TitleStateFv
@ -1272,15 +1263,14 @@ getMemberID__Q28Morimura25DispMemberChallengeSelectFv:
/* 80229274 002261B4 38 21 00 10 */ addi r1, r1, 0x10
/* 80229278 002261B8 4E 80 00 20 */ blr
.global __sinit_vsGS_Title_cpp
__sinit_vsGS_Title_cpp:
__sinit_vsGS_Title_cpp: # static initializer
/* 8022927C 002261BC 3C 80 80 51 */ lis r4, __float_nan@ha
/* 80229280 002261C0 38 00 FF FF */ li r0, -1
/* 80229284 002261C4 C0 04 48 B0 */ lfs f0, __float_nan@l(r4)
/* 80229288 002261C8 3C 60 80 4C */ lis r3, lbl_804C0DE8@ha
/* 8022928C 002261CC 90 0D 95 E0 */ stw r0, lbl_80515C60@sda21(r13)
/* 80229290 002261D0 D4 03 0D E8 */ stfsu f0, lbl_804C0DE8@l(r3)
/* 80229294 002261D4 D0 0D 95 E4 */ stfs f0, lbl_80515C64@sda21(r13)
/* 80229288 002261C8 3C 60 80 4C */ lis r3, govNAN___Q24Game5P2JST@ha
/* 8022928C 002261CC 90 0D 95 E0 */ stw r0, gu32NAN___Q24Game5P2JST@sda21(r13)
/* 80229290 002261D0 D4 03 0D E8 */ stfsu f0, govNAN___Q24Game5P2JST@l(r3)
/* 80229294 002261D4 D0 0D 95 E4 */ stfs f0, gfNAN___Q24Game5P2JST@sda21(r13)
/* 80229298 002261D8 D0 03 00 04 */ stfs f0, 4(r3)
/* 8022929C 002261DC D0 03 00 08 */ stfs f0, 8(r3)
/* 802292A0 002261E0 4E 80 00 20 */ blr

View File

@ -5,31 +5,29 @@ lbl_constructor:
.section .rodata # 0x804732E0 - 0x8049E220
.balign 8
.global lbl_80483850
lbl_80483850:
.4byte 0x00000000
.4byte 0x00000000
.4byte 0x00000000
.4byte 0x76734753
.4byte 0x5F47616D
.4byte 0x65000000
.4byte 0x50534761
.4byte 0x6D652E68
.4byte 0x00000000
.balign 4
lbl_8048385C:
.asciz "vsGS_Game"
.balign 4
lbl_80483868:
.asciz "PSGame.h"
.balign 4
lbl_80483874:
.asciz "P2Assert"
.skip 3
.4byte 0x50535363
.4byte 0x656E652E
.4byte 0x68000000
.4byte 0x00000000
.balign 4
lbl_80483880:
.asciz "PSScene.h"
.section .data, "wa" # 0x8049E220 - 0x804EFC20
.balign 8
.global lbl_804C1158
lbl_804C1158:
.4byte 0x00000000
.4byte 0x00000000
.4byte 0x00000000
govNAN___Q24Game5P2JST:
.float 0.0
.float 0.0
.float 0.0
.global __vt__Q34Game6VsGame7VSState
__vt__Q34Game6VsGame7VSState:
.4byte 0
@ -56,11 +54,9 @@ __vt__Q34Game6VsGame7VSState:
.section .sbss # 0x80514D80 - 0x80516360
.balign 8
.global lbl_80515C90
lbl_80515C90:
gu32NAN___Q24Game5P2JST:
.skip 0x4
.global lbl_80515C94
lbl_80515C94:
gfNAN___Q24Game5P2JST:
.skip 0x4
.section .text, "ax" # 0x800056C0 - 0x80472F00
@ -140,15 +136,14 @@ lbl_8022EB60:
/* 8022EB9C 0022BADC 38 21 00 20 */ addi r1, r1, 0x20
/* 8022EBA0 0022BAE0 4E 80 00 20 */ blr
.global __sinit_vsGS_VSGame_cpp
__sinit_vsGS_VSGame_cpp:
__sinit_vsGS_VSGame_cpp: #static initializer
/* 8022EBA4 0022BAE4 3C 80 80 51 */ lis r4, __float_nan@ha
/* 8022EBA8 0022BAE8 38 00 FF FF */ li r0, -1
/* 8022EBAC 0022BAEC C0 04 48 B0 */ lfs f0, __float_nan@l(r4)
/* 8022EBB0 0022BAF0 3C 60 80 4C */ lis r3, lbl_804C1158@ha
/* 8022EBB4 0022BAF4 90 0D 96 10 */ stw r0, lbl_80515C90@sda21(r13)
/* 8022EBB8 0022BAF8 D4 03 11 58 */ stfsu f0, lbl_804C1158@l(r3)
/* 8022EBBC 0022BAFC D0 0D 96 14 */ stfs f0, lbl_80515C94@sda21(r13)
/* 8022EBB0 0022BAF0 3C 60 80 4C */ lis r3, govNAN___Q24Game5P2JST@ha
/* 8022EBB4 0022BAF4 90 0D 96 10 */ stw r0, gu32NAN___Q24Game5P2JST@sda21(r13)
/* 8022EBB8 0022BAF8 D4 03 11 58 */ stfsu f0, govNAN___Q24Game5P2JST@l(r3)
/* 8022EBBC 0022BAFC D0 0D 96 14 */ stfs f0, gfNAN___Q24Game5P2JST@sda21(r13)
/* 8022EBC0 0022BB00 D0 03 00 04 */ stfs f0, 4(r3)
/* 8022EBC4 0022BB04 D0 03 00 08 */ stfs f0, 8(r3)
/* 8022EBC8 0022BB08 4E 80 00 20 */ blr

View File

@ -5,48 +5,34 @@ lbl_constructor:
.section .rodata # 0x804732E0 - 0x8049E220
.balign 8
.global lbl_80483788
lbl_80483788:
.4byte 0x63617665
.4byte 0x696E666F
.4byte 0x2E747874
.4byte 0x00000000
.global lbl_80483798
lbl_80483798:
.asciz "caveinfo.txt"
.balign 4
lbl_80483798: #Shift-JIS
.4byte 0x83608383
.4byte 0x838C8393
.4byte 0x83578358
.4byte 0x8365815B
.4byte 0x83570000
.global lbl_804837AC
.balign 4
lbl_804837AC:
.4byte 0x76735374
.4byte 0x61676544
.4byte 0x6174612E
.4byte 0x63707000
.global lbl_804837BC
.asciz "vsStageData.cpp"
.balign 4
lbl_804837BC:
.4byte 0x696C6C65
.4byte 0x67616C20
.4byte 0x73746167
.4byte 0x6520696E
.4byte 0x64657820
.4byte 0x25640A00
.global lbl_804837D4
lbl_804837D4:
.asciz "illegal stage index %d\n"
.balign 4
lbl_804837D4: #Shift-JIS
.4byte 0x91CE90ED
.4byte 0x97708358
.4byte 0x8365815B
.4byte 0x83570000
.4byte 0x00000000
.section .data, "wa" # 0x8049E220 - 0x804EFC20
.balign 8
.global lbl_804C10F0
lbl_804C10F0:
.4byte 0x00000000
.4byte 0x00000000
.4byte 0x00000000
govNAN___Q24Game5P2JST:
.float 0.0
.float 0.0
.float 0.0
.global __vt__Q34Game6VsGame9StageList
__vt__Q34Game6VsGame9StageList:
.4byte 0
@ -71,29 +57,23 @@ __vt__Q34Game13ChallengeGame9StageData:
.4byte 0
.4byte __dt__Q34Game13ChallengeGame9StageDataFv
.4byte getChildCount__5CNodeFv
.4byte 0
.section .sbss # 0x80514D80 - 0x80516360
.balign 8
.global lbl_80515C80
lbl_80515C80:
gu32NAN___Q24Game5P2JST:
.skip 0x4
.global lbl_80515C84
lbl_80515C84:
gfNAN___Q24Game5P2JST:
.skip 0x4
.section .sdata2, "a" # 0x80516360 - 0x80520E40
.balign 8
.global lbl_8051A2E0
lbl_8051A2E0:
.4byte 0x43480000
.global lbl_8051A2E4
.float 200.0
lbl_8051A2E4:
.4byte 0x42C80000
.global lbl_8051A2E8
.float 100.0
.balign 4
lbl_8051A2E8:
.4byte 0x72616E64
.4byte 0x6F6D0000
.asciz "random"
.section .text, "ax" # 0x800056C0 - 0x80472F00
.global read__Q34Game13ChallengeGame9StageDataFR6Stream
@ -861,15 +841,14 @@ lbl_8022E144:
/* 8022E158 0022B098 38 21 00 10 */ addi r1, r1, 0x10
/* 8022E15C 0022B09C 4E 80 00 20 */ blr
.global __sinit_vsStageData_cpp
__sinit_vsStageData_cpp:
__sinit_vsStageData_cpp: #static initializer
/* 8022E160 0022B0A0 3C 80 80 51 */ lis r4, __float_nan@ha
/* 8022E164 0022B0A4 38 00 FF FF */ li r0, -1
/* 8022E168 0022B0A8 C0 04 48 B0 */ lfs f0, __float_nan@l(r4)
/* 8022E16C 0022B0AC 3C 60 80 4C */ lis r3, lbl_804C10F0@ha
/* 8022E170 0022B0B0 90 0D 96 00 */ stw r0, lbl_80515C80@sda21(r13)
/* 8022E174 0022B0B4 D4 03 10 F0 */ stfsu f0, lbl_804C10F0@l(r3)
/* 8022E178 0022B0B8 D0 0D 96 04 */ stfs f0, lbl_80515C84@sda21(r13)
/* 8022E16C 0022B0AC 3C 60 80 4C */ lis r3, govNAN___Q24Game5P2JST@ha
/* 8022E170 0022B0B0 90 0D 96 00 */ stw r0, gu32NAN___Q24Game5P2JST@sda21(r13)
/* 8022E174 0022B0B4 D4 03 10 F0 */ stfsu f0, govNAN___Q24Game5P2JST@l(r3)
/* 8022E178 0022B0B8 D0 0D 96 04 */ stfs f0, gfNAN___Q24Game5P2JST@sda21(r13)
/* 8022E17C 0022B0BC D0 03 00 04 */ stfs f0, 4(r3)
/* 8022E180 0022B0C0 D0 03 00 08 */ stfs f0, 8(r3)
/* 8022E184 0022B0C4 4E 80 00 20 */ blr

View File

@ -10,17 +10,13 @@ __vt__Q34Game6VsGame8TekiNode:
.section .sdata2, "a" # 0x80516360 - 0x80520E40
.balign 8
.global lbl_8051A3C0
lbl_8051A3C0:
.4byte 0x47000000
.global lbl_8051A3C4
lbl_8051A3C4:
.4byte 0x40C90FDB
.global lbl_8051A3C8
.float 32768.0
lbl_8051A3C4: #tau
.float 6.2831855
lbl_8051A3C8:
.4byte 0x42480000
.4byte 0x00000000
.global lbl_8051A3D0
.float 50.0
.balign 8
lbl_8051A3D0:
.4byte 0x43300000
.4byte 0x80000000
@ -47,7 +43,7 @@ __ct__Q34Game6VsGame7TekiMgrFv:
/* 80235330 00232270 4E 80 00 20 */ blr
.global __dt__Q34Game6VsGame8TekiNodeFv
__dt__Q34Game6VsGame8TekiNodeFv:
__dt__Q34Game6VsGame8TekiNodeFv: # weak func
/* 80235334 00232274 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 80235338 00232278 7C 08 02 A6 */ mflr r0
/* 8023533C 0023227C 90 01 00 14 */ stw r0, 0x14(r1)

View File

@ -1,6 +1,9 @@
#ifndef _DOLPHIN_ANSI_FILES_H
#define _DOLPHIN_ANSI_FILES_H
#include "types.h"
typedef unsigned long __file_handle;
typedef unsigned long fpos_t;
typedef struct _IO_FILE _IO_FILE, *P_IO_FILE;
#define __ungetc_buffer_size 2
@ -45,7 +48,13 @@ struct _IO_FILE {
unsigned char char_buffer;
unsigned char char_buffer_overflow;
unsigned char ungetc_buffer[__ungetc_buffer_size];
u32 padding[0xE];
u32 padding[2];
void* buff1;
u32 buffsize;
void* buff2;
u32 padding2[5];
void* io[3];
u32 unknown;
struct _IO_FILE* next_file_struct;
};
@ -53,6 +62,6 @@ typedef struct _IO_FILE FILE;
extern int fflush(FILE* __stream);
extern void free(FILE* __stream);
static FILE __files;
extern FILE __files[4];
#endif

View File

@ -282,7 +282,7 @@ DOLPHIN:=\
$(BUILD_DIR)/src/Dolphin/GCN_mem_alloc.o\
$(BUILD_DIR)/asm/Dolphin/abort_exit.o\
$(BUILD_DIR)/asm/Dolphin/alloc.o\
$(BUILD_DIR)/asm/Dolphin/ansi_files.o\
$(BUILD_DIR)/src/Dolphin/ansi_files.o\
$(BUILD_DIR)/asm/Dolphin/ansi_fp.o\
$(BUILD_DIR)/src/Dolphin/arith.o\
$(BUILD_DIR)/src/Dolphin/buffer_io.o\

View File

@ -5,8 +5,104 @@ extern int fflush(FILE* __stream);
extern void __begin_critical_region(int);
extern void __end_critical_region(int);
extern void fclose(FILE*);
extern char stderr_buff[100];
extern char stdout_buff[100];
extern char stdin_buff[100];
static FILE __files;
extern int __read_console(u32, u32, u32*);
extern int __write_console(u32, u32, u32*, u32);
extern int __close_console(u32);
FILE __files[4] = { { 0,
0,
1,
1,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
&stdin_buff,
0x100,
&stdin_buff,
0,
0,
0,
0,
0,
&__read_console,
&__write_console,
&__close_console,
0,
&__files[1] },
{ 1,
0,
2,
1,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
&stdout_buff,
0x100,
&stdout_buff,
0,
0,
0,
0,
0,
&__read_console,
&__write_console,
&__close_console,
0,
&__files[2] },
{ 2,
0,
2,
0,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
&stderr_buff,
0x100,
&stderr_buff,
0,
0,
0,
0,
0,
&__read_console,
&__write_console,
&__close_console,
0,
&__files[3] } };
/*
* --INFO--
@ -28,7 +124,7 @@ u32 __flush_all(void)
{
u32 retval = 0;
FILE* __stream;
__stream = &__files;
__stream = &__files[0];
while (__stream) {
if ((__stream->mode.file_kind) && (fflush(__stream))) {
retval = -1;
@ -45,7 +141,7 @@ u32 __flush_all(void)
*/
void __close_all(void)
{
FILE* p = &__files;
FILE* p = &__files[0];
FILE* plast;
__begin_critical_region(2);