// File: /workspace/github_cpp_makefile_star2_O3/epfml[P]Bi-Sent2Vec/src/fasttext.cc
// Function: fasttext::FastText::saveVectors(int)
void FastText::saveVectors(int32_t checkpoint) {
  std::ofstream ofs(args_->output + "_Chk" + std::to_string(checkpoint) + ".ckpt.vec");
  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);
    getVector_ckpt(vec, i);
    ofs << word << " " << vec << std::endl;
  }
  ofs.close();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x288, %rsp            # imm = 0x288
movl %esi, %r14d
movq %rdi, %rbx
movq (%rdi), %rax
leaq 0x58(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x40(%rax), %rsi
movq 0x48(%rax), %rdx
addq %rsi, %rdx
leaq 0x48(%rsp), %r15
movq %r15, %rdi
callq 0xa910
leaq 0xd6cc(%rip), %rsi      # 0x1f74b
movq %r15, %rdi
callq 0x4620
movl %r14d, %ebp
negl %ebp
cmovsl %r14d, %ebp
movl $0x1, %r15d
cmpl $0xa, %ebp
jb 0x120e4
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x120db
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x120e1
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x120e4
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x120a8
addl $-0x3, %r15d
jmp 0x120e4
addl $-0x2, %r15d
jmp 0x120e4
decl %r15d
shrl $0x1f, %r14d
leal (%r15,%r14), %esi
leaq 0x78(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x68(%rsp), %rdi
movl $0x2d, %edx
callq 0x4360
movl %r14d, %edi
addq 0x68(%rsp), %rdi
movl %r15d, %esi
movl %ebp, %edx
callq 0x1a1f4
movq 0x48(%rsp), %rcx
movq 0x50(%rsp), %r8
movq 0x70(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r12, %rcx
je 0x12138
movq 0x58(%rsp), %rdi
movq 0x68(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x12156
movl $0xf, %edi
cmpq %r13, %rsi
je 0x12151
movq 0x78(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x12162
leaq 0x48(%rsp), %rdi
callq 0x4100
jmp 0x12170
leaq 0x68(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4340
leaq 0x18(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x12194
movq %rsi, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x1219a
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0xd592(%rip), %rsi      # 0x1f750
leaq 0x8(%rsp), %rdi
callq 0x4620
leaq 0x38(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x121ef
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x121f6
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x88(%rsp), %rdi
movl $0x10, %edx
callq 0x4630
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x1223b
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4300
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x12256
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4300
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
je 0x1226d
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x4300
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x12284
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x4300
leaq 0xf8(%rsp), %rdi
callq 0x40b0
testb %al, %al
je 0x12439
movq 0x10(%rbx), %rdi
callq 0x6554
leaq 0x88(%rsp), %rdi
movl %eax, %esi
callq 0x4580
movq %rax, %r14
leaq 0xc8a7(%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 0x8(%rsp), %rdi
callq 0xf1ac
xorl %ebp, %ebp
leaq 0x8(%rsp), %r15
leaq 0x88(%rsp), %r12
leaq 0xc835(%rip), %r13      # 0x1eb62
movq 0x10(%rbx), %rdi
callq 0x6554
cmpl %eax, %ebp
jge 0x123d8
movq 0x10(%rbx), %rsi
leaq 0x28(%rsp), %rdi
movl %ebp, %edx
callq 0x6d5e
movq %rbx, %rdi
movq %r15, %rsi
movl %ebp, %edx
callq 0x12008
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq %r12, %rdi
callq 0x4350
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x4350
movq %r14, %rdi
movq %r15, %rsi
callq 0xf605
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 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x123d1
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4300
incl %ebp
jmp 0x1232d
leaq 0x88(%rsp), %rdi
callq 0x4440
leaq 0x8(%rsp), %rdi
callq 0xf1d6
movq 0x17bb2(%rip), %rax     # 0x29fa8
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0x90(%rsp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, 0x88(%rsp,%rcx)
callq 0x4280
leaq 0x180(%rsp), %rdi
callq 0x4110
addq $0x288, %rsp            # imm = 0x288
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x17bb0(%rip), %rdi     # 0x29ff0
leaq 0xd2dd(%rip), %rsi      # 0x1f724
movl $0x26, %edx
callq 0x4350
movq 0x17b98(%rip), %rdi     # 0x29ff0
callq 0x4170
movl $0x1, %edi
callq 0x4380
jmp 0x124e8
jmp 0x124e1
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x1248a
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4300
jmp 0x1248a
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x124aa
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4300
jmp 0x124aa
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
je 0x124c8
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x4300
jmp 0x124c8
jmp 0x124c5
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x12523
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x4300
jmp 0x12523
movq %rax, %rbx
jmp 0x12516
jmp 0x124e8
movq %rax, %rbx
jmp 0x1250c
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x1250c
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4300
leaq 0x8(%rsp), %rdi
callq 0xf1d6
leaq 0x88(%rsp), %rdi
callq 0x4480
movq %rbx, %rdi
callq 0x45b0
nop