// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/external/expat-2.0.1/lib/xmlparse.c
// Function: storeAtts
static enum XML_Error
storeAtts(XML_Parser parser, const ENCODING *enc,
          const char *attStr, TAG_NAME *tagNamePtr,
          BINDING **bindingsPtr)
{
  DTD * const dtd = _dtd;  /* save one level of indirection */
  ELEMENT_TYPE *elementType;
  int nDefaultAtts;
  const XML_Char **appAtts;   /* the attribute list for the application */
  int attIndex = 0;
  int prefixLen;
  int i;
  int n;
  XML_Char *uri;
  int nPrefixes = 0;
  BINDING *binding;
  const XML_Char *localPart;

  /* lookup the element type name */
  elementType = (ELEMENT_TYPE *)lookup(&dtd->elementTypes, tagNamePtr->str,0);
  if (!elementType) {
    const XML_Char *name = poolCopyString(&dtd->pool, tagNamePtr->str);
    if (!name)
      return XML_ERROR_NO_MEMORY;
    elementType = (ELEMENT_TYPE *)lookup(&dtd->elementTypes, name,
                                         sizeof(ELEMENT_TYPE));
    if (!elementType)
      return XML_ERROR_NO_MEMORY;
    if (ns && !setElementTypePrefix(parser, elementType))
      return XML_ERROR_NO_MEMORY;
  }
  nDefaultAtts = elementType->nDefaultAtts;

  /* get the attributes from the tokenizer */
  n = XmlGetAttributes(enc, attStr, attsSize, atts);
  if (n + nDefaultAtts > attsSize) {
    int oldAttsSize = attsSize;
    ATTRIBUTE *temp;
    attsSize = n + nDefaultAtts + INIT_ATTS_SIZE;
    temp = (ATTRIBUTE *)REALLOC((void *)atts, attsSize * sizeof(ATTRIBUTE));
    if (temp == NULL)
      return XML_ERROR_NO_MEMORY;
    atts = temp;
    if (n > oldAttsSize)
      XmlGetAttributes(enc, attStr, n, atts);
  }

  appAtts = (const XML_Char **)atts;
  for (i = 0; i < n; i++) {
    /* add the name and value to the attribute list */
    ATTRIBUTE_ID *attId = getAttributeId(parser, enc, atts[i].name,
                                         atts[i].name
                                         + XmlNameLength(enc, atts[i].name));
    if (!attId)
      return XML_ERROR_NO_MEMORY;
    /* Detect duplicate attributes by their QNames. This does not work when
       namespace processing is turned on and different prefixes for the same
       namespace are used. For this case we have a check further down.
    */
    if ((attId->name)[-1]) {
      if (enc == encoding)
        eventPtr = atts[i].name;
      return XML_ERROR_DUPLICATE_ATTRIBUTE;
    }
    (attId->name)[-1] = 1;
    appAtts[attIndex++] = attId->name;
    if (!atts[i].normalized) {
      enum XML_Error result;
      XML_Bool isCdata = XML_TRUE;

      /* figure out whether declared as other than CDATA */
      if (attId->maybeTokenized) {
        int j;
        for (j = 0; j < nDefaultAtts; j++) {
          if (attId == elementType->defaultAtts[j].id) {
            isCdata = elementType->defaultAtts[j].isCdata;
            break;
          }
        }
      }

      /* normalize the attribute value */
      result = storeAttributeValue(parser, enc, isCdata,
                                   atts[i].valuePtr, atts[i].valueEnd,
                                   &tempPool);
      if (result)
        return result;
      appAtts[attIndex] = poolStart(&tempPool);
      poolFinish(&tempPool);
    }
    else {
      /* the value did not need normalizing */
      appAtts[attIndex] = poolStoreString(&tempPool, enc, atts[i].valuePtr,
                                          atts[i].valueEnd);
      if (appAtts[attIndex] == 0)
        return XML_ERROR_NO_MEMORY;
      poolFinish(&tempPool);
    }
    /* handle prefixed attribute names */
    if (attId->prefix) {
      if (attId->xmlns) {
        /* deal with namespace declarations here */
        enum XML_Error result = addBinding(parser, attId->prefix, attId,
                                           appAtts[attIndex], bindingsPtr);
        if (result)
          return result;
        --attIndex;
      }
      else {
        /* deal with other prefixed names later */
        attIndex++;
        nPrefixes++;
        (attId->name)[-1] = 2;
      }
    }
    else
      attIndex++;
  }

  /* set-up for XML_GetSpecifiedAttributeCount and XML_GetIdAttributeIndex */
  nSpecifiedAtts = attIndex;
  if (elementType->idAtt && (elementType->idAtt->name)[-1]) {
    for (i = 0; i < attIndex; i += 2)
      if (appAtts[i] == elementType->idAtt->name) {
        idAttIndex = i;
        break;
      }
  }
  else
    idAttIndex = -1;

  /* do attribute defaulting */
  for (i = 0; i < nDefaultAtts; i++) {
    const DEFAULT_ATTRIBUTE *da = elementType->defaultAtts + i;
    if (!(da->id->name)[-1] && da->value) {
      if (da->id->prefix) {
        if (da->id->xmlns) {
          enum XML_Error result = addBinding(parser, da->id->prefix, da->id,
                                             da->value, bindingsPtr);
          if (result)
            return result;
        }
        else {
          (da->id->name)[-1] = 2;
          nPrefixes++;
          appAtts[attIndex++] = da->id->name;
          appAtts[attIndex++] = da->value;
        }
      }
      else {
        (da->id->name)[-1] = 1;
        appAtts[attIndex++] = da->id->name;
        appAtts[attIndex++] = da->value;
      }
    }
  }
  appAtts[attIndex] = 0;

  /* expand prefixed attribute names, check for duplicates,
     and clear flags that say whether attributes were specified */
  i = 0;
  if (nPrefixes) {
    int j;  /* hash table index */
    unsigned long version = nsAttsVersion;
    int nsAttsSize = (int)1 << nsAttsPower;
    /* size of hash table must be at least 2 * (# of prefixed attributes) */
    if ((nPrefixes << 1) >> nsAttsPower) {  /* true for nsAttsPower = 0 */
      NS_ATT *temp;
      /* hash table size must also be a power of 2 and >= 8 */
      while (nPrefixes >> nsAttsPower++);
      if (nsAttsPower < 3)
        nsAttsPower = 3;
      nsAttsSize = (int)1 << nsAttsPower;
      temp = (NS_ATT *)REALLOC(nsAtts, nsAttsSize * sizeof(NS_ATT));
      if (!temp)
        return XML_ERROR_NO_MEMORY;
      nsAtts = temp;
      version = 0;  /* force re-initialization of nsAtts hash table */
    }
    /* using a version flag saves us from initializing nsAtts every time */
    if (!version) {  /* initialize version flags when version wraps around */
      version = INIT_ATTS_VERSION;
      for (j = nsAttsSize; j != 0; )
        nsAtts[--j].version = version;
    }
    nsAttsVersion = --version;

    /* expand prefixed names and check for duplicates */
    for (; i < attIndex; i += 2) {
      const XML_Char *s = appAtts[i];
      if (s[-1] == 2) {  /* prefixed */
        ATTRIBUTE_ID *id;
        const BINDING *b;
        unsigned long uriHash = 0;
        ((XML_Char *)s)[-1] = 0;  /* clear flag */
        id = (ATTRIBUTE_ID *)lookup(&dtd->attributeIds, s, 0);
        b = id->prefix->binding;
        if (!b)
          return XML_ERROR_UNBOUND_PREFIX;

        /* as we expand the name we also calculate its hash value */
        for (j = 0; j < b->uriLen; j++) {
          const XML_Char c = b->uri[j];
          if (!poolAppendChar(&tempPool, c))
            return XML_ERROR_NO_MEMORY;
          uriHash = CHAR_HASH(uriHash, c);
        }
        while (*s++ != XML_T(ASCII_COLON))
          ;
        do {  /* copies null terminator */
          const XML_Char c = *s;
          if (!poolAppendChar(&tempPool, *s))
            return XML_ERROR_NO_MEMORY;
          uriHash = CHAR_HASH(uriHash, c);
        } while (*s++);

        { /* Check hash table for duplicate of expanded name (uriName).
             Derived from code in lookup(HASH_TABLE *table, ...).
          */
          unsigned char step = 0;
          unsigned long mask = nsAttsSize - 1;
          j = uriHash & mask;  /* index into hash table */
          while (nsAtts[j].version == version) {
            /* for speed we compare stored hash values first */
            if (uriHash == nsAtts[j].hash) {
              const XML_Char *s1 = poolStart(&tempPool);
              const XML_Char *s2 = nsAtts[j].uriName;
              /* s1 is null terminated, but not s2 */
              for (; *s1 == *s2 && *s1 != 0; s1++, s2++);
              if (*s1 == 0)
                return XML_ERROR_DUPLICATE_ATTRIBUTE;
            }
            if (!step)
              step = PROBE_STEP(uriHash, mask, nsAttsPower);
            j < step ? (j += nsAttsSize - step) : (j -= step);
          }
        }

        if (ns_triplets) {  /* append namespace separator and prefix */
          tempPool.ptr[-1] = namespaceSeparator;
          s = b->prefix->name;
          do {
            if (!poolAppendChar(&tempPool, *s))
              return XML_ERROR_NO_MEMORY;
          } while (*s++);
        }

        /* store expanded name in attribute list */
        s = poolStart(&tempPool);
        poolFinish(&tempPool);
        appAtts[i] = s;

        /* fill empty slot with new version, uriName and hash value */
        nsAtts[j].version = version;
        nsAtts[j].hash = uriHash;
        nsAtts[j].uriName = s;

        if (!--nPrefixes) {
          i += 2;
          break;
        }
      }
      else  /* not prefixed */
        ((XML_Char *)s)[-1] = 0;  /* clear flag */
    }
  }
  /* clear flags for the remaining attributes */
  for (; i < attIndex; i += 2)
    ((XML_Char *)(appAtts[i]))[-1] = 0;
  for (binding = *bindingsPtr; binding; binding = binding->nextTagBinding)
    binding->attId->name[-1] = 0;

  if (!ns)
    return XML_ERROR_NONE;

  /* expand the element type name */
  if (elementType->prefix) {
    binding = elementType->prefix->binding;
    if (!binding)
      return XML_ERROR_UNBOUND_PREFIX;
    localPart = tagNamePtr->str;
    while (*localPart++ != XML_T(ASCII_COLON))
      ;
  }
  else if (dtd->defaultPrefix.binding) {
    binding = dtd->defaultPrefix.binding;
    localPart = tagNamePtr->str;
  }
  else
    return XML_ERROR_NONE;
  prefixLen = 0;
  if (ns_triplets && binding->prefix->name) {
    for (; binding->prefix->name[prefixLen++];)
      ;  /* prefixLen includes null terminator */
  }
  tagNamePtr->localPart = localPart;
  tagNamePtr->uriLen = binding->uriLen;
  tagNamePtr->prefix = binding->prefix->name;
  tagNamePtr->prefixLen = prefixLen;
  for (i = 0; localPart[i++];)
    ;  /* i includes null terminator */
  n = i + binding->uriLen + prefixLen;
  if (n > binding->uriAlloc) {
    TAG *p;
    uri = (XML_Char *)MALLOC((n + EXPAND_SPARE) * sizeof(XML_Char));
    if (!uri)
      return XML_ERROR_NO_MEMORY;
    binding->uriAlloc = n + EXPAND_SPARE;
    memcpy(uri, binding->uri, binding->uriLen * sizeof(XML_Char));
    for (p = tagStack; p; p = p->parent)
      if (p->name.str == binding->uri)
        p->name.str = uri;
    FREE(binding->uri);
    binding->uri = uri;
  }
  /* if namespaceSeparator != '\0' then uri includes it already */
  uri = binding->uri + binding->uriLen;
  memcpy(uri, localPart, i * sizeof(XML_Char));
  /* we always have a namespace separator between localPart and prefix */
  if (prefixLen) {
    uri += i - 1;
    *uri = namespaceSeparator;  /* replace null terminator */
    memcpy(uri + 1, binding->prefix->name, prefixLen * sizeof(XML_Char));
  }
  tagNamePtr->str = binding->uri;
  return XML_ERROR_NONE;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %r8, 0x60(%rsp)
movq %rdx, %rbx
movq %rsi, %rbp
movq %rdi, %r14
movq 0x290(%rdi), %rax
movq %rax, 0x58(%rsp)
leaq 0x28(%rax), %r12
movq %rcx, 0x30(%rsp)
movq (%rcx), %rsi
movq %r12, %rdi
xorl %edx, %edx
callq 0x24f9cf
movq %rax, 0x38(%rsp)
testq %rax, %rax
movq %r14, 0x8(%rsp)
je 0x25130b
movq 0x38(%rsp), %rax
movl 0x18(%rax), %r13d
movl 0x2c0(%r14), %edx
movq 0x2d0(%r14), %rcx
movq %rbp, %rdi
movq %rbx, %rsi
callq *0x48(%rbp)
movq 0x8(%rsp), %r8
movl %eax, %r15d
leal (%r15,%r13), %eax
movl 0x2c0(%r8), %r14d
movq 0x2d0(%r8), %rdi
cmpl %r14d, %eax
jle 0x251385
movslq %eax, %rsi
shlq $0x5, %rsi
addl $0x10, %eax
movl %eax, 0x2c0(%r8)
addq $0x200, %rsi            # imm = 0x200
movq %r8, %r12
callq *0x20(%r8)
testq %rax, %rax
je 0x251c75
movq %rax, 0x2d0(%r12)
cmpl %r14d, %r15d
jle 0x25138a
movq %rbp, %rdi
movq %rbx, %rsi
movl %r15d, %edx
movq %rax, %rcx
callq *0x48(%rbp)
movq 0x8(%rsp), %r8
movq 0x2d0(%r8), %rbx
jmp 0x251390
movq 0x58(%rsp), %rax
leaq 0xa0(%rax), %rdi
movq 0x30(%rsp), %rax
movq (%rax), %rsi
callq 0x24c4fc
movl $0x1, %r15d
testq %rax, %rax
je 0x251ce1
movl $0x28, %edx
movq %r12, %rdi
movq %rax, %rsi
callq 0x24f9cf
testq %rax, %rax
je 0x251ce1
movq 0x8(%rsp), %r14
cmpb $0x0, 0x1c8(%r14)
movq %rax, 0x38(%rsp)
je 0x25126f
movq 0x290(%r14), %rdi
movq %rax, %rsi
callq 0x252263
movq 0x8(%rsp), %r14
testl %eax, %eax
jne 0x25126f
jmp 0x251ce1
movq %rdi, %rbx
jmp 0x251390
movq %r12, %r8
movq %rax, %rbx
testl %r15d, %r15d
movq %rbx, 0x20(%rsp)
movq %r13, 0x48(%rsp)
jle 0x251579
leaq 0x300(%r8), %rax
movq %rax, 0x40(%rsp)
movl %r15d, %eax
movq %rax, 0x28(%rsp)
leaq (,%r13,8), %rax
leaq (%rax,%rax,2), %rax
movq %rax, 0x50(%rsp)
xorl %r13d, %r13d
movq $0x0, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
movq 0x2d0(%r8), %rax
movq %r13, %r14
shlq $0x5, %r14
movq (%rax,%r14), %r15
movq %rbp, %rdi
movq %r15, %rsi
movq %r8, %r12
callq *0x38(%rbp)
movslq %eax, %rcx
addq %r15, %rcx
movq %r12, %rdi
movq %rbp, %rsi
movq %r15, %rdx
callq 0x24f465
movl $0x1, %r15d
testq %rax, %rax
je 0x251ce1
movq %rax, %r12
movq (%rax), %rax
cmpb $0x0, -0x1(%rax)
jne 0x25170d
movb $0x1, -0x1(%rax)
movq (%r12), %rax
movq 0x10(%rsp), %rdx
leal 0x1(%rdx), %ecx
movslq %edx, %rdx
movq %rax, (%rbx,%rdx,8)
movq 0x8(%rsp), %rdi
movq 0x2d0(%rdi), %rdx
leaq (%rdx,%r14), %rax
cmpb $0x0, 0x18(%rdx,%r14)
movslq %ecx, %r14
je 0x251488
movq 0x8(%rax), %rdx
movq 0x10(%rax), %rcx
movq 0x40(%rsp), %rdi
movq %rbp, %rsi
callq 0x24f2f4
movq 0x8(%rsp), %r8
movq %rax, (%rbx,%r14,8)
testq %rax, %rax
jne 0x2514f7
jmp 0x251ce1
cmpb $0x0, 0x10(%r12)
movb $0x1, %dl
je 0x2514be
cmpl $0x0, 0x48(%rsp)
jle 0x2514be
movq 0x38(%rsp), %rcx
movq 0x20(%rcx), %rcx
xorl %esi, %esi
movq 0x50(%rsp), %r8
cmpq (%rcx,%rsi), %r12
je 0x2514ba
addq $0x18, %rsi
cmpq %rsi, %r8
jne 0x2514a9
jmp 0x2514be
movb 0x8(%rcx,%rsi), %dl
movq 0x8(%rax), %rcx
movq 0x10(%rax), %r8
movzbl %dl, %edx
movq %rbp, %rsi
movq %rdi, %rbx
movq 0x40(%rsp), %r9
callq 0x24f96f
testl %eax, %eax
jne 0x25173c
movq 0x320(%rbx), %rax
movq 0x20(%rsp), %rcx
movq %rax, (%rcx,%r14,8)
movq %rbx, %r8
movq %rcx, %rbx
movq 0x318(%r8), %rax
movq %rax, 0x320(%r8)
movq 0x8(%r12), %rsi
testq %rsi, %rsi
je 0x251539
cmpb $0x0, 0x11(%r12)
je 0x251548
movq (%rbx,%r14,8), %rcx
movq %r8, %rdi
movq %r12, %rdx
movq 0x60(%rsp), %r8
callq 0x25236e
movq 0x8(%rsp), %r8
testl %eax, %eax
je 0x251569
jmp 0x25173c
movq 0x10(%rsp), %rax
addl $0x2, %eax
movq %rax, 0x10(%rsp)
jmp 0x251569
movq 0x10(%rsp), %rax
addl $0x2, %eax
movq %rax, 0x10(%rsp)
movq 0x18(%rsp), %rax
incl %eax
movq %rax, 0x18(%rsp)
movq (%r12), %rax
movb $0x2, -0x1(%rax)
incq %r13
cmpq 0x28(%rsp), %r13
jne 0x2513dd
jmp 0x25158b
movq $0x0, 0x18(%rsp)
movq $0x0, 0x10(%rsp)
movq 0x10(%rsp), %r13
movl %r13d, 0x2c4(%r8)
movq 0x38(%rsp), %r12
movq 0x10(%r12), %rcx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testq %rcx, %rcx
je 0x2515d1
movq (%rcx), %rcx
cmpb $0x0, -0x1(%rcx)
movq 0x18(%rsp), %rbp
je 0x2515d6
testl %r13d, %r13d
jle 0x2515dd
xorl %eax, %eax
cmpq %rcx, (%rbx,%rax,8)
je 0x2515d6
addq $0x2, %rax
cmpl %eax, %r13d
jg 0x2515c0
jmp 0x2515dd
movq 0x18(%rsp), %rbp
movl %eax, 0x2c8(%r8)
movq 0x48(%rsp), %rax
testl %eax, %eax
jle 0x251675
shlq $0x3, %rax
leaq (%rax,%rax,2), %rbx
xorl %r14d, %r14d
movq 0x20(%r12), %rax
movq (%rax,%r14), %rdx
movq (%rdx), %rdi
cmpb $0x0, -0x1(%rdi)
je 0x251612
addq $0x18, %r14
cmpq %r14, %rbx
jne 0x2515f5
jmp 0x251675
movq 0x10(%rax,%r14), %rcx
testq %rcx, %rcx
je 0x251607
movq 0x8(%rdx), %rsi
testq %rsi, %rsi
je 0x251646
cmpb $0x0, 0x11(%rdx)
je 0x25164c
movq %r8, %rdi
movq 0x60(%rsp), %r8
callq 0x25236e
movq 0x8(%rsp), %r8
testl %eax, %eax
je 0x251607
jmp 0x25173c
movb $0x1, -0x1(%rdi)
jmp 0x251652
movb $0x2, -0x1(%rdi)
incl %ebp
movq (%rax,%r14), %rcx
movq (%rcx), %rcx
movslq %r13d, %rdx
movq 0x20(%rsp), %rsi
movq %rcx, (%rsi,%rdx,8)
movq 0x10(%rax,%r14), %rax
leal 0x2(%rdx), %r13d
movq %rax, 0x8(%rsi,%rdx,8)
jmp 0x251607
movslq %r13d, %r14
movq 0x20(%rsp), %rbx
movq $0x0, (%rbx,%r14,8)
xorl %r12d, %r12d
testl %ebp, %ebp
je 0x251b2d
movb 0x2e8(%r8), %al
leal (,%rbp,2), %edx
movl %eax, %ecx
sarl %cl, %edx
testl %edx, %edx
je 0x251744
movl %eax, %ecx
leal 0x1(%rcx), %eax
movl %ebp, %edx
sarl %cl, %edx
testl %edx, %edx
jne 0x2516aa
movzbl %al, %eax
cmpb $0x4, %al
movl $0x3, %ecx
cmovael %eax, %ecx
movb %cl, 0x2e8(%r8)
movl $0x1, %r15d
movl $0x1, %eax
shll %cl, %eax
movq 0x2d8(%r8), %rdi
movq %rax, 0x28(%rsp)
cltq
shlq $0x3, %rax
leaq (%rax,%rax,2), %rsi
movq 0x8(%rsp), %rax
callq *0x20(%rax)
movq 0x8(%rsp), %r8
testq %rax, %rax
je 0x251ce1
movq %rax, 0x2d8(%r8)
jmp 0x251762
movl $0x8, %r15d
movq 0x8(%rsp), %rcx
cmpq %rbp, 0x120(%rcx)
jne 0x251ce1
movq 0x2d0(%rcx), %rax
movq (%rax,%r14), %rax
movq %rax, 0x210(%rcx)
jmp 0x251ce1
movl %eax, %r15d
jmp 0x251ce1
movl $0x1, %edx
movl %eax, %ecx
shll %cl, %edx
movq %rdx, 0x28(%rsp)
movq 0x2e0(%r8), %r15
testq %r15, %r15
jne 0x25180f
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
movq 0x2d8(%r8), %rcx
movslq 0x28(%rsp), %rdx
leaq 0x1(%rdx), %rax
andq $-0x2, %rax
leaq -0x1(%rdx), %rsi
movq %rsi, %xmm0
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
leaq (%rdx,%rdx,2), %rdx
leaq (%rcx,%rdx,8), %rcx
addq $-0x18, %rcx
xorl %edx, %edx
movdqa 0x107280(%rip), %xmm1   # 0x358a20
movdqa 0x107288(%rip), %xmm2   # 0x358a30
pxor %xmm2, %xmm0
pcmpeqd %xmm3, %xmm3
movq %rdx, %xmm4
pshufd $0x44, %xmm4, %xmm4     # xmm4 = xmm4[0,1,0,1]
por %xmm1, %xmm4
pxor %xmm2, %xmm4
movdqa %xmm4, %xmm5
pcmpgtd %xmm0, %xmm5
pcmpeqd %xmm0, %xmm4
pshufd $0xf5, %xmm4, %xmm6     # xmm6 = xmm4[1,1,3,3]
pand %xmm5, %xmm6
pshufd $0xf5, %xmm5, %xmm4     # xmm4 = xmm5[1,1,3,3]
por %xmm6, %xmm4
movd %xmm4, %esi
notl %esi
testb $0x1, %sil
je 0x2517ef
movq %r15, (%rcx)
pxor %xmm3, %xmm4
pextrw $0x4, %xmm4, %esi
testb $0x1, %sil
je 0x251802
movq %r15, -0x18(%rcx)
addq $0x2, %rdx
addq $-0x30, %rcx
cmpq %rdx, %rax
jne 0x2517b0
decq %r15
movq %r15, 0x2e0(%r8)
testl %r13d, %r13d
jle 0x251b2d
movq 0x58(%rsp), %rax
leaq 0x50(%rax), %rdi
leaq 0x300(%r8), %rax
movq %rax, 0x40(%rsp)
movq 0x28(%rsp), %rax
decl %eax
movl %eax, 0x6c(%rsp)
cltq
movq %rax, %rcx
notq %rcx
movq %rcx, 0x70(%rsp)
shrq $0x2, %rax
movq %rax, 0x48(%rsp)
xorl %r12d, %r12d
movq %r13, 0x10(%rsp)
movq %r14, 0x80(%rsp)
movq %rdi, 0x78(%rsp)
movq (%rbx,%r12,8), %rbx
cmpb $0x2, -0x1(%rbx)
movb $0x0, -0x1(%rbx)
jne 0x251b05
movq %r12, 0x50(%rsp)
movq %rbx, %rsi
xorl %edx, %edx
callq 0x24f9cf
movq 0x8(%rax), %rax
movq 0x8(%rax), %r12
testq %r12, %r12
je 0x251c83
movq %rbp, 0x18(%rsp)
cmpl $0x0, 0x28(%r12)
movq 0x8(%rsp), %r8
jle 0x251917
xorl %r14d, %r14d
xorl %ebp, %ebp
movq 0x20(%r12), %rax
movb (%rax,%r14), %r13b
movq 0x318(%r8), %rax
cmpq 0x310(%r8), %rax
jne 0x2518ed
movq 0x40(%rsp), %rdi
callq 0x24f7dc
testb %al, %al
je 0x251c75
movq 0x8(%rsp), %r8
movq 0x318(%r8), %rax
movzbl %r13b, %ecx
leaq 0x1(%rax), %rdx
movq %rdx, 0x318(%r8)
movb %cl, (%rax)
imulq $0xf4243, %rbp, %rbp    # imm = 0xF4243
xorq %rcx, %rbp
incq %r14
movslq 0x28(%r12), %rax
cmpq %rax, %r14
jl 0x2518b6
jmp 0x251919
xorl %ebp, %ebp
cmpb $0x3a, (%rbx)
leaq 0x1(%rbx), %rbx
jne 0x251919
movq 0x40(%rsp), %r13
movb (%rbx), %r14b
movq 0x318(%r8), %rax
movl %r14d, %ecx
cmpq 0x310(%r8), %rax
jne 0x25195b
movq %r13, %rdi
callq 0x24f7dc
testb %al, %al
je 0x251c75
movb (%rbx), %cl
movq 0x8(%rsp), %r8
movq 0x318(%r8), %rax
movzbl %r14b, %edx
leaq 0x1(%rax), %rsi
movq %rsi, 0x318(%r8)
movb %cl, (%rax)
imulq $0xf4243, %rbp, %rbp    # imm = 0xF4243
xorq %rdx, %rbp
cmpb $0x0, (%rbx)
leaq 0x1(%rbx), %rbx
jne 0x251927
movl 0x6c(%rsp), %eax
andl %ebp, %eax
movq 0x2d8(%r8), %rdx
movslq %eax, %rbx
leaq (%rbx,%rbx,2), %rcx
cmpq %r15, (%rdx,%rcx,8)
movq 0x28(%rsp), %r14
jne 0x251a46
leaq (%rdx,%rcx,8), %rcx
movq %rbp, %rsi
andq 0x70(%rsp), %rsi
xorl %edi, %edi
cmpq 0x8(%rcx), %rbp
jne 0x251a00
movq 0x320(%r8), %r8
movb (%r8), %r10b
testb %r10b, %r10b
sete %r9b
je 0x2519f2
movq 0x10(%rcx), %rcx
cmpb (%rcx), %r10b
jne 0x2519f2
movl $0x1, %r10d
movb (%r8,%r10), %r11b
testb %r11b, %r11b
sete %r9b
je 0x2519f2
leaq 0x1(%r10), %rbx
cmpb (%rcx,%r10), %r11b
movq %rbx, %r10
je 0x2519d8
testb %r9b, %r9b
movq 0x8(%rsp), %r8
jne 0x251b19
testb %dil, %dil
jne 0x251a21
movl 0x2e8(%r8), %ecx
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
addl %edi, %ecx
movq %rsi, %rdi
shrq %cl, %rdi
andl 0x48(%rsp), %edi
orb $0x1, %dil
movzbl %dil, %ecx
subl %ecx, %eax
movl $0x0, %ecx
cmovll %r14d, %ecx
addl %ecx, %eax
movslq %eax, %rbx
leaq (%rbx,%rbx,2), %rcx
leaq (%rdx,%rcx,8), %rcx
cmpq %r15, (%rcx)
je 0x2519b0
cmpb $0x0, 0x1c9(%r8)
je 0x251aae
movb 0x36c(%r8), %al
movq 0x318(%r8), %rcx
movb %al, -0x1(%rcx)
movq (%r12), %rax
movq (%rax), %r14
movq 0x318(%r8), %rax
cmpq 0x310(%r8), %rax
jne 0x251a94
movq %r13, %rdi
callq 0x24f7dc
testb %al, %al
je 0x251c75
movq 0x8(%rsp), %r8
movq 0x318(%r8), %rax
movb (%r14), %cl
leaq 0x1(%rax), %rdx
movq %rdx, 0x318(%r8)
movb %cl, (%rax)
cmpb $0x0, (%r14)
leaq 0x1(%r14), %r14
jne 0x251a68
movq 0x318(%r8), %rax
movq 0x320(%r8), %rcx
movq %rax, 0x320(%r8)
movq 0x20(%rsp), %rax
movq 0x50(%rsp), %r12
movq %rcx, (%rax,%r12,8)
movq 0x2d8(%r8), %rax
leaq (%rbx,%rbx,2), %rdx
movq %r15, (%rax,%rdx,8)
movq %rbp, 0x8(%rax,%rdx,8)
movq %rcx, 0x10(%rax,%rdx,8)
movq 0x18(%rsp), %rbp
decl %ebp
movq 0x10(%rsp), %r13
movq 0x80(%rsp), %r14
movq 0x78(%rsp), %rdi
je 0x251b24
addq $0x2, %r12
cmpl %r12d, %r13d
movq 0x20(%rsp), %rbx
jg 0x25186d
jmp 0x251b2d
movl $0x8, %r15d
jmp 0x251ce1
addl $0x2, %r12d
movq 0x20(%rsp), %rbx
cmpl %r13d, %r12d
jge 0x251b46
movslq %r12d, %rax
movq (%rbx,%rax,8), %rcx
movb $0x0, -0x1(%rcx)
addq $0x2, %rax
cmpq %r14, %rax
jl 0x251b35
movq 0x60(%rsp), %rax
movq (%rax), %rax
testq %rax, %rax
movq 0x38(%rsp), %rdx
je 0x251b6c
movq 0x18(%rax), %rcx
movq (%rcx), %rcx
movb $0x0, -0x1(%rcx)
movq 0x8(%rax), %rax
testq %rax, %rax
jne 0x251b58
xorl %r15d, %r15d
cmpb $0x0, 0x1c8(%r8)
je 0x251ce1
movq 0x8(%rdx), %rax
testq %rax, %rax
je 0x251ba6
movq 0x8(%rax), %r14
testq %r14, %r14
je 0x251c83
movq 0x30(%rsp), %rax
movq (%rax), %rbx
cmpb $0x3a, (%rbx)
leaq 0x1(%rbx), %rbx
jne 0x251b9b
jmp 0x251bc3
movq 0x58(%rsp), %rax
movq 0x110(%rax), %r14
testq %r14, %r14
je 0x251ce1
movq 0x30(%rsp), %rax
movq (%rax), %rbx
xorl %ebp, %ebp
cmpb $0x0, 0x1c9(%r8)
movq (%r14), %rax
movq (%rax), %rcx
je 0x251be6
testq %rcx, %rcx
je 0x251be6
xorl %ebp, %ebp
cmpb $0x0, (%rcx,%rbp)
leaq 0x1(%rbp), %rbp
jne 0x251bdc
movq 0x30(%rsp), %rdx
movq %rbx, 0x8(%rdx)
movl 0x28(%r14), %eax
movl %eax, 0x1c(%rdx)
movq %rcx, 0x10(%rdx)
movl %ebp, 0x20(%rdx)
xorl %r13d, %r13d
cmpb $0x0, (%rbx,%r13)
leaq 0x1(%r13), %r13
jne 0x251c00
leal (%rax,%rbp), %ecx
leal (%rcx,%r13), %edx
cmpl 0x2c(%r14), %edx
jle 0x251c7d
movq %r14, 0x10(%rsp)
movl %ecx, %eax
leaq (%rax,%r13), %r14
addq $0x18, %r14
movslq %r14d, %rdi
movq %r8, %r12
callq *0x18(%r8)
testq %rax, %rax
je 0x251c75
movq %rax, %r15
movq 0x10(%rsp), %rax
movl %r14d, 0x2c(%rax)
movq %rax, %r14
movq 0x20(%rax), %rsi
movslq 0x28(%rax), %rdx
movq %r15, %rdi
callq 0x17660
movq 0x2a0(%r12), %rax
movq 0x20(%r14), %rdi
testq %rax, %rax
je 0x251c8b
cmpq %rdi, 0x18(%rax)
jne 0x251c70
movq %r15, 0x18(%rax)
movq (%rax), %rax
jmp 0x251c61
movl $0x1, %r15d
jmp 0x251ce1
movq 0x20(%r14), %r15
jmp 0x251c98
movl $0x1b, %r15d
jmp 0x251ce1
callq *0x28(%r12)
movq %r15, 0x20(%r14)
movl 0x28(%r14), %eax
movslq %eax, %r12
addq %r15, %r12
movl %r13d, %edx
movq %r12, %rdi
movq %rbx, %rsi
callq 0x17660
testl %ebp, %ebp
je 0x251cd2
leaq (%r12,%r13), %rdi
movq 0x8(%rsp), %rax
movb 0x36c(%rax), %al
movb %al, -0x1(%r12,%r13)
movq (%r14), %rax
movq (%rax), %rsi
movslq %ebp, %rdx
callq 0x17660
movq 0x20(%r14), %rax
movq 0x30(%rsp), %rcx
movq %rax, (%rcx)
xorl %r15d, %r15d
movl %r15d, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq