	.file	"607658.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Fork"
	.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 80
	mov	DWORD PTR -4164[rbp], edi
	mov	QWORD PTR -4176[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -4144[rbp], 0
	mov	QWORD PTR -4136[rbp], 0
	lea	rdx, -4112[rbp]
	mov	eax, 0
	mov	ecx, 512
	mov	rdi, rdx
	rep stosq
	cmp	DWORD PTR -4164[rbp], 1
	jle	.L2
	mov	rax, QWORD PTR -4176[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	call	strtod@PLT
	cvttsd2si	eax, xmm0
	jmp	.L3
.L2:
	mov	eax, 0
.L3:
	mov	DWORD PTR -4148[rbp], eax
	cmp	DWORD PTR -4164[rbp], 2
	jg	.L4
	mov	eax, -1
	jmp	.L16
.L4:
	lea	rax, -4144[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -4144[rbp]
	add	eax, 10
	mov	DWORD PTR start_time.0[rip], eax
	mov	DWORD PTR -4152[rbp], 0
	jmp	.L6
.L10:
	call	fork@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -4152[rbp]
	cdqe
	mov	DWORD PTR -4112[rbp+rax*4], edx
	mov	eax, DWORD PTR -4152[rbp]
	cdqe
	mov	eax, DWORD PTR -4112[rbp+rax*4]
	test	eax, eax
	jns	.L7
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L7:
	mov	eax, DWORD PTR -4152[rbp]
	cdqe
	mov	eax, DWORD PTR -4112[rbp+rax*4]
	test	eax, eax
	je	.L18
	add	DWORD PTR -4152[rbp], 1
.L6:
	mov	eax, DWORD PTR -4152[rbp]
	cmp	eax, DWORD PTR -4148[rbp]
	jl	.L10
	jmp	.L9
.L18:
	nop
.L9:
	mov	eax, DWORD PTR -4152[rbp]
	cmp	eax, DWORD PTR -4148[rbp]
	jne	.L11
	mov	DWORD PTR -4152[rbp], 0
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -4152[rbp]
	cdqe
	mov	eax, DWORD PTR -4112[rbp+rax*4]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	mov	eax, 0
	call	waitpid@PLT
	add	DWORD PTR -4152[rbp], 1
.L12:
	mov	eax, DWORD PTR -4152[rbp]
	cmp	eax, DWORD PTR -4148[rbp]
	jl	.L13
	jmp	.L14
.L11:
	mov	QWORD PTR -4128[rbp], 0
	mov	QWORD PTR -4120[rbp], 0
	lea	rax, -4128[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -4128[rbp]
	mov	edx, DWORD PTR start_time.0[rip]
	mov	edx, edx
	cmp	rax, rdx
	jge	.L15
	mov	eax, DWORD PTR start_time.0[rip]
	mov	eax, eax
	mov	rdx, QWORD PTR -4128[rbp]
	sub	rax, rdx
	imul	rax, rax, 1000000
	mov	rdx, QWORD PTR -4120[rbp]
	sub	rax, rdx
	mov	rdi, rax
	mov	eax, 0
	call	usleep@PLT
.L15:
	mov	rax, QWORD PTR -4176[rbp]
	lea	rdx, 16[rax]
	mov	rax, QWORD PTR -4176[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	execv@PLT
.L14:
	mov	eax, 0
.L16:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.local	start_time.0
	.comm	start_time.0,4,4
	.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	"607658.c"
	.text
	.global	__aeabi_d2iz
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Fork\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 4136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #4096
	sub	sp, sp, #40
	sub	r3, fp, #4096
	sub	r3, r3, #4
	str	r0, [r3, #-36]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	str	r1, [r3, #-40]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #4
	sub	r3, r3, #20
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #4096
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-36]
	cmp	r3, #1
	ble	.L2
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-40]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	strtod
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	b	.L3
.L2:
	mov	r3, #0
.L3:
	sub	r2, fp, #4096
	sub	r2, r2, #4
	str	r3, [r2, #-24]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-36]
	cmp	r3, #2
	bgt	.L4
	mvn	r3, #0
	b	.L16
.L4:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	sub	r3, r3, #20
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-20]
	add	r3, r3, #10
	mov	r2, r3
	ldr	r3, .L19+4
	str	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-28]
	b	.L6
.L10:
	bl	fork
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-28]
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r2, [r3, #-4]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-4]
	cmp	r3, #0
	bge	.L7
	ldr	r0, .L19+8
	bl	perror
	mvn	r0, #0
	bl	exit
.L7:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-4]
	cmp	r3, #0
	beq	.L18
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-28]
	add	r3, r3, #1
	str	r3, [r2, #-28]
.L6:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r2, [r2, #-28]
	ldr	r3, [r3, #-24]
	cmp	r2, r3
	blt	.L10
	b	.L9
.L18:
	nop
.L9:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r2, [r2, #-28]
	ldr	r3, [r3, #-24]
	cmp	r2, r3
	bne	.L11
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-28]
	b	.L12
.L13:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-4]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	waitpid
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-28]
	add	r3, r3, #1
	str	r3, [r2, #-28]
.L12:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r2, [r2, #-28]
	ldr	r3, [r3, #-24]
	cmp	r2, r3
	blt	.L13
	b	.L14
.L11:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-12]
	mov	r2, r3
	ldr	r3, .L19+4
	ldr	r3, [r3]
	cmp	r2, r3
	bcs	.L15
	ldr	r3, .L19+4
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #4
	ldr	r2, [r2, #-12]
	sub	r1, r3, r2
	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	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-8]
	sub	r3, r2, r3
	mov	r0, r3
	bl	usleep
.L15:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-40]
	add	r3, r3, #8
	ldr	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-40]
	add	r3, r3, #8
	mov	r1, r3
	mov	r0, r2
	bl	execv
.L14:
	mov	r3, #0
.L16:
	ldr	r2, .L19
	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}
.L20:
	.align	2
.L19:
	.word	.LC1
	.word	start_time.5157
	.word	.LC0
	.size	main, .-main
	.local	start_time.5157
	.comm	start_time.5157,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
