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

   if(rcvr_type == FURUNO_RCVR) {
      send_furuno_cmd("GPtmq");
   }
   else if(rcvr_type == MOTO_RCVR) {
      send_moto_start("Gd");
      send_byte(0xFF);
      send_moto_end();
   }
   else if(rcvr_type == TM4_RCVR) {
      request_tm4_msg("57");
   }
   else if(rcvr_type == TSIP_RCVR) {
      if(ACU_GG) return;
      else if(ACU_360) return;
      else if(ACUTIME) ;
      else if(PALISADE) return;
      else if(SV6_FAMILY) return;
      send_tsip_start(0x8E);
      send_byte(0xA9);
      send_tsip_end();
   }
   else if(rcvr_type == UBX_RCVR) { 
      if     (have_ubx_tmode == 2) request_ubx_msg(UBX_CFG_TMODE2);  // M8T
      else if(have_ubx_tmode == 1) request_ubx_msg(UBX_CFG_TMODE);
      else {
         request_ubx_msg(UBX_CFG_TMODE2);  // M8T
         request_ubx_msg(UBX_CFG_TMODE);
      }
      request_ubx_msg(UBX_SVIN);
   }
   else if(rcvr_type == VENUS_RCVR) {
      if(saw_venus_raw) query_venus_msg(QUERY_VENUS_BASE);
      else              query_venus_msg(QUERY_VENUS_SURVEY);
   }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0x203733(%rip), %rax    # 0x29e11e
cmpb $0x0, (%rax)
je 0x9a9f5
jmp 0x9ac34
leaq 0x2fb804(%rip), %rax    # 0x396200
cmpb $0x0, (%rax)
je 0x9aa06
jmp 0x9ac34
leaq 0x1dd0a3(%rip), %rax    # 0x277ab0
cmpq $0x20000000, (%rax)     # imm = 0x20000000
jne 0x9aa27
leaq 0xea1d0(%rip), %rdi     # 0x184bed
callq 0x83270
jmp 0x9ac34
leaq 0x1dd082(%rip), %rax    # 0x277ab0
cmpq $0x20, (%rax)
jne 0x9aa54
leaq 0xe9717(%rip), %rdi     # 0x184152
callq 0x86190
movl $0xff, %edi
callq 0x7b210
callq 0x86230
jmp 0x9ac32
movabsq $0x400000000, %rcx      # imm = 0x400000000
leaq 0x1dd04b(%rip), %rax    # 0x277ab0
cmpq %rcx, (%rax)
jne 0x9aa7b
leaq 0xe95f5(%rip), %rdi     # 0x184066
callq 0x83970
jmp 0x9ac30
leaq 0x1dd02e(%rip), %rax    # 0x277ab0
cmpq $0x1, (%rax)
jne 0x9ab8d
leaq 0x1dd01d(%rip), %rax    # 0x277ab0
cmpq $0x1, (%rax)
jne 0x9aab6
leaq 0x1df714(%rip), %rax    # 0x27a1b4
cmpl $0x41, (%rax)
jne 0x9aab6
leaq 0x1dd02c(%rip), %rax    # 0x277ad8
cmpl $0x47, (%rax)
jne 0x9aab6
jmp 0x9ac34
leaq 0x1dcff3(%rip), %rax    # 0x277ab0
cmpq $0x1, (%rax)
jne 0x9aaec
leaq 0x1df6ea(%rip), %rax    # 0x27a1b4
cmpl $0x41, (%rax)
jne 0x9aaec
leaq 0x1dd002(%rip), %rax    # 0x277ad8
cmpl $0x33, (%rax)
je 0x9aae7
leaq 0x1dcff6(%rip), %rax    # 0x277ad8
cmpl $0x47, (%rax)
jne 0x9aaec
jmp 0x9ac34
leaq 0x1dcfbd(%rip), %rax    # 0x277ab0
cmpq $0x1, (%rax)
jne 0x9ab07
leaq 0x1df6b4(%rip), %rax    # 0x27a1b4
cmpl $0x41, (%rax)
jne 0x9ab07
jmp 0x9ab6b
leaq 0x1dcfa2(%rip), %rax    # 0x277ab0
cmpq $0x1, (%rax)
jne 0x9ab25
leaq 0x1df699(%rip), %rax    # 0x27a1b4
cmpl $0x50, (%rax)
jne 0x9ab25
jmp 0x9ac34
leaq 0x1dcf84(%rip), %rax    # 0x277ab0
cmpq $0x1, (%rax)
jne 0x9ab67
leaq 0x1df67b(%rip), %rax    # 0x27a1b4
cmpl $0x36, (%rax)
je 0x9ab62
leaq 0x1df66f(%rip), %rax    # 0x27a1b4
cmpl $0x33, (%rax)
je 0x9ab62
leaq 0x1df663(%rip), %rax    # 0x27a1b4
cmpl $0x50, (%rax)
je 0x9ab62
leaq 0x1df657(%rip), %rax    # 0x27a1b4
cmpl $0x41, (%rax)
jne 0x9ab67
jmp 0x9ac34
jmp 0x9ab69
jmp 0x9ab6b
jmp 0x9ab6d
jmp 0x9ab6f
movl $0x8e, %edi
callq 0x824f0
movl $0xa9, %edi
callq 0x7b210
callq 0x82590
jmp 0x9ac2e
leaq 0x1dcf1c(%rip), %rax    # 0x277ab0
cmpq $0x4, (%rax)
jne 0x9abec
leaq 0x2d19f3(%rip), %rax    # 0x36c594
cmpl $0x2, (%rax)
jne 0x9abb2
movl $0x63d, %edi            # imm = 0x63D
callq 0x85d00
jmp 0x9abe0
leaq 0x2d19db(%rip), %rax    # 0x36c594
cmpl $0x1, (%rax)
jne 0x9abca
movl $0x61d, %edi            # imm = 0x61D
callq 0x85d00
jmp 0x9abde
movl $0x63d, %edi            # imm = 0x63D
callq 0x85d00
movl $0x61d, %edi            # imm = 0x61D
callq 0x85d00
jmp 0x9abe0
movl $0xd04, %edi            # imm = 0xD04
callq 0x85d00
jmp 0x9ac2c
leaq 0x1dcebd(%rip), %rax    # 0x277ab0
cmpq $0x80, (%rax)
jne 0x9ac2a
leaq 0x3023d1(%rip), %rax    # 0x39cfd4
cmpl $0x0, (%rax)
je 0x9ac19
movl $0x23, %edi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x8b800
jmp 0x9ac28
movl $0x44, %edi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x8b800
jmp 0x9ac2a
jmp 0x9ac2c
jmp 0x9ac2e
jmp 0x9ac30
jmp 0x9ac32
jmp 0x9ac34
popq %rbp
retq
nopw %cs:(%rax,%rax)