// File: /workspace/github_c_makefile_star2_O1/jsh58[P]Genrich/Genrich.c
// Function: printIntervalN
void printIntervalN(File out, bool gzOut, char* name,
    uint32_t start, uint32_t end, Pileup** p, int n,
    uint32_t idx[], float pval, bool qvalOpt,
    float qval, bool sig) {
  if (gzOut) {
    gzprintf(out.gzf, "%s\t%d\t%d", name, start, end);
    for (int i = 0; i < n; i++)
      if (p[i] == NULL || p[i]->cov[idx[i]] == SKIP)
        gzprintf(out.gzf, "\t%s", NA);
      else
        gzprintf(out.gzf, "\t%f", p[i]->cov[idx[i]]);
    if (pval == SKIP) {
      gzprintf(out.gzf, "\t%s", NA);
      if (qvalOpt)
        gzprintf(out.gzf, "\t%s", NA);
    } else {
      gzprintf(out.gzf, "\t%f", pval);
      if (qvalOpt)
        gzprintf(out.gzf, "\t%f", qval);
    }
    gzprintf(out.gzf, "%s\n", sig ? "\t*" : "");
  } else {
    fprintf(out.f, "%s\t%d\t%d", name, start, end);
    for (int i = 0; i < n; i++)
      if (p[i] == NULL || p[i]->cov[idx[i]] == SKIP)
        fprintf(out.f, "\t%s", NA);
      else
        fprintf(out.f, "\t%f", p[i]->cov[idx[i]]);
    if (pval == SKIP) {
      fprintf(out.f, "\t%s", NA);
      if (qvalOpt)
        fprintf(out.f, "\t%s", NA);
    } else {
      fprintf(out.f, "\t%f", pval);
      if (qvalOpt)
        fprintf(out.f, "\t%f", qval);
    }
    fprintf(out.f, "%s\n", sig ? "\t*" : "");
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movss %xmm1, 0x10(%rsp)
movss %xmm0, 0x14(%rsp)
movq %r9, %r14
movq %rdi, %rbx
movb 0x68(%rsp), %al
movb %al, 0xf(%rsp)
movb 0x60(%rsp), %al
movb %al, 0xe(%rsp)
movq 0x58(%rsp), %rbp
movl 0x50(%rsp), %r15d
testl %esi, %esi
je 0x4d11
leaq 0xe863(%rip), %rsi      # 0x134aa
movq %rbx, %rdi
xorl %eax, %eax
callq 0x20e0
testl %r15d, %r15d
jle 0x4cb8
movl %r15d, %r13d
leaq 0xe853(%rip), %r12      # 0x134b3
xorl %r15d, %r15d
movq (%r14,%r15,8), %rax
testq %rax, %rax
je 0x4c85
movq 0x8(%rax), %rax
movl (%rbp,%r15,4), %ecx
movss (%rax,%rcx,4), %xmm0
ucomiss 0xd4d7(%rip), %xmm0     # 0x12158
jne 0x4c9b
jp 0x4c9b
movq %rbx, %rdi
leaq 0xe838(%rip), %rsi      # 0x134c7
movq %r12, %rdx
xorl %eax, %eax
callq 0x20e0
jmp 0x4cb0
cvtss2sd %xmm0, %xmm0
movq %rbx, %rdi
leaq 0xe84e(%rip), %rsi      # 0x134f7
movb $0x1, %al
callq 0x20e0
incq %r15
cmpq %r15, %r13
jne 0x4c63
movss 0x14(%rsp), %xmm0
ucomiss 0xd493(%rip), %xmm0     # 0x12158
jne 0x4de2
jp 0x4de2
leaq 0xe7ef(%rip), %rsi      # 0x134c7
leaq 0xe7d4(%rip), %rdx      # 0x134b3
movq %rbx, %rdi
xorl %eax, %eax
callq 0x20e0
cmpb $0x0, 0xe(%rsp)
je 0x4e18
leaq 0xe7cc(%rip), %rsi      # 0x134c7
leaq 0xe7b1(%rip), %rdx      # 0x134b3
movq %rbx, %rdi
xorl %eax, %eax
callq 0x20e0
jmp 0x4e18
leaq 0xe792(%rip), %rsi      # 0x134aa
movq %rbx, %rdi
xorl %eax, %eax
callq 0x21d0
testl %r15d, %r15d
jle 0x4d89
movl %r15d, %r13d
leaq 0xe782(%rip), %r12      # 0x134b3
xorl %r15d, %r15d
movq (%r14,%r15,8), %rax
testq %rax, %rax
je 0x4d56
movq 0x8(%rax), %rax
movl (%rbp,%r15,4), %ecx
movss (%rax,%rcx,4), %xmm0
ucomiss 0xd406(%rip), %xmm0     # 0x12158
jne 0x4d6c
jp 0x4d6c
movq %rbx, %rdi
leaq 0xe767(%rip), %rsi      # 0x134c7
movq %r12, %rdx
xorl %eax, %eax
callq 0x21d0
jmp 0x4d81
cvtss2sd %xmm0, %xmm0
movq %rbx, %rdi
leaq 0xe77d(%rip), %rsi      # 0x134f7
movb $0x1, %al
callq 0x21d0
incq %r15
cmpq %r15, %r13
jne 0x4d34
movss 0x14(%rsp), %xmm0
ucomiss 0xd3c2(%rip), %xmm0     # 0x12158
jne 0x4e4e
jp 0x4e4e
leaq 0xe71e(%rip), %rsi      # 0x134c7
leaq 0xe703(%rip), %rdx      # 0x134b3
movq %rbx, %rdi
xorl %eax, %eax
callq 0x21d0
cmpb $0x0, 0xe(%rsp)
je 0x4e84
leaq 0xe6fb(%rip), %rsi      # 0x134c7
leaq 0xe6e0(%rip), %rdx      # 0x134b3
movq %rbx, %rdi
xorl %eax, %eax
callq 0x21d0
jmp 0x4e84
cvtss2sd %xmm0, %xmm0
leaq 0xe70a(%rip), %rsi      # 0x134f7
movq %rbx, %rdi
movb $0x1, %al
callq 0x20e0
cmpb $0x0, 0xe(%rsp)
je 0x4e18
xorps %xmm0, %xmm0
cvtss2sd 0x10(%rsp), %xmm0
leaq 0xe6e9(%rip), %rsi      # 0x134f7
movq %rbx, %rdi
movb $0x1, %al
callq 0x20e0
leaq 0xe697(%rip), %rax      # 0x134b6
leaq 0xeda5(%rip), %rdx      # 0x13bcb
cmpb $0x0, 0xf(%rsp)
cmovneq %rax, %rdx
leaq 0xea31(%rip), %rsi      # 0x13867
movq %rbx, %rdi
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x20e0
cvtss2sd %xmm0, %xmm0
leaq 0xe69e(%rip), %rsi      # 0x134f7
movq %rbx, %rdi
movb $0x1, %al
callq 0x21d0
cmpb $0x0, 0xe(%rsp)
je 0x4e84
xorps %xmm0, %xmm0
cvtss2sd 0x10(%rsp), %xmm0
leaq 0xe67d(%rip), %rsi      # 0x134f7
movq %rbx, %rdi
movb $0x1, %al
callq 0x21d0
leaq 0xe62b(%rip), %rax      # 0x134b6
leaq 0xed39(%rip), %rdx      # 0x13bcb
cmpb $0x0, 0xf(%rsp)
cmovneq %rax, %rdx
leaq 0xe9c5(%rip), %rsi      # 0x13867
movq %rbx, %rdi
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x21d0