// File: /workspace/github_cpp_makefile_star2_O1/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 0x321635(%rip), %rbx    # 0x340630
leaq 0xebf89(%rip), %rsi     # 0x10af8b
movl $0x4a, %edx
movq %rbx, %rdi
callq 0x92b0
movzbl 0x2ed792(%rip), %eax    # 0x30c7a8
cmpl $0x4f, %eax
je 0x1f020
cmpl $0x48, %eax
jne 0x1f073
leal -0xa(%r14), %eax
cmpl $0x8, %eax
ja 0x1f32b
leaq 0xea510(%rip), %rcx     # 0x109544
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movups 0xebfc1(%rip), %xmm0    # 0x10b005
movups %xmm0, 0x32169a(%rip)   # 0x3406e5
movups 0xebfa3(%rip), %xmm0    # 0x10aff5
movups %xmm0, 0x32167c(%rip)   # 0x3406d5
movups 0xebf85(%rip), %xmm0    # 0x10afe5
movups %xmm0, 0x32165e(%rip)   # 0x3406c5
movups 0xebf67(%rip), %xmm0    # 0x10afd5
jmp 0x1f229
leaq 0x32163b(%rip), %rdi    # 0x3406b5
leaq 0xec265(%rip), %rsi     # 0x10b2e6
movl $0x47, %edx
callq 0x92b0
cmpl $0x0, 0x3236f2(%rip)    # 0x342784
je 0x1f0ab
movups 0xec29e(%rip), %xmm0    # 0x10b339
movups %xmm0, 0x3216a4(%rip)   # 0x340746
movups 0xec284(%rip), %xmm0    # 0x10b32d
jmp 0x1f0c0
movups 0xec2a3(%rip), %xmm0    # 0x10b355
movups %xmm0, 0x32168d(%rip)   # 0x340746
movups 0xec289(%rip), %xmm0    # 0x10b349
movups %xmm0, 0x321673(%rip)   # 0x34073a
movl 0x3236b2(%rip), %r14d   # 0x342780
leaq 0x321665(%rip), %rdi    # 0x34073a
callq 0x9120
addq %rbx, %rax
addq $0x10a, %rax            # imm = 0x10A
testl %r14d, %r14d
je 0x1f0f4
movabsq $0x20202066666f20, %rcx # imm = 0x20202066666F20
jmp 0x1f0fe
movabsq $0x202020206e6f20, %rcx # imm = 0x202020206E6F20
movq %rcx, 0x7(%rax)
movabsq $0x206f686365203146, %rcx # imm = 0x206F686365203146
movq %rcx, (%rax)
movq 0x21f25a(%rip), %r14    # 0x23e370
leaq 0x32161d(%rip), %rdi    # 0x34073a
callq 0x9120
addq %rbx, %rax
addq $0x10a, %rax            # imm = 0x10A
testq %r14, %r14
je 0x1f139
movups 0xec24c(%rip), %xmm0    # 0x10b383
jmp 0x1f140
movups 0xec254(%rip), %xmm0    # 0x10b394
movups %xmm0, (%rax)
movb $0x0, 0x10(%rax)
movl 0x21f2f2(%rip), %r14d   # 0x23e440
leaq 0x3215e5(%rip), %rdi    # 0x34073a
callq 0x9120
addq %rbx, %rax
addq $0x10a, %rax            # imm = 0x10A
testl %r14d, %r14d
je 0x1f182
movabsq $0x2065646f6d2049, %rcx # imm = 0x2065646F6D2049
movq %rcx, 0x7(%rax)
movabsq $0x4949435341203346, %rcx # imm = 0x4949435341203346
jmp 0x1f19a
movabsq $0x20202065646f6d, %rcx # imm = 0x20202065646F6D
movq %rcx, 0x7(%rax)
movabsq $0x6d20584548203346, %rcx # imm = 0x6D20584548203346
movq %rcx, (%rax)
jmp 0x1f2fd
leaq 0x32150c(%rip), %rdi    # 0x3406b5
leaq 0xebf2f(%rip), %rsi     # 0x10b0df
jmp 0x1f240
leaq 0x3214f9(%rip), %rdi    # 0x3406b5
leaq 0xebed7(%rip), %rsi     # 0x10b09a
jmp 0x1f240
movups 0xebe79(%rip), %xmm0    # 0x10b045
movups %xmm0, 0x321512(%rip)   # 0x3406e5
movups 0xebe5b(%rip), %xmm0    # 0x10b035
movups %xmm0, 0x3214f4(%rip)   # 0x3406d5
movups 0xebe3d(%rip), %xmm0    # 0x10b025
movups %xmm0, 0x3214d6(%rip)   # 0x3406c5
movups 0xebe1f(%rip), %xmm0    # 0x10b015
jmp 0x1f229
movups 0xec024(%rip), %xmm0    # 0x10b223
movups %xmm0, 0x3214de(%rip)   # 0x3406e4
movups 0xec007(%rip), %xmm0    # 0x10b214
movups %xmm0, 0x3214c1(%rip)   # 0x3406d5
movups 0xebfe9(%rip), %xmm0    # 0x10b204
movups %xmm0, 0x3214a3(%rip)   # 0x3406c5
movups 0xebfcb(%rip), %xmm0    # 0x10b1f4
movups %xmm0, 0x321485(%rip)   # 0x3406b5
jmp 0x1f289
leaq 0x32147c(%rip), %rdi    # 0x3406b5
leaq 0xebe15(%rip), %rsi     # 0x10b055
movl $0x45, %edx
jmp 0x1f284
leaq 0x321467(%rip), %rdi    # 0x3406b5
leaq 0xebecf(%rip), %rsi     # 0x10b124
movl $0x49, %edx
jmp 0x1f284
leaq 0x321452(%rip), %rdi    # 0x3406b5
leaq 0xebf47(%rip), %rsi     # 0x10b1b1
movl $0x43, %edx
jmp 0x1f284
leaq 0x32143d(%rip), %rdi    # 0x3406b5
leaq 0xebeee(%rip), %rsi     # 0x10b16d
movl $0x44, %edx
callq 0x92b0
cmpl $0x0, 0x21f1ac(%rip)    # 0x23e43c
je 0x1f2c5
movups 0xec004(%rip), %xmm0    # 0x10b29d
movups %xmm0, 0x3214c6(%rip)   # 0x340766
movups 0xebfea(%rip), %xmm0    # 0x10b291
movups %xmm0, 0x3214ac(%rip)   # 0x34075a
movups 0xebfcc(%rip), %xmm0    # 0x10b281
movups %xmm0, 0x32148e(%rip)   # 0x34074a
movups 0xebfae(%rip), %xmm0    # 0x10b271
jmp 0x1f2f6
movups 0xec00a(%rip), %xmm0    # 0x10b2d6
movups %xmm0, 0x321490(%rip)   # 0x340763
movups 0xebff3(%rip), %xmm0    # 0x10b2cd
movups %xmm0, 0x321479(%rip)   # 0x34075a
movups 0xebfd5(%rip), %xmm0    # 0x10b2bd
movups %xmm0, 0x32145b(%rip)   # 0x34074a
movups 0xebfb7(%rip), %xmm0    # 0x10b2ad
movups %xmm0, 0x32143d(%rip)   # 0x34073a
leaq 0x3214bb(%rip), %rdi    # 0x3407bf
leaq 0xebc80(%rip), %rsi     # 0x10af8b
movl $0x4a, %edx
callq 0x92b0
movb $0x0, 0x321528(%rip)    # 0x340844
movl $0x5, 0x323456(%rip)    # 0x34277c
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x31ceee(%rip), %rbx    # 0x33c220
leaq 0xebefa(%rip), %rsi     # 0x10b233
movq %rbx, %rdi
movl %r14d, %edx
xorl %eax, %eax
callq 0x9060
leaq 0x321368(%rip), %rdi    # 0x3406b5
movq %rbx, %rsi
callq 0x9340
jmp 0x1f289