// File: /workspace/github_cpp_makefile_star2_O3/JorisCaze[P]NASG-EOS_Calibration/src/tools.cpp
// Function: writeResults(double, double, double, double, double, double, double, double, double, double, double, double, double, double)
void writeResults(double cpL, double qL, double pinfL, double cvL, double gammaL, double qPrimL, double bL, double cpG, double qG, double pinfG, double cvG, double gammaG, double qPrimG, double bG)
{
    ofstream strmRes("res/res.txt");
    strmRes << "* Results *\n";
    strmRes << "--- Liquid (L) ---\n";
    strmRes << "cpL    (J.kg-1.K-1)  : " << cpL << endl;
    strmRes << "qL     (J.kg-1)      : " << qL << endl;
    strmRes << "pinfL  (Pa)          : " << pinfL << endl;
    strmRes << "cvL    (J.kg-1.K-1)  : " << cvL << endl;
    strmRes << "gammaL (-)           : " << gammaL << endl;
    strmRes << "q'L    (J.kg-1)      : " << qPrimL << endl;
    strmRes << "bL     (m3/kg)       : " << bL << endl;
    strmRes << "\n";

    strmRes << "--- Gas (G) ---\n";
    strmRes << "cpG    (J.kg-1.K-1)  : " << cpG << endl;
    strmRes << "qG     (J.kg-1)      : " << qG << endl;
    strmRes << "pinfG  (Pa)          : " << pinfG << endl;
    strmRes << "cvG    (J.kg-1.K-1)  : " << cvG << endl;
    strmRes << "gammaG (-)           : " << gammaG << endl;
    strmRes << "q'G    (J.kg-1)      : " << qPrimG << endl;
    strmRes << "bG     (m3/kg)       : " << bG << endl;
}

// Assembly:
pushq %rbx
subq $0x240, %rsp            # imm = 0x240
movsd %xmm7, (%rsp)
movsd %xmm6, 0x8(%rsp)
movsd %xmm5, 0x10(%rsp)
movsd %xmm4, 0x18(%rsp)
movsd %xmm3, 0x20(%rsp)
movsd %xmm2, 0x28(%rsp)
movsd %xmm1, 0x30(%rsp)
movsd %xmm0, 0x38(%rsp)
leaq 0x1212(%rip), %rsi      # 0x65e3
leaq 0x40(%rsp), %rbx
movq %rbx, %rdi
movl $0x10, %edx
callq 0x2170
leaq 0x1205(%rip), %rsi      # 0x65ef
movl $0xc, %edx
movq %rbx, %rdi
callq 0x2180
leaq 0xd9b(%rip), %rsi       # 0x6199
leaq 0x40(%rsp), %rdi
movl $0x13, %edx
callq 0x2180
leaq 0xd99(%rip), %rsi       # 0x61ad
leaq 0x40(%rsp), %rdi
movl $0x17, %edx
callq 0x2180
leaq 0x40(%rsp), %rdi
movsd 0x38(%rsp), %xmm0
callq 0x21d0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20b0
leaq 0xd61(%rip), %rsi       # 0x61c5
leaq 0x40(%rsp), %rdi
movl $0x17, %edx
callq 0x2180
leaq 0x40(%rsp), %rdi
movsd 0x30(%rsp), %xmm0
callq 0x21d0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20b0
leaq 0xd29(%rip), %rsi       # 0x61dd
leaq 0x40(%rsp), %rdi
movl $0x17, %edx
callq 0x2180
leaq 0x40(%rsp), %rdi
movsd 0x28(%rsp), %xmm0
callq 0x21d0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20b0
leaq 0xcf1(%rip), %rsi       # 0x61f5
leaq 0x40(%rsp), %rdi
movl $0x17, %edx
callq 0x2180
leaq 0x40(%rsp), %rdi
movsd 0x20(%rsp), %xmm0
callq 0x21d0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20b0
leaq 0xcb9(%rip), %rsi       # 0x620d
leaq 0x40(%rsp), %rdi
movl $0x17, %edx
callq 0x2180
leaq 0x40(%rsp), %rdi
movsd 0x18(%rsp), %xmm0
callq 0x21d0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20b0
leaq 0xc81(%rip), %rsi       # 0x6225
leaq 0x40(%rsp), %rdi
movl $0x17, %edx
callq 0x2180
leaq 0x40(%rsp), %rdi
movsd 0x10(%rsp), %xmm0
callq 0x21d0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20b0
leaq 0xc49(%rip), %rsi       # 0x623d
leaq 0x40(%rsp), %rdi
movl $0x17, %edx
callq 0x2180
leaq 0x40(%rsp), %rdi
movsd 0x8(%rsp), %xmm0
callq 0x21d0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20b0
leaq 0xb3c(%rip), %rsi       # 0x6180
leaq 0x40(%rsp), %rdi
movl $0x1, %edx
callq 0x2180
leaq 0xbfb(%rip), %rsi       # 0x6255
leaq 0x40(%rsp), %rdi
movl $0x10, %edx
callq 0x2180
leaq 0xbf6(%rip), %rsi       # 0x6266
leaq 0x40(%rsp), %rdi
movl $0x17, %edx
callq 0x2180
leaq 0x40(%rsp), %rdi
movsd (%rsp), %xmm0
callq 0x21d0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20b0
leaq 0xbbf(%rip), %rsi       # 0x627e
leaq 0x40(%rsp), %rdi
movl $0x17, %edx
callq 0x2180
movsd 0x250(%rsp), %xmm0
leaq 0x40(%rsp), %rdi
callq 0x21d0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20b0
leaq 0xb84(%rip), %rsi       # 0x6296
leaq 0x40(%rsp), %rdi
movl $0x17, %edx
callq 0x2180
movsd 0x258(%rsp), %xmm0
leaq 0x40(%rsp), %rdi
callq 0x21d0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20b0
leaq 0xb49(%rip), %rsi       # 0x62ae
leaq 0x40(%rsp), %rdi
movl $0x17, %edx
callq 0x2180
movsd 0x260(%rsp), %xmm0
leaq 0x40(%rsp), %rdi
callq 0x21d0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20b0
leaq 0xb0e(%rip), %rsi       # 0x62c6
leaq 0x40(%rsp), %rdi
movl $0x17, %edx
callq 0x2180
movsd 0x268(%rsp), %xmm0
leaq 0x40(%rsp), %rdi
callq 0x21d0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20b0
leaq 0xad3(%rip), %rsi       # 0x62de
leaq 0x40(%rsp), %rdi
movl $0x17, %edx
callq 0x2180
movsd 0x270(%rsp), %xmm0
leaq 0x40(%rsp), %rdi
callq 0x21d0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20b0
leaq 0xa98(%rip), %rsi       # 0x62f6
leaq 0x40(%rsp), %rdi
movl $0x17, %edx
callq 0x2180
movsd 0x278(%rsp), %xmm0
leaq 0x40(%rsp), %rdi
callq 0x21d0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20b0
movq 0x371f(%rip), %rax      # 0x8fd0
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0x48(%rsp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, 0x40(%rsp,%rcx)
callq 0x2110
leaq 0x138(%rsp), %rdi
callq 0x2060
addq $0x240, %rsp            # imm = 0x240
popq %rbx
retq
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x21b0
movq %rbx, %rdi
callq 0x2210