	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sti_hda_disable
_sti_hda_disable:                       ## @sti_hda_disable
	.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	(%rdi), %rbx
	cmpl	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
	movq	_HDA_ANA_CFG@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_hda_read
	movq	_CFG_AWG_ASYNC_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	callq	_hda_write
	movq	_HDA_ANA_ANC_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_hda_write
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_hda_enable_hd_dacs
	movl	8(%rbx), %edi
	callq	_clk_disable_unprepare
	movl	4(%rbx), %edi
	callq	_clk_disable_unprepare
	movl	$0, (%rbx)
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_HDA_ANA_CFG,4,2                ## @HDA_ANA_CFG
	.comm	_CFG_AWG_ASYNC_EN,4,2           ## @CFG_AWG_ASYNC_EN
	.comm	_HDA_ANA_ANC_CTRL,4,2           ## @HDA_ANA_ANC_CTRL
	.no_dead_strip	_sti_hda_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sti_hda_disable
_sti_hda_disable:                       ; @sti_hda_disable
	.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
	ldr	x19, [x0]
	ldr	w8, [x19]
	cbz	w8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
Lloh2:
	adrp	x20, _HDA_ANA_CFG@GOTPAGE
Lloh3:
	ldr	x20, [x20, _HDA_ANA_CFG@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_hda_read
Lloh4:
	adrp	x8, _CFG_AWG_ASYNC_EN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CFG_AWG_ASYNC_EN@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	bic	w1, w0, w8
	ldr	w2, [x20]
	mov	x0, x19
	bl	_hda_write
Lloh7:
	adrp	x8, _HDA_ANA_ANC_CTRL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HDA_ANA_ANC_CTRL@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_hda_write
	mov	x0, x19
	mov	w1, #0
	bl	_hda_enable_hd_dacs
	ldr	w0, [x19, #8]
	bl	_clk_disable_unprepare
	ldr	w0, [x19, #4]
	bl	_clk_disable_unprepare
	str	wzr, [x19]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_HDA_ANA_CFG,4,2                ; @HDA_ANA_CFG
	.comm	_CFG_AWG_ASYNC_EN,4,2           ; @CFG_AWG_ASYNC_EN
	.comm	_HDA_ANA_ANC_CTRL,4,2           ; @HDA_ANA_ANC_CTRL
	.no_dead_strip	_sti_hda_disable
.subsections_via_symbols
