	.file	"982952.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Enter Total Process:\t "
.LC1:
	.string	"%d"
	.align 8
.LC2:
	.string	"Enter Arrival Time and Burst Time for Process Process Number %d :"
.LC3:
	.string	"Enter Time Quantum:\t"
	.align 8
.LC4:
	.string	"\n\nProcess\t|Arrival Time|Burst Time|Completion Time|Turnaround Time|Waiting Time\n"
	.align 8
.LC5:
	.string	"P[%d]\t|\t%d|\t\t%d|\t%d\t|\t%d\t|\t%d\n"
.LC6:
	.string	"\nAverage Waiting Time= %f\n"
.LC7:
	.string	"Avg Turnaround Time = %f"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 176
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -156[rbp], 0
	mov	DWORD PTR -152[rbp], 0
	mov	DWORD PTR -148[rbp], 0
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -176[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -176[rbp]
	mov	DWORD PTR -160[rbp], eax
	mov	DWORD PTR -168[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -168[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdx, -144[rbp]
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdx, -96[rbp]
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	mov	edx, DWORD PTR -96[rbp+rax*4]
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	mov	DWORD PTR -48[rbp+rax*4], edx
	add	DWORD PTR -168[rbp], 1
.L2:
	mov	eax, DWORD PTR -176[rbp]
	cmp	DWORD PTR -168[rbp], eax
	jl	.L3
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -172[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	DWORD PTR -164[rbp], 0
	mov	DWORD PTR -168[rbp], 0
	jmp	.L4
.L10:
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	mov	edx, DWORD PTR -48[rbp+rax*4]
	mov	eax, DWORD PTR -172[rbp]
	cmp	edx, eax
	jg	.L5
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	mov	eax, DWORD PTR -48[rbp+rax*4]
	test	eax, eax
	jle	.L5
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	mov	eax, DWORD PTR -48[rbp+rax*4]
	add	DWORD PTR -164[rbp], eax
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	mov	DWORD PTR -48[rbp+rax*4], 0
	mov	DWORD PTR -156[rbp], 1
	jmp	.L6
.L5:
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	mov	eax, DWORD PTR -48[rbp+rax*4]
	test	eax, eax
	jle	.L6
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	mov	eax, DWORD PTR -48[rbp+rax*4]
	mov	ecx, DWORD PTR -172[rbp]
	sub	eax, ecx
	mov	edx, eax
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	mov	DWORD PTR -48[rbp+rax*4], edx
	mov	eax, DWORD PTR -172[rbp]
	add	DWORD PTR -164[rbp], eax
.L6:
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	mov	eax, DWORD PTR -48[rbp+rax*4]
	test	eax, eax
	jne	.L7
	cmp	DWORD PTR -156[rbp], 1
	jne	.L7
	sub	DWORD PTR -160[rbp], 1
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	mov	ecx, DWORD PTR -144[rbp+rax*4]
	mov	eax, DWORD PTR -164[rbp]
	sub	eax, ecx
	mov	edx, eax
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	mov	eax, DWORD PTR -96[rbp+rax*4]
	mov	ecx, edx
	sub	ecx, eax
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	mov	edx, DWORD PTR -144[rbp+rax*4]
	mov	eax, DWORD PTR -164[rbp]
	sub	eax, edx
	mov	r8d, eax
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	mov	edx, DWORD PTR -96[rbp+rax*4]
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	mov	eax, DWORD PTR -144[rbp+rax*4]
	mov	esi, DWORD PTR -168[rbp]
	add	esi, 1
	mov	edi, DWORD PTR -164[rbp]
	sub	rsp, 8
	push	rcx
	mov	r9d, r8d
	mov	r8d, edi
	mov	ecx, edx
	mov	edx, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	add	rsp, 16
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	mov	ecx, DWORD PTR -144[rbp+rax*4]
	mov	eax, DWORD PTR -164[rbp]
	sub	eax, ecx
	mov	edx, eax
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	mov	ecx, DWORD PTR -96[rbp+rax*4]
	mov	eax, edx
	sub	eax, ecx
	add	DWORD PTR -152[rbp], eax
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	mov	edx, DWORD PTR -144[rbp+rax*4]
	mov	eax, DWORD PTR -164[rbp]
	sub	eax, edx
	add	DWORD PTR -148[rbp], eax
	mov	DWORD PTR -156[rbp], 0
.L7:
	mov	eax, DWORD PTR -176[rbp]
	sub	eax, 1
	cmp	DWORD PTR -168[rbp], eax
	jne	.L8
	mov	DWORD PTR -168[rbp], 0
	jmp	.L4
.L8:
	mov	eax, DWORD PTR -168[rbp]
	add	eax, 1
	cdqe
	mov	eax, DWORD PTR -144[rbp+rax*4]
	cmp	DWORD PTR -164[rbp], eax
	jl	.L9
	add	DWORD PTR -168[rbp], 1
	jmp	.L4
.L9:
	mov	DWORD PTR -168[rbp], 0
.L4:
	cmp	DWORD PTR -160[rbp], 0
	jne	.L10
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -152[rbp]
	mov	eax, DWORD PTR -176[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC6[rip]
	mov	eax, 1
	call	printf@PLT
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -148[rbp]
	mov	eax, DWORD PTR -176[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC7[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"982952.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter Total Process:\011 \000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"Enter Arrival Time and Burst Time for Process Proce"
	.ascii	"ss Number %d :\000"
	.align	2
.LC3:
	.ascii	"Enter Time Quantum:\011\000"
	.align	2
.LC4:
	.ascii	"\012\012Process\011|Arrival Time|Burst Time|Complet"
	.ascii	"ion Time|Turnaround Time|Waiting Time\012\000"
	.align	2
.LC5:
	.ascii	"P[%d]\011|\011%d|\011\011%d|\011%d\011|\011%d\011|\011"
	.ascii	"%d\012\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.align	2
.LC6:
	.ascii	"\012Average Waiting Time= %f\012\000"
	.align	2
.LC7:
	.ascii	"Avg Turnaround Time = %f\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 160
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #176
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-148]
	mov	r3, #0
	str	r3, [fp, #-144]
	mov	r3, #0
	str	r3, [fp, #-140]
	ldr	r0, .L13+4
	bl	printf
	sub	r3, fp, #168
	mov	r1, r3
	ldr	r0, .L13+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-168]
	str	r3, [fp, #-152]
	mov	r3, #0
	str	r3, [fp, #-160]
	b	.L2
.L3:
	ldr	r3, [fp, #-160]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L13+12
	bl	printf
	sub	r2, fp, #136
	ldr	r3, [fp, #-160]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L13+8
	bl	__isoc99_scanf
	sub	r2, fp, #96
	ldr	r3, [fp, #-160]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L13+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-160]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [r3, #-84]
	ldr	r3, [fp, #-160]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-44]
	ldr	r3, [fp, #-160]
	add	r3, r3, #1
	str	r3, [fp, #-160]
.L2:
	ldr	r3, [fp, #-168]
	ldr	r2, [fp, #-160]
	cmp	r2, r3
	blt	.L3
	ldr	r0, .L13+16
	bl	printf
	sub	r3, fp, #164
	mov	r1, r3
	ldr	r0, .L13+8
	bl	__isoc99_scanf
	ldr	r0, .L13+20
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-156]
	mov	r3, #0
	str	r3, [fp, #-160]
	b	.L4
.L10:
	ldr	r3, [fp, #-160]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [r3, #-44]
	ldr	r3, [fp, #-164]
	cmp	r2, r3
	bgt	.L5
	ldr	r3, [fp, #-160]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-44]
	cmp	r3, #0
	ble	.L5
	ldr	r3, [fp, #-160]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-44]
	ldr	r2, [fp, #-156]
	add	r3, r2, r3
	str	r3, [fp, #-156]
	ldr	r3, [fp, #-160]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-44]
	mov	r3, #1
	str	r3, [fp, #-148]
	b	.L6
.L5:
	ldr	r3, [fp, #-160]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-44]
	cmp	r3, #0
	ble	.L6
	ldr	r3, [fp, #-160]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [r3, #-44]
	ldr	r3, [fp, #-164]
	sub	r2, r2, r3
	ldr	r3, [fp, #-160]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-44]
	ldr	r3, [fp, #-164]
	ldr	r2, [fp, #-156]
	add	r3, r2, r3
	str	r3, [fp, #-156]
.L6:
	ldr	r3, [fp, #-160]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-44]
	cmp	r3, #0
	bne	.L7
	ldr	r3, [fp, #-148]
	cmp	r3, #1
	bne	.L7
	ldr	r3, [fp, #-152]
	sub	r3, r3, #1
	str	r3, [fp, #-152]
	ldr	r3, [fp, #-160]
	add	r0, r3, #1
	ldr	r3, [fp, #-160]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	ip, [r3, #-124]
	ldr	r3, [fp, #-160]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	lr, [r3, #-84]
	ldr	r3, [fp, #-160]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-124]
	ldr	r2, [fp, #-156]
	sub	r2, r2, r3
	ldr	r3, [fp, #-160]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r3, [r3, #-124]
	ldr	r1, [fp, #-156]
	sub	r1, r1, r3
	ldr	r3, [fp, #-160]
	lsl	r3, r3, #2
	sub	r4, fp, #12
	add	r3, r4, r3
	ldr	r3, [r3, #-84]
	sub	r3, r1, r3
	str	r3, [sp, #8]
	str	r2, [sp, #4]
	ldr	r3, [fp, #-156]
	str	r3, [sp]
	mov	r3, lr
	mov	r2, ip
	mov	r1, r0
	ldr	r0, .L13+24
	bl	printf
	ldr	r3, [fp, #-160]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-124]
	ldr	r2, [fp, #-156]
	sub	r2, r2, r3
	ldr	r3, [fp, #-160]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r3, [r3, #-84]
	sub	r3, r2, r3
	ldr	r2, [fp, #-144]
	add	r3, r2, r3
	str	r3, [fp, #-144]
	ldr	r3, [fp, #-160]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-124]
	ldr	r2, [fp, #-156]
	sub	r3, r2, r3
	ldr	r2, [fp, #-140]
	add	r3, r2, r3
	str	r3, [fp, #-140]
	mov	r3, #0
	str	r3, [fp, #-148]
.L7:
	ldr	r3, [fp, #-168]
	sub	r3, r3, #1
	ldr	r2, [fp, #-160]
	cmp	r2, r3
	bne	.L8
	mov	r3, #0
	str	r3, [fp, #-160]
	b	.L4
.L8:
	ldr	r3, [fp, #-160]
	add	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-124]
	ldr	r2, [fp, #-156]
	cmp	r2, r3
	blt	.L9
	ldr	r3, [fp, #-160]
	add	r3, r3, #1
	str	r3, [fp, #-160]
	b	.L4
.L9:
	mov	r3, #0
	str	r3, [fp, #-160]
.L4:
	ldr	r3, [fp, #-152]
	cmp	r3, #0
	bne	.L10
	ldr	r0, [fp, #-144]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-168]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L13+28
	bl	printf
	ldr	r0, [fp, #-140]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-168]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L13+32
	bl	printf
	mov	r3, #0
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC8
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
