// File: /workspace/github_c_makefile_star2_O3/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 0x4cce
leaq 0xe8a6(%rip), %rsi      # 0x134aa
movq %rbx, %rdi
xorl %eax, %eax
callq 0x20e0
testl %r15d, %r15d
jle 0x4c75
movl %r15d, %r13d
leaq 0xe896(%rip), %r12      # 0x134b3
xorl %r15d, %r15d
movq (%r14,%r15,8), %rax
testq %rax, %rax
je 0x4c42
movq 0x8(%rax), %rax
movl (%rbp,%r15,4), %ecx
movss (%rax,%rcx,4), %xmm0
ucomiss 0xd512(%rip), %xmm0     # 0x12150
jne 0x4c58
jp 0x4c58
movq %rbx, %rdi
leaq 0xe87b(%rip), %rsi      # 0x134c7
movq %r12, %rdx
xorl %eax, %eax
callq 0x20e0
jmp 0x4c6d
cvtss2sd %xmm0, %xmm0
movq %rbx, %rdi
leaq 0xe891(%rip), %rsi      # 0x134f7
movb $0x1, %al
callq 0x20e0
incq %r15
cmpq %r15, %r13
jne 0x4c20
movss 0x14(%rsp), %xmm0
ucomiss 0xd4ce(%rip), %xmm0     # 0x12150
jne 0x4d9f
jp 0x4d9f
leaq 0xe832(%rip), %rsi      # 0x134c7
leaq 0xe817(%rip), %rdx      # 0x134b3
movq %rbx, %rdi
xorl %eax, %eax
callq 0x20e0
cmpb $0x0, 0xe(%rsp)
je 0x4dd5
leaq 0xe80f(%rip), %rsi      # 0x134c7
leaq 0xe7f4(%rip), %rdx      # 0x134b3
movq %rbx, %rdi
xorl %eax, %eax
callq 0x20e0
jmp 0x4dd5
leaq 0xe7d5(%rip), %rsi      # 0x134aa
movq %rbx, %rdi
xorl %eax, %eax
callq 0x21d0
testl %r15d, %r15d
jle 0x4d46
movl %r15d, %r13d
leaq 0xe7c5(%rip), %r12      # 0x134b3
xorl %r15d, %r15d
movq (%r14,%r15,8), %rax
testq %rax, %rax
je 0x4d13
movq 0x8(%rax), %rax
movl (%rbp,%r15,4), %ecx
movss (%rax,%rcx,4), %xmm0
ucomiss 0xd441(%rip), %xmm0     # 0x12150
jne 0x4d29
jp 0x4d29
movq %rbx, %rdi
leaq 0xe7aa(%rip), %rsi      # 0x134c7
movq %r12, %rdx
xorl %eax, %eax
callq 0x21d0
jmp 0x4d3e
cvtss2sd %xmm0, %xmm0
movq %rbx, %rdi
leaq 0xe7c0(%rip), %rsi      # 0x134f7
movb $0x1, %al
callq 0x21d0
incq %r15
cmpq %r15, %r13
jne 0x4cf1
movss 0x14(%rsp), %xmm0
ucomiss 0xd3fd(%rip), %xmm0     # 0x12150
jne 0x4e0b
jp 0x4e0b
leaq 0xe761(%rip), %rsi      # 0x134c7
leaq 0xe746(%rip), %rdx      # 0x134b3
movq %rbx, %rdi
xorl %eax, %eax
callq 0x21d0
cmpb $0x0, 0xe(%rsp)
je 0x4e41
leaq 0xe73e(%rip), %rsi      # 0x134c7
leaq 0xe723(%rip), %rdx      # 0x134b3
movq %rbx, %rdi
xorl %eax, %eax
callq 0x21d0
jmp 0x4e41
cvtss2sd %xmm0, %xmm0
leaq 0xe74d(%rip), %rsi      # 0x134f7
movq %rbx, %rdi
movb $0x1, %al
callq 0x20e0
cmpb $0x0, 0xe(%rsp)
je 0x4dd5
xorps %xmm0, %xmm0
cvtss2sd 0x10(%rsp), %xmm0
leaq 0xe72c(%rip), %rsi      # 0x134f7
movq %rbx, %rdi
movb $0x1, %al
callq 0x20e0
leaq 0xe6da(%rip), %rax      # 0x134b6
leaq 0xeddc(%rip), %rdx      # 0x13bbf
cmpb $0x0, 0xf(%rsp)
cmovneq %rax, %rdx
leaq 0xea74(%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 0xe6e1(%rip), %rsi      # 0x134f7
movq %rbx, %rdi
movb $0x1, %al
callq 0x21d0
cmpb $0x0, 0xe(%rsp)
je 0x4e41
xorps %xmm0, %xmm0
cvtss2sd 0x10(%rsp), %xmm0
leaq 0xe6c0(%rip), %rsi      # 0x134f7
movq %rbx, %rdi
movb $0x1, %al
callq 0x21d0
leaq 0xe66e(%rip), %rax      # 0x134b6
leaq 0xed70(%rip), %rdx      # 0x13bbf
cmpb $0x0, 0xf(%rsp)
cmovneq %rax, %rdx
leaq 0xea08(%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