prime/asm/Kyoto/CResFactory.s

1775 lines
83 KiB
ArmAsm
Raw Normal View History

.include "macros.inc"
.section .data
.global lbl_803EE368
lbl_803EE368:
# ROM: 0x3EB368
.4byte 0
.4byte 0
.4byte __dt__11CResFactoryFv
.4byte Build__11CResFactoryFRC10SObjectTagRC15CVParamTransfer
.4byte BuildAsync__11CResFactoryFRC10SObjectTagRC15CVParamTransferPP4IObj
.4byte CancelBuild__11CResFactoryFRC10SObjectTag
.4byte CanBuild__11CResFactoryFRC10SObjectTag
.4byte GetResourceIdByName__11CResFactoryCFPCc
.section .sdata
.global lbl_805A890C
lbl_805A890C:
# ROM: 0x3F62AC
.byte 0x01
.global lbl_805A890D
lbl_805A890D:
# ROM: 0x3F62AD
.byte 0x00
.global lbl_805A890E
lbl_805A890E:
# ROM: 0x3F62AE
.2byte 0x00000100
.section .text, "ax"
.global sub_803394a8
sub_803394a8:
/* 803394A8 00336408 94 21 FF 90 */ stwu r1, -0x70(r1)
/* 803394AC 0033640C 7C 08 02 A6 */ mflr r0
/* 803394B0 00336410 90 01 00 74 */ stw r0, 0x74(r1)
/* 803394B4 00336414 BE C1 00 48 */ stmw r22, 0x48(r1)
/* 803394B8 00336418 7C 7E 1B 78 */ mr r30, r3
/* 803394BC 0033641C 7C 9F 23 78 */ mr r31, r4
/* 803394C0 00336420 48 04 BE E9 */ bl OSGetTime
/* 803394C4 00336424 82 FE 00 28 */ lwz r23, 0x28(r30)
/* 803394C8 00336428 7C 9B 23 78 */ mr r27, r4
/* 803394CC 0033642C 83 1E 00 18 */ lwz r24, 0x18(r30)
/* 803394D0 00336430 7C 7C 1B 78 */ mr r28, r3
/* 803394D4 00336434 28 17 00 00 */ cmplwi r23, 0
/* 803394D8 00336438 83 58 00 00 */ lwz r26, 0(r24)
/* 803394DC 0033643C 40 82 01 68 */ bne lbl_80339644
/* 803394E0 00336440 3C 80 80 3D */ lis r4, lbl_803D7A28@ha
/* 803394E4 00336444 38 60 00 38 */ li r3, 0x38
/* 803394E8 00336448 38 84 7A 28 */ addi r4, r4, lbl_803D7A28@l
/* 803394EC 0033644C 38 A0 00 00 */ li r5, 0
/* 803394F0 00336450 4B FD C3 7D */ bl __nw__FUlPCcPCc
/* 803394F4 00336454 3C 80 80 34 */ lis r4, Alloc__11CZipSupportFPvUiUi@ha
/* 803394F8 00336458 3C A0 80 34 */ lis r5, Free__11CZipSupportFPvPv@ha
/* 803394FC 0033645C 38 04 FA 18 */ addi r0, r4, Alloc__11CZipSupportFPvUiUi@l
/* 80339500 00336460 7C 77 1B 78 */ mr r23, r3
/* 80339504 00336464 90 03 00 20 */ stw r0, 0x20(r3)
/* 80339508 00336468 38 A5 F9 EC */ addi r5, r5, Free__11CZipSupportFPvPv@l
/* 8033950C 0033646C 3C 80 80 3D */ lis r4, lbl_803D7A28@ha
/* 80339510 00336470 38 00 00 00 */ li r0, 0
/* 80339514 00336474 90 A3 00 24 */ stw r5, 0x24(r3)
/* 80339518 00336478 38 84 7A 28 */ addi r4, r4, lbl_803D7A28@l
/* 8033951C 0033647C 38 84 00 07 */ addi r4, r4, 7
/* 80339520 00336480 38 A0 00 38 */ li r5, 0x38
/* 80339524 00336484 90 03 00 28 */ stw r0, 0x28(r3)
/* 80339528 00336488 48 00 A4 39 */ bl inflateInit2_
/* 8033952C 0033648C 38 A0 00 00 */ li r5, 0
/* 80339530 00336490 7C 17 00 D0 */ neg r0, r23
/* 80339534 00336494 90 B7 00 08 */ stw r5, 8(r23)
/* 80339538 00336498 7C 04 BB 78 */ or r4, r0, r23
/* 8033953C 0033649C 38 61 00 34 */ addi r3, r1, 0x34
/* 80339540 003364A0 38 1E 00 24 */ addi r0, r30, 0x24
/* 80339544 003364A4 90 B7 00 14 */ stw r5, 0x14(r23)
/* 80339548 003364A8 7C 03 00 40 */ cmplw r3, r0
/* 8033954C 003364AC 54 80 0F FE */ srwi r0, r4, 0x1f
/* 80339550 003364B0 90 B7 00 04 */ stw r5, 4(r23)
/* 80339554 003364B4 90 B7 00 10 */ stw r5, 0x10(r23)
/* 80339558 003364B8 90 B7 00 00 */ stw r5, 0(r23)
/* 8033955C 003364BC 90 B7 00 0C */ stw r5, 0xc(r23)
/* 80339560 003364C0 98 01 00 34 */ stb r0, 0x34(r1)
/* 80339564 003364C4 92 E1 00 38 */ stw r23, 0x38(r1)
/* 80339568 003364C8 41 82 00 30 */ beq lbl_80339598
/* 8033956C 003364CC 88 1E 00 24 */ lbz r0, 0x24(r30)
/* 80339570 003364D0 28 00 00 00 */ cmplwi r0, 0
/* 80339574 003364D4 41 82 00 0C */ beq lbl_80339580
/* 80339578 003364D8 80 7E 00 28 */ lwz r3, 0x28(r30)
/* 8033957C 003364DC 4B FD C3 B5 */ bl Free__7CMemoryFPCv
lbl_80339580:
/* 80339580 003364E0 88 61 00 34 */ lbz r3, 0x34(r1)
/* 80339584 003364E4 38 00 00 00 */ li r0, 0
/* 80339588 003364E8 98 7E 00 24 */ stb r3, 0x24(r30)
/* 8033958C 003364EC 80 61 00 38 */ lwz r3, 0x38(r1)
/* 80339590 003364F0 90 7E 00 28 */ stw r3, 0x28(r30)
/* 80339594 003364F4 98 01 00 34 */ stb r0, 0x34(r1)
lbl_80339598:
/* 80339598 003364F8 88 01 00 34 */ lbz r0, 0x34(r1)
/* 8033959C 003364FC 28 00 00 00 */ cmplwi r0, 0
/* 803395A0 00336500 41 82 00 0C */ beq lbl_803395AC
/* 803395A4 00336504 80 61 00 38 */ lwz r3, 0x38(r1)
/* 803395A8 00336508 4B FD C3 89 */ bl Free__7CMemoryFPCv
lbl_803395AC:
/* 803395AC 0033650C 3C 60 80 3D */ lis r3, lbl_803D7A28@ha
/* 803395B0 00336510 3C 80 80 3D */ lis r4, lbl_803D6AA8@ha
/* 803395B4 00336514 38 A3 7A 28 */ addi r5, r3, lbl_803D7A28@l
/* 803395B8 00336518 38 C4 6A A8 */ addi r6, r4, lbl_803D6AA8@l
/* 803395BC 0033651C 38 61 00 2C */ addi r3, r1, 0x2c
/* 803395C0 00336520 38 80 FF FF */ li r4, -1
/* 803395C4 00336524 4B F9 CE 11 */ bl __ct__10CCallStackFUiPCcPCc
/* 803395C8 00336528 7C 67 1B 78 */ mr r7, r3
/* 803395CC 0033652C 7F 43 D3 78 */ mr r3, r26
/* 803395D0 00336530 38 80 00 02 */ li r4, 2
/* 803395D4 00336534 38 A0 00 01 */ li r5, 1
/* 803395D8 00336538 38 C0 00 00 */ li r6, 0
/* 803395DC 0033653C 4B FD C3 B9 */ bl Alloc__7CMemoryFUlQ210IAllocator5EHintQ210IAllocator6EScopeQ210IAllocator5ETypeRC10CCallStack
/* 803395E0 00336540 7C 03 00 D0 */ neg r0, r3
/* 803395E4 00336544 38 81 00 24 */ addi r4, r1, 0x24
/* 803395E8 00336548 7C 05 1B 78 */ or r5, r0, r3
/* 803395EC 0033654C 38 1E 00 1C */ addi r0, r30, 0x1c
/* 803395F0 00336550 54 A5 0F FE */ srwi r5, r5, 0x1f
/* 803395F4 00336554 90 61 00 28 */ stw r3, 0x28(r1)
/* 803395F8 00336558 7C 04 00 40 */ cmplw r4, r0
/* 803395FC 0033655C 98 A1 00 24 */ stb r5, 0x24(r1)
/* 80339600 00336560 41 82 00 30 */ beq lbl_80339630
/* 80339604 00336564 88 1E 00 1C */ lbz r0, 0x1c(r30)
/* 80339608 00336568 28 00 00 00 */ cmplwi r0, 0
/* 8033960C 0033656C 41 82 00 0C */ beq lbl_80339618
/* 80339610 00336570 80 7E 00 20 */ lwz r3, 0x20(r30)
/* 80339614 00336574 4B FD C3 1D */ bl Free__7CMemoryFPCv
lbl_80339618:
/* 80339618 00336578 88 61 00 24 */ lbz r3, 0x24(r1)
/* 8033961C 0033657C 38 00 00 00 */ li r0, 0
/* 80339620 00336580 98 7E 00 1C */ stb r3, 0x1c(r30)
/* 80339624 00336584 80 61 00 28 */ lwz r3, 0x28(r1)
/* 80339628 00336588 90 7E 00 20 */ stw r3, 0x20(r30)
/* 8033962C 0033658C 98 01 00 24 */ stb r0, 0x24(r1)
lbl_80339630:
/* 80339630 00336590 88 01 00 24 */ lbz r0, 0x24(r1)
/* 80339634 00336594 28 00 00 00 */ cmplwi r0, 0
/* 80339638 00336598 41 82 00 0C */ beq lbl_80339644
/* 8033963C 0033659C 80 61 00 28 */ lwz r3, 0x28(r1)
/* 80339640 003365A0 4B FD C2 F1 */ bl Free__7CMemoryFPCv
lbl_80339644:
/* 80339644 003365A4 80 9E 00 2C */ lwz r4, 0x2c(r30)
/* 80339648 003365A8 3C 60 80 5A */ lis r3, mData__10CStopwatch@ha
/* 8033964C 003365AC 3A D8 00 04 */ addi r22, r24, 4
/* 80339650 003365B0 3B 00 00 00 */ li r24, 0
/* 80339654 003365B4 3B 24 FF FC */ addi r25, r4, -4
/* 80339658 003365B8 3B A3 FD 30 */ addi r29, r3, mData__10CStopwatch@l
/* 8033965C 003365BC 48 00 00 74 */ b lbl_803396D0
lbl_80339660:
/* 80339660 003365C0 80 17 00 04 */ lwz r0, 4(r23)
/* 80339664 003365C4 28 00 00 00 */ cmplwi r0, 0
/* 80339668 003365C8 40 82 00 5C */ bne lbl_803396C4
/* 8033966C 003365CC 80 97 00 08 */ lwz r4, 8(r23)
/* 80339670 003365D0 38 62 CB A0 */ addi r3, r2, lbl_805AE8C0@sda21
/* 80339674 003365D4 80 02 CB A0 */ lwz r0, lbl_805AE8C0@sda21(r2)
/* 80339678 003365D8 7C 84 C8 50 */ subf r4, r4, r25
/* 8033967C 003365DC 7C 04 00 00 */ cmpw r4, r0
/* 80339680 003365E0 90 81 00 08 */ stw r4, 8(r1)
/* 80339684 003365E4 40 80 00 08 */ bge lbl_8033968C
/* 80339688 003365E8 38 61 00 08 */ addi r3, r1, 8
lbl_8033968C:
/* 8033968C 003365EC 80 63 00 00 */ lwz r3, 0(r3)
/* 80339690 003365F0 2C 03 00 00 */ cmpwi r3, 0
/* 80339694 003365F4 41 82 00 84 */ beq lbl_80339718
/* 80339698 003365F8 80 17 00 08 */ lwz r0, 8(r23)
/* 8033969C 003365FC 7C 16 02 14 */ add r0, r22, r0
/* 803396A0 00336600 90 17 00 00 */ stw r0, 0(r23)
/* 803396A4 00336604 90 77 00 04 */ stw r3, 4(r23)
/* 803396A8 00336608 80 7E 00 20 */ lwz r3, 0x20(r30)
/* 803396AC 0033660C 80 17 00 14 */ lwz r0, 0x14(r23)
/* 803396B0 00336610 7C 03 02 14 */ add r0, r3, r0
/* 803396B4 00336614 90 17 00 0C */ stw r0, 0xc(r23)
/* 803396B8 00336618 80 17 00 14 */ lwz r0, 0x14(r23)
/* 803396BC 0033661C 7C 00 D0 50 */ subf r0, r0, r26
/* 803396C0 00336620 90 17 00 10 */ stw r0, 0x10(r23)
lbl_803396C4:
/* 803396C4 00336624 7E E3 BB 78 */ mr r3, r23
/* 803396C8 00336628 38 80 00 00 */ li r4, 0
/* 803396CC 0033662C 48 00 9C 91 */ bl inflate
lbl_803396D0:
/* 803396D0 00336630 28 1F 00 00 */ cmplwi r31, 0
/* 803396D4 00336634 41 82 00 38 */ beq lbl_8033970C
/* 803396D8 00336638 48 04 BC D1 */ bl OSGetTime
/* 803396DC 0033663C 7C 9B 20 10 */ subfc r4, r27, r4
/* 803396E0 00336640 80 BD 00 08 */ lwz r5, 8(r29)
/* 803396E4 00336644 80 DD 00 0C */ lwz r6, 0xc(r29)
/* 803396E8 00336648 7C 7C 19 10 */ subfe r3, r28, r3
/* 803396EC 0033664C 48 05 04 E1 */ bl __div2i
/* 803396F0 00336650 6C 65 80 00 */ xoris r5, r3, 0x8000
/* 803396F4 00336654 6F 03 80 00 */ xoris r3, r24, 0x8000
/* 803396F8 00336658 7C 1F 20 10 */ subfc r0, r31, r4
/* 803396FC 0033665C 7C 63 29 10 */ subfe r3, r3, r5
/* 80339700 00336660 7C 65 29 10 */ subfe r3, r5, r5
/* 80339704 00336664 7C 63 00 D1 */ neg. r3, r3
/* 80339708 00336668 41 82 00 10 */ beq lbl_80339718
lbl_8033970C:
/* 8033970C 0033666C 80 17 00 14 */ lwz r0, 0x14(r23)
/* 80339710 00336670 7C 1A 00 40 */ cmplw r26, r0
/* 80339714 00336674 40 82 FF 4C */ bne lbl_80339660
lbl_80339718:
/* 80339718 00336678 80 17 00 14 */ lwz r0, 0x14(r23)
/* 8033971C 0033667C 7C 1A 00 40 */ cmplw r26, r0
/* 80339720 00336680 40 82 01 48 */ bne lbl_80339868
/* 80339724 00336684 7E E3 BB 78 */ mr r3, r23
/* 80339728 00336688 48 00 A4 19 */ bl inflateEnd
/* 8033972C 0033668C 38 61 00 1C */ addi r3, r1, 0x1c
/* 80339730 00336690 38 1E 00 24 */ addi r0, r30, 0x24
/* 80339734 00336694 38 80 00 00 */ li r4, 0
/* 80339738 00336698 7C 03 00 40 */ cmplw r3, r0
/* 8033973C 0033669C 98 81 00 1C */ stb r4, 0x1c(r1)
/* 80339740 003366A0 90 81 00 20 */ stw r4, 0x20(r1)
/* 80339744 003366A4 41 82 00 30 */ beq lbl_80339774
/* 80339748 003366A8 88 1E 00 24 */ lbz r0, 0x24(r30)
/* 8033974C 003366AC 28 00 00 00 */ cmplwi r0, 0
/* 80339750 003366B0 41 82 00 0C */ beq lbl_8033975C
/* 80339754 003366B4 80 7E 00 28 */ lwz r3, 0x28(r30)
/* 80339758 003366B8 4B FD C1 D9 */ bl Free__7CMemoryFPCv
lbl_8033975C:
/* 8033975C 003366BC 88 61 00 1C */ lbz r3, 0x1c(r1)
/* 80339760 003366C0 38 00 00 00 */ li r0, 0
/* 80339764 003366C4 98 7E 00 24 */ stb r3, 0x24(r30)
/* 80339768 003366C8 80 61 00 20 */ lwz r3, 0x20(r1)
/* 8033976C 003366CC 90 7E 00 28 */ stw r3, 0x28(r30)
/* 80339770 003366D0 98 01 00 1C */ stb r0, 0x1c(r1)
lbl_80339774:
/* 80339774 003366D4 88 01 00 1C */ lbz r0, 0x1c(r1)
/* 80339778 003366D8 28 00 00 00 */ cmplwi r0, 0
/* 8033977C 003366DC 41 82 00 0C */ beq lbl_80339788
/* 80339780 003366E0 80 61 00 20 */ lwz r3, 0x20(r1)
/* 80339784 003366E4 4B FD C1 AD */ bl Free__7CMemoryFPCv
lbl_80339788:
/* 80339788 003366E8 38 00 00 00 */ li r0, 0
/* 8033978C 003366EC 38 61 00 14 */ addi r3, r1, 0x14
/* 80339790 003366F0 98 1E 00 1C */ stb r0, 0x1c(r30)
/* 80339794 003366F4 38 1E 00 14 */ addi r0, r30, 0x14
/* 80339798 003366F8 7C 03 00 40 */ cmplw r3, r0
/* 8033979C 003366FC 80 7E 00 20 */ lwz r3, 0x20(r30)
/* 803397A0 00336700 7C 03 00 D0 */ neg r0, r3
/* 803397A4 00336704 90 61 00 18 */ stw r3, 0x18(r1)
/* 803397A8 00336708 7C 00 1B 78 */ or r0, r0, r3
/* 803397AC 0033670C 54 00 0F FE */ srwi r0, r0, 0x1f
/* 803397B0 00336710 98 01 00 14 */ stb r0, 0x14(r1)
/* 803397B4 00336714 41 82 00 30 */ beq lbl_803397E4
/* 803397B8 00336718 88 1E 00 14 */ lbz r0, 0x14(r30)
/* 803397BC 0033671C 28 00 00 00 */ cmplwi r0, 0
/* 803397C0 00336720 41 82 00 0C */ beq lbl_803397CC
/* 803397C4 00336724 80 7E 00 18 */ lwz r3, 0x18(r30)
/* 803397C8 00336728 4B FD C1 69 */ bl Free__7CMemoryFPCv
lbl_803397CC:
/* 803397CC 0033672C 88 61 00 14 */ lbz r3, 0x14(r1)
/* 803397D0 00336730 38 00 00 00 */ li r0, 0
/* 803397D4 00336734 98 7E 00 14 */ stb r3, 0x14(r30)
/* 803397D8 00336738 80 61 00 18 */ lwz r3, 0x18(r1)
/* 803397DC 0033673C 90 7E 00 18 */ stw r3, 0x18(r30)
/* 803397E0 00336740 98 01 00 14 */ stb r0, 0x14(r1)
lbl_803397E4:
/* 803397E4 00336744 88 01 00 14 */ lbz r0, 0x14(r1)
/* 803397E8 00336748 28 00 00 00 */ cmplwi r0, 0
/* 803397EC 0033674C 41 82 00 0C */ beq lbl_803397F8
/* 803397F0 00336750 80 61 00 18 */ lwz r3, 0x18(r1)
/* 803397F4 00336754 4B FD C1 3D */ bl Free__7CMemoryFPCv
lbl_803397F8:
/* 803397F8 00336758 38 61 00 0C */ addi r3, r1, 0xc
/* 803397FC 0033675C 38 1E 00 1C */ addi r0, r30, 0x1c
/* 80339800 00336760 38 80 00 00 */ li r4, 0
/* 80339804 00336764 7C 03 00 40 */ cmplw r3, r0
/* 80339808 00336768 98 81 00 0C */ stb r4, 0xc(r1)
/* 8033980C 0033676C 90 81 00 10 */ stw r4, 0x10(r1)
/* 80339810 00336770 41 82 00 30 */ beq lbl_80339840
/* 80339814 00336774 88 1E 00 1C */ lbz r0, 0x1c(r30)
/* 80339818 00336778 28 00 00 00 */ cmplwi r0, 0
/* 8033981C 0033677C 41 82 00 0C */ beq lbl_80339828
/* 80339820 00336780 80 7E 00 20 */ lwz r3, 0x20(r30)
/* 80339824 00336784 4B FD C1 0D */ bl Free__7CMemoryFPCv
lbl_80339828:
/* 80339828 00336788 88 61 00 0C */ lbz r3, 0xc(r1)
/* 8033982C 0033678C 38 00 00 00 */ li r0, 0
/* 80339830 00336790 98 7E 00 1C */ stb r3, 0x1c(r30)
/* 80339834 00336794 80 61 00 10 */ lwz r3, 0x10(r1)
/* 80339838 00336798 90 7E 00 20 */ stw r3, 0x20(r30)
/* 8033983C 0033679C 98 01 00 0C */ stb r0, 0xc(r1)
lbl_80339840:
/* 80339840 003367A0 88 01 00 0C */ lbz r0, 0xc(r1)
/* 80339844 003367A4 28 00 00 00 */ cmplwi r0, 0
/* 80339848 003367A8 41 82 00 0C */ beq lbl_80339854
/* 8033984C 003367AC 80 61 00 10 */ lwz r3, 0x10(r1)
/* 80339850 003367B0 4B FD C0 E1 */ bl Free__7CMemoryFPCv
lbl_80339854:
/* 80339854 003367B4 38 00 00 00 */ li r0, 0
/* 80339858 003367B8 38 60 00 01 */ li r3, 1
/* 8033985C 003367BC 90 1E 00 30 */ stw r0, 0x30(r30)
/* 80339860 003367C0 93 5E 00 2C */ stw r26, 0x2c(r30)
/* 80339864 003367C4 48 00 00 08 */ b lbl_8033986C
lbl_80339868:
/* 80339868 003367C8 38 60 00 00 */ li r3, 0
lbl_8033986C:
/* 8033986C 003367CC BA C1 00 48 */ lmw r22, 0x48(r1)
/* 80339870 003367D0 80 01 00 74 */ lwz r0, 0x74(r1)
/* 80339874 003367D4 7C 08 03 A6 */ mtlr r0
/* 80339878 003367D8 38 21 00 70 */ addi r1, r1, 0x70
/* 8033987C 003367DC 4E 80 00 20 */ blr
.global sub_80339880
sub_80339880:
/* 80339880 003367E0 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 80339884 003367E4 7C 08 02 A6 */ mflr r0
/* 80339888 003367E8 90 01 00 14 */ stw r0, 0x14(r1)
/* 8033988C 003367EC 93 E1 00 0C */ stw r31, 0xc(r1)
/* 80339890 003367F0 7C 9F 23 78 */ mr r31, r4
/* 80339894 003367F4 93 C1 00 08 */ stw r30, 8(r1)
/* 80339898 003367F8 7C 7E 1B 79 */ or. r30, r3, r3
/* 8033989C 003367FC 41 82 00 C8 */ beq lbl_80339964
/* 803398A0 00336800 88 1E 00 24 */ lbz r0, 0x24(r30)
/* 803398A4 00336804 28 00 00 00 */ cmplwi r0, 0
/* 803398A8 00336808 41 82 00 0C */ beq lbl_803398B4
/* 803398AC 0033680C 80 7E 00 28 */ lwz r3, 0x28(r30)
/* 803398B0 00336810 48 00 A2 91 */ bl inflateEnd
lbl_803398B4:
/* 803398B4 00336814 34 1E 00 34 */ addic. r0, r30, 0x34
/* 803398B8 00336818 41 82 00 14 */ beq lbl_803398CC
/* 803398BC 0033681C 34 1E 00 34 */ addic. r0, r30, 0x34
/* 803398C0 00336820 41 82 00 0C */ beq lbl_803398CC
/* 803398C4 00336824 38 7E 00 34 */ addi r3, r30, 0x34
/* 803398C8 00336828 4B CF AA 3D */ bl sub_80034304
lbl_803398CC:
/* 803398CC 0033682C 34 1E 00 24 */ addic. r0, r30, 0x24
/* 803398D0 00336830 41 82 00 18 */ beq lbl_803398E8
/* 803398D4 00336834 88 1E 00 24 */ lbz r0, 0x24(r30)
/* 803398D8 00336838 28 00 00 00 */ cmplwi r0, 0
/* 803398DC 0033683C 41 82 00 0C */ beq lbl_803398E8
/* 803398E0 00336840 80 7E 00 28 */ lwz r3, 0x28(r30)
/* 803398E4 00336844 4B FD C0 4D */ bl Free__7CMemoryFPCv
lbl_803398E8:
/* 803398E8 00336848 34 1E 00 1C */ addic. r0, r30, 0x1c
/* 803398EC 0033684C 41 82 00 18 */ beq lbl_80339904
/* 803398F0 00336850 88 1E 00 1C */ lbz r0, 0x1c(r30)
/* 803398F4 00336854 28 00 00 00 */ cmplwi r0, 0
/* 803398F8 00336858 41 82 00 0C */ beq lbl_80339904
/* 803398FC 0033685C 80 7E 00 20 */ lwz r3, 0x20(r30)
/* 80339900 00336860 4B FD C0 31 */ bl Free__7CMemoryFPCv
lbl_80339904:
/* 80339904 00336864 34 1E 00 14 */ addic. r0, r30, 0x14
/* 80339908 00336868 41 82 00 18 */ beq lbl_80339920
/* 8033990C 0033686C 88 1E 00 14 */ lbz r0, 0x14(r30)
/* 80339910 00336870 28 00 00 00 */ cmplwi r0, 0
/* 80339914 00336874 41 82 00 0C */ beq lbl_80339920
/* 80339918 00336878 80 7E 00 18 */ lwz r3, 0x18(r30)
/* 8033991C 0033687C 4B FD C0 15 */ bl Free__7CMemoryFPCv
lbl_80339920:
/* 80339920 00336880 34 1E 00 08 */ addic. r0, r30, 8
/* 80339924 00336884 41 82 00 30 */ beq lbl_80339954
/* 80339928 00336888 88 1E 00 08 */ lbz r0, 8(r30)
/* 8033992C 0033688C 28 00 00 00 */ cmplwi r0, 0
/* 80339930 00336890 41 82 00 24 */ beq lbl_80339954
/* 80339934 00336894 80 7E 00 0C */ lwz r3, 0xc(r30)
/* 80339938 00336898 28 03 00 00 */ cmplwi r3, 0
/* 8033993C 0033689C 41 82 00 18 */ beq lbl_80339954
/* 80339940 003368A0 81 83 00 00 */ lwz r12, 0(r3)
/* 80339944 003368A4 38 80 00 01 */ li r4, 1
/* 80339948 003368A8 81 8C 00 08 */ lwz r12, 8(r12)
/* 8033994C 003368AC 7D 89 03 A6 */ mtctr r12
/* 80339950 003368B0 4E 80 04 21 */ bctrl
lbl_80339954:
/* 80339954 003368B4 7F E0 07 35 */ extsh. r0, r31
/* 80339958 003368B8 40 81 00 0C */ ble lbl_80339964
/* 8033995C 003368BC 7F C3 F3 78 */ mr r3, r30
/* 80339960 003368C0 4B FD BF D1 */ bl Free__7CMemoryFPCv
lbl_80339964:
/* 80339964 003368C4 80 01 00 14 */ lwz r0, 0x14(r1)
/* 80339968 003368C8 7F C3 F3 78 */ mr r3, r30
/* 8033996C 003368CC 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 80339970 003368D0 83 C1 00 08 */ lwz r30, 8(r1)
/* 80339974 003368D4 7C 08 03 A6 */ mtlr r0
/* 80339978 003368D8 38 21 00 10 */ addi r1, r1, 0x10
/* 8033997C 003368DC 4E 80 00 20 */ blr
.global sub_80339980
sub_80339980:
/* 80339980 003368E0 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 80339984 003368E4 7D 65 00 D0 */ neg r11, r5
/* 80339988 003368E8 7C 07 00 D0 */ neg r0, r7
/* 8033998C 003368EC 93 E1 00 0C */ stw r31, 0xc(r1)
/* 80339990 003368F0 81 84 00 00 */ lwz r12, 0(r4)
/* 80339994 003368F4 91 83 00 00 */ stw r12, 0(r3)
/* 80339998 003368F8 7D 6C 2B 78 */ or r12, r11, r5
/* 8033999C 003368FC 7C 0B 3B 78 */ or r11, r0, r7
/* 803399A0 00336900 38 00 00 00 */ li r0, 0
/* 803399A4 00336904 83 E4 00 04 */ lwz r31, 4(r4)
/* 803399A8 00336908 55 8C 0F FE */ srwi r12, r12, 0x1f
/* 803399AC 0033690C 55 64 0F FE */ srwi r4, r11, 0x1f
/* 803399B0 00336910 93 E3 00 04 */ stw r31, 4(r3)
/* 803399B4 00336914 99 83 00 08 */ stb r12, 8(r3)
/* 803399B8 00336918 90 A3 00 0C */ stw r5, 0xc(r3)
/* 803399BC 0033691C 90 C3 00 10 */ stw r6, 0x10(r3)
/* 803399C0 00336920 98 83 00 14 */ stb r4, 0x14(r3)
/* 803399C4 00336924 90 E3 00 18 */ stw r7, 0x18(r3)
/* 803399C8 00336928 98 03 00 1C */ stb r0, 0x1c(r3)
/* 803399CC 0033692C 90 03 00 20 */ stw r0, 0x20(r3)
/* 803399D0 00336930 98 03 00 24 */ stb r0, 0x24(r3)
/* 803399D4 00336934 90 03 00 28 */ stw r0, 0x28(r3)
/* 803399D8 00336938 91 03 00 2C */ stw r8, 0x2c(r3)
/* 803399DC 0033693C 91 23 00 30 */ stw r9, 0x30(r3)
/* 803399E0 00336940 80 0A 00 00 */ lwz r0, 0(r10)
/* 803399E4 00336944 90 03 00 34 */ stw r0, 0x34(r3)
/* 803399E8 00336948 80 A3 00 34 */ lwz r5, 0x34(r3)
/* 803399EC 0033694C 80 85 00 04 */ lwz r4, 4(r5)
/* 803399F0 00336950 38 04 00 01 */ addi r0, r4, 1
/* 803399F4 00336954 90 05 00 04 */ stw r0, 4(r5)
/* 803399F8 00336958 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 803399FC 0033695C 38 21 00 10 */ addi r1, r1, 0x10
/* 80339A00 00336960 4E 80 00 20 */ blr
.global PumpResource__11CResFactoryFR12SLoadingData
PumpResource__11CResFactoryFR12SLoadingData:
/* 80339A04 00336964 94 21 FF A0 */ stwu r1, -0x60(r1)
/* 80339A08 00336968 7C 08 02 A6 */ mflr r0
/* 80339A0C 0033696C 90 01 00 64 */ stw r0, 0x64(r1)
/* 80339A10 00336970 93 E1 00 5C */ stw r31, 0x5c(r1)
/* 80339A14 00336974 7C BF 2B 78 */ mr r31, r5
/* 80339A18 00336978 93 C1 00 58 */ stw r30, 0x58(r1)
/* 80339A1C 0033697C 7C 9E 23 78 */ mr r30, r4
/* 80339A20 00336980 93 A1 00 54 */ stw r29, 0x54(r1)
/* 80339A24 00336984 7C 7D 1B 78 */ mr r29, r3
/* 80339A28 00336988 80 64 00 00 */ lwz r3, 0(r4)
/* 80339A2C 0033698C 80 63 00 14 */ lwz r3, 0x14(r3)
/* 80339A30 00336990 81 83 00 00 */ lwz r12, 0(r3)
/* 80339A34 00336994 81 8C 00 10 */ lwz r12, 0x10(r12)
/* 80339A38 00336998 7D 89 03 A6 */ mtctr r12
/* 80339A3C 0033699C 4E 80 04 21 */ bctrl
/* 80339A40 003369A0 54 60 06 3F */ clrlwi. r0, r3, 0x18
/* 80339A44 003369A4 41 82 00 D4 */ beq lbl_80339B18
/* 80339A48 003369A8 80 7E 00 00 */ lwz r3, 0(r30)
/* 80339A4C 003369AC 38 63 00 08 */ addi r3, r3, 8
/* 80339A50 003369B0 80 03 00 30 */ lwz r0, 0x30(r3)
/* 80339A54 003369B4 2C 00 00 01 */ cmpwi r0, 1
/* 80339A58 003369B8 40 82 00 1C */ bne lbl_80339A74
/* 80339A5C 003369BC 7F E4 FB 78 */ mr r4, r31
/* 80339A60 003369C0 4B FF FA 49 */ bl sub_803394a8
/* 80339A64 003369C4 54 60 06 3F */ clrlwi. r0, r3, 0x18
/* 80339A68 003369C8 40 82 00 0C */ bne lbl_80339A74
/* 80339A6C 003369CC 38 60 00 00 */ li r3, 0
/* 80339A70 003369D0 48 00 00 AC */ b lbl_80339B1C
lbl_80339A74:
/* 80339A74 003369D4 80 9E 00 00 */ lwz r4, 0(r30)
/* 80339A78 003369D8 38 61 00 10 */ addi r3, r1, 0x10
/* 80339A7C 003369DC 38 84 00 08 */ addi r4, r4, 8
/* 80339A80 003369E0 48 00 00 B9 */ bl sub_80339b38
/* 80339A84 003369E4 7F A3 EB 78 */ mr r3, r29
/* 80339A88 003369E8 7F C4 F3 78 */ mr r4, r30
/* 80339A8C 003369EC 48 00 08 15 */ bl sub_8033a2a0
/* 80339A90 003369F0 80 81 00 40 */ lwz r4, 0x40(r1)
/* 80339A94 003369F4 38 00 00 00 */ li r0, 0
/* 80339A98 003369F8 98 01 00 24 */ stb r0, 0x24(r1)
/* 80339A9C 003369FC 38 61 00 08 */ addi r3, r1, 8
/* 80339AA0 00336A00 7C 04 00 D0 */ neg r0, r4
/* 80339AA4 00336A04 80 C1 00 28 */ lwz r6, 0x28(r1)
/* 80339AA8 00336A08 7C 00 23 78 */ or r0, r0, r4
/* 80339AAC 00336A0C 80 E1 00 3C */ lwz r7, 0x3c(r1)
/* 80339AB0 00336A10 38 9D 00 5C */ addi r4, r29, 0x5c
/* 80339AB4 00336A14 38 A1 00 10 */ addi r5, r1, 0x10
/* 80339AB8 00336A18 54 08 0F FE */ srwi r8, r0, 0x1f
/* 80339ABC 00336A1C 39 21 00 44 */ addi r9, r1, 0x44
/* 80339AC0 00336A20 4B FF EC 2D */ bl MakeObjectFromMemory__11CFactoryMgrFRC10SObjectTagPvibRC15CVParamTransfer
/* 80339AC4 00336A24 38 00 00 00 */ li r0, 0
/* 80339AC8 00336A28 80 81 00 0C */ lwz r4, 0xc(r1)
/* 80339ACC 00336A2C 98 01 00 08 */ stb r0, 8(r1)
/* 80339AD0 00336A30 80 61 00 20 */ lwz r3, 0x20(r1)
/* 80339AD4 00336A34 90 83 00 00 */ stw r4, 0(r3)
/* 80339AD8 00336A38 88 01 00 08 */ lbz r0, 8(r1)
/* 80339ADC 00336A3C 28 00 00 00 */ cmplwi r0, 0
/* 80339AE0 00336A40 41 82 00 24 */ beq lbl_80339B04
/* 80339AE4 00336A44 80 61 00 0C */ lwz r3, 0xc(r1)
/* 80339AE8 00336A48 28 03 00 00 */ cmplwi r3, 0
/* 80339AEC 00336A4C 41 82 00 18 */ beq lbl_80339B04
/* 80339AF0 00336A50 81 83 00 00 */ lwz r12, 0(r3)
/* 80339AF4 00336A54 38 80 00 01 */ li r4, 1
/* 80339AF8 00336A58 81 8C 00 08 */ lwz r12, 8(r12)
/* 80339AFC 00336A5C 7D 89 03 A6 */ mtctr r12
/* 80339B00 00336A60 4E 80 04 21 */ bctrl
lbl_80339B04:
/* 80339B04 00336A64 38 61 00 10 */ addi r3, r1, 0x10
/* 80339B08 00336A68 38 80 FF FF */ li r4, -1
/* 80339B0C 00336A6C 4B FF FD 75 */ bl sub_80339880
/* 80339B10 00336A70 38 60 00 01 */ li r3, 1
/* 80339B14 00336A74 48 00 00 08 */ b lbl_80339B1C
lbl_80339B18:
/* 80339B18 00336A78 38 60 00 00 */ li r3, 0
lbl_80339B1C:
/* 80339B1C 00336A7C 80 01 00 64 */ lwz r0, 0x64(r1)
/* 80339B20 00336A80 83 E1 00 5C */ lwz r31, 0x5c(r1)
/* 80339B24 00336A84 83 C1 00 58 */ lwz r30, 0x58(r1)
/* 80339B28 00336A88 83 A1 00 54 */ lwz r29, 0x54(r1)
/* 80339B2C 00336A8C 7C 08 03 A6 */ mtlr r0
/* 80339B30 00336A90 38 21 00 60 */ addi r1, r1, 0x60
/* 80339B34 00336A94 4E 80 00 20 */ blr
.global sub_80339b38
sub_80339b38:
/* 80339B38 00336A98 80 04 00 00 */ lwz r0, 0(r4)
/* 80339B3C 00336A9C 38 A0 00 00 */ li r5, 0
/* 80339B40 00336AA0 90 03 00 00 */ stw r0, 0(r3)
/* 80339B44 00336AA4 80 04 00 04 */ lwz r0, 4(r4)
/* 80339B48 00336AA8 90 03 00 04 */ stw r0, 4(r3)
/* 80339B4C 00336AAC 88 04 00 08 */ lbz r0, 8(r4)
/* 80339B50 00336AB0 98 03 00 08 */ stb r0, 8(r3)
/* 80339B54 00336AB4 80 04 00 0C */ lwz r0, 0xc(r4)
/* 80339B58 00336AB8 90 03 00 0C */ stw r0, 0xc(r3)
/* 80339B5C 00336ABC 98 A4 00 08 */ stb r5, 8(r4)
/* 80339B60 00336AC0 80 04 00 10 */ lwz r0, 0x10(r4)
/* 80339B64 00336AC4 90 03 00 10 */ stw r0, 0x10(r3)
/* 80339B68 00336AC8 88 04 00 14 */ lbz r0, 0x14(r4)
/* 80339B6C 00336ACC 98 03 00 14 */ stb r0, 0x14(r3)
/* 80339B70 00336AD0 80 04 00 18 */ lwz r0, 0x18(r4)
/* 80339B74 00336AD4 90 03 00 18 */ stw r0, 0x18(r3)
/* 80339B78 00336AD8 98 A4 00 14 */ stb r5, 0x14(r4)
/* 80339B7C 00336ADC 88 04 00 1C */ lbz r0, 0x1c(r4)
/* 80339B80 00336AE0 98 03 00 1C */ stb r0, 0x1c(r3)
/* 80339B84 00336AE4 80 04 00 20 */ lwz r0, 0x20(r4)
/* 80339B88 00336AE8 90 03 00 20 */ stw r0, 0x20(r3)
/* 80339B8C 00336AEC 98 A4 00 1C */ stb r5, 0x1c(r4)
/* 80339B90 00336AF0 88 04 00 24 */ lbz r0, 0x24(r4)
/* 80339B94 00336AF4 98 03 00 24 */ stb r0, 0x24(r3)
/* 80339B98 00336AF8 80 04 00 28 */ lwz r0, 0x28(r4)
/* 80339B9C 00336AFC 90 03 00 28 */ stw r0, 0x28(r3)
/* 80339BA0 00336B00 98 A4 00 24 */ stb r5, 0x24(r4)
/* 80339BA4 00336B04 80 04 00 2C */ lwz r0, 0x2c(r4)
/* 80339BA8 00336B08 90 03 00 2C */ stw r0, 0x2c(r3)
/* 80339BAC 00336B0C 80 04 00 30 */ lwz r0, 0x30(r4)
/* 80339BB0 00336B10 90 03 00 30 */ stw r0, 0x30(r3)
/* 80339BB4 00336B14 80 04 00 34 */ lwz r0, 0x34(r4)
/* 80339BB8 00336B18 90 03 00 34 */ stw r0, 0x34(r3)
/* 80339BBC 00336B1C 80 A3 00 34 */ lwz r5, 0x34(r3)
/* 80339BC0 00336B20 80 85 00 04 */ lwz r4, 4(r5)
/* 80339BC4 00336B24 38 04 00 01 */ addi r0, r4, 1
/* 80339BC8 00336B28 90 05 00 04 */ stw r0, 4(r5)
/* 80339BCC 00336B2C 4E 80 00 20 */ blr
.global AsyncIdle__11CResFactoryFUl
AsyncIdle__11CResFactoryFUl:
/* 80339BD0 00336B30 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 80339BD4 00336B34 7C 08 02 A6 */ mflr r0
/* 80339BD8 00336B38 90 01 00 34 */ stw r0, 0x34(r1)
/* 80339BDC 00336B3C BF 21 00 14 */ stmw r25, 0x14(r1)
/* 80339BE0 00336B40 7C 7A 1B 78 */ mr r26, r3
/* 80339BE4 00336B44 7C 9B 23 78 */ mr r27, r4
/* 80339BE8 00336B48 3B 80 00 01 */ li r28, 1
/* 80339BEC 00336B4C 48 04 B7 BD */ bl OSGetTime
/* 80339BF0 00336B50 83 FA 00 B4 */ lwz r31, 0xb4(r26)
/* 80339BF4 00336B54 7C 9D 23 78 */ mr r29, r4
/* 80339BF8 00336B58 7C 7E 1B 78 */ mr r30, r3
/* 80339BFC 00336B5C 48 00 00 34 */ b lbl_80339C30
lbl_80339C00:
/* 80339C00 00336B60 7F F9 FB 78 */ mr r25, r31
/* 80339C04 00336B64 83 FF 00 04 */ lwz r31, 4(r31)
/* 80339C08 00336B68 80 79 00 14 */ lwz r3, 0x14(r25)
/* 80339C0C 00336B6C 81 83 00 00 */ lwz r12, 0(r3)
/* 80339C10 00336B70 81 8C 00 10 */ lwz r12, 0x10(r12)
/* 80339C14 00336B74 7D 89 03 A6 */ mtctr r12
/* 80339C18 00336B78 4E 80 04 21 */ bctrl
/* 80339C1C 00336B7C 54 60 06 3F */ clrlwi. r0, r3, 0x18
/* 80339C20 00336B80 41 82 00 10 */ beq lbl_80339C30
/* 80339C24 00336B84 7F 24 CB 78 */ mr r4, r25
/* 80339C28 00336B88 38 7A 00 B0 */ addi r3, r26, 0xb0
/* 80339C2C 00336B8C 48 00 0C B1 */ bl sub_8033a8dc
lbl_80339C30:
/* 80339C30 00336B90 80 1A 00 B8 */ lwz r0, 0xb8(r26)
/* 80339C34 00336B94 7C 1F 00 40 */ cmplw r31, r0
/* 80339C38 00336B98 40 82 FF C8 */ bne lbl_80339C00
/* 80339C3C 00336B9C 3C 60 80 5A */ lis r3, mData__10CStopwatch@ha
/* 80339C40 00336BA0 3B E3 FD 30 */ addi r31, r3, mData__10CStopwatch@l
/* 80339C44 00336BA4 48 00 00 90 */ b lbl_80339CD4
lbl_80339C48:
/* 80339C48 00336BA8 3B 80 00 00 */ li r28, 0
/* 80339C4C 00336BAC 48 04 B7 5D */ bl OSGetTime
/* 80339C50 00336BB0 7C 9D 20 10 */ subfc r4, r29, r4
/* 80339C54 00336BB4 80 BF 00 08 */ lwz r5, 8(r31)
/* 80339C58 00336BB8 80 DF 00 0C */ lwz r6, 0xc(r31)
/* 80339C5C 00336BBC 7C 7E 19 10 */ subfe r3, r30, r3
/* 80339C60 00336BC0 48 04 FF 6D */ bl __div2i
/* 80339C64 00336BC4 80 1A 00 88 */ lwz r0, 0x88(r26)
/* 80339C68 00336BC8 7C 85 23 78 */ mr r5, r4
/* 80339C6C 00336BCC 90 01 00 08 */ stw r0, 8(r1)
/* 80339C70 00336BD0 48 00 00 4C */ b lbl_80339CBC
lbl_80339C74:
/* 80339C74 00336BD4 7F 43 D3 78 */ mr r3, r26
/* 80339C78 00336BD8 38 81 00 08 */ addi r4, r1, 8
/* 80339C7C 00336BDC 7C A5 D8 50 */ subf r5, r5, r27
/* 80339C80 00336BE0 4B FF FD 85 */ bl PumpResource__11CResFactoryFR12SLoadingData
/* 80339C84 00336BE4 54 60 06 3F */ clrlwi. r0, r3, 0x18
/* 80339C88 00336BE8 41 82 00 0C */ beq lbl_80339C94
/* 80339C8C 00336BEC 3B 80 00 01 */ li r28, 1
/* 80339C90 00336BF0 48 00 00 44 */ b lbl_80339CD4
lbl_80339C94:
/* 80339C94 00336BF4 80 61 00 08 */ lwz r3, 8(r1)
/* 80339C98 00336BF8 80 03 00 04 */ lwz r0, 4(r3)
/* 80339C9C 00336BFC 90 01 00 08 */ stw r0, 8(r1)
/* 80339CA0 00336C00 48 04 B7 09 */ bl OSGetTime
/* 80339CA4 00336C04 7C 9D 20 10 */ subfc r4, r29, r4
/* 80339CA8 00336C08 80 BF 00 08 */ lwz r5, 8(r31)
/* 80339CAC 00336C0C 80 DF 00 0C */ lwz r6, 0xc(r31)
/* 80339CB0 00336C10 7C 7E 19 10 */ subfe r3, r30, r3
/* 80339CB4 00336C14 48 04 FF 19 */ bl __div2i
/* 80339CB8 00336C18 7C 85 23 78 */ mr r5, r4
lbl_80339CBC:
/* 80339CBC 00336C1C 80 61 00 08 */ lwz r3, 8(r1)
/* 80339CC0 00336C20 80 1A 00 8C */ lwz r0, 0x8c(r26)
/* 80339CC4 00336C24 7C 03 00 40 */ cmplw r3, r0
/* 80339CC8 00336C28 41 82 00 0C */ beq lbl_80339CD4
/* 80339CCC 00336C2C 7C 05 D8 40 */ cmplw r5, r27
/* 80339CD0 00336C30 41 80 FF A4 */ blt lbl_80339C74
lbl_80339CD4:
/* 80339CD4 00336C34 57 80 06 3F */ clrlwi. r0, r28, 0x18
/* 80339CD8 00336C38 40 82 FF 70 */ bne lbl_80339C48
/* 80339CDC 00336C3C BB 21 00 14 */ lmw r25, 0x14(r1)
/* 80339CE0 00336C40 80 01 00 34 */ lwz r0, 0x34(r1)
/* 80339CE4 00336C44 7C 08 03 A6 */ mtlr r0
/* 80339CE8 00336C48 38 21 00 30 */ addi r1, r1, 0x30
/* 80339CEC 00336C4C 4E 80 00 20 */ blr
.global CancelBuild__11CResFactoryFRC10SObjectTag
CancelBuild__11CResFactoryFRC10SObjectTag:
/* 80339CF0 00336C50 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80339CF4 00336C54 7C 08 02 A6 */ mflr r0
/* 80339CF8 00336C58 7C 85 23 78 */ mr r5, r4
/* 80339CFC 00336C5C 90 01 00 24 */ stw r0, 0x24(r1)
/* 80339D00 00336C60 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 80339D04 00336C64 93 C1 00 18 */ stw r30, 0x18(r1)
/* 80339D08 00336C68 7C 7E 1B 78 */ mr r30, r3
/* 80339D0C 00336C6C 7F C4 F3 78 */ mr r4, r30
/* 80339D10 00336C70 38 61 00 08 */ addi r3, r1, 8
/* 80339D14 00336C74 48 00 04 79 */ bl sub_8033a18c
/* 80339D18 00336C78 80 61 00 08 */ lwz r3, 8(r1)
/* 80339D1C 00336C7C 90 61 00 0C */ stw r3, 0xc(r1)
/* 80339D20 00336C80 80 1E 00 8C */ lwz r0, 0x8c(r30)
/* 80339D24 00336C84 7C 03 00 40 */ cmplw r3, r0
/* 80339D28 00336C88 41 82 00 34 */ beq lbl_80339D5C
/* 80339D2C 00336C8C 3B E3 00 08 */ addi r31, r3, 8
/* 80339D30 00336C90 80 63 00 14 */ lwz r3, 0x14(r3)
/* 80339D34 00336C94 81 83 00 00 */ lwz r12, 0(r3)
/* 80339D38 00336C98 81 8C 00 14 */ lwz r12, 0x14(r12)
/* 80339D3C 00336C9C 7D 89 03 A6 */ mtctr r12
/* 80339D40 00336CA0 4E 80 04 21 */ bctrl
/* 80339D44 00336CA4 7F E4 FB 78 */ mr r4, r31
/* 80339D48 00336CA8 38 7E 00 B0 */ addi r3, r30, 0xb0
/* 80339D4C 00336CAC 48 00 00 29 */ bl sub_80339d74
/* 80339D50 00336CB0 7F C3 F3 78 */ mr r3, r30
/* 80339D54 00336CB4 38 81 00 0C */ addi r4, r1, 0xc
/* 80339D58 00336CB8 48 00 05 49 */ bl sub_8033a2a0
lbl_80339D5C:
/* 80339D5C 00336CBC 80 01 00 24 */ lwz r0, 0x24(r1)
/* 80339D60 00336CC0 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 80339D64 00336CC4 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 80339D68 00336CC8 7C 08 03 A6 */ mtlr r0
/* 80339D6C 00336CCC 38 21 00 20 */ addi r1, r1, 0x20
/* 80339D70 00336CD0 4E 80 00 20 */ blr
.global sub_80339d74
sub_80339d74:
/* 80339D74 00336CD4 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 80339D78 00336CD8 7C 08 02 A6 */ mflr r0
/* 80339D7C 00336CDC 7C 85 23 78 */ mr r5, r4
/* 80339D80 00336CE0 90 01 00 14 */ stw r0, 0x14(r1)
/* 80339D84 00336CE4 80 83 00 08 */ lwz r4, 8(r3)
/* 80339D88 00336CE8 48 00 00 15 */ bl sub_80339d9c
/* 80339D8C 00336CEC 80 01 00 14 */ lwz r0, 0x14(r1)
/* 80339D90 00336CF0 7C 08 03 A6 */ mtlr r0
/* 80339D94 00336CF4 38 21 00 10 */ addi r1, r1, 0x10
/* 80339D98 00336CF8 4E 80 00 20 */ blr
.global sub_80339d9c
sub_80339d9c:
/* 80339D9C 00336CFC 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 80339DA0 00336D00 7C 08 02 A6 */ mflr r0
/* 80339DA4 00336D04 7C A6 2B 78 */ mr r6, r5
/* 80339DA8 00336D08 90 01 00 14 */ stw r0, 0x14(r1)
/* 80339DAC 00336D0C 93 E1 00 0C */ stw r31, 0xc(r1)
/* 80339DB0 00336D10 7C 9F 23 78 */ mr r31, r4
/* 80339DB4 00336D14 7F E5 FB 78 */ mr r5, r31
/* 80339DB8 00336D18 93 C1 00 08 */ stw r30, 8(r1)
/* 80339DBC 00336D1C 7C 7E 1B 78 */ mr r30, r3
/* 80339DC0 00336D20 80 84 00 00 */ lwz r4, 0(r4)
/* 80339DC4 00336D24 48 00 00 49 */ bl sub_80339e0c
/* 80339DC8 00336D28 80 1E 00 04 */ lwz r0, 4(r30)
/* 80339DCC 00336D2C 7C 1F 00 40 */ cmplw r31, r0
/* 80339DD0 00336D30 40 82 00 08 */ bne lbl_80339DD8
/* 80339DD4 00336D34 90 7E 00 04 */ stw r3, 4(r30)
lbl_80339DD8:
/* 80339DD8 00336D38 80 83 00 00 */ lwz r4, 0(r3)
/* 80339DDC 00336D3C 90 64 00 04 */ stw r3, 4(r4)
/* 80339DE0 00336D40 80 83 00 04 */ lwz r4, 4(r3)
/* 80339DE4 00336D44 90 64 00 00 */ stw r3, 0(r4)
/* 80339DE8 00336D48 80 9E 00 14 */ lwz r4, 0x14(r30)
/* 80339DEC 00336D4C 38 04 00 01 */ addi r0, r4, 1
/* 80339DF0 00336D50 90 1E 00 14 */ stw r0, 0x14(r30)
/* 80339DF4 00336D54 80 01 00 14 */ lwz r0, 0x14(r1)
/* 80339DF8 00336D58 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 80339DFC 00336D5C 83 C1 00 08 */ lwz r30, 8(r1)
/* 80339E00 00336D60 7C 08 03 A6 */ mtlr r0
/* 80339E04 00336D64 38 21 00 10 */ addi r1, r1, 0x10
/* 80339E08 00336D68 4E 80 00 20 */ blr
.global sub_80339e0c
sub_80339e0c:
/* 80339E0C 00336D6C 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80339E10 00336D70 7C 08 02 A6 */ mflr r0
/* 80339E14 00336D74 3C 60 80 3D */ lis r3, lbl_803D7A28@ha
/* 80339E18 00336D78 90 01 00 24 */ stw r0, 0x24(r1)
/* 80339E1C 00336D7C 38 03 7A 28 */ addi r0, r3, lbl_803D7A28@l
/* 80339E20 00336D80 38 60 00 40 */ li r3, 0x40
/* 80339E24 00336D84 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 80339E28 00336D88 93 C1 00 18 */ stw r30, 0x18(r1)
/* 80339E2C 00336D8C 7C DE 33 78 */ mr r30, r6
/* 80339E30 00336D90 93 A1 00 14 */ stw r29, 0x14(r1)
/* 80339E34 00336D94 7C BD 2B 78 */ mr r29, r5
/* 80339E38 00336D98 38 A0 00 00 */ li r5, 0
/* 80339E3C 00336D9C 93 81 00 10 */ stw r28, 0x10(r1)
/* 80339E40 00336DA0 7C 9C 23 78 */ mr r28, r4
/* 80339E44 00336DA4 7C 04 03 78 */ mr r4, r0
/* 80339E48 00336DA8 4B FD B9 D1 */ bl __nwa__FUlPCcPCc
/* 80339E4C 00336DAC 7C 7F 1B 79 */ or. r31, r3, r3
/* 80339E50 00336DB0 41 82 00 0C */ beq lbl_80339E5C
/* 80339E54 00336DB4 93 9F 00 00 */ stw r28, 0(r31)
/* 80339E58 00336DB8 93 BF 00 04 */ stw r29, 4(r31)
lbl_80339E5C:
/* 80339E5C 00336DBC 34 7F 00 08 */ addic. r3, r31, 8
/* 80339E60 00336DC0 41 82 00 0C */ beq lbl_80339E6C
/* 80339E64 00336DC4 7F C4 F3 78 */ mr r4, r30
/* 80339E68 00336DC8 4B FF FC D1 */ bl sub_80339b38
lbl_80339E6C:
/* 80339E6C 00336DCC 80 01 00 24 */ lwz r0, 0x24(r1)
/* 80339E70 00336DD0 7F E3 FB 78 */ mr r3, r31
/* 80339E74 00336DD4 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 80339E78 00336DD8 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 80339E7C 00336DDC 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 80339E80 00336DE0 83 81 00 10 */ lwz r28, 0x10(r1)
/* 80339E84 00336DE4 7C 08 03 A6 */ mtlr r0
/* 80339E88 00336DE8 38 21 00 20 */ addi r1, r1, 0x20
/* 80339E8C 00336DEC 4E 80 00 20 */ blr
.global BuildAsync__11CResFactoryFRC10SObjectTagRC15CVParamTransferPP4IObj
BuildAsync__11CResFactoryFRC10SObjectTagRC15CVParamTransferPP4IObj:
/* 80339E90 00336DF0 94 21 FF 90 */ stwu r1, -0x70(r1)
/* 80339E94 00336DF4 7C 08 02 A6 */ mflr r0
/* 80339E98 00336DF8 90 01 00 74 */ stw r0, 0x74(r1)
/* 80339E9C 00336DFC 38 00 00 00 */ li r0, 0
/* 80339EA0 00336E00 BF 21 00 54 */ stmw r25, 0x54(r1)
/* 80339EA4 00336E04 7C 79 1B 78 */ mr r25, r3
/* 80339EA8 00336E08 7C DC 33 78 */ mr r28, r6
/* 80339EAC 00336E0C 7C 9A 23 78 */ mr r26, r4
/* 80339EB0 00336E10 7C BB 2B 78 */ mr r27, r5
/* 80339EB4 00336E14 38 79 00 04 */ addi r3, r25, 4
/* 80339EB8 00336E18 90 06 00 00 */ stw r0, 0(r6)
/* 80339EBC 00336E1C 48 00 1D 95 */ bl ResourceSize__10CResLoaderCFRC10SObjectTag
/* 80339EC0 00336E20 3C A0 80 3D */ lis r5, lbl_803D7A28@ha
/* 80339EC4 00336E24 3C 80 80 3D */ lis r4, lbl_803D6AA8@ha
/* 80339EC8 00336E28 7C 7F 1B 78 */ mr r31, r3
/* 80339ECC 00336E2C 38 61 00 08 */ addi r3, r1, 8
/* 80339ED0 00336E30 38 C4 6A A8 */ addi r6, r4, lbl_803D6AA8@l
/* 80339ED4 00336E34 38 A5 7A 28 */ addi r5, r5, lbl_803D7A28@l
/* 80339ED8 00336E38 38 80 FF FF */ li r4, -1
/* 80339EDC 00336E3C 4B F9 C4 F9 */ bl __ct__10CCallStackFUiPCcPCc
/* 80339EE0 00336E40 7C 67 1B 78 */ mr r7, r3
/* 80339EE4 00336E44 7F E3 FB 78 */ mr r3, r31
/* 80339EE8 00336E48 38 80 00 02 */ li r4, 2
/* 80339EEC 00336E4C 38 A0 00 01 */ li r5, 1
/* 80339EF0 00336E50 38 C0 00 00 */ li r6, 0
/* 80339EF4 00336E54 4B FD BA A1 */ bl Alloc__7CMemoryFUlQ210IAllocator5EHintQ210IAllocator6EScopeQ210IAllocator5ETypeRC10CCallStack
/* 80339EF8 00336E58 7C 7D 1B 78 */ mr r29, r3
/* 80339EFC 00336E5C 7F 44 D3 78 */ mr r4, r26
/* 80339F00 00336E60 38 79 00 04 */ addi r3, r25, 4
/* 80339F04 00336E64 7F A5 EB 78 */ mr r5, r29
/* 80339F08 00336E68 48 00 1C 71 */ bl LoadResourceAsync__10CResLoaderFRC10SObjectTagPc
/* 80339F0C 00336E6C 7C 7E 1B 78 */ mr r30, r3
/* 80339F10 00336E70 7F 44 D3 78 */ mr r4, r26
/* 80339F14 00336E74 38 79 00 04 */ addi r3, r25, 4
/* 80339F18 00336E78 48 00 1C E1 */ bl GetResourceCompression__10CResLoaderCFRC10SObjectTag
/* 80339F1C 00336E7C 7C 69 1B 78 */ mr r9, r3
/* 80339F20 00336E80 7F 44 D3 78 */ mr r4, r26
/* 80339F24 00336E84 7F C5 F3 78 */ mr r5, r30
/* 80339F28 00336E88 7F 86 E3 78 */ mr r6, r28
/* 80339F2C 00336E8C 7F A7 EB 78 */ mr r7, r29
/* 80339F30 00336E90 7F E8 FB 78 */ mr r8, r31
/* 80339F34 00336E94 7F 6A DB 78 */ mr r10, r27
/* 80339F38 00336E98 38 61 00 10 */ addi r3, r1, 0x10
/* 80339F3C 00336E9C 4B FF FA 45 */ bl sub_80339980
/* 80339F40 00336EA0 7F 23 CB 78 */ mr r3, r25
/* 80339F44 00336EA4 38 81 00 10 */ addi r4, r1, 0x10
/* 80339F48 00336EA8 48 00 05 B9 */ bl sub_8033a500
/* 80339F4C 00336EAC 38 61 00 10 */ addi r3, r1, 0x10
/* 80339F50 00336EB0 38 80 FF FF */ li r4, -1
/* 80339F54 00336EB4 4B FF F9 2D */ bl sub_80339880
/* 80339F58 00336EB8 BB 21 00 54 */ lmw r25, 0x54(r1)
/* 80339F5C 00336EBC 80 01 00 74 */ lwz r0, 0x74(r1)
/* 80339F60 00336EC0 7C 08 03 A6 */ mtlr r0
/* 80339F64 00336EC4 38 21 00 70 */ addi r1, r1, 0x70
/* 80339F68 00336EC8 4E 80 00 20 */ blr
.global BuildSync__11CResFactoryFRC10SObjectTagRC15CVParamTransfer
BuildSync__11CResFactoryFRC10SObjectTagRC15CVParamTransfer:
/* 80339F6C 00336ECC 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 80339F70 00336ED0 7C 08 02 A6 */ mflr r0
/* 80339F74 00336ED4 90 01 00 34 */ stw r0, 0x34(r1)
/* 80339F78 00336ED8 93 E1 00 2C */ stw r31, 0x2c(r1)
/* 80339F7C 00336EDC 7C BF 2B 78 */ mr r31, r5
/* 80339F80 00336EE0 93 C1 00 28 */ stw r30, 0x28(r1)
/* 80339F84 00336EE4 7C DE 33 78 */ mr r30, r6
/* 80339F88 00336EE8 93 A1 00 24 */ stw r29, 0x24(r1)
/* 80339F8C 00336EEC 7C 9D 23 78 */ mr r29, r4
/* 80339F90 00336EF0 7F E4 FB 78 */ mr r4, r31
/* 80339F94 00336EF4 93 81 00 20 */ stw r28, 0x20(r1)
/* 80339F98 00336EF8 7C 7C 1B 78 */ mr r28, r3
/* 80339F9C 00336EFC 38 7D 00 5C */ addi r3, r29, 0x5c
/* 80339FA0 00336F00 4B FF EC B5 */ bl CanMakeMemory__11CFactoryMgrFRC10SObjectTag
/* 80339FA4 00336F04 54 60 06 3F */ clrlwi. r0, r3, 0x18
/* 80339FA8 00336F08 41 82 00 50 */ beq lbl_80339FF8
/* 80339FAC 00336F0C 7F E4 FB 78 */ mr r4, r31
/* 80339FB0 00336F10 38 7D 00 04 */ addi r3, r29, 4
/* 80339FB4 00336F14 38 A1 00 0C */ addi r5, r1, 0xc
/* 80339FB8 00336F18 38 C1 00 08 */ addi r6, r1, 8
/* 80339FBC 00336F1C 48 00 17 DD */ bl LoadMemResourceSync__10CResLoaderFRC10SObjectTagPPcPi
/* 80339FC0 00336F20 7F E4 FB 78 */ mr r4, r31
/* 80339FC4 00336F24 38 7D 00 04 */ addi r3, r29, 4
/* 80339FC8 00336F28 48 00 1C 31 */ bl GetResourceCompression__10CResLoaderCFRC10SObjectTag
/* 80339FCC 00336F2C 7C 03 00 D0 */ neg r0, r3
/* 80339FD0 00336F30 80 C1 00 0C */ lwz r6, 0xc(r1)
/* 80339FD4 00336F34 7C 00 1B 78 */ or r0, r0, r3
/* 80339FD8 00336F38 80 E1 00 08 */ lwz r7, 8(r1)
/* 80339FDC 00336F3C 54 08 0F FE */ srwi r8, r0, 0x1f
/* 80339FE0 00336F40 7F 83 E3 78 */ mr r3, r28
/* 80339FE4 00336F44 7F E5 FB 78 */ mr r5, r31
/* 80339FE8 00336F48 7F C9 F3 78 */ mr r9, r30
/* 80339FEC 00336F4C 38 9D 00 5C */ addi r4, r29, 0x5c
/* 80339FF0 00336F50 4B FF E6 FD */ bl MakeObjectFromMemory__11CFactoryMgrFRC10SObjectTagPvibRC15CVParamTransfer
/* 80339FF4 00336F54 48 00 00 B8 */ b lbl_8033A0AC
lbl_80339FF8:
/* 80339FF8 00336F58 7F E4 FB 78 */ mr r4, r31
/* 80339FFC 00336F5C 38 7D 00 04 */ addi r3, r29, 4
/* 8033A000 00336F60 38 A0 00 00 */ li r5, 0
/* 8033A004 00336F64 48 00 19 65 */ bl LoadNewResourceSync__10CResLoaderFRC10SObjectTagPc
/* 8033A008 00336F68 7F E5 FB 78 */ mr r5, r31
/* 8033A00C 00336F6C 7C 7F 1B 78 */ mr r31, r3
/* 8033A010 00336F70 7F C7 F3 78 */ mr r7, r30
/* 8033A014 00336F74 38 61 00 10 */ addi r3, r1, 0x10
/* 8033A018 00336F78 7F E6 FB 78 */ mr r6, r31
/* 8033A01C 00336F7C 38 9D 00 5C */ addi r4, r29, 0x5c
/* 8033A020 00336F80 4B FF EB 61 */ bl MakeObject__11CFactoryMgrFRC10SObjectTagR12CInputStreamRC15CVParamTransfer
/* 8033A024 00336F84 88 81 00 10 */ lbz r4, 0x10(r1)
/* 8033A028 00336F88 38 00 00 00 */ li r0, 0
/* 8033A02C 00336F8C 80 61 00 14 */ lwz r3, 0x14(r1)
/* 8033A030 00336F90 98 81 00 18 */ stb r4, 0x18(r1)
/* 8033A034 00336F94 90 61 00 1C */ stw r3, 0x1c(r1)
/* 8033A038 00336F98 98 01 00 10 */ stb r0, 0x10(r1)
/* 8033A03C 00336F9C 48 00 00 1C */ b lbl_8033A058
/* 8033A040 00336FA0 41 82 00 18 */ beq lbl_8033A058
/* 8033A044 00336FA4 81 83 00 00 */ lwz r12, 0(r3)
/* 8033A048 00336FA8 38 80 00 01 */ li r4, 1
/* 8033A04C 00336FAC 81 8C 00 08 */ lwz r12, 8(r12)
/* 8033A050 00336FB0 7D 89 03 A6 */ mtctr r12
/* 8033A054 00336FB4 4E 80 04 21 */ bctrl
lbl_8033A058:
/* 8033A058 00336FB8 28 1F 00 00 */ cmplwi r31, 0
/* 8033A05C 00336FBC 41 82 00 1C */ beq lbl_8033A078
/* 8033A060 00336FC0 7F E3 FB 78 */ mr r3, r31
/* 8033A064 00336FC4 38 80 00 01 */ li r4, 1
/* 8033A068 00336FC8 81 9F 00 00 */ lwz r12, 0(r31)
/* 8033A06C 00336FCC 81 8C 00 08 */ lwz r12, 8(r12)
/* 8033A070 00336FD0 7D 89 03 A6 */ mtctr r12
/* 8033A074 00336FD4 4E 80 04 21 */ bctrl
lbl_8033A078:
/* 8033A078 00336FD8 88 81 00 18 */ lbz r4, 0x18(r1)
/* 8033A07C 00336FDC 38 00 00 00 */ li r0, 0
/* 8033A080 00336FE0 80 61 00 1C */ lwz r3, 0x1c(r1)
/* 8033A084 00336FE4 98 9C 00 00 */ stb r4, 0(r28)
/* 8033A088 00336FE8 90 7C 00 04 */ stw r3, 4(r28)
/* 8033A08C 00336FEC 98 01 00 18 */ stb r0, 0x18(r1)
/* 8033A090 00336FF0 48 00 00 1C */ b lbl_8033A0AC
/* 8033A094 00336FF4 41 82 00 18 */ beq lbl_8033A0AC
/* 8033A098 00336FF8 81 83 00 00 */ lwz r12, 0(r3)
/* 8033A09C 00336FFC 38 80 00 01 */ li r4, 1
/* 8033A0A0 00337000 81 8C 00 08 */ lwz r12, 8(r12)
/* 8033A0A4 00337004 7D 89 03 A6 */ mtctr r12
/* 8033A0A8 00337008 4E 80 04 21 */ bctrl
lbl_8033A0AC:
/* 8033A0AC 0033700C 80 01 00 34 */ lwz r0, 0x34(r1)
/* 8033A0B0 00337010 83 E1 00 2C */ lwz r31, 0x2c(r1)
/* 8033A0B4 00337014 83 C1 00 28 */ lwz r30, 0x28(r1)
/* 8033A0B8 00337018 83 A1 00 24 */ lwz r29, 0x24(r1)
/* 8033A0BC 0033701C 83 81 00 20 */ lwz r28, 0x20(r1)
/* 8033A0C0 00337020 7C 08 03 A6 */ mtlr r0
/* 8033A0C4 00337024 38 21 00 30 */ addi r1, r1, 0x30
/* 8033A0C8 00337028 4E 80 00 20 */ blr
.global Build__11CResFactoryFRC10SObjectTagRC15CVParamTransfer
Build__11CResFactoryFRC10SObjectTagRC15CVParamTransfer:
/* 8033A0CC 0033702C 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 8033A0D0 00337030 7C 08 02 A6 */ mflr r0
/* 8033A0D4 00337034 90 01 00 24 */ stw r0, 0x24(r1)
/* 8033A0D8 00337038 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 8033A0DC 0033703C 7C DF 33 78 */ mr r31, r6
/* 8033A0E0 00337040 93 C1 00 18 */ stw r30, 0x18(r1)
/* 8033A0E4 00337044 7C BE 2B 78 */ mr r30, r5
/* 8033A0E8 00337048 93 A1 00 14 */ stw r29, 0x14(r1)
/* 8033A0EC 0033704C 7C 9D 23 78 */ mr r29, r4
/* 8033A0F0 00337050 93 81 00 10 */ stw r28, 0x10(r1)
/* 8033A0F4 00337054 7C 7C 1B 78 */ mr r28, r3
/* 8033A0F8 00337058 38 61 00 08 */ addi r3, r1, 8
/* 8033A0FC 0033705C 48 00 00 91 */ bl sub_8033a18c
/* 8033A100 00337060 80 61 00 08 */ lwz r3, 8(r1)
/* 8033A104 00337064 90 61 00 0C */ stw r3, 0xc(r1)
/* 8033A108 00337068 80 1D 00 8C */ lwz r0, 0x8c(r29)
/* 8033A10C 0033706C 7C 03 00 40 */ cmplw r3, r0
/* 8033A110 00337070 41 82 00 48 */ beq lbl_8033A158
/* 8033A114 00337074 83 E3 00 18 */ lwz r31, 0x18(r3)
/* 8033A118 00337078 48 00 00 1C */ b lbl_8033A134
lbl_8033A11C:
/* 8033A11C 0033707C 7F A3 EB 78 */ mr r3, r29
/* 8033A120 00337080 38 81 00 0C */ addi r4, r1, 0xc
/* 8033A124 00337084 38 A0 00 00 */ li r5, 0
/* 8033A128 00337088 4B FF F8 DD */ bl PumpResource__11CResFactoryFR12SLoadingData
/* 8033A12C 0033708C 54 60 06 3F */ clrlwi. r0, r3, 0x18
/* 8033A130 00337090 41 82 FF EC */ beq lbl_8033A11C
lbl_8033A134:
/* 8033A134 00337094 80 7F 00 00 */ lwz r3, 0(r31)
/* 8033A138 00337098 28 03 00 00 */ cmplwi r3, 0
/* 8033A13C 0033709C 41 82 FF E0 */ beq lbl_8033A11C
/* 8033A140 003370A0 7C 03 00 D0 */ neg r0, r3
/* 8033A144 003370A4 7C 00 1B 78 */ or r0, r0, r3
/* 8033A148 003370A8 54 00 0F FE */ srwi r0, r0, 0x1f
/* 8033A14C 003370AC 98 1C 00 00 */ stb r0, 0(r28)
/* 8033A150 003370B0 90 7C 00 04 */ stw r3, 4(r28)
/* 8033A154 003370B4 48 00 00 18 */ b lbl_8033A16C
lbl_8033A158:
/* 8033A158 003370B8 7F 83 E3 78 */ mr r3, r28
/* 8033A15C 003370BC 7F A4 EB 78 */ mr r4, r29
/* 8033A160 003370C0 7F C5 F3 78 */ mr r5, r30
/* 8033A164 003370C4 7F E6 FB 78 */ mr r6, r31
/* 8033A168 003370C8 4B FF FE 05 */ bl BuildSync__11CResFactoryFRC10SObjectTagRC15CVParamTransfer
lbl_8033A16C:
/* 8033A16C 003370CC 80 01 00 24 */ lwz r0, 0x24(r1)
/* 8033A170 003370D0 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 8033A174 003370D4 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 8033A178 003370D8 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 8033A17C 003370DC 83 81 00 10 */ lwz r28, 0x10(r1)
/* 8033A180 003370E0 7C 08 03 A6 */ mtlr r0
/* 8033A184 003370E4 38 21 00 20 */ addi r1, r1, 0x20
/* 8033A188 003370E8 4E 80 00 20 */ blr
.global sub_8033a18c
sub_8033a18c:
/* 8033A18C 003370EC 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 8033A190 003370F0 38 C0 00 00 */ li r6, 0
/* 8033A194 003370F4 81 04 00 AC */ lwz r8, 0xac(r4)
/* 8033A198 003370F8 48 00 00 58 */ b lbl_8033A1F0
lbl_8033A19C:
/* 8033A19C 003370FC 80 08 00 10 */ lwz r0, 0x10(r8)
/* 8033A1A0 00337100 80 E5 00 00 */ lwz r7, 0(r5)
/* 8033A1A4 00337104 7C 00 38 40 */ cmplw r0, r7
/* 8033A1A8 00337108 40 82 00 20 */ bne lbl_8033A1C8
/* 8033A1AC 0033710C 80 08 00 14 */ lwz r0, 0x14(r8)
/* 8033A1B0 00337110 80 E5 00 04 */ lwz r7, 4(r5)
/* 8033A1B4 00337114 7C E0 02 78 */ xor r0, r7, r0
/* 8033A1B8 00337118 7C 00 00 34 */ cntlzw r0, r0
/* 8033A1BC 0033711C 7C E0 00 30 */ slw r0, r7, r0
/* 8033A1C0 00337120 54 00 0F FE */ srwi r0, r0, 0x1f
/* 8033A1C4 00337124 48 00 00 14 */ b lbl_8033A1D8
lbl_8033A1C8:
/* 8033A1C8 00337128 7C E0 02 78 */ xor r0, r7, r0
/* 8033A1CC 0033712C 7C 00 00 34 */ cntlzw r0, r0
/* 8033A1D0 00337130 7C E0 00 30 */ slw r0, r7, r0
/* 8033A1D4 00337134 54 00 0F FE */ srwi r0, r0, 0x1f
lbl_8033A1D8:
/* 8033A1D8 00337138 54 00 06 3F */ clrlwi. r0, r0, 0x18
/* 8033A1DC 0033713C 40 82 00 10 */ bne lbl_8033A1EC
/* 8033A1E0 00337140 7D 06 43 78 */ mr r6, r8
/* 8033A1E4 00337144 81 08 00 00 */ lwz r8, 0(r8)
/* 8033A1E8 00337148 48 00 00 08 */ b lbl_8033A1F0
lbl_8033A1EC:
/* 8033A1EC 0033714C 81 08 00 04 */ lwz r8, 4(r8)
lbl_8033A1F0:
/* 8033A1F0 00337150 28 08 00 00 */ cmplwi r8, 0
/* 8033A1F4 00337154 40 82 FF A8 */ bne lbl_8033A19C
/* 8033A1F8 00337158 7C C7 00 34 */ cntlzw r7, r6
/* 8033A1FC 0033715C 54 E0 DE 3F */ rlwinm. r0, r7, 0x1b, 0x18, 0x1f
/* 8033A200 00337160 54 E0 D9 7E */ srwi r0, r7, 5
/* 8033A204 00337164 40 82 00 40 */ bne lbl_8033A244
/* 8033A208 00337168 80 05 00 00 */ lwz r0, 0(r5)
/* 8033A20C 0033716C 80 E6 00 10 */ lwz r7, 0x10(r6)
/* 8033A210 00337170 7C 00 38 40 */ cmplw r0, r7
/* 8033A214 00337174 40 82 00 20 */ bne lbl_8033A234
/* 8033A218 00337178 80 05 00 04 */ lwz r0, 4(r5)
/* 8033A21C 0033717C 80 A6 00 14 */ lwz r5, 0x14(r6)
/* 8033A220 00337180 7C A0 02 78 */ xor r0, r5, r0
/* 8033A224 00337184 7C 00 00 34 */ cntlzw r0, r0
/* 8033A228 00337188 7C A0 00 30 */ slw r0, r5, r0
/* 8033A22C 0033718C 54 00 0F FE */ srwi r0, r0, 0x1f
/* 8033A230 00337190 48 00 00 14 */ b lbl_8033A244
lbl_8033A234:
/* 8033A234 00337194 7C E0 02 78 */ xor r0, r7, r0
/* 8033A238 00337198 7C 00 00 34 */ cntlzw r0, r0
/* 8033A23C 0033719C 7C E0 00 30 */ slw r0, r7, r0
/* 8033A240 003371A0 54 00 0F FE */ srwi r0, r0, 0x1f
lbl_8033A244:
/* 8033A244 003371A4 54 00 06 3F */ clrlwi. r0, r0, 0x18
/* 8033A248 003371A8 41 82 00 08 */ beq lbl_8033A250
/* 8033A24C 003371AC 38 C0 00 00 */ li r6, 0
lbl_8033A250:
/* 8033A250 003371B0 38 00 00 00 */ li r0, 0
/* 8033A254 003371B4 38 A4 00 A4 */ addi r5, r4, 0xa4
/* 8033A258 003371B8 7C 06 00 40 */ cmplw r6, r0
/* 8033A25C 003371BC 90 C1 00 10 */ stw r6, 0x10(r1)
/* 8033A260 003371C0 90 A1 00 14 */ stw r5, 0x14(r1)
/* 8033A264 003371C4 90 01 00 08 */ stw r0, 8(r1)
/* 8033A268 003371C8 90 A1 00 0C */ stw r5, 0xc(r1)
/* 8033A26C 003371CC 40 82 00 10 */ bne lbl_8033A27C
/* 8033A270 003371D0 7C 05 28 40 */ cmplw r5, r5
/* 8033A274 003371D4 40 82 00 08 */ bne lbl_8033A27C
/* 8033A278 003371D8 38 00 00 01 */ li r0, 1
lbl_8033A27C:
/* 8033A27C 003371DC 54 00 06 3F */ clrlwi. r0, r0, 0x18
/* 8033A280 003371E0 41 82 00 10 */ beq lbl_8033A290
/* 8033A284 003371E4 80 04 00 8C */ lwz r0, 0x8c(r4)
/* 8033A288 003371E8 90 03 00 00 */ stw r0, 0(r3)
/* 8033A28C 003371EC 48 00 00 0C */ b lbl_8033A298
lbl_8033A290:
/* 8033A290 003371F0 80 06 00 18 */ lwz r0, 0x18(r6)
/* 8033A294 003371F4 90 03 00 00 */ stw r0, 0(r3)
lbl_8033A298:
/* 8033A298 003371F8 38 21 00 20 */ addi r1, r1, 0x20
/* 8033A29C 003371FC 4E 80 00 20 */ blr
.global sub_8033a2a0
sub_8033a2a0:
/* 8033A2A0 00337200 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 8033A2A4 00337204 7C 08 02 A6 */ mflr r0
/* 8033A2A8 00337208 90 01 00 14 */ stw r0, 0x14(r1)
/* 8033A2AC 0033720C 93 E1 00 0C */ stw r31, 0xc(r1)
/* 8033A2B0 00337210 7C 9F 23 78 */ mr r31, r4
/* 8033A2B4 00337214 93 C1 00 08 */ stw r30, 8(r1)
/* 8033A2B8 00337218 7C 7E 1B 78 */ mr r30, r3
/* 8033A2BC 0033721C 38 7E 00 9C */ addi r3, r30, 0x9c
/* 8033A2C0 00337220 80 84 00 00 */ lwz r4, 0(r4)
/* 8033A2C4 00337224 38 84 00 08 */ addi r4, r4, 8
/* 8033A2C8 00337228 48 00 00 29 */ bl sub_8033a2f0
/* 8033A2CC 0033722C 80 9F 00 00 */ lwz r4, 0(r31)
/* 8033A2D0 00337230 38 7E 00 84 */ addi r3, r30, 0x84
/* 8033A2D4 00337234 48 00 06 09 */ bl sub_8033a8dc
/* 8033A2D8 00337238 80 01 00 14 */ lwz r0, 0x14(r1)
/* 8033A2DC 0033723C 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 8033A2E0 00337240 83 C1 00 08 */ lwz r30, 8(r1)
/* 8033A2E4 00337244 7C 08 03 A6 */ mtlr r0
/* 8033A2E8 00337248 38 21 00 10 */ addi r1, r1, 0x10
/* 8033A2EC 0033724C 4E 80 00 20 */ blr
.global sub_8033a2f0
sub_8033a2f0:
/* 8033A2F0 00337250 94 21 FF 90 */ stwu r1, -0x70(r1)
/* 8033A2F4 00337254 7C 08 02 A6 */ mflr r0
/* 8033A2F8 00337258 7C 85 23 78 */ mr r5, r4
/* 8033A2FC 0033725C 90 01 00 74 */ stw r0, 0x74(r1)
/* 8033A300 00337260 BF 41 00 58 */ stmw r26, 0x58(r1)
/* 8033A304 00337264 7C 7F 1B 78 */ mr r31, r3
/* 8033A308 00337268 7F E4 FB 78 */ mr r4, r31
/* 8033A30C 0033726C 38 61 00 38 */ addi r3, r1, 0x38
/* 8033A310 00337270 48 00 01 05 */ bl sub_8033a414
/* 8033A314 00337274 80 E1 00 38 */ lwz r7, 0x38(r1)
/* 8033A318 00337278 38 61 00 28 */ addi r3, r1, 0x28
/* 8033A31C 0033727C 80 C1 00 3C */ lwz r6, 0x3c(r1)
/* 8033A320 00337280 38 81 00 20 */ addi r4, r1, 0x20
/* 8033A324 00337284 80 A1 00 40 */ lwz r5, 0x40(r1)
/* 8033A328 00337288 80 01 00 44 */ lwz r0, 0x44(r1)
/* 8033A32C 0033728C 90 E1 00 48 */ stw r7, 0x48(r1)
/* 8033A330 00337290 90 C1 00 4C */ stw r6, 0x4c(r1)
/* 8033A334 00337294 90 A1 00 50 */ stw r5, 0x50(r1)
/* 8033A338 00337298 90 01 00 54 */ stw r0, 0x54(r1)
/* 8033A33C 0033729C 90 A1 00 20 */ stw r5, 0x20(r1)
/* 8033A340 003372A0 90 01 00 24 */ stw r0, 0x24(r1)
/* 8033A344 003372A4 90 E1 00 28 */ stw r7, 0x28(r1)
/* 8033A348 003372A8 90 C1 00 2C */ stw r6, 0x2c(r1)
/* 8033A34C 003372AC 48 00 04 B5 */ bl sub_8033a800
/* 8033A350 003372B0 83 C1 00 4C */ lwz r30, 0x4c(r1)
/* 8033A354 003372B4 7C 7A 1B 78 */ mr r26, r3
/* 8033A358 003372B8 80 01 00 48 */ lwz r0, 0x48(r1)
/* 8033A35C 003372BC 93 C1 00 34 */ stw r30, 0x34(r1)
/* 8033A360 003372C0 83 81 00 50 */ lwz r28, 0x50(r1)
/* 8033A364 003372C4 90 01 00 30 */ stw r0, 0x30(r1)
/* 8033A368 003372C8 83 61 00 54 */ lwz r27, 0x54(r1)
/* 8033A36C 003372CC 48 00 00 68 */ b lbl_8033A3D4
lbl_8033A370:
/* 8033A370 003372D0 90 81 00 08 */ stw r4, 8(r1)
/* 8033A374 003372D4 7F C3 F3 78 */ mr r3, r30
/* 8033A378 003372D8 80 81 00 30 */ lwz r4, 0x30(r1)
/* 8033A37C 003372DC 93 C1 00 0C */ stw r30, 0xc(r1)
/* 8033A380 003372E0 48 00 22 61 */ bl rbtree_traverse_forward__4rstlFPCvPv
/* 8033A384 003372E4 83 A1 00 08 */ lwz r29, 8(r1)
/* 8033A388 003372E8 7F C0 F3 78 */ mr r0, r30
/* 8033A38C 003372EC 90 61 00 30 */ stw r3, 0x30(r1)
/* 8033A390 003372F0 7C 03 03 78 */ mr r3, r0
/* 8033A394 003372F4 7F A4 EB 78 */ mr r4, r29
/* 8033A398 003372F8 93 A1 00 10 */ stw r29, 0x10(r1)
/* 8033A39C 003372FC 90 01 00 14 */ stw r0, 0x14(r1)
/* 8033A3A0 00337300 93 A1 00 18 */ stw r29, 0x18(r1)
/* 8033A3A4 00337304 90 01 00 1C */ stw r0, 0x1c(r1)
/* 8033A3A8 00337308 48 00 22 39 */ bl rbtree_traverse_forward__4rstlFPCvPv
/* 8033A3AC 0033730C 90 61 00 18 */ stw r3, 0x18(r1)
/* 8033A3B0 00337310 7F A4 EB 78 */ mr r4, r29
/* 8033A3B4 00337314 38 7F 00 08 */ addi r3, r31, 8
/* 8033A3B8 00337318 48 00 22 C5 */ bl rbtree_rebalance_for_erase__4rstlFPvPv
/* 8033A3BC 0033731C 28 03 00 00 */ cmplwi r3, 0
/* 8033A3C0 00337320 41 82 00 08 */ beq lbl_8033A3C8
/* 8033A3C4 00337324 4B FD B5 6D */ bl Free__7CMemoryFPCv
lbl_8033A3C8:
/* 8033A3C8 00337328 80 7F 00 04 */ lwz r3, 4(r31)
/* 8033A3CC 0033732C 38 03 FF FF */ addi r0, r3, -1
/* 8033A3D0 00337330 90 1F 00 04 */ stw r0, 4(r31)
lbl_8033A3D4:
/* 8033A3D4 00337334 80 81 00 30 */ lwz r4, 0x30(r1)
/* 8033A3D8 00337338 38 60 00 00 */ li r3, 0
/* 8033A3DC 0033733C 7C 04 E0 40 */ cmplw r4, r28
/* 8033A3E0 00337340 40 82 00 10 */ bne lbl_8033A3F0
/* 8033A3E4 00337344 80 01 00 34 */ lwz r0, 0x34(r1)
/* 8033A3E8 00337348 7C 00 D8 40 */ cmplw r0, r27
/* 8033A3EC 0033734C 41 82 00 08 */ beq lbl_8033A3F4
lbl_8033A3F0:
/* 8033A3F0 00337350 38 60 00 01 */ li r3, 1
lbl_8033A3F4:
/* 8033A3F4 00337354 54 60 06 3F */ clrlwi. r0, r3, 0x18
/* 8033A3F8 00337358 40 82 FF 78 */ bne lbl_8033A370
/* 8033A3FC 0033735C 7F 43 D3 78 */ mr r3, r26
/* 8033A400 00337360 BB 41 00 58 */ lmw r26, 0x58(r1)
/* 8033A404 00337364 80 01 00 74 */ lwz r0, 0x74(r1)
/* 8033A408 00337368 7C 08 03 A6 */ mtlr r0
/* 8033A40C 0033736C 38 21 00 70 */ addi r1, r1, 0x70
/* 8033A410 00337370 4E 80 00 20 */ blr
.global sub_8033a414
sub_8033a414:
/* 8033A414 00337374 80 C4 00 10 */ lwz r6, 0x10(r4)
/* 8033A418 00337378 39 00 00 00 */ li r8, 0
/* 8033A41C 0033737C 7C C9 33 78 */ mr r9, r6
/* 8033A420 00337380 48 00 00 58 */ b lbl_8033A478
lbl_8033A424:
/* 8033A424 00337384 80 05 00 00 */ lwz r0, 0(r5)
/* 8033A428 00337388 80 E9 00 10 */ lwz r7, 0x10(r9)
/* 8033A42C 0033738C 7C 00 38 40 */ cmplw r0, r7
/* 8033A430 00337390 40 82 00 20 */ bne lbl_8033A450
/* 8033A434 00337394 80 05 00 04 */ lwz r0, 4(r5)
/* 8033A438 00337398 80 E9 00 14 */ lwz r7, 0x14(r9)
/* 8033A43C 0033739C 7C E0 02 78 */ xor r0, r7, r0
/* 8033A440 003373A0 7C 00 00 34 */ cntlzw r0, r0
/* 8033A444 003373A4 7C E0 00 30 */ slw r0, r7, r0
/* 8033A448 003373A8 54 00 0F FE */ srwi r0, r0, 0x1f
/* 8033A44C 003373AC 48 00 00 14 */ b lbl_8033A460
lbl_8033A450:
/* 8033A450 003373B0 7C E0 02 78 */ xor r0, r7, r0
/* 8033A454 003373B4 7C 00 00 34 */ cntlzw r0, r0
/* 8033A458 003373B8 7C E0 00 30 */ slw r0, r7, r0
/* 8033A45C 003373BC 54 00 0F FE */ srwi r0, r0, 0x1f
lbl_8033A460:
/* 8033A460 003373C0 54 00 06 3F */ clrlwi. r0, r0, 0x18
/* 8033A464 003373C4 41 82 00 10 */ beq lbl_8033A474
/* 8033A468 003373C8 7D 28 4B 78 */ mr r8, r9
/* 8033A46C 003373CC 81 29 00 00 */ lwz r9, 0(r9)
/* 8033A470 003373D0 48 00 00 08 */ b lbl_8033A478
lbl_8033A474:
/* 8033A474 003373D4 81 29 00 04 */ lwz r9, 4(r9)
lbl_8033A478:
/* 8033A478 003373D8 28 09 00 00 */ cmplwi r9, 0
/* 8033A47C 003373DC 40 82 FF A8 */ bne lbl_8033A424
/* 8033A480 003373E0 39 44 00 08 */ addi r10, r4, 8
/* 8033A484 003373E4 39 20 00 00 */ li r9, 0
/* 8033A488 003373E8 48 00 00 58 */ b lbl_8033A4E0
lbl_8033A48C:
/* 8033A48C 003373EC 80 06 00 10 */ lwz r0, 0x10(r6)
/* 8033A490 003373F0 80 E5 00 00 */ lwz r7, 0(r5)
/* 8033A494 003373F4 7C 00 38 40 */ cmplw r0, r7
/* 8033A498 003373F8 40 82 00 20 */ bne lbl_8033A4B8
/* 8033A49C 003373FC 80 06 00 14 */ lwz r0, 0x14(r6)
/* 8033A4A0 00337400 80 E5 00 04 */ lwz r7, 4(r5)
/* 8033A4A4 00337404 7C E0 02 78 */ xor r0, r7, r0
/* 8033A4A8 00337408 7C 00 00 34 */ cntlzw r0, r0
/* 8033A4AC 0033740C 7C E0 00 30 */ slw r0, r7, r0
/* 8033A4B0 00337410 54 00 0F FE */ srwi r0, r0, 0x1f
/* 8033A4B4 00337414 48 00 00 14 */ b lbl_8033A4C8
lbl_8033A4B8:
/* 8033A4B8 00337418 7C E0 02 78 */ xor r0, r7, r0
/* 8033A4BC 0033741C 7C 00 00 34 */ cntlzw r0, r0
/* 8033A4C0 00337420 7C E0 00 30 */ slw r0, r7, r0
/* 8033A4C4 00337424 54 00 0F FE */ srwi r0, r0, 0x1f
lbl_8033A4C8:
/* 8033A4C8 00337428 54 00 06 3F */ clrlwi. r0, r0, 0x18
/* 8033A4CC 0033742C 40 82 00 10 */ bne lbl_8033A4DC
/* 8033A4D0 00337430 7C C9 33 78 */ mr r9, r6
/* 8033A4D4 00337434 80 C6 00 00 */ lwz r6, 0(r6)
/* 8033A4D8 00337438 48 00 00 08 */ b lbl_8033A4E0
lbl_8033A4DC:
/* 8033A4DC 0033743C 80 C6 00 04 */ lwz r6, 4(r6)
lbl_8033A4E0:
/* 8033A4E0 00337440 28 06 00 00 */ cmplwi r6, 0
/* 8033A4E4 00337444 40 82 FF A8 */ bne lbl_8033A48C
/* 8033A4E8 00337448 91 23 00 00 */ stw r9, 0(r3)
/* 8033A4EC 0033744C 38 04 00 08 */ addi r0, r4, 8
/* 8033A4F0 00337450 90 03 00 04 */ stw r0, 4(r3)
/* 8033A4F4 00337454 91 03 00 08 */ stw r8, 8(r3)
/* 8033A4F8 00337458 91 43 00 0C */ stw r10, 0xc(r3)
/* 8033A4FC 0033745C 4E 80 00 20 */ blr
.global sub_8033a500
sub_8033a500:
/* 8033A500 00337460 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 8033A504 00337464 7C 08 02 A6 */ mflr r0
/* 8033A508 00337468 90 01 00 34 */ stw r0, 0x34(r1)
/* 8033A50C 0033746C 93 E1 00 2C */ stw r31, 0x2c(r1)
/* 8033A510 00337470 7C 9F 23 78 */ mr r31, r4
/* 8033A514 00337474 93 C1 00 28 */ stw r30, 0x28(r1)
/* 8033A518 00337478 7C 7E 1B 78 */ mr r30, r3
/* 8033A51C 0033747C 80 03 00 8C */ lwz r0, 0x8c(r3)
/* 8033A520 00337480 80 64 00 0C */ lwz r3, 0xc(r4)
/* 8033A524 00337484 90 01 00 0C */ stw r0, 0xc(r1)
/* 8033A528 00337488 81 83 00 00 */ lwz r12, 0(r3)
/* 8033A52C 0033748C 81 8C 00 18 */ lwz r12, 0x18(r12)
/* 8033A530 00337490 7D 89 03 A6 */ mtctr r12
/* 8033A534 00337494 4E 80 04 21 */ bctrl
/* 8033A538 00337498 2C 03 00 00 */ cmpwi r3, 0
/* 8033A53C 0033749C 40 82 00 48 */ bne lbl_8033A584
/* 8033A540 003374A0 80 1E 00 88 */ lwz r0, 0x88(r30)
/* 8033A544 003374A4 90 01 00 0C */ stw r0, 0xc(r1)
/* 8033A548 003374A8 48 00 00 2C */ b lbl_8033A574
lbl_8033A54C:
/* 8033A54C 003374AC 80 63 00 14 */ lwz r3, 0x14(r3)
/* 8033A550 003374B0 81 83 00 00 */ lwz r12, 0(r3)
/* 8033A554 003374B4 81 8C 00 18 */ lwz r12, 0x18(r12)
/* 8033A558 003374B8 7D 89 03 A6 */ mtctr r12
/* 8033A55C 003374BC 4E 80 04 21 */ bctrl
/* 8033A560 003374C0 2C 03 00 01 */ cmpwi r3, 1
/* 8033A564 003374C4 41 82 00 20 */ beq lbl_8033A584
/* 8033A568 003374C8 80 61 00 0C */ lwz r3, 0xc(r1)
/* 8033A56C 003374CC 80 03 00 04 */ lwz r0, 4(r3)
/* 8033A570 003374D0 90 01 00 0C */ stw r0, 0xc(r1)
lbl_8033A574:
/* 8033A574 003374D4 80 61 00 0C */ lwz r3, 0xc(r1)
/* 8033A578 003374D8 80 1E 00 8C */ lwz r0, 0x8c(r30)
/* 8033A57C 003374DC 7C 03 00 40 */ cmplw r3, r0
/* 8033A580 003374E0 40 82 FF CC */ bne lbl_8033A54C
lbl_8033A584:
/* 8033A584 003374E4 7F E6 FB 78 */ mr r6, r31
/* 8033A588 003374E8 38 61 00 08 */ addi r3, r1, 8
/* 8033A58C 003374EC 38 9E 00 84 */ addi r4, r30, 0x84
/* 8033A590 003374F0 38 A1 00 0C */ addi r5, r1, 0xc
/* 8033A594 003374F4 48 00 00 49 */ bl sub_8033a5dc
/* 8033A598 003374F8 80 FF 00 00 */ lwz r7, 0(r31)
/* 8033A59C 003374FC 38 61 00 1C */ addi r3, r1, 0x1c
/* 8033A5A0 00337500 80 BF 00 04 */ lwz r5, 4(r31)
/* 8033A5A4 00337504 38 9E 00 9C */ addi r4, r30, 0x9c
/* 8033A5A8 00337508 80 01 00 08 */ lwz r0, 8(r1)
/* 8033A5AC 0033750C 38 C1 00 10 */ addi r6, r1, 0x10
/* 8033A5B0 00337510 90 E1 00 10 */ stw r7, 0x10(r1)
/* 8033A5B4 00337514 90 A1 00 14 */ stw r5, 0x14(r1)
/* 8033A5B8 00337518 90 01 00 18 */ stw r0, 0x18(r1)
/* 8033A5BC 0033751C 80 BE 00 AC */ lwz r5, 0xac(r30)
/* 8033A5C0 00337520 48 00 04 45 */ bl sub_8033aa04
/* 8033A5C4 00337524 80 01 00 34 */ lwz r0, 0x34(r1)
/* 8033A5C8 00337528 83 E1 00 2C */ lwz r31, 0x2c(r1)
/* 8033A5CC 0033752C 83 C1 00 28 */ lwz r30, 0x28(r1)
/* 8033A5D0 00337530 7C 08 03 A6 */ mtlr r0
/* 8033A5D4 00337534 38 21 00 30 */ addi r1, r1, 0x30
/* 8033A5D8 00337538 4E 80 00 20 */ blr
.global sub_8033a5dc
sub_8033a5dc:
/* 8033A5DC 0033753C 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 8033A5E0 00337540 7C 08 02 A6 */ mflr r0
/* 8033A5E4 00337544 90 01 00 14 */ stw r0, 0x14(r1)
/* 8033A5E8 00337548 7C 80 23 78 */ mr r0, r4
/* 8033A5EC 0033754C 93 E1 00 0C */ stw r31, 0xc(r1)
/* 8033A5F0 00337550 7C 7F 1B 78 */ mr r31, r3
/* 8033A5F4 00337554 7C 03 03 78 */ mr r3, r0
/* 8033A5F8 00337558 80 85 00 00 */ lwz r4, 0(r5)
/* 8033A5FC 0033755C 7C C5 33 78 */ mr r5, r6
/* 8033A600 00337560 4B FF F7 9D */ bl sub_80339d9c
/* 8033A604 00337564 90 7F 00 00 */ stw r3, 0(r31)
/* 8033A608 00337568 80 01 00 14 */ lwz r0, 0x14(r1)
/* 8033A60C 0033756C 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 8033A610 00337570 7C 08 03 A6 */ mtlr r0
/* 8033A614 00337574 38 21 00 10 */ addi r1, r1, 0x10
/* 8033A618 00337578 4E 80 00 20 */ blr
.global __dt__11CResFactoryFv
__dt__11CResFactoryFv:
/* 8033A61C 0033757C 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 8033A620 00337580 7C 08 02 A6 */ mflr r0
/* 8033A624 00337584 90 01 00 14 */ stw r0, 0x14(r1)
/* 8033A628 00337588 93 E1 00 0C */ stw r31, 0xc(r1)
/* 8033A62C 0033758C 7C 9F 23 78 */ mr r31, r4
/* 8033A630 00337590 93 C1 00 08 */ stw r30, 8(r1)
/* 8033A634 00337594 7C 7E 1B 79 */ or. r30, r3, r3
/* 8033A638 00337598 41 82 00 9C */ beq lbl_8033A6D4
/* 8033A63C 0033759C 3C 80 80 3F */ lis r4, lbl_803EE368@ha
/* 8033A640 003375A0 38 7E 00 B0 */ addi r3, r30, 0xb0
/* 8033A644 003375A4 38 04 E3 68 */ addi r0, r4, lbl_803EE368@l
/* 8033A648 003375A8 38 80 FF FF */ li r4, -1
/* 8033A64C 003375AC 90 1E 00 00 */ stw r0, 0(r30)
/* 8033A650 003375B0 48 00 03 21 */ bl sub_8033a970
/* 8033A654 003375B4 34 1E 00 9C */ addic. r0, r30, 0x9c
/* 8033A658 003375B8 41 82 00 34 */ beq lbl_8033A68C
/* 8033A65C 003375BC 34 1E 00 9C */ addic. r0, r30, 0x9c
/* 8033A660 003375C0 41 82 00 2C */ beq lbl_8033A68C
/* 8033A664 003375C4 80 9E 00 AC */ lwz r4, 0xac(r30)
/* 8033A668 003375C8 28 04 00 00 */ cmplwi r4, 0
/* 8033A66C 003375CC 41 82 00 0C */ beq lbl_8033A678
/* 8033A670 003375D0 38 7E 00 9C */ addi r3, r30, 0x9c
/* 8033A674 003375D4 48 00 01 25 */ bl sub_8033a798
lbl_8033A678:
/* 8033A678 003375D8 38 00 00 00 */ li r0, 0
/* 8033A67C 003375DC 90 1E 00 AC */ stw r0, 0xac(r30)
/* 8033A680 003375E0 90 1E 00 A4 */ stw r0, 0xa4(r30)
/* 8033A684 003375E4 90 1E 00 A8 */ stw r0, 0xa8(r30)
/* 8033A688 003375E8 90 1E 00 A0 */ stw r0, 0xa0(r30)
lbl_8033A68C:
/* 8033A68C 003375EC 38 7E 00 84 */ addi r3, r30, 0x84
/* 8033A690 003375F0 38 80 FF FF */ li r4, -1
/* 8033A694 003375F4 48 00 02 DD */ bl sub_8033a970
/* 8033A698 003375F8 38 7E 00 5C */ addi r3, r30, 0x5c
/* 8033A69C 003375FC 38 80 FF FF */ li r4, -1
/* 8033A6A0 00337600 4B FF E7 C1 */ bl sub_80338e60
/* 8033A6A4 00337604 38 7E 00 04 */ addi r3, r30, 4
/* 8033A6A8 00337608 38 80 FF FF */ li r4, -1
/* 8033A6AC 0033760C 48 00 1C 5D */ bl __dt__10CResLoaderFv
/* 8033A6B0 00337610 28 1E 00 00 */ cmplwi r30, 0
/* 8033A6B4 00337614 41 82 00 10 */ beq lbl_8033A6C4
/* 8033A6B8 00337618 3C 60 80 3E */ lis r3, lbl_803D9C50@ha
/* 8033A6BC 0033761C 38 03 9C 50 */ addi r0, r3, lbl_803D9C50@l
/* 8033A6C0 00337620 90 1E 00 00 */ stw r0, 0(r30)
lbl_8033A6C4:
/* 8033A6C4 00337624 7F E0 07 35 */ extsh. r0, r31
/* 8033A6C8 00337628 40 81 00 0C */ ble lbl_8033A6D4
/* 8033A6CC 0033762C 7F C3 F3 78 */ mr r3, r30
/* 8033A6D0 00337630 4B FD B2 61 */ bl Free__7CMemoryFPCv
lbl_8033A6D4:
/* 8033A6D4 00337634 80 01 00 14 */ lwz r0, 0x14(r1)
/* 8033A6D8 00337638 7F C3 F3 78 */ mr r3, r30
/* 8033A6DC 0033763C 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 8033A6E0 00337640 83 C1 00 08 */ lwz r30, 8(r1)
/* 8033A6E4 00337644 7C 08 03 A6 */ mtlr r0
/* 8033A6E8 00337648 38 21 00 10 */ addi r1, r1, 0x10
/* 8033A6EC 0033764C 4E 80 00 20 */ blr
.global __ct__11CResFactoryFv
__ct__11CResFactoryFv:
/* 8033A6F0 00337650 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 8033A6F4 00337654 7C 08 02 A6 */ mflr r0
/* 8033A6F8 00337658 3C 80 80 3E */ lis r4, lbl_803D9C50@ha
/* 8033A6FC 0033765C 90 01 00 24 */ stw r0, 0x24(r1)
/* 8033A700 00337660 38 04 9C 50 */ addi r0, r4, lbl_803D9C50@l
/* 8033A704 00337664 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 8033A708 00337668 7C 7F 1B 78 */ mr r31, r3
/* 8033A70C 0033766C 3C 60 80 3F */ lis r3, lbl_803EE368@ha
/* 8033A710 00337670 90 1F 00 00 */ stw r0, 0(r31)
/* 8033A714 00337674 38 03 E3 68 */ addi r0, r3, lbl_803EE368@l
/* 8033A718 00337678 38 7F 00 04 */ addi r3, r31, 4
/* 8033A71C 0033767C 90 1F 00 00 */ stw r0, 0(r31)
/* 8033A720 00337680 48 00 1C 9D */ bl __ct__10CResLoaderFv
/* 8033A724 00337684 38 7F 00 5C */ addi r3, r31, 0x5c
/* 8033A728 00337688 4B FF E7 F1 */ bl __ct__11CFactoryMgrFv
/* 8033A72C 0033768C 38 FF 00 90 */ addi r7, r31, 0x90
/* 8033A730 00337690 38 C0 00 00 */ li r6, 0
/* 8033A734 00337694 90 FF 00 88 */ stw r7, 0x88(r31)
/* 8033A738 00337698 38 1F 00 BC */ addi r0, r31, 0xbc
/* 8033A73C 0033769C 88 A1 00 08 */ lbz r5, 8(r1)
/* 8033A740 003376A0 7F E3 FB 78 */ mr r3, r31
/* 8033A744 003376A4 90 FF 00 8C */ stw r7, 0x8c(r31)
/* 8033A748 003376A8 88 81 00 0C */ lbz r4, 0xc(r1)
/* 8033A74C 003376AC 90 FF 00 90 */ stw r7, 0x90(r31)
/* 8033A750 003376B0 90 FF 00 94 */ stw r7, 0x94(r31)
/* 8033A754 003376B4 90 DF 00 98 */ stw r6, 0x98(r31)
/* 8033A758 003376B8 98 BF 00 9C */ stb r5, 0x9c(r31)
/* 8033A75C 003376BC 98 9F 00 9D */ stb r4, 0x9d(r31)
/* 8033A760 003376C0 90 DF 00 A0 */ stw r6, 0xa0(r31)
/* 8033A764 003376C4 90 DF 00 A4 */ stw r6, 0xa4(r31)
/* 8033A768 003376C8 90 DF 00 A8 */ stw r6, 0xa8(r31)
/* 8033A76C 003376CC 90 DF 00 AC */ stw r6, 0xac(r31)
/* 8033A770 003376D0 90 1F 00 B4 */ stw r0, 0xb4(r31)
/* 8033A774 003376D4 90 1F 00 B8 */ stw r0, 0xb8(r31)
/* 8033A778 003376D8 90 1F 00 BC */ stw r0, 0xbc(r31)
/* 8033A77C 003376DC 90 1F 00 C0 */ stw r0, 0xc0(r31)
/* 8033A780 003376E0 90 DF 00 C4 */ stw r6, 0xc4(r31)
/* 8033A784 003376E4 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 8033A788 003376E8 80 01 00 24 */ lwz r0, 0x24(r1)
/* 8033A78C 003376EC 7C 08 03 A6 */ mtlr r0
/* 8033A790 003376F0 38 21 00 20 */ addi r1, r1, 0x20
/* 8033A794 003376F4 4E 80 00 20 */ blr
.global sub_8033a798
sub_8033a798:
/* 8033A798 003376F8 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 8033A79C 003376FC 7C 08 02 A6 */ mflr r0
/* 8033A7A0 00337700 90 01 00 14 */ stw r0, 0x14(r1)
/* 8033A7A4 00337704 93 E1 00 0C */ stw r31, 0xc(r1)
/* 8033A7A8 00337708 7C 9F 23 78 */ mr r31, r4
/* 8033A7AC 0033770C 93 C1 00 08 */ stw r30, 8(r1)
/* 8033A7B0 00337710 7C 7E 1B 78 */ mr r30, r3
/* 8033A7B4 00337714 80 84 00 00 */ lwz r4, 0(r4)
/* 8033A7B8 00337718 28 04 00 00 */ cmplwi r4, 0
/* 8033A7BC 0033771C 41 82 00 08 */ beq lbl_8033A7C4
/* 8033A7C0 00337720 4B FF FF D9 */ bl sub_8033a798
lbl_8033A7C4:
/* 8033A7C4 00337724 80 9F 00 04 */ lwz r4, 4(r31)
/* 8033A7C8 00337728 28 04 00 00 */ cmplwi r4, 0
/* 8033A7CC 0033772C 41 82 00 0C */ beq lbl_8033A7D8
/* 8033A7D0 00337730 7F C3 F3 78 */ mr r3, r30
/* 8033A7D4 00337734 4B FF FF C5 */ bl sub_8033a798
lbl_8033A7D8:
/* 8033A7D8 00337738 28 1F 00 00 */ cmplwi r31, 0
/* 8033A7DC 0033773C 41 82 00 0C */ beq lbl_8033A7E8
/* 8033A7E0 00337740 7F E3 FB 78 */ mr r3, r31
/* 8033A7E4 00337744 4B FD B1 4D */ bl Free__7CMemoryFPCv
lbl_8033A7E8:
/* 8033A7E8 00337748 80 01 00 14 */ lwz r0, 0x14(r1)
/* 8033A7EC 0033774C 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 8033A7F0 00337750 83 C1 00 08 */ lwz r30, 8(r1)
/* 8033A7F4 00337754 7C 08 03 A6 */ mtlr r0
/* 8033A7F8 00337758 38 21 00 10 */ addi r1, r1, 0x10
/* 8033A7FC 0033775C 4E 80 00 20 */ blr
.global sub_8033a800
sub_8033a800:
/* 8033A800 00337760 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 8033A804 00337764 7C 08 02 A6 */ mflr r0
/* 8033A808 00337768 90 01 00 24 */ stw r0, 0x24(r1)
/* 8033A80C 0033776C 38 A1 00 0C */ addi r5, r1, 0xc
/* 8033A810 00337770 89 21 00 08 */ lbz r9, 8(r1)
/* 8033A814 00337774 81 04 00 00 */ lwz r8, 0(r4)
/* 8033A818 00337778 80 E4 00 04 */ lwz r7, 4(r4)
/* 8033A81C 0033777C 38 81 00 10 */ addi r4, r1, 0x10
/* 8033A820 00337780 80 C3 00 00 */ lwz r6, 0(r3)
/* 8033A824 00337784 80 03 00 04 */ lwz r0, 4(r3)
/* 8033A828 00337788 38 61 00 18 */ addi r3, r1, 0x18
/* 8033A82C 0033778C 99 21 00 0C */ stb r9, 0xc(r1)
/* 8033A830 00337790 91 01 00 10 */ stw r8, 0x10(r1)
/* 8033A834 00337794 90 E1 00 14 */ stw r7, 0x14(r1)
/* 8033A838 00337798 90 C1 00 18 */ stw r6, 0x18(r1)
/* 8033A83C 0033779C 90 01 00 1C */ stw r0, 0x1c(r1)
/* 8033A840 003377A0 48 00 00 15 */ bl sub_8033a854
/* 8033A844 003377A4 80 01 00 24 */ lwz r0, 0x24(r1)
/* 8033A848 003377A8 7C 08 03 A6 */ mtlr r0
/* 8033A84C 003377AC 38 21 00 20 */ addi r1, r1, 0x20
/* 8033A850 003377B0 4E 80 00 20 */ blr
.global sub_8033a854
sub_8033a854:
/* 8033A854 003377B4 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 8033A858 003377B8 7C 08 02 A6 */ mflr r0
/* 8033A85C 003377BC 90 01 00 24 */ stw r0, 0x24(r1)
/* 8033A860 003377C0 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 8033A864 003377C4 93 C1 00 18 */ stw r30, 0x18(r1)
/* 8033A868 003377C8 3B C0 00 00 */ li r30, 0
/* 8033A86C 003377CC 93 A1 00 14 */ stw r29, 0x14(r1)
/* 8033A870 003377D0 7C 9D 23 78 */ mr r29, r4
/* 8033A874 003377D4 80 A3 00 00 */ lwz r5, 0(r3)
/* 8033A878 003377D8 83 E3 00 04 */ lwz r31, 4(r3)
/* 8033A87C 003377DC 48 00 00 18 */ b lbl_8033A894
lbl_8033A880:
/* 8033A880 003377E0 7F E3 FB 78 */ mr r3, r31
/* 8033A884 003377E4 7C A4 2B 78 */ mr r4, r5
/* 8033A888 003377E8 3B DE 00 01 */ addi r30, r30, 1
/* 8033A88C 003377EC 48 00 1D 55 */ bl rbtree_traverse_forward__4rstlFPCvPv
/* 8033A890 003377F0 7C 65 1B 78 */ mr r5, r3
lbl_8033A894:
/* 8033A894 003377F4 80 1D 00 00 */ lwz r0, 0(r29)
/* 8033A898 003377F8 38 60 00 00 */ li r3, 0
/* 8033A89C 003377FC 7C 05 00 40 */ cmplw r5, r0
/* 8033A8A0 00337800 40 82 00 10 */ bne lbl_8033A8B0
/* 8033A8A4 00337804 80 1D 00 04 */ lwz r0, 4(r29)
/* 8033A8A8 00337808 7C 1F 00 40 */ cmplw r31, r0
/* 8033A8AC 0033780C 41 82 00 08 */ beq lbl_8033A8B4
lbl_8033A8B0:
/* 8033A8B0 00337810 38 60 00 01 */ li r3, 1
lbl_8033A8B4:
/* 8033A8B4 00337814 54 60 06 3F */ clrlwi. r0, r3, 0x18
/* 8033A8B8 00337818 40 82 FF C8 */ bne lbl_8033A880
/* 8033A8BC 0033781C 80 01 00 24 */ lwz r0, 0x24(r1)
/* 8033A8C0 00337820 7F C3 F3 78 */ mr r3, r30
/* 8033A8C4 00337824 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 8033A8C8 00337828 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 8033A8CC 0033782C 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 8033A8D0 00337830 7C 08 03 A6 */ mtlr r0
/* 8033A8D4 00337834 38 21 00 20 */ addi r1, r1, 0x20
/* 8033A8D8 00337838 4E 80 00 20 */ blr
.global sub_8033a8dc
sub_8033a8dc:
/* 8033A8DC 0033783C 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 8033A8E0 00337840 7C 08 02 A6 */ mflr r0
/* 8033A8E4 00337844 90 01 00 24 */ stw r0, 0x24(r1)
/* 8033A8E8 00337848 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 8033A8EC 0033784C 93 C1 00 18 */ stw r30, 0x18(r1)
/* 8033A8F0 00337850 7C 9E 23 78 */ mr r30, r4
/* 8033A8F4 00337854 93 A1 00 14 */ stw r29, 0x14(r1)
/* 8033A8F8 00337858 7C 7D 1B 78 */ mr r29, r3
/* 8033A8FC 0033785C 80 03 00 04 */ lwz r0, 4(r3)
/* 8033A900 00337860 83 E4 00 04 */ lwz r31, 4(r4)
/* 8033A904 00337864 7C 1E 00 40 */ cmplw r30, r0
/* 8033A908 00337868 40 82 00 08 */ bne lbl_8033A910
/* 8033A90C 0033786C 93 FD 00 04 */ stw r31, 4(r29)
lbl_8033A910:
/* 8033A910 00337870 80 1E 00 04 */ lwz r0, 4(r30)
/* 8033A914 00337874 38 7E 00 08 */ addi r3, r30, 8
/* 8033A918 00337878 80 BE 00 00 */ lwz r5, 0(r30)
/* 8033A91C 0033787C 38 80 FF FF */ li r4, -1
/* 8033A920 00337880 90 05 00 04 */ stw r0, 4(r5)
/* 8033A924 00337884 80 1E 00 00 */ lwz r0, 0(r30)
/* 8033A928 00337888 80 BE 00 04 */ lwz r5, 4(r30)
/* 8033A92C 0033788C 90 05 00 00 */ stw r0, 0(r5)
/* 8033A930 00337890 4B FF EF 51 */ bl sub_80339880
/* 8033A934 00337894 28 1E 00 00 */ cmplwi r30, 0
/* 8033A938 00337898 41 82 00 0C */ beq lbl_8033A944
/* 8033A93C 0033789C 7F C3 F3 78 */ mr r3, r30
/* 8033A940 003378A0 4B FD AF F1 */ bl Free__7CMemoryFPCv
lbl_8033A944:
/* 8033A944 003378A4 80 9D 00 14 */ lwz r4, 0x14(r29)
/* 8033A948 003378A8 7F E3 FB 78 */ mr r3, r31
/* 8033A94C 003378AC 38 04 FF FF */ addi r0, r4, -1
/* 8033A950 003378B0 90 1D 00 14 */ stw r0, 0x14(r29)
/* 8033A954 003378B4 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 8033A958 003378B8 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 8033A95C 003378BC 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 8033A960 003378C0 80 01 00 24 */ lwz r0, 0x24(r1)
/* 8033A964 003378C4 7C 08 03 A6 */ mtlr r0
/* 8033A968 003378C8 38 21 00 20 */ addi r1, r1, 0x20
/* 8033A96C 003378CC 4E 80 00 20 */ blr
.global sub_8033a970
sub_8033a970:
/* 8033A970 003378D0 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 8033A974 003378D4 7C 08 02 A6 */ mflr r0
/* 8033A978 003378D8 90 01 00 24 */ stw r0, 0x24(r1)
/* 8033A97C 003378DC 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 8033A980 003378E0 93 C1 00 18 */ stw r30, 0x18(r1)
/* 8033A984 003378E4 93 A1 00 14 */ stw r29, 0x14(r1)
/* 8033A988 003378E8 7C 9D 23 78 */ mr r29, r4
/* 8033A98C 003378EC 93 81 00 10 */ stw r28, 0x10(r1)
/* 8033A990 003378F0 7C 7C 1B 79 */ or. r28, r3, r3
/* 8033A994 003378F4 41 82 00 4C */ beq lbl_8033A9E0
/* 8033A998 003378F8 83 FC 00 04 */ lwz r31, 4(r28)
/* 8033A99C 003378FC 48 00 00 28 */ b lbl_8033A9C4
lbl_8033A9A0:
/* 8033A9A0 00337900 7F FE FB 78 */ mr r30, r31
/* 8033A9A4 00337904 83 FF 00 04 */ lwz r31, 4(r31)
/* 8033A9A8 00337908 38 7E 00 08 */ addi r3, r30, 8
/* 8033A9AC 0033790C 38 80 FF FF */ li r4, -1
/* 8033A9B0 00337910 4B FF EE D1 */ bl sub_80339880
/* 8033A9B4 00337914 28 1E 00 00 */ cmplwi r30, 0
/* 8033A9B8 00337918 41 82 00 0C */ beq lbl_8033A9C4
/* 8033A9BC 0033791C 7F C3 F3 78 */ mr r3, r30
/* 8033A9C0 00337920 4B FD AF 71 */ bl Free__7CMemoryFPCv
lbl_8033A9C4:
/* 8033A9C4 00337924 80 1C 00 08 */ lwz r0, 8(r28)
/* 8033A9C8 00337928 7C 1F 00 40 */ cmplw r31, r0
/* 8033A9CC 0033792C 40 82 FF D4 */ bne lbl_8033A9A0
/* 8033A9D0 00337930 7F A0 07 35 */ extsh. r0, r29
/* 8033A9D4 00337934 40 81 00 0C */ ble lbl_8033A9E0
/* 8033A9D8 00337938 7F 83 E3 78 */ mr r3, r28
/* 8033A9DC 0033793C 4B FD AF 55 */ bl Free__7CMemoryFPCv
lbl_8033A9E0:
/* 8033A9E0 00337940 80 01 00 24 */ lwz r0, 0x24(r1)
/* 8033A9E4 00337944 7F 83 E3 78 */ mr r3, r28
/* 8033A9E8 00337948 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 8033A9EC 0033794C 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 8033A9F0 00337950 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 8033A9F4 00337954 83 81 00 10 */ lwz r28, 0x10(r1)
/* 8033A9F8 00337958 7C 08 03 A6 */ mtlr r0
/* 8033A9FC 0033795C 38 21 00 20 */ addi r1, r1, 0x20
/* 8033AA00 00337960 4E 80 00 20 */ blr
.global sub_8033aa04
sub_8033aa04:
/* 8033AA04 00337964 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 8033AA08 00337968 7C 08 02 A6 */ mflr r0
/* 8033AA0C 0033796C 28 05 00 00 */ cmplwi r5, 0
/* 8033AA10 00337970 90 01 00 24 */ stw r0, 0x24(r1)
/* 8033AA14 00337974 BF 61 00 0C */ stmw r27, 0xc(r1)
/* 8033AA18 00337978 7C 7B 1B 78 */ mr r27, r3
/* 8033AA1C 0033797C 7C 9C 23 78 */ mr r28, r4
/* 8033AA20 00337980 7C DD 33 78 */ mr r29, r6
/* 8033AA24 00337984 40 82 00 90 */ bne lbl_8033AAB4
/* 8033AA28 00337988 3C 80 80 3D */ lis r4, lbl_803D7A28@ha
/* 8033AA2C 0033798C 38 60 00 1C */ li r3, 0x1c
/* 8033AA30 00337990 38 84 7A 28 */ addi r4, r4, lbl_803D7A28@l
/* 8033AA34 00337994 38 A0 00 00 */ li r5, 0
/* 8033AA38 00337998 4B FD AD E1 */ bl __nwa__FUlPCcPCc
/* 8033AA3C 0033799C 28 03 00 00 */ cmplwi r3, 0
/* 8033AA40 003379A0 41 82 00 38 */ beq lbl_8033AA78
/* 8033AA44 003379A4 38 00 00 00 */ li r0, 0
/* 8033AA48 003379A8 34 83 00 10 */ addic. r4, r3, 0x10
/* 8033AA4C 003379AC 90 03 00 00 */ stw r0, 0(r3)
/* 8033AA50 003379B0 90 03 00 04 */ stw r0, 4(r3)
/* 8033AA54 003379B4 90 03 00 08 */ stw r0, 8(r3)
/* 8033AA58 003379B8 90 03 00 0C */ stw r0, 0xc(r3)
/* 8033AA5C 003379BC 41 82 00 1C */ beq lbl_8033AA78
/* 8033AA60 003379C0 80 1D 00 00 */ lwz r0, 0(r29)
/* 8033AA64 003379C4 90 04 00 00 */ stw r0, 0(r4)
/* 8033AA68 003379C8 80 1D 00 04 */ lwz r0, 4(r29)
/* 8033AA6C 003379CC 90 04 00 04 */ stw r0, 4(r4)
/* 8033AA70 003379D0 80 1D 00 08 */ lwz r0, 8(r29)
/* 8033AA74 003379D4 90 04 00 08 */ stw r0, 8(r4)
lbl_8033AA78:
/* 8033AA78 003379D8 90 7C 00 10 */ stw r3, 0x10(r28)
/* 8033AA7C 003379DC 38 1C 00 08 */ addi r0, r28, 8
/* 8033AA80 003379E0 80 7C 00 04 */ lwz r3, 4(r28)
/* 8033AA84 003379E4 38 63 00 01 */ addi r3, r3, 1
/* 8033AA88 003379E8 90 7C 00 04 */ stw r3, 4(r28)
/* 8033AA8C 003379EC 80 7C 00 10 */ lwz r3, 0x10(r28)
/* 8033AA90 003379F0 90 7C 00 08 */ stw r3, 8(r28)
/* 8033AA94 003379F4 80 7C 00 10 */ lwz r3, 0x10(r28)
/* 8033AA98 003379F8 90 7C 00 0C */ stw r3, 0xc(r28)
/* 8033AA9C 003379FC 80 7C 00 10 */ lwz r3, 0x10(r28)
/* 8033AAA0 00337A00 90 7B 00 00 */ stw r3, 0(r27)
/* 8033AAA4 00337A04 90 1B 00 04 */ stw r0, 4(r27)
/* 8033AAA8 00337A08 88 0D 9D 4C */ lbz r0, lbl_805A890C@sda21(r13)
/* 8033AAAC 00337A0C 98 1B 00 08 */ stb r0, 8(r27)
/* 8033AAB0 00337A10 48 00 01 EC */ b lbl_8033AC9C
lbl_8033AAB4:
/* 8033AAB4 00337A14 7C BF 2B 78 */ mr r31, r5
/* 8033AAB8 00337A18 3B C0 00 00 */ li r30, 0
/* 8033AABC 00337A1C 48 00 01 AC */ b lbl_8033AC68
lbl_8033AAC0:
/* 8033AAC0 00337A20 80 BD 00 00 */ lwz r5, 0(r29)
/* 8033AAC4 00337A24 80 7F 00 10 */ lwz r3, 0x10(r31)
/* 8033AAC8 00337A28 7C 05 18 40 */ cmplw r5, r3
/* 8033AACC 00337A2C 40 82 00 20 */ bne lbl_8033AAEC
/* 8033AAD0 00337A30 80 1D 00 04 */ lwz r0, 4(r29)
/* 8033AAD4 00337A34 80 7F 00 14 */ lwz r3, 0x14(r31)
/* 8033AAD8 00337A38 7C 60 02 78 */ xor r0, r3, r0
/* 8033AADC 00337A3C 7C 00 00 34 */ cntlzw r0, r0
/* 8033AAE0 00337A40 7C 60 00 30 */ slw r0, r3, r0
/* 8033AAE4 00337A44 54 04 0F FE */ srwi r4, r0, 0x1f
/* 8033AAE8 00337A48 48 00 00 14 */ b lbl_8033AAFC
lbl_8033AAEC:
/* 8033AAEC 00337A4C 7C 60 2A 78 */ xor r0, r3, r5
/* 8033AAF0 00337A50 7C 00 00 34 */ cntlzw r0, r0
/* 8033AAF4 00337A54 7C 60 00 30 */ slw r0, r3, r0
/* 8033AAF8 00337A58 54 04 0F FE */ srwi r4, r0, 0x1f
lbl_8033AAFC:
/* 8033AAFC 00337A5C 54 80 06 3F */ clrlwi. r0, r4, 0x18
/* 8033AB00 00337A60 40 82 00 5C */ bne lbl_8033AB5C
/* 8033AB04 00337A64 80 1F 00 10 */ lwz r0, 0x10(r31)
/* 8033AB08 00337A68 7C 00 28 40 */ cmplw r0, r5
/* 8033AB0C 00337A6C 40 82 00 20 */ bne lbl_8033AB2C
/* 8033AB10 00337A70 80 1F 00 14 */ lwz r0, 0x14(r31)
/* 8033AB14 00337A74 80 7D 00 04 */ lwz r3, 4(r29)
/* 8033AB18 00337A78 7C 60 02 78 */ xor r0, r3, r0
/* 8033AB1C 00337A7C 7C 00 00 34 */ cntlzw r0, r0
/* 8033AB20 00337A80 7C 60 00 30 */ slw r0, r3, r0
/* 8033AB24 00337A84 54 00 0F FE */ srwi r0, r0, 0x1f
/* 8033AB28 00337A88 48 00 00 14 */ b lbl_8033AB3C
lbl_8033AB2C:
/* 8033AB2C 00337A8C 7C A0 02 78 */ xor r0, r5, r0
/* 8033AB30 00337A90 7C 00 00 34 */ cntlzw r0, r0
/* 8033AB34 00337A94 7C A0 00 30 */ slw r0, r5, r0
/* 8033AB38 00337A98 54 00 0F FE */ srwi r0, r0, 0x1f
lbl_8033AB3C:
/* 8033AB3C 00337A9C 54 00 06 3F */ clrlwi. r0, r0, 0x18
/* 8033AB40 00337AA0 40 82 00 1C */ bne lbl_8033AB5C
/* 8033AB44 00337AA4 93 FB 00 00 */ stw r31, 0(r27)
/* 8033AB48 00337AA8 38 1C 00 08 */ addi r0, r28, 8
/* 8033AB4C 00337AAC 90 1B 00 04 */ stw r0, 4(r27)
/* 8033AB50 00337AB0 88 0D 9D 4D */ lbz r0, lbl_805A890D@sda21(r13)
/* 8033AB54 00337AB4 98 1B 00 08 */ stb r0, 8(r27)
/* 8033AB58 00337AB8 48 00 01 44 */ b lbl_8033AC9C
lbl_8033AB5C:
/* 8033AB5C 00337ABC 54 80 06 3F */ clrlwi. r0, r4, 0x18
/* 8033AB60 00337AC0 41 82 00 88 */ beq lbl_8033ABE8
/* 8033AB64 00337AC4 80 1F 00 00 */ lwz r0, 0(r31)
/* 8033AB68 00337AC8 28 00 00 00 */ cmplwi r0, 0
/* 8033AB6C 00337ACC 40 82 00 74 */ bne lbl_8033ABE0
/* 8033AB70 00337AD0 3C 80 80 3D */ lis r4, lbl_803D7A28@ha
/* 8033AB74 00337AD4 38 60 00 1C */ li r3, 0x1c
/* 8033AB78 00337AD8 38 84 7A 28 */ addi r4, r4, lbl_803D7A28@l
/* 8033AB7C 00337ADC 38 A0 00 00 */ li r5, 0
/* 8033AB80 00337AE0 4B FD AC 99 */ bl __nwa__FUlPCcPCc
/* 8033AB84 00337AE4 28 03 00 00 */ cmplwi r3, 0
/* 8033AB88 00337AE8 41 82 00 3C */ beq lbl_8033ABC4
/* 8033AB8C 00337AEC 38 80 00 00 */ li r4, 0
/* 8033AB90 00337AF0 34 A3 00 10 */ addic. r5, r3, 0x10
/* 8033AB94 00337AF4 90 83 00 00 */ stw r4, 0(r3)
/* 8033AB98 00337AF8 38 00 00 01 */ li r0, 1
/* 8033AB9C 00337AFC 90 83 00 04 */ stw r4, 4(r3)
/* 8033ABA0 00337B00 93 E3 00 08 */ stw r31, 8(r3)
/* 8033ABA4 00337B04 90 03 00 0C */ stw r0, 0xc(r3)
/* 8033ABA8 00337B08 41 82 00 1C */ beq lbl_8033ABC4
/* 8033ABAC 00337B0C 80 1D 00 00 */ lwz r0, 0(r29)
/* 8033ABB0 00337B10 90 05 00 00 */ stw r0, 0(r5)
/* 8033ABB4 00337B14 80 1D 00 04 */ lwz r0, 4(r29)
/* 8033ABB8 00337B18 90 05 00 04 */ stw r0, 4(r5)
/* 8033ABBC 00337B1C 80 1D 00 08 */ lwz r0, 8(r29)
/* 8033ABC0 00337B20 90 05 00 08 */ stw r0, 8(r5)
lbl_8033ABC4:
/* 8033ABC4 00337B24 90 7F 00 00 */ stw r3, 0(r31)
/* 8033ABC8 00337B28 7C 7E 1B 78 */ mr r30, r3
/* 8033ABCC 00337B2C 80 1C 00 08 */ lwz r0, 8(r28)
/* 8033ABD0 00337B30 7C 1F 00 40 */ cmplw r31, r0
/* 8033ABD4 00337B34 40 82 00 94 */ bne lbl_8033AC68
/* 8033ABD8 00337B38 90 7C 00 08 */ stw r3, 8(r28)
/* 8033ABDC 00337B3C 48 00 00 8C */ b lbl_8033AC68
lbl_8033ABE0:
/* 8033ABE0 00337B40 7C 1F 03 78 */ mr r31, r0
/* 8033ABE4 00337B44 48 00 00 84 */ b lbl_8033AC68
lbl_8033ABE8:
/* 8033ABE8 00337B48 80 1F 00 04 */ lwz r0, 4(r31)
/* 8033ABEC 00337B4C 28 00 00 00 */ cmplwi r0, 0
/* 8033ABF0 00337B50 40 82 00 74 */ bne lbl_8033AC64
/* 8033ABF4 00337B54 3C 80 80 3D */ lis r4, lbl_803D7A28@ha
/* 8033ABF8 00337B58 38 60 00 1C */ li r3, 0x1c
/* 8033ABFC 00337B5C 38 84 7A 28 */ addi r4, r4, lbl_803D7A28@l
/* 8033AC00 00337B60 38 A0 00 00 */ li r5, 0
/* 8033AC04 00337B64 4B FD AC 15 */ bl __nwa__FUlPCcPCc
/* 8033AC08 00337B68 28 03 00 00 */ cmplwi r3, 0
/* 8033AC0C 00337B6C 41 82 00 3C */ beq lbl_8033AC48
/* 8033AC10 00337B70 38 80 00 00 */ li r4, 0
/* 8033AC14 00337B74 34 A3 00 10 */ addic. r5, r3, 0x10
/* 8033AC18 00337B78 90 83 00 00 */ stw r4, 0(r3)
/* 8033AC1C 00337B7C 38 00 00 01 */ li r0, 1
/* 8033AC20 00337B80 90 83 00 04 */ stw r4, 4(r3)
/* 8033AC24 00337B84 93 E3 00 08 */ stw r31, 8(r3)
/* 8033AC28 00337B88 90 03 00 0C */ stw r0, 0xc(r3)
/* 8033AC2C 00337B8C 41 82 00 1C */ beq lbl_8033AC48
/* 8033AC30 00337B90 80 1D 00 00 */ lwz r0, 0(r29)
/* 8033AC34 00337B94 90 05 00 00 */ stw r0, 0(r5)
/* 8033AC38 00337B98 80 1D 00 04 */ lwz r0, 4(r29)
/* 8033AC3C 00337B9C 90 05 00 04 */ stw r0, 4(r5)
/* 8033AC40 00337BA0 80 1D 00 08 */ lwz r0, 8(r29)
/* 8033AC44 00337BA4 90 05 00 08 */ stw r0, 8(r5)
lbl_8033AC48:
/* 8033AC48 00337BA8 90 7F 00 04 */ stw r3, 4(r31)
/* 8033AC4C 00337BAC 7C 7E 1B 78 */ mr r30, r3
/* 8033AC50 00337BB0 80 1C 00 0C */ lwz r0, 0xc(r28)
/* 8033AC54 00337BB4 7C 1F 00 40 */ cmplw r31, r0
/* 8033AC58 00337BB8 40 82 00 10 */ bne lbl_8033AC68
/* 8033AC5C 00337BBC 90 7C 00 0C */ stw r3, 0xc(r28)
/* 8033AC60 00337BC0 48 00 00 08 */ b lbl_8033AC68
lbl_8033AC64:
/* 8033AC64 00337BC4 7C 1F 03 78 */ mr r31, r0
lbl_8033AC68:
/* 8033AC68 00337BC8 28 1E 00 00 */ cmplwi r30, 0
/* 8033AC6C 00337BCC 41 82 FE 54 */ beq lbl_8033AAC0
/* 8033AC70 00337BD0 80 BC 00 04 */ lwz r5, 4(r28)
/* 8033AC74 00337BD4 7F C4 F3 78 */ mr r4, r30
/* 8033AC78 00337BD8 38 7C 00 08 */ addi r3, r28, 8
/* 8033AC7C 00337BDC 38 05 00 01 */ addi r0, r5, 1
/* 8033AC80 00337BE0 90 1C 00 04 */ stw r0, 4(r28)
/* 8033AC84 00337BE4 48 00 1E 15 */ bl rbtree_rebalance__4rstlFPvPv
/* 8033AC88 00337BE8 93 DB 00 00 */ stw r30, 0(r27)
/* 8033AC8C 00337BEC 38 1C 00 08 */ addi r0, r28, 8
/* 8033AC90 00337BF0 90 1B 00 04 */ stw r0, 4(r27)
/* 8033AC94 00337BF4 88 0D 9D 4E */ lbz r0, lbl_805A890E@sda21(r13)
/* 8033AC98 00337BF8 98 1B 00 08 */ stb r0, 8(r27)
lbl_8033AC9C:
/* 8033AC9C 00337BFC BB 61 00 0C */ lmw r27, 0xc(r1)
/* 8033ACA0 00337C00 80 01 00 24 */ lwz r0, 0x24(r1)
/* 8033ACA4 00337C04 7C 08 03 A6 */ mtlr r0
/* 8033ACA8 00337C08 38 21 00 20 */ addi r1, r1, 0x20
/* 8033ACAC 00337C0C 4E 80 00 20 */ blr
.section .sdata2, "a"
.global lbl_805AE8C0
lbl_805AE8C0:
# ROM: 0x3FB160
.4byte 0x00001000
.4byte 0