// File: /workspace/github_cpp_makefile_star2_O2/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), %rdi
pushq $0x8
popq %rdx
movq %r15, %rsi
callq 0x4450
leaq 0x598(%rsp), %rdi
callq 0x40a0
testb %al, %al
je 0x4b2f
leaq 0x78(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
xorl %ecx, %ecx
movb %cl, (%rax)
leaq 0x58(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb %cl, (%rax)
leaq 0x520(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0x4070
leaq 0x88(%rsp), %rdi
leaq 0x48(%rsp), %rsi
pushq $0x18
popq %rdx
callq 0x4440
leaq 0x68(%rsp), %r12
leaq 0x398(%rsp), %r13
leaq 0x210(%rsp), %rbp
leaq 0x28(%rsp), %r14
movq %rsp, %r15
movsbl 0x38(%rbx), %edx
leaq 0x88(%rsp), %rdi
movq %r12, %rsi
callq 0x44f0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x49f3
movq %r13, %rdi
movq %r12, %rsi
pushq $0x18
popq %rdx
callq 0x4440
movq %r12, 0x210(%rsp)
movw $0x5c22, 0x218(%rsp)    # imm = 0x5C22
movq %r13, %rdi
movq %rbp, %rsi
callq 0x560a
movq %r14, %rdi
movq %r12, %rsi
callq 0x47ec
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
andq $0x0, 0x10(%rsp)
movq %rbp, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x56e4
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x11992
movq %rbp, %rdi
callq 0x5716
movq %r15, %rdi
callq 0x572c
movq %r14, %rdi
callq 0x4170
movq %r13, %rdi
callq 0x4240
jmp 0x494c
leaq 0x210(%rsp), %r15
movq %rsp, %r12
leaq 0x520(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0x4070
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x4ae2
leaq 0x398(%rsp), %rdi
leaq 0x48(%rsp), %rsi
pushq $0x18
popq %rdx
callq 0x4440
leaq 0x38(%rsp), %rax
movq %rax, 0x28(%rsp)
andq $0x0, 0x30(%rsp)
movb $0x0, 0x38(%rsp)
pushq $0x20
popq %r13
movsbl 0x38(%rbx), %edx
leaq 0x398(%rsp), %rdi
movq %r14, %rsi
callq 0x44f0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x4ac8
movq %r15, %rdi
movq %r14, %rsi
pushq $0x18
popq %rdx
callq 0x4440
movq %r14, (%rsp)
movw $0x5c22, 0x8(%rsp)      # imm = 0x5C22
movq %r15, %rdi
movq %r12, %rsi
callq 0x560a
movq (%rbx), %rbp
movq %r12, %rdi
movq %r14, %rsi
callq 0x47ec
addq %r13, %rbp
movq %rbp, %rdi
movq %r12, %rsi
callq 0x11bac
movq %r12, %rdi
callq 0x4170
movq %r15, %rdi
callq 0x4240
addq $0x38, %r13
jmp 0x4a50
movq %r14, %rdi
callq 0x4170
leaq 0x398(%rsp), %rdi
callq 0x4240
jmp 0x49fe
leaq 0x520(%rsp), %rdi
callq 0x4080
leaq 0x88(%rsp), %rdi
callq 0x4240
leaq 0x48(%rsp), %rdi
callq 0x4170
leaq 0x68(%rsp), %rdi
callq 0x4170
leaq 0x520(%rsp), %rdi
callq 0x40b0
addq $0x728, %rsp            # imm = 0x728
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x28
popq %rdi
callq 0x4190
movq %rax, %r14
leaq 0xe5c1(%rip), %rsi      # 0x13102
leaq 0x88(%rsp), %rdi
movq %r15, %rdx
callq 0x5501
movb $0x1, %bpl
leaq 0x88(%rsp), %rsi
movq %r14, %rdi
callq 0x5578
xorl %ebp, %ebp
leaq 0x18f43(%rip), %rsi     # 0x1dab0
leaq 0xa76(%rip), %rdx       # 0x55ea
movq %r14, %rdi
callq 0x4490
movq %rax, %rbx
leaq 0x88(%rsp), %rdi
callq 0x4170
testb %bpl, %bpl
jne 0x4b99
jmp 0x4c39
movq %rax, %rbx
movq %r14, %rdi
callq 0x4230
jmp 0x4c39
jmp 0x4bd6
jmp 0x4baa
movq %rax, %rbx
jmp 0x4c25
jmp 0x4bd6
movq %rax, %rbx
leaq 0x210(%rsp), %rdi
callq 0x5716
movq %rsp, %rdi
callq 0x572c
jmp 0x4c01
jmp 0x4bcd
movq %rax, %rbx
jmp 0x4c0b
jmp 0x4bd6
jmp 0x4bd6
movq %rax, %rbx
jmp 0x4c18
movq %rax, %rbx
movq %rsp, %rdi
callq 0x4170
jmp 0x4bef
jmp 0x4bec
jmp 0x4bfe
movq %rax, %rbx
leaq 0x210(%rsp), %rdi
callq 0x4240
jmp 0x4c01
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x4170
leaq 0x398(%rsp), %rdi
callq 0x4240
leaq 0x88(%rsp), %rdi
callq 0x4240
leaq 0x48(%rsp), %rdi
callq 0x4170
leaq 0x68(%rsp), %rdi
callq 0x4170
leaq 0x520(%rsp), %rdi
callq 0x40b0
movq %rbx, %rdi
callq 0x44b0