// File: /workspace/github_cpp_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %r8d, %r15d
movq %rcx, %r13
movq %rdx, %rbp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x30(%rdi), %r12
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rdi)
movups %xmm0, 0x10(%rdi)
movups %xmm0, (%rdi)
movq (%rcx), %rax
movslq 0x6c(%rax), %rsi
movq %r12, %rdi
callq 0x94c8
xorps %xmm0, %xmm0
movups %xmm0, 0x40(%rbx)
movq $0x0, 0x50(%rbx)
leaq 0x58(%rbx), %rdi
movq (%rbp), %rax
movq 0x8(%rax), %rsi
movq %rdi, 0x18(%rsp)
movq %r12, 0x20(%rsp)
callq 0x94c8
leaq 0x68(%rbx), %rdi
movq (%r13), %rax
movslq 0x6c(%rax), %rsi
movq %rdi, 0x10(%rsp)
callq 0x94c8
leaq 0xa0(%rbx), %rax
movq %rax, 0x8(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0xa0(%rbx)
xorl %r12d, %r12d
movq %r12, 0xb0(%rbx)
leaq 0xc0(%rbx), %rax
movq %rax, (%rsp)
movslq %r15d, %rcx
movabsq $0x200000005, %rdx      # imm = 0x200000005
movq %rcx, %rax
mulq %rdx
leaq 0xd8(%rbx), %r15
movq %rcx, %rax
subq %rdx, %rax
shrq %rax
addq %rdx, %rax
shrq $0x1e, %rax
movq %rax, %rdx
shlq $0x1f, %rdx
subq %rdx, %rax
leaq (%rcx,%rax), %rdx
cmpq $0x1, %rdx
adcq %rcx, %rax
movups %xmm0, 0xc0(%rbx)
movups %xmm0, 0xd0(%rbx)
movups %xmm0, 0xe0(%rbx)
movups %xmm0, 0xf0(%rbx)
movq %r12, 0x100(%rbx)
movq %rax, 0x108(%rbx)
movq (%r14), %rax
movq %rax, (%rbx)
leaq 0x8(%rbx), %rdi
leaq 0x8(%r14), %rsi
callq 0x77de
movq (%rbp), %rax
movq %rax, 0x10(%rbx)
leaq 0x18(%rbx), %rdi
leaq 0x8(%rbp), %rsi
callq 0x77de
movq (%r13), %rax
movq %rax, 0x20(%rbx)
leaq 0x28(%rbx), %rdi
leaq 0x8(%r13), %rsi
callq 0x77de
movq (%r14), %rax
movl 0x8(%rax), %eax
movl %eax, 0x7c(%rbx)
movq (%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, 0x80(%rbx)
movq (%r13), %rax
movl 0x6c(%rax), %eax
movl %eax, 0x78(%rbx)
movq %r12, 0xb8(%rbx)
movl $0x0, 0x84(%rbx)
movq $0x1, 0x88(%rbx)
movq %rbx, %rdi
callq 0x9c80
movq %rbx, %rdi
callq 0x9cfa
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r13
jmp 0x9c21
movq %rax, %r13
jmp 0x9c2b
movq %rax, %r13
jmp 0x9c4d
movq %rax, %r13
movq 0xf0(%rbx), %rdi
testq %rdi, %rdi
je 0x9bea
movq 0x100(%rbx), %rsi
subq %rdi, %rsi
callq 0x3260
movq %r15, %rdi
callq 0xb192
movq (%rsp), %rdi
callq 0xb1c2
movq 0x8(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x9c17
movq 0xb0(%rbx), %rsi
subq %rdi, %rsi
callq 0x3260
movq 0x10(%rsp), %rdi
callq 0x95a2
movq 0x18(%rsp), %rdi
callq 0x95a2
leaq 0x40(%rbx), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x9c43
movq 0x50(%rbx), %rsi
subq %rdi, %rsi
callq 0x3260
movq 0x20(%rsp), %rdi
callq 0x95a2
movq 0x28(%rbx), %rdi
testq %rdi, %rdi
je 0x9c5b
callq 0x7832
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x9c69
callq 0x7832
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x9c77
callq 0x7832
movq %r13, %rdi
callq 0x3450
nop