	.file	"93887126.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"usage: ./mysort size order num num num..."
.LC1:
	.string	"size of list : %d\n"
.LC2:
	.string	"order : %d\n"
	.align 8
.LC3:
	.string	"usage :\n 1 -> Ascending\n2 -> Descending"
	.align 8
.LC4:
	.string	"Sorted list in Ascending order :"
.LC5:
	.string	"%d "
	.align 8
.LC6:
	.string	"Sorted list in Descending order :"
	.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, 224
	mov	DWORD PTR -212[rbp], edi
	mov	QWORD PTR -224[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -212[rbp], 3
	jg	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -224[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -188[rbp], eax
	mov	rax, QWORD PTR -224[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -184[rbp], eax
	mov	eax, DWORD PTR -188[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -184[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -184[rbp], 2
	jle	.L3
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	DWORD PTR -208[rbp], 0
	mov	DWORD PTR -204[rbp], 0
	mov	DWORD PTR -192[rbp], 3
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -192[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -224[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	edx, DWORD PTR -208[rbp]
	movsx	rdx, edx
	mov	DWORD PTR -176[rbp+rdx*4], eax
	add	DWORD PTR -208[rbp], 1
	add	DWORD PTR -192[rbp], 1
.L4:
	mov	eax, DWORD PTR -188[rbp]
	add	eax, 2
	cmp	DWORD PTR -192[rbp], eax
	jle	.L5
	mov	DWORD PTR -204[rbp], 0
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -204[rbp]
	cdqe
	mov	edx, DWORD PTR -176[rbp+rax*4]
	mov	eax, DWORD PTR -204[rbp]
	cdqe
	mov	DWORD PTR -96[rbp+rax*4], edx
	add	DWORD PTR -204[rbp], 1
.L6:
	mov	eax, DWORD PTR -204[rbp]
	cmp	eax, DWORD PTR -188[rbp]
	jl	.L7
	cmp	DWORD PTR -184[rbp], 1
	jne	.L8
	mov	DWORD PTR -200[rbp], 0
	jmp	.L9
.L13:
	mov	DWORD PTR -196[rbp], 0
	jmp	.L10
.L12:
	mov	eax, DWORD PTR -196[rbp]
	cdqe
	mov	edx, DWORD PTR -176[rbp+rax*4]
	mov	eax, DWORD PTR -196[rbp]
	add	eax, 1
	cdqe
	mov	eax, DWORD PTR -176[rbp+rax*4]
	cmp	edx, eax
	jle	.L11
	mov	eax, DWORD PTR -196[rbp]
	cdqe
	mov	eax, DWORD PTR -176[rbp+rax*4]
	mov	DWORD PTR -180[rbp], eax
	mov	eax, DWORD PTR -196[rbp]
	add	eax, 1
	cdqe
	mov	edx, DWORD PTR -176[rbp+rax*4]
	mov	eax, DWORD PTR -196[rbp]
	cdqe
	mov	DWORD PTR -176[rbp+rax*4], edx
	mov	eax, DWORD PTR -196[rbp]
	add	eax, 1
	cdqe
	mov	edx, DWORD PTR -180[rbp]
	mov	DWORD PTR -176[rbp+rax*4], edx
.L11:
	add	DWORD PTR -196[rbp], 1
.L10:
	mov	eax, DWORD PTR -188[rbp]
	sub	eax, DWORD PTR -200[rbp]
	sub	eax, 1
	cmp	DWORD PTR -196[rbp], eax
	jl	.L12
	add	DWORD PTR -200[rbp], 1
.L9:
	mov	eax, DWORD PTR -188[rbp]
	sub	eax, 1
	cmp	DWORD PTR -200[rbp], eax
	jl	.L13
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	DWORD PTR -200[rbp], 0
	jmp	.L14
.L15:
	mov	eax, DWORD PTR -200[rbp]
	cdqe
	mov	eax, DWORD PTR -176[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -200[rbp], 1
.L14:
	mov	eax, DWORD PTR -200[rbp]
	cmp	eax, DWORD PTR -188[rbp]
	jl	.L15
.L8:
	cmp	DWORD PTR -184[rbp], 2
	jne	.L16
	mov	DWORD PTR -200[rbp], 0
	jmp	.L17
.L21:
	mov	DWORD PTR -196[rbp], 0
	jmp	.L18
.L20:
	mov	eax, DWORD PTR -196[rbp]
	cdqe
	mov	edx, DWORD PTR -96[rbp+rax*4]
	mov	eax, DWORD PTR -196[rbp]
	add	eax, 1
	cdqe
	mov	eax, DWORD PTR -96[rbp+rax*4]
	cmp	edx, eax
	jge	.L19
	mov	eax, DWORD PTR -196[rbp]
	cdqe
	mov	eax, DWORD PTR -176[rbp+rax*4]
	mov	DWORD PTR -180[rbp], eax
	mov	eax, DWORD PTR -196[rbp]
	add	eax, 1
	cdqe
	mov	edx, DWORD PTR -176[rbp+rax*4]
	mov	eax, DWORD PTR -196[rbp]
	cdqe
	mov	DWORD PTR -176[rbp+rax*4], edx
	mov	eax, DWORD PTR -196[rbp]
	add	eax, 1
	cdqe
	mov	edx, DWORD PTR -180[rbp]
	mov	DWORD PTR -176[rbp+rax*4], edx
.L19:
	add	DWORD PTR -196[rbp], 1
.L18:
	mov	eax, DWORD PTR -188[rbp]
	sub	eax, DWORD PTR -200[rbp]
	sub	eax, 1
	cmp	DWORD PTR -196[rbp], eax
	jl	.L20
	add	DWORD PTR -200[rbp], 1
.L17:
	mov	eax, DWORD PTR -188[rbp]
	sub	eax, 1
	cmp	DWORD PTR -200[rbp], eax
	jl	.L21
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	DWORD PTR -200[rbp], 0
	jmp	.L22
.L23:
	mov	eax, DWORD PTR -200[rbp]
	cdqe
	mov	eax, DWORD PTR -176[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -200[rbp], 1
.L22:
	mov	eax, DWORD PTR -200[rbp]
	cmp	eax, DWORD PTR -188[rbp]
	jl	.L23
.L16:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	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	"93887126.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"usage: ./mysort size order num num num...\000"
	.align	2
.LC1:
	.ascii	"size of list : %d\012\000"
	.align	2
.LC2:
	.ascii	"order : %d\012\000"
	.align	2
.LC3:
	.ascii	"usage :\012 1 -> Ascending\0122 -> Descending\000"
	.align	2
.LC4:
	.ascii	"Sorted list in Ascending order :\000"
	.align	2
.LC5:
	.ascii	"%d \000"
	.align	2
.LC6:
	.ascii	"Sorted list in Descending order :\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 208
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #208
	str	r0, [fp, #-208]
	str	r1, [fp, #-212]
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-208]
	cmp	r3, #3
	bgt	.L2
	ldr	r0, .L26+4
	bl	puts
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-212]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-180]
	ldr	r3, [fp, #-212]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-176]
	ldr	r1, [fp, #-180]
	ldr	r0, .L26+8
	bl	printf
	ldr	r1, [fp, #-176]
	ldr	r0, .L26+12
	bl	printf
	ldr	r3, [fp, #-176]
	cmp	r3, #2
	ble	.L3
	ldr	r0, .L26+16
	bl	puts
	mov	r0, #1
	bl	exit
.L3:
	mov	r3, #0
	str	r3, [fp, #-200]
	mov	r3, #0
	str	r3, [fp, #-196]
	mov	r3, #3
	str	r3, [fp, #-184]
	b	.L4
.L5:
	ldr	r3, [fp, #-184]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-212]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r2, r0
	ldr	r3, [fp, #-200]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-164]
	ldr	r3, [fp, #-200]
	add	r3, r3, #1
	str	r3, [fp, #-200]
	ldr	r3, [fp, #-184]
	add	r3, r3, #1
	str	r3, [fp, #-184]
.L4:
	ldr	r3, [fp, #-180]
	add	r3, r3, #2
	ldr	r2, [fp, #-184]
	cmp	r2, r3
	ble	.L5
	mov	r3, #0
	str	r3, [fp, #-196]
	b	.L6
.L7:
	ldr	r3, [fp, #-196]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-164]
	ldr	r3, [fp, #-196]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-84]
	ldr	r3, [fp, #-196]
	add	r3, r3, #1
	str	r3, [fp, #-196]
.L6:
	ldr	r2, [fp, #-196]
	ldr	r3, [fp, #-180]
	cmp	r2, r3
	blt	.L7
	ldr	r3, [fp, #-176]
	cmp	r3, #1
	bne	.L8
	mov	r3, #0
	str	r3, [fp, #-192]
	b	.L9
.L13:
	mov	r3, #0
	str	r3, [fp, #-188]
	b	.L10
.L12:
	ldr	r3, [fp, #-188]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-164]
	ldr	r3, [fp, #-188]
	add	r3, r3, #1
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-164]
	cmp	r2, r3
	ble	.L11
	ldr	r3, [fp, #-188]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-164]
	str	r3, [fp, #-172]
	ldr	r3, [fp, #-188]
	add	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-164]
	ldr	r3, [fp, #-188]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-164]
	ldr	r3, [fp, #-188]
	add	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-172]
	str	r2, [r3, #-164]
.L11:
	ldr	r3, [fp, #-188]
	add	r3, r3, #1
	str	r3, [fp, #-188]
.L10:
	ldr	r2, [fp, #-180]
	ldr	r3, [fp, #-192]
	sub	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, [fp, #-188]
	cmp	r2, r3
	blt	.L12
	ldr	r3, [fp, #-192]
	add	r3, r3, #1
	str	r3, [fp, #-192]
.L9:
	ldr	r3, [fp, #-180]
	sub	r3, r3, #1
	ldr	r2, [fp, #-192]
	cmp	r2, r3
	blt	.L13
	ldr	r0, .L26+20
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-192]
	b	.L14
.L15:
	ldr	r3, [fp, #-192]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-164]
	mov	r1, r3
	ldr	r0, .L26+24
	bl	printf
	ldr	r3, [fp, #-192]
	add	r3, r3, #1
	str	r3, [fp, #-192]
.L14:
	ldr	r2, [fp, #-192]
	ldr	r3, [fp, #-180]
	cmp	r2, r3
	blt	.L15
.L8:
	ldr	r3, [fp, #-176]
	cmp	r3, #2
	bne	.L16
	mov	r3, #0
	str	r3, [fp, #-192]
	b	.L17
.L21:
	mov	r3, #0
	str	r3, [fp, #-188]
	b	.L18
.L20:
	ldr	r3, [fp, #-188]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-84]
	ldr	r3, [fp, #-188]
	add	r3, r3, #1
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-84]
	cmp	r2, r3
	bge	.L19
	ldr	r3, [fp, #-188]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-164]
	str	r3, [fp, #-172]
	ldr	r3, [fp, #-188]
	add	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-164]
	ldr	r3, [fp, #-188]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-164]
	ldr	r3, [fp, #-188]
	add	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-172]
	str	r2, [r3, #-164]
.L19:
	ldr	r3, [fp, #-188]
	add	r3, r3, #1
	str	r3, [fp, #-188]
.L18:
	ldr	r2, [fp, #-180]
	ldr	r3, [fp, #-192]
	sub	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, [fp, #-188]
	cmp	r2, r3
	blt	.L20
	ldr	r3, [fp, #-192]
	add	r3, r3, #1
	str	r3, [fp, #-192]
.L17:
	ldr	r3, [fp, #-180]
	sub	r3, r3, #1
	ldr	r2, [fp, #-192]
	cmp	r2, r3
	blt	.L21
	ldr	r0, .L26+28
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-192]
	b	.L22
.L23:
	ldr	r3, [fp, #-192]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-164]
	mov	r1, r3
	ldr	r0, .L26+24
	bl	printf
	ldr	r3, [fp, #-192]
	add	r3, r3, #1
	str	r3, [fp, #-192]
.L22:
	ldr	r2, [fp, #-192]
	ldr	r3, [fp, #-180]
	cmp	r2, r3
	blt	.L23
.L16:
	mov	r3, #0
	ldr	r2, .L26
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
