	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ac97_ad1986_vrefout_put
_snd_ac97_ad1986_vrefout_put:           ## @snd_ac97_ad1986_vrefout_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, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r14
	movq	(%rbx), %rax
	movl	(%rax), %eax
	xorl	%ebx, %ebx
	cmpq	$3, %rax
	ja	LBB0_4
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rdx
	addq	%rcx, %rdx
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	jmpq	*%rdx
LBB0_5:
	movq	_AC97_AD1986_CVREF2@GOTPCREL(%rip), %rax
	movzwl	(%rax), %eax
	movq	_AC97_AD1986_LVREF2@GOTPCREL(%rip), %rcx
	movzwl	(%rcx), %r12d
	movq	_AC97_AD1986_MVREF2@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_2:
	movq	_AC97_AD1986_CVREF0@GOTPCREL(%rip), %rax
	movzwl	(%rax), %eax
	movq	_AC97_AD1986_LVREF0@GOTPCREL(%rip), %rcx
	movzwl	(%rcx), %r12d
	movq	_AC97_AD1986_MVREF0@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_3:
	movq	_AC97_AD1986_CVREF1@GOTPCREL(%rip), %rax
	movzwl	(%rax), %eax
	movq	_AC97_AD1986_LVREF1@GOTPCREL(%rip), %rcx
	movzwl	(%rcx), %r12d
	movq	_AC97_AD1986_MVREF1@GOTPCREL(%rip), %rcx
LBB0_6:
	movzwl	(%rcx), %ebx
LBB0_7:
	movq	_AC97_AD_MISC2@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_AC97_AD1986_CVREF_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movzwl	%ax, %ecx
	movq	%r14, %rdi
	callq	_snd_ac97_update_bits
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	movq	_AC97_AD_MISC3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AC97_AD1986_LVREF_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movzwl	%r12w, %ecx
	movq	%r14, %rdi
	callq	_snd_ac97_update_bits
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_10
## %bb.11:
	movl	(%r13), %esi
	movq	_AC97_AD1986_MVREF_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movzwl	%bx, %ecx
	movq	%r14, %rdi
	callq	_snd_ac97_update_bits
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_13
## %bb.12:
	orl	%r12d, %r15d
	xorl	%eax, %eax
	orl	%ebx, %r15d
	setne	%al
	movl	%eax, %ebx
	jmp	LBB0_13
LBB0_8:
	movl	%r15d, %ebx
	jmp	LBB0_13
LBB0_10:
	movl	%r12d, %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_5
	.long	L0_0_set_2
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_AC97_AD1986_CVREF2,2,1         ## @AC97_AD1986_CVREF2
	.comm	_AC97_AD1986_LVREF2,2,1         ## @AC97_AD1986_LVREF2
	.comm	_AC97_AD1986_MVREF2,2,1         ## @AC97_AD1986_MVREF2
	.comm	_AC97_AD1986_CVREF0,2,1         ## @AC97_AD1986_CVREF0
	.comm	_AC97_AD1986_LVREF0,2,1         ## @AC97_AD1986_LVREF0
	.comm	_AC97_AD1986_MVREF0,2,1         ## @AC97_AD1986_MVREF0
	.comm	_AC97_AD1986_CVREF1,2,1         ## @AC97_AD1986_CVREF1
	.comm	_AC97_AD1986_LVREF1,2,1         ## @AC97_AD1986_LVREF1
	.comm	_AC97_AD1986_MVREF1,2,1         ## @AC97_AD1986_MVREF1
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AC97_AD_MISC2,4,2              ## @AC97_AD_MISC2
	.comm	_AC97_AD1986_CVREF_MASK,4,2     ## @AC97_AD1986_CVREF_MASK
	.comm	_AC97_AD_MISC3,4,2              ## @AC97_AD_MISC3
	.comm	_AC97_AD1986_LVREF_MASK,4,2     ## @AC97_AD1986_LVREF_MASK
	.comm	_AC97_AD1986_MVREF_MASK,4,2     ## @AC97_AD1986_MVREF_MASK
	.no_dead_strip	_snd_ac97_ad1986_vrefout_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_ac97_ad1986_vrefout_put
_snd_ac97_ad1986_vrefout_put:           ; @snd_ac97_ad1986_vrefout_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
	bl	_snd_kcontrol_chip
	ldr	x8, [x20]
	ldr	w8, [x8]
	cmp	w8, #3
	b.hi	LBB0_3
; %bb.1:
	mov	x19, x0
	mov	w20, #0
	mov	w21, #0
	mov	w3, #0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _AC97_AD1986_CVREF2@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AC97_AD1986_CVREF2@GOTPAGEOFF]
	ldrh	w3, [x8]
Lloh4:
	adrp	x8, _AC97_AD1986_LVREF2@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AC97_AD1986_LVREF2@GOTPAGEOFF]
	ldrh	w21, [x8]
Lloh6:
	adrp	x8, _AC97_AD1986_MVREF2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AC97_AD1986_MVREF2@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_11
LBB0_4:
Lloh11:
	adrp	x8, _AC97_AD1986_CVREF0@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AC97_AD1986_CVREF0@GOTPAGEOFF]
	ldrh	w3, [x8]
Lloh13:
	adrp	x8, _AC97_AD1986_LVREF0@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AC97_AD1986_LVREF0@GOTPAGEOFF]
	ldrh	w21, [x8]
Lloh15:
	adrp	x8, _AC97_AD1986_MVREF0@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AC97_AD1986_MVREF0@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh17:
	adrp	x8, _AC97_AD1986_CVREF1@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AC97_AD1986_CVREF1@GOTPAGEOFF]
	ldrh	w3, [x8]
Lloh19:
	adrp	x8, _AC97_AD1986_LVREF1@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AC97_AD1986_LVREF1@GOTPAGEOFF]
	ldrh	w21, [x8]
Lloh21:
	adrp	x8, _AC97_AD1986_MVREF1@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AC97_AD1986_MVREF1@GOTPAGEOFF]
LBB0_6:
	ldrh	w20, [x8]
LBB0_7:
Lloh23:
	adrp	x23, _AC97_AD_MISC2@GOTPAGE
Lloh24:
	ldr	x23, [x23, _AC97_AD_MISC2@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh25:
	adrp	x8, _AC97_AD1986_CVREF_MASK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AC97_AD1986_CVREF_MASK@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_snd_ac97_update_bits
	mov	x22, x0
	tbnz	w0, #31, LBB0_11
; %bb.8:
Lloh28:
	adrp	x8, _AC97_AD_MISC3@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AC97_AD_MISC3@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
Lloh31:
	adrp	x8, _AC97_AD1986_LVREF_MASK@GOTPAGE
Lloh32:
	ldr	x8, [x8, _AC97_AD1986_LVREF_MASK@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x21
	bl	_snd_ac97_update_bits
	mov	x21, x0
	tbnz	w0, #31, LBB0_10
; %bb.9:
	ldr	w1, [x23]
Lloh34:
	adrp	x8, _AC97_AD1986_MVREF_MASK@GOTPAGE
Lloh35:
	ldr	x8, [x8, _AC97_AD1986_MVREF_MASK@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x20
	bl	_snd_ac97_update_bits
	orr	w8, w22, w21
	orr	w8, w8, w0
	cmp	w8, #0
	cset	w8, ne
	tst	w0, #0x80000000
	csel	w22, w0, w8, ne
	b	LBB0_11
LBB0_10:
	mov	x22, x21
LBB0_11:
	mov	x0, x22
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
                                        ; -- End function
	.comm	_AC97_AD1986_CVREF2,2,1         ; @AC97_AD1986_CVREF2
	.comm	_AC97_AD1986_LVREF2,2,1         ; @AC97_AD1986_LVREF2
	.comm	_AC97_AD1986_MVREF2,2,1         ; @AC97_AD1986_MVREF2
	.comm	_AC97_AD1986_CVREF0,2,1         ; @AC97_AD1986_CVREF0
	.comm	_AC97_AD1986_LVREF0,2,1         ; @AC97_AD1986_LVREF0
	.comm	_AC97_AD1986_MVREF0,2,1         ; @AC97_AD1986_MVREF0
	.comm	_AC97_AD1986_CVREF1,2,1         ; @AC97_AD1986_CVREF1
	.comm	_AC97_AD1986_LVREF1,2,1         ; @AC97_AD1986_LVREF1
	.comm	_AC97_AD1986_MVREF1,2,1         ; @AC97_AD1986_MVREF1
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AC97_AD_MISC2,4,2              ; @AC97_AD_MISC2
	.comm	_AC97_AD1986_CVREF_MASK,4,2     ; @AC97_AD1986_CVREF_MASK
	.comm	_AC97_AD_MISC3,4,2              ; @AC97_AD_MISC3
	.comm	_AC97_AD1986_LVREF_MASK,4,2     ; @AC97_AD1986_LVREF_MASK
	.comm	_AC97_AD1986_MVREF_MASK,4,2     ; @AC97_AD1986_MVREF_MASK
	.no_dead_strip	_snd_ac97_ad1986_vrefout_put
.subsections_via_symbols
