// File: /workspace/github_c_makefile_star2_O0/olcaytaner[P]Isell/data.c
// Function: realize_instance
void realize_instance(Instanceptr myptr)
{
 Instanceptr tmp = myptr;
 int i, j, k;
 i = current_dataset->featurecount - 1;
 j = current_dataset->multifeaturecount - 1;
 if (i != j)
  tmp->values = (union value *) alloc(tmp->values, current_dataset->multifeaturecount * sizeof(union value), current_dataset->multifeaturecount);
 while (i >= 0)
  {
   switch (current_dataset->features[i].type)
    {
     case INTEGER  :tmp->values[j].floatvalue = (double) tmp->values[i].intvalue;
                    j--;
                    break;
     case REGDEF   :
     case REAL     :tmp->values[j].floatvalue = tmp->values[i].floatvalue;
                    j--;
                    break;
     case CLASSDEF :tmp->values[j].stringindex = tmp->values[i].stringindex;
                    j--;
                    break;
     case STRING   :for (k = 0; k < current_dataset->features[i].valuecount; k++)
                      if (k == tmp->values[i].stringindex)
                        tmp->values[j-k].floatvalue = 1;
                      else
                        tmp->values[j-k].floatvalue = 0;
                    j -= current_dataset->features[i].valuecount;
                    break;
     default       :printf(m1238, current_dataset->features[i].type);
                    break;
    }
   i--;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x10(%rbp)
leaq 0xee9e5(%rip), %rax     # 0x105840
movq (%rax), %rax
movl 0x1bc(%rax), %eax
subl $0x1, %eax
movl %eax, -0x14(%rbp)
leaq 0xee9cf(%rip), %rax     # 0x105840
movq (%rax), %rax
movl 0x1c0(%rax), %eax
subl $0x1, %eax
movl %eax, -0x18(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x18(%rbp), %eax
je 0x16ec3
movq -0x10(%rbp), %rax
movq (%rax), %rdi
leaq 0xee9aa(%rip), %rax     # 0x105840
movq (%rax), %rax
movslq 0x1c0(%rax), %rsi
shlq $0x3, %rsi
leaq 0xee995(%rip), %rax     # 0x105840
movq (%rax), %rax
movl 0x1c0(%rax), %edx
callq 0x52d10
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
jmp 0x16ec5
cmpl $0x0, -0x14(%rbp)
jl 0x1707f
leaq 0xee96a(%rip), %rax     # 0x105840
movq (%rax), %rax
movslq -0x14(%rbp), %rcx
imulq $0x340, %rcx, %rcx      # imm = 0x340
movl 0x30f08(%rax,%rcx), %eax
movq %rax, -0x28(%rbp)
subq $0x4, %rax
ja 0x17043
movq -0x28(%rbp), %rax
leaq 0xcc0b4(%rip), %rcx     # 0xe2fb8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x10(%rbp), %rax
movq (%rax), %rax
movslq -0x14(%rbp), %rcx
cvtsi2sdl (%rax,%rcx,8), %xmm0
movq -0x10(%rbp), %rax
movq (%rax), %rax
movslq -0x18(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movl -0x18(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x17071
movq -0x10(%rbp), %rax
movq (%rax), %rax
movslq -0x14(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq -0x10(%rbp), %rax
movq (%rax), %rax
movslq -0x18(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movl -0x18(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x17071
movq -0x10(%rbp), %rax
movq (%rax), %rax
movslq -0x14(%rbp), %rcx
movl (%rax,%rcx,8), %edx
movq -0x10(%rbp), %rax
movq (%rax), %rax
movslq -0x18(%rbp), %rcx
movl %edx, (%rax,%rcx,8)
movl -0x18(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x17071
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
leaq 0xee89c(%rip), %rcx     # 0x105840
movq (%rcx), %rcx
addq $0x30f08, %rcx          # imm = 0x30F08
movslq -0x14(%rbp), %rdx
imulq $0x340, %rdx, %rdx      # imm = 0x340
addq %rdx, %rcx
cmpl 0x18(%rcx), %eax
jge 0x17018
movl -0x1c(%rbp), %eax
movq -0x10(%rbp), %rcx
movq (%rcx), %rcx
movslq -0x14(%rbp), %rdx
cmpl (%rcx,%rdx,8), %eax
jne 0x16ff3
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl -0x18(%rbp), %ecx
subl -0x1c(%rbp), %ecx
movslq %ecx, %rcx
movsd 0xcb02c(%rip), %xmm0    # 0xe2018
movsd %xmm0, (%rax,%rcx,8)
jmp 0x1700b
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl -0x18(%rbp), %ecx
subl -0x1c(%rbp), %ecx
movslq %ecx, %rcx
xorps %xmm0, %xmm0
movsd %xmm0, (%rax,%rcx,8)
jmp 0x1700d
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x16f9a
leaq 0xee821(%rip), %rax     # 0x105840
movq (%rax), %rax
addq $0x30f08, %rax          # imm = 0x30F08
movslq -0x14(%rbp), %rcx
imulq $0x340, %rcx, %rcx      # imm = 0x340
addq %rcx, %rax
movl 0x18(%rax), %ecx
movl -0x18(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x18(%rbp)
jmp 0x17071
leaq 0xee7f6(%rip), %rax     # 0x105840
movq (%rax), %rax
addq $0x30f08, %rax          # imm = 0x30F08
movslq -0x14(%rbp), %rcx
imulq $0x340, %rcx, %rcx      # imm = 0x340
addq %rcx, %rax
movl (%rax), %esi
leaq 0xcbf84(%rip), %rdi     # 0xe2fee
movb $0x0, %al
callq 0x4030
movl -0x14(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x16ec5
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)