// File: /workspace/github_cpp_makefile_star2_O2/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 $0x218, %rsp            # imm = 0x218
movq %rsi, %r14
movq %rdi, %r12
movq (%rsi), %rdi
callq 0x427a
movl %eax, %r15d
movq %r14, %rdi
callq 0x5aa0
movw %ax, 0x2(%rsp)
leaq 0x90(%rsp), %rdi
callq 0x2100
movq (%r14), %rsi
leaq 0x3c(%rsp), %rdi
callq 0x46ca
movzwl %r15w, %eax
decl %eax
movl %eax, 0xc(%rsp)
xorl %eax, %eax
movq %r12, 0x10(%rsp)
cmpw 0x2(%rsp), %ax
je 0x5d10
movl %eax, 0x4(%rsp)
leaq 0x3c(%rsp), %rdi
callq 0x249a
movsbl (%rax), %esi
leaq 0xa0(%rsp), %rdi
callq 0x21c0
xorl %ebp, %ebp
movzwl 0x4(%rsp), %eax
movl %eax, 0x8(%rsp)
cmpw %r15w, %bp
jae 0x5cde
movzwl %bp, %r13d
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rax
subq %rsi, %rax
cqto
pushq $0x30
popq %rcx
idivq %rcx
cmpq %r13, %rax
jbe 0x5bfe
imulq $0x30, %r13, %r12
addq %r12, %rsi
movq %rsi, %rdi
callq 0x381c
cmpw $0x1, %ax
jbe 0x5beb
movq 0x8(%r14), %rsi
addq %r12, %rsi
leaq 0x18(%rsp), %rbx
movq %rbx, %rdi
movl 0x8(%rsp), %edx
movl %r13d, %ecx
callq 0x3a84
leaq 0xa0(%rsp), %rdi
movq %rbx, %rsi
callq 0x2170
movq %rbx, %rdi
callq 0x20a0
addq 0x8(%r14), %r12
movq %r12, %rdi
callq 0x381c
addl %eax, %ebp
decl %ebp
jmp 0x5cb4
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rax
subq %rsi, %rax
cqto
pushq $0x30
popq %rcx
idivq %rcx
cmpq %r13, %rax
jbe 0x5c30
imulq $0x30, %r13, %rax
addq %rax, %rsi
leaq 0x18(%rsp), %rbx
movq %rbx, %rdi
movl 0x8(%rsp), %edx
movl %r13d, %ecx
callq 0x3a84
leaq 0xa0(%rsp), %rdi
movq %rbx, %rsi
callq 0x2170
jmp 0x5cac
movq (%r14), %rdi
movl %r13d, %esi
callq 0x4502
movl %eax, %r12d
movq (%r14), %rsi
leaq 0x74(%rsp), %r13
movq %r13, %rdi
callq 0x46ca
movq %r13, %rdi
callq 0x24ee
movl %eax, %r13d
movq (%r14), %rsi
leaq 0x58(%rsp), %rbx
movq %rbx, %rdi
callq 0x46ca
movq %rbx, %rdi
callq 0x24fc
movzwl %r12w, %ecx
movzwl %r13w, %edx
addq %rcx, %rdx
movzwl %ax, %esi
addq %rdx, %rsi
leaq 0x28(%rsp), %rax
movq %rax, 0x18(%rsp)
leaq 0x18(%rsp), %rbx
movq %rbx, %rdi
pushq $0x20
popq %rdx
callq 0x21b0
leaq 0xa0(%rsp), %rdi
movq %rbx, %rsi
callq 0x2170
movq %rbx, %rdi
callq 0x20a0
movzwl %bp, %eax
cmpl %eax, 0xc(%rsp)
jle 0x5cd7
leaq 0x3c(%rsp), %rdi
callq 0x24e2
movsbl (%rax), %esi
leaq 0xa0(%rsp), %rdi
callq 0x21c0
incl %ebp
jmp 0x5b68
leaq 0x3c(%rsp), %rdi
callq 0x24ca
movsbl (%rax), %esi
leaq 0xa0(%rsp), %rdi
callq 0x21c0
movq %rax, %rdi
callq 0x20c0
movl 0x4(%rsp), %eax
incl %eax
movq 0x10(%rsp), %r12
jmp 0x5b34
leaq 0xa8(%rsp), %rsi
movq %r12, %rdi
callq 0x2240
leaq 0x90(%rsp), %rdi
callq 0x2130
movq %r12, %rax
addq $0x218, %rsp            # imm = 0x218
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5d65
jmp 0x5d65
jmp 0x5d52
jmp 0x5d65
jmp 0x5d52
jmp 0x5d65
jmp 0x5d65
jmp 0x5d65
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x20a0
jmp 0x5d68
jmp 0x5d65
jmp 0x5d65
movq %rax, %rbx
leaq 0x90(%rsp), %rdi
callq 0x2130
movq %rbx, %rdi
callq 0x2280