// File: epfml[P]Bi-Sent2Vec/src/model.cc
// Function: fasttext::Model::Model(std::shared_ptr<fasttext::Matrix>, std::shared_ptr<fasttext::Matrix>, std::shared_ptr<fasttext::Args>, int)
Model::Model(std::shared_ptr<Matrix> wi,
             std::shared_ptr<Matrix> wo,
             std::shared_ptr<Args> args,
             int32_t seed)
  : hidden_(args->dim), output_(wo->m_),
  grad_(args->dim), rng(seed), quant_(false)
{
  wi_ = wi;
  wo_ = wo;
  args_ = args;
  osz_ = wo->m_;
  hsz_ = args->dim;
  negpos = 0;
  loss_ = 0.0;
  nexamples_ = 1;
  initSigmoid();
  initLog();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movq %rsi, -0x88(%rbp)
movq %rdx, -0x80(%rbp)
movq %rcx, -0x48(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl %r8d, -0x24(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x50(%rbp)
movq %rdi, %rax
movq %rax, -0x78(%rbp)
callq 0x23590
movq -0x50(%rbp), %rdi
addq $0x10, %rdi
movq %rdi, -0x70(%rbp)
callq 0x23590
movq -0x50(%rbp), %rdi
addq $0x20, %rdi
movq %rdi, -0x68(%rbp)
callq 0x235b0
movq -0x50(%rbp), %rdi
addq $0x30, %rdi
movq %rdi, -0x60(%rbp)
callq 0x235b0
movq -0x50(%rbp), %rdi
addq $0x40, %rdi
movq %rdi, -0x58(%rbp)
callq 0x235d0
movq -0x50(%rbp), %rax
movq -0x48(%rbp), %rdi
addq $0x50, %rax
movq %rax, -0x40(%rbp)
callq 0xe6e0
movq -0x40(%rbp), %rdi
movslq 0x94(%rax), %rsi
callq 0x20c00
jmp 0x215bd
movq -0x80(%rbp), %rdi
movq -0x78(%rbp), %rax
addq $0x60, %rax
movq %rax, -0x90(%rbp)
callq 0x235f0
movq -0x90(%rbp), %rdi
movq 0x8(%rax), %rsi
callq 0x20c00
jmp 0x215e7
movq -0x48(%rbp), %rdi
movq -0x78(%rbp), %rax
addq $0x70, %rax
movq %rax, -0x98(%rbp)
callq 0xe6e0
movq -0x98(%rbp), %rdi
movslq 0x94(%rax), %rsi
callq 0x20c00
jmp 0x21614
movq -0x78(%rbp), %rdi
addq $0xa8, %rdi
movq %rdi, -0xb8(%rbp)
callq 0xe440
movq -0x78(%rbp), %rdi
addq $0xc8, %rdi
movq %rdi, -0xb0(%rbp)
callq 0x23610
movq -0x78(%rbp), %rdi
addq $0xe0, %rdi
movq %rdi, -0xa8(%rbp)
callq 0x23630
movq -0x78(%rbp), %rdi
addq $0xf8, %rdi
movq %rdi, -0xa0(%rbp)
callq 0x23650
movq -0x78(%rbp), %rdi
addq $0x110, %rdi            # imm = 0x110
movslq -0x24(%rbp), %rsi
callq 0x1d2e0
jmp 0x21686
movq -0x78(%rbp), %rdi
movq -0x88(%rbp), %rsi
movb $0x0, 0x118(%rdi)
callq 0x23670
movq -0x80(%rbp), %rsi
movq -0x78(%rbp), %rdi
addq $0x10, %rdi
callq 0x23670
movq -0x48(%rbp), %rsi
movq -0x78(%rbp), %rdi
addq $0x40, %rdi
callq 0x236a0
movq -0x80(%rbp), %rdi
callq 0x235f0
movq -0x48(%rbp), %rdi
movq %rax, %rcx
movq -0x78(%rbp), %rax
movl 0x8(%rcx), %ecx
movl %ecx, 0x88(%rax)
callq 0xe6e0
movq -0x78(%rbp), %rdi
movl 0x94(%rax), %eax
movl %eax, 0x80(%rdi)
movq $0x0, 0xc0(%rdi)
movl $0x0, 0x8c(%rdi)
movq $0x1, 0x90(%rdi)
callq 0x217f0
jmp 0x21718
movq -0x78(%rbp), %rdi
callq 0x218c0
jmp 0x21723
addq $0xc0, %rsp
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x217b3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x217aa
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x2179e
movq -0xa0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
callq 0x236d0
movq -0xa8(%rbp), %rdi
callq 0x23730
movq -0xb0(%rbp), %rdi
callq 0x23790
movq -0xb8(%rbp), %rdi
callq 0xe530
movq -0x98(%rbp), %rdi
callq 0x20c60
movq -0x90(%rbp), %rdi
callq 0x20c60
movq -0x40(%rbp), %rdi
callq 0x20c60
movq -0x58(%rbp), %rdi
callq 0xe1b0
movq -0x60(%rbp), %rdi
callq 0x237f0
movq -0x68(%rbp), %rdi
callq 0x237f0
movq -0x70(%rbp), %rdi
callq 0x23810
movq -0x50(%rbp), %rdi
callq 0x23810
movq -0x30(%rbp), %rdi
callq 0x57a0
nopl (%rax)