	.file	"extr_pmap-v6.c_pmap_try_insert_pv_entry.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pmap_try_insert_pv_entry, @function
pmap_try_insert_pv_entry:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, edi
	lea	rdi, pvh_global_lock[rip]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, esi
	mov	esi, DWORD PTR RA_WLOCKED[rip]
	call	rw_assert@PLT
	mov	esi, DWORD PTR MA_OWNED[rip]
	mov	edi, ebp
	call	PMAP_LOCK_ASSERT@PLT
	mov	rax, QWORD PTR pv_entry_high_water[rip]
	cmp	QWORD PTR pv_entry_count[rip], rax
	jl	.L9
.L2:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR FALSE[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	esi, DWORD PTR TRUE[rip]
	mov	edi, ebp
	call	get_pv_entry@PLT
	mov	rsi, rax
	test	rax, rax
	je	.L2
	mov	DWORD PTR [rax], ebx
	mov	edx, DWORD PTR pv_next[rip]
	mov	rdi, r12
	call	TAILQ_INSERT_TAIL@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR TRUE[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	pmap_try_insert_pv_entry, .-pmap_try_insert_pv_entry
	.comm	pvh_global_lock,4,4
	.comm	pv_next,4,4
	.comm	pv_entry_high_water,8,8
	.comm	pv_entry_count,8,8
	.comm	TRUE,4,4
	.comm	RA_WLOCKED,4,4
	.comm	MA_OWNED,4,4
	.comm	FALSE,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_pmap-v6.c_pmap_try_insert_pv_entry.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pmap_try_insert_pv_entry, %function
pmap_try_insert_pv_entry:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r3, .L10
	mov	r6, r1
	ldr	r0, .L10+4
	ldr	r1, [r3]
	mov	r5, r2
	bl	rw_assert
	ldr	r3, .L10+8
	mov	r0, r4
	ldr	r1, [r3]
	bl	PMAP_LOCK_ASSERT
	ldr	r2, .L10+12
	ldr	r3, .L10+16
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L9
.L2:
	ldr	r3, .L10+20
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	ldr	r7, .L10+24
	mov	r0, r4
	ldr	r1, [r7]
	bl	get_pv_entry
	subs	r1, r0, #0
	beq	.L2
	ldr	r3, .L10+28
	str	r6, [r1]
	mov	r0, r5
	ldr	r2, [r3]
	bl	TAILQ_INSERT_TAIL
	ldr	r0, [r7]
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	.align	2
.L10:
	.word	RA_WLOCKED
	.word	pvh_global_lock
	.word	MA_OWNED
	.word	pv_entry_count
	.word	pv_entry_high_water
	.word	FALSE
	.word	TRUE
	.word	pv_next
	.size	pmap_try_insert_pv_entry, .-pmap_try_insert_pv_entry
	.comm	pvh_global_lock,4,4
	.comm	pv_next,4,4
	.comm	pv_entry_high_water,4,4
	.comm	pv_entry_count,4,4
	.comm	TRUE,4,4
	.comm	RA_WLOCKED,4,4
	.comm	MA_OWNED,4,4
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
