// File: /workspace/github_cpp_makefile_star2_O3/jkingan[P]ladyheather/heather.cpp
// Function: show_queue_info()
void show_queue_info()
{
int row, col;
int j;
int adev_flag;
int color;
DATA_SIZE queue_time;

   // show the plot queue size and view interval settings
   if(first_key) return;
   if(zoom_screen == 'O') return;
   if(zoom_screen == 'H') return;

   col = FILTER_COL;
   if(text_mode) {
      row = TEXT_ROWS - 2;  // FILTER_ROW+3+eofs+1+3;
   }
   else if(zoom_screen == 'P') {
      col = ZOOM_LEFT + ZOOM_SPACE*2;
      row = 0;
   }
   else if(luxor) {
     row = VER_ROW+12;
     col = VER_COL;
   }
   else if(SCREEN_HEIGHT <= TINY_HEIGHT) {
      if(all_adevs && (adev_cols_shown > 2)) {
         row = MOUSE_ROW+2;
         if(pause_data) --row;
      }
      else row = MOUSE_ROW+1;
   }
   else {
      row = MOUSE_ROW+1;
   }

   j = row;
   if(luxor == 0) --j;
   queue_row = j;

   if(all_adevs && (adev_cols_shown > 2) && (SCREEN_WIDTH < WIDE_WIDTH)) {
       // aaawww
       sprintf(out, "                 ");
   }
   else if(zoom_screen == 'P') {
      if(pause_data) vidstr(j, col+ZOOM_SPACE*2, YELLOW, "UPDATES PAUSED   ");
      else           vidstr(j, col+ZOOM_SPACE*2, YELLOW, "                 ");
   }
   else if(pause_data) {
      vidstr(j, col, YELLOW, "UPDATES PAUSED   ");
      --j;
   }
   else {
      vidstr(j, col, YELLOW, "                 ");
      --j;
   }
   queue_row = j;

   #ifdef ADEV_STUFF
      if(all_adevs && (adev_cols_shown > 2) && (SCREEN_WIDTH < WIDE_WIDTH)) {
         // aaawww
         sprintf(out, "                    ");
      }
      else {
         adev_flag = 0;  // set to 0 if all adev periods are the same
         if(pps_adev_period != adev_period) adev_flag |= 0x01; // different channels have different adev periods
         if(osc_adev_period != adev_period) adev_flag |= 0x02;
         if(chc_adev_period != adev_period) adev_flag |= 0x04;
         if(chc_adev_period != adev_period) adev_flag |= 0x08;

         if(no_adev_flag) color = GREY;
         else if(adev_q_allocated == 0) color = GREY;
         else color = WHITE;

         if((adev_period <= 0.0) && (adev_flag == 0)) {  // aaaapppp
            if(luxor) sprintf(out, "                    ");
            else      sprintf(out, "ADEV:  OFF          ");
         }
         else if(adev_flag) {
            sprintf(out, "ADEVP: multiple   ");
         }
         else if(adev_period == 1.0) {
            sprintf(out, "ADEVQ: %ld pts ", adev_q_size);
         }
         else if(adev_period < 1.0)  sprintf(out, "ADEVP: %.3f secs    ", adev_period);
         else                        sprintf(out, "ADEVP: %.1f sec   ", adev_period);
         vidstr(j, col, color, out);
         if(zoom_screen == 'P') {
            col += ZOOM_SPACE;
         }
         else {
            --j;
            queue_row = j;
         }
      }
   #endif

   queue_time = (DATA_SIZE) (plot_q_size * queue_interval);
   queue_time /= nav_rate;
   if(all_adevs && (adev_cols_shown > 2) && (SCREEN_WIDTH < WIDE_WIDTH)) {
      // aaawww
      sprintf(out, "                    ");
   }
   else {
      if(queue_time >= (DATA_SIZE) (60.0*60.0*24.0)) sprintf(out, "PLOTQ: %.1f day  ", (DATA_SIZE) queue_time/(60.0*60.0*24.0));
      else if(queue_time >= (DATA_SIZE)(60.0*60.0))  sprintf(out, "PLOTQ: %.1f hr   ", (DATA_SIZE) queue_time/(60.0*60.0));
      else if(queue_time >= (DATA_SIZE)60.0)         sprintf(out, "PLOTQ: %.1f min  ", (DATA_SIZE) queue_time/60.0);
      else if(queue_time > (DATA_SIZE)0.0)           sprintf(out, "PLOTQ: %.1f sec  ", (DATA_SIZE) queue_time);
      else                                           sprintf(out, "PLOTQ: OFF          ");
      vidstr(j, col, WHITE, out);
   }

   if(luxor && (lat || lon)) show_sun_moon(j+2, col);

   if(zoom_screen == 'P') ;
   else --j;

   view_row = j;
   queue_row = j;
}

// Assembly:
cmpl $0x0, 0x2280ba(%rip)    # 0x23ef58
je 0x16ea1
retq
movzbl 0x2f5900(%rip), %eax    # 0x30c7a8
cmpl $0x48, %eax
je 0x16ea0
cmpl $0x4f, %eax
je 0x16ea0
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl 0x2018e2(%rip), %ebx    # 0x2187a4
cmpl $0x0, 0x20190f(%rip)    # 0x2187d8
je 0x16ede
movl 0x20193a(%rip), %r14d   # 0x21880c
addl $-0x2, %r14d
movb 0x228062(%rip), %cl     # 0x23ef3e
jmp 0x16f49
movb 0x22805a(%rip), %cl     # 0x23ef3e
cmpb $0x50, %al
jne 0x16ef2
xorl %r14d, %r14d
movl $0x28, %ebx
jmp 0x16f49
testb %cl, %cl
je 0x16f0b
movl 0x201897(%rip), %r14d   # 0x218794
addl $0xc, %r14d
movb $0x1, %cl
movl 0x20188f(%rip), %ebx    # 0x218798
jmp 0x16f49
cmpl $0x1e0, 0x2018ef(%rip)  # imm = 0x1E0
jg 0x16f3d
cmpb $0x0, 0x225e20(%rip)    # 0x23cd3e
movl 0x201883(%rip), %r14d   # 0x2187a8
je 0x16f44
cmpl $0x3, 0x225d5a(%rip)    # 0x23cc88
jl 0x16f44
cmpb $0x1, 0x2042fd(%rip)    # 0x21b234
adcl $0x1, %r14d
jmp 0x16f47
movl 0x201864(%rip), %r14d   # 0x2187a8
incl %r14d
xorl %ecx, %ecx
cmpb $0x1, %cl
sbbl $0x0, %r14d
movl %r14d, 0x201879(%rip)   # 0x2187d0
cmpb $0x0, 0x225de0(%rip)    # 0x23cd3e
je 0x16f8e
cmpl $0x3, 0x225d21(%rip)    # 0x23cc88
jl 0x16f8e
cmpl $0x4f9, 0x20188d(%rip)  # imm = 0x4F9
jg 0x16f8e
movups 0x11cbd8(%rip), %xmm0   # 0x133b54
movaps %xmm0, 0x32529d(%rip)   # 0x33c220
movw $0x20, 0x3252a4(%rip)   # 0x33c230
jmp 0x16fe8
movb 0x2042a0(%rip), %cl     # 0x21b234
cmpb $0x50, %al
jne 0x16fa8
leal 0x28(%rbx), %esi
testb %cl, %cl
je 0x16fb9
leaq 0xf39a2(%rip), %rcx     # 0x10a948
jmp 0x16fc0
leal -0x1(%r14), %r15d
testb %cl, %cl
je 0x16fcf
leaq 0xf3991(%rip), %rcx     # 0x10a948
jmp 0x16fd6
leaq 0x11cb94(%rip), %rcx    # 0x133b54
movl %r14d, %edi
movl $0xe, %edx
callq 0xe787
jmp 0x16fe8
leaq 0x11cb7e(%rip), %rcx    # 0x133b54
movl %r14d, %edi
movl %ebx, %esi
movl $0xe, %edx
callq 0xe787
movl %r15d, %r14d
movl %r14d, 0x2017e1(%rip)   # 0x2187d0
cmpb $0x0, 0x225d48(%rip)    # 0x23cd3e
je 0x17033
cmpl $0x3, 0x225c89(%rip)    # 0x23cc88
jl 0x17033
cmpl $0x4f9, 0x2017f5(%rip)  # imm = 0x4F9
jg 0x17033
movupd 0x11cb3c(%rip), %xmm0   # 0x133b51
movapd %xmm0, 0x325203(%rip)   # 0x33c220
movabsq $0x20202020202020, %rax # imm = 0x20202020202020
movq %rax, 0x3251ff(%rip)    # 0x33c22d
jmp 0x17155
movsd 0x225cc5(%rip), %xmm1   # 0x23cd00
movsd 0x225cb5(%rip), %xmm0   # 0x23ccf8
ucomisd %xmm0, %xmm1
setnp %al
sete %cl
andb %al, %cl
cmpl $0x0, 0x225c8a(%rip)    # 0x23cce0
movl $0x8, %eax
movl $0xf, %r15d
cmovel %eax, %r15d
cmpl $0x0, 0x225cc8(%rip)    # 0x23cd34
movsd 0x225c94(%rip), %xmm1   # 0x23cd08
cmovnel %eax, %r15d
cmpeqpd %xmm0, %xmm1
movsd 0x225c8b(%rip), %xmm2   # 0x23cd10
cmpeqpd %xmm0, %xmm2
andpd %xmm1, %xmm2
movd %xmm2, %eax
andb %cl, %al
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x170b5
testb %al, %al
je 0x170b5
cmpb $0x0, 0x227e95(%rip)    # 0x23ef3e
je 0x17107
movupd 0x11ca9e(%rip), %xmm0   # 0x133b51
jmp 0x1710f
testb %al, %al
je 0x170eb
ucomisd 0xf1faf(%rip), %xmm0    # 0x109070
jne 0x172b7
jp 0x172b7
movq 0x225c04(%rip), %rdx    # 0x23ccd8
leaq 0x325145(%rip), %rdi    # 0x33c220
leaq 0xf38a0(%rip), %rsi     # 0x10a982
xorl %eax, %eax
callq 0x9060
jmp 0x17128
movupd 0xf387c(%rip), %xmm0    # 0x10a96f
movapd %xmm0, 0x325125(%rip)   # 0x33c220
movl $0x202020, 0x32512a(%rip) # imm = 0x202020
jmp 0x17128
movupd 0xf384b(%rip), %xmm0    # 0x10a95a
movapd %xmm0, 0x325109(%rip)   # 0x33c220
movabsq $0x20202020202020, %rax # imm = 0x20202020202020
movq %rax, 0x325105(%rip)    # 0x33c22d
movzbl %r15b, %edx
leaq 0x3250ed(%rip), %rcx    # 0x33c220
movl %r14d, %edi
movl %ebx, %esi
callq 0xe787
cmpb $0x50, 0x2f5664(%rip)   # 0x30c7a8
jne 0x1714b
addl $0x14, %ebx
jmp 0x17155
decl %r14d
movl %r14d, 0x20167b(%rip)   # 0x2187d0
movq 0x20423c(%rip), %rax    # 0x21b398
imulq 0x2041bc(%rip), %rax    # 0x21b320
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
divsd 0x2041e4(%rip), %xmm0   # 0x21b358
cmpb $0x0, 0x225bc3(%rip)    # 0x23cd3e
je 0x171b8
cmpl $0x3, 0x225b04(%rip)    # 0x23cc88
jl 0x171b8
cmpl $0x4f9, 0x201670(%rip)  # imm = 0x4F9
jg 0x171b8
movupd 0x11c9b7(%rip), %xmm0   # 0x133b51
movapd %xmm0, 0x32507e(%rip)   # 0x33c220
movabsq $0x20202020202020, %rax # imm = 0x20202020202020
movq %rax, 0x32507a(%rip)    # 0x33c22d
jmp 0x17257
ucomisd 0xf1e58(%rip), %xmm0    # 0x109018
jae 0x171f4
ucomisd 0xf1e46(%rip), %xmm0    # 0x109010
jae 0x1720c
ucomisd 0xf1e34(%rip), %xmm0    # 0x109008
jae 0x17224
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe 0x172d5
leaq 0x325035(%rip), %rdi    # 0x33c220
leaq 0xf37fe(%rip), %rsi     # 0x10a9f0
jmp 0x1723a
divsd 0xf1e1c(%rip), %xmm0    # 0x109018
leaq 0x32501d(%rip), %rdi    # 0x33c220
leaq 0xf37b0(%rip), %rsi     # 0x10a9ba
jmp 0x1723a
divsd 0xf1dfc(%rip), %xmm0    # 0x109010
leaq 0x325005(%rip), %rdi    # 0x33c220
leaq 0xf37aa(%rip), %rsi     # 0x10a9cc
jmp 0x1723a
divsd 0xf1ddc(%rip), %xmm0    # 0x109008
leaq 0x324fed(%rip), %rdi    # 0x33c220
leaq 0xf37a4(%rip), %rsi     # 0x10a9de
movb $0x1, %al
callq 0x9060
leaq 0x324fd8(%rip), %rcx    # 0x33c220
movl %r14d, %edi
movl %ebx, %esi
movl $0xf, %edx
callq 0xe787
cmpb $0x0, 0x227ce0(%rip)    # 0x23ef3e
je 0x1728f
movsd 0x2f5d68(%rip), %xmm1   # 0x30cfd0
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm1
jne 0x17284
jp 0x17284
movsd 0x2f5d5c(%rip), %xmm1   # 0x30cfd8
ucomisd %xmm0, %xmm1
jne 0x17284
jnp 0x1728f
leal 0x2(%r14), %edi
movl %ebx, %esi
callq 0xae936
xorl %eax, %eax
cmpb $0x50, 0x2f5510(%rip)   # 0x30c7a8
setne %al
subl %eax, %r14d
movl %r14d, 0x201527(%rip)   # 0x2187cc
movl %r14d, 0x201524(%rip)   # 0x2187d0
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movsd 0xf1db1(%rip), %xmm1    # 0x109070
leaq 0x324f5a(%rip), %rdi    # 0x33c220
ucomisd %xmm0, %xmm1
jbe 0x172fb
leaq 0xf36bf(%rip), %rsi     # 0x10a992
jmp 0x17302
movupd 0xf3725(%rip), %xmm0    # 0x10aa02
movapd %xmm0, 0x324f3b(%rip)   # 0x33c220
movabsq $0x20202020202020, %rax # imm = 0x20202020202020
movq %rax, 0x324f37(%rip)    # 0x33c22d
jmp 0x17241
leaq 0xf36a5(%rip), %rsi     # 0x10a9a7
movb $0x1, %al
callq 0x9060
jmp 0x17128