// File: /workspace/github_cpp_makefile_star2_O3/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 0x55f4
testb %al, %al
je 0x581d
movq %rbx, %rdi
movq %r12, %rsi
callq 0x4b12
movq 0x68(%rbx), %rax
movabsq $0x790fb65668c26139, %rcx # imm = 0x790FB65668C26139
imulq %rcx, %rax
addq %r15, %rax
rorq $0x6, %rax
cmpq %r13, %rax
ja 0x57f5
movq (%rbx), %rax
cmpl $0x2, 0xc8(%rax)
jl 0x57f5
movl $0x6, %edx
movq 0x12826(%rip), %rdi     # 0x17fc8
leaq 0xc015(%rip), %rsi      # 0x117be
callq 0x3290
movabsq $0x431bde82d7b634db, %rax # imm = 0x431BDE82D7B634DB
imulq 0x68(%rbx)
movq %rdx, %rsi
shrq $0x3f, %rsi
sarq $0x12, %rdx
addq %rdx, %rsi
movq 0x127f7(%rip), %rdi     # 0x17fc8
callq 0x3220
movq %rax, %rbp
movl $0x7, %edx
movq %rax, %rdi
leaq 0xbfdd(%rip), %rsi      # 0x117c5
callq 0x3290
movq %rbp, %rdi
callq 0x3180
cmpl $0x15752a1, 0x58(%rbx)  # imm = 0x15752A1
jl 0x574e
movq (%rsp), %rdx
incq %rdx
movq %rbx, %rdi
movq %rdx, %rsi
movq %rdx, (%rsp)
callq 0x59fa
jmp 0x574e
movq (%rbx), %rax
movslq 0x78(%rax), %rsi
movslq 0x7c(%rax), %rdx
movq %rbx, %rdi
callq 0x59fa
movq %rbx, %rdi
callq 0x5d8c
movq %rbx, %rdi
callq 0x5478
movq (%rbx), %rax
cmpl $0x0, 0xc8(%rax)
jle 0x5970
movq 0x12771(%rip), %rdi     # 0x17fc8
leaq 0xbf60(%rip), %rsi      # 0x117be
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 0x1273d(%rip), %rdi     # 0x17fc8
callq 0x3220
movq %rax, %r14
leaq 0xbf2b(%rip), %rsi      # 0x117c5
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 0x126f3(%rip), %rdi     # 0x17fc8
leaq 0xbef1(%rip), %rsi      # 0x117cd
movl $0x12, %edx
callq 0x3290
movl 0x5c(%rbx), %esi
movq 0x126d8(%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 0x126a2(%rip), %rdi     # 0x17fc8
leaq 0xbeb3(%rip), %rsi      # 0x117e0
movl $0x12, %edx
callq 0x3290
movl 0x60(%rbx), %esi
movq 0x12687(%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 0x59a1
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x5992
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 0x12648(%rip), %rdi     # 0x17ff0
leaq 0xbe44(%rip), %rsi      # 0x117f3
movl $0x30, %edx
callq 0x3290
movq 0x12630(%rip), %rdi     # 0x17ff0
callq 0x3110
movl $0x1, %edi
callq 0x32b0
jmp 0x59d3
jmp 0x59d3
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x59f2
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3260
movq %rbx, %rdi
callq 0x3450