// File: /workspace/github_cpp_makefile_star2_O1/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 0x1d454c(%rip), %rax    # 0x23ef3e
leaq 0x2cc627(%rip), %rcx    # 0x337020
movb (%rcx), %cl
orb (%rax), %cl
je 0x6aa01
popq %rbp
retq
leaq 0x1adec8(%rip), %rax    # 0x2188d0
movq (%rax), %rax
cmpq $0x3ffff, %rax          # imm = 0x3FFFF
jg 0x6aa87
cmpq $0x1f, %rax
jle 0x6aaf3
cmpq $0x20, %rax
je 0x6abd0
cmpq $0x80, %rax
je 0x6ac2d
cmpq $0x800, %rax            # imm = 0x800
jne 0x6a9ff
movl $0xd7, %edi
callq 0x5e740
movl $0x5, %edi
callq 0x591af
callq 0x5e844
movl $0xd7, %edi
callq 0x5e740
movl $0x6, %edi
callq 0x591af
callq 0x5e844
movl $0xd7, %edi
callq 0x5e740
movl $0x7, %edi
callq 0x591af
popq %rbp
jmp 0x5e844
cmpq $0x3fffff, %rax         # imm = 0x3FFFFF
jle 0x6ab32
cmpq $0x400000, %rax         # imm = 0x400000
je 0x6ac22
cmpq $0x1000000, %rax        # imm = 0x1000000
je 0x6ac7e
movabsq $0x100000000, %rcx      # imm = 0x100000000
cmpq %rcx, %rax
jne 0x6a9ff
leaq 0x2a280f(%rip), %rax    # 0x30d2d4
cmpl $0x0, (%rax)
jne 0x6aad6
leaq 0xb642f(%rip), %rdi     # 0x120f00
callq 0x5f340
leaq 0x2a27fb(%rip), %rax    # 0x30d2d8
cmpl $0x0, (%rax)
jne 0x6a9ff
leaq 0xb641d(%rip), %rdi     # 0x120f0a
popq %rbp
jmp 0x5f340
cmpq $0x1, %rax
je 0x6ab6b
cmpq $0x4, %rax
jne 0x6a9ff
leaq 0x2a2922(%rip), %rax    # 0x30d42c
cmpl $0x0, (%rax)
jne 0x6ab20
movl $0x607, %edi            # imm = 0x607
xorl %esi, %esi
callq 0x5f3f5
callq 0x5f4ce
xorl %edi, %edi
callq 0x6ace6
movl $0x1, %edi
popq %rbp
jmp 0x6ace6
cmpq $0x40000, %rax          # imm = 0x40000
je 0x6abae
cmpq $0x100000, %rax         # imm = 0x100000
jne 0x6a9ff
leaq 0xb6206(%rip), %rdi     # 0x120d53
callq 0x5f15d
leaq 0xb63bc(%rip), %rdi     # 0x120f15
callq 0x5f15d
leaq 0xb63b6(%rip), %rdi     # 0x120f1b
popq %rbp
jmp 0x5f15d
leaq 0x1b0462(%rip), %rcx    # 0x21afd4
movl (%rcx), %ecx
movl %ecx, %esi
xorl $0x41, %esi
leaq 0x1add78(%rip), %rdx    # 0x2188f8
movl (%rdx), %edx
movl %edx, %edi
xorl $0x47, %edi
orl %esi, %edi
jne 0x6ac90
movl $0x8e, %edi
callq 0x5e740
movl $0x4a, %edi
callq 0x591af
callq 0x5e7c0
popq %rbp
jmp 0x6a936
leaq 0xc2e62(%rip), %rdi     # 0x12da17
movl $0x191, %esi            # imm = 0x191
callq 0x5ee52
leaq 0xa5ffb(%rip), %rdi     # 0x110bc1
movl $0x192, %esi            # imm = 0x192
jmp 0x6ac8a
leaq 0xb631c(%rip), %rdi     # 0x120ef3
callq 0x61694
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x593b5
callq 0x6170f
leaq 0xb6304(%rip), %rdi     # 0x120ef6
callq 0x61694
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x593b5
callq 0x6170f
leaq 0xb62ec(%rip), %rdi     # 0x120ef9
callq 0x61694
movl $0xff, %edi
callq 0x591af
popq %rbp
jmp 0x6170f
callq 0x656d7
popq %rbp
jmp 0x6577b
movl $0x65, %edi
movl $0x2, %esi
callq 0x5fbb4
movl $0x2, %edi
callq 0x591af
callq 0x61bc3
movl $0x65, %edi
movl $0x2, %esi
callq 0x5fbb4
movl $0x4, %edi
callq 0x591af
callq 0x61bc3
movl $0x46, %edi
movl $0x1, %esi
callq 0x5fbb4
popq %rbp
jmp 0x61bc3
leaq 0xb6277(%rip), %rdi     # 0x120efc
movl $0x1fa, %esi            # imm = 0x1FA
popq %rbp
jmp 0x5ee52
cmpl $0x41, %ecx
jne 0x6aca7
cmpl $0x33, %edx
je 0x6ab8f
cmpl $0x47, %edx
je 0x6ab8f
cmpl $0x41, %ecx
sete %dl
cmpl $0x50, %ecx
setne %sil
cmpq $0x1, %rax
jne 0x6ab8f
xorb %sil, %dl
je 0x6ab8f
addl $-0x33, %ecx
cmpl $0x1d, %ecx
ja 0x6ab8f
movl $0x20004009, %eax       # imm = 0x20004009
btl %ecx, %eax
jb 0x6a9ff
jmp 0x6ab8f