	.file	"38140.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC1:
	.string	"%d"
.LC2:
	.string	"/sys/class/gpio/export"
	.align 8
.LC3:
	.string	"Failed to export gpio (for writing in pin).\n"
	.align 8
.LC4:
	.string	"/sys/class/gpio/gpio%d/direction"
	.align 8
.LC5:
	.string	"Failed to open GPIODirection_in.\n"
.LC6:
	.string	"in"
.LC7:
	.string	"/sys/class/gpio/gpio%d/edge"
.LC8:
	.string	"Failed to open GPIOEdge_in.\n"
.LC9:
	.string	"both"
	.align 8
.LC10:
	.string	"Failed to export gpio (for writing out pin).\n"
	.align 8
.LC11:
	.string	"Failed to open GPIODirection_out.\n"
.LC12:
	.string	"out"
.LC13:
	.string	"/sys/class/gpio/gpio%d/value"
	.align 8
.LC14:
	.string	"Failed to open GPIO_out %d value.\n"
	.align 8
.LC15:
	.string	"Failed to open GPIO_in %d value.\n"
.LC16:
	.string	"Time elapsed in secs = %ld\n"
	.align 8
.LC17:
	.string	"\nSamples: %u, average (mean) latency = %.01fusecs, "
	.align 8
.LC19:
	.string	"\nVariance is: %.01f, and standard deviation is: %.01f "
.LC20:
	.string	"\nmedian latency = %.01fusecs "
	.align 8
.LC21:
	.string	"min latency = %.01fusecs at i=%lu, max latency = %.01fusecs at i=%lu\n"
	.align 8
.LC22:
	.string	"The amount greater than mean is %u (%u%) and the amount smaller or equal is %u (%u%)\n"
.LC23:
	.string	"/sys/class/gpio/unexport"
	.align 8
.LC24:
	.string	"Failed to unexport gpio pin in.\n"
	.align 8
.LC25:
	.string	"Failed to unexport gpio pin out.\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 576
	mov	DWORD PTR -548[rbp], edi
	mov	QWORD PTR -560[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 3
	call	mlockall@PLT
	mov	QWORD PTR -472[rbp], 1
	mov	DWORD PTR -536[rbp], 0
	mov	DWORD PTR -528[rbp], 0
	mov	DWORD PTR -524[rbp], 0
	mov	edi, 1600080
	call	malloc@PLT
	mov	QWORD PTR -448[rbp], rax
	pxor	xmm0, xmm0
	movss	DWORD PTR -520[rbp], xmm0
	pxor	xmm0, xmm0
	movss	DWORD PTR -512[rbp], xmm0
	pxor	xmm0, xmm0
	movss	DWORD PTR -508[rbp], xmm0
	lea	rax, -352[rbp]
	mov	edx, 27
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	esi, 1
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -500[rbp], eax
	cmp	DWORD PTR -500[rbp], 0
	jns	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 44
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	lea	rcx, -352[rbp]
	mov	eax, DWORD PTR -500[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -500[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rax, -336[rbp]
	mov	edx, 27
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -336[rbp]
	mov	esi, 1
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -500[rbp], eax
	cmp	DWORD PTR -500[rbp], 0
	jns	.L3
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 33
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	eax, DWORD PTR -500[rbp]
	mov	edx, 3
	lea	rsi, .LC6[rip]
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -500[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rax, -208[rbp]
	mov	edx, 27
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -208[rbp]
	mov	esi, 1
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -500[rbp], eax
	cmp	DWORD PTR -500[rbp], 0
	jns	.L4
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	eax, DWORD PTR -500[rbp]
	mov	edx, 5
	lea	rsi, .LC9[rip]
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -500[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rax, -348[rbp]
	mov	edx, 17
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	esi, 1
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -500[rbp], eax
	cmp	DWORD PTR -500[rbp], 0
	jns	.L5
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 45
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	lea	rcx, -348[rbp]
	mov	eax, DWORD PTR -500[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -500[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rax, -144[rbp]
	mov	edx, 17
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -144[rbp]
	mov	esi, 1
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -500[rbp], eax
	cmp	DWORD PTR -500[rbp], 0
	jns	.L6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 34
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	eax, DWORD PTR -500[rbp]
	mov	edx, 4
	lea	rsi, .LC12[rip]
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -500[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rax, -80[rbp]
	mov	edx, 17
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -80[rbp]
	mov	esi, 1
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -496[rbp], eax
	cmp	DWORD PTR -496[rbp], 0
	jns	.L7
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, 17
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	lea	rax, -272[rbp]
	mov	edx, 27
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -272[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -500[rbp], eax
	cmp	DWORD PTR -500[rbp], 0
	jns	.L8
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, 27
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L8:
	mov	eax, DWORD PTR -500[rbp]
	mov	DWORD PTR -440[rbp], eax
	mov	WORD PTR -436[rbp], 2
	lea	rax, -384[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	gettimeofday@PLT
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -500[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	lea	rcx, -344[rbp]
	mov	eax, DWORD PTR -500[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	lea	rax, -440[rbp]
	mov	edx, -1
	mov	esi, 1
	mov	rdi, rax
	call	poll@PLT
	mov	eax, DWORD PTR -500[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	lea	rcx, -344[rbp]
	mov	eax, DWORD PTR -500[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	lea	rax, -432[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	clock_gettime@PLT
	mov	rax, QWORD PTR -432[rbp]
	mov	rdx, QWORD PTR -424[rbp]
	mov	QWORD PTR -416[rbp], rax
	mov	QWORD PTR -408[rbp], rdx
	lea	rax, -440[rbp]
	mov	edx, -1
	mov	esi, 1
	mov	rdi, rax
	call	poll@PLT
	mov	eax, DWORD PTR -500[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	lea	rcx, -344[rbp]
	mov	eax, DWORD PTR -500[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	lea	rax, -432[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	clock_gettime@PLT
	mov	rax, QWORD PTR -432[rbp]
	mov	rdx, QWORD PTR -424[rbp]
	mov	QWORD PTR -400[rbp], rax
	mov	QWORD PTR -392[rbp], rdx
	mov	rax, QWORD PTR -400[rbp]
	imul	rsi, rax, 1000000
	mov	rcx, QWORD PTR -392[rbp]
	movabs	rdx, 2361183241434822607
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 7
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	add	rsi, rax
	mov	rax, QWORD PTR -416[rbp]
	imul	rdi, rax, 1000000
	mov	rcx, QWORD PTR -408[rbp]
	movabs	rdx, 2361183241434822607
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 7
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	lea	rcx, [rdi+rax]
	mov	eax, DWORD PTR -536[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -448[rbp]
	add	rax, rdx
	sub	rsi, rcx
	mov	rdx, rsi
	mov	QWORD PTR [rax], rdx
	add	DWORD PTR -536[rbp], 1
	mov	eax, DWORD PTR -536[rbp]
	mov	DWORD PTR -532[rbp], eax
	add	QWORD PTR -472[rbp], 1
.L9:
	mov	rax, QWORD PTR -560[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	cdqe
	cmp	QWORD PTR -472[rbp], rax
	jle	.L10
	lea	rax, -368[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -368[rbp]
	mov	rdx, QWORD PTR -384[rbp]
	sub	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rsi, QWORD PTR -368[rbp]
	mov	rcx, QWORD PTR -360[rbp]
	movabs	rdx, 4835703278458516699
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 18
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	add	rsi, rax
	mov	rdi, QWORD PTR -384[rbp]
	mov	rcx, QWORD PTR -376[rbp]
	movabs	rdx, 4835703278458516699
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 18
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	lea	rdx, [rdi+rax]
	mov	rax, rsi
	sub	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -536[rbp], 0
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -536[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -448[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rax
	movss	xmm1, DWORD PTR -520[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -520[rbp], xmm0
	add	DWORD PTR -536[rbp], 1
.L11:
	mov	eax, DWORD PTR -536[rbp]
	cmp	eax, DWORD PTR -532[rbp]
	jb	.L12
	mov	eax, DWORD PTR -532[rbp]
	test	rax, rax
	js	.L13
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rax
	jmp	.L14
.L13:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rdx
	addss	xmm0, xmm0
.L14:
	movss	xmm1, DWORD PTR -520[rbp]
	divss	xmm1, xmm0
	movss	DWORD PTR -492[rbp], xmm1
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, DWORD PTR -492[rbp]
	movq	rdx, xmm2
	mov	eax, DWORD PTR -532[rbp]
	movq	xmm0, rdx
	mov	esi, eax
	lea	rdi, .LC17[rip]
	mov	eax, 1
	call	printf@PLT
	pxor	xmm0, xmm0
	movss	DWORD PTR -504[rbp], xmm0
	mov	DWORD PTR -536[rbp], 0
	jmp	.L15
.L16:
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, DWORD PTR -504[rbp]
	movsd	QWORD PTR -568[rbp], xmm3
	mov	eax, DWORD PTR -536[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -448[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rax
	subss	xmm0, DWORD PTR -492[rbp]
	pxor	xmm4, xmm4
	cvtss2sd	xmm4, xmm0
	movq	rax, xmm4
	movsd	xmm0, QWORD PTR .LC18[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	addsd	xmm0, QWORD PTR -568[rbp]
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -504[rbp], xmm0
	add	DWORD PTR -536[rbp], 1
.L15:
	mov	eax, DWORD PTR -536[rbp]
	cmp	eax, DWORD PTR -532[rbp]
	jb	.L16
	mov	eax, DWORD PTR -532[rbp]
	test	rax, rax
	js	.L17
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rax
	jmp	.L18
.L17:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rdx
	addss	xmm0, xmm0
.L18:
	movss	xmm1, DWORD PTR -504[rbp]
	divss	xmm1, xmm0
	movss	DWORD PTR -488[rbp], xmm1
	pxor	xmm5, xmm5
	cvtss2sd	xmm5, DWORD PTR -488[rbp]
	movq	rax, xmm5
	movq	xmm0, rax
	call	sqrt@PLT
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -484[rbp], xmm0
	pxor	xmm0, xmm0
	cvtss2sd	xmm0, DWORD PTR -484[rbp]
	pxor	xmm6, xmm6
	cvtss2sd	xmm6, DWORD PTR -488[rbp]
	movq	rax, xmm6
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC19[rip]
	mov	eax, 2
	call	printf@PLT
	mov	eax, DWORD PTR -536[rbp]
	and	eax, 1
	test	eax, eax
	jne	.L19
	mov	eax, DWORD PTR -536[rbp]
	shr	eax
	sub	eax, 1
	mov	DWORD PTR -480[rbp], eax
	mov	eax, DWORD PTR -480[rbp]
	add	eax, 1
	mov	DWORD PTR -476[rbp], eax
	mov	eax, DWORD PTR -480[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -448[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -476[rbp]
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -448[rbp]
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	add	rax, rdx
	mov	rdx, rax
	shr	rdx, 63
	add	rax, rdx
	sar	rax
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rax
	movss	DWORD PTR -516[rbp], xmm0
	jmp	.L20
.L19:
	mov	eax, DWORD PTR -536[rbp]
	shr	eax
	sub	eax, 1
	mov	DWORD PTR -480[rbp], eax
	mov	eax, DWORD PTR -480[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -448[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rax
	movss	DWORD PTR -516[rbp], xmm0
.L20:
	pxor	xmm7, xmm7
	cvtss2sd	xmm7, DWORD PTR -516[rbp]
	movq	rax, xmm7
	movq	xmm0, rax
	lea	rdi, .LC20[rip]
	mov	eax, 1
	call	printf@PLT
	mov	QWORD PTR -464[rbp], 0
	mov	DWORD PTR -536[rbp], 0
	jmp	.L21
.L24:
	mov	eax, DWORD PTR -536[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -448[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rax
	comiss	xmm0, DWORD PTR -508[rbp]
	jb	.L22
	mov	eax, DWORD PTR -536[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -448[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rax
	movss	DWORD PTR -508[rbp], xmm0
	mov	eax, DWORD PTR -536[rbp]
	mov	QWORD PTR -464[rbp], rax
.L22:
	add	DWORD PTR -536[rbp], 1
.L21:
	mov	eax, DWORD PTR -536[rbp]
	cmp	eax, DWORD PTR -532[rbp]
	jb	.L24
	mov	QWORD PTR -456[rbp], 0
	movss	xmm0, DWORD PTR -508[rbp]
	movss	DWORD PTR -512[rbp], xmm0
	mov	DWORD PTR -536[rbp], 0
	jmp	.L25
.L31:
	mov	eax, DWORD PTR -536[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -448[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, rax
	movss	xmm0, DWORD PTR -512[rbp]
	comiss	xmm0, xmm1
	jb	.L26
	mov	eax, DWORD PTR -536[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -448[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rax
	movss	DWORD PTR -512[rbp], xmm0
	mov	eax, DWORD PTR -536[rbp]
	mov	QWORD PTR -456[rbp], rax
.L26:
	mov	eax, DWORD PTR -536[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -448[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rax
	comiss	xmm0, DWORD PTR -492[rbp]
	jbe	.L39
	add	DWORD PTR -528[rbp], 1
	jmp	.L30
.L39:
	add	DWORD PTR -524[rbp], 1
.L30:
	add	DWORD PTR -536[rbp], 1
.L25:
	mov	eax, DWORD PTR -536[rbp]
	cmp	eax, DWORD PTR -532[rbp]
	jb	.L31
	pxor	xmm0, xmm0
	cvtss2sd	xmm0, DWORD PTR -508[rbp]
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, DWORD PTR -512[rbp]
	movq	rax, xmm2
	mov	rdx, QWORD PTR -464[rbp]
	mov	rcx, QWORD PTR -456[rbp]
	movapd	xmm1, xmm0
	mov	rsi, rcx
	movq	xmm0, rax
	lea	rdi, .LC21[rip]
	mov	eax, 2
	call	printf@PLT
	mov	eax, DWORD PTR -524[rbp]
	imul	eax, eax, 100
	mov	edx, 0
	div	DWORD PTR -532[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -528[rbp]
	imul	eax, eax, 100
	mov	edx, 0
	div	DWORD PTR -532[rbp]
	mov	esi, eax
	mov	edx, DWORD PTR -524[rbp]
	mov	eax, DWORD PTR -528[rbp]
	mov	r8d, ecx
	mov	ecx, edx
	mov	edx, esi
	mov	esi, eax
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -500[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -496[rbp]
	mov	edi, eax
	call	close@PLT
	mov	esi, 1
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -500[rbp], eax
	cmp	DWORD PTR -500[rbp], 0
	jns	.L32
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 32
	mov	esi, 1
	lea	rdi, .LC24[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L32:
	lea	rcx, -352[rbp]
	mov	eax, DWORD PTR -500[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -500[rbp]
	mov	edi, eax
	call	close@PLT
	mov	esi, 1
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -500[rbp], eax
	cmp	DWORD PTR -500[rbp], 0
	jns	.L33
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 33
	mov	esi, 1
	lea	rdi, .LC25[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L33:
	lea	rcx, -348[rbp]
	mov	eax, DWORD PTR -500[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -500[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L35
	call	__stack_chk_fail@PLT
.L35:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC18:
	.long	0
	.long	1073741824
	.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	"38140.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.ascii	"/sys/class/gpio/export\000"
	.align	2
.LC2:
	.ascii	"Failed to export gpio (for writing in pin).\012\000"
	.align	2
.LC3:
	.ascii	"/sys/class/gpio/gpio%d/direction\000"
	.align	2
.LC4:
	.ascii	"Failed to open GPIODirection_in.\012\000"
	.align	2
.LC5:
	.ascii	"in\000"
	.align	2
.LC6:
	.ascii	"/sys/class/gpio/gpio%d/edge\000"
	.align	2
.LC7:
	.ascii	"Failed to open GPIOEdge_in.\012\000"
	.align	2
.LC8:
	.ascii	"both\000"
	.align	2
.LC9:
	.ascii	"Failed to export gpio (for writing out pin).\012\000"
	.align	2
.LC10:
	.ascii	"Failed to open GPIODirection_out.\012\000"
	.align	2
.LC11:
	.ascii	"out\000"
	.align	2
.LC12:
	.ascii	"/sys/class/gpio/gpio%d/value\000"
	.align	2
.LC13:
	.ascii	"Failed to open GPIO_out %d value.\012\000"
	.align	2
.LC14:
	.ascii	"Failed to open GPIO_in %d value.\012\000"
	.align	2
.LC15:
	.ascii	"Time elapsed in secs = %ld\012\000"
	.global	__aeabi_i2f
	.global	__aeabi_fadd
	.global	__aeabi_ui2f
	.global	__aeabi_fdiv
	.global	__aeabi_f2d
	.align	2
.LC16:
	.ascii	"\012Samples: %u, average (mean) latency = %.01fusec"
	.ascii	"s, \000"
	.global	__aeabi_fsub
	.global	__aeabi_dadd
	.global	__aeabi_d2f
	.align	2
.LC17:
	.ascii	"\012Variance is: %.01f, and standard deviation is: "
	.ascii	"%.01f \000"
	.align	2
.LC18:
	.ascii	"\012median latency = %.01fusecs \000"
	.global	__aeabi_fcmple
	.global	__aeabi_fcmpge
	.global	__aeabi_fcmplt
	.align	2
.LC19:
	.ascii	"min latency = %.01fusecs at i=%lu, max latency = %."
	.ascii	"01fusecs at i=%lu\012\000"
	.global	__aeabi_uidiv
	.align	2
.LC20:
	.ascii	"The amount greater than mean is %u (%u%) and the am"
	.ascii	"ount smaller or equal is %u (%u%)\012\000"
	.align	2
.LC21:
	.ascii	"/sys/class/gpio/unexport\000"
	.align	2
.LC22:
	.ascii	"Failed to unexport gpio pin in.\012\000"
	.align	2
.LC23:
	.ascii	"Failed to unexport gpio pin out.\012\000"
	.align	2
.LC24:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 480
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #504
	str	r0, [fp, #-488]
	str	r1, [fp, #-492]
	ldr	r3, .L36
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r0, #3
	bl	mlockall
	mov	r3, #1
	str	r3, [fp, #-480]
	mov	r3, #0
	str	r3, [fp, #-476]
	mov	r3, #0
	str	r3, [fp, #-468]
	mov	r3, #0
	str	r3, [fp, #-464]
	ldr	r0, .L36+4
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-432]
	mov	r3, #0
	str	r3, [fp, #-460]	@ float
	mov	r3, #0
	str	r3, [fp, #-452]	@ float
	mov	r3, #0
	str	r3, [fp, #-448]	@ float
	sub	r3, fp, #352
	mov	r2, #27
	ldr	r1, .L36+8
	mov	r0, r3
	bl	sprintf
	mov	r1, #1
	ldr	r0, .L36+12
	bl	open
	str	r0, [fp, #-428]
	ldr	r3, [fp, #-428]
	cmp	r3, #0
	bge	.L2
	ldr	r3, .L36+16
	ldr	r3, [r3]
	mov	r2, #44
	mov	r1, #1
	ldr	r0, .L36+20
	bl	fwrite
	mov	r0, #1
	bl	exit
.L2:
	sub	r3, fp, #352
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-428]
	bl	write
	ldr	r0, [fp, #-428]
	bl	close
	sub	r3, fp, #336
	mov	r2, #27
	ldr	r1, .L36+24
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #336
	mov	r1, #1
	mov	r0, r3
	bl	open
	str	r0, [fp, #-428]
	ldr	r3, [fp, #-428]
	cmp	r3, #0
	bge	.L3
	ldr	r3, .L36+16
	ldr	r3, [r3]
	mov	r2, #33
	mov	r1, #1
	ldr	r0, .L36+28
	bl	fwrite
	mov	r0, #1
	bl	exit
.L3:
	mov	r2, #3
	ldr	r1, .L36+32
	ldr	r0, [fp, #-428]
	bl	write
	ldr	r0, [fp, #-428]
	bl	close
	sub	r3, fp, #208
	mov	r2, #27
	ldr	r1, .L36+36
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #208
	mov	r1, #1
	mov	r0, r3
	bl	open
	str	r0, [fp, #-428]
	ldr	r3, [fp, #-428]
	cmp	r3, #0
	bge	.L4
	ldr	r3, .L36+16
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L36+40
	bl	fwrite
	mov	r0, #1
	bl	exit
.L4:
	mov	r2, #5
	ldr	r1, .L36+44
	ldr	r0, [fp, #-428]
	bl	write
	ldr	r0, [fp, #-428]
	bl	close
	sub	r3, fp, #348
	mov	r2, #17
	ldr	r1, .L36+8
	mov	r0, r3
	bl	sprintf
	mov	r1, #1
	ldr	r0, .L36+12
	bl	open
	str	r0, [fp, #-428]
	ldr	r3, [fp, #-428]
	cmp	r3, #0
	bge	.L5
	ldr	r3, .L36+16
	ldr	r3, [r3]
	mov	r2, #45
	mov	r1, #1
	ldr	r0, .L36+48
	bl	fwrite
	mov	r0, #1
	bl	exit
.L5:
	sub	r3, fp, #348
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-428]
	bl	write
	ldr	r0, [fp, #-428]
	bl	close
	sub	r3, fp, #144
	mov	r2, #17
	ldr	r1, .L36+24
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #144
	mov	r1, #1
	mov	r0, r3
	bl	open
	str	r0, [fp, #-428]
	ldr	r3, [fp, #-428]
	cmp	r3, #0
	bge	.L6
	ldr	r3, .L36+16
	ldr	r3, [r3]
	mov	r2, #34
	mov	r1, #1
	ldr	r0, .L36+52
	bl	fwrite
	mov	r0, #1
	bl	exit
.L6:
	mov	r2, #4
	ldr	r1, .L36+56
	ldr	r0, [fp, #-428]
	bl	write
	ldr	r0, [fp, #-428]
	bl	close
	sub	r3, fp, #80
	mov	r2, #17
	ldr	r1, .L36+60
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #80
	mov	r1, #1
	mov	r0, r3
	bl	open
	str	r0, [fp, #-424]
	ldr	r3, [fp, #-424]
	cmp	r3, #0
	bge	.L7
	ldr	r3, .L36+16
	ldr	r3, [r3]
	mov	r2, #17
	ldr	r1, .L36+64
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L7:
	sub	r3, fp, #272
	mov	r2, #27
	ldr	r1, .L36+60
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #272
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-428]
	ldr	r3, [fp, #-428]
	cmp	r3, #0
	bge	.L8
	ldr	r3, .L36+16
	ldr	r3, [r3]
	mov	r2, #27
	ldr	r1, .L36+68
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L8:
	ldr	r3, [fp, #-428]
	str	r3, [fp, #-400]
	sub	r3, fp, #12
	sub	r3, r3, #388
	mov	r2, #2
	strh	r2, [r3, #4]	@ movhi
	sub	r3, fp, #368
	mov	r0, r3
	bl	gettimeofday
	b	.L9
.L10:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-428]
	bl	lseek
	sub	r3, fp, #344
	mov	r2, #8
	mov	r1, r3
	ldr	r0, [fp, #-428]
	bl	read
	sub	r3, fp, #400
	mvn	r2, #0
	mov	r1, #1
	mov	r0, r3
	bl	poll
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-428]
	bl	lseek
	sub	r3, fp, #344
	mov	r2, #8
	mov	r1, r3
	ldr	r0, [fp, #-428]
	bl	read
	sub	r3, fp, #392
	mov	r1, r3
	mov	r0, #0
	bl	clock_gettime
	sub	r3, fp, #384
	sub	r2, fp, #392
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	sub	r3, fp, #400
	mvn	r2, #0
	mov	r1, #1
	mov	r0, r3
	bl	poll
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-428]
	bl	lseek
	sub	r3, fp, #344
	mov	r2, #8
	mov	r1, r3
	ldr	r0, [fp, #-428]
	bl	read
	sub	r3, fp, #392
	mov	r1, r3
	mov	r0, #0
	bl	clock_gettime
	sub	r3, fp, #376
	sub	r2, fp, #392
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r1, [fp, #-376]
	mov	r2, r1
	lsl	r2, r2, #5
	sub	r2, r2, r1
	lsl	r3, r2, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r1
	lsl	r3, r3, #6
	mov	r1, r3
	ldr	r3, [fp, #-372]
	ldr	r2, .L36+72
	smull	r0, r2, r3, r2
	asr	r2, r2, #6
	asr	r3, r3, #31
	sub	r3, r2, r3
	add	r0, r1, r3
	ldr	r1, [fp, #-384]
	mov	r2, r1
	lsl	r2, r2, #5
	sub	r2, r2, r1
	lsl	r3, r2, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r1
	lsl	r3, r3, #6
	mov	r1, r3
	ldr	r3, [fp, #-380]
	ldr	r2, .L36+72
	smull	ip, r2, r3, r2
	asr	r2, r2, #6
	asr	r3, r3, #31
	sub	r3, r2, r3
	add	r2, r1, r3
	ldr	r3, [fp, #-476]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-432]
	add	r3, r1, r3
	sub	r2, r0, r2
	str	r2, [r3]
	ldr	r3, [fp, #-476]
	add	r3, r3, #1
	str	r3, [fp, #-476]
	ldr	r3, [fp, #-476]
	str	r3, [fp, #-472]
	ldr	r3, [fp, #-480]
	add	r3, r3, #1
	str	r3, [fp, #-480]
.L9:
	ldr	r3, [fp, #-492]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r2, r0
	ldr	r3, [fp, #-480]
	cmp	r3, r2
	ble	.L10
	sub	r3, fp, #360
	mov	r0, r3
	bl	gettimeofday
	ldr	r2, [fp, #-360]
	ldr	r3, [fp, #-368]
	sub	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L36+76
	bl	printf
	ldr	r2, [fp, #-360]
	ldr	r3, [fp, #-356]
	ldr	r1, .L36+80
	smull	r0, r1, r3, r1
	asr	r1, r1, #18
	asr	r3, r3, #31
	sub	r3, r1, r3
	add	r2, r2, r3
	ldr	r1, [fp, #-368]
	ldr	r3, [fp, #-364]
	ldr	r0, .L36+80
	smull	ip, r0, r3, r0
	asr	r0, r0, #18
	asr	r3, r3, #31
	sub	r3, r0, r3
	add	r3, r1, r3
	sub	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L36+76
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-476]
	b	.L11
.L12:
	ldr	r3, [fp, #-476]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-432]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-460]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-460]	@ float
	ldr	r3, [fp, #-476]
	add	r3, r3, #1
	str	r3, [fp, #-476]
.L11:
	ldr	r2, [fp, #-476]
	ldr	r3, [fp, #-472]
	cmp	r2, r3
	bcc	.L12
	ldr	r0, [fp, #-472]
	bl	__aeabi_ui2f
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-460]	@ float
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [fp, #-420]	@ float
	ldr	r0, [fp, #-420]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-472]
	ldr	r0, .L36+84
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-444]	@ float
	mov	r3, #0
	str	r3, [fp, #-476]
	b	.L13
.L14:
	ldr	r0, [fp, #-444]	@ float
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-476]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-432]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, [fp, #-420]	@ float
	mov	r0, r3
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, #0
	mov	r3, #1073741824
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-444]	@ float
	ldr	r3, [fp, #-476]
	add	r3, r3, #1
	str	r3, [fp, #-476]
.L13:
	ldr	r2, [fp, #-476]
	ldr	r3, [fp, #-472]
	cmp	r2, r3
	bcc	.L14
	ldr	r0, [fp, #-472]
	bl	__aeabi_ui2f
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-444]	@ float
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [fp, #-416]	@ float
	ldr	r0, [fp, #-416]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sqrt
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-412]	@ float
	ldr	r0, [fp, #-416]	@ float
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-412]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r2, r4
	mov	r3, r5
	ldr	r0, .L36+88
	bl	printf
	ldr	r3, [fp, #-476]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L15
	ldr	r3, [fp, #-476]
	lsr	r3, r3, #1
	sub	r3, r3, #1
	str	r3, [fp, #-408]
	ldr	r3, [fp, #-408]
	add	r3, r3, #1
	str	r3, [fp, #-404]
	ldr	r3, [fp, #-408]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-432]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-404]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-432]
	add	r3, r1, r3
	ldr	r3, [r3]
	add	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	str	r3, [fp, #-456]	@ float
	b	.L16
.L15:
	ldr	r3, [fp, #-476]
	lsr	r3, r3, #1
	sub	r3, r3, #1
	str	r3, [fp, #-408]
	ldr	r3, [fp, #-408]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-432]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	str	r3, [fp, #-456]	@ float
.L16:
	ldr	r0, [fp, #-456]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L36+92
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-440]
	mov	r3, #0
	str	r3, [fp, #-476]
	b	.L17
.L20:
	ldr	r3, [fp, #-476]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-432]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-448]	@ float
	bl	__aeabi_fcmple
	mov	r3, r0
	cmp	r3, #0
	beq	.L18
	ldr	r3, [fp, #-476]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-432]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	str	r3, [fp, #-448]	@ float
	ldr	r3, [fp, #-476]
	str	r3, [fp, #-440]
.L18:
	ldr	r3, [fp, #-476]
	add	r3, r3, #1
	str	r3, [fp, #-476]
.L17:
	ldr	r2, [fp, #-476]
	ldr	r3, [fp, #-472]
	cmp	r2, r3
	bcc	.L20
	mov	r3, #0
	str	r3, [fp, #-436]
	ldr	r3, [fp, #-448]	@ float
	str	r3, [fp, #-452]	@ float
	mov	r3, #0
	str	r3, [fp, #-476]
	b	.L21
.L27:
	ldr	r3, [fp, #-476]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-432]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-452]	@ float
	bl	__aeabi_fcmpge
	mov	r3, r0
	cmp	r3, #0
	beq	.L22
	ldr	r3, [fp, #-476]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-432]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	str	r3, [fp, #-452]	@ float
	ldr	r3, [fp, #-476]
	str	r3, [fp, #-436]
.L22:
	ldr	r3, [fp, #-476]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-432]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-420]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L35
	ldr	r3, [fp, #-468]
	add	r3, r3, #1
	str	r3, [fp, #-468]
	b	.L26
.L35:
	ldr	r3, [fp, #-464]
	add	r3, r3, #1
	str	r3, [fp, #-464]
.L26:
	ldr	r3, [fp, #-476]
	add	r3, r3, #1
	str	r3, [fp, #-476]
.L21:
	ldr	r2, [fp, #-476]
	ldr	r3, [fp, #-472]
	cmp	r2, r3
	bcc	.L27
	ldr	r0, [fp, #-452]	@ float
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-448]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-440]
	str	r1, [sp, #16]
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	ldr	r3, [fp, #-436]
	str	r3, [sp]
	mov	r2, r4
	mov	r3, r5
	ldr	r0, .L36+96
	bl	printf
	ldr	r2, [fp, #-468]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r1, [fp, #-472]
	mov	r0, r3
	bl	__aeabi_uidiv
	mov	r3, r0
	mov	r4, r3
	ldr	r2, [fp, #-464]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r1, [fp, #-472]
	mov	r0, r3
	bl	__aeabi_uidiv
	mov	r3, r0
	str	r3, [sp]
	ldr	r3, [fp, #-464]
	mov	r2, r4
	ldr	r1, [fp, #-468]
	ldr	r0, .L36+100
	bl	printf
	ldr	r0, [fp, #-428]
	bl	close
	ldr	r0, [fp, #-424]
	bl	close
	mov	r1, #1
	ldr	r0, .L36+104
	bl	open
	str	r0, [fp, #-428]
	ldr	r3, [fp, #-428]
	cmp	r3, #0
	bge	.L28
	ldr	r3, .L36+16
	ldr	r3, [r3]
	mov	r2, #32
	mov	r1, #1
	ldr	r0, .L36+108
	bl	fwrite
	mov	r0, #1
	bl	exit
.L28:
	sub	r3, fp, #352
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-428]
	bl	write
	ldr	r0, [fp, #-428]
	bl	close
	mov	r1, #1
	ldr	r0, .L36+104
	bl	open
	str	r0, [fp, #-428]
	ldr	r3, [fp, #-428]
	cmp	r3, #0
	bge	.L29
	ldr	r3, .L36+16
	ldr	r3, [r3]
	mov	r2, #33
	mov	r1, #1
	ldr	r0, .L36+112
	bl	fwrite
	mov	r0, #1
	bl	exit
.L29:
	sub	r3, fp, #348
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-428]
	bl	write
	ldr	r0, [fp, #-428]
	bl	close
	mov	r3, #0
	ldr	r2, .L36
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L31
	bl	__stack_chk_fail
.L31:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC24
	.word	800040
	.word	.LC0
	.word	.LC1
	.word	stderr
	.word	.LC2
	.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	274877907
	.word	.LC15
	.word	1125899907
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
