	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmx_setup_cr_shadow
_vmx_setup_cr_shadow:                   ## @vmx_setup_cr_shadow
	.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
	movl	%edx, %r14d
	movq	%rsi, %r15
	movl	%edi, %esi
	testl	$-5, %edi
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_panic
	jmp	LBB0_2
LBB0_3:
	testl	%esi, %esi
	je	LBB0_4
LBB0_2:
	movq	_VMCS_CR4_SHADOW@GOTPCREL(%rip), %rax
	movq	_VMCS_CR4_MASK@GOTPCREL(%rip), %rcx
	movq	_cr4_zeros_mask@GOTPCREL(%rip), %rsi
	movq	_cr4_ones_mask@GOTPCREL(%rip), %rdx
LBB0_5:
	movl	(%rsi), %ebx
	orl	(%rdx), %ebx
	movl	(%rax), %r12d
	movl	(%rcx), %edi
	callq	_VMCS_IDENT
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	movl	%ebx, %ecx
	callq	_vmcs_setreg
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	%r12d, %edi
	callq	_VMCS_IDENT
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	movl	%r14d, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vmcs_setreg                    ## TAILCALL
LBB0_4:
	movq	_VMCS_CR0_SHADOW@GOTPCREL(%rip), %rax
	movq	_VMCS_CR0_MASK@GOTPCREL(%rip), %rcx
	movq	_cr0_zeros_mask@GOTPCREL(%rip), %rsi
	movq	_cr0_ones_mask@GOTPCREL(%rip), %rdx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vmx_setup_cr_shadow: unknown cr%d"

	.comm	_VMCS_CR0_MASK,4,2              ## @VMCS_CR0_MASK
	.comm	_cr0_ones_mask,4,2              ## @cr0_ones_mask
	.comm	_cr0_zeros_mask,4,2             ## @cr0_zeros_mask
	.comm	_VMCS_CR0_SHADOW,4,2            ## @VMCS_CR0_SHADOW
	.comm	_VMCS_CR4_MASK,4,2              ## @VMCS_CR4_MASK
	.comm	_cr4_ones_mask,4,2              ## @cr4_ones_mask
	.comm	_cr4_zeros_mask,4,2             ## @cr4_zeros_mask
	.comm	_VMCS_CR4_SHADOW,4,2            ## @VMCS_CR4_SHADOW
	.no_dead_strip	_vmx_setup_cr_shadow
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmx_setup_cr_shadow
_vmx_setup_cr_shadow:                   ; @vmx_setup_cr_shadow
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x1, x0
	tst	w0, #0xfffffffb
	b.eq	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_panic
	b	LBB0_3
LBB0_2:
	cbz	w1, LBB0_7
LBB0_3:
Lloh2:
	adrp	x8, _VMCS_CR4_SHADOW@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VMCS_CR4_SHADOW@GOTPAGEOFF]
Lloh4:
	adrp	x9, _VMCS_CR4_MASK@GOTPAGE
Lloh5:
	ldr	x9, [x9, _VMCS_CR4_MASK@GOTPAGEOFF]
Lloh6:
	adrp	x10, _cr4_zeros_mask@GOTPAGE
Lloh7:
	ldr	x10, [x10, _cr4_zeros_mask@GOTPAGEOFF]
Lloh8:
	adrp	x11, _cr4_ones_mask@GOTPAGE
Lloh9:
	ldr	x11, [x11, _cr4_ones_mask@GOTPAGEOFF]
LBB0_4:
	ldr	w11, [x11]
	ldr	w10, [x10]
	orr	w22, w10, w11
	ldr	w21, [x8]
	ldr	w0, [x9]
	bl	_VMCS_IDENT
	mov	x2, x0
	mov	x0, x20
	mov	w1, #0
	mov	x3, x22
	bl	_vmcs_setreg
	cbz	w0, LBB0_6
; %bb.5:
	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_6:
	mov	x0, x21
	bl	_VMCS_IDENT
	mov	x2, x0
	mov	x0, x20
	mov	w1, #0
	mov	x3, x19
	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
	b	_vmcs_setreg
LBB0_7:
Lloh10:
	adrp	x8, _VMCS_CR0_SHADOW@GOTPAGE
Lloh11:
	ldr	x8, [x8, _VMCS_CR0_SHADOW@GOTPAGEOFF]
Lloh12:
	adrp	x9, _VMCS_CR0_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _VMCS_CR0_MASK@GOTPAGEOFF]
Lloh14:
	adrp	x10, _cr0_zeros_mask@GOTPAGE
Lloh15:
	ldr	x10, [x10, _cr0_zeros_mask@GOTPAGEOFF]
Lloh16:
	adrp	x11, _cr0_ones_mask@GOTPAGE
Lloh17:
	ldr	x11, [x11, _cr0_ones_mask@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vmx_setup_cr_shadow: unknown cr%d"

	.comm	_VMCS_CR0_MASK,4,2              ; @VMCS_CR0_MASK
	.comm	_cr0_ones_mask,4,2              ; @cr0_ones_mask
	.comm	_cr0_zeros_mask,4,2             ; @cr0_zeros_mask
	.comm	_VMCS_CR0_SHADOW,4,2            ; @VMCS_CR0_SHADOW
	.comm	_VMCS_CR4_MASK,4,2              ; @VMCS_CR4_MASK
	.comm	_cr4_ones_mask,4,2              ; @cr4_ones_mask
	.comm	_cr4_zeros_mask,4,2             ; @cr4_zeros_mask
	.comm	_VMCS_CR4_SHADOW,4,2            ; @VMCS_CR4_SHADOW
	.no_dead_strip	_vmx_setup_cr_shadow
.subsections_via_symbols
