	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmx_cpu_mode
_vmx_cpu_mode:                          ## @vmx_cpu_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_VMCS_GUEST_IA32_EFER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_vmcs_read
	movq	_EFER_LMA@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.1:
	movq	_VMCS_GUEST_CS_ACCESS_RIGHTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_vmcs_read
	testl	$8192, %eax                     ## imm = 0x2000
	jne	LBB0_2
## %bb.3:
	movq	_CPU_MODE_COMPATIBILITY@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	movq	_VMCS_GUEST_CR0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_vmcs_read
	movq	_CR0_PE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_5
## %bb.6:
	movq	_CPU_MODE_REAL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	movq	_CPU_MODE_64BIT@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_CPU_MODE_PROTECTED@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VMCS_GUEST_IA32_EFER,4,2       ## @VMCS_GUEST_IA32_EFER
	.comm	_EFER_LMA,4,2                   ## @EFER_LMA
	.comm	_VMCS_GUEST_CS_ACCESS_RIGHTS,4,2 ## @VMCS_GUEST_CS_ACCESS_RIGHTS
	.comm	_CPU_MODE_64BIT,4,2             ## @CPU_MODE_64BIT
	.comm	_CPU_MODE_COMPATIBILITY,4,2     ## @CPU_MODE_COMPATIBILITY
	.comm	_VMCS_GUEST_CR0,4,2             ## @VMCS_GUEST_CR0
	.comm	_CR0_PE,4,2                     ## @CR0_PE
	.comm	_CPU_MODE_PROTECTED,4,2         ## @CPU_MODE_PROTECTED
	.comm	_CPU_MODE_REAL,4,2              ## @CPU_MODE_REAL
	.no_dead_strip	_vmx_cpu_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmx_cpu_mode
_vmx_cpu_mode:                          ; @vmx_cpu_mode
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _VMCS_GUEST_IA32_EFER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VMCS_GUEST_IA32_EFER@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_vmcs_read
Lloh3:
	adrp	x8, _EFER_LMA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EFER_LMA@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _VMCS_GUEST_CS_ACCESS_RIGHTS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VMCS_GUEST_CS_ACCESS_RIGHTS@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_vmcs_read
Lloh9:
	adrp	x8, _CPU_MODE_64BIT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CPU_MODE_64BIT@GOTPAGEOFF]
Lloh11:
	adrp	x9, _CPU_MODE_COMPATIBILITY@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CPU_MODE_COMPATIBILITY@GOTPAGEOFF]
	tst	w0, #0x2000
	csel	x8, x9, x8, eq
	b	LBB0_3
LBB0_2:
Lloh13:
	adrp	x8, _VMCS_GUEST_CR0@GOTPAGE
Lloh14:
	ldr	x8, [x8, _VMCS_GUEST_CR0@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_vmcs_read
Lloh16:
	adrp	x8, _CR0_PE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CR0_PE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _CPU_MODE_PROTECTED@GOTPAGE
Lloh20:
	ldr	x9, [x9, _CPU_MODE_PROTECTED@GOTPAGEOFF]
Lloh21:
	adrp	x10, _CPU_MODE_REAL@GOTPAGE
Lloh22:
	ldr	x10, [x10, _CPU_MODE_REAL@GOTPAGEOFF]
	tst	w8, w0
	csel	x8, x10, x9, eq
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_VMCS_GUEST_IA32_EFER,4,2       ; @VMCS_GUEST_IA32_EFER
	.comm	_EFER_LMA,4,2                   ; @EFER_LMA
	.comm	_VMCS_GUEST_CS_ACCESS_RIGHTS,4,2 ; @VMCS_GUEST_CS_ACCESS_RIGHTS
	.comm	_CPU_MODE_64BIT,4,2             ; @CPU_MODE_64BIT
	.comm	_CPU_MODE_COMPATIBILITY,4,2     ; @CPU_MODE_COMPATIBILITY
	.comm	_VMCS_GUEST_CR0,4,2             ; @VMCS_GUEST_CR0
	.comm	_CR0_PE,4,2                     ; @CR0_PE
	.comm	_CPU_MODE_PROTECTED,4,2         ; @CPU_MODE_PROTECTED
	.comm	_CPU_MODE_REAL,4,2              ; @CPU_MODE_REAL
	.no_dead_strip	_vmx_cpu_mode
.subsections_via_symbols
