// File: /workspace/github_cpp_makefile_star2_O1/epfml[P]sent2vec/src/dictionary.cc
// Function: fasttext::Dictionary::getLine(std::istream&, std::vector<int, std::allocator<int>>&, std::vector<int, std::allocator<int>>&, std::vector<int, std::allocator<int>>&, std::linear_congruential_engine<unsigned long, 48271ul, 0ul, 2147483647ul>&) const
int32_t Dictionary::getLine(std::istream& in,
                            std::vector<int32_t>& words,
                            std::vector<int32_t>& word_hashes,
                            std::vector<int32_t>& labels,
                            std::minstd_rand& rng) const {
  std::uniform_real_distribution<> uniform(0, 1);

  if (in.eof()) {
    in.clear();
    in.seekg(std::streampos(0));
  }

  words.clear();
  labels.clear();
  word_hashes.clear();
  int32_t ntokens = 0;
  std::string token;
  while (readWord(in, token)) {
    if (token == EOS && (args_-> model == model_name::sent2vec || args_->model == model_name::cbowCWNgrams)){
       break;
    }
    int32_t h = find(token);
    int32_t wid = word2int_[h];
    if (wid < 0) {
      entry_type type = getType(token);
      if (type == entry_type::word) word_hashes.push_back(hash(token));
      continue;
    }
    entry_type type = getType(wid);
    ntokens++;
    if (type == entry_type::word && !discard(wid, uniform(rng))) {
      words.push_back(wid);
      word_hashes.push_back(hash(token));
    }
    if (type == entry_type::label) {
      labels.push_back(wid - nwords_);
    }
    if (token == EOS) break;
    if (ntokens > MAX_LINE_SIZE && args_->model != model_name::sup && args_->model != model_name::sent2vec && args_->model != model_name::cbowCWNgrams) break;
  }
  return ntokens;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r9, 0x38(%rsp)
movq %r8, %rbx
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r13
movq %rdi, %rbp
movq (%rsi), %rax
movq -0x18(%rax), %rdi
testb $0x2, 0x20(%rsi,%rdi)
je 0x85d6
addq %r13, %rdi
xorl %esi, %esi
callq 0x4560
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x43c0
movq (%r15), %rax
cmpq %rax, 0x8(%r15)
je 0x85e3
movq %rax, 0x8(%r15)
movq (%rbx), %rax
cmpq %rax, 0x8(%rbx)
je 0x85f0
movq %rax, 0x8(%rbx)
movq %r15, 0x30(%rsp)
movq %rbx, 0x40(%rsp)
movq (%r14), %rax
cmpq %rax, 0x8(%r14)
je 0x8607
movq %rax, 0x8(%r14)
movq %r14, 0x28(%rsp)
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
xorl %ebx, %ebx
leaq 0x8(%rsp), %r12
movq %r13, %rsi
movq %r12, %rdx
callq 0x71e0
testb %al, %al
je 0x886e
movq 0x10(%rsp), %rdx
cmpq 0x21d32(%rip), %rdx     # 0x2a378
jne 0x8678
testq %rdx, %rdx
je 0x8662
movq 0x21d1c(%rip), %rsi     # 0x2a370
movq 0x8(%rsp), %rdi
callq 0x4320
testl %eax, %eax
jne 0x8678
movq (%rbp), %rax
movl 0xc0(%rax), %eax
andl $-0x2, %eax
cmpl $0x4, %eax
je 0x886e
movq %rbp, %rdi
movq %r12, %rsi
callq 0x6486
movq 0x10(%rbp), %rcx
movl %eax, %eax
movl (%rcx,%rax,4), %esi
movl %esi, 0x4(%rsp)
testl %esi, %esi
js 0x8706
movq %rbp, %rdi
callq 0x6e94
cmpb $0x1, %al
je 0x87e6
movl %eax, %r14d
movzbl %al, %eax
testl %eax, %eax
jne 0x8813
movl 0x4(%rsp), %r15d
movq 0x38(%rsp), %rdi
callq 0xc464
addsd 0x16287(%rip), %xmm0    # 0x1e950
cvtsd2ss %xmm0, %xmm0
movq %rbp, %rdi
movl %r15d, %esi
callq 0x6e28
testb %al, %al
jne 0x87e0
movq 0x30(%rsp), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x8786
movl 0x4(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x8790
movq (%rbp), %rax
movq 0xe0(%rax), %rsi
movq 0xe8(%rax), %rcx
xorl %r14d, %r14d
movq %r12, %rdi
xorl %edx, %edx
callq 0x45a0
testq %rax, %rax
je 0x8865
movq 0x10(%rsp), %rcx
movl $0x811c9dc5, %eax       # imm = 0x811C9DC5
testq %rcx, %rcx
je 0x8758
movq 0x8(%rsp), %rdx
xorl %esi, %esi
movsbl (%rdx,%rsi), %edi
xorl %eax, %edi
imull $0x1000193, %edi, %eax  # imm = 0x1000193
incq %rsi
cmpq %rsi, %rcx
jne 0x8744
movl %eax, (%rsp)
movq 0x28(%rsp), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x8776
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x877e
movq %rsp, %rdx
callq 0xb28c
xorl %r14d, %r14d
jmp 0x8865
leaq 0x4(%rsp), %rdx
callq 0xaf28
movq 0x10(%rsp), %rcx
movl $0x811c9dc5, %eax       # imm = 0x811C9DC5
testq %rcx, %rcx
je 0x87ba
movq 0x8(%rsp), %rdx
xorl %esi, %esi
movsbl (%rdx,%rsi), %edi
xorl %eax, %edi
imull $0x1000193, %edi, %eax  # imm = 0x1000193
incq %rsi
cmpq %rsi, %rcx
jne 0x87a6
movl %eax, (%rsp)
movq 0x28(%rsp), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x87d8
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x87e0
movq %rsp, %rdx
callq 0xb28c
cmpb $0x1, %r14b
jne 0x8813
movl 0x4(%rsp), %eax
subl 0x5c(%rbp), %eax
movl %eax, (%rsp)
movq 0x40(%rsp), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x880b
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x8813
movq %rsp, %rdx
callq 0xb28c
leal 0x1(%rbx), %r15d
movq 0x10(%rsp), %rdx
cmpq 0x21b55(%rip), %rdx     # 0x2a378
jne 0x8842
movb $0x1, %r14b
testq %rdx, %rdx
je 0x8862
movq 0x21b3c(%rip), %rsi     # 0x2a370
movq 0x8(%rsp), %rdi
callq 0x4320
testl %eax, %eax
je 0x8862
cmpl $0x400, %ebx            # imm = 0x400
jl 0x885f
movq (%rbp), %rax
movl 0xc0(%rax), %eax
addl $-0x3, %eax
movb $0x1, %r14b
cmpl $0x2, %eax
ja 0x8862
xorl %r14d, %r14d
movl %r15d, %ebx
testb %r14b, %r14b
je 0x8627
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x888a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4300
movl %ebx, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x88a3
jmp 0x88a3
jmp 0x88a3
jmp 0x88a3
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x88c2
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4300
movq %rbx, %rdi
callq 0x45b0