// File: /workspace/github_c_makefile_star2_O2/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, %r13d
movl %edx, %r15d
movq %rsi, 0x10(%rsp)
movq %rdi, %r14
leaq 0x484ba(%rip), %rdi     # 0x9a6e5
callq 0x4cff1
testl %eax, %eax
jne 0x5223b
xorl %eax, %eax
callq 0x2a510
leaq 0x357e76(%rip), %r12    # 0x3aa0b8
movl $0x1, 0x78(%r12)
movsd 0x10(%r12), %xmm0
ucomisd 0x18(%r12), %xmm0
jb 0x5227a
leaq 0x7b60e(%rip), %rax     # 0xcd870
movq (%rax), %rdi
leaq 0x10(%r12), %rcx
leaq 0x18(%r12), %r8
movq %r14, %rsi
movl %r15d, %edx
callq 0x101e4
movsd 0x80(%r12), %xmm0
ucomisd 0x88(%r12), %xmm0
jb 0x522b7
leaq 0x7b5d9(%rip), %rax     # 0xcd870
movq (%rax), %rdi
leaq 0x80(%r12), %rcx
addq $0x88, %r12
movq %r14, %rsi
movl %r13d, %edx
movq %r12, %r8
callq 0x101e4
movslq %r15d, %r12
imulq $0x340, %r12, %rax      # imm = 0x340
movq 0x10(%rsp), %rcx
leaq (%rcx,%rax), %rbp
addq $0x30f08, %rbp          # imm = 0x30F08
movslq %r13d, %r15
imulq $0x340, %r15, %rax      # imm = 0x340
leaq (%rcx,%rax), %rbx
addq $0x30f08, %rbx          # imm = 0x30F08
testq %r14, %r14
je 0x5239f
cmpl $0x0, (%rbp)
movq (%r14), %rax
je 0x52300
movsd (%rax,%r12,8), %xmm0
jmp 0x52306
cvtsi2sdl (%rax,%r12,8), %xmm0
cmpl $0x0, (%rbx)
je 0x52313
movsd (%rax,%r15,8), %xmm1
jmp 0x52319
cvtsi2sdl (%rax,%r15,8), %xmm1
movq 0x10(%rsp), %rax
cmpl $0x0, 0x10(%rax)
je 0x52368
movsd %xmm1, 0x18(%rsp)
movsd %xmm0, 0x20(%rsp)
movq %r14, %rdi
callq 0x2b47e
movl %eax, %r13d
leaq 0x48937(%rip), %rdi     # 0x9ac79
callq 0x4d088
movslq %r13d, %rcx
cmpl $0x0, (%rax,%rcx,4)
je 0x52396
leaq 0x7ad09(%rip), %rax     # 0xcd060
movb (%rcx,%rax), %al
movsd 0x20(%rsp), %xmm0
movsd 0x18(%rsp), %xmm1
jmp 0x5236a
movb $0x2e, %al
movb %al, 0xe(%rsp)
movb $0x0, 0xf(%rsp)
movsd 0x7acf5(%rip), %xmm2    # 0xcd070
movsd 0x7acf5(%rip), %xmm3    # 0xcd078
pushq $0x1
popq %rdi
movaps %xmm2, %xmm4
movaps %xmm3, %xmm5
leaq 0xe(%rsp), %rsi
callq 0x28f8d
movq 0x10(%r14), %r14
jmp 0x522e6
xorl %eax, %eax
callq 0x2a858
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)