// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/external/expat-2.0.1/lib/xmltok_impl.c
// Function: little2_sameName
static int PTRCALL
PREFIX(sameName)(const ENCODING *enc, const char *ptr1, const char *ptr2)
{
  for (;;) {
    switch (BYTE_TYPE(enc, ptr1)) {
#define LEAD_CASE(n) \
    case BT_LEAD ## n: \
      if (*ptr1++ != *ptr2++) \
        return 0;
    LEAD_CASE(4) LEAD_CASE(3) LEAD_CASE(2)
#undef LEAD_CASE
      /* fall through */
      if (*ptr1++ != *ptr2++)
        return 0;
      break;
    case BT_NONASCII:
    case BT_NMSTRT:
#ifdef XML_NS
    case BT_COLON:
#endif
    case BT_HEX:
    case BT_DIGIT:
    case BT_NAME:
    case BT_MINUS:
      if (*ptr2++ != *ptr1++)
        return 0;
      if (MINBPC(enc) > 1) {
        if (*ptr2++ != *ptr1++)
          return 0;
        if (MINBPC(enc) > 2) {
          if (*ptr2++ != *ptr1++)
            return 0;
          if (MINBPC(enc) > 3) {
            if (*ptr2++ != *ptr1++)
              return 0;
          }
        }
      }
      break;
    default:
      if (MINBPC(enc) == 1 && *ptr1 == *ptr2)
        return 1;
      switch (BYTE_TYPE(enc, ptr2)) {
      case BT_LEAD2:
      case BT_LEAD3:
      case BT_LEAD4:
      case BT_NONASCII:
      case BT_NMSTRT:
#ifdef XML_NS
      case BT_COLON:
#endif
      case BT_HEX:
      case BT_DIGIT:
      case BT_NAME:
      case BT_MINUS:
        return 0;
      default:
        return 1;
      }
    }
  }
  /* not reached */
}

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x28(%rsp)
movq %rsi, 0x20(%rsp)
movq %rdx, 0x18(%rsp)
movq 0x20(%rsp), %rax
movsbl 0x1(%rax), %eax
cmpl $0x0, %eax
jne 0x38cefc
movq 0x28(%rsp), %rax
movq 0x20(%rsp), %rcx
movzbl (%rcx), %ecx
movzbl 0x88(%rax,%rcx), %eax
movl %eax, 0x14(%rsp)
jmp 0x38cf18
movq 0x20(%rsp), %rax
movb 0x1(%rax), %cl
movq 0x20(%rsp), %rax
movsbl %cl, %edi
movsbl (%rax), %esi
callq 0x38e510
movl %eax, 0x14(%rsp)
movl 0x14(%rsp), %eax
addl $-0x5, %eax
movl %eax, %ecx
movq %rcx, 0x8(%rsp)
subl $0x18, %eax
ja 0x38d0a8
movq 0x8(%rsp), %rax
leaq 0x212fe5(%rip), %rcx    # 0x59ff20
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x20(%rsp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, 0x20(%rsp)
movsbl (%rax), %eax
movq 0x18(%rsp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, 0x18(%rsp)
movsbl (%rcx), %ecx
cmpl %ecx, %eax
je 0x38cf7d
movl $0x0, 0x34(%rsp)
jmp 0x38d138
jmp 0x38cf7f
movq 0x20(%rsp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, 0x20(%rsp)
movsbl (%rax), %eax
movq 0x18(%rsp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, 0x18(%rsp)
movsbl (%rcx), %ecx
cmpl %ecx, %eax
je 0x38cfb8
movl $0x0, 0x34(%rsp)
jmp 0x38d138
jmp 0x38cfba
movq 0x20(%rsp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, 0x20(%rsp)
movsbl (%rax), %eax
movq 0x18(%rsp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, 0x18(%rsp)
movsbl (%rcx), %ecx
cmpl %ecx, %eax
je 0x38cff3
movl $0x0, 0x34(%rsp)
jmp 0x38d138
movq 0x20(%rsp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, 0x20(%rsp)
movsbl (%rax), %eax
movq 0x18(%rsp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, 0x18(%rsp)
movsbl (%rcx), %ecx
cmpl %ecx, %eax
je 0x38d02c
movl $0x0, 0x34(%rsp)
jmp 0x38d138
jmp 0x38d133
movq 0x18(%rsp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, 0x18(%rsp)
movsbl (%rax), %eax
movq 0x20(%rsp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, 0x20(%rsp)
movsbl (%rcx), %ecx
cmpl %ecx, %eax
je 0x38d06a
movl $0x0, 0x34(%rsp)
jmp 0x38d138
movq 0x18(%rsp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, 0x18(%rsp)
movsbl (%rax), %eax
movq 0x20(%rsp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, 0x20(%rsp)
movsbl (%rcx), %ecx
cmpl %ecx, %eax
je 0x38d0a3
movl $0x0, 0x34(%rsp)
jmp 0x38d138
jmp 0x38d133
movq 0x18(%rsp), %rax
movsbl 0x1(%rax), %eax
cmpl $0x0, %eax
jne 0x38d0d1
movq 0x28(%rsp), %rax
movq 0x18(%rsp), %rcx
movzbl (%rcx), %ecx
movzbl 0x88(%rax,%rcx), %eax
movl %eax, 0x4(%rsp)
jmp 0x38d0ed
movq 0x18(%rsp), %rax
movb 0x1(%rax), %cl
movq 0x18(%rsp), %rax
movsbl %cl, %edi
movsbl (%rax), %esi
callq 0x38e510
movl %eax, 0x4(%rsp)
movl 0x4(%rsp), %eax
movl %eax, (%rsp)
addl $-0x5, %eax
subl $0x3, %eax
jb 0x38d11f
jmp 0x38d0fe
movl (%rsp), %eax
subl $0x16, %eax
je 0x38d11f
jmp 0x38d108
movl (%rsp), %eax
addl $-0x18, %eax
subl $0x4, %eax
jb 0x38d11f
jmp 0x38d115
movl (%rsp), %eax
subl $0x1d, %eax
jne 0x38d129
jmp 0x38d11f
movl $0x0, 0x34(%rsp)
jmp 0x38d138
movl $0x1, 0x34(%rsp)
jmp 0x38d138
jmp 0x38ced3
movl 0x34(%rsp), %eax
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)