	.file	"942268.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Enter Total Number of Process: "
.LC1:
	.string	"%d"
	.align 8
.LC2:
	.string	"\nEnter Burst Time and Priority"
.LC3:
	.string	"\nP[%d]\n"
.LC4:
	.string	"Burst Time: "
.LC5:
	.string	"Priority: "
	.align 8
.LC6:
	.string	"\nProcess\t    Burst Time    \tWaiting Time\tTurnaround Time"
.LC7:
	.string	"\nP[%d]\t\t  %d\t\t    %d\t\t\t%d"
.LC8:
	.string	"\n\nAverage Waiting Time=%d"
.LC9:
	.string	"\nAverage Turnaround Time=%d\n"
	.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, 448
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -436[rbp], 0
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -448[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	DWORD PTR -444[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -444[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdx, -416[rbp]
	mov	eax, DWORD PTR -444[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdx, -96[rbp]
	mov	eax, DWORD PTR -444[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 -444[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -444[rbp]
	cdqe
	mov	DWORD PTR -336[rbp+rax*4], edx
	add	DWORD PTR -444[rbp], 1
.L2:
	mov	eax, DWORD PTR -448[rbp]
	cmp	DWORD PTR -444[rbp], eax
	jl	.L3
	mov	DWORD PTR -444[rbp], 0
	jmp	.L4
.L8:
	mov	eax, DWORD PTR -444[rbp]
	mov	DWORD PTR -432[rbp], eax
	mov	eax, DWORD PTR -444[rbp]
	add	eax, 1
	mov	DWORD PTR -440[rbp], eax
	jmp	.L5
.L7:
	mov	eax, DWORD PTR -440[rbp]
	cdqe
	mov	edx, DWORD PTR -96[rbp+rax*4]
	mov	eax, DWORD PTR -432[rbp]
	cdqe
	mov	eax, DWORD PTR -96[rbp+rax*4]
	cmp	edx, eax
	jge	.L6
	mov	eax, DWORD PTR -440[rbp]
	mov	DWORD PTR -432[rbp], eax
.L6:
	add	DWORD PTR -440[rbp], 1
.L5:
	mov	eax, DWORD PTR -448[rbp]
	cmp	DWORD PTR -440[rbp], eax
	jl	.L7
	mov	eax, DWORD PTR -444[rbp]
	cdqe
	mov	eax, DWORD PTR -96[rbp+rax*4]
	mov	DWORD PTR -420[rbp], eax
	mov	eax, DWORD PTR -432[rbp]
	cdqe
	mov	edx, DWORD PTR -96[rbp+rax*4]
	mov	eax, DWORD PTR -444[rbp]
	cdqe
	mov	DWORD PTR -96[rbp+rax*4], edx
	mov	eax, DWORD PTR -432[rbp]
	cdqe
	mov	edx, DWORD PTR -420[rbp]
	mov	DWORD PTR -96[rbp+rax*4], edx
	mov	eax, DWORD PTR -444[rbp]
	cdqe
	mov	eax, DWORD PTR -416[rbp+rax*4]
	mov	DWORD PTR -420[rbp], eax
	mov	eax, DWORD PTR -432[rbp]
	cdqe
	mov	edx, DWORD PTR -416[rbp+rax*4]
	mov	eax, DWORD PTR -444[rbp]
	cdqe
	mov	DWORD PTR -416[rbp+rax*4], edx
	mov	eax, DWORD PTR -432[rbp]
	cdqe
	mov	edx, DWORD PTR -420[rbp]
	mov	DWORD PTR -416[rbp+rax*4], edx
	mov	eax, DWORD PTR -444[rbp]
	cdqe
	mov	eax, DWORD PTR -336[rbp+rax*4]
	mov	DWORD PTR -420[rbp], eax
	mov	eax, DWORD PTR -432[rbp]
	cdqe
	mov	edx, DWORD PTR -336[rbp+rax*4]
	mov	eax, DWORD PTR -444[rbp]
	cdqe
	mov	DWORD PTR -336[rbp+rax*4], edx
	mov	eax, DWORD PTR -432[rbp]
	cdqe
	mov	edx, DWORD PTR -420[rbp]
	mov	DWORD PTR -336[rbp+rax*4], edx
	add	DWORD PTR -444[rbp], 1
.L4:
	mov	eax, DWORD PTR -448[rbp]
	cmp	DWORD PTR -444[rbp], eax
	jl	.L8
	mov	DWORD PTR -256[rbp], 0
	mov	DWORD PTR -444[rbp], 1
	jmp	.L9
.L12:
	mov	eax, DWORD PTR -444[rbp]
	cdqe
	mov	DWORD PTR -256[rbp+rax*4], 0
	mov	DWORD PTR -440[rbp], 0
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -444[rbp]
	cdqe
	mov	edx, DWORD PTR -256[rbp+rax*4]
	mov	eax, DWORD PTR -440[rbp]
	cdqe
	mov	eax, DWORD PTR -416[rbp+rax*4]
	add	edx, eax
	mov	eax, DWORD PTR -444[rbp]
	cdqe
	mov	DWORD PTR -256[rbp+rax*4], edx
	add	DWORD PTR -440[rbp], 1
.L10:
	mov	eax, DWORD PTR -440[rbp]
	cmp	eax, DWORD PTR -444[rbp]
	jl	.L11
	mov	eax, DWORD PTR -444[rbp]
	cdqe
	mov	eax, DWORD PTR -256[rbp+rax*4]
	add	DWORD PTR -436[rbp], eax
	add	DWORD PTR -444[rbp], 1
.L9:
	mov	eax, DWORD PTR -448[rbp]
	cmp	DWORD PTR -444[rbp], eax
	jl	.L12
	mov	ecx, DWORD PTR -448[rbp]
	mov	eax, DWORD PTR -436[rbp]
	cdq
	idiv	ecx
	mov	DWORD PTR -428[rbp], eax
	mov	DWORD PTR -436[rbp], 0
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -444[rbp], 0
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -444[rbp]
	cdqe
	mov	edx, DWORD PTR -416[rbp+rax*4]
	mov	eax, DWORD PTR -444[rbp]
	cdqe
	mov	eax, DWORD PTR -256[rbp+rax*4]
	add	edx, eax
	mov	eax, DWORD PTR -444[rbp]
	cdqe
	mov	DWORD PTR -176[rbp+rax*4], edx
	mov	eax, DWORD PTR -444[rbp]
	cdqe
	mov	eax, DWORD PTR -176[rbp+rax*4]
	add	DWORD PTR -436[rbp], eax
	mov	eax, DWORD PTR -444[rbp]
	cdqe
	mov	esi, DWORD PTR -176[rbp+rax*4]
	mov	eax, DWORD PTR -444[rbp]
	cdqe
	mov	ecx, DWORD PTR -256[rbp+rax*4]
	mov	eax, DWORD PTR -444[rbp]
	cdqe
	mov	edx, DWORD PTR -416[rbp+rax*4]
	mov	eax, DWORD PTR -444[rbp]
	cdqe
	mov	eax, DWORD PTR -336[rbp+rax*4]
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -444[rbp], 1
.L13:
	mov	eax, DWORD PTR -448[rbp]
	cmp	DWORD PTR -444[rbp], eax
	jl	.L14
	mov	ecx, DWORD PTR -448[rbp]
	mov	eax, DWORD PTR -436[rbp]
	cdq
	idiv	ecx
	mov	DWORD PTR -424[rbp], eax
	mov	eax, DWORD PTR -428[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -424[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	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	"942268.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter Total Number of Process: \000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"\012Enter Burst Time and Priority\000"
	.align	2
.LC3:
	.ascii	"\012P[%d]\012\000"
	.align	2
.LC4:
	.ascii	"Burst Time: \000"
	.align	2
.LC5:
	.ascii	"Priority: \000"
	.global	__aeabi_idiv
	.align	2
.LC6:
	.ascii	"\012Process\011    Burst Time    \011Waiting Time\011"
	.ascii	"Turnaround Time\000"
	.align	2
.LC7:
	.ascii	"\012P[%d]\011\011  %d\011\011    %d\011\011\011%d\000"
	.align	2
.LC8:
	.ascii	"\012\012Average Waiting Time=%d\000"
	.align	2
.LC9:
	.ascii	"\012Average Turnaround Time=%d\012\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 440
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #448
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-428]
	ldr	r0, .L17+4
	bl	printf
	sub	r3, fp, #440
	mov	r1, r3
	ldr	r0, .L17+8
	bl	__isoc99_scanf
	ldr	r0, .L17+12
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-436]
	b	.L2
.L3:
	ldr	r3, [fp, #-436]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L17+16
	bl	printf
	ldr	r0, .L17+20
	bl	printf
	sub	r2, fp, #408
	ldr	r3, [fp, #-436]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L17+8
	bl	__isoc99_scanf
	ldr	r0, .L17+24
	bl	printf
	sub	r2, fp, #88
	ldr	r3, [fp, #-436]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L17+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-436]
	add	r2, r3, #1
	ldr	r3, [fp, #-436]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-324]
	ldr	r3, [fp, #-436]
	add	r3, r3, #1
	str	r3, [fp, #-436]
.L2:
	ldr	r3, [fp, #-440]
	ldr	r2, [fp, #-436]
	cmp	r2, r3
	blt	.L3
	mov	r3, #0
	str	r3, [fp, #-436]
	b	.L4
.L8:
	ldr	r3, [fp, #-436]
	str	r3, [fp, #-424]
	ldr	r3, [fp, #-436]
	add	r3, r3, #1
	str	r3, [fp, #-432]
	b	.L5
.L7:
	ldr	r3, [fp, #-432]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-84]
	ldr	r3, [fp, #-424]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-84]
	cmp	r2, r3
	bge	.L6
	ldr	r3, [fp, #-432]
	str	r3, [fp, #-424]
.L6:
	ldr	r3, [fp, #-432]
	add	r3, r3, #1
	str	r3, [fp, #-432]
.L5:
	ldr	r3, [fp, #-440]
	ldr	r2, [fp, #-432]
	cmp	r2, r3
	blt	.L7
	ldr	r3, [fp, #-436]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-84]
	str	r3, [fp, #-412]
	ldr	r3, [fp, #-424]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-84]
	ldr	r3, [fp, #-436]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-84]
	ldr	r3, [fp, #-424]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-412]
	str	r2, [r3, #-84]
	ldr	r3, [fp, #-436]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-404]
	str	r3, [fp, #-412]
	ldr	r3, [fp, #-424]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-404]
	ldr	r3, [fp, #-436]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-404]
	ldr	r3, [fp, #-424]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-412]
	str	r2, [r3, #-404]
	ldr	r3, [fp, #-436]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-324]
	str	r3, [fp, #-412]
	ldr	r3, [fp, #-424]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-324]
	ldr	r3, [fp, #-436]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-324]
	ldr	r3, [fp, #-424]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-412]
	str	r2, [r3, #-324]
	ldr	r3, [fp, #-436]
	add	r3, r3, #1
	str	r3, [fp, #-436]
.L4:
	ldr	r3, [fp, #-440]
	ldr	r2, [fp, #-436]
	cmp	r2, r3
	blt	.L8
	mov	r3, #0
	str	r3, [fp, #-248]
	mov	r3, #1
	str	r3, [fp, #-436]
	b	.L9
.L12:
	ldr	r3, [fp, #-436]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-244]
	mov	r3, #0
	str	r3, [fp, #-432]
	b	.L10
.L11:
	ldr	r3, [fp, #-436]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-244]
	ldr	r3, [fp, #-432]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-404]
	add	r2, r2, r3
	ldr	r3, [fp, #-436]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-244]
	ldr	r3, [fp, #-432]
	add	r3, r3, #1
	str	r3, [fp, #-432]
.L10:
	ldr	r2, [fp, #-432]
	ldr	r3, [fp, #-436]
	cmp	r2, r3
	blt	.L11
	ldr	r3, [fp, #-436]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-244]
	ldr	r2, [fp, #-428]
	add	r3, r2, r3
	str	r3, [fp, #-428]
	ldr	r3, [fp, #-436]
	add	r3, r3, #1
	str	r3, [fp, #-436]
.L9:
	ldr	r3, [fp, #-440]
	ldr	r2, [fp, #-436]
	cmp	r2, r3
	blt	.L12
	ldr	r3, [fp, #-440]
	mov	r1, r3
	ldr	r0, [fp, #-428]
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-420]
	mov	r3, #0
	str	r3, [fp, #-428]
	ldr	r0, .L17+28
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-436]
	b	.L13
.L14:
	ldr	r3, [fp, #-436]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-404]
	ldr	r3, [fp, #-436]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-244]
	add	r2, r2, r3
	ldr	r3, [fp, #-436]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-164]
	ldr	r3, [fp, #-436]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-164]
	ldr	r2, [fp, #-428]
	add	r3, r2, r3
	str	r3, [fp, #-428]
	ldr	r3, [fp, #-436]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r1, [r3, #-324]
	ldr	r3, [fp, #-436]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-404]
	ldr	r3, [fp, #-436]
	lsl	r3, r3, #2
	sub	r0, fp, #4
	add	r3, r0, r3
	ldr	r0, [r3, #-244]
	ldr	r3, [fp, #-436]
	lsl	r3, r3, #2
	sub	ip, fp, #4
	add	r3, ip, r3
	ldr	r3, [r3, #-164]
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L17+32
	bl	printf
	ldr	r3, [fp, #-436]
	add	r3, r3, #1
	str	r3, [fp, #-436]
.L13:
	ldr	r3, [fp, #-440]
	ldr	r2, [fp, #-436]
	cmp	r2, r3
	blt	.L14
	ldr	r3, [fp, #-440]
	mov	r1, r3
	ldr	r0, [fp, #-428]
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-416]
	ldr	r1, [fp, #-420]
	ldr	r0, .L17+36
	bl	printf
	ldr	r1, [fp, #-416]
	ldr	r0, .L17+40
	bl	printf
	mov	r3, #0
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC10
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
