// File: /workspace/github_c_makefile_star2_O0/jondurbin[P]dre2/src/dre2_parse.c
// Function: dre2_parse_recursive
struct dre2_parse_return dre2_parse_recursive( struct dre2_node **v, int *node_count, unsigned char *re, int length, int pos, int **minimal, int *group_count )
{
  int i, j, k;
  int last_node, current_group;
  int *option_end, option_count;
  int mod;
  struct dre2_parse_return ret_val, res;
  struct dre2_range_return range;
  unsigned char c;

  // Add the group open node.
  dre2_add_node( v, node_count, DRE2_GROUP_OPEN, minimal, false );

  *group_count = *group_count + 1;
  current_group = *group_count - 1;
  ( *v )[*node_count - 1].group_id = current_group;

  ret_val.open = *node_count - 1;

  // Which node was the preceeding node.
  last_node = ret_val.open;

  // End of option nodes.
  option_count = 0;
  option_end = ( int * )malloc( sizeof( int ) );

  // Loop through regex string.
  mod = false;
  while ( pos < length )
  {
    c = re[pos];
    if ( c == '(' )
    {
      res = dre2_parse_recursive( v, node_count, re, length, pos + 1, minimal, group_count );
      if ( res.pos == -1 )
      {
        free( option_end );
        option_end = NULL;
        ret_val.pos = -1;
        return ret_val;
      }

      // Add a link from the previous node to the group open node.
      dre2_add_neighbor( v, last_node, res.open );

      // Set the regex input pos.
      pos = res.pos;

      // Update the last node.
      last_node = res.close;

      mod = true;
    } else if ( c == ')' )
    {
      if ( ret_val.open == 0 )
      {
        free( option_end );
        option_end = NULL;
        ret_val.pos = -1;
        return ret_val;
      }

      // Add the group close node.
      dre2_add_node( v, node_count, DRE2_GROUP_CLOSE, minimal, false );
      ret_val.close = *node_count - 1;
      ret_val.pos = pos;
      for ( i = 0; i < option_count; i++ )
        dre2_add_neighbor( v, option_end[i], ret_val.close );
      dre2_add_neighbor( v, last_node, ret_val.close );
      free( option_end );
      option_end = NULL;
      ( *v )[*node_count - 1].group_id = current_group;
      return ret_val;
    } else if ( c == '|' )
    {
      // Store the last node so we can setup end of group links.
      option_count++;
      option_end = ( int * )realloc( option_end, sizeof( int ) * option_count );
      option_end[option_count - 1] = last_node;

      // Reset the last node to the group open.
      last_node = ret_val.open;
      mod = false;
    } else if ( c == '[' )
    {
      // Character class.
      dre2_add_node( v, node_count, DRE2_CHAR_CLASS, minimal, false );

      // Add it to the previous node's neighbor list.
      dre2_add_neighbor( v, last_node, *node_count - 1 );

      last_node = *node_count - 1;
      pos = dre2_character_class( &( *v )[last_node], re, pos + 1 );
      if ( pos == false )
      {
        free( option_end );
        option_end = NULL;
        ret_val.pos = -1;
        return ret_val;
      }
      mod = true;
    } else if ( c == ']' || c == '}' )
    {
      free( option_end );
      option_end = NULL;
      ret_val.pos = -1;
      return ret_val;
    } else if ( c == '\\' )
    {
      // Character class.
      dre2_add_node( v, node_count, DRE2_CHAR_CLASS, minimal, false );

      // Add it to the previous node's neighbor list.
      dre2_add_neighbor( v, last_node, *node_count - 1 );

      last_node = *node_count - 1;
      dre2_predefined_class( &( *v )[last_node], &re[pos + 1], true, false );
      pos++;
      mod = true;
    } else if ( c == '.' )
    {
      // Character class, all chars welcome.
      dre2_add_node( v, node_count, DRE2_DOT, minimal, false );

      // Add it to the previous node's neighbor list.
      dre2_add_neighbor( v, last_node, *node_count - 1 );

      last_node = *node_count - 1;
      mod = true;
    } else if ( c == '*' )
    {
      if ( mod == false )
      {
        printf( "Invalid modifier.\n" );
        free( option_end );
        option_end = NULL;
        ret_val.pos = -1;
        return ret_val;
      }
      mod = false;
      if ( ( *v )[last_node].c == DRE2_GROUP_CLOSE )
      {
        // Add link from group open to close and vice versa.
        dre2_add_neighbor( v, res.open, res.close );
        dre2_add_neighbor( v, res.close, res.open );
        for ( i = res.open; i <= res.close; i++ )
          dre2_remove_minimal( minimal, i );
      } else
      {
        dre2_add_node( v, node_count, ( *v )[last_node].c, minimal, false );
        if ( ( *v )[last_node].c == DRE2_CHAR_CLASS )
        {
          for ( i = 0; i < RANGE; i++ )
            ( *v )[*node_count - 1].possible[i] = ( *v )[last_node].possible[i];
        }

        ( *v )[last_node].c = DRE2_GROUP_OPEN;

        dre2_add_node( v, node_count, DRE2_GROUP_CLOSE, minimal, false );

        // Add a link from group open to node.
        dre2_add_neighbor( v, last_node, last_node + 1 );

        // Add a link from group open to group close.
        dre2_add_neighbor( v, last_node, *node_count - 1 );

        // Add a link from the node to itself.
        dre2_add_neighbor( v, last_node + 1, last_node + 1 );

        // Add a link from the node to the group close.
        dre2_add_neighbor( v, last_node + 1, *node_count - 1 );

        // Update the minimal bits.
        dre2_remove_minimal( minimal, last_node );
        dre2_remove_minimal( minimal, last_node + 1 );
        dre2_remove_minimal( minimal, *node_count - 1 );

        last_node = *node_count - 1;
      }
    } else if ( c == '?' )
    {
      if ( mod == false )
      {
        printf( "Invalid modifier.\n" );
        free( option_end );
        option_end = NULL;
        ret_val.pos = -1;
        return ret_val;
      }
      mod = false;
      // If it's a group, add a link from group open to group close.
      if ( ( *v )[last_node].c == DRE2_GROUP_CLOSE )
      {
        dre2_add_neighbor( v, res.open, res.close );
        for ( i = res.open; i <= res.close; i++ )
          dre2_remove_minimal( minimal, i );
      } else
      {
        dre2_add_node( v, node_count, ( *v )[last_node].c, minimal, false );
        if ( ( *v )[last_node].c == DRE2_CHAR_CLASS )
        {
          for ( i = 0; i < RANGE; i++ )
            ( *v )[*node_count - 1].possible[i] = ( *v )[last_node].possible[i];
        }

        ( *v )[last_node].c = DRE2_GROUP_OPEN;
        dre2_add_node( v, node_count, DRE2_GROUP_CLOSE, minimal, false );

        // Add a link from group open to node.
        dre2_add_neighbor( v, last_node, last_node + 1 );

        // Add a link from group open to group close.
        dre2_add_neighbor( v, last_node, *node_count - 1 );

        // Add a link from the node to the group close.
        dre2_add_neighbor( v, last_node + 1, *node_count - 1 );

        // Update the minimal bits.
        dre2_remove_minimal( minimal, last_node );
        dre2_remove_minimal( minimal, last_node + 1 );
        dre2_remove_minimal( minimal, *node_count - 1 );

        last_node = *node_count - 1;
      }
    } else if ( c == '+' )
    {
      if ( mod == false )
      {
        printf( "Invalid modifier.\n" );
        free( option_end );
        option_end = NULL;
        ret_val.pos = -1;
        return ret_val;
      }
      mod = false;

      if ( ( *v )[last_node].c == DRE2_GROUP_CLOSE )
        dre2_add_neighbor( v, res.close, res.open );
      else
        dre2_add_neighbor( v, last_node, last_node );
    } else if ( c == '{' )
    {
      if ( mod == false )
      {
        printf( "Invalid modifier.\n" );
        free( option_end );
        option_end = NULL;
        ret_val.pos = -1;
        return ret_val;
      }
      mod = false;

      // Get the size range.
      range = dre2_range( re, length, pos );

      // Make sure it was a valid range.
      if ( !range.valid )
      {
        free( option_end );
        option_end = NULL;
        ret_val.pos = -1;
        return ret_val;
      }

      // Setup the range.
      dre2_make_range( v, node_count, &last_node, &res, range.min, range.max, minimal );
      pos = range.pos;
    } else if ( c == '^' || c == '$' )
    {
      // Add the node.
      if ( c == '^' )
        dre2_add_node( v, node_count, DRE2_BOL, minimal, false );
      else
        dre2_add_node( v, node_count, DRE2_EOL, minimal, false );

      // Add it to the previous node's neighbor list.
      dre2_add_neighbor( v, last_node, *node_count - 1 );

      // Update last node.
      last_node = *node_count - 1;
      mod = false;
    } else
    {
      // Add the node.
      dre2_add_node( v, node_count, c, minimal, false );

      // Add it to the previous node's neighbor list.
      dre2_add_neighbor( v, last_node, *node_count - 1 );

      // Update last node.
      last_node = *node_count - 1;
      mod = true;
    }
    pos++;
  }

  if ( ret_val.open != 0 )
  {
    free( option_end );
    option_end = NULL;
    ret_val.pos = -1;
    return ret_val;
  }

  // Add links from the last node in each option group to the group close node.
  dre2_add_node( v, node_count, DRE2_GROUP_CLOSE, minimal, false );
  for ( i = 0; i < option_count; i++ )
    dre2_add_neighbor( v, option_end[i], *node_count - 1 );

  dre2_add_neighbor( v, last_node, *node_count - 1 );

  ( *v )[*node_count - 1].group_id = current_group;

  free( option_end );
  option_end = NULL;

  return ret_val;
}

// Assembly:
subq $0xc8, %rsp
movq 0xd0(%rsp), %rax
movq %rdi, 0xb0(%rsp)
movq %rsi, 0xa8(%rsp)
movq %rdx, 0xa0(%rsp)
movl %ecx, 0x9c(%rsp)
movl %r8d, 0x98(%rsp)
movq %r9, 0x90(%rsp)
movq 0xb0(%rsp), %rdi
movq 0xa8(%rsp), %rsi
movq 0x90(%rsp), %rcx
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
xorl %r8d, %r8d
callq 0x20a0
movq 0xd0(%rsp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movq 0xd0(%rsp), %rax
movl %ecx, (%rax)
movq 0xd0(%rsp), %rax
movl (%rax), %eax
subl $0x1, %eax
movl %eax, 0x7c(%rsp)
movl 0x7c(%rsp), %ecx
movq 0xb0(%rsp), %rax
movq (%rax), %rax
movq 0xa8(%rsp), %rdx
movl (%rdx), %edx
subl $0x1, %edx
movslq %edx, %rdx
shlq $0x6, %rdx
addq %rdx, %rax
movl %ecx, 0x3c(%rax)
movq 0xa8(%rsp), %rax
movl (%rax), %eax
subl $0x1, %eax
movl %eax, 0xbc(%rsp)
movl 0xbc(%rsp), %eax
movl %eax, 0x80(%rsp)
movl $0x0, 0x6c(%rsp)
movl $0x4, %edi
callq 0x2280
movq %rax, 0x70(%rsp)
movl $0x0, 0x68(%rsp)
movl 0x98(%rsp), %eax
cmpl 0x9c(%rsp), %eax
jge 0x843a
movq 0xa0(%rsp), %rax
movslq 0x98(%rsp), %rcx
movb (%rax,%rcx), %al
movb %al, 0x4b(%rsp)
movzbl 0x4b(%rsp), %eax
cmpl $0x28, %eax
jne 0x77f5
movq 0xb0(%rsp), %rdi
movq 0xa8(%rsp), %rsi
movq 0xa0(%rsp), %rdx
movl 0x9c(%rsp), %ecx
movl 0x98(%rsp), %r8d
incl %r8d
movq 0x90(%rsp), %r9
movq 0xd0(%rsp), %r10
movq %rsp, %rax
movq %r10, (%rax)
callq 0x2290
movl %edx, 0x30(%rsp)
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x3c(%rsp)
movl 0x30(%rsp), %eax
movl %eax, 0x44(%rsp)
movq 0x3c(%rsp), %rax
movq %rax, 0x5c(%rsp)
movl 0x44(%rsp), %eax
movl %eax, 0x64(%rsp)
cmpl $-0x1, 0x64(%rsp)
jne 0x77ba
movq 0x70(%rsp), %rdi
callq 0x2070
movq $0x0, 0x70(%rsp)
movl $0xffffffff, 0xc4(%rsp) # imm = 0xFFFFFFFF
jmp 0x853e
movq 0xb0(%rsp), %rdi
movl 0x80(%rsp), %esi
movl 0x5c(%rsp), %edx
callq 0x21a0
movl 0x64(%rsp), %eax
movl %eax, 0x98(%rsp)
movl 0x60(%rsp), %eax
movl %eax, 0x80(%rsp)
movl $0x1, 0x68(%rsp)
jmp 0x8424
movzbl 0x4b(%rsp), %eax
cmpl $0x29, %eax
jne 0x7922
cmpl $0x0, 0xbc(%rsp)
jne 0x7830
movq 0x70(%rsp), %rdi
callq 0x2070
movq $0x0, 0x70(%rsp)
movl $0xffffffff, 0xc4(%rsp) # imm = 0xFFFFFFFF
jmp 0x853e
movq 0xb0(%rsp), %rdi
movq 0xa8(%rsp), %rsi
movq 0x90(%rsp), %rcx
movl $0xfffffffe, %edx       # imm = 0xFFFFFFFE
xorl %r8d, %r8d
callq 0x20a0
movq 0xa8(%rsp), %rax
movl (%rax), %eax
subl $0x1, %eax
movl %eax, 0xc0(%rsp)
movl 0x98(%rsp), %eax
movl %eax, 0xc4(%rsp)
movl $0x0, 0x8c(%rsp)
movl 0x8c(%rsp), %eax
cmpl 0x6c(%rsp), %eax
jge 0x78c6
movq 0xb0(%rsp), %rdi
movq 0x70(%rsp), %rax
movslq 0x8c(%rsp), %rcx
movl (%rax,%rcx,4), %esi
movl 0xc0(%rsp), %edx
callq 0x21a0
movl 0x8c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x8c(%rsp)
jmp 0x7882
movq 0xb0(%rsp), %rdi
movl 0x80(%rsp), %esi
movl 0xc0(%rsp), %edx
callq 0x21a0
movq 0x70(%rsp), %rdi
callq 0x2070
movq $0x0, 0x70(%rsp)
movl 0x7c(%rsp), %ecx
movq 0xb0(%rsp), %rax
movq (%rax), %rax
movq 0xa8(%rsp), %rdx
movl (%rdx), %edx
subl $0x1, %edx
movslq %edx, %rdx
shlq $0x6, %rdx
addq %rdx, %rax
movl %ecx, 0x3c(%rax)
jmp 0x853e
movzbl 0x4b(%rsp), %eax
cmpl $0x7c, %eax
jne 0x7983
movl 0x6c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x6c(%rsp)
movq 0x70(%rsp), %rdi
movslq 0x6c(%rsp), %rsi
shlq $0x2, %rsi
callq 0x22b0
movq %rax, 0x70(%rsp)
movl 0x80(%rsp), %edx
movq 0x70(%rsp), %rax
movl 0x6c(%rsp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl %edx, (%rax,%rcx,4)
movl 0xbc(%rsp), %eax
movl %eax, 0x80(%rsp)
movl $0x0, 0x68(%rsp)
jmp 0x8420
movzbl 0x4b(%rsp), %eax
cmpl $0x5b, %eax
jne 0x7a5d
movq 0xb0(%rsp), %rdi
movq 0xa8(%rsp), %rsi
movq 0x90(%rsp), %rcx
movl $0xfffffffd, %edx       # imm = 0xFFFFFFFD
xorl %r8d, %r8d
callq 0x20a0
movq 0xb0(%rsp), %rdi
movl 0x80(%rsp), %esi
movq 0xa8(%rsp), %rax
movl (%rax), %edx
subl $0x1, %edx
callq 0x21a0
movq 0xa8(%rsp), %rax
movl (%rax), %eax
subl $0x1, %eax
movl %eax, 0x80(%rsp)
movq 0xb0(%rsp), %rax
movq (%rax), %rdi
movslq 0x80(%rsp), %rax
shlq $0x6, %rax
addq %rax, %rdi
movq 0xa0(%rsp), %rsi
movl 0x98(%rsp), %edx
addl $0x1, %edx
callq 0x2040
movl %eax, 0x98(%rsp)
cmpl $0x0, 0x98(%rsp)
jne 0x7a50
movq 0x70(%rsp), %rdi
callq 0x2070
movq $0x0, 0x70(%rsp)
movl $0xffffffff, 0xc4(%rsp) # imm = 0xFFFFFFFF
jmp 0x853e
movl $0x1, 0x68(%rsp)
jmp 0x841e
movzbl 0x4b(%rsp), %eax
cmpl $0x5d, %eax
je 0x7a71
movzbl 0x4b(%rsp), %eax
cmpl $0x7d, %eax
jne 0x7a94
movq 0x70(%rsp), %rdi
callq 0x2070
movq $0x0, 0x70(%rsp)
movl $0xffffffff, 0xc4(%rsp) # imm = 0xFFFFFFFF
jmp 0x853e
movzbl 0x4b(%rsp), %eax
cmpl $0x5c, %eax
jne 0x7b57
movq 0xb0(%rsp), %rdi
movq 0xa8(%rsp), %rsi
movq 0x90(%rsp), %rcx
movl $0xfffffffd, %edx       # imm = 0xFFFFFFFD
xorl %r8d, %r8d
callq 0x20a0
movq 0xb0(%rsp), %rdi
movl 0x80(%rsp), %esi
movq 0xa8(%rsp), %rax
movl (%rax), %edx
subl $0x1, %edx
callq 0x21a0
movq 0xa8(%rsp), %rax
movl (%rax), %eax
subl $0x1, %eax
movl %eax, 0x80(%rsp)
movq 0xb0(%rsp), %rax
movq (%rax), %rdi
movslq 0x80(%rsp), %rax
shlq $0x6, %rax
addq %rax, %rdi
movq 0xa0(%rsp), %rsi
movl 0x98(%rsp), %eax
addl $0x1, %eax
cltq
addq %rax, %rsi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x2250
movl 0x98(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x98(%rsp)
movl $0x1, 0x68(%rsp)
jmp 0x841a
movzbl 0x4b(%rsp), %eax
cmpl $0x2e, %eax
jne 0x7bc8
movq 0xb0(%rsp), %rdi
movq 0xa8(%rsp), %rsi
movq 0x90(%rsp), %rcx
movl $0xfffffff0, %edx       # imm = 0xFFFFFFF0
xorl %r8d, %r8d
callq 0x20a0
movq 0xb0(%rsp), %rdi
movl 0x80(%rsp), %esi
movq 0xa8(%rsp), %rax
movl (%rax), %edx
subl $0x1, %edx
callq 0x21a0
movq 0xa8(%rsp), %rax
movl (%rax), %eax
subl $0x1, %eax
movl %eax, 0x80(%rsp)
movl $0x1, 0x68(%rsp)
jmp 0x8418
movzbl 0x4b(%rsp), %eax
cmpl $0x2a, %eax
jne 0x7eb0
cmpl $0x0, 0x68(%rsp)
jne 0x7c0e
leaq 0x88a1(%rip), %rdi      # 0x10485
movb $0x0, %al
callq 0x2130
movq 0x70(%rsp), %rdi
callq 0x2070
movq $0x0, 0x70(%rsp)
movl $0xffffffff, 0xc4(%rsp) # imm = 0xFFFFFFFF
jmp 0x853e
movl $0x0, 0x68(%rsp)
movq 0xb0(%rsp), %rax
movq (%rax), %rax
movslq 0x80(%rsp), %rcx
shlq $0x6, %rcx
addq %rcx, %rax
cmpl $-0x2, (%rax)
jne 0x7ca3
movq 0xb0(%rsp), %rdi
movl 0x5c(%rsp), %esi
movl 0x60(%rsp), %edx
callq 0x21a0
movq 0xb0(%rsp), %rdi
movl 0x60(%rsp), %esi
movl 0x5c(%rsp), %edx
callq 0x21a0
movl 0x5c(%rsp), %eax
movl %eax, 0x8c(%rsp)
movl 0x8c(%rsp), %eax
cmpl 0x60(%rsp), %eax
jg 0x7c9e
movq 0x90(%rsp), %rdi
movl 0x8c(%rsp), %esi
callq 0x2210
movl 0x8c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x8c(%rsp)
jmp 0x7c6a
jmp 0x7eab
movq 0xb0(%rsp), %rdi
movq 0xa8(%rsp), %rsi
movq 0xb0(%rsp), %rax
movq (%rax), %rax
movslq 0x80(%rsp), %rcx
shlq $0x6, %rcx
addq %rcx, %rax
movl (%rax), %edx
movq 0x90(%rsp), %rcx
xorl %r8d, %r8d
callq 0x20a0
movq 0xb0(%rsp), %rax
movq (%rax), %rax
movslq 0x80(%rsp), %rcx
shlq $0x6, %rcx
addq %rcx, %rax
cmpl $-0x3, (%rax)
jne 0x7d89
movl $0x0, 0x8c(%rsp)
cmpl $0x100, 0x8c(%rsp) # imm = 0x100
jge 0x7d87
movq 0xb0(%rsp), %rax
movq (%rax), %rax
movslq 0x80(%rsp), %rcx
shlq $0x6, %rcx
addq %rcx, %rax
movq 0x28(%rax), %rax
movslq 0x8c(%rsp), %rcx
movl (%rax,%rcx,4), %edx
movq 0xb0(%rsp), %rax
movq (%rax), %rax
movq 0xa8(%rsp), %rcx
movl (%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
shlq $0x6, %rcx
addq %rcx, %rax
movq 0x28(%rax), %rax
movslq 0x8c(%rsp), %rcx
movl %edx, (%rax,%rcx,4)
movl 0x8c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x8c(%rsp)
jmp 0x7d0d
jmp 0x7d89
movq 0xb0(%rsp), %rax
movq (%rax), %rax
movslq 0x80(%rsp), %rcx
shlq $0x6, %rcx
addq %rcx, %rax
movl $0xffffffff, (%rax)     # imm = 0xFFFFFFFF
movq 0xb0(%rsp), %rdi
movq 0xa8(%rsp), %rsi
movq 0x90(%rsp), %rcx
movl $0xfffffffe, %edx       # imm = 0xFFFFFFFE
xorl %r8d, %r8d
callq 0x20a0
movq 0xb0(%rsp), %rdi
movl 0x80(%rsp), %esi
movl 0x80(%rsp), %edx
addl $0x1, %edx
callq 0x21a0
movq 0xb0(%rsp), %rdi
movl 0x80(%rsp), %esi
movq 0xa8(%rsp), %rax
movl (%rax), %edx
subl $0x1, %edx
callq 0x21a0
movq 0xb0(%rsp), %rdi
movl 0x80(%rsp), %esi
addl $0x1, %esi
movl 0x80(%rsp), %edx
addl $0x1, %edx
callq 0x21a0
movq 0xb0(%rsp), %rdi
movl 0x80(%rsp), %esi
addl $0x1, %esi
movq 0xa8(%rsp), %rax
movl (%rax), %edx
subl $0x1, %edx
callq 0x21a0
movq 0x90(%rsp), %rdi
movl 0x80(%rsp), %esi
callq 0x2210
movq 0x90(%rsp), %rdi
movl 0x80(%rsp), %esi
addl $0x1, %esi
callq 0x2210
movq 0x90(%rsp), %rdi
movq 0xa8(%rsp), %rax
movl (%rax), %esi
subl $0x1, %esi
callq 0x2210
movq 0xa8(%rsp), %rax
movl (%rax), %eax
subl $0x1, %eax
movl %eax, 0x80(%rsp)
jmp 0x8416
movzbl 0x4b(%rsp), %eax
cmpl $0x3f, %eax
jne 0x8162
cmpl $0x0, 0x68(%rsp)
jne 0x7ef6
leaq 0x85b9(%rip), %rdi      # 0x10485
movb $0x0, %al
callq 0x2130
movq 0x70(%rsp), %rdi
callq 0x2070
movq $0x0, 0x70(%rsp)
movl $0xffffffff, 0xc4(%rsp) # imm = 0xFFFFFFFF
jmp 0x853e
movl $0x0, 0x68(%rsp)
movq 0xb0(%rsp), %rax
movq (%rax), %rax
movslq 0x80(%rsp), %rcx
shlq $0x6, %rcx
addq %rcx, %rax
cmpl $-0x2, (%rax)
jne 0x7f76
movq 0xb0(%rsp), %rdi
movl 0x5c(%rsp), %esi
movl 0x60(%rsp), %edx
callq 0x21a0
movl 0x5c(%rsp), %eax
movl %eax, 0x8c(%rsp)
movl 0x8c(%rsp), %eax
cmpl 0x60(%rsp), %eax
jg 0x7f71
movq 0x90(%rsp), %rdi
movl 0x8c(%rsp), %esi
callq 0x2210
movl 0x8c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x8c(%rsp)
jmp 0x7f3d
jmp 0x815d
movq 0xb0(%rsp), %rdi
movq 0xa8(%rsp), %rsi
movq 0xb0(%rsp), %rax
movq (%rax), %rax
movslq 0x80(%rsp), %rcx
shlq $0x6, %rcx
addq %rcx, %rax
movl (%rax), %edx
movq 0x90(%rsp), %rcx
xorl %r8d, %r8d
callq 0x20a0
movq 0xb0(%rsp), %rax
movq (%rax), %rax
movslq 0x80(%rsp), %rcx
shlq $0x6, %rcx
addq %rcx, %rax
cmpl $-0x3, (%rax)
jne 0x805c
movl $0x0, 0x8c(%rsp)
cmpl $0x100, 0x8c(%rsp) # imm = 0x100
jge 0x805a
movq 0xb0(%rsp), %rax
movq (%rax), %rax
movslq 0x80(%rsp), %rcx
shlq $0x6, %rcx
addq %rcx, %rax
movq 0x28(%rax), %rax
movslq 0x8c(%rsp), %rcx
movl (%rax,%rcx,4), %edx
movq 0xb0(%rsp), %rax
movq (%rax), %rax
movq 0xa8(%rsp), %rcx
movl (%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
shlq $0x6, %rcx
addq %rcx, %rax
movq 0x28(%rax), %rax
movslq 0x8c(%rsp), %rcx
movl %edx, (%rax,%rcx,4)
movl 0x8c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x8c(%rsp)
jmp 0x7fe0
jmp 0x805c
movq 0xb0(%rsp), %rax
movq (%rax), %rax
movslq 0x80(%rsp), %rcx
shlq $0x6, %rcx
addq %rcx, %rax
movl $0xffffffff, (%rax)     # imm = 0xFFFFFFFF
movq 0xb0(%rsp), %rdi
movq 0xa8(%rsp), %rsi
movq 0x90(%rsp), %rcx
movl $0xfffffffe, %edx       # imm = 0xFFFFFFFE
xorl %r8d, %r8d
callq 0x20a0
movq 0xb0(%rsp), %rdi
movl 0x80(%rsp), %esi
movl 0x80(%rsp), %edx
addl $0x1, %edx
callq 0x21a0
movq 0xb0(%rsp), %rdi
movl 0x80(%rsp), %esi
movq 0xa8(%rsp), %rax
movl (%rax), %edx
subl $0x1, %edx
callq 0x21a0
movq 0xb0(%rsp), %rdi
movl 0x80(%rsp), %esi
addl $0x1, %esi
movq 0xa8(%rsp), %rax
movl (%rax), %edx
subl $0x1, %edx
callq 0x21a0
movq 0x90(%rsp), %rdi
movl 0x80(%rsp), %esi
callq 0x2210
movq 0x90(%rsp), %rdi
movl 0x80(%rsp), %esi
addl $0x1, %esi
callq 0x2210
movq 0x90(%rsp), %rdi
movq 0xa8(%rsp), %rax
movl (%rax), %esi
subl $0x1, %esi
callq 0x2210
movq 0xa8(%rsp), %rax
movl (%rax), %eax
subl $0x1, %eax
movl %eax, 0x80(%rsp)
jmp 0x8414
movzbl 0x4b(%rsp), %eax
cmpl $0x2b, %eax
jne 0x8206
cmpl $0x0, 0x68(%rsp)
jne 0x81a8
leaq 0x8307(%rip), %rdi      # 0x10485
movb $0x0, %al
callq 0x2130
movq 0x70(%rsp), %rdi
callq 0x2070
movq $0x0, 0x70(%rsp)
movl $0xffffffff, 0xc4(%rsp) # imm = 0xFFFFFFFF
jmp 0x853e
movl $0x0, 0x68(%rsp)
movq 0xb0(%rsp), %rax
movq (%rax), %rax
movslq 0x80(%rsp), %rcx
shlq $0x6, %rcx
addq %rcx, %rax
cmpl $-0x2, (%rax)
jne 0x81e6
movq 0xb0(%rsp), %rdi
movl 0x60(%rsp), %esi
movl 0x5c(%rsp), %edx
callq 0x21a0
jmp 0x8201
movq 0xb0(%rsp), %rdi
movl 0x80(%rsp), %esi
movl 0x80(%rsp), %edx
callq 0x21a0
jmp 0x8412
movzbl 0x4b(%rsp), %eax
cmpl $0x7b, %eax
jne 0x82ff
cmpl $0x0, 0x68(%rsp)
jne 0x824c
leaq 0x8263(%rip), %rdi      # 0x10485
movb $0x0, %al
callq 0x2130
movq 0x70(%rsp), %rdi
callq 0x2070
movq $0x0, 0x70(%rsp)
movl $0xffffffff, 0xc4(%rsp) # imm = 0xFFFFFFFF
jmp 0x853e
movl $0x0, 0x68(%rsp)
movq 0xa0(%rsp), %rdi
movl 0x9c(%rsp), %esi
movl 0x98(%rsp), %edx
callq 0x2090
movq %rax, 0x18(%rsp)
movq %rdx, 0x20(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x4c(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x54(%rsp)
cmpl $0x0, 0x54(%rsp)
jne 0x82b7
movq 0x70(%rsp), %rdi
callq 0x2070
movq $0x0, 0x70(%rsp)
movl $0xffffffff, 0xc4(%rsp) # imm = 0xFFFFFFFF
jmp 0x853e
movq 0xb0(%rsp), %rdi
movq 0xa8(%rsp), %rsi
movl 0x4c(%rsp), %r8d
movl 0x50(%rsp), %r9d
movq 0x90(%rsp), %rax
leaq 0x80(%rsp), %rdx
leaq 0x5c(%rsp), %rcx
movq %rax, (%rsp)
callq 0x2050
movl 0x58(%rsp), %eax
movl %eax, 0x98(%rsp)
jmp 0x8410
movzbl 0x4b(%rsp), %eax
cmpl $0x5e, %eax
je 0x8317
movzbl 0x4b(%rsp), %eax
cmpl $0x24, %eax
jne 0x83ac
movzbl 0x4b(%rsp), %eax
cmpl $0x5e, %eax
jne 0x8348
movq 0xb0(%rsp), %rdi
movq 0xa8(%rsp), %rsi
movq 0x90(%rsp), %rcx
movl $0xffffffee, %edx       # imm = 0xFFFFFFEE
xorl %r8d, %r8d
callq 0x20a0
jmp 0x836d
movq 0xb0(%rsp), %rdi
movq 0xa8(%rsp), %rsi
movq 0x90(%rsp), %rcx
movl $0xffffffef, %edx       # imm = 0xFFFFFFEF
xorl %r8d, %r8d
callq 0x20a0
movq 0xb0(%rsp), %rdi
movl 0x80(%rsp), %esi
movq 0xa8(%rsp), %rax
movl (%rax), %edx
subl $0x1, %edx
callq 0x21a0
movq 0xa8(%rsp), %rax
movl (%rax), %eax
subl $0x1, %eax
movl %eax, 0x80(%rsp)
movl $0x0, 0x68(%rsp)
jmp 0x840e
movq 0xb0(%rsp), %rdi
movq 0xa8(%rsp), %rsi
movzbl 0x4b(%rsp), %edx
movq 0x90(%rsp), %rcx
xorl %r8d, %r8d
callq 0x20a0
movq 0xb0(%rsp), %rdi
movl 0x80(%rsp), %esi
movq 0xa8(%rsp), %rax
movl (%rax), %edx
subl $0x1, %edx
callq 0x21a0
movq 0xa8(%rsp), %rax
movl (%rax), %eax
subl $0x1, %eax
movl %eax, 0x80(%rsp)
movl $0x1, 0x68(%rsp)
jmp 0x8410
jmp 0x8412
jmp 0x8414
jmp 0x8416
jmp 0x8418
jmp 0x841a
jmp 0x841c
jmp 0x841e
jmp 0x8420
jmp 0x8422
jmp 0x8424
movl 0x98(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x98(%rsp)
jmp 0x76e5
cmpl $0x0, 0xbc(%rsp)
je 0x8467
movq 0x70(%rsp), %rdi
callq 0x2070
movq $0x0, 0x70(%rsp)
movl $0xffffffff, 0xc4(%rsp) # imm = 0xFFFFFFFF
jmp 0x853e
movq 0xb0(%rsp), %rdi
movq 0xa8(%rsp), %rsi
movq 0x90(%rsp), %rcx
movl $0xfffffffe, %edx       # imm = 0xFFFFFFFE
xorl %r8d, %r8d
callq 0x20a0
movl $0x0, 0x8c(%rsp)
movl 0x8c(%rsp), %eax
cmpl 0x6c(%rsp), %eax
jge 0x84e1
movq 0xb0(%rsp), %rdi
movq 0x70(%rsp), %rax
movslq 0x8c(%rsp), %rcx
movl (%rax,%rcx,4), %esi
movq 0xa8(%rsp), %rax
movl (%rax), %edx
subl $0x1, %edx
callq 0x21a0
movl 0x8c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x8c(%rsp)
jmp 0x8497
movq 0xb0(%rsp), %rdi
movl 0x80(%rsp), %esi
movq 0xa8(%rsp), %rax
movl (%rax), %edx
subl $0x1, %edx
callq 0x21a0
movl 0x7c(%rsp), %ecx
movq 0xb0(%rsp), %rax
movq (%rax), %rax
movq 0xa8(%rsp), %rdx
movl (%rdx), %edx
subl $0x1, %edx
movslq %edx, %rdx
shlq $0x6, %rdx
addq %rdx, %rax
movl %ecx, 0x3c(%rax)
movq 0x70(%rsp), %rdi
callq 0x2070
movq $0x0, 0x70(%rsp)
movl 0xc4(%rsp), %eax
movl %eax, 0x10(%rsp)
movq 0xbc(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movl 0x10(%rsp), %edx
addq $0xc8, %rsp
retq
nopw (%rax,%rax)