	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_audigy_i2c_volume_put
_snd_audigy_i2c_volume_put:             ## @snd_audigy_i2c_volume_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, %r15
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	movl	(%rbx), %r13d
	cmpq	$2, %r13
	jb	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_2:
	movq	(%r15), %rcx
	movl	(%rcx), %r12d
	xorl	%ebx, %ebx
	cmpl	$255, %r12d
	ja	LBB0_13
## %bb.3:
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	(%rax,%r13,8), %rax
	xorl	%ebx, %ebx
	cmpl	%r12d, (%rax)
	jne	LBB0_5
## %bb.4:
	xorl	%edx, %edx
	jmp	LBB0_8
LBB0_5:
	cmpl	%r13d, 8(%r14)
	jne	LBB0_7
## %bb.6:
	movq	_ADC_ATTEN_ADCL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_snd_emu10k1_i2c_write
	movq	(%r14), %rax
	movq	(%rax,%r13,8), %rax
	movq	(%r15), %rcx
LBB0_7:
	movl	%r12d, (%rax)
	movl	$1, %edx
LBB0_8:
	movl	4(%rcx), %r15d
	cmpl	$255, %r15d
	ja	LBB0_13
## %bb.9:
	movl	%edx, %ebx
	cmpl	%r15d, 4(%rax)
	je	LBB0_13
## %bb.10:
	cmpl	%r13d, 8(%r14)
	jne	LBB0_12
## %bb.11:
	movq	_ADC_ATTEN_ADCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_snd_emu10k1_i2c_write
	movq	(%r14), %rax
	movq	(%rax,%r13,8), %rax
LBB0_12:
	movl	%r15d, 4(%rax)
	movl	$1, %ebx
LBB0_13:
	movl	%ebx, %eax
	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_ATTEN_ADCL,4,2             ## @ADC_ATTEN_ADCL
	.comm	_ADC_ATTEN_ADCR,4,2             ## @ADC_ATTEN_ADCR
	.no_dead_strip	_snd_audigy_i2c_volume_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_volume_put
_snd_audigy_i2c_volume_put:             ; @snd_audigy_i2c_volume_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	x20, x1
	mov	x21, x0
	bl	_snd_kcontrol_chip
	ldr	w22, [x21]
	cmp	w22, #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_10
LBB0_2:
	ldr	x9, [x20]
	ldr	w21, [x9]
	cmp	w21, #255
	b.hi	LBB0_9
; %bb.3:
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x8, [x8, x22, lsl #3]
	ldr	w10, [x8]
	cmp	w10, w21
	b.ne	LBB0_5
; %bb.4:
	mov	w0, #0
	b	LBB0_8
LBB0_5:
	ldr	w10, [x19, #8]
	cmp	w10, w22
	b.ne	LBB0_7
; %bb.6:
Lloh3:
	adrp	x8, _ADC_ATTEN_ADCL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ADC_ATTEN_ADCL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_snd_emu10k1_i2c_write
	ldr	x8, [x19]
	ldr	x8, [x8, x22, lsl #3]
	ldr	x9, [x20]
LBB0_7:
	str	w21, [x8]
	mov	w0, #1
LBB0_8:
	ldr	w20, [x9, #4]
	cmp	w20, #255
	b.ls	LBB0_11
LBB0_9:
	mov	w0, #0
LBB0_10:
	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
LBB0_11:
	ldr	w9, [x8, #4]
	cmp	w9, w20
	b.eq	LBB0_10
; %bb.12:
	ldr	w9, [x19, #8]
	cmp	w9, w22
	b.ne	LBB0_14
; %bb.13:
Lloh6:
	adrp	x8, _ADC_ATTEN_ADCR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ADC_ATTEN_ADCR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_snd_emu10k1_i2c_write
	ldr	x8, [x19]
	ldr	x8, [x8, x22, lsl #3]
LBB0_14:
	str	w20, [x8, #4]
	mov	w0, #1
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ADC_ATTEN_ADCL,4,2             ; @ADC_ATTEN_ADCL
	.comm	_ADC_ATTEN_ADCR,4,2             ; @ADC_ATTEN_ADCR
	.no_dead_strip	_snd_audigy_i2c_volume_put
.subsections_via_symbols
