// File: /workspace/github_cpp_makefile_star2_O3/jkingan[P]ladyheather/heathmsc.cpp
// Function: scale_adev(float)
float scale_adev(float val)
{
double check;
double mant;
double expo;
double v;

   // convert adev value into an decade_exponent.mantissa value
   // Warning: due to subtle rounding/truncation issues,  change
   //          anything in this routine at your own risk...
if(ATYPE == A_MTIE) return val;

   if(val > 1.0e0F) {
      val = (float) (0.0F);
      return val;
   }
   else if(val > 1.0e-1F) {
      val = (float) ((-1.0F) + (val/1.0e-0F));
   }
   else if(val > 1.0e-2F) {
      val = (float) ((-2.0F) + (val/1.0e-1F));
   }
   else if(val > 1.0e-3F) {
      val = (float) ((-3.0F) + (val/1.0e-2F));
   }
   else if(val > 1.0e-4F) {
      val = (float) ((-4.0F) + (val/1.0e-3F));
   }
   else if(val > 1.0e-5F) {
      val = (float) ((-5.0F) + (val/1.0e-4F));
   }
   else if(val > 1.0e-6F) {
      val = (float) ((-6.0F) + (val/1.0e-5F));
   }
   else if(val > 1.0e-7F) {
      val = (float) ((-7.0F) + (val/1.0e-6F));
   }
   else if(val > 1.0e-8F) {
      val = (float) ((-8.0F) + (val/1.0e-7F));
   }
   else if(val > 1.0e-9F) {
      val = (float) ((-9.0F) + (val/1.0e-8F));
   }
   else if(val > 1.0e-10F) {
      val = (float) ((-10.0F) + (val/1.0e-9F));
   }
   else if(val > 1.0e-11F) {
      val = (float) ((-11.0F) + (val/1.0e-10F));
   }
   else if(val > 1.0e-12F) {
      val = (float) ((-12.0F) + (val/1.0e-11F));
   }
   else if(val > 1.0e-13F) {
      val = (float) ((-13.0F) + (val/1.0e-12F));
   }
   else if(val > 1.0e-14F) {
      val = (float) ((-14.0F) + (val/1.0e-13F));
   }
   else if(val > 1.0e-15F) {
      val = (float) ((-15.0F) + (val/1.0e-14F));
   }
   else if(val > 1.0e-16F) {
      val = (float) ((-16.0F) + (val/1.0e-15F));
   }
   else if(val > 1.0e-17F) {
      val = (float) ((-17.0F) + (val/1.0e-16F));
   }
   else if(val > 1.0e-18F) {
      val = (float) ((-18.0F) + (val/1.0e-17F));
   }
   else if(val > 1.0e-19F) {
      val = (float) ((-19.0F) + (val/1.0e-18F));
   }
   else if(val > 1.0e-20F) {
      val = (float) ((-20.0F) + (val/1.0e-19F));
   }
   else if(val > 1.0e-21F) {
      val = (float) ((-21.0F) + (val/1.0e-20F));
   }
   else if(val > 1.0e-22F) {
      val = (float) ((-22.0F) + (val/1.0e-21F));
   }
   else if(val > 1.0e-23F) {
      val = (float) ((-23.0F) + (val/1.0e-22F));
   }
   else if(val > 1.0e-24F) {
      val = (float) ((-24.0F) + (val/1.0e-23F));
   }
   else if(val > 1.0e-25F) {
      val = (float) ((-25.0F) + (val/1.0e-24F));
   }
   else if(val > 1.0e-26F) {
      val = (float) ((-26.0F) + (val/1.0e-25F));
   }
   else if(val > 1.0e-27F) {
      val = (float) ((-27.0F) + (val/1.0e-26F));
   }
   else if(val > 1.0e-28F) {
      val = (float) ((-28.0F) + (val/1.0e-27F));
   }
   else if(val > 1.0e-29F) {
      val = (float) ((-29.0F) + (val/1.0e-28F));
   }
   else val = (float) (-30.0F);

   return val;

   // this code has the rounding issues mentioned above...
   check = 1.0e-0;
   mant = (-1.0);
   expo = 1.0e+1;

   v = val;
   while(mant > (-30.0)) {
      if(v > check) {
         v = (mant + (val/expo));
         return (float) v;
      }
      check /= 10.0;
      mant -= 1.0;
      expo /= 10.0;
   }

   return (float) (-30.0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0x124804(%rip), %rax    # 0x223610
cmpl $0x9, (%rax)
jne 0xfee16
movaps %xmm0, %xmm1
jmp 0xfee22
xorps %xmm1, %xmm1
ucomiss 0xe24c(%rip), %xmm0     # 0x10d06c
jbe 0xfee27
movaps %xmm1, %xmm0
popq %rbp
retq
ucomiss 0x1fc16(%rip), %xmm0    # 0x11ea44
jbe 0xfee3a
addss 0xe230(%rip), %xmm0     # 0x10d068
jmp 0xfee11
ucomiss 0x1fc23(%rip), %xmm0    # 0x11ea64
jbe 0xfee55
divss 0x1fbf9(%rip), %xmm0    # 0x11ea44
addss 0x2da8d(%rip), %xmm0    # 0x12c8e0
jmp 0xfee11
ucomiss 0x2d9b4(%rip), %xmm0    # 0x12c810
jbe 0xfee70
divss 0x1fbfe(%rip), %xmm0    # 0x11ea64
addss 0x2da6e(%rip), %xmm0    # 0x12c8dc
jmp 0xfee11
ucomiss 0x2d99d(%rip), %xmm0    # 0x12c814
jbe 0xfee8b
divss 0x2d98f(%rip), %xmm0    # 0x12c810
addss 0x2da4f(%rip), %xmm0    # 0x12c8d8
jmp 0xfee11
ucomiss 0x2d986(%rip), %xmm0    # 0x12c818
jbe 0xfeea9
divss 0x2d978(%rip), %xmm0    # 0x12c814
addss 0x2da30(%rip), %xmm0    # 0x12c8d4
jmp 0xfee11
ucomiss 0x2d96c(%rip), %xmm0    # 0x12c81c
jbe 0xfeec7
divss 0x2d95e(%rip), %xmm0    # 0x12c818
addss 0x2da0e(%rip), %xmm0    # 0x12c8d0
jmp 0xfee11
ucomiss 0x2d952(%rip), %xmm0    # 0x12c820
jbe 0xfeee5
divss 0x2d944(%rip), %xmm0    # 0x12c81c
addss 0x2d9ec(%rip), %xmm0    # 0x12c8cc
jmp 0xfee11
ucomiss 0x2d938(%rip), %xmm0    # 0x12c824
jbe 0xfef03
divss 0x2d92a(%rip), %xmm0    # 0x12c820
addss 0x2d9ca(%rip), %xmm0    # 0x12c8c8
jmp 0xfee11
ucomiss 0x2d91e(%rip), %xmm0    # 0x12c828
jbe 0xfef21
divss 0x2d910(%rip), %xmm0    # 0x12c824
addss 0x2d9a8(%rip), %xmm0    # 0x12c8c4
jmp 0xfee11
ucomiss 0x1fb2c(%rip), %xmm0    # 0x11ea54
jbe 0xfef3f
divss 0x2d8f6(%rip), %xmm0    # 0x12c828
addss 0xe152(%rip), %xmm0     # 0x10d08c
jmp 0xfee11
ucomiss 0x2d8e6(%rip), %xmm0    # 0x12c82c
jbe 0xfef5d
divss 0x1fb04(%rip), %xmm0    # 0x11ea54
addss 0x2d968(%rip), %xmm0    # 0x12c8c0
jmp 0xfee11
ucomiss 0x2d8cc(%rip), %xmm0    # 0x12c830
jbe 0xfef7b
divss 0x2d8be(%rip), %xmm0    # 0x12c82c
addss 0x2d946(%rip), %xmm0    # 0x12c8bc
jmp 0xfee11
ucomiss 0x2d8b2(%rip), %xmm0    # 0x12c834
jbe 0xfef99
divss 0x2d8a4(%rip), %xmm0    # 0x12c830
addss 0x2d924(%rip), %xmm0    # 0x12c8b8
jmp 0xfee11
ucomiss 0x2d898(%rip), %xmm0    # 0x12c838
jbe 0xfefb7
divss 0x2d88a(%rip), %xmm0    # 0x12c834
addss 0x2d902(%rip), %xmm0    # 0x12c8b4
jmp 0xfee11
ucomiss 0x2d87e(%rip), %xmm0    # 0x12c83c
jbe 0xfefd5
divss 0x2d870(%rip), %xmm0    # 0x12c838
addss 0x2d8e0(%rip), %xmm0    # 0x12c8b0
jmp 0xfee11
ucomiss 0x2d864(%rip), %xmm0    # 0x12c840
jbe 0xfeff3
divss 0x2d856(%rip), %xmm0    # 0x12c83c
addss 0x2d8be(%rip), %xmm0    # 0x12c8ac
jmp 0xfee11
ucomiss 0x2d84a(%rip), %xmm0    # 0x12c844
jbe 0xff011
divss 0x2d83c(%rip), %xmm0    # 0x12c840
addss 0x2d89c(%rip), %xmm0    # 0x12c8a8
jmp 0xfee11
ucomiss 0x2d830(%rip), %xmm0    # 0x12c848
jbe 0xff02f
divss 0x2d822(%rip), %xmm0    # 0x12c844
addss 0x2d87a(%rip), %xmm0    # 0x12c8a4
jmp 0xfee11
ucomiss 0x2d7d6(%rip), %xmm0    # 0x12c80c
jbe 0xff04d
divss 0x2d808(%rip), %xmm0    # 0x12c848
addss 0x2d858(%rip), %xmm0    # 0x12c8a0
jmp 0xfee11
ucomiss 0x2d7f8(%rip), %xmm0    # 0x12c84c
jbe 0xff06b
divss 0x2d7ae(%rip), %xmm0    # 0x12c80c
addss 0x2d836(%rip), %xmm0    # 0x12c89c
jmp 0xfee11
ucomiss 0x2d7de(%rip), %xmm0    # 0x12c850
jbe 0xff089
divss 0x2d7d0(%rip), %xmm0    # 0x12c84c
addss 0x2d814(%rip), %xmm0    # 0x12c898
jmp 0xfee11
ucomiss 0x2d7c4(%rip), %xmm0    # 0x12c854
jbe 0xff0a7
divss 0x2d7b6(%rip), %xmm0    # 0x12c850
addss 0x2d7f2(%rip), %xmm0    # 0x12c894
jmp 0xfee11
ucomiss 0x2d7aa(%rip), %xmm0    # 0x12c858
jbe 0xff0c5
divss 0x2d79c(%rip), %xmm0    # 0x12c854
addss 0x2d7d0(%rip), %xmm0    # 0x12c890
jmp 0xfee11
ucomiss 0x2d790(%rip), %xmm0    # 0x12c85c
jbe 0xff0e3
divss 0x2d782(%rip), %xmm0    # 0x12c858
addss 0x2d7ae(%rip), %xmm0    # 0x12c88c
jmp 0xfee11
ucomiss 0x2d776(%rip), %xmm0    # 0x12c860
jbe 0xff101
divss 0x2d768(%rip), %xmm0    # 0x12c85c
addss 0x2d78c(%rip), %xmm0    # 0x12c888
jmp 0xfee11
ucomiss 0x2d75c(%rip), %xmm0    # 0x12c864
jbe 0xff11f
divss 0x2d74e(%rip), %xmm0    # 0x12c860
addss 0x2d76a(%rip), %xmm0    # 0x12c884
jmp 0xfee11
ucomiss 0x2d742(%rip), %xmm0    # 0x12c868
jbe 0xff13d
divss 0x2d734(%rip), %xmm0    # 0x12c864
addss 0x2d748(%rip), %xmm0    # 0x12c880
jmp 0xfee11
ucomiss 0x2d728(%rip), %xmm0    # 0x12c86c
jbe 0xff15b
divss 0x2d71a(%rip), %xmm0    # 0x12c868
addss 0x2d726(%rip), %xmm0    # 0x12c87c
jmp 0xfee11
ucomiss 0x2d712(%rip), %xmm0    # 0x12c874
jbe 0xff179
divss 0x2d700(%rip), %xmm0    # 0x12c86c
addss 0x2d704(%rip), %xmm0    # 0x12c878
jmp 0xfee11
movss 0x2d6ef(%rip), %xmm1    # 0x12c870
jmp 0xfee22