	.file	"extr_mmu.c___create_hyp_private_mapping.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	__create_hyp_private_mapping, @function
__create_hyp_private_mapping:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, edi
	lea	rdi, kvm_hyp_pgd_mutex[rip]
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, ecx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r14, QWORD PTR hyp_pgd[rip]
	mov	QWORD PTR [rsp], rdx
	call	mutex_lock@PLT
	mov	edi, ebp
	call	offset_in_page@PLT
	lea	rdi, [rax+r12]
	call	PAGE_ALIGN@PLT
	mov	r12, QWORD PTR io_map_base[rip]
	mov	r13, r12
	mov	r15, r12
	sub	r13, rax
	mov	rax, QWORD PTR VA_BITS[rip]
	xor	r15, r13
	lea	rdi, -1[rax]
	call	BIT@PLT
	test	r15, rax
	je	.L2
	mov	edx, DWORD PTR ENOMEM[rip]
	lea	rdi, kvm_hyp_pgd_mutex[rip]
	mov	r15d, edx
	mov	DWORD PTR 12[rsp], edx
	call	mutex_unlock@PLT
	mov	edx, DWORD PTR 12[rsp]
	neg	r15d
	test	edx, edx
	je	.L4
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	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
.L2:
	.cfi_restore_state
	lea	rdi, kvm_hyp_pgd_mutex[rip]
	mov	QWORD PTR io_map_base[rip], r13
	call	mutex_unlock@PLT
.L4:
	xor	eax, eax
	call	__kvm_cpu_uses_extended_idmap@PLT
	mov	edi, ebp
	test	rax, rax
	cmovne	r14, QWORD PTR boot_hyp_pgd[rip]
	call	__phys_to_pfn@PLT
	mov	r15d, eax
	xor	eax, eax
	call	__kvm_idmap_ptrs_per_pgd@PLT
	mov	r8d, r15d
	mov	r9d, ebx
	mov	rcx, r12
	mov	esi, eax
	mov	rdx, r13
	mov	rdi, r14
	call	__create_hyp_mappings@PLT
	mov	r15d, eax
	test	eax, eax
	jne	.L1
.L3:
	endbr64
	mov	edi, ebp
	call	offset_in_page@PLT
	add	r13, rax
	mov	rax, QWORD PTR [rsp]
	mov	QWORD PTR [rax], r13
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	__create_hyp_private_mapping, .-__create_hyp_private_mapping
	.comm	kvm_hyp_pgd_mutex,4,4
	.comm	io_map_base,8,8
	.comm	hyp_pgd,8,8
	.comm	boot_hyp_pgd,8,8
	.comm	VA_BITS,8,8
	.comm	ENOMEM,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_mmu.c___create_hyp_private_mapping.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__create_hyp_private_mapping, %function
__create_hyp_private_mapping:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r0
	ldr	ip, .L11
	sub	sp, sp, #8
	ldr	r0, .L11+4
	mov	r4, r1
	mov	r8, r2
	mov	r7, r3
	ldr	r9, [ip]
	bl	mutex_lock
	mov	r0, r6
	bl	offset_in_page
	add	r0, r0, r4
	bl	PAGE_ALIGN
	ldr	r3, .L11+8
	mov	r4, r0
	ldr	r0, [r3]
	ldr	r5, .L11+12
	sub	r0, r0, #1
	ldr	r10, [r5]
	bl	BIT
	sub	r4, r10, r4
	eor	r3, r10, r4
	tst	r3, r0
	beq	.L2
	ldr	r3, .L11+16
	ldr	r0, .L11+4
	ldr	r5, [r3]
	bl	mutex_unlock
	cmp	r5, #0
	rsb	r5, r5, #0
	beq	.L4
.L1:
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	ldr	r0, .L11+4
	str	r4, [r5]
	bl	mutex_unlock
.L4:
	bl	__kvm_cpu_uses_extended_idmap
	cmp	r0, #0
	ldrne	r3, .L11+20
	ldrne	r9, [r3]
	bl	__kvm_idmap_ptrs_per_pgd
	mov	r5, r0
	mov	r0, r6
	bl	__phys_to_pfn
	mov	r1, r5
	stm	sp, {r0, r7}
	mov	r3, r10
	mov	r0, r9
	mov	r2, r4
	bl	__create_hyp_mappings
	subs	r5, r0, #0
	bne	.L1
.L3:
	mov	r0, r6
	bl	offset_in_page
	add	r4, r0, r4
	mov	r0, r5
	str	r4, [r8]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	.align	2
.L11:
	.word	hyp_pgd
	.word	kvm_hyp_pgd_mutex
	.word	VA_BITS
	.word	io_map_base
	.word	ENOMEM
	.word	boot_hyp_pgd
	.size	__create_hyp_private_mapping, .-__create_hyp_private_mapping
	.comm	kvm_hyp_pgd_mutex,4,4
	.comm	io_map_base,4,4
	.comm	hyp_pgd,4,4
	.comm	boot_hyp_pgd,4,4
	.comm	VA_BITS,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
