	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function patch_stac9872
_patch_stac9872:                        ## @patch_stac9872
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_alloc_stac_spec
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movq	8(%rbx), %rax
	movabsq	$4294967297, %rcx               ## imm = 0x100000001
	movq	%rcx, (%rax)
	movq	_stac_patch_ops@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_stac9872_core_init@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_snd_hda_add_verbs
	movq	_stac9872_models@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_stac9872_fixup_tbl@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_stac9872_fixups@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_snd_hda_pick_fixup
	movq	_HDA_FIXUP_ACT_PRE_PROBE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_snd_hda_apply_fixup
	movq	%rbx, %rdi
	callq	_stac_parse_auto_config
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movq	_HDA_FIXUP_ACT_PROBE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_snd_hda_apply_fixup
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_2:
	movq	%rbx, %rdi
	callq	_stac_free
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stac_patch_ops,4,2             ## @stac_patch_ops
	.comm	_stac9872_core_init,4,2         ## @stac9872_core_init
	.comm	_stac9872_models,4,2            ## @stac9872_models
	.comm	_stac9872_fixup_tbl,4,2         ## @stac9872_fixup_tbl
	.comm	_stac9872_fixups,4,2            ## @stac9872_fixups
	.comm	_HDA_FIXUP_ACT_PRE_PROBE,4,2    ## @HDA_FIXUP_ACT_PRE_PROBE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_HDA_FIXUP_ACT_PROBE,4,2        ## @HDA_FIXUP_ACT_PROBE
	.no_dead_strip	_patch_stac9872
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function patch_stac9872
_patch_stac9872:                        ; @patch_stac9872
	.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
	mov	x19, x0
	bl	_alloc_stac_spec
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	x8, [x19, #8]
	movi.2s	v0, #1
Lloh0:
	adrp	x9, _stac_patch_ops@GOTPAGE
Lloh1:
	ldr	x9, [x9, _stac_patch_ops@GOTPAGEOFF]
	str	d0, [x8]
Lloh2:
	ldr	w8, [x9]
	str	w8, [x19]
Lloh3:
	adrp	x8, _stac9872_core_init@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stac9872_core_init@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snd_hda_add_verbs
Lloh6:
	adrp	x8, _stac9872_models@GOTPAGE
Lloh7:
	ldr	x8, [x8, _stac9872_models@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _stac9872_fixup_tbl@GOTPAGE
Lloh10:
	ldr	x8, [x8, _stac9872_fixup_tbl@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x8, _stac9872_fixups@GOTPAGE
Lloh13:
	ldr	x8, [x8, _stac9872_fixups@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_snd_hda_pick_fixup
Lloh15:
	adrp	x8, _HDA_FIXUP_ACT_PRE_PROBE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HDA_FIXUP_ACT_PRE_PROBE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snd_hda_apply_fixup
	mov	x0, x19
	bl	_stac_parse_auto_config
	tbnz	w0, #31, LBB0_3
; %bb.2:
Lloh18:
	adrp	x8, _HDA_FIXUP_ACT_PROBE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HDA_FIXUP_ACT_PROBE@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snd_hda_apply_fixup
	mov	w0, #0
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_stac_free
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_stac_patch_ops,4,2             ; @stac_patch_ops
	.comm	_stac9872_core_init,4,2         ; @stac9872_core_init
	.comm	_stac9872_models,4,2            ; @stac9872_models
	.comm	_stac9872_fixup_tbl,4,2         ; @stac9872_fixup_tbl
	.comm	_stac9872_fixups,4,2            ; @stac9872_fixups
	.comm	_HDA_FIXUP_ACT_PRE_PROBE,4,2    ; @HDA_FIXUP_ACT_PRE_PROBE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_HDA_FIXUP_ACT_PROBE,4,2        ; @HDA_FIXUP_ACT_PROBE
	.no_dead_strip	_patch_stac9872
.subsections_via_symbols
