// File: jkingan[P]ladyheather/heathgps.cpp
// Function: request_discipline_params(unsigned char)
void request_discipline_params(u08 type)
{
   if(luxor) return;
   if(no_poll) return;
   if(res_t) return;

   if(rcvr_type == PRS_RCVR) {
      if     (type == 0x00) {   // time constant
         queue_prs_cmd("PT?", PRS_PT_MSG);
      }
      else if(type == 0x01) {  // gain
         queue_prs_cmd("GA?", PRS_GA_MSG);
      }
      else if(type == 0x02) {  // stability
         queue_prs_cmd("PF?", PRS_PF_MSG);
      }
      else if(type == 0x03) {  // integrator
         queue_prs_cmd("PI?", PRS_PI_MSG);
      }
   }
   else if(rcvr_type == STAR_RCVR) {
      if(type == 0x00) {
         request_rcvr_config(5577);
      }
   }
   else if(rcvr_type == TSIP_RCVR) {
      if(ACU_GG) return;
      if(ACU_360) return;
      if(ACUTIME) return;
      if(PALISADE) return;
      if(SV6_FAMILY) return;
      send_tsip_start(0x8E);
      send_byte(0xA8);
      send_byte(type);
      send_tsip_end();
   }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movb %dil, %al
movb %al, -0x1(%rbp)
leaq 0x204669(%rip), %rax    # 0x29e11e
cmpb $0x0, (%rax)
je 0x99abf
jmp 0x99ca1
leaq 0x2fc73a(%rip), %rax    # 0x396200
cmpb $0x0, (%rax)
je 0x99ad0
jmp 0x99ca1
leaq 0x1de00d(%rip), %rax    # 0x277ae4
cmpb $0x0, (%rax)
je 0x99ae1
jmp 0x99ca1
leaq 0x1ddfc8(%rip), %rax    # 0x277ab0
cmpq $0x1000000, (%rax)      # imm = 0x1000000
jne 0x99b6a
movzbl -0x1(%rbp), %eax
cmpl $0x0, %eax
jne 0x99b0d
leaq 0xeb0c5(%rip), %rdi     # 0x184bc6
movl $0x20b, %esi            # imm = 0x20B
callq 0x82fd0
jmp 0x99b65
movzbl -0x1(%rbp), %eax
cmpl $0x1, %eax
jne 0x99b29
leaq 0xeb0ad(%rip), %rdi     # 0x184bca
movl $0x200, %esi            # imm = 0x200
callq 0x82fd0
jmp 0x99b63
movzbl -0x1(%rbp), %eax
cmpl $0x2, %eax
jne 0x99b45
leaq 0xeb095(%rip), %rdi     # 0x184bce
movl $0x20c, %esi            # imm = 0x20C
callq 0x82fd0
jmp 0x99b61
movzbl -0x1(%rbp), %eax
cmpl $0x3, %eax
jne 0x99b5f
leaq 0xeb07d(%rip), %rdi     # 0x184bd2
movl $0x20d, %esi            # imm = 0x20D
callq 0x82fd0
jmp 0x99b61
jmp 0x99b63
jmp 0x99b65
jmp 0x99ca1
leaq 0x1ddf3f(%rip), %rax    # 0x277ab0
cmpq $0x1000, (%rax)         # imm = 0x1000
jne 0x99b92
movzbl -0x1(%rbp), %eax
cmpl $0x0, %eax
jne 0x99b8d
movl $0x15c9, %edi           # imm = 0x15C9
callq 0x8c270
jmp 0x99c9f
leaq 0x1ddf17(%rip), %rax    # 0x277ab0
cmpq $0x1, (%rax)
jne 0x99c9d
leaq 0x1ddf06(%rip), %rax    # 0x277ab0
cmpq $0x1, (%rax)
jne 0x99bcd
leaq 0x1e05fd(%rip), %rax    # 0x27a1b4
cmpl $0x41, (%rax)
jne 0x99bcd
leaq 0x1ddf15(%rip), %rax    # 0x277ad8
cmpl $0x47, (%rax)
jne 0x99bcd
jmp 0x99ca1
leaq 0x1ddedc(%rip), %rax    # 0x277ab0
cmpq $0x1, (%rax)
jne 0x99c03
leaq 0x1e05d3(%rip), %rax    # 0x27a1b4
cmpl $0x41, (%rax)
jne 0x99c03
leaq 0x1ddeeb(%rip), %rax    # 0x277ad8
cmpl $0x33, (%rax)
je 0x99bfe
leaq 0x1ddedf(%rip), %rax    # 0x277ad8
cmpl $0x47, (%rax)
jne 0x99c03
jmp 0x99ca1
leaq 0x1ddea6(%rip), %rax    # 0x277ab0
cmpq $0x1, (%rax)
jne 0x99c21
leaq 0x1e059d(%rip), %rax    # 0x27a1b4
cmpl $0x41, (%rax)
jne 0x99c21
jmp 0x99ca1
leaq 0x1dde88(%rip), %rax    # 0x277ab0
cmpq $0x1, (%rax)
jne 0x99c3c
leaq 0x1e057f(%rip), %rax    # 0x27a1b4
cmpl $0x50, (%rax)
jne 0x99c3c
jmp 0x99ca1
leaq 0x1dde6d(%rip), %rax    # 0x277ab0
cmpq $0x1, (%rax)
jne 0x99c7b
leaq 0x1e0564(%rip), %rax    # 0x27a1b4
cmpl $0x36, (%rax)
je 0x99c79
leaq 0x1e0558(%rip), %rax    # 0x27a1b4
cmpl $0x33, (%rax)
je 0x99c79
leaq 0x1e054c(%rip), %rax    # 0x27a1b4
cmpl $0x50, (%rax)
je 0x99c79
leaq 0x1e0540(%rip), %rax    # 0x27a1b4
cmpl $0x41, (%rax)
jne 0x99c7b
jmp 0x99ca1
movl $0x8e, %edi
callq 0x824f0
movl $0xa8, %edi
callq 0x7b210
movzbl -0x1(%rbp), %edi
callq 0x7b210
callq 0x82590
jmp 0x99c9f
jmp 0x99ca1
addq $0x10, %rsp
popq %rbp
retq
nopw (%rax,%rax)