	.file	"191134.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"-r"
.LC1:
	.string	"r+b"
.LC2:
	.string	"Sorting file %s ... "
.LC3:
	.string	"\nInvalid buffer size (%d).\n"
	.align 8
.LC4:
	.string	"\nCouldn't open index file for reading/writing."
	.align 8
.LC5:
	.string	"\nCannot allocate buffer (%d bytes).\n"
.LC6:
	.string	"done!"
	.align 8
.LC7:
	.string	"\nThere was a problem sorting the file."
	.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -32[rbp], 536870912
	mov	QWORD PTR -24[rbp], 0
	cmp	DWORD PTR -52[rbp], 1
	jg	.L2
	mov	eax, 0
	call	printUsage
	mov	eax, 1
	jmp	.L3
.L2:
	mov	DWORD PTR -36[rbp], 1
	jmp	.L4
.L7:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L5
	mov	eax, DWORD PTR -36[rbp]
	add	eax, 1
	cmp	DWORD PTR -52[rbp], eax
	jle	.L5
	add	DWORD PTR -36[rbp], 1
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	cdqe
	sal	rax, 20
	mov	QWORD PTR -32[rbp], rax
	jmp	.L6
.L5:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
.L6:
	add	DWORD PTR -36[rbp], 1
.L4:
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jl	.L7
	cmp	QWORD PTR -32[rbp], 0
	jg	.L8
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	printUsage
	mov	eax, 1
	jmp	.L3
.L8:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L9
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, 0
	call	printUsage
	mov	eax, 1
	jmp	.L3
.L9:
	mov	rax, QWORD PTR -32[rbp]
	shr	rax
	movabs	rdx, 5270498306774157605
	mul	rdx
	mov	rax, rdx
	shr	rax
	mov	QWORD PTR -16[rbp], rax
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	add	rax, rax
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L10
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	printUsage
	mov	eax, 1
	jmp	.L3
.L10:
	mov	rdx, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	sortFile
	test	eax, eax
	je	.L11
	lea	rdi, .LC6[rip]
	call	puts@PLT
	jmp	.L12
.L11:
	lea	rdi, .LC7[rip]
	call	puts@PLT
.L12:
	cmp	QWORD PTR -8[rbp], 0
	je	.L13
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
.L13:
	cmp	QWORD PTR -24[rbp], 0
	je	.L14
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L14:
	mov	eax, 0
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC8:
	.string	"Usage: sortidx [OPTIONS] <INDEX>\n\nOptions:\n-r n      'n' is the sort buffer size (memory) in megabytes"
	.text
	.globl	printUsage
	.type	printUsage, @function
printUsage:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC8[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	printUsage, .-printUsage
	.globl	sortFile
	.type	sortFile, @function
sortFile:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rcx, QWORD PTR -16[rbp]
	movabs	rdx, 5270498306774157605
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 2
	mov	rsi, rcx
	sar	rsi, 63
	sub	rax, rsi
	mov	rdx, rax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	add	rax, rax
	sub	rcx, rax
	mov	rdx, rcx
	test	rdx, rdx
	je	.L17
	mov	eax, 0
	jmp	.L18
.L17:
	mov	rcx, QWORD PTR -16[rbp]
	movabs	rdx, 5270498306774157605
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 2
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, -1[rax]
	mov	rcx, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	rdx, rsi
	mov	esi, 0
	mov	rdi, rax
	call	quickSortFile
	mov	eax, 1
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	sortFile, .-sortFile
	.globl	quickSortFile
	.type	quickSortFile, @function
quickSortFile:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	QWORD PTR -56[rbp], r8
	mov	rax, QWORD PTR -40[rbp]
	sub	rax, QWORD PTR -32[rbp]
	add	rax, 1
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 1
	jle	.L22
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -56[rbp]
	jg	.L21
	mov	rdi, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	loadFileToBuffer
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	quickSortMemory
	mov	rcx, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	writeBufferToFile
	jmp	.L22
.L21:
	mov	rdx, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	partitionFile
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	lea	rdi, -1[rax]
	mov	rcx, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rsi, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	rdx, rdi
	mov	rdi, rax
	call	quickSortFile
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, 1[rax]
	mov	rdi, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	quickSortFile
.L22:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	quickSortFile, .-quickSortFile
	.globl	partitionFile
	.type	partitionFile, @function
partitionFile:
.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, 112
	mov	QWORD PTR -88[rbp], rdi
	mov	QWORD PTR -96[rbp], rsi
	mov	QWORD PTR -104[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -104[rbp]
	sub	rax, QWORD PTR -96[rbp]
	mov	rdx, rax
	shr	rdx, 63
	add	rax, rdx
	sar	rax
	mov	rdx, rax
	mov	rax, QWORD PTR -96[rbp]
	add	rax, rdx
	mov	QWORD PTR -64[rbp], rax
	lea	rdx, -50[rbp]
	mov	rcx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	freadIndexEntryAt
	lea	rdx, -36[rbp]
	mov	rcx, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	freadIndexEntryAt
	lea	rdx, -50[rbp]
	mov	rcx, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	fwriteIndexEntryAt
	lea	rdx, -36[rbp]
	mov	rcx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	fwriteIndexEntryAt
	mov	rax, QWORD PTR -96[rbp]
	mov	QWORD PTR -80[rbp], rax
	mov	rax, QWORD PTR -96[rbp]
	mov	QWORD PTR -72[rbp], rax
	jmp	.L24
.L26:
	lea	rdx, -36[rbp]
	mov	rcx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	freadIndexEntryAt
	lea	rdx, -50[rbp]
	lea	rax, -36[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	hashcmp
	test	eax, eax
	jns	.L25
	lea	rdx, -22[rbp]
	mov	rcx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	freadIndexEntryAt
	lea	rdx, -36[rbp]
	mov	rcx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	fwriteIndexEntryAt
	lea	rdx, -22[rbp]
	mov	rcx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	fwriteIndexEntryAt
	add	QWORD PTR -80[rbp], 1
.L25:
	add	QWORD PTR -72[rbp], 1
.L24:
	mov	rax, QWORD PTR -72[rbp]
	cmp	rax, QWORD PTR -104[rbp]
	jl	.L26
	lea	rdx, -22[rbp]
	mov	rcx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	freadIndexEntryAt
	lea	rdx, -50[rbp]
	mov	rcx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	fwriteIndexEntryAt
	lea	rdx, -22[rbp]
	mov	rcx, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	fwriteIndexEntryAt
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	partitionFile, .-partitionFile
	.globl	quickSortMemory
	.type	quickSortMemory, @function
quickSortMemory:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -40[rbp]
	sub	rax, QWORD PTR -32[rbp]
	add	rax, 1
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 1
	jle	.L32
	cmp	QWORD PTR -16[rbp], 16
	jg	.L31
	mov	rdx, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	insertionSortMemory
	jmp	.L32
.L31:
	mov	rdx, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	partitionMemory
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, -1[rax]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	quickSortMemory
	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	quickSortMemory
.L32:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	quickSortMemory, .-quickSortMemory
	.globl	partitionMemory
	.type	partitionMemory, @function
partitionMemory:
.LFB12:
	.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 -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	QWORD PTR -88[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -88[rbp]
	sub	rax, QWORD PTR -80[rbp]
	mov	rdx, rax
	shr	rdx, 63
	add	rax, rdx
	sar	rax
	mov	rdx, rax
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	QWORD PTR -48[rbp], rax
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	QWORD PTR -36[rbp], rdx
	mov	edx, DWORD PTR 8[rax]
	mov	DWORD PTR -28[rbp], edx
	movzx	eax, WORD PTR 12[rax]
	mov	WORD PTR -24[rbp], ax
	mov	rdx, QWORD PTR -88[rbp]
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	rax, QWORD PTR -72[rbp]
	add	rdx, rax
	mov	rcx, QWORD PTR -48[rbp]
	mov	rax, rcx
	sal	rax, 3
	sub	rax, rcx
	add	rax, rax
	mov	rcx, rax
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	QWORD PTR [rax], rcx
	mov	ecx, DWORD PTR 8[rdx]
	mov	DWORD PTR 8[rax], ecx
	movzx	edx, WORD PTR 12[rdx]
	mov	WORD PTR 12[rax], dx
	mov	rdx, QWORD PTR -88[rbp]
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR -36[rbp]
	mov	QWORD PTR [rax], rdx
	mov	edx, DWORD PTR -28[rbp]
	mov	DWORD PTR 8[rax], edx
	movzx	edx, WORD PTR -24[rbp]
	mov	WORD PTR 12[rax], dx
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR -56[rbp], rax
	jmp	.L34
.L36:
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	rdx, rax
	lea	rax, -36[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	hashcmp
	test	eax, eax
	jns	.L35
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	QWORD PTR -22[rbp], rdx
	mov	edx, DWORD PTR 8[rax]
	mov	DWORD PTR -14[rbp], edx
	movzx	eax, WORD PTR 12[rax]
	mov	WORD PTR -10[rbp], ax
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	rax, QWORD PTR -72[rbp]
	add	rdx, rax
	mov	rcx, QWORD PTR -56[rbp]
	mov	rax, rcx
	sal	rax, 3
	sub	rax, rcx
	add	rax, rax
	mov	rcx, rax
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	QWORD PTR [rax], rcx
	mov	ecx, DWORD PTR 8[rdx]
	mov	DWORD PTR 8[rax], ecx
	movzx	edx, WORD PTR 12[rdx]
	mov	WORD PTR 12[rax], dx
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR -22[rbp]
	mov	QWORD PTR [rax], rdx
	mov	edx, DWORD PTR -14[rbp]
	mov	DWORD PTR 8[rax], edx
	movzx	edx, WORD PTR -10[rbp]
	mov	WORD PTR 12[rax], dx
	add	QWORD PTR -64[rbp], 1
.L35:
	add	QWORD PTR -56[rbp], 1
.L34:
	mov	rax, QWORD PTR -56[rbp]
	cmp	rax, QWORD PTR -88[rbp]
	jl	.L36
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	QWORD PTR -22[rbp], rdx
	mov	edx, DWORD PTR 8[rax]
	mov	DWORD PTR -14[rbp], edx
	movzx	eax, WORD PTR 12[rax]
	mov	WORD PTR -10[rbp], ax
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR -36[rbp]
	mov	QWORD PTR [rax], rdx
	mov	edx, DWORD PTR -28[rbp]
	mov	DWORD PTR 8[rax], edx
	movzx	edx, WORD PTR -24[rbp]
	mov	WORD PTR 12[rax], dx
	mov	rdx, QWORD PTR -88[rbp]
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR -22[rbp]
	mov	QWORD PTR [rax], rdx
	mov	edx, DWORD PTR -14[rbp]
	mov	DWORD PTR 8[rax], edx
	movzx	edx, WORD PTR -10[rbp]
	mov	WORD PTR 12[rax], dx
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	partitionMemory, .-partitionMemory
	.globl	insertionSortMemory
	.type	insertionSortMemory, @function
insertionSortMemory:
.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, 80
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -72[rbp]
	sub	rax, QWORD PTR -64[rbp]
	add	rax, 1
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -48[rbp], 0
	jmp	.L40
.L44:
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rdx, rax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	QWORD PTR -22[rbp], rdx
	mov	edx, DWORD PTR 8[rax]
	mov	DWORD PTR -14[rbp], edx
	movzx	eax, WORD PTR 12[rax]
	mov	WORD PTR -10[rbp], ax
	mov	rax, QWORD PTR -48[rbp]
	sub	rax, 1
	mov	QWORD PTR -40[rbp], rax
	jmp	.L41
.L43:
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rdx, rax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	lea	rcx, 1[rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rcx
	mov	rcx, rax
	mov	rax, rcx
	sal	rax, 3
	sub	rax, rcx
	add	rax, rax
	mov	rcx, rax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	QWORD PTR [rax], rcx
	mov	ecx, DWORD PTR 8[rdx]
	mov	DWORD PTR 8[rax], ecx
	movzx	edx, WORD PTR 12[rdx]
	mov	WORD PTR 12[rax], dx
	sub	QWORD PTR -40[rbp], 1
.L41:
	cmp	QWORD PTR -40[rbp], 0
	js	.L42
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rdx, rax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	rdx, rax
	lea	rax, -22[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	hashcmp
	test	eax, eax
	jg	.L43
.L42:
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rdx, rax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR -22[rbp]
	mov	QWORD PTR [rax], rdx
	mov	edx, DWORD PTR -14[rbp]
	mov	DWORD PTR 8[rax], edx
	movzx	edx, WORD PTR -10[rbp]
	mov	WORD PTR 12[rax], dx
	add	QWORD PTR -48[rbp], 1
.L40:
	mov	rax, QWORD PTR -48[rbp]
	cmp	rax, QWORD PTR -32[rbp]
	jl	.L44
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L45
	call	__stack_chk_fail@PLT
.L45:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	insertionSortMemory, .-insertionSortMemory
	.globl	hashcmp
	.type	hashcmp, @function
hashcmp:
.LFB14:
	.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 -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L47
.L51:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jbe	.L48
	mov	eax, 1
	jmp	.L49
.L48:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jnb	.L50
	mov	eax, -1
	jmp	.L49
.L50:
	add	DWORD PTR -4[rbp], 1
.L47:
	cmp	DWORD PTR -4[rbp], 7
	jle	.L51
	mov	eax, 0
.L49:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	hashcmp, .-hashcmp
	.globl	loadFileToBuffer
	.type	loadFileToBuffer, @function
loadFileToBuffer:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	QWORD PTR -56[rbp], r8
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	QWORD PTR -8[rbp], 0
	jmp	.L53
.L55:
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	rcx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	freadIndexEntryAt
	add	QWORD PTR -16[rbp], 1
	add	QWORD PTR -8[rbp], 1
.L53:
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -48[rbp]
	jg	.L56
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -56[rbp]
	jl	.L55
.L56:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	loadFileToBuffer, .-loadFileToBuffer
	.globl	writeBufferToFile
	.type	writeBufferToFile, @function
writeBufferToFile:
.LFB16:
	.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	QWORD PTR -48[rbp], rcx
	mov	QWORD PTR -8[rbp], 0
	jmp	.L58
.L59:
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	rcx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rcx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	fwriteIndexEntryAt
	add	QWORD PTR -8[rbp], 1
.L58:
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -48[rbp]
	jl	.L59
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	writeBufferToFile, .-writeBufferToFile
	.globl	freadIndexEntryAt
	.type	freadIndexEntryAt, @function
freadIndexEntryAt:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	add	rax, rax
	mov	rcx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rcx, rdx
	mov	edx, 8
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	rax, QWORD PTR -24[rbp]
	lea	rdi, 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 6
	mov	esi, 1
	call	fread@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	freadIndexEntryAt, .-freadIndexEntryAt
	.globl	fwriteIndexEntryAt
	.type	fwriteIndexEntryAt, @function
fwriteIndexEntryAt:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	add	rax, rax
	mov	rcx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rcx, rdx
	mov	edx, 8
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -24[rbp]
	lea	rdi, 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 6
	mov	esi, 1
	call	fwrite@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	fwriteIndexEntryAt, .-fwriteIndexEntryAt
	.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	"191134.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"-r\000"
	.align	2
.LC1:
	.ascii	"r+b\000"
	.align	2
.LC2:
	.ascii	"Sorting file %s ... \000"
	.align	2
.LC3:
	.ascii	"\012Invalid buffer size (%d).\012\000"
	.align	2
.LC4:
	.ascii	"\012Couldn't open index file for reading/writing.\000"
	.global	__aeabi_ldivmod
	.align	2
.LC5:
	.ascii	"\012Cannot allocate buffer (%d bytes).\012\000"
	.align	2
.LC6:
	.ascii	"done!\000"
	.align	2
.LC7:
	.ascii	"\012There was a problem sorting the file.\000"
	.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, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #40
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	mov	r2, #536870912
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-56]
	cmp	r3, #1
	bgt	.L2
	bl	printUsage
	mov	r3, #1
	b	.L3
.L2:
	mov	r3, #1
	str	r3, [fp, #-48]
	b	.L4
.L7:
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L15
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	ble	.L5
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	mov	r0, r3
	asr	r1, r0, #31
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #20
	orr	r3, r3, r0, lsr #12
	lsl	r2, r0, #20
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	b	.L6
.L5:
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L15+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L15+8
	bl	printf
	ldr	r3, .L15+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
.L6:
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L4:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	blt	.L7
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	cmp	r2, #1
	sbcs	r3, r3, #0
	bge	.L8
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	ldr	r0, .L15+16
	bl	printf
	bl	printUsage
	mov	r3, #1
	b	.L3
.L8:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L9
	ldr	r0, .L15+20
	bl	puts
	bl	printUsage
	mov	r3, #1
	b	.L3
.L9:
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	mov	r2, #14
	mov	r3, #0
	bl	__aeabi_ldivmod
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	sub	r5, fp, #28
	ldmia	r5, {r4-r5}
	mov	r2, r4
	mov	r3, r5
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #3
	orr	r1, r1, r2, lsr #29
	lsl	r0, r2, #3
	mov	r2, r0
	mov	r3, r1
	subs	r2, r2, r4
	sbc	r3, r3, r5
	adds	r6, r2, r2
	adc	r7, r3, r3
	mov	r2, r6
	mov	r3, r7
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-36]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L10
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	ldr	r0, .L15+24
	bl	printf
	bl	printUsage
	mov	r3, #1
	b	.L3
.L10:
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-44]
	bl	sortFile
	mov	r3, r0
	cmp	r3, #0
	beq	.L11
	ldr	r0, .L15+28
	bl	puts
	b	.L12
.L11:
	ldr	r0, .L15+32
	bl	puts
.L12:
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L13
	ldr	r0, [fp, #-40]
	bl	free
.L13:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L14
	ldr	r0, [fp, #-44]
	bl	fclose
.L14:
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	stdout
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.section	.rodata
	.align	2
.LC8:
	.ascii	"Usage: sortidx [OPTIONS] <INDEX>\012\012Options:\012"
	.ascii	"-r n      'n' is the sort buffer size (memory) in m"
	.ascii	"egabytes\000"
	.text
	.align	2
	.global	printUsage
	.syntax unified
	.arm
	.fpu softvfp
	.type	printUsage, %function
printUsage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L18
	bl	puts
	nop
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC8
	.size	printUsage, .-printUsage
	.align	2
	.global	sortFile
	.syntax unified
	.arm
	.fpu softvfp
	.type	sortFile, %function
sortFile:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #56
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-32]
	bl	fseek
	ldr	r0, [fp, #-32]
	bl	ftell
	mov	r3, r0
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	mov	r2, #14
	mov	r3, #0
	bl	__aeabi_ldivmod
	orrs	r3, r2, r3
	beq	.L21
	mov	r3, #0
	b	.L22
.L21:
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	mov	r2, #14
	mov	r3, #0
	bl	__aeabi_ldivmod
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	subs	r4, r2, #1
	sbc	r5, r3, #0
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	str	r2, [sp, #16]
	str	r3, [sp, #20]
	ldr	r3, [fp, #-36]
	str	r3, [sp, #8]
	stm	sp, {r4-r5}
	mov	r2, #0
	mov	r3, #0
	ldr	r0, [fp, #-32]
	bl	quickSortFile
	mov	r3, #1
.L22:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	sortFile, .-sortFile
	.align	2
	.global	quickSortFile
	.syntax unified
	.arm
	.fpu softvfp
	.type	quickSortFile, %function
quickSortFile:
	@ args = 24, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #72
	str	r0, [fp, #-48]
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	ldmib	fp, {r0-r1}
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	subs	r4, r0, r2
	sbc	r5, r1, r3
	adds	r3, r4, #1
	str	r3, [fp, #-76]
	adc	r3, r5, #0
	str	r3, [fp, #-72]
	sub	r4, fp, #76
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-44]
	str	r4, [fp, #-40]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	cmp	r2, #2
	sbcs	r3, r3, #0
	blt	.L26
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	add	r1, fp, #20
	ldmia	r1, {r0-r1}
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L25
	add	r3, fp, #20
	ldmia	r3, {r2-r3}
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	ldmib	fp, {r2-r3}
	stm	sp, {r2-r3}
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #12]
	ldr	r0, [fp, #-48]
	bl	loadFileToBuffer
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	subs	r8, r2, #1
	sbc	r9, r3, #0
	stm	sp, {r8-r9}
	mov	r2, #0
	mov	r3, #0
	ldr	r0, [fp, #12]
	bl	quickSortMemory
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #12]
	ldr	r0, [fp, #-48]
	bl	writeBufferToFile
	b	.L26
.L25:
	ldmib	fp, {r2-r3}
	stm	sp, {r2-r3}
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	ldr	r0, [fp, #-48]
	bl	partitionFile
	str	r0, [fp, #-36]
	str	r1, [fp, #-32]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	subs	r6, r2, #1
	sbc	r7, r3, #0
	add	r3, fp, #20
	ldmia	r3, {r2-r3}
	str	r2, [sp, #16]
	str	r3, [sp, #20]
	ldr	r3, [fp, #12]
	str	r3, [sp, #8]
	stm	sp, {r6-r7}
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	ldr	r0, [fp, #-48]
	bl	quickSortFile
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	adds	r1, r2, #1
	str	r1, [fp, #-68]
	adc	r3, r3, #0
	str	r3, [fp, #-64]
	add	r3, fp, #20
	ldmia	r3, {r2-r3}
	str	r2, [sp, #16]
	str	r3, [sp, #20]
	ldr	r3, [fp, #12]
	str	r3, [sp, #8]
	ldmib	fp, {r2-r3}
	stm	sp, {r2-r3}
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	ldr	r0, [fp, #-48]
	bl	quickSortFile
.L26:
	nop
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
	.size	quickSortFile, .-quickSortFile
	.section	.rodata
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	partitionFile
	.syntax unified
	.arm
	.fpu softvfp
	.type	partitionFile, %function
partitionFile:
	@ args = 8, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #120
	str	r0, [fp, #-112]
	str	r2, [fp, #-124]
	str	r3, [fp, #-120]
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	ldmib	fp, {r0-r1}
	sub	r3, fp, #124
	ldmia	r3, {r2-r3}
	subs	r6, r0, r2
	sbc	r7, r1, r3
	lsr	r3, r7, #31
	mov	r2, r3
	mov	r3, #0
	adds	r4, r2, r6
	adc	r5, r3, r7
	mov	r2, #0
	mov	r3, #0
	lsr	r2, r4, #1
	orr	r2, r2, r5, lsl #31
	asr	r3, r5, #1
	mov	r0, r2
	mov	r1, r3
	sub	r3, fp, #124
	ldmia	r3, {r2-r3}
	adds	ip, r2, r0
	str	ip, [fp, #-132]
	adc	r3, r3, r1
	str	r3, [fp, #-128]
	sub	r4, fp, #132
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-92]
	str	r4, [fp, #-88]
	sub	r3, fp, #80
	str	r3, [sp]
	sub	r3, fp, #92
	ldmia	r3, {r2-r3}
	ldr	r0, [fp, #-112]
	bl	freadIndexEntryAt
	sub	r3, fp, #64
	str	r3, [sp]
	ldmib	fp, {r2-r3}
	ldr	r0, [fp, #-112]
	bl	freadIndexEntryAt
	sub	r3, fp, #80
	str	r3, [sp]
	ldmib	fp, {r2-r3}
	ldr	r0, [fp, #-112]
	bl	fwriteIndexEntryAt
	sub	r3, fp, #64
	str	r3, [sp]
	sub	r3, fp, #92
	ldmia	r3, {r2-r3}
	ldr	r0, [fp, #-112]
	bl	fwriteIndexEntryAt
	sub	r3, fp, #124
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-108]
	str	r3, [fp, #-104]
	sub	r3, fp, #124
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-100]
	str	r3, [fp, #-96]
	b	.L28
.L30:
	sub	r3, fp, #64
	str	r3, [sp]
	sub	r3, fp, #100
	ldmia	r3, {r2-r3}
	ldr	r0, [fp, #-112]
	bl	freadIndexEntryAt
	sub	r2, fp, #80
	sub	r3, fp, #64
	mov	r1, r2
	mov	r0, r3
	bl	hashcmp
	mov	r3, r0
	cmp	r3, #0
	bge	.L29
	sub	r3, fp, #48
	str	r3, [sp]
	sub	r3, fp, #108
	ldmia	r3, {r2-r3}
	ldr	r0, [fp, #-112]
	bl	freadIndexEntryAt
	sub	r3, fp, #64
	str	r3, [sp]
	sub	r3, fp, #108
	ldmia	r3, {r2-r3}
	ldr	r0, [fp, #-112]
	bl	fwriteIndexEntryAt
	sub	r3, fp, #48
	str	r3, [sp]
	sub	r3, fp, #100
	ldmia	r3, {r2-r3}
	ldr	r0, [fp, #-112]
	bl	fwriteIndexEntryAt
	sub	r3, fp, #108
	ldmia	r3, {r2-r3}
	adds	r8, r2, #1
	adc	r9, r3, #0
	str	r8, [fp, #-108]
	str	r9, [fp, #-104]
.L29:
	sub	r3, fp, #100
	ldmia	r3, {r2-r3}
	adds	r1, r2, #1
	str	r1, [fp, #-140]
	adc	r3, r3, #0
	str	r3, [fp, #-136]
	sub	r4, fp, #140
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-100]
	str	r4, [fp, #-96]
.L28:
	sub	r1, fp, #100
	ldmia	r1, {r0-r1}
	ldmib	fp, {r2-r3}
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L30
	sub	r3, fp, #48
	str	r3, [sp]
	sub	r3, fp, #108
	ldmia	r3, {r2-r3}
	ldr	r0, [fp, #-112]
	bl	freadIndexEntryAt
	sub	r3, fp, #80
	str	r3, [sp]
	sub	r3, fp, #108
	ldmia	r3, {r2-r3}
	ldr	r0, [fp, #-112]
	bl	fwriteIndexEntryAt
	sub	r3, fp, #48
	str	r3, [sp]
	ldmib	fp, {r2-r3}
	ldr	r0, [fp, #-112]
	bl	fwriteIndexEntryAt
	sub	r3, fp, #108
	ldmia	r3, {r2-r3}
	ldr	r1, .L33
	ldr	r0, [r1]
	ldr	r1, [fp, #-32]
	eors	r0, r1, r0
	mov	r1, #0
	beq	.L32
	bl	__stack_chk_fail
.L32:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC9
	.size	partitionFile, .-partitionFile
	.align	2
	.global	quickSortMemory
	.syntax unified
	.arm
	.fpu softvfp
	.type	quickSortMemory, %function
quickSortMemory:
	@ args = 8, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	ldmib	fp, {r0-r1}
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	subs	r4, r0, r2
	sbc	r5, r1, r3
	adds	r8, r4, #1
	adc	r9, r5, #0
	str	r8, [fp, #-44]
	str	r9, [fp, #-40]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	cmp	r2, #2
	sbcs	r3, r3, #0
	blt	.L38
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	cmp	r2, #17
	sbcs	r3, r3, #0
	bge	.L37
	ldmib	fp, {r2-r3}
	stm	sp, {r2-r3}
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	ldr	r0, [fp, #-48]
	bl	insertionSortMemory
	b	.L38
.L37:
	ldmib	fp, {r2-r3}
	stm	sp, {r2-r3}
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	ldr	r0, [fp, #-48]
	bl	partitionMemory
	str	r0, [fp, #-36]
	str	r1, [fp, #-32]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	subs	r6, r2, #1
	sbc	r7, r3, #0
	stm	sp, {r6-r7}
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	ldr	r0, [fp, #-48]
	bl	quickSortMemory
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	adds	r1, r2, #1
	str	r1, [fp, #-68]
	adc	r3, r3, #0
	str	r3, [fp, #-64]
	ldmib	fp, {r2-r3}
	stm	sp, {r2-r3}
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	ldr	r0, [fp, #-48]
	bl	quickSortMemory
.L38:
	nop
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
	.size	quickSortMemory, .-quickSortMemory
	.section	.rodata
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	partitionMemory
	.syntax unified
	.arm
	.fpu softvfp
	.type	partitionMemory, %function
partitionMemory:
	@ args = 8, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #96
	str	r0, [fp, #-96]
	str	r2, [fp, #-108]
	str	r3, [fp, #-104]
	ldr	r3, .L45
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	ldmib	fp, {r0-r1}
	sub	r3, fp, #108
	ldmia	r3, {r2-r3}
	subs	r6, r0, r2
	sbc	r7, r1, r3
	lsr	r3, r7, #31
	mov	r2, r3
	mov	r3, #0
	adds	r4, r2, r6
	adc	r5, r3, r7
	mov	r2, #0
	mov	r3, #0
	lsr	r2, r4, #1
	orr	r2, r2, r5, lsl #31
	asr	r3, r5, #1
	mov	r0, r2
	mov	r1, r3
	sub	r3, fp, #108
	ldmia	r3, {r2-r3}
	adds	ip, r2, r0
	str	ip, [fp, #-116]
	adc	r3, r3, r1
	str	r3, [fp, #-112]
	sub	r4, fp, #116
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-76]
	str	r4, [fp, #-72]
	ldr	r2, [fp, #-76]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-96]
	add	r2, r3, r2
	sub	r3, fp, #64
	mov	r1, r2
	mov	r2, #14
	mov	r0, r3
	bl	memcpy
	ldr	r2, [fp, #4]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-96]
	add	r1, r3, r2
	ldr	r2, [fp, #-76]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-96]
	add	r3, r3, r2
	mov	r0, r3
	mov	r3, #14
	mov	r2, r3
	bl	memcpy
	ldr	r2, [fp, #4]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-96]
	add	r3, r3, r2
	mov	r0, r3
	sub	r3, fp, #64
	mov	r2, #14
	mov	r1, r3
	bl	memcpy
	sub	r3, fp, #108
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-92]
	str	r3, [fp, #-88]
	sub	r3, fp, #108
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-84]
	str	r3, [fp, #-80]
	b	.L40
.L42:
	ldr	r2, [fp, #-84]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-96]
	add	r3, r3, r2
	mov	r2, r3
	sub	r3, fp, #64
	mov	r1, r3
	mov	r0, r2
	bl	hashcmp
	mov	r3, r0
	cmp	r3, #0
	bge	.L41
	ldr	r2, [fp, #-84]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-96]
	add	r2, r3, r2
	sub	r3, fp, #48
	mov	r1, r2
	mov	r2, #14
	mov	r0, r3
	bl	memcpy
	ldr	r2, [fp, #-92]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-96]
	add	r1, r3, r2
	ldr	r2, [fp, #-84]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-96]
	add	r3, r3, r2
	mov	r0, r3
	mov	r3, #14
	mov	r2, r3
	bl	memcpy
	ldr	r2, [fp, #-92]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-96]
	add	r3, r3, r2
	mov	r0, r3
	sub	r3, fp, #48
	mov	r2, #14
	mov	r1, r3
	bl	memcpy
	sub	r3, fp, #92
	ldmia	r3, {r2-r3}
	adds	r8, r2, #1
	adc	r9, r3, #0
	str	r8, [fp, #-92]
	str	r9, [fp, #-88]
.L41:
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	adds	r1, r2, #1
	str	r1, [fp, #-124]
	adc	r3, r3, #0
	str	r3, [fp, #-120]
	sub	r4, fp, #124
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-84]
	str	r4, [fp, #-80]
.L40:
	sub	r1, fp, #84
	ldmia	r1, {r0-r1}
	ldmib	fp, {r2-r3}
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L42
	ldr	r2, [fp, #-92]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-96]
	add	r2, r3, r2
	sub	r3, fp, #48
	mov	r1, r2
	mov	r2, #14
	mov	r0, r3
	bl	memcpy
	ldr	r2, [fp, #-92]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-96]
	add	r3, r3, r2
	mov	r0, r3
	sub	r3, fp, #64
	mov	r2, #14
	mov	r1, r3
	bl	memcpy
	ldr	r2, [fp, #4]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-96]
	add	r3, r3, r2
	mov	r0, r3
	sub	r3, fp, #48
	mov	r2, #14
	mov	r1, r3
	bl	memcpy
	sub	r3, fp, #92
	ldmia	r3, {r2-r3}
	ldr	r1, .L45
	ldr	r0, [r1]
	ldr	r1, [fp, #-32]
	eors	r0, r1, r0
	mov	r1, #0
	beq	.L44
	bl	__stack_chk_fail
.L44:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L46:
	.align	2
.L45:
	.word	.LC10
	.size	partitionMemory, .-partitionMemory
	.section	.rodata
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	insertionSortMemory
	.syntax unified
	.arm
	.fpu softvfp
	.type	insertionSortMemory, %function
insertionSortMemory:
	@ args = 8, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #80
	str	r0, [fp, #-80]
	str	r2, [fp, #-92]
	str	r3, [fp, #-88]
	ldr	r3, .L54
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	ldmib	fp, {r0-r1}
	sub	r3, fp, #92
	ldmia	r3, {r2-r3}
	subs	r4, r0, r2
	sbc	r5, r1, r3
	adds	r3, r4, #1
	str	r3, [fp, #-100]
	adc	r3, r5, #0
	str	r3, [fp, #-96]
	sub	r4, fp, #100
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-60]
	str	r4, [fp, #-56]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	b	.L48
.L52:
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-92]
	add	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-80]
	add	r2, r3, r2
	sub	r3, fp, #48
	mov	r1, r2
	mov	r2, #14
	mov	r0, r3
	bl	memcpy
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	subs	r6, r2, #1
	sbc	r7, r3, #0
	str	r6, [fp, #-68]
	str	r7, [fp, #-64]
	b	.L49
.L51:
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-92]
	add	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-80]
	add	r1, r3, r2
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-92]
	add	r3, r2, r3
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-80]
	add	r3, r3, r2
	mov	r0, r3
	mov	r3, #14
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	subs	r8, r2, #1
	sbc	r9, r3, #0
	str	r8, [fp, #-68]
	str	r9, [fp, #-64]
.L49:
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	cmp	r2, #0
	sbcs	r3, r3, #0
	blt	.L50
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-92]
	add	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-80]
	add	r3, r3, r2
	mov	r2, r3
	sub	r3, fp, #48
	mov	r1, r3
	mov	r0, r2
	bl	hashcmp
	mov	r3, r0
	cmp	r3, #0
	bgt	.L51
.L50:
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-92]
	add	r3, r2, r3
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-80]
	add	r3, r3, r2
	mov	r0, r3
	sub	r3, fp, #48
	mov	r2, #14
	mov	r1, r3
	bl	memcpy
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	adds	r1, r2, #1
	str	r1, [fp, #-108]
	adc	r3, r3, #0
	str	r3, [fp, #-104]
	sub	r4, fp, #108
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-76]
	str	r4, [fp, #-72]
.L48:
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L52
	nop
	ldr	r3, .L54
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L53
	bl	__stack_chk_fail
.L53:
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L55:
	.align	2
.L54:
	.word	.LC11
	.size	insertionSortMemory, .-insertionSortMemory
	.align	2
	.global	hashcmp
	.syntax unified
	.arm
	.fpu softvfp
	.type	hashcmp, %function
hashcmp:
	@ 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, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L57
.L61:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-8]
	ldr	r1, [fp, #-20]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bls	.L58
	mov	r3, #1
	b	.L59
.L58:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-8]
	ldr	r1, [fp, #-20]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bcs	.L60
	mvn	r3, #0
	b	.L59
.L60:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L57:
	ldr	r3, [fp, #-8]
	cmp	r3, #7
	ble	.L61
	mov	r3, #0
.L59:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	hashcmp, .-hashcmp
	.align	2
	.global	loadFileToBuffer
	.syntax unified
	.arm
	.fpu softvfp
	.type	loadFileToBuffer, %function
loadFileToBuffer:
	@ args = 16, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	b	.L63
.L65:
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-44]
	add	r3, r3, r2
	str	r3, [sp]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	ldr	r0, [fp, #-40]
	bl	freadIndexEntryAt
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	adds	r4, r2, #1
	adc	r5, r3, #0
	str	r4, [fp, #-36]
	str	r5, [fp, #-32]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	adds	r6, r2, #1
	adc	r7, r3, #0
	str	r6, [fp, #-28]
	str	r7, [fp, #-24]
.L63:
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	ldmib	fp, {r0-r1}
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L66
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	add	r3, fp, #12
	ldmia	r3, {r2-r3}
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L65
.L66:
	nop
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
	.size	loadFileToBuffer, .-loadFileToBuffer
	.align	2
	.global	writeBufferToFile
	.syntax unified
	.arm
	.fpu softvfp
	.type	writeBufferToFile, %function
writeBufferToFile:
	@ args = 8, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	b	.L68
.L69:
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	adds	r6, r0, r2
	adc	r7, r1, r3
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-36]
	add	r3, r3, r2
	str	r3, [sp]
	mov	r2, r6
	mov	r3, r7
	ldr	r0, [fp, #-32]
	bl	fwriteIndexEntryAt
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	adds	r4, r2, #1
	adc	r5, r3, #0
	str	r4, [fp, #-28]
	str	r5, [fp, #-24]
.L68:
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	ldmib	fp, {r2-r3}
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L69
	nop
	nop
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
	.size	writeBufferToFile, .-writeBufferToFile
	.align	2
	.global	freadIndexEntryAt
	.syntax unified
	.arm
	.fpu softvfp
	.type	freadIndexEntryAt, %function
freadIndexEntryAt:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	fseek
	ldr	r0, [fp, #4]
	ldr	r3, [fp, #-8]
	mov	r2, #8
	mov	r1, #1
	bl	fread
	ldr	r3, [fp, #4]
	add	r0, r3, #8
	ldr	r3, [fp, #-8]
	mov	r2, #6
	mov	r1, #1
	bl	fread
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	freadIndexEntryAt, .-freadIndexEntryAt
	.align	2
	.global	fwriteIndexEntryAt
	.syntax unified
	.arm
	.fpu softvfp
	.type	fwriteIndexEntryAt, %function
fwriteIndexEntryAt:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	fseek
	ldr	r0, [fp, #4]
	ldr	r3, [fp, #-8]
	mov	r2, #8
	mov	r1, #1
	bl	fwrite
	ldr	r3, [fp, #4]
	add	r0, r3, #8
	ldr	r3, [fp, #-8]
	mov	r2, #6
	mov	r1, #1
	bl	fwrite
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	fwriteIndexEntryAt, .-fwriteIndexEntryAt
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
