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

   if(rcvr_type == ESIP_RCVR) {
//    send_esip_cmd("PERDCFG,NMEAOUT,GSA,0");
//    send_esip_cmd("PERDCFG,NMEAOUT,GSV,0");
   }
   else if(rcvr_type == FURUNO_RCVR) {
      send_furuno_cmd("GPint,GSA00,GSV00,acc00,anc00,wav00");
      send_furuno_cmd("GPwaq");
      send_furuno_cmd("GPmgq");
      send_furuno_cmd("GPpsq");
      send_furuno_cmd("GPprq");
   }
   else if(rcvr_type == MOTO_RCVR) {
      if(1 || (user_set_raw_rate == 0)) { 
         send_moto_start("Bb");  // sat visibility data
         send_byte(0);
         send_moto_end();
      }
   }
   else if(rcvr_type == NVS_RCVR) {
      send_nvs_start(0x24);
      send_nvs_end();
   }
   else if(rcvr_type == RFTG_RCVR) {
      request_rftg_sats();
set_rftg_normal();
   }
   else if(rcvr_type == TRUE_RCVR) {
      send_true_cmd("$GETPOS");  // get position
   }
   else if(rcvr_type == TSIP_RCVR) {
      send_tsip_start(0x24);
      send_tsip_end();
   }
   else if(rcvr_type == UBX_RCVR) {
      request_ubx_msg(UBX_DOP);
   }
   else if(rcvr_type == ZODIAC_RCVR) {
      query_zod_msg(ZOD_SNR_MSG);
      query_zod_msg(ZOD_VIS_MSG);
//query_zod_msg(ZOD_TRAIM_CONFIG_MSG);  //zork
   }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0x212343(%rip), %rax    # 0x29e11e
cmpb $0x0, (%rax)
je 0x8bde5
jmp 0x8bf53
leaq 0x30a414(%rip), %rax    # 0x396200
cmpb $0x0, (%rax)
je 0x8bdf6
jmp 0x8bf53
movl $0x80000000, %ecx       # imm = 0x80000000
leaq 0x1ebcae(%rip), %rax    # 0x277ab0
cmpq %rcx, (%rax)
jne 0x8be0c
jmp 0x8bf53
leaq 0x1ebc9d(%rip), %rax    # 0x277ab0
cmpq $0x20000000, (%rax)     # imm = 0x20000000
jne 0x8be5d
leaq 0xf7d97(%rip), %rdi     # 0x183bba
callq 0x83270
leaq 0xf7daf(%rip), %rdi     # 0x183bde
callq 0x83270
leaq 0xf7da9(%rip), %rdi     # 0x183be4
callq 0x83270
leaq 0xf7da3(%rip), %rdi     # 0x183bea
callq 0x83270
leaq 0xf7d9d(%rip), %rdi     # 0x183bf0
callq 0x83270
jmp 0x8bf51
leaq 0x1ebc4c(%rip), %rax    # 0x277ab0
cmpq $0x20, (%rax)
jne 0x8be87
leaq 0xf7d85(%rip), %rdi     # 0x183bf6
callq 0x86190
xorl %edi, %edi
callq 0x7b210
callq 0x86230
jmp 0x8bf4f
leaq 0x1ebc22(%rip), %rax    # 0x277ab0
cmpq $0x800, (%rax)          # imm = 0x800
jne 0x8beab
movl $0x24, %edi
callq 0x824f0
callq 0x82630
jmp 0x8bf4d
leaq 0x1ebbfe(%rip), %rax    # 0x277ab0
cmpq $0x400000, (%rax)       # imm = 0x400000
jne 0x8beca
callq 0x8b130
callq 0x8b030
jmp 0x8bf4b
leaq 0x1ebbdf(%rip), %rax    # 0x277ab0
cmpq $0x200000, (%rax)       # imm = 0x200000
jne 0x8bee8
leaq 0xf7d18(%rip), %rdi     # 0x183bf9
callq 0x83580
jmp 0x8bf49
leaq 0x1ebbc1(%rip), %rax    # 0x277ab0
cmpq $0x1, (%rax)
jne 0x8bf06
movl $0x24, %edi
callq 0x824f0
callq 0x82590
jmp 0x8bf47
leaq 0x1ebba3(%rip), %rax    # 0x277ab0
cmpq $0x4, (%rax)
jne 0x8bf1f
movl $0x104, %edi            # imm = 0x104
callq 0x85d00
jmp 0x8bf45
leaq 0x1ebb8a(%rip), %rax    # 0x277ab0
cmpq $0x100, (%rax)          # imm = 0x100
jne 0x8bf43
movl $0x3ea, %edi            # imm = 0x3EA
callq 0x8b850
movl $0x3eb, %edi            # imm = 0x3EB
callq 0x8b850
jmp 0x8bf45
jmp 0x8bf47
jmp 0x8bf49
jmp 0x8bf4b
jmp 0x8bf4d
jmp 0x8bf4f
jmp 0x8bf51
jmp 0x8bf53
popq %rbp
retq
nopw %cs:(%rax,%rax)