// File: /workspace/github_cpp_makefile_star2_O2/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 0x30c79c(%rip), %rbx    # 0x32a630
leaq 0xd717b(%rip), %rsi     # 0xf5016
pushq $0x4a
popq %rdx
movq %rbx, %rdi
callq 0x92a0
movzbl 0x2d88fb(%rip), %eax    # 0x2f67a8
cmpl $0x4f, %eax
je 0x1deb7
cmpl $0x48, %eax
jne 0x1df0a
leal -0xa(%r14), %eax
cmpl $0x8, %eax
ja 0x1e1b3
leaq 0xd5689(%rip), %rcx     # 0xf3554
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movups 0xd71b5(%rip), %xmm0    # 0xf5090
movups %xmm0, 0x30c803(%rip)   # 0x32a6e5
movups 0xd7197(%rip), %xmm0    # 0xf5080
movups %xmm0, 0x30c7e5(%rip)   # 0x32a6d5
movups 0xd7179(%rip), %xmm0    # 0xf5070
movups %xmm0, 0x30c7c7(%rip)   # 0x32a6c5
movups 0xd715b(%rip), %xmm0    # 0xf5060
jmp 0x1e0be
leaq 0x30c7a4(%rip), %rdi    # 0x32a6b5
leaq 0xd7459(%rip), %rsi     # 0xf5371
pushq $0x47
popq %rdx
callq 0x92a0
cmpl $0x0, 0x30e85d(%rip)    # 0x32c784
je 0x1df40
movups 0xd7494(%rip), %xmm0    # 0xf53c4
movups %xmm0, 0x30c80f(%rip)   # 0x32a746
movups 0xd747a(%rip), %xmm0    # 0xf53b8
jmp 0x1df55
movups 0xd7499(%rip), %xmm0    # 0xf53e0
movups %xmm0, 0x30c7f8(%rip)   # 0x32a746
movups 0xd747f(%rip), %xmm0    # 0xf53d4
movups %xmm0, 0x30c7de(%rip)   # 0x32a73a
movl 0x30e81d(%rip), %r14d   # 0x32c780
leaq 0x30c7d0(%rip), %rdi    # 0x32a73a
callq 0x9120
addq %rbx, %rax
addq $0x10a, %rax            # imm = 0x10A
testl %r14d, %r14d
je 0x1df89
movabsq $0x20202066666f20, %rcx # imm = 0x20202066666F20
jmp 0x1df93
movabsq $0x202020206e6f20, %rcx # imm = 0x202020206E6F20
movq %rcx, 0x7(%rax)
movabsq $0x206f686365203146, %rcx # imm = 0x206F686365203146
movq %rcx, (%rax)
movq 0x20a3c5(%rip), %r14    # 0x228370
leaq 0x30c788(%rip), %rdi    # 0x32a73a
callq 0x9120
addq %rbx, %rax
addq $0x10a, %rax            # imm = 0x10A
testq %r14, %r14
je 0x1dfce
movups 0xd7442(%rip), %xmm0    # 0xf540e
jmp 0x1dfd5
movups 0xd744a(%rip), %xmm0    # 0xf541f
movups %xmm0, (%rax)
movb $0x0, 0x10(%rax)
movl 0x20a45d(%rip), %r14d   # 0x228440
leaq 0x30c750(%rip), %rdi    # 0x32a73a
callq 0x9120
addq %rbx, %rax
addq $0x10a, %rax            # imm = 0x10A
testl %r14d, %r14d
je 0x1e017
movabsq $0x2065646f6d2049, %rcx # imm = 0x2065646F6D2049
movq %rcx, 0x7(%rax)
movabsq $0x4949435341203346, %rcx # imm = 0x4949435341203346
jmp 0x1e02f
movabsq $0x20202065646f6d, %rcx # imm = 0x20202065646F6D
movq %rcx, 0x7(%rax)
movabsq $0x6d20584548203346, %rcx # imm = 0x6D20584548203346
movq %rcx, (%rax)
jmp 0x1e187
leaq 0x30c677(%rip), %rdi    # 0x32a6b5
leaq 0xd7125(%rip), %rsi     # 0xf516a
jmp 0x1e0d5
leaq 0x30c664(%rip), %rdi    # 0x32a6b5
leaq 0xd70cd(%rip), %rsi     # 0xf5125
jmp 0x1e0d5
movups 0xd706f(%rip), %xmm0    # 0xf50d0
movups %xmm0, 0x30c67d(%rip)   # 0x32a6e5
movups 0xd7051(%rip), %xmm0    # 0xf50c0
movups %xmm0, 0x30c65f(%rip)   # 0x32a6d5
movups 0xd7033(%rip), %xmm0    # 0xf50b0
movups %xmm0, 0x30c641(%rip)   # 0x32a6c5
movups 0xd7015(%rip), %xmm0    # 0xf50a0
jmp 0x1e0be
movups 0xd721a(%rip), %xmm0    # 0xf52ae
movups %xmm0, 0x30c649(%rip)   # 0x32a6e4
movups 0xd71fd(%rip), %xmm0    # 0xf529f
movups %xmm0, 0x30c62c(%rip)   # 0x32a6d5
movups 0xd71df(%rip), %xmm0    # 0xf528f
movups %xmm0, 0x30c60e(%rip)   # 0x32a6c5
movups 0xd71c1(%rip), %xmm0    # 0xf527f
movups %xmm0, 0x30c5f0(%rip)   # 0x32a6b5
jmp 0x1e113
leaq 0x30c5e7(%rip), %rdi    # 0x32a6b5
leaq 0xd700b(%rip), %rsi     # 0xf50e0
pushq $0x45
jmp 0x1e10d
leaq 0x30c5d5(%rip), %rdi    # 0x32a6b5
leaq 0xd70c8(%rip), %rsi     # 0xf51af
pushq $0x49
jmp 0x1e10d
leaq 0x30c5c3(%rip), %rdi    # 0x32a6b5
leaq 0xd7143(%rip), %rsi     # 0xf523c
pushq $0x43
jmp 0x1e10d
leaq 0x30c5b1(%rip), %rdi    # 0x32a6b5
leaq 0xd70ed(%rip), %rsi     # 0xf51f8
pushq $0x44
popq %rdx
callq 0x92a0
cmpl $0x0, 0x20a322(%rip)    # 0x22843c
je 0x1e14f
movups 0xd7205(%rip), %xmm0    # 0xf5328
movups %xmm0, 0x30c63c(%rip)   # 0x32a766
movups 0xd71eb(%rip), %xmm0    # 0xf531c
movups %xmm0, 0x30c622(%rip)   # 0x32a75a
movups 0xd71cd(%rip), %xmm0    # 0xf530c
movups %xmm0, 0x30c604(%rip)   # 0x32a74a
movups 0xd71af(%rip), %xmm0    # 0xf52fc
jmp 0x1e180
movups 0xd720b(%rip), %xmm0    # 0xf5361
movups %xmm0, 0x30c606(%rip)   # 0x32a763
movups 0xd71f4(%rip), %xmm0    # 0xf5358
movups %xmm0, 0x30c5ef(%rip)   # 0x32a75a
movups 0xd71d6(%rip), %xmm0    # 0xf5348
movups %xmm0, 0x30c5d1(%rip)   # 0x32a74a
movups 0xd71b8(%rip), %xmm0    # 0xf5338
movups %xmm0, 0x30c5b3(%rip)   # 0x32a73a
leaq 0x30c631(%rip), %rdi    # 0x32a7bf
leaq 0xd6e81(%rip), %rsi     # 0xf5016
pushq $0x4a
popq %rdx
callq 0x92a0
movb $0x0, 0x30c6a0(%rip)    # 0x32a844
movl $0x5, 0x30e5ce(%rip)    # 0x32c77c
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x308066(%rip), %rbx    # 0x326220
leaq 0xd70fd(%rip), %rsi     # 0xf52be
movq %rbx, %rdi
movl %r14d, %edx
xorl %eax, %eax
callq 0x9060
leaq 0x30c4e0(%rip), %rdi    # 0x32a6b5
movq %rbx, %rsi
callq 0x9330
jmp 0x1e113