// File: /workspace/github_cpp_makefile_star2_O1/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, 0x201da4(%rip)    # 0x21b3cc
xorl %eax, %eax
movq %rax, 0x2f383f(%rip)    # 0x30ce70
movq %rax, 0x2f3830(%rip)    # 0x30ce68
movq %rax, 0x2f3841(%rip)    # 0x30ce80
movq %rax, 0x2f3832(%rip)    # 0x30ce78
cmpb $0x0, 0x2236f1(%rip)    # 0x23cd3e
je 0x19659
cmpb $0x0, 0x2236e7(%rip)    # 0x23cd3d
jne 0x19659
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 0x201be3(%rip), %rbx    # 0x21b268
cmpq 0x201c9c(%rip), %rbx    # 0x21b328
jne 0x19690
jmp 0x196fc
leaq 0x201c19(%rip), %r12    # 0x21b2b0
movq %rbx, %r14
movq %rbx, %rdi
callq 0x18609
movq %rbx, %rdi
movl $0x1, %esi
callq 0x114d6
movq %rax, %rbx
testq %rax, %rax
js 0x196fc
movq %r12, %r13
xorl %r15d, %r15d
cmpb $0x0, -0x38(%rbp,%r15)
je 0x196e6
movq (%r13), %rax
cmpq %rbx, %rax
jg 0x196e6
testq %rax, %rax
je 0x196e6
cmpq %r14, %rax
jl 0x196e6
movl %r15d, %edi
callq 0x16c14
movb $0x0, -0x38(%rbp,%r15)
incq %r15
addq $0x8, %r13
cmpq $0xa, %r15
jne 0x196bd
cmpq 0x201c2e(%rip), %rbx    # 0x21b328
jne 0x19697
movq %r14, 0x201b6d(%rip)    # 0x21b270
cmpq $0x0, 0x201c2d(%rip)    # 0x21b338
je 0x19730
cmpq $-0x2, %rbx
je 0x19736
cmpq 0x201c0e(%rip), %rbx    # 0x21b328
je 0x19736
movb $0x0, 0x322aff(%rip)    # 0x33c222
movw $0x2020, 0x322af4(%rip) # imm = 0x2020
xorl %eax, %eax
jmp 0x19755
cmpq $-0x2, %rbx
jne 0x1971c
leaq 0x322ae3(%rip), %rdi    # 0x33c220
leaq 0x1142d1(%rip), %rsi    # 0x12da15
movl $0x1a, %edx
xorl %eax, %eax
callq 0x9060
movl $0x1, %eax
movl %eax, 0x326e01(%rip)    # 0x34055c
movl 0x1ff12f(%rip), %edi    # 0x218890
movl 0x1ff099(%rip), %eax    # 0x218800
cltd
idivl 0x1ff0a2(%rip)          # 0x218810
decl %edi
leal -0x2(%rax), %esi
leaq 0x322aa6(%rip), %rcx    # 0x33c220
movl $0xf, %edx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xe7d0