	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alc889_fixup_mbp_vref
_alc889_fixup_mbp_vref:                 ## @alc889_fixup_mbp_vref
	.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	_HDA_FIXUP_ACT_INIT@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_6
## %bb.1:
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	_alc889_fixup_mbp_vref.nids(%rip), %r14
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_6
## %bb.2:
	xorl	%ebx, %ebx
	movq	_AC_JACK_HP_OUT@GOTPCREL(%rip), %r15
	movq	%r14, %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_snd_hda_codec_get_pincfg
	movl	%eax, %edi
	callq	_get_defcfg_device
	cmpq	(%r15), %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$4, %r13
	cmpq	%rax, %rbx
	jl	LBB0_4
	jmp	LBB0_6
LBB0_5:
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_snd_hda_codec_get_pin_target
	movq	_AC_PINCTL_VREF_80@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r13), %esi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_snd_hda_set_pin_ctl
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	2                               ## @alc889_fixup_mbp_vref.nids
_alc889_fixup_mbp_vref.nids:
	.long	20                              ## 0x14
	.long	21                              ## 0x15

	.comm	_HDA_FIXUP_ACT_INIT,4,2         ## @HDA_FIXUP_ACT_INIT
	.comm	_AC_JACK_HP_OUT,8,3             ## @AC_JACK_HP_OUT
	.comm	_AC_PINCTL_VREF_80,4,2          ## @AC_PINCTL_VREF_80
	.no_dead_strip	_alc889_fixup_mbp_vref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alc889_fixup_mbp_vref
_alc889_fixup_mbp_vref:                 ; @alc889_fixup_mbp_vref
	.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
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_6
; %bb.1:
	mov	x19, x0
	ldr	x21, [x0]
Lloh3:
	adrp	x20, _alc889_fixup_mbp_vref.nids@PAGE
Lloh4:
	add	x20, x20, _alc889_fixup_mbp_vref.nids@PAGEOFF
	mov	x0, x20
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x22, #0
Lloh5:
	adrp	x23, _AC_JACK_HP_OUT@GOTPAGE
Lloh6:
	ldr	x23, [x23, _AC_JACK_HP_OUT@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20, x22, lsl #2]
	mov	x0, x19
	bl	_snd_hda_codec_get_pincfg
	bl	_get_defcfg_device
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	mov	x0, x20
	bl	_ARRAY_SIZE
	cmp	x22, w0, sxtw
	b.lt	LBB0_3
	b	LBB0_6
LBB0_5:
	lsl	x22, x22, #2
	ldr	w1, [x20, x22]
	mov	x0, x19
	bl	_snd_hda_codec_get_pin_target
Lloh7:
	adrp	x8, _AC_PINCTL_VREF_80@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AC_PINCTL_VREF_80@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	orr	w2, w8, w0
	ldr	w1, [x20, x22]
	mov	x0, x19
	bl	_snd_hda_set_pin_ctl
	mov	w8, #1
	str	w8, [x21]
LBB0_6:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	2                               ; @alc889_fixup_mbp_vref.nids
_alc889_fixup_mbp_vref.nids:
	.long	20                              ; 0x14
	.long	21                              ; 0x15

	.comm	_HDA_FIXUP_ACT_INIT,4,2         ; @HDA_FIXUP_ACT_INIT
	.comm	_AC_JACK_HP_OUT,8,3             ; @AC_JACK_HP_OUT
	.comm	_AC_PINCTL_VREF_80,4,2          ; @AC_PINCTL_VREF_80
	.no_dead_strip	_alc889_fixup_mbp_vref
.subsections_via_symbols
