// File: /workspace/github_cpp_makefile_star2_O1/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 0x4cde
movw %ax, 0xe(%rsp)
movq %r14, %rdi
callq 0x6b54
movl %eax, %ebx
leaq 0xa0(%rsp), %rdi
callq 0x20e0
movq (%r14), %rsi
leaq 0x4c(%rsp), %rdi
callq 0x52cc
movw %bx, 0x3a(%rsp)
testw %bx, %bx
je 0x6eaa
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 0x2540
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 0x6e44
xorl %r15d, %r15d
movzwl 0x34(%rsp), %eax
movl %eax, 0x3c(%rsp)
movq %r13, %rbx
movzwl %r15w, %r13d
movq 0x8(%r14), %rdi
movq 0x10(%r14), %rax
subq %rdi, %rax
sarq $0x4, %rax
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rcx, %rax
cmpq %r13, %rax
jbe 0x6cf8
leaq (,%r13,2), %r12
addq %r13, %r12
movl %r12d, %eax
shll $0x4, %eax
addq %rax, %rdi
callq 0x3f6a
cmpw $0x2, %ax
jb 0x6cf8
movl %r12d, %esi
shll $0x4, %esi
addq 0x8(%r14), %rsi
leaq 0x10(%rsp), %rdi
movl 0x3c(%rsp), %edx
movl %r13d, %ecx
callq 0x42dc
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 0x6cdd
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2180
shll $0x4, %r12d
addq 0x8(%r14), %r12
movq %r12, %rdi
callq 0x3f6a
addl %eax, %r15d
decl %r15d
jmp 0x6df4
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 0x6d58
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 0x42dc
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
leaq 0xb0(%rsp), %rdi
callq 0x21a0
jmp 0x6dd8
movq (%r14), %rdi
movl %r13d, %esi
callq 0x507a
movl %eax, %r12d
movq (%r14), %rsi
movq %rbx, %r13
movq %rbx, %rdi
callq 0x52cc
movq %r13, %rdi
callq 0x2594
movl %eax, %r13d
movq (%r14), %rsi
leaq 0x68(%rsp), %rbp
movq %rbp, %rdi
callq 0x52cc
movq %rbp, %rdi
callq 0x25a2
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 0x6df4
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2180
movq 0x40(%rsp), %r12
movq %rbx, %r13
movzwl %r15w, %eax
cmpl %eax, 0x48(%rsp)
jle 0x6e35
leaq 0x4c(%rsp), %rdi
callq 0x2588
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 0x6c43
leaq 0x4c(%rsp), %rdi
callq 0x2570
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 0x6c04
leaq 0xb8(%rsp), %rsi
movq %r12, %rdi
callq 0x2220
movq 0x50df(%rip), %rsi      # 0xbfa0
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 0x6f25
jmp 0x6f00
jmp 0x6f25
jmp 0x6f25
jmp 0x6f25
jmp 0x6f00
jmp 0x6f25
jmp 0x6f25
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x6f28
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2180
jmp 0x6f28
jmp 0x6f25
jmp 0x6f25
movq %rax, %rbx
movq 0x5071(%rip), %rsi      # 0xbfa0
leaq 0xa0(%rsp), %rdi
callq 0x2110
leaq 0x120(%rsp), %rdi
callq 0x2050
movq %rbx, %rdi
callq 0x2260
nop