// File: 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 0x30948d(%rip), %rax    # 0x36d0b8
cmpl $0x0, (%rax)
je 0x63c35
jmp 0x642ac
leaq 0x213e74(%rip), %rax    # 0x277ab0
cmpq $0x4000, (%rax)         # imm = 0x4000
jne 0x63c5d
leaq 0x30945c(%rip), %rax    # 0x36d0a8
movsd 0x10dc6c(%rip), %xmm0   # 0x1718c0
movsd %xmm0, (%rax)
jmp 0x642aa
leaq 0x213e4c(%rip), %rax    # 0x277ab0
cmpq $0x1, (%rax)
jne 0x63ce4
leaq 0x216543(%rip), %rax    # 0x27a1b4
cmpl $0x41, (%rax)
jne 0x63ce4
leaq 0x213e33(%rip), %rax    # 0x277ab0
cmpq $0x1, (%rax)
jne 0x63c9b
leaq 0x21652a(%rip), %rax    # 0x27a1b4
cmpl $0x41, (%rax)
jne 0x63c9b
leaq 0x213e42(%rip), %rax    # 0x277ad8
cmpl $0x47, (%rax)
je 0x63ce4
leaq 0x213e0e(%rip), %rax    # 0x277ab0
cmpq $0x1, (%rax)
jne 0x63ccc
leaq 0x216505(%rip), %rax    # 0x27a1b4
cmpl $0x41, (%rax)
jne 0x63ccc
leaq 0x213e1d(%rip), %rax    # 0x277ad8
cmpl $0x33, (%rax)
je 0x63ce4
leaq 0x213e11(%rip), %rax    # 0x277ad8
cmpl $0x47, (%rax)
je 0x63ce4
leaq 0x3093d5(%rip), %rax    # 0x36d0a8
movsd 0x10dae5(%rip), %xmm0   # 0x1717c0
movsd %xmm0, (%rax)
jmp 0x642a8
leaq 0x213dc5(%rip), %rax    # 0x277ab0
cmpq $0x40000, (%rax)        # imm = 0x40000
jne 0x63d0c
leaq 0x3093ad(%rip), %rax    # 0x36d0a8
movsd 0x10dbb5(%rip), %xmm0   # 0x1718b8
movsd %xmm0, (%rax)
jmp 0x642a6
leaq 0x213d9d(%rip), %rax    # 0x277ab0
cmpq $0x20000, (%rax)        # imm = 0x20000
jne 0x63d34
leaq 0x309385(%rip), %rax    # 0x36d0a8
movsd 0x10db85(%rip), %xmm0   # 0x1718b0
movsd %xmm0, (%rax)
jmp 0x642a4
movl $0x80000000, %ecx       # imm = 0x80000000
leaq 0x213d70(%rip), %rax    # 0x277ab0
cmpq %rcx, (%rax)
jne 0x63d5d
leaq 0x30935c(%rip), %rax    # 0x36d0a8
movsd 0x10db54(%rip), %xmm0   # 0x1718a8
movsd %xmm0, (%rax)
jmp 0x642a2
leaq 0x213d4c(%rip), %rax    # 0x277ab0
cmpq $0x20000000, (%rax)     # imm = 0x20000000
jne 0x63d85
leaq 0x309334(%rip), %rax    # 0x36d0a8
movsd 0x10db24(%rip), %xmm0   # 0x1718a0
movsd %xmm0, (%rax)
jmp 0x642a0
leaq 0x213d24(%rip), %rax    # 0x277ab0
cmpq $0x200, (%rax)          # imm = 0x200
jne 0x63dad
leaq 0x30930c(%rip), %rax    # 0x36d0a8
movsd 0x10daf4(%rip), %xmm0   # 0x171898
movsd %xmm0, (%rax)
jmp 0x6429e
leaq 0x213cfc(%rip), %rax    # 0x277ab0
cmpq $0x20, (%rax)
jne 0x63e16
leaq 0x216443(%rip), %rax    # 0x27a204
cmpl $0xc, (%rax)
jne 0x63ddb
leaq 0x3092db(%rip), %rax    # 0x36d0a8
movsd 0x10dabb(%rip), %xmm0   # 0x171890
movsd %xmm0, (%rax)
jmp 0x63e11
leaq 0x216422(%rip), %rax    # 0x27a204
cmpl $0x8, (%rax)
jne 0x63dfc
leaq 0x3092ba(%rip), %rax    # 0x36d0a8
movsd 0x10da92(%rip), %xmm0   # 0x171888
movsd %xmm0, (%rax)
jmp 0x63e0f
leaq 0x3092a5(%rip), %rax    # 0x36d0a8
movsd 0x10da75(%rip), %xmm0   # 0x171880
movsd %xmm0, (%rax)
jmp 0x63e11
jmp 0x6429c
leaq 0x213c93(%rip), %rax    # 0x277ab0
cmpq $0x2, (%rax)
jne 0x63e3b
leaq 0x30927e(%rip), %rax    # 0x36d0a8
movsd 0x10da46(%rip), %xmm0   # 0x171878
movsd %xmm0, (%rax)
jmp 0x6429a
leaq 0x213c6e(%rip), %rax    # 0x277ab0
cmpq $0x400, (%rax)          # imm = 0x400
jne 0x63e5e
leaq 0x309256(%rip), %rax    # 0x36d0a8
xorps %xmm0, %xmm0
movsd %xmm0, (%rax)
jmp 0x64298
leaq 0x213c4b(%rip), %rax    # 0x277ab0
cmpq $0x800, (%rax)          # imm = 0x800
jne 0x63e86
leaq 0x309233(%rip), %rax    # 0x36d0a8
movsd 0x10d9f3(%rip), %xmm0   # 0x171870
movsd %xmm0, (%rax)
jmp 0x64296
leaq 0x213c23(%rip), %rax    # 0x277ab0
cmpq $0x1000000, (%rax)      # imm = 0x1000000
jne 0x63ea9
leaq 0x30920b(%rip), %rax    # 0x36d0a8
xorps %xmm0, %xmm0
movsd %xmm0, (%rax)
jmp 0x64294
leaq 0x213c00(%rip), %rax    # 0x277ab0
cmpq $0x400000, (%rax)       # imm = 0x400000
jne 0x63ed1
leaq 0x3091e8(%rip), %rax    # 0x36d0a8
movsd 0x10d9a0(%rip), %xmm0   # 0x171868
movsd %xmm0, (%rax)
jmp 0x64292
leaq 0x213bd8(%rip), %rax    # 0x277ab0
cmpq $0x10, (%rax)
jne 0x63ef6
leaq 0x3091c3(%rip), %rax    # 0x36d0a8
movsd 0x10d973(%rip), %xmm0   # 0x171860
movsd %xmm0, (%rax)
jmp 0x64290
leaq 0x213bb3(%rip), %rax    # 0x277ab0
cmpq $0x40, (%rax)
jne 0x63f1b
leaq 0x30919e(%rip), %rax    # 0x36d0a8
movsd 0x10d946(%rip), %xmm0   # 0x171858
movsd %xmm0, (%rax)
jmp 0x6428e
leaq 0x213b8e(%rip), %rax    # 0x277ab0
cmpq $0x1000, (%rax)         # imm = 0x1000
jne 0x63f4f
leaq 0x216296(%rip), %rax    # 0x27a1c8
cmpl $0x4f, (%rax)
jne 0x63f4f
leaq 0x30916a(%rip), %rax    # 0x36d0a8
movsd 0x10d90a(%rip), %xmm0   # 0x171850
movsd %xmm0, (%rax)
jmp 0x6428c
leaq 0x213b5a(%rip), %rax    # 0x277ab0
cmpq $0x1000, (%rax)         # imm = 0x1000
jne 0x63f77
leaq 0x309142(%rip), %rax    # 0x36d0a8
movsd 0x10d8da(%rip), %xmm0   # 0x171848
movsd %xmm0, (%rax)
jmp 0x6428a
leaq 0x213b32(%rip), %rax    # 0x277ab0
cmpq $0x8000, (%rax)         # imm = 0x8000
jne 0x63f9f
leaq 0x30911a(%rip), %rax    # 0x36d0a8
movsd 0x10d8aa(%rip), %xmm0   # 0x171840
movsd %xmm0, (%rax)
jmp 0x64288
leaq 0x213b0a(%rip), %rax    # 0x277ab0
cmpq $0x80000, (%rax)        # imm = 0x80000
jne 0x63fc2
leaq 0x3090f2(%rip), %rax    # 0x36d0a8
xorps %xmm0, %xmm0
movsd %xmm0, (%rax)
jmp 0x64286
leaq 0x213ae7(%rip), %rax    # 0x277ab0
cmpq $0x800000, (%rax)       # imm = 0x800000
jne 0x63fe5
leaq 0x3090cf(%rip), %rax    # 0x36d0a8
xorps %xmm0, %xmm0
movsd %xmm0, (%rax)
jmp 0x64284
leaq 0x213ac4(%rip), %rax    # 0x277ab0
cmpq $0x200000, (%rax)       # imm = 0x200000
jne 0x6400d
leaq 0x3090ac(%rip), %rax    # 0x36d0a8
movsd 0x10d834(%rip), %xmm0   # 0x171838
movsd %xmm0, (%rax)
jmp 0x64282
leaq 0x213a9c(%rip), %rax    # 0x277ab0
cmpq $0x1, (%rax)
jne 0x640c4
leaq 0x213abf(%rip), %rax    # 0x277ae4
cmpb $0x0, (%rax)
je 0x64089
leaq 0x213ab3(%rip), %rax    # 0x277ae4
movzbl (%rax), %eax
cmpl $0x1, %eax
jne 0x6404e
leaq 0x309068(%rip), %rax    # 0x36d0a8
movsd 0x10d7e8(%rip), %xmm0   # 0x171830
movsd %xmm0, (%rax)
jmp 0x64087
leaq 0x213a8f(%rip), %rax    # 0x277ae4
movzbl (%rax), %eax
cmpl $0x2, %eax
jne 0x64072
leaq 0x309044(%rip), %rax    # 0x36d0a8
movsd 0x10d7bc(%rip), %xmm0   # 0x171828
movsd %xmm0, (%rax)
jmp 0x64085
leaq 0x30902f(%rip), %rax    # 0x36d0a8
movsd 0x10d79f(%rip), %xmm0   # 0x171820
movsd %xmm0, (%rax)
jmp 0x64087
jmp 0x640bf
leaq 0x216124(%rip), %rax    # 0x27a1b4
cmpl $0x53, (%rax)
jne 0x640aa
leaq 0x30900c(%rip), %rax    # 0x36d0a8
movsd 0x10d774(%rip), %xmm0   # 0x171818
movsd %xmm0, (%rax)
jmp 0x640bd
leaq 0x308ff7(%rip), %rax    # 0x36d0a8
movsd 0x10d757(%rip), %xmm0   # 0x171810
movsd %xmm0, (%rax)
jmp 0x640bf
jmp 0x64280
leaq 0x2139e5(%rip), %rax    # 0x277ab0
cmpq $0x4, (%rax)
jne 0x640e9
leaq 0x308fd0(%rip), %rax    # 0x36d0a8
movsd 0x10d728(%rip), %xmm0   # 0x171808
movsd %xmm0, (%rax)
jmp 0x6427e
leaq 0x2139c0(%rip), %rax    # 0x277ab0
cmpq $0x8, (%rax)
jne 0x6410e
leaq 0x308fab(%rip), %rax    # 0x36d0a8
movsd 0x10d6fb(%rip), %xmm0   # 0x171800
movsd %xmm0, (%rax)
jmp 0x6427c
leaq 0x21399b(%rip), %rax    # 0x277ab0
cmpq $0x80, (%rax)
jne 0x641cc
leaq 0x216087(%rip), %rax    # 0x27a1b0
cmpl $0x0, (%rax)
je 0x64146
leaq 0x308f73(%rip), %rax    # 0x36d0a8
movsd 0x10d6bb(%rip), %xmm0   # 0x1717f8
movsd %xmm0, (%rax)
jmp 0x641c7
leaq 0x309373(%rip), %rax    # 0x36d4c0
cmpl $0x2580, 0x159d0(%rax)  # imm = 0x2580
jne 0x6418f
leaq 0x3084a8(%rip), %rax    # 0x36c608
cmpl $0x0, (%rax)
je 0x6417a
leaq 0x308f3c(%rip), %rax    # 0x36d0a8
movsd 0x10d67c(%rip), %xmm0   # 0x1717f0
movsd %xmm0, (%rax)
jmp 0x6418d
leaq 0x308f27(%rip), %rax    # 0x36d0a8
movsd 0x10d65f(%rip), %xmm0   # 0x1717e8
movsd %xmm0, (%rax)
jmp 0x641c5
leaq 0x308472(%rip), %rax    # 0x36c608
cmpl $0x0, (%rax)
je 0x641b0
leaq 0x308f06(%rip), %rax    # 0x36d0a8
movsd 0x10d636(%rip), %xmm0   # 0x1717e0
movsd %xmm0, (%rax)
jmp 0x641c3
leaq 0x308ef1(%rip), %rax    # 0x36d0a8
movsd 0x10d619(%rip), %xmm0   # 0x1717d8
movsd %xmm0, (%rax)
jmp 0x641c5
jmp 0x641c7
jmp 0x6427a
leaq 0x2138dd(%rip), %rax    # 0x277ab0
cmpq $0x2000000, (%rax)      # imm = 0x2000000
jne 0x641ef
leaq 0x308ec5(%rip), %rax    # 0x36d0a8
xorps %xmm0, %xmm0
movsd %xmm0, (%rax)
jmp 0x64278
movabsq $0x100000000, %rcx      # imm = 0x100000000
leaq 0x2138b0(%rip), %rax    # 0x277ab0
cmpq %rcx, (%rax)
jne 0x64215
leaq 0x308e9c(%rip), %rax    # 0x36d0a8
xorps %xmm0, %xmm0
movsd %xmm0, (%rax)
jmp 0x64276
leaq 0x213894(%rip), %rax    # 0x277ab0
cmpq $0x100, (%rax)          # imm = 0x100
jne 0x6423a
leaq 0x308e7c(%rip), %rax    # 0x36d0a8
movsd 0x10d59c(%rip), %xmm0   # 0x1717d0
movsd %xmm0, (%rax)
jmp 0x64274
leaq 0x21386f(%rip), %rax    # 0x277ab0
cmpq $0x100000, (%rax)       # imm = 0x100000
jne 0x6425f
leaq 0x308e57(%rip), %rax    # 0x36d0a8
movsd 0x10d56f(%rip), %xmm0   # 0x1717c8
movsd %xmm0, (%rax)
jmp 0x64272
leaq 0x308e42(%rip), %rax    # 0x36d0a8
movsd 0x10af2a(%rip), %xmm0   # 0x16f198
movsd %xmm0, (%rax)
jmp 0x64274
jmp 0x64276
jmp 0x64278
jmp 0x6427a
jmp 0x6427c
jmp 0x6427e
jmp 0x64280
jmp 0x64282
jmp 0x64284
jmp 0x64286
jmp 0x64288
jmp 0x6428a
jmp 0x6428c
jmp 0x6428e
jmp 0x64290
jmp 0x64292
jmp 0x64294
jmp 0x64296
jmp 0x64298
jmp 0x6429a
jmp 0x6429c
jmp 0x6429e
jmp 0x642a0
jmp 0x642a2
jmp 0x642a4
jmp 0x642a6
jmp 0x642a8
jmp 0x642aa
jmp 0x642ac
popq %rbp
retq
nop