	.file	"206394061.c"
	.intel_syntax noprefix
	.text
	.globl	V
	.bss
	.align 32
	.type	V, @object
	.size	V, 48
V:
	.zero	48
	.globl	t
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.zero	4
	.section	.rodata
	.align 8
.LC0:
	.string	"Wrong number of arguments. Syntax: %s dimension threshold\n"
.LC1:
	.string	"Array before sorting: "
.LC2:
	.string	"%d "
.LC3:
	.string	"Array after sorting: "
	.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -36[rbp], 3
	je	.L2
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L8
.L2:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -20[rbp], eax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR t[rip], eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR V[rip+40], rax
	mov	esi, 0
	lea	rdi, V[rip]
	call	pthread_mutex_init@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	srand@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 22
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	lea	rdi, V[rip]
	call	pthread_mutex_lock@PLT
	mov	DWORD PTR -24[rbp], 0
	jmp	.L4
.L5:
	call	rand@PLT
	mov	rcx, QWORD PTR V[rip+40]
	mov	edx, DWORD PTR -24[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rcx, rdx
	movsx	rdx, eax
	imul	rdx, rdx, 1374389535
	shr	rdx, 32
	sar	edx, 5
	mov	esi, eax
	sar	esi, 31
	sub	edx, esi
	imul	esi, edx, 100
	sub	eax, esi
	mov	edx, eax
	mov	DWORD PTR [rcx], edx
	mov	rdx, QWORD PTR V[rip+40]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -24[rbp], 1
.L4:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L5
	lea	rdi, V[rip]
	call	pthread_mutex_unlock@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	DWORD PTR -16[rbp], 0
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 1
	mov	DWORD PTR -12[rbp], eax
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	threadedMergeSort
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 21
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	lea	rdi, V[rip]
	call	pthread_mutex_lock@PLT
	mov	DWORD PTR -24[rbp], 0
	jmp	.L6
.L7:
	mov	rdx, QWORD PTR V[rip+40]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -24[rbp], 1
.L6:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L7
	lea	rdi, V[rip]
	call	pthread_mutex_unlock@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	eax, 0
.L8:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	threadedMergeSort
	.type	threadedMergeSort, @function
threadedMergeSort:
.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, 96
	mov	QWORD PTR -88[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -68[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR -64[rbp], eax
	mov	eax, DWORD PTR -68[rbp]
	cmp	eax, DWORD PTR -64[rbp]
	jge	.L11
	mov	eax, DWORD PTR -64[rbp]
	sub	eax, DWORD PTR -68[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edx, eax
	mov	eax, DWORD PTR -68[rbp]
	add	eax, edx
	mov	DWORD PTR -60[rbp], eax
	mov	eax, DWORD PTR -64[rbp]
	sub	eax, DWORD PTR -68[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR t[rip]
	cmp	edx, eax
	jl	.L12
	mov	eax, DWORD PTR -68[rbp]
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -60[rbp]
	mov	DWORD PTR -20[rbp], eax
	lea	rdx, -24[rbp]
	lea	rax, -56[rbp]
	mov	rcx, rdx
	lea	rdx, threadedMergeSort[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	eax, DWORD PTR -60[rbp]
	add	eax, 1
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -64[rbp]
	mov	DWORD PTR -12[rbp], eax
	lea	rdx, -16[rbp]
	lea	rax, -48[rbp]
	mov	rcx, rdx
	lea	rdx, threadedMergeSort[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_join@PLT
	mov	rax, QWORD PTR -48[rbp]
	lea	rdx, -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_join@PLT
	jmp	.L13
.L12:
	mov	eax, DWORD PTR -68[rbp]
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -60[rbp]
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -60[rbp]
	add	eax, 1
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -64[rbp]
	mov	DWORD PTR -12[rbp], eax
	lea	rax, -24[rbp]
	mov	rdi, rax
	call	threadedMergeSort
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	threadedMergeSort
.L13:
	lea	rdi, V[rip]
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR V[rip+40]
	mov	ecx, DWORD PTR -64[rbp]
	mov	edx, DWORD PTR -60[rbp]
	mov	esi, DWORD PTR -68[rbp]
	mov	rdi, rax
	call	merge
	lea	rdi, V[rip]
	call	pthread_mutex_unlock@PLT
.L11:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	threadedMergeSort, .-threadedMergeSort
	.globl	merge
	.type	merge, @function
merge:
.LFB8:
	.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
	sub	rsp, 96
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	mov	QWORD PTR -104[rbp], rdi
	mov	DWORD PTR -108[rbp], esi
	mov	DWORD PTR -112[rbp], edx
	mov	DWORD PTR -116[rbp], ecx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rsi, rax
	mov	eax, DWORD PTR -112[rbp]
	sub	eax, DWORD PTR -108[rbp]
	add	eax, 1
	mov	DWORD PTR -80[rbp], eax
	mov	eax, DWORD PTR -116[rbp]
	sub	eax, DWORD PTR -112[rbp]
	mov	DWORD PTR -76[rbp], eax
	mov	eax, DWORD PTR -80[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -72[rbp], rdx
	movsx	rdx, eax
	mov	r14, rdx
	mov	r15d, 0
	movsx	rdx, eax
	mov	r12, rdx
	mov	r13d, 0
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L17:
	cmp	rsp, rdx
	je	.L18
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L17
.L18:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L19
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L19:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -64[rbp], rax
	mov	eax, DWORD PTR -76[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -56[rbp], rdx
	movsx	rdx, eax
	mov	r10, rdx
	mov	r11d, 0
	movsx	rdx, eax
	mov	r8, rdx
	mov	r9d, 0
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L20:
	cmp	rsp, rdx
	je	.L21
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L20
.L21:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L22
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L22:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -48[rbp], rax
	mov	DWORD PTR -84[rbp], 0
	jmp	.L23
.L24:
	mov	edx, DWORD PTR -108[rbp]
	mov	eax, DWORD PTR -84[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -84[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], ecx
	add	DWORD PTR -84[rbp], 1
.L23:
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -80[rbp]
	jle	.L24
	mov	DWORD PTR -88[rbp], 0
	jmp	.L25
.L26:
	mov	eax, DWORD PTR -112[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -88[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR -88[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], ecx
	add	DWORD PTR -88[rbp], 1
.L25:
	mov	eax, DWORD PTR -88[rbp]
	cmp	eax, DWORD PTR -76[rbp]
	jle	.L26
	mov	DWORD PTR -84[rbp], 0
	mov	DWORD PTR -88[rbp], 0
	mov	eax, DWORD PTR -108[rbp]
	mov	DWORD PTR -92[rbp], eax
	jmp	.L27
.L30:
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -84[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR [rax+rdx*4]
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR -88[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	cmp	ecx, eax
	jg	.L28
	mov	eax, DWORD PTR -84[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -84[rbp], edx
	mov	edx, DWORD PTR -92[rbp]
	lea	ecx, 1[rdx]
	mov	DWORD PTR -92[rbp], ecx
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -104[rbp]
	add	rcx, rdx
	mov	rdx, QWORD PTR -64[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	mov	DWORD PTR [rcx], eax
	jmp	.L27
.L28:
	mov	eax, DWORD PTR -88[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -88[rbp], edx
	mov	edx, DWORD PTR -92[rbp]
	lea	ecx, 1[rdx]
	mov	DWORD PTR -92[rbp], ecx
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -104[rbp]
	add	rcx, rdx
	mov	rdx, QWORD PTR -48[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	mov	DWORD PTR [rcx], eax
.L27:
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -80[rbp]
	jge	.L31
	mov	eax, DWORD PTR -88[rbp]
	cmp	eax, DWORD PTR -76[rbp]
	jl	.L30
	jmp	.L31
.L32:
	mov	eax, DWORD PTR -84[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -84[rbp], edx
	mov	edx, DWORD PTR -92[rbp]
	lea	ecx, 1[rdx]
	mov	DWORD PTR -92[rbp], ecx
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -104[rbp]
	add	rcx, rdx
	mov	rdx, QWORD PTR -64[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	mov	DWORD PTR [rcx], eax
.L31:
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -80[rbp]
	jl	.L32
	jmp	.L33
.L34:
	mov	eax, DWORD PTR -88[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -88[rbp], edx
	mov	edx, DWORD PTR -92[rbp]
	lea	ecx, 1[rdx]
	mov	DWORD PTR -92[rbp], ecx
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -104[rbp]
	add	rcx, rdx
	mov	rdx, QWORD PTR -48[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	mov	DWORD PTR [rcx], eax
.L33:
	mov	eax, DWORD PTR -88[rbp]
	cmp	eax, DWORD PTR -76[rbp]
	jl	.L34
	nop
	mov	rsp, rsi
	mov	rax, QWORD PTR -40[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L36
	call	__stack_chk_fail@PLT
.L36:
	lea	rsp, -32[rbp]
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	merge, .-merge
	.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	"206394061.c"
	.text
	.comm	V,28,4
	.comm	t,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Wrong number of arguments. Syntax: %s dimension thr"
	.ascii	"eshold\012\000"
	.align	2
.LC1:
	.ascii	"Array before sorting: \000"
	.align	2
.LC2:
	.ascii	"%d \000"
	.align	2
.LC3:
	.ascii	"Array after sorting: \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 = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-32]
	cmp	r3, #3
	beq	.L2
	ldr	r3, .L10+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L10+8
	bl	fprintf
	mvn	r3, #0
	b	.L8
.L2:
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-36]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L10+12
	str	r3, [r2]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L10+16
	str	r2, [r3, #24]
	mov	r1, #0
	ldr	r0, .L10+16
	bl	pthread_mutex_init
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	srand
	ldr	r3, .L10+20
	ldr	r3, [r3]
	mov	r2, #22
	mov	r1, #1
	ldr	r0, .L10+24
	bl	fwrite
	ldr	r0, .L10+16
	bl	pthread_mutex_lock
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L4
.L5:
	bl	rand
	mov	r1, r0
	ldr	r3, .L10+16
	ldr	r2, [r3, #24]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r0, r2, r3
	ldr	r3, .L10+28
	smull	r2, r3, r1, r3
	asr	r2, r3, #5
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
	str	r2, [r0]
	ldr	r3, .L10+20
	ldr	r0, [r3]
	ldr	r3, .L10+16
	ldr	r2, [r3, #24]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L10+32
	bl	fprintf
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L4:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L5
	ldr	r0, .L10+16
	bl	pthread_mutex_unlock
	ldr	r3, .L10+20
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	sub	r3, fp, #16
	mov	r0, r3
	bl	threadedMergeSort
	ldr	r3, .L10+20
	ldr	r3, [r3]
	mov	r2, #21
	mov	r1, #1
	ldr	r0, .L10+36
	bl	fwrite
	ldr	r0, .L10+16
	bl	pthread_mutex_lock
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L6
.L7:
	ldr	r3, .L10+20
	ldr	r0, [r3]
	ldr	r3, .L10+16
	ldr	r2, [r3, #24]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L10+32
	bl	fprintf
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L6:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L7
	ldr	r0, .L10+16
	bl	pthread_mutex_unlock
	ldr	r3, .L10+20
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	mov	r3, #0
.L8:
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC4
	.word	stderr
	.word	.LC0
	.word	t
	.word	V
	.word	stdout
	.word	.LC1
	.word	1374389535
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.section	.rodata
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	threadedMergeSort
	.syntax unified
	.arm
	.fpu softvfp
	.type	threadedMergeSort, %function
threadedMergeSort:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-32]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	bge	.L13
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-36]
	sub	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-36]
	add	r3, r3, r2
	str	r3, [fp, #-28]
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-36]
	sub	r2, r2, r3
	ldr	r3, .L18+4
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L14
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-20]
	sub	r3, fp, #24
	sub	r0, fp, #52
	ldr	r2, .L18+8
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-12]
	sub	r3, fp, #16
	sub	r0, fp, #48
	ldr	r2, .L18+8
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-52]
	sub	r2, fp, #44
	mov	r1, r2
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-48]
	sub	r2, fp, #44
	mov	r1, r2
	mov	r0, r3
	bl	pthread_join
	b	.L15
.L14:
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-12]
	sub	r3, fp, #24
	mov	r0, r3
	bl	threadedMergeSort
	sub	r3, fp, #16
	mov	r0, r3
	bl	threadedMergeSort
.L15:
	ldr	r0, .L18+12
	bl	pthread_mutex_lock
	ldr	r3, .L18+12
	ldr	r0, [r3, #24]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-36]
	bl	merge
	ldr	r0, .L18+12
	bl	pthread_mutex_unlock
.L13:
	mov	r3, #0
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC5
	.word	t
	.word	threadedMergeSort
	.word	V
	.size	threadedMergeSort, .-threadedMergeSort
	.section	.rodata
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	merge
	.syntax unified
	.arm
	.fpu softvfp
	.type	merge, %function
merge:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	str	r3, [fp, #-60]
	ldr	r3, .L35
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, sp
	mov	lr, r3
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-52]
	sub	r3, r2, r3
	add	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-56]
	sub	r3, r2, r3
	str	r3, [fp, #-28]
	ldr	ip, [fp, #-32]
	sub	r3, ip, #1
	str	r3, [fp, #-24]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-20]
	ldr	ip, [fp, #-28]
	sub	r3, ip, #1
	str	r3, [fp, #-16]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L21
.L22:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-36]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L21:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	ble	.L22
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L23
.L24:
	ldr	r3, [fp, #-56]
	add	r2, r3, #1
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-40]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L23:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	ble	.L24
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-44]
	b	.L25
.L28:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-36]
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, [fp, #-12]
	ldr	r1, [fp, #-40]
	ldr	r3, [r3, r1, lsl #2]
	cmp	r2, r3
	bgt	.L26
	ldr	r3, [fp, #-36]
	add	r2, r3, #1
	str	r2, [fp, #-36]
	ldr	r2, [fp, #-44]
	add	r1, r2, #1
	str	r1, [fp, #-44]
	lsl	r2, r2, #2
	ldr	r1, [fp, #-48]
	add	r2, r1, r2
	ldr	r1, [fp, #-20]
	ldr	r3, [r1, r3, lsl #2]
	str	r3, [r2]
	b	.L25
.L26:
	ldr	r3, [fp, #-40]
	add	r2, r3, #1
	str	r2, [fp, #-40]
	ldr	r2, [fp, #-44]
	add	r1, r2, #1
	str	r1, [fp, #-44]
	lsl	r2, r2, #2
	ldr	r1, [fp, #-48]
	add	r2, r1, r2
	ldr	r1, [fp, #-12]
	ldr	r3, [r1, r3, lsl #2]
	str	r3, [r2]
.L25:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	bge	.L29
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L28
	b	.L29
.L30:
	ldr	r3, [fp, #-36]
	add	r2, r3, #1
	str	r2, [fp, #-36]
	ldr	r2, [fp, #-44]
	add	r1, r2, #1
	str	r1, [fp, #-44]
	lsl	r2, r2, #2
	ldr	r1, [fp, #-48]
	add	r2, r1, r2
	ldr	r1, [fp, #-20]
	ldr	r3, [r1, r3, lsl #2]
	str	r3, [r2]
.L29:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L30
	b	.L31
.L32:
	ldr	r3, [fp, #-40]
	add	r2, r3, #1
	str	r2, [fp, #-40]
	ldr	r2, [fp, #-44]
	add	r1, r2, #1
	str	r1, [fp, #-44]
	lsl	r2, r2, #2
	ldr	r1, [fp, #-48]
	add	r2, r1, r2
	ldr	r1, [fp, #-12]
	ldr	r3, [r1, r3, lsl #2]
	str	r3, [r2]
.L31:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L32
	nop
	mov	sp, lr
	ldr	r3, .L35
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L34
	bl	__stack_chk_fail
.L34:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	.LC6
	.size	merge, .-merge
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
