LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/richarddurbin[P]hash10x/moshutils.c
// Function: addSequenceFile
static BOOL addSequenceFile (Moshset *ms, char *filename, BOOL is10x)
{
  char *seq ;			/* ignore the name for now */
  int len ;
  U64 nSeq = 0, totLen = 0, totHash = 0 ;

  dna2indexConv['N'] = dna2indexConv['n'] = 0 ; /* to get 2-bit encoding */
  SeqIO *si = seqIOopen (filename, dna2indexConv, FALSE) ; /* false for no qualities */
  if (!si) return FALSE ;
  while (seqIOread (si))
    { ++nSeq ; totLen += si->seqLen ;
      if (is10x && (nSeq & 0x1)) totHash += addSequence (ms, sqioSeq(si)+23, si->seqLen-23) ;
      else totHash += addSequence (ms, sqioSeq(si), si->seqLen) ;
    }
  seqIOclose (si) ;
  fprintf (outFile, "added %llu sequences total length %llu total hashes %llu, new max %u\n",
	   nSeq, totLen, totHash, ms->max) ;
  return TRUE ;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rsi, %rax
movq %rdi, (%rsp)
leaq 0x8043(%rip), %rsi      # 0xa740
xorl %ebx, %ebx
movl %ebx, 0x1b8(%rsi)
movl %ebx, 0x138(%rsi)
movq %rax, %rdi
xorl %edx, %edx
callq 0x288c
testq %rax, %rax
je 0x27e1
movq %rax, %r14
movq %rax, %rdi
callq 0x2a53
testb %al, %al
je 0x27a8
xorl %r15d, %r15d
xorl %r13d, %r13d
xorl %r12d, %r12d
testb %bpl, %bpl
setne %al
movslq 0x18(%r14), %rbx
testb $0x1, %r12b
sete %cl
andb %al, %cl
movl (%r14), %eax
cmpb $0x1, %cl
jne 0x275c
cmpl $0x2, %eax
jne 0x2767
movq 0x70(%r14), %rsi
jmp 0x276f
cmpl $0x2, %eax
jne 0x277c
movq 0x70(%r14), %rsi
jmp 0x2784
movslq 0x24(%r14), %rsi
addq 0x50(%r14), %rsi
addq $0x17, %rsi
leal -0x17(%rbx), %edx
movq (%rsp), %rdi
jmp 0x278a
movslq 0x24(%r14), %rsi
addq 0x50(%r14), %rsi
movq (%rsp), %rdi
movl %ebx, %edx
callq 0x27f2
addq %rbx, %r13
cltq
addq %rax, %r15
movq %r14, %rdi
callq 0x2a53
incq %r12
testb %al, %al
jne 0x2736
jmp 0x27b1
xorl %r12d, %r12d
xorl %r13d, %r13d
xorl %r15d, %r15d
movq %r14, %rdi
callq 0x2a18
movq 0x8b90(%rip), %rdi      # 0xb350
movq (%rsp), %rax
movl 0x40(%rax), %r9d
leaq 0x4041(%rip), %rsi      # 0x6810
movq %r12, %rdx
movq %r13, %rcx
movq %r15, %r8
xorl %eax, %eax
callq 0x1120
movb $0x1, %bl
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/richarddurbin[P]hash10x/moshutils.c
// Function: addSequence
static int addSequence (Moshset *ms, char *s, int len) /* return number of hashes */
{
  int nHash = 0 ;
  SeqhashRCiterator *mi = moshRCiterator (ms->hasher, s, len) ;
  U64 hash ; int pos ;
  while (moshRCnext (mi, &hash, &pos, 0))
    { U32 index = moshsetIndexFind (ms, hash, TRUE) ;
      U16 *di = &ms->depth[index] ; ++*di ; if (!*di) *di = U16MAX ;
      ++nHash ;
    }
  return nHash ;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq (%rdi), %rdi
callq 0x3bb4
movq %rax, %r14
xorl %r15d, %r15d
leaq 0x10(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %rax, %rdi
xorl %ecx, %ecx
callq 0x3d5f
testb %al, %al
je 0x2878
xorl %r15d, %r15d
movl $0xffff, %ebp           # imm = 0xFFFF
leaq 0x10(%rsp), %r12
leaq 0xc(%rsp), %r13
movq 0x10(%rsp), %rsi
movq %rbx, %rdi
movl $0x1, %edx
callq 0x4053
movq 0x30(%rbx), %rcx
movl %eax, %eax
movzwl (%rcx,%rax,2), %edx
incw %dx
cmovel %ebp, %edx
movw %dx, (%rcx,%rax,2)
incl %r15d
movq %r14, %rdi
movq %r12, %rsi
movq %r13, %rdx
xorl %ecx, %ecx
callq 0x3d5f
testb %al, %al
jne 0x283b
movl %r15d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/richarddurbin[P]hash10x/seqio.c
// Function: seqIOclose
void seqIOclose (SeqIO *si)
{ free (si->buf) ;
  if (si->seqBuf) free (si->seqBuf) ; if (si->qualBuf) free (si->qualBuf) ;
  gzclose (si->f) ;
  free (si) ;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x50(%rdi), %rdi
callq 0x1040
movq 0x70(%rbx), %rdi
testq %rdi, %rdi
je 0x2a33
callq 0x1040
movq 0x78(%rbx), %rdi
testq %rdi, %rdi
je 0x2a41
callq 0x1040
movq 0x48(%rbx), %rdi
callq 0x1030
movq %rbx, %rdi
popq %rbx
jmp 0x1040
// File: /workspace/github_c_makefile_star2_O3/richarddurbin[P]hash10x/seqio.c
// Function: bufRefill
static int bufRefill (SeqIO *si)
{ si->b -= si->recStart ;		/* will be position after move */
  memmove (si->buf, si->buf + si->recStart, si->b - si->buf) ;
  si->idStart -= si->recStart ; si->descStart -= si->recStart ; /* adjust all the offsets */
  si->seqStart -= si->recStart ; si->qualStart -= si->recStart ;
  si->recStart = 0 ;
  si->nb = gzread (si->f, si->b, si->buf + si->bufSize - si->b) ;
  return si->nb ;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movslq 0x40(%rdi), %rsi
movq 0x50(%rdi), %rdi
movq 0x58(%rbx), %rdx
subq %rsi, %rdx
movq %rdx, 0x58(%rbx)
addq %rdi, %rsi
subq %rdi, %rdx
callq 0x11a0
movdqu 0x1c(%rbx), %xmm0
movd 0x40(%rbx), %xmm1
pshufd $0x0, %xmm1, %xmm1      # xmm1 = xmm1[0,0,0,0]
psubd %xmm1, %xmm0
movdqu %xmm0, 0x1c(%rbx)
movl $0x0, 0x40(%rbx)
movq 0x48(%rbx), %rdi
movq 0x58(%rbx), %rsi
movl 0x50(%rbx), %edx
addl 0x34(%rbx), %edx
subl %esi, %edx
callq 0x1110
movl %eax, 0x38(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/richarddurbin[P]hash10x/seqio.c
// Function: sqioSeqUnpack
void sqioSeqUnpack (U8 *u, char *s, int len) /* uncompress (len+3)/4 u into s */
{
  int i ;
  while (len > 4)
    { for (i = 4 ; i-- ; ) { s[i] = (*u & 0x3) ; *u >>= 2 ; }
      len -= 4 ; ++u ; s += 4 ;
    }
  if (len) for (i = len ; --i ; ) { s[i] = (*u & 0x3) ; *u >>= 2 ; }
}

// Assembly:
cmpl $0x5, %edx
jl 0x33b2
movb (%rdi), %al
movl $0x4, %ecx
andb $0x3, %al
movb %al, -0x1(%rsi,%rcx)
movb (%rdi), %al
shrb $0x2, %al
movb %al, (%rdi)
decq %rcx
jne 0x338d
leal -0x4(%rdx), %eax
incq %rdi
addq $0x4, %rsi
cmpl $0x8, %edx
movl %eax, %edx
jg 0x3386
jmp 0x33b4
movl %edx, %eax
cmpl $0x2, %eax
jb 0x33d1
decl %eax
cltq
movb (%rdi), %cl
andb $0x3, %cl
movb %cl, (%rsi,%rax)
movb (%rdi), %cl
shrb $0x2, %cl
movb %cl, (%rdi)
decq %rax
jne 0x33bf
retq
// File: /workspace/github_c_makefile_star2_O3/richarddurbin[P]hash10x/seqio.c
// Function: sqioQualUnpack
void sqioQualUnpack (U8 *u, char *q, int len, int thresh) /* uncompress (len+7)/8 u into q */
{
  int i ;
  while (len > 8)
    { for (i = 8 ; i-- ; ) { q[i] = (*u & 0x1) ? thresh : 0 ; *u >>= 1 ; }
      len -= 8 ; ++u ; q += 8 ;
    }
  if (len) for (i = len ; --i ; ) { q[i] = (*u & 0x1) ? thresh : 0 ; *u >>= 1 ; }
}

// Assembly:
cmpl $0x9, %edx
jl 0x3408
movb (%rdi), %al
movl $0x8, %r8d
andb $0x1, %al
negb %al
andb %cl, %al
movb %al, -0x1(%rsi,%r8)
movb (%rdi), %al
shrb %al
movb %al, (%rdi)
decq %r8
jne 0x33df
leal -0x8(%rdx), %eax
incq %rdi
addq $0x8, %rsi
cmpl $0x10, %edx
movl %eax, %edx
jg 0x33d7
jmp 0x340a
movl %edx, %eax
testl %eax, %eax
je 0x342b
decl %eax
je 0x342b
cltq
movb (%rdi), %dl
andb $0x1, %dl
negb %dl
andb %cl, %dl
movb %dl, (%rsi,%rax)
movb (%rdi), %dl
shrb %dl
movb %dl, (%rdi)
decq %rax
jne 0x3416
retq
// File: /workspace/github_c_makefile_star2_O3/richarddurbin[P]hash10x/seqio.c
// Function: sqioSeqPack
void sqioSeqPack (char *s, U8 *u, int len) /* compress s into (len+3)/4 u  */
{
  int i ;
  while (len > 4)
    { *u = 0 ; for (i = 0 ; i < 4 ; ++i) *u = (*u << 2) | dna2indexConv[*s++] ;
      len -= 4 ; ++u ;
    }
  if (len) { *u = 0 ; for (i = 0 ; i < len ; ++i) *u = (*u << 2) | dna2indexConv[*s++] ; }
}

// Assembly:
cmpl $0x5, %edx
jl 0x347a
leaq 0x7308(%rip), %rax      # 0xa740
movq %rdi, %rcx
movb $0x0, (%rsi)
xorl %r8d, %r8d
xorl %edi, %edi
movzbl %dil, %edi
shll $0x2, %edi
movsbq (%rcx,%r8), %r9
orl (%rax,%r9,4), %edi
movb %dil, (%rsi)
incq %r8
cmpl $0x4, %r8d
jne 0x3443
leal -0x4(%rdx), %r9d
incq %rsi
leaq (%rcx,%r8), %rdi
cmpl $0x8, %edx
movl %r9d, %edx
jg 0x3438
addq %r8, %rcx
movq %rcx, %rdi
jmp 0x347d
movl %edx, %r9d
testl %r9d, %r9d
je 0x34b1
movb $0x0, (%rsi)
jle 0x34b1
movl %r9d, %eax
xorl %ecx, %ecx
leaq 0x72ad(%rip), %rdx      # 0xa740
xorl %r8d, %r8d
movzbl %r8b, %r8d
shll $0x2, %r8d
movsbq (%rdi,%rcx), %r9
orl (%rdx,%r9,4), %r8d
movb %r8b, (%rsi)
incq %rcx
cmpl %ecx, %eax
jne 0x3496
retq
// File: /workspace/github_c_makefile_star2_O3/richarddurbin[P]hash10x/seqio.c
// Function: sqioQualPack
void sqioQualPack (char *q, U8 *u, int len, int thresh) /* compress q into (len+7)/8 u  */
{
  int i ;
  while (len > 8)
    { *u = 0 ; for (i = 0 ; i < 8 ; ++i) { if (*q++ >= thresh) *u |= 1 ; *u <<= 1 ; }
      len -= 8 ; ++u ;
    }
  if (len) { *u = 0 ; for (i = 0 ; i < len ; ++i) { if (*q++ >= thresh) *u |= 1 ; *u <<= 1 ; } }
}

// Assembly:
cmpl $0x9, %edx
jl 0x34f2
movb $0x0, (%rsi)
xorl %eax, %eax
xorl %r8d, %r8d
movsbl (%rdi,%rax), %r9d
cmpl %ecx, %r9d
setge %r9b
orb %r8b, %r9b
addb %r9b, %r9b
movb %r9b, (%rsi)
incq %rax
movl %r9d, %r8d
cmpl $0x8, %eax
jne 0x34bf
addq $0x8, %rdi
leal -0x8(%rdx), %eax
incq %rsi
cmpl $0x10, %edx
movl %eax, %edx
jg 0x34b7
jmp 0x34f4
movl %edx, %eax
testl %eax, %eax
je 0x3523
movb $0x0, (%rsi)
jle 0x3523
movl %eax, %eax
xorl %edx, %edx
xorl %r8d, %r8d
movsbl (%rdi,%rdx), %r9d
cmpl %ecx, %r9d
setge %r9b
orb %r8b, %r9b
addb %r9b, %r9b
movb %r9b, (%rsi)
incq %rdx
movl %r9d, %r8d
cmpl %edx, %eax
jne 0x3504
retq
// File: /workspace/github_c_makefile_star2_O3/richarddurbin[P]hash10x/seqhash.c
// Function: seqhashCreate
Seqhash *seqhashCreate (int k, int w)
{
  assert (sizeof (U64) == 8) ;
  Seqhash *sh = new0 (1, Seqhash) ;
  sh->k = k ; if (k < 1 || k >= 32) die ("seqhash k %d must be between 1 and 32\n", k) ;
  sh->w = w ; if (w < 1) die ("seqhash w %d must be positive\n", w) ;
  sh->mask = ((U64)1 << (2*k)) - 1 ;
  int i ;
  
  sh->factor1 = (random() << 32) | random() | 0x01 ;
  sh->shift1 = 64 - 2*k ;
  sh->factor2 = (random() << 32) | random() | 0x01 ;
  sh->shift2 = 2*k ;
  for (i = 0 ; i < 4 ; ++i) { sh->patternRC[i] = (3-i) ; sh->patternRC[i] <<= 2*(k-1) ; }
  return sh ;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebp
movl %edi, %r14d
movl $0x1, %edi
movl $0x48, %esi
callq 0x5a64
movq %rax, %rbx
movl %r14d, (%rax)
leal -0x20(%r14), %eax
cmpl $-0x20, %eax
ja 0x355f
leaq 0x344f(%rip), %rdi      # 0x69a4
movl %r14d, %esi
xorl %eax, %eax
callq 0x5974
movl %ebp, 0x4(%rbx)
testl %ebp, %ebp
jg 0x3576
leaq 0x345e(%rip), %rdi      # 0x69cb
movl %ebp, %esi
xorl %eax, %eax
callq 0x5974
leal (%r14,%r14), %ebp
movq $-0x1, %rax
movl %ebp, %ecx
shlq %cl, %rax
notq %rax
movq %rax, 0x8(%rbx)
callq 0x1160
movq %rax, %r15
shlq $0x20, %r15
callq 0x1160
orq %r15, %rax
orq $0x1, %rax
movq %rax, 0x18(%rbx)
movl $0x40, %eax
subl %ebp, %eax
movl %eax, 0x10(%rbx)
callq 0x1160
movq %rax, %r15
shlq $0x20, %r15
callq 0x1160
orq %r15, %rax
orq $0x1, %rax
movq %rax, 0x20(%rbx)
movl %ebp, 0x14(%rbx)
leal -0x2(,%r14,2), %eax
movd %eax, %xmm0
movdqa 0x339a(%rip), %xmm1     # 0x6980
psllq %xmm0, %xmm1
movdqu %xmm1, 0x28(%rbx)
movd 0x33a9(%rip), %xmm1     # 0x69a0
psllq %xmm0, %xmm1
movdqu %xmm1, 0x38(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/richarddurbin[P]hash10x/seqhash.c
// Function: seqhashRead
Seqhash *seqhashRead (FILE *f)
{ Seqhash *sh = new (1, Seqhash) ;
  char name[8] ;
  if (fread (name,8,1,f) != 1) die ("failed to read seqhash header") ;
  if (strcmp (name, "SQHSHv1")) die ("seqhash read mismatch") ;
  if (fread (sh,sizeof(Seqhash),1,f) != 1) die ("failed to read seqhash") ;
  return sh ;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movl $0x48, %edi
callq 0x5a3c
movq %rax, %rbx
movq %rsp, %rdi
movl $0x8, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x1070
cmpq $0x1, %rax
je 0x36ba
leaq 0x3376(%rip), %rdi      # 0x6a29
xorl %eax, %eax
callq 0x5974
movabsq $0x31764853485153, %rax # imm = 0x31764853485153
cmpq %rax, (%rsp)
je 0x36d8
leaq 0x3376(%rip), %rdi      # 0x6a47
xorl %eax, %eax
callq 0x5974
movl $0x48, %esi
movl $0x1, %edx
movq %rbx, %rdi
movq %r14, %rcx
callq 0x1070
cmpq $0x1, %rax
je 0x3701
leaq 0x3363(%rip), %rdi      # 0x6a5d
xorl %eax, %eax
callq 0x5974
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/richarddurbin[P]hash10x/seqhash.c
// Function: minimizerRCiterator
SeqhashRCiterator *minimizerRCiterator (Seqhash *sh, char *s, int len)
{
  assert (s && len >= 0) ;
  SeqhashRCiterator *mi = (SeqhashRCiterator*) mycalloc (sizeof(SeqhashRCiterator), 1) ;
  mi->sh = sh ;
  mi->s = s ; mi->sEnd = s + len ;
  mi->hashBuf = new0 (sh->w, U64) ;
  mi->fBuf = new0 (sh->w, BOOL) ;
  if (len < sh->k) { mi->isDone = TRUE ; return mi ; } /* edge case */

  int i ;			/* preinitialise the hashes for the first kmer */
  for (i = 0 ; i < sh->k ; ++i, ++mi->s)
    { mi->h = (mi->h << 2) | *mi->s ;
      mi->hRC = (mi->hRC >> 2) | sh->patternRC[*(mi->s)] ;
    }
  
  /* store first w hashes in hashBuf and set ->iMin */
  U64 min = hashRC (mi, mi->fBuf) ;
  mi->iMin = 0 ;
  for (i = 1 ; i < sh->w ; ++i, ++mi->s)
    { mi->hashBuf[i] = advanceHashRC (mi, &mi->fBuf[i]) ;
      if (mi->hashBuf[i] < min) { min = mi->hashBuf[i] ; mi->iMin = i ; }
    }

  return mi ;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0x38ca
movl %edx, %ebp
testl %edx, %edx
js 0x38ca
movq %rsi, %r15
movq %rdi, %rbx
movl $0x48, %edi
movl $0x1, %esi
callq 0x5a64
movq %rax, %r14
movq %rbx, (%rax)
movq %r15, 0x8(%rax)
movl %ebp, %eax
addq %r15, %rax
movq %rax, 0x10(%r14)
movslq 0x4(%rbx), %rdi
movl $0x8, %esi
callq 0x5a64
movq %rax, 0x28(%r14)
movslq 0x4(%rbx), %rdi
movl $0x1, %esi
callq 0x5a64
movq %rax, 0x30(%r14)
movl (%rbx), %ecx
cmpl %ebp, %ecx
jle 0x379b
movb $0x1, 0x44(%r14)
jmp 0x38bc
testl %ecx, %ecx
jle 0x37dd
movq 0x8(%r14), %rdi
movq 0x18(%r14), %rsi
movq 0x20(%r14), %rdx
incq %rdi
shlq $0x2, %rsi
movsbq -0x1(%rdi), %r8
orq %r8, %rsi
movq %rsi, 0x18(%r14)
shrq $0x2, %rdx
movsbq -0x1(%rdi), %r8
orq 0x28(%rbx,%r8,8), %rdx
movq %rdx, 0x20(%r14)
movq %rdi, 0x8(%r14)
incq %rdi
decl %ecx
jne 0x37ae
jmp 0x37e5
movq 0x18(%r14), %rsi
movq 0x20(%r14), %rdx
movq (%r14), %rdi
movb 0x10(%rdi), %cl
movq 0x18(%rdi), %rdi
imulq %rdi, %rsi
shrq %cl, %rsi
imulq %rdi, %rdx
shrq %cl, %rdx
cmpq %rdx, %rsi
setb (%rax)
movl $0x0, 0x40(%r14)
cmpl $0x2, 0x4(%rbx)
jl 0x38bc
cmpq %rdx, %rsi
cmovbq %rsi, %rdx
movq 0x8(%r14), %rcx
movl $0x1, %eax
cmpq 0x10(%r14), %rcx
jae 0x3895
movq 0x30(%r14), %rsi
movq (%r14), %r8
movq 0x18(%r14), %rdi
shlq $0x2, %rdi
andq 0x8(%r8), %rdi
movsbq (%rcx), %r9
orq %rdi, %r9
movq %r9, 0x18(%r14)
movq 0x20(%r14), %rdi
shrq $0x2, %rdi
movsbq (%rcx), %rcx
orq 0x28(%r8,%rcx,8), %rdi
movq %rdi, 0x20(%r14)
movb 0x10(%r8), %cl
movq 0x18(%r8), %r8
imulq %r8, %r9
shrq %cl, %r9
imulq %r8, %rdi
shrq %cl, %rdi
cmpq %rdi, %r9
cmovbq %r9, %rdi
setb (%rsi,%rax)
movq 0x28(%r14), %rcx
movq %rdi, (%rcx,%rax,8)
cmpq %rdx, %rdi
jae 0x38a1
movl %eax, 0x40(%r14)
movq %rdi, %rdx
jmp 0x38a1
movq 0x28(%r14), %rcx
movq $-0x1, (%rcx,%rax,8)
incq %rax
movq 0x8(%r14), %rcx
incq %rcx
movq %rcx, 0x8(%r14)
movslq 0x4(%rbx), %rsi
cmpq %rsi, %rax
jl 0x3825
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x31b2(%rip), %rdi      # 0x6a83
leaq 0x31b9(%rip), %rsi      # 0x6a91
leaq 0x31bc(%rip), %rcx      # 0x6a9b
movl $0x56, %edx
callq 0x10c0
// File: /workspace/github_c_makefile_star2_O3/richarddurbin[P]hash10x/seqhash.c
// Function: moshRCiterator
SeqhashRCiterator *moshRCiterator (Seqhash *sh, char *s, int len)
{
  assert (s && len >= 0) ;
  SeqhashRCiterator *mi = (SeqhashRCiterator*) mycalloc (sizeof(SeqhashRCiterator), 1) ;
  mi->sh = sh ;
  mi->s = s ; mi->sEnd = s + len ;
  mi->hashBuf = new0 (sh->w, U64) ;
  mi->fBuf = new0 (sh->w, BOOL) ;
  if (len < sh->k) { mi->isDone = TRUE ; return mi ; } /* edge case */

  int i ;			/* preinitialise the hashes for the first kmer */
  for (i = 0 ; i < sh->k ; ++i, ++mi->s)
    { mi->h = (mi->h << 2) | *mi->s ;
      mi->hRC = (mi->hRC >> 2) | sh->patternRC[*(mi->s)] ;
    }
  
  U64 hash = hashRC(mi, mi->fBuf) ;
  while ((hash % sh->w) && mi->s < mi->sEnd)
    { hash = advanceHashRC (mi, mi->fBuf) ; ++mi->iMin ; ++mi->s ; }
  if (!(hash % sh->w)) *mi->hashBuf = hash ;
  else mi->isDone = TRUE ;

  return mi ;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0x3d40
movl %edx, %ebp
testl %edx, %edx
js 0x3d40
movq %rsi, %r15
movq %rdi, %rbx
movl $0x48, %edi
movl $0x1, %esi
callq 0x5a64
movq %rax, %r14
movq %rbx, (%rax)
movq %r15, 0x8(%rax)
movl %ebp, %eax
addq %r15, %rax
movq %rax, 0x10(%r14)
movslq 0x4(%rbx), %rdi
movl $0x8, %esi
callq 0x5a64
movq %rax, 0x28(%r14)
movslq 0x4(%rbx), %rdi
movl $0x1, %esi
callq 0x5a64
movq %rax, 0x30(%r14)
movl (%rbx), %ecx
cmpl %ebp, %ecx
jle 0x3c2a
movb $0x1, 0x44(%r14)
jmp 0x3d32
testl %ecx, %ecx
jle 0x3c6c
movq 0x8(%r14), %rdi
movq 0x18(%r14), %rdx
movq 0x20(%r14), %rsi
incq %rdi
shlq $0x2, %rdx
movsbq -0x1(%rdi), %r8
orq %r8, %rdx
movq %rdx, 0x18(%r14)
shrq $0x2, %rsi
movsbq -0x1(%rdi), %r8
orq 0x28(%rbx,%r8,8), %rsi
movq %rsi, 0x20(%r14)
movq %rdi, 0x8(%r14)
incq %rdi
decl %ecx
jne 0x3c3d
jmp 0x3c74
movq 0x18(%r14), %rdx
movq 0x20(%r14), %rsi
movq (%r14), %rdi
movb 0x10(%rdi), %cl
movq 0x18(%rdi), %rdi
imulq %rdi, %rdx
shrq %cl, %rdx
imulq %rdi, %rsi
shrq %cl, %rsi
cmpq %rsi, %rdx
setb (%rax)
cmovbq %rdx, %rsi
movslq 0x4(%rbx), %rcx
movq %rsi, %rax
xorl %edx, %edx
divq %rcx
testq %rdx, %rdx
je 0x3d2b
movq 0x8(%r14), %rcx
cmpq 0x10(%r14), %rcx
jae 0x3c20
movq 0x30(%r14), %rax
movq (%r14), %rdx
movq 0x18(%r14), %rsi
shlq $0x2, %rsi
andq 0x8(%rdx), %rsi
movsbq (%rcx), %rdi
orq %rsi, %rdi
movq %rdi, 0x18(%r14)
movq 0x20(%r14), %rsi
shrq $0x2, %rsi
movsbq (%rcx), %rcx
orq 0x28(%rdx,%rcx,8), %rsi
movq %rsi, 0x20(%r14)
movb 0x10(%rdx), %cl
movq 0x18(%rdx), %rdx
imulq %rdx, %rdi
shrq %cl, %rdi
imulq %rdx, %rsi
shrq %cl, %rsi
cmpq %rsi, %rdi
cmovbq %rdi, %rsi
setb (%rax)
incl 0x40(%r14)
movq 0x8(%r14), %rcx
incq %rcx
movq %rcx, 0x8(%r14)
movslq 0x4(%rbx), %rdi
movq %rsi, %rax
xorl %edx, %edx
divq %rdi
testq %rdx, %rdx
jne 0x3caf
movq 0x28(%r14), %rax
movq %rsi, (%rax)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2d3c(%rip), %rdi      # 0x6a83
leaq 0x2d43(%rip), %rsi      # 0x6a91
leaq 0x2dce(%rip), %rcx      # 0x6b23
movl $0x9c, %edx
callq 0x10c0
// File: /workspace/github_c_makefile_star2_O3/richarddurbin[P]hash10x/seqhash.c
// Function: moshRCnext
BOOL moshRCnext (SeqhashRCiterator *mi, U64 *u, int *pos, BOOL *isF) /* returns (u, pos, isF) */
{
  if (mi->isDone) return FALSE ; /* we are done */

  *u = *mi->hashBuf ; *pos = mi->iMin ; if (isF) *isF = *mi->fBuf ;

  if (mi->s >= mi->sEnd) { mi->isDone = TRUE ; return TRUE ; }
    
  U64 hash = advanceHashRC (mi, mi->fBuf) ; ++mi->iMin ; ++mi->s ;
  int w = mi->sh->w ;
  while ((hash % w) && mi->s < mi->sEnd)
    { hash = advanceHashRC (mi, mi->fBuf) ; ++mi->iMin ; ++mi->s ; }
  if (!(hash % w)) *mi->hashBuf = hash ;
  else mi->isDone = TRUE ;

  return TRUE ;
}

// Assembly:
cmpb $0x0, 0x44(%rdi)
je 0x3d68
xorl %eax, %eax
retq
movq 0x28(%rdi), %rax
movq (%rax), %rax
movq %rax, (%rsi)
movl 0x40(%rdi), %eax
movl %eax, (%rdx)
testq %rcx, %rcx
je 0x3d84
movq 0x30(%rdi), %rax
movb (%rax), %al
movb %al, (%rcx)
movq 0x8(%rdi), %rcx
cmpq 0x10(%rdi), %rcx
jae 0x3e6e
movq 0x30(%rdi), %rax
movq (%rdi), %rdx
movq 0x18(%rdi), %rsi
shlq $0x2, %rsi
andq 0x8(%rdx), %rsi
movsbq (%rcx), %r8
orq %rsi, %r8
movq %r8, 0x18(%rdi)
movq 0x20(%rdi), %rsi
shrq $0x2, %rsi
movsbq (%rcx), %rcx
orq 0x28(%rdx,%rcx,8), %rsi
movq %rsi, 0x20(%rdi)
movb 0x10(%rdx), %cl
movq 0x18(%rdx), %rdx
imulq %rdx, %r8
shrq %cl, %r8
imulq %rdx, %rsi
shrq %cl, %rsi
cmpq %rsi, %r8
cmovbq %r8, %rsi
setb (%rax)
incl 0x40(%rdi)
movq (%rdi), %rax
movq 0x8(%rdi), %rcx
incq %rcx
movq %rcx, 0x8(%rdi)
movslq 0x4(%rax), %r8
movq %rsi, %rax
xorl %edx, %edx
divq %r8
testq %rdx, %rdx
je 0x3e74
cmpq 0x10(%rdi), %rcx
jae 0x3e6e
movq 0x30(%rdi), %rax
movq (%rdi), %rdx
movq 0x18(%rdi), %rsi
shlq $0x2, %rsi
andq 0x8(%rdx), %rsi
movsbq (%rcx), %r9
orq %rsi, %r9
movq %r9, 0x18(%rdi)
movq 0x20(%rdi), %rsi
shrq $0x2, %rsi
movsbq (%rcx), %rcx
orq 0x28(%rdx,%rcx,8), %rsi
movq %rsi, 0x20(%rdi)
movb 0x10(%rdx), %cl
movq 0x18(%rdx), %rdx
imulq %rdx, %r9
shrq %cl, %r9
imulq %rdx, %rsi
shrq %cl, %rsi
cmpq %rsi, %r9
cmovbq %r9, %rsi
setb (%rax)
incl 0x40(%rdi)
movq 0x8(%rdi), %rcx
incq %rcx
movq %rcx, 0x8(%rdi)
jmp 0x3df9
movb $0x1, 0x44(%rdi)
jmp 0x3e7b
movq 0x28(%rdi), %rax
movq %rsi, (%rax)
movb $0x1, %al
retq
nop
// File: /workspace/github_c_makefile_star2_O3/richarddurbin[P]hash10x/moshset.c
// Function: moshsetCreate
Moshset *moshsetCreate (Seqhash *sh, int bits, U32 size)
{
  if (bits < 20 || bits > 34) die ("table bits %d must be between 20 and 34", bits) ;
  Moshset *ms = new0 (1, Moshset) ;
  ms->hasher = sh ;
  ms->tableBits = bits ;
  ms->tableSize = (U64)1 << ms->tableBits ;
  ms->tableMask = ms->tableSize - 1 ;
  ms->index = new0 (ms->tableSize, U32) ;
  if (size >= (ms->tableSize >> 2)) die ("Moshset size %u is too big for %d bits", size, bits) ;
  else if (size) ms->size = size ;
  else ms->size = (ms->tableSize >> 2) - 1 ;
  ms->value = new (ms->size, U64) ;
  ms->depth = new0 (ms->size, U16) ;
  ms->info = new0 (ms->size, U8) ;
  return ms ;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %r15
leal -0x23(%r14), %eax
cmpl $-0x10, %eax
ja 0x3eaa
leaq 0x2ce0(%rip), %rdi      # 0x6b80
movl %r14d, %esi
xorl %eax, %eax
callq 0x5974
movl $0x1, %r12d
movl $0x1, %edi
movl $0x48, %esi
callq 0x5a64
movq %rax, %rbx
movq %r15, (%rax)
movl %r14d, %ecx
shlq %cl, %r12
movl %r14d, 0x8(%rax)
movq %r12, 0x10(%rax)
leaq -0x1(%r12), %rax
movq %rax, 0x18(%rbx)
movl $0x4, %esi
movq %r12, %rdi
callq 0x5a64
movq %rax, 0x20(%rbx)
movl %ebp, %ecx
movq 0x10(%rbx), %rax
shrq $0x2, %rax
cmpq %rcx, %rax
jbe 0x3f05
testl %ebp, %ebp
je 0x3f1d
movl %ebp, 0xc(%rbx)
jmp 0x3f24
leaq 0x2c9c(%rip), %rdi      # 0x6ba8
movl %ebp, %esi
movl %r14d, %edx
xorl %eax, %eax
callq 0x5974
movl 0xc(%rbx), %ebp
jmp 0x3f24
decl %eax
movl %eax, 0xc(%rbx)
movl %eax, %ebp
movl %ebp, %edi
shlq $0x3, %rdi
callq 0x5a3c
movq %rax, 0x28(%rbx)
movl 0xc(%rbx), %edi
movl $0x2, %esi
callq 0x5a64
movq %rax, 0x30(%rbx)
movl 0xc(%rbx), %edi
movl $0x1, %esi
callq 0x5a64
movq %rax, 0x38(%rbx)
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/richarddurbin[P]hash10x/moshset.c
// Function: moshsetIndexFind
U32 moshsetIndexFind (Moshset *ms, U64 hash, int isAdd)
{
  U64 diff = 0 ;
  U64 offset = hash & ms->tableMask ;
  U32 index = ms->index[offset] ;
  while (index && (ms->value[index] != hash))
    { if (!diff) diff = ((hash >> ms->tableBits) & ms->tableMask) | 1 ; /* odd so comprime */
      offset = (offset + diff) & ms->tableMask ;
      index = ms->index[offset] ;
    }
  if (!index && isAdd)
    { index = ms->index[offset] = ++ms->max ;
      if (ms->max >= ms->size) die ("hashTableSize %u is too small for %u", ms->size, ms->max) ;
      ms->value[index] = hash ;
    }
  return index ;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq 0x18(%rdi), %rdi
movq 0x20(%r14), %rax
movq %rdi, %rsi
andq %rbx, %rsi
movl (%rax,%rsi,4), %ebp
testl %ebp, %ebp
je 0x40a4
movq 0x28(%r14), %r8
xorl %r9d, %r9d
movl %ebp, %ecx
cmpq %rbx, (%r8,%rcx,8)
je 0x40dd
testq %r9, %r9
jne 0x4097
movb 0x8(%r14), %cl
movq %rbx, %r9
shrq %cl, %r9
andq %rdi, %r9
orq $0x1, %r9
addq %r9, %rsi
andq %rdi, %rsi
movl (%rax,%rsi,4), %ebp
testl %ebp, %ebp
jne 0x4079
testl %edx, %edx
je 0x40db
movl 0x40(%r14), %ebp
incl %ebp
movl %ebp, 0x40(%r14)
movl %ebp, (%rax,%rsi,4)
movl 0xc(%r14), %esi
movl 0x40(%r14), %edx
cmpl %esi, %edx
jb 0x40cf
leaq 0x2b07(%rip), %rdi      # 0x6bcf
xorl %eax, %eax
callq 0x5974
movq 0x28(%r14), %rax
movl %ebp, %ecx
movq %rbx, (%rax,%rcx,8)
jmp 0x40dd
xorl %ebp, %ebp
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/richarddurbin[P]hash10x/moshset.c
// Function: moshsetWrite
void moshsetWrite (Moshset *ms, FILE *f)
{ if (fwrite ("MSHSTv1",8,1,f) != 1) die ("failed to write moshset header") ;
  if (fwrite (&ms->tableBits,sizeof(int),1,f) != 1) die ("failed to write bits") ;
  U32 size = ms->max+1 ; if (fwrite (&size,sizeof(U32),1,f) != 1) die ("failed to write size") ;
  seqhashWrite (ms->hasher, f) ;
  if (fwrite (ms->index,sizeof(U32),ms->tableSize,f) != ms->tableSize) die ("fail write index") ;
  if (fwrite (ms->value,sizeof(U64),ms->max+1,f) != ms->max+1) die ("failed to write value") ;
  if (fwrite (ms->depth,sizeof(U16),ms->max+1,f) != ms->max+1) die ("failed to write depth") ;
  if (fwrite (ms->info,sizeof(U8),ms->max+1,f) != ms->max+1) die ("failed to write info") ;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x2b3d(%rip), %rdi      # 0x6c32
movl $0x8, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x1220
cmpq $0x1, %rax
je 0x411b
leaq 0x2b26(%rip), %rdi      # 0x6c3a
xorl %eax, %eax
callq 0x5974
leaq 0x8(%rbx), %rdi
movl $0x4, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x1220
cmpq $0x1, %rax
je 0x4145
leaq 0x2b1b(%rip), %rdi      # 0x6c59
xorl %eax, %eax
callq 0x5974
movl 0x40(%rbx), %eax
incl %eax
leaq 0x4(%rsp), %rdi
movl %eax, (%rdi)
movl $0x4, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x1220
cmpq $0x1, %rax
je 0x4177
leaq 0x2afe(%rip), %rdi      # 0x6c6e
xorl %eax, %eax
callq 0x5974
movq (%rbx), %rdi
movq %r14, %rsi
callq 0x360e
movq 0x10(%rbx), %rdx
movq 0x20(%rbx), %rdi
movl $0x4, %esi
movq %r14, %rcx
callq 0x1220
cmpq 0x10(%rbx), %rax
je 0x41ab
leaq 0x2adf(%rip), %rdi      # 0x6c83
xorl %eax, %eax
callq 0x5974
movq 0x28(%rbx), %rdi
movl 0x40(%rbx), %edx
incl %edx
movl $0x8, %esi
movq %r14, %rcx
callq 0x1220
movl 0x40(%rbx), %edx
incl %edx
cmpq %rdx, %rax
je 0x41de
leaq 0x2ac2(%rip), %rdi      # 0x6c94
xorl %eax, %eax
callq 0x5974
movl 0x40(%rbx), %edx
incl %edx
movq 0x30(%rbx), %rdi
movl $0x2, %esi
movq %r14, %rcx
callq 0x1220
movl 0x40(%rbx), %edx
incl %edx
cmpq %rdx, %rax
je 0x420c
leaq 0x2aaa(%rip), %rdi      # 0x6caa
xorl %eax, %eax
callq 0x5974
movl 0x40(%rbx), %edx
incl %edx
movq 0x38(%rbx), %rdi
movl $0x1, %esi
movq %r14, %rcx
callq 0x1220
movl 0x40(%rbx), %ecx
incl %ecx
cmpq %rcx, %rax
jne 0x422f
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x2a8a(%rip), %rdi      # 0x6cc0
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x5974
// File: /workspace/github_c_makefile_star2_O3/richarddurbin[P]hash10x/moshset.c
// Function: moshsetRead
Moshset *moshsetRead (FILE *f)
{ char name[8] ;
  if (fread (name,8,1,f) != 1) die ("failed to read moshset header") ;
  if (strcmp (name, "MSHSTv1")) die ("bad reference header") ;
  int bits ; if (fread (&bits,sizeof(int),1,f) != 1) die ("failed to read bits") ;
  U32 size ; if (fread (&size,sizeof(U32),1,f) != 1) die ("failed to read size") ;
  Seqhash *sh = seqhashRead (f) ;
  Moshset *ms = moshsetCreate (sh, bits, size) ;
  if (fread (ms->index,sizeof(U32),ms->tableSize,f) != ms->tableSize) die ("failed read index") ;
  if (fread (ms->value,sizeof(U64),size,f) != size) die ("failed to read value") ;
  if (fread (ms->depth,sizeof(U16),size,f) != size) die ("failed to read depth") ;
  if (fread (ms->info,sizeof(U8),size,f) != size) die ("failed to read info") ;
  ms->max = size - 1 ;
  return ms ;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %rdi
movl $0x8, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x1070
cmpq $0x1, %rax
je 0x427b
leaq 0x2a61(%rip), %rdi      # 0x6cd5
xorl %eax, %eax
callq 0x5974
movabsq $0x3176545348534d, %rax # imm = 0x3176545348534D
cmpq %rax, 0x8(%rsp)
je 0x429a
leaq 0x2a60(%rip), %rdi      # 0x6cf3
xorl %eax, %eax
callq 0x5974
leaq 0x4(%rsp), %rdi
movl $0x4, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x1070
cmpq $0x1, %rax
je 0x42c5
leaq 0x2a4a(%rip), %rdi      # 0x6d08
xorl %eax, %eax
callq 0x5974
movq %rsp, %rdi
movl $0x4, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x1070
cmpq $0x1, %rax
je 0x42ee
leaq 0x2a35(%rip), %rdi      # 0x6d1c
xorl %eax, %eax
callq 0x5974
movq %rbx, %rdi
callq 0x367d
movl 0x4(%rsp), %esi
movl (%rsp), %r14d
movq %rax, %rdi
movl %r14d, %edx
callq 0x3e80
movq %rax, %r15
movq 0x10(%rax), %rdx
movq 0x20(%rax), %rdi
movl $0x4, %esi
movq %rbx, %rcx
callq 0x1070
cmpq 0x10(%r15), %rax
je 0x4335
leaq 0x2a02(%rip), %rdi      # 0x6d30
xorl %eax, %eax
callq 0x5974
movq 0x28(%r15), %rdi
movl $0x8, %esi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x1070
cmpq %r14, %rax
je 0x435c
leaq 0x29ed(%rip), %rdi      # 0x6d42
xorl %eax, %eax
callq 0x5974
movq 0x30(%r15), %rdi
movl $0x2, %esi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x1070
cmpq %r14, %rax
je 0x4383
leaq 0x29db(%rip), %rdi      # 0x6d57
xorl %eax, %eax
callq 0x5974
movq 0x38(%r15), %rdi
movl $0x1, %esi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x1070
cmpq %r14, %rax
je 0x43aa
leaq 0x29c9(%rip), %rdi      # 0x6d6c
xorl %eax, %eax
callq 0x5974
leal -0x1(%r14), %eax
movl %eax, 0x40(%r15)
movq %r15, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/richarddurbin[P]hash10x/moshset.c
// Function: moshsetMerge
BOOL moshsetMerge (Moshset *ms1, Moshset *ms2)
{
  U32 i, index ;
  /* first check that the hashers are identical */
  Seqhash *sh1 = ms1->hasher, *sh2 = ms2->hasher ;
  if (sh1->w != sh2->w || sh1->k != sh2->k || sh1->factor1 != sh2->factor1) return FALSE ;
  /* then pass through ms2 adding into ms1 */
  for (i = 1 ; i <= ms2->max ; ++i)
    { index = moshsetIndexFind (ms1, ms2->value[i], TRUE) ;
      U32 d = ms1->depth[index] + (U32) ms2->depth[i] ; if (d > U16MAX) d = U16MAX ;
      ms1->depth[index] = d ;
      int c = msCopy(ms1,index) + msCopy(ms2,i) ; if (c > 3) c = 3 ;
      ms1->info[index] &= 0x3 ; ms1->info[index] |= c ;
    }
  return TRUE ;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq (%rdi), %rax
movq (%rsi), %rcx
movl 0x4(%rax), %edx
cmpl 0x4(%rcx), %edx
jne 0x4486
movl (%rax), %edx
cmpl (%rcx), %edx
jne 0x4486
movq 0x18(%rax), %rax
cmpq 0x18(%rcx), %rax
jne 0x4486
movq %rsi, %r14
movb $0x1, %bl
cmpl $0x0, 0x40(%rsi)
je 0x4488
movq %rdi, %r15
movl $0x1, %ebp
movq 0x28(%r14), %rax
movl %ebp, %r12d
movq (%rax,%r12,8), %rsi
movq %r15, %rdi
movl $0x1, %edx
callq 0x4053
movq 0x30(%r15), %rcx
movl %eax, %eax
movzwl (%rcx,%rax,2), %esi
movq 0x30(%r14), %rdx
movzwl (%rdx,%r12,2), %edx
addl %esi, %edx
movl $0xffff, %esi           # imm = 0xFFFF
cmpl %esi, %edx
jb 0x4443
movl $0xffff, %edx           # imm = 0xFFFF
movw %dx, (%rcx,%rax,2)
movq 0x38(%r15), %rcx
movb (%rcx,%rax), %dl
andb $0x3, %dl
movq 0x38(%r14), %rsi
movb (%rsi,%r12), %sil
andb $0x3, %sil
addb %dl, %sil
cmpb $0x3, %sil
jb 0x446d
movl $0x3, %esi
jmp 0x4471
movzbl %sil, %esi
movb %dl, (%rcx,%rax)
movq 0x38(%r15), %rcx
orb %sil, (%rcx,%rax)
incl %ebp
cmpl 0x40(%r14), %ebp
jbe 0x4408
jmp 0x4488
xorl %ebx, %ebx
movl %ebx, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/richarddurbin[P]hash10x/hash.c
// Function: hashCreate
HASH hashCreate (int n)
{
  TRUE_HASH *h = (TRUE_HASH *) myalloc (sizeof (TRUE_HASH)) ;

  if (n < 64) n = 64 ;
  --n ;
  h->nbits = 1 ;	       /* make room, be twice as big as needed */
  while (n >>= 1) ++h->nbits ; /* number of left most bit + 1 */
  h->mask = (1 << h->nbits) - 1 ;
  h->guard = (1 << (h->nbits - 1)) ;
  h->keys = (int*) myalloc (sizeof(int)*(1 << h->nbits)) ;
  memset (h->keys, 0, sizeof(int)*(1 << h->nbits)) ;
  h->values = (int*) myalloc (sizeof(int)*(1 << h->nbits)) ;
  h->n = 0 ;
  h->freeList = arrayCreate (32, int) ;
  h->nFree = 0 ;
  ++nCreated ;
  return (HASH) h ;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edi, %ebp
movl $0x30, %edi
callq 0x5a3c
movq %rax, %rbx
cmpl $0x41, %ebp
movl $0x40, %eax
cmovgel %ebp, %eax
decl %eax
xorl %ecx, %ecx
sarl %eax
incl %ecx
cmpl $0x1, %eax
ja 0x467e
leal 0x1(%rcx), %eax
movl %eax, (%rbx)
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
shll %cl, %eax
notl %eax
movl %eax, 0x4(%rbx)
movl $0x1, %eax
shll %cl, %eax
movl $0x2, %edx
shll %cl, %edx
movl $0x1, %ebp
movl %eax, 0xc(%rbx)
movslq %edx, %rdi
shlq $0x2, %rdi
callq 0x5a3c
movq %rax, 0x10(%rbx)
movb (%rbx), %cl
movl $0x1, %edx
shll %cl, %edx
movslq %edx, %rdx
shlq $0x2, %rdx
xorl %r14d, %r14d
movq %rax, %rdi
xorl %esi, %esi
callq 0x10d0
movb (%rbx), %cl
shll %cl, %ebp
movslq %ebp, %rdi
shlq $0x2, %rdi
callq 0x5a3c
movq %rax, 0x18(%rbx)
movl %r14d, 0x8(%rbx)
movl $0x20, %edi
movl $0x4, %esi
callq 0x5204
movq %rax, 0x20(%rbx)
movl %r14d, 0x28(%rbx)
incl 0x6c48(%rip)            # 0xb358
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/richarddurbin[P]hash10x/hash.c
// Function: hashDestroy
void hashDestroy (HASH hx)
{
  TRUE_HASH *h = (TRUE_HASH*) hx ;
  free (h->keys) ;
  free (h->values) ;
  arrayDestroy (h->freeList) ;
  free (h) ;
  ++nDestroyed ;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
callq 0x1040
movq 0x18(%rbx), %rdi
callq 0x1040
movq 0x20(%rbx), %rdi
callq 0x5352
movq %rbx, %rdi
callq 0x1040
incl 0x6c17(%rip)            # 0xb35c
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/richarddurbin[P]hash10x/hash.c
// Function: hashFind
int hashFind (HASH hx, HASHKEY k)
/* if found, returns index, else returns 0 */
{
  TRUE_HASH *h = (TRUE_HASH*) hx ;
  long int hash, delta = 0 ;

  HASH_FUNC(k) ;
  while (TRUE)
    if (h->keys[hash] == k.i)
      { nFound++ ;
	return h->values[hash] ;
      }
    else if (!h->keys[hash])
      { nNotFound++ ;
	return 0 ;
      }
    else 
      { nBounced++ ;
	if (!delta) DELTA(k) ;
	hash = (hash + delta) & h->mask ;
      }
}

// Assembly:
movslq %esi, %rax
movl $0xfffffff4, %edx       # imm = 0xFFFFFFF4
movl %esi, %r8d
movq %rax, %rcx
sarl $0x5, %r8d
xorq %r8, %rcx
incl %edx
jne 0x4794
pushq %rbx
movl 0x4(%rdi), %edx
movq 0x10(%rdi), %r8
andl %edx, %ecx
movslq (%r8,%rcx,4), %r11
cmpq %rsi, %r11
jne 0x47b7
movq %rcx, %rbx
jmp 0x4805
movq 0x6bb2(%rip), %r9       # 0xb370
xorl %r10d, %r10d
testl %r11d, %r11d
je 0x4815
incq %r9
movq %r9, 0x6ba0(%rip)       # 0xb370
testq %r10, %r10
jne 0x47f2
movl $0xfffffff7, %r11d      # imm = 0xFFFFFFF7
movl %esi, %ebx
movq %rax, %r10
sarl $0x7, %ebx
xorq %rbx, %r10
incl %r11d
jne 0x47e0
andl %edx, %r10d
orq $0x1, %r10
addl %r10d, %ecx
movl %edx, %ebx
andl %ecx, %ebx
movslq (%r8,%rbx,4), %r11
movq %rbx, %rcx
cmpq %rsi, %r11
jne 0x47c1
incq 0x6b54(%rip)            # 0xb360
movq 0x18(%rdi), %rax
movl (%rax,%rbx,4), %eax
jmp 0x481e
incq 0x6b4c(%rip)            # 0xb368
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/richarddurbin[P]hash10x/hash.c
// Function: hashRemove
BOOL hashRemove (HASH hx, HASHKEY k)
{
  TRUE_HASH *h = (TRUE_HASH*) hx ;
  long int hash, delta = 0 ;

  HASH_FUNC(k) ;
  while (TRUE)
    if (h->keys[hash] == k.i)
      { h->keys[hash] = REMOVED ;
	array(h->freeList, ++h->nFree, int) = h->values[hash] ;
	++nFound ;
	return TRUE ;
      }
    else if (!h->keys[hash])
      { nNotFound++ ;
	return FALSE ;
      }
    else 
      { nBounced++ ;
	if (!delta) DELTA(k) ;
	hash = (hash + delta) & h->mask ;
      }
}

// Assembly:
movslq %esi, %rax
movl $0xfffffff4, %edx       # imm = 0xFFFFFFF4
movl %esi, %r8d
movq %rax, %rcx
sarl $0x5, %r8d
xorq %r8, %rcx
incl %edx
jne 0x4a99
pushq %r14
pushq %rbx
pushq %rax
movl 0x4(%rdi), %r8d
movq 0x10(%rdi), %rdx
andl %r8d, %ecx
movslq (%rdx,%rcx,4), %rbx
cmpq %rsi, %rbx
jne 0x4ac1
movq %rcx, %r14
jmp 0x4b17
movq 0x68a8(%rip), %r10      # 0xb370
xorl %r11d, %r11d
leaq 0x6896(%rip), %r9       # 0xb368
testl %ebx, %ebx
je 0x4b48
incq %r10
movq %r10, 0x6890(%rip)      # 0xb370
testq %r11, %r11
jne 0x4b02
movl $0xfffffff7, %ebx       # imm = 0xFFFFFFF7
movl %esi, %r14d
movq %rax, %r11
sarl $0x7, %r14d
xorq %r14, %r11
incl %ebx
jne 0x4af0
andl %r8d, %r11d
orq $0x1, %r11
addl %r11d, %ecx
movl %r8d, %r14d
andl %ecx, %r14d
movslq (%rdx,%r14,4), %rbx
movq %r14, %rcx
cmpq %rsi, %rbx
jne 0x4ad2
movl $0x1, (%rdx,%r14,4)
movq 0x18(%rdi), %rcx
movq 0x20(%rdi), %rax
movl (%rcx,%r14,4), %ebx
movl 0x28(%rdi), %esi
incl %esi
movl %esi, 0x28(%rdi)
movq %rax, %rdi
callq 0x54ad
movl %ebx, (%rax)
movb $0x1, %al
leaq 0x681a(%rip), %r9       # 0xb360
jmp 0x4b4a
xorl %eax, %eax
incq (%r9)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/richarddurbin[P]hash10x/hash.c
// Function: hashNextKeyValue
int hashNextKeyValue (HASH hx, HASHKEY *kp, int *ip)
{
  TRUE_HASH *h = (TRUE_HASH*) hx ;
  int size = 1 << h->nbits ;

  while (++h->iter < size)
    if (h->keys[h->iter] && h->keys[h->iter] != REMOVED)
      { kp->i = h->keys[h->iter] ;
	*ip = h->values[h->iter] ;
	return *ip ;
      }

  return 0 ;			/* done if reached end of table */
}

// Assembly:
movb (%rdi), %cl
movl $0x1, %r8d
shll %cl, %r8d
movslq 0x2c(%rdi), %rax
movslq %r8d, %rcx
incq %rax
movl %eax, 0x2c(%rdi)
cmpq %rcx, %rax
jge 0x4b9c
movq 0x10(%rdi), %r8
movslq (%r8,%rax,4), %r8
incq %rax
cmpq $0x2, %r8
jb 0x4b72
movq %r8, (%rsi)
movq 0x18(%rdi), %rax
movslq 0x2c(%rdi), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, (%rdx)
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/richarddurbin[P]hash10x/hash.c
// Function: hashStats
void hashStats (void)
{
  printf ("%d hashes (%d created, %d destroyed)\n", 
	  nCreated - nDestroyed, nCreated, nDestroyed) ;
  printf ("%ld added, %ld found, %ld bounced, %ld not found\n",
	  nAdded, nFound, nBounced, nNotFound) ;
}

// Assembly:
pushq %rax
movl 0x67ae(%rip), %edx      # 0xb358
movl 0x67ac(%rip), %ecx      # 0xb35c
movl %edx, %esi
subl %ecx, %esi
leaq 0x2247(%rip), %rdi      # 0x6e02
xorl %eax, %eax
callq 0x10b0
movq 0x67af(%rip), %rsi      # 0xb378
movq 0x6790(%rip), %rdx      # 0xb360
movq 0x6799(%rip), %rcx      # 0xb370
movq 0x678a(%rip), %r8       # 0xb368
leaq 0x2243(%rip), %rdi      # 0x6e28
xorl %eax, %eax
popq %r9
jmp 0x10b0
nop
// File: /workspace/github_c_makefile_star2_O3/richarddurbin[P]hash10x/dict.c
// Function: dictCreate
DICT *dictCreate (int size)
{
  DICT *dict = (DICT*) mycalloc (1, sizeof(DICT)) ;

  for (dict->dim = 10, dict->size = 1024 ; dict->size < size ; ++dict->dim, dict->size *= 2) ;
  dict->table = (int*) mycalloc (dict->size, sizeof(int)) ;
  dict->names = (char**) mycalloc (dict->size/2, sizeof(char*)) ;
  return dict ; 
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %edi, %ebp
movl $0x1, %edi
movl $0x20, %esi
callq 0x5a64
movq %rax, %rbx
movl $0xa, 0x14(%rax)
movl $0x400, %eax            # imm = 0x400
cmpl $0x401, %ebp            # imm = 0x401
jl 0x4c2b
movl $0xa, %ecx
incl %ecx
addl %eax, %eax
cmpl %ebp, %eax
jl 0x4c20
movl %ecx, 0x14(%rbx)
movl %eax, 0x18(%rbx)
movslq %eax, %rdi
movl $0x4, %esi
callq 0x5a64
movq %rax, 0x8(%rbx)
movl 0x18(%rbx), %eax
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
movslq %ecx, %rdi
movl $0x8, %esi
callq 0x5a64
movq %rax, (%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/richarddurbin[P]hash10x/dict.c
// Function: dictDestroy
void dictDestroy (DICT *dict)
{
  int i ;
  for (i = 1 ; i <= dict->max ; ++i) free (dict->names[i]) ;
  free (dict->names) ;
  free (dict->table) ;
  free (dict) ;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $0x0, 0x10(%rdi)
jle 0x4c8e
xorl %r14d, %r14d
movq (%rbx), %rax
movq 0x8(%rax,%r14,8), %rdi
callq 0x1040
movslq 0x10(%rbx), %rax
incq %r14
cmpq %rax, %r14
jl 0x4c75
movq (%rbx), %rdi
callq 0x1040
movq 0x8(%rbx), %rdi
callq 0x1040
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1040
// File: /workspace/github_c_makefile_star2_O3/richarddurbin[P]hash10x/dict.c
// Function: dictWrite
BOOL dictWrite (DICT *dict, FILE *f)
{
  if (fwrite (&dict->dim,sizeof(int),1,f) != 1) return FALSE ;
  if (fwrite (&dict->max,sizeof(int),1,f) != 1) return FALSE ;
  if (fwrite (dict->table,sizeof(int),dict->size,f) != dict->size) return FALSE ;
  if (fwrite (dict->names,sizeof(char*),dict->max+1,f) != dict->max+1) return FALSE ;
  int i ;
  for (i = 1 ; i <= dict->max ; ++i)
    { int len = strlen(dict->names[i]) ;
      if (fwrite (&len,sizeof(int),1,f) != 1) return FALSE ;
      if (fwrite (dict->names[i],1,len,f) != len) return FALSE ;
    }
  return TRUE ;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
addq $0x14, %rdi
movl $0x4, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x1220
cmpq $0x1, %rax
jne 0x4daf
leaq 0x10(%r14), %r15
movl $0x4, %esi
movl $0x1, %edx
movq %r15, %rdi
movq %rbx, %rcx
callq 0x1220
cmpq $0x1, %rax
jne 0x4daf
movq 0x8(%r14), %rdi
movslq 0x18(%r14), %rdx
movl $0x4, %esi
movq %rbx, %rcx
callq 0x1220
movslq 0x18(%r14), %rcx
cmpq %rcx, %rax
jne 0x4daf
movq (%r14), %rdi
movslq 0x10(%r14), %rdx
incq %rdx
movl $0x8, %esi
movq %rbx, %rcx
callq 0x1220
movslq 0x10(%r14), %rcx
leaq 0x1(%rcx), %rdx
cmpq %rdx, %rax
jne 0x4daf
movb $0x1, %bpl
testl %ecx, %ecx
jle 0x4db1
xorl %r12d, %r12d
movq (%r14), %rax
movq 0x8(%rax,%r12,8), %rdi
callq 0x10a0
movl %eax, 0x4(%rsp)
movl $0x4, %esi
movl $0x1, %edx
leaq 0x4(%rsp), %rdi
movq %rbx, %rcx
callq 0x1220
cmpq $0x1, %rax
jne 0x4daf
movq (%r14), %rax
movq 0x8(%rax,%r12,8), %rdi
movslq 0x4(%rsp), %r13
movl $0x1, %esi
movq %r13, %rdx
movq %rbx, %rcx
callq 0x1220
cmpq %r13, %rax
jne 0x4daf
movslq (%r15), %rax
incq %r12
cmpq %rax, %r12
jl 0x4d52
jmp 0x4db1
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/richarddurbin[P]hash10x/dict.c
// Function: dictRead
DICT *dictRead (FILE *f)
{
  int dim ; if (fread (&dim,sizeof(int),1,f) != 1) return 0 ;
  DICT *dict = dictCreate (1 << dim) ;
  if (fread (&dict->max,sizeof(int),1,f) != 1) return 0 ;
  if (fread (dict->table,sizeof(int),dict->size,f) != dict->size) return 0 ;
  if (fread (dict->names,sizeof(char*),dict->max+1,f) != dict->max+1) return 0 ;
  int i ;
  for (i = 1 ; i <= dict->max ; ++i)
    { int len ;
      if (fread (&len,sizeof(int),1,f) != 1) return 0 ;
      dict->names[i] = new0 (len+1, char) ;
      if (fread (dict->names[i],1,len,f) != len) return 0 ;
    }
  return dict ;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0x4(%rsp), %rdi
movl $0x4, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x1070
cmpq $0x1, %rax
jne 0x4ed5
movb 0x4(%rsp), %cl
movl $0x1, %edi
shll %cl, %edi
callq 0x4bf0
movq %rax, %rbx
leaq 0x10(%rax), %r15
movl $0x4, %esi
movl $0x1, %edx
movq %r15, %rdi
movq %r14, %rcx
callq 0x1070
cmpq $0x1, %rax
jne 0x4ed5
movq 0x8(%rbx), %rdi
movslq 0x18(%rbx), %rdx
movl $0x4, %esi
movq %r14, %rcx
callq 0x1070
movslq 0x18(%rbx), %rcx
cmpq %rcx, %rax
jne 0x4ed5
movq (%rbx), %rdi
movslq 0x10(%rbx), %rdx
incq %rdx
movl $0x8, %esi
movq %r14, %rcx
callq 0x1070
movslq 0x10(%rbx), %rcx
leaq 0x1(%rcx), %rdx
cmpq %rdx, %rax
jne 0x4ed5
testl %ecx, %ecx
jle 0x4ed7
movq %rsp, %r12
xorl %ebp, %ebp
movl $0x4, %esi
movl $0x1, %edx
movq %r12, %rdi
movq %r14, %rcx
callq 0x1070
cmpq $0x1, %rax
jne 0x4ed5
movslq (%rsp), %r13
leaq 0x1(%r13), %rdi
movl $0x1, %esi
callq 0x5a64
movq (%rbx), %rcx
movq %rax, 0x8(%rcx,%rbp,8)
movq (%rbx), %rax
movq 0x8(%rax,%rbp,8), %rdi
movl $0x1, %esi
movq %r13, %rdx
movq %r14, %rcx
callq 0x1070
cmpq %r13, %rax
jne 0x4ed5
movslq (%r15), %rax
incq %rbp
cmpq %rax, %rbp
jl 0x4e76
jmp 0x4ed7
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/richarddurbin[P]hash10x/dict.c
// Function: dictFind
int dictFind (DICT *dict, char *s, int *ip)
{
  int i, x, d ;

  if (!dict) die ("dictAdd received null dict\n") ;
  if (!s) die ("dictAdd received null string\n") ;

  x = hashString (s, dict->dim, 0) ;
  if (!(i = dict->table[x]))
    { newPos = x ; 
      return 0 ; 
    }
  else if (!strcmp (s, dict->names[i]))
    { if (ip) *ip = i-1 ; 
      return 1 ; 
    }
  else
    { d = hashString (s, dict->dim, 1) ;
      while (1)
	{ x = (x + d) & ((1 << dict->dim) - 1) ;
	  if (!(i = dict->table[x]))
	    { newPos = x ; 
	      return 0 ; 
	    }
	  else if (!strcmp (s, dict->names[i]))
	    { if (ip) *ip = i-1 ; 
	      return 1 ; 
	    }
	}
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r12
testq %rdi, %rdi
jne 0x4f13
leaq 0x1f5c(%rip), %rdi      # 0x6e68
xorl %eax, %eax
callq 0x5974
testq %rbx, %rbx
je 0x4f22
movl 0x14(%r12), %esi
movq %rbx, %rdi
jmp 0x4f37
leaq 0x1f5b(%rip), %rdi      # 0x6e84
xorl %eax, %eax
callq 0x5974
movl 0x14(%r12), %esi
xorl %edi, %edi
movl %esi, 0x4(%rsp)
xorl %edx, %edx
callq 0x500b
movl %eax, %r15d
movq 0x8(%r12), %r13
cltq
movslq (%r13,%rax,4), %rbp
testq %rbp, %rbp
je 0x4fde
movq %r14, 0x8(%rsp)
movq %rbx, %r14
movq (%r12), %rax
movq %rax, 0x10(%rsp)
movq (%rax,%rbp,8), %rsi
movq %rbx, %rdi
callq 0x1100
testl %eax, %eax
je 0x4fe9
movq %r14, %rbx
movq %r14, %rdi
movl 0x4(%rsp), %r14d
movl %r14d, %esi
movl $0x1, %edx
callq 0x500b
movl %eax, %r12d
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movl %r14d, %ecx
shll %cl, %ebp
notl %ebp
addl %r12d, %r15d
andl %ebp, %r15d
movslq (%r13,%r15,4), %r14
testq %r14, %r14
je 0x4fde
movq 0x10(%rsp), %rax
movq (%rax,%r14,8), %rsi
movq %rbx, %rdi
callq 0x1100
testl %eax, %eax
jne 0x4fa2
movl $0x1, %eax
movq 0x8(%rsp), %rcx
testq %rcx, %rcx
je 0x4ffc
decl %r14d
movl %r14d, (%rcx)
jmp 0x4ffc
movl %r15d, 0x639b(%rip)     # 0xb380
xorl %eax, %eax
jmp 0x4ffc
movl $0x1, %eax
movq 0x8(%rsp), %rcx
testq %rcx, %rcx
je 0x4ffc
decl %ebp
movl %ebp, (%rcx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/richarddurbin[P]hash10x/dict.c
// Function: hashString
static int hashString (char *cp, int n, int isDiff)
{
  int i ;
  unsigned int j, x = 0 ;
  int rotate = isDiff ? 21 : 13 ;
  int leftover = 8 * sizeof(int) - rotate ;

  while (*cp)
    x = (*cp++) ^ ((x >> leftover) | (x << rotate)) ;

  for (j = x, i = n ; i < sizeof(int) ; i += n)
    j ^= (x >> i) ;
  j &= (1 << n) - 1 ;

  if (isDiff)
    j |= 1 ;

  return j ;
}

// Assembly:
xorl %eax, %eax
testl %edx, %edx
setne %cl
movb (%rdi), %r8b
testb %r8b, %r8b
je 0x503e
movb %cl, %al
leal 0xd(,%rax,8), %ecx
incq %rdi
xorl %eax, %eax
movsbl %r8b, %r8d
roll %cl, %eax
xorl %r8d, %eax
movb (%rdi), %r8b
incq %rdi
testb %r8b, %r8b
jne 0x5028
jmp 0x5040
xorl %eax, %eax
cmpl $0x3, %esi
ja 0x505b
movl %esi, %ecx
movl %eax, %edi
movl %eax, %r8d
shrl %cl, %r8d
xorl %r8d, %edi
addl %esi, %ecx
cmpl $0x4, %ecx
jb 0x5049
jmp 0x505d
movl %eax, %edi
xorl %eax, %eax
testl %edx, %edx
setne %al
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl %esi, %ecx
shll %cl, %edx
notl %edx
andl %edi, %edx
orl %edx, %eax
retq