// File: /workspace/github_c_makefile_star2_O0/jsh58[P]Genrich/Genrich.c
// Function: addHashDc
void addHashDc(Read* r, HashAln** table,
    uint32_t hashSize, bool dupsVerb,
    HashAln** tableSn, uint32_t hashSizeSn) {
  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);
      addToHash(a->chrom, b->chrom, pos, pos1, a->strand,
        b->strand, table, idx, dupsVerb ? r->name : NULL);

      // also add both alignments as singletons to hashtable
      if (tableSn != NULL && hashSizeSn) {
        if (! j)
          checkAndAdd(tableSn, hashSizeSn, a->chrom, pos,
            a->strand, dupsVerb ? r->name : NULL);
        if (! k)
          checkAndAdd(tableSn, hashSizeSn, b->chrom, pos1,
            b->strand, dupsVerb ? r->name : NULL);
      }
    }
  }
}

// Assembly:
pushq %rbx
subq $0xf0, %rsp
movb %cl, %al
movq %rdi, 0xe8(%rsp)
movq %rsi, 0xe0(%rsp)
movl %edx, 0xdc(%rsp)
andb $0x1, %al
movb %al, 0xdb(%rsp)
movq %r8, 0xd0(%rsp)
movl %r9d, 0xcc(%rsp)
movl $0x0, 0xc8(%rsp)
movl 0xc8(%rsp), %eax
movq 0xe8(%rsp), %rcx
movzbl 0x10(%rcx), %ecx
cmpl %ecx, %eax
jge 0x10c89
movq 0xe8(%rsp), %rax
movq 0x8(%rax), %rax
movslq 0xc8(%rsp), %rcx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq %rax, 0xc0(%rsp)
movq 0xc0(%rsp), %rax
testb $0x1, 0x10(%rax)
je 0x108e4
movq 0xc0(%rsp), %rax
movl (%rax), %eax
movl %eax, 0xa4(%rsp)
jmp 0x108f6
movq 0xc0(%rsp), %rax
movl 0x4(%rax), %eax
movl %eax, 0xa4(%rsp)
movl 0xa4(%rsp), %eax
movl %eax, 0xbc(%rsp)
movl $0x0, 0xb8(%rsp)
movl 0xb8(%rsp), %eax
movq 0xe8(%rsp), %rcx
movzbl 0x20(%rcx), %ecx
cmpl %ecx, %eax
jge 0x10c71
movq 0xe8(%rsp), %rax
movq 0x18(%rax), %rax
movslq 0xb8(%rsp), %rcx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq %rax, 0xb0(%rsp)
movq 0xb0(%rsp), %rax
testb $0x1, 0x10(%rax)
je 0x1096e
movq 0xb0(%rsp), %rax
movl (%rax), %eax
movl %eax, 0xa0(%rsp)
jmp 0x10980
movq 0xb0(%rsp), %rax
movl 0x4(%rax), %eax
movl %eax, 0xa0(%rsp)
movl 0xa0(%rsp), %eax
movl %eax, 0xac(%rsp)
movq 0xc0(%rsp), %rax
movq 0x20(%rax), %rdi
movq 0xb0(%rsp), %rax
movq 0x20(%rax), %rsi
movl 0xbc(%rsp), %edx
movl 0xac(%rsp), %ecx
movq 0xc0(%rsp), %rax
movb 0x10(%rax), %r8b
movq 0xb0(%rsp), %rax
movb 0x10(%rax), %r9b
movl 0xdc(%rsp), %eax
andb $0x1, %r8b
andb $0x1, %r9b
movzbl %r8b, %r8d
movzbl %r9b, %r9d
movl $0x2, (%rsp)
movl %eax, 0x8(%rsp)
callq 0xf450
movl %eax, 0xa8(%rsp)
movq 0xc0(%rsp), %rax
movq 0x20(%rax), %rax
movq %rax, 0x70(%rsp)
movq 0xb0(%rsp), %rax
movq 0x20(%rax), %rax
movq %rax, 0x78(%rsp)
movl 0xbc(%rsp), %eax
movl %eax, 0x84(%rsp)
movl 0xac(%rsp), %eax
movl %eax, 0x88(%rsp)
movq 0xc0(%rsp), %rax
movb 0x10(%rax), %al
movb %al, 0x8e(%rsp)
movq 0xb0(%rsp), %rax
movb 0x10(%rax), %al
movb %al, 0x8f(%rsp)
movq 0xe0(%rsp), %rax
movq %rax, 0x90(%rsp)
movl 0xa8(%rsp), %eax
movl %eax, 0x9c(%rsp)
testb $0x1, 0xdb(%rsp)
je 0x10a96
movq 0xe8(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x68(%rsp)
jmp 0x10a9f
xorl %eax, %eax
movq %rax, 0x68(%rsp)
jmp 0x10a9f
movl 0x88(%rsp), %ecx
movl 0x84(%rsp), %edx
movq 0x78(%rsp), %rsi
movq 0x70(%rsp), %rdi
movb 0x8f(%rsp), %al
movb 0x8e(%rsp), %r8b
movq 0x90(%rsp), %r10
movl 0x9c(%rsp), %r11d
movq 0x68(%rsp), %rbx
movq %rsp, %r9
movq %rbx, 0x10(%r9)
movl %r11d, 0x8(%r9)
movq %r10, (%r9)
movzbl %r8b, %r8d
andl $0x1, %r8d
movzbl %al, %r9d
andl $0x1, %r9d
callq 0xf710
cmpq $0x0, 0xd0(%rsp)
je 0x10c59
cmpl $0x0, 0xcc(%rsp)
je 0x10c59
cmpl $0x0, 0xb8(%rsp)
jne 0x10bb9
movq 0xd0(%rsp), %rax
movq %rax, 0x48(%rsp)
movl 0xcc(%rsp), %eax
movl %eax, 0x54(%rsp)
movq 0xc0(%rsp), %rax
movq 0x20(%rax), %rax
movq %rax, 0x58(%rsp)
movl 0xbc(%rsp), %eax
movl %eax, 0x60(%rsp)
movq 0xc0(%rsp), %rax
movb 0x10(%rax), %al
movb %al, 0x67(%rsp)
testb $0x1, 0xdb(%rsp)
je 0x10b88
movq 0xe8(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x40(%rsp)
jmp 0x10b91
xorl %eax, %eax
movq %rax, 0x40(%rsp)
jmp 0x10b91
movl 0x60(%rsp), %ecx
movq 0x58(%rsp), %rdx
movl 0x54(%rsp), %esi
movq 0x48(%rsp), %rdi
movb 0x67(%rsp), %al
movq 0x40(%rsp), %r9
movzbl %al, %r8d
andl $0x1, %r8d
callq 0xfa50
cmpl $0x0, 0xc8(%rsp)
jne 0x10c57
movq 0xd0(%rsp), %rax
movq %rax, 0x20(%rsp)
movl 0xcc(%rsp), %eax
movl %eax, 0x2c(%rsp)
movq 0xb0(%rsp), %rax
movq 0x20(%rax), %rax
movq %rax, 0x30(%rsp)
movl 0xac(%rsp), %eax
movl %eax, 0x38(%rsp)
movq 0xb0(%rsp), %rax
movb 0x10(%rax), %al
movb %al, 0x3f(%rsp)
testb $0x1, 0xdb(%rsp)
je 0x10c26
movq 0xe8(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x18(%rsp)
jmp 0x10c2f
xorl %eax, %eax
movq %rax, 0x18(%rsp)
jmp 0x10c2f
movl 0x38(%rsp), %ecx
movq 0x30(%rsp), %rdx
movl 0x2c(%rsp), %esi
movq 0x20(%rsp), %rdi
movb 0x3f(%rsp), %al
movq 0x18(%rsp), %r9
movzbl %al, %r8d
andl $0x1, %r8d
callq 0xfa50
jmp 0x10c59
jmp 0x10c5b
movl 0xb8(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xb8(%rsp)
jmp 0x1090f
jmp 0x10c73
movl 0xc8(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xc8(%rsp)
jmp 0x10885
addq $0xf0, %rsp
popq %rbx
retq
nopw %cs:(%rax,%rax)