	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function biba_parse_element
_biba_parse_element:                    ## @biba_parse_element
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, -48(%rbp)
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	_MAC_BIBA_TYPE_GRADE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	leaq	L_.str.6(%rip), %rsi
	leaq	-48(%rbp), %rdi
	callq	_strsep
	movq	%rax, %rbx
	leaq	-56(%rbp), %rsi
	movq	%rax, %rdi
	movl	$10, %edx
	callq	_strtol
	movq	-56(%rbp), %rcx
	cmpq	%rbx, %rcx
	je	LBB0_12
## %bb.11:
	cmpb	$0, (%rcx)
	jne	LBB0_12
## %bb.13:
	cmpl	$65536, %eax                    ## imm = 0x10000
	jb	LBB0_14
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_23
LBB0_2:
	movq	_MAC_BIBA_TYPE_HIGH@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_6:
	movq	_MAC_BIBA_TYPE_LOW@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_9:
	movq	_MAC_BIBA_TYPE_EQUAL@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	_MAC_BIBA_TYPE_UNDEF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	xorl	%ebx, %ebx
LBB0_23:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movl	%eax, (%r14)
	movq	-48(%rbp), %rax
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_23
## %bb.15:
	cmpb	$0, (%rax)
	je	LBB0_23
## %bb.16:
	leaq	L_.str.7(%rip), %rsi
	leaq	-48(%rbp), %rdi
	callq	_strsep
	testq	%rax, %rax
	je	LBB0_23
## %bb.17:
	movq	%rax, %r12
	leaq	-56(%rbp), %r15
	leaq	-48(%rbp), %r13
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$10, %edx
	callq	_strtol
	movq	-56(%rbp), %rcx
	cmpq	%rcx, %r12
	je	LBB0_12
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	cmpb	$0, (%rcx)
	jne	LBB0_12
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	testl	%eax, %eax
	jle	LBB0_12
## %bb.21:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	_MAC_BIBA_MAX_COMPARTMENTS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_12
## %bb.22:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	4(%r14), %esi
	movl	%eax, %edi
	callq	_MAC_BIBA_BIT_SET
	movq	%r13, %rdi
	leaq	L_.str.7(%rip), %rsi
	callq	_strsep
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_18
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"high"

L_.str.1:                               ## @.str.1
	.asciz	"hi"

	.comm	_MAC_BIBA_TYPE_HIGH,4,2         ## @MAC_BIBA_TYPE_HIGH
	.comm	_MAC_BIBA_TYPE_UNDEF,8,3        ## @MAC_BIBA_TYPE_UNDEF
L_.str.2:                               ## @.str.2
	.asciz	"low"

L_.str.3:                               ## @.str.3
	.asciz	"lo"

	.comm	_MAC_BIBA_TYPE_LOW,4,2          ## @MAC_BIBA_TYPE_LOW
L_.str.4:                               ## @.str.4
	.asciz	"equal"

L_.str.5:                               ## @.str.5
	.asciz	"eq"

	.comm	_MAC_BIBA_TYPE_EQUAL,4,2        ## @MAC_BIBA_TYPE_EQUAL
	.comm	_MAC_BIBA_TYPE_GRADE,4,2        ## @MAC_BIBA_TYPE_GRADE
L_.str.6:                               ## @.str.6
	.asciz	":"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.7:                               ## @.str.7
	.asciz	"+"

	.comm	_MAC_BIBA_MAX_COMPARTMENTS,4,2  ## @MAC_BIBA_MAX_COMPARTMENTS
	.no_dead_strip	_biba_parse_element
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function biba_parse_element
_biba_parse_element:                    ; @biba_parse_element
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	str	x1, [sp, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	x0, LBB0_10
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	x0, LBB0_10
; %bb.2:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	x0, LBB0_11
; %bb.3:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	x0, LBB0_11
; %bb.4:
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	x0, LBB0_12
; %bb.5:
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	x0, LBB0_12
; %bb.6:
Lloh12:
	adrp	x8, _MAC_BIBA_TYPE_GRADE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MAC_BIBA_TYPE_GRADE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19, #8]
Lloh15:
	adrp	x1, l_.str.6@PAGE
Lloh16:
	add	x1, x1, l_.str.6@PAGEOFF
	add	x0, sp, #8
	bl	_strsep
	mov	x20, x0
	mov	x1, sp
	mov	w2, #10
	bl	_strtol
	ldr	x8, [sp]
	cmp	x8, x20
	b.eq	LBB0_9
; %bb.7:
	ldrb	w8, [x8]
	cbnz	w8, LBB0_9
; %bb.8:
	cmp	w0, #16, lsl #12                ; =65536
	b.lo	LBB0_15
LBB0_9:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	b	LBB0_14
LBB0_10:
	mov	w0, #0
Lloh20:
	adrp	x8, _MAC_BIBA_TYPE_HIGH@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MAC_BIBA_TYPE_HIGH@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
	mov	w0, #0
Lloh22:
	adrp	x8, _MAC_BIBA_TYPE_LOW@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MAC_BIBA_TYPE_LOW@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
	mov	w0, #0
Lloh24:
	adrp	x8, _MAC_BIBA_TYPE_EQUAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MAC_BIBA_TYPE_EQUAL@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	str	w8, [x19, #8]
Lloh26:
	adrp	x8, _MAC_BIBA_TYPE_UNDEF@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MAC_BIBA_TYPE_UNDEF@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	str	w8, [x19]
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_15:
	str	w0, [x19]
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_24
; %bb.16:
	ldrb	w8, [x8]
	cbz	w8, LBB0_24
; %bb.17:
Lloh29:
	adrp	x1, l_.str.7@PAGE
Lloh30:
	add	x1, x1, l_.str.7@PAGEOFF
	add	x0, sp, #8
	bl	_strsep
	cbz	x0, LBB0_14
; %bb.18:
	mov	x21, x0
Lloh31:
	adrp	x22, _MAC_BIBA_MAX_COMPARTMENTS@GOTPAGE
Lloh32:
	ldr	x22, [x22, _MAC_BIBA_MAX_COMPARTMENTS@GOTPAGEOFF]
Lloh33:
	adrp	x20, l_.str.7@PAGE
Lloh34:
	add	x20, x20, l_.str.7@PAGEOFF
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	mov	x1, sp
	mov	x0, x21
	mov	w2, #10
	bl	_strtol
	ldr	x8, [sp]
	cmp	x21, x8
	b.eq	LBB0_9
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldrb	w8, [x8]
	cbnz	w8, LBB0_9
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=1
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.22:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	w8, [x22]
	cmp	w0, w8
	b.gt	LBB0_9
; %bb.23:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	w1, [x19, #4]
	bl	_MAC_BIBA_BIT_SET
	add	x0, sp, #8
	mov	x1, x20
	bl	_strsep
	mov	x21, x0
	mov	w0, #0
	cbnz	x21, LBB0_19
	b	LBB0_14
LBB0_24:
	mov	w0, #0
	b	LBB0_14
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"high"

l_.str.1:                               ; @.str.1
	.asciz	"hi"

	.comm	_MAC_BIBA_TYPE_HIGH,4,2         ; @MAC_BIBA_TYPE_HIGH
	.comm	_MAC_BIBA_TYPE_UNDEF,8,3        ; @MAC_BIBA_TYPE_UNDEF
l_.str.2:                               ; @.str.2
	.asciz	"low"

l_.str.3:                               ; @.str.3
	.asciz	"lo"

	.comm	_MAC_BIBA_TYPE_LOW,4,2          ; @MAC_BIBA_TYPE_LOW
l_.str.4:                               ; @.str.4
	.asciz	"equal"

l_.str.5:                               ; @.str.5
	.asciz	"eq"

	.comm	_MAC_BIBA_TYPE_EQUAL,4,2        ; @MAC_BIBA_TYPE_EQUAL
	.comm	_MAC_BIBA_TYPE_GRADE,4,2        ; @MAC_BIBA_TYPE_GRADE
l_.str.6:                               ; @.str.6
	.asciz	":"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.7:                               ; @.str.7
	.asciz	"+"

	.comm	_MAC_BIBA_MAX_COMPARTMENTS,4,2  ; @MAC_BIBA_MAX_COMPARTMENTS
	.no_dead_strip	_biba_parse_element
.subsections_via_symbols
