// File: /workspace/github_cpp_makefile_star2_O3/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
pushq %r14
pushq %rbx
leaq 0x15e377(%rip), %rax    # 0x21b220
xorl %r14d, %r14d
cmpl $0x1, (%rax)
adcl $0x9, %r14d
leaq 0x1814de(%rip), %rax    # 0x23e398
movq (%rax), %rcx
testq %rcx, %rcx
je 0xbcef1
leaq 0x15ba07(%rip), %rax    # 0x2188d0
movq (%rax), %rax
leaq 0x25140d(%rip), %rdi    # 0x30e2e0
movl 0x225d4(%rdi), %esi
movl 0x225cc(%rdi), %edx
movl 0x225d0(%rdi), %edi
leaq 0x166720(%rip), %r8     # 0x22360c
movl (%r8), %r8d
jmp 0xbcf3d
leaq 0x2513e8(%rip), %r9     # 0x30e2e0
cmpl $0x0, 0x1e114(%r9)
leaq 0x15b9c9(%rip), %rax    # 0x2188d0
movq (%rax), %rax
movl 0x225d4(%r9), %esi
movl 0x225d0(%r9), %edi
leaq 0x1666ed(%rip), %rdx    # 0x22360c
movl (%rdx), %r8d
movl 0x225cc(%r9), %edx
je 0xbcfe0
cmpl $0x0, 0x1e110(%r9)
jle 0xbcfe0
cmpq $0x80000, %rax          # imm = 0x80000
setne %r9b
testl %esi, %esi
sete %r10b
testl %edi, %edi
setle %r11b
orb %r10b, %r11b
testl %r8d, %r8d
sete %r10b
testl %edx, %edx
sete %bl
orb %r10b, %bl
andb %r11b, %bl
testb %r9b, %bl
je 0xbcfc0
testl %esi, %esi
sete %sil
testl %edi, %edi
setle %dil
testl %r8d, %r8d
sete %r8b
testl %edx, %edx
sete %dl
orb %r8b, %dl
cmpb $0x1, %dl
jne 0xbcfd0
orb %dil, %sil
je 0xbcfd0
testq %rcx, %rcx
jne 0xbcfb0
leaq 0x251342(%rip), %rcx    # 0x30e2e0
cmpl $0x0, 0x1e114(%rcx)
je 0xbd015
cmpl $0x0, 0x1e110(%rcx)
jle 0xbd015
movzbl %r14b, %edx
leaq 0x6c9d3(%rip), %rcx     # 0x12998e
jmp 0xbd0d9
movzbl %r14b, %edx
leaq 0x6c9a1(%rip), %rcx     # 0x12996c
jmp 0xbd0d9
movzbl %r14b, %edx
leaq 0x6c9a2(%rip), %rcx     # 0x12997d
jmp 0xbd0d9
testl %esi, %esi
setne %r9b
testl %edi, %edi
setg %r10b
andb %r9b, %r10b
testl %r8d, %r8d
setne %r9b
testl %edx, %edx
setne %r11b
andb %r9b, %r11b
orb %r10b, %r11b
cmpq $0x80000, %rax          # imm = 0x80000
setne %r9b
testb %r9b, %r11b
jne 0xbcf6d
leaq 0x2502b0(%rip), %rcx    # 0x30d2cc
cmpl $0x0, (%rcx)
je 0xbd05d
leaq 0x15e330(%rip), %rcx    # 0x21b358
movsd (%rcx), %xmm0
ucomisd 0x4c03c(%rip), %xmm0    # 0x109070
jne 0xbd038
jnp 0xbd05d
movsd 0x4c068(%rip), %xmm1    # 0x1090a8
ucomisd %xmm0, %xmm1
jbe 0xbd0b5
leaq 0x27f1d3(%rip), %rdi    # 0x33c220
leaq 0x6c94b(%rip), %rsi     # 0x12999f
movb $0x1, %al
callq 0x9060
jmp 0xbd0ce
cmpq $0x20000, %rax          # imm = 0x20000
jne 0xbd0a0
leaq 0x15d99c(%rip), %rcx    # 0x21aa08
cmpl $0x0, (%rcx)
je 0xbd0a0
leaq 0x27f1a8(%rip), %rbx    # 0x33c220
leaq 0x6c944(%rip), %rsi     # 0x1299c3
leaq 0x27fb4a(%rip), %rdx    # 0x33cbd0
movq %rbx, %rdi
xorl %eax, %eax
callq 0x9060
movzbl %r14b, %edx
xorl %edi, %edi
movl $0xf, %esi
movq %rbx, %rcx
jmp 0xbd0e0
movzbl %r14b, %edx
cmpq $0x80000, %rax          # imm = 0x80000
jne 0xbd0e9
leaq 0x6c91e(%rip), %rcx     # 0x1299d1
jmp 0xbd0d9
cvttsd2si %xmm0, %edx
leaq 0x27f160(%rip), %rdi    # 0x33c220
leaq 0x6c8eb(%rip), %rsi     # 0x1299b2
xorl %eax, %eax
callq 0x9060
movzbl %r14b, %edx
leaq 0x27f147(%rip), %rcx    # 0x33c220
xorl %edi, %edi
movl $0xf, %esi
popq %rbx
popq %r14
popq %rbp
jmp 0xe787
leaq 0x6c8f2(%rip), %rcx     # 0x1299e2
jmp 0xbd0d9