	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dma_pte_free_pagetable
_dma_pte_free_pagetable:                ## @dma_pte_free_pagetable
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_domain_pfn_supported
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_BUG_ON
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_domain_pfn_supported
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_BUG_ON
	xorl	%edi, %edi
	cmpq	%r14, %r15
	seta	%dil
	callq	_BUG_ON
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_dma_pte_clear_range
	movl	12(%rbx), %edi
	callq	_agaw_to_level
	movq	(%rbx), %rcx
	movq	%r14, (%rsp)
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	xorl	%r8d, %r8d
	movq	%r15, %r9
	callq	_dma_pte_free_level
	testq	%r15, %r15
	jne	LBB0_3
## %bb.1:
	movl	8(%rbx), %edi
	callq	_DOMAIN_MAX_PFN
	cmpq	%r14, %rax
	jne	LBB0_3
## %bb.2:
	movq	(%rbx), %rdi
	callq	_free_pgtable_page
	movq	$0, (%rbx)
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_dma_pte_free_pagetable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dma_pte_free_pagetable
_dma_pte_free_pagetable:                ; @dma_pte_free_pagetable
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	bl	_domain_pfn_supported
	cmp	w0, #0
	cset	w0, eq
	bl	_BUG_ON
	mov	x0, x19
	mov	x1, x20
	bl	_domain_pfn_supported
	cmp	w0, #0
	cset	w0, eq
	bl	_BUG_ON
	cmp	x22, x20
	cset	w0, hi
	bl	_BUG_ON
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_dma_pte_clear_range
	ldr	w0, [x19, #12]
	bl	_agaw_to_level
	mov	x1, x0
	ldr	x3, [x19]
	mov	x0, x19
	mov	x2, x21
	mov	w4, #0
	mov	x5, x22
	mov	x6, x20
	bl	_dma_pte_free_level
	cbnz	x22, LBB0_3
; %bb.1:
	ldr	w0, [x19, #8]
	bl	_DOMAIN_MAX_PFN
	cmp	x0, x20
	b.ne	LBB0_3
; %bb.2:
	ldr	x0, [x19]
	bl	_free_pgtable_page
	str	xzr, [x19]
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_dma_pte_free_pagetable
.subsections_via_symbols
