	.file	"8180.c"
	.intel_syntax noprefix
	.text
	.local	nerr
	.comm	nerr,4,4
	.type	validate, @function
validate:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	sepol_check_context@PLT
	test	eax, eax
	jns	.L2
	mov	eax, DWORD PTR nerr[rip]
	add	eax, 1
	mov	DWORD PTR nerr[rip], eax
	mov	eax, -1
	jmp	.L3
.L2:
	mov	eax, 0
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	validate, .-validate
	.section	.rodata
	.align 8
.LC0:
	.string	"usage:  %s [OPTIONS] sepolicy context_file\n\n"
	.align 8
.LC1:
	.string	"Parses a context file and checks for syntax errors.\n"
	.align 8
.LC2:
	.string	"The context_file is assumed to be a file_contexts file\n"
	.align 8
.LC3:
	.string	"unless explicitly switched by an option.\n\n"
.LC4:
	.string	"    OPTIONS:\n"
	.align 8
.LC5:
	.string	"     -p : context file represents a property_context file.\n"
	.text
	.type	usage, @function
usage:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 52
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 55
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 42
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 13
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 59
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	usage, .-usage
	.section	.rodata
.LC6:
	.string	"ph"
	.align 8
.LC7:
	.string	"Expected sepolicy file and context file as arguments.\n"
.LC8:
	.string	"r"
.LC9:
	.string	"Error loading policy from %s\n"
	.align 8
.LC10:
	.string	"Error loading context file from %s\n"
	.align 8
.LC11:
	.string	"Invalid context file found in %s\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 112
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -48[rbp], 1
	mov	QWORD PTR -40[rbp], 1
	mov	DWORD PTR -32[rbp], 3
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -88[rbp], 0
	jmp	.L6
.L8:
	movsx	eax, BYTE PTR -89[rbp]
	cmp	eax, 112
	jne	.L7
	mov	DWORD PTR -88[rbp], 4
	jmp	.L6
.L7:
	mov	rax, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	usage
	nop
.L6:
	mov	rcx, QWORD PTR -112[rbp]
	mov	eax, DWORD PTR -100[rbp]
	lea	rdx, .LC6[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	BYTE PTR -89[rbp], al
	cmp	BYTE PTR -89[rbp], -1
	jne	.L8
	mov	eax, DWORD PTR optind[rip]
	mov	DWORD PTR -84[rbp], eax
	mov	edx, DWORD PTR optind[rip]
	mov	eax, DWORD PTR -100[rbp]
	sub	eax, edx
	cmp	eax, 2
	je	.L9
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 54
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	usage
.L9:
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -80[rbp], rax
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -64[rbp], rax
	cmp	QWORD PTR -64[rbp], 0
	jne	.L10
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 2
	call	exit@PLT
.L10:
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	sepol_set_policydb_from_file@PLT
	test	eax, eax
	jns	.L11
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -80[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 3
	call	exit@PLT
.L11:
	lea	rax, validate[rip]
	mov	rsi, rax
	mov	edi, 2
	call	selinux_set_callback@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR -24[rbp], rax
	lea	rcx, -48[rbp]
	mov	eax, DWORD PTR -88[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	call	selabel_open@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	jne	.L12
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -72[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 4
	call	exit@PLT
.L12:
	mov	eax, DWORD PTR nerr[rip]
	test	eax, eax
	je	.L13
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -72[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 5
	call	exit@PLT
.L13:
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"8180.c"
	.text
	.local	nerr
	.comm	nerr,4,4
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	validate, %function
validate:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	sepol_check_context
	mov	r3, r0
	cmp	r3, #0
	bge	.L2
	ldr	r3, .L4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L4
	str	r3, [r2]
	mvn	r3, #0
	b	.L3
.L2:
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	nerr
	.size	validate, .-validate
	.section	.rodata
	.align	2
.LC1:
	.ascii	"usage:  %s [OPTIONS] sepolicy context_file\012\012\000"
	.align	2
.LC2:
	.ascii	"Parses a context file and checks for syntax errors."
	.ascii	"\012\000"
	.align	2
.LC3:
	.ascii	"The context_file is assumed to be a file_contexts f"
	.ascii	"ile\012\000"
	.align	2
.LC4:
	.ascii	"unless explicitly switched by an option.\012\012\000"
	.align	2
.LC5:
	.ascii	"    OPTIONS:\012\000"
	.align	2
.LC6:
	.ascii	"     -p : context file represents a property_contex"
	.ascii	"t file.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, .L7
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L7+4
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L7
	ldr	r3, [r3]
	mov	r2, #52
	mov	r1, #1
	ldr	r0, .L7+8
	bl	fwrite
	ldr	r3, .L7
	ldr	r3, [r3]
	mov	r2, #55
	mov	r1, #1
	ldr	r0, .L7+12
	bl	fwrite
	ldr	r3, .L7
	ldr	r3, [r3]
	mov	r2, #42
	mov	r1, #1
	ldr	r0, .L7+16
	bl	fwrite
	ldr	r3, .L7
	ldr	r3, [r3]
	mov	r2, #13
	mov	r1, #1
	ldr	r0, .L7+20
	bl	fwrite
	ldr	r3, .L7
	ldr	r3, [r3]
	mov	r2, #59
	mov	r1, #1
	ldr	r0, .L7+24
	bl	fwrite
	ldr	r3, .L7
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	mov	r0, #1
	bl	exit
.L8:
	.align	2
.L7:
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC7:
	.ascii	"ph\000"
	.align	2
.LC0:
	.word	1
	.word	1
	.word	3
	.word	0
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L15+4
	sub	ip, fp, #24
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L10
.L14:
	mov	r3, #4
	str	r3, [fp, #-28]
	b	.L10
.L11:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	mov	r0, r3
	bl	usage
	nop
.L10:
	ldr	r2, .L15+8
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	getopt
	mov	r3, r0
	strb	r3, [fp, #-29]
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #112
	bne	.L11
	b	.L14
.L16:
	.align	2
.L15:
	.word	.LC8
	.word	.LC0
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
