// File: /workspace/github_c_makefile_star2_O0/olcaytaner[P]Isell/plot.c
// Function: read_2d_observations
double** read_2d_observations(char* filename, int* counts)
{
 double** observations;
 FILE* myfile;
 double obs1, obs2, minobsx = +LONG_MAX, minobsy = +LONG_MAX, maxobsx = -LONG_MAX, maxobsy = -LONG_MAX;
 *counts = 0;
 myfile = fopen(filename, "r");
 if (!myfile)
   return NULL;
 observations = safecalloc(2, sizeof(double*), "read_2d_observations", 7);
 while (fscanf(myfile, "%lf %lf\n", &obs1, &obs2) != EOF)
  {
   (*counts)++;
   observations[0] = alloc(observations[0], (*counts) * sizeof(double), *counts);
   observations[1] = alloc(observations[1], (*counts) * sizeof(double), *counts);
   observations[0][(*counts) - 1] = obs1;
   observations[1][(*counts) - 1] = obs2;
   if (obs1 > maxobsx)
     maxobsx = obs1;
   if (obs1 < minobsx)
     minobsx = obs1;
   if (obs2 > maxobsy)
     maxobsy = obs2;
   if (obs2 < minobsy)
     minobsy = obs2;
  }
 fclose(myfile);
 if (maxobsx > img.xaxis.lim.max)
   img.xaxis.lim.max = maxobsx;
 if (minobsx < img.xaxis.lim.min)
   img.xaxis.lim.min = minobsx;
 if (maxobsy > img.yaxis.lim.max)
   img.yaxis.lim.max = maxobsy;
 if (minobsy < img.yaxis.lim.min)
   img.yaxis.lim.min = minobsy;
 return observations;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movsd 0x632f8(%rip), %xmm0    # 0xe2fb0
movsd %xmm0, -0x40(%rbp)
movsd 0x632eb(%rip), %xmm0    # 0xe2fb0
movsd %xmm0, -0x48(%rbp)
movsd 0x62d8e(%rip), %xmm0    # 0xe2a60
movsd %xmm0, -0x50(%rbp)
movsd 0x62d81(%rip), %xmm0    # 0xe2a60
movsd %xmm0, -0x58(%rbp)
movq -0x18(%rbp), %rax
movl $0x0, (%rax)
movq -0x10(%rbp), %rdi
leaq 0x684ad(%rip), %rsi     # 0xe81a6
callq 0x40c0
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
jne 0x7fd16
movq $0x0, -0x8(%rbp)
jmp 0x7ff08
movl $0x2, %edi
movl $0x8, %esi
leaq 0x67a63(%rip), %rdx     # 0xe778a
movl $0x7, %ecx
callq 0x52f40
movq %rax, -0x20(%rbp)
movq -0x28(%rbp), %rdi
leaq 0x67a62(%rip), %rsi     # 0xe77a2
leaq -0x30(%rbp), %rdx
leaq -0x38(%rbp), %rcx
movb $0x0, %al
callq 0x4070
cmpl $-0x1, %eax
je 0x7fe53
movq -0x18(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
movq -0x20(%rbp), %rax
movq (%rax), %rdi
movq -0x18(%rbp), %rax
movslq (%rax), %rsi
shlq $0x3, %rsi
movq -0x18(%rbp), %rax
movl (%rax), %edx
callq 0x52d10
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x18(%rbp), %rax
movslq (%rax), %rsi
shlq $0x3, %rsi
movq -0x18(%rbp), %rax
movl (%rax), %edx
callq 0x52d10
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x8(%rax)
movsd -0x30(%rbp), %xmm0
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq -0x18(%rbp), %rcx
movl (%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movsd %xmm0, (%rax,%rcx,8)
movsd -0x38(%rbp), %xmm0
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x18(%rbp), %rcx
movl (%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movsd %xmm0, (%rax,%rcx,8)
movsd -0x30(%rbp), %xmm0
ucomisd -0x50(%rbp), %xmm0
jbe 0x7fe04
movsd -0x30(%rbp), %xmm0
movsd %xmm0, -0x50(%rbp)
movsd -0x30(%rbp), %xmm1
movsd -0x40(%rbp), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x7fe1e
movsd -0x30(%rbp), %xmm0
movsd %xmm0, -0x40(%rbp)
movsd -0x38(%rbp), %xmm0
ucomisd -0x58(%rbp), %xmm0
jbe 0x7fe34
movsd -0x38(%rbp), %xmm0
movsd %xmm0, -0x58(%rbp)
movsd -0x38(%rbp), %xmm1
movsd -0x48(%rbp), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x7fe4e
movsd -0x38(%rbp), %xmm0
movsd %xmm0, -0x48(%rbp)
jmp 0x7fd35
movq -0x28(%rbp), %rdi
callq 0x4250
movsd -0x50(%rbp), %xmm0
leaq 0x362220(%rip), %rax    # 0x3e2088
ucomisd 0x18(%rax), %xmm0
jbe 0x7fe80
movsd -0x50(%rbp), %xmm0
leaq 0x36220d(%rip), %rax    # 0x3e2088
movsd %xmm0, 0x18(%rax)
movsd -0x40(%rbp), %xmm1
leaq 0x3621fc(%rip), %rax    # 0x3e2088
movsd 0x10(%rax), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x7fea8
movsd -0x40(%rbp), %xmm0
leaq 0x3621e5(%rip), %rax    # 0x3e2088
movsd %xmm0, 0x10(%rax)
movsd -0x58(%rbp), %xmm0
leaq 0x3621d4(%rip), %rax    # 0x3e2088
ucomisd 0x88(%rax), %xmm0
jbe 0x7fed2
movsd -0x58(%rbp), %xmm0
leaq 0x3621be(%rip), %rax    # 0x3e2088
movsd %xmm0, 0x88(%rax)
movsd -0x48(%rbp), %xmm1
leaq 0x3621aa(%rip), %rax    # 0x3e2088
movsd 0x80(%rax), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x7ff00
movsd -0x48(%rbp), %xmm0
leaq 0x362190(%rip), %rax    # 0x3e2088
movsd %xmm0, 0x80(%rax)
movq -0x20(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)