	.file	"385571.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC1:
	.string	"enter the number of processes : "
.LC2:
	.string	"%d"
	.align 8
.LC3:
	.string	"Assign the process and burst time"
	.align 8
.LC4:
	.string	"the burst time for process %d = "
	.align 8
.LC5:
	.string	"Sorted list in ascending order:"
.LC6:
	.string	"program with burst time %d\n"
	.align 8
.LC7:
	.string	"waiting time for process %d = %d \n"
	.align 8
.LC8:
	.string	"turnout time for process %d = %d \n"
	.align 8
.LC9:
	.string	"program of burst time %d %d %d\n"
	.align 8
.LC10:
	.string	"the average of waiting time is %f and turnout time is %f \n"
	.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, 288
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	pxor	xmm0, xmm0
	movss	DWORD PTR -276[rbp], xmm0
	pxor	xmm0, xmm0
	movss	DWORD PTR -272[rbp], xmm0
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -288[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	DWORD PTR -284[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -284[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdx, -176[rbp]
	mov	eax, DWORD PTR -284[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -284[rbp], 1
.L2:
	mov	eax, DWORD PTR -288[rbp]
	cmp	DWORD PTR -284[rbp], eax
	jl	.L3
	mov	DWORD PTR -284[rbp], 1
	jmp	.L4
.L8:
	mov	eax, DWORD PTR -284[rbp]
	mov	DWORD PTR -280[rbp], eax
	jmp	.L5
.L7:
	mov	eax, DWORD PTR -280[rbp]
	cdqe
	mov	eax, DWORD PTR -176[rbp+rax*4]
	mov	DWORD PTR -260[rbp], eax
	mov	eax, DWORD PTR -280[rbp]
	sub	eax, 1
	cdqe
	mov	edx, DWORD PTR -176[rbp+rax*4]
	mov	eax, DWORD PTR -280[rbp]
	cdqe
	mov	DWORD PTR -176[rbp+rax*4], edx
	mov	eax, DWORD PTR -280[rbp]
	sub	eax, 1
	cdqe
	mov	edx, DWORD PTR -260[rbp]
	mov	DWORD PTR -176[rbp+rax*4], edx
	sub	DWORD PTR -280[rbp], 1
.L5:
	cmp	DWORD PTR -280[rbp], 0
	jle	.L6
	mov	eax, DWORD PTR -280[rbp]
	sub	eax, 1
	cdqe
	mov	edx, DWORD PTR -176[rbp+rax*4]
	mov	eax, DWORD PTR -280[rbp]
	cdqe
	mov	eax, DWORD PTR -176[rbp+rax*4]
	cmp	edx, eax
	jg	.L7
.L6:
	add	DWORD PTR -284[rbp], 1
.L4:
	mov	eax, DWORD PTR -288[rbp]
	cmp	DWORD PTR -284[rbp], eax
	jl	.L8
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	DWORD PTR -284[rbp], 0
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -284[rbp]
	cdqe
	mov	eax, DWORD PTR -176[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -284[rbp], 1
.L9:
	mov	eax, DWORD PTR -288[rbp]
	cmp	DWORD PTR -284[rbp], eax
	jl	.L10
	mov	DWORD PTR -260[rbp], 0
	mov	DWORD PTR -180[rbp], 0
	mov	DWORD PTR -256[rbp], 0
	mov	eax, DWORD PTR -176[rbp]
	mov	DWORD PTR -96[rbp], eax
	mov	DWORD PTR -284[rbp], 0
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -284[rbp]
	sub	eax, 1
	cdqe
	mov	edx, DWORD PTR -256[rbp+rax*4]
	mov	eax, DWORD PTR -284[rbp]
	sub	eax, 1
	cdqe
	mov	eax, DWORD PTR -176[rbp+rax*4]
	add	edx, eax
	mov	eax, DWORD PTR -284[rbp]
	cdqe
	mov	DWORD PTR -256[rbp+rax*4], edx
	mov	eax, DWORD PTR -284[rbp]
	cdqe
	mov	edx, DWORD PTR -256[rbp+rax*4]
	mov	eax, DWORD PTR -284[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -284[rbp]
	cdqe
	mov	edx, DWORD PTR -256[rbp+rax*4]
	mov	eax, DWORD PTR -284[rbp]
	cdqe
	mov	eax, DWORD PTR -176[rbp+rax*4]
	add	edx, eax
	mov	eax, DWORD PTR -284[rbp]
	cdqe
	mov	DWORD PTR -96[rbp+rax*4], edx
	mov	eax, DWORD PTR -284[rbp]
	cdqe
	mov	edx, DWORD PTR -96[rbp+rax*4]
	mov	eax, DWORD PTR -284[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -284[rbp], 1
.L11:
	mov	eax, DWORD PTR -288[rbp]
	cmp	DWORD PTR -284[rbp], eax
	jl	.L12
	mov	DWORD PTR -284[rbp], 0
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -284[rbp]
	cdqe
	mov	eax, DWORD PTR -256[rbp+rax*4]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	movss	xmm1, DWORD PTR -276[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -276[rbp], xmm0
	mov	eax, DWORD PTR -284[rbp]
	cdqe
	mov	eax, DWORD PTR -96[rbp+rax*4]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	movss	xmm1, DWORD PTR -272[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -272[rbp], xmm0
	add	DWORD PTR -284[rbp], 1
.L13:
	mov	eax, DWORD PTR -288[rbp]
	cmp	DWORD PTR -284[rbp], eax
	jl	.L14
	mov	eax, DWORD PTR -288[rbp]
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, eax
	movss	xmm0, DWORD PTR -276[rbp]
	divss	xmm0, xmm1
	movss	DWORD PTR -268[rbp], xmm0
	mov	eax, DWORD PTR -288[rbp]
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, eax
	movss	xmm0, DWORD PTR -272[rbp]
	divss	xmm0, xmm1
	movss	DWORD PTR -264[rbp], xmm0
	mov	DWORD PTR -284[rbp], 0
	jmp	.L15
.L16:
	mov	eax, DWORD PTR -284[rbp]
	cdqe
	mov	ecx, DWORD PTR -96[rbp+rax*4]
	mov	eax, DWORD PTR -284[rbp]
	cdqe
	mov	edx, DWORD PTR -256[rbp+rax*4]
	mov	eax, DWORD PTR -284[rbp]
	cdqe
	mov	eax, DWORD PTR -176[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -284[rbp], 1
.L15:
	mov	eax, DWORD PTR -288[rbp]
	cmp	DWORD PTR -284[rbp], eax
	jl	.L16
	pxor	xmm0, xmm0
	cvtss2sd	xmm0, DWORD PTR -264[rbp]
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, DWORD PTR -268[rbp]
	movq	rax, xmm2
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC10[rip]
	mov	eax, 2
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"385571.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"enter the number of processes : \000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"Assign the process and burst time\000"
	.align	2
.LC3:
	.ascii	"the burst time for process %d = \000"
	.align	2
.LC4:
	.ascii	"Sorted list in ascending order:\000"
	.align	2
.LC5:
	.ascii	"program with burst time %d\012\000"
	.align	2
.LC6:
	.ascii	"waiting time for process %d = %d \012\000"
	.align	2
.LC7:
	.ascii	"turnout time for process %d = %d \012\000"
	.global	__aeabi_i2f
	.global	__aeabi_fadd
	.global	__aeabi_fdiv
	.align	2
.LC8:
	.ascii	"program of burst time %d %d %d\012\000"
	.global	__aeabi_f2d
	.align	2
.LC9:
	.ascii	"the average of waiting time is %f and turnout time "
	.ascii	"is %f \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 = 280
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #288
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-276]	@ float
	mov	r3, #0
	str	r3, [fp, #-272]	@ float
	ldr	r0, .L19+4
	bl	printf
	sub	r3, fp, #288
	mov	r1, r3
	ldr	r0, .L19+8
	bl	__isoc99_scanf
	ldr	r0, .L19+12
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-284]
	b	.L2
.L3:
	ldr	r1, [fp, #-284]
	ldr	r0, .L19+16
	bl	printf
	sub	r2, fp, #176
	ldr	r3, [fp, #-284]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L19+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-284]
	add	r3, r3, #1
	str	r3, [fp, #-284]
.L2:
	ldr	r3, [fp, #-288]
	ldr	r2, [fp, #-284]
	cmp	r2, r3
	blt	.L3
	mov	r3, #1
	str	r3, [fp, #-284]
	b	.L4
.L8:
	ldr	r3, [fp, #-284]
	str	r3, [fp, #-280]
	b	.L5
.L7:
	ldr	r3, [fp, #-280]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-164]
	str	r3, [fp, #-260]
	ldr	r3, [fp, #-280]
	sub	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [r3, #-164]
	ldr	r3, [fp, #-280]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-164]
	ldr	r3, [fp, #-280]
	sub	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [fp, #-260]
	str	r2, [r3, #-164]
	ldr	r3, [fp, #-280]
	sub	r3, r3, #1
	str	r3, [fp, #-280]
.L5:
	ldr	r3, [fp, #-280]
	cmp	r3, #0
	ble	.L6
	ldr	r3, [fp, #-280]
	sub	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [r3, #-164]
	ldr	r3, [fp, #-280]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r3, [r3, #-164]
	cmp	r2, r3
	bgt	.L7
.L6:
	ldr	r3, [fp, #-284]
	add	r3, r3, #1
	str	r3, [fp, #-284]
.L4:
	ldr	r3, [fp, #-288]
	ldr	r2, [fp, #-284]
	cmp	r2, r3
	blt	.L8
	ldr	r0, .L19+20
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-284]
	b	.L9
.L10:
	ldr	r3, [fp, #-284]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-164]
	mov	r1, r3
	ldr	r0, .L19+24
	bl	printf
	ldr	r3, [fp, #-284]
	add	r3, r3, #1
	str	r3, [fp, #-284]
.L9:
	ldr	r3, [fp, #-288]
	ldr	r2, [fp, #-284]
	cmp	r2, r3
	blt	.L10
	mov	r3, #0
	str	r3, [fp, #-260]
	mov	r3, #0
	str	r3, [fp, #-180]
	mov	r3, #0
	str	r3, [fp, #-256]
	ldr	r3, [fp, #-176]
	str	r3, [fp, #-96]
	mov	r3, #0
	str	r3, [fp, #-284]
	b	.L11
.L12:
	ldr	r3, [fp, #-284]
	sub	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [r3, #-244]
	ldr	r3, [fp, #-284]
	sub	r3, r3, #1
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r3, [r3, #-164]
	add	r2, r2, r3
	ldr	r3, [fp, #-284]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-244]
	ldr	r3, [fp, #-284]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-244]
	mov	r2, r3
	ldr	r1, [fp, #-284]
	ldr	r0, .L19+28
	bl	printf
	ldr	r3, [fp, #-284]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [r3, #-244]
	ldr	r3, [fp, #-284]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r3, [r3, #-164]
	add	r2, r2, r3
	ldr	r3, [fp, #-284]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-84]
	ldr	r3, [fp, #-284]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-84]
	mov	r2, r3
	ldr	r1, [fp, #-284]
	ldr	r0, .L19+32
	bl	printf
	ldr	r3, [fp, #-284]
	add	r3, r3, #1
	str	r3, [fp, #-284]
.L11:
	ldr	r3, [fp, #-288]
	ldr	r2, [fp, #-284]
	cmp	r2, r3
	blt	.L12
	mov	r3, #0
	str	r3, [fp, #-284]
	b	.L13
.L14:
	ldr	r3, [fp, #-284]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-244]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-276]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-276]	@ float
	ldr	r3, [fp, #-284]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-84]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-272]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-272]	@ float
	ldr	r3, [fp, #-284]
	add	r3, r3, #1
	str	r3, [fp, #-284]
.L13:
	ldr	r3, [fp, #-288]
	ldr	r2, [fp, #-284]
	cmp	r2, r3
	blt	.L14
	ldr	r3, [fp, #-288]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-276]	@ float
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [fp, #-268]	@ float
	ldr	r3, [fp, #-288]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-272]	@ float
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [fp, #-264]	@ float
	mov	r3, #0
	str	r3, [fp, #-284]
	b	.L15
.L16:
	ldr	r3, [fp, #-284]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r1, [r3, #-164]
	ldr	r3, [fp, #-284]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [r3, #-244]
	ldr	r3, [fp, #-284]
	lsl	r3, r3, #2
	sub	r0, fp, #12
	add	r3, r0, r3
	ldr	r3, [r3, #-84]
	ldr	r0, .L19+36
	bl	printf
	ldr	r3, [fp, #-284]
	add	r3, r3, #1
	str	r3, [fp, #-284]
.L15:
	ldr	r3, [fp, #-288]
	ldr	r2, [fp, #-284]
	cmp	r2, r3
	blt	.L16
	ldr	r0, [fp, #-268]	@ float
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-264]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r2, r4
	mov	r3, r5
	ldr	r0, .L19+40
	bl	printf
	mov	r3, #0
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L20:
	.align	2
.L19:
	.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
