// File: /workspace/github_cpp_makefile_star2_O3/jkingan[P]ladyheather/heathui.cpp
// Function: config_msg_ofs()
void config_msg_ofs()
{
   //  This routine sets the end-of-message arrival time offset vs the timing
   //  message time values.
   // NEW_RCVR

   if(user_set_tsx) {
   }
   else if(rcvr_type == ACRON_RCVR) {
      time_sync_offset = (600.0);  // !!!!!! we need to measure this and set a proper value
   }
   else if(ACUTIME && !ACU_GG && !ACU_360) {
      time_sync_offset = (67.0);  // (157.2);
   }
   else if(rcvr_type == BRANDY_RCVR) {
      time_sync_offset = (750.1);
   }
   else if(rcvr_type == CS_RCVR) {
      time_sync_offset = (330.0);
   }
   else if(rcvr_type == ESIP_RCVR) {
      time_sync_offset = (199.0);
   }
   else if(rcvr_type == FURUNO_RCVR) {
      time_sync_offset = (195.0);
   }
   else if(rcvr_type == GPSD_RCVR) {
      time_sync_offset = (TIME_SYNC_AVG-27.7);
   }
   else if(rcvr_type == MOTO_RCVR) {
      if(moto_chans == 12) time_sync_offset = (208.5);
      else if(moto_chans == 8) time_sync_offset = (262.7);  // average of 8 chan units
      else time_sync_offset = (249.15);  // average of different models
   }
   else if(rcvr_type == NMEA_RCVR) {
      time_sync_offset = (222.0);  // typical NMEA value
   }
   else if(rcvr_type == NO_RCVR) {
      time_sync_offset = (0.0);
   }
   else if(rcvr_type == NVS_RCVR) {
     time_sync_offset = 40.7;
   }
   else if(rcvr_type == PRS_RCVR) {
     time_sync_offset = 0.0;
   }
   else if(rcvr_type == RFTG_RCVR) {
     time_sync_offset = (-663.0);
   }
   else if(rcvr_type == SCPI_RCVR) {
      time_sync_offset = (-964.7); // Z3801:-979.8  Z3812:-949.6
   }
   else if(rcvr_type == SIRF_RCVR) {
      time_sync_offset = (417.0);
   }
   else if((rcvr_type == STAR_RCVR) && (star_type == OSA_TYPE)) {
      time_sync_offset = (337.0);
   }
   else if(rcvr_type == STAR_RCVR) {
      time_sync_offset = (215.0);
   }
   else if(rcvr_type == TAIP_RCVR) {
      time_sync_offset = (-175.0);
   }
   else if(rcvr_type == THERMO_RCVR) {
      time_sync_offset = (0.0);
   }
   else if(rcvr_type == TIDE_RCVR) {
      time_sync_offset = (0.0);
   }
   else if(rcvr_type == TRUE_RCVR) {
      time_sync_offset = (32.5);
   }
   else if(rcvr_type == TSIP_RCVR) {
      if(res_t) {
         if(res_t == RES_T) time_sync_offset = (99.4);
         else if(res_t == RES_T_SMT) time_sync_offset = (393.2);
         else time_sync_offset = (246.3); // !!!!! we need actual timings
      }
      else if(tsip_type == STARLOC_TYPE) {
         time_sync_offset = (266.0);
      }
      else {  // tbolt, ACUTIME GOLD
         time_sync_offset = (53.00);
      }
   }
   else if(rcvr_type == UBX_RCVR) {
      time_sync_offset = (197.3);
   }
   else if(rcvr_type == UCCM_RCVR) {
      time_sync_offset = (231.4);
   }
   else if(rcvr_type == VENUS_RCVR) {
      if(lte_lite) {
         time_sync_offset = 252.1;
      }
      else if(com[RCVR_PORT].baud_rate == 9600) {
         if(saw_timing_msg) time_sync_offset = (208.3);
         else               time_sync_offset = (225.3);
      }
      else {  // 115200 baud
         if(saw_timing_msg) time_sync_offset = (153.8);
         else               time_sync_offset = (170.8);
      }
   }
   else if(rcvr_type == X72_RCVR) {
     time_sync_offset = 0.0;
   }
   else if(rcvr_type == Z12_RCVR) {  // !!!!!
      time_sync_offset = 0.0; // TIME_SYNC_AVG;  // 200.0
   }
   else if(rcvr_type == ZODIAC_RCVR) {
      time_sync_offset = (1238.85);  // Pico = 1232.2, Jupiter-T = 1245.5
   }
   else if(rcvr_type == ZYFER_RCVR) {
      time_sync_offset = (65.00);  // Nanosync 380
   }
   else {
      time_sync_offset = TIME_SYNC_AVG;  // 200.0
   }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0x2c67ae(%rip), %rax    # 0x30ded8
cmpl $0x0, (%rax)
jne 0x47754
leaq 0x1d119a(%rip), %rax    # 0x2188d0
movq (%rax), %rax
cmpq $0x4000, %rax           # imm = 0x4000
jne 0x47756
movsd 0xc42f7(%rip), %xmm0    # 0x10ba40
leaq 0x2c6778(%rip), %rax    # 0x30dec8
movsd %xmm0, (%rax)
popq %rbp
retq
cmpq $0x1, %rax
sete %dl
leaq 0x1d3870(%rip), %rcx    # 0x21afd4
movl (%rcx), %ecx
cmpl $0x41, %ecx
sete %sil
andb %dl, %sil
cmpb $0x1, %sil
jne 0x477bb
leaq 0x1d117b(%rip), %rax    # 0x2188f8
movl (%rax), %eax
cmpl $0x33, %eax
je 0x4778d
cmpl $0x47, %eax
jne 0x47848
leaq 0x1d1170(%rip), %rax    # 0x218904
movzbl (%rax), %eax
testl %eax, %eax
je 0x478bd
cmpl $0x1, %eax
je 0x478b0
cmpl $0x2, %eax
jne 0x478d6
movsd 0xc433f(%rip), %xmm0    # 0x10baf8
jmp 0x47749
cmpq $0x7ff, %rax            # imm = 0x7FF
jle 0x477f8
cmpq $0x3fffff, %rax         # imm = 0x3FFFFF
jle 0x47855
cmpq $0x1fffffff, %rax       # imm = 0x1FFFFFFF
jg 0x478e3
cmpq $0x400000, %rax         # imm = 0x400000
je 0x47902
cmpq $0x1000000, %rax        # imm = 0x1000000
je 0x478a8
jmp 0x4796a
cmpq $0x3f, %rax
jg 0x47886
cmpq $0x2, %rax
je 0x47936
cmpq $0x10, %rax
je 0x47950
cmpq $0x20, %rax
jne 0x4796a
leaq 0x1d37fd(%rip), %rax    # 0x21b024
movl (%rax), %edx
xorl %eax, %eax
cmpl $0x8, %edx
sete %cl
cmpl $0xc, %edx
je 0x4798c
movb %cl, %al
leaq 0xc56ed(%rip), %rcx     # 0x10cf30
jmp 0x478cc
movsd 0xc4298(%rip), %xmm0    # 0x10bae8
jmp 0x47749
cmpq $0x800, %rax            # imm = 0x800
je 0x4791c
cmpq $0x20000, %rax          # imm = 0x20000
je 0x47929
cmpq $0x40000, %rax          # imm = 0x40000
jne 0x4796a
movsd 0xc41c7(%rip), %xmm0    # 0x10ba48
jmp 0x47749
cmpq $0x40, %rax
je 0x47943
cmpq $0x200, %rax            # imm = 0x200
je 0x4795d
cmpq $0x400, %rax            # imm = 0x400
jne 0x4796a
xorps %xmm0, %xmm0
jmp 0x47749
movsd 0xc4238(%rip), %xmm0    # 0x10baf0
jmp 0x47749
xorl %eax, %eax
cmpl $0x53, %ecx
sete %al
leaq 0xc56a4(%rip), %rcx     # 0x10cf70
movsd (%rcx,%rax,8), %xmm0
jmp 0x47749
movsd 0xc4222(%rip), %xmm0    # 0x10bb00
jmp 0x47749
cmpq $0x20000000, %rax       # imm = 0x20000000
je 0x4790f
movl $0x80000000, %edx       # imm = 0x80000000
cmpq %rdx, %rax
jne 0x4796a
movsd 0xc4193(%rip), %xmm0    # 0x10ba90
jmp 0x47749
movsd 0xc4156(%rip), %xmm0    # 0x10ba60
jmp 0x47749
movsd 0xc4171(%rip), %xmm0    # 0x10ba88
jmp 0x47749
movsd 0xc4144(%rip), %xmm0    # 0x10ba68
jmp 0x47749
movsd 0xc4167(%rip), %xmm0    # 0x10ba98
jmp 0x47749
movsd 0xc4132(%rip), %xmm0    # 0x10ba70
jmp 0x47749
movsd 0xc4105(%rip), %xmm0    # 0x10ba50
jmp 0x47749
movsd 0xc4100(%rip), %xmm0    # 0x10ba58
jmp 0x47749
movsd 0xc411b(%rip), %xmm0    # 0x10ba80
jmp 0x47749
leaq 0x1d3677(%rip), %rsi    # 0x21afe8
xorl %edx, %edx
cmpl $0x4f, (%rsi)
sete %sil
cmpq $0x1000, %rax           # imm = 0x1000
je 0x47999
movsd 0xc4116(%rip), %xmm0    # 0x10baa0
jmp 0x479a8
movsd 0xc40e4(%rip), %xmm0    # 0x10ba78
jmp 0x47749
movb %sil, %dl
leaq 0xc559d(%rip), %rsi     # 0x10cf40
movsd (%rsi,%rdx,8), %xmm0
je 0x47749
cmpq $0x7ffff, %rax          # imm = 0x7FFFF
jg 0x479e7
cmpq $0x7f, %rax
jg 0x47a1c
cmpq $0x1, %rax
je 0x4778d
cmpq $0x4, %rax
je 0x47a96
cmpq $0x8, %rax
jne 0x47a70
movsd 0xc40e6(%rip), %xmm0    # 0x10bac8
jmp 0x47749
cmpq $0x7fffff, %rax         # imm = 0x7FFFFF
jg 0x47a45
cmpq $0x80000, %rax          # imm = 0x80000
je 0x478a8
cmpq $0x100000, %rax         # imm = 0x100000
je 0x47aa3
cmpq $0x200000, %rax         # imm = 0x200000
jne 0x47a70
movsd 0xc40c1(%rip), %xmm0    # 0x10bad8
jmp 0x47749
cmpq $0x80, %rax
je 0x47a7d
cmpq $0x100, %rax            # imm = 0x100
je 0x47ab0
cmpq $0x8000, %rax           # imm = 0x8000
jne 0x47a70
movsd 0xc4068(%rip), %xmm0    # 0x10baa8
jmp 0x47749
cmpq $0x800000, %rax         # imm = 0x800000
je 0x478a8
cmpq $0x2000000, %rax        # imm = 0x2000000
je 0x478a8
movabsq $0x100000000, %rcx      # imm = 0x100000000
cmpq %rcx, %rax
je 0x478a8
movsd 0xc4068(%rip), %xmm0    # 0x10bae0
jmp 0x47749
leaq 0x1d354c(%rip), %rax    # 0x21afd0
cmpl $0x0, (%rax)
je 0x47abd
movsd 0xc402f(%rip), %xmm0    # 0x10bac0
jmp 0x47749
movsd 0xc4032(%rip), %xmm0    # 0x10bad0
jmp 0x47749
movsd 0xc4005(%rip), %xmm0    # 0x10bab0
jmp 0x47749
movsd 0xc4000(%rip), %xmm0    # 0x10bab8
jmp 0x47749
leaq 0x2c681c(%rip), %rax    # 0x30e2e0
cmpl $0x2580, 0x159d0(%rax)  # imm = 0x2580
leaq 0x2c5953(%rip), %rax    # 0x30d428
movl (%rax), %eax
jne 0x47ae9
xorl %ecx, %ecx
testl %eax, %eax
sete %cl
leaq 0xc5479(%rip), %rax     # 0x10cf60
jmp 0x47af7
xorl %ecx, %ecx
testl %eax, %eax
sete %cl
leaq 0xc5459(%rip), %rax     # 0x10cf50
movsd (%rax,%rcx,8), %xmm0
jmp 0x47749