// File: /workspace/github_cpp_makefile_star2_O3/jkingan[P]ladyheather/heather.cpp
// Function: show_title()
void show_title()
{
int row, col;
int color;

   if(showing_help) return;
   if(zoom_screen == 'O') return;
   if(zoom_screen == 'H') return;

   if(text_mode) {
      row = TEXT_ROWS-1;
      col = 0;
      no_x_margin = no_y_margin = 1;  // mmmmmmmm
   }
   else {
      if(zoom_screen) {
         row = (SCREEN_HEIGHT-1-(TEXT_HEIGHT-1));
      }
      else {
         row = (PLOT_ROW+PLOT_HEIGHT);
      }

      row /= TEXT_HEIGHT;
      row *= TEXT_HEIGHT;
      row = (row / TEXT_HEIGHT) - 1;
//    if(zoom_screen == 'P') row -= 1;
      col = PLOT_TEXT_COL + 1;
   }

   if(plot_title[0]) {
      format_plot_title(plot_title);
      vidstr(row, col, TITLE_COLOR, out);
      if(rcvr_type == NO_RCVR) ;
      else if((text_mode == 0) && (zoom_screen == 0)) {
         line(PLOT_COL,PLOT_ROW+PLOT_HEIGHT-1,  PLOT_COL+PLOT_WIDTH,PLOT_ROW+PLOT_HEIGHT-1, WHITE);
      }
   }

   if(0 && rpn_mode && (zoom_screen == 0)) {
      rpn_show();
   }

   if(text_mode) return;
   if(zoom_screen == 'P');
   else if(zoom_screen) return;
   else if(first_key) return;

   if(debug_text[0]) {  // !!!!! should we format_plot_title() debug messages?
      if(show_mah) vidstr(row-1, col, WHITE, debug_text);
      else         vidstr(row-1, col, GREEN, debug_text);
   }
   if(debug_text2[0]) {
      vidstr(row-2, col, YELLOW, debug_text2);
   }
   if(debug_text3[0]) {
      vidstr(row-3, col, CYAN, debug_text3);
   }
   if(debug_text4[0]) {
      vidstr(row-4, col, BLUE, debug_text4);
   }
   if(debug_text5[0]) {
      vidstr(row-5, col, MAGENTA, debug_text5);
   }
   if(debug_text6[0]) {
      vidstr(row-6, col, RED, debug_text6);
   }
   if(debug_text7[0]) {
      vidstr(row-7, col, BROWN, debug_text7);
   }

   if(filter_count) {
      if(disp_filter_type == 'P') {
         if(filter_count < 0) sprintf(out, "Peak filter: [%ld]", disp_filter_size());
         else                 sprintf(out, "Peak filter: %ld", disp_filter_size());
      }
      else if(disp_filter_type == 'B') {
         if(filter_count < 0) sprintf(out, "Back filter: [%ld]", disp_filter_size());
         else                 sprintf(out, "Back filter: %ld", disp_filter_size());
      }
      else if(disp_filter_type == 'C') {
         if(filter_count < 0) sprintf(out, "Center filter: [%ld]", disp_filter_size());
         else                 sprintf(out, "Center filter: %ld", disp_filter_size());
      }
      else if(disp_filter_type == 'F') {
         if(filter_count < 0) sprintf(out, "Fwd filter: [%ld]", disp_filter_size());
         else                 sprintf(out, "Fwd filter: %ld", disp_filter_size());
      }
      else {
         if(filter_count < 0) sprintf(out, "Filter: [%ld]", disp_filter_size());
         else                 sprintf(out, "Filter: %ld", disp_filter_size());
      }

      graphics_coords = 1;
      color = WHITE;
      if(plot_adev_data) {
         vidstr((PLOT_ROW+TEXT_HEIGHT), PLOT_COL+2, color, out);
      }
      else {
         vidstr((PLOT_ROW+2), PLOT_COL+2, color, out);
      }
      graphics_coords = 0;
   }
}

// Assembly:
cmpb $0x0, 0x2008f4(%rip)    # 0x2187b0
je 0x17ebf
retq
movzbl 0x2f48e2(%rip), %eax    # 0x30c7a8
cmpl $0x48, %eax
je 0x17ebe
cmpl $0x4f, %eax
je 0x17ebe
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl 0x2008f8(%rip), %ecx    # 0x2187d8
testl %ecx, %ecx
je 0x17efd
movl 0x200922(%rip), %ebx    # 0x21880c
movb $0x1, %al
movb %al, 0x200969(%rip)     # 0x21885b
movb %al, 0x200962(%rip)     # 0x21885a
xorl %r14d, %r14d
jmp 0x17f32
testb %al, %al
je 0x17f11
movl 0x2008fd(%rip), %eax    # 0x218804
movl 0x200907(%rip), %esi    # 0x218814
subl %esi, %eax
jmp 0x17f23
movl 0x200971(%rip), %eax    # 0x218888
addl 0x20095f(%rip), %eax    # 0x21887c
movl 0x2008f1(%rip), %esi    # 0x218814
cltd
idivl %esi
movl %eax, %ebx
movl 0x20095d(%rip), %r14d   # 0x21888c
incl %r14d
cmpb $0x0, 0x326917(%rip)    # 0x33e850
je 0x17fb3
leal -0x1(%rbx), %r15d
leaq 0x32690a(%rip), %rdi    # 0x33e850
callq 0x17d10
leaq 0x3242ce(%rip), %rcx    # 0x33c220
movl %r15d, %edi
movl %r14d, %esi
movl $0xf, %edx
callq 0xe787
cmpq $0x400, 0x200963(%rip) # imm = 0x400
movl 0x200865(%rip), %ecx    # 0x2187d8
je 0x17fb3
testl %ecx, %ecx
jne 0x17fb3
cmpb $0x0, 0x2f4828(%rip)    # 0x30c7a8
jne 0x17fb3
movl 0x2008f8(%rip), %edi    # 0x218880
movl 0x2008ee(%rip), %eax    # 0x21887c
movl 0x2008f4(%rip), %ecx    # 0x218888
addl %eax, %ecx
decl %ecx
movl 0x2008e6(%rip), %edx    # 0x218884
addl %edi, %edx
movl %ecx, %esi
movl $0xf, %r8d
callq 0xe38a
movl 0x200825(%rip), %ecx    # 0x2187d8
testl %ecx, %ecx
je 0x17fc2
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movzbl 0x2f47df(%rip), %eax    # 0x30c7a8
cmpl $0x50, %eax
je 0x17fdb
testl %eax, %eax
jne 0x17fb7
cmpl $0x0, 0x226f7f(%rip)    # 0x23ef58
jne 0x17fb7
cmpb $0x0, 0x3269be(%rip)    # 0x33e9a0
je 0x18008
xorl %eax, %eax
cmpb $0x0, 0x2f4e77(%rip)    # 0x30ce64
setne %al
leal -0x2(%rbx), %edi
leal (%rax,%rax,4), %edx
addl $0xa, %edx
leaq 0x3269a0(%rip), %rcx    # 0x33e9a0
movl %r14d, %esi
callq 0xe787
cmpb $0x0, 0x326ae1(%rip)    # 0x33eaf0
je 0x18028
leal -0x3(%rbx), %edi
leaq 0x326ad5(%rip), %rcx    # 0x33eaf0
movl %r14d, %esi
movl $0xe, %edx
callq 0xe787
cmpb $0x0, 0x326c11(%rip)    # 0x33ec40
je 0x18048
leal -0x4(%rbx), %edi
leaq 0x326c05(%rip), %rcx    # 0x33ec40
movl %r14d, %esi
movl $0xb, %edx
callq 0xe787
cmpb $0x0, 0x326d41(%rip)    # 0x33ed90
je 0x18068
leal -0x5(%rbx), %edi
leaq 0x326d35(%rip), %rcx    # 0x33ed90
movl %r14d, %esi
movl $0x9, %edx
callq 0xe787
cmpb $0x0, 0x326e71(%rip)    # 0x33eee0
je 0x18088
leal -0x6(%rbx), %edi
leaq 0x326e65(%rip), %rcx    # 0x33eee0
movl %r14d, %esi
movl $0xd, %edx
callq 0xe787
cmpb $0x0, 0x326fa1(%rip)    # 0x33f030
je 0x180a8
leal -0x7(%rbx), %edi
leaq 0x326f95(%rip), %rcx    # 0x33f030
movl %r14d, %esi
movl $0xc, %edx
callq 0xe787
cmpb $0x0, 0x3270d1(%rip)    # 0x33f180
je 0x180ca
addl $-0x8, %ebx
leaq 0x3270c5(%rip), %rcx    # 0x33f180
movl %ebx, %edi
movl %r14d, %esi
movl $0x6, %edx
callq 0xe787
movq 0x20339f(%rip), %rbx    # 0x21b470
testq %rbx, %rbx
je 0x17fb7
movl 0x203397(%rip), %r14d   # 0x21b478
callq 0x1155b
cmpl $0x45, %r14d
jg 0x1810b
cmpl $0x42, %r14d
je 0x1813d
cmpl $0x43, %r14d
jne 0x1812a
testq %rbx, %rbx
leaq 0xf2a22(%rip), %rcx     # 0x10ab24
leaq 0xf2a30(%rip), %rsi     # 0x10ab39
jmp 0x18161
cmpl $0x46, %r14d
je 0x18150
cmpl $0x50, %r14d
jne 0x1812a
testq %rbx, %rbx
leaq 0xf29bb(%rip), %rcx     # 0x10aadc
leaq 0xf29c7(%rip), %rsi     # 0x10aaef
jmp 0x18161
testq %rbx, %rbx
leaq 0xf2a3a(%rip), %rcx     # 0x10ab6e
leaq 0xf2a41(%rip), %rsi     # 0x10ab7c
jmp 0x18161
testq %rbx, %rbx
leaq 0xf29b9(%rip), %rcx     # 0x10ab00
leaq 0xf29c5(%rip), %rsi     # 0x10ab13
jmp 0x18161
testq %rbx, %rbx
leaq 0xf29f2(%rip), %rcx     # 0x10ab4c
leaq 0xf29fd(%rip), %rsi     # 0x10ab5e
cmovsq %rcx, %rsi
leaq 0x3240b4(%rip), %rbx    # 0x33c220
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x9060
movb $0x1, 0x2006e8(%rip)    # 0x218868
cmpb $0x0, 0x203252(%rip)    # 0x21b3d9
movl $0x2, %edi
je 0x18194
movl 0x200680(%rip), %edi    # 0x218814
addl 0x2006e2(%rip), %edi    # 0x21887c
movl 0x2006e0(%rip), %esi    # 0x218880
addl $0x2, %esi
movl $0xf, %edx
movq %rbx, %rcx
callq 0xe787
movb $0x0, 0x2006b1(%rip)    # 0x218868
jmp 0x17fb7