// File: /workspace/github_cpp_makefile_star2_O3/JorisCaze[P]NASG-EOS_Calibration/src/calib_liq-vap.cpp
// Function: readLiqVapInput(double&, double&, double&)
void readLiqVapInput(double &p0, double &ro0, double &c0)
{
    ifstream strmRefStates("input/refState.txt");
    string line("");
    if (strmRefStates) {
        for (int i=1; i<5; i++) {getline(strmRefStates,line);}
        p0 = stod(line);
        getline(strmRefStates,line); getline(strmRefStates,line);
        ro0 = stod(line);
        getline(strmRefStates,line); getline(strmRefStates,line);
        c0 = stod(line);
    }
    else {
        cout << "Error : reading refState.txt file\n"; exit(0);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x248, %rsp            # imm = 0x248
movq %rdx, %rbp
movq %rsi, %rbx
movq %rdi, %r13
leaq 0x3c83(%rip), %rsi      # 0x60a0
leaq 0x40(%rsp), %r12
movq %r12, %rdi
movl $0x8, %edx
callq 0x2240
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x3d42(%rip), %rdx      # 0x6181
leaq 0x8(%rsp), %rdi
movq %rdx, %rsi
callq 0x3430
movq %rbx, 0x38(%rsp)
movq 0x40(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x60(%rsp,%rax)
jne 0x2666
movl $0x4, %ebx
leaq 0x8(%rsp), %r14
movq 0x40(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %edx
movq %r12, %rdi
movq %r14, %rsi
callq 0x2250
decl %ebx
jne 0x246f
movq %rbp, 0x30(%rsp)
movq 0x8(%rsp), %rbp
callq 0x2040
movq %rax, %r14
movl (%rax), %r15d
movl $0x0, (%rax)
leaq 0x28(%rsp), %rbx
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x20d0
cmpq %rbp, (%rbx)
je 0x2680
movl (%r14), %eax
testl %eax, %eax
je 0x24e3
cmpl $0x22, %eax
jne 0x24e6
leaq 0x3c34(%rip), %rdi      # 0x6112
callq 0x21a0
movl %r15d, (%r14)
movsd %xmm0, (%r13)
movq 0x40(%rsp), %rax
addq -0x18(%rax), %r12
movq %r12, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %edx
leaq 0x40(%rsp), %r12
leaq 0x8(%rsp), %rsi
movq %r12, %rdi
callq 0x2250
movq 0x40(%rsp), %rax
addq -0x18(%rax), %r12
movq %r12, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %edx
leaq 0x40(%rsp), %r12
leaq 0x8(%rsp), %rsi
movq %r12, %rdi
callq 0x2250
movq 0x8(%rsp), %rbx
movl (%r14), %ebp
movl $0x0, (%r14)
leaq 0x28(%rsp), %r13
movq %rbx, %rdi
movq %r13, %rsi
callq 0x20d0
cmpq %rbx, (%r13)
je 0x268c
movl (%r14), %eax
testl %eax, %eax
je 0x2583
cmpl $0x22, %eax
jne 0x2586
leaq 0x3b94(%rip), %rdi      # 0x6112
callq 0x21a0
movl %ebp, (%r14)
movq 0x38(%rsp), %rax
movsd %xmm0, (%rax)
movq 0x40(%rsp), %rax
addq -0x18(%rax), %r12
movq %r12, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %edx
leaq 0x40(%rsp), %r15
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x2250
movq 0x40(%rsp), %rax
addq -0x18(%rax), %r15
movq %r15, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %edx
leaq 0x40(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x2250
movq 0x8(%rsp), %rbx
movl (%r14), %ebp
movl $0x0, (%r14)
leaq 0x28(%rsp), %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x20d0
cmpq %rbx, (%r15)
je 0x2698
movl (%r14), %eax
testl %eax, %eax
leaq 0x18(%rsp), %rcx
je 0x2627
cmpl $0x22, %eax
jne 0x262a
leaq 0x3af0(%rip), %rdi      # 0x6112
callq 0x21a0
movl %ebp, (%r14)
movq 0x30(%rsp), %rax
movsd %xmm0, (%rax)
movq 0x8(%rsp), %rdi
cmpq %rcx, %rdi
je 0x264a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2160
leaq 0x40(%rsp), %rdi
callq 0x2050
addq $0x248, %rsp            # imm = 0x248
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x696b(%rip), %rdi      # 0x8fd8
leaq 0x3a3f(%rip), %rsi      # 0x60b3
callq 0x2140
xorl %edi, %edi
callq 0x2190
leaq 0x3a8b(%rip), %rdi      # 0x6112
callq 0x2090
leaq 0x3a7f(%rip), %rdi      # 0x6112
callq 0x2090
leaq 0x3a73(%rip), %rdi      # 0x6112
callq 0x2090
movq %rax, %rbx
jmp 0x26eb
jmp 0x26ab
movq %rax, %rbx
cmpl $0x0, (%r14)
jne 0x26ca
movl %ebp, (%r14)
jmp 0x26ca
movq %rax, %rbx
cmpl $0x0, (%r14)
jne 0x26ca
movl %r15d, (%r14)
jmp 0x26ca
movq %rax, %rbx
leaq 0x18(%rsp), %r15
jmp 0x26d4
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x26eb
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2160
leaq 0x40(%rsp), %rdi
callq 0x2050
movq %rbx, %rdi
callq 0x2210