	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rmode_segment_valid
_rmode_segment_valid:                   ## @rmode_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
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movl	%esi, %edx
	leaq	-24(%rbp), %rbx
	movq	%rbx, %rsi
	callq	_vmx_get_segment
	movq	%rbx, %rdi
	callq	_vmx_segment_access_rights
	movl	-20(%rbp), %ecx
	shll	$4, %ecx
	xorl	-24(%rbp), %ecx
	movl	$65535, %edx                    ## imm = 0xFFFF
	xorl	-16(%rbp), %edx
	orl	%ecx, %edx
	xorl	$243, %eax
	xorl	%ecx, %ecx
	orl	%edx, %eax
	sete	%cl
	movl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rmode_segment_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rmode_segment_valid
_rmode_segment_valid:                   ; @rmode_segment_valid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	mov	x2, x1
	mov	x1, sp
	bl	_vmx_get_segment
	mov	x0, sp
	bl	_vmx_segment_access_rights
	ldp	w8, w9, [sp]
	cmp	w8, w9, lsl #4
	ldr	w8, [sp, #8]
	mov	w9, #65535
	ccmp	w8, w9, #0, eq
	mov	w8, #243
	ccmp	w0, w8, #0, eq
	cset	w0, eq
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rmode_segment_valid
.subsections_via_symbols
