// File: /workspace/github_cpp_makefile_star2_O1/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 0xfdd6a
movl %edi, %r14d
movl %edi, %r13d
leaq 0x3570a7(%rip), %rax    # 0x454df0
movl (%rax,%r13,4), %ecx
testl %ecx, %ecx
je 0xfdd6a
movq %rsi, %rbx
cmpl $0x3, %r14d
ja 0xfdd79
leaq 0x2d8d7(%rip), %rax     # 0x12b638
movslq (%rax,%r13,4), %rdx
addq %rax, %rdx
jmp 0xfdd80
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x29469(%rip), %rdx     # 0x1271e9
leaq 0x37bb8(%rip), %rsi     # 0x13593f
movq %rbx, %rdi
xorl %eax, %eax
callq 0x9560
leaq 0x357058(%rip), %rax    # 0x454df0
cmpl $0x0, (%rax,%r13,4)
jle 0xfddf2
xorl %r15d, %r15d
leaq 0x37bb8(%rip), %r12     # 0x135961
xorps %xmm0, %xmm0
cmpl $0x4, %r14d
ja 0xfddcf
movslq 0x357717(%rip), %rax    # 0x4554d0
cmpq %rax, %r15
jge 0xfddcf
leaq 0x35700b(%rip), %rax    # 0x454dd0
movq (%rax,%r13,8), %rax
movsd (%rax,%r15,8), %xmm0
movq %rbx, %rdi
movq %r12, %rsi
movl %r15d, %edx
movb $0x1, %al
callq 0x9560
incq %r15
leaq 0x357007(%rip), %rax    # 0x454df0
movslq (%rax,%r13,4), %rax
cmpq %rax, %r15
jl 0xfdda9
movl $0xa, %edi
movq %rbx, %rsi
callq 0x9480
movl $0xa, %edi
movq %rbx, %rsi
callq 0x9480
movl 0x35617e(%rip), %edx    # 0x453f90
imulq $0x328, %r13, %r14      # imm = 0x328
leaq 0x356310(%rip), %r15    # 0x454130
movsd (%r14,%r15), %xmm0
leaq 0x356fc3(%rip), %rax    # 0x454df0
movl (%rax,%r13,4), %ecx
leaq 0x37b3f(%rip), %rsi     # 0x135977
movq %rbx, %rdi
movb $0x1, %al
callq 0x9560
cmpl $0x0, 0x35768b(%rip)    # 0x4554d4
jle 0xfdebc
addq %r14, %r15
addq $0x8, %r15
imulq $0x194, %r13, %rax      # imm = 0x194
leaq 0x356fa0(%rip), %rcx    # 0x454e00
leaq (%rax,%rcx), %r12
addq $0x4, %r12
xorl %r13d, %r13d
movsd 0x2e815(%rip), %xmm1    # 0x12c688
leaq 0x37afd(%rip), %r14     # 0x135977
movsd (%r15,%r13,8), %xmm0
ucomisd %xmm1, %xmm0
jne 0xfde88
jnp 0xfdead
leaq 0x356101(%rip), %rax    # 0x453f90
movl 0x4(%rax,%r13,4), %edx
movl (%r12,%r13,4), %ecx
movq %rbx, %rdi
movq %r14, %rsi
movb $0x1, %al
callq 0x9560
movsd 0x2e7db(%rip), %xmm1    # 0x12c688
incq %r13
movslq 0x35761d(%rip), %rax    # 0x4554d4
cmpq %rax, %r13
jl 0xfde7a
leaq 0x37adf(%rip), %rdi     # 0x1359a2
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