// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/external/expat-2.0.1/lib/xmltok.c
// Function: parsePseudoAttribute
static int
parsePseudoAttribute(const ENCODING *enc,
                     const char *ptr,
                     const char *end,
                     const char **namePtr,
                     const char **nameEndPtr,
                     const char **valPtr,
                     const char **nextTokPtr)
{
  int c;
  char open;
  if (ptr == end) {
    *namePtr = NULL;
    return 1;
  }
  if (!isSpace(toAscii(enc, ptr, end))) {
    *nextTokPtr = ptr;
    return 0;
  }
  do {
    ptr += enc->minBytesPerChar;
  } while (isSpace(toAscii(enc, ptr, end)));
  if (ptr == end) {
    *namePtr = NULL;
    return 1;
  }
  *namePtr = ptr;
  for (;;) {
    c = toAscii(enc, ptr, end);
    if (c == -1) {
      *nextTokPtr = ptr;
      return 0;
    }
    if (c == ASCII_EQUALS) {
      *nameEndPtr = ptr;
      break;
    }
    if (isSpace(c)) {
      *nameEndPtr = ptr;
      do {
        ptr += enc->minBytesPerChar;
      } while (isSpace(c = toAscii(enc, ptr, end)));
      if (c != ASCII_EQUALS) {
        *nextTokPtr = ptr;
        return 0;
      }
      break;
    }
    ptr += enc->minBytesPerChar;
  }
  if (ptr == *namePtr) {
    *nextTokPtr = ptr;
    return 0;
  }
  ptr += enc->minBytesPerChar;
  c = toAscii(enc, ptr, end);
  while (isSpace(c)) {
    ptr += enc->minBytesPerChar;
    c = toAscii(enc, ptr, end);
  }
  if (c != ASCII_QUOT && c != ASCII_APOS) {
    *nextTokPtr = ptr;
    return 0;
  }
  open = (char)c;
  ptr += enc->minBytesPerChar;
  *valPtr = ptr;
  for (;; ptr += enc->minBytesPerChar) {
    c = toAscii(enc, ptr, end);
    if (c == open)
      break;
    if (!(ASCII_a <= c && c <= ASCII_z)
        && !(ASCII_A <= c && c <= ASCII_Z)
        && !(ASCII_0 <= c && c <= ASCII_9)
        && c != ASCII_PERIOD
        && c != ASCII_MINUS
        && c != ASCII_UNDERSCORE) {
      *nextTokPtr = ptr;
      return 0;
    }
  }
  *nextTokPtr = ptr + enc->minBytesPerChar;
  return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r13
cmpq %rdx, %rsi
je 0x20c5b6
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
movq %r8, 0x8(%rsp)
movq %r9, 0x10(%rsp)
movq 0x50(%rsp), %rbp
callq 0x20c6eb
cmpl $0x20, %eax
ja 0x20c6b5
movl %eax, %eax
movabsq $0x100002600, %r12      # imm = 0x100002600
btq %rax, %r12
jae 0x20c6b5
movq %rbx, %rax
movslq 0x80(%r15), %rbx
addq %rax, %rbx
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x20c6eb
cmpl $0x20, %eax
ja 0x20c56d
movl %eax, %eax
btq %rax, %r12
jb 0x20c545
cmpq %r14, %rbx
je 0x20c5b6
movq %rbx, (%r13)
movabsq $0x200004c00, %rbp      # imm = 0x200004C00
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x20c6eb
incl %eax
cmpl $0x3e, %eax
ja 0x20c5aa
btq %rax, %rbp
jb 0x20c5c3
testq %rax, %rax
je 0x20c6bb
cmpq $0x3e, %rax
je 0x20c607
movslq 0x80(%r15), %rax
addq %rax, %rbx
jmp 0x20c580
andq $0x0, (%r13)
pushq $0x1
popq %rax
jmp 0x20c6c5
movq 0x8(%rsp), %rax
movq %rbx, (%rax)
movq 0x50(%rsp), %rbp
movq %rbx, %rax
movslq 0x80(%r15), %rbx
addq %rax, %rbx
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x20c6eb
cmpl $0x3d, %eax
ja 0x20c6b5
movl %eax, %eax
btq %rax, %r12
jb 0x20c5d0
cmpq $0x3d, %rax
je 0x20c614
jmp 0x20c6b5
movq 0x8(%rsp), %rax
movq %rbx, (%rax)
movq 0x50(%rsp), %rbp
cmpq (%r13), %rbx
je 0x20c6b5
movq %rbx, %rax
movslq 0x80(%r15), %rbx
addq %rax, %rbx
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x20c6eb
cmpl $0x27, %eax
ja 0x20c6bb
movl %eax, %ebp
movl %eax, %eax
btq %rax, %r12
jb 0x20c61e
movabsq $0x8400000000, %rcx     # imm = 0x8400000000
btq %rax, %rcx
jae 0x20c6bb
movslq 0x80(%r15), %rax
addq %rax, %rbx
movq 0x10(%rsp), %rax
movq %rbx, (%rax)
movabsq $0x4000000000003, %r12  # imm = 0x4000000000003
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x20c6eb
cmpl %ebp, %eax
je 0x20c6d4
leal -0x3a(%rax), %ecx
cmpl $-0xb, %ecx
ja 0x20c6a9
movl %eax, %ecx
andl $-0x21, %ecx
addl $-0x5b, %ecx
cmpl $-0x1b, %ecx
ja 0x20c6a9
addl $-0x2d, %eax
cmpl $0x32, %eax
ja 0x20c6bb
btq %rax, %r12
jae 0x20c6bb
movslq 0x80(%r15), %rax
addq %rax, %rbx
jmp 0x20c674
movq %rbx, (%rbp)
jmp 0x20c6c3
movq 0x50(%rsp), %rax
movq %rbx, (%rax)
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movslq 0x80(%r15), %rax
addq %rax, %rbx
movq 0x50(%rsp), %rax
movq %rbx, (%rax)
jmp 0x20c5bb