// File: /workspace/github_cpp_makefile_star2_O3/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 0x134f1
leaq 0x11e5a7(%rip), %rcx    # 0x131a96
jmp 0x13537
cmpl $0x0, 0x14a9ec(%rip)    # 0x15dee4
je 0x13503
leaq 0x1082a5(%rip), %rcx    # 0x11b7a6
jmp 0x13537
cmpl $0x0, 0x14a9de(%rip)    # 0x15dee8
je 0x13515
leaq 0xf9fc5(%rip), %rcx     # 0x10d4d8
jmp 0x13537
xorpd %xmm1, %xmm1
ucomisd 0x14a997(%rip), %xmm1   # 0x15deb8
leaq 0xfa42b(%rip), %rax     # 0x10d953
leaq 0x1129d5(%rip), %rcx    # 0x125f04
cmovneq %rax, %rcx
cmovpq %rax, %rcx
cmpb $0x0, 0x22ba00(%rip)    # 0x23ef3e
je 0x135b1
ucomisd 0xf5b80(%rip), %xmm0    # 0x1090c8
jae 0x1358f
movsd 0xf5b7e(%rip), %xmm1    # 0x1090d0
ucomisd %xmm0, %xmm1
jae 0x1358f
ucomisd 0xf5b78(%rip), %xmm0    # 0x1090d8
jae 0x1358f
movsd 0xf5b76(%rip), %xmm1    # 0x1090e0
ucomisd %xmm0, %xmm1
jae 0x1358f
ucomisd 0xf5ac0(%rip), %xmm0    # 0x109038
movq 0x14a8a1(%rip), %r8     # 0x15de20
jae 0x13596
movsd 0xf5b5f(%rip), %xmm1    # 0x1090e8
ucomisd %xmm0, %xmm1
jmp 0x13596
movq 0x14a88a(%rip), %r8     # 0x15de20
testl %edi, %edi
je 0x13632
leaq 0x328c7b(%rip), %rdi    # 0x33c220
leaq 0xf6de5(%rip), %rsi     # 0x10a391
jmp 0x139a0
movq 0x205318(%rip), %rax    # 0x2188d0
cmpq $0x100, %rax            # imm = 0x100
je 0x13645
cmpq $0x10000, %rax          # imm = 0x10000
je 0x13645
cmpq $0x20000, %rax          # imm = 0x20000
jne 0x13719
ucomisd 0xf5a80(%rip), %xmm0    # 0x109060
jae 0x1375e
movsd 0xf5b02(%rip), %xmm1    # 0x1090f0
ucomisd %xmm0, %xmm1
jae 0x1375e
ucomisd 0xf5aa8(%rip), %xmm0    # 0x1090a8
movq 0x32c019(%rip), %r8     # 0x33f620
jae 0x13883
movsd 0xf5ae3(%rip), %xmm1    # 0x1090f8
ucomisd %xmm0, %xmm1
jae 0x13883
leaq 0x328bfa(%rip), %rdi    # 0x33c220
leaq 0xf6d94(%rip), %rsi     # 0x10a3c1
jmp 0x139a0
leaq 0x328be7(%rip), %rdi    # 0x33c220
leaq 0xf6d5d(%rip), %rsi     # 0x10a39d
jmp 0x139a0
ucomisd 0xf5a7b(%rip), %xmm0    # 0x1090c8
jae 0x136ff
movsd 0xf5a75(%rip), %xmm1    # 0x1090d0
ucomisd %xmm0, %xmm1
jae 0x136ff
ucomisd 0xf5a6b(%rip), %xmm0    # 0x1090d8
jae 0x13744
movsd 0xf5a65(%rip), %xmm1    # 0x1090e0
ucomisd %xmm0, %xmm1
jae 0x13744
ucomisd 0xf59ab(%rip), %xmm0    # 0x109038
jae 0x13869
movsd 0xf5a4d(%rip), %xmm1    # 0x1090e8
ucomisd %xmm0, %xmm1
jae 0x13869
ucomisd 0xf59b3(%rip), %xmm0    # 0x109060
jae 0x138b0
movsd 0xf5a35(%rip), %xmm1    # 0x1090f0
ucomisd %xmm0, %xmm1
jae 0x138b0
ucomisd 0xf59db(%rip), %xmm0    # 0x1090a8
movq 0x32bf4c(%rip), %r8     # 0x33f620
jae 0x13947
movsd 0xf5a16(%rip), %xmm1    # 0x1090f8
ucomisd %xmm0, %xmm1
jae 0x13947
leaq 0x328b2d(%rip), %rdi    # 0x33c220
leaq 0xf6d0f(%rip), %rsi     # 0x10a409
jmp 0x139a0
movq 0x32bf1a(%rip), %r8     # 0x33f620
leaq 0x328b13(%rip), %rdi    # 0x33c220
leaq 0xf6cb9(%rip), %rsi     # 0x10a3cd
jmp 0x139a0
cmpq $0x80, %rax
jne 0x13778
cmpl $0x0, 0x32a6cc(%rip)    # 0x33ddf4
je 0x13778
movq 0x14a6ef(%rip), %r8     # 0x15de20
leaq 0x328ae8(%rip), %rdi    # 0x33c220
leaq 0xf6cd6(%rip), %rsi     # 0x10a415
jmp 0x139a0
movq 0x32bed5(%rip), %r8     # 0x33f620
leaq 0x328ace(%rip), %rdi    # 0x33c220
leaq 0xf6c80(%rip), %rsi     # 0x10a3d9
jmp 0x139a0
movq 0x32bebb(%rip), %r8     # 0x33f620
leaq 0x328ab4(%rip), %rdi    # 0x33c220
leaq 0xf6c36(%rip), %rsi     # 0x10a3a9
jmp 0x139a0
cmpb $0x0, 0x205185(%rip)    # 0x218904
jne 0x137af
cmpq $0x1, %rax
sete %dil
movl 0x207845(%rip), %esi    # 0x21afd4
cmpl $0x41, %esi
sete %r8b
andb %dil, %r8b
movl 0x205159(%rip), %edi    # 0x2188f8
cmpl $0x47, %edi
sete %r9b
testb %r9b, %r8b
je 0x138e4
ucomisd 0xf5911(%rip), %xmm0    # 0x1090c8
jae 0x13896
movsd 0xf590b(%rip), %xmm1    # 0x1090d0
ucomisd %xmm0, %xmm1
jae 0x13896
ucomisd 0xf5901(%rip), %xmm0    # 0x1090d8
jae 0x138ca
movsd 0xf58fb(%rip), %xmm1    # 0x1090e0
ucomisd %xmm0, %xmm1
jae 0x138ca
ucomisd 0xf5841(%rip), %xmm0    # 0x109038
jae 0x13957
movsd 0xf58e3(%rip), %xmm1    # 0x1090e8
ucomisd %xmm0, %xmm1
jae 0x13957
ucomisd 0xf5849(%rip), %xmm0    # 0x109060
jae 0x1396e
movsd 0xf58cb(%rip), %xmm1    # 0x1090f0
ucomisd %xmm0, %xmm1
jae 0x1396e
ucomisd 0xf5871(%rip), %xmm0    # 0x1090a8
movq 0x32bde2(%rip), %r8     # 0x33f620
jae 0x13992
movsd 0xf58ac(%rip), %xmm1    # 0x1090f8
ucomisd %xmm0, %xmm1
jae 0x13992
leaq 0x3289c3(%rip), %rdi    # 0x33c220
leaq 0xf6bfe(%rip), %rsi     # 0x10a462
jmp 0x139a0
movq 0x32bdb0(%rip), %r8     # 0x33f620
leaq 0x3289a9(%rip), %rdi    # 0x33c220
leaq 0xf6b67(%rip), %rsi     # 0x10a3e5
jmp 0x139a0
leaq 0x328996(%rip), %rdi    # 0x33c220
leaq 0xf6b24(%rip), %rsi     # 0x10a3b5
jmp 0x139a0
movq 0x32bd83(%rip), %r8     # 0x33f620
leaq 0x32897c(%rip), %rdi    # 0x33c220
leaq 0xf6b76(%rip), %rsi     # 0x10a421
jmp 0x139a0
movq 0x32bd69(%rip), %r8     # 0x33f620
leaq 0x328962(%rip), %rdi    # 0x33c220
leaq 0xf6b2c(%rip), %rsi     # 0x10a3f1
jmp 0x139a0
movq 0x32bd4f(%rip), %r8     # 0x33f620
leaq 0x328948(%rip), %rdi    # 0x33c220
leaq 0xf6b4f(%rip), %rsi     # 0x10a42e
jmp 0x139a0
testb %r8b, %r8b
je 0x138fb
cmpl $0x33, %edi
je 0x137af
cmpl $0x47, %edi
je 0x137af
cmpl $0x41, %esi
sete %dil
cmpq $0x1, %rax
sete %r8b
cmpl $0x50, %esi
sete %sil
testl $0x800009e4, %eax       # imm = 0x800009E4
jne 0x137af
orb %sil, %dil
andb %dil, %r8b
jne 0x137af
cmpq $0x2000000, %rax        # imm = 0x2000000
jne 0x13985
movq 0x14a4e9(%rip), %r8     # 0x15de20
leaq 0x3288e2(%rip), %rdi    # 0x33c220
leaq 0xf6b2a(%rip), %rsi     # 0x10a46f
jmp 0x139a0
leaq 0x3288d2(%rip), %rdi    # 0x33c220
leaq 0xf6aa8(%rip), %rsi     # 0x10a3fd
jmp 0x139a0
movq 0x32bcc2(%rip), %r8     # 0x33f620
leaq 0x3288bb(%rip), %rdi    # 0x33c220
leaq 0xf6acf(%rip), %rsi     # 0x10a43b
jmp 0x139a0
movq 0x32bcab(%rip), %r8     # 0x33f620
leaq 0x3288a4(%rip), %rdi    # 0x33c220
leaq 0xf6ac5(%rip), %rsi     # 0x10a448
jmp 0x139a0
mulsd 0xf56ab(%rip), %xmm0    # 0x109038
jmp 0x137af
leaq 0x328887(%rip), %rdi    # 0x33c220
leaq 0xf6ab5(%rip), %rsi     # 0x10a455
movb $0x1, %al
popq %rbp
jmp 0x9060