.include "macros.inc" .section .bss .balign 8 .lcomm lbl_804BFF10, 0xC, 4 .lcomm lbl_804BFF1C, 0x14, 4 .section .sbss, "wa" .balign 8 .global lbl_805A94C0 lbl_805A94C0: .skip 0x4 .global lbl_805A94C4 lbl_805A94C4: .skip 0x4 .global lbl_805A94C8 lbl_805A94C8: .skip 0x4 .global lbl_805A94CC lbl_805A94CC: .skip 0x4 .global lbl_805A94D0 lbl_805A94D0: .skip 0x4 .global lbl_805A94D4 lbl_805A94D4: .skip 0x1 .global lbl_805A94D5 lbl_805A94D5: .skip 0x3 .section .text, "ax" .global LoadToken__Q224CSpawnSystemKeyframeData24CSpawnSystemKeyframeInfoFP11CSimplePool LoadToken__Q224CSpawnSystemKeyframeData24CSpawnSystemKeyframeInfoFP11CSimplePool: /* 80333468 003303C8 94 21 FF E0 */ stwu r1, -0x20(r1) /* 8033346C 003303CC 7C 08 02 A6 */ mflr r0 /* 80333470 003303D0 90 01 00 24 */ stw r0, 0x24(r1) /* 80333474 003303D4 38 A1 00 10 */ addi r5, r1, 0x10 /* 80333478 003303D8 93 E1 00 1C */ stw r31, 0x1c(r1) /* 8033347C 003303DC 7C 7F 1B 78 */ mr r31, r3 /* 80333480 003303E0 3C 60 50 41 */ lis r3, 0x50415254@ha /* 80333484 003303E4 80 DF 00 00 */ lwz r6, 0(r31) /* 80333488 003303E8 38 03 52 54 */ addi r0, r3, 0x50415254@l /* 8033348C 003303EC 38 61 00 08 */ addi r3, r1, 8 /* 80333490 003303F0 90 01 00 10 */ stw r0, 0x10(r1) /* 80333494 003303F4 90 C1 00 14 */ stw r6, 0x14(r1) /* 80333498 003303F8 81 84 00 00 */ lwz r12, 0(r4) /* 8033349C 003303FC 81 8C 00 0C */ lwz r12, 0xc(r12) /* 803334A0 00330400 7D 89 03 A6 */ mtctr r12 /* 803334A4 00330404 4E 80 04 21 */ bctrl /* 803334A8 00330408 88 1F 00 18 */ lbz r0, 0x18(r31) /* 803334AC 0033040C 28 00 00 00 */ cmplwi r0, 0 /* 803334B0 00330410 40 82 00 20 */ bne lbl_803334D0 /* 803334B4 00330414 34 7F 00 10 */ addic. r3, r31, 0x10 /* 803334B8 00330418 41 82 00 0C */ beq lbl_803334C4 /* 803334BC 0033041C 38 81 00 08 */ addi r4, r1, 8 /* 803334C0 00330420 48 00 D9 E9 */ bl __ct__6CTokenFRC6CToken lbl_803334C4: /* 803334C4 00330424 38 00 00 01 */ li r0, 1 /* 803334C8 00330428 98 1F 00 18 */ stb r0, 0x18(r31) /* 803334CC 0033042C 48 00 00 10 */ b lbl_803334DC lbl_803334D0: /* 803334D0 00330430 38 7F 00 10 */ addi r3, r31, 0x10 /* 803334D4 00330434 38 81 00 08 */ addi r4, r1, 8 /* 803334D8 00330438 48 00 D7 ED */ bl __as__6CTokenFRC6CToken lbl_803334DC: /* 803334DC 0033043C 38 61 00 08 */ addi r3, r1, 8 /* 803334E0 00330440 38 80 FF FF */ li r4, -1 /* 803334E4 00330444 48 00 D9 5D */ bl __dt__6CTokenFv /* 803334E8 00330448 38 7F 00 10 */ addi r3, r31, 0x10 /* 803334EC 0033044C 48 00 D8 99 */ bl Lock__6CTokenFv /* 803334F0 00330450 80 01 00 24 */ lwz r0, 0x24(r1) /* 803334F4 00330454 83 E1 00 1C */ lwz r31, 0x1c(r1) /* 803334F8 00330458 7C 08 03 A6 */ mtlr r0 /* 803334FC 0033045C 38 21 00 20 */ addi r1, r1, 0x20 /* 80333500 00330460 4E 80 00 20 */ blr .global sub_80333504 sub_80333504: /* 80333504 00330464 94 21 FF E0 */ stwu r1, -0x20(r1) /* 80333508 00330468 7C 08 02 A6 */ mflr r0 /* 8033350C 0033046C 90 01 00 24 */ stw r0, 0x24(r1) /* 80333510 00330470 93 E1 00 1C */ stw r31, 0x1c(r1) /* 80333514 00330474 7C 9F 23 78 */ mr r31, r4 /* 80333518 00330478 93 C1 00 18 */ stw r30, 0x18(r1) /* 8033351C 0033047C 7C 7E 1B 78 */ mr r30, r3 /* 80333520 00330480 88 0D A9 15 */ lbz r0, lbl_805A94D5@sda21(r13) /* 80333524 00330484 7C 00 07 75 */ extsb. r0, r0 /* 80333528 00330488 40 82 00 4C */ bne lbl_80333574 /* 8033352C 0033048C 38 00 00 00 */ li r0, 0 /* 80333530 00330490 3C 60 80 4C */ lis r3, lbl_804BFF1C@ha /* 80333534 00330494 90 01 00 0C */ stw r0, 0xc(r1) /* 80333538 00330498 38 63 FF 1C */ addi r3, r3, lbl_804BFF1C@l /* 8033353C 0033049C 38 81 00 08 */ addi r4, r1, 8 /* 80333540 003304A0 90 01 00 10 */ stw r0, 0x10(r1) /* 80333544 003304A4 90 01 00 14 */ stw r0, 0x14(r1) /* 80333548 003304A8 48 00 00 9D */ bl sub_803335e4 /* 8033354C 003304AC 3C 80 80 33 */ lis r4, sub_80329c3c@ha /* 80333550 003304B0 3C A0 80 4C */ lis r5, lbl_804BFF10@ha /* 80333554 003304B4 38 84 9C 3C */ addi r4, r4, sub_80329c3c@l /* 80333558 003304B8 38 A5 FF 10 */ addi r5, r5, lbl_804BFF10@l /* 8033355C 003304BC 48 05 61 31 */ bl __register_global_object /* 80333560 003304C0 38 61 00 08 */ addi r3, r1, 8 /* 80333564 003304C4 38 80 FF FF */ li r4, -1 /* 80333568 003304C8 4B FF 66 D5 */ bl sub_80329c3c /* 8033356C 003304CC 38 00 00 01 */ li r0, 1 /* 80333570 003304D0 98 0D A9 15 */ stb r0, lbl_805A94D5@sda21(r13) lbl_80333574: /* 80333574 003304D4 80 1E 00 08 */ lwz r0, 8(r30) /* 80333578 003304D8 7C 1F 00 40 */ cmplw r31, r0 /* 8033357C 003304DC 41 80 00 10 */ blt lbl_8033358C /* 80333580 003304E0 3C 60 80 4C */ lis r3, lbl_804BFF1C@ha /* 80333584 003304E4 38 63 FF 1C */ addi r3, r3, lbl_804BFF1C@l /* 80333588 003304E8 48 00 00 44 */ b lbl_803335CC lbl_8033358C: /* 8033358C 003304EC 80 1E 00 14 */ lwz r0, 0x14(r30) /* 80333590 003304F0 38 80 00 00 */ li r4, 0 /* 80333594 003304F4 7C 09 03 A6 */ mtctr r0 /* 80333598 003304F8 2C 00 00 00 */ cmpwi r0, 0 /* 8033359C 003304FC 40 81 00 28 */ ble lbl_803335C4 lbl_803335A0: /* 803335A0 00330500 80 1E 00 1C */ lwz r0, 0x1c(r30) /* 803335A4 00330504 7C 60 22 14 */ add r3, r0, r4 /* 803335A8 00330508 80 03 00 00 */ lwz r0, 0(r3) /* 803335AC 0033050C 7C 00 F8 40 */ cmplw r0, r31 /* 803335B0 00330510 40 82 00 0C */ bne lbl_803335BC /* 803335B4 00330514 38 63 00 04 */ addi r3, r3, 4 /* 803335B8 00330518 48 00 00 14 */ b lbl_803335CC lbl_803335BC: /* 803335BC 0033051C 38 84 00 14 */ addi r4, r4, 0x14 /* 803335C0 00330520 42 00 FF E0 */ bdnz lbl_803335A0 lbl_803335C4: /* 803335C4 00330524 3C 60 80 4C */ lis r3, lbl_804BFF1C@ha /* 803335C8 00330528 38 63 FF 1C */ addi r3, r3, lbl_804BFF1C@l lbl_803335CC: /* 803335CC 0033052C 80 01 00 24 */ lwz r0, 0x24(r1) /* 803335D0 00330530 83 E1 00 1C */ lwz r31, 0x1c(r1) /* 803335D4 00330534 83 C1 00 18 */ lwz r30, 0x18(r1) /* 803335D8 00330538 7C 08 03 A6 */ mtlr r0 /* 803335DC 0033053C 38 21 00 20 */ addi r1, r1, 0x20 /* 803335E0 00330540 4E 80 00 20 */ blr .global sub_803335e4 sub_803335e4: /* 803335E4 00330544 94 21 FF E0 */ stwu r1, -0x20(r1) /* 803335E8 00330548 7C 08 02 A6 */ mflr r0 /* 803335EC 0033054C 90 01 00 24 */ stw r0, 0x24(r1) /* 803335F0 00330550 BF 61 00 0C */ stmw r27, 0xc(r1) /* 803335F4 00330554 7C 9C 23 78 */ mr r28, r4 /* 803335F8 00330558 7C 7F 1B 78 */ mr r31, r3 /* 803335FC 0033055C 80 04 00 04 */ lwz r0, 4(r4) /* 80333600 00330560 90 03 00 04 */ stw r0, 4(r3) /* 80333604 00330564 80 04 00 08 */ lwz r0, 8(r4) /* 80333608 00330568 90 03 00 08 */ stw r0, 8(r3) /* 8033360C 0033056C 80 04 00 04 */ lwz r0, 4(r4) /* 80333610 00330570 2C 00 00 00 */ cmpwi r0, 0 /* 80333614 00330574 40 82 00 1C */ bne lbl_80333630 /* 80333618 00330578 80 1C 00 08 */ lwz r0, 8(r28) /* 8033361C 0033057C 2C 00 00 00 */ cmpwi r0, 0 /* 80333620 00330580 40 82 00 10 */ bne lbl_80333630 /* 80333624 00330584 38 00 00 00 */ li r0, 0 /* 80333628 00330588 90 1F 00 0C */ stw r0, 0xc(r31) /* 8033362C 0033058C 48 00 00 A8 */ b lbl_803336D4 lbl_80333630: /* 80333630 00330590 80 1F 00 08 */ lwz r0, 8(r31) /* 80333634 00330594 1C 60 00 1C */ mulli r3, r0, 0x1c /* 80333638 00330598 2C 03 00 00 */ cmpwi r3, 0 /* 8033363C 0033059C 40 82 00 10 */ bne lbl_8033364C /* 80333640 003305A0 38 00 00 00 */ li r0, 0 /* 80333644 003305A4 90 1F 00 0C */ stw r0, 0xc(r31) /* 80333648 003305A8 48 00 00 18 */ b lbl_80333660 lbl_8033364C: /* 8033364C 003305AC 3C 80 80 3D */ lis r4, lbl_803D7978@ha /* 80333650 003305B0 38 A0 00 00 */ li r5, 0 /* 80333654 003305B4 38 84 79 78 */ addi r4, r4, lbl_803D7978@l /* 80333658 003305B8 4B FE 21 C1 */ bl __nwa__FUlPCcPCc /* 8033365C 003305BC 90 7F 00 0C */ stw r3, 0xc(r31) lbl_80333660: /* 80333660 003305C0 83 7F 00 04 */ lwz r27, 4(r31) /* 80333664 003305C4 3B C0 00 00 */ li r30, 0 /* 80333668 003305C8 83 9C 00 0C */ lwz r28, 0xc(r28) /* 8033366C 003305CC 83 BF 00 0C */ lwz r29, 0xc(r31) /* 80333670 003305D0 48 00 00 5C */ b lbl_803336CC lbl_80333674: /* 80333674 003305D4 28 1D 00 00 */ cmplwi r29, 0 /* 80333678 003305D8 41 82 00 48 */ beq lbl_803336C0 /* 8033367C 003305DC 80 1C 00 00 */ lwz r0, 0(r28) /* 80333680 003305E0 90 1D 00 00 */ stw r0, 0(r29) /* 80333684 003305E4 80 1C 00 04 */ lwz r0, 4(r28) /* 80333688 003305E8 90 1D 00 04 */ stw r0, 4(r29) /* 8033368C 003305EC 80 1C 00 08 */ lwz r0, 8(r28) /* 80333690 003305F0 90 1D 00 08 */ stw r0, 8(r29) /* 80333694 003305F4 80 1C 00 0C */ lwz r0, 0xc(r28) /* 80333698 003305F8 90 1D 00 0C */ stw r0, 0xc(r29) /* 8033369C 003305FC 88 1C 00 18 */ lbz r0, 0x18(r28) /* 803336A0 00330600 98 1D 00 18 */ stb r0, 0x18(r29) /* 803336A4 00330604 88 1C 00 18 */ lbz r0, 0x18(r28) /* 803336A8 00330608 28 00 00 00 */ cmplwi r0, 0 /* 803336AC 0033060C 41 82 00 14 */ beq lbl_803336C0 /* 803336B0 00330610 34 7D 00 10 */ addic. r3, r29, 0x10 /* 803336B4 00330614 38 9C 00 10 */ addi r4, r28, 0x10 /* 803336B8 00330618 41 82 00 08 */ beq lbl_803336C0 /* 803336BC 0033061C 48 00 D7 ED */ bl __ct__6CTokenFRC6CToken lbl_803336C0: /* 803336C0 00330620 3B BD 00 1C */ addi r29, r29, 0x1c /* 803336C4 00330624 3B DE 00 01 */ addi r30, r30, 1 /* 803336C8 00330628 3B 9C 00 1C */ addi r28, r28, 0x1c lbl_803336CC: /* 803336CC 0033062C 7C 1E D8 00 */ cmpw r30, r27 /* 803336D0 00330630 41 80 FF A4 */ blt lbl_80333674 lbl_803336D4: /* 803336D4 00330634 7F E3 FB 78 */ mr r3, r31 /* 803336D8 00330638 BB 61 00 0C */ lmw r27, 0xc(r1) /* 803336DC 0033063C 80 01 00 24 */ lwz r0, 0x24(r1) /* 803336E0 00330640 7C 08 03 A6 */ mtlr r0 /* 803336E4 00330644 38 21 00 20 */ addi r1, r1, 0x20 /* 803336E8 00330648 4E 80 00 20 */ blr .global LoadAllSpawnedSystemTokens__24CSpawnSystemKeyframeDataFP11CSimplePool LoadAllSpawnedSystemTokens__24CSpawnSystemKeyframeDataFP11CSimplePool: /* 803336EC 0033064C 94 21 FF D0 */ stwu r1, -0x30(r1) /* 803336F0 00330650 7C 08 02 A6 */ mflr r0 /* 803336F4 00330654 90 01 00 34 */ stw r0, 0x34(r1) /* 803336F8 00330658 BF 21 00 14 */ stmw r25, 0x14(r1) /* 803336FC 0033065C 7C 79 1B 78 */ mr r25, r3 /* 80333700 00330660 7C 9A 23 78 */ mr r26, r4 /* 80333704 00330664 3B 80 00 00 */ li r28, 0 /* 80333708 00330668 3B A0 00 00 */ li r29, 0 /* 8033370C 0033066C 48 00 00 44 */ b lbl_80333750 lbl_80333710: /* 80333710 00330670 80 19 00 1C */ lwz r0, 0x1c(r25) /* 80333714 00330674 3B 60 00 00 */ li r27, 0 /* 80333718 00330678 3B C0 00 00 */ li r30, 0 /* 8033371C 0033067C 7F E0 EA 14 */ add r31, r0, r29 /* 80333720 00330680 48 00 00 1C */ b lbl_8033373C lbl_80333724: /* 80333724 00330684 80 1F 00 10 */ lwz r0, 0x10(r31) /* 80333728 00330688 7F 44 D3 78 */ mr r4, r26 /* 8033372C 0033068C 7C 60 F2 14 */ add r3, r0, r30 /* 80333730 00330690 4B FF FD 39 */ bl LoadToken__Q224CSpawnSystemKeyframeData24CSpawnSystemKeyframeInfoFP11CSimplePool /* 80333734 00330694 3B DE 00 1C */ addi r30, r30, 0x1c /* 80333738 00330698 3B 7B 00 01 */ addi r27, r27, 1 lbl_8033373C: /* 8033373C 0033069C 80 1F 00 08 */ lwz r0, 8(r31) /* 80333740 003306A0 7C 1B 00 00 */ cmpw r27, r0 /* 80333744 003306A4 41 80 FF E0 */ blt lbl_80333724 /* 80333748 003306A8 3B BD 00 14 */ addi r29, r29, 0x14 /* 8033374C 003306AC 3B 9C 00 01 */ addi r28, r28, 1 lbl_80333750: /* 80333750 003306B0 80 19 00 14 */ lwz r0, 0x14(r25) /* 80333754 003306B4 7C 1C 00 00 */ cmpw r28, r0 /* 80333758 003306B8 41 80 FF B8 */ blt lbl_80333710 /* 8033375C 003306BC BB 21 00 14 */ lmw r25, 0x14(r1) /* 80333760 003306C0 80 01 00 34 */ lwz r0, 0x34(r1) /* 80333764 003306C4 7C 08 03 A6 */ mtlr r0 /* 80333768 003306C8 38 21 00 30 */ addi r1, r1, 0x30 /* 8033376C 003306CC 4E 80 00 20 */ blr .global __ct__24CSpawnSystemKeyframeDataFR12CInputStream __ct__24CSpawnSystemKeyframeDataFR12CInputStream: /* 80333770 003306D0 94 21 FF E0 */ stwu r1, -0x20(r1) /* 80333774 003306D4 7C 08 02 A6 */ mflr r0 /* 80333778 003306D8 90 01 00 24 */ stw r0, 0x24(r1) /* 8033377C 003306DC 93 E1 00 1C */ stw r31, 0x1c(r1) /* 80333780 003306E0 7C 9F 23 78 */ mr r31, r4 /* 80333784 003306E4 93 C1 00 18 */ stw r30, 0x18(r1) /* 80333788 003306E8 7C 7E 1B 78 */ mr r30, r3 /* 8033378C 003306EC 7F E3 FB 78 */ mr r3, r31 /* 80333790 003306F0 48 00 B4 F5 */ bl ReadLong__12CInputStreamFv /* 80333794 003306F4 90 7E 00 00 */ stw r3, 0(r30) /* 80333798 003306F8 7F E3 FB 78 */ mr r3, r31 /* 8033379C 003306FC 48 00 B4 E9 */ bl ReadLong__12CInputStreamFv /* 803337A0 00330700 90 7E 00 04 */ stw r3, 4(r30) /* 803337A4 00330704 7F E3 FB 78 */ mr r3, r31 /* 803337A8 00330708 48 00 B4 DD */ bl ReadLong__12CInputStreamFv /* 803337AC 0033070C 90 7E 00 08 */ stw r3, 8(r30) /* 803337B0 00330710 7F E3 FB 78 */ mr r3, r31 /* 803337B4 00330714 48 00 B4 D1 */ bl ReadLong__12CInputStreamFv /* 803337B8 00330718 90 7E 00 0C */ stw r3, 0xc(r30) /* 803337BC 0033071C 7F E4 FB 78 */ mr r4, r31 /* 803337C0 00330720 38 7E 00 10 */ addi r3, r30, 0x10 /* 803337C4 00330724 38 A1 00 08 */ addi r5, r1, 8 /* 803337C8 00330728 48 00 00 45 */ bl "cinput_stream_helper>>__FRC124TType>>R12CInputStream" /* 803337CC 0033072C 80 01 00 24 */ lwz r0, 0x24(r1) /* 803337D0 00330730 7F C3 F3 78 */ mr r3, r30 /* 803337D4 00330734 83 E1 00 1C */ lwz r31, 0x1c(r1) /* 803337D8 00330738 83 C1 00 18 */ lwz r30, 0x18(r1) /* 803337DC 0033073C 7C 08 03 A6 */ mtlr r0 /* 803337E0 00330740 38 21 00 20 */ addi r1, r1, 0x20 /* 803337E4 00330744 4E 80 00 20 */ blr .global sub_803337e8 sub_803337e8: /* 803337E8 00330748 94 21 FF F0 */ stwu r1, -0x10(r1) /* 803337EC 0033074C 7C 08 02 A6 */ mflr r0 /* 803337F0 00330750 38 80 FF FF */ li r4, -1 /* 803337F4 00330754 90 01 00 14 */ stw r0, 0x14(r1) /* 803337F8 00330758 4B FF 63 ED */ bl sub_80329be4 /* 803337FC 0033075C 80 01 00 14 */ lwz r0, 0x14(r1) /* 80333800 00330760 7C 08 03 A6 */ mtlr r0 /* 80333804 00330764 38 21 00 10 */ addi r1, r1, 0x10 /* 80333808 00330768 4E 80 00 20 */ blr .global "cinput_stream_helper>>__FRC124TType>>R12CInputStream" "cinput_stream_helper>>__FRC124TType>>R12CInputStream": /* 8033380C 0033076C 94 21 FF C0 */ stwu r1, -0x40(r1) /* 80333810 00330770 7C 08 02 A6 */ mflr r0 /* 80333814 00330774 90 01 00 44 */ stw r0, 0x44(r1) /* 80333818 00330778 38 00 00 00 */ li r0, 0 /* 8033381C 0033077C BF 61 00 2C */ stmw r27, 0x2c(r1) /* 80333820 00330780 7C 7B 1B 78 */ mr r27, r3 /* 80333824 00330784 7C 9C 23 78 */ mr r28, r4 /* 80333828 00330788 90 03 00 04 */ stw r0, 4(r3) /* 8033382C 0033078C 7F 83 E3 78 */ mr r3, r28 /* 80333830 00330790 90 1B 00 08 */ stw r0, 8(r27) /* 80333834 00330794 90 1B 00 0C */ stw r0, 0xc(r27) /* 80333838 00330798 48 00 B4 4D */ bl ReadLong__12CInputStreamFv /* 8033383C 0033079C 7C 7E 1B 78 */ mr r30, r3 /* 80333840 003307A0 7F 63 DB 78 */ mr r3, r27 /* 80333844 003307A4 7F C4 F3 78 */ mr r4, r30 /* 80333848 003307A8 48 00 05 DD */ bl sub_80333e24 /* 8033384C 003307AC 3B E1 00 08 */ addi r31, r1, 8 /* 80333850 003307B0 3B A0 00 00 */ li r29, 0 /* 80333854 003307B4 48 00 00 38 */ b lbl_8033388C lbl_80333858: /* 80333858 003307B8 88 0D A9 00 */ lbz r0, lbl_805A94C0@sda21(r13) /* 8033385C 003307BC 7F 84 E3 78 */ mr r4, r28 /* 80333860 003307C0 7F E5 FB 78 */ mr r5, r31 /* 80333864 003307C4 38 61 00 0C */ addi r3, r1, 0xc /* 80333868 003307C8 98 01 00 08 */ stb r0, 8(r1) /* 8033386C 003307CC 48 00 01 25 */ bl sub_80333990 /* 80333870 003307D0 7F 63 DB 78 */ mr r3, r27 /* 80333874 003307D4 38 81 00 0C */ addi r4, r1, 0xc /* 80333878 003307D8 48 00 00 35 */ bl sub_803338ac /* 8033387C 003307DC 38 61 00 0C */ addi r3, r1, 0xc /* 80333880 003307E0 38 80 FF FF */ li r4, -1 /* 80333884 003307E4 4B FF 63 61 */ bl sub_80329be4 /* 80333888 003307E8 3B BD 00 01 */ addi r29, r29, 1 lbl_8033388C: /* 8033388C 003307EC 7C 1D F0 00 */ cmpw r29, r30 /* 80333890 003307F0 41 80 FF C8 */ blt lbl_80333858 /* 80333894 003307F4 7F 63 DB 78 */ mr r3, r27 /* 80333898 003307F8 BB 61 00 2C */ lmw r27, 0x2c(r1) /* 8033389C 003307FC 80 01 00 44 */ lwz r0, 0x44(r1) /* 803338A0 00330800 7C 08 03 A6 */ mtlr r0 /* 803338A4 00330804 38 21 00 40 */ addi r1, r1, 0x40 /* 803338A8 00330808 4E 80 00 20 */ blr .global sub_803338ac sub_803338ac: /* 803338AC 0033080C 94 21 FF F0 */ stwu r1, -0x10(r1) /* 803338B0 00330810 7C 08 02 A6 */ mflr r0 /* 803338B4 00330814 90 01 00 14 */ stw r0, 0x14(r1) /* 803338B8 00330818 93 E1 00 0C */ stw r31, 0xc(r1) /* 803338BC 0033081C 7C 9F 23 78 */ mr r31, r4 /* 803338C0 00330820 93 C1 00 08 */ stw r30, 8(r1) /* 803338C4 00330824 7C 7E 1B 78 */ mr r30, r3 /* 803338C8 00330828 80 03 00 04 */ lwz r0, 4(r3) /* 803338CC 0033082C 80 A3 00 08 */ lwz r5, 8(r3) /* 803338D0 00330830 7C 00 28 00 */ cmpw r0, r5 /* 803338D4 00330834 41 80 00 18 */ blt lbl_803338EC /* 803338D8 00330838 2C 05 00 00 */ cmpwi r5, 0 /* 803338DC 0033083C 38 80 00 04 */ li r4, 4 /* 803338E0 00330840 41 82 00 08 */ beq lbl_803338E8 /* 803338E4 00330844 54 A4 08 3C */ slwi r4, r5, 1 lbl_803338E8: /* 803338E8 00330848 48 00 05 3D */ bl sub_80333e24 lbl_803338EC: /* 803338EC 0033084C 80 1E 00 04 */ lwz r0, 4(r30) /* 803338F0 00330850 7F E4 FB 78 */ mr r4, r31 /* 803338F4 00330854 80 7E 00 0C */ lwz r3, 0xc(r30) /* 803338F8 00330858 1C 00 00 14 */ mulli r0, r0, 0x14 /* 803338FC 0033085C 7C 63 02 14 */ add r3, r3, r0 /* 80333900 00330860 48 00 00 29 */ bl sub_80333928 /* 80333904 00330864 80 7E 00 04 */ lwz r3, 4(r30) /* 80333908 00330868 38 03 00 01 */ addi r0, r3, 1 /* 8033390C 0033086C 90 1E 00 04 */ stw r0, 4(r30) /* 80333910 00330870 83 E1 00 0C */ lwz r31, 0xc(r1) /* 80333914 00330874 83 C1 00 08 */ lwz r30, 8(r1) /* 80333918 00330878 80 01 00 14 */ lwz r0, 0x14(r1) /* 8033391C 0033087C 7C 08 03 A6 */ mtlr r0 /* 80333920 00330880 38 21 00 10 */ addi r1, r1, 0x10 /* 80333924 00330884 4E 80 00 20 */ blr .global sub_80333928 sub_80333928: /* 80333928 00330888 94 21 FF F0 */ stwu r1, -0x10(r1) /* 8033392C 0033088C 7C 08 02 A6 */ mflr r0 /* 80333930 00330890 28 03 00 00 */ cmplwi r3, 0 /* 80333934 00330894 90 01 00 14 */ stw r0, 0x14(r1) /* 80333938 00330898 41 82 00 08 */ beq lbl_80333940 /* 8033393C 0033089C 48 00 00 15 */ bl sub_80333950 lbl_80333940: /* 80333940 003308A0 80 01 00 14 */ lwz r0, 0x14(r1) /* 80333944 003308A4 7C 08 03 A6 */ mtlr r0 /* 80333948 003308A8 38 21 00 10 */ addi r1, r1, 0x10 /* 8033394C 003308AC 4E 80 00 20 */ blr .global sub_80333950 sub_80333950: /* 80333950 003308B0 94 21 FF F0 */ stwu r1, -0x10(r1) /* 80333954 003308B4 7C 08 02 A6 */ mflr r0 /* 80333958 003308B8 90 01 00 14 */ stw r0, 0x14(r1) /* 8033395C 003308BC 93 E1 00 0C */ stw r31, 0xc(r1) /* 80333960 003308C0 7C 7F 1B 78 */ mr r31, r3 /* 80333964 003308C4 38 7F 00 04 */ addi r3, r31, 4 /* 80333968 003308C8 80 04 00 00 */ lwz r0, 0(r4) /* 8033396C 003308CC 38 84 00 04 */ addi r4, r4, 4 /* 80333970 003308D0 90 1F 00 00 */ stw r0, 0(r31) /* 80333974 003308D4 4B FF FC 71 */ bl sub_803335e4 /* 80333978 003308D8 80 01 00 14 */ lwz r0, 0x14(r1) /* 8033397C 003308DC 7F E3 FB 78 */ mr r3, r31 /* 80333980 003308E0 83 E1 00 0C */ lwz r31, 0xc(r1) /* 80333984 003308E4 7C 08 03 A6 */ mtlr r0 /* 80333988 003308E8 38 21 00 10 */ addi r1, r1, 0x10 /* 8033398C 003308EC 4E 80 00 20 */ blr .global sub_80333990 sub_80333990: /* 80333990 003308F0 94 21 FF E0 */ stwu r1, -0x20(r1) /* 80333994 003308F4 7C 08 02 A6 */ mflr r0 /* 80333998 003308F8 7C 85 23 78 */ mr r5, r4 /* 8033399C 003308FC 90 01 00 24 */ stw r0, 0x24(r1) /* 803339A0 00330900 38 81 00 08 */ addi r4, r1, 8 /* 803339A4 00330904 93 E1 00 1C */ stw r31, 0x1c(r1) /* 803339A8 00330908 7C 7F 1B 78 */ mr r31, r3 /* 803339AC 0033090C 88 0D A9 04 */ lbz r0, lbl_805A94C4@sda21(r13) /* 803339B0 00330910 98 01 00 08 */ stb r0, 8(r1) /* 803339B4 00330914 48 00 00 19 */ bl sub_803339cc /* 803339B8 00330918 80 01 00 24 */ lwz r0, 0x24(r1) /* 803339BC 0033091C 83 E1 00 1C */ lwz r31, 0x1c(r1) /* 803339C0 00330920 7C 08 03 A6 */ mtlr r0 /* 803339C4 00330924 38 21 00 20 */ addi r1, r1, 0x20 /* 803339C8 00330928 4E 80 00 20 */ blr .global sub_803339cc sub_803339cc: /* 803339CC 0033092C 94 21 FF F0 */ stwu r1, -0x10(r1) /* 803339D0 00330930 7C 08 02 A6 */ mflr r0 /* 803339D4 00330934 7C A4 2B 78 */ mr r4, r5 /* 803339D8 00330938 90 01 00 14 */ stw r0, 0x14(r1) /* 803339DC 0033093C 48 00 00 15 */ bl sub_803339f0 /* 803339E0 00330940 80 01 00 14 */ lwz r0, 0x14(r1) /* 803339E4 00330944 7C 08 03 A6 */ mtlr r0 /* 803339E8 00330948 38 21 00 10 */ addi r1, r1, 0x10 /* 803339EC 0033094C 4E 80 00 20 */ blr .global sub_803339f0 sub_803339f0: /* 803339F0 00330950 94 21 FF D0 */ stwu r1, -0x30(r1) /* 803339F4 00330954 7C 08 02 A6 */ mflr r0 /* 803339F8 00330958 90 01 00 34 */ stw r0, 0x34(r1) /* 803339FC 0033095C 93 E1 00 2C */ stw r31, 0x2c(r1) /* 80333A00 00330960 7C 9F 23 78 */ mr r31, r4 /* 80333A04 00330964 93 C1 00 28 */ stw r30, 0x28(r1) /* 80333A08 00330968 7C 7E 1B 78 */ mr r30, r3 /* 80333A0C 0033096C 7F E3 FB 78 */ mr r3, r31 /* 80333A10 00330970 48 00 B2 75 */ bl ReadLong__12CInputStreamFv /* 80333A14 00330974 90 7E 00 00 */ stw r3, 0(r30) /* 80333A18 00330978 7F E4 FB 78 */ mr r4, r31 /* 80333A1C 0033097C 38 61 00 0C */ addi r3, r1, 0xc /* 80333A20 00330980 38 A1 00 08 */ addi r5, r1, 8 /* 80333A24 00330984 88 0D A9 08 */ lbz r0, lbl_805A94C8@sda21(r13) /* 80333A28 00330988 98 01 00 08 */ stb r0, 8(r1) /* 80333A2C 0033098C 48 00 00 39 */ bl sub_80333a64 /* 80333A30 00330990 38 7E 00 04 */ addi r3, r30, 4 /* 80333A34 00330994 38 81 00 0C */ addi r4, r1, 0xc /* 80333A38 00330998 4B FF FB AD */ bl sub_803335e4 /* 80333A3C 0033099C 38 61 00 0C */ addi r3, r1, 0xc /* 80333A40 003309A0 38 80 FF FF */ li r4, -1 /* 80333A44 003309A4 4B FF 61 F9 */ bl sub_80329c3c /* 80333A48 003309A8 80 01 00 34 */ lwz r0, 0x34(r1) /* 80333A4C 003309AC 7F C3 F3 78 */ mr r3, r30 /* 80333A50 003309B0 83 E1 00 2C */ lwz r31, 0x2c(r1) /* 80333A54 003309B4 83 C1 00 28 */ lwz r30, 0x28(r1) /* 80333A58 003309B8 7C 08 03 A6 */ mtlr r0 /* 80333A5C 003309BC 38 21 00 30 */ addi r1, r1, 0x30 /* 80333A60 003309C0 4E 80 00 20 */ blr .global sub_80333a64 sub_80333a64: /* 80333A64 003309C4 94 21 FF E0 */ stwu r1, -0x20(r1) /* 80333A68 003309C8 7C 08 02 A6 */ mflr r0 /* 80333A6C 003309CC 7C 85 23 78 */ mr r5, r4 /* 80333A70 003309D0 90 01 00 24 */ stw r0, 0x24(r1) /* 80333A74 003309D4 38 81 00 08 */ addi r4, r1, 8 /* 80333A78 003309D8 93 E1 00 1C */ stw r31, 0x1c(r1) /* 80333A7C 003309DC 7C 7F 1B 78 */ mr r31, r3 /* 80333A80 003309E0 88 0D A9 0C */ lbz r0, lbl_805A94CC@sda21(r13) /* 80333A84 003309E4 98 01 00 08 */ stb r0, 8(r1) /* 80333A88 003309E8 48 00 00 19 */ bl sub_80333aa0 /* 80333A8C 003309EC 80 01 00 24 */ lwz r0, 0x24(r1) /* 80333A90 003309F0 83 E1 00 1C */ lwz r31, 0x1c(r1) /* 80333A94 003309F4 7C 08 03 A6 */ mtlr r0 /* 80333A98 003309F8 38 21 00 20 */ addi r1, r1, 0x20 /* 80333A9C 003309FC 4E 80 00 20 */ blr .global sub_80333aa0 sub_80333aa0: /* 80333AA0 00330A00 94 21 FF F0 */ stwu r1, -0x10(r1) /* 80333AA4 00330A04 7C 08 02 A6 */ mflr r0 /* 80333AA8 00330A08 7C A4 2B 78 */ mr r4, r5 /* 80333AAC 00330A0C 90 01 00 14 */ stw r0, 0x14(r1) /* 80333AB0 00330A10 38 A1 00 08 */ addi r5, r1, 8 /* 80333AB4 00330A14 48 00 00 15 */ bl sub_80333ac8 /* 80333AB8 00330A18 80 01 00 14 */ lwz r0, 0x14(r1) /* 80333ABC 00330A1C 7C 08 03 A6 */ mtlr r0 /* 80333AC0 00330A20 38 21 00 10 */ addi r1, r1, 0x10 /* 80333AC4 00330A24 4E 80 00 20 */ blr .global sub_80333ac8 sub_80333ac8: /* 80333AC8 00330A28 94 21 FF C0 */ stwu r1, -0x40(r1) /* 80333ACC 00330A2C 7C 08 02 A6 */ mflr r0 /* 80333AD0 00330A30 90 01 00 44 */ stw r0, 0x44(r1) /* 80333AD4 00330A34 38 00 00 00 */ li r0, 0 /* 80333AD8 00330A38 BF 41 00 28 */ stmw r26, 0x28(r1) /* 80333ADC 00330A3C 7C 7A 1B 78 */ mr r26, r3 /* 80333AE0 00330A40 7C 9B 23 78 */ mr r27, r4 /* 80333AE4 00330A44 90 03 00 04 */ stw r0, 4(r3) /* 80333AE8 00330A48 7F 63 DB 78 */ mr r3, r27 /* 80333AEC 00330A4C 90 1A 00 08 */ stw r0, 8(r26) /* 80333AF0 00330A50 90 1A 00 0C */ stw r0, 0xc(r26) /* 80333AF4 00330A54 48 00 B1 91 */ bl ReadLong__12CInputStreamFv /* 80333AF8 00330A58 7C 7E 1B 78 */ mr r30, r3 /* 80333AFC 00330A5C 7F 43 D3 78 */ mr r3, r26 /* 80333B00 00330A60 7F C4 F3 78 */ mr r4, r30 /* 80333B04 00330A64 48 00 01 C1 */ bl sub_80333cc4 /* 80333B08 00330A68 3B A1 00 1C */ addi r29, r1, 0x1c /* 80333B0C 00330A6C 3B E1 00 08 */ addi r31, r1, 8 /* 80333B10 00330A70 3B 80 00 00 */ li r28, 0 /* 80333B14 00330A74 48 00 00 E8 */ b lbl_80333BFC lbl_80333B18: /* 80333B18 00330A78 88 0D A9 10 */ lbz r0, lbl_805A94D0@sda21(r13) /* 80333B1C 00330A7C 7F 64 DB 78 */ mr r4, r27 /* 80333B20 00330A80 7F E5 FB 78 */ mr r5, r31 /* 80333B24 00330A84 38 61 00 0C */ addi r3, r1, 0xc /* 80333B28 00330A88 98 01 00 08 */ stb r0, 8(r1) /* 80333B2C 00330A8C 48 00 00 F1 */ bl sub_80333c1c /* 80333B30 00330A90 80 1A 00 04 */ lwz r0, 4(r26) /* 80333B34 00330A94 80 BA 00 08 */ lwz r5, 8(r26) /* 80333B38 00330A98 7C 00 28 00 */ cmpw r0, r5 /* 80333B3C 00330A9C 41 80 00 1C */ blt lbl_80333B58 /* 80333B40 00330AA0 2C 05 00 00 */ cmpwi r5, 0 /* 80333B44 00330AA4 7F 43 D3 78 */ mr r3, r26 /* 80333B48 00330AA8 38 80 00 04 */ li r4, 4 /* 80333B4C 00330AAC 41 82 00 08 */ beq lbl_80333B54 /* 80333B50 00330AB0 54 A4 08 3C */ slwi r4, r5, 1 lbl_80333B54: /* 80333B54 00330AB4 48 00 01 71 */ bl sub_80333cc4 lbl_80333B58: /* 80333B58 00330AB8 80 1A 00 04 */ lwz r0, 4(r26) /* 80333B5C 00330ABC 80 7A 00 0C */ lwz r3, 0xc(r26) /* 80333B60 00330AC0 1C 00 00 1C */ mulli r0, r0, 0x1c /* 80333B64 00330AC4 7C 63 02 15 */ add. r3, r3, r0 /* 80333B68 00330AC8 41 82 00 48 */ beq lbl_80333BB0 /* 80333B6C 00330ACC 80 01 00 0C */ lwz r0, 0xc(r1) /* 80333B70 00330AD0 90 03 00 00 */ stw r0, 0(r3) /* 80333B74 00330AD4 80 01 00 10 */ lwz r0, 0x10(r1) /* 80333B78 00330AD8 90 03 00 04 */ stw r0, 4(r3) /* 80333B7C 00330ADC 80 01 00 14 */ lwz r0, 0x14(r1) /* 80333B80 00330AE0 90 03 00 08 */ stw r0, 8(r3) /* 80333B84 00330AE4 80 01 00 18 */ lwz r0, 0x18(r1) /* 80333B88 00330AE8 90 03 00 0C */ stw r0, 0xc(r3) /* 80333B8C 00330AEC 88 01 00 24 */ lbz r0, 0x24(r1) /* 80333B90 00330AF0 98 03 00 18 */ stb r0, 0x18(r3) /* 80333B94 00330AF4 88 01 00 24 */ lbz r0, 0x24(r1) /* 80333B98 00330AF8 28 00 00 00 */ cmplwi r0, 0 /* 80333B9C 00330AFC 41 82 00 14 */ beq lbl_80333BB0 /* 80333BA0 00330B00 34 63 00 10 */ addic. r3, r3, 0x10 /* 80333BA4 00330B04 41 82 00 0C */ beq lbl_80333BB0 /* 80333BA8 00330B08 7F A4 EB 78 */ mr r4, r29 /* 80333BAC 00330B0C 48 00 D2 FD */ bl __ct__6CTokenFRC6CToken lbl_80333BB0: /* 80333BB0 00330B10 80 7A 00 04 */ lwz r3, 4(r26) /* 80333BB4 00330B14 38 03 00 01 */ addi r0, r3, 1 /* 80333BB8 00330B18 90 1A 00 04 */ stw r0, 4(r26) /* 80333BBC 00330B1C 88 01 00 24 */ lbz r0, 0x24(r1) /* 80333BC0 00330B20 28 00 00 00 */ cmplwi r0, 0 /* 80333BC4 00330B24 41 82 00 0C */ beq lbl_80333BD0 /* 80333BC8 00330B28 7F A3 EB 78 */ mr r3, r29 /* 80333BCC 00330B2C 48 00 D1 75 */ bl Unlock__6CTokenFv lbl_80333BD0: /* 80333BD0 00330B30 28 1D 00 00 */ cmplwi r29, 0 /* 80333BD4 00330B34 41 82 00 24 */ beq lbl_80333BF8 /* 80333BD8 00330B38 88 01 00 24 */ lbz r0, 0x24(r1) /* 80333BDC 00330B3C 28 00 00 00 */ cmplwi r0, 0 /* 80333BE0 00330B40 41 82 00 10 */ beq lbl_80333BF0 /* 80333BE4 00330B44 7F A3 EB 78 */ mr r3, r29 /* 80333BE8 00330B48 38 80 FF FF */ li r4, -1 /* 80333BEC 00330B4C 48 00 D2 55 */ bl __dt__6CTokenFv lbl_80333BF0: /* 80333BF0 00330B50 38 00 00 00 */ li r0, 0 /* 80333BF4 00330B54 98 01 00 24 */ stb r0, 0x24(r1) lbl_80333BF8: /* 80333BF8 00330B58 3B 9C 00 01 */ addi r28, r28, 1 lbl_80333BFC: /* 80333BFC 00330B5C 7C 1C F0 00 */ cmpw r28, r30 /* 80333C00 00330B60 41 80 FF 18 */ blt lbl_80333B18 /* 80333C04 00330B64 7F 43 D3 78 */ mr r3, r26 /* 80333C08 00330B68 BB 41 00 28 */ lmw r26, 0x28(r1) /* 80333C0C 00330B6C 80 01 00 44 */ lwz r0, 0x44(r1) /* 80333C10 00330B70 7C 08 03 A6 */ mtlr r0 /* 80333C14 00330B74 38 21 00 40 */ addi r1, r1, 0x40 /* 80333C18 00330B78 4E 80 00 20 */ blr .global sub_80333c1c sub_80333c1c: /* 80333C1C 00330B7C 94 21 FF E0 */ stwu r1, -0x20(r1) /* 80333C20 00330B80 7C 08 02 A6 */ mflr r0 /* 80333C24 00330B84 7C 85 23 78 */ mr r5, r4 /* 80333C28 00330B88 90 01 00 24 */ stw r0, 0x24(r1) /* 80333C2C 00330B8C 38 81 00 08 */ addi r4, r1, 8 /* 80333C30 00330B90 93 E1 00 1C */ stw r31, 0x1c(r1) /* 80333C34 00330B94 7C 7F 1B 78 */ mr r31, r3 /* 80333C38 00330B98 88 0D A9 14 */ lbz r0, lbl_805A94D4@sda21(r13) /* 80333C3C 00330B9C 98 01 00 08 */ stb r0, 8(r1) /* 80333C40 00330BA0 48 00 00 19 */ bl sub_80333c58 /* 80333C44 00330BA4 80 01 00 24 */ lwz r0, 0x24(r1) /* 80333C48 00330BA8 83 E1 00 1C */ lwz r31, 0x1c(r1) /* 80333C4C 00330BAC 7C 08 03 A6 */ mtlr r0 /* 80333C50 00330BB0 38 21 00 20 */ addi r1, r1, 0x20 /* 80333C54 00330BB4 4E 80 00 20 */ blr .global sub_80333c58 sub_80333c58: /* 80333C58 00330BB8 94 21 FF F0 */ stwu r1, -0x10(r1) /* 80333C5C 00330BBC 7C 08 02 A6 */ mflr r0 /* 80333C60 00330BC0 90 01 00 14 */ stw r0, 0x14(r1) /* 80333C64 00330BC4 93 E1 00 0C */ stw r31, 0xc(r1) /* 80333C68 00330BC8 7C BF 2B 78 */ mr r31, r5 /* 80333C6C 00330BCC 93 C1 00 08 */ stw r30, 8(r1) /* 80333C70 00330BD0 7C 7E 1B 78 */ mr r30, r3 /* 80333C74 00330BD4 7F E3 FB 78 */ mr r3, r31 /* 80333C78 00330BD8 48 00 B0 0D */ bl ReadLong__12CInputStreamFv /* 80333C7C 00330BDC 90 7E 00 00 */ stw r3, 0(r30) /* 80333C80 00330BE0 7F E3 FB 78 */ mr r3, r31 /* 80333C84 00330BE4 48 00 B0 01 */ bl ReadLong__12CInputStreamFv /* 80333C88 00330BE8 90 7E 00 04 */ stw r3, 4(r30) /* 80333C8C 00330BEC 7F E3 FB 78 */ mr r3, r31 /* 80333C90 00330BF0 48 00 AF F5 */ bl ReadLong__12CInputStreamFv /* 80333C94 00330BF4 90 7E 00 08 */ stw r3, 8(r30) /* 80333C98 00330BF8 7F E3 FB 78 */ mr r3, r31 /* 80333C9C 00330BFC 48 00 AF E9 */ bl ReadLong__12CInputStreamFv /* 80333CA0 00330C00 90 7E 00 0C */ stw r3, 0xc(r30) /* 80333CA4 00330C04 38 00 00 00 */ li r0, 0 /* 80333CA8 00330C08 98 1E 00 18 */ stb r0, 0x18(r30) /* 80333CAC 00330C0C 80 01 00 14 */ lwz r0, 0x14(r1) /* 80333CB0 00330C10 83 E1 00 0C */ lwz r31, 0xc(r1) /* 80333CB4 00330C14 83 C1 00 08 */ lwz r30, 8(r1) /* 80333CB8 00330C18 7C 08 03 A6 */ mtlr r0 /* 80333CBC 00330C1C 38 21 00 10 */ addi r1, r1, 0x10 /* 80333CC0 00330C20 4E 80 00 20 */ blr .global sub_80333cc4 sub_80333cc4: /* 80333CC4 00330C24 94 21 FF D0 */ stwu r1, -0x30(r1) /* 80333CC8 00330C28 7C 08 02 A6 */ mflr r0 /* 80333CCC 00330C2C 90 01 00 34 */ stw r0, 0x34(r1) /* 80333CD0 00330C30 BF 41 00 18 */ stmw r26, 0x18(r1) /* 80333CD4 00330C34 7C 9E 23 78 */ mr r30, r4 /* 80333CD8 00330C38 7C 7D 1B 78 */ mr r29, r3 /* 80333CDC 00330C3C 80 03 00 08 */ lwz r0, 8(r3) /* 80333CE0 00330C40 7C 1E 00 00 */ cmpw r30, r0 /* 80333CE4 00330C44 40 81 01 2C */ ble lbl_80333E10 /* 80333CE8 00330C48 1C 7E 00 1C */ mulli r3, r30, 0x1c /* 80333CEC 00330C4C 2C 03 00 00 */ cmpwi r3, 0 /* 80333CF0 00330C50 40 82 00 0C */ bne lbl_80333CFC /* 80333CF4 00330C54 3B E0 00 00 */ li r31, 0 /* 80333CF8 00330C58 48 00 00 18 */ b lbl_80333D10 lbl_80333CFC: /* 80333CFC 00330C5C 3C 80 80 3D */ lis r4, lbl_803D7978@ha /* 80333D00 00330C60 38 A0 00 00 */ li r5, 0 /* 80333D04 00330C64 38 84 79 78 */ addi r4, r4, lbl_803D7978@l /* 80333D08 00330C68 4B FE 1B 11 */ bl __nwa__FUlPCcPCc /* 80333D0C 00330C6C 7C 7F 1B 78 */ mr r31, r3 lbl_80333D10: /* 80333D10 00330C70 80 1D 00 04 */ lwz r0, 4(r29) /* 80333D14 00330C74 7F FB FB 78 */ mr r27, r31 /* 80333D18 00330C78 83 5D 00 0C */ lwz r26, 0xc(r29) /* 80333D1C 00330C7C 1C 00 00 1C */ mulli r0, r0, 0x1c /* 80333D20 00330C80 93 41 00 10 */ stw r26, 0x10(r1) /* 80333D24 00330C84 7F 9A 02 14 */ add r28, r26, r0 /* 80333D28 00330C88 93 41 00 14 */ stw r26, 0x14(r1) /* 80333D2C 00330C8C 93 81 00 08 */ stw r28, 8(r1) /* 80333D30 00330C90 93 81 00 0C */ stw r28, 0xc(r1) /* 80333D34 00330C94 48 00 00 58 */ b lbl_80333D8C lbl_80333D38: /* 80333D38 00330C98 28 1B 00 00 */ cmplwi r27, 0 /* 80333D3C 00330C9C 41 82 00 48 */ beq lbl_80333D84 /* 80333D40 00330CA0 80 1A 00 00 */ lwz r0, 0(r26) /* 80333D44 00330CA4 90 1B 00 00 */ stw r0, 0(r27) /* 80333D48 00330CA8 80 1A 00 04 */ lwz r0, 4(r26) /* 80333D4C 00330CAC 90 1B 00 04 */ stw r0, 4(r27) /* 80333D50 00330CB0 80 1A 00 08 */ lwz r0, 8(r26) /* 80333D54 00330CB4 90 1B 00 08 */ stw r0, 8(r27) /* 80333D58 00330CB8 80 1A 00 0C */ lwz r0, 0xc(r26) /* 80333D5C 00330CBC 90 1B 00 0C */ stw r0, 0xc(r27) /* 80333D60 00330CC0 88 1A 00 18 */ lbz r0, 0x18(r26) /* 80333D64 00330CC4 98 1B 00 18 */ stb r0, 0x18(r27) /* 80333D68 00330CC8 88 1A 00 18 */ lbz r0, 0x18(r26) /* 80333D6C 00330CCC 28 00 00 00 */ cmplwi r0, 0 /* 80333D70 00330CD0 41 82 00 14 */ beq lbl_80333D84 /* 80333D74 00330CD4 34 7B 00 10 */ addic. r3, r27, 0x10 /* 80333D78 00330CD8 38 9A 00 10 */ addi r4, r26, 0x10 /* 80333D7C 00330CDC 41 82 00 08 */ beq lbl_80333D84 /* 80333D80 00330CE0 48 00 D1 29 */ bl __ct__6CTokenFRC6CToken lbl_80333D84: /* 80333D84 00330CE4 3B 7B 00 1C */ addi r27, r27, 0x1c /* 80333D88 00330CE8 3B 5A 00 1C */ addi r26, r26, 0x1c lbl_80333D8C: /* 80333D8C 00330CEC 7C 1A E0 40 */ cmplw r26, r28 /* 80333D90 00330CF0 40 82 FF A8 */ bne lbl_80333D38 /* 80333D94 00330CF4 80 1D 00 04 */ lwz r0, 4(r29) /* 80333D98 00330CF8 3B 80 00 00 */ li r28, 0 /* 80333D9C 00330CFC 83 5D 00 0C */ lwz r26, 0xc(r29) /* 80333DA0 00330D00 1C 00 00 1C */ mulli r0, r0, 0x1c /* 80333DA4 00330D04 7F 7A 02 14 */ add r27, r26, r0 /* 80333DA8 00330D08 48 00 00 48 */ b lbl_80333DF0 lbl_80333DAC: /* 80333DAC 00330D0C 28 1A 00 00 */ cmplwi r26, 0 /* 80333DB0 00330D10 41 82 00 3C */ beq lbl_80333DEC /* 80333DB4 00330D14 88 1A 00 18 */ lbz r0, 0x18(r26) /* 80333DB8 00330D18 28 00 00 00 */ cmplwi r0, 0 /* 80333DBC 00330D1C 41 82 00 0C */ beq lbl_80333DC8 /* 80333DC0 00330D20 38 7A 00 10 */ addi r3, r26, 0x10 /* 80333DC4 00330D24 48 00 CF 7D */ bl Unlock__6CTokenFv lbl_80333DC8: /* 80333DC8 00330D28 34 1A 00 10 */ addic. r0, r26, 0x10 /* 80333DCC 00330D2C 41 82 00 20 */ beq lbl_80333DEC /* 80333DD0 00330D30 88 1A 00 18 */ lbz r0, 0x18(r26) /* 80333DD4 00330D34 28 00 00 00 */ cmplwi r0, 0 /* 80333DD8 00330D38 41 82 00 10 */ beq lbl_80333DE8 /* 80333DDC 00330D3C 38 7A 00 10 */ addi r3, r26, 0x10 /* 80333DE0 00330D40 38 80 FF FF */ li r4, -1 /* 80333DE4 00330D44 48 00 D0 5D */ bl __dt__6CTokenFv lbl_80333DE8: /* 80333DE8 00330D48 9B 9A 00 18 */ stb r28, 0x18(r26) lbl_80333DEC: /* 80333DEC 00330D4C 3B 5A 00 1C */ addi r26, r26, 0x1c lbl_80333DF0: /* 80333DF0 00330D50 7C 1A D8 40 */ cmplw r26, r27 /* 80333DF4 00330D54 40 82 FF B8 */ bne lbl_80333DAC /* 80333DF8 00330D58 80 7D 00 0C */ lwz r3, 0xc(r29) /* 80333DFC 00330D5C 28 03 00 00 */ cmplwi r3, 0 /* 80333E00 00330D60 41 82 00 08 */ beq lbl_80333E08 /* 80333E04 00330D64 4B FE 1B 2D */ bl Free__7CMemoryFPCv lbl_80333E08: /* 80333E08 00330D68 93 FD 00 0C */ stw r31, 0xc(r29) /* 80333E0C 00330D6C 93 DD 00 08 */ stw r30, 8(r29) lbl_80333E10: /* 80333E10 00330D70 BB 41 00 18 */ lmw r26, 0x18(r1) /* 80333E14 00330D74 80 01 00 34 */ lwz r0, 0x34(r1) /* 80333E18 00330D78 7C 08 03 A6 */ mtlr r0 /* 80333E1C 00330D7C 38 21 00 30 */ addi r1, r1, 0x30 /* 80333E20 00330D80 4E 80 00 20 */ blr .global sub_80333e24 sub_80333e24: /* 80333E24 00330D84 94 21 FF D0 */ stwu r1, -0x30(r1) /* 80333E28 00330D88 7C 08 02 A6 */ mflr r0 /* 80333E2C 00330D8C 90 01 00 34 */ stw r0, 0x34(r1) /* 80333E30 00330D90 93 E1 00 2C */ stw r31, 0x2c(r1) /* 80333E34 00330D94 93 C1 00 28 */ stw r30, 0x28(r1) /* 80333E38 00330D98 7C 9E 23 78 */ mr r30, r4 /* 80333E3C 00330D9C 93 A1 00 24 */ stw r29, 0x24(r1) /* 80333E40 00330DA0 7C 7D 1B 78 */ mr r29, r3 /* 80333E44 00330DA4 80 03 00 08 */ lwz r0, 8(r3) /* 80333E48 00330DA8 7C 1E 00 00 */ cmpw r30, r0 /* 80333E4C 00330DAC 40 81 00 8C */ ble lbl_80333ED8 /* 80333E50 00330DB0 1C 7E 00 14 */ mulli r3, r30, 0x14 /* 80333E54 00330DB4 2C 03 00 00 */ cmpwi r3, 0 /* 80333E58 00330DB8 40 82 00 0C */ bne lbl_80333E64 /* 80333E5C 00330DBC 3B E0 00 00 */ li r31, 0 /* 80333E60 00330DC0 48 00 00 18 */ b lbl_80333E78 lbl_80333E64: /* 80333E64 00330DC4 3C 80 80 3D */ lis r4, lbl_803D7978@ha /* 80333E68 00330DC8 38 A0 00 00 */ li r5, 0 /* 80333E6C 00330DCC 38 84 79 78 */ addi r4, r4, lbl_803D7978@l /* 80333E70 00330DD0 4B FE 19 A9 */ bl __nwa__FUlPCcPCc /* 80333E74 00330DD4 7C 7F 1B 78 */ mr r31, r3 lbl_80333E78: /* 80333E78 00330DD8 80 1D 00 04 */ lwz r0, 4(r29) /* 80333E7C 00330DDC 7F E5 FB 78 */ mr r5, r31 /* 80333E80 00330DE0 80 DD 00 0C */ lwz r6, 0xc(r29) /* 80333E84 00330DE4 38 61 00 14 */ addi r3, r1, 0x14 /* 80333E88 00330DE8 1C 00 00 14 */ mulli r0, r0, 0x14 /* 80333E8C 00330DEC 38 81 00 0C */ addi r4, r1, 0xc /* 80333E90 00330DF0 7C C6 02 14 */ add r6, r6, r0 /* 80333E94 00330DF4 90 C1 00 0C */ stw r6, 0xc(r1) /* 80333E98 00330DF8 80 1D 00 0C */ lwz r0, 0xc(r29) /* 80333E9C 00330DFC 90 C1 00 08 */ stw r6, 8(r1) /* 80333EA0 00330E00 90 01 00 10 */ stw r0, 0x10(r1) /* 80333EA4 00330E04 90 01 00 14 */ stw r0, 0x14(r1) /* 80333EA8 00330E08 48 00 00 99 */ bl sub_80333f40 /* 80333EAC 00330E0C 80 1D 00 04 */ lwz r0, 4(r29) /* 80333EB0 00330E10 80 7D 00 0C */ lwz r3, 0xc(r29) /* 80333EB4 00330E14 1C 00 00 14 */ mulli r0, r0, 0x14 /* 80333EB8 00330E18 7C 83 02 14 */ add r4, r3, r0 /* 80333EBC 00330E1C 48 00 00 39 */ bl sub_80333ef4 /* 80333EC0 00330E20 80 7D 00 0C */ lwz r3, 0xc(r29) /* 80333EC4 00330E24 28 03 00 00 */ cmplwi r3, 0 /* 80333EC8 00330E28 41 82 00 08 */ beq lbl_80333ED0 /* 80333ECC 00330E2C 4B FE 1A 65 */ bl Free__7CMemoryFPCv lbl_80333ED0: /* 80333ED0 00330E30 93 FD 00 0C */ stw r31, 0xc(r29) /* 80333ED4 00330E34 93 DD 00 08 */ stw r30, 8(r29) lbl_80333ED8: /* 80333ED8 00330E38 80 01 00 34 */ lwz r0, 0x34(r1) /* 80333EDC 00330E3C 83 E1 00 2C */ lwz r31, 0x2c(r1) /* 80333EE0 00330E40 83 C1 00 28 */ lwz r30, 0x28(r1) /* 80333EE4 00330E44 83 A1 00 24 */ lwz r29, 0x24(r1) /* 80333EE8 00330E48 7C 08 03 A6 */ mtlr r0 /* 80333EEC 00330E4C 38 21 00 30 */ addi r1, r1, 0x30 /* 80333EF0 00330E50 4E 80 00 20 */ blr .global sub_80333ef4 sub_80333ef4: /* 80333EF4 00330E54 94 21 FF F0 */ stwu r1, -0x10(r1) /* 80333EF8 00330E58 7C 08 02 A6 */ mflr r0 /* 80333EFC 00330E5C 90 01 00 14 */ stw r0, 0x14(r1) /* 80333F00 00330E60 93 E1 00 0C */ stw r31, 0xc(r1) /* 80333F04 00330E64 7C 7F 1B 78 */ mr r31, r3 /* 80333F08 00330E68 93 C1 00 08 */ stw r30, 8(r1) /* 80333F0C 00330E6C 7C 9E 23 78 */ mr r30, r4 /* 80333F10 00330E70 48 00 00 10 */ b lbl_80333F20 lbl_80333F14: /* 80333F14 00330E74 7F E3 FB 78 */ mr r3, r31 /* 80333F18 00330E78 4B FF F8 D1 */ bl sub_803337e8 /* 80333F1C 00330E7C 3B FF 00 14 */ addi r31, r31, 0x14 lbl_80333F20: /* 80333F20 00330E80 7C 1F F0 40 */ cmplw r31, r30 /* 80333F24 00330E84 40 82 FF F0 */ bne lbl_80333F14 /* 80333F28 00330E88 80 01 00 14 */ lwz r0, 0x14(r1) /* 80333F2C 00330E8C 83 E1 00 0C */ lwz r31, 0xc(r1) /* 80333F30 00330E90 83 C1 00 08 */ lwz r30, 8(r1) /* 80333F34 00330E94 7C 08 03 A6 */ mtlr r0 /* 80333F38 00330E98 38 21 00 10 */ addi r1, r1, 0x10 /* 80333F3C 00330E9C 4E 80 00 20 */ blr .global sub_80333f40 sub_80333f40: /* 80333F40 00330EA0 94 21 FF E0 */ stwu r1, -0x20(r1) /* 80333F44 00330EA4 7C 08 02 A6 */ mflr r0 /* 80333F48 00330EA8 90 01 00 24 */ stw r0, 0x24(r1) /* 80333F4C 00330EAC 93 E1 00 1C */ stw r31, 0x1c(r1) /* 80333F50 00330EB0 93 C1 00 18 */ stw r30, 0x18(r1) /* 80333F54 00330EB4 7C BE 2B 78 */ mr r30, r5 /* 80333F58 00330EB8 93 A1 00 14 */ stw r29, 0x14(r1) /* 80333F5C 00330EBC 7C 9D 23 78 */ mr r29, r4 /* 80333F60 00330EC0 83 E3 00 00 */ lwz r31, 0(r3) /* 80333F64 00330EC4 48 00 00 18 */ b lbl_80333F7C lbl_80333F68: /* 80333F68 00330EC8 7F C3 F3 78 */ mr r3, r30 /* 80333F6C 00330ECC 7F E4 FB 78 */ mr r4, r31 /* 80333F70 00330ED0 4B FF F9 B9 */ bl sub_80333928 /* 80333F74 00330ED4 3B DE 00 14 */ addi r30, r30, 0x14 /* 80333F78 00330ED8 3B FF 00 14 */ addi r31, r31, 0x14 lbl_80333F7C: /* 80333F7C 00330EDC 80 1D 00 00 */ lwz r0, 0(r29) /* 80333F80 00330EE0 7C 1F 00 40 */ cmplw r31, r0 /* 80333F84 00330EE4 40 82 FF E4 */ bne lbl_80333F68 /* 80333F88 00330EE8 80 01 00 24 */ lwz r0, 0x24(r1) /* 80333F8C 00330EEC 7F C3 F3 78 */ mr r3, r30 /* 80333F90 00330EF0 83 E1 00 1C */ lwz r31, 0x1c(r1) /* 80333F94 00330EF4 83 C1 00 18 */ lwz r30, 0x18(r1) /* 80333F98 00330EF8 83 A1 00 14 */ lwz r29, 0x14(r1) /* 80333F9C 00330EFC 7C 08 03 A6 */ mtlr r0 /* 80333FA0 00330F00 38 21 00 20 */ addi r1, r1, 0x20 /* 80333FA4 00330F04 4E 80 00 20 */ blr .section .rodata .balign 8 .global lbl_803D7978 lbl_803D7978: # ROM: 0x3D4978 .asciz "??(??)" .balign 4