// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/plot.c
// Function: plotx
void plotx(char* names)
{
 /*!Last Changed 06.09.2006 incremented legendcount*/
 /*!Last Changed 07.10.2004 added img.xaxis.lim and img.yaxis.lim*/
 /*!Last Changed 02.02.2004 added safemalloc*/
 double* observations;
 FILE* myfile;
 double obs, minobs = +LONG_MAX, maxobs = -LONG_MAX;
 int counts, j, color;
 char st[2], st2[10];
 Point p1, p3;
 if (!get_parameter_o("hold"))
   clear_image();
 color = img.imagelegend.legendcount;
 st[0] = plots[color];
 st[1] = '\0';
 p3.x = color;
 sprintf(st2, "Class %d", img.imagelegend.legendcount + 1);
 add_legend(st[0], st2);
 myfile = fopen(names, "r");
 if (!myfile)
   return;
 counts = 0;
 observations = NULL;
 while (fscanf(myfile, "%lf\n", &obs) != EOF)
  {
   counts++;
   observations = alloc(observations, counts * sizeof(double), counts);
   observations[counts - 1] = obs;
   if (obs > maxobs)
     maxobs = obs;
   if (obs < minobs)
     minobs = obs;
  }
 fclose(myfile);
 if (maxobs > img.xaxis.lim.max)
   img.xaxis.lim.max = maxobs;
 if (minobs < img.xaxis.lim.min)
   img.xaxis.lim.min = minobs; 
 img.yaxis.available = 0;
 for (j = 0; j < counts; j++)
  {
   p1.x = (double) observations[j];
   p1.y = 0;
   add_object(OBJECT_STRING, p1, dummyp, p3, st);
  }
 safe_free(observations);
 export_image();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
leaq 0x48e5a(%rip), %rdi     # 0x9a6e5
callq 0x4cff1
testl %eax, %eax
jne 0x5189b
xorl %eax, %eax
callq 0x2a510
leaq 0x358816(%rip), %rax    # 0x3aa0b8
movslq 0xec(%rax), %r15
leaq 0x7b7b0(%rip), %rax     # 0xcd060
movsbl (%r15,%rax), %ebp
movb %bpl, 0x6(%rsp)
movb $0x0, 0x7(%rsp)
leal 0x1(%r15), %edx
leaq 0x4937d(%rip), %rsi     # 0x9ac47
leaq 0x2e(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x41b0
movl %ebp, %edi
movq %r14, %rsi
callq 0x28ee8
leaq 0x49f95(%rip), %rsi     # 0x9b87f
movq %rbx, %rdi
callq 0x40f0
testq %rax, %rax
je 0x51a1b
movq %rax, %r14
cvtsi2sd %r15d, %xmm0
movsd %xmm0, 0x18(%rsp)
movsd 0x44a1f(%rip), %xmm0    # 0x96330
movsd %xmm0, 0x10(%rsp)
movsd 0x444b1(%rip), %xmm0    # 0x95dd0
movsd %xmm0, 0x8(%rsp)
pushq $0x8
popq %r15
leaq 0x20(%rsp), %r13
xorl %r12d, %r12d
xorl %ebx, %ebx
movq %r14, %rdi
leaq 0x4932f(%rip), %rsi     # 0x9ac6c
movq %r13, %rdx
xorl %eax, %eax
callq 0x4070
cmpl $-0x1, %eax
je 0x51992
leaq 0x1(%r12), %rbp
movq %rbx, %rdi
movq %r15, %rsi
movl %ebp, %edx
callq 0x34f30
movq %rax, %rbx
movsd 0x20(%rsp), %xmm0
movsd %xmm0, (%rax,%r12,8)
movapd %xmm0, %xmm1
maxsd 0x8(%rsp), %xmm1
minsd 0x10(%rsp), %xmm0
addq $0x8, %r15
movq %rbp, %r12
movsd %xmm1, 0x8(%rsp)
movsd %xmm0, 0x10(%rsp)
jmp 0x51933
movq %r14, %rdi
callq 0x42a0
leaq 0x358717(%rip), %rax    # 0x3aa0b8
movsd 0x8(%rsp), %xmm0
ucomisd 0x18(%rax), %xmm0
jbe 0x519b3
movsd %xmm0, 0x18(%rax)
movsd 0x10(%rax), %xmm0
movsd 0x10(%rsp), %xmm1
ucomisd %xmm1, %xmm0
jbe 0x519c9
movsd %xmm1, 0x10(%rax)
andl $0x0, 0x78(%rax)
xorl %r15d, %r15d
pushq $0x1
popq %rbp
leaq 0x6(%rsp), %r14
cmpq %r15, %r12
je 0x51a0c
movsd (%rbx,%r15,8), %xmm0
movsd 0x7b685(%rip), %xmm2    # 0xcd070
movsd 0x7b685(%rip), %xmm3    # 0xcd078
xorpd %xmm1, %xmm1
movl %ebp, %edi
movsd 0x18(%rsp), %xmm4
movq %r14, %rsi
callq 0x28f8d
incq %r15
jmp 0x519d8
movq %rbx, %rdi
callq 0x34ff7
xorl %eax, %eax
callq 0x2a858
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq