// File: /workspace/github_cpp_makefile_star2_O3/ddu1[P]polarizedtext/src/dictionary.cc
// Function: fasttext::Dictionary::getLine(std::istream&, 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>& labels,
                            std::minstd_rand& rng) const {
  std::uniform_real_distribution<> uniform(0, 1);
  std::string token;
  int32_t ntokens = 0;
  words.clear();
  labels.clear();
  if (in.eof()) {
    in.clear();
    in.seekg(std::streampos(0));
  }
  while (readWord(in, token)) {
    if (token == EOS) break;
    int32_t wid = getId(token);
    if (wid < 0) continue;
    entry_type type = getType(wid);
    ntokens++;
    if (type == entry_type::word && !discard(wid, uniform(rng))) {
      words.push_back(wid);
    }
    if (type == entry_type::label) {
      labels.push_back(wid - nwords_);
    }
    if (words.size() > MAX_LINE_SIZE && args_->model != model_name::sup) break;
  }
  return ntokens;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r8, 0x30(%rsp)
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq (%rdx), %rax
cmpq %rax, 0x8(%rdx)
je 0x6035
movq %rax, 0x8(%r15)
movq (%rcx), %rax
cmpq %rax, 0x8(%rcx)
je 0x6042
movq %rax, 0x8(%rcx)
movq %rcx, 0x28(%rsp)
movq (%r12), %rax
movq -0x18(%rax), %rdi
testb $0x2, 0x20(%r12,%rdi)
je 0x606d
addq %r12, %rdi
xorl %esi, %esi
callq 0x3400
movq %r12, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x32f0
xorl %ebp, %ebp
leaq 0x8(%rsp), %rbx
movq %r12, %rsi
movq %rbx, %rdx
callq 0x55f4
testb %al, %al
je 0x618a
movq 0x10(%rsp), %rdx
cmpq 0x121fd(%rip), %rdx     # 0x18290
jne 0x60b7
testq %rdx, %rdx
je 0x618a
movq 0x121e3(%rip), %rsi     # 0x18288
movq 0x8(%rsp), %rdi
callq 0x3280
testl %eax, %eax
je 0x618a
movq %r13, %rdi
movq %rbx, %rsi
callq 0x4a2e
movq 0x10(%r13), %rcx
movl %eax, %eax
movl (%rcx,%rax,4), %esi
movl %esi, (%rsp)
testl %esi, %esi
js 0x6074
movq %r13, %rdi
callq 0x53ae
cmpb $0x1, %al
je 0x6127
movzbl %al, %eax
testl %eax, %eax
jne 0x6164
movl (%rsp), %r14d
movq 0x30(%rsp), %rdi
callq 0x8efd
addsd 0xb525(%rip), %xmm0     # 0x11620
cvtsd2ss %xmm0, %xmm0
movq %r13, %rdi
movl %r14d, %esi
callq 0x5346
testb %al, %al
jne 0x6164
movq 0x8(%r15), %rsi
cmpq 0x10(%r15), %rsi
je 0x6159
movl (%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%r15)
jmp 0x6164
movl (%rsp), %eax
subl 0x5c(%r13), %eax
movl %eax, 0x4(%rsp)
movq 0x28(%rsp), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x614d
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x6164
leaq 0x4(%rsp), %rdx
callq 0x8236
jmp 0x6164
movq %r15, %rdi
movq %rsp, %rdx
callq 0x9046
incl %ebp
movq 0x8(%r15), %rax
subq (%r15), %rax
cmpq $0x1001, %rax           # imm = 0x1001
jb 0x6074
movq (%r13), %rax
cmpl $0x3, 0x8c(%rax)
je 0x6074
leaq 0x18(%rsp), %rax
movq 0x8(%rsp), %rdi
cmpq %rax, %rdi
je 0x61a6
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3260
movl %ebp, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x61bd
jmp 0x61bd
jmp 0x61bd
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x61dc
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3260
movq %rbx, %rdi
callq 0x3450