	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stac9460_dac_vol_put
_stac9460_dac_vol_put:                  ## @stac9460_dac_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
	cmpq	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	_STAC946X_MASTER_VOLUME@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_3
LBB0_2:
	leaq	8(%r15), %rsi
	movq	%rbx, %rdi
	callq	_snd_ctl_get_ioffidx
	movl	%eax, %r12d
	movq	_STAC946X_LF_VOLUME@GOTPCREL(%rip), %rax
	addl	(%rax), %r12d
LBB0_3:
	movq	(%r15), %rax
	movzbl	(%rax), %r15d
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_stac9460_get
	movl	%eax, %ebx
	notb	%bl
	andb	$127, %bl
	cmpb	%r15b, %bl
	je	LBB0_5
## %bb.4:
	movl	$127, %ecx
	subl	%r15d, %ecx
	andb	$-128, %al
	movzbl	%al, %edx
	orl	%ecx, %edx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_stac9460_put
LBB0_5:
	xorl	%eax, %eax
	cmpb	%r15b, %bl
	setne	%al
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STAC946X_MASTER_VOLUME,4,2     ## @STAC946X_MASTER_VOLUME
	.comm	_STAC946X_LF_VOLUME,4,2         ## @STAC946X_LF_VOLUME
	.no_dead_strip	_stac9460_dac_vol_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stac9460_dac_vol_put
_stac9460_dac_vol_put:                  ; @stac9460_dac_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	x20, x1
	mov	x21, x0
	bl	_snd_kcontrol_chip
	mov	x19, x0
	ldr	x8, [x21]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _STAC946X_MASTER_VOLUME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STAC946X_MASTER_VOLUME@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	b	LBB0_3
LBB0_2:
	add	x1, x20, #8
	mov	x0, x21
	bl	_snd_ctl_get_ioffidx
Lloh3:
	adrp	x8, _STAC946X_LF_VOLUME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STAC946X_LF_VOLUME@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w21, w8, w0
LBB0_3:
	ldr	x8, [x20]
	ldrb	w20, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_stac9460_get
	mvn	w8, w0
	and	w22, w8, #0x7f
	cmp	w22, w20
	b.eq	LBB0_5
; %bb.4:
	mov	w8, #127
	and	w9, w0, #0x80
	sub	w8, w8, w20
	orr	w2, w8, w9
	mov	x0, x19
	mov	x1, x21
	bl	_stac9460_put
LBB0_5:
	cmp	w22, w20
	cset	w0, ne
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_STAC946X_MASTER_VOLUME,4,2     ; @STAC946X_MASTER_VOLUME
	.comm	_STAC946X_LF_VOLUME,4,2         ; @STAC946X_LF_VOLUME
	.no_dead_strip	_stac9460_dac_vol_put
.subsections_via_symbols
