prime/asm/musyx/stream.s

4822 lines
232 KiB
ArmAsm
Raw Normal View History

.include "macros.inc"
.section .bss
.global streamInfo
streamInfo:
.skip 0x1900
.section .sbss
.balign 4
nextPublicID:
.skip 0x4
streamCallDelay:
.skip 0x1
streamCallCnt:
.skip 0x3
.section .sdata2
.global lbl_805AF270
lbl_805AF270:
.incbin "baserom.dol", 0x3FBB10, 0x8
.global lbl_805AF278
lbl_805AF278:
.incbin "baserom.dol", 0x3FBB18, 0x8
.global lbl_805AF280
lbl_805AF280:
.incbin "baserom.dol", 0x3FBB20, 0x8
.section .text, "ax"
.global streamInit
streamInit:
/* 8039C864 003997C4 3C 60 80 55 */ lis r3, synthInfo@ha
/* 8039C868 003997C8 38 A0 00 00 */ li r5, 0
/* 8039C86C 003997CC 38 83 00 50 */ addi r4, r3, synthInfo@l
/* 8039C870 003997D0 38 00 00 03 */ li r0, 3
/* 8039C874 003997D4 88 64 02 10 */ lbz r3, 0x210(r4)
/* 8039C878 003997D8 38 E0 00 00 */ li r7, 0
/* 8039C87C 003997DC 98 AD AE 95 */ stb r5, streamCallCnt@sda21(r13)
/* 8039C880 003997E0 2C 03 00 00 */ cmpwi r3, 0
/* 8039C884 003997E4 98 0D AE 94 */ stb r0, streamCallDelay@sda21(r13)
/* 8039C888 003997E8 40 81 00 8C */ ble lbl_8039C914
/* 8039C88C 003997EC 2C 03 00 08 */ cmpwi r3, 8
/* 8039C890 003997F0 38 C3 FF F8 */ addi r6, r3, -8
/* 8039C894 003997F4 40 81 00 4C */ ble lbl_8039C8E0
/* 8039C898 003997F8 38 06 00 07 */ addi r0, r6, 7
/* 8039C89C 003997FC 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039C8A0 00399800 54 00 E8 FE */ srwi r0, r0, 3
/* 8039C8A4 00399804 38 63 13 F8 */ addi r3, r3, streamInfo@l
/* 8039C8A8 00399808 7C 09 03 A6 */ mtctr r0
/* 8039C8AC 0039980C 2C 06 00 00 */ cmpwi r6, 0
/* 8039C8B0 00399810 40 81 00 30 */ ble lbl_8039C8E0
lbl_8039C8B4:
/* 8039C8B4 00399814 98 A3 00 0C */ stb r5, 0xc(r3)
/* 8039C8B8 00399818 38 E7 00 08 */ addi r7, r7, 8
/* 8039C8BC 0039981C 98 A3 00 70 */ stb r5, 0x70(r3)
/* 8039C8C0 00399820 98 A3 00 D4 */ stb r5, 0xd4(r3)
/* 8039C8C4 00399824 98 A3 01 38 */ stb r5, 0x138(r3)
/* 8039C8C8 00399828 98 A3 01 9C */ stb r5, 0x19c(r3)
/* 8039C8CC 0039982C 98 A3 02 00 */ stb r5, 0x200(r3)
/* 8039C8D0 00399830 98 A3 02 64 */ stb r5, 0x264(r3)
/* 8039C8D4 00399834 98 A3 02 C8 */ stb r5, 0x2c8(r3)
/* 8039C8D8 00399838 38 63 03 20 */ addi r3, r3, 0x320
/* 8039C8DC 0039983C 42 00 FF D8 */ bdnz lbl_8039C8B4
lbl_8039C8E0:
/* 8039C8E0 00399840 88 C4 02 10 */ lbz r6, 0x210(r4)
/* 8039C8E4 00399844 1C A7 00 64 */ mulli r5, r7, 0x64
/* 8039C8E8 00399848 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039C8EC 0039984C 7C 07 30 50 */ subf r0, r7, r6
/* 8039C8F0 00399850 38 83 13 F8 */ addi r4, r3, streamInfo@l
/* 8039C8F4 00399854 38 60 00 00 */ li r3, 0
/* 8039C8F8 00399858 7C 84 2A 14 */ add r4, r4, r5
/* 8039C8FC 0039985C 7C 09 03 A6 */ mtctr r0
/* 8039C900 00399860 7C 07 30 00 */ cmpw r7, r6
/* 8039C904 00399864 40 80 00 10 */ bge lbl_8039C914
lbl_8039C908:
/* 8039C908 00399868 98 64 00 0C */ stb r3, 0xc(r4)
/* 8039C90C 0039986C 38 84 00 64 */ addi r4, r4, 0x64
/* 8039C910 00399870 42 00 FF F8 */ bdnz lbl_8039C908
lbl_8039C914:
/* 8039C914 00399874 38 00 00 00 */ li r0, 0
/* 8039C918 00399878 90 0D AE 90 */ stw r0, nextPublicID@sda21(r13)
/* 8039C91C 0039987C 4E 80 00 20 */ blr
.global SetHWMix
SetHWMix:
/* 8039C920 00399880 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 8039C924 00399884 7C 08 02 A6 */ mflr r0
/* 8039C928 00399888 3C E0 43 30 */ lis r7, 0x4330
/* 8039C92C 0039988C C8 62 D5 58 */ lfd f3, lbl_805AF278@sda21(r2)
/* 8039C930 00399890 90 01 00 24 */ stw r0, 0x24(r1)
/* 8039C934 00399894 38 80 00 00 */ li r4, 0
/* 8039C938 00399898 C0 82 D5 50 */ lfs f4, lbl_805AF270@sda21(r2)
/* 8039C93C 0039989C 88 C3 00 59 */ lbz r6, 0x59(r3)
/* 8039C940 003998A0 88 A3 00 5C */ lbz r5, 0x5c(r3)
/* 8039C944 003998A4 90 C1 00 0C */ stw r6, 0xc(r1)
/* 8039C948 003998A8 88 03 00 5D */ lbz r0, 0x5d(r3)
/* 8039C94C 003998AC 90 E1 00 08 */ stw r7, 8(r1)
/* 8039C950 003998B0 88 C3 00 5A */ lbz r6, 0x5a(r3)
/* 8039C954 003998B4 C8 01 00 08 */ lfd f0, 8(r1)
/* 8039C958 003998B8 90 A1 00 14 */ stw r5, 0x14(r1)
/* 8039C95C 003998BC 54 C5 80 1E */ slwi r5, r6, 0x10
/* 8039C960 003998C0 EC 20 18 28 */ fsubs f1, f0, f3
/* 8039C964 003998C4 88 C3 00 5B */ lbz r6, 0x5b(r3)
/* 8039C968 003998C8 90 E1 00 10 */ stw r7, 0x10(r1)
/* 8039C96C 003998CC 80 63 00 4C */ lwz r3, 0x4c(r3)
/* 8039C970 003998D0 54 C6 80 1E */ slwi r6, r6, 0x10
/* 8039C974 003998D4 C8 01 00 10 */ lfd f0, 0x10(r1)
/* 8039C978 003998D8 90 01 00 1C */ stw r0, 0x1c(r1)
/* 8039C97C 003998DC EC 24 00 72 */ fmuls f1, f4, f1
/* 8039C980 003998E0 EC 40 18 28 */ fsubs f2, f0, f3
/* 8039C984 003998E4 90 E1 00 18 */ stw r7, 0x18(r1)
/* 8039C988 003998E8 C8 01 00 18 */ lfd f0, 0x18(r1)
/* 8039C98C 003998EC EC 44 00 B2 */ fmuls f2, f4, f2
/* 8039C990 003998F0 EC 00 18 28 */ fsubs f0, f0, f3
/* 8039C994 003998F4 EC 64 00 32 */ fmuls f3, f4, f0
/* 8039C998 003998F8 48 01 6D F1 */ bl hwSetVolume
/* 8039C99C 003998FC 80 01 00 24 */ lwz r0, 0x24(r1)
/* 8039C9A0 00399900 7C 08 03 A6 */ mtlr r0
/* 8039C9A4 00399904 38 21 00 20 */ addi r1, r1, 0x20
/* 8039C9A8 00399908 4E 80 00 20 */ blr
.global streamHandle
streamHandle:
/* 8039C9AC 0039990C 94 21 FF 90 */ stwu r1, -0x70(r1)
/* 8039C9B0 00399910 7C 08 02 A6 */ mflr r0
/* 8039C9B4 00399914 90 01 00 74 */ stw r0, 0x74(r1)
/* 8039C9B8 00399918 39 61 00 70 */ addi r11, r1, 0x70
/* 8039C9BC 0039991C 4B FE D0 C1 */ bl _savegpr_27
/* 8039C9C0 00399920 88 6D AE 95 */ lbz r3, streamCallCnt@sda21(r13)
/* 8039C9C4 00399924 28 03 00 00 */ cmplwi r3, 0
/* 8039C9C8 00399928 41 82 00 10 */ beq lbl_8039C9D8
/* 8039C9CC 0039992C 38 03 FF FF */ addi r0, r3, -1
/* 8039C9D0 00399930 98 0D AE 95 */ stb r0, streamCallCnt@sda21(r13)
/* 8039C9D4 00399934 48 00 08 6C */ b lbl_8039D240
lbl_8039C9D8:
/* 8039C9D8 00399938 88 8D AE 94 */ lbz r4, streamCallDelay@sda21(r13)
/* 8039C9DC 0039993C 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039C9E0 00399940 38 03 13 F8 */ addi r0, r3, streamInfo@l
/* 8039C9E4 00399944 3C 60 80 55 */ lis r3, synthInfo@ha
/* 8039C9E8 00399948 98 8D AE 95 */ stb r4, streamCallCnt@sda21(r13)
/* 8039C9EC 0039994C 7C 1C 03 78 */ mr r28, r0
/* 8039C9F0 00399950 3B E3 00 50 */ addi r31, r3, synthInfo@l
/* 8039C9F4 00399954 3B A0 00 00 */ li r29, 0
/* 8039C9F8 00399958 48 00 08 3C */ b lbl_8039D234
lbl_8039C9FC:
/* 8039C9FC 0039995C 88 1C 00 0C */ lbz r0, 0xc(r28)
/* 8039CA00 00399960 2C 00 00 02 */ cmpwi r0, 2
/* 8039CA04 00399964 41 82 01 CC */ beq lbl_8039CBD0
/* 8039CA08 00399968 40 80 08 24 */ bge lbl_8039D22C
/* 8039CA0C 0039996C 2C 00 00 01 */ cmpwi r0, 1
/* 8039CA10 00399970 40 80 00 08 */ bge lbl_8039CA18
/* 8039CA14 00399974 48 00 08 18 */ b lbl_8039D22C
lbl_8039CA18:
/* 8039CA18 00399978 80 1C 00 54 */ lwz r0, 0x54(r28)
/* 8039CA1C 0039997C 88 7C 00 0E */ lbz r3, 0xe(r28)
/* 8039CA20 00399980 64 00 40 00 */ oris r0, r0, 0x4000
/* 8039CA24 00399984 90 01 00 08 */ stw r0, 8(r1)
/* 8039CA28 00399988 48 01 72 BD */ bl sub_803b3ce4
/* 8039CA2C 0039998C 88 1C 00 0D */ lbz r0, 0xd(r28)
/* 8039CA30 00399990 38 A0 00 00 */ li r5, 0
/* 8039CA34 00399994 80 9C 00 18 */ lwz r4, 0x18(r28)
/* 8039CA38 00399998 2C 00 00 01 */ cmpwi r0, 1
/* 8039CA3C 0039999C 90 61 00 0C */ stw r3, 0xc(r1)
/* 8039CA40 003999A0 90 A1 00 14 */ stw r5, 0x14(r1)
/* 8039CA44 003999A4 90 81 00 18 */ stw r4, 0x18(r1)
/* 8039CA48 003999A8 90 A1 00 1C */ stw r5, 0x1c(r1)
/* 8039CA4C 003999AC 90 81 00 20 */ stw r4, 0x20(r1)
/* 8039CA50 003999B0 41 82 00 20 */ beq lbl_8039CA70
/* 8039CA54 003999B4 40 80 00 44 */ bge lbl_8039CA98
/* 8039CA58 003999B8 2C 00 00 00 */ cmpwi r0, 0
/* 8039CA5C 003999BC 40 80 00 08 */ bge lbl_8039CA64
/* 8039CA60 003999C0 48 00 00 38 */ b lbl_8039CA98
lbl_8039CA64:
/* 8039CA64 003999C4 38 00 00 02 */ li r0, 2
/* 8039CA68 003999C8 98 01 00 24 */ stb r0, 0x24(r1)
/* 8039CA6C 003999CC 48 00 00 2C */ b lbl_8039CA98
lbl_8039CA70:
/* 8039CA70 003999D0 38 7C 00 24 */ addi r3, r28, 0x24
/* 8039CA74 003999D4 38 00 00 04 */ li r0, 4
/* 8039CA78 003999D8 90 61 00 10 */ stw r3, 0x10(r1)
/* 8039CA7C 003999DC 80 7C 00 4C */ lwz r3, 0x4c(r28)
/* 8039CA80 003999E0 98 01 00 24 */ stb r0, 0x24(r1)
/* 8039CA84 003999E4 88 9C 00 0F */ lbz r4, 0xf(r28)
/* 8039CA88 003999E8 48 01 6B 5D */ bl hwSetStreamLoopPS
/* 8039CA8C 003999EC 88 1C 00 0F */ lbz r0, 0xf(r28)
/* 8039CA90 003999F0 98 1C 00 26 */ stb r0, 0x26(r28)
/* 8039CA94 003999F4 98 1C 00 27 */ stb r0, 0x27(r28)
lbl_8039CA98:
/* 8039CA98 003999F8 80 7C 00 4C */ lwz r3, 0x4c(r28)
/* 8039CA9C 003999FC 3C 80 00 01 */ lis r4, 0x0000FFFF@ha
/* 8039CAA0 00399A00 81 0D AE 78 */ lwz r8, synthVoice@sda21(r13)
/* 8039CAA4 00399A04 38 84 FF FF */ addi r4, r4, 0x0000FFFF@l
/* 8039CAA8 00399A08 1C E3 04 04 */ mulli r7, r3, 0x404
/* 8039CAAC 00399A0C 38 A1 00 08 */ addi r5, r1, 8
/* 8039CAB0 00399A10 38 C0 00 01 */ li r6, 1
/* 8039CAB4 00399A14 39 20 00 01 */ li r9, 1
/* 8039CAB8 00399A18 38 07 00 F4 */ addi r0, r7, 0xf4
/* 8039CABC 00399A1C 39 40 00 01 */ li r10, 1
/* 8039CAC0 00399A20 7D 08 00 2E */ lwzx r8, r8, r0
/* 8039CAC4 00399A24 38 E0 FF FF */ li r7, -1
/* 8039CAC8 00399A28 48 01 67 11 */ bl hwInitSamplePlayback
/* 8039CACC 00399A2C 80 BC 00 54 */ lwz r5, 0x54(r28)
/* 8039CAD0 00399A30 3C 80 43 30 */ lis r4, 0x4330
/* 8039CAD4 00399A34 3C 60 80 55 */ lis r3, synthInfo@ha
/* 8039CAD8 00399A38 90 81 00 28 */ stw r4, 0x28(r1)
/* 8039CADC 00399A3C 80 03 00 50 */ lwz r0, synthInfo@l(r3)
/* 8039CAE0 00399A40 90 A1 00 2C */ stw r5, 0x2c(r1)
/* 8039CAE4 00399A44 C8 42 D5 58 */ lfd f2, lbl_805AF278@sda21(r2)
/* 8039CAE8 00399A48 C8 01 00 28 */ lfd f0, 0x28(r1)
/* 8039CAEC 00399A4C 90 01 00 34 */ stw r0, 0x34(r1)
/* 8039CAF0 00399A50 EC 20 10 28 */ fsubs f1, f0, f2
/* 8039CAF4 00399A54 C0 62 D5 60 */ lfs f3, lbl_805AF280@sda21(r2)
/* 8039CAF8 00399A58 90 81 00 30 */ stw r4, 0x30(r1)
/* 8039CAFC 00399A5C 80 7C 00 4C */ lwz r3, 0x4c(r28)
/* 8039CB00 00399A60 C8 01 00 30 */ lfd f0, 0x30(r1)
/* 8039CB04 00399A64 EC 00 10 28 */ fsubs f0, f0, f2
/* 8039CB08 00399A68 EC 01 00 24 */ fdivs f0, f1, f0
/* 8039CB0C 00399A6C EC 03 00 32 */ fmuls f0, f3, f0
/* 8039CB10 00399A70 FC 00 00 1E */ fctiwz f0, f0
/* 8039CB14 00399A74 D8 01 00 38 */ stfd f0, 0x38(r1)
/* 8039CB18 00399A78 80 81 00 3C */ lwz r4, 0x3c(r1)
/* 8039CB1C 00399A7C 48 01 6B 41 */ bl hwSetPitch
/* 8039CB20 00399A80 88 BC 00 59 */ lbz r5, 0x59(r28)
/* 8039CB24 00399A84 3C E0 43 30 */ lis r7, 0x4330
/* 8039CB28 00399A88 88 7C 00 5C */ lbz r3, 0x5c(r28)
/* 8039CB2C 00399A8C 38 80 00 00 */ li r4, 0
/* 8039CB30 00399A90 88 1C 00 5D */ lbz r0, 0x5d(r28)
/* 8039CB34 00399A94 90 A1 00 44 */ stw r5, 0x44(r1)
/* 8039CB38 00399A98 C8 62 D5 58 */ lfd f3, lbl_805AF278@sda21(r2)
/* 8039CB3C 00399A9C 90 E1 00 40 */ stw r7, 0x40(r1)
/* 8039CB40 00399AA0 88 BC 00 5A */ lbz r5, 0x5a(r28)
/* 8039CB44 00399AA4 C8 01 00 40 */ lfd f0, 0x40(r1)
/* 8039CB48 00399AA8 90 61 00 4C */ stw r3, 0x4c(r1)
/* 8039CB4C 00399AAC 54 A5 80 1E */ slwi r5, r5, 0x10
/* 8039CB50 00399AB0 88 7C 00 5B */ lbz r3, 0x5b(r28)
/* 8039CB54 00399AB4 EC 20 18 28 */ fsubs f1, f0, f3
/* 8039CB58 00399AB8 90 E1 00 48 */ stw r7, 0x48(r1)
/* 8039CB5C 00399ABC C0 82 D5 50 */ lfs f4, lbl_805AF270@sda21(r2)
/* 8039CB60 00399AC0 54 66 80 1E */ slwi r6, r3, 0x10
/* 8039CB64 00399AC4 C8 01 00 48 */ lfd f0, 0x48(r1)
/* 8039CB68 00399AC8 90 01 00 54 */ stw r0, 0x54(r1)
/* 8039CB6C 00399ACC EC 24 00 72 */ fmuls f1, f4, f1
/* 8039CB70 00399AD0 EC 40 18 28 */ fsubs f2, f0, f3
/* 8039CB74 00399AD4 80 7C 00 4C */ lwz r3, 0x4c(r28)
/* 8039CB78 00399AD8 90 E1 00 50 */ stw r7, 0x50(r1)
/* 8039CB7C 00399ADC C8 01 00 50 */ lfd f0, 0x50(r1)
/* 8039CB80 00399AE0 EC 44 00 B2 */ fmuls f2, f4, f2
/* 8039CB84 00399AE4 EC 00 18 28 */ fsubs f0, f0, f3
/* 8039CB88 00399AE8 EC 64 00 32 */ fmuls f3, f4, f0
/* 8039CB8C 00399AEC 48 01 6B FD */ bl hwSetVolume
/* 8039CB90 00399AF0 80 7C 00 4C */ lwz r3, 0x4c(r28)
/* 8039CB94 00399AF4 88 9C 00 60 */ lbz r4, 0x60(r28)
/* 8039CB98 00399AF8 48 01 6A 61 */ bl hwStart
/* 8039CB9C 00399AFC 38 00 00 02 */ li r0, 2
/* 8039CBA0 00399B00 98 1C 00 0C */ stb r0, 0xc(r28)
/* 8039CBA4 00399B04 80 1C 00 08 */ lwz r0, 8(r28)
/* 8039CBA8 00399B08 54 00 03 9D */ rlwinm. r0, r0, 0, 0xe, 0xe
/* 8039CBAC 00399B0C 40 82 06 80 */ bne lbl_8039D22C
/* 8039CBB0 00399B10 80 7C 00 14 */ lwz r3, 0x14(r28)
/* 8039CBB4 00399B14 38 80 00 00 */ li r4, 0
/* 8039CBB8 00399B18 80 BC 00 1C */ lwz r5, 0x1c(r28)
/* 8039CBBC 00399B1C 38 E0 00 00 */ li r7, 0
/* 8039CBC0 00399B20 88 DC 00 0E */ lbz r6, 0xe(r28)
/* 8039CBC4 00399B24 39 00 00 00 */ li r8, 0
/* 8039CBC8 00399B28 48 01 70 4D */ bl hwFlushStream
/* 8039CBCC 00399B2C 48 00 06 60 */ b lbl_8039D22C
lbl_8039CBD0:
/* 8039CBD0 00399B30 80 7C 00 4C */ lwz r3, 0x4c(r28)
/* 8039CBD4 00399B34 48 01 6F 9D */ bl sub_803b3b70
/* 8039CBD8 00399B38 88 BC 00 0D */ lbz r5, 0xd(r28)
/* 8039CBDC 00399B3C 28 05 00 01 */ cmplwi r5, 1
/* 8039CBE0 00399B40 40 82 00 24 */ bne lbl_8039CC04
/* 8039CBE4 00399B44 3C 80 24 92 */ lis r4, 0x24924925@ha
/* 8039CBE8 00399B48 38 04 49 25 */ addi r0, r4, 0x24924925@l
/* 8039CBEC 00399B4C 7C 80 18 16 */ mulhwu r4, r0, r3
/* 8039CBF0 00399B50 7C 04 18 50 */ subf r0, r4, r3
/* 8039CBF4 00399B54 54 00 F8 7E */ srwi r0, r0, 1
/* 8039CBF8 00399B58 7C 00 22 14 */ add r0, r0, r4
/* 8039CBFC 00399B5C 54 00 E8 FE */ srwi r0, r0, 3
/* 8039CC00 00399B60 1C 60 00 0E */ mulli r3, r0, 0xe
lbl_8039CC04:
/* 8039CC04 00399B64 80 1C 00 20 */ lwz r0, 0x20(r28)
/* 8039CC08 00399B68 7C 00 18 40 */ cmplw r0, r3
/* 8039CC0C 00399B6C 41 82 06 20 */ beq lbl_8039D22C
/* 8039CC10 00399B70 40 80 01 B8 */ bge lbl_8039CDC8
/* 8039CC14 00399B74 2C 05 00 01 */ cmpwi r5, 1
/* 8039CC18 00399B78 41 82 00 C8 */ beq lbl_8039CCE0
/* 8039CC1C 00399B7C 40 80 05 D0 */ bge lbl_8039D1EC
/* 8039CC20 00399B80 2C 05 00 00 */ cmpwi r5, 0
/* 8039CC24 00399B84 40 80 00 08 */ bge lbl_8039CC2C
/* 8039CC28 00399B88 48 00 05 C4 */ b lbl_8039D1EC
lbl_8039CC2C:
/* 8039CC2C 00399B8C 80 DC 00 14 */ lwz r6, 0x14(r28)
/* 8039CC30 00399B90 54 05 08 3C */ slwi r5, r0, 1
/* 8039CC34 00399B94 81 9C 00 10 */ lwz r12, 0x10(r28)
/* 8039CC38 00399B98 7C 80 18 50 */ subf r4, r0, r3
/* 8039CC3C 00399B9C 7C 66 2A 14 */ add r3, r6, r5
/* 8039CC40 00399BA0 80 FC 00 50 */ lwz r7, 0x50(r28)
/* 8039CC44 00399BA4 38 A0 00 00 */ li r5, 0
/* 8039CC48 00399BA8 38 C0 00 00 */ li r6, 0
/* 8039CC4C 00399BAC 7D 89 03 A6 */ mtctr r12
/* 8039CC50 00399BB0 4E 80 04 21 */ bctrl
/* 8039CC54 00399BB4 28 03 00 00 */ cmplwi r3, 0
/* 8039CC58 00399BB8 41 82 05 94 */ beq lbl_8039D1EC
/* 8039CC5C 00399BBC 88 1C 00 0C */ lbz r0, 0xc(r28)
/* 8039CC60 00399BC0 28 00 00 02 */ cmplwi r0, 2
/* 8039CC64 00399BC4 40 82 05 88 */ bne lbl_8039D1EC
/* 8039CC68 00399BC8 80 BC 00 20 */ lwz r5, 0x20(r28)
/* 8039CC6C 00399BCC 80 DC 00 18 */ lwz r6, 0x18(r28)
/* 8039CC70 00399BD0 7C 85 1A 14 */ add r4, r5, r3
/* 8039CC74 00399BD4 80 1C 00 08 */ lwz r0, 8(r28)
/* 8039CC78 00399BD8 7C 64 33 96 */ divwu r3, r4, r6
/* 8039CC7C 00399BDC 54 00 03 9D */ rlwinm. r0, r0, 0, 0xe, 0xe
/* 8039CC80 00399BE0 7C 03 31 D6 */ mullw r0, r3, r6
/* 8039CC84 00399BE4 7F 60 20 50 */ subf r27, r0, r4
/* 8039CC88 00399BE8 40 82 00 50 */ bne lbl_8039CCD8
/* 8039CC8C 00399BEC 28 1B 00 00 */ cmplwi r27, 0
/* 8039CC90 00399BF0 41 82 00 28 */ beq lbl_8039CCB8
/* 8039CC94 00399BF4 7C 05 D8 50 */ subf r0, r5, r27
/* 8039CC98 00399BF8 80 7C 00 14 */ lwz r3, 0x14(r28)
/* 8039CC9C 00399BFC 88 DC 00 0E */ lbz r6, 0xe(r28)
/* 8039CCA0 00399C00 54 A4 08 3C */ slwi r4, r5, 1
/* 8039CCA4 00399C04 54 05 08 3C */ slwi r5, r0, 1
/* 8039CCA8 00399C08 38 E0 00 00 */ li r7, 0
/* 8039CCAC 00399C0C 39 00 00 00 */ li r8, 0
/* 8039CCB0 00399C10 48 01 6F 65 */ bl hwFlushStream
/* 8039CCB4 00399C14 48 00 00 24 */ b lbl_8039CCD8
lbl_8039CCB8:
/* 8039CCB8 00399C18 7C 05 30 50 */ subf r0, r5, r6
/* 8039CCBC 00399C1C 80 7C 00 14 */ lwz r3, 0x14(r28)
/* 8039CCC0 00399C20 88 DC 00 0E */ lbz r6, 0xe(r28)
/* 8039CCC4 00399C24 54 A4 08 3C */ slwi r4, r5, 1
/* 8039CCC8 00399C28 54 05 08 3C */ slwi r5, r0, 1
/* 8039CCCC 00399C2C 38 E0 00 00 */ li r7, 0
/* 8039CCD0 00399C30 39 00 00 00 */ li r8, 0
/* 8039CCD4 00399C34 48 01 6F 41 */ bl hwFlushStream
lbl_8039CCD8:
/* 8039CCD8 00399C38 93 7C 00 20 */ stw r27, 0x20(r28)
/* 8039CCDC 00399C3C 48 00 05 10 */ b lbl_8039D1EC
lbl_8039CCE0:
/* 8039CCE0 00399C40 3C 80 24 92 */ lis r4, 0x24924925@ha
/* 8039CCE4 00399C44 81 1C 00 14 */ lwz r8, 0x14(r28)
/* 8039CCE8 00399C48 38 84 49 25 */ addi r4, r4, 0x24924925@l
/* 8039CCEC 00399C4C 81 9C 00 10 */ lwz r12, 0x10(r28)
/* 8039CCF0 00399C50 7D 24 00 16 */ mulhwu r9, r4, r0
/* 8039CCF4 00399C54 80 FC 00 50 */ lwz r7, 0x50(r28)
/* 8039CCF8 00399C58 7C 80 18 50 */ subf r4, r0, r3
/* 8039CCFC 00399C5C 38 A0 00 00 */ li r5, 0
/* 8039CD00 00399C60 38 C0 00 00 */ li r6, 0
/* 8039CD04 00399C64 7C 09 00 50 */ subf r0, r9, r0
/* 8039CD08 00399C68 54 00 F8 7E */ srwi r0, r0, 1
/* 8039CD0C 00399C6C 7C 00 4A 14 */ add r0, r0, r9
/* 8039CD10 00399C70 54 1E 00 38 */ rlwinm r30, r0, 0, 0, 0x1c
/* 8039CD14 00399C74 7C 68 F2 14 */ add r3, r8, r30
/* 8039CD18 00399C78 7D 89 03 A6 */ mtctr r12
/* 8039CD1C 00399C7C 4E 80 04 21 */ bctrl
/* 8039CD20 00399C80 28 03 00 00 */ cmplwi r3, 0
/* 8039CD24 00399C84 41 82 04 C8 */ beq lbl_8039D1EC
/* 8039CD28 00399C88 88 1C 00 0C */ lbz r0, 0xc(r28)
/* 8039CD2C 00399C8C 28 00 00 02 */ cmplwi r0, 2
/* 8039CD30 00399C90 40 82 04 BC */ bne lbl_8039D1EC
/* 8039CD34 00399C94 80 1C 00 20 */ lwz r0, 0x20(r28)
/* 8039CD38 00399C98 80 9C 00 18 */ lwz r4, 0x18(r28)
/* 8039CD3C 00399C9C 7C A0 1A 14 */ add r5, r0, r3
/* 8039CD40 00399CA0 80 1C 00 08 */ lwz r0, 8(r28)
/* 8039CD44 00399CA4 7C 65 23 96 */ divwu r3, r5, r4
/* 8039CD48 00399CA8 54 00 03 9D */ rlwinm. r0, r0, 0, 0xe, 0xe
/* 8039CD4C 00399CAC 7C 03 21 D6 */ mullw r0, r3, r4
/* 8039CD50 00399CB0 7F 60 28 50 */ subf r27, r0, r5
/* 8039CD54 00399CB4 40 82 00 6C */ bne lbl_8039CDC0
/* 8039CD58 00399CB8 28 1B 00 00 */ cmplwi r27, 0
/* 8039CD5C 00399CBC 41 82 00 44 */ beq lbl_8039CDA0
/* 8039CD60 00399CC0 3C 60 24 92 */ lis r3, 0x24924925@ha
/* 8039CD64 00399CC4 38 1B 00 0D */ addi r0, r27, 0xd
/* 8039CD68 00399CC8 38 83 49 25 */ addi r4, r3, 0x24924925@l
/* 8039CD6C 00399CCC 80 7C 00 14 */ lwz r3, 0x14(r28)
/* 8039CD70 00399CD0 7C A4 00 16 */ mulhwu r5, r4, r0
/* 8039CD74 00399CD4 88 DC 00 0E */ lbz r6, 0xe(r28)
/* 8039CD78 00399CD8 7F C4 F3 78 */ mr r4, r30
/* 8039CD7C 00399CDC 38 E0 00 00 */ li r7, 0
/* 8039CD80 00399CE0 39 00 00 00 */ li r8, 0
/* 8039CD84 00399CE4 7C 05 00 50 */ subf r0, r5, r0
/* 8039CD88 00399CE8 54 00 F8 7E */ srwi r0, r0, 1
/* 8039CD8C 00399CEC 7C 00 2A 14 */ add r0, r0, r5
/* 8039CD90 00399CF0 54 00 00 38 */ rlwinm r0, r0, 0, 0, 0x1c
/* 8039CD94 00399CF4 7C BE 00 50 */ subf r5, r30, r0
/* 8039CD98 00399CF8 48 01 6E 7D */ bl hwFlushStream
/* 8039CD9C 00399CFC 48 00 00 24 */ b lbl_8039CDC0
lbl_8039CDA0:
/* 8039CDA0 00399D00 80 1C 00 1C */ lwz r0, 0x1c(r28)
/* 8039CDA4 00399D04 7F C4 F3 78 */ mr r4, r30
/* 8039CDA8 00399D08 80 7C 00 14 */ lwz r3, 0x14(r28)
/* 8039CDAC 00399D0C 38 E0 00 00 */ li r7, 0
/* 8039CDB0 00399D10 88 DC 00 0E */ lbz r6, 0xe(r28)
/* 8039CDB4 00399D14 7C BE 00 50 */ subf r5, r30, r0
/* 8039CDB8 00399D18 39 00 00 00 */ li r8, 0
/* 8039CDBC 00399D1C 48 01 6E 59 */ bl hwFlushStream
lbl_8039CDC0:
/* 8039CDC0 00399D20 93 7C 00 20 */ stw r27, 0x20(r28)
/* 8039CDC4 00399D24 48 00 04 28 */ b lbl_8039D1EC
lbl_8039CDC8:
/* 8039CDC8 00399D28 28 03 00 00 */ cmplwi r3, 0
/* 8039CDCC 00399D2C 40 82 01 C0 */ bne lbl_8039CF8C
/* 8039CDD0 00399D30 2C 05 00 01 */ cmpwi r5, 1
/* 8039CDD4 00399D34 41 82 00 CC */ beq lbl_8039CEA0
/* 8039CDD8 00399D38 40 80 04 14 */ bge lbl_8039D1EC
/* 8039CDDC 00399D3C 2C 05 00 00 */ cmpwi r5, 0
/* 8039CDE0 00399D40 40 80 00 08 */ bge lbl_8039CDE8
/* 8039CDE4 00399D44 48 00 04 08 */ b lbl_8039D1EC
lbl_8039CDE8:
/* 8039CDE8 00399D48 80 7C 00 18 */ lwz r3, 0x18(r28)
/* 8039CDEC 00399D4C 54 06 08 3C */ slwi r6, r0, 1
/* 8039CDF0 00399D50 80 FC 00 14 */ lwz r7, 0x14(r28)
/* 8039CDF4 00399D54 38 A0 00 00 */ li r5, 0
/* 8039CDF8 00399D58 81 9C 00 10 */ lwz r12, 0x10(r28)
/* 8039CDFC 00399D5C 7C 80 18 50 */ subf r4, r0, r3
/* 8039CE00 00399D60 7C 67 32 14 */ add r3, r7, r6
/* 8039CE04 00399D64 80 FC 00 50 */ lwz r7, 0x50(r28)
/* 8039CE08 00399D68 38 C0 00 00 */ li r6, 0
/* 8039CE0C 00399D6C 7D 89 03 A6 */ mtctr r12
/* 8039CE10 00399D70 4E 80 04 21 */ bctrl
/* 8039CE14 00399D74 28 03 00 00 */ cmplwi r3, 0
/* 8039CE18 00399D78 41 82 03 D4 */ beq lbl_8039D1EC
/* 8039CE1C 00399D7C 88 1C 00 0C */ lbz r0, 0xc(r28)
/* 8039CE20 00399D80 28 00 00 02 */ cmplwi r0, 2
/* 8039CE24 00399D84 40 82 03 C8 */ bne lbl_8039D1EC
/* 8039CE28 00399D88 80 FC 00 20 */ lwz r7, 0x20(r28)
/* 8039CE2C 00399D8C 80 9C 00 18 */ lwz r4, 0x18(r28)
/* 8039CE30 00399D90 7C A7 1A 14 */ add r5, r7, r3
/* 8039CE34 00399D94 80 1C 00 08 */ lwz r0, 8(r28)
/* 8039CE38 00399D98 7C 65 23 96 */ divwu r3, r5, r4
/* 8039CE3C 00399D9C 54 00 03 9D */ rlwinm. r0, r0, 0, 0xe, 0xe
/* 8039CE40 00399DA0 7C 03 21 D6 */ mullw r0, r3, r4
/* 8039CE44 00399DA4 7F 60 28 50 */ subf r27, r0, r5
/* 8039CE48 00399DA8 40 82 00 50 */ bne lbl_8039CE98
/* 8039CE4C 00399DAC 28 1B 00 00 */ cmplwi r27, 0
/* 8039CE50 00399DB0 40 82 00 28 */ bne lbl_8039CE78
/* 8039CE54 00399DB4 80 1C 00 1C */ lwz r0, 0x1c(r28)
/* 8039CE58 00399DB8 54 E4 08 3C */ slwi r4, r7, 1
/* 8039CE5C 00399DBC 80 7C 00 14 */ lwz r3, 0x14(r28)
/* 8039CE60 00399DC0 38 E0 00 00 */ li r7, 0
/* 8039CE64 00399DC4 88 DC 00 0E */ lbz r6, 0xe(r28)
/* 8039CE68 00399DC8 7C A4 00 50 */ subf r5, r4, r0
/* 8039CE6C 00399DCC 39 00 00 00 */ li r8, 0
/* 8039CE70 00399DD0 48 01 6D A5 */ bl hwFlushStream
/* 8039CE74 00399DD4 48 00 00 24 */ b lbl_8039CE98
lbl_8039CE78:
/* 8039CE78 00399DD8 7C 07 D8 50 */ subf r0, r7, r27
/* 8039CE7C 00399DDC 80 7C 00 14 */ lwz r3, 0x14(r28)
/* 8039CE80 00399DE0 88 DC 00 0E */ lbz r6, 0xe(r28)
/* 8039CE84 00399DE4 54 E4 08 3C */ slwi r4, r7, 1
/* 8039CE88 00399DE8 54 05 08 3C */ slwi r5, r0, 1
/* 8039CE8C 00399DEC 38 E0 00 00 */ li r7, 0
/* 8039CE90 00399DF0 39 00 00 00 */ li r8, 0
/* 8039CE94 00399DF4 48 01 6D 81 */ bl hwFlushStream
lbl_8039CE98:
/* 8039CE98 00399DF8 93 7C 00 20 */ stw r27, 0x20(r28)
/* 8039CE9C 00399DFC 48 00 03 50 */ b lbl_8039D1EC
lbl_8039CEA0:
/* 8039CEA0 00399E00 3C 80 24 92 */ lis r4, 0x24924925@ha
/* 8039CEA4 00399E04 80 7C 00 18 */ lwz r3, 0x18(r28)
/* 8039CEA8 00399E08 38 84 49 25 */ addi r4, r4, 0x24924925@l
/* 8039CEAC 00399E0C 81 1C 00 14 */ lwz r8, 0x14(r28)
/* 8039CEB0 00399E10 7D 24 00 16 */ mulhwu r9, r4, r0
/* 8039CEB4 00399E14 81 9C 00 10 */ lwz r12, 0x10(r28)
/* 8039CEB8 00399E18 7C 80 18 50 */ subf r4, r0, r3
/* 8039CEBC 00399E1C 80 FC 00 50 */ lwz r7, 0x50(r28)
/* 8039CEC0 00399E20 38 A0 00 00 */ li r5, 0
/* 8039CEC4 00399E24 38 C0 00 00 */ li r6, 0
/* 8039CEC8 00399E28 7C 09 00 50 */ subf r0, r9, r0
/* 8039CECC 00399E2C 54 00 F8 7E */ srwi r0, r0, 1
/* 8039CED0 00399E30 7C 00 4A 14 */ add r0, r0, r9
/* 8039CED4 00399E34 54 1E 00 38 */ rlwinm r30, r0, 0, 0, 0x1c
/* 8039CED8 00399E38 7C 68 F2 14 */ add r3, r8, r30
/* 8039CEDC 00399E3C 7D 89 03 A6 */ mtctr r12
/* 8039CEE0 00399E40 4E 80 04 21 */ bctrl
/* 8039CEE4 00399E44 28 03 00 00 */ cmplwi r3, 0
/* 8039CEE8 00399E48 41 82 03 04 */ beq lbl_8039D1EC
/* 8039CEEC 00399E4C 88 1C 00 0C */ lbz r0, 0xc(r28)
/* 8039CEF0 00399E50 28 00 00 02 */ cmplwi r0, 2
/* 8039CEF4 00399E54 40 82 02 F8 */ bne lbl_8039D1EC
/* 8039CEF8 00399E58 80 1C 00 20 */ lwz r0, 0x20(r28)
/* 8039CEFC 00399E5C 80 9C 00 18 */ lwz r4, 0x18(r28)
/* 8039CF00 00399E60 7C A0 1A 14 */ add r5, r0, r3
/* 8039CF04 00399E64 80 1C 00 08 */ lwz r0, 8(r28)
/* 8039CF08 00399E68 7C 65 23 96 */ divwu r3, r5, r4
/* 8039CF0C 00399E6C 54 00 03 9D */ rlwinm. r0, r0, 0, 0xe, 0xe
/* 8039CF10 00399E70 7C 03 21 D6 */ mullw r0, r3, r4
/* 8039CF14 00399E74 7F 60 28 50 */ subf r27, r0, r5
/* 8039CF18 00399E78 40 82 00 6C */ bne lbl_8039CF84
/* 8039CF1C 00399E7C 28 1B 00 00 */ cmplwi r27, 0
/* 8039CF20 00399E80 40 82 00 28 */ bne lbl_8039CF48
/* 8039CF24 00399E84 80 1C 00 1C */ lwz r0, 0x1c(r28)
/* 8039CF28 00399E88 7F C4 F3 78 */ mr r4, r30
/* 8039CF2C 00399E8C 80 7C 00 14 */ lwz r3, 0x14(r28)
/* 8039CF30 00399E90 38 E0 00 00 */ li r7, 0
/* 8039CF34 00399E94 88 DC 00 0E */ lbz r6, 0xe(r28)
/* 8039CF38 00399E98 7C BE 00 50 */ subf r5, r30, r0
/* 8039CF3C 00399E9C 39 00 00 00 */ li r8, 0
/* 8039CF40 00399EA0 48 01 6C D5 */ bl hwFlushStream
/* 8039CF44 00399EA4 48 00 00 40 */ b lbl_8039CF84
lbl_8039CF48:
/* 8039CF48 00399EA8 3C 60 24 92 */ lis r3, 0x24924925@ha
/* 8039CF4C 00399EAC 38 1B 00 0D */ addi r0, r27, 0xd
/* 8039CF50 00399EB0 38 83 49 25 */ addi r4, r3, 0x24924925@l
/* 8039CF54 00399EB4 80 7C 00 14 */ lwz r3, 0x14(r28)
/* 8039CF58 00399EB8 7C A4 00 16 */ mulhwu r5, r4, r0
/* 8039CF5C 00399EBC 88 DC 00 0E */ lbz r6, 0xe(r28)
/* 8039CF60 00399EC0 7F C4 F3 78 */ mr r4, r30
/* 8039CF64 00399EC4 38 E0 00 00 */ li r7, 0
/* 8039CF68 00399EC8 39 00 00 00 */ li r8, 0
/* 8039CF6C 00399ECC 7C 05 00 50 */ subf r0, r5, r0
/* 8039CF70 00399ED0 54 00 F8 7E */ srwi r0, r0, 1
/* 8039CF74 00399ED4 7C 00 2A 14 */ add r0, r0, r5
/* 8039CF78 00399ED8 54 00 00 38 */ rlwinm r0, r0, 0, 0, 0x1c
/* 8039CF7C 00399EDC 7C BE 00 50 */ subf r5, r30, r0
/* 8039CF80 00399EE0 48 01 6C 95 */ bl hwFlushStream
lbl_8039CF84:
/* 8039CF84 00399EE4 93 7C 00 20 */ stw r27, 0x20(r28)
/* 8039CF88 00399EE8 48 00 02 64 */ b lbl_8039D1EC
lbl_8039CF8C:
/* 8039CF8C 00399EEC 2C 05 00 01 */ cmpwi r5, 1
/* 8039CF90 00399EF0 41 82 01 14 */ beq lbl_8039D0A4
/* 8039CF94 00399EF4 40 80 02 58 */ bge lbl_8039D1EC
/* 8039CF98 00399EF8 2C 05 00 00 */ cmpwi r5, 0
/* 8039CF9C 00399EFC 40 80 00 08 */ bge lbl_8039CFA4
/* 8039CFA0 00399F00 48 00 02 4C */ b lbl_8039D1EC
lbl_8039CFA4:
/* 8039CFA4 00399F04 80 9C 00 18 */ lwz r4, 0x18(r28)
/* 8039CFA8 00399F08 54 07 08 3C */ slwi r7, r0, 1
/* 8039CFAC 00399F0C 80 BC 00 14 */ lwz r5, 0x14(r28)
/* 8039CFB0 00399F10 7C 66 1B 78 */ mr r6, r3
/* 8039CFB4 00399F14 81 9C 00 10 */ lwz r12, 0x10(r28)
/* 8039CFB8 00399F18 7C 80 20 50 */ subf r4, r0, r4
/* 8039CFBC 00399F1C 7C 65 3A 14 */ add r3, r5, r7
/* 8039CFC0 00399F20 80 FC 00 50 */ lwz r7, 0x50(r28)
/* 8039CFC4 00399F24 7D 89 03 A6 */ mtctr r12
/* 8039CFC8 00399F28 4E 80 04 21 */ bctrl
/* 8039CFCC 00399F2C 28 03 00 00 */ cmplwi r3, 0
/* 8039CFD0 00399F30 41 82 02 1C */ beq lbl_8039D1EC
/* 8039CFD4 00399F34 88 1C 00 0C */ lbz r0, 0xc(r28)
/* 8039CFD8 00399F38 28 00 00 02 */ cmplwi r0, 2
/* 8039CFDC 00399F3C 40 82 02 10 */ bne lbl_8039D1EC
/* 8039CFE0 00399F40 80 FC 00 20 */ lwz r7, 0x20(r28)
/* 8039CFE4 00399F44 80 DC 00 18 */ lwz r6, 0x18(r28)
/* 8039CFE8 00399F48 7C A7 1A 14 */ add r5, r7, r3
/* 8039CFEC 00399F4C 80 1C 00 08 */ lwz r0, 8(r28)
/* 8039CFF0 00399F50 7C 85 33 96 */ divwu r4, r5, r6
/* 8039CFF4 00399F54 54 00 03 9D */ rlwinm. r0, r0, 0, 0xe, 0xe
/* 8039CFF8 00399F58 7C 04 31 D6 */ mullw r0, r4, r6
/* 8039CFFC 00399F5C 7F 60 28 50 */ subf r27, r0, r5
/* 8039D000 00399F60 40 82 00 9C */ bne lbl_8039D09C
/* 8039D004 00399F64 7C 07 30 50 */ subf r0, r7, r6
/* 8039D008 00399F68 7C 03 00 40 */ cmplw r3, r0
/* 8039D00C 00399F6C 40 81 00 44 */ ble lbl_8039D050
/* 8039D010 00399F70 80 1C 00 1C */ lwz r0, 0x1c(r28)
/* 8039D014 00399F74 54 E4 08 3C */ slwi r4, r7, 1
/* 8039D018 00399F78 80 7C 00 14 */ lwz r3, 0x14(r28)
/* 8039D01C 00399F7C 38 E0 00 00 */ li r7, 0
/* 8039D020 00399F80 88 DC 00 0E */ lbz r6, 0xe(r28)
/* 8039D024 00399F84 7C A4 00 50 */ subf r5, r4, r0
/* 8039D028 00399F88 39 00 00 00 */ li r8, 0
/* 8039D02C 00399F8C 48 01 6B E9 */ bl hwFlushStream
/* 8039D030 00399F90 80 7C 00 14 */ lwz r3, 0x14(r28)
/* 8039D034 00399F94 57 65 08 3C */ slwi r5, r27, 1
/* 8039D038 00399F98 88 DC 00 0E */ lbz r6, 0xe(r28)
/* 8039D03C 00399F9C 38 80 00 00 */ li r4, 0
/* 8039D040 00399FA0 38 E0 00 00 */ li r7, 0
/* 8039D044 00399FA4 39 00 00 00 */ li r8, 0
/* 8039D048 00399FA8 48 01 6B CD */ bl hwFlushStream
/* 8039D04C 00399FAC 48 00 00 50 */ b lbl_8039D09C
lbl_8039D050:
/* 8039D050 00399FB0 28 1B 00 00 */ cmplwi r27, 0
/* 8039D054 00399FB4 40 82 00 28 */ bne lbl_8039D07C
/* 8039D058 00399FB8 80 1C 00 1C */ lwz r0, 0x1c(r28)
/* 8039D05C 00399FBC 54 E4 08 3C */ slwi r4, r7, 1
/* 8039D060 00399FC0 80 7C 00 14 */ lwz r3, 0x14(r28)
/* 8039D064 00399FC4 38 E0 00 00 */ li r7, 0
/* 8039D068 00399FC8 88 DC 00 0E */ lbz r6, 0xe(r28)
/* 8039D06C 00399FCC 7C A4 00 50 */ subf r5, r4, r0
/* 8039D070 00399FD0 39 00 00 00 */ li r8, 0
/* 8039D074 00399FD4 48 01 6B A1 */ bl hwFlushStream
/* 8039D078 00399FD8 48 00 00 24 */ b lbl_8039D09C
lbl_8039D07C:
/* 8039D07C 00399FDC 7C 07 D8 50 */ subf r0, r7, r27
/* 8039D080 00399FE0 80 7C 00 14 */ lwz r3, 0x14(r28)
/* 8039D084 00399FE4 88 DC 00 0E */ lbz r6, 0xe(r28)
/* 8039D088 00399FE8 54 E4 08 3C */ slwi r4, r7, 1
/* 8039D08C 00399FEC 54 05 08 3C */ slwi r5, r0, 1
/* 8039D090 00399FF0 38 E0 00 00 */ li r7, 0
/* 8039D094 00399FF4 39 00 00 00 */ li r8, 0
/* 8039D098 00399FF8 48 01 6B 7D */ bl hwFlushStream
lbl_8039D09C:
/* 8039D09C 00399FFC 93 7C 00 20 */ stw r27, 0x20(r28)
/* 8039D0A0 0039A000 48 00 01 4C */ b lbl_8039D1EC
lbl_8039D0A4:
/* 8039D0A4 0039A004 3C 80 24 92 */ lis r4, 0x24924925@ha
/* 8039D0A8 0039A008 80 BC 00 14 */ lwz r5, 0x14(r28)
/* 8039D0AC 0039A00C 38 C4 49 25 */ addi r6, r4, 0x24924925@l
/* 8039D0B0 0039A010 80 9C 00 18 */ lwz r4, 0x18(r28)
/* 8039D0B4 0039A014 7D 06 00 16 */ mulhwu r8, r6, r0
/* 8039D0B8 0039A018 81 9C 00 10 */ lwz r12, 0x10(r28)
/* 8039D0BC 0039A01C 7C 80 20 50 */ subf r4, r0, r4
/* 8039D0C0 0039A020 80 FC 00 50 */ lwz r7, 0x50(r28)
/* 8039D0C4 0039A024 7C 66 1B 78 */ mr r6, r3
/* 8039D0C8 0039A028 7C 08 00 50 */ subf r0, r8, r0
/* 8039D0CC 0039A02C 54 00 F8 7E */ srwi r0, r0, 1
/* 8039D0D0 0039A030 7C 00 42 14 */ add r0, r0, r8
/* 8039D0D4 0039A034 54 1B 00 38 */ rlwinm r27, r0, 0, 0, 0x1c
/* 8039D0D8 0039A038 7C 65 DA 14 */ add r3, r5, r27
/* 8039D0DC 0039A03C 7D 89 03 A6 */ mtctr r12
/* 8039D0E0 0039A040 4E 80 04 21 */ bctrl
/* 8039D0E4 0039A044 28 03 00 00 */ cmplwi r3, 0
/* 8039D0E8 0039A048 41 82 01 04 */ beq lbl_8039D1EC
/* 8039D0EC 0039A04C 88 1C 00 0C */ lbz r0, 0xc(r28)
/* 8039D0F0 0039A050 28 00 00 02 */ cmplwi r0, 2
/* 8039D0F4 0039A054 40 82 00 F8 */ bne lbl_8039D1EC
/* 8039D0F8 0039A058 80 DC 00 20 */ lwz r6, 0x20(r28)
/* 8039D0FC 0039A05C 80 FC 00 18 */ lwz r7, 0x18(r28)
/* 8039D100 0039A060 7C A6 1A 14 */ add r5, r6, r3
/* 8039D104 0039A064 80 1C 00 08 */ lwz r0, 8(r28)
/* 8039D108 0039A068 7C 85 3B 96 */ divwu r4, r5, r7
/* 8039D10C 0039A06C 54 00 03 9D */ rlwinm. r0, r0, 0, 0xe, 0xe
/* 8039D110 0039A070 7C 04 39 D6 */ mullw r0, r4, r7
/* 8039D114 0039A074 7F C0 28 50 */ subf r30, r0, r5
/* 8039D118 0039A078 40 82 00 D0 */ bne lbl_8039D1E8
/* 8039D11C 0039A07C 7C 06 38 50 */ subf r0, r6, r7
/* 8039D120 0039A080 7C 03 00 40 */ cmplw r3, r0
/* 8039D124 0039A084 40 81 00 5C */ ble lbl_8039D180
/* 8039D128 0039A088 80 1C 00 1C */ lwz r0, 0x1c(r28)
/* 8039D12C 0039A08C 7F 64 DB 78 */ mr r4, r27
/* 8039D130 0039A090 80 7C 00 14 */ lwz r3, 0x14(r28)
/* 8039D134 0039A094 38 E0 00 00 */ li r7, 0
/* 8039D138 0039A098 88 DC 00 0E */ lbz r6, 0xe(r28)
/* 8039D13C 0039A09C 7C BB 00 50 */ subf r5, r27, r0
/* 8039D140 0039A0A0 39 00 00 00 */ li r8, 0
/* 8039D144 0039A0A4 48 01 6A D1 */ bl hwFlushStream
/* 8039D148 0039A0A8 3C 80 24 92 */ lis r4, 0x24924925@ha
/* 8039D14C 0039A0AC 80 7C 00 14 */ lwz r3, 0x14(r28)
/* 8039D150 0039A0B0 38 04 49 25 */ addi r0, r4, 0x24924925@l
/* 8039D154 0039A0B4 88 DC 00 0E */ lbz r6, 0xe(r28)
/* 8039D158 0039A0B8 7C A0 F0 16 */ mulhwu r5, r0, r30
/* 8039D15C 0039A0BC 38 80 00 00 */ li r4, 0
/* 8039D160 0039A0C0 38 E0 00 00 */ li r7, 0
/* 8039D164 0039A0C4 39 00 00 00 */ li r8, 0
/* 8039D168 0039A0C8 7C 05 F0 50 */ subf r0, r5, r30
/* 8039D16C 0039A0CC 54 00 F8 7E */ srwi r0, r0, 1
/* 8039D170 0039A0D0 7C 00 2A 14 */ add r0, r0, r5
/* 8039D174 0039A0D4 54 05 00 38 */ rlwinm r5, r0, 0, 0, 0x1c
/* 8039D178 0039A0D8 48 01 6A 9D */ bl hwFlushStream
/* 8039D17C 0039A0DC 48 00 00 6C */ b lbl_8039D1E8
lbl_8039D180:
/* 8039D180 0039A0E0 28 1E 00 00 */ cmplwi r30, 0
/* 8039D184 0039A0E4 40 82 00 28 */ bne lbl_8039D1AC
/* 8039D188 0039A0E8 80 1C 00 1C */ lwz r0, 0x1c(r28)
/* 8039D18C 0039A0EC 7F 64 DB 78 */ mr r4, r27
/* 8039D190 0039A0F0 80 7C 00 14 */ lwz r3, 0x14(r28)
/* 8039D194 0039A0F4 38 E0 00 00 */ li r7, 0
/* 8039D198 0039A0F8 88 DC 00 0E */ lbz r6, 0xe(r28)
/* 8039D19C 0039A0FC 7C BB 00 50 */ subf r5, r27, r0
/* 8039D1A0 0039A100 39 00 00 00 */ li r8, 0
/* 8039D1A4 0039A104 48 01 6A 71 */ bl hwFlushStream
/* 8039D1A8 0039A108 48 00 00 40 */ b lbl_8039D1E8
lbl_8039D1AC:
/* 8039D1AC 0039A10C 3C 60 24 92 */ lis r3, 0x24924925@ha
/* 8039D1B0 0039A110 38 1E 00 0D */ addi r0, r30, 0xd
/* 8039D1B4 0039A114 38 83 49 25 */ addi r4, r3, 0x24924925@l
/* 8039D1B8 0039A118 80 7C 00 14 */ lwz r3, 0x14(r28)
/* 8039D1BC 0039A11C 7C A4 00 16 */ mulhwu r5, r4, r0
/* 8039D1C0 0039A120 88 DC 00 0E */ lbz r6, 0xe(r28)
/* 8039D1C4 0039A124 7F 64 DB 78 */ mr r4, r27
/* 8039D1C8 0039A128 38 E0 00 00 */ li r7, 0
/* 8039D1CC 0039A12C 39 00 00 00 */ li r8, 0
/* 8039D1D0 0039A130 7C 05 00 50 */ subf r0, r5, r0
/* 8039D1D4 0039A134 54 00 F8 7E */ srwi r0, r0, 1
/* 8039D1D8 0039A138 7C 00 2A 14 */ add r0, r0, r5
/* 8039D1DC 0039A13C 54 00 00 38 */ rlwinm r0, r0, 0, 0, 0x1c
/* 8039D1E0 0039A140 7C BB 00 50 */ subf r5, r27, r0
/* 8039D1E4 0039A144 48 01 6A 31 */ bl hwFlushStream
lbl_8039D1E8:
/* 8039D1E8 0039A148 93 DC 00 20 */ stw r30, 0x20(r28)
lbl_8039D1EC:
/* 8039D1EC 0039A14C 88 1C 00 0C */ lbz r0, 0xc(r28)
/* 8039D1F0 0039A150 28 00 00 02 */ cmplwi r0, 2
/* 8039D1F4 0039A154 40 82 00 38 */ bne lbl_8039D22C
/* 8039D1F8 0039A158 80 1C 00 08 */ lwz r0, 8(r28)
/* 8039D1FC 0039A15C 54 00 03 9D */ rlwinm. r0, r0, 0, 0xe, 0xe
/* 8039D200 0039A160 40 82 00 2C */ bne lbl_8039D22C
/* 8039D204 0039A164 88 1C 00 0D */ lbz r0, 0xd(r28)
/* 8039D208 0039A168 28 00 00 01 */ cmplwi r0, 1
/* 8039D20C 0039A16C 40 82 00 20 */ bne lbl_8039D22C
/* 8039D210 0039A170 80 9C 00 14 */ lwz r4, 0x14(r28)
/* 8039D214 0039A174 80 7C 00 4C */ lwz r3, 0x4c(r28)
/* 8039D218 0039A178 3C 84 40 00 */ addis r4, r4, 0x4000
/* 8039D21C 0039A17C 80 04 00 00 */ lwz r0, 0(r4)
/* 8039D220 0039A180 54 04 46 3E */ srwi r4, r0, 0x18
/* 8039D224 0039A184 98 9C 00 0F */ stb r4, 0xf(r28)
/* 8039D228 0039A188 48 01 63 BD */ bl hwSetStreamLoopPS
lbl_8039D22C:
/* 8039D22C 0039A18C 3B BD 00 01 */ addi r29, r29, 1
/* 8039D230 0039A190 3B 9C 00 64 */ addi r28, r28, 0x64
lbl_8039D234:
/* 8039D234 0039A194 88 1F 02 10 */ lbz r0, 0x210(r31)
/* 8039D238 0039A198 7C 1D 00 40 */ cmplw r29, r0
/* 8039D23C 0039A19C 41 80 F7 C0 */ blt lbl_8039C9FC
lbl_8039D240:
/* 8039D240 0039A1A0 39 61 00 70 */ addi r11, r1, 0x70
/* 8039D244 0039A1A4 4B FE C8 85 */ bl _restgpr_27
/* 8039D248 0039A1A8 80 01 00 74 */ lwz r0, 0x74(r1)
/* 8039D24C 0039A1AC 7C 08 03 A6 */ mtlr r0
/* 8039D250 0039A1B0 38 21 00 70 */ addi r1, r1, 0x70
/* 8039D254 0039A1B4 4E 80 00 20 */ blr
.global nullsub_60
nullsub_60:
/* 8039D258 0039A1B8 4E 80 00 20 */ blr
.global streamKill
streamKill:
/* 8039D25C 0039A1BC 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 8039D260 0039A1C0 7C 08 02 A6 */ mflr r0
/* 8039D264 0039A1C4 1C 83 00 64 */ mulli r4, r3, 0x64
/* 8039D268 0039A1C8 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039D26C 0039A1CC 90 01 00 14 */ stw r0, 0x14(r1)
/* 8039D270 0039A1D0 38 03 13 F8 */ addi r0, r3, streamInfo@l
/* 8039D274 0039A1D4 93 E1 00 0C */ stw r31, 0xc(r1)
/* 8039D278 0039A1D8 7F E0 22 14 */ add r31, r0, r4
/* 8039D27C 0039A1DC 88 1F 00 0C */ lbz r0, 0xc(r31)
/* 8039D280 0039A1E0 2C 00 00 03 */ cmpwi r0, 3
/* 8039D284 0039A1E4 40 80 00 48 */ bge lbl_8039D2CC
/* 8039D288 0039A1E8 2C 00 00 01 */ cmpwi r0, 1
/* 8039D28C 0039A1EC 40 80 00 08 */ bge lbl_8039D294
/* 8039D290 0039A1F0 48 00 00 3C */ b lbl_8039D2CC
lbl_8039D294:
/* 8039D294 0039A1F4 28 00 00 02 */ cmplwi r0, 2
/* 8039D298 0039A1F8 40 82 00 0C */ bne lbl_8039D2A4
/* 8039D29C 0039A1FC 80 7F 00 4C */ lwz r3, 0x4c(r31)
/* 8039D2A0 0039A200 48 00 B5 65 */ bl voiceUnblock
lbl_8039D2A4:
/* 8039D2A4 0039A204 38 00 00 03 */ li r0, 3
/* 8039D2A8 0039A208 38 60 00 00 */ li r3, 0
/* 8039D2AC 0039A20C 98 1F 00 0C */ stb r0, 0xc(r31)
/* 8039D2B0 0039A210 38 80 00 00 */ li r4, 0
/* 8039D2B4 0039A214 38 A0 00 00 */ li r5, 0
/* 8039D2B8 0039A218 38 C0 00 00 */ li r6, 0
/* 8039D2BC 0039A21C 81 9F 00 10 */ lwz r12, 0x10(r31)
/* 8039D2C0 0039A220 80 FF 00 50 */ lwz r7, 0x50(r31)
/* 8039D2C4 0039A224 7D 89 03 A6 */ mtctr r12
/* 8039D2C8 0039A228 4E 80 04 21 */ bctrl
lbl_8039D2CC:
/* 8039D2CC 0039A22C 80 01 00 14 */ lwz r0, 0x14(r1)
/* 8039D2D0 0039A230 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 8039D2D4 0039A234 7C 08 03 A6 */ mtlr r0
/* 8039D2D8 0039A238 38 21 00 10 */ addi r1, r1, 0x10
/* 8039D2DC 0039A23C 4E 80 00 20 */ blr
.global GetPrivateIndex
GetPrivateIndex:
/* 8039D2E0 0039A240 3C 80 80 55 */ lis r4, streamInfo@ha
/* 8039D2E4 0039A244 38 00 00 08 */ li r0, 8
/* 8039D2E8 0039A248 38 84 13 F8 */ addi r4, r4, streamInfo@l
/* 8039D2EC 0039A24C 38 A0 00 00 */ li r5, 0
/* 8039D2F0 0039A250 7C 09 03 A6 */ mtctr r0
lbl_8039D2F4:
/* 8039D2F4 0039A254 88 04 00 0C */ lbz r0, 0xc(r4)
/* 8039D2F8 0039A258 28 00 00 00 */ cmplwi r0, 0
/* 8039D2FC 0039A25C 41 82 00 18 */ beq lbl_8039D314
/* 8039D300 0039A260 80 04 00 04 */ lwz r0, 4(r4)
/* 8039D304 0039A264 7C 03 00 40 */ cmplw r3, r0
/* 8039D308 0039A268 40 82 00 0C */ bne lbl_8039D314
/* 8039D30C 0039A26C 7C A3 2B 78 */ mr r3, r5
/* 8039D310 0039A270 4E 80 00 20 */ blr
lbl_8039D314:
/* 8039D314 0039A274 88 04 00 70 */ lbz r0, 0x70(r4)
/* 8039D318 0039A278 38 A5 00 01 */ addi r5, r5, 1
/* 8039D31C 0039A27C 38 84 00 64 */ addi r4, r4, 0x64
/* 8039D320 0039A280 28 00 00 00 */ cmplwi r0, 0
/* 8039D324 0039A284 41 82 00 18 */ beq lbl_8039D33C
/* 8039D328 0039A288 80 04 00 04 */ lwz r0, 4(r4)
/* 8039D32C 0039A28C 7C 03 00 40 */ cmplw r3, r0
/* 8039D330 0039A290 40 82 00 0C */ bne lbl_8039D33C
/* 8039D334 0039A294 7C A3 2B 78 */ mr r3, r5
/* 8039D338 0039A298 4E 80 00 20 */ blr
lbl_8039D33C:
/* 8039D33C 0039A29C 88 04 00 70 */ lbz r0, 0x70(r4)
/* 8039D340 0039A2A0 38 A5 00 01 */ addi r5, r5, 1
/* 8039D344 0039A2A4 38 84 00 64 */ addi r4, r4, 0x64
/* 8039D348 0039A2A8 28 00 00 00 */ cmplwi r0, 0
/* 8039D34C 0039A2AC 41 82 00 18 */ beq lbl_8039D364
/* 8039D350 0039A2B0 80 04 00 04 */ lwz r0, 4(r4)
/* 8039D354 0039A2B4 7C 03 00 40 */ cmplw r3, r0
/* 8039D358 0039A2B8 40 82 00 0C */ bne lbl_8039D364
/* 8039D35C 0039A2BC 7C A3 2B 78 */ mr r3, r5
/* 8039D360 0039A2C0 4E 80 00 20 */ blr
lbl_8039D364:
/* 8039D364 0039A2C4 88 04 00 70 */ lbz r0, 0x70(r4)
/* 8039D368 0039A2C8 38 A5 00 01 */ addi r5, r5, 1
/* 8039D36C 0039A2CC 38 84 00 64 */ addi r4, r4, 0x64
/* 8039D370 0039A2D0 28 00 00 00 */ cmplwi r0, 0
/* 8039D374 0039A2D4 41 82 00 18 */ beq lbl_8039D38C
/* 8039D378 0039A2D8 80 04 00 04 */ lwz r0, 4(r4)
/* 8039D37C 0039A2DC 7C 03 00 40 */ cmplw r3, r0
/* 8039D380 0039A2E0 40 82 00 0C */ bne lbl_8039D38C
/* 8039D384 0039A2E4 7C A3 2B 78 */ mr r3, r5
/* 8039D388 0039A2E8 4E 80 00 20 */ blr
lbl_8039D38C:
/* 8039D38C 0039A2EC 88 04 00 70 */ lbz r0, 0x70(r4)
/* 8039D390 0039A2F0 38 A5 00 01 */ addi r5, r5, 1
/* 8039D394 0039A2F4 38 84 00 64 */ addi r4, r4, 0x64
/* 8039D398 0039A2F8 28 00 00 00 */ cmplwi r0, 0
/* 8039D39C 0039A2FC 41 82 00 18 */ beq lbl_8039D3B4
/* 8039D3A0 0039A300 80 04 00 04 */ lwz r0, 4(r4)
/* 8039D3A4 0039A304 7C 03 00 40 */ cmplw r3, r0
/* 8039D3A8 0039A308 40 82 00 0C */ bne lbl_8039D3B4
/* 8039D3AC 0039A30C 7C A3 2B 78 */ mr r3, r5
/* 8039D3B0 0039A310 4E 80 00 20 */ blr
lbl_8039D3B4:
/* 8039D3B4 0039A314 88 04 00 70 */ lbz r0, 0x70(r4)
/* 8039D3B8 0039A318 38 A5 00 01 */ addi r5, r5, 1
/* 8039D3BC 0039A31C 38 84 00 64 */ addi r4, r4, 0x64
/* 8039D3C0 0039A320 28 00 00 00 */ cmplwi r0, 0
/* 8039D3C4 0039A324 41 82 00 18 */ beq lbl_8039D3DC
/* 8039D3C8 0039A328 80 04 00 04 */ lwz r0, 4(r4)
/* 8039D3CC 0039A32C 7C 03 00 40 */ cmplw r3, r0
/* 8039D3D0 0039A330 40 82 00 0C */ bne lbl_8039D3DC
/* 8039D3D4 0039A334 7C A3 2B 78 */ mr r3, r5
/* 8039D3D8 0039A338 4E 80 00 20 */ blr
lbl_8039D3DC:
/* 8039D3DC 0039A33C 88 04 00 70 */ lbz r0, 0x70(r4)
/* 8039D3E0 0039A340 38 A5 00 01 */ addi r5, r5, 1
/* 8039D3E4 0039A344 38 84 00 64 */ addi r4, r4, 0x64
/* 8039D3E8 0039A348 28 00 00 00 */ cmplwi r0, 0
/* 8039D3EC 0039A34C 41 82 00 18 */ beq lbl_8039D404
/* 8039D3F0 0039A350 80 04 00 04 */ lwz r0, 4(r4)
/* 8039D3F4 0039A354 7C 03 00 40 */ cmplw r3, r0
/* 8039D3F8 0039A358 40 82 00 0C */ bne lbl_8039D404
/* 8039D3FC 0039A35C 7C A3 2B 78 */ mr r3, r5
/* 8039D400 0039A360 4E 80 00 20 */ blr
lbl_8039D404:
/* 8039D404 0039A364 88 04 00 70 */ lbz r0, 0x70(r4)
/* 8039D408 0039A368 38 A5 00 01 */ addi r5, r5, 1
/* 8039D40C 0039A36C 38 84 00 64 */ addi r4, r4, 0x64
/* 8039D410 0039A370 28 00 00 00 */ cmplwi r0, 0
/* 8039D414 0039A374 41 82 00 18 */ beq lbl_8039D42C
/* 8039D418 0039A378 80 04 00 04 */ lwz r0, 4(r4)
/* 8039D41C 0039A37C 7C 03 00 40 */ cmplw r3, r0
/* 8039D420 0039A380 40 82 00 0C */ bne lbl_8039D42C
/* 8039D424 0039A384 7C A3 2B 78 */ mr r3, r5
/* 8039D428 0039A388 4E 80 00 20 */ blr
lbl_8039D42C:
/* 8039D42C 0039A38C 38 84 00 64 */ addi r4, r4, 0x64
/* 8039D430 0039A390 38 A5 00 01 */ addi r5, r5, 1
/* 8039D434 0039A394 42 00 FE C0 */ bdnz lbl_8039D2F4
/* 8039D438 0039A398 38 60 FF FF */ li r3, -1
/* 8039D43C 0039A39C 4E 80 00 20 */ blr
.global sndStreamARAMUpdate
sndStreamARAMUpdate:
/* 8039D440 0039A3A0 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 8039D444 0039A3A4 7C 08 02 A6 */ mflr r0
/* 8039D448 0039A3A8 90 01 00 24 */ stw r0, 0x24(r1)
/* 8039D44C 0039A3AC 39 61 00 20 */ addi r11, r1, 0x20
/* 8039D450 0039A3B0 4B FE C6 29 */ bl _savegpr_26
/* 8039D454 0039A3B4 7C 7E 1B 78 */ mr r30, r3
/* 8039D458 0039A3B8 7C 9A 23 78 */ mr r26, r4
/* 8039D45C 0039A3BC 7C BB 2B 78 */ mr r27, r5
/* 8039D460 0039A3C0 7C DC 33 78 */ mr r28, r6
/* 8039D464 0039A3C4 7C FD 3B 78 */ mr r29, r7
/* 8039D468 0039A3C8 48 01 7C 55 */ bl hwDisableIrq
/* 8039D46C 0039A3CC 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039D470 0039A3D0 38 00 00 08 */ li r0, 8
/* 8039D474 0039A3D4 38 83 13 F8 */ addi r4, r3, streamInfo@l
/* 8039D478 0039A3D8 38 60 00 00 */ li r3, 0
/* 8039D47C 0039A3DC 7C 09 03 A6 */ mtctr r0
lbl_8039D480:
/* 8039D480 0039A3E0 88 04 00 0C */ lbz r0, 0xc(r4)
/* 8039D484 0039A3E4 28 00 00 00 */ cmplwi r0, 0
/* 8039D488 0039A3E8 41 82 00 14 */ beq lbl_8039D49C
/* 8039D48C 0039A3EC 80 04 00 04 */ lwz r0, 4(r4)
/* 8039D490 0039A3F0 7C 1E 00 40 */ cmplw r30, r0
/* 8039D494 0039A3F4 40 82 00 08 */ bne lbl_8039D49C
/* 8039D498 0039A3F8 48 00 01 10 */ b lbl_8039D5A8
lbl_8039D49C:
/* 8039D49C 0039A3FC 88 04 00 70 */ lbz r0, 0x70(r4)
/* 8039D4A0 0039A400 38 63 00 01 */ addi r3, r3, 1
/* 8039D4A4 0039A404 38 84 00 64 */ addi r4, r4, 0x64
/* 8039D4A8 0039A408 28 00 00 00 */ cmplwi r0, 0
/* 8039D4AC 0039A40C 41 82 00 14 */ beq lbl_8039D4C0
/* 8039D4B0 0039A410 80 04 00 04 */ lwz r0, 4(r4)
/* 8039D4B4 0039A414 7C 1E 00 40 */ cmplw r30, r0
/* 8039D4B8 0039A418 40 82 00 08 */ bne lbl_8039D4C0
/* 8039D4BC 0039A41C 48 00 00 EC */ b lbl_8039D5A8
lbl_8039D4C0:
/* 8039D4C0 0039A420 88 04 00 70 */ lbz r0, 0x70(r4)
/* 8039D4C4 0039A424 38 63 00 01 */ addi r3, r3, 1
/* 8039D4C8 0039A428 38 84 00 64 */ addi r4, r4, 0x64
/* 8039D4CC 0039A42C 28 00 00 00 */ cmplwi r0, 0
/* 8039D4D0 0039A430 41 82 00 14 */ beq lbl_8039D4E4
/* 8039D4D4 0039A434 80 04 00 04 */ lwz r0, 4(r4)
/* 8039D4D8 0039A438 7C 1E 00 40 */ cmplw r30, r0
/* 8039D4DC 0039A43C 40 82 00 08 */ bne lbl_8039D4E4
/* 8039D4E0 0039A440 48 00 00 C8 */ b lbl_8039D5A8
lbl_8039D4E4:
/* 8039D4E4 0039A444 88 04 00 70 */ lbz r0, 0x70(r4)
/* 8039D4E8 0039A448 38 63 00 01 */ addi r3, r3, 1
/* 8039D4EC 0039A44C 38 84 00 64 */ addi r4, r4, 0x64
/* 8039D4F0 0039A450 28 00 00 00 */ cmplwi r0, 0
/* 8039D4F4 0039A454 41 82 00 14 */ beq lbl_8039D508
/* 8039D4F8 0039A458 80 04 00 04 */ lwz r0, 4(r4)
/* 8039D4FC 0039A45C 7C 1E 00 40 */ cmplw r30, r0
/* 8039D500 0039A460 40 82 00 08 */ bne lbl_8039D508
/* 8039D504 0039A464 48 00 00 A4 */ b lbl_8039D5A8
lbl_8039D508:
/* 8039D508 0039A468 88 04 00 70 */ lbz r0, 0x70(r4)
/* 8039D50C 0039A46C 38 63 00 01 */ addi r3, r3, 1
/* 8039D510 0039A470 38 84 00 64 */ addi r4, r4, 0x64
/* 8039D514 0039A474 28 00 00 00 */ cmplwi r0, 0
/* 8039D518 0039A478 41 82 00 14 */ beq lbl_8039D52C
/* 8039D51C 0039A47C 80 04 00 04 */ lwz r0, 4(r4)
/* 8039D520 0039A480 7C 1E 00 40 */ cmplw r30, r0
/* 8039D524 0039A484 40 82 00 08 */ bne lbl_8039D52C
/* 8039D528 0039A488 48 00 00 80 */ b lbl_8039D5A8
lbl_8039D52C:
/* 8039D52C 0039A48C 88 04 00 70 */ lbz r0, 0x70(r4)
/* 8039D530 0039A490 38 63 00 01 */ addi r3, r3, 1
/* 8039D534 0039A494 38 84 00 64 */ addi r4, r4, 0x64
/* 8039D538 0039A498 28 00 00 00 */ cmplwi r0, 0
/* 8039D53C 0039A49C 41 82 00 14 */ beq lbl_8039D550
/* 8039D540 0039A4A0 80 04 00 04 */ lwz r0, 4(r4)
/* 8039D544 0039A4A4 7C 1E 00 40 */ cmplw r30, r0
/* 8039D548 0039A4A8 40 82 00 08 */ bne lbl_8039D550
/* 8039D54C 0039A4AC 48 00 00 5C */ b lbl_8039D5A8
lbl_8039D550:
/* 8039D550 0039A4B0 88 04 00 70 */ lbz r0, 0x70(r4)
/* 8039D554 0039A4B4 38 63 00 01 */ addi r3, r3, 1
/* 8039D558 0039A4B8 38 84 00 64 */ addi r4, r4, 0x64
/* 8039D55C 0039A4BC 28 00 00 00 */ cmplwi r0, 0
/* 8039D560 0039A4C0 41 82 00 14 */ beq lbl_8039D574
/* 8039D564 0039A4C4 80 04 00 04 */ lwz r0, 4(r4)
/* 8039D568 0039A4C8 7C 1E 00 40 */ cmplw r30, r0
/* 8039D56C 0039A4CC 40 82 00 08 */ bne lbl_8039D574
/* 8039D570 0039A4D0 48 00 00 38 */ b lbl_8039D5A8
lbl_8039D574:
/* 8039D574 0039A4D4 88 04 00 70 */ lbz r0, 0x70(r4)
/* 8039D578 0039A4D8 38 63 00 01 */ addi r3, r3, 1
/* 8039D57C 0039A4DC 38 84 00 64 */ addi r4, r4, 0x64
/* 8039D580 0039A4E0 28 00 00 00 */ cmplwi r0, 0
/* 8039D584 0039A4E4 41 82 00 14 */ beq lbl_8039D598
/* 8039D588 0039A4E8 80 04 00 04 */ lwz r0, 4(r4)
/* 8039D58C 0039A4EC 7C 1E 00 40 */ cmplw r30, r0
/* 8039D590 0039A4F0 40 82 00 08 */ bne lbl_8039D598
/* 8039D594 0039A4F4 48 00 00 14 */ b lbl_8039D5A8
lbl_8039D598:
/* 8039D598 0039A4F8 38 84 00 64 */ addi r4, r4, 0x64
/* 8039D59C 0039A4FC 38 63 00 01 */ addi r3, r3, 1
/* 8039D5A0 0039A500 42 00 FE E0 */ bdnz lbl_8039D480
/* 8039D5A4 0039A504 38 60 FF FF */ li r3, -1
lbl_8039D5A8:
/* 8039D5A8 0039A508 3C 03 00 01 */ addis r0, r3, 1
/* 8039D5AC 0039A50C 28 00 FF FF */ cmplwi r0, 0xffff
/* 8039D5B0 0039A510 41 82 01 58 */ beq lbl_8039D708
/* 8039D5B4 0039A514 1F E3 00 64 */ mulli r31, r3, 0x64
/* 8039D5B8 0039A518 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039D5BC 0039A51C 38 03 13 F8 */ addi r0, r3, streamInfo@l
/* 8039D5C0 0039A520 7F C0 FA 14 */ add r30, r0, r31
/* 8039D5C4 0039A524 88 1E 00 0D */ lbz r0, 0xd(r30)
/* 8039D5C8 0039A528 3B DE 00 0D */ addi r30, r30, 0xd
/* 8039D5CC 0039A52C 2C 00 00 01 */ cmpwi r0, 1
/* 8039D5D0 0039A530 41 82 00 28 */ beq lbl_8039D5F8
/* 8039D5D4 0039A534 40 80 00 84 */ bge lbl_8039D658
/* 8039D5D8 0039A538 2C 00 00 00 */ cmpwi r0, 0
/* 8039D5DC 0039A53C 40 80 00 08 */ bge lbl_8039D5E4
/* 8039D5E0 0039A540 48 00 00 78 */ b lbl_8039D658
lbl_8039D5E4:
/* 8039D5E4 0039A544 57 5A 08 3C */ slwi r26, r26, 1
/* 8039D5E8 0039A548 57 7B 08 3C */ slwi r27, r27, 1
/* 8039D5EC 0039A54C 57 9C 08 3C */ slwi r28, r28, 1
/* 8039D5F0 0039A550 57 BD 08 3C */ slwi r29, r29, 1
/* 8039D5F4 0039A554 48 00 00 64 */ b lbl_8039D658
lbl_8039D5F8:
/* 8039D5F8 0039A558 3C 80 24 92 */ lis r4, 0x24924925@ha
/* 8039D5FC 0039A55C 38 7B 00 0D */ addi r3, r27, 0xd
/* 8039D600 0039A560 38 E4 49 25 */ addi r7, r4, 0x24924925@l
/* 8039D604 0039A564 38 1D 00 0D */ addi r0, r29, 0xd
/* 8039D608 0039A568 7C C7 D0 16 */ mulhwu r6, r7, r26
/* 8039D60C 0039A56C 7C 87 18 16 */ mulhwu r4, r7, r3
/* 8039D610 0039A570 7C A6 D0 50 */ subf r5, r6, r26
/* 8039D614 0039A574 54 A5 F8 7E */ srwi r5, r5, 1
/* 8039D618 0039A578 7C C5 32 14 */ add r6, r5, r6
/* 8039D61C 0039A57C 7C 64 18 50 */ subf r3, r4, r3
/* 8039D620 0039A580 54 63 F8 7E */ srwi r3, r3, 1
/* 8039D624 0039A584 54 DA 00 38 */ rlwinm r26, r6, 0, 0, 0x1c
/* 8039D628 0039A588 7C C3 22 14 */ add r6, r3, r4
/* 8039D62C 0039A58C 7C A7 E0 16 */ mulhwu r5, r7, r28
/* 8039D630 0039A590 54 DB 00 38 */ rlwinm r27, r6, 0, 0, 0x1c
/* 8039D634 0039A594 7C 67 00 16 */ mulhwu r3, r7, r0
/* 8039D638 0039A598 7C 85 E0 50 */ subf r4, r5, r28
/* 8039D63C 0039A59C 54 84 F8 7E */ srwi r4, r4, 1
/* 8039D640 0039A5A0 7C 84 2A 14 */ add r4, r4, r5
/* 8039D644 0039A5A4 7C 03 00 50 */ subf r0, r3, r0
/* 8039D648 0039A5A8 54 00 F8 7E */ srwi r0, r0, 1
/* 8039D64C 0039A5AC 54 9C 00 38 */ rlwinm r28, r4, 0, 0, 0x1c
/* 8039D650 0039A5B0 7C 00 1A 14 */ add r0, r0, r3
/* 8039D654 0039A5B4 54 1D 00 38 */ rlwinm r29, r0, 0, 0, 0x1c
lbl_8039D658:
/* 8039D658 0039A5B8 28 1B 00 00 */ cmplwi r27, 0
/* 8039D65C 0039A5BC 41 82 00 2C */ beq lbl_8039D688
/* 8039D660 0039A5C0 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039D664 0039A5C4 7F 44 D3 78 */ mr r4, r26
/* 8039D668 0039A5C8 38 03 13 F8 */ addi r0, r3, streamInfo@l
/* 8039D66C 0039A5CC 7F 65 DB 78 */ mr r5, r27
/* 8039D670 0039A5D0 7C C0 FA 14 */ add r6, r0, r31
/* 8039D674 0039A5D4 38 E0 00 00 */ li r7, 0
/* 8039D678 0039A5D8 80 66 00 14 */ lwz r3, 0x14(r6)
/* 8039D67C 0039A5DC 39 00 00 00 */ li r8, 0
/* 8039D680 0039A5E0 88 C6 00 0E */ lbz r6, 0xe(r6)
/* 8039D684 0039A5E4 48 01 65 91 */ bl hwFlushStream
lbl_8039D688:
/* 8039D688 0039A5E8 28 1D 00 00 */ cmplwi r29, 0
/* 8039D68C 0039A5EC 41 82 00 2C */ beq lbl_8039D6B8
/* 8039D690 0039A5F0 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039D694 0039A5F4 7F 84 E3 78 */ mr r4, r28
/* 8039D698 0039A5F8 38 03 13 F8 */ addi r0, r3, streamInfo@l
/* 8039D69C 0039A5FC 7F A5 EB 78 */ mr r5, r29
/* 8039D6A0 0039A600 7C C0 FA 14 */ add r6, r0, r31
/* 8039D6A4 0039A604 38 E0 00 00 */ li r7, 0
/* 8039D6A8 0039A608 80 66 00 14 */ lwz r3, 0x14(r6)
/* 8039D6AC 0039A60C 39 00 00 00 */ li r8, 0
/* 8039D6B0 0039A610 88 C6 00 0E */ lbz r6, 0xe(r6)
/* 8039D6B4 0039A614 48 01 65 61 */ bl hwFlushStream
lbl_8039D6B8:
/* 8039D6B8 0039A618 88 1E 00 00 */ lbz r0, 0(r30)
/* 8039D6BC 0039A61C 28 00 00 01 */ cmplwi r0, 1
/* 8039D6C0 0039A620 40 82 00 48 */ bne lbl_8039D708
/* 8039D6C4 0039A624 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039D6C8 0039A628 38 03 13 F8 */ addi r0, r3, streamInfo@l
/* 8039D6CC 0039A62C 7C 80 FA 14 */ add r4, r0, r31
/* 8039D6D0 0039A630 80 64 00 14 */ lwz r3, 0x14(r4)
/* 8039D6D4 0039A634 38 A4 00 0F */ addi r5, r4, 0xf
/* 8039D6D8 0039A638 38 C4 00 4C */ addi r6, r4, 0x4c
/* 8039D6DC 0039A63C 3C 63 40 00 */ addis r3, r3, 0x4000
/* 8039D6E0 0039A640 80 03 00 00 */ lwz r0, 0(r3)
/* 8039D6E4 0039A644 54 00 46 3E */ srwi r0, r0, 0x18
/* 8039D6E8 0039A648 98 04 00 0F */ stb r0, 0xf(r4)
/* 8039D6EC 0039A64C 80 64 00 4C */ lwz r3, 0x4c(r4)
/* 8039D6F0 0039A650 3C 03 00 01 */ addis r0, r3, 1
/* 8039D6F4 0039A654 28 00 FF FF */ cmplwi r0, 0xffff
/* 8039D6F8 0039A658 41 82 00 10 */ beq lbl_8039D708
/* 8039D6FC 0039A65C 80 66 00 00 */ lwz r3, 0(r6)
/* 8039D700 0039A660 88 85 00 00 */ lbz r4, 0(r5)
/* 8039D704 0039A664 48 01 5E E1 */ bl hwSetStreamLoopPS
lbl_8039D708:
/* 8039D708 0039A668 48 01 79 7D */ bl hwEnableIrq
/* 8039D70C 0039A66C 39 61 00 20 */ addi r11, r1, 0x20
/* 8039D710 0039A670 4B FE C3 B5 */ bl _restgpr_26
/* 8039D714 0039A674 80 01 00 24 */ lwz r0, 0x24(r1)
/* 8039D718 0039A678 7C 08 03 A6 */ mtlr r0
/* 8039D71C 0039A67C 38 21 00 20 */ addi r1, r1, 0x20
/* 8039D720 0039A680 4E 80 00 20 */ blr
.global CheckOutputMode
CheckOutputMode:
/* 8039D724 0039A684 80 AD AE 74 */ lwz r5, synthFlags@sda21(r13)
/* 8039D728 0039A688 54 A0 07 FF */ clrlwi. r0, r5, 0x1f
/* 8039D72C 0039A68C 41 82 00 18 */ beq lbl_8039D744
/* 8039D730 0039A690 38 A0 00 40 */ li r5, 0x40
/* 8039D734 0039A694 38 00 00 00 */ li r0, 0
/* 8039D738 0039A698 98 A3 00 00 */ stb r5, 0(r3)
/* 8039D73C 0039A69C 98 04 00 00 */ stb r0, 0(r4)
/* 8039D740 0039A6A0 4E 80 00 20 */ blr
lbl_8039D744:
/* 8039D744 0039A6A4 54 A0 07 BD */ rlwinm. r0, r5, 0, 0x1e, 0x1e
/* 8039D748 0039A6A8 4C 82 00 20 */ bnelr
/* 8039D74C 0039A6AC 38 00 00 00 */ li r0, 0
/* 8039D750 0039A6B0 98 04 00 00 */ stb r0, 0(r4)
/* 8039D754 0039A6B4 4E 80 00 20 */ blr
.global SetupVolumeAndPan
SetupVolumeAndPan:
/* 8039D758 0039A6B8 98 A3 00 5E */ stb r5, 0x5e(r3)
/* 8039D75C 0039A6BC 98 C3 00 5F */ stb r6, 0x5f(r3)
/* 8039D760 0039A6C0 81 2D AE 74 */ lwz r9, synthFlags@sda21(r13)
/* 8039D764 0039A6C4 55 20 07 FF */ clrlwi. r0, r9, 0x1f
/* 8039D768 0039A6C8 41 82 00 10 */ beq lbl_8039D778
/* 8039D76C 0039A6CC 38 A0 00 40 */ li r5, 0x40
/* 8039D770 0039A6D0 38 C0 00 00 */ li r6, 0
/* 8039D774 0039A6D4 48 00 00 10 */ b lbl_8039D784
lbl_8039D778:
/* 8039D778 0039A6D8 55 20 07 BD */ rlwinm. r0, r9, 0, 0x1e, 0x1e
/* 8039D77C 0039A6DC 40 82 00 08 */ bne lbl_8039D784
/* 8039D780 0039A6E0 38 C0 00 00 */ li r6, 0
lbl_8039D784:
/* 8039D784 0039A6E4 98 83 00 59 */ stb r4, 0x59(r3)
/* 8039D788 0039A6E8 98 A3 00 5A */ stb r5, 0x5a(r3)
/* 8039D78C 0039A6EC 98 C3 00 5B */ stb r6, 0x5b(r3)
/* 8039D790 0039A6F0 98 E3 00 5C */ stb r7, 0x5c(r3)
/* 8039D794 0039A6F4 99 03 00 5D */ stb r8, 0x5d(r3)
/* 8039D798 0039A6F8 4E 80 00 20 */ blr
.global streamOutputModeChanged
streamOutputModeChanged:
/* 8039D79C 0039A6FC 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 8039D7A0 0039A700 7C 08 02 A6 */ mflr r0
/* 8039D7A4 0039A704 90 01 00 34 */ stw r0, 0x34(r1)
/* 8039D7A8 0039A708 93 E1 00 2C */ stw r31, 0x2c(r1)
/* 8039D7AC 0039A70C 93 C1 00 28 */ stw r30, 0x28(r1)
/* 8039D7B0 0039A710 93 A1 00 24 */ stw r29, 0x24(r1)
/* 8039D7B4 0039A714 48 01 79 09 */ bl hwDisableIrq
/* 8039D7B8 0039A718 3C 80 80 55 */ lis r4, streamInfo@ha
/* 8039D7BC 0039A71C 3C 60 80 55 */ lis r3, synthInfo@ha
/* 8039D7C0 0039A720 3B C4 13 F8 */ addi r30, r4, streamInfo@l
/* 8039D7C4 0039A724 3B A0 00 00 */ li r29, 0
/* 8039D7C8 0039A728 3B E3 00 50 */ addi r31, r3, synthInfo@l
/* 8039D7CC 0039A72C 48 00 00 D4 */ b lbl_8039D8A0
lbl_8039D7D0:
/* 8039D7D0 0039A730 88 1E 00 0C */ lbz r0, 0xc(r30)
/* 8039D7D4 0039A734 28 00 00 00 */ cmplwi r0, 0
/* 8039D7D8 0039A738 41 82 00 C0 */ beq lbl_8039D898
/* 8039D7DC 0039A73C 88 1E 00 5E */ lbz r0, 0x5e(r30)
/* 8039D7E0 0039A740 80 8D AE 74 */ lwz r4, synthFlags@sda21(r13)
/* 8039D7E4 0039A744 98 1E 00 5A */ stb r0, 0x5a(r30)
/* 8039D7E8 0039A748 54 80 07 FF */ clrlwi. r0, r4, 0x1f
/* 8039D7EC 0039A74C 88 7E 00 5F */ lbz r3, 0x5f(r30)
/* 8039D7F0 0039A750 98 7E 00 5B */ stb r3, 0x5b(r30)
/* 8039D7F4 0039A754 41 82 00 18 */ beq lbl_8039D80C
/* 8039D7F8 0039A758 38 60 00 40 */ li r3, 0x40
/* 8039D7FC 0039A75C 38 00 00 00 */ li r0, 0
/* 8039D800 0039A760 98 7E 00 5A */ stb r3, 0x5a(r30)
/* 8039D804 0039A764 98 1E 00 5B */ stb r0, 0x5b(r30)
/* 8039D808 0039A768 48 00 00 14 */ b lbl_8039D81C
lbl_8039D80C:
/* 8039D80C 0039A76C 54 80 07 BD */ rlwinm. r0, r4, 0, 0x1e, 0x1e
/* 8039D810 0039A770 40 82 00 0C */ bne lbl_8039D81C
/* 8039D814 0039A774 38 00 00 00 */ li r0, 0
/* 8039D818 0039A778 98 1E 00 5B */ stb r0, 0x5b(r30)
lbl_8039D81C:
/* 8039D81C 0039A77C 88 1E 00 0C */ lbz r0, 0xc(r30)
/* 8039D820 0039A780 28 00 00 03 */ cmplwi r0, 3
/* 8039D824 0039A784 41 82 00 74 */ beq lbl_8039D898
/* 8039D828 0039A788 88 BE 00 59 */ lbz r5, 0x59(r30)
/* 8039D82C 0039A78C 3C E0 43 30 */ lis r7, 0x4330
/* 8039D830 0039A790 88 7E 00 5C */ lbz r3, 0x5c(r30)
/* 8039D834 0039A794 38 80 00 00 */ li r4, 0
/* 8039D838 0039A798 88 1E 00 5D */ lbz r0, 0x5d(r30)
/* 8039D83C 0039A79C 90 A1 00 0C */ stw r5, 0xc(r1)
/* 8039D840 0039A7A0 C8 62 D5 58 */ lfd f3, lbl_805AF278@sda21(r2)
/* 8039D844 0039A7A4 90 E1 00 08 */ stw r7, 8(r1)
/* 8039D848 0039A7A8 88 BE 00 5A */ lbz r5, 0x5a(r30)
/* 8039D84C 0039A7AC C8 01 00 08 */ lfd f0, 8(r1)
/* 8039D850 0039A7B0 90 61 00 14 */ stw r3, 0x14(r1)
/* 8039D854 0039A7B4 54 A5 80 1E */ slwi r5, r5, 0x10
/* 8039D858 0039A7B8 88 7E 00 5B */ lbz r3, 0x5b(r30)
/* 8039D85C 0039A7BC EC 20 18 28 */ fsubs f1, f0, f3
/* 8039D860 0039A7C0 90 E1 00 10 */ stw r7, 0x10(r1)
/* 8039D864 0039A7C4 C0 82 D5 50 */ lfs f4, lbl_805AF270@sda21(r2)
/* 8039D868 0039A7C8 54 66 80 1E */ slwi r6, r3, 0x10
/* 8039D86C 0039A7CC C8 01 00 10 */ lfd f0, 0x10(r1)
/* 8039D870 0039A7D0 90 01 00 1C */ stw r0, 0x1c(r1)
/* 8039D874 0039A7D4 EC 24 00 72 */ fmuls f1, f4, f1
/* 8039D878 0039A7D8 EC 40 18 28 */ fsubs f2, f0, f3
/* 8039D87C 0039A7DC 80 7E 00 4C */ lwz r3, 0x4c(r30)
/* 8039D880 0039A7E0 90 E1 00 18 */ stw r7, 0x18(r1)
/* 8039D884 0039A7E4 C8 01 00 18 */ lfd f0, 0x18(r1)
/* 8039D888 0039A7E8 EC 44 00 B2 */ fmuls f2, f4, f2
/* 8039D88C 0039A7EC EC 00 18 28 */ fsubs f0, f0, f3
/* 8039D890 0039A7F0 EC 64 00 32 */ fmuls f3, f4, f0
/* 8039D894 0039A7F4 48 01 5E F5 */ bl hwSetVolume
lbl_8039D898:
/* 8039D898 0039A7F8 3B DE 00 64 */ addi r30, r30, 0x64
/* 8039D89C 0039A7FC 3B BD 00 01 */ addi r29, r29, 1
lbl_8039D8A0:
/* 8039D8A0 0039A800 88 1F 02 10 */ lbz r0, 0x210(r31)
/* 8039D8A4 0039A804 7C 1D 00 40 */ cmplw r29, r0
/* 8039D8A8 0039A808 41 80 FF 28 */ blt lbl_8039D7D0
/* 8039D8AC 0039A80C 48 01 77 D9 */ bl hwEnableIrq
/* 8039D8B0 0039A810 80 01 00 34 */ lwz r0, 0x34(r1)
/* 8039D8B4 0039A814 83 E1 00 2C */ lwz r31, 0x2c(r1)
/* 8039D8B8 0039A818 83 C1 00 28 */ lwz r30, 0x28(r1)
/* 8039D8BC 0039A81C 83 A1 00 24 */ lwz r29, 0x24(r1)
/* 8039D8C0 0039A820 7C 08 03 A6 */ mtlr r0
/* 8039D8C4 0039A824 38 21 00 30 */ addi r1, r1, 0x30
/* 8039D8C8 0039A828 4E 80 00 20 */ blr
.global sndStreamAllocEx
sndStreamAllocEx:
/* 8039D8CC 0039A82C 94 21 FF B0 */ stwu r1, -0x50(r1)
/* 8039D8D0 0039A830 7C 08 02 A6 */ mflr r0
/* 8039D8D4 0039A834 90 01 00 54 */ stw r0, 0x54(r1)
/* 8039D8D8 0039A838 39 61 00 50 */ addi r11, r1, 0x50
/* 8039D8DC 0039A83C 4B FE C1 75 */ bl sub_80389a50
/* 8039D8E0 0039A840 8A A1 00 5B */ lbz r21, 0x5b(r1)
/* 8039D8E4 0039A844 7C 7B 1B 78 */ mr r27, r3
/* 8039D8E8 0039A848 8A C1 00 5F */ lbz r22, 0x5f(r1)
/* 8039D8EC 0039A84C 7C 9C 23 78 */ mr r28, r4
/* 8039D8F0 0039A850 82 E1 00 60 */ lwz r23, 0x60(r1)
/* 8039D8F4 0039A854 7C BD 2B 78 */ mr r29, r5
/* 8039D8F8 0039A858 83 01 00 64 */ lwz r24, 0x64(r1)
/* 8039D8FC 0039A85C 7C DE 33 78 */ mr r30, r6
/* 8039D900 0039A860 83 21 00 68 */ lwz r25, 0x68(r1)
/* 8039D904 0039A864 7C FF 3B 78 */ mr r31, r7
/* 8039D908 0039A868 83 41 00 6C */ lwz r26, 0x6c(r1)
/* 8039D90C 0039A86C 7D 12 43 78 */ mr r18, r8
/* 8039D910 0039A870 7D 33 4B 78 */ mr r19, r9
/* 8039D914 0039A874 7D 54 53 78 */ mr r20, r10
/* 8039D918 0039A878 48 01 77 A5 */ bl hwDisableIrq
/* 8039D91C 0039A87C 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039D920 0039A880 38 00 00 08 */ li r0, 8
/* 8039D924 0039A884 38 C3 13 F8 */ addi r6, r3, streamInfo@l
/* 8039D928 0039A888 38 E0 00 00 */ li r7, 0
/* 8039D92C 0039A88C 7C C3 33 78 */ mr r3, r6
/* 8039D930 0039A890 7C 09 03 A6 */ mtctr r0
lbl_8039D934:
/* 8039D934 0039A894 88 03 00 0C */ lbz r0, 0xc(r3)
/* 8039D938 0039A898 28 00 00 00 */ cmplwi r0, 0
/* 8039D93C 0039A89C 41 82 00 9C */ beq lbl_8039D9D8
/* 8039D940 0039A8A0 88 03 00 70 */ lbz r0, 0x70(r3)
/* 8039D944 0039A8A4 38 E7 00 01 */ addi r7, r7, 1
/* 8039D948 0039A8A8 38 63 00 64 */ addi r3, r3, 0x64
/* 8039D94C 0039A8AC 28 00 00 00 */ cmplwi r0, 0
/* 8039D950 0039A8B0 41 82 00 88 */ beq lbl_8039D9D8
/* 8039D954 0039A8B4 88 03 00 70 */ lbz r0, 0x70(r3)
/* 8039D958 0039A8B8 38 E7 00 01 */ addi r7, r7, 1
/* 8039D95C 0039A8BC 38 63 00 64 */ addi r3, r3, 0x64
/* 8039D960 0039A8C0 28 00 00 00 */ cmplwi r0, 0
/* 8039D964 0039A8C4 41 82 00 74 */ beq lbl_8039D9D8
/* 8039D968 0039A8C8 88 03 00 70 */ lbz r0, 0x70(r3)
/* 8039D96C 0039A8CC 38 E7 00 01 */ addi r7, r7, 1
/* 8039D970 0039A8D0 38 63 00 64 */ addi r3, r3, 0x64
/* 8039D974 0039A8D4 28 00 00 00 */ cmplwi r0, 0
/* 8039D978 0039A8D8 41 82 00 60 */ beq lbl_8039D9D8
/* 8039D97C 0039A8DC 88 03 00 70 */ lbz r0, 0x70(r3)
/* 8039D980 0039A8E0 38 E7 00 01 */ addi r7, r7, 1
/* 8039D984 0039A8E4 38 63 00 64 */ addi r3, r3, 0x64
/* 8039D988 0039A8E8 28 00 00 00 */ cmplwi r0, 0
/* 8039D98C 0039A8EC 41 82 00 4C */ beq lbl_8039D9D8
/* 8039D990 0039A8F0 88 03 00 70 */ lbz r0, 0x70(r3)
/* 8039D994 0039A8F4 38 E7 00 01 */ addi r7, r7, 1
/* 8039D998 0039A8F8 38 63 00 64 */ addi r3, r3, 0x64
/* 8039D99C 0039A8FC 28 00 00 00 */ cmplwi r0, 0
/* 8039D9A0 0039A900 41 82 00 38 */ beq lbl_8039D9D8
/* 8039D9A4 0039A904 88 03 00 70 */ lbz r0, 0x70(r3)
/* 8039D9A8 0039A908 38 E7 00 01 */ addi r7, r7, 1
/* 8039D9AC 0039A90C 38 63 00 64 */ addi r3, r3, 0x64
/* 8039D9B0 0039A910 28 00 00 00 */ cmplwi r0, 0
/* 8039D9B4 0039A914 41 82 00 24 */ beq lbl_8039D9D8
/* 8039D9B8 0039A918 88 03 00 70 */ lbz r0, 0x70(r3)
/* 8039D9BC 0039A91C 38 E7 00 01 */ addi r7, r7, 1
/* 8039D9C0 0039A920 38 63 00 64 */ addi r3, r3, 0x64
/* 8039D9C4 0039A924 28 00 00 00 */ cmplwi r0, 0
/* 8039D9C8 0039A928 41 82 00 10 */ beq lbl_8039D9D8
/* 8039D9CC 0039A92C 38 63 00 64 */ addi r3, r3, 0x64
/* 8039D9D0 0039A930 38 E7 00 01 */ addi r7, r7, 1
/* 8039D9D4 0039A934 42 00 FF 60 */ bdnz lbl_8039D934
lbl_8039D9D8:
/* 8039D9D8 0039A938 28 07 00 40 */ cmplwi r7, 0x40
/* 8039D9DC 0039A93C 41 82 03 24 */ beq lbl_8039DD00
/* 8039D9E0 0039A940 80 8D AE 90 */ lwz r4, nextPublicID@sda21(r13)
lbl_8039D9E4:
/* 8039D9E4 0039A944 3C 04 00 01 */ addis r0, r4, 1
/* 8039D9E8 0039A948 7C 91 23 78 */ mr r17, r4
/* 8039D9EC 0039A94C 28 00 FF FF */ cmplwi r0, 0xffff
/* 8039D9F0 0039A950 38 84 00 01 */ addi r4, r4, 1
/* 8039D9F4 0039A954 40 82 00 0C */ bne lbl_8039DA00
/* 8039D9F8 0039A958 7C 91 23 78 */ mr r17, r4
/* 8039D9FC 0039A95C 38 84 00 01 */ addi r4, r4, 1
lbl_8039DA00:
/* 8039DA00 0039A960 38 00 00 08 */ li r0, 8
/* 8039DA04 0039A964 7C C5 33 78 */ mr r5, r6
/* 8039DA08 0039A968 38 60 00 00 */ li r3, 0
/* 8039DA0C 0039A96C 7C 09 03 A6 */ mtctr r0
lbl_8039DA10:
/* 8039DA10 0039A970 88 05 00 0C */ lbz r0, 0xc(r5)
/* 8039DA14 0039A974 28 00 00 00 */ cmplwi r0, 0
/* 8039DA18 0039A978 41 82 00 10 */ beq lbl_8039DA28
/* 8039DA1C 0039A97C 80 05 00 04 */ lwz r0, 4(r5)
/* 8039DA20 0039A980 7C 11 00 40 */ cmplw r17, r0
/* 8039DA24 0039A984 41 82 00 F0 */ beq lbl_8039DB14
lbl_8039DA28:
/* 8039DA28 0039A988 88 05 00 70 */ lbz r0, 0x70(r5)
/* 8039DA2C 0039A98C 38 63 00 01 */ addi r3, r3, 1
/* 8039DA30 0039A990 38 A5 00 64 */ addi r5, r5, 0x64
/* 8039DA34 0039A994 28 00 00 00 */ cmplwi r0, 0
/* 8039DA38 0039A998 41 82 00 10 */ beq lbl_8039DA48
/* 8039DA3C 0039A99C 80 05 00 04 */ lwz r0, 4(r5)
/* 8039DA40 0039A9A0 7C 11 00 40 */ cmplw r17, r0
/* 8039DA44 0039A9A4 41 82 00 D0 */ beq lbl_8039DB14
lbl_8039DA48:
/* 8039DA48 0039A9A8 88 05 00 70 */ lbz r0, 0x70(r5)
/* 8039DA4C 0039A9AC 38 63 00 01 */ addi r3, r3, 1
/* 8039DA50 0039A9B0 38 A5 00 64 */ addi r5, r5, 0x64
/* 8039DA54 0039A9B4 28 00 00 00 */ cmplwi r0, 0
/* 8039DA58 0039A9B8 41 82 00 10 */ beq lbl_8039DA68
/* 8039DA5C 0039A9BC 80 05 00 04 */ lwz r0, 4(r5)
/* 8039DA60 0039A9C0 7C 11 00 40 */ cmplw r17, r0
/* 8039DA64 0039A9C4 41 82 00 B0 */ beq lbl_8039DB14
lbl_8039DA68:
/* 8039DA68 0039A9C8 88 05 00 70 */ lbz r0, 0x70(r5)
/* 8039DA6C 0039A9CC 38 63 00 01 */ addi r3, r3, 1
/* 8039DA70 0039A9D0 38 A5 00 64 */ addi r5, r5, 0x64
/* 8039DA74 0039A9D4 28 00 00 00 */ cmplwi r0, 0
/* 8039DA78 0039A9D8 41 82 00 10 */ beq lbl_8039DA88
/* 8039DA7C 0039A9DC 80 05 00 04 */ lwz r0, 4(r5)
/* 8039DA80 0039A9E0 7C 11 00 40 */ cmplw r17, r0
/* 8039DA84 0039A9E4 41 82 00 90 */ beq lbl_8039DB14
lbl_8039DA88:
/* 8039DA88 0039A9E8 88 05 00 70 */ lbz r0, 0x70(r5)
/* 8039DA8C 0039A9EC 38 63 00 01 */ addi r3, r3, 1
/* 8039DA90 0039A9F0 38 A5 00 64 */ addi r5, r5, 0x64
/* 8039DA94 0039A9F4 28 00 00 00 */ cmplwi r0, 0
/* 8039DA98 0039A9F8 41 82 00 10 */ beq lbl_8039DAA8
/* 8039DA9C 0039A9FC 80 05 00 04 */ lwz r0, 4(r5)
/* 8039DAA0 0039AA00 7C 11 00 40 */ cmplw r17, r0
/* 8039DAA4 0039AA04 41 82 00 70 */ beq lbl_8039DB14
lbl_8039DAA8:
/* 8039DAA8 0039AA08 88 05 00 70 */ lbz r0, 0x70(r5)
/* 8039DAAC 0039AA0C 38 63 00 01 */ addi r3, r3, 1
/* 8039DAB0 0039AA10 38 A5 00 64 */ addi r5, r5, 0x64
/* 8039DAB4 0039AA14 28 00 00 00 */ cmplwi r0, 0
/* 8039DAB8 0039AA18 41 82 00 10 */ beq lbl_8039DAC8
/* 8039DABC 0039AA1C 80 05 00 04 */ lwz r0, 4(r5)
/* 8039DAC0 0039AA20 7C 11 00 40 */ cmplw r17, r0
/* 8039DAC4 0039AA24 41 82 00 50 */ beq lbl_8039DB14
lbl_8039DAC8:
/* 8039DAC8 0039AA28 88 05 00 70 */ lbz r0, 0x70(r5)
/* 8039DACC 0039AA2C 38 63 00 01 */ addi r3, r3, 1
/* 8039DAD0 0039AA30 38 A5 00 64 */ addi r5, r5, 0x64
/* 8039DAD4 0039AA34 28 00 00 00 */ cmplwi r0, 0
/* 8039DAD8 0039AA38 41 82 00 10 */ beq lbl_8039DAE8
/* 8039DADC 0039AA3C 80 05 00 04 */ lwz r0, 4(r5)
/* 8039DAE0 0039AA40 7C 11 00 40 */ cmplw r17, r0
/* 8039DAE4 0039AA44 41 82 00 30 */ beq lbl_8039DB14
lbl_8039DAE8:
/* 8039DAE8 0039AA48 88 05 00 70 */ lbz r0, 0x70(r5)
/* 8039DAEC 0039AA4C 38 63 00 01 */ addi r3, r3, 1
/* 8039DAF0 0039AA50 38 A5 00 64 */ addi r5, r5, 0x64
/* 8039DAF4 0039AA54 28 00 00 00 */ cmplwi r0, 0
/* 8039DAF8 0039AA58 41 82 00 10 */ beq lbl_8039DB08
/* 8039DAFC 0039AA5C 80 05 00 04 */ lwz r0, 4(r5)
/* 8039DB00 0039AA60 7C 11 00 40 */ cmplw r17, r0
/* 8039DB04 0039AA64 41 82 00 10 */ beq lbl_8039DB14
lbl_8039DB08:
/* 8039DB08 0039AA68 38 A5 00 64 */ addi r5, r5, 0x64
/* 8039DB0C 0039AA6C 38 63 00 01 */ addi r3, r3, 1
/* 8039DB10 0039AA70 42 00 FF 00 */ bdnz lbl_8039DA10
lbl_8039DB14:
/* 8039DB14 0039AA74 28 03 00 40 */ cmplwi r3, 0x40
/* 8039DB18 0039AA78 40 82 FE CC */ bne lbl_8039D9E4
/* 8039DB1C 0039AA7C 1E 07 00 64 */ mulli r16, r7, 0x64
/* 8039DB20 0039AA80 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039DB24 0039AA84 90 8D AE 90 */ stw r4, nextPublicID@sda21(r13)
/* 8039DB28 0039AA88 7E E4 BB 78 */ mr r4, r23
/* 8039DB2C 0039AA8C 38 03 13 F8 */ addi r0, r3, streamInfo@l
/* 8039DB30 0039AA90 7C A0 82 14 */ add r5, r0, r16
/* 8039DB34 0039AA94 92 25 00 04 */ stw r17, 4(r5)
/* 8039DB38 0039AA98 7F A3 EB 78 */ mr r3, r29
/* 8039DB3C 0039AA9C 92 E5 00 08 */ stw r23, 8(r5)
/* 8039DB40 0039AAA0 48 00 04 A5 */ bl sndStreamAllocLength
/* 8039DB44 0039AAA4 3C 80 80 55 */ lis r4, streamInfo@ha
/* 8039DB48 0039AAA8 56 E0 07 FF */ clrlwi. r0, r23, 0x1f
/* 8039DB4C 0039AAAC 38 84 13 F8 */ addi r4, r4, streamInfo@l
/* 8039DB50 0039AAB0 7C 84 82 14 */ add r4, r4, r16
/* 8039DB54 0039AAB4 38 00 FF FF */ li r0, -1
/* 8039DB58 0039AAB8 93 84 00 14 */ stw r28, 0x14(r4)
/* 8039DB5C 0039AABC 93 A4 00 18 */ stw r29, 0x18(r4)
/* 8039DB60 0039AAC0 90 64 00 1C */ stw r3, 0x1c(r4)
/* 8039DB64 0039AAC4 93 04 00 10 */ stw r24, 0x10(r4)
/* 8039DB68 0039AAC8 90 04 00 4C */ stw r0, 0x4c(r4)
/* 8039DB6C 0039AACC 41 82 00 AC */ beq lbl_8039DC18
/* 8039DB70 0039AAD0 28 1A 00 00 */ cmplwi r26, 0
/* 8039DB74 0039AAD4 41 82 00 8C */ beq lbl_8039DC00
/* 8039DB78 0039AAD8 A8 BA 00 00 */ lha r5, 0(r26)
/* 8039DB7C 0039AADC 38 00 00 08 */ li r0, 8
/* 8039DB80 0039AAE0 B0 A4 00 2C */ sth r5, 0x2c(r4)
/* 8039DB84 0039AAE4 A8 BA 00 02 */ lha r5, 2(r26)
/* 8039DB88 0039AAE8 B0 A4 00 2E */ sth r5, 0x2e(r4)
/* 8039DB8C 0039AAEC A8 BA 00 04 */ lha r5, 4(r26)
/* 8039DB90 0039AAF0 B0 A4 00 30 */ sth r5, 0x30(r4)
/* 8039DB94 0039AAF4 A8 BA 00 06 */ lha r5, 6(r26)
/* 8039DB98 0039AAF8 B0 A4 00 32 */ sth r5, 0x32(r4)
/* 8039DB9C 0039AAFC A8 BA 00 08 */ lha r5, 8(r26)
/* 8039DBA0 0039AB00 B0 A4 00 34 */ sth r5, 0x34(r4)
/* 8039DBA4 0039AB04 A8 BA 00 0A */ lha r5, 0xa(r26)
/* 8039DBA8 0039AB08 B0 A4 00 36 */ sth r5, 0x36(r4)
/* 8039DBAC 0039AB0C A8 BA 00 0C */ lha r5, 0xc(r26)
/* 8039DBB0 0039AB10 B0 A4 00 38 */ sth r5, 0x38(r4)
/* 8039DBB4 0039AB14 A8 BA 00 0E */ lha r5, 0xe(r26)
/* 8039DBB8 0039AB18 B0 A4 00 3A */ sth r5, 0x3a(r4)
/* 8039DBBC 0039AB1C A8 BA 00 10 */ lha r5, 0x10(r26)
/* 8039DBC0 0039AB20 B0 A4 00 3C */ sth r5, 0x3c(r4)
/* 8039DBC4 0039AB24 A8 BA 00 12 */ lha r5, 0x12(r26)
/* 8039DBC8 0039AB28 B0 A4 00 3E */ sth r5, 0x3e(r4)
/* 8039DBCC 0039AB2C A8 BA 00 14 */ lha r5, 0x14(r26)
/* 8039DBD0 0039AB30 B0 A4 00 40 */ sth r5, 0x40(r4)
/* 8039DBD4 0039AB34 A8 BA 00 16 */ lha r5, 0x16(r26)
/* 8039DBD8 0039AB38 B0 A4 00 42 */ sth r5, 0x42(r4)
/* 8039DBDC 0039AB3C A8 BA 00 18 */ lha r5, 0x18(r26)
/* 8039DBE0 0039AB40 B0 A4 00 44 */ sth r5, 0x44(r4)
/* 8039DBE4 0039AB44 A8 BA 00 1A */ lha r5, 0x1a(r26)
/* 8039DBE8 0039AB48 B0 A4 00 46 */ sth r5, 0x46(r4)
/* 8039DBEC 0039AB4C A8 BA 00 1C */ lha r5, 0x1c(r26)
/* 8039DBF0 0039AB50 B0 A4 00 48 */ sth r5, 0x48(r4)
/* 8039DBF4 0039AB54 A8 BA 00 1E */ lha r5, 0x1e(r26)
/* 8039DBF8 0039AB58 B0 A4 00 4A */ sth r5, 0x4a(r4)
/* 8039DBFC 0039AB5C B0 04 00 24 */ sth r0, 0x24(r4)
lbl_8039DC00:
/* 8039DC00 0039AB60 3C 80 80 55 */ lis r4, streamInfo@ha
/* 8039DC04 0039AB64 38 A0 00 01 */ li r5, 1
/* 8039DC08 0039AB68 38 04 13 F8 */ addi r0, r4, streamInfo@l
/* 8039DC0C 0039AB6C 7C 80 82 14 */ add r4, r0, r16
/* 8039DC10 0039AB70 98 A4 00 0D */ stb r5, 0xd(r4)
/* 8039DC14 0039AB74 48 00 00 0C */ b lbl_8039DC20
lbl_8039DC18:
/* 8039DC18 0039AB78 38 00 00 00 */ li r0, 0
/* 8039DC1C 0039AB7C 98 04 00 0D */ stb r0, 0xd(r4)
lbl_8039DC20:
/* 8039DC20 0039AB80 3C 80 80 55 */ lis r4, streamInfo@ha
/* 8039DC24 0039AB84 80 AD AE 74 */ lwz r5, synthFlags@sda21(r13)
/* 8039DC28 0039AB88 38 04 13 F8 */ addi r0, r4, streamInfo@l
/* 8039DC2C 0039AB8C 7E 68 9B 78 */ mr r8, r19
/* 8039DC30 0039AB90 7C 80 82 14 */ add r4, r0, r16
/* 8039DC34 0039AB94 7E 47 93 78 */ mr r7, r18
/* 8039DC38 0039AB98 93 C4 00 54 */ stw r30, 0x54(r4)
/* 8039DC3C 0039AB9C 54 A0 07 FF */ clrlwi. r0, r5, 0x1f
/* 8039DC40 0039ABA0 9A C4 00 60 */ stb r22, 0x60(r4)
/* 8039DC44 0039ABA4 9B 64 00 58 */ stb r27, 0x58(r4)
/* 8039DC48 0039ABA8 9A 44 00 5E */ stb r18, 0x5e(r4)
/* 8039DC4C 0039ABAC 9A 64 00 5F */ stb r19, 0x5f(r4)
/* 8039DC50 0039ABB0 41 82 00 10 */ beq lbl_8039DC60
/* 8039DC54 0039ABB4 38 E0 00 40 */ li r7, 0x40
/* 8039DC58 0039ABB8 39 00 00 00 */ li r8, 0
/* 8039DC5C 0039ABBC 48 00 00 10 */ b lbl_8039DC6C
lbl_8039DC60:
/* 8039DC60 0039ABC0 54 A0 07 BD */ rlwinm. r0, r5, 0, 0x1e, 0x1e
/* 8039DC64 0039ABC4 40 82 00 08 */ bne lbl_8039DC6C
/* 8039DC68 0039ABC8 39 00 00 00 */ li r8, 0
lbl_8039DC6C:
/* 8039DC6C 0039ABCC 3C A0 80 55 */ lis r5, streamInfo@ha
/* 8039DC70 0039ABD0 38 80 FF FF */ li r4, -1
/* 8039DC74 0039ABD4 38 C5 13 F8 */ addi r6, r5, streamInfo@l
/* 8039DC78 0039ABD8 38 00 00 03 */ li r0, 3
/* 8039DC7C 0039ABDC 7C A6 82 14 */ add r5, r6, r16
/* 8039DC80 0039ABE0 9B E5 00 59 */ stb r31, 0x59(r5)
/* 8039DC84 0039ABE4 3A 45 00 0C */ addi r18, r5, 0xc
/* 8039DC88 0039ABE8 98 E5 00 5A */ stb r7, 0x5a(r5)
/* 8039DC8C 0039ABEC 99 05 00 5B */ stb r8, 0x5b(r5)
/* 8039DC90 0039ABF0 9A 85 00 5C */ stb r20, 0x5c(r5)
/* 8039DC94 0039ABF4 9A A5 00 5D */ stb r21, 0x5d(r5)
/* 8039DC98 0039ABF8 93 25 00 50 */ stw r25, 0x50(r5)
/* 8039DC9C 0039ABFC 7C 86 81 2E */ stwx r4, r6, r16
/* 8039DCA0 0039AC00 98 05 00 0C */ stb r0, 0xc(r5)
/* 8039DCA4 0039AC04 48 01 60 01 */ bl sub_803b3ca4
/* 8039DCA8 0039AC08 3C 80 80 55 */ lis r4, streamInfo@ha
/* 8039DCAC 0039AC0C 54 60 06 3E */ clrlwi r0, r3, 0x18
/* 8039DCB0 0039AC10 38 84 13 F8 */ addi r4, r4, streamInfo@l
/* 8039DCB4 0039AC14 7C 84 82 14 */ add r4, r4, r16
/* 8039DCB8 0039AC18 28 00 00 FF */ cmplwi r0, 0xff
/* 8039DCBC 0039AC1C 98 64 00 0E */ stb r3, 0xe(r4)
/* 8039DCC0 0039AC20 41 82 00 24 */ beq lbl_8039DCE4
/* 8039DCC4 0039AC24 56 E0 03 DF */ rlwinm. r0, r23, 0, 0xf, 0xf
/* 8039DCC8 0039AC28 40 82 00 20 */ bne lbl_8039DCE8
/* 8039DCCC 0039AC2C 7E 23 8B 78 */ mr r3, r17
/* 8039DCD0 0039AC30 48 00 21 F9 */ bl sndStreamActivate
/* 8039DCD4 0039AC34 28 03 00 00 */ cmplwi r3, 0
/* 8039DCD8 0039AC38 40 82 00 10 */ bne lbl_8039DCE8
/* 8039DCDC 0039AC3C 3A 20 FF FF */ li r17, -1
/* 8039DCE0 0039AC40 48 00 00 08 */ b lbl_8039DCE8
lbl_8039DCE4:
/* 8039DCE4 0039AC44 3A 20 FF FF */ li r17, -1
lbl_8039DCE8:
/* 8039DCE8 0039AC48 3C 11 00 01 */ addis r0, r17, 1
/* 8039DCEC 0039AC4C 28 00 FF FF */ cmplwi r0, 0xffff
/* 8039DCF0 0039AC50 40 82 00 14 */ bne lbl_8039DD04
/* 8039DCF4 0039AC54 38 00 00 00 */ li r0, 0
/* 8039DCF8 0039AC58 98 12 00 00 */ stb r0, 0(r18)
/* 8039DCFC 0039AC5C 48 00 00 08 */ b lbl_8039DD04
lbl_8039DD00:
/* 8039DD00 0039AC60 3A 20 FF FF */ li r17, -1
lbl_8039DD04:
/* 8039DD04 0039AC64 48 01 73 81 */ bl hwEnableIrq
/* 8039DD08 0039AC68 7E 23 8B 78 */ mr r3, r17
/* 8039DD0C 0039AC6C 39 61 00 50 */ addi r11, r1, 0x50
/* 8039DD10 0039AC70 4B FE BD 8D */ bl _restgpr_16
/* 8039DD14 0039AC74 80 01 00 54 */ lwz r0, 0x54(r1)
/* 8039DD18 0039AC78 7C 08 03 A6 */ mtlr r0
/* 8039DD1C 0039AC7C 38 21 00 50 */ addi r1, r1, 0x50
/* 8039DD20 0039AC80 4E 80 00 20 */ blr
.global sndStreamAllocStereo
sndStreamAllocStereo:
/* 8039DD24 0039AC84 94 21 FF 90 */ stwu r1, -0x70(r1)
/* 8039DD28 0039AC88 7C 08 02 A6 */ mflr r0
/* 8039DD2C 0039AC8C 90 01 00 74 */ stw r0, 0x74(r1)
/* 8039DD30 0039AC90 39 61 00 70 */ addi r11, r1, 0x70
/* 8039DD34 0039AC94 4B FE BD 15 */ bl __save_gpr
/* 8039DD38 0039AC98 55 29 06 3E */ clrlwi r9, r9, 0x18
/* 8039DD3C 0039AC9C 8A E1 00 7B */ lbz r23, 0x7b(r1)
/* 8039DD40 0039ACA0 38 09 FF C0 */ addi r0, r9, -64
/* 8039DD44 0039ACA4 8B 01 00 7F */ lbz r24, 0x7f(r1)
/* 8039DD48 0039ACA8 7C 00 07 35 */ extsh. r0, r0
/* 8039DD4C 0039ACAC 8B 21 00 83 */ lbz r25, 0x83(r1)
/* 8039DD50 0039ACB0 83 41 00 84 */ lwz r26, 0x84(r1)
/* 8039DD54 0039ACB4 7C 7F 1B 78 */ mr r31, r3
/* 8039DD58 0039ACB8 83 61 00 88 */ lwz r27, 0x88(r1)
/* 8039DD5C 0039ACBC 7C 92 23 78 */ mr r18, r4
/* 8039DD60 0039ACC0 83 81 00 8C */ lwz r28, 0x8c(r1)
/* 8039DD64 0039ACC4 7C AF 2B 78 */ mr r15, r5
/* 8039DD68 0039ACC8 81 C1 00 90 */ lwz r14, 0x90(r1)
/* 8039DD6C 0039ACCC 7C D3 33 78 */ mr r19, r6
/* 8039DD70 0039ACD0 83 A1 00 94 */ lwz r29, 0x94(r1)
/* 8039DD74 0039ACD4 7C F4 3B 78 */ mr r20, r7
/* 8039DD78 0039ACD8 83 C1 00 98 */ lwz r30, 0x98(r1)
/* 8039DD7C 0039ACDC 7D 15 43 78 */ mr r21, r8
/* 8039DD80 0039ACE0 7D 56 53 78 */ mr r22, r10
/* 8039DD84 0039ACE4 40 80 00 0C */ bge lbl_8039DD90
/* 8039DD88 0039ACE8 38 60 00 00 */ li r3, 0
/* 8039DD8C 0039ACEC 48 00 00 14 */ b lbl_8039DDA0
lbl_8039DD90:
/* 8039DD90 0039ACF0 2C 00 00 7F */ cmpwi r0, 0x7f
/* 8039DD94 0039ACF4 38 60 00 7F */ li r3, 0x7f
/* 8039DD98 0039ACF8 41 81 00 08 */ bgt lbl_8039DDA0
/* 8039DD9C 0039ACFC 7C 03 03 78 */ mr r3, r0
lbl_8039DDA0:
/* 8039DDA0 0039AD00 38 09 00 40 */ addi r0, r9, 0x40
/* 8039DDA4 0039AD04 7C 71 07 34 */ extsh r17, r3
/* 8039DDA8 0039AD08 7C 03 07 35 */ extsh. r3, r0
/* 8039DDAC 0039AD0C 40 80 00 0C */ bge lbl_8039DDB8
/* 8039DDB0 0039AD10 38 00 00 00 */ li r0, 0
/* 8039DDB4 0039AD14 48 00 00 14 */ b lbl_8039DDC8
lbl_8039DDB8:
/* 8039DDB8 0039AD18 2C 03 00 7F */ cmpwi r3, 0x7f
/* 8039DDBC 0039AD1C 38 00 00 7F */ li r0, 0x7f
/* 8039DDC0 0039AD20 41 81 00 08 */ bgt lbl_8039DDC8
/* 8039DDC4 0039AD24 7C 60 1B 78 */ mr r0, r3
lbl_8039DDC8:
/* 8039DDC8 0039AD28 7C 10 07 34 */ extsh r16, r0
/* 8039DDCC 0039AD2C 48 01 72 F1 */ bl hwDisableIrq
/* 8039DDD0 0039AD30 93 01 00 08 */ stw r24, 8(r1)
/* 8039DDD4 0039AD34 7F E3 FB 78 */ mr r3, r31
/* 8039DDD8 0039AD38 7E 44 93 78 */ mr r4, r18
/* 8039DDDC 0039AD3C 7E 65 9B 78 */ mr r5, r19
/* 8039DDE0 0039AD40 93 21 00 0C */ stw r25, 0xc(r1)
/* 8039DDE4 0039AD44 7E 86 A3 78 */ mr r6, r20
/* 8039DDE8 0039AD48 7E A7 AB 78 */ mr r7, r21
/* 8039DDEC 0039AD4C 7E C9 B3 78 */ mr r9, r22
/* 8039DDF0 0039AD50 93 41 00 10 */ stw r26, 0x10(r1)
/* 8039DDF4 0039AD54 7E EA BB 78 */ mr r10, r23
/* 8039DDF8 0039AD58 56 28 06 3E */ clrlwi r8, r17, 0x18
/* 8039DDFC 0039AD5C 93 61 00 14 */ stw r27, 0x14(r1)
/* 8039DE00 0039AD60 93 81 00 18 */ stw r28, 0x18(r1)
/* 8039DE04 0039AD64 93 A1 00 1C */ stw r29, 0x1c(r1)
/* 8039DE08 0039AD68 4B FF FA C5 */ bl sndStreamAllocEx
/* 8039DE0C 0039AD6C 7C 71 1B 78 */ mr r17, r3
/* 8039DE10 0039AD70 3C 11 00 01 */ addis r0, r17, 1
/* 8039DE14 0039AD74 28 00 FF FF */ cmplwi r0, 0xffff
/* 8039DE18 0039AD78 41 82 01 AC */ beq lbl_8039DFC4
/* 8039DE1C 0039AD7C 93 01 00 08 */ stw r24, 8(r1)
/* 8039DE20 0039AD80 7F E3 FB 78 */ mr r3, r31
/* 8039DE24 0039AD84 7D E4 7B 78 */ mr r4, r15
/* 8039DE28 0039AD88 7E 65 9B 78 */ mr r5, r19
/* 8039DE2C 0039AD8C 93 21 00 0C */ stw r25, 0xc(r1)
/* 8039DE30 0039AD90 7E 86 A3 78 */ mr r6, r20
/* 8039DE34 0039AD94 7E A7 AB 78 */ mr r7, r21
/* 8039DE38 0039AD98 7E C9 B3 78 */ mr r9, r22
/* 8039DE3C 0039AD9C 93 41 00 10 */ stw r26, 0x10(r1)
/* 8039DE40 0039ADA0 7E EA BB 78 */ mr r10, r23
/* 8039DE44 0039ADA4 56 08 06 3E */ clrlwi r8, r16, 0x18
/* 8039DE48 0039ADA8 93 61 00 14 */ stw r27, 0x14(r1)
/* 8039DE4C 0039ADAC 91 C1 00 18 */ stw r14, 0x18(r1)
/* 8039DE50 0039ADB0 93 C1 00 1C */ stw r30, 0x1c(r1)
/* 8039DE54 0039ADB4 4B FF FA 79 */ bl sndStreamAllocEx
/* 8039DE58 0039ADB8 3C 03 00 01 */ addis r0, r3, 1
/* 8039DE5C 0039ADBC 28 00 FF FF */ cmplwi r0, 0xffff
/* 8039DE60 0039ADC0 40 82 00 18 */ bne lbl_8039DE78
/* 8039DE64 0039ADC4 7E 23 8B 78 */ mr r3, r17
/* 8039DE68 0039ADC8 48 00 19 8D */ bl sndStreamFree
/* 8039DE6C 0039ADCC 48 01 72 19 */ bl hwEnableIrq
/* 8039DE70 0039ADD0 38 60 FF FF */ li r3, -1
/* 8039DE74 0039ADD4 48 00 01 58 */ b lbl_8039DFCC
lbl_8039DE78:
/* 8039DE78 0039ADD8 3C 80 80 55 */ lis r4, streamInfo@ha
/* 8039DE7C 0039ADDC 38 00 00 08 */ li r0, 8
/* 8039DE80 0039ADE0 38 A4 13 F8 */ addi r5, r4, streamInfo@l
/* 8039DE84 0039ADE4 38 80 00 00 */ li r4, 0
/* 8039DE88 0039ADE8 7C 09 03 A6 */ mtctr r0
lbl_8039DE8C:
/* 8039DE8C 0039ADEC 88 05 00 0C */ lbz r0, 0xc(r5)
/* 8039DE90 0039ADF0 28 00 00 00 */ cmplwi r0, 0
/* 8039DE94 0039ADF4 41 82 00 14 */ beq lbl_8039DEA8
/* 8039DE98 0039ADF8 80 05 00 04 */ lwz r0, 4(r5)
/* 8039DE9C 0039ADFC 7C 11 00 40 */ cmplw r17, r0
/* 8039DEA0 0039AE00 40 82 00 08 */ bne lbl_8039DEA8
/* 8039DEA4 0039AE04 48 00 01 10 */ b lbl_8039DFB4
lbl_8039DEA8:
/* 8039DEA8 0039AE08 88 05 00 70 */ lbz r0, 0x70(r5)
/* 8039DEAC 0039AE0C 38 84 00 01 */ addi r4, r4, 1
/* 8039DEB0 0039AE10 38 A5 00 64 */ addi r5, r5, 0x64
/* 8039DEB4 0039AE14 28 00 00 00 */ cmplwi r0, 0
/* 8039DEB8 0039AE18 41 82 00 14 */ beq lbl_8039DECC
/* 8039DEBC 0039AE1C 80 05 00 04 */ lwz r0, 4(r5)
/* 8039DEC0 0039AE20 7C 11 00 40 */ cmplw r17, r0
/* 8039DEC4 0039AE24 40 82 00 08 */ bne lbl_8039DECC
/* 8039DEC8 0039AE28 48 00 00 EC */ b lbl_8039DFB4
lbl_8039DECC:
/* 8039DECC 0039AE2C 88 05 00 70 */ lbz r0, 0x70(r5)
/* 8039DED0 0039AE30 38 84 00 01 */ addi r4, r4, 1
/* 8039DED4 0039AE34 38 A5 00 64 */ addi r5, r5, 0x64
/* 8039DED8 0039AE38 28 00 00 00 */ cmplwi r0, 0
/* 8039DEDC 0039AE3C 41 82 00 14 */ beq lbl_8039DEF0
/* 8039DEE0 0039AE40 80 05 00 04 */ lwz r0, 4(r5)
/* 8039DEE4 0039AE44 7C 11 00 40 */ cmplw r17, r0
/* 8039DEE8 0039AE48 40 82 00 08 */ bne lbl_8039DEF0
/* 8039DEEC 0039AE4C 48 00 00 C8 */ b lbl_8039DFB4
lbl_8039DEF0:
/* 8039DEF0 0039AE50 88 05 00 70 */ lbz r0, 0x70(r5)
/* 8039DEF4 0039AE54 38 84 00 01 */ addi r4, r4, 1
/* 8039DEF8 0039AE58 38 A5 00 64 */ addi r5, r5, 0x64
/* 8039DEFC 0039AE5C 28 00 00 00 */ cmplwi r0, 0
/* 8039DF00 0039AE60 41 82 00 14 */ beq lbl_8039DF14
/* 8039DF04 0039AE64 80 05 00 04 */ lwz r0, 4(r5)
/* 8039DF08 0039AE68 7C 11 00 40 */ cmplw r17, r0
/* 8039DF0C 0039AE6C 40 82 00 08 */ bne lbl_8039DF14
/* 8039DF10 0039AE70 48 00 00 A4 */ b lbl_8039DFB4
lbl_8039DF14:
/* 8039DF14 0039AE74 88 05 00 70 */ lbz r0, 0x70(r5)
/* 8039DF18 0039AE78 38 84 00 01 */ addi r4, r4, 1
/* 8039DF1C 0039AE7C 38 A5 00 64 */ addi r5, r5, 0x64
/* 8039DF20 0039AE80 28 00 00 00 */ cmplwi r0, 0
/* 8039DF24 0039AE84 41 82 00 14 */ beq lbl_8039DF38
/* 8039DF28 0039AE88 80 05 00 04 */ lwz r0, 4(r5)
/* 8039DF2C 0039AE8C 7C 11 00 40 */ cmplw r17, r0
/* 8039DF30 0039AE90 40 82 00 08 */ bne lbl_8039DF38
/* 8039DF34 0039AE94 48 00 00 80 */ b lbl_8039DFB4
lbl_8039DF38:
/* 8039DF38 0039AE98 88 05 00 70 */ lbz r0, 0x70(r5)
/* 8039DF3C 0039AE9C 38 84 00 01 */ addi r4, r4, 1
/* 8039DF40 0039AEA0 38 A5 00 64 */ addi r5, r5, 0x64
/* 8039DF44 0039AEA4 28 00 00 00 */ cmplwi r0, 0
/* 8039DF48 0039AEA8 41 82 00 14 */ beq lbl_8039DF5C
/* 8039DF4C 0039AEAC 80 05 00 04 */ lwz r0, 4(r5)
/* 8039DF50 0039AEB0 7C 11 00 40 */ cmplw r17, r0
/* 8039DF54 0039AEB4 40 82 00 08 */ bne lbl_8039DF5C
/* 8039DF58 0039AEB8 48 00 00 5C */ b lbl_8039DFB4
lbl_8039DF5C:
/* 8039DF5C 0039AEBC 88 05 00 70 */ lbz r0, 0x70(r5)
/* 8039DF60 0039AEC0 38 84 00 01 */ addi r4, r4, 1
/* 8039DF64 0039AEC4 38 A5 00 64 */ addi r5, r5, 0x64
/* 8039DF68 0039AEC8 28 00 00 00 */ cmplwi r0, 0
/* 8039DF6C 0039AECC 41 82 00 14 */ beq lbl_8039DF80
/* 8039DF70 0039AED0 80 05 00 04 */ lwz r0, 4(r5)
/* 8039DF74 0039AED4 7C 11 00 40 */ cmplw r17, r0
/* 8039DF78 0039AED8 40 82 00 08 */ bne lbl_8039DF80
/* 8039DF7C 0039AEDC 48 00 00 38 */ b lbl_8039DFB4
lbl_8039DF80:
/* 8039DF80 0039AEE0 88 05 00 70 */ lbz r0, 0x70(r5)
/* 8039DF84 0039AEE4 38 84 00 01 */ addi r4, r4, 1
/* 8039DF88 0039AEE8 38 A5 00 64 */ addi r5, r5, 0x64
/* 8039DF8C 0039AEEC 28 00 00 00 */ cmplwi r0, 0
/* 8039DF90 0039AEF0 41 82 00 14 */ beq lbl_8039DFA4
/* 8039DF94 0039AEF4 80 05 00 04 */ lwz r0, 4(r5)
/* 8039DF98 0039AEF8 7C 11 00 40 */ cmplw r17, r0
/* 8039DF9C 0039AEFC 40 82 00 08 */ bne lbl_8039DFA4
/* 8039DFA0 0039AF00 48 00 00 14 */ b lbl_8039DFB4
lbl_8039DFA4:
/* 8039DFA4 0039AF04 38 A5 00 64 */ addi r5, r5, 0x64
/* 8039DFA8 0039AF08 38 84 00 01 */ addi r4, r4, 1
/* 8039DFAC 0039AF0C 42 00 FE E0 */ bdnz lbl_8039DE8C
/* 8039DFB0 0039AF10 38 80 FF FF */ li r4, -1
lbl_8039DFB4:
/* 8039DFB4 0039AF14 1C 04 00 64 */ mulli r0, r4, 0x64
/* 8039DFB8 0039AF18 3C 80 80 55 */ lis r4, streamInfo@ha
/* 8039DFBC 0039AF1C 38 84 13 F8 */ addi r4, r4, streamInfo@l
/* 8039DFC0 0039AF20 7C 64 01 2E */ stwx r3, r4, r0
lbl_8039DFC4:
/* 8039DFC4 0039AF24 48 01 70 C1 */ bl hwEnableIrq
/* 8039DFC8 0039AF28 7E 23 8B 78 */ mr r3, r17
lbl_8039DFCC:
/* 8039DFCC 0039AF2C 39 61 00 70 */ addi r11, r1, 0x70
/* 8039DFD0 0039AF30 4B FE BA C5 */ bl __restore_gpr
/* 8039DFD4 0039AF34 80 01 00 74 */ lwz r0, 0x74(r1)
/* 8039DFD8 0039AF38 7C 08 03 A6 */ mtlr r0
/* 8039DFDC 0039AF3C 38 21 00 70 */ addi r1, r1, 0x70
/* 8039DFE0 0039AF40 4E 80 00 20 */ blr
.global sndStreamAllocLength
sndStreamAllocLength:
/* 8039DFE4 0039AF44 54 80 07 FF */ clrlwi. r0, r4, 0x1f
/* 8039DFE8 0039AF48 41 82 00 30 */ beq lbl_8039E018
/* 8039DFEC 0039AF4C 3C 80 24 92 */ lis r4, 0x24924925@ha
/* 8039DFF0 0039AF50 38 03 00 0D */ addi r0, r3, 0xd
/* 8039DFF4 0039AF54 38 64 49 25 */ addi r3, r4, 0x24924925@l
/* 8039DFF8 0039AF58 7C 63 00 16 */ mulhwu r3, r3, r0
/* 8039DFFC 0039AF5C 7C 03 00 50 */ subf r0, r3, r0
/* 8039E000 0039AF60 54 00 F8 7E */ srwi r0, r0, 1
/* 8039E004 0039AF64 7C 00 1A 14 */ add r0, r0, r3
/* 8039E008 0039AF68 54 03 00 38 */ rlwinm r3, r0, 0, 0, 0x1c
/* 8039E00C 0039AF6C 38 03 00 1F */ addi r0, r3, 0x1f
/* 8039E010 0039AF70 54 03 00 34 */ rlwinm r3, r0, 0, 0, 0x1a
/* 8039E014 0039AF74 4E 80 00 20 */ blr
lbl_8039E018:
/* 8039E018 0039AF78 54 63 08 3C */ slwi r3, r3, 1
/* 8039E01C 0039AF7C 38 03 00 1F */ addi r0, r3, 0x1f
/* 8039E020 0039AF80 54 03 00 34 */ rlwinm r3, r0, 0, 0, 0x1a
/* 8039E024 0039AF84 4E 80 00 20 */ blr
.global sndStreamADPCMParameter
sndStreamADPCMParameter:
/* 8039E028 0039AF88 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 8039E02C 0039AF8C 7C 08 02 A6 */ mflr r0
/* 8039E030 0039AF90 90 01 00 24 */ stw r0, 0x24(r1)
/* 8039E034 0039AF94 39 61 00 20 */ addi r11, r1, 0x20
/* 8039E038 0039AF98 4B FE BA 41 */ bl _savegpr_26
/* 8039E03C 0039AF9C 7C 7A 1B 78 */ mr r26, r3
/* 8039E040 0039AFA0 7C 9B 23 78 */ mr r27, r4
/* 8039E044 0039AFA4 48 01 70 79 */ bl hwDisableIrq
/* 8039E048 0039AFA8 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039E04C 0039AFAC 38 00 00 08 */ li r0, 8
/* 8039E050 0039AFB0 3B E3 13 F8 */ addi r31, r3, streamInfo@l
/* 8039E054 0039AFB4 38 C0 00 00 */ li r6, 0
/* 8039E058 0039AFB8 7F E3 FB 78 */ mr r3, r31
/* 8039E05C 0039AFBC 7C 09 03 A6 */ mtctr r0
lbl_8039E060:
/* 8039E060 0039AFC0 88 03 00 0C */ lbz r0, 0xc(r3)
/* 8039E064 0039AFC4 28 00 00 00 */ cmplwi r0, 0
/* 8039E068 0039AFC8 41 82 00 14 */ beq lbl_8039E07C
/* 8039E06C 0039AFCC 80 03 00 04 */ lwz r0, 4(r3)
/* 8039E070 0039AFD0 7C 1A 00 40 */ cmplw r26, r0
/* 8039E074 0039AFD4 40 82 00 08 */ bne lbl_8039E07C
/* 8039E078 0039AFD8 48 00 01 10 */ b lbl_8039E188
lbl_8039E07C:
/* 8039E07C 0039AFDC 88 03 00 70 */ lbz r0, 0x70(r3)
/* 8039E080 0039AFE0 38 C6 00 01 */ addi r6, r6, 1
/* 8039E084 0039AFE4 38 63 00 64 */ addi r3, r3, 0x64
/* 8039E088 0039AFE8 28 00 00 00 */ cmplwi r0, 0
/* 8039E08C 0039AFEC 41 82 00 14 */ beq lbl_8039E0A0
/* 8039E090 0039AFF0 80 03 00 04 */ lwz r0, 4(r3)
/* 8039E094 0039AFF4 7C 1A 00 40 */ cmplw r26, r0
/* 8039E098 0039AFF8 40 82 00 08 */ bne lbl_8039E0A0
/* 8039E09C 0039AFFC 48 00 00 EC */ b lbl_8039E188
lbl_8039E0A0:
/* 8039E0A0 0039B000 88 03 00 70 */ lbz r0, 0x70(r3)
/* 8039E0A4 0039B004 38 C6 00 01 */ addi r6, r6, 1
/* 8039E0A8 0039B008 38 63 00 64 */ addi r3, r3, 0x64
/* 8039E0AC 0039B00C 28 00 00 00 */ cmplwi r0, 0
/* 8039E0B0 0039B010 41 82 00 14 */ beq lbl_8039E0C4
/* 8039E0B4 0039B014 80 03 00 04 */ lwz r0, 4(r3)
/* 8039E0B8 0039B018 7C 1A 00 40 */ cmplw r26, r0
/* 8039E0BC 0039B01C 40 82 00 08 */ bne lbl_8039E0C4
/* 8039E0C0 0039B020 48 00 00 C8 */ b lbl_8039E188
lbl_8039E0C4:
/* 8039E0C4 0039B024 88 03 00 70 */ lbz r0, 0x70(r3)
/* 8039E0C8 0039B028 38 C6 00 01 */ addi r6, r6, 1
/* 8039E0CC 0039B02C 38 63 00 64 */ addi r3, r3, 0x64
/* 8039E0D0 0039B030 28 00 00 00 */ cmplwi r0, 0
/* 8039E0D4 0039B034 41 82 00 14 */ beq lbl_8039E0E8
/* 8039E0D8 0039B038 80 03 00 04 */ lwz r0, 4(r3)
/* 8039E0DC 0039B03C 7C 1A 00 40 */ cmplw r26, r0
/* 8039E0E0 0039B040 40 82 00 08 */ bne lbl_8039E0E8
/* 8039E0E4 0039B044 48 00 00 A4 */ b lbl_8039E188
lbl_8039E0E8:
/* 8039E0E8 0039B048 88 03 00 70 */ lbz r0, 0x70(r3)
/* 8039E0EC 0039B04C 38 C6 00 01 */ addi r6, r6, 1
/* 8039E0F0 0039B050 38 63 00 64 */ addi r3, r3, 0x64
/* 8039E0F4 0039B054 28 00 00 00 */ cmplwi r0, 0
/* 8039E0F8 0039B058 41 82 00 14 */ beq lbl_8039E10C
/* 8039E0FC 0039B05C 80 03 00 04 */ lwz r0, 4(r3)
/* 8039E100 0039B060 7C 1A 00 40 */ cmplw r26, r0
/* 8039E104 0039B064 40 82 00 08 */ bne lbl_8039E10C
/* 8039E108 0039B068 48 00 00 80 */ b lbl_8039E188
lbl_8039E10C:
/* 8039E10C 0039B06C 88 03 00 70 */ lbz r0, 0x70(r3)
/* 8039E110 0039B070 38 C6 00 01 */ addi r6, r6, 1
/* 8039E114 0039B074 38 63 00 64 */ addi r3, r3, 0x64
/* 8039E118 0039B078 28 00 00 00 */ cmplwi r0, 0
/* 8039E11C 0039B07C 41 82 00 14 */ beq lbl_8039E130
/* 8039E120 0039B080 80 03 00 04 */ lwz r0, 4(r3)
/* 8039E124 0039B084 7C 1A 00 40 */ cmplw r26, r0
/* 8039E128 0039B088 40 82 00 08 */ bne lbl_8039E130
/* 8039E12C 0039B08C 48 00 00 5C */ b lbl_8039E188
lbl_8039E130:
/* 8039E130 0039B090 88 03 00 70 */ lbz r0, 0x70(r3)
/* 8039E134 0039B094 38 C6 00 01 */ addi r6, r6, 1
/* 8039E138 0039B098 38 63 00 64 */ addi r3, r3, 0x64
/* 8039E13C 0039B09C 28 00 00 00 */ cmplwi r0, 0
/* 8039E140 0039B0A0 41 82 00 14 */ beq lbl_8039E154
/* 8039E144 0039B0A4 80 03 00 04 */ lwz r0, 4(r3)
/* 8039E148 0039B0A8 7C 1A 00 40 */ cmplw r26, r0
/* 8039E14C 0039B0AC 40 82 00 08 */ bne lbl_8039E154
/* 8039E150 0039B0B0 48 00 00 38 */ b lbl_8039E188
lbl_8039E154:
/* 8039E154 0039B0B4 88 03 00 70 */ lbz r0, 0x70(r3)
/* 8039E158 0039B0B8 38 C6 00 01 */ addi r6, r6, 1
/* 8039E15C 0039B0BC 38 63 00 64 */ addi r3, r3, 0x64
/* 8039E160 0039B0C0 28 00 00 00 */ cmplwi r0, 0
/* 8039E164 0039B0C4 41 82 00 14 */ beq lbl_8039E178
/* 8039E168 0039B0C8 80 03 00 04 */ lwz r0, 4(r3)
/* 8039E16C 0039B0CC 7C 1A 00 40 */ cmplw r26, r0
/* 8039E170 0039B0D0 40 82 00 08 */ bne lbl_8039E178
/* 8039E174 0039B0D4 48 00 00 14 */ b lbl_8039E188
lbl_8039E178:
/* 8039E178 0039B0D8 38 63 00 64 */ addi r3, r3, 0x64
/* 8039E17C 0039B0DC 38 C6 00 01 */ addi r6, r6, 1
/* 8039E180 0039B0E0 42 00 FE E0 */ bdnz lbl_8039E060
/* 8039E184 0039B0E4 38 C0 FF FF */ li r6, -1
lbl_8039E188:
/* 8039E188 0039B0E8 3C 06 00 01 */ addis r0, r6, 1
/* 8039E18C 0039B0EC 28 00 FF FF */ cmplwi r0, 0xffff
/* 8039E190 0039B0F0 41 82 05 78 */ beq lbl_8039E708
/* 8039E194 0039B0F4 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039E198 0039B0F8 A8 BB 00 00 */ lha r5, 0(r27)
/* 8039E19C 0039B0FC 38 83 13 F8 */ addi r4, r3, streamInfo@l
/* 8039E1A0 0039B100 38 00 00 08 */ li r0, 8
/* 8039E1A4 0039B104 1C C6 00 64 */ mulli r6, r6, 0x64
/* 8039E1A8 0039B108 3B C4 00 2C */ addi r30, r4, 0x2c
/* 8039E1AC 0039B10C 3B A4 00 2E */ addi r29, r4, 0x2e
/* 8039E1B0 0039B110 7C FE 32 14 */ add r7, r30, r6
/* 8039E1B4 0039B114 3B 84 00 24 */ addi r28, r4, 0x24
/* 8039E1B8 0039B118 B0 A7 00 00 */ sth r5, 0(r7)
/* 8039E1BC 0039B11C 7C BD 32 14 */ add r5, r29, r6
/* 8039E1C0 0039B120 A8 7B 00 02 */ lha r3, 2(r27)
/* 8039E1C4 0039B124 B0 65 00 00 */ sth r3, 0(r5)
/* 8039E1C8 0039B128 A8 7B 00 04 */ lha r3, 4(r27)
/* 8039E1CC 0039B12C B0 67 00 04 */ sth r3, 4(r7)
/* 8039E1D0 0039B130 A8 7B 00 06 */ lha r3, 6(r27)
/* 8039E1D4 0039B134 B0 65 00 04 */ sth r3, 4(r5)
/* 8039E1D8 0039B138 A8 7B 00 08 */ lha r3, 8(r27)
/* 8039E1DC 0039B13C B0 67 00 08 */ sth r3, 8(r7)
/* 8039E1E0 0039B140 A8 7B 00 0A */ lha r3, 0xa(r27)
/* 8039E1E4 0039B144 B0 65 00 08 */ sth r3, 8(r5)
/* 8039E1E8 0039B148 A8 7B 00 0C */ lha r3, 0xc(r27)
/* 8039E1EC 0039B14C B0 67 00 0C */ sth r3, 0xc(r7)
/* 8039E1F0 0039B150 A8 7B 00 0E */ lha r3, 0xe(r27)
/* 8039E1F4 0039B154 B0 65 00 0C */ sth r3, 0xc(r5)
/* 8039E1F8 0039B158 A8 7B 00 10 */ lha r3, 0x10(r27)
/* 8039E1FC 0039B15C B0 67 00 10 */ sth r3, 0x10(r7)
/* 8039E200 0039B160 A8 7B 00 12 */ lha r3, 0x12(r27)
/* 8039E204 0039B164 B0 65 00 10 */ sth r3, 0x10(r5)
/* 8039E208 0039B168 A8 7B 00 14 */ lha r3, 0x14(r27)
/* 8039E20C 0039B16C B0 67 00 14 */ sth r3, 0x14(r7)
/* 8039E210 0039B170 A8 7B 00 16 */ lha r3, 0x16(r27)
/* 8039E214 0039B174 B0 65 00 14 */ sth r3, 0x14(r5)
/* 8039E218 0039B178 A8 7B 00 18 */ lha r3, 0x18(r27)
/* 8039E21C 0039B17C B0 67 00 18 */ sth r3, 0x18(r7)
/* 8039E220 0039B180 A8 7B 00 1A */ lha r3, 0x1a(r27)
/* 8039E224 0039B184 B0 65 00 18 */ sth r3, 0x18(r5)
/* 8039E228 0039B188 A8 7B 00 1C */ lha r3, 0x1c(r27)
/* 8039E22C 0039B18C B0 67 00 1C */ sth r3, 0x1c(r7)
/* 8039E230 0039B190 A8 7B 00 1E */ lha r3, 0x1e(r27)
/* 8039E234 0039B194 B0 65 00 1C */ sth r3, 0x1c(r5)
/* 8039E238 0039B198 7C 1C 33 2E */ sthx r0, r28, r6
/* 8039E23C 0039B19C 7F 44 30 2E */ lwzx r26, r4, r6
/* 8039E240 0039B1A0 3C 1A 00 01 */ addis r0, r26, 1
/* 8039E244 0039B1A4 28 00 FF FF */ cmplwi r0, 0xffff
/* 8039E248 0039B1A8 41 82 04 C0 */ beq lbl_8039E708
/* 8039E24C 0039B1AC 48 01 6E 71 */ bl hwDisableIrq
/* 8039E250 0039B1B0 38 00 00 08 */ li r0, 8
/* 8039E254 0039B1B4 7F E4 FB 78 */ mr r4, r31
/* 8039E258 0039B1B8 38 60 00 00 */ li r3, 0
/* 8039E25C 0039B1BC 7C 09 03 A6 */ mtctr r0
lbl_8039E260:
/* 8039E260 0039B1C0 88 04 00 0C */ lbz r0, 0xc(r4)
/* 8039E264 0039B1C4 28 00 00 00 */ cmplwi r0, 0
/* 8039E268 0039B1C8 41 82 00 14 */ beq lbl_8039E27C
/* 8039E26C 0039B1CC 80 04 00 04 */ lwz r0, 4(r4)
/* 8039E270 0039B1D0 7C 1A 00 40 */ cmplw r26, r0
/* 8039E274 0039B1D4 40 82 00 08 */ bne lbl_8039E27C
/* 8039E278 0039B1D8 48 00 01 10 */ b lbl_8039E388
lbl_8039E27C:
/* 8039E27C 0039B1DC 88 04 00 70 */ lbz r0, 0x70(r4)
/* 8039E280 0039B1E0 38 63 00 01 */ addi r3, r3, 1
/* 8039E284 0039B1E4 38 84 00 64 */ addi r4, r4, 0x64
/* 8039E288 0039B1E8 28 00 00 00 */ cmplwi r0, 0
/* 8039E28C 0039B1EC 41 82 00 14 */ beq lbl_8039E2A0
/* 8039E290 0039B1F0 80 04 00 04 */ lwz r0, 4(r4)
/* 8039E294 0039B1F4 7C 1A 00 40 */ cmplw r26, r0
/* 8039E298 0039B1F8 40 82 00 08 */ bne lbl_8039E2A0
/* 8039E29C 0039B1FC 48 00 00 EC */ b lbl_8039E388
lbl_8039E2A0:
/* 8039E2A0 0039B200 88 04 00 70 */ lbz r0, 0x70(r4)
/* 8039E2A4 0039B204 38 63 00 01 */ addi r3, r3, 1
/* 8039E2A8 0039B208 38 84 00 64 */ addi r4, r4, 0x64
/* 8039E2AC 0039B20C 28 00 00 00 */ cmplwi r0, 0
/* 8039E2B0 0039B210 41 82 00 14 */ beq lbl_8039E2C4
/* 8039E2B4 0039B214 80 04 00 04 */ lwz r0, 4(r4)
/* 8039E2B8 0039B218 7C 1A 00 40 */ cmplw r26, r0
/* 8039E2BC 0039B21C 40 82 00 08 */ bne lbl_8039E2C4
/* 8039E2C0 0039B220 48 00 00 C8 */ b lbl_8039E388
lbl_8039E2C4:
/* 8039E2C4 0039B224 88 04 00 70 */ lbz r0, 0x70(r4)
/* 8039E2C8 0039B228 38 63 00 01 */ addi r3, r3, 1
/* 8039E2CC 0039B22C 38 84 00 64 */ addi r4, r4, 0x64
/* 8039E2D0 0039B230 28 00 00 00 */ cmplwi r0, 0
/* 8039E2D4 0039B234 41 82 00 14 */ beq lbl_8039E2E8
/* 8039E2D8 0039B238 80 04 00 04 */ lwz r0, 4(r4)
/* 8039E2DC 0039B23C 7C 1A 00 40 */ cmplw r26, r0
/* 8039E2E0 0039B240 40 82 00 08 */ bne lbl_8039E2E8
/* 8039E2E4 0039B244 48 00 00 A4 */ b lbl_8039E388
lbl_8039E2E8:
/* 8039E2E8 0039B248 88 04 00 70 */ lbz r0, 0x70(r4)
/* 8039E2EC 0039B24C 38 63 00 01 */ addi r3, r3, 1
/* 8039E2F0 0039B250 38 84 00 64 */ addi r4, r4, 0x64
/* 8039E2F4 0039B254 28 00 00 00 */ cmplwi r0, 0
/* 8039E2F8 0039B258 41 82 00 14 */ beq lbl_8039E30C
/* 8039E2FC 0039B25C 80 04 00 04 */ lwz r0, 4(r4)
/* 8039E300 0039B260 7C 1A 00 40 */ cmplw r26, r0
/* 8039E304 0039B264 40 82 00 08 */ bne lbl_8039E30C
/* 8039E308 0039B268 48 00 00 80 */ b lbl_8039E388
lbl_8039E30C:
/* 8039E30C 0039B26C 88 04 00 70 */ lbz r0, 0x70(r4)
/* 8039E310 0039B270 38 63 00 01 */ addi r3, r3, 1
/* 8039E314 0039B274 38 84 00 64 */ addi r4, r4, 0x64
/* 8039E318 0039B278 28 00 00 00 */ cmplwi r0, 0
/* 8039E31C 0039B27C 41 82 00 14 */ beq lbl_8039E330
/* 8039E320 0039B280 80 04 00 04 */ lwz r0, 4(r4)
/* 8039E324 0039B284 7C 1A 00 40 */ cmplw r26, r0
/* 8039E328 0039B288 40 82 00 08 */ bne lbl_8039E330
/* 8039E32C 0039B28C 48 00 00 5C */ b lbl_8039E388
lbl_8039E330:
/* 8039E330 0039B290 88 04 00 70 */ lbz r0, 0x70(r4)
/* 8039E334 0039B294 38 63 00 01 */ addi r3, r3, 1
/* 8039E338 0039B298 38 84 00 64 */ addi r4, r4, 0x64
/* 8039E33C 0039B29C 28 00 00 00 */ cmplwi r0, 0
/* 8039E340 0039B2A0 41 82 00 14 */ beq lbl_8039E354
/* 8039E344 0039B2A4 80 04 00 04 */ lwz r0, 4(r4)
/* 8039E348 0039B2A8 7C 1A 00 40 */ cmplw r26, r0
/* 8039E34C 0039B2AC 40 82 00 08 */ bne lbl_8039E354
/* 8039E350 0039B2B0 48 00 00 38 */ b lbl_8039E388
lbl_8039E354:
/* 8039E354 0039B2B4 88 04 00 70 */ lbz r0, 0x70(r4)
/* 8039E358 0039B2B8 38 63 00 01 */ addi r3, r3, 1
/* 8039E35C 0039B2BC 38 84 00 64 */ addi r4, r4, 0x64
/* 8039E360 0039B2C0 28 00 00 00 */ cmplwi r0, 0
/* 8039E364 0039B2C4 41 82 00 14 */ beq lbl_8039E378
/* 8039E368 0039B2C8 80 04 00 04 */ lwz r0, 4(r4)
/* 8039E36C 0039B2CC 7C 1A 00 40 */ cmplw r26, r0
/* 8039E370 0039B2D0 40 82 00 08 */ bne lbl_8039E378
/* 8039E374 0039B2D4 48 00 00 14 */ b lbl_8039E388
lbl_8039E378:
/* 8039E378 0039B2D8 38 84 00 64 */ addi r4, r4, 0x64
/* 8039E37C 0039B2DC 38 63 00 01 */ addi r3, r3, 1
/* 8039E380 0039B2E0 42 00 FE E0 */ bdnz lbl_8039E260
/* 8039E384 0039B2E4 38 60 FF FF */ li r3, -1
lbl_8039E388:
/* 8039E388 0039B2E8 3C 03 00 01 */ addis r0, r3, 1
/* 8039E38C 0039B2EC 28 00 FF FF */ cmplwi r0, 0xffff
/* 8039E390 0039B2F0 41 82 03 74 */ beq lbl_8039E704
/* 8039E394 0039B2F4 1C A3 00 64 */ mulli r5, r3, 0x64
/* 8039E398 0039B2F8 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039E39C 0039B2FC A8 9B 00 00 */ lha r4, 0(r27)
/* 8039E3A0 0039B300 38 00 00 08 */ li r0, 8
/* 8039E3A4 0039B304 38 63 13 F8 */ addi r3, r3, streamInfo@l
/* 8039E3A8 0039B308 7C DE 2A 14 */ add r6, r30, r5
/* 8039E3AC 0039B30C B0 86 00 00 */ sth r4, 0(r6)
/* 8039E3B0 0039B310 7C FD 2A 14 */ add r7, r29, r5
/* 8039E3B4 0039B314 A8 9B 00 02 */ lha r4, 2(r27)
/* 8039E3B8 0039B318 B0 87 00 00 */ sth r4, 0(r7)
/* 8039E3BC 0039B31C A8 9B 00 04 */ lha r4, 4(r27)
/* 8039E3C0 0039B320 B0 86 00 04 */ sth r4, 4(r6)
/* 8039E3C4 0039B324 A8 9B 00 06 */ lha r4, 6(r27)
/* 8039E3C8 0039B328 B0 87 00 04 */ sth r4, 4(r7)
/* 8039E3CC 0039B32C A8 9B 00 08 */ lha r4, 8(r27)
/* 8039E3D0 0039B330 B0 86 00 08 */ sth r4, 8(r6)
/* 8039E3D4 0039B334 A8 9B 00 0A */ lha r4, 0xa(r27)
/* 8039E3D8 0039B338 B0 87 00 08 */ sth r4, 8(r7)
/* 8039E3DC 0039B33C A8 9B 00 0C */ lha r4, 0xc(r27)
/* 8039E3E0 0039B340 B0 86 00 0C */ sth r4, 0xc(r6)
/* 8039E3E4 0039B344 A8 9B 00 0E */ lha r4, 0xe(r27)
/* 8039E3E8 0039B348 B0 87 00 0C */ sth r4, 0xc(r7)
/* 8039E3EC 0039B34C A8 9B 00 10 */ lha r4, 0x10(r27)
/* 8039E3F0 0039B350 B0 86 00 10 */ sth r4, 0x10(r6)
/* 8039E3F4 0039B354 A8 9B 00 12 */ lha r4, 0x12(r27)
/* 8039E3F8 0039B358 B0 87 00 10 */ sth r4, 0x10(r7)
/* 8039E3FC 0039B35C A8 9B 00 14 */ lha r4, 0x14(r27)
/* 8039E400 0039B360 B0 86 00 14 */ sth r4, 0x14(r6)
/* 8039E404 0039B364 A8 9B 00 16 */ lha r4, 0x16(r27)
/* 8039E408 0039B368 B0 87 00 14 */ sth r4, 0x14(r7)
/* 8039E40C 0039B36C A8 9B 00 18 */ lha r4, 0x18(r27)
/* 8039E410 0039B370 B0 86 00 18 */ sth r4, 0x18(r6)
/* 8039E414 0039B374 A8 9B 00 1A */ lha r4, 0x1a(r27)
/* 8039E418 0039B378 B0 87 00 18 */ sth r4, 0x18(r7)
/* 8039E41C 0039B37C A8 9B 00 1C */ lha r4, 0x1c(r27)
/* 8039E420 0039B380 B0 86 00 1C */ sth r4, 0x1c(r6)
/* 8039E424 0039B384 A8 9B 00 1E */ lha r4, 0x1e(r27)
/* 8039E428 0039B388 B0 87 00 1C */ sth r4, 0x1c(r7)
/* 8039E42C 0039B38C 7C 1C 2B 2E */ sthx r0, r28, r5
/* 8039E430 0039B390 7F 43 28 2E */ lwzx r26, r3, r5
/* 8039E434 0039B394 3C 1A 00 01 */ addis r0, r26, 1
/* 8039E438 0039B398 28 00 FF FF */ cmplwi r0, 0xffff
/* 8039E43C 0039B39C 41 82 02 C8 */ beq lbl_8039E704
/* 8039E440 0039B3A0 48 01 6C 7D */ bl hwDisableIrq
/* 8039E444 0039B3A4 38 00 00 08 */ li r0, 8
/* 8039E448 0039B3A8 38 60 00 00 */ li r3, 0
/* 8039E44C 0039B3AC 7C 09 03 A6 */ mtctr r0
lbl_8039E450:
/* 8039E450 0039B3B0 88 1F 00 0C */ lbz r0, 0xc(r31)
/* 8039E454 0039B3B4 28 00 00 00 */ cmplwi r0, 0
/* 8039E458 0039B3B8 41 82 00 14 */ beq lbl_8039E46C
/* 8039E45C 0039B3BC 80 1F 00 04 */ lwz r0, 4(r31)
/* 8039E460 0039B3C0 7C 1A 00 40 */ cmplw r26, r0
/* 8039E464 0039B3C4 40 82 00 08 */ bne lbl_8039E46C
/* 8039E468 0039B3C8 48 00 01 10 */ b lbl_8039E578
lbl_8039E46C:
/* 8039E46C 0039B3CC 88 1F 00 70 */ lbz r0, 0x70(r31)
/* 8039E470 0039B3D0 38 63 00 01 */ addi r3, r3, 1
/* 8039E474 0039B3D4 3B FF 00 64 */ addi r31, r31, 0x64
/* 8039E478 0039B3D8 28 00 00 00 */ cmplwi r0, 0
/* 8039E47C 0039B3DC 41 82 00 14 */ beq lbl_8039E490
/* 8039E480 0039B3E0 80 1F 00 04 */ lwz r0, 4(r31)
/* 8039E484 0039B3E4 7C 1A 00 40 */ cmplw r26, r0
/* 8039E488 0039B3E8 40 82 00 08 */ bne lbl_8039E490
/* 8039E48C 0039B3EC 48 00 00 EC */ b lbl_8039E578
lbl_8039E490:
/* 8039E490 0039B3F0 88 1F 00 70 */ lbz r0, 0x70(r31)
/* 8039E494 0039B3F4 38 63 00 01 */ addi r3, r3, 1
/* 8039E498 0039B3F8 3B FF 00 64 */ addi r31, r31, 0x64
/* 8039E49C 0039B3FC 28 00 00 00 */ cmplwi r0, 0
/* 8039E4A0 0039B400 41 82 00 14 */ beq lbl_8039E4B4
/* 8039E4A4 0039B404 80 1F 00 04 */ lwz r0, 4(r31)
/* 8039E4A8 0039B408 7C 1A 00 40 */ cmplw r26, r0
/* 8039E4AC 0039B40C 40 82 00 08 */ bne lbl_8039E4B4
/* 8039E4B0 0039B410 48 00 00 C8 */ b lbl_8039E578
lbl_8039E4B4:
/* 8039E4B4 0039B414 88 1F 00 70 */ lbz r0, 0x70(r31)
/* 8039E4B8 0039B418 38 63 00 01 */ addi r3, r3, 1
/* 8039E4BC 0039B41C 3B FF 00 64 */ addi r31, r31, 0x64
/* 8039E4C0 0039B420 28 00 00 00 */ cmplwi r0, 0
/* 8039E4C4 0039B424 41 82 00 14 */ beq lbl_8039E4D8
/* 8039E4C8 0039B428 80 1F 00 04 */ lwz r0, 4(r31)
/* 8039E4CC 0039B42C 7C 1A 00 40 */ cmplw r26, r0
/* 8039E4D0 0039B430 40 82 00 08 */ bne lbl_8039E4D8
/* 8039E4D4 0039B434 48 00 00 A4 */ b lbl_8039E578
lbl_8039E4D8:
/* 8039E4D8 0039B438 88 1F 00 70 */ lbz r0, 0x70(r31)
/* 8039E4DC 0039B43C 38 63 00 01 */ addi r3, r3, 1
/* 8039E4E0 0039B440 3B FF 00 64 */ addi r31, r31, 0x64
/* 8039E4E4 0039B444 28 00 00 00 */ cmplwi r0, 0
/* 8039E4E8 0039B448 41 82 00 14 */ beq lbl_8039E4FC
/* 8039E4EC 0039B44C 80 1F 00 04 */ lwz r0, 4(r31)
/* 8039E4F0 0039B450 7C 1A 00 40 */ cmplw r26, r0
/* 8039E4F4 0039B454 40 82 00 08 */ bne lbl_8039E4FC
/* 8039E4F8 0039B458 48 00 00 80 */ b lbl_8039E578
lbl_8039E4FC:
/* 8039E4FC 0039B45C 88 1F 00 70 */ lbz r0, 0x70(r31)
/* 8039E500 0039B460 38 63 00 01 */ addi r3, r3, 1
/* 8039E504 0039B464 3B FF 00 64 */ addi r31, r31, 0x64
/* 8039E508 0039B468 28 00 00 00 */ cmplwi r0, 0
/* 8039E50C 0039B46C 41 82 00 14 */ beq lbl_8039E520
/* 8039E510 0039B470 80 1F 00 04 */ lwz r0, 4(r31)
/* 8039E514 0039B474 7C 1A 00 40 */ cmplw r26, r0
/* 8039E518 0039B478 40 82 00 08 */ bne lbl_8039E520
/* 8039E51C 0039B47C 48 00 00 5C */ b lbl_8039E578
lbl_8039E520:
/* 8039E520 0039B480 88 1F 00 70 */ lbz r0, 0x70(r31)
/* 8039E524 0039B484 38 63 00 01 */ addi r3, r3, 1
/* 8039E528 0039B488 3B FF 00 64 */ addi r31, r31, 0x64
/* 8039E52C 0039B48C 28 00 00 00 */ cmplwi r0, 0
/* 8039E530 0039B490 41 82 00 14 */ beq lbl_8039E544
/* 8039E534 0039B494 80 1F 00 04 */ lwz r0, 4(r31)
/* 8039E538 0039B498 7C 1A 00 40 */ cmplw r26, r0
/* 8039E53C 0039B49C 40 82 00 08 */ bne lbl_8039E544
/* 8039E540 0039B4A0 48 00 00 38 */ b lbl_8039E578
lbl_8039E544:
/* 8039E544 0039B4A4 88 1F 00 70 */ lbz r0, 0x70(r31)
/* 8039E548 0039B4A8 38 63 00 01 */ addi r3, r3, 1
/* 8039E54C 0039B4AC 3B FF 00 64 */ addi r31, r31, 0x64
/* 8039E550 0039B4B0 28 00 00 00 */ cmplwi r0, 0
/* 8039E554 0039B4B4 41 82 00 14 */ beq lbl_8039E568
/* 8039E558 0039B4B8 80 1F 00 04 */ lwz r0, 4(r31)
/* 8039E55C 0039B4BC 7C 1A 00 40 */ cmplw r26, r0
/* 8039E560 0039B4C0 40 82 00 08 */ bne lbl_8039E568
/* 8039E564 0039B4C4 48 00 00 14 */ b lbl_8039E578
lbl_8039E568:
/* 8039E568 0039B4C8 3B FF 00 64 */ addi r31, r31, 0x64
/* 8039E56C 0039B4CC 38 63 00 01 */ addi r3, r3, 1
/* 8039E570 0039B4D0 42 00 FE E0 */ bdnz lbl_8039E450
/* 8039E574 0039B4D4 38 60 FF FF */ li r3, -1
lbl_8039E578:
/* 8039E578 0039B4D8 3C 03 00 01 */ addis r0, r3, 1
/* 8039E57C 0039B4DC 28 00 FF FF */ cmplwi r0, 0xffff
/* 8039E580 0039B4E0 41 82 01 80 */ beq lbl_8039E700
/* 8039E584 0039B4E4 1C A3 00 64 */ mulli r5, r3, 0x64
/* 8039E588 0039B4E8 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039E58C 0039B4EC A8 9B 00 00 */ lha r4, 0(r27)
/* 8039E590 0039B4F0 38 00 00 08 */ li r0, 8
/* 8039E594 0039B4F4 38 63 13 F8 */ addi r3, r3, streamInfo@l
/* 8039E598 0039B4F8 7C DE 2A 14 */ add r6, r30, r5
/* 8039E59C 0039B4FC B0 86 00 00 */ sth r4, 0(r6)
/* 8039E5A0 0039B500 7C FD 2A 14 */ add r7, r29, r5
/* 8039E5A4 0039B504 A8 9B 00 02 */ lha r4, 2(r27)
/* 8039E5A8 0039B508 B0 87 00 00 */ sth r4, 0(r7)
/* 8039E5AC 0039B50C A8 9B 00 04 */ lha r4, 4(r27)
/* 8039E5B0 0039B510 B0 86 00 04 */ sth r4, 4(r6)
/* 8039E5B4 0039B514 A8 9B 00 06 */ lha r4, 6(r27)
/* 8039E5B8 0039B518 B0 87 00 04 */ sth r4, 4(r7)
/* 8039E5BC 0039B51C A8 9B 00 08 */ lha r4, 8(r27)
/* 8039E5C0 0039B520 B0 86 00 08 */ sth r4, 8(r6)
/* 8039E5C4 0039B524 A8 9B 00 0A */ lha r4, 0xa(r27)
/* 8039E5C8 0039B528 B0 87 00 08 */ sth r4, 8(r7)
/* 8039E5CC 0039B52C A8 9B 00 0C */ lha r4, 0xc(r27)
/* 8039E5D0 0039B530 B0 86 00 0C */ sth r4, 0xc(r6)
/* 8039E5D4 0039B534 A8 9B 00 0E */ lha r4, 0xe(r27)
/* 8039E5D8 0039B538 B0 87 00 0C */ sth r4, 0xc(r7)
/* 8039E5DC 0039B53C A8 9B 00 10 */ lha r4, 0x10(r27)
/* 8039E5E0 0039B540 B0 86 00 10 */ sth r4, 0x10(r6)
/* 8039E5E4 0039B544 A8 9B 00 12 */ lha r4, 0x12(r27)
/* 8039E5E8 0039B548 B0 87 00 10 */ sth r4, 0x10(r7)
/* 8039E5EC 0039B54C A8 9B 00 14 */ lha r4, 0x14(r27)
/* 8039E5F0 0039B550 B0 86 00 14 */ sth r4, 0x14(r6)
/* 8039E5F4 0039B554 A8 9B 00 16 */ lha r4, 0x16(r27)
/* 8039E5F8 0039B558 B0 87 00 14 */ sth r4, 0x14(r7)
/* 8039E5FC 0039B55C A8 9B 00 18 */ lha r4, 0x18(r27)
/* 8039E600 0039B560 B0 86 00 18 */ sth r4, 0x18(r6)
/* 8039E604 0039B564 A8 9B 00 1A */ lha r4, 0x1a(r27)
/* 8039E608 0039B568 B0 87 00 18 */ sth r4, 0x18(r7)
/* 8039E60C 0039B56C A8 9B 00 1C */ lha r4, 0x1c(r27)
/* 8039E610 0039B570 B0 86 00 1C */ sth r4, 0x1c(r6)
/* 8039E614 0039B574 A8 9B 00 1E */ lha r4, 0x1e(r27)
/* 8039E618 0039B578 B0 87 00 1C */ sth r4, 0x1c(r7)
/* 8039E61C 0039B57C 7C 1C 2B 2E */ sthx r0, r28, r5
/* 8039E620 0039B580 7F 43 28 2E */ lwzx r26, r3, r5
/* 8039E624 0039B584 3C 1A 00 01 */ addis r0, r26, 1
/* 8039E628 0039B588 28 00 FF FF */ cmplwi r0, 0xffff
/* 8039E62C 0039B58C 41 82 00 D4 */ beq lbl_8039E700
/* 8039E630 0039B590 48 01 6A 8D */ bl hwDisableIrq
/* 8039E634 0039B594 7F 43 D3 78 */ mr r3, r26
/* 8039E638 0039B598 4B FF EC A9 */ bl GetPrivateIndex
/* 8039E63C 0039B59C 3C 03 00 01 */ addis r0, r3, 1
/* 8039E640 0039B5A0 28 00 FF FF */ cmplwi r0, 0xffff
/* 8039E644 0039B5A4 41 82 00 B8 */ beq lbl_8039E6FC
/* 8039E648 0039B5A8 1C A3 00 64 */ mulli r5, r3, 0x64
/* 8039E64C 0039B5AC 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039E650 0039B5B0 A8 9B 00 00 */ lha r4, 0(r27)
/* 8039E654 0039B5B4 38 00 00 08 */ li r0, 8
/* 8039E658 0039B5B8 38 63 13 F8 */ addi r3, r3, streamInfo@l
/* 8039E65C 0039B5BC 7C DE 2A 14 */ add r6, r30, r5
/* 8039E660 0039B5C0 B0 86 00 00 */ sth r4, 0(r6)
/* 8039E664 0039B5C4 7C FD 2A 14 */ add r7, r29, r5
/* 8039E668 0039B5C8 A8 9B 00 02 */ lha r4, 2(r27)
/* 8039E66C 0039B5CC B0 87 00 00 */ sth r4, 0(r7)
/* 8039E670 0039B5D0 A8 9B 00 04 */ lha r4, 4(r27)
/* 8039E674 0039B5D4 B0 86 00 04 */ sth r4, 4(r6)
/* 8039E678 0039B5D8 A8 9B 00 06 */ lha r4, 6(r27)
/* 8039E67C 0039B5DC B0 87 00 04 */ sth r4, 4(r7)
/* 8039E680 0039B5E0 A8 9B 00 08 */ lha r4, 8(r27)
/* 8039E684 0039B5E4 B0 86 00 08 */ sth r4, 8(r6)
/* 8039E688 0039B5E8 A8 9B 00 0A */ lha r4, 0xa(r27)
/* 8039E68C 0039B5EC B0 87 00 08 */ sth r4, 8(r7)
/* 8039E690 0039B5F0 A8 9B 00 0C */ lha r4, 0xc(r27)
/* 8039E694 0039B5F4 B0 86 00 0C */ sth r4, 0xc(r6)
/* 8039E698 0039B5F8 A8 9B 00 0E */ lha r4, 0xe(r27)
/* 8039E69C 0039B5FC B0 87 00 0C */ sth r4, 0xc(r7)
/* 8039E6A0 0039B600 A8 9B 00 10 */ lha r4, 0x10(r27)
/* 8039E6A4 0039B604 B0 86 00 10 */ sth r4, 0x10(r6)
/* 8039E6A8 0039B608 A8 9B 00 12 */ lha r4, 0x12(r27)
/* 8039E6AC 0039B60C B0 87 00 10 */ sth r4, 0x10(r7)
/* 8039E6B0 0039B610 A8 9B 00 14 */ lha r4, 0x14(r27)
/* 8039E6B4 0039B614 B0 86 00 14 */ sth r4, 0x14(r6)
/* 8039E6B8 0039B618 A8 9B 00 16 */ lha r4, 0x16(r27)
/* 8039E6BC 0039B61C B0 87 00 14 */ sth r4, 0x14(r7)
/* 8039E6C0 0039B620 A8 9B 00 18 */ lha r4, 0x18(r27)
/* 8039E6C4 0039B624 B0 86 00 18 */ sth r4, 0x18(r6)
/* 8039E6C8 0039B628 A8 9B 00 1A */ lha r4, 0x1a(r27)
/* 8039E6CC 0039B62C B0 87 00 18 */ sth r4, 0x18(r7)
/* 8039E6D0 0039B630 A8 9B 00 1C */ lha r4, 0x1c(r27)
/* 8039E6D4 0039B634 B0 86 00 1C */ sth r4, 0x1c(r6)
/* 8039E6D8 0039B638 A8 9B 00 1E */ lha r4, 0x1e(r27)
/* 8039E6DC 0039B63C B0 87 00 1C */ sth r4, 0x1c(r7)
/* 8039E6E0 0039B640 7C 1C 2B 2E */ sthx r0, r28, r5
/* 8039E6E4 0039B644 7C 63 28 2E */ lwzx r3, r3, r5
/* 8039E6E8 0039B648 3C 03 00 01 */ addis r0, r3, 1
/* 8039E6EC 0039B64C 28 00 FF FF */ cmplwi r0, 0xffff
/* 8039E6F0 0039B650 41 82 00 0C */ beq lbl_8039E6FC
/* 8039E6F4 0039B654 7F 64 DB 78 */ mr r4, r27
/* 8039E6F8 0039B658 4B FF F9 31 */ bl sndStreamADPCMParameter
lbl_8039E6FC:
/* 8039E6FC 0039B65C 48 01 69 89 */ bl hwEnableIrq
lbl_8039E700:
/* 8039E700 0039B660 48 01 69 85 */ bl hwEnableIrq
lbl_8039E704:
/* 8039E704 0039B664 48 01 69 81 */ bl hwEnableIrq
lbl_8039E708:
/* 8039E708 0039B668 48 01 69 7D */ bl hwEnableIrq
/* 8039E70C 0039B66C 39 61 00 20 */ addi r11, r1, 0x20
/* 8039E710 0039B670 4B FE B3 B5 */ bl _restgpr_26
/* 8039E714 0039B674 80 01 00 24 */ lwz r0, 0x24(r1)
/* 8039E718 0039B678 7C 08 03 A6 */ mtlr r0
/* 8039E71C 0039B67C 38 21 00 20 */ addi r1, r1, 0x20
/* 8039E720 0039B680 4E 80 00 20 */ blr
.global sndStreamMixParameter
sndStreamMixParameter:
/* 8039E724 0039B684 94 21 FF C0 */ stwu r1, -0x40(r1)
/* 8039E728 0039B688 7C 08 02 A6 */ mflr r0
/* 8039E72C 0039B68C 90 01 00 44 */ stw r0, 0x44(r1)
/* 8039E730 0039B690 39 61 00 40 */ addi r11, r1, 0x40
/* 8039E734 0039B694 4B FE B3 45 */ bl _savegpr_26
/* 8039E738 0039B698 7C 7F 1B 78 */ mr r31, r3
/* 8039E73C 0039B69C 7C 9A 23 78 */ mr r26, r4
/* 8039E740 0039B6A0 7C BB 2B 78 */ mr r27, r5
/* 8039E744 0039B6A4 7C DC 33 78 */ mr r28, r6
/* 8039E748 0039B6A8 7C FD 3B 78 */ mr r29, r7
/* 8039E74C 0039B6AC 48 01 69 71 */ bl hwDisableIrq
/* 8039E750 0039B6B0 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039E754 0039B6B4 38 00 00 08 */ li r0, 8
/* 8039E758 0039B6B8 3B C3 13 F8 */ addi r30, r3, streamInfo@l
/* 8039E75C 0039B6BC 38 60 00 00 */ li r3, 0
/* 8039E760 0039B6C0 7F C4 F3 78 */ mr r4, r30
/* 8039E764 0039B6C4 7C 09 03 A6 */ mtctr r0
lbl_8039E768:
/* 8039E768 0039B6C8 88 04 00 0C */ lbz r0, 0xc(r4)
/* 8039E76C 0039B6CC 28 00 00 00 */ cmplwi r0, 0
/* 8039E770 0039B6D0 41 82 00 14 */ beq lbl_8039E784
/* 8039E774 0039B6D4 80 04 00 04 */ lwz r0, 4(r4)
/* 8039E778 0039B6D8 7C 1F 00 40 */ cmplw r31, r0
/* 8039E77C 0039B6DC 40 82 00 08 */ bne lbl_8039E784
/* 8039E780 0039B6E0 48 00 01 10 */ b lbl_8039E890
lbl_8039E784:
/* 8039E784 0039B6E4 88 04 00 70 */ lbz r0, 0x70(r4)
/* 8039E788 0039B6E8 38 63 00 01 */ addi r3, r3, 1
/* 8039E78C 0039B6EC 38 84 00 64 */ addi r4, r4, 0x64
/* 8039E790 0039B6F0 28 00 00 00 */ cmplwi r0, 0
/* 8039E794 0039B6F4 41 82 00 14 */ beq lbl_8039E7A8
/* 8039E798 0039B6F8 80 04 00 04 */ lwz r0, 4(r4)
/* 8039E79C 0039B6FC 7C 1F 00 40 */ cmplw r31, r0
/* 8039E7A0 0039B700 40 82 00 08 */ bne lbl_8039E7A8
/* 8039E7A4 0039B704 48 00 00 EC */ b lbl_8039E890
lbl_8039E7A8:
/* 8039E7A8 0039B708 88 04 00 70 */ lbz r0, 0x70(r4)
/* 8039E7AC 0039B70C 38 63 00 01 */ addi r3, r3, 1
/* 8039E7B0 0039B710 38 84 00 64 */ addi r4, r4, 0x64
/* 8039E7B4 0039B714 28 00 00 00 */ cmplwi r0, 0
/* 8039E7B8 0039B718 41 82 00 14 */ beq lbl_8039E7CC
/* 8039E7BC 0039B71C 80 04 00 04 */ lwz r0, 4(r4)
/* 8039E7C0 0039B720 7C 1F 00 40 */ cmplw r31, r0
/* 8039E7C4 0039B724 40 82 00 08 */ bne lbl_8039E7CC
/* 8039E7C8 0039B728 48 00 00 C8 */ b lbl_8039E890
lbl_8039E7CC:
/* 8039E7CC 0039B72C 88 04 00 70 */ lbz r0, 0x70(r4)
/* 8039E7D0 0039B730 38 63 00 01 */ addi r3, r3, 1
/* 8039E7D4 0039B734 38 84 00 64 */ addi r4, r4, 0x64
/* 8039E7D8 0039B738 28 00 00 00 */ cmplwi r0, 0
/* 8039E7DC 0039B73C 41 82 00 14 */ beq lbl_8039E7F0
/* 8039E7E0 0039B740 80 04 00 04 */ lwz r0, 4(r4)
/* 8039E7E4 0039B744 7C 1F 00 40 */ cmplw r31, r0
/* 8039E7E8 0039B748 40 82 00 08 */ bne lbl_8039E7F0
/* 8039E7EC 0039B74C 48 00 00 A4 */ b lbl_8039E890
lbl_8039E7F0:
/* 8039E7F0 0039B750 88 04 00 70 */ lbz r0, 0x70(r4)
/* 8039E7F4 0039B754 38 63 00 01 */ addi r3, r3, 1
/* 8039E7F8 0039B758 38 84 00 64 */ addi r4, r4, 0x64
/* 8039E7FC 0039B75C 28 00 00 00 */ cmplwi r0, 0
/* 8039E800 0039B760 41 82 00 14 */ beq lbl_8039E814
/* 8039E804 0039B764 80 04 00 04 */ lwz r0, 4(r4)
/* 8039E808 0039B768 7C 1F 00 40 */ cmplw r31, r0
/* 8039E80C 0039B76C 40 82 00 08 */ bne lbl_8039E814
/* 8039E810 0039B770 48 00 00 80 */ b lbl_8039E890
lbl_8039E814:
/* 8039E814 0039B774 88 04 00 70 */ lbz r0, 0x70(r4)
/* 8039E818 0039B778 38 63 00 01 */ addi r3, r3, 1
/* 8039E81C 0039B77C 38 84 00 64 */ addi r4, r4, 0x64
/* 8039E820 0039B780 28 00 00 00 */ cmplwi r0, 0
/* 8039E824 0039B784 41 82 00 14 */ beq lbl_8039E838
/* 8039E828 0039B788 80 04 00 04 */ lwz r0, 4(r4)
/* 8039E82C 0039B78C 7C 1F 00 40 */ cmplw r31, r0
/* 8039E830 0039B790 40 82 00 08 */ bne lbl_8039E838
/* 8039E834 0039B794 48 00 00 5C */ b lbl_8039E890
lbl_8039E838:
/* 8039E838 0039B798 88 04 00 70 */ lbz r0, 0x70(r4)
/* 8039E83C 0039B79C 38 63 00 01 */ addi r3, r3, 1
/* 8039E840 0039B7A0 38 84 00 64 */ addi r4, r4, 0x64
/* 8039E844 0039B7A4 28 00 00 00 */ cmplwi r0, 0
/* 8039E848 0039B7A8 41 82 00 14 */ beq lbl_8039E85C
/* 8039E84C 0039B7AC 80 04 00 04 */ lwz r0, 4(r4)
/* 8039E850 0039B7B0 7C 1F 00 40 */ cmplw r31, r0
/* 8039E854 0039B7B4 40 82 00 08 */ bne lbl_8039E85C
/* 8039E858 0039B7B8 48 00 00 38 */ b lbl_8039E890
lbl_8039E85C:
/* 8039E85C 0039B7BC 88 04 00 70 */ lbz r0, 0x70(r4)
/* 8039E860 0039B7C0 38 63 00 01 */ addi r3, r3, 1
/* 8039E864 0039B7C4 38 84 00 64 */ addi r4, r4, 0x64
/* 8039E868 0039B7C8 28 00 00 00 */ cmplwi r0, 0
/* 8039E86C 0039B7CC 41 82 00 14 */ beq lbl_8039E880
/* 8039E870 0039B7D0 80 04 00 04 */ lwz r0, 4(r4)
/* 8039E874 0039B7D4 7C 1F 00 40 */ cmplw r31, r0
/* 8039E878 0039B7D8 40 82 00 08 */ bne lbl_8039E880
/* 8039E87C 0039B7DC 48 00 00 14 */ b lbl_8039E890
lbl_8039E880:
/* 8039E880 0039B7E0 38 84 00 64 */ addi r4, r4, 0x64
/* 8039E884 0039B7E4 38 63 00 01 */ addi r3, r3, 1
/* 8039E888 0039B7E8 42 00 FE E0 */ bdnz lbl_8039E768
/* 8039E88C 0039B7EC 38 60 FF FF */ li r3, -1
lbl_8039E890:
/* 8039E890 0039B7F0 3C 03 00 01 */ addis r0, r3, 1
/* 8039E894 0039B7F4 28 00 FF FF */ cmplwi r0, 0xffff
/* 8039E898 0039B7F8 41 82 03 7C */ beq lbl_8039EC14
/* 8039E89C 0039B7FC 1F E3 00 64 */ mulli r31, r3, 0x64
/* 8039E8A0 0039B800 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039E8A4 0039B804 80 8D AE 74 */ lwz r4, synthFlags@sda21(r13)
/* 8039E8A8 0039B808 7F 86 E3 78 */ mr r6, r28
/* 8039E8AC 0039B80C 38 03 13 F8 */ addi r0, r3, streamInfo@l
/* 8039E8B0 0039B810 7C 60 FA 14 */ add r3, r0, r31
/* 8039E8B4 0039B814 9B 63 00 5E */ stb r27, 0x5e(r3)
/* 8039E8B8 0039B818 54 80 07 FF */ clrlwi. r0, r4, 0x1f
/* 8039E8BC 0039B81C 7F 65 DB 78 */ mr r5, r27
/* 8039E8C0 0039B820 9B 83 00 5F */ stb r28, 0x5f(r3)
/* 8039E8C4 0039B824 41 82 00 10 */ beq lbl_8039E8D4
/* 8039E8C8 0039B828 38 A0 00 40 */ li r5, 0x40
/* 8039E8CC 0039B82C 38 C0 00 00 */ li r6, 0
/* 8039E8D0 0039B830 48 00 00 10 */ b lbl_8039E8E0
lbl_8039E8D4:
/* 8039E8D4 0039B834 54 80 07 BD */ rlwinm. r0, r4, 0, 0x1e, 0x1e
/* 8039E8D8 0039B838 40 82 00 08 */ bne lbl_8039E8E0
/* 8039E8DC 0039B83C 38 C0 00 00 */ li r6, 0
lbl_8039E8E0:
/* 8039E8E0 0039B840 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039E8E4 0039B844 3C E0 43 30 */ lis r7, 0x4330
/* 8039E8E8 0039B848 38 63 13 F8 */ addi r3, r3, streamInfo@l
/* 8039E8EC 0039B84C 38 00 00 00 */ li r0, 0
/* 8039E8F0 0039B850 7D 03 FA 14 */ add r8, r3, r31
/* 8039E8F4 0039B854 90 E1 00 10 */ stw r7, 0x10(r1)
/* 8039E8F8 0039B858 C8 62 D5 58 */ lfd f3, lbl_805AF278@sda21(r2)
/* 8039E8FC 0039B85C 38 80 00 00 */ li r4, 0
/* 8039E900 0039B860 9B 48 00 59 */ stb r26, 0x59(r8)
/* 8039E904 0039B864 C0 82 D5 50 */ lfs f4, lbl_805AF270@sda21(r2)
/* 8039E908 0039B868 98 A8 00 5A */ stb r5, 0x5a(r8)
/* 8039E90C 0039B86C 98 C8 00 5B */ stb r6, 0x5b(r8)
/* 8039E910 0039B870 9B A8 00 5C */ stb r29, 0x5c(r8)
/* 8039E914 0039B874 98 08 00 5D */ stb r0, 0x5d(r8)
/* 8039E918 0039B878 88 A8 00 59 */ lbz r5, 0x59(r8)
/* 8039E91C 0039B87C 88 68 00 5C */ lbz r3, 0x5c(r8)
/* 8039E920 0039B880 88 08 00 5D */ lbz r0, 0x5d(r8)
/* 8039E924 0039B884 90 A1 00 14 */ stw r5, 0x14(r1)
/* 8039E928 0039B888 88 A8 00 5A */ lbz r5, 0x5a(r8)
/* 8039E92C 0039B88C C8 01 00 10 */ lfd f0, 0x10(r1)
/* 8039E930 0039B890 90 61 00 1C */ stw r3, 0x1c(r1)
/* 8039E934 0039B894 54 A5 80 1E */ slwi r5, r5, 0x10
/* 8039E938 0039B898 EC 20 18 28 */ fsubs f1, f0, f3
/* 8039E93C 0039B89C 88 C8 00 5B */ lbz r6, 0x5b(r8)
/* 8039E940 0039B8A0 90 E1 00 18 */ stw r7, 0x18(r1)
/* 8039E944 0039B8A4 80 68 00 4C */ lwz r3, 0x4c(r8)
/* 8039E948 0039B8A8 54 C6 80 1E */ slwi r6, r6, 0x10
/* 8039E94C 0039B8AC C8 01 00 18 */ lfd f0, 0x18(r1)
/* 8039E950 0039B8B0 90 01 00 24 */ stw r0, 0x24(r1)
/* 8039E954 0039B8B4 EC 24 00 72 */ fmuls f1, f4, f1
/* 8039E958 0039B8B8 EC 40 18 28 */ fsubs f2, f0, f3
/* 8039E95C 0039B8BC 90 E1 00 20 */ stw r7, 0x20(r1)
/* 8039E960 0039B8C0 C8 01 00 20 */ lfd f0, 0x20(r1)
/* 8039E964 0039B8C4 EC 44 00 B2 */ fmuls f2, f4, f2
/* 8039E968 0039B8C8 EC 00 18 28 */ fsubs f0, f0, f3
/* 8039E96C 0039B8CC EC 64 00 32 */ fmuls f3, f4, f0
/* 8039E970 0039B8D0 48 01 4E 19 */ bl hwSetVolume
/* 8039E974 0039B8D4 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039E978 0039B8D8 38 63 13 F8 */ addi r3, r3, streamInfo@l
/* 8039E97C 0039B8DC 7F E3 F8 2E */ lwzx r31, r3, r31
/* 8039E980 0039B8E0 3C 1F 00 01 */ addis r0, r31, 1
/* 8039E984 0039B8E4 28 00 FF FF */ cmplwi r0, 0xffff
/* 8039E988 0039B8E8 41 82 02 8C */ beq lbl_8039EC14
/* 8039E98C 0039B8EC 48 01 67 31 */ bl hwDisableIrq
/* 8039E990 0039B8F0 38 00 00 08 */ li r0, 8
/* 8039E994 0039B8F4 38 60 00 00 */ li r3, 0
/* 8039E998 0039B8F8 7C 09 03 A6 */ mtctr r0
lbl_8039E99C:
/* 8039E99C 0039B8FC 88 1E 00 0C */ lbz r0, 0xc(r30)
/* 8039E9A0 0039B900 28 00 00 00 */ cmplwi r0, 0
/* 8039E9A4 0039B904 41 82 00 14 */ beq lbl_8039E9B8
/* 8039E9A8 0039B908 80 1E 00 04 */ lwz r0, 4(r30)
/* 8039E9AC 0039B90C 7C 1F 00 40 */ cmplw r31, r0
/* 8039E9B0 0039B910 40 82 00 08 */ bne lbl_8039E9B8
/* 8039E9B4 0039B914 48 00 01 10 */ b lbl_8039EAC4
lbl_8039E9B8:
/* 8039E9B8 0039B918 88 1E 00 70 */ lbz r0, 0x70(r30)
/* 8039E9BC 0039B91C 38 63 00 01 */ addi r3, r3, 1
/* 8039E9C0 0039B920 3B DE 00 64 */ addi r30, r30, 0x64
/* 8039E9C4 0039B924 28 00 00 00 */ cmplwi r0, 0
/* 8039E9C8 0039B928 41 82 00 14 */ beq lbl_8039E9DC
/* 8039E9CC 0039B92C 80 1E 00 04 */ lwz r0, 4(r30)
/* 8039E9D0 0039B930 7C 1F 00 40 */ cmplw r31, r0
/* 8039E9D4 0039B934 40 82 00 08 */ bne lbl_8039E9DC
/* 8039E9D8 0039B938 48 00 00 EC */ b lbl_8039EAC4
lbl_8039E9DC:
/* 8039E9DC 0039B93C 88 1E 00 70 */ lbz r0, 0x70(r30)
/* 8039E9E0 0039B940 38 63 00 01 */ addi r3, r3, 1
/* 8039E9E4 0039B944 3B DE 00 64 */ addi r30, r30, 0x64
/* 8039E9E8 0039B948 28 00 00 00 */ cmplwi r0, 0
/* 8039E9EC 0039B94C 41 82 00 14 */ beq lbl_8039EA00
/* 8039E9F0 0039B950 80 1E 00 04 */ lwz r0, 4(r30)
/* 8039E9F4 0039B954 7C 1F 00 40 */ cmplw r31, r0
/* 8039E9F8 0039B958 40 82 00 08 */ bne lbl_8039EA00
/* 8039E9FC 0039B95C 48 00 00 C8 */ b lbl_8039EAC4
lbl_8039EA00:
/* 8039EA00 0039B960 88 1E 00 70 */ lbz r0, 0x70(r30)
/* 8039EA04 0039B964 38 63 00 01 */ addi r3, r3, 1
/* 8039EA08 0039B968 3B DE 00 64 */ addi r30, r30, 0x64
/* 8039EA0C 0039B96C 28 00 00 00 */ cmplwi r0, 0
/* 8039EA10 0039B970 41 82 00 14 */ beq lbl_8039EA24
/* 8039EA14 0039B974 80 1E 00 04 */ lwz r0, 4(r30)
/* 8039EA18 0039B978 7C 1F 00 40 */ cmplw r31, r0
/* 8039EA1C 0039B97C 40 82 00 08 */ bne lbl_8039EA24
/* 8039EA20 0039B980 48 00 00 A4 */ b lbl_8039EAC4
lbl_8039EA24:
/* 8039EA24 0039B984 88 1E 00 70 */ lbz r0, 0x70(r30)
/* 8039EA28 0039B988 38 63 00 01 */ addi r3, r3, 1
/* 8039EA2C 0039B98C 3B DE 00 64 */ addi r30, r30, 0x64
/* 8039EA30 0039B990 28 00 00 00 */ cmplwi r0, 0
/* 8039EA34 0039B994 41 82 00 14 */ beq lbl_8039EA48
/* 8039EA38 0039B998 80 1E 00 04 */ lwz r0, 4(r30)
/* 8039EA3C 0039B99C 7C 1F 00 40 */ cmplw r31, r0
/* 8039EA40 0039B9A0 40 82 00 08 */ bne lbl_8039EA48
/* 8039EA44 0039B9A4 48 00 00 80 */ b lbl_8039EAC4
lbl_8039EA48:
/* 8039EA48 0039B9A8 88 1E 00 70 */ lbz r0, 0x70(r30)
/* 8039EA4C 0039B9AC 38 63 00 01 */ addi r3, r3, 1
/* 8039EA50 0039B9B0 3B DE 00 64 */ addi r30, r30, 0x64
/* 8039EA54 0039B9B4 28 00 00 00 */ cmplwi r0, 0
/* 8039EA58 0039B9B8 41 82 00 14 */ beq lbl_8039EA6C
/* 8039EA5C 0039B9BC 80 1E 00 04 */ lwz r0, 4(r30)
/* 8039EA60 0039B9C0 7C 1F 00 40 */ cmplw r31, r0
/* 8039EA64 0039B9C4 40 82 00 08 */ bne lbl_8039EA6C
/* 8039EA68 0039B9C8 48 00 00 5C */ b lbl_8039EAC4
lbl_8039EA6C:
/* 8039EA6C 0039B9CC 88 1E 00 70 */ lbz r0, 0x70(r30)
/* 8039EA70 0039B9D0 38 63 00 01 */ addi r3, r3, 1
/* 8039EA74 0039B9D4 3B DE 00 64 */ addi r30, r30, 0x64
/* 8039EA78 0039B9D8 28 00 00 00 */ cmplwi r0, 0
/* 8039EA7C 0039B9DC 41 82 00 14 */ beq lbl_8039EA90
/* 8039EA80 0039B9E0 80 1E 00 04 */ lwz r0, 4(r30)
/* 8039EA84 0039B9E4 7C 1F 00 40 */ cmplw r31, r0
/* 8039EA88 0039B9E8 40 82 00 08 */ bne lbl_8039EA90
/* 8039EA8C 0039B9EC 48 00 00 38 */ b lbl_8039EAC4
lbl_8039EA90:
/* 8039EA90 0039B9F0 88 1E 00 70 */ lbz r0, 0x70(r30)
/* 8039EA94 0039B9F4 38 63 00 01 */ addi r3, r3, 1
/* 8039EA98 0039B9F8 3B DE 00 64 */ addi r30, r30, 0x64
/* 8039EA9C 0039B9FC 28 00 00 00 */ cmplwi r0, 0
/* 8039EAA0 0039BA00 41 82 00 14 */ beq lbl_8039EAB4
/* 8039EAA4 0039BA04 80 1E 00 04 */ lwz r0, 4(r30)
/* 8039EAA8 0039BA08 7C 1F 00 40 */ cmplw r31, r0
/* 8039EAAC 0039BA0C 40 82 00 08 */ bne lbl_8039EAB4
/* 8039EAB0 0039BA10 48 00 00 14 */ b lbl_8039EAC4
lbl_8039EAB4:
/* 8039EAB4 0039BA14 3B DE 00 64 */ addi r30, r30, 0x64
/* 8039EAB8 0039BA18 38 63 00 01 */ addi r3, r3, 1
/* 8039EABC 0039BA1C 42 00 FE E0 */ bdnz lbl_8039E99C
/* 8039EAC0 0039BA20 38 60 FF FF */ li r3, -1
lbl_8039EAC4:
/* 8039EAC4 0039BA24 3C 03 00 01 */ addis r0, r3, 1
/* 8039EAC8 0039BA28 28 00 FF FF */ cmplwi r0, 0xffff
/* 8039EACC 0039BA2C 41 82 01 44 */ beq lbl_8039EC10
/* 8039EAD0 0039BA30 1C 83 00 64 */ mulli r4, r3, 0x64
/* 8039EAD4 0039BA34 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039EAD8 0039BA38 9B 81 00 08 */ stb r28, 8(r1)
/* 8039EADC 0039BA3C 38 03 13 F8 */ addi r0, r3, streamInfo@l
/* 8039EAE0 0039BA40 7F C0 22 14 */ add r30, r0, r4
/* 8039EAE4 0039BA44 9B 61 00 09 */ stb r27, 9(r1)
/* 8039EAE8 0039BA48 38 61 00 09 */ addi r3, r1, 9
/* 8039EAEC 0039BA4C 38 81 00 08 */ addi r4, r1, 8
/* 8039EAF0 0039BA50 9B 7E 00 5E */ stb r27, 0x5e(r30)
/* 8039EAF4 0039BA54 9B 9E 00 5F */ stb r28, 0x5f(r30)
/* 8039EAF8 0039BA58 4B FF EC 2D */ bl CheckOutputMode
/* 8039EAFC 0039BA5C 9B 5E 00 59 */ stb r26, 0x59(r30)
/* 8039EB00 0039BA60 3C E0 43 30 */ lis r7, 0x4330
/* 8039EB04 0039BA64 88 A1 00 09 */ lbz r5, 9(r1)
/* 8039EB08 0039BA68 38 00 00 00 */ li r0, 0
/* 8039EB0C 0039BA6C 88 61 00 08 */ lbz r3, 8(r1)
/* 8039EB10 0039BA70 38 80 00 00 */ li r4, 0
/* 8039EB14 0039BA74 98 BE 00 5A */ stb r5, 0x5a(r30)
/* 8039EB18 0039BA78 C8 62 D5 58 */ lfd f3, lbl_805AF278@sda21(r2)
/* 8039EB1C 0039BA7C 98 7E 00 5B */ stb r3, 0x5b(r30)
/* 8039EB20 0039BA80 C0 82 D5 50 */ lfs f4, lbl_805AF270@sda21(r2)
/* 8039EB24 0039BA84 9B BE 00 5C */ stb r29, 0x5c(r30)
/* 8039EB28 0039BA88 98 1E 00 5D */ stb r0, 0x5d(r30)
/* 8039EB2C 0039BA8C 88 BE 00 59 */ lbz r5, 0x59(r30)
/* 8039EB30 0039BA90 88 7E 00 5C */ lbz r3, 0x5c(r30)
/* 8039EB34 0039BA94 88 1E 00 5D */ lbz r0, 0x5d(r30)
/* 8039EB38 0039BA98 90 A1 00 24 */ stw r5, 0x24(r1)
/* 8039EB3C 0039BA9C 88 BE 00 5A */ lbz r5, 0x5a(r30)
/* 8039EB40 0039BAA0 90 E1 00 20 */ stw r7, 0x20(r1)
/* 8039EB44 0039BAA4 88 DE 00 5B */ lbz r6, 0x5b(r30)
/* 8039EB48 0039BAA8 54 A5 80 1E */ slwi r5, r5, 0x10
/* 8039EB4C 0039BAAC C8 01 00 20 */ lfd f0, 0x20(r1)
/* 8039EB50 0039BAB0 90 61 00 1C */ stw r3, 0x1c(r1)
/* 8039EB54 0039BAB4 54 C6 80 1E */ slwi r6, r6, 0x10
/* 8039EB58 0039BAB8 EC 20 18 28 */ fsubs f1, f0, f3
/* 8039EB5C 0039BABC 80 7E 00 4C */ lwz r3, 0x4c(r30)
/* 8039EB60 0039BAC0 90 E1 00 18 */ stw r7, 0x18(r1)
/* 8039EB64 0039BAC4 C8 01 00 18 */ lfd f0, 0x18(r1)
/* 8039EB68 0039BAC8 EC 24 00 72 */ fmuls f1, f4, f1
/* 8039EB6C 0039BACC 90 01 00 14 */ stw r0, 0x14(r1)
/* 8039EB70 0039BAD0 EC 40 18 28 */ fsubs f2, f0, f3
/* 8039EB74 0039BAD4 90 E1 00 10 */ stw r7, 0x10(r1)
/* 8039EB78 0039BAD8 C8 01 00 10 */ lfd f0, 0x10(r1)
/* 8039EB7C 0039BADC EC 44 00 B2 */ fmuls f2, f4, f2
/* 8039EB80 0039BAE0 EC 00 18 28 */ fsubs f0, f0, f3
/* 8039EB84 0039BAE4 EC 64 00 32 */ fmuls f3, f4, f0
/* 8039EB88 0039BAE8 48 01 4C 01 */ bl hwSetVolume
/* 8039EB8C 0039BAEC 83 DE 00 00 */ lwz r30, 0(r30)
/* 8039EB90 0039BAF0 3C 1E 00 01 */ addis r0, r30, 1
/* 8039EB94 0039BAF4 28 00 FF FF */ cmplwi r0, 0xffff
/* 8039EB98 0039BAF8 41 82 00 78 */ beq lbl_8039EC10
/* 8039EB9C 0039BAFC 48 01 65 21 */ bl hwDisableIrq
/* 8039EBA0 0039BB00 7F C3 F3 78 */ mr r3, r30
/* 8039EBA4 0039BB04 4B FF E7 3D */ bl GetPrivateIndex
/* 8039EBA8 0039BB08 3C 03 00 01 */ addis r0, r3, 1
/* 8039EBAC 0039BB0C 28 00 FF FF */ cmplwi r0, 0xffff
/* 8039EBB0 0039BB10 41 82 00 5C */ beq lbl_8039EC0C
/* 8039EBB4 0039BB14 1C A3 00 64 */ mulli r5, r3, 0x64
/* 8039EBB8 0039BB18 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039EBBC 0039BB1C 7F 44 D3 78 */ mr r4, r26
/* 8039EBC0 0039BB20 38 03 13 F8 */ addi r0, r3, streamInfo@l
/* 8039EBC4 0039BB24 7F C0 2A 14 */ add r30, r0, r5
/* 8039EBC8 0039BB28 7F 65 DB 78 */ mr r5, r27
/* 8039EBCC 0039BB2C 7F C3 F3 78 */ mr r3, r30
/* 8039EBD0 0039BB30 7F 86 E3 78 */ mr r6, r28
/* 8039EBD4 0039BB34 7F A7 EB 78 */ mr r7, r29
/* 8039EBD8 0039BB38 39 00 00 00 */ li r8, 0
/* 8039EBDC 0039BB3C 4B FF EB 7D */ bl SetupVolumeAndPan
/* 8039EBE0 0039BB40 7F C3 F3 78 */ mr r3, r30
/* 8039EBE4 0039BB44 4B FF DD 3D */ bl SetHWMix
/* 8039EBE8 0039BB48 80 7E 00 00 */ lwz r3, 0(r30)
/* 8039EBEC 0039BB4C 3C 03 00 01 */ addis r0, r3, 1
/* 8039EBF0 0039BB50 28 00 FF FF */ cmplwi r0, 0xffff
/* 8039EBF4 0039BB54 41 82 00 18 */ beq lbl_8039EC0C
/* 8039EBF8 0039BB58 7F 44 D3 78 */ mr r4, r26
/* 8039EBFC 0039BB5C 7F 65 DB 78 */ mr r5, r27
/* 8039EC00 0039BB60 7F 86 E3 78 */ mr r6, r28
/* 8039EC04 0039BB64 7F A7 EB 78 */ mr r7, r29
/* 8039EC08 0039BB68 4B FF FB 1D */ bl sndStreamMixParameter
lbl_8039EC0C:
/* 8039EC0C 0039BB6C 48 01 64 79 */ bl hwEnableIrq
lbl_8039EC10:
/* 8039EC10 0039BB70 48 01 64 75 */ bl hwEnableIrq
lbl_8039EC14:
/* 8039EC14 0039BB74 48 01 64 71 */ bl hwEnableIrq
/* 8039EC18 0039BB78 39 61 00 40 */ addi r11, r1, 0x40
/* 8039EC1C 0039BB7C 4B FE AE A9 */ bl _restgpr_26
/* 8039EC20 0039BB80 80 01 00 44 */ lwz r0, 0x44(r1)
/* 8039EC24 0039BB84 7C 08 03 A6 */ mtlr r0
/* 8039EC28 0039BB88 38 21 00 40 */ addi r1, r1, 0x40
/* 8039EC2C 0039BB8C 4E 80 00 20 */ blr
.global sndStreamMixParameterEx
sndStreamMixParameterEx:
/* 8039EC30 0039BB90 94 21 FF B0 */ stwu r1, -0x50(r1)
/* 8039EC34 0039BB94 7C 08 02 A6 */ mflr r0
/* 8039EC38 0039BB98 90 01 00 54 */ stw r0, 0x54(r1)
/* 8039EC3C 0039BB9C 39 61 00 50 */ addi r11, r1, 0x50
/* 8039EC40 0039BBA0 4B FE AE 31 */ bl _savegpr_24
/* 8039EC44 0039BBA4 7C 7D 1B 78 */ mr r29, r3
/* 8039EC48 0039BBA8 7C 98 23 78 */ mr r24, r4
/* 8039EC4C 0039BBAC 7C B9 2B 78 */ mr r25, r5
/* 8039EC50 0039BBB0 7C DA 33 78 */ mr r26, r6
/* 8039EC54 0039BBB4 7C FB 3B 78 */ mr r27, r7
/* 8039EC58 0039BBB8 7D 1C 43 78 */ mr r28, r8
/* 8039EC5C 0039BBBC 48 01 64 61 */ bl hwDisableIrq
/* 8039EC60 0039BBC0 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039EC64 0039BBC4 38 00 00 08 */ li r0, 8
/* 8039EC68 0039BBC8 3B C3 13 F8 */ addi r30, r3, streamInfo@l
/* 8039EC6C 0039BBCC 38 60 00 00 */ li r3, 0
/* 8039EC70 0039BBD0 7F C4 F3 78 */ mr r4, r30
/* 8039EC74 0039BBD4 7C 09 03 A6 */ mtctr r0
lbl_8039EC78:
/* 8039EC78 0039BBD8 88 04 00 0C */ lbz r0, 0xc(r4)
/* 8039EC7C 0039BBDC 28 00 00 00 */ cmplwi r0, 0
/* 8039EC80 0039BBE0 41 82 00 14 */ beq lbl_8039EC94
/* 8039EC84 0039BBE4 80 04 00 04 */ lwz r0, 4(r4)
/* 8039EC88 0039BBE8 7C 1D 00 40 */ cmplw r29, r0
/* 8039EC8C 0039BBEC 40 82 00 08 */ bne lbl_8039EC94
/* 8039EC90 0039BBF0 48 00 01 10 */ b lbl_8039EDA0
lbl_8039EC94:
/* 8039EC94 0039BBF4 88 04 00 70 */ lbz r0, 0x70(r4)
/* 8039EC98 0039BBF8 38 63 00 01 */ addi r3, r3, 1
/* 8039EC9C 0039BBFC 38 84 00 64 */ addi r4, r4, 0x64
/* 8039ECA0 0039BC00 28 00 00 00 */ cmplwi r0, 0
/* 8039ECA4 0039BC04 41 82 00 14 */ beq lbl_8039ECB8
/* 8039ECA8 0039BC08 80 04 00 04 */ lwz r0, 4(r4)
/* 8039ECAC 0039BC0C 7C 1D 00 40 */ cmplw r29, r0
/* 8039ECB0 0039BC10 40 82 00 08 */ bne lbl_8039ECB8
/* 8039ECB4 0039BC14 48 00 00 EC */ b lbl_8039EDA0
lbl_8039ECB8:
/* 8039ECB8 0039BC18 88 04 00 70 */ lbz r0, 0x70(r4)
/* 8039ECBC 0039BC1C 38 63 00 01 */ addi r3, r3, 1
/* 8039ECC0 0039BC20 38 84 00 64 */ addi r4, r4, 0x64
/* 8039ECC4 0039BC24 28 00 00 00 */ cmplwi r0, 0
/* 8039ECC8 0039BC28 41 82 00 14 */ beq lbl_8039ECDC
/* 8039ECCC 0039BC2C 80 04 00 04 */ lwz r0, 4(r4)
/* 8039ECD0 0039BC30 7C 1D 00 40 */ cmplw r29, r0
/* 8039ECD4 0039BC34 40 82 00 08 */ bne lbl_8039ECDC
/* 8039ECD8 0039BC38 48 00 00 C8 */ b lbl_8039EDA0
lbl_8039ECDC:
/* 8039ECDC 0039BC3C 88 04 00 70 */ lbz r0, 0x70(r4)
/* 8039ECE0 0039BC40 38 63 00 01 */ addi r3, r3, 1
/* 8039ECE4 0039BC44 38 84 00 64 */ addi r4, r4, 0x64
/* 8039ECE8 0039BC48 28 00 00 00 */ cmplwi r0, 0
/* 8039ECEC 0039BC4C 41 82 00 14 */ beq lbl_8039ED00
/* 8039ECF0 0039BC50 80 04 00 04 */ lwz r0, 4(r4)
/* 8039ECF4 0039BC54 7C 1D 00 40 */ cmplw r29, r0
/* 8039ECF8 0039BC58 40 82 00 08 */ bne lbl_8039ED00
/* 8039ECFC 0039BC5C 48 00 00 A4 */ b lbl_8039EDA0
lbl_8039ED00:
/* 8039ED00 0039BC60 88 04 00 70 */ lbz r0, 0x70(r4)
/* 8039ED04 0039BC64 38 63 00 01 */ addi r3, r3, 1
/* 8039ED08 0039BC68 38 84 00 64 */ addi r4, r4, 0x64
/* 8039ED0C 0039BC6C 28 00 00 00 */ cmplwi r0, 0
/* 8039ED10 0039BC70 41 82 00 14 */ beq lbl_8039ED24
/* 8039ED14 0039BC74 80 04 00 04 */ lwz r0, 4(r4)
/* 8039ED18 0039BC78 7C 1D 00 40 */ cmplw r29, r0
/* 8039ED1C 0039BC7C 40 82 00 08 */ bne lbl_8039ED24
/* 8039ED20 0039BC80 48 00 00 80 */ b lbl_8039EDA0
lbl_8039ED24:
/* 8039ED24 0039BC84 88 04 00 70 */ lbz r0, 0x70(r4)
/* 8039ED28 0039BC88 38 63 00 01 */ addi r3, r3, 1
/* 8039ED2C 0039BC8C 38 84 00 64 */ addi r4, r4, 0x64
/* 8039ED30 0039BC90 28 00 00 00 */ cmplwi r0, 0
/* 8039ED34 0039BC94 41 82 00 14 */ beq lbl_8039ED48
/* 8039ED38 0039BC98 80 04 00 04 */ lwz r0, 4(r4)
/* 8039ED3C 0039BC9C 7C 1D 00 40 */ cmplw r29, r0
/* 8039ED40 0039BCA0 40 82 00 08 */ bne lbl_8039ED48
/* 8039ED44 0039BCA4 48 00 00 5C */ b lbl_8039EDA0
lbl_8039ED48:
/* 8039ED48 0039BCA8 88 04 00 70 */ lbz r0, 0x70(r4)
/* 8039ED4C 0039BCAC 38 63 00 01 */ addi r3, r3, 1
/* 8039ED50 0039BCB0 38 84 00 64 */ addi r4, r4, 0x64
/* 8039ED54 0039BCB4 28 00 00 00 */ cmplwi r0, 0
/* 8039ED58 0039BCB8 41 82 00 14 */ beq lbl_8039ED6C
/* 8039ED5C 0039BCBC 80 04 00 04 */ lwz r0, 4(r4)
/* 8039ED60 0039BCC0 7C 1D 00 40 */ cmplw r29, r0
/* 8039ED64 0039BCC4 40 82 00 08 */ bne lbl_8039ED6C
/* 8039ED68 0039BCC8 48 00 00 38 */ b lbl_8039EDA0
lbl_8039ED6C:
/* 8039ED6C 0039BCCC 88 04 00 70 */ lbz r0, 0x70(r4)
/* 8039ED70 0039BCD0 38 63 00 01 */ addi r3, r3, 1
/* 8039ED74 0039BCD4 38 84 00 64 */ addi r4, r4, 0x64
/* 8039ED78 0039BCD8 28 00 00 00 */ cmplwi r0, 0
/* 8039ED7C 0039BCDC 41 82 00 14 */ beq lbl_8039ED90
/* 8039ED80 0039BCE0 80 04 00 04 */ lwz r0, 4(r4)
/* 8039ED84 0039BCE4 7C 1D 00 40 */ cmplw r29, r0
/* 8039ED88 0039BCE8 40 82 00 08 */ bne lbl_8039ED90
/* 8039ED8C 0039BCEC 48 00 00 14 */ b lbl_8039EDA0
lbl_8039ED90:
/* 8039ED90 0039BCF0 38 84 00 64 */ addi r4, r4, 0x64
/* 8039ED94 0039BCF4 38 63 00 01 */ addi r3, r3, 1
/* 8039ED98 0039BCF8 42 00 FE E0 */ bdnz lbl_8039EC78
/* 8039ED9C 0039BCFC 38 60 FF FF */ li r3, -1
lbl_8039EDA0:
/* 8039EDA0 0039BD00 3C 03 00 01 */ addis r0, r3, 1
/* 8039EDA4 0039BD04 28 00 FF FF */ cmplwi r0, 0xffff
/* 8039EDA8 0039BD08 41 82 03 C8 */ beq lbl_8039F170
/* 8039EDAC 0039BD0C 1F E3 00 64 */ mulli r31, r3, 0x64
/* 8039EDB0 0039BD10 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039EDB4 0039BD14 80 8D AE 74 */ lwz r4, synthFlags@sda21(r13)
/* 8039EDB8 0039BD18 7F 46 D3 78 */ mr r6, r26
/* 8039EDBC 0039BD1C 38 03 13 F8 */ addi r0, r3, streamInfo@l
/* 8039EDC0 0039BD20 7C 60 FA 14 */ add r3, r0, r31
/* 8039EDC4 0039BD24 9B 23 00 5E */ stb r25, 0x5e(r3)
/* 8039EDC8 0039BD28 54 80 07 FF */ clrlwi. r0, r4, 0x1f
/* 8039EDCC 0039BD2C 7F 25 CB 78 */ mr r5, r25
/* 8039EDD0 0039BD30 9B 43 00 5F */ stb r26, 0x5f(r3)
/* 8039EDD4 0039BD34 41 82 00 10 */ beq lbl_8039EDE4
/* 8039EDD8 0039BD38 38 A0 00 40 */ li r5, 0x40
/* 8039EDDC 0039BD3C 38 C0 00 00 */ li r6, 0
/* 8039EDE0 0039BD40 48 00 00 10 */ b lbl_8039EDF0
lbl_8039EDE4:
/* 8039EDE4 0039BD44 54 80 07 BD */ rlwinm. r0, r4, 0, 0x1e, 0x1e
/* 8039EDE8 0039BD48 40 82 00 08 */ bne lbl_8039EDF0
/* 8039EDEC 0039BD4C 38 C0 00 00 */ li r6, 0
lbl_8039EDF0:
/* 8039EDF0 0039BD50 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039EDF4 0039BD54 38 83 13 F8 */ addi r4, r3, streamInfo@l
/* 8039EDF8 0039BD58 7C E4 FA 14 */ add r7, r4, r31
/* 8039EDFC 0039BD5C 9B 07 00 59 */ stb r24, 0x59(r7)
/* 8039EE00 0039BD60 7C EB 3B 78 */ mr r11, r7
/* 8039EE04 0039BD64 7C EA 3B 78 */ mr r10, r7
/* 8039EE08 0039BD68 7C E3 3B 78 */ mr r3, r7
/* 8039EE0C 0039BD6C 98 A7 00 5A */ stb r5, 0x5a(r7)
/* 8039EE10 0039BD70 7C E9 3B 78 */ mr r9, r7
/* 8039EE14 0039BD74 3B A4 00 0C */ addi r29, r4, 0xc
/* 8039EE18 0039BD78 39 6B 00 5A */ addi r11, r11, 0x5a
/* 8039EE1C 0039BD7C 98 C7 00 5B */ stb r6, 0x5b(r7)
/* 8039EE20 0039BD80 39 4A 00 5B */ addi r10, r10, 0x5b
/* 8039EE24 0039BD84 38 63 00 5C */ addi r3, r3, 0x5c
/* 8039EE28 0039BD88 39 29 00 5D */ addi r9, r9, 0x5d
/* 8039EE2C 0039BD8C 9B 67 00 5C */ stb r27, 0x5c(r7)
/* 8039EE30 0039BD90 9B 87 00 5D */ stb r28, 0x5d(r7)
/* 8039EE34 0039BD94 38 E7 00 59 */ addi r7, r7, 0x59
/* 8039EE38 0039BD98 7C 1D F8 AE */ lbzx r0, r29, r31
/* 8039EE3C 0039BD9C 28 00 00 02 */ cmplwi r0, 2
/* 8039EE40 0039BDA0 40 82 00 78 */ bne lbl_8039EEB8
/* 8039EE44 0039BDA4 88 A7 00 00 */ lbz r5, 0(r7)
/* 8039EE48 0039BDA8 3C E0 43 30 */ lis r7, 0x4330
/* 8039EE4C 0039BDAC 88 63 00 00 */ lbz r3, 0(r3)
/* 8039EE50 0039BDB0 7D 04 FA 14 */ add r8, r4, r31
/* 8039EE54 0039BDB4 88 09 00 00 */ lbz r0, 0(r9)
/* 8039EE58 0039BDB8 38 80 00 00 */ li r4, 0
/* 8039EE5C 0039BDBC 90 A1 00 14 */ stw r5, 0x14(r1)
/* 8039EE60 0039BDC0 C8 62 D5 58 */ lfd f3, lbl_805AF278@sda21(r2)
/* 8039EE64 0039BDC4 90 E1 00 10 */ stw r7, 0x10(r1)
/* 8039EE68 0039BDC8 88 AB 00 00 */ lbz r5, 0(r11)
/* 8039EE6C 0039BDCC C8 01 00 10 */ lfd f0, 0x10(r1)
/* 8039EE70 0039BDD0 90 61 00 1C */ stw r3, 0x1c(r1)
/* 8039EE74 0039BDD4 54 A5 80 1E */ slwi r5, r5, 0x10
/* 8039EE78 0039BDD8 88 6A 00 00 */ lbz r3, 0(r10)
/* 8039EE7C 0039BDDC EC 20 18 28 */ fsubs f1, f0, f3
/* 8039EE80 0039BDE0 90 E1 00 18 */ stw r7, 0x18(r1)
/* 8039EE84 0039BDE4 C0 82 D5 50 */ lfs f4, lbl_805AF270@sda21(r2)
/* 8039EE88 0039BDE8 54 66 80 1E */ slwi r6, r3, 0x10
/* 8039EE8C 0039BDEC C8 01 00 18 */ lfd f0, 0x18(r1)
/* 8039EE90 0039BDF0 90 01 00 24 */ stw r0, 0x24(r1)
/* 8039EE94 0039BDF4 EC 24 00 72 */ fmuls f1, f4, f1
/* 8039EE98 0039BDF8 EC 40 18 28 */ fsubs f2, f0, f3
/* 8039EE9C 0039BDFC 80 68 00 4C */ lwz r3, 0x4c(r8)
/* 8039EEA0 0039BE00 90 E1 00 20 */ stw r7, 0x20(r1)
/* 8039EEA4 0039BE04 C8 01 00 20 */ lfd f0, 0x20(r1)
/* 8039EEA8 0039BE08 EC 44 00 B2 */ fmuls f2, f4, f2
/* 8039EEAC 0039BE0C EC 00 18 28 */ fsubs f0, f0, f3
/* 8039EEB0 0039BE10 EC 64 00 32 */ fmuls f3, f4, f0
/* 8039EEB4 0039BE14 48 01 48 D5 */ bl hwSetVolume
lbl_8039EEB8:
/* 8039EEB8 0039BE18 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039EEBC 0039BE1C 38 63 13 F8 */ addi r3, r3, streamInfo@l
/* 8039EEC0 0039BE20 7F E3 F8 2E */ lwzx r31, r3, r31
/* 8039EEC4 0039BE24 3C 1F 00 01 */ addis r0, r31, 1
/* 8039EEC8 0039BE28 28 00 FF FF */ cmplwi r0, 0xffff
/* 8039EECC 0039BE2C 41 82 02 A4 */ beq lbl_8039F170
/* 8039EED0 0039BE30 48 01 61 ED */ bl hwDisableIrq
/* 8039EED4 0039BE34 38 00 00 08 */ li r0, 8
/* 8039EED8 0039BE38 38 60 00 00 */ li r3, 0
/* 8039EEDC 0039BE3C 7C 09 03 A6 */ mtctr r0
lbl_8039EEE0:
/* 8039EEE0 0039BE40 88 1E 00 0C */ lbz r0, 0xc(r30)
/* 8039EEE4 0039BE44 28 00 00 00 */ cmplwi r0, 0
/* 8039EEE8 0039BE48 41 82 00 14 */ beq lbl_8039EEFC
/* 8039EEEC 0039BE4C 80 1E 00 04 */ lwz r0, 4(r30)
/* 8039EEF0 0039BE50 7C 1F 00 40 */ cmplw r31, r0
/* 8039EEF4 0039BE54 40 82 00 08 */ bne lbl_8039EEFC
/* 8039EEF8 0039BE58 48 00 01 10 */ b lbl_8039F008
lbl_8039EEFC:
/* 8039EEFC 0039BE5C 88 1E 00 70 */ lbz r0, 0x70(r30)
/* 8039EF00 0039BE60 38 63 00 01 */ addi r3, r3, 1
/* 8039EF04 0039BE64 3B DE 00 64 */ addi r30, r30, 0x64
/* 8039EF08 0039BE68 28 00 00 00 */ cmplwi r0, 0
/* 8039EF0C 0039BE6C 41 82 00 14 */ beq lbl_8039EF20
/* 8039EF10 0039BE70 80 1E 00 04 */ lwz r0, 4(r30)
/* 8039EF14 0039BE74 7C 1F 00 40 */ cmplw r31, r0
/* 8039EF18 0039BE78 40 82 00 08 */ bne lbl_8039EF20
/* 8039EF1C 0039BE7C 48 00 00 EC */ b lbl_8039F008
lbl_8039EF20:
/* 8039EF20 0039BE80 88 1E 00 70 */ lbz r0, 0x70(r30)
/* 8039EF24 0039BE84 38 63 00 01 */ addi r3, r3, 1
/* 8039EF28 0039BE88 3B DE 00 64 */ addi r30, r30, 0x64
/* 8039EF2C 0039BE8C 28 00 00 00 */ cmplwi r0, 0
/* 8039EF30 0039BE90 41 82 00 14 */ beq lbl_8039EF44
/* 8039EF34 0039BE94 80 1E 00 04 */ lwz r0, 4(r30)
/* 8039EF38 0039BE98 7C 1F 00 40 */ cmplw r31, r0
/* 8039EF3C 0039BE9C 40 82 00 08 */ bne lbl_8039EF44
/* 8039EF40 0039BEA0 48 00 00 C8 */ b lbl_8039F008
lbl_8039EF44:
/* 8039EF44 0039BEA4 88 1E 00 70 */ lbz r0, 0x70(r30)
/* 8039EF48 0039BEA8 38 63 00 01 */ addi r3, r3, 1
/* 8039EF4C 0039BEAC 3B DE 00 64 */ addi r30, r30, 0x64
/* 8039EF50 0039BEB0 28 00 00 00 */ cmplwi r0, 0
/* 8039EF54 0039BEB4 41 82 00 14 */ beq lbl_8039EF68
/* 8039EF58 0039BEB8 80 1E 00 04 */ lwz r0, 4(r30)
/* 8039EF5C 0039BEBC 7C 1F 00 40 */ cmplw r31, r0
/* 8039EF60 0039BEC0 40 82 00 08 */ bne lbl_8039EF68
/* 8039EF64 0039BEC4 48 00 00 A4 */ b lbl_8039F008
lbl_8039EF68:
/* 8039EF68 0039BEC8 88 1E 00 70 */ lbz r0, 0x70(r30)
/* 8039EF6C 0039BECC 38 63 00 01 */ addi r3, r3, 1
/* 8039EF70 0039BED0 3B DE 00 64 */ addi r30, r30, 0x64
/* 8039EF74 0039BED4 28 00 00 00 */ cmplwi r0, 0
/* 8039EF78 0039BED8 41 82 00 14 */ beq lbl_8039EF8C
/* 8039EF7C 0039BEDC 80 1E 00 04 */ lwz r0, 4(r30)
/* 8039EF80 0039BEE0 7C 1F 00 40 */ cmplw r31, r0
/* 8039EF84 0039BEE4 40 82 00 08 */ bne lbl_8039EF8C
/* 8039EF88 0039BEE8 48 00 00 80 */ b lbl_8039F008
lbl_8039EF8C:
/* 8039EF8C 0039BEEC 88 1E 00 70 */ lbz r0, 0x70(r30)
/* 8039EF90 0039BEF0 38 63 00 01 */ addi r3, r3, 1
/* 8039EF94 0039BEF4 3B DE 00 64 */ addi r30, r30, 0x64
/* 8039EF98 0039BEF8 28 00 00 00 */ cmplwi r0, 0
/* 8039EF9C 0039BEFC 41 82 00 14 */ beq lbl_8039EFB0
/* 8039EFA0 0039BF00 80 1E 00 04 */ lwz r0, 4(r30)
/* 8039EFA4 0039BF04 7C 1F 00 40 */ cmplw r31, r0
/* 8039EFA8 0039BF08 40 82 00 08 */ bne lbl_8039EFB0
/* 8039EFAC 0039BF0C 48 00 00 5C */ b lbl_8039F008
lbl_8039EFB0:
/* 8039EFB0 0039BF10 88 1E 00 70 */ lbz r0, 0x70(r30)
/* 8039EFB4 0039BF14 38 63 00 01 */ addi r3, r3, 1
/* 8039EFB8 0039BF18 3B DE 00 64 */ addi r30, r30, 0x64
/* 8039EFBC 0039BF1C 28 00 00 00 */ cmplwi r0, 0
/* 8039EFC0 0039BF20 41 82 00 14 */ beq lbl_8039EFD4
/* 8039EFC4 0039BF24 80 1E 00 04 */ lwz r0, 4(r30)
/* 8039EFC8 0039BF28 7C 1F 00 40 */ cmplw r31, r0
/* 8039EFCC 0039BF2C 40 82 00 08 */ bne lbl_8039EFD4
/* 8039EFD0 0039BF30 48 00 00 38 */ b lbl_8039F008
lbl_8039EFD4:
/* 8039EFD4 0039BF34 88 1E 00 70 */ lbz r0, 0x70(r30)
/* 8039EFD8 0039BF38 38 63 00 01 */ addi r3, r3, 1
/* 8039EFDC 0039BF3C 3B DE 00 64 */ addi r30, r30, 0x64
/* 8039EFE0 0039BF40 28 00 00 00 */ cmplwi r0, 0
/* 8039EFE4 0039BF44 41 82 00 14 */ beq lbl_8039EFF8
/* 8039EFE8 0039BF48 80 1E 00 04 */ lwz r0, 4(r30)
/* 8039EFEC 0039BF4C 7C 1F 00 40 */ cmplw r31, r0
/* 8039EFF0 0039BF50 40 82 00 08 */ bne lbl_8039EFF8
/* 8039EFF4 0039BF54 48 00 00 14 */ b lbl_8039F008
lbl_8039EFF8:
/* 8039EFF8 0039BF58 3B DE 00 64 */ addi r30, r30, 0x64
/* 8039EFFC 0039BF5C 38 63 00 01 */ addi r3, r3, 1
/* 8039F000 0039BF60 42 00 FE E0 */ bdnz lbl_8039EEE0
/* 8039F004 0039BF64 38 60 FF FF */ li r3, -1
lbl_8039F008:
/* 8039F008 0039BF68 3C 03 00 01 */ addis r0, r3, 1
/* 8039F00C 0039BF6C 28 00 FF FF */ cmplwi r0, 0xffff
/* 8039F010 0039BF70 41 82 01 5C */ beq lbl_8039F16C
/* 8039F014 0039BF74 1F C3 00 64 */ mulli r30, r3, 0x64
/* 8039F018 0039BF78 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039F01C 0039BF7C 9B 41 00 08 */ stb r26, 8(r1)
/* 8039F020 0039BF80 38 81 00 08 */ addi r4, r1, 8
/* 8039F024 0039BF84 38 03 13 F8 */ addi r0, r3, streamInfo@l
/* 8039F028 0039BF88 7F E0 F2 14 */ add r31, r0, r30
/* 8039F02C 0039BF8C 9B 3F 00 5E */ stb r25, 0x5e(r31)
/* 8039F030 0039BF90 38 61 00 09 */ addi r3, r1, 9
/* 8039F034 0039BF94 9B 21 00 09 */ stb r25, 9(r1)
/* 8039F038 0039BF98 9B 5F 00 5F */ stb r26, 0x5f(r31)
/* 8039F03C 0039BF9C 4B FF E6 E9 */ bl CheckOutputMode
/* 8039F040 0039BFA0 9B 1F 00 59 */ stb r24, 0x59(r31)
/* 8039F044 0039BFA4 88 61 00 09 */ lbz r3, 9(r1)
/* 8039F048 0039BFA8 88 01 00 08 */ lbz r0, 8(r1)
/* 8039F04C 0039BFAC 98 7F 00 5A */ stb r3, 0x5a(r31)
/* 8039F050 0039BFB0 98 1F 00 5B */ stb r0, 0x5b(r31)
/* 8039F054 0039BFB4 9B 7F 00 5C */ stb r27, 0x5c(r31)
/* 8039F058 0039BFB8 9B 9F 00 5D */ stb r28, 0x5d(r31)
/* 8039F05C 0039BFBC 7C 1D F0 AE */ lbzx r0, r29, r30
/* 8039F060 0039BFC0 28 00 00 02 */ cmplwi r0, 2
/* 8039F064 0039BFC4 40 82 00 74 */ bne lbl_8039F0D8
/* 8039F068 0039BFC8 88 BF 00 59 */ lbz r5, 0x59(r31)
/* 8039F06C 0039BFCC 3C E0 43 30 */ lis r7, 0x4330
/* 8039F070 0039BFD0 88 7F 00 5C */ lbz r3, 0x5c(r31)
/* 8039F074 0039BFD4 38 80 00 00 */ li r4, 0
/* 8039F078 0039BFD8 88 1F 00 5D */ lbz r0, 0x5d(r31)
/* 8039F07C 0039BFDC 90 A1 00 24 */ stw r5, 0x24(r1)
/* 8039F080 0039BFE0 C8 62 D5 58 */ lfd f3, lbl_805AF278@sda21(r2)
/* 8039F084 0039BFE4 90 E1 00 20 */ stw r7, 0x20(r1)
/* 8039F088 0039BFE8 88 BF 00 5A */ lbz r5, 0x5a(r31)
/* 8039F08C 0039BFEC C8 01 00 20 */ lfd f0, 0x20(r1)
/* 8039F090 0039BFF0 90 61 00 1C */ stw r3, 0x1c(r1)
/* 8039F094 0039BFF4 54 A5 80 1E */ slwi r5, r5, 0x10
/* 8039F098 0039BFF8 88 7F 00 5B */ lbz r3, 0x5b(r31)
/* 8039F09C 0039BFFC EC 20 18 28 */ fsubs f1, f0, f3
/* 8039F0A0 0039C000 90 E1 00 18 */ stw r7, 0x18(r1)
/* 8039F0A4 0039C004 C0 82 D5 50 */ lfs f4, lbl_805AF270@sda21(r2)
/* 8039F0A8 0039C008 54 66 80 1E */ slwi r6, r3, 0x10
/* 8039F0AC 0039C00C C8 01 00 18 */ lfd f0, 0x18(r1)
/* 8039F0B0 0039C010 90 01 00 14 */ stw r0, 0x14(r1)
/* 8039F0B4 0039C014 EC 24 00 72 */ fmuls f1, f4, f1
/* 8039F0B8 0039C018 EC 40 18 28 */ fsubs f2, f0, f3
/* 8039F0BC 0039C01C 80 7F 00 4C */ lwz r3, 0x4c(r31)
/* 8039F0C0 0039C020 90 E1 00 10 */ stw r7, 0x10(r1)
/* 8039F0C4 0039C024 C8 01 00 10 */ lfd f0, 0x10(r1)
/* 8039F0C8 0039C028 EC 44 00 B2 */ fmuls f2, f4, f2
/* 8039F0CC 0039C02C EC 00 18 28 */ fsubs f0, f0, f3
/* 8039F0D0 0039C030 EC 64 00 32 */ fmuls f3, f4, f0
/* 8039F0D4 0039C034 48 01 46 B5 */ bl hwSetVolume
lbl_8039F0D8:
/* 8039F0D8 0039C038 83 DF 00 00 */ lwz r30, 0(r31)
/* 8039F0DC 0039C03C 3C 1E 00 01 */ addis r0, r30, 1
/* 8039F0E0 0039C040 28 00 FF FF */ cmplwi r0, 0xffff
/* 8039F0E4 0039C044 41 82 00 88 */ beq lbl_8039F16C
/* 8039F0E8 0039C048 48 01 5F D5 */ bl hwDisableIrq
/* 8039F0EC 0039C04C 7F C3 F3 78 */ mr r3, r30
/* 8039F0F0 0039C050 4B FF E1 F1 */ bl GetPrivateIndex
/* 8039F0F4 0039C054 3C 03 00 01 */ addis r0, r3, 1
/* 8039F0F8 0039C058 28 00 FF FF */ cmplwi r0, 0xffff
/* 8039F0FC 0039C05C 41 82 00 6C */ beq lbl_8039F168
/* 8039F100 0039C060 1F C3 00 64 */ mulli r30, r3, 0x64
/* 8039F104 0039C064 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039F108 0039C068 7F 04 C3 78 */ mr r4, r24
/* 8039F10C 0039C06C 38 03 13 F8 */ addi r0, r3, streamInfo@l
/* 8039F110 0039C070 7F E0 F2 14 */ add r31, r0, r30
/* 8039F114 0039C074 7F 25 CB 78 */ mr r5, r25
/* 8039F118 0039C078 7F E3 FB 78 */ mr r3, r31
/* 8039F11C 0039C07C 7F 46 D3 78 */ mr r6, r26
/* 8039F120 0039C080 7F 67 DB 78 */ mr r7, r27
/* 8039F124 0039C084 7F 88 E3 78 */ mr r8, r28
/* 8039F128 0039C088 4B FF E6 31 */ bl SetupVolumeAndPan
/* 8039F12C 0039C08C 7C 1D F0 AE */ lbzx r0, r29, r30
/* 8039F130 0039C090 28 00 00 02 */ cmplwi r0, 2
/* 8039F134 0039C094 40 82 00 0C */ bne lbl_8039F140
/* 8039F138 0039C098 7F E3 FB 78 */ mr r3, r31
/* 8039F13C 0039C09C 4B FF D7 E5 */ bl SetHWMix
lbl_8039F140:
/* 8039F140 0039C0A0 80 7F 00 00 */ lwz r3, 0(r31)
/* 8039F144 0039C0A4 3C 03 00 01 */ addis r0, r3, 1
/* 8039F148 0039C0A8 28 00 FF FF */ cmplwi r0, 0xffff
/* 8039F14C 0039C0AC 41 82 00 1C */ beq lbl_8039F168
/* 8039F150 0039C0B0 7F 04 C3 78 */ mr r4, r24
/* 8039F154 0039C0B4 7F 25 CB 78 */ mr r5, r25
/* 8039F158 0039C0B8 7F 46 D3 78 */ mr r6, r26
/* 8039F15C 0039C0BC 7F 67 DB 78 */ mr r7, r27
/* 8039F160 0039C0C0 7F 88 E3 78 */ mr r8, r28
/* 8039F164 0039C0C4 4B FF FA CD */ bl sndStreamMixParameterEx
lbl_8039F168:
/* 8039F168 0039C0C8 48 01 5F 1D */ bl hwEnableIrq
lbl_8039F16C:
/* 8039F16C 0039C0CC 48 01 5F 19 */ bl hwEnableIrq
lbl_8039F170:
/* 8039F170 0039C0D0 48 01 5F 15 */ bl hwEnableIrq
/* 8039F174 0039C0D4 39 61 00 50 */ addi r11, r1, 0x50
/* 8039F178 0039C0D8 4B FE A9 45 */ bl _restgpr_24
/* 8039F17C 0039C0DC 80 01 00 54 */ lwz r0, 0x54(r1)
/* 8039F180 0039C0E0 7C 08 03 A6 */ mtlr r0
/* 8039F184 0039C0E4 38 21 00 50 */ addi r1, r1, 0x50
/* 8039F188 0039C0E8 4E 80 00 20 */ blr
.global sndStreamFrq
sndStreamFrq:
/* 8039F18C 0039C0EC 94 21 FF C0 */ stwu r1, -0x40(r1)
/* 8039F190 0039C0F0 7C 08 02 A6 */ mflr r0
/* 8039F194 0039C0F4 90 01 00 44 */ stw r0, 0x44(r1)
/* 8039F198 0039C0F8 39 61 00 40 */ addi r11, r1, 0x40
/* 8039F19C 0039C0FC 4B FE A8 E1 */ bl _savegpr_27
/* 8039F1A0 0039C100 7C 7B 1B 78 */ mr r27, r3
/* 8039F1A4 0039C104 7C 9C 23 78 */ mr r28, r4
/* 8039F1A8 0039C108 48 01 5F 15 */ bl hwDisableIrq
/* 8039F1AC 0039C10C 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039F1B0 0039C110 38 00 00 08 */ li r0, 8
/* 8039F1B4 0039C114 3B E3 13 F8 */ addi r31, r3, streamInfo@l
/* 8039F1B8 0039C118 38 80 00 00 */ li r4, 0
/* 8039F1BC 0039C11C 7F E3 FB 78 */ mr r3, r31
/* 8039F1C0 0039C120 7C 09 03 A6 */ mtctr r0
lbl_8039F1C4:
/* 8039F1C4 0039C124 88 03 00 0C */ lbz r0, 0xc(r3)
/* 8039F1C8 0039C128 28 00 00 00 */ cmplwi r0, 0
/* 8039F1CC 0039C12C 41 82 00 14 */ beq lbl_8039F1E0
/* 8039F1D0 0039C130 80 03 00 04 */ lwz r0, 4(r3)
/* 8039F1D4 0039C134 7C 1B 00 40 */ cmplw r27, r0
/* 8039F1D8 0039C138 40 82 00 08 */ bne lbl_8039F1E0
/* 8039F1DC 0039C13C 48 00 01 10 */ b lbl_8039F2EC
lbl_8039F1E0:
/* 8039F1E0 0039C140 88 03 00 70 */ lbz r0, 0x70(r3)
/* 8039F1E4 0039C144 38 84 00 01 */ addi r4, r4, 1
/* 8039F1E8 0039C148 38 63 00 64 */ addi r3, r3, 0x64
/* 8039F1EC 0039C14C 28 00 00 00 */ cmplwi r0, 0
/* 8039F1F0 0039C150 41 82 00 14 */ beq lbl_8039F204
/* 8039F1F4 0039C154 80 03 00 04 */ lwz r0, 4(r3)
/* 8039F1F8 0039C158 7C 1B 00 40 */ cmplw r27, r0
/* 8039F1FC 0039C15C 40 82 00 08 */ bne lbl_8039F204
/* 8039F200 0039C160 48 00 00 EC */ b lbl_8039F2EC
lbl_8039F204:
/* 8039F204 0039C164 88 03 00 70 */ lbz r0, 0x70(r3)
/* 8039F208 0039C168 38 84 00 01 */ addi r4, r4, 1
/* 8039F20C 0039C16C 38 63 00 64 */ addi r3, r3, 0x64
/* 8039F210 0039C170 28 00 00 00 */ cmplwi r0, 0
/* 8039F214 0039C174 41 82 00 14 */ beq lbl_8039F228
/* 8039F218 0039C178 80 03 00 04 */ lwz r0, 4(r3)
/* 8039F21C 0039C17C 7C 1B 00 40 */ cmplw r27, r0
/* 8039F220 0039C180 40 82 00 08 */ bne lbl_8039F228
/* 8039F224 0039C184 48 00 00 C8 */ b lbl_8039F2EC
lbl_8039F228:
/* 8039F228 0039C188 88 03 00 70 */ lbz r0, 0x70(r3)
/* 8039F22C 0039C18C 38 84 00 01 */ addi r4, r4, 1
/* 8039F230 0039C190 38 63 00 64 */ addi r3, r3, 0x64
/* 8039F234 0039C194 28 00 00 00 */ cmplwi r0, 0
/* 8039F238 0039C198 41 82 00 14 */ beq lbl_8039F24C
/* 8039F23C 0039C19C 80 03 00 04 */ lwz r0, 4(r3)
/* 8039F240 0039C1A0 7C 1B 00 40 */ cmplw r27, r0
/* 8039F244 0039C1A4 40 82 00 08 */ bne lbl_8039F24C
/* 8039F248 0039C1A8 48 00 00 A4 */ b lbl_8039F2EC
lbl_8039F24C:
/* 8039F24C 0039C1AC 88 03 00 70 */ lbz r0, 0x70(r3)
/* 8039F250 0039C1B0 38 84 00 01 */ addi r4, r4, 1
/* 8039F254 0039C1B4 38 63 00 64 */ addi r3, r3, 0x64
/* 8039F258 0039C1B8 28 00 00 00 */ cmplwi r0, 0
/* 8039F25C 0039C1BC 41 82 00 14 */ beq lbl_8039F270
/* 8039F260 0039C1C0 80 03 00 04 */ lwz r0, 4(r3)
/* 8039F264 0039C1C4 7C 1B 00 40 */ cmplw r27, r0
/* 8039F268 0039C1C8 40 82 00 08 */ bne lbl_8039F270
/* 8039F26C 0039C1CC 48 00 00 80 */ b lbl_8039F2EC
lbl_8039F270:
/* 8039F270 0039C1D0 88 03 00 70 */ lbz r0, 0x70(r3)
/* 8039F274 0039C1D4 38 84 00 01 */ addi r4, r4, 1
/* 8039F278 0039C1D8 38 63 00 64 */ addi r3, r3, 0x64
/* 8039F27C 0039C1DC 28 00 00 00 */ cmplwi r0, 0
/* 8039F280 0039C1E0 41 82 00 14 */ beq lbl_8039F294
/* 8039F284 0039C1E4 80 03 00 04 */ lwz r0, 4(r3)
/* 8039F288 0039C1E8 7C 1B 00 40 */ cmplw r27, r0
/* 8039F28C 0039C1EC 40 82 00 08 */ bne lbl_8039F294
/* 8039F290 0039C1F0 48 00 00 5C */ b lbl_8039F2EC
lbl_8039F294:
/* 8039F294 0039C1F4 88 03 00 70 */ lbz r0, 0x70(r3)
/* 8039F298 0039C1F8 38 84 00 01 */ addi r4, r4, 1
/* 8039F29C 0039C1FC 38 63 00 64 */ addi r3, r3, 0x64
/* 8039F2A0 0039C200 28 00 00 00 */ cmplwi r0, 0
/* 8039F2A4 0039C204 41 82 00 14 */ beq lbl_8039F2B8
/* 8039F2A8 0039C208 80 03 00 04 */ lwz r0, 4(r3)
/* 8039F2AC 0039C20C 7C 1B 00 40 */ cmplw r27, r0
/* 8039F2B0 0039C210 40 82 00 08 */ bne lbl_8039F2B8
/* 8039F2B4 0039C214 48 00 00 38 */ b lbl_8039F2EC
lbl_8039F2B8:
/* 8039F2B8 0039C218 88 03 00 70 */ lbz r0, 0x70(r3)
/* 8039F2BC 0039C21C 38 84 00 01 */ addi r4, r4, 1
/* 8039F2C0 0039C220 38 63 00 64 */ addi r3, r3, 0x64
/* 8039F2C4 0039C224 28 00 00 00 */ cmplwi r0, 0
/* 8039F2C8 0039C228 41 82 00 14 */ beq lbl_8039F2DC
/* 8039F2CC 0039C22C 80 03 00 04 */ lwz r0, 4(r3)
/* 8039F2D0 0039C230 7C 1B 00 40 */ cmplw r27, r0
/* 8039F2D4 0039C234 40 82 00 08 */ bne lbl_8039F2DC
/* 8039F2D8 0039C238 48 00 00 14 */ b lbl_8039F2EC
lbl_8039F2DC:
/* 8039F2DC 0039C23C 38 63 00 64 */ addi r3, r3, 0x64
/* 8039F2E0 0039C240 38 84 00 01 */ addi r4, r4, 1
/* 8039F2E4 0039C244 42 00 FE E0 */ bdnz lbl_8039F1C4
/* 8039F2E8 0039C248 38 80 FF FF */ li r4, -1
lbl_8039F2EC:
/* 8039F2EC 0039C24C 3C 04 00 01 */ addis r0, r4, 1
/* 8039F2F0 0039C250 28 00 FF FF */ cmplwi r0, 0xffff
/* 8039F2F4 0039C254 41 82 04 E4 */ beq lbl_8039F7D8
/* 8039F2F8 0039C258 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039F2FC 0039C25C 38 A3 13 F8 */ addi r5, r3, streamInfo@l
/* 8039F300 0039C260 1F 64 00 64 */ mulli r27, r4, 0x64
/* 8039F304 0039C264 3B C5 00 54 */ addi r30, r5, 0x54
/* 8039F308 0039C268 3B A5 00 0C */ addi r29, r5, 0xc
/* 8039F30C 0039C26C 7F 9E D9 2E */ stwx r28, r30, r27
/* 8039F310 0039C270 7C 1D D8 AE */ lbzx r0, r29, r27
/* 8039F314 0039C274 28 00 00 02 */ cmplwi r0, 2
/* 8039F318 0039C278 40 82 00 58 */ bne lbl_8039F370
/* 8039F31C 0039C27C 3C 80 43 30 */ lis r4, 0x4330
/* 8039F320 0039C280 3C 60 80 55 */ lis r3, synthInfo@ha
/* 8039F324 0039C284 93 81 00 0C */ stw r28, 0xc(r1)
/* 8039F328 0039C288 80 03 00 50 */ lwz r0, synthInfo@l(r3)
/* 8039F32C 0039C28C 7C 65 DA 14 */ add r3, r5, r27
/* 8039F330 0039C290 90 81 00 08 */ stw r4, 8(r1)
/* 8039F334 0039C294 C8 42 D5 58 */ lfd f2, lbl_805AF278@sda21(r2)
/* 8039F338 0039C298 C8 01 00 08 */ lfd f0, 8(r1)
/* 8039F33C 0039C29C 90 01 00 14 */ stw r0, 0x14(r1)
/* 8039F340 0039C2A0 EC 20 10 28 */ fsubs f1, f0, f2
/* 8039F344 0039C2A4 C0 62 D5 60 */ lfs f3, lbl_805AF280@sda21(r2)
/* 8039F348 0039C2A8 90 81 00 10 */ stw r4, 0x10(r1)
/* 8039F34C 0039C2AC 80 63 00 4C */ lwz r3, 0x4c(r3)
/* 8039F350 0039C2B0 C8 01 00 10 */ lfd f0, 0x10(r1)
/* 8039F354 0039C2B4 EC 23 00 72 */ fmuls f1, f3, f1
/* 8039F358 0039C2B8 EC 00 10 28 */ fsubs f0, f0, f2
/* 8039F35C 0039C2BC EC 01 00 24 */ fdivs f0, f1, f0
/* 8039F360 0039C2C0 FC 00 00 1E */ fctiwz f0, f0
/* 8039F364 0039C2C4 D8 01 00 18 */ stfd f0, 0x18(r1)
/* 8039F368 0039C2C8 80 81 00 1C */ lwz r4, 0x1c(r1)
/* 8039F36C 0039C2CC 48 01 42 F1 */ bl hwSetPitch
lbl_8039F370:
/* 8039F370 0039C2D0 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039F374 0039C2D4 38 63 13 F8 */ addi r3, r3, streamInfo@l
/* 8039F378 0039C2D8 7F 63 D8 2E */ lwzx r27, r3, r27
/* 8039F37C 0039C2DC 3C 1B 00 01 */ addis r0, r27, 1
/* 8039F380 0039C2E0 28 00 FF FF */ cmplwi r0, 0xffff
/* 8039F384 0039C2E4 41 82 04 54 */ beq lbl_8039F7D8
/* 8039F388 0039C2E8 48 01 5D 35 */ bl hwDisableIrq
/* 8039F38C 0039C2EC 38 00 00 08 */ li r0, 8
/* 8039F390 0039C2F0 7F E4 FB 78 */ mr r4, r31
/* 8039F394 0039C2F4 38 60 00 00 */ li r3, 0
/* 8039F398 0039C2F8 7C 09 03 A6 */ mtctr r0
lbl_8039F39C:
/* 8039F39C 0039C2FC 88 04 00 0C */ lbz r0, 0xc(r4)
/* 8039F3A0 0039C300 28 00 00 00 */ cmplwi r0, 0
/* 8039F3A4 0039C304 41 82 00 14 */ beq lbl_8039F3B8
/* 8039F3A8 0039C308 80 04 00 04 */ lwz r0, 4(r4)
/* 8039F3AC 0039C30C 7C 1B 00 40 */ cmplw r27, r0
/* 8039F3B0 0039C310 40 82 00 08 */ bne lbl_8039F3B8
/* 8039F3B4 0039C314 48 00 01 10 */ b lbl_8039F4C4
lbl_8039F3B8:
/* 8039F3B8 0039C318 88 04 00 70 */ lbz r0, 0x70(r4)
/* 8039F3BC 0039C31C 38 63 00 01 */ addi r3, r3, 1
/* 8039F3C0 0039C320 38 84 00 64 */ addi r4, r4, 0x64
/* 8039F3C4 0039C324 28 00 00 00 */ cmplwi r0, 0
/* 8039F3C8 0039C328 41 82 00 14 */ beq lbl_8039F3DC
/* 8039F3CC 0039C32C 80 04 00 04 */ lwz r0, 4(r4)
/* 8039F3D0 0039C330 7C 1B 00 40 */ cmplw r27, r0
/* 8039F3D4 0039C334 40 82 00 08 */ bne lbl_8039F3DC
/* 8039F3D8 0039C338 48 00 00 EC */ b lbl_8039F4C4
lbl_8039F3DC:
/* 8039F3DC 0039C33C 88 04 00 70 */ lbz r0, 0x70(r4)
/* 8039F3E0 0039C340 38 63 00 01 */ addi r3, r3, 1
/* 8039F3E4 0039C344 38 84 00 64 */ addi r4, r4, 0x64
/* 8039F3E8 0039C348 28 00 00 00 */ cmplwi r0, 0
/* 8039F3EC 0039C34C 41 82 00 14 */ beq lbl_8039F400
/* 8039F3F0 0039C350 80 04 00 04 */ lwz r0, 4(r4)
/* 8039F3F4 0039C354 7C 1B 00 40 */ cmplw r27, r0
/* 8039F3F8 0039C358 40 82 00 08 */ bne lbl_8039F400
/* 8039F3FC 0039C35C 48 00 00 C8 */ b lbl_8039F4C4
lbl_8039F400:
/* 8039F400 0039C360 88 04 00 70 */ lbz r0, 0x70(r4)
/* 8039F404 0039C364 38 63 00 01 */ addi r3, r3, 1
/* 8039F408 0039C368 38 84 00 64 */ addi r4, r4, 0x64
/* 8039F40C 0039C36C 28 00 00 00 */ cmplwi r0, 0
/* 8039F410 0039C370 41 82 00 14 */ beq lbl_8039F424
/* 8039F414 0039C374 80 04 00 04 */ lwz r0, 4(r4)
/* 8039F418 0039C378 7C 1B 00 40 */ cmplw r27, r0
/* 8039F41C 0039C37C 40 82 00 08 */ bne lbl_8039F424
/* 8039F420 0039C380 48 00 00 A4 */ b lbl_8039F4C4
lbl_8039F424:
/* 8039F424 0039C384 88 04 00 70 */ lbz r0, 0x70(r4)
/* 8039F428 0039C388 38 63 00 01 */ addi r3, r3, 1
/* 8039F42C 0039C38C 38 84 00 64 */ addi r4, r4, 0x64
/* 8039F430 0039C390 28 00 00 00 */ cmplwi r0, 0
/* 8039F434 0039C394 41 82 00 14 */ beq lbl_8039F448
/* 8039F438 0039C398 80 04 00 04 */ lwz r0, 4(r4)
/* 8039F43C 0039C39C 7C 1B 00 40 */ cmplw r27, r0
/* 8039F440 0039C3A0 40 82 00 08 */ bne lbl_8039F448
/* 8039F444 0039C3A4 48 00 00 80 */ b lbl_8039F4C4
lbl_8039F448:
/* 8039F448 0039C3A8 88 04 00 70 */ lbz r0, 0x70(r4)
/* 8039F44C 0039C3AC 38 63 00 01 */ addi r3, r3, 1
/* 8039F450 0039C3B0 38 84 00 64 */ addi r4, r4, 0x64
/* 8039F454 0039C3B4 28 00 00 00 */ cmplwi r0, 0
/* 8039F458 0039C3B8 41 82 00 14 */ beq lbl_8039F46C
/* 8039F45C 0039C3BC 80 04 00 04 */ lwz r0, 4(r4)
/* 8039F460 0039C3C0 7C 1B 00 40 */ cmplw r27, r0
/* 8039F464 0039C3C4 40 82 00 08 */ bne lbl_8039F46C
/* 8039F468 0039C3C8 48 00 00 5C */ b lbl_8039F4C4
lbl_8039F46C:
/* 8039F46C 0039C3CC 88 04 00 70 */ lbz r0, 0x70(r4)
/* 8039F470 0039C3D0 38 63 00 01 */ addi r3, r3, 1
/* 8039F474 0039C3D4 38 84 00 64 */ addi r4, r4, 0x64
/* 8039F478 0039C3D8 28 00 00 00 */ cmplwi r0, 0
/* 8039F47C 0039C3DC 41 82 00 14 */ beq lbl_8039F490
/* 8039F480 0039C3E0 80 04 00 04 */ lwz r0, 4(r4)
/* 8039F484 0039C3E4 7C 1B 00 40 */ cmplw r27, r0
/* 8039F488 0039C3E8 40 82 00 08 */ bne lbl_8039F490
/* 8039F48C 0039C3EC 48 00 00 38 */ b lbl_8039F4C4
lbl_8039F490:
/* 8039F490 0039C3F0 88 04 00 70 */ lbz r0, 0x70(r4)
/* 8039F494 0039C3F4 38 63 00 01 */ addi r3, r3, 1
/* 8039F498 0039C3F8 38 84 00 64 */ addi r4, r4, 0x64
/* 8039F49C 0039C3FC 28 00 00 00 */ cmplwi r0, 0
/* 8039F4A0 0039C400 41 82 00 14 */ beq lbl_8039F4B4
/* 8039F4A4 0039C404 80 04 00 04 */ lwz r0, 4(r4)
/* 8039F4A8 0039C408 7C 1B 00 40 */ cmplw r27, r0
/* 8039F4AC 0039C40C 40 82 00 08 */ bne lbl_8039F4B4
/* 8039F4B0 0039C410 48 00 00 14 */ b lbl_8039F4C4
lbl_8039F4B4:
/* 8039F4B4 0039C414 38 84 00 64 */ addi r4, r4, 0x64
/* 8039F4B8 0039C418 38 63 00 01 */ addi r3, r3, 1
/* 8039F4BC 0039C41C 42 00 FE E0 */ bdnz lbl_8039F39C
/* 8039F4C0 0039C420 38 60 FF FF */ li r3, -1
lbl_8039F4C4:
/* 8039F4C4 0039C424 3C 03 00 01 */ addis r0, r3, 1
/* 8039F4C8 0039C428 28 00 FF FF */ cmplwi r0, 0xffff
/* 8039F4CC 0039C42C 41 82 03 08 */ beq lbl_8039F7D4
/* 8039F4D0 0039C430 1F 63 00 64 */ mulli r27, r3, 0x64
/* 8039F4D4 0039C434 7F 9E D9 2E */ stwx r28, r30, r27
/* 8039F4D8 0039C438 7C 1D D8 AE */ lbzx r0, r29, r27
/* 8039F4DC 0039C43C 28 00 00 02 */ cmplwi r0, 2
/* 8039F4E0 0039C440 40 82 00 60 */ bne lbl_8039F540
/* 8039F4E4 0039C444 3C 80 43 30 */ lis r4, 0x4330
/* 8039F4E8 0039C448 3C 60 80 55 */ lis r3, synthInfo@ha
/* 8039F4EC 0039C44C 93 81 00 1C */ stw r28, 0x1c(r1)
/* 8039F4F0 0039C450 80 03 00 50 */ lwz r0, synthInfo@l(r3)
/* 8039F4F4 0039C454 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039F4F8 0039C458 90 81 00 18 */ stw r4, 0x18(r1)
/* 8039F4FC 0039C45C 38 63 13 F8 */ addi r3, r3, streamInfo@l
/* 8039F500 0039C460 C8 42 D5 58 */ lfd f2, lbl_805AF278@sda21(r2)
/* 8039F504 0039C464 7C 63 DA 14 */ add r3, r3, r27
/* 8039F508 0039C468 C8 01 00 18 */ lfd f0, 0x18(r1)
/* 8039F50C 0039C46C 90 01 00 14 */ stw r0, 0x14(r1)
/* 8039F510 0039C470 EC 20 10 28 */ fsubs f1, f0, f2
/* 8039F514 0039C474 C0 62 D5 60 */ lfs f3, lbl_805AF280@sda21(r2)
/* 8039F518 0039C478 90 81 00 10 */ stw r4, 0x10(r1)
/* 8039F51C 0039C47C 80 63 00 4C */ lwz r3, 0x4c(r3)
/* 8039F520 0039C480 C8 01 00 10 */ lfd f0, 0x10(r1)
/* 8039F524 0039C484 EC 23 00 72 */ fmuls f1, f3, f1
/* 8039F528 0039C488 EC 00 10 28 */ fsubs f0, f0, f2
/* 8039F52C 0039C48C EC 01 00 24 */ fdivs f0, f1, f0
/* 8039F530 0039C490 FC 00 00 1E */ fctiwz f0, f0
/* 8039F534 0039C494 D8 01 00 08 */ stfd f0, 8(r1)
/* 8039F538 0039C498 80 81 00 0C */ lwz r4, 0xc(r1)
/* 8039F53C 0039C49C 48 01 41 21 */ bl hwSetPitch
lbl_8039F540:
/* 8039F540 0039C4A0 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039F544 0039C4A4 38 63 13 F8 */ addi r3, r3, streamInfo@l
/* 8039F548 0039C4A8 7F 63 D8 2E */ lwzx r27, r3, r27
/* 8039F54C 0039C4AC 3C 1B 00 01 */ addis r0, r27, 1
/* 8039F550 0039C4B0 28 00 FF FF */ cmplwi r0, 0xffff
/* 8039F554 0039C4B4 41 82 02 80 */ beq lbl_8039F7D4
/* 8039F558 0039C4B8 48 01 5B 65 */ bl hwDisableIrq
/* 8039F55C 0039C4BC 38 00 00 08 */ li r0, 8
/* 8039F560 0039C4C0 38 60 00 00 */ li r3, 0
/* 8039F564 0039C4C4 7C 09 03 A6 */ mtctr r0
lbl_8039F568:
/* 8039F568 0039C4C8 88 1F 00 0C */ lbz r0, 0xc(r31)
/* 8039F56C 0039C4CC 28 00 00 00 */ cmplwi r0, 0
/* 8039F570 0039C4D0 41 82 00 14 */ beq lbl_8039F584
/* 8039F574 0039C4D4 80 1F 00 04 */ lwz r0, 4(r31)
/* 8039F578 0039C4D8 7C 1B 00 40 */ cmplw r27, r0
/* 8039F57C 0039C4DC 40 82 00 08 */ bne lbl_8039F584
/* 8039F580 0039C4E0 48 00 01 10 */ b lbl_8039F690
lbl_8039F584:
/* 8039F584 0039C4E4 88 1F 00 70 */ lbz r0, 0x70(r31)
/* 8039F588 0039C4E8 38 63 00 01 */ addi r3, r3, 1
/* 8039F58C 0039C4EC 3B FF 00 64 */ addi r31, r31, 0x64
/* 8039F590 0039C4F0 28 00 00 00 */ cmplwi r0, 0
/* 8039F594 0039C4F4 41 82 00 14 */ beq lbl_8039F5A8
/* 8039F598 0039C4F8 80 1F 00 04 */ lwz r0, 4(r31)
/* 8039F59C 0039C4FC 7C 1B 00 40 */ cmplw r27, r0
/* 8039F5A0 0039C500 40 82 00 08 */ bne lbl_8039F5A8
/* 8039F5A4 0039C504 48 00 00 EC */ b lbl_8039F690
lbl_8039F5A8:
/* 8039F5A8 0039C508 88 1F 00 70 */ lbz r0, 0x70(r31)
/* 8039F5AC 0039C50C 38 63 00 01 */ addi r3, r3, 1
/* 8039F5B0 0039C510 3B FF 00 64 */ addi r31, r31, 0x64
/* 8039F5B4 0039C514 28 00 00 00 */ cmplwi r0, 0
/* 8039F5B8 0039C518 41 82 00 14 */ beq lbl_8039F5CC
/* 8039F5BC 0039C51C 80 1F 00 04 */ lwz r0, 4(r31)
/* 8039F5C0 0039C520 7C 1B 00 40 */ cmplw r27, r0
/* 8039F5C4 0039C524 40 82 00 08 */ bne lbl_8039F5CC
/* 8039F5C8 0039C528 48 00 00 C8 */ b lbl_8039F690
lbl_8039F5CC:
/* 8039F5CC 0039C52C 88 1F 00 70 */ lbz r0, 0x70(r31)
/* 8039F5D0 0039C530 38 63 00 01 */ addi r3, r3, 1
/* 8039F5D4 0039C534 3B FF 00 64 */ addi r31, r31, 0x64
/* 8039F5D8 0039C538 28 00 00 00 */ cmplwi r0, 0
/* 8039F5DC 0039C53C 41 82 00 14 */ beq lbl_8039F5F0
/* 8039F5E0 0039C540 80 1F 00 04 */ lwz r0, 4(r31)
/* 8039F5E4 0039C544 7C 1B 00 40 */ cmplw r27, r0
/* 8039F5E8 0039C548 40 82 00 08 */ bne lbl_8039F5F0
/* 8039F5EC 0039C54C 48 00 00 A4 */ b lbl_8039F690
lbl_8039F5F0:
/* 8039F5F0 0039C550 88 1F 00 70 */ lbz r0, 0x70(r31)
/* 8039F5F4 0039C554 38 63 00 01 */ addi r3, r3, 1
/* 8039F5F8 0039C558 3B FF 00 64 */ addi r31, r31, 0x64
/* 8039F5FC 0039C55C 28 00 00 00 */ cmplwi r0, 0
/* 8039F600 0039C560 41 82 00 14 */ beq lbl_8039F614
/* 8039F604 0039C564 80 1F 00 04 */ lwz r0, 4(r31)
/* 8039F608 0039C568 7C 1B 00 40 */ cmplw r27, r0
/* 8039F60C 0039C56C 40 82 00 08 */ bne lbl_8039F614
/* 8039F610 0039C570 48 00 00 80 */ b lbl_8039F690
lbl_8039F614:
/* 8039F614 0039C574 88 1F 00 70 */ lbz r0, 0x70(r31)
/* 8039F618 0039C578 38 63 00 01 */ addi r3, r3, 1
/* 8039F61C 0039C57C 3B FF 00 64 */ addi r31, r31, 0x64
/* 8039F620 0039C580 28 00 00 00 */ cmplwi r0, 0
/* 8039F624 0039C584 41 82 00 14 */ beq lbl_8039F638
/* 8039F628 0039C588 80 1F 00 04 */ lwz r0, 4(r31)
/* 8039F62C 0039C58C 7C 1B 00 40 */ cmplw r27, r0
/* 8039F630 0039C590 40 82 00 08 */ bne lbl_8039F638
/* 8039F634 0039C594 48 00 00 5C */ b lbl_8039F690
lbl_8039F638:
/* 8039F638 0039C598 88 1F 00 70 */ lbz r0, 0x70(r31)
/* 8039F63C 0039C59C 38 63 00 01 */ addi r3, r3, 1
/* 8039F640 0039C5A0 3B FF 00 64 */ addi r31, r31, 0x64
/* 8039F644 0039C5A4 28 00 00 00 */ cmplwi r0, 0
/* 8039F648 0039C5A8 41 82 00 14 */ beq lbl_8039F65C
/* 8039F64C 0039C5AC 80 1F 00 04 */ lwz r0, 4(r31)
/* 8039F650 0039C5B0 7C 1B 00 40 */ cmplw r27, r0
/* 8039F654 0039C5B4 40 82 00 08 */ bne lbl_8039F65C
/* 8039F658 0039C5B8 48 00 00 38 */ b lbl_8039F690
lbl_8039F65C:
/* 8039F65C 0039C5BC 88 1F 00 70 */ lbz r0, 0x70(r31)
/* 8039F660 0039C5C0 38 63 00 01 */ addi r3, r3, 1
/* 8039F664 0039C5C4 3B FF 00 64 */ addi r31, r31, 0x64
/* 8039F668 0039C5C8 28 00 00 00 */ cmplwi r0, 0
/* 8039F66C 0039C5CC 41 82 00 14 */ beq lbl_8039F680
/* 8039F670 0039C5D0 80 1F 00 04 */ lwz r0, 4(r31)
/* 8039F674 0039C5D4 7C 1B 00 40 */ cmplw r27, r0
/* 8039F678 0039C5D8 40 82 00 08 */ bne lbl_8039F680
/* 8039F67C 0039C5DC 48 00 00 14 */ b lbl_8039F690
lbl_8039F680:
/* 8039F680 0039C5E0 3B FF 00 64 */ addi r31, r31, 0x64
/* 8039F684 0039C5E4 38 63 00 01 */ addi r3, r3, 1
/* 8039F688 0039C5E8 42 00 FE E0 */ bdnz lbl_8039F568
/* 8039F68C 0039C5EC 38 60 FF FF */ li r3, -1
lbl_8039F690:
/* 8039F690 0039C5F0 3C 03 00 01 */ addis r0, r3, 1
/* 8039F694 0039C5F4 28 00 FF FF */ cmplwi r0, 0xffff
/* 8039F698 0039C5F8 41 82 01 38 */ beq lbl_8039F7D0
/* 8039F69C 0039C5FC 1F 63 00 64 */ mulli r27, r3, 0x64
/* 8039F6A0 0039C600 7F 9E D9 2E */ stwx r28, r30, r27
/* 8039F6A4 0039C604 7C 1D D8 AE */ lbzx r0, r29, r27
/* 8039F6A8 0039C608 28 00 00 02 */ cmplwi r0, 2
/* 8039F6AC 0039C60C 40 82 00 60 */ bne lbl_8039F70C
/* 8039F6B0 0039C610 3C 80 43 30 */ lis r4, 0x4330
/* 8039F6B4 0039C614 3C 60 80 55 */ lis r3, synthInfo@ha
/* 8039F6B8 0039C618 93 81 00 1C */ stw r28, 0x1c(r1)
/* 8039F6BC 0039C61C 80 03 00 50 */ lwz r0, synthInfo@l(r3)
/* 8039F6C0 0039C620 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039F6C4 0039C624 90 81 00 18 */ stw r4, 0x18(r1)
/* 8039F6C8 0039C628 38 63 13 F8 */ addi r3, r3, streamInfo@l
/* 8039F6CC 0039C62C C8 42 D5 58 */ lfd f2, lbl_805AF278@sda21(r2)
/* 8039F6D0 0039C630 7C 63 DA 14 */ add r3, r3, r27
/* 8039F6D4 0039C634 C8 01 00 18 */ lfd f0, 0x18(r1)
/* 8039F6D8 0039C638 90 01 00 14 */ stw r0, 0x14(r1)
/* 8039F6DC 0039C63C EC 20 10 28 */ fsubs f1, f0, f2
/* 8039F6E0 0039C640 C0 62 D5 60 */ lfs f3, lbl_805AF280@sda21(r2)
/* 8039F6E4 0039C644 90 81 00 10 */ stw r4, 0x10(r1)
/* 8039F6E8 0039C648 80 63 00 4C */ lwz r3, 0x4c(r3)
/* 8039F6EC 0039C64C C8 01 00 10 */ lfd f0, 0x10(r1)
/* 8039F6F0 0039C650 EC 23 00 72 */ fmuls f1, f3, f1
/* 8039F6F4 0039C654 EC 00 10 28 */ fsubs f0, f0, f2
/* 8039F6F8 0039C658 EC 01 00 24 */ fdivs f0, f1, f0
/* 8039F6FC 0039C65C FC 00 00 1E */ fctiwz f0, f0
/* 8039F700 0039C660 D8 01 00 08 */ stfd f0, 8(r1)
/* 8039F704 0039C664 80 81 00 0C */ lwz r4, 0xc(r1)
/* 8039F708 0039C668 48 01 3F 55 */ bl hwSetPitch
lbl_8039F70C:
/* 8039F70C 0039C66C 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039F710 0039C670 38 63 13 F8 */ addi r3, r3, streamInfo@l
/* 8039F714 0039C674 7F 63 D8 2E */ lwzx r27, r3, r27
/* 8039F718 0039C678 3C 1B 00 01 */ addis r0, r27, 1
/* 8039F71C 0039C67C 28 00 FF FF */ cmplwi r0, 0xffff
/* 8039F720 0039C680 41 82 00 B0 */ beq lbl_8039F7D0
/* 8039F724 0039C684 48 01 59 99 */ bl hwDisableIrq
/* 8039F728 0039C688 7F 63 DB 78 */ mr r3, r27
/* 8039F72C 0039C68C 4B FF DB B5 */ bl GetPrivateIndex
/* 8039F730 0039C690 3C 03 00 01 */ addis r0, r3, 1
/* 8039F734 0039C694 28 00 FF FF */ cmplwi r0, 0xffff
/* 8039F738 0039C698 41 82 00 94 */ beq lbl_8039F7CC
/* 8039F73C 0039C69C 1F 63 00 64 */ mulli r27, r3, 0x64
/* 8039F740 0039C6A0 7F 9E D9 2E */ stwx r28, r30, r27
/* 8039F744 0039C6A4 7C 1D D8 AE */ lbzx r0, r29, r27
/* 8039F748 0039C6A8 28 00 00 02 */ cmplwi r0, 2
/* 8039F74C 0039C6AC 40 82 00 60 */ bne lbl_8039F7AC
/* 8039F750 0039C6B0 3C 80 43 30 */ lis r4, 0x4330
/* 8039F754 0039C6B4 3C 60 80 55 */ lis r3, synthInfo@ha
/* 8039F758 0039C6B8 93 81 00 1C */ stw r28, 0x1c(r1)
/* 8039F75C 0039C6BC 80 03 00 50 */ lwz r0, synthInfo@l(r3)
/* 8039F760 0039C6C0 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039F764 0039C6C4 90 81 00 18 */ stw r4, 0x18(r1)
/* 8039F768 0039C6C8 38 63 13 F8 */ addi r3, r3, streamInfo@l
/* 8039F76C 0039C6CC C8 42 D5 58 */ lfd f2, lbl_805AF278@sda21(r2)
/* 8039F770 0039C6D0 7C 63 DA 14 */ add r3, r3, r27
/* 8039F774 0039C6D4 C8 01 00 18 */ lfd f0, 0x18(r1)
/* 8039F778 0039C6D8 90 01 00 14 */ stw r0, 0x14(r1)
/* 8039F77C 0039C6DC EC 20 10 28 */ fsubs f1, f0, f2
/* 8039F780 0039C6E0 C0 62 D5 60 */ lfs f3, lbl_805AF280@sda21(r2)
/* 8039F784 0039C6E4 90 81 00 10 */ stw r4, 0x10(r1)
/* 8039F788 0039C6E8 80 63 00 4C */ lwz r3, 0x4c(r3)
/* 8039F78C 0039C6EC C8 01 00 10 */ lfd f0, 0x10(r1)
/* 8039F790 0039C6F0 EC 23 00 72 */ fmuls f1, f3, f1
/* 8039F794 0039C6F4 EC 00 10 28 */ fsubs f0, f0, f2
/* 8039F798 0039C6F8 EC 01 00 24 */ fdivs f0, f1, f0
/* 8039F79C 0039C6FC FC 00 00 1E */ fctiwz f0, f0
/* 8039F7A0 0039C700 D8 01 00 08 */ stfd f0, 8(r1)
/* 8039F7A4 0039C704 80 81 00 0C */ lwz r4, 0xc(r1)
/* 8039F7A8 0039C708 48 01 3E B5 */ bl hwSetPitch
lbl_8039F7AC:
/* 8039F7AC 0039C70C 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039F7B0 0039C710 38 63 13 F8 */ addi r3, r3, streamInfo@l
/* 8039F7B4 0039C714 7C 63 D8 2E */ lwzx r3, r3, r27
/* 8039F7B8 0039C718 3C 03 00 01 */ addis r0, r3, 1
/* 8039F7BC 0039C71C 28 00 FF FF */ cmplwi r0, 0xffff
/* 8039F7C0 0039C720 41 82 00 0C */ beq lbl_8039F7CC
/* 8039F7C4 0039C724 7F 84 E3 78 */ mr r4, r28
/* 8039F7C8 0039C728 4B FF F9 C5 */ bl sndStreamFrq
lbl_8039F7CC:
/* 8039F7CC 0039C72C 48 01 58 B9 */ bl hwEnableIrq
lbl_8039F7D0:
/* 8039F7D0 0039C730 48 01 58 B5 */ bl hwEnableIrq
lbl_8039F7D4:
/* 8039F7D4 0039C734 48 01 58 B1 */ bl hwEnableIrq
lbl_8039F7D8:
/* 8039F7D8 0039C738 48 01 58 AD */ bl hwEnableIrq
/* 8039F7DC 0039C73C 39 61 00 40 */ addi r11, r1, 0x40
/* 8039F7E0 0039C740 4B FE A2 E9 */ bl _restgpr_27
/* 8039F7E4 0039C744 80 01 00 44 */ lwz r0, 0x44(r1)
/* 8039F7E8 0039C748 7C 08 03 A6 */ mtlr r0
/* 8039F7EC 0039C74C 38 21 00 40 */ addi r1, r1, 0x40
/* 8039F7F0 0039C750 4E 80 00 20 */ blr
.global sndStreamFree
sndStreamFree:
/* 8039F7F4 0039C754 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 8039F7F8 0039C758 7C 08 02 A6 */ mflr r0
/* 8039F7FC 0039C75C 90 01 00 34 */ stw r0, 0x34(r1)
/* 8039F800 0039C760 39 61 00 30 */ addi r11, r1, 0x30
/* 8039F804 0039C764 4B FE A2 71 */ bl _savegpr_25
/* 8039F808 0039C768 7C 79 1B 78 */ mr r25, r3
/* 8039F80C 0039C76C 48 01 58 B1 */ bl hwDisableIrq
/* 8039F810 0039C770 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039F814 0039C774 38 00 00 08 */ li r0, 8
/* 8039F818 0039C778 3B C3 13 F8 */ addi r30, r3, streamInfo@l
/* 8039F81C 0039C77C 3B 40 00 00 */ li r26, 0
/* 8039F820 0039C780 7F C3 F3 78 */ mr r3, r30
/* 8039F824 0039C784 7C 09 03 A6 */ mtctr r0
lbl_8039F828:
/* 8039F828 0039C788 88 03 00 0C */ lbz r0, 0xc(r3)
/* 8039F82C 0039C78C 28 00 00 00 */ cmplwi r0, 0
/* 8039F830 0039C790 41 82 00 14 */ beq lbl_8039F844
/* 8039F834 0039C794 80 03 00 04 */ lwz r0, 4(r3)
/* 8039F838 0039C798 7C 19 00 40 */ cmplw r25, r0
/* 8039F83C 0039C79C 40 82 00 08 */ bne lbl_8039F844
/* 8039F840 0039C7A0 48 00 01 10 */ b lbl_8039F950
lbl_8039F844:
/* 8039F844 0039C7A4 88 03 00 70 */ lbz r0, 0x70(r3)
/* 8039F848 0039C7A8 3B 5A 00 01 */ addi r26, r26, 1
/* 8039F84C 0039C7AC 38 63 00 64 */ addi r3, r3, 0x64
/* 8039F850 0039C7B0 28 00 00 00 */ cmplwi r0, 0
/* 8039F854 0039C7B4 41 82 00 14 */ beq lbl_8039F868
/* 8039F858 0039C7B8 80 03 00 04 */ lwz r0, 4(r3)
/* 8039F85C 0039C7BC 7C 19 00 40 */ cmplw r25, r0
/* 8039F860 0039C7C0 40 82 00 08 */ bne lbl_8039F868
/* 8039F864 0039C7C4 48 00 00 EC */ b lbl_8039F950
lbl_8039F868:
/* 8039F868 0039C7C8 88 03 00 70 */ lbz r0, 0x70(r3)
/* 8039F86C 0039C7CC 3B 5A 00 01 */ addi r26, r26, 1
/* 8039F870 0039C7D0 38 63 00 64 */ addi r3, r3, 0x64
/* 8039F874 0039C7D4 28 00 00 00 */ cmplwi r0, 0
/* 8039F878 0039C7D8 41 82 00 14 */ beq lbl_8039F88C
/* 8039F87C 0039C7DC 80 03 00 04 */ lwz r0, 4(r3)
/* 8039F880 0039C7E0 7C 19 00 40 */ cmplw r25, r0
/* 8039F884 0039C7E4 40 82 00 08 */ bne lbl_8039F88C
/* 8039F888 0039C7E8 48 00 00 C8 */ b lbl_8039F950
lbl_8039F88C:
/* 8039F88C 0039C7EC 88 03 00 70 */ lbz r0, 0x70(r3)
/* 8039F890 0039C7F0 3B 5A 00 01 */ addi r26, r26, 1
/* 8039F894 0039C7F4 38 63 00 64 */ addi r3, r3, 0x64
/* 8039F898 0039C7F8 28 00 00 00 */ cmplwi r0, 0
/* 8039F89C 0039C7FC 41 82 00 14 */ beq lbl_8039F8B0
/* 8039F8A0 0039C800 80 03 00 04 */ lwz r0, 4(r3)
/* 8039F8A4 0039C804 7C 19 00 40 */ cmplw r25, r0
/* 8039F8A8 0039C808 40 82 00 08 */ bne lbl_8039F8B0
/* 8039F8AC 0039C80C 48 00 00 A4 */ b lbl_8039F950
lbl_8039F8B0:
/* 8039F8B0 0039C810 88 03 00 70 */ lbz r0, 0x70(r3)
/* 8039F8B4 0039C814 3B 5A 00 01 */ addi r26, r26, 1
/* 8039F8B8 0039C818 38 63 00 64 */ addi r3, r3, 0x64
/* 8039F8BC 0039C81C 28 00 00 00 */ cmplwi r0, 0
/* 8039F8C0 0039C820 41 82 00 14 */ beq lbl_8039F8D4
/* 8039F8C4 0039C824 80 03 00 04 */ lwz r0, 4(r3)
/* 8039F8C8 0039C828 7C 19 00 40 */ cmplw r25, r0
/* 8039F8CC 0039C82C 40 82 00 08 */ bne lbl_8039F8D4
/* 8039F8D0 0039C830 48 00 00 80 */ b lbl_8039F950
lbl_8039F8D4:
/* 8039F8D4 0039C834 88 03 00 70 */ lbz r0, 0x70(r3)
/* 8039F8D8 0039C838 3B 5A 00 01 */ addi r26, r26, 1
/* 8039F8DC 0039C83C 38 63 00 64 */ addi r3, r3, 0x64
/* 8039F8E0 0039C840 28 00 00 00 */ cmplwi r0, 0
/* 8039F8E4 0039C844 41 82 00 14 */ beq lbl_8039F8F8
/* 8039F8E8 0039C848 80 03 00 04 */ lwz r0, 4(r3)
/* 8039F8EC 0039C84C 7C 19 00 40 */ cmplw r25, r0
/* 8039F8F0 0039C850 40 82 00 08 */ bne lbl_8039F8F8
/* 8039F8F4 0039C854 48 00 00 5C */ b lbl_8039F950
lbl_8039F8F8:
/* 8039F8F8 0039C858 88 03 00 70 */ lbz r0, 0x70(r3)
/* 8039F8FC 0039C85C 3B 5A 00 01 */ addi r26, r26, 1
/* 8039F900 0039C860 38 63 00 64 */ addi r3, r3, 0x64
/* 8039F904 0039C864 28 00 00 00 */ cmplwi r0, 0
/* 8039F908 0039C868 41 82 00 14 */ beq lbl_8039F91C
/* 8039F90C 0039C86C 80 03 00 04 */ lwz r0, 4(r3)
/* 8039F910 0039C870 7C 19 00 40 */ cmplw r25, r0
/* 8039F914 0039C874 40 82 00 08 */ bne lbl_8039F91C
/* 8039F918 0039C878 48 00 00 38 */ b lbl_8039F950
lbl_8039F91C:
/* 8039F91C 0039C87C 88 03 00 70 */ lbz r0, 0x70(r3)
/* 8039F920 0039C880 3B 5A 00 01 */ addi r26, r26, 1
/* 8039F924 0039C884 38 63 00 64 */ addi r3, r3, 0x64
/* 8039F928 0039C888 28 00 00 00 */ cmplwi r0, 0
/* 8039F92C 0039C88C 41 82 00 14 */ beq lbl_8039F940
/* 8039F930 0039C890 80 03 00 04 */ lwz r0, 4(r3)
/* 8039F934 0039C894 7C 19 00 40 */ cmplw r25, r0
/* 8039F938 0039C898 40 82 00 08 */ bne lbl_8039F940
/* 8039F93C 0039C89C 48 00 00 14 */ b lbl_8039F950
lbl_8039F940:
/* 8039F940 0039C8A0 38 63 00 64 */ addi r3, r3, 0x64
/* 8039F944 0039C8A4 3B 5A 00 01 */ addi r26, r26, 1
/* 8039F948 0039C8A8 42 00 FE E0 */ bdnz lbl_8039F828
/* 8039F94C 0039C8AC 3B 40 FF FF */ li r26, -1
lbl_8039F950:
/* 8039F950 0039C8B0 3C 1A 00 01 */ addis r0, r26, 1
/* 8039F954 0039C8B4 28 00 FF FF */ cmplwi r0, 0xffff
/* 8039F958 0039C8B8 41 82 05 54 */ beq lbl_8039FEAC
/* 8039F95C 0039C8BC 7F 23 CB 78 */ mr r3, r25
/* 8039F960 0039C8C0 48 00 0B C1 */ bl sndStreamDeactivate
/* 8039F964 0039C8C4 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039F968 0039C8C8 38 63 13 F8 */ addi r3, r3, streamInfo@l
/* 8039F96C 0039C8CC 1F FA 00 64 */ mulli r31, r26, 0x64
/* 8039F970 0039C8D0 3B A3 00 0E */ addi r29, r3, 0xe
/* 8039F974 0039C8D4 7C 7D F8 AE */ lbzx r3, r29, r31
/* 8039F978 0039C8D8 48 01 43 4D */ bl sub_803b3cc4
/* 8039F97C 0039C8DC 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039F980 0039C8E0 38 63 13 F8 */ addi r3, r3, streamInfo@l
/* 8039F984 0039C8E4 7F 43 F8 2E */ lwzx r26, r3, r31
/* 8039F988 0039C8E8 3C 1A 00 01 */ addis r0, r26, 1
/* 8039F98C 0039C8EC 28 00 FF FF */ cmplwi r0, 0xffff
/* 8039F990 0039C8F0 41 82 05 08 */ beq lbl_8039FE98
/* 8039F994 0039C8F4 48 01 57 29 */ bl hwDisableIrq
/* 8039F998 0039C8F8 38 00 00 08 */ li r0, 8
/* 8039F99C 0039C8FC 7F C3 F3 78 */ mr r3, r30
/* 8039F9A0 0039C900 3B 60 00 00 */ li r27, 0
/* 8039F9A4 0039C904 7C 09 03 A6 */ mtctr r0
lbl_8039F9A8:
/* 8039F9A8 0039C908 88 03 00 0C */ lbz r0, 0xc(r3)
/* 8039F9AC 0039C90C 28 00 00 00 */ cmplwi r0, 0
/* 8039F9B0 0039C910 41 82 00 14 */ beq lbl_8039F9C4
/* 8039F9B4 0039C914 80 03 00 04 */ lwz r0, 4(r3)
/* 8039F9B8 0039C918 7C 1A 00 40 */ cmplw r26, r0
/* 8039F9BC 0039C91C 40 82 00 08 */ bne lbl_8039F9C4
/* 8039F9C0 0039C920 48 00 01 10 */ b lbl_8039FAD0
lbl_8039F9C4:
/* 8039F9C4 0039C924 88 03 00 70 */ lbz r0, 0x70(r3)
/* 8039F9C8 0039C928 3B 7B 00 01 */ addi r27, r27, 1
/* 8039F9CC 0039C92C 38 63 00 64 */ addi r3, r3, 0x64
/* 8039F9D0 0039C930 28 00 00 00 */ cmplwi r0, 0
/* 8039F9D4 0039C934 41 82 00 14 */ beq lbl_8039F9E8
/* 8039F9D8 0039C938 80 03 00 04 */ lwz r0, 4(r3)
/* 8039F9DC 0039C93C 7C 1A 00 40 */ cmplw r26, r0
/* 8039F9E0 0039C940 40 82 00 08 */ bne lbl_8039F9E8
/* 8039F9E4 0039C944 48 00 00 EC */ b lbl_8039FAD0
lbl_8039F9E8:
/* 8039F9E8 0039C948 88 03 00 70 */ lbz r0, 0x70(r3)
/* 8039F9EC 0039C94C 3B 7B 00 01 */ addi r27, r27, 1
/* 8039F9F0 0039C950 38 63 00 64 */ addi r3, r3, 0x64
/* 8039F9F4 0039C954 28 00 00 00 */ cmplwi r0, 0
/* 8039F9F8 0039C958 41 82 00 14 */ beq lbl_8039FA0C
/* 8039F9FC 0039C95C 80 03 00 04 */ lwz r0, 4(r3)
/* 8039FA00 0039C960 7C 1A 00 40 */ cmplw r26, r0
/* 8039FA04 0039C964 40 82 00 08 */ bne lbl_8039FA0C
/* 8039FA08 0039C968 48 00 00 C8 */ b lbl_8039FAD0
lbl_8039FA0C:
/* 8039FA0C 0039C96C 88 03 00 70 */ lbz r0, 0x70(r3)
/* 8039FA10 0039C970 3B 7B 00 01 */ addi r27, r27, 1
/* 8039FA14 0039C974 38 63 00 64 */ addi r3, r3, 0x64
/* 8039FA18 0039C978 28 00 00 00 */ cmplwi r0, 0
/* 8039FA1C 0039C97C 41 82 00 14 */ beq lbl_8039FA30
/* 8039FA20 0039C980 80 03 00 04 */ lwz r0, 4(r3)
/* 8039FA24 0039C984 7C 1A 00 40 */ cmplw r26, r0
/* 8039FA28 0039C988 40 82 00 08 */ bne lbl_8039FA30
/* 8039FA2C 0039C98C 48 00 00 A4 */ b lbl_8039FAD0
lbl_8039FA30:
/* 8039FA30 0039C990 88 03 00 70 */ lbz r0, 0x70(r3)
/* 8039FA34 0039C994 3B 7B 00 01 */ addi r27, r27, 1
/* 8039FA38 0039C998 38 63 00 64 */ addi r3, r3, 0x64
/* 8039FA3C 0039C99C 28 00 00 00 */ cmplwi r0, 0
/* 8039FA40 0039C9A0 41 82 00 14 */ beq lbl_8039FA54
/* 8039FA44 0039C9A4 80 03 00 04 */ lwz r0, 4(r3)
/* 8039FA48 0039C9A8 7C 1A 00 40 */ cmplw r26, r0
/* 8039FA4C 0039C9AC 40 82 00 08 */ bne lbl_8039FA54
/* 8039FA50 0039C9B0 48 00 00 80 */ b lbl_8039FAD0
lbl_8039FA54:
/* 8039FA54 0039C9B4 88 03 00 70 */ lbz r0, 0x70(r3)
/* 8039FA58 0039C9B8 3B 7B 00 01 */ addi r27, r27, 1
/* 8039FA5C 0039C9BC 38 63 00 64 */ addi r3, r3, 0x64
/* 8039FA60 0039C9C0 28 00 00 00 */ cmplwi r0, 0
/* 8039FA64 0039C9C4 41 82 00 14 */ beq lbl_8039FA78
/* 8039FA68 0039C9C8 80 03 00 04 */ lwz r0, 4(r3)
/* 8039FA6C 0039C9CC 7C 1A 00 40 */ cmplw r26, r0
/* 8039FA70 0039C9D0 40 82 00 08 */ bne lbl_8039FA78
/* 8039FA74 0039C9D4 48 00 00 5C */ b lbl_8039FAD0
lbl_8039FA78:
/* 8039FA78 0039C9D8 88 03 00 70 */ lbz r0, 0x70(r3)
/* 8039FA7C 0039C9DC 3B 7B 00 01 */ addi r27, r27, 1
/* 8039FA80 0039C9E0 38 63 00 64 */ addi r3, r3, 0x64
/* 8039FA84 0039C9E4 28 00 00 00 */ cmplwi r0, 0
/* 8039FA88 0039C9E8 41 82 00 14 */ beq lbl_8039FA9C
/* 8039FA8C 0039C9EC 80 03 00 04 */ lwz r0, 4(r3)
/* 8039FA90 0039C9F0 7C 1A 00 40 */ cmplw r26, r0
/* 8039FA94 0039C9F4 40 82 00 08 */ bne lbl_8039FA9C
/* 8039FA98 0039C9F8 48 00 00 38 */ b lbl_8039FAD0
lbl_8039FA9C:
/* 8039FA9C 0039C9FC 88 03 00 70 */ lbz r0, 0x70(r3)
/* 8039FAA0 0039CA00 3B 7B 00 01 */ addi r27, r27, 1
/* 8039FAA4 0039CA04 38 63 00 64 */ addi r3, r3, 0x64
/* 8039FAA8 0039CA08 28 00 00 00 */ cmplwi r0, 0
/* 8039FAAC 0039CA0C 41 82 00 14 */ beq lbl_8039FAC0
/* 8039FAB0 0039CA10 80 03 00 04 */ lwz r0, 4(r3)
/* 8039FAB4 0039CA14 7C 1A 00 40 */ cmplw r26, r0
/* 8039FAB8 0039CA18 40 82 00 08 */ bne lbl_8039FAC0
/* 8039FABC 0039CA1C 48 00 00 14 */ b lbl_8039FAD0
lbl_8039FAC0:
/* 8039FAC0 0039CA20 38 63 00 64 */ addi r3, r3, 0x64
/* 8039FAC4 0039CA24 3B 7B 00 01 */ addi r27, r27, 1
/* 8039FAC8 0039CA28 42 00 FE E0 */ bdnz lbl_8039F9A8
/* 8039FACC 0039CA2C 3B 60 FF FF */ li r27, -1
lbl_8039FAD0:
/* 8039FAD0 0039CA30 3C 1B 00 01 */ addis r0, r27, 1
/* 8039FAD4 0039CA34 28 00 FF FF */ cmplwi r0, 0xffff
/* 8039FAD8 0039CA38 41 82 03 BC */ beq lbl_8039FE94
/* 8039FADC 0039CA3C 7F 43 D3 78 */ mr r3, r26
/* 8039FAE0 0039CA40 48 00 0A 41 */ bl sndStreamDeactivate
/* 8039FAE4 0039CA44 1F 9B 00 64 */ mulli r28, r27, 0x64
/* 8039FAE8 0039CA48 7C 7D E0 AE */ lbzx r3, r29, r28
/* 8039FAEC 0039CA4C 48 01 41 D9 */ bl sub_803b3cc4
/* 8039FAF0 0039CA50 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039FAF4 0039CA54 38 63 13 F8 */ addi r3, r3, streamInfo@l
/* 8039FAF8 0039CA58 7F 43 E0 2E */ lwzx r26, r3, r28
/* 8039FAFC 0039CA5C 3C 1A 00 01 */ addis r0, r26, 1
/* 8039FB00 0039CA60 28 00 FF FF */ cmplwi r0, 0xffff
/* 8039FB04 0039CA64 41 82 03 7C */ beq lbl_8039FE80
/* 8039FB08 0039CA68 48 01 55 B5 */ bl hwDisableIrq
/* 8039FB0C 0039CA6C 38 00 00 08 */ li r0, 8
/* 8039FB10 0039CA70 7F C3 F3 78 */ mr r3, r30
/* 8039FB14 0039CA74 3B 60 00 00 */ li r27, 0
/* 8039FB18 0039CA78 7C 09 03 A6 */ mtctr r0
lbl_8039FB1C:
/* 8039FB1C 0039CA7C 88 03 00 0C */ lbz r0, 0xc(r3)
/* 8039FB20 0039CA80 28 00 00 00 */ cmplwi r0, 0
/* 8039FB24 0039CA84 41 82 00 14 */ beq lbl_8039FB38
/* 8039FB28 0039CA88 80 03 00 04 */ lwz r0, 4(r3)
/* 8039FB2C 0039CA8C 7C 1A 00 40 */ cmplw r26, r0
/* 8039FB30 0039CA90 40 82 00 08 */ bne lbl_8039FB38
/* 8039FB34 0039CA94 48 00 01 10 */ b lbl_8039FC44
lbl_8039FB38:
/* 8039FB38 0039CA98 88 03 00 70 */ lbz r0, 0x70(r3)
/* 8039FB3C 0039CA9C 3B 7B 00 01 */ addi r27, r27, 1
/* 8039FB40 0039CAA0 38 63 00 64 */ addi r3, r3, 0x64
/* 8039FB44 0039CAA4 28 00 00 00 */ cmplwi r0, 0
/* 8039FB48 0039CAA8 41 82 00 14 */ beq lbl_8039FB5C
/* 8039FB4C 0039CAAC 80 03 00 04 */ lwz r0, 4(r3)
/* 8039FB50 0039CAB0 7C 1A 00 40 */ cmplw r26, r0
/* 8039FB54 0039CAB4 40 82 00 08 */ bne lbl_8039FB5C
/* 8039FB58 0039CAB8 48 00 00 EC */ b lbl_8039FC44
lbl_8039FB5C:
/* 8039FB5C 0039CABC 88 03 00 70 */ lbz r0, 0x70(r3)
/* 8039FB60 0039CAC0 3B 7B 00 01 */ addi r27, r27, 1
/* 8039FB64 0039CAC4 38 63 00 64 */ addi r3, r3, 0x64
/* 8039FB68 0039CAC8 28 00 00 00 */ cmplwi r0, 0
/* 8039FB6C 0039CACC 41 82 00 14 */ beq lbl_8039FB80
/* 8039FB70 0039CAD0 80 03 00 04 */ lwz r0, 4(r3)
/* 8039FB74 0039CAD4 7C 1A 00 40 */ cmplw r26, r0
/* 8039FB78 0039CAD8 40 82 00 08 */ bne lbl_8039FB80
/* 8039FB7C 0039CADC 48 00 00 C8 */ b lbl_8039FC44
lbl_8039FB80:
/* 8039FB80 0039CAE0 88 03 00 70 */ lbz r0, 0x70(r3)
/* 8039FB84 0039CAE4 3B 7B 00 01 */ addi r27, r27, 1
/* 8039FB88 0039CAE8 38 63 00 64 */ addi r3, r3, 0x64
/* 8039FB8C 0039CAEC 28 00 00 00 */ cmplwi r0, 0
/* 8039FB90 0039CAF0 41 82 00 14 */ beq lbl_8039FBA4
/* 8039FB94 0039CAF4 80 03 00 04 */ lwz r0, 4(r3)
/* 8039FB98 0039CAF8 7C 1A 00 40 */ cmplw r26, r0
/* 8039FB9C 0039CAFC 40 82 00 08 */ bne lbl_8039FBA4
/* 8039FBA0 0039CB00 48 00 00 A4 */ b lbl_8039FC44
lbl_8039FBA4:
/* 8039FBA4 0039CB04 88 03 00 70 */ lbz r0, 0x70(r3)
/* 8039FBA8 0039CB08 3B 7B 00 01 */ addi r27, r27, 1
/* 8039FBAC 0039CB0C 38 63 00 64 */ addi r3, r3, 0x64
/* 8039FBB0 0039CB10 28 00 00 00 */ cmplwi r0, 0
/* 8039FBB4 0039CB14 41 82 00 14 */ beq lbl_8039FBC8
/* 8039FBB8 0039CB18 80 03 00 04 */ lwz r0, 4(r3)
/* 8039FBBC 0039CB1C 7C 1A 00 40 */ cmplw r26, r0
/* 8039FBC0 0039CB20 40 82 00 08 */ bne lbl_8039FBC8
/* 8039FBC4 0039CB24 48 00 00 80 */ b lbl_8039FC44
lbl_8039FBC8:
/* 8039FBC8 0039CB28 88 03 00 70 */ lbz r0, 0x70(r3)
/* 8039FBCC 0039CB2C 3B 7B 00 01 */ addi r27, r27, 1
/* 8039FBD0 0039CB30 38 63 00 64 */ addi r3, r3, 0x64
/* 8039FBD4 0039CB34 28 00 00 00 */ cmplwi r0, 0
/* 8039FBD8 0039CB38 41 82 00 14 */ beq lbl_8039FBEC
/* 8039FBDC 0039CB3C 80 03 00 04 */ lwz r0, 4(r3)
/* 8039FBE0 0039CB40 7C 1A 00 40 */ cmplw r26, r0
/* 8039FBE4 0039CB44 40 82 00 08 */ bne lbl_8039FBEC
/* 8039FBE8 0039CB48 48 00 00 5C */ b lbl_8039FC44
lbl_8039FBEC:
/* 8039FBEC 0039CB4C 88 03 00 70 */ lbz r0, 0x70(r3)
/* 8039FBF0 0039CB50 3B 7B 00 01 */ addi r27, r27, 1
/* 8039FBF4 0039CB54 38 63 00 64 */ addi r3, r3, 0x64
/* 8039FBF8 0039CB58 28 00 00 00 */ cmplwi r0, 0
/* 8039FBFC 0039CB5C 41 82 00 14 */ beq lbl_8039FC10
/* 8039FC00 0039CB60 80 03 00 04 */ lwz r0, 4(r3)
/* 8039FC04 0039CB64 7C 1A 00 40 */ cmplw r26, r0
/* 8039FC08 0039CB68 40 82 00 08 */ bne lbl_8039FC10
/* 8039FC0C 0039CB6C 48 00 00 38 */ b lbl_8039FC44
lbl_8039FC10:
/* 8039FC10 0039CB70 88 03 00 70 */ lbz r0, 0x70(r3)
/* 8039FC14 0039CB74 3B 7B 00 01 */ addi r27, r27, 1
/* 8039FC18 0039CB78 38 63 00 64 */ addi r3, r3, 0x64
/* 8039FC1C 0039CB7C 28 00 00 00 */ cmplwi r0, 0
/* 8039FC20 0039CB80 41 82 00 14 */ beq lbl_8039FC34
/* 8039FC24 0039CB84 80 03 00 04 */ lwz r0, 4(r3)
/* 8039FC28 0039CB88 7C 1A 00 40 */ cmplw r26, r0
/* 8039FC2C 0039CB8C 40 82 00 08 */ bne lbl_8039FC34
/* 8039FC30 0039CB90 48 00 00 14 */ b lbl_8039FC44
lbl_8039FC34:
/* 8039FC34 0039CB94 38 63 00 64 */ addi r3, r3, 0x64
/* 8039FC38 0039CB98 3B 7B 00 01 */ addi r27, r27, 1
/* 8039FC3C 0039CB9C 42 00 FE E0 */ bdnz lbl_8039FB1C
/* 8039FC40 0039CBA0 3B 60 FF FF */ li r27, -1
lbl_8039FC44:
/* 8039FC44 0039CBA4 3C 1B 00 01 */ addis r0, r27, 1
/* 8039FC48 0039CBA8 28 00 FF FF */ cmplwi r0, 0xffff
/* 8039FC4C 0039CBAC 41 82 02 30 */ beq lbl_8039FE7C
/* 8039FC50 0039CBB0 7F 43 D3 78 */ mr r3, r26
/* 8039FC54 0039CBB4 48 00 08 CD */ bl sndStreamDeactivate
/* 8039FC58 0039CBB8 1F 7B 00 64 */ mulli r27, r27, 0x64
/* 8039FC5C 0039CBBC 7C 7D D8 AE */ lbzx r3, r29, r27
/* 8039FC60 0039CBC0 48 01 40 65 */ bl sub_803b3cc4
/* 8039FC64 0039CBC4 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039FC68 0039CBC8 38 63 13 F8 */ addi r3, r3, streamInfo@l
/* 8039FC6C 0039CBCC 7F 43 D8 2E */ lwzx r26, r3, r27
/* 8039FC70 0039CBD0 3C 1A 00 01 */ addis r0, r26, 1
/* 8039FC74 0039CBD4 28 00 FF FF */ cmplwi r0, 0xffff
/* 8039FC78 0039CBD8 41 82 01 F0 */ beq lbl_8039FE68
/* 8039FC7C 0039CBDC 48 01 54 41 */ bl hwDisableIrq
/* 8039FC80 0039CBE0 38 00 00 08 */ li r0, 8
/* 8039FC84 0039CBE4 3B 20 00 00 */ li r25, 0
/* 8039FC88 0039CBE8 7C 09 03 A6 */ mtctr r0
lbl_8039FC8C:
/* 8039FC8C 0039CBEC 88 1E 00 0C */ lbz r0, 0xc(r30)
/* 8039FC90 0039CBF0 28 00 00 00 */ cmplwi r0, 0
/* 8039FC94 0039CBF4 41 82 00 14 */ beq lbl_8039FCA8
/* 8039FC98 0039CBF8 80 1E 00 04 */ lwz r0, 4(r30)
/* 8039FC9C 0039CBFC 7C 1A 00 40 */ cmplw r26, r0
/* 8039FCA0 0039CC00 40 82 00 08 */ bne lbl_8039FCA8
/* 8039FCA4 0039CC04 48 00 01 10 */ b lbl_8039FDB4
lbl_8039FCA8:
/* 8039FCA8 0039CC08 88 1E 00 70 */ lbz r0, 0x70(r30)
/* 8039FCAC 0039CC0C 3B 39 00 01 */ addi r25, r25, 1
/* 8039FCB0 0039CC10 3B DE 00 64 */ addi r30, r30, 0x64
/* 8039FCB4 0039CC14 28 00 00 00 */ cmplwi r0, 0
/* 8039FCB8 0039CC18 41 82 00 14 */ beq lbl_8039FCCC
/* 8039FCBC 0039CC1C 80 1E 00 04 */ lwz r0, 4(r30)
/* 8039FCC0 0039CC20 7C 1A 00 40 */ cmplw r26, r0
/* 8039FCC4 0039CC24 40 82 00 08 */ bne lbl_8039FCCC
/* 8039FCC8 0039CC28 48 00 00 EC */ b lbl_8039FDB4
lbl_8039FCCC:
/* 8039FCCC 0039CC2C 88 1E 00 70 */ lbz r0, 0x70(r30)
/* 8039FCD0 0039CC30 3B 39 00 01 */ addi r25, r25, 1
/* 8039FCD4 0039CC34 3B DE 00 64 */ addi r30, r30, 0x64
/* 8039FCD8 0039CC38 28 00 00 00 */ cmplwi r0, 0
/* 8039FCDC 0039CC3C 41 82 00 14 */ beq lbl_8039FCF0
/* 8039FCE0 0039CC40 80 1E 00 04 */ lwz r0, 4(r30)
/* 8039FCE4 0039CC44 7C 1A 00 40 */ cmplw r26, r0
/* 8039FCE8 0039CC48 40 82 00 08 */ bne lbl_8039FCF0
/* 8039FCEC 0039CC4C 48 00 00 C8 */ b lbl_8039FDB4
lbl_8039FCF0:
/* 8039FCF0 0039CC50 88 1E 00 70 */ lbz r0, 0x70(r30)
/* 8039FCF4 0039CC54 3B 39 00 01 */ addi r25, r25, 1
/* 8039FCF8 0039CC58 3B DE 00 64 */ addi r30, r30, 0x64
/* 8039FCFC 0039CC5C 28 00 00 00 */ cmplwi r0, 0
/* 8039FD00 0039CC60 41 82 00 14 */ beq lbl_8039FD14
/* 8039FD04 0039CC64 80 1E 00 04 */ lwz r0, 4(r30)
/* 8039FD08 0039CC68 7C 1A 00 40 */ cmplw r26, r0
/* 8039FD0C 0039CC6C 40 82 00 08 */ bne lbl_8039FD14
/* 8039FD10 0039CC70 48 00 00 A4 */ b lbl_8039FDB4
lbl_8039FD14:
/* 8039FD14 0039CC74 88 1E 00 70 */ lbz r0, 0x70(r30)
/* 8039FD18 0039CC78 3B 39 00 01 */ addi r25, r25, 1
/* 8039FD1C 0039CC7C 3B DE 00 64 */ addi r30, r30, 0x64
/* 8039FD20 0039CC80 28 00 00 00 */ cmplwi r0, 0
/* 8039FD24 0039CC84 41 82 00 14 */ beq lbl_8039FD38
/* 8039FD28 0039CC88 80 1E 00 04 */ lwz r0, 4(r30)
/* 8039FD2C 0039CC8C 7C 1A 00 40 */ cmplw r26, r0
/* 8039FD30 0039CC90 40 82 00 08 */ bne lbl_8039FD38
/* 8039FD34 0039CC94 48 00 00 80 */ b lbl_8039FDB4
lbl_8039FD38:
/* 8039FD38 0039CC98 88 1E 00 70 */ lbz r0, 0x70(r30)
/* 8039FD3C 0039CC9C 3B 39 00 01 */ addi r25, r25, 1
/* 8039FD40 0039CCA0 3B DE 00 64 */ addi r30, r30, 0x64
/* 8039FD44 0039CCA4 28 00 00 00 */ cmplwi r0, 0
/* 8039FD48 0039CCA8 41 82 00 14 */ beq lbl_8039FD5C
/* 8039FD4C 0039CCAC 80 1E 00 04 */ lwz r0, 4(r30)
/* 8039FD50 0039CCB0 7C 1A 00 40 */ cmplw r26, r0
/* 8039FD54 0039CCB4 40 82 00 08 */ bne lbl_8039FD5C
/* 8039FD58 0039CCB8 48 00 00 5C */ b lbl_8039FDB4
lbl_8039FD5C:
/* 8039FD5C 0039CCBC 88 1E 00 70 */ lbz r0, 0x70(r30)
/* 8039FD60 0039CCC0 3B 39 00 01 */ addi r25, r25, 1
/* 8039FD64 0039CCC4 3B DE 00 64 */ addi r30, r30, 0x64
/* 8039FD68 0039CCC8 28 00 00 00 */ cmplwi r0, 0
/* 8039FD6C 0039CCCC 41 82 00 14 */ beq lbl_8039FD80
/* 8039FD70 0039CCD0 80 1E 00 04 */ lwz r0, 4(r30)
/* 8039FD74 0039CCD4 7C 1A 00 40 */ cmplw r26, r0
/* 8039FD78 0039CCD8 40 82 00 08 */ bne lbl_8039FD80
/* 8039FD7C 0039CCDC 48 00 00 38 */ b lbl_8039FDB4
lbl_8039FD80:
/* 8039FD80 0039CCE0 88 1E 00 70 */ lbz r0, 0x70(r30)
/* 8039FD84 0039CCE4 3B 39 00 01 */ addi r25, r25, 1
/* 8039FD88 0039CCE8 3B DE 00 64 */ addi r30, r30, 0x64
/* 8039FD8C 0039CCEC 28 00 00 00 */ cmplwi r0, 0
/* 8039FD90 0039CCF0 41 82 00 14 */ beq lbl_8039FDA4
/* 8039FD94 0039CCF4 80 1E 00 04 */ lwz r0, 4(r30)
/* 8039FD98 0039CCF8 7C 1A 00 40 */ cmplw r26, r0
/* 8039FD9C 0039CCFC 40 82 00 08 */ bne lbl_8039FDA4
/* 8039FDA0 0039CD00 48 00 00 14 */ b lbl_8039FDB4
lbl_8039FDA4:
/* 8039FDA4 0039CD04 3B DE 00 64 */ addi r30, r30, 0x64
/* 8039FDA8 0039CD08 3B 39 00 01 */ addi r25, r25, 1
/* 8039FDAC 0039CD0C 42 00 FE E0 */ bdnz lbl_8039FC8C
/* 8039FDB0 0039CD10 3B 20 FF FF */ li r25, -1
lbl_8039FDB4:
/* 8039FDB4 0039CD14 3C 19 00 01 */ addis r0, r25, 1
/* 8039FDB8 0039CD18 28 00 FF FF */ cmplwi r0, 0xffff
/* 8039FDBC 0039CD1C 41 82 00 A8 */ beq lbl_8039FE64
/* 8039FDC0 0039CD20 7F 43 D3 78 */ mr r3, r26
/* 8039FDC4 0039CD24 48 00 07 5D */ bl sndStreamDeactivate
/* 8039FDC8 0039CD28 1F D9 00 64 */ mulli r30, r25, 0x64
/* 8039FDCC 0039CD2C 7C 7D F0 AE */ lbzx r3, r29, r30
/* 8039FDD0 0039CD30 48 01 3E F5 */ bl sub_803b3cc4
/* 8039FDD4 0039CD34 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039FDD8 0039CD38 38 63 13 F8 */ addi r3, r3, streamInfo@l
/* 8039FDDC 0039CD3C 7F 23 F0 2E */ lwzx r25, r3, r30
/* 8039FDE0 0039CD40 3C 19 00 01 */ addis r0, r25, 1
/* 8039FDE4 0039CD44 28 00 FF FF */ cmplwi r0, 0xffff
/* 8039FDE8 0039CD48 41 82 00 68 */ beq lbl_8039FE50
/* 8039FDEC 0039CD4C 48 01 52 D1 */ bl hwDisableIrq
/* 8039FDF0 0039CD50 7F 23 CB 78 */ mr r3, r25
/* 8039FDF4 0039CD54 4B FF D4 ED */ bl GetPrivateIndex
/* 8039FDF8 0039CD58 7C 7A 1B 78 */ mr r26, r3
/* 8039FDFC 0039CD5C 3C 1A 00 01 */ addis r0, r26, 1
/* 8039FE00 0039CD60 28 00 FF FF */ cmplwi r0, 0xffff
/* 8039FE04 0039CD64 41 82 00 48 */ beq lbl_8039FE4C
/* 8039FE08 0039CD68 7F 23 CB 78 */ mr r3, r25
/* 8039FE0C 0039CD6C 48 00 07 15 */ bl sndStreamDeactivate
/* 8039FE10 0039CD70 1F 3A 00 64 */ mulli r25, r26, 0x64
/* 8039FE14 0039CD74 7C 7D C8 AE */ lbzx r3, r29, r25
/* 8039FE18 0039CD78 48 01 3E AD */ bl sub_803b3cc4
/* 8039FE1C 0039CD7C 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039FE20 0039CD80 38 63 13 F8 */ addi r3, r3, streamInfo@l
/* 8039FE24 0039CD84 7C 63 C8 2E */ lwzx r3, r3, r25
/* 8039FE28 0039CD88 3C 03 00 01 */ addis r0, r3, 1
/* 8039FE2C 0039CD8C 28 00 FF FF */ cmplwi r0, 0xffff
/* 8039FE30 0039CD90 41 82 00 08 */ beq lbl_8039FE38
/* 8039FE34 0039CD94 4B FF F9 C1 */ bl sndStreamFree
lbl_8039FE38:
/* 8039FE38 0039CD98 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039FE3C 0039CD9C 38 80 00 00 */ li r4, 0
/* 8039FE40 0039CDA0 38 03 13 F8 */ addi r0, r3, streamInfo@l
/* 8039FE44 0039CDA4 7C 60 CA 14 */ add r3, r0, r25
/* 8039FE48 0039CDA8 98 83 00 0C */ stb r4, 0xc(r3)
lbl_8039FE4C:
/* 8039FE4C 0039CDAC 48 01 52 39 */ bl hwEnableIrq
lbl_8039FE50:
/* 8039FE50 0039CDB0 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039FE54 0039CDB4 38 80 00 00 */ li r4, 0
/* 8039FE58 0039CDB8 38 03 13 F8 */ addi r0, r3, streamInfo@l
/* 8039FE5C 0039CDBC 7C 60 F2 14 */ add r3, r0, r30
/* 8039FE60 0039CDC0 98 83 00 0C */ stb r4, 0xc(r3)
lbl_8039FE64:
/* 8039FE64 0039CDC4 48 01 52 21 */ bl hwEnableIrq
lbl_8039FE68:
/* 8039FE68 0039CDC8 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039FE6C 0039CDCC 38 80 00 00 */ li r4, 0
/* 8039FE70 0039CDD0 38 03 13 F8 */ addi r0, r3, streamInfo@l
/* 8039FE74 0039CDD4 7C 60 DA 14 */ add r3, r0, r27
/* 8039FE78 0039CDD8 98 83 00 0C */ stb r4, 0xc(r3)
lbl_8039FE7C:
/* 8039FE7C 0039CDDC 48 01 52 09 */ bl hwEnableIrq
lbl_8039FE80:
/* 8039FE80 0039CDE0 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039FE84 0039CDE4 38 80 00 00 */ li r4, 0
/* 8039FE88 0039CDE8 38 03 13 F8 */ addi r0, r3, streamInfo@l
/* 8039FE8C 0039CDEC 7C 60 E2 14 */ add r3, r0, r28
/* 8039FE90 0039CDF0 98 83 00 0C */ stb r4, 0xc(r3)
lbl_8039FE94:
/* 8039FE94 0039CDF4 48 01 51 F1 */ bl hwEnableIrq
lbl_8039FE98:
/* 8039FE98 0039CDF8 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039FE9C 0039CDFC 38 80 00 00 */ li r4, 0
/* 8039FEA0 0039CE00 38 03 13 F8 */ addi r0, r3, streamInfo@l
/* 8039FEA4 0039CE04 7C 60 FA 14 */ add r3, r0, r31
/* 8039FEA8 0039CE08 98 83 00 0C */ stb r4, 0xc(r3)
lbl_8039FEAC:
/* 8039FEAC 0039CE0C 48 01 51 D9 */ bl hwEnableIrq
/* 8039FEB0 0039CE10 39 61 00 30 */ addi r11, r1, 0x30
/* 8039FEB4 0039CE14 4B FE 9C 0D */ bl _restgpr_25
/* 8039FEB8 0039CE18 80 01 00 34 */ lwz r0, 0x34(r1)
/* 8039FEBC 0039CE1C 7C 08 03 A6 */ mtlr r0
/* 8039FEC0 0039CE20 38 21 00 30 */ addi r1, r1, 0x30
/* 8039FEC4 0039CE24 4E 80 00 20 */ blr
.global sndStreamActivate
sndStreamActivate:
/* 8039FEC8 0039CE28 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 8039FECC 0039CE2C 7C 08 02 A6 */ mflr r0
/* 8039FED0 0039CE30 90 01 00 24 */ stw r0, 0x24(r1)
/* 8039FED4 0039CE34 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 8039FED8 0039CE38 93 C1 00 18 */ stw r30, 0x18(r1)
/* 8039FEDC 0039CE3C 93 A1 00 14 */ stw r29, 0x14(r1)
/* 8039FEE0 0039CE40 7C 7D 1B 78 */ mr r29, r3
/* 8039FEE4 0039CE44 93 81 00 10 */ stw r28, 0x10(r1)
/* 8039FEE8 0039CE48 3B 80 00 00 */ li r28, 0
/* 8039FEEC 0039CE4C 48 01 51 D1 */ bl hwDisableIrq
/* 8039FEF0 0039CE50 3C 60 80 55 */ lis r3, streamInfo@ha
/* 8039FEF4 0039CE54 38 00 00 08 */ li r0, 8
/* 8039FEF8 0039CE58 3B C3 13 F8 */ addi r30, r3, streamInfo@l
/* 8039FEFC 0039CE5C 38 80 00 00 */ li r4, 0
/* 8039FF00 0039CE60 7F C3 F3 78 */ mr r3, r30
/* 8039FF04 0039CE64 7C 09 03 A6 */ mtctr r0
lbl_8039FF08:
/* 8039FF08 0039CE68 88 03 00 0C */ lbz r0, 0xc(r3)
/* 8039FF0C 0039CE6C 28 00 00 00 */ cmplwi r0, 0
/* 8039FF10 0039CE70 41 82 00 14 */ beq lbl_8039FF24
/* 8039FF14 0039CE74 80 03 00 04 */ lwz r0, 4(r3)
/* 8039FF18 0039CE78 7C 1D 00 40 */ cmplw r29, r0
/* 8039FF1C 0039CE7C 40 82 00 08 */ bne lbl_8039FF24
/* 8039FF20 0039CE80 48 00 01 10 */ b lbl_803A0030
lbl_8039FF24:
/* 8039FF24 0039CE84 88 03 00 70 */ lbz r0, 0x70(r3)
/* 8039FF28 0039CE88 38 84 00 01 */ addi r4, r4, 1
/* 8039FF2C 0039CE8C 38 63 00 64 */ addi r3, r3, 0x64
/* 8039FF30 0039CE90 28 00 00 00 */ cmplwi r0, 0
/* 8039FF34 0039CE94 41 82 00 14 */ beq lbl_8039FF48
/* 8039FF38 0039CE98 80 03 00 04 */ lwz r0, 4(r3)
/* 8039FF3C 0039CE9C 7C 1D 00 40 */ cmplw r29, r0
/* 8039FF40 0039CEA0 40 82 00 08 */ bne lbl_8039FF48
/* 8039FF44 0039CEA4 48 00 00 EC */ b lbl_803A0030
lbl_8039FF48:
/* 8039FF48 0039CEA8 88 03 00 70 */ lbz r0, 0x70(r3)
/* 8039FF4C 0039CEAC 38 84 00 01 */ addi r4, r4, 1
/* 8039FF50 0039CEB0 38 63 00 64 */ addi r3, r3, 0x64
/* 8039FF54 0039CEB4 28 00 00 00 */ cmplwi r0, 0
/* 8039FF58 0039CEB8 41 82 00 14 */ beq lbl_8039FF6C
/* 8039FF5C 0039CEBC 80 03 00 04 */ lwz r0, 4(r3)
/* 8039FF60 0039CEC0 7C 1D 00 40 */ cmplw r29, r0
/* 8039FF64 0039CEC4 40 82 00 08 */ bne lbl_8039FF6C
/* 8039FF68 0039CEC8 48 00 00 C8 */ b lbl_803A0030
lbl_8039FF6C:
/* 8039FF6C 0039CECC 88 03 00 70 */ lbz r0, 0x70(r3)
/* 8039FF70 0039CED0 38 84 00 01 */ addi r4, r4, 1
/* 8039FF74 0039CED4 38 63 00 64 */ addi r3, r3, 0x64
/* 8039FF78 0039CED8 28 00 00 00 */ cmplwi r0, 0
/* 8039FF7C 0039CEDC 41 82 00 14 */ beq lbl_8039FF90
/* 8039FF80 0039CEE0 80 03 00 04 */ lwz r0, 4(r3)
/* 8039FF84 0039CEE4 7C 1D 00 40 */ cmplw r29, r0
/* 8039FF88 0039CEE8 40 82 00 08 */ bne lbl_8039FF90
/* 8039FF8C 0039CEEC 48 00 00 A4 */ b lbl_803A0030
lbl_8039FF90:
/* 8039FF90 0039CEF0 88 03 00 70 */ lbz r0, 0x70(r3)
/* 8039FF94 0039CEF4 38 84 00 01 */ addi r4, r4, 1
/* 8039FF98 0039CEF8 38 63 00 64 */ addi r3, r3, 0x64
/* 8039FF9C 0039CEFC 28 00 00 00 */ cmplwi r0, 0
/* 8039FFA0 0039CF00 41 82 00 14 */ beq lbl_8039FFB4
/* 8039FFA4 0039CF04 80 03 00 04 */ lwz r0, 4(r3)
/* 8039FFA8 0039CF08 7C 1D 00 40 */ cmplw r29, r0
/* 8039FFAC 0039CF0C 40 82 00 08 */ bne lbl_8039FFB4
/* 8039FFB0 0039CF10 48 00 00 80 */ b lbl_803A0030
lbl_8039FFB4:
/* 8039FFB4 0039CF14 88 03 00 70 */ lbz r0, 0x70(r3)
/* 8039FFB8 0039CF18 38 84 00 01 */ addi r4, r4, 1
/* 8039FFBC 0039CF1C 38 63 00 64 */ addi r3, r3, 0x64
/* 8039FFC0 0039CF20 28 00 00 00 */ cmplwi r0, 0
/* 8039FFC4 0039CF24 41 82 00 14 */ beq lbl_8039FFD8
/* 8039FFC8 0039CF28 80 03 00 04 */ lwz r0, 4(r3)
/* 8039FFCC 0039CF2C 7C 1D 00 40 */ cmplw r29, r0
/* 8039FFD0 0039CF30 40 82 00 08 */ bne lbl_8039FFD8
/* 8039FFD4 0039CF34 48 00 00 5C */ b lbl_803A0030
lbl_8039FFD8:
/* 8039FFD8 0039CF38 88 03 00 70 */ lbz r0, 0x70(r3)
/* 8039FFDC 0039CF3C 38 84 00 01 */ addi r4, r4, 1
/* 8039FFE0 0039CF40 38 63 00 64 */ addi r3, r3, 0x64
/* 8039FFE4 0039CF44 28 00 00 00 */ cmplwi r0, 0
/* 8039FFE8 0039CF48 41 82 00 14 */ beq lbl_8039FFFC
/* 8039FFEC 0039CF4C 80 03 00 04 */ lwz r0, 4(r3)
/* 8039FFF0 0039CF50 7C 1D 00 40 */ cmplw r29, r0
/* 8039FFF4 0039CF54 40 82 00 08 */ bne lbl_8039FFFC
/* 8039FFF8 0039CF58 48 00 00 38 */ b lbl_803A0030
lbl_8039FFFC:
/* 8039FFFC 0039CF5C 88 03 00 70 */ lbz r0, 0x70(r3)
/* 803A0000 0039CF60 38 84 00 01 */ addi r4, r4, 1
/* 803A0004 0039CF64 38 63 00 64 */ addi r3, r3, 0x64
/* 803A0008 0039CF68 28 00 00 00 */ cmplwi r0, 0
/* 803A000C 0039CF6C 41 82 00 14 */ beq lbl_803A0020
/* 803A0010 0039CF70 80 03 00 04 */ lwz r0, 4(r3)
/* 803A0014 0039CF74 7C 1D 00 40 */ cmplw r29, r0
/* 803A0018 0039CF78 40 82 00 08 */ bne lbl_803A0020
/* 803A001C 0039CF7C 48 00 00 14 */ b lbl_803A0030
lbl_803A0020:
/* 803A0020 0039CF80 38 63 00 64 */ addi r3, r3, 0x64
/* 803A0024 0039CF84 38 84 00 01 */ addi r4, r4, 1
/* 803A0028 0039CF88 42 00 FE E0 */ bdnz lbl_8039FF08
/* 803A002C 0039CF8C 38 80 FF FF */ li r4, -1
lbl_803A0030:
/* 803A0030 0039CF90 3C 04 00 01 */ addis r0, r4, 1
/* 803A0034 0039CF94 28 00 FF FF */ cmplwi r0, 0xffff
/* 803A0038 0039CF98 41 82 04 C0 */ beq lbl_803A04F8
/* 803A003C 0039CF9C 3C 60 80 55 */ lis r3, streamInfo@ha
/* 803A0040 0039CFA0 38 63 13 F8 */ addi r3, r3, streamInfo@l
/* 803A0044 0039CFA4 1F 84 00 64 */ mulli r28, r4, 0x64
/* 803A0048 0039CFA8 3B A3 00 0C */ addi r29, r3, 0xc
/* 803A004C 0039CFAC 7C 1D E0 AE */ lbzx r0, r29, r28
/* 803A0050 0039CFB0 28 00 00 03 */ cmplwi r0, 3
/* 803A0054 0039CFB4 40 82 00 48 */ bne lbl_803A009C
/* 803A0058 0039CFB8 7C 63 E2 14 */ add r3, r3, r28
/* 803A005C 0039CFBC 88 63 00 58 */ lbz r3, 0x58(r3)
/* 803A0060 0039CFC0 48 00 86 A9 */ bl voiceBlock
/* 803A0064 0039CFC4 3C 80 80 55 */ lis r4, streamInfo@ha
/* 803A0068 0039CFC8 3C 03 00 01 */ addis r0, r3, 1
/* 803A006C 0039CFCC 38 84 13 F8 */ addi r4, r4, streamInfo@l
/* 803A0070 0039CFD0 7C 84 E2 14 */ add r4, r4, r28
/* 803A0074 0039CFD4 28 00 FF FF */ cmplwi r0, 0xffff
/* 803A0078 0039CFD8 90 64 00 4C */ stw r3, 0x4c(r4)
/* 803A007C 0039CFDC 40 82 00 10 */ bne lbl_803A008C
/* 803A0080 0039CFE0 48 01 50 05 */ bl hwEnableIrq
/* 803A0084 0039CFE4 38 60 00 00 */ li r3, 0
/* 803A0088 0039CFE8 48 00 04 78 */ b lbl_803A0500
lbl_803A008C:
/* 803A008C 0039CFEC 38 60 00 00 */ li r3, 0
/* 803A0090 0039CFF0 38 00 00 01 */ li r0, 1
/* 803A0094 0039CFF4 90 64 00 20 */ stw r3, 0x20(r4)
/* 803A0098 0039CFF8 7C 1D E1 AE */ stbx r0, r29, r28
lbl_803A009C:
/* 803A009C 0039CFFC 3C 60 80 55 */ lis r3, streamInfo@ha
/* 803A00A0 0039D000 38 63 13 F8 */ addi r3, r3, streamInfo@l
/* 803A00A4 0039D004 7F 83 E0 2E */ lwzx r28, r3, r28
/* 803A00A8 0039D008 3C 1C 00 01 */ addis r0, r28, 1
/* 803A00AC 0039D00C 28 00 FF FF */ cmplwi r0, 0xffff
/* 803A00B0 0039D010 41 82 04 44 */ beq lbl_803A04F4
/* 803A00B4 0039D014 3B E0 00 00 */ li r31, 0
/* 803A00B8 0039D018 48 01 50 05 */ bl hwDisableIrq
/* 803A00BC 0039D01C 38 00 00 08 */ li r0, 8
/* 803A00C0 0039D020 7F C4 F3 78 */ mr r4, r30
/* 803A00C4 0039D024 38 60 00 00 */ li r3, 0
/* 803A00C8 0039D028 7C 09 03 A6 */ mtctr r0
lbl_803A00CC:
/* 803A00CC 0039D02C 88 04 00 0C */ lbz r0, 0xc(r4)
/* 803A00D0 0039D030 28 00 00 00 */ cmplwi r0, 0
/* 803A00D4 0039D034 41 82 00 14 */ beq lbl_803A00E8
/* 803A00D8 0039D038 80 04 00 04 */ lwz r0, 4(r4)
/* 803A00DC 0039D03C 7C 1C 00 40 */ cmplw r28, r0
/* 803A00E0 0039D040 40 82 00 08 */ bne lbl_803A00E8
/* 803A00E4 0039D044 48 00 01 10 */ b lbl_803A01F4
lbl_803A00E8:
/* 803A00E8 0039D048 88 04 00 70 */ lbz r0, 0x70(r4)
/* 803A00EC 0039D04C 38 63 00 01 */ addi r3, r3, 1
/* 803A00F0 0039D050 38 84 00 64 */ addi r4, r4, 0x64
/* 803A00F4 0039D054 28 00 00 00 */ cmplwi r0, 0
/* 803A00F8 0039D058 41 82 00 14 */ beq lbl_803A010C
/* 803A00FC 0039D05C 80 04 00 04 */ lwz r0, 4(r4)
/* 803A0100 0039D060 7C 1C 00 40 */ cmplw r28, r0
/* 803A0104 0039D064 40 82 00 08 */ bne lbl_803A010C
/* 803A0108 0039D068 48 00 00 EC */ b lbl_803A01F4
lbl_803A010C:
/* 803A010C 0039D06C 88 04 00 70 */ lbz r0, 0x70(r4)
/* 803A0110 0039D070 38 63 00 01 */ addi r3, r3, 1
/* 803A0114 0039D074 38 84 00 64 */ addi r4, r4, 0x64
/* 803A0118 0039D078 28 00 00 00 */ cmplwi r0, 0
/* 803A011C 0039D07C 41 82 00 14 */ beq lbl_803A0130
/* 803A0120 0039D080 80 04 00 04 */ lwz r0, 4(r4)
/* 803A0124 0039D084 7C 1C 00 40 */ cmplw r28, r0
/* 803A0128 0039D088 40 82 00 08 */ bne lbl_803A0130
/* 803A012C 0039D08C 48 00 00 C8 */ b lbl_803A01F4
lbl_803A0130:
/* 803A0130 0039D090 88 04 00 70 */ lbz r0, 0x70(r4)
/* 803A0134 0039D094 38 63 00 01 */ addi r3, r3, 1
/* 803A0138 0039D098 38 84 00 64 */ addi r4, r4, 0x64
/* 803A013C 0039D09C 28 00 00 00 */ cmplwi r0, 0
/* 803A0140 0039D0A0 41 82 00 14 */ beq lbl_803A0154
/* 803A0144 0039D0A4 80 04 00 04 */ lwz r0, 4(r4)
/* 803A0148 0039D0A8 7C 1C 00 40 */ cmplw r28, r0
/* 803A014C 0039D0AC 40 82 00 08 */ bne lbl_803A0154
/* 803A0150 0039D0B0 48 00 00 A4 */ b lbl_803A01F4
lbl_803A0154:
/* 803A0154 0039D0B4 88 04 00 70 */ lbz r0, 0x70(r4)
/* 803A0158 0039D0B8 38 63 00 01 */ addi r3, r3, 1
/* 803A015C 0039D0BC 38 84 00 64 */ addi r4, r4, 0x64
/* 803A0160 0039D0C0 28 00 00 00 */ cmplwi r0, 0
/* 803A0164 0039D0C4 41 82 00 14 */ beq lbl_803A0178
/* 803A0168 0039D0C8 80 04 00 04 */ lwz r0, 4(r4)
/* 803A016C 0039D0CC 7C 1C 00 40 */ cmplw r28, r0
/* 803A0170 0039D0D0 40 82 00 08 */ bne lbl_803A0178
/* 803A0174 0039D0D4 48 00 00 80 */ b lbl_803A01F4
lbl_803A0178:
/* 803A0178 0039D0D8 88 04 00 70 */ lbz r0, 0x70(r4)
/* 803A017C 0039D0DC 38 63 00 01 */ addi r3, r3, 1
/* 803A0180 0039D0E0 38 84 00 64 */ addi r4, r4, 0x64
/* 803A0184 0039D0E4 28 00 00 00 */ cmplwi r0, 0
/* 803A0188 0039D0E8 41 82 00 14 */ beq lbl_803A019C
/* 803A018C 0039D0EC 80 04 00 04 */ lwz r0, 4(r4)
/* 803A0190 0039D0F0 7C 1C 00 40 */ cmplw r28, r0
/* 803A0194 0039D0F4 40 82 00 08 */ bne lbl_803A019C
/* 803A0198 0039D0F8 48 00 00 5C */ b lbl_803A01F4
lbl_803A019C:
/* 803A019C 0039D0FC 88 04 00 70 */ lbz r0, 0x70(r4)
/* 803A01A0 0039D100 38 63 00 01 */ addi r3, r3, 1
/* 803A01A4 0039D104 38 84 00 64 */ addi r4, r4, 0x64
/* 803A01A8 0039D108 28 00 00 00 */ cmplwi r0, 0
/* 803A01AC 0039D10C 41 82 00 14 */ beq lbl_803A01C0
/* 803A01B0 0039D110 80 04 00 04 */ lwz r0, 4(r4)
/* 803A01B4 0039D114 7C 1C 00 40 */ cmplw r28, r0
/* 803A01B8 0039D118 40 82 00 08 */ bne lbl_803A01C0
/* 803A01BC 0039D11C 48 00 00 38 */ b lbl_803A01F4
lbl_803A01C0:
/* 803A01C0 0039D120 88 04 00 70 */ lbz r0, 0x70(r4)
/* 803A01C4 0039D124 38 63 00 01 */ addi r3, r3, 1
/* 803A01C8 0039D128 38 84 00 64 */ addi r4, r4, 0x64
/* 803A01CC 0039D12C 28 00 00 00 */ cmplwi r0, 0
/* 803A01D0 0039D130 41 82 00 14 */ beq lbl_803A01E4
/* 803A01D4 0039D134 80 04 00 04 */ lwz r0, 4(r4)
/* 803A01D8 0039D138 7C 1C 00 40 */ cmplw r28, r0
/* 803A01DC 0039D13C 40 82 00 08 */ bne lbl_803A01E4
/* 803A01E0 0039D140 48 00 00 14 */ b lbl_803A01F4
lbl_803A01E4:
/* 803A01E4 0039D144 38 84 00 64 */ addi r4, r4, 0x64
/* 803A01E8 0039D148 38 63 00 01 */ addi r3, r3, 1
/* 803A01EC 0039D14C 42 00 FE E0 */ bdnz lbl_803A00CC
/* 803A01F0 0039D150 38 60 FF FF */ li r3, -1
lbl_803A01F4:
/* 803A01F4 0039D154 3C 03 00 01 */ addis r0, r3, 1
/* 803A01F8 0039D158 28 00 FF FF */ cmplwi r0, 0xffff
/* 803A01FC 0039D15C 41 82 02 EC */ beq lbl_803A04E8
/* 803A0200 0039D160 1F 83 00 64 */ mulli r28, r3, 0x64
/* 803A0204 0039D164 7C 1D E0 AE */ lbzx r0, r29, r28
/* 803A0208 0039D168 28 00 00 03 */ cmplwi r0, 3
/* 803A020C 0039D16C 40 82 00 50 */ bne lbl_803A025C
/* 803A0210 0039D170 3C 60 80 55 */ lis r3, streamInfo@ha
/* 803A0214 0039D174 38 03 13 F8 */ addi r0, r3, streamInfo@l
/* 803A0218 0039D178 7C 60 E2 14 */ add r3, r0, r28
/* 803A021C 0039D17C 88 63 00 58 */ lbz r3, 0x58(r3)
/* 803A0220 0039D180 48 00 84 E9 */ bl voiceBlock
/* 803A0224 0039D184 3C 80 80 55 */ lis r4, streamInfo@ha
/* 803A0228 0039D188 3C 03 00 01 */ addis r0, r3, 1
/* 803A022C 0039D18C 38 84 13 F8 */ addi r4, r4, streamInfo@l
/* 803A0230 0039D190 7C 84 E2 14 */ add r4, r4, r28
/* 803A0234 0039D194 28 00 FF FF */ cmplwi r0, 0xffff
/* 803A0238 0039D198 90 64 00 4C */ stw r3, 0x4c(r4)
/* 803A023C 0039D19C 40 82 00 10 */ bne lbl_803A024C
/* 803A0240 0039D1A0 48 01 4E 45 */ bl hwEnableIrq
/* 803A0244 0039D1A4 3B E0 00 00 */ li r31, 0
/* 803A0248 0039D1A8 48 00 02 A4 */ b lbl_803A04EC
lbl_803A024C:
/* 803A024C 0039D1AC 38 60 00 00 */ li r3, 0
/* 803A0250 0039D1B0 38 00 00 01 */ li r0, 1
/* 803A0254 0039D1B4 90 64 00 20 */ stw r3, 0x20(r4)
/* 803A0258 0039D1B8 7C 1D E1 AE */ stbx r0, r29, r28
lbl_803A025C:
/* 803A025C 0039D1BC 3C 60 80 55 */ lis r3, streamInfo@ha
/* 803A0260 0039D1C0 38 63 13 F8 */ addi r3, r3, streamInfo@l
/* 803A0264 0039D1C4 7F 83 E0 2E */ lwzx r28, r3, r28
/* 803A0268 0039D1C8 3C 1C 00 01 */ addis r0, r28, 1
/* 803A026C 0039D1CC 28 00 FF FF */ cmplwi r0, 0xffff
/* 803A0270 0039D1D0 41 82 02 74 */ beq lbl_803A04E4
/* 803A0274 0039D1D4 3B E0 00 00 */ li r31, 0
/* 803A0278 0039D1D8 48 01 4E 45 */ bl hwDisableIrq
/* 803A027C 0039D1DC 38 00 00 08 */ li r0, 8
/* 803A0280 0039D1E0 38 60 00 00 */ li r3, 0
/* 803A0284 0039D1E4 7C 09 03 A6 */ mtctr r0
lbl_803A0288:
/* 803A0288 0039D1E8 88 1E 00 0C */ lbz r0, 0xc(r30)
/* 803A028C 0039D1EC 28 00 00 00 */ cmplwi r0, 0
/* 803A0290 0039D1F0 41 82 00 14 */ beq lbl_803A02A4
/* 803A0294 0039D1F4 80 1E 00 04 */ lwz r0, 4(r30)
/* 803A0298 0039D1F8 7C 1C 00 40 */ cmplw r28, r0
/* 803A029C 0039D1FC 40 82 00 08 */ bne lbl_803A02A4
/* 803A02A0 0039D200 48 00 01 10 */ b lbl_803A03B0
lbl_803A02A4:
/* 803A02A4 0039D204 88 1E 00 70 */ lbz r0, 0x70(r30)
/* 803A02A8 0039D208 38 63 00 01 */ addi r3, r3, 1
/* 803A02AC 0039D20C 3B DE 00 64 */ addi r30, r30, 0x64
/* 803A02B0 0039D210 28 00 00 00 */ cmplwi r0, 0
/* 803A02B4 0039D214 41 82 00 14 */ beq lbl_803A02C8
/* 803A02B8 0039D218 80 1E 00 04 */ lwz r0, 4(r30)
/* 803A02BC 0039D21C 7C 1C 00 40 */ cmplw r28, r0
/* 803A02C0 0039D220 40 82 00 08 */ bne lbl_803A02C8
/* 803A02C4 0039D224 48 00 00 EC */ b lbl_803A03B0
lbl_803A02C8:
/* 803A02C8 0039D228 88 1E 00 70 */ lbz r0, 0x70(r30)
/* 803A02CC 0039D22C 38 63 00 01 */ addi r3, r3, 1
/* 803A02D0 0039D230 3B DE 00 64 */ addi r30, r30, 0x64
/* 803A02D4 0039D234 28 00 00 00 */ cmplwi r0, 0
/* 803A02D8 0039D238 41 82 00 14 */ beq lbl_803A02EC
/* 803A02DC 0039D23C 80 1E 00 04 */ lwz r0, 4(r30)
/* 803A02E0 0039D240 7C 1C 00 40 */ cmplw r28, r0
/* 803A02E4 0039D244 40 82 00 08 */ bne lbl_803A02EC
/* 803A02E8 0039D248 48 00 00 C8 */ b lbl_803A03B0
lbl_803A02EC:
/* 803A02EC 0039D24C 88 1E 00 70 */ lbz r0, 0x70(r30)
/* 803A02F0 0039D250 38 63 00 01 */ addi r3, r3, 1
/* 803A02F4 0039D254 3B DE 00 64 */ addi r30, r30, 0x64
/* 803A02F8 0039D258 28 00 00 00 */ cmplwi r0, 0
/* 803A02FC 0039D25C 41 82 00 14 */ beq lbl_803A0310
/* 803A0300 0039D260 80 1E 00 04 */ lwz r0, 4(r30)
/* 803A0304 0039D264 7C 1C 00 40 */ cmplw r28, r0
/* 803A0308 0039D268 40 82 00 08 */ bne lbl_803A0310
/* 803A030C 0039D26C 48 00 00 A4 */ b lbl_803A03B0
lbl_803A0310:
/* 803A0310 0039D270 88 1E 00 70 */ lbz r0, 0x70(r30)
/* 803A0314 0039D274 38 63 00 01 */ addi r3, r3, 1
/* 803A0318 0039D278 3B DE 00 64 */ addi r30, r30, 0x64
/* 803A031C 0039D27C 28 00 00 00 */ cmplwi r0, 0
/* 803A0320 0039D280 41 82 00 14 */ beq lbl_803A0334
/* 803A0324 0039D284 80 1E 00 04 */ lwz r0, 4(r30)
/* 803A0328 0039D288 7C 1C 00 40 */ cmplw r28, r0
/* 803A032C 0039D28C 40 82 00 08 */ bne lbl_803A0334
/* 803A0330 0039D290 48 00 00 80 */ b lbl_803A03B0
lbl_803A0334:
/* 803A0334 0039D294 88 1E 00 70 */ lbz r0, 0x70(r30)
/* 803A0338 0039D298 38 63 00 01 */ addi r3, r3, 1
/* 803A033C 0039D29C 3B DE 00 64 */ addi r30, r30, 0x64
/* 803A0340 0039D2A0 28 00 00 00 */ cmplwi r0, 0
/* 803A0344 0039D2A4 41 82 00 14 */ beq lbl_803A0358
/* 803A0348 0039D2A8 80 1E 00 04 */ lwz r0, 4(r30)
/* 803A034C 0039D2AC 7C 1C 00 40 */ cmplw r28, r0
/* 803A0350 0039D2B0 40 82 00 08 */ bne lbl_803A0358
/* 803A0354 0039D2B4 48 00 00 5C */ b lbl_803A03B0
lbl_803A0358:
/* 803A0358 0039D2B8 88 1E 00 70 */ lbz r0, 0x70(r30)
/* 803A035C 0039D2BC 38 63 00 01 */ addi r3, r3, 1
/* 803A0360 0039D2C0 3B DE 00 64 */ addi r30, r30, 0x64
/* 803A0364 0039D2C4 28 00 00 00 */ cmplwi r0, 0
/* 803A0368 0039D2C8 41 82 00 14 */ beq lbl_803A037C
/* 803A036C 0039D2CC 80 1E 00 04 */ lwz r0, 4(r30)
/* 803A0370 0039D2D0 7C 1C 00 40 */ cmplw r28, r0
/* 803A0374 0039D2D4 40 82 00 08 */ bne lbl_803A037C
/* 803A0378 0039D2D8 48 00 00 38 */ b lbl_803A03B0
lbl_803A037C:
/* 803A037C 0039D2DC 88 1E 00 70 */ lbz r0, 0x70(r30)
/* 803A0380 0039D2E0 38 63 00 01 */ addi r3, r3, 1
/* 803A0384 0039D2E4 3B DE 00 64 */ addi r30, r30, 0x64
/* 803A0388 0039D2E8 28 00 00 00 */ cmplwi r0, 0
/* 803A038C 0039D2EC 41 82 00 14 */ beq lbl_803A03A0
/* 803A0390 0039D2F0 80 1E 00 04 */ lwz r0, 4(r30)
/* 803A0394 0039D2F4 7C 1C 00 40 */ cmplw r28, r0
/* 803A0398 0039D2F8 40 82 00 08 */ bne lbl_803A03A0
/* 803A039C 0039D2FC 48 00 00 14 */ b lbl_803A03B0
lbl_803A03A0:
/* 803A03A0 0039D300 3B DE 00 64 */ addi r30, r30, 0x64
/* 803A03A4 0039D304 38 63 00 01 */ addi r3, r3, 1
/* 803A03A8 0039D308 42 00 FE E0 */ bdnz lbl_803A0288
/* 803A03AC 0039D30C 38 60 FF FF */ li r3, -1
lbl_803A03B0:
/* 803A03B0 0039D310 3C 03 00 01 */ addis r0, r3, 1
/* 803A03B4 0039D314 28 00 FF FF */ cmplwi r0, 0xffff
/* 803A03B8 0039D318 41 82 01 24 */ beq lbl_803A04DC
/* 803A03BC 0039D31C 1F 83 00 64 */ mulli r28, r3, 0x64
/* 803A03C0 0039D320 7C 1D E0 AE */ lbzx r0, r29, r28
/* 803A03C4 0039D324 28 00 00 03 */ cmplwi r0, 3
/* 803A03C8 0039D328 40 82 00 50 */ bne lbl_803A0418
/* 803A03CC 0039D32C 3C 60 80 55 */ lis r3, streamInfo@ha
/* 803A03D0 0039D330 38 03 13 F8 */ addi r0, r3, streamInfo@l
/* 803A03D4 0039D334 7C 60 E2 14 */ add r3, r0, r28
/* 803A03D8 0039D338 88 63 00 58 */ lbz r3, 0x58(r3)
/* 803A03DC 0039D33C 48 00 83 2D */ bl voiceBlock
/* 803A03E0 0039D340 3C 80 80 55 */ lis r4, streamInfo@ha
/* 803A03E4 0039D344 3C 03 00 01 */ addis r0, r3, 1
/* 803A03E8 0039D348 38 84 13 F8 */ addi r4, r4, streamInfo@l
/* 803A03EC 0039D34C 7C 84 E2 14 */ add r4, r4, r28
/* 803A03F0 0039D350 28 00 FF FF */ cmplwi r0, 0xffff
/* 803A03F4 0039D354 90 64 00 4C */ stw r3, 0x4c(r4)
/* 803A03F8 0039D358 40 82 00 10 */ bne lbl_803A0408
/* 803A03FC 0039D35C 48 01 4C 89 */ bl hwEnableIrq
/* 803A0400 0039D360 3B E0 00 00 */ li r31, 0
/* 803A0404 0039D364 48 00 00 E4 */ b lbl_803A04E8
lbl_803A0408:
/* 803A0408 0039D368 38 60 00 00 */ li r3, 0
/* 803A040C 0039D36C 38 00 00 01 */ li r0, 1
/* 803A0410 0039D370 90 64 00 20 */ stw r3, 0x20(r4)
/* 803A0414 0039D374 7C 1D E1 AE */ stbx r0, r29, r28
lbl_803A0418:
/* 803A0418 0039D378 3C 60 80 55 */ lis r3, streamInfo@ha
/* 803A041C 0039D37C 38 63 13 F8 */ addi r3, r3, streamInfo@l
/* 803A0420 0039D380 7F 83 E0 2E */ lwzx r28, r3, r28
/* 803A0424 0039D384 3C 1C 00 01 */ addis r0, r28, 1
/* 803A0428 0039D388 28 00 FF FF */ cmplwi r0, 0xffff
/* 803A042C 0039D38C 41 82 00 AC */ beq lbl_803A04D8
/* 803A0430 0039D390 3B E0 00 00 */ li r31, 0
/* 803A0434 0039D394 48 01 4C 89 */ bl hwDisableIrq
/* 803A0438 0039D398 7F 83 E3 78 */ mr r3, r28
/* 803A043C 0039D39C 4B FF CE A5 */ bl GetPrivateIndex
/* 803A0440 0039D3A0 3C 03 00 01 */ addis r0, r3, 1
/* 803A0444 0039D3A4 28 00 FF FF */ cmplwi r0, 0xffff
/* 803A0448 0039D3A8 41 82 00 88 */ beq lbl_803A04D0
/* 803A044C 0039D3AC 1F 83 00 64 */ mulli r28, r3, 0x64
/* 803A0450 0039D3B0 7C 1D E0 AE */ lbzx r0, r29, r28
/* 803A0454 0039D3B4 28 00 00 03 */ cmplwi r0, 3
/* 803A0458 0039D3B8 40 82 00 50 */ bne lbl_803A04A8
/* 803A045C 0039D3BC 3C 60 80 55 */ lis r3, streamInfo@ha
/* 803A0460 0039D3C0 38 03 13 F8 */ addi r0, r3, streamInfo@l
/* 803A0464 0039D3C4 7C 60 E2 14 */ add r3, r0, r28
/* 803A0468 0039D3C8 88 63 00 58 */ lbz r3, 0x58(r3)
/* 803A046C 0039D3CC 48 00 82 9D */ bl voiceBlock
/* 803A0470 0039D3D0 3C 80 80 55 */ lis r4, streamInfo@ha
/* 803A0474 0039D3D4 3C 03 00 01 */ addis r0, r3, 1
/* 803A0478 0039D3D8 38 84 13 F8 */ addi r4, r4, streamInfo@l
/* 803A047C 0039D3DC 7C 84 E2 14 */ add r4, r4, r28
/* 803A0480 0039D3E0 28 00 FF FF */ cmplwi r0, 0xffff
/* 803A0484 0039D3E4 90 64 00 4C */ stw r3, 0x4c(r4)
/* 803A0488 0039D3E8 40 82 00 10 */ bne lbl_803A0498
/* 803A048C 0039D3EC 48 01 4B F9 */ bl hwEnableIrq
/* 803A0490 0039D3F0 3B E0 00 00 */ li r31, 0
/* 803A0494 0039D3F4 48 00 00 48 */ b lbl_803A04DC
lbl_803A0498:
/* 803A0498 0039D3F8 38 60 00 00 */ li r3, 0
/* 803A049C 0039D3FC 38 00 00 01 */ li r0, 1
/* 803A04A0 0039D400 90 64 00 20 */ stw r3, 0x20(r4)
/* 803A04A4 0039D404 7C 1D E1 AE */ stbx r0, r29, r28
lbl_803A04A8:
/* 803A04A8 0039D408 3C 60 80 55 */ lis r3, streamInfo@ha
/* 803A04AC 0039D40C 38 63 13 F8 */ addi r3, r3, streamInfo@l
/* 803A04B0 0039D410 7C 63 E0 2E */ lwzx r3, r3, r28
/* 803A04B4 0039D414 3C 03 00 01 */ addis r0, r3, 1
/* 803A04B8 0039D418 28 00 FF FF */ cmplwi r0, 0xffff
/* 803A04BC 0039D41C 41 82 00 10 */ beq lbl_803A04CC
/* 803A04C0 0039D420 4B FF FA 09 */ bl sndStreamActivate
/* 803A04C4 0039D424 7C 7F 1B 78 */ mr r31, r3
/* 803A04C8 0039D428 48 00 00 08 */ b lbl_803A04D0
lbl_803A04CC:
/* 803A04CC 0039D42C 3B E0 00 01 */ li r31, 1
lbl_803A04D0:
/* 803A04D0 0039D430 48 01 4B B5 */ bl hwEnableIrq
/* 803A04D4 0039D434 48 00 00 08 */ b lbl_803A04DC
lbl_803A04D8:
/* 803A04D8 0039D438 3B E0 00 01 */ li r31, 1
lbl_803A04DC:
/* 803A04DC 0039D43C 48 01 4B A9 */ bl hwEnableIrq
/* 803A04E0 0039D440 48 00 00 08 */ b lbl_803A04E8
lbl_803A04E4:
/* 803A04E4 0039D444 3B E0 00 01 */ li r31, 1
lbl_803A04E8:
/* 803A04E8 0039D448 48 01 4B 9D */ bl hwEnableIrq
lbl_803A04EC:
/* 803A04EC 0039D44C 7F FC FB 78 */ mr r28, r31
/* 803A04F0 0039D450 48 00 00 08 */ b lbl_803A04F8
lbl_803A04F4:
/* 803A04F4 0039D454 3B 80 00 01 */ li r28, 1
lbl_803A04F8:
/* 803A04F8 0039D458 48 01 4B 8D */ bl hwEnableIrq
/* 803A04FC 0039D45C 7F 83 E3 78 */ mr r3, r28
lbl_803A0500:
/* 803A0500 0039D460 80 01 00 24 */ lwz r0, 0x24(r1)
/* 803A0504 0039D464 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 803A0508 0039D468 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 803A050C 0039D46C 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 803A0510 0039D470 83 81 00 10 */ lwz r28, 0x10(r1)
/* 803A0514 0039D474 7C 08 03 A6 */ mtlr r0
/* 803A0518 0039D478 38 21 00 20 */ addi r1, r1, 0x20
/* 803A051C 0039D47C 4E 80 00 20 */ blr
.global sndStreamDeactivate
sndStreamDeactivate:
/* 803A0520 0039D480 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 803A0524 0039D484 7C 08 02 A6 */ mflr r0
/* 803A0528 0039D488 90 01 00 24 */ stw r0, 0x24(r1)
/* 803A052C 0039D48C 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 803A0530 0039D490 93 C1 00 18 */ stw r30, 0x18(r1)
/* 803A0534 0039D494 93 A1 00 14 */ stw r29, 0x14(r1)
/* 803A0538 0039D498 7C 7D 1B 78 */ mr r29, r3
/* 803A053C 0039D49C 48 01 4B 81 */ bl hwDisableIrq
/* 803A0540 0039D4A0 3C 60 80 55 */ lis r3, streamInfo@ha
/* 803A0544 0039D4A4 38 00 00 08 */ li r0, 8
/* 803A0548 0039D4A8 3B E3 13 F8 */ addi r31, r3, streamInfo@l
/* 803A054C 0039D4AC 38 80 00 00 */ li r4, 0
/* 803A0550 0039D4B0 7F E3 FB 78 */ mr r3, r31
/* 803A0554 0039D4B4 7C 09 03 A6 */ mtctr r0
lbl_803A0558:
/* 803A0558 0039D4B8 88 03 00 0C */ lbz r0, 0xc(r3)
/* 803A055C 0039D4BC 28 00 00 00 */ cmplwi r0, 0
/* 803A0560 0039D4C0 41 82 00 14 */ beq lbl_803A0574
/* 803A0564 0039D4C4 80 03 00 04 */ lwz r0, 4(r3)
/* 803A0568 0039D4C8 7C 1D 00 40 */ cmplw r29, r0
/* 803A056C 0039D4CC 40 82 00 08 */ bne lbl_803A0574
/* 803A0570 0039D4D0 48 00 01 10 */ b lbl_803A0680
lbl_803A0574:
/* 803A0574 0039D4D4 88 03 00 70 */ lbz r0, 0x70(r3)
/* 803A0578 0039D4D8 38 84 00 01 */ addi r4, r4, 1
/* 803A057C 0039D4DC 38 63 00 64 */ addi r3, r3, 0x64
/* 803A0580 0039D4E0 28 00 00 00 */ cmplwi r0, 0
/* 803A0584 0039D4E4 41 82 00 14 */ beq lbl_803A0598
/* 803A0588 0039D4E8 80 03 00 04 */ lwz r0, 4(r3)
/* 803A058C 0039D4EC 7C 1D 00 40 */ cmplw r29, r0
/* 803A0590 0039D4F0 40 82 00 08 */ bne lbl_803A0598
/* 803A0594 0039D4F4 48 00 00 EC */ b lbl_803A0680
lbl_803A0598:
/* 803A0598 0039D4F8 88 03 00 70 */ lbz r0, 0x70(r3)
/* 803A059C 0039D4FC 38 84 00 01 */ addi r4, r4, 1
/* 803A05A0 0039D500 38 63 00 64 */ addi r3, r3, 0x64
/* 803A05A4 0039D504 28 00 00 00 */ cmplwi r0, 0
/* 803A05A8 0039D508 41 82 00 14 */ beq lbl_803A05BC
/* 803A05AC 0039D50C 80 03 00 04 */ lwz r0, 4(r3)
/* 803A05B0 0039D510 7C 1D 00 40 */ cmplw r29, r0
/* 803A05B4 0039D514 40 82 00 08 */ bne lbl_803A05BC
/* 803A05B8 0039D518 48 00 00 C8 */ b lbl_803A0680
lbl_803A05BC:
/* 803A05BC 0039D51C 88 03 00 70 */ lbz r0, 0x70(r3)
/* 803A05C0 0039D520 38 84 00 01 */ addi r4, r4, 1
/* 803A05C4 0039D524 38 63 00 64 */ addi r3, r3, 0x64
/* 803A05C8 0039D528 28 00 00 00 */ cmplwi r0, 0
/* 803A05CC 0039D52C 41 82 00 14 */ beq lbl_803A05E0
/* 803A05D0 0039D530 80 03 00 04 */ lwz r0, 4(r3)
/* 803A05D4 0039D534 7C 1D 00 40 */ cmplw r29, r0
/* 803A05D8 0039D538 40 82 00 08 */ bne lbl_803A05E0
/* 803A05DC 0039D53C 48 00 00 A4 */ b lbl_803A0680
lbl_803A05E0:
/* 803A05E0 0039D540 88 03 00 70 */ lbz r0, 0x70(r3)
/* 803A05E4 0039D544 38 84 00 01 */ addi r4, r4, 1
/* 803A05E8 0039D548 38 63 00 64 */ addi r3, r3, 0x64
/* 803A05EC 0039D54C 28 00 00 00 */ cmplwi r0, 0
/* 803A05F0 0039D550 41 82 00 14 */ beq lbl_803A0604
/* 803A05F4 0039D554 80 03 00 04 */ lwz r0, 4(r3)
/* 803A05F8 0039D558 7C 1D 00 40 */ cmplw r29, r0
/* 803A05FC 0039D55C 40 82 00 08 */ bne lbl_803A0604
/* 803A0600 0039D560 48 00 00 80 */ b lbl_803A0680
lbl_803A0604:
/* 803A0604 0039D564 88 03 00 70 */ lbz r0, 0x70(r3)
/* 803A0608 0039D568 38 84 00 01 */ addi r4, r4, 1
/* 803A060C 0039D56C 38 63 00 64 */ addi r3, r3, 0x64
/* 803A0610 0039D570 28 00 00 00 */ cmplwi r0, 0
/* 803A0614 0039D574 41 82 00 14 */ beq lbl_803A0628
/* 803A0618 0039D578 80 03 00 04 */ lwz r0, 4(r3)
/* 803A061C 0039D57C 7C 1D 00 40 */ cmplw r29, r0
/* 803A0620 0039D580 40 82 00 08 */ bne lbl_803A0628
/* 803A0624 0039D584 48 00 00 5C */ b lbl_803A0680
lbl_803A0628:
/* 803A0628 0039D588 88 03 00 70 */ lbz r0, 0x70(r3)
/* 803A062C 0039D58C 38 84 00 01 */ addi r4, r4, 1
/* 803A0630 0039D590 38 63 00 64 */ addi r3, r3, 0x64
/* 803A0634 0039D594 28 00 00 00 */ cmplwi r0, 0
/* 803A0638 0039D598 41 82 00 14 */ beq lbl_803A064C
/* 803A063C 0039D59C 80 03 00 04 */ lwz r0, 4(r3)
/* 803A0640 0039D5A0 7C 1D 00 40 */ cmplw r29, r0
/* 803A0644 0039D5A4 40 82 00 08 */ bne lbl_803A064C
/* 803A0648 0039D5A8 48 00 00 38 */ b lbl_803A0680
lbl_803A064C:
/* 803A064C 0039D5AC 88 03 00 70 */ lbz r0, 0x70(r3)
/* 803A0650 0039D5B0 38 84 00 01 */ addi r4, r4, 1
/* 803A0654 0039D5B4 38 63 00 64 */ addi r3, r3, 0x64
/* 803A0658 0039D5B8 28 00 00 00 */ cmplwi r0, 0
/* 803A065C 0039D5BC 41 82 00 14 */ beq lbl_803A0670
/* 803A0660 0039D5C0 80 03 00 04 */ lwz r0, 4(r3)
/* 803A0664 0039D5C4 7C 1D 00 40 */ cmplw r29, r0
/* 803A0668 0039D5C8 40 82 00 08 */ bne lbl_803A0670
/* 803A066C 0039D5CC 48 00 00 14 */ b lbl_803A0680
lbl_803A0670:
/* 803A0670 0039D5D0 38 63 00 64 */ addi r3, r3, 0x64
/* 803A0674 0039D5D4 38 84 00 01 */ addi r4, r4, 1
/* 803A0678 0039D5D8 42 00 FE E0 */ bdnz lbl_803A0558
/* 803A067C 0039D5DC 38 80 FF FF */ li r4, -1
lbl_803A0680:
/* 803A0680 0039D5E0 3C 04 00 01 */ addis r0, r4, 1
/* 803A0684 0039D5E4 28 00 FF FF */ cmplwi r0, 0xffff
/* 803A0688 0039D5E8 41 82 05 8C */ beq lbl_803A0C14
/* 803A068C 0039D5EC 3C 60 80 55 */ lis r3, streamInfo@ha
/* 803A0690 0039D5F0 38 63 13 F8 */ addi r3, r3, streamInfo@l
/* 803A0694 0039D5F4 1F A4 00 64 */ mulli r29, r4, 0x64
/* 803A0698 0039D5F8 3B C3 00 0C */ addi r30, r3, 0xc
/* 803A069C 0039D5FC 7C 1E E8 AE */ lbzx r0, r30, r29
/* 803A06A0 0039D600 28 00 00 01 */ cmplwi r0, 1
/* 803A06A4 0039D604 41 82 00 0C */ beq lbl_803A06B0
/* 803A06A8 0039D608 28 00 00 02 */ cmplwi r0, 2
/* 803A06AC 0039D60C 40 82 00 20 */ bne lbl_803A06CC
lbl_803A06B0:
/* 803A06B0 0039D610 3C 60 80 55 */ lis r3, streamInfo@ha
/* 803A06B4 0039D614 38 03 13 F8 */ addi r0, r3, streamInfo@l
/* 803A06B8 0039D618 7C 60 EA 14 */ add r3, r0, r29
/* 803A06BC 0039D61C 80 63 00 4C */ lwz r3, 0x4c(r3)
/* 803A06C0 0039D620 48 00 81 45 */ bl voiceUnblock
/* 803A06C4 0039D624 38 00 00 03 */ li r0, 3
/* 803A06C8 0039D628 7C 1E E9 AE */ stbx r0, r30, r29
lbl_803A06CC:
/* 803A06CC 0039D62C 3C 60 80 55 */ lis r3, streamInfo@ha
/* 803A06D0 0039D630 38 63 13 F8 */ addi r3, r3, streamInfo@l
/* 803A06D4 0039D634 7F A3 E8 2E */ lwzx r29, r3, r29
/* 803A06D8 0039D638 3C 1D 00 01 */ addis r0, r29, 1
/* 803A06DC 0039D63C 28 00 FF FF */ cmplwi r0, 0xffff
/* 803A06E0 0039D640 41 82 05 34 */ beq lbl_803A0C14
/* 803A06E4 0039D644 48 01 49 D9 */ bl hwDisableIrq
/* 803A06E8 0039D648 38 00 00 08 */ li r0, 8
/* 803A06EC 0039D64C 7F E4 FB 78 */ mr r4, r31
/* 803A06F0 0039D650 38 60 00 00 */ li r3, 0
/* 803A06F4 0039D654 7C 09 03 A6 */ mtctr r0
lbl_803A06F8:
/* 803A06F8 0039D658 88 04 00 0C */ lbz r0, 0xc(r4)
/* 803A06FC 0039D65C 28 00 00 00 */ cmplwi r0, 0
/* 803A0700 0039D660 41 82 00 14 */ beq lbl_803A0714
/* 803A0704 0039D664 80 04 00 04 */ lwz r0, 4(r4)
/* 803A0708 0039D668 7C 1D 00 40 */ cmplw r29, r0
/* 803A070C 0039D66C 40 82 00 08 */ bne lbl_803A0714
/* 803A0710 0039D670 48 00 01 10 */ b lbl_803A0820
lbl_803A0714:
/* 803A0714 0039D674 88 04 00 70 */ lbz r0, 0x70(r4)
/* 803A0718 0039D678 38 63 00 01 */ addi r3, r3, 1
/* 803A071C 0039D67C 38 84 00 64 */ addi r4, r4, 0x64
/* 803A0720 0039D680 28 00 00 00 */ cmplwi r0, 0
/* 803A0724 0039D684 41 82 00 14 */ beq lbl_803A0738
/* 803A0728 0039D688 80 04 00 04 */ lwz r0, 4(r4)
/* 803A072C 0039D68C 7C 1D 00 40 */ cmplw r29, r0
/* 803A0730 0039D690 40 82 00 08 */ bne lbl_803A0738
/* 803A0734 0039D694 48 00 00 EC */ b lbl_803A0820
lbl_803A0738:
/* 803A0738 0039D698 88 04 00 70 */ lbz r0, 0x70(r4)
/* 803A073C 0039D69C 38 63 00 01 */ addi r3, r3, 1
/* 803A0740 0039D6A0 38 84 00 64 */ addi r4, r4, 0x64
/* 803A0744 0039D6A4 28 00 00 00 */ cmplwi r0, 0
/* 803A0748 0039D6A8 41 82 00 14 */ beq lbl_803A075C
/* 803A074C 0039D6AC 80 04 00 04 */ lwz r0, 4(r4)
/* 803A0750 0039D6B0 7C 1D 00 40 */ cmplw r29, r0
/* 803A0754 0039D6B4 40 82 00 08 */ bne lbl_803A075C
/* 803A0758 0039D6B8 48 00 00 C8 */ b lbl_803A0820
lbl_803A075C:
/* 803A075C 0039D6BC 88 04 00 70 */ lbz r0, 0x70(r4)
/* 803A0760 0039D6C0 38 63 00 01 */ addi r3, r3, 1
/* 803A0764 0039D6C4 38 84 00 64 */ addi r4, r4, 0x64
/* 803A0768 0039D6C8 28 00 00 00 */ cmplwi r0, 0
/* 803A076C 0039D6CC 41 82 00 14 */ beq lbl_803A0780
/* 803A0770 0039D6D0 80 04 00 04 */ lwz r0, 4(r4)
/* 803A0774 0039D6D4 7C 1D 00 40 */ cmplw r29, r0
/* 803A0778 0039D6D8 40 82 00 08 */ bne lbl_803A0780
/* 803A077C 0039D6DC 48 00 00 A4 */ b lbl_803A0820
lbl_803A0780:
/* 803A0780 0039D6E0 88 04 00 70 */ lbz r0, 0x70(r4)
/* 803A0784 0039D6E4 38 63 00 01 */ addi r3, r3, 1
/* 803A0788 0039D6E8 38 84 00 64 */ addi r4, r4, 0x64
/* 803A078C 0039D6EC 28 00 00 00 */ cmplwi r0, 0
/* 803A0790 0039D6F0 41 82 00 14 */ beq lbl_803A07A4
/* 803A0794 0039D6F4 80 04 00 04 */ lwz r0, 4(r4)
/* 803A0798 0039D6F8 7C 1D 00 40 */ cmplw r29, r0
/* 803A079C 0039D6FC 40 82 00 08 */ bne lbl_803A07A4
/* 803A07A0 0039D700 48 00 00 80 */ b lbl_803A0820
lbl_803A07A4:
/* 803A07A4 0039D704 88 04 00 70 */ lbz r0, 0x70(r4)
/* 803A07A8 0039D708 38 63 00 01 */ addi r3, r3, 1
/* 803A07AC 0039D70C 38 84 00 64 */ addi r4, r4, 0x64
/* 803A07B0 0039D710 28 00 00 00 */ cmplwi r0, 0
/* 803A07B4 0039D714 41 82 00 14 */ beq lbl_803A07C8
/* 803A07B8 0039D718 80 04 00 04 */ lwz r0, 4(r4)
/* 803A07BC 0039D71C 7C 1D 00 40 */ cmplw r29, r0
/* 803A07C0 0039D720 40 82 00 08 */ bne lbl_803A07C8
/* 803A07C4 0039D724 48 00 00 5C */ b lbl_803A0820
lbl_803A07C8:
/* 803A07C8 0039D728 88 04 00 70 */ lbz r0, 0x70(r4)
/* 803A07CC 0039D72C 38 63 00 01 */ addi r3, r3, 1
/* 803A07D0 0039D730 38 84 00 64 */ addi r4, r4, 0x64
/* 803A07D4 0039D734 28 00 00 00 */ cmplwi r0, 0
/* 803A07D8 0039D738 41 82 00 14 */ beq lbl_803A07EC
/* 803A07DC 0039D73C 80 04 00 04 */ lwz r0, 4(r4)
/* 803A07E0 0039D740 7C 1D 00 40 */ cmplw r29, r0
/* 803A07E4 0039D744 40 82 00 08 */ bne lbl_803A07EC
/* 803A07E8 0039D748 48 00 00 38 */ b lbl_803A0820
lbl_803A07EC:
/* 803A07EC 0039D74C 88 04 00 70 */ lbz r0, 0x70(r4)
/* 803A07F0 0039D750 38 63 00 01 */ addi r3, r3, 1
/* 803A07F4 0039D754 38 84 00 64 */ addi r4, r4, 0x64
/* 803A07F8 0039D758 28 00 00 00 */ cmplwi r0, 0
/* 803A07FC 0039D75C 41 82 00 14 */ beq lbl_803A0810
/* 803A0800 0039D760 80 04 00 04 */ lwz r0, 4(r4)
/* 803A0804 0039D764 7C 1D 00 40 */ cmplw r29, r0
/* 803A0808 0039D768 40 82 00 08 */ bne lbl_803A0810
/* 803A080C 0039D76C 48 00 00 14 */ b lbl_803A0820
lbl_803A0810:
/* 803A0810 0039D770 38 84 00 64 */ addi r4, r4, 0x64
/* 803A0814 0039D774 38 63 00 01 */ addi r3, r3, 1
/* 803A0818 0039D778 42 00 FE E0 */ bdnz lbl_803A06F8
/* 803A081C 0039D77C 38 60 FF FF */ li r3, -1
lbl_803A0820:
/* 803A0820 0039D780 3C 03 00 01 */ addis r0, r3, 1
/* 803A0824 0039D784 28 00 FF FF */ cmplwi r0, 0xffff
/* 803A0828 0039D788 41 82 03 E8 */ beq lbl_803A0C10
/* 803A082C 0039D78C 1F A3 00 64 */ mulli r29, r3, 0x64
/* 803A0830 0039D790 7C 1E E8 AE */ lbzx r0, r30, r29
/* 803A0834 0039D794 28 00 00 01 */ cmplwi r0, 1
/* 803A0838 0039D798 41 82 00 0C */ beq lbl_803A0844
/* 803A083C 0039D79C 28 00 00 02 */ cmplwi r0, 2
/* 803A0840 0039D7A0 40 82 00 20 */ bne lbl_803A0860
lbl_803A0844:
/* 803A0844 0039D7A4 3C 60 80 55 */ lis r3, streamInfo@ha
/* 803A0848 0039D7A8 38 03 13 F8 */ addi r0, r3, streamInfo@l
/* 803A084C 0039D7AC 7C 60 EA 14 */ add r3, r0, r29
/* 803A0850 0039D7B0 80 63 00 4C */ lwz r3, 0x4c(r3)
/* 803A0854 0039D7B4 48 00 7F B1 */ bl voiceUnblock
/* 803A0858 0039D7B8 38 00 00 03 */ li r0, 3
/* 803A085C 0039D7BC 7C 1E E9 AE */ stbx r0, r30, r29
lbl_803A0860:
/* 803A0860 0039D7C0 3C 60 80 55 */ lis r3, streamInfo@ha
/* 803A0864 0039D7C4 38 63 13 F8 */ addi r3, r3, streamInfo@l
/* 803A0868 0039D7C8 7F A3 E8 2E */ lwzx r29, r3, r29
/* 803A086C 0039D7CC 3C 1D 00 01 */ addis r0, r29, 1
/* 803A0870 0039D7D0 28 00 FF FF */ cmplwi r0, 0xffff
/* 803A0874 0039D7D4 41 82 03 9C */ beq lbl_803A0C10
/* 803A0878 0039D7D8 48 01 48 45 */ bl hwDisableIrq
/* 803A087C 0039D7DC 38 00 00 08 */ li r0, 8
/* 803A0880 0039D7E0 7F E4 FB 78 */ mr r4, r31
/* 803A0884 0039D7E4 38 60 00 00 */ li r3, 0
/* 803A0888 0039D7E8 7C 09 03 A6 */ mtctr r0
lbl_803A088C:
/* 803A088C 0039D7EC 88 04 00 0C */ lbz r0, 0xc(r4)
/* 803A0890 0039D7F0 28 00 00 00 */ cmplwi r0, 0
/* 803A0894 0039D7F4 41 82 00 14 */ beq lbl_803A08A8
/* 803A0898 0039D7F8 80 04 00 04 */ lwz r0, 4(r4)
/* 803A089C 0039D7FC 7C 1D 00 40 */ cmplw r29, r0
/* 803A08A0 0039D800 40 82 00 08 */ bne lbl_803A08A8
/* 803A08A4 0039D804 48 00 01 10 */ b lbl_803A09B4
lbl_803A08A8:
/* 803A08A8 0039D808 88 04 00 70 */ lbz r0, 0x70(r4)
/* 803A08AC 0039D80C 38 63 00 01 */ addi r3, r3, 1
/* 803A08B0 0039D810 38 84 00 64 */ addi r4, r4, 0x64
/* 803A08B4 0039D814 28 00 00 00 */ cmplwi r0, 0
/* 803A08B8 0039D818 41 82 00 14 */ beq lbl_803A08CC
/* 803A08BC 0039D81C 80 04 00 04 */ lwz r0, 4(r4)
/* 803A08C0 0039D820 7C 1D 00 40 */ cmplw r29, r0
/* 803A08C4 0039D824 40 82 00 08 */ bne lbl_803A08CC
/* 803A08C8 0039D828 48 00 00 EC */ b lbl_803A09B4
lbl_803A08CC:
/* 803A08CC 0039D82C 88 04 00 70 */ lbz r0, 0x70(r4)
/* 803A08D0 0039D830 38 63 00 01 */ addi r3, r3, 1
/* 803A08D4 0039D834 38 84 00 64 */ addi r4, r4, 0x64
/* 803A08D8 0039D838 28 00 00 00 */ cmplwi r0, 0
/* 803A08DC 0039D83C 41 82 00 14 */ beq lbl_803A08F0
/* 803A08E0 0039D840 80 04 00 04 */ lwz r0, 4(r4)
/* 803A08E4 0039D844 7C 1D 00 40 */ cmplw r29, r0
/* 803A08E8 0039D848 40 82 00 08 */ bne lbl_803A08F0
/* 803A08EC 0039D84C 48 00 00 C8 */ b lbl_803A09B4
lbl_803A08F0:
/* 803A08F0 0039D850 88 04 00 70 */ lbz r0, 0x70(r4)
/* 803A08F4 0039D854 38 63 00 01 */ addi r3, r3, 1
/* 803A08F8 0039D858 38 84 00 64 */ addi r4, r4, 0x64
/* 803A08FC 0039D85C 28 00 00 00 */ cmplwi r0, 0
/* 803A0900 0039D860 41 82 00 14 */ beq lbl_803A0914
/* 803A0904 0039D864 80 04 00 04 */ lwz r0, 4(r4)
/* 803A0908 0039D868 7C 1D 00 40 */ cmplw r29, r0
/* 803A090C 0039D86C 40 82 00 08 */ bne lbl_803A0914
/* 803A0910 0039D870 48 00 00 A4 */ b lbl_803A09B4
lbl_803A0914:
/* 803A0914 0039D874 88 04 00 70 */ lbz r0, 0x70(r4)
/* 803A0918 0039D878 38 63 00 01 */ addi r3, r3, 1
/* 803A091C 0039D87C 38 84 00 64 */ addi r4, r4, 0x64
/* 803A0920 0039D880 28 00 00 00 */ cmplwi r0, 0
/* 803A0924 0039D884 41 82 00 14 */ beq lbl_803A0938
/* 803A0928 0039D888 80 04 00 04 */ lwz r0, 4(r4)
/* 803A092C 0039D88C 7C 1D 00 40 */ cmplw r29, r0
/* 803A0930 0039D890 40 82 00 08 */ bne lbl_803A0938
/* 803A0934 0039D894 48 00 00 80 */ b lbl_803A09B4
lbl_803A0938:
/* 803A0938 0039D898 88 04 00 70 */ lbz r0, 0x70(r4)
/* 803A093C 0039D89C 38 63 00 01 */ addi r3, r3, 1
/* 803A0940 0039D8A0 38 84 00 64 */ addi r4, r4, 0x64
/* 803A0944 0039D8A4 28 00 00 00 */ cmplwi r0, 0
/* 803A0948 0039D8A8 41 82 00 14 */ beq lbl_803A095C
/* 803A094C 0039D8AC 80 04 00 04 */ lwz r0, 4(r4)
/* 803A0950 0039D8B0 7C 1D 00 40 */ cmplw r29, r0
/* 803A0954 0039D8B4 40 82 00 08 */ bne lbl_803A095C
/* 803A0958 0039D8B8 48 00 00 5C */ b lbl_803A09B4
lbl_803A095C:
/* 803A095C 0039D8BC 88 04 00 70 */ lbz r0, 0x70(r4)
/* 803A0960 0039D8C0 38 63 00 01 */ addi r3, r3, 1
/* 803A0964 0039D8C4 38 84 00 64 */ addi r4, r4, 0x64
/* 803A0968 0039D8C8 28 00 00 00 */ cmplwi r0, 0
/* 803A096C 0039D8CC 41 82 00 14 */ beq lbl_803A0980
/* 803A0970 0039D8D0 80 04 00 04 */ lwz r0, 4(r4)
/* 803A0974 0039D8D4 7C 1D 00 40 */ cmplw r29, r0
/* 803A0978 0039D8D8 40 82 00 08 */ bne lbl_803A0980
/* 803A097C 0039D8DC 48 00 00 38 */ b lbl_803A09B4
lbl_803A0980:
/* 803A0980 0039D8E0 88 04 00 70 */ lbz r0, 0x70(r4)
/* 803A0984 0039D8E4 38 63 00 01 */ addi r3, r3, 1
/* 803A0988 0039D8E8 38 84 00 64 */ addi r4, r4, 0x64
/* 803A098C 0039D8EC 28 00 00 00 */ cmplwi r0, 0
/* 803A0990 0039D8F0 41 82 00 14 */ beq lbl_803A09A4
/* 803A0994 0039D8F4 80 04 00 04 */ lwz r0, 4(r4)
/* 803A0998 0039D8F8 7C 1D 00 40 */ cmplw r29, r0
/* 803A099C 0039D8FC 40 82 00 08 */ bne lbl_803A09A4
/* 803A09A0 0039D900 48 00 00 14 */ b lbl_803A09B4
lbl_803A09A4:
/* 803A09A4 0039D904 38 84 00 64 */ addi r4, r4, 0x64
/* 803A09A8 0039D908 38 63 00 01 */ addi r3, r3, 1
/* 803A09AC 0039D90C 42 00 FE E0 */ bdnz lbl_803A088C
/* 803A09B0 0039D910 38 60 FF FF */ li r3, -1
lbl_803A09B4:
/* 803A09B4 0039D914 3C 03 00 01 */ addis r0, r3, 1
/* 803A09B8 0039D918 28 00 FF FF */ cmplwi r0, 0xffff
/* 803A09BC 0039D91C 41 82 02 50 */ beq lbl_803A0C0C
/* 803A09C0 0039D920 1F A3 00 64 */ mulli r29, r3, 0x64
/* 803A09C4 0039D924 7C 1E E8 AE */ lbzx r0, r30, r29
/* 803A09C8 0039D928 28 00 00 01 */ cmplwi r0, 1
/* 803A09CC 0039D92C 41 82 00 0C */ beq lbl_803A09D8
/* 803A09D0 0039D930 28 00 00 02 */ cmplwi r0, 2
/* 803A09D4 0039D934 40 82 00 20 */ bne lbl_803A09F4
lbl_803A09D8:
/* 803A09D8 0039D938 3C 60 80 55 */ lis r3, streamInfo@ha
/* 803A09DC 0039D93C 38 03 13 F8 */ addi r0, r3, streamInfo@l
/* 803A09E0 0039D940 7C 60 EA 14 */ add r3, r0, r29
/* 803A09E4 0039D944 80 63 00 4C */ lwz r3, 0x4c(r3)
/* 803A09E8 0039D948 48 00 7E 1D */ bl voiceUnblock
/* 803A09EC 0039D94C 38 00 00 03 */ li r0, 3
/* 803A09F0 0039D950 7C 1E E9 AE */ stbx r0, r30, r29
lbl_803A09F4:
/* 803A09F4 0039D954 3C 60 80 55 */ lis r3, streamInfo@ha
/* 803A09F8 0039D958 38 63 13 F8 */ addi r3, r3, streamInfo@l
/* 803A09FC 0039D95C 7F A3 E8 2E */ lwzx r29, r3, r29
/* 803A0A00 0039D960 3C 1D 00 01 */ addis r0, r29, 1
/* 803A0A04 0039D964 28 00 FF FF */ cmplwi r0, 0xffff
/* 803A0A08 0039D968 41 82 02 04 */ beq lbl_803A0C0C
/* 803A0A0C 0039D96C 48 01 46 B1 */ bl hwDisableIrq
/* 803A0A10 0039D970 38 00 00 08 */ li r0, 8
/* 803A0A14 0039D974 38 60 00 00 */ li r3, 0
/* 803A0A18 0039D978 7C 09 03 A6 */ mtctr r0
lbl_803A0A1C:
/* 803A0A1C 0039D97C 88 1F 00 0C */ lbz r0, 0xc(r31)
/* 803A0A20 0039D980 28 00 00 00 */ cmplwi r0, 0
/* 803A0A24 0039D984 41 82 00 14 */ beq lbl_803A0A38
/* 803A0A28 0039D988 80 1F 00 04 */ lwz r0, 4(r31)
/* 803A0A2C 0039D98C 7C 1D 00 40 */ cmplw r29, r0
/* 803A0A30 0039D990 40 82 00 08 */ bne lbl_803A0A38
/* 803A0A34 0039D994 48 00 01 10 */ b lbl_803A0B44
lbl_803A0A38:
/* 803A0A38 0039D998 88 1F 00 70 */ lbz r0, 0x70(r31)
/* 803A0A3C 0039D99C 38 63 00 01 */ addi r3, r3, 1
/* 803A0A40 0039D9A0 3B FF 00 64 */ addi r31, r31, 0x64
/* 803A0A44 0039D9A4 28 00 00 00 */ cmplwi r0, 0
/* 803A0A48 0039D9A8 41 82 00 14 */ beq lbl_803A0A5C
/* 803A0A4C 0039D9AC 80 1F 00 04 */ lwz r0, 4(r31)
/* 803A0A50 0039D9B0 7C 1D 00 40 */ cmplw r29, r0
/* 803A0A54 0039D9B4 40 82 00 08 */ bne lbl_803A0A5C
/* 803A0A58 0039D9B8 48 00 00 EC */ b lbl_803A0B44
lbl_803A0A5C:
/* 803A0A5C 0039D9BC 88 1F 00 70 */ lbz r0, 0x70(r31)
/* 803A0A60 0039D9C0 38 63 00 01 */ addi r3, r3, 1
/* 803A0A64 0039D9C4 3B FF 00 64 */ addi r31, r31, 0x64
/* 803A0A68 0039D9C8 28 00 00 00 */ cmplwi r0, 0
/* 803A0A6C 0039D9CC 41 82 00 14 */ beq lbl_803A0A80
/* 803A0A70 0039D9D0 80 1F 00 04 */ lwz r0, 4(r31)
/* 803A0A74 0039D9D4 7C 1D 00 40 */ cmplw r29, r0
/* 803A0A78 0039D9D8 40 82 00 08 */ bne lbl_803A0A80
/* 803A0A7C 0039D9DC 48 00 00 C8 */ b lbl_803A0B44
lbl_803A0A80:
/* 803A0A80 0039D9E0 88 1F 00 70 */ lbz r0, 0x70(r31)
/* 803A0A84 0039D9E4 38 63 00 01 */ addi r3, r3, 1
/* 803A0A88 0039D9E8 3B FF 00 64 */ addi r31, r31, 0x64
/* 803A0A8C 0039D9EC 28 00 00 00 */ cmplwi r0, 0
/* 803A0A90 0039D9F0 41 82 00 14 */ beq lbl_803A0AA4
/* 803A0A94 0039D9F4 80 1F 00 04 */ lwz r0, 4(r31)
/* 803A0A98 0039D9F8 7C 1D 00 40 */ cmplw r29, r0
/* 803A0A9C 0039D9FC 40 82 00 08 */ bne lbl_803A0AA4
/* 803A0AA0 0039DA00 48 00 00 A4 */ b lbl_803A0B44
lbl_803A0AA4:
/* 803A0AA4 0039DA04 88 1F 00 70 */ lbz r0, 0x70(r31)
/* 803A0AA8 0039DA08 38 63 00 01 */ addi r3, r3, 1
/* 803A0AAC 0039DA0C 3B FF 00 64 */ addi r31, r31, 0x64
/* 803A0AB0 0039DA10 28 00 00 00 */ cmplwi r0, 0
/* 803A0AB4 0039DA14 41 82 00 14 */ beq lbl_803A0AC8
/* 803A0AB8 0039DA18 80 1F 00 04 */ lwz r0, 4(r31)
/* 803A0ABC 0039DA1C 7C 1D 00 40 */ cmplw r29, r0
/* 803A0AC0 0039DA20 40 82 00 08 */ bne lbl_803A0AC8
/* 803A0AC4 0039DA24 48 00 00 80 */ b lbl_803A0B44
lbl_803A0AC8:
/* 803A0AC8 0039DA28 88 1F 00 70 */ lbz r0, 0x70(r31)
/* 803A0ACC 0039DA2C 38 63 00 01 */ addi r3, r3, 1
/* 803A0AD0 0039DA30 3B FF 00 64 */ addi r31, r31, 0x64
/* 803A0AD4 0039DA34 28 00 00 00 */ cmplwi r0, 0
/* 803A0AD8 0039DA38 41 82 00 14 */ beq lbl_803A0AEC
/* 803A0ADC 0039DA3C 80 1F 00 04 */ lwz r0, 4(r31)
/* 803A0AE0 0039DA40 7C 1D 00 40 */ cmplw r29, r0
/* 803A0AE4 0039DA44 40 82 00 08 */ bne lbl_803A0AEC
/* 803A0AE8 0039DA48 48 00 00 5C */ b lbl_803A0B44
lbl_803A0AEC:
/* 803A0AEC 0039DA4C 88 1F 00 70 */ lbz r0, 0x70(r31)
/* 803A0AF0 0039DA50 38 63 00 01 */ addi r3, r3, 1
/* 803A0AF4 0039DA54 3B FF 00 64 */ addi r31, r31, 0x64
/* 803A0AF8 0039DA58 28 00 00 00 */ cmplwi r0, 0
/* 803A0AFC 0039DA5C 41 82 00 14 */ beq lbl_803A0B10
/* 803A0B00 0039DA60 80 1F 00 04 */ lwz r0, 4(r31)
/* 803A0B04 0039DA64 7C 1D 00 40 */ cmplw r29, r0
/* 803A0B08 0039DA68 40 82 00 08 */ bne lbl_803A0B10
/* 803A0B0C 0039DA6C 48 00 00 38 */ b lbl_803A0B44
lbl_803A0B10:
/* 803A0B10 0039DA70 88 1F 00 70 */ lbz r0, 0x70(r31)
/* 803A0B14 0039DA74 38 63 00 01 */ addi r3, r3, 1
/* 803A0B18 0039DA78 3B FF 00 64 */ addi r31, r31, 0x64
/* 803A0B1C 0039DA7C 28 00 00 00 */ cmplwi r0, 0
/* 803A0B20 0039DA80 41 82 00 14 */ beq lbl_803A0B34
/* 803A0B24 0039DA84 80 1F 00 04 */ lwz r0, 4(r31)
/* 803A0B28 0039DA88 7C 1D 00 40 */ cmplw r29, r0
/* 803A0B2C 0039DA8C 40 82 00 08 */ bne lbl_803A0B34
/* 803A0B30 0039DA90 48 00 00 14 */ b lbl_803A0B44
lbl_803A0B34:
/* 803A0B34 0039DA94 3B FF 00 64 */ addi r31, r31, 0x64
/* 803A0B38 0039DA98 38 63 00 01 */ addi r3, r3, 1
/* 803A0B3C 0039DA9C 42 00 FE E0 */ bdnz lbl_803A0A1C
/* 803A0B40 0039DAA0 38 60 FF FF */ li r3, -1
lbl_803A0B44:
/* 803A0B44 0039DAA4 3C 03 00 01 */ addis r0, r3, 1
/* 803A0B48 0039DAA8 28 00 FF FF */ cmplwi r0, 0xffff
/* 803A0B4C 0039DAAC 41 82 00 BC */ beq lbl_803A0C08
/* 803A0B50 0039DAB0 1F A3 00 64 */ mulli r29, r3, 0x64
/* 803A0B54 0039DAB4 7C 1E E8 AE */ lbzx r0, r30, r29
/* 803A0B58 0039DAB8 28 00 00 01 */ cmplwi r0, 1
/* 803A0B5C 0039DABC 41 82 00 0C */ beq lbl_803A0B68
/* 803A0B60 0039DAC0 28 00 00 02 */ cmplwi r0, 2
/* 803A0B64 0039DAC4 40 82 00 20 */ bne lbl_803A0B84
lbl_803A0B68:
/* 803A0B68 0039DAC8 3C 60 80 55 */ lis r3, streamInfo@ha
/* 803A0B6C 0039DACC 38 03 13 F8 */ addi r0, r3, streamInfo@l
/* 803A0B70 0039DAD0 7C 60 EA 14 */ add r3, r0, r29
/* 803A0B74 0039DAD4 80 63 00 4C */ lwz r3, 0x4c(r3)
/* 803A0B78 0039DAD8 48 00 7C 8D */ bl voiceUnblock
/* 803A0B7C 0039DADC 38 00 00 03 */ li r0, 3
/* 803A0B80 0039DAE0 7C 1E E9 AE */ stbx r0, r30, r29
lbl_803A0B84:
/* 803A0B84 0039DAE4 3C 60 80 55 */ lis r3, streamInfo@ha
/* 803A0B88 0039DAE8 38 63 13 F8 */ addi r3, r3, streamInfo@l
/* 803A0B8C 0039DAEC 7F A3 E8 2E */ lwzx r29, r3, r29
/* 803A0B90 0039DAF0 3C 1D 00 01 */ addis r0, r29, 1
/* 803A0B94 0039DAF4 28 00 FF FF */ cmplwi r0, 0xffff
/* 803A0B98 0039DAF8 41 82 00 70 */ beq lbl_803A0C08
/* 803A0B9C 0039DAFC 48 01 45 21 */ bl hwDisableIrq
/* 803A0BA0 0039DB00 7F A3 EB 78 */ mr r3, r29
/* 803A0BA4 0039DB04 4B FF C7 3D */ bl GetPrivateIndex
/* 803A0BA8 0039DB08 3C 03 00 01 */ addis r0, r3, 1
/* 803A0BAC 0039DB0C 28 00 FF FF */ cmplwi r0, 0xffff
/* 803A0BB0 0039DB10 41 82 00 54 */ beq lbl_803A0C04
/* 803A0BB4 0039DB14 1F A3 00 64 */ mulli r29, r3, 0x64
/* 803A0BB8 0039DB18 7C 1E E8 AE */ lbzx r0, r30, r29
/* 803A0BBC 0039DB1C 28 00 00 01 */ cmplwi r0, 1
/* 803A0BC0 0039DB20 41 82 00 0C */ beq lbl_803A0BCC
/* 803A0BC4 0039DB24 28 00 00 02 */ cmplwi r0, 2
/* 803A0BC8 0039DB28 40 82 00 20 */ bne lbl_803A0BE8
lbl_803A0BCC:
/* 803A0BCC 0039DB2C 3C 60 80 55 */ lis r3, streamInfo@ha
/* 803A0BD0 0039DB30 38 03 13 F8 */ addi r0, r3, streamInfo@l
/* 803A0BD4 0039DB34 7C 60 EA 14 */ add r3, r0, r29
/* 803A0BD8 0039DB38 80 63 00 4C */ lwz r3, 0x4c(r3)
/* 803A0BDC 0039DB3C 48 00 7C 29 */ bl voiceUnblock
/* 803A0BE0 0039DB40 38 00 00 03 */ li r0, 3
/* 803A0BE4 0039DB44 7C 1E E9 AE */ stbx r0, r30, r29
lbl_803A0BE8:
/* 803A0BE8 0039DB48 3C 60 80 55 */ lis r3, streamInfo@ha
/* 803A0BEC 0039DB4C 38 63 13 F8 */ addi r3, r3, streamInfo@l
/* 803A0BF0 0039DB50 7C 63 E8 2E */ lwzx r3, r3, r29
/* 803A0BF4 0039DB54 3C 03 00 01 */ addis r0, r3, 1
/* 803A0BF8 0039DB58 28 00 FF FF */ cmplwi r0, 0xffff
/* 803A0BFC 0039DB5C 41 82 00 08 */ beq lbl_803A0C04
/* 803A0C00 0039DB60 4B FF F9 21 */ bl sndStreamDeactivate
lbl_803A0C04:
/* 803A0C04 0039DB64 48 01 44 81 */ bl hwEnableIrq
lbl_803A0C08:
/* 803A0C08 0039DB68 48 01 44 7D */ bl hwEnableIrq
lbl_803A0C0C:
/* 803A0C0C 0039DB6C 48 01 44 79 */ bl hwEnableIrq
lbl_803A0C10:
/* 803A0C10 0039DB70 48 01 44 75 */ bl hwEnableIrq
lbl_803A0C14:
/* 803A0C14 0039DB74 48 01 44 71 */ bl hwEnableIrq
/* 803A0C18 0039DB78 80 01 00 24 */ lwz r0, 0x24(r1)
/* 803A0C1C 0039DB7C 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 803A0C20 0039DB80 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 803A0C24 0039DB84 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 803A0C28 0039DB88 7C 08 03 A6 */ mtlr r0
/* 803A0C2C 0039DB8C 38 21 00 20 */ addi r1, r1, 0x20
/* 803A0C30 0039DB90 4E 80 00 20 */ blr