	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hda_set_dpiblbase
_hda_set_dpiblbase:                     ## @hda_set_dpiblbase
	.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
	movl	%edx, %ebx
	movq	%rdi, %r14
	callq	_hda_get_reg_by_offset
	movq	_HDAC_DPLBASE_DPLBASE_DMAPBE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%ecx, %eax
	andl	%ecx, %ebx
	cmpl	%ebx, %eax
	je	LBB0_5
## %bb.1:
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movq	_HDAC_DPIBUBASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_hda_get_reg_by_offset
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINTF
	movq	_HDA_DMA_PIB_ENTRY_LEN@GOTPCREL(%rip), %rax
	movq	_HDA_IOSS_NO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	imull	(%rax), %edx
	movq	%r14, %rdi
	callq	_hda_dma_get_vaddr
	movq	%rax, (%r14)
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINTF
	xorl	%edi, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_assert                         ## TAILCALL
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINTF
	movq	$0, (%r14)
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDAC_DPLBASE_DPLBASE_DMAPBE,4,2 ## @HDAC_DPLBASE_DPLBASE_DMAPBE
	.comm	_HDAC_DPLBASE_DPLBASE_MASK,4,2  ## @HDAC_DPLBASE_DPLBASE_MASK
	.comm	_HDAC_DPIBUBASE,4,2             ## @HDAC_DPIBUBASE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DMA Position In Buffer dma_paddr: %p\n"

	.comm	_HDA_DMA_PIB_ENTRY_LEN,4,2      ## @HDA_DMA_PIB_ENTRY_LEN
	.comm	_HDA_IOSS_NO,4,2                ## @HDA_IOSS_NO
L_.str.1:                               ## @.str.1
	.asciz	"Fail to get the guest \t\t\t\t\t virtual address\n"

L_.str.2:                               ## @.str.2
	.asciz	"DMA Position In Buffer Reset\n"

	.no_dead_strip	_hda_set_dpiblbase
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hda_set_dpiblbase
_hda_set_dpiblbase:                     ; @hda_set_dpiblbase
	.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	x20, x2
	mov	x19, x0
	bl	_hda_get_reg_by_offset
Lloh0:
	adrp	x8, _HDAC_DPLBASE_DPLBASE_DMAPBE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDAC_DPLBASE_DPLBASE_DMAPBE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	and	w8, w9, w0
	and	w9, w9, w20
	cmp	w8, w9
	b.eq	LBB0_5
; %bb.1:
	cbz	w8, LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _HDAC_DPIBUBASE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HDAC_DPIBUBASE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_hda_get_reg_by_offset
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINTF
Lloh8:
	adrp	x8, _HDA_DMA_PIB_ENTRY_LEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HDA_DMA_PIB_ENTRY_LEN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _HDA_IOSS_NO@GOTPAGE
Lloh12:
	ldr	x9, [x9, _HDA_IOSS_NO@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	mul	w2, w9, w8
	mov	x0, x19
	bl	_hda_dma_get_vaddr
	str	x0, [x19]
	cbnz	x0, LBB0_5
; %bb.3:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DPRINTF
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_assert
LBB0_4:
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DPRINTF
	str	xzr, [x19]
LBB0_5:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_HDAC_DPLBASE_DPLBASE_DMAPBE,4,2 ; @HDAC_DPLBASE_DPLBASE_DMAPBE
	.comm	_HDAC_DPLBASE_DPLBASE_MASK,4,2  ; @HDAC_DPLBASE_DPLBASE_MASK
	.comm	_HDAC_DPIBUBASE,4,2             ; @HDAC_DPIBUBASE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DMA Position In Buffer dma_paddr: %p\n"

	.comm	_HDA_DMA_PIB_ENTRY_LEN,4,2      ; @HDA_DMA_PIB_ENTRY_LEN
	.comm	_HDA_IOSS_NO,4,2                ; @HDA_IOSS_NO
l_.str.1:                               ; @.str.1
	.asciz	"Fail to get the guest \t\t\t\t\t virtual address\n"

l_.str.2:                               ; @.str.2
	.asciz	"DMA Position In Buffer Reset\n"

	.no_dead_strip	_hda_set_dpiblbase
.subsections_via_symbols
