// File: /workspace/github_c_makefile_star2_O1/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 0x2670e0
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 0x267181
movabsq $0x100002600, %rcx      # imm = 0x100002600
btq %rax, %rcx
jae 0x267181
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 0x267055
movabsq $0x100002600, %rcx      # imm = 0x100002600
btq %rax, %rcx
jb 0x266fff
movq 0x18(%rsp), %r15
cmpq %r15, %rbx
je 0x267170
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 0x2670d4
movabsq $0x200004c00, %rcx      # imm = 0x200004C00
btq %rax, %rcx
jb 0x2670ed
testq %rax, %rax
je 0x267347
cmpq $0x3e, %rax
je 0x267189
movslq 0x80(%r14), %rax
addq %rax, %rbx
jmp 0x267076
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 0x267347
movabsq $0x100002600, %rcx      # imm = 0x100002600
btq %rax, %rcx
jb 0x267105
cmpq $0x3d, %rax
jne 0x267347
movq 0x18(%rsp), %r15
jmp 0x267191
movq 0x20(%rsp), %rax
movq $0x0, (%rax)
jmp 0x267340
movq %rbx, (%r15)
jmp 0x26734f
movq 0x28(%rsp), %rax
movq %rbx, (%rax)
movq 0x20(%rsp), %rax
cmpq (%rax), %rbx
je 0x267347
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
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
cmovel %ebp, %r13d
leaq 0x8(%rsp), %r12
cmpl $0x27, %r13d
ja 0x267347
movl %r13d, %eax
movabsq $0x100002600, %rcx      # imm = 0x100002600
btq %rax, %rcx
jae 0x26724a
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
cmovel %ebp, %r13d
jmp 0x2671ec
movabsq $0x8400000000, %rcx     # imm = 0x8400000000
btq %rax, %rcx
jae 0x267347
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 0x26732e
leaq 0x8(%rsp), %rbp
leal -0x3a(%rax), %ecx
cmpl $-0xb, %ecx
ja 0x2672e7
movl %eax, %ecx
andl $-0x21, %ecx
addl $-0x5b, %ecx
cmpl $-0x1b, %ecx
ja 0x2672e7
addl $-0x2d, %eax
cmpl $0x32, %eax
ja 0x267347
movabsq $0x4000000000003, %rcx  # imm = 0x4000000000003
btq %rax, %rcx
jae 0x267347
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 0x2672ba
movslq 0x80(%r14), %rax
addq %rbx, %rax
movq 0x70(%rsp), %rcx
movq %rax, (%rcx)
movl $0x1, %eax
jmp 0x267351
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