// File: /workspace/github_cpp_makefile_star2_O1/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, 0x2280cc(%rip)    # 0x23ef58
je 0x16e8f
retq
movzbl 0x2f5912(%rip), %eax    # 0x30c7a8
cmpl $0x48, %eax
je 0x16e8e
cmpl $0x4f, %eax
je 0x16e8e
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl 0x2018f4(%rip), %ebx    # 0x2187a4
cmpl $0x0, 0x201921(%rip)    # 0x2187d8
je 0x16ec6
movl 0x20194c(%rip), %r14d   # 0x21880c
addl $-0x2, %r14d
jmp 0x16f2c
cmpb $0x50, %al
jne 0x16ed4
movl $0x28, %ebx
xorl %r14d, %r14d
jmp 0x16f2c
cmpb $0x0, 0x228063(%rip)    # 0x23ef3e
je 0x16ef0
movl 0x2018b0(%rip), %r14d   # 0x218794
addl $0xc, %r14d
movl 0x2018aa(%rip), %ebx    # 0x218798
jmp 0x16f2c
cmpl $0x1e0, 0x20190a(%rip)  # imm = 0x1E0
jg 0x16f22
cmpb $0x0, 0x225e3b(%rip)    # 0x23cd3e
movl 0x20189e(%rip), %r14d   # 0x2187a8
je 0x16f29
cmpl $0x3, 0x225d75(%rip)    # 0x23cc88
jl 0x16f29
cmpb $0x1, 0x204318(%rip)    # 0x21b234
adcl $0x1, %r14d
jmp 0x16f2c
movl 0x20187f(%rip), %r14d   # 0x2187a8
incl %r14d
cmpb $0x1, 0x22800b(%rip)    # 0x23ef3e
sbbl $0x0, %r14d
movl %r14d, 0x201892(%rip)   # 0x2187d0
cmpb $0x0, 0x225df9(%rip)    # 0x23cd3e
je 0x16f75
cmpl $0x3, 0x225d3a(%rip)    # 0x23cc88
jl 0x16f75
cmpl $0x4f9, 0x2018a6(%rip)  # imm = 0x4F9
jg 0x16f75
movups 0x11cb01(%rip), %xmm0   # 0x133a64
movaps %xmm0, 0x3252b6(%rip)   # 0x33c220
movw $0x20, 0x3252bd(%rip)   # 0x33c230
jmp 0x16fcf
movb 0x2042b9(%rip), %cl     # 0x21b234
cmpb $0x50, %al
jne 0x16f8f
leal 0x28(%rbx), %esi
testb %cl, %cl
je 0x16fa0
leaq 0xf39ab(%rip), %rcx     # 0x10a938
jmp 0x16fa7
leal -0x1(%r14), %r15d
testb %cl, %cl
je 0x16fb6
leaq 0xf399a(%rip), %rcx     # 0x10a938
jmp 0x16fbd
leaq 0x11cabd(%rip), %rcx    # 0x133a64
movl %r14d, %edi
movl $0xe, %edx
callq 0xe7d0
jmp 0x16fcf
leaq 0x11caa7(%rip), %rcx    # 0x133a64
movl %r14d, %edi
movl %ebx, %esi
movl $0xe, %edx
callq 0xe7d0
movl %r15d, %r14d
movl %r14d, 0x2017fa(%rip)   # 0x2187d0
cmpb $0x0, 0x225d61(%rip)    # 0x23cd3e
je 0x1701a
cmpl $0x3, 0x225ca2(%rip)    # 0x23cc88
jl 0x1701a
cmpl $0x4f9, 0x20180e(%rip)  # imm = 0x4F9
jg 0x1701a
movupd 0x11ca65(%rip), %xmm0   # 0x133a61
movapd %xmm0, 0x32521c(%rip)   # 0x33c220
movabsq $0x20202020202020, %rax # imm = 0x20202020202020
movq %rax, 0x325218(%rip)    # 0x33c22d
jmp 0x1713c
movsd 0x225cde(%rip), %xmm1   # 0x23cd00
movsd 0x225cce(%rip), %xmm0   # 0x23ccf8
ucomisd %xmm0, %xmm1
setnp %al
sete %cl
andb %al, %cl
cmpl $0x0, 0x225ca3(%rip)    # 0x23cce0
movl $0x8, %eax
movl $0xf, %r15d
cmovel %eax, %r15d
cmpl $0x0, 0x225ce1(%rip)    # 0x23cd34
movsd 0x225cad(%rip), %xmm1   # 0x23cd08
cmovnel %eax, %r15d
cmpeqpd %xmm0, %xmm1
movsd 0x225ca4(%rip), %xmm2   # 0x23cd10
cmpeqpd %xmm0, %xmm2
andpd %xmm1, %xmm2
movd %xmm2, %eax
andb %cl, %al
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x1709c
testb %al, %al
je 0x1709c
cmpb $0x0, 0x227eae(%rip)    # 0x23ef3e
je 0x170ee
movupd 0x11c9c7(%rip), %xmm0   # 0x133a61
jmp 0x170f6
testb %al, %al
je 0x170d2
ucomisd 0xf1fc8(%rip), %xmm0    # 0x109070
jne 0x1729e
jp 0x1729e
movq 0x225c1d(%rip), %rdx    # 0x23ccd8
leaq 0x32515e(%rip), %rdi    # 0x33c220
leaq 0xf38a9(%rip), %rsi     # 0x10a972
xorl %eax, %eax
callq 0x9060
jmp 0x1710f
movupd 0xf3885(%rip), %xmm0    # 0x10a95f
movapd %xmm0, 0x32513e(%rip)   # 0x33c220
movl $0x202020, 0x325143(%rip) # imm = 0x202020
jmp 0x1710f
movupd 0xf3854(%rip), %xmm0    # 0x10a94a
movapd %xmm0, 0x325122(%rip)   # 0x33c220
movabsq $0x20202020202020, %rax # imm = 0x20202020202020
movq %rax, 0x32511e(%rip)    # 0x33c22d
movzbl %r15b, %edx
leaq 0x325106(%rip), %rcx    # 0x33c220
movl %r14d, %edi
movl %ebx, %esi
callq 0xe7d0
cmpb $0x50, 0x2f567d(%rip)   # 0x30c7a8
jne 0x17132
addl $0x14, %ebx
jmp 0x1713c
decl %r14d
movl %r14d, 0x201694(%rip)   # 0x2187d0
movq 0x204255(%rip), %rax    # 0x21b398
imulq 0x2041d5(%rip), %rax    # 0x21b320
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
divsd 0x2041fd(%rip), %xmm0   # 0x21b358
cmpb $0x0, 0x225bdc(%rip)    # 0x23cd3e
je 0x1719f
cmpl $0x3, 0x225b1d(%rip)    # 0x23cc88
jl 0x1719f
cmpl $0x4f9, 0x201689(%rip)  # imm = 0x4F9
jg 0x1719f
movupd 0x11c8e0(%rip), %xmm0   # 0x133a61
movapd %xmm0, 0x325097(%rip)   # 0x33c220
movabsq $0x20202020202020, %rax # imm = 0x20202020202020
movq %rax, 0x325093(%rip)    # 0x33c22d
jmp 0x1723e
ucomisd 0xf1e71(%rip), %xmm0    # 0x109018
jae 0x171db
ucomisd 0xf1e5f(%rip), %xmm0    # 0x109010
jae 0x171f3
ucomisd 0xf1e4d(%rip), %xmm0    # 0x109008
jae 0x1720b
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe 0x172bc
leaq 0x32504e(%rip), %rdi    # 0x33c220
leaq 0xf3807(%rip), %rsi     # 0x10a9e0
jmp 0x17221
divsd 0xf1e35(%rip), %xmm0    # 0x109018
leaq 0x325036(%rip), %rdi    # 0x33c220
leaq 0xf37b9(%rip), %rsi     # 0x10a9aa
jmp 0x17221
divsd 0xf1e15(%rip), %xmm0    # 0x109010
leaq 0x32501e(%rip), %rdi    # 0x33c220
leaq 0xf37b3(%rip), %rsi     # 0x10a9bc
jmp 0x17221
divsd 0xf1df5(%rip), %xmm0    # 0x109008
leaq 0x325006(%rip), %rdi    # 0x33c220
leaq 0xf37ad(%rip), %rsi     # 0x10a9ce
movb $0x1, %al
callq 0x9060
leaq 0x324ff1(%rip), %rcx    # 0x33c220
movl %r14d, %edi
movl %ebx, %esi
movl $0xf, %edx
callq 0xe7d0
cmpb $0x0, 0x227cf9(%rip)    # 0x23ef3e
je 0x17276
movsd 0x2f5d81(%rip), %xmm1   # 0x30cfd0
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm1
jne 0x1726b
jp 0x1726b
movsd 0x2f5d75(%rip), %xmm1   # 0x30cfd8
ucomisd %xmm0, %xmm1
jne 0x1726b
jnp 0x17276
leal 0x2(%r14), %edi
movl %ebx, %esi
callq 0xae682
xorl %eax, %eax
cmpb $0x50, 0x2f5529(%rip)   # 0x30c7a8
setne %al
subl %eax, %r14d
movl %r14d, 0x201540(%rip)   # 0x2187cc
movl %r14d, 0x20153d(%rip)   # 0x2187d0
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movsd 0xf1dca(%rip), %xmm1    # 0x109070
leaq 0x324f73(%rip), %rdi    # 0x33c220
ucomisd %xmm0, %xmm1
jbe 0x172e2
leaq 0xf36c8(%rip), %rsi     # 0x10a982
jmp 0x172e9
movupd 0xf372e(%rip), %xmm0    # 0x10a9f2
movapd %xmm0, 0x324f54(%rip)   # 0x33c220
movabsq $0x20202020202020, %rax # imm = 0x20202020202020
movq %rax, 0x324f50(%rip)    # 0x33c22d
jmp 0x17228
leaq 0xf36ae(%rip), %rsi     # 0x10a997
movb $0x1, %al
callq 0x9060
jmp 0x1710f