	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function validate_seg_desc
_validate_seg_desc:                     ## @validate_seg_desc
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movl	%esi, %r13d
	movq	%rdi, %r15
	leal	-128(%rbx), %eax
	cmpl	$6, %eax
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%r8, -120(%rbp)                 ## 8-byte Spill
	movq	%r9, -104(%rbp)                 ## 8-byte Spill
	ja	LBB0_4
## %bb.1:
	movb	$1, %r12b
	xorl	%edx, %edx
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	movb	$1, %sil
	xorl	%r14d, %r14d
	movb	$1, %cl
	jmpq	*%rax
LBB0_3:
	movb	$1, %dl
	xorl	%r12d, %r12d
	movb	$1, %sil
	xorl	%r14d, %r14d
	xorl	%ecx, %ecx
	jmp	LBB0_6
LBB0_4:
	xorl	%r12d, %r12d
	xorl	%edi, %edi
	callq	_assert
	movb	$1, %dl
	movb	$1, %sil
	xorl	%r14d, %r14d
	jmp	LBB0_5
LBB0_2:
	movb	$1, %dl
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	movb	$1, %r14b
LBB0_5:
	movb	$1, %cl
LBB0_6:
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	movl	%edx, -68(%rbp)                 ## 4-byte Spill
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	callq	_GETREG
	movl	%eax, %ebx
	movb	$1, %al
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
LBB0_7:
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	callq	_desc_table_limit_check
	testq	%rax, %rax
	je	LBB0_8
LBB0_13:
	movq	_IDT_TS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movl	%r13d, %esi
LBB0_14:
	movl	%ebx, %ecx
LBB0_15:
	callq	_sel_exception
	movl	$1, %r12d
LBB0_49:
	movl	%r12d, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movl	%ebx, %edi
	callq	_IDXSEL
	testq	%rax, %rax
	je	LBB0_9
## %bb.17:
	movl	$0, -112(%rbp)
	leaq	-112(%rbp), %rdx
	leaq	-80(%rbp), %r8
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %ecx
	movl	%ebx, %r14d
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %r9
	callq	_desc_table_read
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_49
## %bb.18:
	xorl	%r12d, %r12d
	cmpl	$0, (%rbx)
	jne	LBB0_49
## %bb.19:
	movl	-84(%rbp), %ebx                 ## 4-byte Reload
	testb	%bl, %bl
	jne	LBB0_21
## %bb.20:
	movl	-80(%rbp), %edi
	callq	_ldt_desc
	testl	%eax, %eax
	je	LBB0_27
LBB0_21:
	cmpb	$0, -68(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_23
## %bb.22:
	movl	-80(%rbp), %edi
	callq	_code_desc
	testq	%rax, %rax
	je	LBB0_27
LBB0_23:
	cmpb	$0, -64(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_25
## %bb.24:
	movl	-80(%rbp), %edi
	callq	_data_desc
	testl	%eax, %eax
	je	LBB0_27
LBB0_25:
	cmpb	$0, -60(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_28
## %bb.26:
	movl	-80(%rbp), %edi
	callq	_stack_desc
	testl	%eax, %eax
	je	LBB0_27
LBB0_28:
	cmpl	$0, -72(%rbp)
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_29
## %bb.36:
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	$134, %edx
	movl	%r14d, %ebx
	callq	_GETREG
	movl	%r14d, %ecx
	movl	%eax, %r14d
	movq	_SEL_RPL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	andl	%r13d, %r14d
	andl	%ecx, %r13d
	movl	-76(%rbp), %esi
	cmpb	$0, -60(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_40
## %bb.37:
	cmpl	%r14d, %r13d
	jne	LBB0_39
## %bb.38:
	cmpl	%r14d, %esi
	jne	LBB0_39
LBB0_40:
	cmpb	$0, -68(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_43
## %bb.41:
	movl	-80(%rbp), %eax
	andl	$4, %eax
	sete	%dil
	cmpl	%esi, %r14d
	setge	%dl
	sete	%r8b
	orb	%dil, %dl
	cmpb	$1, %dl
	jne	LBB0_39
## %bb.42:
	shrl	$2, %eax
	orb	%r8b, %al
	je	LBB0_39
LBB0_43:
	cmpb	$0, -64(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_48
## %bb.44:
	movl	-80(%rbp), %edi
	movl	%esi, -104(%rbp)                ## 4-byte Spill
	callq	_code_desc
	movl	-104(%rbp), %edx                ## 4-byte Reload
	movl	%ebx, %ecx
	testq	%rax, %rax
	je	LBB0_46
## %bb.45:
	testb	$4, -80(%rbp)
	jne	LBB0_48
LBB0_46:
	cmpl	%edx, %r13d
	jg	LBB0_39
## %bb.47:
	cmpl	%edx, %r14d
	jg	LBB0_39
LBB0_48:
	leaq	-144(%rbp), %rdi
	leaq	-80(%rbp), %rsi
	callq	_usd_to_seg_desc
	movq	-128(%rbp), %rax
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	movq	%rax, 16(%rcx)
	movups	-144(%rbp), %xmm0
	movups	%xmm0, (%rcx)
	jmp	LBB0_49
LBB0_9:
	orb	%r12b, %r14b
	cmpb	$1, %r14b
	jne	LBB0_16
## %bb.10:
	movq	_IDT_TS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r8d
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	jmp	LBB0_14
LBB0_11:
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	$129, %edx
	callq	_GETREG
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ISLDT
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:
	movb	$1, %al
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	xorl	%r14d, %r14d
	movb	$1, %al
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	xorl	%r12d, %r12d
	movb	$1, %al
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	$0, -84(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_7
LBB0_16:
	xorps	%xmm0, %xmm0
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movups	%xmm0, 8(%rax)
	movl	$65536, (%rax)                  ## imm = 0x10000
	xorl	%r12d, %r12d
	jmp	LBB0_49
LBB0_27:
	movq	_IDT_TS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r8d
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_35
LBB0_29:
	cmpb	$0, -60(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_30
## %bb.31:
	movq	_IDT_NP@GOTPCREL(%rip), %rax
	jmp	LBB0_32
LBB0_39:
	movq	_IDT_TS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	jmp	LBB0_15
LBB0_30:
	movq	_IDT_SS@GOTPCREL(%rip), %rax
LBB0_32:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testb	%bl, %bl
	jne	LBB0_34
## %bb.33:
	movq	_IDT_TS@GOTPCREL(%rip), %rax
LBB0_34:
	movl	(%rax), %edx
	movl	(%rcx), %r8d
	movq	%r15, %rdi
LBB0_35:
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r14d, %ecx
	jmp	LBB0_15
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_11
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_IDT_TS,4,2                     ## @IDT_TS
	.comm	_IDT_SS,4,2                     ## @IDT_SS
	.comm	_IDT_NP,4,2                     ## @IDT_NP
	.comm	_SEL_RPL_MASK,4,2               ## @SEL_RPL_MASK
	.no_dead_strip	_validate_seg_desc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function validate_seg_desc
_validate_seg_desc:                     ; @validate_seg_desc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x3
	mov	x28, x2
	mov	x19, x1
	mov	x20, x0
	sub	w8, w3, #128
	cmp	w8, #6
	stp	x4, x5, [sp]                    ; 16-byte Folded Spill
	b.hi	LBB0_3
; %bb.1:
	mov	w26, #0
	mov	w21, #0
	mov	w22, #1
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	mov	w27, #1
	mov	w25, #1
	br	x10
LBB0_2:
	mov	w22, #0
	mov	w21, #0
	mov	w25, #0
	mov	w26, #1
	mov	w27, #1
	b	LBB0_6
LBB0_3:
	mov	w0, #0
	bl	_assert
	mov	w22, #0
	mov	w21, #0
	mov	w26, #1
	mov	w27, #1
	b	LBB0_5
LBB0_4:
	mov	w22, #0
	mov	w27, #0
	mov	w26, #1
	mov	w21, #1
LBB0_5:
	mov	w25, #1
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	bl	_GETREG
	mov	x23, x0
	mov	w24, #1
LBB0_7:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	bl	_desc_table_limit_check
	cbz	x0, LBB0_11
LBB0_8:
Lloh2:
	adrp	x8, _IDT_TS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IDT_TS@GOTPAGEOFF]
LBB0_9:
	ldr	w2, [x8]
	ldr	w4, [x28]
	mov	x0, x20
	mov	x1, x19
	mov	x3, x23
	bl	_sel_exception
	mov	w0, #1
LBB0_10:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_11:
	mov	x0, x23
	bl	_IDXSEL
	cbz	x0, LBB0_15
; %bb.12:
	str	wzr, [sp, #56]
	add	x2, sp, #56
	add	x4, sp, #40
	mov	x0, x20
	mov	x1, x19
	mov	x3, x23
	ldr	x21, [sp, #8]                   ; 8-byte Folded Reload
	mov	x5, x21
	bl	_desc_table_read
	cbnz	w0, LBB0_10
; %bb.13:
	ldr	w8, [x21]
	cbz	w8, LBB0_19
; %bb.14:
	mov	w0, #0
	b	LBB0_10
LBB0_15:
	orr	w8, w21, w22
	cmp	w8, #1
	b.eq	LBB0_8
; %bb.16:
	mov	w0, #0
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	stp	xzr, xzr, [x9, #8]
	mov	w8, #65536
	str	w8, [x9]
	b	LBB0_10
LBB0_17:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #129
	bl	_GETREG
	mov	x23, x0
	bl	_ISLDT
	cbnz	x0, LBB0_8
; %bb.18:
	mov	w21, #0
	mov	w22, #0
	mov	w24, #0
	mov	w25, #1
	mov	w27, #1
	mov	w26, #1
	b	LBB0_7
LBB0_19:
	tbnz	w24, #0, LBB0_21
; %bb.20:
	ldr	w0, [sp, #40]
	bl	_ldt_desc
	cbz	w0, LBB0_8
LBB0_21:
	tbnz	w26, #0, LBB0_23
; %bb.22:
	ldr	w0, [sp, #40]
	bl	_code_desc
	cbz	x0, LBB0_8
LBB0_23:
	tbnz	w25, #0, LBB0_25
; %bb.24:
	ldr	w0, [sp, #40]
	bl	_data_desc
	cbz	w0, LBB0_8
LBB0_25:
	tbnz	w27, #0, LBB0_27
; %bb.26:
	ldr	w0, [sp, #40]
	bl	_stack_desc
	cbz	w0, LBB0_8
LBB0_27:
	ldr	w8, [sp, #48]
	cbz	w8, LBB0_40
; %bb.28:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #134
	bl	_GETREG
Lloh4:
	adrp	x8, _SEL_RPL_MASK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SEL_RPL_MASK@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	and	w21, w8, w0
	and	w24, w8, w23
	ldr	w22, [sp, #44]
	tbnz	w27, #0, LBB0_31
; %bb.29:
	cmp	w24, w21
	b.ne	LBB0_8
; %bb.30:
	cmp	w22, w21
	b.ne	LBB0_8
LBB0_31:
	tbnz	w26, #0, LBB0_34
; %bb.32:
	cmp	w21, w22
	cset	w8, eq
	ldr	w9, [sp, #40]
	and	w9, w9, #0x4
	ccmp	w9, #0, #4, lt
	b.ne	LBB0_8
; %bb.33:
	orr	w8, w8, w9, lsr #2
	tbz	w8, #0, LBB0_8
LBB0_34:
	tbnz	w25, #0, LBB0_39
; %bb.35:
	ldr	w0, [sp, #40]
	bl	_code_desc
	cbz	x0, LBB0_37
; %bb.36:
	ldrb	w8, [sp, #40]
	tbnz	w8, #2, LBB0_39
LBB0_37:
	cmp	w24, w22
	b.gt	LBB0_8
; %bb.38:
	cmp	w21, w22
	b.gt	LBB0_8
LBB0_39:
	add	x8, sp, #16
	add	x0, sp, #40
	bl	_usd_to_seg_desc
	mov	w0, #0
	ldr	q0, [sp, #16]
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	str	q0, [x9]
	ldr	x8, [sp, #32]
	str	x8, [x9, #16]
	b	LBB0_10
LBB0_40:
Lloh7:
	adrp	x8, _IDT_NP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IDT_NP@GOTPAGEOFF]
Lloh9:
	adrp	x9, _IDT_SS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IDT_SS@GOTPAGEOFF]
	cmp	w27, #0
	csel	x8, x8, x9, ne
Lloh11:
	adrp	x9, _IDT_TS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IDT_TS@GOTPAGEOFF]
	cmp	w24, #0
	csel	x8, x8, x9, ne
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_17-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_IDT_TS,4,2                     ; @IDT_TS
	.comm	_IDT_SS,4,2                     ; @IDT_SS
	.comm	_IDT_NP,4,2                     ; @IDT_NP
	.comm	_SEL_RPL_MASK,4,2               ; @SEL_RPL_MASK
	.no_dead_strip	_validate_seg_desc
.subsections_via_symbols
