// File: neubig[P]egret/Egret/src/bob-hash.cpp
// Function: hashlittle(void const*, unsigned long, unsigned int)
uint32_t hashlittle( const void *key, size_t length, uint32_t initval)
{
  uint32_t a,b,c;                                          /* internal state */
  union { const void *ptr; size_t i; } u;     /* needed for Mac Powerbook G4 */

  /* Set up the internal state */
  a = b = c = 0xdeadbeef + ((uint32_t)length) + initval;

  u.ptr = key;
  if (HASH_LITTLE_ENDIAN && ((u.i & 0x3) == 0)) {
    const uint32_t *k = (const uint32_t *)key;         /* read 32-bit chunks */
    //const uint8_t  *k8;

    /*------ all but last block: aligned reads and affect 32 bits of (a,b,c) */
    while (length > 12)
    {
      a += k[0];
      b += k[1];
      c += k[2];
      mix(a,b,c);
      length -= 12;
      k += 3;
    }

    /*----------------------------- handle the last (probably partial) block */
    /* 
     * "k[2]&0xffffff" actually reads beyond the end of the string, but
     * then masks off the part it's not allowed to read.  Because the
     * string is aligned, the masked-off tail is in the same word as the
     * rest of the string.  Every machine with memory protection I've seen
     * does it on word boundaries, so is OK with this.  But VALGRIND will
     * still catch it and complain.  The masking trick does make the hash
     * noticably faster for short strings (like English words).
     */
#ifndef VALGRIND

    switch(length)
    {
    case 12: c+=k[2]; b+=k[1]; a+=k[0]; break;
    case 11: c+=k[2]&0xffffff; b+=k[1]; a+=k[0]; break;
    case 10: c+=k[2]&0xffff; b+=k[1]; a+=k[0]; break;
    case 9 : c+=k[2]&0xff; b+=k[1]; a+=k[0]; break;
    case 8 : b+=k[1]; a+=k[0]; break;
    case 7 : b+=k[1]&0xffffff; a+=k[0]; break;
    case 6 : b+=k[1]&0xffff; a+=k[0]; break;
    case 5 : b+=k[1]&0xff; a+=k[0]; break;
    case 4 : a+=k[0]; break;
    case 3 : a+=k[0]&0xffffff; break;
    case 2 : a+=k[0]&0xffff; break;
    case 1 : a+=k[0]&0xff; break;
    case 0 : return c;              /* zero length strings require no mixing */
    }

#else /* make valgrind happy */

    k8 = (const uint8_t *)k;
    switch(length)
    {
    case 12: c+=k[2]; b+=k[1]; a+=k[0]; break;
    case 11: c+=((uint32_t)k8[10])<<16;  /* fall through */
    case 10: c+=((uint32_t)k8[9])<<8;    /* fall through */
    case 9 : c+=k8[8];                   /* fall through */
    case 8 : b+=k[1]; a+=k[0]; break;
    case 7 : b+=((uint32_t)k8[6])<<16;   /* fall through */
    case 6 : b+=((uint32_t)k8[5])<<8;    /* fall through */
    case 5 : b+=k8[4];                   /* fall through */
    case 4 : a+=k[0]; break;
    case 3 : a+=((uint32_t)k8[2])<<16;   /* fall through */
    case 2 : a+=((uint32_t)k8[1])<<8;    /* fall through */
    case 1 : a+=k8[0]; break;
    case 0 : return c;
    }

#endif /* !valgrind */

  } else if (HASH_LITTLE_ENDIAN && ((u.i & 0x1) == 0)) {
    const uint16_t *k = (const uint16_t *)key;         /* read 16-bit chunks */
    const uint8_t  *k8;

    /*--------------- all but last block: aligned reads and different mixing */
    while (length > 12)
    {
      a += k[0] + (((uint32_t)k[1])<<16);
      b += k[2] + (((uint32_t)k[3])<<16);
      c += k[4] + (((uint32_t)k[5])<<16);
      mix(a,b,c);
      length -= 12;
      k += 6;
    }

    /*----------------------------- handle the last (probably partial) block */
    k8 = (const uint8_t *)k;
    switch(length)
    {
    case 12: c+=k[4]+(((uint32_t)k[5])<<16);
             b+=k[2]+(((uint32_t)k[3])<<16);
             a+=k[0]+(((uint32_t)k[1])<<16);
             break;
    case 11: c+=((uint32_t)k8[10])<<16;     /* fall through */
    case 10: c+=k[4];
             b+=k[2]+(((uint32_t)k[3])<<16);
             a+=k[0]+(((uint32_t)k[1])<<16);
             break;
    case 9 : c+=k8[8];                      /* fall through */
    case 8 : b+=k[2]+(((uint32_t)k[3])<<16);
             a+=k[0]+(((uint32_t)k[1])<<16);
             break;
    case 7 : b+=((uint32_t)k8[6])<<16;      /* fall through */
    case 6 : b+=k[2];
             a+=k[0]+(((uint32_t)k[1])<<16);
             break;
    case 5 : b+=k8[4];                      /* fall through */
    case 4 : a+=k[0]+(((uint32_t)k[1])<<16);
             break;
    case 3 : a+=((uint32_t)k8[2])<<16;      /* fall through */
    case 2 : a+=k[0];
             break;
    case 1 : a+=k8[0];
             break;
    case 0 : return c;                     /* zero length requires no mixing */
    }

  } else {                        /* need to read the key one byte at a time */
    const uint8_t *k = (const uint8_t *)key;

    /*--------------- all but the last block: affect some 32 bits of (a,b,c) */
    while (length > 12)
    {
      a += k[0];
      a += ((uint32_t)k[1])<<8;
      a += ((uint32_t)k[2])<<16;
      a += ((uint32_t)k[3])<<24;
      b += k[4];
      b += ((uint32_t)k[5])<<8;
      b += ((uint32_t)k[6])<<16;
      b += ((uint32_t)k[7])<<24;
      c += k[8];
      c += ((uint32_t)k[9])<<8;
      c += ((uint32_t)k[10])<<16;
      c += ((uint32_t)k[11])<<24;
      mix(a,b,c);
      length -= 12;
      k += 12;
    }

    /*-------------------------------- last block: affect all 32 bits of (c) */
    switch(length)                   /* all the case statements fall through */
    {
    case 12: c+=((uint32_t)k[11])<<24;
    case 11: c+=((uint32_t)k[10])<<16;
    case 10: c+=((uint32_t)k[9])<<8;
    case 9 : c+=k[8];
    case 8 : b+=((uint32_t)k[7])<<24;
    case 7 : b+=((uint32_t)k[6])<<16;
    case 6 : b+=((uint32_t)k[5])<<8;
    case 5 : b+=k[4];
    case 4 : a+=((uint32_t)k[3])<<24;
    case 3 : a+=((uint32_t)k[2])<<16;
    case 2 : a+=((uint32_t)k[1])<<8;
    case 1 : a+=k[0];
             break;
    case 0 : return c;
    }
  }

  final(a,b,c);
  return c;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq -0x18(%rbp), %rax
addl $0xdeadbeef, %eax       # imm = 0xDEADBEEF
addl -0x1c(%rbp), %eax
movl %eax, -0x28(%rbp)
movl %eax, -0x24(%rbp)
movl %eax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x3ad9d
movq -0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
cmpq $0xc, -0x18(%rbp)
jbe 0x3abe4
movq -0x38(%rbp), %rax
movl (%rax), %eax
addl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
movq -0x38(%rbp), %rax
movl 0x4(%rax), %eax
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movq -0x38(%rbp), %rax
movl 0x8(%rax), %eax
addl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %ecx
movl -0x20(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x20(%rbp)
movl -0x28(%rbp), %eax
shll $0x4, %eax
movl -0x28(%rbp), %ecx
shrl $0x1c, %ecx
orl %ecx, %eax
xorl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
movl -0x24(%rbp), %eax
addl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x20(%rbp), %ecx
movl -0x24(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x24(%rbp)
movl -0x20(%rbp), %eax
shll $0x6, %eax
movl -0x20(%rbp), %ecx
shrl $0x1a, %ecx
orl %ecx, %eax
xorl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movl -0x28(%rbp), %eax
addl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
movl -0x24(%rbp), %ecx
movl -0x28(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x28(%rbp)
movl -0x24(%rbp), %eax
shll $0x8, %eax
movl -0x24(%rbp), %ecx
shrl $0x18, %ecx
orl %ecx, %eax
xorl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x20(%rbp), %eax
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movl -0x28(%rbp), %ecx
movl -0x20(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x20(%rbp)
movl -0x28(%rbp), %eax
shll $0x10, %eax
movl -0x28(%rbp), %ecx
shrl $0x10, %ecx
orl %ecx, %eax
xorl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
movl -0x24(%rbp), %eax
addl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x20(%rbp), %ecx
movl -0x24(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x24(%rbp)
movl -0x20(%rbp), %eax
shll $0x13, %eax
movl -0x20(%rbp), %ecx
shrl $0xd, %ecx
orl %ecx, %eax
xorl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movl -0x28(%rbp), %eax
addl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
movl -0x24(%rbp), %ecx
movl -0x28(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x28(%rbp)
movl -0x24(%rbp), %eax
shll $0x4, %eax
movl -0x24(%rbp), %ecx
shrl $0x1c, %ecx
orl %ecx, %eax
xorl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x20(%rbp), %eax
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movq -0x18(%rbp), %rax
subq $0xc, %rax
movq %rax, -0x18(%rbp)
movq -0x38(%rbp), %rax
addq $0xc, %rax
movq %rax, -0x38(%rbp)
jmp 0x3aaa6
movq -0x18(%rbp), %rax
movq %rax, -0x58(%rbp)
subq $0xc, %rax
ja 0x3ad98
movq -0x58(%rbp), %rax
leaq 0x55617(%rip), %rcx     # 0x90218
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x38(%rbp), %rax
movl 0x8(%rax), %eax
addl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movq -0x38(%rbp), %rax
movl 0x4(%rax), %eax
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movq -0x38(%rbp), %rax
movl (%rax), %eax
addl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
jmp 0x3ad98
movq -0x38(%rbp), %rax
movl 0x8(%rax), %eax
andl $0xffffff, %eax         # imm = 0xFFFFFF
addl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movq -0x38(%rbp), %rax
movl 0x4(%rax), %eax
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movq -0x38(%rbp), %rax
movl (%rax), %eax
addl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
jmp 0x3ad98
movq -0x38(%rbp), %rax
movl 0x8(%rax), %eax
andl $0xffff, %eax           # imm = 0xFFFF
addl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movq -0x38(%rbp), %rax
movl 0x4(%rax), %eax
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movq -0x38(%rbp), %rax
movl (%rax), %eax
addl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
jmp 0x3ad98
movq -0x38(%rbp), %rax
movl 0x8(%rax), %eax
andl $0xff, %eax
addl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movq -0x38(%rbp), %rax
movl 0x4(%rax), %eax
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movq -0x38(%rbp), %rax
movl (%rax), %eax
addl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
jmp 0x3ad98
movq -0x38(%rbp), %rax
movl 0x4(%rax), %eax
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movq -0x38(%rbp), %rax
movl (%rax), %eax
addl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
jmp 0x3ad98
movq -0x38(%rbp), %rax
movl 0x4(%rax), %eax
andl $0xffffff, %eax         # imm = 0xFFFFFF
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movq -0x38(%rbp), %rax
movl (%rax), %eax
addl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
jmp 0x3ad98
movq -0x38(%rbp), %rax
movl 0x4(%rax), %eax
andl $0xffff, %eax           # imm = 0xFFFF
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movq -0x38(%rbp), %rax
movl (%rax), %eax
addl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
jmp 0x3ad98
movq -0x38(%rbp), %rax
movl 0x4(%rax), %eax
andl $0xff, %eax
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movq -0x38(%rbp), %rax
movl (%rax), %eax
addl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
jmp 0x3ad98
movq -0x38(%rbp), %rax
movl (%rax), %eax
addl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
jmp 0x3ad98
movq -0x38(%rbp), %rax
movl (%rax), %eax
andl $0xffffff, %eax         # imm = 0xFFFFFF
addl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
jmp 0x3ad98
movq -0x38(%rbp), %rax
movl (%rax), %eax
andl $0xffff, %eax           # imm = 0xFFFF
addl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
jmp 0x3ad98
movq -0x38(%rbp), %rax
movl (%rax), %eax
andl $0xff, %eax
addl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
jmp 0x3ad98
movl -0x28(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x3b4a1
jmp 0x3b3c2
movq -0x30(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
jne 0x3b0e7
movq -0x10(%rbp), %rax
movq %rax, -0x40(%rbp)
cmpq $0xc, -0x18(%rbp)
jbe 0x3af1f
movq -0x40(%rbp), %rax
movzwl (%rax), %eax
movq -0x40(%rbp), %rcx
movzwl 0x2(%rcx), %ecx
shll $0x10, %ecx
addl %ecx, %eax
addl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
movq -0x40(%rbp), %rax
movzwl 0x4(%rax), %eax
movq -0x40(%rbp), %rcx
movzwl 0x6(%rcx), %ecx
shll $0x10, %ecx
addl %ecx, %eax
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movq -0x40(%rbp), %rax
movzwl 0x8(%rax), %eax
movq -0x40(%rbp), %rcx
movzwl 0xa(%rcx), %ecx
shll $0x10, %ecx
addl %ecx, %eax
addl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %ecx
movl -0x20(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x20(%rbp)
movl -0x28(%rbp), %eax
shll $0x4, %eax
movl -0x28(%rbp), %ecx
shrl $0x1c, %ecx
orl %ecx, %eax
xorl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
movl -0x24(%rbp), %eax
addl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x20(%rbp), %ecx
movl -0x24(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x24(%rbp)
movl -0x20(%rbp), %eax
shll $0x6, %eax
movl -0x20(%rbp), %ecx
shrl $0x1a, %ecx
orl %ecx, %eax
xorl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movl -0x28(%rbp), %eax
addl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
movl -0x24(%rbp), %ecx
movl -0x28(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x28(%rbp)
movl -0x24(%rbp), %eax
shll $0x8, %eax
movl -0x24(%rbp), %ecx
shrl $0x18, %ecx
orl %ecx, %eax
xorl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x20(%rbp), %eax
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movl -0x28(%rbp), %ecx
movl -0x20(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x20(%rbp)
movl -0x28(%rbp), %eax
shll $0x10, %eax
movl -0x28(%rbp), %ecx
shrl $0x10, %ecx
orl %ecx, %eax
xorl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
movl -0x24(%rbp), %eax
addl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x20(%rbp), %ecx
movl -0x24(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x24(%rbp)
movl -0x20(%rbp), %eax
shll $0x13, %eax
movl -0x20(%rbp), %ecx
shrl $0xd, %ecx
orl %ecx, %eax
xorl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movl -0x28(%rbp), %eax
addl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
movl -0x24(%rbp), %ecx
movl -0x28(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x28(%rbp)
movl -0x24(%rbp), %eax
shll $0x4, %eax
movl -0x24(%rbp), %ecx
shrl $0x1c, %ecx
orl %ecx, %eax
xorl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x20(%rbp), %eax
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movq -0x18(%rbp), %rax
subq $0xc, %rax
movq %rax, -0x18(%rbp)
movq -0x40(%rbp), %rax
addq $0xc, %rax
movq %rax, -0x40(%rbp)
jmp 0x3adb7
movq -0x40(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x60(%rbp)
subq $0xc, %rax
ja 0x3b0e2
movq -0x60(%rbp), %rax
leaq 0x552a0(%rip), %rcx     # 0x901e4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x40(%rbp), %rax
movzwl 0x8(%rax), %eax
movq -0x40(%rbp), %rcx
movzwl 0xa(%rcx), %ecx
shll $0x10, %ecx
addl %ecx, %eax
addl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movq -0x40(%rbp), %rax
movzwl 0x4(%rax), %eax
movq -0x40(%rbp), %rcx
movzwl 0x6(%rcx), %ecx
shll $0x10, %ecx
addl %ecx, %eax
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movq -0x40(%rbp), %rax
movzwl (%rax), %eax
movq -0x40(%rbp), %rcx
movzwl 0x2(%rcx), %ecx
shll $0x10, %ecx
addl %ecx, %eax
addl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
jmp 0x3b0e2
movq -0x48(%rbp), %rax
movzbl 0xa(%rax), %eax
shll $0x10, %eax
addl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movq -0x40(%rbp), %rax
movzwl 0x8(%rax), %eax
addl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movq -0x40(%rbp), %rax
movzwl 0x4(%rax), %eax
movq -0x40(%rbp), %rcx
movzwl 0x6(%rcx), %ecx
shll $0x10, %ecx
addl %ecx, %eax
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movq -0x40(%rbp), %rax
movzwl (%rax), %eax
movq -0x40(%rbp), %rcx
movzwl 0x2(%rcx), %ecx
shll $0x10, %ecx
addl %ecx, %eax
addl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
jmp 0x3b0e2
movq -0x48(%rbp), %rax
movzbl 0x8(%rax), %eax
addl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movq -0x40(%rbp), %rax
movzwl 0x4(%rax), %eax
movq -0x40(%rbp), %rcx
movzwl 0x6(%rcx), %ecx
shll $0x10, %ecx
addl %ecx, %eax
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movq -0x40(%rbp), %rax
movzwl (%rax), %eax
movq -0x40(%rbp), %rcx
movzwl 0x2(%rcx), %ecx
shll $0x10, %ecx
addl %ecx, %eax
addl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
jmp 0x3b0e2
movq -0x48(%rbp), %rax
movzbl 0x6(%rax), %eax
shll $0x10, %eax
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movq -0x40(%rbp), %rax
movzwl 0x4(%rax), %eax
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movq -0x40(%rbp), %rax
movzwl (%rax), %eax
movq -0x40(%rbp), %rcx
movzwl 0x2(%rcx), %ecx
shll $0x10, %ecx
addl %ecx, %eax
addl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
jmp 0x3b0e2
movq -0x48(%rbp), %rax
movzbl 0x4(%rax), %eax
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movq -0x40(%rbp), %rax
movzwl (%rax), %eax
movq -0x40(%rbp), %rcx
movzwl 0x2(%rcx), %ecx
shll $0x10, %ecx
addl %ecx, %eax
addl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
jmp 0x3b0e2
movq -0x48(%rbp), %rax
movzbl 0x2(%rax), %eax
shll $0x10, %eax
addl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
movq -0x40(%rbp), %rax
movzwl (%rax), %eax
addl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
jmp 0x3b0e2
movq -0x48(%rbp), %rax
movzbl (%rax), %eax
addl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
jmp 0x3b0e2
movl -0x28(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x3b4a1
jmp 0x3b3c0
movq -0x10(%rbp), %rax
movq %rax, -0x50(%rbp)
cmpq $0xc, -0x18(%rbp)
jbe 0x3b2c9
movq -0x50(%rbp), %rax
movzbl (%rax), %eax
addl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
movq -0x50(%rbp), %rax
movzbl 0x1(%rax), %eax
shll $0x8, %eax
addl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
movq -0x50(%rbp), %rax
movzbl 0x2(%rax), %eax
shll $0x10, %eax
addl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
movq -0x50(%rbp), %rax
movzbl 0x3(%rax), %eax
shll $0x18, %eax
addl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
movq -0x50(%rbp), %rax
movzbl 0x4(%rax), %eax
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movq -0x50(%rbp), %rax
movzbl 0x5(%rax), %eax
shll $0x8, %eax
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movq -0x50(%rbp), %rax
movzbl 0x6(%rax), %eax
shll $0x10, %eax
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movq -0x50(%rbp), %rax
movzbl 0x7(%rax), %eax
shll $0x18, %eax
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movq -0x50(%rbp), %rax
movzbl 0x8(%rax), %eax
addl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movq -0x50(%rbp), %rax
movzbl 0x9(%rax), %eax
shll $0x8, %eax
addl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movq -0x50(%rbp), %rax
movzbl 0xa(%rax), %eax
shll $0x10, %eax
addl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movq -0x50(%rbp), %rax
movzbl 0xb(%rax), %eax
shll $0x18, %eax
addl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %ecx
movl -0x20(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x20(%rbp)
movl -0x28(%rbp), %eax
shll $0x4, %eax
movl -0x28(%rbp), %ecx
shrl $0x1c, %ecx
orl %ecx, %eax
xorl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
movl -0x24(%rbp), %eax
addl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x20(%rbp), %ecx
movl -0x24(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x24(%rbp)
movl -0x20(%rbp), %eax
shll $0x6, %eax
movl -0x20(%rbp), %ecx
shrl $0x1a, %ecx
orl %ecx, %eax
xorl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movl -0x28(%rbp), %eax
addl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
movl -0x24(%rbp), %ecx
movl -0x28(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x28(%rbp)
movl -0x24(%rbp), %eax
shll $0x8, %eax
movl -0x24(%rbp), %ecx
shrl $0x18, %ecx
orl %ecx, %eax
xorl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x20(%rbp), %eax
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movl -0x28(%rbp), %ecx
movl -0x20(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x20(%rbp)
movl -0x28(%rbp), %eax
shll $0x10, %eax
movl -0x28(%rbp), %ecx
shrl $0x10, %ecx
orl %ecx, %eax
xorl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
movl -0x24(%rbp), %eax
addl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x20(%rbp), %ecx
movl -0x24(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x24(%rbp)
movl -0x20(%rbp), %eax
shll $0x13, %eax
movl -0x20(%rbp), %ecx
shrl $0xd, %ecx
orl %ecx, %eax
xorl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movl -0x28(%rbp), %eax
addl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
movl -0x24(%rbp), %ecx
movl -0x28(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x28(%rbp)
movl -0x24(%rbp), %eax
shll $0x4, %eax
movl -0x24(%rbp), %ecx
shrl $0x1c, %ecx
orl %ecx, %eax
xorl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x20(%rbp), %eax
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movq -0x18(%rbp), %rax
subq $0xc, %rax
movq %rax, -0x18(%rbp)
movq -0x50(%rbp), %rax
addq $0xc, %rax
movq %rax, -0x50(%rbp)
jmp 0x3b0ef
movq -0x18(%rbp), %rax
movq %rax, -0x68(%rbp)
subq $0xc, %rax
ja 0x3b3be
movq -0x68(%rbp), %rax
leaq 0x54eca(%rip), %rcx     # 0x901b0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x50(%rbp), %rax
movzbl 0xb(%rax), %eax
shll $0x18, %eax
addl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movq -0x50(%rbp), %rax
movzbl 0xa(%rax), %eax
shll $0x10, %eax
addl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movq -0x50(%rbp), %rax
movzbl 0x9(%rax), %eax
shll $0x8, %eax
addl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movq -0x50(%rbp), %rax
movzbl 0x8(%rax), %eax
addl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movq -0x50(%rbp), %rax
movzbl 0x7(%rax), %eax
shll $0x18, %eax
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movq -0x50(%rbp), %rax
movzbl 0x6(%rax), %eax
shll $0x10, %eax
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movq -0x50(%rbp), %rax
movzbl 0x5(%rax), %eax
shll $0x8, %eax
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movq -0x50(%rbp), %rax
movzbl 0x4(%rax), %eax
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movq -0x50(%rbp), %rax
movzbl 0x3(%rax), %eax
shll $0x18, %eax
addl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
movq -0x50(%rbp), %rax
movzbl 0x2(%rax), %eax
shll $0x10, %eax
addl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
movq -0x50(%rbp), %rax
movzbl 0x1(%rax), %eax
shll $0x8, %eax
addl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
movq -0x50(%rbp), %rax
movzbl (%rax), %eax
addl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
jmp 0x3b3be
movl -0x28(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x3b4a1
jmp 0x3b3c0
jmp 0x3b3c2
movl -0x24(%rbp), %eax
xorl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x24(%rbp), %ecx
shll $0xe, %ecx
movl -0x24(%rbp), %eax
shrl $0x12, %eax
orl %eax, %ecx
movl -0x28(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %eax
xorl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
movl -0x28(%rbp), %ecx
shll $0xb, %ecx
movl -0x28(%rbp), %eax
shrl $0x15, %eax
orl %eax, %ecx
movl -0x20(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x20(%rbp)
movl -0x20(%rbp), %eax
xorl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movl -0x20(%rbp), %ecx
shll $0x19, %ecx
movl -0x20(%rbp), %eax
shrl $0x7, %eax
orl %eax, %ecx
movl -0x24(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x24(%rbp)
movl -0x24(%rbp), %eax
xorl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x24(%rbp), %ecx
shll $0x10, %ecx
movl -0x24(%rbp), %eax
shrl $0x10, %eax
orl %eax, %ecx
movl -0x28(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %eax
xorl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
movl -0x28(%rbp), %ecx
shll $0x4, %ecx
movl -0x28(%rbp), %eax
shrl $0x1c, %eax
orl %eax, %ecx
movl -0x20(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x20(%rbp)
movl -0x20(%rbp), %eax
xorl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
movl -0x20(%rbp), %ecx
shll $0xe, %ecx
movl -0x20(%rbp), %eax
shrl $0x12, %eax
orl %eax, %ecx
movl -0x24(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x24(%rbp)
movl -0x24(%rbp), %eax
xorl -0x28(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x24(%rbp), %ecx
shll $0x18, %ecx
movl -0x24(%rbp), %eax
shrl $0x8, %eax
orl %eax, %ecx
movl -0x28(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopw %cs:(%rax,%rax)