	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stac9460_adc_vol_put
_stac9460_adc_vol_put:                  ## @stac9460_adc_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	%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
	movq	%rax, %r14
	leaq	8(%r15), %rsi
	movq	%rbx, %rdi
	callq	_snd_ctl_get_ioffidx
	movq	(%r15), %rcx
	movl	(%rcx), %r13d
	andl	$15, %r13d
	movq	_STAC946X_MIC_L_VOLUME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	movq	%r14, %rdi
	movl	%r12d, %esi
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	callq	_stac9460_2_get
	movl	$15, %ebx
	movl	$15, %edx
	subl	%eax, %edx
	movl	%edx, %eax
	andl	$15, %eax
	cmpl	%r13d, %eax
	je	LBB0_3
## %bb.2:
	andl	$240, %edx
	orl	%r13d, %edx
	xorl	$15, %edx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_stac9460_2_put
LBB0_3:
	movq	_STAC946X_MIC_L_VOLUME@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	incl	%r12d
	movq	(%r15), %rax
	movl	4(%rax), %r15d
	andl	$15, %r15d
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_stac9460_2_get
	subl	%eax, %ebx
	movl	%ebx, %ecx
	andl	$15, %ecx
	xorl	%eax, %eax
	cmpl	%r15d, %ecx
	je	LBB0_10
## %bb.4:
	andl	$240, %ebx
	orl	%r15d, %ebx
	xorl	$15, %ebx
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_stac9460_2_put
	jmp	LBB0_9
LBB0_5:
	callq	_stac9460_get
	movl	$15, %ebx
	movl	$15, %edx
	subl	%eax, %edx
	movl	%edx, %eax
	andl	$15, %eax
	cmpl	%r13d, %eax
	je	LBB0_7
## %bb.6:
	andl	$240, %edx
	orl	%r13d, %edx
	xorl	$15, %edx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_stac9460_put
LBB0_7:
	movq	_STAC946X_MIC_L_VOLUME@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	incl	%r12d
	movq	(%r15), %rax
	movl	4(%rax), %r15d
	andl	$15, %r15d
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_stac9460_get
	subl	%eax, %ebx
	movl	%ebx, %ecx
	andl	$15, %ecx
	xorl	%eax, %eax
	cmpl	%r15d, %ecx
	je	LBB0_10
## %bb.8:
	andl	$240, %ebx
	orl	%r15d, %ebx
	xorl	$15, %ebx
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_stac9460_put
LBB0_9:
	movl	$1, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STAC946X_MIC_L_VOLUME,4,2      ## @STAC946X_MIC_L_VOLUME
	.no_dead_strip	_stac9460_adc_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_adc_vol_put
_stac9460_adc_vol_put:                  ; @stac9460_adc_vol_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
	mov	x21, x0
	bl	_snd_kcontrol_chip
	mov	x19, x0
	add	x1, x20, #8
	mov	x0, x21
	bl	_snd_ctl_get_ioffidx
Lloh0:
	adrp	x22, _STAC946X_MIC_L_VOLUME@GOTPAGE
Lloh1:
	ldr	x22, [x22, _STAC946X_MIC_L_VOLUME@GOTPAGEOFF]
	ldr	w21, [x22]
	ldr	x8, [x20]
	ldr	w8, [x8]
	and	w23, w8, #0xf
	cbz	w0, LBB0_5
; %bb.1:
	mov	x0, x19
	mov	x1, x21
	bl	_stac9460_2_get
	mov	w24, #15
	sub	w8, w24, w0
	and	w9, w8, #0xf
	cmp	w9, w23
	b.eq	LBB0_3
; %bb.2:
	and	w8, w8, #0xf0
	orr	w8, w8, w23
	eor	w2, w8, #0xf
	mov	x0, x19
	mov	x1, x21
	bl	_stac9460_2_put
LBB0_3:
	ldr	w8, [x22]
	add	w21, w8, #1
	ldr	x8, [x20]
	ldr	w8, [x8, #4]
	and	w20, w8, #0xf
	mov	x0, x19
	mov	x1, x21
	bl	_stac9460_2_get
	sub	w8, w24, w0
	and	w9, w8, #0xf
	cmp	w9, w20
	b.eq	LBB0_8
; %bb.4:
	and	w8, w8, #0xf0
	orr	w8, w8, w20
	eor	w2, w8, #0xf
	mov	x0, x19
	mov	x1, x21
	bl	_stac9460_2_put
	b	LBB0_10
LBB0_5:
	mov	x0, x19
	mov	x1, x21
	bl	_stac9460_get
	mov	w24, #15
	sub	w8, w24, w0
	and	w9, w8, #0xf
	cmp	w9, w23
	b.eq	LBB0_7
; %bb.6:
	and	w8, w8, #0xf0
	orr	w8, w8, w23
	eor	w2, w8, #0xf
	mov	x0, x19
	mov	x1, x21
	bl	_stac9460_put
LBB0_7:
	ldr	w8, [x22]
	add	w21, w8, #1
	ldr	x8, [x20]
	ldr	w8, [x8, #4]
	and	w20, w8, #0xf
	mov	x0, x19
	mov	x1, x21
	bl	_stac9460_get
	sub	w8, w24, w0
	and	w9, w8, #0xf
	cmp	w9, w20
	b.ne	LBB0_9
LBB0_8:
	mov	w0, #0
	b	LBB0_11
LBB0_9:
	and	w8, w8, #0xf0
	orr	w8, w8, w20
	eor	w2, w8, #0xf
	mov	x0, x19
	mov	x1, x21
	bl	_stac9460_put
LBB0_10:
	mov	w0, #1
LBB0_11:
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_STAC946X_MIC_L_VOLUME,4,2      ; @STAC946X_MIC_L_VOLUME
	.no_dead_strip	_stac9460_adc_vol_put
.subsections_via_symbols
