// File: /workspace/github_cpp_makefile_star2_O3/tanguysegarra[P]libcsv/src/writer.hxx
// Function: csv::Writer::write_rows() const
void Writer::write_rows() const
    {
        std::ofstream ofs(filename_);
        if (!ofs.is_open())
            throw InvalidArgumentException("Could not open file: " + filename_);

        for (size_t i = 0; i < rows_.size(); i++)
        {
            ofs << rows_[i].first;
            if(i != rows_.size() - 1)
                ofs << delimiter_;
        }
        ofs << "\n";

        for (size_t i = 0; i < rows_[0].second.size(); i++)
        {
            for (size_t j = 0; j < rows_.size(); j++)
            {
                ofs << rows_[j].second[i];
                if (j != rows_.size() - 1)
                    ofs << delimiter_;
            }
            ofs << "\n";
        }

        ofs.close();
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x228, %rsp            # imm = 0x228
movq %rdi, %rbx
leaq 0x18(%rdi), %r14
leaq 0x28(%rsp), %rdi
movq %r14, %rsi
movl $0x10, %edx
callq 0x44f0
leaq 0x98(%rsp), %rdi
callq 0x4080
testb %al, %al
je 0x55e6
movq (%rbx), %rax
movabsq $0x6db6db6db6db6db7, %r13 # imm = 0x6DB6DB6DB6DB6DB7
cmpq %rax, 0x8(%rbx)
je 0x54af
movl $0x8, %r12d
xorl %ebp, %ebp
leaq 0x28(%rsp), %r14
leaq 0x8(%rsp), %r15
movq -0x8(%rax,%r12), %rsi
movq (%rax,%r12), %rdx
movq %r14, %rdi
callq 0x4310
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
imulq %r13, %rcx
leaq -0x1(%rcx), %rdx
cmpq %rdx, %rbp
je 0x54a3
movb 0x38(%rbx), %al
movb %al, 0x8(%rsp)
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x4310
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
imulq %r13, %rcx
incq %rbp
addq $0x38, %r12
cmpq %rcx, %rbp
jb 0x544e
leaq 0xfd25(%rip), %rsi      # 0x151db
leaq 0x28(%rsp), %rdi
movl $0x1, %edx
callq 0x4310
movq (%rbx), %rax
movq 0x28(%rax), %rcx
cmpq 0x20(%rax), %rcx
je 0x5598
movq $0x0, (%rsp)
leaq 0x28(%rsp), %r15
cmpq %rax, 0x8(%rbx)
je 0x5561
movl $0x20, %r14d
movq (%rsp), %rbp
shlq $0x5, %rbp
xorl %r12d, %r12d
movq (%rax,%r14), %rax
movq (%rax,%rbp), %rsi
movq 0x8(%rax,%rbp), %rdx
movq %r15, %rdi
callq 0x4310
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
imulq %r13, %rcx
leaq -0x1(%rcx), %rdx
cmpq %rdx, %r12
je 0x5555
movb 0x38(%rbx), %al
movb %al, 0x8(%rsp)
movl $0x1, %edx
movq %r15, %rdi
leaq 0x8(%rsp), %rsi
callq 0x4310
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
imulq %r13, %rcx
incq %r12
addq $0x38, %r14
cmpq %rcx, %r12
jb 0x54fa
movl $0x1, %edx
movq %r15, %rdi
leaq 0xfc6b(%rip), %rsi      # 0x151db
callq 0x4310
movq (%rsp), %rsi
incq %rsi
movq (%rbx), %rax
movq 0x28(%rax), %rcx
subq 0x20(%rax), %rcx
sarq $0x5, %rcx
movq %rsi, (%rsp)
cmpq %rcx, %rsi
jb 0x54e3
leaq 0x28(%rsp), %rdi
callq 0x43b0
movq 0x189ef(%rip), %rax     # 0x1df98
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0x30(%rsp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, 0x28(%rsp,%rcx)
callq 0x4250
leaq 0x120(%rsp), %rdi
callq 0x40f0
addq $0x228, %rsp            # imm = 0x228
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x28, %edi
callq 0x4170
movq %rax, %rbx
leaq 0xfb36(%rip), %rsi      # 0x15130
leaq 0x8(%rsp), %rdi
movq %r14, %rdx
callq 0x5bb7
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x5c40
xorl %ebp, %ebp
leaq 0x18490(%rip), %rsi     # 0x1dab0
leaq 0x6ab(%rip), %rdx       # 0x5cd2
movq %rbx, %rdi
callq 0x4460
movq %rax, %r14
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x564d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42b0
testb %bpl, %bpl
jne 0x5657
jmp 0x566a
movq %rax, %r14
movq %rbx, %rdi
callq 0x4210
jmp 0x566a
jmp 0x5667
jmp 0x5667
jmp 0x5667
movq %rax, %r14
leaq 0x28(%rsp), %rdi
callq 0x43e0
movq %r14, %rdi
callq 0x4470