	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_emux_note_on               ## -- Begin function snd_emux_note_on
	.p2align	4, 0x90
_snd_emux_note_on:                      ## @snd_emux_note_on
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%esi, %r13d
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	%esi, -56(%rbp)
	movq	_SNDRV_EMUX_MAX_MULTI_VOICES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	testq	%r12, %r12
	sete	%al
	testq	%rbx, %rbx
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_snd_BUG_ON
	testq	%rax, %rax
	jne	LBB0_15
## %bb.1:
	movq	8(%r12), %r14
	movl	$1, %edi
	testq	%r14, %r14
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.2:
	cmpq	$0, 32(%r14)
	je	LBB0_4
## %bb.3:
	xorl	%edi, %edi
	cmpq	$0, 16(%r14)
	sete	%dil
LBB0_4:
	callq	_snd_BUG_ON
	testq	%rax, %rax
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	jne	LBB0_15
## %bb.5:
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movq	%rbx, %r8
	movq	%r15, %r9
	callq	_get_zone
	testl	%eax, %eax
	je	LBB0_15
## %bb.6:
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	jle	LBB0_7
## %bb.17:
	movl	%eax, %r12d
	xorl	%ebx, %ebx
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_18 Depth=1
	incq	%rbx
	cmpq	%rbx, %r12
	je	LBB0_22
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%rbx,8), %rax
	testq	%rax, %rax
	je	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	8(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_exclusive_note_off
	jmp	LBB0_21
LBB0_22:
	movl	%r13d, -68(%rbp)                ## 4-byte Spill
	leaq	4(%r14), %rdi
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	xorl	%r13d, %r13d
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_23 Depth=1
	incq	%r13
	movq	%rbx, %r12
	cmpq	%r13, %rbx
	je	LBB0_8
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rbx
	cmpq	$0, (%r15,%r13,8)
	je	LBB0_34
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	*32(%r14)
	testq	%rax, %rax
	je	LBB0_34
## %bb.25:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	%rax, %r12
	cmpq	$0, (%rax)
	js	LBB0_34
## %bb.26:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	8(%r12), %rdi
	callq	_STATE_IS_PLAYING
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	%r12, %rdi
	callq	*24(%r14)
LBB0_28:                                ##   in Loop: Header=BB0_23 Depth=1
	movslq	48(%r14), %rax
	leal	1(%rax), %ecx
	movl	%ecx, 48(%r14)
	movq	%rax, 64(%r12)
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 32(%r12)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 56(%r12)
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 16(%r12)
	movl	-56(%rbp), %eax
	movl	%eax, 20(%r12)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 24(%r12)
	movq	(%r15,%r13,8), %rax
	movq	%rax, 48(%r12)
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_29
## %bb.30:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	(%rax), %rax
	jmp	LBB0_31
LBB0_29:                                ##   in Loop: Header=BB0_23 Depth=1
	xorl	%eax, %eax
LBB0_31:                                ##   in Loop: Header=BB0_23 Depth=1
	movq	%rax, 40(%r12)
	movq	%r12, %rdi
	callq	_setup_voice
	movq	_SNDRV_EMUX_ST_STANDBY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r12)
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_34
## %bb.32:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	_SNDRV_EMUX_ST_OFF@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 8(%r12)
	movq	%r12, %rdi
	callq	*%rax
	testq	%rax, %rax
	js	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	_SNDRV_EMUX_ST_STANDBY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r12)
	jmp	LBB0_34
LBB0_7:
	leaq	4(%r14), %rdi
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
LBB0_8:
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_14
## %bb.9:
	xorl	%ebx, %ebx
	movq	_SNDRV_EMUX_ST_STANDBY@GOTPCREL(%rip), %r15
	xorl	%r12d, %r12d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%r12
	movslq	%eax, %rcx
	addq	$72, %rbx
	cmpq	%rcx, %r12
	jge	LBB0_14
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	40(%r14), %r13
	movq	8(%r13,%rbx), %rcx
	cmpq	(%r15), %rcx
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, 32(%r13,%rbx)
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	leaq	(%rbx,%r13), %rdi
	callq	*16(%r14)
	movq	_SNDRV_EMUX_ST_ON@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r13,%rbx)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r13,%rbx)
	movl	(%r14), %eax
	jmp	LBB0_13
LBB0_14:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.35:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_EMUX_MAX_MULTI_VOICES,4,2 ## @SNDRV_EMUX_MAX_MULTI_VOICES
	.comm	_SNDRV_EMUX_ST_STANDBY,8,3      ## @SNDRV_EMUX_ST_STANDBY
	.comm	_SNDRV_EMUX_ST_OFF,8,3          ## @SNDRV_EMUX_ST_OFF
	.comm	_SNDRV_EMUX_ST_ON,8,3           ## @SNDRV_EMUX_ST_ON
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_EMUX_FX_COARSE_SAMPLE_START,8,3 ## @EMUX_FX_COARSE_SAMPLE_START
	.comm	_EMUX_FX_SAMPLE_START,8,3       ## @EMUX_FX_SAMPLE_START
	.comm	_SNDRV_EMUX_PORT_MODE_OSS_SYNTH,8,3 ## @SNDRV_EMUX_PORT_MODE_OSS_SYNTH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_emux_note_on               ; -- Begin function snd_emux_note_on
	.p2align	2
_snd_emux_note_on:                      ; @snd_emux_note_on
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	stur	w1, [x29, #-92]
Lloh3:
	adrp	x8, _SNDRV_EMUX_MAX_MULTI_VOICES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SNDRV_EMUX_MAX_MULTI_VOICES@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x24, x9, x8
	mov	sp, x24
	cmp	x0, #0
	ccmp	x3, #0, #4, ne
	cset	w0, eq
	bl	_snd_BUG_ON
	cbz	x0, LBB0_3
LBB0_1:
	ldur	x8, [x29, #-88]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_35
; %bb.2:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	x20, [x23, #8]
	cbz	x20, LBB0_6
; %bb.4:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	x8, [x20, #16]
	cmp	x8, #0
	cset	w0, eq
	bl	_snd_BUG_ON
	cbnz	x0, LBB0_1
	b	LBB0_7
LBB0_6:
	mov	w0, #1
	bl	_snd_BUG_ON
	cbnz	x0, LBB0_1
LBB0_7:
	sub	x2, x29, #92
	mov	x0, x20
	mov	x1, x23
	mov	x3, x21
	mov	x4, x19
	mov	x5, x24
	bl	_get_zone
	cbz	w0, LBB0_1
; %bb.8:
Lloh11:
	adrp	x27, _SNDRV_EMUX_ST_STANDBY@GOTPAGE
Lloh12:
	ldr	x27, [x27, _SNDRV_EMUX_ST_STANDBY@GOTPAGEOFF]
	cmp	w0, #0
	b.le	LBB0_27
; %bb.9:
	mov	w28, w0
	mov	x25, x28
	mov	x26, x24
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x26, x26, #8
	subs	x25, x25, #1
	b.eq	LBB0_14
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
	cbz	x8, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x2, [x8, #8]
	cbz	x2, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_exclusive_note_off
	b	LBB0_10
LBB0_14:
	add	x0, x20, #4
	stur	x0, [x29, #-104]                ; 8-byte Folded Spill
	bl	_spin_lock_irqsave
Lloh13:
	adrp	x25, _SNDRV_EMUX_ST_OFF@GOTPAGE
Lloh14:
	ldr	x25, [x25, _SNDRV_EMUX_ST_OFF@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x24, x24, #8
	subs	x28, x28, #1
	b.eq	LBB0_26
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	cbz	x8, LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x20, #32]
	mov	x0, x20
	mov	x1, x23
	blr	x8
	cbz	x0, LBB0_15
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x26, x0
	ldr	x8, [x0]
	tbnz	x8, #63, LBB0_15
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x0, [x26, #8]
	bl	_STATE_IS_PLAYING
	cbz	x0, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x20, #24]
	mov	x0, x26
	blr	x8
LBB0_21:                                ;   in Loop: Header=BB0_16 Depth=1
	ldrsw	x8, [x20, #48]
	add	w9, w8, #1
	str	w9, [x20, #48]
	str	x19, [x26, #32]
	stp	x23, x8, [x26, #56]
	ldur	w8, [x29, #-92]
	stp	w22, w8, [x26, #16]
	str	w21, [x26, #24]
	ldr	x8, [x24]
	str	x8, [x26, #48]
	ldr	x8, [x8]
	cbz	x8, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x8]
LBB0_23:                                ;   in Loop: Header=BB0_16 Depth=1
	str	x8, [x26, #40]
	mov	x0, x26
	bl	_setup_voice
	ldr	x8, [x27]
	str	x8, [x26, #8]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_15
; %bb.24:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x9, [x25]
	str	x9, [x26, #8]
	mov	x0, x26
	blr	x8
	tbnz	x0, #63, LBB0_15
; %bb.25:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x27]
	str	x8, [x26, #8]
	b	LBB0_15
LBB0_26:
	ldur	x28, [x29, #-104]               ; 8-byte Folded Reload
	b	LBB0_28
LBB0_27:
	add	x28, x20, #4
	mov	x0, x28
	bl	_spin_lock_irqsave
LBB0_28:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_34
; %bb.29:
	mov	x22, #0
	mov	x23, #0
Lloh15:
	adrp	x24, _SNDRV_EMUX_ST_ON@GOTPAGE
Lloh16:
	ldr	x24, [x24, _SNDRV_EMUX_ST_ON@GOTPAGEOFF]
Lloh17:
	adrp	x25, _jiffies@GOTPAGE
Lloh18:
	ldr	x25, [x25, _jiffies@GOTPAGEOFF]
	b	LBB0_31
LBB0_30:                                ;   in Loop: Header=BB0_31 Depth=1
	add	x23, x23, #1
	add	x22, x22, #72
	cmp	x23, w8, sxtw
	b.ge	LBB0_34
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	ldr	x26, [x20, #40]
	add	x21, x26, x22
	ldr	x9, [x21, #8]
	ldr	x10, [x27]
	cmp	x9, x10
	b.ne	LBB0_30
; %bb.32:                               ;   in Loop: Header=BB0_31 Depth=1
	ldr	x9, [x21, #32]
	cmp	x9, x19
	b.ne	LBB0_30
; %bb.33:                               ;   in Loop: Header=BB0_31 Depth=1
	ldr	x8, [x20, #16]
	mov	x0, x21
	blr	x8
	ldr	x8, [x24]
	str	x8, [x21, #8]
	ldr	w8, [x25]
	add	x9, x26, x22
	str	w8, [x9, #28]
	ldr	w8, [x20]
	b	LBB0_30
LBB0_34:
	mov	x0, x28
	bl	_spin_unlock_irqrestore
	b	LBB0_1
LBB0_35:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_EMUX_MAX_MULTI_VOICES,4,2 ; @SNDRV_EMUX_MAX_MULTI_VOICES
	.comm	_SNDRV_EMUX_ST_STANDBY,8,3      ; @SNDRV_EMUX_ST_STANDBY
	.comm	_SNDRV_EMUX_ST_OFF,8,3          ; @SNDRV_EMUX_ST_OFF
	.comm	_SNDRV_EMUX_ST_ON,8,3           ; @SNDRV_EMUX_ST_ON
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_EMUX_FX_COARSE_SAMPLE_START,8,3 ; @EMUX_FX_COARSE_SAMPLE_START
	.comm	_EMUX_FX_SAMPLE_START,8,3       ; @EMUX_FX_SAMPLE_START
	.comm	_SNDRV_EMUX_PORT_MODE_OSS_SYNTH,8,3 ; @SNDRV_EMUX_PORT_MODE_OSS_SYNTH
.subsections_via_symbols
