	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tas_snd_capture_source_put
_tas_snd_capture_source_put:            ## @tas_snd_capture_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r15
	movq	(%rbx), %rax
	cmpl	$2, (%rax)
	jl	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_2:
	movq	%r15, %r14
	addq	$4, %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	(%r15), %eax
	movq	_TAS_ACR_INPUT_B@GOTPCREL(%rip), %rsi
	movq	_TAS_ACR_B_MONAUREAL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ecx
	orl	(%rsi), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, (%r15)
	movq	(%rbx), %rdi
	cmpl	$0, (%rdi)
	je	LBB0_4
## %bb.3:
	orl	(%rsi), %ecx
	orl	(%rdx), %ecx
	movq	_TAS_ACR_B_MON_SEL_RIGHT@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, (%r15)
LBB0_4:
	cmpl	%ecx, %eax
	jne	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_6:
	cmpq	$0, 8(%r15)
	je	LBB0_8
## %bb.7:
	movq	_TAS_REG_ACR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	movq	%r15, %rcx
	callq	_tas_write_reg
LBB0_8:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	$1, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TAS_ACR_INPUT_B,4,2            ## @TAS_ACR_INPUT_B
	.comm	_TAS_ACR_B_MONAUREAL,4,2        ## @TAS_ACR_B_MONAUREAL
	.comm	_TAS_ACR_B_MON_SEL_RIGHT,4,2    ## @TAS_ACR_B_MON_SEL_RIGHT
	.comm	_TAS_REG_ACR,4,2                ## @TAS_REG_ACR
	.no_dead_strip	_tas_snd_capture_source_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tas_snd_capture_source_put
_tas_snd_capture_source_put:            ; @tas_snd_capture_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
	bl	_snd_kcontrol_chip
	ldr	x8, [x21]
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_2:
	mov	x19, x0
	add	x20, x0, #4
	mov	x0, x20
	bl	_mutex_lock
	ldr	w8, [x19]
Lloh3:
	adrp	x11, _TAS_ACR_INPUT_B@GOTPAGE
Lloh4:
	ldr	x11, [x11, _TAS_ACR_INPUT_B@GOTPAGEOFF]
	ldr	w9, [x11]
Lloh5:
	adrp	x10, _TAS_ACR_B_MONAUREAL@GOTPAGE
Lloh6:
	ldr	x10, [x10, _TAS_ACR_B_MONAUREAL@GOTPAGEOFF]
	ldr	w12, [x10]
	orr	w9, w12, w9
	bic	w9, w8, w9
	str	w9, [x19]
	ldr	x12, [x21]
	ldr	w12, [x12]
	cbz	w12, LBB0_4
; %bb.3:
	ldr	w11, [x11]
Lloh7:
	adrp	x12, _TAS_ACR_B_MON_SEL_RIGHT@GOTPAGE
Lloh8:
	ldr	x12, [x12, _TAS_ACR_B_MON_SEL_RIGHT@GOTPAGEOFF]
	ldr	w10, [x10]
Lloh9:
	ldr	w12, [x12]
	orr	w9, w11, w9
	orr	w9, w9, w10
	orr	w9, w9, w12
	str	w9, [x19]
LBB0_4:
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_mutex_unlock
	mov	w0, #0
	b	LBB0_9
LBB0_6:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_8
; %bb.7:
Lloh10:
	adrp	x8, _TAS_REG_ACR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TAS_REG_ACR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	mov	x3, x19
	bl	_tas_write_reg
LBB0_8:
	mov	x0, x20
	bl	_mutex_unlock
	mov	w0, #1
LBB0_9:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TAS_ACR_INPUT_B,4,2            ; @TAS_ACR_INPUT_B
	.comm	_TAS_ACR_B_MONAUREAL,4,2        ; @TAS_ACR_B_MONAUREAL
	.comm	_TAS_ACR_B_MON_SEL_RIGHT,4,2    ; @TAS_ACR_B_MON_SEL_RIGHT
	.comm	_TAS_REG_ACR,4,2                ; @TAS_REG_ACR
	.no_dead_strip	_tas_snd_capture_source_put
.subsections_via_symbols
