// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/external/expat-2.0.1/lib/xmlparse.c
// Function: epilogProcessor
static enum XML_Error PTRCALL
epilogProcessor(XML_Parser parser,
                const char *s,
                const char *end,
                const char **nextPtr)
{
  processor = epilogProcessor;
  eventPtr = s;
  for (;;) {
    const char *next = NULL;
    int tok = XmlPrologTok(encoding, s, end, &next);
    eventEndPtr = next;
    switch (tok) {
    /* report partial linebreak - it might be the last token */
    case -XML_TOK_PROLOG_S:
      if (defaultHandler) {
        reportDefault(parser, encoding, s, next);
        if (ps_parsing == XML_FINISHED)
          return XML_ERROR_ABORTED;
      }
      *nextPtr = next;
      return XML_ERROR_NONE;
    case XML_TOK_NONE:
      *nextPtr = s;
      return XML_ERROR_NONE;
    case XML_TOK_PROLOG_S:
      if (defaultHandler)
        reportDefault(parser, encoding, s, next);
      break;
    case XML_TOK_PI:
      if (!reportProcessingInstruction(parser, encoding, s, next))
        return XML_ERROR_NO_MEMORY;
      break;
    case XML_TOK_COMMENT:
      if (!reportComment(parser, encoding, s, next))
        return XML_ERROR_NO_MEMORY;
      break;
    case XML_TOK_INVALID:
      eventPtr = next;
      return XML_ERROR_INVALID_TOKEN;
    case XML_TOK_PARTIAL:
      if (!ps_finalBuffer) {
        *nextPtr = s;
        return XML_ERROR_NONE;
      }
      return XML_ERROR_UNCLOSED_TOKEN;
    case XML_TOK_PARTIAL_CHAR:
      if (!ps_finalBuffer) {
        *nextPtr = s;
        return XML_ERROR_NONE;
      }
      return XML_ERROR_PARTIAL_CHAR;
    default:
      return XML_ERROR_JUNK_AFTER_DOC_ELEMENT;
    }
    eventPtr = s = next;
    switch (ps_parsing) {
    case XML_SUSPENDED: 
      *nextPtr = next;
      return XML_ERROR_NONE;
    case XML_FINISHED:
      return XML_ERROR_ABORTED;
    default: ;
    }
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rcx, %rbx
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %r14
leaq -0x20(%rip), %rax       # 0x251cf6
movq %rax, 0x200(%rdi)
movq %rsi, 0x210(%rdi)
leaq 0x8(%rsp), %r13
movq $0x0, 0x8(%rsp)
movq 0x120(%r14), %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r13, %rcx
callq *(%rdi)
movl %eax, %edx
movq 0x8(%rsp), %rcx
movq %rcx, 0x218(%r14)
movl $0x9, %eax
cmpl $0xc, %edx
jle 0x251d88
cmpl $0xd, %edx
je 0x251da1
cmpl $0xf, %edx
jne 0x251e55
cmpq $0x0, 0xa0(%r14)
je 0x251db7
movq 0x120(%r14), %rsi
movq %r14, %rdi
movq %r15, %rdx
callq 0x24d5ee
jmp 0x251db7
cmpl $0xb, %edx
jne 0x251dda
movq 0x120(%r14), %rsi
movq %r14, %rdi
movq %r15, %rdx
callq 0x24fe15
jmp 0x251db3
movq 0x120(%r14), %rsi
movq %r14, %rdi
movq %r15, %rdx
callq 0x24ff58
testl %eax, %eax
je 0x251e00
movq 0x8(%rsp), %r15
movq %r15, 0x210(%r14)
movl 0x378(%r14), %eax
cmpl $0x2, %eax
je 0x251df9
cmpl $0x3, %eax
jne 0x251d29
jmp 0x251e50
leal 0x4(%rdx), %esi
cmpl $0x4, %esi
ja 0x251e07
leaq 0x17910f(%rip), %rdx    # 0x3caef8
movslq (%rdx,%rsi,4), %rsi
addq %rdx, %rsi
jmpq *%rsi
movl $0x6, %eax
jmp 0x251e46
movl $0x23, %eax
jmp 0x251e55
movl $0x1, %eax
jmp 0x251e55
cmpl $-0xf, %edx
jne 0x251e55
cmpq $0x0, 0xa0(%r14)
je 0x251e3c
movq 0x120(%r14), %rsi
movq %r14, %rdi
movq %r15, %rdx
callq 0x24d5ee
movl $0x23, %eax
cmpl $0x2, 0x378(%r14)
je 0x251e55
movq 0x8(%rsp), %rcx
movq %rcx, (%rbx)
jmp 0x251e53
movl $0x5, %eax
cmpb $0x0, 0x37c(%r14)
jne 0x251e55
movq %r15, (%rbx)
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rcx, 0x210(%r14)
movl $0x4, %eax
jmp 0x251e55