	.file	"196677.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Enter number of input elements(integer only): "
.LC1:
	.string	"%d"
.LC2:
	.string	"Enter %d integers:\n"
	.align 8
.LC3:
	.string	"\n-----------------------------------"
.LC4:
	.string	"Unsorted List: "
.LC5:
	.string	"%d\t"
	.align 8
.LC6:
	.string	"-----------------------------------"
	.align 8
.LC7:
	.string	"Sorted List(Descending order): "
.LC8:
	.string	"Execution Time: "
.LC10:
	.string	"%f secs.\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
	call	clock@PLT
	mov	QWORD PTR -432[rbp], rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -444[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -444[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -440[rbp], 0
	jmp	.L2
.L3:
	lea	rdx, -416[rbp]
	mov	eax, DWORD PTR -440[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -440[rbp], 1
.L2:
	mov	eax, DWORD PTR -444[rbp]
	cmp	DWORD PTR -440[rbp], eax
	jl	.L3
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	DWORD PTR -440[rbp], 0
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -440[rbp]
	cdqe
	mov	eax, DWORD PTR -416[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -440[rbp], 1
.L4:
	mov	eax, DWORD PTR -444[rbp]
	cmp	DWORD PTR -440[rbp], eax
	jl	.L5
	mov	edi, 10
	call	putchar@PLT
	mov	DWORD PTR -440[rbp], 0
	jmp	.L6
.L10:
	mov	eax, DWORD PTR -440[rbp]
	add	eax, 1
	mov	DWORD PTR -436[rbp], eax
	jmp	.L7
.L9:
	mov	eax, DWORD PTR -436[rbp]
	cdqe
	mov	edx, DWORD PTR -416[rbp+rax*4]
	mov	eax, DWORD PTR -440[rbp]
	cdqe
	mov	eax, DWORD PTR -416[rbp+rax*4]
	cmp	edx, eax
	jle	.L8
	mov	eax, DWORD PTR -440[rbp]
	cdqe
	mov	edx, DWORD PTR -416[rbp+rax*4]
	mov	eax, DWORD PTR -436[rbp]
	cdqe
	mov	eax, DWORD PTR -416[rbp+rax*4]
	add	edx, eax
	mov	eax, DWORD PTR -440[rbp]
	cdqe
	mov	DWORD PTR -416[rbp+rax*4], edx
	mov	eax, DWORD PTR -440[rbp]
	cdqe
	mov	edx, DWORD PTR -416[rbp+rax*4]
	mov	eax, DWORD PTR -436[rbp]
	cdqe
	mov	eax, DWORD PTR -416[rbp+rax*4]
	sub	edx, eax
	mov	eax, DWORD PTR -436[rbp]
	cdqe
	mov	DWORD PTR -416[rbp+rax*4], edx
	mov	eax, DWORD PTR -440[rbp]
	cdqe
	mov	edx, DWORD PTR -416[rbp+rax*4]
	mov	eax, DWORD PTR -436[rbp]
	cdqe
	mov	eax, DWORD PTR -416[rbp+rax*4]
	sub	edx, eax
	mov	eax, DWORD PTR -440[rbp]
	cdqe
	mov	DWORD PTR -416[rbp+rax*4], edx
.L8:
	add	DWORD PTR -436[rbp], 1
.L7:
	mov	eax, DWORD PTR -444[rbp]
	cmp	DWORD PTR -436[rbp], eax
	jl	.L9
	add	DWORD PTR -440[rbp], 1
.L6:
	mov	eax, DWORD PTR -444[rbp]
	cmp	DWORD PTR -440[rbp], eax
	jl	.L10
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	DWORD PTR -440[rbp], 0
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -440[rbp]
	cdqe
	mov	eax, DWORD PTR -416[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -440[rbp], 1
.L11:
	mov	eax, DWORD PTR -444[rbp]
	cmp	DWORD PTR -440[rbp], eax
	jl	.L12
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	call	clock@PLT
	sub	rax, QWORD PTR -432[rbp]
	mov	QWORD PTR -432[rbp], rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, QWORD PTR -432[rbp]
	movsd	xmm1, QWORD PTR .LC9[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -424[rbp], xmm0
	mov	rax, QWORD PTR -424[rbp]
	movq	xmm0, rax
	lea	rdi, .LC10[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC9:
	.long	0
	.long	1093567616
	.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	"196677.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter number of input elements(integer only): \000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"Enter %d integers:\012\000"
	.align	2
.LC3:
	.ascii	"\012-----------------------------------\000"
	.align	2
.LC4:
	.ascii	"Unsorted List: \000"
	.align	2
.LC5:
	.ascii	"%d\011\000"
	.align	2
.LC6:
	.ascii	"-----------------------------------\000"
	.align	2
.LC7:
	.ascii	"Sorted List(Descending order): \000"
	.align	2
.LC8:
	.ascii	"Execution Time: \000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.align	2
.LC9:
	.ascii	"%f secs.\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 = 432
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #432
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	clock
	str	r0, [fp, #-424]
	ldr	r0, .L15+4
	bl	printf
	sub	r3, fp, #436
	mov	r1, r3
	ldr	r0, .L15+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-436]
	mov	r1, r3
	ldr	r0, .L15+12
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-432]
	b	.L2
.L3:
	sub	r2, fp, #408
	ldr	r3, [fp, #-432]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L15+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-432]
	add	r3, r3, #1
	str	r3, [fp, #-432]
.L2:
	ldr	r3, [fp, #-436]
	ldr	r2, [fp, #-432]
	cmp	r2, r3
	blt	.L3
	ldr	r0, .L15+16
	bl	puts
	ldr	r0, .L15+20
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-432]
	b	.L4
.L5:
	ldr	r3, [fp, #-432]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-404]
	mov	r1, r3
	ldr	r0, .L15+24
	bl	printf
	ldr	r3, [fp, #-432]
	add	r3, r3, #1
	str	r3, [fp, #-432]
.L4:
	ldr	r3, [fp, #-436]
	ldr	r2, [fp, #-432]
	cmp	r2, r3
	blt	.L5
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	str	r3, [fp, #-432]
	b	.L6
.L10:
	ldr	r3, [fp, #-432]
	add	r3, r3, #1
	str	r3, [fp, #-428]
	b	.L7
.L9:
	ldr	r3, [fp, #-428]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-404]
	ldr	r3, [fp, #-432]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-404]
	cmp	r2, r3
	ble	.L8
	ldr	r3, [fp, #-432]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-404]
	ldr	r3, [fp, #-428]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-404]
	add	r2, r2, r3
	ldr	r3, [fp, #-432]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-404]
	ldr	r3, [fp, #-432]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-404]
	ldr	r3, [fp, #-428]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-404]
	sub	r2, r2, r3
	ldr	r3, [fp, #-428]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-404]
	ldr	r3, [fp, #-432]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-404]
	ldr	r3, [fp, #-428]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-404]
	sub	r2, r2, r3
	ldr	r3, [fp, #-432]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-404]
.L8:
	ldr	r3, [fp, #-428]
	add	r3, r3, #1
	str	r3, [fp, #-428]
.L7:
	ldr	r3, [fp, #-436]
	ldr	r2, [fp, #-428]
	cmp	r2, r3
	blt	.L9
	ldr	r3, [fp, #-432]
	add	r3, r3, #1
	str	r3, [fp, #-432]
.L6:
	ldr	r3, [fp, #-436]
	ldr	r2, [fp, #-432]
	cmp	r2, r3
	blt	.L10
	ldr	r0, .L15+28
	bl	puts
	ldr	r0, .L15+32
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-432]
	b	.L11
.L12:
	ldr	r3, [fp, #-432]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-404]
	mov	r1, r3
	ldr	r0, .L15+24
	bl	printf
	ldr	r3, [fp, #-432]
	add	r3, r3, #1
	str	r3, [fp, #-432]
.L11:
	ldr	r3, [fp, #-436]
	ldr	r2, [fp, #-432]
	cmp	r2, r3
	blt	.L12
	ldr	r0, .L15+16
	bl	puts
	ldr	r0, .L15+36
	bl	printf
	bl	clock
	mov	r2, r0
	ldr	r3, [fp, #-424]
	sub	r3, r2, r3
	str	r3, [fp, #-424]
	ldr	r0, [fp, #-424]
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L15+40
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-420]
	str	r3, [fp, #-416]
	sub	r3, fp, #420
	ldmia	r3, {r2-r3}
	ldr	r0, .L15+44
	bl	printf
	mov	r3, #0
	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	.LC10
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	1093567616
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
