	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function maya_rec_src_put
_maya_rec_src_put:                      ## @maya_rec_src_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_snd_kcontrol_chip
	movq	%rax, %r15
	movq	(%r14), %rax
	movl	(%rax), %r14d
	movq	%r15, %rdi
	callq	_mutex_lock
	movl	4(%r15), %edi
	movq	_GPIO_MIC_RELAY@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %esi
	shll	%cl, %esi
	testl	%r14d, %r14d
	cmovnel	%esi, %r14d
	movq	_MAYA_MIC_IN@GOTPCREL(%rip), %rbx
	cmoveq	_MAYA_LINE_IN@GOTPCREL(%rip), %rbx
	movl	%r14d, %edx
	callq	_maya_set_gpio_bits
	movl	%eax, %r14d
	movl	(%rbx), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_wm8776_select_input
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GPIO_MIC_RELAY,4,2             ## @GPIO_MIC_RELAY
	.comm	_MAYA_MIC_IN,4,2                ## @MAYA_MIC_IN
	.comm	_MAYA_LINE_IN,4,2               ## @MAYA_LINE_IN
	.no_dead_strip	_maya_rec_src_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function maya_rec_src_put
_maya_rec_src_put:                      ; @maya_rec_src_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	x19, x1
	bl	_snd_kcontrol_chip
	mov	x20, x0
	ldr	x8, [x19]
	ldr	w19, [x8]
	bl	_mutex_lock
Lloh0:
	adrp	x8, _GPIO_MIC_RELAY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GPIO_MIC_RELAY@GOTPAGEOFF]
	ldr	w0, [x20, #4]
Lloh2:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w1, w9, w8
	cmp	w19, #0
	csel	w2, wzr, w1, eq
Lloh3:
	adrp	x8, _MAYA_MIC_IN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAYA_MIC_IN@GOTPAGEOFF]
Lloh5:
	adrp	x9, _MAYA_LINE_IN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MAYA_LINE_IN@GOTPAGEOFF]
	csel	x21, x9, x8, eq
	bl	_maya_set_gpio_bits
	mov	x19, x0
	ldr	w2, [x21]
	mov	x0, x20
	mov	w1, #0
	bl	_wm8776_select_input
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
	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	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GPIO_MIC_RELAY,4,2             ; @GPIO_MIC_RELAY
	.comm	_MAYA_MIC_IN,4,2                ; @MAYA_MIC_IN
	.comm	_MAYA_LINE_IN,4,2               ; @MAYA_LINE_IN
	.no_dead_strip	_maya_rec_src_put
.subsections_via_symbols
