// File: /workspace/github_cpp_makefile_star2_O2/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:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
andl $0x0, 0x1ec87b(%rip)    # 0x2053cc
andq $0x0, 0x2de317(%rip)    # 0x2f6e70
andq $0x0, 0x2de307(%rip)    # 0x2f6e68
andq $0x0, 0x2de317(%rip)    # 0x2f6e80
andq $0x0, 0x2de307(%rip)    # 0x2f6e78
cmpb $0x0, 0x20e1c6(%rip)    # 0x226d3e
je 0x18b92
cmpb $0x0, 0x20e1bc(%rip)    # 0x226d3d
jne 0x18b92
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %eax, %eax
cmpq $0xa, %rax
je 0x18ba4
movb $0x1, -0x32(%rbp,%rax)
incq %rax
jmp 0x18b94
movq 0x1ec6bd(%rip), %r14    # 0x205268
pushq $0x1
popq %rbx
movq %r14, %r15
cmpq 0x1ec770(%rip), %r14    # 0x205328
je 0x18c1b
movq %r15, %rdi
callq 0x17b5b
movq %r15, %rdi
movl %ebx, %esi
callq 0x10d47
movq %rax, %r14
testq %rax, %rax
js 0x18c20
leaq 0x1ec6d5(%rip), %r13    # 0x2052b0
xorl %r12d, %r12d
cmpq $0xa, %r12
je 0x18c16
cmpb $0x0, -0x32(%rbp,%r12)
je 0x18c0d
movq (%r13), %rax
cmpq %r14, %rax
jg 0x18c0d
testq %rax, %rax
je 0x18c0d
cmpq %r15, %rax
jl 0x18c0d
movl %r12d, %edi
callq 0x162c9
movb $0x0, -0x32(%rbp,%r12)
incq %r12
addq $0x8, %r13
jmp 0x18bde
movq %r15, %rax
jmp 0x18bae
movq %r15, %r14
jmp 0x18c23
movq %r15, %rax
movq %rax, 0x1ec646(%rip)    # 0x205270
cmpq $0x0, 0x1ec706(%rip)    # 0x205338
je 0x18c57
cmpq $-0x2, %r14
je 0x18c5d
cmpq 0x1ec6e7(%rip), %r14    # 0x205328
je 0x18c5d
movb $0x0, 0x30d5d8(%rip)    # 0x326222
movw $0x2020, 0x30d5cd(%rip) # imm = 0x2020
xorl %ebx, %ebx
jmp 0x18c75
cmpq $-0x2, %r14
jne 0x18c43
leaq 0x30d5bc(%rip), %rdi    # 0x326220
leaq 0xfedba(%rip), %rsi     # 0x117a25
pushq $0x1a
popq %rdx
xorl %eax, %eax
callq 0x9060
movl %ebx, 0x3118e1(%rip)    # 0x32a55c
movl 0x1e9c0f(%rip), %edi    # 0x202890
decl %edi
movl 0x1e9b77(%rip), %eax    # 0x202800
cltd
idivl 0x1e9b80(%rip)          # 0x202810
leal -0x2(%rax), %esi
leaq 0x30d586(%rip), %rcx    # 0x326220
pushq $0xf
popq %rdx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xe2d2