// File: /workspace/github_cpp_makefile_star2_O3/jkingan[P]ladyheather/heather.cpp
// Function: show_view_info()
void show_view_info()
{
DATA_SIZE show_time;
int col;
int color;

   // tuck the diaplay interval data into whatever nook or crannie
   // we can find on the screen

   if((all_adevs == SINGLE_ADEVS) || mixed_adevs) {
      if(zoom_screen == 'P') col = ZOOM_LEFT;
      else if(luxor) col = VER_COL;
      else col = FILTER_COL;

      if(all_adevs && (adev_cols_shown > 2) && (SCREEN_WIDTH < WIDE_WIDTH)) {
         // aaawww
         sprintf(out, "                    ");
      }
      else if(show_min_per_div) {
         show_time = (DATA_SIZE) (view_interval*queue_interval*PLOT_WIDTH);  // seconds per screen
         show_time /= plot_mag;
         show_time /= (DATA_SIZE) 60.0;  // minutes/screen
         show_time /= (((DATA_SIZE) PLOT_WIDTH) / (DATA_SIZE) HORIZ_MAJOR);
         show_time /= nav_rate;
         if(SMALL_SCREEN) {
            sprintf(out, "%.1f min/div ", show_time);
         }
         else if((SCREEN_WIDTH <= NARROW_SCREEN) && (small_font != 1)) {
            sprintf(out, "%.1f min/div ", show_time);
         }
         else {
            if(show_time < (DATA_SIZE) 1.0) sprintf(out, "VIEW: %.1f sec/div  ", show_time*(DATA_SIZE) 60.0);
            else                            sprintf(out, "VIEW: %.1f min/div  ", show_time);
         }

         if(view_interval != 1) color = BLUE;
         else                   color = WHITE;

         if(all_adevs && (SCREEN_HEIGHT <= TINY_HEIGHT) && (adev_cols_shown > 2)) {
            // aaawww
            sprintf(out, "                    ");
         }
         else {
            vidstr(view_row, col, color, out);
            if(zoom_screen == 'P') col += ZOOM_SPACE;
            else --view_row;
            queue_row = view_row;
         }

         show_time = (DATA_SIZE) (view_interval*queue_interval*PLOT_WIDTH);  // seconds per screen
         show_time /= plot_mag;
         show_time /= nav_rate;
         if(all_adevs && (SCREEN_HEIGHT <= TINY_HEIGHT) && (adev_cols_shown > 2)) {
            // aaawww
            sprintf(out, "                    ");
         }
         else {
            if(show_time < (DATA_SIZE) (2.0*60.0*60.0)) sprintf(out, "VIEW: %.1f min     ", show_time/60.0F);
            else sprintf(out, "VIEW: %.1f hrs     ", show_time/(DATA_SIZE)(60.0*60.0));
            vidstr(view_row, col, color, out);
            if(zoom_screen == 'P') ;
            else --view_row;
            queue_row = view_row;
         }
      }

      label_plots();
   }
}

// Assembly:
movb 0x225a2a(%rip), %al     # 0x23cd3e
testb %al, %al
je 0x17322
cmpb $0x0, 0x225a1e(%rip)    # 0x23cd3d
jne 0x17322
retq
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
xorl %ebx, %ebx
cmpb $0x50, 0x2f5473(%rip)   # 0x30c7a8
je 0x1734e
cmpb $0x0, 0x227c00(%rip)    # 0x23ef3e
je 0x17348
movl 0x201452(%rip), %ebx    # 0x218798
jmp 0x1734e
movl 0x201456(%rip), %ebx    # 0x2187a4
testb %al, %al
setne %al
cmpl $0x3, 0x22592e(%rip)    # 0x23cc88
setge %cl
andb %al, %cl
movl 0x20149b(%rip), %eax    # 0x218800
cmpl $0x4fa, %eax            # imm = 0x4FA
setl %dl
andb %cl, %dl
cmpb $0x1, %dl
je 0x17500
cmpb $0x0, 0x324071(%rip)    # 0x33b3f0
je 0x17521
movq 0x20400c(%rip), %rcx    # 0x21b398
imulq 0x20400c(%rip), %rcx    # 0x21b3a0
movslq 0x2014e9(%rip), %rdx    # 0x218884
imulq %rdx, %rcx
cvtsi2sd %rcx, %xmm0
cvtsi2sdl 0x204024(%rip), %xmm1 # 0x21b3d0
divsd %xmm1, %xmm0
divsd 0xf1c50(%rip), %xmm0    # 0x109008
xorps %xmm1, %xmm1
cvtsi2sd %edx, %xmm1
cvtsi2sdl 0x2014ad(%rip), %xmm2 # 0x218874
divsd %xmm2, %xmm1
divsd %xmm1, %xmm0
divsd 0x203f81(%rip), %xmm0   # 0x21b358
imull $0x31a, 0x20c163(%rip), %ecx # imm = 0x31A
movslq %ecx, %rcx
imulq $0x51eb851f, %rcx, %rcx # imm = 0x51EB851F
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x25, %rcx
addl %edx, %ecx
cmpl %ecx, %eax
jl 0x1741d
cmpl $0x257, 0x2013fe(%rip)  # imm = 0x257
jle 0x1741d
cmpl %ecx, %eax
jg 0x175d7
cmpb $0x1, 0x201442(%rip)    # 0x218859
je 0x175d7
leaq 0x324dfc(%rip), %rdi    # 0x33c220
leaq 0xf35ec(%rip), %rsi     # 0x10aa17
movb $0x1, %al
callq 0x9060
movq 0x203f67(%rip), %rax    # 0x21b3a0
cmpq $0x1, %rax
movl $0xf, %ecx
movl $0x9, %edx
cmovel %ecx, %edx
cmpb $0x0, 0x2258ed(%rip)    # 0x23cd3e
movzbl %dl, %r14d
je 0x17491
cmpl $0x1e0, 0x2013a3(%rip)  # imm = 0x1E0
jg 0x17491
cmpl $0x3, 0x22581e(%rip)    # 0x23cc88
jl 0x17491
movupd 0x11c6dd(%rip), %xmm0   # 0x133b51
movapd %xmm0, 0x324da4(%rip)   # 0x33c220
movabsq $0x20202020202020, %rcx # imm = 0x20202020202020
movq %rcx, 0x324da0(%rip)    # 0x33c22d
movb $0x1, %cl
jmp 0x174fc
movl 0x201335(%rip), %edi    # 0x2187cc
leaq 0x324d82(%rip), %rcx    # 0x33c220
movl %ebx, %esi
movl %r14d, %edx
callq 0xe787
cmpb $0x50, 0x2f52f9(%rip)   # 0x30c7a8
jne 0x174bc
addl $0x14, %ebx
movl 0x201312(%rip), %eax    # 0x2187cc
jmp 0x174ca
movl 0x20130a(%rip), %eax    # 0x2187cc
decl %eax
movl %eax, 0x201302(%rip)    # 0x2187cc
movl %eax, 0x201300(%rip)    # 0x2187d0
movq 0x203ec9(%rip), %rax    # 0x21b3a0
cmpb $0x0, 0x225860(%rip)    # 0x23cd3e
setne %cl
cmpl $0x1e1, 0x201319(%rip)  # imm = 0x1E1
setl %dl
andb %cl, %dl
cmpl $0x3, 0x225791(%rip)    # 0x23cc88
setge %cl
andb %dl, %cl
testb %cl, %cl
je 0x17530
movupd 0x11c649(%rip), %xmm0   # 0x133b51
movapd %xmm0, 0x324d10(%rip)   # 0x33c220
movabsq $0x20202020202020, %rax # imm = 0x20202020202020
movq %rax, 0x324d0c(%rip)    # 0x33c22d
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x15d5c
imulq 0x203e60(%rip), %rax    # 0x21b398
movslq 0x201345(%rip), %rcx    # 0x218884
imulq %rax, %rcx
xorps %xmm0, %xmm0
cvtsi2sd %rcx, %xmm0
xorps %xmm1, %xmm1
cvtsi2sdl 0x203e7a(%rip), %xmm1 # 0x21b3d0
divsd %xmm1, %xmm0
divsd 0x203df6(%rip), %xmm0   # 0x21b358
movsd 0xf1bb6(%rip), %xmm1    # 0x109120
xorl %eax, %eax
ucomisd %xmm0, %xmm1
seta %al
leaq 0xf34d5(%rip), %rcx     # 0x10aa4f
leaq 0xf34e2(%rip), %rsi     # 0x10aa63
cmovaq %rcx, %rsi
leaq 0xf1c14(%rip), %rcx     # 0x1091a0
divsd (%rcx,%rax,8), %xmm0
leaq 0x324c88(%rip), %r15    # 0x33c220
movq %r15, %rdi
movb $0x1, %al
callq 0x9060
movl 0x201224(%rip), %edi    # 0x2187cc
movl %ebx, %esi
movl %r14d, %edx
movq %r15, %rcx
callq 0xe787
cmpb $0x50, 0x2f51ec(%rip)   # 0x30c7a8
movl 0x20120a(%rip), %eax    # 0x2187cc
je 0x175cc
decl %eax
movl %eax, 0x201200(%rip)    # 0x2187cc
movl %eax, 0x2011fe(%rip)    # 0x2187d0
jmp 0x17521
movsd 0xf1a91(%rip), %xmm1    # 0x109070
ucomisd %xmm0, %xmm1
jbe 0x17600
mulsd 0xf1a1b(%rip), %xmm0    # 0x109008
leaq 0x324c2c(%rip), %rdi    # 0x33c220
leaq 0xf342a(%rip), %rsi     # 0x10aa25
jmp 0x1742b
leaq 0x324c19(%rip), %rdi    # 0x33c220
leaq 0xf342c(%rip), %rsi     # 0x10aa3a
jmp 0x1742b