	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function patch_stac92hd71bxx
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_patch_stac92hd71bxx:                   ## @patch_stac92hd71bxx
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_stac92hd71bxx_unmute_core_init@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	callq	_alloc_stac_spec
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	16(%r15), %rbx
	movq	$0, 72(%rbx)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 36(%rbx)
	movl	$23, 44(%rbx)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,1,1,1]
	movups	%xmm0, (%rbx)
	movq	_stac_patch_ops@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movl	(%r15), %eax
	leal	-287143606(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_18
## %bb.3:
	cmpl	$287143427, %eax                ## imm = 0x111D7603
	je	LBB0_8
## %bb.4:
	cmpl	$287143432, %eax                ## imm = 0x111D7608
	jne	LBB0_10
## %bb.5:
	testb	$14, 4(%r15)
	jne	LBB0_7
## %bb.6:
	movl	$40, 16(%rbx)
LBB0_7:
	addq	$4, %r14
	movq	%r15, %rdi
	movl	$15, %esi
	movl	$1089470704, %edx               ## imm = 0x40F000F0
	callq	_snd_hda_codec_set_pincfg
	movq	%r15, %rdi
	movl	$25, %esi
	movl	$1089470707, %edx               ## imm = 0x40F000F3
	callq	_snd_hda_codec_set_pincfg
	jmp	LBB0_10
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_17
LBB0_18:
	addq	$4, %r14
LBB0_10:
	movq	%r15, %rdi
	movl	$40, %esi
	callq	_get_wcaps
	movl	%eax, %edi
	callq	_get_wcaps_type
	movq	_AC_WID_VOL_KNB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:
	movq	_stac92hd71bxx_core_init@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_snd_hda_add_verbs
LBB0_12:
	movq	%r15, %rdi
	movl	$10, %esi
	callq	_get_wcaps
	movq	_AC_WCAP_IN_AMP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_14
## %bb.13:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_snd_hda_sequence_write_cache
LBB0_14:
	movq	_stac92hd71bxx_loopback@GOTPCREL(%rip), %rax
	movq	%rax, 64(%rbx)
	movabsq	$4294967376, %rax               ## imm = 0x100000050
	movq	%rax, 20(%rbx)
	movq	$0, 56(%rbx)
	movl	$38, 48(%rbx)
	movq	_stac92hd71bxx_pwr_nids@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_ARRAY_SIZE
	movl	%eax, 32(%rbx)
	movl	(%r14), %eax
	movl	%eax, 28(%rbx)
	movq	_stac92hd71bxx_models@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_stac92hd71bxx_fixup_tbl@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_stac92hd71bxx_fixups@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_snd_hda_pick_fixup
	movq	_HDA_FIXUP_ACT_PRE_PROBE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_snd_hda_apply_fixup
	movq	%r15, %rdi
	callq	_stac_setup_gpio
	movq	%r15, %rdi
	callq	_stac_parse_auto_config
	testl	%eax, %eax
	js	LBB0_15
## %bb.16:
	movq	_stac92hd7x_proc_hook@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	_HDA_FIXUP_ACT_PROBE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_snd_hda_apply_fixup
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_15:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_stac_free
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	4(%r15), %eax
	andl	$15, %eax
	cmpl	$1, %eax
	jne	LBB0_10
## %bb.9:
	movl	$40, 16(%rbx)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_stac92hd71bxx_unmute_core_init,8,3 ## @stac92hd71bxx_unmute_core_init
	.comm	_stac_patch_ops,4,2             ## @stac_patch_ops
	.comm	_AC_WID_VOL_KNB,8,3             ## @AC_WID_VOL_KNB
	.comm	_stac92hd71bxx_core_init,4,2    ## @stac92hd71bxx_core_init
	.comm	_AC_WCAP_IN_AMP,4,2             ## @AC_WCAP_IN_AMP
	.comm	_stac92hd71bxx_loopback,4,2     ## @stac92hd71bxx_loopback
	.comm	_stac92hd71bxx_pwr_nids,4,2     ## @stac92hd71bxx_pwr_nids
	.comm	_stac92hd71bxx_models,4,2       ## @stac92hd71bxx_models
	.comm	_stac92hd71bxx_fixup_tbl,4,2    ## @stac92hd71bxx_fixup_tbl
	.comm	_stac92hd71bxx_fixups,4,2       ## @stac92hd71bxx_fixups
	.comm	_HDA_FIXUP_ACT_PRE_PROBE,4,2    ## @HDA_FIXUP_ACT_PRE_PROBE
	.comm	_stac92hd7x_proc_hook,4,2       ## @stac92hd7x_proc_hook
	.comm	_HDA_FIXUP_ACT_PROBE,4,2        ## @HDA_FIXUP_ACT_PROBE
	.no_dead_strip	_patch_stac92hd71bxx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function patch_stac92hd71bxx
_patch_stac92hd71bxx:                   ; @patch_stac92hd71bxx
	.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	x19, x0
Lloh0:
	adrp	x8, _stac92hd71bxx_unmute_core_init@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stac92hd71bxx_unmute_core_init@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	bl	_alloc_stac_spec
	tbnz	w0, #31, LBB0_7
; %bb.1:
	ldr	x21, [x19, #16]
	str	xzr, [x21, #72]
	movi.2s	v0, #1
	stur	d0, [x21, #36]
	mov	w8, #23
	str	w8, [x21, #44]
	movi.4s	v0, #1
	str	q0, [x21]
Lloh3:
	adrp	x8, _stac_patch_ops@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stac_patch_ops@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	ldr	w8, [x19]
	mov	w9, #35146
	movk	w9, #61154, lsl #16
	add	w9, w8, w9
	cmp	w9, #2
	b.lo	LBB0_8
; %bb.2:
	mov	w9, #30211
	movk	w9, #4381, lsl #16
	cmp	w8, w9
	b.eq	LBB0_17
; %bb.3:
	mov	w9, #30216
	movk	w9, #4381, lsl #16
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.4:
	ldrb	w8, [x19, #4]
	tst	w8, #0xe
	b.ne	LBB0_6
; %bb.5:
	mov	w8, #40
	str	w8, [x21, #16]
LBB0_6:
	add	x20, x20, #4
	mov	w22, #240
	movk	w22, #16624, lsl #16
	mov	x0, x19
	mov	w1, #15
	mov	w2, #240
	movk	w2, #16624, lsl #16
	bl	_snd_hda_codec_set_pincfg
	orr	w2, w22, #0x3
	mov	x0, x19
	mov	w1, #25
	bl	_snd_hda_codec_set_pincfg
	b	LBB0_9
LBB0_7:
	mov	x21, x0
	b	LBB0_16
LBB0_8:
	add	x20, x20, #4
LBB0_9:
	mov	x0, x19
	mov	w1, #40
	bl	_get_wcaps
	bl	_get_wcaps_type
Lloh6:
	adrp	x8, _AC_WID_VOL_KNB@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AC_WID_VOL_KNB@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.10:
Lloh9:
	adrp	x8, _stac92hd71bxx_core_init@GOTPAGE
Lloh10:
	ldr	x8, [x8, _stac92hd71bxx_core_init@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snd_hda_add_verbs
LBB0_11:
	mov	x0, x19
	mov	w1, #10
	bl	_get_wcaps
Lloh12:
	adrp	x8, _AC_WCAP_IN_AMP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AC_WCAP_IN_AMP@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_13
; %bb.12:
	mov	x0, x19
	mov	x1, x20
	bl	_snd_hda_sequence_write_cache
LBB0_13:
Lloh15:
	adrp	x8, _stac92hd71bxx_loopback@GOTPAGE
Lloh16:
	ldr	x8, [x8, _stac92hd71bxx_loopback@GOTPAGEOFF]
	mov	x9, #80
	movk	x9, #1, lsl #32
	stur	x9, [x21, #20]
	stp	xzr, x8, [x21, #56]
	mov	w8, #38
	str	w8, [x21, #48]
Lloh17:
	adrp	x20, _stac92hd71bxx_pwr_nids@GOTPAGE
Lloh18:
	ldr	x20, [x20, _stac92hd71bxx_pwr_nids@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_ARRAY_SIZE
	ldr	w8, [x20]
	stp	w8, w0, [x21, #28]
Lloh19:
	adrp	x8, _stac92hd71bxx_models@GOTPAGE
Lloh20:
	ldr	x8, [x8, _stac92hd71bxx_models@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _stac92hd71bxx_fixup_tbl@GOTPAGE
Lloh23:
	ldr	x8, [x8, _stac92hd71bxx_fixup_tbl@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
Lloh25:
	adrp	x8, _stac92hd71bxx_fixups@GOTPAGE
Lloh26:
	ldr	x8, [x8, _stac92hd71bxx_fixups@GOTPAGEOFF]
Lloh27:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_snd_hda_pick_fixup
Lloh28:
	adrp	x8, _HDA_FIXUP_ACT_PRE_PROBE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _HDA_FIXUP_ACT_PRE_PROBE@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snd_hda_apply_fixup
	mov	x0, x19
	bl	_stac_setup_gpio
	mov	x0, x19
	bl	_stac_parse_auto_config
	tbnz	w0, #31, LBB0_15
; %bb.14:
Lloh31:
	adrp	x8, _stac92hd7x_proc_hook@GOTPAGE
Lloh32:
	ldr	x8, [x8, _stac92hd7x_proc_hook@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	str	w8, [x19, #8]
Lloh34:
	adrp	x8, _HDA_FIXUP_ACT_PROBE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _HDA_FIXUP_ACT_PROBE@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snd_hda_apply_fixup
	mov	w21, #0
	b	LBB0_16
LBB0_15:
	mov	x21, x0
	mov	x0, x19
	bl	_stac_free
LBB0_16:
	mov	x0, x21
	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
LBB0_17:
	ldr	w8, [x19, #4]
	and	w8, w8, #0xf
	cmp	w8, #1
	b.ne	LBB0_9
; %bb.18:
	mov	w8, #40
	str	w8, [x21, #16]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_stac92hd71bxx_unmute_core_init,8,3 ; @stac92hd71bxx_unmute_core_init
	.comm	_stac_patch_ops,4,2             ; @stac_patch_ops
	.comm	_AC_WID_VOL_KNB,8,3             ; @AC_WID_VOL_KNB
	.comm	_stac92hd71bxx_core_init,4,2    ; @stac92hd71bxx_core_init
	.comm	_AC_WCAP_IN_AMP,4,2             ; @AC_WCAP_IN_AMP
	.comm	_stac92hd71bxx_loopback,4,2     ; @stac92hd71bxx_loopback
	.comm	_stac92hd71bxx_pwr_nids,4,2     ; @stac92hd71bxx_pwr_nids
	.comm	_stac92hd71bxx_models,4,2       ; @stac92hd71bxx_models
	.comm	_stac92hd71bxx_fixup_tbl,4,2    ; @stac92hd71bxx_fixup_tbl
	.comm	_stac92hd71bxx_fixups,4,2       ; @stac92hd71bxx_fixups
	.comm	_HDA_FIXUP_ACT_PRE_PROBE,4,2    ; @HDA_FIXUP_ACT_PRE_PROBE
	.comm	_stac92hd7x_proc_hook,4,2       ; @stac92hd7x_proc_hook
	.comm	_HDA_FIXUP_ACT_PROBE,4,2        ; @HDA_FIXUP_ACT_PROBE
	.no_dead_strip	_patch_stac92hd71bxx
.subsections_via_symbols
