// File: /workspace/github_c_makefile_star2_O1/jsh58[P]Genrich/Genrich.c
// Function: checkHashDc
bool checkHashDc(Read* r, HashAln** table,
    uint32_t hashSize, File dups, bool dupsVerb,
    bool gzOut) {
  for (int k = 0; k < r->alnLen; k++) {
    Aln* a = r->aln + k;
    uint32_t pos = (a->strand ? a->pos[0] : a->pos[1]);
    for (int j = 0; j < r->alnLenR2; j++) {
      Aln* b = r->alnR2 + j;
      uint32_t pos1 = (b->strand ? b->pos[0] : b->pos[1]);
      uint32_t idx = jenkins_hash_aln(a->chrom, b->chrom,
        pos, pos1, a->strand, b->strand, DISCORD, hashSize);
      HashAln* h = checkHash(a->chrom, b->chrom, pos, pos1,
        a->strand, b->strand, DISCORD, table, idx);
      if (h) {
        if (dupsVerb)
          logDup(dups, gzOut, r->name, a->chrom, b->chrom,
            pos, pos1, a->strand, b->strand, h->name,
            DISCORD);
        return true;
      }
      // check the reverse also
      idx = jenkins_hash_aln(b->chrom, a->chrom,
        pos1, pos, b->strand, a->strand, DISCORD, hashSize);
      h = checkHash(b->chrom, a->chrom, pos1, pos,
        b->strand, a->strand, DISCORD, table, idx);
      if (h) {
        if (dupsVerb)
          logDup(dups, gzOut, r->name, b->chrom, a->chrom,
            pos1, pos, b->strand, a->strand, h->name,
            DISCORD);
        return true;
      }
    }
  }
  return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movl %r9d, 0x8(%rsp)
movl %r8d, 0xc(%rsp)
movq %rcx, 0x38(%rsp)
cmpb $0x0, 0x10(%rdi)
setne 0x6(%rsp)
je 0xb209
movl %edx, %r10d
movq %rdi, %r15
movq $0x0, 0x10(%rsp)
movq %r10, 0x20(%rsp)
movq %rsi, 0x50(%rsp)
movq %rdi, 0x18(%rsp)
cmpb $0x0, 0x20(%r15)
setne %dl
je 0xb1e9
movq 0x8(%r15), %rax
movq 0x10(%rsp), %rcx
leaq (%rcx,%rcx,4), %rcx
leaq (%rax,%rcx,8), %r13
movzbl 0x10(%r13), %eax
xorl $0x1, %eax
movl (%r13,%rax,4), %eax
movq %rax, 0x48(%rsp)
xorl %r14d, %r14d
xorl %ecx, %ecx
movq %r13, 0x40(%rsp)
movq %rcx, 0x58(%rsp)
movb %dl, 0x7(%rsp)
movq 0x18(%r15), %r15
leaq (%r15,%r14), %rax
movzbl 0x10(%r15,%r14), %ebx
movl %ebx, %ecx
xorb $0x1, %cl
movzbl %cl, %ecx
movl (%rax,%rcx,4), %ecx
movq %rcx, 0x60(%rsp)
movq 0x20(%r13), %rdi
movq %rdi, 0x30(%rsp)
movq 0x20(%r15,%r14), %rbp
movzbl 0x10(%r13), %r8d
movl %r8d, 0x28(%rsp)
movq %rbp, %rsi
movq 0x48(%rsp), %r12
movl %r12d, %edx
movl %ebx, %r9d
pushq %r10
movl $0x2, %eax
pushq %rax
callq 0xa4cd
addq $0x10, %rsp
subq $0x8, %rsp
movq 0x38(%rsp), %rdi
movq %rbp, %rsi
movq 0x68(%rsp), %rbp
movl %r12d, %edx
movl %ebp, %ecx
movl 0x30(%rsp), %r8d
movl %ebx, %r9d
movq 0x58(%rsp), %rbx
pushq %rax
pushq %rbx
movl $0x2, %eax
pushq %rax
callq 0xa65d
addq $0x20, %rsp
testq %rax, %rax
jne 0xb140
movq 0x20(%r15,%r14), %rbx
movq 0x20(%r13), %rsi
movq %rsi, 0x28(%rsp)
movzbl 0x10(%r15,%r14), %r8d
movl %r8d, 0x30(%rsp)
movzbl 0x10(%r13), %r13d
movq %rbx, %rdi
movl %ebp, %edx
movl %r12d, %ecx
movl %r13d, %r9d
pushq 0x20(%rsp)
movl $0x2, %eax
pushq %rax
callq 0xa4cd
addq $0x10, %rsp
subq $0x8, %rsp
movq %rbx, %rdi
movq 0x58(%rsp), %rbx
movq 0x30(%rsp), %rsi
movl %ebp, %edx
movl %r12d, %ecx
movl 0x38(%rsp), %r8d
movl %r13d, %r9d
pushq %rax
pushq %rbx
movl $0x2, %eax
pushq %rax
callq 0xa65d
addq $0x20, %rsp
testq %rax, %rax
movq 0x58(%rsp), %rcx
jne 0xb186
incq %rcx
movq 0x18(%rsp), %r15
movzbl 0x20(%r15), %eax
addq $0x28, %r14
cmpq %rax, %rcx
setb %dl
movq 0x20(%rsp), %r10
movq 0x40(%rsp), %r13
jb 0xb004
jmp 0xb1e9
movq %r15, %rsi
cmpb $0x0, 0xc(%rsp)
movq 0x18(%rsp), %r15
je 0xb1dd
movq (%r15), %rdx
movq 0x20(%r13), %rcx
movq 0x20(%rsi,%r14), %r8
movzbl 0x10(%r13), %r10d
movzbl 0x10(%rsi,%r14), %r11d
subq $0x8, %rsp
movzbl 0x10(%rsp), %esi
movq 0x40(%rsp), %rdi
movl %r12d, %r9d
pushq $0x2
pushq (%rax)
pushq %r11
pushq %r10
pushq %rbp
jmp 0xb1d4
movq %r15, %rcx
cmpb $0x0, 0xc(%rsp)
movq 0x18(%rsp), %r15
movq 0x48(%rsp), %r12
je 0xb1dd
movq (%r15), %rdx
movq %rcx, %rdi
movq 0x20(%rcx,%r14), %rcx
movq 0x40(%rsp), %rsi
movq 0x20(%rsi), %r8
movzbl 0x10(%rdi,%r14), %r10d
movzbl 0x10(%rsi), %r11d
subq $0x8, %rsp
movzbl 0x10(%rsp), %esi
movq 0x40(%rsp), %rdi
movl %ebp, %r9d
pushq $0x2
pushq (%rax)
pushq %r11
pushq %r10
pushq %r12
callq 0xa75a
addq $0x30, %rsp
testb $0x1, 0x7(%rsp)
movq 0x20(%rsp), %r10
jne 0xb209
movq 0x10(%rsp), %rdx
incq %rdx
movzbl 0x10(%r15), %eax
movq %rdx, 0x10(%rsp)
cmpq %rax, %rdx
setb 0x6(%rsp)
jb 0xafc9
movb 0x6(%rsp), %al
andb $0x1, %al
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq