donut-decomp/asm/libMobiclip/MoSdk.s

933 lines
43 KiB
ArmAsm

.include "macros.inc"
.section .text1, "ax" # 0x80006A00 - 0x80406260
.global __nw__5MoSdkFUl
__nw__5MoSdkFUl:
/* 80150F30 0014CD70 48 00 27 F0 */ b MOiAlloc__FUi
/* 80150F34 0014CD74 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 80150F38 0014CD78 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 80150F3C 0014CD7C 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.global __dl__5MoSdkFPv
__dl__5MoSdkFPv:
/* 80150F40 0014CD80 48 00 28 90 */ b MOiFree__FPv
/* 80150F44 0014CD84 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 80150F48 0014CD88 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 80150F4C 0014CD8C 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.global __ct__5MoSdkFP17MO_MEDIUM_CONTROL
__ct__5MoSdkFP17MO_MEDIUM_CONTROL:
/* 80150F50 0014CD90 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 80150F54 0014CD94 7C 08 02 A6 */ mflr r0
/* 80150F58 0014CD98 90 01 00 14 */ stw r0, 0x14(r1)
/* 80150F5C 0014CD9C 93 E1 00 0C */ stw r31, 0xc(r1)
/* 80150F60 0014CDA0 7C 9F 23 78 */ mr r31, r4
/* 80150F64 0014CDA4 93 C1 00 08 */ stw r30, 8(r1)
/* 80150F68 0014CDA8 7C 7E 1B 78 */ mr r30, r3
/* 80150F6C 0014CDAC 38 63 00 60 */ addi r3, r3, 0x60
/* 80150F70 0014CDB0 48 00 0F 01 */ bl __ct__20MoSdkAudioRepositoryFv
/* 80150F74 0014CDB4 38 C0 00 00 */ li r6, 0
/* 80150F78 0014CDB8 38 80 00 01 */ li r4, 1
/* 80150F7C 0014CDBC 38 A0 FF FF */ li r5, -1
/* 80150F80 0014CDC0 38 00 00 FF */ li r0, 0xff
/* 80150F84 0014CDC4 90 DE 00 28 */ stw r6, 0x28(r30)
/* 80150F88 0014CDC8 7F C3 F3 78 */ mr r3, r30
/* 80150F8C 0014CDCC 90 DE 00 2C */ stw r6, 0x2c(r30)
/* 80150F90 0014CDD0 90 DE 00 30 */ stw r6, 0x30(r30)
/* 80150F94 0014CDD4 90 DE 00 34 */ stw r6, 0x34(r30)
/* 80150F98 0014CDD8 90 DE 00 38 */ stw r6, 0x38(r30)
/* 80150F9C 0014CDDC 90 DE 00 3C */ stw r6, 0x3c(r30)
/* 80150FA0 0014CDE0 90 DE 00 18 */ stw r6, 0x18(r30)
/* 80150FA4 0014CDE4 93 FE 00 14 */ stw r31, 0x14(r30)
/* 80150FA8 0014CDE8 90 DE 00 0C */ stw r6, 0xc(r30)
/* 80150FAC 0014CDEC 90 DE 00 40 */ stw r6, 0x40(r30)
/* 80150FB0 0014CDF0 90 DE 00 1C */ stw r6, 0x1c(r30)
/* 80150FB4 0014CDF4 90 DE 00 20 */ stw r6, 0x20(r30)
/* 80150FB8 0014CDF8 90 BE 00 58 */ stw r5, 0x58(r30)
/* 80150FBC 0014CDFC 90 DE 00 5C */ stw r6, 0x5c(r30)
/* 80150FC0 0014CE00 90 DE 00 F4 */ stw r6, 0xf4(r30)
/* 80150FC4 0014CE04 90 DE 00 FC */ stw r6, 0xfc(r30)
/* 80150FC8 0014CE08 90 DE 01 00 */ stw r6, 0x100(r30)
/* 80150FCC 0014CE0C 90 9E 01 04 */ stw r4, 0x104(r30)
/* 80150FD0 0014CE10 98 1E 00 4C */ stb r0, 0x4c(r30)
/* 80150FD4 0014CE14 90 DE 00 54 */ stw r6, 0x54(r30)
/* 80150FD8 0014CE18 90 9E 00 50 */ stw r4, 0x50(r30)
/* 80150FDC 0014CE1C 90 DE 01 08 */ stw r6, 0x108(r30)
/* 80150FE0 0014CE20 90 DE 01 0C */ stw r6, 0x10c(r30)
/* 80150FE4 0014CE24 90 DE 00 10 */ stw r6, 0x10(r30)
/* 80150FE8 0014CE28 90 DE 00 44 */ stw r6, 0x44(r30)
/* 80150FEC 0014CE2C 90 DE 00 48 */ stw r6, 0x48(r30)
/* 80150FF0 0014CE30 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 80150FF4 0014CE34 83 C1 00 08 */ lwz r30, 8(r1)
/* 80150FF8 0014CE38 80 01 00 14 */ lwz r0, 0x14(r1)
/* 80150FFC 0014CE3C 7C 08 03 A6 */ mtlr r0
/* 80151000 0014CE40 38 21 00 10 */ addi r1, r1, 0x10
/* 80151004 0014CE44 4E 80 00 20 */ blr
/* 80151008 0014CE48 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 8015100C 0014CE4C 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.global Open__5MoSdkFPCv
Open__5MoSdkFPCv:
/* 80151010 0014CE50 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 80151014 0014CE54 7C 08 02 A6 */ mflr r0
/* 80151018 0014CE58 90 01 00 14 */ stw r0, 0x14(r1)
/* 8015101C 0014CE5C 38 00 00 00 */ li r0, 0
/* 80151020 0014CE60 93 E1 00 0C */ stw r31, 0xc(r1)
/* 80151024 0014CE64 7C 7F 1B 78 */ mr r31, r3
/* 80151028 0014CE68 93 C1 00 08 */ stw r30, 8(r1)
/* 8015102C 0014CE6C 3F C0 80 44 */ lis r30, $$23186@ha
/* 80151030 0014CE70 3B DE 7E C8 */ addi r30, r30, $$23186@l
/* 80151034 0014CE74 90 03 00 24 */ stw r0, 0x24(r3)
/* 80151038 0014CE78 80 A3 00 14 */ lwz r5, 0x14(r3)
/* 8015103C 0014CE7C 81 85 00 00 */ lwz r12, 0(r5)
/* 80151040 0014CE80 7D 89 03 A6 */ mtctr r12
/* 80151044 0014CE84 4E 80 04 21 */ bctrl
/* 80151048 0014CE88 2C 03 00 00 */ cmpwi r3, 0
/* 8015104C 0014CE8C 90 7F 00 18 */ stw r3, 0x18(r31)
/* 80151050 0014CE90 7C 64 1B 78 */ mr r4, r3
/* 80151054 0014CE94 40 82 00 1C */ bne lbl_80151070
/* 80151058 0014CE98 7F E3 FB 78 */ mr r3, r31
/* 8015105C 0014CE9C 38 9E 00 00 */ addi r4, r30, 0
/* 80151060 0014CEA0 4C C6 31 82 */ crclr 6
/* 80151064 0014CEA4 4B FF E9 1D */ bl MoLog
/* 80151068 0014CEA8 38 60 FF FC */ li r3, -4
/* 8015106C 0014CEAC 48 00 03 14 */ b lbl_80151380
lbl_80151070:
/* 80151070 0014CEB0 80 BF 00 14 */ lwz r5, 0x14(r31)
/* 80151074 0014CEB4 7F E3 FB 78 */ mr r3, r31
/* 80151078 0014CEB8 81 85 00 04 */ lwz r12, 4(r5)
/* 8015107C 0014CEBC 7D 89 03 A6 */ mtctr r12
/* 80151080 0014CEC0 4E 80 04 21 */ bctrl
/* 80151084 0014CEC4 2C 03 00 02 */ cmpwi r3, 2
/* 80151088 0014CEC8 41 82 00 10 */ beq lbl_80151098
/* 8015108C 0014CECC 2C 03 00 03 */ cmpwi r3, 3
/* 80151090 0014CED0 41 82 00 A0 */ beq lbl_80151130
/* 80151094 0014CED4 48 00 01 34 */ b lbl_801511C8
lbl_80151098:
/* 80151098 0014CED8 80 1F 00 0C */ lwz r0, 0xc(r31)
/* 8015109C 0014CEDC 28 00 00 08 */ cmplwi r0, 8
/* 801510A0 0014CEE0 41 81 00 5C */ bgt lbl_801510FC
/* 801510A4 0014CEE4 3C 60 80 45 */ lis r3, $$23203@ha
/* 801510A8 0014CEE8 54 00 10 3A */ slwi r0, r0, 2
/* 801510AC 0014CEEC 38 63 80 20 */ addi r3, r3, $$23203@l
/* 801510B0 0014CEF0 7C 63 00 2E */ lwzx r3, r3, r0
/* 801510B4 0014CEF4 7C 69 03 A6 */ mtctr r3
/* 801510B8 0014CEF8 4E 80 04 20 */ bctr
/* 801510BC 0014CEFC 38 BE 00 1C */ addi r5, r30, 0x1c
/* 801510C0 0014CF00 48 00 00 50 */ b lbl_80151110
/* 801510C4 0014CF04 38 BE 00 28 */ addi r5, r30, 0x28
/* 801510C8 0014CF08 48 00 00 48 */ b lbl_80151110
/* 801510CC 0014CF0C 38 BE 00 34 */ addi r5, r30, 0x34
/* 801510D0 0014CF10 48 00 00 40 */ b lbl_80151110
/* 801510D4 0014CF14 38 BE 00 40 */ addi r5, r30, 0x40
/* 801510D8 0014CF18 48 00 00 38 */ b lbl_80151110
/* 801510DC 0014CF1C 38 BE 00 54 */ addi r5, r30, 0x54
/* 801510E0 0014CF20 48 00 00 30 */ b lbl_80151110
/* 801510E4 0014CF24 38 BE 00 60 */ addi r5, r30, 0x60
/* 801510E8 0014CF28 48 00 00 28 */ b lbl_80151110
/* 801510EC 0014CF2C 38 BE 00 6C */ addi r5, r30, 0x6c
/* 801510F0 0014CF30 48 00 00 20 */ b lbl_80151110
/* 801510F4 0014CF34 38 BE 00 7C */ addi r5, r30, 0x7c
/* 801510F8 0014CF38 48 00 00 18 */ b lbl_80151110
lbl_801510FC:
/* 801510FC 0014CF3C 7F E3 FB 78 */ mr r3, r31
/* 80151100 0014CF40 38 9E 00 88 */ addi r4, r30, 0x88
/* 80151104 0014CF44 4C C6 31 82 */ crclr 6
/* 80151108 0014CF48 4B FF E9 49 */ bl MoThrowError
/* 8015110C 0014CF4C 38 AD 86 A0 */ addi r5, r13, $$23196-_SDA_BASE_
lbl_80151110:
/* 80151110 0014CF50 7F E3 FB 78 */ mr r3, r31
/* 80151114 0014CF54 38 DE 00 28 */ addi r6, r30, 0x28
/* 80151118 0014CF58 38 9E 00 98 */ addi r4, r30, 0x98
/* 8015111C 0014CF5C 4C C6 31 82 */ crclr 6
/* 80151120 0014CF60 4B FF E8 61 */ bl MoLog
/* 80151124 0014CF64 38 00 00 01 */ li r0, 1
/* 80151128 0014CF68 90 1F 00 0C */ stw r0, 0xc(r31)
/* 8015112C 0014CF6C 48 00 00 BC */ b lbl_801511E8
lbl_80151130:
/* 80151130 0014CF70 80 1F 00 0C */ lwz r0, 0xc(r31)
/* 80151134 0014CF74 28 00 00 08 */ cmplwi r0, 8
/* 80151138 0014CF78 41 81 00 5C */ bgt lbl_80151194
/* 8015113C 0014CF7C 3C 60 80 44 */ lis r3, $$23204@ha
/* 80151140 0014CF80 54 00 10 3A */ slwi r0, r0, 2
/* 80151144 0014CF84 38 63 7F FC */ addi r3, r3, $$23204@l
/* 80151148 0014CF88 7C 63 00 2E */ lwzx r3, r3, r0
/* 8015114C 0014CF8C 7C 69 03 A6 */ mtctr r3
/* 80151150 0014CF90 4E 80 04 20 */ bctr
/* 80151154 0014CF94 38 BE 00 1C */ addi r5, r30, 0x1c
/* 80151158 0014CF98 48 00 00 50 */ b lbl_801511A8
/* 8015115C 0014CF9C 38 BE 00 28 */ addi r5, r30, 0x28
/* 80151160 0014CFA0 48 00 00 48 */ b lbl_801511A8
/* 80151164 0014CFA4 38 BE 00 34 */ addi r5, r30, 0x34
/* 80151168 0014CFA8 48 00 00 40 */ b lbl_801511A8
/* 8015116C 0014CFAC 38 BE 00 40 */ addi r5, r30, 0x40
/* 80151170 0014CFB0 48 00 00 38 */ b lbl_801511A8
/* 80151174 0014CFB4 38 BE 00 54 */ addi r5, r30, 0x54
/* 80151178 0014CFB8 48 00 00 30 */ b lbl_801511A8
/* 8015117C 0014CFBC 38 BE 00 60 */ addi r5, r30, 0x60
/* 80151180 0014CFC0 48 00 00 28 */ b lbl_801511A8
/* 80151184 0014CFC4 38 BE 00 6C */ addi r5, r30, 0x6c
/* 80151188 0014CFC8 48 00 00 20 */ b lbl_801511A8
/* 8015118C 0014CFCC 38 BE 00 7C */ addi r5, r30, 0x7c
/* 80151190 0014CFD0 48 00 00 18 */ b lbl_801511A8
lbl_80151194:
/* 80151194 0014CFD4 7F E3 FB 78 */ mr r3, r31
/* 80151198 0014CFD8 38 9E 00 88 */ addi r4, r30, 0x88
/* 8015119C 0014CFDC 4C C6 31 82 */ crclr 6
/* 801511A0 0014CFE0 4B FF E8 B1 */ bl MoThrowError
/* 801511A4 0014CFE4 38 AD 86 A0 */ addi r5, r13, $$23196-_SDA_BASE_
lbl_801511A8:
/* 801511A8 0014CFE8 7F E3 FB 78 */ mr r3, r31
/* 801511AC 0014CFEC 38 DE 00 40 */ addi r6, r30, 0x40
/* 801511B0 0014CFF0 38 9E 00 98 */ addi r4, r30, 0x98
/* 801511B4 0014CFF4 4C C6 31 82 */ crclr 6
/* 801511B8 0014CFF8 4B FF E7 C9 */ bl MoLog
/* 801511BC 0014CFFC 38 00 00 03 */ li r0, 3
/* 801511C0 0014D000 90 1F 00 0C */ stw r0, 0xc(r31)
/* 801511C4 0014D004 48 00 00 24 */ b lbl_801511E8
lbl_801511C8:
/* 801511C8 0014D008 7F E3 FB 78 */ mr r3, r31
/* 801511CC 0014D00C 38 9E 00 A8 */ addi r4, r30, 0xa8
/* 801511D0 0014D010 4C C6 31 82 */ crclr 6
/* 801511D4 0014D014 4B FF E7 AD */ bl MoLog
/* 801511D8 0014D018 7F E3 FB 78 */ mr r3, r31
/* 801511DC 0014D01C 48 00 05 55 */ bl Close__5MoSdkFv
/* 801511E0 0014D020 38 60 FF FC */ li r3, -4
/* 801511E4 0014D024 48 00 01 9C */ b lbl_80151380
lbl_801511E8:
/* 801511E8 0014D028 38 60 00 20 */ li r3, 0x20
/* 801511EC 0014D02C 4B FF FD 45 */ bl __nw__5MoSdkFUl
/* 801511F0 0014D030 2C 03 00 00 */ cmpwi r3, 0
/* 801511F4 0014D034 41 82 00 18 */ beq lbl_8015120C
/* 801511F8 0014D038 80 DF 00 14 */ lwz r6, 0x14(r31)
/* 801511FC 0014D03C 7F E4 FB 78 */ mr r4, r31
/* 80151200 0014D040 80 FF 00 18 */ lwz r7, 0x18(r31)
/* 80151204 0014D044 3C A0 00 01 */ lis r5, 1
/* 80151208 0014D048 48 00 20 29 */ bl __ct__10MoSdkInputFPvUlP17MO_MEDIUM_CONTROLPv
lbl_8015120C:
/* 8015120C 0014D04C 2C 03 00 00 */ cmpwi r3, 0
/* 80151210 0014D050 90 7F 00 10 */ stw r3, 0x10(r31)
/* 80151214 0014D054 40 82 00 24 */ bne lbl_80151238
/* 80151218 0014D058 7F E3 FB 78 */ mr r3, r31
/* 8015121C 0014D05C 38 9E 00 D8 */ addi r4, r30, 0xd8
/* 80151220 0014D060 4C C6 31 82 */ crclr 6
/* 80151224 0014D064 4B FF E7 5D */ bl MoLog
/* 80151228 0014D068 7F E3 FB 78 */ mr r3, r31
/* 8015122C 0014D06C 48 00 05 05 */ bl Close__5MoSdkFv
/* 80151230 0014D070 38 60 FF FB */ li r3, -5
/* 80151234 0014D074 48 00 01 4C */ b lbl_80151380
lbl_80151238:
/* 80151238 0014D078 48 00 20 99 */ bl allocInputBuffer__10MoSdkInputFv
/* 8015123C 0014D07C 2C 03 00 00 */ cmpwi r3, 0
/* 80151240 0014D080 40 82 00 24 */ bne lbl_80151264
/* 80151244 0014D084 7F E3 FB 78 */ mr r3, r31
/* 80151248 0014D088 38 9E 00 D8 */ addi r4, r30, 0xd8
/* 8015124C 0014D08C 4C C6 31 82 */ crclr 6
/* 80151250 0014D090 4B FF E7 31 */ bl MoLog
/* 80151254 0014D094 7F E3 FB 78 */ mr r3, r31
/* 80151258 0014D098 48 00 04 D9 */ bl Close__5MoSdkFv
/* 8015125C 0014D09C 38 60 FF FB */ li r3, -5
/* 80151260 0014D0A0 48 00 01 20 */ b lbl_80151380
lbl_80151264:
/* 80151264 0014D0A4 38 00 FF FF */ li r0, -1
/* 80151268 0014D0A8 90 1F 00 04 */ stw r0, 4(r31)
/* 8015126C 0014D0AC 80 BF 00 14 */ lwz r5, 0x14(r31)
/* 80151270 0014D0B0 7F E3 FB 78 */ mr r3, r31
/* 80151274 0014D0B4 90 1F 00 00 */ stw r0, 0(r31)
/* 80151278 0014D0B8 80 9F 00 18 */ lwz r4, 0x18(r31)
/* 8015127C 0014D0BC 81 85 00 04 */ lwz r12, 4(r5)
/* 80151280 0014D0C0 7D 89 03 A6 */ mtctr r12
/* 80151284 0014D0C4 4E 80 04 21 */ bctrl
/* 80151288 0014D0C8 2C 03 00 03 */ cmpwi r3, 3
/* 8015128C 0014D0CC 40 82 00 F0 */ bne lbl_8015137C
/* 80151290 0014D0D0 80 1F 00 0C */ lwz r0, 0xc(r31)
/* 80151294 0014D0D4 28 00 00 08 */ cmplwi r0, 8
/* 80151298 0014D0D8 41 81 00 5C */ bgt lbl_801512F4
/* 8015129C 0014D0DC 3C 60 80 44 */ lis r3, $$23205@ha
/* 801512A0 0014D0E0 54 00 10 3A */ slwi r0, r0, 2
/* 801512A4 0014D0E4 38 63 7F D8 */ addi r3, r3, $$23205@l
/* 801512A8 0014D0E8 7C 63 00 2E */ lwzx r3, r3, r0
/* 801512AC 0014D0EC 7C 69 03 A6 */ mtctr r3
/* 801512B0 0014D0F0 4E 80 04 20 */ bctr
/* 801512B4 0014D0F4 38 BE 00 1C */ addi r5, r30, 0x1c
/* 801512B8 0014D0F8 48 00 00 50 */ b lbl_80151308
/* 801512BC 0014D0FC 38 BE 00 28 */ addi r5, r30, 0x28
/* 801512C0 0014D100 48 00 00 48 */ b lbl_80151308
/* 801512C4 0014D104 38 BE 00 34 */ addi r5, r30, 0x34
/* 801512C8 0014D108 48 00 00 40 */ b lbl_80151308
/* 801512CC 0014D10C 38 BE 00 40 */ addi r5, r30, 0x40
/* 801512D0 0014D110 48 00 00 38 */ b lbl_80151308
/* 801512D4 0014D114 38 BE 00 54 */ addi r5, r30, 0x54
/* 801512D8 0014D118 48 00 00 30 */ b lbl_80151308
/* 801512DC 0014D11C 38 BE 00 60 */ addi r5, r30, 0x60
/* 801512E0 0014D120 48 00 00 28 */ b lbl_80151308
/* 801512E4 0014D124 38 BE 00 6C */ addi r5, r30, 0x6c
/* 801512E8 0014D128 48 00 00 20 */ b lbl_80151308
/* 801512EC 0014D12C 38 BE 00 7C */ addi r5, r30, 0x7c
/* 801512F0 0014D130 48 00 00 18 */ b lbl_80151308
lbl_801512F4:
/* 801512F4 0014D134 7F E3 FB 78 */ mr r3, r31
/* 801512F8 0014D138 38 9E 00 88 */ addi r4, r30, 0x88
/* 801512FC 0014D13C 4C C6 31 82 */ crclr 6
/* 80151300 0014D140 4B FF E7 51 */ bl MoThrowError
/* 80151304 0014D144 38 AD 86 A0 */ addi r5, r13, $$23196-_SDA_BASE_
lbl_80151308:
/* 80151308 0014D148 7F E3 FB 78 */ mr r3, r31
/* 8015130C 0014D14C 38 DE 00 40 */ addi r6, r30, 0x40
/* 80151310 0014D150 38 9E 00 98 */ addi r4, r30, 0x98
/* 80151314 0014D154 4C C6 31 82 */ crclr 6
/* 80151318 0014D158 4B FF E6 69 */ bl MoLog
/* 8015131C 0014D15C 38 00 00 03 */ li r0, 3
/* 80151320 0014D160 90 1F 00 0C */ stw r0, 0xc(r31)
/* 80151324 0014D164 7F E3 FB 78 */ mr r3, r31
/* 80151328 0014D168 48 00 15 79 */ bl readingHeaderLoop__5MoSdkFv
/* 8015132C 0014D16C 2C 03 00 06 */ cmpwi r3, 6
/* 80151330 0014D170 40 82 00 24 */ bne lbl_80151354
/* 80151334 0014D174 7F E3 FB 78 */ mr r3, r31
/* 80151338 0014D178 38 9E 00 D8 */ addi r4, r30, 0xd8
/* 8015133C 0014D17C 4C C6 31 82 */ crclr 6
/* 80151340 0014D180 4B FF E6 41 */ bl MoLog
/* 80151344 0014D184 7F E3 FB 78 */ mr r3, r31
/* 80151348 0014D188 48 00 03 E9 */ bl Close__5MoSdkFv
/* 8015134C 0014D18C 38 60 FF FB */ li r3, -5
/* 80151350 0014D190 48 00 00 30 */ b lbl_80151380
lbl_80151354:
/* 80151354 0014D194 2C 03 00 04 */ cmpwi r3, 4
/* 80151358 0014D198 40 82 00 24 */ bne lbl_8015137C
/* 8015135C 0014D19C 7F E3 FB 78 */ mr r3, r31
/* 80151360 0014D1A0 38 9E 00 F8 */ addi r4, r30, 0xf8
/* 80151364 0014D1A4 4C C6 31 82 */ crclr 6
/* 80151368 0014D1A8 4B FF E6 19 */ bl MoLog
/* 8015136C 0014D1AC 7F E3 FB 78 */ mr r3, r31
/* 80151370 0014D1B0 48 00 03 C1 */ bl Close__5MoSdkFv
/* 80151374 0014D1B4 38 60 FF FF */ li r3, -1
/* 80151378 0014D1B8 48 00 00 08 */ b lbl_80151380
lbl_8015137C:
/* 8015137C 0014D1BC 38 60 00 00 */ li r3, 0
lbl_80151380:
/* 80151380 0014D1C0 80 01 00 14 */ lwz r0, 0x14(r1)
/* 80151384 0014D1C4 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 80151388 0014D1C8 83 C1 00 08 */ lwz r30, 8(r1)
/* 8015138C 0014D1CC 7C 08 03 A6 */ mtlr r0
/* 80151390 0014D1D0 38 21 00 10 */ addi r1, r1, 0x10
/* 80151394 0014D1D4 4E 80 00 20 */ blr
/* 80151398 0014D1D8 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 8015139C 0014D1DC 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.global run__5MoSdkFv
run__5MoSdkFv:
/* 801513A0 0014D1E0 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 801513A4 0014D1E4 7C 08 02 A6 */ mflr r0
/* 801513A8 0014D1E8 90 01 00 14 */ stw r0, 0x14(r1)
/* 801513AC 0014D1EC 93 E1 00 0C */ stw r31, 0xc(r1)
/* 801513B0 0014D1F0 3F E0 80 44 */ lis r31, $$23186@ha
/* 801513B4 0014D1F4 3B FF 7E C8 */ addi r31, r31, $$23186@l
/* 801513B8 0014D1F8 93 C1 00 08 */ stw r30, 8(r1)
/* 801513BC 0014D1FC 7C 7E 1B 78 */ mr r30, r3
/* 801513C0 0014D200 80 03 00 0C */ lwz r0, 0xc(r3)
/* 801513C4 0014D204 2C 00 00 04 */ cmpwi r0, 4
/* 801513C8 0014D208 41 82 00 20 */ beq lbl_801513E8
/* 801513CC 0014D20C 2C 00 00 01 */ cmpwi r0, 1
/* 801513D0 0014D210 41 82 00 20 */ beq lbl_801513F0
/* 801513D4 0014D214 2C 00 00 03 */ cmpwi r0, 3
/* 801513D8 0014D218 41 82 01 80 */ beq lbl_80151558
/* 801513DC 0014D21C 2C 00 00 05 */ cmpwi r0, 5
/* 801513E0 0014D220 41 82 01 80 */ beq lbl_80151560
/* 801513E4 0014D224 48 00 01 84 */ b lbl_80151568
lbl_801513E8:
/* 801513E8 0014D228 38 60 00 02 */ li r3, 2
/* 801513EC 0014D22C 48 00 01 80 */ b lbl_8015156C
lbl_801513F0:
/* 801513F0 0014D230 80 A3 00 14 */ lwz r5, 0x14(r3)
/* 801513F4 0014D234 80 83 00 18 */ lwz r4, 0x18(r3)
/* 801513F8 0014D238 81 85 00 04 */ lwz r12, 4(r5)
/* 801513FC 0014D23C 7D 89 03 A6 */ mtctr r12
/* 80151400 0014D240 4E 80 04 21 */ bctrl
/* 80151404 0014D244 2C 03 00 03 */ cmpwi r3, 3
/* 80151408 0014D248 41 82 00 10 */ beq lbl_80151418
/* 8015140C 0014D24C 2C 03 00 02 */ cmpwi r3, 2
/* 80151410 0014D250 41 82 00 A4 */ beq lbl_801514B4
/* 80151414 0014D254 48 00 00 A8 */ b lbl_801514BC
lbl_80151418:
/* 80151418 0014D258 80 1E 00 0C */ lwz r0, 0xc(r30)
/* 8015141C 0014D25C 28 00 00 08 */ cmplwi r0, 8
/* 80151420 0014D260 41 81 00 5C */ bgt lbl_8015147C
/* 80151424 0014D264 3C 60 80 45 */ lis r3, $$23241@ha
/* 80151428 0014D268 54 00 10 3A */ slwi r0, r0, 2
/* 8015142C 0014D26C 38 63 80 68 */ addi r3, r3, $$23241@l
/* 80151430 0014D270 7C 63 00 2E */ lwzx r3, r3, r0
/* 80151434 0014D274 7C 69 03 A6 */ mtctr r3
/* 80151438 0014D278 4E 80 04 20 */ bctr
/* 8015143C 0014D27C 38 BF 00 1C */ addi r5, r31, 0x1c
/* 80151440 0014D280 48 00 00 50 */ b lbl_80151490
/* 80151444 0014D284 38 BF 00 28 */ addi r5, r31, 0x28
/* 80151448 0014D288 48 00 00 48 */ b lbl_80151490
/* 8015144C 0014D28C 38 BF 00 34 */ addi r5, r31, 0x34
/* 80151450 0014D290 48 00 00 40 */ b lbl_80151490
/* 80151454 0014D294 38 BF 00 40 */ addi r5, r31, 0x40
/* 80151458 0014D298 48 00 00 38 */ b lbl_80151490
/* 8015145C 0014D29C 38 BF 00 54 */ addi r5, r31, 0x54
/* 80151460 0014D2A0 48 00 00 30 */ b lbl_80151490
/* 80151464 0014D2A4 38 BF 00 60 */ addi r5, r31, 0x60
/* 80151468 0014D2A8 48 00 00 28 */ b lbl_80151490
/* 8015146C 0014D2AC 38 BF 00 6C */ addi r5, r31, 0x6c
/* 80151470 0014D2B0 48 00 00 20 */ b lbl_80151490
/* 80151474 0014D2B4 38 BF 00 7C */ addi r5, r31, 0x7c
/* 80151478 0014D2B8 48 00 00 18 */ b lbl_80151490
lbl_8015147C:
/* 8015147C 0014D2BC 7F C3 F3 78 */ mr r3, r30
/* 80151480 0014D2C0 38 9F 00 88 */ addi r4, r31, 0x88
/* 80151484 0014D2C4 4C C6 31 82 */ crclr 6
/* 80151488 0014D2C8 4B FF E5 C9 */ bl MoThrowError
/* 8015148C 0014D2CC 38 AD 86 A0 */ addi r5, r13, $$23196-_SDA_BASE_
lbl_80151490:
/* 80151490 0014D2D0 7F C3 F3 78 */ mr r3, r30
/* 80151494 0014D2D4 38 DF 00 40 */ addi r6, r31, 0x40
/* 80151498 0014D2D8 38 9F 00 98 */ addi r4, r31, 0x98
/* 8015149C 0014D2DC 4C C6 31 82 */ crclr 6
/* 801514A0 0014D2E0 4B FF E4 E1 */ bl MoLog
/* 801514A4 0014D2E4 38 00 00 03 */ li r0, 3
/* 801514A8 0014D2E8 90 1E 00 0C */ stw r0, 0xc(r30)
/* 801514AC 0014D2EC 38 60 00 01 */ li r3, 1
/* 801514B0 0014D2F0 48 00 00 BC */ b lbl_8015156C
lbl_801514B4:
/* 801514B4 0014D2F4 38 60 00 01 */ li r3, 1
/* 801514B8 0014D2F8 48 00 00 B4 */ b lbl_8015156C
lbl_801514BC:
/* 801514BC 0014D2FC 80 1E 00 0C */ lwz r0, 0xc(r30)
/* 801514C0 0014D300 28 00 00 08 */ cmplwi r0, 8
/* 801514C4 0014D304 41 81 00 5C */ bgt lbl_80151520
/* 801514C8 0014D308 3C 60 80 45 */ lis r3, $$23242@ha
/* 801514CC 0014D30C 54 00 10 3A */ slwi r0, r0, 2
/* 801514D0 0014D310 38 63 80 44 */ addi r3, r3, $$23242@l
/* 801514D4 0014D314 7C 63 00 2E */ lwzx r3, r3, r0
/* 801514D8 0014D318 7C 69 03 A6 */ mtctr r3
/* 801514DC 0014D31C 4E 80 04 20 */ bctr
/* 801514E0 0014D320 38 BF 00 1C */ addi r5, r31, 0x1c
/* 801514E4 0014D324 48 00 00 50 */ b lbl_80151534
/* 801514E8 0014D328 38 BF 00 28 */ addi r5, r31, 0x28
/* 801514EC 0014D32C 48 00 00 48 */ b lbl_80151534
/* 801514F0 0014D330 38 BF 00 34 */ addi r5, r31, 0x34
/* 801514F4 0014D334 48 00 00 40 */ b lbl_80151534
/* 801514F8 0014D338 38 BF 00 40 */ addi r5, r31, 0x40
/* 801514FC 0014D33C 48 00 00 38 */ b lbl_80151534
/* 80151500 0014D340 38 BF 00 54 */ addi r5, r31, 0x54
/* 80151504 0014D344 48 00 00 30 */ b lbl_80151534
/* 80151508 0014D348 38 BF 00 60 */ addi r5, r31, 0x60
/* 8015150C 0014D34C 48 00 00 28 */ b lbl_80151534
/* 80151510 0014D350 38 BF 00 6C */ addi r5, r31, 0x6c
/* 80151514 0014D354 48 00 00 20 */ b lbl_80151534
/* 80151518 0014D358 38 BF 00 7C */ addi r5, r31, 0x7c
/* 8015151C 0014D35C 48 00 00 18 */ b lbl_80151534
lbl_80151520:
/* 80151520 0014D360 7F C3 F3 78 */ mr r3, r30
/* 80151524 0014D364 38 9F 00 88 */ addi r4, r31, 0x88
/* 80151528 0014D368 4C C6 31 82 */ crclr 6
/* 8015152C 0014D36C 4B FF E5 25 */ bl MoThrowError
/* 80151530 0014D370 38 AD 86 A0 */ addi r5, r13, $$23196-_SDA_BASE_
lbl_80151534:
/* 80151534 0014D374 7F C3 F3 78 */ mr r3, r30
/* 80151538 0014D378 38 DF 00 7C */ addi r6, r31, 0x7c
/* 8015153C 0014D37C 38 9F 00 98 */ addi r4, r31, 0x98
/* 80151540 0014D380 4C C6 31 82 */ crclr 6
/* 80151544 0014D384 4B FF E4 3D */ bl MoLog
/* 80151548 0014D388 38 00 00 08 */ li r0, 8
/* 8015154C 0014D38C 90 1E 00 0C */ stw r0, 0xc(r30)
/* 80151550 0014D390 38 60 00 04 */ li r3, 4
/* 80151554 0014D394 48 00 00 18 */ b lbl_8015156C
lbl_80151558:
/* 80151558 0014D398 48 00 13 49 */ bl readingHeaderLoop__5MoSdkFv
/* 8015155C 0014D39C 48 00 00 10 */ b lbl_8015156C
lbl_80151560:
/* 80151560 0014D3A0 48 00 27 31 */ bl seekingLoop__5MoSdkFv
/* 80151564 0014D3A4 48 00 00 08 */ b lbl_8015156C
lbl_80151568:
/* 80151568 0014D3A8 38 60 00 04 */ li r3, 4
lbl_8015156C:
/* 8015156C 0014D3AC 80 01 00 14 */ lwz r0, 0x14(r1)
/* 80151570 0014D3B0 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 80151574 0014D3B4 83 C1 00 08 */ lwz r30, 8(r1)
/* 80151578 0014D3B8 7C 08 03 A6 */ mtlr r0
/* 8015157C 0014D3BC 38 21 00 10 */ addi r1, r1, 0x10
/* 80151580 0014D3C0 4E 80 00 20 */ blr
/* 80151584 0014D3C4 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 80151588 0014D3C8 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 8015158C 0014D3CC 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.global Opening__5MoSdkFv
Opening__5MoSdkFv:
/* 80151590 0014D3D0 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 80151594 0014D3D4 7C 08 02 A6 */ mflr r0
/* 80151598 0014D3D8 90 01 00 14 */ stw r0, 0x14(r1)
/* 8015159C 0014D3DC 93 E1 00 0C */ stw r31, 0xc(r1)
/* 801515A0 0014D3E0 3F E0 80 44 */ lis r31, $$23186@ha
/* 801515A4 0014D3E4 3B FF 7E C8 */ addi r31, r31, $$23186@l
/* 801515A8 0014D3E8 93 C1 00 08 */ stw r30, 8(r1)
/* 801515AC 0014D3EC 7C 7E 1B 78 */ mr r30, r3
/* 801515B0 0014D3F0 80 A3 00 14 */ lwz r5, 0x14(r3)
/* 801515B4 0014D3F4 80 83 00 18 */ lwz r4, 0x18(r3)
/* 801515B8 0014D3F8 81 85 00 04 */ lwz r12, 4(r5)
/* 801515BC 0014D3FC 7D 89 03 A6 */ mtctr r12
/* 801515C0 0014D400 4E 80 04 21 */ bctrl
/* 801515C4 0014D404 2C 03 00 03 */ cmpwi r3, 3
/* 801515C8 0014D408 41 82 00 10 */ beq lbl_801515D8
/* 801515CC 0014D40C 2C 03 00 02 */ cmpwi r3, 2
/* 801515D0 0014D410 41 82 00 A4 */ beq lbl_80151674
/* 801515D4 0014D414 48 00 00 A8 */ b lbl_8015167C
lbl_801515D8:
/* 801515D8 0014D418 80 1E 00 0C */ lwz r0, 0xc(r30)
/* 801515DC 0014D41C 28 00 00 08 */ cmplwi r0, 8
/* 801515E0 0014D420 41 81 00 5C */ bgt lbl_8015163C
/* 801515E4 0014D424 3C 60 80 45 */ lis r3, $$23270@ha
/* 801515E8 0014D428 54 00 10 3A */ slwi r0, r0, 2
/* 801515EC 0014D42C 38 63 80 B0 */ addi r3, r3, $$23270@l
/* 801515F0 0014D430 7C 63 00 2E */ lwzx r3, r3, r0
/* 801515F4 0014D434 7C 69 03 A6 */ mtctr r3
/* 801515F8 0014D438 4E 80 04 20 */ bctr
/* 801515FC 0014D43C 38 BF 00 1C */ addi r5, r31, 0x1c
/* 80151600 0014D440 48 00 00 50 */ b lbl_80151650
/* 80151604 0014D444 38 BF 00 28 */ addi r5, r31, 0x28
/* 80151608 0014D448 48 00 00 48 */ b lbl_80151650
/* 8015160C 0014D44C 38 BF 00 34 */ addi r5, r31, 0x34
/* 80151610 0014D450 48 00 00 40 */ b lbl_80151650
/* 80151614 0014D454 38 BF 00 40 */ addi r5, r31, 0x40
/* 80151618 0014D458 48 00 00 38 */ b lbl_80151650
/* 8015161C 0014D45C 38 BF 00 54 */ addi r5, r31, 0x54
/* 80151620 0014D460 48 00 00 30 */ b lbl_80151650
/* 80151624 0014D464 38 BF 00 60 */ addi r5, r31, 0x60
/* 80151628 0014D468 48 00 00 28 */ b lbl_80151650
/* 8015162C 0014D46C 38 BF 00 6C */ addi r5, r31, 0x6c
/* 80151630 0014D470 48 00 00 20 */ b lbl_80151650
/* 80151634 0014D474 38 BF 00 7C */ addi r5, r31, 0x7c
/* 80151638 0014D478 48 00 00 18 */ b lbl_80151650
lbl_8015163C:
/* 8015163C 0014D47C 7F C3 F3 78 */ mr r3, r30
/* 80151640 0014D480 38 9F 00 88 */ addi r4, r31, 0x88
/* 80151644 0014D484 4C C6 31 82 */ crclr 6
/* 80151648 0014D488 4B FF E4 09 */ bl MoThrowError
/* 8015164C 0014D48C 38 AD 86 A0 */ addi r5, r13, $$23196-_SDA_BASE_
lbl_80151650:
/* 80151650 0014D490 7F C3 F3 78 */ mr r3, r30
/* 80151654 0014D494 38 DF 00 40 */ addi r6, r31, 0x40
/* 80151658 0014D498 38 9F 00 98 */ addi r4, r31, 0x98
/* 8015165C 0014D49C 4C C6 31 82 */ crclr 6
/* 80151660 0014D4A0 4B FF E3 21 */ bl MoLog
/* 80151664 0014D4A4 38 00 00 03 */ li r0, 3
/* 80151668 0014D4A8 90 1E 00 0C */ stw r0, 0xc(r30)
/* 8015166C 0014D4AC 38 60 00 01 */ li r3, 1
/* 80151670 0014D4B0 48 00 00 A4 */ b lbl_80151714
lbl_80151674:
/* 80151674 0014D4B4 38 60 00 01 */ li r3, 1
/* 80151678 0014D4B8 48 00 00 9C */ b lbl_80151714
lbl_8015167C:
/* 8015167C 0014D4BC 80 1E 00 0C */ lwz r0, 0xc(r30)
/* 80151680 0014D4C0 28 00 00 08 */ cmplwi r0, 8
/* 80151684 0014D4C4 41 81 00 5C */ bgt lbl_801516E0
/* 80151688 0014D4C8 3C 60 80 45 */ lis r3, $$23271@ha
/* 8015168C 0014D4CC 54 00 10 3A */ slwi r0, r0, 2
/* 80151690 0014D4D0 38 63 80 8C */ addi r3, r3, $$23271@l
/* 80151694 0014D4D4 7C 63 00 2E */ lwzx r3, r3, r0
/* 80151698 0014D4D8 7C 69 03 A6 */ mtctr r3
/* 8015169C 0014D4DC 4E 80 04 20 */ bctr
/* 801516A0 0014D4E0 38 BF 00 1C */ addi r5, r31, 0x1c
/* 801516A4 0014D4E4 48 00 00 50 */ b lbl_801516F4
/* 801516A8 0014D4E8 38 BF 00 28 */ addi r5, r31, 0x28
/* 801516AC 0014D4EC 48 00 00 48 */ b lbl_801516F4
/* 801516B0 0014D4F0 38 BF 00 34 */ addi r5, r31, 0x34
/* 801516B4 0014D4F4 48 00 00 40 */ b lbl_801516F4
/* 801516B8 0014D4F8 38 BF 00 40 */ addi r5, r31, 0x40
/* 801516BC 0014D4FC 48 00 00 38 */ b lbl_801516F4
/* 801516C0 0014D500 38 BF 00 54 */ addi r5, r31, 0x54
/* 801516C4 0014D504 48 00 00 30 */ b lbl_801516F4
/* 801516C8 0014D508 38 BF 00 60 */ addi r5, r31, 0x60
/* 801516CC 0014D50C 48 00 00 28 */ b lbl_801516F4
/* 801516D0 0014D510 38 BF 00 6C */ addi r5, r31, 0x6c
/* 801516D4 0014D514 48 00 00 20 */ b lbl_801516F4
/* 801516D8 0014D518 38 BF 00 7C */ addi r5, r31, 0x7c
/* 801516DC 0014D51C 48 00 00 18 */ b lbl_801516F4
lbl_801516E0:
/* 801516E0 0014D520 7F C3 F3 78 */ mr r3, r30
/* 801516E4 0014D524 38 9F 00 88 */ addi r4, r31, 0x88
/* 801516E8 0014D528 4C C6 31 82 */ crclr 6
/* 801516EC 0014D52C 4B FF E3 65 */ bl MoThrowError
/* 801516F0 0014D530 38 AD 86 A0 */ addi r5, r13, $$23196-_SDA_BASE_
lbl_801516F4:
/* 801516F4 0014D534 7F C3 F3 78 */ mr r3, r30
/* 801516F8 0014D538 38 DF 00 7C */ addi r6, r31, 0x7c
/* 801516FC 0014D53C 38 9F 00 98 */ addi r4, r31, 0x98
/* 80151700 0014D540 4C C6 31 82 */ crclr 6
/* 80151704 0014D544 4B FF E2 7D */ bl MoLog
/* 80151708 0014D548 38 00 00 08 */ li r0, 8
/* 8015170C 0014D54C 90 1E 00 0C */ stw r0, 0xc(r30)
/* 80151710 0014D550 38 60 00 04 */ li r3, 4
lbl_80151714:
/* 80151714 0014D554 80 01 00 14 */ lwz r0, 0x14(r1)
/* 80151718 0014D558 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 8015171C 0014D55C 83 C1 00 08 */ lwz r30, 8(r1)
/* 80151720 0014D560 7C 08 03 A6 */ mtlr r0
/* 80151724 0014D564 38 21 00 10 */ addi r1, r1, 0x10
/* 80151728 0014D568 4E 80 00 20 */ blr
/* 8015172C 0014D56C 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.global Close__5MoSdkFv
Close__5MoSdkFv:
/* 80151730 0014D570 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80151734 0014D574 7C 08 02 A6 */ mflr r0
/* 80151738 0014D578 90 01 00 24 */ stw r0, 0x24(r1)
/* 8015173C 0014D57C 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 80151740 0014D580 3F E0 80 44 */ lis r31, $$23186@ha
/* 80151744 0014D584 3B FF 7E C8 */ addi r31, r31, $$23186@l
/* 80151748 0014D588 93 C1 00 18 */ stw r30, 0x18(r1)
/* 8015174C 0014D58C 38 9F 02 0C */ addi r4, r31, 0x20c
/* 80151750 0014D590 93 A1 00 14 */ stw r29, 0x14(r1)
/* 80151754 0014D594 93 81 00 10 */ stw r28, 0x10(r1)
/* 80151758 0014D598 7C 7C 1B 78 */ mr r28, r3
/* 8015175C 0014D59C 4C C6 31 82 */ crclr 6
/* 80151760 0014D5A0 4B FF E2 21 */ bl MoLog
/* 80151764 0014D5A4 80 9C 00 18 */ lwz r4, 0x18(r28)
/* 80151768 0014D5A8 2C 04 00 00 */ cmpwi r4, 0
/* 8015176C 0014D5AC 41 82 00 18 */ beq lbl_80151784
/* 80151770 0014D5B0 80 BC 00 14 */ lwz r5, 0x14(r28)
/* 80151774 0014D5B4 7F 83 E3 78 */ mr r3, r28
/* 80151778 0014D5B8 81 85 00 08 */ lwz r12, 8(r5)
/* 8015177C 0014D5BC 7D 89 03 A6 */ mtctr r12
/* 80151780 0014D5C0 4E 80 04 21 */ bctrl
lbl_80151784:
/* 80151784 0014D5C4 80 7C 00 10 */ lwz r3, 0x10(r28)
/* 80151788 0014D5C8 38 00 00 00 */ li r0, 0
/* 8015178C 0014D5CC 90 1C 00 18 */ stw r0, 0x18(r28)
/* 80151790 0014D5D0 2C 03 00 00 */ cmpwi r3, 0
/* 80151794 0014D5D4 41 82 00 0C */ beq lbl_801517A0
/* 80151798 0014D5D8 38 80 00 01 */ li r4, 1
/* 8015179C 0014D5DC 48 00 1A C5 */ bl __dt__10MoSdkInputFv
lbl_801517A0:
/* 801517A0 0014D5E0 80 7C 00 20 */ lwz r3, 0x20(r28)
/* 801517A4 0014D5E4 38 00 00 00 */ li r0, 0
/* 801517A8 0014D5E8 90 1C 00 10 */ stw r0, 0x10(r28)
/* 801517AC 0014D5EC 2C 03 00 00 */ cmpwi r3, 0
/* 801517B0 0014D5F0 41 82 00 08 */ beq lbl_801517B8
/* 801517B4 0014D5F4 48 00 20 1D */ bl MOiFree__FPv
lbl_801517B8:
/* 801517B8 0014D5F8 80 7C 00 5C */ lwz r3, 0x5c(r28)
/* 801517BC 0014D5FC 38 00 00 00 */ li r0, 0
/* 801517C0 0014D600 90 1C 00 20 */ stw r0, 0x20(r28)
/* 801517C4 0014D604 2C 03 00 00 */ cmpwi r3, 0
/* 801517C8 0014D608 41 82 00 0C */ beq lbl_801517D4
/* 801517CC 0014D60C 38 80 00 01 */ li r4, 1
/* 801517D0 0014D610 48 00 27 51 */ bl __dt__17MoSdkVideoDecoderFv
lbl_801517D4:
/* 801517D4 0014D614 38 00 00 00 */ li r0, 0
/* 801517D8 0014D618 90 1C 00 5C */ stw r0, 0x5c(r28)
/* 801517DC 0014D61C 3B A0 00 00 */ li r29, 0
/* 801517E0 0014D620 3B C0 00 00 */ li r30, 0
/* 801517E4 0014D624 48 00 00 34 */ b lbl_80151818
lbl_801517E8:
/* 801517E8 0014D628 80 7C 00 F4 */ lwz r3, 0xf4(r28)
/* 801517EC 0014D62C 7C 63 F0 2E */ lwzx r3, r3, r30
/* 801517F0 0014D630 2C 03 00 00 */ cmpwi r3, 0
/* 801517F4 0014D634 41 82 00 1C */ beq lbl_80151810
/* 801517F8 0014D638 41 82 00 18 */ beq lbl_80151810
/* 801517FC 0014D63C 81 83 00 10 */ lwz r12, 0x10(r3)
/* 80151800 0014D640 38 80 00 01 */ li r4, 1
/* 80151804 0014D644 81 8C 00 10 */ lwz r12, 0x10(r12)
/* 80151808 0014D648 7D 89 03 A6 */ mtctr r12
/* 8015180C 0014D64C 4E 80 04 21 */ bctrl
lbl_80151810:
/* 80151810 0014D650 3B DE 00 04 */ addi r30, r30, 4
/* 80151814 0014D654 3B BD 00 01 */ addi r29, r29, 1
lbl_80151818:
/* 80151818 0014D658 80 1C 00 FC */ lwz r0, 0xfc(r28)
/* 8015181C 0014D65C 7C 1D 00 40 */ cmplw r29, r0
/* 80151820 0014D660 41 80 FF C8 */ blt lbl_801517E8
/* 80151824 0014D664 80 7C 00 F4 */ lwz r3, 0xf4(r28)
/* 80151828 0014D668 2C 03 00 00 */ cmpwi r3, 0
/* 8015182C 0014D66C 41 82 00 08 */ beq lbl_80151834
/* 80151830 0014D670 48 00 1F A1 */ bl MOiFree__FPv
lbl_80151834:
/* 80151834 0014D674 80 7C 01 08 */ lwz r3, 0x108(r28)
/* 80151838 0014D678 38 00 00 00 */ li r0, 0
/* 8015183C 0014D67C 90 1C 00 F4 */ stw r0, 0xf4(r28)
/* 80151840 0014D680 2C 03 00 00 */ cmpwi r3, 0
/* 80151844 0014D684 90 1C 00 FC */ stw r0, 0xfc(r28)
/* 80151848 0014D688 90 1C 01 00 */ stw r0, 0x100(r28)
/* 8015184C 0014D68C 41 82 00 08 */ beq lbl_80151854
/* 80151850 0014D690 48 00 10 11 */ bl MoDeallocateImage__FP10MoSdkImage
lbl_80151854:
/* 80151854 0014D694 80 9C 00 0C */ lwz r4, 0xc(r28)
/* 80151858 0014D698 38 00 00 00 */ li r0, 0
/* 8015185C 0014D69C 90 1C 01 08 */ stw r0, 0x108(r28)
/* 80151860 0014D6A0 28 04 00 08 */ cmplwi r4, 8
/* 80151864 0014D6A4 90 1C 00 28 */ stw r0, 0x28(r28)
/* 80151868 0014D6A8 90 1C 00 2C */ stw r0, 0x2c(r28)
/* 8015186C 0014D6AC 90 1C 00 30 */ stw r0, 0x30(r28)
/* 80151870 0014D6B0 90 1C 00 34 */ stw r0, 0x34(r28)
/* 80151874 0014D6B4 90 1C 00 38 */ stw r0, 0x38(r28)
/* 80151878 0014D6B8 90 1C 00 3C */ stw r0, 0x3c(r28)
/* 8015187C 0014D6BC 90 1C 00 1C */ stw r0, 0x1c(r28)
/* 80151880 0014D6C0 41 81 00 5C */ bgt lbl_801518DC
/* 80151884 0014D6C4 3C 60 80 45 */ lis r3, $$23317@ha
/* 80151888 0014D6C8 54 80 10 3A */ slwi r0, r4, 2
/* 8015188C 0014D6CC 38 63 80 EC */ addi r3, r3, $$23317@l
/* 80151890 0014D6D0 7C 63 00 2E */ lwzx r3, r3, r0
/* 80151894 0014D6D4 7C 69 03 A6 */ mtctr r3
/* 80151898 0014D6D8 4E 80 04 20 */ bctr
/* 8015189C 0014D6DC 38 BF 00 1C */ addi r5, r31, 0x1c
/* 801518A0 0014D6E0 48 00 00 50 */ b lbl_801518F0
/* 801518A4 0014D6E4 38 BF 00 28 */ addi r5, r31, 0x28
/* 801518A8 0014D6E8 48 00 00 48 */ b lbl_801518F0
/* 801518AC 0014D6EC 38 BF 00 34 */ addi r5, r31, 0x34
/* 801518B0 0014D6F0 48 00 00 40 */ b lbl_801518F0
/* 801518B4 0014D6F4 38 BF 00 40 */ addi r5, r31, 0x40
/* 801518B8 0014D6F8 48 00 00 38 */ b lbl_801518F0
/* 801518BC 0014D6FC 38 BF 00 54 */ addi r5, r31, 0x54
/* 801518C0 0014D700 48 00 00 30 */ b lbl_801518F0
/* 801518C4 0014D704 38 BF 00 60 */ addi r5, r31, 0x60
/* 801518C8 0014D708 48 00 00 28 */ b lbl_801518F0
/* 801518CC 0014D70C 38 BF 00 6C */ addi r5, r31, 0x6c
/* 801518D0 0014D710 48 00 00 20 */ b lbl_801518F0
/* 801518D4 0014D714 38 BF 00 7C */ addi r5, r31, 0x7c
/* 801518D8 0014D718 48 00 00 18 */ b lbl_801518F0
lbl_801518DC:
/* 801518DC 0014D71C 7F 83 E3 78 */ mr r3, r28
/* 801518E0 0014D720 38 9F 00 88 */ addi r4, r31, 0x88
/* 801518E4 0014D724 4C C6 31 82 */ crclr 6
/* 801518E8 0014D728 4B FF E1 69 */ bl MoThrowError
/* 801518EC 0014D72C 38 AD 86 A0 */ addi r5, r13, $$23196-_SDA_BASE_
lbl_801518F0:
/* 801518F0 0014D730 7F 83 E3 78 */ mr r3, r28
/* 801518F4 0014D734 38 DF 00 1C */ addi r6, r31, 0x1c
/* 801518F8 0014D738 38 9F 00 98 */ addi r4, r31, 0x98
/* 801518FC 0014D73C 4C C6 31 82 */ crclr 6
/* 80151900 0014D740 4B FF E0 81 */ bl MoLog
/* 80151904 0014D744 38 00 00 00 */ li r0, 0
/* 80151908 0014D748 90 1C 00 0C */ stw r0, 0xc(r28)
/* 8015190C 0014D74C 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 80151910 0014D750 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 80151914 0014D754 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 80151918 0014D758 83 81 00 10 */ lwz r28, 0x10(r1)
/* 8015191C 0014D75C 80 01 00 24 */ lwz r0, 0x24(r1)
/* 80151920 0014D760 7C 08 03 A6 */ mtlr r0
/* 80151924 0014D764 38 21 00 20 */ addi r1, r1, 0x20
/* 80151928 0014D768 4E 80 00 20 */ blr
/* 8015192C 0014D76C 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.global stateToString__5MoSdkF9SDK_State
stateToString__5MoSdkF9SDK_State:
/* 80151930 0014D770 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 80151934 0014D774 7C 08 02 A6 */ mflr r0
/* 80151938 0014D778 28 04 00 08 */ cmplwi r4, 8
/* 8015193C 0014D77C 3C C0 80 44 */ lis r6, $$23186@ha
/* 80151940 0014D780 90 01 00 14 */ stw r0, 0x14(r1)
/* 80151944 0014D784 38 C6 7E C8 */ addi r6, r6, $$23186@l
/* 80151948 0014D788 41 81 00 5C */ bgt lbl_801519A4
/* 8015194C 0014D78C 3C A0 80 45 */ lis r5, $$23329@ha
/* 80151950 0014D790 54 80 10 3A */ slwi r0, r4, 2
/* 80151954 0014D794 38 A5 81 10 */ addi r5, r5, $$23329@l
/* 80151958 0014D798 7C A5 00 2E */ lwzx r5, r5, r0
/* 8015195C 0014D79C 7C A9 03 A6 */ mtctr r5
/* 80151960 0014D7A0 4E 80 04 20 */ bctr
/* 80151964 0014D7A4 38 66 00 1C */ addi r3, r6, 0x1c
/* 80151968 0014D7A8 48 00 00 4C */ b lbl_801519B4
/* 8015196C 0014D7AC 38 66 00 28 */ addi r3, r6, 0x28
/* 80151970 0014D7B0 48 00 00 44 */ b lbl_801519B4
/* 80151974 0014D7B4 38 66 00 34 */ addi r3, r6, 0x34
/* 80151978 0014D7B8 48 00 00 3C */ b lbl_801519B4
/* 8015197C 0014D7BC 38 66 00 40 */ addi r3, r6, 0x40
/* 80151980 0014D7C0 48 00 00 34 */ b lbl_801519B4
/* 80151984 0014D7C4 38 66 00 54 */ addi r3, r6, 0x54
/* 80151988 0014D7C8 48 00 00 2C */ b lbl_801519B4
/* 8015198C 0014D7CC 38 66 00 60 */ addi r3, r6, 0x60
/* 80151990 0014D7D0 48 00 00 24 */ b lbl_801519B4
/* 80151994 0014D7D4 38 66 00 6C */ addi r3, r6, 0x6c
/* 80151998 0014D7D8 48 00 00 1C */ b lbl_801519B4
/* 8015199C 0014D7DC 38 66 00 7C */ addi r3, r6, 0x7c
/* 801519A0 0014D7E0 48 00 00 14 */ b lbl_801519B4
lbl_801519A4:
/* 801519A4 0014D7E4 38 86 00 88 */ addi r4, r6, 0x88
/* 801519A8 0014D7E8 4C C6 31 82 */ crclr 6
/* 801519AC 0014D7EC 4B FF E0 A5 */ bl MoThrowError
/* 801519B0 0014D7F0 38 6D 86 A0 */ addi r3, r13, $$23196-_SDA_BASE_
lbl_801519B4:
/* 801519B4 0014D7F4 80 01 00 14 */ lwz r0, 0x14(r1)
/* 801519B8 0014D7F8 7C 08 03 A6 */ mtlr r0
/* 801519BC 0014D7FC 38 21 00 10 */ addi r1, r1, 0x10
/* 801519C0 0014D800 4E 80 00 20 */ blr
/* 801519C4 0014D804 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 801519C8 0014D808 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
/* 801519CC 0014D80C 00 00 00 00 */ .4byte 0x00000000 /* unknown instruction */
.global setState__5MoSdkF9SDK_State
setState__5MoSdkF9SDK_State:
/* 801519D0 0014D810 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 801519D4 0014D814 7C 08 02 A6 */ mflr r0
/* 801519D8 0014D818 90 01 00 24 */ stw r0, 0x24(r1)
/* 801519DC 0014D81C 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 801519E0 0014D820 3F E0 80 44 */ lis r31, $$23186@ha
/* 801519E4 0014D824 3B FF 7E C8 */ addi r31, r31, $$23186@l
/* 801519E8 0014D828 93 C1 00 18 */ stw r30, 0x18(r1)
/* 801519EC 0014D82C 93 A1 00 14 */ stw r29, 0x14(r1)
/* 801519F0 0014D830 7C 9D 23 78 */ mr r29, r4
/* 801519F4 0014D834 93 81 00 10 */ stw r28, 0x10(r1)
/* 801519F8 0014D838 7C 7C 1B 78 */ mr r28, r3
/* 801519FC 0014D83C 80 03 00 0C */ lwz r0, 0xc(r3)
/* 80151A00 0014D840 28 00 00 08 */ cmplwi r0, 8
/* 80151A04 0014D844 41 81 00 5C */ bgt lbl_80151A60
/* 80151A08 0014D848 3C 60 80 45 */ lis r3, $$23352@ha
/* 80151A0C 0014D84C 54 00 10 3A */ slwi r0, r0, 2
/* 80151A10 0014D850 38 63 81 58 */ addi r3, r3, $$23352@l
/* 80151A14 0014D854 7C 63 00 2E */ lwzx r3, r3, r0
/* 80151A18 0014D858 7C 69 03 A6 */ mtctr r3
/* 80151A1C 0014D85C 4E 80 04 20 */ bctr
/* 80151A20 0014D860 3B DF 00 1C */ addi r30, r31, 0x1c
/* 80151A24 0014D864 48 00 00 50 */ b lbl_80151A74
/* 80151A28 0014D868 3B DF 00 28 */ addi r30, r31, 0x28
/* 80151A2C 0014D86C 48 00 00 48 */ b lbl_80151A74
/* 80151A30 0014D870 3B DF 00 34 */ addi r30, r31, 0x34
/* 80151A34 0014D874 48 00 00 40 */ b lbl_80151A74
/* 80151A38 0014D878 3B DF 00 40 */ addi r30, r31, 0x40
/* 80151A3C 0014D87C 48 00 00 38 */ b lbl_80151A74
/* 80151A40 0014D880 3B DF 00 54 */ addi r30, r31, 0x54
/* 80151A44 0014D884 48 00 00 30 */ b lbl_80151A74
/* 80151A48 0014D888 3B DF 00 60 */ addi r30, r31, 0x60
/* 80151A4C 0014D88C 48 00 00 28 */ b lbl_80151A74
/* 80151A50 0014D890 3B DF 00 6C */ addi r30, r31, 0x6c
/* 80151A54 0014D894 48 00 00 20 */ b lbl_80151A74
/* 80151A58 0014D898 3B DF 00 7C */ addi r30, r31, 0x7c
/* 80151A5C 0014D89C 48 00 00 18 */ b lbl_80151A74
lbl_80151A60:
/* 80151A60 0014D8A0 7F 83 E3 78 */ mr r3, r28
/* 80151A64 0014D8A4 38 9F 00 88 */ addi r4, r31, 0x88
/* 80151A68 0014D8A8 4C C6 31 82 */ crclr 6
/* 80151A6C 0014D8AC 4B FF DF E5 */ bl MoThrowError
/* 80151A70 0014D8B0 3B CD 86 A0 */ addi r30, r13, $$23196-_SDA_BASE_
lbl_80151A74:
/* 80151A74 0014D8B4 28 1D 00 08 */ cmplwi r29, 8
/* 80151A78 0014D8B8 41 81 00 5C */ bgt lbl_80151AD4
/* 80151A7C 0014D8BC 3C 60 80 45 */ lis r3, $$23353@ha
/* 80151A80 0014D8C0 57 A0 10 3A */ slwi r0, r29, 2
/* 80151A84 0014D8C4 38 63 81 34 */ addi r3, r3, $$23353@l
/* 80151A88 0014D8C8 7C 63 00 2E */ lwzx r3, r3, r0
/* 80151A8C 0014D8CC 7C 69 03 A6 */ mtctr r3
/* 80151A90 0014D8D0 4E 80 04 20 */ bctr
/* 80151A94 0014D8D4 38 DF 00 1C */ addi r6, r31, 0x1c
/* 80151A98 0014D8D8 48 00 00 50 */ b lbl_80151AE8
/* 80151A9C 0014D8DC 38 DF 00 28 */ addi r6, r31, 0x28
/* 80151AA0 0014D8E0 48 00 00 48 */ b lbl_80151AE8
/* 80151AA4 0014D8E4 38 DF 00 34 */ addi r6, r31, 0x34
/* 80151AA8 0014D8E8 48 00 00 40 */ b lbl_80151AE8
/* 80151AAC 0014D8EC 38 DF 00 40 */ addi r6, r31, 0x40
/* 80151AB0 0014D8F0 48 00 00 38 */ b lbl_80151AE8
/* 80151AB4 0014D8F4 38 DF 00 54 */ addi r6, r31, 0x54
/* 80151AB8 0014D8F8 48 00 00 30 */ b lbl_80151AE8
/* 80151ABC 0014D8FC 38 DF 00 60 */ addi r6, r31, 0x60
/* 80151AC0 0014D900 48 00 00 28 */ b lbl_80151AE8
/* 80151AC4 0014D904 38 DF 00 6C */ addi r6, r31, 0x6c
/* 80151AC8 0014D908 48 00 00 20 */ b lbl_80151AE8
/* 80151ACC 0014D90C 38 DF 00 7C */ addi r6, r31, 0x7c
/* 80151AD0 0014D910 48 00 00 18 */ b lbl_80151AE8
lbl_80151AD4:
/* 80151AD4 0014D914 7F 83 E3 78 */ mr r3, r28
/* 80151AD8 0014D918 38 9F 00 88 */ addi r4, r31, 0x88
/* 80151ADC 0014D91C 4C C6 31 82 */ crclr 6
/* 80151AE0 0014D920 4B FF DF 71 */ bl MoThrowError
/* 80151AE4 0014D924 38 CD 86 A0 */ addi r6, r13, $$23196-_SDA_BASE_
lbl_80151AE8:
/* 80151AE8 0014D928 7F 83 E3 78 */ mr r3, r28
/* 80151AEC 0014D92C 7F C5 F3 78 */ mr r5, r30
/* 80151AF0 0014D930 38 9F 00 98 */ addi r4, r31, 0x98
/* 80151AF4 0014D934 4C C6 31 82 */ crclr 6
/* 80151AF8 0014D938 4B FF DE 89 */ bl MoLog
/* 80151AFC 0014D93C 93 BC 00 0C */ stw r29, 0xc(r28)
/* 80151B00 0014D940 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 80151B04 0014D944 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 80151B08 0014D948 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 80151B0C 0014D94C 83 81 00 10 */ lwz r28, 0x10(r1)
/* 80151B10 0014D950 80 01 00 24 */ lwz r0, 0x24(r1)
/* 80151B14 0014D954 7C 08 03 A6 */ mtlr r0
/* 80151B18 0014D958 38 21 00 20 */ addi r1, r1, 0x20
/* 80151B1C 0014D95C 4E 80 00 20 */ blr
.section .data5, "wa" # 0x80421040 - 0x80496700
.global $$23186
$$23186:
.incbin "baserom.dol", 0x443FC8, 0x1C
.global $$23187
$$23187:
.incbin "baserom.dol", 0x443FE4, 0xC
.global $$23188
$$23188:
.incbin "baserom.dol", 0x443FF0, 0xC
.global $$23189
$$23189:
.incbin "baserom.dol", 0x443FFC, 0xC
.global $$23190
$$23190:
.incbin "baserom.dol", 0x444008, 0x14
.global $$23191
$$23191:
.incbin "baserom.dol", 0x44401C, 0xC
.global $$23192
$$23192:
.incbin "baserom.dol", 0x444028, 0xC
.global $$23193
$$23193:
.incbin "baserom.dol", 0x444034, 0x10
.global $$23194
$$23194:
.incbin "baserom.dol", 0x444044, 0xC
.global $$23195
$$23195:
.incbin "baserom.dol", 0x444050, 0x10
.global $$23197
$$23197:
.incbin "baserom.dol", 0x444060, 0x10
.global $$23198
$$23198:
.incbin "baserom.dol", 0x444070, 0x30
.global $$23199
$$23199:
.incbin "baserom.dol", 0x4440A0, 0x20
.global $$23200
$$23200:
.incbin "baserom.dol", 0x4440C0, 0x18
.global $$23205
$$23205:
.incbin "baserom.dol", 0x4440D8, 0x24
.global $$23204
$$23204:
.incbin "baserom.dol", 0x4440FC, 0x24
.global $$23203
$$23203:
.incbin "baserom.dol", 0x444120, 0x24
.global $$23242
$$23242:
.incbin "baserom.dol", 0x444144, 0x24
.global $$23241
$$23241:
.incbin "baserom.dol", 0x444168, 0x24
.global $$23271
$$23271:
.incbin "baserom.dol", 0x44418C, 0x24
.global $$23270
$$23270:
.incbin "baserom.dol", 0x4441B0, 0x24
.global $$23315
$$23315:
.incbin "baserom.dol", 0x4441D4, 0x18
.global $$23317
$$23317:
.incbin "baserom.dol", 0x4441EC, 0x24
.global $$23329
$$23329:
.incbin "baserom.dol", 0x444210, 0x24
.global $$23353
$$23353:
.incbin "baserom.dol", 0x444234, 0x24
.global $$23352
$$23352:
.incbin "baserom.dol", 0x444258, 0x28
.section .data6, "wa" # 0x80556420 - 0x8055C6E0
.global $$23196
$$23196:
.incbin "baserom.dol", 0x492EA0, 0x8