// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/expat-2.0.1/lib/xmltok_impl.c
// Function: little2_scanPoundName
static int PTRCALL
PREFIX(scanPoundName)(const ENCODING *enc, const char *ptr, const char *end,
                      const char **nextTokPtr)
{
  if (ptr == end)
    return XML_TOK_PARTIAL;
  switch (BYTE_TYPE(enc, ptr)) {
  CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
  default:
    *nextTokPtr = ptr;
    return XML_TOK_INVALID;
  }
  while (ptr != end) {
    switch (BYTE_TYPE(enc, ptr)) {
    CHECK_NAME_CASES(enc, ptr, end, nextTokPtr)
    case BT_CR: case BT_LF: case BT_S:
    case BT_RPAR: case BT_GT: case BT_PERCNT: case BT_VERBAR:
      *nextTokPtr = ptr;
      return XML_TOK_POUND_NAME;
    default:
      *nextTokPtr = ptr;
      return XML_TOK_INVALID;
    }
  }
  return -XML_TOK_POUND_NAME;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
cmpq %rdx, %rsi
je 0x262661
movzbl 0x1(%rsi), %eax
cmpl $0xdb, %eax
jg 0x26266b
movb $0x7, %r8b
leal -0xd8(%rax), %r9d
cmpl $0x4, %r9d
jb 0x262691
testl %eax, %eax
jne 0x26268e
movzbl (%rsi), %r8d
movb 0x88(%rdi,%r8), %r8b
jmp 0x262691
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x262823
leal -0xdc(%rax), %r8d
cmpl $0x4, %r8d
jae 0x26267d
movb $0x8, %r8b
jmp 0x262691
cmpl $0xff, %eax
jne 0x26268e
cmpb $-0x3, (%rsi)
jbe 0x26268e
xorl %r8d, %r8d
jmp 0x262691
movb $0x1d, %r8b
movzbl %r8b, %r9d
xorl %r8d, %r8d
cmpl $0x15, %r9d
jg 0x2626d3
cmpl $0x5, %r9d
je 0x2627f7
cmpl $0x6, %r9d
je 0x262807
cmpl $0x7, %r9d
jne 0x26281d
subq %rsi, %rdx
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
cmpq $0x4, %rdx
jge 0x26281d
jmp 0x262823
cmpl $0x16, %r9d
je 0x26271f
cmpl $0x18, %r9d
je 0x26271f
cmpl $0x1d, %r9d
jne 0x26281d
leaq 0x174560(%rip), %r9     # 0x3d6c50
movzbl (%rax,%r9), %eax
movzbl (%rsi), %r9d
shll $0x5, %eax
movl %r9d, %r10d
shrl $0x3, %r10d
andl $0x1c, %r10d
orl %eax, %r10d
leaq 0x17403f(%rip), %rax    # 0x3d6750
movl (%r10,%rax), %eax
btl %r9d, %eax
jae 0x26281d
leaq 0x2(%rsi), %r14
movl $0xffffffec, %eax       # imm = 0xFFFFFFEC
cmpq %rdx, %r14
je 0x262823
movq %rdx, %r9
subq %rsi, %r9
addq $-0x2, %r9
leaq 0x17360a(%rip), %r10    # 0x3d5d4c
leaq 0x174607(%rip), %r11    # 0x3d6d50
leaq 0x174000(%rip), %rbx    # 0x3d6750
movq %r14, %rsi
movzbl 0x1(%rsi), %r14d
cmpl $0xdb, %r14d
jg 0x262784
movb $0x7, %bpl
leal -0xd8(%r14), %r15d
cmpl $0x4, %r15d
jb 0x2627aa
testl %r14d, %r14d
jne 0x2627a7
movzbl (%rsi), %r15d
movb 0x88(%rdi,%r15), %bpl
jmp 0x2627aa
leal -0xdc(%r14), %ebp
cmpl $0x4, %ebp
jae 0x262795
movb $0x8, %bpl
jmp 0x2627aa
cmpl $0xff, %r14d
jne 0x2627a7
cmpb $-0x3, (%rsi)
jbe 0x2627a7
xorl %ebp, %ebp
jmp 0x2627aa
movb $0x1d, %bpl
movzbl %bpl, %r15d
addl $-0x5, %r15d
cmpl $0x1f, %r15d
ja 0x26281d
movslq (%r10,%r15,4), %r15
addq %r10, %r15
jmpq *%r15
addq $0x2, %rsi
addq $-0x2, %r9
cmpq %rdx, %rsi
jne 0x262753
jmp 0x262823
movzbl (%r14,%r11), %ebp
movzbl (%rsi), %r14d
shll $0x5, %ebp
movl %r14d, %r15d
shrl $0x3, %r15d
andl $0x1c, %r15d
orl %ebp, %r15d
movl (%r15,%rbx), %ebp
btl %r14d, %ebp
jb 0x2627c2
jmp 0x26281d
subq %rsi, %rdx
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
cmpq $0x2, %rdx
jge 0x26281d
jmp 0x262823
subq %rsi, %rdx
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
cmpq $0x3, %rdx
jge 0x26281d
jmp 0x262823
movl $0x14, %r8d
movq %rsi, (%rcx)
movl %r8d, %eax
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
cmpq $0x2, %r9
jge 0x26281d
jmp 0x262823
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
cmpq $0x3, %r9
jge 0x26281d
jmp 0x262823
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
cmpq $0x4, %r9
jge 0x26281d
jmp 0x262823