// File: /workspace/github_cpp_makefile_star2_O1/camargodev[P]n-tile-puzzle/src/Result.cpp
// Function: Result::writeResult(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void Result :: writeResult(string fileName) {
    ofstream outFile;
    outFile.open(fileName, std::ios_base::app);

    string strResult = "";
    strResult += to_string(this->expandedNodes) + ",";
    strResult += to_string(this->optimalSolutionLenght) + ",";
    strResult += to_string(this->duration) + ",";
    strResult += to_string(this->totalHValue/max(this->counter, 1)) + ",";
    strResult += to_string(this->initialHeuristicValue);
    outFile << strResult + "\n";

    outFile.close();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x268, %rsp            # imm = 0x268
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x68(%rsp), %r15
movq %r15, %rdi
callq 0x2310
movq %r15, %rdi
movq %r14, %rsi
movl $0x1, %edx
callq 0x20e0
leaq 0x58(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x446d(%rip), %rdx      # 0x9081
leaq 0x48(%rsp), %rdi
movq %rdx, %rsi
callq 0x2d2c
movl (%rbx), %r14d
movl %r14d, %ebp
negl %ebp
cmovsl %r14d, %ebp
movl $0x1, %r15d
cmpl $0xa, %ebp
jb 0x4c81
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x4c78
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x4c7e
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x4c81
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x4c45
addl $-0x3, %r15d
jmp 0x4c81
addl $-0x2, %r15d
jmp 0x4c81
decl %r15d
shrl $0x1f, %r14d
leal (%r15,%r14), %esi
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x28(%rsp), %rdi
movl $0x2d, %edx
callq 0x2240
leaq 0x28(%rsp), %r12
addq (%r12), %r14
movq %r14, %rdi
movl %r15d, %esi
movl %ebp, %edx
callq 0x516c
leaq 0x43e2(%rip), %rsi      # 0x90a0
movq %r12, %rdi
callq 0x2370
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4cee
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x4cf8
movupd (%rcx), %xmm0
movupd %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0x48(%rsp), %rdi
callq 0x2070
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x4d33
callq 0x2200
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x4d42
callq 0x2200
movswl 0xc(%rbx), %r15d
movl %r15d, %ebp
negl %ebp
cmovsl %r15d, %ebp
movl $0x1, %r14d
cmpl $0xa, %ebp
jb 0x4d84
movl $0x2, %r14d
cmpl $0x64, %ebp
jb 0x4d84
movl $0x3, %r14d
cmpl $0x3e8, %ebp            # imm = 0x3E8
jb 0x4d84
cmpl $0x2710, %ebp           # imm = 0x2710
movl $0x5, %r14d
sbbl $0x0, %r14d
shrl $0x1f, %r15d
leal (%r14,%r15), %esi
leaq 0x28(%rsp), %rdi
movq %r13, (%rdi)
movl $0x2d, %edx
callq 0x2240
movl %r15d, %edi
leaq 0x28(%rsp), %r15
addq (%r15), %rdi
movl %r14d, %esi
movl %ebp, %edx
callq 0x516c
leaq 0x42e6(%rip), %rsi      # 0x90a0
movq %r15, %rdi
callq 0x2370
movq %r12, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4de5
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x4def
movupd (%rcx), %xmm0
movupd %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0x48(%rsp), %rdi
callq 0x2070
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x4e2a
callq 0x2200
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x4e39
callq 0x2200
xorps %xmm0, %xmm0
cvtss2sd 0x10(%rbx), %xmm0
movq 0x8178(%rip), %rsi      # 0xcfc0
leaq 0x4253(%rip), %rcx      # 0x90a2
leaq 0x28(%rsp), %rdi
movl $0x3a, %edx
movb $0x1, %al
callq 0x51d9
leaq 0x4239(%rip), %rsi      # 0x90a0
leaq 0x28(%rsp), %rdi
callq 0x2370
movq %r12, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4e94
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x4e9c
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0x48(%rsp), %rdi
callq 0x2070
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x4ed7
callq 0x2200
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x4ee6
callq 0x2200
movl 0x8(%rbx), %eax
cmpl $0x2, %eax
movl $0x1, %ecx
cmovgel %eax, %ecx
movsd 0x30(%rbx), %xmm0
cvtsi2sd %ecx, %xmm1
divsd %xmm1, %xmm0
movq 0x80b8(%rip), %rsi      # 0xcfc0
leaq 0x4193(%rip), %rcx      # 0x90a2
leaq 0x28(%rsp), %rdi
movl $0x148, %edx            # imm = 0x148
movb $0x1, %al
callq 0x51d9
leaq 0x4179(%rip), %rsi      # 0x90a0
leaq 0x28(%rsp), %rdi
callq 0x2370
movq %r12, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4f54
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x4f5e
movupd (%rcx), %xmm0
movupd %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0x48(%rsp), %rdi
callq 0x2070
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x4f99
callq 0x2200
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x4fa8
callq 0x2200
movswl 0x20(%rbx), %r15d
movl %r15d, %ebx
negl %ebx
cmovsl %r15d, %ebx
movl $0x1, %r14d
cmpl $0xa, %ebx
jb 0x4fea
movl $0x2, %r14d
cmpl $0x64, %ebx
jb 0x4fea
movl $0x3, %r14d
cmpl $0x3e8, %ebx            # imm = 0x3E8
jb 0x4fea
cmpl $0x2710, %ebx           # imm = 0x2710
movl $0x5, %r14d
sbbl $0x0, %r14d
shrl $0x1f, %r15d
leal (%r14,%r15), %esi
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
movl $0x2d, %edx
callq 0x2240
movl %r15d, %edi
addq 0x8(%rsp), %rdi
movl %r14d, %esi
movl %ebx, %edx
callq 0x516c
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0x48(%rsp), %rdi
callq 0x2070
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x5039
callq 0x2200
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
addq %rsi, %rdx
callq 0x2c9c
leaq 0x4026(%rip), %rsi      # 0x9080
leaq 0x8(%rsp), %rdi
callq 0x2370
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0x68(%rsp), %rdi
callq 0x2220
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x5087
callq 0x2200
leaq 0x68(%rsp), %rdi
callq 0x2290
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x50a5
callq 0x2200
movq 0x7f24(%rip), %rax      # 0xcfd0
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0x70(%rsp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, 0x68(%rsp,%rcx)
callq 0x21b0
leaq 0x160(%rsp), %rdi
callq 0x2080
addq $0x268, %rsp            # imm = 0x268
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x513c
jmp 0x50f1
jmp 0x50f1
jmp 0x513c
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
jne 0x5135
jmp 0x513f
jmp 0x513c
jmp 0x5114
jmp 0x5128
jmp 0x513c
jmp 0x5114
jmp 0x5128
jmp 0x513c
jmp 0x5114
jmp 0x5128
jmp 0x513c
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x512b
callq 0x2200
jmp 0x512b
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x513f
callq 0x2200
jmp 0x513f
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x5153
callq 0x2200
leaq 0x68(%rsp), %rdi
callq 0x22c0
movq %rbx, %rdi
callq 0x2330
jmp 0x5167
movq %rax, %rbx
jmp 0x5153