	.file	"extr_hash_tlb.c_flush_tlb_pmd_range.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	flush_tlb_pmd_range
	.type	flush_tlb_pmd_range, @function
flush_tlb_pmd_range:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	mov	rdi, rdx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR PMD_SIZE[rip]
	call	_ALIGN_DOWN@PLT
	xor	edi, edi
	mov	rbp, rax
	call	local_irq_save@PLT
	xor	eax, eax
	call	arch_enter_lazy_mmu_mode@PLT
	mov	rdi, r12
	mov	rsi, rbp
	call	pte_offset_map@PLT
	mov	r12, rax
	movsx	rax, DWORD PTR PTRS_PER_PTE[rip]
	lea	rax, [r12+rax*4]
	cmp	r12, rax
	jnb	.L2
	mov	rbx, r12
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	movsx	rax, DWORD PTR PTRS_PER_PTE[rip]
	add	rbx, 4
	add	rbp, QWORD PTR PAGE_SIZE[rip]
	lea	rax, [r12+rax*4]
	cmp	rbx, rax
	jnb	.L2
.L4:
	mov	edi, DWORD PTR [rbx]
	call	pte_val@PLT
	test	QWORD PTR H_PAGE_HASHPTE[rip], rax
	je	.L3
	xor	r8d, r8d
	mov	rcx, rax
	mov	rdx, rbx
	mov	rsi, rbp
	mov	rdi, r13
	call	hpte_need_flush@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L2:
	xor	eax, eax
	call	arch_leave_lazy_mmu_mode@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	xor	edi, edi
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	local_irq_restore@PLT
	.cfi_endproc
.LFE0:
	.size	flush_tlb_pmd_range, .-flush_tlb_pmd_range
	.comm	PTRS_PER_PTE,4,4
	.comm	PMD_SIZE,4,4
	.comm	PAGE_SIZE,8,8
	.comm	H_PAGE_HASHPTE,8,8
	.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_hash_tlb.c_flush_tlb_pmd_range.c"
	.text
	.align	2
	.global	flush_tlb_pmd_range
	.syntax unified
	.arm
	.fpu softvfp
	.type	flush_tlb_pmd_range, %function
flush_tlb_pmd_range:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L11
	sub	sp, sp, #12
	mov	r4, r1
	mov	r10, r0
	ldr	r1, [r3]
	mov	r0, r2
	bl	_ALIGN_DOWN
	mov	r5, r0
	mov	r0, #0
	bl	local_irq_save
	bl	arch_enter_lazy_mmu_mode
	mov	r1, r5
	mov	r0, r4
	bl	pte_offset_map
	ldr	r7, .L11+4
	ldr	r3, [r7]
	add	r3, r0, r3, lsl #2
	cmp	r0, r3
	bcs	.L2
	mov	r6, r0
	mov	r4, r0
	ldr	r9, .L11+8
	ldr	r8, .L11+12
	b	.L4
.L3:
	ldr	r3, [r7]
	ldr	r2, [r8]
	add	r3, r6, r3, lsl #2
	cmp	r3, r4
	add	r5, r5, r2
	bls	.L2
.L4:
	ldr	r0, [r4]
	bl	pte_val
	ldr	r1, [r9]
	mov	fp, r4
	tst	r0, r1
	add	r4, r4, #4
	beq	.L3
	mov	r3, #0
	mov	r2, fp
	str	r3, [sp]
	mov	r1, r5
	mov	r3, r0
	mov	r0, r10
	bl	hpte_need_flush
	b	.L3
.L2:
	bl	arch_leave_lazy_mmu_mode
	mov	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	local_irq_restore
.L12:
	.align	2
.L11:
	.word	PMD_SIZE
	.word	PTRS_PER_PTE
	.word	H_PAGE_HASHPTE
	.word	PAGE_SIZE
	.size	flush_tlb_pmd_range, .-flush_tlb_pmd_range
	.comm	PTRS_PER_PTE,4,4
	.comm	PMD_SIZE,4,4
	.comm	PAGE_SIZE,4,4
	.comm	H_PAGE_HASHPTE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
