	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aureon_ac97_vol_put
_aureon_ac97_vol_put:                   ## @aureon_ac97_vol_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, %r15
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_snd_ice1712_save_gpio_status
	movl	(%rbx), %esi
	andl	$127, %esi
	movq	%r14, %rdi
	callq	_aureon_ac97_read
	movl	%eax, %r12d
	movq	(%r15), %rcx
	movw	$31, %ax
	subw	(%rcx), %ax
	andl	$31, %eax
	movl	(%rbx), %esi
	movq	_AUREON_AC97_STEREO@GOTPCREL(%rip), %rdx
	testl	%esi, (%rdx)
	je	LBB0_2
## %bb.1:
	movl	4(%rcx), %ecx
	shll	$8, %ecx
	movl	$7936, %edx                     ## imm = 0x1F00
	subl	%ecx, %edx
	andl	$7936, %edx                     ## imm = 0x1F00
	movzwl	%ax, %eax
	orl	%edx, %eax
LBB0_2:
	movl	%r12d, %ecx
	andl	$-7968, %ecx                    ## imm = 0xE0E0
	movzwl	%ax, %ebx
	orl	%ecx, %ebx
	cmpw	%bx, %r12w
	je	LBB0_4
## %bb.3:
	andl	$127, %esi
	movzwl	%bx, %edx
	movq	%r14, %rdi
	callq	_aureon_ac97_write
LBB0_4:
	xorl	%r15d, %r15d
	cmpw	%bx, %r12w
	setne	%r15b
	movq	%r14, %rdi
	callq	_snd_ice1712_restore_gpio_status
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AUREON_AC97_STEREO,4,2         ## @AUREON_AC97_STEREO
	.no_dead_strip	_aureon_ac97_vol_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aureon_ac97_vol_put
_aureon_ac97_vol_put:                   ; @aureon_ac97_vol_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
	mov	x22, x0
	bl	_snd_kcontrol_chip
	mov	x19, x0
	bl	_snd_ice1712_save_gpio_status
	ldr	w8, [x22]
	and	w1, w8, #0x7f
	mov	x0, x19
	bl	_aureon_ac97_read
	mov	x20, x0
	ldr	x10, [x21]
	ldrh	w8, [x10]
	mov	w9, #31
	sub	w8, w9, w8
	and	w9, w8, #0x1f
	ldr	w8, [x22]
Lloh0:
	adrp	x11, _AUREON_AC97_STEREO@GOTPAGE
Lloh1:
	ldr	x11, [x11, _AUREON_AC97_STEREO@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x11]
	tst	w11, w8
	b.eq	LBB0_2
; %bb.1:
	ldrh	w10, [x10, #4]
	mov	w11, #7936
	sub	w10, w11, w10, lsl #8
	and	w10, w10, #0x1f00
	orr	w9, w10, w9
LBB0_2:
	and	w10, w20, #0xe0e0e0e0
	orr	w21, w9, w10
	cmp	w20, w21
	b.eq	LBB0_4
; %bb.3:
	and	w1, w8, #0x7f
	and	w2, w21, #0xffff
	mov	x0, x19
	bl	_aureon_ac97_write
LBB0_4:
	cmp	w20, w21, uxth
	cset	w20, ne
	mov	x0, x19
	bl	_snd_ice1712_restore_gpio_status
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AUREON_AC97_STEREO,4,2         ; @AUREON_AC97_STEREO
	.no_dead_strip	_aureon_ac97_vol_put
.subsections_via_symbols
