	.file	"extr_intel-iommu.c_dma_pte_clear_range.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dma_pte_clear_range, @function
dma_pte_clear_range:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	edi, DWORD PTR [rdi]
	call	agaw_to_width@PLT
	xor	edi, edi
	sub	eax, DWORD PTR VTD_PAGE_SHIFT[rip]
	cmp	DWORD PTR BITS_PER_LONG[rip], eax
	mov	ebx, eax
	jle	.L2
	mov	rax, rbp
	mov	ecx, ebx
	xor	edi, edi
	shr	rax, cl
	test	rax, rax
	setne	dil
.L2:
	call	BUG_ON@PLT
	xor	edi, edi
	cmp	DWORD PTR BITS_PER_LONG[rip], ebx
	jle	.L3
	mov	rax, r12
	mov	ecx, ebx
	xor	edi, edi
	shr	rax, cl
	test	rax, rax
	setne	dil
.L3:
	call	BUG_ON@PLT
	xor	edi, edi
	cmp	rbp, r12
	seta	dil
	call	BUG_ON@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edx, 1
	mov	rsi, rbp
	mov	rdi, r14
	call	dma_pfn_level_pte@PLT
	mov	r13, rax
	mov	rbx, rax
	test	rax, rax
	jne	.L4
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, rbx
	call	first_pte_in_page@PLT
	test	eax, eax
	jne	.L7
.L4:
	mov	rdi, rbx
	add	rbp, 1
	add	rbx, 4
	call	dma_clear_pte@PLT
	cmp	r12, rbp
	jnb	.L6
.L7:
	mov	rdx, rbx
	mov	rsi, r13
	mov	rdi, r14
	sub	rdx, r13
	call	domain_flush_cache@PLT
.L5:
	test	rbp, rbp
	je	.L1
	cmp	rbp, r12
	jbe	.L8
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	lea	rdi, 1[rbp]
	mov	esi, 2
	call	align_to_level@PLT
	mov	rbp, rax
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	dma_pte_clear_range, .-dma_pte_clear_range
	.comm	VTD_PAGE_SHIFT,4,4
	.comm	BITS_PER_LONG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_intel-iommu.c_dma_pte_clear_range.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dma_pte_clear_range, %function
dma_pte_clear_range:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r8, r0
	ldr	r0, [r0]
	mov	r5, r1
	mov	r6, r2
	bl	agaw_to_width
	ldr	r3, .L19
	ldr	r7, .L19+4
	ldr	r4, [r3]
	ldr	r3, [r7]
	sub	r4, r0, r4
	cmp	r3, r4
	movle	r0, #0
	ble	.L2
	lsrs	r3, r5, r4
	movne	r0, #1
	moveq	r0, #0
.L2:
	bl	BUG_ON
	ldr	r3, [r7]
	cmp	r3, r4
	movle	r0, #0
	ble	.L3
	lsrs	r3, r6, r4
	movne	r0, #1
	moveq	r0, #0
.L3:
	bl	BUG_ON
	cmp	r5, r6
	movls	r0, #0
	movhi	r0, #1
	bl	BUG_ON
.L8:
	mov	r2, #1
	mov	r1, r5
	mov	r0, r8
	bl	dma_pfn_level_pte
	subs	r7, r0, #0
	movne	r4, r7
	bne	.L4
	b	.L18
.L6:
	mov	r0, r4
	bl	first_pte_in_page
	cmp	r0, #0
	bne	.L7
.L4:
	mov	r0, r4
	add	r5, r5, #1
	bl	dma_clear_pte
	cmp	r6, r5
	add	r4, r4, #4
	bcs	.L6
.L7:
	mov	r1, r7
	mov	r0, r8
	sub	r2, r4, r7
	bl	domain_flush_cache
.L5:
	cmp	r5, r6
	movhi	r3, #0
	movls	r3, #1
	cmp	r5, #0
	moveq	r3, #0
	cmp	r3, #0
	bne	.L8
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	add	r0, r5, #1
	mov	r1, #2
	bl	align_to_level
	mov	r5, r0
	b	.L5
.L20:
	.align	2
.L19:
	.word	VTD_PAGE_SHIFT
	.word	BITS_PER_LONG
	.size	dma_pte_clear_range, .-dma_pte_clear_range
	.comm	VTD_PAGE_SHIFT,4,4
	.comm	BITS_PER_LONG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
