// File: /workspace/github_cpp_makefile_star2_O2/jkingan[P]ladyheather/heathui.cpp
// Function: show_plot_stats()
void show_plot_stats()
{
int old_stat;
char units[SLEN+1];
int id;
double val;

    // show all current plot statistics for a selected plot
    if(show_all_stats <= 0) return;

    id = selected_plot;
    if(id < 0) id = selected_plot = DAC;
    if(id >= (NUM_PLOTS+DERIVED_PLOTS)) id = selected_plot = DAC;

    old_stat = plot[id].show_stat;

    strcpy(units, plot[id].units);

    plot[id].show_stat = RMS;
    val = get_stat_val(id);
    sprintf(out, "%s  %.9f %s (%s)  ", stat_id, val, units, plot[id].plot_id);
    strcpy(debug_text7, out);

    plot[id].show_stat = AVG;
    val = get_stat_val(id);
    sprintf(out, "%s  %.9f %s (%s)  ", stat_id, val, units, plot[id].plot_id);
    strcpy(debug_text6, out);

    plot[id].show_stat = SDEV;
    val = get_stat_val(id);
    sprintf(out, "%s  %.9f %s (%s)  ", stat_id, val, units, plot[id].plot_id);
    strcpy(debug_text5, out);

    plot[id].show_stat = VAR;
    val = get_stat_val(id);
    sprintf(out, "%s  %.9f %s (%s)  ", stat_id, val, units, plot[id].plot_id);
    strcpy(debug_text4, out);

    plot[id].show_stat = SHOW_MIN;
    val = get_stat_val(id);
    sprintf(out, "%s  %.9f %s (%s)  ", stat_id, val, units, plot[id].plot_id);
    strcpy(debug_text3, out);

    plot[id].show_stat = SHOW_MAX;
    val = get_stat_val(id);
    sprintf(out, "%s  %.9f %s (%s)  ", stat_id, val, units, plot[id].plot_id);
    strcpy(debug_text2, out);

    plot[id].show_stat = SHOW_SPAN;
    val = get_stat_val(id);
    sprintf(out, "%s %.9f %s (%s)  ", stat_id, val, units, plot[id].plot_id);
    strcpy(debug_text, out);

    plot[id].show_stat = old_stat;
}

// Assembly:
leaq 0x2f3efa(%rip), %rax    # 0x329d60
cmpl $0x0, (%rax)
jle 0x360d3
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
leaq 0x2f3ece(%rip), %rax    # 0x329d58
movl (%rax), %ebx
testl %ebx, %ebx
sets %cl
pushq $0x2
popq %rdx
cmovsl %edx, %ebx
cmpl $0x14, %ebx
setae %sil
cmovael %edx, %ebx
orb %cl, %sil
cmpb $0x1, %sil
jne 0x35eac
movl %ebx, (%rax)
movl %ebx, %eax
imulq $0xe8, %rax, %r12
leaq 0x111e74(%rip), %r13    # 0x147d30
movl 0xd4(%r13,%r12), %eax
movl %eax, -0x2c(%rbp)
movq 0x8(%r13,%r12), %rsi
leaq -0x130(%rbp), %r14
movq %r14, %rdi
callq 0x9330
movl $0x1, 0xd4(%r13,%r12)
movl %ebx, %edi
callq 0x130e6
movq (%r13,%r12), %r8
leaq 0x2f0326(%rip), %r15    # 0x326220
leaq 0xca4ae(%rip), %rsi     # 0x1003af
leaq 0x2f3838(%rip), %rdx    # 0x329740
movq %r15, %rdi
movq %r14, %rcx
movb $0x1, %al
callq 0x9060
leaq 0x2f3264(%rip), %rdi    # 0x329180
movq %r15, %rsi
callq 0x9330
movl $0x2, 0xd4(%r13,%r12)
movl %ebx, %edi
callq 0x130e6
movq (%r13,%r12), %r8
movq %r15, %rdi
leaq 0xca469(%rip), %rsi     # 0x1003af
leaq 0x2f37f3(%rip), %rdx    # 0x329740
movq %rdx, %r14
leaq -0x130(%rbp), %rcx
movb $0x1, %al
callq 0x9060
leaq 0x2f30cb(%rip), %rdi    # 0x329030
movq %r15, %rsi
callq 0x9330
movl $0x4, 0xd4(%r13,%r12)
movl %ebx, %edi
callq 0x130e6
movq (%r13,%r12), %r8
movq %r15, %rdi
leaq 0xca420(%rip), %rsi     # 0x1003af
movq %r14, %rdx
leaq -0x130(%rbp), %rcx
movb $0x1, %al
callq 0x9060
leaq 0x2f2f39(%rip), %rdi    # 0x328ee0
movq %r15, %rsi
callq 0x9330
movl $0x8, 0xd4(%r13,%r12)
movl %ebx, %edi
callq 0x130e6
movq (%r13,%r12), %r8
movq %r15, %rdi
leaq 0xca3de(%rip), %rsi     # 0x1003af
movq %r14, %rdx
leaq -0x130(%rbp), %rcx
movb $0x1, %al
callq 0x9060
leaq 0x2f2da7(%rip), %rdi    # 0x328d90
movq %r15, %rsi
callq 0x9330
movl $0x10, 0xd4(%r13,%r12)
movl %ebx, %edi
callq 0x130e6
movq (%r13,%r12), %r8
movq %r15, %rdi
leaq 0xca39c(%rip), %rsi     # 0x1003af
movq %r14, %rdx
leaq -0x130(%rbp), %rcx
movb $0x1, %al
callq 0x9060
leaq 0x2f2c15(%rip), %rdi    # 0x328c40
movq %r15, %rsi
callq 0x9330
movl $0x20, 0xd4(%r13,%r12)
movl %ebx, %edi
callq 0x130e6
movq (%r13,%r12), %r8
movq %r15, %rdi
leaq 0xca35a(%rip), %rsi     # 0x1003af
movq %r14, %rdx
leaq -0x130(%rbp), %rcx
movb $0x1, %al
callq 0x9060
leaq 0x2f2a83(%rip), %rdi    # 0x328af0
movq %r15, %rsi
callq 0x9330
movl $0x40, 0xd4(%r13,%r12)
movl %ebx, %edi
callq 0x130e6
movq (%r13,%r12), %r8
leaq 0xca32e(%rip), %rsi     # 0x1003c2
movq %r15, %rdi
movq %r14, %rdx
leaq -0x130(%rbp), %rcx
movb $0x1, %al
callq 0x9060
leaq 0x2f28f1(%rip), %rdi    # 0x3289a0
movq %r15, %rsi
callq 0x9330
movl -0x2c(%rbp), %eax
movl %eax, 0xd4(%r13,%r12)
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq