// File: jkingan[P]ladyheather/heathgps.cpp
// Function: request_pps_info()
void request_pps_info()
{
   if(luxor) return;
   if(no_poll) return;

   if(rcvr_type == BRANDY_RCVR) {
      queue_brandy_cmd("c", BRANDY_PULSE_MSG);
      queue_brandy_cmd("e", BRANDY_CODE_MSG);
   }
   else if(rcvr_type == FURUNO_RCVR) {
//    GPrrq,GPrrm;   // get pps/traim settings
   }
   else if(rcvr_type == MOTO_RCVR) {
      send_moto_start("Az");     // antenna cable delay
      send_dword(0xFFFFFFFF);
      send_moto_end();

      send_moto_start("Ay");     // pps delay
      send_dword(0xFFFFFFFF);
      send_moto_end();

      send_moto_start("Gc");
      send_byte(0xFF);
      send_moto_end();
   }
   else if(rcvr_type == NVS_RCVR) {
      send_nvs_start(0xD7);  // get pps info
      send_byte(0x05);
      send_nvs_end();

      send_nvs_start(0xD7);  // get cable delay
      send_byte(0x06);
      send_nvs_end();

      send_nvs_start(0xD7);  // get traim mode, 2D OK, single sat OK
      send_byte(0x07);
      send_nvs_end();
   }
   else if(rcvr_type == PRS_RCVR) {
      queue_prs_cmd("LM?", PRS_LM_MSG);
   }
   else if(rcvr_type == RFTG_RCVR) {
      request_rftg_cable();
      request_rftg_corr_data();
   }
   else if(rcvr_type == SS_RCVR) {
   }
   else if(rcvr_type == TSIP_RCVR) {
      if(ACU_GG) ;
      else if(ACU_360) ;
      else if(ACUTIME) ;
      else if(PALISADE) ;
      else if(SV6_FAMILY) return;
      send_tsip_start(0x8E);
      send_byte(0x4A);
      send_tsip_end();

      request_osc_sense();
   }
   else if(rcvr_type == UBX_RCVR) {
      if(!saw_ubx_tp5) request_ubx_msg(UBX_PPS);
      request_ubx_tp5(0);
      request_ubx_tp5(1);
   }
   else if(rcvr_type == VENUS_RCVR) {
      query_venus_msg(QUERY_VENUS_WIDTH);
      query_venus_msg(QUERY_VENUS_FREQ);
      query_venus_msg(QUERY_VENUS_CABLE);    // get cable delay
   }
   else if(rcvr_type == Z12_RCVR) {
      if(have_z12_pps == 0) send_z12_cmd("PASHQ,PPS");
      if(have_z12_ext == 0) send_z12_cmd("PASHQ,EXT");
   }
   else if(rcvr_type == ZYFER_RCVR) {
      send_zyfer_cmd("$ANTD");
      send_zyfer_cmd("$PULP");
      send_zyfer_cmd("$PULR");
   }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0x20c9f3(%rip), %rax    # 0x29e11e
cmpb $0x0, (%rax)
je 0x91735
jmp 0x91ad3
leaq 0x304ac4(%rip), %rax    # 0x396200
cmpb $0x0, (%rax)
je 0x91746
jmp 0x91ad3
leaq 0x1e6363(%rip), %rax    # 0x277ab0
cmpq $0x40000, (%rax)        # imm = 0x40000
jne 0x9177d
leaq 0xfeea6(%rip), %rdi     # 0x190603
movl $0x191, %esi            # imm = 0x191
callq 0x82fd0
leaq 0xe3e44(%rip), %rdi     # 0x1755b2
movl $0x192, %esi            # imm = 0x192
callq 0x82fd0
jmp 0x91ad3
leaq 0x1e632c(%rip), %rax    # 0x277ab0
cmpq $0x20000000, (%rax)     # imm = 0x20000000
jne 0x91792
jmp 0x91ad1
leaq 0x1e6317(%rip), %rax    # 0x277ab0
cmpq $0x20, (%rax)
jne 0x917f5
leaq 0xf2aad(%rip), %rdi     # 0x184253
callq 0x86190
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x7b520
callq 0x86230
leaq 0xf2a95(%rip), %rdi     # 0x184256
callq 0x86190
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x7b520
callq 0x86230
leaq 0xf2a7d(%rip), %rdi     # 0x184259
callq 0x86190
movl $0xff, %edi
callq 0x7b210
callq 0x86230
jmp 0x91acf
leaq 0x1e62b4(%rip), %rax    # 0x277ab0
cmpq $0x800, (%rax)          # imm = 0x800
jne 0x91855
movl $0xd7, %edi
callq 0x824f0
movl $0x5, %edi
callq 0x7b210
callq 0x82630
movl $0xd7, %edi
callq 0x824f0
movl $0x6, %edi
callq 0x7b210
callq 0x82630
movl $0xd7, %edi
callq 0x824f0
movl $0x7, %edi
callq 0x7b210
callq 0x82630
jmp 0x91acd
leaq 0x1e6254(%rip), %rax    # 0x277ab0
cmpq $0x1000000, (%rax)      # imm = 0x1000000
jne 0x9187b
leaq 0xf29f0(%rip), %rdi     # 0x18425c
movl $0x1fa, %esi            # imm = 0x1FA
callq 0x82fd0
jmp 0x91acb
leaq 0x1e622e(%rip), %rax    # 0x277ab0
cmpq $0x400000, (%rax)       # imm = 0x400000
jne 0x9189a
callq 0x8b050
callq 0x8b100
jmp 0x91ac9
movabsq $0x800000000, %rcx      # imm = 0x800000000
leaq 0x1e6205(%rip), %rax    # 0x277ab0
cmpq %rcx, (%rax)
jne 0x918b5
jmp 0x91ac7
leaq 0x1e61f4(%rip), %rax    # 0x277ab0
cmpq $0x1, (%rax)
jne 0x919c6
leaq 0x1e61e3(%rip), %rax    # 0x277ab0
cmpq $0x1, (%rax)
jne 0x918f0
leaq 0x1e88da(%rip), %rax    # 0x27a1b4
cmpl $0x41, (%rax)
jne 0x918f0
leaq 0x1e61f2(%rip), %rax    # 0x277ad8
cmpl $0x47, (%rax)
jne 0x918f0
jmp 0x919a3
leaq 0x1e61b9(%rip), %rax    # 0x277ab0
cmpq $0x1, (%rax)
jne 0x91923
leaq 0x1e88b0(%rip), %rax    # 0x27a1b4
cmpl $0x41, (%rax)
jne 0x91923
leaq 0x1e61c8(%rip), %rax    # 0x277ad8
cmpl $0x33, (%rax)
je 0x91921
leaq 0x1e61bc(%rip), %rax    # 0x277ad8
cmpl $0x47, (%rax)
jne 0x91923
jmp 0x919a1
leaq 0x1e6186(%rip), %rax    # 0x277ab0
cmpq $0x1, (%rax)
jne 0x9193e
leaq 0x1e887d(%rip), %rax    # 0x27a1b4
cmpl $0x41, (%rax)
jne 0x9193e
jmp 0x9199f
leaq 0x1e616b(%rip), %rax    # 0x277ab0
cmpq $0x1, (%rax)
jne 0x91959
leaq 0x1e8862(%rip), %rax    # 0x27a1b4
cmpl $0x50, (%rax)
jne 0x91959
jmp 0x9199d
leaq 0x1e6150(%rip), %rax    # 0x277ab0
cmpq $0x1, (%rax)
jne 0x9199b
leaq 0x1e8847(%rip), %rax    # 0x27a1b4
cmpl $0x36, (%rax)
je 0x91996
leaq 0x1e883b(%rip), %rax    # 0x27a1b4
cmpl $0x33, (%rax)
je 0x91996
leaq 0x1e882f(%rip), %rax    # 0x27a1b4
cmpl $0x50, (%rax)
je 0x91996
leaq 0x1e8823(%rip), %rax    # 0x27a1b4
cmpl $0x41, (%rax)
jne 0x9199b
jmp 0x91ad3
jmp 0x9199d
jmp 0x9199f
jmp 0x919a1
jmp 0x919a3
movl $0x8e, %edi
callq 0x824f0
movl $0x4a, %edi
callq 0x7b210
callq 0x82590
callq 0x915e0
jmp 0x91ac5
leaq 0x1e60e3(%rip), %rax    # 0x277ab0
cmpq $0x4, (%rax)
jne 0x919ff
leaq 0x2dac32(%rip), %rax    # 0x36c60c
cmpl $0x0, (%rax)
jne 0x919e9
movl $0x607, %edi            # imm = 0x607
callq 0x85d00
xorl %edi, %edi
callq 0x91ae0
movl $0x1, %edi
callq 0x91ae0
jmp 0x91ac3
leaq 0x1e60aa(%rip), %rax    # 0x277ab0
cmpq $0x80, (%rax)
jne 0x91a41
movl $0x65, %edi
movl $0x2, %esi
callq 0x8b800
movl $0x65, %edi
movl $0x4, %esi
callq 0x8b800
movl $0x46, %edi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x8b800
jmp 0x91ac1
movabsq $0x100000000, %rcx      # imm = 0x100000000
leaq 0x1e605e(%rip), %rax    # 0x277ab0
cmpq %rcx, (%rax)
jne 0x91a89
leaq 0x2daa56(%rip), %rax    # 0x36c4b4
cmpl $0x0, (%rax)
jne 0x91a6f
leaq 0xf27f6(%rip), %rdi     # 0x184260
callq 0x83630
leaq 0x2daa42(%rip), %rax    # 0x36c4b8
cmpl $0x0, (%rax)
jne 0x91a87
leaq 0xf27e8(%rip), %rdi     # 0x18426a
callq 0x83630
jmp 0x91abf
leaq 0x1e6020(%rip), %rax    # 0x277ab0
cmpq $0x100000, (%rax)       # imm = 0x100000
jne 0x91abd
leaq 0xf2612(%rip), %rdi     # 0x1840b2
callq 0x85d30
leaq 0xf27c8(%rip), %rdi     # 0x184274
callq 0x85d30
leaq 0xf27c2(%rip), %rdi     # 0x18427a
callq 0x85d30
jmp 0x91abf
jmp 0x91ac1
jmp 0x91ac3
jmp 0x91ac5
jmp 0x91ac7
jmp 0x91ac9
jmp 0x91acb
jmp 0x91acd
jmp 0x91acf
jmp 0x91ad1
jmp 0x91ad3
popq %rbp
retq
nopw %cs:(%rax,%rax)