// File: /workspace/github_cpp_makefile_star2_O3/ddu1[P]polarizedtext/src/fasttext.cc
// Function: fasttext::FastText::loadModel(std::istream&)
void FastText::loadModel(std::istream& in) {
  args_ = std::make_shared<Args>();
  dict_ = std::make_shared<Dictionary>(args_);
  input_ = std::make_shared<Matrix>();
  output_ = std::make_shared<Matrix>();
  args_->load(in);
  dict_->load(in);
  input_->load(in);
  output_->load(in);
  model_ = std::make_shared<Model>(input_, output_, args_, 0);
  if (args_->model == model_name::sup) {
    model_->setTargetCounts(dict_->getCounts(entry_type::label));
  } else {
    model_->setTargetCounts(dict_->getCounts(entry_type::word));
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x18(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x10(%rsp), %r15
leaq 0xc(%rsp), %rdx
movq %r15, %rsi
callq 0xef32
movaps (%r15), %xmm0
xorps %xmm1, %xmm1
movaps %xmm1, (%r15)
movq 0x8(%rbx), %rdi
movups %xmm0, (%rbx)
testq %rdi, %rdi
je 0xcbb2
callq 0x7832
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0xcbb2
callq 0x7832
leaq 0x18(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x10(%rsp), %r15
leaq 0xc(%rsp), %rdx
movq %r15, %rsi
movq %rbx, %rcx
callq 0xf08a
movaps (%r15), %xmm0
xorps %xmm1, %xmm1
movaps %xmm1, (%r15)
movq 0x18(%rbx), %rdi
movups %xmm0, 0x10(%rbx)
testq %rdi, %rdi
je 0xcc00
callq 0x7832
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0xcc00
callq 0x7832
leaq 0x18(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x10(%rsp), %r15
leaq 0xc(%rsp), %rdx
movq %r15, %rsi
callq 0xf238
movaps (%r15), %xmm0
xorps %xmm1, %xmm1
movaps %xmm1, (%r15)
movq 0x28(%rbx), %rdi
movups %xmm0, 0x20(%rbx)
testq %rdi, %rdi
je 0xcc4b
callq 0x7832
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0xcc4b
callq 0x7832
leaq 0x20(%rbx), %r15
leaq 0x18(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x10(%rsp), %rbp
leaq 0xc(%rsp), %r13
movq %rbp, %rsi
movq %r13, %rdx
callq 0xf238
leaq 0x30(%rbx), %r12
movaps (%rbp), %xmm0
xorps %xmm1, %xmm1
movaps %xmm1, (%rbp)
movq 0x38(%rbx), %rdi
movups %xmm0, 0x30(%rbx)
testq %rdi, %rdi
je 0xcca1
callq 0x7832
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0xcca1
callq 0x7832
movq (%rbx), %rdi
movq %r14, %rsi
callq 0x4756
movq 0x10(%rbx), %rdi
movq %r14, %rsi
callq 0x6432
movq 0x20(%rbx), %rdi
movq %r14, %rsi
callq 0x9452
movq 0x30(%rbx), %rdi
movq %r14, %rsi
callq 0x9452
movl $0x0, 0xc(%rsp)
leaq 0x18(%rsp), %rdi
movq $0x0, -0x8(%rdi)
movq %r13, (%rsp)
leaq 0x10(%rsp), %r14
leaq 0x37(%rsp), %rdx
movq %r14, %rsi
movq %r15, %rcx
movq %r12, %r8
movq %rbx, %r9
callq 0xf304
movaps (%r14), %xmm0
xorps %xmm1, %xmm1
movaps %xmm1, (%r14)
movq 0x48(%rbx), %rdi
movups %xmm0, 0x40(%rbx)
testq %rdi, %rdi
je 0xcd30
callq 0x7832
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0xcd30
callq 0x7832
movq (%rbx), %rax
movq 0x40(%rbx), %r14
cmpl $0x3, 0x8c(%rax)
jne 0xcd63
movq 0x10(%rbx), %rsi
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
movl $0x1, %edx
callq 0x5e5a
movq %r14, %rdi
movq %rbx, %rsi
callq 0xac7a
jmp 0xcd81
movq 0x10(%rbx), %rsi
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
xorl %edx, %edx
callq 0x5e5a
movq %r14, %rdi
movq %rbx, %rsi
callq 0xac7a
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xcd98
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x3260
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xcda9
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xcdc3
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x3260
movq %rbx, %rdi
callq 0x3450
nop