// File: /workspace/github_cpp_makefile_star2_O3/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 0x1d4432(%rip), %rax    # 0x23ef3e
leaq 0x2cc50d(%rip), %rcx    # 0x337020
movb (%rcx), %cl
orb (%rax), %cl
je 0x6ab1b
popq %rbp
retq
leaq 0x1addae(%rip), %rax    # 0x2188d0
movq (%rax), %rax
cmpq $0x3ffff, %rax          # imm = 0x3FFFF
jg 0x6aba1
cmpq $0x1f, %rax
jle 0x6ac0d
cmpq $0x20, %rax
je 0x6ace1
cmpq $0x80, %rax
je 0x6ad3e
cmpq $0x800, %rax            # imm = 0x800
jne 0x6ab19
movl $0xd7, %edi
callq 0x5e6be
movl $0x5, %edi
callq 0x590f7
callq 0x5e7c0
movl $0xd7, %edi
callq 0x5e6be
movl $0x6, %edi
callq 0x590f7
callq 0x5e7c0
movl $0xd7, %edi
callq 0x5e6be
movl $0x7, %edi
callq 0x590f7
popq %rbp
jmp 0x5e7c0
cmpq $0x3fffff, %rax         # imm = 0x3FFFFF
jle 0x6ac4c
cmpq $0x400000, %rax         # imm = 0x400000
je 0x6ad33
cmpq $0x1000000, %rax        # imm = 0x1000000
je 0x6ad8f
movabsq $0x100000000, %rcx      # imm = 0x100000000
cmpq %rcx, %rax
jne 0x6ab19
leaq 0x2a26f5(%rip), %rax    # 0x30d2d4
cmpl $0x0, (%rax)
jne 0x6abf0
leaq 0xb63f5(%rip), %rdi     # 0x120fe0
callq 0x5f2c8
leaq 0x2a26e1(%rip), %rax    # 0x30d2d8
cmpl $0x0, (%rax)
jne 0x6ab19
leaq 0xb63e3(%rip), %rdi     # 0x120fea
popq %rbp
jmp 0x5f2c8
cmpq $0x1, %rax
je 0x6ac85
cmpq $0x4, %rax
jne 0x6ab19
leaq 0x2a2808(%rip), %rax    # 0x30d42c
cmpl $0x0, (%rax)
jne 0x6ac3a
movl $0x607, %edi            # imm = 0x607
xorl %esi, %esi
callq 0x5f37d
callq 0x5f456
xorl %edi, %edi
callq 0x6ada1
movl $0x1, %edi
popq %rbp
jmp 0x6ada1
cmpq $0x40000, %rax          # imm = 0x40000
je 0x6acbf
cmpq $0x100000, %rax         # imm = 0x100000
jne 0x6ab19
leaq 0xb61cc(%rip), %rdi     # 0x120e33
callq 0x5f0e5
leaq 0xb6382(%rip), %rdi     # 0x120ff5
callq 0x5f0e5
leaq 0xb637c(%rip), %rdi     # 0x120ffb
popq %rbp
jmp 0x5f0e5
leaq 0x1b0348(%rip), %rax    # 0x21afd4
movl (%rax), %eax
cmpl $0x33, %eax
je 0x6ab19
cmpl $0x36, %eax
je 0x6ab19
movl $0x8e, %edi
callq 0x5e6be
movl $0x4a, %edi
callq 0x590f7
callq 0x5e73c
popq %rbp
jmp 0x6aa96
leaq 0xc2e41(%rip), %rdi     # 0x12db07
movl $0x191, %esi            # imm = 0x191
callq 0x5edda
leaq 0xa5f7e(%rip), %rdi     # 0x110c55
movl $0x192, %esi            # imm = 0x192
jmp 0x6ad9b
leaq 0xb62eb(%rip), %rdi     # 0x120fd3
callq 0x6160d
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x592eb
callq 0x61688
leaq 0xb62d3(%rip), %rdi     # 0x120fd6
callq 0x6160d
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x592eb
callq 0x61688
leaq 0xb62bb(%rip), %rdi     # 0x120fd9
callq 0x6160d
movl $0xff, %edi
callq 0x590f7
popq %rbp
jmp 0x61688
callq 0x658a0
popq %rbp
jmp 0x65944
movl $0x65, %edi
movl $0x2, %esi
callq 0x5fb3c
movl $0x2, %edi
callq 0x590f7
callq 0x61bc1
movl $0x65, %edi
movl $0x2, %esi
callq 0x5fb3c
movl $0x4, %edi
callq 0x590f7
callq 0x61bc1
movl $0x46, %edi
movl $0x1, %esi
callq 0x5fb3c
popq %rbp
jmp 0x61bc1
leaq 0xb6246(%rip), %rdi     # 0x120fdc
movl $0x1fa, %esi            # imm = 0x1FA
popq %rbp
jmp 0x5edda