	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mls_context_isvalid            ## -- Begin function mls_context_isvalid
	.p2align	4, 0x90
_mls_context_isvalid:                   ## @mls_context_isvalid
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_selinux_mls_enabled@GOTPCREL(%rip), %rax
	movl	$1, %r12d
	cmpl	$0, (%rax)
	je	LBB0_8
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	12(%rsi), %r15
	movq	%r15, %rsi
	callq	_mls_range_isvalid
	testl	%eax, %eax
	je	LBB0_7
## %bb.2:
	movq	(%rbx), %rax
	movq	_OBJECT_R_VAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.3:
	movslq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movl	$0, %r12d
	cmpl	8(%r14), %eax
	jg	LBB0_8
## %bb.5:
	movq	(%r14), %rcx
	movq	-8(%rcx,%rax,8), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	callq	_mls_range_contains
	xorl	%r12d, %r12d
	testl	%eax, %eax
	setne	%r12b
	jmp	LBB0_8
LBB0_7:
	xorl	%r12d, %r12d
LBB0_8:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_selinux_mls_enabled,4,2        ## @selinux_mls_enabled
	.comm	_OBJECT_R_VAL,8,3               ## @OBJECT_R_VAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mls_context_isvalid            ; -- Begin function mls_context_isvalid
	.p2align	2
_mls_context_isvalid:                   ; @mls_context_isvalid
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x8, _selinux_mls_enabled@GOTPAGE
Lloh1:
	ldr	x8, [x8, _selinux_mls_enabled@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x21, x1
	mov	x19, x0
	add	x20, x1, #12
	mov	x1, x20
	bl	_mls_range_isvalid
	cbz	w0, LBB0_4
; %bb.2:
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _OBJECT_R_VAL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _OBJECT_R_VAL@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
LBB0_3:
	mov	w0, #1
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	w8, [x21, #8]
	cbz	w8, LBB0_7
; %bb.6:
	ldr	w9, [x19, #8]
	cmp	w8, w9
	b.le	LBB0_8
LBB0_7:
	mov	w0, #0
	b	LBB0_4
LBB0_8:
	ldr	x9, [x19]
	sub	w8, w8, #1
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_mls_range_contains
	cmp	w0, #0
	cset	w0, ne
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_selinux_mls_enabled,4,2        ; @selinux_mls_enabled
	.comm	_OBJECT_R_VAL,8,3               ; @OBJECT_R_VAL
.subsections_via_symbols
