// File: /workspace/github_c_makefile_star2_O3/barabo[P]advanced-shell-history/src/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
  );

  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_malloc(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(MAX_PATHNAME+2, 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));
    if( fd<0 && errno!=EISDIR && isReadWrite && !isExclusive ){
      /* 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) ){
      osFchown(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;
#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 ){
    ((unixFile*)pFile)->lastErrno = 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;
  }
#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{
      if( statfs(zPath, &fsInfo) == -1 ){
        /* In theory, the close(fd) call is sub-optimal. If the file opened
        ** with fd is a database file, and there are other connections open
        ** on that file that are currently holding advisory locks on it,
        ** then the call to close() will cancel those locks. In practice,
        ** we're assuming that statfs() doesn't fail very often. At least
        ** not while other file descriptors opened by the same process on
        ** the same file are working.  */
        p->lastErrno = errno;
        robust_close(p, fd, __LINE__);
        rc = SQLITE_IOERR_ACCESS;
        goto open_finished;
      }
      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, -0x48(%rbp)
movl %ecx, %r12d
movq %rdx, %r14
movq %rsi, %r13
movq %rdi, -0x68(%rbp)
movl %ecx, %eax
andl $0xffffff00, %eax       # imm = 0xFFFFFF00
andl $0x8, %ecx
movq %rcx, -0x58(%rbp)
movl %r12d, %ecx
andl $0x1, %ecx
movl %ecx, -0x38(%rbp)
movl %r12d, %ebx
andl $0x2, %ebx
movl %r12d, %r15d
andl $0x4, %r15d
movq %rdx, -0x40(%rbp)
movq %rsi, -0x50(%rbp)
jne 0xbd6a
pxor %xmm0, %xmm0
movdqu %xmm0, 0x60(%r14)
movdqu %xmm0, 0x50(%r14)
movdqu %xmm0, 0x40(%r14)
movdqu %xmm0, 0x30(%r14)
movdqu %xmm0, 0x20(%r14)
movdqu %xmm0, 0x10(%r14)
movdqu %xmm0, (%r14)
cmpl $0x100, %eax            # imm = 0x100
jne 0xbdb7
leaq -0x310(%rbp), %rsi
movq %r13, %rdi
callq *0x88b92(%rip)          # 0x948b8
testl %eax, %eax
je 0xc0af
callq 0x9d86
movl $0x7, %r13d
testl %eax, %eax
jne 0xc2fe
cmpl $0x0, 0x886b8(%rip)     # 0x94400
je 0xc172
leaq -0x310(%rbp), %r14
movl $0x10, %edi
movq %r14, %rsi
callq 0x171f8
movq (%r14), %rax
jmp 0xc17d
cmpl $0x800, %eax            # imm = 0x800
je 0xbd83
cmpl $0x80000, %eax          # imm = 0x80000
je 0xbd83
cmpl $0x4000, %eax           # imm = 0x4000
jne 0xbcde
pxor %xmm0, %xmm0
movdqu %xmm0, 0x60(%r14)
movdqu %xmm0, 0x50(%r14)
movdqu %xmm0, 0x40(%r14)
movdqu %xmm0, 0x30(%r14)
movdqu %xmm0, 0x20(%r14)
movdqu %xmm0, 0x10(%r14)
movdqu %xmm0, (%r14)
movb $0x1, %al
movl %eax, -0x2c(%rbp)
jmp 0xbdbe
movl $0x0, -0x2c(%rbp)
movq %r13, %r14
testq %r13, %r13
je 0xbe13
shll $0x4, %r15d
leal (%r15,%rbx), %eax
testb $0x10, %r12b
leal 0x20080(%r15,%rbx), %r13d
cmovel %eax, %r13d
movl $0x0, -0x34(%rbp)
movl %r12d, %eax
andl $0x80800, %eax          # imm = 0x80800
movl %eax, -0x5c(%rbp)
je 0xbe37
testq %r14, %r14
je 0xbe52
movq $-0x1, %r15
cmpb $0x0, 0x1(%r14,%r15)
leaq 0x1(%r15), %r15
jne 0xbdfe
andl $0x3fffffff, %r15d      # imm = 0x3FFFFFFF
jmp 0xbe55
leaq -0x520(%rbp), %r14
movl $0x202, %edi            # imm = 0x202
movq %r14, %rsi
callq 0x18f72
movl $0x1, %r13d
testl %eax, %eax
jne 0xc2fe
jmp 0xbdc6
movq -0x58(%rbp), %rax
testl %eax, %eax
movl $0x180, %r15d           # imm = 0x180
cmovel %eax, %r15d
xorl %ebx, %ebx
movl $0x0, -0x30(%rbp)
jmp 0xbeba
xorl %r15d, %r15d
cmpb $0x2d, -0x1(%r14,%r15)
leaq -0x1(%r15), %r15
jne 0xbe55
leaq -0x310(%rbp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x82f0
movb $0x0, -0x310(%rbp,%r15)
leaq -0x100(%rbp), %rsi
movq %rbx, %rdi
callq *0x88a29(%rip)          # 0x948b8
testl %eax, %eax
je 0xbe9e
movl $0x70a, %r13d           # imm = 0x70A
jmp 0xc2fe
movl $0x1ff, %r15d           # imm = 0x1FF
andl -0xe8(%rbp), %r15d
movl -0xe4(%rbp), %eax
movl %eax, -0x30(%rbp)
movl -0xe0(%rbp), %ebx
movq %r14, %rdi
movl %r13d, %esi
movl %r15d, %edx
callq 0x18c99
testl %eax, %eax
js 0xc06b
movl %ebx, %edx
movl -0x38(%rbp), %ebx
movl %eax, %r15d
cmpl $0x0, -0x5c(%rbp)
movq -0x40(%rbp), %r13
je 0xbeee
movl %r15d, %edi
movl -0x30(%rbp), %esi
callq *0x88b4a(%rip)          # 0x94a38
movq -0x48(%rbp), %rax
testq %rax, %rax
je 0xbefa
movl %r12d, (%rax)
movq 0x30(%r13), %rax
testq %rax, %rax
je 0xbf0a
movl %r15d, (%rax)
movl %r12d, 0x4(%rax)
cmpl $0x0, -0x58(%rbp)
je 0xbf19
movq %r14, %rdi
callq *0x88abf(%rip)          # 0x949d8
movq -0x58(%rbp), %rcx
leal (,%rcx,4), %eax
testl %ebx, %ebx
leal 0x2(,%rcx,4), %ecx
cmovel %eax, %ecx
leal 0x80(%rcx), %eax
cmpb $0x0, -0x34(%rbp)
cmovnel %ecx, %eax
movl %eax, %ebx
orl $0x8, %ebx
cmpb $0x0, -0x2c(%rbp)
cmovel %eax, %ebx
andl $0x40, %r12d
orl %ebx, %r12d
movl %r15d, 0x18(%r13)
movq -0x68(%rbp), %r14
movq %r14, 0x8(%r13)
movq -0x50(%rbp), %rcx
movq %rcx, 0x38(%r13)
movw %r12w, 0x1e(%r13)
movq 0x885b8(%rip), %rax     # 0x94528
movq %rax, 0x60(%r13)
xorl %edi, %edi
testb $0x40, %r12b
movq %rcx, %r12
cmovneq %rcx, %rdi
leaq 0x6d7be(%rip), %rsi     # 0x79746
movl $0x1, %edx
callq 0x16f58
testl %eax, %eax
je 0xbf9b
orb $0x10, 0x1e(%r13)
movq 0x18(%r14), %rdi
leaq 0x6d49e(%rip), %rsi     # 0x79444
callq 0x8530
testl %eax, %eax
jne 0xbfb4
orb $0x1, 0x1e(%r13)
testb %bl, %bl
js 0xc048
movq 0x20(%r14), %rax
movq %r12, %rdi
movq %r13, %rsi
callq *(%rax)
leaq 0x86cb9(%rip), %r14     # 0x92c88
cmpq %r14, %rax
je 0xc131
leaq 0x86dd9(%rip), %rbx     # 0x92db8
movq %rax, %r14
cmpq %rbx, %rax
jne 0xc04f
movq %r12, %rdi
callq 0x8190
movq %rax, %r14
callq 0x9d86
testl %eax, %eax
je 0xc297
movq $0x0, 0x28(%r13)
movl $0x0, 0x20(%r13)
movl %r15d, %edi
callq *0x88858(%rip)          # 0x94870
movq %r13, %r15
movl $0x7, %r13d
testl %eax, %eax
je 0xc2f5
movq 0x38(%r15), %rdx
leaq 0x6d5f5(%rip), %rsi     # 0x79629
movl $0x100a, %edi           # imm = 0x100A
movl $0x6ebd, %ecx           # imm = 0x6EBD
callq 0x18d3b
jmp 0xc2f5
leaq 0x86cd1(%rip), %r14     # 0x92d20
movl $0x0, 0x20(%r13)
movq %r14, (%r13)
movq %r13, %rdi
callq 0x18a1a
xorl %r13d, %r13d
jmp 0xc2fe
callq 0x8060
movl %r12d, %ecx
andl $0x12, %ecx
cmpl $0x2, %ecx
jne 0xc0ea
cmpl $0x15, (%rax)
je 0xc0ea
andl $0x20080, %r13d         # imm = 0x20080
movq %r14, %rdi
movl %r13d, %esi
movl %r15d, %edx
callq 0x18c99
testl %eax, %eax
js 0xc0ea
movl %eax, %r15d
movl %ebx, %edx
andl $-0x18, %r12d
incl %r12d
movl $0x1, %ebx
jmp 0xbed8
movq 0x89e9a(%rip), %rcx     # 0x95f50
testq %rcx, %rcx
je 0xbd2e
movq -0x310(%rbp), %rax
movq -0x308(%rbp), %rdx
cmpq %rax, (%rcx)
jne 0xc0dc
cmpq %rdx, 0x8(%rcx)
je 0xc1da
movq 0x38(%rcx), %rcx
testq %rcx, %rcx
jne 0xc0cd
jmp 0xbd2e
leaq 0x6d5eb(%rip), %rsi     # 0x796dc
leaq 0x6d441(%rip), %rcx     # 0x79539
movl $0xe, %r13d
movl $0xe, %edi
movl $0x7039, %edx           # imm = 0x7039
xorl %eax, %eax
callq 0xb9c7
leaq 0x6d50e(%rip), %rsi     # 0x79624
movl $0xe, %edi
movq %r14, %rdx
movl $0x7039, %ecx           # imm = 0x7039
callq 0x18d3b
movq -0x40(%rbp), %r15
jmp 0xc2f5
movl 0x18(%r13), %edi
leaq -0x310(%rbp), %rsi
callq *0x8878e(%rip)          # 0x948d0
testl %eax, %eax
je 0xc21b
movl %r15d, %r12d
callq 0x8060
movl (%rax), %eax
movq %r13, %r15
movl %eax, 0x20(%r13)
cmpl $0x4b, %eax
movl $0x16, %eax
movl $0xa, %r13d
cmovel %eax, %r13d
jmp 0xc279
movl $0x10, %edi
callq *0x882a3(%rip)          # 0x94420
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
testq %rax, %rax
je 0xc2fe
movq -0x40(%rbp), %rcx
movq %rax, 0x30(%rcx)
shll $0x4, %r15d
leal (%r15,%rbx), %eax
testb $0x10, %r12b
leal 0x20080(%r15,%rbx), %r13d
cmovel %eax, %r13d
movb $0x1, %al
movl %eax, -0x34(%rbp)
movl $0x0, -0x2c(%rbp)
movq -0x50(%rbp), %r14
testl %edx, %edx
js 0xbde5
movl %edx, %r15d
movq -0x50(%rbp), %r14
movq -0x40(%rbp), %r13
movq -0x48(%rbp), %rax
movl -0x38(%rbp), %ebx
jmp 0xbef2
movq 0x30(%rcx), %rax
testq %rax, %rax
je 0xbd2e
cmpl %r12d, 0x4(%rax)
jne 0xc1f3
addq $0x30, %rcx
jmp 0xc20d
movq %rax, %rcx
movq 0x8(%rax), %rax
testq %rax, %rax
je 0xbd2e
cmpl %r12d, 0x4(%rax)
jne 0xc1f3
addq $0x8, %rcx
movq 0x8(%rax), %rdx
movq %rdx, (%rcx)
movl (%rax), %edx
jmp 0xc18b
movdqu -0x310(%rbp), %xmm0
movdqu %xmm0, -0x100(%rbp)
movq 0x89d1e(%rip), %rax     # 0x95f50
testq %rax, %rax
je 0xc260
movdqu -0x100(%rbp), %xmm0
movdqu (%rax), %xmm1
pcmpeqb %xmm0, %xmm1
pmovmskb %xmm1, %ecx
cmpl $0xffff, %ecx           # imm = 0xFFFF
je 0xc313
movq 0x38(%rax), %rax
testq %rax, %rax
jne 0xc23f
movl %r15d, %r12d
movq %r13, %r15
callq 0x9d86
movl $0x7, %r13d
testl %eax, %eax
je 0xc318
movl %r12d, %edi
callq *0x885ee(%rip)          # 0x94870
testl %eax, %eax
je 0xc2ed
movq %r15, %rax
testq %r15, %r15
je 0xc2d2
movq %rax, %r15
movq 0x38(%rax), %rdx
jmp 0xc2d7
addl $0x6, %r14d
movl %r14d, %edi
callq 0xa38c
testq %rax, %rax
je 0xbfff
leaq 0x6d498(%rip), %rdx     # 0x7974b
movl %r14d, %edi
movq %rax, %rsi
movq %r12, %rcx
movq %rax, %r14
xorl %eax, %eax
callq 0xb954
movq %r14, 0x28(%r13)
movq %rbx, %r14
jmp 0xc04f
movq %rax, %r15
xorl %edx, %edx
leaq 0x6d34b(%rip), %rsi     # 0x79629
movl $0x100a, %edi           # imm = 0x100A
movl $0x6e68, %ecx           # imm = 0x6E68
callq 0x18d3b
movl $0x0, 0x20(%r15)
movq 0x30(%r15), %rdi
callq 0xa3c7
movl %r13d, %eax
addq $0x4f8, %rsp            # imm = 0x4F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
incl 0x18(%rax)
jmp 0xc394
cmpl $0x0, 0x880e1(%rip)     # 0x94400
je 0xc337
leaq -0x70(%rbp), %rbx
movl $0x48, %edi
movq %rbx, %rsi
callq 0x171f8
movq (%rbx), %rax
jmp 0xc342
movl $0x48, %edi
callq *0x880de(%rip)          # 0x94420
testq %rax, %rax
je 0xc279
pxor %xmm0, %xmm0
movdqu %xmm0, 0x20(%rax)
movdqu %xmm0, 0x10(%rax)
xorl %edx, %edx
movq %rdx, 0x30(%rax)
movdqu -0x100(%rbp), %xmm0
movdqu %xmm0, (%rax)
movl $0x1, 0x18(%rax)
movq 0x89bd7(%rip), %rcx     # 0x95f50
movq %rcx, 0x38(%rax)
movq %rdx, 0x40(%rax)
testq %rcx, %rcx
je 0xc38a
movq %rax, 0x40(%rcx)
movq %rax, 0x89bbf(%rip)     # 0x95f50
movq %r15, %r13
movq %rax, 0x10(%r13)
jmp 0xc04f