	.file	"extr_pmap.c_pmap_get_mapping.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	pmap_get_mapping
	.type	pmap_get_mapping, @function
pmap_get_mapping:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, 1
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	pmap_valid_bit@PLT
	mov	edi, ebp
	mov	r13d, eax
	call	PMAP_LOCK@PLT
	mov	edi, ebp
	mov	esi, r12d
	call	pmap_pml4e@PLT
	mov	rdi, rax
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rbx], eax
	test	eax, r13d
	jne	.L13
.L2:
	mov	edi, ebp
	call	PMAP_UNLOCK@PLT
	mov	DWORD PTR [r14], r15d
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L13:
	.cfi_restore_state
	mov	esi, r12d
	mov	r15d, 2
	call	pmap_pml4e_to_pdpe@PLT
	mov	rdi, rax
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 4[rbx], eax
	test	eax, r13d
	je	.L2
	test	DWORD PTR PG_PS[rip], eax
	jne	.L2
	mov	esi, r12d
	mov	r15d, 3
	call	pmap_pdpe_to_pde@PLT
	mov	rdi, rax
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 8[rbx], eax
	test	eax, r13d
	je	.L2
	test	DWORD PTR PG_PS[rip], eax
	jne	.L2
	mov	esi, r12d
	mov	r15d, 4
	call	pmap_pde_to_pte@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 12[rbx], eax
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	pmap_get_mapping, .-pmap_get_mapping
	.comm	PG_PS,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_get_mapping.c"
	.text
	.align	2
	.global	pmap_get_mapping
	.syntax unified
	.arm
	.fpu softvfp
	.type	pmap_get_mapping, %function
pmap_get_mapping:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r2
	mov	r6, r1
	mov	r4, r0
	mov	r8, r3
	bl	pmap_valid_bit
	mov	r7, r0
	mov	r0, r4
	bl	PMAP_LOCK
	mov	r1, r6
	mov	r0, r4
	bl	pmap_pml4e
	ldr	r2, [r0]
	tst	r2, r7
	moveq	r6, #1
	str	r2, [r5]
	bne	.L10
.L2:
	mov	r0, r4
	bl	PMAP_UNLOCK
	str	r6, [r8]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	mov	r1, r6
	bl	pmap_pml4e_to_pdpe
	ldr	r3, [r0]
	tst	r3, r7
	str	r3, [r5, #4]
	beq	.L5
	ldr	r9, .L12
	ldr	r2, [r9]
	tst	r3, r2
	beq	.L11
.L5:
	mov	r6, #2
	b	.L2
.L11:
	mov	r1, r6
	bl	pmap_pdpe_to_pde
	ldr	r3, [r0]
	tst	r3, r7
	str	r3, [r5, #8]
	beq	.L7
	ldr	r2, [r9]
	tst	r3, r2
	bne	.L7
	mov	r1, r6
	bl	pmap_pde_to_pte
	ldr	r3, [r0]
	mov	r6, #4
	str	r3, [r5, #12]
	b	.L2
.L7:
	mov	r6, #3
	b	.L2
.L13:
	.align	2
.L12:
	.word	PG_PS
	.size	pmap_get_mapping, .-pmap_get_mapping
	.comm	PG_PS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
