// File: /workspace/github_cpp_makefile_star2_O3/jkingan[P]ladyheather/heathmsc.cpp
// Function: dump_mtie(int, _IO_FILE*)
void dump_mtie(int id, FILE *file)
{
int i;
char *s;

   if(id < 0) return;
   if(id > MAX_MTIE_CHANS) return;
   if(file == 0) return;

   if(mtie_q_count[id] == 0) return;

   if     (id == 0) s = "chA";
   else if(id == 1) s = "chB";
   else if(id == 2) s = "chC";
   else if(id == 3) s = "chD";
   else             s = "???";
   
   fprintf(file, "TIE values for %s.  intervals:%d\n", s, mtie_q_count[id]);
   for(i=0; i<mtie_q_count[id]; i++) {
fprintf(file, "i:%-6d tie(ns):%.12f\n", i, mtie_phase(id, i));
   }
   fprintf(file, "\n");
//   fprintf(file, "mtie_min:%.12f  mtie_max:%.12f  mtie0: %.12f\n", mtie_min[id], mtie_max[id], mtie0[id]);
   fprintf(file, "\n");

   fprintf(file, "tau: %-6d   mtie(ns):%.12f   intervals:%d\n", pow2[0], mtie[id][0], mtie_q_count[id]);

   for(i=0; i<mtie_kmax; i++) {
      if(mtie[id][i+1] == (-BIG_NUM)) continue;
      fprintf(file, "tau: %-6d   mtie(ns):%.12f   intervals:%d\n", pow2[i+1], mtie[id][i+1], mtie_intervals[id][i+1]);
   }
   fprintf(file, "\n\n\n");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
cmpl $0x5, %edi
setae %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0xfe44c
movl %edi, %r12d
leaq 0x3568e5(%rip), %r13    # 0x454d10
movl (%r13,%r12,4), %ecx
testl %ecx, %ecx
je 0xfe44c
movq %rsi, %rbx
cmpl $0x3, %edi
ja 0xfe45b
leaq 0x2d2c5(%rip), %rax     # 0x12b708
movslq (%rax,%r12,4), %rdx
addq %rax, %rdx
jmp 0xfe462
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x376e7(%rip), %rdx     # 0x135b49
leaq 0x375c6(%rip), %rsi     # 0x135a2f
movq %rbx, %rdi
xorl %eax, %eax
callq 0x9560
cmpl $0x0, (%r13,%r12,4)
jle 0xfe4c2
xorl %r14d, %r14d
leaq 0x375cc(%rip), %r15     # 0x135a51
movslq 0x356f64(%rip), %rax    # 0x4553f0
xorps %xmm0, %xmm0
cmpq %rax, %r14
jge 0xfe4a5
leaq 0x356855(%rip), %rax    # 0x454cf0
movq (%rax,%r12,8), %rax
movsd (%rax,%r14,8), %xmm0
movq %rbx, %rdi
movq %r15, %rsi
movl %r14d, %edx
movb $0x1, %al
callq 0x9560
incq %r14
movslq (%r13,%r12,4), %rax
cmpq %rax, %r14
jl 0xfe485
movl $0xa, %edi
movq %rbx, %rsi
callq 0x9480
movl $0xa, %edi
movq %rbx, %rsi
callq 0x9480
movl 0x3559ce(%rip), %edx    # 0x453eb0
imulq $0x328, %r12, %r14      # imm = 0x328
leaq 0x355b60(%rip), %r15    # 0x454050
movsd (%r14,%r15), %xmm0
movl (%r13,%r12,4), %ecx
leaq 0x37565(%rip), %rsi     # 0x135a67
movq %rbx, %rdi
movb $0x1, %al
callq 0x9560
movl 0x356ee2(%rip), %eax    # 0x4553f4
testl %eax, %eax
jle 0xfe589
addq %r14, %r15
addq $0x8, %r15
imulq $0x194, %r12, %rcx      # imm = 0x194
leaq 0x3567f5(%rip), %rdx    # 0x454d20
leaq (%rcx,%rdx), %r12
addq $0x4, %r12
xorl %r13d, %r13d
movsd 0x2e232(%rip), %xmm1    # 0x12c770
leaq 0x37522(%rip), %r14     # 0x135a67
movsd (%r15,%r13,8), %xmm0
ucomisd %xmm1, %xmm0
jne 0xfe553
jnp 0xfe57e
leaq 0x355956(%rip), %rax    # 0x453eb0
movl 0x4(%rax,%r13,4), %edx
movl (%r12,%r13,4), %ecx
movq %rbx, %rdi
movq %r14, %rsi
movb $0x1, %al
callq 0x9560
movsd 0x2e1f8(%rip), %xmm1    # 0x12c770
movl 0x356e76(%rip), %eax    # 0x4553f4
incq %r13
movslq %eax, %rcx
cmpq %rcx, %r13
jl 0xfe545
leaq 0x37502(%rip), %rdi     # 0x135a92
movl $0x3, %esi
movl $0x1, %edx
movq %rbx, %rcx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x9750