	.file	"extr_mac_biba.c_biba_parse.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"("
.LC1:
	.string	"-"
.LC2:
	.string	")"
.LC3:
	.string	"biba_parse: range mismatch"
	.text
	.p2align 4
	.type	biba_parse, @function
biba_parse:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	lea	r15, 8[rsp]
	mov	QWORD PTR 8[rsp], rsi
	lea	rsi, .LC0[rip]
	mov	rdi, r15
	call	strsep@PLT
	cmp	BYTE PTR [rax], 0
	jne	.L26
	xor	r12d, r12d
	cmp	QWORD PTR 8[rsp], 0
	je	.L27
.L10:
	lea	rsi, .LC1[rip]
	mov	rdi, r15
	call	strsep@PLT
	cmp	QWORD PTR 8[rsp], 0
	mov	r14, rax
	je	.L7
	lea	rsi, .LC2[rip]
	mov	rdi, r15
	call	strsep@PLT
	mov	r13, rax
	mov	rax, QWORD PTR 8[rsp]
	test	rax, rax
	je	.L7
	cmp	BYTE PTR [rax], 0
	jne	.L7
	test	r14, r14
	lea	rsi, .LC3[rip]
	setne	dil
	test	r13, r13
	sete	al
	xor	edi, eax
	movzx	edi, dil
	call	KASSERT@PLT
	mov	esi, 16
	mov	rdi, rbp
	call	bzero@PLT
	test	r12, r12
	je	.L8
	lea	rdi, 12[rbp]
	mov	rsi, r12
	call	biba_parse_element@PLT
	test	eax, eax
	jne	.L1
.L28:
	mov	eax, DWORD PTR MAC_BIBA_FLAG_EFFECTIVE[rip]
	or	DWORD PTR 0[rbp], eax
.L8:
	test	r14, r14
	je	.L9
	lea	rdi, 8[rbp]
	mov	rsi, r14
	call	biba_parse_element@PLT
	test	eax, eax
	jne	.L1
	lea	rdi, 4[rbp]
	mov	rsi, r13
	call	biba_parse_element@PLT
	test	eax, eax
	jne	.L1
	mov	eax, DWORD PTR MAC_BIBA_FLAG_RANGE[rip]
	or	DWORD PTR 0[rbp], eax
.L9:
	mov	rdi, rbp
	call	biba_valid@PLT
.L29:
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	mov	r13, QWORD PTR 8[rsp]
	mov	r12, rax
	test	r13, r13
	jne	.L10
	lea	rsi, .LC3[rip]
	mov	edi, 1
	xor	r14d, r14d
	call	KASSERT@PLT
	mov	esi, 16
	mov	rdi, rbp
	call	bzero@PLT
	lea	rdi, 12[rbp]
	mov	rsi, r12
	call	biba_parse_element@PLT
	test	eax, eax
	je	.L28
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, DWORD PTR EINVAL[rip]
.L1:
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore_state
	lea	rsi, .LC3[rip]
	mov	edi, 1
	call	KASSERT@PLT
	mov	rdi, rbp
	mov	esi, 16
	call	bzero@PLT
	mov	rdi, rbp
	call	biba_valid@PLT
	jmp	.L29
	.cfi_endproc
.LFE0:
	.size	biba_parse, .-biba_parse
	.comm	MAC_BIBA_FLAG_RANGE,4,4
	.comm	MAC_BIBA_FLAG_EFFECTIVE,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_mac_biba.c_biba_parse.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"(\000"
	.align	2
.LC1:
	.ascii	"-\000"
	.align	2
.LC2:
	.ascii	")\000"
	.align	2
.LC3:
	.ascii	"biba_parse: range mismatch\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	biba_parse, %function
biba_parse:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	sub	sp, sp, #12
	str	r1, [sp, #4]
	mov	r4, r0
	ldr	r1, .L29
	add	r0, sp, #4
	bl	strsep
	ldrb	r3, [r0]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L26
	ldr	r2, [sp, #4]
	cmp	r2, #0
	movne	r5, r3
	beq	.L27
.L10:
	ldr	r1, .L29+4
	add	r0, sp, #4
	bl	strsep
	ldr	r3, [sp, #4]
	mov	r6, r0
	cmp	r3, #0
	beq	.L7
	ldr	r1, .L29+8
	add	r0, sp, #4
	bl	strsep
	ldr	r3, [sp, #4]
	mov	r7, r0
	cmp	r3, #0
	beq	.L7
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L7
	clz	r0, r0
	lsr	r0, r0, #5
	cmp	r6, #0
	eorne	r0, r0, #1
	ldr	r1, .L29+12
	bl	KASSERT
	mov	r1, #16
	mov	r0, r4
	bl	bzero
	cmp	r5, #0
	beq	.L8
.L12:
	mov	r1, r5
	add	r0, r4, #12
	bl	biba_parse_element
	cmp	r0, #0
	bne	.L1
	ldr	r2, .L29+16
	ldr	r3, [r4]
	ldr	r2, [r2]
	orr	r3, r3, r2
	str	r3, [r4]
.L8:
	cmp	r6, #0
	beq	.L9
	mov	r1, r6
	add	r0, r4, #8
	bl	biba_parse_element
	cmp	r0, #0
	bne	.L1
	mov	r1, r7
	add	r0, r4, #4
	bl	biba_parse_element
	cmp	r0, #0
	bne	.L1
	ldr	r2, .L29+20
	ldr	r3, [r4]
	ldr	r2, [r2]
	orr	r3, r3, r2
	str	r3, [r4]
.L9:
	mov	r0, r4
	bl	biba_valid
.L28:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L26:
	ldr	r7, [sp, #4]
	mov	r5, r0
	cmp	r7, #0
	bne	.L10
	ldr	r1, .L29+12
	mov	r0, #1
	bl	KASSERT
	mov	r1, #16
	mov	r0, r4
	bl	bzero
	mov	r6, r7
	b	.L12
.L7:
	ldr	r3, .L29+24
	ldr	r0, [r3]
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L27:
	ldr	r1, .L29+12
	mov	r0, #1
	bl	KASSERT
	mov	r1, #16
	mov	r0, r4
	bl	bzero
	mov	r0, r4
	bl	biba_valid
	b	.L28
.L30:
	.align	2
.L29:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	MAC_BIBA_FLAG_EFFECTIVE
	.word	MAC_BIBA_FLAG_RANGE
	.word	EINVAL
	.size	biba_parse, .-biba_parse
	.comm	MAC_BIBA_FLAG_RANGE,4,4
	.comm	MAC_BIBA_FLAG_EFFECTIVE,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
