// File: /workspace/github_cpp_makefile_star2_O1/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 0x2c687d(%rip), %rax    # 0x30ded8
cmpl $0x0, (%rax)
jne 0x47685
leaq 0x1d1269(%rip), %rax    # 0x2188d0
movq (%rax), %rax
cmpq $0x4000, %rax           # imm = 0x4000
jne 0x47687
movsd 0xc43c6(%rip), %xmm0    # 0x10ba40
leaq 0x2c6847(%rip), %rax    # 0x30dec8
movsd %xmm0, (%rax)
popq %rbp
retq
cmpq $0x1, %rax
sete %dl
leaq 0x1d393f(%rip), %rcx    # 0x21afd4
movl (%rcx), %ecx
cmpl $0x41, %ecx
sete %sil
andb %dl, %sil
cmpb $0x1, %sil
jne 0x476be
leaq 0x1d124a(%rip), %rdx    # 0x2188f8
movl (%rdx), %edx
cmpl $0x47, %edx
je 0x476be
cmpl $0x33, %edx
jne 0x477a3
cmpq $0x7ff, %rax            # imm = 0x7FF
jle 0x476f7
cmpq $0x3fffff, %rax         # imm = 0x3FFFFF
jle 0x47748
cmpq $0x1fffffff, %rax       # imm = 0x1FFFFFFF
jg 0x477b0
cmpq $0x400000, %rax         # imm = 0x400000
je 0x477cf
cmpq $0x1000000, %rax        # imm = 0x1000000
je 0x4779b
jmp 0x47837
cmpq $0x3f, %rax
jg 0x47779
cmpq $0x2, %rax
je 0x47803
cmpq $0x10, %rax
je 0x4781d
cmpq $0x20, %rax
jne 0x47837
leaq 0x1d3902(%rip), %rax    # 0x21b024
movl (%rax), %edx
xorl %eax, %eax
cmpl $0x8, %edx
sete %cl
cmpl $0xc, %edx
je 0x47859
movb %cl, %al
leaq 0xc5792(%rip), %rcx     # 0x10ced0
movsd (%rcx,%rax,8), %xmm0
jmp 0x4767a
cmpq $0x800, %rax            # imm = 0x800
je 0x477e9
cmpq $0x20000, %rax          # imm = 0x20000
je 0x477f6
cmpq $0x40000, %rax          # imm = 0x40000
jne 0x47837
movsd 0xc42dc(%rip), %xmm0    # 0x10ba50
jmp 0x4767a
cmpq $0x40, %rax
je 0x47810
cmpq $0x200, %rax            # imm = 0x200
je 0x4782a
cmpq $0x400, %rax            # imm = 0x400
jne 0x47837
xorps %xmm0, %xmm0
jmp 0x4767a
movsd 0xc429d(%rip), %xmm0    # 0x10ba48
jmp 0x4767a
cmpq $0x20000000, %rax       # imm = 0x20000000
je 0x477dc
movl $0x80000000, %edx       # imm = 0x80000000
cmpq %rdx, %rax
jne 0x47837
movsd 0xc42ce(%rip), %xmm0    # 0x10ba98
jmp 0x4767a
movsd 0xc4291(%rip), %xmm0    # 0x10ba68
jmp 0x4767a
movsd 0xc42ac(%rip), %xmm0    # 0x10ba90
jmp 0x4767a
movsd 0xc427f(%rip), %xmm0    # 0x10ba70
jmp 0x4767a
movsd 0xc42a2(%rip), %xmm0    # 0x10baa0
jmp 0x4767a
movsd 0xc426d(%rip), %xmm0    # 0x10ba78
jmp 0x4767a
movsd 0xc4240(%rip), %xmm0    # 0x10ba58
jmp 0x4767a
movsd 0xc423b(%rip), %xmm0    # 0x10ba60
jmp 0x4767a
movsd 0xc4256(%rip), %xmm0    # 0x10ba88
jmp 0x4767a
leaq 0x1d37aa(%rip), %rsi    # 0x21afe8
xorl %edx, %edx
cmpl $0x4f, (%rsi)
sete %sil
cmpq $0x1000, %rax           # imm = 0x1000
je 0x47866
movsd 0xc4251(%rip), %xmm0    # 0x10baa8
jmp 0x47875
movsd 0xc421f(%rip), %xmm0    # 0x10ba80
jmp 0x4767a
movb %sil, %dl
leaq 0xc5670(%rip), %rsi     # 0x10cee0
movsd (%rsi,%rdx,8), %xmm0
je 0x4767a
cmpq $0x7ffff, %rax          # imm = 0x7FFFF
jg 0x478b4
cmpq $0x7f, %rax
jg 0x478e9
cmpq $0x1, %rax
je 0x4794e
cmpq $0x4, %rax
je 0x47998
cmpq $0x8, %rax
jne 0x47941
movsd 0xc4221(%rip), %xmm0    # 0x10bad0
jmp 0x4767a
cmpq $0x7fffff, %rax         # imm = 0x7FFFFF
jg 0x47916
cmpq $0x80000, %rax          # imm = 0x80000
je 0x4779b
cmpq $0x100000, %rax         # imm = 0x100000
je 0x479a5
cmpq $0x200000, %rax         # imm = 0x200000
jne 0x47941
movsd 0xc4214(%rip), %xmm0    # 0x10baf8
jmp 0x4767a
cmpq $0x80, %rax
je 0x4797f
cmpq $0x100, %rax            # imm = 0x100
je 0x479b2
cmpq $0x8000, %rax           # imm = 0x8000
jne 0x47941
movsd 0xc419f(%rip), %xmm0    # 0x10bab0
jmp 0x4767a
cmpq $0x800000, %rax         # imm = 0x800000
je 0x4779b
cmpq $0x2000000, %rax        # imm = 0x2000000
je 0x4779b
movabsq $0x100000000, %rcx      # imm = 0x100000000
cmpq %rcx, %rax
je 0x4779b
movsd 0xc41b7(%rip), %xmm0    # 0x10bb00
jmp 0x4767a
leaq 0x1d0faf(%rip), %rax    # 0x218904
movzbl (%rax), %eax
testl %eax, %eax
je 0x479f8
cmpl $0x1, %eax
je 0x479eb
cmpl $0x2, %eax
jne 0x47a0c
movsd 0xc416e(%rip), %xmm0    # 0x10bae8
jmp 0x4767a
leaq 0x1d364a(%rip), %rax    # 0x21afd0
cmpl $0x0, (%rax)
je 0x479bf
movsd 0xc4135(%rip), %xmm0    # 0x10bac8
jmp 0x4767a
movsd 0xc4138(%rip), %xmm0    # 0x10bad8
jmp 0x4767a
movsd 0xc410b(%rip), %xmm0    # 0x10bab8
jmp 0x4767a
movsd 0xc4106(%rip), %xmm0    # 0x10bac0
jmp 0x4767a
leaq 0x2c691a(%rip), %rax    # 0x30e2e0
cmpl $0x2580, 0x159d0(%rax)  # imm = 0x2580
leaq 0x2c5a51(%rip), %rax    # 0x30d428
movl (%rax), %eax
jne 0x47a19
xorl %ecx, %ecx
testl %eax, %eax
sete %cl
leaq 0xc5517(%rip), %rax     # 0x10cf00
jmp 0x47a27
movsd 0xc40ed(%rip), %xmm0    # 0x10bae0
jmp 0x4767a
xorl %eax, %eax
cmpl $0x53, %ecx
sete %al
leaq 0xc5509(%rip), %rcx     # 0x10cf10
jmp 0x4773e
movsd 0xc40dc(%rip), %xmm0    # 0x10baf0
jmp 0x4767a
xorl %ecx, %ecx
testl %eax, %eax
sete %cl
leaq 0xc54c9(%rip), %rax     # 0x10cef0
movsd (%rax,%rcx,8), %xmm0
jmp 0x4767a