	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_emux_update_channel        ## -- Begin function snd_emux_update_channel
	.p2align	4, 0x90
_snd_emux_update_channel:               ## @snd_emux_update_channel
	.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
	testl	%edx, %edx
	je	LBB0_11
## %bb.1:
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	(%rdi), %r13
	testq	%r13, %r13
	je	LBB0_2
## %bb.3:
	xorl	%edi, %edi
	cmpl	$0, 16(%r13)
	sete	%dil
	jmp	LBB0_4
LBB0_2:
	movl	$1, %edi
LBB0_4:
	callq	_snd_BUG_ON
	testq	%rax, %rax
	je	LBB0_5
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	4(%r13), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movl	(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.6:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%r12
	movslq	%eax, %rcx
	addq	$8, %rbx
	cmpq	%rcx, %r12
	jge	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rsi
	cmpq	%r15, (%rsi,%rbx)
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	addq	%rbx, %rsi
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_update_voice
	movl	(%r13), %eax
	jmp	LBB0_9
LBB0_10:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_emux_update_channel        ; -- Begin function snd_emux_update_channel
	.p2align	2
_snd_emux_update_channel:               ; @snd_emux_update_channel
	.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
	cbz	w2, LBB0_3
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	ldr	x21, [x0]
	cbz	x21, LBB0_4
; %bb.2:
	ldr	w8, [x21, #16]
	cmp	w8, #0
	cset	w0, eq
	bl	_snd_BUG_ON
	cbz	x0, LBB0_5
LBB0_3:
	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_4:
	mov	w0, #1
	bl	_snd_BUG_ON
	cbnz	x0, LBB0_3
LBB0_5:
	add	x22, x21, #4
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.6:
	mov	x23, #0
	mov	x24, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x24, x24, #1
	add	x23, x23, #8
	cmp	x24, w8, sxtw
	b.ge	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21, #8]
	add	x1, x9, x23
	ldr	x9, [x1]
	cmp	x9, x20
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	mov	x2, x19
	bl	_update_voice
	ldr	w8, [x21]
	b	LBB0_7
LBB0_10:
	mov	x0, x22
	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
	b	_spin_unlock_irqrestore
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
