// File: /workspace/github_cpp_makefile_star2_O3/meirdev[P]HexViewer/Style/Hexyl/Hexyl.cpp
// Function: Hexyl::row(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<unsigned short, std::allocator<unsigned short>> const&)
std::string Hexyl::row(const std::string& _position, const std::vector<unsigned short>& _bytes)
{
    std::stringstream row;

    row << "│" << _position << "│ ";

    for (size_t i = 0; i < 16; ++i)
    {
        if (i)
        {
            if (i % 8 == 0)
            {
                row << " ┊ ";
            }
            else
            {
                row << " ";
            }
        }

        row << getByte(_bytes[i]);
    }
    
    row << " │";
    
    for (size_t i = 0; i < 16; ++i)
    {
        if (i && (i % 8 == 0))
        {
            row << "┊";
        }

        row << getText(_bytes[i]);
    }

    row << "│" << std::endl;

    return row.str();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x198, %rsp            # imm = 0x198
movq %rcx, %r15
movq %rdx, %r13
movq %rsi, %r12
movq %rdi, %rbx
leaq 0x10(%rsp), %rdi
callq 0x5210
leaq 0x20(%rsp), %r14
leaq 0x3da2(%rip), %rsi      # 0x245d1
movl $0x3, %edx
movq %r14, %rdi
callq 0x5320
movq (%r13), %rsi
movq 0x8(%r13), %rdx
movq %r14, %rdi
callq 0x5320
leaq 0x3d72(%rip), %rsi      # 0x245c5
movl $0x4, %edx
movq %rax, %rdi
callq 0x5320
movq %rbx, 0x8(%rsp)
xorl %r13d, %r13d
leaq 0x3d5b(%rip), %rbp      # 0x245ca
leaq 0x2eeb(%rip), %rbx      # 0x23761
testq %r13, %r13
je 0x2089b
xorl %eax, %eax
testb $0x7, %r13b
sete %al
movq %rbx, %rsi
cmoveq %rbp, %rsi
leaq 0x1(,%rax,4), %rdx
movq %r14, %rdi
callq 0x5320
movq (%r15), %rax
movzwl (%rax,%r13,2), %eax
movq 0x8(%r12), %rcx
leaq (%rax,%rax,2), %rax
shll $0x5, %eax
movq 0x20(%rcx,%rax), %rsi
movq 0x28(%rcx,%rax), %rdx
movq %r14, %rdi
callq 0x5320
incq %r13
cmpq $0x10, %r13
jne 0x20876
leaq 0x3cff(%rip), %rsi      # 0x245d0
movl $0x4, %edx
movq %r14, %rdi
callq 0x5320
movq 0x8(%rsp), %rbx
xorl %ebp, %ebp
leaq 0x3ce9(%rip), %r13      # 0x245d5
testq %rbp, %rbp
sete %al
testb $0x7, %bpl
setne %cl
orb %al, %cl
jne 0x2090d
movl $0x3, %edx
movq %r14, %rdi
movq %r13, %rsi
callq 0x5320
movq (%r15), %rax
movzwl (%rax,%rbp,2), %eax
movq 0x8(%r12), %rcx
leaq (%rax,%rax,2), %rax
shll $0x5, %eax
movq 0x40(%rcx,%rax), %rsi
movq 0x48(%rcx,%rax), %rdx
movq %r14, %rdi
callq 0x5320
incq %rbp
cmpq $0x10, %rbp
jne 0x208ec
leaq 0x3c8f(%rip), %rsi      # 0x245d1
movl $0x3, %edx
movq %r14, %rdi
callq 0x5320
movq 0x20(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x52a0
movsbl %al, %esi
movq %r14, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x5200
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0x5480
movq 0xf60c(%rip), %rsi      # 0x2ff98
leaq 0x10(%rsp), %rdi
callq 0x5240
leaq 0x90(%rsp), %rdi
callq 0x5100
movq %rbx, %rax
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x209bc
jmp 0x209bc
movq %rax, %rbx
movq 0xf5d2(%rip), %rsi      # 0x2ff98
leaq 0x10(%rsp), %rdi
callq 0x5240
leaq 0x90(%rsp), %rdi
callq 0x5100
movq %rbx, %rdi
callq 0x5510