	.file	"extr_spitfire.c_spitfire_tlb_flush_nonlocked.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	spitfire_tlb_flush_nonlocked
	.type	spitfire_tlb_flush_nonlocked, @function
spitfire_tlb_flush_nonlocked:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR SPITFIRE_TLB_ENTRIES[rip], 0
	jle	.L8
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	xor	ebx, ebx
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	mov	esi, DWORD PTR ASI_ITLB_DATA_ACCESS_REG[rip]
	mov	rdi, rbp
	call	ldxa@PLT
	test	DWORD PTR TD_L[rip], eax
	je	.L12
	add	rbx, 1
	cmp	QWORD PTR SPITFIRE_TLB_ENTRIES[rip], rbx
	jle	.L13
.L5:
	mov	edi, DWORD PTR TLB_DAR_T32[rip]
	mov	rsi, rbx
	call	TLB_DAR_SLOT@PLT
	mov	esi, DWORD PTR ASI_DTLB_DATA_ACCESS_REG[rip]
	mov	rdi, rax
	mov	rbp, rax
	call	ldxa@PLT
	test	DWORD PTR TD_L[rip], eax
	jne	.L3
	mov	esi, DWORD PTR ASI_DTLB_DATA_ACCESS_REG[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	stxa_sync@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L12:
	mov	esi, DWORD PTR ASI_ITLB_DATA_ACCESS_REG[rip]
	xor	edx, edx
	mov	rdi, rbp
	add	rbx, 1
	call	stxa_sync@PLT
	cmp	QWORD PTR SPITFIRE_TLB_ENTRIES[rip], rbx
	jg	.L5
.L13:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore 3
	.cfi_restore 6
	ret
	.cfi_endproc
.LFE0:
	.size	spitfire_tlb_flush_nonlocked, .-spitfire_tlb_flush_nonlocked
	.comm	TLB_DAR_T32,4,4
	.comm	TD_L,4,4
	.comm	SPITFIRE_TLB_ENTRIES,8,8
	.comm	ASI_ITLB_DATA_ACCESS_REG,4,4
	.comm	ASI_DTLB_DATA_ACCESS_REG,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_spitfire.c_spitfire_tlb_flush_nonlocked.c"
	.text
	.align	2
	.global	spitfire_tlb_flush_nonlocked
	.syntax unified
	.arm
	.fpu softvfp
	.type	spitfire_tlb_flush_nonlocked, %function
spitfire_tlb_flush_nonlocked:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r9, .L10
	ldr	r3, [r9]
	cmp	r3, #0
	pople	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r5, #0
	ldr	r10, .L10+4
	ldr	r8, .L10+8
	ldr	r6, .L10+12
	ldr	r7, .L10+16
	b	.L5
.L3:
	mov	r0, r4
	ldr	r1, [r7]
	bl	ldxa
	ldr	r2, [r6]
	ands	r2, r0, r2
	beq	.L9
.L4:
	ldr	r3, [r9]
	cmp	r3, r5
	pople	{r4, r5, r6, r7, r8, r9, r10, pc}
.L5:
	mov	r1, r5
	ldr	r0, [r10]
	bl	TLB_DAR_SLOT
	ldr	r1, [r8]
	mov	r4, r0
	bl	ldxa
	ldr	r2, [r6]
	add	r5, r5, #1
	ands	r2, r0, r2
	bne	.L3
	mov	r0, r4
	ldr	r1, [r8]
	bl	stxa_sync
	b	.L3
.L9:
	mov	r0, r4
	ldr	r1, [r7]
	bl	stxa_sync
	b	.L4
.L11:
	.align	2
.L10:
	.word	SPITFIRE_TLB_ENTRIES
	.word	TLB_DAR_T32
	.word	ASI_DTLB_DATA_ACCESS_REG
	.word	TD_L
	.word	ASI_ITLB_DATA_ACCESS_REG
	.size	spitfire_tlb_flush_nonlocked, .-spitfire_tlb_flush_nonlocked
	.comm	TLB_DAR_T32,4,4
	.comm	TD_L,4,4
	.comm	SPITFIRE_TLB_ENTRIES,4,4
	.comm	ASI_ITLB_DATA_ACCESS_REG,4,4
	.comm	ASI_DTLB_DATA_ACCESS_REG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
