// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/external/expat-2.0.1/lib/xmlparse.c
// Function: XML_ParserFree
void XMLCALL
XML_ParserFree(XML_Parser parser)
{
  TAG *tagList;
  OPEN_INTERNAL_ENTITY *entityList;
  if (parser == NULL)
    return;
  /* free tagStack and freeTagList */
  tagList = tagStack;
  for (;;) {
    TAG *p;
    if (tagList == NULL) {
      if (freeTagList == NULL)
        break;
      tagList = freeTagList;
      freeTagList = NULL;
    }
    p = tagList;
    tagList = tagList->parent;
    FREE(p->buf);
    destroyBindings(p->bindings, parser);
    FREE(p);
  }
  /* free openInternalEntities and freeInternalEntities */
  entityList = openInternalEntities;
  for (;;) {
    OPEN_INTERNAL_ENTITY *openEntity;
    if (entityList == NULL) {
      if (freeInternalEntities == NULL)
        break;
      entityList = freeInternalEntities;
      freeInternalEntities = NULL;
    }
    openEntity = entityList;
    entityList = entityList->next;
    FREE(openEntity);
  }

  destroyBindings(freeBindingList, parser);
  destroyBindings(inheritedBindings, parser);
  poolDestroy(&tempPool);
  poolDestroy(&temp2Pool);
#ifdef XML_DTD
  /* external parameter entity parsers share the DTD structure
     parser->m_dtd with the root parser, so we must not destroy it
  */
  if (!isParamEntity && _dtd)
#else
  if (_dtd)
#endif /* XML_DTD */
    dtdDestroy(_dtd, (XML_Bool)!parentParser, &parser->m_mem);
  FREE((void *)atts);
  FREE(groupConnector);
  FREE(buffer);
  FREE(dataBuf);
  FREE(nsAtts);
  FREE(unknownEncodingMem);
  if (unknownEncodingRelease)
    unknownEncodingRelease(unknownEncodingData);
  FREE(parser);
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
cmpq $0x0, 0x20(%rsp)
jne 0x3731f6
jmp 0x373455
movq 0x20(%rsp), %rax
movq 0x2a0(%rax), %rax
movq %rax, 0x18(%rsp)
cmpq $0x0, 0x18(%rsp)
jne 0x373241
movq 0x20(%rsp), %rax
cmpq $0x0, 0x2a8(%rax)
jne 0x373220
jmp 0x373294
movq 0x20(%rsp), %rax
movq 0x2a8(%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x20(%rsp), %rax
movq $0x0, 0x2a8(%rax)
movq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x18(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x20(%rsp), %rax
movq 0x28(%rax), %rax
movq 0x8(%rsp), %rcx
movq 0x40(%rcx), %rdi
callq *%rax
movq 0x8(%rsp), %rax
movq 0x50(%rax), %rdi
movq 0x20(%rsp), %rsi
callq 0x374a80
movq 0x20(%rsp), %rax
movq 0x28(%rax), %rax
movq 0x8(%rsp), %rdi
callq *%rax
jmp 0x373207
movq 0x20(%rsp), %rax
movq 0x228(%rax), %rax
movq %rax, 0x10(%rsp)
cmpq $0x0, 0x10(%rsp)
jne 0x3732df
movq 0x20(%rsp), %rax
cmpq $0x0, 0x230(%rax)
jne 0x3732be
jmp 0x373307
movq 0x20(%rsp), %rax
movq 0x230(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x20(%rsp), %rax
movq $0x0, 0x230(%rax)
movq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x20(%rsp), %rax
movq 0x28(%rax), %rax
movq (%rsp), %rdi
callq *%rax
jmp 0x3732a5
movq 0x20(%rsp), %rax
movq 0x2b8(%rax), %rdi
movq 0x20(%rsp), %rsi
callq 0x374a80
movq 0x20(%rsp), %rax
movq 0x2b0(%rax), %rdi
movq 0x20(%rsp), %rsi
callq 0x374a80
movq 0x20(%rsp), %rdi
addq $0x300, %rdi            # imm = 0x300
callq 0x374ae0
movq 0x20(%rsp), %rdi
addq $0x330, %rdi            # imm = 0x330
callq 0x374ae0
movq 0x20(%rsp), %rax
cmpq $0x0, 0x290(%rax)
je 0x373398
movq 0x20(%rsp), %rax
movq 0x290(%rax), %rdi
movq 0x20(%rsp), %rax
cmpq $0x0, 0x370(%rax)
setne %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
movq 0x20(%rsp), %rdx
addq $0x18, %rdx
movzbl %al, %esi
callq 0x374b80
movq 0x20(%rsp), %rax
movq 0x28(%rax), %rax
movq 0x20(%rsp), %rcx
movq 0x2d0(%rcx), %rdi
callq *%rax
movq 0x20(%rsp), %rax
movq 0x28(%rax), %rax
movq 0x20(%rsp), %rcx
movq 0x360(%rcx), %rdi
callq *%rax
movq 0x20(%rsp), %rax
movq 0x28(%rax), %rax
movq 0x20(%rsp), %rcx
movq 0x10(%rcx), %rdi
callq *%rax
movq 0x20(%rsp), %rax
movq 0x28(%rax), %rax
movq 0x20(%rsp), %rcx
movq 0x58(%rcx), %rdi
callq *%rax
movq 0x20(%rsp), %rax
movq 0x28(%rax), %rax
movq 0x20(%rsp), %rcx
movq 0x2d8(%rcx), %rdi
callq *%rax
movq 0x20(%rsp), %rax
movq 0x28(%rax), %rax
movq 0x20(%rsp), %rcx
movq 0x1d0(%rcx), %rdi
callq *%rax
movq 0x20(%rsp), %rax
cmpq $0x0, 0x1e8(%rax)
je 0x373445
movq 0x20(%rsp), %rax
movq 0x1e8(%rax), %rax
movq 0x20(%rsp), %rcx
movq 0x1d8(%rcx), %rdi
callq *%rax
movq 0x20(%rsp), %rax
movq 0x28(%rax), %rax
movq 0x20(%rsp), %rdi
callq *%rax
addq $0x28, %rsp
retq
nopw (%rax,%rax)