	.file	"6918.c"
	.intel_syntax noprefix
	.text
	.globl	lo
	.bss
	.align 32
	.type	lo, @object
	.size	lo, 40020
lo:
	.zero	40020
	.globl	hi
	.align 32
	.type	hi, @object
	.size	hi, 40020
hi:
	.zero	40020
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 40020
b:
	.zero	40020
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 40804
a:
	.zero	40804
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.text
	.globl	merge
	.type	merge, @function
merge:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -40[rbp]
	add	eax, edx
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -4[rbp], eax
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	mov	eax, DWORD PTR n[rip]
	mov	edx, DWORD PTR -36[rbp]
	imul	eax, edx
	mov	DWORD PTR -12[rbp], eax
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -20[rbp], edx
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, b[rip]
	mov	edx, DWORD PTR [rcx+rdx]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, lo[rip]
	mov	DWORD PTR [rcx+rax], edx
	add	DWORD PTR -12[rbp], 1
.L2:
	mov	eax, DWORD PTR n[rip]
	imul	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR n[rip]
	add	eax, edx
	cmp	DWORD PTR -12[rbp], eax
	jl	.L3
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, lo[rip]
	mov	DWORD PTR [rdx+rax], 1000000000
	mov	eax, DWORD PTR n[rip]
	imul	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR n[rip]
	add	eax, edx
	mov	DWORD PTR -12[rbp], eax
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -16[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -16[rbp], edx
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, b[rip]
	mov	edx, DWORD PTR [rcx+rdx]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, hi[rip]
	mov	DWORD PTR [rcx+rax], edx
	add	DWORD PTR -12[rbp], 1
.L4:
	mov	eax, DWORD PTR n[rip]
	imul	eax, DWORD PTR -40[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR n[rip]
	add	eax, edx
	cmp	DWORD PTR -12[rbp], eax
	jl	.L5
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, hi[rip]
	mov	DWORD PTR [rdx+rax], 1000000000
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	mov	eax, DWORD PTR n[rip]
	mov	edx, DWORD PTR -36[rbp]
	imul	eax, edx
	mov	DWORD PTR -8[rbp], eax
	jmp	.L6
.L9:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, lo[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, hi[rip]
	mov	eax, DWORD PTR [rcx+rax]
	cmp	edx, eax
	jge	.L7
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -20[rbp], edx
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, lo[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, b[rip]
	mov	DWORD PTR [rcx+rdx], eax
	jmp	.L8
.L7:
	mov	eax, DWORD PTR -16[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -16[rbp], edx
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, hi[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, b[rip]
	mov	DWORD PTR [rcx+rdx], eax
.L8:
	add	DWORD PTR -8[rbp], 1
.L6:
	mov	eax, DWORD PTR n[rip]
	imul	eax, DWORD PTR -40[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR n[rip]
	add	eax, edx
	cmp	DWORD PTR -8[rbp], eax
	jl	.L9
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	merge, .-merge
	.globl	merge_rec
	.type	merge_rec, @function
merge_rec:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jge	.L12
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, edx
	mov	edi, eax
	call	merge_rec
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	mov	edi, edx
	call	merge_rec
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, edx
	mov	edi, eax
	call	merge
.L12:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	merge_rec, .-merge_rec
	.section	.rodata
.LC0:
	.string	"Enter n: "
.LC1:
	.string	"%d"
.LC2:
	.string	"Enter the elements: "
.LC3:
	.string	"Input not valid.\n :("
.LC4:
	.string	"%d "
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.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	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, n[rip]
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	jmp	.L14
.L19:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L15
.L18:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rsi, 0[0+rax*4]
	add	rax, rsi
	sal	rax, 2
	add	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, a[rip]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	DWORD PTR -16[rbp], 0
	jle	.L16
	mov	eax, DWORD PTR -16[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -12[rbp]
	movsx	rcx, eax
	movsx	rdx, edx
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rsi, 0[0+rax*4]
	add	rax, rsi
	sal	rax, 2
	add	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, a[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -12[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdi, 0[0+rax*4]
	add	rax, rdi
	sal	rax, 2
	add	rax, rdx
	add	rax, rsi
	lea	rdx, 0[0+rax*4]
	lea	rax, a[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	ecx, eax
	jle	.L16
	mov	DWORD PTR -8[rbp], 1
.L16:
	cmp	DWORD PTR -12[rbp], 0
	jle	.L17
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, 1
	movsx	rcx, eax
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rsi, 0[0+rax*4]
	add	rax, rsi
	sal	rax, 2
	add	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, a[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -12[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdi, 0[0+rax*4]
	add	rax, rdi
	sal	rax, 2
	add	rax, rdx
	add	rax, rsi
	lea	rdx, 0[0+rax*4]
	lea	rax, a[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	ecx, eax
	jle	.L17
	mov	DWORD PTR -8[rbp], 1
.L17:
	add	DWORD PTR -12[rbp], 1
.L15:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L18
	mov	eax, DWORD PTR n[rip]
	movsx	rcx, eax
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rsi, 0[0+rax*4]
	add	rax, rsi
	sal	rax, 2
	add	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, a[rip]
	mov	DWORD PTR [rdx+rax], 1000000000
	add	DWORD PTR -16[rbp], 1
.L14:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -16[rbp], eax
	jl	.L19
	cmp	DWORD PTR -8[rbp], 0
	je	.L20
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L21
.L20:
	mov	DWORD PTR -16[rbp], 0
	jmp	.L22
.L25:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L23
.L24:
	mov	eax, DWORD PTR n[rip]
	imul	eax, DWORD PTR -16[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	lea	ecx, [rdx+rax]
	mov	eax, DWORD PTR -12[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdi, 0[0+rax*4]
	add	rax, rdi
	sal	rax, 2
	add	rax, rdx
	add	rax, rsi
	lea	rdx, 0[0+rax*4]
	lea	rax, a[rip]
	mov	eax, DWORD PTR [rdx+rax]
	movsx	rdx, ecx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, b[rip]
	mov	DWORD PTR [rcx+rdx], eax
	add	DWORD PTR -12[rbp], 1
.L23:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L24
	add	DWORD PTR -16[rbp], 1
.L22:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -16[rbp], eax
	jl	.L25
	mov	eax, DWORD PTR n[rip]
	sub	eax, 1
	mov	esi, eax
	mov	edi, 0
	call	merge_rec
	mov	DWORD PTR -4[rbp], 0
	jmp	.L26
.L27:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, b[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L26:
	mov	edx, DWORD PTR n[rip]
	mov	eax, DWORD PTR n[rip]
	imul	eax, edx
	cmp	DWORD PTR -4[rbp], eax
	jl	.L27
	mov	edi, 10
	call	putchar@PLT
	mov	eax, 0
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"6918.c"
	.text
	.comm	lo,40020,4
	.comm	hi,40020,4
	.comm	b,40020,4
	.comm	a,40804,4
	.comm	n,4,4
	.align	2
	.global	merge
	.syntax unified
	.arm
	.fpu softvfp
	.type	merge, %function
merge:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #36
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	mul	r3, r2, r3
	str	r3, [fp, #-16]
	b	.L2
.L3:
	ldr	r3, [fp, #-24]
	add	r2, r3, #1
	str	r2, [fp, #-24]
	ldr	r1, .L10+4
	ldr	r2, [fp, #-16]
	ldr	r2, [r1, r2, lsl #2]
	ldr	r1, .L10+8
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L2:
	ldr	r3, .L10
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	mul	r2, r3, r2
	ldr	r3, .L10
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L3
	ldr	r2, .L10+8
	ldr	r3, [fp, #-24]
	ldr	r1, .L10+12
	str	r1, [r2, r3, lsl #2]
	ldr	r3, .L10
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	mul	r2, r3, r2
	ldr	r3, .L10
	ldr	r3, [r3]
	add	r3, r2, r3
	str	r3, [fp, #-16]
	b	.L4
.L5:
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	str	r2, [fp, #-20]
	ldr	r1, .L10+4
	ldr	r2, [fp, #-16]
	ldr	r2, [r1, r2, lsl #2]
	ldr	r1, .L10+16
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L4:
	ldr	r3, .L10
	ldr	r3, [r3]
	ldr	r2, [fp, #-36]
	mul	r2, r3, r2
	ldr	r3, .L10
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L5
	ldr	r2, .L10+16
	ldr	r3, [fp, #-20]
	ldr	r1, .L10+12
	str	r1, [r2, r3, lsl #2]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	mul	r3, r2, r3
	str	r3, [fp, #-12]
	b	.L6
.L9:
	ldr	r2, .L10+8
	ldr	r3, [fp, #-24]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L10+16
	ldr	r3, [fp, #-20]
	ldr	r3, [r1, r3, lsl #2]
	cmp	r2, r3
	bge	.L7
	ldr	r3, [fp, #-24]
	add	r2, r3, #1
	str	r2, [fp, #-24]
	ldr	r2, .L10+8
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L10+4
	ldr	r3, [fp, #-12]
	str	r2, [r1, r3, lsl #2]
	b	.L8
.L7:
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	str	r2, [fp, #-20]
	ldr	r2, .L10+16
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L10+4
	ldr	r3, [fp, #-12]
	str	r2, [r1, r3, lsl #2]
.L8:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L6:
	ldr	r3, .L10
	ldr	r3, [r3]
	ldr	r2, [fp, #-36]
	mul	r2, r3, r2
	ldr	r3, .L10
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L9
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L11:
	.align	2
.L10:
	.word	n
	.word	b
	.word	lo
	.word	1000000000
	.word	hi
	.size	merge, .-merge
	.align	2
	.global	merge_rec
	.syntax unified
	.arm
	.fpu softvfp
	.type	merge_rec, %function
merge_rec:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bge	.L14
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	merge_rec
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	add	r3, r3, #1
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	merge_rec
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	merge
.L14:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	merge_rec, .-merge_rec
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter n: \000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"Enter the elements: \000"
	.align	2
.LC3:
	.ascii	"Input not valid.\012 :(\000"
	.align	2
.LC4:
	.ascii	"%d \000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r0, .L30
	bl	printf
	ldr	r1, .L30+4
	ldr	r0, .L30+8
	bl	__isoc99_scanf
	ldr	r0, .L30+12
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L16
.L21:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L17
.L20:
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L30+16
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L30+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	ble	.L18
	ldr	r3, [fp, #-20]
	sub	r2, r3, #1
	ldr	r0, .L30+16
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r3, r3, r2
	ldr	r1, [r0, r3, lsl #2]
	ldr	ip, .L30+16
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r0, r3, #2
	add	r3, r3, r0
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r3, r3, r2
	ldr	r3, [ip, r3, lsl #2]
	cmp	r1, r3
	ble	.L18
	mov	r3, #1
	str	r3, [fp, #-12]
.L18:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	ble	.L19
	ldr	r3, [fp, #-16]
	sub	r1, r3, #1
	ldr	ip, .L30+16
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r0, r3, #2
	add	r3, r3, r0
	lsl	r3, r3, #2
	add	r3, r3, r2
	add	r3, r3, r1
	ldr	r1, [ip, r3, lsl #2]
	ldr	ip, .L30+16
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r0, r3, #2
	add	r3, r3, r0
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r3, r3, r2
	ldr	r3, [ip, r3, lsl #2]
	cmp	r1, r3
	ble	.L19
	mov	r3, #1
	str	r3, [fp, #-12]
.L19:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L17:
	ldr	r3, .L30+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L20
	ldr	r3, .L30+4
	ldr	r1, [r3]
	ldr	ip, .L30+16
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r0, r3, #2
	add	r3, r3, r0
	lsl	r3, r3, #2
	add	r3, r3, r2
	add	r3, r3, r1
	ldr	r2, .L30+20
	str	r2, [ip, r3, lsl #2]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L16:
	ldr	r3, .L30+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L21
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L22
	ldr	r0, .L30+24
	bl	printf
	mov	r3, #1
	b	.L23
.L22:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L24
.L27:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L25
.L26:
	ldr	r3, .L30+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	mul	r2, r3, r2
	ldr	r3, [fp, #-16]
	add	r1, r2, r3
	ldr	ip, .L30+16
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r0, r3, #2
	add	r3, r3, r0
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r3, r3, r2
	ldr	r3, [ip, r3, lsl #2]
	ldr	r2, .L30+28
	str	r3, [r2, r1, lsl #2]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L25:
	ldr	r3, .L30+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L26
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L24:
	ldr	r3, .L30+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L27
	ldr	r3, .L30+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	mov	r1, r3
	mov	r0, #0
	bl	merge_rec
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L28
.L29:
	ldr	r2, .L30+28
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L30+32
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L28:
	ldr	r3, .L30+4
	ldr	r3, [r3]
	ldr	r2, .L30+4
	ldr	r2, [r2]
	mul	r3, r2, r3
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L29
	mov	r0, #10
	bl	putchar
	mov	r3, #0
.L23:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC0
	.word	n
	.word	.LC1
	.word	.LC2
	.word	a
	.word	1000000000
	.word	.LC3
	.word	b
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
