// File: /workspace/github_c_makefile_star2_O0/olcaytaner[P]Isell/tests.c
// Function: read_observations_for_multiple_file
Obs* read_observations_for_multiple_file(char** files, int** counts, int* size, int* filecount)
{
 /*!Last Changed 13.01.2009*/
 int treatments = 0, total = 0, k = 0, i;
 Obs *obs = NULL;
 FILE* myfile;
 while (files[treatments])
  {
   treatments++;
   *counts = alloc(*counts, treatments * sizeof(int), treatments);
   *counts[treatments - 1] = file_length(files[treatments - 1]);
   total += *counts[treatments - 1];
   obs = alloc(obs, total * sizeof(Obs), total);
   if ((myfile = fopen(files[treatments - 1], "r")) == NULL)
    {
     printf(m1274, files[treatments - 1]);
     return 0;
    }
   for (i = 0; i < *counts[treatments - 1]; i++)
    {
     fscanf(myfile, "%lf", &obs[k + i].observation);
     obs[k + i].observation_no = treatments - 1;
     obs[k + i].rij = 0;
     obs[k + i].index = k + i;
    }
   k = total;
   fclose(myfile);
  }
 *size = k;
 *filecount = treatments;
 return obs;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl $0x0, -0x2c(%rbp)
movl $0x0, -0x30(%rbp)
movl $0x0, -0x34(%rbp)
movq $0x0, -0x40(%rbp)
movq -0x10(%rbp), %rax
movslq -0x2c(%rbp), %rcx
cmpq $0x0, (%rax,%rcx,8)
je 0xd1d24
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rdi
movslq -0x2c(%rbp), %rsi
shlq $0x2, %rsi
movl -0x2c(%rbp), %edx
callq 0x52d10
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movl -0x2c(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rdi
callq 0x50f90
movl %eax, %ecx
movq -0x18(%rbp), %rax
movl -0x2c(%rbp), %edx
subl $0x1, %edx
movslq %edx, %rdx
movq (%rax,%rdx,8), %rax
movl %ecx, (%rax)
movq -0x18(%rbp), %rax
movl -0x2c(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
movl (%rax), %eax
addl -0x30(%rbp), %eax
movl %eax, -0x30(%rbp)
movq -0x40(%rbp), %rdi
movslq -0x30(%rbp), %rsi
shlq $0x5, %rsi
movl -0x30(%rbp), %edx
callq 0x52d10
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rax
movl -0x2c(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x16580(%rip), %rsi     # 0xe81a6
callq 0x40c0
movq %rax, -0x48(%rbp)
cmpq $0x0, %rax
jne 0xd1c61
movq -0x10(%rbp), %rax
movl -0x2c(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rsi
leaq 0x1123d(%rip), %rdi     # 0xe2e8a
movb $0x0, %al
callq 0x4030
movq $0x0, -0x8(%rbp)
jmp 0xd1d3e
movl $0x0, -0x38(%rbp)
movl -0x38(%rbp), %eax
movq -0x18(%rbp), %rcx
movl -0x2c(%rbp), %edx
subl $0x1, %edx
movslq %edx, %rdx
movq (%rcx,%rdx,8), %rcx
cmpl (%rcx), %eax
jge 0xd1d10
movq -0x48(%rbp), %rdi
movq -0x40(%rbp), %rdx
movl -0x34(%rbp), %eax
addl -0x38(%rbp), %eax
cltq
shlq $0x5, %rax
addq %rax, %rdx
addq $0x8, %rdx
leaq 0x14b22(%rip), %rsi     # 0xe67c8
movb $0x0, %al
callq 0x4070
movl -0x2c(%rbp), %ecx
subl $0x1, %ecx
movq -0x40(%rbp), %rax
movl -0x34(%rbp), %edx
addl -0x38(%rbp), %edx
movslq %edx, %rdx
shlq $0x5, %rdx
addq %rdx, %rax
movl %ecx, (%rax)
movq -0x40(%rbp), %rax
movl -0x34(%rbp), %ecx
addl -0x38(%rbp), %ecx
movslq %ecx, %rcx
shlq $0x5, %rcx
addq %rcx, %rax
xorps %xmm0, %xmm0
movsd %xmm0, 0x10(%rax)
movl -0x34(%rbp), %ecx
addl -0x38(%rbp), %ecx
movq -0x40(%rbp), %rax
movl -0x34(%rbp), %edx
addl -0x38(%rbp), %edx
movslq %edx, %rdx
shlq $0x5, %rdx
addq %rdx, %rax
movl %ecx, 0x18(%rax)
movl -0x38(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x38(%rbp)
jmp 0xd1c68
movl -0x30(%rbp), %eax
movl %eax, -0x34(%rbp)
movq -0x48(%rbp), %rdi
callq 0x4250
jmp 0xd1b75
movl -0x34(%rbp), %ecx
movq -0x20(%rbp), %rax
movl %ecx, (%rax)
movl -0x2c(%rbp), %ecx
movq -0x28(%rbp), %rax
movl %ecx, (%rax)
movq -0x40(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax,%rax)