	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function guest_state_valid
_guest_state_valid:                     ## @guest_state_valid
	.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
	movq	_X86_CR0_PE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kvm_read_cr0_bits
	testl	%eax, %eax
	je	LBB0_1
## %bb.7:
	movq	%rbx, %rdi
	callq	_cs_ss_rpl_check
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_18
## %bb.8:
	movq	%rbx, %rdi
	callq	_code_segment_valid
	testl	%eax, %eax
	je	LBB0_18
## %bb.9:
	movq	%rbx, %rdi
	callq	_stack_segment_valid
	testl	%eax, %eax
	je	LBB0_18
## %bb.10:
	movq	_VCPU_SREG_DS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_data_segment_valid
	testl	%eax, %eax
	je	LBB0_18
## %bb.11:
	movq	_VCPU_SREG_ES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_data_segment_valid
	testl	%eax, %eax
	je	LBB0_18
## %bb.12:
	movq	_VCPU_SREG_FS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_data_segment_valid
	testl	%eax, %eax
	je	LBB0_18
## %bb.13:
	movq	_VCPU_SREG_GS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_data_segment_valid
	testl	%eax, %eax
	je	LBB0_18
## %bb.14:
	movq	%rbx, %rdi
	callq	_tr_valid
	testl	%eax, %eax
	je	LBB0_18
## %bb.15:
	movq	%rbx, %rdi
	callq	_ldtr_valid
	jmp	LBB0_16
LBB0_1:
	movq	_VCPU_SREG_CS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rmode_segment_valid
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_18
## %bb.2:
	movq	_VCPU_SREG_SS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rmode_segment_valid
	testl	%eax, %eax
	je	LBB0_18
## %bb.3:
	movq	_VCPU_SREG_DS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rmode_segment_valid
	testl	%eax, %eax
	je	LBB0_18
## %bb.4:
	movq	_VCPU_SREG_ES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rmode_segment_valid
	testl	%eax, %eax
	je	LBB0_18
## %bb.5:
	movq	_VCPU_SREG_FS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rmode_segment_valid
	testl	%eax, %eax
	je	LBB0_18
## %bb.6:
	movq	_VCPU_SREG_GS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rmode_segment_valid
LBB0_16:
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	movl	$1, %r14d
LBB0_18:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_X86_CR0_PE,4,2                 ## @X86_CR0_PE
	.comm	_VCPU_SREG_CS,4,2               ## @VCPU_SREG_CS
	.comm	_VCPU_SREG_SS,4,2               ## @VCPU_SREG_SS
	.comm	_VCPU_SREG_DS,4,2               ## @VCPU_SREG_DS
	.comm	_VCPU_SREG_ES,4,2               ## @VCPU_SREG_ES
	.comm	_VCPU_SREG_FS,4,2               ## @VCPU_SREG_FS
	.comm	_VCPU_SREG_GS,4,2               ## @VCPU_SREG_GS
	.no_dead_strip	_guest_state_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function guest_state_valid
_guest_state_valid:                     ; @guest_state_valid
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _X86_CR0_PE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _X86_CR0_PE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kvm_read_cr0_bits
	cbz	w0, LBB0_10
; %bb.1:
	mov	x0, x19
	bl	_cs_ss_rpl_check
	cbz	w0, LBB0_17
; %bb.2:
	mov	x0, x19
	bl	_code_segment_valid
	cbz	w0, LBB0_17
; %bb.3:
	mov	x0, x19
	bl	_stack_segment_valid
	cbz	w0, LBB0_17
; %bb.4:
Lloh3:
	adrp	x8, _VCPU_SREG_DS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VCPU_SREG_DS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_data_segment_valid
	cbz	w0, LBB0_17
; %bb.5:
Lloh6:
	adrp	x8, _VCPU_SREG_ES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VCPU_SREG_ES@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_data_segment_valid
	cbz	w0, LBB0_17
; %bb.6:
Lloh9:
	adrp	x8, _VCPU_SREG_FS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VCPU_SREG_FS@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_data_segment_valid
	cbz	w0, LBB0_17
; %bb.7:
Lloh12:
	adrp	x8, _VCPU_SREG_GS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VCPU_SREG_GS@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_data_segment_valid
	cbz	w0, LBB0_17
; %bb.8:
	mov	x0, x19
	bl	_tr_valid
	cbz	w0, LBB0_17
; %bb.9:
	mov	x0, x19
	bl	_ldtr_valid
	cbnz	w0, LBB0_16
	b	LBB0_17
LBB0_10:
Lloh15:
	adrp	x8, _VCPU_SREG_CS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VCPU_SREG_CS@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rmode_segment_valid
	cbz	w0, LBB0_17
; %bb.11:
Lloh18:
	adrp	x8, _VCPU_SREG_SS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VCPU_SREG_SS@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rmode_segment_valid
	cbz	w0, LBB0_17
; %bb.12:
Lloh21:
	adrp	x8, _VCPU_SREG_DS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _VCPU_SREG_DS@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rmode_segment_valid
	cbz	w0, LBB0_17
; %bb.13:
Lloh24:
	adrp	x8, _VCPU_SREG_ES@GOTPAGE
Lloh25:
	ldr	x8, [x8, _VCPU_SREG_ES@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rmode_segment_valid
	cbz	w0, LBB0_17
; %bb.14:
Lloh27:
	adrp	x8, _VCPU_SREG_FS@GOTPAGE
Lloh28:
	ldr	x8, [x8, _VCPU_SREG_FS@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rmode_segment_valid
	cbz	w0, LBB0_17
; %bb.15:
Lloh30:
	adrp	x8, _VCPU_SREG_GS@GOTPAGE
Lloh31:
	ldr	x8, [x8, _VCPU_SREG_GS@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rmode_segment_valid
	cbz	w0, LBB0_17
LBB0_16:
	mov	w0, #1
LBB0_17:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_X86_CR0_PE,4,2                 ; @X86_CR0_PE
	.comm	_VCPU_SREG_CS,4,2               ; @VCPU_SREG_CS
	.comm	_VCPU_SREG_SS,4,2               ; @VCPU_SREG_SS
	.comm	_VCPU_SREG_DS,4,2               ; @VCPU_SREG_DS
	.comm	_VCPU_SREG_ES,4,2               ; @VCPU_SREG_ES
	.comm	_VCPU_SREG_FS,4,2               ; @VCPU_SREG_FS
	.comm	_VCPU_SREG_GS,4,2               ; @VCPU_SREG_GS
	.no_dead_strip	_guest_state_valid
.subsections_via_symbols
