// File: /workspace/github_cpp_makefile_star2_O3/Phidelux[P]terminal-table/src/row.cpp
// Function: bornageek::utils::termtab::Row::render[abi:cxx11]() const
const std::string Row::render() const {
        std::uint16_t numColumns = mTable->numColumns();
        std::uint16_t numLines = this->height();

        std::stringstream ss;

        Style style = this->mTable->style();

        for(std::uint16_t l = 0; l < numLines; l++) {
          ss << style.borderLeft();

          for(std::uint16_t c = 0; c < numColumns; c++) {
            if(c < mCells.size() && mCells[c].colSpan() > 1) {
              ss << mCells[c].render(l, c); 
              c += mCells[c].colSpan() - 1;
            } else if(c < mCells.size()) {
              ss << mCells[c].render(l, c);
            } else {
              ss << std::string(mTable->columnWidth(c) 
                + mTable->style().paddingLeft() + mTable->style().paddingRight(),
                ' ');
            }

            if(c < numColumns - 1) {
              ss << style.borderMiddle();
            }
          }

          ss << style.borderRight() << std:: endl;
        }

        return ss.str();
      }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x228, %rsp            # imm = 0x228
movq %rsi, %r14
movq %rdi, %r12
movq (%rsi), %rdi
callq 0x4ab4
movw %ax, 0xe(%rsp)
movq %r14, %rdi
callq 0x6910
movl %eax, %ebx
leaq 0xa0(%rsp), %rdi
callq 0x20e0
movq (%r14), %rsi
leaq 0x4c(%rsp), %rdi
callq 0x50cc
movw %bx, 0x3a(%rsp)
testw %bx, %bx
je 0x6c8e
movzwl 0xe(%rsp), %eax
decl %eax
movl %eax, 0x48(%rsp)
movl $0x0, 0x34(%rsp)
leaq 0x84(%rsp), %r13
movq %r12, 0x40(%rsp)
leaq 0x4c(%rsp), %rdi
callq 0x24fc
movb (%rax), %al
movb %al, 0x10(%rsp)
movl $0x1, %edx
leaq 0xb0(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x21a0
cmpw $0x0, 0xe(%rsp)
je 0x6c28
xorl %r15d, %r15d
movzwl 0x34(%rsp), %eax
movl %eax, 0x3c(%rsp)
movq %r13, %rbx
movzwl %r15w, %r13d
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rax
subq %rsi, %rax
sarq $0x4, %rax
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rcx, %rax
cmpq %r13, %rax
jbe 0x6ad9
leaq (,%r13,2), %r12
addq %r13, %r12
movl %r12d, %eax
shll $0x4, %eax
addq %rax, %rsi
movq %rsi, %rdi
callq 0x3d52
cmpw $0x1, %ax
jbe 0x6ab7
movl %r12d, %esi
shll $0x4, %esi
addq 0x8(%r14), %rsi
leaq 0x10(%rsp), %rdi
movl 0x3c(%rsp), %edx
movl %r13d, %ecx
callq 0x40c4
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
leaq 0xb0(%rsp), %rdi
callq 0x21a0
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x6a9c
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2180
shll $0x4, %r12d
addq 0x8(%r14), %r12
movq %r12, %rdi
callq 0x3d52
addl %eax, %r15d
decl %r15d
jmp 0x6bd8
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rax
subq %rsi, %rax
sarq $0x4, %rax
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rcx, %rax
movq 0x40(%rsp), %r12
cmpq %r13, %rax
jbe 0x6b3c
leaq (,%r13,2), %rax
addq %r13, %rax
shll $0x4, %eax
addq %rax, %rsi
leaq 0x10(%rsp), %rdi
movl 0x3c(%rsp), %edx
movl %r13d, %ecx
callq 0x40c4
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
leaq 0xb0(%rsp), %rdi
callq 0x21a0
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x6bdd
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2180
jmp 0x6bdd
movq (%r14), %rdi
movl %r13d, %esi
callq 0x4e66
movl %eax, %r12d
movq (%r14), %rsi
movq %rbx, %r13
movq %rbx, %rdi
callq 0x50cc
movq %r13, %rdi
callq 0x2550
movl %eax, %r13d
movq (%r14), %rsi
leaq 0x68(%rsp), %rbp
movq %rbp, %rdi
callq 0x50cc
movq %rbp, %rdi
callq 0x255e
movzwl %r12w, %ecx
movzwl %r13w, %edx
addq %rcx, %rdx
movzwl %ax, %esi
addq %rdx, %rsi
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
leaq 0x10(%rsp), %rdi
movl $0x20, %edx
callq 0x21b0
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
leaq 0xb0(%rsp), %rdi
callq 0x21a0
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x6bd8
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2180
movq 0x40(%rsp), %r12
movq %rbx, %r13
movzwl %r15w, %eax
cmpl %eax, 0x48(%rsp)
jle 0x6c19
leaq 0x4c(%rsp), %rdi
callq 0x2544
movb (%rax), %al
movb %al, 0x10(%rsp)
movl $0x1, %edx
leaq 0xb0(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x21a0
movq 0x40(%rsp), %r12
movq %rbx, %r13
incl %r15d
cmpw 0xe(%rsp), %r15w
jb 0x69ff
leaq 0x4c(%rsp), %rdi
callq 0x252c
movb (%rax), %al
movb %al, 0x10(%rsp)
movl $0x1, %edx
leaq 0xb0(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x21a0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20d0
movl 0x34(%rsp), %eax
incl %eax
movl %eax, 0x34(%rsp)
cmpw 0x3a(%rsp), %ax
jne 0x69c0
leaq 0xb8(%rsp), %rsi
movq %r12, %rdi
callq 0x2220
movq 0x42fb(%rip), %rsi      # 0xafa0
leaq 0xa0(%rsp), %rdi
callq 0x2110
leaq 0x120(%rsp), %rdi
callq 0x2050
movq %r12, %rax
addq $0x228, %rsp            # imm = 0x228
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6d09
jmp 0x6ce4
jmp 0x6d09
jmp 0x6d09
jmp 0x6d09
jmp 0x6ce4
jmp 0x6d09
jmp 0x6d09
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x6d0c
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2180
jmp 0x6d0c
jmp 0x6d09
jmp 0x6d09
movq %rax, %rbx
movq 0x428d(%rip), %rsi      # 0xafa0
leaq 0xa0(%rsp), %rdi
callq 0x2110
leaq 0x120(%rsp), %rdi
callq 0x2050
movq %rbx, %rdi
callq 0x2260
nop