// File: /workspace/github_cpp_makefile_star2_O1/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 0x225a43(%rip), %al     # 0x23cd3e
testb %al, %al
je 0x17309
cmpb $0x0, 0x225a37(%rip)    # 0x23cd3d
jne 0x17309
retq
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
xorl %ebx, %ebx
cmpb $0x50, 0x2f548c(%rip)   # 0x30c7a8
je 0x17335
cmpb $0x0, 0x227c19(%rip)    # 0x23ef3e
je 0x1732f
movl 0x20146b(%rip), %ebx    # 0x218798
jmp 0x17335
movl 0x20146f(%rip), %ebx    # 0x2187a4
testb %al, %al
setne %al
cmpl $0x3, 0x225947(%rip)    # 0x23cc88
setge %cl
andb %al, %cl
movl 0x2014b4(%rip), %eax    # 0x218800
cmpl $0x4fa, %eax            # imm = 0x4FA
setl %dl
andb %cl, %dl
cmpb $0x1, %dl
je 0x174c8
cmpb $0x0, 0x32408a(%rip)    # 0x33b3f0
je 0x174e9
movq 0x204025(%rip), %rcx    # 0x21b398
imulq 0x204025(%rip), %rcx    # 0x21b3a0
movslq 0x201502(%rip), %rdx    # 0x218884
imulq %rdx, %rcx
cvtsi2sd %rcx, %xmm0
cvtsi2sdl 0x20403d(%rip), %xmm1 # 0x21b3d0
divsd %xmm1, %xmm0
divsd 0xf1c69(%rip), %xmm0    # 0x109008
xorps %xmm1, %xmm1
cvtsi2sd %edx, %xmm1
cvtsi2sdl 0x2014c6(%rip), %xmm2 # 0x218874
divsd %xmm2, %xmm1
divsd %xmm1, %xmm0
divsd 0x203f9a(%rip), %xmm0   # 0x21b358
imull $0x31a, 0x20c17c(%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 0x17404
cmpl $0x257, 0x201417(%rip)  # imm = 0x257
jle 0x17404
cmpl %ecx, %eax
jg 0x175a4
cmpb $0x1, 0x20145b(%rip)    # 0x218859
je 0x175a4
leaq 0x324e15(%rip), %rdi    # 0x33c220
leaq 0xf35f5(%rip), %rsi     # 0x10aa07
movb $0x1, %al
callq 0x9060
cmpq $0x1, 0x203f7f(%rip)    # 0x21b3a0
movl $0xf, %eax
movl $0x9, %ecx
cmovel %eax, %ecx
cmpb $0x0, 0x225909(%rip)    # 0x23cd3e
movzbl %cl, %r14d
je 0x17473
cmpl $0x1e0, 0x2013bf(%rip)  # imm = 0x1E0
jg 0x17473
cmpl $0x3, 0x22583a(%rip)    # 0x23cc88
jl 0x17473
movupd 0x11c609(%rip), %xmm0   # 0x133a61
movapd %xmm0, 0x324dc0(%rip)   # 0x33c220
movabsq $0x20202020202020, %rax # imm = 0x20202020202020
movq %rax, 0x324dbc(%rip)    # 0x33c22d
jmp 0x174aa
movl 0x201353(%rip), %edi    # 0x2187cc
leaq 0x324da0(%rip), %rcx    # 0x33c220
movl %ebx, %esi
movl %r14d, %edx
callq 0xe7d0
cmpb $0x50, 0x2f5317(%rip)   # 0x30c7a8
jne 0x17498
addl $0x14, %ebx
jmp 0x1749e
decl 0x20132e(%rip)          # 0x2187cc
movl 0x201328(%rip), %eax    # 0x2187cc
movl %eax, 0x201326(%rip)    # 0x2187d0
cmpb $0x0, 0x22588d(%rip)    # 0x23cd3e
je 0x174f8
cmpl $0x1e0, 0x201347(%rip)  # imm = 0x1E0
jg 0x174f8
cmpl $0x3, 0x2257c2(%rip)    # 0x23cc88
jl 0x174f8
movupd 0x11c591(%rip), %xmm0   # 0x133a61
movapd %xmm0, 0x324d48(%rip)   # 0x33c220
movabsq $0x20202020202020, %rax # imm = 0x20202020202020
movq %rax, 0x324d44(%rip)    # 0x33c22d
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x15d4a
movq 0x203e99(%rip), %rax    # 0x21b398
imulq 0x203e99(%rip), %rax    # 0x21b3a0
movslq 0x201376(%rip), %rcx    # 0x218884
imulq %rax, %rcx
xorps %xmm0, %xmm0
cvtsi2sd %rcx, %xmm0
xorps %xmm1, %xmm1
cvtsi2sdl 0x203eab(%rip), %xmm1 # 0x21b3d0
divsd %xmm1, %xmm0
divsd 0x203e27(%rip), %xmm0   # 0x21b358
movsd 0xf1be7(%rip), %xmm1    # 0x109120
xorl %eax, %eax
ucomisd %xmm0, %xmm1
seta %al
leaq 0xf34f6(%rip), %rcx     # 0x10aa3f
leaq 0xf3503(%rip), %rsi     # 0x10aa53
cmovaq %rcx, %rsi
leaq 0xf1c35(%rip), %rcx     # 0x109190
divsd (%rcx,%rax,8), %xmm0
leaq 0x324cb9(%rip), %r15    # 0x33c220
movq %r15, %rdi
movb $0x1, %al
callq 0x9060
movl 0x201255(%rip), %edi    # 0x2187cc
movl %ebx, %esi
movl %r14d, %edx
movq %r15, %rcx
callq 0xe7d0
cmpb $0x50, 0x2f521d(%rip)   # 0x30c7a8
je 0x17593
decl 0x201239(%rip)          # 0x2187cc
movl 0x201233(%rip), %eax    # 0x2187cc
movl %eax, 0x201231(%rip)    # 0x2187d0
jmp 0x174e9
movsd 0xf1ac4(%rip), %xmm1    # 0x109070
ucomisd %xmm0, %xmm1
jbe 0x175cd
mulsd 0xf1a4e(%rip), %xmm0    # 0x109008
leaq 0x324c5f(%rip), %rdi    # 0x33c220
leaq 0xf344d(%rip), %rsi     # 0x10aa15
jmp 0x17412
leaq 0x324c4c(%rip), %rdi    # 0x33c220
leaq 0xf344f(%rip), %rsi     # 0x10aa2a
jmp 0x17412