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

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x338, %rsp            # imm = 0x338
movq %r9, %r14
movq %r8, %r15
movq %rcx, %r12
movq %rdx, %r13
movq %rdi, %rbx
leaq 0xb0(%rsp), %rdi
callq 0x1e19c
leaq 0xa0(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
addq %rsi, %rdx
leaq 0x90(%rsp), %rdi
callq 0x76f6
leaq 0x80(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%r12), %rsi
movq 0x8(%r12), %rdx
addq %rsi, %rdx
leaq 0x70(%rsp), %rdi
callq 0x76f6
leaq 0x60(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq 0x50(%rsp), %rdi
callq 0x76f6
leaq 0x40(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x30(%rsp), %rdi
callq 0x76f6
leaq 0xb0(%rsp), %rdi
leaq 0x90(%rsp), %rdx
leaq 0x70(%rsp), %rcx
leaq 0x50(%rsp), %r8
leaq 0x30(%rsp), %r9
movl $0x1, %esi
callq 0x1e38e
movq 0x30(%rsp), %rdi
cmpq %r15, %rdi
je 0x1d21f
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x53b0
movq 0x50(%rsp), %rdi
cmpq %r12, %rdi
je 0x1d236
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x53b0
movq 0x70(%rsp), %rdi
cmpq %r13, %rdi
je 0x1d250
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x53b0
movq 0x90(%rsp), %rdi
cmpq %rbp, %rdi
je 0x1d26d
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x53b0
movq $0x1, 0x18(%rsp)
movq $0x4, 0x20(%rsp)
movq $0x0, 0x28(%rsp)
movl $0x4, %esi
movl $0x1, %edx
movl $0x4, %ecx
movq %rbx, %rdi
callq 0x6a8e
leaq 0x18(%rsp), %rsi
movq %rbx, %rdi
callq 0x1a982
xorl %r14d, %r14d
leaq 0x10(%rsp), %r12
leaq 0x8(%rsp), %r13
movq %rsp, %rbp
leaq 0xb0(%rsp), %rdi
leaq 0x18(%rsp), %rsi
movq %r12, %rdx
movq %r13, %rcx
movq %rbp, %r8
callq 0x1e65e
testb %al, %al
je 0x1d37b
leaq 0x1(%r14), %r15
movl $0x4, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2087e
movq 0x8(%rbx), %rax
cmpq %r14, %rax
jle 0x1d3eb
movq 0x10(%rbx), %rcx
testq %rcx, %rcx
jle 0x1d3eb
movsd 0x18(%rsp), %xmm0
movq (%rbx), %rdx
movsd %xmm0, (%rdx,%r14,8)
cmpq $0x1, %rcx
je 0x1d3eb
movsd 0x10(%rsp), %xmm0
leaq (%rdx,%rax,8), %rsi
movsd %xmm0, (%rsi,%r14,8)
cmpq $0x2, %rcx
jle 0x1d3eb
movsd 0x8(%rsp), %xmm0
movq %rax, %rsi
shlq $0x4, %rsi
addq %rdx, %rsi
movsd %xmm0, (%rsi,%r14,8)
cmpq $0x3, %rcx
je 0x1d3eb
movsd (%rsp), %xmm0
leaq (%rax,%rax,2), %rax
leaq (%rdx,%rax,8), %rax
movsd %xmm0, (%rax,%r14,8)
movq %r15, %r14
jmp 0x1d2bc
movq 0x320(%rsp), %rdi
testq %rdi, %rdi
je 0x1d398
movq 0x330(%rsp), %rsi
subq %rdi, %rsi
callq 0x53b0
movl $0x260, %r14d           # imm = 0x260
leaq (%rsp,%r14), %rax
addq $0xb0, %rax
movq -0x10(%rax), %rdi
cmpq %rdi, %rax
je 0x1d3bc
movq (%rax), %rsi
incq %rsi
callq 0x53b0
addq $-0x20, %r14
cmpq $0x1e0, %r14            # imm = 0x1E0
jne 0x1d39e
leaq 0xb0(%rsp), %rdi
callq 0x1ec90
movq %rbx, %rax
addq $0x338, %rsp            # imm = 0x338
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xa2db(%rip), %rdi      # 0x276cd
leaq 0xa309(%rip), %rsi      # 0x27702
leaq 0xa32e(%rip), %rcx      # 0x2772e
movl $0x151, %edx            # imm = 0x151
callq 0x5250
jmp 0x1d48f
jmp 0x1d48a
movq %rax, %r14
movq 0x30(%rsp), %rdi
cmpq %r15, %rdi
je 0x1d430
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x53b0
jmp 0x1d430
movq %rax, %r14
movq 0x50(%rsp), %rdi
cmpq %r12, %rdi
je 0x1d44c
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x53b0
jmp 0x1d44c
movq %rax, %r14
movq 0x70(%rsp), %rdi
cmpq %r13, %rdi
je 0x1d46b
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x53b0
jmp 0x1d46b
movq %rax, %r14
movq 0x90(%rsp), %rdi
cmpq %rbp, %rdi
je 0x1d49a
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x53b0
jmp 0x1d49a
movq %rax, %r14
jmp 0x1d49a
movq %rax, %r14
movq (%rbx), %rdi
callq 0x5460
leaq 0xb0(%rsp), %rdi
callq 0x1e73e
movq %r14, %rdi
callq 0x5650