	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm_adc_vol_put
_wm_adc_vol_put:                        ## @wm_adc_vol_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
	callq	_snd_kcontrol_chip
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_mutex_lock
	movq	(%r14), %rax
	movzwl	(%rax), %eax
	movq	_ADC_MIN@GOTPCREL(%rip), %rcx
	movzwl	(%rcx), %ebx
	addw	%ax, %bx
	xorl	%ecx, %ecx
	testw	%ax, %ax
	cmovel	%ecx, %ebx
	movq	_WM_ADC_ATTEN_L@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_wm_get
	movzbl	%al, %eax
	movzwl	%bx, %edx
	movl	$0, %r15d
	cmpl	%edx, %eax
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_wm_put
	movl	$1, %r15d
LBB0_2:
	movq	(%r14), %rax
	movzwl	2(%rax), %eax
	movq	_ADC_MIN@GOTPCREL(%rip), %rcx
	movzwl	(%rcx), %ebx
	addw	%ax, %bx
	testw	%ax, %ax
	movl	$0, %eax
	cmovel	%eax, %ebx
	movq	_WM_ADC_ATTEN_L@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	incl	%r14d
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_wm_get
	movzbl	%al, %eax
	movzwl	%bx, %edx
	cmpl	%edx, %eax
	je	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_wm_put
	movl	$1, %r15d
LBB0_4:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADC_MIN,2,1                    ## @ADC_MIN
	.comm	_WM_ADC_ATTEN_L,4,2             ## @WM_ADC_ATTEN_L
	.no_dead_strip	_wm_adc_vol_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm_adc_vol_put
_wm_adc_vol_put:                        ; @wm_adc_vol_put
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	bl	_snd_kcontrol_chip
	mov	x19, x0
	bl	_mutex_lock
	ldr	x8, [x20]
	ldrh	w8, [x8]
Lloh0:
	adrp	x23, _ADC_MIN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ADC_MIN@GOTPAGEOFF]
	ldrh	w9, [x23]
	add	w9, w9, w8
	cmp	w8, #0
	csel	w25, wzr, w9, eq
Lloh2:
	adrp	x24, _WM_ADC_ATTEN_L@GOTPAGE
Lloh3:
	ldr	x24, [x24, _WM_ADC_ATTEN_L@GOTPAGEOFF]
	ldr	w22, [x24]
	mov	x0, x19
	mov	x1, x22
	bl	_wm_get
	mov	w21, #0
	and	w8, w0, #0xff
	cmp	w8, w25, uxth
	b.eq	LBB0_2
; %bb.1:
	and	w2, w25, #0xffff
	mov	x0, x19
	mov	x1, x22
	bl	_wm_put
	mov	w21, #1
LBB0_2:
	ldr	x8, [x20]
	ldrh	w8, [x8, #2]
	ldrh	w9, [x23]
	add	w9, w9, w8
	cmp	w8, #0
	csel	w22, wzr, w9, eq
	ldr	w8, [x24]
	add	w20, w8, #1
	mov	x0, x19
	mov	x1, x20
	bl	_wm_get
	and	w8, w0, #0xff
	cmp	w8, w22, uxth
	b.eq	LBB0_4
; %bb.3:
	and	w2, w22, #0xffff
	mov	x0, x19
	mov	x1, x20
	bl	_wm_put
	mov	w21, #1
LBB0_4:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ADC_MIN,2,1                    ; @ADC_MIN
	.comm	_WM_ADC_ATTEN_L,4,2             ; @WM_ADC_ATTEN_L
	.no_dead_strip	_wm_adc_vol_put
.subsections_via_symbols
