	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kvm_set_cr0                    ## -- Begin function kvm_set_cr0
	.p2align	4, 0x90
_kvm_set_cr0:                           ## @kvm_set_cr0
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_CR0_RESERVED_BITS@GOTPCREL(%rip), %rax
	movl	$1, %r15d
	testq	%rsi, (%rax)
	jne	LBB0_12
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_X86_CR0_ET@GOTPCREL(%rip), %rax
	orq	(%rax), %rbx
	movq	_X86_CR0_NW@GOTPCREL(%rip), %rax
	testq	%rbx, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_X86_CR0_CD@GOTPCREL(%rip), %rax
	testq	%rbx, (%rax)
	je	LBB0_12
LBB0_3:
	movq	_X86_CR0_PG@GOTPCREL(%rip), %r12
	testq	%rbx, (%r12)
	je	LBB0_5
## %bb.4:
	movq	_X86_CR0_PE@GOTPCREL(%rip), %rax
	testq	%rbx, (%rax)
	je	LBB0_12
LBB0_5:
	movq	%r14, %rdi
	callq	_is_paging
	testl	%eax, %eax
	je	LBB0_6
LBB0_9:
	testq	%rbx, (%r12)
	je	LBB0_10
LBB0_11:
	movq	_kvm_x86_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	*(%rax)
	movq	%rbx, 8(%r14)
	movq	%r14, %rdi
	callq	_kvm_mmu_reset_context
	xorl	%r15d, %r15d
	jmp	LBB0_12
LBB0_6:
	testq	%rbx, (%r12)
	je	LBB0_9
## %bb.7:
	movq	%r14, %rdi
	callq	_is_pae
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	16(%r14), %esi
	movq	%r14, %rdi
	callq	_load_pdptrs
	testl	%eax, %eax
	jne	LBB0_9
	jmp	LBB0_12
LBB0_10:
	movq	_X86_CR4_PCIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_kvm_read_cr4_bits
	testq	%rax, %rax
	je	LBB0_11
LBB0_12:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CR0_RESERVED_BITS,8,3          ## @CR0_RESERVED_BITS
	.comm	_X86_CR0_ET,8,3                 ## @X86_CR0_ET
	.comm	_X86_CR0_NW,8,3                 ## @X86_CR0_NW
	.comm	_X86_CR0_CD,8,3                 ## @X86_CR0_CD
	.comm	_X86_CR0_PG,8,3                 ## @X86_CR0_PG
	.comm	_X86_CR0_PE,8,3                 ## @X86_CR0_PE
	.comm	_X86_CR4_PCIDE,4,2              ## @X86_CR4_PCIDE
	.comm	_kvm_x86_ops,8,3                ## @kvm_x86_ops
	.comm	_EFER_LME,4,2                   ## @EFER_LME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kvm_set_cr0                    ; -- Begin function kvm_set_cr0
	.p2align	2
_kvm_set_cr0:                           ; @kvm_set_cr0
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _CR0_RESERVED_BITS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CR0_RESERVED_BITS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	tst	x8, x1
	b.eq	LBB0_3
LBB0_1:
	mov	w0, #1
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x19, x0
Lloh3:
	adrp	x8, _X86_CR0_ET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _X86_CR0_ET@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	orr	x20, x8, x1
Lloh6:
	adrp	x8, _X86_CR0_NW@GOTPAGE
Lloh7:
	ldr	x8, [x8, _X86_CR0_NW@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	tst	x20, x8
	b.eq	LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, _X86_CR0_CD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _X86_CR0_CD@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	tst	x8, x20
	b.eq	LBB0_1
LBB0_5:
Lloh12:
	adrp	x21, _X86_CR0_PG@GOTPAGE
Lloh13:
	ldr	x21, [x21, _X86_CR0_PG@GOTPAGEOFF]
	ldr	x8, [x21]
	tst	x8, x20
	b.eq	LBB0_7
; %bb.6:
Lloh14:
	adrp	x8, _X86_CR0_PE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _X86_CR0_PE@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	tst	x8, x20
	b.eq	LBB0_1
LBB0_7:
	mov	x0, x19
	bl	_is_paging
	cbz	w0, LBB0_10
LBB0_8:
	ldr	x8, [x21]
	tst	x8, x20
	b.eq	LBB0_13
LBB0_9:
Lloh17:
	adrp	x8, _kvm_x86_ops@GOTPAGE
Lloh18:
	ldr	x8, [x8, _kvm_x86_ops@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	str	x20, [x19, #8]
	mov	x0, x19
	bl	_kvm_mmu_reset_context
	mov	w0, #0
	b	LBB0_2
LBB0_10:
	ldr	x8, [x21]
	tst	x8, x20
	b.eq	LBB0_8
; %bb.11:
	mov	x0, x19
	bl	_is_pae
	cbz	x0, LBB0_8
; %bb.12:
	ldr	w1, [x19, #16]
	mov	x0, x19
	bl	_load_pdptrs
	cbnz	w0, LBB0_8
	b	LBB0_1
LBB0_13:
Lloh20:
	adrp	x8, _X86_CR4_PCIDE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _X86_CR4_PCIDE@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_kvm_read_cr4_bits
	cbnz	x0, LBB0_1
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_CR0_RESERVED_BITS,8,3          ; @CR0_RESERVED_BITS
	.comm	_X86_CR0_ET,8,3                 ; @X86_CR0_ET
	.comm	_X86_CR0_NW,8,3                 ; @X86_CR0_NW
	.comm	_X86_CR0_CD,8,3                 ; @X86_CR0_CD
	.comm	_X86_CR0_PG,8,3                 ; @X86_CR0_PG
	.comm	_X86_CR0_PE,8,3                 ; @X86_CR0_PE
	.comm	_X86_CR4_PCIDE,4,2              ; @X86_CR4_PCIDE
	.comm	_kvm_x86_ops,8,3                ; @kvm_x86_ops
	.comm	_EFER_LME,4,2                   ; @EFER_LME
.subsections_via_symbols
