// File: /workspace/github_cpp_makefile_star2_O1/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 0x1183(%rip), %rsi      # 0x65d3
leaq 0x40(%rsp), %rbx
movq %rbx, %rdi
movl $0x10, %edx
callq 0x2170
leaq 0x1176(%rip), %rsi      # 0x65df
movl $0xc, %edx
movq %rbx, %rdi
callq 0x2180
leaq 0xd0c(%rip), %rsi       # 0x6189
leaq 0x40(%rsp), %rdi
movl $0x13, %edx
callq 0x2180
leaq 0xd0a(%rip), %rsi       # 0x619d
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 0xcd2(%rip), %rsi       # 0x61b5
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 0xc9a(%rip), %rsi       # 0x61cd
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 0xc62(%rip), %rsi       # 0x61e5
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 0xc2a(%rip), %rsi       # 0x61fd
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 0xbf2(%rip), %rsi       # 0x6215
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 0xbba(%rip), %rsi       # 0x622d
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 0xaad(%rip), %rsi       # 0x6170
leaq 0x40(%rsp), %rdi
movl $0x1, %edx
callq 0x2180
leaq 0xb6c(%rip), %rsi       # 0x6245
leaq 0x40(%rsp), %rdi
movl $0x10, %edx
callq 0x2180
leaq 0xb67(%rip), %rsi       # 0x6256
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 0xb30(%rip), %rsi       # 0x626e
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 0xaf5(%rip), %rsi       # 0x6286
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 0xaba(%rip), %rsi       # 0x629e
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 0xa7f(%rip), %rsi       # 0x62b6
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 0xa44(%rip), %rsi       # 0x62ce
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 0xa09(%rip), %rsi       # 0x62e6
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 0x36a0(%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
nop