// File: /workspace/github_c_makefile_star2_O1/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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, 0x8(%rsp)
movq %rdx, %r14
movq %rsi, %r13
movq %rdi, %r15
leaq -0x23(%rip), %rax       # 0x25a2be
movq %rax, 0x200(%rdi)
movq %rsi, 0x210(%rdi)
leaq 0x10(%rsp), %r12
leaq 0x17a31d(%rip), %rbx    # 0x3d4618
movq $0x0, 0x10(%rsp)
movq 0x120(%r15), %rdi
movq %r13, %rsi
movq %r14, %rdx
movq %r12, %rcx
callq *(%rdi)
movq 0x10(%rsp), %rcx
movq %rcx, 0x218(%r15)
xorl %edx, %edx
cmpl $0xa, %eax
jg 0x25a354
leal 0x4(%rax), %esi
cmpl $0x4, %esi
ja 0x25a390
movslq (%rbx,%rsi,4), %rax
addq %rbx, %rax
jmpq *%rax
xorl %ebp, %ebp
cmpb $0x0, 0x37c(%r15)
je 0x25a453
movl $0x6, %ebp
jmp 0x25a462
cmpl $0xb, %eax
je 0x25a3f9
cmpl $0xd, %eax
je 0x25a40d
cmpl $0xf, %eax
jne 0x25a3ce
cmpq $0x0, 0xa0(%r15)
je 0x25a423
movq 0x120(%r15), %rsi
movq %r15, %rdi
movq %r13, %rdx
callq 0x2550af
jmp 0x25a423
cmpl $-0xf, %eax
jne 0x25a3ce
cmpq $0x0, 0xa0(%r15)
je 0x25a3bf
movq 0x120(%r15), %rsi
movq %r15, %rdi
movq %r13, %rdx
callq 0x2550af
cmpl $0x2, 0x378(%r15)
je 0x25a44c
movq 0x10(%rsp), %rax
movq 0x8(%rsp), %rcx
movq %rax, (%rcx)
jmp 0x25a448
movl $0x9, %ebp
jmp 0x25a464
movq %rcx, 0x210(%r15)
movl $0x4, %ebp
jmp 0x25a462
xorl %ebp, %ebp
cmpb $0x0, 0x37c(%r15)
je 0x25a453
movl $0x5, %ebp
jmp 0x25a462
movq 0x120(%r15), %rsi
movq %r15, %rdi
movq %r13, %rdx
callq 0x257f1d
jmp 0x25a41f
movq 0x120(%r15), %rsi
movq %r15, %rdi
movq %r13, %rdx
callq 0x258060
testl %eax, %eax
je 0x25a45d
movq 0x10(%rsp), %r13
movq %r13, 0x210(%r15)
movl 0x378(%r15), %eax
cmpl $0x2, %eax
je 0x25a44c
cmpl $0x3, %eax
jne 0x25a46e
movq 0x8(%rsp), %rax
movq %r13, (%rax)
xorl %ebp, %ebp
jmp 0x25a462
movl $0x23, %ebp
jmp 0x25a462
movq 0x8(%rsp), %rax
movq %r13, (%rax)
jmp 0x25a462
movl $0x1, %ebp
xorl %edx, %edx
testb %dl, %dl
jne 0x25a2fb
jmp 0x25a472
movb $0x1, %dl
jmp 0x25a464
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq