	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alc861_fixup_asus_amp_vref_0f
_alc861_fixup_asus_amp_vref_0f:         ## @alc861_fixup_asus_amp_vref_0f
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_HDA_FIXUP_ACT_INIT@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	movl	$15, %esi
	callq	_snd_hda_codec_get_pin_target
	movq	_AC_PINCTL_IN_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_AC_PINCTL_OUT_EN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	%ecx, %esi
	xorl	%edx, %edx
	testl	%eax, %esi
	cmovel	%ecx, %edx
	movq	_AC_PINCTL_VREF_50@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	orl	%eax, %edx
	movq	%rbx, %rdi
	movl	$15, %esi
	callq	_snd_hda_set_pin_ctl
	movl	$1, (%r14)
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDA_FIXUP_ACT_INIT,4,2         ## @HDA_FIXUP_ACT_INIT
	.comm	_AC_PINCTL_IN_EN,4,2            ## @AC_PINCTL_IN_EN
	.comm	_AC_PINCTL_OUT_EN,4,2           ## @AC_PINCTL_OUT_EN
	.comm	_AC_PINCTL_VREF_50,4,2          ## @AC_PINCTL_VREF_50
	.no_dead_strip	_alc861_fixup_asus_amp_vref_0f
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alc861_fixup_asus_amp_vref_0f
_alc861_fixup_asus_amp_vref_0f:         ; @alc861_fixup_asus_amp_vref_0f
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _HDA_FIXUP_ACT_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDA_FIXUP_ACT_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	x20, [x0]
	mov	w1, #15
	bl	_snd_hda_codec_get_pin_target
Lloh3:
	adrp	x8, _AC_PINCTL_IN_EN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AC_PINCTL_IN_EN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _AC_PINCTL_OUT_EN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AC_PINCTL_OUT_EN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w9, w9, w8
	tst	w9, w0
	csel	w8, w8, wzr, eq
Lloh9:
	adrp	x9, _AC_PINCTL_VREF_50@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AC_PINCTL_VREF_50@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w9, w9, w0
	orr	w2, w9, w8
	mov	x0, x19
	mov	w1, #15
	bl	_snd_hda_set_pin_ctl
	mov	w8, #1
	str	w8, [x20]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_HDA_FIXUP_ACT_INIT,4,2         ; @HDA_FIXUP_ACT_INIT
	.comm	_AC_PINCTL_IN_EN,4,2            ; @AC_PINCTL_IN_EN
	.comm	_AC_PINCTL_OUT_EN,4,2           ; @AC_PINCTL_OUT_EN
	.comm	_AC_PINCTL_VREF_50,4,2          ; @AC_PINCTL_VREF_50
	.no_dead_strip	_alc861_fixup_asus_amp_vref_0f
.subsections_via_symbols
