// File: /workspace/github_c_makefile_star2_O3/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:
cmpq %rdx, %rsi
je 0x25d9b9
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq %r8, 0x28(%rsp)
movq %rcx, 0x20(%rsp)
movq %r9, 0x30(%rsp)
movq 0x70(%rsp), %r15
leaq 0x10(%rsp), %rsi
movq %rbx, (%rsi)
leaq 0x7(%rsp), %rbp
leaq 0x8(%rsp), %r12
movq %rbp, (%r12)
leaq 0x8(%rsp), %r13
movq %rdx, 0x18(%rsp)
movq %r12, %rcx
movq %r13, %r8
callq *0x70(%rdi)
cmpq %rbp, (%r12)
movsbl -0x1(%r13), %ecx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmovnel %ecx, %eax
cmpl $0x20, %eax
ja 0x25da5a
movabsq $0x100002600, %rcx      # imm = 0x100002600
btq %rax, %rcx
jae 0x25da5a
leaq 0x10(%rsp), %r13
leaq 0x8(%rsp), %rbp
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
movq %rbx, %rax
movslq 0x80(%r14), %rbx
addq %rax, %rbx
movq %rbx, 0x10(%rsp)
leaq 0x7(%rsp), %r12
movq %r12, 0x8(%rsp)
movq %r14, %rdi
movq %r13, %rsi
movq 0x18(%rsp), %rdx
movq %rbp, %rcx
leaq 0x8(%rsp), %r8
callq *0x70(%r14)
cmpq %r12, 0x8(%rsp)
movsbl 0x7(%rsp), %eax
cmovel %r15d, %eax
cmpl $0x20, %eax
ja 0x25d92e
movabsq $0x100002600, %rcx      # imm = 0x100002600
btq %rax, %rcx
jb 0x25d8d8
movq 0x18(%rsp), %r15
cmpq %r15, %rbx
je 0x25da49
movq 0x20(%rsp), %rax
movq %rbx, (%rax)
leaq 0x8(%rsp), %r13
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
movq %rbx, 0x10(%rsp)
leaq 0x7(%rsp), %rbp
movq %rbp, 0x8(%rsp)
movq %r14, %rdi
leaq 0x10(%rsp), %rsi
movq %r15, %rdx
movq %r13, %rcx
leaq 0x8(%rsp), %r8
callq *0x70(%r14)
cmpq %rbp, 0x8(%rsp)
movsbl 0x7(%rsp), %eax
cmovel %r12d, %eax
incl %eax
cmpl $0x3e, %eax
ja 0x25d9ad
movabsq $0x200004c00, %rcx      # imm = 0x200004C00
btq %rax, %rcx
jb 0x25d9c6
testq %rax, %rax
je 0x25dc1c
cmpq $0x3e, %rax
je 0x25da62
movslq 0x80(%r14), %rax
addq %rax, %rbx
jmp 0x25d94f
movq $0x0, (%rcx)
movl $0x1, %eax
retq
movq 0x28(%rsp), %rax
movq %rbx, (%rax)
leaq 0x10(%rsp), %r13
leaq 0x8(%rsp), %rbp
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
movq %rbx, %rax
movslq 0x80(%r14), %rbx
addq %rax, %rbx
movq %rbx, 0x10(%rsp)
leaq 0x7(%rsp), %r12
movq %r12, 0x8(%rsp)
movq %r14, %rdi
movq %r13, %rsi
movq 0x18(%rsp), %rdx
movq %rbp, %rcx
leaq 0x8(%rsp), %r8
callq *0x70(%r14)
cmpq %r12, 0x8(%rsp)
movsbl 0x7(%rsp), %eax
cmovel %r15d, %eax
cmpl $0x3d, %eax
ja 0x25dc1c
movabsq $0x100002600, %rcx      # imm = 0x100002600
btq %rax, %rcx
jb 0x25d9de
cmpq $0x3d, %rax
jne 0x25dc1c
movq 0x18(%rsp), %r15
jmp 0x25da6a
movq 0x20(%rsp), %rax
movq $0x0, (%rax)
jmp 0x25dc15
movq %rbx, (%r15)
jmp 0x25dc24
movq 0x28(%rsp), %rax
movq %rbx, (%rax)
movq 0x20(%rsp), %rax
cmpq (%rax), %rbx
je 0x25dc1c
movslq 0x80(%r14), %rax
addq %rax, %rbx
leaq 0x10(%rsp), %rsi
movq %rbx, (%rsi)
leaq 0x8(%rsp), %rbp
leaq 0x7(%rsp), %r13
movq %r13, (%rbp)
leaq 0x8(%rsp), %r12
movq %r14, %rdi
movq %r15, %rdx
movq %rbp, %rcx
movq %r12, %r8
callq *0x70(%r14)
cmpq %r13, (%rbp)
movsbl -0x1(%r12), %r13d
leaq 0x8(%rsp), %r12
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
cmovel %ebp, %r13d
cmpl $0x27, %r13d
ja 0x25dc1c
movl %r13d, %eax
movabsq $0x100002600, %rcx      # imm = 0x100002600
btq %rax, %rcx
jae 0x25db1f
movslq 0x80(%r14), %rax
addq %rax, %rbx
movq %rbx, 0x10(%rsp)
leaq 0x7(%rsp), %r13
movq %r13, 0x8(%rsp)
movq %r14, %rdi
leaq 0x10(%rsp), %rsi
movq %r15, %rdx
leaq 0x8(%rsp), %rcx
movq %r12, %r8
callq *0x70(%r14)
cmpq %r13, 0x8(%rsp)
movsbl 0x7(%rsp), %r13d
jmp 0x25dac1
movabsq $0x8400000000, %rcx     # imm = 0x8400000000
btq %rax, %rcx
jae 0x25dc1c
movslq 0x80(%r14), %rax
addq %rax, %rbx
movq 0x30(%rsp), %rax
movq %rbx, (%rax)
leaq 0x8(%rsp), %rbp
leaq 0x10(%rsp), %rsi
movq %rbx, (%rsi)
leaq 0x8(%rsp), %r12
leaq 0x7(%rsp), %rax
movq %rax, (%r12)
movq %r14, %rdi
movq %r15, %rdx
movq %r12, %rcx
movq %rbp, %r8
callq *0x70(%r14)
leaq 0x7(%rsp), %rax
cmpq %rax, (%r12)
movsbl -0x1(%rbp), %eax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmovel %ecx, %eax
cmpl %r13d, %eax
je 0x25dc03
leaq 0x8(%rsp), %rbp
leal -0x3a(%rax), %ecx
cmpl $-0xb, %ecx
ja 0x25dbbc
movl %eax, %ecx
andl $-0x21, %ecx
addl $-0x5b, %ecx
cmpl $-0x1b, %ecx
ja 0x25dbbc
addl $-0x2d, %eax
cmpl $0x32, %eax
ja 0x25dc1c
movabsq $0x4000000000003, %rcx  # imm = 0x4000000000003
btq %rax, %rcx
jae 0x25dc1c
movslq 0x80(%r14), %rax
addq %rax, %rbx
movq %rbx, 0x10(%rsp)
leaq 0x7(%rsp), %r12
movq %r12, 0x8(%rsp)
movq %r14, %rdi
leaq 0x10(%rsp), %rsi
movq %r15, %rdx
movq %rbp, %rcx
leaq 0x8(%rsp), %r8
callq *0x70(%r14)
cmpq %r12, 0x8(%rsp)
movsbl 0x7(%rsp), %eax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmovel %ecx, %eax
cmpl %r13d, %eax
jne 0x25db8f
movslq 0x80(%r14), %rax
addq %rbx, %rax
movq 0x70(%rsp), %rcx
movq %rax, (%rcx)
movl $0x1, %eax
jmp 0x25dc26
movq 0x70(%rsp), %rax
movq %rbx, (%rax)
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)