	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cs_ss_rpl_check
_cs_ss_rpl_check:                       ## @cs_ss_rpl_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_VCPU_SREG_CS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-24(%rbp), %rsi
	callq	_vmx_get_segment
	movq	_VCPU_SREG_SS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-16(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_vmx_get_segment
	movq	_SELECTOR_RPL_MASK@GOTPCREL(%rip), %rcx
	movl	-16(%rbp), %edx
	xorl	-24(%rbp), %edx
	xorl	%eax, %eax
	andl	(%rcx), %edx
	sete	%al
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VCPU_SREG_CS,4,2               ## @VCPU_SREG_CS
	.comm	_VCPU_SREG_SS,4,2               ## @VCPU_SREG_SS
	.comm	_SELECTOR_RPL_MASK,4,2          ## @SELECTOR_RPL_MASK
	.no_dead_strip	_cs_ss_rpl_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cs_ss_rpl_check
_cs_ss_rpl_check:                       ; @cs_ss_rpl_check
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _VCPU_SREG_CS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VCPU_SREG_CS@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x1, sp, #8
	bl	_vmx_get_segment
Lloh3:
	adrp	x8, _VCPU_SREG_SS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VCPU_SREG_SS@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x1, sp
	mov	x0, x19
	bl	_vmx_get_segment
	ldr	w8, [sp, #8]
Lloh6:
	adrp	x9, _SELECTOR_RPL_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SELECTOR_RPL_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	ldr	w10, [sp]
	eor	w8, w10, w8
	tst	w8, w9
	cset	w0, eq
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 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	_VCPU_SREG_CS,4,2               ; @VCPU_SREG_CS
	.comm	_VCPU_SREG_SS,4,2               ; @VCPU_SREG_SS
	.comm	_SELECTOR_RPL_MASK,4,2          ; @SELECTOR_RPL_MASK
	.no_dead_strip	_cs_ss_rpl_check
.subsections_via_symbols
