	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ldtr_valid
_ldtr_valid:                            ## @ldtr_valid
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$32, %rsp
	movq	_VCPU_SREG_LDTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-24(%rbp), %rsi
	callq	_vmx_get_segment
	movl	$1, %eax
	cmpq	$0, -8(%rbp)
	jne	LBB0_4
## %bb.1:
	movq	_SELECTOR_TI_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	testl	%ecx, -24(%rbp)
	jne	LBB0_4
## %bb.2:
	cmpl	$2, -20(%rbp)
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	cmpl	$0, -16(%rbp)
	setne	%al
LBB0_4:
	addq	$32, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VCPU_SREG_LDTR,4,2             ## @VCPU_SREG_LDTR
	.comm	_SELECTOR_TI_MASK,4,2           ## @SELECTOR_TI_MASK
	.no_dead_strip	_ldtr_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ldtr_valid
_ldtr_valid:                            ; @ldtr_valid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	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
Lloh0:
	adrp	x8, _VCPU_SREG_LDTR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VCPU_SREG_LDTR@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x1, sp, #8
	bl	_vmx_get_segment
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_5
LBB0_2:
Lloh3:
	adrp	x8, _SELECTOR_TI_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SELECTOR_TI_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldp	w9, w10, [sp, #8]
	and	w8, w8, w9
	cmp	w8, #0
	ccmp	w10, #2, #0, eq
	b.eq	LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	ldr	w8, [sp, #16]
	cmp	w8, #0
	cset	w0, ne
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_VCPU_SREG_LDTR,4,2             ; @VCPU_SREG_LDTR
	.comm	_SELECTOR_TI_MASK,4,2           ; @SELECTOR_TI_MASK
	.no_dead_strip	_ldtr_valid
.subsections_via_symbols
