	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hda_reset_regs
_hda_reset_regs:                        ## @hda_reset_regs
	.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	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_DPRINTF
	movl	(%r14), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_HDAC_GCAP@GOTPCREL(%rip), %rax
	movq	_HDA_ISS_NO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_HDAC_GCAP_ISS_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edi
	movq	(%rax), %rsi
	movq	_HDAC_GCAP_64OK@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_HDA_OSS_NO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_HDAC_GCAP_OSS_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	orl	%edi, %edx
	movq	%r14, %rdi
	callq	_hda_set_reg_by_offset
	movq	_HDAC_VMAJ@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_hda_set_reg_by_offset
	movq	_HDAC_OUTPAY@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	movl	$60, %edx
	callq	_hda_set_reg_by_offset
	movq	_HDAC_INPAY@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	movl	$29, %edx
	callq	_hda_set_reg_by_offset
	movq	_HDAC_CORBSIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_HDAC_CORBSIZE_CORBSZCAP_256@GOTPCREL(%rip), %rax
	movq	_HDAC_CORBSIZE_CORBSIZE_256@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r14, %rdi
	callq	_hda_set_reg_by_offset
	movq	_HDAC_RIRBSIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_HDAC_RIRBSIZE_RIRBSZCAP_256@GOTPCREL(%rip), %rax
	movq	_HDAC_RIRBSIZE_RIRBSIZE_256@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r14, %rdi
	callq	_hda_set_reg_by_offset
	movq	_HDA_IOSS_NO@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	movq	_HDAC_SDFIFOS@GOTPCREL(%rip), %r12
	movq	_HDA_FIFO_SIZE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_hda_get_offset_stream
	addq	(%r12), %rax
	movl	(%r13), %edx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_hda_set_reg_by_offset
	incq	%rbx
	cmpq	(%r15), %rbx
	jl	LBB0_2
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Reset the HDA controller registers ...\n"

	.comm	_HDAC_GCAP,8,3                  ## @HDAC_GCAP
	.comm	_HDAC_GCAP_64OK,4,2             ## @HDAC_GCAP_64OK
	.comm	_HDA_ISS_NO,4,2                 ## @HDA_ISS_NO
	.comm	_HDAC_GCAP_ISS_SHIFT,4,2        ## @HDAC_GCAP_ISS_SHIFT
	.comm	_HDA_OSS_NO,4,2                 ## @HDA_OSS_NO
	.comm	_HDAC_GCAP_OSS_SHIFT,4,2        ## @HDAC_GCAP_OSS_SHIFT
	.comm	_HDAC_VMAJ,8,3                  ## @HDAC_VMAJ
	.comm	_HDAC_OUTPAY,8,3                ## @HDAC_OUTPAY
	.comm	_HDAC_INPAY,8,3                 ## @HDAC_INPAY
	.comm	_HDAC_CORBSIZE,8,3              ## @HDAC_CORBSIZE
	.comm	_HDAC_CORBSIZE_CORBSZCAP_256,4,2 ## @HDAC_CORBSIZE_CORBSZCAP_256
	.comm	_HDAC_CORBSIZE_CORBSIZE_256,4,2 ## @HDAC_CORBSIZE_CORBSIZE_256
	.comm	_HDAC_RIRBSIZE,8,3              ## @HDAC_RIRBSIZE
	.comm	_HDAC_RIRBSIZE_RIRBSZCAP_256,4,2 ## @HDAC_RIRBSIZE_RIRBSZCAP_256
	.comm	_HDAC_RIRBSIZE_RIRBSIZE_256,4,2 ## @HDAC_RIRBSIZE_RIRBSIZE_256
	.comm	_HDA_IOSS_NO,8,3                ## @HDA_IOSS_NO
	.comm	_HDAC_SDFIFOS,8,3               ## @HDAC_SDFIFOS
	.comm	_HDA_FIFO_SIZE,4,2              ## @HDA_FIFO_SIZE
	.no_dead_strip	_hda_reset_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hda_reset_regs
_hda_reset_regs:                        ; @hda_reset_regs
	.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
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINTF
	ldr	w0, [x19]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh2:
	adrp	x8, _HDAC_GCAP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HDAC_GCAP@GOTPAGEOFF]
Lloh4:
	adrp	x9, _HDAC_GCAP_64OK@GOTPAGE
Lloh5:
	ldr	x9, [x9, _HDAC_GCAP_64OK@GOTPAGEOFF]
Lloh6:
	ldr	x1, [x8]
Lloh7:
	ldr	w8, [x9]
Lloh8:
	adrp	x9, _HDA_ISS_NO@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HDA_ISS_NO@GOTPAGEOFF]
Lloh10:
	adrp	x10, _HDAC_GCAP_ISS_SHIFT@GOTPAGE
Lloh11:
	ldr	x10, [x10, _HDAC_GCAP_ISS_SHIFT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
Lloh13:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w9, w8
Lloh14:
	adrp	x9, _HDA_OSS_NO@GOTPAGE
Lloh15:
	ldr	x9, [x9, _HDA_OSS_NO@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	adrp	x10, _HDAC_GCAP_OSS_SHIFT@GOTPAGE
Lloh18:
	ldr	x10, [x10, _HDAC_GCAP_OSS_SHIFT@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w2, w8, w9
	mov	x0, x19
	bl	_hda_set_reg_by_offset
Lloh20:
	adrp	x8, _HDAC_VMAJ@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HDAC_VMAJ@GOTPAGEOFF]
Lloh22:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_hda_set_reg_by_offset
Lloh23:
	adrp	x8, _HDAC_OUTPAY@GOTPAGE
Lloh24:
	ldr	x8, [x8, _HDAC_OUTPAY@GOTPAGEOFF]
Lloh25:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #60
	bl	_hda_set_reg_by_offset
Lloh26:
	adrp	x8, _HDAC_INPAY@GOTPAGE
Lloh27:
	ldr	x8, [x8, _HDAC_INPAY@GOTPAGEOFF]
Lloh28:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #29
	bl	_hda_set_reg_by_offset
Lloh29:
	adrp	x8, _HDAC_CORBSIZE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _HDAC_CORBSIZE@GOTPAGEOFF]
Lloh31:
	adrp	x9, _HDAC_CORBSIZE_CORBSZCAP_256@GOTPAGE
Lloh32:
	ldr	x9, [x9, _HDAC_CORBSIZE_CORBSZCAP_256@GOTPAGEOFF]
Lloh33:
	ldr	x1, [x8]
Lloh34:
	ldr	w8, [x9]
Lloh35:
	adrp	x9, _HDAC_CORBSIZE_CORBSIZE_256@GOTPAGE
Lloh36:
	ldr	x9, [x9, _HDAC_CORBSIZE_CORBSIZE_256@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_hda_set_reg_by_offset
Lloh38:
	adrp	x8, _HDAC_RIRBSIZE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _HDAC_RIRBSIZE@GOTPAGEOFF]
Lloh40:
	adrp	x9, _HDAC_RIRBSIZE_RIRBSZCAP_256@GOTPAGE
Lloh41:
	ldr	x9, [x9, _HDAC_RIRBSIZE_RIRBSZCAP_256@GOTPAGEOFF]
Lloh42:
	ldr	x1, [x8]
Lloh43:
	ldr	w8, [x9]
Lloh44:
	adrp	x9, _HDAC_RIRBSIZE_RIRBSIZE_256@GOTPAGE
Lloh45:
	ldr	x9, [x9, _HDAC_RIRBSIZE_RIRBSIZE_256@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_hda_set_reg_by_offset
Lloh47:
	adrp	x21, _HDA_IOSS_NO@GOTPAGE
Lloh48:
	ldr	x21, [x21, _HDA_IOSS_NO@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x20, #0
Lloh49:
	adrp	x22, _HDAC_SDFIFOS@GOTPAGE
Lloh50:
	ldr	x22, [x22, _HDAC_SDFIFOS@GOTPAGEOFF]
Lloh51:
	adrp	x23, _HDA_FIFO_SIZE@GOTPAGE
Lloh52:
	ldr	x23, [x23, _HDA_FIFO_SIZE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_hda_get_offset_stream
	ldr	x8, [x22]
	add	x1, x8, x0
	ldr	w2, [x23]
	mov	x0, x19
	bl	_hda_set_reg_by_offset
	add	x20, x20, #1
	ldr	x8, [x21]
	cmp	x20, x8
	b.lt	LBB0_2
LBB0_3:
	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 AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh42
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh33
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Reset the HDA controller registers ...\n"

	.comm	_HDAC_GCAP,8,3                  ; @HDAC_GCAP
	.comm	_HDAC_GCAP_64OK,4,2             ; @HDAC_GCAP_64OK
	.comm	_HDA_ISS_NO,4,2                 ; @HDA_ISS_NO
	.comm	_HDAC_GCAP_ISS_SHIFT,4,2        ; @HDAC_GCAP_ISS_SHIFT
	.comm	_HDA_OSS_NO,4,2                 ; @HDA_OSS_NO
	.comm	_HDAC_GCAP_OSS_SHIFT,4,2        ; @HDAC_GCAP_OSS_SHIFT
	.comm	_HDAC_VMAJ,8,3                  ; @HDAC_VMAJ
	.comm	_HDAC_OUTPAY,8,3                ; @HDAC_OUTPAY
	.comm	_HDAC_INPAY,8,3                 ; @HDAC_INPAY
	.comm	_HDAC_CORBSIZE,8,3              ; @HDAC_CORBSIZE
	.comm	_HDAC_CORBSIZE_CORBSZCAP_256,4,2 ; @HDAC_CORBSIZE_CORBSZCAP_256
	.comm	_HDAC_CORBSIZE_CORBSIZE_256,4,2 ; @HDAC_CORBSIZE_CORBSIZE_256
	.comm	_HDAC_RIRBSIZE,8,3              ; @HDAC_RIRBSIZE
	.comm	_HDAC_RIRBSIZE_RIRBSZCAP_256,4,2 ; @HDAC_RIRBSIZE_RIRBSZCAP_256
	.comm	_HDAC_RIRBSIZE_RIRBSIZE_256,4,2 ; @HDAC_RIRBSIZE_RIRBSIZE_256
	.comm	_HDA_IOSS_NO,8,3                ; @HDA_IOSS_NO
	.comm	_HDAC_SDFIFOS,8,3               ; @HDAC_SDFIFOS
	.comm	_HDA_FIFO_SIZE,4,2              ; @HDA_FIFO_SIZE
	.no_dead_strip	_hda_reset_regs
.subsections_via_symbols
