// File: /workspace/github_cpp_makefile_star2_O3/istellartech[P]OpenTsiolkovsky/src/fileio.cpp
// Function: read_csv_vector_2d(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
MatrixXd read_csv_vector_2d(string filename, string col_name0, string col_name1){
//    ファイル名と列名を入れるとMatrixXd(n行2列)を返す
    int col_number = 2;
    io::CSVReader<2> in(filename);
    in.read_header(io::ignore_extra_column, col_name0, col_name1);
    MatrixXd value = MatrixXd::Zero(1,col_number);
    double value0, value1;
    int max_col = 1;
    int now_col = 0;
    while(in.read_row(value0, value1)){
        value.conservativeResize(max_col, col_number);
        value(now_col, 0) = value0;
        value(now_col, 1) = value1;
        now_col++; max_col++;
    }
    return value;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x298, %rsp            # imm = 0x298
movq %rcx, %r14
movq %rdx, %r15
movq %rdi, %rbx
leaq 0x60(%rsp), %rdi
callq 0x1b920
leaq 0x50(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq 0x40(%rsp), %rdi
callq 0x7624
leaq 0x30(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x20(%rsp), %rdi
callq 0x7624
leaq 0x60(%rsp), %rdi
leaq 0x40(%rsp), %rdx
leaq 0x20(%rsp), %rcx
movl $0x1, %esi
callq 0x1bb0a
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0x1ae86
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x53b0
movq 0x40(%rsp), %rdi
cmpq %r12, %rdi
je 0x1ae9d
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x53b0
movq $0x1, 0x8(%rsp)
movq $0x2, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
movl $0x2, %esi
movl $0x1, %edx
movl $0x2, %ecx
movq %rbx, %rdi
callq 0x69e0
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x18b78
xorl %ebp, %ebp
leaq 0x60(%rsp), %r14
leaq 0x8(%rsp), %r15
movq %rsp, %r12
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x1bce0
testb %al, %al
je 0x1af52
leaq 0x1(%rbp), %r13
movl $0x2, %edx
movq %rbx, %rdi
movq %r13, %rsi
callq 0x1ea44
movq 0x8(%rbx), %rax
cmpq %rbp, %rax
jle 0x1afbd
movq 0x10(%rbx), %rcx
testq %rcx, %rcx
jle 0x1afbd
movsd 0x8(%rsp), %xmm0
movq (%rbx), %rdx
movsd %xmm0, (%rdx,%rbp,8)
cmpq $0x1, %rcx
je 0x1afbd
movsd (%rsp), %xmm0
leaq (%rdx,%rax,8), %rax
movsd %xmm0, (%rax,%rbp,8)
movq %r13, %rbp
jmp 0x1aeeb
movq 0x280(%rsp), %rdi
testq %rdi, %rdi
je 0x1af6f
movq 0x290(%rsp), %rsi
subq %rdi, %rsi
callq 0x53b0
movl $0x210, %r14d           # imm = 0x210
leaq (%rsp,%r14), %rax
addq $0x60, %rax
movq -0x10(%rax), %rdi
cmpq %rdi, %rax
je 0x1af91
movq (%rax), %rsi
incq %rsi
callq 0x53b0
addq $-0x20, %r14
cmpq $0x1d0, %r14            # imm = 0x1D0
jne 0x1af75
leaq 0x60(%rsp), %rdi
callq 0x1cf40
movq %rbx, %rax
addq $0x298, %rsp            # imm = 0x298
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xa749(%rip), %rdi      # 0x2570d
leaq 0xa777(%rip), %rsi      # 0x25742
leaq 0xa79c(%rip), %rcx      # 0x2576e
movl $0x151, %edx            # imm = 0x151
callq 0x5250
jmp 0x1b01d
jmp 0x1b018
movq %rax, %r14
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0x1afff
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x53b0
jmp 0x1afff
movq %rax, %r14
movq 0x40(%rsp), %rdi
cmpq %r12, %rdi
je 0x1b028
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x53b0
jmp 0x1b028
movq %rax, %r14
jmp 0x1b028
movq %rax, %r14
movq (%rbx), %rdi
callq 0x5460
leaq 0x60(%rsp), %rdi
callq 0x1bdae
movq %r14, %rdi
callq 0x5650