// File: /workspace/github_cpp_makefile_star2_O1/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 %rcx, %rbx
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
leaq 0x20(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq (%rdx), %rax
cmpq %rax, 0x8(%rdx)
je 0x6002
movq %rax, 0x8(%r15)
movq (%rbx), %rax
cmpq %rax, 0x8(%rbx)
je 0x600f
movq %rax, 0x8(%rbx)
movq (%r12), %rax
movq -0x18(%rax), %rdi
testb $0x2, 0x20(%r12,%rdi)
je 0x6035
addq %r12, %rdi
xorl %esi, %esi
callq 0x3400
movq %r12, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x32f0
xorl %ebp, %ebp
leaq 0x10(%rsp), %r14
movq %r12, %rsi
movq %r14, %rdx
callq 0x55d4
testb %al, %al
je 0x6180
movq 0x18(%rsp), %rdx
cmpq 0x12235(%rip), %rdx     # 0x18290
jne 0x607f
testq %rdx, %rdx
je 0x6180
movq 0x1221b(%rip), %rsi     # 0x18288
movq 0x10(%rsp), %rdi
callq 0x3280
testl %eax, %eax
je 0x6180
movq %r13, %rdi
movq %r14, %rsi
callq 0x4a22
movq 0x10(%r13), %rcx
movl %eax, %eax
movl (%rcx,%rax,4), %esi
movl %esi, 0x4(%rsp)
testl %esi, %esi
js 0x6104
movq %r13, %rdi
callq 0x5390
cmpb $0x1, %al
je 0x6122
movl %eax, %r14d
movzbl %al, %eax
testl %eax, %eax
jne 0x6151
movl %ebp, 0x8(%rsp)
movq %r12, %rbp
movq %rbx, %r12
movl 0x4(%rsp), %ebx
movq 0x30(%rsp), %rdi
callq 0x8f2d
addsd 0xb51b(%rip), %xmm0     # 0x115f0
cvtsd2ss %xmm0, %xmm0
movq %r13, %rdi
movl %ebx, %esi
callq 0x5328
testb %al, %al
jne 0x6112
movq %r15, %rdi
movq 0x8(%r15), %rsi
cmpq 0x10(%r15), %rsi
je 0x6108
movl 0x4(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x6112
xorl %eax, %eax
jmp 0x6178
leaq 0x4(%rsp), %rdx
callq 0x9076
cmpb $0x1, %r14b
movq %r12, %rbx
movq %rbp, %r12
movl 0x8(%rsp), %ebp
jne 0x6151
movl 0x4(%rsp), %eax
subl 0x5c(%r13), %eax
movl %eax, 0xc(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x6144
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x6151
movq %rbx, %rdi
leaq 0xc(%rsp), %rdx
callq 0x8222
incl %ebp
movq 0x8(%r15), %rax
subq (%r15), %rax
cmpq $0x1001, %rax           # imm = 0x1001
jb 0x6171
movq (%r13), %rcx
movb $0x1, %al
cmpl $0x3, 0x8c(%rcx)
jne 0x6173
xorl %eax, %eax
leaq 0x10(%rsp), %r14
testb %al, %al
je 0x603c
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x619c
movq 0x20(%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 0x61b3
jmp 0x61b3
jmp 0x61b3
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x61d2
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3260
movq %rbx, %rdi
callq 0x3450