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

   if(rcvr_type == TSIP_RCVR) {
      if(ACU_GG) return;
      if(ACU_360) return;
      if(ACUTIME) return;     // responds to filter commands, but settings do not stick
      if(PALISADE) return;

      if(ACUTIME) {
         send_tsip_start(0x70);
         send_tsip_end();
      }
      else if(SV6_FAMILY) {
         request_alt_filter();
         request_posn_filter();
      }
      else {
         send_tsip_start(0x70);
         send_tsip_end();
      }
   }
   else if(rcvr_type == MOTO_RCVR) {
      send_moto_start("AN");  // marine (velocity) filter
      send_byte(0xFF);
      send_moto_end();

      send_moto_start("AQ");  // position filter
      send_byte(0xFF);
      send_moto_end();

      send_moto_start("Aq");  // ionosphere corrections
      send_byte(0xFF);
      send_moto_end();

      send_moto_start("Ar");  // fix type
      send_byte(0xFF);
      send_moto_end();
   }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0x20de23(%rip), %rax    # 0x29e11e
cmpb $0x0, (%rax)
je 0x90305
jmp 0x904c4
leaq 0x305ef4(%rip), %rax    # 0x396200
cmpb $0x0, (%rax)
je 0x90316
jmp 0x904c4
leaq 0x1e7793(%rip), %rax    # 0x277ab0
cmpq $0x1, (%rax)
jne 0x90449
leaq 0x1e7782(%rip), %rax    # 0x277ab0
cmpq $0x1, (%rax)
jne 0x90351
leaq 0x1e9e79(%rip), %rax    # 0x27a1b4
cmpl $0x41, (%rax)
jne 0x90351
leaq 0x1e7791(%rip), %rax    # 0x277ad8
cmpl $0x47, (%rax)
jne 0x90351
jmp 0x904c4
leaq 0x1e7758(%rip), %rax    # 0x277ab0
cmpq $0x1, (%rax)
jne 0x90387
leaq 0x1e9e4f(%rip), %rax    # 0x27a1b4
cmpl $0x41, (%rax)
jne 0x90387
leaq 0x1e7767(%rip), %rax    # 0x277ad8
cmpl $0x33, (%rax)
je 0x90382
leaq 0x1e775b(%rip), %rax    # 0x277ad8
cmpl $0x47, (%rax)
jne 0x90387
jmp 0x904c4
leaq 0x1e7722(%rip), %rax    # 0x277ab0
cmpq $0x1, (%rax)
jne 0x903a5
leaq 0x1e9e19(%rip), %rax    # 0x27a1b4
cmpl $0x41, (%rax)
jne 0x903a5
jmp 0x904c4
leaq 0x1e7704(%rip), %rax    # 0x277ab0
cmpq $0x1, (%rax)
jne 0x903c3
leaq 0x1e9dfb(%rip), %rax    # 0x27a1b4
cmpl $0x50, (%rax)
jne 0x903c3
jmp 0x904c4
leaq 0x1e76e6(%rip), %rax    # 0x277ab0
cmpq $0x1, (%rax)
jne 0x903ed
leaq 0x1e9ddd(%rip), %rax    # 0x27a1b4
cmpl $0x41, (%rax)
jne 0x903ed
movl $0x70, %edi
callq 0x824f0
callq 0x82590
jmp 0x90447
leaq 0x1e76bc(%rip), %rax    # 0x277ab0
cmpq $0x1, (%rax)
jne 0x90436
leaq 0x1e9db3(%rip), %rax    # 0x27a1b4
cmpl $0x36, (%rax)
je 0x9042a
leaq 0x1e9da7(%rip), %rax    # 0x27a1b4
cmpl $0x33, (%rax)
je 0x9042a
leaq 0x1e9d9b(%rip), %rax    # 0x27a1b4
cmpl $0x50, (%rax)
je 0x9042a
leaq 0x1e9d8f(%rip), %rax    # 0x27a1b4
cmpl $0x41, (%rax)
jne 0x90436
callq 0x901f0
callq 0x901b0
jmp 0x90445
movl $0x70, %edi
callq 0x824f0
callq 0x82590
jmp 0x90447
jmp 0x904c4
leaq 0x1e7660(%rip), %rax    # 0x277ab0
cmpq $0x20, (%rax)
jne 0x904c2
leaq 0xf713d(%rip), %rdi     # 0x18759a
callq 0x86190
movl $0xff, %edi
callq 0x7b210
callq 0x86230
leaq 0xf3b8e(%rip), %rdi     # 0x184006
callq 0x86190
movl $0xff, %edi
callq 0x7b210
callq 0x86230
leaq 0xf3b76(%rip), %rdi     # 0x184009
callq 0x86190
movl $0xff, %edi
callq 0x7b210
callq 0x86230
leaq 0xf3b5e(%rip), %rdi     # 0x18400c
callq 0x86190
movl $0xff, %edi
callq 0x7b210
callq 0x86230
jmp 0x904c4
popq %rbp
retq
nopw %cs:(%rax,%rax)