	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmx_emulate_cr4_access
_vmx_emulate_cr4_access:                ## @vmx_emulate_cr4_access
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	testb	$-16, %dl
	je	LBB0_2
## %bb.1:
	movq	_UNHANDLED@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	shrl	$8, %edx
	andl	$15, %edx
	callq	_vmx_get_guest_reg
	movl	%eax, %ebx
	movq	_VMCS_CR4_SHADOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_vmcs_write
	movq	_cr4_ones_mask@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_cr4_zeros_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%esi
	andl	%ebx, %esi
	movq	_VMCS_GUEST_CR4@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_vmcs_write
	movq	_HANDLED@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UNHANDLED,4,2                  ## @UNHANDLED
	.comm	_VMCS_CR4_SHADOW,4,2            ## @VMCS_CR4_SHADOW
	.comm	_cr4_ones_mask,4,2              ## @cr4_ones_mask
	.comm	_cr4_zeros_mask,4,2             ## @cr4_zeros_mask
	.comm	_VMCS_GUEST_CR4,4,2             ## @VMCS_GUEST_CR4
	.comm	_HANDLED,4,2                    ## @HANDLED
	.no_dead_strip	_vmx_emulate_cr4_access
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmx_emulate_cr4_access
_vmx_emulate_cr4_access:                ; @vmx_emulate_cr4_access
	.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
	tst	w2, #0xf0
	b.eq	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _UNHANDLED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UNHANDLED@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	ubfx	w2, w2, #8, #4
	bl	_vmx_get_guest_reg
	mov	x19, x0
Lloh2:
	adrp	x8, _VMCS_CR4_SHADOW@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VMCS_CR4_SHADOW@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_vmcs_write
Lloh5:
	adrp	x8, _cr4_ones_mask@GOTPAGE
Lloh6:
	ldr	x8, [x8, _cr4_ones_mask@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _cr4_zeros_mask@GOTPAGE
Lloh9:
	ldr	x9, [x9, _cr4_zeros_mask@GOTPAGEOFF]
	orr	w8, w8, w19
Lloh10:
	ldr	w9, [x9]
	bic	w1, w8, w9
Lloh11:
	adrp	x8, _VMCS_GUEST_CR4@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VMCS_GUEST_CR4@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_vmcs_write
Lloh14:
	adrp	x8, _HANDLED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HANDLED@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_UNHANDLED,4,2                  ; @UNHANDLED
	.comm	_VMCS_CR4_SHADOW,4,2            ; @VMCS_CR4_SHADOW
	.comm	_cr4_ones_mask,4,2              ; @cr4_ones_mask
	.comm	_cr4_zeros_mask,4,2             ; @cr4_zeros_mask
	.comm	_VMCS_GUEST_CR4,4,2             ; @VMCS_GUEST_CR4
	.comm	_HANDLED,4,2                    ; @HANDLED
	.no_dead_strip	_vmx_emulate_cr4_access
.subsections_via_symbols
