	.file	"885672.c"
	.intel_syntax noprefix
	.text
	.globl	b_sort
	.type	b_sort, @function
b_sort:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 88
	.cfi_offset 3, -24
	mov	QWORD PTR -88[rbp], rdi
	mov	DWORD PTR -92[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -72[rbp], 1
	jmp	.L2
.L6:
	mov	DWORD PTR -68[rbp], 0
	jmp	.L3
.L5:
	mov	eax, DWORD PTR -68[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR 12[rax]
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	lea	rcx, 1[rax]
	mov	rax, rcx
	sal	rax, 3
	add	rax, rcx
	sal	rax, 2
	mov	rcx, rax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR 12[rax]
	cmp	edx, eax
	jle	.L4
	mov	eax, DWORD PTR -68[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	mov	rbx, QWORD PTR 8[rax]
	mov	QWORD PTR -64[rbp], rcx
	mov	QWORD PTR -56[rbp], rbx
	mov	rcx, QWORD PTR 16[rax]
	mov	rbx, QWORD PTR 24[rax]
	mov	QWORD PTR -48[rbp], rcx
	mov	QWORD PTR -40[rbp], rbx
	mov	eax, DWORD PTR 32[rax]
	mov	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -68[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 3
	add	rax, rcx
	sal	rax, 2
	mov	rcx, rax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	rbx, QWORD PTR 8[rdx]
	mov	QWORD PTR [rax], rcx
	mov	QWORD PTR 8[rax], rbx
	mov	rcx, QWORD PTR 16[rdx]
	mov	rbx, QWORD PTR 24[rdx]
	mov	QWORD PTR 16[rax], rcx
	mov	QWORD PTR 24[rax], rbx
	mov	edx, DWORD PTR 32[rdx]
	mov	DWORD PTR 32[rax], edx
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR -64[rbp]
	mov	rbx, QWORD PTR -56[rbp]
	mov	QWORD PTR [rax], rcx
	mov	QWORD PTR 8[rax], rbx
	mov	rcx, QWORD PTR -48[rbp]
	mov	rbx, QWORD PTR -40[rbp]
	mov	QWORD PTR 16[rax], rcx
	mov	QWORD PTR 24[rax], rbx
	mov	edx, DWORD PTR -32[rbp]
	mov	DWORD PTR 32[rax], edx
.L4:
	add	DWORD PTR -68[rbp], 1
.L3:
	mov	eax, DWORD PTR -92[rbp]
	sub	eax, DWORD PTR -72[rbp]
	cmp	DWORD PTR -68[rbp], eax
	jl	.L5
	add	DWORD PTR -72[rbp], 1
.L2:
	mov	eax, DWORD PTR -72[rbp]
	cmp	eax, DWORD PTR -92[rbp]
	jl	.L6
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	b_sort, .-b_sort
	.section	.rodata
	.align 8
.LC0:
	.string	"\n Enter total no. of processes : "
.LC1:
	.string	"%d"
.LC2:
	.string	"\n PROCESS [%d]"
.LC3:
	.string	" Enter process name : "
.LC4:
	.string	"%s"
.LC5:
	.string	" Enter burst time : "
.LC6:
	.string	" Enter arrival time : "
	.text
	.globl	accept
	.type	accept, @function
accept:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -12[rbp], 0
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -12[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	add	rax, 8
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	add	rax, 12
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -12[rbp], 1
.L9:
	mov	eax, DWORD PTR -16[rbp]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L10
	mov	eax, DWORD PTR -16[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	accept, .-accept
	.section	.rodata
.LC8:
	.string	"\n\n PROC.\tB.T.\tA.T."
.LC9:
	.string	"\n %s\t%d\t%d"
.LC10:
	.string	"\n\n GANTT CHART\n "
.LC11:
	.string	"   %s   "
.LC12:
	.string	"\n "
.LC13:
	.string	"0\t"
.LC14:
	.string	"%d      "
	.align 8
.LC15:
	.string	"\n\n PROC.\tB.T.\tA.T.\tC.T\tW.T\tT.A.T"
.LC16:
	.string	"\n %s\t%d\t%d\t%d\t%d\t%d"
	.align 8
.LC17:
	.string	"\n\n Average waiting time = %0.2f\n Average turn-around = %0.2f."
	.text
	.globl	FCFS
	.type	FCFS, @function
FCFS:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 424
	.cfi_offset 3, -24
	mov	QWORD PTR -424[rbp], rdi
	mov	DWORD PTR -428[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -408[rbp], 0
	mov	DWORD PTR -404[rbp], 0
	mov	DWORD PTR -400[rbp], 0
	pxor	xmm0, xmm0
	movss	DWORD PTR -392[rbp], xmm0
	pxor	xmm0, xmm0
	movss	DWORD PTR -388[rbp], xmm0
	mov	DWORD PTR -396[rbp], 0
	jmp	.L14
.L15:
	mov	eax, DWORD PTR -396[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -424[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -396[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 3
	add	rax, rcx
	sal	rax, 2
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 368
	mov	rcx, QWORD PTR [rdx]
	mov	rbx, QWORD PTR 8[rdx]
	mov	QWORD PTR [rax], rcx
	mov	QWORD PTR 8[rax], rbx
	mov	rcx, QWORD PTR 16[rdx]
	mov	rbx, QWORD PTR 24[rdx]
	mov	QWORD PTR 16[rax], rcx
	mov	QWORD PTR 24[rax], rbx
	mov	edx, DWORD PTR 32[rdx]
	mov	DWORD PTR 32[rax], edx
	add	DWORD PTR -396[rbp], 1
.L14:
	mov	eax, DWORD PTR -396[rbp]
	cmp	eax, DWORD PTR -428[rbp]
	jl	.L15
	mov	edx, DWORD PTR -428[rbp]
	lea	rax, -384[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	b_sort
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -396[rbp], 0
	jmp	.L16
.L17:
	mov	eax, DWORD PTR -396[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 356
	mov	ecx, DWORD PTR [rax]
	mov	eax, DWORD PTR -396[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 360
	mov	edx, DWORD PTR [rax]
	lea	rdi, -384[rbp]
	mov	eax, DWORD PTR -396[rbp]
	movsx	rsi, eax
	mov	rax, rsi
	sal	rax, 3
	add	rax, rsi
	sal	rax, 2
	add	rax, rdi
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -396[rbp], 1
.L16:
	mov	eax, DWORD PTR -396[rbp]
	cmp	eax, DWORD PTR -428[rbp]
	jl	.L17
	mov	DWORD PTR -364[rbp], 0
	mov	eax, DWORD PTR -364[rbp]
	mov	DWORD PTR -408[rbp], eax
	mov	eax, DWORD PTR -376[rbp]
	mov	edx, DWORD PTR -372[rbp]
	sub	eax, edx
	mov	DWORD PTR -360[rbp], eax
	mov	eax, DWORD PTR -360[rbp]
	mov	DWORD PTR -404[rbp], eax
	mov	DWORD PTR -396[rbp], 1
	jmp	.L18
.L19:
	mov	eax, DWORD PTR -396[rbp]
	sub	eax, 1
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 360
	mov	ecx, DWORD PTR [rax]
	mov	eax, DWORD PTR -396[rbp]
	sub	eax, 1
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 356
	mov	eax, DWORD PTR [rax]
	add	ecx, eax
	mov	eax, DWORD PTR -396[rbp]
	sub	eax, 1
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 348
	mov	eax, DWORD PTR [rax]
	add	ecx, eax
	mov	eax, DWORD PTR -396[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 356
	mov	eax, DWORD PTR [rax]
	sub	ecx, eax
	mov	eax, DWORD PTR -396[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 348
	mov	DWORD PTR [rax], ecx
	mov	eax, DWORD PTR -396[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 348
	mov	ecx, DWORD PTR [rax]
	mov	eax, DWORD PTR -396[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 360
	mov	eax, DWORD PTR [rax]
	add	ecx, eax
	mov	eax, DWORD PTR -396[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 344
	mov	DWORD PTR [rax], ecx
	mov	eax, DWORD PTR -396[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 348
	mov	eax, DWORD PTR [rax]
	add	DWORD PTR -408[rbp], eax
	mov	eax, DWORD PTR -396[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 344
	mov	eax, DWORD PTR [rax]
	add	DWORD PTR -404[rbp], eax
	add	DWORD PTR -396[rbp], 1
.L18:
	mov	eax, DWORD PTR -396[rbp]
	cmp	eax, DWORD PTR -428[rbp]
	jl	.L19
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR -408[rbp]
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, DWORD PTR -428[rbp]
	divss	xmm0, xmm1
	movss	DWORD PTR -392[rbp], xmm0
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR -404[rbp]
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, DWORD PTR -428[rbp]
	divss	xmm0, xmm1
	movss	DWORD PTR -388[rbp], xmm0
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -396[rbp], 0
	jmp	.L20
.L21:
	lea	rcx, -384[rbp]
	mov	eax, DWORD PTR -396[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -396[rbp], 1
.L20:
	mov	eax, DWORD PTR -396[rbp]
	cmp	eax, DWORD PTR -428[rbp]
	jl	.L21
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -396[rbp], 1
	jmp	.L22
.L23:
	mov	eax, DWORD PTR -396[rbp]
	sub	eax, 1
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 360
	mov	eax, DWORD PTR [rax]
	add	DWORD PTR -400[rbp], eax
	mov	eax, DWORD PTR -400[rbp]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -396[rbp]
	sub	eax, 1
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	lea	rax, -16[rax]
	add	rax, rbp
	lea	rdx, -336[rax]
	mov	eax, DWORD PTR -400[rbp]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -396[rbp], 1
.L22:
	mov	eax, DWORD PTR -396[rbp]
	cmp	eax, DWORD PTR -428[rbp]
	jle	.L23
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -396[rbp], 0
	jmp	.L24
.L25:
	mov	eax, DWORD PTR -396[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 344
	mov	esi, DWORD PTR [rax]
	mov	eax, DWORD PTR -396[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 348
	mov	r9d, DWORD PTR [rax]
	mov	eax, DWORD PTR -396[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 336
	mov	r8d, DWORD PTR [rax]
	mov	eax, DWORD PTR -396[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 356
	mov	ecx, DWORD PTR [rax]
	mov	eax, DWORD PTR -396[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 360
	mov	edx, DWORD PTR [rax]
	lea	r10, -384[rbp]
	mov	eax, DWORD PTR -396[rbp]
	movsx	rdi, eax
	mov	rax, rdi
	sal	rax, 3
	add	rax, rdi
	sal	rax, 2
	add	rax, r10
	sub	rsp, 8
	push	rsi
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	add	rsp, 16
	add	DWORD PTR -396[rbp], 1
.L24:
	mov	eax, DWORD PTR -396[rbp]
	cmp	eax, DWORD PTR -428[rbp]
	jl	.L25
	pxor	xmm0, xmm0
	cvtss2sd	xmm0, DWORD PTR -388[rbp]
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, DWORD PTR -392[rbp]
	movq	rax, xmm2
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC17[rip]
	mov	eax, 2
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	FCFS, .-FCFS
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 384
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -368[rbp]
	mov	rdi, rax
	call	accept
	mov	DWORD PTR -372[rbp], eax
	mov	edx, DWORD PTR -372[rbp]
	lea	rax, -368[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	FCFS
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"885672.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	b_sort
	.syntax unified
	.arm
	.fpu softvfp
	.type	b_sort, %function
b_sort:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-52]
	b	.L2
.L6:
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L3
.L5:
	ldr	r2, [fp, #-48]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-56]
	add	r3, r3, r2
	ldr	r1, [r3, #12]
	ldr	r3, [fp, #-48]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-56]
	add	r3, r3, r2
	ldr	r3, [r3, #12]
	cmp	r1, r3
	ble	.L4
	ldr	r2, [fp, #-48]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-56]
	add	r3, r3, r2
	sub	ip, fp, #44
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	ldr	r3, [fp, #-48]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-56]
	add	r1, r3, r2
	ldr	r2, [fp, #-48]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-56]
	add	r3, r3, r2
	mov	ip, r3
	mov	lr, r1
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	ldr	r3, [fp, #-48]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-56]
	add	r3, r3, r2
	mov	lr, r3
	sub	ip, fp, #44
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldr	r3, [ip]
	str	r3, [lr]
.L4:
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L3:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-52]
	sub	r3, r2, r3
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	blt	.L5
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L2:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	blt	.L6
	nop
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC0
	.size	b_sort, .-b_sort
	.section	.rodata
	.align	2
.LC1:
	.ascii	"\012 Enter total no. of processes : \000"
	.align	2
.LC2:
	.ascii	"%d\000"
	.align	2
.LC3:
	.ascii	"\012 PROCESS [%d]\000"
	.align	2
.LC4:
	.ascii	" Enter process name : \000"
	.align	2
.LC5:
	.ascii	"%s\000"
	.align	2
.LC6:
	.ascii	" Enter burst time : \000"
	.align	2
.LC7:
	.ascii	" Enter arrival time : \000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	accept
	.syntax unified
	.arm
	.fpu softvfp
	.type	accept, %function
accept:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L15+4
	bl	printf
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L15+8
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L11
.L12:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L15+12
	bl	printf
	ldr	r0, .L15+16
	bl	printf
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L15+20
	bl	__isoc99_scanf
	ldr	r0, .L15+24
	bl	printf
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, r2
	add	r3, r3, #8
	mov	r1, r3
	ldr	r0, .L15+8
	bl	__isoc99_scanf
	ldr	r0, .L15+28
	bl	printf
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, r2
	add	r3, r3, #12
	mov	r1, r3
	ldr	r0, .L15+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L11:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L12
	ldr	r3, [fp, #-16]
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC8
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	accept, .-accept
	.section	.rodata
	.align	2
.LC9:
	.ascii	"\012\012 PROC.\011B.T.\011A.T.\000"
	.align	2
.LC10:
	.ascii	"\012 %s\011%d\011%d\000"
	.global	__aeabi_i2f
	.global	__aeabi_fdiv
	.align	2
.LC11:
	.ascii	"\012\012 GANTT CHART\012 \000"
	.align	2
.LC12:
	.ascii	"   %s   \000"
	.align	2
.LC13:
	.ascii	"\012 \000"
	.align	2
.LC14:
	.ascii	"0\011\000"
	.align	2
.LC15:
	.ascii	"%d      \000"
	.align	2
.LC16:
	.ascii	"\012\012 PROC.\011B.T.\011A.T.\011C.T\011W.T\011T.A"
	.ascii	".T\000"
	.align	2
.LC17:
	.ascii	"\012 %s\011%d\011%d\011%d\011%d\011%d\000"
	.global	__aeabi_f2d
	.align	2
.LC18:
	.ascii	"\012\012 Average waiting time = %0.2f\012 Average t"
	.ascii	"urn-around = %0.2f.\000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	FCFS
	.syntax unified
	.arm
	.fpu softvfp
	.type	FCFS, %function
FCFS:
	@ args = 0, pretend = 0, frame = 400
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #416
	str	r0, [fp, #-408]
	str	r1, [fp, #-412]
	ldr	r3, .L31
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-400]
	mov	r3, #0
	str	r3, [fp, #-396]
	mov	r3, #0
	str	r3, [fp, #-392]
	mov	r3, #0
	str	r3, [fp, #-384]	@ float
	mov	r3, #0
	str	r3, [fp, #-380]	@ float
	mov	r3, #0
	str	r3, [fp, #-388]
	b	.L18
.L19:
	ldr	r2, [fp, #-388]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-408]
	add	r1, r3, r2
	ldr	r2, [fp, #-388]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #364
	mov	ip, r3
	mov	lr, r1
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	ldr	r3, [fp, #-388]
	add	r3, r3, #1
	str	r3, [fp, #-388]
.L18:
	ldr	r2, [fp, #-388]
	ldr	r3, [fp, #-412]
	cmp	r2, r3
	blt	.L19
	sub	r3, fp, #376
	ldr	r1, [fp, #-412]
	mov	r0, r3
	bl	b_sort
	ldr	r0, .L31+4
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-388]
	b	.L20
.L21:
	sub	r1, fp, #376
	ldr	r2, [fp, #-388]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r1, r1, r3
	ldr	r2, [fp, #-388]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #356
	ldr	r0, [r3]
	ldr	r2, [fp, #-388]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #352
	ldr	r3, [r3]
	mov	r2, r0
	ldr	r0, .L31+8
	bl	printf
	ldr	r3, [fp, #-388]
	add	r3, r3, #1
	str	r3, [fp, #-388]
.L20:
	ldr	r2, [fp, #-388]
	ldr	r3, [fp, #-412]
	cmp	r2, r3
	blt	.L21
	mov	r3, #0
	str	r3, [fp, #-356]
	ldr	r3, [fp, #-356]
	str	r3, [fp, #-400]
	ldr	r2, [fp, #-368]
	ldr	r3, [fp, #-364]
	sub	r3, r2, r3
	str	r3, [fp, #-352]
	ldr	r3, [fp, #-352]
	str	r3, [fp, #-396]
	mov	r3, #1
	str	r3, [fp, #-388]
	b	.L22
.L23:
	ldr	r3, [fp, #-388]
	sub	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #356
	ldr	r1, [r3]
	ldr	r3, [fp, #-388]
	sub	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #352
	ldr	r3, [r3]
	add	r1, r1, r3
	ldr	r3, [fp, #-388]
	sub	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #344
	ldr	r3, [r3]
	add	r1, r1, r3
	ldr	r2, [fp, #-388]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #352
	ldr	r3, [r3]
	sub	r1, r1, r3
	ldr	r2, [fp, #-388]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #344
	str	r1, [r3]
	ldr	r2, [fp, #-388]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #344
	ldr	r1, [r3]
	ldr	r2, [fp, #-388]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #356
	ldr	r3, [r3]
	add	r1, r1, r3
	ldr	r2, [fp, #-388]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #340
	str	r1, [r3]
	ldr	r2, [fp, #-388]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #344
	ldr	r3, [r3]
	ldr	r2, [fp, #-400]
	add	r3, r2, r3
	str	r3, [fp, #-400]
	ldr	r2, [fp, #-388]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #340
	ldr	r3, [r3]
	ldr	r2, [fp, #-396]
	add	r3, r2, r3
	str	r3, [fp, #-396]
	ldr	r3, [fp, #-388]
	add	r3, r3, #1
	str	r3, [fp, #-388]
.L22:
	ldr	r2, [fp, #-388]
	ldr	r3, [fp, #-412]
	cmp	r2, r3
	blt	.L23
	ldr	r0, [fp, #-400]
	bl	__aeabi_i2f
	mov	r4, r0
	ldr	r0, [fp, #-412]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [fp, #-384]	@ float
	ldr	r0, [fp, #-396]
	bl	__aeabi_i2f
	mov	r4, r0
	ldr	r0, [fp, #-412]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [fp, #-380]	@ float
	ldr	r0, .L31+12
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-388]
	b	.L24
.L25:
	sub	r1, fp, #376
	ldr	r2, [fp, #-388]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r1, r3
	ldr	r0, .L31+16
	bl	printf
	ldr	r3, [fp, #-388]
	add	r3, r3, #1
	str	r3, [fp, #-388]
.L24:
	ldr	r2, [fp, #-388]
	ldr	r3, [fp, #-412]
	cmp	r2, r3
	blt	.L25
	ldr	r0, .L31+20
	bl	printf
	ldr	r0, .L31+24
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-388]
	b	.L26
.L27:
	ldr	r3, [fp, #-388]
	sub	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #356
	ldr	r3, [r3]
	ldr	r2, [fp, #-392]
	add	r3, r2, r3
	str	r3, [fp, #-392]
	ldr	r1, [fp, #-392]
	ldr	r0, .L31+28
	bl	printf
	ldr	r3, [fp, #-388]
	sub	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #332
	ldr	r2, [fp, #-392]
	str	r2, [r3]
	ldr	r3, [fp, #-388]
	add	r3, r3, #1
	str	r3, [fp, #-388]
.L26:
	ldr	r2, [fp, #-388]
	ldr	r3, [fp, #-412]
	cmp	r2, r3
	ble	.L27
	ldr	r0, .L31+32
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-388]
	b	.L28
.L29:
	sub	r1, fp, #376
	ldr	r2, [fp, #-388]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	ip, r1, r3
	ldr	r2, [fp, #-388]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #356
	ldr	lr, [r3]
	ldr	r2, [fp, #-388]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #352
	ldr	r4, [r3]
	ldr	r2, [fp, #-388]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #332
	ldr	r1, [r3]
	ldr	r2, [fp, #-388]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #344
	ldr	r0, [r3]
	ldr	r2, [fp, #-388]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #340
	ldr	r3, [r3]
	str	r3, [sp, #8]
	str	r0, [sp, #4]
	str	r1, [sp]
	mov	r3, r4
	mov	r2, lr
	mov	r1, ip
	ldr	r0, .L31+36
	bl	printf
	ldr	r3, [fp, #-388]
	add	r3, r3, #1
	str	r3, [fp, #-388]
.L28:
	ldr	r2, [fp, #-388]
	ldr	r3, [fp, #-412]
	cmp	r2, r3
	blt	.L29
	ldr	r0, [fp, #-384]	@ float
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-380]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r2, r4
	mov	r3, r5
	ldr	r0, .L31+40
	bl	printf
	nop
	ldr	r3, .L31
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L30
	bl	__stack_chk_fail
.L30:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC19
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.size	FCFS, .-FCFS
	.section	.rodata
	.align	2
.LC20:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 368
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #368
	ldr	r3, .L36
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #368
	mov	r0, r3
	bl	accept
	str	r0, [fp, #-372]
	sub	r3, fp, #368
	ldr	r1, [fp, #-372]
	mov	r0, r3
	bl	FCFS
	mov	r3, #0
	ldr	r2, .L36
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L35
	bl	__stack_chk_fail
.L35:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC20
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
