	.file	"extr_seccomp_benchmark.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Benchmarking %llu samples...\n"
.LC1:
	.string	"getpid native: %llu ns\n"
.LC2:
	.string	"getpid RET_ALLOW: %llu ns\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC3:
	.string	"Estimated seccomp overhead per syscall: %llu ns\n"
	.align 8
.LC4:
	.string	"Trying running again with more samples."
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, edi
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR SECCOMP_RET_ALLOW[rip]
	mov	edi, DWORD PTR BPF_RET[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	or	edi, DWORD PTR BPF_K[rip]
	lea	r13, 20[rsp]
	call	BPF_STMT@PLT
	mov	rdi, r13
	mov	DWORD PTR 20[rsp], eax
	call	ARRAY_SIZE@PLT
	mov	QWORD PTR 8[rsp], r13
	mov	WORD PTR [rsp], ax
	cmp	ebx, 1
	jle	.L2
	mov	rdi, QWORD PTR 8[r12]
	xor	edx, edx
	xor	esi, esi
	call	strtoull@PLT
	mov	rbx, rax
.L3:
	mov	rsi, rbx
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	printf@PLT
	mov	edi, DWORD PTR CLOCK_PROCESS_CPUTIME_ID[rip]
	mov	rsi, rbx
	call	timing@PLT
	xor	edx, edx
	lea	rdi, .LC1[rip]
	div	rbx
	mov	r13, rax
	mov	rsi, rax
	xor	eax, eax
	call	printf@PLT
	mov	edi, DWORD PTR PR_SET_NO_NEW_PRIVS[rip]
	xor	r8d, r8d
	xor	ecx, ecx
	xor	edx, edx
	mov	esi, 1
	xor	eax, eax
	call	prctl@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	call	assert@PLT
	mov	esi, DWORD PTR SECCOMP_MODE_FILTER[rip]
	mov	rdx, rsp
	xor	eax, eax
	mov	edi, DWORD PTR PR_SET_SECCOMP[rip]
	call	prctl@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	call	assert@PLT
	mov	edi, DWORD PTR CLOCK_PROCESS_CPUTIME_ID[rip]
	mov	rsi, rbx
	call	timing@PLT
	xor	edx, edx
	lea	rdi, .LC2[rip]
	div	rbx
	mov	r12, rax
	mov	rsi, rax
	xor	eax, eax
	call	printf@PLT
	mov	rsi, r12
	xor	eax, eax
	lea	rdi, .LC3[rip]
	sub	rsi, r13
	call	printf@PLT
	cmp	r13, r12
	je	.L8
.L4:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	xor	eax, eax
	call	calibrate@PLT
	mov	rbx, rax
	jmp	.L3
.L8:
	lea	rdi, .LC4[rip]
	call	puts@PLT
	jmp	.L4
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	SECCOMP_RET_ALLOW,4,4
	.comm	SECCOMP_MODE_FILTER,4,4
	.comm	PR_SET_SECCOMP,4,4
	.comm	PR_SET_NO_NEW_PRIVS,4,4
	.comm	CLOCK_PROCESS_CPUTIME_ID,4,4
	.comm	BPF_RET,4,4
	.comm	BPF_K,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_seccomp_benchmark.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Benchmarking %llu samples...\012\000"
	.global	__aeabi_uldivmod
	.align	2
.LC1:
	.ascii	"getpid native: %llu ns\012\000"
	.align	2
.LC2:
	.ascii	"getpid RET_ALLOW: %llu ns\012\000"
	.align	2
.LC3:
	.ascii	"Estimated seccomp overhead per syscall: %llu ns\012"
	.ascii	"\000"
	.align	2
.LC4:
	.ascii	"Trying running again with more samples.\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.section	.text.startup,"ax",%progbits
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r2, .L10
	mov	r5, r1
	ldr	r1, .L10+4
	mov	r4, r0
	ldr	r0, [r1]
	ldr	r1, [r2]
	ldr	r2, .L10+8
	ldr	r3, .L10+12
	sub	sp, sp, #24
	orr	r0, r0, r1
	ldr	r1, [r2]
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	BPF_STMT
	add	r6, sp, #16
	str	r0, [sp, #16]
	mov	r0, r6
	bl	ARRAY_SIZE
	cmp	r4, #1
	str	r6, [sp, #12]
	strh	r0, [sp, #8]	@ movhi
	ble	.L2
	mov	r2, #0
	ldr	r0, [r5, #4]
	mov	r1, r2
	bl	strtoull
	mov	r5, r0
	mov	r4, r1
.L3:
	ldr	r8, .L10+16
	mov	r2, r5
	mov	r3, r4
	ldr	r0, .L10+20
	bl	printf
	mov	r2, r5
	mov	r3, r4
	ldr	r0, [r8]
	bl	timing
	mov	r2, r5
	mov	r3, r4
	bl	__aeabi_uldivmod
	mov	r6, r0
	mov	r3, r1
	mov	r2, r6
	ldr	r0, .L10+24
	mov	r7, r1
	bl	printf
	mov	r3, #0
	ldr	r1, .L10+28
	str	r3, [sp]
	mov	r2, r3
	ldr	r0, [r1]
	mov	r1, #1
	bl	prctl
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldr	r3, .L10+32
	ldr	r2, .L10+36
	ldr	r0, [r3]
	ldr	r1, [r2]
	add	r2, sp, #8
	bl	prctl
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	mov	r2, r5
	mov	r3, r4
	ldr	r0, [r8]
	bl	timing
	mov	r2, r5
	mov	r3, r4
	bl	__aeabi_uldivmod
	mov	r4, r0
	mov	r5, r1
	mov	r3, r1
	mov	r2, r4
	ldr	r0, .L10+40
	bl	printf
	subs	r2, r4, r6
	sbc	r3, r5, r7
	ldr	r0, .L10+44
	bl	printf
	cmp	r7, r5
	cmpeq	r6, r4
	beq	.L8
.L4:
	ldr	r3, .L10+12
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	mov	r0, #0
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	bl	calibrate
	mov	r5, r0
	mov	r4, r1
	b	.L3
.L8:
	ldr	r0, .L10+48
	bl	puts
	b	.L4
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	BPF_K
	.word	BPF_RET
	.word	SECCOMP_RET_ALLOW
	.word	.LC5
	.word	CLOCK_PROCESS_CPUTIME_ID
	.word	.LC0
	.word	.LC1
	.word	PR_SET_NO_NEW_PRIVS
	.word	PR_SET_SECCOMP
	.word	SECCOMP_MODE_FILTER
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.comm	SECCOMP_RET_ALLOW,4,4
	.comm	SECCOMP_MODE_FILTER,4,4
	.comm	PR_SET_SECCOMP,4,4
	.comm	PR_SET_NO_NEW_PRIVS,4,4
	.comm	CLOCK_PROCESS_CPUTIME_ID,4,4
	.comm	BPF_RET,4,4
	.comm	BPF_K,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
