	.file	"extr_hv.c_hv_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	hv_init
	.type	hv_init, @function
hv_init:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR NR_CPUS[rip]
	mov	edi, DWORD PTR hv_context[rip+28]
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xor	esi, esi
	lea	edx, 0[0+rax*8]
	call	memset@PLT
	mov	eax, DWORD PTR NR_CPUS[rip]
	mov	edi, DWORD PTR hv_context[rip+24]
	xor	esi, esi
	lea	edx, 0[0+rax*8]
	call	memset@PLT
	mov	eax, DWORD PTR NR_CPUS[rip]
	mov	edi, DWORD PTR hv_context[rip+20]
	xor	esi, esi
	lea	edx, 0[0+rax*4]
	call	memset@PLT
	mov	eax, DWORD PTR NR_CPUS[rip]
	mov	edi, DWORD PTR hv_context[rip+16]
	xor	esi, esi
	lea	edx, 0[0+rax*8]
	call	memset@PLT
	xor	eax, eax
	call	query_hypervisor_info@PLT
	mov	esi, DWORD PTR LINUX_VERSION_CODE[rip]
	xor	edx, edx
	mov	edi, 32
	call	generate_guest_id@PLT
	mov	edi, DWORD PTR HV_X64_MSR_GUEST_OS_ID[rip]
	mov	rsi, rax
	mov	QWORD PTR hv_context[rip+8], rax
	call	wrmsrl@PLT
	mov	edi, DWORD PTR HV_X64_MSR_HYPERCALL[rip]
	xor	esi, esi
	call	rdmsrl@PLT
	mov	edx, DWORD PTR PAGE_KERNEL_EXEC[rip]
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, DWORD PTR PAGE_SIZE[rip]
	call	__vmalloc@PLT
	test	rax, rax
	je	.L2
	mov	rdi, rax
	mov	rbp, rax
	call	vmalloc_to_pfn@PLT
	mov	edi, DWORD PTR HV_X64_MSR_HYPERCALL[rip]
	mov	esi, eax
	call	wrmsrl@PLT
	mov	edi, DWORD PTR HV_X64_MSR_HYPERCALL[rip]
	xor	esi, esi
	call	rdmsrl@PLT
	mov	rdi, rbp
	call	vfree@PLT
.L2:
	mov	eax, DWORD PTR ENOTSUPP[rip]
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	hv_init, .-hv_init
	.comm	hv_context,32,32
	.comm	PAGE_SIZE,4,4
	.comm	PAGE_KERNEL_EXEC,4,4
	.comm	NR_CPUS,4,4
	.comm	LINUX_VERSION_CODE,4,4
	.comm	HV_X64_MSR_HYPERCALL,4,4
	.comm	HV_X64_MSR_GUEST_OS_ID,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOTSUPP,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_hv.c_hv_init.c"
	.text
	.align	2
	.global	hv_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	hv_init, %function
hv_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, .L8
	ldr	r4, .L8+4
	ldr	r2, [r5]
	mov	r1, #0
	ldr	r0, [r4, #20]
	lsl	r2, r2, #2
	bl	memset
	ldr	r2, [r5]
	mov	r1, #0
	ldr	r0, [r4, #16]
	lsl	r2, r2, #2
	bl	memset
	ldr	r2, [r5]
	mov	r1, #0
	ldr	r0, [r4, #12]
	lsl	r2, r2, #2
	bl	memset
	ldr	r2, [r5]
	mov	r1, #0
	lsl	r2, r2, #2
	ldr	r0, [r4, #8]
	bl	memset
	bl	query_hypervisor_info
	ldr	r3, .L8+8
	mov	r2, #0
	ldr	r1, [r3]
	mov	r0, #32
	bl	generate_guest_id
	mov	r1, r0
	ldr	r3, .L8+12
	ldr	r5, .L8+16
	ldr	r0, [r3]
	str	r1, [r4, #4]
	bl	wrmsrl
	mov	r1, #0
	ldr	r0, [r5]
	bl	rdmsrl
	ldr	r3, .L8+20
	ldr	r2, .L8+24
	ldr	r1, .L8+28
	ldr	r2, [r2]
	ldr	r1, [r1]
	ldr	r0, [r3]
	bl	__vmalloc
	subs	r4, r0, #0
	beq	.L2
	bl	vmalloc_to_pfn
	mov	r1, r0
	ldr	r0, [r5]
	bl	wrmsrl
	mov	r1, #0
	ldr	r0, [r5]
	bl	rdmsrl
	mov	r0, r4
	bl	vfree
.L2:
	ldr	r3, .L8+32
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L9:
	.align	2
.L8:
	.word	NR_CPUS
	.word	hv_context
	.word	LINUX_VERSION_CODE
	.word	HV_X64_MSR_GUEST_OS_ID
	.word	HV_X64_MSR_HYPERCALL
	.word	PAGE_SIZE
	.word	PAGE_KERNEL_EXEC
	.word	GFP_KERNEL
	.word	ENOTSUPP
	.size	hv_init, .-hv_init
	.comm	hv_context,24,4
	.comm	PAGE_SIZE,4,4
	.comm	PAGE_KERNEL_EXEC,4,4
	.comm	NR_CPUS,4,4
	.comm	LINUX_VERSION_CODE,4,4
	.comm	HV_X64_MSR_HYPERCALL,4,4
	.comm	HV_X64_MSR_GUEST_OS_ID,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOTSUPP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
