	.file	"extr_pmap-v4.c_pmap_free_l1.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pmap_free_l1, @function
pmap_free_l1:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rbp, QWORD PTR 8[rdi]
	lea	rdi, l1_lru_lock[rip]
	call	mtx_lock@PLT
	mov	rax, QWORD PTR 0[rbp]
	cmp	rax, QWORD PTR PMAP_DOMAINS[rip]
	jl	.L7
.L2:
	mov	esi, DWORD PTR 16[rbp]
	movsx	rcx, DWORD PTR [rbx]
	lea	rdi, l1_lru_list[rip]
	mov	rdx, QWORD PTR 8[rbp]
	mov	DWORD PTR -4[rdx+rcx*4], esi
	mov	edx, DWORD PTR [rbx]
	mov	rsi, rbp
	sub	edx, 1
	sub	rax, 1
	mov	DWORD PTR 16[rbp], edx
	mov	edx, DWORD PTR l1_lru[rip]
	mov	QWORD PTR 0[rbp], rax
	jne	.L3
	call	TAILQ_INSERT_HEAD@PLT
.L4:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	lea	rdi, l1_lru_lock[rip]
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	mtx_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	call	TAILQ_INSERT_TAIL@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edx, DWORD PTR l1_lru[rip]
	mov	rsi, rbp
	lea	rdi, l1_lru_list[rip]
	call	TAILQ_REMOVE@PLT
	mov	rax, QWORD PTR 0[rbp]
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	pmap_free_l1, .-pmap_free_l1
	.comm	l1_lru_lock,4,4
	.comm	l1_lru_list,4,4
	.comm	l1_lru,4,4
	.comm	PMAP_DOMAINS,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_pmap-v4.c_pmap_free_l1.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pmap_free_l1, %function
pmap_free_l1:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldr	r0, .L9
	ldr	r4, [r5, #4]
	bl	mtx_lock
	ldr	r2, .L9+4
	ldr	r3, [r4]
	ldr	r2, [r2]
	ldr	r6, .L9+8
	cmp	r3, r2
	blt	.L6
.L2:
	ldr	r2, [r5]
	ldr	r0, [r4, #8]
	ldr	r1, [r4, #4]
	sub	r2, r2, #-1073741823
	str	r0, [r1, r2, lsl #2]
	ldr	r2, [r5]
	sub	r3, r3, #1
	sub	r2, r2, #1
	cmp	r3, #0
	str	r2, [r4, #8]
	mov	r1, r4
	ldr	r2, [r6]
	ldr	r0, .L9+12
	str	r3, [r4]
	bne	.L3
	bl	TAILQ_INSERT_HEAD
	pop	{r4, r5, r6, lr}
	ldr	r0, .L9
	b	mtx_unlock
.L3:
	bl	TAILQ_INSERT_TAIL
	pop	{r4, r5, r6, lr}
	ldr	r0, .L9
	b	mtx_unlock
.L6:
	mov	r1, r4
	ldr	r2, [r6]
	ldr	r0, .L9+12
	bl	TAILQ_REMOVE
	ldr	r3, [r4]
	b	.L2
.L10:
	.align	2
.L9:
	.word	l1_lru_lock
	.word	PMAP_DOMAINS
	.word	l1_lru
	.word	l1_lru_list
	.size	pmap_free_l1, .-pmap_free_l1
	.comm	l1_lru_lock,4,4
	.comm	l1_lru_list,4,4
	.comm	l1_lru,4,4
	.comm	PMAP_DOMAINS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
