	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm8776_input_vol_put
_wm8776_input_vol_put:                  ## @wm8776_input_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdi), %rbx
	movq	8(%rbx), %r15
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	(%r14), %r8
	movl	(%r8), %edx
	movq	(%r15), %rcx
	movq	_WM8776_ADCLVOL@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	_WM8776_AGMASK@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	movl	(%rcx,%rsi,4), %eax
	andl	%edi, %eax
	movl	$1, %r15d
	cmpl	%eax, %edx
	jne	LBB0_2
## %bb.1:
	movq	_WM8776_ADCRVOL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	andl	(%rcx,%rax,4), %edi
	xorl	%r15d, %r15d
	cmpl	%edi, 4(%r8)
	setne	%r15b
LBB0_2:
	movq	_WM8776_ZCA@GOTPCREL(%rip), %r12
	orl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_wm8776_write_cached
	movq	_WM8776_ADCRVOL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	(%r14), %rax
	movl	(%r12), %edx
	orl	4(%rax), %edx
	movq	%rbx, %rdi
	callq	_wm8776_write_cached
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WM8776_ADCLVOL,8,3             ## @WM8776_ADCLVOL
	.comm	_WM8776_AGMASK,4,2              ## @WM8776_AGMASK
	.comm	_WM8776_ADCRVOL,8,3             ## @WM8776_ADCRVOL
	.comm	_WM8776_ZCA,4,2                 ## @WM8776_ZCA
	.no_dead_strip	_wm8776_input_vol_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm8776_input_vol_put
_wm8776_input_vol_put:                  ; @wm8776_input_vol_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	x20, x1
	ldr	x19, [x0]
	ldr	x21, [x19, #8]
	mov	x0, x19
	bl	_mutex_lock
	ldr	x9, [x20]
Lloh0:
	adrp	x8, _WM8776_ADCLVOL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WM8776_ADCLVOL@GOTPAGEOFF]
	ldr	x10, [x21]
Lloh2:
	ldr	x1, [x8]
	ldr	w12, [x10, x1, lsl #2]
Lloh3:
	adrp	x11, _WM8776_AGMASK@GOTPAGE
Lloh4:
	ldr	x11, [x11, _WM8776_AGMASK@GOTPAGEOFF]
	ldr	w8, [x9]
Lloh5:
	ldr	w11, [x11]
	and	w12, w11, w12
Lloh6:
	adrp	x22, _WM8776_ADCRVOL@GOTPAGE
Lloh7:
	ldr	x22, [x22, _WM8776_ADCRVOL@GOTPAGEOFF]
	cmp	w8, w12
	b.ne	LBB0_2
; %bb.1:
	ldr	w9, [x9, #4]
	ldr	x12, [x22]
	ldr	w10, [x10, x12, lsl #2]
	and	w10, w10, w11
	cmp	w9, w10
	cset	w21, ne
	b	LBB0_3
LBB0_2:
	mov	w21, #1
LBB0_3:
Lloh8:
	adrp	x23, _WM8776_ZCA@GOTPAGE
Lloh9:
	ldr	x23, [x23, _WM8776_ZCA@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_wm8776_write_cached
	ldr	x1, [x22]
	ldr	x8, [x20]
	ldr	w8, [x8, #4]
	ldr	w9, [x23]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_wm8776_write_cached
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	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
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_WM8776_ADCLVOL,8,3             ; @WM8776_ADCLVOL
	.comm	_WM8776_AGMASK,4,2              ; @WM8776_AGMASK
	.comm	_WM8776_ADCRVOL,8,3             ; @WM8776_ADCRVOL
	.comm	_WM8776_ZCA,4,2                 ; @WM8776_ZCA
	.no_dead_strip	_wm8776_input_vol_put
.subsections_via_symbols
