	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ca0106_set_i2c_capture_source
_ca0106_set_i2c_capture_source:         ## @ca0106_set_i2c_capture_source
	.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
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_ADC_MUX@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	xorl	%edx, %edx
	callq	_snd_ca0106_i2c_write
	movq	(%rbx), %rcx
	movl	%r14d, %r13d
	movq	(%rcx,%r13,8), %rdx
	movl	(%rdx), %eax
	testl	%r15d, %r15d
	jne	LBB0_3
## %bb.1:
	movq	8(%rbx), %rsi
	movq	(%rcx,%rsi,8), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.2:
	movl	4(%rdx), %eax
	cmpl	4(%rcx), %eax
	jne	LBB0_6
	jmp	LBB0_7
LBB0_3:
	movq	_ADC_ATTEN_ADCL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movzbl	%al, %edx
	movq	%rbx, %rdi
	callq	_snd_ca0106_i2c_write
	movq	(%rbx), %rcx
	movq	(%rcx,%r13,8), %rax
	movl	4(%rax), %eax
	testl	%r15d, %r15d
	jne	LBB0_6
## %bb.4:
	movq	8(%rbx), %rdx
	movq	(%rcx,%rdx,8), %rcx
	cmpl	4(%rcx), %eax
	je	LBB0_7
LBB0_6:
	movq	_ADC_ATTEN_ADCR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movzbl	%al, %edx
	movq	%rbx, %rdi
	callq	_snd_ca0106_i2c_write
LBB0_7:
	movl	$1, %edx
	movl	%r14d, %ecx
	shll	%cl, %edx
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_snd_ca0106_i2c_write
	movq	%r13, 8(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADC_MUX,4,2                    ## @ADC_MUX
	.comm	_ADC_ATTEN_ADCL,4,2             ## @ADC_ATTEN_ADCL
	.comm	_ADC_ATTEN_ADCR,4,2             ## @ADC_ATTEN_ADCR
	.no_dead_strip	_ca0106_set_i2c_capture_source
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ca0106_set_i2c_capture_source
_ca0106_set_i2c_capture_source:         ; @ca0106_set_i2c_capture_source
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _ADC_MUX@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ADC_MUX@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w2, #0
	bl	_snd_ca0106_i2c_write
	ldr	x9, [x19]
	mov	w23, w20
	ldr	x8, [x9, w20, uxtw #3]
	ldr	w10, [x8]
	cbnz	w21, LBB0_3
; %bb.1:
	ldr	x11, [x19, #8]
	ldr	x9, [x9, x11, lsl #3]
	ldr	w11, [x9]
	cmp	w10, w11
	b.ne	LBB0_3
; %bb.2:
	ldr	w8, [x8, #4]
	b	LBB0_5
LBB0_3:
Lloh2:
	adrp	x8, _ADC_ATTEN_ADCL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ADC_ATTEN_ADCL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	and	w2, w10, #0xff
	mov	x0, x19
	bl	_snd_ca0106_i2c_write
	ldr	x9, [x19]
	ldr	x8, [x9, x23, lsl #3]
	ldr	w8, [x8, #4]
	cbnz	w21, LBB0_6
; %bb.4:
	ldr	x10, [x19, #8]
	ldr	x9, [x9, x10, lsl #3]
LBB0_5:
	ldr	w9, [x9, #4]
	cmp	w8, w9
	b.eq	LBB0_7
LBB0_6:
Lloh5:
	adrp	x9, _ADC_ATTEN_ADCR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ADC_ATTEN_ADCR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x9]
	and	w2, w8, #0xff
	mov	x0, x19
	bl	_snd_ca0106_i2c_write
LBB0_7:
	mov	w8, #1
	lsl	w2, w8, w20
	ldr	w1, [x22]
	mov	x0, x19
	bl	_snd_ca0106_i2c_write
	str	x23, [x19, #8]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ADC_MUX,4,2                    ; @ADC_MUX
	.comm	_ADC_ATTEN_ADCL,4,2             ; @ADC_ATTEN_ADCL
	.comm	_ADC_ATTEN_ADCR,4,2             ; @ADC_ATTEN_ADCR
	.no_dead_strip	_ca0106_set_i2c_capture_source
.subsections_via_symbols
