	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function desc_table_limit_check
_desc_table_limit_check:                ## @desc_table_limit_check
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r12
	movl	%edx, %edi
	callq	_ISLDT
	movq	_VM_REG_GUEST_LDTR@GOTPCREL(%rip), %r13
	movq	%r13, %rcx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_VM_REG_GUEST_GDTR@GOTPCREL(%rip), %rcx
LBB0_2:
	movl	(%rcx), %ebx
	leaq	-60(%rbp), %rcx
	leaq	-56(%rbp), %r8
	leaq	-48(%rbp), %r9
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_vm_get_desc
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	cmpl	(%r13), %ebx
	jne	LBB0_5
## %bb.3:
	movq	-48(%rbp), %rdi
	callq	_SEG_DESC_UNUSABLE
	movl	$-1, %ebx
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:
	movq	-48(%rbp), %rdi
	callq	_SEG_DESC_PRESENT
	testl	%eax, %eax
	je	LBB0_6
LBB0_5:
	movq	-56(%rbp), %r15
	movl	%r14d, %edi
	callq	_SEL_LIMIT
	xorl	%ebx, %ebx
	cmpq	%rax, %r15
	setl	%bl
	negl	%ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VM_REG_GUEST_LDTR,4,2          ## @VM_REG_GUEST_LDTR
	.comm	_VM_REG_GUEST_GDTR,4,2          ## @VM_REG_GUEST_GDTR
	.no_dead_strip	_desc_table_limit_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function desc_table_limit_check
_desc_table_limit_check:                ; @desc_table_limit_check
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x2
	bl	_ISLDT
Lloh0:
	adrp	x23, _VM_REG_GUEST_LDTR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _VM_REG_GUEST_LDTR@GOTPAGEOFF]
Lloh2:
	adrp	x8, _VM_REG_GUEST_GDTR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VM_REG_GUEST_GDTR@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x23, eq
	ldr	w22, [x8]
	add	x3, sp, #28
	add	x4, sp, #16
	add	x5, sp, #8
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_vm_get_desc
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	ldr	w8, [x23]
	cmp	w22, w8
	b.ne	LBB0_4
; %bb.1:
	ldr	x0, [sp, #8]
	bl	_SEG_DESC_UNUSABLE
	cbz	x0, LBB0_3
LBB0_2:
	mov	w0, #-1
	b	LBB0_5
LBB0_3:
	ldr	x0, [sp, #8]
	bl	_SEG_DESC_PRESENT
	cbz	w0, LBB0_2
LBB0_4:
	ldr	x20, [sp, #16]
	mov	x0, x19
	bl	_SEL_LIMIT
	cmp	x20, x0
	csetm	w0, lt
LBB0_5:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_VM_REG_GUEST_LDTR,4,2          ; @VM_REG_GUEST_LDTR
	.comm	_VM_REG_GUEST_GDTR,4,2          ; @VM_REG_GUEST_GDTR
	.no_dead_strip	_desc_table_limit_check
.subsections_via_symbols
