// File: /workspace/github_cpp_makefile_star2_O2/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
pushq %rbx
pushq %rax
leaq 0x1c7340(%rip), %rax    # 0x228f3e
leaq 0x2bf41b(%rip), %rcx    # 0x321020
movb (%rcx), %cl
orb (%rax), %cl
je 0x61c12
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0x1a0cb7(%rip), %rax    # 0x2028d0
movq (%rax), %rax
cmpq $0x1, %rax
je 0x61dd1
cmpq $0x4, %rax
je 0x61cd2
cmpq $0x20, %rax
je 0x61e0e
cmpq $0x80, %rax
je 0x61d24
cmpq $0x800, %rax            # imm = 0x800
je 0x61d86
movabsq $0x100000000, %rcx      # imm = 0x100000000
cmpq %rcx, %rax
je 0x61d4c
cmpq $0x100000, %rax         # imm = 0x100000
je 0x61ca8
cmpq $0x400000, %rax         # imm = 0x400000
je 0x61d14
cmpq $0x1000000, %rax        # imm = 0x1000000
je 0x61cfd
cmpq $0x40000, %rax          # imm = 0x40000
jne 0x61c0b
leaq 0xb5d97(%rip), %rdi     # 0x117a27
movl $0x191, %esi            # imm = 0x191
callq 0x576d4
leaq 0x99034(%rip), %rdi     # 0xfacd5
movl $0x192, %esi            # imm = 0x192
jmp 0x61d09
leaq 0xa90cc(%rip), %rdi     # 0x10ad7b
callq 0x579af
leaq 0xa9282(%rip), %rdi     # 0x10af3d
callq 0x579af
leaq 0xa927c(%rip), %rdi     # 0x10af43
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x579af
leaq 0x295753(%rip), %rax    # 0x2f742c
cmpl $0x0, (%rax)
jne 0x61ce8
movl $0x607, %edi            # imm = 0x607
callq 0x59749
xorl %edi, %edi
callq 0x61e62
pushq $0x1
popq %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x61e62
leaq 0xa9220(%rip), %rdi     # 0x10af24
movl $0x1fa, %esi            # imm = 0x1FA
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x576d4
callq 0x5d50f
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x5d587
pushq $0x65
popq %rbx
pushq $0x2
popq %rsi
movl %ebx, %edi
callq 0x5da8c
pushq $0x4
popq %rsi
movl %ebx, %edi
callq 0x5da8c
pushq $0x46
popq %rdi
pushq $-0x1
popq %rsi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x5da8c
leaq 0x295581(%rip), %rax    # 0x2f72d4
cmpl $0x0, (%rax)
jne 0x61d64
leaq 0xa91c9(%rip), %rdi     # 0x10af28
callq 0x57b55
leaq 0x29556d(%rip), %rax    # 0x2f72d8
cmpl $0x0, (%rax)
jne 0x61c0b
leaq 0xa91b7(%rip), %rdi     # 0x10af32
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x57b55
movl $0xd7, %edi
callq 0x5707f
pushq $0x5
popq %rdi
callq 0x523f2
callq 0x57171
movl $0xd7, %edi
callq 0x5707f
pushq $0x6
popq %rdi
callq 0x523f2
callq 0x57171
movl $0xd7, %edi
callq 0x5707f
pushq $0x7
popq %rdi
callq 0x523f2
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x57171
leaq 0x1a31fc(%rip), %rax    # 0x204fd4
movl (%rax), %eax
cmpl $0x33, %eax
je 0x61c0b
cmpl $0x36, %eax
je 0x61c0b
movl $0x8e, %edi
callq 0x5707f
pushq $0x4a
popq %rdi
callq 0x523f2
callq 0x570f8
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x61b86
leaq 0xa9106(%rip), %rdi     # 0x10af1b
callq 0x59a28
pushq $-0x1
popq %rbx
movl %ebx, %edi
callq 0x525e2
callq 0x59aab
leaq 0xa90ee(%rip), %rdi     # 0x10af1e
callq 0x59a28
movl %ebx, %edi
callq 0x525e2
callq 0x59aab
leaq 0xa90d9(%rip), %rdi     # 0x10af21
callq 0x59a28
movl $0xff, %edi
callq 0x523f2
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x59aab