donut-decomp/asm/libnw4r_snd/snd_WavePlayer.s

1189 lines
57 KiB
ArmAsm
Raw Normal View History

2022-10-16 16:05:58 +00:00
.include "macros.inc"
.section .text, "ax" # 0x80006A00 - 0x80406260 ; 0x003FF860
2022-10-16 16:31:36 +00:00
.global __ct__Q34nw4r3snd10WavePlayerFv
__ct__Q34nw4r3snd10WavePlayerFv:
2022-10-16 16:05:58 +00:00
/* 8011D4D0 00119310 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 8011D4D4 00119314 7C 08 02 A6 */ mflr r0
2022-10-16 16:31:36 +00:00
/* 8011D4D8 00119318 3C 80 80 44 */ lis r4, __vt__Q34nw4r3snd10WavePlayer@ha
2022-10-16 16:05:58 +00:00
/* 8011D4DC 0011931C 38 A3 00 10 */ addi r5, r3, 0x10
/* 8011D4E0 00119320 90 01 00 14 */ stw r0, 0x14(r1)
/* 8011D4E4 00119324 38 00 00 00 */ li r0, 0x0
2022-10-16 16:31:36 +00:00
/* 8011D4E8 00119328 38 84 26 20 */ addi r4, r4, __vt__Q34nw4r3snd10WavePlayer@l
2022-10-16 16:05:58 +00:00
/* 8011D4EC 0011932C 93 E1 00 0C */ stw r31, 0xc(r1)
/* 8011D4F0 00119330 7C 7F 1B 78 */ mr r31, r3
/* 8011D4F4 00119334 90 03 00 00 */ stw r0, 0x0(r3)
/* 8011D4F8 00119338 90 03 00 04 */ stw r0, 0x4(r3)
/* 8011D4FC 0011933C 90 83 00 08 */ stw r4, 0x8(r3)
/* 8011D500 00119340 90 03 00 0C */ stw r0, 0xc(r3)
/* 8011D504 00119344 90 A3 00 10 */ stw r5, 0x10(r3)
/* 8011D508 00119348 90 A3 00 14 */ stw r5, 0x14(r3)
/* 8011D50C 0011934C 90 03 00 18 */ stw r0, 0x18(r3)
/* 8011D510 00119350 90 03 00 20 */ stw r0, 0x20(r3)
/* 8011D514 00119354 98 03 00 24 */ stb r0, 0x24(r3)
/* 8011D518 00119358 98 03 00 25 */ stb r0, 0x25(r3)
/* 8011D51C 0011935C 98 03 00 26 */ stb r0, 0x26(r3)
/* 8011D520 00119360 98 03 00 27 */ stb r0, 0x27(r3)
/* 8011D524 00119364 90 03 00 34 */ stw r0, 0x34(r3)
/* 8011D528 00119368 90 03 00 30 */ stw r0, 0x30(r3)
/* 8011D52C 0011936C 90 03 00 A8 */ stw r0, 0xa8(r3)
/* 8011D530 00119370 90 03 00 AC */ stw r0, 0xac(r3)
2022-10-16 16:31:36 +00:00
/* 8011D534 00119374 48 00 00 CD */ bl InitParam__Q34nw4r3snd10WavePlayerFv
2022-10-16 16:05:58 +00:00
/* 8011D538 00119378 7F E3 FB 78 */ mr r3, r31
/* 8011D53C 0011937C 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 8011D540 00119380 80 01 00 14 */ lwz r0, 0x14(r1)
/* 8011D544 00119384 7C 08 03 A6 */ mtlr r0
/* 8011D548 00119388 38 21 00 10 */ addi r1, r1, 0x10
/* 8011D54C 0011938C 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global __dt__Q34nw4r3snd10WavePlayerFv
__dt__Q34nw4r3snd10WavePlayerFv:
2022-10-16 16:05:58 +00:00
/* 8011D550 00119390 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 8011D554 00119394 7C 08 02 A6 */ mflr r0
/* 8011D558 00119398 2C 03 00 00 */ cmpwi r3, 0x0
/* 8011D55C 0011939C 90 01 00 24 */ stw r0, 0x24(r1)
/* 8011D560 001193A0 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 8011D564 001193A4 93 C1 00 18 */ stw r30, 0x18(r1)
/* 8011D568 001193A8 7C 9E 23 78 */ mr r30, r4
/* 8011D56C 001193AC 93 A1 00 14 */ stw r29, 0x14(r1)
/* 8011D570 001193B0 7C 7D 1B 78 */ mr r29, r3
/* 8011D574 001193B4 41 82 00 64 */ beq lbl_8011D5D8
2022-10-16 16:31:36 +00:00
/* 8011D578 001193B8 3C 80 80 44 */ lis r4, __vt__Q34nw4r3snd10WavePlayer@ha
/* 8011D57C 001193BC 38 84 26 20 */ addi r4, r4, __vt__Q34nw4r3snd10WavePlayer@l
2022-10-16 16:05:58 +00:00
/* 8011D580 001193C0 90 83 00 08 */ stw r4, 0x8(r3)
2022-10-16 16:31:36 +00:00
/* 8011D584 001193C4 4B F0 42 9D */ bl OSDisableInterrupts
2022-10-16 16:05:58 +00:00
/* 8011D588 001193C8 7C 7F 1B 78 */ mr r31, r3
/* 8011D58C 001193CC 7F A3 EB 78 */ mr r3, r29
2022-10-16 16:31:36 +00:00
/* 8011D590 001193D0 48 00 05 B1 */ bl Stop__Q34nw4r3snd10WavePlayerFv
2022-10-16 16:05:58 +00:00
/* 8011D594 001193D4 80 7D 00 20 */ lwz r3, 0x20(r29)
/* 8011D598 001193D8 2C 03 00 00 */ cmpwi r3, 0x0
/* 8011D59C 001193DC 41 82 00 08 */ beq lbl_8011D5A4
2022-10-16 16:31:36 +00:00
/* 8011D5A0 001193E0 4B FF D0 81 */ bl Free__Q44nw4r3snd6detail5VoiceFv
2022-10-16 16:05:58 +00:00
.global lbl_8011D5A4
lbl_8011D5A4:
/* 8011D5A4 001193E4 38 00 00 00 */ li r0, 0x0
/* 8011D5A8 001193E8 90 1D 00 20 */ stw r0, 0x20(r29)
/* 8011D5AC 001193EC 7F E3 FB 78 */ mr r3, r31
/* 8011D5B0 001193F0 90 1D 00 18 */ stw r0, 0x18(r29)
2022-10-16 16:31:36 +00:00
/* 8011D5B4 001193F4 4B F0 42 AD */ bl OSRestoreInterrupts
2022-10-16 16:05:58 +00:00
/* 8011D5B8 001193F8 34 7D 00 0C */ addic. r3, r29, 0xc
/* 8011D5BC 001193FC 41 82 00 0C */ beq lbl_8011D5C8
/* 8011D5C0 00119400 38 80 00 00 */ li r4, 0x0
2022-10-16 16:31:36 +00:00
/* 8011D5C4 00119404 48 00 26 BD */ bl __dt__Q44nw4r2ut6detail12LinkListImplFv
2022-10-16 16:05:58 +00:00
.global lbl_8011D5C8
lbl_8011D5C8:
/* 8011D5C8 00119408 2C 1E 00 00 */ cmpwi r30, 0x0
/* 8011D5CC 0011940C 40 81 00 0C */ ble lbl_8011D5D8
/* 8011D5D0 00119410 7F A3 EB 78 */ mr r3, r29
2022-10-16 16:31:36 +00:00
/* 8011D5D4 00119414 48 0A 21 41 */ bl __dl__FPv
2022-10-16 16:05:58 +00:00
.global lbl_8011D5D8
lbl_8011D5D8:
/* 8011D5D8 00119418 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 8011D5DC 0011941C 7F A3 EB 78 */ mr r3, r29
/* 8011D5E0 00119420 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 8011D5E4 00119424 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 8011D5E8 00119428 80 01 00 24 */ lwz r0, 0x24(r1)
/* 8011D5EC 0011942C 7C 08 03 A6 */ mtlr r0
/* 8011D5F0 00119430 38 21 00 20 */ addi r1, r1, 0x20
/* 8011D5F4 00119434 4E 80 00 20 */ blr
/* 8011D5F8 00119438 00 00 00 00 */ .4byte 0x00000000
/* 8011D5FC 0011943C 00 00 00 00 */ .4byte 0x00000000
2022-10-16 16:31:36 +00:00
.global InitParam__Q34nw4r3snd10WavePlayerFv
InitParam__Q34nw4r3snd10WavePlayerFv:
/* 8011D600 00119440 C0 02 95 04 */ lfs f0, "@9745"@sda21(r2)
2022-10-16 16:05:58 +00:00
/* 8011D604 00119444 38 80 00 00 */ li r4, 0x0
2022-10-16 16:31:36 +00:00
/* 8011D608 00119448 C0 22 95 00 */ lfs f1, "@9744"@sda21(r2)
2022-10-16 16:05:58 +00:00
/* 8011D60C 0011944C 38 00 00 01 */ li r0, 0x1
/* 8011D610 00119450 D0 23 00 60 */ stfs f1, 0x60(r3)
/* 8011D614 00119454 D0 23 00 64 */ stfs f1, 0x64(r3)
/* 8011D618 00119458 D0 03 00 68 */ stfs f0, 0x68(r3)
/* 8011D61C 0011945C D0 03 00 6C */ stfs f0, 0x6c(r3)
/* 8011D620 00119460 D0 03 00 70 */ stfs f0, 0x70(r3)
/* 8011D624 00119464 90 83 00 74 */ stw r4, 0x74(r3)
/* 8011D628 00119468 D0 03 00 78 */ stfs f0, 0x78(r3)
/* 8011D62C 0011946C 90 03 00 7C */ stw r0, 0x7c(r3)
/* 8011D630 00119470 D0 23 00 80 */ stfs f1, 0x80(r3)
/* 8011D634 00119474 D0 03 00 84 */ stfs f0, 0x84(r3)
/* 8011D638 00119478 D0 03 00 88 */ stfs f0, 0x88(r3)
/* 8011D63C 0011947C D0 03 00 8C */ stfs f0, 0x8c(r3)
/* 8011D640 00119480 D0 03 00 90 */ stfs f0, 0x90(r3)
/* 8011D644 00119484 D0 23 00 94 */ stfs f1, 0x94(r3)
/* 8011D648 00119488 D0 23 00 98 */ stfs f1, 0x98(r3)
/* 8011D64C 0011948C D0 23 00 9C */ stfs f1, 0x9c(r3)
/* 8011D650 00119490 D0 23 00 A0 */ stfs f1, 0xa0(r3)
/* 8011D654 00119494 98 83 00 A4 */ stb r4, 0xa4(r3)
/* 8011D658 00119498 4E 80 00 20 */ blr
/* 8011D65C 0011949C 00 00 00 00 */ .4byte 0x00000000
2022-10-16 16:31:36 +00:00
.global Setup__Q34nw4r3snd10WavePlayerFRCQ44nw4r3snd10WavePlayer10SetupParamPFQ44nw4r3snd10WavePlayer24WavePacketCallbackStatusPQ34nw4r3snd10WavePlayerPQ44nw4r3snd10WavePlayer10WavePacketPv_vPv
Setup__Q34nw4r3snd10WavePlayerFRCQ44nw4r3snd10WavePlayer10SetupParamPFQ44nw4r3snd10WavePlayer24WavePacketCallbackStatusPQ34nw4r3snd10WavePlayerPQ44nw4r3snd10WavePlayer10WavePacketPv_vPv:
2022-10-16 16:05:58 +00:00
/* 8011D660 001194A0 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 8011D664 001194A4 7C 08 02 A6 */ mflr r0
/* 8011D668 001194A8 90 01 00 34 */ stw r0, 0x34(r1)
/* 8011D66C 001194AC 39 61 00 30 */ addi r11, r1, 0x30
/* 8011D670 001194B0 4B EE 9C BD */ bl lbl_8000732C
/* 8011D674 001194B4 80 04 00 00 */ lwz r0, 0x0(r4)
/* 8011D678 001194B8 7C 7B 1B 78 */ mr r27, r3
/* 8011D67C 001194BC 7C 9C 23 78 */ mr r28, r4
/* 8011D680 001194C0 7C BD 2B 78 */ mr r29, r5
/* 8011D684 001194C4 2C 00 00 02 */ cmpwi r0, 0x2
/* 8011D688 001194C8 7C DE 33 78 */ mr r30, r6
/* 8011D68C 001194CC 40 81 00 0C */ ble lbl_8011D698
/* 8011D690 001194D0 3B E0 00 02 */ li r31, 0x2
/* 8011D694 001194D4 48 00 00 14 */ b lbl_8011D6A8
.global lbl_8011D698
lbl_8011D698:
/* 8011D698 001194D8 2C 00 00 01 */ cmpwi r0, 0x1
/* 8011D69C 001194DC 3B E0 00 01 */ li r31, 0x1
/* 8011D6A0 001194E0 41 80 00 08 */ blt lbl_8011D6A8
/* 8011D6A4 001194E4 7C 1F 03 78 */ mr r31, r0
.global lbl_8011D6A8
lbl_8011D6A8:
/* 8011D6A8 001194E8 80 04 00 10 */ lwz r0, 0x10(r4)
/* 8011D6AC 001194EC 2C 00 00 04 */ cmpwi r0, 0x4
/* 8011D6B0 001194F0 40 81 00 0C */ ble lbl_8011D6BC
/* 8011D6B4 001194F4 3A E0 00 04 */ li r23, 0x4
/* 8011D6B8 001194F8 48 00 00 14 */ b lbl_8011D6CC
.global lbl_8011D6BC
lbl_8011D6BC:
/* 8011D6BC 001194FC 2C 00 00 01 */ cmpwi r0, 0x1
/* 8011D6C0 00119500 3A E0 00 01 */ li r23, 0x1
/* 8011D6C4 00119504 41 80 00 08 */ blt lbl_8011D6CC
/* 8011D6C8 00119508 7C 17 03 78 */ mr r23, r0
.global lbl_8011D6CC
lbl_8011D6CC:
2022-10-16 16:31:36 +00:00
/* 8011D6CC 0011950C 4B F0 41 55 */ bl OSDisableInterrupts
2022-10-16 16:05:58 +00:00
/* 8011D6D0 00119510 7C 7A 1B 78 */ mr r26, r3
/* 8011D6D4 00119514 7F 63 DB 78 */ mr r3, r27
2022-10-16 16:31:36 +00:00
/* 8011D6D8 00119518 48 00 04 69 */ bl Stop__Q34nw4r3snd10WavePlayerFv
2022-10-16 16:05:58 +00:00
/* 8011D6DC 0011951C 80 7B 00 20 */ lwz r3, 0x20(r27)
/* 8011D6E0 00119520 2C 03 00 00 */ cmpwi r3, 0x0
/* 8011D6E4 00119524 41 82 00 08 */ beq lbl_8011D6EC
2022-10-16 16:31:36 +00:00
/* 8011D6E8 00119528 4B FF CF 39 */ bl Free__Q44nw4r3snd6detail5VoiceFv
2022-10-16 16:05:58 +00:00
.global lbl_8011D6EC
lbl_8011D6EC:
/* 8011D6EC 0011952C 38 00 00 00 */ li r0, 0x0
/* 8011D6F0 00119530 90 1B 00 20 */ stw r0, 0x20(r27)
/* 8011D6F4 00119534 7F 43 D3 78 */ mr r3, r26
/* 8011D6F8 00119538 90 1B 00 18 */ stw r0, 0x18(r27)
2022-10-16 16:31:36 +00:00
/* 8011D6FC 0011953C 4B F0 41 65 */ bl OSRestoreInterrupts
/* 8011D700 00119540 4B FF ED E1 */ bl GetInstance__Q44nw4r3snd6detail12VoiceManagerFv
/* 8011D704 00119544 3C E0 80 12 */ lis r7, VoiceCallbackFunc__Q34nw4r3snd10WavePlayerFPQ44nw4r3snd6detail5VoiceQ54nw4r3snd6detail5Voice19VoiceCallbackStatusPv@ha
2022-10-16 16:05:58 +00:00
/* 8011D708 00119548 7F E4 FB 78 */ mr r4, r31
/* 8011D70C 0011954C 7E E5 BB 78 */ mr r5, r23
/* 8011D710 00119550 7F 68 DB 78 */ mr r8, r27
2022-10-16 16:31:36 +00:00
/* 8011D714 00119554 38 E7 DF 10 */ addi r7, r7, VoiceCallbackFunc__Q34nw4r3snd10WavePlayerFPQ44nw4r3snd6detail5VoiceQ54nw4r3snd6detail5Voice19VoiceCallbackStatusPv@l
2022-10-16 16:05:58 +00:00
/* 8011D718 00119558 38 C0 00 FF */ li r6, 0xff
2022-10-16 16:31:36 +00:00
/* 8011D71C 0011955C 4B FF F0 55 */ bl AllocVoice__Q44nw4r3snd6detail12VoiceManagerFiiiPFPQ44nw4r3snd6detail5VoiceQ54nw4r3snd6detail5Voice19VoiceCallbackStatusPv_vPv
2022-10-16 16:05:58 +00:00
/* 8011D720 00119560 2C 03 00 00 */ cmpwi r3, 0x0
/* 8011D724 00119564 40 82 00 0C */ bne lbl_8011D730
/* 8011D728 00119568 38 60 00 00 */ li r3, 0x0
/* 8011D72C 0011956C 48 00 00 B8 */ b lbl_8011D7E4
.global lbl_8011D730
lbl_8011D730:
/* 8011D730 00119570 90 7B 00 20 */ stw r3, 0x20(r27)
/* 8011D734 00119574 38 80 00 01 */ li r4, 0x1
2022-10-16 16:31:36 +00:00
/* 8011D738 00119578 4B FF D3 B9 */ bl SetPanMode__Q44nw4r3snd6detail5VoiceFQ34nw4r3snd7PanMode
2022-10-16 16:05:58 +00:00
/* 8011D73C 0011957C 80 7B 00 20 */ lwz r3, 0x20(r27)
/* 8011D740 00119580 38 80 00 01 */ li r4, 0x1
2022-10-16 16:31:36 +00:00
/* 8011D744 00119584 4B FF D3 CD */ bl SetPanCurve__Q44nw4r3snd6detail5VoiceFQ34nw4r3snd8PanCurve
2022-10-16 16:05:58 +00:00
/* 8011D748 00119588 80 9B 00 20 */ lwz r4, 0x20(r27)
/* 8011D74C 0011958C 38 00 00 01 */ li r0, 0x1
/* 8011D750 00119590 82 FC 00 04 */ lwz r23, 0x4(r28)
/* 8011D754 00119594 7F 63 DB 78 */ mr r3, r27
/* 8011D758 00119598 98 04 00 A1 */ stb r0, 0xa1(r4)
/* 8011D75C 0011959C 83 1C 00 08 */ lwz r24, 0x8(r28)
/* 8011D760 001195A0 C0 1C 00 0C */ lfs f0, 0xc(r28)
/* 8011D764 001195A4 83 3C 00 14 */ lwz r25, 0x14(r28)
/* 8011D768 001195A8 83 5C 00 18 */ lwz r26, 0x18(r28)
/* 8011D76C 001195AC 81 9C 00 1C */ lwz r12, 0x1c(r28)
/* 8011D770 001195B0 81 7C 00 20 */ lwz r11, 0x20(r28)
/* 8011D774 001195B4 81 5C 00 24 */ lwz r10, 0x24(r28)
/* 8011D778 001195B8 81 3C 00 28 */ lwz r9, 0x28(r28)
/* 8011D77C 001195BC 81 1C 00 2C */ lwz r8, 0x2c(r28)
/* 8011D780 001195C0 80 FC 00 30 */ lwz r7, 0x30(r28)
/* 8011D784 001195C4 A0 DC 00 34 */ lhz r6, 0x34(r28)
/* 8011D788 001195C8 A0 BC 00 36 */ lhz r5, 0x36(r28)
/* 8011D78C 001195CC A0 9C 00 38 */ lhz r4, 0x38(r28)
/* 8011D790 001195D0 A0 1C 00 3A */ lhz r0, 0x3a(r28)
/* 8011D794 001195D4 93 FB 00 18 */ stw r31, 0x18(r27)
/* 8011D798 001195D8 92 FB 00 28 */ stw r23, 0x28(r27)
/* 8011D79C 001195DC 93 1B 00 2C */ stw r24, 0x2c(r27)
/* 8011D7A0 001195E0 D0 1B 00 1C */ stfs f0, 0x1c(r27)
/* 8011D7A4 001195E4 93 3B 00 38 */ stw r25, 0x38(r27)
/* 8011D7A8 001195E8 93 5B 00 3C */ stw r26, 0x3c(r27)
/* 8011D7AC 001195EC 91 9B 00 40 */ stw r12, 0x40(r27)
/* 8011D7B0 001195F0 91 7B 00 44 */ stw r11, 0x44(r27)
/* 8011D7B4 001195F4 91 5B 00 48 */ stw r10, 0x48(r27)
/* 8011D7B8 001195F8 91 3B 00 4C */ stw r9, 0x4c(r27)
/* 8011D7BC 001195FC 91 1B 00 50 */ stw r8, 0x50(r27)
/* 8011D7C0 00119600 90 FB 00 54 */ stw r7, 0x54(r27)
/* 8011D7C4 00119604 B0 DB 00 58 */ sth r6, 0x58(r27)
/* 8011D7C8 00119608 B0 BB 00 5A */ sth r5, 0x5a(r27)
/* 8011D7CC 0011960C B0 9B 00 5C */ sth r4, 0x5c(r27)
/* 8011D7D0 00119610 B0 1B 00 5E */ sth r0, 0x5e(r27)
/* 8011D7D4 00119614 93 BB 00 A8 */ stw r29, 0xa8(r27)
/* 8011D7D8 00119618 93 DB 00 AC */ stw r30, 0xac(r27)
2022-10-16 16:31:36 +00:00
/* 8011D7DC 0011961C 4B FF FE 25 */ bl InitParam__Q34nw4r3snd10WavePlayerFv
2022-10-16 16:05:58 +00:00
/* 8011D7E0 00119620 38 60 00 01 */ li r3, 0x1
.global lbl_8011D7E4
lbl_8011D7E4:
/* 8011D7E4 00119624 39 61 00 30 */ addi r11, r1, 0x30
/* 8011D7E8 00119628 4B EE 9B 91 */ bl lbl_80007378
/* 8011D7EC 0011962C 80 01 00 34 */ lwz r0, 0x34(r1)
/* 8011D7F0 00119630 7C 08 03 A6 */ mtlr r0
/* 8011D7F4 00119634 38 21 00 30 */ addi r1, r1, 0x30
/* 8011D7F8 00119638 4E 80 00 20 */ blr
/* 8011D7FC 0011963C 00 00 00 00 */ .4byte 0x00000000
2022-10-16 16:31:36 +00:00
.global Shutdown__Q34nw4r3snd10WavePlayerFv
Shutdown__Q34nw4r3snd10WavePlayerFv:
2022-10-16 16:05:58 +00:00
/* 8011D800 00119640 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 8011D804 00119644 7C 08 02 A6 */ mflr r0
/* 8011D808 00119648 90 01 00 14 */ stw r0, 0x14(r1)
/* 8011D80C 0011964C 93 E1 00 0C */ stw r31, 0xc(r1)
/* 8011D810 00119650 93 C1 00 08 */ stw r30, 0x8(r1)
/* 8011D814 00119654 7C 7E 1B 78 */ mr r30, r3
2022-10-16 16:31:36 +00:00
/* 8011D818 00119658 4B F0 40 09 */ bl OSDisableInterrupts
2022-10-16 16:05:58 +00:00
/* 8011D81C 0011965C 7C 7F 1B 78 */ mr r31, r3
/* 8011D820 00119660 7F C3 F3 78 */ mr r3, r30
2022-10-16 16:31:36 +00:00
/* 8011D824 00119664 48 00 03 1D */ bl Stop__Q34nw4r3snd10WavePlayerFv
2022-10-16 16:05:58 +00:00
/* 8011D828 00119668 80 7E 00 20 */ lwz r3, 0x20(r30)
/* 8011D82C 0011966C 2C 03 00 00 */ cmpwi r3, 0x0
/* 8011D830 00119670 41 82 00 08 */ beq lbl_8011D838
2022-10-16 16:31:36 +00:00
/* 8011D834 00119674 4B FF CD ED */ bl Free__Q44nw4r3snd6detail5VoiceFv
2022-10-16 16:05:58 +00:00
.global lbl_8011D838
lbl_8011D838:
/* 8011D838 00119678 38 00 00 00 */ li r0, 0x0
/* 8011D83C 0011967C 90 1E 00 20 */ stw r0, 0x20(r30)
/* 8011D840 00119680 7F E3 FB 78 */ mr r3, r31
/* 8011D844 00119684 90 1E 00 18 */ stw r0, 0x18(r30)
2022-10-16 16:31:36 +00:00
/* 8011D848 00119688 4B F0 40 19 */ bl OSRestoreInterrupts
2022-10-16 16:05:58 +00:00
/* 8011D84C 0011968C 80 01 00 14 */ lwz r0, 0x14(r1)
/* 8011D850 00119690 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 8011D854 00119694 83 C1 00 08 */ lwz r30, 0x8(r1)
/* 8011D858 00119698 7C 08 03 A6 */ mtlr r0
/* 8011D85C 0011969C 38 21 00 10 */ addi r1, r1, 0x10
/* 8011D860 001196A0 4E 80 00 20 */ blr
/* 8011D864 001196A4 00 00 00 00 */ .4byte 0x00000000
/* 8011D868 001196A8 00 00 00 00 */ .4byte 0x00000000
/* 8011D86C 001196AC 00 00 00 00 */ .4byte 0x00000000
2022-10-16 16:31:36 +00:00
.global GetMinimumBufferSize__Q34nw4r3snd10WavePlayerFv
GetMinimumBufferSize__Q34nw4r3snd10WavePlayerFv:
2022-10-16 16:05:58 +00:00
/* 8011D870 001196B0 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 8011D874 001196B4 7C 08 02 A6 */ mflr r0
2022-10-16 16:31:36 +00:00
/* 8011D878 001196B8 C0 22 95 0C */ lfs f1, "@9804"@sda21(r2)
2022-10-16 16:05:58 +00:00
/* 8011D87C 001196BC 90 01 00 24 */ stw r0, 0x24(r1)
/* 8011D880 001196C0 3C 00 43 30 */ lis r0, 0x4330
2022-10-16 16:31:36 +00:00
/* 8011D884 001196C4 C8 42 95 18 */ lfd f2, "@9808"@sda21(r2)
2022-10-16 16:05:58 +00:00
/* 8011D888 001196C8 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 8011D88C 001196CC 7C 7F 1B 78 */ mr r31, r3
/* 8011D890 001196D0 80 83 00 2C */ lwz r4, 0x2c(r3)
/* 8011D894 001196D4 C0 03 00 1C */ lfs f0, 0x1c(r3)
/* 8011D898 001196D8 6C 83 80 00 */ xoris r3, r4, 0x8000
/* 8011D89C 001196DC 90 61 00 0C */ stw r3, 0xc(r1)
/* 8011D8A0 001196E0 EC 61 00 32 */ fmuls f3, f1, f0
2022-10-16 16:31:36 +00:00
/* 8011D8A4 001196E4 C0 02 95 08 */ lfs f0, "@9803"@sda21(r2)
2022-10-16 16:05:58 +00:00
/* 8011D8A8 001196E8 90 01 00 08 */ stw r0, 0x8(r1)
/* 8011D8AC 001196EC C8 21 00 08 */ lfd f1, 0x8(r1)
/* 8011D8B0 001196F0 EC 60 00 F2 */ fmuls f3, f0, f3
2022-10-16 16:31:36 +00:00
/* 8011D8B4 001196F4 C0 02 95 10 */ lfs f0, "@9805"@sda21(r2)
2022-10-16 16:05:58 +00:00
/* 8011D8B8 001196F8 EC 21 10 28 */ fsubs f1, f1, f2
/* 8011D8BC 001196FC EC 23 00 72 */ fmuls f1, f3, f1
/* 8011D8C0 00119700 EC 21 00 24 */ fdivs f1, f1, f0
2022-10-16 16:31:36 +00:00
/* 8011D8C4 00119704 4B EE 99 51 */ bl __cvt_fp2unsigned
2022-10-16 16:05:58 +00:00
/* 8011D8C8 00119708 80 1F 00 28 */ lwz r0, 0x28(r31)
/* 8011D8CC 0011970C 2C 00 00 01 */ cmpwi r0, 0x1
/* 8011D8D0 00119710 41 82 00 18 */ beq lbl_8011D8E8
/* 8011D8D4 00119714 2C 00 00 02 */ cmpwi r0, 0x2
/* 8011D8D8 00119718 41 82 00 58 */ beq lbl_8011D930
/* 8011D8DC 0011971C 2C 00 00 03 */ cmpwi r0, 0x3
/* 8011D8E0 00119720 41 82 00 14 */ beq lbl_8011D8F4
/* 8011D8E4 00119724 48 00 00 48 */ b lbl_8011D92C
.global lbl_8011D8E8
lbl_8011D8E8:
/* 8011D8E8 00119728 54 63 08 3C */ slwi r3, r3, 1
/* 8011D8EC 0011972C 48 00 00 44 */ b lbl_8011D930
/* 8011D8F0 00119730 48 00 00 40 */ b lbl_8011D930
.global lbl_8011D8F4
lbl_8011D8F4:
/* 8011D8F4 00119734 3C 80 24 92 */ lis r4, 0x2492
/* 8011D8F8 00119738 38 04 49 25 */ addi r0, r4, 0x4925
/* 8011D8FC 0011973C 7C 80 18 16 */ mulhwu r4, r0, r3
/* 8011D900 00119740 7C 04 18 50 */ subf r0, r4, r3
/* 8011D904 00119744 54 00 F8 7E */ srwi r0, r0, 1
/* 8011D908 00119748 7C 80 22 14 */ add r4, r0, r4
/* 8011D90C 0011974C 54 80 E8 FE */ srwi r0, r4, 3
/* 8011D910 00119750 1C 00 00 0E */ mulli r0, r0, 0xe
/* 8011D914 00119754 54 84 00 38 */ clrrwi r4, r4, 3
/* 8011D918 00119758 7C 00 18 50 */ subf r0, r0, r3
/* 8011D91C 0011975C 54 00 08 3C */ slwi r0, r0, 1
/* 8011D920 00119760 7C 64 02 14 */ add r3, r4, r0
/* 8011D924 00119764 38 63 00 01 */ addi r3, r3, 0x1
/* 8011D928 00119768 48 00 00 08 */ b lbl_8011D930
.global lbl_8011D92C
lbl_8011D92C:
/* 8011D92C 0011976C 38 60 00 00 */ li r3, 0x0
.global lbl_8011D930
lbl_8011D930:
/* 8011D930 00119770 80 01 00 24 */ lwz r0, 0x24(r1)
/* 8011D934 00119774 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 8011D938 00119778 7C 08 03 A6 */ mtlr r0
/* 8011D93C 0011977C 38 21 00 20 */ addi r1, r1, 0x20
/* 8011D940 00119780 4E 80 00 20 */ blr
/* 8011D944 00119784 00 00 00 00 */ .4byte 0x00000000
/* 8011D948 00119788 00 00 00 00 */ .4byte 0x00000000
/* 8011D94C 0011978C 00 00 00 00 */ .4byte 0x00000000
2022-10-16 16:31:36 +00:00
.global AppendWavePacket__Q34nw4r3snd10WavePlayerFPQ44nw4r3snd10WavePlayer10WavePacket
AppendWavePacket__Q34nw4r3snd10WavePlayerFPQ44nw4r3snd10WavePlayer10WavePacket:
2022-10-16 16:05:58 +00:00
/* 8011D950 00119790 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 8011D954 00119794 7C 08 02 A6 */ mflr r0
/* 8011D958 00119798 90 01 00 34 */ stw r0, 0x34(r1)
/* 8011D95C 0011979C 93 E1 00 2C */ stw r31, 0x2c(r1)
/* 8011D960 001197A0 93 C1 00 28 */ stw r30, 0x28(r1)
/* 8011D964 001197A4 7C 9E 23 78 */ mr r30, r4
/* 8011D968 001197A8 93 A1 00 24 */ stw r29, 0x24(r1)
/* 8011D96C 001197AC 7C 7D 1B 78 */ mr r29, r3
/* 8011D970 001197B0 88 04 00 14 */ lbz r0, 0x14(r4)
/* 8011D974 001197B4 2C 00 00 00 */ cmpwi r0, 0x0
/* 8011D978 001197B8 41 82 00 0C */ beq lbl_8011D984
/* 8011D97C 001197BC 38 60 00 00 */ li r3, 0x0
/* 8011D980 001197C0 48 00 00 B8 */ b lbl_8011DA38
.global lbl_8011D984
lbl_8011D984:
/* 8011D984 001197C4 80 A4 00 04 */ lwz r5, 0x4(r4)
/* 8011D988 001197C8 80 03 00 18 */ lwz r0, 0x18(r3)
/* 8011D98C 001197CC 7C 05 00 00 */ cmpw r5, r0
/* 8011D990 001197D0 40 80 00 0C */ bge lbl_8011D99C
/* 8011D994 001197D4 38 60 00 00 */ li r3, 0x0
/* 8011D998 001197D8 48 00 00 A0 */ b lbl_8011DA38
.global lbl_8011D99C
lbl_8011D99C:
/* 8011D99C 001197DC 80 A3 00 28 */ lwz r5, 0x28(r3)
/* 8011D9A0 001197E0 80 64 00 10 */ lwz r3, 0x10(r4)
/* 8011D9A4 001197E4 38 05 FF FF */ addi r0, r5, -0x1
/* 8011D9A8 001197E8 28 00 00 02 */ cmplwi r0, 0x2
/* 8011D9AC 001197EC 41 81 00 10 */ bgt lbl_8011D9BC
/* 8011D9B0 001197F0 7C A4 2B 78 */ mr r4, r5
2022-10-16 16:31:36 +00:00
/* 8011D9B4 001197F4 4B FE 41 FD */ bl GetSampleByByte__Q44nw4r3snd6detail7AxVoiceFUlQ34nw4r3snd12SampleFormat
2022-10-16 16:05:58 +00:00
/* 8011D9B8 001197F8 48 00 00 0C */ b lbl_8011D9C4
.global lbl_8011D9BC
lbl_8011D9BC:
/* 8011D9BC 001197FC 38 60 00 00 */ li r3, 0x0
/* 8011D9C0 00119800 48 00 00 78 */ b lbl_8011DA38
.global lbl_8011D9C4
lbl_8011D9C4:
/* 8011D9C4 00119804 1C 83 03 E8 */ mulli r4, r3, 0x3e8
/* 8011D9C8 00119808 3C 00 43 30 */ lis r0, 0x4330
/* 8011D9CC 0011980C 80 7D 00 2C */ lwz r3, 0x2c(r29)
/* 8011D9D0 00119810 90 01 00 10 */ stw r0, 0x10(r1)
/* 8011D9D4 00119814 7C 04 1B 96 */ divwu r0, r4, r3
2022-10-16 16:31:36 +00:00
/* 8011D9D8 00119818 C0 22 95 20 */ lfs f1, "@9857"@sda21(r2)
2022-10-16 16:05:58 +00:00
/* 8011D9DC 0011981C C0 1D 00 1C */ lfs f0, 0x1c(r29)
2022-10-16 16:31:36 +00:00
/* 8011D9E0 00119820 C8 42 95 28 */ lfd f2, "@9861"@sda21(r2)
2022-10-16 16:05:58 +00:00
/* 8011D9E4 00119824 EC 01 00 32 */ fmuls f0, f1, f0
/* 8011D9E8 00119828 90 01 00 14 */ stw r0, 0x14(r1)
/* 8011D9EC 0011982C C8 21 00 10 */ lfd f1, 0x10(r1)
/* 8011D9F0 00119830 EC 21 10 28 */ fsubs f1, f1, f2
/* 8011D9F4 00119834 FC 01 00 40 */ fcmpo cr0, f1, f0
/* 8011D9F8 00119838 40 80 00 0C */ bge lbl_8011DA04
/* 8011D9FC 0011983C 38 60 00 00 */ li r3, 0x0
/* 8011DA00 00119840 48 00 00 38 */ b lbl_8011DA38
.global lbl_8011DA04
lbl_8011DA04:
2022-10-16 16:31:36 +00:00
/* 8011DA04 00119844 4B F0 3E 1D */ bl OSDisableInterrupts
2022-10-16 16:05:58 +00:00
/* 8011DA08 00119848 38 1D 00 10 */ addi r0, r29, 0x10
/* 8011DA0C 0011984C 90 01 00 08 */ stw r0, 0x8(r1)
/* 8011DA10 00119850 7C 7F 1B 78 */ mr r31, r3
/* 8011DA14 00119854 38 7D 00 0C */ addi r3, r29, 0xc
/* 8011DA18 00119858 38 81 00 08 */ addi r4, r1, 0x8
/* 8011DA1C 0011985C 38 BE 00 18 */ addi r5, r30, 0x18
2022-10-16 16:31:36 +00:00
/* 8011DA20 00119860 48 00 23 91 */ bl Insert__Q44nw4r2ut6detail12LinkListImplFQ54nw4r2ut6detail12LinkListImpl8IteratorPQ34nw4r2ut12LinkListNode
2022-10-16 16:05:58 +00:00
/* 8011DA24 00119864 38 00 00 01 */ li r0, 0x1
/* 8011DA28 00119868 98 1E 00 14 */ stb r0, 0x14(r30)
/* 8011DA2C 0011986C 7F E3 FB 78 */ mr r3, r31
2022-10-16 16:31:36 +00:00
/* 8011DA30 00119870 4B F0 3E 31 */ bl OSRestoreInterrupts
2022-10-16 16:05:58 +00:00
/* 8011DA34 00119874 38 60 00 01 */ li r3, 0x1
.global lbl_8011DA38
lbl_8011DA38:
/* 8011DA38 00119878 80 01 00 34 */ lwz r0, 0x34(r1)
/* 8011DA3C 0011987C 83 E1 00 2C */ lwz r31, 0x2c(r1)
/* 8011DA40 00119880 83 C1 00 28 */ lwz r30, 0x28(r1)
/* 8011DA44 00119884 83 A1 00 24 */ lwz r29, 0x24(r1)
/* 8011DA48 00119888 7C 08 03 A6 */ mtlr r0
/* 8011DA4C 0011988C 38 21 00 30 */ addi r1, r1, 0x30
/* 8011DA50 00119890 4E 80 00 20 */ blr
/* 8011DA54 00119894 00 00 00 00 */ .4byte 0x00000000
/* 8011DA58 00119898 00 00 00 00 */ .4byte 0x00000000
/* 8011DA5C 0011989C 00 00 00 00 */ .4byte 0x00000000
2022-10-16 16:31:36 +00:00
.global Start__Q34nw4r3snd10WavePlayerFv
Start__Q34nw4r3snd10WavePlayerFv:
2022-10-16 16:05:58 +00:00
/* 8011DA60 001198A0 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 8011DA64 001198A4 7C 08 02 A6 */ mflr r0
/* 8011DA68 001198A8 90 01 00 24 */ stw r0, 0x24(r1)
/* 8011DA6C 001198AC 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 8011DA70 001198B0 93 C1 00 18 */ stw r30, 0x18(r1)
/* 8011DA74 001198B4 93 A1 00 14 */ stw r29, 0x14(r1)
/* 8011DA78 001198B8 7C 7D 1B 78 */ mr r29, r3
2022-10-16 16:31:36 +00:00
/* 8011DA7C 001198BC 4B F0 3D A5 */ bl OSDisableInterrupts
2022-10-16 16:05:58 +00:00
/* 8011DA80 001198C0 88 1D 00 27 */ lbz r0, 0x27(r29)
/* 8011DA84 001198C4 7C 7F 1B 78 */ mr r31, r3
/* 8011DA88 001198C8 2C 00 00 00 */ cmpwi r0, 0x0
/* 8011DA8C 001198CC 41 82 00 50 */ beq lbl_8011DADC
2022-10-16 16:31:36 +00:00
/* 8011DA90 001198D0 4B F0 3D 91 */ bl OSDisableInterrupts
2022-10-16 16:05:58 +00:00
/* 8011DA94 001198D4 88 1D 00 24 */ lbz r0, 0x24(r29)
/* 8011DA98 001198D8 7C 7E 1B 78 */ mr r30, r3
/* 8011DA9C 001198DC 2C 00 00 00 */ cmpwi r0, 0x0
/* 8011DAA0 001198E0 40 82 00 0C */ bne lbl_8011DAAC
2022-10-16 16:31:36 +00:00
/* 8011DAA4 001198E4 4B F0 3D BD */ bl OSRestoreInterrupts
2022-10-16 16:05:58 +00:00
/* 8011DAA8 001198E8 48 00 00 34 */ b lbl_8011DADC
.global lbl_8011DAAC
lbl_8011DAAC:
/* 8011DAAC 001198EC 88 1D 00 27 */ lbz r0, 0x27(r29)
/* 8011DAB0 001198F0 2C 00 00 00 */ cmpwi r0, 0x0
/* 8011DAB4 001198F4 40 82 00 0C */ bne lbl_8011DAC0
2022-10-16 16:31:36 +00:00
/* 8011DAB8 001198F8 4B F0 3D A9 */ bl OSRestoreInterrupts
2022-10-16 16:05:58 +00:00
/* 8011DABC 001198FC 48 00 00 20 */ b lbl_8011DADC
.global lbl_8011DAC0
lbl_8011DAC0:
/* 8011DAC0 00119900 38 00 00 00 */ li r0, 0x0
/* 8011DAC4 00119904 98 1D 00 27 */ stb r0, 0x27(r29)
/* 8011DAC8 00119908 80 7D 00 20 */ lwz r3, 0x20(r29)
/* 8011DACC 0011990C 38 80 00 00 */ li r4, 0x0
2022-10-16 16:31:36 +00:00
/* 8011DAD0 00119910 4B FF CF 11 */ bl Pause__Q44nw4r3snd6detail5VoiceFb
2022-10-16 16:05:58 +00:00
/* 8011DAD4 00119914 7F C3 F3 78 */ mr r3, r30
2022-10-16 16:31:36 +00:00
/* 8011DAD8 00119918 4B F0 3D 89 */ bl OSRestoreInterrupts
2022-10-16 16:05:58 +00:00
.global lbl_8011DADC
lbl_8011DADC:
/* 8011DADC 0011991C 88 1D 00 24 */ lbz r0, 0x24(r29)
/* 8011DAE0 00119920 2C 00 00 00 */ cmpwi r0, 0x0
/* 8011DAE4 00119924 40 82 00 18 */ bne lbl_8011DAFC
2022-10-16 16:31:36 +00:00
/* 8011DAE8 00119928 4B FF 71 F9 */ bl GetInstance__Q44nw4r3snd6detail11SoundThreadFv
2022-10-16 16:05:58 +00:00
/* 8011DAEC 0011992C 7F A4 EB 78 */ mr r4, r29
2022-10-16 16:31:36 +00:00
/* 8011DAF0 00119930 4B FF 77 21 */ bl RegisterPlayerCallback__Q44nw4r3snd6detail11SoundThreadFPQ54nw4r3snd6detail11SoundThread14PlayerCallback
2022-10-16 16:05:58 +00:00
/* 8011DAF4 00119934 38 00 00 01 */ li r0, 0x1
/* 8011DAF8 00119938 98 1D 00 24 */ stb r0, 0x24(r29)
.global lbl_8011DAFC
lbl_8011DAFC:
/* 8011DAFC 0011993C 80 1D 00 0C */ lwz r0, 0xc(r29)
/* 8011DB00 00119940 38 60 00 00 */ li r3, 0x0
/* 8011DB04 00119944 90 7D 00 34 */ stw r3, 0x34(r29)
/* 8011DB08 00119948 2C 00 00 00 */ cmpwi r0, 0x0
/* 8011DB0C 0011994C 90 7D 00 30 */ stw r3, 0x30(r29)
/* 8011DB10 00119950 41 82 00 0C */ beq lbl_8011DB1C
/* 8011DB14 00119954 7F A3 EB 78 */ mr r3, r29
2022-10-16 16:31:36 +00:00
/* 8011DB18 00119958 48 00 01 19 */ bl StartVoice__Q34nw4r3snd10WavePlayerFv
2022-10-16 16:05:58 +00:00
.global lbl_8011DB1C
lbl_8011DB1C:
/* 8011DB1C 0011995C 7F E3 FB 78 */ mr r3, r31
2022-10-16 16:31:36 +00:00
/* 8011DB20 00119960 4B F0 3D 41 */ bl OSRestoreInterrupts
2022-10-16 16:05:58 +00:00
/* 8011DB24 00119964 80 01 00 24 */ lwz r0, 0x24(r1)
/* 8011DB28 00119968 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 8011DB2C 0011996C 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 8011DB30 00119970 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 8011DB34 00119974 7C 08 03 A6 */ mtlr r0
/* 8011DB38 00119978 38 21 00 20 */ addi r1, r1, 0x20
/* 8011DB3C 0011997C 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global Stop__Q34nw4r3snd10WavePlayerFv
Stop__Q34nw4r3snd10WavePlayerFv:
2022-10-16 16:05:58 +00:00
/* 8011DB40 00119980 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 8011DB44 00119984 7C 08 02 A6 */ mflr r0
/* 8011DB48 00119988 90 01 00 34 */ stw r0, 0x34(r1)
/* 8011DB4C 0011998C 39 61 00 30 */ addi r11, r1, 0x30
/* 8011DB50 00119990 4B EE 97 E9 */ bl lbl_80007338
/* 8011DB54 00119994 7C 7A 1B 78 */ mr r26, r3
2022-10-16 16:31:36 +00:00
/* 8011DB58 00119998 4B F0 3C C9 */ bl OSDisableInterrupts
2022-10-16 16:05:58 +00:00
/* 8011DB5C 0011999C 88 1A 00 24 */ lbz r0, 0x24(r26)
/* 8011DB60 001199A0 7C 7F 1B 78 */ mr r31, r3
/* 8011DB64 001199A4 2C 00 00 00 */ cmpwi r0, 0x0
/* 8011DB68 001199A8 41 82 00 18 */ beq lbl_8011DB80
2022-10-16 16:31:36 +00:00
/* 8011DB6C 001199AC 4B FF 71 75 */ bl GetInstance__Q44nw4r3snd6detail11SoundThreadFv
2022-10-16 16:05:58 +00:00
/* 8011DB70 001199B0 7F 44 D3 78 */ mr r4, r26
2022-10-16 16:31:36 +00:00
/* 8011DB74 001199B4 4B FF 77 0D */ bl UnregisterPlayerCallback__Q44nw4r3snd6detail11SoundThreadFPQ54nw4r3snd6detail11SoundThread14PlayerCallback
2022-10-16 16:05:58 +00:00
/* 8011DB78 001199B8 38 00 00 00 */ li r0, 0x0
/* 8011DB7C 001199BC 98 1A 00 24 */ stb r0, 0x24(r26)
.global lbl_8011DB80
lbl_8011DB80:
2022-10-16 16:31:36 +00:00
/* 8011DB80 001199C0 4B F0 3C A1 */ bl OSDisableInterrupts
2022-10-16 16:05:58 +00:00
/* 8011DB84 001199C4 80 1A 00 20 */ lwz r0, 0x20(r26)
/* 8011DB88 001199C8 7C 7E 1B 78 */ mr r30, r3
/* 8011DB8C 001199CC 2C 00 00 00 */ cmpwi r0, 0x0
/* 8011DB90 001199D0 41 82 00 0C */ beq lbl_8011DB9C
/* 8011DB94 001199D4 7C 03 03 78 */ mr r3, r0
2022-10-16 16:31:36 +00:00
/* 8011DB98 001199D8 4B FF CD 79 */ bl Stop__Q44nw4r3snd6detail5VoiceFv
2022-10-16 16:05:58 +00:00
.global lbl_8011DB9C
lbl_8011DB9C:
/* 8011DB9C 001199DC 3B 80 00 00 */ li r28, 0x0
/* 8011DBA0 001199E0 9B 9A 00 25 */ stb r28, 0x25(r26)
/* 8011DBA4 001199E4 7F C3 F3 78 */ mr r3, r30
2022-10-16 16:31:36 +00:00
/* 8011DBA8 001199E8 4B F0 3C B9 */ bl OSRestoreInterrupts
2022-10-16 16:05:58 +00:00
/* 8011DBAC 001199EC 83 DA 00 10 */ lwz r30, 0x10(r26)
/* 8011DBB0 001199F0 3B BA 00 10 */ addi r29, r26, 0x10
/* 8011DBB4 001199F4 48 00 00 48 */ b lbl_8011DBFC
.global lbl_8011DBB8
lbl_8011DBB8:
/* 8011DBB8 001199F8 7F C5 F3 78 */ mr r5, r30
/* 8011DBBC 001199FC 83 DE 00 00 */ lwz r30, 0x0(r30)
/* 8011DBC0 00119A00 3B 65 FF E8 */ addi r27, r5, -0x18
/* 8011DBC4 00119A04 38 7A 00 0C */ addi r3, r26, 0xc
/* 8011DBC8 00119A08 9B 85 FF FC */ stb r28, -0x4(r5)
/* 8011DBCC 00119A0C 38 81 00 08 */ addi r4, r1, 0x8
/* 8011DBD0 00119A10 90 A1 00 08 */ stw r5, 0x8(r1)
2022-10-16 16:31:36 +00:00
/* 8011DBD4 00119A14 48 00 21 3D */ bl Erase__Q44nw4r2ut6detail12LinkListImplFQ54nw4r2ut6detail12LinkListImpl8Iterator
2022-10-16 16:05:58 +00:00
/* 8011DBD8 00119A18 81 9A 00 A8 */ lwz r12, 0xa8(r26)
/* 8011DBDC 00119A1C 2C 0C 00 00 */ cmpwi r12, 0x0
/* 8011DBE0 00119A20 41 82 00 1C */ beq lbl_8011DBFC
/* 8011DBE4 00119A24 7F 44 D3 78 */ mr r4, r26
/* 8011DBE8 00119A28 7F 65 DB 78 */ mr r5, r27
/* 8011DBEC 00119A2C 80 DA 00 AC */ lwz r6, 0xac(r26)
/* 8011DBF0 00119A30 38 60 00 01 */ li r3, 0x1
/* 8011DBF4 00119A34 7D 89 03 A6 */ mtctr r12
/* 8011DBF8 00119A38 4E 80 04 21 */ bctrl
.global lbl_8011DBFC
lbl_8011DBFC:
/* 8011DBFC 00119A3C 7C 1E E8 40 */ cmplw r30, r29
/* 8011DC00 00119A40 40 82 FF B8 */ bne lbl_8011DBB8
/* 8011DC04 00119A44 38 00 00 00 */ li r0, 0x0
/* 8011DC08 00119A48 98 1A 00 27 */ stb r0, 0x27(r26)
/* 8011DC0C 00119A4C 7F E3 FB 78 */ mr r3, r31
2022-10-16 16:31:36 +00:00
/* 8011DC10 00119A50 4B F0 3C 51 */ bl OSRestoreInterrupts
2022-10-16 16:05:58 +00:00
/* 8011DC14 00119A54 39 61 00 30 */ addi r11, r1, 0x30
/* 8011DC18 00119A58 4B EE 97 6D */ bl lbl_80007384
/* 8011DC1C 00119A5C 80 01 00 34 */ lwz r0, 0x34(r1)
/* 8011DC20 00119A60 7C 08 03 A6 */ mtlr r0
/* 8011DC24 00119A64 38 21 00 30 */ addi r1, r1, 0x30
/* 8011DC28 00119A68 4E 80 00 20 */ blr
/* 8011DC2C 00119A6C 00 00 00 00 */ .4byte 0x00000000
2022-10-16 16:31:36 +00:00
.global StartVoice__Q34nw4r3snd10WavePlayerFv
StartVoice__Q34nw4r3snd10WavePlayerFv:
2022-10-16 16:05:58 +00:00
/* 8011DC30 00119A70 94 21 FF 60 */ stwu r1, -0xa0(r1)
/* 8011DC34 00119A74 7C 08 02 A6 */ mflr r0
/* 8011DC38 00119A78 90 01 00 A4 */ stw r0, 0xa4(r1)
/* 8011DC3C 00119A7C 93 E1 00 9C */ stw r31, 0x9c(r1)
/* 8011DC40 00119A80 93 C1 00 98 */ stw r30, 0x98(r1)
/* 8011DC44 00119A84 7C 7E 1B 78 */ mr r30, r3
/* 8011DC48 00119A88 93 A1 00 94 */ stw r29, 0x94(r1)
2022-10-16 16:31:36 +00:00
/* 8011DC4C 00119A8C 4B F0 3B D5 */ bl OSDisableInterrupts
2022-10-16 16:05:58 +00:00
/* 8011DC50 00119A90 80 DE 00 10 */ lwz r6, 0x10(r30)
/* 8011DC54 00119A94 38 A0 00 00 */ li r5, 0x0
/* 8011DC58 00119A98 80 9E 00 28 */ lwz r4, 0x28(r30)
/* 8011DC5C 00119A9C 7C 7D 1B 78 */ mr r29, r3
/* 8011DC60 00119AA0 90 81 00 08 */ stw r4, 0x8(r1)
/* 8011DC64 00119AA4 3B E6 FF E8 */ addi r31, r6, -0x18
/* 8011DC68 00119AA8 98 A1 00 0C */ stb r5, 0xc(r1)
/* 8011DC6C 00119AAC 80 1E 00 18 */ lwz r0, 0x18(r30)
/* 8011DC70 00119AB0 54 00 06 3E */ clrlwi r0, r0, 24
/* 8011DC74 00119AB4 90 01 00 10 */ stw r0, 0x10(r1)
/* 8011DC78 00119AB8 80 1E 00 2C */ lwz r0, 0x2c(r30)
/* 8011DC7C 00119ABC 54 00 04 3E */ clrlwi r0, r0, 16
/* 8011DC80 00119AC0 90 01 00 14 */ stw r0, 0x14(r1)
/* 8011DC84 00119AC4 90 A1 00 18 */ stw r5, 0x18(r1)
/* 8011DC88 00119AC8 80 66 FF F8 */ lwz r3, -0x8(r6)
2022-10-16 16:31:36 +00:00
/* 8011DC8C 00119ACC 4B FE 3F 25 */ bl GetSampleByByte__Q44nw4r3snd6detail7AxVoiceFUlQ34nw4r3snd12SampleFormat
2022-10-16 16:05:58 +00:00
/* 8011DC90 00119AD0 90 61 00 1C */ stw r3, 0x1c(r1)
/* 8011DC94 00119AD4 7F E3 FB 78 */ mr r3, r31
/* 8011DC98 00119AD8 38 81 00 08 */ addi r4, r1, 0x8
/* 8011DC9C 00119ADC 38 A0 00 00 */ li r5, 0x0
/* 8011DCA0 00119AE0 48 00 00 1C */ b lbl_8011DCBC
/* 8011DCA4 00119AE4 60 00 00 00 */ nop
.global lbl_8011DCA8
lbl_8011DCA8:
/* 8011DCA8 00119AE8 80 03 00 08 */ lwz r0, 0x8(r3)
/* 8011DCAC 00119AEC 38 A5 00 01 */ addi r5, r5, 0x1
/* 8011DCB0 00119AF0 90 04 00 18 */ stw r0, 0x18(r4)
/* 8011DCB4 00119AF4 38 84 00 34 */ addi r4, r4, 0x34
/* 8011DCB8 00119AF8 38 63 00 04 */ addi r3, r3, 0x4
.global lbl_8011DCBC
lbl_8011DCBC:
/* 8011DCBC 00119AFC 80 1E 00 18 */ lwz r0, 0x18(r30)
/* 8011DCC0 00119B00 7C 05 00 00 */ cmpw r5, r0
/* 8011DCC4 00119B04 41 80 FF E4 */ blt lbl_8011DCA8
/* 8011DCC8 00119B08 80 1E 00 28 */ lwz r0, 0x28(r30)
/* 8011DCCC 00119B0C 2C 00 00 03 */ cmpwi r0, 0x3
/* 8011DCD0 00119B10 40 82 00 A4 */ bne lbl_8011DD74
/* 8011DCD4 00119B14 38 A1 00 20 */ addi r5, r1, 0x20
/* 8011DCD8 00119B18 38 C0 00 00 */ li r6, 0x0
/* 8011DCDC 00119B1C 38 60 00 00 */ li r3, 0x0
/* 8011DCE0 00119B20 48 00 00 88 */ b lbl_8011DD68
.global lbl_8011DCE4
lbl_8011DCE4:
/* 8011DCE4 00119B24 80 1E 00 3C */ lwz r0, 0x3c(r30)
/* 8011DCE8 00119B28 38 C6 00 01 */ addi r6, r6, 0x1
/* 8011DCEC 00119B2C 80 9E 00 38 */ lwz r4, 0x38(r30)
/* 8011DCF0 00119B30 90 85 00 04 */ stw r4, 0x4(r5)
/* 8011DCF4 00119B34 90 05 00 08 */ stw r0, 0x8(r5)
/* 8011DCF8 00119B38 80 1E 00 44 */ lwz r0, 0x44(r30)
/* 8011DCFC 00119B3C 80 9E 00 40 */ lwz r4, 0x40(r30)
/* 8011DD00 00119B40 90 85 00 0C */ stw r4, 0xc(r5)
/* 8011DD04 00119B44 90 05 00 10 */ stw r0, 0x10(r5)
/* 8011DD08 00119B48 80 1E 00 4C */ lwz r0, 0x4c(r30)
/* 8011DD0C 00119B4C 80 9E 00 48 */ lwz r4, 0x48(r30)
/* 8011DD10 00119B50 90 85 00 14 */ stw r4, 0x14(r5)
/* 8011DD14 00119B54 90 05 00 18 */ stw r0, 0x18(r5)
/* 8011DD18 00119B58 80 1E 00 54 */ lwz r0, 0x54(r30)
/* 8011DD1C 00119B5C 80 9E 00 50 */ lwz r4, 0x50(r30)
/* 8011DD20 00119B60 90 85 00 1C */ stw r4, 0x1c(r5)
/* 8011DD24 00119B64 90 05 00 20 */ stw r0, 0x20(r5)
/* 8011DD28 00119B68 A0 1E 00 58 */ lhz r0, 0x58(r30)
/* 8011DD2C 00119B6C B0 05 00 24 */ sth r0, 0x24(r5)
/* 8011DD30 00119B70 A0 1E 00 5A */ lhz r0, 0x5a(r30)
/* 8011DD34 00119B74 B0 05 00 26 */ sth r0, 0x26(r5)
/* 8011DD38 00119B78 A0 1E 00 5C */ lhz r0, 0x5c(r30)
/* 8011DD3C 00119B7C B0 05 00 28 */ sth r0, 0x28(r5)
/* 8011DD40 00119B80 A0 1E 00 5E */ lhz r0, 0x5e(r30)
/* 8011DD44 00119B84 B0 05 00 2A */ sth r0, 0x2a(r5)
/* 8011DD48 00119B88 80 9F 00 08 */ lwz r4, 0x8(r31)
/* 8011DD4C 00119B8C 3B FF 00 04 */ addi r31, r31, 0x4
/* 8011DD50 00119B90 88 04 00 00 */ lbz r0, 0x0(r4)
/* 8011DD54 00119B94 B0 05 00 26 */ sth r0, 0x26(r5)
/* 8011DD58 00119B98 B0 65 00 2C */ sth r3, 0x2c(r5)
/* 8011DD5C 00119B9C B0 65 00 2E */ sth r3, 0x2e(r5)
/* 8011DD60 00119BA0 B0 65 00 30 */ sth r3, 0x30(r5)
/* 8011DD64 00119BA4 38 A5 00 34 */ addi r5, r5, 0x34
.global lbl_8011DD68
lbl_8011DD68:
/* 8011DD68 00119BA8 80 1E 00 18 */ lwz r0, 0x18(r30)
/* 8011DD6C 00119BAC 7C 06 00 00 */ cmpw r6, r0
/* 8011DD70 00119BB0 41 80 FF 74 */ blt lbl_8011DCE4
.global lbl_8011DD74
lbl_8011DD74:
/* 8011DD74 00119BB4 80 7E 00 20 */ lwz r3, 0x20(r30)
/* 8011DD78 00119BB8 38 81 00 08 */ addi r4, r1, 0x8
/* 8011DD7C 00119BBC 38 A0 00 00 */ li r5, 0x0
2022-10-16 16:31:36 +00:00
/* 8011DD80 00119BC0 4B FF C9 71 */ bl Setup__Q44nw4r3snd6detail5VoiceFRCQ44nw4r3snd6detail8WaveInfoUl
2022-10-16 16:05:58 +00:00
/* 8011DD84 00119BC4 80 1E 00 28 */ lwz r0, 0x28(r30)
/* 8011DD88 00119BC8 2C 00 00 03 */ cmpwi r0, 0x3
/* 8011DD8C 00119BCC 40 82 00 10 */ bne lbl_8011DD9C
/* 8011DD90 00119BD0 80 7E 00 20 */ lwz r3, 0x20(r30)
/* 8011DD94 00119BD4 38 80 00 01 */ li r4, 0x1
2022-10-16 16:31:36 +00:00
/* 8011DD98 00119BD8 4B FF D4 59 */ bl SetVoiceType__Q44nw4r3snd6detail5VoiceFQ54nw4r3snd6detail7AxVoice9VoiceType
2022-10-16 16:05:58 +00:00
.global lbl_8011DD9C
lbl_8011DD9C:
/* 8011DD9C 00119BDC 80 7E 00 20 */ lwz r3, 0x20(r30)
2022-10-16 16:31:36 +00:00
/* 8011DDA0 00119BE0 4B FF CB 51 */ bl Start__Q44nw4r3snd6detail5VoiceFv
2022-10-16 16:05:58 +00:00
/* 8011DDA4 00119BE4 80 7E 00 20 */ lwz r3, 0x20(r30)
/* 8011DDA8 00119BE8 88 9E 00 27 */ lbz r4, 0x27(r30)
2022-10-16 16:31:36 +00:00
/* 8011DDAC 00119BEC 4B FF CC 35 */ bl Pause__Q44nw4r3snd6detail5VoiceFb
2022-10-16 16:05:58 +00:00
/* 8011DDB0 00119BF0 38 60 00 01 */ li r3, 0x1
/* 8011DDB4 00119BF4 38 00 00 00 */ li r0, 0x0
/* 8011DDB8 00119BF8 98 7E 00 25 */ stb r3, 0x25(r30)
/* 8011DDBC 00119BFC 7F A3 EB 78 */ mr r3, r29
/* 8011DDC0 00119C00 98 1E 00 26 */ stb r0, 0x26(r30)
2022-10-16 16:31:36 +00:00
/* 8011DDC4 00119C04 4B F0 3A 9D */ bl OSRestoreInterrupts
2022-10-16 16:05:58 +00:00
/* 8011DDC8 00119C08 80 01 00 A4 */ lwz r0, 0xa4(r1)
/* 8011DDCC 00119C0C 83 E1 00 9C */ lwz r31, 0x9c(r1)
/* 8011DDD0 00119C10 83 C1 00 98 */ lwz r30, 0x98(r1)
/* 8011DDD4 00119C14 83 A1 00 94 */ lwz r29, 0x94(r1)
/* 8011DDD8 00119C18 7C 08 03 A6 */ mtlr r0
/* 8011DDDC 00119C1C 38 21 00 A0 */ addi r1, r1, 0xa0
/* 8011DDE0 00119C20 4E 80 00 20 */ blr
/* 8011DDE4 00119C24 00 00 00 00 */ .4byte 0x00000000
/* 8011DDE8 00119C28 00 00 00 00 */ .4byte 0x00000000
/* 8011DDEC 00119C2C 00 00 00 00 */ .4byte 0x00000000
2022-10-16 16:31:36 +00:00
.global SetNextWavePacket__Q34nw4r3snd10WavePlayerFv
SetNextWavePacket__Q34nw4r3snd10WavePlayerFv:
2022-10-16 16:05:58 +00:00
/* 8011DDF0 00119C30 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 8011DDF4 00119C34 7C 08 02 A6 */ mflr r0
/* 8011DDF8 00119C38 90 01 00 34 */ stw r0, 0x34(r1)
/* 8011DDFC 00119C3C 39 61 00 30 */ addi r11, r1, 0x30
/* 8011DE00 00119C40 4B EE 95 39 */ bl lbl_80007338
/* 8011DE04 00119C44 88 03 00 26 */ lbz r0, 0x26(r3)
/* 8011DE08 00119C48 7C 7F 1B 78 */ mr r31, r3
/* 8011DE0C 00119C4C 2C 00 00 00 */ cmpwi r0, 0x0
/* 8011DE10 00119C50 40 82 00 E0 */ bne lbl_8011DEF0
/* 8011DE14 00119C54 80 03 00 0C */ lwz r0, 0xc(r3)
/* 8011DE18 00119C58 28 00 00 02 */ cmplwi r0, 0x2
/* 8011DE1C 00119C5C 41 80 00 D4 */ blt lbl_8011DEF0
/* 8011DE20 00119C60 80 63 00 10 */ lwz r3, 0x10(r3)
/* 8011DE24 00119C64 3B 60 00 00 */ li r27, 0x0
/* 8011DE28 00119C68 3B A0 00 00 */ li r29, 0x0
/* 8011DE2C 00119C6C 83 C3 00 00 */ lwz r30, 0x0(r3)
/* 8011DE30 00119C70 48 00 00 24 */ b lbl_8011DE54
.global lbl_8011DE34
lbl_8011DE34:
/* 8011DE34 00119C74 7C 9E EA 14 */ add r4, r30, r29
/* 8011DE38 00119C78 80 7F 00 20 */ lwz r3, 0x20(r31)
/* 8011DE3C 00119C7C 80 A4 FF F0 */ lwz r5, -0x10(r4)
/* 8011DE40 00119C80 7F 64 DB 78 */ mr r4, r27
/* 8011DE44 00119C84 38 C0 00 00 */ li r6, 0x0
2022-10-16 16:31:36 +00:00
/* 8011DE48 00119C88 4B FF D1 99 */ bl SetLoopStart__Q44nw4r3snd6detail5VoiceFiPCvUl
2022-10-16 16:05:58 +00:00
/* 8011DE4C 00119C8C 3B BD 00 04 */ addi r29, r29, 0x4
/* 8011DE50 00119C90 3B 7B 00 01 */ addi r27, r27, 0x1
.global lbl_8011DE54
lbl_8011DE54:
/* 8011DE54 00119C94 80 1F 00 18 */ lwz r0, 0x18(r31)
/* 8011DE58 00119C98 7C 1B 00 00 */ cmpw r27, r0
/* 8011DE5C 00119C9C 41 80 FF D8 */ blt lbl_8011DE34
/* 8011DE60 00119CA0 80 7F 00 20 */ lwz r3, 0x20(r31)
/* 8011DE64 00119CA4 38 80 00 01 */ li r4, 0x1
2022-10-16 16:31:36 +00:00
/* 8011DE68 00119CA8 4B FF D2 79 */ bl SetLoopFlag__Q44nw4r3snd6detail5VoiceFb
2022-10-16 16:05:58 +00:00
/* 8011DE6C 00119CAC 80 1F 00 28 */ lwz r0, 0x28(r31)
/* 8011DE70 00119CB0 2C 00 00 03 */ cmpwi r0, 0x3
/* 8011DE74 00119CB4 40 82 00 74 */ bne lbl_8011DEE8
/* 8011DE78 00119CB8 3B 9E FF E8 */ addi r28, r30, -0x18
/* 8011DE7C 00119CBC 3B 40 00 00 */ li r26, 0x0
/* 8011DE80 00119CC0 3B A0 00 00 */ li r29, 0x0
/* 8011DE84 00119CC4 3B C0 00 00 */ li r30, 0x0
/* 8011DE88 00119CC8 48 00 00 48 */ b lbl_8011DED0
.global lbl_8011DE8C
lbl_8011DE8C:
/* 8011DE8C 00119CCC 7F 7C EA 14 */ add r27, r28, r29
/* 8011DE90 00119CD0 80 7F 00 20 */ lwz r3, 0x20(r31)
/* 8011DE94 00119CD4 80 BB 00 08 */ lwz r5, 0x8(r27)
/* 8011DE98 00119CD8 7F 44 D3 78 */ mr r4, r26
/* 8011DE9C 00119CDC 38 C0 00 00 */ li r6, 0x0
2022-10-16 16:31:36 +00:00
/* 8011DEA0 00119CE0 4B FF D1 41 */ bl SetLoopStart__Q44nw4r3snd6detail5VoiceFiPCvUl
2022-10-16 16:05:58 +00:00
/* 8011DEA4 00119CE4 80 7B 00 08 */ lwz r3, 0x8(r27)
/* 8011DEA8 00119CE8 7F 44 D3 78 */ mr r4, r26
/* 8011DEAC 00119CEC 38 A1 00 08 */ addi r5, r1, 0x8
/* 8011DEB0 00119CF0 88 03 00 00 */ lbz r0, 0x0(r3)
/* 8011DEB4 00119CF4 B0 01 00 08 */ sth r0, 0x8(r1)
/* 8011DEB8 00119CF8 B3 C1 00 0A */ sth r30, 0xa(r1)
/* 8011DEBC 00119CFC B3 C1 00 0C */ sth r30, 0xc(r1)
/* 8011DEC0 00119D00 80 7F 00 20 */ lwz r3, 0x20(r31)
2022-10-16 16:31:36 +00:00
/* 8011DEC4 00119D04 4B FF D0 3D */ bl SetAdpcmLoop__Q44nw4r3snd6detail5VoiceFiPCQ44nw4r3snd6detail14AdpcmLoopParam
2022-10-16 16:05:58 +00:00
/* 8011DEC8 00119D08 3B BD 00 04 */ addi r29, r29, 0x4
/* 8011DECC 00119D0C 3B 5A 00 01 */ addi r26, r26, 0x1
.global lbl_8011DED0
lbl_8011DED0:
/* 8011DED0 00119D10 80 1F 00 18 */ lwz r0, 0x18(r31)
/* 8011DED4 00119D14 7C 1A 00 00 */ cmpw r26, r0
/* 8011DED8 00119D18 41 80 FF B4 */ blt lbl_8011DE8C
/* 8011DEDC 00119D1C 80 7F 00 20 */ lwz r3, 0x20(r31)
/* 8011DEE0 00119D20 38 80 00 01 */ li r4, 0x1
2022-10-16 16:31:36 +00:00
/* 8011DEE4 00119D24 4B FF D3 0D */ bl SetVoiceType__Q44nw4r3snd6detail5VoiceFQ54nw4r3snd6detail7AxVoice9VoiceType
2022-10-16 16:05:58 +00:00
.global lbl_8011DEE8
lbl_8011DEE8:
/* 8011DEE8 00119D28 38 00 00 01 */ li r0, 0x1
/* 8011DEEC 00119D2C 98 1F 00 26 */ stb r0, 0x26(r31)
.global lbl_8011DEF0
lbl_8011DEF0:
/* 8011DEF0 00119D30 39 61 00 30 */ addi r11, r1, 0x30
/* 8011DEF4 00119D34 4B EE 94 91 */ bl lbl_80007384
/* 8011DEF8 00119D38 80 01 00 34 */ lwz r0, 0x34(r1)
/* 8011DEFC 00119D3C 7C 08 03 A6 */ mtlr r0
/* 8011DF00 00119D40 38 21 00 30 */ addi r1, r1, 0x30
/* 8011DF04 00119D44 4E 80 00 20 */ blr
/* 8011DF08 00119D48 00 00 00 00 */ .4byte 0x00000000
/* 8011DF0C 00119D4C 00 00 00 00 */ .4byte 0x00000000
2022-10-16 16:31:36 +00:00
.global VoiceCallbackFunc__Q34nw4r3snd10WavePlayerFPQ44nw4r3snd6detail5VoiceQ54nw4r3snd6detail5Voice19VoiceCallbackStatusPv
VoiceCallbackFunc__Q34nw4r3snd10WavePlayerFPQ44nw4r3snd6detail5VoiceQ54nw4r3snd6detail5Voice19VoiceCallbackStatusPv:
2022-10-16 16:05:58 +00:00
/* 8011DF10 00119D50 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 8011DF14 00119D54 7C 08 02 A6 */ mflr r0
/* 8011DF18 00119D58 28 04 00 01 */ cmplwi r4, 0x1
/* 8011DF1C 00119D5C 90 01 00 24 */ stw r0, 0x24(r1)
/* 8011DF20 00119D60 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 8011DF24 00119D64 93 C1 00 18 */ stw r30, 0x18(r1)
/* 8011DF28 00119D68 93 A1 00 14 */ stw r29, 0x14(r1)
/* 8011DF2C 00119D6C 7C BD 2B 78 */ mr r29, r5
/* 8011DF30 00119D70 40 81 00 14 */ ble lbl_8011DF44
/* 8011DF34 00119D74 38 04 FF FE */ addi r0, r4, -0x2
/* 8011DF38 00119D78 28 00 00 01 */ cmplwi r0, 0x1
/* 8011DF3C 00119D7C 40 81 00 88 */ ble lbl_8011DFC4
/* 8011DF40 00119D80 48 00 00 C0 */ b lbl_8011E000
.global lbl_8011DF44
lbl_8011DF44:
2022-10-16 16:31:36 +00:00
/* 8011DF44 00119D84 4B F0 38 DD */ bl OSDisableInterrupts
2022-10-16 16:05:58 +00:00
/* 8011DF48 00119D88 80 1D 00 20 */ lwz r0, 0x20(r29)
/* 8011DF4C 00119D8C 7C 7F 1B 78 */ mr r31, r3
/* 8011DF50 00119D90 2C 00 00 00 */ cmpwi r0, 0x0
/* 8011DF54 00119D94 41 82 00 0C */ beq lbl_8011DF60
/* 8011DF58 00119D98 7C 03 03 78 */ mr r3, r0
2022-10-16 16:31:36 +00:00
/* 8011DF5C 00119D9C 4B FF C9 B5 */ bl Stop__Q44nw4r3snd6detail5VoiceFv
2022-10-16 16:05:58 +00:00
.global lbl_8011DF60
lbl_8011DF60:
/* 8011DF60 00119DA0 3B C0 00 00 */ li r30, 0x0
/* 8011DF64 00119DA4 9B DD 00 25 */ stb r30, 0x25(r29)
/* 8011DF68 00119DA8 7F E3 FB 78 */ mr r3, r31
2022-10-16 16:31:36 +00:00
/* 8011DF6C 00119DAC 4B F0 38 F5 */ bl OSRestoreInterrupts
2022-10-16 16:05:58 +00:00
/* 8011DF70 00119DB0 80 1D 00 0C */ lwz r0, 0xc(r29)
/* 8011DF74 00119DB4 2C 00 00 00 */ cmpwi r0, 0x0
/* 8011DF78 00119DB8 41 82 00 88 */ beq lbl_8011E000
/* 8011DF7C 00119DBC 80 BD 00 10 */ lwz r5, 0x10(r29)
/* 8011DF80 00119DC0 38 7D 00 0C */ addi r3, r29, 0xc
/* 8011DF84 00119DC4 38 81 00 08 */ addi r4, r1, 0x8
/* 8011DF88 00119DC8 9B C5 FF FC */ stb r30, -0x4(r5)
/* 8011DF8C 00119DCC 3B E5 FF E8 */ addi r31, r5, -0x18
/* 8011DF90 00119DD0 80 1D 00 10 */ lwz r0, 0x10(r29)
/* 8011DF94 00119DD4 90 01 00 08 */ stw r0, 0x8(r1)
2022-10-16 16:31:36 +00:00
/* 8011DF98 00119DD8 48 00 1D 79 */ bl Erase__Q44nw4r2ut6detail12LinkListImplFQ54nw4r2ut6detail12LinkListImpl8Iterator
2022-10-16 16:05:58 +00:00
/* 8011DF9C 00119DDC 81 9D 00 A8 */ lwz r12, 0xa8(r29)
/* 8011DFA0 00119DE0 2C 0C 00 00 */ cmpwi r12, 0x0
/* 8011DFA4 00119DE4 41 82 00 5C */ beq lbl_8011E000
/* 8011DFA8 00119DE8 7F A4 EB 78 */ mr r4, r29
/* 8011DFAC 00119DEC 7F E5 FB 78 */ mr r5, r31
/* 8011DFB0 00119DF0 80 DD 00 AC */ lwz r6, 0xac(r29)
/* 8011DFB4 00119DF4 38 60 00 00 */ li r3, 0x0
/* 8011DFB8 00119DF8 7D 89 03 A6 */ mtctr r12
/* 8011DFBC 00119DFC 4E 80 04 21 */ bctrl
/* 8011DFC0 00119E00 48 00 00 40 */ b lbl_8011E000
.global lbl_8011DFC4
lbl_8011DFC4:
/* 8011DFC4 00119E04 38 00 00 00 */ li r0, 0x0
/* 8011DFC8 00119E08 90 05 00 20 */ stw r0, 0x20(r5)
2022-10-16 16:31:36 +00:00
/* 8011DFCC 00119E0C 4B F0 38 55 */ bl OSDisableInterrupts
2022-10-16 16:05:58 +00:00
/* 8011DFD0 00119E10 7C 7F 1B 78 */ mr r31, r3
/* 8011DFD4 00119E14 7F A3 EB 78 */ mr r3, r29
2022-10-16 16:31:36 +00:00
/* 8011DFD8 00119E18 4B FF FB 69 */ bl Stop__Q34nw4r3snd10WavePlayerFv
2022-10-16 16:05:58 +00:00
/* 8011DFDC 00119E1C 80 7D 00 20 */ lwz r3, 0x20(r29)
/* 8011DFE0 00119E20 2C 03 00 00 */ cmpwi r3, 0x0
/* 8011DFE4 00119E24 41 82 00 08 */ beq lbl_8011DFEC
2022-10-16 16:31:36 +00:00
/* 8011DFE8 00119E28 4B FF C6 39 */ bl Free__Q44nw4r3snd6detail5VoiceFv
2022-10-16 16:05:58 +00:00
.global lbl_8011DFEC
lbl_8011DFEC:
/* 8011DFEC 00119E2C 38 00 00 00 */ li r0, 0x0
/* 8011DFF0 00119E30 90 1D 00 20 */ stw r0, 0x20(r29)
/* 8011DFF4 00119E34 7F E3 FB 78 */ mr r3, r31
/* 8011DFF8 00119E38 90 1D 00 18 */ stw r0, 0x18(r29)
2022-10-16 16:31:36 +00:00
/* 8011DFFC 00119E3C 4B F0 38 65 */ bl OSRestoreInterrupts
2022-10-16 16:05:58 +00:00
.global lbl_8011E000
lbl_8011E000:
/* 8011E000 00119E40 80 01 00 24 */ lwz r0, 0x24(r1)
/* 8011E004 00119E44 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 8011E008 00119E48 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 8011E00C 00119E4C 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 8011E010 00119E50 7C 08 03 A6 */ mtlr r0
/* 8011E014 00119E54 38 21 00 20 */ addi r1, r1, 0x20
/* 8011E018 00119E58 4E 80 00 20 */ blr
/* 8011E01C 00119E5C 00 00 00 00 */ .4byte 0x00000000
2022-10-16 16:31:36 +00:00
.global UpdateWavePacket__Q34nw4r3snd10WavePlayerFv
UpdateWavePacket__Q34nw4r3snd10WavePlayerFv:
2022-10-16 16:05:58 +00:00
/* 8011E020 00119E60 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 8011E024 00119E64 7C 08 02 A6 */ mflr r0
/* 8011E028 00119E68 90 01 00 24 */ stw r0, 0x24(r1)
/* 8011E02C 00119E6C 38 81 00 08 */ addi r4, r1, 0x8
/* 8011E030 00119E70 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 8011E034 00119E74 3B E0 00 00 */ li r31, 0x0
/* 8011E038 00119E78 93 C1 00 18 */ stw r30, 0x18(r1)
/* 8011E03C 00119E7C 93 A1 00 14 */ stw r29, 0x14(r1)
/* 8011E040 00119E80 93 81 00 10 */ stw r28, 0x10(r1)
/* 8011E044 00119E84 7C 7C 1B 78 */ mr r28, r3
/* 8011E048 00119E88 80 A3 00 10 */ lwz r5, 0x10(r3)
/* 8011E04C 00119E8C 9B E5 FF FC */ stb r31, -0x4(r5)
/* 8011E050 00119E90 3B C5 FF E8 */ addi r30, r5, -0x18
/* 8011E054 00119E94 80 03 00 10 */ lwz r0, 0x10(r3)
/* 8011E058 00119E98 38 63 00 0C */ addi r3, r3, 0xc
/* 8011E05C 00119E9C 90 01 00 08 */ stw r0, 0x8(r1)
2022-10-16 16:31:36 +00:00
/* 8011E060 00119EA0 48 00 1C B1 */ bl Erase__Q44nw4r2ut6detail12LinkListImplFQ54nw4r2ut6detail12LinkListImpl8Iterator
2022-10-16 16:05:58 +00:00
/* 8011E064 00119EA4 80 7E 00 10 */ lwz r3, 0x10(r30)
/* 8011E068 00119EA8 80 9C 00 28 */ lwz r4, 0x28(r28)
2022-10-16 16:31:36 +00:00
/* 8011E06C 00119EAC 4B FE 3B 45 */ bl GetSampleByByte__Q44nw4r3snd6detail7AxVoiceFUlQ34nw4r3snd12SampleFormat
2022-10-16 16:05:58 +00:00
/* 8011E070 00119EB0 80 1C 00 34 */ lwz r0, 0x34(r28)
/* 8011E074 00119EB4 81 9C 00 A8 */ lwz r12, 0xa8(r28)
/* 8011E078 00119EB8 7C 00 18 14 */ addc r0, r0, r3
/* 8011E07C 00119EBC 80 7C 00 30 */ lwz r3, 0x30(r28)
/* 8011E080 00119EC0 2C 0C 00 00 */ cmpwi r12, 0x0
/* 8011E084 00119EC4 90 1C 00 34 */ stw r0, 0x34(r28)
/* 8011E088 00119EC8 7C 03 F9 14 */ adde r0, r3, r31
/* 8011E08C 00119ECC 90 1C 00 30 */ stw r0, 0x30(r28)
/* 8011E090 00119ED0 41 82 00 1C */ beq lbl_8011E0AC
/* 8011E094 00119ED4 7F 84 E3 78 */ mr r4, r28
/* 8011E098 00119ED8 7F C5 F3 78 */ mr r5, r30
/* 8011E09C 00119EDC 80 DC 00 AC */ lwz r6, 0xac(r28)
/* 8011E0A0 00119EE0 38 60 00 00 */ li r3, 0x0
/* 8011E0A4 00119EE4 7D 89 03 A6 */ mtctr r12
/* 8011E0A8 00119EE8 4E 80 04 21 */ bctrl
.global lbl_8011E0AC
lbl_8011E0AC:
/* 8011E0AC 00119EEC 80 1C 00 0C */ lwz r0, 0xc(r28)
/* 8011E0B0 00119EF0 2C 00 00 00 */ cmpwi r0, 0x0
/* 8011E0B4 00119EF4 41 82 00 64 */ beq lbl_8011E118
/* 8011E0B8 00119EF8 80 9C 00 10 */ lwz r4, 0x10(r28)
/* 8011E0BC 00119EFC 80 7C 00 20 */ lwz r3, 0x20(r28)
/* 8011E0C0 00119F00 3B C4 FF E8 */ addi r30, r4, -0x18
2022-10-16 16:31:36 +00:00
/* 8011E0C4 00119F04 4B FF C9 3D */ bl GetFormat__Q44nw4r3snd6detail5VoiceCFv
2022-10-16 16:05:58 +00:00
/* 8011E0C8 00119F08 7C 64 1B 78 */ mr r4, r3
/* 8011E0CC 00119F0C 80 7E 00 10 */ lwz r3, 0x10(r30)
2022-10-16 16:31:36 +00:00
/* 8011E0D0 00119F10 4B FE 3A E1 */ bl GetSampleByByte__Q44nw4r3snd6detail7AxVoiceFUlQ34nw4r3snd12SampleFormat
2022-10-16 16:05:58 +00:00
/* 8011E0D4 00119F14 7C 7F 1B 78 */ mr r31, r3
/* 8011E0D8 00119F18 3B A0 00 00 */ li r29, 0x0
/* 8011E0DC 00119F1C 48 00 00 30 */ b lbl_8011E10C
.global lbl_8011E0E0
lbl_8011E0E0:
/* 8011E0E0 00119F20 80 7C 00 20 */ lwz r3, 0x20(r28)
/* 8011E0E4 00119F24 7F A4 EB 78 */ mr r4, r29
/* 8011E0E8 00119F28 80 BE 00 08 */ lwz r5, 0x8(r30)
2022-10-16 16:31:36 +00:00
/* 8011E0EC 00119F2C 4B FF CE 95 */ bl SetBaseAddress__Q44nw4r3snd6detail5VoiceFiPCv
2022-10-16 16:05:58 +00:00
/* 8011E0F0 00119F30 80 7C 00 20 */ lwz r3, 0x20(r28)
/* 8011E0F4 00119F34 7F A4 EB 78 */ mr r4, r29
/* 8011E0F8 00119F38 80 BE 00 08 */ lwz r5, 0x8(r30)
/* 8011E0FC 00119F3C 7F E6 FB 78 */ mr r6, r31
2022-10-16 16:31:36 +00:00
/* 8011E100 00119F40 4B FF D0 71 */ bl StopAtPoint__Q44nw4r3snd6detail5VoiceFiPCvUl
2022-10-16 16:05:58 +00:00
/* 8011E104 00119F44 3B DE 00 04 */ addi r30, r30, 0x4
/* 8011E108 00119F48 3B BD 00 01 */ addi r29, r29, 0x1
.global lbl_8011E10C
lbl_8011E10C:
/* 8011E10C 00119F4C 80 1C 00 18 */ lwz r0, 0x18(r28)
/* 8011E110 00119F50 7C 1D 00 00 */ cmpw r29, r0
/* 8011E114 00119F54 41 80 FF CC */ blt lbl_8011E0E0
.global lbl_8011E118
lbl_8011E118:
/* 8011E118 00119F58 38 00 00 00 */ li r0, 0x0
/* 8011E11C 00119F5C 98 1C 00 26 */ stb r0, 0x26(r28)
/* 8011E120 00119F60 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 8011E124 00119F64 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 8011E128 00119F68 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 8011E12C 00119F6C 83 81 00 10 */ lwz r28, 0x10(r1)
/* 8011E130 00119F70 80 01 00 24 */ lwz r0, 0x24(r1)
/* 8011E134 00119F74 7C 08 03 A6 */ mtlr r0
/* 8011E138 00119F78 38 21 00 20 */ addi r1, r1, 0x20
/* 8011E13C 00119F7C 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global detail_Update__Q34nw4r3snd10WavePlayerFv
detail_Update__Q34nw4r3snd10WavePlayerFv:
2022-10-16 16:05:58 +00:00
/* 8011E140 00119F80 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 8011E144 00119F84 7C 08 02 A6 */ mflr r0
/* 8011E148 00119F88 90 01 00 24 */ stw r0, 0x24(r1)
/* 8011E14C 00119F8C 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 8011E150 00119F90 93 C1 00 18 */ stw r30, 0x18(r1)
/* 8011E154 00119F94 93 A1 00 14 */ stw r29, 0x14(r1)
/* 8011E158 00119F98 7C 7D 1B 78 */ mr r29, r3
/* 8011E15C 00119F9C 80 03 00 20 */ lwz r0, 0x20(r3)
/* 8011E160 00119FA0 2C 00 00 00 */ cmpwi r0, 0x0
/* 8011E164 00119FA4 41 82 00 D8 */ beq lbl_8011E23C
/* 8011E168 00119FA8 C0 3D 00 60 */ lfs f1, 0x60(r29)
/* 8011E16C 00119FAC 7C 03 03 78 */ mr r3, r0
2022-10-16 16:31:36 +00:00
/* 8011E170 00119FB0 4B FF C8 B1 */ bl SetVolume__Q44nw4r3snd6detail5VoiceFf
2022-10-16 16:05:58 +00:00
/* 8011E174 00119FB4 80 7D 00 20 */ lwz r3, 0x20(r29)
/* 8011E178 00119FB8 C0 3D 00 64 */ lfs f1, 0x64(r29)
2022-10-16 16:31:36 +00:00
/* 8011E17C 00119FBC 4B FF C9 55 */ bl SetPitch__Q44nw4r3snd6detail5VoiceFf
2022-10-16 16:05:58 +00:00
/* 8011E180 00119FC0 80 7D 00 20 */ lwz r3, 0x20(r29)
/* 8011E184 00119FC4 C0 3D 00 68 */ lfs f1, 0x68(r29)
2022-10-16 16:31:36 +00:00
/* 8011E188 00119FC8 4B FF C9 A9 */ bl SetPan__Q44nw4r3snd6detail5VoiceFf
2022-10-16 16:05:58 +00:00
/* 8011E18C 00119FCC 80 7D 00 20 */ lwz r3, 0x20(r29)
/* 8011E190 00119FD0 C0 3D 00 6C */ lfs f1, 0x6c(r29)
2022-10-16 16:31:36 +00:00
/* 8011E194 00119FD4 4B FF C9 BD */ bl SetSurroundPan__Q44nw4r3snd6detail5VoiceFf
/* 8011E198 00119FD8 C0 22 95 00 */ lfs f1, "@9744"@sda21(r2)
2022-10-16 16:05:58 +00:00
/* 8011E19C 00119FDC C0 1D 00 70 */ lfs f0, 0x70(r29)
/* 8011E1A0 00119FE0 80 7D 00 20 */ lwz r3, 0x20(r29)
/* 8011E1A4 00119FE4 EC 21 00 2A */ fadds f1, f1, f0
2022-10-16 16:31:36 +00:00
/* 8011E1A8 00119FE8 4B FF C9 C9 */ bl SetLpfFreq__Q44nw4r3snd6detail5VoiceFf
2022-10-16 16:05:58 +00:00
/* 8011E1AC 00119FEC C0 3D 00 78 */ lfs f1, 0x78(r29)
/* 8011E1B0 00119FF0 80 7D 00 20 */ lwz r3, 0x20(r29)
/* 8011E1B4 00119FF4 80 9D 00 74 */ lwz r4, 0x74(r29)
2022-10-16 16:31:36 +00:00
/* 8011E1B8 00119FF8 4B FF C9 D9 */ bl SetBiquadFilter__Q44nw4r3snd6detail5VoiceFif
2022-10-16 16:05:58 +00:00
/* 8011E1BC 00119FFC 80 7D 00 20 */ lwz r3, 0x20(r29)
/* 8011E1C0 0011A000 88 9D 00 A4 */ lbz r4, 0xa4(r29)
2022-10-16 16:31:36 +00:00
/* 8011E1C4 0011A004 4B FF CA 3D */ bl SetRemoteFilter__Q44nw4r3snd6detail5VoiceFi
2022-10-16 16:05:58 +00:00
/* 8011E1C8 0011A008 80 7D 00 20 */ lwz r3, 0x20(r29)
/* 8011E1CC 0011A00C 80 9D 00 7C */ lwz r4, 0x7c(r29)
2022-10-16 16:31:36 +00:00
/* 8011E1D0 0011A010 4B FF CA 71 */ bl SetOutputLine__Q44nw4r3snd6detail5VoiceFi
2022-10-16 16:05:58 +00:00
/* 8011E1D4 0011A014 80 7D 00 20 */ lwz r3, 0x20(r29)
/* 8011E1D8 0011A018 C0 3D 00 80 */ lfs f1, 0x80(r29)
2022-10-16 16:31:36 +00:00
/* 8011E1DC 0011A01C 4B FF CA 85 */ bl SetMainOutVolume__Q44nw4r3snd6detail5VoiceFf
2022-10-16 16:05:58 +00:00
/* 8011E1E0 0011A020 80 7D 00 20 */ lwz r3, 0x20(r29)
/* 8011E1E4 0011A024 C0 3D 00 84 */ lfs f1, 0x84(r29)
2022-10-16 16:31:36 +00:00
/* 8011E1E8 0011A028 4B FF CA A9 */ bl SetMainSend__Q44nw4r3snd6detail5VoiceFf
2022-10-16 16:05:58 +00:00
/* 8011E1EC 0011A02C 7F BF EB 78 */ mr r31, r29
/* 8011E1F0 0011A030 3B C0 00 00 */ li r30, 0x0
.global lbl_8011E1F4
lbl_8011E1F4:
/* 8011E1F4 0011A034 80 7D 00 20 */ lwz r3, 0x20(r29)
/* 8011E1F8 0011A038 7F C4 F3 78 */ mr r4, r30
/* 8011E1FC 0011A03C C0 3F 00 88 */ lfs f1, 0x88(r31)
2022-10-16 16:31:36 +00:00
/* 8011E200 0011A040 4B FF CA D1 */ bl SetFxSend__Q44nw4r3snd6detail5VoiceFQ34nw4r3snd6AuxBusf
2022-10-16 16:05:58 +00:00
/* 8011E204 0011A044 3B DE 00 01 */ addi r30, r30, 0x1
/* 8011E208 0011A048 3B FF 00 04 */ addi r31, r31, 0x4
/* 8011E20C 0011A04C 2C 1E 00 03 */ cmpwi r30, 0x3
/* 8011E210 0011A050 41 80 FF E4 */ blt lbl_8011E1F4
/* 8011E214 0011A054 7F BF EB 78 */ mr r31, r29
/* 8011E218 0011A058 3B C0 00 00 */ li r30, 0x0
.global lbl_8011E21C
lbl_8011E21C:
/* 8011E21C 0011A05C 80 7D 00 20 */ lwz r3, 0x20(r29)
/* 8011E220 0011A060 7F C4 F3 78 */ mr r4, r30
/* 8011E224 0011A064 C0 3F 00 94 */ lfs f1, 0x94(r31)
2022-10-16 16:31:36 +00:00
/* 8011E228 0011A068 4B FF CA E9 */ bl SetRemoteOutVolume__Q44nw4r3snd6detail5VoiceFif
2022-10-16 16:05:58 +00:00
/* 8011E22C 0011A06C 3B DE 00 01 */ addi r30, r30, 0x1
/* 8011E230 0011A070 3B FF 00 04 */ addi r31, r31, 0x4
/* 8011E234 0011A074 2C 1E 00 04 */ cmpwi r30, 0x4
/* 8011E238 0011A078 41 80 FF E4 */ blt lbl_8011E21C
.global lbl_8011E23C
lbl_8011E23C:
/* 8011E23C 0011A07C 80 01 00 24 */ lwz r0, 0x24(r1)
/* 8011E240 0011A080 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 8011E244 0011A084 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 8011E248 0011A088 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 8011E24C 0011A08C 7C 08 03 A6 */ mtlr r0
/* 8011E250 0011A090 38 21 00 20 */ addi r1, r1, 0x20
/* 8011E254 0011A094 4E 80 00 20 */ blr
/* 8011E258 0011A098 00 00 00 00 */ .4byte 0x00000000
/* 8011E25C 0011A09C 00 00 00 00 */ .4byte 0x00000000
2022-10-16 16:31:36 +00:00
.global __ct__Q44nw4r3snd10WavePlayer10WavePacketFv
__ct__Q44nw4r3snd10WavePlayer10WavePacketFv:
/* 8011E260 0011A0A0 3C 80 80 44 */ lis r4, __vt__Q44nw4r3snd10WavePlayer10WavePacket@ha
2022-10-16 16:05:58 +00:00
/* 8011E264 0011A0A4 38 00 00 00 */ li r0, 0x0
2022-10-16 16:31:36 +00:00
/* 8011E268 0011A0A8 38 84 26 38 */ addi r4, r4, __vt__Q44nw4r3snd10WavePlayer10WavePacket@l
2022-10-16 16:05:58 +00:00
/* 8011E26C 0011A0AC 90 83 00 00 */ stw r4, 0x0(r3)
/* 8011E270 0011A0B0 98 03 00 14 */ stb r0, 0x14(r3)
/* 8011E274 0011A0B4 90 03 00 18 */ stw r0, 0x18(r3)
/* 8011E278 0011A0B8 90 03 00 1C */ stw r0, 0x1c(r3)
/* 8011E27C 0011A0BC 90 03 00 08 */ stw r0, 0x8(r3)
/* 8011E280 0011A0C0 90 03 00 0C */ stw r0, 0xc(r3)
/* 8011E284 0011A0C4 4E 80 00 20 */ blr
/* 8011E288 0011A0C8 00 00 00 00 */ .4byte 0x00000000
/* 8011E28C 0011A0CC 00 00 00 00 */ .4byte 0x00000000
2022-10-16 16:31:36 +00:00
.global OnShutdownSoundThread__Q34nw4r3snd10WavePlayerFv
OnShutdownSoundThread__Q34nw4r3snd10WavePlayerFv:
/* 8011E290 0011A0D0 4B FF F8 B0 */ b Stop__Q34nw4r3snd10WavePlayerFv
2022-10-16 16:05:58 +00:00
/* 8011E294 0011A0D4 00 00 00 00 */ .4byte 0x00000000
/* 8011E298 0011A0D8 00 00 00 00 */ .4byte 0x00000000
/* 8011E29C 0011A0DC 00 00 00 00 */ .4byte 0x00000000
2022-10-16 16:31:36 +00:00
.global OnUpdateVoiceSoundThread__Q34nw4r3snd10WavePlayerFv
OnUpdateVoiceSoundThread__Q34nw4r3snd10WavePlayerFv:
2022-10-16 16:05:58 +00:00
/* 8011E2A0 0011A0E0 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 8011E2A4 0011A0E4 7C 08 02 A6 */ mflr r0
/* 8011E2A8 0011A0E8 90 01 00 14 */ stw r0, 0x14(r1)
/* 8011E2AC 0011A0EC 93 E1 00 0C */ stw r31, 0xc(r1)
/* 8011E2B0 0011A0F0 93 C1 00 08 */ stw r30, 0x8(r1)
/* 8011E2B4 0011A0F4 7C 7E 1B 78 */ mr r30, r3
/* 8011E2B8 0011A0F8 88 03 00 25 */ lbz r0, 0x25(r3)
/* 8011E2BC 0011A0FC 2C 00 00 00 */ cmpwi r0, 0x0
/* 8011E2C0 0011A100 41 82 00 9C */ beq lbl_8011E35C
/* 8011E2C4 0011A104 80 63 00 20 */ lwz r3, 0x20(r3)
/* 8011E2C8 0011A108 2C 03 00 00 */ cmpwi r3, 0x0
/* 8011E2CC 0011A10C 40 82 00 0C */ bne lbl_8011E2D8
/* 8011E2D0 0011A110 38 00 00 00 */ li r0, 0x0
/* 8011E2D4 0011A114 48 00 00 6C */ b lbl_8011E340
.global lbl_8011E2D8
lbl_8011E2D8:
/* 8011E2D8 0011A118 80 63 00 0C */ lwz r3, 0xc(r3)
/* 8011E2DC 0011A11C 3B E0 00 00 */ li r31, 0x0
/* 8011E2E0 0011A120 2C 03 00 00 */ cmpwi r3, 0x0
/* 8011E2E4 0011A124 41 82 00 14 */ beq lbl_8011E2F8
2022-10-16 16:31:36 +00:00
/* 8011E2E8 0011A128 4B FE 2D B9 */ bl IsPlayFinished__Q44nw4r3snd6detail7AxVoiceCFv
2022-10-16 16:05:58 +00:00
/* 8011E2EC 0011A12C 2C 03 00 00 */ cmpwi r3, 0x0
/* 8011E2F0 0011A130 41 82 00 08 */ beq lbl_8011E2F8
/* 8011E2F4 0011A134 3B E0 00 01 */ li r31, 0x1
.global lbl_8011E2F8
lbl_8011E2F8:
/* 8011E2F8 0011A138 2C 1F 00 00 */ cmpwi r31, 0x0
/* 8011E2FC 0011A13C 41 82 00 0C */ beq lbl_8011E308
/* 8011E300 0011A140 38 00 00 00 */ li r0, 0x0
/* 8011E304 0011A144 48 00 00 3C */ b lbl_8011E340
.global lbl_8011E308
lbl_8011E308:
/* 8011E308 0011A148 80 1E 00 0C */ lwz r0, 0xc(r30)
/* 8011E30C 0011A14C 2C 00 00 00 */ cmpwi r0, 0x0
/* 8011E310 0011A150 40 82 00 0C */ bne lbl_8011E31C
/* 8011E314 0011A154 38 00 00 00 */ li r0, 0x0
/* 8011E318 0011A158 48 00 00 28 */ b lbl_8011E340
.global lbl_8011E31C
lbl_8011E31C:
/* 8011E31C 0011A15C 80 DE 00 10 */ lwz r6, 0x10(r30)
/* 8011E320 0011A160 38 80 00 00 */ li r4, 0x0
/* 8011E324 0011A164 80 7E 00 20 */ lwz r3, 0x20(r30)
/* 8011E328 0011A168 80 A6 FF F0 */ lwz r5, -0x10(r6)
/* 8011E32C 0011A16C 80 06 FF F8 */ lwz r0, -0x8(r6)
/* 8011E330 0011A170 7C C5 02 14 */ add r6, r5, r0
2022-10-16 16:31:36 +00:00
/* 8011E334 0011A174 4B FF CB 9D */ bl IsCurrentAddressCoverd__Q44nw4r3snd6detail5VoiceCFiPCvPCv
2022-10-16 16:05:58 +00:00
/* 8011E338 0011A178 7C 60 00 34 */ cntlzw r0, r3
/* 8011E33C 0011A17C 54 00 D9 7E */ srwi r0, r0, 5
.global lbl_8011E340
lbl_8011E340:
/* 8011E340 0011A180 2C 00 00 00 */ cmpwi r0, 0x0
/* 8011E344 0011A184 41 82 00 0C */ beq lbl_8011E350
/* 8011E348 0011A188 7F C3 F3 78 */ mr r3, r30
2022-10-16 16:31:36 +00:00
/* 8011E34C 0011A18C 4B FF FC D5 */ bl UpdateWavePacket__Q34nw4r3snd10WavePlayerFv
2022-10-16 16:05:58 +00:00
.global lbl_8011E350
lbl_8011E350:
/* 8011E350 0011A190 7F C3 F3 78 */ mr r3, r30
2022-10-16 16:31:36 +00:00
/* 8011E354 0011A194 4B FF FA 9D */ bl SetNextWavePacket__Q34nw4r3snd10WavePlayerFv
2022-10-16 16:05:58 +00:00
/* 8011E358 0011A198 48 00 00 14 */ b lbl_8011E36C
.global lbl_8011E35C
lbl_8011E35C:
/* 8011E35C 0011A19C 80 03 00 0C */ lwz r0, 0xc(r3)
/* 8011E360 0011A1A0 2C 00 00 00 */ cmpwi r0, 0x0
/* 8011E364 0011A1A4 41 82 00 08 */ beq lbl_8011E36C
2022-10-16 16:31:36 +00:00
/* 8011E368 0011A1A8 4B FF F8 C9 */ bl StartVoice__Q34nw4r3snd10WavePlayerFv
2022-10-16 16:05:58 +00:00
.global lbl_8011E36C
lbl_8011E36C:
/* 8011E36C 0011A1AC 80 01 00 14 */ lwz r0, 0x14(r1)
/* 8011E370 0011A1B0 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 8011E374 0011A1B4 83 C1 00 08 */ lwz r30, 0x8(r1)
/* 8011E378 0011A1B8 7C 08 03 A6 */ mtlr r0
/* 8011E37C 0011A1BC 38 21 00 10 */ addi r1, r1, 0x10
/* 8011E380 0011A1C0 4E 80 00 20 */ blr
/* 8011E384 0011A1C4 00 00 00 00 */ .4byte 0x00000000
/* 8011E388 0011A1C8 00 00 00 00 */ .4byte 0x00000000
/* 8011E38C 0011A1CC 00 00 00 00 */ .4byte 0x00000000
2022-10-16 16:31:36 +00:00
.global OnUpdateFrameSoundThread__Q34nw4r3snd10WavePlayerFv
OnUpdateFrameSoundThread__Q34nw4r3snd10WavePlayerFv:
/* 8011E390 0011A1D0 4B FF FD B0 */ b detail_Update__Q34nw4r3snd10WavePlayerFv
2022-10-16 16:05:58 +00:00
/* 8011E394 0011A1D4 00 00 00 00 */ .4byte 0x00000000
/* 8011E398 0011A1D8 00 00 00 00 */ .4byte 0x00000000
/* 8011E39C 0011A1DC 00 00 00 00 */ .4byte 0x00000000
2022-10-16 16:31:36 +00:00
.global __dt__Q44nw4r3snd10WavePlayer10WavePacketFv
__dt__Q44nw4r3snd10WavePlayer10WavePacketFv:
/* 8011E3A0 0011A1E0 4B F8 6A 10 */ b __dt__Q34nw4r2ef7EmitterFv
2022-10-16 16:05:58 +00:00
/* 8011E3A4 0011A1E4 00 00 00 00 */ .4byte 0x00000000
/* 8011E3A8 0011A1E8 00 00 00 00 */ .4byte 0x00000000
/* 8011E3AC 0011A1EC 00 00 00 00 */ .4byte 0x00000000
2022-10-17 08:54:32 +00:00
.include "macros.inc"
.section .data, "wa" # 0x80421040 - 0x80496700 ; 0x000756C0
.global __vt__Q34nw4r3snd10WavePlayer
__vt__Q34nw4r3snd10WavePlayer:
.4byte 0
.4byte 0
.4byte __dt__Q34nw4r3snd10WavePlayerFv
.4byte OnUpdateFrameSoundThread__Q34nw4r3snd10WavePlayerFv
.4byte OnUpdateVoiceSoundThread__Q34nw4r3snd10WavePlayerFv
.4byte OnShutdownSoundThread__Q34nw4r3snd10WavePlayerFv
.global __vt__Q44nw4r3snd10WavePlayer10WavePacket
__vt__Q44nw4r3snd10WavePlayer10WavePacket:
.4byte 0
.4byte 0
.4byte __dt__Q44nw4r3snd10WavePlayer10WavePacketFv
.4byte 0
.include "macros.inc"
.section .sdata2, "wa" # 0x8055DF80 - 0x805643C0 ; 0x00006440
.global "@9744"
"@9744":
.4byte 0x3F800000
.global "@9745"
"@9745":
.4byte 0
.global "@9803"
"@9803":
.4byte 0x40000000
.global "@9804"
"@9804":
.4byte 0x40400000
.global "@9805"
"@9805":
.4byte 0x447A0000
.4byte 0
.global "@9808"
"@9808":
.4byte 0x43300000
.4byte 0x80000000
.global "@9857"
"@9857":
.4byte 0x40C00000
.4byte 0
.global "@9861"
"@9861":
.4byte 0x43300000
.4byte 0