// File: /workspace/github_c_makefile_star2_O0/olcaytaner[P]Isell/tests.c
// Function: read_observations_for_multiple_equal_size_file
Obsptr* read_observations_for_multiple_equal_size_file(char **files, int* size, int* count)
{
 int i, j;
 Obsptr *obs = NULL;
 FILE* myfile;
	*count = 0;
	*size = file_length(files[*count]);
	(*count)++;
 while (files[*count])
	 {
			if (file_length(files[*count]) != *size)
				 return NULL;
			(*count)++;
		}
	obs = safemalloc((*count) * sizeof(Obsptr), "find_observations_for_multiple_equal_file", 12);
 for (i = 0; i < *count; i++)
	 {
			if ((myfile = fopen(files[i], "r")) == NULL)
 			{
	 			printf(m1274, files[i]);
		 		return NULL;
		 	}
			obs[i] = safemalloc((*size) * sizeof(Obs), "find_observations_for_multiple_equal_file", 20);
			for (j = 0; j < *size; j++)
			 {
					fscanf(myfile, "%lf", &(obs[i][j].observation));
					obs[i][j].index = i;
				}	
			fclose(myfile);
	 }
 return obs;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq $0x0, -0x30(%rbp)
movq -0x20(%rbp), %rax
movl $0x0, (%rax)
movq -0x10(%rbp), %rax
movq -0x20(%rbp), %rcx
movslq (%rcx), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x50f90
movl %eax, %ecx
movq -0x18(%rbp), %rax
movl %ecx, (%rax)
movq -0x20(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
movq -0x10(%rbp), %rax
movq -0x20(%rbp), %rcx
movslq (%rcx), %rcx
cmpq $0x0, (%rax,%rcx,8)
je 0xd58b5
movq -0x10(%rbp), %rax
movq -0x20(%rbp), %rcx
movslq (%rcx), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x50f90
movq -0x18(%rbp), %rcx
cmpl (%rcx), %eax
je 0xd58a8
movq $0x0, -0x8(%rbp)
jmp 0xd59e5
movq -0x20(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0xd586d
movq -0x20(%rbp), %rax
movslq (%rax), %rdi
shlq $0x3, %rdi
leaq 0x18bee(%rip), %rsi     # 0xee4b5
movl $0xc, %edx
callq 0x52d70
movq %rax, -0x30(%rbp)
movl $0x0, -0x24(%rbp)
movl -0x24(%rbp), %eax
movq -0x20(%rbp), %rcx
cmpl (%rcx), %eax
jge 0xd59dd
movq -0x10(%rbp), %rax
movslq -0x24(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x128a8(%rip), %rsi     # 0xe81a6
callq 0x40c0
movq %rax, -0x38(%rbp)
cmpq $0x0, %rax
jne 0xd5934
movq -0x10(%rbp), %rax
movslq -0x24(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
leaq 0xd56a(%rip), %rdi      # 0xe2e8a
movb $0x0, %al
callq 0x4030
movq $0x0, -0x8(%rbp)
jmp 0xd59e5
movq -0x18(%rbp), %rax
movslq (%rax), %rdi
shlq $0x5, %rdi
leaq 0x18b6f(%rip), %rsi     # 0xee4b5
movl $0x14, %edx
callq 0x52d70
movq %rax, %rdx
movq -0x30(%rbp), %rax
movslq -0x24(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movl $0x0, -0x28(%rbp)
movl -0x28(%rbp), %eax
movq -0x18(%rbp), %rcx
cmpl (%rcx), %eax
jge 0xd59c6
movq -0x38(%rbp), %rdi
movq -0x30(%rbp), %rax
movslq -0x24(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movslq -0x28(%rbp), %rax
shlq $0x5, %rax
addq %rax, %rdx
addq $0x8, %rdx
leaq 0x10e31(%rip), %rsi     # 0xe67c8
movb $0x0, %al
callq 0x4070
movl -0x24(%rbp), %ecx
movq -0x30(%rbp), %rax
movslq -0x24(%rbp), %rdx
movq (%rax,%rdx,8), %rax
movslq -0x28(%rbp), %rdx
shlq $0x5, %rdx
addq %rdx, %rax
movl %ecx, 0x18(%rax)
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0xd5966
movq -0x38(%rbp), %rdi
callq 0x4250
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0xd58dc
movq -0x30(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
nop