// File: /workspace/github_c_makefile_star2_O0/olcaytaner[P]Isell/data.c
// Function: unnormalize_instance
void unnormalize_instance(Instanceptr myptr, Instance mean, Instance variance)
{
 int i;
 Instanceptr temp;
 temp = myptr;
 if (mustrealize)
  {
   for (i = 0; i < current_dataset->multifeaturecount; i++)
     if (i != current_dataset->classdefno)
       temp->values[i].floatvalue = (double) (temp->values[i].floatvalue * sqrt(variance.values[i].floatvalue) + mean.values[i].floatvalue);
  }
 else
  {
   for (i = 0; i < current_dataset->featurecount; i++)
     switch (current_dataset->features[i].type)
      {
       case INTEGER:temp->values[i].intvalue = (int) (temp->values[i].floatvalue * sqrt(variance.values[i].floatvalue) + mean.values[i].floatvalue);
                    break;
       case    REAL:temp->values[i].floatvalue = (double) (temp->values[i].floatvalue * sqrt(variance.values[i].floatvalue) + mean.values[i].floatvalue);
                    break;
      }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
leaq 0x40(%rbp), %rax
movq %rax, -0x28(%rbp)
leaq 0x10(%rbp), %rax
movq %rax, -0x20(%rbp)
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
leaq 0x3cbab9(%rip), %rax    # 0x3e1f74
cmpl $0x0, (%rax)
je 0x16564
movl $0x0, -0xc(%rbp)
movl -0xc(%rbp), %eax
leaq 0xef36b(%rip), %rcx     # 0x105840
movq (%rcx), %rcx
cmpl 0x1c0(%rcx), %eax
jge 0x1655f
movl -0xc(%rbp), %eax
leaq 0xef356(%rip), %rcx     # 0x105840
movq (%rcx), %rcx
cmpl 0x1407128(%rcx), %eax
je 0x1654f
movq -0x28(%rbp), %rax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
movslq -0xc(%rbp), %rdx
movsd (%rcx,%rdx,8), %xmm0
movsd %xmm0, -0x30(%rbp)
movq (%rax), %rax
movslq -0xc(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x42a0
movq -0x20(%rbp), %rax
movaps %xmm0, %xmm2
movsd -0x30(%rbp), %xmm0
movq (%rax), %rax
movslq -0xc(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movq -0x18(%rbp), %rax
movq (%rax), %rax
movslq -0xc(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
jmp 0x16551
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x164cb
jmp 0x16680
movl $0x0, -0xc(%rbp)
movl -0xc(%rbp), %eax
leaq 0xef2cb(%rip), %rcx     # 0x105840
movq (%rcx), %rcx
cmpl 0x1bc(%rcx), %eax
jge 0x1667e
leaq 0xef2b5(%rip), %rax     # 0x105840
movq (%rax), %rax
movslq -0xc(%rbp), %rcx
imulq $0x340, %rcx, %rcx      # imm = 0x340
movl 0x30f08(%rax,%rcx), %eax
movl %eax, -0x34(%rbp)
testl %eax, %eax
je 0x165b6
jmp 0x165a9
movl -0x34(%rbp), %eax
subl $0x2, %eax
je 0x16614
jmp 0x1666e
movq -0x28(%rbp), %rax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
movslq -0xc(%rbp), %rdx
movsd (%rcx,%rdx,8), %xmm0
movsd %xmm0, -0x40(%rbp)
movq (%rax), %rax
movslq -0xc(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x42a0
movq -0x20(%rbp), %rax
movaps %xmm0, %xmm2
movsd -0x40(%rbp), %xmm0
movq (%rax), %rax
movslq -0xc(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
cvttsd2si %xmm0, %edx
movq -0x18(%rbp), %rax
movq (%rax), %rax
movslq -0xc(%rbp), %rcx
movl %edx, (%rax,%rcx,8)
jmp 0x1666e
movq -0x28(%rbp), %rax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
movslq -0xc(%rbp), %rdx
movsd (%rcx,%rdx,8), %xmm0
movsd %xmm0, -0x48(%rbp)
movq (%rax), %rax
movslq -0xc(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x42a0
movq -0x20(%rbp), %rax
movaps %xmm0, %xmm2
movsd -0x48(%rbp), %xmm0
movq (%rax), %rax
movslq -0xc(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movq -0x18(%rbp), %rax
movq (%rax), %rax
movslq -0xc(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
jmp 0x16670
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x1656b
jmp 0x16680
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)