// File: /workspace/github_cpp_makefile_star2_O3/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 0x306dd0(%rip), %rax    # 0x33fd60
cmpl $0x0, (%rax)
jle 0x391ff
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
leaq 0x306da4(%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 0x38fd8
movl %ebx, (%rax)
movl %ebx, %eax
imulq $0xe8, %rax, %r12
leaq 0x124d48(%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 0x139a8
movq (%r13,%r12), %r8
leaq 0x3031fa(%rip), %r15    # 0x33c220
leaq 0xdd302(%rip), %rsi     # 0x11632f
leaq 0x30670c(%rip), %rdx    # 0x33f740
movq %r15, %rdi
movq %r14, %rcx
movb $0x1, %al
callq 0x9060
leaq 0x306138(%rip), %rdi    # 0x33f180
movq %r15, %rsi
callq 0x9340
movl $0x2, 0xd4(%r13,%r12)
movl %ebx, %edi
callq 0x139a8
movq (%r13,%r12), %r8
movq %r15, %rdi
leaq 0xdd2bd(%rip), %rsi     # 0x11632f
leaq 0x3066c7(%rip), %rdx    # 0x33f740
movq %rdx, %r14
leaq -0x130(%rbp), %rcx
movb $0x1, %al
callq 0x9060
leaq 0x305f9f(%rip), %rdi    # 0x33f030
movq %r15, %rsi
callq 0x9340
movl $0x4, 0xd4(%r13,%r12)
movl %ebx, %edi
callq 0x139a8
movq (%r13,%r12), %r8
movq %r15, %rdi
leaq 0xdd274(%rip), %rsi     # 0x11632f
movq %r14, %rdx
leaq -0x130(%rbp), %rcx
movb $0x1, %al
callq 0x9060
leaq 0x305e0d(%rip), %rdi    # 0x33eee0
movq %r15, %rsi
callq 0x9340
movl $0x8, 0xd4(%r13,%r12)
movl %ebx, %edi
callq 0x139a8
movq (%r13,%r12), %r8
movq %r15, %rdi
leaq 0xdd232(%rip), %rsi     # 0x11632f
movq %r14, %rdx
leaq -0x130(%rbp), %rcx
movb $0x1, %al
callq 0x9060
leaq 0x305c7b(%rip), %rdi    # 0x33ed90
movq %r15, %rsi
callq 0x9340
movl $0x10, 0xd4(%r13,%r12)
movl %ebx, %edi
callq 0x139a8
movq (%r13,%r12), %r8
movq %r15, %rdi
leaq 0xdd1f0(%rip), %rsi     # 0x11632f
movq %r14, %rdx
leaq -0x130(%rbp), %rcx
movb $0x1, %al
callq 0x9060
leaq 0x305ae9(%rip), %rdi    # 0x33ec40
movq %r15, %rsi
callq 0x9340
movl $0x20, 0xd4(%r13,%r12)
movl %ebx, %edi
callq 0x139a8
movq (%r13,%r12), %r8
movq %r15, %rdi
leaq 0xdd1ae(%rip), %rsi     # 0x11632f
movq %r14, %rdx
leaq -0x130(%rbp), %rcx
movb $0x1, %al
callq 0x9060
leaq 0x305957(%rip), %rdi    # 0x33eaf0
movq %r15, %rsi
callq 0x9340
movl $0x40, 0xd4(%r13,%r12)
movl %ebx, %edi
callq 0x139a8
movq (%r13,%r12), %r8
leaq 0xdd182(%rip), %rsi     # 0x116342
movq %r15, %rdi
movq %r14, %rdx
leaq -0x130(%rbp), %rcx
movb $0x1, %al
callq 0x9060
leaq 0x3057c5(%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