// File: /workspace/github_cpp_makefile_star2_O3/epfml[P]Bi-Sent2Vec/src/dictionary.cc
// Function: fasttext::Dictionary::load(std::istream&)
void Dictionary::load(std::istream& in) {
  words_.clear();
  std::fill(word2int_.begin(), word2int_.end(), -1);
  in.read((char*) &size_, sizeof(int32_t));
  in.read((char*) &nwords_, sizeof(int32_t));
  in.read((char*) &nlabels_, sizeof(int32_t));
  in.read((char*) &ntokens_, sizeof(int64_t));
  in.read((char*) &pruneidx_size_, sizeof(int64_t));
  for (int32_t i = 0; i < size_; i++) {
    char c;
    entry e;
    while ((c = in.get()) != 0) {
      e.word.push_back(c);
    }
    in.read((char*) &e.count, sizeof(int64_t));
    in.read((char*) &e.type, sizeof(entry_type));
    words_.push_back(e);
    word2int_[find(e.word)] = i;
  }
  pruneidx_.clear();
  for (int32_t i = 0; i < pruneidx_size_; i++) {
    int32_t first;
    int32_t second;
    in.read((char*) &first, sizeof(int32_t));
    in.read((char*) &second, sizeof(int32_t));
    pruneidx_[first] = second;
  }
  initTableDiscard();
  initNgrams();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %r14
movq %rdi, %rbx
addq $0x28, %rdi
movq 0x28(%rbx), %rsi
movq %rdi, (%rsp)
callq 0xb3b0
movq 0x10(%rbx), %rdi
movq 0x18(%rbx), %rdx
cmpq %rdx, %rdi
je 0x8a31
subq %rdi, %rdx
addq $-0x4, %rdx
andq $-0x4, %rdx
addq $0x4, %rdx
movl $0xff, %esi
callq 0x41b0
leaq 0x58(%rbx), %rsi
movl $0x4, %edx
movq %r14, %rdi
movq %rsi, 0x18(%rsp)
callq 0x43b0
leaq 0x5c(%rbx), %rsi
movl $0x4, %edx
movq %r14, %rdi
callq 0x43b0
leaq 0x60(%rbx), %rsi
movl $0x4, %edx
movq %r14, %rdi
callq 0x43b0
leaq 0x68(%rbx), %rsi
movl $0x8, %edx
movq %r14, %rdi
callq 0x43b0
leaq 0x70(%rbx), %rsi
movl $0x8, %edx
movq %r14, %rdi
movq %rsi, 0x10(%rsp)
callq 0x43b0
cmpl $0x0, 0x58(%rbx)
jle 0x8b62
leaq 0x30(%rsp), %r15
xorl %r12d, %r12d
leaq 0x20(%rsp), %rbp
xorl %r13d, %r13d
movq %r15, 0x20(%rsp)
movq %r12, 0x28(%rsp)
movb $0x0, 0x30(%rsp)
movq %r12, 0x30(%r15)
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%r15)
movq %r14, %rdi
callq 0x4370
testb %al, %al
je 0x8ade
movsbl %al, %esi
movq %rbp, %rdi
callq 0x4290
jmp 0x8ac5
movl $0x8, %edx
movq %r14, %rdi
leaq 0x40(%rsp), %rsi
callq 0x43b0
movl $0x1, %edx
movq %r14, %rdi
leaq 0x48(%rsp), %rsi
callq 0x43b0
movq (%rsp), %rdi
movq %rbp, %rsi
callq 0xa502
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x6332
movq 0x10(%rbx), %rcx
movl %eax, %eax
movl %r13d, (%rcx,%rax,4)
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x8b3a
movq 0x60(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0x8b51
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x4300
incl %r13d
movq 0x18(%rsp), %rax
cmpl (%rax), %r13d
jl 0x8aaa
leaq 0x78(%rbx), %r15
movq %r15, %rdi
callq 0xc34e
movq %rbx, (%rsp)
cmpq $0x0, 0x70(%rbx)
movq 0x10(%rsp), %rbx
jle 0x8bc1
xorl %r12d, %r12d
leaq 0x20(%rsp), %r13
movl $0x4, %edx
movq %r14, %rdi
movq %r13, %rsi
callq 0x43b0
movl $0x4, %edx
movq %r14, %rdi
leaq 0xc(%rsp), %rsi
callq 0x43b0
movl 0xc(%rsp), %ebp
movq %r15, %rdi
movq %r13, %rsi
callq 0xc398
movl %ebp, (%rax)
incq %r12
cmpq %r12, (%rbx)
jg 0x8b86
movq (%rsp), %rbx
movq %rbx, %rdi
callq 0x7a7c
movq %rbx, %rdi
callq 0x6ed8
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x8be6
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0xa52c
movq %rbx, %rdi
callq 0x45b0
nop