// File: /workspace/github_c_makefile_star2_O0/jsh58[P]Genrich/Genrich.c
// Function: addHashPr
void addHashPr(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 idx = jenkins_hash_aln(a->chrom, NULL,
      a->pos[0], a->pos[1], 0, 0, PAIRED, hashSize);
    addToHash(a->chrom, NULL, a->pos[0], a->pos[1],
      0, 0, table, idx, dupsVerb ? r->name : NULL);

    // also add both alignments as singletons to hashtable
    if (tableSn != NULL && hashSizeSn) {
      checkAndAdd(tableSn, hashSizeSn, a->chrom, a->pos[0],
        true, dupsVerb ? r->name : NULL);
      checkAndAdd(tableSn, hashSizeSn, a->chrom, a->pos[1],
        false, dupsVerb ? r->name : NULL);
    }
  }
}

// Assembly:
subq $0xc8, %rsp
movb %cl, %al
movq %rdi, 0xc0(%rsp)
movq %rsi, 0xb8(%rsp)
movl %edx, 0xb4(%rsp)
andb $0x1, %al
movb %al, 0xb3(%rsp)
movq %r8, 0xa8(%rsp)
movl %r9d, 0xa4(%rsp)
movl $0x0, 0xa0(%rsp)
movl 0xa0(%rsp), %eax
movq 0xc0(%rsp), %rcx
movzbl 0x10(%rcx), %ecx
cmpl %ecx, %eax
jge 0x100f2
movq 0xc0(%rsp), %rax
movq 0x8(%rax), %rax
movslq 0xa0(%rsp), %rcx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq %rax, 0x98(%rsp)
movq 0x98(%rsp), %rax
movq 0x20(%rax), %rdi
movq 0x98(%rsp), %rax
movl (%rax), %edx
movq 0x98(%rsp), %rax
movl 0x4(%rax), %ecx
movl 0xb4(%rsp), %eax
xorl %esi, %esi
xorl %r9d, %r9d
movl %r9d, %r8d
movl $0x0, (%rsp)
movl %eax, 0x8(%rsp)
callq 0xf450
movl %eax, 0x94(%rsp)
movq 0x98(%rsp), %rax
movq 0x20(%rax), %rax
movq %rax, 0x78(%rsp)
movq 0x98(%rsp), %rax
movl (%rax), %eax
movl %eax, 0x80(%rsp)
movq 0x98(%rsp), %rax
movl 0x4(%rax), %eax
movl %eax, 0x84(%rsp)
movq 0xb8(%rsp), %rax
movq %rax, 0x88(%rsp)
movl 0x94(%rsp), %eax
movl %eax, 0x90(%rsp)
testb $0x1, 0xb3(%rsp)
je 0xff77
movq 0xc0(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x70(%rsp)
jmp 0xff80
xorl %eax, %eax
movq %rax, 0x70(%rsp)
jmp 0xff80
movl 0x90(%rsp), %r10d
movq 0x88(%rsp), %r11
movl 0x84(%rsp), %ecx
movl 0x80(%rsp), %edx
movq 0x78(%rsp), %rdi
movq 0x70(%rsp), %rax
xorl %esi, %esi
xorl %r9d, %r9d
movl %r9d, %r8d
movq %r11, (%rsp)
movl %r10d, 0x8(%rsp)
movq %rax, 0x10(%rsp)
callq 0xf710
cmpq $0x0, 0xa8(%rsp)
je 0x100da
cmpl $0x0, 0xa4(%rsp)
je 0x100da
movq 0xa8(%rsp), %rax
movq %rax, 0x50(%rsp)
movl 0xa4(%rsp), %eax
movl %eax, 0x5c(%rsp)
movq 0x98(%rsp), %rax
movq 0x20(%rax), %rax
movq %rax, 0x60(%rsp)
movq 0x98(%rsp), %rax
movl (%rax), %eax
movl %eax, 0x6c(%rsp)
testb $0x1, 0xb3(%rsp)
je 0x10033
movq 0xc0(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x48(%rsp)
jmp 0x1003c
xorl %eax, %eax
movq %rax, 0x48(%rsp)
jmp 0x1003c
movl 0x6c(%rsp), %ecx
movq 0x60(%rsp), %rdx
movl 0x5c(%rsp), %esi
movq 0x50(%rsp), %rdi
movq 0x48(%rsp), %r9
movl $0x1, %r8d
callq 0xfa50
movq 0xa8(%rsp), %rax
movq %rax, 0x28(%rsp)
movl 0xa4(%rsp), %eax
movl %eax, 0x34(%rsp)
movq 0x98(%rsp), %rax
movq 0x20(%rax), %rax
movq %rax, 0x38(%rsp)
movq 0x98(%rsp), %rax
movl 0x4(%rax), %eax
movl %eax, 0x44(%rsp)
testb $0x1, 0xb3(%rsp)
je 0x100b2
movq 0xc0(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x20(%rsp)
jmp 0x100bb
xorl %eax, %eax
movq %rax, 0x20(%rsp)
jmp 0x100bb
movl 0x44(%rsp), %ecx
movq 0x38(%rsp), %rdx
movl 0x34(%rsp), %esi
movq 0x28(%rsp), %rdi
movq 0x20(%rsp), %r9
xorl %r8d, %r8d
callq 0xfa50
jmp 0x100dc
movl 0xa0(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xa0(%rsp)
jmp 0xfe84
addq $0xc8, %rsp
retq
nopw (%rax,%rax)