	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function seq_chn_common_event
_seq_chn_common_event:                  ## @seq_chn_common_event
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movzbl	1(%rdi), %r13d
	movq	_max_synthdev@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jl	LBB0_31
## %bb.1:
	movq	_synth_devs@GOTPCREL(%rip), %r10
	movq	(%r10), %rax
	movl	%r13d, %r15d
	movq	(%rax,%r15,8), %r8
	testq	%r8, %r8
	je	LBB0_31
## %bb.2:
	movq	_synth_open_mask@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	btl	%r13d, %ecx
	jae	LBB0_31
## %bb.3:
	movb	2(%rdi), %bl
	movzbl	3(%rdi), %r14d
	movzwl	6(%rdi), %esi
	cmpb	$-128, %bl
	je	LBB0_24
## %bb.4:
	movb	4(%rdi), %cl
	movzbl	%cl, %edx
	cmpb	$-126, %bl
	je	LBB0_10
## %bb.5:
	cmpb	$-127, %bl
	jne	LBB0_31
## %bb.6:
	movq	_seq_mode@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_SEQ_2@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %eax
	jne	LBB0_8
## %bb.7:
	movq	24(%r8), %rax
	leaq	(%r14,%r14,2), %rsi
	movb	%cl, (%rax,%rsi,8)
	movq	_num_synths@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jg	LBB0_31
LBB0_8:
	movq	40(%r8), %rax
	movl	%r13d, %edi
	movl	%r14d, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	jmp	LBB0_9
LBB0_10:
	movq	_seq_mode@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	movq	_SEQ_2@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %edi
	jne	LBB0_23
## %bb.11:
	cmpb	$15, %r14b
	ja	LBB0_31
## %bb.12:
	testb	%cl, %cl
	js	LBB0_31
## %bb.13:
	movl	%esi, %edi
	andl	$127, %edi
	movq	24(%r8), %r9
	leaq	(%r14,%r14,2), %rbx
	movq	8(%r9,%rbx,8), %r9
	movw	%di, (%r9,%rdx,2)
	cmpb	$31, %cl
	ja	LBB0_15
## %bb.14:
	movw	$0, 64(%r9,%rdx,2)
LBB0_15:
	movq	_num_synths@GOTPCREL(%rip), %rbx
	cmpl	%r13d, (%rbx)
	jle	LBB0_23
## %bb.16:
	cmpb	$63, %cl
	ja	LBB0_18
## %bb.17:
	movl	%edx, %ecx
	andl	$-33, %ecx
	movzwl	(%r9,%rcx,2), %esi
	andl	$127, %esi
	shll	$7, %esi
	addq	%rdx, %rdx
	orq	$64, %rdx
	movzwl	(%r9,%rdx), %edi
	andl	$127, %edi
	orl	%esi, %edi
LBB0_18:
	cmpl	$0, 8(%r8)
	jle	LBB0_31
## %bb.19:
	shll	$8, %r14d
	xorl	%r12d, %r12d
	movzbl	%cl, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movzwl	%di, %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_20
LBB0_22:                                ##   in Loop: Header=BB0_20 Depth=1
	incq	%r12
	movq	(%rax,%r15,8), %r8
	movslq	8(%r8), %rcx
	cmpq	%rcx, %r12
	jge	LBB0_31
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r8), %rcx
	movzbl	1(%rcx,%r12,4), %ecx
	shll	$8, %ecx
	cmpl	%r14d, %ecx
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movzbl	%r12b, %esi
	movl	%r13d, %edi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movq	%r10, %rbx
	callq	*32(%r8)
	movq	%rbx, %r10
	movq	(%rbx), %rax
	jmp	LBB0_22
LBB0_24:
	movq	_seq_mode@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_SEQ_2@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_32
## %bb.25:
	movq	24(%r8), %rcx
	leaq	(%r14,%r14,2), %rdx
	movw	%si, 16(%rcx,%rdx,8)
	movq	_num_synths@GOTPCREL(%rip), %rcx
	cmpl	%r13d, (%rcx)
	jle	LBB0_32
## %bb.26:
	cmpl	$0, 8(%r8)
	jle	LBB0_31
## %bb.27:
	shll	$8, %r14d
	xorl	%ebx, %ebx
	movzwl	%si, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_28 Depth=1
	incq	%rbx
	movq	(%rax,%r15,8), %r8
	movslq	8(%r8), %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_31
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r8), %rcx
	movzbl	1(%rcx,%rbx,4), %ecx
	shll	$8, %ecx
	cmpl	%r14d, %ecx
	jne	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=1
	movzbl	%bl, %esi
	movl	%r13d, %edi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%r10, %r12
	callq	*(%r8)
	movq	%r12, %r10
	movq	(%r12), %rax
	jmp	LBB0_30
LBB0_31:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_32:
	movq	(%r8), %rax
	movzwl	%si, %edx
	movl	%r13d, %edi
	movl	%r14d, %esi
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_23:
	movq	32(%r8), %rax
	movzwl	%si, %ecx
	movl	%r13d, %edi
	movl	%r14d, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_max_synthdev,4,2               ## @max_synthdev
	.comm	_synth_devs,8,3                 ## @synth_devs
	.comm	_synth_open_mask,4,2            ## @synth_open_mask
	.comm	_seq_mode,4,2                   ## @seq_mode
	.comm	_SEQ_2,4,2                      ## @SEQ_2
	.comm	_num_synths,4,2                 ## @num_synths
	.no_dead_strip	_seq_chn_common_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function seq_chn_common_event
_seq_chn_common_event:                  ; @seq_chn_common_event
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldrb	w19, [x0, #1]
Lloh0:
	adrp	x8, _max_synthdev@GOTPAGE
Lloh1:
	ldr	x8, [x8, _max_synthdev@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w19
	b.lt	LBB0_29
; %bb.1:
Lloh3:
	adrp	x22, _synth_devs@GOTPAGE
Lloh4:
	ldr	x22, [x22, _synth_devs@GOTPAGEOFF]
	ldr	x9, [x22]
	ldr	x8, [x9, w19, uxtw #3]
	cbz	x8, LBB0_29
; %bb.2:
Lloh5:
	adrp	x10, _synth_open_mask@GOTPAGE
Lloh6:
	ldr	x10, [x10, _synth_open_mask@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	lsr	w10, w10, w19
	tbz	w10, #0, LBB0_29
; %bb.3:
	ldrb	w10, [x0, #2]
	ldrb	w1, [x0, #3]
	ldrh	w20, [x0, #6]
	cmp	w10, #128
	b.eq	LBB0_22
; %bb.4:
	ldrb	w2, [x0, #4]
	cmp	w10, #130
	b.eq	LBB0_9
; %bb.5:
	cmp	w10, #129
	b.ne	LBB0_29
; %bb.6:
Lloh8:
	adrp	x9, _seq_mode@GOTPAGE
Lloh9:
	ldr	x9, [x9, _seq_mode@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _SEQ_2@GOTPAGE
Lloh12:
	ldr	x10, [x10, _SEQ_2@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_8
; %bb.7:
	ldr	x9, [x8, #24]
	mov	w10, #24
	mul	x10, x1, x10
	strb	w2, [x9, x10]
Lloh14:
	adrp	x9, _num_synths@GOTPAGE
Lloh15:
	ldr	x9, [x9, _num_synths@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	w9, w19
	b.gt	LBB0_29
LBB0_8:
	ldr	x3, [x8, #40]
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
                                        ; kill: def $w2 killed $w2 killed $x2
	b	LBB0_31
LBB0_9:
Lloh17:
	adrp	x10, _seq_mode@GOTPAGE
Lloh18:
	ldr	x10, [x10, _seq_mode@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
Lloh20:
	adrp	x11, _SEQ_2@GOTPAGE
Lloh21:
	ldr	x11, [x11, _SEQ_2@GOTPAGEOFF]
Lloh22:
	ldr	w11, [x11]
	cmp	w10, w11
	b.ne	LBB0_32
; %bb.10:
	cmp	w1, #15
	b.hi	LBB0_29
; %bb.11:
	tbnz	w2, #7, LBB0_29
; %bb.12:
	and	w21, w20, #0x7f
	ldr	x10, [x8, #24]
	mov	w11, #24
	madd	x10, x1, x11, x10
	ldr	x10, [x10, #8]
	strh	w21, [x10, x2, lsl #1]
	cmp	w2, #31
	b.hi	LBB0_14
; %bb.13:
	add	x11, x10, x2, lsl #1
	strh	wzr, [x11, #64]
LBB0_14:
Lloh23:
	adrp	x11, _num_synths@GOTPAGE
Lloh24:
	ldr	x11, [x11, _num_synths@GOTPAGEOFF]
Lloh25:
	ldr	w11, [x11]
	cmp	w11, w19
	b.le	LBB0_32
; %bb.15:
	cmp	w2, #63
	b.hi	LBB0_17
; %bb.16:
	lsl	x11, x2, #1
	and	x2, x2, #0xffffffffffffffdf
	ldrh	w12, [x10, x2, lsl #1]
	orr	x11, x11, #0x40
	ldrh	w10, [x10, x11]
	and	w21, w10, #0x7f
	bfi	w21, w12, #7, #7
                                        ; kill: def $w2 killed $w2 killed $x2 def $x2
LBB0_17:
	ldr	w10, [x8, #8]
	cmp	w10, #1
	b.lt	LBB0_29
; %bb.18:
	mov	x23, #0
	lsl	w24, w1, #8
	and	w20, w2, #0xff
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	add	x23, x23, #1
	ldr	x8, [x9, x19, lsl #3]
	ldrsw	x10, [x8, #8]
	cmp	x23, x10
	b.ge	LBB0_29
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8, #16]
	add	x10, x10, x23, lsl #2
	ldrb	w10, [x10, #1]
	cmp	w24, w10, lsl #8
	b.ne	LBB0_19
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x8, [x8, #32]
	and	w1, w23, #0xff
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
	blr	x8
	ldr	x9, [x22]
	b	LBB0_19
LBB0_22:
Lloh26:
	adrp	x10, _seq_mode@GOTPAGE
Lloh27:
	ldr	x10, [x10, _seq_mode@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
Lloh29:
	adrp	x11, _SEQ_2@GOTPAGE
Lloh30:
	ldr	x11, [x11, _SEQ_2@GOTPAGEOFF]
Lloh31:
	ldr	w11, [x11]
	cmp	w10, w11
	b.ne	LBB0_30
; %bb.23:
	ldr	x10, [x8, #24]
	mov	w11, #24
	madd	x10, x1, x11, x10
	strh	w20, [x10, #16]
Lloh32:
	adrp	x10, _num_synths@GOTPAGE
Lloh33:
	ldr	x10, [x10, _num_synths@GOTPAGEOFF]
Lloh34:
	ldr	w10, [x10]
	cmp	w10, w19
	b.le	LBB0_30
; %bb.24:
	ldr	w10, [x8, #8]
	cmp	w10, #1
	b.lt	LBB0_29
; %bb.25:
	mov	x21, #0
	lsl	w23, w1, #8
	b	LBB0_27
LBB0_26:                                ;   in Loop: Header=BB0_27 Depth=1
	add	x21, x21, #1
	ldr	x8, [x9, x19, lsl #3]
	ldrsw	x10, [x8, #8]
	cmp	x21, x10
	b.ge	LBB0_29
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8, #16]
	add	x10, x10, x21, lsl #2
	ldrb	w10, [x10, #1]
	cmp	w23, w10, lsl #8
	b.ne	LBB0_26
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	ldr	x8, [x8]
	and	w1, w21, #0xff
	mov	x0, x19
	mov	x2, x20
	blr	x8
	ldr	x9, [x22]
	b	LBB0_26
LBB0_29:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_30:
	ldr	x3, [x8]
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x20
LBB0_31:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	br	x3
LBB0_32:
	ldr	x4, [x8, #32]
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	x3, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	br	x4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_max_synthdev,4,2               ; @max_synthdev
	.comm	_synth_devs,8,3                 ; @synth_devs
	.comm	_synth_open_mask,4,2            ; @synth_open_mask
	.comm	_seq_mode,4,2                   ; @seq_mode
	.comm	_SEQ_2,4,2                      ; @SEQ_2
	.comm	_num_synths,4,2                 ; @num_synths
	.no_dead_strip	_seq_chn_common_event
.subsections_via_symbols
