// File: /workspace/github_cpp_makefile_star2_O1/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 0x55f7
movq (%rbx), %rax
movabsq $0x6db6db6db6db6db7, %r13 # imm = 0x6DB6DB6DB6DB6DB7
cmpq %rax, 0x8(%rbx)
je 0x54c1
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 0x8(%rbx), %rax
subq (%rbx), %rax
sarq $0x3, %rax
imulq %r13, %rax
decq %rax
cmpq %rax, %rbp
je 0x54a3
movb 0x38(%rbx), %al
movb %al, 0x8(%rsp)
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x4310
incq %rbp
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
imulq %r13, %rcx
addq $0x38, %r12
cmpq %rcx, %rbp
jb 0x5464
leaq 0xfd13(%rip), %rsi      # 0x151db
leaq 0x28(%rsp), %rdi
movl $0x1, %edx
callq 0x4310
movq (%rbx), %rax
movq 0x28(%rax), %rcx
cmpq 0x20(%rax), %rcx
je 0x55a9
movq $0x0, (%rsp)
leaq 0x28(%rsp), %r15
movq (%rbx), %rax
cmpq %rax, 0x8(%rbx)
je 0x5572
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 0x8(%rbx), %rax
subq (%rbx), %rax
sarq $0x3, %rax
imulq %r13, %rax
decq %rax
cmpq %rax, %r12
je 0x5554
movb 0x38(%rbx), %al
movb %al, 0x8(%rsp)
movl $0x1, %edx
movq %r15, %rdi
leaq 0x8(%rsp), %rsi
callq 0x4310
incq %r12
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
imulq %r13, %rcx
addq $0x38, %r14
cmpq %rcx, %r12
jb 0x550f
movl $0x1, %edx
movq %r15, %rdi
leaq 0xfc5a(%rip), %rsi      # 0x151db
callq 0x4310
movq (%rsp), %rdx
incq %rdx
movq (%rbx), %rax
movq 0x28(%rax), %rcx
subq 0x20(%rax), %rcx
sarq $0x5, %rcx
movq %rdx, (%rsp)
cmpq %rcx, %rdx
jb 0x54f5
leaq 0x28(%rsp), %rdi
callq 0x43b0
movq 0x189de(%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 0xfb25(%rip), %rsi      # 0x15130
leaq 0x8(%rsp), %rdi
movq %r14, %rdx
callq 0x5bc7
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x5c50
xorl %ebp, %ebp
leaq 0x1844f(%rip), %rsi     # 0x1da80
leaq 0x6aa(%rip), %rdx       # 0x5ce2
movq %rbx, %rdi
callq 0x4460
movq %rax, %r14
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5666
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42b0
jmp 0x5666
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x567e
movq %rbx, %rdi
callq 0x4210
jmp 0x567e
jmp 0x567b
jmp 0x567b
jmp 0x567b
movq %rax, %r14
leaq 0x28(%rsp), %rdi
callq 0x43e0
movq %r14, %rdi
callq 0x4470