	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function svm_get_segment
_svm_get_segment:                       ## @svm_get_segment
	.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
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movl	%edx, %esi
	callq	_svm_seg
	movl	12(%rax), %ecx
	movl	%ecx, 44(%rbx)
	movl	(%rax), %r8d
	movl	%r8d, (%rbx)
	movl	8(%rax), %ecx
	movl	%ecx, 40(%rbx)
	movl	4(%rax), %esi
	movq	_SVM_SELECTOR_TYPE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%esi, %eax
	movl	%eax, 4(%rbx)
	movq	_SVM_SELECTOR_S_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	sete	%r9b
	xorl	%edi, %edi
	btl	%ecx, %esi
	setb	%dil
	movl	%edi, 8(%rbx)
	movq	_SVM_SELECTOR_DPL_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%esi, %edi
	sarl	%cl, %edi
	andl	$3, %edi
	movl	%edi, 12(%rbx)
	movq	_SVM_SELECTOR_P_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%esi, %edi
	shrl	%cl, %edi
	andl	$1, %edi
	movl	%edi, 16(%rbx)
	movq	_SVM_SELECTOR_AVL_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	sete	%cl
	xorl	%edx, %edx
	btl	%edi, %esi
	setb	%dl
	movl	%edx, 20(%rbx)
	movq	_SVM_SELECTOR_L_SHIFT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	xorl	%edi, %edi
	btl	%edx, %esi
	setb	%dil
	movl	%edi, 24(%rbx)
	movq	_SVM_SELECTOR_DB_SHIFT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	xorl	%edi, %edi
	btl	%edx, %esi
	setb	%dil
	movl	%edi, 28(%rbx)
	movq	_SVM_SELECTOR_G_SHIFT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	xorl	%edi, %edi
	btl	%edx, %esi
	setb	%dil
	movl	%edi, 32(%rbx)
	orb	%r9b, %cl
	movzbl	%cl, %edx
	movl	%edx, 36(%rbx)
	addl	$-128, %r14d
	cmpl	$6, %r14d
	ja	LBB0_8
## %bb.1:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%r14,4), %rsi
	addq	%rdx, %rsi
	jmpq	*%rsi
LBB0_4:
	testb	%cl, %cl
	jne	LBB0_8
## %bb.5:
	orl	$1, %eax
	movl	%eax, 4(%rbx)
	jmp	LBB0_8
LBB0_3:
	orl	$2, %eax
	movl	%eax, 4(%rbx)
	jmp	LBB0_8
LBB0_6:
	testb	%cl, %cl
	je	LBB0_8
## %bb.7:
	movl	$0, 28(%rbx)
	jmp	LBB0_8
LBB0_2:
	xorl	%eax, %eax
	cmpl	$1048576, %r8d                  ## imm = 0x100000
	setge	%al
	movl	%eax, 32(%rbx)
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_6
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_SVM_SELECTOR_TYPE_MASK,4,2     ## @SVM_SELECTOR_TYPE_MASK
	.comm	_SVM_SELECTOR_S_SHIFT,4,2       ## @SVM_SELECTOR_S_SHIFT
	.comm	_SVM_SELECTOR_DPL_SHIFT,4,2     ## @SVM_SELECTOR_DPL_SHIFT
	.comm	_SVM_SELECTOR_P_SHIFT,4,2       ## @SVM_SELECTOR_P_SHIFT
	.comm	_SVM_SELECTOR_AVL_SHIFT,4,2     ## @SVM_SELECTOR_AVL_SHIFT
	.comm	_SVM_SELECTOR_L_SHIFT,4,2       ## @SVM_SELECTOR_L_SHIFT
	.comm	_SVM_SELECTOR_DB_SHIFT,4,2      ## @SVM_SELECTOR_DB_SHIFT
	.comm	_SVM_SELECTOR_G_SHIFT,4,2       ## @SVM_SELECTOR_G_SHIFT
	.no_dead_strip	_svm_get_segment
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function svm_get_segment
_svm_get_segment:                       ; @svm_get_segment
	.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	x20, x2
	mov	x19, x1
	mov	x1, x2
	bl	_svm_seg
	ldr	w8, [x0]
	str	w8, [x19]
	ldr	d0, [x0, #8]
	str	d0, [x19, #40]
	ldr	w10, [x0, #4]
Lloh0:
	adrp	x9, _SVM_SELECTOR_TYPE_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SVM_SELECTOR_TYPE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x11, _SVM_SELECTOR_P_SHIFT@GOTPAGE
Lloh4:
	ldr	x11, [x11, _SVM_SELECTOR_P_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	lsr	w11, w10, w11
	ands	w11, w11, #0x1
	cset	w12, eq
Lloh6:
	adrp	x13, _SVM_SELECTOR_S_SHIFT@GOTPAGE
Lloh7:
	ldr	x13, [x13, _SVM_SELECTOR_S_SHIFT@GOTPAGEOFF]
	ands	w9, w9, w10
Lloh8:
	ldr	w13, [x13]
	lsr	w13, w10, w13
	and	w13, w13, #0x1
	stp	w9, w13, [x19, #4]
Lloh9:
	adrp	x13, _SVM_SELECTOR_DPL_SHIFT@GOTPAGE
Lloh10:
	ldr	x13, [x13, _SVM_SELECTOR_DPL_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w13, [x13]
	asr	w13, w10, w13
	and	w13, w13, #0x3
	stp	w13, w11, [x19, #12]
Lloh12:
	adrp	x11, _SVM_SELECTOR_AVL_SHIFT@GOTPAGE
Lloh13:
	ldr	x11, [x11, _SVM_SELECTOR_AVL_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	lsr	w11, w10, w11
	and	w11, w11, #0x1
Lloh15:
	adrp	x13, _SVM_SELECTOR_L_SHIFT@GOTPAGE
Lloh16:
	ldr	x13, [x13, _SVM_SELECTOR_L_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w13, [x13]
	lsr	w13, w10, w13
	and	w13, w13, #0x1
	stp	w11, w13, [x19, #20]
Lloh18:
	adrp	x11, _SVM_SELECTOR_DB_SHIFT@GOTPAGE
Lloh19:
	ldr	x11, [x11, _SVM_SELECTOR_DB_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	w11, [x11]
	lsr	w11, w10, w11
	and	w11, w11, #0x1
Lloh21:
	adrp	x13, _SVM_SELECTOR_G_SHIFT@GOTPAGE
Lloh22:
	ldr	x13, [x13, _SVM_SELECTOR_G_SHIFT@GOTPAGEOFF]
Lloh23:
	ldr	w13, [x13]
	lsr	w10, w10, w13
	and	w10, w10, #0x1
	stp	w11, w10, [x19, #28]
	cset	w10, eq
	orr	w10, w12, w10
	str	w10, [x19, #36]
	sub	w11, w20, #128
	cmp	w11, #6
	b.hi	LBB0_8
; %bb.1:
Lloh24:
	adrp	x12, lJTI0_0@PAGE
Lloh25:
	add	x12, x12, lJTI0_0@PAGEOFF
	adr	x13, LBB0_2
	ldrb	w14, [x12, x11]
	add	x13, x13, x14, lsl #2
	br	x13
LBB0_2:
	tbnz	w10, #0, LBB0_8
; %bb.3:
	orr	w8, w9, #0x1
	str	w8, [x19, #4]
	b	LBB0_8
LBB0_4:
	orr	w8, w9, #0x2
	str	w8, [x19, #4]
	b	LBB0_8
LBB0_5:
	cbz	w10, LBB0_8
; %bb.6:
	str	wzr, [x19, #28]
	b	LBB0_8
LBB0_7:
	cmp	w8, #256, lsl #12               ; =1048576
	cset	w8, ge
	str	w8, [x19, #32]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-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_7-LBB0_2)>>2
                                        ; -- End function
	.comm	_SVM_SELECTOR_TYPE_MASK,4,2     ; @SVM_SELECTOR_TYPE_MASK
	.comm	_SVM_SELECTOR_S_SHIFT,4,2       ; @SVM_SELECTOR_S_SHIFT
	.comm	_SVM_SELECTOR_DPL_SHIFT,4,2     ; @SVM_SELECTOR_DPL_SHIFT
	.comm	_SVM_SELECTOR_P_SHIFT,4,2       ; @SVM_SELECTOR_P_SHIFT
	.comm	_SVM_SELECTOR_AVL_SHIFT,4,2     ; @SVM_SELECTOR_AVL_SHIFT
	.comm	_SVM_SELECTOR_L_SHIFT,4,2       ; @SVM_SELECTOR_L_SHIFT
	.comm	_SVM_SELECTOR_DB_SHIFT,4,2      ; @SVM_SELECTOR_DB_SHIFT
	.comm	_SVM_SELECTOR_G_SHIFT,4,2       ; @SVM_SELECTOR_G_SHIFT
	.no_dead_strip	_svm_get_segment
.subsections_via_symbols
