// File: /workspace/github_cpp_makefile_star2_O1/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 $0x728, %rsp            # imm = 0x728
movq %rdi, %rbx
leaq 0x18(%rdi), %r15
leaq 0x520(%rsp), %r14
movq %r14, %rdi
movq %r15, %rsi
movl $0x8, %edx
callq 0x4420
leaq 0x598(%rsp), %rdi
callq 0x4080
testb %al, %al
je 0x4f1c
leaq 0x78(%rsp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x50(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
movq 0x520(%rsp), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x4290
movsbl %al, %edx
leaq 0x520(%rsp), %rdi
leaq 0x40(%rsp), %rsi
callq 0x44b0
leaq 0x398(%rsp), %rdi
leaq 0x40(%rsp), %rsi
movl $0x18, %edx
callq 0x4410
leaq 0x98(%rsp), %r15
leaq 0x68(%rsp), %r14
movq %rsp, %r13
xorl %ebp, %ebp
movsbl 0x38(%rbx), %edx
leaq 0x398(%rsp), %rdi
movq %r14, %rsi
callq 0x44b0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x4d09
leaq 0x210(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
movl $0x18, %edx
callq 0x4410
movq %r14, 0x88(%rsp)
movw $0x5c22, 0x90(%rsp)     # imm = 0x5C22
movq %r12, %rdi
leaq 0x88(%rsp), %rsi
callq 0x5d11
movq %r13, %rdi
movq %r14, %rsi
callq 0x49d2
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movq $0x0, 0x30(%rsp)
movq %r15, 0x88(%rsp)
movq (%rsp), %rax
leaq 0x10(%rsp), %rcx
cmpq %rcx, %rax
je 0x4c3b
movq %rax, 0x88(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x98(%rsp)
jmp 0x4c42
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rsp), %rax
movq %rax, 0x90(%rsp)
movq %rcx, (%rsp)
movq %rbp, 0x8(%rsp)
movb $0x0, 0x10(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0xa8(%rsp)
movups 0x28(%rsp), %xmm0
movups %xmm0, 0xb0(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movq %rbp, 0x30(%rsp)
movq %rbx, %rdi
leaq 0x88(%rsp), %rsi
callq 0x13d00
leaq 0xa8(%rsp), %rdi
callq 0x5e34
movq 0x88(%rsp), %rdi
cmpq %r15, %rdi
je 0x4cbe
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x42b0
leaq 0x20(%rsp), %rdi
callq 0x5e34
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x4ce3
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42b0
leaq 0x210(%rsp), %rdi
movq 0x19286(%rip), %rsi     # 0x1df78
callq 0x4220
leaq 0x290(%rsp), %rdi
callq 0x40f0
jmp 0x4b92
movl $0x80, %ecx
leaq 0x88(%rsp), %rax
leaq (%rax,%rcx), %r14
leaq 0x210(%rsp), %rax
addq %rax, %rcx
movq %rcx, 0x60(%rsp)
leaq 0x20(%rsp), %rbp
movq 0x520(%rsp), %rax
movq -0x18(%rax), %rdi
leaq 0x520(%rsp), %r15
addq %r15, %rdi
movl $0xa, %esi
callq 0x4290
movsbl %al, %edx
movq %r15, %rdi
leaq 0x40(%rsp), %rsi
callq 0x44b0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x4e97
leaq 0x210(%rsp), %r15
movq %r15, %rdi
leaq 0x40(%rsp), %rsi
movl $0x18, %edx
callq 0x4410
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq $0x0, 0x8(%rsp)
movb $0x0, 0x10(%rsp)
movl $0x20, %r12d
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 0x4e5e
leaq 0x88(%rsp), %r15
movq %r15, %rdi
movq %r13, %rsi
movl $0x18, %edx
callq 0x4410
movq %r13, 0x20(%rsp)
movw $0x5c22, 0x28(%rsp)     # imm = 0x5C22
movq %r15, %rdi
movq %rbp, %rsi
callq 0x5d11
movq (%rbx), %r15
movq %rbp, %rdi
movq %r13, %rsi
callq 0x49d2
addq %r12, %r15
movq %r15, %rdi
movq %rbp, %rsi
callq 0x13f56
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x4e31
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x42b0
leaq 0x88(%rsp), %rdi
movq 0x19138(%rip), %rsi     # 0x1df78
callq 0x4220
movq %r14, %rdi
callq 0x40f0
addq $0x38, %r12
leaq 0x210(%rsp), %r15
jmp 0x4da9
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x4e79
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42b0
movq %r15, %rdi
movq 0x190f5(%rip), %rsi     # 0x1df78
callq 0x4220
movq 0x60(%rsp), %rdi
callq 0x40f0
jmp 0x4d2f
leaq 0x520(%rsp), %rdi
callq 0x4070
movq 0x190cd(%rip), %rsi     # 0x1df78
leaq 0x398(%rsp), %rdi
callq 0x4220
leaq 0x418(%rsp), %rdi
callq 0x40f0
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x4ee1
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x42b0
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x4efd
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x42b0
leaq 0x520(%rsp), %rdi
callq 0x4090
addq $0x728, %rsp            # imm = 0x728
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x28, %edi
callq 0x4170
movq %rax, %r14
leaq 0x101d2(%rip), %rsi     # 0x15102
leaq 0x398(%rsp), %rdi
movq %r15, %rdx
callq 0x5bc7
movb $0x1, %bpl
leaq 0x398(%rsp), %rsi
movq %r14, %rdi
callq 0x5c50
xorl %ebp, %ebp
leaq 0x18b24(%rip), %rsi     # 0x1da80
leaq 0xd7f(%rip), %rdx       # 0x5ce2
movq %r14, %rdi
callq 0x4460
movq %rax, %rbx
leaq 0x3a8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4f97
movq 0x3a8(%rsp), %rsi
incq %rsi
callq 0x42b0
jmp 0x4f97
movq %rax, %rbx
movb $0x1, %bpl
testb %bpl, %bpl
je 0x50cd
movq %r14, %rdi
callq 0x4210
jmp 0x50cd
jmp 0x4fe2
jmp 0x4fb1
movq %rax, %rbx
jmp 0x5095
jmp 0x4fe2
movq %rax, %rbx
leaq 0x88(%rsp), %rdi
callq 0x5e0c
leaq 0x20(%rsp), %rdi
callq 0x5e34
jmp 0x5038
jmp 0x4fdb
jmp 0x4fe2
movq %rax, %rbx
jmp 0x5053
jmp 0x4fe2
movq %rax, %rbx
jmp 0x5074
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x5012
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x42b0
jmp 0x5012
jmp 0x500f
jmp 0x5035
movq %rax, %rbx
movq 0x18f5f(%rip), %rsi     # 0x1df78
leaq 0x88(%rsp), %rdi
callq 0x4220
leaq 0x108(%rsp), %rdi
callq 0x40f0
jmp 0x5038
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x5053
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42b0
movq 0x18f1e(%rip), %rsi     # 0x1df78
leaq 0x210(%rsp), %rdi
callq 0x4220
leaq 0x290(%rsp), %rdi
callq 0x40f0
movq 0x18efd(%rip), %rsi     # 0x1df78
leaq 0x398(%rsp), %rdi
callq 0x4220
leaq 0x418(%rsp), %rdi
callq 0x40f0
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x50b1
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x42b0
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x50cd
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x42b0
leaq 0x520(%rsp), %rdi
callq 0x4090
movq %rbx, %rdi
callq 0x4470