// File: /workspace/github_c_makefile_star2_O3/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: unixOpen
static int unixOpen(
  sqlite3_vfs *pVfs,           /* The VFS for which this is the xOpen method */
  const char *zPath,           /* Pathname of file to be opened */
  sqlite3_file *pFile,         /* The file descriptor to be filled in */
  int flags,                   /* Input flags to control the opening */
  int *pOutFlags               /* Output flags returned to SQLite core */
){
  unixFile *p = (unixFile *)pFile;
  int fd = -1;                   /* File descriptor returned by open() */
  int openFlags = 0;             /* Flags to pass to open() */
  int eType = flags&0xFFFFFF00;  /* Type of file to open */
  int noLock;                    /* True to omit locking primitives */
  int rc = SQLITE_OK;            /* Function Return Code */
  int ctrlFlags = 0;             /* UNIXFILE_* flags */

  int isExclusive  = (flags & SQLITE_OPEN_EXCLUSIVE);
  int isDelete     = (flags & SQLITE_OPEN_DELETEONCLOSE);
  int isCreate     = (flags & SQLITE_OPEN_CREATE);
  int isReadonly   = (flags & SQLITE_OPEN_READONLY);
  int isReadWrite  = (flags & SQLITE_OPEN_READWRITE);
#if SQLITE_ENABLE_LOCKING_STYLE
  int isAutoProxy  = (flags & SQLITE_OPEN_AUTOPROXY);
#endif
#if defined(__APPLE__) || SQLITE_ENABLE_LOCKING_STYLE
  struct statfs fsInfo;
#endif

  /* If creating a master or main-file journal, this function will open
  ** a file-descriptor on the directory too. The first time unixSync()
  ** is called the directory file descriptor will be fsync()ed and close()d.
  */
  int syncDir = (isCreate && (
        eType==SQLITE_OPEN_MASTER_JOURNAL 
     || eType==SQLITE_OPEN_MAIN_JOURNAL 
     || eType==SQLITE_OPEN_WAL
  ));

  /* If argument zPath is a NULL pointer, this function is required to open
  ** a temporary file. Use this buffer to store the file name in.
  */
  char zTmpname[MAX_PATHNAME+2];
  const char *zName = zPath;

  /* Check the following statements are true: 
  **
  **   (a) Exactly one of the READWRITE and READONLY flags must be set, and 
  **   (b) if CREATE is set, then READWRITE must also be set, and
  **   (c) if EXCLUSIVE is set, then CREATE must also be set.
  **   (d) if DELETEONCLOSE is set, then CREATE must also be set.
  */
  assert((isReadonly==0 || isReadWrite==0) && (isReadWrite || isReadonly));
  assert(isCreate==0 || isReadWrite);
  assert(isExclusive==0 || isCreate);
  assert(isDelete==0 || isCreate);

  /* The main DB, main journal, WAL file and master journal are never 
  ** automatically deleted. Nor are they ever temporary files.  */
  assert( (!isDelete && zName) || eType!=SQLITE_OPEN_MAIN_DB );
  assert( (!isDelete && zName) || eType!=SQLITE_OPEN_MAIN_JOURNAL );
  assert( (!isDelete && zName) || eType!=SQLITE_OPEN_MASTER_JOURNAL );
  assert( (!isDelete && zName) || eType!=SQLITE_OPEN_WAL );

  /* Assert that the upper layer has set one of the "file-type" flags. */
  assert( eType==SQLITE_OPEN_MAIN_DB      || eType==SQLITE_OPEN_TEMP_DB 
       || eType==SQLITE_OPEN_MAIN_JOURNAL || eType==SQLITE_OPEN_TEMP_JOURNAL 
       || eType==SQLITE_OPEN_SUBJOURNAL   || eType==SQLITE_OPEN_MASTER_JOURNAL 
       || eType==SQLITE_OPEN_TRANSIENT_DB || eType==SQLITE_OPEN_WAL
  );

  /* Detect a pid change and reset the PRNG.  There is a race condition
  ** here such that two or more threads all trying to open databases at
  ** the same instant might all reset the PRNG.  But multiple resets
  ** are harmless.
  */
  if( randomnessPid!=osGetpid(0) ){
    randomnessPid = osGetpid(0);
    sqlite3_randomness(0,0);
  }

  memset(p, 0, sizeof(unixFile));

  if( eType==SQLITE_OPEN_MAIN_DB ){
    UnixUnusedFd *pUnused;
    pUnused = findReusableFd(zName, flags);
    if( pUnused ){
      fd = pUnused->fd;
    }else{
      pUnused = sqlite3_malloc64(sizeof(*pUnused));
      if( !pUnused ){
        return SQLITE_NOMEM;
      }
    }
    p->pUnused = pUnused;

    /* Database filenames are double-zero terminated if they are not
    ** URIs with parameters.  Hence, they can always be passed into
    ** sqlite3_uri_parameter(). */
    assert( (flags & SQLITE_OPEN_URI) || zName[strlen(zName)+1]==0 );

  }else if( !zName ){
    /* If zName is NULL, the upper layer is requesting a temp file. */
    assert(isDelete && !syncDir);
    rc = unixGetTempname(pVfs->mxPathname, zTmpname);
    if( rc!=SQLITE_OK ){
      return rc;
    }
    zName = zTmpname;

    /* Generated temporary filenames are always double-zero terminated
    ** for use by sqlite3_uri_parameter(). */
    assert( zName[strlen(zName)+1]==0 );
  }

  /* Determine the value of the flags parameter passed to POSIX function
  ** open(). These must be calculated even if open() is not called, as
  ** they may be stored as part of the file handle and used by the 
  ** 'conch file' locking functions later on.  */
  if( isReadonly )  openFlags |= O_RDONLY;
  if( isReadWrite ) openFlags |= O_RDWR;
  if( isCreate )    openFlags |= O_CREAT;
  if( isExclusive ) openFlags |= (O_EXCL|O_NOFOLLOW);
  openFlags |= (O_LARGEFILE|O_BINARY);

  if( fd<0 ){
    mode_t openMode;              /* Permissions to create file with */
    uid_t uid;                    /* Userid for the file */
    gid_t gid;                    /* Groupid for the file */
    rc = findCreateFileMode(zName, flags, &openMode, &uid, &gid);
    if( rc!=SQLITE_OK ){
      assert( !p->pUnused );
      assert( eType==SQLITE_OPEN_WAL || eType==SQLITE_OPEN_MAIN_JOURNAL );
      return rc;
    }
    fd = robust_open(zName, openFlags, openMode);
    OSTRACE(("OPENX   %-3d %s 0%o\n", fd, zName, openFlags));
    assert( !isExclusive || (openFlags & O_CREAT)!=0 );
    if( fd<0 && errno!=EISDIR && isReadWrite ){
      /* Failed to open the file for read/write access. Try read-only. */
      flags &= ~(SQLITE_OPEN_READWRITE|SQLITE_OPEN_CREATE);
      openFlags &= ~(O_RDWR|O_CREAT);
      flags |= SQLITE_OPEN_READONLY;
      openFlags |= O_RDONLY;
      isReadonly = 1;
      fd = robust_open(zName, openFlags, openMode);
    }
    if( fd<0 ){
      rc = unixLogError(SQLITE_CANTOPEN_BKPT, "open", zName);
      goto open_finished;
    }

    /* If this process is running as root and if creating a new rollback
    ** journal or WAL file, set the ownership of the journal or WAL to be
    ** the same as the original database.
    */
    if( flags & (SQLITE_OPEN_WAL|SQLITE_OPEN_MAIN_JOURNAL) ){
      robustFchown(fd, uid, gid);
    }
  }
  assert( fd>=0 );
  if( pOutFlags ){
    *pOutFlags = flags;
  }

  if( p->pUnused ){
    p->pUnused->fd = fd;
    p->pUnused->flags = flags;
  }

  if( isDelete ){
#if OS_VXWORKS
    zPath = zName;
#elif defined(SQLITE_UNLINK_AFTER_CLOSE)
    zPath = sqlite3_mprintf("%s", zName);
    if( zPath==0 ){
      robust_close(p, fd, __LINE__);
      return SQLITE_NOMEM;
    }
#else
    osUnlink(zName);
#endif
  }
#if SQLITE_ENABLE_LOCKING_STYLE
  else{
    p->openFlags = openFlags;
  }
#endif

  noLock = eType!=SQLITE_OPEN_MAIN_DB;

  
#if defined(__APPLE__) || SQLITE_ENABLE_LOCKING_STYLE
  if( fstatfs(fd, &fsInfo) == -1 ){
    storeLastErrno(p, errno);
    robust_close(p, fd, __LINE__);
    return SQLITE_IOERR_ACCESS;
  }
  if (0 == strncmp("msdos", fsInfo.f_fstypename, 5)) {
    ((unixFile*)pFile)->fsFlags |= SQLITE_FSFLAGS_IS_MSDOS;
  }
  if (0 == strncmp("exfat", fsInfo.f_fstypename, 5)) {
    ((unixFile*)pFile)->fsFlags |= SQLITE_FSFLAGS_IS_MSDOS;
  }
#endif

  /* Set up appropriate ctrlFlags */
  if( isDelete )                ctrlFlags |= UNIXFILE_DELETE;
  if( isReadonly )              ctrlFlags |= UNIXFILE_RDONLY;
  if( noLock )                  ctrlFlags |= UNIXFILE_NOLOCK;
  if( syncDir )                 ctrlFlags |= UNIXFILE_DIRSYNC;
  if( flags & SQLITE_OPEN_URI ) ctrlFlags |= UNIXFILE_URI;

#if SQLITE_ENABLE_LOCKING_STYLE
#if SQLITE_PREFER_PROXY_LOCKING
  isAutoProxy = 1;
#endif
  if( isAutoProxy && (zPath!=NULL) && (!noLock) && pVfs->xOpen ){
    char *envforce = getenv("SQLITE_FORCE_PROXY_LOCKING");
    int useProxy = 0;

    /* SQLITE_FORCE_PROXY_LOCKING==1 means force always use proxy, 0 means 
    ** never use proxy, NULL means use proxy for non-local files only.  */
    if( envforce!=NULL ){
      useProxy = atoi(envforce)>0;
    }else{
      useProxy = !(fsInfo.f_flags&MNT_LOCAL);
    }
    if( useProxy ){
      rc = fillInUnixFile(pVfs, fd, pFile, zPath, ctrlFlags);
      if( rc==SQLITE_OK ){
        rc = proxyTransformUnixFile((unixFile*)pFile, ":auto:");
        if( rc!=SQLITE_OK ){
          /* Use unixClose to clean up the resources added in fillInUnixFile 
          ** and clear all the structure's references.  Specifically, 
          ** pFile->pMethods will be NULL so sqlite3OsClose will be a no-op 
          */
          unixClose(pFile);
          return rc;
        }
      }
      goto open_finished;
    }
  }
#endif
  
  rc = fillInUnixFile(pVfs, fd, pFile, zPath, ctrlFlags);

open_finished:
  if( rc!=SQLITE_OK ){
    sqlite3_free(p->pUnused);
  }
  return rc;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x4f8, %rsp            # imm = 0x4F8
movq %r8, -0x38(%rbp)
movl %ecx, %r12d
movq %rdx, %rbx
movq %rsi, %r13
movq %rdi, -0x58(%rbp)
movl %ecx, %eax
andl $0xffffff00, %eax       # imm = 0xFFFFFF00
movl %ecx, %r15d
andl $0x4, %r15d
movl %eax, -0x48(%rbp)
jne 0xe1ed
xorl %ecx, %ecx
movl %ecx, -0x64(%rbp)
movl 0x852fb(%rip), %r14d    # 0x93448
callq 0xa170
cmpl %eax, %r14d
je 0xe16b
callq 0xa170
movl %eax, 0x852e6(%rip)     # 0x93448
xorl %edi, %edi
xorl %esi, %esi
callq 0xa370
pxor %xmm0, %xmm0
movdqu %xmm0, 0x60(%rbx)
movdqu %xmm0, 0x50(%rbx)
movdqu %xmm0, 0x40(%rbx)
movdqu %xmm0, 0x30(%rbx)
movdqu %xmm0, 0x20(%rbx)
movdqu %xmm0, 0x10(%rbx)
movdqu %xmm0, (%rbx)
cmpl $0x100, -0x48(%rbp)     # imm = 0x100
movq %r13, -0x50(%rbp)
jne 0xe215
leaq -0x510(%rbp), %rsi
movq %r13, %rdi
callq *0x8364a(%rip)          # 0x917f8
testl %eax, %eax
je 0xe24e
callq 0xa080
movl $0x7, %r13d
testl %eax, %eax
jne 0xe7ac
movl $0x10, %edi
callq 0xc0e2
testq %rax, %rax
je 0xe7ac
movq %rax, %r14
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq -0x50(%rbp), %r13
jmp 0xe308
movb $0x1, %cl
cmpl $0x800, %eax            # imm = 0x800
je 0xe143
cmpl $0x4000, %eax           # imm = 0x4000
je 0xe143
cmpl $0x80000, %eax          # imm = 0x80000
jne 0xe141
jmp 0xe143
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
testq %r13, %r13
jne 0xe30c
movq -0x58(%rbp), %rax
movl 0x8(%rax), %edi
leaq -0x510(%rbp), %r14
movq %r14, %rsi
callq 0x1de77
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl %eax, %r13d
testl %eax, %eax
jne 0xe7ac
jmp 0xe30f
cmpl $0x0, 0x830df(%rip)     # 0x91334
je 0xe270
movl $0xb, %edi
callq *0x83146(%rip)          # 0x913a8
testq %rax, %rax
je 0xe270
movq %rax, %rdi
callq *0x83148(%rip)          # 0x913b8
movq 0x851c9(%rip), %rax     # 0x93440
testq %rax, %rax
je 0xe2d7
movq -0x510(%rbp), %rcx
movq -0x508(%rbp), %rdx
xorl %r14d, %r14d
cmpq %rcx, (%rax)
jne 0xe298
cmpq %rdx, 0x8(%rax)
je 0xe2a3
movq 0x38(%rax), %rax
testq %rax, %rax
jne 0xe28d
jmp 0xe2da
movq 0x30(%rax), %r14
testq %r14, %r14
je 0xe2d7
cmpl %r12d, 0x4(%r14)
jne 0xe2b8
addq $0x30, %rax
jmp 0xe2ce
movq %r14, %rax
movq 0x8(%r14), %r14
testq %r14, %r14
je 0xe2d7
cmpl %r12d, 0x4(%r14)
jne 0xe2b8
addq $0x8, %rax
movq 0x8(%r14), %rcx
movq %rcx, (%rax)
jmp 0xe2da
xorl %r14d, %r14d
cmpl $0x0, 0x83053(%rip)     # 0x91334
je 0xe2fc
movl $0xb, %edi
callq *0x830ba(%rip)          # 0x913a8
testq %rax, %rax
je 0xe2fc
movq %rax, %rdi
callq *0x830cc(%rip)          # 0x913c8
testq %r14, %r14
je 0xe1b6
movl (%r14), %edx
movq %r14, 0x30(%rbx)
movq %r13, %r14
movl %r12d, %ecx
andl $0x8, %ecx
movl %r12d, %r8d
andl $0x1, %r8d
movl %r12d, %r13d
andl $0x2, %r13d
shll $0x4, %r15d
leal (%r15,%r13), %eax
testb $0x10, %r12b
leal 0x20080(%r15,%r13), %esi
cmovel %eax, %esi
testl %edx, %edx
js 0xe49f
movq -0x50(%rbp), %r13
movq -0x58(%rbp), %r15
movq -0x38(%rbp), %rax
testq %rax, %rax
je 0xe356
movl %r12d, (%rax)
movq 0x30(%rbx), %rax
testq %rax, %rax
je 0xe365
movl %edx, (%rax)
movl %r12d, 0x4(%rax)
testl %ecx, %ecx
je 0xe396
movq %r14, %rdi
movl %edx, %r14d
movq %rcx, %r15
movq %rbx, -0x38(%rbp)
movq %r13, %rbx
movl %r8d, %r13d
callq *0x83596(%rip)          # 0x91918
movl %r13d, %r8d
movq %rbx, %r13
movq -0x38(%rbp), %rbx
movq %r15, %rcx
movq -0x58(%rbp), %r15
movl %r14d, %edx
leal (,%rcx,4), %eax
testl %r8d, %r8d
leal 0x2(,%rcx,4), %ecx
cmovel %eax, %ecx
leal 0x80(%rcx), %eax
cmpl $0x100, -0x48(%rbp)     # imm = 0x100
cmovel %ecx, %eax
movl %eax, %r14d
orl $0x8, %r14d
cmpb $0x0, -0x64(%rbp)
cmovel %eax, %r14d
andl $0x40, %r12d
orl %r14d, %r12d
movl %edx, -0x2c(%rbp)
movl %edx, 0x18(%rbx)
movq %r15, 0x8(%rbx)
movq %r13, 0x38(%rbx)
movw %r12w, 0x1e(%rbx)
movq 0x83076(%rip), %rax     # 0x91460
movq %rax, 0x60(%rbx)
xorl %edi, %edi
testb $0x40, %r12b
cmovneq %r13, %rdi
leaq 0x6d00e(%rip), %rsi     # 0x7b40d
movl $0x1, %edx
callq 0xa0f0
testl %eax, %eax
je 0xe411
orb $0x10, 0x1e(%rbx)
movq 0x18(%r15), %rdi
leaq 0x6cc58(%rip), %rsi     # 0x7b074
callq 0xa2c0
testl %eax, %eax
jne 0xe429
orb $0x1, 0x1e(%rbx)
testb %r14b, %r14b
js 0xe47b
movq 0x20(%r15), %rax
movq %r13, %rdi
movq %rbx, %rsi
callq *(%rax)
leaq 0x81267(%rip), %r12     # 0x8f6a8
cmpq %r12, %rax
je 0xe4d0
leaq 0x81387(%rip), %r12     # 0x8f7d8
cmpq %r12, %rax
jne 0xe482
movq %r13, %rdi
callq 0xa190
movq %rax, %r14
callq 0xa080
movl $0x7, %r13d
testl %eax, %eax
je 0xe747
xorl %eax, %eax
jmp 0xe77b
leaq 0x812be(%rip), %rax     # 0x8f740
movl $0x0, 0x20(%rbx)
movq %rax, %r12
movq %r12, (%rbx)
movq %rbx, %rdi
callq 0x1d8ff
xorl %r13d, %r13d
jmp 0xe7ac
movl %r12d, %eax
andl $0x80800, %eax          # imm = 0x80800
movl %eax, -0x2c(%rbp)
movq %rcx, -0x60(%rbp)
movl %r8d, -0x30(%rbp)
movl %esi, -0x44(%rbp)
je 0xe51f
testq %r14, %r14
je 0xe53b
movq %r14, %rdi
callq 0xa190
movq %rax, %r15
andl $0x3fffffff, %r15d      # imm = 0x3FFFFFFF
jmp 0xe53e
cmpl $0x0, 0x82e5d(%rip)     # 0x91334
je 0xe4f2
movl $0xb, %edi
callq *0x82ec4(%rip)          # 0x913a8
testq %rax, %rax
je 0xe4f2
movq %rax, %rdi
callq *0x82ec6(%rip)          # 0x913b8
movl 0x18(%rbx), %edi
leaq -0x300(%rbp), %rsi
callq *0x8330e(%rip)          # 0x91810
testl %eax, %eax
je 0xe6b0
callq 0xa0b0
movl (%rax), %eax
movl %eax, 0x20(%rbx)
movl $0xa, %r13d
jmp 0xe708
testl %ecx, %ecx
movl $0x180, %r15d           # imm = 0x180
cmovel %ecx, %r15d
movl $0x0, -0x40(%rbp)
movl $0x0, -0x3c(%rbp)
jmp 0xe5aa
xorl %r15d, %r15d
cmpb $0x2d, -0x1(%r14,%r15)
leaq -0x1(%r15), %r15
jne 0xe53e
leaq -0x300(%rbp), %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0xa320
movb $0x0, -0x300(%rbp,%r15)
leaq -0xf8(%rbp), %rsi
leaq -0x300(%rbp), %rdi
callq *0x8327f(%rip)          # 0x917f8
testl %eax, %eax
je 0xe588
movl $0x70a, %r13d           # imm = 0x70A
jmp 0xe7ac
movl $0x1ff, %r15d           # imm = 0x1FF
andl -0xe0(%rbp), %r15d
movl -0xdc(%rbp), %eax
movl %eax, -0x3c(%rbp)
movl -0xd8(%rbp), %eax
movl %eax, -0x40(%rbp)
movl -0x44(%rbp), %esi
movq %r14, %rdi
movl %r15d, %edx
callq 0x1db3d
testl %eax, %eax
js 0xe601
movl %eax, %edx
movl -0x30(%rbp), %r8d
cmpl $0x0, -0x2c(%rbp)
movq -0x50(%rbp), %r13
movq -0x58(%rbp), %r15
je 0xe63f
movl %r8d, -0x30(%rbp)
movl %edx, -0x2c(%rbp)
callq *0x833b6(%rip)          # 0x91990
testl %eax, %eax
jne 0xe5ed
movl -0x2c(%rbp), %edi
movl -0x3c(%rbp), %esi
movl -0x40(%rbp), %edx
callq *0x8338b(%rip)          # 0x91978
movl -0x2c(%rbp), %edx
movq -0x38(%rbp), %rax
movq -0x60(%rbp), %rcx
movl -0x30(%rbp), %r8d
jmp 0xe34e
callq 0xa0b0
testl %r13d, %r13d
je 0xe64c
cmpl $0x15, (%rax)
je 0xe64c
movl -0x44(%rbp), %esi
andl $0x20080, %esi          # imm = 0x20080
movq %r14, %rdi
movl %r15d, %edx
movq %rax, %r15
callq 0x1db3d
movl %eax, %edx
movq %r15, %rax
testl %edx, %edx
js 0xe64c
andl $-0x8, %r12d
incl %r12d
movl $0x1, %r8d
jmp 0xe5bf
movq -0x38(%rbp), %rax
movq -0x60(%rbp), %rcx
jmp 0xe34e
leaq 0x6cd43(%rip), %rsi     # 0x7b396
leaq 0x6cb33(%rip), %rcx     # 0x7b18d
movl $0xe, %r13d
movl $0xe, %edi
movl $0x800e, %edx           # imm = 0x800E
movq %rax, %r15
xorl %eax, %eax
callq 0xa4c0
movl (%r15), %ecx
testq %r14, %r14
leaq 0x6fa20(%rip), %rax     # 0x7e0a1
cmoveq %rax, %r14
movq %rax, (%rsp)
leaq 0x6cce7(%rip), %rsi     # 0x7b377
leaq 0x6cbf5(%rip), %r8      # 0x7b28c
movl $0xe, %edi
movl $0x800e, %edx           # imm = 0x800E
movq %r14, %r9
xorl %eax, %eax
callq 0xa4c0
jmp 0xe7a3
movdqu -0x300(%rbp), %xmm0
movdqu %xmm0, -0xf8(%rbp)
movq 0x84d79(%rip), %rax     # 0x93440
testq %rax, %rax
je 0xe6f5
movdqu -0xf8(%rbp), %xmm0
movdqu (%rax), %xmm1
pcmpeqb %xmm0, %xmm1
pmovmskb %xmm1, %ecx
cmpl $0xffff, %ecx           # imm = 0xFFFF
je 0xe7c1
movq 0x38(%rax), %rax
testq %rax, %rax
jne 0xe6d4
callq 0xa080
movl $0x7, %r13d
testl %eax, %eax
je 0xe7c9
movq %rbx, %rdi
movl -0x2c(%rbp), %esi
movl $0x7e3d, %edx           # imm = 0x7E3D
callq 0x1dcda
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
cmpl $0x0, 0x82c10(%rip)     # 0x91334
je 0xe782
movl %esi, %r14d
movl $0xb, %edi
callq *0x82c74(%rip)          # 0x913a8
testq %rax, %rax
je 0xe742
movq %rax, %rdi
callq *0x82c86(%rip)          # 0x913c8
movl %r14d, %esi
jmp 0xe782
addl $0x6, %r14d
movslq %r14d, %rdi
callq 0xc0e2
movq %rax, %r15
xorl %eax, %eax
testq %r15, %r15
je 0xe77b
leaq 0x6ccae(%rip), %rdx     # 0x7b412
movl %r14d, %edi
movq %r15, %rsi
movq -0x50(%rbp), %rcx
xorl %eax, %eax
callq 0xa350
movq %r15, %rax
xorl %r13d, %r13d
movq %rax, 0x28(%rbx)
movl -0x2c(%rbp), %esi
movl $0x0, 0x20(%rbx)
testl %r13d, %r13d
je 0xe48c
testl %esi, %esi
js 0xe7a3
movq %rbx, %rdi
movl $0x7e92, %edx           # imm = 0x7E92
callq 0x1dcda
movq 0x30(%rbx), %rdi
callq 0xa630
movl %r13d, %eax
addq $0x4f8, %rsp            # imm = 0x4F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
incl 0x18(%rax)
movl -0x2c(%rbp), %esi
jmp 0xe825
movl $0x48, %edi
callq 0xc0e2
testq %rax, %rax
je 0xe708
pxor %xmm0, %xmm0
movdqu %xmm0, 0x20(%rax)
movdqu %xmm0, 0x10(%rax)
xorl %edx, %edx
movq %rdx, 0x30(%rax)
movdqu -0xf8(%rbp), %xmm0
movdqu %xmm0, (%rax)
movl $0x1, 0x18(%rax)
movq 0x84c36(%rip), %rcx     # 0x93440
movq %rcx, 0x38(%rax)
movq %rdx, 0x40(%rax)
testq %rcx, %rcx
movl -0x2c(%rbp), %esi
je 0xe81e
movq %rax, 0x40(%rcx)
movq %rax, 0x84c1b(%rip)     # 0x93440
movq %rax, 0x10(%rbx)
xorl %r13d, %r13d
jmp 0xe71d