	.file	"extr_policydb.c_context_read_and_validate.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"SELinux: context truncated\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"SELinux: error reading MLS range of context\n"
	.align 8
.LC2:
	.string	"SELinux:  invalid security context\n"
	.text
	.p2align 4
	.type	context_read_and_validate, @function
context_read_and_validate:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdx
	mov	edx, 12
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	rsi, r13
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	rdi, 12[rsp]
	call	next_entry@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L11
	mov	edi, DWORD PTR 12[rsp]
	call	le32_to_cpu@PLT
	mov	edi, DWORD PTR 16[rsp]
	mov	QWORD PTR 24[rbp], rax
	call	le32_to_cpu@PLT
	mov	edi, DWORD PTR 20[rsp]
	mov	QWORD PTR 16[rbp], rax
	call	le32_to_cpu@PLT
	mov	QWORD PTR 8[rbp], rax
	mov	rax, QWORD PTR POLICYDB_VERSION_MLS[rip]
	cmp	QWORD PTR [r14], rax
	jl	.L4
	mov	rsi, r13
	mov	rdi, rbp
	call	mls_read_range_helper@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L12
.L4:
	mov	rsi, rbp
	mov	rdi, r14
	mov	r13d, DWORD PTR EINVAL[rip]
	call	policydb_context_isvalid@PLT
	test	eax, eax
	je	.L13
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	pr_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
.L3:
	endbr64
	lea	rdi, .LC2[rip]
	mov	r12d, r13d
	call	pr_err@PLT
	mov	rdi, rbp
	neg	r12d
	call	context_destroy@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	lea	rdi, .LC1[rip]
	mov	r12d, r13d
	call	pr_err@PLT
	jmp	.L1
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	context_read_and_validate, .-context_read_and_validate
	.comm	POLICYDB_VERSION_MLS,8,8
	.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_policydb.c_context_read_and_validate.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"SELinux: context truncated\012\000"
	.align	2
.LC1:
	.ascii	"SELinux: error reading MLS range of context\012\000"
	.align	2
.LC2:
	.ascii	"SELinux:  invalid security context\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	context_read_and_validate, %function
context_read_and_validate:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r6, r2
	sub	sp, sp, #20
	ldr	r3, .L15
	mov	r4, r0
	mov	r7, r1
	mov	r2, #12
	mov	r1, r6
	mov	r0, sp
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	next_entry
	subs	r5, r0, #0
	bne	.L11
	ldr	r0, [sp]
	bl	le32_to_cpu
	mov	r3, r0
	ldr	r0, [sp, #4]
	str	r3, [r4, #12]
	bl	le32_to_cpu
	mov	r3, r0
	ldr	r0, [sp, #8]
	str	r3, [r4, #8]
	bl	le32_to_cpu
	ldr	r3, .L15+4
	ldr	r2, [r7]
	ldr	r3, [r3]
	str	r0, [r4, #4]
	cmp	r2, r3
	blt	.L4
	mov	r1, r6
	mov	r0, r4
	bl	mls_read_range_helper
	subs	r3, r0, #0
	bne	.L12
.L4:
	ldr	r3, .L15+8
	mov	r0, r7
	mov	r1, r4
	ldr	r6, [r3]
	bl	policydb_context_isvalid
	cmp	r0, #0
	beq	.L13
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L11:
	ldr	r0, .L15+12
	bl	pr_err
	b	.L1
.L13:
.L3:
	ldr	r0, .L15+16
	bl	pr_err
	mov	r0, r4
	rsb	r5, r6, #0
	bl	context_destroy
	b	.L1
.L12:
	ldr	r0, .L15+20
	mov	r5, r3
	bl	pr_err
	b	.L1
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC3
	.word	POLICYDB_VERSION_MLS
	.word	EINVAL
	.word	.LC0
	.word	.LC2
	.word	.LC1
	.size	context_read_and_validate, .-context_read_and_validate
	.comm	POLICYDB_VERSION_MLS,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
