// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/plot.c
// Function: plotdata2d
void plotdata2d(Instanceptr data, Datasetptr d, int fno1, int fno2)
{
 /*!Last Changed 21.09.2006 added save_axes*/
 /*!Last Changed 08.10.2004 added img.xaxis.lim and img.yaxis.lim*/
 /*!Last Changed 29.09.2004 added is_class_plotted*/
 /*!Last Changed 26.09.2004*/
 char st[2];
 int classno;
 Instanceptr tmp;
 Point p1;
 if (!get_parameter_o("hold"))
   clear_image();
 img.yaxis.available = 1;
 if (img.xaxis.lim.min >= img.xaxis.lim.max)
   find_bounds_of_feature(current_dataset, data, fno1, &(img.xaxis.lim.min), &(img.xaxis.lim.max));
 if (img.yaxis.lim.min >= img.yaxis.lim.max)
   find_bounds_of_feature(current_dataset, data, fno2, &(img.yaxis.lim.min), &(img.yaxis.lim.max));
 tmp = data;
 while (tmp)
  {
   if (d->features[fno1].type == INTEGER)
     p1.x = (double) tmp->values[fno1].intvalue;
   else
     p1.x = tmp->values[fno1].floatvalue;
   if (d->features[fno2].type == INTEGER)
     p1.y = (double) tmp->values[fno2].intvalue;
   else
     p1.y = tmp->values[fno2].floatvalue;
   if (d->classno != 0)
    {
     classno = give_classno(tmp);
     if (((int *)get_parameter_a("is_class_plotted"))[classno])
      {
       st[0] = plots[classno];
       st[1] = '\0';
       add_object(OBJECT_STRING, p1, dummyp, dummyp, st);
      }     
    }
   else
    { 
     st[0] = '.';
     st[1] = '\0';
     add_object(OBJECT_STRING, p1, dummyp, dummyp, st);
    }
   tmp = tmp->next;
  }
 export_image();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %ecx, %ebp
movl %edx, %r15d
movq %rsi, 0x10(%rsp)
movq %rdi, %r14
leaq 0x4e9fe(%rip), %rdi     # 0xa7715
callq 0x536e7
testl %eax, %eax
jne 0x58d27
xorl %eax, %eax
callq 0x2da74
leaq 0x35638a(%rip), %r12    # 0x3af0b8
movl $0x1, 0x78(%r12)
movsd 0x10(%r12), %xmm0
ucomisd 0x18(%r12), %xmm0
jb 0x58d66
leaq 0x79b22(%rip), %rax     # 0xd2870
movq (%rax), %rdi
leaq 0x10(%r12), %rcx
leaq 0x18(%r12), %r8
movq %r14, %rsi
movl %r15d, %edx
callq 0x10ef3
movsd 0x80(%r12), %xmm0
ucomisd 0x88(%r12), %xmm0
jb 0x58da2
leaq 0x79aed(%rip), %rax     # 0xd2870
movq (%rax), %rdi
leaq 0x80(%r12), %rcx
addq $0x88, %r12
movq %r14, %rsi
movl %ebp, %edx
movq %r12, %r8
callq 0x10ef3
testq %r14, %r14
je 0x58e99
movslq %r15d, %r13
imulq $0x340, %r13, %rax      # imm = 0x340
movq 0x10(%rsp), %rcx
leaq (%rcx,%rax), %r12
addq $0x30f08, %r12          # imm = 0x30F08
movslq %ebp, %r15
imulq $0x340, %r15, %rax      # imm = 0x340
leaq (%rcx,%rax), %rbx
addq $0x30f08, %rbx          # imm = 0x30F08
cmpl $0x0, (%r12)
movq (%r14), %rax
je 0x58dec
movsd (%rax,%r13,8), %xmm0
jmp 0x58df5
xorps %xmm0, %xmm0
cvtsi2sdl (%rax,%r13,8), %xmm0
cmpl $0x0, (%rbx)
movq (%r14), %rax
je 0x58e05
movsd (%rax,%r15,8), %xmm1
jmp 0x58e0e
xorps %xmm1, %xmm1
cvtsi2sdl (%rax,%r15,8), %xmm1
movq 0x10(%rsp), %rax
cmpl $0x0, 0x10(%rax)
je 0x58e5c
movsd %xmm1, 0x18(%rsp)
movsd %xmm0, 0x20(%rsp)
movq %r14, %rdi
callq 0x2eaca
movl %eax, %ebp
leaq 0x4ee63(%rip), %rdi     # 0xa7c99
callq 0x53784
movslq %ebp, %rcx
cmpl $0x0, (%rax,%rcx,4)
je 0x58e8c
leaq 0x79215(%rip), %rax     # 0xd2060
movb (%rcx,%rax), %al
movsd 0x20(%rsp), %xmm0
movsd 0x18(%rsp), %xmm1
jmp 0x58e5e
movb $0x2e, %al
movb %al, 0xe(%rsp)
movb $0x0, 0xf(%rsp)
movsd 0x79201(%rip), %xmm2    # 0xd2070
movsd 0x79201(%rip), %xmm3    # 0xd2078
movl $0x1, %edi
movaps %xmm2, %xmm4
movaps %xmm3, %xmm5
leaq 0xe(%rsp), %rsi
callq 0x2c3cc
movq 0x10(%r14), %r14
testq %r14, %r14
jne 0x58dda
xorl %eax, %eax
callq 0x2de4a
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop