// File: jkingan[P]ladyheather/heathgps.cpp
// Function: show_rcvr_rate()
void show_rcvr_rate()
{
int color;

   // show the receiver navigation rate above the screen receiver data block

   color = GREEN;
   if(last_plot_key) color = BLUE;

   if(ticc_port_open() || (enviro_mode() && (rcvr_type != THERMO_RCVR))) {
      if(ticc_port_open() && enviro_mode()) {
         vidstr(VAL_ROW+0, VAL_COL, color,  "Enviro & TICC   ");
         return;
      }
      else if(enviro_mode()) {
         vidstr(VAL_ROW+0, VAL_COL, color,  "Enviro sensor on");
         return;
      }
      else if(ticc_port_open()) {
         vidstr(VAL_ROW+0, VAL_COL, color,  "TICC port ADEVs ");
         return;
      }
   }

   if(have_nav_rate && (nav_rate != 1)) {
      if(nav_rate < 10.0) sprintf(out, "Rcvr rate:%3.1f Hz", nav_rate);
      else                sprintf(out, "Rcvr rate:%3d Hz", (int) nav_rate);
      vidstr(VAL_ROW+0, VAL_COL, color,  out);
   }
   else if((rcvr_type == CS_RCVR) && have_cs_cbtid) {
      sprintf(out, "CBT: %-13.13s", cs_cbtid);
      vidstr(VAL_ROW+0, VAL_COL, color, out);
   }
   else if(rcvr_type == THERMO_RCVR) {
      vidstr(VAL_ROW+0, VAL_COL, color,  "Sensor data     ");
   }
   else {
      vidstr(VAL_ROW+0, VAL_COL, color,  "Receiver data   ");
   }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl $0xa, -0x4(%rbp)
leaq 0x17797a(%rip), %rax    # 0x27a400
cmpl $0x0, (%rax)
je 0x102a92
movl $0x9, -0x4(%rbp)
callq 0x992e0
cmpl $0x0, %eax
jne 0x102abe
callq 0x83ad0
cmpl $0x0, %eax
je 0x102b46
leaq 0x174fff(%rip), %rax    # 0x277ab0
cmpq $0x80000, (%rax)        # imm = 0x80000
je 0x102b46
callq 0x992e0
cmpl $0x0, %eax
je 0x102af0
callq 0x83ad0
cmpl $0x0, %eax
je 0x102af0
movl -0x4(%rbp), %eax
xorl %edi, %edi
movl $0xf, %esi
leaq 0x8a294(%rip), %rcx     # 0x18cd77
movzbl %al, %edx
callq 0x10ee0
jmp 0x102c83
callq 0x83ad0
cmpl $0x0, %eax
je 0x102b18
movl -0x4(%rbp), %eax
xorl %edi, %edi
movl $0xf, %esi
leaq 0x8a27d(%rip), %rcx     # 0x18cd88
movzbl %al, %edx
callq 0x10ee0
jmp 0x102c83
callq 0x992e0
cmpl $0x0, %eax
je 0x102b40
movl -0x4(%rbp), %eax
xorl %edi, %edi
movl $0xf, %esi
leaq 0x8a266(%rip), %rcx     # 0x18cd99
movzbl %al, %edx
callq 0x10ee0
jmp 0x102c83
jmp 0x102b42
jmp 0x102b44
jmp 0x102b46
leaq 0x26995f(%rip), %rax    # 0x36c4ac
cmpl $0x0, (%rax)
je 0x102be8
leaq 0x1779db(%rip), %rax    # 0x27a538
movsd (%rax), %xmm0
movsd 0x6c4ff(%rip), %xmm1    # 0x16f068
ucomisd %xmm1, %xmm0
jne 0x102b73
jp 0x102b73
jmp 0x102be8
movsd 0x6c545(%rip), %xmm0    # 0x16f0c0
leaq 0x1779b6(%rip), %rax    # 0x27a538
ucomisd (%rax), %xmm0
jbe 0x102baa
leaq 0x1779a9(%rip), %rax    # 0x27a538
movsd (%rax), %xmm0
leaq 0x298866(%rip), %rdi    # 0x39b400
leaq 0x8a209(%rip), %rsi     # 0x18cdaa
movb $0x1, %al
callq 0x9060
jmp 0x102bca
leaq 0x177987(%rip), %rax    # 0x27a538
cvttsd2si (%rax), %edx
leaq 0x298844(%rip), %rdi    # 0x39b400
leaq 0x8a1fa(%rip), %rsi     # 0x18cdbd
movb $0x0, %al
callq 0x9060
movl -0x4(%rbp), %eax
xorl %edi, %edi
movl $0xf, %esi
leaq 0x298825(%rip), %rcx    # 0x39b400
movzbl %al, %edx
callq 0x10ee0
jmp 0x102c83
leaq 0x174ec1(%rip), %rax    # 0x277ab0
cmpq $0x20000, (%rax)        # imm = 0x20000
jne 0x102c3b
leaq 0x176fe9(%rip), %rax    # 0x279be8
cmpl $0x0, (%rax)
je 0x102c3b
leaq 0x2987f5(%rip), %rdi    # 0x39b400
leaq 0x8a1bc(%rip), %rsi     # 0x18cdce
leaq 0x299197(%rip), %rdx    # 0x39bdb0
movb $0x0, %al
callq 0x9060
movl -0x4(%rbp), %eax
xorl %edi, %edi
movl $0xf, %esi
leaq 0x2987cf(%rip), %rcx    # 0x39b400
movzbl %al, %edx
callq 0x10ee0
jmp 0x102c81
leaq 0x174e6e(%rip), %rax    # 0x277ab0
cmpq $0x80000, (%rax)        # imm = 0x80000
jne 0x102c66
movl -0x4(%rbp), %eax
xorl %edi, %edi
movl $0xf, %esi
leaq 0x8a180(%rip), %rcx     # 0x18cddc
movzbl %al, %edx
callq 0x10ee0
jmp 0x102c7f
movl -0x4(%rbp), %eax
xorl %edi, %edi
movl $0xf, %esi
leaq 0x8a176(%rip), %rcx     # 0x18cded
movzbl %al, %edx
callq 0x10ee0
jmp 0x102c81
jmp 0x102c83
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)