// File: /workspace/github_cpp_makefile_star2_O1/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 0x15ea58(%rip), %rax    # 0x21b220
xorl %r14d, %r14d
cmpl $0x1, (%rax)
adcl $0x9, %r14d
leaq 0x181bbf(%rip), %rax    # 0x23e398
movq (%rax), %rax
testq %rax, %rax
jne 0xbc869
leaq 0x251af4(%rip), %rcx    # 0x30e2e0
cmpl $0x0, 0x1e114(%rcx)
je 0xbc7fe
cmpl $0x0, 0x1e110(%rcx)
jg 0xbc852
cmpl $0x0, 0x225d4(%rcx)
setne %dl
cmpl $0x0, 0x225d0(%rcx)
setg %sil
andb %dl, %sil
leaq 0x166def(%rip), %rdx    # 0x22360c
cmpl $0x0, (%rdx)
setne %dl
cmpl $0x0, 0x225cc(%rcx)
setne %dil
andb %dl, %dil
orb %sil, %dil
cmpb $0x1, %dil
jne 0xbc95c
leaq 0x15c08b(%rip), %rdx    # 0x2188d0
cmpq $0x80000, (%rdx)        # imm = 0x80000
je 0xbc95c
testq %rax, %rax
jne 0xbc869
cmpl $0x0, 0x1e114(%rcx)
je 0xbc8c2
cmpl $0x0, 0x1e110(%rcx)
jle 0xbc8c2
leaq 0x251a70(%rip), %rsi    # 0x30e2e0
cmpl $0x0, 0x225d4(%rsi)
sete %cl
cmpl $0x0, 0x225d0(%rsi)
setle %dl
leaq 0x166d81(%rip), %rdi    # 0x22360c
cmpl $0x0, (%rdi)
sete %dil
cmpl $0x0, 0x225cc(%rsi)
sete %sil
orb %dil, %sil
cmpb $0x1, %sil
jne 0xbc93c
orb %dl, %cl
je 0xbc93c
leaq 0x15c017(%rip), %rcx    # 0x2188d0
cmpq $0x80000, (%rcx)        # imm = 0x80000
je 0xbc93c
leaq 0x251a17(%rip), %rcx    # 0x30e2e0
cmpl $0x0, 0x225d4(%rcx)
sete %dl
cmpl $0x0, 0x225d0(%rcx)
setle %sil
leaq 0x166d27(%rip), %rdi    # 0x22360c
cmpl $0x0, (%rdi)
sete %dil
cmpl $0x0, 0x225cc(%rcx)
sete %r8b
orb %dil, %r8b
cmpb $0x1, %r8b
jne 0xbc94c
orb %sil, %dl
je 0xbc94c
leaq 0x15bfc4(%rip), %rdx    # 0x2188d0
cmpq $0x80000, (%rdx)        # imm = 0x80000
je 0xbc94c
testq %rax, %rax
jne 0xbc92c
cmpl $0x0, 0x1e114(%rcx)
je 0xbc95c
cmpl $0x0, 0x1e110(%rcx)
jle 0xbc95c
movzbl %r14b, %edx
leaq 0x6cf8c(%rip), %rcx     # 0x1298c3
jmp 0xbca2a
movzbl %r14b, %edx
leaq 0x6cf5a(%rip), %rcx     # 0x1298a1
jmp 0xbca2a
movzbl %r14b, %edx
leaq 0x6cf5b(%rip), %rcx     # 0x1298b2
jmp 0xbca2a
leaq 0x250969(%rip), %rax    # 0x30d2cc
cmpl $0x0, (%rax)
je 0xbc9a4
leaq 0x15e9e9(%rip), %rax    # 0x21b358
movsd (%rax), %xmm0
ucomisd 0x4c6f5(%rip), %xmm0    # 0x109070
jne 0xbc97f
jnp 0xbc9a4
movsd 0x4c721(%rip), %xmm1    # 0x1090a8
ucomisd %xmm0, %xmm1
jbe 0xbca06
leaq 0x27f88c(%rip), %rdi    # 0x33c220
leaq 0x6cf39(%rip), %rsi     # 0x1298d4
movb $0x1, %al
callq 0x9060
jmp 0xbca1f
leaq 0x15bf25(%rip), %rax    # 0x2188d0
movq (%rax), %rax
cmpq $0x20000, %rax          # imm = 0x20000
jne 0xbc9f1
leaq 0x15e04b(%rip), %rcx    # 0x21aa08
cmpl $0x0, (%rcx)
je 0xbc9f1
leaq 0x27f857(%rip), %rbx    # 0x33c220
leaq 0x6cf28(%rip), %rsi     # 0x1298f8
leaq 0x2801f9(%rip), %rdx    # 0x33cbd0
movq %rbx, %rdi
xorl %eax, %eax
callq 0x9060
movzbl %r14b, %edx
xorl %edi, %edi
movl $0xf, %esi
movq %rbx, %rcx
jmp 0xbca31
movzbl %r14b, %edx
cmpq $0x80000, %rax          # imm = 0x80000
jne 0xbca3a
leaq 0x6cf02(%rip), %rcx     # 0x129906
jmp 0xbca2a
cvttsd2si %xmm0, %edx
leaq 0x27f80f(%rip), %rdi    # 0x33c220
leaq 0x6cecf(%rip), %rsi     # 0x1298e7
xorl %eax, %eax
callq 0x9060
movzbl %r14b, %edx
leaq 0x27f7f6(%rip), %rcx    # 0x33c220
xorl %edi, %edi
movl $0xf, %esi
popq %rbx
popq %r14
popq %rbp
jmp 0xe7d0
leaq 0x6ced6(%rip), %rcx     # 0x129917
jmp 0xbca2a