// File: /workspace/github_c_makefile_star2_O0/richarddurbin[P]hash10x/hash10x.c
// Function: countHashNeighbours
Array countHashNeighbours (int x)
{
  U32 xCount = arr(hashDepth,x,U32) ; if (!xCount) return 0 ;
  HASH h = hashCreate (500000) ;
  Array a = arrayCreate (500000, int) ;
  int i,j ;
  for (i = 0 ; i < xCount ; ++i)
    { ClusterBlock *b = arrp(clusterBlocks, arr(hashCodes,x,U32*)[i], ClusterBlock) ;
      ClusterHash *c = b->clusHash ;
      for (j = 0 ; j < b->nHash ; ++j, ++c)
	if (c->hash != x && hashWithinRange[c->hash])
	  ++array (a, hashAdd(h,HASH_INT(c->hash)), int) ;
    }
  Array b = arrayCreate (256, int) ;
  for (i = 1 ; i < arrayMax(a) ; ++i) ++array (b, arr(a,i,int), int) ;
  arrayDestroy (a) ; hashDestroy (h) ;
  return b ;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movl %edi, -0xc(%rbp)
movq 0x10ade(%rip), %rax     # 0x143c0
movq 0x8(%rax), %rax
movl -0xc(%rbp), %ecx
movq 0x10ad0(%rip), %rdx     # 0x143c0
imull 0x14(%rdx), %ecx
movslq %ecx, %rcx
movl (%rax,%rcx), %eax
movl %eax, -0x10(%rbp)
cmpl $0x0, -0x10(%rbp)
jne 0x3910
movq $0x0, -0x8(%rbp)
jmp 0x3ab4
movl $0x7a120, %edi          # imm = 0x7A120
callq 0xad00
movq %rax, -0x18(%rbp)
movl $0x7a120, %edi          # imm = 0x7A120
movl $0x4, %esi
callq 0xc1e0
movq %rax, -0x20(%rbp)
movl $0x0, -0x24(%rbp)
movl -0x24(%rbp), %eax
cmpl -0x10(%rbp), %eax
jae 0x3a40
movq 0x10a7d(%rip), %rax     # 0x143c8
movq 0x8(%rax), %rax
movq 0x10aa2(%rip), %rcx     # 0x143f8
movq 0x8(%rcx), %rcx
movl -0xc(%rbp), %edx
movq 0x10a94(%rip), %rsi     # 0x143f8
imull 0x14(%rsi), %edx
movslq %edx, %rdx
movq (%rcx,%rdx), %rcx
movslq -0x24(%rbp), %rdx
movl (%rcx,%rdx,4), %ecx
movq 0x10a4b(%rip), %rdx     # 0x143c8
imull 0x14(%rdx), %ecx
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x38(%rbp)
movl $0x0, -0x28(%rbp)
movl -0x28(%rbp), %eax
movq -0x30(%rbp), %rcx
cmpl 0x4(%rcx), %eax
jae 0x3a30
movq -0x38(%rbp), %rax
movl (%rax), %eax
cmpl -0xc(%rbp), %eax
je 0x3a14
movq 0x10a81(%rip), %rax     # 0x14440
movq -0x38(%rbp), %rcx
movl (%rcx), %ecx
movsbl (%rax,%rcx), %eax
cmpl $0x0, %eax
je 0x3a14
movq -0x20(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x18(%rbp), %rdi
movq -0x38(%rbp), %rax
movl (%rax), %eax
xorl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, %eax
movq %rax, 0x10a62(%rip)     # 0x14450
movq 0x10a5b(%rip), %rax     # 0x14450
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rsi
callq 0xb090
movq -0x50(%rbp), %rdi
movl %eax, %esi
callq 0xc640
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x3a16
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
movq -0x38(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x38(%rbp)
jmp 0x399d
jmp 0x3a32
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x3938
movl $0x100, %edi            # imm = 0x100
movl $0x4, %esi
callq 0xc1e0
movq %rax, -0x48(%rbp)
movl $0x1, -0x24(%rbp)
movl -0x24(%rbp), %eax
movq -0x20(%rbp), %rcx
cmpl 0x18(%rcx), %eax
jge 0x3a9a
movq -0x48(%rbp), %rdi
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
movl -0x24(%rbp), %ecx
movq -0x20(%rbp), %rdx
imull 0x14(%rdx), %ecx
movslq %ecx, %rcx
movl (%rax,%rcx), %esi
callq 0xc640
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x3a5a
movq -0x20(%rbp), %rdi
callq 0xc3e0
movq -0x18(%rbp), %rdi
callq 0xae40
movq -0x48(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x50, %rsp
popq %rbp
retq
nop