	.file	"599331.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"cls"
	.align 8
.LC1:
	.string	"\n====================================================================================================================================="
	.align 8
.LC2:
	.string	"\n\t\t\t    __  ___           __      __                   __   __  __ ___ __ __  __   __  ___"
	.align 8
.LC3:
	.string	"\n\t\t\t|_/|__)| | ||_/   /\\ / _  /\\ |__)|  | /\\ |     /| (__\\ |__)|__) | /  (_  /  \\ /__    /"
	.align 8
.LC4:
	.string	"\n\t\t\t| \\| \\ | | || \\  /--\\\\__)/--\\| \\ |/\\|/--\\|__    |  __/ |__)|__) | \\____) \\__/ \\__)  / "
	.text
	.globl	second
	.type	second, @function
second:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC0[rip]
	call	system@PLT
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	second, .-second
	.type	merge.1, @function
merge.1:
.LFB8:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 256
	mov	QWORD PTR -232[rbp], rdi
	mov	DWORD PTR -236[rbp], esi
	mov	DWORD PTR -240[rbp], edx
	mov	DWORD PTR -244[rbp], ecx
	mov	DWORD PTR -248[rbp], r8d
	mov	QWORD PTR -256[rbp], r10
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -236[rbp]
	mov	DWORD PTR -220[rbp], eax
	mov	eax, DWORD PTR -244[rbp]
	mov	DWORD PTR -216[rbp], eax
	mov	DWORD PTR -212[rbp], 0
	jmp	.L3
.L6:
	mov	eax, DWORD PTR -220[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -232[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -216[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -232[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jge	.L4
	mov	eax, DWORD PTR -220[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -220[rbp], edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -232[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -212[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -212[rbp], edx
	mov	edx, DWORD PTR [rcx]
	cdqe
	mov	DWORD PTR -208[rbp+rax*4], edx
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -216[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -216[rbp], edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -232[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -212[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -212[rbp], edx
	mov	edx, DWORD PTR [rcx]
	cdqe
	mov	DWORD PTR -208[rbp+rax*4], edx
.L3:
	mov	eax, DWORD PTR -220[rbp]
	cmp	eax, DWORD PTR -240[rbp]
	jg	.L7
	mov	eax, DWORD PTR -216[rbp]
	cmp	eax, DWORD PTR -248[rbp]
	jle	.L6
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -220[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -220[rbp], edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -232[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -212[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -212[rbp], edx
	mov	edx, DWORD PTR [rcx]
	cdqe
	mov	DWORD PTR -208[rbp+rax*4], edx
.L7:
	mov	eax, DWORD PTR -220[rbp]
	cmp	eax, DWORD PTR -240[rbp]
	jle	.L8
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -216[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -216[rbp], edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -232[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -212[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -212[rbp], edx
	mov	edx, DWORD PTR [rcx]
	cdqe
	mov	DWORD PTR -208[rbp+rax*4], edx
.L9:
	mov	eax, DWORD PTR -216[rbp]
	cmp	eax, DWORD PTR -248[rbp]
	jle	.L10
	mov	eax, DWORD PTR -236[rbp]
	mov	DWORD PTR -220[rbp], eax
	mov	DWORD PTR -216[rbp], 0
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -220[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -232[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -216[rbp]
	cdqe
	mov	eax, DWORD PTR -208[rbp+rax*4]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -220[rbp], 1
	add	DWORD PTR -216[rbp], 1
.L11:
	mov	eax, DWORD PTR -220[rbp]
	cmp	eax, DWORD PTR -248[rbp]
	jle	.L12
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	merge.1, .-merge.1
	.section	.rodata
	.align 8
.LC5:
	.string	"\n\n\t\t\t\t\tWELCOME TO MERGE SORT WINDOW."
.LC6:
	.string	"\nEnter size of array: "
.LC7:
	.string	"%d"
.LC8:
	.string	"\nEnter array elements:"
.LC9:
	.string	"\nSorted array is:"
.LC10:
	.string	" %d "
	.text
	.globl	msort
	.type	msort, @function
msort:
.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, 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, 16[rbp]
	mov	QWORD PTR -136[rbp], rax
	call	second
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -144[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	DWORD PTR -140[rbp], 0
	jmp	.L15
.L16:
	lea	rdx, -128[rbp]
	mov	eax, DWORD PTR -140[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -140[rbp], 1
.L15:
	mov	eax, DWORD PTR -144[rbp]
	cmp	DWORD PTR -140[rbp], eax
	jl	.L16
	mov	eax, DWORD PTR -144[rbp]
	lea	edx, -1[rax]
	lea	rax, -128[rbp]
	lea	rcx, -136[rbp]
	mov	r10, rcx
	mov	esi, 0
	mov	rdi, rax
	call	mergesort.0
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -140[rbp], 0
	jmp	.L17
.L19:
	mov	eax, DWORD PTR -140[rbp]
	cdqe
	mov	eax, DWORD PTR -128[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -144[rbp]
	sub	eax, 1
	cmp	DWORD PTR -140[rbp], eax
	jge	.L18
	mov	edi, 44
	call	putchar@PLT
.L18:
	add	DWORD PTR -140[rbp], 1
.L17:
	mov	eax, DWORD PTR -144[rbp]
	cmp	DWORD PTR -140[rbp], eax
	jl	.L19
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	msort, .-msort
	.type	mergesort.0, @function
mergesort.0:
.LFB9:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	DWORD PTR -48[rbp], edx
	mov	rbx, r10
	mov	QWORD PTR -56[rbp], r10
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -48[rbp]
	jge	.L23
	mov	edx, DWORD PTR -44[rbp]
	mov	eax, DWORD PTR -48[rbp]
	add	eax, edx
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -20[rbp], eax
	mov	edx, DWORD PTR -20[rbp]
	mov	ecx, DWORD PTR -44[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	r10, rbx
	mov	esi, ecx
	mov	rdi, rax
	call	mergesort.0
	mov	eax, DWORD PTR -20[rbp]
	lea	ecx, 1[rax]
	mov	edx, DWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	r10, rbx
	mov	esi, ecx
	mov	rdi, rax
	call	mergesort.0
	mov	eax, DWORD PTR -20[rbp]
	lea	ecx, 1[rax]
	mov	edi, DWORD PTR -48[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	esi, DWORD PTR -44[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	r10, rbx
	mov	r8d, edi
	mov	rdi, rax
	call	merge.1
.L23:
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	mergesort.0, .-mergesort.0
	.section	.rodata
	.align 8
.LC11:
	.string	"\n\n\t\t\t\t\tWELCOME TO INSERTION SORT WINDOW."
.LC12:
	.string	"\nEnter array elements:\n"
	.align 8
.LC13:
	.string	"\nSorted list in ascending order: "
	.text
	.globl	isort
	.type	isort, @function
isort:
.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, 4032
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	second
	lea	rdi, .LC11[rip]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -4032[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -4032[rbp]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -4028[rbp], 0
	jmp	.L25
.L26:
	lea	rdx, -4016[rbp]
	mov	eax, DWORD PTR -4028[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -4028[rbp], 1
.L25:
	mov	eax, DWORD PTR -4032[rbp]
	cmp	DWORD PTR -4028[rbp], eax
	jl	.L26
	mov	DWORD PTR -4028[rbp], 1
	jmp	.L27
.L31:
	mov	eax, DWORD PTR -4028[rbp]
	mov	DWORD PTR -4024[rbp], eax
	jmp	.L28
.L30:
	mov	eax, DWORD PTR -4024[rbp]
	cdqe
	mov	eax, DWORD PTR -4016[rbp+rax*4]
	mov	DWORD PTR -4020[rbp], eax
	mov	eax, DWORD PTR -4024[rbp]
	sub	eax, 1
	cdqe
	mov	edx, DWORD PTR -4016[rbp+rax*4]
	mov	eax, DWORD PTR -4024[rbp]
	cdqe
	mov	DWORD PTR -4016[rbp+rax*4], edx
	mov	eax, DWORD PTR -4024[rbp]
	sub	eax, 1
	cdqe
	mov	edx, DWORD PTR -4020[rbp]
	mov	DWORD PTR -4016[rbp+rax*4], edx
	sub	DWORD PTR -4024[rbp], 1
.L28:
	cmp	DWORD PTR -4024[rbp], 0
	jle	.L29
	mov	eax, DWORD PTR -4024[rbp]
	sub	eax, 1
	cdqe
	mov	edx, DWORD PTR -4016[rbp+rax*4]
	mov	eax, DWORD PTR -4024[rbp]
	cdqe
	mov	eax, DWORD PTR -4016[rbp+rax*4]
	cmp	edx, eax
	jg	.L30
.L29:
	add	DWORD PTR -4028[rbp], 1
.L27:
	mov	eax, DWORD PTR -4032[rbp]
	cmp	DWORD PTR -4028[rbp], eax
	jl	.L31
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -4028[rbp], 0
	jmp	.L32
.L34:
	mov	eax, DWORD PTR -4028[rbp]
	cdqe
	mov	eax, DWORD PTR -4016[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4032[rbp]
	sub	eax, 1
	cmp	DWORD PTR -4028[rbp], eax
	jge	.L33
	mov	edi, 44
	call	putchar@PLT
.L33:
	add	DWORD PTR -4028[rbp], 1
.L32:
	mov	eax, DWORD PTR -4032[rbp]
	cmp	DWORD PTR -4028[rbp], eax
	jl	.L34
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L35
	call	__stack_chk_fail@PLT
.L35:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	isort, .-isort
	.type	quicksort.2, @function
quicksort.2:
.LFB12:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	DWORD PTR -48[rbp], edx
	mov	rbx, r10
	mov	QWORD PTR -56[rbp], r10
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -48[rbp]
	jge	.L45
	mov	eax, DWORD PTR -44[rbp]
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -48[rbp]
	mov	DWORD PTR -32[rbp], eax
	jmp	.L38
.L41:
	add	DWORD PTR -28[rbp], 1
.L39:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jg	.L42
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -48[rbp]
	jl	.L41
	jmp	.L42
.L43:
	sub	DWORD PTR -32[rbp], 1
.L42:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jg	.L43
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jge	.L38
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -28[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -40[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR [rdx], eax
.L38:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jl	.L39
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -24[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -40[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -32[rbp]
	lea	edx, -1[rax]
	mov	ecx, DWORD PTR -44[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	r10, rbx
	mov	esi, ecx
	mov	rdi, rax
	call	quicksort.2
	mov	eax, DWORD PTR -32[rbp]
	lea	ecx, 1[rax]
	mov	edx, DWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	r10, rbx
	mov	esi, ecx
	mov	rdi, rax
	call	quicksort.2
.L45:
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	quicksort.2, .-quicksort.2
	.section	.rodata
	.align 8
.LC14:
	.string	"\n\n\t\t\t\t\tWELCOME TO QUICK SORT WINDOW."
.LC15:
	.string	"\nSorted elements: "
	.text
	.globl	Qsort
	.type	Qsort, @function
Qsort:
.LFB11:
	.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
	lea	rax, 16[rbp]
	mov	QWORD PTR -104[rbp], rax
	call	second
	lea	rdi, .LC14[rip]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -112[rbp]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -108[rbp], 0
	jmp	.L47
.L48:
	lea	rdx, -96[rbp]
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -108[rbp], 1
.L47:
	mov	eax, DWORD PTR -112[rbp]
	cmp	DWORD PTR -108[rbp], eax
	jl	.L48
	mov	eax, DWORD PTR -112[rbp]
	lea	edx, -1[rax]
	lea	rax, -96[rbp]
	lea	rcx, -104[rbp]
	mov	r10, rcx
	mov	esi, 0
	mov	rdi, rax
	call	quicksort.2
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -108[rbp], 0
	jmp	.L49
.L51:
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	mov	eax, DWORD PTR -96[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -112[rbp]
	sub	eax, 1
	cmp	DWORD PTR -108[rbp], eax
	jge	.L50
	mov	edi, 44
	call	putchar@PLT
.L50:
	add	DWORD PTR -108[rbp], 1
.L49:
	mov	eax, DWORD PTR -112[rbp]
	cmp	DWORD PTR -108[rbp], eax
	jl	.L51
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L52
	call	__stack_chk_fail@PLT
.L52:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	Qsort, .-Qsort
	.section	.rodata
	.align 8
.LC16:
	.string	"\n\n\t\t\t\t\tWELCOME TO SORTING METHODS WINDOW."
	.align 8
.LC17:
	.string	"\n\t\t\t\tWhich operation you want to perform?"
.LC18:
	.string	"\n\n\t\t\t\tMain Menu:"
	.align 8
.LC19:
	.string	"\n\t\t\t\t1) Insertion Sort\n\t\t\t\t2) Merge Sort\n\t\t\t\t3) Quick Sort\n\t\t\t\tPress \"0\" to EXIT\n"
.LC20:
	.string	"\n\t\t\t\tEnter your choice: "
.LC21:
	.string	"\n\t\t\t\t\t\tInvalid Input!"
	.text
	.globl	main
	.type	main, @function
main:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -12[rbp], 4
	call	second
	lea	rdi, .LC16[rip]
	call	puts@PLT
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L54
.L59:
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC19[rip]
	call	puts@PLT
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 1
	jne	.L55
	call	isort
	jmp	.L54
.L55:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 2
	jne	.L56
	call	msort
	jmp	.L54
.L56:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 3
	jne	.L57
	call	Qsort
	jmp	.L54
.L57:
	mov	eax, DWORD PTR -12[rbp]
	test	eax, eax
	jne	.L58
	mov	edi, 0
	call	exit@PLT
.L58:
	lea	rdi, .LC21[rip]
	call	puts@PLT
.L54:
	mov	eax, DWORD PTR -12[rbp]
	test	eax, eax
	jg	.L59
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L60
	call	__stack_chk_fail@PLT
.L60:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.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	"599331.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"cls\000"
	.align	2
.LC1:
	.ascii	"\012==============================================="
	.ascii	"==================================================="
	.ascii	"===================================\000"
	.align	2
.LC2:
	.ascii	"\012\011\011\011    __  ___           __      __   "
	.ascii	"                __   __  __ ___ __ __  __   __  ___"
	.ascii	"\000"
	.align	2
.LC3:
	.ascii	"\012\011\011\011|_/|__)| | ||_/   /\\ / _  /\\ |__)"
	.ascii	"|  | /\\ |     /| (__\\ |__)|__) | /  (_  /  \\ /__"
	.ascii	"    /\000"
	.align	2
.LC4:
	.ascii	"\012\011\011\011| \\| \\ | | || \\  /--\\\\__)/--\\"
	.ascii	"| \\ |/\\|/--\\|__    |  __/ |__)|__) | \\____) \\_"
	.ascii	"_/ \\__)  / \000"
	.text
	.align	2
	.global	second
	.syntax unified
	.arm
	.fpu softvfp
	.type	second, %function
second:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L2
	bl	system
	ldr	r0, .L2+4
	bl	printf
	ldr	r0, .L2+8
	bl	printf
	ldr	r0, .L2+12
	bl	printf
	ldr	r0, .L2+16
	bl	printf
	ldr	r0, .L2+4
	bl	puts
	nop
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	second, .-second
	.section	.rodata
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	merge.5126, %function
merge.5126:
	@ Nested: function declared inside another function.
	@ args = 4, pretend = 0, frame = 240
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #240
	str	r0, [fp, #-224]
	str	r1, [fp, #-228]
	str	r2, [fp, #-232]
	str	r3, [fp, #-236]
	str	ip, [fp, #-240]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-228]
	str	r3, [fp, #-220]
	ldr	r3, [fp, #-236]
	str	r3, [fp, #-216]
	mov	r3, #0
	str	r3, [fp, #-212]
	b	.L5
.L8:
	ldr	r3, [fp, #-220]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-224]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-216]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-224]
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L6
	ldr	r3, [fp, #-220]
	add	r2, r3, #1
	str	r2, [fp, #-220]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-224]
	add	r2, r2, r3
	ldr	r3, [fp, #-212]
	add	r1, r3, #1
	str	r1, [fp, #-212]
	ldr	r2, [r2]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-204]
	b	.L5
.L6:
	ldr	r3, [fp, #-216]
	add	r2, r3, #1
	str	r2, [fp, #-216]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-224]
	add	r2, r2, r3
	ldr	r3, [fp, #-212]
	add	r1, r3, #1
	str	r1, [fp, #-212]
	ldr	r2, [r2]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-204]
.L5:
	ldr	r2, [fp, #-220]
	ldr	r3, [fp, #-232]
	cmp	r2, r3
	bgt	.L9
	ldr	r2, [fp, #-216]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	ble	.L8
	b	.L9
.L10:
	ldr	r3, [fp, #-220]
	add	r2, r3, #1
	str	r2, [fp, #-220]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-224]
	add	r2, r2, r3
	ldr	r3, [fp, #-212]
	add	r1, r3, #1
	str	r1, [fp, #-212]
	ldr	r2, [r2]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-204]
.L9:
	ldr	r2, [fp, #-220]
	ldr	r3, [fp, #-232]
	cmp	r2, r3
	ble	.L10
	b	.L11
.L12:
	ldr	r3, [fp, #-216]
	add	r2, r3, #1
	str	r2, [fp, #-216]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-224]
	add	r2, r2, r3
	ldr	r3, [fp, #-212]
	add	r1, r3, #1
	str	r1, [fp, #-212]
	ldr	r2, [r2]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-204]
.L11:
	ldr	r2, [fp, #-216]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	ble	.L12
	ldr	r3, [fp, #-228]
	str	r3, [fp, #-220]
	mov	r3, #0
	str	r3, [fp, #-216]
	b	.L13
.L14:
	ldr	r3, [fp, #-220]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-224]
	add	r2, r2, r3
	ldr	r3, [fp, #-216]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-204]
	str	r3, [r2]
	ldr	r3, [fp, #-220]
	add	r3, r3, #1
	str	r3, [fp, #-220]
	ldr	r3, [fp, #-216]
	add	r3, r3, #1
	str	r3, [fp, #-216]
.L13:
	ldr	r2, [fp, #-220]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	ble	.L14
	nop
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC5
	.size	merge.5126, .-merge.5126
	.section	.rodata
	.align	2
.LC6:
	.ascii	"\012\012\011\011\011\011\011WELCOME TO MERGE SORT W"
	.ascii	"INDOW.\000"
	.align	2
.LC7:
	.ascii	"\012Enter size of array: \000"
	.align	2
.LC8:
	.ascii	"%d\000"
	.align	2
.LC9:
	.ascii	"\012Enter array elements:\000"
	.align	2
.LC10:
	.ascii	"\012Sorted array is:\000"
	.align	2
.LC11:
	.ascii	" %d \000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	msort
	.syntax unified
	.arm
	.fpu softvfp
	.type	msort, %function
msort:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #136
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	add	r3, fp, #4
	str	r3, [fp, #-136]
	bl	second
	ldr	r0, .L25+4
	bl	puts
	ldr	r0, .L25+8
	bl	printf
	sub	r3, fp, #140
	mov	r1, r3
	ldr	r0, .L25+12
	bl	__isoc99_scanf
	ldr	r0, .L25+16
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-132]
	b	.L19
.L20:
	sub	r2, fp, #128
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L25+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-132]
	add	r3, r3, #1
	str	r3, [fp, #-132]
.L19:
	ldr	r3, [fp, #-140]
	ldr	r2, [fp, #-132]
	cmp	r2, r3
	blt	.L20
	ldr	r3, [fp, #-140]
	sub	r2, r3, #1
	sub	r3, fp, #128
	sub	r1, fp, #136
	mov	ip, r1
	mov	r1, #0
	mov	r0, r3
	bl	mergesort.5147
	ldr	r0, .L25+20
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-132]
	b	.L21
.L23:
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-124]
	mov	r1, r3
	ldr	r0, .L25+24
	bl	printf
	ldr	r3, [fp, #-140]
	sub	r3, r3, #1
	ldr	r2, [fp, #-132]
	cmp	r2, r3
	bge	.L22
	mov	r0, #44
	bl	putchar
.L22:
	ldr	r3, [fp, #-132]
	add	r3, r3, #1
	str	r3, [fp, #-132]
.L21:
	ldr	r3, [fp, #-140]
	ldr	r2, [fp, #-132]
	cmp	r2, r3
	blt	.L23
	nop
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC12
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	msort, .-msort
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mergesort.5147, %function
mergesort.5147:
	@ Nested: function declared inside another function.
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	mov	r4, ip
	str	ip, [fp, #-36]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	bge	.L29
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-16]
	mov	ip, r4
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	mergesort.5147
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	mov	ip, r4
	ldr	r2, [fp, #-32]
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	mergesort.5147
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	ldr	r3, [fp, #-32]
	str	r3, [sp]
	mov	ip, r4
	mov	r3, r2
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	merge.5126
.L29:
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	mergesort.5147, .-mergesort.5147
	.section	.rodata
	.align	2
.LC13:
	.ascii	"\012\012\011\011\011\011\011WELCOME TO INSERTION SO"
	.ascii	"RT WINDOW.\000"
	.align	2
.LC14:
	.ascii	"\012Enter array elements:\012\000"
	.align	2
.LC15:
	.ascii	"\012Sorted list in ascending order: \000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	isort
	.syntax unified
	.arm
	.fpu softvfp
	.type	isort, %function
isort:
	@ args = 0, pretend = 0, frame = 4024
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #4016
	sub	sp, sp, #8
	ldr	r3, .L42
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	second
	ldr	r0, .L42+4
	bl	puts
	ldr	r0, .L42+8
	bl	printf
	sub	r3, fp, #4016
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L42+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-4024]
	mov	r1, r3
	ldr	r0, .L42+16
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-4020]
	b	.L31
.L32:
	sub	r3, fp, #4000
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-4020]
	lsl	r2, r2, #2
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L42+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-4020]
	add	r3, r3, #1
	str	r3, [fp, #-4020]
.L31:
	ldr	r3, [fp, #-4024]
	ldr	r2, [fp, #-4020]
	cmp	r2, r3
	blt	.L32
	mov	r3, #1
	str	r3, [fp, #-4020]
	b	.L33
.L37:
	ldr	r3, [fp, #-4020]
	str	r3, [fp, #-4016]
	b	.L34
.L36:
	ldr	r3, [fp, #-4016]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-4004]
	str	r3, [fp, #-4012]
	ldr	r3, [fp, #-4016]
	sub	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-4004]
	ldr	r3, [fp, #-4016]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-4004]
	ldr	r3, [fp, #-4016]
	sub	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-4012]
	str	r2, [r3, #-4004]
	ldr	r3, [fp, #-4016]
	sub	r3, r3, #1
	str	r3, [fp, #-4016]
.L34:
	ldr	r3, [fp, #-4016]
	cmp	r3, #0
	ble	.L35
	ldr	r3, [fp, #-4016]
	sub	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-4004]
	ldr	r3, [fp, #-4016]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-4004]
	cmp	r2, r3
	bgt	.L36
.L35:
	ldr	r3, [fp, #-4020]
	add	r3, r3, #1
	str	r3, [fp, #-4020]
.L33:
	ldr	r3, [fp, #-4024]
	ldr	r2, [fp, #-4020]
	cmp	r2, r3
	blt	.L37
	ldr	r0, .L42+20
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-4020]
	b	.L38
.L40:
	ldr	r3, [fp, #-4020]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-4004]
	mov	r1, r3
	ldr	r0, .L42+24
	bl	printf
	ldr	r3, [fp, #-4024]
	sub	r3, r3, #1
	ldr	r2, [fp, #-4020]
	cmp	r2, r3
	bge	.L39
	mov	r0, #44
	bl	putchar
.L39:
	ldr	r3, [fp, #-4020]
	add	r3, r3, #1
	str	r3, [fp, #-4020]
.L38:
	ldr	r3, [fp, #-4024]
	ldr	r2, [fp, #-4020]
	cmp	r2, r3
	blt	.L40
	nop
	ldr	r3, .L42
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L41
	bl	__stack_chk_fail
.L41:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L43:
	.align	2
.L42:
	.word	.LC16
	.word	.LC13
	.word	.LC7
	.word	.LC8
	.word	.LC14
	.word	.LC15
	.word	.LC11
	.size	isort, .-isort
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	quicksort.5185, %function
quicksort.5185:
	@ Nested: function declared inside another function.
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	mov	r4, ip
	str	ip, [fp, #-44]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	bge	.L53
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-28]
	b	.L46
.L49:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L47:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-32]
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r2, r3
	bgt	.L50
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L49
	b	.L50
.L51:
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	str	r3, [fp, #-28]
.L50:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-32]
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r2, r3
	bgt	.L51
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bge	.L46
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-32]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	str	r2, [r3]
.L46:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L47
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r2, r2, r3
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-32]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	mov	ip, r4
	mov	r2, r3
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	quicksort.5185
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	mov	ip, r4
	ldr	r2, [fp, #-40]
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	quicksort.5185
.L53:
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	quicksort.5185, .-quicksort.5185
	.section	.rodata
	.align	2
.LC17:
	.ascii	"\012\012\011\011\011\011\011WELCOME TO QUICK SORT W"
	.ascii	"INDOW.\000"
	.align	2
.LC18:
	.ascii	"\012Sorted elements: \000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	Qsort
	.syntax unified
	.arm
	.fpu softvfp
	.type	Qsort, %function
Qsort:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #96
	ldr	r3, .L61
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	add	r3, fp, #4
	str	r3, [fp, #-96]
	bl	second
	ldr	r0, .L61+4
	bl	puts
	ldr	r0, .L61+8
	bl	printf
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, .L61+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-100]
	mov	r1, r3
	ldr	r0, .L61+16
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-92]
	b	.L55
.L56:
	sub	r2, fp, #88
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L61+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-92]
	add	r3, r3, #1
	str	r3, [fp, #-92]
.L55:
	ldr	r3, [fp, #-100]
	ldr	r2, [fp, #-92]
	cmp	r2, r3
	blt	.L56
	ldr	r3, [fp, #-100]
	sub	r2, r3, #1
	sub	r3, fp, #88
	sub	r1, fp, #96
	mov	ip, r1
	mov	r1, #0
	mov	r0, r3
	bl	quicksort.5185
	ldr	r0, .L61+20
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-92]
	b	.L57
.L59:
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-84]
	mov	r1, r3
	ldr	r0, .L61+24
	bl	printf
	ldr	r3, [fp, #-100]
	sub	r3, r3, #1
	ldr	r2, [fp, #-92]
	cmp	r2, r3
	bge	.L58
	mov	r0, #44
	bl	putchar
.L58:
	ldr	r3, [fp, #-92]
	add	r3, r3, #1
	str	r3, [fp, #-92]
.L57:
	ldr	r3, [fp, #-100]
	ldr	r2, [fp, #-92]
	cmp	r2, r3
	blt	.L59
	nop
	ldr	r3, .L61
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L60
	bl	__stack_chk_fail
.L60:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L62:
	.align	2
.L61:
	.word	.LC19
	.word	.LC17
	.word	.LC7
	.word	.LC8
	.word	.LC14
	.word	.LC18
	.word	.LC11
	.size	Qsort, .-Qsort
	.section	.rodata
	.align	2
.LC20:
	.ascii	"\012\012\011\011\011\011\011WELCOME TO SORTING METH"
	.ascii	"ODS WINDOW.\000"
	.align	2
.LC21:
	.ascii	"\012\011\011\011\011Which operation you want to per"
	.ascii	"form?\000"
	.align	2
.LC22:
	.ascii	"\012\012\011\011\011\011Main Menu:\000"
	.align	2
.LC23:
	.ascii	"\012\011\011\011\0111) Insertion Sort\012\011\011\011"
	.ascii	"\0112) Merge Sort\012\011\011\011\0113) Quick Sort\012"
	.ascii	"\011\011\011\011Press \"0\" to EXIT\012\000"
	.align	2
.LC24:
	.ascii	"\012\011\011\011\011Enter your choice: \000"
	.align	2
.LC25:
	.ascii	"\012\011\011\011\011\011\011Invalid Input!\000"
	.align	2
.LC26:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L71
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #4
	str	r3, [fp, #-12]
	bl	second
	ldr	r0, .L71+4
	bl	puts
	ldr	r0, .L71+8
	bl	printf
	b	.L64
.L69:
	ldr	r0, .L71+12
	bl	printf
	ldr	r0, .L71+16
	bl	puts
	ldr	r0, .L71+20
	bl	printf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L71+24
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	bne	.L65
	bl	isort
	b	.L64
.L65:
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	bne	.L66
	bl	msort
	b	.L64
.L66:
	ldr	r3, [fp, #-12]
	cmp	r3, #3
	bne	.L67
	bl	Qsort
	b	.L64
.L67:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L68
	mov	r0, #0
	bl	exit
.L68:
	ldr	r0, .L71+28
	bl	puts
.L64:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bgt	.L69
	nop
	ldr	r3, .L71
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L70
	bl	__stack_chk_fail
.L70:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L72:
	.align	2
.L71:
	.word	.LC26
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC8
	.word	.LC25
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
