// File: /workspace/github_cpp_makefile_star2_O2/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, 0x212a20(%rip)    # 0x228f58
je 0x1653b
retq
movzbl 0x2e0266(%rip), %eax    # 0x2f67a8
cmpl $0x48, %eax
je 0x1653a
cmpl $0x4f, %eax
je 0x1653a
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl 0x1ec247(%rip), %ebx    # 0x2027a4
cmpl $0x0, 0x1ec274(%rip)    # 0x2027d8
je 0x16579
movl 0x1ec29f(%rip), %r14d   # 0x20280c
addl $-0x2, %r14d
movb 0x2129c7(%rip), %cl     # 0x228f3e
jmp 0x165e2
movb 0x2129bf(%rip), %cl     # 0x228f3e
cmpb $0x50, %al
jne 0x1658b
xorl %r14d, %r14d
pushq $0x28
popq %rbx
jmp 0x165e2
testb %cl, %cl
je 0x165a4
movl 0x1ec1fe(%rip), %r14d   # 0x202794
addl $0xc, %r14d
movb $0x1, %cl
movl 0x1ec1f6(%rip), %ebx    # 0x202798
jmp 0x165e2
cmpl $0x1e0, 0x1ec256(%rip)  # imm = 0x1E0
jg 0x165d6
cmpb $0x0, 0x210787(%rip)    # 0x226d3e
movl 0x1ec1ea(%rip), %r14d   # 0x2027a8
je 0x165dd
cmpl $0x3, 0x2106c1(%rip)    # 0x226c88
jl 0x165dd
cmpb $0x1, 0x1eec64(%rip)    # 0x205234
adcl $0x1, %r14d
jmp 0x165e0
movl 0x1ec1cb(%rip), %r14d   # 0x2027a8
incl %r14d
xorl %ecx, %ecx
cmpb $0x1, %cl
sbbl $0x0, %r14d
movl %r14d, 0x1ec1e0(%rip)   # 0x2027d0
cmpb $0x0, 0x210747(%rip)    # 0x226d3e
je 0x16627
cmpl $0x3, 0x210688(%rip)    # 0x226c88
jl 0x16627
cmpl $0x4f9, 0x1ec1f4(%rip)  # imm = 0x4F9
jg 0x16627
movups 0x10745f(%rip), %xmm0   # 0x11da74
movaps %xmm0, 0x30fc04(%rip)   # 0x326220
movw $0x20, 0x30fc0b(%rip)   # 0x326230
jmp 0x1667d
movb 0x1eec07(%rip), %cl     # 0x205234
cmpb $0x50, %al
jne 0x16641
leal 0x28(%rbx), %esi
testb %cl, %cl
je 0x16652
leaq 0xde384(%rip), %rcx     # 0xf49c3
jmp 0x16659
leal -0x1(%r14), %r15d
testb %cl, %cl
je 0x16666
leaq 0xde373(%rip), %rcx     # 0xf49c3
jmp 0x1666d
leaq 0x10741b(%rip), %rcx    # 0x11da74
pushq $0xe
popq %rdx
movl %r14d, %edi
callq 0xe2d2
jmp 0x1667d
leaq 0x107407(%rip), %rcx    # 0x11da74
pushq $0xe
popq %rdx
movl %r14d, %edi
movl %ebx, %esi
callq 0xe2d2
movl %r15d, %r14d
movl %r14d, 0x1ec14c(%rip)   # 0x2027d0
cmpb $0x0, 0x2106b3(%rip)    # 0x226d3e
movabsq $0x20202020202020, %r15 # imm = 0x20202020202020
je 0x166c8
cmpl $0x3, 0x2105ea(%rip)    # 0x226c88
jl 0x166c8
cmpl $0x4f9, 0x1ec156(%rip)  # imm = 0x4F9
jg 0x166c8
movupd 0x1073bd(%rip), %xmm0   # 0x11da71
movapd %xmm0, 0x30fb64(%rip)   # 0x326220
movq %r15, 0x30fb6a(%rip)    # 0x32622d
jmp 0x167dc
movsd 0x210630(%rip), %xmm1   # 0x226d00
movsd 0x210620(%rip), %xmm0   # 0x226cf8
ucomisd %xmm0, %xmm1
setnp %al
sete %cl
andb %al, %cl
cmpl $0x0, 0x2105f5(%rip)    # 0x226ce0
pushq $0x8
popq %rax
pushq $0xf
popq %r12
cmovel %eax, %r12d
cmpl $0x0, 0x210637(%rip)    # 0x226d34
movsd 0x210603(%rip), %xmm1   # 0x226d08
cmovnel %eax, %r12d
cmpeqpd %xmm0, %xmm1
movsd 0x2105fa(%rip), %xmm2   # 0x226d10
cmpeqpd %xmm0, %xmm2
andpd %xmm1, %xmm2
movd %xmm2, %eax
andb %cl, %al
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jb 0x16746
testb %al, %al
je 0x16746
cmpb $0x0, 0x212804(%rip)    # 0x228f3e
je 0x16798
movupd 0x10732d(%rip), %xmm0   # 0x11da71
jmp 0x167a0
testb %al, %al
je 0x1677c
ucomisd 0xdc91e(%rip), %xmm0    # 0xf3070
jne 0x1692d
jp 0x1692d
movq 0x210573(%rip), %rdx    # 0x226cd8
leaq 0x30fab4(%rip), %rdi    # 0x326220
leaq 0xde28a(%rip), %rsi     # 0xf49fd
xorl %eax, %eax
callq 0x9060
jmp 0x167af
movupd 0xde266(%rip), %xmm0    # 0xf49ea
movapd %xmm0, 0x30fa94(%rip)   # 0x326220
movl $0x202020, 0x30fa99(%rip) # imm = 0x202020
jmp 0x167af
movupd 0xde235(%rip), %xmm0    # 0xf49d5
movapd %xmm0, 0x30fa78(%rip)   # 0x326220
movq %r15, 0x30fa7e(%rip)    # 0x32622d
movzbl %r12b, %edx
leaq 0x30fa66(%rip), %rcx    # 0x326220
movl %r14d, %edi
movl %ebx, %esi
callq 0xe2d2
cmpb $0x50, 0x2dffdd(%rip)   # 0x2f67a8
jne 0x167d2
addl $0x14, %ebx
jmp 0x167dc
decl %r14d
movl %r14d, 0x1ebff4(%rip)   # 0x2027d0
movq 0x1eebb5(%rip), %rax    # 0x205398
imulq 0x1eeb35(%rip), %rax    # 0x205320
cvtsi2sd %rax, %xmm0
divsd 0x1eeb60(%rip), %xmm0   # 0x205358
cmpb $0x0, 0x21053f(%rip)    # 0x226d3e
je 0x16832
cmpl $0x3, 0x210480(%rip)    # 0x226c88
jl 0x16832
cmpl $0x4f9, 0x1ebfec(%rip)  # imm = 0x4F9
jg 0x16832
movupd 0x107253(%rip), %xmm0   # 0x11da71
movapd %xmm0, 0x30f9fa(%rip)   # 0x326220
movq %r15, 0x30fa00(%rip)    # 0x32622d
jmp 0x168cf
ucomisd 0xdc7de(%rip), %xmm0    # 0xf3018
jae 0x1686e
ucomisd 0xdc7cc(%rip), %xmm0    # 0xf3010
jae 0x16886
ucomisd 0xdc7ba(%rip), %xmm0    # 0xf3008
jae 0x1689e
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe 0x1694b
leaq 0x30f9bb(%rip), %rdi    # 0x326220
leaq 0xde1ff(%rip), %rsi     # 0xf4a6b
jmp 0x168b4
divsd 0xdc7a2(%rip), %xmm0    # 0xf3018
leaq 0x30f9a3(%rip), %rdi    # 0x326220
leaq 0xde1b1(%rip), %rsi     # 0xf4a35
jmp 0x168b4
divsd 0xdc782(%rip), %xmm0    # 0xf3010
leaq 0x30f98b(%rip), %rdi    # 0x326220
leaq 0xde1ab(%rip), %rsi     # 0xf4a47
jmp 0x168b4
divsd 0xdc762(%rip), %xmm0    # 0xf3008
leaq 0x30f973(%rip), %rdi    # 0x326220
leaq 0xde1a5(%rip), %rsi     # 0xf4a59
movb $0x1, %al
callq 0x9060
leaq 0x30f95e(%rip), %rcx    # 0x326220
pushq $0xf
popq %rdx
movl %r14d, %edi
movl %ebx, %esi
callq 0xe2d2
cmpb $0x0, 0x212668(%rip)    # 0x228f3e
je 0x16907
movsd 0x2e06f0(%rip), %xmm1   # 0x2f6fd0
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm1
jne 0x168fc
jp 0x168fc
movsd 0x2e06e4(%rip), %xmm1   # 0x2f6fd8
ucomisd %xmm0, %xmm1
jne 0x168fc
jnp 0x16907
leal 0x2(%r14), %edi
movl %ebx, %esi
callq 0x9e891
xorl %eax, %eax
cmpb $0x50, 0x2dfe98(%rip)   # 0x2f67a8
setne %al
subl %eax, %r14d
movl %r14d, 0x1ebeaf(%rip)   # 0x2027cc
movl %r14d, 0x1ebeac(%rip)   # 0x2027d0
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movsd 0xdc73b(%rip), %xmm1    # 0xf3070
leaq 0x30f8e4(%rip), %rdi    # 0x326220
ucomisd %xmm0, %xmm1
jbe 0x16967
leaq 0xde0c4(%rip), %rsi     # 0xf4a0d
jmp 0x1696e
movupd 0xde12a(%rip), %xmm0    # 0xf4a7d
movapd %xmm0, 0x30f8c5(%rip)   # 0x326220
movq %r15, 0x30f8cb(%rip)    # 0x32622d
jmp 0x168bb
leaq 0xde0b4(%rip), %rsi     # 0xf4a22
movb $0x1, %al
callq 0x9060
jmp 0x167af