// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/external/expat-2.0.1/lib/xmlrole.c
// Function: internalSubset
static int PTRCALL
internalSubset(PROLOG_STATE *state,
               int tok,
               const char *ptr,
               const char *end,
               const ENCODING *enc)
{
  switch (tok) {
  case XML_TOK_PROLOG_S:
    return XML_ROLE_NONE;
  case XML_TOK_DECL_OPEN:
    if (XmlNameMatchesAscii(enc,
                            ptr + 2 * MIN_BYTES_PER_CHAR(enc),
                            end,
                            KW_ENTITY)) {
      state->handler = entity0;
      return XML_ROLE_ENTITY_NONE;
    }
    if (XmlNameMatchesAscii(enc,
                            ptr + 2 * MIN_BYTES_PER_CHAR(enc),
                            end,
                            KW_ATTLIST)) {
      state->handler = attlist0;
      return XML_ROLE_ATTLIST_NONE;
    }
    if (XmlNameMatchesAscii(enc,
                            ptr + 2 * MIN_BYTES_PER_CHAR(enc),
                            end,
                            KW_ELEMENT)) {
      state->handler = element0;
      return XML_ROLE_ELEMENT_NONE;
    }
    if (XmlNameMatchesAscii(enc,
                            ptr + 2 * MIN_BYTES_PER_CHAR(enc),
                            end,
                            KW_NOTATION)) {
      state->handler = notation0;
      return XML_ROLE_NOTATION_NONE;
    }
    break;
  case XML_TOK_PI:
    return XML_ROLE_PI;
  case XML_TOK_COMMENT:
    return XML_ROLE_COMMENT;
  case XML_TOK_PARAM_ENTITY_REF:
    return XML_ROLE_PARAM_ENTITY_REF;
  case XML_TOK_CLOSE_BRACKET:
    state->handler = doctype5;
    return XML_ROLE_DOCTYPE_NONE;
  case XML_TOK_NONE:
    return XML_ROLE_NONE;
  }
  return common(state, tok);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $0x19, %esi
jg 0x252f28
movq %rcx, %r15
xorl %eax, %eax
leal -0xb(%rsi), %ecx
cmpl $0x5, %ecx
ja 0x252f39
movq %rdx, %r12
leaq 0x178748(%rip), %rdx    # 0x3cb660
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movl $0x37, %eax
jmp 0x252f99
cmpl $0x1a, %esi
je 0x252f8a
cmpl $0x1c, %esi
jne 0x252f3e
movl $0x39, %eax
jmp 0x252f99
cmpl $-0x4, %esi
je 0x252f99
leaq -0x108(%rip), %rax      # 0x252e3d
movq %rax, (%rbx)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x252f99
movl $0x38, %eax
jmp 0x252f99
movq %r8, %r14
movslq 0x80(%r8), %rax
leaq (%r12,%rax,2), %rsi
leaq 0x1787bf(%rip), %rcx    # 0x3cb72a
movq %r8, %rdi
movq %r15, %rdx
callq *0x30(%r8)
testl %eax, %eax
je 0x252fa5
leaq 0x164(%rip), %rax       # 0x2530e4
movq %rax, (%rbx)
movl $0xb, %eax
jmp 0x252f99
leaq 0x21b(%rip), %rax       # 0x2531ac
movq %rax, (%rbx)
movl $0x3, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movslq 0x80(%r14), %rax
leaq (%r12,%rax,2), %rsi
leaq 0x17877a(%rip), %rcx    # 0x3cb731
movq %r14, %rdi
movq %r15, %rdx
callq *0x30(%r14)
testl %eax, %eax
je 0x252fd6
leaq 0x153(%rip), %rax       # 0x25311f
movq %rax, (%rbx)
movl $0x21, %eax
jmp 0x252f99
movslq 0x80(%r14), %rax
leaq (%r12,%rax,2), %rsi
leaq 0x178751(%rip), %rcx    # 0x3cb739
movq %r14, %rdi
movq %r15, %rdx
callq *0x30(%r14)
testl %eax, %eax
je 0x253007
leaq 0x153(%rip), %rax       # 0x253150
movq %rax, (%rbx)
movl $0x27, %eax
jmp 0x252f99
movslq 0x80(%r14), %rax
leaq (%r12,%rax,2), %rsi
leaq 0x178728(%rip), %rcx    # 0x3cb741
movq %r14, %rdi
movq %r15, %rdx
callq *0x30(%r14)
testl %eax, %eax
je 0x252f3e
leaq 0x14f(%rip), %rax       # 0x253181
movq %rax, (%rbx)
movl $0x11, %eax
jmp 0x252f99