	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hv_init                        ## -- Begin function hv_init
	.p2align	4, 0x90
_hv_init:                               ## @hv_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_hv_context@GOTPCREL(%rip), %r15
	movl	28(%r15), %edi
	movq	_NR_CPUS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	shll	$3, %edx
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_memset
	movl	24(%r15), %edi
	movl	(%rbx), %edx
	shll	$3, %edx
	xorl	%esi, %esi
	callq	_memset
	movl	20(%r15), %edi
	movl	(%rbx), %edx
	shll	$2, %edx
	xorl	%esi, %esi
	callq	_memset
	movl	16(%r15), %edi
	movl	(%rbx), %edx
	shll	$3, %edx
	xorl	%esi, %esi
	callq	_memset
	xorl	%eax, %eax
	callq	_query_hypervisor_info
	movq	_LINUX_VERSION_CODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	xorl	%edx, %edx
	callq	_generate_guest_id
	movq	%rax, 8(%r15)
	movq	_HV_X64_MSR_GUEST_OS_ID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	%rax, %rsi
	callq	_wrmsrl
	movq	_HV_X64_MSR_HYPERCALL@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	xorl	%esi, %esi
	callq	_rdmsrl
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PAGE_KERNEL_EXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	___vmalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_vmalloc_to_pfn
	movl	(%r15), %edi
	movl	%eax, %esi
	callq	_wrmsrl
	movl	(%r15), %edi
	xorl	%esi, %esi
	callq	_rdmsrl
	movq	%rbx, %rdi
	callq	_vfree
LBB0_2:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hv_context,32,3                ## @hv_context
	.comm	_NR_CPUS,4,2                    ## @NR_CPUS
	.comm	_LINUX_VERSION_CODE,4,2         ## @LINUX_VERSION_CODE
	.comm	_HV_X64_MSR_GUEST_OS_ID,4,2     ## @HV_X64_MSR_GUEST_OS_ID
	.comm	_HV_X64_MSR_HYPERCALL,4,2       ## @HV_X64_MSR_HYPERCALL
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_PAGE_KERNEL_EXEC,4,2           ## @PAGE_KERNEL_EXEC
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hv_init                        ; -- Begin function hv_init
	.p2align	2
_hv_init:                               ; @hv_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _hv_context@GOTPAGE
Lloh1:
	ldr	x19, [x19, _hv_context@GOTPAGEOFF]
	ldr	w0, [x19, #28]
Lloh2:
	adrp	x20, _NR_CPUS@GOTPAGE
Lloh3:
	ldr	x20, [x20, _NR_CPUS@GOTPAGEOFF]
	ldr	w8, [x20]
	lsl	w2, w8, #3
	mov	w1, #0
	bl	_memset
	ldr	w0, [x19, #24]
	ldr	w8, [x20]
	lsl	w2, w8, #3
	mov	w1, #0
	bl	_memset
	ldr	w0, [x19, #20]
	ldr	w8, [x20]
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_memset
	ldr	w0, [x19, #16]
	ldr	w8, [x20]
	lsl	w2, w8, #3
	mov	w1, #0
	bl	_memset
	bl	_query_hypervisor_info
Lloh4:
	adrp	x8, _LINUX_VERSION_CODE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LINUX_VERSION_CODE@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	w0, #32
	mov	w2, #0
	bl	_generate_guest_id
	mov	x1, x0
	str	x0, [x19, #8]
Lloh7:
	adrp	x8, _HV_X64_MSR_GUEST_OS_ID@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HV_X64_MSR_GUEST_OS_ID@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_wrmsrl
Lloh10:
	adrp	x20, _HV_X64_MSR_HYPERCALL@GOTPAGE
Lloh11:
	ldr	x20, [x20, _HV_X64_MSR_HYPERCALL@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	x1, #0
	bl	_rdmsrl
Lloh12:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _PAGE_KERNEL_EXEC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PAGE_KERNEL_EXEC@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	bl	___vmalloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	bl	_vmalloc_to_pfn
	ldr	w8, [x20]
	mov	w1, w0
	mov	x0, x8
	bl	_wrmsrl
	ldr	w0, [x20]
	mov	x1, #0
	bl	_rdmsrl
	mov	x0, x19
	bl	_vfree
LBB0_2:
Lloh21:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_hv_context,32,3                ; @hv_context
	.comm	_NR_CPUS,4,2                    ; @NR_CPUS
	.comm	_LINUX_VERSION_CODE,4,2         ; @LINUX_VERSION_CODE
	.comm	_HV_X64_MSR_GUEST_OS_ID,4,2     ; @HV_X64_MSR_GUEST_OS_ID
	.comm	_HV_X64_MSR_HYPERCALL,4,2       ; @HV_X64_MSR_HYPERCALL
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_PAGE_KERNEL_EXEC,4,2           ; @PAGE_KERNEL_EXEC
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
.subsections_via_symbols
