	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hda_corb_start
_hda_corb_start:                        ## @hda_corb_start
	.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
	leaq	L_.str(%rip), %rax
	movq	%rax, (%rdi)
	movq	_HDAC_CORBSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_hda_get_reg_by_offset
	movq	_HDAC_CORBSIZE_CORBSIZE_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	cltq
	movq	_hda_corb_sizes@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %eax
	movl	%eax, 8(%rbx)
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	_HDAC_CORBLBASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_hda_get_reg_by_offset
	movq	_HDAC_CORBUBASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_hda_get_reg_by_offset
	leaq	L_.str.2(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_DPRINTF
	movq	_HDA_CORB_ENTRY_LEN@GOTPCREL(%rip), %rax
	movl	8(%rbx), %edx
	imull	(%rax), %edx
	movq	%rbx, %rdi
	callq	_hda_dma_get_vaddr
	movl	%eax, 24(%rbx)
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	_HDAC_CORBWP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_hda_get_reg_by_offset
	movl	%eax, 12(%rbx)
	movq	_HDAC_CORBRP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_hda_get_reg_by_offset
	movl	%eax, 16(%rbx)
	movl	$1, 20(%rbx)
	movq	%rbx, %rdi
	callq	_hda_print_cmd_ctl_data
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.3(%rip), %rdi
LBB0_2:
	xorl	%eax, %eax
	callq	_DPRINTF
	movl	$-1, %r14d
LBB0_6:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CORB"

	.comm	_HDAC_CORBSIZE,4,2              ## @HDAC_CORBSIZE
	.comm	_HDAC_CORBSIZE_CORBSIZE_MASK,4,2 ## @HDAC_CORBSIZE_CORBSIZE_MASK
	.comm	_hda_corb_sizes,8,3             ## @hda_corb_sizes
L_.str.1:                               ## @.str.1
	.asciz	"Invalid corb size\n"

	.comm	_HDAC_CORBLBASE,4,2             ## @HDAC_CORBLBASE
	.comm	_HDAC_CORBUBASE,4,2             ## @HDAC_CORBUBASE
L_.str.2:                               ## @.str.2
	.asciz	"CORB dma_paddr: %p\n"

	.comm	_HDA_CORB_ENTRY_LEN,4,2         ## @HDA_CORB_ENTRY_LEN
L_.str.3:                               ## @.str.3
	.asciz	"Fail to get the guest virtual address\n"

	.comm	_HDAC_CORBWP,4,2                ## @HDAC_CORBWP
	.comm	_HDAC_CORBRP,4,2                ## @HDAC_CORBRP
	.no_dead_strip	_hda_corb_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hda_corb_start
_hda_corb_start:                        ; @hda_corb_start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x0]
Lloh2:
	adrp	x8, _HDAC_CORBSIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HDAC_CORBSIZE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_hda_get_reg_by_offset
Lloh5:
	adrp	x8, _HDAC_CORBSIZE_CORBSIZE_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HDAC_CORBSIZE_CORBSIZE_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh8:
	adrp	x9, _hda_corb_sizes@GOTPAGE
Lloh9:
	ldr	x9, [x9, _hda_corb_sizes@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	ldr	w8, [x9, w8, sxtw #2]
	str	w8, [x19, #8]
	cbz	w8, LBB0_3
; %bb.1:
Lloh11:
	adrp	x8, _HDAC_CORBLBASE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HDAC_CORBLBASE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_hda_get_reg_by_offset
Lloh14:
	adrp	x8, _HDAC_CORBUBASE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HDAC_CORBUBASE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_hda_get_reg_by_offset
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DPRINTF
Lloh19:
	adrp	x8, _HDA_CORB_ENTRY_LEN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HDA_CORB_ENTRY_LEN@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	mul	w2, w9, w8
	mov	x0, x19
	bl	_hda_dma_get_vaddr
	str	w0, [x19, #24]
	cbz	w0, LBB0_4
; %bb.2:
Lloh22:
	adrp	x8, _HDAC_CORBWP@GOTPAGE
Lloh23:
	ldr	x8, [x8, _HDAC_CORBWP@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_hda_get_reg_by_offset
	str	w0, [x19, #12]
Lloh25:
	adrp	x8, _HDAC_CORBRP@GOTPAGE
Lloh26:
	ldr	x8, [x8, _HDAC_CORBRP@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_hda_get_reg_by_offset
	mov	w8, #1
	stp	w0, w8, [x19, #16]
	mov	x0, x19
	bl	_hda_print_cmd_ctl_data
	mov	w0, #0
	b	LBB0_6
LBB0_3:
Lloh28:
	adrp	x0, l_.str.1@PAGE
Lloh29:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh30:
	adrp	x0, l_.str.3@PAGE
Lloh31:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_5:
	bl	_DPRINTF
	mov	w0, #-1
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CORB"

	.comm	_HDAC_CORBSIZE,4,2              ; @HDAC_CORBSIZE
	.comm	_HDAC_CORBSIZE_CORBSIZE_MASK,4,2 ; @HDAC_CORBSIZE_CORBSIZE_MASK
	.comm	_hda_corb_sizes,8,3             ; @hda_corb_sizes
l_.str.1:                               ; @.str.1
	.asciz	"Invalid corb size\n"

	.comm	_HDAC_CORBLBASE,4,2             ; @HDAC_CORBLBASE
	.comm	_HDAC_CORBUBASE,4,2             ; @HDAC_CORBUBASE
l_.str.2:                               ; @.str.2
	.asciz	"CORB dma_paddr: %p\n"

	.comm	_HDA_CORB_ENTRY_LEN,4,2         ; @HDA_CORB_ENTRY_LEN
l_.str.3:                               ; @.str.3
	.asciz	"Fail to get the guest virtual address\n"

	.comm	_HDAC_CORBWP,4,2                ; @HDAC_CORBWP
	.comm	_HDAC_CORBRP,4,2                ; @HDAC_CORBRP
	.no_dead_strip	_hda_corb_start
.subsections_via_symbols
