// File: /workspace/github_cpp_makefile_star2_O3/jkingan[P]ladyheather/heather.cpp
// Function: plot_queue_data()
void plot_queue_data()
{
long i;
long last_i;
int j;
u08 ticker[MAX_MARKER];

   //  plot the data points
   plot_column = 0;

   batt_mah = batt_mwh = 0.0F;
   load_mah = load_mwh = 0.0F;

   if((all_adevs == SINGLE_ADEVS) || mixed_adevs) {
      for(j=0; j<MAX_MARKER; j++) { // prepare to find what marked points are shown
         ticker[j] = 1;
      }

      i = plot_q_col0;
      while(i != plot_q_in) {  // plot the data that is in the queue
         plot_entry(i);        // plot the data values

         last_i = i;           // go to next point to plot
         i = next_q_point(i, STOP_AT_PLOT_END);
         if(i < 0) break;      // end of plot data reached

         for(j=0; j<MAX_MARKER; j++) {  // see if the queue entry is marked
            if(ticker[j] && mark_q_entry[j] && (mark_q_entry[j] >= last_i) && (mark_q_entry[j] <= i)) {
               plot_mark(j);
               ticker[j] = 0;
            }
         }
      }
      plot_q_last_col = last_i;

      // see if we have more data in the queue that can be plotted
      if((plot_q_count && (i == plot_q_in)) || (i == (-2L))) {  // more data is available
         sprintf(out, " %c", RIGHT_ARROW);
         right_arrow = 1;
      }
      else {
         sprintf(out, "  ");
         right_arrow = 0;
      }
      vidstr(PLOT_TEXT_ROW-1, (SCREEN_WIDTH/TEXT_WIDTH)-2, WHITE, out);
   }
}

// Assembly:
movl $0x0, 0x201d88(%rip)    # 0x21b3cc
xorl %eax, %eax
movq %rax, 0x2f3823(%rip)    # 0x30ce70
movq %rax, 0x2f3814(%rip)    # 0x30ce68
movq %rax, 0x2f3825(%rip)    # 0x30ce80
movq %rax, 0x2f3816(%rip)    # 0x30ce78
cmpb $0x0, 0x2236d5(%rip)    # 0x23cd3e
je 0x19675
cmpb $0x0, 0x2236cb(%rip)    # 0x23cd3d
jne 0x19675
retq
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movabsq $0x101010101010101, %rax # imm = 0x101010101010101
movq %rax, -0x38(%rbp)
movw $0x101, -0x30(%rbp)     # imm = 0x101
movq 0x201bc7(%rip), %rbx    # 0x21b268
cmpq 0x201c80(%rip), %rbx    # 0x21b328
jne 0x196ac
jmp 0x19718
leaq 0x201bfd(%rip), %r12    # 0x21b2b0
movq %rbx, %r14
movq %rbx, %rdi
callq 0x18619
movq %rbx, %rdi
movl $0x1, %esi
callq 0x1144e
movq %rax, %rbx
testq %rax, %rax
js 0x19718
movq %r12, %r13
xorl %r15d, %r15d
cmpb $0x0, -0x38(%rbp,%r15)
je 0x19702
movq (%r13), %rax
cmpq %rbx, %rax
jg 0x19702
testq %rax, %rax
je 0x19702
cmpq %r14, %rax
jl 0x19702
movl %r15d, %edi
callq 0x16c26
movb $0x0, -0x38(%rbp,%r15)
incq %r15
addq $0x8, %r13
cmpq $0xa, %r15
jne 0x196d9
cmpq 0x201c12(%rip), %rbx    # 0x21b328
jne 0x196b3
movq %r14, 0x201b51(%rip)    # 0x21b270
cmpq $0x0, 0x201c11(%rip)    # 0x21b338
je 0x1974c
cmpq $-0x2, %rbx
je 0x19752
cmpq 0x201bf2(%rip), %rbx    # 0x21b328
je 0x19752
movb $0x0, 0x322ae3(%rip)    # 0x33c222
movw $0x2020, 0x322ad8(%rip) # imm = 0x2020
xorl %eax, %eax
jmp 0x19771
cmpq $-0x2, %rbx
jne 0x19738
leaq 0x322ac7(%rip), %rdi    # 0x33c220
leaq 0x1143a5(%rip), %rsi    # 0x12db05
movl $0x1a, %edx
xorl %eax, %eax
callq 0x9060
movl $0x1, %eax
movl %eax, 0x326de5(%rip)    # 0x34055c
movl 0x1ff113(%rip), %edi    # 0x218890
movl 0x1ff07d(%rip), %eax    # 0x218800
cltd
idivl 0x1ff086(%rip)          # 0x218810
decl %edi
leal -0x2(%rax), %esi
leaq 0x322a8a(%rip), %rcx    # 0x33c220
movl $0xf, %edx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xe787