// File: ddu1[P]polarizedtext/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)
{
  wi_ = wi;
  wo_ = wo;
  args_ = args;
  isz_ = wi->m_;
  osz_ = wo->m_;
  hsz_ = args->dim;
  negpos = 0;
  loss_ = 0.0;
  nexamples_ = 1;
  initSigmoid();
  initLog();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq %rsi, -0x78(%rbp)
movq %rdx, -0x70(%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, -0x68(%rbp)
callq 0x15800
movq -0x50(%rbp), %rdi
addq $0x10, %rdi
movq %rdi, -0x60(%rbp)
callq 0x15800
movq -0x50(%rbp), %rdi
addq $0x20, %rdi
movq %rdi, -0x58(%rbp)
callq 0x9e20
movq -0x50(%rbp), %rax
movq -0x48(%rbp), %rdi
addq $0x30, %rax
movq %rax, -0x40(%rbp)
callq 0xa170
movq -0x40(%rbp), %rdi
movslq 0x6c(%rax), %rsi
callq 0x13030
jmp 0x13965
movq -0x68(%rbp), %rdi
addq $0x40, %rdi
movq %rdi, -0x88(%rbp)
callq 0x9e40
movq -0x68(%rbp), %rax
movq -0x70(%rbp), %rdi
addq $0x58, %rax
movq %rax, -0x80(%rbp)
callq 0x15820
movq -0x80(%rbp), %rdi
movq 0x8(%rax), %rsi
callq 0x13030
jmp 0x1399d
movq -0x48(%rbp), %rdi
movq -0x68(%rbp), %rax
addq $0x68, %rax
movq %rax, -0x90(%rbp)
callq 0xa170
movq -0x90(%rbp), %rdi
movslq 0x6c(%rax), %rsi
callq 0x13030
jmp 0x139c7
movq -0x68(%rbp), %rdi
addq $0xa0, %rdi
movq %rdi, -0xb0(%rbp)
callq 0x9e40
movq -0x68(%rbp), %rdi
addq $0xc0, %rdi
movq %rdi, -0xa8(%rbp)
callq 0x15840
movq -0x68(%rbp), %rdi
addq $0xd8, %rdi
movq %rdi, -0xa0(%rbp)
callq 0x15860
movq -0x68(%rbp), %rdi
addq $0xf0, %rdi
movq %rdi, -0x98(%rbp)
callq 0x15880
movq -0x68(%rbp), %rdi
addq $0x108, %rdi            # imm = 0x108
movslq -0x24(%rbp), %rsi
callq 0x12f40
jmp 0x13a39
movq -0x68(%rbp), %rdi
movq -0x78(%rbp), %rsi
callq 0x158a0
movq -0x70(%rbp), %rsi
movq -0x68(%rbp), %rdi
addq $0x10, %rdi
callq 0x158a0
movq -0x48(%rbp), %rsi
movq -0x68(%rbp), %rdi
addq $0x20, %rdi
callq 0x9ea0
movq -0x78(%rbp), %rdi
callq 0x15820
movq -0x70(%rbp), %rdi
movq %rax, %rcx
movq -0x68(%rbp), %rax
movl 0x8(%rcx), %ecx
movl %ecx, 0x7c(%rax)
callq 0x15820
movq -0x48(%rbp), %rdi
movq %rax, %rcx
movq -0x68(%rbp), %rax
movl 0x8(%rcx), %ecx
movl %ecx, 0x80(%rax)
callq 0xa170
movq -0x68(%rbp), %rdi
movl 0x6c(%rax), %eax
movl %eax, 0x78(%rdi)
movq $0x0, 0xb8(%rdi)
movl $0x0, 0x84(%rdi)
movq $0x1, 0x88(%rdi)
callq 0x13ba0
jmp 0x13ad1
movq -0x68(%rbp), %rdi
callq 0x13c70
jmp 0x13adc
addq $0xb0, %rsp
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x13b78
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x13b63
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x13b5a
movq -0x98(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
callq 0x158d0
movq -0xa0(%rbp), %rdi
callq 0x15930
movq -0xa8(%rbp), %rdi
callq 0x15990
movq -0xb0(%rbp), %rdi
callq 0xa040
movq -0x90(%rbp), %rdi
callq 0x131d0
movq -0x80(%rbp), %rdi
callq 0x131d0
movq -0x88(%rbp), %rdi
callq 0xa040
movq -0x40(%rbp), %rdi
callq 0x131d0
movq -0x58(%rbp), %rdi
callq 0xa0a0
movq -0x60(%rbp), %rdi
callq 0x159f0
movq -0x50(%rbp), %rdi
callq 0x159f0
movq -0x30(%rbp), %rdi
callq 0x45b0
nopl (%rax)