	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_audigy_i2c_capture_source_put
_snd_audigy_i2c_capture_source_put:     ## @snd_audigy_i2c_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	%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, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r12
	movq	(%rbx), %rax
	movl	(%rax), %r14d
	cmpq	$2, %r14
	jb	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_2:
	xorl	%eax, %eax
	cmpl	%r14d, (%r12)
	je	LBB0_8
## %bb.3:
	movq	_ADC_MUX@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_snd_emu10k1_i2c_write
	movq	%r12, %r15
	addq	$16, %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_A_IOCFG@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	24(%r12), %rdi
	callq	_inl
                                        ## kill: def $eax killed $eax def $rax
	xorl	%ecx, %ecx
	testl	%r14d, %r14d
	sete	%cl
	andl	$-5, %eax
	leal	(%rax,%rcx,4), %edi
	movq	(%rbx), %rsi
	addq	24(%r12), %rsi
	callq	_outl
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	8(%r12), %rdx
	movq	(%rdx,%r14,8), %rax
	movl	(%rax), %ecx
	movl	(%r12), %esi
	movq	(%rdx,%rsi,8), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_5
## %bb.4:
	movq	_ADC_ATTEN_ADCL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	%cl, %edx
	movq	%r12, %rdi
	callq	_snd_emu10k1_i2c_write
	movq	8(%r12), %rcx
	movq	(%rcx,%r14,8), %rax
	movl	(%r12), %edx
	movq	(%rcx,%rdx,8), %rdx
LBB0_5:
	movl	4(%rax), %eax
	cmpl	4(%rdx), %eax
	je	LBB0_7
## %bb.6:
	movq	_ADC_ATTEN_ADCR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movzbl	%al, %edx
	movq	%r12, %rdi
	callq	_snd_emu10k1_i2c_write
LBB0_7:
	movl	$4, %edx
	movl	%r14d, %ecx
	shll	%cl, %edx
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_snd_emu10k1_i2c_write
	movl	%r14d, (%r12)
	movl	$1, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ADC_MUX,4,2                    ## @ADC_MUX
	.comm	_A_IOCFG,8,3                    ## @A_IOCFG
	.comm	_ADC_ATTEN_ADCL,4,2             ## @ADC_ATTEN_ADCL
	.comm	_ADC_ATTEN_ADCR,4,2             ## @ADC_ATTEN_ADCR
	.no_dead_strip	_snd_audigy_i2c_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 snd_audigy_i2c_capture_source_put
_snd_audigy_i2c_capture_source_put:     ; @snd_audigy_i2c_capture_source_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
	bl	_snd_kcontrol_chip
	ldr	x8, [x20]
	ldr	w21, [x8]
	cmp	w21, #2
	b.lo	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
	ldr	w8, [x0]
	cmp	w8, w21
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_9
LBB0_4:
Lloh3:
	adrp	x22, _ADC_MUX@GOTPAGE
Lloh4:
	ldr	x22, [x22, _ADC_MUX@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #0
	bl	_snd_emu10k1_i2c_write
	add	x20, x19, #16
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #24]
Lloh5:
	adrp	x23, _A_IOCFG@GOTPAGE
Lloh6:
	ldr	x23, [x23, _A_IOCFG@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_inl
	cmp	w21, #0
	cset	w8, eq
	bfi	w0, w8, #2, #1
	ldr	x8, [x19, #24]
	ldr	x9, [x23]
	add	x1, x9, x8
	bl	_outl
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	x9, [x19, #8]
	ldr	x8, [x9, x21, lsl #3]
	ldr	w10, [x8]
	ldr	w11, [x19]
	ldr	x9, [x9, x11, lsl #3]
	ldr	w11, [x9]
	cmp	w10, w11
	b.eq	LBB0_6
; %bb.5:
Lloh7:
	adrp	x8, _ADC_ATTEN_ADCL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ADC_ATTEN_ADCL@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	and	w2, w10, #0xff
	mov	x0, x19
	bl	_snd_emu10k1_i2c_write
	ldr	x9, [x19, #8]
	ldr	x8, [x9, x21, lsl #3]
	ldr	w10, [x19]
	ldr	x9, [x9, x10, lsl #3]
LBB0_6:
	ldr	w8, [x8, #4]
	ldr	w9, [x9, #4]
	cmp	w8, w9
	b.eq	LBB0_8
; %bb.7:
Lloh10:
	adrp	x9, _ADC_ATTEN_ADCR@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ADC_ATTEN_ADCR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x9]
	and	w2, w8, #0xff
	mov	x0, x19
	bl	_snd_emu10k1_i2c_write
LBB0_8:
	mov	w8, #4
	lsl	w2, w8, w21
	ldr	w1, [x22]
	mov	x0, x19
	bl	_snd_emu10k1_i2c_write
	str	w21, [x19]
	mov	w0, #1
LBB0_9:
	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 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	_ADC_MUX,4,2                    ; @ADC_MUX
	.comm	_A_IOCFG,8,3                    ; @A_IOCFG
	.comm	_ADC_ATTEN_ADCL,4,2             ; @ADC_ATTEN_ADCL
	.comm	_ADC_ATTEN_ADCR,4,2             ; @ADC_ATTEN_ADCR
	.no_dead_strip	_snd_audigy_i2c_capture_source_put
.subsections_via_symbols
