// File: /workspace/github_c_makefile_star2_O0/neovim[P]libvterm/src/parser.c
// Function: vterm_input_write
size_t vterm_input_write(VTerm *vt, const char *bytes, size_t len)
{
  size_t pos = 0;
  const char *string_start;

  switch(vt->parser.state) {
  case NORMAL:
  case CSI_LEADER:
  case CSI_ARGS:
  case CSI_INTERMED:
  case OSC_COMMAND:
  case DCS_COMMAND:
    string_start = NULL;
    break;
  case OSC:
  case DCS:
  case APC:
  case PM:
  case SOS:
    string_start = bytes;
    break;
  }

#define ENTER_STATE(st)        do { vt->parser.state = st; string_start = NULL; } while(0)
#define ENTER_NORMAL_STATE()   ENTER_STATE(NORMAL)

#define IS_STRING_STATE()      (vt->parser.state >= OSC_COMMAND)

  for( ; pos < len; pos++) {
    unsigned char c = bytes[pos];
    bool c1_allowed = !vt->mode.utf8;

    if(c == 0x00 || c == 0x7f) { // NUL, DEL
      if(IS_STRING_STATE()) {
        string_fragment(vt, string_start, bytes + pos - string_start, false);
        string_start = bytes + pos + 1;
      }
      if(vt->parser.emit_nul)
        do_control(vt, c);
      continue;
    }
    if(c == 0x18 || c == 0x1a) { // CAN, SUB
      vt->parser.in_esc = false;
      ENTER_NORMAL_STATE();
      if(vt->parser.emit_nul)
        do_control(vt, c);
      continue;
    }
    else if(c == 0x1b) { // ESC
      vt->parser.intermedlen = 0;
      if(!IS_STRING_STATE())
        vt->parser.state = NORMAL;
      vt->parser.in_esc = true;
      continue;
    }
    else if(c == 0x07 &&  // BEL, can stand for ST in OSC or DCS state
            IS_STRING_STATE()) {
      // fallthrough
    }
    else if(c < 0x20) { // other C0
      if(vt->parser.state == SOS)
        continue; // All other C0s permitted in SOS

      if(IS_STRING_STATE())
        string_fragment(vt, string_start, bytes + pos - string_start, false);
      do_control(vt, c);
      if(IS_STRING_STATE())
        string_start = bytes + pos + 1;
      continue;
    }
    // else fallthrough

    size_t string_len = bytes + pos - string_start;

    if(vt->parser.in_esc) {
      // Hoist an ESC letter into a C1 if we're not in a string mode
      // Always accept ESC \ == ST even in string mode
      if(!vt->parser.intermedlen &&
          c >= 0x40 && c < 0x60 &&
          ((!IS_STRING_STATE() || c == 0x5c))) {
        c += 0x40;
        c1_allowed = true;
        if(string_len)
          string_len -= 1;
        vt->parser.in_esc = false;
      }
      else {
        string_start = NULL;
        vt->parser.state = NORMAL;
      }
    }

    switch(vt->parser.state) {
    case CSI_LEADER:
      /* Extract leader bytes 0x3c to 0x3f */
      if(c >= 0x3c && c <= 0x3f) {
        if(vt->parser.v.csi.leaderlen < CSI_LEADER_MAX-1)
          vt->parser.v.csi.leader[vt->parser.v.csi.leaderlen++] = c;
        break;
      }

      /* else fallthrough */
      vt->parser.v.csi.leader[vt->parser.v.csi.leaderlen] = 0;

      vt->parser.v.csi.argi = 0;
      vt->parser.v.csi.args[0] = CSI_ARG_MISSING;
      vt->parser.state = CSI_ARGS;

      /* fallthrough */
    case CSI_ARGS:
      /* Numerical value of argument */
      if(c >= '0' && c <= '9') {
        if(vt->parser.v.csi.args[vt->parser.v.csi.argi] == CSI_ARG_MISSING)
          vt->parser.v.csi.args[vt->parser.v.csi.argi] = 0;
        vt->parser.v.csi.args[vt->parser.v.csi.argi] *= 10;
        vt->parser.v.csi.args[vt->parser.v.csi.argi] += c - '0';
        break;
      }
      if(c == ':') {
        vt->parser.v.csi.args[vt->parser.v.csi.argi] |= CSI_ARG_FLAG_MORE;
        c = ';';
      }
      if(c == ';') {
        vt->parser.v.csi.argi++;
        vt->parser.v.csi.args[vt->parser.v.csi.argi] = CSI_ARG_MISSING;
        break;
      }

      /* else fallthrough */
      vt->parser.v.csi.argi++;
      vt->parser.intermedlen = 0;
      vt->parser.state = CSI_INTERMED;
    case CSI_INTERMED:
      if(is_intermed(c)) {
        if(vt->parser.intermedlen < INTERMED_MAX-1)
          vt->parser.intermed[vt->parser.intermedlen++] = c;
        break;
      }
      else if(c == 0x1b) {
        /* ESC in CSI cancels */
      }
      else if(c >= 0x40 && c <= 0x7e) {
        vt->parser.intermed[vt->parser.intermedlen] = 0;
        do_csi(vt, c);
      }
      /* else was invalid CSI */

      ENTER_NORMAL_STATE();
      break;

    case OSC_COMMAND:
      /* Numerical value of command */
      if(c >= '0' && c <= '9') {
        if(vt->parser.v.osc.command == -1)
          vt->parser.v.osc.command = 0;
        else
          vt->parser.v.osc.command *= 10;
        vt->parser.v.osc.command += c - '0';
        break;
      }
      if(c == ';') {
        vt->parser.state = OSC;
        string_start = bytes + pos + 1;
        break;
      }

      /* else fallthrough */
      string_start = bytes + pos;
      string_len   = 0;
      vt->parser.state = OSC;
      goto string_state;

    case DCS_COMMAND:
      if(vt->parser.v.dcs.commandlen < CSI_LEADER_MAX)
        vt->parser.v.dcs.command[vt->parser.v.dcs.commandlen++] = c;

      if(c >= 0x40 && c<= 0x7e) {
        string_start = bytes + pos + 1;
        vt->parser.state = DCS;
      }
      break;

string_state:
    case OSC:
    case DCS:
    case APC:
    case PM:
    case SOS:
      if(c == 0x07 || (c1_allowed && c == 0x9c)) {
        string_fragment(vt, string_start, string_len, true);
        ENTER_NORMAL_STATE();
      }
      break;

    case NORMAL:
      if(vt->parser.in_esc) {
        if(is_intermed(c)) {
          if(vt->parser.intermedlen < INTERMED_MAX-1)
            vt->parser.intermed[vt->parser.intermedlen++] = c;
        }
        else if(c >= 0x30 && c < 0x7f) {
          do_escape(vt, c);
          vt->parser.in_esc = 0;
          ENTER_NORMAL_STATE();
        }
        else {
          DEBUG_LOG("TODO: Unhandled byte %02x in Escape\n", c);
        }
        break;
      }
      if(c1_allowed && c >= 0x80 && c < 0xa0) {
        switch(c) {
        case 0x90: // DCS
          vt->parser.string_initial = true;
          vt->parser.v.dcs.commandlen = 0;
          ENTER_STATE(DCS_COMMAND);
          break;
        case 0x98: // SOS
          vt->parser.string_initial = true;
          ENTER_STATE(SOS);
          string_start = bytes + pos + 1;
          string_len = 0;
          break;
        case 0x9b: // CSI
          vt->parser.v.csi.leaderlen = 0;
          ENTER_STATE(CSI_LEADER);
          break;
        case 0x9d: // OSC
          vt->parser.v.osc.command = -1;
          vt->parser.string_initial = true;
          string_start = bytes + pos + 1;
          ENTER_STATE(OSC_COMMAND);
          break;
        case 0x9e: // PM
          vt->parser.string_initial = true;
          ENTER_STATE(PM);
          string_start = bytes + pos + 1;
          string_len = 0;
          break;
        case 0x9f: // APC
          vt->parser.string_initial = true;
          ENTER_STATE(APC);
          string_start = bytes + pos + 1;
          string_len = 0;
          break;
        default:
          do_control(vt, c);
          break;
        }
      }
      else {
        size_t eaten = 0;
        if(vt->parser.callbacks && vt->parser.callbacks->text)
          eaten = (*vt->parser.callbacks->text)(bytes + pos, len - pos, vt->parser.cbdata);

        if(!eaten) {
          DEBUG_LOG("libvterm: Text callback did not consume any input\n");
          /* force it to make progress */
          eaten = 1;
        }

        pos += (eaten - 1); // we'll ++ it again in a moment
      }
      break;
    }
  }

  if(string_start) {
    size_t string_len = bytes + pos - string_start;
    if(vt->parser.in_esc)
      string_len -= 1;
    string_fragment(vt, string_start, string_len, false);
  }

  return len;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq $0x0, -0x20(%rbp)
movq -0x8(%rbp), %rax
movl 0x20(%rax), %eax
movl %eax, -0x4c(%rbp)
subl $0x6, %eax
jb 0x370a
jmp 0x36fd
movl -0x4c(%rbp), %eax
addl $-0x6, %eax
subl $0x5, %eax
jb 0x3714
jmp 0x371c
movq $0x0, -0x28(%rbp)
jmp 0x371c
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0x371e
movq -0x20(%rbp), %rax
cmpq -0x18(%rbp), %rax
jae 0x3f89
movq -0x10(%rbp), %rax
movq -0x20(%rbp), %rcx
movb (%rax,%rcx), %al
movb %al, -0x29(%rbp)
movq -0x8(%rbp), %rax
movb 0x18(%rax), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
xorb $-0x1, %al
andb $0x1, %al
movb %al, -0x2a(%rbp)
movzbl -0x29(%rbp), %eax
cmpl $0x0, %eax
je 0x3765
movzbl -0x29(%rbp), %eax
cmpl $0x7f, %eax
jne 0x37bc
movq -0x8(%rbp), %rax
cmpl $0x5, 0x20(%rax)
jb 0x379d
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x10(%rbp), %rdx
addq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rax
subq %rax, %rdx
xorl %ecx, %ecx
callq 0x3fe0
movq -0x10(%rbp), %rax
addq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rax
testb $0x1, 0xe9(%rax)
je 0x37b7
movq -0x8(%rbp), %rdi
movzbl -0x29(%rbp), %esi
callq 0x4210
jmp 0x3f78
movzbl -0x29(%rbp), %eax
cmpl $0x18, %eax
je 0x37ce
movzbl -0x29(%rbp), %eax
cmpl $0x1a, %eax
jne 0x3810
movq -0x8(%rbp), %rax
movb 0x24(%rax), %cl
andb $-0x2, %cl
orb $0x0, %cl
movb %cl, 0x24(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x20(%rax)
movq $0x0, -0x28(%rbp)
movq -0x8(%rbp), %rax
testb $0x1, 0xe9(%rax)
je 0x380b
movq -0x8(%rbp), %rdi
movzbl -0x29(%rbp), %esi
callq 0x4210
jmp 0x3f78
movzbl -0x29(%rbp), %eax
cmpl $0x1b, %eax
jne 0x384e
movq -0x8(%rbp), %rax
movl $0x0, 0x28(%rax)
movq -0x8(%rbp), %rax
cmpl $0x5, 0x20(%rax)
jae 0x3839
movq -0x8(%rbp), %rax
movl $0x0, 0x20(%rax)
movq -0x8(%rbp), %rax
movb 0x24(%rax), %cl
andb $-0x2, %cl
orb $0x1, %cl
movb %cl, 0x24(%rax)
jmp 0x3f78
movzbl -0x29(%rbp), %eax
cmpl $0x7, %eax
jne 0x3863
movq -0x8(%rbp), %rax
cmpl $0x5, 0x20(%rax)
jb 0x3863
jmp 0x38d1
movzbl -0x29(%rbp), %eax
cmpl $0x20, %eax
jge 0x38cf
movq -0x8(%rbp), %rax
cmpl $0xa, 0x20(%rax)
jne 0x387b
jmp 0x3f78
movq -0x8(%rbp), %rax
cmpl $0x5, 0x20(%rax)
jb 0x38a3
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x10(%rbp), %rdx
addq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rax
subq %rax, %rdx
xorl %ecx, %ecx
callq 0x3fe0
movq -0x8(%rbp), %rdi
movzbl -0x29(%rbp), %esi
callq 0x4210
movq -0x8(%rbp), %rax
cmpl $0x5, 0x20(%rax)
jb 0x38ca
movq -0x10(%rbp), %rax
addq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0x3f78
jmp 0x38d1
jmp 0x38d3
jmp 0x38d5
movq -0x10(%rbp), %rax
addq -0x20(%rbp), %rax
movq -0x28(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x38(%rbp)
movq -0x8(%rbp), %rax
movb 0x24(%rax), %al
andb $0x1, %al
testb $0x1, %al
je 0x396c
movq -0x8(%rbp), %rax
cmpl $0x0, 0x28(%rax)
jne 0x3957
movzbl -0x29(%rbp), %eax
cmpl $0x40, %eax
jl 0x3957
movzbl -0x29(%rbp), %eax
cmpl $0x60, %eax
jge 0x3957
movq -0x8(%rbp), %rax
cmpl $0x5, 0x20(%rax)
jb 0x3924
movzbl -0x29(%rbp), %eax
cmpl $0x5c, %eax
jne 0x3957
movzbl -0x29(%rbp), %eax
addl $0x40, %eax
movb %al, -0x29(%rbp)
movb $0x1, -0x2a(%rbp)
cmpq $0x0, -0x38(%rbp)
je 0x3945
movq -0x38(%rbp), %rax
subq $0x1, %rax
movq %rax, -0x38(%rbp)
movq -0x8(%rbp), %rax
movb 0x24(%rax), %cl
andb $-0x2, %cl
orb $0x0, %cl
movb %cl, 0x24(%rax)
jmp 0x396a
movq $0x0, -0x28(%rbp)
movq -0x8(%rbp), %rax
movl $0x0, 0x20(%rax)
jmp 0x396c
movq -0x8(%rbp), %rax
movl 0x20(%rax), %eax
movq %rax, -0x58(%rbp)
subq $0xa, %rax
ja 0x3f76
movq -0x58(%rbp), %rax
leaq 0xf874(%rip), %rcx      # 0x13200
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movzbl -0x29(%rbp), %eax
cmpl $0x3c, %eax
jl 0x39d3
movzbl -0x29(%rbp), %eax
cmpl $0x3f, %eax
jg 0x39d3
movq -0x8(%rbp), %rax
cmpl $0xf, 0x40(%rax)
jge 0x39ce
movb -0x29(%rbp), %dl
movq -0x8(%rbp), %rax
movq -0x8(%rbp), %rsi
movl 0x40(%rsi), %ecx
movl %ecx, %edi
addl $0x1, %edi
movl %edi, 0x40(%rsi)
movslq %ecx, %rcx
movb %dl, 0x44(%rax,%rcx)
jmp 0x3f76
movq -0x8(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq 0x40(%rcx), %rcx
movb $0x0, 0x44(%rax,%rcx)
movq -0x8(%rbp), %rax
movl $0x0, 0x54(%rax)
movq -0x8(%rbp), %rax
movq $0x7fffffff, 0x58(%rax) # imm = 0x7FFFFFFF
movq -0x8(%rbp), %rax
movl $0x2, 0x20(%rax)
movzbl -0x29(%rbp), %eax
cmpl $0x30, %eax
jl 0x3a80
movzbl -0x29(%rbp), %eax
cmpl $0x39, %eax
jg 0x3a80
movq -0x8(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq 0x54(%rcx), %rcx
cmpq $0x7fffffff, 0x58(%rax,%rcx,8) # imm = 0x7FFFFFFF
jne 0x3a44
movq -0x8(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq 0x54(%rcx), %rcx
movq $0x0, 0x58(%rax,%rcx,8)
movq -0x8(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq 0x54(%rcx), %rcx
imulq $0xa, 0x58(%rax,%rcx,8), %rdx
movq %rdx, 0x58(%rax,%rcx,8)
movzbl -0x29(%rbp), %eax
subl $0x30, %eax
movslq %eax, %rdx
movq -0x8(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq 0x54(%rcx), %rcx
addq 0x58(%rax,%rcx,8), %rdx
movq %rdx, 0x58(%rax,%rcx,8)
jmp 0x3f76
movzbl -0x29(%rbp), %eax
cmpl $0x3a, %eax
jne 0x3aad
movq -0x8(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq 0x54(%rcx), %rcx
movabsq $0x80000000, %rdx       # imm = 0x80000000
orq 0x58(%rax,%rcx,8), %rdx
movq %rdx, 0x58(%rax,%rcx,8)
movb $0x3b, -0x29(%rbp)
movzbl -0x29(%rbp), %eax
cmpl $0x3b, %eax
jne 0x3add
movq -0x8(%rbp), %rax
movl 0x54(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x54(%rax)
movq -0x8(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq 0x54(%rcx), %rcx
movq $0x7fffffff, 0x58(%rax,%rcx,8) # imm = 0x7FFFFFFF
jmp 0x3f76
movq -0x8(%rbp), %rax
movl 0x54(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x54(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x28(%rax)
movq -0x8(%rbp), %rax
movl $0x3, 0x20(%rax)
movzbl -0x29(%rbp), %edi
callq 0x4280
testb $0x1, %al
jne 0x3b0f
jmp 0x3b3b
movq -0x8(%rbp), %rax
cmpl $0xf, 0x28(%rax)
jge 0x3b36
movb -0x29(%rbp), %dl
movq -0x8(%rbp), %rax
movq -0x8(%rbp), %rsi
movl 0x28(%rsi), %ecx
movl %ecx, %edi
addl $0x1, %edi
movl %edi, 0x28(%rsi)
movslq %ecx, %rcx
movb %dl, 0x2c(%rax,%rcx)
jmp 0x3f76
movzbl -0x29(%rbp), %eax
cmpl $0x1b, %eax
jne 0x3b46
jmp 0x3b78
movzbl -0x29(%rbp), %eax
cmpl $0x40, %eax
jl 0x3b76
movzbl -0x29(%rbp), %eax
cmpl $0x7e, %eax
jg 0x3b76
movq -0x8(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq 0x28(%rcx), %rcx
movb $0x0, 0x2c(%rax,%rcx)
movq -0x8(%rbp), %rdi
movsbl -0x29(%rbp), %esi
callq 0x42b0
jmp 0x3b78
jmp 0x3b7a
jmp 0x3b7c
movq -0x8(%rbp), %rax
movl $0x0, 0x20(%rax)
movq $0x0, -0x28(%rbp)
jmp 0x3f76
movzbl -0x29(%rbp), %eax
cmpl $0x30, %eax
jl 0x3bde
movzbl -0x29(%rbp), %eax
cmpl $0x39, %eax
jg 0x3bde
movq -0x8(%rbp), %rax
cmpl $-0x1, 0x40(%rax)
jne 0x3bbd
movq -0x8(%rbp), %rax
movl $0x0, 0x40(%rax)
jmp 0x3bc8
movq -0x8(%rbp), %rax
imull $0xa, 0x40(%rax), %ecx
movl %ecx, 0x40(%rax)
movzbl -0x29(%rbp), %ecx
subl $0x30, %ecx
movq -0x8(%rbp), %rax
addl 0x40(%rax), %ecx
movl %ecx, 0x40(%rax)
jmp 0x3f76
movzbl -0x29(%rbp), %eax
cmpl $0x3b, %eax
jne 0x3c07
movq -0x8(%rbp), %rax
movl $0x6, 0x20(%rax)
movq -0x10(%rbp), %rax
addq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0x3f76
movq -0x10(%rbp), %rax
addq -0x20(%rbp), %rax
movq %rax, -0x28(%rbp)
movq $0x0, -0x38(%rbp)
movq -0x8(%rbp), %rax
movl $0x6, 0x20(%rax)
jmp 0x3c81
movq -0x8(%rbp), %rax
cmpl $0x10, 0x40(%rax)
jge 0x3c4f
movb -0x29(%rbp), %dl
movq -0x8(%rbp), %rax
movq -0x8(%rbp), %rsi
movl 0x40(%rsi), %ecx
movl %ecx, %edi
addl $0x1, %edi
movl %edi, 0x40(%rsi)
movslq %ecx, %rcx
movb %dl, 0x44(%rax,%rcx)
movzbl -0x29(%rbp), %eax
cmpl $0x40, %eax
jl 0x3c7c
movzbl -0x29(%rbp), %eax
cmpl $0x7e, %eax
jg 0x3c7c
movq -0x10(%rbp), %rax
addq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rax
movl $0x7, 0x20(%rax)
jmp 0x3f76
jmp 0x3c83
movzbl -0x29(%rbp), %eax
cmpl $0x7, %eax
je 0x3c9d
testb $0x1, -0x2a(%rbp)
je 0x3cc8
movzbl -0x29(%rbp), %eax
cmpl $0x9c, %eax
jne 0x3cc8
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x38(%rbp), %rdx
movl $0x1, %ecx
callq 0x3fe0
movq -0x8(%rbp), %rax
movl $0x0, 0x20(%rax)
movq $0x0, -0x28(%rbp)
jmp 0x3cc8
jmp 0x3f76
movq -0x8(%rbp), %rax
movb 0x24(%rax), %al
andb $0x1, %al
testb $0x1, %al
je 0x3d63
movzbl -0x29(%rbp), %edi
callq 0x4280
testb $0x1, %al
jne 0x3ced
jmp 0x3d16
movq -0x8(%rbp), %rax
cmpl $0xf, 0x28(%rax)
jge 0x3d14
movb -0x29(%rbp), %dl
movq -0x8(%rbp), %rax
movq -0x8(%rbp), %rsi
movl 0x28(%rsi), %ecx
movl %ecx, %edi
addl $0x1, %edi
movl %edi, 0x28(%rsi)
movslq %ecx, %rcx
movb %dl, 0x2c(%rax,%rcx)
jmp 0x3d5e
movzbl -0x29(%rbp), %eax
cmpl $0x30, %eax
jl 0x3d5a
movzbl -0x29(%rbp), %eax
cmpl $0x7f, %eax
jge 0x3d5a
movq -0x8(%rbp), %rdi
movsbl -0x29(%rbp), %esi
callq 0x43b0
movq -0x8(%rbp), %rax
movb 0x24(%rax), %cl
andb $-0x2, %cl
orb $0x0, %cl
movb %cl, 0x24(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x20(%rax)
movq $0x0, -0x28(%rbp)
jmp 0x3d5c
jmp 0x3d5c
jmp 0x3d5e
jmp 0x3f76
testb $0x1, -0x2a(%rbp)
je 0x3efd
movzbl -0x29(%rbp), %eax
cmpl $0x80, %eax
jl 0x3efd
movzbl -0x29(%rbp), %eax
cmpl $0xa0, %eax
jge 0x3efd
movzbl -0x29(%rbp), %eax
addl $0xffffff70, %eax       # imm = 0xFFFFFF70
movl %eax, %ecx
movq %rcx, -0x60(%rbp)
subl $0xf, %eax
ja 0x3eee
movq -0x60(%rbp), %rax
leaq 0xf47e(%rip), %rcx      # 0x1322c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x8(%rbp), %rax
movb $0x1, 0xe8(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x40(%rax)
movq -0x8(%rbp), %rax
movl $0x4, 0x20(%rax)
movq $0x0, -0x28(%rbp)
jmp 0x3efb
movq -0x8(%rbp), %rax
movb $0x1, 0xe8(%rax)
movq -0x8(%rbp), %rax
movl $0xa, 0x20(%rax)
movq $0x0, -0x28(%rbp)
movq -0x10(%rbp), %rax
addq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
movq $0x0, -0x38(%rbp)
jmp 0x3efb
movq -0x8(%rbp), %rax
movl $0x0, 0x40(%rax)
movq -0x8(%rbp), %rax
movl $0x1, 0x20(%rax)
movq $0x0, -0x28(%rbp)
jmp 0x3efb
movq -0x8(%rbp), %rax
movl $0xffffffff, 0x40(%rax) # imm = 0xFFFFFFFF
movq -0x8(%rbp), %rax
movb $0x1, 0xe8(%rax)
movq -0x10(%rbp), %rax
addq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rax
movl $0x5, 0x20(%rax)
movq $0x0, -0x28(%rbp)
jmp 0x3efb
movq -0x8(%rbp), %rax
movb $0x1, 0xe8(%rax)
movq -0x8(%rbp), %rax
movl $0x9, 0x20(%rax)
movq $0x0, -0x28(%rbp)
movq -0x10(%rbp), %rax
addq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
movq $0x0, -0x38(%rbp)
jmp 0x3efb
movq -0x8(%rbp), %rax
movb $0x1, 0xe8(%rax)
movq -0x8(%rbp), %rax
movl $0x8, 0x20(%rax)
movq $0x0, -0x28(%rbp)
movq -0x10(%rbp), %rax
addq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
movq $0x0, -0x38(%rbp)
jmp 0x3efb
movq -0x8(%rbp), %rdi
movzbl -0x29(%rbp), %esi
callq 0x4210
jmp 0x3f74
movq $0x0, -0x40(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, 0xd8(%rax)
je 0x3f55
movq -0x8(%rbp), %rax
movq 0xd8(%rax), %rax
cmpq $0x0, (%rax)
je 0x3f55
movq -0x8(%rbp), %rax
movq 0xd8(%rax), %rax
movq (%rax), %rax
movq -0x10(%rbp), %rdi
addq -0x20(%rbp), %rdi
movq -0x18(%rbp), %rsi
subq -0x20(%rbp), %rsi
movq -0x8(%rbp), %rcx
movq 0xe0(%rcx), %rdx
callq *%rax
cltq
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
jne 0x3f64
movq $0x1, -0x40(%rbp)
movq -0x40(%rbp), %rax
subq $0x1, %rax
addq -0x20(%rbp), %rax
movq %rax, -0x20(%rbp)
jmp 0x3f76
jmp 0x3f78
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
jmp 0x371e
cmpq $0x0, -0x28(%rbp)
je 0x3fcf
movq -0x10(%rbp), %rax
addq -0x20(%rbp), %rax
movq -0x28(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x48(%rbp)
movq -0x8(%rbp), %rax
movb 0x24(%rax), %al
andb $0x1, %al
testb $0x1, %al
je 0x3fbc
movq -0x48(%rbp), %rax
subq $0x1, %rax
movq %rax, -0x48(%rbp)
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x48(%rbp), %rdx
xorl %ecx, %ecx
callq 0x3fe0
movq -0x18(%rbp), %rax
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax)