	.file	"298380.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.ascii	"usage:  %s [-v] -p <path> [-f file]\n\nWhere:\n\t-v  Validat"
	.ascii	"e file_contxts entries against loaded policy.\n\t-p  Path to"
	.ascii	" check if a match or partial match is possible\n\t    agains"
	.ascii	"t a regex entry in the file_conte"
	.string	"xts file.\n\t-f  Optional file_contexts file (defaults to current policy).\n\nExample:\n\t%s -p /sys/devices/system/cpu/online\n\t   Check if a match or partial match is possible against\n\t   the path \"/sys/devices/system/cpu/online\", returning\n\t   TRUE or FALSE.\n\n"
	.text
	.type	usage, @function
usage:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	usage, .-usage
	.section	.rodata
.LC1:
	.string	"f:vp:"
	.align 8
.LC2:
	.string	"ERROR: selabel_open - Could not obtain handle.\n"
.LC3:
	.string	"TRUE"
.LC4:
	.string	"FALSE"
.LC5:
	.string	"Match or Partial match: %s\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 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	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	DWORD PTR -48[rbp], 3
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	DWORD PTR -32[rbp], 1
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR -24[rbp], rax
	cmp	DWORD PTR -100[rbp], 1
	jg	.L4
	mov	rax, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	usage
.L9:
	cmp	DWORD PTR -84[rbp], 118
	je	.L5
	cmp	DWORD PTR -84[rbp], 118
	jg	.L6
	cmp	DWORD PTR -84[rbp], 102
	je	.L7
	cmp	DWORD PTR -84[rbp], 112
	je	.L8
	jmp	.L6
.L7:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -64[rbp], rax
	jmp	.L4
.L5:
	mov	QWORD PTR -80[rbp], 1
	jmp	.L4
.L8:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -72[rbp], rax
	jmp	.L4
.L6:
	mov	rax, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	usage
.L4:
	mov	rcx, QWORD PTR -112[rbp]
	mov	eax, DWORD PTR -100[rbp]
	lea	rdx, .LC1[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], 0
	jg	.L9
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR -24[rbp], rax
	lea	rax, -48[rbp]
	mov	edx, 2
	mov	rsi, rax
	mov	edi, 0
	call	selabel_open@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	jne	.L10
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 47
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	eax, -1
	jmp	.L14
.L10:
	mov	rdx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	selabel_partial_match@PLT
	mov	BYTE PTR -85[rbp], al
	cmp	BYTE PTR -85[rbp], 0
	je	.L12
	lea	rax, .LC3[rip]
	jmp	.L13
.L12:
	lea	rax, .LC4[rip]
.L13:
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	selabel_close@PLT
	movzx	eax, BYTE PTR -85[rbp]
.L14:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"298380.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"usage:  %s [-v] -p <path> [-f file]\012\012Where:\012"
	.ascii	"\011-v  Validate file_contxts entries against loade"
	.ascii	"d policy.\012\011-p  Path to check if a match or pa"
	.ascii	"rtial match is possible\012\011    against a regex "
	.ascii	"entry in the file_contexts file.\012\011-f  Optiona"
	.ascii	"l file_contexts file (defaults to current policy).\012"
	.ascii	"\012Example:\012\011%s -p /sys/devices/system/cpu/o"
	.ascii	"nline\012\011   Check if a match or partial match i"
	.ascii	"s possible against\012\011   the path \"/sys/device"
	.ascii	"s/system/cpu/online\", returning\012\011   TRUE or "
	.ascii	"FALSE.\012\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, .L2
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r1, .L2+4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L3:
	.align	2
.L2:
	.word	stderr
	.word	.LC0
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC1:
	.ascii	"f:vp:\000"
	.align	2
.LC2:
	.ascii	"ERROR: selabel_open - Could not obtain handle.\012\000"
	.align	2
.LC3:
	.ascii	"TRUE\000"
	.align	2
.LC4:
	.ascii	"FALSE\000"
	.align	2
.LC5:
	.ascii	"Match or Partial match: %s\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-20]
	mov	r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-56]
	cmp	r3, #1
	bgt	.L6
	ldr	r3, [fp, #-60]
	ldr	r3, [r3]
	mov	r0, r3
	bl	usage
.L11:
	ldr	r3, [fp, #-32]
	cmp	r3, #118
	beq	.L7
	ldr	r3, [fp, #-32]
	cmp	r3, #118
	bgt	.L8
	ldr	r3, [fp, #-32]
	cmp	r3, #102
	beq	.L9
	ldr	r3, [fp, #-32]
	cmp	r3, #112
	beq	.L10
	b	.L8
.L9:
	ldr	r3, .L18+4
	ldr	r3, [r3]
	str	r3, [fp, #-36]
	b	.L6
.L7:
	mov	r3, #1
	str	r3, [fp, #-44]
	b	.L6
.L10:
	ldr	r3, .L18+4
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	b	.L6
.L8:
	ldr	r3, [fp, #-60]
	ldr	r3, [r3]
	mov	r0, r3
	bl	usage
.L6:
	ldr	r2, .L18+8
	ldr	r1, [fp, #-60]
	ldr	r0, [fp, #-56]
	bl	getopt
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bgt	.L11
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-12]
	sub	r3, fp, #24
	mov	r2, #2
	mov	r1, r3
	mov	r0, #0
	bl	selabel_open
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L12
	ldr	r3, .L18+12
	ldr	r3, [r3]
	mov	r2, #47
	mov	r1, #1
	ldr	r0, .L18+16
	bl	fwrite
	mvn	r3, #0
	b	.L16
.L12:
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-28]
	bl	selabel_partial_match
	mov	r3, r0
	strb	r3, [fp, #-45]
	ldrb	r3, [fp, #-45]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L14
	ldr	r3, .L18+20
	b	.L15
.L14:
	ldr	r3, .L18+24
.L15:
	mov	r1, r3
	ldr	r0, .L18+28
	bl	printf
	ldr	r0, [fp, #-28]
	bl	selabel_close
	ldrb	r3, [fp, #-45]	@ zero_extendqisi2
.L16:
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC6
	.word	optarg
	.word	.LC1
	.word	stderr
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
