// File: /workspace/github_c_makefile_star2_O2/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, 0x14(%rsp)
movss %xmm0, 0x10(%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), %eax
xorl %r13d, %r13d
testl %eax, %eax
cmovgl %eax, %r13d
testl %esi, %esi
je 0x3a50
leaq 0xda1f(%rip), %rsi      # 0x113fa
movq %rbx, %rdi
xorl %eax, %eax
callq 0x20e0
leaq 0xda17(%rip), %r12      # 0x11403
xorl %r15d, %r15d
movss 0x10(%rsp), %xmm0
cmpq %r15, %r13
je 0x3acc
movq (%r14,%r15,8), %rax
testq %rax, %rax
je 0x3a20
movq 0x8(%rax), %rax
movl (%rbp,%r15,4), %ecx
movss (%rax,%rcx,4), %xmm0
ucomiss 0xc74c(%rip), %xmm0     # 0x10168
jne 0x3a36
jp 0x3a36
movq %rbx, %rdi
leaq 0xd9ed(%rip), %rsi      # 0x11417
movq %r12, %rdx
xorl %eax, %eax
callq 0x20e0
jmp 0x3a4b
cvtss2sd %xmm0, %xmm0
movq %rbx, %rdi
leaq 0xda03(%rip), %rsi      # 0x11447
movb $0x1, %al
callq 0x20e0
incq %r15
jmp 0x39ef
leaq 0xd9a3(%rip), %rsi      # 0x113fa
movq %rbx, %rdi
xorl %eax, %eax
callq 0x21c0
leaq 0xd99b(%rip), %r12      # 0x11403
xorl %r15d, %r15d
movss 0x10(%rsp), %xmm0
cmpq %r15, %r13
je 0x3b1f
movq (%r14,%r15,8), %rax
testq %rax, %rax
je 0x3a9c
movq 0x8(%rax), %rax
movl (%rbp,%r15,4), %ecx
movss (%rax,%rcx,4), %xmm0
ucomiss 0xc6d0(%rip), %xmm0     # 0x10168
jne 0x3ab2
jp 0x3ab2
movq %rbx, %rdi
leaq 0xd971(%rip), %rsi      # 0x11417
movq %r12, %rdx
xorl %eax, %eax
callq 0x21c0
jmp 0x3ac7
cvtss2sd %xmm0, %xmm0
movq %rbx, %rdi
leaq 0xd987(%rip), %rsi      # 0x11447
movb $0x1, %al
callq 0x21c0
incq %r15
jmp 0x3a6b
ucomiss 0xc695(%rip), %xmm0     # 0x10168
jne 0x3b72
jp 0x3b72
leaq 0xd931(%rip), %rsi      # 0x11417
leaq 0xd916(%rip), %rdx      # 0x11403
movq %rbx, %rdi
xorl %eax, %eax
callq 0x20e0
cmpb $0x0, 0xe(%rsp)
je 0x3ba5
leaq 0xd90e(%rip), %rsi      # 0x11417
leaq 0xd8f3(%rip), %rdx      # 0x11403
movq %rbx, %rdi
xorl %eax, %eax
callq 0x20e0
jmp 0x3ba5
ucomiss 0xc642(%rip), %xmm0     # 0x10168
jne 0x3bdb
jp 0x3bdb
leaq 0xd8de(%rip), %rsi      # 0x11417
leaq 0xd8c3(%rip), %rdx      # 0x11403
movq %rbx, %rdi
xorl %eax, %eax
callq 0x21c0
cmpb $0x0, 0xe(%rsp)
je 0x3c0e
leaq 0xd8bb(%rip), %rsi      # 0x11417
leaq 0xd8a0(%rip), %rdx      # 0x11403
movq %rbx, %rdi
xorl %eax, %eax
callq 0x21c0
jmp 0x3c0e
cvtss2sd %xmm0, %xmm0
leaq 0xd8ca(%rip), %rsi      # 0x11447
movq %rbx, %rdi
movb $0x1, %al
callq 0x20e0
cmpb $0x0, 0xe(%rsp)
je 0x3ba5
cvtss2sd 0x14(%rsp), %xmm0
leaq 0xd8ac(%rip), %rsi      # 0x11447
movq %rbx, %rdi
movb $0x1, %al
callq 0x20e0
leaq 0xd85a(%rip), %rax      # 0x11406
leaq 0xdf5c(%rip), %rdx      # 0x11b0f
cmpb $0x0, 0xf(%rsp)
cmovneq %rax, %rdx
leaq 0xdbf4(%rip), %rsi      # 0x117b7
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 0xd861(%rip), %rsi      # 0x11447
movq %rbx, %rdi
movb $0x1, %al
callq 0x21c0
cmpb $0x0, 0xe(%rsp)
je 0x3c0e
cvtss2sd 0x14(%rsp), %xmm0
leaq 0xd843(%rip), %rsi      # 0x11447
movq %rbx, %rdi
movb $0x1, %al
callq 0x21c0
leaq 0xd7f1(%rip), %rax      # 0x11406
leaq 0xdef3(%rip), %rdx      # 0x11b0f
cmpb $0x0, 0xf(%rsp)
cmovneq %rax, %rdx
leaq 0xdb8b(%rip), %rsi      # 0x117b7
movq %rbx, %rdi
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x21c0