	.file	"997811.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Not Enough Argument"
.LC2:
	.string	"fork"
	.align 8
.LC3:
	.string	"Element is present at index %ld TEMP\n"
.LC5:
	.string	"\nTime that Spend : %f \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, 160
	mov	DWORD PTR -148[rbp], edi
	mov	QWORD PTR -160[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -148[rbp], 3
	je	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L17
.L2:
	mov	rax, QWORD PTR -160[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	QWORD PTR -96[rbp], rax
	mov	rax, QWORD PTR -96[rbp]
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -88[rbp], rax
	mov	rax, QWORD PTR -160[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -112[rbp], 0
	jmp	.L4
.L5:
	mov	rax, QWORD PTR -112[rbp]
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -112[rbp]
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rcx
	mov	QWORD PTR [rax], rdx
	add	QWORD PTR -112[rbp], 1
.L4:
	mov	rax, QWORD PTR -96[rbp]
	cmp	QWORD PTR -112[rbp], rax
	jb	.L5
	mov	DWORD PTR -124[rbp], 10
	pxor	xmm0, xmm0
	movsd	QWORD PTR -72[rbp], xmm0
	call	clock@PLT
	mov	QWORD PTR -64[rbp], rax
	mov	DWORD PTR -128[rbp], 0
	jmp	.L6
.L14:
	call	fork@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	mov	DWORD PTR -48[rbp+rax*4], edx
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	mov	eax, DWORD PTR -48[rbp+rax*4]
	test	eax, eax
	jns	.L7
	lea	rdi, .LC2[rip]
	call	perror@PLT
	call	abort@PLT
.L7:
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	mov	eax, DWORD PTR -48[rbp+rax*4]
	test	eax, eax
	jne	.L8
	mov	QWORD PTR -104[rbp], -1
	mov	eax, DWORD PTR -124[rbp]
	movsx	rsi, eax
	mov	rax, QWORD PTR -96[rbp]
	cqo
	idiv	rsi
	mov	edx, eax
	mov	eax, DWORD PTR -128[rbp]
	imul	eax, edx
	mov	DWORD PTR -120[rbp], eax
	jmp	.L9
.L12:
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -80[rbp], rax
	jne	.L10
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	mov	QWORD PTR -104[rbp], rax
	jmp	.L11
.L10:
	add	DWORD PTR -120[rbp], 1
.L9:
	mov	eax, DWORD PTR -120[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -128[rbp]
	add	eax, 1
	cdqe
	imul	rax, QWORD PTR -96[rbp]
	mov	edx, DWORD PTR -124[rbp]
	movsx	rsi, edx
	cqo
	idiv	rsi
	cmp	rcx, rax
	jl	.L12
.L11:
	cmp	QWORD PTR -104[rbp], -1
	je	.L13
	mov	rax, QWORD PTR -104[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L13:
	mov	edi, 0
	call	exit@PLT
.L8:
	add	DWORD PTR -128[rbp], 1
.L6:
	mov	eax, DWORD PTR -128[rbp]
	cmp	eax, DWORD PTR -124[rbp]
	jl	.L14
	jmp	.L15
.L16:
	lea	rax, -132[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	wait@PLT
	mov	DWORD PTR -116[rbp], eax
	sub	DWORD PTR -124[rbp], 1
.L15:
	cmp	DWORD PTR -124[rbp], 0
	jg	.L16
	call	clock@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	sub	rax, QWORD PTR -64[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm1, QWORD PTR .LC4[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -72[rbp], xmm0
	mov	rax, QWORD PTR -72[rbp]
	movq	xmm0, rax
	lea	rdi, .LC5[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, 0
.L17:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC4:
	.long	0
	.long	1093567616
	.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	"997811.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Not Enough Argument\000"
	.align	2
.LC1:
	.ascii	"fork\000"
	.global	__aeabi_idiv
	.align	2
.LC2:
	.ascii	"Element is present at index %ld TEMP\012\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.align	2
.LC3:
	.ascii	"\012Time that Spend : %f \012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	str	r0, [fp, #-112]
	str	r1, [fp, #-116]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-112]
	cmp	r3, #3
	beq	.L2
	ldr	r0, .L19+4
	bl	puts
	mov	r3, #1
	b	.L17
.L2:
	ldr	r3, [fp, #-116]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	str	r0, [fp, #-84]
	ldr	r3, [fp, #-84]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-116]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	str	r0, [fp, #-76]
	mov	r3, #0
	str	r3, [fp, #-104]
	b	.L4
.L5:
	ldr	r3, [fp, #-104]
	lsl	r1, r3, #1
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-80]
	add	r3, r2, r3
	mov	r2, r1
	str	r2, [r3]
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
.L4:
	ldr	r3, [fp, #-84]
	ldr	r2, [fp, #-104]
	cmp	r2, r3
	bcc	.L5
	mov	r3, #10
	str	r3, [fp, #-96]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	bl	clock
	str	r0, [fp, #-72]
	mov	r3, #0
	str	r3, [fp, #-100]
	b	.L6
.L14:
	bl	fork
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-44]
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-44]
	cmp	r3, #0
	bge	.L7
	ldr	r0, .L19+8
	bl	perror
	bl	abort
.L7:
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-44]
	cmp	r3, #0
	bne	.L8
	mvn	r3, #0
	str	r3, [fp, #-92]
	ldr	r1, [fp, #-96]
	ldr	r0, [fp, #-84]
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-100]
	mul	r3, r2, r3
	str	r3, [fp, #-88]
	b	.L9
.L12:
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-80]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-76]
	cmp	r2, r3
	bne	.L10
	ldr	r3, [fp, #-88]
	str	r3, [fp, #-92]
	b	.L11
.L10:
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
.L9:
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	ldr	r2, [fp, #-84]
	mul	r3, r2, r3
	ldr	r1, [fp, #-96]
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-88]
	cmp	r3, r2
	blt	.L12
.L11:
	ldr	r3, [fp, #-92]
	cmn	r3, #1
	beq	.L13
	ldr	r1, [fp, #-92]
	ldr	r0, .L19+12
	bl	printf
.L13:
	mov	r0, #0
	bl	exit
.L8:
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	str	r3, [fp, #-100]
.L6:
	ldr	r2, [fp, #-100]
	ldr	r3, [fp, #-96]
	cmp	r2, r3
	blt	.L14
	b	.L15
.L16:
	sub	r3, fp, #108
	mov	r0, r3
	bl	wait
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-96]
	sub	r3, r3, #1
	str	r3, [fp, #-96]
.L15:
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	bgt	.L16
	bl	clock
	str	r0, [fp, #-68]
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-72]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L19+16
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	ldr	r0, .L19+20
	bl	printf
	mov	r3, #0
.L17:
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	1093567616
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
