	.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, %r12
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r14
	cmpq	$0, (%rbx)
	je	LBB0_3
## %bb.1:
	movq	_STAC946X_MASTER_VOLUME@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	(%r12), %rax
	movl	(%rax), %ebx
	andl	$127, %ebx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_stac9460_get
	movl	%eax, %ecx
	notb	%al
	andb	$127, %al
	movzbl	%al, %edx
	xorl	%eax, %eax
	cmpl	%edx, %ebx
	je	LBB0_10
## %bb.2:
	andb	$-128, %cl
	movzbl	%cl, %eax
	orl	%eax, %ebx
	xorl	$127, %ebx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_stac9460_put
	jmp	LBB0_8
LBB0_3:
	leaq	8(%r12), %rsi
	movq	%rbx, %rdi
	callq	_snd_ctl_get_ioffidx
	movq	_STAC946X_LF_VOLUME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	addl	%eax, %r15d
	movq	(%r12), %rcx
	movl	(%rcx), %ebx
	andl	$127, %ebx
	cmpl	$5, %eax
	jg	LBB0_6
## %bb.4:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_stac9460_get
	movl	%eax, %ecx
	notb	%al
	andb	$127, %al
	movzbl	%al, %edx
	xorl	%eax, %eax
	cmpl	%edx, %ebx
	je	LBB0_10
## %bb.5:
	andb	$-128, %cl
	movzbl	%cl, %eax
	orl	%eax, %ebx
	xorl	$127, %ebx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_stac9460_put
	jmp	LBB0_9
LBB0_6:
	addl	$-6, %r15d
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_stac9460_2_get
	movl	%eax, %ecx
	notb	%al
	andb	$127, %al
	movzbl	%al, %edx
	xorl	%eax, %eax
	cmpl	%edx, %ebx
	je	LBB0_10
## %bb.7:
	andb	$-128, %cl
	movzbl	%cl, %eax
	orl	%eax, %ebx
	xorl	$127, %ebx
LBB0_8:
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_stac9460_2_put
LBB0_9:
	movl	$1, %eax
LBB0_10:
	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	x21, x1
	mov	x20, x0
	bl	_snd_kcontrol_chip
	mov	x19, x0
	ldr	x8, [x20]
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _STAC946X_MASTER_VOLUME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STAC946X_MASTER_VOLUME@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldr	x8, [x21]
	ldr	w8, [x8]
	and	w21, w8, #0x7f
	mov	x0, x19
	mov	x1, x20
	bl	_stac9460_get
	mvn	w8, w0
	and	w8, w8, #0x7f
	cmp	w21, w8
	b.eq	LBB0_7
; %bb.2:
	and	w8, w0, #0x80
	orr	w8, w21, w8
	eor	w21, w8, #0x7f
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_stac9460_put
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	b	LBB0_9
LBB0_3:
	add	x1, x21, #8
	mov	x0, x20
	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	w20, w8, w0
	ldr	x8, [x21]
	ldr	w8, [x8]
	and	w21, w8, #0x7f
	cmp	w0, #5
	b.gt	LBB0_6
; %bb.4:
	mov	x0, x19
	mov	x1, x20
	bl	_stac9460_get
	mvn	w8, w0
	and	w8, w8, #0x7f
	cmp	w21, w8
	b.eq	LBB0_7
; %bb.5:
	and	w8, w0, #0x80
	orr	w8, w21, w8
	eor	w2, w8, #0x7f
	mov	x0, x19
	mov	x1, x20
	bl	_stac9460_put
	b	LBB0_10
LBB0_6:
	sub	w20, w20, #6
	mov	x0, x19
	mov	x1, x20
	bl	_stac9460_2_get
	mvn	w8, w0
	and	w8, w8, #0x7f
	cmp	w21, w8
	b.ne	LBB0_8
LBB0_7:
	mov	w0, #0
	b	LBB0_11
LBB0_8:
	and	w8, w0, #0x80
	orr	w8, w21, w8
	eor	w2, w8, #0x7f
	mov	x0, x19
	mov	x1, x20
LBB0_9:
	bl	_stac9460_2_put
LBB0_10:
	mov	w0, #1
LBB0_11:
	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
