// File: /workspace/github_c_makefile_star2_O0/barabo[P]advanced-shell-history/src/sqlite3.c
// Function: sqlite3ParseUri
SQLITE_PRIVATE int sqlite3ParseUri(
  const char *zDefaultVfs,        /* VFS to use if no "vfs=xxx" query option */
  const char *zUri,               /* Nul-terminated URI to parse */
  unsigned int *pFlags,           /* IN/OUT: SQLITE_OPEN_XXX flags */
  sqlite3_vfs **ppVfs,            /* OUT: VFS to use */ 
  char **pzFile,                  /* OUT: Filename component of URI */
  char **pzErrMsg                 /* OUT: Error message (if rc!=SQLITE_OK) */
){
  int rc = SQLITE_OK;
  unsigned int flags = *pFlags;
  const char *zVfs = zDefaultVfs;
  char *zFile;
  char c;
  int nUri = sqlite3Strlen30(zUri);

  assert( *pzErrMsg==0 );

  if( ((flags & SQLITE_OPEN_URI) || sqlite3GlobalConfig.bOpenUri) 
   && nUri>=5 && memcmp(zUri, "file:", 5)==0 
  ){
    char *zOpt;
    int eState;                   /* Parser state when parsing URI */
    int iIn;                      /* Input character index */
    int iOut = 0;                 /* Output character index */
    int nByte = nUri+2;           /* Bytes of space to allocate */

    /* Make sure the SQLITE_OPEN_URI flag is set to indicate to the VFS xOpen 
    ** method that there may be extra parameters following the file-name.  */
    flags |= SQLITE_OPEN_URI;

    for(iIn=0; iIn<nUri; iIn++) nByte += (zUri[iIn]=='&');
    zFile = sqlite3_malloc(nByte);
    if( !zFile ) return SQLITE_NOMEM;

    iIn = 5;
#ifndef SQLITE_ALLOW_URI_AUTHORITY
    /* Discard the scheme and authority segments of the URI. */
    if( zUri[5]=='/' && zUri[6]=='/' ){
      iIn = 7;
      while( zUri[iIn] && zUri[iIn]!='/' ) iIn++;
      if( iIn!=7 && (iIn!=16 || memcmp("localhost", &zUri[7], 9)) ){
        *pzErrMsg = sqlite3_mprintf("invalid uri authority: %.*s", 
            iIn-7, &zUri[7]);
        rc = SQLITE_ERROR;
        goto parse_uri_out;
      }
    }
#endif

    /* Copy the filename and any query parameters into the zFile buffer. 
    ** Decode %HH escape codes along the way. 
    **
    ** Within this loop, variable eState may be set to 0, 1 or 2, depending
    ** on the parsing context. As follows:
    **
    **   0: Parsing file-name.
    **   1: Parsing name section of a name=value query parameter.
    **   2: Parsing value section of a name=value query parameter.
    */
    eState = 0;
    while( (c = zUri[iIn])!=0 && c!='#' ){
      iIn++;
      if( c=='%' 
       && sqlite3Isxdigit(zUri[iIn]) 
       && sqlite3Isxdigit(zUri[iIn+1]) 
      ){
        int octet = (sqlite3HexToInt(zUri[iIn++]) << 4);
        octet += sqlite3HexToInt(zUri[iIn++]);

        assert( octet>=0 && octet<256 );
        if( octet==0 ){
          /* This branch is taken when "%00" appears within the URI. In this
          ** case we ignore all text in the remainder of the path, name or
          ** value currently being parsed. So ignore the current character
          ** and skip to the next "?", "=" or "&", as appropriate. */
          while( (c = zUri[iIn])!=0 && c!='#' 
              && (eState!=0 || c!='?')
              && (eState!=1 || (c!='=' && c!='&'))
              && (eState!=2 || c!='&')
          ){
            iIn++;
          }
          continue;
        }
        c = octet;
      }else if( eState==1 && (c=='&' || c=='=') ){
        if( zFile[iOut-1]==0 ){
          /* An empty option name. Ignore this option altogether. */
          while( zUri[iIn] && zUri[iIn]!='#' && zUri[iIn-1]!='&' ) iIn++;
          continue;
        }
        if( c=='&' ){
          zFile[iOut++] = '\0';
        }else{
          eState = 2;
        }
        c = 0;
      }else if( (eState==0 && c=='?') || (eState==2 && c=='&') ){
        c = 0;
        eState = 1;
      }
      zFile[iOut++] = c;
    }
    if( eState==1 ) zFile[iOut++] = '\0';
    zFile[iOut++] = '\0';
    zFile[iOut++] = '\0';

    /* Check if there were any options specified that should be interpreted 
    ** here. Options that are interpreted here include "vfs" and those that
    ** correspond to flags that may be passed to the sqlite3_open_v2()
    ** method. */
    zOpt = &zFile[sqlite3Strlen30(zFile)+1];
    while( zOpt[0] ){
      int nOpt = sqlite3Strlen30(zOpt);
      char *zVal = &zOpt[nOpt+1];
      int nVal = sqlite3Strlen30(zVal);

      if( nOpt==3 && memcmp("vfs", zOpt, 3)==0 ){
        zVfs = zVal;
      }else{
        struct OpenMode {
          const char *z;
          int mode;
        } *aMode = 0;
        char *zModeType = 0;
        int mask = 0;
        int limit = 0;

        if( nOpt==5 && memcmp("cache", zOpt, 5)==0 ){
          static struct OpenMode aCacheMode[] = {
            { "shared",  SQLITE_OPEN_SHAREDCACHE },
            { "private", SQLITE_OPEN_PRIVATECACHE },
            { 0, 0 }
          };

          mask = SQLITE_OPEN_SHAREDCACHE|SQLITE_OPEN_PRIVATECACHE;
          aMode = aCacheMode;
          limit = mask;
          zModeType = "cache";
        }
        if( nOpt==4 && memcmp("mode", zOpt, 4)==0 ){
          static struct OpenMode aOpenMode[] = {
            { "ro",  SQLITE_OPEN_READONLY },
            { "rw",  SQLITE_OPEN_READWRITE }, 
            { "rwc", SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE },
            { "memory", SQLITE_OPEN_MEMORY },
            { 0, 0 }
          };

          mask = SQLITE_OPEN_READONLY | SQLITE_OPEN_READWRITE
                   | SQLITE_OPEN_CREATE | SQLITE_OPEN_MEMORY;
          aMode = aOpenMode;
          limit = mask & flags;
          zModeType = "access";
        }

        if( aMode ){
          int i;
          int mode = 0;
          for(i=0; aMode[i].z; i++){
            const char *z = aMode[i].z;
            if( nVal==sqlite3Strlen30(z) && 0==memcmp(zVal, z, nVal) ){
              mode = aMode[i].mode;
              break;
            }
          }
          if( mode==0 ){
            *pzErrMsg = sqlite3_mprintf("no such %s mode: %s", zModeType, zVal);
            rc = SQLITE_ERROR;
            goto parse_uri_out;
          }
          if( (mode & ~SQLITE_OPEN_MEMORY)>limit ){
            *pzErrMsg = sqlite3_mprintf("%s mode not allowed: %s",
                                        zModeType, zVal);
            rc = SQLITE_PERM;
            goto parse_uri_out;
          }
          flags = (flags & ~mask) | mode;
        }
      }

      zOpt = &zVal[nVal+1];
    }

  }else{
    zFile = sqlite3_malloc(nUri+2);
    if( !zFile ) return SQLITE_NOMEM;
    memcpy(zFile, zUri, nUri);
    zFile[nUri] = '\0';
    zFile[nUri+1] = '\0';
    flags &= ~SQLITE_OPEN_URI;
  }

  *ppVfs = sqlite3_vfs_find(zVfs);
  if( *ppVfs==0 ){
    *pzErrMsg = sqlite3_mprintf("no such vfs: %s", zVfs);
    rc = SQLITE_ERROR;
  }
 parse_uri_out:
  if( rc!=SQLITE_OK ){
    sqlite3_free(zFile);
    zFile = 0;
  }
  *pFlags = flags;
  *pzFile = zFile;
  return rc;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
movl $0x0, -0x3c(%rbp)
movq -0x20(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x40(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x18(%rbp), %rdi
callq 0x92f0
movl %eax, -0x58(%rbp)
movl -0x40(%rbp), %eax
andl $0x40, %eax
cmpl $0x0, %eax
jne 0x830df
cmpl $0x0, 0x4d3c3(%rip)     # 0xd049c
je 0x83858
cmpl $0x5, -0x58(%rbp)
jl 0x83858
movq -0x18(%rbp), %rdi
leaq 0x2e112(%rip), %rsi     # 0xb1206
movl $0x5, %edx
callq 0x81c0
cmpl $0x0, %eax
jne 0x83858
movl $0x0, -0x6c(%rbp)
movl -0x58(%rbp), %eax
addl $0x2, %eax
movl %eax, -0x70(%rbp)
movl -0x40(%rbp), %eax
orl $0x40, %eax
movl %eax, -0x40(%rbp)
movl $0x0, -0x68(%rbp)
movl -0x68(%rbp), %eax
cmpl -0x58(%rbp), %eax
jge 0x83157
movq -0x18(%rbp), %rax
movslq -0x68(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x26, %eax
sete %al
andb $0x1, %al
movzbl %al, %eax
addl -0x70(%rbp), %eax
movl %eax, -0x70(%rbp)
movl -0x68(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x68(%rbp)
jmp 0x83127
movl -0x70(%rbp), %edi
callq 0xa380
movq %rax, -0x50(%rbp)
cmpq $0x0, -0x50(%rbp)
jne 0x83176
movl $0x7, -0x4(%rbp)
jmp 0x83924
movl $0x5, -0x68(%rbp)
movq -0x18(%rbp), %rax
movsbl 0x5(%rax), %eax
cmpl $0x2f, %eax
jne 0x8324c
movq -0x18(%rbp), %rax
movsbl 0x6(%rax), %eax
cmpl $0x2f, %eax
jne 0x8324c
movl $0x7, -0x68(%rbp)
movq -0x18(%rbp), %rax
movslq -0x68(%rbp), %rcx
movsbl (%rax,%rcx), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0xb1(%rbp)
je 0x831d7
movq -0x18(%rbp), %rax
movslq -0x68(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x2f, %eax
setne %al
movb %al, -0xb1(%rbp)
movb -0xb1(%rbp), %al
testb $0x1, %al
jne 0x831e3
jmp 0x831ee
movl -0x68(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x68(%rbp)
jmp 0x831a6
cmpl $0x7, -0x68(%rbp)
je 0x8324a
cmpl $0x10, -0x68(%rbp)
jne 0x83218
movq -0x18(%rbp), %rsi
addq $0x7, %rsi
leaq 0x2e003(%rip), %rdi     # 0xb120c
movl $0x9, %edx
callq 0x81c0
cmpl $0x0, %eax
je 0x8324a
movl -0x68(%rbp), %esi
subl $0x7, %esi
movq -0x18(%rbp), %rdx
addq $0x7, %rdx
leaq 0x2dfe9(%rip), %rdi     # 0xb1216
movb $0x0, %al
callq 0xc400
movq %rax, %rcx
movq -0x38(%rbp), %rax
movq %rcx, (%rax)
movl $0x1, -0x3c(%rbp)
jmp 0x838f3
jmp 0x8324c
movl $0x0, -0x64(%rbp)
movq -0x18(%rbp), %rax
movslq -0x68(%rbp), %rcx
movb (%rax,%rcx), %al
movb %al, -0x51(%rbp)
movsbl %al, %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0xb2(%rbp)
je 0x83281
movsbl -0x51(%rbp), %eax
cmpl $0x23, %eax
setne %al
movb %al, -0xb2(%rbp)
movb -0xb2(%rbp), %al
testb $0x1, %al
jne 0x83290
jmp 0x83526
movl -0x68(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x68(%rbp)
movsbl -0x51(%rbp), %eax
cmpl $0x25, %eax
jne 0x8340b
movq -0x18(%rbp), %rax
movslq -0x68(%rbp), %rcx
movzbl (%rax,%rcx), %eax
movl %eax, %ecx
leaq 0x27785(%rip), %rax     # 0xaaa40
movzbl (%rax,%rcx), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x8340b
movq -0x18(%rbp), %rax
movl -0x68(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movzbl (%rax,%rcx), %eax
movl %eax, %ecx
leaq 0x2775b(%rip), %rax     # 0xaaa40
movzbl (%rax,%rcx), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x8340b
movq -0x18(%rbp), %rax
movl -0x68(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0x68(%rbp)
movslq %ecx, %rcx
movsbl (%rax,%rcx), %edi
callq 0x6aa10
movzbl %al, %eax
shll $0x4, %eax
movl %eax, -0x74(%rbp)
movq -0x18(%rbp), %rax
movl -0x68(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0x68(%rbp)
movslq %ecx, %rcx
movsbl (%rax,%rcx), %edi
callq 0x6aa10
movzbl %al, %eax
addl -0x74(%rbp), %eax
movl %eax, -0x74(%rbp)
cmpl $0x0, -0x74(%rbp)
jne 0x83400
jmp 0x83349
movq -0x18(%rbp), %rax
movslq -0x68(%rbp), %rcx
movb (%rax,%rcx), %al
movb %al, -0x51(%rbp)
movsbl %al, %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0xb3(%rbp)
je 0x833e1
movsbl -0x51(%rbp), %ecx
xorl %eax, %eax
cmpl $0x23, %ecx
movb %al, -0xb3(%rbp)
je 0x833e1
cmpl $0x0, -0x64(%rbp)
jne 0x8338f
movsbl -0x51(%rbp), %ecx
xorl %eax, %eax
cmpl $0x3f, %ecx
movb %al, -0xb3(%rbp)
je 0x833e1
cmpl $0x1, -0x64(%rbp)
jne 0x833b7
movsbl -0x51(%rbp), %ecx
xorl %eax, %eax
cmpl $0x3d, %ecx
movb %al, -0xb3(%rbp)
je 0x833e1
movsbl -0x51(%rbp), %ecx
xorl %eax, %eax
cmpl $0x26, %ecx
movb %al, -0xb3(%rbp)
je 0x833e1
movb $0x1, %al
cmpl $0x2, -0x64(%rbp)
movb %al, -0xb4(%rbp)
jne 0x833d5
movsbl -0x51(%rbp), %eax
cmpl $0x26, %eax
setne %al
movb %al, -0xb4(%rbp)
movb -0xb4(%rbp), %al
movb %al, -0xb3(%rbp)
movb -0xb3(%rbp), %al
testb $0x1, %al
jne 0x833ed
jmp 0x833fb
movl -0x68(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x68(%rbp)
jmp 0x83349
jmp 0x83253
movl -0x74(%rbp), %eax
movb %al, -0x51(%rbp)
jmp 0x83509
cmpl $0x1, -0x64(%rbp)
jne 0x834dc
movsbl -0x51(%rbp), %eax
cmpl $0x26, %eax
je 0x8342b
movsbl -0x51(%rbp), %eax
cmpl $0x3d, %eax
jne 0x834dc
movq -0x50(%rbp), %rax
movl -0x6c(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x0, %eax
jne 0x834ae
jmp 0x83443
movq -0x18(%rbp), %rax
movslq -0x68(%rbp), %rcx
movsbl (%rax,%rcx), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0xb5(%rbp)
je 0x83492
movq -0x18(%rbp), %rax
movslq -0x68(%rbp), %rcx
movsbl (%rax,%rcx), %ecx
xorl %eax, %eax
cmpl $0x23, %ecx
movb %al, -0xb5(%rbp)
je 0x83492
movq -0x18(%rbp), %rax
movl -0x68(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x26, %eax
setne %al
movb %al, -0xb5(%rbp)
movb -0xb5(%rbp), %al
testb $0x1, %al
jne 0x8349e
jmp 0x834a9
movl -0x68(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x68(%rbp)
jmp 0x83443
jmp 0x83253
movsbl -0x51(%rbp), %eax
cmpl $0x26, %eax
jne 0x834cf
movq -0x50(%rbp), %rax
movl -0x6c(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0x6c(%rbp)
movslq %ecx, %rcx
movb $0x0, (%rax,%rcx)
jmp 0x834d6
movl $0x2, -0x64(%rbp)
movb $0x0, -0x51(%rbp)
jmp 0x83507
cmpl $0x0, -0x64(%rbp)
jne 0x834eb
movsbl -0x51(%rbp), %eax
cmpl $0x3f, %eax
je 0x834fa
cmpl $0x2, -0x64(%rbp)
jne 0x83505
movsbl -0x51(%rbp), %eax
cmpl $0x26, %eax
jne 0x83505
movb $0x0, -0x51(%rbp)
movl $0x1, -0x64(%rbp)
jmp 0x83507
jmp 0x83509
movb -0x51(%rbp), %dl
movq -0x50(%rbp), %rax
movl -0x6c(%rbp), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, -0x6c(%rbp)
movslq %ecx, %rcx
movb %dl, (%rax,%rcx)
jmp 0x83253
cmpl $0x1, -0x64(%rbp)
jne 0x83542
movq -0x50(%rbp), %rax
movl -0x6c(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0x6c(%rbp)
movslq %ecx, %rcx
movb $0x0, (%rax,%rcx)
movq -0x50(%rbp), %rax
movl -0x6c(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0x6c(%rbp)
movslq %ecx, %rcx
movb $0x0, (%rax,%rcx)
movq -0x50(%rbp), %rax
movl -0x6c(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0x6c(%rbp)
movslq %ecx, %rcx
movb $0x0, (%rax,%rcx)
movq -0x50(%rbp), %rax
movq %rax, -0xc0(%rbp)
movq -0x50(%rbp), %rdi
callq 0x92f0
movl %eax, %ecx
movq -0xc0(%rbp), %rax
addl $0x1, %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rax
cmpb $0x0, (%rax)
je 0x83856
movq -0x60(%rbp), %rdi
callq 0x92f0
movl %eax, -0x78(%rbp)
movq -0x60(%rbp), %rax
movl -0x78(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x80(%rbp)
movq -0x80(%rbp), %rdi
callq 0x92f0
movl %eax, -0x84(%rbp)
cmpl $0x3, -0x78(%rbp)
jne 0x83601
movq -0x60(%rbp), %rsi
leaq 0x2dc4d(%rip), %rdi     # 0xb1232
movl $0x3, %edx
callq 0x81c0
cmpl $0x0, %eax
jne 0x83601
movq -0x80(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0x8383a
movq $0x0, -0x90(%rbp)
movq $0x0, -0x98(%rbp)
movl $0x0, -0x9c(%rbp)
movl $0x0, -0xa0(%rbp)
cmpl $0x5, -0x78(%rbp)
jne 0x8367d
movq -0x60(%rbp), %rsi
leaq 0x2dbfa(%rip), %rdi     # 0xb1236
movl $0x5, %edx
callq 0x81c0
cmpl $0x0, %eax
jne 0x8367d
movl $0x60000, -0x9c(%rbp)   # imm = 0x60000
leaq 0x4d504(%rip), %rax     # 0xd0b60
movq %rax, -0x90(%rbp)
movl -0x9c(%rbp), %eax
movl %eax, -0xa0(%rbp)
leaq 0x2dbc0(%rip), %rax     # 0xb1236
movq %rax, -0x98(%rbp)
cmpl $0x4, -0x78(%rbp)
jne 0x836ce
movq -0x60(%rbp), %rax
movl (%rax), %eax
subl $0x65646f6d, %eax       # imm = 0x65646F6D
setne %al
movzbl %al, %eax
cmpl $0x0, %eax
jne 0x836ce
movl $0x87, -0x9c(%rbp)
leaq 0x4d4e6(%rip), %rax     # 0xd0b90
movq %rax, -0x90(%rbp)
movl -0x9c(%rbp), %eax
andl -0x40(%rbp), %eax
movl %eax, -0xa0(%rbp)
leaq 0x2aa5f(%rip), %rax     # 0xae126
movq %rax, -0x98(%rbp)
cmpq $0x0, -0x90(%rbp)
je 0x83838
movl $0x0, -0xa8(%rbp)
movl $0x0, -0xa4(%rbp)
movq -0x90(%rbp), %rax
movslq -0xa4(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
cmpq $0x0, (%rax)
je 0x837a7
movq -0x90(%rbp), %rax
movslq -0xa4(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq %rax, -0xb0(%rbp)
movl -0x84(%rbp), %eax
movl %eax, -0xc4(%rbp)
movq -0xb0(%rbp), %rdi
callq 0x92f0
movl %eax, %ecx
movl -0xc4(%rbp), %eax
cmpl %ecx, %eax
jne 0x83791
movq -0x80(%rbp), %rdi
movq -0xb0(%rbp), %rsi
movslq -0x84(%rbp), %rdx
callq 0x81c0
movl %eax, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jne 0x83791
movq -0x90(%rbp), %rax
movslq -0xa4(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
movl %eax, -0xa8(%rbp)
jmp 0x837a7
jmp 0x83793
movl -0xa4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xa4(%rbp)
jmp 0x836f0
cmpl $0x0, -0xa8(%rbp)
jne 0x837df
movq -0x98(%rbp), %rsi
movq -0x80(%rbp), %rdx
leaq 0x2da90(%rip), %rdi     # 0xb1252
movb $0x0, %al
callq 0xc400
movq %rax, %rcx
movq -0x38(%rbp), %rax
movq %rcx, (%rax)
movl $0x1, -0x3c(%rbp)
jmp 0x838f3
movl -0xa8(%rbp), %eax
andl $0xffffff7f, %eax       # imm = 0xFFFFFF7F
cmpl -0xa0(%rbp), %eax
jle 0x83821
movq -0x98(%rbp), %rsi
movq -0x80(%rbp), %rdx
leaq 0x2da62(%rip), %rdi     # 0xb1266
movb $0x0, %al
callq 0xc400
movq %rax, %rcx
movq -0x38(%rbp), %rax
movq %rcx, (%rax)
movl $0x3, -0x3c(%rbp)
jmp 0x838f3
movl -0x40(%rbp), %eax
movl -0x9c(%rbp), %ecx
xorl $-0x1, %ecx
andl %ecx, %eax
orl -0xa8(%rbp), %eax
movl %eax, -0x40(%rbp)
jmp 0x8383a
movq -0x80(%rbp), %rax
movl -0x84(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x60(%rbp)
jmp 0x83598
jmp 0x838b1
movl -0x58(%rbp), %edi
addl $0x2, %edi
callq 0xa380
movq %rax, -0x50(%rbp)
cmpq $0x0, -0x50(%rbp)
jne 0x8387a
movl $0x7, -0x4(%rbp)
jmp 0x83924
movq -0x50(%rbp), %rdi
movq -0x18(%rbp), %rsi
movslq -0x58(%rbp), %rdx
callq 0x82f0
movq -0x50(%rbp), %rax
movslq -0x58(%rbp), %rcx
movb $0x0, (%rax,%rcx)
movq -0x50(%rbp), %rax
movl -0x58(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movb $0x0, (%rax,%rcx)
movl -0x40(%rbp), %eax
andl $-0x41, %eax
movl %eax, -0x40(%rbp)
movq -0x48(%rbp), %rdi
callq 0x9dd0
movq %rax, %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
movq -0x28(%rbp), %rax
cmpq $0x0, (%rax)
jne 0x838f1
movq -0x48(%rbp), %rsi
leaq 0x2d9a5(%rip), %rdi     # 0xb127e
movb $0x0, %al
callq 0xc400
movq %rax, %rcx
movq -0x38(%rbp), %rax
movq %rcx, (%rax)
movl $0x1, -0x3c(%rbp)
jmp 0x838f3
cmpl $0x0, -0x3c(%rbp)
je 0x8390a
movq -0x50(%rbp), %rdi
callq 0xa420
movq $0x0, -0x50(%rbp)
movl -0x40(%rbp), %ecx
movq -0x20(%rbp), %rax
movl %ecx, (%rax)
movq -0x50(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movl -0x3c(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0xd0, %rsp
popq %rbp
retq