	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm8776_input_mux_put
_wm8776_input_mux_put:                  ## @wm8776_input_mux_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, %r13
	movq	8(%rdi), %r14
	movq	8(%r14), %rbx
	movl	(%rdi), %r15d
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	(%rbx), %rax
	movq	_WM8776_ADCMUX@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rcx
	movl	(%rax,%rcx,4), %r12d
	movq	(%r13), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.1:
	movl	%r12d, %r13d
	orl	%r15d, %r13d
	movl	%r15d, %eax
	xorl	$3, %eax
	testl	%eax, %r13d
	je	LBB0_4
## %bb.2:
	movq	%rbx, %rsi
	xorl	$-4, %r15d
	andl	%r15d, %r13d
	xorl	%ecx, %ecx
	cmpl	$1, %eax
	sete	%cl
	movq	%rdx, %r15
	movq	8(%rsi,%rcx,8), %rdx
	movl	4(%r14), %edi
	movq	_SNDRV_CTL_EVENT_MASK_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	$4, %rdx
	callq	_snd_ctl_notify
	movq	%r15, %rdx
	movq	(%rbx), %rax
	movq	(%r15), %rcx
	movl	(%rax,%rcx,4), %r12d
LBB0_4:
	cmpl	%r12d, %r13d
	je	LBB0_6
LBB0_5:
	movq	_OXYGEN_GPIO_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdx, %rbx
	movl	%r13d, %edx
	andl	$1, %edx
	negl	%edx
	movq	_GPIO_DS_INPUT_ROUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	andl	%ecx, %edx
	movq	%r14, %rdi
	callq	_oxygen_write16_masked
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	movl	%r13d, %edx
	callq	_wm8776_write
LBB0_6:
	xorl	%ebx, %ebx
	cmpl	%r12d, %r13d
	setne	%bl
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	notl	%r15d
	andl	%r12d, %r15d
	movl	%r15d, %r13d
	cmpl	%r12d, %r13d
	jne	LBB0_5
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_WM8776_ADCMUX,8,3              ## @WM8776_ADCMUX
	.comm	_SNDRV_CTL_EVENT_MASK_VALUE,4,2 ## @SNDRV_CTL_EVENT_MASK_VALUE
	.comm	_OXYGEN_GPIO_DATA,4,2           ## @OXYGEN_GPIO_DATA
	.comm	_GPIO_DS_INPUT_ROUTE,4,2        ## @GPIO_DS_INPUT_ROUTE
	.no_dead_strip	_wm8776_input_mux_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_mux_put
_wm8776_input_mux_put:                  ; @wm8776_input_mux_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, #8]
	ldr	x23, [x19, #8]
	ldr	w24, [x0]
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x21, _WM8776_ADCMUX@GOTPAGE
Lloh1:
	ldr	x21, [x21, _WM8776_ADCMUX@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x9, [x21]
	ldr	w22, [x8, x9, lsl #2]
	ldr	x8, [x20]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.1:
	orr	w20, w22, w24
	eor	w8, w24, #0x3
	tst	w20, w8
	b.eq	LBB0_3
; %bb.2:
	eor	w9, w24, #0xfffffffc
	cmp	w8, #1
	mov	w8, #8
	mov	w10, #16
	csel	x8, x10, x8, eq
	ldr	x8, [x23, x8]
	and	w20, w20, w9
	ldr	w0, [x19, #4]
Lloh2:
	adrp	x9, _SNDRV_CTL_EVENT_MASK_VALUE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SNDRV_CTL_EVENT_MASK_VALUE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x9]
	add	x2, x8, #4
	bl	_snd_ctl_notify
	ldr	x8, [x23]
	ldr	x9, [x21]
	ldr	w22, [x8, x9, lsl #2]
LBB0_3:
	cmp	w20, w22
	b.eq	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _OXYGEN_GPIO_DATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OXYGEN_GPIO_DATA@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	sbfx	w8, w20, #0, #1
Lloh8:
	adrp	x9, _GPIO_DS_INPUT_ROUTE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _GPIO_DS_INPUT_ROUTE@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x9]
	and	w2, w8, w3
	mov	x0, x19
	bl	_oxygen_write16_masked
	ldr	x1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_wm8776_write
LBB0_5:
	cmp	w20, w22
	cset	w20, ne
	mov	x0, x19
	bl	_mutex_unlock
	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
LBB0_6:
	bic	w20, w22, w24
	cmp	w20, w22
	b.ne	LBB0_4
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_WM8776_ADCMUX,8,3              ; @WM8776_ADCMUX
	.comm	_SNDRV_CTL_EVENT_MASK_VALUE,4,2 ; @SNDRV_CTL_EVENT_MASK_VALUE
	.comm	_OXYGEN_GPIO_DATA,4,2           ; @OXYGEN_GPIO_DATA
	.comm	_GPIO_DS_INPUT_ROUTE,4,2        ; @GPIO_DS_INPUT_ROUTE
	.no_dead_strip	_wm8776_input_mux_put
.subsections_via_symbols
