// File: /workspace/github_cpp_makefile_star2_O1/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 $0x98, %rsp
movq %rcx, 0x88(%rsp)
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, 0x80(%rsp)
leaq 0x18(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x10(%rsp), %rsi
leaq 0x60(%rsp), %rdx
movq %r14, %rcx
callq 0x1b242
movq 0x10(%rsp), %rax
movq %rax, 0x90(%rsp)
movq 0x18(%rsp), %rbx
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x160a0
callq 0xa86c
movq 0x8(%r14), %rax
subq (%r14), %rax
sarq $0x5, %rax
leaq 0x60(%rsp), %rcx
movq %rax, (%rcx)
movl $0x94, %r8d
movq 0x80(%rsp), %rax
addq (%rax), %r8
leaq 0x18(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x10(%rsp), %rsi
leaq 0x8(%rsp), %rdx
callq 0x1a958
movq 0x10(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x18(%rsp), %r14
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x16106
callq 0xa86c
movq 0x50(%rsp), %rdi
callq 0xddee
xorps %xmm0, %xmm0
movaps %xmm0, 0x60(%rsp)
movq $0x0, 0x70(%rsp)
testl %ebp, %ebp
jle 0x1625a
xorl %r12d, %r12d
leaq 0x58(%rsp), %r15
xorl %r13d, %r13d
movq 0x80(%rsp), %rax
movq %rax, 0x10(%rsp)
movl %r13d, 0x18(%rsp)
movq 0x90(%rsp), %rax
movq %rax, 0x20(%rsp)
movq %rbx, 0x28(%rsp)
testq %rbx, %rbx
je 0x16172
movq 0x13e54(%rip), %rax     # 0x29fb8
cmpb $0x0, (%rax)
je 0x1616e
incl 0x8(%rbx)
jmp 0x16172
lock
incl 0x8(%rbx)
movq 0x50(%rsp), %rax
movq %rax, 0x30(%rsp)
movq %r14, 0x38(%rsp)
testq %r14, %r14
je 0x1619d
movq 0x13e2b(%rip), %rax     # 0x29fb8
cmpb $0x0, (%rax)
je 0x16198
incl 0x8(%r14)
jmp 0x1619d
lock
incl 0x8(%r14)
movl %ebp, 0x40(%rsp)
movq $0x0, 0x58(%rsp)
movl $0x40, %edi
callq 0x42f0
leaq 0x13ac5(%rip), %rcx     # 0x29c80
movq %rcx, (%rax)
movq 0x10(%rsp), %rcx
movq %rcx, 0x8(%rax)
movl 0x18(%rsp), %ecx
movl %ecx, 0x10(%rax)
movq 0x20(%rsp), %rcx
movq %rcx, 0x18(%rax)
movq %r12, 0x20(%rax)
movq 0x28(%rsp), %rcx
movq %r12, 0x28(%rsp)
movq %rcx, 0x20(%rax)
movq %r12, 0x20(%rsp)
movq 0x30(%rsp), %rcx
movq %rcx, 0x28(%rax)
movq %r12, 0x30(%rax)
movq 0x38(%rsp), %rcx
movq %r12, 0x38(%rsp)
movq %rcx, 0x30(%rax)
movq %r12, 0x30(%rsp)
movl %ebp, 0x38(%rax)
movq %rax, 0x8(%rsp)
movq %r15, %rdi
leaq 0x8(%rsp), %rsi
xorl %edx, %edx
callq 0x42b0
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x16235
movq (%rdi), %rax
callq *0x8(%rax)
leaq 0x60(%rsp), %rdi
movq %r15, %rsi
callq 0x1a9d8
cmpq $0x0, 0x58(%rsp)
jne 0x1631d
incl %r13d
cmpl %r13d, %ebp
jne 0x16134
movq 0x60(%rsp), %r15
cmpq 0x68(%rsp), %r15
je 0x16274
movq %r15, %rdi
callq 0x4570
addq $0x8, %r15
jmp 0x1625f
movq 0x88(%rsp), %rax
movq (%rax), %rdi
movq 0x50(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
imulq 0x10(%rax), %rdx
shlq $0x2, %rdx
callq 0x4260
leaq 0x60(%rsp), %rdi
callq 0x1a05e
testq %rbx, %rbx
je 0x162b0
movq %rbx, %rdi
callq 0xa86c
testq %r14, %r14
je 0x162bd
movq %r14, %rdi
callq 0xa86c
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
jmp 0x1632f
movq %rax, %r15
xorl %r14d, %r14d
jmp 0x1632f
movq %rax, %r15
xorl %r14d, %r14d
xorl %ebx, %ebx
jmp 0x1632f
jmp 0x1630e
movq %rax, %r15
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x162fb
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, 0x8(%rsp)
jmp 0x16311
cmpq $0x0, 0x58(%rsp)
jne 0x1631d
movq %rax, %r15
leaq 0x10(%rsp), %rdi
callq 0x16352
jmp 0x16325
callq 0x40d0
movq %rax, %r15
leaq 0x60(%rsp), %rdi
callq 0x1a05e
testq %rbx, %rbx
je 0x1633c
movq %rbx, %rdi
callq 0xa86c
testq %r14, %r14
je 0x16349
movq %r14, %rdi
callq 0xa86c
movq %r15, %rdi
callq 0x45b0
nop