	.file	"17325.c"
	.intel_syntax noprefix
	.text
	.type	min, @function
min:
.LFB6:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -4[rbp]
	xor	eax, DWORD PTR -8[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	setle	al
	movzx	eax, al
	neg	eax
	and	eax, edx
	xor	eax, DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	min, .-min
	.type	merge_sort, @function
merge_sort:
.LFB7:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 56
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -56[rbp], rdi
	mov	DWORD PTR -60[rbp], esi
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -88[rbp], rax
	mov	r13d, 0
	jmp	.L4
.L10:
	mov	esi, r13d
	mov	eax, DWORD PTR -60[rbp]
	lea	edx, -1[rax]
	lea	eax, 31[r13]
	cmp	edx, eax
	cmovle	eax, edx
	mov	r15d, eax
	lea	r12d, 1[rsi]
	jmp	.L5
.L9:
	movsx	rax, r12d
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	r14d, DWORD PTR [rax]
	lea	ebx, -1[r12]
	jmp	.L6
.L8:
	movsx	rax, ebx
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movsx	rdx, ebx
	add	rdx, 1
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -56[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	sub	ebx, 1
.L6:
	movsx	rax, ebx
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	r14d, eax
	jge	.L7
	mov	eax, esi
	cmp	ebx, eax
	jge	.L8
.L7:
	movsx	rax, ebx
	add	rax, 1
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], r14d
	add	r12d, 1
.L5:
	cmp	r12d, r15d
	jle	.L9
	add	r13d, 32
.L4:
	cmp	r13d, DWORD PTR -60[rbp]
	jl	.L10
	mov	r14d, 32
	jmp	.L11
.L21:
	mov	DWORD PTR -64[rbp], 0
	jmp	.L12
.L20:
	mov	eax, DWORD PTR -60[rbp]
	lea	edx, -1[rax]
	mov	r15d, DWORD PTR -64[rbp]
	lea	eax, [r15+r14]
	sub	eax, 1
	mov	esi, edx
	mov	edi, eax
	call	min
	mov	ebx, eax
	mov	eax, DWORD PTR -60[rbp]
	lea	edx, -1[rax]
	lea	eax, [r14+r14]
	add	eax, r15d
	sub	eax, 1
	mov	esi, edx
	mov	edi, eax
	call	min
	mov	r13d, eax
	mov	r12d, r15d
	mov	eax, ebx
	sub	eax, r12d
	add	eax, 1
	mov	DWORD PTR -92[rbp], eax
	mov	r15d, r13d
	sub	r15d, ebx
	mov	r13d, eax
	movsx	rax, r13d
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -72[rbp], rax
	movsx	rax, r15d
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -80[rbp], rax
	movsx	rax, r13d
	lea	rdx, 0[0+rax*4]
	movsx	rax, r12d
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rcx
	mov	rsi, rax
	mov	rdi, QWORD PTR -72[rbp]
	call	memcpy@PLT
	movsx	rax, r15d
	lea	rdx, 0[0+rax*4]
	movsx	rax, ebx
	add	rax, 1
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rcx
	mov	rsi, rax
	mov	rdi, QWORD PTR -80[rbp]
	call	memcpy@PLT
	mov	r13d, 0
	mov	ebx, 0
	jmp	.L13
.L15:
	movsx	rax, r13d
	sal	rax, 2
	mov	r8, QWORD PTR -72[rbp]
	add	rax, r8
	mov	edx, DWORD PTR [rax]
	movsx	rax, ebx
	sal	rax, 2
	mov	rdi, QWORD PTR -80[rbp]
	add	rax, rdi
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	setle	al
	movzx	esi, al
	movsx	rax, ebx
	sal	rax, 2
	add	rax, rdi
	mov	ecx, DWORD PTR [rax]
	movsx	rax, r13d
	sal	rax, 2
	add	rax, r8
	mov	edx, DWORD PTR [rax]
	movsx	rax, ebx
	sal	rax, 2
	add	rax, rdi
	mov	eax, DWORD PTR [rax]
	xor	edx, eax
	mov	edi, esi
	mov	eax, edi
	neg	eax
	and	edx, eax
	movsx	rax, r12d
	lea	rsi, 0[0+rax*4]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rsi
	xor	edx, ecx
	mov	DWORD PTR [rax], edx
	add	r13d, edi
	test	edi, edi
	sete	al
	movzx	eax, al
	add	ebx, eax
	add	r12d, 1
.L13:
	cmp	r13d, DWORD PTR -92[rbp]
	jge	.L16
	cmp	ebx, r15d
	jl	.L15
	jmp	.L16
.L17:
	movsx	rax, r13d
	sal	rax, 2
	add	rax, QWORD PTR -72[rbp]
	movsx	rdx, r12d
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -56[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	add	r13d, 1
	add	r12d, 1
.L16:
	cmp	r13d, DWORD PTR -92[rbp]
	jl	.L17
	jmp	.L18
.L19:
	movsx	rax, ebx
	sal	rax, 2
	add	rax, QWORD PTR -80[rbp]
	movsx	rdx, r12d
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -56[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	add	ebx, 1
	add	r12d, 1
.L18:
	cmp	ebx, r15d
	jl	.L19
	lea	eax, [r14+r14]
	add	DWORD PTR -64[rbp], eax
.L12:
	mov	eax, DWORD PTR -64[rbp]
	cmp	eax, DWORD PTR -60[rbp]
	jl	.L20
	add	r14d, r14d
.L11:
	cmp	DWORD PTR -60[rbp], r14d
	jg	.L21
	mov	ebx, 0
	jmp	.L22
.L23:
	movsx	rax, ebx
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movsx	rdx, ebx
	sal	rdx, 2
	add	rdx, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	add	ebx, 1
.L22:
	cmp	ebx, DWORD PTR -60[rbp]
	jl	.L23
	mov	rax, QWORD PTR -88[rbp]
	add	rsp, 56
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	merge_sort, .-merge_sort
	.section	.rodata
.LC0:
	.string	"%d \n"
	.text
	.globl	show
	.type	show, @function
show:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	push	rbx
	sub	rsp, 8
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	mov	r13, rdi
	mov	r12d, esi
	mov	ebx, 0
	jmp	.L26
.L27:
	movsx	rax, ebx
	sal	rax, 2
	add	rax, r13
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	add	ebx, 1
.L26:
	cmp	ebx, r12d
	jl	.L27
	mov	edi, 10
	call	putchar@PLT
	nop
	add	rsp, 8
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	show, .-show
	.section	.rodata
.LC2:
	.string	"clock gettime"
.LC4:
	.string	"Avg Run Time: %lfns\n\n"
.LC5:
	.string	"Wrong!"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 88
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	DWORD PTR -116[rbp], 1
	mov	ebx, 100000000
	mov	r15d, 0
	movsx	rax, ebx
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -128[rbp], rax
	movsx	rax, ebx
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	pxor	xmm0, xmm0
	movsd	QWORD PTR -104[rbp], xmm0
	mov	r13d, 0
	jmp	.L29
.L39:
	mov	r12d, 0
	jmp	.L30
.L31:
	mov	eax, ebx
	mov	ecx, r12d
	sub	eax, ecx
	mov	edx, eax
	mov	rax, r12
	sal	rax, 2
	add	rax, QWORD PTR -128[rbp]
	mov	DWORD PTR [rax], edx
	add	r12, 1
.L30:
	movsx	rax, ebx
	cmp	r12, rax
	jl	.L31
	lea	rax, -96[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	clock_gettime@PLT
	cmp	eax, -1
	jne	.L32
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L42
.L32:
	mov	esi, ebx
	mov	rdi, QWORD PTR -128[rbp]
	call	merge_sort
	mov	r14, rax
	lea	rax, -80[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	clock_gettime@PLT
	cmp	eax, -1
	jne	.L34
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L42
.L34:
	mov	rax, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR -96[rbp]
	sub	rax, rdx
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, rax
	mov	rax, QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR -88[rbp]
	sub	rax, rdx
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm1, QWORD PTR .LC3[rip]
	movapd	xmm3, xmm0
	divsd	xmm3, xmm1
	addsd	xmm2, xmm3
	movapd	xmm4, xmm2
	mov	r12d, 1
	jmp	.L35
.L38:
	movsx	rax, r12d
	sal	rax, 2
	add	rax, r14
	mov	edx, DWORD PTR [rax]
	movsx	rax, r12d
	sal	rax, 2
	sub	rax, 4
	add	rax, r14
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jge	.L36
	mov	r15d, 1
	jmp	.L37
.L36:
	add	r12d, 1
.L35:
	cmp	r12d, ebx
	jl	.L38
.L37:
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -116[rbp]
	movapd	xmm0, xmm4
	divsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR -104[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -104[rbp], xmm0
	add	r13d, 1
.L29:
	cmp	r13d, DWORD PTR -116[rbp]
	jl	.L39
	test	r15d, r15d
	jne	.L40
	mov	rax, QWORD PTR -104[rbp]
	movq	xmm0, rax
	lea	rdi, .LC4[rip]
	mov	eax, 1
	call	printf@PLT
	jmp	.L41
.L40:
	lea	rdi, .LC5[rip]
	call	puts@PLT
.L41:
	mov	eax, 0
.L42:
	mov	rcx, QWORD PTR -56[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L43
	call	__stack_chk_fail@PLT
.L43:
	add	rsp, 88
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC3:
	.long	0
	.long	1104006501
	.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	"17325.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	min, %function
min:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	eor	r2, r2, r3
	ldr	r1, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r1, r3
	movle	r3, #1
	movgt	r3, #0
	and	r3, r3, #255
	rsb	r3, r3, #0
	and	r2, r2, r3
	ldr	r3, [fp, #-12]
	eor	r3, r3, r2
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	min, .-min
	.align	2
	.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	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #28
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-52]
	mov	r6, #0
	b	.L4
.L10:
	mov	r8, r6
	ldr	r3, [fp, #-44]
	sub	r2, r3, #1
	add	r3, r6, #31
	cmp	r2, r3
	movlt	r9, r2
	movge	r9, r3
	add	r5, r8, #1
	b	.L5
.L9:
	mov	r3, r5
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r7, [r3]
	sub	r4, r5, #1
	b	.L6
.L8:
	mov	r3, r4
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r2, r2, r3
	mov	r3, r4
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r1, [fp, #-40]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	sub	r4, r4, #1
.L6:
	mov	r3, r4
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r7, r3
	bge	.L7
	cmp	r4, r8
	bge	.L8
.L7:
	mov	r3, r4
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	str	r7, [r3]
	add	r5, r5, #1
.L5:
	cmp	r5, r9
	ble	.L9
	add	r6, r6, #32
.L4:
	ldr	r3, [fp, #-44]
	cmp	r6, r3
	blt	.L10
	mov	r7, #32
	b	.L11
.L21:
	mov	r8, #0
	b	.L12
.L20:
	add	r3, r8, r7
	sub	r2, r3, #1
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	min
	mov	r4, r0
	lsl	r3, r7, #1
	add	r3, r8, r3
	sub	r2, r3, #1
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	min
	mov	r6, r0
	mov	r5, r8
	sub	r3, r4, r5
	add	r3, r3, #1
	str	r3, [fp, #-56]
	sub	r9, r6, r4
	mov	r6, r3
	mov	r3, r6
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r10, r3
	str	r9, [fp, #-48]
	mov	r3, r9
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r9, r3
	mov	r3, r5
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	mov	r2, r6
	lsl	r2, r2, #2
	mov	r1, r3
	mov	r0, r10
	bl	memcpy
	mov	r3, r4
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r2, [fp, #-48]
	lsl	r2, r2, #2
	mov	r1, r3
	mov	r0, r9
	bl	memcpy
	mov	r6, #0
	mov	r4, #0
	b	.L13
.L15:
	mov	r3, r6
	lsl	r3, r3, #2
	add	r3, r10, r3
	ldr	r2, [r3]
	mov	r3, r4
	lsl	r3, r3, #2
	add	r3, r9, r3
	ldr	r3, [r3]
	cmp	r2, r3
	movle	r3, #1
	movgt	r3, #0
	and	r3, r3, #255
	mov	ip, r3
	mov	r3, r4
	lsl	r3, r3, #2
	add	r3, r9, r3
	ldr	r0, [r3]
	mov	r3, r6
	lsl	r3, r3, #2
	add	r3, r10, r3
	ldr	r2, [r3]
	mov	r3, r4
	lsl	r3, r3, #2
	add	r3, r9, r3
	ldr	r3, [r3]
	eor	r2, r2, r3
	rsb	r3, ip, #0
	and	r1, r2, r3
	mov	r3, r5
	lsl	r2, r3, #2
	ldr	r3, [fp, #-40]
	add	r2, r3, r2
	eor	r3, r0, r1
	str	r3, [r2]
	add	r6, r6, ip
	cmp	ip, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	add	r4, r4, r3
	add	r5, r5, #1
.L13:
	ldr	r3, [fp, #-56]
	cmp	r6, r3
	bge	.L16
	ldr	r3, [fp, #-48]
	cmp	r4, r3
	blt	.L15
	b	.L16
.L17:
	mov	r3, r6
	lsl	r3, r3, #2
	add	r2, r10, r3
	mov	r3, r5
	lsl	r3, r3, #2
	ldr	r1, [fp, #-40]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	add	r6, r6, #1
	add	r5, r5, #1
.L16:
	ldr	r3, [fp, #-56]
	cmp	r6, r3
	blt	.L17
	b	.L18
.L19:
	mov	r3, r4
	lsl	r3, r3, #2
	add	r2, r9, r3
	mov	r3, r5
	lsl	r3, r3, #2
	ldr	r1, [fp, #-40]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	add	r4, r4, #1
	add	r5, r5, #1
.L18:
	ldr	r3, [fp, #-48]
	cmp	r4, r3
	blt	.L19
	lsl	r3, r7, #1
	add	r8, r8, r3
.L12:
	ldr	r3, [fp, #-44]
	cmp	r8, r3
	blt	.L20
	lsl	r7, r7, #1
.L11:
	ldr	r3, [fp, #-44]
	cmp	r3, r7
	bgt	.L21
	mov	r4, #0
	b	.L22
.L23:
	mov	r3, r4
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r2, r2, r3
	mov	r3, r4
	lsl	r3, r3, #2
	ldr	r1, [fp, #-52]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	add	r4, r4, #1
.L22:
	ldr	r3, [fp, #-44]
	cmp	r4, r3
	blt	.L23
	ldr	r3, [fp, #-52]
	mov	r0, r3
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
	.size	merge_sort, .-merge_sort
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d \012\000"
	.text
	.align	2
	.global	show
	.syntax unified
	.arm
	.fpu softvfp
	.type	show, %function
show:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	mov	r6, r0
	mov	r5, r1
	mov	r4, #0
	b	.L26
.L27:
	mov	r3, r4
	lsl	r3, r3, #2
	add	r3, r6, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L28
	bl	printf
	add	r4, r4, #1
.L26:
	cmp	r4, r5
	blt	.L27
	mov	r0, #10
	bl	putchar
	nop
	pop	{r4, r5, r6, r7, fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC0
	.size	show, .-show
	.section	.rodata
	.align	2
.LC1:
	.ascii	"clock gettime\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dadd
	.align	2
.LC2:
	.ascii	"Avg Run Time: %lfns\012\012\000"
	.align	2
.LC3:
	.ascii	"Wrong!\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #44
	ldr	r3, .L46
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	mov	r8, #1
	ldr	r5, .L46+4
	mov	r9, #0
	mov	r3, r5
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r10, r3
	mov	r3, r5
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	mov	r6, #0
	b	.L31
.L41:
	mov	r4, #0
	b	.L32
.L33:
	mov	r3, r4
	lsl	r3, r3, #2
	add	r3, r10, r3
	sub	r2, r5, r4
	str	r2, [r3]
	add	r4, r4, #1
.L32:
	cmp	r4, r5
	blt	.L33
	sub	r3, fp, #56
	mov	r1, r3
	mov	r0, #0
	bl	clock_gettime
	mov	r3, r0
	cmn	r3, #1
	bne	.L34
	ldr	r0, .L46+8
	bl	perror
	mov	r3, #1
	b	.L44
.L34:
	mov	r1, r5
	mov	r0, r10
	bl	merge_sort
	mov	r7, r0
	sub	r3, fp, #48
	mov	r1, r3
	mov	r0, #0
	bl	clock_gettime
	mov	r3, r0
	cmn	r3, #1
	bne	.L36
	ldr	r0, .L46+8
	bl	perror
	mov	r3, #1
	b	.L44
.L36:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-56]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-52]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L46+12
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	mov	r4, #1
	b	.L37
.L40:
	mov	r3, r4
	lsl	r3, r3, #2
	add	r3, r7, r3
	ldr	r2, [r3]
	mov	r3, r4
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	add	r3, r7, r3
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L38
	mov	r9, #1
	b	.L39
.L38:
	add	r4, r4, #1
.L37:
	cmp	r4, r5
	blt	.L40
.L39:
	mov	r0, r8
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	add	r6, r6, #1
.L31:
	cmp	r6, r8
	blt	.L41
	cmp	r9, #0
	bne	.L42
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	ldr	r0, .L46+16
	bl	printf
	b	.L43
.L42:
	ldr	r0, .L46+20
	bl	puts
.L43:
	mov	r3, #0
.L44:
	ldr	r2, .L46
	ldr	r1, [r2]
	ldr	r2, [fp, #-40]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L45
	bl	__stack_chk_fail
.L45:
	mov	r0, r3
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L47:
	.align	2
.L46:
	.word	.LC4
	.word	100000000
	.word	.LC1
	.word	1104006501
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
