LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/external/samtools-0.1.18/faidx.c
// Function: faidx_main
int faidx_main(int argc, char *argv[])
{
	if (argc == 1) {
		fprintf(stderr, "Usage: faidx <in.fasta> [<reg> [...]]\n");
		return 1;
	} else {
		if (argc == 2) fai_build(argv[1]);
		else {
			int i, j, k, l;
			char *s;
			faidx_t *fai;
			fai = fai_load(argv[1]);
			if (fai == 0) return 1;
			for (i = 2; i != argc; ++i) {
				printf(">%s\n", argv[i]);
				s = fai_fetch(fai, argv[i], &l);
				for (j = 0; j < l; j += 60) {
					for (k = 0; k < 60 && k < l - j; ++k)
						putchar(s[j + k]);
					putchar('\n');
				}
				free(s);
			}
			fai_destroy(fai);
		}
	}
	return 0;
}

// Assembly:
subq $0x38, %rsp
movl %edi, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
cmpl $0x1, 0x30(%rsp)
jne 0x36f3d9
movq 0x2ccbe5(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x22eaba(%rip), %rsi    # 0x59de7f
movb $0x0, %al
callq 0x199f0
movl $0x1, 0x34(%rsp)
jmp 0x36f520
cmpl $0x2, 0x30(%rsp)
jne 0x36f3f3
movq 0x28(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x36ebb0
jmp 0x36f516
movq 0x28(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x36ed00
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x8(%rsp)
jne 0x36f41b
movl $0x1, 0x34(%rsp)
jmp 0x36f520
movl $0x2, 0x24(%rsp)
movl 0x24(%rsp), %eax
cmpl 0x30(%rsp), %eax
je 0x36f50c
movq 0x28(%rsp), %rax
movslq 0x24(%rsp), %rcx
movq (%rax,%rcx,8), %rsi
leaq 0x1abdd6(%rip), %rdi    # 0x51b21c
movb $0x0, %al
callq 0x19070
movq 0x8(%rsp), %rdi
movq 0x28(%rsp), %rax
movslq 0x24(%rsp), %rcx
movq (%rax,%rcx,8), %rsi
leaq 0x18(%rsp), %rdx
callq 0x36ee50
movq %rax, 0x10(%rsp)
movl $0x0, 0x20(%rsp)
movl 0x20(%rsp), %eax
cmpl 0x18(%rsp), %eax
jge 0x36f4f2
movl $0x0, 0x1c(%rsp)
xorl %eax, %eax
cmpl $0x3c, 0x1c(%rsp)
movb %al, 0x7(%rsp)
jge 0x36f4ab
movl 0x1c(%rsp), %eax
movl 0x18(%rsp), %ecx
subl 0x20(%rsp), %ecx
cmpl %ecx, %eax
setl %al
movb %al, 0x7(%rsp)
movb 0x7(%rsp), %al
testb $0x1, %al
jne 0x36f4b5
jmp 0x36f4db
movq 0x10(%rsp), %rax
movl 0x20(%rsp), %ecx
addl 0x1c(%rsp), %ecx
movslq %ecx, %rcx
movsbl (%rax,%rcx), %edi
callq 0x19960
movl 0x1c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1c(%rsp)
jmp 0x36f489
movl $0xa, %edi
callq 0x19960
movl 0x20(%rsp), %eax
addl $0x3c, %eax
movl %eax, 0x20(%rsp)
jmp 0x36f477
movq 0x10(%rsp), %rdi
callq 0x19ef0
movl 0x24(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x24(%rsp)
jmp 0x36f423
movq 0x8(%rsp), %rdi
callq 0x36e710
jmp 0x36f518
movl $0x0, 0x34(%rsp)
movl 0x34(%rsp), %eax
addq $0x38, %rsp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/external/expat-2.0.1/lib/xmlparse.c
// Function: XML_ParserCreate_MM
XML_Parser XMLCALL
XML_ParserCreate_MM(const XML_Char *encodingName,
                    const XML_Memory_Handling_Suite *memsuite,
                    const XML_Char *nameSep)
{
  XML_Parser parser = parserCreate(encodingName, memsuite, nameSep, NULL);
  if (parser != NULL && ns) {
    /* implicit context only set for root parser, since child
       parsers (i.e. external entity parsers) will inherit it
    */
    if (!setContext(parser, implicitContext)) {
      XML_ParserFree(parser);
      return NULL;
    }
  }
  return parser;
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq %rsi, 0x10(%rsp)
movq %rdx, 0x8(%rsp)
movq 0x18(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq 0x8(%rsp), %rdx
xorl %eax, %eax
movl %eax, %ecx
callq 0x372930
movq %rax, (%rsp)
cmpq $0x0, (%rsp)
je 0x3728e0
movq (%rsp), %rax
movzbl 0x1c8(%rax), %eax
cmpl $0x0, %eax
je 0x3728e0
movq (%rsp), %rdi
leaq 0x22bd0f(%rip), %rsi    # 0x59e5d0
callq 0x372d40
cmpb $0x0, %al
jne 0x3728de
movq (%rsp), %rdi
callq 0x3731e0
movq $0x0, 0x20(%rsp)
jmp 0x3728e9
jmp 0x3728e0
movq (%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/external/expat-2.0.1/lib/xmlparse.c
// Function: XML_ParserReset
XML_Bool XMLCALL
XML_ParserReset(XML_Parser parser, const XML_Char *encodingName)
{
  TAG *tStk;
  OPEN_INTERNAL_ENTITY *openEntityList;
  if (parentParser)
    return XML_FALSE;
  /* move tagStack to freeTagList */
  tStk = tagStack;
  while (tStk) {
    TAG *tag = tStk;
    tStk = tStk->parent;
    tag->parent = freeTagList;
    moveToFreeBindingList(parser, tag->bindings);
    tag->bindings = NULL;
    freeTagList = tag;
  }
  /* move openInternalEntities to freeInternalEntities */
  openEntityList = openInternalEntities;
  while (openEntityList) {
    OPEN_INTERNAL_ENTITY *openEntity = openEntityList;
    openEntityList = openEntity->next;
    openEntity->next = freeInternalEntities;
    freeInternalEntities = openEntity;
  }
  moveToFreeBindingList(parser, inheritedBindings);
  FREE(unknownEncodingMem);
  if (unknownEncodingRelease)
    unknownEncodingRelease(unknownEncodingData);
  poolClear(&tempPool);
  poolClear(&temp2Pool);
  parserInit(parser, encodingName);
  dtdReset(_dtd, &parser->m_mem);
  return setContext(parser, implicitContext);
}

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x28(%rsp)
movq %rsi, 0x20(%rsp)
movq 0x28(%rsp), %rax
cmpq $0x0, 0x370(%rax)
je 0x373487
movb $0x0, 0x37(%rsp)
jmp 0x373609
movq 0x28(%rsp), %rax
movq 0x2a0(%rax), %rax
movq %rax, 0x18(%rsp)
cmpq $0x0, 0x18(%rsp)
je 0x3734fe
movq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x18(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x28(%rsp), %rax
movq 0x2a8(%rax), %rcx
movq 0x8(%rsp), %rax
movq %rcx, (%rax)
movq 0x28(%rsp), %rdi
movq 0x8(%rsp), %rax
movq 0x50(%rax), %rsi
callq 0x373620
movq 0x8(%rsp), %rax
movq $0x0, 0x50(%rax)
movq 0x8(%rsp), %rcx
movq 0x28(%rsp), %rax
movq %rcx, 0x2a8(%rax)
jmp 0x373498
movq 0x28(%rsp), %rax
movq 0x228(%rax), %rax
movq %rax, 0x10(%rsp)
cmpq $0x0, 0x10(%rsp)
je 0x373553
movq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq (%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x28(%rsp), %rax
movq 0x230(%rax), %rcx
movq (%rsp), %rax
movq %rcx, 0x10(%rax)
movq (%rsp), %rcx
movq 0x28(%rsp), %rax
movq %rcx, 0x230(%rax)
jmp 0x37350f
movq 0x28(%rsp), %rdi
movq 0x28(%rsp), %rax
movq 0x2b0(%rax), %rsi
callq 0x373620
movq 0x28(%rsp), %rax
movq 0x28(%rax), %rax
movq 0x28(%rsp), %rcx
movq 0x1d0(%rcx), %rdi
callq *%rax
movq 0x28(%rsp), %rax
cmpq $0x0, 0x1e8(%rax)
je 0x3735a9
movq 0x28(%rsp), %rax
movq 0x1e8(%rax), %rax
movq 0x28(%rsp), %rcx
movq 0x1d8(%rcx), %rdi
callq *%rax
movq 0x28(%rsp), %rdi
addq $0x300, %rdi            # imm = 0x300
callq 0x373680
movq 0x28(%rsp), %rdi
addq $0x330, %rdi            # imm = 0x330
callq 0x373680
movq 0x28(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0x373730
movq 0x28(%rsp), %rax
movq 0x290(%rax), %rdi
movq 0x28(%rsp), %rsi
addq $0x18, %rsi
callq 0x373b30
movq 0x28(%rsp), %rdi
leaq 0x22afd0(%rip), %rsi    # 0x59e5d0
callq 0x372d40
movb %al, 0x37(%rsp)
movb 0x37(%rsp), %al
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/external/expat-2.0.1/lib/xmlparse.c
// Function: moveToFreeBindingList
static void FASTCALL
moveToFreeBindingList(XML_Parser parser, BINDING *bindings)
{
  while (bindings) {
    BINDING *b = bindings;
    bindings = bindings->nextTagBinding;
    b->nextTagBinding = freeBindingList;
    freeBindingList = b;
  }
}

// Assembly:
movq %rdi, -0x8(%rsp)
movq %rsi, -0x10(%rsp)
cmpq $0x0, -0x10(%rsp)
je 0x373672
movq -0x10(%rsp), %rax
movq %rax, -0x18(%rsp)
movq -0x10(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x10(%rsp)
movq -0x8(%rsp), %rax
movq 0x2b8(%rax), %rcx
movq -0x18(%rsp), %rax
movq %rcx, 0x8(%rax)
movq -0x18(%rsp), %rcx
movq -0x8(%rsp), %rax
movq %rcx, 0x2b8(%rax)
jmp 0x37362a
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/external/expat-2.0.1/lib/xmlparse.c
// Function: poolClear
static void FASTCALL
poolClear(STRING_POOL *pool)
{
  if (!pool->freeBlocks)
    pool->freeBlocks = pool->blocks;
  else {
    BLOCK *p = pool->blocks;
    while (p) {
      BLOCK *tem = p->next;
      p->next = pool->freeBlocks;
      pool->freeBlocks = p;
      p = tem;
    }
  }
  pool->blocks = NULL;
  pool->start = NULL;
  pool->ptr = NULL;
  pool->end = NULL;
}

// Assembly:
movq %rdi, -0x8(%rsp)
movq -0x8(%rsp), %rax
cmpq $0x0, 0x8(%rax)
jne 0x3736a4
movq -0x8(%rsp), %rax
movq (%rax), %rcx
movq -0x8(%rsp), %rax
movq %rcx, 0x8(%rax)
jmp 0x3736f3
movq -0x8(%rsp), %rax
movq (%rax), %rax
movq %rax, -0x10(%rsp)
cmpq $0x0, -0x10(%rsp)
je 0x3736f1
movq -0x10(%rsp), %rax
movq (%rax), %rax
movq %rax, -0x18(%rsp)
movq -0x8(%rsp), %rax
movq 0x8(%rax), %rcx
movq -0x10(%rsp), %rax
movq %rcx, (%rax)
movq -0x10(%rsp), %rcx
movq -0x8(%rsp), %rax
movq %rcx, 0x8(%rax)
movq -0x18(%rsp), %rax
movq %rax, -0x10(%rsp)
jmp 0x3736b1
jmp 0x3736f3
movq -0x8(%rsp), %rax
movq $0x0, (%rax)
movq -0x8(%rsp), %rax
movq $0x0, 0x20(%rax)
movq -0x8(%rsp), %rax
movq $0x0, 0x18(%rax)
movq -0x8(%rsp), %rax
movq $0x0, 0x10(%rax)
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/external/expat-2.0.1/lib/xmlparse.c
// Function: dtdReset
static void
dtdReset(DTD *p, const XML_Memory_Handling_Suite *ms)
{
  HASH_TABLE_ITER iter;
  hashTableIterInit(&iter, &(p->elementTypes));
  for (;;) {
    ELEMENT_TYPE *e = (ELEMENT_TYPE *)hashTableIterNext(&iter);
    if (!e)
      break;
    if (e->allocDefaultAtts != 0)
      ms->free_fcn(e->defaultAtts);
  }
  hashTableClear(&(p->generalEntities));
#ifdef XML_DTD
  p->paramEntityRead = XML_FALSE;
  hashTableClear(&(p->paramEntities));
#endif /* XML_DTD */
  hashTableClear(&(p->elementTypes));
  hashTableClear(&(p->attributeIds));
  hashTableClear(&(p->prefixes));
  poolClear(&(p->pool));
  poolClear(&(p->entityValuePool));
  p->defaultPrefix.name = NULL;
  p->defaultPrefix.binding = NULL;

  p->in_eldecl = XML_FALSE;

  ms->free_fcn(p->scaffIndex);
  p->scaffIndex = NULL;
  ms->free_fcn(p->scaffold);
  p->scaffold = NULL;

  p->scaffLevel = 0;
  p->scaffSize = 0;
  p->scaffCount = 0;
  p->contentStringLen = 0;

  p->keepProcessing = XML_TRUE;
  p->hasParamEntityRefs = XML_FALSE;
  p->standalone = XML_FALSE;
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq 0x20(%rsp), %rsi
addq $0x28, %rsi
leaq 0x8(%rsp), %rdi
callq 0x37fe50
leaq 0x8(%rsp), %rdi
callq 0x37fe90
movq %rax, (%rsp)
cmpq $0x0, (%rsp)
jne 0x373b68
jmp 0x373b87
movq (%rsp), %rax
cmpl $0x0, 0x1c(%rax)
je 0x373b85
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rax
movq (%rsp), %rcx
movq 0x20(%rcx), %rdi
callq *%rax
jmp 0x373b51
movq 0x20(%rsp), %rdi
callq 0x381420
movq 0x20(%rsp), %rdi
addq $0x28, %rdi
callq 0x381420
movq 0x20(%rsp), %rdi
addq $0x50, %rdi
callq 0x381420
movq 0x20(%rsp), %rdi
addq $0x78, %rdi
callq 0x381420
movq 0x20(%rsp), %rdi
addq $0xa0, %rdi
callq 0x373680
movq 0x20(%rsp), %rdi
addq $0xd0, %rdi
callq 0x373680
movq 0x20(%rsp), %rax
movq $0x0, 0x108(%rax)
movq 0x20(%rsp), %rax
movq $0x0, 0x110(%rax)
movq 0x20(%rsp), %rax
movb $0x0, 0x118(%rax)
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x20(%rsp), %rcx
movq 0x138(%rcx), %rdi
callq *%rax
movq 0x20(%rsp), %rax
movq $0x0, 0x138(%rax)
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x20(%rsp), %rcx
movq 0x120(%rcx), %rdi
callq *%rax
movq 0x20(%rsp), %rax
movq $0x0, 0x120(%rax)
movq 0x20(%rsp), %rax
movl $0x0, 0x134(%rax)
movq 0x20(%rsp), %rax
movl $0x0, 0x12c(%rax)
movq 0x20(%rsp), %rax
movl $0x0, 0x130(%rax)
movq 0x20(%rsp), %rax
movl $0x0, 0x128(%rax)
movq 0x20(%rsp), %rax
movb $0x1, 0x100(%rax)
movq 0x20(%rsp), %rax
movb $0x0, 0x101(%rax)
movq 0x20(%rsp), %rax
movb $0x0, 0x102(%rax)
addq $0x28, %rsp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/external/expat-2.0.1/lib/xmlparse.c
// Function: XML_SetEncoding
enum XML_Status XMLCALL
XML_SetEncoding(XML_Parser parser, const XML_Char *encodingName)
{
  /* Block after XML_Parse()/XML_ParseBuffer() has been called.
     XXX There's no way for the caller to determine which of the
     XXX possible error cases caused the XML_STATUS_ERROR return.
  */
  if (ps_parsing == XML_PARSING || ps_parsing == XML_SUSPENDED)
    return XML_STATUS_ERROR;
  if (encodingName == NULL)
    protocolEncodingName = NULL;
  else {
    protocolEncodingName = poolCopyString(&tempPool, encodingName);
    if (!protocolEncodingName)
      return XML_STATUS_ERROR;
  }
  return XML_STATUS_OK;
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x8(%rsp)
movq %rsi, (%rsp)
movq 0x8(%rsp), %rax
cmpl $0x1, 0x378(%rax)
je 0x373ce9
movq 0x8(%rsp), %rax
cmpl $0x3, 0x378(%rax)
jne 0x373cf3
movl $0x0, 0x14(%rsp)
jmp 0x373d53
cmpq $0x0, (%rsp)
jne 0x373d0c
movq 0x8(%rsp), %rax
movq $0x0, 0x1c0(%rax)
jmp 0x373d4b
movq 0x8(%rsp), %rdi
addq $0x300, %rdi            # imm = 0x300
movq (%rsp), %rsi
callq 0x373d60
movq %rax, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x1c0(%rax)
movq 0x8(%rsp), %rax
cmpq $0x0, 0x1c0(%rax)
jne 0x373d49
movl $0x0, 0x14(%rsp)
jmp 0x373d53
jmp 0x373d4b
movl $0x1, 0x14(%rsp)
movl 0x14(%rsp), %eax
addq $0x18, %rsp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/external/expat-2.0.1/lib/xmlparse.c
// Function: poolCopyString
static const XML_Char * FASTCALL
poolCopyString(STRING_POOL *pool, const XML_Char *s)
{
  do {
    if (!poolAppendChar(pool, *s))
      return NULL;
  } while (*s++);
  s = pool->start;
  poolFinish(pool);
  return s;
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x8(%rsp)
movq %rsi, (%rsp)
movq 0x8(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x8(%rsp), %rcx
cmpq 0x10(%rcx), %rax
jne 0x373d97
movq 0x8(%rsp), %rdi
callq 0x37a570
cmpb $0x0, %al
jne 0x373d97
xorl %eax, %eax
testb $0x1, %al
jne 0x373dc4
jmp 0x373db9
movq (%rsp), %rax
movb (%rax), %cl
movq 0x8(%rsp), %rdx
movq 0x18(%rdx), %rax
movq %rax, %rsi
addq $0x1, %rsi
movq %rsi, 0x18(%rdx)
movb %cl, (%rax)
movb $0x1, %al
testb $0x1, %al
jne 0x373dc4
movq $0x0, 0x10(%rsp)
jmp 0x373e02
jmp 0x373dc6
movq (%rsp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, (%rsp)
cmpb $0x0, (%rax)
jne 0x373d6d
movq 0x8(%rsp), %rax
movq 0x20(%rax), %rax
movq %rax, (%rsp)
movq 0x8(%rsp), %rax
movq 0x18(%rax), %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x20(%rax)
movq (%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
addq $0x18, %rsp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/external/expat-2.0.1/lib/xmlparse.c
// Function: externalEntityInitProcessor
static enum XML_Error PTRCALL
externalEntityInitProcessor(XML_Parser parser,
                            const char *start,
                            const char *end,
                            const char **endPtr)
{
  enum XML_Error result = initializeEncoding(parser);
  if (result != XML_ERROR_NONE)
    return result;
  processor = externalEntityInitProcessor2;
  return externalEntityInitProcessor2(parser, start, end, endPtr);
}

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x28(%rsp)
movq %rsi, 0x20(%rsp)
movq %rdx, 0x18(%rsp)
movq %rcx, 0x10(%rsp)
movq 0x28(%rsp), %rdi
callq 0x3767b0
movl %eax, 0xc(%rsp)
cmpl $0x0, 0xc(%rsp)
je 0x374a47
movl 0xc(%rsp), %eax
movl %eax, 0x34(%rsp)
jmp 0x374a77
movq 0x28(%rsp), %rax
leaq 0xc68d(%rip), %rcx      # 0x3810e0
movq %rcx, 0x200(%rax)
movq 0x28(%rsp), %rdi
movq 0x20(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq 0x10(%rsp), %rcx
callq 0x3810e0
movl %eax, 0x34(%rsp)
movl 0x34(%rsp), %eax
addq $0x38, %rsp
retq
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/external/expat-2.0.1/lib/xmlparse.c
// Function: destroyBindings
static void FASTCALL
destroyBindings(BINDING *bindings, XML_Parser parser)
{
  for (;;) {
    BINDING *b = bindings;
    if (!b)
      break;
    bindings = b->nextTagBinding;
    FREE(b->uri);
    FREE(b);
  }
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq %rsi, 0x8(%rsp)
movq 0x10(%rsp), %rax
movq %rax, (%rsp)
cmpq $0x0, (%rsp)
jne 0x374aa0
jmp 0x374ad1
movq (%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x8(%rsp), %rax
movq 0x28(%rax), %rax
movq (%rsp), %rcx
movq 0x20(%rcx), %rdi
callq *%rax
movq 0x8(%rsp), %rax
movq 0x28(%rax), %rax
movq (%rsp), %rdi
callq *%rax
jmp 0x374a8e
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/external/expat-2.0.1/lib/xmlparse.c
// Function: poolDestroy
static void FASTCALL
poolDestroy(STRING_POOL *pool)
{
  BLOCK *p = pool->blocks;
  while (p) {
    BLOCK *tem = p->next;
    pool->mem->free_fcn(p);
    p = tem;
  }
  p = pool->freeBlocks;
  while (p) {
    BLOCK *tem = p->next;
    pool->mem->free_fcn(p);
    p = tem;
  }
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x18(%rsp)
cmpq $0x0, 0x18(%rsp)
je 0x374b2b
movq 0x18(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x20(%rsp), %rax
movq 0x28(%rax), %rax
movq 0x10(%rax), %rax
movq 0x18(%rsp), %rdi
callq *%rax
movq 0x10(%rsp), %rax
movq %rax, 0x18(%rsp)
jmp 0x374af6
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x18(%rsp)
cmpq $0x0, 0x18(%rsp)
je 0x374b6e
movq 0x18(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x8(%rsp)
movq 0x20(%rsp), %rax
movq 0x28(%rax), %rax
movq 0x10(%rax), %rax
movq 0x18(%rsp), %rdi
callq *%rax
movq 0x8(%rsp), %rax
movq %rax, 0x18(%rsp)
jmp 0x374b39
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/external/expat-2.0.1/lib/xmlparse.c
// Function: dtdDestroy
static void
dtdDestroy(DTD *p, XML_Bool isDocEntity, const XML_Memory_Handling_Suite *ms)
{
  HASH_TABLE_ITER iter;
  hashTableIterInit(&iter, &(p->elementTypes));
  for (;;) {
    ELEMENT_TYPE *e = (ELEMENT_TYPE *)hashTableIterNext(&iter);
    if (!e)
      break;
    if (e->allocDefaultAtts != 0)
      ms->free_fcn(e->defaultAtts);
  }
  hashTableDestroy(&(p->generalEntities));
#ifdef XML_DTD
  hashTableDestroy(&(p->paramEntities));
#endif /* XML_DTD */
  hashTableDestroy(&(p->elementTypes));
  hashTableDestroy(&(p->attributeIds));
  hashTableDestroy(&(p->prefixes));
  poolDestroy(&(p->pool));
  poolDestroy(&(p->entityValuePool));
  if (isDocEntity) {
    ms->free_fcn(p->scaffIndex);
    ms->free_fcn(p->scaffold);
  }
  ms->free_fcn(p);
}

// Assembly:
subq $0x38, %rsp
movb %sil, %al
movq %rdi, 0x30(%rsp)
movb %al, 0x2f(%rsp)
movq %rdx, 0x20(%rsp)
movq 0x30(%rsp), %rsi
addq $0x28, %rsi
leaq 0x10(%rsp), %rdi
callq 0x37fe50
leaq 0x10(%rsp), %rdi
callq 0x37fe90
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x8(%rsp)
jne 0x374bc1
jmp 0x374be2
movq 0x8(%rsp), %rax
cmpl $0x0, 0x1c(%rax)
je 0x374be0
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rsp), %rcx
movq 0x20(%rcx), %rdi
callq *%rax
jmp 0x374ba8
movq 0x30(%rsp), %rdi
callq 0x3814a0
movq 0x30(%rsp), %rdi
addq $0x28, %rdi
callq 0x3814a0
movq 0x30(%rsp), %rdi
addq $0x50, %rdi
callq 0x3814a0
movq 0x30(%rsp), %rdi
addq $0x78, %rdi
callq 0x3814a0
movq 0x30(%rsp), %rdi
addq $0xa0, %rdi
callq 0x374ae0
movq 0x30(%rsp), %rdi
addq $0xd0, %rdi
callq 0x374ae0
cmpb $0x0, 0x2f(%rsp)
je 0x374c6d
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x30(%rsp), %rcx
movq 0x138(%rcx), %rdi
callq *%rax
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x30(%rsp), %rcx
movq 0x120(%rcx), %rdi
callq *%rax
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x30(%rsp), %rdi
callq *%rax
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/external/expat-2.0.1/lib/xmlparse.c
// Function: XML_SetBase
enum XML_Status XMLCALL
XML_SetBase(XML_Parser parser, const XML_Char *p)
{
  if (p) {
    p = poolCopyString(&_dtd->pool, p);
    if (!p)
      return XML_STATUS_ERROR;
    curBase = p;
  }
  else
    curBase = NULL;
  return XML_STATUS_OK;
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x8(%rsp)
movq %rsi, (%rsp)
cmpq $0x0, (%rsp)
je 0x374dc7
movq 0x8(%rsp), %rax
movq 0x290(%rax), %rdi
addq $0xa0, %rdi
movq (%rsp), %rsi
callq 0x373d60
movq %rax, (%rsp)
cmpq $0x0, (%rsp)
jne 0x374db5
movl $0x0, 0x14(%rsp)
jmp 0x374ddf
movq (%rsp), %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x298(%rax)
jmp 0x374dd7
movq 0x8(%rsp), %rax
movq $0x0, 0x298(%rax)
movl $0x1, 0x14(%rsp)
movl 0x14(%rsp), %eax
addq $0x18, %rsp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/external/expat-2.0.1/lib/xmlparse.c
// Function: XML_StopParser
enum XML_Status XMLCALL
XML_StopParser(XML_Parser parser, XML_Bool resumable)
{
  switch (ps_parsing) {
  case XML_SUSPENDED:
    if (resumable) {
      errorCode = XML_ERROR_SUSPENDED;
      return XML_STATUS_ERROR;
    }
    ps_parsing = XML_FINISHED;
    break;
  case XML_FINISHED:
    errorCode = XML_ERROR_FINISHED;
    return XML_STATUS_ERROR;
  default:
    if (resumable) {
#ifdef XML_DTD
      if (isParamEntity) {
        errorCode = XML_ERROR_SUSPEND_PE;
        return XML_STATUS_ERROR;
      }
#endif
      ps_parsing = XML_SUSPENDED;
    }
    else
      ps_parsing = XML_FINISHED;
  }
  return XML_STATUS_OK;
}

// Assembly:
movb %sil, %al
movq %rdi, -0x10(%rsp)
movb %al, -0x11(%rsp)
movq -0x10(%rsp), %rax
movl 0x378(%rax), %eax
movl %eax, -0x18(%rsp)
subl $0x2, %eax
je 0x375dbe
jmp 0x375d82
movl -0x18(%rsp), %eax
subl $0x3, %eax
jne 0x375dd7
jmp 0x375d8d
cmpb $0x0, -0x11(%rsp)
je 0x375dad
movq -0x10(%rsp), %rax
movl $0x21, 0x208(%rax)
movl $0x0, -0x4(%rsp)
jmp 0x375e08
movq -0x10(%rsp), %rax
movl $0x2, 0x378(%rax)
jmp 0x375e00
movq -0x10(%rsp), %rax
movl $0x24, 0x208(%rax)
movl $0x0, -0x4(%rsp)
jmp 0x375e08
cmpb $0x0, -0x11(%rsp)
je 0x375def
movq -0x10(%rsp), %rax
movl $0x3, 0x378(%rax)
jmp 0x375dfe
movq -0x10(%rsp), %rax
movl $0x2, 0x378(%rax)
jmp 0x375e00
movl $0x1, -0x4(%rsp)
movl -0x4(%rsp), %eax
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/external/expat-2.0.1/lib/xmlparse.c
// Function: XML_ResumeParser
enum XML_Status XMLCALL
XML_ResumeParser(XML_Parser parser)
{
  enum XML_Status result = XML_STATUS_OK;

  if (ps_parsing != XML_SUSPENDED) {
    errorCode = XML_ERROR_NOT_SUSPENDED;
    return XML_STATUS_ERROR;
  }
  ps_parsing = XML_PARSING;

  errorCode = processor(parser, bufferPtr, parseEndPtr, &bufferPtr);

  if (errorCode != XML_ERROR_NONE) {
    eventEndPtr = eventPtr;
    processor = errorProcessor;
    return XML_STATUS_ERROR;
  }
  else {
    switch (ps_parsing) {
    case XML_SUSPENDED:
      result = XML_STATUS_SUSPENDED;
      break;
    case XML_INITIALIZED: 
    case XML_PARSING:
      if (ps_finalBuffer) {
        ps_parsing = XML_FINISHED;
        return result;
      }
    default: ;
    }
  }

  XmlUpdatePosition(encoding, positionPtr, bufferPtr, &position);
  positionPtr = bufferPtr;
  return result;
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x8(%rsp)
movl $0x1, 0x4(%rsp)
movq 0x8(%rsp), %rax
cmpl $0x3, 0x378(%rax)
je 0x375e4b
movq 0x8(%rsp), %rax
movl $0x22, 0x208(%rax)
movl $0x0, 0x14(%rsp)
jmp 0x375f8d
movq 0x8(%rsp), %rax
movl $0x1, 0x378(%rax)
movq 0x8(%rsp), %rax
movq 0x200(%rax), %rax
movq 0x8(%rsp), %rdi
movq 0x8(%rsp), %rcx
movq 0x30(%rcx), %rsi
movq 0x8(%rsp), %rcx
movq 0x50(%rcx), %rdx
movq 0x8(%rsp), %rcx
addq $0x30, %rcx
callq *%rax
movl %eax, %ecx
movq 0x8(%rsp), %rax
movl %ecx, 0x208(%rax)
movq 0x8(%rsp), %rax
cmpl $0x0, 0x208(%rax)
je 0x375edb
movq 0x8(%rsp), %rax
movq 0x210(%rax), %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x218(%rax)
movq 0x8(%rsp), %rax
leaq -0x617(%rip), %rcx      # 0x3758b0
movq %rcx, 0x200(%rax)
movl $0x0, 0x14(%rsp)
jmp 0x375f8d
movq 0x8(%rsp), %rax
movl 0x378(%rax), %eax
movl %eax, (%rsp)
subl $0x2, %eax
jb 0x375f04
jmp 0x375ef0
movl (%rsp), %eax
subl $0x3, %eax
jne 0x375f2d
jmp 0x375efa
movl $0x2, 0x4(%rsp)
jmp 0x375f2f
movq 0x8(%rsp), %rax
cmpb $0x0, 0x37c(%rax)
je 0x375f2b
movq 0x8(%rsp), %rax
movl $0x2, 0x378(%rax)
movl 0x4(%rsp), %eax
movl %eax, 0x14(%rsp)
jmp 0x375f8d
jmp 0x375f2d
jmp 0x375f2f
jmp 0x375f31
movq 0x8(%rsp), %rax
movq 0x120(%rax), %rax
movq 0x60(%rax), %rax
movq 0x8(%rsp), %rcx
movq 0x120(%rcx), %rdi
movq 0x8(%rsp), %rcx
movq 0x220(%rcx), %rsi
movq 0x8(%rsp), %rcx
movq 0x30(%rcx), %rdx
movq 0x8(%rsp), %rcx
addq $0x2f0, %rcx            # imm = 0x2F0
callq *%rax
movq 0x8(%rsp), %rax
movq 0x30(%rax), %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x220(%rax)
movl 0x4(%rsp), %eax
movl %eax, 0x14(%rsp)
movl 0x14(%rsp), %eax
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/external/expat-2.0.1/lib/xmlparse.c
// Function: XML_GetCurrentLineNumber
XML_Size XMLCALL
XML_GetCurrentLineNumber(XML_Parser parser)
{
  if (eventPtr && eventPtr >= positionPtr) {
    XmlUpdatePosition(encoding, positionPtr, eventPtr, &position);
    positionPtr = eventPtr;
  }
  return position.lineNumber + 1;
}

// Assembly:
pushq %rax
movq %rdi, (%rsp)
movq (%rsp), %rax
cmpq $0x0, 0x210(%rax)
je 0x37615e
movq (%rsp), %rax
movq 0x210(%rax), %rax
movq (%rsp), %rcx
cmpq 0x220(%rcx), %rax
jb 0x37615e
movq (%rsp), %rax
movq 0x120(%rax), %rax
movq 0x60(%rax), %rax
movq (%rsp), %rcx
movq 0x120(%rcx), %rdi
movq (%rsp), %rcx
movq 0x220(%rcx), %rsi
movq (%rsp), %rcx
movq 0x210(%rcx), %rdx
movq (%rsp), %rcx
addq $0x2f0, %rcx            # imm = 0x2F0
callq *%rax
movq (%rsp), %rax
movq 0x210(%rax), %rcx
movq (%rsp), %rax
movq %rcx, 0x220(%rax)
movq (%rsp), %rax
movq 0x2f0(%rax), %rax
addq $0x1, %rax
popq %rcx
retq
nop
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/external/expat-2.0.1/lib/xmlparse.c
// Function: XML_GetCurrentColumnNumber
XML_Size XMLCALL
XML_GetCurrentColumnNumber(XML_Parser parser)
{
  if (eventPtr && eventPtr >= positionPtr) {
    XmlUpdatePosition(encoding, positionPtr, eventPtr, &position);
    positionPtr = eventPtr;
  }
  return position.columnNumber;
}

// Assembly:
pushq %rax
movq %rdi, (%rsp)
movq (%rsp), %rax
cmpq $0x0, 0x210(%rax)
je 0x3761ee
movq (%rsp), %rax
movq 0x210(%rax), %rax
movq (%rsp), %rcx
cmpq 0x220(%rcx), %rax
jb 0x3761ee
movq (%rsp), %rax
movq 0x120(%rax), %rax
movq 0x60(%rax), %rax
movq (%rsp), %rcx
movq 0x120(%rcx), %rdi
movq (%rsp), %rcx
movq 0x220(%rcx), %rsi
movq (%rsp), %rcx
movq 0x210(%rcx), %rdx
movq (%rsp), %rcx
addq $0x2f0, %rcx            # imm = 0x2F0
callq *%rax
movq (%rsp), %rax
movq 0x210(%rax), %rcx
movq (%rsp), %rax
movq %rcx, 0x220(%rax)
movq (%rsp), %rax
movq 0x2f8(%rax), %rax
popq %rcx
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/external/expat-2.0.1/lib/xmlparse.c
// Function: XML_DefaultCurrent
void XMLCALL
XML_DefaultCurrent(XML_Parser parser)
{
  if (defaultHandler) {
    if (openInternalEntities)
      reportDefault(parser,
                    internalEncoding,
                    openInternalEntities->internalEventPtr,
                    openInternalEntities->internalEventEndPtr);
    else
      reportDefault(parser, encoding, eventPtr, eventEndPtr);
  }
}

// Assembly:
pushq %rax
movq %rdi, (%rsp)
movq (%rsp), %rax
cmpq $0x0, 0xa0(%rax)
je 0x376340
movq (%rsp), %rax
cmpq $0x0, 0x228(%rax)
je 0x376314
movq (%rsp), %rdi
movq (%rsp), %rax
movq 0x1b8(%rax), %rsi
movq (%rsp), %rax
movq 0x228(%rax), %rax
movq (%rax), %rdx
movq (%rsp), %rax
movq 0x228(%rax), %rax
movq 0x8(%rax), %rcx
callq 0x376350
jmp 0x37633e
movq (%rsp), %rdi
movq (%rsp), %rax
movq 0x120(%rax), %rsi
movq (%rsp), %rax
movq 0x210(%rax), %rdx
movq (%rsp), %rax
movq 0x218(%rax), %rcx
callq 0x376350
jmp 0x376340
popq %rax
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/external/expat-2.0.1/lib/xmlparse.c
// Function: reportDefault
static void
reportDefault(XML_Parser parser, const ENCODING *enc,
              const char *s, const char *end)
{
  if (MUST_CONVERT(enc, s)) {
    const char **eventPP;
    const char **eventEndPP;
    if (enc == encoding) {
      eventPP = &eventPtr;
      eventEndPP = &eventEndPtr;
    }
    else {
      eventPP = &(openInternalEntities->internalEventPtr);
      eventEndPP = &(openInternalEntities->internalEventEndPtr);
    }
    do {
      ICHAR *dataPtr = (ICHAR *)dataBuf;
      XmlConvert(enc, &s, end, &dataPtr, (ICHAR *)dataBufEnd);
      *eventEndPP = s;
      defaultHandler(handlerArg, dataBuf, (int)(dataPtr - (ICHAR *)dataBuf));
      *eventPP = s;
    } while (s != end);
  }
  else
    defaultHandler(handlerArg, (XML_Char *)s, (int)((XML_Char *)end - (XML_Char *)s));
}

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
movq %rdx, 0x20(%rsp)
movq %rcx, 0x18(%rsp)
movq 0x28(%rsp), %rax
cmpb $0x0, 0x84(%rax)
jne 0x376468
movq 0x28(%rsp), %rax
movq 0x30(%rsp), %rcx
cmpq 0x120(%rcx), %rax
jne 0x3763af
movq 0x30(%rsp), %rax
addq $0x210, %rax            # imm = 0x210
movq %rax, 0x10(%rsp)
movq 0x30(%rsp), %rax
addq $0x218, %rax            # imm = 0x218
movq %rax, 0x8(%rsp)
jmp 0x3763d5
movq 0x30(%rsp), %rax
movq 0x228(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x30(%rsp), %rax
movq 0x228(%rax), %rax
addq $0x8, %rax
movq %rax, 0x8(%rsp)
jmp 0x3763d7
movq 0x30(%rsp), %rax
movq 0x58(%rax), %rax
movq %rax, (%rsp)
movq 0x28(%rsp), %rax
movq 0x70(%rax), %rax
movq 0x28(%rsp), %rdi
movq 0x18(%rsp), %rdx
movq 0x30(%rsp), %rcx
movq 0x60(%rcx), %r8
leaq 0x20(%rsp), %rsi
movq %rsp, %rcx
callq *%rax
movq 0x20(%rsp), %rcx
movq 0x8(%rsp), %rax
movq %rcx, (%rax)
movq 0x30(%rsp), %rax
movq 0xa0(%rax), %rax
movq 0x30(%rsp), %rcx
movq 0x8(%rcx), %rdi
movq 0x30(%rsp), %rcx
movq 0x58(%rcx), %rsi
movq (%rsp), %rcx
movq 0x30(%rsp), %rdx
movq 0x58(%rdx), %rdx
subq %rdx, %rcx
movl %ecx, %edx
callq *%rax
movq 0x20(%rsp), %rcx
movq 0x10(%rsp), %rax
movq %rcx, (%rax)
movq 0x20(%rsp), %rax
cmpq 0x18(%rsp), %rax
jne 0x3763d7
jmp 0x376493
movq 0x30(%rsp), %rax
movq 0xa0(%rax), %rax
movq 0x30(%rsp), %rcx
movq 0x8(%rcx), %rdi
movq 0x20(%rsp), %rsi
movq 0x18(%rsp), %rcx
movq 0x20(%rsp), %rdx
subq %rdx, %rcx
movl %ecx, %edx
callq *%rax
addq $0x38, %rsp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/external/expat-2.0.1/lib/xmlparse.c
// Function: XML_ExpatVersionInfo
XML_Expat_Version XMLCALL
XML_ExpatVersionInfo(void)
{
  XML_Expat_Version version;

  version.major = XML_MAJOR_VERSION;
  version.minor = XML_MINOR_VERSION;
  version.micro = XML_MICRO_VERSION;

  return version;
}

// Assembly:
movl $0x2, -0xc(%rsp)
movl $0x0, -0x8(%rsp)
movl $0x1, -0x4(%rsp)
movl -0x4(%rsp), %eax
movl %eax, -0x18(%rsp)
movq -0xc(%rsp), %rax
movq %rax, -0x20(%rsp)
movq -0x20(%rsp), %rax
movl -0x18(%rsp), %edx
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/external/expat-2.0.1/lib/xmlparse.c
// Function: dtdCreate
static DTD *
dtdCreate(const XML_Memory_Handling_Suite *ms)
{
  DTD *p = (DTD *)ms->malloc_fcn(sizeof(DTD));
  if (p == NULL)
    return p;
  poolInit(&(p->pool), ms);
  poolInit(&(p->entityValuePool), ms);
  hashTableInit(&(p->generalEntities), ms);
  hashTableInit(&(p->elementTypes), ms);
  hashTableInit(&(p->attributeIds), ms);
  hashTableInit(&(p->prefixes), ms);
#ifdef XML_DTD
  p->paramEntityRead = XML_FALSE;
  hashTableInit(&(p->paramEntities), ms);
#endif /* XML_DTD */
  p->defaultPrefix.name = NULL;
  p->defaultPrefix.binding = NULL;

  p->in_eldecl = XML_FALSE;
  p->scaffIndex = NULL;
  p->scaffold = NULL;
  p->scaffLevel = 0;
  p->scaffSize = 0;
  p->scaffCount = 0;
  p->contentStringLen = 0;

  p->keepProcessing = XML_TRUE;
  p->hasParamEntityRefs = XML_FALSE;
  p->standalone = XML_FALSE;
  return p;
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x8(%rsp)
movq 0x8(%rsp), %rax
movl $0x140, %edi            # imm = 0x140
callq *(%rax)
movq %rax, (%rsp)
cmpq $0x0, (%rsp)
jne 0x37656e
movq (%rsp), %rax
movq %rax, 0x10(%rsp)
jmp 0x376685
movq (%rsp), %rdi
addq $0xa0, %rdi
movq 0x8(%rsp), %rsi
callq 0x376690
movq (%rsp), %rdi
addq $0xd0, %rdi
movq 0x8(%rsp), %rsi
callq 0x376690
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x3766f0
movq (%rsp), %rdi
addq $0x28, %rdi
movq 0x8(%rsp), %rsi
callq 0x3766f0
movq (%rsp), %rdi
addq $0x50, %rdi
movq 0x8(%rsp), %rsi
callq 0x3766f0
movq (%rsp), %rdi
addq $0x78, %rdi
movq 0x8(%rsp), %rsi
callq 0x3766f0
movq (%rsp), %rax
movq $0x0, 0x108(%rax)
movq (%rsp), %rax
movq $0x0, 0x110(%rax)
movq (%rsp), %rax
movb $0x0, 0x118(%rax)
movq (%rsp), %rax
movq $0x0, 0x138(%rax)
movq (%rsp), %rax
movq $0x0, 0x120(%rax)
movq (%rsp), %rax
movl $0x0, 0x134(%rax)
movq (%rsp), %rax
movl $0x0, 0x12c(%rax)
movq (%rsp), %rax
movl $0x0, 0x130(%rax)
movq (%rsp), %rax
movl $0x0, 0x128(%rax)
movq (%rsp), %rax
movb $0x1, 0x100(%rax)
movq (%rsp), %rax
movb $0x0, 0x101(%rax)
movq (%rsp), %rax
movb $0x0, 0x102(%rax)
movq (%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
addq $0x18, %rsp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/external/expat-2.0.1/lib/xmlparse.c
// Function: poolInit
static void FASTCALL
poolInit(STRING_POOL *pool, const XML_Memory_Handling_Suite *ms)
{
  pool->blocks = NULL;
  pool->freeBlocks = NULL;
  pool->start = NULL;
  pool->ptr = NULL;
  pool->end = NULL;
  pool->mem = ms;
}

// Assembly:
movq %rdi, -0x8(%rsp)
movq %rsi, -0x10(%rsp)
movq -0x8(%rsp), %rax
movq $0x0, (%rax)
movq -0x8(%rsp), %rax
movq $0x0, 0x8(%rax)
movq -0x8(%rsp), %rax
movq $0x0, 0x20(%rax)
movq -0x8(%rsp), %rax
movq $0x0, 0x18(%rax)
movq -0x8(%rsp), %rax
movq $0x0, 0x10(%rax)
movq -0x10(%rsp), %rcx
movq -0x8(%rsp), %rax
movq %rcx, 0x28(%rax)
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/external/expat-2.0.1/lib/xmlparse.c
// Function: hashTableInit
static void FASTCALL
hashTableInit(HASH_TABLE *p, const XML_Memory_Handling_Suite *ms)
{
  p->power = 0;
  p->size = 0;
  p->used = 0;
  p->v = NULL;
  p->mem = ms;
}

// Assembly:
movq %rdi, -0x8(%rsp)
movq %rsi, -0x10(%rsp)
movq -0x8(%rsp), %rax
movb $0x0, 0x8(%rax)
movq -0x8(%rsp), %rax
movq $0x0, 0x10(%rax)
movq -0x8(%rsp), %rax
movq $0x0, 0x18(%rax)
movq -0x8(%rsp), %rax
movq $0x0, (%rax)
movq -0x10(%rsp), %rcx
movq -0x8(%rsp), %rax
movq %rcx, 0x20(%rax)
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/external/expat-2.0.1/lib/xmlparse.c
// Function: prologInitProcessor
static enum XML_Error PTRCALL
prologInitProcessor(XML_Parser parser,
                    const char *s,
                    const char *end,
                    const char **nextPtr)
{
  enum XML_Error result = initializeEncoding(parser);
  if (result != XML_ERROR_NONE)
    return result;
  processor = prologProcessor;
  return prologProcessor(parser, s, end, nextPtr);
}

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x28(%rsp)
movq %rsi, 0x20(%rsp)
movq %rdx, 0x18(%rsp)
movq %rcx, 0x10(%rsp)
movq 0x28(%rsp), %rdi
callq 0x3767b0
movl %eax, 0xc(%rsp)
cmpl $0x0, 0xc(%rsp)
je 0x376777
movl 0xc(%rsp), %eax
movl %eax, 0x34(%rsp)
jmp 0x3767a7
movq 0x28(%rsp), %rax
leaq 0xbd(%rip), %rcx        # 0x376840
movq %rcx, 0x200(%rax)
movq 0x28(%rsp), %rdi
movq 0x20(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq 0x10(%rsp), %rcx
callq 0x376840
movl %eax, 0x34(%rsp)
movl 0x34(%rsp), %eax
addq $0x38, %rsp
retq
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/external/expat-2.0.1/lib/xmlparse.c
// Function: initializeEncoding
static enum XML_Error
initializeEncoding(XML_Parser parser)
{
  const char *s;
#ifdef XML_UNICODE
  char encodingBuf[128];
  if (!protocolEncodingName)
    s = NULL;
  else {
    int i;
    for (i = 0; protocolEncodingName[i]; i++) {
      if (i == sizeof(encodingBuf) - 1
          || (protocolEncodingName[i] & ~0x7f) != 0) {
        encodingBuf[0] = '\0';
        break;
      }
      encodingBuf[i] = (char)protocolEncodingName[i];
    }
    encodingBuf[i] = '\0';
    s = encodingBuf;
  }
#else
  s = protocolEncodingName;
#endif
  if ((ns ? XmlInitEncodingNS : XmlInitEncoding)(&initEncoding, &encoding, s))
    return XML_ERROR_NONE;
  return handleUnknownEncoding(parser, protocolEncodingName);
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq 0x1c0(%rax), %rax
movq %rax, (%rsp)
movq 0x8(%rsp), %rax
movzbl 0x1c8(%rax), %ecx
leaq 0xe014(%rip), %rax      # 0x3847f0
cmpl $0x0, %ecx
cmovneq %rax, %rax
movq 0x8(%rsp), %rdi
addq $0x128, %rdi            # imm = 0x128
movq 0x8(%rsp), %rsi
addq $0x120, %rsi            # imm = 0x120
movq (%rsp), %rdx
callq *%rax
cmpl $0x0, %eax
je 0x376810
movl $0x0, 0x14(%rsp)
jmp 0x37682a
movq 0x8(%rsp), %rdi
movq 0x8(%rsp), %rax
movq 0x1c0(%rax), %rsi
callq 0x3768f0
movl %eax, 0x14(%rsp)
movl 0x14(%rsp), %eax
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/external/expat-2.0.1/lib/xmlparse.c
// Function: prologProcessor
static enum XML_Error PTRCALL
prologProcessor(XML_Parser parser,
                const char *s,
                const char *end,
                const char **nextPtr)
{
  const char *next = s;
  int tok = XmlPrologTok(encoding, s, end, &next);
  return doProlog(parser, encoding, s, end, tok, next, 
                  nextPtr, (XML_Bool)!ps_finalBuffer);
}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
movq %rdx, 0x30(%rsp)
movq %rcx, 0x28(%rsp)
movq 0x38(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x40(%rsp), %rax
movq 0x120(%rax), %rax
movq (%rax), %rax
movq 0x40(%rsp), %rcx
movq 0x120(%rcx), %rdi
movq 0x38(%rsp), %rsi
movq 0x30(%rsp), %rdx
leaq 0x20(%rsp), %rcx
callq *%rax
movl %eax, 0x1c(%rsp)
movq 0x40(%rsp), %rdi
movq 0x40(%rsp), %rax
movq 0x120(%rax), %rsi
movq 0x38(%rsp), %rdx
movq 0x30(%rsp), %rcx
movl 0x1c(%rsp), %r8d
movq 0x20(%rsp), %r9
movq 0x28(%rsp), %r10
movq 0x40(%rsp), %rax
cmpb $0x0, 0x37c(%rax)
setne %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
movq %r10, (%rsp)
movzbl %al, %eax
movl %eax, 0x8(%rsp)
callq 0x376af0
addq $0x48, %rsp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/external/expat-2.0.1/lib/xmlparse.c
// Function: handleUnknownEncoding
static enum XML_Error
handleUnknownEncoding(XML_Parser parser, const XML_Char *encodingName)
{
  if (unknownEncodingHandler) {
    XML_Encoding info;
    int i;
    for (i = 0; i < 256; i++)
      info.map[i] = -1;
    info.convert = NULL;
    info.data = NULL;
    info.release = NULL;
    if (unknownEncodingHandler(unknownEncodingHandlerData, encodingName,
                               &info)) {
      ENCODING *enc;
      unknownEncodingMem = MALLOC(XmlSizeOfUnknownEncoding());
      if (!unknownEncodingMem) {
        if (info.release)
          info.release(info.data);
        return XML_ERROR_NO_MEMORY;
      }
      enc = (ns
             ? XmlInitUnknownEncodingNS
             : XmlInitUnknownEncoding)(unknownEncodingMem,
                                       info.map,
                                       info.convert,
                                       info.data);
      if (enc) {
        unknownEncodingData = info.data;
        unknownEncodingRelease = info.release;
        encoding = enc;
        return XML_ERROR_NONE;
      }
    }
    if (info.release != NULL)
      info.release(info.data);
  }
  return XML_ERROR_UNKNOWN_ENCODING;
}

// Assembly:
subq $0x448, %rsp            # imm = 0x448
movq %rdi, 0x438(%rsp)
movq %rsi, 0x430(%rsp)
movq 0x438(%rsp), %rax
cmpq $0x0, 0xf8(%rax)
je 0x376ad4
movl $0x0, 0x14(%rsp)
cmpl $0x100, 0x14(%rsp)      # imm = 0x100
jge 0x376949
movslq 0x14(%rsp), %rax
movl $0xffffffff, 0x18(%rsp,%rax,4) # imm = 0xFFFFFFFF
movl 0x14(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x14(%rsp)
jmp 0x376925
movq $0x0, 0x420(%rsp)
movq $0x0, 0x418(%rsp)
movq $0x0, 0x428(%rsp)
movq 0x438(%rsp), %rax
movq 0xf8(%rax), %rax
movq 0x438(%rsp), %rcx
movq 0x1e0(%rcx), %rdi
movq 0x430(%rsp), %rsi
leaq 0x18(%rsp), %rdx
callq *%rax
cmpl $0x0, %eax
je 0x376ab5
movq 0x438(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, (%rsp)
callq 0x383d40
movl %eax, %ecx
movq (%rsp), %rax
movslq %ecx, %rdi
callq *%rax
movq %rax, %rcx
movq 0x438(%rsp), %rax
movq %rcx, 0x1d0(%rax)
movq 0x438(%rsp), %rax
cmpq $0x0, 0x1d0(%rax)
jne 0x376a14
cmpq $0x0, 0x428(%rsp)
je 0x376a04
movq 0x428(%rsp), %rax
movq 0x418(%rsp), %rdi
callq *%rax
movl $0x1, 0x444(%rsp)
jmp 0x376adf
movq 0x438(%rsp), %rax
movzbl 0x1c8(%rax), %ecx
leaq 0xd326(%rip), %rax      # 0x383d50
cmpl $0x0, %ecx
cmovneq %rax, %rax
movq 0x438(%rsp), %rcx
movq 0x1d0(%rcx), %rdi
leaq 0x18(%rsp), %rsi
movq 0x420(%rsp), %rdx
movq 0x418(%rsp), %rcx
callq *%rax
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x8(%rsp)
je 0x376ab3
movq 0x418(%rsp), %rcx
movq 0x438(%rsp), %rax
movq %rcx, 0x1d8(%rax)
movq 0x428(%rsp), %rcx
movq 0x438(%rsp), %rax
movq %rcx, 0x1e8(%rax)
movq 0x8(%rsp), %rcx
movq 0x438(%rsp), %rax
movq %rcx, 0x120(%rax)
movl $0x0, 0x444(%rsp)
jmp 0x376adf
jmp 0x376ab5
cmpq $0x0, 0x428(%rsp)
je 0x376ad2
movq 0x428(%rsp), %rax
movq 0x418(%rsp), %rdi
callq *%rax
jmp 0x376ad4
movl $0x12, 0x444(%rsp)
movl 0x444(%rsp), %eax
addq $0x448, %rsp            # imm = 0x448
retq
nop
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/external/expat-2.0.1/lib/xmlparse.c
// Function: poolStoreString
static XML_Char *
poolStoreString(STRING_POOL *pool, const ENCODING *enc,
                const char *ptr, const char *end)
{
  if (!poolAppend(pool, enc, ptr, end))
    return NULL;
  if (pool->ptr == pool->end && !poolGrow(pool))
    return NULL;
  *(pool->ptr)++ = 0;
  return pool->start;
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq %rsi, 0x10(%rsp)
movq %rdx, 0x8(%rsp)
movq %rcx, (%rsp)
movq 0x18(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq 0x8(%rsp), %rdx
movq (%rsp), %rcx
callq 0x37a2c0
cmpq $0x0, %rax
jne 0x379b20
movq $0x0, 0x20(%rsp)
jmp 0x379b72
movq 0x18(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x18(%rsp), %rcx
cmpq 0x10(%rcx), %rax
jne 0x379b4d
movq 0x18(%rsp), %rdi
callq 0x37a570
cmpb $0x0, %al
jne 0x379b4d
movq $0x0, 0x20(%rsp)
jmp 0x379b72
movq 0x18(%rsp), %rcx
movq 0x18(%rcx), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, 0x18(%rcx)
movb $0x0, (%rax)
movq 0x18(%rsp), %rax
movq 0x20(%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
addq $0x28, %rsp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/external/expat-2.0.1/lib/xmlparse.c
// Function: normalizePublicId
static void FASTCALL
normalizePublicId(XML_Char *publicId)
{
  XML_Char *p = publicId;
  XML_Char *s;
  for (s = publicId; *s; s++) {
    switch (*s) {
    case 0x20:
    case 0xD:
    case 0xA:
      if (p != publicId && p[-1] != 0x20)
        *p++ = 0x20;
      break;
    default:
      *p++ = *s;
    }
  }
  if (p != publicId && p[-1] == 0x20)
    --p;
  *p = XML_T('\0');
}

// Assembly:
movq %rdi, -0x8(%rsp)
movq -0x8(%rsp), %rax
movq %rax, -0x10(%rsp)
movq -0x8(%rsp), %rax
movq %rax, -0x18(%rsp)
movq -0x18(%rsp), %rax
cmpb $0x0, (%rax)
je 0x379c2f
movq -0x18(%rsp), %rax
movsbl (%rax), %eax
movl %eax, -0x1c(%rsp)
subl $0xa, %eax
je 0x379bd0
jmp 0x379bba
movl -0x1c(%rsp), %eax
subl $0xd, %eax
je 0x379bd0
jmp 0x379bc5
movl -0x1c(%rsp), %eax
subl $0x20, %eax
jne 0x379c00
jmp 0x379bd0
movq -0x10(%rsp), %rax
cmpq -0x8(%rsp), %rax
je 0x379bfe
movq -0x10(%rsp), %rax
movsbl -0x1(%rax), %eax
cmpl $0x20, %eax
je 0x379bfe
movq -0x10(%rsp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x10(%rsp)
movb $0x20, (%rax)
jmp 0x379c1a
movq -0x18(%rsp), %rax
movb (%rax), %cl
movq -0x10(%rsp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x10(%rsp)
movb %cl, (%rax)
jmp 0x379c1c
movq -0x18(%rsp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rsp)
jmp 0x379b99
movq -0x10(%rsp), %rax
cmpq -0x8(%rsp), %rax
je 0x379c57
movq -0x10(%rsp), %rax
movsbl -0x1(%rax), %eax
cmpl $0x20, %eax
jne 0x379c57
movq -0x10(%rsp), %rax
addq $-0x1, %rax
movq %rax, -0x10(%rsp)
movq -0x10(%rsp), %rax
movb $0x0, (%rax)
retq
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/external/expat-2.0.1/lib/xmlparse.c
// Function: contentProcessor
static enum XML_Error PTRCALL
contentProcessor(XML_Parser parser,
                 const char *start,
                 const char *end,
                 const char **endPtr)
{
  enum XML_Error result = doContent(parser, 0, encoding, start, end, 
                                    endPtr, (XML_Bool)!ps_finalBuffer);
  if (result == XML_ERROR_NONE) {
    if (!storeRawNames(parser))
      return XML_ERROR_NO_MEMORY;
  }
  return result;
}

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x28(%rsp)
movq %rsi, 0x20(%rsp)
movq %rdx, 0x18(%rsp)
movq %rcx, 0x10(%rsp)
movq 0x28(%rsp), %rdi
movq 0x28(%rsp), %rax
movq 0x120(%rax), %rdx
movq 0x20(%rsp), %rcx
movq 0x18(%rsp), %r8
movq 0x10(%rsp), %r9
movq 0x28(%rsp), %rax
cmpb $0x0, 0x37c(%rax)
setne %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
xorl %esi, %esi
movzbl %al, %eax
movl %eax, (%rsp)
callq 0x37b940
movl %eax, 0xc(%rsp)
cmpl $0x0, 0xc(%rsp)
jne 0x379ce0
movq 0x28(%rsp), %rdi
callq 0x37d430
cmpb $0x0, %al
jne 0x379cde
movl $0x1, 0x34(%rsp)
jmp 0x379ce8
jmp 0x379ce0
movl 0xc(%rsp), %eax
movl %eax, 0x34(%rsp)
movl 0x34(%rsp), %eax
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/external/expat-2.0.1/lib/xmlparse.c
// Function: getElementType
static ELEMENT_TYPE *
getElementType(XML_Parser parser,
               const ENCODING *enc,
               const char *ptr,
               const char *end)
{
  DTD * const dtd = _dtd;  /* save one level of indirection */
  const XML_Char *name = poolStoreString(&dtd->pool, enc, ptr, end);
  ELEMENT_TYPE *ret;

  if (!name)
    return NULL;
  ret = (ELEMENT_TYPE *) lookup(&dtd->elementTypes, name, sizeof(ELEMENT_TYPE));
  if (!ret)
    return NULL;
  if (ret->name != name)
    poolDiscard(&dtd->pool);
  else {
    poolFinish(&dtd->pool);
    if (!setElementTypePrefix(parser, ret))
      return NULL;
  }
  return ret;
}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x38(%rsp)
movq %rsi, 0x30(%rsp)
movq %rdx, 0x28(%rsp)
movq %rcx, 0x20(%rsp)
movq 0x38(%rsp), %rax
movq 0x290(%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rdi
addq $0xa0, %rdi
movq 0x30(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq 0x20(%rsp), %rcx
callq 0x379ae0
movq %rax, 0x10(%rsp)
cmpq $0x0, 0x10(%rsp)
jne 0x379d64
movq $0x0, 0x40(%rsp)
jmp 0x379e00
movq 0x18(%rsp), %rdi
addq $0x28, %rdi
movq 0x10(%rsp), %rsi
movl $0x28, %edx
callq 0x37ade0
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x8(%rsp)
jne 0x379d94
movq $0x0, 0x40(%rsp)
jmp 0x379e00
movq 0x8(%rsp), %rax
movq (%rax), %rax
cmpq 0x10(%rsp), %rax
je 0x379dbd
movq 0x18(%rsp), %rax
movq 0xc0(%rax), %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0xb8(%rax)
jmp 0x379df6
movq 0x18(%rsp), %rax
movq 0xb8(%rax), %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0xc0(%rax)
movq 0x38(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x37fef0
cmpl $0x0, %eax
jne 0x379df4
movq $0x0, 0x40(%rsp)
jmp 0x379e00
jmp 0x379df6
movq 0x8(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rax
addq $0x48, %rsp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/external/expat-2.0.1/lib/xmlparse.c
// Function: poolAppendString
static const XML_Char * FASTCALL
poolAppendString(STRING_POOL *pool, const XML_Char *s)
{
  while (*s) {
    if (!poolAppendChar(pool, *s))
      return NULL;
    s++;
  }
  return pool->start;
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x8(%rsp)
movq %rsi, (%rsp)
movq (%rsp), %rax
cmpb $0x0, (%rax)
je 0x37a29b
movq 0x8(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x8(%rsp), %rcx
cmpq 0x10(%rcx), %rax
jne 0x37a260
movq 0x8(%rsp), %rdi
callq 0x37a570
cmpb $0x0, %al
jne 0x37a260
xorl %eax, %eax
testb $0x1, %al
jne 0x37a28d
jmp 0x37a282
movq (%rsp), %rax
movb (%rax), %cl
movq 0x8(%rsp), %rdx
movq 0x18(%rdx), %rax
movq %rax, %rsi
addq $0x1, %rsi
movq %rsi, 0x18(%rdx)
movb %cl, (%rax)
movb $0x1, %al
testb $0x1, %al
jne 0x37a28d
movq $0x0, 0x10(%rsp)
jmp 0x37a2a9
movq (%rsp), %rax
addq $0x1, %rax
movq %rax, (%rsp)
jmp 0x37a22d
movq 0x8(%rsp), %rax
movq 0x20(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)