	.file	"extr_tlb-r8k.c_local_flush_tlb_range.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	local_flush_tlb_range
	.type	local_flush_tlb_range, @function
local_flush_tlb_range:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xor	eax, eax
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	r14, QWORD PTR [rdi]
	mov	rbx, rsi
	call	smp_processor_id@PLT
	mov	rsi, r14
	mov	edi, eax
	mov	ebp, eax
	call	cpu_context@PLT
	test	eax, eax
	jne	.L11
	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
.L11:
	.cfi_restore_state
	mov	eax, DWORD PTR PAGE_SIZE[rip]
	mov	rcx, QWORD PTR PAGE_SHIFT[rip]
	xor	edi, edi
	lea	r12d, -1[rax]
	mov	rax, r13
	sub	rax, rbx
	movsx	r12, r12d
	add	r12, rax
	shr	r12, cl
	call	local_irq_save@PLT
	mov	edx, DWORD PTR TFP_TLB_SIZE[rip]
	add	r12d, 1
	sar	r12d
	mov	eax, edx
	shr	eax, 31
	add	eax, edx
	sar	eax
	cmp	eax, r12d
	jl	.L12
	xor	eax, eax
	call	read_c0_entryhi@PLT
	mov	edi, ebp
	mov	rsi, r14
	mov	r12d, eax
	call	cpu_asid@PLT
	xor	edi, edi
	call	write_c0_entrylo@PLT
	mov	eax, DWORD PTR PAGE_SIZE[rip]
	mov	rbp, QWORD PTR PAGE_MASK[rip]
	sub	eax, 1
	and	rbx, rbp
	cdqe
	add	r13, rax
	and	rbp, r13
	cmp	rbx, rbp
	jnb	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, rbx
	call	write_c0_vaddr@PLT
	mov	edi, ebx
	call	write_c0_entryhi@PLT
	movsx	rax, DWORD PTR PAGE_SIZE[rip]
	add	rbx, rax
	xor	eax, eax
	call	tlb_probe@PLT
	xor	eax, eax
	call	read_c0_tlbset@PLT
	test	rax, rax
	js	.L6
	mov	ecx, DWORD PTR PAGE_SHIFT[rip]
	mov	edi, DWORD PTR CKSEG0[rip]
	add	ecx, 1
	sal	rax, cl
	add	edi, eax
	call	write_c0_entryhi@PLT
	xor	eax, eax
	call	tlb_write@PLT
.L6:
	cmp	rbp, rbx
	ja	.L7
.L5:
.L4:
	endbr64
	mov	edi, r12d
	call	write_c0_entryhi@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	edi, edi
	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
	jmp	local_irq_restore@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rdi, r14
	mov	esi, ebp
	call	drop_mmu_context@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	xor	edi, edi
	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
	jmp	local_irq_restore@PLT
	.cfi_endproc
.LFE0:
	.size	local_flush_tlb_range, .-local_flush_tlb_range
	.comm	TFP_TLB_SIZE,4,4
	.comm	PAGE_SIZE,4,4
	.comm	PAGE_SHIFT,8,8
	.comm	PAGE_MASK,8,8
	.comm	CKSEG0,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_tlb-r8k.c_local_flush_tlb_range.c"
	.text
	.align	2
	.global	local_flush_tlb_range
	.syntax unified
	.arm
	.fpu softvfp
	.type	local_flush_tlb_range, %function
local_flush_tlb_range:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r1
	mov	r8, r2
	ldr	r10, [r0]
	bl	smp_processor_id
	mov	r1, r10
	mov	r9, r0
	bl	cpu_context
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r6, .L12
	ldr	r7, .L12+4
	ldr	r5, [r6]
	ldr	r3, [r7]
	sub	r5, r5, #1
	add	r5, r5, r8
	mov	r0, #0
	sub	r5, r5, r4
	lsr	r5, r5, r3
	bl	local_irq_save
	ldr	r3, .L12+8
	add	r5, r5, #1
	ldr	r3, [r3]
	asr	r5, r5, #1
	add	r3, r3, r3, lsr #31
	cmp	r5, r3, asr #1
	bgt	.L11
	bl	read_c0_entryhi
	mov	r1, r10
	mov	r5, r0
	mov	r0, r9
	bl	cpu_asid
	mov	r0, #0
	bl	write_c0_entrylo
	ldr	r2, [r6]
	ldr	r3, .L12+12
	sub	r2, r2, #1
	ldr	r1, [r3]
	add	r8, r2, r8
	and	r8, r8, r1
	and	r4, r4, r1
	cmp	r4, r8
	bcs	.L5
	ldr	r9, .L12+16
.L7:
	mov	r0, r4
	bl	write_c0_vaddr
	mov	r0, r4
	bl	write_c0_entryhi
	ldr	r3, [r6]
	add	r4, r4, r3
	bl	tlb_probe
	bl	read_c0_tlbset
	cmp	r0, #0
	blt	.L6
	ldr	r3, [r7]
	ldr	r2, [r9]
	add	r3, r3, #1
	add	r0, r2, r0, lsl r3
	bl	write_c0_entryhi
	bl	tlb_write
.L6:
	cmp	r8, r4
	bhi	.L7
.L5:
.L4:
	mov	r0, r5
	bl	write_c0_entryhi
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r0, #0
	b	local_irq_restore
.L11:
	mov	r1, r9
	mov	r0, r10
	bl	drop_mmu_context
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r0, #0
	b	local_irq_restore
.L13:
	.align	2
.L12:
	.word	PAGE_SIZE
	.word	PAGE_SHIFT
	.word	TFP_TLB_SIZE
	.word	PAGE_MASK
	.word	CKSEG0
	.size	local_flush_tlb_range, .-local_flush_tlb_range
	.comm	TFP_TLB_SIZE,4,4
	.comm	PAGE_SIZE,4,4
	.comm	PAGE_SHIFT,4,4
	.comm	PAGE_MASK,4,4
	.comm	CKSEG0,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
