// File: /workspace/github_c_makefile_star2_O0/jsh58[P]Genrich/Genrich.c
// Function: printLog
void printLog(File log, bool gzOut, Chrom* chr,
    uint32_t start, int n, uint32_t m, uint32_t j,
    uint32_t k, uint32_t idx[], bool qvalOpt,
    bool sig) {
  if (! n) {
    // single replicate
    printInterval(log, gzOut, chr->name,
      start, chr->pval[n]->end[m],
      chr->expt->cov[j], chr->ctrl->cov[k],
      chr->pval[n]->cov[m], qvalOpt,
      qvalOpt ? chr->qval->cov[m] : SKIP, sig);
  } else {
    // multiple replicates
    printIntervalN(log, gzOut, chr->name,
      start, chr->pval[n]->end[m], chr->pval, n, idx,
      chr->pval[n]->cov[m], qvalOpt,
      qvalOpt ? chr->qval->cov[m] : SKIP, sig);
    // update indexes into pval arrays
    for (int r = 0; r < n; r++)
      if (chr->pval[r] != NULL
          && chr->pval[r]->end[idx[r]] == chr->pval[n]->end[m])
        idx[r]++;
  }
}

// Assembly:
pushq %r14
pushq %rbx
subq $0xc8, %rsp
movl %ecx, 0x8c(%rsp)
movq %rdx, %rax
movl 0x8c(%rsp), %edx
movq %rax, 0x90(%rsp)
movl %esi, %eax
movq 0x90(%rsp), %rsi
movq %rdi, %r10
movb %al, %dil
movb 0x100(%rsp), %al
movb 0xf8(%rsp), %cl
movq 0xf0(%rsp), %r11
movl 0xe8(%rsp), %r11d
movl 0xe0(%rsp), %r11d
movq %r10, 0xc0(%rsp)
andb $0x1, %dil
movb %dil, 0xbf(%rsp)
movq %rsi, 0xb0(%rsp)
movl %edx, 0xac(%rsp)
movl %r8d, 0xa8(%rsp)
movl %r9d, 0xa4(%rsp)
andb $0x1, %cl
movb %cl, 0xa3(%rsp)
andb $0x1, %al
movb %al, 0xa2(%rsp)
cmpl $0x0, 0xa8(%rsp)
jne 0x552f
movb 0xbf(%rsp), %al
movb %al, 0x67(%rsp)
movq 0xb0(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x68(%rsp)
movl 0xac(%rsp), %eax
movl %eax, 0x74(%rsp)
movq 0xb0(%rsp), %rax
movq 0x48(%rax), %rax
movslq 0xa8(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq (%rax), %rax
movl 0xa4(%rsp), %ecx
movl (%rax,%rcx,4), %eax
movl %eax, 0x78(%rsp)
movq 0xb0(%rsp), %rax
movq 0x28(%rax), %rax
movq 0x8(%rax), %rax
movl 0xe0(%rsp), %ecx
movss (%rax,%rcx,4), %xmm0
movss %xmm0, 0x7c(%rsp)
movq 0xb0(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x8(%rax), %rax
movl 0xe8(%rsp), %ecx
movss (%rax,%rcx,4), %xmm0
movss %xmm0, 0x80(%rsp)
movq 0xb0(%rsp), %rax
movq 0x48(%rax), %rax
movslq 0xa8(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x8(%rax), %rax
movl 0xa4(%rsp), %ecx
movss (%rax,%rcx,4), %xmm0
movss %xmm0, 0x84(%rsp)
movb 0xa3(%rsp), %al
movb %al, 0x8b(%rsp)
testb $0x1, 0xa3(%rsp)
je 0x54b0
movq 0xb0(%rsp), %rax
movq 0x60(%rax), %rax
movq 0x8(%rax), %rax
movl 0xa4(%rsp), %ecx
movss (%rax,%rcx,4), %xmm0
movss %xmm0, 0x60(%rsp)
jmp 0x54c0
movss 0x18cdc(%rip), %xmm0    # 0x1e194
movss %xmm0, 0x60(%rsp)
jmp 0x54c0
movss 0x84(%rsp), %xmm2
movss 0x80(%rsp), %xmm1
movss 0x7c(%rsp), %xmm0
movl 0x78(%rsp), %r8d
movl 0x74(%rsp), %ecx
movq 0x68(%rsp), %rdx
movb 0x8b(%rsp), %al
movb 0x67(%rsp), %sil
movss 0x60(%rsp), %xmm3
movb 0xa2(%rsp), %r9b
movq 0xc0(%rsp), %rdi
movzbl %r9b, %r10d
andl $0x1, %r10d
movq %rsp, %r9
movl %r10d, (%r9)
movzbl %sil, %esi
andl $0x1, %esi
movzbl %al, %r9d
andl $0x1, %r9d
callq 0x5050
jmp 0x5750
movb 0xbf(%rsp), %al
movb %al, 0x2f(%rsp)
movq 0xb0(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x30(%rsp)
movl 0xac(%rsp), %eax
movl %eax, 0x38(%rsp)
movq 0xb0(%rsp), %rax
movq 0x48(%rax), %rax
movslq 0xa8(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq (%rax), %rax
movl 0xa4(%rsp), %ecx
movl (%rax,%rcx,4), %eax
movl %eax, 0x3c(%rsp)
movq 0xb0(%rsp), %rax
movq 0x48(%rax), %rax
movq %rax, 0x40(%rsp)
movl 0xa8(%rsp), %eax
movl %eax, 0x4c(%rsp)
movq 0xf0(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0xb0(%rsp), %rax
movq 0x48(%rax), %rax
movslq 0xa8(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x8(%rax), %rax
movl 0xa4(%rsp), %ecx
movss (%rax,%rcx,4), %xmm0
movss %xmm0, 0x58(%rsp)
movb 0xa3(%rsp), %al
movb %al, 0x5f(%rsp)
testb $0x1, 0xa3(%rsp)
je 0x560e
movq 0xb0(%rsp), %rax
movq 0x60(%rax), %rax
movq 0x8(%rax), %rax
movl 0xa4(%rsp), %ecx
movss (%rax,%rcx,4), %xmm0
movss %xmm0, 0x28(%rsp)
jmp 0x561e
movss 0x18b7e(%rip), %xmm0    # 0x1e194
movss %xmm0, 0x28(%rsp)
jmp 0x561e
movss 0x58(%rsp), %xmm0
movq 0x40(%rsp), %r9
movl 0x3c(%rsp), %r8d
movl 0x38(%rsp), %ecx
movq 0x30(%rsp), %rdx
movb 0x2f(%rsp), %al
movb 0x5f(%rsp), %r10b
movl 0x4c(%rsp), %ebx
movq 0x50(%rsp), %r14
movss 0x28(%rsp), %xmm1
movb 0xa2(%rsp), %r11b
movq 0xc0(%rsp), %rdi
movq %rsp, %rsi
movq %r14, 0x8(%rsi)
movl %ebx, (%rsi)
movzbl %r11b, %r11d
andl $0x1, %r11d
movl %r11d, 0x18(%rsi)
movzbl %r10b, %r10d
andl $0x1, %r10d
movl %r10d, 0x10(%rsi)
movzbl %al, %esi
andl $0x1, %esi
callq 0x4c80
movl $0x0, 0x9c(%rsp)
movl 0x9c(%rsp), %eax
cmpl 0xa8(%rsp), %eax
jge 0x574e
movq 0xb0(%rsp), %rax
movq 0x48(%rax), %rax
movslq 0x9c(%rsp), %rcx
cmpq $0x0, (%rax,%rcx,8)
je 0x5736
movq 0xb0(%rsp), %rax
movq 0x48(%rax), %rax
movslq 0x9c(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq (%rax), %rax
movq 0xf0(%rsp), %rcx
movslq 0x9c(%rsp), %rdx
movl (%rcx,%rdx,4), %ecx
movl (%rax,%rcx,4), %eax
movq 0xb0(%rsp), %rcx
movq 0x48(%rcx), %rcx
movslq 0xa8(%rsp), %rdx
movq (%rcx,%rdx,8), %rcx
movq (%rcx), %rcx
movl 0xa4(%rsp), %edx
cmpl (%rcx,%rdx,4), %eax
jne 0x5736
movq 0xf0(%rsp), %rax
movslq 0x9c(%rsp), %rcx
movl (%rax,%rcx,4), %edx
addl $0x1, %edx
movl %edx, (%rax,%rcx,4)
jmp 0x5738
movl 0x9c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x9c(%rsp)
jmp 0x5696
jmp 0x5750
addq $0xc8, %rsp
popq %rbx
popq %r14
retq
nopl (%rax,%rax)