// File: /workspace/github_c_makefile_star2_O2/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 $0x48, %rsp
movq %rcx, 0x20(%rsp)
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rbp
leaq 0x8(%rsp), %rdx
testq %rdi, %rdi
leaq 0x970(%rip), %rax       # 0x29ab3
leaq 0x95a(%rip), %rcx       # 0x29aa4
cmoveq %rax, %rcx
movq %rcx, 0x10(%rsp)
movq %r12, (%rdx)
pushq $0x1
popq %rbx
pushq $0x8
popq %r14
pushq $0x10
popq %rdi
pushq $0x4
popq %r8
pushq $0x2
popq %r9
xorl %r11d, %r11d
movq %rbp, 0x38(%rsp)
movq %rsi, 0x30(%rsp)
movzbl (%r12), %eax
cmpl $0x25, %eax
je 0x291b7
testl %eax, %eax
je 0x29a79
leaq 0x1(%r11), %r14
movsbl %al, %edi
movq %rbp, %rsi
movq %r11, %rdx
movq %r13, %rcx
callq *0x10(%rsp)
pushq $0x2
popq %r9
pushq $0x4
popq %r8
pushq $0x10
popq %rdi
incq %r12
movq %r12, 0x8(%rsp)
movq %r14, %r11
pushq $0x8
popq %r14
jmp 0x29175
incq %r12
movq %r12, 0x8(%rsp)
xorl %r15d, %r15d
movq %r12, %rax
movzbl (%rax), %ecx
cmpl $0x20, %ecx
je 0x291f1
cmpl $0x23, %ecx
je 0x291e8
cmpl $0x2b, %ecx
je 0x291ec
movl %ebx, %edx
cmpl $0x30, %ecx
je 0x291f4
cmpl $0x2d, %ecx
jne 0x291fc
movl %r9d, %edx
jmp 0x291f4
movl %edi, %edx
jmp 0x291f4
movl %r8d, %edx
jmp 0x291f4
movl %r14d, %edx
orl %edx, %r15d
incq %rax
jmp 0x291c5
movq %rax, 0x8(%rsp)
movb (%rax), %cl
leal -0x30(%rcx), %edx
cmpb $0x9, %dl
ja 0x29232
leaq 0x8(%rsp), %rdi
movq %r11, %r12
callq 0x29ab4
movq %r12, %r11
pushq $0x2
popq %r9
pushq $0x4
popq %r8
pushq $0x10
popq %rdi
movq %rax, 0x18(%rsp)
movq 0x8(%rsp), %rax
jmp 0x29286
movq $0x0, 0x18(%rsp)
cmpb $0x2a, %cl
jne 0x29288
movq 0x20(%rsp), %rsi
movl (%rsi), %edx
cmpq $0x28, %rdx
ja 0x2925b
movq %rdx, %rcx
addq 0x10(%rsi), %rcx
addl $0x8, %edx
movl %edx, (%rsi)
jmp 0x29267
movq 0x8(%rsi), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rsi)
movl (%rcx), %ecx
movl %ecx, %edx
negl %edx
cmovsl %ecx, %edx
movq %rdx, 0x18(%rsp)
shrl $0x1e, %ecx
andl $-0x2, %ecx
orl %ecx, %r15d
incq %rax
movq %rax, 0x8(%rsp)
movb (%rax), %cl
xorl %r10d, %r10d
cmpb $0x2e, %cl
jne 0x2931e
orl $0x400, %r15d           # imm = 0x400
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rsp)
movb 0x1(%rax), %dl
leal -0x30(%rdx), %esi
cmpb $0x9, %sil
ja 0x292d5
leaq 0x8(%rsp), %rdi
movq %r11, %r12
callq 0x29ab4
movq %r12, %r11
pushq $0x2
popq %r9
pushq $0x4
popq %r8
pushq $0x10
popq %rdi
movl %eax, %r10d
movq 0x8(%rsp), %rax
jmp 0x2931e
cmpb $0x2a, %dl
jne 0x292f5
movq 0x20(%rsp), %rsi
movl (%rsi), %edx
cmpq $0x28, %rdx
ja 0x292fa
movq %rdx, %rcx
addq 0x10(%rsi), %rcx
addl $0x8, %edx
movl %edx, (%rsi)
jmp 0x29306
movq %rcx, %rax
jmp 0x2931e
movq 0x8(%rsi), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rsi)
movl (%rcx), %r10d
testl %r10d, %r10d
movl $0x0, %ecx
cmovlel %ecx, %r10d
addq $0x2, %rax
movq %rax, 0x8(%rsp)
movsbl (%rax), %ecx
movl %ecx, %edx
addl $-0x68, %edx
rorl %edx
cmpl $0x9, %edx
ja 0x29349
leaq 0x15d2c(%rip), %rsi     # 0x3f060
movslq (%rsi,%rdx,4), %rdx
addq %rsi, %rdx
jmpq *%rdx
orl $0x100, %r15d           # imm = 0x100
incq %rax
jmp 0x2938c
movq %rax, %r12
jmp 0x29396
leaq 0x1(%rax), %r12
movq %r12, 0x8(%rsp)
movb 0x1(%rax), %cl
cmpb $0x68, %cl
jne 0x2948d
orl $0xc0, %r15d
jmp 0x29388
leaq 0x1(%rax), %r12
movq %r12, 0x8(%rsp)
movb 0x1(%rax), %cl
cmpb $0x6c, %cl
jne 0x29499
orl $0x300, %r15d           # imm = 0x300
addq $0x2, %rax
movq %rax, 0x8(%rsp)
movq %rax, %r12
movb (%rax), %cl
movzbl %cl, %edx
leal -0x62(%rdx), %eax
cmpl $0x16, %eax
ja 0x293bc
leaq 0x15ce0(%rip), %rsi     # 0x3f088
movslq (%rsi,%rax,4), %rax
addq %rsi, %rax
jmpq *%rax
andl $-0x11, %r15d
pushq $0xa
jmp 0x2950b
cmpl $0x25, %edx
je 0x296c1
cmpl $0x45, %edx
je 0x293f7
cmpl $0x46, %edx
je 0x29459
cmpl $0x47, %edx
je 0x293f0
pushq $0x10
popq %rax
cmpl $0x58, %edx
je 0x2950c
leaq 0x1(%r11), %r14
movsbl %cl, %edi
jmp 0x2918e
orl $0x800, %r15d           # imm = 0x800
orl $0x2, %edx
cmpl $0x47, %edx
movq 0x20(%rsp), %rdx
jne 0x29408
orl $0x20, %r15d
movl 0x4(%rdx), %ecx
cmpq $0xa0, %rcx
ja 0x29423
movq %rcx, %rax
addq 0x10(%rdx), %rax
addl $0x10, %ecx
movl %ecx, 0x4(%rdx)
jmp 0x2942f
movq 0x8(%rdx), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdx)
movsd (%rax), %xmm0
subq $0x8, %rsp
movq 0x18(%rsp), %rdi
movq %rbp, %rsi
movq %r11, %rdx
movq %r13, %rcx
movl %r10d, %r8d
movq 0x20(%rsp), %r9
pushq %r15
callq 0x29f99
jmp 0x296ba
movl %r15d, %eax
orl $0x20, %eax
cmpb $0x46, %cl
cmovnel %r15d, %eax
movq 0x20(%rsp), %rsi
movl 0x4(%rsi), %edx
cmpq $0xa0, %rdx
ja 0x2968a
movq %rdx, %rcx
addq 0x10(%rsi), %rcx
addl $0x10, %edx
movl %edx, 0x4(%rsi)
jmp 0x29696
orl $0x80, %r15d
jmp 0x29396
orl $0x100, %r15d           # imm = 0x100
jmp 0x29396
movq 0x20(%rsp), %rdx
movl (%rdx), %ecx
cmpq $0x28, %rcx
ja 0x29767
movq %rcx, %rax
addq 0x10(%rdx), %rax
addl $0x8, %ecx
movl %ecx, (%rdx)
jmp 0x29773
movq %r10, 0x28(%rsp)
pushq $0x2
jmp 0x2953e
movq %r12, 0x40(%rsp)
movl %ebx, %r12d
testb $0x2, %r15b
jne 0x298b2
cmpl 0x18(%rsp), %r12d
jae 0x298af
leaq 0x1(%r11), %r14
pushq $0x20
popq %rdi
movq %rbp, %rsi
movq %r11, %rdx
movq %r13, %rcx
callq *0x10(%rsp)
incl %r12d
movq %r14, %r11
jmp 0x294e2
pushq $0x10
popq %rax
movl %r15d, %esi
orl $0x20, %r15d
cmpb $0x58, %cl
cmovnel %esi, %r15d
cmpb $0x64, %cl
movq %r10, 0x28(%rsp)
je 0x29530
cmpl $0x69, %edx
movq 0x20(%rsp), %rsi
je 0x29548
jmp 0x29544
movq 0x20(%rsp), %rsi
jmp 0x29548
movq %r10, 0x28(%rsp)
pushq $0x8
popq %rax
movq 0x20(%rsp), %rsi
andl $-0xd, %r15d
movl %r15d, %r10d
andl $-0x2, %r10d
btl $0xa, %r15d
cmovael %r15d, %r10d
cmpb $0x69, %cl
je 0x29562
cmpl $0x64, %edx
jne 0x295b9
btl $0x9, %r10d
jb 0x295a3
btl $0x8, %r10d
jb 0x295fe
testb $0x40, %r10b
jne 0x296cd
movl (%rsi), %ecx
testb %r10b, %r10b
js 0x29965
cmpl $0x28, %ecx
ja 0x299b4
movq %rcx, %rdx
addq 0x10(%rsi), %rdx
addl $0x8, %ecx
movl %ecx, (%rsi)
jmp 0x299c0
movl (%rsi), %edx
cmpq $0x28, %rdx
ja 0x2961b
movq %rdx, %rcx
addq 0x10(%rsi), %rcx
addl $0x8, %edx
movl %edx, (%rsi)
jmp 0x29627
btl $0x9, %r10d
jb 0x2964b
btl $0x8, %r10d
jb 0x2971a
testb $0x40, %r10b
jne 0x2998a
movl (%rsi), %ecx
testb %r10b, %r10b
js 0x299f3
cmpl $0x28, %ecx
ja 0x29a17
movq %rcx, %rdx
addq 0x10(%rsi), %rdx
addl $0x8, %ecx
movl %ecx, (%rsi)
jmp 0x29a23
movl (%rsi), %edx
cmpq $0x28, %rdx
ja 0x296ea
movq %rdx, %rcx
addq 0x10(%rsi), %rcx
addl $0x8, %edx
movl %edx, (%rsi)
jmp 0x296f6
movq 0x8(%rsi), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rsi)
movq (%rcx), %r9
movq %r9, %r8
negq %r8
cmovsq %r9, %r8
shrq $0x3f, %r9
movq 0x10(%rsp), %rdi
movq %rbp, %rsi
movq %r11, %rdx
movq %r13, %rcx
jmp 0x29757
movl (%rsi), %edx
cmpq $0x28, %rdx
ja 0x29737
movq %rdx, %rcx
addq 0x10(%rsi), %rcx
addl $0x8, %edx
movl %edx, (%rsi)
jmp 0x29743
movq 0x20(%rsp), %rdx
movl (%rdx), %ecx
cmpq $0x28, %rcx
ja 0x2992f
movq %rcx, %rax
addq 0x10(%rdx), %rax
addl $0x8, %ecx
movl %ecx, (%rdx)
jmp 0x2993b
movq 0x8(%rsi), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rsi)
movsd (%rcx), %xmm0
subq $0x8, %rsp
movq 0x18(%rsp), %rdi
movq %rbp, %rsi
movq %r11, %rdx
movq %r13, %rcx
movl %r10d, %r8d
movq 0x20(%rsp), %r9
pushq %rax
callq 0x29c75
popq %rcx
popq %rdx
jmp 0x29a5e
leaq 0x1(%r11), %r14
pushq $0x25
popq %rdi
jmp 0x2918e
movl (%rsi), %edx
cmpq $0x28, %rdx
ja 0x29978
movq %rdx, %rcx
addq 0x10(%rsi), %rcx
addl $0x8, %edx
movl %edx, (%rsi)
jmp 0x29984
movq 0x8(%rsi), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rsi)
movq (%rcx), %r9
movq %r9, %r8
negq %r8
cmovsq %r9, %r8
shrq $0x3f, %r9
movq 0x10(%rsp), %rdi
movq %rbp, %rsi
movq %r11, %rdx
movq %r13, %rcx
jmp 0x29a4a
movl (%rsi), %edx
cmpq $0x28, %rdx
ja 0x299a0
movq %rdx, %rcx
addq 0x10(%rsi), %rcx
addl $0x8, %edx
movl %edx, (%rsi)
jmp 0x299ac
movq 0x8(%rsi), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rsi)
movq (%rcx), %r8
movq 0x10(%rsp), %rdi
movq %rbp, %rsi
movq %r11, %rdx
movq %r13, %rcx
xorl %r9d, %r9d
pushq %r10
pushq 0x20(%rsp)
pushq 0x38(%rsp)
pushq %rax
jmp 0x2995b
movq 0x8(%rdx), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdx)
movq (%rax), %r14
movl %r10d, %eax
cmpl $0x1, %r10d
movl $0x0, %ecx
sbbq %rcx, %rcx
orq %rax, %rcx
xorl %eax, %eax
cmpb $0x0, (%r14,%rax)
je 0x2979b
cmpq %rax, %rcx
je 0x2979b
incq %rax
jmp 0x2978a
movq %r12, 0x40(%rsp)
cmpl %r10d, %eax
movl %r10d, %r12d
cmovbl %eax, %r12d
btl $0xa, %r15d
cmovael %eax, %r12d
testb $0x2, %r15b
jne 0x29808
movq %r10, 0x28(%rsp)
movq 0x18(%rsp), %rax
cmpl %eax, %r12d
movl %eax, %ebp
cmoval %r12d, %ebp
cmpl 0x18(%rsp), %r12d
jae 0x297fa
incl %r12d
leaq 0x1(%r11), %r13
pushq $0x20
popq %rdi
movq 0x38(%rsp), %rsi
movq %r11, %rdx
movq 0x30(%rsp), %rcx
callq *0x10(%rsp)
pushq $0x4
popq %r8
pushq $0x10
popq %rdi
movq %r13, %r11
jmp 0x297cc
incl %ebp
movl %ebp, %r12d
pushq $0x2
popq %r9
movq 0x28(%rsp), %r10
movb (%r14), %al
testb %al, %al
je 0x2984d
btl $0xa, %r15d
jae 0x2981c
subl $0x1, %r10d
jb 0x2984d
incq %r14
leaq 0x1(%r11), %r13
movsbl %al, %edi
movq 0x38(%rsp), %rsi
movq %r11, %rdx
movq 0x30(%rsp), %rcx
movq %r10, %rbp
callq *0x10(%rsp)
movq %rbp, %r10
pushq $0x2
popq %r9
pushq $0x4
popq %r8
pushq $0x10
popq %rdi
movq %r13, %r11
jmp 0x29808
testb $0x2, %r15b
jne 0x29873
movq 0x30(%rsp), %r13
movq 0x38(%rsp), %rbp
pushq $0x8
popq %r14
movq 0x40(%rsp), %r12
incq %r12
movq %r12, 0x8(%rsp)
jmp 0x29175
movq 0x30(%rsp), %r13
movq 0x38(%rsp), %rbp
pushq $0x8
popq %r14
cmpl 0x18(%rsp), %r12d
jae 0x29861
incl %r12d
leaq 0x1(%r11), %r14
pushq $0x20
popq %rdi
movq %rbp, %rsi
movq %r11, %rdx
movq %r13, %rcx
callq *0x10(%rsp)
pushq $0x2
popq %r9
pushq $0x4
popq %r8
pushq $0x10
popq %rdi
movq %r14, %r11
jmp 0x2987d
incl %r12d
movq 0x20(%rsp), %rdx
movl (%rdx), %ecx
cmpq $0x28, %rcx
ja 0x298cd
movq %rcx, %rax
addq 0x10(%rdx), %rax
addl $0x8, %ecx
movl %ecx, (%rdx)
jmp 0x298d9
movq 0x8(%rdx), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdx)
movsbl (%rax), %edi
leaq 0x1(%r11), %r14
movq %rbp, %rsi
movq %r11, %rdx
movq %r13, %rcx
callq *0x10(%rsp)
testb $0x2, %r15b
jne 0x2990c
movq 0x40(%rsp), %r12
incq %r12
movq %r12, 0x8(%rsp)
movq %r14, %r11
pushq $0x8
popq %r14
jmp 0x29a69
cmpl 0x18(%rsp), %r12d
jae 0x298f3
incl %r12d
leaq 0x1(%r14), %r15
pushq $0x20
popq %rdi
movq %rbp, %rsi
movq %r14, %rdx
movq %r13, %rcx
callq *0x10(%rsp)
movq %r15, %r14
jmp 0x2990c
movq 0x8(%rdx), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdx)
orl $0x21, %r15d
movq (%rax), %r8
movq 0x10(%rsp), %rdi
movq %rbp, %rsi
movq %r11, %rdx
movq %r13, %rcx
xorl %r9d, %r9d
pushq %r15
pushq $0x10
pushq %r10
pushq $0x10
callq 0x29adb
jmp 0x29a5a
cmpl $0x28, %ecx
ja 0x299c5
movq 0x10(%rsi), %rdx
addq %rcx, %rdx
addl $0x8, %ecx
movl %ecx, (%rsi)
jmp 0x299d1
movq 0x8(%rsi), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rsi)
movsbl (%rcx), %r9d
jmp 0x299d5
movl (%rsi), %edx
cmpq $0x28, %rdx
ja 0x29a06
movq %rdx, %rcx
addq 0x10(%rsi), %rcx
addl $0x8, %edx
movl %edx, (%rsi)
jmp 0x29a12
movq 0x8(%rsi), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rsi)
movq (%rcx), %r8
jmp 0x29a39
movq 0x8(%rsi), %rdx
leaq 0x8(%rdx), %rcx
movq %rcx, 0x8(%rsi)
movl (%rdx), %r9d
jmp 0x299d5
movq 0x8(%rsi), %rdx
leaq 0x8(%rdx), %rcx
movq %rcx, 0x8(%rsi)
movswl (%rdx), %r9d
movl %r9d, %r8d
negl %r8d
cmovsl %r9d, %r8d
shrl $0x1f, %r9d
movq 0x10(%rsp), %rdi
movq %rbp, %rsi
movq %r11, %rdx
movq %r13, %rcx
jmp 0x29a4a
cmpl $0x28, %ecx
ja 0x29a27
movq 0x10(%rsi), %rdx
addq %rcx, %rdx
addl $0x8, %ecx
movl %ecx, (%rsi)
jmp 0x29a33
movq 0x8(%rsi), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rsi)
movzbl (%rcx), %ecx
jmp 0x29a36
movq 0x8(%rsi), %rdx
leaq 0x8(%rdx), %rcx
movq %rcx, 0x8(%rsi)
movl (%rdx), %ecx
jmp 0x29a36
movq 0x8(%rsi), %rdx
leaq 0x8(%rdx), %rcx
movq %rcx, 0x8(%rsi)
movzwl (%rdx), %ecx
movl %ecx, %r8d
movq 0x10(%rsp), %rdi
movq %rbp, %rsi
movq %r11, %rdx
movq %r13, %rcx
xorl %r9d, %r9d
pushq %r10
pushq 0x20(%rsp)
pushq 0x38(%rsp)
pushq %rax
callq 0x29ba8
addq $0x20, %rsp
movq %rax, %r11
incq %r12
movq %r12, 0x8(%rsp)
pushq $0x10
popq %rdi
pushq $0x4
popq %r8
pushq $0x2
popq %r9
jmp 0x29175
leaq -0x1(%r13), %rdx
cmpq %r13, %r11
cmovbq %r11, %rdx
xorl %edi, %edi
movq %rbp, %rsi
movq %r13, %rcx
movq %r11, %rbx
callq *0x10(%rsp)
movl %ebx, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq