	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function data_segment_valid
_data_segment_valid:                    ## @data_segment_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
	movl	%esi, %edx
	leaq	-32(%rbp), %rsi
	callq	_vmx_get_segment
	movl	$1, %eax
	cmpq	$0, -8(%rbp)
	jne	LBB0_4
## %bb.1:
	xorl	%eax, %eax
	cmpl	$0, -16(%rbp)
	je	LBB0_4
## %bb.2:
	cmpl	$0, -20(%rbp)
	je	LBB0_4
## %bb.3:
	movq	_SELECTOR_RPL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-32(%rbp), %eax
	movl	-28(%rbp), %ecx
	notl	%ecx
	movq	_AR_TYPE_CODE_MASK@GOTPCREL(%rip), %rdx
	movq	_AR_TYPE_WRITEABLE_MASK@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rdx), %esi
	testl	%ecx, %esi
	sete	%cl
	cmpl	%eax, -24(%rbp)
	setae	%al
	orb	%cl, %al
	movzbl	%al, %eax
LBB0_4:
	addq	$32, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SELECTOR_RPL_MASK,4,2          ## @SELECTOR_RPL_MASK
	.comm	_AR_TYPE_CODE_MASK,4,2          ## @AR_TYPE_CODE_MASK
	.comm	_AR_TYPE_WRITEABLE_MASK,4,2     ## @AR_TYPE_WRITEABLE_MASK
	.no_dead_strip	_data_segment_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function data_segment_valid
_data_segment_valid:                    ; @data_segment_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
	mov	x2, x1
	mov	x1, sp
	bl	_vmx_get_segment
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_5
LBB0_2:
	ldp	w9, w8, [sp, #12]
	cmp	w8, #0
	ccmp	w9, #0, #4, ne
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh0:
	adrp	x8, _SELECTOR_RPL_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SELECTOR_RPL_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	w9, w10, [sp]
	and	w8, w8, w9
Lloh3:
	adrp	x9, _AR_TYPE_CODE_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AR_TYPE_CODE_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x11, _AR_TYPE_WRITEABLE_MASK@GOTPAGE
Lloh7:
	ldr	x11, [x11, _AR_TYPE_WRITEABLE_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	orr	w9, w11, w9
	bics	wzr, w9, w10
	ldr	w9, [sp, #8]
	ccmp	w9, w8, #2, ne
	cset	w0, hs
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SELECTOR_RPL_MASK,4,2          ; @SELECTOR_RPL_MASK
	.comm	_AR_TYPE_CODE_MASK,4,2          ; @AR_TYPE_CODE_MASK
	.comm	_AR_TYPE_WRITEABLE_MASK,4,2     ; @AR_TYPE_WRITEABLE_MASK
	.no_dead_strip	_data_segment_valid
.subsections_via_symbols
