// File: /workspace/github_cpp_makefile_star2_O1/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 0xf277
cmpb $0x0, 0x1c(%r15)
je 0xf277
cmpb $0x0, 0x1a(%r15)
jne 0xf236
movq (%r15), %rdi
movq (%rdi), %rax
callq *0x38(%rax)
testb %al, %al
je 0xf277
leaq 0x10(%rbx), %r12
movq %r12, (%rbx)
movq $0x0, 0x8(%rbx)
movb $0x0, 0x10(%rbx)
xorl %r13d, %r13d
leaq 0x3482(%rip), %r14      # 0x126d5
movq (%r15), %rdi
movq (%rdi), %rax
callq *0x28(%rax)
cltq
cmpq %rax, %r13
jae 0xfbb2
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5430
incq %r13
jmp 0xf253
leaq 0x246d(%rip), %rsi      # 0x116eb
leaq 0xc8(%rsp), %rdi
callq 0x5090
testl %eax, %eax
je 0xf345
cmpb $0xa, %r14b
jne 0xf2d6
cmpb $0x1, 0x1b(%r15)
jne 0xf2d6
cmpb $0x0, 0x1a(%r15)
jne 0xf2b4
movq (%r15), %rdi
movq (%rdi), %rax
callq *0x38(%rax)
testb %al, %al
je 0xf2d6
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x2429(%rip), %rsi      # 0x116eb
leaq 0x2423(%rip), %rdx      # 0x116ec
movq %rbx, %rdi
callq 0xc264
jmp 0xfbb2
leaq 0x10(%rbx), %r12
movq %r12, (%rbx)
movq $0x0, 0x8(%rbx)
movb $0x0, 0x10(%rbx)
leal -0x21(%r14), %eax
cmpb $0x5d, %al
ja 0xf309
cmpb $0x0, 0x1a(%r15)
je 0xf309
movq (%r15), %rdi
movq (%rdi), %rax
callq *0x38(%rax)
testb %al, %al
je 0xf407
cmpb $0x1, 0x18(%r15)
jne 0xf328
cmpq $0x1, 0xd0(%rsp)
jne 0xf36e
movq 0xc8(%rsp), %rax
cmpb %r14b, (%rax)
jne 0xf36e
movq 0xc8(%rsp), %rsi
movq 0xd0(%rsp), %rdx
movq %rbx, %rdi
callq 0x50b0
jmp 0xfbb2
leaq 0x10(%rbx), %rcx
movq %rcx, (%rbx)
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdx
cmpq %rax, %rdx
je 0xf3d4
movq %rdx, (%rbx)
movq 0xd8(%rsp), %rcx
movq %rcx, 0x10(%rbx)
jmp 0xf3da
movl %r14d, %eax
shrb $0x4, %al
movzbl %al, %ebp
leaq 0x3412(%rip), %rax      # 0x12790
movl (%rax,%rbp,4), %r15d
leaq 0xb8(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x32d0(%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 0xf43f
movq %rdx, 0x60(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x70(%rsp)
jmp 0xf445
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 0xfbb2
movq (%r15), %rdi
movq (%rdi), %rax
callq *0x28(%rax)
decl %eax
je 0xf42e
movslq %eax, %r13
leaq 0x32b7(%rip), %r15      # 0x126d5
movq %rbx, %rdi
movq %r15, %rsi
callq 0x5430
decq %r13
jne 0xf41e
movsbl %r14b, %esi
movq %rbx, %rdi
callq 0x51f0
jmp 0xfbb2
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 0x3271(%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 0xf493
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0xf49b
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 0xdea1
movq (%rsp), %rcx
movq 0x8(%rsp), %r8
movq 0x48(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r13, %rcx
je 0xf4ff
movq 0x10(%rsp), %rsi
cmpq %rsi, %rax
jbe 0xf51e
leaq 0x50(%rsp), %rdi
movl $0xf, %esi
cmpq %rdi, -0x10(%rdi)
je 0xf519
movq 0x50(%rsp), %rsi
cmpq %rsi, %rax
jbe 0xf52d
movq 0x40(%rsp), %rsi
movq %rsp, %rdi
callq 0x50b0
jmp 0xf53b
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 0xf55f
movq %rsi, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0xf565
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 0x30f3(%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 0xf5c3
movq %rdx, 0x80(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x90(%rsp)
jmp 0xf5cb
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 0xf610
callq 0x5210
leaq 0x30(%rsp), %r15
movq -0x10(%r15), %rdi
cmpq %r15, %rdi
je 0xf623
callq 0x5210
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf636
callq 0x5210
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xf649
callq 0x5210
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0xf65d
callq 0x5210
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0xf677
callq 0x5210
andb $-0x20, %r14b
cmpb $0x60, %r14b
jne 0xf8f9
leaq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
movq %rax, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
leaq 0x2fc5(%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 0xf6d8
movq %rdx, 0x60(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x70(%rsp)
jmp 0xf6de
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 0x2fd8(%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 0xf72c
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0xf732
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 0xdea1
movq (%rsp), %rcx
movq 0x8(%rsp), %r8
movq 0x48(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
leaq 0x10(%rsp), %rdi
cmpq %rdi, %rcx
je 0xf78a
movq 0x10(%rsp), %rsi
cmpq %rsi, %rax
jbe 0xf7aa
movl $0xf, %esi
leaq 0x50(%rsp), %rdi
cmpq %rdi, 0x40(%rsp)
je 0xf7a5
movq 0x50(%rsp), %rsi
cmpq %rsi, %rax
jbe 0xf7b9
movq 0x40(%rsp), %rsi
movq %rsp, %rdi
callq 0x50b0
jmp 0xf7c7
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 0xf7e7
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0xf7ee
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 0x2e6a(%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 0xf848
movq %rdx, 0x80(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x90(%rsp)
jmp 0xf850
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 0xf895
callq 0x5210
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0xf8a4
callq 0x5210
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0xf8b8
callq 0x5210
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xf8cb
callq 0x5210
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0xf8df
callq 0x5210
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0xf8f9
callq 0x5210
cmpl $0x6, %ebp
jne 0xfb76
leaq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
movq %rax, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
leaq 0x2d48(%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 0xf955
movq %rdx, 0x60(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x70(%rsp)
jmp 0xf95b
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 0x2d5b(%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 0xf9a9
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0xf9af
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 0xdea1
movq (%rsp), %rcx
movq 0x8(%rsp), %r8
movq 0x48(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
leaq 0x10(%rsp), %rdi
cmpq %rdi, %rcx
je 0xfa07
movq 0x10(%rsp), %rsi
cmpq %rsi, %rax
jbe 0xfa27
movl $0xf, %esi
leaq 0x50(%rsp), %rdi
cmpq %rdi, 0x40(%rsp)
je 0xfa22
movq 0x50(%rsp), %rsi
cmpq %rsi, %rax
jbe 0xfa36
movq 0x40(%rsp), %rsi
movq %rsp, %rdi
callq 0x50b0
jmp 0xfa44
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 0xfa64
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0xfa6b
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 0x2bed(%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 0xfac5
movq %rdx, 0x80(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x90(%rsp)
jmp 0xfacd
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 0xfb12
callq 0x5210
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
leaq 0x10(%rsp), %r15
je 0xfb26
callq 0x5210
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0xfb3a
callq 0x5210
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0xfb48
callq 0x5210
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0xfb5c
callq 0x5210
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0xfb76
callq 0x5210
movq 0xc8(%rsp), %rsi
movq 0xd0(%rsp), %rdx
movq %rbx, %rdi
callq 0x50b0
leaq 0x2ae4(%rip), %rsi      # 0x12679
movq %rbx, %rdi
callq 0x5430
cmpb $0x60, %r14b
jne 0xfbb2
leaq 0x2acf(%rip), %rsi      # 0x12679
movq %rbx, %rdi
callq 0x5430
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xfbc8
callq 0x5210
movq %rbx, %rax
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xfbe8
jmp 0xfc04
jmp 0xfc1d
jmp 0xfc7e
movq %rax, %r14
movq 0x80(%rsp), %rdi
cmpq %r13, %rdi
je 0xfc07
callq 0x5210
jmp 0xfc07
jmp 0xfc96
movq %rax, %r14
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0xfc20
callq 0x5210
jmp 0xfc20
jmp 0xfcaf
movq %rax, %r14
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
jmp 0xfc72
jmp 0xfc7e
jmp 0xfc96
jmp 0xfcaf
jmp 0xfcd6
movq %rax, %r14
movq 0x80(%rsp), %rdi
cmpq %r13, %rdi
je 0xfc51
callq 0x5210
jmp 0xfc51
movq %rax, %r14
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xfc69
callq 0x5210
jmp 0xfc69
movq %rax, %r14
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xfc81
callq 0x5210
jmp 0xfc81
movq %rax, %r14
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xfc99
callq 0x5210
jmp 0xfc99
movq %rax, %r14
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0xfcb2
callq 0x5210
jmp 0xfcb2
movq %rax, %r14
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0xfce0
callq 0x5210
jmp 0xfce0
jmp 0xfcdd
jmp 0xfcdd
jmp 0xfcdd
jmp 0xfcdd
movq %rax, %r14
jmp 0xfced
jmp 0xfcdd
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0xfced
callq 0x5210
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xfd03
callq 0x5210
movq %r14, %rdi
callq 0x53e0
nop