// File: /workspace/github_cpp_makefile_star2_O2/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 0xe8568
movl %edi, %r14d
movl %edi, %r13d
leaq 0x3567c9(%rip), %rax    # 0x43ed10
movl (%rax,%r13,4), %ecx
testl %ecx, %ecx
je 0xe8568
movq %rsi, %rbx
cmpl $0x3, %r14d
ja 0xe8577
leaq 0x2cff9(%rip), %rax     # 0x115558
movslq (%rax,%r13,4), %rdx
addq %rax, %rdx
jmp 0xe857e
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x374d7(%rip), %rdx     # 0x11fa55
leaq 0x373ca(%rip), %rsi     # 0x11f94f
xorl %r15d, %r15d
movq %rbx, %rdi
xorl %eax, %eax
callq 0x9560
leaq 0x373d8(%rip), %r12     # 0x11f971
leaq 0x356770(%rip), %rax    # 0x43ed10
cmpl (%rax,%r13,4), %r15d
jge 0xe85c6
movl %r14d, %edi
movl %r15d, %esi
callq 0xe84b9
movq %rbx, %rdi
movq %r12, %rsi
movl %r15d, %edx
movb $0x1, %al
callq 0x9560
incl %r15d
jmp 0xe8599
pushq $0xa
popq %r14
movl %r14d, %edi
movq %rbx, %rsi
callq 0x9480
movl %r14d, %edi
movq %rbx, %rsi
callq 0x9480
movl 0x3558ca(%rip), %edx    # 0x43deb0
imulq $0x328, %r13, %rax      # imm = 0x328
leaq 0x355a5c(%rip), %rcx    # 0x43e050
leaq (%rax,%rcx), %r12
addq $0x8, %r12
movsd -0x8(%r12), %xmm0
leaq 0x356706(%rip), %rax    # 0x43ed10
movl (%rax,%r13,4), %ecx
leaq 0x37372(%rip), %rsi     # 0x11f987
movq %rbx, %rdi
movb $0x1, %al
callq 0x9560
imulq $0x194, %r13, %rax      # imm = 0x194
leaq 0x3566f3(%rip), %rdi    # 0x43ed20
addq %rax, %rdi
xorl %r13d, %r13d
movsd 0x2e055(%rip), %xmm1    # 0x116690
leaq 0x35586e(%rip), %rsi    # 0x43deb0
movslq 0x356dab(%rip), %rax    # 0x43f3f4
leaq (%r12,%r13,8), %rcx
xorl %r14d, %r14d
leaq (%r14,%r13), %rdx
cmpq %rax, %rdx
jge 0xe86a6
movsd (%rcx,%r14,8), %xmm0
incq %r14
ucomisd %xmm1, %xmm0
jne 0xe866a
jnp 0xe8650
leaq (%rsi,%r13,4), %rax
movl (%rax,%r14,4), %edx
leaq (%rdi,%r13,4), %rax
movl (%rax,%r14,4), %ecx
movq %rdi, -0x30(%rbp)
movq %rbx, %rdi
movq %rsi, %r15
leaq 0x372fc(%rip), %rsi     # 0x11f987
movb $0x1, %al
callq 0x9560
movq -0x30(%rbp), %rdi
movq %r15, %rsi
movsd 0x2dfef(%rip), %xmm1    # 0x116690
addq %r14, %r13
jmp 0xe8642
leaq 0x37305(%rip), %rdi     # 0x11f9b2
pushq $0x3
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rcx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x9750