	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmm_host_state_init            ## -- Begin function vmm_host_state_init
	.p2align	4, 0x90
_vmm_host_state_init:                   ## @vmm_host_state_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	_MSR_EFER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rdmsr
	movq	_vmm_host_efer@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_MSR_PAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rdmsr
	movq	_vmm_host_pat@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	xorl	%eax, %eax
	callq	_rcr0
	movq	_CR0_TS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_vmm_host_cr0@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	callq	_rcr4
	movq	_CR4_PGE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_vmm_host_cr4@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_CR4_XSAVE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_vmm_xsave_limits@GOTPCREL(%rip), %rbx
	movl	$1, (%rbx)
	xorl	%edi, %edi
	callq	_rxcr
	movq	_vmm_host_xcr0@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_XFEATURE_AVX@GOTPCREL(%rip), %rcx
	movq	_XFEATURE_MPX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_XFEATURE_AVX512@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	andl	%eax, %edx
	movl	%edx, 4(%rbx)
	leaq	-32(%rbp), %rdx
	movl	$13, %edi
	xorl	%esi, %esi
	callq	_cpuid_count
	movl	-28(%rbp), %eax
	movl	%eax, 8(%rbx)
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MSR_EFER,4,2                   ## @MSR_EFER
	.comm	_vmm_host_efer,8,3              ## @vmm_host_efer
	.comm	_MSR_PAT,4,2                    ## @MSR_PAT
	.comm	_vmm_host_pat,8,3               ## @vmm_host_pat
	.comm	_CR0_TS,4,2                     ## @CR0_TS
	.comm	_vmm_host_cr0,4,2               ## @vmm_host_cr0
	.comm	_CR4_PGE,4,2                    ## @CR4_PGE
	.comm	_vmm_host_cr4,4,2               ## @vmm_host_cr4
	.comm	_CR4_XSAVE,4,2                  ## @CR4_XSAVE
	.comm	_vmm_xsave_limits,12,2          ## @vmm_xsave_limits
	.comm	_vmm_host_xcr0,4,2              ## @vmm_host_xcr0
	.comm	_XFEATURE_AVX,4,2               ## @XFEATURE_AVX
	.comm	_XFEATURE_MPX,4,2               ## @XFEATURE_MPX
	.comm	_XFEATURE_AVX512,4,2            ## @XFEATURE_AVX512
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmm_host_state_init            ; -- Begin function vmm_host_state_init
	.p2align	2
_vmm_host_state_init:                   ; @vmm_host_state_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _MSR_EFER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSR_EFER@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_rdmsr
Lloh6:
	adrp	x8, _vmm_host_efer@GOTPAGE
Lloh7:
	ldr	x8, [x8, _vmm_host_efer@GOTPAGEOFF]
Lloh8:
	str	x0, [x8]
Lloh9:
	adrp	x8, _MSR_PAT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MSR_PAT@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_rdmsr
Lloh12:
	adrp	x8, _vmm_host_pat@GOTPAGE
Lloh13:
	ldr	x8, [x8, _vmm_host_pat@GOTPAGEOFF]
Lloh14:
	str	x0, [x8]
	bl	_rcr0
Lloh15:
	adrp	x8, _CR0_TS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CR0_TS@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh18:
	adrp	x9, _vmm_host_cr0@GOTPAGE
Lloh19:
	ldr	x9, [x9, _vmm_host_cr0@GOTPAGEOFF]
Lloh20:
	str	w8, [x9]
	bl	_rcr4
Lloh21:
	adrp	x8, _CR4_PGE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CR4_PGE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _vmm_host_cr4@GOTPAGE
Lloh25:
	ldr	x9, [x9, _vmm_host_cr4@GOTPAGEOFF]
	orr	w8, w8, w0
Lloh26:
	str	w8, [x9]
Lloh27:
	adrp	x9, _CR4_XSAVE@GOTPAGE
Lloh28:
	ldr	x9, [x9, _CR4_XSAVE@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh30:
	adrp	x19, _vmm_xsave_limits@GOTPAGE
Lloh31:
	ldr	x19, [x19, _vmm_xsave_limits@GOTPAGEOFF]
	mov	w8, #1
	str	w8, [x19]
	mov	w0, #0
	bl	_rxcr
Lloh32:
	adrp	x8, _vmm_host_xcr0@GOTPAGE
Lloh33:
	ldr	x8, [x8, _vmm_host_xcr0@GOTPAGEOFF]
Lloh34:
	adrp	x9, _XFEATURE_AVX@GOTPAGE
Lloh35:
	ldr	x9, [x9, _XFEATURE_AVX@GOTPAGEOFF]
Lloh36:
	str	w0, [x8]
Lloh37:
	ldr	w8, [x9]
Lloh38:
	adrp	x9, _XFEATURE_MPX@GOTPAGE
Lloh39:
	ldr	x9, [x9, _XFEATURE_MPX@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh41:
	adrp	x9, _XFEATURE_AVX512@GOTPAGE
Lloh42:
	ldr	x9, [x9, _XFEATURE_AVX512@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	orr	w8, w8, w9
	and	w8, w8, w0
	str	w8, [x19, #4]
	add	x2, sp, #8
	mov	w0, #13
	mov	w1, #0
	bl	_cpuid_count
	ldr	w8, [sp, #12]
	str	w8, [x19, #8]
LBB0_2:
	ldr	x8, [sp, #24]
Lloh44:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh45:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotStr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh37
	.loh AdrpLdrGotStr	Lloh32, Lloh33, Lloh36
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_MSR_EFER,4,2                   ; @MSR_EFER
	.comm	_vmm_host_efer,8,3              ; @vmm_host_efer
	.comm	_MSR_PAT,4,2                    ; @MSR_PAT
	.comm	_vmm_host_pat,8,3               ; @vmm_host_pat
	.comm	_CR0_TS,4,2                     ; @CR0_TS
	.comm	_vmm_host_cr0,4,2               ; @vmm_host_cr0
	.comm	_CR4_PGE,4,2                    ; @CR4_PGE
	.comm	_vmm_host_cr4,4,2               ; @vmm_host_cr4
	.comm	_CR4_XSAVE,4,2                  ; @CR4_XSAVE
	.comm	_vmm_xsave_limits,12,2          ; @vmm_xsave_limits
	.comm	_vmm_host_xcr0,4,2              ; @vmm_host_xcr0
	.comm	_XFEATURE_AVX,4,2               ; @XFEATURE_AVX
	.comm	_XFEATURE_MPX,4,2               ; @XFEATURE_MPX
	.comm	_XFEATURE_AVX512,4,2            ; @XFEATURE_AVX512
.subsections_via_symbols
