// File: /workspace/github_cpp_makefile_star2_O3/epfml[P]Bi-Sent2Vec/src/fasttext.cc
// Function: fasttext::FastText::textVectors(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&, int, std::vector<float, std::allocator<float>>&)
void FastText::textVectors(std::vector<std::string>& sentences, int num_threads, std::vector<real>& final) {
  std::shared_ptr<Matrix> emb;
  std::shared_ptr<std::vector<std::string>> sents;
  sents = std::make_shared<std::vector<std::string>>(sentences);
  emb = std::make_shared<Matrix>(sentences.size(), args_->dim);
  emb->zero();
  std::vector<std::thread> threads;
  for (int32_t i = 0; i < num_threads; i++) {
    threads.push_back(std::thread([=]() { textVectorThread(i, sents, emb, num_threads); }));
  }
  for (auto it = threads.begin(); it != threads.end(); ++it) {
    it->join();
  }
  memcpy(&final[0], &emb->data_[0], emb->m_*emb->n_ * sizeof(real));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rcx, %r13
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r12
xorl %eax, %eax
leaq 0x38(%rsp), %rdi
movq %rax, -0x8(%rdi)
leaq 0x30(%rsp), %r14
leaq 0x10(%rsp), %r15
movq %r14, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x1b2a6
movq (%r14), %rax
movq %rax, 0x78(%rsp)
movq 0x8(%rbx), %rax
subq (%rbx), %rax
movq 0x8(%r14), %rbx
movl $0x94, %r8d
movq %r12, 0x80(%rsp)
addq (%r12), %r8
sarq $0x5, %rax
movq %rax, (%r15)
xorl %eax, %eax
movq %rax, (%r14)
leaq 0x38(%rsp), %rdi
leaq 0x30(%rsp), %rsi
movq %rsp, %rdx
leaq 0x10(%rsp), %rcx
callq 0x1a9e2
movq 0x30(%rsp), %rdi
movq 0x38(%rsp), %r14
movq %rdi, 0x68(%rsp)
callq 0xe068
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
testl %ebp, %ebp
jle 0x16351
movq %r13, 0x70(%rsp)
xorl %r12d, %r12d
leaq 0x8(%rsp), %r15
xorl %r13d, %r13d
movq 0x80(%rsp), %rax
movq %rax, 0x30(%rsp)
movl %r13d, 0x38(%rsp)
movq 0x78(%rsp), %rax
movq %rax, 0x40(%rsp)
movq %rbx, 0x48(%rsp)
testq %rbx, %rbx
je 0x16263
movq 0x13d63(%rip), %rax     # 0x29fb8
cmpb $0x0, (%rax)
je 0x1625f
incl 0x8(%rbx)
jmp 0x16263
lock
incl 0x8(%rbx)
movq 0x68(%rsp), %rax
movq %rax, 0x50(%rsp)
movq %r14, 0x58(%rsp)
testq %r14, %r14
je 0x1628e
movq 0x13d3a(%rip), %rax     # 0x29fb8
cmpb $0x0, (%rax)
je 0x16289
incl 0x8(%r14)
jmp 0x1628e
lock
incl 0x8(%r14)
movl %ebp, 0x60(%rsp)
movq $0x0, 0x8(%rsp)
movl $0x40, %edi
callq 0x42f0
leaq 0x139d4(%rip), %rcx     # 0x29c80
movq %rcx, (%rax)
movq 0x30(%rsp), %rcx
movq %rcx, 0x8(%rax)
movl 0x38(%rsp), %ecx
movl %ecx, 0x10(%rax)
movups 0x40(%rsp), %xmm0
movq %r12, 0x48(%rsp)
movups %xmm0, 0x18(%rax)
movq %r12, 0x40(%rsp)
movups 0x50(%rsp), %xmm0
movq %r12, 0x58(%rsp)
movups %xmm0, 0x28(%rax)
movq %r12, 0x50(%rsp)
movl %ebp, 0x38(%rax)
movq %rax, (%rsp)
movq %r15, %rdi
movq %rsp, %rsi
xorl %edx, %edx
callq 0x42b0
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x16308
movq (%rdi), %rax
callq *0x8(%rax)
leaq 0x10(%rsp), %rdi
movq %r15, %rsi
callq 0x1aa62
cmpq $0x0, 0x8(%rsp)
jne 0x1640e
incl %r13d
cmpl %r13d, %ebp
jne 0x16228
movq 0x10(%rsp), %r15
cmpq 0x18(%rsp), %r15
movq 0x70(%rsp), %r13
je 0x16351
movq %r15, %rdi
callq 0x4570
addq $0x8, %r15
cmpq 0x18(%rsp), %r15
jne 0x1633e
movq (%r13), %rdi
movq 0x68(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
imulq 0x10(%rax), %rdx
shlq $0x2, %rdx
callq 0x4260
leaq 0x10(%rsp), %rdi
callq 0x1a104
testq %rbx, %rbx
je 0x16386
movq %rbx, %rdi
callq 0xa8a0
testq %r14, %r14
je 0x16393
movq %r14, %rdi
callq 0xa8a0
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
jmp 0x163ec
movq %rax, %r15
xorl %r14d, %r14d
jmp 0x163ec
movq %rax, %r15
jmp 0x163e2
jmp 0x163d5
movq %rax, %r15
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x163d8
movq (%rdi), %rax
callq *0x8(%rax)
jmp 0x163d8
cmpq $0x0, 0x8(%rsp)
jne 0x1640e
movq %rax, %r15
leaq 0x30(%rsp), %rdi
callq 0x16414
leaq 0x10(%rsp), %rdi
callq 0x1a104
testq %rbx, %rbx
je 0x163f9
movq %rbx, %rdi
callq 0xa8a0
testq %r14, %r14
je 0x16406
movq %r14, %rdi
callq 0xa8a0
movq %r15, %rdi
callq 0x45b0
callq 0x40d0
nop