// File: /workspace/github_cpp_makefile_star2_O2/jkingan[P]ladyheather/heather.cpp
// Function: fmt_osc_val(int, char*, double)
void fmt_osc_val(int stat, char *id, double val)
{
char *s;

   if(stat) s = "";
   else if(plot[OSC].show_deriv) s = "*";
   else if(plot[OSC].show_freq) s = "#";
   else if(plot[OSC].drift_rate) s = "=";
   else s = ":";

   if(luxor) {
      if((val >= 100000.0) || (val <= (-10000.0))) {
         if(stat) sprintf(out, "%s%s%8.3f%s", id,s, val, plot[OSC].units);
         else     sprintf(out, "%s%s%7.3f%s", id,s, val, plot[OSC].units);
      }
      else if((val >= 10000.0) || (val <= (-1000.0))) {
         if(stat) sprintf(out, "%s%s%8.3f%s", id,s, val, plot[OSC].units);
         else     sprintf(out, "%s%s%7.3f%s", id,s, val, plot[OSC].units);
      }
      else if((val >= 1000.0) || (val <= (-100.0))) {
         if(stat) sprintf(out, "%s%s%8.3f%s", id,s, val, plot[OSC].units);
         else     sprintf(out, "%s%s%7.3f%s", id,s, val, plot[OSC].units);
      }
      else {
         if(stat) sprintf(out, "%s%s%8.3f%s", id,s, val, plot[OSC].units);
         else     sprintf(out, "%s%s%7.3f%s", id,s, val, plot[OSC].units);
      }
   }
   else if(rcvr_type == CS_RCVR) {
      if((val >= 100.0) || (val <= (-10.0))) {
         sprintf(out, "%s%s%6.1f%s", id,s, val, ppt_string);
      }
      else if((val >= 10.0) || (val <= (-1.0))) {
         sprintf(out, "%s%s%6.2f%s", id,s, val, ppt_string);
      }
      else {
         sprintf(out, "%s%s%6.3f%s", id,s, val, ppt_string);
      }
   }
   else if((rcvr_type == TICC_RCVR) || (rcvr_type == ZODIAC_RCVR)) {
      if((val >= 100000.0) || (val <= (-10000.0))) {
         sprintf(out, "%s%s%9.1f%s", id,s, val, ppt_string);
      }
      else if((val >= 10000.0) || (val <= (-1000.0))) {
         sprintf(out, "%s%s%9.2f%s", id,s, val, ppt_string);
      }
      else if((val >= 1000.0) || (val <= (-100.0))) {
         sprintf(out, "%s%s%9.3f%s", id,s, val, ppt_string);
      }
      else if((val >= 100.0) || (val <= (-10.0))) {
         sprintf(out, "%s%s%9.4f%s", id,s, val, ppt_string);
      }
      else if((val >= 10.0) || (val <= (-1.0))) {
         sprintf(out, "%s%s%9.5f%s", id,s, val, ppt_string);
      }
      else {
         sprintf(out, "%s%s%9.6f%s", id,s, val, ppt_string);
      }
   }
   else if((rcvr_type == VENUS_RCVR) && saw_venus_raw) {
      sprintf(out, "%s%s%.5f %s", id,s, val, plot[OSC].units);
   }
   else if(TIMING_RCVR) {
      if((val >= 100000.0) || (val <= (-10000.0))) {
         sprintf(out, "%s%s%11.3f%s", id,s, val, ppt_string);
      }
      else if((val >= 10000.0) || (val <= (-1000.0))) {
         sprintf(out, "%s%s%11.4f%s", id,s, val, ppt_string);
      }
      else if((val >= 1000.0) || (val <= (-100.0))) {
         sprintf(out, "%s%s%11.5f%s", id,s, val, ppt_string);
      }
      else if((val >= 100.0) || (val <= (-10.0))) {
         sprintf(out, "%s%s%11.6f%s", id,s, val, ppt_string);
      }
      else if((val >= 10.0) || (val <= (-1.0))) {
         sprintf(out, "%s%s%11.7f%s", id,s, val, ppt_string);
      }
      else {
         sprintf(out, "%s%s%11.8f%s", id,s, val, ppt_string);
      }
   }
   else if(rcvr_type == X72_RCVR) {  // xxxxx
      sprintf(out, "%s%s%.5g %s", id,s, val, plot[OSC].units);
   }
   else {
      val *= 1000.0;

      if((val >= 100000.0) || (val <= (-10000.0))) {
         sprintf(out, "%s%s%11.3f%s", id,s, val, ppt_string);
      }
      else if((val >= 10000.0) || (val <= (-1000.0))) {
         sprintf(out, "%s%s%11.4f%s", id,s, val, ppt_string);
      }
      else if((val >= 1000.0) || (val <= (-100.0))) {
         sprintf(out, "%s%s%11.5f%s", id,s, val, ppt_string);
      }
      else if((val >= 100.0) || (val <= (-10.0))) {
         sprintf(out, "%s%s%11.6f%s", id,s, val, ppt_string);
      }
      else if((val >= 10.0) || (val <= (-1.0))) {
         sprintf(out, "%s%s%11.7f%s", id,s, val, ppt_string);
      }
      else {
         sprintf(out, "%s%s%11.8f%s", id,s, val, ppt_string);
      }
   }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rsi, %rdx
testl %edi, %edi
je 0x12c2f
leaq 0x108d89(%rip), %rcx    # 0x11b9b6
jmp 0x12c75
cmpl $0x0, 0x1352ae(%rip)    # 0x147ee4
je 0x12c41
leaq 0xf2be7(%rip), %rcx     # 0x105826
jmp 0x12c75
cmpl $0x0, 0x1352a0(%rip)    # 0x147ee8
je 0x12c53
leaq 0xe4907(%rip), %rcx     # 0xf7558
jmp 0x12c75
xorpd %xmm1, %xmm1
ucomisd 0x135259(%rip), %xmm1   # 0x147eb8
leaq 0xe4d6d(%rip), %rax     # 0xf79d3
leaq 0xfd1dc(%rip), %rcx     # 0x10fe49
cmovneq %rax, %rcx
cmovpq %rax, %rcx
cmpb $0x0, 0x2162c2(%rip)    # 0x228f3e
je 0x12cef
ucomisd 0xe0442(%rip), %xmm0    # 0xf30c8
jae 0x12ccd
movsd 0xe0440(%rip), %xmm1    # 0xf30d0
ucomisd %xmm0, %xmm1
jae 0x12ccd
ucomisd 0xe043a(%rip), %xmm0    # 0xf30d8
jae 0x12ccd
movsd 0xe0438(%rip), %xmm1    # 0xf30e0
ucomisd %xmm0, %xmm1
jae 0x12ccd
ucomisd 0xe0382(%rip), %xmm0    # 0xf3038
movq 0x135163(%rip), %r8     # 0x147e20
jae 0x12cd4
movsd 0xe0421(%rip), %xmm1    # 0xf30e8
ucomisd %xmm0, %xmm1
jmp 0x12cd4
movq 0x13514c(%rip), %r8     # 0x147e20
testl %edi, %edi
je 0x12d70
leaq 0x31353d(%rip), %rdi    # 0x326220
leaq 0xe16f7(%rip), %rsi     # 0xf43e1
jmp 0x130de
movq 0x1efbda(%rip), %rax    # 0x2028d0
cmpq $0x100, %rax            # imm = 0x100
je 0x12d83
cmpq $0x10000, %rax          # imm = 0x10000
je 0x12d83
cmpq $0x20000, %rax          # imm = 0x20000
jne 0x12e57
ucomisd 0xe0342(%rip), %xmm0    # 0xf3060
jae 0x12e9c
movsd 0xe03c4(%rip), %xmm1    # 0xf30f0
ucomisd %xmm0, %xmm1
jae 0x12e9c
ucomisd 0xe036a(%rip), %xmm0    # 0xf30a8
movq 0x3168db(%rip), %r8     # 0x329620
jae 0x12fc1
movsd 0xe03a5(%rip), %xmm1    # 0xf30f8
ucomisd %xmm0, %xmm1
jae 0x12fc1
leaq 0x3134bc(%rip), %rdi    # 0x326220
leaq 0xe16a6(%rip), %rsi     # 0xf4411
jmp 0x130de
leaq 0x3134a9(%rip), %rdi    # 0x326220
leaq 0xe166f(%rip), %rsi     # 0xf43ed
jmp 0x130de
ucomisd 0xe033d(%rip), %xmm0    # 0xf30c8
jae 0x12e3d
movsd 0xe0337(%rip), %xmm1    # 0xf30d0
ucomisd %xmm0, %xmm1
jae 0x12e3d
ucomisd 0xe032d(%rip), %xmm0    # 0xf30d8
jae 0x12e82
movsd 0xe0327(%rip), %xmm1    # 0xf30e0
ucomisd %xmm0, %xmm1
jae 0x12e82
ucomisd 0xe026d(%rip), %xmm0    # 0xf3038
jae 0x12fa7
movsd 0xe030f(%rip), %xmm1    # 0xf30e8
ucomisd %xmm0, %xmm1
jae 0x12fa7
ucomisd 0xe0275(%rip), %xmm0    # 0xf3060
jae 0x12fee
movsd 0xe02f7(%rip), %xmm1    # 0xf30f0
ucomisd %xmm0, %xmm1
jae 0x12fee
ucomisd 0xe029d(%rip), %xmm0    # 0xf30a8
movq 0x31680e(%rip), %r8     # 0x329620
jae 0x13085
movsd 0xe02d8(%rip), %xmm1    # 0xf30f8
ucomisd %xmm0, %xmm1
jae 0x13085
leaq 0x3133ef(%rip), %rdi    # 0x326220
leaq 0xe1621(%rip), %rsi     # 0xf4459
jmp 0x130de
movq 0x3167dc(%rip), %r8     # 0x329620
leaq 0x3133d5(%rip), %rdi    # 0x326220
leaq 0xe15cb(%rip), %rsi     # 0xf441d
jmp 0x130de
cmpq $0x80, %rax
jne 0x12eb6
cmpl $0x0, 0x314f8e(%rip)    # 0x327df4
je 0x12eb6
movq 0x134fb1(%rip), %r8     # 0x147e20
leaq 0x3133aa(%rip), %rdi    # 0x326220
leaq 0xe15e8(%rip), %rsi     # 0xf4465
jmp 0x130de
movq 0x316797(%rip), %r8     # 0x329620
leaq 0x313390(%rip), %rdi    # 0x326220
leaq 0xe1592(%rip), %rsi     # 0xf4429
jmp 0x130de
movq 0x31677d(%rip), %r8     # 0x329620
leaq 0x313376(%rip), %rdi    # 0x326220
leaq 0xe1548(%rip), %rsi     # 0xf43f9
jmp 0x130de
cmpb $0x0, 0x1efa47(%rip)    # 0x202904
jne 0x12eed
cmpq $0x1, %rax
sete %dil
movl 0x1f2107(%rip), %esi    # 0x204fd4
cmpl $0x41, %esi
sete %r8b
andb %dil, %r8b
movl 0x1efa1b(%rip), %edi    # 0x2028f8
cmpl $0x47, %edi
sete %r9b
testb %r9b, %r8b
je 0x13022
ucomisd 0xe01d3(%rip), %xmm0    # 0xf30c8
jae 0x12fd4
movsd 0xe01cd(%rip), %xmm1    # 0xf30d0
ucomisd %xmm0, %xmm1
jae 0x12fd4
ucomisd 0xe01c3(%rip), %xmm0    # 0xf30d8
jae 0x13008
movsd 0xe01bd(%rip), %xmm1    # 0xf30e0
ucomisd %xmm0, %xmm1
jae 0x13008
ucomisd 0xe0103(%rip), %xmm0    # 0xf3038
jae 0x13095
movsd 0xe01a5(%rip), %xmm1    # 0xf30e8
ucomisd %xmm0, %xmm1
jae 0x13095
ucomisd 0xe010b(%rip), %xmm0    # 0xf3060
jae 0x130ac
movsd 0xe018d(%rip), %xmm1    # 0xf30f0
ucomisd %xmm0, %xmm1
jae 0x130ac
ucomisd 0xe0133(%rip), %xmm0    # 0xf30a8
movq 0x3166a4(%rip), %r8     # 0x329620
jae 0x130d0
movsd 0xe016e(%rip), %xmm1    # 0xf30f8
ucomisd %xmm0, %xmm1
jae 0x130d0
leaq 0x313285(%rip), %rdi    # 0x326220
leaq 0xe1510(%rip), %rsi     # 0xf44b2
jmp 0x130de
movq 0x316672(%rip), %r8     # 0x329620
leaq 0x31326b(%rip), %rdi    # 0x326220
leaq 0xe1479(%rip), %rsi     # 0xf4435
jmp 0x130de
leaq 0x313258(%rip), %rdi    # 0x326220
leaq 0xe1436(%rip), %rsi     # 0xf4405
jmp 0x130de
movq 0x316645(%rip), %r8     # 0x329620
leaq 0x31323e(%rip), %rdi    # 0x326220
leaq 0xe1488(%rip), %rsi     # 0xf4471
jmp 0x130de
movq 0x31662b(%rip), %r8     # 0x329620
leaq 0x313224(%rip), %rdi    # 0x326220
leaq 0xe143e(%rip), %rsi     # 0xf4441
jmp 0x130de
movq 0x316611(%rip), %r8     # 0x329620
leaq 0x31320a(%rip), %rdi    # 0x326220
leaq 0xe1461(%rip), %rsi     # 0xf447e
jmp 0x130de
testb %r8b, %r8b
je 0x13039
cmpl $0x33, %edi
je 0x12eed
cmpl $0x47, %edi
je 0x12eed
cmpl $0x41, %esi
sete %dil
cmpq $0x1, %rax
sete %r8b
cmpl $0x50, %esi
sete %sil
testl $0x800009e4, %eax       # imm = 0x800009E4
jne 0x12eed
orb %sil, %dil
andb %dil, %r8b
jne 0x12eed
cmpq $0x2000000, %rax        # imm = 0x2000000
jne 0x130c3
movq 0x134dab(%rip), %r8     # 0x147e20
leaq 0x3131a4(%rip), %rdi    # 0x326220
leaq 0xe143c(%rip), %rsi     # 0xf44bf
jmp 0x130de
leaq 0x313194(%rip), %rdi    # 0x326220
leaq 0xe13ba(%rip), %rsi     # 0xf444d
jmp 0x130de
movq 0x316584(%rip), %r8     # 0x329620
leaq 0x31317d(%rip), %rdi    # 0x326220
leaq 0xe13e1(%rip), %rsi     # 0xf448b
jmp 0x130de
movq 0x31656d(%rip), %r8     # 0x329620
leaq 0x313166(%rip), %rdi    # 0x326220
leaq 0xe13d7(%rip), %rsi     # 0xf4498
jmp 0x130de
mulsd 0xdff6d(%rip), %xmm0    # 0xf3038
jmp 0x12eed
leaq 0x313149(%rip), %rdi    # 0x326220
leaq 0xe13c7(%rip), %rsi     # 0xf44a5
movb $0x1, %al
popq %rbp
jmp 0x9060