	.file	"343023.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
	.type	LRAND_MAX, @object
	.size	LRAND_MAX, 8
LRAND_MAX:
	.quad	4611686018427387903
	.globl	verbose
	.data
	.align 4
	.type	verbose, @object
	.size	verbose, 4
verbose:
	.long	2
	.globl	array_size
	.align 8
	.type	array_size, @object
	.size	array_size, 8
array_size:
	.quad	500000
	.globl	file_head
	.bss
	.align 8
	.type	file_head, @object
	.size	file_head, 8
file_head:
	.zero	8
	.globl	memory_limit
	.data
	.align 8
	.type	memory_limit, @object
	.size	memory_limit, 8
memory_limit:
	.long	0
	.long	1073741824
	.text
	.globl	scmp
	.type	scmp, @function
scmp:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	jmp	.L2
.L4:
	add	QWORD PTR -8[rbp], 1
	add	QWORD PTR -16[rbp], 1
.L2:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L3
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	je	.L4
.L3:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	edx, al
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	ecx, al
	mov	eax, edx
	sub	eax, ecx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	scmp, .-scmp
	.type	rand_long, @function
rand_long:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	movabs	rcx, 4611686018427387903
	movabs	rax, 4611686018427387903
	cqo
	idiv	QWORD PTR -40[rbp]
	mov	rax, rcx
	sub	rax, rdx
	mov	QWORD PTR -32[rbp], rax
.L7:
	call	rand@PLT
	cdqe
	sal	rax, 31
	mov	rbx, rax
	call	rand@PLT
	cdqe
	add	rax, rbx
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	cmp	rax, QWORD PTR -32[rbp]
	jge	.L7
	mov	rax, QWORD PTR -24[rbp]
	cqo
	idiv	QWORD PTR -40[rbp]
	mov	rax, rdx
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	rand_long, .-rand_long
	.globl	write_chunk
	.type	write_chunk, @function
write_chunk:
.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	QWORD PTR -8[rbp], 0
	mov	QWORD PTR -8[rbp], 0
	jmp	.L10
.L11:
	mov	rax, QWORD PTR -8[rbp]
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	lea	rdi, [rdx+rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 16
	call	fwrite@PLT
	add	QWORD PTR -8[rbp], 1
.L10:
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -32[rbp]
	jl	.L11
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	write_chunk, .-write_chunk
	.globl	shuffle
	.type	shuffle, @function
shuffle:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR -48[rbp]
	sub	rax, 1
	mov	QWORD PTR -32[rbp], rax
	jmp	.L14
.L15:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 1
	mov	rdi, rax
	call	rand_long
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	mov	QWORD PTR -8[rbp], rdx
	mov	rax, QWORD PTR -32[rbp]
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR -24[rbp]
	mov	rcx, rdx
	sal	rcx, 4
	mov	rdx, QWORD PTR -40[rbp]
	add	rcx, rdx
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR [rcx], rax
	mov	QWORD PTR 8[rcx], rdx
	mov	rax, QWORD PTR -32[rbp]
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rcx], rax
	mov	QWORD PTR 8[rcx], rdx
	sub	QWORD PTR -32[rbp], 1
.L14:
	cmp	QWORD PTR -32[rbp], 0
	jg	.L15
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	shuffle, .-shuffle
	.section	.rodata
.LC0:
	.string	"%s_%04d.bin"
.LC1:
	.string	"rb"
.LC2:
	.string	"Unable to open file %s.\n"
	.align 8
.LC3:
	.string	"Merging temp files: processed %ld lines."
.LC4:
	.string	"\033[31G%ld lines."
	.align 8
.LC5:
	.string	"\033[0GMerging temp files: processed %ld lines."
.LC6:
	.string	"\n\n"
	.text
	.globl	shuffle_merge
	.type	shuffle_merge, @function
shuffle_merge:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 1096
	.cfi_offset 3, -24
	mov	DWORD PTR -1092[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -1056[rbp], 0
	mov	DWORD PTR -1084[rbp], 0
	mov	rax, QWORD PTR stdout[rip]
	mov	QWORD PTR -1048[rbp], rax
	mov	eax, DWORD PTR -1092[rbp]
	cdqe
	mov	rdx, QWORD PTR array_size[rip]
	imul	rax, rdx
	sal	rax, 4
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -1040[rbp], rax
	mov	eax, DWORD PTR -1092[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	add	rax, rdx
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -1032[rbp], rax
	mov	DWORD PTR -1084[rbp], 0
	jmp	.L17
.L20:
	mov	rdx, QWORD PTR file_head[rip]
	mov	ecx, DWORD PTR -1084[rbp]
	lea	rax, -1024[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	eax, DWORD PTR -1084[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1032[rbp]
	lea	rbx, [rdx+rax]
	lea	rax, -1024[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR -1084[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1032[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L18
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -1024[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L35
.L18:
	add	DWORD PTR -1084[rbp], 1
.L17:
	mov	eax, DWORD PTR -1084[rbp]
	cmp	eax, DWORD PTR -1092[rbp]
	jl	.L20
	mov	eax, DWORD PTR verbose[rip]
	test	eax, eax
	jle	.L32
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -1056[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L32:
	mov	QWORD PTR -1080[rbp], 0
	mov	QWORD PTR -1072[rbp], 0
	jmp	.L22
.L28:
	mov	rax, QWORD PTR -1072[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1032[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jne	.L38
	mov	QWORD PTR -1064[rbp], 0
	jmp	.L25
.L27:
	mov	rax, QWORD PTR -1072[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1032[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -1080[rbp]
	mov	rcx, rdx
	sal	rcx, 4
	mov	rdx, QWORD PTR -1040[rbp]
	lea	rdi, [rcx+rdx]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 16
	call	fread@PLT
	mov	rax, QWORD PTR -1072[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1032[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jne	.L39
	add	QWORD PTR -1080[rbp], 1
	add	QWORD PTR -1064[rbp], 1
.L25:
	mov	rax, QWORD PTR array_size[rip]
	mov	edx, DWORD PTR -1092[rbp]
	movsx	rbx, edx
	cqo
	idiv	rbx
	cmp	QWORD PTR -1064[rbp], rax
	jl	.L27
	jmp	.L24
.L38:
	nop
	jmp	.L24
.L39:
	nop
.L24:
	add	QWORD PTR -1072[rbp], 1
.L22:
	mov	eax, DWORD PTR -1092[rbp]
	cdqe
	cmp	QWORD PTR -1072[rbp], rax
	jl	.L28
	cmp	QWORD PTR -1080[rbp], 0
	je	.L40
	mov	rax, QWORD PTR -1080[rbp]
	add	QWORD PTR -1056[rbp], rax
	mov	rax, QWORD PTR -1080[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -1040[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	shuffle
	mov	rdx, QWORD PTR -1048[rbp]
	mov	rcx, QWORD PTR -1080[rbp]
	mov	rax, QWORD PTR -1040[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	write_chunk
	mov	eax, DWORD PTR verbose[rip]
	test	eax, eax
	jle	.L32
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -1056[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L32
.L40:
	nop
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -1056[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -1084[rbp], 0
	jmp	.L33
.L34:
	mov	eax, DWORD PTR -1084[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1032[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	fclose@PLT
	mov	rdx, QWORD PTR file_head[rip]
	mov	ecx, DWORD PTR -1084[rbp]
	lea	rax, -1024[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -1024[rbp]
	mov	rdi, rax
	call	remove@PLT
	add	DWORD PTR -1084[rbp], 1
.L33:
	mov	eax, DWORD PTR -1084[rbp]
	cmp	eax, DWORD PTR -1092[rbp]
	jl	.L34
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -1040[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
.L35:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L36
	call	__stack_chk_fail@PLT
.L36:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	shuffle_merge, .-shuffle_merge
	.section	.rodata
.LC7:
	.string	"SHUFFLING COOCCURRENCES\n"
.LC8:
	.string	"array size: %lld\n"
.LC9:
	.string	"w"
	.align 8
.LC10:
	.string	"Shuffling by chunks: processed 0 lines."
.LC11:
	.string	"\033[22Gprocessed %ld lines."
.LC12:
	.string	"%d %d %f\n"
.LC13:
	.string	"\033[22Gprocessed %ld lines.\n"
.LC14:
	.string	"Wrote %d temporary file(s).\n"
	.text
	.globl	shuffle_by_chunks
	.type	shuffle_by_chunks, @function
shuffle_by_chunks:
.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, 1056
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -1048[rbp], 0
	mov	QWORD PTR -1040[rbp], 0
	mov	DWORD PTR -1052[rbp], 0
	mov	rax, QWORD PTR stdin[rip]
	mov	QWORD PTR -1024[rbp], rax
	mov	rax, QWORD PTR array_size[rip]
	sal	rax, 4
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -1016[rbp], rax
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 24
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	eax, DWORD PTR verbose[rip]
	test	eax, eax
	jle	.L42
	mov	rdx, QWORD PTR array_size[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L42:
	mov	rdx, QWORD PTR file_head[rip]
	mov	ecx, DWORD PTR -1052[rbp]
	lea	rax, -1008[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -1008[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -1032[rbp], rax
	cmp	QWORD PTR -1032[rbp], 0
	jne	.L43
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -1008[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L54
.L43:
	mov	eax, DWORD PTR verbose[rip]
	cmp	eax, 1
	jle	.L52
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 39
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
.L52:
	mov	rax, QWORD PTR array_size[rip]
	cmp	QWORD PTR -1048[rbp], rax
	jl	.L46
	mov	rax, QWORD PTR -1048[rbp]
	lea	rdx, -2[rax]
	mov	rax, QWORD PTR -1016[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	shuffle
	mov	rax, QWORD PTR -1048[rbp]
	add	QWORD PTR -1040[rbp], rax
	mov	eax, DWORD PTR verbose[rip]
	cmp	eax, 1
	jle	.L47
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -1040[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L47:
	mov	rdx, QWORD PTR -1032[rbp]
	mov	rcx, QWORD PTR -1048[rbp]
	mov	rax, QWORD PTR -1016[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	write_chunk
	mov	rax, QWORD PTR -1032[rbp]
	mov	rdi, rax
	call	fclose@PLT
	add	DWORD PTR -1052[rbp], 1
	mov	rdx, QWORD PTR file_head[rip]
	mov	ecx, DWORD PTR -1052[rbp]
	lea	rax, -1008[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -1008[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -1032[rbp], rax
	cmp	QWORD PTR -1032[rbp], 0
	jne	.L48
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -1008[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L54
.L48:
	mov	QWORD PTR -1048[rbp], 0
.L46:
	mov	rax, QWORD PTR -1048[rbp]
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -1016[rbp]
	add	rax, rdx
	lea	rdx, 4[rax]
	mov	rax, QWORD PTR -1048[rbp]
	sal	rax, 4
	mov	rcx, rax
	mov	rax, QWORD PTR -1016[rbp]
	add	rax, rcx
	mov	rsi, rax
	lea	rcx, -1056[rbp]
	mov	rax, QWORD PTR -1024[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	rdx, rsi
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	movss	xmm0, DWORD PTR -1056[rbp]
	mov	rax, QWORD PTR -1048[rbp]
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -1016[rbp]
	add	rax, rdx
	cvtss2sd	xmm0, xmm0
	movsd	QWORD PTR 8[rax], xmm0
	mov	rax, QWORD PTR -1024[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L49
	mov	rax, QWORD PTR -1048[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -1016[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	shuffle
	mov	rdx, QWORD PTR -1032[rbp]
	mov	rcx, QWORD PTR -1048[rbp]
	mov	rax, QWORD PTR -1016[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	write_chunk
	mov	rax, QWORD PTR -1048[rbp]
	add	QWORD PTR -1040[rbp], rax
	mov	eax, DWORD PTR verbose[rip]
	cmp	eax, 1
	jg	.L50
	jmp	.L51
.L49:
	add	QWORD PTR -1048[rbp], 1
	jmp	.L52
.L50:
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -1040[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L51:
	mov	eax, DWORD PTR verbose[rip]
	cmp	eax, 1
	jle	.L53
	mov	eax, DWORD PTR -1052[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L53:
	mov	rax, QWORD PTR -1032[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -1016[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -1052[rbp]
	add	eax, 1
	mov	edi, eax
	call	shuffle_merge
.L54:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L55
	call	__stack_chk_fail@PLT
.L55:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	shuffle_by_chunks, .-shuffle_by_chunks
	.section	.rodata
.LC15:
	.string	"No argument given for %s\n"
	.text
	.globl	find_arg
	.type	find_arg, @function
find_arg:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	QWORD PTR -40[rbp], rdx
	mov	DWORD PTR -4[rbp], 1
	jmp	.L57
.L61:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	scmp
	test	eax, eax
	jne	.L58
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	cmp	DWORD PTR -4[rbp], eax
	jne	.L59
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L59:
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L60
.L58:
	add	DWORD PTR -4[rbp], 1
.L57:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L61
	mov	eax, -1
.L60:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	find_arg, .-find_arg
	.section	.rodata
	.align 8
.LC16:
	.string	"Tool to shuffle entries of word-word cooccurrence files"
	.align 8
.LC17:
	.string	"Author: Jeffrey Pennington (jpennin@stanford.edu)\n"
.LC18:
	.string	"Usage options:"
.LC19:
	.string	"\t-verbose <int>"
	.align 8
.LC20:
	.string	"\t\tSet verbosity: 0, 1, or 2 (default)"
.LC21:
	.string	"\t-memory <float>"
	.align 8
.LC22:
	.string	"\t\tSoft limit for memory consumption, in GB; default 4.0"
.LC23:
	.string	"\t-array-size <int>"
	.align 8
.LC24:
	.string	"\t\tLimit to length <int> the buffer which stores chunks of data to shuffle before writing to disk. \n\t\tThis value overrides that which is automatically produced by '-memory'."
.LC25:
	.string	"\t-temp-file <file>"
	.align 8
.LC26:
	.string	"\t\tFilename, excluding extension, for temporary files; default temp_shuffle"
	.align 8
.LC27:
	.string	"\nExample usage: (assuming 'cooccurrence.bin' has been produced by 'coccur')"
	.align 8
.LC28:
	.string	"./shuffle -verbose 2 -memory 8.0 < cooccurrence.bin > cooccurrence.shuf.bin"
.LC29:
	.string	"-verbose"
.LC30:
	.string	"-temp-file"
.LC31:
	.string	"-memory"
.LC35:
	.string	"-array-size"
	.text
	.globl	main
	.type	main, @function
main:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	edi, 1000
	call	malloc@PLT
	mov	QWORD PTR file_head[rip], rax
	cmp	DWORD PTR -20[rbp], 1
	jne	.L63
	lea	rdi, .LC16[rip]
	call	puts@PLT
	lea	rdi, .LC17[rip]
	call	puts@PLT
	lea	rdi, .LC18[rip]
	call	puts@PLT
	lea	rdi, .LC19[rip]
	call	puts@PLT
	lea	rdi, .LC20[rip]
	call	puts@PLT
	lea	rdi, .LC21[rip]
	call	puts@PLT
	lea	rdi, .LC22[rip]
	call	puts@PLT
	lea	rdi, .LC23[rip]
	call	puts@PLT
	lea	rdi, .LC24[rip]
	call	puts@PLT
	lea	rdi, .LC25[rip]
	call	puts@PLT
	lea	rdi, .LC26[rip]
	call	puts@PLT
	lea	rdi, .LC27[rip]
	call	puts@PLT
	lea	rdi, .LC28[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L64
.L63:
	mov	rdx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC29[rip]
	call	find_arg
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jle	.L65
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR verbose[rip], eax
.L65:
	mov	rdx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC30[rip]
	call	find_arg
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jle	.L66
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR file_head[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	jmp	.L67
.L66:
	mov	rax, QWORD PTR file_head[rip]
	movabs	rcx, 8460138753760781684
	mov	QWORD PTR [rax], rcx
	mov	DWORD PTR 8[rax], 1701602918
	mov	BYTE PTR 12[rax], 0
.L67:
	mov	rdx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC31[rip]
	call	find_arg
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jle	.L68
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atof@PLT
	movq	rax, xmm0
	mov	QWORD PTR memory_limit[rip], rax
.L68:
	movsd	xmm1, QWORD PTR memory_limit[rip]
	movsd	xmm0, QWORD PTR .LC32[rip]
	mulsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC33[rip]
	mulsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR .LC34[rip]
	divsd	xmm0, xmm1
	cvttsd2si	rax, xmm0
	mov	QWORD PTR array_size[rip], rax
	mov	rdx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC35[rip]
	call	find_arg
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jle	.L69
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoll@PLT
	mov	QWORD PTR array_size[rip], rax
.L69:
	mov	eax, 0
	call	shuffle_by_chunks
.L64:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC32:
	.long	1717986918
	.long	1072588390
	.align 8
.LC33:
	.long	0
	.long	1104150528
	.align 8
.LC34:
	.long	0
	.long	1076887552
	.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	"343023.c"
	.text
	.section	.rodata
	.align	2
	.type	LRAND_MAX, %object
	.size	LRAND_MAX, 4
LRAND_MAX:
	.word	-1
	.global	verbose
	.data
	.align	2
	.type	verbose, %object
	.size	verbose, 4
verbose:
	.word	2
	.global	array_size
	.align	3
	.type	array_size, %object
	.size	array_size, 8
array_size:
	.word	500000
	.word	0
	.comm	file_head,4,4
	.global	memory_limit
	.align	3
	.type	memory_limit, %object
	.size	memory_limit, 8
memory_limit:
	.word	0
	.word	1073741824
	.text
	.align	2
	.global	scmp
	.syntax unified
	.arm
	.fpu softvfp
	.type	scmp, %function
scmp:
	@ 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]
	b	.L2
.L4:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L2:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L3
	ldr	r3, [fp, #-8]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L4
.L3:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r2, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	scmp, .-scmp
	.global	__aeabi_idivmod
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rand_long, %function
rand_long:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	mvn	r4, #0
	mvn	r3, #0
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	sub	r3, r4, r3
	str	r3, [fp, #-20]
.L7:
	bl	rand
	mov	r3, r0
	lsl	r3, r3, #31
	mov	r4, r3
	bl	rand
	mov	r3, r0
	add	r3, r4, r3
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bge	.L7
	ldr	r3, [fp, #-16]
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	rand_long, .-rand_long
	.align	2
	.global	write_chunk
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_chunk, %function
write_chunk:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L10
.L11:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-16]
	add	r0, r2, r3
	ldr	r3, [fp, #-24]
	mov	r2, #1
	mov	r1, #16
	bl	fwrite
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L10:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L11
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	write_chunk, .-write_chunk
	.align	2
	.global	shuffle
	.syntax unified
	.arm
	.fpu softvfp
	.type	shuffle, %function
shuffle:
	@ 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, [fp, #-36]
	sub	r3, r3, #1
	str	r3, [fp, #-28]
	b	.L14
.L15:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	mov	r0, r3
	bl	rand_long
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	sub	ip, fp, #20
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-32]
	add	r1, r2, r3
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	mov	ip, r3
	mov	r3, r1
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	mov	ip, r3
	sub	r3, fp, #20
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	str	r3, [fp, #-28]
.L14:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bgt	.L15
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	shuffle, .-shuffle
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s_%04d.bin\000"
	.align	2
.LC1:
	.ascii	"rb\000"
	.align	2
.LC2:
	.ascii	"Unable to open file %s.\012\000"
	.align	2
.LC3:
	.ascii	"Merging temp files: processed %ld lines.\000"
	.global	__aeabi_ldivmod
	.align	2
.LC4:
	.ascii	"\033[31G%ld lines.\000"
	.align	2
.LC5:
	.ascii	"\033[0GMerging temp files: processed %ld lines.\000"
	.align	2
.LC6:
	.ascii	"\012\012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	shuffle_merge
	.syntax unified
	.arm
	.fpu softvfp
	.type	shuffle_merge, %function
shuffle_merge:
	@ args = 0, pretend = 0, frame = 1048
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #1040
	sub	sp, sp, #8
	str	r0, [fp, #-1056]
	ldr	r3, .L41
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1036]
	mov	r3, #0
	str	r3, [fp, #-1032]
	ldr	r3, .L41+4
	ldr	r3, [r3]
	str	r3, [fp, #-1028]
	ldr	r3, .L41+8
	ldmia	r3, {r2-r3}
	ldr	r3, [fp, #-1056]
	mul	r3, r2, r3
	lsl	r3, r3, #4
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1024]
	ldr	r2, [fp, #-1056]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1020]
	mov	r3, #0
	str	r3, [fp, #-1032]
	b	.L17
.L20:
	ldr	r3, .L41+12
	ldr	r2, [r3]
	sub	r0, fp, #1016
	ldr	r3, [fp, #-1032]
	ldr	r1, .L41+16
	bl	sprintf
	ldr	r3, [fp, #-1032]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1020]
	add	r4, r2, r3
	sub	r3, fp, #1016
	ldr	r1, .L41+20
	mov	r0, r3
	bl	fopen
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-1032]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1020]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L18
	ldr	r3, .L41+24
	ldr	r3, [r3]
	sub	r2, fp, #1016
	ldr	r1, .L41+28
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L35
.L18:
	ldr	r3, [fp, #-1032]
	add	r3, r3, #1
	str	r3, [fp, #-1032]
.L17:
	ldr	r2, [fp, #-1032]
	ldr	r3, [fp, #-1056]
	cmp	r2, r3
	blt	.L20
	ldr	r3, .L41+32
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L32
	ldr	r3, .L41+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-1036]
	ldr	r1, .L41+36
	mov	r0, r3
	bl	fprintf
.L32:
	mov	r3, #0
	str	r3, [fp, #-1048]
	mov	r3, #0
	str	r3, [fp, #-1044]
	b	.L22
.L28:
	ldr	r3, [fp, #-1044]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1020]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	bne	.L38
	mov	r3, #0
	str	r3, [fp, #-1040]
	b	.L25
.L27:
	ldr	r3, [fp, #-1048]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-1024]
	add	r0, r2, r3
	ldr	r3, [fp, #-1044]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1020]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #1
	mov	r1, #16
	bl	fread
	ldr	r3, [fp, #-1044]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1020]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	bne	.L39
	ldr	r3, [fp, #-1048]
	add	r3, r3, #1
	str	r3, [fp, #-1048]
	ldr	r3, [fp, #-1040]
	add	r3, r3, #1
	str	r3, [fp, #-1040]
.L25:
	ldr	r3, [fp, #-1040]
	mov	r4, r3
	asr	r5, r4, #31
	ldr	r3, .L41+8
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-1056]
	mov	r2, r3
	asr	r3, r2, #31
	bl	__aeabi_ldivmod
	mov	r2, r0
	mov	r3, r1
	cmp	r4, r2
	sbcs	r3, r5, r3
	blt	.L27
	b	.L24
.L38:
	nop
	b	.L24
.L39:
	nop
.L24:
	ldr	r3, [fp, #-1044]
	add	r3, r3, #1
	str	r3, [fp, #-1044]
.L22:
	ldr	r2, [fp, #-1044]
	ldr	r3, [fp, #-1056]
	cmp	r2, r3
	blt	.L28
	ldr	r3, [fp, #-1048]
	cmp	r3, #0
	beq	.L40
	ldr	r2, [fp, #-1036]
	ldr	r3, [fp, #-1048]
	add	r3, r2, r3
	str	r3, [fp, #-1036]
	ldr	r3, [fp, #-1048]
	sub	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-1024]
	bl	shuffle
	ldr	r2, [fp, #-1028]
	ldr	r1, [fp, #-1048]
	ldr	r0, [fp, #-1024]
	bl	write_chunk
	ldr	r3, .L41+32
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L32
	ldr	r3, .L41+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-1036]
	ldr	r1, .L41+40
	mov	r0, r3
	bl	fprintf
	b	.L32
.L40:
	nop
	ldr	r3, .L41+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-1036]
	ldr	r1, .L41+44
	mov	r0, r3
	bl	fprintf
	mov	r3, #0
	str	r3, [fp, #-1032]
	b	.L33
.L34:
	ldr	r3, [fp, #-1032]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1020]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	ldr	r3, .L41+12
	ldr	r2, [r3]
	sub	r0, fp, #1016
	ldr	r3, [fp, #-1032]
	ldr	r1, .L41+16
	bl	sprintf
	sub	r3, fp, #1016
	mov	r0, r3
	bl	remove
	ldr	r3, [fp, #-1032]
	add	r3, r3, #1
	str	r3, [fp, #-1032]
.L33:
	ldr	r2, [fp, #-1032]
	ldr	r3, [fp, #-1056]
	cmp	r2, r3
	blt	.L34
	ldr	r3, .L41+24
	ldr	r3, [r3]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L41+48
	bl	fwrite
	ldr	r0, [fp, #-1024]
	bl	free
	mov	r3, #0
.L35:
	ldr	r2, .L41
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L36
	bl	__stack_chk_fail
.L36:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L42:
	.align	2
.L41:
	.word	.LC7
	.word	stdout
	.word	array_size
	.word	file_head
	.word	.LC0
	.word	.LC1
	.word	stderr
	.word	.LC2
	.word	verbose
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	shuffle_merge, .-shuffle_merge
	.section	.rodata
	.align	2
.LC8:
	.ascii	"SHUFFLING COOCCURRENCES\012\000"
	.align	2
.LC9:
	.ascii	"array size: %lld\012\000"
	.align	2
.LC10:
	.ascii	"w\000"
	.align	2
.LC11:
	.ascii	"Shuffling by chunks: processed 0 lines.\000"
	.align	2
.LC12:
	.ascii	"\033[22Gprocessed %ld lines.\000"
	.align	2
.LC13:
	.ascii	"%d %d %f\012\000"
	.global	__aeabi_f2d
	.align	2
.LC14:
	.ascii	"\033[22Gprocessed %ld lines.\012\000"
	.align	2
.LC15:
	.ascii	"Wrote %d temporary file(s).\012\000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	shuffle_by_chunks
	.syntax unified
	.arm
	.fpu softvfp
	.type	shuffle_by_chunks, %function
shuffle_by_chunks:
	@ args = 0, pretend = 0, frame = 1032
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #1040
	sub	sp, sp, #4
	ldr	r3, .L58
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1040]
	mov	r3, #0
	str	r3, [fp, #-1036]
	mov	r3, #0
	str	r3, [fp, #-1032]
	ldr	r3, .L58+4
	ldr	r3, [r3]
	str	r3, [fp, #-1024]
	ldr	r3, .L58+8
	ldmia	r3, {r2-r3}
	mov	r3, r2
	lsl	r3, r3, #4
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1020]
	ldr	r3, .L58+12
	ldr	r3, [r3]
	mov	r2, #24
	mov	r1, #1
	ldr	r0, .L58+16
	bl	fwrite
	ldr	r3, .L58+20
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L44
	ldr	r3, .L58+12
	ldr	r0, [r3]
	ldr	r3, .L58+8
	ldmia	r3, {r2-r3}
	ldr	r1, .L58+24
	bl	fprintf
.L44:
	ldr	r3, .L58+28
	ldr	r2, [r3]
	sub	r0, fp, #1016
	ldr	r3, [fp, #-1032]
	ldr	r1, .L58+32
	bl	sprintf
	sub	r3, fp, #1016
	ldr	r1, .L58+36
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-1028]
	ldr	r3, [fp, #-1028]
	cmp	r3, #0
	bne	.L45
	ldr	r3, .L58+12
	ldr	r3, [r3]
	sub	r2, fp, #1016
	ldr	r1, .L58+40
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L56
.L45:
	ldr	r3, .L58+20
	ldr	r3, [r3]
	cmp	r3, #1
	ble	.L54
	ldr	r3, .L58+12
	ldr	r3, [r3]
	mov	r2, #39
	mov	r1, #1
	ldr	r0, .L58+44
	bl	fwrite
.L54:
	ldr	r3, [fp, #-1040]
	mov	r0, r3
	asr	r1, r0, #31
	ldr	r3, .L58+8
	ldmia	r3, {r2-r3}
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L48
	ldr	r3, [fp, #-1040]
	sub	r3, r3, #2
	mov	r1, r3
	ldr	r0, [fp, #-1020]
	bl	shuffle
	ldr	r2, [fp, #-1036]
	ldr	r3, [fp, #-1040]
	add	r3, r2, r3
	str	r3, [fp, #-1036]
	ldr	r3, .L58+20
	ldr	r3, [r3]
	cmp	r3, #1
	ble	.L49
	ldr	r3, .L58+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-1036]
	ldr	r1, .L58+48
	mov	r0, r3
	bl	fprintf
.L49:
	ldr	r2, [fp, #-1028]
	ldr	r1, [fp, #-1040]
	ldr	r0, [fp, #-1020]
	bl	write_chunk
	ldr	r0, [fp, #-1028]
	bl	fclose
	ldr	r3, [fp, #-1032]
	add	r3, r3, #1
	str	r3, [fp, #-1032]
	ldr	r3, .L58+28
	ldr	r2, [r3]
	sub	r0, fp, #1016
	ldr	r3, [fp, #-1032]
	ldr	r1, .L58+32
	bl	sprintf
	sub	r3, fp, #1016
	ldr	r1, .L58+36
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-1028]
	ldr	r3, [fp, #-1028]
	cmp	r3, #0
	bne	.L50
	ldr	r3, .L58+12
	ldr	r3, [r3]
	sub	r2, fp, #1016
	ldr	r1, .L58+40
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L56
.L50:
	mov	r3, #0
	str	r3, [fp, #-1040]
.L48:
	ldr	r3, [fp, #-1040]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-1020]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r3, [fp, #-1040]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-1020]
	add	r3, r2, r3
	add	r2, r3, #4
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #8
	str	r3, [sp]
	mov	r3, r2
	mov	r2, r1
	ldr	r1, .L58+52
	ldr	r0, [fp, #-1024]
	bl	__isoc99_fscanf
	ldr	r1, [fp, #-1044]	@ float
	ldr	r3, [fp, #-1040]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-1020]
	add	r4, r2, r3
	mov	r0, r1
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [r4, #8]
	str	r3, [r4, #12]
	ldr	r0, [fp, #-1024]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L51
	ldr	r3, [fp, #-1040]
	sub	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-1020]
	bl	shuffle
	ldr	r2, [fp, #-1028]
	ldr	r1, [fp, #-1040]
	ldr	r0, [fp, #-1020]
	bl	write_chunk
	ldr	r2, [fp, #-1036]
	ldr	r3, [fp, #-1040]
	add	r3, r2, r3
	str	r3, [fp, #-1036]
	ldr	r3, .L58+20
	ldr	r3, [r3]
	cmp	r3, #1
	bgt	.L52
	b	.L53
.L51:
	ldr	r3, [fp, #-1040]
	add	r3, r3, #1
	str	r3, [fp, #-1040]
	b	.L54
.L52:
	ldr	r3, .L58+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-1036]
	ldr	r1, .L58+56
	mov	r0, r3
	bl	fprintf
.L53:
	ldr	r3, .L58+20
	ldr	r3, [r3]
	cmp	r3, #1
	ble	.L55
	ldr	r3, .L58+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-1032]
	add	r3, r3, #1
	mov	r2, r3
	ldr	r1, .L58+60
	bl	fprintf
.L55:
	ldr	r0, [fp, #-1028]
	bl	fclose
	ldr	r0, [fp, #-1020]
	bl	free
	ldr	r3, [fp, #-1032]
	add	r3, r3, #1
	mov	r0, r3
	bl	shuffle_merge
	mov	r3, r0
.L56:
	ldr	r2, .L58
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L57
	bl	__stack_chk_fail
.L57:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L59:
	.align	2
.L58:
	.word	.LC16
	.word	stdin
	.word	array_size
	.word	stderr
	.word	.LC8
	.word	verbose
	.word	.LC9
	.word	file_head
	.word	.LC0
	.word	.LC10
	.word	.LC2
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.size	shuffle_by_chunks, .-shuffle_by_chunks
	.section	.rodata
	.align	2
.LC17:
	.ascii	"No argument given for %s\012\000"
	.text
	.align	2
	.global	find_arg
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_arg, %function
find_arg:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L61
.L65:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	scmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L62
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bne	.L63
	ldr	r1, [fp, #-16]
	ldr	r0, .L66
	bl	printf
	mov	r0, #1
	bl	exit
.L63:
	ldr	r3, [fp, #-8]
	b	.L64
.L62:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L61:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L65
	mvn	r3, #0
.L64:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L67:
	.align	2
.L66:
	.word	.LC17
	.size	find_arg, .-find_arg
	.section	.rodata
	.align	2
.LC18:
	.ascii	"Tool to shuffle entries of word-word cooccurrence f"
	.ascii	"iles\000"
	.align	2
.LC19:
	.ascii	"Author: Jeffrey Pennington (jpennin@stanford.edu)\012"
	.ascii	"\000"
	.align	2
.LC20:
	.ascii	"Usage options:\000"
	.align	2
.LC21:
	.ascii	"\011-verbose <int>\000"
	.align	2
.LC22:
	.ascii	"\011\011Set verbosity: 0, 1, or 2 (default)\000"
	.align	2
.LC23:
	.ascii	"\011-memory <float>\000"
	.align	2
.LC24:
	.ascii	"\011\011Soft limit for memory consumption, in GB; d"
	.ascii	"efault 4.0\000"
	.align	2
.LC25:
	.ascii	"\011-array-size <int>\000"
	.align	2
.LC26:
	.ascii	"\011\011Limit to length <int> the buffer which stor"
	.ascii	"es chunks of data to shuffle before writing to disk"
	.ascii	". \012\011\011This value overrides that which is au"
	.ascii	"tomatically produced by '-memory'.\000"
	.align	2
.LC27:
	.ascii	"\011-temp-file <file>\000"
	.align	2
.LC28:
	.ascii	"\011\011Filename, excluding extension, for temporar"
	.ascii	"y files; default temp_shuffle\000"
	.align	2
.LC29:
	.ascii	"\012Example usage: (assuming 'cooccurrence.bin' has"
	.ascii	" been produced by 'coccur')\000"
	.align	2
.LC30:
	.ascii	"./shuffle -verbose 2 -memory 8.0 < cooccurrence.bin"
	.ascii	" > cooccurrence.shuf.bin\000"
	.align	2
.LC31:
	.ascii	"-verbose\000"
	.align	2
.LC32:
	.ascii	"-temp-file\000"
	.align	2
.LC33:
	.ascii	"temp_shuffle\000"
	.align	2
.LC34:
	.ascii	"-memory\000"
	.global	__aeabi_dmul
	.global	__aeabi_ddiv
	.global	__aeabi_d2lz
	.align	2
.LC35:
	.ascii	"-array-size\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
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r0, #1000
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L76
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L69
	ldr	r0, .L76+4
	bl	puts
	ldr	r0, .L76+8
	bl	puts
	ldr	r0, .L76+12
	bl	puts
	ldr	r0, .L76+16
	bl	puts
	ldr	r0, .L76+20
	bl	puts
	ldr	r0, .L76+24
	bl	puts
	ldr	r0, .L76+28
	bl	puts
	ldr	r0, .L76+32
	bl	puts
	ldr	r0, .L76+36
	bl	puts
	ldr	r0, .L76+40
	bl	puts
	ldr	r0, .L76+44
	bl	puts
	ldr	r0, .L76+48
	bl	puts
	ldr	r0, .L76+52
	bl	puts
	mov	r3, #0
	b	.L70
.L69:
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-16]
	ldr	r0, .L76+56
	bl	find_arg
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L71
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L76+60
	str	r3, [r2]
.L71:
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-16]
	ldr	r0, .L76+64
	bl	find_arg
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L72
	ldr	r3, .L76
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	bl	strcpy
	b	.L73
.L72:
	ldr	r3, .L76
	ldr	r3, [r3]
	ldr	r2, .L76+68
	mov	r0, r3
	mov	r1, r2
	mov	r3, #13
	mov	r2, r3
	bl	memcpy
.L73:
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-16]
	ldr	r0, .L76+72
	bl	find_arg
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L74
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	atof
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L76+76
	stm	r1, {r2-r3}
.L74:
	ldr	r3, .L76+76
	ldmia	r3, {r0-r1}
	ldr	r2, .L76+80
	ldr	r3, .L76+84
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L76+88
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L76+92
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2lz
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L76+96
	stm	r1, {r2-r3}
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-16]
	ldr	r0, .L76+100
	bl	find_arg
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L75
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoll
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L76+96
	stm	r1, {r2-r3}
.L75:
	bl	shuffle_by_chunks
	mov	r3, r0
.L70:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L77:
	.align	2
.L76:
	.word	file_head
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	verbose
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	memory_limit
	.word	1717986918
	.word	1072588390
	.word	1104150528
	.word	1076887552
	.word	array_size
	.word	.LC35
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
