// File: /workspace/github_cpp_makefile_star2_O1/ddu1[P]polarizedtext/src/dictionary.cc
// Function: fasttext::Dictionary::readFromFile(std::istream&)
void Dictionary::readFromFile(std::istream& in) {
  std::string word;
  int64_t minThreshold = 1;
  while (readWord(in, word)) {
    add(word);
    if (ntokens_ % 1000000 == 0 && args_->verbose > 1) {
      std::cout << "\rRead " << ntokens_  / 1000000 << "M words" << std::flush;
    }
    if (size_ > 0.75 * MAX_VOCAB_SIZE) {
      minThreshold++;
      threshold(minThreshold, minThreshold);
    }
  }
  threshold(args_->minCount, args_->minCountLabel);
  initTableDiscard();
  initNgrams();
  if (args_->verbose > 0) {
    std::cout << "\rRead " << ntokens_  / 1000000 << "M words" << std::endl;
    std::cout << "Number of words:  " << nwords_ << std::endl;
    std::cout << "Number of labels: " << nlabels_ << std::endl;
  }
  if (size_ == 0) {
    std::cerr << "Empty vocabulary. Try a smaller -minCount value." << std::endl;
    exit(EXIT_FAILURE);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movl $0x1, %eax
movq %rax, (%rsp)
leaq 0x8(%rsp), %r12
movabsq $0x218def416bd80, %r15  # imm = 0x218DEF416BD80
movabsq $0x10c6f7a0b5ec, %r13   # imm = 0x10C6F7A0B5EC
movq %r14, %rsi
movq %r12, %rdx
callq 0x55d4
testb %al, %al
je 0x57fd
movq %rbx, %rdi
movq %r12, %rsi
callq 0x4b06
movq 0x68(%rbx), %rax
movabsq $0x790fb65668c26139, %rcx # imm = 0x790FB65668C26139
imulq %rcx, %rax
addq %r15, %rax
rorq $0x6, %rax
cmpq %r13, %rax
ja 0x57d5
movq (%rbx), %rax
cmpl $0x2, 0xc8(%rax)
jl 0x57d5
movl $0x6, %edx
movq 0x12846(%rip), %rdi     # 0x17fc8
leaq 0xc03d(%rip), %rsi      # 0x117c6
callq 0x3290
movabsq $0x431bde82d7b634db, %rax # imm = 0x431BDE82D7B634DB
imulq 0x68(%rbx)
movq %rdx, %rsi
shrq $0x3f, %rsi
sarq $0x12, %rdx
addq %rdx, %rsi
movq 0x12817(%rip), %rdi     # 0x17fc8
callq 0x3220
movq %rax, %rbp
movl $0x7, %edx
movq %rax, %rdi
leaq 0xc005(%rip), %rsi      # 0x117cd
callq 0x3290
movq %rbp, %rdi
callq 0x3180
cmpl $0x15752a1, 0x58(%rbx)  # imm = 0x15752A1
jl 0x572e
movq (%rsp), %rdx
incq %rdx
movq %rbx, %rdi
movq %rdx, %rsi
movq %rdx, (%rsp)
callq 0x59da
jmp 0x572e
movq (%rbx), %rax
movslq 0x78(%rax), %rsi
movslq 0x7c(%rax), %rdx
movq %rbx, %rdi
callq 0x59da
movq %rbx, %rdi
callq 0x5d60
movq %rbx, %rdi
callq 0x545a
movq (%rbx), %rax
cmpl $0x0, 0xc8(%rax)
jle 0x5950
movq 0x12791(%rip), %rdi     # 0x17fc8
leaq 0xbf88(%rip), %rsi      # 0x117c6
movl $0x6, %edx
callq 0x3290
movabsq $0x431bde82d7b634db, %rax # imm = 0x431BDE82D7B634DB
imulq 0x68(%rbx)
movq %rdx, %rsi
shrq $0x3f, %rsi
sarq $0x12, %rdx
addq %rdx, %rsi
movq 0x1275d(%rip), %rdi     # 0x17fc8
callq 0x3220
movq %rax, %r14
leaq 0xbf53(%rip), %rsi      # 0x117cd
movl $0x7, %edx
movq %rax, %rdi
callq 0x3290
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3230
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3180
movq 0x12713(%rip), %rdi     # 0x17fc8
leaq 0xbf19(%rip), %rsi      # 0x117d5
movl $0x12, %edx
callq 0x3290
movl 0x5c(%rbx), %esi
movq 0x126f8(%rip), %rdi     # 0x17fc8
callq 0x3420
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3230
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3180
movq 0x126c2(%rip), %rdi     # 0x17fc8
leaq 0xbedb(%rip), %rsi      # 0x117e8
movl $0x12, %edx
callq 0x3290
movl 0x60(%rbx), %esi
movq 0x126a7(%rip), %rdi     # 0x17fc8
callq 0x3420
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3230
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3180
cmpl $0x0, 0x58(%rbx)
je 0x5981
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x5972
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3260
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x12668(%rip), %rdi     # 0x17ff0
leaq 0xbe6c(%rip), %rsi      # 0x117fb
movl $0x30, %edx
callq 0x3290
movq 0x12650(%rip), %rdi     # 0x17ff0
callq 0x3110
movl $0x1, %edi
callq 0x32b0
jmp 0x59b3
jmp 0x59b3
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x59d2
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3260
movq %rbx, %rdi
callq 0x3450