	.file	"32442.c"
	.intel_syntax noprefix
	.text
	.globl	process
	.bss
	.align 32
	.type	process, @object
	.size	process, 320
process:
	.zero	320
	.globl	temp
	.align 32
	.type	temp, @object
	.size	temp, 32
temp:
	.zero	32
	.globl	no
	.align 4
	.type	no, @object
	.size	no, 4
no:
	.zero	4
	.section	.rodata
.LC0:
	.string	"Enter the choice:"
.LC1:
	.string	"1. Round Robin\n2. SRT\n3. Exit"
.LC2:
	.string	"%d"
	.align 8
.LC3:
	.string	"Round Robin Scheduling Algorithm"
.LC4:
	.string	"Enter number of processes:"
	.align 8
.LC5:
	.string	"Enter burst time for sequences:"
.LC6:
	.string	"Enter time quantum:"
	.align 8
.LC7:
	.string	"Shortest Remaining Time First Scheduling Algorithm"
	.align 8
.LC8:
	.string	"Enter the number of processes:"
	.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, 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L9:
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rax, -104[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -104[rbp]
	cmp	eax, 3
	je	.L12
	cmp	eax, 3
	jg	.L9
	cmp	eax, 1
	je	.L4
	cmp	eax, 2
	je	.L5
	jmp	.L3
.L4:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -100[rbp], 0
	jmp	.L6
.L7:
	lea	rdx, -96[rbp]
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	mov	edx, DWORD PTR -96[rbp+rax*4]
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	mov	DWORD PTR -48[rbp+rax*4], edx
	add	DWORD PTR -100[rbp], 1
.L6:
	mov	eax, DWORD PTR -112[rbp]
	cmp	DWORD PTR -100[rbp], eax
	jl	.L7
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -108[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	esi, DWORD PTR -108[rbp]
	mov	eax, DWORD PTR -112[rbp]
	lea	rcx, -96[rbp]
	lea	rdx, -48[rbp]
	mov	edi, eax
	call	roundrobin
	jmp	.L3
.L5:
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -112[rbp]
	mov	edi, eax
	call	srtf
	nop
.L3:
	jmp	.L9
.L12:
	nop
	nop
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC10:
	.string	"Process No\t\tBurst Time\t\tWait Time\t\tTurn Around Time"
.LC11:
	.string	"%d\t\t%d\t\t%d\t\t%d\n"
	.align 8
.LC12:
	.string	"Avg wait time is %f\n Avg turn around time is %f\n"
	.text
	.globl	roundrobin
	.type	roundrobin, @function
roundrobin:
.LFB7:
	.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	DWORD PTR -148[rbp], edi
	mov	DWORD PTR -152[rbp], esi
	mov	QWORD PTR -160[rbp], rdx
	mov	QWORD PTR -168[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -108[rbp], 0
	mov	DWORD PTR -128[rbp], 0
	mov	DWORD PTR -124[rbp], 0
	mov	DWORD PTR -120[rbp], 0
	mov	DWORD PTR -112[rbp], 0
	pxor	xmm0, xmm0
	movss	DWORD PTR -104[rbp], xmm0
	pxor	xmm0, xmm0
	movss	DWORD PTR -100[rbp], xmm0
.L22:
	mov	DWORD PTR -132[rbp], 0
	mov	DWORD PTR -128[rbp], 0
	jmp	.L14
.L19:
	mov	eax, DWORD PTR -152[rbp]
	mov	DWORD PTR -116[rbp], eax
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L15
	add	DWORD PTR -128[rbp], 1
	jmp	.L16
.L15:
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -152[rbp], eax
	jge	.L17
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edx, DWORD PTR -132[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -160[rbp]
	add	rdx, rcx
	sub	eax, DWORD PTR -152[rbp]
	mov	DWORD PTR [rdx], eax
	jmp	.L18
.L17:
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	js	.L18
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -116[rbp], eax
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 0
.L18:
	mov	eax, DWORD PTR -116[rbp]
	add	DWORD PTR -112[rbp], eax
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	mov	edx, DWORD PTR -112[rbp]
	mov	DWORD PTR -96[rbp+rax*4], edx
.L16:
	add	DWORD PTR -132[rbp], 1
.L14:
	mov	eax, DWORD PTR -132[rbp]
	cmp	eax, DWORD PTR -148[rbp]
	jl	.L19
	mov	eax, DWORD PTR -148[rbp]
	cmp	eax, DWORD PTR -128[rbp]
	je	.L29
	jmp	.L22
.L29:
	nop
	mov	DWORD PTR -132[rbp], 0
	jmp	.L23
.L24:
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	mov	eax, DWORD PTR -96[rbp+rax*4]
	mov	edx, DWORD PTR -132[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -168[rbp]
	add	rdx, rcx
	mov	ecx, DWORD PTR [rdx]
	sub	eax, ecx
	mov	edx, eax
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	mov	DWORD PTR -48[rbp+rax*4], edx
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	mov	eax, DWORD PTR -48[rbp+rax*4]
	add	DWORD PTR -124[rbp], eax
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	mov	eax, DWORD PTR -96[rbp+rax*4]
	add	DWORD PTR -120[rbp], eax
	add	DWORD PTR -132[rbp], 1
.L23:
	mov	eax, DWORD PTR -132[rbp]
	cmp	eax, DWORD PTR -148[rbp]
	jl	.L24
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR -124[rbp]
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, DWORD PTR -148[rbp]
	divss	xmm0, xmm1
	movss	DWORD PTR -104[rbp], xmm0
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR -120[rbp]
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, DWORD PTR -148[rbp]
	divss	xmm0, xmm1
	movss	DWORD PTR -100[rbp], xmm0
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	DWORD PTR -132[rbp], 0
	jmp	.L25
.L26:
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	mov	edi, DWORD PTR -96[rbp+rax*4]
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	mov	edx, DWORD PTR -48[rbp+rax*4]
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	mov	ecx, DWORD PTR -132[rbp]
	lea	esi, 1[rcx]
	mov	r8d, edi
	mov	ecx, edx
	mov	edx, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -132[rbp], 1
.L25:
	mov	eax, DWORD PTR -132[rbp]
	cmp	eax, DWORD PTR -148[rbp]
	jl	.L26
	pxor	xmm0, xmm0
	cvtss2sd	xmm0, DWORD PTR -100[rbp]
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, DWORD PTR -104[rbp]
	movq	rax, xmm2
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC12[rip]
	mov	eax, 2
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	roundrobin, .-roundrobin
	.globl	chkprocess
	.type	chkprocess, @function
chkprocess:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -4[rbp], 1
	jmp	.L31
.L34:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, process[rip+12]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L32
	mov	eax, 1
	jmp	.L33
.L32:
	add	DWORD PTR -4[rbp], 1
.L31:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jle	.L34
	mov	eax, 0
.L33:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	chkprocess, .-chkprocess
	.globl	nextprocess
	.type	nextprocess, @function
nextprocess:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -12[rbp], 32000
	mov	DWORD PTR -4[rbp], 1
	jmp	.L36
.L38:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, process[rip+12]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L37
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, process[rip+12]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -12[rbp], eax
	jle	.L37
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, process[rip+12]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR -8[rbp], eax
.L37:
	add	DWORD PTR -4[rbp], 1
.L36:
	mov	eax, DWORD PTR no[rip]
	cmp	DWORD PTR -4[rbp], eax
	jle	.L38
	mov	eax, DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	nextprocess, .-nextprocess
	.section	.rodata
	.align 8
.LC13:
	.string	"\nEnter the arrival time for process %d: "
	.align 8
.LC14:
	.string	"Enter the burst time for process %d: "
.LC15:
	.string	"Shortest Remaining Time First"
	.align 8
.LC16:
	.string	"\nProcess Arrival Burst Waiting Finishing Turnaround Tr/Tb"
.LC17:
	.string	"time"
.LC18:
	.string	"id"
.LC19:
	.string	"%5s %9s %7s %10s %8s %9s\n"
	.align 8
.LC20:
	.string	"%5d %8d %7d %8d %10d %9d %10.1f "
.LC21:
	.string	"\n"
	.align 8
.LC22:
	.string	"Average Turnaround Time = %f\tAverage Waiting Time = %f\n"
	.text
	.globl	srtf
	.type	srtf, @function
srtf:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -24[rbp], 1
	jmp	.L41
.L42:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 5
	mov	rcx, rax
	lea	rdx, process[rip]
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, process[rip]
	add	rax, rdx
	add	rax, 4
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, process[rip]
	add	rax, rdx
	add	rax, 8
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, process[rip+8]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -24[rbp]
	movsx	rdx, edx
	mov	rcx, rdx
	sal	rcx, 5
	lea	rdx, process[rip+12]
	mov	DWORD PTR [rcx+rdx], eax
	add	DWORD PTR -24[rbp], 1
.L41:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jle	.L42
	mov	DWORD PTR -24[rbp], 1
	jmp	.L43
.L47:
	mov	eax, DWORD PTR -24[rbp]
	add	eax, 1
	mov	DWORD PTR -20[rbp], eax
	jmp	.L44
.L46:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, process[rip+4]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 5
	mov	rcx, rax
	lea	rax, process[rip+4]
	mov	eax, DWORD PTR [rcx+rax]
	cmp	edx, eax
	jle	.L45
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 5
	mov	rsi, rax
	lea	rcx, process[rip]
	mov	rax, QWORD PTR [rsi+rcx]
	mov	rdx, QWORD PTR 8[rsi+rcx]
	mov	QWORD PTR temp[rip], rax
	mov	QWORD PTR temp[rip+8], rdx
	mov	rax, QWORD PTR 16[rsi+rcx]
	mov	rdx, QWORD PTR 24[rsi+rcx]
	mov	QWORD PTR temp[rip+16], rax
	mov	QWORD PTR temp[rip+24], rdx
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 5
	mov	rsi, rax
	lea	rcx, process[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 5
	mov	r8, rax
	lea	rdi, process[rip]
	mov	rax, QWORD PTR [r8+rdi]
	mov	rdx, QWORD PTR 8[r8+rdi]
	mov	QWORD PTR [rsi+rcx], rax
	mov	QWORD PTR 8[rsi+rcx], rdx
	mov	rax, QWORD PTR 16[r8+rdi]
	mov	rdx, QWORD PTR 24[r8+rdi]
	mov	QWORD PTR 16[rsi+rcx], rax
	mov	QWORD PTR 24[rsi+rcx], rdx
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 5
	mov	rsi, rax
	lea	rcx, process[rip]
	mov	rax, QWORD PTR temp[rip]
	mov	rdx, QWORD PTR temp[rip+8]
	mov	QWORD PTR [rsi+rcx], rax
	mov	QWORD PTR 8[rsi+rcx], rdx
	mov	rax, QWORD PTR temp[rip+16]
	mov	rdx, QWORD PTR temp[rip+24]
	mov	QWORD PTR 16[rsi+rcx], rax
	mov	QWORD PTR 24[rsi+rcx], rdx
.L45:
	add	DWORD PTR -20[rbp], 1
.L44:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jle	.L46
	add	DWORD PTR -24[rbp], 1
.L43:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jle	.L47
	mov	DWORD PTR no[rip], 0
	mov	DWORD PTR -20[rbp], 1
	jmp	.L48
.L56:
	mov	eax, DWORD PTR no[rip]
	add	eax, 1
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, process[rip+4]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -12[rbp], eax
	jne	.L49
	mov	eax, DWORD PTR no[rip]
	add	eax, 1
	mov	DWORD PTR no[rip], eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, process[rip+12]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L50
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 5
	mov	rcx, rax
	lea	rdx, process[rip+20]
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR [rcx+rdx], eax
.L50:
	mov	eax, 0
	call	nextprocess
	mov	DWORD PTR -20[rbp], eax
.L49:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, process[rip+12]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L51
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, process[rip+12]
	mov	eax, DWORD PTR [rdx+rax]
	lea	ecx, -1[rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, process[rip+12]
	mov	DWORD PTR [rdx+rax], ecx
	mov	DWORD PTR -24[rbp], 1
	jmp	.L52
.L54:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	je	.L53
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, process[rip+12]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L53
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, process[rip+16]
	mov	eax, DWORD PTR [rdx+rax]
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, process[rip+16]
	mov	DWORD PTR [rdx+rax], ecx
.L53:
	add	DWORD PTR -24[rbp], 1
.L52:
	mov	eax, DWORD PTR no[rip]
	cmp	DWORD PTR -24[rbp], eax
	jle	.L54
	jmp	.L55
.L51:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 5
	mov	rcx, rax
	lea	rdx, process[rip+20]
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, 0
	call	nextprocess
	mov	DWORD PTR -20[rbp], eax
	sub	DWORD PTR -12[rbp], 1
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -16[rbp], eax
.L55:
	add	DWORD PTR -12[rbp], 1
.L48:
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	chkprocess
	cmp	eax, 1
	je	.L56
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 5
	mov	rcx, rax
	lea	rdx, process[rip+20]
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC16[rip]
	call	puts@PLT
	sub	rsp, 8
	lea	rax, .LC17[rip]
	push	rax
	lea	r9, .LC17[rip]
	lea	r8, .LC17[rip]
	lea	rcx, .LC17[rip]
	lea	rdx, .LC17[rip]
	lea	rsi, .LC18[rip]
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	add	rsp, 16
	mov	DWORD PTR -24[rbp], 1
	jmp	.L57
.L58:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, process[rip+16]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, process[rip+8]
	mov	eax, DWORD PTR [rdx+rax]
	add	ecx, eax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, process[rip+24]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, process[rip+24]
	mov	eax, DWORD PTR [rdx+rax]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, process[rip+8]
	mov	eax, DWORD PTR [rdx+rax]
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, eax
	divss	xmm0, xmm1
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, process[rip+28]
	movss	DWORD PTR [rdx+rax], xmm0
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, process[rip+28]
	movss	xmm0, DWORD PTR [rdx+rax]
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm0
	movq	rsi, xmm2
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, process[rip+24]
	mov	edi, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, process[rip+20]
	mov	r9d, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, process[rip+16]
	mov	r10d, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, process[rip+8]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, process[rip+4]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 5
	mov	r8, rax
	lea	rax, process[rip]
	mov	eax, DWORD PTR [r8+rax]
	sub	rsp, 8
	push	rdi
	movq	xmm0, rsi
	mov	r8d, r10d
	mov	esi, eax
	lea	rdi, .LC20[rip]
	mov	eax, 1
	call	printf@PLT
	add	rsp, 16
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, process[rip+24]
	mov	eax, DWORD PTR [rdx+rax]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	movss	xmm1, DWORD PTR -8[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -8[rbp], xmm0
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, process[rip+16]
	mov	eax, DWORD PTR [rdx+rax]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	movss	xmm1, DWORD PTR -4[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -4[rbp], xmm0
	lea	rdi, .LC21[rip]
	call	puts@PLT
	add	DWORD PTR -24[rbp], 1
.L57:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jle	.L58
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, DWORD PTR -36[rbp]
	movss	xmm0, DWORD PTR -8[rbp]
	divss	xmm0, xmm1
	movss	DWORD PTR -8[rbp], xmm0
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, DWORD PTR -36[rbp]
	movss	xmm0, DWORD PTR -4[rbp]
	divss	xmm0, xmm1
	movss	DWORD PTR -4[rbp], xmm0
	pxor	xmm0, xmm0
	cvtss2sd	xmm0, DWORD PTR -4[rbp]
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, DWORD PTR -8[rbp]
	movq	rax, xmm3
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC22[rip]
	mov	eax, 2
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	srtf, .-srtf
	.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	"32442.c"
	.text
	.comm	process,320,4
	.comm	temp,32,4
	.comm	no,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter the choice:\000"
	.align	2
.LC1:
	.ascii	"1. Round Robin\0122. SRT\0123. Exit\000"
	.align	2
.LC2:
	.ascii	"%d\000"
	.align	2
.LC3:
	.ascii	"Round Robin Scheduling Algorithm\000"
	.align	2
.LC4:
	.ascii	"Enter number of processes:\000"
	.align	2
.LC5:
	.ascii	"Enter burst time for sequences:\000"
	.align	2
.LC6:
	.ascii	"Enter time quantum:\000"
	.align	2
.LC7:
	.ascii	"Shortest Remaining Time First Scheduling Algorithm\000"
	.align	2
.LC8:
	.ascii	"Enter the number of processes:\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #104
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L9:
	ldr	r0, .L13+4
	bl	puts
	ldr	r0, .L13+8
	bl	puts
	sub	r3, fp, #96
	mov	r1, r3
	ldr	r0, .L13+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-96]
	cmp	r3, #3
	beq	.L12
	cmp	r3, #3
	bgt	.L9
	cmp	r3, #1
	beq	.L4
	cmp	r3, #2
	beq	.L5
	b	.L3
.L4:
	ldr	r0, .L13+16
	bl	puts
	ldr	r0, .L13+20
	bl	puts
	sub	r3, fp, #104
	mov	r1, r3
	ldr	r0, .L13+12
	bl	__isoc99_scanf
	ldr	r0, .L13+24
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-92]
	b	.L6
.L7:
	sub	r2, fp, #88
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L13+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-84]
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-44]
	ldr	r3, [fp, #-92]
	add	r3, r3, #1
	str	r3, [fp, #-92]
.L6:
	ldr	r3, [fp, #-104]
	ldr	r2, [fp, #-92]
	cmp	r2, r3
	blt	.L7
	ldr	r0, .L13+28
	bl	printf
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, .L13+12
	bl	__isoc99_scanf
	ldr	r0, [fp, #-104]
	ldr	r1, [fp, #-100]
	sub	r3, fp, #88
	sub	r2, fp, #48
	bl	roundrobin
	b	.L3
.L5:
	ldr	r0, .L13+32
	bl	puts
	ldr	r0, .L13+36
	bl	puts
	sub	r3, fp, #104
	mov	r1, r3
	ldr	r0, .L13+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-104]
	mov	r0, r3
	bl	srtf
	nop
.L3:
	b	.L9
.L12:
	nop
	nop
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC9
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.global	__aeabi_i2f
	.global	__aeabi_fdiv
	.section	.rodata
	.align	2
.LC10:
	.ascii	"Process No\011\011Burst Time\011\011Wait Time\011\011"
	.ascii	"Turn Around Time\000"
	.align	2
.LC11:
	.ascii	"%d\011\011%d\011\011%d\011\011%d\012\000"
	.global	__aeabi_f2d
	.align	2
.LC12:
	.ascii	"Avg wait time is %f\012 Avg turn around time is %f\012"
	.ascii	"\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	roundrobin
	.syntax unified
	.arm
	.fpu softvfp
	.type	roundrobin, %function
roundrobin:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #144
	str	r0, [fp, #-136]
	str	r1, [fp, #-140]
	str	r2, [fp, #-144]
	str	r3, [fp, #-148]
	ldr	r3, .L32
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-108]
	mov	r3, #0
	str	r3, [fp, #-128]
	mov	r3, #0
	str	r3, [fp, #-124]
	mov	r3, #0
	str	r3, [fp, #-120]
	mov	r3, #0
	str	r3, [fp, #-112]
	mov	r3, #0
	str	r3, [fp, #-104]	@ float
	mov	r3, #0
	str	r3, [fp, #-100]	@ float
.L24:
	mov	r3, #0
	str	r3, [fp, #-132]
	mov	r3, #0
	str	r3, [fp, #-128]
	b	.L16
.L21:
	ldr	r3, [fp, #-140]
	str	r3, [fp, #-116]
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-144]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L17
	ldr	r3, [fp, #-128]
	add	r3, r3, #1
	str	r3, [fp, #-128]
	b	.L18
.L17:
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-144]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-140]
	cmp	r2, r3
	bge	.L19
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-144]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-144]
	add	r3, r2, r3
	ldr	r2, [fp, #-140]
	sub	r2, r1, r2
	str	r2, [r3]
	b	.L20
.L19:
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-144]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	blt	.L20
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-144]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-116]
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-144]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
.L20:
	ldr	r2, [fp, #-112]
	ldr	r3, [fp, #-116]
	add	r3, r2, r3
	str	r3, [fp, #-112]
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [fp, #-112]
	str	r2, [r3, #-84]
.L18:
	ldr	r3, [fp, #-132]
	add	r3, r3, #1
	str	r3, [fp, #-132]
.L16:
	ldr	r2, [fp, #-132]
	ldr	r3, [fp, #-136]
	cmp	r2, r3
	blt	.L21
	ldr	r2, [fp, #-136]
	ldr	r3, [fp, #-128]
	cmp	r2, r3
	beq	.L31
	b	.L24
.L31:
	nop
	mov	r3, #0
	str	r3, [fp, #-132]
	b	.L25
.L26:
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [r3, #-84]
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-148]
	add	r3, r1, r3
	ldr	r3, [r3]
	sub	r2, r2, r3
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-44]
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-44]
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	str	r3, [fp, #-124]
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-84]
	ldr	r2, [fp, #-120]
	add	r3, r2, r3
	str	r3, [fp, #-120]
	ldr	r3, [fp, #-132]
	add	r3, r3, #1
	str	r3, [fp, #-132]
.L25:
	ldr	r2, [fp, #-132]
	ldr	r3, [fp, #-136]
	cmp	r2, r3
	blt	.L26
	ldr	r0, [fp, #-124]
	bl	__aeabi_i2f
	mov	r4, r0
	ldr	r0, [fp, #-136]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [fp, #-104]	@ float
	ldr	r0, [fp, #-120]
	bl	__aeabi_i2f
	mov	r4, r0
	ldr	r0, [fp, #-136]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [fp, #-100]	@ float
	ldr	r0, .L32+4
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-132]
	b	.L27
.L28:
	ldr	r3, [fp, #-132]
	add	r1, r3, #1
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-148]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	sub	r0, fp, #12
	add	r3, r0, r3
	ldr	r0, [r3, #-44]
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	sub	ip, fp, #12
	add	r3, ip, r3
	ldr	r3, [r3, #-84]
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L32+8
	bl	printf
	ldr	r3, [fp, #-132]
	add	r3, r3, #1
	str	r3, [fp, #-132]
.L27:
	ldr	r2, [fp, #-132]
	ldr	r3, [fp, #-136]
	cmp	r2, r3
	blt	.L28
	ldr	r0, [fp, #-104]	@ float
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-100]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r2, r4
	mov	r3, r5
	ldr	r0, .L32+12
	bl	printf
	nop
	ldr	r3, .L32
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L29
	bl	__stack_chk_fail
.L29:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC13
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	roundrobin, .-roundrobin
	.align	2
	.global	chkprocess
	.syntax unified
	.arm
	.fpu softvfp
	.type	chkprocess, %function
chkprocess:
	@ 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]
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L35
.L38:
	ldr	r2, .L39
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #5
	add	r3, r2, r3
	ldr	r3, [r3, #12]
	cmp	r3, #0
	beq	.L36
	mov	r3, #1
	b	.L37
.L36:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L35:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	ble	.L38
	mov	r3, #0
.L37:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L40:
	.align	2
.L39:
	.word	process
	.size	chkprocess, .-chkprocess
	.align	2
	.global	nextprocess
	.syntax unified
	.arm
	.fpu softvfp
	.type	nextprocess, %function
nextprocess:
	@ 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
	mov	r3, #32000
	str	r3, [fp, #-16]
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L42
.L44:
	ldr	r2, .L46
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #5
	add	r3, r2, r3
	ldr	r3, [r3, #12]
	cmp	r3, #0
	beq	.L43
	ldr	r2, .L46
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #5
	add	r3, r2, r3
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	ble	.L43
	ldr	r2, .L46
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #5
	add	r3, r2, r3
	ldr	r3, [r3, #12]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-12]
.L43:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L42:
	ldr	r3, .L46+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	ble	.L44
	ldr	r3, [fp, #-12]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L47:
	.align	2
.L46:
	.word	process
	.word	no
	.size	nextprocess, .-nextprocess
	.section	.rodata
	.align	2
.LC14:
	.ascii	"\012Enter the arrival time for process %d: \000"
	.align	2
.LC15:
	.ascii	"Enter the burst time for process %d: \000"
	.align	2
.LC16:
	.ascii	"Shortest Remaining Time First\000"
	.align	2
.LC17:
	.ascii	"\012Process Arrival Burst Waiting Finishing Turnaro"
	.ascii	"und Tr/Tb\000"
	.align	2
.LC18:
	.ascii	"time\000"
	.align	2
.LC19:
	.ascii	"id\000"
	.align	2
.LC20:
	.ascii	"%5s %9s %7s %10s %8s %9s\012\000"
	.align	2
.LC21:
	.ascii	"%5d %8d %7d %8d %10d %9d %10.1f \000"
	.global	__aeabi_fadd
	.align	2
.LC22:
	.ascii	"\012\000"
	.align	2
.LC23:
	.ascii	"Average Turnaround Time = %f\011Average Waiting Tim"
	.ascii	"e = %f\012\000"
	.text
	.align	2
	.global	srtf
	.syntax unified
	.arm
	.fpu softvfp
	.type	srtf, %function
srtf:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #1
	str	r3, [fp, #-52]
	b	.L49
.L50:
	ldr	r1, .L67
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-52]
	str	r2, [r1, r3, lsl #5]
	ldr	r1, [fp, #-52]
	ldr	r0, .L67+4
	bl	printf
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #5
	ldr	r2, .L67
	add	r3, r3, r2
	add	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L67+8
	bl	__isoc99_scanf
	ldr	r1, [fp, #-52]
	ldr	r0, .L67+12
	bl	printf
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #5
	add	r3, r3, #8
	ldr	r2, .L67
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L67+8
	bl	__isoc99_scanf
	ldr	r2, .L67
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #5
	add	r3, r2, r3
	ldr	r2, [r3, #8]
	ldr	r1, .L67
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #5
	add	r3, r1, r3
	str	r2, [r3, #12]
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L49:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	ble	.L50
	mov	r3, #1
	str	r3, [fp, #-52]
	b	.L51
.L55:
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-48]
	b	.L52
.L54:
	ldr	r2, .L67
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #5
	add	r3, r2, r3
	ldr	r2, [r3, #4]
	ldr	r1, .L67
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #5
	add	r3, r1, r3
	ldr	r3, [r3, #4]
	cmp	r2, r3
	ble	.L53
	ldr	r1, .L67+16
	ldr	r2, .L67
	ldr	r3, [fp, #-52]
	mov	lr, r1
	lsl	ip, r3, #5
	add	ip, r2, ip
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldm	ip, {r0, r1, r2, r3}
	stm	lr, {r0, r1, r2, r3}
	ldr	r0, .L67
	ldr	r2, [fp, #-52]
	ldr	r1, .L67
	ldr	r3, [fp, #-48]
	lsl	ip, r2, #5
	add	ip, r0, ip
	lsl	lr, r3, #5
	add	lr, r1, lr
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r2, .L67
	ldr	r3, [fp, #-48]
	ldr	r1, .L67+16
	lsl	ip, r3, #5
	add	ip, r2, ip
	mov	lr, r1
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
.L53:
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L52:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	ble	.L54
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L51:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	ble	.L55
	ldr	r3, .L67+20
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #1
	str	r3, [fp, #-48]
	b	.L56
.L64:
	ldr	r3, .L67+20
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L67
	lsl	r3, r3, #5
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	bne	.L57
	ldr	r3, .L67+20
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L67+20
	str	r3, [r2]
	ldr	r2, .L67
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #5
	add	r3, r2, r3
	ldr	r3, [r3, #12]
	cmp	r3, #0
	bne	.L58
	ldr	r2, .L67
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #5
	add	r3, r2, r3
	ldr	r2, [fp, #-40]
	str	r2, [r3, #20]
.L58:
	bl	nextprocess
	str	r0, [fp, #-48]
.L57:
	ldr	r2, .L67
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #5
	add	r3, r2, r3
	ldr	r3, [r3, #12]
	cmp	r3, #0
	beq	.L59
	ldr	r2, .L67
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #5
	add	r3, r2, r3
	ldr	r3, [r3, #12]
	sub	r2, r3, #1
	ldr	r1, .L67
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #5
	add	r3, r1, r3
	str	r2, [r3, #12]
	mov	r3, #1
	str	r3, [fp, #-52]
	b	.L60
.L62:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	beq	.L61
	ldr	r2, .L67
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #5
	add	r3, r2, r3
	ldr	r3, [r3, #12]
	cmp	r3, #0
	beq	.L61
	ldr	r2, .L67
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #5
	add	r3, r2, r3
	ldr	r3, [r3, #16]
	add	r2, r3, #1
	ldr	r1, .L67
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #5
	add	r3, r1, r3
	str	r2, [r3, #16]
.L61:
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L60:
	ldr	r3, .L67+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	ble	.L62
	b	.L63
.L59:
	ldr	r2, .L67
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #5
	add	r3, r2, r3
	ldr	r2, [fp, #-40]
	str	r2, [r3, #20]
	bl	nextprocess
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-40]
	sub	r3, r3, #1
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-44]
.L63:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L56:
	ldr	r0, [fp, #-56]
	bl	chkprocess
	mov	r3, r0
	cmp	r3, #1
	beq	.L64
	ldr	r2, .L67
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #5
	add	r3, r2, r3
	ldr	r2, [fp, #-40]
	str	r2, [r3, #20]
	ldr	r0, .L67+24
	bl	printf
	ldr	r0, .L67+28
	bl	puts
	ldr	r3, .L67+32
	str	r3, [sp, #8]
	ldr	r3, .L67+32
	str	r3, [sp, #4]
	ldr	r3, .L67+32
	str	r3, [sp]
	ldr	r3, .L67+32
	ldr	r2, .L67+32
	ldr	r1, .L67+36
	ldr	r0, .L67+40
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-52]
	b	.L65
.L66:
	ldr	r2, .L67
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #5
	add	r3, r2, r3
	ldr	r2, [r3, #16]
	ldr	r1, .L67
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #5
	add	r3, r1, r3
	ldr	r3, [r3, #8]
	add	r2, r2, r3
	ldr	r1, .L67
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #5
	add	r3, r1, r3
	str	r2, [r3, #24]
	ldr	r2, .L67
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #5
	add	r3, r2, r3
	ldr	r3, [r3, #24]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r4, r0
	ldr	r2, .L67
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #5
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r1, r3
	ldr	r2, .L67
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #5
	add	r3, r2, r3
	str	r1, [r3, #28]	@ float
	ldr	r2, .L67
	ldr	r3, [fp, #-52]
	ldr	r7, [r2, r3, lsl #5]
	ldr	r2, .L67
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #5
	add	r3, r2, r3
	ldr	r8, [r3, #4]
	ldr	r2, .L67
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #5
	add	r3, r2, r3
	ldr	r9, [r3, #8]
	ldr	r2, .L67
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #5
	add	r3, r2, r3
	ldr	r4, [r3, #16]
	ldr	r2, .L67
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #5
	add	r3, r2, r3
	ldr	r5, [r3, #20]
	ldr	r2, .L67
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #5
	add	r3, r2, r3
	ldr	r6, [r3, #24]
	ldr	r2, .L67
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #5
	add	r3, r2, r3
	ldr	r3, [r3, #28]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [sp, #16]
	str	r3, [sp, #20]
	str	r6, [sp, #8]
	str	r5, [sp, #4]
	str	r4, [sp]
	mov	r3, r9
	mov	r2, r8
	mov	r1, r7
	ldr	r0, .L67+44
	bl	printf
	ldr	r2, .L67
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #5
	add	r3, r2, r3
	ldr	r3, [r3, #24]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-36]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-36]	@ float
	ldr	r2, .L67
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #5
	add	r3, r2, r3
	ldr	r3, [r3, #16]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-32]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-32]	@ float
	ldr	r0, .L67+48
	bl	puts
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L65:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	ble	.L66
	ldr	r0, [fp, #-56]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-36]	@ float
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [fp, #-36]	@ float
	ldr	r0, [fp, #-56]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-32]	@ float
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [fp, #-32]	@ float
	ldr	r0, [fp, #-36]	@ float
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-32]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r2, r4
	mov	r3, r5
	ldr	r0, .L67+52
	bl	printf
	nop
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L68:
	.align	2
.L67:
	.word	process
	.word	.LC14
	.word	.LC2
	.word	.LC15
	.word	temp
	.word	no
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.size	srtf, .-srtf
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
