	.file	"1003640.c"
	.intel_syntax noprefix
	.text
	.globl	A
	.bss
	.align 32
	.type	A, @object
	.size	A, 88
A:
	.zero	88
	.globl	L
	.align 32
	.type	L, @object
	.size	L, 88
L:
	.zero	88
	.globl	R
	.align 32
	.type	R, @object
	.size	R, 88
R:
	.zero	88
	.globl	i
	.align 8
	.type	i, @object
	.size	i, 8
i:
	.zero	8
	.globl	j
	.align 8
	.type	j, @object
	.size	j, 8
j:
	.zero	8
	.globl	k
	.align 8
	.type	k, @object
	.size	k, 8
k:
	.zero	8
	.globl	n1
	.align 8
	.type	n1, @object
	.size	n1, 8
n1:
	.zero	8
	.globl	n2
	.align 8
	.type	n2, @object
	.size	n2, 8
n2:
	.zero	8
	.globl	first
	.data
	.align 8
	.type	first, @object
	.size	first, 8
first:
	.quad	1
	.globl	last
	.align 8
	.type	last, @object
	.size	last, 8
last:
	.quad	10
	.section	.rodata
	.align 8
.LC0:
	.string	"Enter your array to peform Merge sort"
.LC1:
	.string	"%li"
	.align 8
.LC2:
	.string	"\nArray after performing Merge sort is"
.LC3:
	.string	"\t%li"
	.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
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	QWORD PTR i[rip], 1
	jmp	.L2
.L3:
	mov	rax, QWORD PTR i[rip]
	lea	rdx, 0[0+rax*8]
	lea	rax, A[rip]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rax, QWORD PTR i[rip]
	add	rax, 1
	mov	QWORD PTR i[rip], rax
.L2:
	mov	rax, QWORD PTR i[rip]
	cmp	rax, 10
	jle	.L3
	mov	rdx, QWORD PTR last[rip]
	mov	rax, QWORD PTR first[rip]
	mov	rsi, rax
	lea	rdi, A[rip]
	call	merge_sort
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	QWORD PTR i[rip], 1
	jmp	.L4
.L5:
	mov	rax, QWORD PTR i[rip]
	lea	rdx, 0[0+rax*8]
	lea	rax, A[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR i[rip]
	add	rax, 1
	mov	QWORD PTR i[rip], rax
.L4:
	mov	rax, QWORD PTR i[rip]
	cmp	rax, 10
	jle	.L5
	mov	edi, 10
	call	putchar@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	merge
	.type	merge, @function
merge:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	QWORD PTR -32[rbp], rcx
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR -16[rbp]
	add	rax, 1
	mov	QWORD PTR n1[rip], rax
	mov	rax, QWORD PTR -32[rbp]
	sub	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR n2[rip], rax
	mov	QWORD PTR i[rip], 1
	jmp	.L7
.L8:
	mov	rdx, QWORD PTR i[rip]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR i[rip]
	mov	rax, QWORD PTR [rax]
	lea	rcx, 0[0+rdx*8]
	lea	rdx, L[rip]
	mov	QWORD PTR [rcx+rdx], rax
	mov	rax, QWORD PTR i[rip]
	add	rax, 1
	mov	QWORD PTR i[rip], rax
.L7:
	mov	rdx, QWORD PTR i[rip]
	mov	rax, QWORD PTR n1[rip]
	cmp	rdx, rax
	jle	.L8
	mov	QWORD PTR j[rip], 1
	jmp	.L9
.L10:
	mov	rdx, QWORD PTR j[rip]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR j[rip]
	mov	rax, QWORD PTR [rax]
	lea	rcx, 0[0+rdx*8]
	lea	rdx, R[rip]
	mov	QWORD PTR [rcx+rdx], rax
	mov	rax, QWORD PTR j[rip]
	add	rax, 1
	mov	QWORD PTR j[rip], rax
.L9:
	mov	rdx, QWORD PTR j[rip]
	mov	rax, QWORD PTR n2[rip]
	cmp	rdx, rax
	jle	.L10
	mov	rax, QWORD PTR n1[rip]
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	lea	rax, L[rip]
	movabs	rsi, 9223372036854775807
	mov	QWORD PTR [rdx+rax], rsi
	mov	rax, QWORD PTR n2[rip]
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	lea	rax, R[rip]
	mov	QWORD PTR [rdx+rax], rsi
	mov	QWORD PTR i[rip], 1
	mov	QWORD PTR j[rip], 1
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR k[rip], rax
	jmp	.L11
.L14:
	mov	rax, QWORD PTR i[rip]
	lea	rdx, 0[0+rax*8]
	lea	rax, L[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR j[rip]
	lea	rcx, 0[0+rax*8]
	lea	rax, R[rip]
	mov	rax, QWORD PTR [rcx+rax]
	cmp	rdx, rax
	jg	.L12
	mov	rax, QWORD PTR i[rip]
	mov	rdx, QWORD PTR k[rip]
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -8[rbp]
	add	rdx, rcx
	lea	rcx, 0[0+rax*8]
	lea	rax, L[rip]
	mov	rax, QWORD PTR [rcx+rax]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR i[rip]
	add	rax, 1
	mov	QWORD PTR i[rip], rax
	jmp	.L13
.L12:
	mov	rax, QWORD PTR j[rip]
	mov	rdx, QWORD PTR k[rip]
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -8[rbp]
	add	rdx, rcx
	lea	rcx, 0[0+rax*8]
	lea	rax, R[rip]
	mov	rax, QWORD PTR [rcx+rax]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR j[rip]
	add	rax, 1
	mov	QWORD PTR j[rip], rax
.L13:
	mov	rax, QWORD PTR k[rip]
	add	rax, 1
	mov	QWORD PTR k[rip], rax
.L11:
	mov	rax, QWORD PTR k[rip]
	cmp	QWORD PTR -32[rbp], rax
	jge	.L14
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	merge, .-merge
	.globl	merge_sort
	.type	merge_sort, @function
merge_sort:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -32[rbp]
	cmp	rax, QWORD PTR -40[rbp]
	jge	.L17
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rdx, rax
	shr	rdx, 63
	add	rax, rdx
	sar	rax
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	merge_sort
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, 1[rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	merge_sort
	mov	rcx, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rsi, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	merge
.L17:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	merge_sort, .-merge_sort
	.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	"1003640.c"
	.text
	.comm	A,44,4
	.comm	L,44,4
	.comm	R,44,4
	.comm	i,4,4
	.comm	j,4,4
	.comm	k,4,4
	.comm	n1,4,4
	.comm	n2,4,4
	.global	first
	.data
	.align	2
	.type	first, %object
	.size	first, 4
first:
	.word	1
	.global	last
	.align	2
	.type	last, %object
	.size	last, 4
last:
	.word	10
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter your array to peform Merge sort\000"
	.align	2
.LC1:
	.ascii	"%li\000"
	.align	2
.LC2:
	.ascii	"\012Array after performing Merge sort is\000"
	.align	2
.LC3:
	.ascii	"\011%li\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L6
	bl	puts
	ldr	r3, .L6+4
	mov	r2, #1
	str	r2, [r3]
	b	.L2
.L3:
	ldr	r3, .L6+4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, .L6+8
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L6+12
	bl	__isoc99_scanf
	ldr	r3, .L6+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L6+4
	str	r3, [r2]
.L2:
	ldr	r3, .L6+4
	ldr	r3, [r3]
	cmp	r3, #10
	ble	.L3
	ldr	r3, .L6+16
	ldr	r3, [r3]
	ldr	r2, .L6+20
	ldr	r2, [r2]
	mov	r1, r3
	ldr	r0, .L6+8
	bl	merge_sort
	ldr	r0, .L6+24
	bl	puts
	ldr	r3, .L6+4
	mov	r2, #1
	str	r2, [r3]
	b	.L4
.L5:
	ldr	r3, .L6+4
	ldr	r3, [r3]
	ldr	r2, .L6+8
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L6+28
	bl	printf
	ldr	r3, .L6+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L6+4
	str	r3, [r2]
.L4:
	ldr	r3, .L6+4
	ldr	r3, [r3]
	cmp	r3, #10
	ble	.L5
	mov	r0, #10
	bl	putchar
	nop
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC0
	.word	i
	.word	A
	.word	.LC1
	.word	first
	.word	last
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.align	2
	.global	merge
	.syntax unified
	.arm
	.fpu softvfp
	.type	merge, %function
merge:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	add	r3, r3, #1
	ldr	r2, .L17
	str	r3, [r2]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	ldr	r2, .L17+4
	str	r3, [r2]
	ldr	r3, .L17+8
	mov	r2, #1
	str	r2, [r3]
	b	.L9
.L10:
	ldr	r3, .L17+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-8]
	add	r2, r2, r3
	ldr	r3, .L17+8
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, .L17+12
	str	r2, [r1, r3, lsl #2]
	ldr	r3, .L17+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L17+8
	str	r3, [r2]
.L9:
	ldr	r3, .L17+8
	ldr	r2, [r3]
	ldr	r3, .L17
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L10
	ldr	r3, .L17+16
	mov	r2, #1
	str	r2, [r3]
	b	.L11
.L12:
	ldr	r3, .L17+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-8]
	add	r2, r2, r3
	ldr	r3, .L17+16
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, .L17+20
	str	r2, [r1, r3, lsl #2]
	ldr	r3, .L17+16
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L17+16
	str	r3, [r2]
.L11:
	ldr	r3, .L17+16
	ldr	r2, [r3]
	ldr	r3, .L17+4
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L12
	ldr	r3, .L17
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L17+12
	mvn	r1, #-2147483648
	str	r1, [r2, r3, lsl #2]
	ldr	r3, .L17+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L17+20
	mvn	r1, #-2147483648
	str	r1, [r2, r3, lsl #2]
	ldr	r3, .L17+8
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, .L17+16
	mov	r2, #1
	str	r2, [r3]
	ldr	r2, .L17+24
	ldr	r3, [fp, #-12]
	str	r3, [r2]
	b	.L13
.L16:
	ldr	r3, .L17+8
	ldr	r3, [r3]
	ldr	r2, .L17+12
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, .L17+16
	ldr	r3, [r3]
	ldr	r1, .L17+20
	ldr	r3, [r1, r3, lsl #2]
	cmp	r2, r3
	bgt	.L14
	ldr	r3, .L17+8
	ldr	r2, [r3]
	ldr	r3, .L17+24
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-8]
	add	r3, r1, r3
	ldr	r1, .L17+12
	ldr	r2, [r1, r2, lsl #2]
	str	r2, [r3]
	ldr	r3, .L17+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L17+8
	str	r3, [r2]
	b	.L15
.L14:
	ldr	r3, .L17+16
	ldr	r2, [r3]
	ldr	r3, .L17+24
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-8]
	add	r3, r1, r3
	ldr	r1, .L17+20
	ldr	r2, [r1, r2, lsl #2]
	str	r2, [r3]
	ldr	r3, .L17+16
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L17+16
	str	r3, [r2]
.L15:
	ldr	r3, .L17+24
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L17+24
	str	r3, [r2]
.L13:
	ldr	r3, .L17+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bge	.L16
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L18:
	.align	2
.L17:
	.word	n1
	.word	n2
	.word	i
	.word	L
	.word	j
	.word	R
	.word	k
	.size	merge, .-merge
	.align	2
	.global	merge_sort
	.syntax unified
	.arm
	.fpu softvfp
	.type	merge_sort, %function
merge_sort:
	@ 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bge	.L21
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	merge_sort
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldr	r2, [fp, #-24]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	merge_sort
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	merge
.L21:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	merge_sort, .-merge_sort
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
