prime/asm/musyx/runtime/seq.s

4729 lines
223 KiB
ArmAsm
Raw Normal View History

2022-04-02 09:50:35 +00:00
.include "macros.inc"
2022-04-08 05:17:01 +00:00
.section .bss
.balign 8
2022-04-08 05:17:01 +00:00
.global seqNote
seqNote:
.skip 0x1400
.global seqInstance
seqInstance:
.skip 0xC340
.global seqMIDIPriority
seqMIDIPriority:
.skip 0x100
2022-04-08 06:41:39 +00:00
.section .sbss
.balign 8
seq_next_id:
.skip 0x4
curFadeOutState:
.skip 0x4
curSeqId:
.skip 0x4
noteFree:
.skip 0x4
cseq:
.skip 0x4
seqFreeRoot:
.skip 0x4
seqPausedRoot:
.skip 0x4
seqActiveRoot:
.skip 0x4
2022-04-08 05:17:01 +00:00
.section .sdata2
.balign 8
.global lbl_805AF210
lbl_805AF210:
2022-04-08 06:41:39 +00:00
# ROM: 0x3FBAB0
.4byte 0x32D1B717
.global lbl_805AF214
lbl_805AF214:
2022-04-08 06:41:39 +00:00
# ROM: 0x3FBAB4
.4byte 0x3B800000
.global lbl_805AF218
lbl_805AF218:
2022-04-08 06:41:39 +00:00
# ROM: 0x3FBAB8
.4byte 0x47800000
.4byte 0
.global lbl_805AF220
lbl_805AF220:
2022-04-08 06:41:39 +00:00
# ROM: 0x3FBAC0
.4byte 0x40F00000
.4byte 0
.global lbl_805AF228
lbl_805AF228:
2022-04-08 06:41:39 +00:00
# ROM: 0x3FBAC8
.4byte 0x43300000
.4byte 0
2022-04-04 10:14:22 +00:00
.section .data, "wa"
.balign 8
2022-04-04 10:14:22 +00:00
.global lbl_803F2F88
lbl_803F2F88:
2022-04-08 05:17:01 +00:00
# ROM: 0x3EFF88
.4byte lbl_8039750C
.4byte lbl_8039753C
.4byte lbl_80397560
.4byte lbl_80397638
.4byte lbl_80397638
.4byte lbl_80397638
.4byte lbl_80397638
.4byte lbl_80397638
.4byte lbl_80397638
.4byte lbl_80397638
.4byte lbl_80397638
.4byte lbl_80397638
.4byte lbl_80397638
.4byte lbl_80397638
.4byte lbl_80397638
.4byte lbl_80397638
.4byte lbl_80397638
.4byte lbl_80397588
.4byte lbl_80397638
.4byte lbl_803975A0
.section .text, "ax"
2022-04-02 09:50:35 +00:00
.global seqGetPrivateId
seqGetPrivateId:
/* 80394D30 00391C90 7C 65 1B 78 */ mr r5, r3
/* 80394D34 00391C94 80 8D AE 44 */ lwz r4, seqActiveRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80394D38 00391C98 54 63 00 7E */ clrlwi r3, r3, 1
/* 80394D3C 00391C9C 48 00 00 20 */ b lbl_80394D5C
lbl_80394D40:
/* 80394D40 00391CA0 80 04 00 0C */ lwz r0, 0xc(r4)
/* 80394D44 00391CA4 7C 00 18 40 */ cmplw r0, r3
/* 80394D48 00391CA8 40 82 00 10 */ bne lbl_80394D58
/* 80394D4C 00391CAC 88 64 00 09 */ lbz r3, 9(r4)
/* 80394D50 00391CB0 50 A3 00 00 */ rlwimi r3, r5, 0, 0, 0
2022-04-08 05:17:01 +00:00
/* 80394D54 00391CB4 4E 80 00 20 */ blr
2022-04-02 09:50:35 +00:00
lbl_80394D58:
/* 80394D58 00391CB8 80 84 00 00 */ lwz r4, 0(r4)
lbl_80394D5C:
/* 80394D5C 00391CBC 28 04 00 00 */ cmplwi r4, 0
/* 80394D60 00391CC0 40 82 FF E0 */ bne lbl_80394D40
/* 80394D64 00391CC4 80 8D AE 40 */ lwz r4, seqPausedRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80394D68 00391CC8 48 00 00 20 */ b lbl_80394D88
lbl_80394D6C:
/* 80394D6C 00391CCC 80 04 00 0C */ lwz r0, 0xc(r4)
/* 80394D70 00391CD0 7C 00 18 40 */ cmplw r0, r3
/* 80394D74 00391CD4 40 82 00 10 */ bne lbl_80394D84
/* 80394D78 00391CD8 88 64 00 09 */ lbz r3, 9(r4)
/* 80394D7C 00391CDC 50 A3 00 00 */ rlwimi r3, r5, 0, 0, 0
2022-04-08 05:17:01 +00:00
/* 80394D80 00391CE0 4E 80 00 20 */ blr
2022-04-02 09:50:35 +00:00
lbl_80394D84:
/* 80394D84 00391CE4 80 84 00 00 */ lwz r4, 0(r4)
lbl_80394D88:
/* 80394D88 00391CE8 28 04 00 00 */ cmplwi r4, 0
/* 80394D8C 00391CEC 40 82 FF E0 */ bne lbl_80394D6C
/* 80394D90 00391CF0 38 60 FF FF */ li r3, -1
2022-04-08 05:17:01 +00:00
/* 80394D94 00391CF4 4E 80 00 20 */ blr
2022-04-02 09:50:35 +00:00
2022-04-04 10:14:22 +00:00
.global seqStartPlay
seqStartPlay:
2022-04-02 09:50:35 +00:00
/* 80394D98 00391CF8 94 21 FF C0 */ stwu r1, -0x40(r1)
/* 80394D9C 00391CFC 7C 08 02 A6 */ mflr r0
/* 80394DA0 00391D00 90 01 00 44 */ stw r0, 0x44(r1)
/* 80394DA4 00391D04 39 61 00 40 */ addi r11, r1, 0x40
2022-04-04 10:14:22 +00:00
/* 80394DA8 00391D08 4B FF 4C B9 */ bl _savegpr_20
/* 80394DAC 00391D0C 83 6D AE 3C */ lwz r27, seqFreeRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80394DB0 00391D10 7C BD 2B 78 */ mr r29, r5
/* 80394DB4 00391D14 7C DC 33 78 */ mr r28, r6
/* 80394DB8 00391D18 7C F9 3B 78 */ mr r25, r7
/* 80394DBC 00391D1C 28 1B 00 00 */ cmplwi r27, 0
/* 80394DC0 00391D20 40 82 00 0C */ bne lbl_80394DCC
/* 80394DC4 00391D24 38 60 FF FF */ li r3, -1
/* 80394DC8 00391D28 48 00 0A 7C */ b lbl_80395844
lbl_80394DCC:
/* 80394DCC 00391D2C 80 BB 00 00 */ lwz r5, 0(r27)
/* 80394DD0 00391D30 28 05 00 00 */ cmplwi r5, 0
/* 80394DD4 00391D34 90 AD AE 3C */ stw r5, seqFreeRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80394DD8 00391D38 41 82 00 0C */ beq lbl_80394DE4
/* 80394DDC 00391D3C 38 00 00 00 */ li r0, 0
/* 80394DE0 00391D40 90 05 00 04 */ stw r0, 4(r5)
lbl_80394DE4:
/* 80394DE4 00391D44 80 0D AE 44 */ lwz r0, seqActiveRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80394DE8 00391D48 28 00 00 00 */ cmplwi r0, 0
/* 80394DEC 00391D4C 90 1B 00 00 */ stw r0, 0(r27)
/* 80394DF0 00391D50 41 82 00 0C */ beq lbl_80394DFC
/* 80394DF4 00391D54 80 AD AE 44 */ lwz r5, seqActiveRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80394DF8 00391D58 93 65 00 04 */ stw r27, 4(r5)
lbl_80394DFC:
/* 80394DFC 00391D5C 38 A0 00 00 */ li r5, 0
/* 80394E00 00391D60 38 00 00 00 */ li r0, 0
/* 80394E04 00391D64 90 BB 00 04 */ stw r5, 4(r27)
/* 80394E08 00391D68 2C 00 00 10 */ cmpwi r0, 0x10
/* 80394E0C 00391D6C 38 00 00 01 */ li r0, 1
/* 80394E10 00391D70 93 6D AE 44 */ stw r27, seqActiveRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80394E14 00391D74 98 1B 00 08 */ stb r0, 8(r27)
/* 80394E18 00391D78 40 80 00 44 */ bge lbl_80394E5C
/* 80394E1C 00391D7C 90 BB 15 04 */ stw r5, 0x1504(r27)
/* 80394E20 00391D80 90 BB 15 3C */ stw r5, 0x153c(r27)
/* 80394E24 00391D84 90 BB 15 74 */ stw r5, 0x1574(r27)
/* 80394E28 00391D88 90 BB 15 AC */ stw r5, 0x15ac(r27)
/* 80394E2C 00391D8C 90 BB 15 E4 */ stw r5, 0x15e4(r27)
/* 80394E30 00391D90 90 BB 16 1C */ stw r5, 0x161c(r27)
/* 80394E34 00391D94 90 BB 16 54 */ stw r5, 0x1654(r27)
/* 80394E38 00391D98 90 BB 16 8C */ stw r5, 0x168c(r27)
/* 80394E3C 00391D9C 90 BB 16 C4 */ stw r5, 0x16c4(r27)
/* 80394E40 00391DA0 90 BB 16 FC */ stw r5, 0x16fc(r27)
/* 80394E44 00391DA4 90 BB 17 34 */ stw r5, 0x1734(r27)
/* 80394E48 00391DA8 90 BB 17 6C */ stw r5, 0x176c(r27)
/* 80394E4C 00391DAC 90 BB 17 A4 */ stw r5, 0x17a4(r27)
/* 80394E50 00391DB0 90 BB 17 DC */ stw r5, 0x17dc(r27)
/* 80394E54 00391DB4 90 BB 18 14 */ stw r5, 0x1814(r27)
/* 80394E58 00391DB8 90 BB 18 4C */ stw r5, 0x184c(r27)
lbl_80394E5C:
/* 80394E5C 00391DBC 8B 5B 00 09 */ lbz r26, 9(r27)
/* 80394E60 00391DC0 38 A0 00 00 */ li r5, 0
/* 80394E64 00391DC4 98 BB 0E E0 */ stb r5, 0xee0(r27)
/* 80394E68 00391DC8 90 7B 00 10 */ stw r3, 0x10(r27)
/* 80394E6C 00391DCC 90 9B 00 94 */ stw r4, 0x94(r27)
/* 80394E70 00391DD0 93 9B 01 18 */ stw r28, 0x118(r27)
/* 80394E74 00391DD4 B1 3B 00 0A */ sth r9, 0xa(r27)
/* 80394E78 00391DD8 80 7B 00 10 */ lwz r3, 0x10(r27)
/* 80394E7C 00391DDC 48 00 00 88 */ b lbl_80394F04
lbl_80394E80:
/* 80394E80 00391DE0 54 A6 06 3E */ clrlwi r6, r5, 0x18
/* 80394E84 00391DE4 38 85 00 01 */ addi r4, r5, 1
/* 80394E88 00391DE8 38 C6 00 14 */ addi r6, r6, 0x14
/* 80394E8C 00391DEC 38 00 00 FF */ li r0, 0xff
/* 80394E90 00391DF0 54 84 06 3E */ clrlwi r4, r4, 0x18
/* 80394E94 00391DF4 7C 1B 31 AE */ stbx r0, r27, r6
/* 80394E98 00391DF8 38 C4 00 14 */ addi r6, r4, 0x14
/* 80394E9C 00391DFC 38 85 00 02 */ addi r4, r5, 2
/* 80394EA0 00391E00 7C 1B 31 AE */ stbx r0, r27, r6
/* 80394EA4 00391E04 54 84 06 3E */ clrlwi r4, r4, 0x18
/* 80394EA8 00391E08 38 C4 00 14 */ addi r6, r4, 0x14
/* 80394EAC 00391E0C 38 85 00 03 */ addi r4, r5, 3
/* 80394EB0 00391E10 7C 1B 31 AE */ stbx r0, r27, r6
/* 80394EB4 00391E14 54 84 06 3E */ clrlwi r4, r4, 0x18
/* 80394EB8 00391E18 38 C4 00 14 */ addi r6, r4, 0x14
/* 80394EBC 00391E1C 38 85 00 04 */ addi r4, r5, 4
/* 80394EC0 00391E20 7C 1B 31 AE */ stbx r0, r27, r6
/* 80394EC4 00391E24 54 84 06 3E */ clrlwi r4, r4, 0x18
/* 80394EC8 00391E28 38 C4 00 14 */ addi r6, r4, 0x14
/* 80394ECC 00391E2C 38 85 00 05 */ addi r4, r5, 5
/* 80394ED0 00391E30 7C 1B 31 AE */ stbx r0, r27, r6
/* 80394ED4 00391E34 54 84 06 3E */ clrlwi r4, r4, 0x18
/* 80394ED8 00391E38 38 E4 00 14 */ addi r7, r4, 0x14
/* 80394EDC 00391E3C 38 85 00 06 */ addi r4, r5, 6
/* 80394EE0 00391E40 7C 1B 39 AE */ stbx r0, r27, r7
/* 80394EE4 00391E44 54 86 06 3E */ clrlwi r6, r4, 0x18
/* 80394EE8 00391E48 38 85 00 07 */ addi r4, r5, 7
/* 80394EEC 00391E4C 38 A5 00 08 */ addi r5, r5, 8
/* 80394EF0 00391E50 38 C6 00 14 */ addi r6, r6, 0x14
/* 80394EF4 00391E54 54 84 06 3E */ clrlwi r4, r4, 0x18
/* 80394EF8 00391E58 7C 1B 31 AE */ stbx r0, r27, r6
/* 80394EFC 00391E5C 38 84 00 14 */ addi r4, r4, 0x14
/* 80394F00 00391E60 7C 1B 21 AE */ stbx r0, r27, r4
lbl_80394F04:
/* 80394F04 00391E64 54 A0 06 3E */ clrlwi r0, r5, 0x18
/* 80394F08 00391E68 28 00 00 80 */ cmplwi r0, 0x80
/* 80394F0C 00391E6C 41 80 FF 74 */ blt lbl_80394E80
/* 80394F10 00391E70 38 A0 00 00 */ li r5, 0
/* 80394F14 00391E74 48 00 00 14 */ b lbl_80394F28
lbl_80394F18:
/* 80394F18 00391E78 38 04 00 14 */ addi r0, r4, 0x14
/* 80394F1C 00391E7C 38 63 00 06 */ addi r3, r3, 6
/* 80394F20 00391E80 7C BB 01 AE */ stbx r5, r27, r0
/* 80394F24 00391E84 38 A5 00 01 */ addi r5, r5, 1
lbl_80394F28:
/* 80394F28 00391E88 88 83 00 04 */ lbz r4, 4(r3)
/* 80394F2C 00391E8C 28 04 00 FF */ cmplwi r4, 0xff
/* 80394F30 00391E90 40 82 FF E8 */ bne lbl_80394F18
/* 80394F34 00391E94 80 9B 00 94 */ lwz r4, 0x94(r27)
/* 80394F38 00391E98 38 60 00 00 */ li r3, 0
/* 80394F3C 00391E9C 48 00 00 88 */ b lbl_80394FC4
lbl_80394F40:
/* 80394F40 00391EA0 54 66 06 3E */ clrlwi r6, r3, 0x18
/* 80394F44 00391EA4 38 A3 00 01 */ addi r5, r3, 1
/* 80394F48 00391EA8 38 C6 00 98 */ addi r6, r6, 0x98
/* 80394F4C 00391EAC 38 00 00 FF */ li r0, 0xff
/* 80394F50 00391EB0 54 A5 06 3E */ clrlwi r5, r5, 0x18
/* 80394F54 00391EB4 7C 1B 31 AE */ stbx r0, r27, r6
/* 80394F58 00391EB8 38 C5 00 98 */ addi r6, r5, 0x98
/* 80394F5C 00391EBC 38 A3 00 02 */ addi r5, r3, 2
/* 80394F60 00391EC0 7C 1B 31 AE */ stbx r0, r27, r6
/* 80394F64 00391EC4 54 A5 06 3E */ clrlwi r5, r5, 0x18
/* 80394F68 00391EC8 38 C5 00 98 */ addi r6, r5, 0x98
/* 80394F6C 00391ECC 38 A3 00 03 */ addi r5, r3, 3
/* 80394F70 00391ED0 7C 1B 31 AE */ stbx r0, r27, r6
/* 80394F74 00391ED4 54 A5 06 3E */ clrlwi r5, r5, 0x18
/* 80394F78 00391ED8 38 C5 00 98 */ addi r6, r5, 0x98
/* 80394F7C 00391EDC 38 A3 00 04 */ addi r5, r3, 4
/* 80394F80 00391EE0 7C 1B 31 AE */ stbx r0, r27, r6
/* 80394F84 00391EE4 54 A5 06 3E */ clrlwi r5, r5, 0x18
/* 80394F88 00391EE8 38 C5 00 98 */ addi r6, r5, 0x98
/* 80394F8C 00391EEC 38 A3 00 05 */ addi r5, r3, 5
/* 80394F90 00391EF0 7C 1B 31 AE */ stbx r0, r27, r6
/* 80394F94 00391EF4 54 A5 06 3E */ clrlwi r5, r5, 0x18
/* 80394F98 00391EF8 38 E5 00 98 */ addi r7, r5, 0x98
/* 80394F9C 00391EFC 38 A3 00 06 */ addi r5, r3, 6
/* 80394FA0 00391F00 7C 1B 39 AE */ stbx r0, r27, r7
/* 80394FA4 00391F04 54 A6 06 3E */ clrlwi r6, r5, 0x18
/* 80394FA8 00391F08 38 A3 00 07 */ addi r5, r3, 7
/* 80394FAC 00391F0C 38 63 00 08 */ addi r3, r3, 8
/* 80394FB0 00391F10 38 C6 00 98 */ addi r6, r6, 0x98
/* 80394FB4 00391F14 54 A5 06 3E */ clrlwi r5, r5, 0x18
/* 80394FB8 00391F18 7C 1B 31 AE */ stbx r0, r27, r6
/* 80394FBC 00391F1C 38 A5 00 98 */ addi r5, r5, 0x98
/* 80394FC0 00391F20 7C 1B 29 AE */ stbx r0, r27, r5
lbl_80394FC4:
/* 80394FC4 00391F24 54 60 06 3E */ clrlwi r0, r3, 0x18
/* 80394FC8 00391F28 28 00 00 80 */ cmplwi r0, 0x80
/* 80394FCC 00391F2C 41 80 FF 74 */ blt lbl_80394F40
/* 80394FD0 00391F30 38 A0 00 00 */ li r5, 0
/* 80394FD4 00391F34 48 00 00 14 */ b lbl_80394FE8
lbl_80394FD8:
/* 80394FD8 00391F38 38 03 00 98 */ addi r0, r3, 0x98
/* 80394FDC 00391F3C 38 84 00 06 */ addi r4, r4, 6
/* 80394FE0 00391F40 7C BB 01 AE */ stbx r5, r27, r0
/* 80394FE4 00391F44 38 A5 00 01 */ addi r5, r5, 1
lbl_80394FE8:
/* 80394FE8 00391F48 88 64 00 04 */ lbz r3, 4(r4)
/* 80394FEC 00391F4C 28 03 00 FF */ cmplwi r3, 0xff
/* 80394FF0 00391F50 40 82 FF E8 */ bne lbl_80394FD8
/* 80394FF4 00391F54 38 80 00 00 */ li r4, 0
/* 80394FF8 00391F58 38 1A 00 17 */ addi r0, r26, 0x17
/* 80394FFC 00391F5C 2C 04 00 40 */ cmpwi r4, 0x40
/* 80395000 00391F60 98 1B 0E B0 */ stb r0, 0xeb0(r27)
/* 80395004 00391F64 40 80 00 A4 */ bge lbl_803950A8
/* 80395008 00391F68 38 00 00 04 */ li r0, 4
/* 8039500C 00391F6C 7C 09 03 A6 */ mtctr r0
lbl_80395010:
/* 80395010 00391F70 38 64 03 24 */ addi r3, r4, 0x324
/* 80395014 00391F74 88 1B 0E B0 */ lbz r0, 0xeb0(r27)
/* 80395018 00391F78 7C 7B 1A 14 */ add r3, r27, r3
/* 8039501C 00391F7C 98 03 00 00 */ stb r0, 0(r3)
/* 80395020 00391F80 88 1B 0E B0 */ lbz r0, 0xeb0(r27)
/* 80395024 00391F84 98 03 00 01 */ stb r0, 1(r3)
/* 80395028 00391F88 88 1B 0E B0 */ lbz r0, 0xeb0(r27)
/* 8039502C 00391F8C 98 03 00 02 */ stb r0, 2(r3)
/* 80395030 00391F90 88 1B 0E B0 */ lbz r0, 0xeb0(r27)
/* 80395034 00391F94 98 03 00 03 */ stb r0, 3(r3)
/* 80395038 00391F98 88 1B 0E B0 */ lbz r0, 0xeb0(r27)
/* 8039503C 00391F9C 98 03 00 04 */ stb r0, 4(r3)
/* 80395040 00391FA0 88 1B 0E B0 */ lbz r0, 0xeb0(r27)
/* 80395044 00391FA4 98 03 00 05 */ stb r0, 5(r3)
/* 80395048 00391FA8 88 1B 0E B0 */ lbz r0, 0xeb0(r27)
/* 8039504C 00391FAC 98 03 00 06 */ stb r0, 6(r3)
/* 80395050 00391FB0 88 1B 0E B0 */ lbz r0, 0xeb0(r27)
/* 80395054 00391FB4 98 03 00 07 */ stb r0, 7(r3)
/* 80395058 00391FB8 38 64 03 2C */ addi r3, r4, 0x32c
/* 8039505C 00391FBC 7C 7B 1A 14 */ add r3, r27, r3
/* 80395060 00391FC0 38 84 00 10 */ addi r4, r4, 0x10
/* 80395064 00391FC4 88 1B 0E B0 */ lbz r0, 0xeb0(r27)
/* 80395068 00391FC8 98 03 00 00 */ stb r0, 0(r3)
/* 8039506C 00391FCC 88 1B 0E B0 */ lbz r0, 0xeb0(r27)
/* 80395070 00391FD0 98 03 00 01 */ stb r0, 1(r3)
/* 80395074 00391FD4 88 1B 0E B0 */ lbz r0, 0xeb0(r27)
/* 80395078 00391FD8 98 03 00 02 */ stb r0, 2(r3)
/* 8039507C 00391FDC 88 1B 0E B0 */ lbz r0, 0xeb0(r27)
/* 80395080 00391FE0 98 03 00 03 */ stb r0, 3(r3)
/* 80395084 00391FE4 88 1B 0E B0 */ lbz r0, 0xeb0(r27)
/* 80395088 00391FE8 98 03 00 04 */ stb r0, 4(r3)
/* 8039508C 00391FEC 88 1B 0E B0 */ lbz r0, 0xeb0(r27)
/* 80395090 00391FF0 98 03 00 05 */ stb r0, 5(r3)
/* 80395094 00391FF4 88 1B 0E B0 */ lbz r0, 0xeb0(r27)
/* 80395098 00391FF8 98 03 00 06 */ stb r0, 6(r3)
/* 8039509C 00391FFC 88 1B 0E B0 */ lbz r0, 0xeb0(r27)
/* 803950A0 00392000 98 03 00 07 */ stb r0, 7(r3)
/* 803950A4 00392004 42 00 FF 6C */ bdnz lbl_80395010
lbl_803950A8:
/* 803950A8 00392008 28 19 00 00 */ cmplwi r25, 0
/* 803950AC 0039200C 99 1B 0E E1 */ stb r8, 0xee1(r27)
/* 803950B0 00392010 40 82 00 7C */ bne lbl_8039512C
/* 803950B4 00392014 38 00 FF FF */ li r0, -1
/* 803950B8 00392018 38 60 00 00 */ li r3, 0
/* 803950BC 0039201C 90 1B 01 1C */ stw r0, 0x11c(r27)
/* 803950C0 00392020 2C 03 00 10 */ cmpwi r3, 0x10
/* 803950C4 00392024 90 1B 01 20 */ stw r0, 0x120(r27)
/* 803950C8 00392028 40 80 00 48 */ bge lbl_80395110
/* 803950CC 0039202C 38 00 01 00 */ li r0, 0x100
/* 803950D0 00392030 B0 1B 15 1A */ sth r0, 0x151a(r27)
/* 803950D4 00392034 B0 1B 15 52 */ sth r0, 0x1552(r27)
/* 803950D8 00392038 B0 1B 15 8A */ sth r0, 0x158a(r27)
/* 803950DC 0039203C B0 1B 15 C2 */ sth r0, 0x15c2(r27)
/* 803950E0 00392040 B0 1B 15 FA */ sth r0, 0x15fa(r27)
/* 803950E4 00392044 B0 1B 16 32 */ sth r0, 0x1632(r27)
/* 803950E8 00392048 B0 1B 16 6A */ sth r0, 0x166a(r27)
/* 803950EC 0039204C B0 1B 16 A2 */ sth r0, 0x16a2(r27)
/* 803950F0 00392050 B0 1B 16 DA */ sth r0, 0x16da(r27)
/* 803950F4 00392054 B0 1B 17 12 */ sth r0, 0x1712(r27)
/* 803950F8 00392058 B0 1B 17 4A */ sth r0, 0x174a(r27)
/* 803950FC 0039205C B0 1B 17 82 */ sth r0, 0x1782(r27)
/* 80395100 00392060 B0 1B 17 BA */ sth r0, 0x17ba(r27)
/* 80395104 00392064 B0 1B 17 F2 */ sth r0, 0x17f2(r27)
/* 80395108 00392068 B0 1B 18 2A */ sth r0, 0x182a(r27)
/* 8039510C 0039206C B0 1B 18 62 */ sth r0, 0x1862(r27)
lbl_80395110:
/* 80395110 00392070 88 BB 0E B0 */ lbz r5, 0xeb0(r27)
/* 80395114 00392074 38 60 00 7F */ li r3, 0x7f
/* 80395118 00392078 38 80 00 00 */ li r4, 0
/* 8039511C 0039207C 38 C0 00 00 */ li r6, 0
/* 80395120 00392080 38 E0 FF FF */ li r7, -1
/* 80395124 00392084 48 00 62 C5 */ bl synthVolume
/* 80395128 00392088 48 00 01 CC */ b lbl_803952F4
lbl_8039512C:
/* 8039512C 0039208C 80 19 00 00 */ lwz r0, 0(r25)
/* 80395130 00392090 54 00 07 FF */ clrlwi. r0, r0, 0x1f
/* 80395134 00392094 41 82 00 18 */ beq lbl_8039514C
/* 80395138 00392098 80 19 00 04 */ lwz r0, 4(r25)
/* 8039513C 0039209C 90 1B 01 1C */ stw r0, 0x11c(r27)
/* 80395140 003920A0 80 19 00 08 */ lwz r0, 8(r25)
/* 80395144 003920A4 90 1B 01 20 */ stw r0, 0x120(r27)
/* 80395148 003920A8 48 00 00 10 */ b lbl_80395158
lbl_8039514C:
/* 8039514C 003920AC 38 00 FF FF */ li r0, -1
/* 80395150 003920B0 90 1B 01 1C */ stw r0, 0x11c(r27)
/* 80395154 003920B4 90 1B 01 20 */ stw r0, 0x120(r27)
lbl_80395158:
/* 80395158 003920B8 80 19 00 00 */ lwz r0, 0(r25)
/* 8039515C 003920BC 54 00 07 BD */ rlwinm. r0, r0, 0, 0x1e, 0x1e
/* 80395160 003920C0 41 82 00 94 */ beq lbl_803951F4
/* 80395164 003920C4 38 00 00 00 */ li r0, 0
/* 80395168 003920C8 2C 00 00 10 */ cmpwi r0, 0x10
/* 8039516C 003920CC 40 80 00 D8 */ bge lbl_80395244
/* 80395170 003920D0 A0 19 00 0C */ lhz r0, 0xc(r25)
/* 80395174 003920D4 B0 1B 15 1A */ sth r0, 0x151a(r27)
/* 80395178 003920D8 A0 19 00 0C */ lhz r0, 0xc(r25)
/* 8039517C 003920DC B0 1B 15 52 */ sth r0, 0x1552(r27)
/* 80395180 003920E0 A0 19 00 0C */ lhz r0, 0xc(r25)
/* 80395184 003920E4 B0 1B 15 8A */ sth r0, 0x158a(r27)
/* 80395188 003920E8 A0 19 00 0C */ lhz r0, 0xc(r25)
/* 8039518C 003920EC B0 1B 15 C2 */ sth r0, 0x15c2(r27)
/* 80395190 003920F0 A0 19 00 0C */ lhz r0, 0xc(r25)
/* 80395194 003920F4 B0 1B 15 FA */ sth r0, 0x15fa(r27)
/* 80395198 003920F8 A0 19 00 0C */ lhz r0, 0xc(r25)
/* 8039519C 003920FC B0 1B 16 32 */ sth r0, 0x1632(r27)
/* 803951A0 00392100 A0 19 00 0C */ lhz r0, 0xc(r25)
/* 803951A4 00392104 B0 1B 16 6A */ sth r0, 0x166a(r27)
/* 803951A8 00392108 A0 19 00 0C */ lhz r0, 0xc(r25)
/* 803951AC 0039210C B0 1B 16 A2 */ sth r0, 0x16a2(r27)
/* 803951B0 00392110 A0 19 00 0C */ lhz r0, 0xc(r25)
/* 803951B4 00392114 B0 1B 16 DA */ sth r0, 0x16da(r27)
/* 803951B8 00392118 A0 19 00 0C */ lhz r0, 0xc(r25)
/* 803951BC 0039211C B0 1B 17 12 */ sth r0, 0x1712(r27)
/* 803951C0 00392120 A0 19 00 0C */ lhz r0, 0xc(r25)
/* 803951C4 00392124 B0 1B 17 4A */ sth r0, 0x174a(r27)
/* 803951C8 00392128 A0 19 00 0C */ lhz r0, 0xc(r25)
/* 803951CC 0039212C B0 1B 17 82 */ sth r0, 0x1782(r27)
/* 803951D0 00392130 A0 19 00 0C */ lhz r0, 0xc(r25)
/* 803951D4 00392134 B0 1B 17 BA */ sth r0, 0x17ba(r27)
/* 803951D8 00392138 A0 19 00 0C */ lhz r0, 0xc(r25)
/* 803951DC 0039213C B0 1B 17 F2 */ sth r0, 0x17f2(r27)
/* 803951E0 00392140 A0 19 00 0C */ lhz r0, 0xc(r25)
/* 803951E4 00392144 B0 1B 18 2A */ sth r0, 0x182a(r27)
/* 803951E8 00392148 A0 19 00 0C */ lhz r0, 0xc(r25)
/* 803951EC 0039214C B0 1B 18 62 */ sth r0, 0x1862(r27)
/* 803951F0 00392150 48 00 00 54 */ b lbl_80395244
lbl_803951F4:
/* 803951F4 00392154 38 00 00 00 */ li r0, 0
/* 803951F8 00392158 2C 00 00 10 */ cmpwi r0, 0x10
/* 803951FC 0039215C 40 80 00 48 */ bge lbl_80395244
/* 80395200 00392160 38 00 01 00 */ li r0, 0x100
/* 80395204 00392164 B0 1B 15 1A */ sth r0, 0x151a(r27)
/* 80395208 00392168 B0 1B 15 52 */ sth r0, 0x1552(r27)
/* 8039520C 0039216C B0 1B 15 8A */ sth r0, 0x158a(r27)
/* 80395210 00392170 B0 1B 15 C2 */ sth r0, 0x15c2(r27)
/* 80395214 00392174 B0 1B 15 FA */ sth r0, 0x15fa(r27)
/* 80395218 00392178 B0 1B 16 32 */ sth r0, 0x1632(r27)
/* 8039521C 0039217C B0 1B 16 6A */ sth r0, 0x166a(r27)
/* 80395220 00392180 B0 1B 16 A2 */ sth r0, 0x16a2(r27)
/* 80395224 00392184 B0 1B 16 DA */ sth r0, 0x16da(r27)
/* 80395228 00392188 B0 1B 17 12 */ sth r0, 0x1712(r27)
/* 8039522C 0039218C B0 1B 17 4A */ sth r0, 0x174a(r27)
/* 80395230 00392190 B0 1B 17 82 */ sth r0, 0x1782(r27)
/* 80395234 00392194 B0 1B 17 BA */ sth r0, 0x17ba(r27)
/* 80395238 00392198 B0 1B 17 F2 */ sth r0, 0x17f2(r27)
/* 8039523C 0039219C B0 1B 18 2A */ sth r0, 0x182a(r27)
/* 80395240 003921A0 B0 1B 18 62 */ sth r0, 0x1862(r27)
lbl_80395244:
/* 80395244 003921A4 80 19 00 00 */ lwz r0, 0(r25)
/* 80395248 003921A8 54 00 07 39 */ rlwinm. r0, r0, 0, 0x1c, 0x1c
/* 8039524C 003921AC 41 82 00 50 */ beq lbl_8039529C
/* 80395250 003921B0 3A A0 00 00 */ li r21, 0
/* 80395254 003921B4 7E B8 AB 78 */ mr r24, r21
/* 80395258 003921B8 48 00 00 38 */ b lbl_80395290
lbl_8039525C:
/* 8039525C 003921BC 80 79 00 14 */ lwz r3, 0x14(r25)
/* 80395260 003921C0 38 18 00 01 */ addi r0, r24, 1
/* 80395264 003921C4 38 80 00 00 */ li r4, 0
/* 80395268 003921C8 7C A3 C2 14 */ add r5, r3, r24
/* 8039526C 003921CC 88 65 00 00 */ lbz r3, 0(r5)
/* 80395270 003921D0 88 A5 00 01 */ lbz r5, 1(r5)
/* 80395274 003921D4 38 63 03 24 */ addi r3, r3, 0x324
/* 80395278 003921D8 7C BB 19 AE */ stbx r5, r27, r3
/* 8039527C 003921DC 80 79 00 14 */ lwz r3, 0x14(r25)
/* 80395280 003921E0 7C 63 00 AE */ lbzx r3, r3, r0
/* 80395284 003921E4 48 00 66 E9 */ bl synthSetMusicVolumeType
/* 80395288 003921E8 3B 18 00 02 */ addi r24, r24, 2
/* 8039528C 003921EC 3A B5 00 01 */ addi r21, r21, 1
lbl_80395290:
/* 80395290 003921F0 88 19 00 12 */ lbz r0, 0x12(r25)
/* 80395294 003921F4 7C 15 00 00 */ cmpw r21, r0
/* 80395298 003921F8 41 80 FF C4 */ blt lbl_8039525C
lbl_8039529C:
/* 8039529C 003921FC 80 19 00 00 */ lwz r0, 0(r25)
/* 803952A0 00392200 54 00 07 7B */ rlwinm. r0, r0, 0, 0x1d, 0x1d
/* 803952A4 00392204 41 82 00 50 */ beq lbl_803952F4
/* 803952A8 00392208 88 79 00 10 */ lbz r3, 0x10(r25)
/* 803952AC 0039220C 38 C0 00 00 */ li r6, 0
/* 803952B0 00392210 A0 99 00 0E */ lhz r4, 0xe(r25)
/* 803952B4 00392214 38 E0 FF FF */ li r7, -1
/* 803952B8 00392218 88 BB 0E B0 */ lbz r5, 0xeb0(r27)
/* 803952BC 0039221C 48 00 61 2D */ bl synthVolume
/* 803952C0 00392220 3A A0 00 00 */ li r21, 0
/* 803952C4 00392224 48 00 00 24 */ b lbl_803952E8
lbl_803952C8:
/* 803952C8 00392228 80 B9 00 1C */ lwz r5, 0x1c(r25)
/* 803952CC 0039222C 38 C0 00 00 */ li r6, 0
/* 803952D0 00392230 88 79 00 10 */ lbz r3, 0x10(r25)
/* 803952D4 00392234 38 E0 FF FF */ li r7, -1
/* 803952D8 00392238 A0 99 00 0E */ lhz r4, 0xe(r25)
/* 803952DC 0039223C 7C A5 A8 AE */ lbzx r5, r5, r21
/* 803952E0 00392240 48 00 61 09 */ bl synthVolume
/* 803952E4 00392244 3A B5 00 01 */ addi r21, r21, 1
lbl_803952E8:
/* 803952E8 00392248 88 19 00 18 */ lbz r0, 0x18(r25)
/* 803952EC 0039224C 7C 15 00 00 */ cmpw r21, r0
/* 803952F0 00392250 41 80 FF D8 */ blt lbl_803952C8
lbl_803952F4:
/* 803952F4 00392254 80 1C 00 10 */ lwz r0, 0x10(r28)
/* 803952F8 00392258 54 00 00 01 */ rlwinm. r0, r0, 0, 0, 0
/* 803952FC 0039225C 41 82 00 14 */ beq lbl_80395310
/* 80395300 00392260 80 1C 00 54 */ lwz r0, 0x54(r28)
/* 80395304 00392264 7C 00 E2 14 */ add r0, r0, r28
/* 80395308 00392268 90 1B 14 E4 */ stw r0, 0x14e4(r27)
/* 8039530C 0039226C 48 00 00 0C */ b lbl_80395318
lbl_80395310:
/* 80395310 00392270 38 00 00 00 */ li r0, 0
/* 80395314 00392274 90 1B 14 E4 */ stw r0, 0x14e4(r27)
lbl_80395318:
/* 80395318 00392278 80 7C 00 10 */ lwz r3, 0x10(r28)
/* 8039531C 0039227C 54 60 00 43 */ rlwinm. r0, r3, 0, 1, 1
/* 80395320 00392280 54 74 01 3E */ clrlwi r20, r3, 4
/* 80395324 00392284 40 82 00 08 */ bne lbl_8039532C
/* 80395328 00392288 56 94 50 2A */ slwi r20, r20, 0xa
lbl_8039532C:
/* 8039532C 0039228C 3A A0 00 00 */ li r21, 0
/* 80395330 00392290 7F 77 DB 78 */ mr r23, r27
/* 80395334 00392294 7E B8 AB 78 */ mr r24, r21
/* 80395338 00392298 56 96 B2 BE */ srwi r22, r20, 0xa
/* 8039533C 0039229C 7E BF AB 78 */ mr r31, r21
/* 80395340 003922A0 7E BE AB 78 */ mr r30, r21
lbl_80395344:
/* 80395344 003922A4 92 97 14 F0 */ stw r20, 0x14f0(r23)
/* 80395348 003922A8 7E C3 B3 78 */ mr r3, r22
/* 8039534C 003922AC 7F 44 D3 78 */ mr r4, r26
/* 80395350 003922B0 56 A5 06 3E */ clrlwi r5, r21, 0x18
/* 80395354 003922B4 48 00 39 4D */ bl synthSetBpm
/* 80395358 003922B8 80 1C 00 0C */ lwz r0, 0xc(r28)
/* 8039535C 003922BC 28 00 00 00 */ cmplwi r0, 0
/* 80395360 003922C0 41 82 00 18 */ beq lbl_80395378
/* 80395364 003922C4 7C 00 E2 14 */ add r0, r0, r28
/* 80395368 003922C8 90 17 14 E8 */ stw r0, 0x14e8(r23)
/* 8039536C 003922CC 80 17 14 E8 */ lwz r0, 0x14e8(r23)
/* 80395370 003922D0 90 17 14 EC */ stw r0, 0x14ec(r23)
/* 80395374 003922D4 48 00 00 08 */ b lbl_8039537C
lbl_80395378:
/* 80395378 003922D8 93 17 14 E8 */ stw r24, 0x14e8(r23)
lbl_8039537C:
/* 8039537C 003922DC 9B F7 15 1E */ stb r31, 0x151e(r23)
/* 80395380 003922E0 3A B5 00 01 */ addi r21, r21, 1
/* 80395384 003922E4 2C 15 00 10 */ cmpwi r21, 0x10
/* 80395388 003922E8 B3 D7 15 1C */ sth r30, 0x151c(r23)
/* 8039538C 003922EC 3A F7 00 38 */ addi r23, r23, 0x38
/* 80395390 003922F0 41 80 FF B4 */ blt lbl_80395344
/* 80395394 003922F4 80 BC 00 00 */ lwz r5, 0(r28)
2022-04-08 05:17:01 +00:00
/* 80395398 003922F8 3C 60 80 55 */ lis r3, synthTrackVolume@ha
2022-04-02 09:50:35 +00:00
/* 8039539C 003922FC 39 40 00 00 */ li r10, 0
/* 803953A0 00392300 38 00 00 10 */ li r0, 0x10
2022-04-08 05:17:01 +00:00
/* 803953A4 00392304 38 C3 08 64 */ addi r6, r3, synthTrackVolume@l
2022-04-02 09:50:35 +00:00
/* 803953A8 00392308 7D 05 E2 14 */ add r8, r5, r28
/* 803953AC 0039230C 7F 67 DB 78 */ mr r7, r27
/* 803953B0 00392310 7F 69 DB 78 */ mr r9, r27
/* 803953B4 00392314 7D 44 53 78 */ mr r4, r10
/* 803953B8 00392318 7D 43 53 78 */ mr r3, r10
/* 803953BC 0039231C 38 A0 00 7F */ li r5, 0x7f
/* 803953C0 00392320 7C 09 03 A6 */ mtctr r0
lbl_803953C4:
/* 803953C4 00392324 98 A6 00 00 */ stb r5, 0(r6)
/* 803953C8 00392328 90 87 03 6C */ stw r4, 0x36c(r7)
/* 803953CC 0039232C 80 08 00 00 */ lwz r0, 0(r8)
/* 803953D0 00392330 28 00 00 00 */ cmplwi r0, 0
/* 803953D4 00392334 41 82 00 14 */ beq lbl_803953E8
/* 803953D8 00392338 7C 1C 02 14 */ add r0, r28, r0
/* 803953DC 0039233C 90 09 01 24 */ stw r0, 0x124(r9)
/* 803953E0 00392340 90 09 01 28 */ stw r0, 0x128(r9)
/* 803953E4 00392344 48 00 00 0C */ b lbl_803953F0
lbl_803953E8:
/* 803953E8 00392348 90 69 01 24 */ stw r3, 0x124(r9)
/* 803953EC 0039234C 90 69 01 28 */ stw r3, 0x128(r9)
lbl_803953F0:
/* 803953F0 00392350 9C A6 00 01 */ stbu r5, 1(r6)
/* 803953F4 00392354 90 87 03 98 */ stw r4, 0x398(r7)
/* 803953F8 00392358 80 08 00 04 */ lwz r0, 4(r8)
/* 803953FC 0039235C 28 00 00 00 */ cmplwi r0, 0
/* 80395400 00392360 41 82 00 14 */ beq lbl_80395414
/* 80395404 00392364 7C 1C 02 14 */ add r0, r28, r0
/* 80395408 00392368 90 09 01 2C */ stw r0, 0x12c(r9)
/* 8039540C 0039236C 90 09 01 30 */ stw r0, 0x130(r9)
/* 80395410 00392370 48 00 00 0C */ b lbl_8039541C
lbl_80395414:
/* 80395414 00392374 90 69 01 2C */ stw r3, 0x12c(r9)
/* 80395418 00392378 90 69 01 30 */ stw r3, 0x130(r9)
lbl_8039541C:
/* 8039541C 0039237C 9C A6 00 01 */ stbu r5, 1(r6)
/* 80395420 00392380 90 87 03 C4 */ stw r4, 0x3c4(r7)
/* 80395424 00392384 80 08 00 08 */ lwz r0, 8(r8)
/* 80395428 00392388 28 00 00 00 */ cmplwi r0, 0
/* 8039542C 0039238C 41 82 00 14 */ beq lbl_80395440
/* 80395430 00392390 7C 1C 02 14 */ add r0, r28, r0
/* 80395434 00392394 90 09 01 34 */ stw r0, 0x134(r9)
/* 80395438 00392398 90 09 01 38 */ stw r0, 0x138(r9)
/* 8039543C 0039239C 48 00 00 0C */ b lbl_80395448
lbl_80395440:
/* 80395440 003923A0 90 69 01 34 */ stw r3, 0x134(r9)
/* 80395444 003923A4 90 69 01 38 */ stw r3, 0x138(r9)
lbl_80395448:
/* 80395448 003923A8 9C A6 00 01 */ stbu r5, 1(r6)
/* 8039544C 003923AC 90 87 03 F0 */ stw r4, 0x3f0(r7)
/* 80395450 003923B0 80 08 00 0C */ lwz r0, 0xc(r8)
/* 80395454 003923B4 28 00 00 00 */ cmplwi r0, 0
/* 80395458 003923B8 41 82 00 14 */ beq lbl_8039546C
/* 8039545C 003923BC 7C 1C 02 14 */ add r0, r28, r0
/* 80395460 003923C0 90 09 01 3C */ stw r0, 0x13c(r9)
/* 80395464 003923C4 90 09 01 40 */ stw r0, 0x140(r9)
/* 80395468 003923C8 48 00 00 0C */ b lbl_80395474
lbl_8039546C:
/* 8039546C 003923CC 90 69 01 3C */ stw r3, 0x13c(r9)
/* 80395470 003923D0 90 69 01 40 */ stw r3, 0x140(r9)
lbl_80395474:
/* 80395474 003923D4 38 C6 00 01 */ addi r6, r6, 1
/* 80395478 003923D8 38 E7 00 B0 */ addi r7, r7, 0xb0
/* 8039547C 003923DC 39 08 00 10 */ addi r8, r8, 0x10
/* 80395480 003923E0 39 29 00 20 */ addi r9, r9, 0x20
/* 80395484 003923E4 39 4A 00 03 */ addi r10, r10, 3
/* 80395488 003923E8 42 00 FF 3C */ bdnz lbl_803953C4
/* 8039548C 003923EC 3A C0 00 00 */ li r22, 0
/* 80395490 003923F0 92 DB 0E 64 */ stw r22, 0xe64(r27)
/* 80395494 003923F4 92 DB 0E 68 */ stw r22, 0xe68(r27)
/* 80395498 003923F8 92 DB 0E 6C */ stw r22, 0xe6c(r27)
lbl_8039549C:
/* 8039549C 003923FC 7F 44 D3 78 */ mr r4, r26
/* 803954A0 00392400 56 C3 06 3E */ clrlwi r3, r22, 0x18
/* 803954A4 00392404 38 A0 00 01 */ li r5, 1
/* 803954A8 00392408 48 01 C3 75 */ bl inpResetMidiCtrl
/* 803954AC 0039240C 3A D6 00 01 */ addi r22, r22, 1
/* 803954B0 00392410 2C 16 00 10 */ cmpwi r22, 0x10
/* 803954B4 00392414 41 80 FF E8 */ blt lbl_8039549C
/* 803954B8 00392418 38 00 00 00 */ li r0, 0
/* 803954BC 0039241C 2C 00 00 10 */ cmpwi r0, 0x10
/* 803954C0 00392420 40 80 00 4C */ bge lbl_8039550C
/* 803954C4 00392424 3C 60 00 01 */ lis r3, 0x0000FFFF@ha
/* 803954C8 00392428 38 03 FF FF */ addi r0, r3, 0x0000FFFF@l
/* 803954CC 0039242C B0 1B 0E 70 */ sth r0, 0xe70(r27)
/* 803954D0 00392430 B0 1B 0E 74 */ sth r0, 0xe74(r27)
/* 803954D4 00392434 B0 1B 0E 78 */ sth r0, 0xe78(r27)
/* 803954D8 00392438 B0 1B 0E 7C */ sth r0, 0xe7c(r27)
/* 803954DC 0039243C B0 1B 0E 80 */ sth r0, 0xe80(r27)
/* 803954E0 00392440 B0 1B 0E 84 */ sth r0, 0xe84(r27)
/* 803954E4 00392444 B0 1B 0E 88 */ sth r0, 0xe88(r27)
/* 803954E8 00392448 B0 1B 0E 8C */ sth r0, 0xe8c(r27)
/* 803954EC 0039244C B0 1B 0E 90 */ sth r0, 0xe90(r27)
/* 803954F0 00392450 B0 1B 0E 94 */ sth r0, 0xe94(r27)
/* 803954F4 00392454 B0 1B 0E 98 */ sth r0, 0xe98(r27)
/* 803954F8 00392458 B0 1B 0E 9C */ sth r0, 0xe9c(r27)
/* 803954FC 0039245C B0 1B 0E A0 */ sth r0, 0xea0(r27)
/* 80395500 00392460 B0 1B 0E A4 */ sth r0, 0xea4(r27)
/* 80395504 00392464 B0 1B 0E A8 */ sth r0, 0xea8(r27)
/* 80395508 00392468 B0 1B 0E AC */ sth r0, 0xeac(r27)
lbl_8039550C:
/* 8039550C 0039246C 3A C0 00 00 */ li r22, 0
lbl_80395510:
/* 80395510 00392470 7F 44 D3 78 */ mr r4, r26
/* 80395514 00392474 56 C3 06 3E */ clrlwi r3, r22, 0x18
/* 80395518 00392478 48 01 C6 ED */ bl inpResetChannelDefaults
2022-04-02 09:50:35 +00:00
/* 8039551C 0039247C 3A D6 00 01 */ addi r22, r22, 1
/* 80395520 00392480 2C 16 00 10 */ cmpwi r22, 0x10
/* 80395524 00392484 41 80 FF EC */ blt lbl_80395510
/* 80395528 00392488 28 1D 00 00 */ cmplwi r29, 0
/* 8039552C 0039248C 41 82 01 30 */ beq lbl_8039565C
/* 80395530 00392490 3C 80 00 01 */ lis r4, 0x0000FFFF@ha
2022-04-08 05:17:01 +00:00
/* 80395534 00392494 3C 60 80 55 */ lis r3, seqMIDIPriority@ha
2022-04-02 09:50:35 +00:00
/* 80395538 00392498 3B 80 00 00 */ li r28, 0
/* 8039553C 0039249C 3B C4 FF FF */ addi r30, r4, 0x0000FFFF@l
2022-04-08 05:17:01 +00:00
/* 80395540 003924A0 3B E3 FD 10 */ addi r31, r3, seqMIDIPriority@l
2022-04-02 09:50:35 +00:00
lbl_80395544:
/* 80395544 003924A4 80 0D AE 30 */ lwz r0, curSeqId@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80395548 003924A8 57 84 06 3E */ clrlwi r4, r28, 0x18
/* 8039554C 003924AC 88 BD 00 04 */ lbz r5, 4(r29)
/* 80395550 003924B0 28 04 00 09 */ cmplwi r4, 9
/* 80395554 003924B4 54 03 28 34 */ slwi r3, r0, 5
/* 80395558 003924B8 57 80 0D FC */ rlwinm r0, r28, 1, 0x17, 0x1e
/* 8039555C 003924BC 7C 7F 1A 14 */ add r3, r31, r3
/* 80395560 003924C0 7F C3 03 2E */ sthx r30, r3, r0
/* 80395564 003924C4 41 82 00 50 */ beq lbl_803955B4
/* 80395568 003924C8 38 05 00 14 */ addi r0, r5, 0x14
/* 8039556C 003924CC 7C 1B 00 AE */ lbzx r0, r27, r0
/* 80395570 003924D0 28 00 00 FF */ cmplwi r0, 0xff
/* 80395574 003924D4 41 82 00 88 */ beq lbl_803955FC
/* 80395578 003924D8 1C A0 00 06 */ mulli r5, r0, 6
/* 8039557C 003924DC 80 7B 00 10 */ lwz r3, 0x10(r27)
/* 80395580 003924E0 54 80 10 3A */ slwi r0, r4, 2
/* 80395584 003924E4 7C 83 2A 2E */ lhzx r4, r3, r5
/* 80395588 003924E8 7C DB 02 14 */ add r6, r27, r0
/* 8039558C 003924EC 38 65 00 02 */ addi r3, r5, 2
/* 80395590 003924F0 38 05 00 03 */ addi r0, r5, 3
/* 80395594 003924F4 B0 86 0E 70 */ sth r4, 0xe70(r6)
/* 80395598 003924F8 80 9B 00 10 */ lwz r4, 0x10(r27)
/* 8039559C 003924FC 7C 64 18 AE */ lbzx r3, r4, r3
/* 803955A0 00392500 98 66 0E 72 */ stb r3, 0xe72(r6)
/* 803955A4 00392504 80 7B 00 10 */ lwz r3, 0x10(r27)
/* 803955A8 00392508 7C 03 00 AE */ lbzx r0, r3, r0
/* 803955AC 0039250C 98 06 0E 73 */ stb r0, 0xe73(r6)
/* 803955B0 00392510 48 00 00 4C */ b lbl_803955FC
lbl_803955B4:
/* 803955B4 00392514 38 05 00 98 */ addi r0, r5, 0x98
/* 803955B8 00392518 7C 1B 00 AE */ lbzx r0, r27, r0
/* 803955BC 0039251C 28 00 00 FF */ cmplwi r0, 0xff
/* 803955C0 00392520 41 82 00 3C */ beq lbl_803955FC
/* 803955C4 00392524 1C A0 00 06 */ mulli r5, r0, 6
/* 803955C8 00392528 80 7B 00 94 */ lwz r3, 0x94(r27)
/* 803955CC 0039252C 54 80 10 3A */ slwi r0, r4, 2
/* 803955D0 00392530 7C 83 2A 2E */ lhzx r4, r3, r5
/* 803955D4 00392534 7C DB 02 14 */ add r6, r27, r0
/* 803955D8 00392538 38 65 00 02 */ addi r3, r5, 2
/* 803955DC 0039253C 38 05 00 03 */ addi r0, r5, 3
/* 803955E0 00392540 B0 86 0E 70 */ sth r4, 0xe70(r6)
/* 803955E4 00392544 80 9B 00 94 */ lwz r4, 0x94(r27)
/* 803955E8 00392548 7C 64 18 AE */ lbzx r3, r4, r3
/* 803955EC 0039254C 98 66 0E 72 */ stb r3, 0xe72(r6)
/* 803955F0 00392550 80 7B 00 94 */ lwz r3, 0x94(r27)
/* 803955F4 00392554 7C 03 00 AE */ lbzx r0, r3, r0
/* 803955F8 00392558 98 06 0E 73 */ stb r0, 0xe73(r6)
lbl_803955FC:
/* 803955FC 0039255C 88 DD 00 05 */ lbz r6, 5(r29)
/* 80395600 00392560 7F 45 D3 78 */ mr r5, r26
/* 80395604 00392564 57 84 06 3E */ clrlwi r4, r28, 0x18
/* 80395608 00392568 38 60 00 07 */ li r3, 7
2022-04-04 10:14:22 +00:00
/* 8039560C 0039256C 48 01 BA E5 */ bl inpSetMidiCtrl
2022-04-02 09:50:35 +00:00
/* 80395610 00392570 88 DD 00 06 */ lbz r6, 6(r29)
/* 80395614 00392574 7F 45 D3 78 */ mr r5, r26
/* 80395618 00392578 57 84 06 3E */ clrlwi r4, r28, 0x18
/* 8039561C 0039257C 38 60 00 0A */ li r3, 0xa
2022-04-04 10:14:22 +00:00
/* 80395620 00392580 48 01 BA D1 */ bl inpSetMidiCtrl
2022-04-02 09:50:35 +00:00
/* 80395624 00392584 88 DD 00 07 */ lbz r6, 7(r29)
/* 80395628 00392588 7F 45 D3 78 */ mr r5, r26
/* 8039562C 0039258C 57 84 06 3E */ clrlwi r4, r28, 0x18
/* 80395630 00392590 38 60 00 5B */ li r3, 0x5b
2022-04-04 10:14:22 +00:00
/* 80395634 00392594 48 01 BA BD */ bl inpSetMidiCtrl
2022-04-02 09:50:35 +00:00
/* 80395638 00392598 88 DD 00 08 */ lbz r6, 8(r29)
/* 8039563C 0039259C 7F 45 D3 78 */ mr r5, r26
/* 80395640 003925A0 57 84 06 3E */ clrlwi r4, r28, 0x18
/* 80395644 003925A4 38 60 00 5D */ li r3, 0x5d
2022-04-04 10:14:22 +00:00
/* 80395648 003925A8 48 01 BA A9 */ bl inpSetMidiCtrl
2022-04-02 09:50:35 +00:00
/* 8039564C 003925AC 3B 9C 00 01 */ addi r28, r28, 1
/* 80395650 003925B0 3B BD 00 05 */ addi r29, r29, 5
/* 80395654 003925B4 2C 1C 00 10 */ cmpwi r28, 0x10
/* 80395658 003925B8 41 80 FE EC */ blt lbl_80395544
lbl_8039565C:
/* 8039565C 003925BC 38 00 00 00 */ li r0, 0
/* 80395660 003925C0 2C 00 00 10 */ cmpwi r0, 0x10
/* 80395664 003925C4 40 80 00 5C */ bge lbl_803956C0
2022-04-08 05:17:01 +00:00
/* 80395668 003925C8 3C 80 80 55 */ lis r4, seqMIDIPriority@ha
2022-04-02 09:50:35 +00:00
/* 8039566C 003925CC 3C 60 00 01 */ lis r3, 0x0000FFFF@ha
/* 80395670 003925D0 57 45 28 34 */ slwi r5, r26, 5
2022-04-08 05:17:01 +00:00
/* 80395674 003925D4 38 84 FD 10 */ addi r4, r4, seqMIDIPriority@l
2022-04-02 09:50:35 +00:00
/* 80395678 003925D8 38 03 FF FF */ addi r0, r3, 0x0000FFFF@l
/* 8039567C 003925DC 7C 64 2A 14 */ add r3, r4, r5
/* 80395680 003925E0 B0 03 00 00 */ sth r0, 0(r3)
/* 80395684 003925E4 B0 03 00 02 */ sth r0, 2(r3)
/* 80395688 003925E8 B0 03 00 04 */ sth r0, 4(r3)
/* 8039568C 003925EC B0 03 00 06 */ sth r0, 6(r3)
/* 80395690 003925F0 B0 03 00 08 */ sth r0, 8(r3)
/* 80395694 003925F4 B0 03 00 0A */ sth r0, 0xa(r3)
/* 80395698 003925F8 B0 03 00 0C */ sth r0, 0xc(r3)
/* 8039569C 003925FC B0 03 00 0E */ sth r0, 0xe(r3)
/* 803956A0 00392600 B0 03 00 10 */ sth r0, 0x10(r3)
/* 803956A4 00392604 B0 03 00 12 */ sth r0, 0x12(r3)
/* 803956A8 00392608 B0 03 00 14 */ sth r0, 0x14(r3)
/* 803956AC 0039260C B0 03 00 16 */ sth r0, 0x16(r3)
/* 803956B0 00392610 B0 03 00 18 */ sth r0, 0x18(r3)
/* 803956B4 00392614 B0 03 00 1A */ sth r0, 0x1a(r3)
/* 803956B8 00392618 B0 03 00 1C */ sth r0, 0x1c(r3)
/* 803956BC 0039261C B0 03 00 1E */ sth r0, 0x1e(r3)
lbl_803956C0:
/* 803956C0 00392620 38 00 00 00 */ li r0, 0
/* 803956C4 00392624 2C 00 00 10 */ cmpwi r0, 0x10
/* 803956C8 00392628 40 80 00 BC */ bge lbl_80395784
/* 803956CC 0039262C 38 00 00 02 */ li r0, 2
/* 803956D0 00392630 7F 63 DB 78 */ mr r3, r27
/* 803956D4 00392634 7C 09 03 A6 */ mtctr r0
lbl_803956D8:
/* 803956D8 00392638 38 00 00 00 */ li r0, 0
/* 803956DC 0039263C 90 03 15 0C */ stw r0, 0x150c(r3)
/* 803956E0 00392640 90 03 15 08 */ stw r0, 0x1508(r3)
/* 803956E4 00392644 90 03 15 14 */ stw r0, 0x1514(r3)
/* 803956E8 00392648 90 03 15 10 */ stw r0, 0x1510(r3)
/* 803956EC 0039264C 98 03 15 18 */ stb r0, 0x1518(r3)
/* 803956F0 00392650 90 03 15 44 */ stw r0, 0x1544(r3)
/* 803956F4 00392654 90 03 15 40 */ stw r0, 0x1540(r3)
/* 803956F8 00392658 90 03 15 4C */ stw r0, 0x154c(r3)
/* 803956FC 0039265C 90 03 15 48 */ stw r0, 0x1548(r3)
/* 80395700 00392660 98 03 15 50 */ stb r0, 0x1550(r3)
/* 80395704 00392664 90 03 15 7C */ stw r0, 0x157c(r3)
/* 80395708 00392668 90 03 15 78 */ stw r0, 0x1578(r3)
/* 8039570C 0039266C 90 03 15 84 */ stw r0, 0x1584(r3)
/* 80395710 00392670 90 03 15 80 */ stw r0, 0x1580(r3)
/* 80395714 00392674 98 03 15 88 */ stb r0, 0x1588(r3)
/* 80395718 00392678 90 03 15 B4 */ stw r0, 0x15b4(r3)
/* 8039571C 0039267C 90 03 15 B0 */ stw r0, 0x15b0(r3)
/* 80395720 00392680 90 03 15 BC */ stw r0, 0x15bc(r3)
/* 80395724 00392684 90 03 15 B8 */ stw r0, 0x15b8(r3)
/* 80395728 00392688 98 03 15 C0 */ stb r0, 0x15c0(r3)
/* 8039572C 0039268C 90 03 15 EC */ stw r0, 0x15ec(r3)
/* 80395730 00392690 90 03 15 E8 */ stw r0, 0x15e8(r3)
/* 80395734 00392694 90 03 15 F4 */ stw r0, 0x15f4(r3)
/* 80395738 00392698 90 03 15 F0 */ stw r0, 0x15f0(r3)
/* 8039573C 0039269C 98 03 15 F8 */ stb r0, 0x15f8(r3)
/* 80395740 003926A0 90 03 16 24 */ stw r0, 0x1624(r3)
/* 80395744 003926A4 90 03 16 20 */ stw r0, 0x1620(r3)
/* 80395748 003926A8 90 03 16 2C */ stw r0, 0x162c(r3)
/* 8039574C 003926AC 90 03 16 28 */ stw r0, 0x1628(r3)
/* 80395750 003926B0 98 03 16 30 */ stb r0, 0x1630(r3)
/* 80395754 003926B4 90 03 16 5C */ stw r0, 0x165c(r3)
/* 80395758 003926B8 90 03 16 58 */ stw r0, 0x1658(r3)
/* 8039575C 003926BC 90 03 16 64 */ stw r0, 0x1664(r3)
/* 80395760 003926C0 90 03 16 60 */ stw r0, 0x1660(r3)
/* 80395764 003926C4 98 03 16 68 */ stb r0, 0x1668(r3)
/* 80395768 003926C8 90 03 16 94 */ stw r0, 0x1694(r3)
/* 8039576C 003926CC 90 03 16 90 */ stw r0, 0x1690(r3)
/* 80395770 003926D0 90 03 16 9C */ stw r0, 0x169c(r3)
/* 80395774 003926D4 90 03 16 98 */ stw r0, 0x1698(r3)
/* 80395778 003926D8 98 03 16 A0 */ stb r0, 0x16a0(r3)
/* 8039577C 003926DC 38 63 01 C0 */ addi r3, r3, 0x1c0
/* 80395780 003926E0 42 00 FF 58 */ bdnz lbl_803956D8
lbl_80395784:
/* 80395784 003926E4 38 00 00 00 */ li r0, 0
/* 80395788 003926E8 28 19 00 00 */ cmplwi r25, 0
/* 8039578C 003926EC 98 1B 0E E2 */ stb r0, 0xee2(r27)
/* 80395790 003926F0 41 82 00 18 */ beq lbl_803957A8
/* 80395794 003926F4 80 19 00 00 */ lwz r0, 0(r25)
/* 80395798 003926F8 54 00 06 F7 */ rlwinm. r0, r0, 0, 0x1b, 0x1b
/* 8039579C 003926FC 41 82 00 0C */ beq lbl_803957A8
/* 803957A0 00392700 7F 63 DB 78 */ mr r3, r27
/* 803957A4 00392704 48 00 00 B9 */ bl StartPause
lbl_803957A8:
/* 803957A8 00392708 82 AD AE 38 */ lwz r21, cseq@sda21(r13)
/* 803957AC 0039270C 93 6D AE 38 */ stw r27, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803957B0 00392710 48 00 23 45 */ bl InitTrackEvents
/* 803957B4 00392714 92 AD AE 38 */ stw r21, cseq@sda21(r13)
/* 803957B8 00392718 80 AD AE 44 */ lwz r5, seqActiveRoot@sda21(r13)
/* 803957BC 0039271C 80 CD AE 40 */ lwz r6, seqPausedRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
lbl_803957C0:
/* 803957C0 00392720 80 6D AE 28 */ lwz r3, seq_next_id@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803957C4 00392724 7C A4 2B 78 */ mr r4, r5
/* 803957C8 00392728 38 03 00 01 */ addi r0, r3, 1
/* 803957CC 0039272C 90 0D AE 28 */ stw r0, seq_next_id@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803957D0 00392730 54 00 00 7E */ clrlwi r0, r0, 1
/* 803957D4 00392734 90 0D AE 28 */ stw r0, seq_next_id@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803957D8 00392738 48 00 00 1C */ b lbl_803957F4
lbl_803957DC:
/* 803957DC 0039273C 80 04 00 0C */ lwz r0, 0xc(r4)
/* 803957E0 00392740 7C 00 18 40 */ cmplw r0, r3
/* 803957E4 00392744 40 82 00 0C */ bne lbl_803957F0
/* 803957E8 00392748 38 60 FF FF */ li r3, -1
/* 803957EC 0039274C 48 00 00 10 */ b lbl_803957FC
lbl_803957F0:
/* 803957F0 00392750 80 84 00 00 */ lwz r4, 0(r4)
lbl_803957F4:
/* 803957F4 00392754 28 04 00 00 */ cmplwi r4, 0
/* 803957F8 00392758 40 82 FF E4 */ bne lbl_803957DC
lbl_803957FC:
/* 803957FC 0039275C 7C C4 33 78 */ mr r4, r6
/* 80395800 00392760 48 00 00 1C */ b lbl_8039581C
lbl_80395804:
/* 80395804 00392764 80 04 00 0C */ lwz r0, 0xc(r4)
/* 80395808 00392768 7C 00 18 40 */ cmplw r0, r3
/* 8039580C 0039276C 40 82 00 0C */ bne lbl_80395818
/* 80395810 00392770 38 60 FF FF */ li r3, -1
/* 80395814 00392774 48 00 00 10 */ b lbl_80395824
lbl_80395818:
/* 80395818 00392778 80 84 00 00 */ lwz r4, 0(r4)
lbl_8039581C:
/* 8039581C 0039277C 28 04 00 00 */ cmplwi r4, 0
/* 80395820 00392780 40 82 FF E4 */ bne lbl_80395804
lbl_80395824:
/* 80395824 00392784 3C 03 00 01 */ addis r0, r3, 1
/* 80395828 00392788 28 00 FF FF */ cmplwi r0, 0xffff
/* 8039582C 0039278C 41 82 FF 94 */ beq lbl_803957C0
/* 80395830 00392790 1C 1A 18 68 */ mulli r0, r26, 0x1868
2022-04-08 05:17:01 +00:00
/* 80395834 00392794 3C 80 80 54 */ lis r4, seqInstance@ha
/* 80395838 00392798 38 84 39 D0 */ addi r4, r4, seqInstance@l
2022-04-02 09:50:35 +00:00
/* 8039583C 0039279C 7C 84 02 14 */ add r4, r4, r0
/* 80395840 003927A0 90 64 00 0C */ stw r3, 0xc(r4)
lbl_80395844:
/* 80395844 003927A4 39 61 00 40 */ addi r11, r1, 0x40
/* 80395848 003927A8 4B FF 42 65 */ bl _restgpr_20
/* 8039584C 003927AC 80 01 00 44 */ lwz r0, 0x44(r1)
/* 80395850 003927B0 7C 08 03 A6 */ mtlr r0
/* 80395854 003927B4 38 21 00 40 */ addi r1, r1, 0x40
2022-04-08 05:17:01 +00:00
/* 80395858 003927B8 4E 80 00 20 */ blr
2022-04-02 09:50:35 +00:00
.global StartPause
StartPause:
/* 8039585C 003927BC 80 83 00 04 */ lwz r4, 4(r3)
/* 80395860 003927C0 28 04 00 00 */ cmplwi r4, 0
/* 80395864 003927C4 41 82 00 10 */ beq lbl_80395874
/* 80395868 003927C8 80 03 00 00 */ lwz r0, 0(r3)
/* 8039586C 003927CC 90 04 00 00 */ stw r0, 0(r4)
/* 80395870 003927D0 48 00 00 0C */ b lbl_8039587C
lbl_80395874:
/* 80395874 003927D4 80 03 00 00 */ lwz r0, 0(r3)
/* 80395878 003927D8 90 0D AE 44 */ stw r0, seqActiveRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
lbl_8039587C:
/* 8039587C 003927DC 80 83 00 00 */ lwz r4, 0(r3)
/* 80395880 003927E0 28 04 00 00 */ cmplwi r4, 0
/* 80395884 003927E4 41 82 00 0C */ beq lbl_80395890
/* 80395888 003927E8 80 03 00 04 */ lwz r0, 4(r3)
/* 8039588C 003927EC 90 04 00 04 */ stw r0, 4(r4)
lbl_80395890:
/* 80395890 003927F0 80 0D AE 40 */ lwz r0, seqPausedRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80395894 003927F4 28 00 00 00 */ cmplwi r0, 0
/* 80395898 003927F8 90 03 00 00 */ stw r0, 0(r3)
/* 8039589C 003927FC 41 82 00 0C */ beq lbl_803958A8
/* 803958A0 00392800 80 8D AE 40 */ lwz r4, seqPausedRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803958A4 00392804 90 64 00 04 */ stw r3, 4(r4)
lbl_803958A8:
/* 803958A8 00392808 38 80 00 00 */ li r4, 0
/* 803958AC 0039280C 38 00 00 02 */ li r0, 2
/* 803958B0 00392810 90 83 00 04 */ stw r4, 4(r3)
/* 803958B4 00392814 90 6D AE 40 */ stw r3, seqPausedRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803958B8 00392818 98 03 00 08 */ stb r0, 8(r3)
2022-04-08 05:17:01 +00:00
/* 803958BC 0039281C 4E 80 00 20 */ blr
2022-04-02 09:50:35 +00:00
.global seqPause
seqPause:
/* 803958C0 00392820 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 803958C4 00392824 7C 08 02 A6 */ mflr r0
/* 803958C8 00392828 54 65 00 7E */ clrlwi r5, r3, 1
/* 803958CC 0039282C 90 01 00 24 */ stw r0, 0x24(r1)
/* 803958D0 00392830 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 803958D4 00392834 93 C1 00 18 */ stw r30, 0x18(r1)
/* 803958D8 00392838 93 A1 00 14 */ stw r29, 0x14(r1)
/* 803958DC 0039283C 93 81 00 10 */ stw r28, 0x10(r1)
/* 803958E0 00392840 80 8D AE 44 */ lwz r4, seqActiveRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803958E4 00392844 48 00 00 20 */ b lbl_80395904
lbl_803958E8:
/* 803958E8 00392848 80 04 00 0C */ lwz r0, 0xc(r4)
/* 803958EC 0039284C 7C 00 28 40 */ cmplw r0, r5
/* 803958F0 00392850 40 82 00 10 */ bne lbl_80395900
/* 803958F4 00392854 88 84 00 09 */ lbz r4, 9(r4)
/* 803958F8 00392858 50 64 00 00 */ rlwimi r4, r3, 0, 0, 0
/* 803958FC 0039285C 48 00 00 40 */ b lbl_8039593C
lbl_80395900:
/* 80395900 00392860 80 84 00 00 */ lwz r4, 0(r4)
lbl_80395904:
/* 80395904 00392864 28 04 00 00 */ cmplwi r4, 0
/* 80395908 00392868 40 82 FF E0 */ bne lbl_803958E8
/* 8039590C 0039286C 80 8D AE 40 */ lwz r4, seqPausedRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80395910 00392870 48 00 00 20 */ b lbl_80395930
lbl_80395914:
/* 80395914 00392874 80 04 00 0C */ lwz r0, 0xc(r4)
/* 80395918 00392878 7C 00 28 40 */ cmplw r0, r5
/* 8039591C 0039287C 40 82 00 10 */ bne lbl_8039592C
/* 80395920 00392880 88 84 00 09 */ lbz r4, 9(r4)
/* 80395924 00392884 50 64 00 00 */ rlwimi r4, r3, 0, 0, 0
/* 80395928 00392888 48 00 00 14 */ b lbl_8039593C
lbl_8039592C:
/* 8039592C 0039288C 80 84 00 00 */ lwz r4, 0(r4)
lbl_80395930:
/* 80395930 00392890 28 04 00 00 */ cmplwi r4, 0
/* 80395934 00392894 40 82 FF E0 */ bne lbl_80395914
/* 80395938 00392898 38 80 FF FF */ li r4, -1
lbl_8039593C:
/* 8039593C 0039289C 3C 04 00 01 */ addis r0, r4, 1
/* 80395940 003928A0 28 00 FF FF */ cmplwi r0, 0xffff
/* 80395944 003928A4 41 82 01 D8 */ beq lbl_80395B1C
/* 80395948 003928A8 54 80 00 01 */ rlwinm. r0, r4, 0, 0, 0
/* 8039594C 003928AC 40 82 01 A4 */ bne lbl_80395AF0
/* 80395950 003928B0 1C 84 18 68 */ mulli r4, r4, 0x1868
2022-04-08 05:17:01 +00:00
/* 80395954 003928B4 3C 60 80 54 */ lis r3, seqInstance@ha
/* 80395958 003928B8 38 03 39 D0 */ addi r0, r3, seqInstance@l
2022-04-02 09:50:35 +00:00
/* 8039595C 003928BC 7F E0 22 14 */ add r31, r0, r4
/* 80395960 003928C0 88 1F 00 08 */ lbz r0, 8(r31)
/* 80395964 003928C4 28 00 00 01 */ cmplwi r0, 1
/* 80395968 003928C8 40 82 01 B4 */ bne lbl_80395B1C
/* 8039596C 003928CC 80 7F 00 04 */ lwz r3, 4(r31)
/* 80395970 003928D0 28 03 00 00 */ cmplwi r3, 0
/* 80395974 003928D4 41 82 00 10 */ beq lbl_80395984
/* 80395978 003928D8 80 1F 00 00 */ lwz r0, 0(r31)
/* 8039597C 003928DC 90 03 00 00 */ stw r0, 0(r3)
/* 80395980 003928E0 48 00 00 0C */ b lbl_8039598C
lbl_80395984:
/* 80395984 003928E4 80 1F 00 00 */ lwz r0, 0(r31)
/* 80395988 003928E8 90 0D AE 44 */ stw r0, seqActiveRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
lbl_8039598C:
/* 8039598C 003928EC 80 7F 00 00 */ lwz r3, 0(r31)
/* 80395990 003928F0 28 03 00 00 */ cmplwi r3, 0
/* 80395994 003928F4 41 82 00 0C */ beq lbl_803959A0
/* 80395998 003928F8 80 1F 00 04 */ lwz r0, 4(r31)
/* 8039599C 003928FC 90 03 00 04 */ stw r0, 4(r3)
lbl_803959A0:
/* 803959A0 00392900 80 6D AE 40 */ lwz r3, seqPausedRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803959A4 00392904 28 03 00 00 */ cmplwi r3, 0
/* 803959A8 00392908 90 7F 00 00 */ stw r3, 0(r31)
/* 803959AC 0039290C 41 82 00 08 */ beq lbl_803959B4
/* 803959B0 00392910 93 E3 00 04 */ stw r31, 4(r3)
lbl_803959B4:
/* 803959B4 00392914 3B C0 00 00 */ li r30, 0
/* 803959B8 00392918 38 00 00 02 */ li r0, 2
/* 803959BC 0039291C 93 DF 00 04 */ stw r30, 4(r31)
/* 803959C0 00392920 7F FC FB 78 */ mr r28, r31
/* 803959C4 00392924 93 ED AE 40 */ stw r31, seqPausedRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803959C8 00392928 98 1F 00 08 */ stb r0, 8(r31)
lbl_803959CC:
/* 803959CC 0039292C 83 BC 0E 64 */ lwz r29, 0xe64(r28)
/* 803959D0 00392930 48 00 00 10 */ b lbl_803959E0
lbl_803959D4:
/* 803959D4 00392934 80 7D 00 08 */ lwz r3, 8(r29)
/* 803959D8 00392938 48 01 32 79 */ bl voiceKillSound
/* 803959DC 0039293C 83 BD 00 00 */ lwz r29, 0(r29)
lbl_803959E0:
/* 803959E0 00392940 28 1D 00 00 */ cmplwi r29, 0
/* 803959E4 00392944 40 82 FF F0 */ bne lbl_803959D4
/* 803959E8 00392948 3B DE 00 01 */ addi r30, r30, 1
/* 803959EC 0039294C 3B 9C 00 04 */ addi r28, r28, 4
/* 803959F0 00392950 28 1E 00 02 */ cmplwi r30, 2
/* 803959F4 00392954 41 80 FF D8 */ blt lbl_803959CC
/* 803959F8 00392958 83 9F 0E 6C */ lwz r28, 0xe6c(r31)
/* 803959FC 0039295C 48 00 00 10 */ b lbl_80395A0C
lbl_80395A00:
/* 80395A00 00392960 80 7C 00 08 */ lwz r3, 8(r28)
/* 80395A04 00392964 48 01 32 4D */ bl voiceKillSound
/* 80395A08 00392968 83 9C 00 00 */ lwz r28, 0(r28)
lbl_80395A0C:
/* 80395A0C 0039296C 28 1C 00 00 */ cmplwi r28, 0
/* 80395A10 00392970 40 82 FF F0 */ bne lbl_80395A00
/* 80395A14 00392974 80 BF 0E 64 */ lwz r5, 0xe64(r31)
/* 80395A18 00392978 38 80 00 00 */ li r4, 0
/* 80395A1C 0039297C 28 05 00 00 */ cmplwi r5, 0
/* 80395A20 00392980 41 82 00 3C */ beq lbl_80395A5C
/* 80395A24 00392984 48 00 00 08 */ b lbl_80395A2C
lbl_80395A28:
/* 80395A28 00392988 7C 05 03 78 */ mr r5, r0
lbl_80395A2C:
/* 80395A2C 0039298C 80 05 00 00 */ lwz r0, 0(r5)
/* 80395A30 00392990 28 00 00 00 */ cmplwi r0, 0
/* 80395A34 00392994 40 82 FF F4 */ bne lbl_80395A28
/* 80395A38 00392998 80 0D AE 34 */ lwz r0, noteFree@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80395A3C 0039299C 28 00 00 00 */ cmplwi r0, 0
/* 80395A40 003929A0 41 82 00 10 */ beq lbl_80395A50
/* 80395A44 003929A4 90 05 00 00 */ stw r0, 0(r5)
/* 80395A48 003929A8 80 6D AE 34 */ lwz r3, noteFree@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80395A4C 003929AC 90 A3 00 04 */ stw r5, 4(r3)
lbl_80395A50:
/* 80395A50 003929B0 80 1F 0E 64 */ lwz r0, 0xe64(r31)
/* 80395A54 003929B4 90 0D AE 34 */ stw r0, noteFree@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80395A58 003929B8 90 9F 0E 64 */ stw r4, 0xe64(r31)
lbl_80395A5C:
/* 80395A5C 003929BC 38 DF 00 04 */ addi r6, r31, 4
/* 80395A60 003929C0 80 BF 0E 68 */ lwz r5, 0xe68(r31)
/* 80395A64 003929C4 28 05 00 00 */ cmplwi r5, 0
/* 80395A68 003929C8 41 82 00 3C */ beq lbl_80395AA4
/* 80395A6C 003929CC 48 00 00 08 */ b lbl_80395A74
lbl_80395A70:
/* 80395A70 003929D0 7C 05 03 78 */ mr r5, r0
lbl_80395A74:
/* 80395A74 003929D4 80 05 00 00 */ lwz r0, 0(r5)
/* 80395A78 003929D8 28 00 00 00 */ cmplwi r0, 0
/* 80395A7C 003929DC 40 82 FF F4 */ bne lbl_80395A70
/* 80395A80 003929E0 80 0D AE 34 */ lwz r0, noteFree@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80395A84 003929E4 28 00 00 00 */ cmplwi r0, 0
/* 80395A88 003929E8 41 82 00 10 */ beq lbl_80395A98
/* 80395A8C 003929EC 90 05 00 00 */ stw r0, 0(r5)
/* 80395A90 003929F0 80 6D AE 34 */ lwz r3, noteFree@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80395A94 003929F4 90 A3 00 04 */ stw r5, 4(r3)
lbl_80395A98:
/* 80395A98 003929F8 80 06 0E 64 */ lwz r0, 0xe64(r6)
/* 80395A9C 003929FC 90 0D AE 34 */ stw r0, noteFree@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80395AA0 00392A00 90 86 0E 64 */ stw r4, 0xe64(r6)
lbl_80395AA4:
/* 80395AA4 00392A04 80 9F 0E 6C */ lwz r4, 0xe6c(r31)
/* 80395AA8 00392A08 28 04 00 00 */ cmplwi r4, 0
/* 80395AAC 00392A0C 41 82 00 70 */ beq lbl_80395B1C
/* 80395AB0 00392A10 48 00 00 08 */ b lbl_80395AB8
lbl_80395AB4:
/* 80395AB4 00392A14 7C 04 03 78 */ mr r4, r0
lbl_80395AB8:
/* 80395AB8 00392A18 80 04 00 00 */ lwz r0, 0(r4)
/* 80395ABC 00392A1C 28 00 00 00 */ cmplwi r0, 0
/* 80395AC0 00392A20 40 82 FF F4 */ bne lbl_80395AB4
/* 80395AC4 00392A24 80 0D AE 34 */ lwz r0, noteFree@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80395AC8 00392A28 28 00 00 00 */ cmplwi r0, 0
/* 80395ACC 00392A2C 41 82 00 10 */ beq lbl_80395ADC
/* 80395AD0 00392A30 90 04 00 00 */ stw r0, 0(r4)
/* 80395AD4 00392A34 80 6D AE 34 */ lwz r3, noteFree@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80395AD8 00392A38 90 83 00 04 */ stw r4, 4(r3)
lbl_80395ADC:
/* 80395ADC 00392A3C 80 7F 0E 6C */ lwz r3, 0xe6c(r31)
/* 80395AE0 00392A40 38 00 00 00 */ li r0, 0
/* 80395AE4 00392A44 90 6D AE 34 */ stw r3, noteFree@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80395AE8 00392A48 90 1F 0E 6C */ stw r0, 0xe6c(r31)
/* 80395AEC 00392A4C 48 00 00 30 */ b lbl_80395B1C
lbl_80395AF0:
/* 80395AF0 00392A50 54 80 00 7E */ clrlwi r0, r4, 1
2022-04-08 05:17:01 +00:00
/* 80395AF4 00392A54 3C 60 80 54 */ lis r3, seqInstance@ha
2022-04-02 09:50:35 +00:00
/* 80395AF8 00392A58 1C 80 18 68 */ mulli r4, r0, 0x1868
2022-04-08 05:17:01 +00:00
/* 80395AFC 00392A5C 38 03 39 D0 */ addi r0, r3, seqInstance@l
2022-04-02 09:50:35 +00:00
/* 80395B00 00392A60 7C 60 22 14 */ add r3, r0, r4
/* 80395B04 00392A64 88 03 00 08 */ lbz r0, 8(r3)
/* 80395B08 00392A68 28 00 00 00 */ cmplwi r0, 0
/* 80395B0C 00392A6C 41 82 00 10 */ beq lbl_80395B1C
/* 80395B10 00392A70 88 03 0E DA */ lbz r0, 0xeda(r3)
/* 80395B14 00392A74 60 00 00 08 */ ori r0, r0, 8
/* 80395B18 00392A78 98 03 0E DA */ stb r0, 0xeda(r3)
lbl_80395B1C:
/* 80395B1C 00392A7C 80 01 00 24 */ lwz r0, 0x24(r1)
/* 80395B20 00392A80 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 80395B24 00392A84 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 80395B28 00392A88 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 80395B2C 00392A8C 83 81 00 10 */ lwz r28, 0x10(r1)
/* 80395B30 00392A90 7C 08 03 A6 */ mtlr r0
/* 80395B34 00392A94 38 21 00 20 */ addi r1, r1, 0x20
2022-04-08 05:17:01 +00:00
/* 80395B38 00392A98 4E 80 00 20 */ blr
2022-04-02 09:50:35 +00:00
.global seqStop
seqStop:
/* 80395B3C 00392A9C 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80395B40 00392AA0 7C 08 02 A6 */ mflr r0
/* 80395B44 00392AA4 90 01 00 24 */ stw r0, 0x24(r1)
/* 80395B48 00392AA8 39 61 00 20 */ addi r11, r1, 0x20
/* 80395B4C 00392AAC 4B FF 3F 31 */ bl _savegpr_27
/* 80395B50 00392AB0 80 8D AE 44 */ lwz r4, seqActiveRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80395B54 00392AB4 54 65 00 7E */ clrlwi r5, r3, 1
/* 80395B58 00392AB8 48 00 00 20 */ b lbl_80395B78
lbl_80395B5C:
/* 80395B5C 00392ABC 80 04 00 0C */ lwz r0, 0xc(r4)
/* 80395B60 00392AC0 7C 00 28 40 */ cmplw r0, r5
/* 80395B64 00392AC4 40 82 00 10 */ bne lbl_80395B74
/* 80395B68 00392AC8 88 84 00 09 */ lbz r4, 9(r4)
/* 80395B6C 00392ACC 50 64 00 00 */ rlwimi r4, r3, 0, 0, 0
/* 80395B70 00392AD0 48 00 00 40 */ b lbl_80395BB0
lbl_80395B74:
/* 80395B74 00392AD4 80 84 00 00 */ lwz r4, 0(r4)
lbl_80395B78:
/* 80395B78 00392AD8 28 04 00 00 */ cmplwi r4, 0
/* 80395B7C 00392ADC 40 82 FF E0 */ bne lbl_80395B5C
/* 80395B80 00392AE0 80 8D AE 40 */ lwz r4, seqPausedRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80395B84 00392AE4 48 00 00 20 */ b lbl_80395BA4
lbl_80395B88:
/* 80395B88 00392AE8 80 04 00 0C */ lwz r0, 0xc(r4)
/* 80395B8C 00392AEC 7C 00 28 40 */ cmplw r0, r5
/* 80395B90 00392AF0 40 82 00 10 */ bne lbl_80395BA0
/* 80395B94 00392AF4 88 84 00 09 */ lbz r4, 9(r4)
/* 80395B98 00392AF8 50 64 00 00 */ rlwimi r4, r3, 0, 0, 0
/* 80395B9C 00392AFC 48 00 00 14 */ b lbl_80395BB0
lbl_80395BA0:
/* 80395BA0 00392B00 80 84 00 00 */ lwz r4, 0(r4)
lbl_80395BA4:
/* 80395BA4 00392B04 28 04 00 00 */ cmplwi r4, 0
/* 80395BA8 00392B08 40 82 FF E0 */ bne lbl_80395B88
/* 80395BAC 00392B0C 38 80 FF FF */ li r4, -1
lbl_80395BB0:
/* 80395BB0 00392B10 3C 04 00 01 */ addis r0, r4, 1
/* 80395BB4 00392B14 28 00 FF FF */ cmplwi r0, 0xffff
/* 80395BB8 00392B18 41 82 02 1C */ beq lbl_80395DD4
/* 80395BBC 00392B1C 54 80 00 01 */ rlwinm. r0, r4, 0, 0, 0
/* 80395BC0 00392B20 40 82 01 EC */ bne lbl_80395DAC
/* 80395BC4 00392B24 1F 64 18 68 */ mulli r27, r4, 0x1868
2022-04-08 05:17:01 +00:00
/* 80395BC8 00392B28 3C 60 80 54 */ lis r3, seqInstance@ha
/* 80395BCC 00392B2C 38 03 39 D0 */ addi r0, r3, seqInstance@l
2022-04-02 09:50:35 +00:00
/* 80395BD0 00392B30 7F E0 DA 14 */ add r31, r0, r27
/* 80395BD4 00392B34 88 1F 00 08 */ lbz r0, 8(r31)
/* 80395BD8 00392B38 2C 00 00 02 */ cmpwi r0, 2
/* 80395BDC 00392B3C 41 82 01 6C */ beq lbl_80395D48
/* 80395BE0 00392B40 40 80 01 88 */ bge lbl_80395D68
/* 80395BE4 00392B44 2C 00 00 01 */ cmpwi r0, 1
/* 80395BE8 00392B48 40 80 00 08 */ bge lbl_80395BF0
/* 80395BEC 00392B4C 48 00 01 7C */ b lbl_80395D68
lbl_80395BF0:
/* 80395BF0 00392B50 80 7F 00 04 */ lwz r3, 4(r31)
/* 80395BF4 00392B54 28 03 00 00 */ cmplwi r3, 0
/* 80395BF8 00392B58 41 82 00 10 */ beq lbl_80395C08
/* 80395BFC 00392B5C 80 1F 00 00 */ lwz r0, 0(r31)
/* 80395C00 00392B60 90 03 00 00 */ stw r0, 0(r3)
/* 80395C04 00392B64 48 00 00 0C */ b lbl_80395C10
lbl_80395C08:
/* 80395C08 00392B68 80 1F 00 00 */ lwz r0, 0(r31)
/* 80395C0C 00392B6C 90 0D AE 44 */ stw r0, seqActiveRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
lbl_80395C10:
/* 80395C10 00392B70 3B C0 00 00 */ li r30, 0
/* 80395C14 00392B74 7F FC FB 78 */ mr r28, r31
lbl_80395C18:
/* 80395C18 00392B78 83 BC 0E 64 */ lwz r29, 0xe64(r28)
/* 80395C1C 00392B7C 48 00 00 10 */ b lbl_80395C2C
lbl_80395C20:
/* 80395C20 00392B80 80 7D 00 08 */ lwz r3, 8(r29)
/* 80395C24 00392B84 48 01 30 2D */ bl voiceKillSound
/* 80395C28 00392B88 83 BD 00 00 */ lwz r29, 0(r29)
lbl_80395C2C:
/* 80395C2C 00392B8C 28 1D 00 00 */ cmplwi r29, 0
/* 80395C30 00392B90 40 82 FF F0 */ bne lbl_80395C20
/* 80395C34 00392B94 3B DE 00 01 */ addi r30, r30, 1
/* 80395C38 00392B98 3B 9C 00 04 */ addi r28, r28, 4
/* 80395C3C 00392B9C 28 1E 00 02 */ cmplwi r30, 2
/* 80395C40 00392BA0 41 80 FF D8 */ blt lbl_80395C18
2022-04-08 05:17:01 +00:00
/* 80395C44 00392BA4 3C 60 80 54 */ lis r3, seqInstance@ha
/* 80395C48 00392BA8 38 03 39 D0 */ addi r0, r3, seqInstance@l
2022-04-02 09:50:35 +00:00
/* 80395C4C 00392BAC 7F 60 DA 14 */ add r27, r0, r27
/* 80395C50 00392BB0 87 9B 0E 6C */ lwzu r28, 0xe6c(r27)
/* 80395C54 00392BB4 48 00 00 10 */ b lbl_80395C64
lbl_80395C58:
/* 80395C58 00392BB8 80 7C 00 08 */ lwz r3, 8(r28)
/* 80395C5C 00392BBC 48 01 2F F5 */ bl voiceKillSound
/* 80395C60 00392BC0 83 9C 00 00 */ lwz r28, 0(r28)
lbl_80395C64:
/* 80395C64 00392BC4 28 1C 00 00 */ cmplwi r28, 0
/* 80395C68 00392BC8 40 82 FF F0 */ bne lbl_80395C58
/* 80395C6C 00392BCC 80 BF 0E 64 */ lwz r5, 0xe64(r31)
/* 80395C70 00392BD0 38 80 00 00 */ li r4, 0
/* 80395C74 00392BD4 28 05 00 00 */ cmplwi r5, 0
/* 80395C78 00392BD8 41 82 00 3C */ beq lbl_80395CB4
/* 80395C7C 00392BDC 48 00 00 08 */ b lbl_80395C84
lbl_80395C80:
/* 80395C80 00392BE0 7C 05 03 78 */ mr r5, r0
lbl_80395C84:
/* 80395C84 00392BE4 80 05 00 00 */ lwz r0, 0(r5)
/* 80395C88 00392BE8 28 00 00 00 */ cmplwi r0, 0
/* 80395C8C 00392BEC 40 82 FF F4 */ bne lbl_80395C80
/* 80395C90 00392BF0 80 0D AE 34 */ lwz r0, noteFree@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80395C94 00392BF4 28 00 00 00 */ cmplwi r0, 0
/* 80395C98 00392BF8 41 82 00 10 */ beq lbl_80395CA8
/* 80395C9C 00392BFC 90 05 00 00 */ stw r0, 0(r5)
/* 80395CA0 00392C00 80 6D AE 34 */ lwz r3, noteFree@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80395CA4 00392C04 90 A3 00 04 */ stw r5, 4(r3)
lbl_80395CA8:
/* 80395CA8 00392C08 80 1F 0E 64 */ lwz r0, 0xe64(r31)
/* 80395CAC 00392C0C 90 0D AE 34 */ stw r0, noteFree@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80395CB0 00392C10 90 9F 0E 64 */ stw r4, 0xe64(r31)
lbl_80395CB4:
/* 80395CB4 00392C14 38 DF 00 04 */ addi r6, r31, 4
/* 80395CB8 00392C18 80 BF 0E 68 */ lwz r5, 0xe68(r31)
/* 80395CBC 00392C1C 28 05 00 00 */ cmplwi r5, 0
/* 80395CC0 00392C20 41 82 00 3C */ beq lbl_80395CFC
/* 80395CC4 00392C24 48 00 00 08 */ b lbl_80395CCC
lbl_80395CC8:
/* 80395CC8 00392C28 7C 05 03 78 */ mr r5, r0
lbl_80395CCC:
/* 80395CCC 00392C2C 80 05 00 00 */ lwz r0, 0(r5)
/* 80395CD0 00392C30 28 00 00 00 */ cmplwi r0, 0
/* 80395CD4 00392C34 40 82 FF F4 */ bne lbl_80395CC8
/* 80395CD8 00392C38 80 0D AE 34 */ lwz r0, noteFree@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80395CDC 00392C3C 28 00 00 00 */ cmplwi r0, 0
/* 80395CE0 00392C40 41 82 00 10 */ beq lbl_80395CF0
/* 80395CE4 00392C44 90 05 00 00 */ stw r0, 0(r5)
/* 80395CE8 00392C48 80 6D AE 34 */ lwz r3, noteFree@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80395CEC 00392C4C 90 A3 00 04 */ stw r5, 4(r3)
lbl_80395CF0:
/* 80395CF0 00392C50 80 06 0E 64 */ lwz r0, 0xe64(r6)
/* 80395CF4 00392C54 90 0D AE 34 */ stw r0, noteFree@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80395CF8 00392C58 90 86 0E 64 */ stw r4, 0xe64(r6)
lbl_80395CFC:
/* 80395CFC 00392C5C 80 9B 00 00 */ lwz r4, 0(r27)
/* 80395D00 00392C60 28 04 00 00 */ cmplwi r4, 0
/* 80395D04 00392C64 41 82 00 64 */ beq lbl_80395D68
/* 80395D08 00392C68 48 00 00 08 */ b lbl_80395D10
lbl_80395D0C:
/* 80395D0C 00392C6C 7C 04 03 78 */ mr r4, r0
lbl_80395D10:
/* 80395D10 00392C70 80 04 00 00 */ lwz r0, 0(r4)
/* 80395D14 00392C74 28 00 00 00 */ cmplwi r0, 0
/* 80395D18 00392C78 40 82 FF F4 */ bne lbl_80395D0C
/* 80395D1C 00392C7C 80 0D AE 34 */ lwz r0, noteFree@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80395D20 00392C80 28 00 00 00 */ cmplwi r0, 0
/* 80395D24 00392C84 41 82 00 10 */ beq lbl_80395D34
/* 80395D28 00392C88 90 04 00 00 */ stw r0, 0(r4)
/* 80395D2C 00392C8C 80 6D AE 34 */ lwz r3, noteFree@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80395D30 00392C90 90 83 00 04 */ stw r4, 4(r3)
lbl_80395D34:
/* 80395D34 00392C94 80 7B 00 00 */ lwz r3, 0(r27)
/* 80395D38 00392C98 38 00 00 00 */ li r0, 0
/* 80395D3C 00392C9C 90 6D AE 34 */ stw r3, noteFree@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80395D40 00392CA0 90 1B 00 00 */ stw r0, 0(r27)
/* 80395D44 00392CA4 48 00 00 24 */ b lbl_80395D68
lbl_80395D48:
/* 80395D48 00392CA8 80 7F 00 04 */ lwz r3, 4(r31)
/* 80395D4C 00392CAC 28 03 00 00 */ cmplwi r3, 0
/* 80395D50 00392CB0 41 82 00 10 */ beq lbl_80395D60
/* 80395D54 00392CB4 80 1F 00 00 */ lwz r0, 0(r31)
/* 80395D58 00392CB8 90 03 00 00 */ stw r0, 0(r3)
/* 80395D5C 00392CBC 48 00 00 0C */ b lbl_80395D68
lbl_80395D60:
/* 80395D60 00392CC0 80 1F 00 00 */ lwz r0, 0(r31)
/* 80395D64 00392CC4 90 0D AE 40 */ stw r0, seqPausedRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
lbl_80395D68:
/* 80395D68 00392CC8 80 7F 00 00 */ lwz r3, 0(r31)
/* 80395D6C 00392CCC 28 03 00 00 */ cmplwi r3, 0
/* 80395D70 00392CD0 41 82 00 0C */ beq lbl_80395D7C
/* 80395D74 00392CD4 80 1F 00 04 */ lwz r0, 4(r31)
/* 80395D78 00392CD8 90 03 00 04 */ stw r0, 4(r3)
lbl_80395D7C:
/* 80395D7C 00392CDC 80 6D AE 3C */ lwz r3, seqFreeRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80395D80 00392CE0 38 00 00 00 */ li r0, 0
/* 80395D84 00392CE4 98 1F 00 08 */ stb r0, 8(r31)
/* 80395D88 00392CE8 28 03 00 00 */ cmplwi r3, 0
/* 80395D8C 00392CEC 41 82 00 08 */ beq lbl_80395D94
/* 80395D90 00392CF0 93 E3 00 04 */ stw r31, 4(r3)
lbl_80395D94:
/* 80395D94 00392CF4 80 6D AE 3C */ lwz r3, seqFreeRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80395D98 00392CF8 38 00 00 00 */ li r0, 0
/* 80395D9C 00392CFC 90 7F 00 00 */ stw r3, 0(r31)
/* 80395DA0 00392D00 90 1F 00 04 */ stw r0, 4(r31)
/* 80395DA4 00392D04 93 ED AE 3C */ stw r31, seqFreeRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80395DA8 00392D08 48 00 00 2C */ b lbl_80395DD4
lbl_80395DAC:
/* 80395DAC 00392D0C 54 80 00 7E */ clrlwi r0, r4, 1
2022-04-08 05:17:01 +00:00
/* 80395DB0 00392D10 3C 60 80 54 */ lis r3, seqInstance@ha
2022-04-02 09:50:35 +00:00
/* 80395DB4 00392D14 1C 80 18 68 */ mulli r4, r0, 0x1868
2022-04-08 05:17:01 +00:00
/* 80395DB8 00392D18 38 03 39 D0 */ addi r0, r3, seqInstance@l
2022-04-02 09:50:35 +00:00
/* 80395DBC 00392D1C 7C 60 22 14 */ add r3, r0, r4
/* 80395DC0 00392D20 88 03 00 08 */ lbz r0, 8(r3)
/* 80395DC4 00392D24 28 00 00 00 */ cmplwi r0, 0
/* 80395DC8 00392D28 41 82 00 0C */ beq lbl_80395DD4
/* 80395DCC 00392D2C 38 00 00 00 */ li r0, 0
/* 80395DD0 00392D30 90 03 0E DC */ stw r0, 0xedc(r3)
lbl_80395DD4:
/* 80395DD4 00392D34 39 61 00 20 */ addi r11, r1, 0x20
/* 80395DD8 00392D38 4B FF 3C F1 */ bl _restgpr_27
/* 80395DDC 00392D3C 80 01 00 24 */ lwz r0, 0x24(r1)
/* 80395DE0 00392D40 7C 08 03 A6 */ mtlr r0
/* 80395DE4 00392D44 38 21 00 20 */ addi r1, r1, 0x20
2022-04-08 05:17:01 +00:00
/* 80395DE8 00392D48 4E 80 00 20 */ blr
2022-04-02 09:50:35 +00:00
.global seqKillInstancesByGroupID
seqKillInstancesByGroupID:
/* 80395DEC 00392D4C 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80395DF0 00392D50 7C 08 02 A6 */ mflr r0
/* 80395DF4 00392D54 90 01 00 24 */ stw r0, 0x24(r1)
/* 80395DF8 00392D58 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 80395DFC 00392D5C 54 7F 04 3E */ clrlwi r31, r3, 0x10
/* 80395E00 00392D60 93 C1 00 18 */ stw r30, 0x18(r1)
/* 80395E04 00392D64 93 A1 00 14 */ stw r29, 0x14(r1)
/* 80395E08 00392D68 7C 7D 1B 78 */ mr r29, r3
/* 80395E0C 00392D6C 83 CD AE 44 */ lwz r30, seqActiveRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80395E10 00392D70 48 00 00 1C */ b lbl_80395E2C
lbl_80395E14:
/* 80395E14 00392D74 A0 1E 00 0A */ lhz r0, 0xa(r30)
/* 80395E18 00392D78 7C 00 F8 40 */ cmplw r0, r31
/* 80395E1C 00392D7C 40 82 00 0C */ bne lbl_80395E28
/* 80395E20 00392D80 80 7E 00 0C */ lwz r3, 0xc(r30)
/* 80395E24 00392D84 4B FF FD 19 */ bl seqStop
lbl_80395E28:
/* 80395E28 00392D88 83 DE 00 00 */ lwz r30, 0(r30)
lbl_80395E2C:
/* 80395E2C 00392D8C 28 1E 00 00 */ cmplwi r30, 0
/* 80395E30 00392D90 40 82 FF E4 */ bne lbl_80395E14
/* 80395E34 00392D94 83 CD AE 40 */ lwz r30, seqPausedRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80395E38 00392D98 57 BF 04 3E */ clrlwi r31, r29, 0x10
/* 80395E3C 00392D9C 48 00 00 1C */ b lbl_80395E58
lbl_80395E40:
/* 80395E40 00392DA0 A0 1E 00 0A */ lhz r0, 0xa(r30)
/* 80395E44 00392DA4 7C 00 F8 40 */ cmplw r0, r31
/* 80395E48 00392DA8 40 82 00 0C */ bne lbl_80395E54
/* 80395E4C 00392DAC 80 7E 00 0C */ lwz r3, 0xc(r30)
/* 80395E50 00392DB0 4B FF FC ED */ bl seqStop
lbl_80395E54:
/* 80395E54 00392DB4 83 DE 00 00 */ lwz r30, 0(r30)
lbl_80395E58:
/* 80395E58 00392DB8 28 1E 00 00 */ cmplwi r30, 0
/* 80395E5C 00392DBC 40 82 FF E4 */ bne lbl_80395E40
/* 80395E60 00392DC0 80 01 00 24 */ lwz r0, 0x24(r1)
/* 80395E64 00392DC4 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 80395E68 00392DC8 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 80395E6C 00392DCC 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 80395E70 00392DD0 7C 08 03 A6 */ mtlr r0
/* 80395E74 00392DD4 38 21 00 20 */ addi r1, r1, 0x20
2022-04-08 05:17:01 +00:00
/* 80395E78 00392DD8 4E 80 00 20 */ blr
2022-04-02 09:50:35 +00:00
.global seqSpeed
seqSpeed:
/* 80395E7C 00392DDC 80 AD AE 44 */ lwz r5, seqActiveRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80395E80 00392DE0 54 66 00 7E */ clrlwi r6, r3, 1
/* 80395E84 00392DE4 48 00 00 20 */ b lbl_80395EA4
lbl_80395E88:
/* 80395E88 00392DE8 80 05 00 0C */ lwz r0, 0xc(r5)
/* 80395E8C 00392DEC 7C 00 30 40 */ cmplw r0, r6
/* 80395E90 00392DF0 40 82 00 10 */ bne lbl_80395EA0
/* 80395E94 00392DF4 88 A5 00 09 */ lbz r5, 9(r5)
/* 80395E98 00392DF8 50 65 00 00 */ rlwimi r5, r3, 0, 0, 0
/* 80395E9C 00392DFC 48 00 00 40 */ b lbl_80395EDC
lbl_80395EA0:
/* 80395EA0 00392E00 80 A5 00 00 */ lwz r5, 0(r5)
lbl_80395EA4:
/* 80395EA4 00392E04 28 05 00 00 */ cmplwi r5, 0
/* 80395EA8 00392E08 40 82 FF E0 */ bne lbl_80395E88
/* 80395EAC 00392E0C 80 AD AE 40 */ lwz r5, seqPausedRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80395EB0 00392E10 48 00 00 20 */ b lbl_80395ED0
lbl_80395EB4:
/* 80395EB4 00392E14 80 05 00 0C */ lwz r0, 0xc(r5)
/* 80395EB8 00392E18 7C 00 30 40 */ cmplw r0, r6
/* 80395EBC 00392E1C 40 82 00 10 */ bne lbl_80395ECC
/* 80395EC0 00392E20 88 A5 00 09 */ lbz r5, 9(r5)
/* 80395EC4 00392E24 50 65 00 00 */ rlwimi r5, r3, 0, 0, 0
/* 80395EC8 00392E28 48 00 00 14 */ b lbl_80395EDC
lbl_80395ECC:
/* 80395ECC 00392E2C 80 A5 00 00 */ lwz r5, 0(r5)
lbl_80395ED0:
/* 80395ED0 00392E30 28 05 00 00 */ cmplwi r5, 0
/* 80395ED4 00392E34 40 82 FF E0 */ bne lbl_80395EB4
/* 80395ED8 00392E38 38 A0 FF FF */ li r5, -1
lbl_80395EDC:
/* 80395EDC 00392E3C 54 A0 00 01 */ rlwinm. r0, r5, 0, 0, 0
/* 80395EE0 00392E40 40 82 00 58 */ bne lbl_80395F38
/* 80395EE4 00392E44 1C A5 18 68 */ mulli r5, r5, 0x1868
2022-04-08 05:17:01 +00:00
/* 80395EE8 00392E48 3C 60 80 54 */ lis r3, seqInstance@ha
/* 80395EEC 00392E4C 38 03 39 D0 */ addi r0, r3, seqInstance@l
2022-04-02 09:50:35 +00:00
/* 80395EF0 00392E50 7C 60 2A 14 */ add r3, r0, r5
/* 80395EF4 00392E54 B0 83 15 1A */ sth r4, 0x151a(r3)
/* 80395EF8 00392E58 B0 83 15 52 */ sth r4, 0x1552(r3)
/* 80395EFC 00392E5C B0 83 15 8A */ sth r4, 0x158a(r3)
/* 80395F00 00392E60 B0 83 15 C2 */ sth r4, 0x15c2(r3)
/* 80395F04 00392E64 B0 83 15 FA */ sth r4, 0x15fa(r3)
/* 80395F08 00392E68 B0 83 16 32 */ sth r4, 0x1632(r3)
/* 80395F0C 00392E6C B0 83 16 6A */ sth r4, 0x166a(r3)
/* 80395F10 00392E70 B0 83 16 A2 */ sth r4, 0x16a2(r3)
/* 80395F14 00392E74 B0 83 16 DA */ sth r4, 0x16da(r3)
/* 80395F18 00392E78 B0 83 17 12 */ sth r4, 0x1712(r3)
/* 80395F1C 00392E7C B0 83 17 4A */ sth r4, 0x174a(r3)
/* 80395F20 00392E80 B0 83 17 82 */ sth r4, 0x1782(r3)
/* 80395F24 00392E84 B0 83 17 BA */ sth r4, 0x17ba(r3)
/* 80395F28 00392E88 B0 83 17 F2 */ sth r4, 0x17f2(r3)
/* 80395F2C 00392E8C B0 83 18 2A */ sth r4, 0x182a(r3)
/* 80395F30 00392E90 B0 83 18 62 */ sth r4, 0x1862(r3)
2022-04-08 05:17:01 +00:00
/* 80395F34 00392E94 4E 80 00 20 */ blr
2022-04-02 09:50:35 +00:00
lbl_80395F38:
/* 80395F38 00392E98 54 A0 00 7E */ clrlwi r0, r5, 1
2022-04-08 05:17:01 +00:00
/* 80395F3C 00392E9C 3C 60 80 54 */ lis r3, seqInstance@ha
2022-04-02 09:50:35 +00:00
/* 80395F40 00392EA0 1C A0 18 68 */ mulli r5, r0, 0x1868
2022-04-08 05:17:01 +00:00
/* 80395F44 00392EA4 38 03 39 D0 */ addi r0, r3, seqInstance@l
2022-04-02 09:50:35 +00:00
/* 80395F48 00392EA8 7C 60 2A 14 */ add r3, r0, r5
/* 80395F4C 00392EAC 88 03 0E DA */ lbz r0, 0xeda(r3)
/* 80395F50 00392EB0 60 00 00 20 */ ori r0, r0, 0x20
/* 80395F54 00392EB4 98 03 0E DA */ stb r0, 0xeda(r3)
/* 80395F58 00392EB8 B0 83 0E D8 */ sth r4, 0xed8(r3)
2022-04-08 05:17:01 +00:00
/* 80395F5C 00392EBC 4E 80 00 20 */ blr
2022-04-02 09:50:35 +00:00
.global seqContinue
seqContinue:
/* 80395F60 00392EC0 80 8D AE 44 */ lwz r4, seqActiveRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80395F64 00392EC4 54 65 00 7E */ clrlwi r5, r3, 1
/* 80395F68 00392EC8 48 00 00 20 */ b lbl_80395F88
lbl_80395F6C:
/* 80395F6C 00392ECC 80 04 00 0C */ lwz r0, 0xc(r4)
/* 80395F70 00392ED0 7C 00 28 40 */ cmplw r0, r5
/* 80395F74 00392ED4 40 82 00 10 */ bne lbl_80395F84
/* 80395F78 00392ED8 88 84 00 09 */ lbz r4, 9(r4)
/* 80395F7C 00392EDC 50 64 00 00 */ rlwimi r4, r3, 0, 0, 0
/* 80395F80 00392EE0 48 00 00 40 */ b lbl_80395FC0
lbl_80395F84:
/* 80395F84 00392EE4 80 84 00 00 */ lwz r4, 0(r4)
lbl_80395F88:
/* 80395F88 00392EE8 28 04 00 00 */ cmplwi r4, 0
/* 80395F8C 00392EEC 40 82 FF E0 */ bne lbl_80395F6C
/* 80395F90 00392EF0 80 8D AE 40 */ lwz r4, seqPausedRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80395F94 00392EF4 48 00 00 20 */ b lbl_80395FB4
lbl_80395F98:
/* 80395F98 00392EF8 80 04 00 0C */ lwz r0, 0xc(r4)
/* 80395F9C 00392EFC 7C 00 28 40 */ cmplw r0, r5
/* 80395FA0 00392F00 40 82 00 10 */ bne lbl_80395FB0
/* 80395FA4 00392F04 88 84 00 09 */ lbz r4, 9(r4)
/* 80395FA8 00392F08 50 64 00 00 */ rlwimi r4, r3, 0, 0, 0
/* 80395FAC 00392F0C 48 00 00 14 */ b lbl_80395FC0
lbl_80395FB0:
/* 80395FB0 00392F10 80 84 00 00 */ lwz r4, 0(r4)
lbl_80395FB4:
/* 80395FB4 00392F14 28 04 00 00 */ cmplwi r4, 0
/* 80395FB8 00392F18 40 82 FF E0 */ bne lbl_80395F98
/* 80395FBC 00392F1C 38 80 FF FF */ li r4, -1
lbl_80395FC0:
/* 80395FC0 00392F20 54 80 00 01 */ rlwinm. r0, r4, 0, 0, 0
/* 80395FC4 00392F24 40 82 00 80 */ bne lbl_80396044
/* 80395FC8 00392F28 1C 84 18 68 */ mulli r4, r4, 0x1868
2022-04-08 05:17:01 +00:00
/* 80395FCC 00392F2C 3C 60 80 54 */ lis r3, seqInstance@ha
/* 80395FD0 00392F30 38 03 39 D0 */ addi r0, r3, seqInstance@l
2022-04-02 09:50:35 +00:00
/* 80395FD4 00392F34 7C 80 22 14 */ add r4, r0, r4
/* 80395FD8 00392F38 88 04 00 08 */ lbz r0, 8(r4)
/* 80395FDC 00392F3C 28 00 00 02 */ cmplwi r0, 2
2022-04-08 05:17:01 +00:00
/* 80395FE0 00392F40 4C 82 00 20 */ bnelr
2022-04-02 09:50:35 +00:00
/* 80395FE4 00392F44 80 64 00 04 */ lwz r3, 4(r4)
/* 80395FE8 00392F48 28 03 00 00 */ cmplwi r3, 0
/* 80395FEC 00392F4C 41 82 00 10 */ beq lbl_80395FFC
/* 80395FF0 00392F50 80 04 00 00 */ lwz r0, 0(r4)
/* 80395FF4 00392F54 90 03 00 00 */ stw r0, 0(r3)
/* 80395FF8 00392F58 48 00 00 0C */ b lbl_80396004
lbl_80395FFC:
/* 80395FFC 00392F5C 80 04 00 00 */ lwz r0, 0(r4)
/* 80396000 00392F60 90 0D AE 40 */ stw r0, seqPausedRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
lbl_80396004:
/* 80396004 00392F64 80 64 00 00 */ lwz r3, 0(r4)
/* 80396008 00392F68 28 03 00 00 */ cmplwi r3, 0
/* 8039600C 00392F6C 41 82 00 0C */ beq lbl_80396018
/* 80396010 00392F70 80 04 00 04 */ lwz r0, 4(r4)
/* 80396014 00392F74 90 03 00 04 */ stw r0, 4(r3)
lbl_80396018:
/* 80396018 00392F78 80 6D AE 44 */ lwz r3, seqActiveRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 8039601C 00392F7C 28 03 00 00 */ cmplwi r3, 0
/* 80396020 00392F80 90 64 00 00 */ stw r3, 0(r4)
/* 80396024 00392F84 41 82 00 08 */ beq lbl_8039602C
/* 80396028 00392F88 90 83 00 04 */ stw r4, 4(r3)
lbl_8039602C:
/* 8039602C 00392F8C 38 60 00 00 */ li r3, 0
/* 80396030 00392F90 38 00 00 01 */ li r0, 1
/* 80396034 00392F94 90 64 00 04 */ stw r3, 4(r4)
/* 80396038 00392F98 90 8D AE 44 */ stw r4, seqActiveRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 8039603C 00392F9C 98 04 00 08 */ stb r0, 8(r4)
2022-04-08 05:17:01 +00:00
/* 80396040 00392FA0 4E 80 00 20 */ blr
2022-04-02 09:50:35 +00:00
lbl_80396044:
/* 80396044 00392FA4 54 80 00 7E */ clrlwi r0, r4, 1
2022-04-08 05:17:01 +00:00
/* 80396048 00392FA8 3C 60 80 54 */ lis r3, seqInstance@ha
2022-04-02 09:50:35 +00:00
/* 8039604C 00392FAC 1C 00 18 68 */ mulli r0, r0, 0x1868
2022-04-08 05:17:01 +00:00
/* 80396050 00392FB0 38 63 39 D0 */ addi r3, r3, seqInstance@l
2022-04-02 09:50:35 +00:00
/* 80396054 00392FB4 7C 63 02 14 */ add r3, r3, r0
/* 80396058 00392FB8 88 03 0E DA */ lbz r0, 0xeda(r3)
/* 8039605C 00392FBC 54 00 07 76 */ rlwinm r0, r0, 0, 0x1d, 0x1b
/* 80396060 00392FC0 98 03 0E DA */ stb r0, 0xeda(r3)
2022-04-08 05:17:01 +00:00
/* 80396064 00392FC4 4E 80 00 20 */ blr
2022-04-02 09:50:35 +00:00
.global seqMute
seqMute:
/* 80396068 00392FC8 80 CD AE 44 */ lwz r6, seqActiveRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 8039606C 00392FCC 54 67 00 7E */ clrlwi r7, r3, 1
/* 80396070 00392FD0 48 00 00 20 */ b lbl_80396090
lbl_80396074:
/* 80396074 00392FD4 80 06 00 0C */ lwz r0, 0xc(r6)
/* 80396078 00392FD8 7C 00 38 40 */ cmplw r0, r7
/* 8039607C 00392FDC 40 82 00 10 */ bne lbl_8039608C
/* 80396080 00392FE0 88 C6 00 09 */ lbz r6, 9(r6)
/* 80396084 00392FE4 50 66 00 00 */ rlwimi r6, r3, 0, 0, 0
/* 80396088 00392FE8 48 00 00 40 */ b lbl_803960C8
lbl_8039608C:
/* 8039608C 00392FEC 80 C6 00 00 */ lwz r6, 0(r6)
lbl_80396090:
/* 80396090 00392FF0 28 06 00 00 */ cmplwi r6, 0
/* 80396094 00392FF4 40 82 FF E0 */ bne lbl_80396074
/* 80396098 00392FF8 80 CD AE 40 */ lwz r6, seqPausedRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 8039609C 00392FFC 48 00 00 20 */ b lbl_803960BC
lbl_803960A0:
/* 803960A0 00393000 80 06 00 0C */ lwz r0, 0xc(r6)
/* 803960A4 00393004 7C 00 38 40 */ cmplw r0, r7
/* 803960A8 00393008 40 82 00 10 */ bne lbl_803960B8
/* 803960AC 0039300C 88 C6 00 09 */ lbz r6, 9(r6)
/* 803960B0 00393010 50 66 00 00 */ rlwimi r6, r3, 0, 0, 0
/* 803960B4 00393014 48 00 00 14 */ b lbl_803960C8
lbl_803960B8:
/* 803960B8 00393018 80 C6 00 00 */ lwz r6, 0(r6)
lbl_803960BC:
/* 803960BC 0039301C 28 06 00 00 */ cmplwi r6, 0
/* 803960C0 00393020 40 82 FF E0 */ bne lbl_803960A0
/* 803960C4 00393024 38 C0 FF FF */ li r6, -1
lbl_803960C8:
/* 803960C8 00393028 3C 06 00 01 */ addis r0, r6, 1
/* 803960CC 0039302C 28 00 FF FF */ cmplwi r0, 0xffff
2022-04-08 05:17:01 +00:00
/* 803960D0 00393030 4D 82 00 20 */ beqlr
2022-04-02 09:50:35 +00:00
/* 803960D4 00393034 54 C0 00 01 */ rlwinm. r0, r6, 0, 0, 0
/* 803960D8 00393038 40 82 00 20 */ bne lbl_803960F8
/* 803960DC 0039303C 1C C6 18 68 */ mulli r6, r6, 0x1868
2022-04-08 05:17:01 +00:00
/* 803960E0 00393040 3C 60 80 54 */ lis r3, seqInstance@ha
/* 803960E4 00393044 38 03 39 D0 */ addi r0, r3, seqInstance@l
2022-04-02 09:50:35 +00:00
/* 803960E8 00393048 7C 60 32 14 */ add r3, r0, r6
/* 803960EC 0039304C 90 83 01 1C */ stw r4, 0x11c(r3)
/* 803960F0 00393050 90 A3 01 20 */ stw r5, 0x120(r3)
2022-04-08 05:17:01 +00:00
/* 803960F4 00393054 4E 80 00 20 */ blr
2022-04-02 09:50:35 +00:00
lbl_803960F8:
/* 803960F8 00393058 54 C0 00 7E */ clrlwi r0, r6, 1
2022-04-08 05:17:01 +00:00
/* 803960FC 0039305C 3C 60 80 54 */ lis r3, seqInstance@ha
2022-04-02 09:50:35 +00:00
/* 80396100 00393060 1C C0 18 68 */ mulli r6, r0, 0x1868
2022-04-08 05:17:01 +00:00
/* 80396104 00393064 38 03 39 D0 */ addi r0, r3, seqInstance@l
2022-04-02 09:50:35 +00:00
/* 80396108 00393068 7C 60 32 14 */ add r3, r0, r6
/* 8039610C 0039306C 88 03 0E DA */ lbz r0, 0xeda(r3)
/* 80396110 00393070 60 00 00 10 */ ori r0, r0, 0x10
/* 80396114 00393074 98 03 0E DA */ stb r0, 0xeda(r3)
/* 80396118 00393078 90 83 0E D0 */ stw r4, 0xed0(r3)
/* 8039611C 0039307C 90 A3 0E D4 */ stw r5, 0xed4(r3)
2022-04-08 05:17:01 +00:00
/* 80396120 00393080 4E 80 00 20 */ blr
2022-04-02 09:50:35 +00:00
.global seqVolume
seqVolume:
/* 80396124 00393084 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80396128 00393088 7C 08 02 A6 */ mflr r0
/* 8039612C 0039308C 90 01 00 24 */ stw r0, 0x24(r1)
/* 80396130 00393090 39 61 00 20 */ addi r11, r1, 0x20
/* 80396134 00393094 4B FF 39 49 */ bl _savegpr_27
/* 80396138 00393098 81 0D AE 44 */ lwz r8, seqActiveRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 8039613C 0039309C 7C 7E 1B 78 */ mr r30, r3
/* 80396140 003930A0 7C 9F 23 78 */ mr r31, r4
/* 80396144 003930A4 7C A7 2B 78 */ mr r7, r5
/* 80396148 003930A8 54 A3 00 7E */ clrlwi r3, r5, 1
/* 8039614C 003930AC 48 00 00 20 */ b lbl_8039616C
lbl_80396150:
/* 80396150 003930B0 80 08 00 0C */ lwz r0, 0xc(r8)
/* 80396154 003930B4 7C 00 18 40 */ cmplw r0, r3
/* 80396158 003930B8 40 82 00 10 */ bne lbl_80396168
/* 8039615C 003930BC 88 68 00 09 */ lbz r3, 9(r8)
/* 80396160 003930C0 50 A3 00 00 */ rlwimi r3, r5, 0, 0, 0
/* 80396164 003930C4 48 00 00 40 */ b lbl_803961A4
lbl_80396168:
/* 80396168 003930C8 81 08 00 00 */ lwz r8, 0(r8)
lbl_8039616C:
/* 8039616C 003930CC 28 08 00 00 */ cmplwi r8, 0
/* 80396170 003930D0 40 82 FF E0 */ bne lbl_80396150
/* 80396174 003930D4 80 8D AE 40 */ lwz r4, seqPausedRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80396178 003930D8 48 00 00 20 */ b lbl_80396198
lbl_8039617C:
/* 8039617C 003930DC 80 04 00 0C */ lwz r0, 0xc(r4)
/* 80396180 003930E0 7C 00 18 40 */ cmplw r0, r3
/* 80396184 003930E4 40 82 00 10 */ bne lbl_80396194
/* 80396188 003930E8 88 64 00 09 */ lbz r3, 9(r4)
/* 8039618C 003930EC 50 A3 00 00 */ rlwimi r3, r5, 0, 0, 0
/* 80396190 003930F0 48 00 00 14 */ b lbl_803961A4
lbl_80396194:
/* 80396194 003930F4 80 84 00 00 */ lwz r4, 0(r4)
lbl_80396198:
/* 80396198 003930F8 28 04 00 00 */ cmplwi r4, 0
/* 8039619C 003930FC 40 82 FF E0 */ bne lbl_8039617C
/* 803961A0 00393100 38 60 FF FF */ li r3, -1
lbl_803961A4:
/* 803961A4 00393104 3C 03 00 01 */ addis r0, r3, 1
/* 803961A8 00393108 28 00 FF FF */ cmplwi r0, 0xffff
/* 803961AC 0039310C 41 82 01 2C */ beq lbl_803962D8
/* 803961B0 00393110 54 60 00 01 */ rlwinm. r0, r3, 0, 0, 0
/* 803961B4 00393114 40 82 00 70 */ bne lbl_80396224
/* 803961B8 00393118 1F A3 18 68 */ mulli r29, r3, 0x1868
2022-04-08 05:17:01 +00:00
/* 803961BC 0039311C 3C 80 80 54 */ lis r4, seqInstance@ha
2022-04-02 09:50:35 +00:00
/* 803961C0 00393120 7F C3 F3 78 */ mr r3, r30
2022-04-08 05:17:01 +00:00
/* 803961C4 00393124 38 04 39 D0 */ addi r0, r4, seqInstance@l
2022-04-02 09:50:35 +00:00
/* 803961C8 00393128 7C A0 EA 14 */ add r5, r0, r29
/* 803961CC 0039312C 7F E4 FB 78 */ mr r4, r31
/* 803961D0 00393130 88 A5 0E B0 */ lbz r5, 0xeb0(r5)
/* 803961D4 00393134 48 00 52 15 */ bl synthVolume
2022-04-08 05:17:01 +00:00
/* 803961D8 00393138 3C 60 80 54 */ lis r3, seqInstance@ha
2022-04-02 09:50:35 +00:00
/* 803961DC 0039313C 3B 60 00 00 */ li r27, 0
2022-04-08 05:17:01 +00:00
/* 803961E0 00393140 38 03 39 D0 */ addi r0, r3, seqInstance@l
2022-04-02 09:50:35 +00:00
/* 803961E4 00393144 7F 80 EA 14 */ add r28, r0, r29
/* 803961E8 00393148 3B BC 0E B0 */ addi r29, r28, 0xeb0
lbl_803961EC:
/* 803961EC 0039314C 88 BC 03 24 */ lbz r5, 0x324(r28)
/* 803961F0 00393150 88 1D 00 00 */ lbz r0, 0(r29)
/* 803961F4 00393154 7C 05 00 40 */ cmplw r5, r0
/* 803961F8 00393158 41 82 00 18 */ beq lbl_80396210
/* 803961FC 0039315C 7F C3 F3 78 */ mr r3, r30
/* 80396200 00393160 7F E4 FB 78 */ mr r4, r31
/* 80396204 00393164 38 C0 00 00 */ li r6, 0
/* 80396208 00393168 38 E0 FF FF */ li r7, -1
/* 8039620C 0039316C 48 00 51 DD */ bl synthVolume
lbl_80396210:
/* 80396210 00393170 3B 7B 00 01 */ addi r27, r27, 1
/* 80396214 00393174 3B 9C 00 01 */ addi r28, r28, 1
/* 80396218 00393178 28 1B 00 40 */ cmplwi r27, 0x40
/* 8039621C 0039317C 41 80 FF D0 */ blt lbl_803961EC
/* 80396220 00393180 48 00 00 B8 */ b lbl_803962D8
lbl_80396224:
/* 80396224 00393184 54 C0 07 3E */ clrlwi r0, r6, 0x1c
/* 80396228 00393188 2C 00 00 02 */ cmpwi r0, 2
/* 8039622C 0039318C 41 82 00 60 */ beq lbl_8039628C
/* 80396230 00393190 40 80 00 14 */ bge lbl_80396244
/* 80396234 00393194 2C 00 00 00 */ cmpwi r0, 0
/* 80396238 00393198 41 82 00 18 */ beq lbl_80396250
/* 8039623C 0039319C 40 80 00 30 */ bge lbl_8039626C
/* 80396240 003931A0 48 00 00 98 */ b lbl_803962D8
lbl_80396244:
/* 80396244 003931A4 2C 00 00 04 */ cmpwi r0, 4
/* 80396248 003931A8 40 80 00 90 */ bge lbl_803962D8
/* 8039624C 003931AC 48 00 00 68 */ b lbl_803962B4
lbl_80396250:
/* 80396250 003931B0 54 60 00 7E */ clrlwi r0, r3, 1
2022-04-08 05:17:01 +00:00
/* 80396254 003931B4 3C 60 80 54 */ lis r3, seqInstance@ha
2022-04-02 09:50:35 +00:00
/* 80396258 003931B8 1C 00 18 68 */ mulli r0, r0, 0x1868
2022-04-08 05:17:01 +00:00
/* 8039625C 003931BC 38 63 39 D0 */ addi r3, r3, seqInstance@l
2022-04-02 09:50:35 +00:00
/* 80396260 003931C0 7C 63 02 14 */ add r3, r3, r0
/* 80396264 003931C4 9B C3 0E CC */ stb r30, 0xecc(r3)
/* 80396268 003931C8 48 00 00 70 */ b lbl_803962D8
lbl_8039626C:
/* 8039626C 003931CC 54 60 00 7E */ clrlwi r0, r3, 1
2022-04-08 05:17:01 +00:00
/* 80396270 003931D0 3C 60 80 54 */ lis r3, seqInstance@ha
2022-04-02 09:50:35 +00:00
/* 80396274 003931D4 1C 00 18 68 */ mulli r0, r0, 0x1868
/* 80396278 003931D8 38 80 00 00 */ li r4, 0
2022-04-08 05:17:01 +00:00
/* 8039627C 003931DC 38 63 39 D0 */ addi r3, r3, seqInstance@l
2022-04-02 09:50:35 +00:00
/* 80396280 003931E0 7C 63 02 14 */ add r3, r3, r0
/* 80396284 003931E4 90 83 0E DC */ stw r4, 0xedc(r3)
/* 80396288 003931E8 48 00 00 50 */ b lbl_803962D8
lbl_8039628C:
/* 8039628C 003931EC 54 60 00 7E */ clrlwi r0, r3, 1
2022-04-08 05:17:01 +00:00
/* 80396290 003931F0 3C 60 80 54 */ lis r3, seqInstance@ha
2022-04-02 09:50:35 +00:00
/* 80396294 003931F4 1C 80 18 68 */ mulli r4, r0, 0x1868
2022-04-08 05:17:01 +00:00
/* 80396298 003931F8 38 03 39 D0 */ addi r0, r3, seqInstance@l
2022-04-02 09:50:35 +00:00
/* 8039629C 003931FC 7C 60 22 14 */ add r3, r0, r4
/* 803962A0 00393200 88 03 0E DA */ lbz r0, 0xeda(r3)
/* 803962A4 00393204 60 00 00 08 */ ori r0, r0, 8
/* 803962A8 00393208 98 03 0E DA */ stb r0, 0xeda(r3)
/* 803962AC 0039320C 9B C3 0E CC */ stb r30, 0xecc(r3)
/* 803962B0 00393210 48 00 00 28 */ b lbl_803962D8
lbl_803962B4:
/* 803962B4 00393214 54 60 00 7E */ clrlwi r0, r3, 1
2022-04-08 05:17:01 +00:00
/* 803962B8 00393218 3C 60 80 54 */ lis r3, seqInstance@ha
2022-04-02 09:50:35 +00:00
/* 803962BC 0039321C 1C 80 18 68 */ mulli r4, r0, 0x1868
2022-04-08 05:17:01 +00:00
/* 803962C0 00393220 38 03 39 D0 */ addi r0, r3, seqInstance@l
2022-04-02 09:50:35 +00:00
/* 803962C4 00393224 7C 60 22 14 */ add r3, r0, r4
/* 803962C8 00393228 88 03 0E DA */ lbz r0, 0xeda(r3)
/* 803962CC 0039322C 60 00 00 80 */ ori r0, r0, 0x80
/* 803962D0 00393230 98 03 0E DA */ stb r0, 0xeda(r3)
/* 803962D4 00393234 9B C3 0E CC */ stb r30, 0xecc(r3)
lbl_803962D8:
/* 803962D8 00393238 39 61 00 20 */ addi r11, r1, 0x20
/* 803962DC 0039323C 4B FF 37 ED */ bl _restgpr_27
/* 803962E0 00393240 80 01 00 24 */ lwz r0, 0x24(r1)
/* 803962E4 00393244 7C 08 03 A6 */ mtlr r0
/* 803962E8 00393248 38 21 00 20 */ addi r1, r1, 0x20
2022-04-08 05:17:01 +00:00
/* 803962EC 0039324C 4E 80 00 20 */ blr
2022-04-02 09:50:35 +00:00
.global seqCrossFade
seqCrossFade:
/* 803962F0 00393250 94 21 FF B0 */ stwu r1, -0x50(r1)
/* 803962F4 00393254 7C 08 02 A6 */ mflr r0
/* 803962F8 00393258 90 01 00 54 */ stw r0, 0x54(r1)
/* 803962FC 0039325C 39 61 00 50 */ addi r11, r1, 0x50
2022-04-04 10:14:22 +00:00
/* 80396300 00393260 4B FF 37 75 */ bl _savegpr_25
2022-04-02 09:50:35 +00:00
/* 80396304 00393264 7C 7F 1B 78 */ mr r31, r3
/* 80396308 00393268 80 CD AE 44 */ lwz r6, seqActiveRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 8039630C 0039326C 80 E3 00 00 */ lwz r7, 0(r3)
/* 80396310 00393270 7C 9D 23 78 */ mr r29, r4
/* 80396314 00393274 7C BC 2B 78 */ mr r28, r5
/* 80396318 00393278 7C C3 33 78 */ mr r3, r6
/* 8039631C 0039327C 54 E4 00 7E */ clrlwi r4, r7, 1
/* 80396320 00393280 48 00 00 20 */ b lbl_80396340
lbl_80396324:
/* 80396324 00393284 80 03 00 0C */ lwz r0, 0xc(r3)
/* 80396328 00393288 7C 00 20 40 */ cmplw r0, r4
/* 8039632C 0039328C 40 82 00 10 */ bne lbl_8039633C
/* 80396330 00393290 88 63 00 09 */ lbz r3, 9(r3)
/* 80396334 00393294 50 E3 00 00 */ rlwimi r3, r7, 0, 0, 0
/* 80396338 00393298 48 00 00 40 */ b lbl_80396378
lbl_8039633C:
/* 8039633C 0039329C 80 63 00 00 */ lwz r3, 0(r3)
lbl_80396340:
/* 80396340 003932A0 28 03 00 00 */ cmplwi r3, 0
/* 80396344 003932A4 40 82 FF E0 */ bne lbl_80396324
/* 80396348 003932A8 80 6D AE 40 */ lwz r3, seqPausedRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 8039634C 003932AC 48 00 00 20 */ b lbl_8039636C
lbl_80396350:
/* 80396350 003932B0 80 03 00 0C */ lwz r0, 0xc(r3)
/* 80396354 003932B4 7C 00 20 40 */ cmplw r0, r4
/* 80396358 003932B8 40 82 00 10 */ bne lbl_80396368
/* 8039635C 003932BC 88 63 00 09 */ lbz r3, 9(r3)
/* 80396360 003932C0 50 E3 00 00 */ rlwimi r3, r7, 0, 0, 0
/* 80396364 003932C4 48 00 00 14 */ b lbl_80396378
lbl_80396368:
/* 80396368 003932C8 80 63 00 00 */ lwz r3, 0(r3)
lbl_8039636C:
/* 8039636C 003932CC 28 03 00 00 */ cmplwi r3, 0
/* 80396370 003932D0 40 82 FF E0 */ bne lbl_80396350
/* 80396374 003932D4 38 60 FF FF */ li r3, -1
lbl_80396378:
/* 80396378 003932D8 88 9F 00 26 */ lbz r4, 0x26(r31)
/* 8039637C 003932DC 54 80 07 7B */ rlwinm. r0, r4, 0, 0x1d, 0x1d
/* 80396380 003932E0 41 82 00 8C */ beq lbl_8039640C
/* 80396384 003932E4 1C C3 18 68 */ mulli r6, r3, 0x1868
2022-04-08 05:17:01 +00:00
/* 80396388 003932E8 3C 60 80 54 */ lis r3, seqInstance@ha
2022-04-02 09:50:35 +00:00
/* 8039638C 003932EC 80 9F 00 00 */ lwz r4, 0(r31)
/* 80396390 003932F0 38 00 00 01 */ li r0, 1
2022-04-08 05:17:01 +00:00
/* 80396394 003932F4 38 A3 39 D0 */ addi r5, r3, seqInstance@l
2022-04-02 09:50:35 +00:00
/* 80396398 003932F8 80 7F 00 04 */ lwz r3, 4(r31)
/* 8039639C 003932FC 7C A5 32 14 */ add r5, r5, r6
/* 803963A0 00393300 90 85 0E B4 */ stw r4, 0xeb4(r5)
/* 803963A4 00393304 90 65 0E B8 */ stw r3, 0xeb8(r5)
/* 803963A8 00393308 80 9F 00 08 */ lwz r4, 8(r31)
/* 803963AC 0039330C 80 7F 00 0C */ lwz r3, 0xc(r31)
/* 803963B0 00393310 90 85 0E BC */ stw r4, 0xebc(r5)
/* 803963B4 00393314 90 65 0E C0 */ stw r3, 0xec0(r5)
/* 803963B8 00393318 80 9F 00 10 */ lwz r4, 0x10(r31)
/* 803963BC 0039331C 80 7F 00 14 */ lwz r3, 0x14(r31)
/* 803963C0 00393320 90 85 0E C4 */ stw r4, 0xec4(r5)
/* 803963C4 00393324 90 65 0E C8 */ stw r3, 0xec8(r5)
/* 803963C8 00393328 80 9F 00 18 */ lwz r4, 0x18(r31)
/* 803963CC 0039332C 80 7F 00 1C */ lwz r3, 0x1c(r31)
/* 803963D0 00393330 90 85 0E CC */ stw r4, 0xecc(r5)
/* 803963D4 00393334 90 65 0E D0 */ stw r3, 0xed0(r5)
/* 803963D8 00393338 80 9F 00 20 */ lwz r4, 0x20(r31)
/* 803963DC 0039333C 80 7F 00 24 */ lwz r3, 0x24(r31)
/* 803963E0 00393340 90 85 0E D4 */ stw r4, 0xed4(r5)
/* 803963E4 00393344 90 65 0E D8 */ stw r3, 0xed8(r5)
/* 803963E8 00393348 98 05 0E E0 */ stb r0, 0xee0(r5)
/* 803963EC 0039334C 93 A5 0E DC */ stw r29, 0xedc(r5)
/* 803963F0 00393350 88 05 0E DA */ lbz r0, 0xeda(r5)
/* 803963F4 00393354 54 00 07 B8 */ rlwinm r0, r0, 0, 0x1e, 0x1c
/* 803963F8 00393358 98 05 0E DA */ stb r0, 0xeda(r5)
/* 803963FC 0039335C 80 1F 00 00 */ lwz r0, 0(r31)
/* 80396400 00393360 64 00 80 00 */ oris r0, r0, 0x8000
/* 80396404 00393364 90 1D 00 00 */ stw r0, 0(r29)
/* 80396408 00393368 48 00 0A 28 */ b lbl_80396E30
lbl_8039640C:
/* 8039640C 0039336C 57 80 06 3F */ clrlwi. r0, r28, 0x18
/* 80396410 00393370 41 82 03 44 */ beq lbl_80396754
/* 80396414 00393374 A0 1F 00 04 */ lhz r0, 4(r31)
/* 80396418 00393378 38 60 00 05 */ li r3, 5
/* 8039641C 0039337C 28 00 00 05 */ cmplwi r0, 5
/* 80396420 00393380 41 80 00 08 */ blt lbl_80396428
/* 80396424 00393384 7C 03 03 78 */ mr r3, r0
lbl_80396428:
/* 80396428 00393388 54 80 07 FF */ clrlwi. r0, r4, 0x1f
/* 8039642C 0039338C 54 7E 04 3E */ clrlwi r30, r3, 0x10
/* 80396430 00393390 41 82 01 10 */ beq lbl_80396540
/* 80396434 00393394 54 E3 00 7E */ clrlwi r3, r7, 1
/* 80396438 00393398 48 00 00 20 */ b lbl_80396458
lbl_8039643C:
/* 8039643C 0039339C 80 06 00 0C */ lwz r0, 0xc(r6)
/* 80396440 003933A0 7C 00 18 40 */ cmplw r0, r3
/* 80396444 003933A4 40 82 00 10 */ bne lbl_80396454
/* 80396448 003933A8 88 66 00 09 */ lbz r3, 9(r6)
/* 8039644C 003933AC 50 E3 00 00 */ rlwimi r3, r7, 0, 0, 0
/* 80396450 003933B0 48 00 00 40 */ b lbl_80396490
lbl_80396454:
/* 80396454 003933B4 80 C6 00 00 */ lwz r6, 0(r6)
lbl_80396458:
/* 80396458 003933B8 28 06 00 00 */ cmplwi r6, 0
/* 8039645C 003933BC 40 82 FF E0 */ bne lbl_8039643C
/* 80396460 003933C0 80 8D AE 40 */ lwz r4, seqPausedRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80396464 003933C4 48 00 00 20 */ b lbl_80396484
lbl_80396468:
/* 80396468 003933C8 80 04 00 0C */ lwz r0, 0xc(r4)
/* 8039646C 003933CC 7C 00 18 40 */ cmplw r0, r3
/* 80396470 003933D0 40 82 00 10 */ bne lbl_80396480
/* 80396474 003933D4 88 64 00 09 */ lbz r3, 9(r4)
/* 80396478 003933D8 50 E3 00 00 */ rlwimi r3, r7, 0, 0, 0
/* 8039647C 003933DC 48 00 00 14 */ b lbl_80396490
lbl_80396480:
/* 80396480 003933E0 80 84 00 00 */ lwz r4, 0(r4)
lbl_80396484:
/* 80396484 003933E4 28 04 00 00 */ cmplwi r4, 0
/* 80396488 003933E8 40 82 FF E0 */ bne lbl_80396468
/* 8039648C 003933EC 38 60 FF FF */ li r3, -1
lbl_80396490:
/* 80396490 003933F0 3C 03 00 01 */ addis r0, r3, 1
/* 80396494 003933F4 28 00 FF FF */ cmplwi r0, 0xffff
/* 80396498 003933F8 41 82 03 10 */ beq lbl_803967A8
/* 8039649C 003933FC 54 60 00 01 */ rlwinm. r0, r3, 0, 0, 0
/* 803964A0 00393400 40 82 00 74 */ bne lbl_80396514
/* 803964A4 00393404 1F 43 18 68 */ mulli r26, r3, 0x1868
2022-04-08 05:17:01 +00:00
/* 803964A8 00393408 3C 60 80 54 */ lis r3, seqInstance@ha
2022-04-02 09:50:35 +00:00
/* 803964AC 0039340C 7F C4 F3 78 */ mr r4, r30
2022-04-08 05:17:01 +00:00
/* 803964B0 00393410 38 03 39 D0 */ addi r0, r3, seqInstance@l
2022-04-02 09:50:35 +00:00
/* 803964B4 00393414 7C 60 D2 14 */ add r3, r0, r26
/* 803964B8 00393418 38 C0 00 02 */ li r6, 2
/* 803964BC 0039341C 88 A3 0E B0 */ lbz r5, 0xeb0(r3)
/* 803964C0 00393420 38 60 00 00 */ li r3, 0
/* 803964C4 00393424 48 00 4F 25 */ bl synthVolume
2022-04-08 05:17:01 +00:00
/* 803964C8 00393428 3C 60 80 54 */ lis r3, seqInstance@ha
2022-04-02 09:50:35 +00:00
/* 803964CC 0039342C 3B 60 00 00 */ li r27, 0
2022-04-08 05:17:01 +00:00
/* 803964D0 00393430 38 03 39 D0 */ addi r0, r3, seqInstance@l
2022-04-02 09:50:35 +00:00
/* 803964D4 00393434 7F 20 D2 14 */ add r25, r0, r26
/* 803964D8 00393438 3B 59 0E B0 */ addi r26, r25, 0xeb0
lbl_803964DC:
/* 803964DC 0039343C 88 B9 03 24 */ lbz r5, 0x324(r25)
/* 803964E0 00393440 88 1A 00 00 */ lbz r0, 0(r26)
/* 803964E4 00393444 7C 05 00 40 */ cmplw r5, r0
/* 803964E8 00393448 41 82 00 18 */ beq lbl_80396500
/* 803964EC 0039344C 7F C4 F3 78 */ mr r4, r30
/* 803964F0 00393450 38 60 00 00 */ li r3, 0
/* 803964F4 00393454 38 C0 00 00 */ li r6, 0
/* 803964F8 00393458 38 E0 FF FF */ li r7, -1
/* 803964FC 0039345C 48 00 4E ED */ bl synthVolume
lbl_80396500:
/* 80396500 00393460 3B 7B 00 01 */ addi r27, r27, 1
/* 80396504 00393464 3B 39 00 01 */ addi r25, r25, 1
/* 80396508 00393468 28 1B 00 40 */ cmplwi r27, 0x40
/* 8039650C 0039346C 41 80 FF D0 */ blt lbl_803964DC
/* 80396510 00393470 48 00 02 98 */ b lbl_803967A8
lbl_80396514:
/* 80396514 00393474 54 60 00 7E */ clrlwi r0, r3, 1
2022-04-08 05:17:01 +00:00
/* 80396518 00393478 3C 60 80 54 */ lis r3, seqInstance@ha
2022-04-02 09:50:35 +00:00
/* 8039651C 0039347C 1C 80 18 68 */ mulli r4, r0, 0x1868
2022-04-08 05:17:01 +00:00
/* 80396520 00393480 38 63 39 D0 */ addi r3, r3, seqInstance@l
2022-04-02 09:50:35 +00:00
/* 80396524 00393484 38 00 00 00 */ li r0, 0
/* 80396528 00393488 7C 83 22 14 */ add r4, r3, r4
/* 8039652C 0039348C 88 64 0E DA */ lbz r3, 0xeda(r4)
/* 80396530 00393490 60 63 00 08 */ ori r3, r3, 8
/* 80396534 00393494 98 64 0E DA */ stb r3, 0xeda(r4)
/* 80396538 00393498 98 04 0E CC */ stb r0, 0xecc(r4)
/* 8039653C 0039349C 48 00 02 6C */ b lbl_803967A8
lbl_80396540:
/* 80396540 003934A0 54 80 06 73 */ rlwinm. r0, r4, 0, 0x19, 0x19
/* 80396544 003934A4 41 82 01 10 */ beq lbl_80396654
/* 80396548 003934A8 54 E3 00 7E */ clrlwi r3, r7, 1
/* 8039654C 003934AC 48 00 00 20 */ b lbl_8039656C
lbl_80396550:
/* 80396550 003934B0 80 06 00 0C */ lwz r0, 0xc(r6)
/* 80396554 003934B4 7C 00 18 40 */ cmplw r0, r3
/* 80396558 003934B8 40 82 00 10 */ bne lbl_80396568
/* 8039655C 003934BC 88 66 00 09 */ lbz r3, 9(r6)
/* 80396560 003934C0 50 E3 00 00 */ rlwimi r3, r7, 0, 0, 0
/* 80396564 003934C4 48 00 00 40 */ b lbl_803965A4
lbl_80396568:
/* 80396568 003934C8 80 C6 00 00 */ lwz r6, 0(r6)
lbl_8039656C:
/* 8039656C 003934CC 28 06 00 00 */ cmplwi r6, 0
/* 80396570 003934D0 40 82 FF E0 */ bne lbl_80396550
/* 80396574 003934D4 80 8D AE 40 */ lwz r4, seqPausedRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80396578 003934D8 48 00 00 20 */ b lbl_80396598
lbl_8039657C:
/* 8039657C 003934DC 80 04 00 0C */ lwz r0, 0xc(r4)
/* 80396580 003934E0 7C 00 18 40 */ cmplw r0, r3
/* 80396584 003934E4 40 82 00 10 */ bne lbl_80396594
/* 80396588 003934E8 88 64 00 09 */ lbz r3, 9(r4)
/* 8039658C 003934EC 50 E3 00 00 */ rlwimi r3, r7, 0, 0, 0
/* 80396590 003934F0 48 00 00 14 */ b lbl_803965A4
lbl_80396594:
/* 80396594 003934F4 80 84 00 00 */ lwz r4, 0(r4)
lbl_80396598:
/* 80396598 003934F8 28 04 00 00 */ cmplwi r4, 0
/* 8039659C 003934FC 40 82 FF E0 */ bne lbl_8039657C
/* 803965A0 00393500 38 60 FF FF */ li r3, -1
lbl_803965A4:
/* 803965A4 00393504 3C 03 00 01 */ addis r0, r3, 1
/* 803965A8 00393508 28 00 FF FF */ cmplwi r0, 0xffff
/* 803965AC 0039350C 41 82 01 FC */ beq lbl_803967A8
/* 803965B0 00393510 54 60 00 01 */ rlwinm. r0, r3, 0, 0, 0
/* 803965B4 00393514 40 82 00 74 */ bne lbl_80396628
/* 803965B8 00393518 1F 23 18 68 */ mulli r25, r3, 0x1868
2022-04-08 05:17:01 +00:00
/* 803965BC 0039351C 3C 60 80 54 */ lis r3, seqInstance@ha
2022-04-02 09:50:35 +00:00
/* 803965C0 00393520 7F C4 F3 78 */ mr r4, r30
2022-04-08 05:17:01 +00:00
/* 803965C4 00393524 38 03 39 D0 */ addi r0, r3, seqInstance@l
2022-04-02 09:50:35 +00:00
/* 803965C8 00393528 7C 60 CA 14 */ add r3, r0, r25
/* 803965CC 0039352C 38 C0 00 03 */ li r6, 3
/* 803965D0 00393530 88 A3 0E B0 */ lbz r5, 0xeb0(r3)
/* 803965D4 00393534 38 60 00 00 */ li r3, 0
/* 803965D8 00393538 48 00 4E 11 */ bl synthVolume
2022-04-08 05:17:01 +00:00
/* 803965DC 0039353C 3C 60 80 54 */ lis r3, seqInstance@ha
2022-04-02 09:50:35 +00:00
/* 803965E0 00393540 3B 60 00 00 */ li r27, 0
2022-04-08 05:17:01 +00:00
/* 803965E4 00393544 38 03 39 D0 */ addi r0, r3, seqInstance@l
2022-04-02 09:50:35 +00:00
/* 803965E8 00393548 7F 20 CA 14 */ add r25, r0, r25
/* 803965EC 0039354C 3B 59 0E B0 */ addi r26, r25, 0xeb0
lbl_803965F0:
/* 803965F0 00393550 88 B9 03 24 */ lbz r5, 0x324(r25)
/* 803965F4 00393554 88 1A 00 00 */ lbz r0, 0(r26)
/* 803965F8 00393558 7C 05 00 40 */ cmplw r5, r0
/* 803965FC 0039355C 41 82 00 18 */ beq lbl_80396614
/* 80396600 00393560 7F C4 F3 78 */ mr r4, r30
/* 80396604 00393564 38 60 00 00 */ li r3, 0
/* 80396608 00393568 38 C0 00 00 */ li r6, 0
/* 8039660C 0039356C 38 E0 FF FF */ li r7, -1
/* 80396610 00393570 48 00 4D D9 */ bl synthVolume
lbl_80396614:
/* 80396614 00393574 3B 7B 00 01 */ addi r27, r27, 1
/* 80396618 00393578 3B 39 00 01 */ addi r25, r25, 1
/* 8039661C 0039357C 28 1B 00 40 */ cmplwi r27, 0x40
/* 80396620 00393580 41 80 FF D0 */ blt lbl_803965F0
/* 80396624 00393584 48 00 01 84 */ b lbl_803967A8
lbl_80396628:
/* 80396628 00393588 54 60 00 7E */ clrlwi r0, r3, 1
2022-04-08 05:17:01 +00:00
/* 8039662C 0039358C 3C 60 80 54 */ lis r3, seqInstance@ha
2022-04-02 09:50:35 +00:00
/* 80396630 00393590 1C 80 18 68 */ mulli r4, r0, 0x1868
2022-04-08 05:17:01 +00:00
/* 80396634 00393594 38 63 39 D0 */ addi r3, r3, seqInstance@l
2022-04-02 09:50:35 +00:00
/* 80396638 00393598 38 00 00 00 */ li r0, 0
/* 8039663C 0039359C 7C 83 22 14 */ add r4, r3, r4
/* 80396640 003935A0 88 64 0E DA */ lbz r3, 0xeda(r4)
/* 80396644 003935A4 60 63 00 80 */ ori r3, r3, 0x80
/* 80396648 003935A8 98 64 0E DA */ stb r3, 0xeda(r4)
/* 8039664C 003935AC 98 04 0E CC */ stb r0, 0xecc(r4)
/* 80396650 003935B0 48 00 01 58 */ b lbl_803967A8
lbl_80396654:
/* 80396654 003935B4 54 E3 00 7E */ clrlwi r3, r7, 1
/* 80396658 003935B8 48 00 00 20 */ b lbl_80396678
lbl_8039665C:
/* 8039665C 003935BC 80 06 00 0C */ lwz r0, 0xc(r6)
/* 80396660 003935C0 7C 00 18 40 */ cmplw r0, r3
/* 80396664 003935C4 40 82 00 10 */ bne lbl_80396674
/* 80396668 003935C8 88 66 00 09 */ lbz r3, 9(r6)
/* 8039666C 003935CC 50 E3 00 00 */ rlwimi r3, r7, 0, 0, 0
/* 80396670 003935D0 48 00 00 40 */ b lbl_803966B0
lbl_80396674:
/* 80396674 003935D4 80 C6 00 00 */ lwz r6, 0(r6)
lbl_80396678:
/* 80396678 003935D8 28 06 00 00 */ cmplwi r6, 0
/* 8039667C 003935DC 40 82 FF E0 */ bne lbl_8039665C
/* 80396680 003935E0 80 8D AE 40 */ lwz r4, seqPausedRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80396684 003935E4 48 00 00 20 */ b lbl_803966A4
lbl_80396688:
/* 80396688 003935E8 80 04 00 0C */ lwz r0, 0xc(r4)
/* 8039668C 003935EC 7C 00 18 40 */ cmplw r0, r3
/* 80396690 003935F0 40 82 00 10 */ bne lbl_803966A0
/* 80396694 003935F4 88 64 00 09 */ lbz r3, 9(r4)
/* 80396698 003935F8 50 E3 00 00 */ rlwimi r3, r7, 0, 0, 0
/* 8039669C 003935FC 48 00 00 14 */ b lbl_803966B0
lbl_803966A0:
/* 803966A0 00393600 80 84 00 00 */ lwz r4, 0(r4)
lbl_803966A4:
/* 803966A4 00393604 28 04 00 00 */ cmplwi r4, 0
/* 803966A8 00393608 40 82 FF E0 */ bne lbl_80396688
/* 803966AC 0039360C 38 60 FF FF */ li r3, -1
lbl_803966B0:
/* 803966B0 00393610 3C 03 00 01 */ addis r0, r3, 1
/* 803966B4 00393614 28 00 FF FF */ cmplwi r0, 0xffff
/* 803966B8 00393618 41 82 00 F0 */ beq lbl_803967A8
/* 803966BC 0039361C 54 60 00 01 */ rlwinm. r0, r3, 0, 0, 0
/* 803966C0 00393620 40 82 00 74 */ bne lbl_80396734
/* 803966C4 00393624 1F 23 18 68 */ mulli r25, r3, 0x1868
2022-04-08 05:17:01 +00:00
/* 803966C8 00393628 3C 60 80 54 */ lis r3, seqInstance@ha
2022-04-02 09:50:35 +00:00
/* 803966CC 0039362C 7F C4 F3 78 */ mr r4, r30
2022-04-08 05:17:01 +00:00
/* 803966D0 00393630 38 03 39 D0 */ addi r0, r3, seqInstance@l
2022-04-02 09:50:35 +00:00
/* 803966D4 00393634 7C 60 CA 14 */ add r3, r0, r25
/* 803966D8 00393638 38 C0 00 01 */ li r6, 1
/* 803966DC 0039363C 88 A3 0E B0 */ lbz r5, 0xeb0(r3)
/* 803966E0 00393640 38 60 00 00 */ li r3, 0
/* 803966E4 00393644 48 00 4D 05 */ bl synthVolume
2022-04-08 05:17:01 +00:00
/* 803966E8 00393648 3C 60 80 54 */ lis r3, seqInstance@ha
2022-04-02 09:50:35 +00:00
/* 803966EC 0039364C 3B 60 00 00 */ li r27, 0
2022-04-08 05:17:01 +00:00
/* 803966F0 00393650 38 03 39 D0 */ addi r0, r3, seqInstance@l
2022-04-02 09:50:35 +00:00
/* 803966F4 00393654 7F 20 CA 14 */ add r25, r0, r25
/* 803966F8 00393658 3B 59 0E B0 */ addi r26, r25, 0xeb0
lbl_803966FC:
/* 803966FC 0039365C 88 B9 03 24 */ lbz r5, 0x324(r25)
/* 80396700 00393660 88 1A 00 00 */ lbz r0, 0(r26)
/* 80396704 00393664 7C 05 00 40 */ cmplw r5, r0
/* 80396708 00393668 41 82 00 18 */ beq lbl_80396720
/* 8039670C 0039366C 7F C4 F3 78 */ mr r4, r30
/* 80396710 00393670 38 60 00 00 */ li r3, 0
/* 80396714 00393674 38 C0 00 00 */ li r6, 0
/* 80396718 00393678 38 E0 FF FF */ li r7, -1
/* 8039671C 0039367C 48 00 4C CD */ bl synthVolume
lbl_80396720:
/* 80396720 00393680 3B 7B 00 01 */ addi r27, r27, 1
/* 80396724 00393684 3B 39 00 01 */ addi r25, r25, 1
/* 80396728 00393688 28 1B 00 40 */ cmplwi r27, 0x40
/* 8039672C 0039368C 41 80 FF D0 */ blt lbl_803966FC
/* 80396730 00393690 48 00 00 78 */ b lbl_803967A8
lbl_80396734:
/* 80396734 00393694 54 60 00 7E */ clrlwi r0, r3, 1
2022-04-08 05:17:01 +00:00
/* 80396738 00393698 3C 60 80 54 */ lis r3, seqInstance@ha
2022-04-02 09:50:35 +00:00
/* 8039673C 0039369C 1C 00 18 68 */ mulli r0, r0, 0x1868
/* 80396740 003936A0 38 80 00 00 */ li r4, 0
2022-04-08 05:17:01 +00:00
/* 80396744 003936A4 38 63 39 D0 */ addi r3, r3, seqInstance@l
2022-04-02 09:50:35 +00:00
/* 80396748 003936A8 7C 63 02 14 */ add r3, r3, r0
/* 8039674C 003936AC 90 83 0E DC */ stw r4, 0xedc(r3)
/* 80396750 003936B0 48 00 00 58 */ b lbl_803967A8
lbl_80396754:
/* 80396754 003936B4 54 80 07 FF */ clrlwi. r0, r4, 0x1f
/* 80396758 003936B8 41 82 00 1C */ beq lbl_80396774
/* 8039675C 003936BC A0 9F 00 04 */ lhz r4, 4(r31)
/* 80396760 003936C0 7C E5 3B 78 */ mr r5, r7
/* 80396764 003936C4 38 60 00 00 */ li r3, 0
/* 80396768 003936C8 38 C0 00 02 */ li r6, 2
/* 8039676C 003936CC 48 00 59 A1 */ bl sndSeqVolume
/* 80396770 003936D0 48 00 00 38 */ b lbl_803967A8
lbl_80396774:
/* 80396774 003936D4 54 80 06 73 */ rlwinm. r0, r4, 0, 0x19, 0x19
/* 80396778 003936D8 41 82 00 1C */ beq lbl_80396794
/* 8039677C 003936DC A0 9F 00 04 */ lhz r4, 4(r31)
/* 80396780 003936E0 7C E5 3B 78 */ mr r5, r7
/* 80396784 003936E4 38 60 00 00 */ li r3, 0
/* 80396788 003936E8 38 C0 00 03 */ li r6, 3
/* 8039678C 003936EC 48 00 59 81 */ bl sndSeqVolume
/* 80396790 003936F0 48 00 00 18 */ b lbl_803967A8
lbl_80396794:
/* 80396794 003936F4 A0 9F 00 04 */ lhz r4, 4(r31)
/* 80396798 003936F8 7C E5 3B 78 */ mr r5, r7
/* 8039679C 003936FC 38 60 00 00 */ li r3, 0
/* 803967A0 00393700 38 C0 00 01 */ li r6, 1
/* 803967A4 00393704 48 00 59 69 */ bl sndSeqVolume
lbl_803967A8:
/* 803967A8 00393708 28 1D 00 00 */ cmplwi r29, 0
/* 803967AC 0039370C 41 82 06 84 */ beq lbl_80396E30
/* 803967B0 00393710 88 7F 00 26 */ lbz r3, 0x26(r31)
/* 803967B4 00393714 54 60 07 BD */ rlwinm. r0, r3, 0, 0x1e, 0x1e
/* 803967B8 00393718 41 82 04 B4 */ beq lbl_80396C6C
/* 803967BC 0039371C 80 7F 00 08 */ lwz r3, 8(r31)
/* 803967C0 00393720 80 CD AE 44 */ lwz r6, seqActiveRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803967C4 00393724 54 65 00 7E */ clrlwi r5, r3, 1
/* 803967C8 00393728 7C C4 33 78 */ mr r4, r6
/* 803967CC 0039372C 48 00 00 20 */ b lbl_803967EC
lbl_803967D0:
/* 803967D0 00393730 80 04 00 0C */ lwz r0, 0xc(r4)
/* 803967D4 00393734 7C 00 28 40 */ cmplw r0, r5
/* 803967D8 00393738 40 82 00 10 */ bne lbl_803967E8
/* 803967DC 0039373C 88 84 00 09 */ lbz r4, 9(r4)
/* 803967E0 00393740 50 64 00 00 */ rlwimi r4, r3, 0, 0, 0
/* 803967E4 00393744 48 00 00 40 */ b lbl_80396824
lbl_803967E8:
/* 803967E8 00393748 80 84 00 00 */ lwz r4, 0(r4)
lbl_803967EC:
/* 803967EC 0039374C 28 04 00 00 */ cmplwi r4, 0
/* 803967F0 00393750 40 82 FF E0 */ bne lbl_803967D0
/* 803967F4 00393754 80 8D AE 40 */ lwz r4, seqPausedRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803967F8 00393758 48 00 00 20 */ b lbl_80396818
lbl_803967FC:
/* 803967FC 0039375C 80 04 00 0C */ lwz r0, 0xc(r4)
/* 80396800 00393760 7C 00 28 40 */ cmplw r0, r5
/* 80396804 00393764 40 82 00 10 */ bne lbl_80396814
/* 80396808 00393768 88 84 00 09 */ lbz r4, 9(r4)
/* 8039680C 0039376C 50 64 00 00 */ rlwimi r4, r3, 0, 0, 0
/* 80396810 00393770 48 00 00 14 */ b lbl_80396824
lbl_80396814:
/* 80396814 00393774 80 84 00 00 */ lwz r4, 0(r4)
lbl_80396818:
/* 80396818 00393778 28 04 00 00 */ cmplwi r4, 0
/* 8039681C 0039377C 40 82 FF E0 */ bne lbl_803967FC
/* 80396820 00393780 38 80 FF FF */ li r4, -1
lbl_80396824:
/* 80396824 00393784 3C 04 00 01 */ addis r0, r4, 1
/* 80396828 00393788 28 00 FF FF */ cmplwi r0, 0xffff
/* 8039682C 0039378C 41 82 04 34 */ beq lbl_80396C60
/* 80396830 00393790 57 80 06 3F */ clrlwi. r0, r28, 0x18
/* 80396834 00393794 41 82 03 D4 */ beq lbl_80396C08
/* 80396838 00393798 54 64 00 7E */ clrlwi r4, r3, 1
/* 8039683C 0039379C 48 00 00 20 */ b lbl_8039685C
lbl_80396840:
/* 80396840 003937A0 80 06 00 0C */ lwz r0, 0xc(r6)
/* 80396844 003937A4 7C 00 20 40 */ cmplw r0, r4
/* 80396848 003937A8 40 82 00 10 */ bne lbl_80396858
/* 8039684C 003937AC 88 86 00 09 */ lbz r4, 9(r6)
/* 80396850 003937B0 50 64 00 00 */ rlwimi r4, r3, 0, 0, 0
/* 80396854 003937B4 48 00 00 40 */ b lbl_80396894
lbl_80396858:
/* 80396858 003937B8 80 C6 00 00 */ lwz r6, 0(r6)
lbl_8039685C:
/* 8039685C 003937BC 28 06 00 00 */ cmplwi r6, 0
/* 80396860 003937C0 40 82 FF E0 */ bne lbl_80396840
/* 80396864 003937C4 80 AD AE 40 */ lwz r5, seqPausedRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80396868 003937C8 48 00 00 20 */ b lbl_80396888
lbl_8039686C:
/* 8039686C 003937CC 80 05 00 0C */ lwz r0, 0xc(r5)
/* 80396870 003937D0 7C 00 20 40 */ cmplw r0, r4
/* 80396874 003937D4 40 82 00 10 */ bne lbl_80396884
/* 80396878 003937D8 88 85 00 09 */ lbz r4, 9(r5)
/* 8039687C 003937DC 50 64 00 00 */ rlwimi r4, r3, 0, 0, 0
/* 80396880 003937E0 48 00 00 14 */ b lbl_80396894
lbl_80396884:
/* 80396884 003937E4 80 A5 00 00 */ lwz r5, 0(r5)
lbl_80396888:
/* 80396888 003937E8 28 05 00 00 */ cmplwi r5, 0
/* 8039688C 003937EC 40 82 FF E0 */ bne lbl_8039686C
/* 80396890 003937F0 38 80 FF FF */ li r4, -1
lbl_80396894:
/* 80396894 003937F4 54 80 00 01 */ rlwinm. r0, r4, 0, 0, 0
/* 80396898 003937F8 40 82 00 80 */ bne lbl_80396918
/* 8039689C 003937FC 1C 84 18 68 */ mulli r4, r4, 0x1868
2022-04-08 05:17:01 +00:00
/* 803968A0 00393800 3C 60 80 54 */ lis r3, seqInstance@ha
/* 803968A4 00393804 38 03 39 D0 */ addi r0, r3, seqInstance@l
2022-04-02 09:50:35 +00:00
/* 803968A8 00393808 7C 80 22 14 */ add r4, r0, r4
/* 803968AC 0039380C 88 04 00 08 */ lbz r0, 8(r4)
/* 803968B0 00393810 28 00 00 02 */ cmplwi r0, 2
/* 803968B4 00393814 40 82 00 84 */ bne lbl_80396938
/* 803968B8 00393818 80 64 00 04 */ lwz r3, 4(r4)
/* 803968BC 0039381C 28 03 00 00 */ cmplwi r3, 0
/* 803968C0 00393820 41 82 00 10 */ beq lbl_803968D0
/* 803968C4 00393824 80 04 00 00 */ lwz r0, 0(r4)
/* 803968C8 00393828 90 03 00 00 */ stw r0, 0(r3)
/* 803968CC 0039382C 48 00 00 0C */ b lbl_803968D8
lbl_803968D0:
/* 803968D0 00393830 80 04 00 00 */ lwz r0, 0(r4)
/* 803968D4 00393834 90 0D AE 40 */ stw r0, seqPausedRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
lbl_803968D8:
/* 803968D8 00393838 80 64 00 00 */ lwz r3, 0(r4)
/* 803968DC 0039383C 28 03 00 00 */ cmplwi r3, 0
/* 803968E0 00393840 41 82 00 0C */ beq lbl_803968EC
/* 803968E4 00393844 80 04 00 04 */ lwz r0, 4(r4)
/* 803968E8 00393848 90 03 00 04 */ stw r0, 4(r3)
lbl_803968EC:
/* 803968EC 0039384C 80 6D AE 44 */ lwz r3, seqActiveRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803968F0 00393850 28 03 00 00 */ cmplwi r3, 0
/* 803968F4 00393854 90 64 00 00 */ stw r3, 0(r4)
/* 803968F8 00393858 41 82 00 08 */ beq lbl_80396900
/* 803968FC 0039385C 90 83 00 04 */ stw r4, 4(r3)
lbl_80396900:
/* 80396900 00393860 38 60 00 00 */ li r3, 0
/* 80396904 00393864 38 00 00 01 */ li r0, 1
/* 80396908 00393868 90 64 00 04 */ stw r3, 4(r4)
/* 8039690C 0039386C 90 8D AE 44 */ stw r4, seqActiveRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80396910 00393870 98 04 00 08 */ stb r0, 8(r4)
/* 80396914 00393874 48 00 00 24 */ b lbl_80396938
lbl_80396918:
/* 80396918 00393878 54 80 00 7E */ clrlwi r0, r4, 1
2022-04-08 05:17:01 +00:00
/* 8039691C 0039387C 3C 60 80 54 */ lis r3, seqInstance@ha
2022-04-02 09:50:35 +00:00
/* 80396920 00393880 1C 00 18 68 */ mulli r0, r0, 0x1868
2022-04-08 05:17:01 +00:00
/* 80396924 00393884 38 63 39 D0 */ addi r3, r3, seqInstance@l
2022-04-02 09:50:35 +00:00
/* 80396928 00393888 7C 63 02 14 */ add r3, r3, r0
/* 8039692C 0039388C 88 03 0E DA */ lbz r0, 0xeda(r3)
/* 80396930 00393890 54 00 07 76 */ rlwinm r0, r0, 0, 0x1d, 0x1b
/* 80396934 00393894 98 03 0E DA */ stb r0, 0xeda(r3)
lbl_80396938:
/* 80396938 00393898 80 FF 00 08 */ lwz r7, 8(r31)
/* 8039693C 0039389C A3 DF 00 0C */ lhz r30, 0xc(r31)
/* 80396940 003938A0 8B 9F 00 18 */ lbz r28, 0x18(r31)
/* 80396944 003938A4 54 E4 00 7E */ clrlwi r4, r7, 1
/* 80396948 003938A8 80 6D AE 44 */ lwz r3, seqActiveRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 8039694C 003938AC 48 00 00 20 */ b lbl_8039696C
lbl_80396950:
/* 80396950 003938B0 80 03 00 0C */ lwz r0, 0xc(r3)
/* 80396954 003938B4 7C 00 20 40 */ cmplw r0, r4
/* 80396958 003938B8 40 82 00 10 */ bne lbl_80396968
/* 8039695C 003938BC 88 63 00 09 */ lbz r3, 9(r3)
/* 80396960 003938C0 50 E3 00 00 */ rlwimi r3, r7, 0, 0, 0
/* 80396964 003938C4 48 00 00 40 */ b lbl_803969A4
lbl_80396968:
/* 80396968 003938C8 80 63 00 00 */ lwz r3, 0(r3)
lbl_8039696C:
/* 8039696C 003938CC 28 03 00 00 */ cmplwi r3, 0
/* 80396970 003938D0 40 82 FF E0 */ bne lbl_80396950
/* 80396974 003938D4 80 6D AE 40 */ lwz r3, seqPausedRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80396978 003938D8 48 00 00 20 */ b lbl_80396998
lbl_8039697C:
/* 8039697C 003938DC 80 03 00 0C */ lwz r0, 0xc(r3)
/* 80396980 003938E0 7C 00 20 40 */ cmplw r0, r4
/* 80396984 003938E4 40 82 00 10 */ bne lbl_80396994
/* 80396988 003938E8 88 63 00 09 */ lbz r3, 9(r3)
/* 8039698C 003938EC 50 E3 00 00 */ rlwimi r3, r7, 0, 0, 0
/* 80396990 003938F0 48 00 00 14 */ b lbl_803969A4
lbl_80396994:
/* 80396994 003938F4 80 63 00 00 */ lwz r3, 0(r3)
lbl_80396998:
/* 80396998 003938F8 28 03 00 00 */ cmplwi r3, 0
/* 8039699C 003938FC 40 82 FF E0 */ bne lbl_8039697C
/* 803969A0 00393900 38 60 FF FF */ li r3, -1
lbl_803969A4:
/* 803969A4 00393904 3C 03 00 01 */ addis r0, r3, 1
/* 803969A8 00393908 28 00 FF FF */ cmplwi r0, 0xffff
/* 803969AC 0039390C 41 82 00 94 */ beq lbl_80396A40
/* 803969B0 00393910 54 60 00 01 */ rlwinm. r0, r3, 0, 0, 0
/* 803969B4 00393914 40 82 00 74 */ bne lbl_80396A28
/* 803969B8 00393918 1F 23 18 68 */ mulli r25, r3, 0x1868
2022-04-08 05:17:01 +00:00
/* 803969BC 0039391C 3C 80 80 54 */ lis r4, seqInstance@ha
2022-04-02 09:50:35 +00:00
/* 803969C0 00393920 7F 83 E3 78 */ mr r3, r28
2022-04-08 05:17:01 +00:00
/* 803969C4 00393924 38 04 39 D0 */ addi r0, r4, seqInstance@l
2022-04-02 09:50:35 +00:00
/* 803969C8 00393928 7C A0 CA 14 */ add r5, r0, r25
/* 803969CC 0039392C 7F C4 F3 78 */ mr r4, r30
/* 803969D0 00393930 88 A5 0E B0 */ lbz r5, 0xeb0(r5)
/* 803969D4 00393934 38 C0 00 00 */ li r6, 0
/* 803969D8 00393938 48 00 4A 11 */ bl synthVolume
2022-04-08 05:17:01 +00:00
/* 803969DC 0039393C 3C 60 80 54 */ lis r3, seqInstance@ha
2022-04-02 09:50:35 +00:00
/* 803969E0 00393940 3B 60 00 00 */ li r27, 0
2022-04-08 05:17:01 +00:00
/* 803969E4 00393944 38 03 39 D0 */ addi r0, r3, seqInstance@l
2022-04-02 09:50:35 +00:00
/* 803969E8 00393948 7F 20 CA 14 */ add r25, r0, r25
/* 803969EC 0039394C 3B 59 0E B0 */ addi r26, r25, 0xeb0
lbl_803969F0:
/* 803969F0 00393950 88 B9 03 24 */ lbz r5, 0x324(r25)
/* 803969F4 00393954 88 1A 00 00 */ lbz r0, 0(r26)
/* 803969F8 00393958 7C 05 00 40 */ cmplw r5, r0
/* 803969FC 0039395C 41 82 00 18 */ beq lbl_80396A14
/* 80396A00 00393960 7F 83 E3 78 */ mr r3, r28
/* 80396A04 00393964 7F C4 F3 78 */ mr r4, r30
/* 80396A08 00393968 38 C0 00 00 */ li r6, 0
/* 80396A0C 0039396C 38 E0 FF FF */ li r7, -1
/* 80396A10 00393970 48 00 49 D9 */ bl synthVolume
lbl_80396A14:
/* 80396A14 00393974 3B 7B 00 01 */ addi r27, r27, 1
/* 80396A18 00393978 3B 39 00 01 */ addi r25, r25, 1
/* 80396A1C 0039397C 28 1B 00 40 */ cmplwi r27, 0x40
/* 80396A20 00393980 41 80 FF D0 */ blt lbl_803969F0
/* 80396A24 00393984 48 00 00 1C */ b lbl_80396A40
lbl_80396A28:
/* 80396A28 00393988 54 60 00 7E */ clrlwi r0, r3, 1
2022-04-08 05:17:01 +00:00
/* 80396A2C 0039398C 3C 60 80 54 */ lis r3, seqInstance@ha
2022-04-02 09:50:35 +00:00
/* 80396A30 00393990 1C 00 18 68 */ mulli r0, r0, 0x1868
2022-04-08 05:17:01 +00:00
/* 80396A34 00393994 38 63 39 D0 */ addi r3, r3, seqInstance@l
2022-04-02 09:50:35 +00:00
/* 80396A38 00393998 7C 63 02 14 */ add r3, r3, r0
/* 80396A3C 0039399C 9B 83 0E CC */ stb r28, 0xecc(r3)
lbl_80396A40:
/* 80396A40 003939A0 88 1F 00 26 */ lbz r0, 0x26(r31)
/* 80396A44 003939A4 54 00 06 F7 */ rlwinm. r0, r0, 0, 0x1b, 0x1b
/* 80396A48 003939A8 41 82 00 C8 */ beq lbl_80396B10
/* 80396A4C 003939AC 80 7F 00 08 */ lwz r3, 8(r31)
/* 80396A50 003939B0 80 BF 00 20 */ lwz r5, 0x20(r31)
/* 80396A54 003939B4 80 9F 00 1C */ lwz r4, 0x1c(r31)
/* 80396A58 003939B8 54 67 00 7E */ clrlwi r7, r3, 1
/* 80396A5C 003939BC 80 CD AE 44 */ lwz r6, seqActiveRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80396A60 003939C0 48 00 00 20 */ b lbl_80396A80
lbl_80396A64:
/* 80396A64 003939C4 80 06 00 0C */ lwz r0, 0xc(r6)
/* 80396A68 003939C8 7C 00 38 40 */ cmplw r0, r7
/* 80396A6C 003939CC 40 82 00 10 */ bne lbl_80396A7C
/* 80396A70 003939D0 88 C6 00 09 */ lbz r6, 9(r6)
/* 80396A74 003939D4 50 66 00 00 */ rlwimi r6, r3, 0, 0, 0
/* 80396A78 003939D8 48 00 00 40 */ b lbl_80396AB8
lbl_80396A7C:
/* 80396A7C 003939DC 80 C6 00 00 */ lwz r6, 0(r6)
lbl_80396A80:
/* 80396A80 003939E0 28 06 00 00 */ cmplwi r6, 0
/* 80396A84 003939E4 40 82 FF E0 */ bne lbl_80396A64
/* 80396A88 003939E8 80 CD AE 40 */ lwz r6, seqPausedRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80396A8C 003939EC 48 00 00 20 */ b lbl_80396AAC
lbl_80396A90:
/* 80396A90 003939F0 80 06 00 0C */ lwz r0, 0xc(r6)
/* 80396A94 003939F4 7C 00 38 40 */ cmplw r0, r7
/* 80396A98 003939F8 40 82 00 10 */ bne lbl_80396AA8
/* 80396A9C 003939FC 88 C6 00 09 */ lbz r6, 9(r6)
/* 80396AA0 00393A00 50 66 00 00 */ rlwimi r6, r3, 0, 0, 0
/* 80396AA4 00393A04 48 00 00 14 */ b lbl_80396AB8
lbl_80396AA8:
/* 80396AA8 00393A08 80 C6 00 00 */ lwz r6, 0(r6)
lbl_80396AAC:
/* 80396AAC 00393A0C 28 06 00 00 */ cmplwi r6, 0
/* 80396AB0 00393A10 40 82 FF E0 */ bne lbl_80396A90
/* 80396AB4 00393A14 38 C0 FF FF */ li r6, -1
lbl_80396AB8:
/* 80396AB8 00393A18 3C 06 00 01 */ addis r0, r6, 1
/* 80396ABC 00393A1C 28 00 FF FF */ cmplwi r0, 0xffff
/* 80396AC0 00393A20 41 82 00 50 */ beq lbl_80396B10
/* 80396AC4 00393A24 54 C0 00 01 */ rlwinm. r0, r6, 0, 0, 0
/* 80396AC8 00393A28 40 82 00 20 */ bne lbl_80396AE8
/* 80396ACC 00393A2C 1C C6 18 68 */ mulli r6, r6, 0x1868
2022-04-08 05:17:01 +00:00
/* 80396AD0 00393A30 3C 60 80 54 */ lis r3, seqInstance@ha
/* 80396AD4 00393A34 38 03 39 D0 */ addi r0, r3, seqInstance@l
2022-04-02 09:50:35 +00:00
/* 80396AD8 00393A38 7C 60 32 14 */ add r3, r0, r6
/* 80396ADC 00393A3C 90 83 01 1C */ stw r4, 0x11c(r3)
/* 80396AE0 00393A40 90 A3 01 20 */ stw r5, 0x120(r3)
/* 80396AE4 00393A44 48 00 00 2C */ b lbl_80396B10
lbl_80396AE8:
/* 80396AE8 00393A48 54 C0 00 7E */ clrlwi r0, r6, 1
2022-04-08 05:17:01 +00:00
/* 80396AEC 00393A4C 3C 60 80 54 */ lis r3, seqInstance@ha
2022-04-02 09:50:35 +00:00
/* 80396AF0 00393A50 1C C0 18 68 */ mulli r6, r0, 0x1868
2022-04-08 05:17:01 +00:00
/* 80396AF4 00393A54 38 03 39 D0 */ addi r0, r3, seqInstance@l
2022-04-02 09:50:35 +00:00
/* 80396AF8 00393A58 7C 60 32 14 */ add r3, r0, r6
/* 80396AFC 00393A5C 88 03 0E DA */ lbz r0, 0xeda(r3)
/* 80396B00 00393A60 60 00 00 10 */ ori r0, r0, 0x10
/* 80396B04 00393A64 98 03 0E DA */ stb r0, 0xeda(r3)
/* 80396B08 00393A68 90 83 0E D0 */ stw r4, 0xed0(r3)
/* 80396B0C 00393A6C 90 A3 0E D4 */ stw r5, 0xed4(r3)
lbl_80396B10:
/* 80396B10 00393A70 88 1F 00 26 */ lbz r0, 0x26(r31)
/* 80396B14 00393A74 54 00 06 B5 */ rlwinm. r0, r0, 0, 0x1a, 0x1a
/* 80396B18 00393A78 41 82 01 3C */ beq lbl_80396C54
/* 80396B1C 00393A7C 80 7F 00 08 */ lwz r3, 8(r31)
/* 80396B20 00393A80 A0 BF 00 24 */ lhz r5, 0x24(r31)
/* 80396B24 00393A84 80 8D AE 44 */ lwz r4, seqActiveRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80396B28 00393A88 54 66 00 7E */ clrlwi r6, r3, 1
/* 80396B2C 00393A8C 48 00 00 20 */ b lbl_80396B4C
lbl_80396B30:
/* 80396B30 00393A90 80 04 00 0C */ lwz r0, 0xc(r4)
/* 80396B34 00393A94 7C 00 30 40 */ cmplw r0, r6
/* 80396B38 00393A98 40 82 00 10 */ bne lbl_80396B48
/* 80396B3C 00393A9C 88 84 00 09 */ lbz r4, 9(r4)
/* 80396B40 00393AA0 50 64 00 00 */ rlwimi r4, r3, 0, 0, 0
/* 80396B44 00393AA4 48 00 00 40 */ b lbl_80396B84
lbl_80396B48:
/* 80396B48 00393AA8 80 84 00 00 */ lwz r4, 0(r4)
lbl_80396B4C:
/* 80396B4C 00393AAC 28 04 00 00 */ cmplwi r4, 0
/* 80396B50 00393AB0 40 82 FF E0 */ bne lbl_80396B30
/* 80396B54 00393AB4 80 8D AE 40 */ lwz r4, seqPausedRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80396B58 00393AB8 48 00 00 20 */ b lbl_80396B78
lbl_80396B5C:
/* 80396B5C 00393ABC 80 04 00 0C */ lwz r0, 0xc(r4)
/* 80396B60 00393AC0 7C 00 30 40 */ cmplw r0, r6
/* 80396B64 00393AC4 40 82 00 10 */ bne lbl_80396B74
/* 80396B68 00393AC8 88 84 00 09 */ lbz r4, 9(r4)
/* 80396B6C 00393ACC 50 64 00 00 */ rlwimi r4, r3, 0, 0, 0
/* 80396B70 00393AD0 48 00 00 14 */ b lbl_80396B84
lbl_80396B74:
/* 80396B74 00393AD4 80 84 00 00 */ lwz r4, 0(r4)
lbl_80396B78:
/* 80396B78 00393AD8 28 04 00 00 */ cmplwi r4, 0
/* 80396B7C 00393ADC 40 82 FF E0 */ bne lbl_80396B5C
/* 80396B80 00393AE0 38 80 FF FF */ li r4, -1
lbl_80396B84:
/* 80396B84 00393AE4 54 80 00 01 */ rlwinm. r0, r4, 0, 0, 0
/* 80396B88 00393AE8 40 82 00 58 */ bne lbl_80396BE0
/* 80396B8C 00393AEC 1C 84 18 68 */ mulli r4, r4, 0x1868
2022-04-08 05:17:01 +00:00
/* 80396B90 00393AF0 3C 60 80 54 */ lis r3, seqInstance@ha
/* 80396B94 00393AF4 38 03 39 D0 */ addi r0, r3, seqInstance@l
2022-04-02 09:50:35 +00:00
/* 80396B98 00393AF8 7C 60 22 14 */ add r3, r0, r4
/* 80396B9C 00393AFC B0 A3 15 1A */ sth r5, 0x151a(r3)
/* 80396BA0 00393B00 B0 A3 15 52 */ sth r5, 0x1552(r3)
/* 80396BA4 00393B04 B0 A3 15 8A */ sth r5, 0x158a(r3)
/* 80396BA8 00393B08 B0 A3 15 C2 */ sth r5, 0x15c2(r3)
/* 80396BAC 00393B0C B0 A3 15 FA */ sth r5, 0x15fa(r3)
/* 80396BB0 00393B10 B0 A3 16 32 */ sth r5, 0x1632(r3)
/* 80396BB4 00393B14 B0 A3 16 6A */ sth r5, 0x166a(r3)
/* 80396BB8 00393B18 B0 A3 16 A2 */ sth r5, 0x16a2(r3)
/* 80396BBC 00393B1C B0 A3 16 DA */ sth r5, 0x16da(r3)
/* 80396BC0 00393B20 B0 A3 17 12 */ sth r5, 0x1712(r3)
/* 80396BC4 00393B24 B0 A3 17 4A */ sth r5, 0x174a(r3)
/* 80396BC8 00393B28 B0 A3 17 82 */ sth r5, 0x1782(r3)
/* 80396BCC 00393B2C B0 A3 17 BA */ sth r5, 0x17ba(r3)
/* 80396BD0 00393B30 B0 A3 17 F2 */ sth r5, 0x17f2(r3)
/* 80396BD4 00393B34 B0 A3 18 2A */ sth r5, 0x182a(r3)
/* 80396BD8 00393B38 B0 A3 18 62 */ sth r5, 0x1862(r3)
/* 80396BDC 00393B3C 48 00 00 78 */ b lbl_80396C54
lbl_80396BE0:
/* 80396BE0 00393B40 54 80 00 7E */ clrlwi r0, r4, 1
2022-04-08 05:17:01 +00:00
/* 80396BE4 00393B44 3C 60 80 54 */ lis r3, seqInstance@ha
2022-04-02 09:50:35 +00:00
/* 80396BE8 00393B48 1C 80 18 68 */ mulli r4, r0, 0x1868
2022-04-08 05:17:01 +00:00
/* 80396BEC 00393B4C 38 03 39 D0 */ addi r0, r3, seqInstance@l
2022-04-02 09:50:35 +00:00
/* 80396BF0 00393B50 7C 60 22 14 */ add r3, r0, r4
/* 80396BF4 00393B54 88 03 0E DA */ lbz r0, 0xeda(r3)
/* 80396BF8 00393B58 60 00 00 20 */ ori r0, r0, 0x20
/* 80396BFC 00393B5C 98 03 0E DA */ stb r0, 0xeda(r3)
/* 80396C00 00393B60 B0 A3 0E D8 */ sth r5, 0xed8(r3)
/* 80396C04 00393B64 48 00 00 50 */ b lbl_80396C54
lbl_80396C08:
/* 80396C08 00393B68 48 00 54 75 */ bl sndSeqContinue
/* 80396C0C 00393B6C 88 7F 00 18 */ lbz r3, 0x18(r31)
/* 80396C10 00393B70 38 C0 00 00 */ li r6, 0
/* 80396C14 00393B74 A0 9F 00 0C */ lhz r4, 0xc(r31)
/* 80396C18 00393B78 80 BF 00 08 */ lwz r5, 8(r31)
/* 80396C1C 00393B7C 48 00 54 F1 */ bl sndSeqVolume
/* 80396C20 00393B80 88 1F 00 26 */ lbz r0, 0x26(r31)
/* 80396C24 00393B84 54 00 06 F7 */ rlwinm. r0, r0, 0, 0x1b, 0x1b
/* 80396C28 00393B88 41 82 00 14 */ beq lbl_80396C3C
/* 80396C2C 00393B8C 80 7F 00 08 */ lwz r3, 8(r31)
/* 80396C30 00393B90 80 9F 00 1C */ lwz r4, 0x1c(r31)
/* 80396C34 00393B94 80 BF 00 20 */ lwz r5, 0x20(r31)
/* 80396C38 00393B98 48 00 54 7D */ bl sndSeqMute
lbl_80396C3C:
/* 80396C3C 00393B9C 88 1F 00 26 */ lbz r0, 0x26(r31)
/* 80396C40 00393BA0 54 00 06 B5 */ rlwinm. r0, r0, 0, 0x1a, 0x1a
/* 80396C44 00393BA4 41 82 00 10 */ beq lbl_80396C54
/* 80396C48 00393BA8 80 7F 00 08 */ lwz r3, 8(r31)
/* 80396C4C 00393BAC A0 9F 00 24 */ lhz r4, 0x24(r31)
/* 80396C50 00393BB0 48 00 53 E5 */ bl sndSeqSpeed
lbl_80396C54:
/* 80396C54 00393BB4 80 1F 00 08 */ lwz r0, 8(r31)
/* 80396C58 00393BB8 90 1D 00 00 */ stw r0, 0(r29)
/* 80396C5C 00393BBC 48 00 01 D4 */ b lbl_80396E30
lbl_80396C60:
/* 80396C60 00393BC0 38 00 FF FF */ li r0, -1
/* 80396C64 00393BC4 90 1D 00 00 */ stw r0, 0(r29)
/* 80396C68 00393BC8 48 00 01 C8 */ b lbl_80396E30
lbl_80396C6C:
/* 80396C6C 00393BCC 54 60 07 39 */ rlwinm. r0, r3, 0, 0x1c, 0x1c
/* 80396C70 00393BD0 38 60 00 04 */ li r3, 4
/* 80396C74 00393BD4 90 61 00 08 */ stw r3, 8(r1)
/* 80396C78 00393BD8 41 82 00 0C */ beq lbl_80396C84
/* 80396C7C 00393BDC 60 60 00 10 */ ori r0, r3, 0x10
/* 80396C80 00393BE0 90 01 00 08 */ stw r0, 8(r1)
lbl_80396C84:
/* 80396C84 00393BE4 88 1F 00 26 */ lbz r0, 0x26(r31)
/* 80396C88 00393BE8 54 00 06 B5 */ rlwinm. r0, r0, 0, 0x1a, 0x1a
/* 80396C8C 00393BEC 41 82 00 18 */ beq lbl_80396CA4
/* 80396C90 00393BF0 80 01 00 08 */ lwz r0, 8(r1)
/* 80396C94 00393BF4 60 00 00 02 */ ori r0, r0, 2
/* 80396C98 00393BF8 90 01 00 08 */ stw r0, 8(r1)
/* 80396C9C 00393BFC A0 1F 00 24 */ lhz r0, 0x24(r31)
/* 80396CA0 00393C00 B0 01 00 14 */ sth r0, 0x14(r1)
lbl_80396CA4:
/* 80396CA4 00393C04 88 1F 00 26 */ lbz r0, 0x26(r31)
/* 80396CA8 00393C08 54 00 06 F7 */ rlwinm. r0, r0, 0, 0x1b, 0x1b
/* 80396CAC 00393C0C 41 82 00 20 */ beq lbl_80396CCC
/* 80396CB0 00393C10 80 01 00 08 */ lwz r0, 8(r1)
/* 80396CB4 00393C14 60 00 00 01 */ ori r0, r0, 1
/* 80396CB8 00393C18 90 01 00 08 */ stw r0, 8(r1)
/* 80396CBC 00393C1C 80 1F 00 1C */ lwz r0, 0x1c(r31)
/* 80396CC0 00393C20 90 01 00 0C */ stw r0, 0xc(r1)
/* 80396CC4 00393C24 80 1F 00 20 */ lwz r0, 0x20(r31)
/* 80396CC8 00393C28 90 01 00 10 */ stw r0, 0x10(r1)
lbl_80396CCC:
/* 80396CCC 00393C2C A0 7F 00 0C */ lhz r3, 0xc(r31)
/* 80396CD0 00393C30 57 80 06 3F */ clrlwi. r0, r28, 0x18
/* 80396CD4 00393C34 38 00 00 00 */ li r0, 0
/* 80396CD8 00393C38 B0 61 00 16 */ sth r3, 0x16(r1)
/* 80396CDC 00393C3C 88 7F 00 18 */ lbz r3, 0x18(r31)
/* 80396CE0 00393C40 98 61 00 18 */ stb r3, 0x18(r1)
/* 80396CE4 00393C44 98 01 00 20 */ stb r0, 0x20(r1)
/* 80396CE8 00393C48 41 82 01 04 */ beq lbl_80396DEC
/* 80396CEC 00393C4C A0 7F 00 14 */ lhz r3, 0x14(r31)
/* 80396CF0 00393C50 38 C1 00 08 */ addi r6, r1, 8
/* 80396CF4 00393C54 A0 9F 00 16 */ lhz r4, 0x16(r31)
/* 80396CF8 00393C58 38 E0 00 01 */ li r7, 1
/* 80396CFC 00393C5C 80 BF 00 10 */ lwz r5, 0x10(r31)
/* 80396D00 00393C60 89 1F 00 19 */ lbz r8, 0x19(r31)
2022-04-09 06:40:18 +00:00
/* 80396D04 00393C64 48 01 3D 91 */ bl sndSeqPlaySong
2022-04-02 09:50:35 +00:00
/* 80396D08 00393C68 3C 03 00 01 */ addis r0, r3, 1
/* 80396D0C 00393C6C 90 7D 00 00 */ stw r3, 0(r29)
/* 80396D10 00393C70 28 00 FF FF */ cmplwi r0, 0xffff
/* 80396D14 00393C74 41 82 01 1C */ beq lbl_80396E30
/* 80396D18 00393C78 88 1F 00 26 */ lbz r0, 0x26(r31)
/* 80396D1C 00393C7C 54 00 06 31 */ rlwinm. r0, r0, 0, 0x18, 0x18
/* 80396D20 00393C80 41 82 01 10 */ beq lbl_80396E30
/* 80396D24 00393C84 80 7D 00 00 */ lwz r3, 0(r29)
/* 80396D28 00393C88 80 8D AE 44 */ lwz r4, seqActiveRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80396D2C 00393C8C 54 65 00 7E */ clrlwi r5, r3, 1
/* 80396D30 00393C90 48 00 00 20 */ b lbl_80396D50
lbl_80396D34:
/* 80396D34 00393C94 80 04 00 0C */ lwz r0, 0xc(r4)
/* 80396D38 00393C98 7C 00 28 40 */ cmplw r0, r5
/* 80396D3C 00393C9C 40 82 00 10 */ bne lbl_80396D4C
/* 80396D40 00393CA0 88 84 00 09 */ lbz r4, 9(r4)
/* 80396D44 00393CA4 50 64 00 00 */ rlwimi r4, r3, 0, 0, 0
/* 80396D48 00393CA8 48 00 00 40 */ b lbl_80396D88
lbl_80396D4C:
/* 80396D4C 00393CAC 80 84 00 00 */ lwz r4, 0(r4)
lbl_80396D50:
/* 80396D50 00393CB0 28 04 00 00 */ cmplwi r4, 0
/* 80396D54 00393CB4 40 82 FF E0 */ bne lbl_80396D34
/* 80396D58 00393CB8 80 8D AE 40 */ lwz r4, seqPausedRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80396D5C 00393CBC 48 00 00 20 */ b lbl_80396D7C
lbl_80396D60:
/* 80396D60 00393CC0 80 04 00 0C */ lwz r0, 0xc(r4)
/* 80396D64 00393CC4 7C 00 28 40 */ cmplw r0, r5
/* 80396D68 00393CC8 40 82 00 10 */ bne lbl_80396D78
/* 80396D6C 00393CCC 88 84 00 09 */ lbz r4, 9(r4)
/* 80396D70 00393CD0 50 64 00 00 */ rlwimi r4, r3, 0, 0, 0
/* 80396D74 00393CD4 48 00 00 14 */ b lbl_80396D88
lbl_80396D78:
/* 80396D78 00393CD8 80 84 00 00 */ lwz r4, 0(r4)
lbl_80396D7C:
/* 80396D7C 00393CDC 28 04 00 00 */ cmplwi r4, 0
/* 80396D80 00393CE0 40 82 FF E0 */ bne lbl_80396D60
/* 80396D84 00393CE4 38 80 FF FF */ li r4, -1
lbl_80396D88:
/* 80396D88 00393CE8 3C 04 00 01 */ addis r0, r4, 1
/* 80396D8C 00393CEC 28 00 FF FF */ cmplwi r0, 0xffff
/* 80396D90 00393CF0 41 82 00 A0 */ beq lbl_80396E30
/* 80396D94 00393CF4 54 80 00 01 */ rlwinm. r0, r4, 0, 0, 0
/* 80396D98 00393CF8 40 82 00 24 */ bne lbl_80396DBC
/* 80396D9C 00393CFC 1C A4 18 68 */ mulli r5, r4, 0x1868
2022-04-08 05:17:01 +00:00
/* 80396DA0 00393D00 3C 60 80 54 */ lis r3, seqInstance@ha
2022-04-02 09:50:35 +00:00
/* 80396DA4 00393D04 38 80 00 00 */ li r4, 0
2022-04-08 05:17:01 +00:00
/* 80396DA8 00393D08 38 03 39 D0 */ addi r0, r3, seqInstance@l
2022-04-02 09:50:35 +00:00
/* 80396DAC 00393D0C 7C 60 2A 14 */ add r3, r0, r5
/* 80396DB0 00393D10 90 83 01 1C */ stw r4, 0x11c(r3)
/* 80396DB4 00393D14 90 83 01 20 */ stw r4, 0x120(r3)
/* 80396DB8 00393D18 48 00 00 78 */ b lbl_80396E30
lbl_80396DBC:
/* 80396DBC 00393D1C 54 80 00 7E */ clrlwi r0, r4, 1
2022-04-08 05:17:01 +00:00
/* 80396DC0 00393D20 3C 60 80 54 */ lis r3, seqInstance@ha
2022-04-02 09:50:35 +00:00
/* 80396DC4 00393D24 1C 80 18 68 */ mulli r4, r0, 0x1868
2022-04-08 05:17:01 +00:00
/* 80396DC8 00393D28 38 63 39 D0 */ addi r3, r3, seqInstance@l
2022-04-02 09:50:35 +00:00
/* 80396DCC 00393D2C 38 00 00 00 */ li r0, 0
/* 80396DD0 00393D30 7C 83 22 14 */ add r4, r3, r4
/* 80396DD4 00393D34 88 64 0E DA */ lbz r3, 0xeda(r4)
/* 80396DD8 00393D38 60 63 00 10 */ ori r3, r3, 0x10
/* 80396DDC 00393D3C 98 64 0E DA */ stb r3, 0xeda(r4)
/* 80396DE0 00393D40 90 04 0E D0 */ stw r0, 0xed0(r4)
/* 80396DE4 00393D44 90 04 0E D4 */ stw r0, 0xed4(r4)
/* 80396DE8 00393D48 48 00 00 48 */ b lbl_80396E30
lbl_80396DEC:
/* 80396DEC 00393D4C A0 7F 00 14 */ lhz r3, 0x14(r31)
/* 80396DF0 00393D50 38 C1 00 08 */ addi r6, r1, 8
/* 80396DF4 00393D54 A0 9F 00 16 */ lhz r4, 0x16(r31)
/* 80396DF8 00393D58 80 BF 00 10 */ lwz r5, 0x10(r31)
/* 80396DFC 00393D5C 88 FF 00 19 */ lbz r7, 0x19(r31)
/* 80396E00 00393D60 48 01 3D E1 */ bl sndSeqPlayEx
/* 80396E04 00393D64 3C 03 00 01 */ addis r0, r3, 1
/* 80396E08 00393D68 90 7D 00 00 */ stw r3, 0(r29)
/* 80396E0C 00393D6C 28 00 FF FF */ cmplwi r0, 0xffff
/* 80396E10 00393D70 41 82 00 20 */ beq lbl_80396E30
/* 80396E14 00393D74 88 1F 00 26 */ lbz r0, 0x26(r31)
/* 80396E18 00393D78 54 00 06 31 */ rlwinm. r0, r0, 0, 0x18, 0x18
/* 80396E1C 00393D7C 41 82 00 14 */ beq lbl_80396E30
/* 80396E20 00393D80 80 7D 00 00 */ lwz r3, 0(r29)
/* 80396E24 00393D84 38 80 00 00 */ li r4, 0
/* 80396E28 00393D88 38 A0 00 00 */ li r5, 0
/* 80396E2C 00393D8C 48 00 52 89 */ bl sndSeqMute
lbl_80396E30:
/* 80396E30 00393D90 39 61 00 50 */ addi r11, r1, 0x50
/* 80396E34 00393D94 4B FF 2C 8D */ bl _restgpr_25
/* 80396E38 00393D98 80 01 00 54 */ lwz r0, 0x54(r1)
/* 80396E3C 00393D9C 7C 08 03 A6 */ mtlr r0
/* 80396E40 00393DA0 38 21 00 50 */ addi r1, r1, 0x50
2022-04-08 05:17:01 +00:00
/* 80396E44 00393DA4 4E 80 00 20 */ blr
2022-04-02 09:50:35 +00:00
.global GenerateNextTrackEvent
GenerateNextTrackEvent:
/* 80396E48 00393DA8 54 64 1D 78 */ rlwinm r4, r3, 3, 0x15, 0x1c
/* 80396E4C 00393DAC 80 ED AE 38 */ lwz r7, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80396E50 00393DB0 38 84 01 24 */ addi r4, r4, 0x124
/* 80396E54 00393DB4 54 66 06 3E */ clrlwi r6, r3, 0x18
/* 80396E58 00393DB8 7C 87 22 14 */ add r4, r7, r4
/* 80396E5C 00393DBC 1C A6 00 2C */ mulli r5, r6, 0x2c
/* 80396E60 00393DC0 80 04 00 04 */ lwz r0, 4(r4)
/* 80396E64 00393DC4 28 00 00 00 */ cmplwi r0, 0
/* 80396E68 00393DC8 39 05 03 64 */ addi r8, r5, 0x364
/* 80396E6C 00393DCC 7D 07 42 14 */ add r8, r7, r8
/* 80396E70 00393DD0 41 82 01 E8 */ beq lbl_80397058
/* 80396E74 00393DD4 1C A6 00 18 */ mulli r5, r6, 0x18
/* 80396E78 00393DD8 38 A5 0E E4 */ addi r5, r5, 0xee4
/* 80396E7C 00393DDC 7C A7 2A 14 */ add r5, r7, r5
/* 80396E80 00393DE0 98 65 00 15 */ stb r3, 0x15(r5)
/* 80396E84 00393DE4 91 05 00 10 */ stw r8, 0x10(r5)
/* 80396E88 00393DE8 80 08 00 08 */ lwz r0, 8(r8)
/* 80396E8C 00393DEC 28 00 00 00 */ cmplwi r0, 0
/* 80396E90 00393DF0 40 82 00 E4 */ bne lbl_80396F74
lbl_80396E94:
/* 80396E94 00393DF4 80 64 00 04 */ lwz r3, 4(r4)
/* 80396E98 00393DF8 A0 03 00 08 */ lhz r0, 8(r3)
/* 80396E9C 00393DFC 28 00 FF FF */ cmplwi r0, 0xffff
/* 80396EA0 00393E00 40 82 00 14 */ bne lbl_80396EB4
/* 80396EA4 00393E04 38 00 00 00 */ li r0, 0
/* 80396EA8 00393E08 38 60 00 00 */ li r3, 0
/* 80396EAC 00393E0C 90 04 00 04 */ stw r0, 4(r4)
2022-04-08 05:17:01 +00:00
/* 80396EB0 00393E10 4E 80 00 20 */ blr
2022-04-02 09:50:35 +00:00
lbl_80396EB4:
/* 80396EB4 00393E14 28 00 FF FE */ cmplwi r0, 0xfffe
/* 80396EB8 00393E18 40 82 00 8C */ bne lbl_80396F44
/* 80396EBC 00393E1C 80 6D AE 38 */ lwz r3, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80396EC0 00393E20 80 E3 14 E4 */ lwz r7, 0x14e4(r3)
/* 80396EC4 00393E24 28 07 00 00 */ cmplwi r7, 0
/* 80396EC8 00393E28 40 82 00 20 */ bne lbl_80396EE8
/* 80396ECC 00393E2C 88 03 15 1E */ lbz r0, 0x151e(r3)
/* 80396ED0 00393E30 28 00 00 00 */ cmplwi r0, 0
/* 80396ED4 00393E34 41 82 00 3C */ beq lbl_80396F10
/* 80396ED8 00393E38 38 00 00 00 */ li r0, 0
/* 80396EDC 00393E3C 38 60 00 00 */ li r3, 0
/* 80396EE0 00393E40 90 04 00 04 */ stw r0, 4(r4)
2022-04-08 05:17:01 +00:00
/* 80396EE4 00393E44 4E 80 00 20 */ blr
2022-04-02 09:50:35 +00:00
lbl_80396EE8:
/* 80396EE8 00393E48 7C 07 30 AE */ lbzx r0, r7, r6
/* 80396EEC 00393E4C 1C 00 00 38 */ mulli r0, r0, 0x38
/* 80396EF0 00393E50 7C 63 02 14 */ add r3, r3, r0
/* 80396EF4 00393E54 88 03 15 1E */ lbz r0, 0x151e(r3)
/* 80396EF8 00393E58 28 00 00 00 */ cmplwi r0, 0
/* 80396EFC 00393E5C 41 82 00 14 */ beq lbl_80396F10
/* 80396F00 00393E60 38 00 00 00 */ li r0, 0
/* 80396F04 00393E64 38 60 00 00 */ li r3, 0
/* 80396F08 00393E68 90 04 00 04 */ stw r0, 4(r4)
2022-04-08 05:17:01 +00:00
/* 80396F0C 00393E6C 4E 80 00 20 */ blr
2022-04-02 09:50:35 +00:00
lbl_80396F10:
/* 80396F10 00393E70 38 00 00 03 */ li r0, 3
/* 80396F14 00393E74 7C A3 2B 78 */ mr r3, r5
/* 80396F18 00393E78 98 05 00 14 */ stb r0, 0x14(r5)
/* 80396F1C 00393E7C 80 C4 00 04 */ lwz r6, 4(r4)
/* 80396F20 00393E80 80 06 00 00 */ lwz r0, 0(r6)
/* 80396F24 00393E84 90 05 00 08 */ stw r0, 8(r5)
/* 80396F28 00393E88 80 A4 00 04 */ lwz r5, 4(r4)
/* 80396F2C 00393E8C 80 C4 00 00 */ lwz r6, 0(r4)
/* 80396F30 00393E90 A0 05 00 0A */ lhz r0, 0xa(r5)
/* 80396F34 00393E94 1C 00 00 0C */ mulli r0, r0, 0xc
/* 80396F38 00393E98 7C 06 02 14 */ add r0, r6, r0
/* 80396F3C 00393E9C 90 04 00 04 */ stw r0, 4(r4)
2022-04-08 05:17:01 +00:00
/* 80396F40 00393EA0 4E 80 00 20 */ blr
2022-04-02 09:50:35 +00:00
lbl_80396F44:
/* 80396F44 00393EA4 38 00 00 04 */ li r0, 4
/* 80396F48 00393EA8 7C A3 2B 78 */ mr r3, r5
/* 80396F4C 00393EAC 98 05 00 14 */ stb r0, 0x14(r5)
/* 80396F50 00393EB0 80 C4 00 04 */ lwz r6, 4(r4)
/* 80396F54 00393EB4 80 06 00 00 */ lwz r0, 0(r6)
/* 80396F58 00393EB8 90 05 00 08 */ stw r0, 8(r5)
/* 80396F5C 00393EBC 80 04 00 04 */ lwz r0, 4(r4)
/* 80396F60 00393EC0 90 05 00 0C */ stw r0, 0xc(r5)
/* 80396F64 00393EC4 80 A4 00 04 */ lwz r5, 4(r4)
/* 80396F68 00393EC8 38 05 00 0C */ addi r0, r5, 0xc
/* 80396F6C 00393ECC 90 04 00 04 */ stw r0, 4(r4)
2022-04-08 05:17:01 +00:00
/* 80396F70 00393ED0 4E 80 00 20 */ blr
2022-04-02 09:50:35 +00:00
lbl_80396F74:
/* 80396F74 00393ED4 81 48 00 18 */ lwz r10, 0x18(r8)
/* 80396F78 00393ED8 81 68 00 24 */ lwz r11, 0x24(r8)
lbl_80396F7C:
/* 80396F7C 00393EDC 80 E8 00 08 */ lwz r7, 8(r8)
/* 80396F80 00393EE0 80 08 00 00 */ lwz r0, 0(r8)
/* 80396F84 00393EE4 A0 67 00 00 */ lhz r3, 0(r7)
/* 80396F88 00393EE8 7D 23 02 14 */ add r9, r3, r0
/* 80396F8C 00393EEC 7C 09 50 40 */ cmplw r9, r10
/* 80396F90 00393EF0 40 80 00 8C */ bge lbl_8039701C
/* 80396F94 00393EF4 7C 09 58 40 */ cmplw r9, r11
/* 80396F98 00393EF8 40 80 00 A4 */ bge lbl_8039703C
/* 80396F9C 00393EFC 88 07 00 02 */ lbz r0, 2(r7)
/* 80396FA0 00393F00 28 00 00 FF */ cmplwi r0, 0xff
/* 80396FA4 00393F04 40 82 00 1C */ bne lbl_80396FC0
/* 80396FA8 00393F08 88 07 00 03 */ lbz r0, 3(r7)
/* 80396FAC 00393F0C 28 00 00 FF */ cmplwi r0, 0xff
/* 80396FB0 00393F10 40 82 00 10 */ bne lbl_80396FC0
/* 80396FB4 00393F14 38 00 00 00 */ li r0, 0
/* 80396FB8 00393F18 90 08 00 08 */ stw r0, 8(r8)
/* 80396FBC 00393F1C 4B FF FE D8 */ b lbl_80396E94
lbl_80396FC0:
/* 80396FC0 00393F20 90 E5 00 0C */ stw r7, 0xc(r5)
/* 80396FC4 00393F24 91 28 00 00 */ stw r9, 0(r8)
/* 80396FC8 00393F28 80 68 00 08 */ lwz r3, 8(r8)
/* 80396FCC 00393F2C 88 E3 00 02 */ lbz r7, 2(r3)
/* 80396FD0 00393F30 54 E0 06 31 */ rlwinm. r0, r7, 0, 0x18, 0x18
/* 80396FD4 00393F34 41 82 00 10 */ beq lbl_80396FE4
/* 80396FD8 00393F38 38 03 00 04 */ addi r0, r3, 4
/* 80396FDC 00393F3C 90 08 00 08 */ stw r0, 8(r8)
/* 80396FE0 00393F40 48 00 00 24 */ b lbl_80397004
lbl_80396FE4:
/* 80396FE4 00393F44 88 03 00 03 */ lbz r0, 3(r3)
/* 80396FE8 00393F48 7C E0 03 79 */ or. r0, r7, r0
/* 80396FEC 00393F4C 40 82 00 10 */ bne lbl_80396FFC
/* 80396FF0 00393F50 38 03 00 04 */ addi r0, r3, 4
/* 80396FF4 00393F54 90 08 00 08 */ stw r0, 8(r8)
/* 80396FF8 00393F58 4B FF FF 84 */ b lbl_80396F7C
lbl_80396FFC:
/* 80396FFC 00393F5C 38 03 00 06 */ addi r0, r3, 6
/* 80397000 00393F60 90 08 00 08 */ stw r0, 8(r8)
lbl_80397004:
/* 80397004 00393F64 38 00 00 00 */ li r0, 0
/* 80397008 00393F68 98 05 00 14 */ stb r0, 0x14(r5)
/* 8039700C 00393F6C 80 08 00 04 */ lwz r0, 4(r8)
/* 80397010 00393F70 7C 09 02 14 */ add r0, r9, r0
/* 80397014 00393F74 90 05 00 08 */ stw r0, 8(r5)
/* 80397018 00393F78 48 00 00 38 */ b lbl_80397050
lbl_8039701C:
/* 8039701C 00393F7C 7C 0A 58 40 */ cmplw r10, r11
/* 80397020 00393F80 40 80 00 1C */ bge lbl_8039703C
/* 80397024 00393F84 80 68 00 04 */ lwz r3, 4(r8)
/* 80397028 00393F88 38 00 00 02 */ li r0, 2
/* 8039702C 00393F8C 7C 6A 1A 14 */ add r3, r10, r3
/* 80397030 00393F90 90 65 00 08 */ stw r3, 8(r5)
/* 80397034 00393F94 98 05 00 14 */ stb r0, 0x14(r5)
/* 80397038 00393F98 48 00 00 18 */ b lbl_80397050
lbl_8039703C:
/* 8039703C 00393F9C 80 68 00 04 */ lwz r3, 4(r8)
/* 80397040 00393FA0 38 00 00 01 */ li r0, 1
/* 80397044 00393FA4 7C 6B 1A 14 */ add r3, r11, r3
/* 80397048 00393FA8 90 65 00 08 */ stw r3, 8(r5)
/* 8039704C 00393FAC 98 05 00 14 */ stb r0, 0x14(r5)
lbl_80397050:
/* 80397050 00393FB0 7C A3 2B 78 */ mr r3, r5
2022-04-08 05:17:01 +00:00
/* 80397054 00393FB4 4E 80 00 20 */ blr
2022-04-02 09:50:35 +00:00
lbl_80397058:
/* 80397058 00393FB8 38 60 00 00 */ li r3, 0
2022-04-08 05:17:01 +00:00
/* 8039705C 00393FBC 4E 80 00 20 */ blr
2022-04-02 09:50:35 +00:00
2022-04-04 10:14:22 +00:00
.global HandleEvent
HandleEvent:
2022-04-02 09:50:35 +00:00
/* 80397060 00393FC0 94 21 FF C0 */ stwu r1, -0x40(r1)
/* 80397064 00393FC4 7C 08 02 A6 */ mflr r0
/* 80397068 00393FC8 90 01 00 44 */ stw r0, 0x44(r1)
/* 8039706C 00393FCC 39 61 00 40 */ addi r11, r1, 0x40
2022-04-04 10:14:22 +00:00
/* 80397070 00393FD0 4B FF 2A 09 */ bl _savegpr_26
2022-04-02 09:50:35 +00:00
/* 80397074 00393FD4 7C 7F 1B 78 */ mr r31, r3
/* 80397078 00393FD8 88 63 00 14 */ lbz r3, 0x14(r3)
/* 8039707C 00393FDC 2C 03 00 02 */ cmpwi r3, 2
/* 80397080 00393FE0 41 82 08 48 */ beq lbl_803978C8
/* 80397084 00393FE4 40 80 00 14 */ bge lbl_80397098
/* 80397088 00393FE8 2C 03 00 00 */ cmpwi r3, 0
/* 8039708C 00393FEC 41 82 03 30 */ beq lbl_803973BC
/* 80397090 00393FF0 40 80 09 34 */ bge lbl_803979C4
/* 80397094 00393FF4 48 00 0A 40 */ b lbl_80397AD4
lbl_80397098:
/* 80397098 00393FF8 2C 03 00 04 */ cmpwi r3, 4
/* 8039709C 00393FFC 41 82 00 0C */ beq lbl_803970A8
/* 803970A0 00394000 40 80 0A 34 */ bge lbl_80397AD4
/* 803970A4 00394004 48 00 0A 1C */ b lbl_80397AC0
lbl_803970A8:
/* 803970A8 00394008 80 7F 00 0C */ lwz r3, 0xc(r31)
/* 803970AC 0039400C 39 20 00 00 */ li r9, 0
/* 803970B0 00394010 81 0D AE 38 */ lwz r8, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803970B4 00394014 A0 83 00 08 */ lhz r4, 8(r3)
/* 803970B8 00394018 81 48 01 18 */ lwz r10, 0x118(r8)
/* 803970BC 0039401C 88 DF 00 15 */ lbz r6, 0x15(r31)
/* 803970C0 00394020 54 84 10 3A */ slwi r4, r4, 2
/* 803970C4 00394024 80 AA 00 04 */ lwz r5, 4(r10)
/* 803970C8 00394028 7C 8A 22 14 */ add r4, r10, r4
/* 803970CC 0039402C 1C C6 00 2C */ mulli r6, r6, 0x2c
/* 803970D0 00394030 7C A5 20 2E */ lwzx r5, r5, r4
/* 803970D4 00394034 38 86 03 64 */ addi r4, r6, 0x364
/* 803970D8 00394038 7C AA 2A 14 */ add r5, r10, r5
/* 803970DC 0039403C 7C 88 22 14 */ add r4, r8, r4
/* 803970E0 00394040 38 C5 00 0C */ addi r6, r5, 0xc
/* 803970E4 00394044 90 C4 00 08 */ stw r6, 8(r4)
/* 803970E8 00394048 91 24 00 00 */ stw r9, 0(r4)
/* 803970EC 0039404C 80 C3 00 00 */ lwz r6, 0(r3)
/* 803970F0 00394050 90 C4 00 04 */ stw r6, 4(r4)
/* 803970F4 00394054 90 64 00 0C */ stw r3, 0xc(r4)
/* 803970F8 00394058 81 05 00 04 */ lwz r8, 4(r5)
/* 803970FC 0039405C 28 08 00 00 */ cmplwi r8, 0
/* 80397100 00394060 41 82 00 BC */ beq lbl_803971BC
/* 80397104 00394064 80 CD AE 38 */ lwz r6, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80397108 00394068 80 C6 01 18 */ lwz r6, 0x118(r6)
/* 8039710C 0039406C 7D 68 32 14 */ add r11, r8, r6
/* 80397110 00394070 89 4B 00 00 */ lbz r10, 0(r11)
/* 80397114 00394074 89 0B 00 01 */ lbz r8, 1(r11)
/* 80397118 00394078 28 0A 00 80 */ cmplwi r10, 0x80
/* 8039711C 0039407C 40 82 00 10 */ bne lbl_8039712C
/* 80397120 00394080 28 08 00 00 */ cmplwi r8, 0
/* 80397124 00394084 40 82 00 08 */ bne lbl_8039712C
/* 80397128 00394088 48 00 00 6C */ b lbl_80397194
lbl_8039712C:
/* 8039712C 0039408C 55 46 06 31 */ rlwinm. r6, r10, 0, 0x18, 0x18
/* 80397130 00394090 41 82 00 14 */ beq lbl_80397144
/* 80397134 00394094 51 48 44 6E */ rlwimi r8, r10, 8, 0x11, 0x17
/* 80397138 00394098 39 6B 00 02 */ addi r11, r11, 2
/* 8039713C 0039409C 55 07 04 3E */ clrlwi r7, r8, 0x10
/* 80397140 003940A0 48 00 00 0C */ b lbl_8039714C
lbl_80397144:
/* 80397144 003940A4 7D 47 53 78 */ mr r7, r10
/* 80397148 003940A8 39 6B 00 01 */ addi r11, r11, 1
lbl_8039714C:
/* 8039714C 003940AC 89 0B 00 00 */ lbz r8, 0(r11)
/* 80397150 003940B0 89 2B 00 01 */ lbz r9, 1(r11)
/* 80397154 003940B4 55 06 06 31 */ rlwinm. r6, r8, 0, 0x18, 0x18
/* 80397158 003940B8 41 82 00 20 */ beq lbl_80397178
/* 8039715C 003940BC 51 09 44 6E */ rlwimi r9, r8, 8, 0x11, 0x17
/* 80397160 003940C0 39 6B 00 02 */ addi r11, r11, 2
/* 80397164 003940C4 7D 28 07 34 */ extsh r8, r9
/* 80397168 003940C8 55 06 0C 20 */ rlwinm r6, r8, 1, 0x10, 0x10
/* 8039716C 003940CC 7D 06 33 78 */ or r6, r8, r6
/* 80397170 003940D0 B0 C4 00 16 */ sth r6, 0x16(r4)
/* 80397174 003940D4 48 00 00 1C */ b lbl_80397190
lbl_80397178:
/* 80397178 003940D8 55 06 0E 30 */ rlwinm r6, r8, 1, 0x18, 0x18
/* 8039717C 003940DC 39 6B 00 01 */ addi r11, r11, 1
/* 80397180 003940E0 7D 06 33 78 */ or r6, r8, r6
/* 80397184 003940E4 54 C8 06 3E */ clrlwi r8, r6, 0x18
/* 80397188 003940E8 7D 06 07 74 */ extsb r6, r8
/* 8039718C 003940EC B0 C4 00 16 */ sth r6, 0x16(r4)
lbl_80397190:
/* 80397190 003940F0 7D 69 5B 78 */ mr r9, r11
lbl_80397194:
/* 80397194 003940F4 28 09 00 00 */ cmplwi r9, 0
/* 80397198 003940F8 91 24 00 10 */ stw r9, 0x10(r4)
/* 8039719C 003940FC 41 82 00 10 */ beq lbl_803971AC
/* 803971A0 00394100 54 E6 04 3E */ clrlwi r6, r7, 0x10
/* 803971A4 00394104 90 C4 00 18 */ stw r6, 0x18(r4)
/* 803971A8 00394108 48 00 00 20 */ b lbl_803971C8
lbl_803971AC:
/* 803971AC 0039410C 3C C0 80 00 */ lis r6, 0x7FFFFFFF@ha
/* 803971B0 00394110 38 C6 FF FF */ addi r6, r6, 0x7FFFFFFF@l
/* 803971B4 00394114 90 C4 00 18 */ stw r6, 0x18(r4)
/* 803971B8 00394118 48 00 00 10 */ b lbl_803971C8
lbl_803971BC:
/* 803971BC 0039411C 3C C0 80 00 */ lis r6, 0x7FFFFFFF@ha
/* 803971C0 00394120 38 C6 FF FF */ addi r6, r6, 0x7FFFFFFF@l
/* 803971C4 00394124 90 C4 00 18 */ stw r6, 0x18(r4)
lbl_803971C8:
/* 803971C8 00394128 38 C0 20 00 */ li r6, 0x2000
/* 803971CC 0039412C B0 C4 00 14 */ sth r6, 0x14(r4)
/* 803971D0 00394130 80 C5 00 08 */ lwz r6, 8(r5)
/* 803971D4 00394134 28 06 00 00 */ cmplwi r6, 0
/* 803971D8 00394138 41 82 00 BC */ beq lbl_80397294
/* 803971DC 0039413C 80 AD AE 38 */ lwz r5, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803971E0 00394140 80 A5 01 18 */ lwz r5, 0x118(r5)
/* 803971E4 00394144 7C E6 2A 14 */ add r7, r6, r5
/* 803971E8 00394148 88 C7 00 00 */ lbz r6, 0(r7)
/* 803971EC 0039414C 88 A7 00 01 */ lbz r5, 1(r7)
/* 803971F0 00394150 28 06 00 80 */ cmplwi r6, 0x80
/* 803971F4 00394154 40 82 00 14 */ bne lbl_80397208
/* 803971F8 00394158 28 05 00 00 */ cmplwi r5, 0
/* 803971FC 0039415C 40 82 00 0C */ bne lbl_80397208
/* 80397200 00394160 38 E0 00 00 */ li r7, 0
/* 80397204 00394164 48 00 00 68 */ b lbl_8039726C
lbl_80397208:
/* 80397208 00394168 54 C0 06 31 */ rlwinm. r0, r6, 0, 0x18, 0x18
/* 8039720C 0039416C 41 82 00 14 */ beq lbl_80397220
/* 80397210 00394170 50 C5 44 6E */ rlwimi r5, r6, 8, 0x11, 0x17
/* 80397214 00394174 38 E7 00 02 */ addi r7, r7, 2
/* 80397218 00394178 54 A0 04 3E */ clrlwi r0, r5, 0x10
/* 8039721C 0039417C 48 00 00 0C */ b lbl_80397228
lbl_80397220:
/* 80397220 00394180 7C C0 33 78 */ mr r0, r6
/* 80397224 00394184 38 E7 00 01 */ addi r7, r7, 1
lbl_80397228:
/* 80397228 00394188 88 C7 00 00 */ lbz r6, 0(r7)
/* 8039722C 0039418C 89 07 00 01 */ lbz r8, 1(r7)
/* 80397230 00394190 54 C5 06 31 */ rlwinm. r5, r6, 0, 0x18, 0x18
/* 80397234 00394194 41 82 00 20 */ beq lbl_80397254
/* 80397238 00394198 50 C8 44 6E */ rlwimi r8, r6, 8, 0x11, 0x17
/* 8039723C 0039419C 38 E7 00 02 */ addi r7, r7, 2
/* 80397240 003941A0 7D 06 07 34 */ extsh r6, r8
/* 80397244 003941A4 54 C5 0C 20 */ rlwinm r5, r6, 1, 0x10, 0x10
/* 80397248 003941A8 7C C5 2B 78 */ or r5, r6, r5
/* 8039724C 003941AC B0 A4 00 22 */ sth r5, 0x22(r4)
/* 80397250 003941B0 48 00 00 1C */ b lbl_8039726C
lbl_80397254:
/* 80397254 003941B4 54 C5 0E 30 */ rlwinm r5, r6, 1, 0x18, 0x18
/* 80397258 003941B8 38 E7 00 01 */ addi r7, r7, 1
/* 8039725C 003941BC 7C C5 2B 78 */ or r5, r6, r5
/* 80397260 003941C0 54 A6 06 3E */ clrlwi r6, r5, 0x18
/* 80397264 003941C4 7C C5 07 74 */ extsb r5, r6
/* 80397268 003941C8 B0 A4 00 22 */ sth r5, 0x22(r4)
lbl_8039726C:
/* 8039726C 003941CC 28 07 00 00 */ cmplwi r7, 0
/* 80397270 003941D0 90 E4 00 1C */ stw r7, 0x1c(r4)
/* 80397274 003941D4 41 82 00 10 */ beq lbl_80397284
/* 80397278 003941D8 54 00 04 3E */ clrlwi r0, r0, 0x10
/* 8039727C 003941DC 90 04 00 24 */ stw r0, 0x24(r4)
/* 80397280 003941E0 48 00 00 20 */ b lbl_803972A0
lbl_80397284:
/* 80397284 003941E4 3C A0 80 00 */ lis r5, 0x7FFFFFFF@ha
/* 80397288 003941E8 38 05 FF FF */ addi r0, r5, 0x7FFFFFFF@l
/* 8039728C 003941EC 90 04 00 24 */ stw r0, 0x24(r4)
/* 80397290 003941F0 48 00 00 10 */ b lbl_803972A0
lbl_80397294:
/* 80397294 003941F4 3C A0 80 00 */ lis r5, 0x7FFFFFFF@ha
/* 80397298 003941F8 38 05 FF FF */ addi r0, r5, 0x7FFFFFFF@l
/* 8039729C 003941FC 90 04 00 24 */ stw r0, 0x24(r4)
lbl_803972A0:
/* 803972A0 00394200 38 00 00 00 */ li r0, 0
/* 803972A4 00394204 B0 04 00 20 */ sth r0, 0x20(r4)
/* 803972A8 00394208 80 AD AE 38 */ lwz r5, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803972AC 0039420C 88 1F 00 15 */ lbz r0, 0x15(r31)
/* 803972B0 00394210 80 C5 01 18 */ lwz r6, 0x118(r5)
/* 803972B4 00394214 80 A6 00 08 */ lwz r5, 8(r6)
/* 803972B8 00394218 7C 06 02 14 */ add r0, r6, r0
/* 803972BC 0039421C 7C 05 00 AE */ lbzx r0, r5, r0
/* 803972C0 00394220 98 04 00 28 */ stb r0, 0x28(r4)
/* 803972C4 00394224 89 23 00 04 */ lbz r9, 4(r3)
/* 803972C8 00394228 28 09 00 FF */ cmplwi r9, 0xff
/* 803972CC 0039422C 41 82 00 CC */ beq lbl_80397398
/* 803972D0 00394230 80 0D AE 30 */ lwz r0, curSeqId@sda21(r13)
2022-04-08 05:17:01 +00:00
/* 803972D4 00394234 3C A0 80 55 */ lis r5, seqMIDIPriority@ha
2022-04-02 09:50:35 +00:00
/* 803972D8 00394238 89 04 00 28 */ lbz r8, 0x28(r4)
/* 803972DC 0039423C 3C E0 00 01 */ lis r7, 0x0000FFFF@ha
/* 803972E0 00394240 54 06 28 34 */ slwi r6, r0, 5
2022-04-08 05:17:01 +00:00
/* 803972E4 00394244 38 05 FD 10 */ addi r0, r5, seqMIDIPriority@l
2022-04-02 09:50:35 +00:00
/* 803972E8 00394248 28 08 00 09 */ cmplwi r8, 9
/* 803972EC 0039424C 38 E7 FF FF */ addi r7, r7, 0x0000FFFF@l
/* 803972F0 00394250 7C A0 32 14 */ add r5, r0, r6
/* 803972F4 00394254 55 00 0D FC */ rlwinm r0, r8, 1, 0x17, 0x1e
/* 803972F8 00394258 7C E5 03 2E */ sthx r7, r5, r0
/* 803972FC 0039425C 80 ED AE 38 */ lwz r7, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80397300 00394260 41 82 00 50 */ beq lbl_80397350
/* 80397304 00394264 7C A7 4A 14 */ add r5, r7, r9
/* 80397308 00394268 88 05 00 14 */ lbz r0, 0x14(r5)
/* 8039730C 0039426C 28 00 00 FF */ cmplwi r0, 0xff
/* 80397310 00394270 41 82 00 88 */ beq lbl_80397398
/* 80397314 00394274 1D 20 00 06 */ mulli r9, r0, 6
/* 80397318 00394278 80 A7 00 10 */ lwz r5, 0x10(r7)
/* 8039731C 0039427C 55 06 10 3A */ slwi r6, r8, 2
/* 80397320 00394280 7C 05 4A 2E */ lhzx r0, r5, r9
/* 80397324 00394284 7C C7 32 14 */ add r6, r7, r6
/* 80397328 00394288 B0 06 0E 70 */ sth r0, 0xe70(r6)
/* 8039732C 0039428C 80 07 00 10 */ lwz r0, 0x10(r7)
/* 80397330 00394290 7C A0 4A 14 */ add r5, r0, r9
/* 80397334 00394294 88 05 00 02 */ lbz r0, 2(r5)
/* 80397338 00394298 98 06 0E 72 */ stb r0, 0xe72(r6)
/* 8039733C 0039429C 80 07 00 10 */ lwz r0, 0x10(r7)
/* 80397340 003942A0 7C A0 4A 14 */ add r5, r0, r9
/* 80397344 003942A4 88 05 00 03 */ lbz r0, 3(r5)
/* 80397348 003942A8 98 06 0E 73 */ stb r0, 0xe73(r6)
/* 8039734C 003942AC 48 00 00 4C */ b lbl_80397398
lbl_80397350:
/* 80397350 003942B0 7C A7 4A 14 */ add r5, r7, r9
/* 80397354 003942B4 88 05 00 98 */ lbz r0, 0x98(r5)
/* 80397358 003942B8 28 00 00 FF */ cmplwi r0, 0xff
/* 8039735C 003942BC 41 82 00 3C */ beq lbl_80397398
/* 80397360 003942C0 1D 20 00 06 */ mulli r9, r0, 6
/* 80397364 003942C4 80 A7 00 94 */ lwz r5, 0x94(r7)
/* 80397368 003942C8 55 06 10 3A */ slwi r6, r8, 2
/* 8039736C 003942CC 7C 05 4A 2E */ lhzx r0, r5, r9
/* 80397370 003942D0 7C C7 32 14 */ add r6, r7, r6
/* 80397374 003942D4 B0 06 0E 70 */ sth r0, 0xe70(r6)
/* 80397378 003942D8 80 07 00 94 */ lwz r0, 0x94(r7)
/* 8039737C 003942DC 7C A0 4A 14 */ add r5, r0, r9
/* 80397380 003942E0 88 05 00 02 */ lbz r0, 2(r5)
/* 80397384 003942E4 98 06 0E 72 */ stb r0, 0xe72(r6)
/* 80397388 003942E8 80 07 00 94 */ lwz r0, 0x94(r7)
/* 8039738C 003942EC 7C A0 4A 14 */ add r5, r0, r9
/* 80397390 003942F0 88 05 00 03 */ lbz r0, 3(r5)
/* 80397394 003942F4 98 06 0E 73 */ stb r0, 0xe73(r6)
lbl_80397398:
/* 80397398 003942F8 88 C3 00 05 */ lbz r6, 5(r3)
/* 8039739C 003942FC 28 06 00 FF */ cmplwi r6, 0xff
/* 803973A0 00394300 41 82 07 34 */ beq lbl_80397AD4
/* 803973A4 00394304 80 0D AE 30 */ lwz r0, curSeqId@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803973A8 00394308 38 60 00 07 */ li r3, 7
/* 803973AC 0039430C 88 84 00 28 */ lbz r4, 0x28(r4)
/* 803973B0 00394310 54 05 06 3E */ clrlwi r5, r0, 0x18
2022-04-04 10:14:22 +00:00
/* 803973B4 00394314 48 01 9D 3D */ bl inpSetMidiCtrl
2022-04-02 09:50:35 +00:00
/* 803973B8 00394318 48 00 07 1C */ b lbl_80397AD4
lbl_803973BC:
/* 803973BC 0039431C 80 FF 00 0C */ lwz r7, 0xc(r31)
/* 803973C0 00394320 81 7F 00 10 */ lwz r11, 0x10(r31)
/* 803973C4 00394324 88 07 00 02 */ lbz r0, 2(r7)
/* 803973C8 00394328 88 A7 00 03 */ lbz r5, 3(r7)
/* 803973CC 0039432C 54 03 06 31 */ rlwinm. r3, r0, 0, 0x18, 0x18
/* 803973D0 00394330 89 2B 00 28 */ lbz r9, 0x28(r11)
/* 803973D4 00394334 41 82 02 7C */ beq lbl_80397650
/* 803973D8 00394338 2C 05 00 01 */ cmpwi r5, 1
/* 803973DC 0039433C 41 82 00 E0 */ beq lbl_803974BC
/* 803973E0 00394340 40 80 00 F8 */ bge lbl_803974D8
/* 803973E4 00394344 2C 05 00 00 */ cmpwi r5, 0
/* 803973E8 00394348 40 80 00 08 */ bge lbl_803973F0
/* 803973EC 0039434C 48 00 00 EC */ b lbl_803974D8
lbl_803973F0:
/* 803973F0 00394350 80 8D AE 30 */ lwz r4, curSeqId@sda21(r13)
2022-04-08 05:17:01 +00:00
/* 803973F4 00394354 3C 60 80 55 */ lis r3, seqMIDIPriority@ha
2022-04-02 09:50:35 +00:00
/* 803973F8 00394358 3C C0 00 01 */ lis r6, 0x0000FFFF@ha
/* 803973FC 0039435C 28 09 00 09 */ cmplwi r9, 9
/* 80397400 00394360 54 85 28 34 */ slwi r5, r4, 5
2022-04-08 05:17:01 +00:00
/* 80397404 00394364 38 83 FD 10 */ addi r4, r3, seqMIDIPriority@l
2022-04-02 09:50:35 +00:00
/* 80397408 00394368 38 C6 FF FF */ addi r6, r6, 0x0000FFFF@l
/* 8039740C 0039436C 55 23 0D FC */ rlwinm r3, r9, 1, 0x17, 0x1e
/* 80397410 00394370 7C 84 2A 14 */ add r4, r4, r5
/* 80397414 00394374 80 AD AE 38 */ lwz r5, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80397418 00394378 7C C4 1B 2E */ sthx r6, r4, r3
/* 8039741C 0039437C 54 00 06 7E */ clrlwi r0, r0, 0x19
/* 80397420 00394380 41 82 00 50 */ beq lbl_80397470
/* 80397424 00394384 7C 65 02 14 */ add r3, r5, r0
/* 80397428 00394388 88 03 00 14 */ lbz r0, 0x14(r3)
/* 8039742C 0039438C 28 00 00 FF */ cmplwi r0, 0xff
/* 80397430 00394390 41 82 06 A4 */ beq lbl_80397AD4
/* 80397434 00394394 1C C0 00 06 */ mulli r6, r0, 6
/* 80397438 00394398 80 65 00 10 */ lwz r3, 0x10(r5)
/* 8039743C 0039439C 55 24 10 3A */ slwi r4, r9, 2
/* 80397440 003943A0 7C 03 32 2E */ lhzx r0, r3, r6
/* 80397444 003943A4 7C 85 22 14 */ add r4, r5, r4
/* 80397448 003943A8 B0 04 0E 70 */ sth r0, 0xe70(r4)
/* 8039744C 003943AC 80 05 00 10 */ lwz r0, 0x10(r5)
/* 80397450 003943B0 7C 60 32 14 */ add r3, r0, r6
/* 80397454 003943B4 88 03 00 02 */ lbz r0, 2(r3)
/* 80397458 003943B8 98 04 0E 72 */ stb r0, 0xe72(r4)
/* 8039745C 003943BC 80 05 00 10 */ lwz r0, 0x10(r5)
/* 80397460 003943C0 7C 60 32 14 */ add r3, r0, r6
/* 80397464 003943C4 88 03 00 03 */ lbz r0, 3(r3)
/* 80397468 003943C8 98 04 0E 73 */ stb r0, 0xe73(r4)
/* 8039746C 003943CC 48 00 06 68 */ b lbl_80397AD4
lbl_80397470:
/* 80397470 003943D0 7C 65 02 14 */ add r3, r5, r0
/* 80397474 003943D4 88 03 00 98 */ lbz r0, 0x98(r3)
/* 80397478 003943D8 28 00 00 FF */ cmplwi r0, 0xff
/* 8039747C 003943DC 41 82 06 58 */ beq lbl_80397AD4
/* 80397480 003943E0 1C C0 00 06 */ mulli r6, r0, 6
/* 80397484 003943E4 80 65 00 94 */ lwz r3, 0x94(r5)
/* 80397488 003943E8 55 24 10 3A */ slwi r4, r9, 2
/* 8039748C 003943EC 7C 03 32 2E */ lhzx r0, r3, r6
/* 80397490 003943F0 7C 85 22 14 */ add r4, r5, r4
/* 80397494 003943F4 B0 04 0E 70 */ sth r0, 0xe70(r4)
/* 80397498 003943F8 80 05 00 94 */ lwz r0, 0x94(r5)
/* 8039749C 003943FC 7C 60 32 14 */ add r3, r0, r6
/* 803974A0 00394400 88 03 00 02 */ lbz r0, 2(r3)
/* 803974A4 00394404 98 04 0E 72 */ stb r0, 0xe72(r4)
/* 803974A8 00394408 80 05 00 94 */ lwz r0, 0x94(r5)
/* 803974AC 0039440C 7C 60 32 14 */ add r3, r0, r6
/* 803974B0 00394410 88 03 00 03 */ lbz r0, 3(r3)
/* 803974B4 00394414 98 04 0E 73 */ stb r0, 0xe73(r4)
/* 803974B8 00394418 48 00 06 1C */ b lbl_80397AD4
lbl_803974BC:
/* 803974BC 0039441C 80 AD AE 30 */ lwz r5, curSeqId@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803974C0 00394420 54 06 06 7E */ clrlwi r6, r0, 0x19
/* 803974C4 00394424 7D 24 4B 78 */ mr r4, r9
/* 803974C8 00394428 38 60 00 82 */ li r3, 0x82
/* 803974CC 0039442C 54 A5 06 3E */ clrlwi r5, r5, 0x18
2022-04-04 10:14:22 +00:00
/* 803974D0 00394430 48 01 9C 21 */ bl inpSetMidiCtrl
2022-04-02 09:50:35 +00:00
/* 803974D4 00394434 48 00 06 00 */ b lbl_80397AD4
lbl_803974D8:
/* 803974D8 00394438 54 A3 06 30 */ rlwinm r3, r5, 0, 0x18, 0x18
/* 803974DC 0039443C 2C 03 00 80 */ cmpwi r3, 0x80
/* 803974E0 00394440 40 82 05 F4 */ bne lbl_80397AD4
/* 803974E4 00394444 54 A3 06 7E */ clrlwi r3, r5, 0x19
/* 803974E8 00394448 38 A3 FF 98 */ addi r5, r3, -104
/* 803974EC 0039444C 28 05 00 13 */ cmplwi r5, 0x13
/* 803974F0 00394450 41 81 01 48 */ bgt lbl_80397638
/* 803974F4 00394454 3C 80 80 3F */ lis r4, lbl_803F2F88@ha
/* 803974F8 00394458 54 A5 10 3A */ slwi r5, r5, 2
/* 803974FC 0039445C 38 84 2F 88 */ addi r4, r4, lbl_803F2F88@l
/* 80397500 00394460 7C 84 28 2E */ lwzx r4, r4, r5
/* 80397504 00394464 7C 89 03 A6 */ mtctr r4
2022-04-08 05:17:01 +00:00
/* 80397508 00394468 4E 80 04 20 */ bctr
lbl_8039750C:
/* 8039750C 0039446C 80 6D AE 38 */ lwz r3, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80397510 00394470 88 03 0E E0 */ lbz r0, 0xee0(r3)
/* 80397514 00394474 28 00 00 00 */ cmplwi r0, 0
/* 80397518 00394478 41 82 05 BC */ beq lbl_80397AD4
/* 8039751C 0039447C 80 83 0E DC */ lwz r4, 0xedc(r3)
/* 80397520 00394480 38 63 0E B4 */ addi r3, r3, 0xeb4
/* 80397524 00394484 38 A0 00 01 */ li r5, 1
/* 80397528 00394488 4B FF ED C9 */ bl seqCrossFade
/* 8039752C 0039448C 80 6D AE 38 */ lwz r3, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80397530 00394490 38 00 00 00 */ li r0, 0
/* 80397534 00394494 98 03 0E E0 */ stb r0, 0xee0(r3)
/* 80397538 00394498 48 00 05 9C */ b lbl_80397AD4
2022-04-08 05:17:01 +00:00
lbl_8039753C:
/* 8039753C 0039449C 80 8D AE 30 */ lwz r4, curSeqId@sda21(r13)
2022-04-08 05:17:01 +00:00
/* 80397540 003944A0 3C 60 80 55 */ lis r3, seqMIDIPriority@ha
/* 80397544 003944A4 38 63 FD 10 */ addi r3, r3, seqMIDIPriority@l
2022-04-02 09:50:35 +00:00
/* 80397548 003944A8 54 05 06 7E */ clrlwi r5, r0, 0x19
/* 8039754C 003944AC 54 84 28 34 */ slwi r4, r4, 5
/* 80397550 003944B0 55 20 0D FC */ rlwinm r0, r9, 1, 0x17, 0x1e
/* 80397554 003944B4 7C 63 22 14 */ add r3, r3, r4
/* 80397558 003944B8 7C A3 03 2E */ sthx r5, r3, r0
/* 8039755C 003944BC 48 00 05 78 */ b lbl_80397AD4
2022-04-08 05:17:01 +00:00
lbl_80397560:
/* 80397560 003944C0 80 8D AE 30 */ lwz r4, curSeqId@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80397564 003944C4 54 05 06 7E */ clrlwi r5, r0, 0x19
2022-04-08 05:17:01 +00:00
/* 80397568 003944C8 3C 60 80 55 */ lis r3, seqMIDIPriority@ha
2022-04-02 09:50:35 +00:00
/* 8039756C 003944CC 55 20 0D FC */ rlwinm r0, r9, 1, 0x17, 0x1e
/* 80397570 003944D0 54 84 28 34 */ slwi r4, r4, 5
/* 80397574 003944D4 38 A5 00 80 */ addi r5, r5, 0x80
2022-04-08 05:17:01 +00:00
/* 80397578 003944D8 38 63 FD 10 */ addi r3, r3, seqMIDIPriority@l
2022-04-02 09:50:35 +00:00
/* 8039757C 003944DC 7C 63 22 14 */ add r3, r3, r4
/* 80397580 003944E0 7C A3 03 2E */ sthx r5, r3, r0
/* 80397584 003944E4 48 00 05 50 */ b lbl_80397AD4
2022-04-08 05:17:01 +00:00
lbl_80397588:
/* 80397588 003944E8 80 0D AE 30 */ lwz r0, curSeqId@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 8039758C 003944EC 7D 23 4B 78 */ mr r3, r9
/* 80397590 003944F0 38 A0 00 00 */ li r5, 0
/* 80397594 003944F4 54 04 06 3E */ clrlwi r4, r0, 0x18
/* 80397598 003944F8 48 01 A2 85 */ bl inpResetMidiCtrl
/* 8039759C 003944FC 48 00 05 38 */ b lbl_80397AD4
2022-04-08 05:17:01 +00:00
lbl_803975A0:
2022-04-02 09:50:35 +00:00
/* 803975A0 00394500 3B A0 00 00 */ li r29, 0
/* 803975A4 00394504 7F BE EB 78 */ mr r30, r29
lbl_803975A8:
/* 803975A8 00394508 80 6D AE 38 */ lwz r3, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803975AC 0039450C 38 1E 0E 64 */ addi r0, r30, 0xe64
/* 803975B0 00394510 7F 63 00 2E */ lwzx r27, r3, r0
/* 803975B4 00394514 48 00 00 68 */ b lbl_8039761C
lbl_803975B8:
/* 803975B8 00394518 83 9B 00 00 */ lwz r28, 0(r27)
/* 803975BC 0039451C 80 7B 00 08 */ lwz r3, 8(r27)
/* 803975C0 00394520 48 00 3D A1 */ bl synthSendKeyOff
/* 803975C4 00394524 80 9B 00 00 */ lwz r4, 0(r27)
/* 803975C8 00394528 80 6D AE 38 */ lwz r3, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803975CC 0039452C 28 04 00 00 */ cmplwi r4, 0
/* 803975D0 00394530 38 03 0E 64 */ addi r0, r3, 0xe64
/* 803975D4 00394534 7C 9E 01 2E */ stwx r4, r30, r0
/* 803975D8 00394538 41 82 00 18 */ beq lbl_803975F0
/* 803975DC 0039453C 80 6D AE 38 */ lwz r3, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803975E0 00394540 38 80 00 00 */ li r4, 0
/* 803975E4 00394544 38 03 0E 64 */ addi r0, r3, 0xe64
/* 803975E8 00394548 7C 7E 00 2E */ lwzx r3, r30, r0
/* 803975EC 0039454C 90 83 00 04 */ stw r4, 4(r3)
lbl_803975F0:
/* 803975F0 00394550 80 6D AE 38 */ lwz r3, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803975F4 00394554 80 03 0E 6C */ lwz r0, 0xe6c(r3)
/* 803975F8 00394558 28 00 00 00 */ cmplwi r0, 0
/* 803975FC 0039455C 90 1B 00 00 */ stw r0, 0(r27)
/* 80397600 00394560 41 82 00 10 */ beq lbl_80397610
/* 80397604 00394564 80 6D AE 38 */ lwz r3, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80397608 00394568 80 63 0E 6C */ lwz r3, 0xe6c(r3)
/* 8039760C 0039456C 93 63 00 04 */ stw r27, 4(r3)
lbl_80397610:
/* 80397610 00394570 80 6D AE 38 */ lwz r3, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80397614 00394574 93 63 0E 6C */ stw r27, 0xe6c(r3)
/* 80397618 00394578 7F 9B E3 78 */ mr r27, r28
lbl_8039761C:
/* 8039761C 0039457C 28 1B 00 00 */ cmplwi r27, 0
/* 80397620 00394580 40 82 FF 98 */ bne lbl_803975B8
/* 80397624 00394584 3B BD 00 01 */ addi r29, r29, 1
/* 80397628 00394588 3B DE 00 04 */ addi r30, r30, 4
/* 8039762C 0039458C 28 1D 00 02 */ cmplwi r29, 2
/* 80397630 00394590 41 80 FF 78 */ blt lbl_803975A8
/* 80397634 00394594 48 00 04 A0 */ b lbl_80397AD4
lbl_80397638:
/* 80397638 00394598 80 AD AE 30 */ lwz r5, curSeqId@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 8039763C 0039459C 54 06 06 7E */ clrlwi r6, r0, 0x19
/* 80397640 003945A0 7D 24 4B 78 */ mr r4, r9
/* 80397644 003945A4 54 A5 06 3E */ clrlwi r5, r5, 0x18
2022-04-04 10:14:22 +00:00
/* 80397648 003945A8 48 01 9A A9 */ bl inpSetMidiCtrl
2022-04-02 09:50:35 +00:00
/* 8039764C 003945AC 48 00 04 88 */ b lbl_80397AD4
lbl_80397650:
/* 80397650 003945B0 88 7F 00 15 */ lbz r3, 0x15(r31)
/* 80397654 003945B4 38 C0 00 01 */ li r6, 1
/* 80397658 003945B8 81 4D AE 38 */ lwz r10, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 8039765C 003945BC 54 68 EE FA */ rlwinm r8, r3, 0x1d, 0x1b, 0x1d
/* 80397660 003945C0 54 63 06 FE */ clrlwi r3, r3, 0x1b
/* 80397664 003945C4 7D 0A 42 14 */ add r8, r10, r8
/* 80397668 003945C8 81 08 01 1C */ lwz r8, 0x11c(r8)
/* 8039766C 003945CC 7C C3 18 30 */ slw r3, r6, r3
/* 80397670 003945D0 7D 03 18 39 */ and. r3, r8, r3
/* 80397674 003945D4 41 82 04 60 */ beq lbl_80397AD4
/* 80397678 003945D8 55 26 15 BA */ rlwinm r6, r9, 2, 0x16, 0x1d
/* 8039767C 003945DC 7C 6A 32 14 */ add r3, r10, r6
/* 80397680 003945E0 A0 63 0E 70 */ lhz r3, 0xe70(r3)
/* 80397684 003945E4 28 03 FF FF */ cmplwi r3, 0xffff
/* 80397688 003945E8 41 82 04 4C */ beq lbl_80397AD4
/* 8039768C 003945EC 81 4B 00 0C */ lwz r10, 0xc(r11)
/* 80397690 003945F0 89 0A 00 0A */ lbz r8, 0xa(r10)
/* 80397694 003945F4 7D 08 07 74 */ extsb r8, r8
/* 80397698 003945F8 7C 00 42 14 */ add r0, r0, r8
/* 8039769C 003945FC 2C 00 00 7F */ cmpwi r0, 0x7f
/* 803976A0 00394600 40 81 00 0C */ ble lbl_803976AC
/* 803976A4 00394604 38 00 00 7F */ li r0, 0x7f
/* 803976A8 00394608 48 00 00 0C */ b lbl_803976B4
lbl_803976AC:
/* 803976AC 0039460C 7C 08 FE 70 */ srawi r8, r0, 0x1f
/* 803976B0 00394610 7C 00 40 78 */ andc r0, r0, r8
lbl_803976B4:
/* 803976B4 00394614 89 0A 00 0B */ lbz r8, 0xb(r10)
/* 803976B8 00394618 7D 08 07 74 */ extsb r8, r8
/* 803976BC 0039461C 7C A5 42 14 */ add r5, r5, r8
/* 803976C0 00394620 2C 05 00 7F */ cmpwi r5, 0x7f
/* 803976C4 00394624 40 81 00 0C */ ble lbl_803976D0
/* 803976C8 00394628 38 A0 00 7F */ li r5, 0x7f
/* 803976CC 0039462C 48 00 00 0C */ b lbl_803976D8
lbl_803976D0:
/* 803976D0 00394630 7C A8 FE 70 */ srawi r8, r5, 0x1f
/* 803976D4 00394634 7C A5 40 78 */ andc r5, r5, r8
lbl_803976D8:
/* 803976D8 00394638 83 CD AE 34 */ lwz r30, noteFree@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803976DC 0039463C 81 1F 00 08 */ lwz r8, 8(r31)
/* 803976E0 00394640 A0 E7 00 04 */ lhz r7, 4(r7)
/* 803976E4 00394644 28 1E 00 00 */ cmplwi r30, 0
/* 803976E8 00394648 7D 48 3A 14 */ add r10, r8, r7
/* 803976EC 0039464C 41 82 00 DC */ beq lbl_803977C8
/* 803976F0 00394650 81 1E 00 00 */ lwz r8, 0(r30)
/* 803976F4 00394654 28 08 00 00 */ cmplwi r8, 0
/* 803976F8 00394658 91 0D AE 34 */ stw r8, noteFree@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803976FC 0039465C 41 82 00 0C */ beq lbl_80397708
/* 80397700 00394660 38 E0 00 00 */ li r7, 0
/* 80397704 00394664 90 E8 00 04 */ stw r7, 4(r8)
lbl_80397708:
/* 80397708 00394668 91 5E 00 0C */ stw r10, 0xc(r30)
/* 8039770C 0039466C 54 87 06 3E */ clrlwi r7, r4, 0x18
/* 80397710 00394670 1C E7 00 38 */ mulli r7, r7, 0x38
/* 80397714 00394674 39 40 00 00 */ li r10, 0
/* 80397718 00394678 98 9E 00 10 */ stb r4, 0x10(r30)
/* 8039771C 0039467C 81 0D AE 38 */ lwz r8, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80397720 00394680 7C E8 3A 14 */ add r7, r8, r7
/* 80397724 00394684 88 E7 15 18 */ lbz r7, 0x1518(r7)
/* 80397728 00394688 98 FE 00 11 */ stb r7, 0x11(r30)
/* 8039772C 0039468C 88 FE 00 11 */ lbz r7, 0x11(r30)
/* 80397730 00394690 81 0D AE 38 */ lwz r8, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80397734 00394694 54 E7 10 3A */ slwi r7, r7, 2
/* 80397738 00394698 7C E8 3A 14 */ add r7, r8, r7
/* 8039773C 0039469C 81 67 0E 64 */ lwz r11, 0xe64(r7)
/* 80397740 003946A0 48 00 00 50 */ b lbl_80397790
lbl_80397744:
/* 80397744 003946A4 81 0B 00 0C */ lwz r8, 0xc(r11)
/* 80397748 003946A8 80 FE 00 0C */ lwz r7, 0xc(r30)
/* 8039774C 003946AC 7C 08 38 00 */ cmpw r8, r7
/* 80397750 003946B0 40 81 00 38 */ ble lbl_80397788
/* 80397754 003946B4 91 7E 00 00 */ stw r11, 0(r30)
/* 80397758 003946B8 28 0A 00 00 */ cmplwi r10, 0
/* 8039775C 003946BC 91 5E 00 04 */ stw r10, 4(r30)
/* 80397760 003946C0 41 82 00 0C */ beq lbl_8039776C
/* 80397764 003946C4 93 CA 00 00 */ stw r30, 0(r10)
/* 80397768 003946C8 48 00 00 18 */ b lbl_80397780
lbl_8039776C:
/* 8039776C 003946CC 88 FE 00 11 */ lbz r7, 0x11(r30)
/* 80397770 003946D0 81 0D AE 38 */ lwz r8, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80397774 003946D4 54 E7 10 3A */ slwi r7, r7, 2
/* 80397778 003946D8 7C E8 3A 14 */ add r7, r8, r7
/* 8039777C 003946DC 93 C7 0E 64 */ stw r30, 0xe64(r7)
lbl_80397780:
/* 80397780 003946E0 93 CB 00 04 */ stw r30, 4(r11)
/* 80397784 003946E4 48 00 00 44 */ b lbl_803977C8
lbl_80397788:
/* 80397788 003946E8 7D 6A 5B 78 */ mr r10, r11
/* 8039778C 003946EC 81 6B 00 00 */ lwz r11, 0(r11)
lbl_80397790:
/* 80397790 003946F0 28 0B 00 00 */ cmplwi r11, 0
/* 80397794 003946F4 40 82 FF B0 */ bne lbl_80397744
/* 80397798 003946F8 28 0A 00 00 */ cmplwi r10, 0
/* 8039779C 003946FC 91 5E 00 04 */ stw r10, 4(r30)
/* 803977A0 00394700 41 82 00 0C */ beq lbl_803977AC
/* 803977A4 00394704 93 CA 00 00 */ stw r30, 0(r10)
/* 803977A8 00394708 48 00 00 18 */ b lbl_803977C0
lbl_803977AC:
/* 803977AC 0039470C 88 FE 00 11 */ lbz r7, 0x11(r30)
/* 803977B0 00394710 81 0D AE 38 */ lwz r8, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803977B4 00394714 54 E7 10 3A */ slwi r7, r7, 2
/* 803977B8 00394718 7C E8 3A 14 */ add r7, r8, r7
/* 803977BC 0039471C 93 C7 0E 64 */ stw r30, 0xe64(r7)
lbl_803977C0:
/* 803977C0 00394720 38 E0 00 00 */ li r7, 0
/* 803977C4 00394724 90 FE 00 00 */ stw r7, 0(r30)
lbl_803977C8:
/* 803977C8 00394728 28 1E 00 00 */ cmplwi r30, 0
/* 803977CC 0039472C 41 82 03 08 */ beq lbl_80397AD4
/* 803977D0 00394730 83 8D AE 38 */ lwz r28, cseq@sda21(r13)
2022-04-08 05:17:01 +00:00
/* 803977D4 00394734 3C E0 80 55 */ lis r7, synthITDDefault@ha
2022-04-02 09:50:35 +00:00
/* 803977D8 00394738 8B 5F 00 15 */ lbz r26, 0x15(r31)
/* 803977DC 0039473C 39 00 00 00 */ li r8, 0
/* 803977E0 00394740 8B 7C 0E E1 */ lbz r27, 0xee1(r28)
2022-04-08 05:17:01 +00:00
/* 803977E4 00394744 39 67 0A A4 */ addi r11, r7, synthITDDefault@l
/* 803977E8 00394748 89 4D AE 2C */ lbz r10, curFadeOutState@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803977EC 0039474C 7F BC D2 14 */ add r29, r28, r26
/* 803977F0 00394750 57 6C 0D FC */ rlwinm r12, r27, 1, 0x17, 0x1e
/* 803977F4 00394754 90 81 00 08 */ stw r4, 8(r1)
/* 803977F8 00394758 7C EA 00 D0 */ neg r7, r10
/* 803977FC 0039475C 7C E7 53 78 */ or r7, r7, r10
/* 80397800 00394760 7D 5C 32 14 */ add r10, r28, r6
/* 80397804 00394764 91 01 00 0C */ stw r8, 0xc(r1)
/* 80397808 00394768 7C E4 FE 70 */ srawi r4, r7, 0x1f
/* 8039780C 0039476C 54 06 06 3E */ clrlwi r6, r0, 0x18
/* 80397810 00394770 54 A7 06 3E */ clrlwi r7, r5, 0x18
/* 80397814 00394774 93 41 00 10 */ stw r26, 0x10(r1)
/* 80397818 00394778 7C 84 07 34 */ extsh r4, r4
/* 8039781C 0039477C 39 00 00 40 */ li r8, 0x40
/* 80397820 00394780 88 1D 03 24 */ lbz r0, 0x324(r29)
/* 80397824 00394784 90 01 00 14 */ stw r0, 0x14(r1)
/* 80397828 00394788 90 81 00 18 */ stw r4, 0x18(r1)
/* 8039782C 0039478C 93 61 00 1C */ stw r27, 0x1c(r1)
/* 80397830 00394790 7C 0B 60 AE */ lbzx r0, r11, r12
/* 80397834 00394794 90 01 00 20 */ stw r0, 0x20(r1)
/* 80397838 00394798 80 0D AE 30 */ lwz r0, curSeqId@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 8039783C 0039479C 88 8A 0E 72 */ lbz r4, 0xe72(r10)
/* 80397840 003947A0 88 AA 0E 73 */ lbz r5, 0xe73(r10)
/* 80397844 003947A4 54 0A 06 3E */ clrlwi r10, r0, 0x18
2022-04-09 06:40:18 +00:00
/* 80397848 003947A8 48 00 1E 05 */ bl synthStartSound
2022-04-02 09:50:35 +00:00
/* 8039784C 003947AC 3C 03 00 01 */ addis r0, r3, 1
/* 80397850 003947B0 90 7E 00 08 */ stw r3, 8(r30)
/* 80397854 003947B4 28 00 FF FF */ cmplwi r0, 0xffff
/* 80397858 003947B8 40 82 02 7C */ bne lbl_80397AD4
/* 8039785C 003947BC 80 7E 00 00 */ lwz r3, 0(r30)
/* 80397860 003947C0 28 03 00 00 */ cmplwi r3, 0
/* 80397864 003947C4 41 82 00 0C */ beq lbl_80397870
/* 80397868 003947C8 80 1E 00 04 */ lwz r0, 4(r30)
/* 8039786C 003947CC 90 03 00 04 */ stw r0, 4(r3)
lbl_80397870:
/* 80397870 003947D0 80 7E 00 04 */ lwz r3, 4(r30)
/* 80397874 003947D4 28 03 00 00 */ cmplwi r3, 0
/* 80397878 003947D8 41 82 00 10 */ beq lbl_80397888
/* 8039787C 003947DC 80 1E 00 00 */ lwz r0, 0(r30)
/* 80397880 003947E0 90 03 00 00 */ stw r0, 0(r3)
/* 80397884 003947E4 48 00 00 1C */ b lbl_803978A0
lbl_80397888:
/* 80397888 003947E8 88 1E 00 11 */ lbz r0, 0x11(r30)
/* 8039788C 003947EC 80 6D AE 38 */ lwz r3, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80397890 003947F0 54 00 10 3A */ slwi r0, r0, 2
/* 80397894 003947F4 80 9E 00 00 */ lwz r4, 0(r30)
/* 80397898 003947F8 7C 63 02 14 */ add r3, r3, r0
/* 8039789C 003947FC 90 83 0E 64 */ stw r4, 0xe64(r3)
lbl_803978A0:
/* 803978A0 00394800 80 0D AE 34 */ lwz r0, noteFree@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803978A4 00394804 28 00 00 00 */ cmplwi r0, 0
/* 803978A8 00394808 90 1E 00 00 */ stw r0, 0(r30)
/* 803978AC 0039480C 41 82 00 0C */ beq lbl_803978B8
/* 803978B0 00394810 80 6D AE 34 */ lwz r3, noteFree@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803978B4 00394814 93 C3 00 04 */ stw r30, 4(r3)
lbl_803978B8:
/* 803978B8 00394818 38 00 00 00 */ li r0, 0
/* 803978BC 0039481C 90 1E 00 04 */ stw r0, 4(r30)
/* 803978C0 00394820 93 CD AE 34 */ stw r30, noteFree@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803978C4 00394824 48 00 02 10 */ b lbl_80397AD4
lbl_803978C8:
/* 803978C8 00394828 80 BF 00 10 */ lwz r5, 0x10(r31)
/* 803978CC 0039482C A0 65 00 14 */ lhz r3, 0x14(r5)
/* 803978D0 00394830 A8 05 00 16 */ lha r0, 0x16(r5)
/* 803978D4 00394834 7C 03 02 14 */ add r0, r3, r0
/* 803978D8 00394838 B0 05 00 14 */ sth r0, 0x14(r5)
/* 803978DC 0039483C 80 E5 00 10 */ lwz r7, 0x10(r5)
/* 803978E0 00394840 28 07 00 00 */ cmplwi r7, 0
/* 803978E4 00394844 41 82 00 B8 */ beq lbl_8039799C
/* 803978E8 00394848 88 C7 00 00 */ lbz r6, 0(r7)
/* 803978EC 0039484C 88 67 00 01 */ lbz r3, 1(r7)
/* 803978F0 00394850 28 06 00 80 */ cmplwi r6, 0x80
/* 803978F4 00394854 40 82 00 14 */ bne lbl_80397908
/* 803978F8 00394858 28 03 00 00 */ cmplwi r3, 0
/* 803978FC 0039485C 40 82 00 0C */ bne lbl_80397908
/* 80397900 00394860 38 C0 00 00 */ li r6, 0
/* 80397904 00394864 48 00 00 68 */ b lbl_8039796C
lbl_80397908:
/* 80397908 00394868 54 C0 06 31 */ rlwinm. r0, r6, 0, 0x18, 0x18
/* 8039790C 0039486C 41 82 00 14 */ beq lbl_80397920
/* 80397910 00394870 50 C3 44 6E */ rlwimi r3, r6, 8, 0x11, 0x17
/* 80397914 00394874 38 C7 00 02 */ addi r6, r7, 2
/* 80397918 00394878 54 64 04 3E */ clrlwi r4, r3, 0x10
/* 8039791C 0039487C 48 00 00 0C */ b lbl_80397928
lbl_80397920:
/* 80397920 00394880 7C C4 33 78 */ mr r4, r6
/* 80397924 00394884 38 C7 00 01 */ addi r6, r7, 1
lbl_80397928:
/* 80397928 00394888 88 66 00 00 */ lbz r3, 0(r6)
/* 8039792C 0039488C 88 E6 00 01 */ lbz r7, 1(r6)
/* 80397930 00394890 54 60 06 31 */ rlwinm. r0, r3, 0, 0x18, 0x18
/* 80397934 00394894 41 82 00 20 */ beq lbl_80397954
/* 80397938 00394898 50 67 44 6E */ rlwimi r7, r3, 8, 0x11, 0x17
/* 8039793C 0039489C 38 C6 00 02 */ addi r6, r6, 2
/* 80397940 003948A0 7C E3 07 34 */ extsh r3, r7
/* 80397944 003948A4 54 60 0C 20 */ rlwinm r0, r3, 1, 0x10, 0x10
/* 80397948 003948A8 7C 60 03 78 */ or r0, r3, r0
/* 8039794C 003948AC B0 05 00 16 */ sth r0, 0x16(r5)
/* 80397950 003948B0 48 00 00 1C */ b lbl_8039796C
lbl_80397954:
/* 80397954 003948B4 54 60 0E 30 */ rlwinm r0, r3, 1, 0x18, 0x18
/* 80397958 003948B8 38 C6 00 01 */ addi r6, r6, 1
/* 8039795C 003948BC 7C 60 03 78 */ or r0, r3, r0
/* 80397960 003948C0 54 03 06 3E */ clrlwi r3, r0, 0x18
/* 80397964 003948C4 7C 60 07 74 */ extsb r0, r3
/* 80397968 003948C8 B0 05 00 16 */ sth r0, 0x16(r5)
lbl_8039796C:
/* 8039796C 003948CC 28 06 00 00 */ cmplwi r6, 0
/* 80397970 003948D0 90 C5 00 10 */ stw r6, 0x10(r5)
/* 80397974 003948D4 41 82 00 18 */ beq lbl_8039798C
/* 80397978 003948D8 80 65 00 18 */ lwz r3, 0x18(r5)
/* 8039797C 003948DC 54 80 04 3E */ clrlwi r0, r4, 0x10
/* 80397980 003948E0 7C 03 02 14 */ add r0, r3, r0
/* 80397984 003948E4 90 05 00 18 */ stw r0, 0x18(r5)
/* 80397988 003948E8 48 00 00 20 */ b lbl_803979A8
lbl_8039798C:
/* 8039798C 003948EC 3C 60 80 00 */ lis r3, 0x7FFFFFFF@ha
/* 80397990 003948F0 38 03 FF FF */ addi r0, r3, 0x7FFFFFFF@l
/* 80397994 003948F4 90 05 00 18 */ stw r0, 0x18(r5)
/* 80397998 003948F8 48 00 00 10 */ b lbl_803979A8
lbl_8039799C:
/* 8039799C 003948FC 3C 60 80 00 */ lis r3, 0x7FFFFFFF@ha
/* 803979A0 00394900 38 03 FF FF */ addi r0, r3, 0x7FFFFFFF@l
/* 803979A4 00394904 90 05 00 18 */ stw r0, 0x18(r5)
lbl_803979A8:
/* 803979A8 00394908 80 0D AE 30 */ lwz r0, curSeqId@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803979AC 0039490C 38 60 00 80 */ li r3, 0x80
/* 803979B0 00394910 88 85 00 28 */ lbz r4, 0x28(r5)
/* 803979B4 00394914 A0 C5 00 14 */ lhz r6, 0x14(r5)
/* 803979B8 00394918 54 05 06 3E */ clrlwi r5, r0, 0x18
/* 803979BC 0039491C 48 01 9D 3D */ bl inpSetMidiCtrl14
/* 803979C0 00394920 48 00 01 14 */ b lbl_80397AD4
lbl_803979C4:
/* 803979C4 00394924 80 BF 00 10 */ lwz r5, 0x10(r31)
/* 803979C8 00394928 A0 65 00 20 */ lhz r3, 0x20(r5)
/* 803979CC 0039492C A8 05 00 22 */ lha r0, 0x22(r5)
/* 803979D0 00394930 7C 03 02 14 */ add r0, r3, r0
/* 803979D4 00394934 B0 05 00 20 */ sth r0, 0x20(r5)
/* 803979D8 00394938 80 E5 00 1C */ lwz r7, 0x1c(r5)
/* 803979DC 0039493C 28 07 00 00 */ cmplwi r7, 0
/* 803979E0 00394940 41 82 00 B8 */ beq lbl_80397A98
/* 803979E4 00394944 88 C7 00 00 */ lbz r6, 0(r7)
/* 803979E8 00394948 88 67 00 01 */ lbz r3, 1(r7)
/* 803979EC 0039494C 28 06 00 80 */ cmplwi r6, 0x80
/* 803979F0 00394950 40 82 00 14 */ bne lbl_80397A04
/* 803979F4 00394954 28 03 00 00 */ cmplwi r3, 0
/* 803979F8 00394958 40 82 00 0C */ bne lbl_80397A04
/* 803979FC 0039495C 38 C0 00 00 */ li r6, 0
/* 80397A00 00394960 48 00 00 68 */ b lbl_80397A68
lbl_80397A04:
/* 80397A04 00394964 54 C0 06 31 */ rlwinm. r0, r6, 0, 0x18, 0x18
/* 80397A08 00394968 41 82 00 14 */ beq lbl_80397A1C
/* 80397A0C 0039496C 50 C3 44 6E */ rlwimi r3, r6, 8, 0x11, 0x17
/* 80397A10 00394970 38 C7 00 02 */ addi r6, r7, 2
/* 80397A14 00394974 54 64 04 3E */ clrlwi r4, r3, 0x10
/* 80397A18 00394978 48 00 00 0C */ b lbl_80397A24
lbl_80397A1C:
/* 80397A1C 0039497C 7C C4 33 78 */ mr r4, r6
/* 80397A20 00394980 38 C7 00 01 */ addi r6, r7, 1
lbl_80397A24:
/* 80397A24 00394984 88 66 00 00 */ lbz r3, 0(r6)
/* 80397A28 00394988 88 E6 00 01 */ lbz r7, 1(r6)
/* 80397A2C 0039498C 54 60 06 31 */ rlwinm. r0, r3, 0, 0x18, 0x18
/* 80397A30 00394990 41 82 00 20 */ beq lbl_80397A50
/* 80397A34 00394994 50 67 44 6E */ rlwimi r7, r3, 8, 0x11, 0x17
/* 80397A38 00394998 38 C6 00 02 */ addi r6, r6, 2
/* 80397A3C 0039499C 7C E3 07 34 */ extsh r3, r7
/* 80397A40 003949A0 54 60 0C 20 */ rlwinm r0, r3, 1, 0x10, 0x10
/* 80397A44 003949A4 7C 60 03 78 */ or r0, r3, r0
/* 80397A48 003949A8 B0 05 00 22 */ sth r0, 0x22(r5)
/* 80397A4C 003949AC 48 00 00 1C */ b lbl_80397A68
lbl_80397A50:
/* 80397A50 003949B0 54 60 0E 30 */ rlwinm r0, r3, 1, 0x18, 0x18
/* 80397A54 003949B4 38 C6 00 01 */ addi r6, r6, 1
/* 80397A58 003949B8 7C 60 03 78 */ or r0, r3, r0
/* 80397A5C 003949BC 54 03 06 3E */ clrlwi r3, r0, 0x18
/* 80397A60 003949C0 7C 60 07 74 */ extsb r0, r3
/* 80397A64 003949C4 B0 05 00 22 */ sth r0, 0x22(r5)
lbl_80397A68:
/* 80397A68 003949C8 28 06 00 00 */ cmplwi r6, 0
/* 80397A6C 003949CC 90 C5 00 1C */ stw r6, 0x1c(r5)
/* 80397A70 003949D0 41 82 00 18 */ beq lbl_80397A88
/* 80397A74 003949D4 80 65 00 24 */ lwz r3, 0x24(r5)
/* 80397A78 003949D8 54 80 04 3E */ clrlwi r0, r4, 0x10
/* 80397A7C 003949DC 7C 03 02 14 */ add r0, r3, r0
/* 80397A80 003949E0 90 05 00 24 */ stw r0, 0x24(r5)
/* 80397A84 003949E4 48 00 00 20 */ b lbl_80397AA4
lbl_80397A88:
/* 80397A88 003949E8 3C 60 80 00 */ lis r3, 0x7FFFFFFF@ha
/* 80397A8C 003949EC 38 03 FF FF */ addi r0, r3, 0x7FFFFFFF@l
/* 80397A90 003949F0 90 05 00 24 */ stw r0, 0x24(r5)
/* 80397A94 003949F4 48 00 00 10 */ b lbl_80397AA4
lbl_80397A98:
/* 80397A98 003949F8 3C 60 80 00 */ lis r3, 0x7FFFFFFF@ha
/* 80397A9C 003949FC 38 03 FF FF */ addi r0, r3, 0x7FFFFFFF@l
/* 80397AA0 00394A00 90 05 00 24 */ stw r0, 0x24(r5)
lbl_80397AA4:
/* 80397AA4 00394A04 80 0D AE 30 */ lwz r0, curSeqId@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80397AA8 00394A08 38 60 00 01 */ li r3, 1
/* 80397AAC 00394A0C 88 85 00 28 */ lbz r4, 0x28(r5)
/* 80397AB0 00394A10 A0 C5 00 20 */ lhz r6, 0x20(r5)
/* 80397AB4 00394A14 54 05 06 3E */ clrlwi r5, r0, 0x18
/* 80397AB8 00394A18 48 01 9C 41 */ bl inpSetMidiCtrl14
/* 80397ABC 00394A1C 48 00 00 18 */ b lbl_80397AD4
lbl_80397AC0:
/* 80397AC0 00394A20 80 05 00 00 */ lwz r0, 0(r5)
/* 80397AC4 00394A24 38 60 00 00 */ li r3, 0
/* 80397AC8 00394A28 60 00 00 01 */ ori r0, r0, 1
/* 80397ACC 00394A2C 90 05 00 00 */ stw r0, 0(r5)
/* 80397AD0 00394A30 48 00 00 0C */ b lbl_80397ADC
lbl_80397AD4:
/* 80397AD4 00394A34 88 7F 00 15 */ lbz r3, 0x15(r31)
/* 80397AD8 00394A38 4B FF F3 71 */ bl GenerateNextTrackEvent
lbl_80397ADC:
/* 80397ADC 00394A3C 39 61 00 40 */ addi r11, r1, 0x40
/* 80397AE0 00394A40 4B FF 1F E5 */ bl _restgpr_26
/* 80397AE4 00394A44 80 01 00 44 */ lwz r0, 0x44(r1)
/* 80397AE8 00394A48 7C 08 03 A6 */ mtlr r0
/* 80397AEC 00394A4C 38 21 00 40 */ addi r1, r1, 0x40
2022-04-08 05:17:01 +00:00
/* 80397AF0 00394A50 4E 80 00 20 */ blr
2022-04-02 09:50:35 +00:00
.global InitTrackEvents
InitTrackEvents:
/* 80397AF4 00394A54 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 80397AF8 00394A58 7C 08 02 A6 */ mflr r0
/* 80397AFC 00394A5C 90 01 00 14 */ stw r0, 0x14(r1)
/* 80397B00 00394A60 93 E1 00 0C */ stw r31, 0xc(r1)
/* 80397B04 00394A64 80 6D AE 38 */ lwz r3, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80397B08 00394A68 80 03 14 E4 */ lwz r0, 0x14e4(r3)
/* 80397B0C 00394A6C 28 00 00 00 */ cmplwi r0, 0
/* 80397B10 00394A70 40 82 00 9C */ bne lbl_80397BAC
/* 80397B14 00394A74 3B E0 00 00 */ li r31, 0
lbl_80397B18:
/* 80397B18 00394A78 57 E3 06 3E */ clrlwi r3, r31, 0x18
/* 80397B1C 00394A7C 4B FF F3 2D */ bl GenerateNextTrackEvent
/* 80397B20 00394A80 28 03 00 00 */ cmplwi r3, 0
/* 80397B24 00394A84 41 82 00 78 */ beq lbl_80397B9C
/* 80397B28 00394A88 80 AD AE 38 */ lwz r5, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80397B2C 00394A8C 38 C0 00 00 */ li r6, 0
/* 80397B30 00394A90 80 E5 15 04 */ lwz r7, 0x1504(r5)
/* 80397B34 00394A94 48 00 00 40 */ b lbl_80397B74
lbl_80397B38:
/* 80397B38 00394A98 80 87 00 08 */ lwz r4, 8(r7)
/* 80397B3C 00394A9C 80 03 00 08 */ lwz r0, 8(r3)
/* 80397B40 00394AA0 7C 04 00 40 */ cmplw r4, r0
/* 80397B44 00394AA4 40 81 00 28 */ ble lbl_80397B6C
/* 80397B48 00394AA8 90 E3 00 00 */ stw r7, 0(r3)
/* 80397B4C 00394AAC 28 06 00 00 */ cmplwi r6, 0
/* 80397B50 00394AB0 90 C3 00 04 */ stw r6, 4(r3)
/* 80397B54 00394AB4 41 82 00 0C */ beq lbl_80397B60
/* 80397B58 00394AB8 90 66 00 00 */ stw r3, 0(r6)
/* 80397B5C 00394ABC 48 00 00 08 */ b lbl_80397B64
lbl_80397B60:
/* 80397B60 00394AC0 90 65 15 04 */ stw r3, 0x1504(r5)
lbl_80397B64:
/* 80397B64 00394AC4 90 67 00 04 */ stw r3, 4(r7)
/* 80397B68 00394AC8 48 00 00 34 */ b lbl_80397B9C
lbl_80397B6C:
/* 80397B6C 00394ACC 7C E6 3B 78 */ mr r6, r7
/* 80397B70 00394AD0 80 E7 00 00 */ lwz r7, 0(r7)
lbl_80397B74:
/* 80397B74 00394AD4 28 07 00 00 */ cmplwi r7, 0
/* 80397B78 00394AD8 40 82 FF C0 */ bne lbl_80397B38
/* 80397B7C 00394ADC 28 06 00 00 */ cmplwi r6, 0
/* 80397B80 00394AE0 90 C3 00 04 */ stw r6, 4(r3)
/* 80397B84 00394AE4 41 82 00 0C */ beq lbl_80397B90
/* 80397B88 00394AE8 90 66 00 00 */ stw r3, 0(r6)
/* 80397B8C 00394AEC 48 00 00 08 */ b lbl_80397B94
lbl_80397B90:
/* 80397B90 00394AF0 90 65 15 04 */ stw r3, 0x1504(r5)
lbl_80397B94:
/* 80397B94 00394AF4 38 00 00 00 */ li r0, 0
/* 80397B98 00394AF8 90 03 00 00 */ stw r0, 0(r3)
lbl_80397B9C:
/* 80397B9C 00394AFC 3B FF 00 01 */ addi r31, r31, 1
/* 80397BA0 00394B00 28 1F 00 40 */ cmplwi r31, 0x40
/* 80397BA4 00394B04 41 80 FF 74 */ blt lbl_80397B18
/* 80397BA8 00394B08 48 00 00 AC */ b lbl_80397C54
lbl_80397BAC:
/* 80397BAC 00394B0C 3B E0 00 00 */ li r31, 0
lbl_80397BB0:
/* 80397BB0 00394B10 57 E3 06 3E */ clrlwi r3, r31, 0x18
/* 80397BB4 00394B14 4B FF F2 95 */ bl GenerateNextTrackEvent
/* 80397BB8 00394B18 28 03 00 00 */ cmplwi r3, 0
/* 80397BBC 00394B1C 41 82 00 8C */ beq lbl_80397C48
/* 80397BC0 00394B20 80 CD AE 38 */ lwz r6, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80397BC4 00394B24 38 A0 00 00 */ li r5, 0
/* 80397BC8 00394B28 80 86 14 E4 */ lwz r4, 0x14e4(r6)
/* 80397BCC 00394B2C 7C 04 F8 AE */ lbzx r0, r4, r31
/* 80397BD0 00394B30 1C 80 00 38 */ mulli r4, r0, 0x38
/* 80397BD4 00394B34 38 E4 14 E8 */ addi r7, r4, 0x14e8
/* 80397BD8 00394B38 7C E6 3A 14 */ add r7, r6, r7
/* 80397BDC 00394B3C 80 C7 00 1C */ lwz r6, 0x1c(r7)
/* 80397BE0 00394B40 48 00 00 40 */ b lbl_80397C20
lbl_80397BE4:
/* 80397BE4 00394B44 80 86 00 08 */ lwz r4, 8(r6)
/* 80397BE8 00394B48 80 03 00 08 */ lwz r0, 8(r3)
/* 80397BEC 00394B4C 7C 04 00 40 */ cmplw r4, r0
/* 80397BF0 00394B50 40 81 00 28 */ ble lbl_80397C18
/* 80397BF4 00394B54 90 C3 00 00 */ stw r6, 0(r3)
/* 80397BF8 00394B58 28 05 00 00 */ cmplwi r5, 0
/* 80397BFC 00394B5C 90 A3 00 04 */ stw r5, 4(r3)
/* 80397C00 00394B60 41 82 00 0C */ beq lbl_80397C0C
/* 80397C04 00394B64 90 65 00 00 */ stw r3, 0(r5)
/* 80397C08 00394B68 48 00 00 08 */ b lbl_80397C10
lbl_80397C0C:
/* 80397C0C 00394B6C 90 67 00 1C */ stw r3, 0x1c(r7)
lbl_80397C10:
/* 80397C10 00394B70 90 66 00 04 */ stw r3, 4(r6)
/* 80397C14 00394B74 48 00 00 34 */ b lbl_80397C48
lbl_80397C18:
/* 80397C18 00394B78 7C C5 33 78 */ mr r5, r6
/* 80397C1C 00394B7C 80 C6 00 00 */ lwz r6, 0(r6)
lbl_80397C20:
/* 80397C20 00394B80 28 06 00 00 */ cmplwi r6, 0
/* 80397C24 00394B84 40 82 FF C0 */ bne lbl_80397BE4
/* 80397C28 00394B88 28 05 00 00 */ cmplwi r5, 0
/* 80397C2C 00394B8C 90 A3 00 04 */ stw r5, 4(r3)
/* 80397C30 00394B90 41 82 00 0C */ beq lbl_80397C3C
/* 80397C34 00394B94 90 65 00 00 */ stw r3, 0(r5)
/* 80397C38 00394B98 48 00 00 08 */ b lbl_80397C40
lbl_80397C3C:
/* 80397C3C 00394B9C 90 67 00 1C */ stw r3, 0x1c(r7)
lbl_80397C40:
/* 80397C40 00394BA0 38 00 00 00 */ li r0, 0
/* 80397C44 00394BA4 90 03 00 00 */ stw r0, 0(r3)
lbl_80397C48:
/* 80397C48 00394BA8 3B FF 00 01 */ addi r31, r31, 1
/* 80397C4C 00394BAC 28 1F 00 40 */ cmplwi r31, 0x40
/* 80397C50 00394BB0 41 80 FF 60 */ blt lbl_80397BB0
lbl_80397C54:
/* 80397C54 00394BB4 80 01 00 14 */ lwz r0, 0x14(r1)
/* 80397C58 00394BB8 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 80397C5C 00394BBC 7C 08 03 A6 */ mtlr r0
/* 80397C60 00394BC0 38 21 00 10 */ addi r1, r1, 0x10
2022-04-08 05:17:01 +00:00
/* 80397C64 00394BC4 4E 80 00 20 */ blr
2022-04-02 09:50:35 +00:00
.global HandleTrackEvents
HandleTrackEvents:
/* 80397C68 00394BC8 94 21 FF A0 */ stwu r1, -0x60(r1)
/* 80397C6C 00394BCC 7C 08 02 A6 */ mflr r0
/* 80397C70 00394BD0 90 01 00 64 */ stw r0, 0x64(r1)
/* 80397C74 00394BD4 DB E1 00 50 */ stfd f31, 0x50(r1)
/* 80397C78 00394BD8 F3 E1 00 58 */ psq_st f31, 88(r1), 0, qr0
/* 80397C7C 00394BDC 39 61 00 50 */ addi r11, r1, 0x50
2022-04-04 10:14:22 +00:00
/* 80397C80 00394BE0 4B FF 1D F5 */ bl _savegpr_25
2022-04-02 09:50:35 +00:00
/* 80397C84 00394BE4 7C 7A 1B 78 */ mr r26, r3
/* 80397C88 00394BE8 38 00 00 00 */ li r0, 0
/* 80397C8C 00394BEC 54 65 06 3E */ clrlwi r5, r3, 0x18
/* 80397C90 00394BF0 80 6D AE 38 */ lwz r3, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80397C94 00394BF4 1F A5 00 38 */ mulli r29, r5, 0x38
/* 80397C98 00394BF8 90 01 00 08 */ stw r0, 8(r1)
/* 80397C9C 00394BFC 7C 9B 23 78 */ mr r27, r4
/* 80397CA0 00394C00 57 5E 15 BA */ rlwinm r30, r26, 2, 0x16, 0x1d
/* 80397CA4 00394C04 3B 9D 14 E8 */ addi r28, r29, 0x14e8
/* 80397CA8 00394C08 7F 83 E2 14 */ add r28, r3, r28
/* 80397CAC 00394C0C 48 00 04 04 */ b lbl_803980B0
lbl_80397CB0:
/* 80397CB0 00394C10 28 03 00 00 */ cmplwi r3, 0
/* 80397CB4 00394C14 41 82 00 20 */ beq lbl_80397CD4
/* 80397CB8 00394C18 80 03 00 00 */ lwz r0, 0(r3)
/* 80397CBC 00394C1C 28 00 00 00 */ cmplwi r0, 0
/* 80397CC0 00394C20 90 1C 00 1C */ stw r0, 0x1c(r28)
/* 80397CC4 00394C24 41 82 00 10 */ beq lbl_80397CD4
/* 80397CC8 00394C28 80 9C 00 1C */ lwz r4, 0x1c(r28)
/* 80397CCC 00394C2C 38 00 00 00 */ li r0, 0
/* 80397CD0 00394C30 90 04 00 04 */ stw r0, 4(r4)
lbl_80397CD4:
/* 80397CD4 00394C34 28 03 00 00 */ cmplwi r3, 0
/* 80397CD8 00394C38 40 82 03 54 */ bne lbl_8039802C
/* 80397CDC 00394C3C 80 01 00 08 */ lwz r0, 8(r1)
/* 80397CE0 00394C40 28 00 00 00 */ cmplwi r0, 0
/* 80397CE4 00394C44 40 82 00 0C */ bne lbl_80397CF0
/* 80397CE8 00394C48 38 60 00 00 */ li r3, 0
/* 80397CEC 00394C4C 48 00 03 F8 */ b lbl_803980E4
lbl_80397CF0:
/* 80397CF0 00394C50 38 00 00 00 */ li r0, 0
/* 80397CF4 00394C54 90 01 00 08 */ stw r0, 8(r1)
/* 80397CF8 00394C58 88 1C 00 30 */ lbz r0, 0x30(r28)
/* 80397CFC 00394C5C 68 00 00 01 */ xori r0, r0, 1
/* 80397D00 00394C60 98 1C 00 30 */ stb r0, 0x30(r28)
/* 80397D04 00394C64 80 6D AE 38 */ lwz r3, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80397D08 00394C68 88 1C 00 30 */ lbz r0, 0x30(r28)
/* 80397D0C 00394C6C 80 83 01 18 */ lwz r4, 0x118(r3)
/* 80397D10 00394C70 54 03 18 38 */ slwi r3, r0, 3
/* 80397D14 00394C74 38 04 00 14 */ addi r0, r4, 0x14
/* 80397D18 00394C78 7C 9E 00 2E */ lwzx r4, r30, r0
/* 80397D1C 00394C7C 38 03 00 24 */ addi r0, r3, 0x24
/* 80397D20 00394C80 7C 9C 01 2E */ stwx r4, r28, r0
/* 80397D24 00394C84 88 7C 00 30 */ lbz r3, 0x30(r28)
/* 80397D28 00394C88 68 60 00 01 */ xori r0, r3, 1
/* 80397D2C 00394C8C 54 63 1D 78 */ rlwinm r3, r3, 3, 0x15, 0x1c
/* 80397D30 00394C90 54 04 18 38 */ slwi r4, r0, 3
/* 80397D34 00394C94 38 84 00 20 */ addi r4, r4, 0x20
/* 80397D38 00394C98 38 03 00 20 */ addi r0, r3, 0x20
/* 80397D3C 00394C9C 7C 7C 20 2E */ lwzx r3, r28, r4
/* 80397D40 00394CA0 7C 7C 01 2E */ stwx r3, r28, r0
/* 80397D44 00394CA4 80 0D AE 38 */ lwz r0, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80397D48 00394CA8 7C 7D 02 14 */ add r3, r29, r0
/* 80397D4C 00394CAC 80 03 14 E8 */ lwz r0, 0x14e8(r3)
/* 80397D50 00394CB0 28 00 00 00 */ cmplwi r0, 0
/* 80397D54 00394CB4 41 82 01 6C */ beq lbl_80397EC0
/* 80397D58 00394CB8 90 03 14 EC */ stw r0, 0x14ec(r3)
/* 80397D5C 00394CBC 3B FD 14 E8 */ addi r31, r29, 0x14e8
/* 80397D60 00394CC0 80 0D AE 38 */ lwz r0, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80397D64 00394CC4 7F E0 FA 14 */ add r31, r0, r31
/* 80397D68 00394CC8 80 1F 00 00 */ lwz r0, 0(r31)
/* 80397D6C 00394CCC 28 00 00 00 */ cmplwi r0, 0
/* 80397D70 00394CD0 41 82 00 9C */ beq lbl_80397E0C
/* 80397D74 00394CD4 48 00 00 84 */ b lbl_80397DF8
lbl_80397D78:
/* 80397D78 00394CD8 88 1F 00 30 */ lbz r0, 0x30(r31)
/* 80397D7C 00394CDC 80 86 00 00 */ lwz r4, 0(r6)
/* 80397D80 00394CE0 54 03 18 38 */ slwi r3, r0, 3
/* 80397D84 00394CE4 38 03 00 24 */ addi r0, r3, 0x24
/* 80397D88 00394CE8 7C 1F 00 2E */ lwzx r0, r31, r0
/* 80397D8C 00394CEC 7C 04 00 40 */ cmplw r4, r0
/* 80397D90 00394CF0 41 81 00 7C */ bgt lbl_80397E0C
/* 80397D94 00394CF4 80 6D AE 38 */ lwz r3, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80397D98 00394CF8 80 63 01 18 */ lwz r3, 0x118(r3)
/* 80397D9C 00394CFC 80 03 00 10 */ lwz r0, 0x10(r3)
/* 80397DA0 00394D00 54 00 00 43 */ rlwinm. r0, r0, 0, 1, 1
/* 80397DA4 00394D04 41 82 00 24 */ beq lbl_80397DC8
/* 80397DA8 00394D08 80 06 00 04 */ lwz r0, 4(r6)
/* 80397DAC 00394D0C 7F 45 D3 78 */ mr r5, r26
/* 80397DB0 00394D10 90 1F 00 08 */ stw r0, 8(r31)
/* 80397DB4 00394D14 54 03 B2 BE */ srwi r3, r0, 0xa
/* 80397DB8 00394D18 80 0D AE 30 */ lwz r0, curSeqId@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80397DBC 00394D1C 54 04 06 3E */ clrlwi r4, r0, 0x18
/* 80397DC0 00394D20 48 00 0E E1 */ bl synthSetBpm
/* 80397DC4 00394D24 48 00 00 28 */ b lbl_80397DEC
lbl_80397DC8:
/* 80397DC8 00394D28 80 0D AE 30 */ lwz r0, curSeqId@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80397DCC 00394D2C 7F 45 D3 78 */ mr r5, r26
/* 80397DD0 00394D30 80 66 00 04 */ lwz r3, 4(r6)
/* 80397DD4 00394D34 54 04 06 3E */ clrlwi r4, r0, 0x18
/* 80397DD8 00394D38 48 00 0E C9 */ bl synthSetBpm
/* 80397DDC 00394D3C 80 7F 00 04 */ lwz r3, 4(r31)
/* 80397DE0 00394D40 80 03 00 04 */ lwz r0, 4(r3)
/* 80397DE4 00394D44 54 00 50 2A */ slwi r0, r0, 0xa
/* 80397DE8 00394D48 90 1F 00 08 */ stw r0, 8(r31)
lbl_80397DEC:
/* 80397DEC 00394D4C 80 7F 00 04 */ lwz r3, 4(r31)
/* 80397DF0 00394D50 38 03 00 08 */ addi r0, r3, 8
/* 80397DF4 00394D54 90 1F 00 04 */ stw r0, 4(r31)
lbl_80397DF8:
/* 80397DF8 00394D58 80 DF 00 04 */ lwz r6, 4(r31)
/* 80397DFC 00394D5C 80 66 00 00 */ lwz r3, 0(r6)
/* 80397E00 00394D60 3C 03 00 01 */ addis r0, r3, 1
/* 80397E04 00394D64 28 00 FF FF */ cmplwi r0, 0xffff
/* 80397E08 00394D68 40 82 FF 70 */ bne lbl_80397D78
lbl_80397E0C:
/* 80397E0C 00394D6C 80 0D AE 38 */ lwz r0, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80397E10 00394D70 3C 60 43 30 */ lis r3, 0x4330
/* 80397E14 00394D74 3B FD 14 E8 */ addi r31, r29, 0x14e8
/* 80397E18 00394D78 90 61 00 10 */ stw r3, 0x10(r1)
/* 80397E1C 00394D7C 7F E0 FA 14 */ add r31, r0, r31
/* 80397E20 00394D80 C8 C2 D5 08 */ lfd f6, lbl_805AF228@sda21(r2)
/* 80397E24 00394D84 80 9F 00 08 */ lwz r4, 8(r31)
/* 80397E28 00394D88 A0 1F 00 32 */ lhz r0, 0x32(r31)
/* 80397E2C 00394D8C 90 81 00 14 */ stw r4, 0x14(r1)
/* 80397E30 00394D90 C0 E2 D4 F0 */ lfs f7, lbl_805AF210@sda21(r2)
/* 80397E34 00394D94 C8 01 00 10 */ lfd f0, 0x10(r1)
/* 80397E38 00394D98 93 61 00 1C */ stw r27, 0x1c(r1)
/* 80397E3C 00394D9C EC A0 30 28 */ fsubs f5, f0, f6
/* 80397E40 00394DA0 C0 62 D4 F4 */ lfs f3, lbl_805AF214@sda21(r2)
/* 80397E44 00394DA4 90 61 00 18 */ stw r3, 0x18(r1)
/* 80397E48 00394DA8 C0 02 D4 F8 */ lfs f0, lbl_805AF218@sda21(r2)
/* 80397E4C 00394DAC C8 21 00 18 */ lfd f1, 0x18(r1)
/* 80397E50 00394DB0 90 01 00 24 */ stw r0, 0x24(r1)
/* 80397E54 00394DB4 EC 81 30 28 */ fsubs f4, f1, f6
/* 80397E58 00394DB8 C8 42 D5 00 */ lfd f2, lbl_805AF220@sda21(r2)
/* 80397E5C 00394DBC 90 61 00 20 */ stw r3, 0x20(r1)
/* 80397E60 00394DC0 C8 21 00 20 */ lfd f1, 0x20(r1)
/* 80397E64 00394DC4 EC 85 01 32 */ fmuls f4, f5, f4
/* 80397E68 00394DC8 EC 21 30 28 */ fsubs f1, f1, f6
/* 80397E6C 00394DCC EF E7 01 32 */ fmuls f31, f7, f4
/* 80397E70 00394DD0 EC 23 00 72 */ fmuls f1, f3, f1
/* 80397E74 00394DD4 EF FF 00 72 */ fmuls f31, f31, f1
/* 80397E78 00394DD8 EC 20 07 F2 */ fmuls f1, f0, f31
/* 80397E7C 00394DDC 4B FF CE 31 */ bl fmod
/* 80397E80 00394DE0 FC 20 08 18 */ frsp f1, f1
/* 80397E84 00394DE4 4B FF 1A D1 */ bl __cvt_fp2unsigned
/* 80397E88 00394DE8 88 1F 00 30 */ lbz r0, 0x30(r31)
/* 80397E8C 00394DEC FC 20 F8 90 */ fmr f1, f31
/* 80397E90 00394DF0 54 04 18 38 */ slwi r4, r0, 3
/* 80397E94 00394DF4 38 04 00 0C */ addi r0, r4, 0xc
/* 80397E98 00394DF8 7C 7F 01 2E */ stwx r3, r31, r0
/* 80397E9C 00394DFC 4B FF C6 29 */ bl floor
/* 80397EA0 00394E00 FC 00 08 18 */ frsp f0, f1
/* 80397EA4 00394E04 88 1F 00 30 */ lbz r0, 0x30(r31)
/* 80397EA8 00394E08 54 03 18 38 */ slwi r3, r0, 3
/* 80397EAC 00394E0C FC 00 00 1E */ fctiwz f0, f0
/* 80397EB0 00394E10 38 03 00 10 */ addi r0, r3, 0x10
/* 80397EB4 00394E14 D8 01 00 28 */ stfd f0, 0x28(r1)
/* 80397EB8 00394E18 80 61 00 2C */ lwz r3, 0x2c(r1)
/* 80397EBC 00394E1C 7C 7F 01 2E */ stwx r3, r31, r0
lbl_80397EC0:
/* 80397EC0 00394E20 A0 7C 00 34 */ lhz r3, 0x34(r28)
/* 80397EC4 00394E24 38 03 00 01 */ addi r0, r3, 1
/* 80397EC8 00394E28 B0 1C 00 34 */ sth r0, 0x34(r28)
/* 80397ECC 00394E2C 80 6D AE 38 */ lwz r3, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80397ED0 00394E30 80 03 14 E4 */ lwz r0, 0x14e4(r3)
/* 80397ED4 00394E34 28 00 00 00 */ cmplwi r0, 0
/* 80397ED8 00394E38 40 82 00 9C */ bne lbl_80397F74
/* 80397EDC 00394E3C 3B E0 00 00 */ li r31, 0
lbl_80397EE0:
/* 80397EE0 00394E40 57 E3 06 3E */ clrlwi r3, r31, 0x18
/* 80397EE4 00394E44 4B FF EF 65 */ bl GenerateNextTrackEvent
/* 80397EE8 00394E48 28 03 00 00 */ cmplwi r3, 0
/* 80397EEC 00394E4C 41 82 00 78 */ beq lbl_80397F64
/* 80397EF0 00394E50 80 AD AE 38 */ lwz r5, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80397EF4 00394E54 38 C0 00 00 */ li r6, 0
/* 80397EF8 00394E58 80 E5 15 04 */ lwz r7, 0x1504(r5)
/* 80397EFC 00394E5C 48 00 00 40 */ b lbl_80397F3C
lbl_80397F00:
/* 80397F00 00394E60 80 87 00 08 */ lwz r4, 8(r7)
/* 80397F04 00394E64 80 03 00 08 */ lwz r0, 8(r3)
/* 80397F08 00394E68 7C 04 00 40 */ cmplw r4, r0
/* 80397F0C 00394E6C 40 81 00 28 */ ble lbl_80397F34
/* 80397F10 00394E70 90 E3 00 00 */ stw r7, 0(r3)
/* 80397F14 00394E74 28 06 00 00 */ cmplwi r6, 0
/* 80397F18 00394E78 90 C3 00 04 */ stw r6, 4(r3)
/* 80397F1C 00394E7C 41 82 00 0C */ beq lbl_80397F28
/* 80397F20 00394E80 90 66 00 00 */ stw r3, 0(r6)
/* 80397F24 00394E84 48 00 00 08 */ b lbl_80397F2C
lbl_80397F28:
/* 80397F28 00394E88 90 65 15 04 */ stw r3, 0x1504(r5)
lbl_80397F2C:
/* 80397F2C 00394E8C 90 67 00 04 */ stw r3, 4(r7)
/* 80397F30 00394E90 48 00 00 34 */ b lbl_80397F64
lbl_80397F34:
/* 80397F34 00394E94 7C E6 3B 78 */ mr r6, r7
/* 80397F38 00394E98 80 E7 00 00 */ lwz r7, 0(r7)
lbl_80397F3C:
/* 80397F3C 00394E9C 28 07 00 00 */ cmplwi r7, 0
/* 80397F40 00394EA0 40 82 FF C0 */ bne lbl_80397F00
/* 80397F44 00394EA4 28 06 00 00 */ cmplwi r6, 0
/* 80397F48 00394EA8 90 C3 00 04 */ stw r6, 4(r3)
/* 80397F4C 00394EAC 41 82 00 0C */ beq lbl_80397F58
/* 80397F50 00394EB0 90 66 00 00 */ stw r3, 0(r6)
/* 80397F54 00394EB4 48 00 00 08 */ b lbl_80397F5C
lbl_80397F58:
/* 80397F58 00394EB8 90 65 15 04 */ stw r3, 0x1504(r5)
lbl_80397F5C:
/* 80397F5C 00394EBC 38 00 00 00 */ li r0, 0
/* 80397F60 00394EC0 90 03 00 00 */ stw r0, 0(r3)
lbl_80397F64:
/* 80397F64 00394EC4 3B FF 00 01 */ addi r31, r31, 1
/* 80397F68 00394EC8 28 1F 00 40 */ cmplwi r31, 0x40
/* 80397F6C 00394ECC 41 80 FF 74 */ blt lbl_80397EE0
/* 80397F70 00394ED0 48 00 01 40 */ b lbl_803980B0
lbl_80397F74:
/* 80397F74 00394ED4 3B 20 00 00 */ li r25, 0
/* 80397F78 00394ED8 57 5F 06 3E */ clrlwi r31, r26, 0x18
lbl_80397F7C:
/* 80397F7C 00394EDC 80 6D AE 38 */ lwz r3, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80397F80 00394EE0 80 63 14 E4 */ lwz r3, 0x14e4(r3)
/* 80397F84 00394EE4 7C 03 C8 AE */ lbzx r0, r3, r25
/* 80397F88 00394EE8 7C 1F 00 40 */ cmplw r31, r0
/* 80397F8C 00394EEC 40 82 00 90 */ bne lbl_8039801C
/* 80397F90 00394EF0 57 23 06 3E */ clrlwi r3, r25, 0x18
/* 80397F94 00394EF4 4B FF EE B5 */ bl GenerateNextTrackEvent
/* 80397F98 00394EF8 28 03 00 00 */ cmplwi r3, 0
/* 80397F9C 00394EFC 41 82 00 80 */ beq lbl_8039801C
/* 80397FA0 00394F00 80 0D AE 38 */ lwz r0, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80397FA4 00394F04 38 FD 14 E8 */ addi r7, r29, 0x14e8
/* 80397FA8 00394F08 38 A0 00 00 */ li r5, 0
/* 80397FAC 00394F0C 7C E0 3A 14 */ add r7, r0, r7
/* 80397FB0 00394F10 80 C7 00 1C */ lwz r6, 0x1c(r7)
/* 80397FB4 00394F14 48 00 00 40 */ b lbl_80397FF4
lbl_80397FB8:
/* 80397FB8 00394F18 80 86 00 08 */ lwz r4, 8(r6)
/* 80397FBC 00394F1C 80 03 00 08 */ lwz r0, 8(r3)
/* 80397FC0 00394F20 7C 04 00 40 */ cmplw r4, r0
/* 80397FC4 00394F24 40 81 00 28 */ ble lbl_80397FEC
/* 80397FC8 00394F28 90 C3 00 00 */ stw r6, 0(r3)
/* 80397FCC 00394F2C 28 05 00 00 */ cmplwi r5, 0
/* 80397FD0 00394F30 90 A3 00 04 */ stw r5, 4(r3)
/* 80397FD4 00394F34 41 82 00 0C */ beq lbl_80397FE0
/* 80397FD8 00394F38 90 65 00 00 */ stw r3, 0(r5)
/* 80397FDC 00394F3C 48 00 00 08 */ b lbl_80397FE4
lbl_80397FE0:
/* 80397FE0 00394F40 90 67 00 1C */ stw r3, 0x1c(r7)
lbl_80397FE4:
/* 80397FE4 00394F44 90 66 00 04 */ stw r3, 4(r6)
/* 80397FE8 00394F48 48 00 00 34 */ b lbl_8039801C
lbl_80397FEC:
/* 80397FEC 00394F4C 7C C5 33 78 */ mr r5, r6
/* 80397FF0 00394F50 80 C6 00 00 */ lwz r6, 0(r6)
lbl_80397FF4:
/* 80397FF4 00394F54 28 06 00 00 */ cmplwi r6, 0
/* 80397FF8 00394F58 40 82 FF C0 */ bne lbl_80397FB8
/* 80397FFC 00394F5C 28 05 00 00 */ cmplwi r5, 0
/* 80398000 00394F60 90 A3 00 04 */ stw r5, 4(r3)
/* 80398004 00394F64 41 82 00 0C */ beq lbl_80398010
/* 80398008 00394F68 90 65 00 00 */ stw r3, 0(r5)
/* 8039800C 00394F6C 48 00 00 08 */ b lbl_80398014
lbl_80398010:
/* 80398010 00394F70 90 67 00 1C */ stw r3, 0x1c(r7)
lbl_80398014:
/* 80398014 00394F74 38 00 00 00 */ li r0, 0
/* 80398018 00394F78 90 03 00 00 */ stw r0, 0(r3)
lbl_8039801C:
/* 8039801C 00394F7C 3B 39 00 01 */ addi r25, r25, 1
/* 80398020 00394F80 28 19 00 40 */ cmplwi r25, 0x40
/* 80398024 00394F84 41 80 FF 58 */ blt lbl_80397F7C
/* 80398028 00394F88 48 00 00 88 */ b lbl_803980B0
lbl_8039802C:
/* 8039802C 00394F8C 7F 44 D3 78 */ mr r4, r26
/* 80398030 00394F90 38 A1 00 08 */ addi r5, r1, 8
2022-04-04 10:14:22 +00:00
/* 80398034 00394F94 4B FF F0 2D */ bl HandleEvent
2022-04-02 09:50:35 +00:00
/* 80398038 00394F98 28 03 00 00 */ cmplwi r3, 0
/* 8039803C 00394F9C 41 82 00 74 */ beq lbl_803980B0
/* 80398040 00394FA0 80 DC 00 1C */ lwz r6, 0x1c(r28)
/* 80398044 00394FA4 38 A0 00 00 */ li r5, 0
/* 80398048 00394FA8 48 00 00 40 */ b lbl_80398088
lbl_8039804C:
/* 8039804C 00394FAC 80 86 00 08 */ lwz r4, 8(r6)
/* 80398050 00394FB0 80 03 00 08 */ lwz r0, 8(r3)
/* 80398054 00394FB4 7C 04 00 40 */ cmplw r4, r0
/* 80398058 00394FB8 40 81 00 28 */ ble lbl_80398080
/* 8039805C 00394FBC 90 C3 00 00 */ stw r6, 0(r3)
/* 80398060 00394FC0 28 05 00 00 */ cmplwi r5, 0
/* 80398064 00394FC4 90 A3 00 04 */ stw r5, 4(r3)
/* 80398068 00394FC8 41 82 00 0C */ beq lbl_80398074
/* 8039806C 00394FCC 90 65 00 00 */ stw r3, 0(r5)
/* 80398070 00394FD0 48 00 00 08 */ b lbl_80398078
lbl_80398074:
/* 80398074 00394FD4 90 7C 00 1C */ stw r3, 0x1c(r28)
lbl_80398078:
/* 80398078 00394FD8 90 66 00 04 */ stw r3, 4(r6)
/* 8039807C 00394FDC 48 00 00 34 */ b lbl_803980B0
lbl_80398080:
/* 80398080 00394FE0 7C C5 33 78 */ mr r5, r6
/* 80398084 00394FE4 80 C6 00 00 */ lwz r6, 0(r6)
lbl_80398088:
/* 80398088 00394FE8 28 06 00 00 */ cmplwi r6, 0
/* 8039808C 00394FEC 40 82 FF C0 */ bne lbl_8039804C
/* 80398090 00394FF0 28 05 00 00 */ cmplwi r5, 0
/* 80398094 00394FF4 90 A3 00 04 */ stw r5, 4(r3)
/* 80398098 00394FF8 41 82 00 0C */ beq lbl_803980A4
/* 8039809C 00394FFC 90 65 00 00 */ stw r3, 0(r5)
/* 803980A0 00395000 48 00 00 08 */ b lbl_803980A8
lbl_803980A4:
/* 803980A4 00395004 90 7C 00 1C */ stw r3, 0x1c(r28)
lbl_803980A8:
/* 803980A8 00395008 38 00 00 00 */ li r0, 0
/* 803980AC 0039500C 90 03 00 00 */ stw r0, 0(r3)
lbl_803980B0:
/* 803980B0 00395010 80 7C 00 1C */ lwz r3, 0x1c(r28)
/* 803980B4 00395014 28 03 00 00 */ cmplwi r3, 0
/* 803980B8 00395018 40 82 00 0C */ bne lbl_803980C4
/* 803980BC 0039501C 38 A0 00 00 */ li r5, 0
/* 803980C0 00395020 48 00 00 08 */ b lbl_803980C8
lbl_803980C4:
/* 803980C4 00395024 80 A3 00 08 */ lwz r5, 8(r3)
lbl_803980C8:
/* 803980C8 00395028 88 1C 00 30 */ lbz r0, 0x30(r28)
/* 803980CC 0039502C 54 04 18 38 */ slwi r4, r0, 3
/* 803980D0 00395030 38 04 00 24 */ addi r0, r4, 0x24
/* 803980D4 00395034 7C 1C 00 2E */ lwzx r0, r28, r0
/* 803980D8 00395038 7C 05 00 40 */ cmplw r5, r0
/* 803980DC 0039503C 40 81 FB D4 */ ble lbl_80397CB0
/* 803980E0 00395040 38 60 00 01 */ li r3, 1
lbl_803980E4:
/* 803980E4 00395044 E3 E1 00 58 */ psq_l f31, 88(r1), 0, qr0
/* 803980E8 00395048 39 61 00 50 */ addi r11, r1, 0x50
/* 803980EC 0039504C CB E1 00 50 */ lfd f31, 0x50(r1)
/* 803980F0 00395050 4B FF 19 D1 */ bl _restgpr_25
/* 803980F4 00395054 80 01 00 64 */ lwz r0, 0x64(r1)
/* 803980F8 00395058 7C 08 03 A6 */ mtlr r0
/* 803980FC 0039505C 38 21 00 60 */ addi r1, r1, 0x60
2022-04-08 05:17:01 +00:00
/* 80398100 00395060 4E 80 00 20 */ blr
2022-04-02 09:50:35 +00:00
2022-04-09 06:40:18 +00:00
.global seqHandle
seqHandle:
2022-04-02 09:50:35 +00:00
/* 80398104 00395064 94 21 FF 60 */ stwu r1, -0xa0(r1)
/* 80398108 00395068 7C 08 02 A6 */ mflr r0
/* 8039810C 0039506C 90 01 00 A4 */ stw r0, 0xa4(r1)
/* 80398110 00395070 DB E1 00 90 */ stfd f31, 0x90(r1)
/* 80398114 00395074 F3 E1 00 98 */ psq_st f31, 152(r1), 0, qr0
/* 80398118 00395078 DB C1 00 80 */ stfd f30, 0x80(r1)
/* 8039811C 0039507C F3 C1 00 88 */ psq_st f30, 136(r1), 0, qr0
/* 80398120 00395080 DB A1 00 70 */ stfd f29, 0x70(r1)
/* 80398124 00395084 F3 A1 00 78 */ psq_st f29, 120(r1), 0, qr0
/* 80398128 00395088 DB 81 00 60 */ stfd f28, 0x60(r1)
/* 8039812C 0039508C F3 81 00 68 */ psq_st f28, 104(r1), 0, qr0
/* 80398130 00395090 DB 61 00 50 */ stfd f27, 0x50(r1)
/* 80398134 00395094 F3 61 00 58 */ psq_st f27, 88(r1), 0, qr0
/* 80398138 00395098 39 61 00 50 */ addi r11, r1, 0x50
2022-04-04 10:14:22 +00:00
/* 8039813C 0039509C 4B FF 19 35 */ bl _savegpr_24
2022-04-02 09:50:35 +00:00
/* 80398140 003950A0 7C 7C 1B 79 */ or. r28, r3, r3
/* 80398144 003950A4 41 82 09 74 */ beq lbl_80398AB8
/* 80398148 003950A8 83 CD AE 44 */ lwz r30, seqActiveRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 8039814C 003950AC 48 00 09 64 */ b lbl_80398AB0
lbl_80398150:
/* 80398150 003950B0 83 BE 00 00 */ lwz r29, 0(r30)
/* 80398154 003950B4 93 CD AE 38 */ stw r30, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80398158 003950B8 88 1E 00 09 */ lbz r0, 9(r30)
/* 8039815C 003950BC 90 0D AE 30 */ stw r0, curSeqId@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80398160 003950C0 88 7E 0E B0 */ lbz r3, 0xeb0(r30)
/* 80398164 003950C4 48 00 37 B5 */ bl synthIsFadeOutActive
/* 80398168 003950C8 98 6D AE 2C */ stb r3, curFadeOutState@sda21(r13)
/* 8039816C 003950CC 80 6D AE 38 */ lwz r3, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80398170 003950D0 80 03 14 E4 */ lwz r0, 0x14e4(r3)
/* 80398174 003950D4 28 00 00 00 */ cmplwi r0, 0
/* 80398178 003950D8 40 82 03 9C */ bne lbl_80398514
/* 8039817C 003950DC 3B E3 14 E8 */ addi r31, r3, 0x14e8
/* 80398180 003950E0 80 03 14 E8 */ lwz r0, 0x14e8(r3)
/* 80398184 003950E4 28 00 00 00 */ cmplwi r0, 0
/* 80398188 003950E8 41 82 00 9C */ beq lbl_80398224
/* 8039818C 003950EC 48 00 00 84 */ b lbl_80398210
lbl_80398190:
/* 80398190 003950F0 88 1F 00 30 */ lbz r0, 0x30(r31)
/* 80398194 003950F4 80 86 00 00 */ lwz r4, 0(r6)
/* 80398198 003950F8 54 03 18 38 */ slwi r3, r0, 3
/* 8039819C 003950FC 38 03 00 24 */ addi r0, r3, 0x24
/* 803981A0 00395100 7C 1F 00 2E */ lwzx r0, r31, r0
/* 803981A4 00395104 7C 04 00 40 */ cmplw r4, r0
/* 803981A8 00395108 41 81 00 7C */ bgt lbl_80398224
/* 803981AC 0039510C 80 6D AE 38 */ lwz r3, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803981B0 00395110 80 63 01 18 */ lwz r3, 0x118(r3)
/* 803981B4 00395114 80 03 00 10 */ lwz r0, 0x10(r3)
/* 803981B8 00395118 54 00 00 43 */ rlwinm. r0, r0, 0, 1, 1
/* 803981BC 0039511C 41 82 00 24 */ beq lbl_803981E0
/* 803981C0 00395120 80 06 00 04 */ lwz r0, 4(r6)
/* 803981C4 00395124 38 A0 00 00 */ li r5, 0
/* 803981C8 00395128 90 1F 00 08 */ stw r0, 8(r31)
/* 803981CC 0039512C 54 03 B2 BE */ srwi r3, r0, 0xa
/* 803981D0 00395130 80 0D AE 30 */ lwz r0, curSeqId@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803981D4 00395134 54 04 06 3E */ clrlwi r4, r0, 0x18
/* 803981D8 00395138 48 00 0A C9 */ bl synthSetBpm
/* 803981DC 0039513C 48 00 00 28 */ b lbl_80398204
lbl_803981E0:
/* 803981E0 00395140 80 0D AE 30 */ lwz r0, curSeqId@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803981E4 00395144 38 A0 00 00 */ li r5, 0
/* 803981E8 00395148 80 66 00 04 */ lwz r3, 4(r6)
/* 803981EC 0039514C 54 04 06 3E */ clrlwi r4, r0, 0x18
/* 803981F0 00395150 48 00 0A B1 */ bl synthSetBpm
/* 803981F4 00395154 80 7F 00 04 */ lwz r3, 4(r31)
/* 803981F8 00395158 80 03 00 04 */ lwz r0, 4(r3)
/* 803981FC 0039515C 54 00 50 2A */ slwi r0, r0, 0xa
/* 80398200 00395160 90 1F 00 08 */ stw r0, 8(r31)
lbl_80398204:
/* 80398204 00395164 80 7F 00 04 */ lwz r3, 4(r31)
/* 80398208 00395168 38 03 00 08 */ addi r0, r3, 8
/* 8039820C 0039516C 90 1F 00 04 */ stw r0, 4(r31)
lbl_80398210:
/* 80398210 00395170 80 DF 00 04 */ lwz r6, 4(r31)
/* 80398214 00395174 80 66 00 00 */ lwz r3, 0(r6)
/* 80398218 00395178 3C 03 00 01 */ addis r0, r3, 1
/* 8039821C 0039517C 28 00 FF FF */ cmplwi r0, 0xffff
/* 80398220 00395180 40 82 FF 70 */ bne lbl_80398190
lbl_80398224:
/* 80398224 00395184 80 8D AE 38 */ lwz r4, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80398228 00395188 3C 60 43 30 */ lis r3, 0x4330
/* 8039822C 0039518C 90 61 00 08 */ stw r3, 8(r1)
/* 80398230 00395190 3B 04 14 E8 */ addi r24, r4, 0x14e8
/* 80398234 00395194 C8 C2 D5 08 */ lfd f6, lbl_805AF228@sda21(r2)
/* 80398238 00395198 80 84 14 F0 */ lwz r4, 0x14f0(r4)
/* 8039823C 0039519C A0 18 00 32 */ lhz r0, 0x32(r24)
/* 80398240 003951A0 90 81 00 0C */ stw r4, 0xc(r1)
/* 80398244 003951A4 C0 E2 D4 F0 */ lfs f7, lbl_805AF210@sda21(r2)
/* 80398248 003951A8 C8 01 00 08 */ lfd f0, 8(r1)
/* 8039824C 003951AC 93 81 00 14 */ stw r28, 0x14(r1)
/* 80398250 003951B0 EC A0 30 28 */ fsubs f5, f0, f6
/* 80398254 003951B4 C0 62 D4 F4 */ lfs f3, lbl_805AF214@sda21(r2)
/* 80398258 003951B8 90 61 00 10 */ stw r3, 0x10(r1)
/* 8039825C 003951BC C0 02 D4 F8 */ lfs f0, lbl_805AF218@sda21(r2)
/* 80398260 003951C0 C8 21 00 10 */ lfd f1, 0x10(r1)
/* 80398264 003951C4 90 01 00 1C */ stw r0, 0x1c(r1)
/* 80398268 003951C8 EC 81 30 28 */ fsubs f4, f1, f6
/* 8039826C 003951CC C8 42 D5 00 */ lfd f2, lbl_805AF220@sda21(r2)
/* 80398270 003951D0 90 61 00 18 */ stw r3, 0x18(r1)
/* 80398274 003951D4 C8 21 00 18 */ lfd f1, 0x18(r1)
/* 80398278 003951D8 EC 85 01 32 */ fmuls f4, f5, f4
/* 8039827C 003951DC EC 21 30 28 */ fsubs f1, f1, f6
/* 80398280 003951E0 EF 87 01 32 */ fmuls f28, f7, f4
/* 80398284 003951E4 EC 23 00 72 */ fmuls f1, f3, f1
/* 80398288 003951E8 EF 9C 00 72 */ fmuls f28, f28, f1
/* 8039828C 003951EC EC 20 07 32 */ fmuls f1, f0, f28
/* 80398290 003951F0 4B FF CA 1D */ bl fmod
/* 80398294 003951F4 FC 20 08 18 */ frsp f1, f1
/* 80398298 003951F8 4B FF 16 BD */ bl __cvt_fp2unsigned
/* 8039829C 003951FC 88 18 00 30 */ lbz r0, 0x30(r24)
/* 803982A0 00395200 FC 20 E0 90 */ fmr f1, f28
/* 803982A4 00395204 54 04 18 38 */ slwi r4, r0, 3
/* 803982A8 00395208 38 04 00 0C */ addi r0, r4, 0xc
/* 803982AC 0039520C 7C 78 01 2E */ stwx r3, r24, r0
/* 803982B0 00395210 4B FF C2 15 */ bl floor
/* 803982B4 00395214 FC 00 08 18 */ frsp f0, f1
/* 803982B8 00395218 88 18 00 30 */ lbz r0, 0x30(r24)
/* 803982BC 0039521C 7F 84 E3 78 */ mr r4, r28
/* 803982C0 00395220 38 60 00 00 */ li r3, 0
/* 803982C4 00395224 54 05 18 38 */ slwi r5, r0, 3
/* 803982C8 00395228 FC 00 00 1E */ fctiwz f0, f0
/* 803982CC 0039522C 38 05 00 10 */ addi r0, r5, 0x10
/* 803982D0 00395230 D8 01 00 20 */ stfd f0, 0x20(r1)
/* 803982D4 00395234 80 A1 00 24 */ lwz r5, 0x24(r1)
/* 803982D8 00395238 7C B8 01 2E */ stwx r5, r24, r0
/* 803982DC 0039523C 4B FF F9 8D */ bl HandleTrackEvents
/* 803982E0 00395240 3B 60 00 00 */ li r27, 0
/* 803982E4 00395244 7C 7F 1B 78 */ mr r31, r3
/* 803982E8 00395248 7F 79 DB 78 */ mr r25, r27
/* 803982EC 0039524C 7F 78 DB 78 */ mr r24, r27
lbl_803982F0:
/* 803982F0 00395250 80 6D AE 38 */ lwz r3, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803982F4 00395254 38 19 0E 64 */ addi r0, r25, 0xe64
/* 803982F8 00395258 7F 43 00 2E */ lwzx r26, r3, r0
/* 803982FC 0039525C 28 1A 00 00 */ cmplwi r26, 0
/* 80398300 00395260 41 82 00 9C */ beq lbl_8039839C
/* 80398304 00395264 48 00 00 74 */ b lbl_80398378
lbl_80398308:
/* 80398308 00395268 80 7A 00 08 */ lwz r3, 8(r26)
/* 8039830C 0039526C 48 00 30 55 */ bl synthSendKeyOff
/* 80398310 00395270 80 9A 00 00 */ lwz r4, 0(r26)
/* 80398314 00395274 80 6D AE 38 */ lwz r3, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80398318 00395278 28 04 00 00 */ cmplwi r4, 0
/* 8039831C 0039527C 38 03 0E 64 */ addi r0, r3, 0xe64
/* 80398320 00395280 7C 99 01 2E */ stwx r4, r25, r0
/* 80398324 00395284 41 82 00 18 */ beq lbl_8039833C
/* 80398328 00395288 80 6D AE 38 */ lwz r3, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 8039832C 0039528C 38 80 00 00 */ li r4, 0
/* 80398330 00395290 38 03 0E 64 */ addi r0, r3, 0xe64
/* 80398334 00395294 7C 79 00 2E */ lwzx r3, r25, r0
/* 80398338 00395298 90 83 00 04 */ stw r4, 4(r3)
lbl_8039833C:
/* 8039833C 0039529C 80 6D AE 38 */ lwz r3, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80398340 003952A0 80 03 0E 6C */ lwz r0, 0xe6c(r3)
/* 80398344 003952A4 28 00 00 00 */ cmplwi r0, 0
/* 80398348 003952A8 90 1A 00 00 */ stw r0, 0(r26)
/* 8039834C 003952AC 41 82 00 10 */ beq lbl_8039835C
/* 80398350 003952B0 80 6D AE 38 */ lwz r3, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80398354 003952B4 80 63 0E 6C */ lwz r3, 0xe6c(r3)
/* 80398358 003952B8 93 43 00 04 */ stw r26, 4(r3)
lbl_8039835C:
/* 8039835C 003952BC 80 6D AE 38 */ lwz r3, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80398360 003952C0 93 43 0E 6C */ stw r26, 0xe6c(r3)
/* 80398364 003952C4 80 6D AE 38 */ lwz r3, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80398368 003952C8 38 03 0E 64 */ addi r0, r3, 0xe64
/* 8039836C 003952CC 7F 59 00 2E */ lwzx r26, r25, r0
/* 80398370 003952D0 28 1A 00 00 */ cmplwi r26, 0
/* 80398374 003952D4 41 82 00 28 */ beq lbl_8039839C
lbl_80398378:
/* 80398378 003952D8 88 1A 00 10 */ lbz r0, 0x10(r26)
/* 8039837C 003952DC 80 6D AE 38 */ lwz r3, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80398380 003952E0 1C 00 00 38 */ mulli r0, r0, 0x38
/* 80398384 003952E4 80 9A 00 0C */ lwz r4, 0xc(r26)
/* 80398388 003952E8 7C 63 02 14 */ add r3, r3, r0
/* 8039838C 003952EC 38 03 15 0C */ addi r0, r3, 0x150c
/* 80398390 003952F0 7C 18 00 2E */ lwzx r0, r24, r0
/* 80398394 003952F4 7C 04 00 00 */ cmpw r4, r0
/* 80398398 003952F8 40 81 FF 70 */ ble lbl_80398308
lbl_8039839C:
/* 8039839C 003952FC 3B 7B 00 01 */ addi r27, r27, 1
/* 803983A0 00395300 3B 18 00 08 */ addi r24, r24, 8
/* 803983A4 00395304 28 1B 00 02 */ cmplwi r27, 2
/* 803983A8 00395308 3B 39 00 04 */ addi r25, r25, 4
/* 803983AC 0039530C 41 80 FF 44 */ blt lbl_803982F0
/* 803983B0 00395310 80 8D AE 38 */ lwz r4, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803983B4 00395314 38 60 00 00 */ li r3, 0
/* 803983B8 00395318 80 04 0E 64 */ lwz r0, 0xe64(r4)
/* 803983BC 0039531C 28 00 00 00 */ cmplwi r0, 0
/* 803983C0 00395320 40 82 00 10 */ bne lbl_803983D0
/* 803983C4 00395324 80 04 0E 68 */ lwz r0, 0xe68(r4)
/* 803983C8 00395328 28 00 00 00 */ cmplwi r0, 0
/* 803983CC 0039532C 41 82 00 08 */ beq lbl_803983D4
lbl_803983D0:
/* 803983D0 00395330 38 60 00 01 */ li r3, 1
lbl_803983D4:
/* 803983D4 00395334 88 04 0E E2 */ lbz r0, 0xee2(r4)
/* 803983D8 00395338 7C 78 1B 78 */ mr r24, r3
/* 803983DC 0039533C 28 00 00 00 */ cmplwi r0, 0
/* 803983E0 00395340 40 82 00 98 */ bne lbl_80398478
/* 803983E4 00395344 83 44 0E 6C */ lwz r26, 0xe6c(r4)
/* 803983E8 00395348 48 00 00 88 */ b lbl_80398470
lbl_803983EC:
/* 803983EC 0039534C 80 7A 00 08 */ lwz r3, 8(r26)
/* 803983F0 00395350 83 3A 00 00 */ lwz r25, 0(r26)
/* 803983F4 00395354 3C 03 00 01 */ addis r0, r3, 1
/* 803983F8 00395358 28 00 FF FF */ cmplwi r0, 0xffff
/* 803983FC 0039535C 41 82 00 70 */ beq lbl_8039846C
/* 80398400 00395360 48 00 3F 15 */ bl sndFXCheck
/* 80398404 00395364 3C 03 00 01 */ addis r0, r3, 1
/* 80398408 00395368 28 00 FF FF */ cmplwi r0, 0xffff
/* 8039840C 0039536C 40 82 00 60 */ bne lbl_8039846C
/* 80398410 00395370 80 7A 00 00 */ lwz r3, 0(r26)
/* 80398414 00395374 28 03 00 00 */ cmplwi r3, 0
/* 80398418 00395378 41 82 00 0C */ beq lbl_80398424
/* 8039841C 0039537C 80 1A 00 04 */ lwz r0, 4(r26)
/* 80398420 00395380 90 03 00 04 */ stw r0, 4(r3)
lbl_80398424:
/* 80398424 00395384 80 7A 00 04 */ lwz r3, 4(r26)
/* 80398428 00395388 28 03 00 00 */ cmplwi r3, 0
/* 8039842C 0039538C 41 82 00 10 */ beq lbl_8039843C
/* 80398430 00395390 80 1A 00 00 */ lwz r0, 0(r26)
/* 80398434 00395394 90 03 00 00 */ stw r0, 0(r3)
/* 80398438 00395398 48 00 00 10 */ b lbl_80398448
lbl_8039843C:
/* 8039843C 0039539C 80 1A 00 00 */ lwz r0, 0(r26)
/* 80398440 003953A0 80 6D AE 38 */ lwz r3, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80398444 003953A4 90 03 0E 6C */ stw r0, 0xe6c(r3)
lbl_80398448:
/* 80398448 003953A8 80 0D AE 34 */ lwz r0, noteFree@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 8039844C 003953AC 28 00 00 00 */ cmplwi r0, 0
/* 80398450 003953B0 90 1A 00 00 */ stw r0, 0(r26)
/* 80398454 003953B4 41 82 00 0C */ beq lbl_80398460
/* 80398458 003953B8 80 6D AE 34 */ lwz r3, noteFree@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 8039845C 003953BC 93 43 00 04 */ stw r26, 4(r3)
lbl_80398460:
/* 80398460 003953C0 38 00 00 00 */ li r0, 0
/* 80398464 003953C4 90 1A 00 04 */ stw r0, 4(r26)
/* 80398468 003953C8 93 4D AE 34 */ stw r26, noteFree@sda21(r13)
2022-04-02 09:50:35 +00:00
lbl_8039846C:
/* 8039846C 003953CC 7F 3A CB 78 */ mr r26, r25
lbl_80398470:
/* 80398470 003953D0 28 1A 00 00 */ cmplwi r26, 0
/* 80398474 003953D4 40 82 FF 78 */ bne lbl_803983EC
lbl_80398478:
/* 80398478 003953D8 80 AD AE 38 */ lwz r5, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 8039847C 003953DC 3C 60 66 66 */ lis r3, 0x66666667@ha
/* 80398480 003953E0 38 03 66 67 */ addi r0, r3, 0x66666667@l
/* 80398484 003953E4 88 65 0E E2 */ lbz r3, 0xee2(r5)
/* 80398488 003953E8 38 83 00 01 */ addi r4, r3, 1
/* 8039848C 003953EC 7C 00 20 96 */ mulhw r0, r0, r4
/* 80398490 003953F0 7C 00 0E 70 */ srawi r0, r0, 1
/* 80398494 003953F4 54 03 0F FE */ srwi r3, r0, 0x1f
/* 80398498 003953F8 7C 00 1A 14 */ add r0, r0, r3
/* 8039849C 003953FC 1C 00 00 05 */ mulli r0, r0, 5
/* 803984A0 00395400 7C 00 20 50 */ subf r0, r0, r4
/* 803984A4 00395404 98 05 0E E2 */ stb r0, 0xee2(r5)
/* 803984A8 00395408 80 8D AE 38 */ lwz r4, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803984AC 0039540C 80 64 15 08 */ lwz r3, 0x1508(r4)
/* 803984B0 00395410 80 04 14 F4 */ lwz r0, 0x14f4(r4)
/* 803984B4 00395414 7C 63 02 14 */ add r3, r3, r0
/* 803984B8 00395418 54 60 04 3E */ clrlwi r0, r3, 0x10
/* 803984BC 0039541C 90 04 15 08 */ stw r0, 0x1508(r4)
/* 803984C0 00395420 54 63 84 3E */ srwi r3, r3, 0x10
/* 803984C4 00395424 80 AD AE 38 */ lwz r5, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803984C8 00395428 80 85 15 0C */ lwz r4, 0x150c(r5)
/* 803984CC 0039542C 80 05 14 F8 */ lwz r0, 0x14f8(r5)
/* 803984D0 00395430 7C 00 22 14 */ add r0, r0, r4
/* 803984D4 00395434 7C 03 02 14 */ add r0, r3, r0
/* 803984D8 00395438 90 05 15 0C */ stw r0, 0x150c(r5)
/* 803984DC 0039543C 80 8D AE 38 */ lwz r4, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803984E0 00395440 80 64 15 10 */ lwz r3, 0x1510(r4)
/* 803984E4 00395444 80 04 14 FC */ lwz r0, 0x14fc(r4)
/* 803984E8 00395448 7C 63 02 14 */ add r3, r3, r0
/* 803984EC 0039544C 54 60 04 3E */ clrlwi r0, r3, 0x10
/* 803984F0 00395450 90 04 15 10 */ stw r0, 0x1510(r4)
/* 803984F4 00395454 54 63 84 3E */ srwi r3, r3, 0x10
/* 803984F8 00395458 80 AD AE 38 */ lwz r5, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803984FC 0039545C 80 85 15 14 */ lwz r4, 0x1514(r5)
/* 80398500 00395460 80 05 15 00 */ lwz r0, 0x1500(r5)
/* 80398504 00395464 7C 00 22 14 */ add r0, r0, r4
/* 80398508 00395468 7C 03 02 14 */ add r0, r3, r0
/* 8039850C 0039546C 90 05 15 14 */ stw r0, 0x1514(r5)
/* 80398510 00395470 48 00 04 68 */ b lbl_80398978
lbl_80398514:
/* 80398514 00395474 C3 82 D4 F0 */ lfs f28, lbl_805AF210@sda21(r2)
/* 80398518 00395478 3B E0 00 00 */ li r31, 0
/* 8039851C 0039547C CB A2 D5 08 */ lfd f29, lbl_805AF228@sda21(r2)
/* 80398520 00395480 3B 20 00 00 */ li r25, 0
/* 80398524 00395484 C3 C2 D4 F4 */ lfs f30, lbl_805AF214@sda21(r2)
/* 80398528 00395488 3B 00 00 00 */ li r24, 0
/* 8039852C 0039548C C3 E2 D4 F8 */ lfs f31, lbl_805AF218@sda21(r2)
/* 80398530 00395490 3F 60 43 30 */ lis r27, 0x4330
lbl_80398534:
/* 80398534 00395494 57 20 06 3E */ clrlwi r0, r25, 0x18
/* 80398538 00395498 80 8D AE 38 */ lwz r4, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 8039853C 0039549C 1C 60 00 38 */ mulli r3, r0, 0x38
/* 80398540 003954A0 3B 43 14 E8 */ addi r26, r3, 0x14e8
/* 80398544 003954A4 7F 44 D2 14 */ add r26, r4, r26
/* 80398548 003954A8 80 1A 00 00 */ lwz r0, 0(r26)
/* 8039854C 003954AC 28 00 00 00 */ cmplwi r0, 0
/* 80398550 003954B0 41 82 00 9C */ beq lbl_803985EC
/* 80398554 003954B4 48 00 00 84 */ b lbl_803985D8
lbl_80398558:
/* 80398558 003954B8 88 1A 00 30 */ lbz r0, 0x30(r26)
/* 8039855C 003954BC 80 86 00 00 */ lwz r4, 0(r6)
/* 80398560 003954C0 54 03 18 38 */ slwi r3, r0, 3
/* 80398564 003954C4 38 03 00 24 */ addi r0, r3, 0x24
/* 80398568 003954C8 7C 1A 00 2E */ lwzx r0, r26, r0
/* 8039856C 003954CC 7C 04 00 40 */ cmplw r4, r0
/* 80398570 003954D0 41 81 00 7C */ bgt lbl_803985EC
/* 80398574 003954D4 80 6D AE 38 */ lwz r3, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80398578 003954D8 80 63 01 18 */ lwz r3, 0x118(r3)
/* 8039857C 003954DC 80 03 00 10 */ lwz r0, 0x10(r3)
/* 80398580 003954E0 54 00 00 43 */ rlwinm. r0, r0, 0, 1, 1
/* 80398584 003954E4 41 82 00 24 */ beq lbl_803985A8
/* 80398588 003954E8 80 06 00 04 */ lwz r0, 4(r6)
/* 8039858C 003954EC 57 25 06 3E */ clrlwi r5, r25, 0x18
/* 80398590 003954F0 90 1A 00 08 */ stw r0, 8(r26)
/* 80398594 003954F4 54 03 B2 BE */ srwi r3, r0, 0xa
/* 80398598 003954F8 80 0D AE 30 */ lwz r0, curSeqId@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 8039859C 003954FC 54 04 06 3E */ clrlwi r4, r0, 0x18
/* 803985A0 00395500 48 00 07 01 */ bl synthSetBpm
/* 803985A4 00395504 48 00 00 28 */ b lbl_803985CC
lbl_803985A8:
/* 803985A8 00395508 80 0D AE 30 */ lwz r0, curSeqId@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803985AC 0039550C 57 25 06 3E */ clrlwi r5, r25, 0x18
/* 803985B0 00395510 80 66 00 04 */ lwz r3, 4(r6)
/* 803985B4 00395514 54 04 06 3E */ clrlwi r4, r0, 0x18
/* 803985B8 00395518 48 00 06 E9 */ bl synthSetBpm
/* 803985BC 0039551C 80 7A 00 04 */ lwz r3, 4(r26)
/* 803985C0 00395520 80 03 00 04 */ lwz r0, 4(r3)
/* 803985C4 00395524 54 00 50 2A */ slwi r0, r0, 0xa
/* 803985C8 00395528 90 1A 00 08 */ stw r0, 8(r26)
lbl_803985CC:
/* 803985CC 0039552C 80 7A 00 04 */ lwz r3, 4(r26)
/* 803985D0 00395530 38 03 00 08 */ addi r0, r3, 8
/* 803985D4 00395534 90 1A 00 04 */ stw r0, 4(r26)
lbl_803985D8:
/* 803985D8 00395538 80 DA 00 04 */ lwz r6, 4(r26)
/* 803985DC 0039553C 80 66 00 00 */ lwz r3, 0(r6)
/* 803985E0 00395540 3C 03 00 01 */ addis r0, r3, 1
/* 803985E4 00395544 28 00 FF FF */ cmplwi r0, 0xffff
/* 803985E8 00395548 40 82 FF 70 */ bne lbl_80398558
lbl_803985EC:
/* 803985EC 0039554C 80 0D AE 38 */ lwz r0, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803985F0 00395550 3B 58 14 E8 */ addi r26, r24, 0x14e8
/* 803985F4 00395554 93 61 00 20 */ stw r27, 0x20(r1)
/* 803985F8 00395558 7F 40 D2 14 */ add r26, r0, r26
/* 803985FC 0039555C C8 42 D5 00 */ lfd f2, lbl_805AF220@sda21(r2)
/* 80398600 00395560 80 7A 00 08 */ lwz r3, 8(r26)
/* 80398604 00395564 A0 1A 00 32 */ lhz r0, 0x32(r26)
/* 80398608 00395568 90 61 00 24 */ stw r3, 0x24(r1)
/* 8039860C 0039556C C8 01 00 20 */ lfd f0, 0x20(r1)
/* 80398610 00395570 93 81 00 1C */ stw r28, 0x1c(r1)
/* 80398614 00395574 EC 60 E8 28 */ fsubs f3, f0, f29
/* 80398618 00395578 93 61 00 18 */ stw r27, 0x18(r1)
/* 8039861C 0039557C C8 01 00 18 */ lfd f0, 0x18(r1)
/* 80398620 00395580 90 01 00 14 */ stw r0, 0x14(r1)
/* 80398624 00395584 EC 20 E8 28 */ fsubs f1, f0, f29
/* 80398628 00395588 93 61 00 10 */ stw r27, 0x10(r1)
/* 8039862C 0039558C C8 01 00 10 */ lfd f0, 0x10(r1)
/* 80398630 00395590 EC 23 00 72 */ fmuls f1, f3, f1
/* 80398634 00395594 EC 00 E8 28 */ fsubs f0, f0, f29
/* 80398638 00395598 EF 7C 00 72 */ fmuls f27, f28, f1
/* 8039863C 0039559C EC 1E 00 32 */ fmuls f0, f30, f0
/* 80398640 003955A0 EF 7B 00 32 */ fmuls f27, f27, f0
/* 80398644 003955A4 EC 3F 06 F2 */ fmuls f1, f31, f27
/* 80398648 003955A8 4B FF C6 65 */ bl fmod
/* 8039864C 003955AC FC 20 08 18 */ frsp f1, f1
/* 80398650 003955B0 4B FF 13 05 */ bl __cvt_fp2unsigned
/* 80398654 003955B4 88 1A 00 30 */ lbz r0, 0x30(r26)
/* 80398658 003955B8 FC 20 D8 90 */ fmr f1, f27
/* 8039865C 003955BC 54 04 18 38 */ slwi r4, r0, 3
/* 80398660 003955C0 38 04 00 0C */ addi r0, r4, 0xc
/* 80398664 003955C4 7C 7A 01 2E */ stwx r3, r26, r0
/* 80398668 003955C8 4B FF BE 5D */ bl floor
/* 8039866C 003955CC FC 00 08 18 */ frsp f0, f1
/* 80398670 003955D0 88 1A 00 30 */ lbz r0, 0x30(r26)
/* 80398674 003955D4 7F 84 E3 78 */ mr r4, r28
/* 80398678 003955D8 57 23 06 3E */ clrlwi r3, r25, 0x18
/* 8039867C 003955DC 54 05 18 38 */ slwi r5, r0, 3
/* 80398680 003955E0 FC 00 00 1E */ fctiwz f0, f0
/* 80398684 003955E4 38 05 00 10 */ addi r0, r5, 0x10
/* 80398688 003955E8 D8 01 00 08 */ stfd f0, 8(r1)
/* 8039868C 003955EC 80 A1 00 0C */ lwz r5, 0xc(r1)
/* 80398690 003955F0 7C BA 01 2E */ stwx r5, r26, r0
/* 80398694 003955F4 4B FF F5 D5 */ bl HandleTrackEvents
/* 80398698 003955F8 3B 39 00 01 */ addi r25, r25, 1
/* 8039869C 003955FC 7F FF 1B 78 */ or r31, r31, r3
/* 803986A0 00395600 28 19 00 10 */ cmplwi r25, 0x10
/* 803986A4 00395604 3B 18 00 38 */ addi r24, r24, 0x38
/* 803986A8 00395608 41 80 FE 8C */ blt lbl_80398534
/* 803986AC 0039560C 3B 40 00 00 */ li r26, 0
/* 803986B0 00395610 7F 58 D3 78 */ mr r24, r26
/* 803986B4 00395614 7F 59 D3 78 */ mr r25, r26
lbl_803986B8:
/* 803986B8 00395618 80 6D AE 38 */ lwz r3, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803986BC 0039561C 38 18 0E 64 */ addi r0, r24, 0xe64
/* 803986C0 00395620 7F 63 00 2E */ lwzx r27, r3, r0
/* 803986C4 00395624 28 1B 00 00 */ cmplwi r27, 0
/* 803986C8 00395628 41 82 00 9C */ beq lbl_80398764
/* 803986CC 0039562C 48 00 00 74 */ b lbl_80398740
lbl_803986D0:
/* 803986D0 00395630 80 7B 00 08 */ lwz r3, 8(r27)
/* 803986D4 00395634 48 00 2C 8D */ bl synthSendKeyOff
/* 803986D8 00395638 80 9B 00 00 */ lwz r4, 0(r27)
/* 803986DC 0039563C 80 6D AE 38 */ lwz r3, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803986E0 00395640 28 04 00 00 */ cmplwi r4, 0
/* 803986E4 00395644 38 03 0E 64 */ addi r0, r3, 0xe64
/* 803986E8 00395648 7C 98 01 2E */ stwx r4, r24, r0
/* 803986EC 0039564C 41 82 00 18 */ beq lbl_80398704
/* 803986F0 00395650 80 6D AE 38 */ lwz r3, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803986F4 00395654 38 80 00 00 */ li r4, 0
/* 803986F8 00395658 38 03 0E 64 */ addi r0, r3, 0xe64
/* 803986FC 0039565C 7C 78 00 2E */ lwzx r3, r24, r0
/* 80398700 00395660 90 83 00 04 */ stw r4, 4(r3)
lbl_80398704:
/* 80398704 00395664 80 6D AE 38 */ lwz r3, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80398708 00395668 80 03 0E 6C */ lwz r0, 0xe6c(r3)
/* 8039870C 0039566C 28 00 00 00 */ cmplwi r0, 0
/* 80398710 00395670 90 1B 00 00 */ stw r0, 0(r27)
/* 80398714 00395674 41 82 00 10 */ beq lbl_80398724
/* 80398718 00395678 80 6D AE 38 */ lwz r3, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 8039871C 0039567C 80 63 0E 6C */ lwz r3, 0xe6c(r3)
/* 80398720 00395680 93 63 00 04 */ stw r27, 4(r3)
lbl_80398724:
/* 80398724 00395684 80 6D AE 38 */ lwz r3, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80398728 00395688 93 63 0E 6C */ stw r27, 0xe6c(r3)
/* 8039872C 0039568C 80 6D AE 38 */ lwz r3, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80398730 00395690 38 03 0E 64 */ addi r0, r3, 0xe64
/* 80398734 00395694 7F 78 00 2E */ lwzx r27, r24, r0
/* 80398738 00395698 28 1B 00 00 */ cmplwi r27, 0
/* 8039873C 0039569C 41 82 00 28 */ beq lbl_80398764
lbl_80398740:
/* 80398740 003956A0 88 1B 00 10 */ lbz r0, 0x10(r27)
/* 80398744 003956A4 80 6D AE 38 */ lwz r3, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80398748 003956A8 1C 00 00 38 */ mulli r0, r0, 0x38
/* 8039874C 003956AC 80 9B 00 0C */ lwz r4, 0xc(r27)
/* 80398750 003956B0 7C 63 02 14 */ add r3, r3, r0
/* 80398754 003956B4 38 03 15 0C */ addi r0, r3, 0x150c
/* 80398758 003956B8 7C 19 00 2E */ lwzx r0, r25, r0
/* 8039875C 003956BC 7C 04 00 00 */ cmpw r4, r0
/* 80398760 003956C0 40 81 FF 70 */ ble lbl_803986D0
lbl_80398764:
/* 80398764 003956C4 3B 5A 00 01 */ addi r26, r26, 1
/* 80398768 003956C8 3B 39 00 08 */ addi r25, r25, 8
/* 8039876C 003956CC 28 1A 00 02 */ cmplwi r26, 2
/* 80398770 003956D0 3B 18 00 04 */ addi r24, r24, 4
/* 80398774 003956D4 41 80 FF 44 */ blt lbl_803986B8
/* 80398778 003956D8 80 8D AE 38 */ lwz r4, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 8039877C 003956DC 38 60 00 00 */ li r3, 0
/* 80398780 003956E0 80 04 0E 64 */ lwz r0, 0xe64(r4)
/* 80398784 003956E4 28 00 00 00 */ cmplwi r0, 0
/* 80398788 003956E8 40 82 00 10 */ bne lbl_80398798
/* 8039878C 003956EC 80 04 0E 68 */ lwz r0, 0xe68(r4)
/* 80398790 003956F0 28 00 00 00 */ cmplwi r0, 0
/* 80398794 003956F4 41 82 00 08 */ beq lbl_8039879C
lbl_80398798:
/* 80398798 003956F8 38 60 00 01 */ li r3, 1
lbl_8039879C:
/* 8039879C 003956FC 88 04 0E E2 */ lbz r0, 0xee2(r4)
/* 803987A0 00395700 7C 78 1B 78 */ mr r24, r3
/* 803987A4 00395704 28 00 00 00 */ cmplwi r0, 0
/* 803987A8 00395708 40 82 00 98 */ bne lbl_80398840
/* 803987AC 0039570C 83 44 0E 6C */ lwz r26, 0xe6c(r4)
/* 803987B0 00395710 48 00 00 88 */ b lbl_80398838
lbl_803987B4:
/* 803987B4 00395714 80 7A 00 08 */ lwz r3, 8(r26)
/* 803987B8 00395718 83 3A 00 00 */ lwz r25, 0(r26)
/* 803987BC 0039571C 3C 03 00 01 */ addis r0, r3, 1
/* 803987C0 00395720 28 00 FF FF */ cmplwi r0, 0xffff
/* 803987C4 00395724 41 82 00 70 */ beq lbl_80398834
/* 803987C8 00395728 48 00 3B 4D */ bl sndFXCheck
/* 803987CC 0039572C 3C 03 00 01 */ addis r0, r3, 1
/* 803987D0 00395730 28 00 FF FF */ cmplwi r0, 0xffff
/* 803987D4 00395734 40 82 00 60 */ bne lbl_80398834
/* 803987D8 00395738 80 7A 00 00 */ lwz r3, 0(r26)
/* 803987DC 0039573C 28 03 00 00 */ cmplwi r3, 0
/* 803987E0 00395740 41 82 00 0C */ beq lbl_803987EC
/* 803987E4 00395744 80 1A 00 04 */ lwz r0, 4(r26)
/* 803987E8 00395748 90 03 00 04 */ stw r0, 4(r3)
lbl_803987EC:
/* 803987EC 0039574C 80 7A 00 04 */ lwz r3, 4(r26)
/* 803987F0 00395750 28 03 00 00 */ cmplwi r3, 0
/* 803987F4 00395754 41 82 00 10 */ beq lbl_80398804
/* 803987F8 00395758 80 1A 00 00 */ lwz r0, 0(r26)
/* 803987FC 0039575C 90 03 00 00 */ stw r0, 0(r3)
/* 80398800 00395760 48 00 00 10 */ b lbl_80398810
lbl_80398804:
/* 80398804 00395764 80 1A 00 00 */ lwz r0, 0(r26)
/* 80398808 00395768 80 6D AE 38 */ lwz r3, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 8039880C 0039576C 90 03 0E 6C */ stw r0, 0xe6c(r3)
lbl_80398810:
/* 80398810 00395770 80 0D AE 34 */ lwz r0, noteFree@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80398814 00395774 28 00 00 00 */ cmplwi r0, 0
/* 80398818 00395778 90 1A 00 00 */ stw r0, 0(r26)
/* 8039881C 0039577C 41 82 00 0C */ beq lbl_80398828
/* 80398820 00395780 80 6D AE 34 */ lwz r3, noteFree@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80398824 00395784 93 43 00 04 */ stw r26, 4(r3)
lbl_80398828:
/* 80398828 00395788 38 00 00 00 */ li r0, 0
/* 8039882C 0039578C 90 1A 00 04 */ stw r0, 4(r26)
/* 80398830 00395790 93 4D AE 34 */ stw r26, noteFree@sda21(r13)
2022-04-02 09:50:35 +00:00
lbl_80398834:
/* 80398834 00395794 7F 3A CB 78 */ mr r26, r25
lbl_80398838:
/* 80398838 00395798 28 1A 00 00 */ cmplwi r26, 0
/* 8039883C 0039579C 40 82 FF 78 */ bne lbl_803987B4
lbl_80398840:
/* 80398840 003957A0 80 ED AE 38 */ lwz r7, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80398844 003957A4 3C 80 66 66 */ lis r4, 0x66666667@ha
/* 80398848 003957A8 38 84 66 67 */ addi r4, r4, 0x66666667@l
/* 8039884C 003957AC 38 00 00 08 */ li r0, 8
/* 80398850 003957B0 88 A7 0E E2 */ lbz r5, 0xee2(r7)
/* 80398854 003957B4 38 60 00 00 */ li r3, 0
/* 80398858 003957B8 38 C5 00 01 */ addi r6, r5, 1
/* 8039885C 003957BC 7C 84 30 96 */ mulhw r4, r4, r6
/* 80398860 003957C0 7C 84 0E 70 */ srawi r4, r4, 1
/* 80398864 003957C4 54 85 0F FE */ srwi r5, r4, 0x1f
/* 80398868 003957C8 7C 84 2A 14 */ add r4, r4, r5
/* 8039886C 003957CC 1C 84 00 05 */ mulli r4, r4, 5
/* 80398870 003957D0 7C 84 30 50 */ subf r4, r4, r6
/* 80398874 003957D4 98 87 0E E2 */ stb r4, 0xee2(r7)
/* 80398878 003957D8 7C 09 03 A6 */ mtctr r0
lbl_8039887C:
/* 8039887C 003957DC 80 0D AE 38 */ lwz r0, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80398880 003957E0 7C A0 1A 14 */ add r5, r0, r3
/* 80398884 003957E4 80 85 15 08 */ lwz r4, 0x1508(r5)
/* 80398888 003957E8 80 05 14 F4 */ lwz r0, 0x14f4(r5)
/* 8039888C 003957EC 7C 84 02 14 */ add r4, r4, r0
/* 80398890 003957F0 54 80 04 3E */ clrlwi r0, r4, 0x10
/* 80398894 003957F4 90 05 15 08 */ stw r0, 0x1508(r5)
/* 80398898 003957F8 54 84 84 3E */ srwi r4, r4, 0x10
/* 8039889C 003957FC 80 0D AE 38 */ lwz r0, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803988A0 00395800 7C C0 1A 14 */ add r6, r0, r3
/* 803988A4 00395804 80 A6 15 0C */ lwz r5, 0x150c(r6)
/* 803988A8 00395808 80 06 14 F8 */ lwz r0, 0x14f8(r6)
/* 803988AC 0039580C 7C 00 2A 14 */ add r0, r0, r5
/* 803988B0 00395810 7C 04 02 14 */ add r0, r4, r0
/* 803988B4 00395814 90 06 15 0C */ stw r0, 0x150c(r6)
/* 803988B8 00395818 80 0D AE 38 */ lwz r0, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803988BC 0039581C 7C A0 1A 14 */ add r5, r0, r3
/* 803988C0 00395820 80 85 15 10 */ lwz r4, 0x1510(r5)
/* 803988C4 00395824 80 05 14 FC */ lwz r0, 0x14fc(r5)
/* 803988C8 00395828 7C 84 02 14 */ add r4, r4, r0
/* 803988CC 0039582C 54 80 04 3E */ clrlwi r0, r4, 0x10
/* 803988D0 00395830 90 05 15 10 */ stw r0, 0x1510(r5)
/* 803988D4 00395834 54 84 84 3E */ srwi r4, r4, 0x10
/* 803988D8 00395838 80 0D AE 38 */ lwz r0, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803988DC 0039583C 7C C0 1A 14 */ add r6, r0, r3
/* 803988E0 00395840 38 63 00 38 */ addi r3, r3, 0x38
/* 803988E4 00395844 80 A6 15 14 */ lwz r5, 0x1514(r6)
/* 803988E8 00395848 80 06 15 00 */ lwz r0, 0x1500(r6)
/* 803988EC 0039584C 7C 00 2A 14 */ add r0, r0, r5
/* 803988F0 00395850 7C 04 02 14 */ add r0, r4, r0
/* 803988F4 00395854 90 06 15 14 */ stw r0, 0x1514(r6)
/* 803988F8 00395858 80 0D AE 38 */ lwz r0, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803988FC 0039585C 7C A0 1A 14 */ add r5, r0, r3
/* 80398900 00395860 80 85 15 08 */ lwz r4, 0x1508(r5)
/* 80398904 00395864 80 05 14 F4 */ lwz r0, 0x14f4(r5)
/* 80398908 00395868 7C 84 02 14 */ add r4, r4, r0
/* 8039890C 0039586C 54 80 04 3E */ clrlwi r0, r4, 0x10
/* 80398910 00395870 90 05 15 08 */ stw r0, 0x1508(r5)
/* 80398914 00395874 54 84 84 3E */ srwi r4, r4, 0x10
/* 80398918 00395878 80 0D AE 38 */ lwz r0, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 8039891C 0039587C 7C C0 1A 14 */ add r6, r0, r3
/* 80398920 00395880 80 A6 15 0C */ lwz r5, 0x150c(r6)
/* 80398924 00395884 80 06 14 F8 */ lwz r0, 0x14f8(r6)
/* 80398928 00395888 7C 00 2A 14 */ add r0, r0, r5
/* 8039892C 0039588C 7C 04 02 14 */ add r0, r4, r0
/* 80398930 00395890 90 06 15 0C */ stw r0, 0x150c(r6)
/* 80398934 00395894 80 0D AE 38 */ lwz r0, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80398938 00395898 7C A0 1A 14 */ add r5, r0, r3
/* 8039893C 0039589C 80 85 15 10 */ lwz r4, 0x1510(r5)
/* 80398940 003958A0 80 05 14 FC */ lwz r0, 0x14fc(r5)
/* 80398944 003958A4 7C 84 02 14 */ add r4, r4, r0
/* 80398948 003958A8 54 80 04 3E */ clrlwi r0, r4, 0x10
/* 8039894C 003958AC 90 05 15 10 */ stw r0, 0x1510(r5)
/* 80398950 003958B0 54 84 84 3E */ srwi r4, r4, 0x10
/* 80398954 003958B4 80 0D AE 38 */ lwz r0, cseq@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80398958 003958B8 7C C0 1A 14 */ add r6, r0, r3
/* 8039895C 003958BC 38 63 00 38 */ addi r3, r3, 0x38
/* 80398960 003958C0 80 A6 15 14 */ lwz r5, 0x1514(r6)
/* 80398964 003958C4 80 06 15 00 */ lwz r0, 0x1500(r6)
/* 80398968 003958C8 7C 00 2A 14 */ add r0, r0, r5
/* 8039896C 003958CC 7C 04 02 14 */ add r0, r4, r0
/* 80398970 003958D0 90 06 15 14 */ stw r0, 0x1514(r6)
/* 80398974 003958D4 42 00 FF 08 */ bdnz lbl_8039887C
lbl_80398978:
/* 80398978 003958D8 28 1F 00 00 */ cmplwi r31, 0
/* 8039897C 003958DC 40 82 01 30 */ bne lbl_80398AAC
/* 80398980 003958E0 28 18 00 00 */ cmplwi r24, 0
/* 80398984 003958E4 40 82 01 28 */ bne lbl_80398AAC
/* 80398988 003958E8 80 7E 00 04 */ lwz r3, 4(r30)
/* 8039898C 003958EC 28 03 00 00 */ cmplwi r3, 0
/* 80398990 003958F0 41 82 00 0C */ beq lbl_8039899C
/* 80398994 003958F4 93 A3 00 00 */ stw r29, 0(r3)
/* 80398998 003958F8 48 00 00 08 */ b lbl_803989A0
lbl_8039899C:
/* 8039899C 003958FC 93 AD AE 44 */ stw r29, seqActiveRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
lbl_803989A0:
/* 803989A0 00395900 28 1D 00 00 */ cmplwi r29, 0
/* 803989A4 00395904 41 82 00 0C */ beq lbl_803989B0
/* 803989A8 00395908 80 1E 00 04 */ lwz r0, 4(r30)
/* 803989AC 0039590C 90 1D 00 04 */ stw r0, 4(r29)
lbl_803989B0:
/* 803989B0 00395910 80 BE 0E 64 */ lwz r5, 0xe64(r30)
/* 803989B4 00395914 38 80 00 00 */ li r4, 0
/* 803989B8 00395918 28 05 00 00 */ cmplwi r5, 0
/* 803989BC 0039591C 41 82 00 3C */ beq lbl_803989F8
/* 803989C0 00395920 48 00 00 08 */ b lbl_803989C8
lbl_803989C4:
/* 803989C4 00395924 7C 05 03 78 */ mr r5, r0
lbl_803989C8:
/* 803989C8 00395928 80 05 00 00 */ lwz r0, 0(r5)
/* 803989CC 0039592C 28 00 00 00 */ cmplwi r0, 0
/* 803989D0 00395930 40 82 FF F4 */ bne lbl_803989C4
/* 803989D4 00395934 80 0D AE 34 */ lwz r0, noteFree@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803989D8 00395938 28 00 00 00 */ cmplwi r0, 0
/* 803989DC 0039593C 41 82 00 10 */ beq lbl_803989EC
/* 803989E0 00395940 90 05 00 00 */ stw r0, 0(r5)
/* 803989E4 00395944 80 6D AE 34 */ lwz r3, noteFree@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803989E8 00395948 90 A3 00 04 */ stw r5, 4(r3)
lbl_803989EC:
/* 803989EC 0039594C 80 1E 0E 64 */ lwz r0, 0xe64(r30)
/* 803989F0 00395950 90 0D AE 34 */ stw r0, noteFree@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 803989F4 00395954 90 9E 0E 64 */ stw r4, 0xe64(r30)
lbl_803989F8:
/* 803989F8 00395958 80 BE 0E 68 */ lwz r5, 0xe68(r30)
/* 803989FC 0039595C 28 05 00 00 */ cmplwi r5, 0
/* 80398A00 00395960 41 82 00 3C */ beq lbl_80398A3C
/* 80398A04 00395964 48 00 00 08 */ b lbl_80398A0C
lbl_80398A08:
/* 80398A08 00395968 7C 05 03 78 */ mr r5, r0
lbl_80398A0C:
/* 80398A0C 0039596C 80 05 00 00 */ lwz r0, 0(r5)
/* 80398A10 00395970 28 00 00 00 */ cmplwi r0, 0
/* 80398A14 00395974 40 82 FF F4 */ bne lbl_80398A08
/* 80398A18 00395978 80 0D AE 34 */ lwz r0, noteFree@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80398A1C 0039597C 28 00 00 00 */ cmplwi r0, 0
/* 80398A20 00395980 41 82 00 10 */ beq lbl_80398A30
/* 80398A24 00395984 90 05 00 00 */ stw r0, 0(r5)
/* 80398A28 00395988 80 6D AE 34 */ lwz r3, noteFree@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80398A2C 0039598C 90 A3 00 04 */ stw r5, 4(r3)
lbl_80398A30:
/* 80398A30 00395990 80 1E 0E 68 */ lwz r0, 0xe68(r30)
/* 80398A34 00395994 90 0D AE 34 */ stw r0, noteFree@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80398A38 00395998 90 9E 0E 68 */ stw r4, 0xe68(r30)
lbl_80398A3C:
/* 80398A3C 0039599C 80 9E 0E 6C */ lwz r4, 0xe6c(r30)
/* 80398A40 003959A0 28 04 00 00 */ cmplwi r4, 0
/* 80398A44 003959A4 41 82 00 40 */ beq lbl_80398A84
/* 80398A48 003959A8 48 00 00 08 */ b lbl_80398A50
lbl_80398A4C:
/* 80398A4C 003959AC 7C 04 03 78 */ mr r4, r0
lbl_80398A50:
/* 80398A50 003959B0 80 04 00 00 */ lwz r0, 0(r4)
/* 80398A54 003959B4 28 00 00 00 */ cmplwi r0, 0
/* 80398A58 003959B8 40 82 FF F4 */ bne lbl_80398A4C
/* 80398A5C 003959BC 80 0D AE 34 */ lwz r0, noteFree@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80398A60 003959C0 28 00 00 00 */ cmplwi r0, 0
/* 80398A64 003959C4 41 82 00 10 */ beq lbl_80398A74
/* 80398A68 003959C8 90 04 00 00 */ stw r0, 0(r4)
/* 80398A6C 003959CC 80 6D AE 34 */ lwz r3, noteFree@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80398A70 003959D0 90 83 00 04 */ stw r4, 4(r3)
lbl_80398A74:
/* 80398A74 003959D4 80 7E 0E 6C */ lwz r3, 0xe6c(r30)
/* 80398A78 003959D8 38 00 00 00 */ li r0, 0
/* 80398A7C 003959DC 90 6D AE 34 */ stw r3, noteFree@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80398A80 003959E0 90 1E 0E 6C */ stw r0, 0xe6c(r30)
lbl_80398A84:
/* 80398A84 003959E4 38 00 00 00 */ li r0, 0
/* 80398A88 003959E8 98 1E 00 08 */ stb r0, 8(r30)
/* 80398A8C 003959EC 90 1E 00 04 */ stw r0, 4(r30)
/* 80398A90 003959F0 80 0D AE 3C */ lwz r0, seqFreeRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80398A94 003959F4 28 00 00 00 */ cmplwi r0, 0
/* 80398A98 003959F8 90 1E 00 00 */ stw r0, 0(r30)
/* 80398A9C 003959FC 41 82 00 0C */ beq lbl_80398AA8
/* 80398AA0 00395A00 80 6D AE 3C */ lwz r3, seqFreeRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80398AA4 00395A04 93 C3 00 04 */ stw r30, 4(r3)
lbl_80398AA8:
/* 80398AA8 00395A08 93 CD AE 3C */ stw r30, seqFreeRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
lbl_80398AAC:
/* 80398AAC 00395A0C 7F BE EB 78 */ mr r30, r29
lbl_80398AB0:
/* 80398AB0 00395A10 28 1E 00 00 */ cmplwi r30, 0
/* 80398AB4 00395A14 40 82 F6 9C */ bne lbl_80398150
lbl_80398AB8:
/* 80398AB8 00395A18 E3 E1 00 98 */ psq_l f31, 152(r1), 0, qr0
/* 80398ABC 00395A1C CB E1 00 90 */ lfd f31, 0x90(r1)
/* 80398AC0 00395A20 E3 C1 00 88 */ psq_l f30, 136(r1), 0, qr0
/* 80398AC4 00395A24 CB C1 00 80 */ lfd f30, 0x80(r1)
/* 80398AC8 00395A28 E3 A1 00 78 */ psq_l f29, 120(r1), 0, qr0
/* 80398ACC 00395A2C CB A1 00 70 */ lfd f29, 0x70(r1)
/* 80398AD0 00395A30 E3 81 00 68 */ psq_l f28, 104(r1), 0, qr0
/* 80398AD4 00395A34 CB 81 00 60 */ lfd f28, 0x60(r1)
/* 80398AD8 00395A38 E3 61 00 58 */ psq_l f27, 88(r1), 0, qr0
/* 80398ADC 00395A3C 39 61 00 50 */ addi r11, r1, 0x50
/* 80398AE0 00395A40 CB 61 00 50 */ lfd f27, 0x50(r1)
/* 80398AE4 00395A44 4B FF 0F D9 */ bl _restgpr_24
/* 80398AE8 00395A48 80 01 00 A4 */ lwz r0, 0xa4(r1)
/* 80398AEC 00395A4C 7C 08 03 A6 */ mtlr r0
/* 80398AF0 00395A50 38 21 00 A0 */ addi r1, r1, 0xa0
2022-04-08 05:17:01 +00:00
/* 80398AF4 00395A54 4E 80 00 20 */ blr
2022-04-02 09:50:35 +00:00
.global seqInit
seqInit:
/* 80398AF8 00395A58 38 C0 00 00 */ li r6, 0
2022-04-08 05:17:01 +00:00
/* 80398AFC 00395A5C 3C A0 80 54 */ lis r5, seqInstance@ha
/* 80398B00 00395A60 3C 80 80 55 */ lis r4, seqMIDIPriority@ha
2022-04-02 09:50:35 +00:00
/* 80398B04 00395A64 3C 60 00 01 */ lis r3, 0x0000FFFF@ha
/* 80398B08 00395A68 38 00 00 08 */ li r0, 8
2022-04-08 05:17:01 +00:00
/* 80398B0C 00395A6C 38 E5 39 D0 */ addi r7, r5, seqInstance@l
/* 80398B10 00395A70 39 04 FD 10 */ addi r8, r4, seqMIDIPriority@l
/* 80398B14 00395A74 90 CD AE 44 */ stw r6, seqActiveRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80398B18 00395A78 38 63 FF FF */ addi r3, r3, 0x0000FFFF@l
/* 80398B1C 00395A7C 39 20 00 00 */ li r9, 0
/* 80398B20 00395A80 90 CD AE 40 */ stw r6, seqPausedRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80398B24 00395A84 7C 09 03 A6 */ mtctr r0
lbl_80398B28:
/* 80398B28 00395A88 28 09 00 00 */ cmplwi r9, 0
/* 80398B2C 00395A8C 40 82 00 14 */ bne lbl_80398B40
/* 80398B30 00395A90 38 00 00 00 */ li r0, 0
/* 80398B34 00395A94 90 ED AE 3C */ stw r7, seqFreeRoot@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80398B38 00395A98 90 07 00 04 */ stw r0, 4(r7)
/* 80398B3C 00395A9C 48 00 00 20 */ b lbl_80398B5C
lbl_80398B40:
/* 80398B40 00395AA0 38 09 FF FF */ addi r0, r9, -1
2022-04-08 05:17:01 +00:00
/* 80398B44 00395AA4 3C 80 80 54 */ lis r4, seqInstance@ha
2022-04-02 09:50:35 +00:00
/* 80398B48 00395AA8 1C A0 18 68 */ mulli r5, r0, 0x1868
/* 80398B4C 00395AAC 90 E7 E7 98 */ stw r7, -0x1868(r7)
2022-04-08 05:17:01 +00:00
/* 80398B50 00395AB0 38 04 39 D0 */ addi r0, r4, seqInstance@l
2022-04-02 09:50:35 +00:00
/* 80398B54 00395AB4 7C 00 2A 14 */ add r0, r0, r5
/* 80398B58 00395AB8 90 07 00 04 */ stw r0, 4(r7)
lbl_80398B5C:
/* 80398B5C 00395ABC B0 68 00 00 */ sth r3, 0(r8)
/* 80398B60 00395AC0 38 C0 00 00 */ li r6, 0
/* 80398B64 00395AC4 B0 68 00 02 */ sth r3, 2(r8)
/* 80398B68 00395AC8 B0 68 00 04 */ sth r3, 4(r8)
/* 80398B6C 00395ACC B0 68 00 06 */ sth r3, 6(r8)
/* 80398B70 00395AD0 B0 68 00 08 */ sth r3, 8(r8)
/* 80398B74 00395AD4 B0 68 00 0A */ sth r3, 0xa(r8)
/* 80398B78 00395AD8 B0 68 00 0C */ sth r3, 0xc(r8)
/* 80398B7C 00395ADC B0 68 00 0E */ sth r3, 0xe(r8)
/* 80398B80 00395AE0 B0 68 00 10 */ sth r3, 0x10(r8)
/* 80398B84 00395AE4 B0 68 00 12 */ sth r3, 0x12(r8)
/* 80398B88 00395AE8 B0 68 00 14 */ sth r3, 0x14(r8)
/* 80398B8C 00395AEC B0 68 00 16 */ sth r3, 0x16(r8)
/* 80398B90 00395AF0 B0 68 00 18 */ sth r3, 0x18(r8)
/* 80398B94 00395AF4 B0 68 00 1A */ sth r3, 0x1a(r8)
/* 80398B98 00395AF8 99 27 00 09 */ stb r9, 9(r7)
/* 80398B9C 00395AFC 39 29 00 01 */ addi r9, r9, 1
/* 80398BA0 00395B00 B0 68 00 1C */ sth r3, 0x1c(r8)
/* 80398BA4 00395B04 98 C7 00 08 */ stb r6, 8(r7)
/* 80398BA8 00395B08 38 E7 18 68 */ addi r7, r7, 0x1868
/* 80398BAC 00395B0C B0 68 00 1E */ sth r3, 0x1e(r8)
/* 80398BB0 00395B10 39 08 00 20 */ addi r8, r8, 0x20
/* 80398BB4 00395B14 42 00 FF 74 */ bdnz lbl_80398B28
/* 80398BB8 00395B18 1C 89 18 68 */ mulli r4, r9, 0x1868
2022-04-08 05:17:01 +00:00
/* 80398BBC 00395B1C 3C A0 80 54 */ lis r5, seqInstance@ha
/* 80398BC0 00395B20 3C 60 80 54 */ lis r3, seqNote@ha
/* 80398BC4 00395B24 38 A5 39 D0 */ addi r5, r5, seqInstance@l
/* 80398BC8 00395B28 38 E3 25 D0 */ addi r7, r3, seqNote@l
2022-04-02 09:50:35 +00:00
/* 80398BCC 00395B2C 38 00 00 20 */ li r0, 0x20
/* 80398BD0 00395B30 7C 65 22 14 */ add r3, r5, r4
/* 80398BD4 00395B34 7C C4 33 78 */ mr r4, r6
/* 80398BD8 00395B38 90 C3 E7 98 */ stw r6, -0x1868(r3)
/* 80398BDC 00395B3C 90 ED AE 34 */ stw r7, noteFree@sda21(r13)
2022-04-02 09:50:35 +00:00
/* 80398BE0 00395B40 7C 09 03 A6 */ mtctr r0
lbl_80398BE4:
/* 80398BE4 00395B44 28 06 00 00 */ cmplwi r6, 0
/* 80398BE8 00395B48 90 C7 00 04 */ stw r6, 4(r7)
/* 80398BEC 00395B4C 41 82 00 08 */ beq lbl_80398BF4
/* 80398BF0 00395B50 90 E6 00 00 */ stw r7, 0(r6)
lbl_80398BF4:
/* 80398BF4 00395B54 7C E6 3B 79 */ or. r6, r7, r7
/* 80398BF8 00395B58 90 C7 00 18 */ stw r6, 0x18(r7)
/* 80398BFC 00395B5C 38 E7 00 14 */ addi r7, r7, 0x14
/* 80398C00 00395B60 41 82 00 08 */ beq lbl_80398C08
/* 80398C04 00395B64 90 E6 00 00 */ stw r7, 0(r6)
lbl_80398C08:
/* 80398C08 00395B68 7C E6 3B 79 */ or. r6, r7, r7
/* 80398C0C 00395B6C 90 C7 00 18 */ stw r6, 0x18(r7)
/* 80398C10 00395B70 38 E7 00 14 */ addi r7, r7, 0x14
/* 80398C14 00395B74 41 82 00 08 */ beq lbl_80398C1C
/* 80398C18 00395B78 90 E6 00 00 */ stw r7, 0(r6)
lbl_80398C1C:
/* 80398C1C 00395B7C 7C E6 3B 79 */ or. r6, r7, r7
/* 80398C20 00395B80 90 C7 00 18 */ stw r6, 0x18(r7)
/* 80398C24 00395B84 38 E7 00 14 */ addi r7, r7, 0x14
/* 80398C28 00395B88 41 82 00 08 */ beq lbl_80398C30
/* 80398C2C 00395B8C 90 E6 00 00 */ stw r7, 0(r6)
lbl_80398C30:
/* 80398C30 00395B90 7C E6 3B 79 */ or. r6, r7, r7
/* 80398C34 00395B94 90 C7 00 18 */ stw r6, 0x18(r7)
/* 80398C38 00395B98 38 E7 00 14 */ addi r7, r7, 0x14
/* 80398C3C 00395B9C 41 82 00 08 */ beq lbl_80398C44
/* 80398C40 00395BA0 90 E6 00 00 */ stw r7, 0(r6)
lbl_80398C44:
/* 80398C44 00395BA4 7C E6 3B 79 */ or. r6, r7, r7
/* 80398C48 00395BA8 90 C7 00 18 */ stw r6, 0x18(r7)
/* 80398C4C 00395BAC 38 E7 00 14 */ addi r7, r7, 0x14
/* 80398C50 00395BB0 41 82 00 08 */ beq lbl_80398C58
/* 80398C54 00395BB4 90 E6 00 00 */ stw r7, 0(r6)
lbl_80398C58:
/* 80398C58 00395BB8 7C E6 3B 79 */ or. r6, r7, r7
/* 80398C5C 00395BBC 90 C7 00 18 */ stw r6, 0x18(r7)
/* 80398C60 00395BC0 38 E7 00 14 */ addi r7, r7, 0x14
/* 80398C64 00395BC4 41 82 00 08 */ beq lbl_80398C6C
/* 80398C68 00395BC8 90 E6 00 00 */ stw r7, 0(r6)
lbl_80398C6C:
/* 80398C6C 00395BCC 7C E6 3B 79 */ or. r6, r7, r7
/* 80398C70 00395BD0 90 C7 00 18 */ stw r6, 0x18(r7)
/* 80398C74 00395BD4 38 E7 00 14 */ addi r7, r7, 0x14
/* 80398C78 00395BD8 41 82 00 08 */ beq lbl_80398C80
/* 80398C7C 00395BDC 90 E6 00 00 */ stw r7, 0(r6)
lbl_80398C80:
/* 80398C80 00395BE0 7C E6 3B 78 */ mr r6, r7
/* 80398C84 00395BE4 38 E7 00 14 */ addi r7, r7, 0x14
/* 80398C88 00395BE8 38 84 00 07 */ addi r4, r4, 7
/* 80398C8C 00395BEC 42 00 FF 58 */ bdnz lbl_80398BE4
/* 80398C90 00395BF0 38 00 00 00 */ li r0, 0
/* 80398C94 00395BF4 90 06 00 00 */ stw r0, 0(r6)
/* 80398C98 00395BF8 90 0D AE 28 */ stw r0, seq_next_id@sda21(r13)
2022-04-08 05:17:01 +00:00
/* 80398C9C 00395BFC 4E 80 00 20 */ blr