	.file	"843141.c"
	.intel_syntax noprefix
	.text
	.type	seccomp, @function
seccomp:
.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	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	QWORD PTR -16[rbp], rdx
	mov	rcx, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	mov	edi, 317
	mov	eax, 0
	call	syscall@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	seccomp, .-seccomp
	.section	.rodata
.LC0:
	.string	"seccomp"
	.text
	.type	install_filter, @function
install_filter:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	WORD PTR -112[rbp], 32
	mov	BYTE PTR -110[rbp], 0
	mov	BYTE PTR -109[rbp], 0
	mov	DWORD PTR -108[rbp], 4
	mov	WORD PTR -104[rbp], 21
	mov	BYTE PTR -102[rbp], 2
	mov	BYTE PTR -101[rbp], 0
	mov	DWORD PTR -100[rbp], -1073741762
	mov	WORD PTR -96[rbp], 21
	mov	BYTE PTR -94[rbp], 1
	mov	BYTE PTR -93[rbp], 0
	mov	DWORD PTR -92[rbp], 1073741827
	mov	WORD PTR -88[rbp], 6
	mov	BYTE PTR -86[rbp], 0
	mov	BYTE PTR -85[rbp], 0
	mov	DWORD PTR -84[rbp], -2147483648
	mov	WORD PTR -80[rbp], 32
	mov	BYTE PTR -78[rbp], 0
	mov	BYTE PTR -77[rbp], 0
	mov	DWORD PTR -76[rbp], 0
	mov	WORD PTR -72[rbp], 21
	mov	BYTE PTR -70[rbp], 0
	mov	BYTE PTR -69[rbp], 1
	mov	DWORD PTR -68[rbp], 244
	mov	WORD PTR -64[rbp], 6
	mov	BYTE PTR -62[rbp], 0
	mov	BYTE PTR -61[rbp], 0
	mov	DWORD PTR -60[rbp], 327924
	mov	WORD PTR -56[rbp], 21
	mov	BYTE PTR -54[rbp], 0
	mov	BYTE PTR -53[rbp], 1
	mov	DWORD PTR -52[rbp], 281
	mov	WORD PTR -48[rbp], 6
	mov	BYTE PTR -46[rbp], 0
	mov	BYTE PTR -45[rbp], 0
	mov	DWORD PTR -44[rbp], 327961
	mov	WORD PTR -40[rbp], 21
	mov	BYTE PTR -38[rbp], 0
	mov	BYTE PTR -37[rbp], 1
	mov	DWORD PTR -36[rbp], 1073742351
	mov	WORD PTR -32[rbp], 6
	mov	BYTE PTR -30[rbp], 0
	mov	BYTE PTR -29[rbp], 0
	mov	DWORD PTR -28[rbp], 328207
	mov	WORD PTR -24[rbp], 6
	mov	BYTE PTR -22[rbp], 0
	mov	BYTE PTR -21[rbp], 0
	mov	DWORD PTR -20[rbp], 2147418112
	mov	WORD PTR -128[rbp], 12
	lea	rax, -112[rbp]
	mov	QWORD PTR -120[rbp], rax
	lea	rax, -128[rbp]
	mov	rdx, rax
	mov	esi, 0
	mov	edi, 1
	call	seccomp
	cmp	eax, -1
	jne	.L6
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	install_filter, .-install_filter
	.section	.rodata
.LC1:
	.string	"NO_SECCOMP_FILTER"
.LC2:
	.string	"prctl"
	.align 8
.LC3:
	.string	"Initial execution; installing seccomp filter"
.LC4:
	.string	"\targv[0] = %s; PID = %ld\n"
	.align 8
.LC5:
	.string	"echo -n '\t'; grep Seccomp /proc/%ld/status"
	.align 8
.LC6:
	.string	"echo -n '\t'; file -L /proc/%ld/exe | sed 's/,.*//'"
	.align 8
.LC7:
	.string	"mq_notify() failed with errno = %d\n"
	.align 8
.LC8:
	.string	"mq_notify() was not failed by seccomp() filter!"
	.align 8
.LC9:
	.string	"*** Make sure that the %s environment variable is not set\n"
	.align 8
.LC10:
	.string	"    when running this program."
	.align 8
.LC11:
	.string	"*** Otherwise, check the syscall numbers in kernel headers"
	.align 8
.LC12:
	.string	"    to see that they are correct"
.LC13:
	.string	"y"
.LC14:
	.string	"About to exec: %s\n"
.LC15:
	.string	"execvp"
	.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, 1072
	mov	DWORD PTR -1060[rbp], edi
	mov	QWORD PTR -1072[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC1[rip]
	mov	QWORD PTR -1048[rbp], rax
	mov	rax, QWORD PTR -1048[rbp]
	mov	rdi, rax
	call	getenv@PLT
	test	rax, rax
	jne	.L8
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 0
	mov	esi, 1
	mov	edi, 38
	mov	eax, 0
	call	prctl@PLT
	test	eax, eax
	je	.L9
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	call	install_filter
.L8:
	call	getpid@PLT
	movsx	rdx, eax
	mov	rax, QWORD PTR -1072[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	call	getpid@PLT
	movsx	rdx, eax
	lea	rax, -1040[rbp]
	mov	rcx, rdx
	lea	rdx, .LC5[rip]
	mov	esi, 1024
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	system@PLT
	call	getpid@PLT
	movsx	rdx, eax
	lea	rax, -1040[rbp]
	mov	rcx, rdx
	lea	rdx, .LC6[rip]
	mov	esi, 1024
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	system@PLT
	mov	esi, 0
	mov	edi, 0
	call	mq_notify@PLT
	cmp	eax, -1
	jne	.L10
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 9
	je	.L10
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -1060[rbp], 1
	jg	.L11
	jmp	.L14
.L10:
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -1048[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L11:
	mov	rax, QWORD PTR -1048[rbp]
	mov	edx, 1
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	setenv@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -1072[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -1072[rbp]
	lea	rdx, 8[rax]
	mov	rax, QWORD PTR -1072[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	execv@PLT
	lea	rdi, .LC15[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L14:
	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	"843141.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	seccomp, %function
seccomp:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	ldr	r0, .L3
	bl	syscall
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	383
	.size	seccomp, .-seccomp
	.section	.rodata
	.align	2
.LC1:
	.ascii	"seccomp\000"
	.align	2
.LC0:
	.short	32
	.byte	0
	.byte	0
	.word	4
	.short	21
	.byte	2
	.byte	0
	.word	-1073741762
	.short	21
	.byte	1
	.byte	0
	.word	1073741827
	.short	6
	.byte	0
	.byte	0
	.word	-2147483648
	.short	32
	.byte	0
	.byte	0
	.word	0
	.short	21
	.byte	0
	.byte	1
	.word	244
	.short	6
	.byte	0
	.byte	0
	.word	327924
	.short	21
	.byte	0
	.byte	1
	.word	281
	.short	6
	.byte	0
	.byte	0
	.word	327961
	.short	21
	.byte	0
	.byte	1
	.word	1073742351
	.short	6
	.byte	0
	.byte	0
	.word	328207
	.short	6
	.byte	0
	.byte	0
	.word	2147418112
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	install_filter, %function
install_filter:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L9+4
	sub	r3, fp, #104
	mov	r1, r2
	mov	r2, #96
	mov	r0, r3
	bl	memcpy
	mov	r3, #12
	strh	r3, [fp, #-112]	@ movhi
	sub	r3, fp, #104
	str	r3, [fp, #-108]
	sub	r3, fp, #112
	mov	r2, r3
	mov	r1, #0
	mov	r0, #1
	bl	seccomp
	mov	r3, r0
	cmn	r3, #1
	bne	.L8
	ldr	r0, .L9+8
	bl	perror
	mov	r0, #1
	bl	exit
.L8:
	nop
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	install_filter, .-install_filter
	.section	.rodata
	.align	2
.LC3:
	.ascii	"NO_SECCOMP_FILTER\000"
	.align	2
.LC4:
	.ascii	"prctl\000"
	.align	2
.LC5:
	.ascii	"Initial execution; installing seccomp filter\000"
	.align	2
.LC6:
	.ascii	"\011argv[0] = %s; PID = %ld\012\000"
	.align	2
.LC7:
	.ascii	"echo -n '\011'; grep Seccomp /proc/%ld/status\000"
	.align	2
.LC8:
	.ascii	"echo -n '\011'; file -L /proc/%ld/exe | sed 's/,.*/"
	.ascii	"/'\000"
	.align	2
.LC9:
	.ascii	"mq_notify() failed with errno = %d\012\000"
	.align	2
.LC10:
	.ascii	"mq_notify() was not failed by seccomp() filter!\000"
	.align	2
.LC11:
	.ascii	"*** Make sure that the %s environment variable is n"
	.ascii	"ot set\012\000"
	.align	2
.LC12:
	.ascii	"    when running this program.\000"
	.align	2
.LC13:
	.ascii	"*** Otherwise, check the syscall numbers in kernel "
	.ascii	"headers\000"
	.align	2
.LC14:
	.ascii	"    to see that they are correct\000"
	.align	2
.LC15:
	.ascii	"y\000"
	.align	2
.LC16:
	.ascii	"About to exec: %s\012\000"
	.align	2
.LC17:
	.ascii	"execvp\000"
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1040
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #1040
	sub	sp, sp, #12
	str	r0, [fp, #-1048]
	str	r1, [fp, #-1052]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L19+4
	str	r3, [fp, #-1044]
	ldr	r0, [fp, #-1044]
	bl	getenv
	mov	r3, r0
	cmp	r3, #0
	bne	.L12
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	mov	r1, #1
	mov	r0, #38
	bl	prctl
	mov	r3, r0
	cmp	r3, #0
	beq	.L13
	ldr	r0, .L19+8
	bl	perror
	mov	r0, #1
	bl	exit
.L13:
	ldr	r0, .L19+12
	bl	puts
	bl	install_filter
.L12:
	ldr	r3, [fp, #-1052]
	ldr	r4, [r3]
	bl	getpid
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L19+16
	bl	printf
	bl	getpid
	mov	r3, r0
	sub	r0, fp, #1024
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r2, .L19+20
	mov	r1, #1024
	bl	snprintf
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	system
	bl	getpid
	mov	r3, r0
	sub	r0, fp, #1024
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r2, .L19+24
	mov	r1, #1024
	bl	snprintf
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	system
	mov	r1, #0
	mov	r0, #0
	bl	mq_notify
	mov	r3, r0
	cmn	r3, #1
	bne	.L14
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #9
	beq	.L14
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L19+28
	bl	printf
	ldr	r3, [fp, #-1048]
	cmp	r3, #1
	bgt	.L15
	b	.L18
.L14:
	ldr	r0, .L19+32
	bl	puts
	ldr	r1, [fp, #-1044]
	ldr	r0, .L19+36
	bl	printf
	ldr	r0, .L19+40
	bl	puts
	ldr	r0, .L19+44
	bl	puts
	ldr	r0, .L19+48
	bl	puts
	mov	r0, #1
	bl	exit
.L15:
	mov	r2, #1
	ldr	r1, .L19+52
	ldr	r0, [fp, #-1044]
	bl	setenv
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-1052]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L19+56
	bl	printf
	ldr	r3, [fp, #-1052]
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-1052]
	add	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	execv
	ldr	r0, .L19+60
	bl	perror
	mov	r0, #1
	bl	exit
.L18:
	mov	r0, #0
	bl	exit
.L20:
	.align	2
.L19:
	.word	.LC18
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
