	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_emu10k1_send_volume_put
_snd_emu10k1_send_volume_put:           ## @snd_emu10k1_send_volume_put
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	callq	_snd_kcontrol_chip
	movq	%rax, %r15
	movq	16(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	8(%rbx), %rsi
	movq	%r14, %rdi
	callq	_snd_ctl_get_ioffidx
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	cmpq	$0, 8(%r15)
	movq	%rax, %r12
	sete	%r13b
	setne	%bl
	leal	(%rbx,%rbx,2), %r14d
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	callq	_spin_lock_irqsave
	leal	12(,%r14,4), %r11d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r14
	shlq	$4, %r12
	leaq	(%r15,%r12), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	(%r15,%r12), %r9
	xorl	$3, %r13d
	leal	3(,%rbx,4), %edi
	leaq	-1(%r11), %r8
	xorl	%esi, %esi
	movb	$1, %r10b
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r14,%rsi,4), %ebx
	movl	%edi, %edx
	movl	%esi, %eax
	movl	%r13d, %ecx
	shrl	%cl, %eax
	andl	%esi, %edx
	movq	(%r9,%rax,8), %rcx
	cmpl	%ebx, (%rcx,%rdx,4)
	jne	LBB0_12
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	incq	%rsi
	cmpq	%rsi, %r11
	jne	LBB0_1
	jmp	LBB0_3
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%edx, %eax
	movl	%ebx, (%rcx,%rax,4)
	leaq	1(%rsi), %rax
	movl	$1, %r12d
	xorl	%r10d, %r10d
	cmpq	%rsi, %r8
	movq	%rax, %rsi
	jne	LBB0_1
	jmp	LBB0_4
LBB0_3:
	xorl	%ebx, %ebx
	testb	$1, %r10b
	jne	LBB0_11
LBB0_4:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	8(%r15,%rdx), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movq	(%rax), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.6:
	cmpq	$0, 8(%rax)
	movl	(%rcx), %esi
	je	LBB0_7
## %bb.8:
	leaq	(%r15,%rdx), %r14
	addq	$8, %r14
	movq	8(%r9), %rdx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_update_emu10k1_send_volume
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r9
	addq	$16, %r9
	jmp	LBB0_9
LBB0_7:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_9:
	movq	(%r9), %rdx
	movq	%rbx, %rdi
	callq	_update_emu10k1_send_volume
LBB0_10:
	movl	%r12d, %ebx
LBB0_11:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_snd_emu10k1_send_volume_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_emu10k1_send_volume_put
_snd_emu10k1_send_volume_put:           ; @snd_emu10k1_send_volume_put
	.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
	mov	x22, x1
	mov	x20, x0
	bl	_snd_kcontrol_chip
	mov	x19, x0
	ldr	x23, [x0, #16]
	add	x1, x22, #8
	mov	x0, x20
	bl	_snd_ctl_get_ioffidx
	mov	x21, x0
	ldr	x24, [x19, #8]
	mov	x0, x19
	bl	_spin_lock_irqsave
	mov	x9, #0
	mov	w20, #0
	cmp	x24, #0
	mov	w8, #8
	mov	w10, #4
	csel	w13, w10, w8, eq
	add	w10, w13, w13, lsl #1
	ldr	x11, [x22]
	add	x22, x23, x21, lsl #4
	ldr	x8, [x22]
	mov	w12, #2
	cinc	w12, w12, ne
	sub	w13, w13, #1
	sub	x14, x10, #1
	mov	w15, #1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x16, x9, #2
	ldrb	w16, [x11, x16]
	lsr	w17, w9, w12
	ldr	x17, [x8, w17, uxtw #3]
	and	w0, w13, w9
	ldr	w1, [x17, w0, uxtw #2]
	cmp	w1, w16
	b.ne	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x9, x9, #1
	cmp	x10, x9
	b.ne	LBB0_1
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	w15, #0
	str	w16, [x17, w0, uxtw #2]
	add	x16, x9, #1
	mov	w20, #1
	cmp	x14, x9
	mov	x9, x16
	b.ne	LBB0_1
	b	LBB0_6
LBB0_4:
	tbz	w15, #0, LBB0_6
; %bb.5:
	mov	w20, #0
	b	LBB0_11
LBB0_6:
	add	x21, x23, x21, lsl #4
	ldr	x9, [x21, #8]!
	cbz	x9, LBB0_11
; %bb.7:
	ldr	x9, [x9]
	ldr	x10, [x9]
	cbz	x10, LBB0_11
; %bb.8:
	ldr	x9, [x9, #8]
	ldr	w1, [x10]
	cbz	x9, LBB0_10
; %bb.9:
	ldr	x2, [x8, #8]
	mov	x0, x19
	bl	_update_emu10k1_send_volume
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	ldr	w1, [x8]
	ldr	x8, [x22]
	add	x8, x8, #16
LBB0_10:
	ldr	x2, [x8]
	mov	x0, x19
	bl	_update_emu10k1_send_volume
LBB0_11:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, 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
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_snd_emu10k1_send_volume_put
.subsections_via_symbols
