// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x48, %rsp
movq 0x50(%rsp), %rax
movq %rdi, 0x38(%rsp)
movq %rsi, 0x30(%rsp)
movq %rdx, 0x28(%rsp)
movq %rcx, 0x20(%rsp)
movq %r8, 0x18(%rsp)
movq %r9, 0x10(%rsp)
movq 0x30(%rsp), %rax
cmpq 0x28(%rsp), %rax
jne 0x39853c
movq 0x20(%rsp), %rax
movq $0x0, (%rax)
movl $0x1, 0x44(%rsp)
jmp 0x39889d
movq 0x38(%rsp), %rdi
movq 0x30(%rsp), %rsi
movq 0x28(%rsp), %rdx
callq 0x3988b0
movl %eax, %edi
callq 0x398920
cmpl $0x0, %eax
jne 0x398576
movq 0x30(%rsp), %rcx
movq 0x50(%rsp), %rax
movq %rcx, (%rax)
movl $0x0, 0x44(%rsp)
jmp 0x39889d
jmp 0x398578
movq 0x38(%rsp), %rax
movl 0x80(%rax), %ecx
movq 0x30(%rsp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, 0x30(%rsp)
movq 0x38(%rsp), %rdi
movq 0x30(%rsp), %rsi
movq 0x28(%rsp), %rdx
callq 0x3988b0
movl %eax, %edi
callq 0x398920
cmpl $0x0, %eax
jne 0x398578
movq 0x30(%rsp), %rax
cmpq 0x28(%rsp), %rax
jne 0x3985d8
movq 0x20(%rsp), %rax
movq $0x0, (%rax)
movl $0x1, 0x44(%rsp)
jmp 0x39889d
movq 0x30(%rsp), %rcx
movq 0x20(%rsp), %rax
movq %rcx, (%rax)
movq 0x38(%rsp), %rdi
movq 0x30(%rsp), %rsi
movq 0x28(%rsp), %rdx
callq 0x3988b0
movl %eax, 0xc(%rsp)
cmpl $-0x1, 0xc(%rsp)
jne 0x39861e
movq 0x30(%rsp), %rcx
movq 0x50(%rsp), %rax
movq %rcx, (%rax)
movl $0x0, 0x44(%rsp)
jmp 0x39889d
cmpl $0x3d, 0xc(%rsp)
jne 0x398637
movq 0x30(%rsp), %rcx
movq 0x18(%rsp), %rax
movq %rcx, (%rax)
jmp 0x3986d4
movl 0xc(%rsp), %edi
callq 0x398920
cmpl $0x0, %eax
je 0x3986b4
movq 0x30(%rsp), %rcx
movq 0x18(%rsp), %rax
movq %rcx, (%rax)
movq 0x38(%rsp), %rax
movl 0x80(%rax), %ecx
movq 0x30(%rsp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, 0x30(%rsp)
movq 0x38(%rsp), %rdi
movq 0x30(%rsp), %rsi
movq 0x28(%rsp), %rdx
callq 0x3988b0
movl %eax, %edi
movl %edi, 0xc(%rsp)
callq 0x398920
cmpl $0x0, %eax
jne 0x398652
cmpl $0x3d, 0xc(%rsp)
je 0x3986b2
movq 0x30(%rsp), %rcx
movq 0x50(%rsp), %rax
movq %rcx, (%rax)
movl $0x0, 0x44(%rsp)
jmp 0x39889d
jmp 0x3986d4
movq 0x38(%rsp), %rax
movl 0x80(%rax), %ecx
movq 0x30(%rsp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, 0x30(%rsp)
jmp 0x3985e5
movq 0x30(%rsp), %rax
movq 0x20(%rsp), %rcx
cmpq (%rcx), %rax
jne 0x3986fd
movq 0x30(%rsp), %rcx
movq 0x50(%rsp), %rax
movq %rcx, (%rax)
movl $0x0, 0x44(%rsp)
jmp 0x39889d
movq 0x38(%rsp), %rax
movl 0x80(%rax), %ecx
movq 0x30(%rsp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, 0x30(%rsp)
movq 0x38(%rsp), %rdi
movq 0x30(%rsp), %rsi
movq 0x28(%rsp), %rdx
callq 0x3988b0
movl %eax, 0xc(%rsp)
movl 0xc(%rsp), %edi
callq 0x398920
cmpl $0x0, %eax
je 0x398773
movq 0x38(%rsp), %rax
movl 0x80(%rax), %ecx
movq 0x30(%rsp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, 0x30(%rsp)
movq 0x38(%rsp), %rdi
movq 0x30(%rsp), %rsi
movq 0x28(%rsp), %rdx
callq 0x3988b0
movl %eax, 0xc(%rsp)
jmp 0x398730
cmpl $0x22, 0xc(%rsp)
je 0x39879b
cmpl $0x27, 0xc(%rsp)
je 0x39879b
movq 0x30(%rsp), %rcx
movq 0x50(%rsp), %rax
movq %rcx, (%rax)
movl $0x0, 0x44(%rsp)
jmp 0x39889d
movl 0xc(%rsp), %eax
movb %al, 0xb(%rsp)
movq 0x38(%rsp), %rax
movl 0x80(%rax), %ecx
movq 0x30(%rsp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rcx
movq 0x10(%rsp), %rax
movq %rcx, (%rax)
movq 0x38(%rsp), %rdi
movq 0x30(%rsp), %rsi
movq 0x28(%rsp), %rdx
callq 0x3988b0
movl %eax, 0xc(%rsp)
movl 0xc(%rsp), %eax
movsbl 0xb(%rsp), %ecx
cmpl %ecx, %eax
jne 0x3987f5
jmp 0x398879
movl $0x61, %eax
cmpl 0xc(%rsp), %eax
jg 0x398807
cmpl $0x7a, 0xc(%rsp)
jle 0x398857
movl $0x41, %eax
cmpl 0xc(%rsp), %eax
jg 0x398819
cmpl $0x5a, 0xc(%rsp)
jle 0x398857
movl $0x30, %eax
cmpl 0xc(%rsp), %eax
jg 0x39882b
cmpl $0x39, 0xc(%rsp)
jle 0x398857
cmpl $0x2e, 0xc(%rsp)
je 0x398857
cmpl $0x2d, 0xc(%rsp)
je 0x398857
cmpl $0x5f, 0xc(%rsp)
je 0x398857
movq 0x30(%rsp), %rcx
movq 0x50(%rsp), %rax
movq %rcx, (%rax)
movl $0x0, 0x44(%rsp)
jmp 0x39889d
jmp 0x398859
movq 0x38(%rsp), %rax
movl 0x80(%rax), %ecx
movq 0x30(%rsp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, 0x30(%rsp)
jmp 0x3987cb
movq 0x30(%rsp), %rcx
movq 0x38(%rsp), %rax
movslq 0x80(%rax), %rax
addq %rax, %rcx
movq 0x50(%rsp), %rax
movq %rcx, (%rax)
movl $0x1, 0x44(%rsp)
movl 0x44(%rsp), %eax
addq $0x48, %rsp
retq
nopw %cs:(%rax,%rax)