	.file	"extr_pmap.c_pmap_enter_quick_locked.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"pmap_enter_quick_locked: managed mapping within the clean submap"
	.align 8
.LC1:
	.string	"pmap_enter_quick_locked: %p %lx"
	.text
	.p2align 4
	.type	pmap_enter_quick_locked, @function
pmap_enter_quick_locked:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, r9
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, r8
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	mov	edi, 1
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	DWORD PTR 4[rsp], ecx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	cmp	DWORD PTR kmi[rip+4], esi
	jg	.L2
	cmp	DWORD PTR kmi[rip], esi
	jg	.L55
.L2:
	lea	rsi, .LC0[rip]
	call	KASSERT@PLT
	mov	esi, DWORD PTR MA_OWNED[rip]
	mov	rdi, r12
	call	PMAP_LOCK_ASSERT@PLT
	mov	edi, DWORD PTR KTR_PMAP[rip]
	mov	ecx, ebp
	mov	rdx, r12
	lea	rsi, .LC1[rip]
	call	CTR2@PLT
	cmp	DWORD PTR VM_MAXUSER_ADDRESS[rip], ebp
	jle	.L3
	mov	edi, ebp
	call	pmap_l2_pindex@PLT
	mov	r13, rax
	test	r14, r14
	je	.L4
	cmp	QWORD PTR 8[r14], rax
	je	.L56
.L4:
	lea	rdx, 20[rsp]
	mov	esi, ebp
	mov	rdi, r12
	call	pmap_pde@PLT
	mov	edx, DWORD PTR 20[rsp]
	mov	r14, rax
	cmp	edx, 1
	je	.L57
.L6:
	cmp	edx, 2
	je	.L58
.L9:
	mov	rsi, r13
	xor	edx, edx
	mov	rdi, r12
	call	_pmap_alloc_l3@PLT
	mov	r13, rax
	test	rax, rax
	je	.L53
.L5:
	mov	rdi, r13
	call	VM_PAGE_TO_PHYS@PLT
	mov	edi, eax
	call	PHYS_TO_DMAP@PLT
	mov	edi, ebp
	mov	r14, rax
	call	pmap_l3_index@PLT
	lea	r14, [r14+rax*4]
	mov	rdi, r14
	call	pmap_load@PLT
	test	eax, eax
	jne	.L59
.L11:
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR VPO_UNMANAGED[rip], eax
	jne	.L12
	mov	rcx, r15
	mov	rdx, rbx
	mov	esi, ebp
	mov	rdi, r12
	call	pmap_try_insert_pv_entry@PLT
	test	eax, eax
	je	.L60
.L12:
	mov	esi, 1
	mov	rdi, r12
	call	pmap_resident_count_inc@PLT
	mov	rdi, rbx
	call	VM_PAGE_TO_PHYS@PLT
	mov	edx, DWORD PTR ATTR_DEFAULT[rip]
	mov	rdi, QWORD PTR 16[rbx]
	mov	r15d, eax
	mov	DWORD PTR 12[rsp], edx
	call	ATTR_IDX@PLT
	mov	edi, DWORD PTR ATTR_AP_RO[rip]
	mov	DWORD PTR 8[rsp], eax
	call	ATTR_AP@PLT
	mov	edx, DWORD PTR 12[rsp]
	or	edx, DWORD PTR L3_PAGE[rip]
	or	edx, r15d
	or	edx, DWORD PTR 8[rsp]
	or	edx, eax
	mov	eax, DWORD PTR 4[rsp]
	test	DWORD PTR VM_PROT_EXECUTE[rip], eax
	je	.L13
	mov	rax, QWORD PTR DEVICE_MEMORY[rip]
	cmp	QWORD PTR 16[rbx], rax
	je	.L13
.L14:
	mov	r9d, DWORD PTR ATTR_UXN[rip]
	or	r9d, edx
	cmp	DWORD PTR VM_MAXUSER_ADDRESS[rip], ebp
	jg	.L61
.L16:
	mov	rcx, QWORD PTR kernel_pmap[rip]
	mov	eax, DWORD PTR [rbx]
	and	eax, DWORD PTR VPO_UNMANAGED[rip]
	cmp	rcx, r12
	je	.L17
	or	r9d, DWORD PTR ATTR_nG[rip]
	test	eax, eax
	je	.L21
.L18:
	mov	eax, DWORD PTR 4[rsp]
	test	DWORD PTR VM_PROT_EXECUTE[rip], eax
	je	.L19
	cmp	rcx, r12
	je	.L19
	mov	rax, QWORD PTR VM_MEMATTR_WRITE_BACK[rip]
	cmp	QWORD PTR 16[rbx], rax
	je	.L62
.L19:
	mov	rdi, r14
	mov	esi, r9d
	call	pmap_store@PLT
	mov	edi, DWORD PTR ishst[rip]
	call	dsb@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L63
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r13
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L55:
	.cfi_restore_state
	xor	edi, edi
	mov	eax, DWORD PTR [rdx]
	test	DWORD PTR VPO_UNMANAGED[rip], eax
	setne	dil
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L17:
	test	eax, eax
	jne	.L19
.L21:
	mov	edx, DWORD PTR ATTR_SW_MANAGED[rip]
	mov	esi, DWORD PTR ATTR_AF[rip]
	or	edx, r9d
	not	esi
	and	esi, edx
	mov	r9d, esi
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L13:
	or	edx, DWORD PTR ATTR_XN[rip]
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, QWORD PTR kernel_pmap[rip]
	lea	rdx, 20[rsp]
	mov	esi, ebp
	call	pmap_pde@PLT
	xor	edi, edi
	movsx	rsi, ebp
	test	rax, rax
	mov	r14, rax
	setne	dil
	call	KASSERT@PLT
	movsx	rsi, DWORD PTR 20[rsp]
	xor	edi, edi
	cmp	esi, 2
	sete	dil
	xor	r13d, r13d
	call	KASSERT@PLT
	mov	rdi, r14
	mov	esi, ebp
	call	pmap_l2_to_l3@PLT
	mov	rdi, rax
	mov	r14, rax
	call	pmap_load@PLT
	test	eax, eax
	je	.L11
.L53:
	xor	r13d, r13d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L59:
	sub	DWORD PTR 24[r13], 1
	xor	r13d, r13d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L61:
	mov	edi, DWORD PTR ATTR_AP_USER[rip]
	mov	DWORD PTR 8[rsp], edx
	call	ATTR_AP@PLT
	mov	edx, DWORD PTR 8[rsp]
	or	edx, DWORD PTR ATTR_PXN[rip]
	or	edx, eax
	mov	r9d, edx
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L56:
	add	DWORD PTR 24[r14], 1
	mov	r13, r14
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L58:
	mov	rdi, r14
	call	pmap_load@PLT
	test	eax, eax
	je	.L9
	mov	rdi, r14
	call	pmap_load@PLT
	mov	edi, DWORD PTR ATTR_MASK[rip]
	not	edi
	and	edi, eax
	call	PHYS_TO_VM_PAGE@PLT
	add	DWORD PTR 24[rax], 1
	mov	r13, rax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L60:
	test	r13, r13
	je	.L53
	lea	r14, 16[rsp]
	mov	rdi, r14
	call	SLIST_INIT@PLT
	mov	rcx, r14
	mov	rdx, r13
	mov	esi, ebp
	mov	rdi, r12
	call	pmap_unwire_l3@PLT
	test	rax, rax
	je	.L53
	mov	esi, ebp
	mov	rdi, r12
	call	pmap_invalidate_page@PLT
	mov	esi, 1
	mov	rdi, r14
	call	vm_page_free_pages_toq@PLT
	jmp	.L53
	.p2align 4,,10
	.p2align 3
.L57:
	mov	esi, ebp
	mov	rdi, rax
	call	pmap_l1_to_l2@PLT
	mov	rdi, rax
	call	pmap_load@PLT
	and	eax, DWORD PTR ATTR_DESCR_MASK[rip]
	mov	edx, DWORD PTR 20[rsp]
	cmp	eax, DWORD PTR L2_BLOCK[rip]
	jne	.L6
	jmp	.L53
	.p2align 4,,10
	.p2align 3
.L62:
	mov	ebp, DWORD PTR PAGE_SIZE[rip]
	mov	edi, r15d
	mov	DWORD PTR 4[rsp], r9d
	call	PHYS_TO_DMAP@PLT
	mov	rdi, rax
	mov	esi, ebp
	call	cpu_icache_sync_range@PLT
	mov	r9d, DWORD PTR 4[rsp]
	jmp	.L19
.L63:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	pmap_enter_quick_locked, .-pmap_enter_quick_locked
	.comm	kmi,8,8
	.comm	kernel_pmap,8,8
	.comm	ishst,4,4
	.comm	VPO_UNMANAGED,4,4
	.comm	VM_PROT_EXECUTE,4,4
	.comm	VM_MEMATTR_WRITE_BACK,8,8
	.comm	VM_MAXUSER_ADDRESS,4,4
	.comm	PAGE_SIZE,4,4
	.comm	MA_OWNED,4,4
	.comm	L3_PAGE,4,4
	.comm	L2_BLOCK,4,4
	.comm	KTR_PMAP,4,4
	.comm	DEVICE_MEMORY,8,8
	.comm	ATTR_nG,4,4
	.comm	ATTR_XN,4,4
	.comm	ATTR_UXN,4,4
	.comm	ATTR_SW_MANAGED,4,4
	.comm	ATTR_PXN,4,4
	.comm	ATTR_MASK,4,4
	.comm	ATTR_DESCR_MASK,4,4
	.comm	ATTR_DEFAULT,4,4
	.comm	ATTR_AP_USER,4,4
	.comm	ATTR_AP_RO,4,4
	.comm	ATTR_AF,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.c_pmap_enter_quick_locked.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"pmap_enter_quick_locked: managed mapping within the"
	.ascii	" clean submap\000"
	.align	2
.LC1:
	.ascii	"pmap_enter_quick_locked: %p %lx\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pmap_enter_quick_locked, %function
pmap_enter_quick_locked:
	@ args = 8, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r1
	ldr	r1, .L62
	mov	r9, r3
	ldr	r3, .L62+4
	sub	sp, sp, #36
	mov	r5, r0
	ldr	r0, [r1, #4]
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	ldr	r3, [sp, #76]
	cmp	r0, r4
	mov	r7, r2
	ldr	r8, [sp, #72]
	str	r3, [sp, #4]
	bgt	.L24
	ldr	r3, [r1]
	cmp	r3, r4
	bgt	.L53
.L24:
	mov	r0, #1
.L2:
	ldr	r1, .L62+8
	bl	KASSERT
	ldr	r3, .L62+12
	mov	r0, r5
	ldr	r1, [r3]
	bl	PMAP_LOCK_ASSERT
	ldr	r3, .L62+16
	ldr	r10, .L62+20
	ldr	r0, [r3]
	mov	r2, r5
	mov	r3, r4
	ldr	r1, .L62+24
	bl	CTR2
	ldr	r3, [r10]
	cmp	r3, r4
	ble	.L3
	mov	r0, r4
	bl	pmap_l2_pindex
	cmp	r8, #0
	mov	r6, r0
	beq	.L4
	ldr	r3, [r8, #4]
	cmp	r3, r0
	beq	.L54
.L4:
	mov	r1, r4
	mov	r0, r5
	add	r2, sp, #24
	bl	pmap_pde
	ldr	r3, [sp, #24]
	mov	r8, r0
	cmp	r3, #1
	beq	.L55
.L6:
	cmp	r3, #2
	beq	.L56
.L9:
	mov	r1, r6
	mov	r2, #0
	mov	r0, r5
	bl	_pmap_alloc_l3
	subs	r6, r0, #0
	beq	.L50
.L5:
	mov	r0, r6
	bl	VM_PAGE_TO_PHYS
	bl	PHYS_TO_DMAP
	mov	r8, r0
	mov	r0, r4
	bl	pmap_l3_index
	add	r8, r8, r0, lsl #2
	mov	r0, r8
	bl	pmap_load
	cmp	r0, #0
	bne	.L57
.L11:
	ldr	fp, .L62+28
	ldr	r2, [r7]
	ldr	r3, [fp]
	tst	r2, r3
	bne	.L12
	ldr	r3, [sp, #4]
	mov	r2, r7
	mov	r1, r4
	mov	r0, r5
	bl	pmap_try_insert_pv_entry
	subs	r3, r0, #0
	str	r3, [sp, #4]
	beq	.L58
.L12:
	mov	r1, #1
	mov	r0, r5
	bl	pmap_resident_count_inc
	mov	r0, r7
	bl	VM_PAGE_TO_PHYS
	mov	r2, r0
	ldr	r3, .L62+32
	ldr	r0, [r7, #8]
	ldr	r1, [r3]
	str	r2, [sp, #4]
	str	r1, [sp, #12]
	bl	ATTR_IDX
	ldr	r2, .L62+36
	str	r0, [sp, #8]
	ldr	r0, [r2]
	bl	ATTR_AP
	ldr	r3, .L62+40
	ldr	r1, [sp, #12]
	ldr	r3, [r3]
	ldr	r2, .L62+44
	orr	r3, r1, r3
	ldr	r1, [sp, #4]
	ldr	ip, [r2]
	orr	r3, r3, r1
	ldr	r1, [sp, #8]
	tst	r9, ip
	orr	r3, r3, r1
	orr	r3, r3, r0
	beq	.L13
	ldr	r1, .L62+48
	ldr	r0, [r7, #8]
	ldr	r1, [r1]
	cmp	r0, r1
	beq	.L13
	ldr	r1, [r10]
	cmp	r1, r4
	bgt	.L59
.L15:
	ldr	r1, .L62+52
	ldr	r4, [r1]
	orr	r4, r3, r4
.L16:
	ldr	r3, .L62+56
	ldr	r0, [fp]
	ldr	r1, [r3]
	ldr	r3, [r7]
	cmp	r1, r5
	and	r3, r3, r0
	beq	.L17
	ldr	r0, .L62+60
	cmp	r3, #0
	ldr	r3, [r0]
	orr	r4, r4, r3
	beq	.L21
.L18:
	ldr	r3, [r2]
	and	r9, r9, r3
	cmp	r1, r5
	cmpne	r9, #0
	bne	.L60
.L19:
	mov	r1, r4
	mov	r0, r8
	bl	pmap_store
	ldr	r3, .L62+64
	ldr	r0, [r3]
	bl	dsb
.L1:
	ldr	r3, .L62+4
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L61
	mov	r0, r6
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L53:
	ldr	r3, .L62+28
	ldr	r2, [r2]
	ldr	r3, [r3]
	tst	r2, r3
	movne	r0, #1
	moveq	r0, #0
	b	.L2
.L17:
	cmp	r3, #0
	bne	.L19
.L21:
	ldr	r0, .L62+68
	ldr	r3, .L62+72
	ldr	r0, [r0]
	ldr	r3, [r3]
	orr	r4, r4, r0
	bic	r4, r4, r3
	b	.L18
.L13:
	ldr	r1, .L62+76
	ldr	r1, [r1]
	orr	r3, r3, r1
	ldr	r1, [r10]
	cmp	r1, r4
	ble	.L15
.L59:
	ldr	r1, .L62+80
	str	r3, [sp, #8]
	ldr	r0, [r1]
	bl	ATTR_AP
	ldr	r1, .L62+84
	ldr	r3, [sp, #8]
	ldr	r4, [r1]
	ldr	r2, .L62+44
	orr	r4, r3, r4
	orr	r4, r4, r0
	b	.L16
.L57:
	ldr	r3, [r6, #12]
	sub	r3, r3, #1
	str	r3, [r6, #12]
.L50:
	mov	r6, #0
	b	.L1
.L3:
	ldr	r3, .L62+56
	add	r2, sp, #24
	ldr	r0, [r3]
	mov	r1, r4
	bl	pmap_pde
	mov	r6, r0
	subs	r0, r0, #0
	movne	r0, #1
	mov	r1, r4
	bl	KASSERT
	ldr	r1, [sp, #24]
	sub	r0, r1, #2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	KASSERT
	mov	r1, r4
	mov	r0, r6
	bl	pmap_l2_to_l3
	mov	r8, r0
	bl	pmap_load
	subs	r6, r0, #0
	beq	.L11
	mov	r6, #0
	b	.L1
.L60:
	ldr	r3, .L62+88
	ldr	r2, [r7, #8]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L19
	ldr	r0, [sp, #4]
	bl	PHYS_TO_DMAP
	ldr	r3, .L62+92
	ldr	r1, [r3]
	bl	cpu_icache_sync_range
	b	.L19
.L54:
	ldr	r3, [r8, #12]
	mov	r6, r8
	add	r3, r3, #1
	str	r3, [r8, #12]
	b	.L5
.L56:
	mov	r0, r8
	bl	pmap_load
	cmp	r0, #0
	beq	.L9
	mov	r0, r8
	bl	pmap_load
	ldr	r3, .L62+96
	ldr	r3, [r3]
	bic	r0, r0, r3
	bl	PHYS_TO_VM_PAGE
	ldr	r3, [r0, #12]
	mov	r6, r0
	add	r3, r3, #1
	str	r3, [r0, #12]
	b	.L5
.L58:
	cmp	r6, #0
	beq	.L50
	add	r0, sp, #20
	bl	SLIST_INIT
	mov	r2, r6
	mov	r1, r4
	mov	r0, r5
	add	r3, sp, #20
	bl	pmap_unwire_l3
	cmp	r0, #0
	beq	.L50
	mov	r1, r4
	mov	r0, r5
	bl	pmap_invalidate_page
	mov	r1, #1
	add	r0, sp, #20
	ldr	r6, [sp, #4]
	bl	vm_page_free_pages_toq
	b	.L1
.L55:
	mov	r1, r4
	bl	pmap_l1_to_l2
	bl	pmap_load
	ldr	r2, .L62+100
	ldr	r3, .L62+104
	ldr	r2, [r2]
	ldr	r3, [r3]
	and	r0, r0, r2
	cmp	r0, r3
	ldrne	r3, [sp, #24]
	bne	.L6
	b	.L50
.L61:
	bl	__stack_chk_fail
.L63:
	.align	2
.L62:
	.word	kmi
	.word	.LC2
	.word	.LC0
	.word	MA_OWNED
	.word	KTR_PMAP
	.word	VM_MAXUSER_ADDRESS
	.word	.LC1
	.word	VPO_UNMANAGED
	.word	ATTR_DEFAULT
	.word	ATTR_AP_RO
	.word	L3_PAGE
	.word	VM_PROT_EXECUTE
	.word	DEVICE_MEMORY
	.word	ATTR_UXN
	.word	kernel_pmap
	.word	ATTR_nG
	.word	ishst
	.word	ATTR_SW_MANAGED
	.word	ATTR_AF
	.word	ATTR_XN
	.word	ATTR_AP_USER
	.word	ATTR_PXN
	.word	VM_MEMATTR_WRITE_BACK
	.word	PAGE_SIZE
	.word	ATTR_MASK
	.word	ATTR_DESCR_MASK
	.word	L2_BLOCK
	.size	pmap_enter_quick_locked, .-pmap_enter_quick_locked
	.comm	kmi,8,4
	.comm	kernel_pmap,4,4
	.comm	ishst,4,4
	.comm	VPO_UNMANAGED,4,4
	.comm	VM_PROT_EXECUTE,4,4
	.comm	VM_MEMATTR_WRITE_BACK,4,4
	.comm	VM_MAXUSER_ADDRESS,4,4
	.comm	PAGE_SIZE,4,4
	.comm	MA_OWNED,4,4
	.comm	L3_PAGE,4,4
	.comm	L2_BLOCK,4,4
	.comm	KTR_PMAP,4,4
	.comm	DEVICE_MEMORY,4,4
	.comm	ATTR_nG,4,4
	.comm	ATTR_XN,4,4
	.comm	ATTR_UXN,4,4
	.comm	ATTR_SW_MANAGED,4,4
	.comm	ATTR_PXN,4,4
	.comm	ATTR_MASK,4,4
	.comm	ATTR_DESCR_MASK,4,4
	.comm	ATTR_DEFAULT,4,4
	.comm	ATTR_AP_USER,4,4
	.comm	ATTR_AP_RO,4,4
	.comm	ATTR_AF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
