	.file	"18992.c"
	.intel_syntax noprefix
	.text
	.globl	resetProcessMeta
	.type	resetProcessMeta, @function
resetProcessMeta:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR 8[rcx]
	mov	DWORD PTR 12[rdx], eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	DWORD PTR 16[rax], 0
	add	DWORD PTR -4[rbp], 1
.L2:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L3
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	resetProcessMeta, .-resetProcessMeta
	.globl	resetBurstArr
	.type	resetBurstArr, @function
resetBurstArr:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	DWORD PTR -4[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -32[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR 8[rax]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -4[rbp], 1
.L5:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L6
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	resetBurstArr, .-resetBurstArr
	.globl	avgWaitTime
	.type	avgWaitTime, @function
avgWaitTime:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	pxor	xmm0, xmm0
	movss	DWORD PTR -4[rbp], xmm0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 16[rax]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, DWORD PTR -28[rbp]
	divss	xmm0, xmm1
	addss	xmm0, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 4[rax]
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, eax
	pxor	xmm2, xmm2
	cvtsi2ss	xmm2, DWORD PTR -28[rbp]
	divss	xmm1, xmm2
	subss	xmm0, xmm1
	movss	DWORD PTR -4[rbp], xmm0
	add	DWORD PTR -8[rbp], 1
.L8:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L9
	movss	xmm0, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	avgWaitTime, .-avgWaitTime
	.globl	compareInts
	.type	compareInts, @function
compareInts:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jge	.L12
	mov	eax, -1
	jmp	.L13
.L12:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jle	.L14
	mov	eax, 1
	jmp	.L13
.L14:
	mov	eax, 0
.L13:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	compareInts, .-compareInts
	.section	.rodata
.LC1:
	.string	"r"
.LC2:
	.string	"Usage: %s, <file_name>\n"
.LC3:
	.string	"Error: can't open the file"
.LC4:
	.string	"w"
.LC5:
	.string	"Output.txt"
.LC6:
	.string	"FCFS:\n"
.LC7:
	.string	"%s\t%d\t"
.LC8:
	.string	"%d\n"
.LC9:
	.string	"Average Waiting Time: %.2f\n"
.LC10:
	.string	"\nRR:\n"
.LC11:
	.string	"\nNSJF:\n"
.LC12:
	.string	"\nPSJF:\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 392
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	DWORD PTR -420[rbp], edi
	mov	QWORD PTR -432[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -432[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -360[rbp], rax
	mov	edi, 4
	call	malloc@PLT
	mov	QWORD PTR -376[rbp], rax
	mov	DWORD PTR -416[rbp], 2
	mov	DWORD PTR -412[rbp], 0
	mov	WORD PTR -327[rbp], 2604
	mov	BYTE PTR -325[rbp], 0
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -368[rbp], rax
	mov	DWORD PTR -408[rbp], 0
	cmp	DWORD PTR -420[rbp], 2
	je	.L16
	mov	rax, QWORD PTR -360[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
	jmp	.L17
.L16:
	cmp	QWORD PTR -360[rbp], 0
	jne	.L20
	mov	rax, QWORD PTR -360[rbp]
	mov	rcx, rax
	mov	edx, 26
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	jmp	.L19
.L25:
	mov	eax, DWORD PTR -416[rbp]
	sub	eax, 1
	cmp	DWORD PTR -408[rbp], eax
	jne	.L21
	sal	DWORD PTR -416[rbp]
	mov	eax, DWORD PTR -416[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -368[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -368[rbp], rax
	mov	eax, DWORD PTR -416[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -376[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -376[rbp], rax
.L21:
	lea	rdx, -327[rbp]
	lea	rax, -320[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -352[rbp], rax
	cmp	QWORD PTR -352[rbp], 0
	je	.L22
	mov	eax, DWORD PTR -408[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -368[rbp]
	add	rax, rdx
	mov	rdx, rax
	lea	rax, -320[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
.L22:
	lea	rax, -327[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -352[rbp], rax
	cmp	QWORD PTR -352[rbp], 0
	je	.L23
	mov	eax, DWORD PTR -408[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -368[rbp]
	lea	rbx, [rdx+rax]
	mov	rax, QWORD PTR -352[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR 4[rbx], eax
.L23:
	lea	rax, -327[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -352[rbp], rax
	cmp	QWORD PTR -352[rbp], 0
	je	.L24
	mov	eax, DWORD PTR -408[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -368[rbp]
	lea	rbx, [rdx+rax]
	mov	rax, QWORD PTR -352[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR 8[rbx], eax
	mov	eax, DWORD PTR -408[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -368[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -408[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -376[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR 8[rax]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -408[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 3
	mov	rcx, rax
	mov	rax, QWORD PTR -368[rbp]
	add	rcx, rax
	mov	eax, DWORD PTR [rdx]
	mov	DWORD PTR 12[rcx], eax
.L24:
	add	DWORD PTR -408[rbp], 1
	add	DWORD PTR -412[rbp], 1
.L20:
	mov	rdx, QWORD PTR -360[rbp]
	lea	rax, -320[rbp]
	mov	esi, 256
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L25
.L19:
	lea	rsi, .LC4[rip]
	lea	rdi, .LC5[rip]
	call	fopen@PLT
	mov	QWORD PTR -360[rbp], rax
	mov	rax, QWORD PTR -360[rbp]
	mov	rcx, rax
	mov	edx, 6
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	DWORD PTR -404[rbp], 0
	mov	DWORD PTR -408[rbp], 0
	jmp	.L26
.L27:
	mov	eax, DWORD PTR -408[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -368[rbp]
	add	rax, rdx
	mov	rsi, rax
	mov	edx, DWORD PTR -404[rbp]
	mov	rax, QWORD PTR -360[rbp]
	mov	ecx, edx
	mov	rdx, rsi
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -408[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -368[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -404[rbp]
	mov	DWORD PTR 16[rdx], eax
	mov	eax, DWORD PTR -408[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -368[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 8[rax]
	add	DWORD PTR -404[rbp], eax
	mov	edx, DWORD PTR -404[rbp]
	mov	rax, QWORD PTR -360[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -408[rbp], 1
.L26:
	mov	eax, DWORD PTR -408[rbp]
	cmp	eax, DWORD PTR -412[rbp]
	jl	.L27
	mov	edx, DWORD PTR -412[rbp]
	mov	rax, QWORD PTR -368[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	avgWaitTime
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movq	rdx, xmm1
	mov	rax, QWORD PTR -360[rbp]
	movq	xmm0, rdx
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 1
	call	fprintf@PLT
	mov	edx, DWORD PTR -412[rbp]
	mov	rax, QWORD PTR -368[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	resetProcessMeta
	mov	rax, QWORD PTR -360[rbp]
	mov	rcx, rax
	mov	edx, 5
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
	mov	DWORD PTR -404[rbp], 0
	mov	eax, DWORD PTR -412[rbp]
	movsx	rsi, eax
	mov	rax, QWORD PTR -376[rbp]
	lea	rcx, compareInts[rip]
	mov	edx, 4
	mov	rdi, rax
	call	qsort@PLT
	mov	DWORD PTR -384[rbp], 4
	mov	eax, DWORD PTR -412[rbp]
	mov	DWORD PTR -400[rbp], eax
	mov	DWORD PTR -408[rbp], 0
	jmp	.L28
.L32:
	mov	eax, DWORD PTR -408[rbp]
	cmp	eax, DWORD PTR -412[rbp]
	jne	.L29
	mov	DWORD PTR -408[rbp], 0
.L29:
	mov	eax, DWORD PTR -408[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -368[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 12[rax]
	test	eax, eax
	jne	.L30
	add	DWORD PTR -408[rbp], 1
	jmp	.L28
.L30:
	mov	eax, DWORD PTR -408[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -368[rbp]
	add	rax, rdx
	mov	rsi, rax
	mov	edx, DWORD PTR -404[rbp]
	mov	rax, QWORD PTR -360[rbp]
	mov	ecx, edx
	mov	rdx, rsi
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -408[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -368[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 12[rax]
	cmp	DWORD PTR -384[rbp], eax
	jl	.L31
	mov	eax, DWORD PTR -408[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -368[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR 8[rax]
	mov	eax, DWORD PTR -408[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -368[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 12[rax]
	sub	ecx, eax
	mov	eax, DWORD PTR -408[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -368[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -404[rbp]
	sub	edx, ecx
	mov	DWORD PTR 16[rax], edx
	mov	eax, DWORD PTR -408[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -368[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 12[rax]
	add	DWORD PTR -404[rbp], eax
	mov	edx, DWORD PTR -404[rbp]
	mov	rax, QWORD PTR -360[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -408[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -368[rbp]
	add	rax, rdx
	mov	DWORD PTR 12[rax], 0
	sub	DWORD PTR -400[rbp], 1
	add	DWORD PTR -408[rbp], 1
	jmp	.L28
.L31:
	mov	eax, DWORD PTR -384[rbp]
	add	DWORD PTR -404[rbp], eax
	mov	edx, DWORD PTR -404[rbp]
	mov	rax, QWORD PTR -360[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -408[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -368[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR 12[rax]
	mov	eax, DWORD PTR -408[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 3
	mov	rcx, rax
	mov	rax, QWORD PTR -368[rbp]
	add	rcx, rax
	mov	eax, edx
	sub	eax, DWORD PTR -384[rbp]
	mov	DWORD PTR 12[rcx], eax
	add	DWORD PTR -408[rbp], 1
.L28:
	cmp	DWORD PTR -400[rbp], 0
	jne	.L32
	mov	edx, DWORD PTR -412[rbp]
	mov	rax, QWORD PTR -368[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	avgWaitTime
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm0
	movq	rdx, xmm2
	mov	rax, QWORD PTR -360[rbp]
	movq	xmm0, rdx
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 1
	call	fprintf@PLT
	mov	edx, DWORD PTR -412[rbp]
	mov	rax, QWORD PTR -368[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	resetProcessMeta
	mov	rax, QWORD PTR -360[rbp]
	mov	rcx, rax
	mov	edx, 7
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
	mov	eax, DWORD PTR -412[rbp]
	mov	rdx, rsp
	mov	rbx, rdx
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -344[rbp], rdx
	movsx	rdx, eax
	mov	r14, rdx
	mov	r15d, 0
	movsx	rdx, eax
	mov	r12, rdx
	mov	r13d, 0
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	ecx, 16
	mov	edx, 0
	div	rcx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L33:
	cmp	rsp, rdx
	je	.L34
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L33
.L34:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L35
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L35:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -336[rbp], rax
	mov	DWORD PTR -408[rbp], 0
	jmp	.L36
.L37:
	mov	rax, QWORD PTR -336[rbp]
	mov	edx, DWORD PTR -408[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], 2147483647
	add	DWORD PTR -408[rbp], 1
.L36:
	mov	eax, DWORD PTR -408[rbp]
	cmp	eax, DWORD PTR -412[rbp]
	jl	.L37
	mov	DWORD PTR -396[rbp], 0
	mov	DWORD PTR -408[rbp], 0
	jmp	.L38
.L47:
	mov	DWORD PTR -392[rbp], 0
	jmp	.L39
.L40:
	mov	rax, QWORD PTR -336[rbp]
	mov	edx, DWORD PTR -392[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], 2147483647
	add	DWORD PTR -392[rbp], 1
.L39:
	mov	eax, DWORD PTR -392[rbp]
	cmp	eax, DWORD PTR -412[rbp]
	jl	.L40
	mov	DWORD PTR -392[rbp], 0
	jmp	.L41
.L43:
	mov	eax, DWORD PTR -392[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -368[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 4[rax]
	cmp	DWORD PTR -396[rbp], eax
	jl	.L42
	mov	eax, DWORD PTR -392[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -368[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 12[rax]
	test	eax, eax
	je	.L42
	mov	eax, DWORD PTR -392[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -368[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -336[rbp]
	mov	edx, DWORD PTR -392[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], ecx
.L42:
	add	DWORD PTR -392[rbp], 1
.L41:
	mov	eax, DWORD PTR -392[rbp]
	cmp	eax, DWORD PTR -412[rbp]
	jl	.L43
	mov	eax, DWORD PTR -412[rbp]
	movsx	rsi, eax
	mov	rax, QWORD PTR -336[rbp]
	lea	rcx, compareInts[rip]
	mov	edx, 4
	mov	rdi, rax
	call	qsort@PLT
	mov	DWORD PTR -392[rbp], 0
	jmp	.L44
.L46:
	mov	eax, DWORD PTR -392[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -368[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -336[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jne	.L45
	mov	eax, DWORD PTR -392[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -368[rbp]
	add	rax, rdx
	mov	rsi, rax
	mov	edx, DWORD PTR -396[rbp]
	mov	rax, QWORD PTR -360[rbp]
	mov	ecx, edx
	mov	rdx, rsi
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -392[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -368[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -396[rbp]
	mov	DWORD PTR 16[rdx], eax
	mov	eax, DWORD PTR -392[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -368[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 8[rax]
	add	DWORD PTR -396[rbp], eax
	mov	eax, DWORD PTR -392[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -368[rbp]
	add	rax, rdx
	mov	DWORD PTR 12[rax], 0
	mov	edx, DWORD PTR -396[rbp]
	mov	rax, QWORD PTR -360[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L45:
	add	DWORD PTR -392[rbp], 1
.L44:
	mov	eax, DWORD PTR -392[rbp]
	cmp	eax, DWORD PTR -412[rbp]
	jl	.L46
	add	DWORD PTR -408[rbp], 1
.L38:
	mov	eax, DWORD PTR -408[rbp]
	cmp	eax, DWORD PTR -412[rbp]
	jl	.L47
	mov	edx, DWORD PTR -412[rbp]
	mov	rax, QWORD PTR -368[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	avgWaitTime
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, xmm0
	movq	rdx, xmm3
	mov	rax, QWORD PTR -360[rbp]
	movq	xmm0, rdx
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 1
	call	fprintf@PLT
	mov	edx, DWORD PTR -412[rbp]
	mov	rax, QWORD PTR -368[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	resetProcessMeta
	mov	rax, QWORD PTR -360[rbp]
	mov	rcx, rax
	mov	edx, 7
	mov	esi, 1
	lea	rdi, .LC12[rip]
	call	fwrite@PLT
	mov	DWORD PTR -324[rbp], 0
	mov	DWORD PTR -408[rbp], 0
	jmp	.L48
.L49:
	mov	rax, QWORD PTR -336[rbp]
	mov	edx, DWORD PTR -408[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], 2147483647
	add	DWORD PTR -408[rbp], 1
.L48:
	mov	eax, DWORD PTR -408[rbp]
	cmp	eax, DWORD PTR -412[rbp]
	jl	.L49
	mov	DWORD PTR -396[rbp], 0
	mov	DWORD PTR -380[rbp], 1
	mov	eax, DWORD PTR -380[rbp]
	mov	DWORD PTR -392[rbp], eax
	mov	eax, DWORD PTR -392[rbp]
	mov	DWORD PTR -408[rbp], eax
	mov	eax, DWORD PTR -408[rbp]
	mov	DWORD PTR -404[rbp], eax
	mov	eax, DWORD PTR -412[rbp]
	mov	DWORD PTR -388[rbp], eax
	jmp	.L50
.L64:
	mov	DWORD PTR -408[rbp], 0
	jmp	.L51
.L52:
	mov	rax, QWORD PTR -336[rbp]
	mov	edx, DWORD PTR -408[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], 2147483647
	add	DWORD PTR -408[rbp], 1
.L51:
	mov	eax, DWORD PTR -408[rbp]
	cmp	eax, DWORD PTR -412[rbp]
	jl	.L52
	mov	DWORD PTR -408[rbp], 0
	jmp	.L53
.L55:
	mov	eax, DWORD PTR -408[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -368[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 4[rax]
	cmp	DWORD PTR -396[rbp], eax
	jl	.L54
	mov	eax, DWORD PTR -408[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -368[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 12[rax]
	test	eax, eax
	je	.L54
	mov	eax, DWORD PTR -408[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -368[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -336[rbp]
	mov	edx, DWORD PTR -408[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], ecx
.L54:
	add	DWORD PTR -408[rbp], 1
.L53:
	mov	eax, DWORD PTR -408[rbp]
	cmp	eax, DWORD PTR -412[rbp]
	jl	.L55
	mov	eax, DWORD PTR -412[rbp]
	movsx	rsi, eax
	mov	rax, QWORD PTR -336[rbp]
	lea	rcx, compareInts[rip]
	mov	edx, 4
	mov	rdi, rax
	call	qsort@PLT
	mov	DWORD PTR -408[rbp], 0
	jmp	.L56
.L61:
	mov	eax, DWORD PTR -408[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -368[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -336[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jne	.L57
	movzx	eax, BYTE PTR -324[rbp]
	movzx	eax, al
	test	eax, eax
	jne	.L58
	mov	eax, DWORD PTR -408[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -368[rbp]
	add	rax, rdx
	mov	rsi, rax
	mov	edx, DWORD PTR -396[rbp]
	mov	rax, QWORD PTR -360[rbp]
	mov	ecx, edx
	mov	rdx, rsi
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L59
.L58:
	mov	eax, DWORD PTR -408[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -368[rbp]
	add	rax, rdx
	mov	rdx, rax
	lea	rax, -324[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L59
	mov	edx, DWORD PTR -396[rbp]
	mov	rax, QWORD PTR -360[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -408[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -368[rbp]
	add	rax, rdx
	mov	rsi, rax
	mov	edx, DWORD PTR -396[rbp]
	mov	rax, QWORD PTR -360[rbp]
	mov	ecx, edx
	mov	rdx, rsi
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L59:
	mov	eax, DWORD PTR -408[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -368[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR 12[rax]
	sub	edx, 1
	mov	DWORD PTR 12[rax], edx
	jmp	.L60
.L57:
	add	DWORD PTR -408[rbp], 1
.L56:
	mov	eax, DWORD PTR -408[rbp]
	cmp	eax, DWORD PTR -412[rbp]
	jl	.L61
.L60:
	mov	eax, DWORD PTR -408[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -368[rbp]
	add	rax, rdx
	mov	rdx, rax
	lea	rax, -324[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	eax, DWORD PTR -408[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -368[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 12[rax]
	test	eax, eax
	jne	.L62
	sub	DWORD PTR -388[rbp], 1
	mov	eax, DWORD PTR -408[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -368[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR 8[rax]
	mov	eax, DWORD PTR -396[rbp]
	sub	eax, edx
	mov	ecx, eax
	mov	eax, DWORD PTR -408[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -368[rbp]
	add	rax, rdx
	lea	edx, 1[rcx]
	mov	DWORD PTR 16[rax], edx
.L62:
	add	DWORD PTR -396[rbp], 1
.L50:
	cmp	DWORD PTR -388[rbp], -1
	je	.L63
	cmp	DWORD PTR -404[rbp], 34
	jle	.L64
.L63:
	mov	eax, DWORD PTR -396[rbp]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -360[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edx, DWORD PTR -412[rbp]
	mov	rax, QWORD PTR -368[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	avgWaitTime
	pxor	xmm4, xmm4
	cvtss2sd	xmm4, xmm0
	movq	rdx, xmm4
	mov	rax, QWORD PTR -360[rbp]
	movq	xmm0, rdx
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 1
	call	fprintf@PLT
	mov	rax, QWORD PTR -360[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -376[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -368[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rsp, rbx
	mov	eax, 0
.L17:
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L65
	call	__stack_chk_fail@PLT
.L65:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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	"18992.c"
	.text
	.align	2
	.global	resetProcessMeta
	.syntax unified
	.arm
	.fpu softvfp
	.type	resetProcessMeta, %function
resetProcessMeta:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r1, r3, r2
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldr	r2, [r1, #8]
	str	r2, [r3, #12]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	mov	r2, #0
	str	r2, [r3, #16]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L3
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	resetProcessMeta, .-resetProcessMeta
	.align	2
	.global	resetBurstArr
	.syntax unified
	.arm
	.fpu softvfp
	.type	resetBurstArr, %function
resetBurstArr:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L5
.L6:
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r2, r3, r2
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-20]
	add	r3, r1, r3
	ldr	r2, [r2, #8]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L5:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L6
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	resetBurstArr, .-resetBurstArr
	.global	__aeabi_i2f
	.global	__aeabi_fdiv
	.global	__aeabi_fadd
	.global	__aeabi_fsub
	.align	2
	.global	avgWaitTime
	.syntax unified
	.arm
	.fpu softvfp
	.type	avgWaitTime, %function
avgWaitTime:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-16]	@ float
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L8
.L9:
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, r2
	ldr	r3, [r3, #16]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r4, r0
	ldr	r0, [fp, #-28]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fdiv
	mov	r3, r0
	ldr	r1, [fp, #-16]	@ float
	mov	r0, r3
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r5, r3
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, r2
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r4, r0
	ldr	r0, [fp, #-28]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r1, r3
	mov	r0, r5
	bl	__aeabi_fsub
	mov	r3, r0
	str	r3, [fp, #-16]	@ float
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L8:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L9
	ldr	r3, [fp, #-16]	@ float
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	avgWaitTime, .-avgWaitTime
	.align	2
	.global	compareInts
	.syntax unified
	.arm
	.fpu softvfp
	.type	compareInts, %function
compareInts:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bge	.L12
	mvn	r3, #0
	b	.L13
.L12:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	ble	.L14
	mov	r3, #1
	b	.L13
.L14:
	mov	r3, #0
.L13:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	compareInts, .-compareInts
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC2:
	.ascii	"Usage: %s, <file_name>\012\000"
	.align	2
.LC3:
	.ascii	"Error: can't open the file\000"
	.align	2
.LC4:
	.ascii	"w\000"
	.align	2
.LC5:
	.ascii	"Output.txt\000"
	.align	2
.LC6:
	.ascii	"FCFS:\012\000"
	.align	2
.LC7:
	.ascii	"%s\011%d\011\000"
	.align	2
.LC8:
	.ascii	"%d\012\000"
	.global	__aeabi_f2d
	.align	2
.LC9:
	.ascii	"Average Waiting Time: %.2f\012\000"
	.align	2
.LC10:
	.ascii	"\012RR:\012\000"
	.align	2
.LC11:
	.ascii	"\012NSJF:\012\000"
	.align	2
.LC12:
	.ascii	"\012PSJF:\012\000"
	.align	2
.LC1:
	.ascii	",\012\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 344
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #348
	str	r0, [fp, #-352]
	str	r1, [fp, #-356]
	ldr	r3, .L63
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-356]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L63+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-304]
	mov	r0, #4
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-340]
	mov	r3, #2
	str	r3, [fp, #-344]
	mov	r3, #0
	str	r3, [fp, #-336]
	ldr	r2, .L63+8
	sub	r3, fp, #280
	ldr	r2, [r2]
	strh	r2, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r2, #16
	strb	r2, [r3]
	mov	r0, #24
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-332]
	mov	r3, #0
	str	r3, [fp, #-328]
	ldr	r3, [fp, #-352]
	cmp	r3, #2
	beq	.L16
	ldr	r1, .L63+12
	ldr	r0, [fp, #-304]
	bl	fprintf
	mov	r3, #0
	b	.L17
.L16:
	ldr	r3, [fp, #-304]
	cmp	r3, #0
	bne	.L20
	ldr	r3, [fp, #-304]
	mov	r2, #26
	mov	r1, #1
	ldr	r0, .L63+16
	bl	fwrite
	b	.L19
.L25:
	ldr	r3, [fp, #-344]
	sub	r3, r3, #1
	ldr	r2, [fp, #-328]
	cmp	r2, r3
	bne	.L21
	ldr	r3, [fp, #-344]
	lsl	r3, r3, #1
	str	r3, [fp, #-344]
	ldr	r2, [fp, #-344]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r1, r3
	ldr	r0, [fp, #-332]
	bl	realloc
	str	r0, [fp, #-332]
	ldr	r3, [fp, #-344]
	lsl	r3, r3, #2
	mov	r1, r3
	ldr	r0, [fp, #-340]
	bl	realloc
	str	r0, [fp, #-340]
.L21:
	sub	r2, fp, #280
	sub	r3, fp, #272
	mov	r1, r2
	mov	r0, r3
	bl	strtok
	str	r0, [fp, #-300]
	ldr	r3, [fp, #-300]
	cmp	r3, #0
	beq	.L22
	ldr	r2, [fp, #-328]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-332]
	add	r3, r3, r2
	mov	r2, r3
	sub	r3, fp, #272
	mov	r1, r3
	mov	r0, r2
	bl	strcpy
.L22:
	sub	r3, fp, #280
	mov	r1, r3
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-300]
	ldr	r3, [fp, #-300]
	cmp	r3, #0
	beq	.L23
	ldr	r2, [fp, #-328]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-332]
	add	r4, r3, r2
	ldr	r0, [fp, #-300]
	bl	atoi
	mov	r3, r0
	str	r3, [r4, #4]
.L23:
	sub	r3, fp, #280
	mov	r1, r3
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-300]
	ldr	r3, [fp, #-300]
	cmp	r3, #0
	beq	.L24
	ldr	r2, [fp, #-328]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-332]
	add	r4, r3, r2
	ldr	r0, [fp, #-300]
	bl	atoi
	mov	r3, r0
	str	r3, [r4, #8]
	ldr	r2, [fp, #-328]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-332]
	add	r3, r3, r2
	ldr	r2, [fp, #-328]
	lsl	r2, r2, #2
	ldr	r1, [fp, #-340]
	add	r2, r1, r2
	ldr	r3, [r3, #8]
	str	r3, [r2]
	ldr	r1, [fp, #-328]
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #3
	mov	r1, r3
	ldr	r3, [fp, #-332]
	add	r3, r3, r1
	ldr	r2, [r2]
	str	r2, [r3, #12]
.L24:
	ldr	r3, [fp, #-328]
	add	r3, r3, #1
	str	r3, [fp, #-328]
	ldr	r3, [fp, #-336]
	add	r3, r3, #1
	str	r3, [fp, #-336]
.L20:
	sub	r3, fp, #272
	ldr	r2, [fp, #-304]
	mov	r1, #256
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L25
.L19:
	ldr	r1, .L63+20
	ldr	r0, .L63+24
	bl	fopen
	str	r0, [fp, #-304]
	ldr	r3, [fp, #-304]
	mov	r2, #6
	mov	r1, #1
	ldr	r0, .L63+28
	bl	fwrite
	mov	r3, #0
	str	r3, [fp, #-324]
	mov	r3, #0
	str	r3, [fp, #-328]
	b	.L26
.L27:
	ldr	r2, [fp, #-328]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-332]
	add	r3, r3, r2
	mov	r2, r3
	ldr	r3, [fp, #-324]
	ldr	r1, .L63+32
	ldr	r0, [fp, #-304]
	bl	fprintf
	ldr	r2, [fp, #-328]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-332]
	add	r3, r3, r2
	ldr	r2, [fp, #-324]
	str	r2, [r3, #16]
	ldr	r2, [fp, #-328]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-332]
	add	r3, r3, r2
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-324]
	add	r3, r2, r3
	str	r3, [fp, #-324]
	ldr	r2, [fp, #-324]
	ldr	r1, .L63+36
	ldr	r0, [fp, #-304]
	bl	fprintf
	ldr	r3, [fp, #-328]
	add	r3, r3, #1
	str	r3, [fp, #-328]
.L26:
	ldr	r2, [fp, #-328]
	ldr	r3, [fp, #-336]
	cmp	r2, r3
	blt	.L27
	ldr	r1, [fp, #-336]
	ldr	r0, [fp, #-332]
	bl	avgWaitTime
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L63+40
	ldr	r0, [fp, #-304]
	bl	fprintf
	ldr	r1, [fp, #-336]
	ldr	r0, [fp, #-332]
	bl	resetProcessMeta
	ldr	r3, [fp, #-304]
	mov	r2, #5
	mov	r1, #1
	ldr	r0, .L63+44
	bl	fwrite
	mov	r3, #0
	str	r3, [fp, #-324]
	ldr	r1, [fp, #-336]
	ldr	r3, .L63+48
	mov	r2, #4
	ldr	r0, [fp, #-340]
	bl	qsort
	mov	r3, #4
	str	r3, [fp, #-296]
	ldr	r3, [fp, #-336]
	str	r3, [fp, #-320]
	mov	r3, #0
	str	r3, [fp, #-328]
	b	.L28
.L32:
	ldr	r2, [fp, #-328]
	ldr	r3, [fp, #-336]
	cmp	r2, r3
	bne	.L29
	mov	r3, #0
	str	r3, [fp, #-328]
.L29:
	ldr	r2, [fp, #-328]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-332]
	add	r3, r3, r2
	ldr	r3, [r3, #12]
	cmp	r3, #0
	bne	.L30
	ldr	r3, [fp, #-328]
	add	r3, r3, #1
	str	r3, [fp, #-328]
	b	.L28
.L30:
	ldr	r2, [fp, #-328]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-332]
	add	r3, r3, r2
	mov	r2, r3
	ldr	r3, [fp, #-324]
	ldr	r1, .L63+32
	ldr	r0, [fp, #-304]
	bl	fprintf
	ldr	r2, [fp, #-328]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-332]
	add	r3, r3, r2
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-296]
	cmp	r2, r3
	blt	.L31
	ldr	r2, [fp, #-328]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-332]
	add	r3, r3, r2
	ldr	r1, [r3, #8]
	ldr	r2, [fp, #-328]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-332]
	add	r3, r3, r2
	ldr	r3, [r3, #12]
	sub	r1, r1, r3
	ldr	r2, [fp, #-328]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-332]
	add	r3, r3, r2
	ldr	r2, [fp, #-324]
	sub	r2, r2, r1
	str	r2, [r3, #16]
	ldr	r2, [fp, #-328]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-332]
	add	r3, r3, r2
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-324]
	add	r3, r2, r3
	str	r3, [fp, #-324]
	ldr	r2, [fp, #-324]
	ldr	r1, .L63+36
	ldr	r0, [fp, #-304]
	bl	fprintf
	ldr	r2, [fp, #-328]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-332]
	add	r3, r3, r2
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r3, [fp, #-320]
	sub	r3, r3, #1
	str	r3, [fp, #-320]
	ldr	r3, [fp, #-328]
	add	r3, r3, #1
	str	r3, [fp, #-328]
	b	.L28
.L31:
	ldr	r2, [fp, #-324]
	ldr	r3, [fp, #-296]
	add	r3, r2, r3
	str	r3, [fp, #-324]
	ldr	r2, [fp, #-324]
	ldr	r1, .L63+36
	ldr	r0, [fp, #-304]
	bl	fprintf
	ldr	r2, [fp, #-328]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-332]
	add	r3, r3, r2
	ldr	r1, [r3, #12]
	ldr	r2, [fp, #-328]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-332]
	add	r3, r3, r2
	ldr	r2, [fp, #-296]
	sub	r2, r1, r2
	str	r2, [r3, #12]
	ldr	r3, [fp, #-328]
	add	r3, r3, #1
	str	r3, [fp, #-328]
.L28:
	ldr	r3, [fp, #-320]
	cmp	r3, #0
	bne	.L32
	ldr	r1, [fp, #-336]
	ldr	r0, [fp, #-332]
	bl	avgWaitTime
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L63+40
	ldr	r0, [fp, #-304]
	bl	fprintf
	ldr	r1, [fp, #-336]
	ldr	r0, [fp, #-332]
	bl	resetProcessMeta
	ldr	r3, [fp, #-304]
	mov	r2, #7
	mov	r1, #1
	ldr	r0, .L63+52
	bl	fwrite
	ldr	ip, [fp, #-336]
	mov	r3, sp
	mov	r4, r3
	sub	r3, ip, #1
	str	r3, [fp, #-292]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-288]
	mov	r3, #0
	str	r3, [fp, #-328]
	b	.L33
.L34:
	ldr	r3, [fp, #-288]
	ldr	r2, [fp, #-328]
	mvn	r1, #-2147483648
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-328]
	add	r3, r3, #1
	str	r3, [fp, #-328]
.L33:
	ldr	r2, [fp, #-328]
	ldr	r3, [fp, #-336]
	cmp	r2, r3
	blt	.L34
	mov	r3, #0
	str	r3, [fp, #-316]
	mov	r3, #0
	str	r3, [fp, #-328]
	b	.L35
.L44:
	mov	r3, #0
	str	r3, [fp, #-312]
	b	.L36
.L37:
	ldr	r3, [fp, #-288]
	ldr	r2, [fp, #-312]
	mvn	r1, #-2147483648
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-312]
	add	r3, r3, #1
	str	r3, [fp, #-312]
.L36:
	ldr	r2, [fp, #-312]
	ldr	r3, [fp, #-336]
	cmp	r2, r3
	blt	.L37
	mov	r3, #0
	str	r3, [fp, #-312]
	b	.L38
.L40:
	ldr	r2, [fp, #-312]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-332]
	add	r3, r3, r2
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-316]
	cmp	r2, r3
	blt	.L39
	ldr	r2, [fp, #-312]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-332]
	add	r3, r3, r2
	ldr	r3, [r3, #12]
	cmp	r3, #0
	beq	.L39
	ldr	r2, [fp, #-312]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-332]
	add	r3, r3, r2
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-288]
	ldr	r2, [fp, #-312]
	str	r1, [r3, r2, lsl #2]
.L39:
	ldr	r3, [fp, #-312]
	add	r3, r3, #1
	str	r3, [fp, #-312]
.L38:
	ldr	r2, [fp, #-312]
	ldr	r3, [fp, #-336]
	cmp	r2, r3
	blt	.L40
	ldr	r1, [fp, #-336]
	ldr	r3, .L63+48
	mov	r2, #4
	ldr	r0, [fp, #-288]
	bl	qsort
	mov	r3, #0
	str	r3, [fp, #-312]
	b	.L41
.L43:
	ldr	r2, [fp, #-312]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-332]
	add	r3, r3, r2
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-288]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L42
	ldr	r2, [fp, #-312]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-332]
	add	r3, r3, r2
	mov	r2, r3
	ldr	r3, [fp, #-316]
	ldr	r1, .L63+32
	ldr	r0, [fp, #-304]
	bl	fprintf
	ldr	r2, [fp, #-312]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-332]
	add	r3, r3, r2
	ldr	r2, [fp, #-316]
	str	r2, [r3, #16]
	ldr	r2, [fp, #-312]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-332]
	add	r3, r3, r2
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-316]
	add	r3, r2, r3
	str	r3, [fp, #-316]
	ldr	r2, [fp, #-312]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-332]
	add	r3, r3, r2
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r2, [fp, #-316]
	ldr	r1, .L63+36
	ldr	r0, [fp, #-304]
	bl	fprintf
.L42:
	ldr	r3, [fp, #-312]
	add	r3, r3, #1
	str	r3, [fp, #-312]
.L41:
	ldr	r2, [fp, #-312]
	ldr	r3, [fp, #-336]
	cmp	r2, r3
	blt	.L43
	ldr	r3, [fp, #-328]
	add	r3, r3, #1
	str	r3, [fp, #-328]
.L35:
	ldr	r2, [fp, #-328]
	ldr	r3, [fp, #-336]
	cmp	r2, r3
	blt	.L44
	ldr	r1, [fp, #-336]
	ldr	r0, [fp, #-332]
	bl	avgWaitTime
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L63+40
	ldr	r0, [fp, #-304]
	bl	fprintf
	ldr	r1, [fp, #-336]
	ldr	r0, [fp, #-332]
	bl	resetProcessMeta
	ldr	r3, [fp, #-304]
	mov	r2, #7
	mov	r1, #1
	ldr	r0, .L63+56
	bl	fwrite
	mov	r3, #0
	str	r3, [fp, #-276]
	mov	r3, #0
	str	r3, [fp, #-328]
	b	.L45
.L46:
	ldr	r3, [fp, #-288]
	ldr	r2, [fp, #-328]
	mvn	r1, #-2147483648
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-328]
	add	r3, r3, #1
	str	r3, [fp, #-328]
.L45:
	ldr	r2, [fp, #-328]
	ldr	r3, [fp, #-336]
	cmp	r2, r3
	blt	.L46
	mov	r3, #0
	str	r3, [fp, #-316]
	mov	r3, #1
	str	r3, [fp, #-284]
	ldr	r3, [fp, #-284]
	str	r3, [fp, #-312]
	ldr	r3, [fp, #-312]
	str	r3, [fp, #-328]
	ldr	r3, [fp, #-328]
	str	r3, [fp, #-324]
	ldr	r3, [fp, #-336]
	str	r3, [fp, #-308]
	b	.L47
.L61:
	mov	r3, #0
	str	r3, [fp, #-328]
	b	.L48
.L49:
	ldr	r3, [fp, #-288]
	ldr	r2, [fp, #-328]
	mvn	r1, #-2147483648
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-328]
	add	r3, r3, #1
	str	r3, [fp, #-328]
.L48:
	ldr	r2, [fp, #-328]
	ldr	r3, [fp, #-336]
	cmp	r2, r3
	blt	.L49
	mov	r3, #0
	str	r3, [fp, #-328]
	b	.L50
.L52:
	ldr	r2, [fp, #-328]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-332]
	add	r3, r3, r2
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-316]
	cmp	r2, r3
	blt	.L51
	ldr	r2, [fp, #-328]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-332]
	add	r3, r3, r2
	ldr	r3, [r3, #12]
	cmp	r3, #0
	beq	.L51
	ldr	r2, [fp, #-328]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-332]
	add	r3, r3, r2
	ldr	r1, [r3, #12]
	ldr	r3, [fp, #-288]
	ldr	r2, [fp, #-328]
	str	r1, [r3, r2, lsl #2]
.L51:
	ldr	r3, [fp, #-328]
	add	r3, r3, #1
	str	r3, [fp, #-328]
.L50:
	ldr	r2, [fp, #-328]
	ldr	r3, [fp, #-336]
	cmp	r2, r3
	blt	.L52
	ldr	r1, [fp, #-336]
	ldr	r3, .L63+48
	mov	r2, #4
	ldr	r0, [fp, #-288]
	bl	qsort
	mov	r3, #0
	str	r3, [fp, #-328]
	b	.L53
.L58:
	ldr	r2, [fp, #-328]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-332]
	add	r3, r3, r2
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-288]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L54
	ldrb	r3, [fp, #-276]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L55
	ldr	r2, [fp, #-328]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-332]
	add	r3, r3, r2
	mov	r2, r3
	ldr	r3, [fp, #-316]
	ldr	r1, .L63+32
	ldr	r0, [fp, #-304]
	bl	fprintf
	b	.L56
.L55:
	ldr	r2, [fp, #-328]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-332]
	add	r3, r3, r2
	mov	r2, r3
	sub	r3, fp, #276
	mov	r1, r2
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L56
	ldr	r2, [fp, #-316]
	ldr	r1, .L63+36
	ldr	r0, [fp, #-304]
	bl	fprintf
	ldr	r2, [fp, #-328]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-332]
	add	r3, r3, r2
	mov	r2, r3
	ldr	r3, [fp, #-316]
	ldr	r1, .L63+32
	ldr	r0, [fp, #-304]
	bl	fprintf
.L56:
	ldr	r2, [fp, #-328]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-332]
	add	r3, r3, r2
	ldr	r2, [r3, #12]
	sub	r2, r2, #1
	str	r2, [r3, #12]
	b	.L57
.L54:
	ldr	r3, [fp, #-328]
	add	r3, r3, #1
	str	r3, [fp, #-328]
.L53:
	ldr	r2, [fp, #-328]
	ldr	r3, [fp, #-336]
	cmp	r2, r3
	blt	.L58
.L57:
	ldr	r2, [fp, #-328]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-332]
	add	r3, r3, r2
	mov	r2, r3
	sub	r3, fp, #276
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r2, [fp, #-328]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-332]
	add	r3, r3, r2
	ldr	r3, [r3, #12]
	cmp	r3, #0
	bne	.L59
	ldr	r3, [fp, #-308]
	sub	r3, r3, #1
	str	r3, [fp, #-308]
	ldr	r2, [fp, #-328]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-332]
	add	r3, r3, r2
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-316]
	sub	r1, r2, r3
	ldr	r2, [fp, #-328]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-332]
	add	r3, r3, r2
	add	r2, r1, #1
	str	r2, [r3, #16]
.L59:
	ldr	r3, [fp, #-316]
	add	r3, r3, #1
	str	r3, [fp, #-316]
.L47:
	ldr	r3, [fp, #-308]
	cmn	r3, #1
	beq	.L60
	ldr	r3, [fp, #-324]
	cmp	r3, #34
	ble	.L61
.L60:
	ldr	r3, [fp, #-316]
	sub	r3, r3, #1
	mov	r2, r3
	ldr	r1, .L63+36
	ldr	r0, [fp, #-304]
	bl	fprintf
	ldr	r1, [fp, #-336]
	ldr	r0, [fp, #-332]
	bl	avgWaitTime
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L63+40
	ldr	r0, [fp, #-304]
	bl	fprintf
	ldr	r0, [fp, #-304]
	bl	fclose
	ldr	r0, [fp, #-340]
	bl	free
	ldr	r0, [fp, #-332]
	bl	free
	mov	sp, r4
	mov	r3, #0
.L17:
	ldr	r2, .L63
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L62
	bl	__stack_chk_fail
.L62:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L64:
	.align	2
.L63:
	.word	.LC13
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	compareInts
	.word	.LC11
	.word	.LC12
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
