// File: /workspace/github_cpp_makefile_star2_O1/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 0x306ea4(%rip), %rax    # 0x33fd60
cmpl $0x0, (%rax)
jle 0x3912b
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
leaq 0x306e78(%rip), %rax    # 0x33fd58
movl (%rax), %ebx
testl %ebx, %ebx
sets %cl
movl $0x2, %edx
cmovsl %edx, %ebx
cmpl $0x14, %ebx
setae %sil
cmovael %edx, %ebx
orb %cl, %sil
cmpb $0x1, %sil
jne 0x38f04
movl %ebx, (%rax)
movl %ebx, %eax
imulq $0xe8, %rax, %r12
leaq 0x124e1c(%rip), %r13    # 0x15dd30
movl 0xd4(%r13,%r12), %eax
movl %eax, -0x2c(%rbp)
movq 0x8(%r13,%r12), %rsi
leaq -0x130(%rbp), %r14
movq %r14, %rdi
callq 0x9340
movl $0x1, 0xd4(%r13,%r12)
movl %ebx, %edi
callq 0x13a37
movq (%r13,%r12), %r8
leaq 0x3032ce(%rip), %r15    # 0x33c220
leaq 0xdd342(%rip), %rsi     # 0x11629b
leaq 0x3067e0(%rip), %rdx    # 0x33f740
movq %r15, %rdi
movq %r14, %rcx
movb $0x1, %al
callq 0x9060
leaq 0x30620c(%rip), %rdi    # 0x33f180
movq %r15, %rsi
callq 0x9340
movl $0x2, 0xd4(%r13,%r12)
movl %ebx, %edi
callq 0x13a37
movq (%r13,%r12), %r8
movq %r15, %rdi
leaq 0xdd2fd(%rip), %rsi     # 0x11629b
leaq 0x30679b(%rip), %rdx    # 0x33f740
movq %rdx, %r14
leaq -0x130(%rbp), %rcx
movb $0x1, %al
callq 0x9060
leaq 0x306073(%rip), %rdi    # 0x33f030
movq %r15, %rsi
callq 0x9340
movl $0x4, 0xd4(%r13,%r12)
movl %ebx, %edi
callq 0x13a37
movq (%r13,%r12), %r8
movq %r15, %rdi
leaq 0xdd2b4(%rip), %rsi     # 0x11629b
movq %r14, %rdx
leaq -0x130(%rbp), %rcx
movb $0x1, %al
callq 0x9060
leaq 0x305ee1(%rip), %rdi    # 0x33eee0
movq %r15, %rsi
callq 0x9340
movl $0x8, 0xd4(%r13,%r12)
movl %ebx, %edi
callq 0x13a37
movq (%r13,%r12), %r8
movq %r15, %rdi
leaq 0xdd272(%rip), %rsi     # 0x11629b
movq %r14, %rdx
leaq -0x130(%rbp), %rcx
movb $0x1, %al
callq 0x9060
leaq 0x305d4f(%rip), %rdi    # 0x33ed90
movq %r15, %rsi
callq 0x9340
movl $0x10, 0xd4(%r13,%r12)
movl %ebx, %edi
callq 0x13a37
movq (%r13,%r12), %r8
movq %r15, %rdi
leaq 0xdd230(%rip), %rsi     # 0x11629b
movq %r14, %rdx
leaq -0x130(%rbp), %rcx
movb $0x1, %al
callq 0x9060
leaq 0x305bbd(%rip), %rdi    # 0x33ec40
movq %r15, %rsi
callq 0x9340
movl $0x20, 0xd4(%r13,%r12)
movl %ebx, %edi
callq 0x13a37
movq (%r13,%r12), %r8
movq %r15, %rdi
leaq 0xdd1ee(%rip), %rsi     # 0x11629b
movq %r14, %rdx
leaq -0x130(%rbp), %rcx
movb $0x1, %al
callq 0x9060
leaq 0x305a2b(%rip), %rdi    # 0x33eaf0
movq %r15, %rsi
callq 0x9340
movl $0x40, 0xd4(%r13,%r12)
movl %ebx, %edi
callq 0x13a37
movq (%r13,%r12), %r8
leaq 0xdd1c2(%rip), %rsi     # 0x1162ae
movq %r15, %rdi
movq %r14, %rdx
leaq -0x130(%rbp), %rcx
movb $0x1, %al
callq 0x9060
leaq 0x305899(%rip), %rdi    # 0x33e9a0
movq %r15, %rsi
callq 0x9340
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