// File: /workspace/github_c_makefile_star2_O2/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
pushq %rax
movq %rcx, %rbx
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %r14
leaq -0x1e(%rip), %rax       # 0x20135a
movq %rax, 0x200(%rdi)
movq %rsi, 0x210(%rdi)
movq %rsp, %r13
pushq $0x9
popq %rbp
andq $0x0, (%rsp)
movq 0x120(%r14), %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r13, %rcx
callq *(%rdi)
movq (%rsp), %rcx
movq %rcx, 0x218(%r14)
cmpl $0xb, %eax
je 0x2013db
cmpl $0xd, %eax
je 0x2013ef
cmpl $0xf, %eax
jne 0x201427
cmpq $0x0, 0xa0(%r14)
je 0x201405
movq 0x120(%r14), %rsi
movq %r14, %rdi
movq %r15, %rdx
callq 0x1fd08b
jmp 0x201405
movq 0x120(%r14), %rsi
movq %r14, %rdi
movq %r15, %rdx
callq 0x1ff68b
jmp 0x201401
movq 0x120(%r14), %rsi
movq %r14, %rdi
movq %r15, %rdx
callq 0x1ff783
testl %eax, %eax
je 0x201451
movq (%rsp), %r15
movq %r15, 0x210(%r14)
movl 0x378(%r14), %eax
cmpl $0x2, %eax
je 0x20144d
cmpl $0x3, %eax
jne 0x20138c
jmp 0x2014a6
leal 0x4(%rax), %edx
cmpl $0x4, %edx
ja 0x201455
leaq 0x169ed2(%rip), %rax    # 0x36b308
movslq (%rax,%rdx,4), %rdx
addq %rax, %rdx
jmpq *%rdx
cmpb $0x0, 0x37c(%r14)
je 0x2014a6
pushq $0x6
jmp 0x2014a3
pushq $0x23
jmp 0x2014a3
pushq $0x1
jmp 0x2014a3
cmpl $-0xf, %eax
jne 0x2014ab
cmpq $0x0, 0xa0(%r14)
je 0x201487
movq 0x120(%r14), %rsi
movq %r14, %rdi
movq %r15, %rdx
callq 0x1fd08b
cmpl $0x2, 0x378(%r14)
pushq $0x23
popq %rbp
je 0x2014ab
movq (%rsp), %rcx
movq %rcx, (%rbx)
jmp 0x2014a9
movq %rcx, 0x210(%r14)
pushq $0x4
jmp 0x2014a3
cmpb $0x0, 0x37c(%r14)
je 0x2014a6
pushq $0x5
popq %rbp
jmp 0x2014ab
movq %r15, (%rbx)
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq