// File: /workspace/github_c_makefile_star2_O0/olcaytaner[P]Isell/plot.c
// Function: plotay
void plotay(char* names)
{
 /*!Last Changed 15.09.2006*/
 /*!Last Changed 08.10.2004 added img.xaxis.lim and img.yaxis.lim*/
 FILE* myfile;
 double obs, maxobs = -LONG_MAX, minobs = 0;
 int count2;
 char st[MAXLENGTH], *legendname;
 Point p1, p2;
 if (!get_parameter_o("hold"))
   clear_image();
 legendname = file_only_name(names);
 add_legend((char) (img.xaxis.namesavailable + '0'), legendname);
 safe_free(legendname);
 img.yaxis.available = 1;
 myfile = fopen(names, "r");
 if (!myfile)
   return;
 count2 = 0;
 while (fscanf(myfile,"%s %lf\n", st, &obs) != EOF)
  {
   count2++;
   if (!img.xaxis.namesavailable)
    {
     img.xaxis.names = alloc(img.xaxis.names, count2 * (sizeof(char*)), count2);
     img.xaxis.names[count2 - 1] = strcopy(img.xaxis.names[count2 - 1], st);
     p2.x = count2 - 1;
    }
   else
     p2.x = listindex(st, img.xaxis.names, img.xaxis.lim.division);
   p1.x = img.xaxis.namesavailable;
   p1.y = MARGIN;
   p2.y = (double) obs;
   add_object(OBJECT_RECTANGLE, p1, p2, dummyp, "");   
   if (!img.xaxis.namesavailable)
    {
     if (obs > maxobs)
       maxobs = obs;
    }
   else
     if (obs > img.yaxis.lim.max)
       img.yaxis.lim.max = obs;
  }
 fclose(myfile);
 if (!img.xaxis.namesavailable)
  {
   img.xaxis.lim.division = count2;
   img.xaxis.limitsset = 1;
   img.xaxis.lim.precision = 0;
   img.yaxis.lim.min = minobs;
   img.yaxis.lim.max = maxobs;
  }
 img.xaxis.namesavailable++;
 export_image();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x7a180, %rsp          # imm = 0x7A180
movq %rdi, -0x8(%rbp)
movsd 0x625d9(%rip), %xmm0    # 0xe2a60
movsd %xmm0, -0x20(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -0x28(%rbp)
leaq 0x66e6d(%rip), %rdi     # 0xe7308
callq 0x79440
cmpl $0x0, %eax
jne 0x804ac
movb $0x0, %al
callq 0x41a40
movq -0x8(%rbp), %rdi
callq 0x510a0
movq %rax, -0x7a158(%rbp)
leaq 0x361bc5(%rip), %rax    # 0x3e2088
movl 0x38(%rax), %eax
addl $0x30, %eax
movq -0x7a158(%rbp), %rsi
movsbl %al, %edi
callq 0x3efa0
movq -0x7a158(%rbp), %rdi
callq 0x52e80
leaq 0x361b9d(%rip), %rax    # 0x3e2088
movl $0x1, 0x78(%rax)
movq -0x8(%rbp), %rdi
leaq 0x67ca9(%rip), %rsi     # 0xe81a6
callq 0x40c0
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0x80512
jmp 0x8074b
movl $0x0, -0x2c(%rbp)
movq -0x10(%rbp), %rdi
leaq -0x7a150(%rbp), %rdx
leaq 0x67280(%rip), %rsi     # 0xe77ab
leaq -0x18(%rbp), %rcx
movb $0x0, %al
callq 0x4070
cmpl $-0x1, %eax
je 0x806c6
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
leaq 0x361b39(%rip), %rax    # 0x3e2088
cmpl $0x0, 0x38(%rax)
jne 0x805d1
leaq 0x361b2c(%rip), %rax    # 0x3e2088
movq 0x30(%rax), %rdi
movslq -0x2c(%rbp), %rsi
shlq $0x3, %rsi
movl -0x2c(%rbp), %edx
callq 0x52d10
movq %rax, %rcx
leaq 0x361b0e(%rip), %rax    # 0x3e2088
movq %rcx, 0x30(%rax)
leaq 0x361b03(%rip), %rax    # 0x3e2088
movq 0x30(%rax), %rax
movl -0x2c(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rdi
leaq -0x7a150(%rbp), %rsi
callq 0x54ba0
movq %rax, %rdx
leaq 0x361adc(%rip), %rax    # 0x3e2088
movq 0x30(%rax), %rax
movl -0x2c(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movq %rdx, (%rax,%rcx,8)
movl -0x2c(%rbp), %eax
subl $0x1, %eax
cvtsi2sd %eax, %xmm0
movsd %xmm0, -0x7a178(%rbp)
jmp 0x805fe
leaq -0x7a150(%rbp), %rdi
leaq 0x361aa9(%rip), %rax    # 0x3e2088
movq 0x30(%rax), %rsi
leaq 0x361a9e(%rip), %rax    # 0x3e2088
movl 0x20(%rax), %edx
callq 0x54910
cvtsi2sd %eax, %xmm0
movsd %xmm0, -0x7a178(%rbp)
leaq 0x361a83(%rip), %rax    # 0x3e2088
cvtsi2sdl 0x38(%rax), %xmm0
movsd %xmm0, -0x7a168(%rbp)
movsd 0x6436e(%rip), %xmm0    # 0xe4988
movsd %xmm0, -0x7a160(%rbp)
movsd -0x18(%rbp), %xmm0
movsd %xmm0, -0x7a170(%rbp)
movsd -0x7a168(%rbp), %xmm0
movsd -0x7a160(%rbp), %xmm1
movsd -0x7a178(%rbp), %xmm2
movsd -0x7a170(%rbp), %xmm3
movsd 0x849e9(%rip), %xmm4    # 0x105040
movsd 0x849e9(%rip), %xmm5    # 0x105048
movl $0x2, %edi
leaq 0x6d96f(%rip), %rsi     # 0xedfda
callq 0x3f100
leaq 0x361a11(%rip), %rax    # 0x3e2088
cmpl $0x0, 0x38(%rax)
jne 0x80695
movsd -0x18(%rbp), %xmm0
ucomisd -0x20(%rbp), %xmm0
jbe 0x80693
movsd -0x18(%rbp), %xmm0
movsd %xmm0, -0x20(%rbp)
jmp 0x806c1
movsd -0x18(%rbp), %xmm0
leaq 0x3619e7(%rip), %rax    # 0x3e2088
ucomisd 0x88(%rax), %xmm0
jbe 0x806bf
movsd -0x18(%rbp), %xmm0
leaq 0x3619d1(%rip), %rax    # 0x3e2088
movsd %xmm0, 0x88(%rax)
jmp 0x806c1
jmp 0x80519
movq -0x10(%rbp), %rdi
callq 0x4250
leaq 0x3619b2(%rip), %rax    # 0x3e2088
cmpl $0x0, 0x38(%rax)
jne 0x8072d
movl -0x2c(%rbp), %ecx
leaq 0x3619a2(%rip), %rax    # 0x3e2088
movl %ecx, 0x20(%rax)
leaq 0x361998(%rip), %rax    # 0x3e2088
movl $0x1, 0x28(%rax)
leaq 0x36198a(%rip), %rax    # 0x3e2088
movl $0x0, 0x24(%rax)
movsd -0x28(%rbp), %xmm0
leaq 0x361977(%rip), %rax    # 0x3e2088
movsd %xmm0, 0x80(%rax)
movsd -0x20(%rbp), %xmm0
leaq 0x361963(%rip), %rax    # 0x3e2088
movsd %xmm0, 0x88(%rax)
leaq 0x361954(%rip), %rax    # 0x3e2088
movl 0x38(%rax), %ecx
addl $0x1, %ecx
leaq 0x361947(%rip), %rax    # 0x3e2088
movl %ecx, 0x38(%rax)
movb $0x0, %al
callq 0x42280
addq $0x7a180, %rsp          # imm = 0x7A180
popq %rbp
retq
nopw %cs:(%rax,%rax)