// File: /workspace/github_c_makefile_star2_O1/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 0x953(%rip), %rax       # 0x2bae9
leaq 0x93d(%rip), %r14       # 0x2bada
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 0x2b1dd
testl %eax, %eax
je 0x2bab0
leaq 0x1(%r11), %rbp
movsbl %al, %edi
movq %r15, %rsi
movq %r11, %rdx
movq %rbx, %rcx
callq *%r14
jmp 0x2baa5
incq %r13
xorl %r14d, %r14d
movq 0x30(%rsp), %rdi
movzbl (%r13), %ecx
movb $0x1, %al
cmpl $0x2a, %ecx
jle 0x2b209
cmpl $0x2b, %ecx
je 0x2b219
cmpl $0x2d, %ecx
je 0x2b21f
cmpl $0x30, %ecx
jne 0x2b22e
orl $0x1, %r14d
jmp 0x2b229
cmpl $0x20, %ecx
je 0x2b225
cmpl $0x23, %ecx
jne 0x2b22e
orl $0x10, %r14d
jmp 0x2b229
orl $0x4, %r14d
jmp 0x2b229
orl $0x2, %r14d
jmp 0x2b229
orl $0x8, %r14d
incq %r13
xorl %eax, %eax
testb %al, %al
je 0x2b1e8
movb (%r13), %al
leal -0x30(%rax), %ecx
xorl %r12d, %r12d
cmpb $0x9, %cl
ja 0x2b263
leal (%r12,%r12,4), %eax
movsbl (%r13), %ecx
movb 0x1(%r13), %dl
incq %r13
leal (%rcx,%rax,2), %r12d
addl $-0x30, %r12d
addb $-0x30, %dl
cmpb $0xa, %dl
jb 0x2b241
jmp 0x2b2a1
cmpb $0x2a, %al
jne 0x2b2a1
movl (%rdi), %ecx
cmpq $0x28, %rcx
ja 0x2b27d
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x2b289
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
incq %r13
xorl %r15d, %r15d
cmpb $0x2e, (%r13)
jne 0x2b326
orl $0x400, %r14d           # imm = 0x400
leaq 0x1(%r13), %rax
movb 0x1(%r13), %cl
leal -0x30(%rcx), %edx
cmpb $0x9, %dl
ja 0x2b2e7
xorl %r15d, %r15d
leal (%r15,%r15,4), %ecx
movsbl (%rax), %edx
movb 0x1(%rax), %sil
incq %rax
leal (%rdx,%rcx,2), %r15d
addl $-0x30, %r15d
addb $-0x30, %sil
cmpb $0xa, %sil
jb 0x2b2c5
jmp 0x2b302
cmpb $0x2a, %cl
jne 0x2b302
movl (%rdi), %ecx
cmpq $0x28, %rcx
ja 0x2b307
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x2b313
movq %rax, %r13
jmp 0x2b326
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdi)
movl (%rax), %r15d
testl %r15d, %r15d
movl $0x0, %eax
cmovlel %eax, %r15d
addq $0x2, %r13
movsbl (%r13), %eax
addl $-0x68, %eax
rorl %eax
cmpl $0x9, %eax
ja 0x2b34f
leaq 0x17c94(%rip), %rcx     # 0x42fd0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
orl $0x100, %r14d           # imm = 0x100
incq %r13
movzbl (%r13), %ecx
cmpl $0x46, %ecx
jle 0x2b39f
leal -0x62(%rcx), %eax
cmpl $0x16, %eax
ja 0x2b434
leaq 0x17c8c(%rip), %rdx     # 0x42ff8
movslq (%rdx,%rax,4), %rax
addq %rdx, %rax
jmpq *%rax
movl $0x10, %eax
cmpl $0x6e, %ecx
jg 0x2b418
cmpl $0x58, %ecx
je 0x2b531
cmpl $0x62, %ecx
jne 0x2b528
movl $0x2, %eax
jmp 0x2b531
cmpl $0x25, %ecx
je 0x2b4bc
cmpl $0x45, %ecx
je 0x2b44b
cmpl $0x46, %ecx
jne 0x2b442
movl %r14d, %eax
orl $0x20, %eax
cmpl $0x46, %ecx
cmovnel %r14d, %eax
movl 0x4(%rdi), %edx
cmpq $0xa0, %rdx
ja 0x2b4e9
movq %rdx, %rcx
addq 0x10(%rdi), %rcx
addl $0x10, %edx
movl %edx, 0x4(%rdi)
jmp 0x2b4f5
cmpb $0x68, 0x1(%r13)
jne 0x2b4dd
orl $0xc0, %r14d
jmp 0x2b40f
cmpb $0x6c, 0x1(%r13)
jne 0x2b345
orl $0x300, %r14d           # imm = 0x300
addq $0x2, %r13
jmp 0x2b34f
cmpl $0x78, %ecx
je 0x2b531
cmpl $0x6f, %ecx
jne 0x2b528
movl $0x8, %eax
jmp 0x2b531
cmpl $0x47, %ecx
je 0x2b44b
cmpl $0x58, %ecx
je 0x2b375
leaq 0x1(%r11), %rbp
movsbl %cl, %edi
jmp 0x2b4c5
movl %ecx, %eax
orl $0x20, %eax
cmpl $0x67, %eax
jne 0x2b45c
orl $0x800, %r14d           # imm = 0x800
orl $0x2, %ecx
cmpl $0x47, %ecx
jne 0x2b468
orl $0x20, %r14d
movl 0x4(%rdi), %ecx
cmpq $0xa0, %rcx
ja 0x2b483
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x10, %ecx
movl %ecx, 0x4(%rdi)
jmp 0x2b48f
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 0x2c0b8
jmp 0x2b51f
leaq 0x1(%r11), %rbp
movl $0x25, %edi
movq 0x8(%rsp), %r15
movq %r15, %rsi
movq %r11, %rdx
movq %rbx, %rcx
movq 0x10(%rsp), %r14
jmp 0x2b1d5
orl $0x80, %r14d
jmp 0x2b34c
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 0x2bc84
addq $0x10, %rsp
jmp 0x2baa2
andl $-0x11, %r14d
movl $0xa, %eax
movl %r14d, %edx
orl $0x20, %edx
cmpl $0x58, %ecx
cmovnel %r14d, %edx
cmpl $0x64, %ecx
je 0x2b552
cmpl $0x69, %ecx
movq 0x10(%rsp), %r14
je 0x2b557
andl $-0xd, %edx
jmp 0x2b557
movq 0x10(%rsp), %r14
movl %edx, %r10d
andl $-0x2, %r10d
btl $0xa, %edx
cmovael %edx, %r10d
cmpl $0x69, %ecx
je 0x2b570
cmpl $0x64, %ecx
jne 0x2b5c7
btl $0x9, %r10d
jb 0x2b5b1
btl $0x8, %r10d
jb 0x2b60c
testb $0x40, %r10b
jne 0x2b723
movl (%rdi), %ecx
testb %r10b, %r10b
js 0x2b902
cmpl $0x28, %ecx
ja 0x2b9f9
movq %rcx, %rdx
addq 0x10(%rdi), %rdx
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x2ba05
movl (%rdi), %edx
cmpq $0x28, %rdx
ja 0x2b629
movq %rdx, %rcx
addq 0x10(%rdi), %rcx
addl $0x8, %edx
movl %edx, (%rdi)
jmp 0x2b635
btl $0x9, %r10d
jb 0x2b659
btl $0x8, %r10d
jb 0x2b770
testb $0x40, %r10b
jne 0x2b931
movl (%rdi), %ecx
testb %r10b, %r10b
js 0x2ba38
cmpl $0x28, %ecx
ja 0x2ba5c
movq %rcx, %rdx
addq 0x10(%rdi), %rdx
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x2ba68
movl (%rdi), %edx
cmpq $0x28, %rdx
ja 0x2b740
movq %rdx, %rcx
addq 0x10(%rdi), %rcx
addl $0x8, %edx
movl %edx, (%rdi)
jmp 0x2b74c
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 0x2b7ad
movl (%rdi), %edx
cmpq $0x28, %rdx
ja 0x2b78d
movq %rdx, %rcx
addq 0x10(%rdi), %rcx
addl $0x8, %edx
movl %edx, (%rdi)
jmp 0x2b799
movl (%rdi), %ecx
cmpq $0x28, %rcx
ja 0x2b7b9
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x2b7c5
movl (%rdi), %ecx
cmpq $0x28, %rcx
ja 0x2b7f7
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x2b803
movl $0x1, %ebx
testb $0x2, %r14b
jne 0x2b701
movl $0x2, %ebx
cmpl $0x2, %r12d
jb 0x2b701
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 0x2b6d9
movq 0x30(%rsp), %rdi
movl 0x28(%rsp), %ebx
movl (%rdi), %ecx
cmpq $0x28, %rcx
movq 0x8(%rsp), %r15
ja 0x2b89e
movq %rcx, %rax
addq 0x10(%rdi), %rax
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x2b8aa
movl (%rdi), %edx
cmpq $0x28, %rdx
ja 0x2b91c
movq %rdx, %rcx
addq 0x10(%rdi), %rcx
addl $0x8, %edx
movl %edx, (%rdi)
jmp 0x2b928
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 0x2ba8f
movl (%rdi), %edx
cmpq $0x28, %rdx
ja 0x2b94e
movq %rdx, %rcx
addq 0x10(%rdi), %rcx
addl $0x8, %edx
movl %edx, (%rdi)
jmp 0x2b95a
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 0x2b7ed
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 0x2baea
jmp 0x2ba9e
movq 0x8(%rdi), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdi)
movq (%rax), %rbx
movl %r15d, %ecx
cmpl $0x1, %r15d
movl $0x0, %eax
sbbq %rax, %rax
orq %rcx, %rax
movq %rbx, %rcx
je 0x2b840
cmpb $0x0, (%rbx)
movq %rbx, %rcx
je 0x2b840
decq %rax
movq %rbx, %rcx
subq $0x1, %rax
setb %dl
cmpb $0x0, 0x1(%rcx)
leaq 0x1(%rcx), %rcx
je 0x2b840
testb %dl, %dl
je 0x2b82b
subl %ebx, %ecx
cmpl %r15d, %ecx
movl %r15d, %eax
cmovbl %ecx, %eax
btl $0xa, %r14d
cmovael %ecx, %eax
testb $0x2, %r14b
jne 0x2b964
movl %r12d, %ebp
subl %eax, %ebp
jbe 0x2b962
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 0x2b871
jmp 0x2b968
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 0x2b8f3
subl %ebx, %r12d
jbe 0x2b8f3
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 0x2b8d5
jmp 0x2baa5
movq 0x18(%rsp), %rbx
movq 0x10(%rsp), %r14
jmp 0x2baa5
cmpl $0x28, %ecx
ja 0x2ba0a
movq 0x10(%rdi), %rdx
addq %rcx, %rdx
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x2ba16
movq 0x8(%rdi), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rdi)
movsbl (%rcx), %r9d
jmp 0x2ba1a
movl (%rdi), %edx
cmpq $0x28, %rdx
ja 0x2ba4b
movq %rdx, %rcx
addq 0x10(%rdi), %rcx
addl $0x8, %edx
movl %edx, (%rdi)
jmp 0x2ba57
movq 0x8(%rdi), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rdi)
movq (%rcx), %r8
jmp 0x2ba7e
incl %eax
movl %eax, 0x24(%rsp)
movb (%rbx), %al
testb %al, %al
je 0x2b9a4
incq %rbx
btl $0xa, %r14d
jae 0x2b97e
subl $0x1, %r15d
jb 0x2b9a4
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 0x2b971
jmp 0x2b9a7
movq %r11, %rbp
testb $0x2, %r14b
je 0x2b9e5
subl 0x24(%rsp), %r12d
movq 0x18(%rsp), %rbx
movq 0x10(%rsp), %r14
movq 0x8(%rsp), %r15
jbe 0x2baa5
movq %rbp, %rdx
incq %rbp
movl $0x20, %edi
movq %r15, %rsi
movq %rbx, %rcx
callq *%r14
decl %r12d
jne 0x2b9c7
jmp 0x2baa5
movq 0x18(%rsp), %rbx
movq 0x10(%rsp), %r14
movq 0x8(%rsp), %r15
jmp 0x2baa5
movq 0x8(%rdi), %rdx
leaq 0x8(%rdx), %rcx
movq %rcx, 0x8(%rdi)
movl (%rdx), %r9d
jmp 0x2ba1a
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 0x2ba8f
cmpl $0x28, %ecx
ja 0x2ba6c
movq 0x10(%rdi), %rdx
addq %rcx, %rdx
addl $0x8, %ecx
movl %ecx, (%rdi)
jmp 0x2ba78
movq 0x8(%rdi), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rdi)
movzbl (%rcx), %ecx
jmp 0x2ba7b
movq 0x8(%rdi), %rdx
leaq 0x8(%rdx), %rcx
movq %rcx, 0x8(%rdi)
movl (%rdx), %ecx
jmp 0x2ba7b
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 0x2bbb7
addq $0x20, %rsp
movq %rax, %rbp
incq %r13
movq %rbp, %r11
jmp 0x2b1b3
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