// File: /workspace/github_cpp_makefile_star2_O2/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, 0x1eb32a(%rip)    # 0x2027b0
je 0x17489
retq
movzbl 0x2df318(%rip), %eax    # 0x2f67a8
cmpl $0x48, %eax
je 0x17488
cmpl $0x4f, %eax
je 0x17488
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl 0x1eb32e(%rip), %ecx    # 0x2027d8
testl %ecx, %ecx
je 0x174c7
movl 0x1eb358(%rip), %ebx    # 0x20280c
movb $0x1, %al
movb %al, 0x1eb39f(%rip)     # 0x20285b
movb %al, 0x1eb398(%rip)     # 0x20285a
xorl %r14d, %r14d
jmp 0x174fc
testb %al, %al
je 0x174db
movl 0x1eb333(%rip), %eax    # 0x202804
movl 0x1eb33d(%rip), %esi    # 0x202814
subl %esi, %eax
jmp 0x174ed
movl 0x1eb3a7(%rip), %eax    # 0x202888
addl 0x1eb395(%rip), %eax    # 0x20287c
movl 0x1eb327(%rip), %esi    # 0x202814
cltd
idivl %esi
movl %eax, %ebx
movl 0x1eb393(%rip), %r14d   # 0x20288c
incl %r14d
cmpb $0x0, 0x31134d(%rip)    # 0x328850
je 0x17579
leal -0x1(%rbx), %r15d
leaq 0x311340(%rip), %rdi    # 0x328850
callq 0x172dc
leaq 0x30ed04(%rip), %rcx    # 0x326220
pushq $0xf
popq %rdx
movl %r15d, %edi
movl %r14d, %esi
callq 0xe2d2
cmpq $0x400, 0x1eb39b(%rip) # imm = 0x400
movl 0x1eb29d(%rip), %ecx    # 0x2027d8
je 0x17579
testl %ecx, %ecx
jne 0x17579
cmpb $0x0, 0x2df260(%rip)    # 0x2f67a8
jne 0x17579
movl 0x1eb330(%rip), %edi    # 0x202880
movl 0x1eb326(%rip), %eax    # 0x20287c
movl 0x1eb32c(%rip), %ecx    # 0x202888
addl %eax, %ecx
decl %ecx
movl 0x1eb31e(%rip), %edx    # 0x202884
addl %edi, %edx
pushq $0xf
popq %r8
movl %ecx, %esi
callq 0xdedf
movl 0x1eb25f(%rip), %ecx    # 0x2027d8
testl %ecx, %ecx
je 0x17588
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movzbl 0x2df219(%rip), %eax    # 0x2f67a8
cmpl $0x50, %eax
je 0x175a1
testl %eax, %eax
jne 0x1757d
cmpl $0x0, 0x2119b9(%rip)    # 0x228f58
jne 0x1757d
cmpb $0x0, 0x3113f8(%rip)    # 0x3289a0
je 0x175ce
xorl %eax, %eax
cmpb $0x0, 0x2df8b1(%rip)    # 0x2f6e64
setne %al
leal -0x2(%rbx), %edi
leal (%rax,%rax,4), %edx
addl $0xa, %edx
leaq 0x3113da(%rip), %rcx    # 0x3289a0
movl %r14d, %esi
callq 0xe2d2
cmpb $0x0, 0x31151b(%rip)    # 0x328af0
je 0x175ec
leal -0x3(%rbx), %edi
leaq 0x31150f(%rip), %rcx    # 0x328af0
pushq $0xe
popq %rdx
movl %r14d, %esi
callq 0xe2d2
cmpb $0x0, 0x31164d(%rip)    # 0x328c40
je 0x1760a
leal -0x4(%rbx), %edi
leaq 0x311641(%rip), %rcx    # 0x328c40
pushq $0xb
popq %rdx
movl %r14d, %esi
callq 0xe2d2
cmpb $0x0, 0x31177f(%rip)    # 0x328d90
je 0x17628
leal -0x5(%rbx), %edi
leaq 0x311773(%rip), %rcx    # 0x328d90
pushq $0x9
popq %rdx
movl %r14d, %esi
callq 0xe2d2
cmpb $0x0, 0x3118b1(%rip)    # 0x328ee0
je 0x17646
leal -0x6(%rbx), %edi
leaq 0x3118a5(%rip), %rcx    # 0x328ee0
pushq $0xd
popq %rdx
movl %r14d, %esi
callq 0xe2d2
cmpb $0x0, 0x3119e3(%rip)    # 0x329030
je 0x17664
leal -0x7(%rbx), %edi
leaq 0x3119d7(%rip), %rcx    # 0x329030
pushq $0xc
popq %rdx
movl %r14d, %esi
callq 0xe2d2
cmpb $0x0, 0x311b15(%rip)    # 0x329180
je 0x17684
addl $-0x8, %ebx
leaq 0x311b09(%rip), %rcx    # 0x329180
pushq $0x6
popq %rdx
movl %ebx, %edi
movl %r14d, %esi
callq 0xe2d2
movq 0x1edde5(%rip), %rbx    # 0x205470
testq %rbx, %rbx
je 0x1757d
movl 0x1edddd(%rip), %r14d   # 0x205478
callq 0x10e43
cmpl $0x42, %r14d
je 0x176f1
cmpl $0x43, %r14d
je 0x176cb
cmpl $0x46, %r14d
je 0x176de
cmpl $0x50, %r14d
jne 0x17704
testq %rbx, %rbx
leaq 0xdd495(%rip), %rcx     # 0xf4b57
leaq 0xdd4a1(%rip), %rsi     # 0xf4b6a
jmp 0x17715
testq %rbx, %rbx
leaq 0xdd4ca(%rip), %rcx     # 0xf4b9f
leaq 0xdd4d8(%rip), %rsi     # 0xf4bb4
jmp 0x17715
testq %rbx, %rbx
leaq 0xdd4df(%rip), %rcx     # 0xf4bc7
leaq 0xdd4ea(%rip), %rsi     # 0xf4bd9
jmp 0x17715
testq %rbx, %rbx
leaq 0xdd480(%rip), %rcx     # 0xf4b7b
leaq 0xdd48c(%rip), %rsi     # 0xf4b8e
jmp 0x17715
testq %rbx, %rbx
leaq 0xdd4db(%rip), %rcx     # 0xf4be9
leaq 0xdd4e2(%rip), %rsi     # 0xf4bf7
cmovsq %rcx, %rsi
leaq 0x30eb00(%rip), %rbx    # 0x326220
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x9060
movb $0x1, 0x1eb134(%rip)    # 0x202868
cmpb $0x0, 0x1edc9e(%rip)    # 0x2053d9
je 0x17745
movl 0x1eb0d1(%rip), %edi    # 0x202814
jmp 0x17748
pushq $0x2
popq %rdi
addl 0x1eb12e(%rip), %edi    # 0x20287c
movl 0x1eb12c(%rip), %esi    # 0x202880
addl $0x2, %esi
pushq $0xf
popq %rdx
movq %rbx, %rcx
callq 0xe2d2
movb $0x0, 0x1eb0ff(%rip)    # 0x202868
jmp 0x1757d