	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dma_pte_clear_range
_dma_pte_clear_range:                   ## @dma_pte_clear_range
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r12
	callq	_domain_pfn_supported
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_BUG_ON
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_domain_pfn_supported
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_BUG_ON
	xorl	%edi, %edi
	cmpq	%r15, %rbx
	seta	%dil
	callq	_BUG_ON
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movl	$1, -44(%rbp)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	leaq	-44(%rbp), %rcx
	callq	_dma_pfn_level_pte
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$4, %ecx
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %r13
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %r12
	movl	%ecx, %r14d
	movq	%r13, %rdi
	callq	_dma_clear_pte
	movl	-44(%rbp), %edi
	callq	_lvl_to_nr_pages
	movq	%rax, %rbx
	addq	%r12, %rbx
	cmpq	%r15, %rbx
	ja	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	addq	$4, %r13
	movq	%r13, %rdi
	callq	_first_pte_in_page
	leal	4(%r14), %ecx
	testl	%eax, %eax
	je	LBB0_3
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_domain_flush_cache
	testq	%rbx, %rbx
	jne	LBB0_7
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	incq	%rbx
	movl	-44(%rbp), %esi
	incl	%esi
	movq	%rbx, %rdi
	callq	_align_to_level
	movq	%rax, %rbx
	testq	%rbx, %rbx
	je	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%r15, %rbx
	jbe	LBB0_1
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_dma_pte_clear_range
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dma_pte_clear_range
_dma_pte_clear_range:                   ; @dma_pte_clear_range
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	bl	_domain_pfn_supported
	cmp	w0, #0
	cset	w0, eq
	bl	_BUG_ON
	mov	x0, x20
	mov	x1, x19
	bl	_domain_pfn_supported
	cmp	w0, #0
	cset	w0, eq
	bl	_BUG_ON
	cmp	x21, x19
	cset	w0, hi
	bl	_BUG_ON
	mov	w24, #1
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x21, #1
	ldr	w8, [sp, #12]
	add	w1, w8, #1
	bl	_align_to_level
	mov	x21, x0
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	x21, #0
	ccmp	x21, x19, #2, ne
	b.hi	LBB0_8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	str	w24, [sp, #12]
	add	x3, sp, #12
	mov	x0, x20
	mov	x1, x21
	mov	w2, #1
	bl	_dma_pfn_level_pte
	cbz	x0, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, x0
	mov	x8, #0
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x25, x8
	add	x23, x22, x8
	mov	x0, x23
	bl	_dma_clear_pte
	ldr	w0, [sp, #12]
	bl	_lvl_to_nr_pages
	add	x21, x0, x21
	cmp	x21, x19
	b.hi	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	add	x0, x23, #4
	bl	_first_pte_in_page
	add	x8, x25, #4
	cbz	w0, LBB0_5
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w2, w25, #4
	mov	x0, x20
	mov	x1, x22
	bl	_domain_flush_cache
	b	LBB0_2
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_dma_pte_clear_range
.subsections_via_symbols
