donut-decomp/asm/libnw4r_snd/snd_Channel.s

1351 lines
70 KiB
ArmAsm

.include "macros.inc"
.section .text, "ax" # 0x80006A00 - 0x80406260 ; 0x003FF860
.global GetInstance__Q44nw4r3snd6detail14ChannelManagerFv
GetInstance__Q44nw4r3snd6detail14ChannelManagerFv:
/* 80106ED0 00102D10 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 80106ED4 00102D14 7C 08 02 A6 */ mflr r0
/* 80106ED8 00102D18 90 01 00 14 */ stw r0, 0x14(r1)
/* 80106EDC 00102D1C 88 0D EB E0 */ lbz r0, "@GUARD@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance"@sda21(r13)
/* 80106EE0 00102D20 7C 00 07 75 */ extsb. r0, r0
/* 80106EE4 00102D24 40 82 00 48 */ bne lbl_80106F2C
/* 80106EE8 00102D28 3C C0 80 53 */ lis r6, "@LOCAL@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance"@ha
/* 80106EEC 00102D2C 38 00 00 00 */ li r0, 0x0
/* 80106EF0 00102D30 38 66 89 78 */ addi r3, r6, "@LOCAL@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance"@l
/* 80106EF4 00102D34 3C 80 80 10 */ lis r4, __dt__Q44nw4r3snd6detail14ChannelManagerFv@ha
/* 80106EF8 00102D38 38 E3 00 08 */ addi r7, r3, 0x8
/* 80106EFC 00102D3C 3C A0 80 53 */ lis r5, "@8748"@ha
/* 80106F00 00102D40 90 06 89 78 */ stw r0, -0x7688(r6)
/* 80106F04 00102D44 38 84 6F 50 */ addi r4, r4, __dt__Q44nw4r3snd6detail14ChannelManagerFv@l
/* 80106F08 00102D48 38 A5 89 68 */ addi r5, r5, "@8748"@l
/* 80106F0C 00102D4C 90 03 00 04 */ stw r0, 0x4(r3)
/* 80106F10 00102D50 90 E3 00 08 */ stw r7, 0x8(r3)
/* 80106F14 00102D54 90 E3 00 0C */ stw r7, 0xc(r3)
/* 80106F18 00102D58 98 03 00 10 */ stb r0, 0x10(r3)
/* 80106F1C 00102D5C 90 03 00 14 */ stw r0, 0x14(r3)
/* 80106F20 00102D60 4B EF FC 51 */ bl lbl_80006B70
/* 80106F24 00102D64 38 00 00 01 */ li r0, 0x1
/* 80106F28 00102D68 98 0D EB E0 */ stb r0, "@GUARD@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance"@sda21(r13)
.global lbl_80106F2C
lbl_80106F2C:
/* 80106F2C 00102D6C 80 01 00 14 */ lwz r0, 0x14(r1)
/* 80106F30 00102D70 3C 60 80 53 */ lis r3, "@LOCAL@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance"@ha
/* 80106F34 00102D74 38 63 89 78 */ addi r3, r3, "@LOCAL@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance"@l
/* 80106F38 00102D78 7C 08 03 A6 */ mtlr r0
/* 80106F3C 00102D7C 38 21 00 10 */ addi r1, r1, 0x10
/* 80106F40 00102D80 4E 80 00 20 */ blr
/* 80106F44 00102D84 00 00 00 00 */ .4byte 0x00000000
/* 80106F48 00102D88 00 00 00 00 */ .4byte 0x00000000
/* 80106F4C 00102D8C 00 00 00 00 */ .4byte 0x00000000
.global __dt__Q44nw4r3snd6detail14ChannelManagerFv
__dt__Q44nw4r3snd6detail14ChannelManagerFv:
/* 80106F50 00102D90 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 80106F54 00102D94 7C 08 02 A6 */ mflr r0
/* 80106F58 00102D98 2C 03 00 00 */ cmpwi r3, 0x0
/* 80106F5C 00102D9C 90 01 00 14 */ stw r0, 0x14(r1)
/* 80106F60 00102DA0 93 E1 00 0C */ stw r31, 0xc(r1)
/* 80106F64 00102DA4 7C 9F 23 78 */ mr r31, r4
/* 80106F68 00102DA8 93 C1 00 08 */ stw r30, 0x8(r1)
/* 80106F6C 00102DAC 7C 7E 1B 78 */ mr r30, r3
/* 80106F70 00102DB0 41 82 00 24 */ beq lbl_80106F94
/* 80106F74 00102DB4 34 63 00 04 */ addic. r3, r3, 0x4
/* 80106F78 00102DB8 41 82 00 0C */ beq lbl_80106F84
/* 80106F7C 00102DBC 38 80 00 00 */ li r4, 0x0
/* 80106F80 00102DC0 48 01 8D 01 */ bl __dt__Q44nw4r2ut6detail12LinkListImplFv
.global lbl_80106F84
lbl_80106F84:
/* 80106F84 00102DC4 2C 1F 00 00 */ cmpwi r31, 0x0
/* 80106F88 00102DC8 40 81 00 0C */ ble lbl_80106F94
/* 80106F8C 00102DCC 7F C3 F3 78 */ mr r3, r30
/* 80106F90 00102DD0 48 0B 87 85 */ bl __dl__FPv
.global lbl_80106F94
lbl_80106F94:
/* 80106F94 00102DD4 7F C3 F3 78 */ mr r3, r30
/* 80106F98 00102DD8 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 80106F9C 00102DDC 83 C1 00 08 */ lwz r30, 0x8(r1)
/* 80106FA0 00102DE0 80 01 00 14 */ lwz r0, 0x14(r1)
/* 80106FA4 00102DE4 7C 08 03 A6 */ mtlr r0
/* 80106FA8 00102DE8 38 21 00 10 */ addi r1, r1, 0x10
/* 80106FAC 00102DEC 4E 80 00 20 */ blr
.global GetRequiredMemSize__Q44nw4r3snd6detail14ChannelManagerFi
GetRequiredMemSize__Q44nw4r3snd6detail14ChannelManagerFi:
/* 80106FB0 00102DF0 38 04 00 01 */ addi r0, r4, 0x1
/* 80106FB4 00102DF4 1C 60 00 E0 */ mulli r3, r0, 0xe0
/* 80106FB8 00102DF8 4E 80 00 20 */ blr
/* 80106FBC 00102DFC 00 00 00 00 */ .4byte 0x00000000
.global Setup__Q44nw4r3snd6detail14ChannelManagerFPvUl
Setup__Q44nw4r3snd6detail14ChannelManagerFPvUl:
/* 80106FC0 00102E00 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80106FC4 00102E04 7C 08 02 A6 */ mflr r0
/* 80106FC8 00102E08 90 01 00 24 */ stw r0, 0x24(r1)
/* 80106FCC 00102E0C 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 80106FD0 00102E10 93 C1 00 18 */ stw r30, 0x18(r1)
/* 80106FD4 00102E14 7C BE 2B 78 */ mr r30, r5
/* 80106FD8 00102E18 93 A1 00 14 */ stw r29, 0x14(r1)
/* 80106FDC 00102E1C 7C 9D 23 78 */ mr r29, r4
/* 80106FE0 00102E20 93 81 00 10 */ stw r28, 0x10(r1)
/* 80106FE4 00102E24 7C 7C 1B 78 */ mr r28, r3
/* 80106FE8 00102E28 4B F1 A8 39 */ bl OSDisableInterrupts
/* 80106FEC 00102E2C 88 1C 00 10 */ lbz r0, 0x10(r28)
/* 80106FF0 00102E30 7C 7F 1B 78 */ mr r31, r3
/* 80106FF4 00102E34 2C 00 00 00 */ cmpwi r0, 0x0
/* 80106FF8 00102E38 41 82 00 0C */ beq lbl_80107004
/* 80106FFC 00102E3C 4B F1 A8 65 */ bl OSRestoreInterrupts
/* 80107000 00102E40 48 00 00 34 */ b lbl_80107034
.global lbl_80107004
lbl_80107004:
/* 80107004 00102E44 7F 83 E3 78 */ mr r3, r28
/* 80107008 00102E48 7F A4 EB 78 */ mr r4, r29
/* 8010700C 00102E4C 7F C5 F3 78 */ mr r5, r30
/* 80107010 00102E50 38 C0 00 E0 */ li r6, 0xe0
/* 80107014 00102E54 48 00 28 DD */ bl CreateImpl__Q44nw4r3snd6detail8PoolImplFPvUlUl
/* 80107018 00102E58 90 7C 00 14 */ stw r3, 0x14(r28)
/* 8010701C 00102E5C 38 00 00 01 */ li r0, 0x1
/* 80107020 00102E60 7F E3 FB 78 */ mr r3, r31
/* 80107024 00102E64 93 BC 00 18 */ stw r29, 0x18(r28)
/* 80107028 00102E68 93 DC 00 1C */ stw r30, 0x1c(r28)
/* 8010702C 00102E6C 98 1C 00 10 */ stb r0, 0x10(r28)
/* 80107030 00102E70 4B F1 A8 31 */ bl OSRestoreInterrupts
.global lbl_80107034
lbl_80107034:
/* 80107034 00102E74 80 01 00 24 */ lwz r0, 0x24(r1)
/* 80107038 00102E78 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 8010703C 00102E7C 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 80107040 00102E80 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 80107044 00102E84 83 81 00 10 */ lwz r28, 0x10(r1)
/* 80107048 00102E88 7C 08 03 A6 */ mtlr r0
/* 8010704C 00102E8C 38 21 00 20 */ addi r1, r1, 0x20
/* 80107050 00102E90 4E 80 00 20 */ blr
/* 80107054 00102E94 00 00 00 00 */ .4byte 0x00000000
/* 80107058 00102E98 00 00 00 00 */ .4byte 0x00000000
/* 8010705C 00102E9C 00 00 00 00 */ .4byte 0x00000000
.global Shutdown__Q44nw4r3snd6detail14ChannelManagerFv
Shutdown__Q44nw4r3snd6detail14ChannelManagerFv:
/* 80107060 00102EA0 94 21 FF C0 */ stwu r1, -0x40(r1)
/* 80107064 00102EA4 7C 08 02 A6 */ mflr r0
/* 80107068 00102EA8 90 01 00 44 */ stw r0, 0x44(r1)
/* 8010706C 00102EAC 39 61 00 40 */ addi r11, r1, 0x40
/* 80107070 00102EB0 4B F0 02 B5 */ bl lbl_80007324
/* 80107074 00102EB4 7C 7F 1B 78 */ mr r31, r3
/* 80107078 00102EB8 4B F1 A7 A9 */ bl OSDisableInterrupts
/* 8010707C 00102EBC 88 1F 00 10 */ lbz r0, 0x10(r31)
/* 80107080 00102EC0 7C 7E 1B 78 */ mr r30, r3
/* 80107084 00102EC4 2C 00 00 00 */ cmpwi r0, 0x0
/* 80107088 00102EC8 40 82 00 0C */ bne lbl_80107094
/* 8010708C 00102ECC 4B F1 A7 D5 */ bl OSRestoreInterrupts
/* 80107090 00102ED0 48 00 01 2C */ b lbl_801071BC
.global lbl_80107094
lbl_80107094:
/* 80107094 00102ED4 3F 00 80 53 */ lis r24, "@LOCAL@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance"@ha
/* 80107098 00102ED8 83 BF 00 08 */ lwz r29, 0x8(r31)
/* 8010709C 00102EDC 3A D8 89 78 */ addi r22, r24, "@LOCAL@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance"@l
/* 801070A0 00102EE0 3B 9F 00 08 */ addi r28, r31, 0x8
/* 801070A4 00102EE4 3A E0 00 00 */ li r23, 0x0
/* 801070A8 00102EE8 3F 20 80 10 */ lis r25, __dt__Q44nw4r3snd6detail14ChannelManagerFv@ha
/* 801070AC 00102EEC 3F 40 80 53 */ lis r26, "@8748"@ha
/* 801070B0 00102EF0 3B 60 00 01 */ li r27, 0x1
/* 801070B4 00102EF4 48 00 00 E0 */ b lbl_80107194
.global lbl_801070B8
lbl_801070B8:
/* 801070B8 00102EF8 7F A3 EB 78 */ mr r3, r29
/* 801070BC 00102EFC 83 BD 00 00 */ lwz r29, 0x0(r29)
/* 801070C0 00102F00 3A A3 FF 28 */ addi r21, r3, -0xd8
/* 801070C4 00102F04 80 63 FF F8 */ lwz r3, -0x8(r3)
/* 801070C8 00102F08 2C 03 00 00 */ cmpwi r3, 0x0
/* 801070CC 00102F0C 41 82 00 C8 */ beq lbl_80107194
/* 801070D0 00102F10 48 01 38 41 */ bl Stop__Q44nw4r3snd6detail5VoiceFv
/* 801070D4 00102F14 80 75 00 D0 */ lwz r3, 0xd0(r21)
/* 801070D8 00102F18 48 01 35 49 */ bl Free__Q44nw4r3snd6detail5VoiceFv
/* 801070DC 00102F1C 92 F5 00 D0 */ stw r23, 0xd0(r21)
/* 801070E0 00102F20 9A F5 00 35 */ stb r23, 0x35(r21)
/* 801070E4 00102F24 9A F5 00 36 */ stb r23, 0x36(r21)
/* 801070E8 00102F28 81 95 00 C0 */ lwz r12, 0xc0(r21)
/* 801070EC 00102F2C 2C 0C 00 00 */ cmpwi r12, 0x0
/* 801070F0 00102F30 41 82 00 18 */ beq lbl_80107108
/* 801070F4 00102F34 7E A3 AB 78 */ mr r3, r21
/* 801070F8 00102F38 80 B5 00 C4 */ lwz r5, 0xc4(r21)
/* 801070FC 00102F3C 38 80 00 00 */ li r4, 0x0
/* 80107100 00102F40 7D 89 03 A6 */ mtctr r12
/* 80107104 00102F44 4E 80 04 21 */ bctrl
.global lbl_80107108
lbl_80107108:
/* 80107108 00102F48 80 75 00 C8 */ lwz r3, 0xc8(r21)
/* 8010710C 00102F4C 2C 03 00 00 */ cmpwi r3, 0x0
/* 80107110 00102F50 41 82 00 18 */ beq lbl_80107128
/* 80107114 00102F54 81 83 00 00 */ lwz r12, 0x0(r3)
/* 80107118 00102F58 80 95 00 CC */ lwz r4, 0xcc(r21)
/* 8010711C 00102F5C 81 8C 00 0C */ lwz r12, 0xc(r12)
/* 80107120 00102F60 7D 89 03 A6 */ mtctr r12
/* 80107124 00102F64 4E 80 04 21 */ bctrl
.global lbl_80107128
lbl_80107128:
/* 80107128 00102F68 88 15 00 37 */ lbz r0, 0x37(r21)
/* 8010712C 00102F6C 2C 00 00 00 */ cmpwi r0, 0x0
/* 80107130 00102F70 41 82 00 64 */ beq lbl_80107194
/* 80107134 00102F74 9A F5 00 37 */ stb r23, 0x37(r21)
/* 80107138 00102F78 88 0D EB E0 */ lbz r0, "@GUARD@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance"@sda21(r13)
/* 8010713C 00102F7C 7C 00 07 75 */ extsb. r0, r0
/* 80107140 00102F80 40 82 00 34 */ bne lbl_80107174
/* 80107144 00102F84 38 16 00 08 */ addi r0, r22, 0x8
/* 80107148 00102F88 92 F8 89 78 */ stw r23, -0x7688(r24)
/* 8010714C 00102F8C 7E C3 B3 78 */ mr r3, r22
/* 80107150 00102F90 38 99 6F 50 */ addi r4, r25, __dt__Q44nw4r3snd6detail14ChannelManagerFv@l
/* 80107154 00102F94 92 F6 00 04 */ stw r23, 0x4(r22)
/* 80107158 00102F98 38 BA 89 68 */ addi r5, r26, "@8748"@l
/* 8010715C 00102F9C 90 16 00 08 */ stw r0, 0x8(r22)
/* 80107160 00102FA0 90 16 00 0C */ stw r0, 0xc(r22)
/* 80107164 00102FA4 9A F6 00 10 */ stb r23, 0x10(r22)
/* 80107168 00102FA8 92 F6 00 14 */ stw r23, 0x14(r22)
/* 8010716C 00102FAC 4B EF FA 05 */ bl lbl_80006B70
/* 80107170 00102FB0 9B 6D EB E0 */ stb r27, "@GUARD@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance"@sda21(r13)
.global lbl_80107174
lbl_80107174:
/* 80107174 00102FB4 38 76 00 04 */ addi r3, r22, 0x4
/* 80107178 00102FB8 38 95 00 D8 */ addi r4, r21, 0xd8
/* 8010717C 00102FBC 48 01 8C 65 */ bl Erase__Q44nw4r2ut6detail12LinkListImplFPQ34nw4r2ut12LinkListNode
/* 80107180 00102FC0 2C 15 00 00 */ cmpwi r21, 0x0
/* 80107184 00102FC4 41 82 00 10 */ beq lbl_80107194
/* 80107188 00102FC8 7E C3 B3 78 */ mr r3, r22
/* 8010718C 00102FCC 7E A4 AB 78 */ mr r4, r21
/* 80107190 00102FD0 48 00 2A 01 */ bl FreeImpl__Q44nw4r3snd6detail8PoolImplFPv
.global lbl_80107194
lbl_80107194:
/* 80107194 00102FD4 7C 1D E0 40 */ cmplw r29, r28
/* 80107198 00102FD8 40 82 FF 20 */ bne lbl_801070B8
/* 8010719C 00102FDC 80 9F 00 18 */ lwz r4, 0x18(r31)
/* 801071A0 00102FE0 7F E3 FB 78 */ mr r3, r31
/* 801071A4 00102FE4 80 BF 00 1C */ lwz r5, 0x1c(r31)
/* 801071A8 00102FE8 48 00 28 99 */ bl DestroyImpl__Q44nw4r3snd6detail8PoolImplFPvUl
/* 801071AC 00102FEC 38 00 00 00 */ li r0, 0x0
/* 801071B0 00102FF0 98 1F 00 10 */ stb r0, 0x10(r31)
/* 801071B4 00102FF4 7F C3 F3 78 */ mr r3, r30
/* 801071B8 00102FF8 4B F1 A6 A9 */ bl OSRestoreInterrupts
.global lbl_801071BC
lbl_801071BC:
/* 801071BC 00102FFC 39 61 00 40 */ addi r11, r1, 0x40
/* 801071C0 00103000 4B F0 01 B1 */ bl lbl_80007370
/* 801071C4 00103004 80 01 00 44 */ lwz r0, 0x44(r1)
/* 801071C8 00103008 7C 08 03 A6 */ mtlr r0
/* 801071CC 0010300C 38 21 00 40 */ addi r1, r1, 0x40
/* 801071D0 00103010 4E 80 00 20 */ blr
/* 801071D4 00103014 00 00 00 00 */ .4byte 0x00000000
/* 801071D8 00103018 00 00 00 00 */ .4byte 0x00000000
/* 801071DC 0010301C 00 00 00 00 */ .4byte 0x00000000
.global UpdateAllChannel__Q44nw4r3snd6detail14ChannelManagerFv
UpdateAllChannel__Q44nw4r3snd6detail14ChannelManagerFv:
/* 801071E0 00103020 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 801071E4 00103024 7C 08 02 A6 */ mflr r0
/* 801071E8 00103028 90 01 00 14 */ stw r0, 0x14(r1)
/* 801071EC 0010302C 93 E1 00 0C */ stw r31, 0xc(r1)
/* 801071F0 00103030 93 C1 00 08 */ stw r30, 0x8(r1)
/* 801071F4 00103034 3B C3 00 08 */ addi r30, r3, 0x8
/* 801071F8 00103038 83 E3 00 08 */ lwz r31, 0x8(r3)
/* 801071FC 0010303C 48 00 00 18 */ b lbl_80107214
.global lbl_80107200
lbl_80107200:
/* 80107200 00103040 7F E3 FB 78 */ mr r3, r31
/* 80107204 00103044 83 FF 00 00 */ lwz r31, 0x0(r31)
/* 80107208 00103048 38 63 FF 28 */ addi r3, r3, -0xd8
/* 8010720C 0010304C 38 80 00 01 */ li r4, 0x1
/* 80107210 00103050 48 00 01 41 */ bl Update__Q44nw4r3snd6detail7ChannelFb
.global lbl_80107214
lbl_80107214:
/* 80107214 00103054 7C 1F F0 40 */ cmplw r31, r30
/* 80107218 00103058 40 82 FF E8 */ bne lbl_80107200
/* 8010721C 0010305C 80 01 00 14 */ lwz r0, 0x14(r1)
/* 80107220 00103060 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 80107224 00103064 83 C1 00 08 */ lwz r30, 0x8(r1)
/* 80107228 00103068 7C 08 03 A6 */ mtlr r0
/* 8010722C 0010306C 38 21 00 10 */ addi r1, r1, 0x10
/* 80107230 00103070 4E 80 00 20 */ blr
/* 80107234 00103074 00 00 00 00 */ .4byte 0x00000000
/* 80107238 00103078 00 00 00 00 */ .4byte 0x00000000
/* 8010723C 0010307C 00 00 00 00 */ .4byte 0x00000000
.global InitParam__Q44nw4r3snd6detail7ChannelFPFPQ44nw4r3snd6detail7ChannelQ54nw4r3snd6detail7Channel21ChannelCallbackStatusUl_vUl
InitParam__Q44nw4r3snd6detail7ChannelFPFPQ44nw4r3snd6detail7ChannelQ54nw4r3snd6detail7Channel21ChannelCallbackStatusUl_vUl:
/* 80107240 00103080 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 80107244 00103084 7C 08 02 A6 */ mflr r0
/* 80107248 00103088 C0 02 93 50 */ lfs f0, "@10013"@sda21(r2)
/* 8010724C 0010308C 38 E0 00 01 */ li r7, 0x1
/* 80107250 00103090 90 01 00 14 */ stw r0, 0x14(r1)
/* 80107254 00103094 38 C0 00 3C */ li r6, 0x3c
/* 80107258 00103098 C0 42 93 54 */ lfs f2, "@10140"@sda21(r2)
/* 8010725C 0010309C 38 00 00 FF */ li r0, 0xff
/* 80107260 001030A0 93 E1 00 0C */ stw r31, 0xc(r1)
/* 80107264 001030A4 3B E0 00 00 */ li r31, 0x0
/* 80107268 001030A8 C0 22 93 78 */ lfs f1, VOLUME_INIT__Q44nw4r3snd6detail12EnvGenerator@sda21(r2)
/* 8010726C 001030AC 93 C1 00 08 */ stw r30, 0x8(r1)
/* 80107270 001030B0 7C 7E 1B 78 */ mr r30, r3
/* 80107274 001030B4 93 E3 00 D4 */ stw r31, 0xd4(r3)
/* 80107278 001030B8 90 83 00 C0 */ stw r4, 0xc0(r3)
/* 8010727C 001030BC 90 A3 00 C4 */ stw r5, 0xc4(r3)
/* 80107280 001030C0 93 E3 00 C8 */ stw r31, 0xc8(r3)
/* 80107284 001030C4 93 E3 00 CC */ stw r31, 0xcc(r3)
/* 80107288 001030C8 9B E3 00 35 */ stb r31, 0x35(r3)
/* 8010728C 001030CC 98 E3 00 38 */ stb r7, 0x38(r3)
/* 80107290 001030D0 9B E3 00 39 */ stb r31, 0x39(r3)
/* 80107294 001030D4 9B E3 00 3A */ stb r31, 0x3a(r3)
/* 80107298 001030D8 93 E3 00 B0 */ stw r31, 0xb0(r3)
/* 8010729C 001030DC 90 C3 00 A8 */ stw r6, 0xa8(r3)
/* 801072A0 001030E0 90 C3 00 AC */ stw r6, 0xac(r3)
/* 801072A4 001030E4 D0 43 00 90 */ stfs f2, 0x90(r3)
/* 801072A8 001030E8 D0 03 00 94 */ stfs f0, 0x94(r3)
/* 801072AC 001030EC D0 03 00 98 */ stfs f0, 0x98(r3)
/* 801072B0 001030F0 D0 43 00 9C */ stfs f2, 0x9c(r3)
/* 801072B4 001030F4 D0 43 00 40 */ stfs f2, 0x40(r3)
/* 801072B8 001030F8 D0 03 00 80 */ stfs f0, 0x80(r3)
/* 801072BC 001030FC D0 43 00 44 */ stfs f2, 0x44(r3)
/* 801072C0 00103100 D0 03 00 48 */ stfs f0, 0x48(r3)
/* 801072C4 00103104 D0 03 00 4C */ stfs f0, 0x4c(r3)
/* 801072C8 00103108 D0 03 00 50 */ stfs f0, 0x50(r3)
/* 801072CC 0010310C 9B E3 00 3B */ stb r31, 0x3b(r3)
/* 801072D0 00103110 D0 03 00 54 */ stfs f0, 0x54(r3)
/* 801072D4 00103114 9B E3 00 3C */ stb r31, 0x3c(r3)
/* 801072D8 00103118 90 E3 00 58 */ stw r7, 0x58(r3)
/* 801072DC 0010311C D0 43 00 5C */ stfs f2, 0x5c(r3)
/* 801072E0 00103120 D0 03 00 60 */ stfs f0, 0x60(r3)
/* 801072E4 00103124 D0 03 00 64 */ stfs f0, 0x64(r3)
/* 801072E8 00103128 D0 03 00 68 */ stfs f0, 0x68(r3)
/* 801072EC 0010312C D0 03 00 6C */ stfs f0, 0x6c(r3)
/* 801072F0 00103130 D0 43 00 70 */ stfs f2, 0x70(r3)
/* 801072F4 00103134 D0 43 00 74 */ stfs f2, 0x74(r3)
/* 801072F8 00103138 D0 43 00 78 */ stfs f2, 0x78(r3)
/* 801072FC 0010313C D0 43 00 7C */ stfs f2, 0x7c(r3)
/* 80107300 00103140 98 03 00 A0 */ stb r0, 0xa0(r3)
/* 80107304 00103144 98 03 00 A1 */ stb r0, 0xa1(r3)
/* 80107308 00103148 B3 E3 00 A2 */ sth r31, 0xa2(r3)
/* 8010730C 0010314C B3 E3 00 A4 */ sth r31, 0xa4(r3)
/* 80107310 00103150 D0 03 00 84 */ stfs f0, 0x84(r3)
/* 80107314 00103154 93 E3 00 8C */ stw r31, 0x8c(r3)
/* 80107318 00103158 93 E3 00 88 */ stw r31, 0x88(r3)
/* 8010731C 0010315C 48 00 18 65 */ bl Init__Q44nw4r3snd6detail12EnvGeneratorFf
/* 80107320 00103160 38 7E 00 1C */ addi r3, r30, 0x1c
/* 80107324 00103164 48 00 28 BD */ bl Init__Q44nw4r3snd6detail8LfoParamFv
/* 80107328 00103168 9B FE 00 34 */ stb r31, 0x34(r30)
/* 8010732C 0010316C 93 FE 00 B4 */ stw r31, 0xb4(r30)
/* 80107330 00103170 93 FE 00 B8 */ stw r31, 0xb8(r30)
/* 80107334 00103174 93 FE 00 BC */ stw r31, 0xbc(r30)
/* 80107338 00103178 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 8010733C 0010317C 83 C1 00 08 */ lwz r30, 0x8(r1)
/* 80107340 00103180 80 01 00 14 */ lwz r0, 0x14(r1)
/* 80107344 00103184 7C 08 03 A6 */ mtlr r0
/* 80107348 00103188 38 21 00 10 */ addi r1, r1, 0x10
/* 8010734C 0010318C 4E 80 00 20 */ blr
.global Update__Q44nw4r3snd6detail7ChannelFb
Update__Q44nw4r3snd6detail7ChannelFb:
/* 80107350 00103190 94 21 FF 10 */ stwu r1, -0xf0(r1)
/* 80107354 00103194 7C 08 02 A6 */ mflr r0
/* 80107358 00103198 3C A0 43 30 */ lis r5, 0x4330
/* 8010735C 0010319C 90 01 00 F4 */ stw r0, 0xf4(r1)
/* 80107360 001031A0 DB E1 00 E0 */ stfd f31, 0xe0(r1)
/* 80107364 001031A4 F3 E1 00 E8 */ psq_st f31, 0xe8(r1), 0, qr0
/* 80107368 001031A8 DB C1 00 D0 */ stfd f30, 0xd0(r1)
/* 8010736C 001031AC F3 C1 00 D8 */ psq_st f30, 0xd8(r1), 0, qr0
/* 80107370 001031B0 DB A1 00 C0 */ stfd f29, 0xc0(r1)
/* 80107374 001031B4 F3 A1 00 C8 */ psq_st f29, 0xc8(r1), 0, qr0
/* 80107378 001031B8 DB 81 00 B0 */ stfd f28, 0xb0(r1)
/* 8010737C 001031BC F3 81 00 B8 */ psq_st f28, 0xb8(r1), 0, qr0
/* 80107380 001031C0 DB 61 00 A0 */ stfd f27, 0xa0(r1)
/* 80107384 001031C4 F3 61 00 A8 */ psq_st f27, 0xa8(r1), 0, qr0
/* 80107388 001031C8 DB 41 00 90 */ stfd f26, 0x90(r1)
/* 8010738C 001031CC F3 41 00 98 */ psq_st f26, 0x98(r1), 0, qr0
/* 80107390 001031D0 DB 21 00 80 */ stfd f25, 0x80(r1)
/* 80107394 001031D4 F3 21 00 88 */ psq_st f25, 0x88(r1), 0, qr0
/* 80107398 001031D8 DB 01 00 70 */ stfd f24, 0x70(r1)
/* 8010739C 001031DC F3 01 00 78 */ psq_st f24, 0x78(r1), 0, qr0
/* 801073A0 001031E0 DA E1 00 60 */ stfd f23, 0x60(r1)
/* 801073A4 001031E4 F2 E1 00 68 */ psq_st f23, 0x68(r1), 0, qr0
/* 801073A8 001031E8 DA C1 00 50 */ stfd f22, 0x50(r1)
/* 801073AC 001031EC F2 C1 00 58 */ psq_st f22, 0x58(r1), 0, qr0
/* 801073B0 001031F0 93 E1 00 4C */ stw r31, 0x4c(r1)
/* 801073B4 001031F4 7C 9F 23 78 */ mr r31, r4
/* 801073B8 001031F8 93 C1 00 48 */ stw r30, 0x48(r1)
/* 801073BC 001031FC 7C 7E 1B 78 */ mr r30, r3
/* 801073C0 00103200 93 A1 00 44 */ stw r29, 0x44(r1)
/* 801073C4 00103204 88 03 00 36 */ lbz r0, 0x36(r3)
/* 801073C8 00103208 90 A1 00 28 */ stw r5, 0x28(r1)
/* 801073CC 0010320C 2C 00 00 00 */ cmpwi r0, 0x0
/* 801073D0 00103210 90 A1 00 30 */ stw r5, 0x30(r1)
/* 801073D4 00103214 41 82 05 EC */ beq lbl_801079C0
/* 801073D8 00103218 88 03 00 35 */ lbz r0, 0x35(r3)
/* 801073DC 0010321C 2C 00 00 00 */ cmpwi r0, 0x0
/* 801073E0 00103220 41 82 00 08 */ beq lbl_801073E8
/* 801073E4 00103224 3B E0 00 00 */ li r31, 0x0
.global lbl_801073E8
lbl_801073E8:
/* 801073E8 00103228 38 63 00 1C */ addi r3, r3, 0x1c
/* 801073EC 0010322C 48 00 28 E5 */ bl GetValue__Q44nw4r3snd6detail3LfoCFv
/* 801073F0 00103230 A0 7E 00 A4 */ lhz r3, 0xa4(r30)
/* 801073F4 00103234 FF E0 08 90 */ fmr f31, f1
/* 801073F8 00103238 A0 1E 00 A2 */ lhz r0, 0xa2(r30)
/* 801073FC 0010323C 7C 03 00 40 */ cmplw r3, r0
/* 80107400 00103240 40 80 00 0C */ bge lbl_8010740C
/* 80107404 00103244 38 03 00 01 */ addi r0, r3, 0x1
/* 80107408 00103248 B0 1E 00 A4 */ sth r0, 0xa4(r30)
.global lbl_8010740C
lbl_8010740C:
/* 8010740C 0010324C C3 C2 93 54 */ lfs f30, "@10140"@sda21(r2)
/* 80107410 00103250 C0 3E 00 90 */ lfs f1, 0x90(r30)
/* 80107414 00103254 C0 1E 00 40 */ lfs f0, 0x40(r30)
/* 80107418 00103258 EF DE 00 72 */ fmuls f30, f30, f1
/* 8010741C 0010325C A0 9E 00 A2 */ lhz r4, 0xa2(r30)
/* 80107420 00103260 A0 7E 00 A4 */ lhz r3, 0xa4(r30)
/* 80107424 00103264 7C 03 20 40 */ cmplw r3, r4
/* 80107428 00103268 EF DE 00 32 */ fmuls f30, f30, f0
/* 8010742C 0010326C 41 80 00 0C */ blt lbl_80107438
/* 80107430 00103270 88 1E 00 A1 */ lbz r0, 0xa1(r30)
/* 80107434 00103274 48 00 00 20 */ b lbl_80107454
.global lbl_80107438
lbl_80107438:
/* 80107438 00103278 88 BE 00 A0 */ lbz r5, 0xa0(r30)
/* 8010743C 0010327C 88 1E 00 A1 */ lbz r0, 0xa1(r30)
/* 80107440 00103280 7C 05 00 50 */ subf r0, r5, r0
/* 80107444 00103284 7C 03 01 D6 */ mullw r0, r3, r0
/* 80107448 00103288 7C 00 23 D6 */ divw r0, r0, r4
/* 8010744C 0010328C 7C 05 02 14 */ add r0, r5, r0
/* 80107450 00103290 54 00 06 3E */ clrlwi r0, r0, 24
.global lbl_80107454
lbl_80107454:
/* 80107454 00103294 90 01 00 2C */ stw r0, 0x2c(r1)
/* 80107458 00103298 7F C3 F3 78 */ mr r3, r30
/* 8010745C 0010329C C8 42 93 68 */ lfd f2, "@10299"@sda21(r2)
/* 80107460 001032A0 C8 21 00 28 */ lfd f1, 0x28(r1)
/* 80107464 001032A4 C0 02 93 58 */ lfs f0, "@10293"@sda21(r2)
/* 80107468 001032A8 EC 21 10 28 */ fsubs f1, f1, f2
/* 8010746C 001032AC C3 A2 93 54 */ lfs f29, "@10140"@sda21(r2)
/* 80107470 001032B0 EC 01 00 24 */ fdivs f0, f1, f0
/* 80107474 001032B4 EF DE 00 32 */ fmuls f30, f30, f0
/* 80107478 001032B8 48 00 17 69 */ bl GetValue__Q44nw4r3snd6detail12EnvGeneratorCFv
/* 8010747C 001032BC 48 01 59 B5 */ bl CalcVolumeRatio__Q44nw4r3snd6detail4UtilFf
/* 80107480 001032C0 88 1E 00 34 */ lbz r0, 0x34(r30)
/* 80107484 001032C4 EF BD 00 72 */ fmuls f29, f29, f1
/* 80107488 001032C8 28 00 00 01 */ cmplwi r0, 0x1
/* 8010748C 001032CC 40 82 00 14 */ bne lbl_801074A0
/* 80107490 001032D0 C0 02 93 5C */ lfs f0, "@10294"@sda21(r2)
/* 80107494 001032D4 EC 20 07 F2 */ fmuls f1, f0, f31
/* 80107498 001032D8 48 01 59 99 */ bl CalcVolumeRatio__Q44nw4r3snd6detail4UtilFf
/* 8010749C 001032DC EF BD 00 72 */ fmuls f29, f29, f1
.global lbl_801074A0
lbl_801074A0:
/* 801074A0 001032E0 80 1E 00 00 */ lwz r0, 0x0(r30)
/* 801074A4 001032E4 2C 00 00 04 */ cmpwi r0, 0x4
/* 801074A8 001032E8 40 82 02 14 */ bne lbl_801076BC
/* 801074AC 001032EC 80 1E 00 C0 */ lwz r0, 0xc0(r30)
/* 801074B0 001032F0 2C 00 00 00 */ cmpwi r0, 0x0
/* 801074B4 001032F4 41 82 01 04 */ beq lbl_801075B8
/* 801074B8 001032F8 C0 02 93 50 */ lfs f0, "@10013"@sda21(r2)
/* 801074BC 001032FC FC 00 E8 00 */ fcmpu cr0, f0, f29
/* 801074C0 00103300 40 82 01 FC */ bne lbl_801076BC
/* 801074C4 00103304 80 7E 00 D0 */ lwz r3, 0xd0(r30)
/* 801074C8 00103308 2C 03 00 00 */ cmpwi r3, 0x0
/* 801074CC 0010330C 41 82 04 F4 */ beq lbl_801079C0
/* 801074D0 00103310 48 01 34 41 */ bl Stop__Q44nw4r3snd6detail5VoiceFv
/* 801074D4 00103314 80 7E 00 D0 */ lwz r3, 0xd0(r30)
/* 801074D8 00103318 48 01 31 49 */ bl Free__Q44nw4r3snd6detail5VoiceFv
/* 801074DC 0010331C 81 9E 00 C0 */ lwz r12, 0xc0(r30)
/* 801074E0 00103320 38 00 00 00 */ li r0, 0x0
/* 801074E4 00103324 90 1E 00 D0 */ stw r0, 0xd0(r30)
/* 801074E8 00103328 2C 0C 00 00 */ cmpwi r12, 0x0
/* 801074EC 0010332C 98 1E 00 35 */ stb r0, 0x35(r30)
/* 801074F0 00103330 98 1E 00 36 */ stb r0, 0x36(r30)
/* 801074F4 00103334 41 82 00 18 */ beq lbl_8010750C
/* 801074F8 00103338 7F C3 F3 78 */ mr r3, r30
/* 801074FC 0010333C 80 BE 00 C4 */ lwz r5, 0xc4(r30)
/* 80107500 00103340 38 80 00 00 */ li r4, 0x0
/* 80107504 00103344 7D 89 03 A6 */ mtctr r12
/* 80107508 00103348 4E 80 04 21 */ bctrl
.global lbl_8010750C
lbl_8010750C:
/* 8010750C 0010334C 80 7E 00 C8 */ lwz r3, 0xc8(r30)
/* 80107510 00103350 2C 03 00 00 */ cmpwi r3, 0x0
/* 80107514 00103354 41 82 00 18 */ beq lbl_8010752C
/* 80107518 00103358 81 83 00 00 */ lwz r12, 0x0(r3)
/* 8010751C 0010335C 80 9E 00 CC */ lwz r4, 0xcc(r30)
/* 80107520 00103360 81 8C 00 0C */ lwz r12, 0xc(r12)
/* 80107524 00103364 7D 89 03 A6 */ mtctr r12
/* 80107528 00103368 4E 80 04 21 */ bctrl
.global lbl_8010752C
lbl_8010752C:
/* 8010752C 0010336C 88 1E 00 37 */ lbz r0, 0x37(r30)
/* 80107530 00103370 2C 00 00 00 */ cmpwi r0, 0x0
/* 80107534 00103374 41 82 04 8C */ beq lbl_801079C0
/* 80107538 00103378 38 E0 00 00 */ li r7, 0x0
/* 8010753C 0010337C 98 FE 00 37 */ stb r7, 0x37(r30)
/* 80107540 00103380 88 0D EB E0 */ lbz r0, "@GUARD@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance"@sda21(r13)
/* 80107544 00103384 7C 00 07 75 */ extsb. r0, r0
/* 80107548 00103388 40 82 00 44 */ bne lbl_8010758C
/* 8010754C 0010338C 3C C0 80 53 */ lis r6, "@LOCAL@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance"@ha
/* 80107550 00103390 3C 80 80 10 */ lis r4, __dt__Q44nw4r3snd6detail14ChannelManagerFv@ha
/* 80107554 00103394 38 66 89 78 */ addi r3, r6, "@LOCAL@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance"@l
/* 80107558 00103398 3C A0 80 53 */ lis r5, "@8748"@ha
/* 8010755C 0010339C 38 03 00 08 */ addi r0, r3, 0x8
/* 80107560 001033A0 90 E6 89 78 */ stw r7, -0x7688(r6)
/* 80107564 001033A4 38 84 6F 50 */ addi r4, r4, __dt__Q44nw4r3snd6detail14ChannelManagerFv@l
/* 80107568 001033A8 38 A5 89 68 */ addi r5, r5, "@8748"@l
/* 8010756C 001033AC 90 E3 00 04 */ stw r7, 0x4(r3)
/* 80107570 001033B0 90 03 00 08 */ stw r0, 0x8(r3)
/* 80107574 001033B4 90 03 00 0C */ stw r0, 0xc(r3)
/* 80107578 001033B8 98 E3 00 10 */ stb r7, 0x10(r3)
/* 8010757C 001033BC 90 E3 00 14 */ stw r7, 0x14(r3)
/* 80107580 001033C0 4B EF F5 F1 */ bl lbl_80006B70
/* 80107584 001033C4 38 00 00 01 */ li r0, 0x1
/* 80107588 001033C8 98 0D EB E0 */ stb r0, "@GUARD@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance"@sda21(r13)
.global lbl_8010758C
lbl_8010758C:
/* 8010758C 001033CC 3F E0 80 53 */ lis r31, "@LOCAL@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance"@ha
/* 80107590 001033D0 38 9E 00 D8 */ addi r4, r30, 0xd8
/* 80107594 001033D4 3B FF 89 78 */ addi r31, r31, "@LOCAL@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance"@l
/* 80107598 001033D8 38 7F 00 04 */ addi r3, r31, 0x4
/* 8010759C 001033DC 48 01 88 45 */ bl Erase__Q44nw4r2ut6detail12LinkListImplFPQ34nw4r2ut12LinkListNode
/* 801075A0 001033E0 2C 1E 00 00 */ cmpwi r30, 0x0
/* 801075A4 001033E4 41 82 04 1C */ beq lbl_801079C0
/* 801075A8 001033E8 7F E3 FB 78 */ mr r3, r31
/* 801075AC 001033EC 7F C4 F3 78 */ mr r4, r30
/* 801075B0 001033F0 48 00 25 E1 */ bl FreeImpl__Q44nw4r3snd6detail8PoolImplFPv
/* 801075B4 001033F4 48 00 04 0C */ b lbl_801079C0
.global lbl_801075B8
lbl_801075B8:
/* 801075B8 001033F8 EC 1E 07 72 */ fmuls f0, f30, f29
/* 801075BC 001033FC C0 22 93 50 */ lfs f1, "@10013"@sda21(r2)
/* 801075C0 00103400 FC 01 00 00 */ fcmpu cr0, f1, f0
/* 801075C4 00103404 40 82 00 F8 */ bne lbl_801076BC
/* 801075C8 00103408 80 7E 00 D0 */ lwz r3, 0xd0(r30)
/* 801075CC 0010340C 2C 03 00 00 */ cmpwi r3, 0x0
/* 801075D0 00103410 41 82 03 F0 */ beq lbl_801079C0
/* 801075D4 00103414 48 01 33 3D */ bl Stop__Q44nw4r3snd6detail5VoiceFv
/* 801075D8 00103418 80 7E 00 D0 */ lwz r3, 0xd0(r30)
/* 801075DC 0010341C 48 01 30 45 */ bl Free__Q44nw4r3snd6detail5VoiceFv
/* 801075E0 00103420 81 9E 00 C0 */ lwz r12, 0xc0(r30)
/* 801075E4 00103424 38 00 00 00 */ li r0, 0x0
/* 801075E8 00103428 90 1E 00 D0 */ stw r0, 0xd0(r30)
/* 801075EC 0010342C 2C 0C 00 00 */ cmpwi r12, 0x0
/* 801075F0 00103430 98 1E 00 35 */ stb r0, 0x35(r30)
/* 801075F4 00103434 98 1E 00 36 */ stb r0, 0x36(r30)
/* 801075F8 00103438 41 82 00 18 */ beq lbl_80107610
/* 801075FC 0010343C 7F C3 F3 78 */ mr r3, r30
/* 80107600 00103440 80 BE 00 C4 */ lwz r5, 0xc4(r30)
/* 80107604 00103444 38 80 00 00 */ li r4, 0x0
/* 80107608 00103448 7D 89 03 A6 */ mtctr r12
/* 8010760C 0010344C 4E 80 04 21 */ bctrl
.global lbl_80107610
lbl_80107610:
/* 80107610 00103450 80 7E 00 C8 */ lwz r3, 0xc8(r30)
/* 80107614 00103454 2C 03 00 00 */ cmpwi r3, 0x0
/* 80107618 00103458 41 82 00 18 */ beq lbl_80107630
/* 8010761C 0010345C 81 83 00 00 */ lwz r12, 0x0(r3)
/* 80107620 00103460 80 9E 00 CC */ lwz r4, 0xcc(r30)
/* 80107624 00103464 81 8C 00 0C */ lwz r12, 0xc(r12)
/* 80107628 00103468 7D 89 03 A6 */ mtctr r12
/* 8010762C 0010346C 4E 80 04 21 */ bctrl
.global lbl_80107630
lbl_80107630:
/* 80107630 00103470 88 1E 00 37 */ lbz r0, 0x37(r30)
/* 80107634 00103474 2C 00 00 00 */ cmpwi r0, 0x0
/* 80107638 00103478 41 82 03 88 */ beq lbl_801079C0
/* 8010763C 0010347C 38 E0 00 00 */ li r7, 0x0
/* 80107640 00103480 98 FE 00 37 */ stb r7, 0x37(r30)
/* 80107644 00103484 88 0D EB E0 */ lbz r0, "@GUARD@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance"@sda21(r13)
/* 80107648 00103488 7C 00 07 75 */ extsb. r0, r0
/* 8010764C 0010348C 40 82 00 44 */ bne lbl_80107690
/* 80107650 00103490 3C C0 80 53 */ lis r6, "@LOCAL@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance"@ha
/* 80107654 00103494 3C 80 80 10 */ lis r4, __dt__Q44nw4r3snd6detail14ChannelManagerFv@ha
/* 80107658 00103498 38 66 89 78 */ addi r3, r6, "@LOCAL@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance"@l
/* 8010765C 0010349C 3C A0 80 53 */ lis r5, "@8748"@ha
/* 80107660 001034A0 38 03 00 08 */ addi r0, r3, 0x8
/* 80107664 001034A4 90 E6 89 78 */ stw r7, -0x7688(r6)
/* 80107668 001034A8 38 84 6F 50 */ addi r4, r4, __dt__Q44nw4r3snd6detail14ChannelManagerFv@l
/* 8010766C 001034AC 38 A5 89 68 */ addi r5, r5, "@8748"@l
/* 80107670 001034B0 90 E3 00 04 */ stw r7, 0x4(r3)
/* 80107674 001034B4 90 03 00 08 */ stw r0, 0x8(r3)
/* 80107678 001034B8 90 03 00 0C */ stw r0, 0xc(r3)
/* 8010767C 001034BC 98 E3 00 10 */ stb r7, 0x10(r3)
/* 80107680 001034C0 90 E3 00 14 */ stw r7, 0x14(r3)
/* 80107684 001034C4 4B EF F4 ED */ bl lbl_80006B70
/* 80107688 001034C8 38 00 00 01 */ li r0, 0x1
/* 8010768C 001034CC 98 0D EB E0 */ stb r0, "@GUARD@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance"@sda21(r13)
.global lbl_80107690
lbl_80107690:
/* 80107690 001034D0 3F E0 80 53 */ lis r31, "@LOCAL@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance"@ha
/* 80107694 001034D4 38 9E 00 D8 */ addi r4, r30, 0xd8
/* 80107698 001034D8 3B FF 89 78 */ addi r31, r31, "@LOCAL@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance"@l
/* 8010769C 001034DC 38 7F 00 04 */ addi r3, r31, 0x4
/* 801076A0 001034E0 48 01 87 41 */ bl Erase__Q44nw4r2ut6detail12LinkListImplFPQ34nw4r2ut12LinkListNode
/* 801076A4 001034E4 2C 1E 00 00 */ cmpwi r30, 0x0
/* 801076A8 001034E8 41 82 03 18 */ beq lbl_801079C0
/* 801076AC 001034EC 7F E3 FB 78 */ mr r3, r31
/* 801076B0 001034F0 7F C4 F3 78 */ mr r4, r30
/* 801076B4 001034F4 48 00 24 DD */ bl FreeImpl__Q44nw4r3snd6detail8PoolImplFPv
/* 801076B8 001034F8 48 00 03 08 */ b lbl_801079C0
.global lbl_801076BC
lbl_801076BC:
/* 801076BC 001034FC 80 7E 00 AC */ lwz r3, 0xac(r30)
/* 801076C0 00103500 80 1E 00 A8 */ lwz r0, 0xa8(r30)
/* 801076C4 00103504 C8 62 93 70 */ lfd f3, "@10300"@sda21(r2)
/* 801076C8 00103508 7C 03 00 50 */ subf r0, r3, r0
/* 801076CC 0010350C C0 82 93 50 */ lfs f4, "@10013"@sda21(r2)
/* 801076D0 00103510 6C 00 80 00 */ xoris r0, r0, 0x8000
/* 801076D4 00103514 90 01 00 34 */ stw r0, 0x34(r1)
/* 801076D8 00103518 C0 22 93 50 */ lfs f1, "@10013"@sda21(r2)
/* 801076DC 0010351C C8 01 00 30 */ lfd f0, 0x30(r1)
/* 801076E0 00103520 C0 5E 00 84 */ lfs f2, 0x84(r30)
/* 801076E4 00103524 EC 00 18 28 */ fsubs f0, f0, f3
/* 801076E8 00103528 FC 01 10 00 */ fcmpu cr0, f1, f2
/* 801076EC 0010352C EC 84 00 2A */ fadds f4, f4, f0
/* 801076F0 00103530 40 82 00 08 */ bne lbl_801076F8
/* 801076F4 00103534 48 00 00 44 */ b lbl_80107738
.global lbl_801076F8
lbl_801076F8:
/* 801076F8 00103538 80 1E 00 88 */ lwz r0, 0x88(r30)
/* 801076FC 0010353C 80 9E 00 8C */ lwz r4, 0x8c(r30)
/* 80107700 00103540 7C 00 20 00 */ cmpw r0, r4
/* 80107704 00103544 41 80 00 08 */ blt lbl_8010770C
/* 80107708 00103548 48 00 00 30 */ b lbl_80107738
.global lbl_8010770C
lbl_8010770C:
/* 8010770C 0010354C 7C 60 20 50 */ subf r3, r0, r4
/* 80107710 00103550 6C 80 80 00 */ xoris r0, r4, 0x8000
/* 80107714 00103554 6C 63 80 00 */ xoris r3, r3, 0x8000
/* 80107718 00103558 90 61 00 2C */ stw r3, 0x2c(r1)
/* 8010771C 0010355C C8 01 00 28 */ lfd f0, 0x28(r1)
/* 80107720 00103560 90 01 00 34 */ stw r0, 0x34(r1)
/* 80107724 00103564 EC 20 18 28 */ fsubs f1, f0, f3
/* 80107728 00103568 C8 01 00 30 */ lfd f0, 0x30(r1)
/* 8010772C 0010356C EC 22 00 72 */ fmuls f1, f2, f1
/* 80107730 00103570 EC 00 18 28 */ fsubs f0, f0, f3
/* 80107734 00103574 EC 21 00 24 */ fdivs f1, f1, f0
.global lbl_80107738
lbl_80107738:
/* 80107738 00103578 EC 84 08 2A */ fadds f4, f4, f1
/* 8010773C 0010357C C0 1E 00 80 */ lfs f0, 0x80(r30)
/* 80107740 00103580 88 1E 00 34 */ lbz r0, 0x34(r30)
/* 80107744 00103584 2C 00 00 00 */ cmpwi r0, 0x0
/* 80107748 00103588 EC 84 00 2A */ fadds f4, f4, f0
/* 8010774C 0010358C 40 82 00 08 */ bne lbl_80107754
/* 80107750 00103590 EC 84 F8 2A */ fadds f4, f4, f31
.global lbl_80107754
lbl_80107754:
/* 80107754 00103594 C0 02 93 60 */ lfs f0, "@10295_8055F2E0"@sda21(r2)
/* 80107758 00103598 C2 E2 93 54 */ lfs f23, "@10140"@sda21(r2)
/* 8010775C 0010359C EC 00 01 32 */ fmuls f0, f0, f4
/* 80107760 001035A0 C0 5E 00 9C */ lfs f2, 0x9c(r30)
/* 80107764 001035A4 C0 3E 00 44 */ lfs f1, 0x44(r30)
/* 80107768 001035A8 EE F7 00 B2 */ fmuls f23, f23, f2
/* 8010776C 001035AC FC 00 00 1E */ fctiwz f0, f0
/* 80107770 001035B0 D8 01 00 38 */ stfd f0, 0x38(r1)
/* 80107774 001035B4 EE F7 00 72 */ fmuls f23, f23, f1
/* 80107778 001035B8 80 61 00 3C */ lwz r3, 0x3c(r1)
/* 8010777C 001035BC 48 01 55 05 */ bl CalcPitchRatio__Q44nw4r3snd6detail4UtilFi
/* 80107780 001035C0 C3 62 93 50 */ lfs f27, "@10013"@sda21(r2)
/* 80107784 001035C4 EF 81 05 F2 */ fmuls f28, f1, f23
/* 80107788 001035C8 C0 1E 00 94 */ lfs f0, 0x94(r30)
/* 8010778C 001035CC 88 1E 00 34 */ lbz r0, 0x34(r30)
/* 80107790 001035D0 EF 7B 00 2A */ fadds f27, f27, f0
/* 80107794 001035D4 C0 1E 00 48 */ lfs f0, 0x48(r30)
/* 80107798 001035D8 28 00 00 02 */ cmplwi r0, 0x2
/* 8010779C 001035DC EF 7B 00 2A */ fadds f27, f27, f0
/* 801077A0 001035E0 40 82 00 08 */ bne lbl_801077A8
/* 801077A4 001035E4 EF 7B F8 2A */ fadds f27, f27, f31
.global lbl_801077A8
lbl_801077A8:
/* 801077A8 001035E8 C3 E2 93 50 */ lfs f31, "@10013"@sda21(r2)
/* 801077AC 001035EC 2C 1F 00 00 */ cmpwi r31, 0x0
/* 801077B0 001035F0 C0 1E 00 98 */ lfs f0, 0x98(r30)
/* 801077B4 001035F4 FC 60 F8 90 */ fmr f3, f31
/* 801077B8 001035F8 C0 82 93 54 */ lfs f4, "@10140"@sda21(r2)
/* 801077BC 001035FC C0 5E 00 64 */ lfs f2, 0x64(r30)
/* 801077C0 00103600 EF FF 00 2A */ fadds f31, f31, f0
/* 801077C4 00103604 C0 1E 00 6C */ lfs f0, 0x6c(r30)
/* 801077C8 00103608 FF 40 20 90 */ fmr f26, f4
/* 801077CC 0010360C EC E3 10 2A */ fadds f7, f3, f2
/* 801077D0 00103610 C0 3E 00 68 */ lfs f1, 0x68(r30)
/* 801077D4 00103614 EC A3 00 2A */ fadds f5, f3, f0
/* 801077D8 00103618 C0 5E 00 4C */ lfs f2, 0x4c(r30)
/* 801077DC 0010361C EC C3 08 2A */ fadds f6, f3, f1
/* 801077E0 00103620 C0 1E 00 70 */ lfs f0, 0x70(r30)
/* 801077E4 00103624 EC 64 00 32 */ fmuls f3, f4, f0
/* 801077E8 00103628 C0 3E 00 78 */ lfs f1, 0x78(r30)
/* 801077EC 0010362C EF FF 10 2A */ fadds f31, f31, f2
/* 801077F0 00103630 C0 5E 00 74 */ lfs f2, 0x74(r30)
/* 801077F4 00103634 C0 1E 00 7C */ lfs f0, 0x7c(r30)
/* 801077F8 00103638 EC 24 00 72 */ fmuls f1, f4, f1
/* 801077FC 0010363C EC 44 00 B2 */ fmuls f2, f4, f2
/* 80107800 00103640 C1 3E 00 50 */ lfs f9, 0x50(r30)
/* 80107804 00103644 EC 04 00 32 */ fmuls f0, f4, f0
/* 80107808 00103648 C1 1E 00 5C */ lfs f8, 0x5c(r30)
/* 8010780C 0010364C FF 20 20 90 */ fmr f25, f4
/* 80107810 00103650 C3 02 93 50 */ lfs f24, "@10013"@sda21(r2)
/* 80107814 00103654 C0 9E 00 60 */ lfs f4, 0x60(r30)
/* 80107818 00103658 EF 5A 48 2A */ fadds f26, f26, f9
/* 8010781C 0010365C EF 39 02 32 */ fmuls f25, f25, f8
/* 80107820 00103660 8B FE 00 3C */ lbz r31, 0x3c(r30)
/* 80107824 00103664 EF 18 20 2A */ fadds f24, f24, f4
/* 80107828 00103668 D0 E1 00 18 */ stfs f7, 0x18(r1)
/* 8010782C 0010366C D0 C1 00 1C */ stfs f6, 0x1c(r1)
/* 80107830 00103670 D0 A1 00 20 */ stfs f5, 0x20(r1)
/* 80107834 00103674 D0 61 00 08 */ stfs f3, 0x8(r1)
/* 80107838 00103678 D0 41 00 0C */ stfs f2, 0xc(r1)
/* 8010783C 0010367C D0 21 00 10 */ stfs f1, 0x10(r1)
/* 80107840 00103680 D0 01 00 14 */ stfs f0, 0x14(r1)
/* 80107844 00103684 41 82 00 44 */ beq lbl_80107888
/* 80107848 00103688 88 1E 00 38 */ lbz r0, 0x38(r30)
/* 8010784C 0010368C 2C 00 00 00 */ cmpwi r0, 0x0
/* 80107850 00103690 41 82 00 20 */ beq lbl_80107870
/* 80107854 00103694 80 7E 00 88 */ lwz r3, 0x88(r30)
/* 80107858 00103698 80 9E 00 8C */ lwz r4, 0x8c(r30)
/* 8010785C 0010369C 38 03 00 03 */ addi r0, r3, 0x3
/* 80107860 001036A0 90 1E 00 88 */ stw r0, 0x88(r30)
/* 80107864 001036A4 7C 00 20 00 */ cmpw r0, r4
/* 80107868 001036A8 40 81 00 08 */ ble lbl_80107870
/* 8010786C 001036AC 90 9E 00 88 */ stw r4, 0x88(r30)
.global lbl_80107870
lbl_80107870:
/* 80107870 001036B0 38 7E 00 1C */ addi r3, r30, 0x1c
/* 80107874 001036B4 38 80 00 03 */ li r4, 0x3
/* 80107878 001036B8 48 00 23 B9 */ bl Update__Q44nw4r3snd6detail3LfoFi
/* 8010787C 001036BC 7F C3 F3 78 */ mr r3, r30
/* 80107880 001036C0 38 80 00 03 */ li r4, 0x3
/* 80107884 001036C4 48 00 13 8D */ bl Update__Q44nw4r3snd6detail12EnvGeneratorFi
.global lbl_80107888
lbl_80107888:
/* 80107888 001036C8 38 7E 00 1C */ addi r3, r30, 0x1c
/* 8010788C 001036CC 48 00 24 45 */ bl GetValue__Q44nw4r3snd6detail3LfoCFv
/* 80107890 001036D0 FE E0 08 90 */ fmr f23, f1
/* 80107894 001036D4 C2 C2 93 54 */ lfs f22, "@10140"@sda21(r2)
/* 80107898 001036D8 7F C3 F3 78 */ mr r3, r30
/* 8010789C 001036DC 48 00 13 45 */ bl GetValue__Q44nw4r3snd6detail12EnvGeneratorCFv
/* 801078A0 001036E0 48 01 55 91 */ bl CalcVolumeRatio__Q44nw4r3snd6detail4UtilFf
/* 801078A4 001036E4 88 1E 00 34 */ lbz r0, 0x34(r30)
/* 801078A8 001036E8 EE D6 00 72 */ fmuls f22, f22, f1
/* 801078AC 001036EC 28 00 00 01 */ cmplwi r0, 0x1
/* 801078B0 001036F0 40 82 00 14 */ bne lbl_801078C4
/* 801078B4 001036F4 C0 02 93 5C */ lfs f0, "@10294"@sda21(r2)
/* 801078B8 001036F8 EC 20 05 F2 */ fmuls f1, f0, f23
/* 801078BC 001036FC 48 01 55 75 */ bl CalcVolumeRatio__Q44nw4r3snd6detail4UtilFf
/* 801078C0 00103700 EE D6 00 72 */ fmuls f22, f22, f1
.global lbl_801078C4
lbl_801078C4:
/* 801078C4 00103704 80 7E 00 D0 */ lwz r3, 0xd0(r30)
/* 801078C8 00103708 2C 03 00 00 */ cmpwi r3, 0x0
/* 801078CC 0010370C 41 82 00 F4 */ beq lbl_801079C0
/* 801078D0 00103710 80 9E 00 B4 */ lwz r4, 0xb4(r30)
/* 801078D4 00103714 48 01 32 1D */ bl SetPanMode__Q44nw4r3snd6detail5VoiceFQ34nw4r3snd7PanMode
/* 801078D8 00103718 80 7E 00 D0 */ lwz r3, 0xd0(r30)
/* 801078DC 0010371C 80 9E 00 B8 */ lwz r4, 0xb8(r30)
/* 801078E0 00103720 48 01 32 31 */ bl SetPanCurve__Q44nw4r3snd6detail5VoiceFQ34nw4r3snd8PanCurve
/* 801078E4 00103724 FC 20 F0 90 */ fmr f1, f30
/* 801078E8 00103728 80 7E 00 D0 */ lwz r3, 0xd0(r30)
/* 801078EC 0010372C 48 01 31 35 */ bl SetVolume__Q44nw4r3snd6detail5VoiceFf
/* 801078F0 00103730 FC 20 B0 90 */ fmr f1, f22
/* 801078F4 00103734 80 7E 00 D0 */ lwz r3, 0xd0(r30)
/* 801078F8 00103738 FC 40 E8 90 */ fmr f2, f29
/* 801078FC 0010373C 48 01 31 55 */ bl SetVeVolume__Q44nw4r3snd6detail5VoiceFff
/* 80107900 00103740 FC 20 E0 90 */ fmr f1, f28
/* 80107904 00103744 80 7E 00 D0 */ lwz r3, 0xd0(r30)
/* 80107908 00103748 48 01 31 C9 */ bl SetPitch__Q44nw4r3snd6detail5VoiceFf
/* 8010790C 0010374C FC 20 D8 90 */ fmr f1, f27
/* 80107910 00103750 80 7E 00 D0 */ lwz r3, 0xd0(r30)
/* 80107914 00103754 48 01 32 1D */ bl SetPan__Q44nw4r3snd6detail5VoiceFf
/* 80107918 00103758 FC 20 F8 90 */ fmr f1, f31
/* 8010791C 0010375C 80 7E 00 D0 */ lwz r3, 0xd0(r30)
/* 80107920 00103760 48 01 32 31 */ bl SetSurroundPan__Q44nw4r3snd6detail5VoiceFf
/* 80107924 00103764 FC 20 D0 90 */ fmr f1, f26
/* 80107928 00103768 80 7E 00 D0 */ lwz r3, 0xd0(r30)
/* 8010792C 0010376C 48 01 32 45 */ bl SetLpfFreq__Q44nw4r3snd6detail5VoiceFf
/* 80107930 00103770 80 7E 00 D0 */ lwz r3, 0xd0(r30)
/* 80107934 00103774 88 9E 00 3B */ lbz r4, 0x3b(r30)
/* 80107938 00103778 C0 3E 00 54 */ lfs f1, 0x54(r30)
/* 8010793C 0010377C 48 01 32 55 */ bl SetBiquadFilter__Q44nw4r3snd6detail5VoiceFif
/* 80107940 00103780 80 7E 00 D0 */ lwz r3, 0xd0(r30)
/* 80107944 00103784 7F E4 FB 78 */ mr r4, r31
/* 80107948 00103788 48 01 32 B9 */ bl SetRemoteFilter__Q44nw4r3snd6detail5VoiceFi
/* 8010794C 0010378C 80 7E 00 D0 */ lwz r3, 0xd0(r30)
/* 80107950 00103790 80 9E 00 58 */ lwz r4, 0x58(r30)
/* 80107954 00103794 48 01 32 ED */ bl SetOutputLine__Q44nw4r3snd6detail5VoiceFi
/* 80107958 00103798 FC 20 C8 90 */ fmr f1, f25
/* 8010795C 0010379C 80 7E 00 D0 */ lwz r3, 0xd0(r30)
/* 80107960 001037A0 48 01 33 01 */ bl SetMainOutVolume__Q44nw4r3snd6detail5VoiceFf
/* 80107964 001037A4 FC 20 C0 90 */ fmr f1, f24
/* 80107968 001037A8 80 7E 00 D0 */ lwz r3, 0xd0(r30)
/* 8010796C 001037AC 48 01 33 25 */ bl SetMainSend__Q44nw4r3snd6detail5VoiceFf
/* 80107970 001037B0 3B E1 00 18 */ addi r31, r1, 0x18
/* 80107974 001037B4 3B A0 00 00 */ li r29, 0x0
.global lbl_80107978
lbl_80107978:
/* 80107978 001037B8 80 7E 00 D0 */ lwz r3, 0xd0(r30)
/* 8010797C 001037BC 7F A4 EB 78 */ mr r4, r29
/* 80107980 001037C0 C0 3F 00 00 */ lfs f1, 0x0(r31)
/* 80107984 001037C4 48 01 33 4D */ bl SetFxSend__Q44nw4r3snd6detail5VoiceFQ34nw4r3snd6AuxBusf
/* 80107988 001037C8 3B BD 00 01 */ addi r29, r29, 0x1
/* 8010798C 001037CC 3B FF 00 04 */ addi r31, r31, 0x4
/* 80107990 001037D0 2C 1D 00 03 */ cmpwi r29, 0x3
/* 80107994 001037D4 41 80 FF E4 */ blt lbl_80107978
/* 80107998 001037D8 3B E1 00 08 */ addi r31, r1, 0x8
/* 8010799C 001037DC 3B A0 00 00 */ li r29, 0x0
.global lbl_801079A0
lbl_801079A0:
/* 801079A0 001037E0 80 7E 00 D0 */ lwz r3, 0xd0(r30)
/* 801079A4 001037E4 7F A4 EB 78 */ mr r4, r29
/* 801079A8 001037E8 C0 3F 00 00 */ lfs f1, 0x0(r31)
/* 801079AC 001037EC 48 01 33 65 */ bl SetRemoteOutVolume__Q44nw4r3snd6detail5VoiceFif
/* 801079B0 001037F0 3B BD 00 01 */ addi r29, r29, 0x1
/* 801079B4 001037F4 3B FF 00 04 */ addi r31, r31, 0x4
/* 801079B8 001037F8 2C 1D 00 04 */ cmpwi r29, 0x4
/* 801079BC 001037FC 41 80 FF E4 */ blt lbl_801079A0
.global lbl_801079C0
lbl_801079C0:
/* 801079C0 00103800 80 01 00 F4 */ lwz r0, 0xf4(r1)
/* 801079C4 00103804 E3 E1 00 E8 */ psq_l f31, 0xe8(r1), 0, qr0
/* 801079C8 00103808 CB E1 00 E0 */ lfd f31, 0xe0(r1)
/* 801079CC 0010380C E3 C1 00 D8 */ psq_l f30, 0xd8(r1), 0, qr0
/* 801079D0 00103810 CB C1 00 D0 */ lfd f30, 0xd0(r1)
/* 801079D4 00103814 E3 A1 00 C8 */ psq_l f29, 0xc8(r1), 0, qr0
/* 801079D8 00103818 CB A1 00 C0 */ lfd f29, 0xc0(r1)
/* 801079DC 0010381C E3 81 00 B8 */ psq_l f28, 0xb8(r1), 0, qr0
/* 801079E0 00103820 CB 81 00 B0 */ lfd f28, 0xb0(r1)
/* 801079E4 00103824 E3 61 00 A8 */ psq_l f27, 0xa8(r1), 0, qr0
/* 801079E8 00103828 CB 61 00 A0 */ lfd f27, 0xa0(r1)
/* 801079EC 0010382C E3 41 00 98 */ psq_l f26, 0x98(r1), 0, qr0
/* 801079F0 00103830 CB 41 00 90 */ lfd f26, 0x90(r1)
/* 801079F4 00103834 E3 21 00 88 */ psq_l f25, 0x88(r1), 0, qr0
/* 801079F8 00103838 CB 21 00 80 */ lfd f25, 0x80(r1)
/* 801079FC 0010383C E3 01 00 78 */ psq_l f24, 0x78(r1), 0, qr0
/* 80107A00 00103840 CB 01 00 70 */ lfd f24, 0x70(r1)
/* 80107A04 00103844 E2 E1 00 68 */ psq_l f23, 0x68(r1), 0, qr0
/* 80107A08 00103848 CA E1 00 60 */ lfd f23, 0x60(r1)
/* 80107A0C 0010384C E2 C1 00 58 */ psq_l f22, 0x58(r1), 0, qr0
/* 80107A10 00103850 CA C1 00 50 */ lfd f22, 0x50(r1)
/* 80107A14 00103854 83 E1 00 4C */ lwz r31, 0x4c(r1)
/* 80107A18 00103858 83 C1 00 48 */ lwz r30, 0x48(r1)
/* 80107A1C 0010385C 83 A1 00 44 */ lwz r29, 0x44(r1)
/* 80107A20 00103860 7C 08 03 A6 */ mtlr r0
/* 80107A24 00103864 38 21 00 F0 */ addi r1, r1, 0xf0
/* 80107A28 00103868 4E 80 00 20 */ blr
/* 80107A2C 0010386C 00 00 00 00 */ .4byte 0x00000000
.global Start__Q44nw4r3snd6detail7ChannelFRCQ44nw4r3snd6detail8WaveInfoiUl
Start__Q44nw4r3snd6detail7ChannelFRCQ44nw4r3snd6detail8WaveInfoiUl:
/* 80107A30 00103870 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80107A34 00103874 7C 08 02 A6 */ mflr r0
/* 80107A38 00103878 90 01 00 24 */ stw r0, 0x24(r1)
/* 80107A3C 0010387C 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 80107A40 00103880 7C DF 33 78 */ mr r31, r6
/* 80107A44 00103884 93 C1 00 18 */ stw r30, 0x18(r1)
/* 80107A48 00103888 7C 9E 23 78 */ mr r30, r4
/* 80107A4C 0010388C 93 A1 00 14 */ stw r29, 0x14(r1)
/* 80107A50 00103890 7C 7D 1B 78 */ mr r29, r3
/* 80107A54 00103894 90 A3 00 B0 */ stw r5, 0xb0(r3)
/* 80107A58 00103898 38 63 00 1C */ addi r3, r3, 0x1c
/* 80107A5C 0010389C 48 00 21 B5 */ bl Reset__Q44nw4r3snd6detail3LfoFv
/* 80107A60 001038A0 C0 22 93 78 */ lfs f1, VOLUME_INIT__Q44nw4r3snd6detail12EnvGenerator@sda21(r2)
/* 80107A64 001038A4 7F A3 EB 78 */ mr r3, r29
/* 80107A68 001038A8 48 00 11 59 */ bl Reset__Q44nw4r3snd6detail12EnvGeneratorFf
/* 80107A6C 001038AC 38 00 00 00 */ li r0, 0x0
/* 80107A70 001038B0 90 1D 00 88 */ stw r0, 0x88(r29)
/* 80107A74 001038B4 80 7D 00 D0 */ lwz r3, 0xd0(r29)
/* 80107A78 001038B8 7F C4 F3 78 */ mr r4, r30
/* 80107A7C 001038BC 7F E5 FB 78 */ mr r5, r31
/* 80107A80 001038C0 48 01 2C 71 */ bl Setup__Q44nw4r3snd6detail5VoiceFRCQ44nw4r3snd6detail8WaveInfoUl
/* 80107A84 001038C4 80 7D 00 D0 */ lwz r3, 0xd0(r29)
/* 80107A88 001038C8 48 01 2E 69 */ bl Start__Q44nw4r3snd6detail5VoiceFv
/* 80107A8C 001038CC 38 00 00 01 */ li r0, 0x1
/* 80107A90 001038D0 98 1D 00 36 */ stb r0, 0x36(r29)
/* 80107A94 001038D4 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 80107A98 001038D8 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 80107A9C 001038DC 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 80107AA0 001038E0 80 01 00 24 */ lwz r0, 0x24(r1)
/* 80107AA4 001038E4 7C 08 03 A6 */ mtlr r0
/* 80107AA8 001038E8 38 21 00 20 */ addi r1, r1, 0x20
/* 80107AAC 001038EC 4E 80 00 20 */ blr
.global Release__Q44nw4r3snd6detail7ChannelFv
Release__Q44nw4r3snd6detail7ChannelFv:
/* 80107AB0 001038F0 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 80107AB4 001038F4 7C 08 02 A6 */ mflr r0
/* 80107AB8 001038F8 90 01 00 14 */ stw r0, 0x14(r1)
/* 80107ABC 001038FC 93 E1 00 0C */ stw r31, 0xc(r1)
/* 80107AC0 00103900 7C 7F 1B 78 */ mr r31, r3
/* 80107AC4 00103904 80 03 00 00 */ lwz r0, 0x0(r3)
/* 80107AC8 00103908 2C 00 00 04 */ cmpwi r0, 0x4
/* 80107ACC 0010390C 41 82 00 30 */ beq lbl_80107AFC
/* 80107AD0 00103910 80 83 00 D0 */ lwz r4, 0xd0(r3)
/* 80107AD4 00103914 2C 04 00 00 */ cmpwi r4, 0x0
/* 80107AD8 00103918 41 82 00 1C */ beq lbl_80107AF4
/* 80107ADC 0010391C 88 03 00 39 */ lbz r0, 0x39(r3)
/* 80107AE0 00103920 2C 00 00 00 */ cmpwi r0, 0x0
/* 80107AE4 00103924 40 82 00 10 */ bne lbl_80107AF4
/* 80107AE8 00103928 7C 83 23 78 */ mr r3, r4
/* 80107AEC 0010392C 38 80 00 01 */ li r4, 0x1
/* 80107AF0 00103930 48 01 32 B1 */ bl SetPriority__Q44nw4r3snd6detail5VoiceFi
.global lbl_80107AF4
lbl_80107AF4:
/* 80107AF4 00103934 38 00 00 04 */ li r0, 0x4
/* 80107AF8 00103938 90 1F 00 00 */ stw r0, 0x0(r31)
.global lbl_80107AFC
lbl_80107AFC:
/* 80107AFC 0010393C 38 00 00 00 */ li r0, 0x0
/* 80107B00 00103940 98 1F 00 35 */ stb r0, 0x35(r31)
/* 80107B04 00103944 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 80107B08 00103948 80 01 00 14 */ lwz r0, 0x14(r1)
/* 80107B0C 0010394C 7C 08 03 A6 */ mtlr r0
/* 80107B10 00103950 38 21 00 10 */ addi r1, r1, 0x10
/* 80107B14 00103954 4E 80 00 20 */ blr
/* 80107B18 00103958 00 00 00 00 */ .4byte 0x00000000
/* 80107B1C 0010395C 00 00 00 00 */ .4byte 0x00000000
.global NoteOff__Q44nw4r3snd6detail7ChannelFv
NoteOff__Q44nw4r3snd6detail7ChannelFv:
/* 80107B20 00103960 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 80107B24 00103964 7C 08 02 A6 */ mflr r0
/* 80107B28 00103968 90 01 00 14 */ stw r0, 0x14(r1)
/* 80107B2C 0010396C 93 E1 00 0C */ stw r31, 0xc(r1)
/* 80107B30 00103970 7C 7F 1B 78 */ mr r31, r3
/* 80107B34 00103974 88 03 00 3A */ lbz r0, 0x3a(r3)
/* 80107B38 00103978 2C 00 00 00 */ cmpwi r0, 0x0
/* 80107B3C 0010397C 40 82 00 44 */ bne lbl_80107B80
/* 80107B40 00103980 80 03 00 00 */ lwz r0, 0x0(r3)
/* 80107B44 00103984 2C 00 00 04 */ cmpwi r0, 0x4
/* 80107B48 00103988 41 82 00 30 */ beq lbl_80107B78
/* 80107B4C 0010398C 80 83 00 D0 */ lwz r4, 0xd0(r3)
/* 80107B50 00103990 2C 04 00 00 */ cmpwi r4, 0x0
/* 80107B54 00103994 41 82 00 1C */ beq lbl_80107B70
/* 80107B58 00103998 88 03 00 39 */ lbz r0, 0x39(r3)
/* 80107B5C 0010399C 2C 00 00 00 */ cmpwi r0, 0x0
/* 80107B60 001039A0 40 82 00 10 */ bne lbl_80107B70
/* 80107B64 001039A4 7C 83 23 78 */ mr r3, r4
/* 80107B68 001039A8 38 80 00 01 */ li r4, 0x1
/* 80107B6C 001039AC 48 01 32 35 */ bl SetPriority__Q44nw4r3snd6detail5VoiceFi
.global lbl_80107B70
lbl_80107B70:
/* 80107B70 001039B0 38 00 00 04 */ li r0, 0x4
/* 80107B74 001039B4 90 1F 00 00 */ stw r0, 0x0(r31)
.global lbl_80107B78
lbl_80107B78:
/* 80107B78 001039B8 38 00 00 00 */ li r0, 0x0
/* 80107B7C 001039BC 98 1F 00 35 */ stb r0, 0x35(r31)
.global lbl_80107B80
lbl_80107B80:
/* 80107B80 001039C0 80 01 00 14 */ lwz r0, 0x14(r1)
/* 80107B84 001039C4 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 80107B88 001039C8 7C 08 03 A6 */ mtlr r0
/* 80107B8C 001039CC 38 21 00 10 */ addi r1, r1, 0x10
/* 80107B90 001039D0 4E 80 00 20 */ blr
/* 80107B94 001039D4 00 00 00 00 */ .4byte 0x00000000
/* 80107B98 001039D8 00 00 00 00 */ .4byte 0x00000000
/* 80107B9C 001039DC 00 00 00 00 */ .4byte 0x00000000
.global Stop__Q44nw4r3snd6detail7ChannelFv
Stop__Q44nw4r3snd6detail7ChannelFv:
/* 80107BA0 001039E0 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 80107BA4 001039E4 7C 08 02 A6 */ mflr r0
/* 80107BA8 001039E8 90 01 00 14 */ stw r0, 0x14(r1)
/* 80107BAC 001039EC 93 E1 00 0C */ stw r31, 0xc(r1)
/* 80107BB0 001039F0 93 C1 00 08 */ stw r30, 0x8(r1)
/* 80107BB4 001039F4 7C 7E 1B 78 */ mr r30, r3
/* 80107BB8 001039F8 80 03 00 D0 */ lwz r0, 0xd0(r3)
/* 80107BBC 001039FC 2C 00 00 00 */ cmpwi r0, 0x0
/* 80107BC0 00103A00 41 82 00 EC */ beq lbl_80107CAC
/* 80107BC4 00103A04 7C 03 03 78 */ mr r3, r0
/* 80107BC8 00103A08 48 01 2D 49 */ bl Stop__Q44nw4r3snd6detail5VoiceFv
/* 80107BCC 00103A0C 80 7E 00 D0 */ lwz r3, 0xd0(r30)
/* 80107BD0 00103A10 48 01 2A 51 */ bl Free__Q44nw4r3snd6detail5VoiceFv
/* 80107BD4 00103A14 81 9E 00 C0 */ lwz r12, 0xc0(r30)
/* 80107BD8 00103A18 38 00 00 00 */ li r0, 0x0
/* 80107BDC 00103A1C 90 1E 00 D0 */ stw r0, 0xd0(r30)
/* 80107BE0 00103A20 2C 0C 00 00 */ cmpwi r12, 0x0
/* 80107BE4 00103A24 98 1E 00 35 */ stb r0, 0x35(r30)
/* 80107BE8 00103A28 98 1E 00 36 */ stb r0, 0x36(r30)
/* 80107BEC 00103A2C 41 82 00 18 */ beq lbl_80107C04
/* 80107BF0 00103A30 7F C3 F3 78 */ mr r3, r30
/* 80107BF4 00103A34 80 BE 00 C4 */ lwz r5, 0xc4(r30)
/* 80107BF8 00103A38 38 80 00 00 */ li r4, 0x0
/* 80107BFC 00103A3C 7D 89 03 A6 */ mtctr r12
/* 80107C00 00103A40 4E 80 04 21 */ bctrl
.global lbl_80107C04
lbl_80107C04:
/* 80107C04 00103A44 80 7E 00 C8 */ lwz r3, 0xc8(r30)
/* 80107C08 00103A48 2C 03 00 00 */ cmpwi r3, 0x0
/* 80107C0C 00103A4C 41 82 00 18 */ beq lbl_80107C24
/* 80107C10 00103A50 81 83 00 00 */ lwz r12, 0x0(r3)
/* 80107C14 00103A54 80 9E 00 CC */ lwz r4, 0xcc(r30)
/* 80107C18 00103A58 81 8C 00 0C */ lwz r12, 0xc(r12)
/* 80107C1C 00103A5C 7D 89 03 A6 */ mtctr r12
/* 80107C20 00103A60 4E 80 04 21 */ bctrl
.global lbl_80107C24
lbl_80107C24:
/* 80107C24 00103A64 88 1E 00 37 */ lbz r0, 0x37(r30)
/* 80107C28 00103A68 2C 00 00 00 */ cmpwi r0, 0x0
/* 80107C2C 00103A6C 41 82 00 80 */ beq lbl_80107CAC
/* 80107C30 00103A70 38 E0 00 00 */ li r7, 0x0
/* 80107C34 00103A74 98 FE 00 37 */ stb r7, 0x37(r30)
/* 80107C38 00103A78 88 0D EB E0 */ lbz r0, "@GUARD@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance"@sda21(r13)
/* 80107C3C 00103A7C 7C 00 07 75 */ extsb. r0, r0
/* 80107C40 00103A80 40 82 00 44 */ bne lbl_80107C84
/* 80107C44 00103A84 3C C0 80 53 */ lis r6, "@LOCAL@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance"@ha
/* 80107C48 00103A88 3C 80 80 10 */ lis r4, __dt__Q44nw4r3snd6detail14ChannelManagerFv@ha
/* 80107C4C 00103A8C 38 66 89 78 */ addi r3, r6, "@LOCAL@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance"@l
/* 80107C50 00103A90 3C A0 80 53 */ lis r5, "@8748"@ha
/* 80107C54 00103A94 38 03 00 08 */ addi r0, r3, 0x8
/* 80107C58 00103A98 90 E6 89 78 */ stw r7, -0x7688(r6)
/* 80107C5C 00103A9C 38 84 6F 50 */ addi r4, r4, __dt__Q44nw4r3snd6detail14ChannelManagerFv@l
/* 80107C60 00103AA0 38 A5 89 68 */ addi r5, r5, "@8748"@l
/* 80107C64 00103AA4 90 E3 00 04 */ stw r7, 0x4(r3)
/* 80107C68 00103AA8 90 03 00 08 */ stw r0, 0x8(r3)
/* 80107C6C 00103AAC 90 03 00 0C */ stw r0, 0xc(r3)
/* 80107C70 00103AB0 98 E3 00 10 */ stb r7, 0x10(r3)
/* 80107C74 00103AB4 90 E3 00 14 */ stw r7, 0x14(r3)
/* 80107C78 00103AB8 4B EF EE F9 */ bl lbl_80006B70
/* 80107C7C 00103ABC 38 00 00 01 */ li r0, 0x1
/* 80107C80 00103AC0 98 0D EB E0 */ stb r0, "@GUARD@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance"@sda21(r13)
.global lbl_80107C84
lbl_80107C84:
/* 80107C84 00103AC4 3F E0 80 53 */ lis r31, "@LOCAL@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance"@ha
/* 80107C88 00103AC8 38 9E 00 D8 */ addi r4, r30, 0xd8
/* 80107C8C 00103ACC 3B FF 89 78 */ addi r31, r31, "@LOCAL@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance"@l
/* 80107C90 00103AD0 38 7F 00 04 */ addi r3, r31, 0x4
/* 80107C94 00103AD4 48 01 81 4D */ bl Erase__Q44nw4r2ut6detail12LinkListImplFPQ34nw4r2ut12LinkListNode
/* 80107C98 00103AD8 2C 1E 00 00 */ cmpwi r30, 0x0
/* 80107C9C 00103ADC 41 82 00 10 */ beq lbl_80107CAC
/* 80107CA0 00103AE0 7F E3 FB 78 */ mr r3, r31
/* 80107CA4 00103AE4 7F C4 F3 78 */ mr r4, r30
/* 80107CA8 00103AE8 48 00 1E E9 */ bl FreeImpl__Q44nw4r3snd6detail8PoolImplFPv
.global lbl_80107CAC
lbl_80107CAC:
/* 80107CAC 00103AEC 80 01 00 14 */ lwz r0, 0x14(r1)
/* 80107CB0 00103AF0 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 80107CB4 00103AF4 83 C1 00 08 */ lwz r30, 0x8(r1)
/* 80107CB8 00103AF8 7C 08 03 A6 */ mtlr r0
/* 80107CBC 00103AFC 38 21 00 10 */ addi r1, r1, 0x10
/* 80107CC0 00103B00 4E 80 00 20 */ blr
/* 80107CC4 00103B04 00 00 00 00 */ .4byte 0x00000000
/* 80107CC8 00103B08 00 00 00 00 */ .4byte 0x00000000
/* 80107CCC 00103B0C 00 00 00 00 */ .4byte 0x00000000
.global UpdateSweep__Q44nw4r3snd6detail7ChannelFi
UpdateSweep__Q44nw4r3snd6detail7ChannelFi:
/* 80107CD0 00103B10 80 03 00 88 */ lwz r0, 0x88(r3)
/* 80107CD4 00103B14 80 A3 00 8C */ lwz r5, 0x8c(r3)
/* 80107CD8 00103B18 7C 00 22 14 */ add r0, r0, r4
/* 80107CDC 00103B1C 90 03 00 88 */ stw r0, 0x88(r3)
/* 80107CE0 00103B20 7C 00 28 00 */ cmpw r0, r5
/* 80107CE4 00103B24 4C 81 00 20 */ blelr
/* 80107CE8 00103B28 90 A3 00 88 */ stw r5, 0x88(r3)
/* 80107CEC 00103B2C 4E 80 00 20 */ blr
.global SetSweepParam__Q44nw4r3snd6detail7ChannelFfib
SetSweepParam__Q44nw4r3snd6detail7ChannelFfib:
/* 80107CF0 00103B30 38 00 00 00 */ li r0, 0x0
/* 80107CF4 00103B34 D0 23 00 84 */ stfs f1, 0x84(r3)
/* 80107CF8 00103B38 90 83 00 8C */ stw r4, 0x8c(r3)
/* 80107CFC 00103B3C 98 A3 00 38 */ stb r5, 0x38(r3)
/* 80107D00 00103B40 90 03 00 88 */ stw r0, 0x88(r3)
/* 80107D04 00103B44 4E 80 00 20 */ blr
/* 80107D08 00103B48 00 00 00 00 */ .4byte 0x00000000
/* 80107D0C 00103B4C 00 00 00 00 */ .4byte 0x00000000
.global SetBiquadFilter__Q44nw4r3snd6detail7ChannelFif
SetBiquadFilter__Q44nw4r3snd6detail7ChannelFif:
/* 80107D10 00103B50 98 83 00 3B */ stb r4, 0x3b(r3)
/* 80107D14 00103B54 D0 23 00 54 */ stfs f1, 0x54(r3)
/* 80107D18 00103B58 4E 80 00 20 */ blr
/* 80107D1C 00103B5C 00 00 00 00 */ .4byte 0x00000000
.global VoiceCallbackFunc__Q44nw4r3snd6detail7ChannelFPQ44nw4r3snd6detail5VoiceQ54nw4r3snd6detail5Voice19VoiceCallbackStatusPv
VoiceCallbackFunc__Q44nw4r3snd6detail7ChannelFPQ44nw4r3snd6detail5VoiceQ54nw4r3snd6detail5Voice19VoiceCallbackStatusPv:
/* 80107D20 00103B60 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 80107D24 00103B64 7C 08 02 A6 */ mflr r0
/* 80107D28 00103B68 2C 04 00 00 */ cmpwi r4, 0x0
/* 80107D2C 00103B6C 90 01 00 14 */ stw r0, 0x14(r1)
/* 80107D30 00103B70 93 E1 00 0C */ stw r31, 0xc(r1)
/* 80107D34 00103B74 93 C1 00 08 */ stw r30, 0x8(r1)
/* 80107D38 00103B78 7C BE 2B 78 */ mr r30, r5
/* 80107D3C 00103B7C 41 82 00 20 */ beq lbl_80107D5C
/* 80107D40 00103B80 2C 04 00 01 */ cmpwi r4, 0x1
/* 80107D44 00103B84 41 82 00 24 */ beq lbl_80107D68
/* 80107D48 00103B88 2C 04 00 02 */ cmpwi r4, 0x2
/* 80107D4C 00103B8C 41 82 00 28 */ beq lbl_80107D74
/* 80107D50 00103B90 2C 04 00 03 */ cmpwi r4, 0x3
/* 80107D54 00103B94 41 82 00 28 */ beq lbl_80107D7C
/* 80107D58 00103B98 48 00 00 28 */ b lbl_80107D80
.global lbl_80107D5C
lbl_80107D5C:
/* 80107D5C 00103B9C 3B E0 00 02 */ li r31, 0x2
/* 80107D60 00103BA0 48 01 28 C1 */ bl Free__Q44nw4r3snd6detail5VoiceFv
/* 80107D64 00103BA4 48 00 00 1C */ b lbl_80107D80
.global lbl_80107D68
lbl_80107D68:
/* 80107D68 00103BA8 3B E0 00 03 */ li r31, 0x3
/* 80107D6C 00103BAC 48 01 28 B5 */ bl Free__Q44nw4r3snd6detail5VoiceFv
/* 80107D70 00103BB0 48 00 00 10 */ b lbl_80107D80
.global lbl_80107D74
lbl_80107D74:
/* 80107D74 00103BB4 3B E0 00 01 */ li r31, 0x1
/* 80107D78 00103BB8 48 00 00 08 */ b lbl_80107D80
.global lbl_80107D7C
lbl_80107D7C:
/* 80107D7C 00103BBC 3B E0 00 01 */ li r31, 0x1
.global lbl_80107D80
lbl_80107D80:
/* 80107D80 00103BC0 81 9E 00 C0 */ lwz r12, 0xc0(r30)
/* 80107D84 00103BC4 2C 0C 00 00 */ cmpwi r12, 0x0
/* 80107D88 00103BC8 41 82 00 18 */ beq lbl_80107DA0
/* 80107D8C 00103BCC 7F C3 F3 78 */ mr r3, r30
/* 80107D90 00103BD0 7F E4 FB 78 */ mr r4, r31
/* 80107D94 00103BD4 80 BE 00 C4 */ lwz r5, 0xc4(r30)
/* 80107D98 00103BD8 7D 89 03 A6 */ mtctr r12
/* 80107D9C 00103BDC 4E 80 04 21 */ bctrl
.global lbl_80107DA0
lbl_80107DA0:
/* 80107DA0 00103BE0 80 7E 00 C8 */ lwz r3, 0xc8(r30)
/* 80107DA4 00103BE4 2C 03 00 00 */ cmpwi r3, 0x0
/* 80107DA8 00103BE8 41 82 00 18 */ beq lbl_80107DC0
/* 80107DAC 00103BEC 81 83 00 00 */ lwz r12, 0x0(r3)
/* 80107DB0 00103BF0 80 9E 00 CC */ lwz r4, 0xcc(r30)
/* 80107DB4 00103BF4 81 8C 00 0C */ lwz r12, 0xc(r12)
/* 80107DB8 00103BF8 7D 89 03 A6 */ mtctr r12
/* 80107DBC 00103BFC 4E 80 04 21 */ bctrl
.global lbl_80107DC0
lbl_80107DC0:
/* 80107DC0 00103C00 38 E0 00 00 */ li r7, 0x0
/* 80107DC4 00103C04 90 FE 00 D0 */ stw r7, 0xd0(r30)
/* 80107DC8 00103C08 98 FE 00 35 */ stb r7, 0x35(r30)
/* 80107DCC 00103C0C 98 FE 00 36 */ stb r7, 0x36(r30)
/* 80107DD0 00103C10 98 FE 00 37 */ stb r7, 0x37(r30)
/* 80107DD4 00103C14 88 0D EB E0 */ lbz r0, "@GUARD@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance"@sda21(r13)
/* 80107DD8 00103C18 7C 00 07 75 */ extsb. r0, r0
/* 80107DDC 00103C1C 40 82 00 44 */ bne lbl_80107E20
/* 80107DE0 00103C20 3C C0 80 53 */ lis r6, "@LOCAL@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance"@ha
/* 80107DE4 00103C24 3C 80 80 10 */ lis r4, __dt__Q44nw4r3snd6detail14ChannelManagerFv@ha
/* 80107DE8 00103C28 38 66 89 78 */ addi r3, r6, "@LOCAL@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance"@l
/* 80107DEC 00103C2C 3C A0 80 53 */ lis r5, "@8748"@ha
/* 80107DF0 00103C30 38 03 00 08 */ addi r0, r3, 0x8
/* 80107DF4 00103C34 90 E6 89 78 */ stw r7, -0x7688(r6)
/* 80107DF8 00103C38 38 84 6F 50 */ addi r4, r4, __dt__Q44nw4r3snd6detail14ChannelManagerFv@l
/* 80107DFC 00103C3C 38 A5 89 68 */ addi r5, r5, "@8748"@l
/* 80107E00 00103C40 90 E3 00 04 */ stw r7, 0x4(r3)
/* 80107E04 00103C44 90 03 00 08 */ stw r0, 0x8(r3)
/* 80107E08 00103C48 90 03 00 0C */ stw r0, 0xc(r3)
/* 80107E0C 00103C4C 98 E3 00 10 */ stb r7, 0x10(r3)
/* 80107E10 00103C50 90 E3 00 14 */ stw r7, 0x14(r3)
/* 80107E14 00103C54 4B EF ED 5D */ bl lbl_80006B70
/* 80107E18 00103C58 38 00 00 01 */ li r0, 0x1
/* 80107E1C 00103C5C 98 0D EB E0 */ stb r0, "@GUARD@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance"@sda21(r13)
.global lbl_80107E20
lbl_80107E20:
/* 80107E20 00103C60 3F E0 80 53 */ lis r31, "@LOCAL@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance"@ha
/* 80107E24 00103C64 38 9E 00 D8 */ addi r4, r30, 0xd8
/* 80107E28 00103C68 3B FF 89 78 */ addi r31, r31, "@LOCAL@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance"@l
/* 80107E2C 00103C6C 38 7F 00 04 */ addi r3, r31, 0x4
/* 80107E30 00103C70 48 01 7F B1 */ bl Erase__Q44nw4r2ut6detail12LinkListImplFPQ34nw4r2ut12LinkListNode
/* 80107E34 00103C74 2C 1E 00 00 */ cmpwi r30, 0x0
/* 80107E38 00103C78 41 82 00 10 */ beq lbl_80107E48
/* 80107E3C 00103C7C 7F E3 FB 78 */ mr r3, r31
/* 80107E40 00103C80 7F C4 F3 78 */ mr r4, r30
/* 80107E44 00103C84 48 00 1D 4D */ bl FreeImpl__Q44nw4r3snd6detail8PoolImplFPv
.global lbl_80107E48
lbl_80107E48:
/* 80107E48 00103C88 80 01 00 14 */ lwz r0, 0x14(r1)
/* 80107E4C 00103C8C 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 80107E50 00103C90 83 C1 00 08 */ lwz r30, 0x8(r1)
/* 80107E54 00103C94 7C 08 03 A6 */ mtlr r0
/* 80107E58 00103C98 38 21 00 10 */ addi r1, r1, 0x10
/* 80107E5C 00103C9C 4E 80 00 20 */ blr
.global AllocChannel__Q44nw4r3snd6detail7ChannelFiiiPFPQ44nw4r3snd6detail7ChannelQ54nw4r3snd6detail7Channel21ChannelCallbackStatusUl_vUl
AllocChannel__Q44nw4r3snd6detail7ChannelFiiiPFPQ44nw4r3snd6detail7ChannelQ54nw4r3snd6detail7Channel21ChannelCallbackStatusUl_vUl:
/* 80107E60 00103CA0 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 80107E64 00103CA4 7C 08 02 A6 */ mflr r0
/* 80107E68 00103CA8 90 01 00 34 */ stw r0, 0x34(r1)
/* 80107E6C 00103CAC 39 61 00 30 */ addi r11, r1, 0x30
/* 80107E70 00103CB0 4B EF F4 C1 */ bl lbl_80007330
/* 80107E74 00103CB4 88 0D EB E0 */ lbz r0, "@GUARD@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance"@sda21(r13)
/* 80107E78 00103CB8 7C 78 1B 78 */ mr r24, r3
/* 80107E7C 00103CBC 7C 99 23 78 */ mr r25, r4
/* 80107E80 00103CC0 7C BA 2B 78 */ mr r26, r5
/* 80107E84 00103CC4 7C 00 07 75 */ extsb. r0, r0
/* 80107E88 00103CC8 7C DB 33 78 */ mr r27, r6
/* 80107E8C 00103CCC 7C FC 3B 78 */ mr r28, r7
/* 80107E90 00103CD0 40 82 00 48 */ bne lbl_80107ED8
/* 80107E94 00103CD4 3C C0 80 53 */ lis r6, "@LOCAL@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance"@ha
/* 80107E98 00103CD8 38 00 00 00 */ li r0, 0x0
/* 80107E9C 00103CDC 38 66 89 78 */ addi r3, r6, "@LOCAL@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance"@l
/* 80107EA0 00103CE0 3C 80 80 10 */ lis r4, __dt__Q44nw4r3snd6detail14ChannelManagerFv@ha
/* 80107EA4 00103CE4 38 E3 00 08 */ addi r7, r3, 0x8
/* 80107EA8 00103CE8 3C A0 80 53 */ lis r5, "@8748"@ha
/* 80107EAC 00103CEC 90 06 89 78 */ stw r0, -0x7688(r6)
/* 80107EB0 00103CF0 38 84 6F 50 */ addi r4, r4, __dt__Q44nw4r3snd6detail14ChannelManagerFv@l
/* 80107EB4 00103CF4 38 A5 89 68 */ addi r5, r5, "@8748"@l
/* 80107EB8 00103CF8 90 03 00 04 */ stw r0, 0x4(r3)
/* 80107EBC 00103CFC 90 E3 00 08 */ stw r7, 0x8(r3)
/* 80107EC0 00103D00 90 E3 00 0C */ stw r7, 0xc(r3)
/* 80107EC4 00103D04 98 03 00 10 */ stb r0, 0x10(r3)
/* 80107EC8 00103D08 90 03 00 14 */ stw r0, 0x14(r3)
/* 80107ECC 00103D0C 4B EF EC A5 */ bl lbl_80006B70
/* 80107ED0 00103D10 38 00 00 01 */ li r0, 0x1
/* 80107ED4 00103D14 98 0D EB E0 */ stb r0, "@GUARD@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance"@sda21(r13)
.global lbl_80107ED8
lbl_80107ED8:
/* 80107ED8 00103D18 3F E0 80 53 */ lis r31, "@LOCAL@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance"@ha
/* 80107EDC 00103D1C 3B FF 89 78 */ addi r31, r31, "@LOCAL@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance"@l
/* 80107EE0 00103D20 7F E3 FB 78 */ mr r3, r31
/* 80107EE4 00103D24 48 00 1C 4D */ bl AllocImpl__Q44nw4r3snd6detail8PoolImplFv
/* 80107EE8 00103D28 2C 03 00 00 */ cmpwi r3, 0x0
/* 80107EEC 00103D2C 7C 7E 1B 78 */ mr r30, r3
/* 80107EF0 00103D30 40 82 00 0C */ bne lbl_80107EFC
/* 80107EF4 00103D34 3B C0 00 00 */ li r30, 0x0
/* 80107EF8 00103D38 48 00 00 4C */ b lbl_80107F44
.global lbl_80107EFC
lbl_80107EFC:
/* 80107EFC 00103D3C 41 82 00 48 */ beq lbl_80107F44
/* 80107F00 00103D40 48 00 0C 31 */ bl __ct__Q44nw4r3snd6detail12EnvGeneratorFv
/* 80107F04 00103D44 38 7E 00 1C */ addi r3, r30, 0x1c
/* 80107F08 00103D48 48 00 1C D9 */ bl Init__Q44nw4r3snd6detail8LfoParamFv
/* 80107F0C 00103D4C 38 00 00 00 */ li r0, 0x0
/* 80107F10 00103D50 90 1E 00 2C */ stw r0, 0x2c(r30)
/* 80107F14 00103D54 C0 02 93 50 */ lfs f0, "@10013"@sda21(r2)
/* 80107F18 00103D58 D0 1E 00 30 */ stfs f0, 0x30(r30)
/* 80107F1C 00103D5C 98 1E 00 35 */ stb r0, 0x35(r30)
/* 80107F20 00103D60 98 1E 00 36 */ stb r0, 0x36(r30)
/* 80107F24 00103D64 98 1E 00 37 */ stb r0, 0x37(r30)
/* 80107F28 00103D68 98 1E 00 A0 */ stb r0, 0xa0(r30)
/* 80107F2C 00103D6C 98 1E 00 A1 */ stb r0, 0xa1(r30)
/* 80107F30 00103D70 B0 1E 00 A2 */ sth r0, 0xa2(r30)
/* 80107F34 00103D74 B0 1E 00 A4 */ sth r0, 0xa4(r30)
/* 80107F38 00103D78 90 1E 00 D0 */ stw r0, 0xd0(r30)
/* 80107F3C 00103D7C 90 1E 00 D8 */ stw r0, 0xd8(r30)
/* 80107F40 00103D80 90 1E 00 DC */ stw r0, 0xdc(r30)
.global lbl_80107F44
lbl_80107F44:
/* 80107F44 00103D84 38 1F 00 08 */ addi r0, r31, 0x8
/* 80107F48 00103D88 3B BE 00 D8 */ addi r29, r30, 0xd8
/* 80107F4C 00103D8C 90 01 00 08 */ stw r0, 0x8(r1)
/* 80107F50 00103D90 7F A5 EB 78 */ mr r5, r29
/* 80107F54 00103D94 38 7F 00 04 */ addi r3, r31, 0x4
/* 80107F58 00103D98 38 81 00 08 */ addi r4, r1, 0x8
/* 80107F5C 00103D9C 48 01 7E 55 */ bl Insert__Q44nw4r2ut6detail12LinkListImplFQ54nw4r2ut6detail12LinkListImpl8IteratorPQ34nw4r2ut12LinkListNode
/* 80107F60 00103DA0 2C 1E 00 00 */ cmpwi r30, 0x0
/* 80107F64 00103DA4 40 82 00 0C */ bne lbl_80107F70
/* 80107F68 00103DA8 38 60 00 00 */ li r3, 0x0
/* 80107F6C 00103DAC 48 00 00 C8 */ b lbl_80108034
.global lbl_80107F70
lbl_80107F70:
/* 80107F70 00103DB0 3B E0 00 01 */ li r31, 0x1
/* 80107F74 00103DB4 9B FE 00 37 */ stb r31, 0x37(r30)
/* 80107F78 00103DB8 48 01 45 69 */ bl GetInstance__Q44nw4r3snd6detail12VoiceManagerFv
/* 80107F7C 00103DBC 3C E0 80 10 */ lis r7, VoiceCallbackFunc__Q44nw4r3snd6detail7ChannelFPQ44nw4r3snd6detail5VoiceQ54nw4r3snd6detail5Voice19VoiceCallbackStatusPv@ha
/* 80107F80 00103DC0 7F 04 C3 78 */ mr r4, r24
/* 80107F84 00103DC4 7F 25 CB 78 */ mr r5, r25
/* 80107F88 00103DC8 7F 46 D3 78 */ mr r6, r26
/* 80107F8C 00103DCC 7F C8 F3 78 */ mr r8, r30
/* 80107F90 00103DD0 38 E7 7D 20 */ addi r7, r7, VoiceCallbackFunc__Q44nw4r3snd6detail7ChannelFPQ44nw4r3snd6detail5VoiceQ54nw4r3snd6detail5Voice19VoiceCallbackStatusPv@l
/* 80107F94 00103DD4 48 01 47 DD */ bl AllocVoice__Q44nw4r3snd6detail12VoiceManagerFiiiPFPQ44nw4r3snd6detail5VoiceQ54nw4r3snd6detail5Voice19VoiceCallbackStatusPv_vPv
/* 80107F98 00103DD8 2C 03 00 00 */ cmpwi r3, 0x0
/* 80107F9C 00103DDC 40 82 00 80 */ bne lbl_8010801C
/* 80107FA0 00103DE0 88 0D EB E0 */ lbz r0, "@GUARD@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance"@sda21(r13)
/* 80107FA4 00103DE4 7C 00 07 75 */ extsb. r0, r0
/* 80107FA8 00103DE8 40 82 00 44 */ bne lbl_80107FEC
/* 80107FAC 00103DEC 3C C0 80 53 */ lis r6, "@LOCAL@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance"@ha
/* 80107FB0 00103DF0 38 00 00 00 */ li r0, 0x0
/* 80107FB4 00103DF4 38 66 89 78 */ addi r3, r6, "@LOCAL@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance"@l
/* 80107FB8 00103DF8 3C 80 80 10 */ lis r4, __dt__Q44nw4r3snd6detail14ChannelManagerFv@ha
/* 80107FBC 00103DFC 38 E3 00 08 */ addi r7, r3, 0x8
/* 80107FC0 00103E00 3C A0 80 53 */ lis r5, "@8748"@ha
/* 80107FC4 00103E04 90 06 89 78 */ stw r0, -0x7688(r6)
/* 80107FC8 00103E08 38 84 6F 50 */ addi r4, r4, __dt__Q44nw4r3snd6detail14ChannelManagerFv@l
/* 80107FCC 00103E0C 38 A5 89 68 */ addi r5, r5, "@8748"@l
/* 80107FD0 00103E10 90 03 00 04 */ stw r0, 0x4(r3)
/* 80107FD4 00103E14 90 E3 00 08 */ stw r7, 0x8(r3)
/* 80107FD8 00103E18 90 E3 00 0C */ stw r7, 0xc(r3)
/* 80107FDC 00103E1C 98 03 00 10 */ stb r0, 0x10(r3)
/* 80107FE0 00103E20 90 03 00 14 */ stw r0, 0x14(r3)
/* 80107FE4 00103E24 4B EF EB 8D */ bl lbl_80006B70
/* 80107FE8 00103E28 9B ED EB E0 */ stb r31, "@GUARD@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance"@sda21(r13)
.global lbl_80107FEC
lbl_80107FEC:
/* 80107FEC 00103E2C 3F E0 80 53 */ lis r31, "@LOCAL@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance"@ha
/* 80107FF0 00103E30 7F A4 EB 78 */ mr r4, r29
/* 80107FF4 00103E34 3B FF 89 78 */ addi r31, r31, "@LOCAL@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance"@l
/* 80107FF8 00103E38 38 7F 00 04 */ addi r3, r31, 0x4
/* 80107FFC 00103E3C 48 01 7D E5 */ bl Erase__Q44nw4r2ut6detail12LinkListImplFPQ34nw4r2ut12LinkListNode
/* 80108000 00103E40 2C 1E 00 00 */ cmpwi r30, 0x0
/* 80108004 00103E44 41 82 00 10 */ beq lbl_80108014
/* 80108008 00103E48 7F E3 FB 78 */ mr r3, r31
/* 8010800C 00103E4C 7F C4 F3 78 */ mr r4, r30
/* 80108010 00103E50 48 00 1B 81 */ bl FreeImpl__Q44nw4r3snd6detail8PoolImplFPv
.global lbl_80108014
lbl_80108014:
/* 80108014 00103E54 38 60 00 00 */ li r3, 0x0
/* 80108018 00103E58 48 00 00 1C */ b lbl_80108034
.global lbl_8010801C
lbl_8010801C:
/* 8010801C 00103E5C 90 7E 00 D0 */ stw r3, 0xd0(r30)
/* 80108020 00103E60 7F C3 F3 78 */ mr r3, r30
/* 80108024 00103E64 7F 64 DB 78 */ mr r4, r27
/* 80108028 00103E68 7F 85 E3 78 */ mr r5, r28
/* 8010802C 00103E6C 4B FF F2 15 */ bl InitParam__Q44nw4r3snd6detail7ChannelFPFPQ44nw4r3snd6detail7ChannelQ54nw4r3snd6detail7Channel21ChannelCallbackStatusUl_vUl
/* 80108030 00103E70 7F C3 F3 78 */ mr r3, r30
.global lbl_80108034
lbl_80108034:
/* 80108034 00103E74 39 61 00 30 */ addi r11, r1, 0x30
/* 80108038 00103E78 4B EF F3 45 */ bl lbl_8000737C
/* 8010803C 00103E7C 80 01 00 34 */ lwz r0, 0x34(r1)
/* 80108040 00103E80 7C 08 03 A6 */ mtlr r0
/* 80108044 00103E84 38 21 00 30 */ addi r1, r1, 0x30
/* 80108048 00103E88 4E 80 00 20 */ blr
/* 8010804C 00103E8C 00 00 00 00 */ .4byte 0x00000000
.global FreeChannel__Q44nw4r3snd6detail7ChannelFPQ44nw4r3snd6detail7Channel
FreeChannel__Q44nw4r3snd6detail7ChannelFPQ44nw4r3snd6detail7Channel:
/* 80108050 00103E90 2C 03 00 00 */ cmpwi r3, 0x0
/* 80108054 00103E94 4D 82 00 20 */ beqlr
/* 80108058 00103E98 38 00 00 00 */ li r0, 0x0
/* 8010805C 00103E9C 90 03 00 C0 */ stw r0, 0xc0(r3)
/* 80108060 00103EA0 90 03 00 C4 */ stw r0, 0xc4(r3)
/* 80108064 00103EA4 4E 80 00 20 */ blr
/* 80108068 00103EA8 00 00 00 00 */ .4byte 0x00000000
/* 8010806C 00103EAC 00 00 00 00 */ .4byte 0x00000000
.include "macros.inc"
.section .bss, "", @nobits # 0x80496700 - 0x80556420 ; 0x000BFD20
.global "@8748"
"@8748":
.skip 0x10
.global "@LOCAL@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance"
"@LOCAL@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance":
.skip 0x20
.include "macros.inc"
.section .sbss, "", @nobits # 0x8055C6E0 - 0x8055DF80 ; 0x000018A0
.global "@GUARD@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance"
"@GUARD@GetInstance__Q44nw4r3snd6detail14ChannelManagerFv@instance":
.skip 0x8
.include "macros.inc"
.section .sdata2, "wa" # 0x8055DF80 - 0x805643C0 ; 0x00006440
.global "@10013"
"@10013":
.4byte 0
.global "@10140"
"@10140":
.4byte 0x3F800000
.global "@10293"
"@10293":
.4byte 0x437F0000
.global "@10294"
"@10294":
.4byte 0x40C00000
.global "@10295_8055F2E0"
"@10295_8055F2E0":
.4byte 0x43800000
.4byte 0
.global "@10299"
"@10299":
.4byte 0x43300000
.4byte 0
.global "@10300"
"@10300":
.4byte 0x43300000
.4byte 0x80000000