	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function biba_cred_check_relabel
_biba_cred_check_relabel:               ## @biba_cred_check_relabel
	.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
	movq	%rsi, %rbx
	movq	(%rdi), %rdi
	callq	_SLOT
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_SLOT
	movq	%rax, %rbx
	movq	_MAC_BIBA_FLAGS_BOTH@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_biba_atmostflags
	testl	%eax, %eax
	jne	LBB0_16
## %bb.1:
	movl	(%rbx), %eax
	movl	(%r15), %ecx
	movl	%ecx, %edx
	andl	%eax, %edx
	je	LBB0_12
## %bb.2:
	cmpl	%ecx, %edx
	jne	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_biba_effective_in_range
	testl	%eax, %eax
	je	LBB0_14
## %bb.4:
	movl	(%rbx), %eax
LBB0_5:
	movq	_MAC_BIBA_FLAG_EFFECTIVE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.6:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_biba_effective_in_range
	testl	%eax, %eax
	je	LBB0_13
## %bb.7:
	movl	(%rbx), %eax
LBB0_8:
	movq	_MAC_BIBA_FLAG_RANGE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_biba_range_in_range
	testl	%eax, %eax
	je	LBB0_13
LBB0_10:
	movq	%rbx, %rdi
	callq	_biba_contains_equal
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	callq	_biba_subject_privileged
	testl	%eax, %eax
	jne	LBB0_16
LBB0_12:
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_13:
	movq	_EPERM@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAC_BIBA_FLAGS_BOTH,4,2        ## @MAC_BIBA_FLAGS_BOTH
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MAC_BIBA_FLAG_EFFECTIVE,4,2    ## @MAC_BIBA_FLAG_EFFECTIVE
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_MAC_BIBA_FLAG_RANGE,4,2        ## @MAC_BIBA_FLAG_RANGE
	.no_dead_strip	_biba_cred_check_relabel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function biba_cred_check_relabel
_biba_cred_check_relabel:               ; @biba_cred_check_relabel
	.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	x20, x1
	ldr	x0, [x0]
	bl	_SLOT
	mov	x19, x0
	mov	x0, x20
	bl	_SLOT
	mov	x20, x0
Lloh0:
	adrp	x21, _MAC_BIBA_FLAGS_BOTH@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MAC_BIBA_FLAGS_BOTH@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_biba_atmostflags
	cbnz	w0, LBB0_16
; %bb.1:
	ldr	w8, [x20]
	ldr	w9, [x21]
	ands	w10, w9, w8
	b.eq	LBB0_12
; %bb.2:
	cmp	w10, w9
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x20
	mov	x1, x20
	bl	_biba_effective_in_range
	cbz	w0, LBB0_14
; %bb.4:
	ldr	w8, [x20]
LBB0_5:
Lloh2:
	adrp	x9, _MAC_BIBA_FLAG_EFFECTIVE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MAC_BIBA_FLAG_EFFECTIVE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.6:
	mov	x0, x20
	mov	x1, x19
	bl	_biba_effective_in_range
	cbz	w0, LBB0_13
; %bb.7:
	ldr	w8, [x20]
LBB0_8:
Lloh5:
	adrp	x9, _MAC_BIBA_FLAG_RANGE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MAC_BIBA_FLAG_RANGE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	mov	x0, x20
	mov	x1, x19
	bl	_biba_range_in_range
	cbz	w0, LBB0_13
LBB0_10:
	mov	x0, x20
	bl	_biba_contains_equal
	cbz	x0, LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_biba_subject_privileged
	cbnz	w0, LBB0_16
LBB0_12:
	mov	w0, #0
	b	LBB0_16
LBB0_13:
Lloh8:
	adrp	x8, _EPERM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
LBB0_16:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC_BIBA_FLAGS_BOTH,4,2        ; @MAC_BIBA_FLAGS_BOTH
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MAC_BIBA_FLAG_EFFECTIVE,4,2    ; @MAC_BIBA_FLAG_EFFECTIVE
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_MAC_BIBA_FLAG_RANGE,4,2        ; @MAC_BIBA_FLAG_RANGE
	.no_dead_strip	_biba_cred_check_relabel
.subsections_via_symbols
