// File: /workspace/github_c_makefile_star2_O3/OnionIoT[P]lv_example/lvgl/src/lv_misc/lv_printf.c
// Function: vsnprintf
static int _vsnprintf(out_fct_type out, char* buffer, const size_t maxlen, const char* format, va_list va)
{
  unsigned int flags, width, precision, n;
  size_t idx = 0U;

  if (!buffer) {
    // use null output function
    out = _out_null;
  }

  while (*format)
  {
    // format specifier?  %[flags][width][.precision][length]
    if (*format != '%') {
      // no
      out(*format, buffer, idx++, maxlen);
      format++;
      continue;
    }
    else {
      // yes, evaluate it
      format++;
    }

    // evaluate flags
    flags = 0U;
    do {
      switch (*format) {
        case '0': flags |= FLAGS_ZEROPAD; format++; n = 1U; break;
        case '-': flags |= FLAGS_LEFT;    format++; n = 1U; break;
        case '+': flags |= FLAGS_PLUS;    format++; n = 1U; break;
        case ' ': flags |= FLAGS_SPACE;   format++; n = 1U; break;
        case '#': flags |= FLAGS_HASH;    format++; n = 1U; break;
        default :                                   n = 0U; break;
      }
    } while (n);

    // evaluate width field
    width = 0U;
    if (_is_digit(*format)) {
      width = _atoi(&format);
    }
    else if (*format == '*') {
      const int w = va_arg(va, int);
      if (w < 0) {
        flags |= FLAGS_LEFT;    // reverse padding
        width = (unsigned int)-w;
      }
      else {
        width = (unsigned int)w;
      }
      format++;
    }

    // evaluate precision field
    precision = 0U;
    if (*format == '.') {
      flags |= FLAGS_PRECISION;
      format++;
      if (_is_digit(*format)) {
        precision = _atoi(&format);
      }
      else if (*format == '*') {
        const int prec = (int)va_arg(va, int);
        precision = prec > 0 ? (unsigned int)prec : 0U;
        format++;
      }
    }

    // evaluate length field
    switch (*format) {
      case 'l' :
        flags |= FLAGS_LONG;
        format++;
        if (*format == 'l') {
          flags |= FLAGS_LONG_LONG;
          format++;
        }
        break;
      case 'h' :
        flags |= FLAGS_SHORT;
        format++;
        if (*format == 'h') {
          flags |= FLAGS_CHAR;
          format++;
        }
        break;
#if defined(PRINTF_SUPPORT_PTRDIFF_T)
      case 't' :
        flags |= (sizeof(ptrdiff_t) == sizeof(long) ? FLAGS_LONG : FLAGS_LONG_LONG);
        format++;
        break;
#endif
      case 'j' :
        flags |= (sizeof(intmax_t) == sizeof(long) ? FLAGS_LONG : FLAGS_LONG_LONG);
        format++;
        break;
      case 'z' :
        flags |= (sizeof(size_t) == sizeof(long) ? FLAGS_LONG : FLAGS_LONG_LONG);
        format++;
        break;
      default :
        break;
    }

    // evaluate specifier
    switch (*format) {
      case 'd' :
      case 'i' :
      case 'u' :
      case 'x' :
      case 'X' :
      case 'o' :
      case 'b' : {
        // set the base
        unsigned int base;
        if (*format == 'x' || *format == 'X') {
          base = 16U;
        }
        else if (*format == 'o') {
          base =  8U;
        }
        else if (*format == 'b') {
          base =  2U;
        }
        else {
          base = 10U;
          flags &= ~FLAGS_HASH;   // no hash for dec format
        }
        // uppercase
        if (*format == 'X') {
          flags |= FLAGS_UPPERCASE;
        }

        // no plus or space flag for u, x, X, o, b
        if ((*format != 'i') && (*format != 'd')) {
          flags &= ~(FLAGS_PLUS | FLAGS_SPACE);
        }

        // ignore '0' flag when precision is given
        if (flags & FLAGS_PRECISION) {
          flags &= ~FLAGS_ZEROPAD;
        }

        // convert the integer
        if ((*format == 'i') || (*format == 'd')) {
          // signed
          if (flags & FLAGS_LONG_LONG) {
#if defined(PRINTF_SUPPORT_LONG_LONG)
            const long long value = va_arg(va, long long);
            idx = _ntoa_long_long(out, buffer, idx, maxlen, (unsigned long long)(value > 0 ? value : 0 - value), value < 0, base, precision, width, flags);
#endif
          }
          else if (flags & FLAGS_LONG) {
            const long value = va_arg(va, long);
            idx = _ntoa_long(out, buffer, idx, maxlen, (unsigned long)(value > 0 ? value : 0 - value), value < 0, base, precision, width, flags);
          }
          else {
            const int value = (flags & FLAGS_CHAR) ? (char)va_arg(va, int) : (flags & FLAGS_SHORT) ? (short int)va_arg(va, int) : va_arg(va, int);
            idx = _ntoa_long(out, buffer, idx, maxlen, (unsigned int)(value > 0 ? value : 0 - value), value < 0, base, precision, width, flags);
          }
        }
        else {
          // unsigned
          if (flags & FLAGS_LONG_LONG) {
#if defined(PRINTF_SUPPORT_LONG_LONG)
            idx = _ntoa_long_long(out, buffer, idx, maxlen, va_arg(va, unsigned long long), false, base, precision, width, flags);
#endif
          }
          else if (flags & FLAGS_LONG) {
            idx = _ntoa_long(out, buffer, idx, maxlen, va_arg(va, unsigned long), false, base, precision, width, flags);
          }
          else {
            const unsigned int value = (flags & FLAGS_CHAR) ? (unsigned char)va_arg(va, unsigned int) : (flags & FLAGS_SHORT) ? (unsigned short int)va_arg(va, unsigned int) : va_arg(va, unsigned int);
            idx = _ntoa_long(out, buffer, idx, maxlen, value, false, base, precision, width, flags);
          }
        }
        format++;
        break;
      }
#if defined(PRINTF_SUPPORT_FLOAT)
      case 'f' :
      case 'F' :
        if (*format == 'F') flags |= FLAGS_UPPERCASE;
        idx = _ftoa(out, buffer, idx, maxlen, va_arg(va, double), precision, width, flags);
        format++;
        break;
#if defined(PRINTF_SUPPORT_EXPONENTIAL)
      case 'e':
      case 'E':
      case 'g':
      case 'G':
        if ((*format == 'g')||(*format == 'G')) flags |= FLAGS_ADAPT_EXP;
        if ((*format == 'E')||(*format == 'G')) flags |= FLAGS_UPPERCASE;
        idx = _etoa(out, buffer, idx, maxlen, va_arg(va, double), precision, width, flags);
        format++;
        break;
#endif  // PRINTF_SUPPORT_EXPONENTIAL
#endif  // PRINTF_SUPPORT_FLOAT
      case 'c' : {
        unsigned int l = 1U;
        // pre padding
        if (!(flags & FLAGS_LEFT)) {
          while (l++ < width) {
            out(' ', buffer, idx++, maxlen);
          }
        }
        // char output
        out((char)va_arg(va, int), buffer, idx++, maxlen);
        // post padding
        if (flags & FLAGS_LEFT) {
          while (l++ < width) {
            out(' ', buffer, idx++, maxlen);
          }
        }
        format++;
        break;
      }

      case 's' : {
        const char* p = va_arg(va, char*);
        unsigned int l = _strnlen_s(p, precision ? precision : (size_t)-1);
        // pre padding
        if (flags & FLAGS_PRECISION) {
          l = (l < precision ? l : precision);
        }
        if (!(flags & FLAGS_LEFT)) {
          while (l++ < width) {
            out(' ', buffer, idx++, maxlen);
          }
        }
        // string output
        while ((*p != 0) && (!(flags & FLAGS_PRECISION) || precision--)) {
          out(*(p++), buffer, idx++, maxlen);
        }
        // post padding
        if (flags & FLAGS_LEFT) {
          while (l++ < width) {
            out(' ', buffer, idx++, maxlen);
          }
        }
        format++;
        break;
      }

      case 'p' : {
        width = sizeof(void*) * 2U;
        flags |= FLAGS_ZEROPAD | FLAGS_UPPERCASE;
#if defined(PRINTF_SUPPORT_LONG_LONG)
        const bool is_ll = sizeof(uintptr_t) == sizeof(long long);
        if (is_ll) {
          idx = _ntoa_long_long(out, buffer, idx, maxlen, (uintptr_t)va_arg(va, void*), false, 16U, precision, width, flags);
        }
        else {
#endif
          idx = _ntoa_long(out, buffer, idx, maxlen, (unsigned long)((uintptr_t)va_arg(va, void*)), false, 16U, precision, width, flags);
#if defined(PRINTF_SUPPORT_LONG_LONG)
        }
#endif
        format++;
        break;
      }

      case '%' :
        out('%', buffer, idx++, maxlen);
        format++;
        break;

      default :
        out(*format, buffer, idx++, maxlen);
        format++;
        break;
    }
  }

  // termination
  out((char)0, buffer, idx < maxlen ? idx : maxlen - 1U, maxlen);

  // return written chars without terminating \0
  return (int)idx;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rcx, 0x30(%rsp)
movq %rdx, %r13
movq %rsi, %rbx
movq %rdi, %r15
testq %rdi, %rdi
leaq 0x93f(%rip), %rax       # 0x2c225
leaq 0x929(%rip), %r14       # 0x2c216
cmoveq %rax, %r14
xorl %r11d, %r11d
movq %rsi, 0x18(%rsp)
movq %rdi, 0x8(%rsp)
movq %r14, 0x10(%rsp)
movzbl (%r13), %eax
cmpl $0x25, %eax
je 0x2b92d
testl %eax, %eax
je 0x2c1ec
leaq 0x1(%r11), %rbp
movsbl %al, %edi
movq %r15, %rsi
movq %r11, %rdx
movq %rbx, %rcx
callq *%r14
jmp 0x2c1e1
addq $0x2, %r13
xorl %r14d, %r14d
movq 0x30(%rsp), %rdi
movb -0x1(%r13), %cl
movzbl %cl, %eax
cmpl $0x2a, %eax
jle 0x2b960
cmpl $0x2b, %eax
je 0x2b978
movl $0x1, %edx
cmpl $0x30, %eax
je 0x2b97d
cmpl $0x2d, %eax
jne 0x2b985
movl $0x2, %edx
jmp 0x2b97d
cmpl $0x20, %eax
je 0x2b971
cmpl $0x23, %eax
jne 0x2b985
movl $0x10, %edx
jmp 0x2b97d
movl $0x8, %edx
jmp 0x2b97d
movl $0x4, %edx
orl %edx, %r14d
incq %r13
jmp 0x2b939
leal -0x30(%rcx), %edx
leaq -0x1(%r13), %rax
xorl %r12d, %r12d
cmpb $0x9, %dl
ja 0x2b9b3
leal (%r12,%r12,4), %edx
movzbl %cl, %ecx
leal (%rcx,%rdx,2), %r12d
addl $-0x30, %r12d
movb 0x1(%rax), %cl
incq %rax
leal -0x30(%rcx), %edx
cmpb $0xa, %dl
jb 0x2b994
jmp 0x2b9ce
cmpb $0x2a, %cl
jne 0x2b9ce
movl (%rdi), %ecx
cmpq $0x28, %rcx
ja 0x2b9d3
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x2b9df
movq %rax, %r13
jmp 0x2b9f8
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdi)
movl (%rax), %eax
movl %eax, %r12d
negl %r12d
cmovsl %eax, %r12d
shrl $0x1e, %eax
andl $-0x2, %eax
orl %eax, %r14d
movb (%r13), %cl
xorl %r15d, %r15d
cmpb $0x2e, %cl
jne 0x2ba7c
orl $0x400, %r14d           # imm = 0x400
leaq 0x1(%r13), %rax
movb 0x1(%r13), %cl
leal -0x30(%rcx), %edx
cmpb $0x9, %dl
ja 0x2ba39
xorl %r15d, %r15d
leal (%r15,%r15,4), %edx
movzbl %cl, %ecx
leal (%rcx,%rdx,2), %r15d
addl $-0x30, %r15d
movb 0x1(%rax), %cl
incq %rax
leal -0x30(%rcx), %edx
cmpb $0xa, %dl
jb 0x2ba1a
jmp 0x2ba54
cmpb $0x2a, %cl
jne 0x2ba54
movl (%rdi), %ecx
cmpq $0x28, %rcx
ja 0x2ba59
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x2ba65
movq %rax, %r13
jmp 0x2ba7c
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdi)
movl (%rax), %r15d
testl %r15d, %r15d
movl $0x0, %eax
cmovlel %eax, %r15d
movb 0x2(%r13), %cl
addq $0x2, %r13
movsbl %cl, %eax
addl $-0x68, %eax
rorl %eax
cmpl $0x9, %eax
ja 0x2baae
leaq 0x176e0(%rip), %rdx     # 0x43170
movslq (%rdx,%rax,4), %rax
addq %rdx, %rax
jmpq *%rax
movl $0x1, %eax
movl $0x100, %ecx            # imm = 0x100
orl %ecx, %r14d
movb (%r13,%rax), %cl
addq %rax, %r13
movzbl %cl, %edx
cmpl $0x46, %edx
jle 0x2bae5
movl $0x10, %eax
leal -0x62(%rdx), %esi
cmpl $0x16, %esi
ja 0x2bb67
leaq 0x176ca(%rip), %r8      # 0x43198
movslq (%r8,%rsi,4), %rsi
addq %r8, %rsi
jmpq *%rsi
andl $-0x11, %r14d
movl $0xa, %eax
jmp 0x2bb75
cmpl $0x25, %edx
je 0x2bc01
cmpl $0x45, %edx
je 0x2bba1
cmpl $0x46, %edx
jne 0x2bc24
movl %r14d, %eax
orl $0x20, %eax
cmpb $0x46, %cl
cmovnel %r14d, %eax
movl 0x4(%rdi), %edx
cmpq $0xa0, %rdx
ja 0x2bc43
movq %rdx, %rcx
addq 0x10(%rdi), %rcx
addl $0x10, %edx
movl %edx, 0x4(%rdi)
jmp 0x2bc4f
movb 0x1(%r13), %cl
cmpb $0x6c, %cl
jne 0x2bc0c
movl $0x2, %eax
movl $0x300, %ecx            # imm = 0x300
jmp 0x2baa3
movb 0x1(%r13), %cl
cmpb $0x68, %cl
jne 0x2bc15
movl $0x2, %eax
movl $0xc0, %ecx
jmp 0x2baa3
cmpl $0x47, %edx
je 0x2bb9a
cmpl $0x58, %edx
jne 0x2bc24
movl %r14d, %esi
orl $0x20, %r14d
cmpb $0x58, %cl
cmovnel %esi, %r14d
cmpb $0x64, %cl
je 0x2bd3f
cmpl $0x69, %edx
je 0x2bd3f
jmp 0x2bd3b
orl $0x800, %r14d           # imm = 0x800
orl $0x2, %edx
cmpl $0x47, %edx
jne 0x2bbad
orl $0x20, %r14d
movl 0x4(%rdi), %ecx
cmpq $0xa0, %rcx
ja 0x2bbc8
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x10, %ecx
movl %ecx, 0x4(%rdi)
jmp 0x2bbd4
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdi)
movsd (%rax), %xmm0
subq $0x8, %rsp
movq 0x18(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq %r11, %rdx
movq %rbx, %rcx
movl %r15d, %r8d
movq %rsi, %r15
movl %r12d, %r9d
pushq %r14
movq %rdi, %r14
callq 0x2c81b
jmp 0x2bc79
leaq 0x1(%r11), %rbp
movl $0x25, %edi
jmp 0x2bc2b
orl $0x100, %r14d           # imm = 0x100
jmp 0x2bc1c
orl $0x80, %r14d
incq %r13
jmp 0x2baae
leaq 0x1(%r11), %rbp
movsbl %cl, %edi
movq 0x8(%rsp), %r15
movq %r15, %rsi
movq %r11, %rdx
movq %rbx, %rcx
movq 0x10(%rsp), %r14
jmp 0x2b925
movq 0x8(%rdi), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rdi)
movq 0x10(%rsp), %r14
movsd (%rcx), %xmm0
subq $0x8, %rsp
movq %r14, %rdi
movq 0x10(%rsp), %rsi
movq %r11, %rdx
movq %rbx, %rcx
movl %r15d, %r8d
movq %rsi, %r15
movl %r12d, %r9d
pushq %rax
callq 0x2c3c0
addq $0x10, %rsp
jmp 0x2c1de
movl (%rdi), %ecx
cmpq $0x28, %rcx
ja 0x2bef1
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x2befd
movl $0x1, %ebx
testb $0x2, %r14b
jne 0x2bcf0
movl $0x2, %ebx
cmpl $0x2, %r12d
jb 0x2bcf0
leal 0x1(%r12), %eax
movl %eax, 0x28(%rsp)
leal -0x1(%r12), %ebp
movq 0x8(%rsp), %r15
leaq 0x1(%r11), %rbx
movl $0x20, %edi
movq %r15, %rsi
movq %r11, %rdx
movq 0x18(%rsp), %rcx
callq *0x10(%rsp)
movq %rbx, %r11
decl %ebp
jne 0x2bcc8
movq 0x30(%rsp), %rdi
movl 0x28(%rsp), %ebx
movl (%rdi), %ecx
cmpq $0x28, %rcx
movq 0x8(%rsp), %r15
ja 0x2bf2f
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x2bf3b
movl (%rdi), %ecx
cmpq $0x28, %rcx
ja 0x2bf93
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x2bf9f
movl $0x8, %eax
jmp 0x2bd3b
movl $0x2, %eax
andl $-0xd, %r14d
movl %r14d, %r10d
andl $-0x2, %r10d
btl $0xa, %r14d
cmovael %r14d, %r10d
cmpb $0x69, %cl
je 0x2bd59
cmpl $0x64, %edx
jne 0x2bdb5
btl $0x9, %r10d
movq 0x10(%rsp), %r14
jb 0x2bd9f
btl $0x8, %r10d
jb 0x2bdff
testb $0x40, %r10b
jne 0x2be5b
movl (%rdi), %ecx
testb %r10b, %r10b
js 0x2c040
cmpl $0x28, %ecx
ja 0x2c135
movq %rcx, %rdx
addq 0x10(%rdi), %rdx
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x2c141
movl (%rdi), %edx
cmpq $0x28, %rdx
ja 0x2be15
movq %rdx, %rcx
addq 0x10(%rdi), %rcx
addl $0x8, %edx
movl %edx, (%rdi)
jmp 0x2be21
btl $0x9, %r10d
movq 0x10(%rsp), %r14
jb 0x2be45
btl $0x8, %r10d
jb 0x2bea8
testb $0x40, %r10b
jne 0x2c06f
movl (%rdi), %ecx
testb %r10b, %r10b
js 0x2c174
cmpl $0x28, %ecx
ja 0x2c198
movq %rcx, %rdx
addq 0x10(%rdi), %rdx
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x2c1a4
movl (%rdi), %edx
cmpq $0x28, %rdx
ja 0x2be78
movq %rdx, %rcx
addq 0x10(%rdi), %rcx
addl $0x8, %edx
movl %edx, (%rdi)
jmp 0x2be84
movq 0x8(%rdi), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rdi)
movq (%rcx), %r9
movq %r9, %r8
negq %r8
cmovsq %r9, %r8
shrq $0x3f, %r9
movq %r14, %rdi
movq 0x8(%rsp), %rsi
movq %r11, %rdx
movq %rbx, %rcx
jmp 0x2bee5
movl (%rdi), %edx
cmpq $0x28, %rdx
ja 0x2bec5
movq %rdx, %rcx
addq 0x10(%rdi), %rcx
addl $0x8, %edx
movl %edx, (%rdi)
jmp 0x2bed1
movl (%rdi), %edx
cmpq $0x28, %rdx
ja 0x2c05a
movq %rdx, %rcx
addq 0x10(%rdi), %rcx
addl $0x8, %edx
movl %edx, (%rdi)
jmp 0x2c066
movq 0x8(%rdi), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rdi)
movq (%rcx), %r9
movq %r9, %r8
negq %r8
cmovsq %r9, %r8
shrq $0x3f, %r9
movq %r14, %rdi
movq 0x8(%rsp), %rsi
movq %r11, %rdx
movq %rbx, %rcx
jmp 0x2c1cb
movl (%rdi), %edx
cmpq $0x28, %rdx
ja 0x2c08c
movq %rdx, %rcx
addq 0x10(%rdi), %rcx
addl $0x8, %edx
movl %edx, (%rdi)
jmp 0x2c098
movq 0x8(%rdi), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rdi)
movq (%rcx), %r8
movq %r14, %rdi
movq 0x8(%rsp), %rsi
movq %r11, %rdx
movq %rbx, %rcx
xorl %r9d, %r9d
pushq %r10
pushq %r12
pushq %r15
movq %rsi, %r15
pushq %rax
jmp 0x2bf25
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdi)
orl $0x21, %r14d
movq (%rax), %r8
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq %r11, %rdx
movq %rbx, %rcx
xorl %r9d, %r9d
pushq %r14
movq %rdi, %r14
pushq $0x10
pushq %r15
movq %rsi, %r15
pushq $0x10
callq 0x2c226
jmp 0x2c1da
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdi)
movsbl (%rax), %edi
leaq 0x1(%r11), %rbp
movq %r15, %rsi
movq %r11, %rdx
movq 0x18(%rsp), %rcx
callq *0x10(%rsp)
testb $0x2, %r14b
je 0x2bf84
subl %ebx, %r12d
jbe 0x2bf84
movq 0x18(%rsp), %rbx
movq 0x10(%rsp), %r14
movq %rbp, %rdx
incq %rbp
movl $0x20, %edi
movq %r15, %rsi
movq %rbx, %rcx
callq *%r14
decl %r12d
jne 0x2bf66
jmp 0x2c1e1
movq 0x18(%rsp), %rbx
movq 0x10(%rsp), %r14
jmp 0x2c1e1
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdi)
movq (%rax), %rbx
cmpl $0x1, %r15d
movl $0x0, %ecx
sbbq %rcx, %rcx
movl %r15d, %eax
orq %rax, %rcx
movb (%rbx), %al
movq %rbx, %rdx
je 0x2bfdf
movq %rbx, %rdx
testb %al, %al
je 0x2bfdf
decq %rcx
movq %rbx, %rdx
subq $0x1, %rcx
setb %sil
cmpb $0x0, 0x1(%rdx)
leaq 0x1(%rdx), %rdx
je 0x2bfdf
testb %sil, %sil
je 0x2bfc8
subl %ebx, %edx
cmpl %r15d, %edx
movl %r15d, %ecx
cmovbl %edx, %ecx
btl $0xa, %r14d
cmovael %edx, %ecx
testb $0x2, %r14b
jne 0x2c0a2
movl %r12d, %ebp
subl %ecx, %ebp
jbe 0x2c0a0
leal 0x1(%r12), %eax
movl %eax, 0x24(%rsp)
leaq 0x1(%r11), %rax
movq %rax, 0x28(%rsp)
movl $0x20, %edi
movq 0x8(%rsp), %rsi
movq %r11, %rdx
movq 0x18(%rsp), %rcx
callq *0x10(%rsp)
movq 0x28(%rsp), %r11
decl %ebp
jne 0x2c010
movb (%rbx), %al
movl 0x24(%rsp), %ecx
jmp 0x2c0a2
cmpl $0x28, %ecx
ja 0x2c146
movq 0x10(%rdi), %rdx
addq %rcx, %rdx
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x2c152
movq 0x8(%rdi), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rdi)
movsbl (%rcx), %r9d
jmp 0x2c156
movl (%rdi), %edx
cmpq $0x28, %rdx
ja 0x2c187
movq %rdx, %rcx
addq 0x10(%rdi), %rcx
addl $0x8, %edx
movl %edx, (%rdi)
jmp 0x2c193
movq 0x8(%rdi), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rdi)
movq (%rcx), %r8
jmp 0x2c1ba
incl %ecx
movl %ecx, 0x24(%rsp)
testb %al, %al
je 0x2c0e0
incq %rbx
btl $0xa, %r14d
jae 0x2c0ba
subl $0x1, %r15d
jb 0x2c0e0
leaq 0x1(%r11), %rbp
movsbl %al, %edi
movq 0x8(%rsp), %rsi
movq %r11, %rdx
movq 0x18(%rsp), %rcx
callq *0x10(%rsp)
movb (%rbx), %al
incq %rbx
movq %rbp, %r11
testb %al, %al
jne 0x2c0ad
jmp 0x2c0e3
movq %r11, %rbp
testb $0x2, %r14b
je 0x2c121
subl 0x24(%rsp), %r12d
movq 0x18(%rsp), %rbx
movq 0x10(%rsp), %r14
movq 0x8(%rsp), %r15
jbe 0x2c1e1
movq %rbp, %rdx
incq %rbp
movl $0x20, %edi
movq %r15, %rsi
movq %rbx, %rcx
callq *%r14
decl %r12d
jne 0x2c103
jmp 0x2c1e1
movq 0x18(%rsp), %rbx
movq 0x10(%rsp), %r14
movq 0x8(%rsp), %r15
jmp 0x2c1e1
movq 0x8(%rdi), %rdx
leaq 0x8(%rdx), %rcx
movq %rcx, 0x8(%rdi)
movl (%rdx), %r9d
jmp 0x2c156
movq 0x8(%rdi), %rdx
leaq 0x8(%rdx), %rcx
movq %rcx, 0x8(%rdi)
movswl (%rdx), %r9d
movl %r9d, %r8d
negl %r8d
cmovsl %r9d, %r8d
shrl $0x1f, %r9d
movq %r14, %rdi
movq 0x8(%rsp), %rsi
movq %r11, %rdx
movq %rbx, %rcx
jmp 0x2c1cb
cmpl $0x28, %ecx
ja 0x2c1a8
movq 0x10(%rdi), %rdx
addq %rcx, %rdx
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x2c1b4
movq 0x8(%rdi), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rdi)
movzbl (%rcx), %ecx
jmp 0x2c1b7
movq 0x8(%rdi), %rdx
leaq 0x8(%rdx), %rcx
movq %rcx, 0x8(%rdi)
movl (%rdx), %ecx
jmp 0x2c1b7
movq 0x8(%rdi), %rdx
leaq 0x8(%rdx), %rcx
movq %rcx, 0x8(%rdi)
movzwl (%rdx), %ecx
movl %ecx, %r8d
movq %r14, %rdi
movq 0x8(%rsp), %rsi
movq %r11, %rdx
movq %rbx, %rcx
xorl %r9d, %r9d
pushq %r10
pushq %r12
pushq %r15
movq %rsi, %r15
pushq %rax
callq 0x2c2f3
addq $0x20, %rsp
movq %rax, %rbp
incq %r13
movq %rbp, %r11
jmp 0x2b903
leaq -0x1(%rbx), %rdx
cmpq %rbx, %r11
cmovbq %r11, %rdx
xorl %edi, %edi
movq %r15, %rsi
movq %rbx, %rcx
movq %r11, %rbx
callq *%r14
movl %ebx, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq