// File: /workspace/github_cpp_makefile_star2_O3/tanguysegarra[P]libcsv/src/reader.hxx
// Function: csv::Reader::read_rows()
void Reader::read_rows()
    {
        std::ifstream ifs(filename_);
        if (!ifs.is_open())
            throw InvalidArgumentException("Could not load file: " + filename_);

        std::string col;
        std::string line;
        std::getline(ifs, line);
        std::stringstream ss(line);

        // Get columns names from the first line
        while (std::getline(ss, col, delimiter_))
        {
            std::stringstream quoted_col(col);
            quoted_col >> std::quoted(col);
            rows_.push_back({str::format_csv(col), std::vector<std::string>{}});
        }

        // Get all the values
        while (std::getline(ifs, line))
        {
            std::stringstream ss(line);
            int colIndex = 0;
            std::string val;
            while (getline(ss, val, delimiter_))
            {
                std::stringstream quoted_val(val);
                quoted_val >> std::quoted(val);
                rows_[colIndex].second.push_back(str::format_csv(val));
                colIndex++;
            }
        }

        ifs.close();
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x738, %rsp            # imm = 0x738
movq %rdi, %rbx
leaq 0x18(%rdi), %r15
leaq 0x530(%rsp), %r14
movq %r14, %rdi
movq %r15, %rsi
movl $0x8, %edx
callq 0x4420
leaq 0x5a8(%rsp), %rdi
callq 0x4080
testb %al, %al
je 0x4ef8
leaq 0x88(%rsp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x68(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
movq 0x530(%rsp), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x4290
movsbl %al, %edx
leaq 0x530(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0x44b0
leaq 0x220(%rsp), %rdi
leaq 0x58(%rsp), %rsi
movl $0x18, %edx
callq 0x4410
leaq 0x78(%rsp), %r14
leaq 0x98(%rsp), %r12
movq %rsp, %r13
xorl %ebp, %ebp
movsbl 0x38(%rbx), %edx
leaq 0x220(%rsp), %rdi
movq %r14, %rsi
callq 0x44b0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x4cf5
leaq 0x3a8(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
movl $0x18, %edx
callq 0x4410
movq %r14, 0x98(%rsp)
movw $0x5c22, 0xa0(%rsp)     # imm = 0x5C22
movq %r15, %rdi
movq %r12, %rsi
callq 0x5d01
movq %r13, %rdi
movq %r14, %rsi
callq 0x49d2
leaq 0xa8(%rsp), %rdx
movq %rdx, 0x98(%rsp)
movq (%rsp), %rax
leaq 0x10(%rsp), %rcx
cmpq %rcx, %rax
je 0x4c34
movq %rax, 0x98(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0xa8(%rsp)
jmp 0x4c3a
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq 0x8(%rsp), %rax
movq %rax, 0xa0(%rsp)
movq %rcx, (%rsp)
movq %rbp, 0x8(%rsp)
movb $0x0, 0x10(%rsp)
leaq 0xb8(%rsp), %r15
movq %rbp, 0x10(%r15)
xorps %xmm0, %xmm0
movups %xmm0, (%r15)
movq %rbp, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
movq %rbx, %rdi
movq %r12, %rsi
callq 0x13d1c
movq %r15, %rdi
callq 0x5e20
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x4caa
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x42b0
leaq 0x20(%rsp), %rdi
callq 0x5e20
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x4ccf
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42b0
leaq 0x3a8(%rsp), %rdi
movq 0x1929a(%rip), %rsi     # 0x1df78
callq 0x4220
leaq 0x428(%rsp), %rdi
callq 0x40f0
jmp 0x4b99
movl $0x80, %eax
leaq (%r12,%rax), %rcx
movq %rcx, 0x50(%rsp)
leaq 0x3a8(%rsp), %r15
addq %r15, %rax
movq %rax, 0x48(%rsp)
leaq 0x20(%rsp), %rbp
movq 0x530(%rsp), %rax
movq -0x18(%rax), %rdi
leaq 0x530(%rsp), %r14
addq %r14, %rdi
movl $0xa, %esi
callq 0x4290
movsbl %al, %edx
movq %r14, %rdi
leaq 0x58(%rsp), %rsi
callq 0x44b0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x4e6d
movq %r15, %rdi
leaq 0x58(%rsp), %rsi
movl $0x18, %edx
callq 0x4410
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq $0x0, 0x8(%rsp)
movb $0x0, 0x10(%rsp)
movl $0x20, %r14d
movsbl 0x38(%rbx), %edx
movq %r15, %rdi
movq %r13, %rsi
callq 0x44b0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x4e34
movq %r12, %rdi
movq %r13, %rsi
movl $0x18, %edx
callq 0x4410
movq %r13, 0x20(%rsp)
movw $0x5c22, 0x28(%rsp)     # imm = 0x5C22
movq %r12, %rdi
movq %rbp, %rsi
callq 0x5d01
movq (%rbx), %r15
movq %rbp, %rdi
movq %r13, %rsi
callq 0x49d2
addq %r14, %r15
movq %r15, %rdi
movq %rbp, %rsi
callq 0x13f70
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x4e0a
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x42b0
movq %r12, %rdi
movq 0x19164(%rip), %rsi     # 0x1df78
callq 0x4220
movq 0x50(%rsp), %rdi
callq 0x40f0
addq $0x38, %r14
leaq 0x3a8(%rsp), %r15
jmp 0x4d8a
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x4e4f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42b0
movq %r15, %rdi
movq 0x1911f(%rip), %rsi     # 0x1df78
callq 0x4220
movq 0x48(%rsp), %rdi
callq 0x40f0
jmp 0x4d18
leaq 0x530(%rsp), %rdi
callq 0x4070
movq 0x190f7(%rip), %rsi     # 0x1df78
leaq 0x220(%rsp), %rdi
callq 0x4220
leaq 0x2a0(%rsp), %rdi
callq 0x40f0
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x4eb7
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x42b0
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x4ed9
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x42b0
leaq 0x530(%rsp), %rdi
callq 0x4090
addq $0x738, %rsp            # imm = 0x738
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x28, %edi
callq 0x4170
movq %rax, %r14
leaq 0x101f6(%rip), %rsi     # 0x15102
leaq 0x220(%rsp), %rdi
movq %r15, %rdx
callq 0x5bb7
movb $0x1, %bpl
leaq 0x220(%rsp), %rsi
movq %r14, %rdi
callq 0x5c40
xorl %ebp, %ebp
leaq 0x18b78(%rip), %rsi     # 0x1dab0
leaq 0xd93(%rip), %rdx       # 0x5cd2
movq %r14, %rdi
callq 0x4460
movq %rax, %rbx
leaq 0x230(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4f6b
movq 0x230(%rsp), %rsi
incq %rsi
callq 0x42b0
testb %bpl, %bpl
jne 0x4f78
jmp 0x50df
movq %rax, %rbx
movq %r14, %rdi
callq 0x4210
jmp 0x50df
jmp 0x4ff4
jmp 0x4f89
movq %rax, %rbx
jmp 0x50a1
jmp 0x4ff4
movq %rax, %rbx
leaq 0x98(%rsp), %rdi
callq 0x5df8
leaq 0x20(%rsp), %rdi
callq 0x5e20
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x4fd1
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42b0
jmp 0x4fd1
jmp 0x4fce
jmp 0x4ff4
movq %rax, %rbx
movq 0x18fa0(%rip), %rsi     # 0x1df78
leaq 0x3a8(%rsp), %rdi
callq 0x4220
leaq 0x428(%rsp), %rdi
jmp 0x507b
jmp 0x4ff4
movq %rax, %rbx
jmp 0x5080
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x5024
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x42b0
jmp 0x5024
jmp 0x5021
jmp 0x5044
movq %rax, %rbx
movq 0x18f4d(%rip), %rsi     # 0x1df78
leaq 0x98(%rsp), %rdi
callq 0x4220
movq 0x50(%rsp), %rdi
callq 0x40f0
jmp 0x5047
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x5062
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42b0
movq 0x18f0f(%rip), %rsi     # 0x1df78
leaq 0x3a8(%rsp), %rdi
callq 0x4220
movq 0x48(%rsp), %rdi
callq 0x40f0
movq 0x18ef1(%rip), %rsi     # 0x1df78
leaq 0x220(%rsp), %rdi
callq 0x4220
leaq 0x2a0(%rsp), %rdi
callq 0x40f0
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x50bd
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x42b0
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x50df
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x42b0
leaq 0x530(%rsp), %rdi
callq 0x4090
movq %rbx, %rdi
callq 0x4470