// File: /workspace/github_cpp_makefile_star2_O1/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, 0x20092a(%rip)    # 0x2187b0
je 0x17e89
retq
movzbl 0x2f4918(%rip), %eax    # 0x30c7a8
cmpl $0x48, %eax
je 0x17e88
cmpl $0x4f, %eax
je 0x17e88
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
cmpl $0x0, 0x20092d(%rip)    # 0x2187d8
je 0x17ec6
movl 0x200959(%rip), %ebx    # 0x21880c
movb $0x1, %al
movb %al, 0x2009a0(%rip)     # 0x21885b
movb %al, 0x200999(%rip)     # 0x21885a
xorl %r14d, %r14d
jmp 0x17ef7
testb %al, %al
je 0x17ed8
movl 0x200934(%rip), %eax    # 0x218804
subl 0x20093e(%rip), %eax    # 0x218814
jmp 0x17ee4
movl 0x2009aa(%rip), %eax    # 0x218888
addl 0x200998(%rip), %eax    # 0x21887c
cltd
idivl 0x200929(%rip)          # 0x218814
movl %eax, %ebx
movl 0x200998(%rip), %r14d   # 0x21888c
incl %r14d
cmpb $0x0, 0x326952(%rip)    # 0x33e850
je 0x17f71
leal -0x1(%rbx), %r15d
leaq 0x326945(%rip), %rdi    # 0x33e850
callq 0x17cda
leaq 0x324309(%rip), %rcx    # 0x33c220
movl %r15d, %edi
movl %r14d, %esi
movl $0xf, %edx
callq 0xe7d0
cmpq $0x400, 0x20099e(%rip) # imm = 0x400
je 0x17f71
cmpl $0x0, 0x20089d(%rip)    # 0x2187d8
jne 0x17f71
cmpb $0x0, 0x2f4864(%rip)    # 0x30c7a8
jne 0x17f71
movl 0x200934(%rip), %edi    # 0x218880
movl 0x20092a(%rip), %eax    # 0x21887c
movl 0x200930(%rip), %ecx    # 0x218888
addl %eax, %ecx
decl %ecx
movl 0x200922(%rip), %edx    # 0x218884
addl %edi, %edx
movl %ecx, %esi
movl $0xf, %r8d
callq 0xe3c3
cmpl $0x0, 0x200860(%rip)    # 0x2187d8
je 0x17f85
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movzbl 0x2f481c(%rip), %eax    # 0x30c7a8
cmpl $0x50, %eax
je 0x17f9e
testl %eax, %eax
jne 0x17f7a
cmpl $0x0, 0x226fbc(%rip)    # 0x23ef58
jne 0x17f7a
cmpb $0x0, 0x3269fb(%rip)    # 0x33e9a0
je 0x17fcb
xorl %eax, %eax
cmpb $0x0, 0x2f4eb4(%rip)    # 0x30ce64
setne %al
leal -0x2(%rbx), %edi
leal (%rax,%rax,4), %edx
addl $0xa, %edx
leaq 0x3269dd(%rip), %rcx    # 0x33e9a0
movl %r14d, %esi
callq 0xe7d0
cmpb $0x0, 0x326b1e(%rip)    # 0x33eaf0
je 0x17feb
leal -0x3(%rbx), %edi
leaq 0x326b12(%rip), %rcx    # 0x33eaf0
movl %r14d, %esi
movl $0xe, %edx
callq 0xe7d0
cmpb $0x0, 0x326c4e(%rip)    # 0x33ec40
je 0x1800b
leal -0x4(%rbx), %edi
leaq 0x326c42(%rip), %rcx    # 0x33ec40
movl %r14d, %esi
movl $0xb, %edx
callq 0xe7d0
cmpb $0x0, 0x326d7e(%rip)    # 0x33ed90
je 0x1802b
leal -0x5(%rbx), %edi
leaq 0x326d72(%rip), %rcx    # 0x33ed90
movl %r14d, %esi
movl $0x9, %edx
callq 0xe7d0
cmpb $0x0, 0x326eae(%rip)    # 0x33eee0
je 0x1804b
leal -0x6(%rbx), %edi
leaq 0x326ea2(%rip), %rcx    # 0x33eee0
movl %r14d, %esi
movl $0xd, %edx
callq 0xe7d0
cmpb $0x0, 0x326fde(%rip)    # 0x33f030
je 0x1806b
leal -0x7(%rbx), %edi
leaq 0x326fd2(%rip), %rcx    # 0x33f030
movl %r14d, %esi
movl $0xc, %edx
callq 0xe7d0
cmpb $0x0, 0x32710e(%rip)    # 0x33f180
je 0x1808d
addl $-0x8, %ebx
leaq 0x327102(%rip), %rcx    # 0x33f180
movl %ebx, %edi
movl %r14d, %esi
movl $0x6, %edx
callq 0xe7d0
movq 0x2033dc(%rip), %rbx    # 0x21b470
testq %rbx, %rbx
je 0x17f7a
movl 0x2033d4(%rip), %r14d   # 0x21b478
callq 0x115ca
cmpl $0x45, %r14d
jg 0x180ce
cmpl $0x42, %r14d
je 0x18100
cmpl $0x43, %r14d
jne 0x180ed
testq %rbx, %rbx
leaq 0xf2a4f(%rip), %rcx     # 0x10ab14
leaq 0xf2a5d(%rip), %rsi     # 0x10ab29
jmp 0x18124
cmpl $0x46, %r14d
je 0x18113
cmpl $0x50, %r14d
jne 0x180ed
testq %rbx, %rbx
leaq 0xf29e8(%rip), %rcx     # 0x10aacc
leaq 0xf29f4(%rip), %rsi     # 0x10aadf
jmp 0x18124
testq %rbx, %rbx
leaq 0xf2a67(%rip), %rcx     # 0x10ab5e
leaq 0xf2a6e(%rip), %rsi     # 0x10ab6c
jmp 0x18124
testq %rbx, %rbx
leaq 0xf29e6(%rip), %rcx     # 0x10aaf0
leaq 0xf29f2(%rip), %rsi     # 0x10ab03
jmp 0x18124
testq %rbx, %rbx
leaq 0xf2a1f(%rip), %rcx     # 0x10ab3c
leaq 0xf2a2a(%rip), %rsi     # 0x10ab4e
cmovsq %rcx, %rsi
leaq 0x3240f1(%rip), %rbx    # 0x33c220
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x9060
movb $0x1, 0x200725(%rip)    # 0x218868
cmpb $0x0, 0x20328f(%rip)    # 0x21b3d9
movl $0x2, %edi
je 0x18157
movl 0x2006bd(%rip), %edi    # 0x218814
addl 0x20071f(%rip), %edi    # 0x21887c
movl 0x20071d(%rip), %esi    # 0x218880
addl $0x2, %esi
movl $0xf, %edx
movq %rbx, %rcx
callq 0xe7d0
movb $0x0, 0x2006ee(%rip)    # 0x218868
jmp 0x17f7a