// File: /workspace/github_c_makefile_star2_O3/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 0x50513(%rip), %rdi     # 0xaa7b5
callq 0x54bec
testl %eax, %eax
jne 0x5a2b2
xorl %eax, %eax
callq 0x2e342
leaq 0x357dff(%rip), %r12    # 0x3b20b8
movl $0x1, 0x78(%r12)
movsd 0x10(%r12), %xmm0
ucomisd 0x18(%r12), %xmm0
jb 0x5a2f1
leaq 0x7b597(%rip), %rax     # 0xd5870
movq (%rax), %rdi
leaq 0x10(%r12), %rcx
leaq 0x18(%r12), %r8
movq %r14, %rsi
movl %r15d, %edx
callq 0x10ecf
movsd 0x80(%r12), %xmm0
ucomisd 0x88(%r12), %xmm0
jb 0x5a32d
leaq 0x7b562(%rip), %rax     # 0xd5870
movq (%rax), %rdi
leaq 0x80(%r12), %rcx
addq $0x88, %r12
movq %r14, %rsi
movl %ebp, %edx
movq %r12, %r8
callq 0x10ecf
testq %r14, %r14
je 0x5a421
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 0x5a377
movsd (%rax,%r13,8), %xmm0
jmp 0x5a380
xorps %xmm0, %xmm0
cvtsi2sdl (%rax,%r13,8), %xmm0
cmpl $0x0, (%rbx)
je 0x5a38d
movsd (%rax,%r15,8), %xmm1
jmp 0x5a396
xorps %xmm1, %xmm1
cvtsi2sdl (%rax,%r15,8), %xmm1
movq 0x10(%rsp), %rax
cmpl $0x0, 0x10(%rax)
je 0x5a3e4
movsd %xmm1, 0x18(%rsp)
movsd %xmm0, 0x20(%rsp)
movq %r14, %rdi
callq 0x2f33a
movl %eax, %ebp
leaq 0x5098b(%rip), %rdi     # 0xaad49
callq 0x54c89
movslq %ebp, %rcx
cmpl $0x0, (%rax,%rcx,4)
je 0x5a414
leaq 0x7ac8d(%rip), %rax     # 0xd5060
movb (%rcx,%rax), %al
movsd 0x20(%rsp), %xmm0
movsd 0x18(%rsp), %xmm1
jmp 0x5a3e6
movb $0x2e, %al
movb %al, 0xe(%rsp)
movb $0x0, 0xf(%rsp)
movsd 0x7ac79(%rip), %xmm2    # 0xd5070
movsd 0x7ac79(%rip), %xmm3    # 0xd5078
movl $0x1, %edi
movaps %xmm2, %xmm4
movaps %xmm3, %xmm5
leaq 0xe(%rsp), %rsi
callq 0x2cc6c
movq 0x10(%r14), %r14
testq %r14, %r14
jne 0x5a365
xorl %eax, %eax
callq 0x2e6d0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop