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

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2e8, %rsp            # imm = 0x2E8
movq %r8, %r14
movq %rcx, %r15
movq %rdx, %r12
movq %rdi, %rbx
leaq 0x88(%rsp), %rdi
callq 0x1be0c
leaq 0x78(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%r12), %rsi
movq 0x8(%r12), %rdx
addq %rsi, %rdx
leaq 0x68(%rsp), %rdi
callq 0x7624
leaq 0x58(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq 0x48(%rsp), %rdi
callq 0x7624
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x28(%rsp), %rdi
callq 0x7624
leaq 0x88(%rsp), %rdi
leaq 0x68(%rsp), %rdx
leaq 0x48(%rsp), %rcx
leaq 0x28(%rsp), %r8
movl $0x1, %esi
callq 0x1c002
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x1b0f6
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x53b0
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x1b10d
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x53b0
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
je 0x1b124
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x53b0
movq $0x1, 0x10(%rsp)
movq $0x3, 0x18(%rsp)
movq $0x0, 0x20(%rsp)
movl $0x3, %esi
movl $0x1, %edx
movl $0x3, %ecx
movq %rbx, %rdi
callq 0x69e0
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x18b78
xorl %r14d, %r14d
leaq 0x10(%rsp), %r15
leaq 0x8(%rsp), %r12
movq %rsp, %r13
leaq 0x88(%rsp), %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r13, %rcx
callq 0x1c252
testb %al, %al
je 0x1b208
leaq 0x1(%r14), %rbp
movl $0x3, %edx
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x1ea44
movq 0x8(%rbx), %rax
cmpq %r14, %rax
jle 0x1b278
movq 0x10(%rbx), %rdx
testq %rdx, %rdx
jle 0x1b278
movsd 0x10(%rsp), %xmm0
movq (%rbx), %rcx
movsd %xmm0, (%rcx,%r14,8)
cmpq $0x1, %rdx
je 0x1b278
movsd 0x8(%rsp), %xmm0
leaq (%rcx,%rax,8), %rsi
movsd %xmm0, (%rsi,%r14,8)
cmpq $0x2, %rdx
jbe 0x1b278
movsd (%rsp), %xmm0
shlq $0x4, %rax
addq %rax, %rcx
movsd %xmm0, (%rcx,%r14,8)
movq %rbp, %r14
jmp 0x1b173
movq 0x2d0(%rsp), %rdi
testq %rdi, %rdi
je 0x1b225
movq 0x2e0(%rsp), %rsi
subq %rdi, %rsi
callq 0x53b0
movl $0x238, %r14d           # imm = 0x238
leaq (%rsp,%r14), %rax
addq $0x88, %rax
movq -0x10(%rax), %rdi
cmpq %rdi, %rax
je 0x1b249
movq (%rax), %rsi
incq %rsi
callq 0x53b0
addq $-0x20, %r14
cmpq $0x1d8, %r14            # imm = 0x1D8
jne 0x1b22b
leaq 0x88(%rsp), %rdi
callq 0x1cf40
movq %rbx, %rax
addq $0x2e8, %rsp            # imm = 0x2E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xa48e(%rip), %rdi      # 0x2570d
leaq 0xa4bc(%rip), %rsi      # 0x25742
leaq 0xa4e1(%rip), %rcx      # 0x2576e
movl $0x151, %edx            # imm = 0x151
callq 0x5250
jmp 0x1b2f4
jmp 0x1b2ef
movq %rax, %r14
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x1b2ba
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x53b0
jmp 0x1b2ba
movq %rax, %r14
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x1b2d6
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x53b0
jmp 0x1b2d6
movq %rax, %r14
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
je 0x1b2ff
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x53b0
jmp 0x1b2ff
movq %rax, %r14
jmp 0x1b2ff
movq %rax, %r14
movq (%rbx), %rdi
callq 0x5460
leaq 0x88(%rsp), %rdi
callq 0x1c326
movq %r14, %rdi
callq 0x5650