// File: /workspace/github_cpp_makefile_star2_O3/epfml[P]Bi-Sent2Vec/src/fasttext.cc
// Function: fasttext::FastText::saveOutput()
void FastText::saveOutput() {
  std::ofstream ofs(args_->output + ".output");
  if (!ofs.is_open()) {
    std::cerr << "Error opening file for saving vectors." << std::endl;
    exit(EXIT_FAILURE);
  }
  ofs << dict_->nwords() << " " << args_->dim << std::endl;
  Vector vec(args_->dim);
  for (int32_t i = 0; i < dict_->nwords(); i++) {
    std::string word = dict_->getWord(i);
    vec.zero();
    vec.addRow(*output_, i);
    ofs << word << " " << vec << std::endl;
  }
  ofs.close();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x238, %rsp            # imm = 0x238
movq %rdi, %rbx
movq (%rdi), %rax
leaq 0x18(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq 0x40(%rax), %rsi
movq 0x48(%rax), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0xa910
leaq 0xd1ef(%rip), %rsi      # 0x1f75a
movq %r14, %rdi
callq 0x4620
leaq 0x38(%rsp), %rdi
leaq 0x8(%rsp), %rsi
movl $0x10, %edx
callq 0x4630
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x125a3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4300
leaq 0xa8(%rsp), %rdi
callq 0x40b0
testb %al, %al
je 0x12759
movq 0x10(%rbx), %rdi
callq 0x6554
leaq 0x38(%rsp), %rdi
movl %eax, %esi
callq 0x4580
movq %rax, %r14
leaq 0xc58b(%rip), %rsi      # 0x1eb62
movl $0x1, %edx
movq %rax, %rdi
callq 0x4350
movq (%rbx), %rax
movl 0x94(%rax), %esi
movq %r14, %rdi
callq 0x4580
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq %r14, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x4200
movq (%rbx), %rax
movslq 0x94(%rax), %rsi
leaq 0x28(%rsp), %rdi
callq 0xf1ac
xorl %r14d, %r14d
leaq 0x28(%rsp), %r12
leaq 0x38(%rsp), %r13
leaq 0xc51b(%rip), %rbp      # 0x1eb62
movq 0x10(%rbx), %rdi
callq 0x6554
cltq
cmpq %rax, %r14
jge 0x12701
movq 0x10(%rbx), %rsi
leaq 0x8(%rsp), %rdi
movl %r14d, %edx
callq 0x6d5e
movq %r12, %rdi
callq 0xf1e8
movq 0x30(%rbx), %rsi
movq %r12, %rdi
movq %r14, %rdx
callq 0xf302
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r13, %rdi
callq 0x4350
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x4350
movq %r15, %rdi
movq %r12, %rsi
callq 0xf605
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq %r15, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x4200
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x126f9
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4300
incq %r14
jmp 0x12647
leaq 0x38(%rsp), %rdi
callq 0x4440
leaq 0x28(%rsp), %rdi
callq 0xf1d6
movq 0x1788c(%rip), %rax     # 0x29fa8
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0x40(%rsp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, 0x38(%rsp,%rcx)
callq 0x4280
leaq 0x130(%rsp), %rdi
callq 0x4110
addq $0x238, %rsp            # imm = 0x238
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x17890(%rip), %rdi     # 0x29ff0
leaq 0xcfbd(%rip), %rsi      # 0x1f724
movl $0x26, %edx
callq 0x4350
movq 0x17878(%rip), %rdi     # 0x29ff0
callq 0x4170
movl $0x1, %edi
callq 0x4380
jmp 0x127b5
jmp 0x127ae
jmp 0x1278d
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x127ed
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4300
jmp 0x127ed
movq %rax, %rbx
jmp 0x127e3
jmp 0x127b5
movq %rax, %rbx
jmp 0x127d9
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x127d9
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4300
leaq 0x28(%rsp), %rdi
callq 0xf1d6
leaq 0x38(%rsp), %rdi
callq 0x4480
movq %rbx, %rdi
callq 0x45b0
nop