// File: /workspace/github_cpp_makefile_star2_O3/lvandeve[P]base256/base256.cpp
// Function: Printer::encodeChar[abi:cxx11](unsigned char, unsigned char, unsigned char, unsigned long*)
std::string encodeChar(unsigned char c, unsigned char prev, unsigned char next, size_t* width) {
    std::string temp = n->encodeChar(c, prev, next);
    *width = temp.size();
    if(printspace && c == 32 && (mix || n->printable())) {
      std::string result;
      for(size_t i = 0; i < n->width(); i++) {
        result += " ";
      }
      return result;
    }
    if(temp == "\n") return temp;
    if(c == 10 && printnewline && (mix || n->printable())) return "\n";
    std::string result;
    if(mix && c > 32 && c < 127 && !n->printable()) {
      size_t size = n->width() - 1;
      for(size_t i = 0; i < size; i++) {
        result += " ";
      }
      result += c;
      return result;
    }
    bool usecolor = colored && !(temp.size() == 1 && (unsigned char)temp[0] == c);
    if(usecolor) {
      // the gray values (7, 8, 15) are unused in case standard color for printable ASCII is used
      static const int colors[16] = {1,  2,  3, 7, 15, 8, 15,  4,
                                     9, 10, 11, 5, 13, 6, 14, 12};
      int color = colors[c >> 4];
      result += std::string() + "\x1b" + "[" + valtostr((color < 8 ? 30 : 82) + color) + "m";
      // dark blue is quite unreadable against black background, so give it a background. Also
      // give background to the one duplicate color to distinguish it.
      // This assumes terminal with white-ish text on black background
      if(color == 4 || (c >> 4) == 6) result += std::string() + "\x1b" + "[" + valtostr(100) + "m";
      if((c >> 4) == 6) result += std::string() + "\x1b" + "[" + valtostr(100) + "m";
      result += temp;
      result += "\x1b[0m";
      if(color == 4 || (c >> 4) == 6) result += "\x1b[0m";
    } else {
      result += temp;
    }
    return result;
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movq %r9, %r12
movl %edx, %r14d
movq %rsi, %r15
movq %rdi, %rbx
movq (%rsi), %rsi
movq (%rsi), %rax
leaq 0xc8(%rsp), %r13
movq %r13, %rdi
callq *0x10(%rax)
movq 0x8(%r13), %rax
movq %rax, (%r12)
cmpl $0x20, %r14d
jne 0xefb1
cmpb $0x0, 0x1c(%r15)
je 0xefb1
cmpb $0x0, 0x1a(%r15)
jne 0xef70
movq (%r15), %rdi
movq (%rdi), %rax
callq *0x38(%rax)
testb %al, %al
je 0xf010
leaq 0x10(%rbx), %r12
movq %r12, (%rbx)
movq $0x0, 0x8(%rbx)
movb $0x0, 0x10(%rbx)
xorl %r13d, %r13d
leaq 0x3748(%rip), %r14      # 0x126d5
movq (%r15), %rdi
movq (%rdi), %rax
callq *0x28(%rax)
cltq
cmpq %rax, %r13
jae 0xf917
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5430
incq %r13
jmp 0xef8d
leaq 0x2733(%rip), %rsi      # 0x116eb
leaq 0xc8(%rsp), %rdi
callq 0x5090
testl %eax, %eax
je 0xf0f8
cmpb $0xa, %r14b
jne 0xf02c
cmpb $0x1, 0x1b(%r15)
jne 0xf02c
cmpb $0x0, 0x1a(%r15)
jne 0xefee
movq (%r15), %rdi
movq (%rdi), %rax
callq *0x38(%rax)
testb %al, %al
je 0xf02c
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x26ef(%rip), %rsi      # 0x116eb
leaq 0x26e9(%rip), %rdx      # 0x116ec
movq %rbx, %rdi
callq 0xbfd2
jmp 0xf917
leaq 0x26d4(%rip), %rsi      # 0x116eb
leaq 0xc8(%rsp), %rdi
callq 0x5090
testl %eax, %eax
je 0xf0f8
leaq 0x10(%rbx), %r12
movq %r12, (%rbx)
movq $0x0, 0x8(%rbx)
movb $0x0, 0x10(%rbx)
leal -0x21(%r14), %eax
cmpb $0x5d, %al
ja 0xf05f
cmpb $0x0, 0x1a(%r15)
je 0xf05f
movq (%r15), %rdi
movq (%rdi), %rax
callq *0x38(%rax)
testb %al, %al
je 0xf171
cmpb $0x0, 0x18(%r15)
je 0xf121
cmpq $0x1, 0xd0(%rsp)
jne 0xf08b
movq 0xc8(%rsp), %rsi
movl $0x1, %edx
cmpb %r14b, (%rsi)
je 0xf131
movl %r14d, %eax
shrb $0x4, %al
movzbl %al, %ebp
leaq 0x36f5(%rip), %rax      # 0x12790
movl (%rax,%rbp,4), %r15d
leaq 0xb8(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x35b3(%rip), %rsi      # 0x12670
leaq 0xa8(%rsp), %rdi
callq 0x5430
leaq 0x70(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xf1a9
movq %rdx, 0x60(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x70(%rsp)
jmp 0xf1af
leaq 0x10(%rbx), %rcx
movq %rcx, (%rbx)
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdx
cmpq %rax, %rdx
je 0xf13e
movq %rdx, (%rbx)
movq 0xd8(%rsp), %rcx
movq %rcx, 0x10(%rbx)
jmp 0xf144
movq 0xc8(%rsp), %rsi
movq 0xd0(%rsp), %rdx
movq %rbx, %rdi
callq 0x50b0
jmp 0xf917
movups (%rax), %xmm0
movups %xmm0, (%rcx)
movq 0xd0(%rsp), %rcx
movq %rcx, 0x8(%rbx)
movq %rax, 0xc8(%rsp)
movq $0x0, 0xd0(%rsp)
movb $0x0, 0xd8(%rsp)
jmp 0xf917
movq (%r15), %rdi
movq (%rdi), %rax
callq *0x28(%rax)
decl %eax
je 0xf198
movslq %eax, %r13
leaq 0x354d(%rip), %r15      # 0x126d5
movq %rbx, %rdi
movq %r15, %rsi
callq 0x5430
decq %r13
jne 0xf188
movsbl %r14b, %esi
movq %rbx, %rdi
callq 0x51f0
jmp 0xf917
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq 0x60(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x3507(%rip), %rsi      # 0x126d9
callq 0x5430
leaq 0x10(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xf1fd
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0xf205
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leal 0x1e(%r15), %eax
addl $0x52, %r15d
movl $0x288f, %ecx           # imm = 0x288F
btl %ebp, %ecx
cmovbl %eax, %r15d
leaq 0xa4(%rsp), %rsi
movl %r15d, (%rsi)
leaq 0x40(%rsp), %rdi
xorl %edx, %edx
callq 0xdbd8
movq (%rsp), %rcx
movq 0x8(%rsp), %r8
movq 0x48(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r13, %rcx
je 0xf269
movq 0x10(%rsp), %rdi
movq 0x40(%rsp), %rsi
cmpq %rdi, %rax
jbe 0xf28c
leaq 0x50(%rsp), %r9
movl $0xf, %edi
cmpq %r9, %rsi
je 0xf287
movq 0x50(%rsp), %rdi
cmpq %rdi, %rax
jbe 0xf296
movq %rsp, %rdi
callq 0x50b0
jmp 0xf2a4
leaq 0x40(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5280
leaq 0x30(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0xf2c8
movq %rsi, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0xf2ce
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x28(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x338a(%rip), %rsi      # 0x1267c
leaq 0x20(%rsp), %rdi
callq 0x5430
leaq 0x90(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xf32c
movq %rdx, 0x80(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x90(%rsp)
jmp 0xf334
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, 0x88(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x80(%rsp), %rsi
movq 0x88(%rsp), %rdx
movq %rbx, %rdi
callq 0x50b0
movq 0x80(%rsp), %rdi
cmpq %r13, %rdi
je 0xf379
callq 0x5210
leaq 0x30(%rsp), %r15
movq -0x10(%r15), %rdi
cmpq %r15, %rdi
je 0xf38c
callq 0x5210
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf39f
callq 0x5210
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xf3b2
callq 0x5210
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0xf3c6
callq 0x5210
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0xf3e0
callq 0x5210
andb $-0x20, %r14b
cmpb $0x60, %r14b
jne 0xf660
leaq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
movq %rax, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
leaq 0x325c(%rip), %rsi      # 0x12670
callq 0x5430
leaq 0x70(%rsp), %rsi
movq %rsi, 0x60(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xf441
movq %rdx, 0x60(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x70(%rsp)
jmp 0xf447
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq 0x60(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x326f(%rip), %rsi      # 0x126d9
callq 0x5430
leaq 0x10(%rsp), %rsi
movq %rsi, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xf495
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0xf49b
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xa4(%rsp), %rsi
movl $0x64, (%rsi)
leaq 0x40(%rsp), %rdi
xorl %edx, %edx
callq 0xdbd8
movq (%rsp), %rcx
movq 0x8(%rsp), %r8
movq 0x48(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
leaq 0x10(%rsp), %rsi
cmpq %rsi, %rcx
je 0xf4f3
movq 0x10(%rsp), %rdi
movq 0x40(%rsp), %rsi
cmpq %rdi, %rax
jbe 0xf516
movl $0xf, %edi
leaq 0x50(%rsp), %r9
cmpq %r9, %rsi
je 0xf511
movq 0x50(%rsp), %rdi
cmpq %rdi, %rax
jbe 0xf520
movq %rsp, %rdi
callq 0x50b0
jmp 0xf52e
leaq 0x40(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5280
movq %r15, 0x20(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0xf54e
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0xf555
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x28(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x3103(%rip), %rsi      # 0x1267c
leaq 0x20(%rsp), %rdi
callq 0x5430
movq %r13, 0x80(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xf5af
movq %rdx, 0x80(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x90(%rsp)
jmp 0xf5b7
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, 0x88(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x80(%rsp), %rsi
movq 0x88(%rsp), %rdx
movq %rbx, %rdi
callq 0x50b0
movq 0x80(%rsp), %rdi
cmpq %r13, %rdi
je 0xf5fc
callq 0x5210
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0xf60b
callq 0x5210
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0xf61f
callq 0x5210
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xf632
callq 0x5210
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0xf646
callq 0x5210
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0xf660
callq 0x5210
cmpl $0x6, %ebp
jne 0xf8db
leaq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
movq %rax, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
leaq 0x2fe1(%rip), %rsi      # 0x12670
callq 0x5430
leaq 0x70(%rsp), %rsi
movq %rsi, 0x60(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xf6bc
movq %rdx, 0x60(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x70(%rsp)
jmp 0xf6c2
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq 0x60(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x2ff4(%rip), %rsi      # 0x126d9
callq 0x5430
leaq 0x10(%rsp), %rsi
movq %rsi, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xf710
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0xf716
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xa4(%rsp), %rsi
movl $0x64, (%rsi)
leaq 0x40(%rsp), %rdi
xorl %edx, %edx
callq 0xdbd8
movq (%rsp), %rcx
movq 0x8(%rsp), %r8
movq 0x48(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
leaq 0x10(%rsp), %rsi
cmpq %rsi, %rcx
je 0xf76e
movq 0x10(%rsp), %rdi
movq 0x40(%rsp), %rsi
cmpq %rdi, %rax
jbe 0xf791
movl $0xf, %edi
leaq 0x50(%rsp), %r9
cmpq %r9, %rsi
je 0xf78c
movq 0x50(%rsp), %rdi
cmpq %rdi, %rax
jbe 0xf79b
movq %rsp, %rdi
callq 0x50b0
jmp 0xf7a9
leaq 0x40(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5280
movq %r15, 0x20(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0xf7c9
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0xf7d0
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x28(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x2e88(%rip), %rsi      # 0x1267c
leaq 0x20(%rsp), %rdi
callq 0x5430
movq %r13, 0x80(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xf82a
movq %rdx, 0x80(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x90(%rsp)
jmp 0xf832
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, 0x88(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x80(%rsp), %rsi
movq 0x88(%rsp), %rdx
movq %rbx, %rdi
callq 0x50b0
movq 0x80(%rsp), %rdi
cmpq %r13, %rdi
je 0xf877
callq 0x5210
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
leaq 0x10(%rsp), %r15
je 0xf88b
callq 0x5210
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0xf89f
callq 0x5210
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0xf8ad
callq 0x5210
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0xf8c1
callq 0x5210
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0xf8db
callq 0x5210
movq 0xc8(%rsp), %rsi
movq 0xd0(%rsp), %rdx
movq %rbx, %rdi
callq 0x50b0
leaq 0x2d7f(%rip), %rsi      # 0x12679
movq %rbx, %rdi
callq 0x5430
cmpb $0x60, %r14b
jne 0xf917
leaq 0x2d6a(%rip), %rsi      # 0x12679
movq %rbx, %rdi
callq 0x5430
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf92d
callq 0x5210
movq %rbx, %rax
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xf94d
jmp 0xf969
jmp 0xf982
jmp 0xf9e3
movq %rax, %r14
movq 0x80(%rsp), %rdi
cmpq %r13, %rdi
je 0xf96c
callq 0x5210
jmp 0xf96c
jmp 0xf9fb
movq %rax, %r14
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0xf985
callq 0x5210
jmp 0xf985
jmp 0xfa14
movq %rax, %r14
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
jmp 0xf9d7
jmp 0xf9e3
jmp 0xf9fb
jmp 0xfa14
jmp 0xfa3b
movq %rax, %r14
movq 0x80(%rsp), %rdi
cmpq %r13, %rdi
je 0xf9b6
callq 0x5210
jmp 0xf9b6
movq %rax, %r14
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf9ce
callq 0x5210
jmp 0xf9ce
movq %rax, %r14
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf9e6
callq 0x5210
jmp 0xf9e6
movq %rax, %r14
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xf9fe
callq 0x5210
jmp 0xf9fe
movq %rax, %r14
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0xfa17
callq 0x5210
jmp 0xfa17
movq %rax, %r14
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0xfa45
callq 0x5210
jmp 0xfa45
jmp 0xfa42
jmp 0xfa42
jmp 0xfa42
jmp 0xfa42
movq %rax, %r14
jmp 0xfa52
jmp 0xfa42
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0xfa52
callq 0x5210
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xfa68
callq 0x5210
movq %r14, %rdi
callq 0x53e0