	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function svm_set_cr4
_svm_set_cr4:                           ## @svm_set_cr4
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	xorl	%eax, %eax
	callq	_read_cr4
	movq	%rax, %r15
	movq	_X86_CR4_MCE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%r12, %rdi
	callq	_to_svm
	movq	_npt_enabled@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	je	LBB0_3
## %bb.1:
	movq	(%rax), %rax
	movq	(%rax), %rax
	xorq	%r14, %rax
	movq	_X86_CR4_PGE@GOTPCREL(%rip), %rcx
	testq	%rax, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	callq	_svm_flush_tlb
LBB0_3:
	movq	%r14, (%r12)
	cmpq	$0, (%r13)
	jne	LBB0_4
## %bb.5:
	movq	_X86_CR4_PAE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_6
LBB0_4:
	xorl	%eax, %eax
LBB0_6:
	andq	%r15, %rbx
	orq	%r14, %rbx
	orq	%rax, %rbx
	movq	%r12, %rdi
	callq	_to_svm
	movq	(%rax), %rax
	movq	%rbx, (%rax)
	movq	%r12, %rdi
	callq	_to_svm
	movq	(%rax), %rdi
	movq	_VMCB_CR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mark_dirty                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_X86_CR4_MCE,8,3                ## @X86_CR4_MCE
	.comm	_npt_enabled,8,3                ## @npt_enabled
	.comm	_X86_CR4_PGE,8,3                ## @X86_CR4_PGE
	.comm	_X86_CR4_PAE,8,3                ## @X86_CR4_PAE
	.comm	_VMCB_CR,4,2                    ## @VMCB_CR
	.no_dead_strip	_svm_set_cr4
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function svm_set_cr4
_svm_set_cr4:                           ; @svm_set_cr4
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	bl	_read_cr4
	mov	x21, x0
Lloh0:
	adrp	x8, _X86_CR4_MCE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _X86_CR4_MCE@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	mov	x0, x19
	bl	_to_svm
Lloh3:
	adrp	x23, _npt_enabled@GOTPAGE
Lloh4:
	ldr	x23, [x23, _npt_enabled@GOTPAGEOFF]
	ldr	x8, [x23]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x0]
	ldr	x8, [x8]
	eor	x8, x8, x20
Lloh5:
	adrp	x9, _X86_CR4_PGE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _X86_CR4_PGE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	tst	x8, x9
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_svm_flush_tlb
LBB0_3:
	str	x20, [x19]
	ldr	x8, [x23]
Lloh8:
	adrp	x9, _X86_CR4_PAE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _X86_CR4_PAE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, #0
	csel	x8, x9, xzr, eq
	and	x9, x22, x21
	orr	x9, x9, x20
	orr	x20, x9, x8
	mov	x0, x19
	bl	_to_svm
	ldr	x8, [x0]
	str	x20, [x8]
	mov	x0, x19
	bl	_to_svm
	ldr	x0, [x0]
Lloh11:
	adrp	x8, _VMCB_CR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VMCB_CR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_mark_dirty
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_X86_CR4_MCE,8,3                ; @X86_CR4_MCE
	.comm	_npt_enabled,8,3                ; @npt_enabled
	.comm	_X86_CR4_PGE,8,3                ; @X86_CR4_PGE
	.comm	_X86_CR4_PAE,8,3                ; @X86_CR4_PAE
	.comm	_VMCB_CR,4,2                    ; @VMCB_CR
	.no_dead_strip	_svm_set_cr4
.subsections_via_symbols
