// File: 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
subq $0x30, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
cmpl $0x0, -0x4(%rbp)
jge 0x15e16a
jmp 0x15e3a2
cmpl $0x4, -0x4(%rbp)
jle 0x15e175
jmp 0x15e3a2
cmpq $0x0, -0x10(%rbp)
jne 0x15e181
jmp 0x15e3a2
movslq -0x4(%rbp), %rcx
leaq 0x356174(%rip), %rax    # 0x4b4300
cmpl $0x0, (%rax,%rcx,4)
jne 0x15e197
jmp 0x15e3a2
cmpl $0x0, -0x4(%rbp)
jne 0x15e1aa
leaq 0x2472c(%rip), %rax     # 0x1828d0
movq %rax, -0x20(%rbp)
jmp 0x15e1f4
cmpl $0x1, -0x4(%rbp)
jne 0x15e1bd
leaq 0x2471f(%rip), %rax     # 0x1828d6
movq %rax, -0x20(%rbp)
jmp 0x15e1f2
cmpl $0x2, -0x4(%rbp)
jne 0x15e1d0
leaq 0x17449(%rip), %rax     # 0x175613
movq %rax, -0x20(%rbp)
jmp 0x15e1f0
cmpl $0x3, -0x4(%rbp)
jne 0x15e1e3
leaq 0x23a96(%rip), %rax     # 0x181c73
movq %rax, -0x20(%rbp)
jmp 0x15e1ee
leaq 0x2c484(%rip), %rax     # 0x18a66e
movq %rax, -0x20(%rbp)
jmp 0x15e1f0
jmp 0x15e1f2
jmp 0x15e1f4
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rdx
movslq -0x4(%rbp), %rcx
leaq 0x3560f9(%rip), %rax    # 0x4b4300
movl (%rax,%rcx,4), %ecx
leaq 0x3a3b0(%rip), %rsi     # 0x1985c1
movb $0x0, %al
callq 0x9550
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
movslq -0x4(%rbp), %rdx
leaq 0x3560d3(%rip), %rcx    # 0x4b4300
cmpl (%rcx,%rdx,4), %eax
jge 0x15e26b
movq -0x10(%rbp), %rax
movq %rax, -0x30(%rbp)
movl -0x14(%rbp), %eax
movl %eax, -0x24(%rbp)
movl -0x4(%rbp), %edi
movl -0x14(%rbp), %esi
callq 0x15e050
movq -0x30(%rbp), %rdi
movl -0x24(%rbp), %edx
leaq 0x3a38a(%rip), %rsi     # 0x1985e3
movb $0x1, %al
callq 0x9550
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x15e21f
movq -0x10(%rbp), %rdi
leaq 0x3a3b0(%rip), %rsi     # 0x198626
movb $0x0, %al
callq 0x9550
movq -0x10(%rbp), %rdi
leaq 0x3a39e(%rip), %rsi     # 0x198626
movb $0x0, %al
callq 0x9550
movq -0x10(%rbp), %rdi
movl 0x355207(%rip), %edx    # 0x4b34a0
movslq -0x4(%rbp), %rcx
leaq 0x35539c(%rip), %rax    # 0x4b3640
imulq $0x328, %rcx, %rcx      # imm = 0x328
addq %rcx, %rax
movsd (%rax), %xmm0
movslq -0x4(%rbp), %rcx
leaq 0x356043(%rip), %rax    # 0x4b4300
movl (%rax,%rcx,4), %ecx
leaq 0x3a332(%rip), %rsi     # 0x1985f9
movb $0x1, %al
callq 0x9550
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
cmpl 0x356706(%rip), %eax    # 0x4b49e4
jge 0x15e390
movslq -0x4(%rbp), %rcx
leaq 0x355351(%rip), %rax    # 0x4b3640
imulq $0x328, %rcx, %rcx      # imm = 0x328
addq %rcx, %rax
movl -0x14(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
movsd 0x10d51(%rip), %xmm1    # 0x16f060
ucomisd %xmm1, %xmm0
jne 0x15e319
jp 0x15e319
jmp 0x15e382
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %eax
addl $0x1, %eax
movslq %eax, %rcx
leaq 0x355173(%rip), %rax    # 0x4b34a0
movl (%rax,%rcx,4), %edx
movslq -0x4(%rbp), %rcx
leaq 0x355305(%rip), %rax    # 0x4b3640
imulq $0x328, %rcx, %rcx      # imm = 0x328
addq %rcx, %rax
movl -0x14(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
movslq -0x4(%rbp), %rcx
leaq 0x355fb2(%rip), %rax    # 0x4b4310
imulq $0x194, %rcx, %rcx      # imm = 0x194
addq %rcx, %rax
movl -0x14(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %ecx
leaq 0x3a27e(%rip), %rsi     # 0x1985f9
movb $0x1, %al
callq 0x9550
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x15e2d5
movq -0x10(%rbp), %rdi
leaq 0x3a289(%rip), %rsi     # 0x198624
movb $0x0, %al
callq 0x9550
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)