	.file	"844480.c"
	.intel_syntax noprefix
	.text
	.globl	vocab_hash_size
	.section	.rodata
	.align 4
	.type	vocab_hash_size, @object
	.size	vocab_hash_size, 4
vocab_hash_size:
	.long	500000000
	.globl	train_file
	.bss
	.align 32
	.type	train_file, @object
	.size	train_file, 60
train_file:
	.zero	60
	.globl	output_file
	.align 32
	.type	output_file, @object
	.size	output_file, 60
output_file:
	.zero	60
	.globl	vocab
	.align 8
	.type	vocab, @object
	.size	vocab, 8
vocab:
	.zero	8
	.globl	debug_mode
	.data
	.align 4
	.type	debug_mode, @object
	.size	debug_mode, 4
debug_mode:
	.long	2
	.globl	min_count
	.align 4
	.type	min_count, @object
	.size	min_count, 4
min_count:
	.long	5
	.globl	vocab_hash
	.bss
	.align 8
	.type	vocab_hash, @object
	.size	vocab_hash, 8
vocab_hash:
	.zero	8
	.globl	min_reduce
	.data
	.align 4
	.type	min_reduce, @object
	.size	min_reduce, 4
min_reduce:
	.long	1
	.globl	vocab_max_size
	.align 8
	.type	vocab_max_size, @object
	.size	vocab_max_size, 8
vocab_max_size:
	.quad	10000
	.globl	vocab_size
	.bss
	.align 8
	.type	vocab_size, @object
	.size	vocab_size, 8
vocab_size:
	.zero	8
	.globl	train_words
	.align 8
	.type	train_words, @object
	.size	train_words, 8
train_words:
	.zero	8
	.globl	threshold
	.data
	.align 4
	.type	threshold, @object
	.size	threshold, 4
threshold:
	.long	1120403456
	.globl	next_random
	.align 8
	.type	next_random, @object
	.size	next_random, 8
next_random:
	.quad	1
	.text
	.globl	ReadWord
	.type	ReadWord, @function
ReadWord:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -8[rbp], 0
	jmp	.L2
.L11:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 13
	jne	.L3
	jmp	.L2
.L3:
	cmp	DWORD PTR -4[rbp], 32
	je	.L4
	cmp	DWORD PTR -4[rbp], 9
	je	.L4
	cmp	DWORD PTR -4[rbp], 10
	jne	.L5
.L4:
	cmp	DWORD PTR -8[rbp], 0
	jle	.L6
	cmp	DWORD PTR -4[rbp], 10
	jne	.L12
	mov	rdx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	ungetc@PLT
	jmp	.L12
.L6:
	cmp	DWORD PTR -4[rbp], 10
	jne	.L2
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], 1047736124
	mov	BYTE PTR 4[rax], 0
	jmp	.L1
.L5:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -4[rbp]
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -8[rbp], 1
	cmp	DWORD PTR -8[rbp], 58
	jle	.L2
	sub	DWORD PTR -8[rbp], 1
.L2:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L11
	jmp	.L8
.L12:
	nop
.L8:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	ReadWord, .-ReadWord
	.globl	GetWordHash
	.type	GetWordHash, @function
GetWordHash:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -8[rbp], 1
	mov	QWORD PTR -16[rbp], 0
	jmp	.L14
.L15:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, rax
	sal	rdx, 8
	lea	rcx, [rdx+rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rcx
	mov	QWORD PTR -8[rbp], rax
	add	QWORD PTR -16[rbp], 1
.L14:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	QWORD PTR -16[rbp], rax
	jb	.L15
	mov	eax, 500000000
	movsx	rcx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 0
	div	rcx
	mov	QWORD PTR -8[rbp], rdx
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	GetWordHash, .-GetWordHash
	.globl	SearchVocab
	.type	SearchVocab, @function
SearchVocab:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	GetWordHash
	mov	DWORD PTR -4[rbp], eax
.L21:
	mov	rdx, QWORD PTR vocab_hash[rip]
	mov	eax, DWORD PTR -4[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, -1
	jne	.L18
	mov	eax, -1
	jmp	.L19
.L18:
	mov	rdx, QWORD PTR vocab[rip]
	mov	rcx, QWORD PTR vocab_hash[rip]
	mov	eax, DWORD PTR -4[rbp]
	sal	rax, 2
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L20
	mov	rdx, QWORD PTR vocab_hash[rip]
	mov	eax, DWORD PTR -4[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	jmp	.L19
.L20:
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	mov	edx, 500000000
	mov	ecx, edx
	mov	edx, 0
	div	ecx
	mov	DWORD PTR -4[rbp], edx
	jmp	.L21
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	SearchVocab, .-SearchVocab
	.globl	ReadWordIndex
	.type	ReadWordIndex, @function
ReadWordIndex:
.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, 96
	mov	QWORD PTR -88[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rdx, QWORD PTR -88[rbp]
	lea	rax, -80[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	ReadWord
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L23
	mov	eax, -1
	jmp	.L25
.L23:
	lea	rax, -80[rbp]
	mov	rdi, rax
	call	SearchVocab
.L25:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	ReadWordIndex, .-ReadWordIndex
	.globl	AddWordToVocab
	.type	AddWordToVocab, @function
AddWordToVocab:
.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, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	eax, 1
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 60
	jbe	.L28
	mov	DWORD PTR -20[rbp], 60
.L28:
	mov	eax, DWORD PTR -20[rbp]
	mov	rcx, QWORD PTR vocab[rip]
	mov	rdx, QWORD PTR vocab_size[rip]
	sal	rdx, 4
	lea	rbx, [rcx+rdx]
	mov	esi, 1
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR 8[rbx], rax
	mov	rdx, QWORD PTR vocab[rip]
	mov	rax, QWORD PTR vocab_size[rip]
	sal	rax, 4
	add	rax, rdx
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rdx, QWORD PTR vocab[rip]
	mov	rax, QWORD PTR vocab_size[rip]
	sal	rax, 4
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR vocab_size[rip]
	add	rax, 1
	mov	QWORD PTR vocab_size[rip], rax
	mov	rax, QWORD PTR vocab_size[rip]
	lea	rdx, 2[rax]
	mov	rax, QWORD PTR vocab_max_size[rip]
	cmp	rdx, rax
	jl	.L29
	mov	rax, QWORD PTR vocab_max_size[rip]
	add	rax, 10000
	mov	QWORD PTR vocab_max_size[rip], rax
	mov	rax, QWORD PTR vocab_max_size[rip]
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR vocab[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR vocab[rip], rax
.L29:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	GetWordHash
	mov	DWORD PTR -24[rbp], eax
	jmp	.L30
.L31:
	mov	eax, DWORD PTR -24[rbp]
	add	eax, 1
	mov	edx, 500000000
	mov	ecx, edx
	mov	edx, 0
	div	ecx
	mov	DWORD PTR -24[rbp], edx
.L30:
	mov	rdx, QWORD PTR vocab_hash[rip]
	mov	eax, DWORD PTR -24[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, -1
	jne	.L31
	mov	rax, QWORD PTR vocab_size[rip]
	lea	edx, -1[rax]
	mov	rcx, QWORD PTR vocab_hash[rip]
	mov	eax, DWORD PTR -24[rbp]
	sal	rax, 2
	add	rax, rcx
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR vocab_size[rip]
	sub	eax, 1
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	AddWordToVocab, .-AddWordToVocab
	.globl	VocabCompare
	.type	VocabCompare, @function
VocabCompare:
.LFB11:
	.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
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	VocabCompare, .-VocabCompare
	.globl	SortVocab
	.type	SortVocab, @function
SortVocab:
.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, 16
	mov	rax, QWORD PTR vocab_size[rip]
	sub	rax, 1
	mov	rsi, rax
	mov	rax, QWORD PTR vocab[rip]
	add	rax, 16
	lea	rcx, VocabCompare[rip]
	mov	edx, 16
	mov	rdi, rax
	call	qsort@PLT
	mov	DWORD PTR -8[rbp], 0
	jmp	.L36
.L37:
	mov	rdx, QWORD PTR vocab_hash[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], -1
	add	DWORD PTR -8[rbp], 1
.L36:
	mov	eax, 500000000
	cmp	DWORD PTR -8[rbp], eax
	jl	.L37
	mov	DWORD PTR -8[rbp], 0
	jmp	.L38
.L43:
	mov	rdx, QWORD PTR vocab[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR min_count[rip]
	cdqe
	cmp	rdx, rax
	jge	.L39
	mov	rax, QWORD PTR vocab_size[rip]
	sub	rax, 1
	mov	QWORD PTR vocab_size[rip], rax
	mov	rdx, QWORD PTR vocab[rip]
	mov	rax, QWORD PTR vocab_size[rip]
	sal	rax, 4
	add	rax, rdx
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	free@PLT
	jmp	.L40
.L39:
	mov	rdx, QWORD PTR vocab[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	GetWordHash
	mov	DWORD PTR -4[rbp], eax
	jmp	.L41
.L42:
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	mov	edx, 500000000
	mov	ecx, edx
	mov	edx, 0
	div	ecx
	mov	DWORD PTR -4[rbp], edx
.L41:
	mov	rdx, QWORD PTR vocab_hash[rip]
	mov	eax, DWORD PTR -4[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, -1
	jne	.L42
	mov	rdx, QWORD PTR vocab_hash[rip]
	mov	eax, DWORD PTR -4[rbp]
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR [rdx], eax
.L40:
	add	DWORD PTR -8[rbp], 1
.L38:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR vocab_size[rip]
	cmp	rdx, rax
	jl	.L43
	mov	rax, QWORD PTR vocab_size[rip]
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR vocab[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR vocab[rip], rax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	SortVocab, .-SortVocab
	.globl	ReduceVocab
	.type	ReduceVocab, @function
ReduceVocab:
.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, 16
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L45
.L48:
	mov	rdx, QWORD PTR vocab[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR min_reduce[rip]
	cdqe
	cmp	rdx, rax
	jle	.L46
	mov	rdx, QWORD PTR vocab[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	rcx, QWORD PTR vocab[rip]
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	sal	rdx, 4
	add	rdx, rcx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR [rdx], rax
	mov	rdx, QWORD PTR vocab[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	rcx, QWORD PTR vocab[rip]
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	sal	rdx, 4
	add	rdx, rcx
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR 8[rdx], rax
	add	DWORD PTR -8[rbp], 1
	jmp	.L47
.L46:
	mov	rdx, QWORD PTR vocab[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	free@PLT
.L47:
	add	DWORD PTR -12[rbp], 1
.L45:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR vocab_size[rip]
	cmp	rdx, rax
	jl	.L48
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	mov	QWORD PTR vocab_size[rip], rax
	mov	DWORD PTR -12[rbp], 0
	jmp	.L49
.L50:
	mov	rdx, QWORD PTR vocab_hash[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], -1
	add	DWORD PTR -12[rbp], 1
.L49:
	mov	eax, 500000000
	cmp	DWORD PTR -12[rbp], eax
	jl	.L50
	mov	DWORD PTR -12[rbp], 0
	jmp	.L51
.L54:
	mov	rdx, QWORD PTR vocab[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	GetWordHash
	mov	DWORD PTR -4[rbp], eax
	jmp	.L52
.L53:
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	mov	edx, 500000000
	mov	ecx, edx
	mov	edx, 0
	div	ecx
	mov	DWORD PTR -4[rbp], edx
.L52:
	mov	rdx, QWORD PTR vocab_hash[rip]
	mov	eax, DWORD PTR -4[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, -1
	jne	.L53
	mov	rdx, QWORD PTR vocab_hash[rip]
	mov	eax, DWORD PTR -4[rbp]
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -12[rbp], 1
.L51:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR vocab_size[rip]
	cmp	rdx, rax
	jl	.L54
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	eax, DWORD PTR min_reduce[rip]
	add	eax, 1
	mov	DWORD PTR min_reduce[rip], eax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	ReduceVocab, .-ReduceVocab
	.section	.rodata
.LC0:
	.string	"rb"
	.align 8
.LC1:
	.string	"ERROR: training data file not found!"
.LC2:
	.string	"</s>"
	.align 8
.LC3:
	.string	"Words processed: %lldK     Vocab size: %lldK  %c"
.LC4:
	.string	"%s_%s"
	.align 8
.LC6:
	.string	"\nVocab size (unigrams + bigrams): %lld\n"
.LC7:
	.string	"Words in train file: %lld\n"
	.text
	.globl	LearnVocabFromTrainFile
	.type	LearnVocabFromTrainFile, @function
LearnVocabFromTrainFile:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 288
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -280[rbp], 1
	mov	QWORD PTR -288[rbp], 0
	jmp	.L56
.L57:
	mov	rdx, QWORD PTR vocab_hash[rip]
	mov	rax, QWORD PTR -288[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], -1
	add	QWORD PTR -288[rbp], 1
.L56:
	mov	eax, 500000000
	cdqe
	cmp	QWORD PTR -288[rbp], rax
	jl	.L57
	lea	rsi, .LC0[rip]
	lea	rdi, train_file[rip]
	call	fopen@PLT
	mov	QWORD PTR -272[rbp], rax
	cmp	QWORD PTR -272[rbp], 0
	jne	.L58
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L58:
	mov	QWORD PTR vocab_size[rip], 0
	lea	rdi, .LC2[rip]
	call	AddWordToVocab
.L70:
	mov	rdx, QWORD PTR -272[rbp]
	lea	rax, -256[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	ReadWord
	mov	rax, QWORD PTR -272[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jne	.L75
	lea	rax, -256[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L61
	mov	QWORD PTR -280[rbp], 1
	jmp	.L62
.L61:
	mov	QWORD PTR -280[rbp], 0
	mov	rax, QWORD PTR train_words[rip]
	add	rax, 1
	mov	QWORD PTR train_words[rip], rax
	mov	eax, DWORD PTR debug_mode[rip]
	cmp	eax, 1
	jle	.L63
	mov	rcx, QWORD PTR train_words[rip]
	movabs	rdx, 3022314549036572937
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 14
	mov	rdx, rcx
	sar	rdx, 63
	sub	rax, rdx
	imul	rdx, rax, 100000
	mov	rax, rcx
	sub	rax, rdx
	test	rax, rax
	jne	.L63
	mov	rcx, QWORD PTR vocab_size[rip]
	movabs	rdx, 2361183241434822607
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 7
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	mov	rsi, rax
	mov	rcx, QWORD PTR train_words[rip]
	movabs	rdx, 2361183241434822607
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 7
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	mov	ecx, 13
	mov	rdx, rsi
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
.L63:
	lea	rax, -256[rbp]
	mov	rdi, rax
	call	SearchVocab
	cdqe
	mov	QWORD PTR -264[rbp], rax
	cmp	QWORD PTR -264[rbp], -1
	jne	.L64
	lea	rax, -256[rbp]
	mov	rdi, rax
	call	AddWordToVocab
	cdqe
	mov	QWORD PTR -288[rbp], rax
	mov	rdx, QWORD PTR vocab[rip]
	mov	rax, QWORD PTR -288[rbp]
	sal	rax, 4
	add	rax, rdx
	mov	QWORD PTR [rax], 1
	jmp	.L65
.L64:
	mov	rdx, QWORD PTR vocab[rip]
	mov	rax, QWORD PTR -264[rbp]
	sal	rax, 4
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	add	rdx, 1
	mov	QWORD PTR [rax], rdx
.L65:
	cmp	QWORD PTR -280[rbp], 0
	jne	.L76
	lea	rcx, -256[rbp]
	lea	rdx, -192[rbp]
	lea	rax, -128[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	BYTE PTR -69[rbp], 0
	lea	rdx, -256[rbp]
	lea	rax, -192[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -128[rbp]
	mov	rdi, rax
	call	SearchVocab
	cdqe
	mov	QWORD PTR -264[rbp], rax
	cmp	QWORD PTR -264[rbp], -1
	jne	.L67
	lea	rax, -128[rbp]
	mov	rdi, rax
	call	AddWordToVocab
	cdqe
	mov	QWORD PTR -288[rbp], rax
	mov	rdx, QWORD PTR vocab[rip]
	mov	rax, QWORD PTR -288[rbp]
	sal	rax, 4
	add	rax, rdx
	mov	QWORD PTR [rax], 1
	jmp	.L68
.L67:
	mov	rdx, QWORD PTR vocab[rip]
	mov	rax, QWORD PTR -264[rbp]
	sal	rax, 4
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	add	rdx, 1
	mov	QWORD PTR [rax], rdx
.L68:
	mov	rax, QWORD PTR vocab_size[rip]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	mov	eax, 500000000
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, eax
	movsd	xmm1, QWORD PTR .LC5[rip]
	mulsd	xmm1, xmm2
	comisd	xmm0, xmm1
	jbe	.L62
	mov	eax, 0
	call	ReduceVocab
	jmp	.L70
.L76:
	nop
.L62:
	jmp	.L70
.L75:
	nop
	mov	eax, 0
	call	SortVocab
	mov	eax, DWORD PTR debug_mode[rip]
	test	eax, eax
	jle	.L71
	mov	rax, QWORD PTR vocab_size[rip]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR train_words[rip]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
.L71:
	mov	rax, QWORD PTR -272[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L72
	call	__stack_chk_fail@PLT
.L72:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	LearnVocabFromTrainFile, .-LearnVocabFromTrainFile
	.section	.rodata
	.align 8
.LC8:
	.string	"Starting training using file %s\n"
.LC9:
	.string	"wb"
.LC10:
	.string	"Words written: %lldK%c"
.LC12:
	.string	"_%s"
.LC13:
	.string	" %s"
	.text
	.globl	TrainModel
	.type	TrainModel, @function
TrainModel:
.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, 336
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -328[rbp], 0
	mov	QWORD PTR -320[rbp], 0
	mov	QWORD PTR -312[rbp], 0
	mov	QWORD PTR -296[rbp], -1
	mov	QWORD PTR -288[rbp], 0
	lea	rsi, train_file[rip]
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	LearnVocabFromTrainFile
	lea	rsi, .LC0[rip]
	lea	rdi, train_file[rip]
	call	fopen@PLT
	mov	QWORD PTR -280[rbp], rax
	lea	rsi, .LC9[rip]
	lea	rdi, output_file[rip]
	call	fopen@PLT
	mov	QWORD PTR -272[rbp], rax
	mov	BYTE PTR -256[rbp], 0
.L95:
	lea	rdx, -256[rbp]
	lea	rax, -192[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rdx, QWORD PTR -280[rbp]
	lea	rax, -256[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	ReadWord
	mov	rax, QWORD PTR -280[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jne	.L100
	lea	rax, -256[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L80
	mov	rax, QWORD PTR -272[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	jmp	.L81
.L80:
	add	QWORD PTR -288[rbp], 1
	mov	eax, DWORD PTR debug_mode[rip]
	cmp	eax, 1
	jle	.L82
	mov	rcx, QWORD PTR -288[rbp]
	movabs	rdx, 3022314549036572937
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 14
	mov	rdx, rcx
	sar	rdx, 63
	sub	rax, rdx
	imul	rdx, rax, 100000
	mov	rax, rcx
	sub	rax, rdx
	test	rax, rax
	jne	.L82
	mov	rcx, QWORD PTR -288[rbp]
	movabs	rdx, 2361183241434822607
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 7
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	mov	edx, 13
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
.L82:
	mov	QWORD PTR -304[rbp], 0
	lea	rax, -256[rbp]
	mov	rdi, rax
	call	SearchVocab
	cdqe
	mov	QWORD PTR -264[rbp], rax
	cmp	QWORD PTR -264[rbp], -1
	jne	.L83
	mov	QWORD PTR -304[rbp], 1
	jmp	.L84
.L83:
	mov	rdx, QWORD PTR vocab[rip]
	mov	rax, QWORD PTR -264[rbp]
	sal	rax, 4
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -320[rbp], rax
.L84:
	cmp	QWORD PTR -296[rbp], -1
	jne	.L85
	mov	QWORD PTR -304[rbp], 1
.L85:
	mov	rax, QWORD PTR -264[rbp]
	mov	QWORD PTR -296[rbp], rax
	lea	rcx, -256[rbp]
	lea	rdx, -192[rbp]
	lea	rax, -128[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	BYTE PTR -69[rbp], 0
	lea	rax, -128[rbp]
	mov	rdi, rax
	call	SearchVocab
	cdqe
	mov	QWORD PTR -264[rbp], rax
	cmp	QWORD PTR -264[rbp], -1
	jne	.L86
	mov	QWORD PTR -304[rbp], 1
	jmp	.L87
.L86:
	mov	rdx, QWORD PTR vocab[rip]
	mov	rax, QWORD PTR -264[rbp]
	sal	rax, 4
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -312[rbp], rax
.L87:
	mov	eax, DWORD PTR min_count[rip]
	cdqe
	cmp	QWORD PTR -328[rbp], rax
	jge	.L88
	mov	QWORD PTR -304[rbp], 1
.L88:
	mov	eax, DWORD PTR min_count[rip]
	cdqe
	cmp	QWORD PTR -320[rbp], rax
	jge	.L89
	mov	QWORD PTR -304[rbp], 1
.L89:
	cmp	QWORD PTR -304[rbp], 0
	je	.L90
	pxor	xmm0, xmm0
	movss	DWORD PTR -332[rbp], xmm0
	jmp	.L91
.L90:
	mov	eax, DWORD PTR min_count[rip]
	movsx	rdx, eax
	mov	rax, QWORD PTR -312[rbp]
	sub	rax, rdx
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rax
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, QWORD PTR -328[rbp]
	divss	xmm0, xmm1
	pxor	xmm2, xmm2
	cvtsi2ss	xmm2, QWORD PTR -320[rbp]
	movaps	xmm1, xmm0
	divss	xmm1, xmm2
	mov	rax, QWORD PTR train_words[rip]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rax
	mulss	xmm0, xmm1
	movss	DWORD PTR -332[rbp], xmm0
.L91:
	movss	xmm1, DWORD PTR threshold[rip]
	movss	xmm0, DWORD PTR -332[rbp]
	comiss	xmm0, xmm1
	jbe	.L99
	lea	rdx, -256[rbp]
	mov	rax, QWORD PTR -272[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	QWORD PTR -320[rbp], 0
	jmp	.L94
.L99:
	lea	rdx, -256[rbp]
	mov	rax, QWORD PTR -272[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L94:
	mov	rax, QWORD PTR -320[rbp]
	mov	QWORD PTR -328[rbp], rax
.L81:
	jmp	.L95
.L100:
	nop
	mov	rax, QWORD PTR -272[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -280[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L96
	call	__stack_chk_fail@PLT
.L96:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	TrainModel, .-TrainModel
	.section	.rodata
.LC14:
	.string	"Argument missing for %s\n"
	.text
	.globl	ArgPos
	.type	ArgPos, @function
ArgPos:
.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	DWORD PTR -28[rbp], esi
	mov	QWORD PTR -40[rbp], rdx
	mov	DWORD PTR -4[rbp], 1
	jmp	.L102
.L106:
	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	strcmp@PLT
	test	eax, eax
	jne	.L103
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	cmp	DWORD PTR -4[rbp], eax
	jne	.L104
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L104:
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L105
.L103:
	add	DWORD PTR -4[rbp], 1
.L102:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L106
	mov	eax, -1
.L105:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	ArgPos, .-ArgPos
	.section	.rodata
.LC15:
	.string	"WORD2PHRASE tool v0.1a\n"
.LC16:
	.string	"Options:"
.LC17:
	.string	"Parameters for training:"
.LC18:
	.string	"\t-train <file>"
	.align 8
.LC19:
	.string	"\t\tUse text data from <file> to train the model"
.LC20:
	.string	"\t-output <file>"
	.align 8
.LC21:
	.string	"\t\tUse <file> to save the resulting word vectors / word clusters / phrases"
.LC22:
	.string	"\t-min-count <int>"
	.align 8
.LC23:
	.string	"\t\tThis will discard words that appear less than <int> times; default is 5"
.LC24:
	.string	"\t-threshold <float>"
	.align 8
.LC25:
	.string	"\t\t The <float> value represents threshold for forming the phrases (higher means less phrases); default 100"
.LC26:
	.string	"\t-debug <int>"
	.align 8
.LC27:
	.string	"\t\tSet the debug mode (default = 2 = more info during training)"
.LC28:
	.string	"\nExamples:"
	.align 8
.LC29:
	.string	"./word2phrase -train text.txt -output phrases.txt -threshold 100 -debug 2\n"
.LC30:
	.string	"-train"
.LC31:
	.string	"-debug"
.LC32:
	.string	"-output"
.LC33:
	.string	"-min-count"
.LC34:
	.string	"-threshold"
	.text
	.globl	main
	.type	main, @function
main:
.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	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	cmp	DWORD PTR -20[rbp], 1
	jne	.L108
	lea	rdi, .LC15[rip]
	call	puts@PLT
	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
	lea	rdi, .LC29[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L109
.L108:
	mov	rdx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC30[rip]
	call	ArgPos
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jle	.L110
	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	rsi, rax
	lea	rdi, train_file[rip]
	call	strcpy@PLT
.L110:
	mov	rdx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC31[rip]
	call	ArgPos
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jle	.L111
	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 debug_mode[rip], eax
.L111:
	mov	rdx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC32[rip]
	call	ArgPos
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jle	.L112
	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	rsi, rax
	lea	rdi, output_file[rip]
	call	strcpy@PLT
.L112:
	mov	rdx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC33[rip]
	call	ArgPos
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jle	.L113
	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 min_count[rip], eax
.L113:
	mov	rdx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC34[rip]
	call	ArgPos
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jle	.L114
	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
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR threshold[rip], xmm0
.L114:
	mov	rax, QWORD PTR vocab_max_size[rip]
	mov	esi, 16
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR vocab[rip], rax
	mov	eax, 500000000
	cdqe
	mov	esi, 4
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR vocab_hash[rip], rax
	mov	eax, 0
	call	TrainModel
	mov	eax, 0
.L109:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC5:
	.long	1717986918
	.long	1072064102
	.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	"844480.c"
	.text
	.global	vocab_hash_size
	.section	.rodata
	.align	2
	.type	vocab_hash_size, %object
	.size	vocab_hash_size, 4
vocab_hash_size:
	.word	500000000
	.comm	train_file,60,4
	.comm	output_file,60,4
	.comm	vocab,4,4
	.global	debug_mode
	.data
	.align	2
	.type	debug_mode, %object
	.size	debug_mode, 4
debug_mode:
	.word	2
	.global	min_count
	.align	2
	.type	min_count, %object
	.size	min_count, 4
min_count:
	.word	5
	.comm	vocab_hash,4,4
	.global	min_reduce
	.align	2
	.type	min_reduce, %object
	.size	min_reduce, 4
min_reduce:
	.word	1
	.global	vocab_max_size
	.align	3
	.type	vocab_max_size, %object
	.size	vocab_max_size, 8
vocab_max_size:
	.word	10000
	.word	0
	.global	vocab_size
	.bss
	.align	3
	.type	vocab_size, %object
	.size	vocab_size, 8
vocab_size:
	.space	8
	.global	train_words
	.align	3
	.type	train_words, %object
	.size	train_words, 8
train_words:
	.space	8
	.global	threshold
	.data
	.align	2
	.type	threshold, %object
	.size	threshold, 4
threshold:
	.word	1120403456
	.global	next_random
	.align	3
	.type	next_random, %object
	.size	next_random, 8
next_random:
	.word	1
	.word	0
	.section	.rodata
	.align	2
.LC0:
	.ascii	"</s>\000"
	.text
	.align	2
	.global	ReadWord
	.syntax unified
	.arm
	.fpu softvfp
	.type	ReadWord, %function
ReadWord:
	@ 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	r3, #0
	str	r3, [fp, #-12]
	b	.L2
.L11:
	ldr	r0, [fp, #-20]
	bl	fgetc
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #13
	bne	.L3
	b	.L2
.L3:
	ldr	r3, [fp, #-8]
	cmp	r3, #32
	beq	.L4
	ldr	r3, [fp, #-8]
	cmp	r3, #9
	beq	.L4
	ldr	r3, [fp, #-8]
	cmp	r3, #10
	bne	.L5
.L4:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	ble	.L6
	ldr	r3, [fp, #-8]
	cmp	r3, #10
	bne	.L12
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-8]
	bl	ungetc
	b	.L12
.L6:
	ldr	r3, [fp, #-8]
	cmp	r3, #10
	bne	.L2
	ldr	r3, [fp, #-16]
	ldr	r2, .L13
	mov	r0, r3
	mov	r1, r2
	mov	r3, #5
	mov	r2, r3
	bl	memcpy
	b	.L1
.L5:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #58
	ble	.L2
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
.L2:
	ldr	r0, [fp, #-20]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L11
	b	.L8
.L12:
	nop
.L8:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
.L1:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC0
	.size	ReadWord, .-ReadWord
	.global	__aeabi_uldivmod
	.align	2
	.global	GetWordHash
	.syntax unified
	.arm
	.fpu softvfp
	.type	GetWordHash, %function
GetWordHash:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #32
	str	r0, [fp, #-48]
	mov	r2, #1
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	b	.L16
.L17:
	sub	r7, fp, #36
	ldmia	r7, {r6-r7}
	mov	r2, r6
	mov	r3, r7
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #8
	orr	r1, r1, r2, lsr #24
	lsl	r0, r2, #8
	mov	r2, r0
	mov	r3, r1
	adds	r4, r2, r6
	adc	r5, r3, r7
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r2, r3, #255
	mov	r3, #0
	adds	r8, r4, r2
	adc	r9, r5, r3
	str	r8, [fp, #-36]
	str	r9, [fp, #-32]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	adds	r1, r2, #1
	str	r1, [fp, #-60]
	adc	r3, r3, #0
	str	r3, [fp, #-56]
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
.L16:
	ldr	r0, [fp, #-48]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	mov	r3, #0
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	cmp	r1, r3
	cmpeq	r0, r2
	bcc	.L17
	ldr	r3, .L19
	mov	r2, r3
	asr	r3, r2, #31
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_uldivmod
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-36]
	mov	r0, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L20:
	.align	2
.L19:
	.word	500000000
	.size	GetWordHash, .-GetWordHash
	.global	__aeabi_uidivmod
	.align	2
	.global	SearchVocab
	.syntax unified
	.arm
	.fpu softvfp
	.type	SearchVocab, %function
SearchVocab:
	@ 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]
	ldr	r0, [fp, #-16]
	bl	GetWordHash
	mov	r3, r0
	str	r3, [fp, #-8]
.L25:
	ldr	r3, .L26
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L22
	mvn	r3, #0
	b	.L23
.L22:
	ldr	r3, .L26+4
	ldr	r2, [r3]
	ldr	r3, .L26
	ldr	r1, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L24
	ldr	r3, .L26
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	b	.L23
.L24:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldr	r2, .L26+8
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_uidivmod
	mov	r3, r1
	str	r3, [fp, #-8]
	b	.L25
.L23:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	vocab_hash
	.word	vocab
	.word	500000000
	.size	SearchVocab, .-SearchVocab
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ReadWordIndex
	.syntax unified
	.arm
	.fpu softvfp
	.type	ReadWordIndex, %function
ReadWordIndex:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	str	r0, [fp, #-72]
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #68
	ldr	r1, [fp, #-72]
	mov	r0, r3
	bl	ReadWord
	ldr	r0, [fp, #-72]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L29
	mvn	r3, #0
	b	.L31
.L29:
	sub	r3, fp, #68
	mov	r0, r3
	bl	SearchVocab
	mov	r3, r0
.L31:
	ldr	r2, .L33
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L32
	bl	__stack_chk_fail
.L32:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC1
	.size	ReadWordIndex, .-ReadWordIndex
	.align	2
	.global	AddWordToVocab
	.syntax unified
	.arm
	.fpu softvfp
	.type	AddWordToVocab, %function
AddWordToVocab:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #20
	str	r0, [fp, #-48]
	ldr	r0, [fp, #-48]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #60
	bls	.L36
	mov	r3, #60
	str	r3, [fp, #-40]
.L36:
	ldr	r3, .L41
	ldr	r1, [r3]
	ldr	r3, .L41+4
	ldmia	r3, {r2-r3}
	mov	r3, r2
	lsl	r3, r3, #4
	add	r10, r1, r3
	mov	r1, #1
	ldr	r0, [fp, #-40]
	bl	calloc
	mov	r3, r0
	str	r3, [r10, #8]
	ldr	r3, .L41
	ldr	r1, [r3]
	ldr	r3, .L41+4
	ldmia	r3, {r2-r3}
	mov	r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r3, [r3, #8]
	ldr	r1, [fp, #-48]
	mov	r0, r3
	bl	strcpy
	ldr	r3, .L41
	ldr	r1, [r3]
	ldr	r3, .L41+4
	ldmia	r3, {r2-r3}
	mov	r3, r2
	lsl	r3, r3, #4
	add	r1, r1, r3
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r3, .L41+4
	ldmia	r3, {r2-r3}
	adds	r8, r2, #1
	adc	r9, r3, #0
	ldr	r3, .L41+4
	stm	r3, {r8-r9}
	ldr	r3, .L41+4
	ldmia	r3, {r2-r3}
	adds	r6, r2, #2
	adc	r7, r3, #0
	ldr	r3, .L41+8
	ldmia	r3, {r2-r3}
	cmp	r6, r2
	sbcs	r3, r7, r3
	blt	.L37
	ldr	r3, .L41+8
	ldmia	r3, {r2-r3}
	ldr	r0, .L41+12
	mov	r1, #0
	adds	r4, r2, r0
	adc	r5, r3, r1
	ldr	r3, .L41+8
	stm	r3, {r4-r5}
	ldr	r3, .L41
	ldr	r0, [r3]
	ldr	r3, .L41+8
	ldmia	r3, {r2-r3}
	mov	r3, r2
	lsl	r3, r3, #4
	mov	r1, r3
	bl	realloc
	mov	r3, r0
	ldr	r2, .L41
	str	r3, [r2]
.L37:
	ldr	r0, [fp, #-48]
	bl	GetWordHash
	mov	r3, r0
	str	r3, [fp, #-44]
	b	.L38
.L39:
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	ldr	r2, .L41+16
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_uidivmod
	mov	r3, r1
	str	r3, [fp, #-44]
.L38:
	ldr	r3, .L41+20
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L39
	ldr	r3, .L41+4
	ldmia	r3, {r2-r3}
	mov	r3, r2
	sub	r1, r3, #1
	ldr	r3, .L41+20
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, r1
	str	r2, [r3]
	ldr	r3, .L41+4
	ldmia	r3, {r2-r3}
	mov	r3, r2
	sub	r3, r3, #1
	mov	r0, r3
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L42:
	.align	2
.L41:
	.word	vocab
	.word	vocab_size
	.word	vocab_max_size
	.word	10000
	.word	500000000
	.word	vocab_hash
	.size	AddWordToVocab, .-AddWordToVocab
	.align	2
	.global	VocabCompare
	.syntax unified
	.arm
	.fpu softvfp
	.type	VocabCompare, %function
VocabCompare:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldmia	r3, {r2-r3}
	mov	r1, r2
	ldr	r3, [fp, #-8]
	ldmia	r3, {r2-r3}
	mov	r3, r2
	sub	r3, r1, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	VocabCompare, .-VocabCompare
	.align	2
	.global	SortVocab
	.syntax unified
	.arm
	.fpu softvfp
	.type	SortVocab, %function
SortVocab:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	ldr	r3, .L54
	ldr	r3, [r3]
	add	r0, r3, #16
	ldr	r3, .L54+4
	ldmia	r3, {r2-r3}
	mov	r3, r2
	sub	r1, r3, #1
	ldr	r3, .L54+8
	mov	r2, #16
	bl	qsort
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L46
.L47:
	ldr	r3, .L54+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mvn	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L46:
	ldr	r2, .L54+16
	ldr	r3, [fp, #-20]
	cmp	r3, r2
	blt	.L47
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L48
.L53:
	ldr	r3, .L54
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r3, .L54+20
	ldr	r3, [r3]
	mov	r2, r3
	asr	r3, r2, #31
	cmp	r0, r2
	sbcs	r3, r1, r3
	bge	.L49
	ldr	r3, .L54+4
	ldmia	r3, {r2-r3}
	subs	r4, r2, #1
	sbc	r5, r3, #0
	ldr	r3, .L54+4
	stm	r3, {r4-r5}
	ldr	r3, .L54
	ldr	r1, [r3]
	ldr	r3, .L54+4
	ldmia	r3, {r2-r3}
	mov	r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	free
	b	.L50
.L49:
	ldr	r3, .L54
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	GetWordHash
	mov	r3, r0
	str	r3, [fp, #-16]
	b	.L51
.L52:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldr	r2, .L54+16
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_uidivmod
	mov	r3, r1
	str	r3, [fp, #-16]
.L51:
	ldr	r3, .L54+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L52
	ldr	r3, .L54+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	str	r2, [r3]
.L50:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L48:
	ldr	r3, [fp, #-20]
	mov	r0, r3
	asr	r1, r0, #31
	ldr	r3, .L54+4
	ldmia	r3, {r2-r3}
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L53
	ldr	r3, .L54
	ldr	r0, [r3]
	ldr	r3, .L54+4
	ldmia	r3, {r2-r3}
	mov	r3, r2
	lsl	r3, r3, #4
	mov	r1, r3
	bl	realloc
	mov	r3, r0
	ldr	r2, .L54
	str	r3, [r2]
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L55:
	.align	2
.L54:
	.word	vocab
	.word	vocab_size
	.word	VocabCompare
	.word	vocab_hash
	.word	500000000
	.word	min_count
	.size	SortVocab, .-SortVocab
	.align	2
	.global	ReduceVocab
	.syntax unified
	.arm
	.fpu softvfp
	.type	ReduceVocab, %function
ReduceVocab:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L57
.L60:
	ldr	r3, .L67
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	r1, .L67+4
	ldr	r1, [r1]
	mov	r0, r1
	asr	r1, r0, #31
	cmp	r0, r2
	sbcs	r3, r1, r3
	bge	.L58
	ldr	r3, .L67
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r2, .L67
	ldr	r1, [r2]
	ldr	r2, [fp, #-12]
	lsl	r2, r2, #4
	add	r1, r1, r2
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	ldr	r3, .L67
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #4
	add	r2, r2, r3
	ldr	r3, .L67
	ldr	r1, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r2, [r2, #8]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L59
.L58:
	ldr	r3, .L67
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	free
.L59:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L57:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	asr	r1, r0, #31
	ldr	r3, .L67+8
	ldmia	r3, {r2-r3}
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L60
	ldr	r3, [fp, #-12]
	mov	r2, r3
	asr	r3, r2, #31
	ldr	r1, .L67+8
	stm	r1, {r2-r3}
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L61
.L62:
	ldr	r3, .L67+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mvn	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L61:
	ldr	r2, .L67+16
	ldr	r3, [fp, #-16]
	cmp	r3, r2
	blt	.L62
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L63
.L66:
	ldr	r3, .L67
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	GetWordHash
	mov	r3, r0
	str	r3, [fp, #-8]
	b	.L64
.L65:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldr	r2, .L67+16
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_uidivmod
	mov	r3, r1
	str	r3, [fp, #-8]
.L64:
	ldr	r3, .L67+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L65
	ldr	r3, .L67+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L63:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	asr	r1, r0, #31
	ldr	r3, .L67+8
	ldmia	r3, {r2-r3}
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L66
	ldr	r3, .L67+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, .L67+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L67+4
	str	r3, [r2]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L68:
	.align	2
.L67:
	.word	vocab
	.word	min_reduce
	.word	vocab_size
	.word	vocab_hash
	.word	500000000
	.word	stdout
	.size	ReduceVocab, .-ReduceVocab
	.section	.rodata
	.align	2
.LC2:
	.ascii	"rb\000"
	.align	2
.LC3:
	.ascii	"ERROR: training data file not found!\000"
	.global	__aeabi_ldivmod
	.align	2
.LC4:
	.ascii	"Words processed: %lldK     Vocab size: %lldK  %c\000"
	.align	2
.LC5:
	.ascii	"%s_%s\000"
	.global	__aeabi_l2d
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.global	__aeabi_dcmpgt
	.align	2
.LC6:
	.ascii	"\012Vocab size (unigrams + bigrams): %lld\012\000"
	.align	2
.LC7:
	.ascii	"Words in train file: %lld\012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	LearnVocabFromTrainFile
	.syntax unified
	.arm
	.fpu softvfp
	.type	LearnVocabFromTrainFile, %function
LearnVocabFromTrainFile:
	@ args = 0, pretend = 0, frame = 288
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #304
	ldr	r3, .L91
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r2, #1
	mov	r3, #0
	str	r2, [fp, #-292]
	str	r3, [fp, #-288]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-300]
	str	r3, [fp, #-296]
	b	.L70
.L71:
	ldr	r3, .L91+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-300]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mvn	r2, #0
	str	r2, [r3]
	sub	r3, fp, #300
	ldmia	r3, {r2-r3}
	adds	r0, r2, #1
	adc	r1, r3, #0
	str	r0, [fp, #-300]
	str	r1, [fp, #-296]
.L70:
	ldr	r3, .L91+8
	mov	r2, r3
	asr	r3, r2, #31
	sub	r5, fp, #300
	ldmia	r5, {r4-r5}
	cmp	r4, r2
	sbcs	r3, r5, r3
	blt	.L71
	ldr	r1, .L91+12
	ldr	r0, .L91+16
	bl	fopen
	str	r0, [fp, #-304]
	ldr	r3, [fp, #-304]
	cmp	r3, #0
	bne	.L72
	ldr	r0, .L91+20
	bl	puts
	mov	r0, #1
	bl	exit
.L72:
	ldr	r1, .L91+24
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r0, .L91+28
	bl	AddWordToVocab
.L84:
	sub	r3, fp, #272
	ldr	r1, [fp, #-304]
	mov	r0, r3
	bl	ReadWord
	ldr	r0, [fp, #-304]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	bne	.L89
	sub	r3, fp, #272
	ldr	r1, .L91+28
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L75
	mov	r2, #1
	mov	r3, #0
	str	r2, [fp, #-292]
	str	r3, [fp, #-288]
	b	.L76
.L75:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-292]
	str	r3, [fp, #-288]
	ldr	r3, .L91+32
	ldmia	r3, {r2-r3}
	adds	r6, r2, #1
	adc	r7, r3, #0
	ldr	r3, .L91+32
	stm	r3, {r6-r7}
	ldr	r3, .L91+36
	ldr	r3, [r3]
	cmp	r3, #1
	ble	.L77
	ldr	r3, .L91+32
	ldmia	r3, {r0-r1}
	ldr	r2, .L91+40
	mov	r3, #0
	bl	__aeabi_ldivmod
	orrs	r3, r2, r3
	bne	.L77
	ldr	r3, .L91+32
	ldmia	r3, {r0-r1}
	mov	r2, #1000
	mov	r3, #0
	bl	__aeabi_ldivmod
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r3, .L91+24
	ldmia	r3, {r0-r1}
	mov	r2, #1000
	mov	r3, #0
	bl	__aeabi_ldivmod
	mov	r2, r0
	mov	r3, r1
	mov	r1, #13
	str	r1, [sp, #8]
	stm	sp, {r2-r3}
	mov	r2, r4
	mov	r3, r5
	ldr	r0, .L91+44
	bl	printf
	ldr	r3, .L91+48
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
.L77:
	sub	r3, fp, #272
	mov	r0, r3
	bl	SearchVocab
	mov	r3, r0
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-284]
	str	r3, [fp, #-280]
	sub	r3, fp, #284
	ldmia	r3, {r2-r3}
	mvn	r0, #0
	mvn	r1, #0
	cmp	r3, r1
	cmpeq	r2, r0
	bne	.L78
	sub	r3, fp, #272
	mov	r0, r3
	bl	AddWordToVocab
	mov	r3, r0
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-300]
	str	r3, [fp, #-296]
	ldr	r3, .L91+52
	ldr	r2, [r3]
	ldr	r3, [fp, #-300]
	lsl	r3, r3, #4
	add	r1, r2, r3
	mov	r2, #1
	mov	r3, #0
	stm	r1, {r2-r3}
	b	.L79
.L78:
	ldr	r3, .L91+52
	ldr	r2, [r3]
	ldr	r3, [fp, #-284]
	lsl	r3, r3, #4
	add	r1, r2, r3
	ldmia	r1, {r2-r3}
	adds	r8, r2, #1
	adc	r9, r3, #0
	stm	r1, {r8-r9}
.L79:
	sub	r3, fp, #292
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	bne	.L90
	sub	r3, fp, #272
	sub	r2, fp, #212
	sub	r0, fp, #152
	ldr	r1, .L91+56
	bl	sprintf
	mov	r3, #0
	strb	r3, [fp, #-93]
	sub	r2, fp, #272
	sub	r3, fp, #212
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #152
	mov	r0, r3
	bl	SearchVocab
	mov	r3, r0
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-284]
	str	r3, [fp, #-280]
	sub	r3, fp, #284
	ldmia	r3, {r2-r3}
	mvn	r0, #0
	mvn	r1, #0
	cmp	r3, r1
	cmpeq	r2, r0
	bne	.L81
	sub	r3, fp, #152
	mov	r0, r3
	bl	AddWordToVocab
	mov	r3, r0
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-300]
	str	r3, [fp, #-296]
	ldr	r3, .L91+52
	ldr	r2, [r3]
	ldr	r3, [fp, #-300]
	lsl	r3, r3, #4
	add	r1, r2, r3
	mov	r2, #1
	mov	r3, #0
	stm	r1, {r2-r3}
	b	.L82
.L81:
	ldr	r3, .L91+52
	ldr	r2, [r3]
	ldr	r3, [fp, #-284]
	lsl	r3, r3, #4
	add	r1, r2, r3
	ldmia	r1, {r2-r3}
	adds	r0, r2, #1
	str	r0, [fp, #-316]
	adc	r3, r3, #0
	str	r3, [fp, #-312]
	sub	r4, fp, #316
	ldmia	r4, {r3-r4}
	stm	r1, {r3-r4}
.L82:
	ldr	r3, .L91+24
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_l2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, .L91+8
	mov	r0, r3
	bl	__aeabi_i2d
	ldr	r2, .L91+60
	ldr	r3, .L91+64
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L76
	bl	ReduceVocab
	b	.L84
.L90:
	nop
.L76:
	b	.L84
.L89:
	nop
	bl	SortVocab
	ldr	r3, .L91+36
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L85
	ldr	r3, .L91+24
	ldmia	r3, {r2-r3}
	ldr	r0, .L91+68
	bl	printf
	ldr	r3, .L91+32
	ldmia	r3, {r2-r3}
	ldr	r0, .L91+72
	bl	printf
.L85:
	ldr	r0, [fp, #-304]
	bl	fclose
	nop
	ldr	r3, .L91
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L86
	bl	__stack_chk_fail
.L86:
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L92:
	.align	2
.L91:
	.word	.LC8
	.word	vocab_hash
	.word	500000000
	.word	.LC2
	.word	train_file
	.word	.LC3
	.word	vocab_size
	.word	.LC0
	.word	train_words
	.word	debug_mode
	.word	100000
	.word	.LC4
	.word	stdout
	.word	vocab
	.word	.LC5
	.word	1717986918
	.word	1072064102
	.word	.LC6
	.word	.LC7
	.size	LearnVocabFromTrainFile, .-LearnVocabFromTrainFile
	.section	.rodata
	.align	2
.LC9:
	.ascii	"Starting training using file %s\012\000"
	.align	2
.LC10:
	.ascii	"wb\000"
	.align	2
.LC11:
	.ascii	"Words written: %lldK%c\000"
	.global	__aeabi_l2f
	.global	__aeabi_fdiv
	.global	__aeabi_fmul
	.global	__aeabi_fcmpgt
	.align	2
.LC12:
	.ascii	"_%s\000"
	.align	2
.LC13:
	.ascii	" %s\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	TrainModel
	.syntax unified
	.arm
	.fpu softvfp
	.type	TrainModel, %function
TrainModel:
	@ args = 0, pretend = 0, frame = 320
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #332
	ldr	r3, .L117
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-332]
	str	r3, [fp, #-328]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-324]
	str	r3, [fp, #-320]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-316]
	str	r3, [fp, #-312]
	mvn	r2, #0
	mvn	r3, #0
	str	r2, [fp, #-300]
	str	r3, [fp, #-296]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-292]
	str	r3, [fp, #-288]
	ldr	r1, .L117+4
	ldr	r0, .L117+8
	bl	printf
	bl	LearnVocabFromTrainFile
	ldr	r1, .L117+12
	ldr	r0, .L117+4
	bl	fopen
	str	r0, [fp, #-340]
	ldr	r1, .L117+16
	ldr	r0, .L117+20
	bl	fopen
	str	r0, [fp, #-336]
	mov	r3, #0
	strb	r3, [fp, #-272]
.L111:
	sub	r2, fp, #272
	sub	r3, fp, #212
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #272
	ldr	r1, [fp, #-340]
	mov	r0, r3
	bl	ReadWord
	ldr	r0, [fp, #-340]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	bne	.L116
	sub	r3, fp, #272
	ldr	r1, .L117+24
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L96
	ldr	r1, [fp, #-336]
	mov	r0, #10
	bl	fputc
	b	.L97
.L96:
	sub	r3, fp, #292
	ldmia	r3, {r2-r3}
	adds	r4, r2, #1
	adc	r5, r3, #0
	str	r4, [fp, #-292]
	str	r5, [fp, #-288]
	ldr	r3, .L117+28
	ldr	r3, [r3]
	cmp	r3, #1
	ble	.L98
	sub	r1, fp, #292
	ldmia	r1, {r0-r1}
	ldr	r2, .L117+32
	mov	r3, #0
	bl	__aeabi_ldivmod
	orrs	r3, r2, r3
	bne	.L98
	sub	r1, fp, #292
	ldmia	r1, {r0-r1}
	mov	r2, #1000
	mov	r3, #0
	bl	__aeabi_ldivmod
	mov	r2, r0
	mov	r3, r1
	mov	r1, #13
	str	r1, [sp]
	ldr	r0, .L117+36
	bl	printf
	ldr	r3, .L117+40
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
.L98:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-308]
	str	r3, [fp, #-304]
	sub	r3, fp, #272
	mov	r0, r3
	bl	SearchVocab
	mov	r3, r0
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-284]
	str	r3, [fp, #-280]
	sub	r3, fp, #284
	ldmia	r3, {r2-r3}
	mvn	r0, #0
	mvn	r1, #0
	cmp	r3, r1
	cmpeq	r2, r0
	bne	.L99
	mov	r2, #1
	mov	r3, #0
	str	r2, [fp, #-308]
	str	r3, [fp, #-304]
	b	.L100
.L99:
	ldr	r3, .L117+44
	ldr	r2, [r3]
	ldr	r3, [fp, #-284]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-324]
	str	r3, [fp, #-320]
.L100:
	sub	r3, fp, #300
	ldmia	r3, {r2-r3}
	mvn	r0, #0
	mvn	r1, #0
	cmp	r3, r1
	cmpeq	r2, r0
	bne	.L101
	mov	r2, #1
	mov	r3, #0
	str	r2, [fp, #-308]
	str	r3, [fp, #-304]
.L101:
	sub	r3, fp, #284
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-300]
	str	r3, [fp, #-296]
	sub	r3, fp, #272
	sub	r2, fp, #212
	sub	r0, fp, #152
	ldr	r1, .L117+48
	bl	sprintf
	mov	r3, #0
	strb	r3, [fp, #-93]
	sub	r3, fp, #152
	mov	r0, r3
	bl	SearchVocab
	mov	r3, r0
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-284]
	str	r3, [fp, #-280]
	sub	r3, fp, #284
	ldmia	r3, {r2-r3}
	mvn	r0, #0
	mvn	r1, #0
	cmp	r3, r1
	cmpeq	r2, r0
	bne	.L102
	mov	r2, #1
	mov	r3, #0
	str	r2, [fp, #-308]
	str	r3, [fp, #-304]
	b	.L103
.L102:
	ldr	r3, .L117+44
	ldr	r2, [r3]
	ldr	r3, [fp, #-284]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-316]
	str	r3, [fp, #-312]
.L103:
	ldr	r3, .L117+52
	ldr	r3, [r3]
	mov	r2, r3
	asr	r3, r2, #31
	sub	r1, fp, #332
	ldmia	r1, {r0-r1}
	cmp	r0, r2
	sbcs	r3, r1, r3
	bge	.L104
	mov	r2, #1
	mov	r3, #0
	str	r2, [fp, #-308]
	str	r3, [fp, #-304]
.L104:
	ldr	r3, .L117+52
	ldr	r3, [r3]
	mov	r2, r3
	asr	r3, r2, #31
	sub	r1, fp, #324
	ldmia	r1, {r0-r1}
	cmp	r0, r2
	sbcs	r3, r1, r3
	bge	.L105
	mov	r2, #1
	mov	r3, #0
	str	r2, [fp, #-308]
	str	r3, [fp, #-304]
.L105:
	sub	r3, fp, #308
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	beq	.L106
	mov	r3, #0
	str	r3, [fp, #-344]	@ float
	b	.L107
.L106:
	ldr	r3, .L117+52
	ldr	r3, [r3]
	mov	r2, r3
	asr	r3, r2, #31
	sub	r1, fp, #316
	ldmia	r1, {r0-r1}
	subs	r6, r0, r2
	sbc	r7, r1, r3
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_l2f
	mov	r8, r0
	sub	r1, fp, #332
	ldmia	r1, {r0-r1}
	bl	__aeabi_l2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r8
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r8, r3
	sub	r1, fp, #324
	ldmia	r1, {r0-r1}
	bl	__aeabi_l2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r8
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r8, r3
	ldr	r3, .L117+56
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_l2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r8
	bl	__aeabi_fmul
	mov	r3, r0
	str	r3, [fp, #-344]	@ float
.L107:
	ldr	r3, .L117+60
	ldr	r3, [r3]	@ float
	mov	r1, r3
	ldr	r0, [fp, #-344]	@ float
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L115
	sub	r3, fp, #272
	mov	r2, r3
	ldr	r1, .L117+64
	ldr	r0, [fp, #-336]
	bl	fprintf
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-324]
	str	r3, [fp, #-320]
	b	.L110
.L115:
	sub	r3, fp, #272
	mov	r2, r3
	ldr	r1, .L117+68
	ldr	r0, [fp, #-336]
	bl	fprintf
.L110:
	sub	r3, fp, #324
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-332]
	str	r3, [fp, #-328]
.L97:
	b	.L111
.L116:
	nop
	ldr	r0, [fp, #-336]
	bl	fclose
	ldr	r0, [fp, #-340]
	bl	fclose
	nop
	ldr	r3, .L117
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L112
	bl	__stack_chk_fail
.L112:
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L118:
	.align	2
.L117:
	.word	.LC14
	.word	train_file
	.word	.LC9
	.word	.LC2
	.word	.LC10
	.word	output_file
	.word	.LC0
	.word	debug_mode
	.word	100000
	.word	.LC11
	.word	stdout
	.word	vocab
	.word	.LC5
	.word	min_count
	.word	train_words
	.word	threshold
	.word	.LC12
	.word	.LC13
	.size	TrainModel, .-TrainModel
	.section	.rodata
	.align	2
.LC15:
	.ascii	"Argument missing for %s\012\000"
	.text
	.align	2
	.global	ArgPos
	.syntax unified
	.arm
	.fpu softvfp
	.type	ArgPos, %function
ArgPos:
	@ 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	.L120
.L124:
	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	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L121
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bne	.L122
	ldr	r1, [fp, #-16]
	ldr	r0, .L125
	bl	printf
	mov	r0, #1
	bl	exit
.L122:
	ldr	r3, [fp, #-8]
	b	.L123
.L121:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L120:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L124
	mvn	r3, #0
.L123:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L126:
	.align	2
.L125:
	.word	.LC15
	.size	ArgPos, .-ArgPos
	.section	.rodata
	.align	2
.LC16:
	.ascii	"WORD2PHRASE tool v0.1a\012\000"
	.align	2
.LC17:
	.ascii	"Options:\000"
	.align	2
.LC18:
	.ascii	"Parameters for training:\000"
	.align	2
.LC19:
	.ascii	"\011-train <file>\000"
	.align	2
.LC20:
	.ascii	"\011\011Use text data from <file> to train the mode"
	.ascii	"l\000"
	.align	2
.LC21:
	.ascii	"\011-output <file>\000"
	.align	2
.LC22:
	.ascii	"\011\011Use <file> to save the resulting word vecto"
	.ascii	"rs / word clusters / phrases\000"
	.align	2
.LC23:
	.ascii	"\011-min-count <int>\000"
	.align	2
.LC24:
	.ascii	"\011\011This will discard words that appear less th"
	.ascii	"an <int> times; default is 5\000"
	.align	2
.LC25:
	.ascii	"\011-threshold <float>\000"
	.align	2
.LC26:
	.ascii	"\011\011 The <float> value represents threshold for"
	.ascii	" forming the phrases (higher means less phrases); d"
	.ascii	"efault 100\000"
	.align	2
.LC27:
	.ascii	"\011-debug <int>\000"
	.align	2
.LC28:
	.ascii	"\011\011Set the debug mode (default = 2 = more info"
	.ascii	" during training)\000"
	.align	2
.LC29:
	.ascii	"\012Examples:\000"
	.align	2
.LC30:
	.ascii	"./word2phrase -train text.txt -output phrases.txt -"
	.ascii	"threshold 100 -debug 2\012\000"
	.align	2
.LC31:
	.ascii	"-train\000"
	.align	2
.LC32:
	.ascii	"-debug\000"
	.align	2
.LC33:
	.ascii	"-output\000"
	.align	2
.LC34:
	.ascii	"-min-count\000"
	.align	2
.LC35:
	.ascii	"-threshold\000"
	.global	__aeabi_d2f
	.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]
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L128
	ldr	r0, .L135
	bl	puts
	ldr	r0, .L135+4
	bl	puts
	ldr	r0, .L135+8
	bl	puts
	ldr	r0, .L135+12
	bl	puts
	ldr	r0, .L135+16
	bl	puts
	ldr	r0, .L135+20
	bl	puts
	ldr	r0, .L135+24
	bl	puts
	ldr	r0, .L135+28
	bl	puts
	ldr	r0, .L135+32
	bl	puts
	ldr	r0, .L135+36
	bl	puts
	ldr	r0, .L135+40
	bl	puts
	ldr	r0, .L135+44
	bl	puts
	ldr	r0, .L135+48
	bl	puts
	ldr	r0, .L135+52
	bl	puts
	ldr	r0, .L135+56
	bl	puts
	mov	r3, #0
	b	.L129
.L128:
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-16]
	ldr	r0, .L135+60
	bl	ArgPos
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L130
	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
	ldr	r0, .L135+64
	bl	strcpy
.L130:
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-16]
	ldr	r0, .L135+68
	bl	ArgPos
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L131
	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, .L135+72
	str	r3, [r2]
.L131:
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-16]
	ldr	r0, .L135+76
	bl	ArgPos
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L132
	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
	ldr	r0, .L135+80
	bl	strcpy
.L132:
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-16]
	ldr	r0, .L135+84
	bl	ArgPos
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L133
	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, .L135+88
	str	r3, [r2]
.L133:
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-16]
	ldr	r0, .L135+92
	bl	ArgPos
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L134
	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
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	ldr	r2, .L135+96
	str	r3, [r2]	@ float
.L134:
	ldr	r3, .L135+100
	ldmia	r3, {r2-r3}
	mov	r3, r2
	mov	r1, #16
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L135+104
	str	r2, [r3]
	ldr	r3, .L135+108
	mov	r1, #4
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L135+112
	str	r2, [r3]
	bl	TrainModel
	mov	r3, #0
.L129:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L136:
	.align	2
.L135:
	.word	.LC16
	.word	.LC17
	.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	train_file
	.word	.LC32
	.word	debug_mode
	.word	.LC33
	.word	output_file
	.word	.LC34
	.word	min_count
	.word	.LC35
	.word	threshold
	.word	vocab_max_size
	.word	vocab
	.word	500000000
	.word	vocab_hash
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
