// File: /workspace/github_cpp_makefile_star2_O1/epfml[P]Bi-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::bisent2vec)){
       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::bisent2vec) 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 0x840a
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 0x8417
movq %rax, 0x8(%r15)
movq (%rbx), %rax
cmpq %rax, 0x8(%rbx)
je 0x8424
movq %rax, 0x8(%rbx)
movq %r15, 0x30(%rsp)
movq %rbx, 0x40(%rsp)
movq (%r14), %rax
cmpq %rax, 0x8(%r14)
je 0x843b
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 0x701e
testb %al, %al
je 0x8698
movq 0x10(%rsp), %rdx
cmpq 0x21efe(%rip), %rdx     # 0x2a378
jne 0x84a7
testq %rdx, %rdx
je 0x8496
movq 0x21ee8(%rip), %rsi     # 0x2a370
movq 0x8(%rsp), %rdi
callq 0x4320
testl %eax, %eax
jne 0x84a7
movq (%rbp), %rax
cmpl $0x4, 0xc0(%rax)
je 0x8698
movq %rbp, %rdi
movq %r12, %rsi
callq 0x632e
movq 0x10(%rbp), %rcx
movl %eax, %eax
movl (%rcx,%rax,4), %esi
movl %esi, 0x4(%rsp)
testl %esi, %esi
js 0x8535
movq %rbp, %rdi
callq 0x6cd2
cmpb $0x1, %al
je 0x8615
movl %eax, %r14d
movzbl %al, %eax
testl %eax, %eax
jne 0x8642
movl 0x4(%rsp), %r15d
movq 0x38(%rsp), %rdi
callq 0xc260
addsd 0x163e8(%rip), %xmm0    # 0x1e8e0
cvtsd2ss %xmm0, %xmm0
movq %rbp, %rdi
movl %r15d, %esi
callq 0x6c6a
testb %al, %al
jne 0x860f
movq 0x30(%rsp), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x85b5
movl 0x4(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x85bf
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 0x868f
movq 0x10(%rsp), %rcx
movl $0x811c9dc5, %eax       # imm = 0x811C9DC5
testq %rcx, %rcx
je 0x8587
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 0x8573
movl %eax, (%rsp)
movq 0x28(%rsp), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x85a5
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x85ad
movq %rsp, %rdx
callq 0xb088
xorl %r14d, %r14d
jmp 0x868f
leaq 0x4(%rsp), %rdx
callq 0xad24
movq 0x10(%rsp), %rcx
movl $0x811c9dc5, %eax       # imm = 0x811C9DC5
testq %rcx, %rcx
je 0x85e9
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 0x85d5
movl %eax, (%rsp)
movq 0x28(%rsp), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x8607
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x860f
movq %rsp, %rdx
callq 0xb088
cmpb $0x1, %r14b
jne 0x8642
movl 0x4(%rsp), %eax
subl 0x5c(%rbp), %eax
movl %eax, (%rsp)
movq 0x40(%rsp), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x863a
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x8642
movq %rsp, %rdx
callq 0xb088
leal 0x1(%rbx), %r15d
movq 0x10(%rsp), %rdx
cmpq 0x21d26(%rip), %rdx     # 0x2a378
jne 0x8671
movb $0x1, %r14b
testq %rdx, %rdx
je 0x868c
movq 0x21d0d(%rip), %rsi     # 0x2a370
movq 0x8(%rsp), %rdi
callq 0x4320
testl %eax, %eax
je 0x868c
cmpl $0x400, %ebx            # imm = 0x400
jl 0x8689
movq (%rbp), %rax
movb $0x1, %r14b
cmpl $0x4, 0xc0(%rax)
jne 0x868c
xorl %r14d, %r14d
movl %r15d, %ebx
testb %r14b, %r14b
je 0x845b
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x86b4
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 0x86cd
jmp 0x86cd
jmp 0x86cd
jmp 0x86cd
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x86ec
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4300
movq %rbx, %rdi
callq 0x45b0