	.file	"218661.c"
	.intel_syntax noprefix
	.text
	.globl	read_all
	.type	read_all, @function
read_all:
.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, 48
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -16[rbp], 0
	jmp	.L2
.L5:
	mov	rax, QWORD PTR -40[rbp]
	sub	rax, QWORD PTR -16[rbp]
	mov	rdx, rax
	mov	rcx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jns	.L3
	mov	eax, -1
	jmp	.L4
.L3:
	mov	rax, QWORD PTR -8[rbp]
	add	QWORD PTR -16[rbp], rax
.L2:
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -40[rbp]
	jb	.L5
	mov	eax, 0
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	read_all, .-read_all
	.globl	write_all
	.type	write_all, @function
write_all:
.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, 48
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -16[rbp], 0
	jmp	.L7
.L10:
	mov	rax, QWORD PTR -40[rbp]
	sub	rax, QWORD PTR -16[rbp]
	mov	rdx, rax
	mov	rcx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jns	.L8
	mov	eax, -1
	jmp	.L9
.L8:
	mov	rax, QWORD PTR -8[rbp]
	add	QWORD PTR -16[rbp], rax
.L7:
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -40[rbp]
	jb	.L10
	mov	eax, 0
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	write_all, .-write_all
	.section	.rodata
	.align 8
.LC0:
	.string	"usage: pipe_lat <message-size> <roundtrip-count>"
.LC1:
	.string	"malloc"
.LC2:
	.string	"message size: %i octets\n"
.LC3:
	.string	"roundtrip count: %li\n"
.LC4:
	.string	"pipe"
	.align 8
.LC5:
	.string	"cat /proc/sys/fs/pipe-max-size\n"
.LC6:
	.string	"fcntl ofds[0]"
.LC7:
	.string	"fcntl ofds[1]"
.LC8:
	.string	"fcntl ifds[0]"
.LC9:
	.string	"fcntl ifds[1]"
.LC10:
	.string	"read"
.LC11:
	.string	"write"
.LC12:
	.string	"clock_gettime"
.LC13:
	.string	"average latency: %li ns\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
	add	rsp, -128
	mov	DWORD PTR -116[rbp], edi
	mov	QWORD PTR -128[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -116[rbp], 3
	je	.L12
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L33
.L12:
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -104[rbp], eax
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atol@PLT
	mov	QWORD PTR -88[rbp], rax
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -80[rbp], rax
	cmp	QWORD PTR -80[rbp], 0
	jne	.L14
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L33
.L14:
	mov	eax, DWORD PTR -104[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -24[rbp]
	mov	rdi, rax
	call	pipe@PLT
	cmp	eax, -1
	jne	.L15
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L33
.L15:
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	pipe@PLT
	cmp	eax, -1
	jne	.L16
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L33
.L16:
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, 1032
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	mov	DWORD PTR -100[rbp], eax
	mov	eax, DWORD PTR -104[rbp]
	sal	eax, 3
	cmp	DWORD PTR -100[rbp], eax
	jge	.L17
	mov	eax, DWORD PTR -104[rbp]
	lea	edx, 0[0+rax*8]
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, 1031
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	test	eax, eax
	jns	.L18
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 31
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L33
.L18:
	mov	eax, DWORD PTR -104[rbp]
	lea	edx, 0[0+rax*8]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, 1031
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	test	eax, eax
	jns	.L19
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 31
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L33
.L19:
	mov	eax, DWORD PTR -104[rbp]
	lea	edx, 0[0+rax*8]
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, 1031
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	test	eax, eax
	jns	.L20
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 31
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L33
.L20:
	mov	eax, DWORD PTR -104[rbp]
	lea	edx, 0[0+rax*8]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, 1031
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	test	eax, eax
	jns	.L17
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 31
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L33
.L17:
	call	fork@PLT
	test	eax, eax
	jne	.L21
	mov	QWORD PTR -96[rbp], 0
	jmp	.L22
.L25:
	mov	eax, DWORD PTR -104[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -16[rbp]
	mov	rcx, QWORD PTR -80[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read_all
	cmp	eax, -1
	jne	.L23
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L33
.L23:
	mov	eax, DWORD PTR -104[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -20[rbp]
	mov	rcx, QWORD PTR -80[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write_all
	cmp	eax, -1
	jne	.L24
	lea	rdi, .LC11[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L33
.L24:
	add	QWORD PTR -96[rbp], 1
.L22:
	mov	rax, QWORD PTR -96[rbp]
	cmp	rax, QWORD PTR -88[rbp]
	jl	.L25
	jmp	.L26
.L21:
	lea	rax, -64[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	clock_gettime@PLT
	cmp	eax, -1
	jne	.L27
	lea	rdi, .LC12[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L33
.L27:
	mov	QWORD PTR -96[rbp], 0
	jmp	.L28
.L31:
	mov	eax, DWORD PTR -104[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -12[rbp]
	mov	rcx, QWORD PTR -80[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write_all
	cmp	eax, -1
	jne	.L29
	lea	rdi, .LC11[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L33
.L29:
	mov	eax, DWORD PTR -104[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -24[rbp]
	mov	rcx, QWORD PTR -80[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read_all
	cmp	eax, -1
	jne	.L30
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L33
.L30:
	add	QWORD PTR -96[rbp], 1
.L28:
	mov	rax, QWORD PTR -96[rbp]
	cmp	rax, QWORD PTR -88[rbp]
	jl	.L31
	lea	rax, -48[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	clock_gettime@PLT
	cmp	eax, -1
	jne	.L32
	lea	rdi, .LC12[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L33
.L32:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -64[rbp]
	sub	rax, rdx
	imul	rdx, rax, 1000000000
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR -56[rbp]
	sub	rax, rcx
	add	rax, rdx
	mov	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	lea	rcx, [rax+rax]
	mov	rax, QWORD PTR -72[rbp]
	cqo
	idiv	rcx
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	wait@PLT
.L26:
	mov	eax, 0
.L33:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.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	"218661.c"
	.text
	.align	2
	.global	read_all
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_all, %function
read_all:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L2
.L5:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	read
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L3
	mvn	r3, #0
	b	.L4
.L3:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-12]
.L2:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bcc	.L5
	mov	r3, #0
.L4:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	read_all, .-read_all
	.align	2
	.global	write_all
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_all, %function
write_all:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L7
.L10:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	write
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L8
	mvn	r3, #0
	b	.L9
.L8:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-12]
.L7:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bcc	.L10
	mov	r3, #0
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	write_all, .-write_all
	.section	.rodata
	.align	2
.LC0:
	.ascii	"usage: pipe_lat <message-size> <roundtrip-count>\000"
	.align	2
.LC1:
	.ascii	"malloc\000"
	.align	2
.LC2:
	.ascii	"message size: %i octets\012\000"
	.align	2
.LC3:
	.ascii	"roundtrip count: %li\012\000"
	.align	2
.LC4:
	.ascii	"pipe\000"
	.align	2
.LC5:
	.ascii	"cat /proc/sys/fs/pipe-max-size\012\000"
	.align	2
.LC6:
	.ascii	"fcntl ofds[0]\000"
	.align	2
.LC7:
	.ascii	"fcntl ofds[1]\000"
	.align	2
.LC8:
	.ascii	"fcntl ifds[0]\000"
	.align	2
.LC9:
	.ascii	"fcntl ifds[1]\000"
	.align	2
.LC10:
	.ascii	"read\000"
	.align	2
.LC11:
	.ascii	"write\000"
	.align	2
.LC12:
	.ascii	"clock_gettime\000"
	.global	__aeabi_ldivmod
	.align	2
.LC13:
	.ascii	"average latency: %li ns\012\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #88
	str	r0, [fp, #-112]
	str	r1, [fp, #-116]
	ldr	r3, .L35
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	ldr	r3, [fp, #-112]
	cmp	r3, #3
	beq	.L12
	ldr	r0, .L35+4
	bl	puts
	mov	r3, #1
	b	.L33
.L12:
	ldr	r3, [fp, #-116]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-116]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atol
	mov	r3, r0
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-84]
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-104]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-100]
	ldr	r3, [fp, #-100]
	cmp	r3, #0
	bne	.L14
	ldr	r0, .L35+8
	bl	perror
	mov	r3, #1
	b	.L33
.L14:
	ldr	r1, [fp, #-104]
	ldr	r0, .L35+12
	bl	printf
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	ldr	r0, .L35+16
	bl	printf
	sub	r3, fp, #48
	mov	r0, r3
	bl	pipe
	mov	r3, r0
	cmn	r3, #1
	bne	.L15
	ldr	r0, .L35+20
	bl	perror
	mov	r3, #1
	b	.L33
.L15:
	sub	r3, fp, #40
	mov	r0, r3
	bl	pipe
	mov	r3, r0
	cmn	r3, #1
	bne	.L16
	ldr	r0, .L35+20
	bl	perror
	mov	r3, #1
	b	.L33
.L16:
	ldr	r3, [fp, #-48]
	ldr	r1, .L35+24
	mov	r0, r3
	bl	fcntl
	str	r0, [fp, #-96]
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-96]
	cmp	r2, r3
	bge	.L17
	ldr	r0, [fp, #-48]
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r1, .L35+28
	bl	fcntl
	mov	r3, r0
	cmp	r3, #0
	bge	.L18
	ldr	r3, .L35+32
	ldr	r3, [r3]
	mov	r2, #31
	mov	r1, #1
	ldr	r0, .L35+36
	bl	fwrite
	ldr	r0, .L35+40
	bl	perror
	mov	r3, #1
	b	.L33
.L18:
	ldr	r0, [fp, #-44]
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r1, .L35+28
	bl	fcntl
	mov	r3, r0
	cmp	r3, #0
	bge	.L19
	ldr	r3, .L35+32
	ldr	r3, [r3]
	mov	r2, #31
	mov	r1, #1
	ldr	r0, .L35+36
	bl	fwrite
	ldr	r0, .L35+44
	bl	perror
	mov	r3, #1
	b	.L33
.L19:
	ldr	r0, [fp, #-40]
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r1, .L35+28
	bl	fcntl
	mov	r3, r0
	cmp	r3, #0
	bge	.L20
	ldr	r3, .L35+32
	ldr	r3, [r3]
	mov	r2, #31
	mov	r1, #1
	ldr	r0, .L35+36
	bl	fwrite
	ldr	r0, .L35+48
	bl	perror
	mov	r3, #1
	b	.L33
.L20:
	ldr	r0, [fp, #-36]
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r1, .L35+28
	bl	fcntl
	mov	r3, r0
	cmp	r3, #0
	bge	.L17
	ldr	r3, .L35+32
	ldr	r3, [r3]
	mov	r2, #31
	mov	r1, #1
	ldr	r0, .L35+36
	bl	fwrite
	ldr	r0, .L35+52
	bl	perror
	mov	r3, #1
	b	.L33
.L17:
	bl	fork
	mov	r3, r0
	cmp	r3, #0
	bne	.L21
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-92]
	str	r3, [fp, #-88]
	b	.L22
.L25:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-104]
	ldr	r1, [fp, #-100]
	mov	r0, r3
	bl	read_all
	mov	r3, r0
	cmn	r3, #1
	bne	.L23
	ldr	r0, .L35+56
	bl	perror
	mov	r3, #1
	b	.L33
.L23:
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-104]
	ldr	r1, [fp, #-100]
	mov	r0, r3
	bl	write_all
	mov	r3, r0
	cmn	r3, #1
	bne	.L24
	ldr	r0, .L35+60
	bl	perror
	mov	r3, #1
	b	.L33
.L24:
	sub	r3, fp, #92
	ldmia	r3, {r2-r3}
	adds	r6, r2, #1
	adc	r7, r3, #0
	str	r6, [fp, #-92]
	str	r7, [fp, #-88]
.L22:
	sub	r1, fp, #92
	ldmia	r1, {r0-r1}
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L25
	b	.L26
.L21:
	sub	r3, fp, #64
	mov	r1, r3
	mov	r0, #1
	bl	clock_gettime
	mov	r3, r0
	cmn	r3, #1
	bne	.L27
	ldr	r0, .L35+64
	bl	perror
	mov	r3, #1
	b	.L33
.L27:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-92]
	str	r3, [fp, #-88]
	b	.L28
.L31:
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-104]
	ldr	r1, [fp, #-100]
	mov	r0, r3
	bl	write_all
	mov	r3, r0
	cmn	r3, #1
	bne	.L29
	ldr	r0, .L35+60
	bl	perror
	mov	r3, #1
	b	.L33
.L29:
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-104]
	ldr	r1, [fp, #-100]
	mov	r0, r3
	bl	read_all
	mov	r3, r0
	cmn	r3, #1
	bne	.L30
	ldr	r0, .L35+56
	bl	perror
	mov	r3, #1
	b	.L33
.L30:
	sub	r3, fp, #92
	ldmia	r3, {r2-r3}
	adds	r4, r2, #1
	adc	r5, r3, #0
	str	r4, [fp, #-92]
	str	r5, [fp, #-88]
.L28:
	sub	r1, fp, #92
	ldmia	r1, {r0-r1}
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L31
	sub	r3, fp, #56
	mov	r1, r3
	mov	r0, #1
	bl	clock_gettime
	mov	r3, r0
	cmn	r3, #1
	bne	.L32
	ldr	r0, .L35+64
	bl	perror
	mov	r3, #1
	b	.L33
.L32:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-64]
	sub	r3, r2, r3
	ldr	r2, .L35+68
	mul	r2, r3, r2
	ldr	r1, [fp, #-52]
	ldr	r3, [fp, #-60]
	sub	r3, r1, r3
	add	r3, r2, r3
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	adds	r8, r2, r2
	adc	r9, r3, r3
	mov	r2, r8
	mov	r3, r9
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	bl	__aeabi_ldivmod
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L35+72
	bl	printf
	mov	r0, #0
	bl	wait
.L26:
	mov	r3, #0
.L33:
	ldr	r2, .L35
	ldr	r1, [r2]
	ldr	r2, [fp, #-32]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L34
	bl	__stack_chk_fail
.L34:
	mov	r0, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L36:
	.align	2
.L35:
	.word	.LC14
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	1032
	.word	1031
	.word	stderr
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	1000000000
	.word	.LC13
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
