	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lguest_arch_run_guest          ## -- Begin function lguest_arch_run_guest
	.p2align	4, 0x90
_lguest_arch_run_guest:                 ## @lguest_arch_run_guest
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	cmpq	$0, 16(%rdi)
	je	LBB0_2
## %bb.1:
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_unlazy_fpu
LBB0_2:
	movq	_X86_FEATURE_SEP@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_boot_cpu_has
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_MSR_IA32_SYSENTER_CS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_wrmsr
LBB0_4:
	xorl	%eax, %eax
	callq	_raw_smp_processor_id
	movl	%eax, %edi
	callq	_lguest_pages
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_run_guest_once
	movl	(%r14), %edi
	callq	_boot_cpu_has
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_MSR_IA32_SYSENTER_CS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	___KERNEL_CS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_wrmsr
LBB0_6:
	movq	(%rbx), %rax
	movl	(%rax), %eax
	cmpl	$7, %eax
	je	LBB0_10
## %bb.7:
	cmpl	$14, %eax
	jne	LBB0_9
## %bb.8:
	xorl	%eax, %eax
	callq	_read_cr2
	movl	%eax, 8(%rbx)
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_10:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_math_state_restore             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_current,4,2                    ## @current
	.comm	_X86_FEATURE_SEP,4,2            ## @X86_FEATURE_SEP
	.comm	_MSR_IA32_SYSENTER_CS,4,2       ## @MSR_IA32_SYSENTER_CS
	.comm	___KERNEL_CS,4,2                ## @__KERNEL_CS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lguest_arch_run_guest          ; -- Begin function lguest_arch_run_guest
	.p2align	2
_lguest_arch_run_guest:                 ; @lguest_arch_run_guest
	.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, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _current@GOTPAGE
Lloh1:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_unlazy_fpu
LBB0_2:
Lloh3:
	adrp	x21, _X86_FEATURE_SEP@GOTPAGE
Lloh4:
	ldr	x21, [x21, _X86_FEATURE_SEP@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_boot_cpu_has
Lloh5:
	adrp	x20, _MSR_IA32_SYSENTER_CS@GOTPAGE
Lloh6:
	ldr	x20, [x20, _MSR_IA32_SYSENTER_CS@GOTPAGEOFF]
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x20]
	mov	w1, #0
	mov	w2, #0
	bl	_wrmsr
LBB0_4:
	bl	_raw_smp_processor_id
	bl	_lguest_pages
	mov	x1, x0
	mov	x0, x19
	bl	_run_guest_once
	ldr	w0, [x21]
	bl	_boot_cpu_has
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w0, [x20]
Lloh7:
	adrp	x8, ___KERNEL_CS@GOTPAGE
Lloh8:
	ldr	x8, [x8, ___KERNEL_CS@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_wrmsr
LBB0_6:
	ldr	x8, [x19]
	ldr	w8, [x8]
	cmp	w8, #7
	b.eq	LBB0_10
; %bb.7:
	cmp	w8, #14
	b.ne	LBB0_9
; %bb.8:
	bl	_read_cr2
	str	w0, [x19, #8]
LBB0_9:
	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_10:
	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	_math_state_restore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_current,4,2                    ; @current
	.comm	_X86_FEATURE_SEP,4,2            ; @X86_FEATURE_SEP
	.comm	_MSR_IA32_SYSENTER_CS,4,2       ; @MSR_IA32_SYSENTER_CS
	.comm	___KERNEL_CS,4,2                ; @__KERNEL_CS
.subsections_via_symbols
