donut-decomp/asm/homebuttonLib/HBMAxSound_8012b560.s

889 lines
41 KiB
ArmAsm

.include "macros.inc"
.section .text, "ax" # 0x80006A00 - 0x80406260 ; 0x003FF860
.global lbl_8012B560
lbl_8012B560:
/* 8012B560 001273A0 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 8012B564 001273A4 7C 08 02 A6 */ mflr r0
/* 8012B568 001273A8 2C 03 00 04 */ cmpwi r3, 0x4
/* 8012B56C 001273AC 90 01 00 14 */ stw r0, 0x14(r1)
/* 8012B570 001273B0 93 E1 00 0C */ stw r31, 0xc(r1)
/* 8012B574 001273B4 93 C1 00 08 */ stw r30, 0x8(r1)
/* 8012B578 001273B8 41 82 00 14 */ beq lbl_8012B58C
/* 8012B57C 001273BC 2C 03 00 17 */ cmpwi r3, 0x17
/* 8012B580 001273C0 41 82 00 0C */ beq lbl_8012B58C
/* 8012B584 001273C4 2C 03 00 19 */ cmpwi r3, 0x19
/* 8012B588 001273C8 40 82 00 1C */ bne lbl_8012B5A4
.global lbl_8012B58C
lbl_8012B58C:
/* 8012B58C 001273CC 3C 80 80 54 */ lis r4, lbl_805436A8@ha
/* 8012B590 001273D0 38 00 00 03 */ li r0, 0x3
/* 8012B594 001273D4 80 84 36 A8 */ lwz r4, lbl_805436A8@l(r4)
/* 8012B598 001273D8 3C A4 00 01 */ addis r5, r4, 0x1
/* 8012B59C 001273DC 38 A5 B8 B0 */ addi r5, r5, -0x4750
/* 8012B5A0 001273E0 48 00 00 10 */ b lbl_8012B5B0
.global lbl_8012B5A4
lbl_8012B5A4:
/* 8012B5A4 001273E4 3C 80 80 54 */ lis r4, lbl_805436A8@ha
/* 8012B5A8 001273E8 38 00 00 04 */ li r0, 0x4
/* 8012B5AC 001273EC 80 A4 36 A8 */ lwz r5, lbl_805436A8@l(r4)
.global lbl_8012B5B0
lbl_8012B5B0:
/* 8012B5B0 001273F0 7C A4 2B 78 */ mr r4, r5
/* 8012B5B4 001273F4 3B E0 00 00 */ li r31, 0x0
/* 8012B5B8 001273F8 38 C0 00 00 */ li r6, 0x0
/* 8012B5BC 001273FC 7C 09 03 A6 */ mtctr r0
/* 8012B5C0 00127400 2C 00 00 00 */ cmpwi r0, 0x0
/* 8012B5C4 00127404 40 81 00 30 */ ble lbl_8012B5F4
.global lbl_8012B5C8
lbl_8012B5C8:
/* 8012B5C8 00127408 88 04 2E 1C */ lbz r0, 0x2e1c(r4)
/* 8012B5CC 0012740C 2C 00 00 00 */ cmpwi r0, 0x0
/* 8012B5D0 00127410 40 82 00 18 */ bne lbl_8012B5E8
/* 8012B5D4 00127414 1C 86 2E 2C */ mulli r4, r6, 0x2e2c
/* 8012B5D8 00127418 38 00 00 01 */ li r0, 0x1
/* 8012B5DC 0012741C 7F E5 22 14 */ add r31, r5, r4
/* 8012B5E0 00127420 98 1F 2E 1C */ stb r0, 0x2e1c(r31)
/* 8012B5E4 00127424 48 00 00 10 */ b lbl_8012B5F4
.global lbl_8012B5E8
lbl_8012B5E8:
/* 8012B5E8 00127428 38 84 2E 2C */ addi r4, r4, 0x2e2c
/* 8012B5EC 0012742C 38 C6 00 01 */ addi r6, r6, 0x1
/* 8012B5F0 00127430 42 00 FF D8 */ bdnz lbl_8012B5C8
.global lbl_8012B5F4
lbl_8012B5F4:
/* 8012B5F4 00127434 2C 1F 00 00 */ cmpwi r31, 0x0
/* 8012B5F8 00127438 40 82 00 E4 */ bne lbl_8012B6DC
/* 8012B5FC 0012743C 2C 03 00 04 */ cmpwi r3, 0x4
/* 8012B600 00127440 41 82 00 14 */ beq lbl_8012B614
/* 8012B604 00127444 2C 03 00 17 */ cmpwi r3, 0x17
/* 8012B608 00127448 41 82 00 0C */ beq lbl_8012B614
/* 8012B60C 0012744C 2C 03 00 19 */ cmpwi r3, 0x19
/* 8012B610 00127450 40 82 00 18 */ bne lbl_8012B628
.global lbl_8012B614
lbl_8012B614:
/* 8012B614 00127454 3C 60 80 54 */ lis r3, lbl_805436A8@ha
/* 8012B618 00127458 80 83 36 A8 */ lwz r4, lbl_805436A8@l(r3)
/* 8012B61C 0012745C 3C 64 00 01 */ addis r3, r4, 0x1
/* 8012B620 00127460 38 63 43 3C */ addi r3, r3, 0x433c
/* 8012B624 00127464 48 00 00 14 */ b lbl_8012B638
.global lbl_8012B628
lbl_8012B628:
/* 8012B628 00127468 3C 60 80 54 */ lis r3, lbl_805436A8@ha
/* 8012B62C 0012746C 80 83 36 A8 */ lwz r4, lbl_805436A8@l(r3)
/* 8012B630 00127470 3C 64 00 01 */ addis r3, r4, 0x1
/* 8012B634 00127474 38 63 43 34 */ addi r3, r3, 0x4334
.global lbl_8012B638
lbl_8012B638:
/* 8012B638 00127478 83 E3 00 00 */ lwz r31, 0x0(r3)
/* 8012B63C 0012747C 80 1F 2E 28 */ lwz r0, 0x2e28(r31)
/* 8012B640 00127480 2C 00 00 04 */ cmpwi r0, 0x4
/* 8012B644 00127484 41 82 00 14 */ beq lbl_8012B658
/* 8012B648 00127488 2C 00 00 17 */ cmpwi r0, 0x17
/* 8012B64C 0012748C 41 82 00 0C */ beq lbl_8012B658
/* 8012B650 00127490 2C 00 00 19 */ cmpwi r0, 0x19
/* 8012B654 00127494 40 82 00 10 */ bne lbl_8012B664
.global lbl_8012B658
lbl_8012B658:
/* 8012B658 00127498 3F C4 00 01 */ addis r30, r4, 0x1
/* 8012B65C 0012749C 3B DE 43 3C */ addi r30, r30, 0x433c
/* 8012B660 001274A0 48 00 00 0C */ b lbl_8012B66C
.global lbl_8012B664
lbl_8012B664:
/* 8012B664 001274A4 3F C4 00 01 */ addis r30, r4, 0x1
/* 8012B668 001274A8 3B DE 43 34 */ addi r30, r30, 0x4334
.global lbl_8012B66C
lbl_8012B66C:
/* 8012B66C 001274AC 7F E3 FB 78 */ mr r3, r31
/* 8012B670 001274B0 38 80 00 00 */ li r4, 0x0
/* 8012B674 001274B4 48 02 00 7D */ bl lbl_8014B6F0
/* 8012B678 001274B8 7F E3 FB 78 */ mr r3, r31
/* 8012B67C 001274BC 48 01 FF D5 */ bl lbl_8014B650
/* 8012B680 001274C0 38 00 00 00 */ li r0, 0x0
/* 8012B684 001274C4 98 1F 2E 1C */ stb r0, 0x2e1c(r31)
/* 8012B688 001274C8 80 7F 2E 24 */ lwz r3, 0x2e24(r31)
/* 8012B68C 001274CC 2C 03 00 00 */ cmpwi r3, 0x0
/* 8012B690 001274D0 40 82 00 10 */ bne lbl_8012B6A0
/* 8012B694 001274D4 80 1F 2E 20 */ lwz r0, 0x2e20(r31)
/* 8012B698 001274D8 90 1E 00 00 */ stw r0, 0x0(r30)
/* 8012B69C 001274DC 48 00 00 0C */ b lbl_8012B6A8
.global lbl_8012B6A0
lbl_8012B6A0:
/* 8012B6A0 001274E0 80 1F 2E 20 */ lwz r0, 0x2e20(r31)
/* 8012B6A4 001274E4 90 03 2E 20 */ stw r0, 0x2e20(r3)
.global lbl_8012B6A8
lbl_8012B6A8:
/* 8012B6A8 001274E8 80 7F 2E 20 */ lwz r3, 0x2e20(r31)
/* 8012B6AC 001274EC 2C 03 00 00 */ cmpwi r3, 0x0
/* 8012B6B0 001274F0 40 82 00 10 */ bne lbl_8012B6C0
/* 8012B6B4 001274F4 80 1F 2E 24 */ lwz r0, 0x2e24(r31)
/* 8012B6B8 001274F8 90 1E 00 04 */ stw r0, 0x4(r30)
/* 8012B6BC 001274FC 48 00 00 0C */ b lbl_8012B6C8
.global lbl_8012B6C0
lbl_8012B6C0:
/* 8012B6C0 00127500 80 1F 2E 24 */ lwz r0, 0x2e24(r31)
/* 8012B6C4 00127504 90 03 2E 24 */ stw r0, 0x2e24(r3)
.global lbl_8012B6C8
lbl_8012B6C8:
/* 8012B6C8 00127508 38 60 00 00 */ li r3, 0x0
/* 8012B6CC 0012750C 90 7F 2E 20 */ stw r3, 0x2e20(r31)
/* 8012B6D0 00127510 38 00 00 01 */ li r0, 0x1
/* 8012B6D4 00127514 90 7F 2E 24 */ stw r3, 0x2e24(r31)
/* 8012B6D8 00127518 98 1F 2E 1C */ stb r0, 0x2e1c(r31)
.global lbl_8012B6DC
lbl_8012B6DC:
/* 8012B6DC 0012751C 7F E3 FB 78 */ mr r3, r31
/* 8012B6E0 00127520 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 8012B6E4 00127524 83 C1 00 08 */ lwz r30, 0x8(r1)
/* 8012B6E8 00127528 80 01 00 14 */ lwz r0, 0x14(r1)
/* 8012B6EC 0012752C 7C 08 03 A6 */ mtlr r0
/* 8012B6F0 00127530 38 21 00 10 */ addi r1, r1, 0x10
/* 8012B6F4 00127534 4E 80 00 20 */ blr
/* 8012B6F8 00127538 00 00 00 00 */ .4byte 0x00000000
/* 8012B6FC 0012753C 00 00 00 00 */ .4byte 0x00000000
.global lbl_8012B700
lbl_8012B700:
/* 8012B700 00127540 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 8012B704 00127544 7C 08 02 A6 */ mflr r0
/* 8012B708 00127548 90 01 00 14 */ stw r0, 0x14(r1)
/* 8012B70C 0012754C 93 E1 00 0C */ stw r31, 0xc(r1)
/* 8012B710 00127550 3F E0 80 54 */ lis r31, lbl_805436A8@ha
/* 8012B714 00127554 80 7F 36 A8 */ lwz r3, lbl_805436A8@l(r31)
/* 8012B718 00127558 2C 03 00 00 */ cmpwi r3, 0x0
/* 8012B71C 0012755C 41 82 00 34 */ beq lbl_8012B750
/* 8012B720 00127560 3C 63 00 01 */ addis r3, r3, 0x1
/* 8012B724 00127564 38 80 00 01 */ li r4, 0x1
/* 8012B728 00127568 38 A0 00 00 */ li r5, 0x0
/* 8012B72C 0012756C 38 63 46 80 */ addi r3, r3, 0x4680
/* 8012B730 00127570 4B EF 69 41 */ bl lbl_80022070
/* 8012B734 00127574 80 7F 36 A8 */ lwz r3, 0x36a8(r31)
/* 8012B738 00127578 3C 63 00 01 */ addis r3, r3, 0x1
/* 8012B73C 0012757C 81 83 43 48 */ lwz r12, 0x4348(r3)
/* 8012B740 00127580 2C 0C 00 00 */ cmpwi r12, 0x0
/* 8012B744 00127584 41 82 00 0C */ beq lbl_8012B750
/* 8012B748 00127588 7D 89 03 A6 */ mtctr r12
/* 8012B74C 0012758C 4E 80 04 21 */ bctrl
.global lbl_8012B750
lbl_8012B750:
/* 8012B750 00127590 80 01 00 14 */ lwz r0, 0x14(r1)
/* 8012B754 00127594 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 8012B758 00127598 7C 08 03 A6 */ mtlr r0
/* 8012B75C 0012759C 38 21 00 10 */ addi r1, r1, 0x10
/* 8012B760 001275A0 4E 80 00 20 */ blr
/* 8012B764 001275A4 00 00 00 00 */ .4byte 0x00000000
/* 8012B768 001275A8 00 00 00 00 */ .4byte 0x00000000
/* 8012B76C 001275AC 00 00 00 00 */ .4byte 0x00000000
.global lbl_8012B770
lbl_8012B770:
/* 8012B770 001275B0 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 8012B774 001275B4 7C 08 02 A6 */ mflr r0
/* 8012B778 001275B8 90 01 00 34 */ stw r0, 0x34(r1)
/* 8012B77C 001275BC 39 61 00 30 */ addi r11, r1, 0x30
/* 8012B780 001275C0 4B ED BB BD */ bl lbl_8000733C
/* 8012B784 001275C4 3B E0 00 00 */ li r31, 0x0
/* 8012B788 001275C8 93 E1 00 08 */ stw r31, 0x8(r1)
/* 8012B78C 001275CC 3F C0 80 54 */ lis r30, lbl_805436A8@ha
.global lbl_8012B790
lbl_8012B790:
/* 8012B790 001275D0 80 7E 36 A8 */ lwz r3, lbl_805436A8@l(r30)
/* 8012B794 001275D4 38 81 00 08 */ addi r4, r1, 0x8
/* 8012B798 001275D8 38 A0 00 01 */ li r5, 0x1
/* 8012B79C 001275DC 3C 63 00 01 */ addis r3, r3, 0x1
/* 8012B7A0 001275E0 38 63 46 80 */ addi r3, r3, 0x4680
/* 8012B7A4 001275E4 4B EF 69 9D */ bl lbl_80022140
/* 8012B7A8 001275E8 80 01 00 08 */ lwz r0, 0x8(r1)
/* 8012B7AC 001275EC 28 00 00 01 */ cmplwi r0, 0x1
/* 8012B7B0 001275F0 40 82 01 DC */ bne lbl_8012B98C
/* 8012B7B4 001275F4 48 01 F9 7D */ bl lbl_8014B130
/* 8012B7B8 001275F8 48 01 E1 F9 */ bl lbl_801499B0
/* 8012B7BC 001275FC 48 01 D4 85 */ bl lbl_80148C40
/* 8012B7C0 00127600 80 7E 36 A8 */ lwz r3, 0x36a8(r30)
/* 8012B7C4 00127604 2C 03 00 00 */ cmpwi r3, 0x0
/* 8012B7C8 00127608 41 82 FF C8 */ beq lbl_8012B790
/* 8012B7CC 0012760C 3C 63 00 01 */ addis r3, r3, 0x1
/* 8012B7D0 00127610 83 63 43 34 */ lwz r27, 0x4334(r3)
/* 8012B7D4 00127614 48 00 00 CC */ b lbl_8012B8A0
.global lbl_8012B7D8
lbl_8012B7D8:
/* 8012B7D8 00127618 88 1B 2E 1C */ lbz r0, 0x2e1c(r27)
/* 8012B7DC 0012761C 83 9B 2E 20 */ lwz r28, 0x2e20(r27)
/* 8012B7E0 00127620 2C 00 00 00 */ cmpwi r0, 0x0
/* 8012B7E4 00127624 41 82 00 B8 */ beq lbl_8012B89C
/* 8012B7E8 00127628 7F 63 DB 78 */ mr r3, r27
/* 8012B7EC 0012762C 4B FD 4F F5 */ bl lbl_801007E0
/* 8012B7F0 00127630 2C 03 00 00 */ cmpwi r3, 0x0
/* 8012B7F4 00127634 40 82 00 A8 */ bne lbl_8012B89C
/* 8012B7F8 00127638 80 1B 04 18 */ lwz r0, 0x418(r27)
/* 8012B7FC 0012763C 2C 00 00 00 */ cmpwi r0, 0x0
/* 8012B800 00127640 40 82 00 9C */ bne lbl_8012B89C
/* 8012B804 00127644 80 1B 2E 28 */ lwz r0, 0x2e28(r27)
/* 8012B808 00127648 2C 00 00 04 */ cmpwi r0, 0x4
/* 8012B80C 0012764C 41 82 00 14 */ beq lbl_8012B820
/* 8012B810 00127650 2C 00 00 17 */ cmpwi r0, 0x17
/* 8012B814 00127654 41 82 00 0C */ beq lbl_8012B820
/* 8012B818 00127658 2C 00 00 19 */ cmpwi r0, 0x19
/* 8012B81C 0012765C 40 82 00 14 */ bne lbl_8012B830
.global lbl_8012B820
lbl_8012B820:
/* 8012B820 00127660 80 7E 36 A8 */ lwz r3, 0x36a8(r30)
/* 8012B824 00127664 3F A3 00 01 */ addis r29, r3, 0x1
/* 8012B828 00127668 3B BD 43 3C */ addi r29, r29, 0x433c
/* 8012B82C 0012766C 48 00 00 10 */ b lbl_8012B83C
.global lbl_8012B830
lbl_8012B830:
/* 8012B830 00127670 80 7E 36 A8 */ lwz r3, 0x36a8(r30)
/* 8012B834 00127674 3F A3 00 01 */ addis r29, r3, 0x1
/* 8012B838 00127678 3B BD 43 34 */ addi r29, r29, 0x4334
.global lbl_8012B83C
lbl_8012B83C:
/* 8012B83C 0012767C 7F 63 DB 78 */ mr r3, r27
/* 8012B840 00127680 38 80 00 00 */ li r4, 0x0
/* 8012B844 00127684 48 01 FE AD */ bl lbl_8014B6F0
/* 8012B848 00127688 7F 63 DB 78 */ mr r3, r27
/* 8012B84C 0012768C 48 01 FE 05 */ bl lbl_8014B650
/* 8012B850 00127690 9B FB 2E 1C */ stb r31, 0x2e1c(r27)
/* 8012B854 00127694 80 7B 2E 24 */ lwz r3, 0x2e24(r27)
/* 8012B858 00127698 2C 03 00 00 */ cmpwi r3, 0x0
/* 8012B85C 0012769C 40 82 00 10 */ bne lbl_8012B86C
/* 8012B860 001276A0 80 1B 2E 20 */ lwz r0, 0x2e20(r27)
/* 8012B864 001276A4 90 1D 00 00 */ stw r0, 0x0(r29)
/* 8012B868 001276A8 48 00 00 0C */ b lbl_8012B874
.global lbl_8012B86C
lbl_8012B86C:
/* 8012B86C 001276AC 80 1B 2E 20 */ lwz r0, 0x2e20(r27)
/* 8012B870 001276B0 90 03 2E 20 */ stw r0, 0x2e20(r3)
.global lbl_8012B874
lbl_8012B874:
/* 8012B874 001276B4 80 7B 2E 20 */ lwz r3, 0x2e20(r27)
/* 8012B878 001276B8 2C 03 00 00 */ cmpwi r3, 0x0
/* 8012B87C 001276BC 40 82 00 10 */ bne lbl_8012B88C
/* 8012B880 001276C0 80 1B 2E 24 */ lwz r0, 0x2e24(r27)
/* 8012B884 001276C4 90 1D 00 04 */ stw r0, 0x4(r29)
/* 8012B888 001276C8 48 00 00 0C */ b lbl_8012B894
.global lbl_8012B88C
lbl_8012B88C:
/* 8012B88C 001276CC 80 1B 2E 24 */ lwz r0, 0x2e24(r27)
/* 8012B890 001276D0 90 03 2E 24 */ stw r0, 0x2e24(r3)
.global lbl_8012B894
lbl_8012B894:
/* 8012B894 001276D4 93 FB 2E 20 */ stw r31, 0x2e20(r27)
/* 8012B898 001276D8 93 FB 2E 24 */ stw r31, 0x2e24(r27)
.global lbl_8012B89C
lbl_8012B89C:
/* 8012B89C 001276DC 7F 9B E3 78 */ mr r27, r28
.global lbl_8012B8A0
lbl_8012B8A0:
/* 8012B8A0 001276E0 2C 1B 00 00 */ cmpwi r27, 0x0
/* 8012B8A4 001276E4 40 82 FF 34 */ bne lbl_8012B7D8
/* 8012B8A8 001276E8 80 7E 36 A8 */ lwz r3, 0x36a8(r30)
/* 8012B8AC 001276EC 3C 63 00 01 */ addis r3, r3, 0x1
/* 8012B8B0 001276F0 83 A3 43 3C */ lwz r29, 0x433c(r3)
/* 8012B8B4 001276F4 48 00 00 CC */ b lbl_8012B980
.global lbl_8012B8B8
lbl_8012B8B8:
/* 8012B8B8 001276F8 88 1D 2E 1C */ lbz r0, 0x2e1c(r29)
/* 8012B8BC 001276FC 83 9D 2E 20 */ lwz r28, 0x2e20(r29)
/* 8012B8C0 00127700 2C 00 00 00 */ cmpwi r0, 0x0
/* 8012B8C4 00127704 41 82 00 B8 */ beq lbl_8012B97C
/* 8012B8C8 00127708 7F A3 EB 78 */ mr r3, r29
/* 8012B8CC 0012770C 4B FD 4F 15 */ bl lbl_801007E0
/* 8012B8D0 00127710 2C 03 00 00 */ cmpwi r3, 0x0
/* 8012B8D4 00127714 40 82 00 A8 */ bne lbl_8012B97C
/* 8012B8D8 00127718 80 1D 04 18 */ lwz r0, 0x418(r29)
/* 8012B8DC 0012771C 2C 00 00 00 */ cmpwi r0, 0x0
/* 8012B8E0 00127720 40 82 00 9C */ bne lbl_8012B97C
/* 8012B8E4 00127724 80 1D 2E 28 */ lwz r0, 0x2e28(r29)
/* 8012B8E8 00127728 2C 00 00 04 */ cmpwi r0, 0x4
/* 8012B8EC 0012772C 41 82 00 14 */ beq lbl_8012B900
/* 8012B8F0 00127730 2C 00 00 17 */ cmpwi r0, 0x17
/* 8012B8F4 00127734 41 82 00 0C */ beq lbl_8012B900
/* 8012B8F8 00127738 2C 00 00 19 */ cmpwi r0, 0x19
/* 8012B8FC 0012773C 40 82 00 14 */ bne lbl_8012B910
.global lbl_8012B900
lbl_8012B900:
/* 8012B900 00127740 80 7E 36 A8 */ lwz r3, 0x36a8(r30)
/* 8012B904 00127744 3F 63 00 01 */ addis r27, r3, 0x1
/* 8012B908 00127748 3B 7B 43 3C */ addi r27, r27, 0x433c
/* 8012B90C 0012774C 48 00 00 10 */ b lbl_8012B91C
.global lbl_8012B910
lbl_8012B910:
/* 8012B910 00127750 80 7E 36 A8 */ lwz r3, 0x36a8(r30)
/* 8012B914 00127754 3F 63 00 01 */ addis r27, r3, 0x1
/* 8012B918 00127758 3B 7B 43 34 */ addi r27, r27, 0x4334
.global lbl_8012B91C
lbl_8012B91C:
/* 8012B91C 0012775C 7F A3 EB 78 */ mr r3, r29
/* 8012B920 00127760 38 80 00 00 */ li r4, 0x0
/* 8012B924 00127764 48 01 FD CD */ bl lbl_8014B6F0
/* 8012B928 00127768 7F A3 EB 78 */ mr r3, r29
/* 8012B92C 0012776C 48 01 FD 25 */ bl lbl_8014B650
/* 8012B930 00127770 9B FD 2E 1C */ stb r31, 0x2e1c(r29)
/* 8012B934 00127774 80 7D 2E 24 */ lwz r3, 0x2e24(r29)
/* 8012B938 00127778 2C 03 00 00 */ cmpwi r3, 0x0
/* 8012B93C 0012777C 40 82 00 10 */ bne lbl_8012B94C
/* 8012B940 00127780 80 1D 2E 20 */ lwz r0, 0x2e20(r29)
/* 8012B944 00127784 90 1B 00 00 */ stw r0, 0x0(r27)
/* 8012B948 00127788 48 00 00 0C */ b lbl_8012B954
.global lbl_8012B94C
lbl_8012B94C:
/* 8012B94C 0012778C 80 1D 2E 20 */ lwz r0, 0x2e20(r29)
/* 8012B950 00127790 90 03 2E 20 */ stw r0, 0x2e20(r3)
.global lbl_8012B954
lbl_8012B954:
/* 8012B954 00127794 80 7D 2E 20 */ lwz r3, 0x2e20(r29)
/* 8012B958 00127798 2C 03 00 00 */ cmpwi r3, 0x0
/* 8012B95C 0012779C 40 82 00 10 */ bne lbl_8012B96C
/* 8012B960 001277A0 80 1D 2E 24 */ lwz r0, 0x2e24(r29)
/* 8012B964 001277A4 90 1B 00 04 */ stw r0, 0x4(r27)
/* 8012B968 001277A8 48 00 00 0C */ b lbl_8012B974
.global lbl_8012B96C
lbl_8012B96C:
/* 8012B96C 001277AC 80 1D 2E 24 */ lwz r0, 0x2e24(r29)
/* 8012B970 001277B0 90 03 2E 24 */ stw r0, 0x2e24(r3)
.global lbl_8012B974
lbl_8012B974:
/* 8012B974 001277B4 93 FD 2E 20 */ stw r31, 0x2e20(r29)
/* 8012B978 001277B8 93 FD 2E 24 */ stw r31, 0x2e24(r29)
.global lbl_8012B97C
lbl_8012B97C:
/* 8012B97C 001277BC 7F 9D E3 78 */ mr r29, r28
.global lbl_8012B980
lbl_8012B980:
/* 8012B980 001277C0 2C 1D 00 00 */ cmpwi r29, 0x0
/* 8012B984 001277C4 40 82 FF 34 */ bne lbl_8012B8B8
/* 8012B988 001277C8 4B FF FE 08 */ b lbl_8012B790
.global lbl_8012B98C
lbl_8012B98C:
/* 8012B98C 001277CC 28 00 00 08 */ cmplwi r0, 0x8
/* 8012B990 001277D0 40 82 FE 00 */ bne lbl_8012B790
/* 8012B994 001277D4 39 61 00 30 */ addi r11, r1, 0x30
/* 8012B998 001277D8 38 60 00 00 */ li r3, 0x0
/* 8012B99C 001277DC 4B ED B9 ED */ bl lbl_80007388
/* 8012B9A0 001277E0 80 01 00 34 */ lwz r0, 0x34(r1)
/* 8012B9A4 001277E4 7C 08 03 A6 */ mtlr r0
/* 8012B9A8 001277E8 38 21 00 30 */ addi r1, r1, 0x30
/* 8012B9AC 001277EC 4E 80 00 20 */ blr
.global lbl_8012B9B0
lbl_8012B9B0:
/* 8012B9B0 001277F0 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 8012B9B4 001277F4 7C 08 02 A6 */ mflr r0
/* 8012B9B8 001277F8 3C 80 80 54 */ lis r4, lbl_805436A8@ha
/* 8012B9BC 001277FC 90 01 00 34 */ stw r0, 0x34(r1)
/* 8012B9C0 00127800 54 60 10 3A */ slwi r0, r3, 2
/* 8012B9C4 00127804 38 A1 00 08 */ addi r5, r1, 0x8
/* 8012B9C8 00127808 93 E1 00 2C */ stw r31, 0x2c(r1)
/* 8012B9CC 0012780C 93 C1 00 28 */ stw r30, 0x28(r1)
/* 8012B9D0 00127810 93 A1 00 24 */ stw r29, 0x24(r1)
/* 8012B9D4 00127814 93 81 00 20 */ stw r28, 0x20(r1)
/* 8012B9D8 00127818 7C 7C 1B 78 */ mr r28, r3
/* 8012B9DC 0012781C 80 C4 36 A8 */ lwz r6, lbl_805436A8@l(r4)
/* 8012B9E0 00127820 3C 80 80 44 */ lis r4, lbl_80442FA8@ha
/* 8012B9E4 00127824 38 84 2F A8 */ addi r4, r4, lbl_80442FA8@l
/* 8012B9E8 00127828 3C 66 00 01 */ addis r3, r6, 0x1
/* 8012B9EC 0012782C 7C 84 00 2E */ lwzx r4, r4, r0
/* 8012B9F0 00127830 38 63 43 4C */ addi r3, r3, 0x434c
/* 8012B9F4 00127834 4B F2 24 1D */ bl lbl_8004DE10
/* 8012B9F8 00127838 2C 03 00 00 */ cmpwi r3, 0x0
/* 8012B9FC 0012783C 41 82 00 14 */ beq lbl_8012BA10
/* 8012BA00 00127840 38 61 00 08 */ addi r3, r1, 0x8
/* 8012BA04 00127844 4B F2 2B 5D */ bl lbl_8004E560
/* 8012BA08 00127848 7C 7E 1B 78 */ mr r30, r3
/* 8012BA0C 0012784C 48 00 00 08 */ b lbl_8012BA14
.global lbl_8012BA10
lbl_8012BA10:
/* 8012BA10 00127850 3B C0 00 00 */ li r30, 0x0
.global lbl_8012BA14
lbl_8012BA14:
/* 8012BA14 00127854 2C 1E 00 00 */ cmpwi r30, 0x0
/* 8012BA18 00127858 41 82 00 B4 */ beq lbl_8012BACC
/* 8012BA1C 0012785C 7F 83 E3 78 */ mr r3, r28
/* 8012BA20 00127860 4B FF FB 41 */ bl lbl_8012B560
/* 8012BA24 00127864 3F E0 80 54 */ lis r31, lbl_805436A8@ha
/* 8012BA28 00127868 7C 7D 1B 78 */ mr r29, r3
/* 8012BA2C 0012786C 80 BF 36 A8 */ lwz r5, lbl_805436A8@l(r31)
/* 8012BA30 00127870 7F C4 F3 78 */ mr r4, r30
/* 8012BA34 00127874 38 E0 00 00 */ li r7, 0x0
/* 8012BA38 00127878 3C C5 00 01 */ addis r6, r5, 0x1
/* 8012BA3C 0012787C 80 A6 46 B4 */ lwz r5, 0x46b4(r6)
/* 8012BA40 00127880 80 C6 46 B8 */ lwz r6, 0x46b8(r6)
/* 8012BA44 00127884 48 01 FB 7D */ bl lbl_8014B5C0
/* 8012BA48 00127888 7F A3 EB 78 */ mr r3, r29
/* 8012BA4C 0012788C 38 80 00 01 */ li r4, 0x1
/* 8012BA50 00127890 48 01 FC A1 */ bl lbl_8014B6F0
/* 8012BA54 00127894 2C 1C 00 04 */ cmpwi r28, 0x4
/* 8012BA58 00127898 93 9D 2E 28 */ stw r28, 0x2e28(r29)
/* 8012BA5C 0012789C 41 82 00 14 */ beq lbl_8012BA70
/* 8012BA60 001278A0 2C 1C 00 17 */ cmpwi r28, 0x17
/* 8012BA64 001278A4 41 82 00 0C */ beq lbl_8012BA70
/* 8012BA68 001278A8 2C 1C 00 19 */ cmpwi r28, 0x19
/* 8012BA6C 001278AC 40 82 00 18 */ bne lbl_8012BA84
.global lbl_8012BA70
lbl_8012BA70:
/* 8012BA70 001278B0 3C 60 80 54 */ lis r3, lbl_805436A8@ha
/* 8012BA74 001278B4 80 63 36 A8 */ lwz r3, lbl_805436A8@l(r3)
/* 8012BA78 001278B8 3C 83 00 01 */ addis r4, r3, 0x1
/* 8012BA7C 001278BC 38 84 43 3C */ addi r4, r4, 0x433c
/* 8012BA80 001278C0 48 00 00 10 */ b lbl_8012BA90
.global lbl_8012BA84
lbl_8012BA84:
/* 8012BA84 001278C4 80 7F 36 A8 */ lwz r3, 0x36a8(r31)
/* 8012BA88 001278C8 3C 83 00 01 */ addis r4, r3, 0x1
/* 8012BA8C 001278CC 38 84 43 34 */ addi r4, r4, 0x4334
.global lbl_8012BA90
lbl_8012BA90:
/* 8012BA90 001278D0 80 64 00 04 */ lwz r3, 0x4(r4)
/* 8012BA94 001278D4 2C 03 00 00 */ cmpwi r3, 0x0
/* 8012BA98 001278D8 40 82 00 1C */ bne lbl_8012BAB4
/* 8012BA9C 001278DC 93 A4 00 00 */ stw r29, 0x0(r4)
/* 8012BAA0 001278E0 38 00 00 00 */ li r0, 0x0
/* 8012BAA4 001278E4 93 A4 00 04 */ stw r29, 0x4(r4)
/* 8012BAA8 001278E8 90 1D 2E 20 */ stw r0, 0x2e20(r29)
/* 8012BAAC 001278EC 90 1D 2E 24 */ stw r0, 0x2e24(r29)
/* 8012BAB0 001278F0 48 00 00 1C */ b lbl_8012BACC
.global lbl_8012BAB4
lbl_8012BAB4:
/* 8012BAB4 001278F4 93 A3 2E 20 */ stw r29, 0x2e20(r3)
/* 8012BAB8 001278F8 38 00 00 00 */ li r0, 0x0
/* 8012BABC 001278FC 80 64 00 04 */ lwz r3, 0x4(r4)
/* 8012BAC0 00127900 90 7D 2E 24 */ stw r3, 0x2e24(r29)
/* 8012BAC4 00127904 90 1D 2E 20 */ stw r0, 0x2e20(r29)
/* 8012BAC8 00127908 93 A4 00 04 */ stw r29, 0x4(r4)
.global lbl_8012BACC
lbl_8012BACC:
/* 8012BACC 0012790C 80 01 00 34 */ lwz r0, 0x34(r1)
/* 8012BAD0 00127910 83 E1 00 2C */ lwz r31, 0x2c(r1)
/* 8012BAD4 00127914 83 C1 00 28 */ lwz r30, 0x28(r1)
/* 8012BAD8 00127918 83 A1 00 24 */ lwz r29, 0x24(r1)
/* 8012BADC 0012791C 83 81 00 20 */ lwz r28, 0x20(r1)
/* 8012BAE0 00127920 7C 08 03 A6 */ mtlr r0
/* 8012BAE4 00127924 38 21 00 30 */ addi r1, r1, 0x30
/* 8012BAE8 00127928 4E 80 00 20 */ blr
/* 8012BAEC 0012792C 00 00 00 00 */ .4byte 0x00000000
.global lbl_8012BAF0
lbl_8012BAF0:
/* 8012BAF0 00127930 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 8012BAF4 00127934 7C 08 02 A6 */ mflr r0
/* 8012BAF8 00127938 3C C0 00 02 */ lis r6, 0x2
/* 8012BAFC 0012793C 90 01 00 34 */ stw r0, 0x34(r1)
/* 8012BB00 00127940 38 06 87 00 */ addi r0, r6, -0x7900
/* 8012BB04 00127944 7C 05 00 40 */ cmplw r5, r0
/* 8012BB08 00127948 93 E1 00 2C */ stw r31, 0x2c(r1)
/* 8012BB0C 0012794C 7C BF 2B 78 */ mr r31, r5
/* 8012BB10 00127950 93 C1 00 28 */ stw r30, 0x28(r1)
/* 8012BB14 00127954 7C 9E 23 78 */ mr r30, r4
/* 8012BB18 00127958 93 A1 00 24 */ stw r29, 0x24(r1)
/* 8012BB1C 0012795C 7C 7D 1B 78 */ mr r29, r3
/* 8012BB20 00127960 41 80 01 A8 */ blt lbl_8012BCC8
/* 8012BB24 00127964 4B F1 6E 6D */ bl lbl_80042990
/* 8012BB28 00127968 2C 03 00 00 */ cmpwi r3, 0x0
/* 8012BB2C 0012796C 40 82 00 10 */ bne lbl_8012BB3C
/* 8012BB30 00127970 38 60 00 00 */ li r3, 0x0
/* 8012BB34 00127974 4B F1 6E 6D */ bl lbl_800429A0
/* 8012BB38 00127978 4B F1 72 D9 */ bl lbl_80042E10
.global lbl_8012BB3C
lbl_8012BB3C:
/* 8012BB3C 0012797C 48 01 C4 15 */ bl lbl_80147F50
/* 8012BB40 00127980 48 01 DD 71 */ bl lbl_801498B0
/* 8012BB44 00127984 48 01 F5 9D */ bl lbl_8014B0E0
/* 8012BB48 00127988 3C 9E 00 01 */ addis r4, r30, 0x1
/* 8012BB4C 0012798C 38 BE 5C 58 */ addi r5, r30, 0x5c58
/* 8012BB50 00127990 38 C0 00 00 */ li r6, 0x0
/* 8012BB54 00127994 98 DE 2E 1C */ stb r6, 0x2e1c(r30)
/* 8012BB58 00127998 38 04 47 00 */ addi r0, r4, 0x4700
/* 8012BB5C 0012799C 7F A3 EB 78 */ mr r3, r29
/* 8012BB60 001279A0 90 DE 2E 20 */ stw r6, 0x2e20(r30)
/* 8012BB64 001279A4 90 DE 2E 24 */ stw r6, 0x2e24(r30)
/* 8012BB68 001279A8 98 DE 5C 48 */ stb r6, 0x5c48(r30)
/* 8012BB6C 001279AC 90 DE 5C 4C */ stw r6, 0x5c4c(r30)
/* 8012BB70 001279B0 90 DE 5C 50 */ stw r6, 0x5c50(r30)
/* 8012BB74 001279B4 98 C5 2E 1C */ stb r6, 0x2e1c(r5)
/* 8012BB78 001279B8 90 C5 2E 20 */ stw r6, 0x2e20(r5)
/* 8012BB7C 001279BC 90 C5 2E 24 */ stw r6, 0x2e24(r5)
/* 8012BB80 001279C0 98 C4 B8 A0 */ stb r6, -0x4760(r4)
/* 8012BB84 001279C4 90 C4 B8 A4 */ stw r6, -0x475c(r4)
/* 8012BB88 001279C8 90 C4 B8 A8 */ stw r6, -0x4758(r4)
/* 8012BB8C 001279CC 98 C4 E6 CC */ stb r6, -0x1934(r4)
/* 8012BB90 001279D0 90 C4 E6 D0 */ stw r6, -0x1930(r4)
/* 8012BB94 001279D4 90 C4 E6 D4 */ stw r6, -0x192c(r4)
/* 8012BB98 001279D8 98 C4 14 F8 */ stb r6, 0x14f8(r4)
/* 8012BB9C 001279DC 90 C4 14 FC */ stw r6, 0x14fc(r4)
/* 8012BBA0 001279E0 90 C4 15 00 */ stw r6, 0x1500(r4)
/* 8012BBA4 001279E4 98 C4 43 24 */ stb r6, 0x4324(r4)
/* 8012BBA8 001279E8 90 C4 43 28 */ stw r6, 0x4328(r4)
/* 8012BBAC 001279EC 90 C4 43 2C */ stw r6, 0x432c(r4)
/* 8012BBB0 001279F0 90 C4 46 B4 */ stw r6, 0x46b4(r4)
/* 8012BBB4 001279F4 90 C4 46 B8 */ stw r6, 0x46b8(r4)
/* 8012BBB8 001279F8 90 04 46 B0 */ stw r0, 0x46b0(r4)
/* 8012BBBC 001279FC 90 C4 43 34 */ stw r6, 0x4334(r4)
/* 8012BBC0 00127A00 90 C4 43 38 */ stw r6, 0x4338(r4)
/* 8012BBC4 00127A04 90 C4 43 3C */ stw r6, 0x433c(r4)
/* 8012BBC8 00127A08 90 C4 43 40 */ stw r6, 0x4340(r4)
/* 8012BBCC 00127A0C 90 C4 43 48 */ stw r6, 0x4348(r4)
/* 8012BBD0 00127A10 38 84 43 4C */ addi r4, r4, 0x434c
/* 8012BBD4 00127A14 4B F2 21 9D */ bl lbl_8004DD70
/* 8012BBD8 00127A18 2C 03 00 00 */ cmpwi r3, 0x0
/* 8012BBDC 00127A1C 41 82 00 EC */ beq lbl_8012BCC8
/* 8012BBE0 00127A20 3C 7E 00 01 */ addis r3, r30, 0x1
/* 8012BBE4 00127A24 3C 80 80 41 */ lis r4, lbl_8040DE08@ha
/* 8012BBE8 00127A28 38 84 DE 08 */ addi r4, r4, lbl_8040DE08@l
/* 8012BBEC 00127A2C 38 A1 00 14 */ addi r5, r1, 0x14
/* 8012BBF0 00127A30 38 63 43 4C */ addi r3, r3, 0x434c
/* 8012BBF4 00127A34 4B F2 22 1D */ bl lbl_8004DE10
/* 8012BBF8 00127A38 2C 03 00 00 */ cmpwi r3, 0x0
/* 8012BBFC 00127A3C 41 82 00 CC */ beq lbl_8012BCC8
/* 8012BC00 00127A40 38 61 00 14 */ addi r3, r1, 0x14
/* 8012BC04 00127A44 4B F2 29 5D */ bl lbl_8004E560
/* 8012BC08 00127A48 3C BE 00 01 */ addis r5, r30, 0x1
/* 8012BC0C 00127A4C 3C 80 80 41 */ lis r4, lbl_8040DE1C@ha
/* 8012BC10 00127A50 90 65 46 B4 */ stw r3, 0x46b4(r5)
/* 8012BC14 00127A54 7C A3 2B 78 */ mr r3, r5
/* 8012BC18 00127A58 38 84 DE 1C */ addi r4, r4, lbl_8040DE1C@l
/* 8012BC1C 00127A5C 38 A1 00 08 */ addi r5, r1, 0x8
/* 8012BC20 00127A60 38 63 43 4C */ addi r3, r3, 0x434c
/* 8012BC24 00127A64 4B F2 21 ED */ bl lbl_8004DE10
/* 8012BC28 00127A68 2C 03 00 00 */ cmpwi r3, 0x0
/* 8012BC2C 00127A6C 41 82 00 9C */ beq lbl_8012BCC8
/* 8012BC30 00127A70 38 61 00 08 */ addi r3, r1, 0x8
/* 8012BC34 00127A74 4B F2 29 2D */ bl lbl_8004E560
/* 8012BC38 00127A78 3C 9E 00 01 */ addis r4, r30, 0x1
/* 8012BC3C 00127A7C 38 A0 00 04 */ li r5, 0x4
/* 8012BC40 00127A80 90 64 46 B8 */ stw r3, 0x46b8(r4)
/* 8012BC44 00127A84 7C 83 23 78 */ mr r3, r4
/* 8012BC48 00127A88 38 63 46 80 */ addi r3, r3, 0x4680
/* 8012BC4C 00127A8C 38 84 46 A0 */ addi r4, r4, 0x46a0
/* 8012BC50 00127A90 4B EF 63 C1 */ bl lbl_80022010
/* 8012BC54 00127A94 3C 7E 00 01 */ addis r3, r30, 0x1
/* 8012BC58 00127A98 3C FF FF FF */ addis r7, r31, 0xffff
/* 8012BC5C 00127A9C 80 03 46 B0 */ lwz r0, 0x46b0(r3)
/* 8012BC60 00127AA0 38 C7 B9 00 */ addi r6, r7, -0x4700
/* 8012BC64 00127AA4 3C 80 80 13 */ lis r4, lbl_8012B770@ha
/* 8012BC68 00127AA8 38 A0 00 00 */ li r5, 0x0
/* 8012BC6C 00127AAC 38 84 B7 70 */ addi r4, r4, lbl_8012B770@l
/* 8012BC70 00127AB0 7C C0 32 14 */ add r6, r0, r6
/* 8012BC74 00127AB4 39 00 00 04 */ li r8, 0x4
/* 8012BC78 00127AB8 39 20 00 00 */ li r9, 0x0
/* 8012BC7C 00127ABC 38 63 43 68 */ addi r3, r3, 0x4368
/* 8012BC80 00127AC0 38 E7 B9 00 */ addi r7, r7, -0x4700
/* 8012BC84 00127AC4 4B EF 90 CD */ bl lbl_80024D50
/* 8012BC88 00127AC8 2C 03 00 00 */ cmpwi r3, 0x0
/* 8012BC8C 00127ACC 41 82 00 3C */ beq lbl_8012BCC8
/* 8012BC90 00127AD0 3C 80 80 54 */ lis r4, lbl_805436A8@ha
/* 8012BC94 00127AD4 3C 7E 00 01 */ addis r3, r30, 0x1
/* 8012BC98 00127AD8 93 C4 36 A8 */ stw r30, lbl_805436A8@l(r4)
/* 8012BC9C 00127ADC 38 63 43 68 */ addi r3, r3, 0x4368
/* 8012BCA0 00127AE0 4B EF 97 41 */ bl lbl_800253E0
/* 8012BCA4 00127AE4 4B EF 5B 7D */ bl lbl_80021820
/* 8012BCA8 00127AE8 3C 80 80 13 */ lis r4, lbl_8012B700@ha
/* 8012BCAC 00127AEC 7C 7F 1B 78 */ mr r31, r3
/* 8012BCB0 00127AF0 38 64 B7 00 */ addi r3, r4, lbl_8012B700@l
/* 8012BCB4 00127AF4 4B F1 90 CD */ bl lbl_80044D80
/* 8012BCB8 00127AF8 3C 9E 00 01 */ addis r4, r30, 0x1
/* 8012BCBC 00127AFC 90 64 43 48 */ stw r3, 0x4348(r4)
/* 8012BCC0 00127B00 7F E3 FB 78 */ mr r3, r31
/* 8012BCC4 00127B04 4B EF 5B 9D */ bl lbl_80021860
.global lbl_8012BCC8
lbl_8012BCC8:
/* 8012BCC8 00127B08 80 01 00 34 */ lwz r0, 0x34(r1)
/* 8012BCCC 00127B0C 83 E1 00 2C */ lwz r31, 0x2c(r1)
/* 8012BCD0 00127B10 83 C1 00 28 */ lwz r30, 0x28(r1)
/* 8012BCD4 00127B14 83 A1 00 24 */ lwz r29, 0x24(r1)
/* 8012BCD8 00127B18 7C 08 03 A6 */ mtlr r0
/* 8012BCDC 00127B1C 38 21 00 30 */ addi r1, r1, 0x30
/* 8012BCE0 00127B20 4E 80 00 20 */ blr
/* 8012BCE4 00127B24 00 00 00 00 */ .4byte 0x00000000
/* 8012BCE8 00127B28 00 00 00 00 */ .4byte 0x00000000
/* 8012BCEC 00127B2C 00 00 00 00 */ .4byte 0x00000000
.global lbl_8012BCF0
lbl_8012BCF0:
/* 8012BCF0 00127B30 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 8012BCF4 00127B34 7C 08 02 A6 */ mflr r0
/* 8012BCF8 00127B38 90 01 00 14 */ stw r0, 0x14(r1)
/* 8012BCFC 00127B3C 93 E1 00 0C */ stw r31, 0xc(r1)
/* 8012BD00 00127B40 3F E0 80 54 */ lis r31, lbl_805436A8@ha
/* 8012BD04 00127B44 80 1F 36 A8 */ lwz r0, lbl_805436A8@l(r31)
/* 8012BD08 00127B48 2C 00 00 00 */ cmpwi r0, 0x0
/* 8012BD0C 00127B4C 41 82 00 58 */ beq lbl_8012BD64
/* 8012BD10 00127B50 48 00 00 71 */ bl lbl_8012BD80
/* 8012BD14 00127B54 80 7F 36 A8 */ lwz r3, 0x36a8(r31)
/* 8012BD18 00127B58 3C 63 00 01 */ addis r3, r3, 0x1
/* 8012BD1C 00127B5C 80 63 43 48 */ lwz r3, 0x4348(r3)
/* 8012BD20 00127B60 4B F1 90 61 */ bl lbl_80044D80
/* 8012BD24 00127B64 80 7F 36 A8 */ lwz r3, 0x36a8(r31)
/* 8012BD28 00127B68 38 80 00 08 */ li r4, 0x8
/* 8012BD2C 00127B6C 38 A0 00 01 */ li r5, 0x1
/* 8012BD30 00127B70 3C 63 00 01 */ addis r3, r3, 0x1
/* 8012BD34 00127B74 38 63 46 80 */ addi r3, r3, 0x4680
/* 8012BD38 00127B78 4B EF 64 E9 */ bl lbl_80022220
/* 8012BD3C 00127B7C 80 7F 36 A8 */ lwz r3, 0x36a8(r31)
/* 8012BD40 00127B80 38 80 00 00 */ li r4, 0x0
/* 8012BD44 00127B84 3C 63 00 01 */ addis r3, r3, 0x1
/* 8012BD48 00127B88 38 63 43 68 */ addi r3, r3, 0x4368
/* 8012BD4C 00127B8C 4B EF 95 45 */ bl lbl_80025290
/* 8012BD50 00127B90 48 01 F3 C1 */ bl lbl_8014B110
/* 8012BD54 00127B94 48 01 DC 3D */ bl lbl_80149990
/* 8012BD58 00127B98 48 01 C3 F9 */ bl lbl_80148150
/* 8012BD5C 00127B9C 38 00 00 00 */ li r0, 0x0
/* 8012BD60 00127BA0 90 1F 36 A8 */ stw r0, 0x36a8(r31)
.global lbl_8012BD64
lbl_8012BD64:
/* 8012BD64 00127BA4 80 01 00 14 */ lwz r0, 0x14(r1)
/* 8012BD68 00127BA8 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 8012BD6C 00127BAC 7C 08 03 A6 */ mtlr r0
/* 8012BD70 00127BB0 38 21 00 10 */ addi r1, r1, 0x10
/* 8012BD74 00127BB4 4E 80 00 20 */ blr
/* 8012BD78 00127BB8 00 00 00 00 */ .4byte 0x00000000
/* 8012BD7C 00127BBC 00 00 00 00 */ .4byte 0x00000000
.global lbl_8012BD80
lbl_8012BD80:
/* 8012BD80 00127BC0 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 8012BD84 00127BC4 7C 08 02 A6 */ mflr r0
/* 8012BD88 00127BC8 90 01 00 24 */ stw r0, 0x24(r1)
/* 8012BD8C 00127BCC 39 61 00 20 */ addi r11, r1, 0x20
/* 8012BD90 00127BD0 4B ED B5 A9 */ bl lbl_80007338
/* 8012BD94 00127BD4 3F E0 80 54 */ lis r31, lbl_805436A8@ha
/* 8012BD98 00127BD8 80 1F 36 A8 */ lwz r0, lbl_805436A8@l(r31)
/* 8012BD9C 00127BDC 2C 00 00 00 */ cmpwi r0, 0x0
/* 8012BDA0 00127BE0 41 82 01 8C */ beq lbl_8012BF2C
/* 8012BDA4 00127BE4 3B 60 00 00 */ li r27, 0x0
/* 8012BDA8 00127BE8 3B 80 00 00 */ li r28, 0x0
/* 8012BDAC 00127BEC 3B C0 00 00 */ li r30, 0x0
.global lbl_8012BDB0
lbl_8012BDB0:
/* 8012BDB0 00127BF0 80 7F 36 A8 */ lwz r3, 0x36a8(r31)
/* 8012BDB4 00127BF4 7F 43 E2 14 */ add r26, r3, r28
/* 8012BDB8 00127BF8 88 1A 2E 1C */ lbz r0, 0x2e1c(r26)
/* 8012BDBC 00127BFC 2C 00 00 00 */ cmpwi r0, 0x0
/* 8012BDC0 00127C00 41 82 00 94 */ beq lbl_8012BE54
/* 8012BDC4 00127C04 80 1A 2E 28 */ lwz r0, 0x2e28(r26)
/* 8012BDC8 00127C08 2C 00 00 04 */ cmpwi r0, 0x4
/* 8012BDCC 00127C0C 41 82 00 14 */ beq lbl_8012BDE0
/* 8012BDD0 00127C10 2C 00 00 17 */ cmpwi r0, 0x17
/* 8012BDD4 00127C14 41 82 00 0C */ beq lbl_8012BDE0
/* 8012BDD8 00127C18 2C 00 00 19 */ cmpwi r0, 0x19
/* 8012BDDC 00127C1C 40 82 00 10 */ bne lbl_8012BDEC
.global lbl_8012BDE0
lbl_8012BDE0:
/* 8012BDE0 00127C20 3F A3 00 01 */ addis r29, r3, 0x1
/* 8012BDE4 00127C24 3B BD 43 3C */ addi r29, r29, 0x433c
/* 8012BDE8 00127C28 48 00 00 0C */ b lbl_8012BDF4
.global lbl_8012BDEC
lbl_8012BDEC:
/* 8012BDEC 00127C2C 3F A3 00 01 */ addis r29, r3, 0x1
/* 8012BDF0 00127C30 3B BD 43 34 */ addi r29, r29, 0x4334
.global lbl_8012BDF4
lbl_8012BDF4:
/* 8012BDF4 00127C34 7F 43 D3 78 */ mr r3, r26
/* 8012BDF8 00127C38 38 80 00 00 */ li r4, 0x0
/* 8012BDFC 00127C3C 48 01 F8 F5 */ bl lbl_8014B6F0
/* 8012BE00 00127C40 7F 43 D3 78 */ mr r3, r26
/* 8012BE04 00127C44 48 01 F8 4D */ bl lbl_8014B650
/* 8012BE08 00127C48 9B DA 2E 1C */ stb r30, 0x2e1c(r26)
/* 8012BE0C 00127C4C 80 7A 2E 24 */ lwz r3, 0x2e24(r26)
/* 8012BE10 00127C50 2C 03 00 00 */ cmpwi r3, 0x0
/* 8012BE14 00127C54 40 82 00 10 */ bne lbl_8012BE24
/* 8012BE18 00127C58 80 1A 2E 20 */ lwz r0, 0x2e20(r26)
/* 8012BE1C 00127C5C 90 1D 00 00 */ stw r0, 0x0(r29)
/* 8012BE20 00127C60 48 00 00 0C */ b lbl_8012BE2C
.global lbl_8012BE24
lbl_8012BE24:
/* 8012BE24 00127C64 80 1A 2E 20 */ lwz r0, 0x2e20(r26)
/* 8012BE28 00127C68 90 03 2E 20 */ stw r0, 0x2e20(r3)
.global lbl_8012BE2C
lbl_8012BE2C:
/* 8012BE2C 00127C6C 80 7A 2E 20 */ lwz r3, 0x2e20(r26)
/* 8012BE30 00127C70 2C 03 00 00 */ cmpwi r3, 0x0
/* 8012BE34 00127C74 40 82 00 10 */ bne lbl_8012BE44
/* 8012BE38 00127C78 80 1A 2E 24 */ lwz r0, 0x2e24(r26)
/* 8012BE3C 00127C7C 90 1D 00 04 */ stw r0, 0x4(r29)
/* 8012BE40 00127C80 48 00 00 0C */ b lbl_8012BE4C
.global lbl_8012BE44
lbl_8012BE44:
/* 8012BE44 00127C84 80 1A 2E 24 */ lwz r0, 0x2e24(r26)
/* 8012BE48 00127C88 90 03 2E 24 */ stw r0, 0x2e24(r3)
.global lbl_8012BE4C
lbl_8012BE4C:
/* 8012BE4C 00127C8C 93 DA 2E 20 */ stw r30, 0x2e20(r26)
/* 8012BE50 00127C90 93 DA 2E 24 */ stw r30, 0x2e24(r26)
.global lbl_8012BE54
lbl_8012BE54:
/* 8012BE54 00127C94 3B 7B 00 01 */ addi r27, r27, 0x1
/* 8012BE58 00127C98 3B 9C 2E 2C */ addi r28, r28, 0x2e2c
/* 8012BE5C 00127C9C 2C 1B 00 04 */ cmpwi r27, 0x4
/* 8012BE60 00127CA0 41 80 FF 50 */ blt lbl_8012BDB0
/* 8012BE64 00127CA4 3B 40 00 00 */ li r26, 0x0
/* 8012BE68 00127CA8 3B 80 00 00 */ li r28, 0x0
/* 8012BE6C 00127CAC 3B E0 00 00 */ li r31, 0x0
/* 8012BE70 00127CB0 3F C0 80 54 */ lis r30, lbl_805436A8@ha
.global lbl_8012BE74
lbl_8012BE74:
/* 8012BE74 00127CB4 80 BE 36 A8 */ lwz r5, lbl_805436A8@l(r30)
/* 8012BE78 00127CB8 3C 85 00 01 */ addis r4, r5, 0x1
/* 8012BE7C 00127CBC 7C 64 E2 14 */ add r3, r4, r28
/* 8012BE80 00127CC0 88 03 E6 CC */ lbz r0, -0x1934(r3)
/* 8012BE84 00127CC4 3B 63 B8 B0 */ addi r27, r3, -0x4750
/* 8012BE88 00127CC8 2C 00 00 00 */ cmpwi r0, 0x0
/* 8012BE8C 00127CCC 41 82 00 90 */ beq lbl_8012BF1C
/* 8012BE90 00127CD0 80 1B 2E 28 */ lwz r0, 0x2e28(r27)
/* 8012BE94 00127CD4 2C 00 00 04 */ cmpwi r0, 0x4
/* 8012BE98 00127CD8 41 82 00 14 */ beq lbl_8012BEAC
/* 8012BE9C 00127CDC 2C 00 00 17 */ cmpwi r0, 0x17
/* 8012BEA0 00127CE0 41 82 00 0C */ beq lbl_8012BEAC
/* 8012BEA4 00127CE4 2C 00 00 19 */ cmpwi r0, 0x19
/* 8012BEA8 00127CE8 40 82 00 10 */ bne lbl_8012BEB8
.global lbl_8012BEAC
lbl_8012BEAC:
/* 8012BEAC 00127CEC 3F A5 00 01 */ addis r29, r5, 0x1
/* 8012BEB0 00127CF0 3B BD 43 3C */ addi r29, r29, 0x433c
/* 8012BEB4 00127CF4 48 00 00 08 */ b lbl_8012BEBC
.global lbl_8012BEB8
lbl_8012BEB8:
/* 8012BEB8 00127CF8 3B A4 43 34 */ addi r29, r4, 0x4334
.global lbl_8012BEBC
lbl_8012BEBC:
/* 8012BEBC 00127CFC 7F 63 DB 78 */ mr r3, r27
/* 8012BEC0 00127D00 38 80 00 00 */ li r4, 0x0
/* 8012BEC4 00127D04 48 01 F8 2D */ bl lbl_8014B6F0
/* 8012BEC8 00127D08 7F 63 DB 78 */ mr r3, r27
/* 8012BECC 00127D0C 48 01 F7 85 */ bl lbl_8014B650
/* 8012BED0 00127D10 9B FB 2E 1C */ stb r31, 0x2e1c(r27)
/* 8012BED4 00127D14 80 7B 2E 24 */ lwz r3, 0x2e24(r27)
/* 8012BED8 00127D18 2C 03 00 00 */ cmpwi r3, 0x0
/* 8012BEDC 00127D1C 40 82 00 10 */ bne lbl_8012BEEC
/* 8012BEE0 00127D20 80 1B 2E 20 */ lwz r0, 0x2e20(r27)
/* 8012BEE4 00127D24 90 1D 00 00 */ stw r0, 0x0(r29)
/* 8012BEE8 00127D28 48 00 00 0C */ b lbl_8012BEF4
.global lbl_8012BEEC
lbl_8012BEEC:
/* 8012BEEC 00127D2C 80 1B 2E 20 */ lwz r0, 0x2e20(r27)
/* 8012BEF0 00127D30 90 03 2E 20 */ stw r0, 0x2e20(r3)
.global lbl_8012BEF4
lbl_8012BEF4:
/* 8012BEF4 00127D34 80 7B 2E 20 */ lwz r3, 0x2e20(r27)
/* 8012BEF8 00127D38 2C 03 00 00 */ cmpwi r3, 0x0
/* 8012BEFC 00127D3C 40 82 00 10 */ bne lbl_8012BF0C
/* 8012BF00 00127D40 80 1B 2E 24 */ lwz r0, 0x2e24(r27)
/* 8012BF04 00127D44 90 1D 00 04 */ stw r0, 0x4(r29)
/* 8012BF08 00127D48 48 00 00 0C */ b lbl_8012BF14
.global lbl_8012BF0C
lbl_8012BF0C:
/* 8012BF0C 00127D4C 80 1B 2E 24 */ lwz r0, 0x2e24(r27)
/* 8012BF10 00127D50 90 03 2E 24 */ stw r0, 0x2e24(r3)
.global lbl_8012BF14
lbl_8012BF14:
/* 8012BF14 00127D54 93 FB 2E 20 */ stw r31, 0x2e20(r27)
/* 8012BF18 00127D58 93 FB 2E 24 */ stw r31, 0x2e24(r27)
.global lbl_8012BF1C
lbl_8012BF1C:
/* 8012BF1C 00127D5C 3B 5A 00 01 */ addi r26, r26, 0x1
/* 8012BF20 00127D60 3B 9C 2E 2C */ addi r28, r28, 0x2e2c
/* 8012BF24 00127D64 2C 1A 00 03 */ cmpwi r26, 0x3
/* 8012BF28 00127D68 41 80 FF 4C */ blt lbl_8012BE74
.global lbl_8012BF2C
lbl_8012BF2C:
/* 8012BF2C 00127D6C 39 61 00 20 */ addi r11, r1, 0x20
/* 8012BF30 00127D70 4B ED B4 55 */ bl lbl_80007384
/* 8012BF34 00127D74 80 01 00 24 */ lwz r0, 0x24(r1)
/* 8012BF38 00127D78 7C 08 03 A6 */ mtlr r0
/* 8012BF3C 00127D7C 38 21 00 20 */ addi r1, r1, 0x20
/* 8012BF40 00127D80 4E 80 00 20 */ blr
/* 8012BF44 00127D84 00 00 00 00 */ .4byte 0x00000000
/* 8012BF48 00127D88 00 00 00 00 */ .4byte 0x00000000
/* 8012BF4C 00127D8C 00 00 00 00 */ .4byte 0x00000000
.global lbl_8012BF50
lbl_8012BF50:
/* 8012BF50 00127D90 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 8012BF54 00127D94 7C 08 02 A6 */ mflr r0
/* 8012BF58 00127D98 3C 60 80 54 */ lis r3, lbl_805436A8@ha
/* 8012BF5C 00127D9C 90 01 00 24 */ stw r0, 0x24(r1)
/* 8012BF60 00127DA0 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 8012BF64 00127DA4 3F E0 80 41 */ lis r31, lbl_8040DE08@ha
/* 8012BF68 00127DA8 3B FF DE 08 */ addi r31, r31, lbl_8040DE08@l
/* 8012BF6C 00127DAC 93 C1 00 18 */ stw r30, 0x18(r1)
/* 8012BF70 00127DB0 93 A1 00 14 */ stw r29, 0x14(r1)
/* 8012BF74 00127DB4 93 81 00 10 */ stw r28, 0x10(r1)
/* 8012BF78 00127DB8 80 03 36 A8 */ lwz r0, lbl_805436A8@l(r3)
/* 8012BF7C 00127DBC 2C 00 00 00 */ cmpwi r0, 0x0
/* 8012BF80 00127DC0 41 82 00 D0 */ beq lbl_8012C050
/* 8012BF84 00127DC4 C0 1F 00 28 */ lfs f0, 0x28(r31)
/* 8012BF88 00127DC8 FC 01 00 40 */ fcmpo cr0, f1, f0
/* 8012BF8C 00127DCC 4C 40 13 82 */ cror eq, lt, eq
/* 8012BF90 00127DD0 40 82 00 0C */ bne lbl_8012BF9C
/* 8012BF94 00127DD4 3B A0 FC 78 */ li r29, -0x388
/* 8012BF98 00127DD8 48 00 00 28 */ b lbl_8012BFC0
.global lbl_8012BF9C
lbl_8012BF9C:
/* 8012BF9C 00127DDC 4B EE 85 FD */ bl lbl_80014598
/* 8012BFA0 00127DE0 FC 40 08 18 */ frsp f2, f1
/* 8012BFA4 00127DE4 C0 3F 00 30 */ lfs f1, 0x30(r31)
/* 8012BFA8 00127DE8 C0 1F 00 2C */ lfs f0, 0x2c(r31)
/* 8012BFAC 00127DEC EC 21 00 B2 */ fmuls f1, f1, f2
/* 8012BFB0 00127DF0 EC 00 00 72 */ fmuls f0, f0, f1
/* 8012BFB4 00127DF4 FC 00 00 1E */ fctiwz f0, f0
/* 8012BFB8 00127DF8 D8 01 00 08 */ stfd f0, 0x8(r1)
/* 8012BFBC 00127DFC 83 A1 00 0C */ lwz r29, 0xc(r1)
.global lbl_8012BFC0
lbl_8012BFC0:
/* 8012BFC0 00127E00 2C 1D 00 3C */ cmpwi r29, 0x3c
/* 8012BFC4 00127E04 40 81 00 08 */ ble lbl_8012BFCC
/* 8012BFC8 00127E08 3B A0 00 3C */ li r29, 0x3c
.global lbl_8012BFCC
lbl_8012BFCC:
/* 8012BFCC 00127E0C 2C 1D FC 78 */ cmpwi r29, -0x388
/* 8012BFD0 00127E10 40 80 00 08 */ bge lbl_8012BFD8
/* 8012BFD4 00127E14 3B A0 FC 78 */ li r29, -0x388
.global lbl_8012BFD8
lbl_8012BFD8:
/* 8012BFD8 00127E18 3B 80 00 00 */ li r28, 0x0
/* 8012BFDC 00127E1C 3B C0 00 00 */ li r30, 0x0
/* 8012BFE0 00127E20 3F E0 80 54 */ lis r31, lbl_805436A8@ha
.global lbl_8012BFE4
lbl_8012BFE4:
/* 8012BFE4 00127E24 80 1F 36 A8 */ lwz r0, lbl_805436A8@l(r31)
/* 8012BFE8 00127E28 7C 60 F2 14 */ add r3, r0, r30
/* 8012BFEC 00127E2C 88 03 2E 1C */ lbz r0, 0x2e1c(r3)
/* 8012BFF0 00127E30 2C 00 00 00 */ cmpwi r0, 0x0
/* 8012BFF4 00127E34 41 82 00 0C */ beq lbl_8012C000
/* 8012BFF8 00127E38 7F A4 EB 78 */ mr r4, r29
/* 8012BFFC 00127E3C 48 01 F8 45 */ bl lbl_8014B840
.global lbl_8012C000
lbl_8012C000:
/* 8012C000 00127E40 3B 9C 00 01 */ addi r28, r28, 0x1
/* 8012C004 00127E44 3B DE 2E 2C */ addi r30, r30, 0x2e2c
/* 8012C008 00127E48 2C 1C 00 04 */ cmpwi r28, 0x4
/* 8012C00C 00127E4C 41 80 FF D8 */ blt lbl_8012BFE4
/* 8012C010 00127E50 3B 80 00 00 */ li r28, 0x0
/* 8012C014 00127E54 3B C0 00 00 */ li r30, 0x0
/* 8012C018 00127E58 3F E0 80 54 */ lis r31, lbl_805436A8@ha
.global lbl_8012C01C
lbl_8012C01C:
/* 8012C01C 00127E5C 80 7F 36 A8 */ lwz r3, lbl_805436A8@l(r31)
/* 8012C020 00127E60 3C 03 00 01 */ addis r0, r3, 0x1
/* 8012C024 00127E64 7C 60 F2 14 */ add r3, r0, r30
/* 8012C028 00127E68 38 63 B8 B0 */ addi r3, r3, -0x4750
/* 8012C02C 00127E6C 88 03 2E 1C */ lbz r0, 0x2e1c(r3)
/* 8012C030 00127E70 2C 00 00 00 */ cmpwi r0, 0x0
/* 8012C034 00127E74 41 82 00 0C */ beq lbl_8012C040
/* 8012C038 00127E78 7F A4 EB 78 */ mr r4, r29
/* 8012C03C 00127E7C 48 01 F8 05 */ bl lbl_8014B840
.global lbl_8012C040
lbl_8012C040:
/* 8012C040 00127E80 3B 9C 00 01 */ addi r28, r28, 0x1
/* 8012C044 00127E84 3B DE 2E 2C */ addi r30, r30, 0x2e2c
/* 8012C048 00127E88 2C 1C 00 03 */ cmpwi r28, 0x3
/* 8012C04C 00127E8C 41 80 FF D0 */ blt lbl_8012C01C
.global lbl_8012C050
lbl_8012C050:
/* 8012C050 00127E90 80 01 00 24 */ lwz r0, 0x24(r1)
/* 8012C054 00127E94 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 8012C058 00127E98 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 8012C05C 00127E9C 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 8012C060 00127EA0 83 81 00 10 */ lwz r28, 0x10(r1)
/* 8012C064 00127EA4 7C 08 03 A6 */ mtlr r0
/* 8012C068 00127EA8 38 21 00 20 */ addi r1, r1, 0x20
/* 8012C06C 00127EAC 4E 80 00 20 */ blr
.global lbl_8012C070
lbl_8012C070:
/* 8012C070 00127EB0 48 01 C1 00 */ b lbl_80148170
/* 8012C074 00127EB4 00 00 00 00 */ .4byte 0x00000000
/* 8012C078 00127EB8 00 00 00 00 */ .4byte 0x00000000
/* 8012C07C 00127EBC 00 00 00 00 */ .4byte 0x00000000