// File: 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
movq %rsp, %rbp
subq $0x410, %rsp            # imm = 0x410
movq %r9, -0x3c8(%rbp)
movq %r8, -0x3c0(%rbp)
movq %rcx, -0x3b8(%rbp)
movq %rdx, -0x3a0(%rbp)
movq %rdi, -0x3b0(%rbp)
movq %rdi, %rax
movq %rax, -0x3a8(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movl $0x4, -0x34(%rbp)
leaq -0x2c0(%rbp), %rdi
callq 0x3d990
movq -0x3a0(%rbp), %rsi
leaq -0x2e0(%rbp), %rdi
callq 0x61f0
jmp 0x3c438
movq -0x3b8(%rbp), %rsi
leaq -0x310(%rbp), %rdi
callq 0x61f0
jmp 0x3c44d
movq -0x3c0(%rbp), %rsi
leaq -0x330(%rbp), %rdi
callq 0x61f0
jmp 0x3c462
movq -0x3c8(%rbp), %rsi
leaq -0x350(%rbp), %rdi
callq 0x61f0
jmp 0x3c477
leaq -0x2c0(%rbp), %rdi
movl $0x1, %esi
leaq -0x2e0(%rbp), %rdx
leaq -0x310(%rbp), %rcx
leaq -0x330(%rbp), %r8
leaq -0x350(%rbp), %r9
callq 0x3dbb0
jmp 0x3c4a6
leaq -0x350(%rbp), %rdi
callq 0x68a8
leaq -0x330(%rbp), %rdi
callq 0x68a8
leaq -0x310(%rbp), %rdi
callq 0x68a8
leaq -0x2e0(%rbp), %rdi
callq 0x68a8
movb $0x0, -0x351(%rbp)
movslq -0x34(%rbp), %rdx
leaq -0x370(%rbp), %rdi
movl $0x1, %esi
callq 0x1df90
jmp 0x3c4f4
movq -0x3b0(%rbp), %rdi
leaq -0x370(%rbp), %rsi
callq 0x3d040
jmp 0x3c509
movl $0x1, -0x394(%rbp)
movl $0x0, -0x398(%rbp)
leaq -0x2c0(%rbp), %rdi
leaq -0x378(%rbp), %rsi
leaq -0x380(%rbp), %rdx
leaq -0x388(%rbp), %rcx
leaq -0x390(%rbp), %r8
callq 0x3de90
movb %al, -0x3c9(%rbp)
jmp 0x3c54d
movb -0x3c9(%rbp), %al
testb $0x1, %al
jne 0x3c55c
jmp 0x3c75e
movq -0x3b0(%rbp), %rdi
movslq -0x394(%rbp), %rsi
movslq -0x34(%rbp), %rdx
callq 0x3d260
jmp 0x3c575
movq -0x3b0(%rbp), %rdi
movsd -0x378(%rbp), %xmm0
movsd %xmm0, -0x3e0(%rbp)
movslq -0x398(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0x8540
movq %rax, -0x3d8(%rbp)
jmp 0x3c5a5
movq -0x3b0(%rbp), %rdi
movq -0x3d8(%rbp), %rax
movsd -0x3e0(%rbp), %xmm0
movsd %xmm0, (%rax)
movsd -0x380(%rbp), %xmm0
movsd %xmm0, -0x3f0(%rbp)
movslq -0x398(%rbp), %rsi
movl $0x1, %edx
callq 0x8540
movq %rax, -0x3e8(%rbp)
jmp 0x3c5e9
movq -0x3b0(%rbp), %rdi
movq -0x3e8(%rbp), %rax
movsd -0x3f0(%rbp), %xmm0
movsd %xmm0, (%rax)
movsd -0x388(%rbp), %xmm0
movsd %xmm0, -0x400(%rbp)
movslq -0x398(%rbp), %rsi
movl $0x2, %edx
callq 0x8540
movq %rax, -0x3f8(%rbp)
jmp 0x3c62d
movq -0x3b0(%rbp), %rdi
movq -0x3f8(%rbp), %rax
movsd -0x400(%rbp), %xmm0
movsd %xmm0, (%rax)
movsd -0x390(%rbp), %xmm0
movsd %xmm0, -0x410(%rbp)
movslq -0x398(%rbp), %rsi
movl $0x3, %edx
callq 0x8540
movq %rax, -0x408(%rbp)
jmp 0x3c671
movq -0x408(%rbp), %rax
movsd -0x410(%rbp), %xmm0
movsd %xmm0, (%rax)
movl -0x398(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x398(%rbp)
movl -0x394(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x394(%rbp)
jmp 0x3c51d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x2e8(%rbp)
movl %eax, -0x2ec(%rbp)
jmp 0x3c796
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x2e8(%rbp)
movl %eax, -0x2ec(%rbp)
jmp 0x3c730
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x2e8(%rbp)
movl %eax, -0x2ec(%rbp)
jmp 0x3c724
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x2e8(%rbp)
movl %eax, -0x2ec(%rbp)
jmp 0x3c718
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x2e8(%rbp)
movl %eax, -0x2ec(%rbp)
leaq -0x350(%rbp), %rdi
callq 0x68a8
leaq -0x330(%rbp), %rdi
callq 0x68a8
leaq -0x310(%rbp), %rdi
callq 0x68a8
leaq -0x2e0(%rbp), %rdi
callq 0x68a8
jmp 0x3c796
movq -0x3b0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x2e8(%rbp)
movl %eax, -0x2ec(%rbp)
callq 0x8220
jmp 0x3c796
movb $0x1, -0x351(%rbp)
testb $0x1, -0x351(%rbp)
jne 0x3c77a
movq -0x3b0(%rbp), %rdi
callq 0x8220
leaq -0x2c0(%rbp), %rdi
callq 0x3e010
movq -0x3a8(%rbp), %rax
addq $0x410, %rsp            # imm = 0x410
popq %rbp
retq
leaq -0x2c0(%rbp), %rdi
callq 0x3e010
movq -0x2e8(%rbp), %rdi
callq 0x67a0
nop