	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_policydb_context_isvalid       ## -- Begin function policydb_context_isvalid
	.p2align	4, 0x90
_policydb_context_isvalid:              ## @policydb_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movslq	(%rsi), %rax
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rdi, %r15
	cmpl	28(%rdi), %eax
	jg	LBB0_11
## %bb.2:
	movq	%rsi, %rbx
	movl	4(%rsi), %ecx
	testl	%ecx, %ecx
	je	LBB0_11
## %bb.3:
	cmpl	24(%r15), %ecx
	jg	LBB0_11
## %bb.4:
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.5:
	cmpq	16(%r15), %rsi
	jg	LBB0_11
## %bb.6:
	movq	_OBJECT_R_VAL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
LBB0_10:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_mls_context_isvalid
	xorl	%r14d, %r14d
	testl	%eax, %eax
	setne	%r14b
	jmp	LBB0_11
LBB0_7:
	movq	8(%r15), %rcx
	movq	-8(%rcx,%rax,8), %rdi
	decl	%esi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_ebitmap_get_bit
	testl	%eax, %eax
	je	LBB0_11
## %bb.8:
	movq	(%r15), %rax
	movslq	4(%rbx), %rcx
	movq	-8(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.9:
	movl	(%rbx), %esi
	decl	%esi
	callq	_ebitmap_get_bit
	testl	%eax, %eax
	jne	LBB0_10
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OBJECT_R_VAL,4,2               ## @OBJECT_R_VAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_policydb_context_isvalid       ; -- Begin function policydb_context_isvalid
	.p2align	2
_policydb_context_isvalid:              ; @policydb_context_isvalid
	.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
	ldr	w8, [x1]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x20, x0
	ldr	w9, [x0, #28]
	cmp	w8, w9
	b.gt	LBB0_6
; %bb.2:
	mov	x19, x1
	ldr	w9, [x1, #4]
	cbz	w9, LBB0_6
; %bb.3:
	ldr	w10, [x20, #24]
	cmp	w9, w10
	b.gt	LBB0_6
; %bb.4:
	ldr	x9, [x19, #8]
	cbz	x9, LBB0_6
; %bb.5:
	ldr	x10, [x20, #16]
	cmp	x9, x10
	b.le	LBB0_8
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh0:
	adrp	x10, _OBJECT_R_VAL@GOTPAGE
Lloh1:
	ldr	x10, [x10, _OBJECT_R_VAL@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	cmp	w8, w10
	b.ne	LBB0_10
LBB0_9:
	mov	x0, x20
	mov	x1, x19
	bl	_mls_context_isvalid
	cmp	w0, #0
	cset	w0, ne
	b	LBB0_7
LBB0_10:
	ldr	x10, [x20, #8]
	sub	w8, w8, #1
	ldr	x0, [x10, w8, sxtw #3]
	sub	w1, w9, #1
	bl	_ebitmap_get_bit
	cbz	w0, LBB0_7
; %bb.11:
	ldr	x8, [x20]
	ldrsw	x9, [x19, #4]
	add	x8, x8, x9, lsl #3
	ldur	x0, [x8, #-8]
	cbz	x0, LBB0_7
; %bb.12:
	ldr	w8, [x19]
	sub	w1, w8, #1
	bl	_ebitmap_get_bit
	cbnz	w0, LBB0_9
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_OBJECT_R_VAL,4,2               ; @OBJECT_R_VAL
.subsections_via_symbols
