// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x8(%rbp)
movsd 0x6353c(%rip), %xmm0    # 0xe2fb0
movsd %xmm0, -0x28(%rbp)
movsd 0x62fdf(%rip), %xmm0    # 0xe2a60
movsd %xmm0, -0x30(%rbp)
leaq 0x6787b(%rip), %rdi     # 0xe7308
callq 0x79440
cmpl $0x0, %eax
jne 0x7fa9e
movb $0x0, %al
callq 0x41a40
leaq 0x3625e3(%rip), %rax    # 0x3e2088
movl 0xec(%rax), %eax
movl %eax, -0x3c(%rbp)
movslq -0x3c(%rbp), %rcx
leaq 0x85577(%rip), %rax     # 0x105030
movb (%rax,%rcx), %al
movb %al, -0x3e(%rbp)
movb $0x0, -0x3d(%rbp)
cvtsi2sdl -0x3c(%rbp), %xmm0
movsd %xmm0, -0x68(%rbp)
leaq -0x48(%rbp), %rdi
leaq 0x3625b0(%rip), %rax    # 0x3e2088
movl 0xec(%rax), %edx
addl $0x1, %edx
leaq 0x67c99(%rip), %rsi     # 0xe7781
movb $0x0, %al
callq 0x4170
movb -0x3e(%rbp), %al
leaq -0x48(%rbp), %rsi
movsbl %al, %edi
callq 0x3efa0
movq -0x8(%rbp), %rdi
leaq 0x6869d(%rip), %rsi     # 0xe81a6
callq 0x40c0
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0x7fb1e
jmp 0x7fc8e
movl $0x0, -0x34(%rbp)
movq $0x0, -0x10(%rbp)
movq -0x18(%rbp), %rdi
leaq 0x67c6e(%rip), %rsi     # 0xe77a6
leaq -0x20(%rbp), %rdx
movb $0x0, %al
callq 0x4070
cmpl $-0x1, %eax
je 0x7fbb5
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
movq -0x10(%rbp), %rdi
movslq -0x34(%rbp), %rsi
shlq $0x3, %rsi
movl -0x34(%rbp), %edx
callq 0x52d10
movq %rax, -0x10(%rbp)
movsd -0x20(%rbp), %xmm0
movq -0x10(%rbp), %rax
movl -0x34(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movsd %xmm0, (%rax,%rcx,8)
movsd -0x20(%rbp), %xmm0
ucomisd -0x30(%rbp), %xmm0
jbe 0x7fb96
movsd -0x20(%rbp), %xmm0
movsd %xmm0, -0x30(%rbp)
movsd -0x20(%rbp), %xmm1
movsd -0x28(%rbp), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x7fbb0
movsd -0x20(%rbp), %xmm0
movsd %xmm0, -0x28(%rbp)
jmp 0x7fb2d
movq -0x18(%rbp), %rdi
callq 0x4250
movsd -0x30(%rbp), %xmm0
leaq 0x3624be(%rip), %rax    # 0x3e2088
ucomisd 0x18(%rax), %xmm0
jbe 0x7fbe2
movsd -0x30(%rbp), %xmm0
leaq 0x3624ab(%rip), %rax    # 0x3e2088
movsd %xmm0, 0x18(%rax)
movsd -0x28(%rbp), %xmm1
leaq 0x36249a(%rip), %rax    # 0x3e2088
movsd 0x10(%rax), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x7fc0a
movsd -0x28(%rbp), %xmm0
leaq 0x362483(%rip), %rax    # 0x3e2088
movsd %xmm0, 0x10(%rax)
leaq 0x362477(%rip), %rax    # 0x3e2088
movl $0x0, 0x78(%rax)
movl $0x0, -0x38(%rbp)
movl -0x38(%rbp), %eax
cmpl -0x34(%rbp), %eax
jge 0x7fc7e
movq -0x10(%rbp), %rax
movslq -0x38(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movsd %xmm0, -0x58(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -0x50(%rbp)
leaq -0x3e(%rbp), %rsi
movsd -0x58(%rbp), %xmm0
movsd -0x50(%rbp), %xmm1
movsd 0x853e9(%rip), %xmm2    # 0x105040
movsd 0x853e9(%rip), %xmm3    # 0x105048
movsd -0x68(%rbp), %xmm4
movsd -0x60(%rbp), %xmm5
movl $0x1, %edi
callq 0x3f100
movl -0x38(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x38(%rbp)
jmp 0x7fc1f
movq -0x10(%rbp), %rdi
callq 0x52e80
movb $0x0, %al
callq 0x42280
addq $0x70, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)