// File: /workspace/github_cpp_makefile_star2_O3/jkingan[P]ladyheather/heather.cpp
// Function: set_term_header(unsigned int)
void set_term_header(unsigned port)
{
   // setup the terminal screen header lines

                     strcpy(&term_screen[0][0], "=========================================================================");
   if((zoom_screen == 'O') || (zoom_screen == 'H')) {
      if(port == RCVR_PORT) {
                     strcpy(&term_screen[1][0], "   Lady Heather RCVR Port Data Monitor   Press any key to exit.");
      }
      else if(port == TICC_PORT) {
                     strcpy(&term_screen[1][0], "   Lady Heather TICC Port Data Monitor   Press any key to exit.");
      }
      else if(port == ECHO_PORT) {
                     strcpy(&term_screen[1][0], "   Lady Heather DATA ECHO Port Data Monitor   Press any key to exit.");
      }
      else if(port == NMEA_PORT) {
                     strcpy(&term_screen[1][0], "   Lady Heather NMEA ECHO Port Data Monitor   Press any key to exit.");
      }
      else if(port == TICC_ECHO_PORT) {
                     strcpy(&term_screen[1][0], "   Lady Heather TICC ECHO Port Data Monitor   Press any key to exit.");
      }
      else if(port == THERMO_PORT) {
                     strcpy(&term_screen[1][0], "   Lady Heather Environmental Port Data Monitor   Press any key to exit.");
      }
      else if(port == TRACK_PORT) {
                     strcpy(&term_screen[1][0], "   Lady Heather Tracking Port Data Monitor   Press any key to exit.");
      }
      else if(port == DAC_PORT) {
                     strcpy(&term_screen[1][0], "   Lady Heather DAC/ADC Port Data Monitor   Press any key to exit.");
      }
      else if(port == FAN_PORT) {
                     strcpy(&term_screen[1][0], "   Lady Heather Fan Port Data Monitor   Press any key to exit.");
      }
      else {
                     sprintf(out,               "   Lady Heather Port %d Data Monitor   Press any key to exit.", port);
                     strcpy(&term_screen[1][0], out);
      }
      if(pause_monitor) {
         strcpy(&term_screen[2][0], "        GREEN=from  YELLOW=to device    SPACE to continue) ");
      }
      else {
         strcpy(&term_screen[2][0], "        GREEN=from  YELLOW=to device    SPACE to pause) ");
      }
   }
   else {
                     strcpy(&term_screen[1][0], "   Lady Heather Terminal   END to exit   HOME to clear   F8 send break");
      if(term_pause) strcpy(&term_screen[2][0], "        F4 resume output   ");
      else           strcpy(&term_screen[2][0], "         F4 pause output   ");
      if(term_echo)  strcat(&term_screen[2][0], "F1 echo off   ");
      else           strcat(&term_screen[2][0], "F1 echo on    ");
      if(raw_file)   strcat(&term_screen[2][0], "F2 log off      ");
      else           strcat(&term_screen[2][0], "F2 log append   ");
      if(term_hex)   strcat(&term_screen[2][0], "F3 ASCII mode ");
      else           strcat(&term_screen[2][0], "F3 HEX mode   ");
   }
   strcpy(&term_screen[3][0], "=========================================================================");
   strcpy(&term_screen[4][0], "");

   term_header_lines = 4+1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %edi, %r14d
leaq 0x321641(%rip), %rbx    # 0x340630
leaq 0xebfa5(%rip), %rsi     # 0x10af9b
movl $0x4a, %edx
movq %rbx, %rdi
callq 0x92b0
movzbl 0x2ed79e(%rip), %eax    # 0x30c7a8
cmpl $0x4f, %eax
je 0x1f014
cmpl $0x48, %eax
jne 0x1f067
leal -0xa(%r14), %eax
cmpl $0x8, %eax
ja 0x1f31f
leaq 0xea52c(%rip), %rcx     # 0x109554
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movups 0xebfdd(%rip), %xmm0    # 0x10b015
movups %xmm0, 0x3216a6(%rip)   # 0x3406e5
movups 0xebfbf(%rip), %xmm0    # 0x10b005
movups %xmm0, 0x321688(%rip)   # 0x3406d5
movups 0xebfa1(%rip), %xmm0    # 0x10aff5
movups %xmm0, 0x32166a(%rip)   # 0x3406c5
movups 0xebf83(%rip), %xmm0    # 0x10afe5
jmp 0x1f21d
leaq 0x321647(%rip), %rdi    # 0x3406b5
leaq 0xec281(%rip), %rsi     # 0x10b2f6
movl $0x47, %edx
callq 0x92b0
cmpl $0x0, 0x3236fe(%rip)    # 0x342784
je 0x1f09f
movups 0xec2ba(%rip), %xmm0    # 0x10b349
movups %xmm0, 0x3216b0(%rip)   # 0x340746
movups 0xec2a0(%rip), %xmm0    # 0x10b33d
jmp 0x1f0b4
movups 0xec2bf(%rip), %xmm0    # 0x10b365
movups %xmm0, 0x321699(%rip)   # 0x340746
movups 0xec2a5(%rip), %xmm0    # 0x10b359
movups %xmm0, 0x32167f(%rip)   # 0x34073a
movl 0x3236be(%rip), %r14d   # 0x342780
leaq 0x321671(%rip), %rdi    # 0x34073a
callq 0x9120
addq %rbx, %rax
addq $0x10a, %rax            # imm = 0x10A
testl %r14d, %r14d
je 0x1f0e8
movabsq $0x20202066666f20, %rcx # imm = 0x20202066666F20
jmp 0x1f0f2
movabsq $0x202020206e6f20, %rcx # imm = 0x202020206E6F20
movq %rcx, 0x7(%rax)
movabsq $0x206f686365203146, %rcx # imm = 0x206F686365203146
movq %rcx, (%rax)
movq 0x21f266(%rip), %r14    # 0x23e370
leaq 0x321629(%rip), %rdi    # 0x34073a
callq 0x9120
addq %rbx, %rax
addq $0x10a, %rax            # imm = 0x10A
testq %r14, %r14
je 0x1f12d
movups 0xec268(%rip), %xmm0    # 0x10b393
jmp 0x1f134
movups 0xec270(%rip), %xmm0    # 0x10b3a4
movups %xmm0, (%rax)
movb $0x0, 0x10(%rax)
movl 0x21f2fe(%rip), %r14d   # 0x23e440
leaq 0x3215f1(%rip), %rdi    # 0x34073a
callq 0x9120
addq %rbx, %rax
addq $0x10a, %rax            # imm = 0x10A
testl %r14d, %r14d
je 0x1f176
movabsq $0x2065646f6d2049, %rcx # imm = 0x2065646F6D2049
movq %rcx, 0x7(%rax)
movabsq $0x4949435341203346, %rcx # imm = 0x4949435341203346
jmp 0x1f18e
movabsq $0x20202065646f6d, %rcx # imm = 0x20202065646F6D
movq %rcx, 0x7(%rax)
movabsq $0x6d20584548203346, %rcx # imm = 0x6D20584548203346
movq %rcx, (%rax)
jmp 0x1f2f1
leaq 0x321518(%rip), %rdi    # 0x3406b5
leaq 0xebf4b(%rip), %rsi     # 0x10b0ef
jmp 0x1f234
leaq 0x321505(%rip), %rdi    # 0x3406b5
leaq 0xebef3(%rip), %rsi     # 0x10b0aa
jmp 0x1f234
movups 0xebe95(%rip), %xmm0    # 0x10b055
movups %xmm0, 0x32151e(%rip)   # 0x3406e5
movups 0xebe77(%rip), %xmm0    # 0x10b045
movups %xmm0, 0x321500(%rip)   # 0x3406d5
movups 0xebe59(%rip), %xmm0    # 0x10b035
movups %xmm0, 0x3214e2(%rip)   # 0x3406c5
movups 0xebe3b(%rip), %xmm0    # 0x10b025
jmp 0x1f21d
movups 0xec040(%rip), %xmm0    # 0x10b233
movups %xmm0, 0x3214ea(%rip)   # 0x3406e4
movups 0xec023(%rip), %xmm0    # 0x10b224
movups %xmm0, 0x3214cd(%rip)   # 0x3406d5
movups 0xec005(%rip), %xmm0    # 0x10b214
movups %xmm0, 0x3214af(%rip)   # 0x3406c5
movups 0xebfe7(%rip), %xmm0    # 0x10b204
movups %xmm0, 0x321491(%rip)   # 0x3406b5
jmp 0x1f27d
leaq 0x321488(%rip), %rdi    # 0x3406b5
leaq 0xebe31(%rip), %rsi     # 0x10b065
movl $0x45, %edx
jmp 0x1f278
leaq 0x321473(%rip), %rdi    # 0x3406b5
leaq 0xebeeb(%rip), %rsi     # 0x10b134
movl $0x49, %edx
jmp 0x1f278
leaq 0x32145e(%rip), %rdi    # 0x3406b5
leaq 0xebf63(%rip), %rsi     # 0x10b1c1
movl $0x43, %edx
jmp 0x1f278
leaq 0x321449(%rip), %rdi    # 0x3406b5
leaq 0xebf0a(%rip), %rsi     # 0x10b17d
movl $0x44, %edx
callq 0x92b0
cmpl $0x0, 0x21f1b8(%rip)    # 0x23e43c
je 0x1f2b9
movups 0xec020(%rip), %xmm0    # 0x10b2ad
movups %xmm0, 0x3214d2(%rip)   # 0x340766
movups 0xec006(%rip), %xmm0    # 0x10b2a1
movups %xmm0, 0x3214b8(%rip)   # 0x34075a
movups 0xebfe8(%rip), %xmm0    # 0x10b291
movups %xmm0, 0x32149a(%rip)   # 0x34074a
movups 0xebfca(%rip), %xmm0    # 0x10b281
jmp 0x1f2ea
movups 0xec026(%rip), %xmm0    # 0x10b2e6
movups %xmm0, 0x32149c(%rip)   # 0x340763
movups 0xec00f(%rip), %xmm0    # 0x10b2dd
movups %xmm0, 0x321485(%rip)   # 0x34075a
movups 0xebff1(%rip), %xmm0    # 0x10b2cd
movups %xmm0, 0x321467(%rip)   # 0x34074a
movups 0xebfd3(%rip), %xmm0    # 0x10b2bd
movups %xmm0, 0x321449(%rip)   # 0x34073a
leaq 0x3214c7(%rip), %rdi    # 0x3407bf
leaq 0xebc9c(%rip), %rsi     # 0x10af9b
movl $0x4a, %edx
callq 0x92b0
movb $0x0, 0x321534(%rip)    # 0x340844
movl $0x5, 0x323462(%rip)    # 0x34277c
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x31cefa(%rip), %rbx    # 0x33c220
leaq 0xebf16(%rip), %rsi     # 0x10b243
movq %rbx, %rdi
movl %r14d, %edx
xorl %eax, %eax
callq 0x9060
leaq 0x321374(%rip), %rdi    # 0x3406b5
movq %rbx, %rsi
callq 0x9340
jmp 0x1f27d