	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function biba_valid
_biba_valid:                            ## @biba_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
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	movl	28(%rdi), %ecx
	movq	_MAC_BIBA_FLAG_EFFECTIVE@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_7
## %bb.1:
	leal	-128(%rcx), %edx
	cmpl	$2, %edx
	jb	LBB0_4
## %bb.2:
	cmpl	$130, %ecx
	je	LBB0_8
## %bb.3:
	cmpl	$131, %ecx
	jne	LBB0_22
LBB0_4:
	cmpl	$0, 36(%rbx)
	jne	LBB0_22
## %bb.5:
	movl	32(%rbx), %edi
	callq	_MAC_BIBA_BIT_SET_EMPTY
	testl	%eax, %eax
	je	LBB0_22
## %bb.6:
	movl	(%rbx), %eax
	jmp	LBB0_8
LBB0_7:
	movq	_MAC_BIBA_TYPE_UNDEF@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_22
LBB0_8:
	movq	_MAC_BIBA_FLAG_RANGE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_20
## %bb.9:
	movl	16(%rbx), %eax
	leal	-128(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_12
## %bb.10:
	cmpl	$130, %eax
	je	LBB0_14
## %bb.11:
	cmpl	$131, %eax
	jne	LBB0_22
LBB0_12:
	cmpl	$0, 24(%rbx)
	jne	LBB0_22
## %bb.13:
	movl	20(%rbx), %edi
	callq	_MAC_BIBA_BIT_SET_EMPTY
	testl	%eax, %eax
	je	LBB0_22
LBB0_14:
	movl	4(%rbx), %eax
	leal	-128(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_17
## %bb.15:
	cmpl	$130, %eax
	je	LBB0_19
## %bb.16:
	cmpl	$131, %eax
	jne	LBB0_22
LBB0_17:
	cmpl	$0, 12(%rbx)
	jne	LBB0_22
## %bb.18:
	movl	8(%rbx), %edi
	callq	_MAC_BIBA_BIT_SET_EMPTY
	testl	%eax, %eax
	je	LBB0_22
LBB0_19:
	leaq	16(%rbx), %rsi
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_biba_dominate_element
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	je	LBB0_22
	jmp	LBB0_23
LBB0_20:
	movl	16(%rbx), %ecx
	movq	_MAC_BIBA_TYPE_UNDEF@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_22
## %bb.21:
	xorl	%eax, %eax
	cmpl	%ecx, 4(%rbx)
	je	LBB0_23
LBB0_22:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_23:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAC_BIBA_FLAG_EFFECTIVE,4,2    ## @MAC_BIBA_FLAG_EFFECTIVE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MAC_BIBA_TYPE_UNDEF,4,2        ## @MAC_BIBA_TYPE_UNDEF
	.comm	_MAC_BIBA_FLAG_RANGE,4,2        ## @MAC_BIBA_FLAG_RANGE
	.no_dead_strip	_biba_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function biba_valid
_biba_valid:                            ; @biba_valid
	.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
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _MAC_BIBA_FLAG_EFFECTIVE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAC_BIBA_FLAG_EFFECTIVE@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x9]
	ldr	w9, [x0, #28]
	tst	w10, w8
	b.eq	LBB0_7
; %bb.1:
	sub	w10, w9, #128
	cmp	w10, #2
	b.lo	LBB0_4
; %bb.2:
	cmp	w9, #130
	b.eq	LBB0_8
; %bb.3:
	cmp	w9, #131
	b.ne	LBB0_23
LBB0_4:
	ldr	w8, [x19, #36]
	cbnz	w8, LBB0_23
; %bb.5:
	ldr	w0, [x19, #32]
	bl	_MAC_BIBA_BIT_SET_EMPTY
	cbz	w0, LBB0_23
; %bb.6:
	ldr	w8, [x19]
	b	LBB0_8
LBB0_7:
Lloh3:
	adrp	x10, _MAC_BIBA_TYPE_UNDEF@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MAC_BIBA_TYPE_UNDEF@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_23
LBB0_8:
Lloh6:
	adrp	x9, _MAC_BIBA_FLAG_RANGE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MAC_BIBA_FLAG_RANGE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.9:
	mov	x20, x19
	ldr	w8, [x20, #16]!
	sub	w9, w8, #128
	cmp	w9, #2
	b.lo	LBB0_12
; %bb.10:
	cmp	w8, #130
	b.eq	LBB0_14
; %bb.11:
	cmp	w8, #131
	b.ne	LBB0_23
LBB0_12:
	ldr	w8, [x19, #24]
	cbnz	w8, LBB0_23
; %bb.13:
	ldr	w0, [x19, #20]
	bl	_MAC_BIBA_BIT_SET_EMPTY
	cbz	w0, LBB0_23
LBB0_14:
	mov	x21, x19
	ldr	w8, [x21, #4]!
	sub	w9, w8, #128
	cmp	w9, #2
	b.lo	LBB0_17
; %bb.15:
	cmp	w8, #130
	b.eq	LBB0_19
; %bb.16:
	cmp	w8, #131
	b.ne	LBB0_23
LBB0_17:
	ldr	w8, [x19, #12]
	cbnz	w8, LBB0_23
; %bb.18:
	ldr	w0, [x19, #8]
	bl	_MAC_BIBA_BIT_SET_EMPTY
	cbz	w0, LBB0_23
LBB0_19:
	mov	x0, x21
	mov	x1, x20
	bl	_biba_dominate_element
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w0, w8, wzr, eq
	b	LBB0_24
LBB0_20:
	ldr	w8, [x19, #16]
Lloh12:
	adrp	x9, _MAC_BIBA_TYPE_UNDEF@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MAC_BIBA_TYPE_UNDEF@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_23
; %bb.21:
	ldr	w9, [x19, #4]
	cmp	w9, w8
	b.ne	LBB0_23
; %bb.22:
	mov	w0, #0
	b	LBB0_24
LBB0_23:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
LBB0_24:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC_BIBA_FLAG_EFFECTIVE,4,2    ; @MAC_BIBA_FLAG_EFFECTIVE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MAC_BIBA_TYPE_UNDEF,4,2        ; @MAC_BIBA_TYPE_UNDEF
	.comm	_MAC_BIBA_FLAG_RANGE,4,2        ; @MAC_BIBA_FLAG_RANGE
	.no_dead_strip	_biba_valid
.subsections_via_symbols
