// File: /workspace/github_c_makefile_star2_O0/olcaytaner[P]Isell/data.c
// Function: find_linear_interpolation_data
Instanceptr find_linear_interpolation_data(Instanceptr data1, Instanceptr data2, double param)
{
 /*!Last Changed 01.05.2006 currently for classification*/
 int i;
 Instanceptr result;
 if (mustrealize)
  {
   result = empty_instance(current_dataset->multifeaturecount);
   for (i = 0; i < current_dataset->multifeaturecount; i++)
     if (i != current_dataset->classdefno)
       result->values[i].floatvalue = data1->values[i].floatvalue * param + data2->values[i].floatvalue * (1 - param);
   result->values[current_dataset->classdefno].stringindex = data1->values[current_dataset->classdefno].stringindex;
  }
 else
  {
   result = empty_instance(current_dataset->featurecount);
   for (i = 0; i < current_dataset->featurecount; i++)
     switch (current_dataset->features[i].type)
      {
       case  INTEGER:result->values[i].intvalue = (int) (data1->values[i].intvalue * param + data2->values[i].intvalue * (1 - param));
                     break;
       case   REGDEF:
       case     REAL:result->values[i].floatvalue = data1->values[i].floatvalue * param + data2->values[i].floatvalue * (1 - param);
                     break;   
       case CLASSDEF:
       case   STRING:result->values[i].stringindex = data1->values[i].stringindex;
                     break;
      }
  }
 return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movsd %xmm0, -0x18(%rbp)
leaq 0x3c8688(%rip), %rax    # 0x3e1f74
cmpl $0x0, (%rax)
je 0x199d8
leaq 0xebf44(%rip), %rax     # 0x105840
movq (%rax), %rax
movl 0x1c0(%rax), %edi
callq 0x1e140
movq %rax, -0x28(%rbp)
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
leaq 0xebf21(%rip), %rcx     # 0x105840
movq (%rcx), %rcx
cmpl 0x1c0(%rcx), %eax
jge 0x1999d
movl -0x1c(%rbp), %eax
leaq 0xebf0c(%rip), %rcx     # 0x105840
movq (%rcx), %rcx
cmpl 0x1407128(%rcx), %eax
je 0x1998d
movq -0x8(%rbp), %rax
movq (%rax), %rax
movslq -0x1c(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movsd -0x18(%rbp), %xmm2
movq -0x10(%rbp), %rax
movq (%rax), %rax
movslq -0x1c(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm1
movsd 0xc86ac(%rip), %xmm3    # 0xe2018
subsd -0x18(%rbp), %xmm3
mulsd %xmm3, %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movq -0x28(%rbp), %rax
movq (%rax), %rax
movslq -0x1c(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
jmp 0x1998f
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x19915
movq -0x8(%rbp), %rax
movq (%rax), %rax
leaq 0xebe95(%rip), %rcx     # 0x105840
movq (%rcx), %rcx
movslq 0x1407128(%rcx), %rcx
movl (%rax,%rcx,8), %edx
movq -0x28(%rbp), %rax
movq (%rax), %rax
leaq 0xebe7a(%rip), %rcx     # 0x105840
movq (%rcx), %rcx
movslq 0x1407128(%rcx), %rcx
movl %edx, (%rax,%rcx,8)
jmp 0x19b1f
leaq 0xebe61(%rip), %rax     # 0x105840
movq (%rax), %rax
movl 0x1bc(%rax), %edi
callq 0x1e140
movq %rax, -0x28(%rbp)
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
leaq 0xebe3e(%rip), %rcx     # 0x105840
movq (%rcx), %rcx
cmpl 0x1bc(%rcx), %eax
jge 0x19b1d
leaq 0xebe28(%rip), %rax     # 0x105840
movq (%rax), %rax
movslq -0x1c(%rbp), %rcx
imulq $0x340, %rcx, %rcx      # imm = 0x340
movl 0x30f08(%rax,%rcx), %eax
movq %rax, -0x30(%rbp)
subq $0x4, %rax
ja 0x19b0d
movq -0x30(%rbp), %rax
leaq 0xc9586(%rip), %rcx     # 0xe2fcc
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x8(%rbp), %rax
movq (%rax), %rax
movslq -0x1c(%rbp), %rcx
cvtsi2sdl (%rax,%rcx,8), %xmm0
movsd -0x18(%rbp), %xmm2
movq -0x10(%rbp), %rax
movq (%rax), %rax
movslq -0x1c(%rbp), %rcx
cvtsi2sdl (%rax,%rcx,8), %xmm1
movsd 0xc859c(%rip), %xmm3    # 0xe2018
subsd -0x18(%rbp), %xmm3
mulsd %xmm3, %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
cvttsd2si %xmm0, %edx
movq -0x28(%rbp), %rax
movq (%rax), %rax
movslq -0x1c(%rbp), %rcx
movl %edx, (%rax,%rcx,8)
jmp 0x19b0d
movq -0x8(%rbp), %rax
movq (%rax), %rax
movslq -0x1c(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movsd -0x18(%rbp), %xmm2
movq -0x10(%rbp), %rax
movq (%rax), %rax
movslq -0x1c(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm1
movsd 0xc854a(%rip), %xmm3    # 0xe2018
subsd -0x18(%rbp), %xmm3
mulsd %xmm3, %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movq -0x28(%rbp), %rax
movq (%rax), %rax
movslq -0x1c(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
jmp 0x19b0d
movq -0x8(%rbp), %rax
movq (%rax), %rax
movslq -0x1c(%rbp), %rcx
movl (%rax,%rcx,8), %edx
movq -0x28(%rbp), %rax
movq (%rax), %rax
movslq -0x1c(%rbp), %rcx
movl %edx, (%rax,%rcx,8)
jmp 0x19b0f
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x199f8
jmp 0x19b1f
movq -0x28(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)