// File: 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:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
cmpb $0x0, 0x256161(%rip)    # 0x277990
je 0x21836
jmp 0x21cec
movzbl 0x34a14b(%rip), %eax    # 0x36b988
cmpl $0x4f, %eax
jne 0x21847
jmp 0x21cec
movzbl 0x34a13a(%rip), %eax    # 0x36b988
cmpl $0x48, %eax
jne 0x21858
jmp 0x21cec
cmpl $0x0, 0x256159(%rip)    # 0x2779b8
je 0x21884
movl 0x256185(%rip), %eax    # 0x2779ec
subl $0x1, %eax
movl %eax, -0x4(%rbp)
movl $0x0, -0x8(%rbp)
movb $0x1, 0x2561c0(%rip)    # 0x277a3b
movb $0x1, 0x2561b8(%rip)    # 0x277a3a
jmp 0x218ed
cmpb $0x0, 0x34a0fd(%rip)    # 0x36b988
je 0x218a6
movl 0x256151(%rip), %eax    # 0x2779e4
subl $0x1, %eax
movl 0x256158(%rip), %ecx    # 0x2779f4
subl $0x1, %ecx
subl %ecx, %eax
movl %eax, -0x4(%rbp)
jmp 0x218b5
movl 0x2561b0(%rip), %eax    # 0x277a5c
addl 0x2561b6(%rip), %eax    # 0x277a68
movl %eax, -0x4(%rbp)
movl 0x256139(%rip), %ecx    # 0x2779f4
movl -0x4(%rbp), %eax
cltd
idivl %ecx
movl %eax, -0x4(%rbp)
movl 0x25612a(%rip), %eax    # 0x2779f4
imull -0x4(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
cltd
idivl 0x256119(%rip)          # 0x2779f4
subl $0x1, %eax
movl %eax, -0x4(%rbp)
movl 0x256185(%rip), %eax    # 0x277a6c
addl $0x1, %eax
movl %eax, -0x8(%rbp)
cmpb $0x0, 0x37c13c(%rip)    # 0x39da30
je 0x21980
leaq 0x37c12f(%rip), %rdi    # 0x39da30
callq 0x21570
movl -0x4(%rbp), %edi
movl -0x8(%rbp), %esi
movl $0xf, %edx
leaq 0x379ae8(%rip), %rcx    # 0x39b400
callq 0x10ee0
cmpq $0x400, 0x256188(%rip) # imm = 0x400
jne 0x2192c
jmp 0x2197e
cmpl $0x0, 0x256085(%rip)    # 0x2779b8
jne 0x2197c
movzbl 0x34a04c(%rip), %eax    # 0x36b988
cmpl $0x0, %eax
jne 0x2197c
movl 0x256119(%rip), %edi    # 0x277a60
movl 0x25610f(%rip), %esi    # 0x277a5c
addl 0x256115(%rip), %esi    # 0x277a68
subl $0x1, %esi
movl 0x256104(%rip), %edx    # 0x277a60
addl 0x256102(%rip), %edx    # 0x277a64
movl 0x2560f4(%rip), %ecx    # 0x277a5c
addl 0x2560fa(%rip), %ecx    # 0x277a68
subl $0x1, %ecx
movl $0xf, %r8d
callq 0x109c0
jmp 0x2197e
jmp 0x21980
cmpl $0x0, 0x256031(%rip)    # 0x2779b8
je 0x2198e
jmp 0x21cec
movzbl 0x349ff3(%rip), %eax    # 0x36b988
cmpl $0x50, %eax
jne 0x2199c
jmp 0x219bc
cmpb $0x0, 0x349fe5(%rip)    # 0x36b988
je 0x219aa
jmp 0x21cec
cmpl $0x0, 0x27c787(%rip)    # 0x29e138
je 0x219b8
jmp 0x21cec
jmp 0x219ba
jmp 0x219bc
cmpb $0x0, 0x37c1bd(%rip)    # 0x39db80
je 0x21a06
cmpb $0x0, 0x34a678(%rip)    # 0x36c044
je 0x219ea
movl -0x4(%rbp), %edi
subl $0x1, %edi
movl -0x8(%rbp), %esi
movl $0xf, %edx
leaq 0x37c19d(%rip), %rcx    # 0x39db80
callq 0x10ee0
jmp 0x21a04
movl -0x4(%rbp), %edi
subl $0x1, %edi
movl -0x8(%rbp), %esi
movl $0xa, %edx
leaq 0x37c181(%rip), %rcx    # 0x39db80
callq 0x10ee0
jmp 0x21a06
cmpb $0x0, 0x37c2c3(%rip)    # 0x39dcd0
je 0x21a29
movl -0x4(%rbp), %edi
subl $0x2, %edi
movl -0x8(%rbp), %esi
movl $0xe, %edx
leaq 0x37c2ac(%rip), %rcx    # 0x39dcd0
callq 0x10ee0
cmpb $0x0, 0x37c3f0(%rip)    # 0x39de20
je 0x21a4c
movl -0x4(%rbp), %edi
subl $0x3, %edi
movl -0x8(%rbp), %esi
movl $0xb, %edx
leaq 0x37c3d9(%rip), %rcx    # 0x39de20
callq 0x10ee0
cmpb $0x0, 0x37c51d(%rip)    # 0x39df70
je 0x21a6f
movl -0x4(%rbp), %edi
subl $0x4, %edi
movl -0x8(%rbp), %esi
movl $0x9, %edx
leaq 0x37c506(%rip), %rcx    # 0x39df70
callq 0x10ee0
cmpb $0x0, 0x37c64a(%rip)    # 0x39e0c0
je 0x21a92
movl -0x4(%rbp), %edi
subl $0x5, %edi
movl -0x8(%rbp), %esi
movl $0xd, %edx
leaq 0x37c633(%rip), %rcx    # 0x39e0c0
callq 0x10ee0
cmpb $0x0, 0x37c777(%rip)    # 0x39e210
je 0x21ab5
movl -0x4(%rbp), %edi
subl $0x6, %edi
movl -0x8(%rbp), %esi
movl $0xc, %edx
leaq 0x37c760(%rip), %rcx    # 0x39e210
callq 0x10ee0
cmpb $0x0, 0x37c8a4(%rip)    # 0x39e360
je 0x21ad8
movl -0x4(%rbp), %edi
subl $0x7, %edi
movl -0x8(%rbp), %esi
movl $0x6, %edx
leaq 0x37c88d(%rip), %rcx    # 0x39e360
callq 0x10ee0
cmpq $0x0, 0x258b70(%rip)    # 0x27a650
je 0x21cec
cmpl $0x50, 0x258b6b(%rip)   # 0x27a658
jne 0x21b3a
cmpq $0x0, 0x258b59(%rip)    # 0x27a650
jge 0x21b18
callq 0x15430
movq %rax, %rdx
leaq 0x3798f8(%rip), %rdi    # 0x39b400
leaq 0x14efba(%rip), %rsi    # 0x170ac9
movb $0x0, %al
callq 0x9060
jmp 0x21b35
callq 0x15430
movq %rax, %rdx
leaq 0x3798d9(%rip), %rdi    # 0x39b400
leaq 0x14efae(%rip), %rsi    # 0x170adc
movb $0x0, %al
callq 0x9060
jmp 0x21c81
cmpl $0x42, 0x258b17(%rip)   # 0x27a658
jne 0x21b8e
cmpq $0x0, 0x258b05(%rip)    # 0x27a650
jge 0x21b6c
callq 0x15430
movq %rax, %rdx
leaq 0x3798a4(%rip), %rdi    # 0x39b400
leaq 0x14ef8a(%rip), %rsi    # 0x170aed
movb $0x0, %al
callq 0x9060
jmp 0x21b89
callq 0x15430
movq %rax, %rdx
leaq 0x379885(%rip), %rdi    # 0x39b400
leaq 0x14ef7e(%rip), %rsi    # 0x170b00
movb $0x0, %al
callq 0x9060
jmp 0x21c7f
cmpl $0x43, 0x258ac3(%rip)   # 0x27a658
jne 0x21be2
cmpq $0x0, 0x258ab1(%rip)    # 0x27a650
jge 0x21bc0
callq 0x15430
movq %rax, %rdx
leaq 0x379850(%rip), %rdi    # 0x39b400
leaq 0x14ef5a(%rip), %rsi    # 0x170b11
movb $0x0, %al
callq 0x9060
jmp 0x21bdd
callq 0x15430
movq %rax, %rdx
leaq 0x379831(%rip), %rdi    # 0x39b400
leaq 0x14ef50(%rip), %rsi    # 0x170b26
movb $0x0, %al
callq 0x9060
jmp 0x21c7d
cmpl $0x46, 0x258a6f(%rip)   # 0x27a658
jne 0x21c33
cmpq $0x0, 0x258a5d(%rip)    # 0x27a650
jge 0x21c14
callq 0x15430
movq %rax, %rdx
leaq 0x3797fc(%rip), %rdi    # 0x39b400
leaq 0x14ef2e(%rip), %rsi    # 0x170b39
movb $0x0, %al
callq 0x9060
jmp 0x21c31
callq 0x15430
movq %rax, %rdx
leaq 0x3797dd(%rip), %rdi    # 0x39b400
leaq 0x14ef21(%rip), %rsi    # 0x170b4b
movb $0x0, %al
callq 0x9060
jmp 0x21c7b
cmpq $0x0, 0x258a15(%rip)    # 0x27a650
jge 0x21c5c
callq 0x15430
movq %rax, %rdx
leaq 0x3797b4(%rip), %rdi    # 0x39b400
leaq 0x14ef08(%rip), %rsi    # 0x170b5b
movb $0x0, %al
callq 0x9060
jmp 0x21c79
callq 0x15430
movq %rax, %rdx
leaq 0x379795(%rip), %rdi    # 0x39b400
leaq 0x14eef7(%rip), %rsi    # 0x170b69
movb $0x0, %al
callq 0x9060
jmp 0x21c7b
jmp 0x21c7d
jmp 0x21c7f
jmp 0x21c81
movb $0x1, 0x255dc0(%rip)    # 0x277a48
movl $0xf, -0xc(%rbp)
cmpb $0x0, 0x258923(%rip)    # 0x27a5b9
je 0x21cc1
movl 0x255dbe(%rip), %edi    # 0x277a5c
addl 0x255d50(%rip), %edi    # 0x2779f4
movl 0x255db6(%rip), %esi    # 0x277a60
addl $0x2, %esi
movl -0xc(%rbp), %eax
leaq 0x379749(%rip), %rcx    # 0x39b400
movzbl %al, %edx
callq 0x10ee0
jmp 0x21ce5
movl 0x255d95(%rip), %edi    # 0x277a5c
addl $0x2, %edi
movl 0x255d90(%rip), %esi    # 0x277a60
addl $0x2, %esi
movl -0xc(%rbp), %eax
leaq 0x379723(%rip), %rcx    # 0x39b400
movzbl %al, %edx
callq 0x10ee0
movb $0x0, 0x255d5c(%rip)    # 0x277a48
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)