	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm8776_level_control_put
_wm8776_level_control_put:              ## @wm8776_level_control_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), %rax
	cmpl	$3, (%rax)
	jl	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_13
LBB0_2:
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	8(%rdi), %r12
	movq	8(%r12), %r13
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	(%rbx), %rcx
	movl	(%rcx), %eax
	xorl	%r14d, %r14d
	cmpl	(%r15), %eax
	setne	-41(%rbp)                       ## 1-byte Folded Spill
	je	LBB0_12
## %bb.3:
	movl	%eax, (%r15)
	movq	(%r13), %rdi
	movq	_WM8776_ALCCTRL1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	(%rdi,%rsi,4), %edx
	movq	_WM8776_ALCCTRL2@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	(%rdi,%rax,4), %r15d
	movl	(%rcx), %ecx
	cmpl	$1, %ecx
	je	LBB0_6
## %bb.4:
	cmpl	$2, %ecx
	jne	LBB0_5
## %bb.7:
	movq	_WM8776_LCSEL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %edx
	movq	_WM8776_LCSEL_ALC_STEREO@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r12, %rdi
	callq	_wm8776_write_cached
	movq	(%rbx), %rsi
	movq	_WM8776_LCEN@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_wm8776_write_cached
	movq	_LC_CONTROL_ALC@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_WM8776_LCSEL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %edx
	movq	_WM8776_LCSEL_LIMITER@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r12, %rdi
	callq	_wm8776_write_cached
	movq	(%rbx), %rsi
	movq	_WM8776_LCEN@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_wm8776_write_cached
	movq	_LC_CONTROL_LIMITER@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %r15d
	jmp	LBB0_9
LBB0_5:
	movq	_WM8776_LCEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %r15d
	movq	%r12, %rdi
	movq	%rax, %rsi
	movl	%r15d, %edx
	callq	_wm8776_write_cached
	xorl	%r15d, %r15d
LBB0_9:
	movq	8(%r13), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_activate_control
	incq	%rbx
	movq	8(%r13), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	cmpq	%rax, %rbx
	jb	LBB0_11
LBB0_12:
	movb	-41(%rbp), %al                  ## 1-byte Reload
	movb	%al, %r14b
	movq	%r12, %rdi
	callq	_mutex_unlock
LBB0_13:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_WM8776_ALCCTRL1,8,3            ## @WM8776_ALCCTRL1
	.comm	_WM8776_ALCCTRL2,8,3            ## @WM8776_ALCCTRL2
	.comm	_WM8776_LCEN,4,2                ## @WM8776_LCEN
	.comm	_WM8776_LCSEL_MASK,4,2          ## @WM8776_LCSEL_MASK
	.comm	_WM8776_LCSEL_LIMITER,4,2       ## @WM8776_LCSEL_LIMITER
	.comm	_LC_CONTROL_LIMITER,4,2         ## @LC_CONTROL_LIMITER
	.comm	_WM8776_LCSEL_ALC_STEREO,4,2    ## @WM8776_LCSEL_ALC_STEREO
	.comm	_LC_CONTROL_ALC,4,2             ## @LC_CONTROL_ALC
	.no_dead_strip	_wm8776_level_control_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm8776_level_control_put
_wm8776_level_control_put:              ; @wm8776_level_control_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
	ldr	x8, [x1]
	ldr	w8, [x8]
	cmp	w8, #3
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_13
LBB0_2:
	mov	x20, x1
	mov	x21, x0
	ldr	x19, [x0, #8]
	ldr	x22, [x19, #8]
	mov	x0, x19
	bl	_mutex_lock
	ldr	x9, [x20]
	ldr	w8, [x9]
	ldr	w10, [x21]
	cmp	w8, w10
	cset	w20, ne
	b.eq	LBB0_12
; %bb.3:
	str	w8, [x21]
Lloh3:
	adrp	x8, _WM8776_ALCCTRL1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WM8776_ALCCTRL1@GOTPAGEOFF]
	ldr	x11, [x22]
Lloh5:
	ldr	x1, [x8]
	ldr	w10, [x11, x1, lsl #2]
Lloh6:
	adrp	x23, _WM8776_ALCCTRL2@GOTPAGE
Lloh7:
	ldr	x23, [x23, _WM8776_ALCCTRL2@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	w21, [x11, x8, lsl #2]
	ldr	w9, [x9]
	cmp	w9, #1
	b.eq	LBB0_6
; %bb.4:
	cmp	w9, #2
	b.ne	LBB0_8
; %bb.5:
Lloh8:
	adrp	x8, _WM8776_LCSEL_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WM8776_LCSEL_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	bic	w8, w10, w8
Lloh11:
	adrp	x9, _WM8776_LCSEL_ALC_STEREO@GOTPAGE
Lloh12:
	ldr	x9, [x9, _WM8776_LCSEL_ALC_STEREO@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_wm8776_write_cached
	ldr	x1, [x23]
Lloh14:
	adrp	x8, _WM8776_LCEN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _WM8776_LCEN@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	orr	w2, w8, w21
	mov	x0, x19
	bl	_wm8776_write_cached
Lloh17:
	adrp	x8, _LC_CONTROL_ALC@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LC_CONTROL_ALC@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh19:
	adrp	x8, _WM8776_LCSEL_MASK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _WM8776_LCSEL_MASK@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	bic	w8, w10, w8
Lloh22:
	adrp	x9, _WM8776_LCSEL_LIMITER@GOTPAGE
Lloh23:
	ldr	x9, [x9, _WM8776_LCSEL_LIMITER@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_wm8776_write_cached
	ldr	x1, [x23]
Lloh25:
	adrp	x8, _WM8776_LCEN@GOTPAGE
Lloh26:
	ldr	x8, [x8, _WM8776_LCEN@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	orr	w2, w8, w21
	mov	x0, x19
	bl	_wm8776_write_cached
Lloh28:
	adrp	x8, _LC_CONTROL_LIMITER@GOTPAGE
Lloh29:
	ldr	x8, [x8, _LC_CONTROL_LIMITER@GOTPAGEOFF]
LBB0_7:
	ldr	w21, [x8]
	b	LBB0_9
LBB0_8:
Lloh30:
	adrp	x9, _WM8776_LCEN@GOTPAGE
Lloh31:
	ldr	x9, [x9, _WM8776_LCEN@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	bic	w2, w21, w9
	mov	x0, x19
	mov	x1, x8
	bl	_wm8776_write_cached
	mov	w21, #0
LBB0_9:
	ldr	x0, [x22, #8]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_12
; %bb.10:
	mov	x23, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	ldr	w1, [x8, x23, lsl #2]
	mov	x0, x19
	mov	x2, x21
	bl	_activate_control
	add	x23, x23, #1
	ldr	x0, [x22, #8]
	bl	_ARRAY_SIZE
	cmp	x23, w0, uxtw
	b.lo	LBB0_11
LBB0_12:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_13:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_WM8776_ALCCTRL1,8,3            ; @WM8776_ALCCTRL1
	.comm	_WM8776_ALCCTRL2,8,3            ; @WM8776_ALCCTRL2
	.comm	_WM8776_LCEN,4,2                ; @WM8776_LCEN
	.comm	_WM8776_LCSEL_MASK,4,2          ; @WM8776_LCSEL_MASK
	.comm	_WM8776_LCSEL_LIMITER,4,2       ; @WM8776_LCSEL_LIMITER
	.comm	_LC_CONTROL_LIMITER,4,2         ; @LC_CONTROL_LIMITER
	.comm	_WM8776_LCSEL_ALC_STEREO,4,2    ; @WM8776_LCSEL_ALC_STEREO
	.comm	_LC_CONTROL_ALC,4,2             ; @LC_CONTROL_ALC
	.no_dead_strip	_wm8776_level_control_put
.subsections_via_symbols
