	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_emu10k1_attn_put
_snd_emu10k1_attn_put:                  ## @snd_emu10k1_attn_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r15
	movq	8(%rax), %r13
	leaq	8(%r14), %rsi
	movq	%rbx, %rdi
	callq	_snd_ctl_get_ioffidx
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	(%r14), %rsi
	shlq	$4, %r12
	movq	(%r13,%r12), %rdx
	movzwl	(%rsi), %ecx
	xorl	%edi, %edi
	cmpl	%ecx, (%rdx)
	je	LBB0_2
## %bb.1:
	movl	%ecx, (%rdx)
	movl	$1, %edi
LBB0_2:
	movzwl	4(%rsi), %eax
	cmpl	%eax, 4(%rdx)
	je	LBB0_4
## %bb.3:
	movl	%eax, 4(%rdx)
	movl	$1, %edi
LBB0_4:
	movzwl	8(%rsi), %esi
	cmpl	%esi, 8(%rdx)
	jne	LBB0_5
## %bb.11:
	testl	%edi, %edi
	jne	LBB0_6
## %bb.12:
	xorl	%r14d, %r14d
	jmp	LBB0_13
LBB0_5:
	movl	%esi, 8(%rdx)
LBB0_6:
	movq	8(%r13,%r12), %rdx
	movl	$1, %r14d
	testq	%rdx, %rdx
	je	LBB0_13
## %bb.7:
	movq	(%rdx), %rsi
	movq	(%rsi), %rdx
	testq	%rdx, %rdx
	je	LBB0_13
## %bb.8:
	cmpq	$0, 8(%rsi)
	movq	_VTFT_VOLUMETARGET@GOTPCREL(%rip), %rdi
	movl	(%rdi), %esi
	movl	(%rdx), %edx
	je	LBB0_10
## %bb.9:
	leaq	(%r12,%r13), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	leaq	(%r12,%r13), %rbx
	addq	$8, %rbx
	movq	%rdi, %r12
	movq	%r15, %rdi
	movl	%eax, %ecx
	callq	_snd_emu10k1_ptr_write
	movl	(%r12), %esi
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	8(%rax), %ecx
LBB0_10:
	movq	%r15, %rdi
	callq	_snd_emu10k1_ptr_write
LBB0_13:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VTFT_VOLUMETARGET,4,2          ## @VTFT_VOLUMETARGET
	.no_dead_strip	_snd_emu10k1_attn_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_attn_put
_snd_emu10k1_attn_put:                  ; @snd_emu10k1_attn_put
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x20, x0
	bl	_snd_kcontrol_chip
	mov	x19, x0
	ldr	x22, [x0, #8]
	add	x1, x21, #8
	mov	x0, x20
	bl	_snd_ctl_get_ioffidx
	mov	x20, x0
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x10, [x21]
	add	x21, x22, x20, lsl #4
	ldr	x9, [x21]
	ldrh	w3, [x10]
	ldr	w8, [x9]
	cmp	w8, w3
	b.ne	LBB0_2
; %bb.1:
	mov	w11, #0
	b	LBB0_3
LBB0_2:
	str	w3, [x9]
	mov	w11, #1
LBB0_3:
	ldrh	w8, [x10, #4]
	ldr	w12, [x9, #4]
	cmp	w12, w8
	b.eq	LBB0_5
; %bb.4:
	str	w8, [x9, #4]
	mov	w11, #1
LBB0_5:
	ldrh	w10, [x10, #8]
	ldr	w12, [x9, #8]
	cmp	w12, w10
	b.ne	LBB0_8
; %bb.6:
	cbnz	w11, LBB0_9
; %bb.7:
	mov	w20, #0
	b	LBB0_15
LBB0_8:
	str	w10, [x9, #8]
LBB0_9:
	add	x20, x22, x20, lsl #4
	ldr	x9, [x20, #8]!
	cbz	x9, LBB0_14
; %bb.10:
	ldr	x10, [x9]
	ldr	x9, [x10]
	cbz	x9, LBB0_14
; %bb.11:
	ldr	x10, [x10, #8]
Lloh0:
	adrp	x22, _VTFT_VOLUMETARGET@GOTPAGE
Lloh1:
	ldr	x22, [x22, _VTFT_VOLUMETARGET@GOTPAGEOFF]
	ldr	w1, [x22]
	ldr	w2, [x9]
	cbz	x10, LBB0_13
; %bb.12:
	mov	x0, x19
	mov	x3, x8
	bl	_snd_emu10k1_ptr_write
	ldr	w1, [x22]
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	ldr	w2, [x8]
	ldr	x8, [x21]
	ldr	w3, [x8, #8]
LBB0_13:
	mov	x0, x19
	bl	_snd_emu10k1_ptr_write
LBB0_14:
	mov	w20, #1
LBB0_15:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_VTFT_VOLUMETARGET,4,2          ; @VTFT_VOLUMETARGET
	.no_dead_strip	_snd_emu10k1_attn_put
.subsections_via_symbols
