	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mic_fmic_source_put
_mic_fmic_source_put:                   ## @mic_fmic_source_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, %rbx
	movq	(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_CM9780_JACK@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_oxygen_read_ac97
	movl	%eax, %r15d
	movq	(%rbx), %rax
	movq	_CM9780_FMIC2MIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%ebx, %ecx
	orl	%r15d, %ecx
	notl	%ebx
	andl	%r15d, %ebx
	cmpq	$0, (%rax)
	cmovnel	%ecx, %ebx
	cmpl	%r15d, %ebx
	je	LBB0_2
## %bb.1:
	movl	(%r12), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%ebx, %ecx
	callq	_oxygen_write_ac97
LBB0_2:
	xorl	%r12d, %r12d
	cmpl	%r15d, %ebx
	setne	%r12b
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CM9780_JACK,4,2                ## @CM9780_JACK
	.comm	_CM9780_FMIC2MIC,4,2            ## @CM9780_FMIC2MIC
	.no_dead_strip	_mic_fmic_source_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mic_fmic_source_put
_mic_fmic_source_put:                   ; @mic_fmic_source_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	x21, x1
	ldr	x19, [x0]
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x22, _CM9780_JACK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CM9780_JACK@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	mov	w1, #0
	bl	_oxygen_read_ac97
	mov	x20, x0
	ldr	x8, [x21]
	ldr	x8, [x8]
Lloh2:
	adrp	x9, _CM9780_FMIC2MIC@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CM9780_FMIC2MIC@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	orr	w10, w9, w0
	bic	w9, w0, w9
	cmp	x8, #0
	csel	w21, w9, w10, eq
	cmp	w21, w0
	b.eq	LBB0_2
; %bb.1:
	ldr	w2, [x22]
	mov	x0, x19
	mov	w1, #0
	mov	x3, x21
	bl	_oxygen_write_ac97
LBB0_2:
	cmp	w21, w20
	cset	w20, ne
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CM9780_JACK,4,2                ; @CM9780_JACK
	.comm	_CM9780_FMIC2MIC,4,2            ; @CM9780_FMIC2MIC
	.no_dead_strip	_mic_fmic_source_put
.subsections_via_symbols
