// File: /workspace/github_c_makefile_star2_O0/olcaytaner[P]Isell/multiplemodel.c
// Function: read_multiple_model_from_file
Multiplemodelptr read_multiple_model_from_file(char* modelfile)
{
	/*!Last Changed 10.04.2005*/
	FILE* infile;
	int i;
	char modelst[READLINELENGTH];
	Multiplemodelptr result;
 infile = fopen(modelfile, "r");
	if (!infile)
		 return NULL;
	result = safemalloc(sizeof(Multiplemodel), "read_multiple_model_from_file", 8);
	fscanf(infile, "%d", &(result->featurecount));
	result->min = safemalloc(result->featurecount * sizeof(double), "read_multiple_model_from_file", 10);
	result->max = safemalloc(result->featurecount * sizeof(double), "read_multiple_model_from_file", 11);
	for (i = 0; i < result->featurecount; i++)
		 fscanf(infile, "%lf%lf", &(result->min[i]), &(result->max[i]));
	fscanf(infile, "%d", &(result->modelcount));
	result->models = safemalloc(result->modelcount * sizeof(Singlemodel), "read_multiple_model_from_file", 15);
	for (i = 0; i < result->modelcount; i++)
	 {
		 fscanf(infile, "%d%lf", &(result->models[i].datacount), &(result->models[i].noiselevel));
			fscanf(infile, "%s", modelst);
   read_single_model_from_string(&(result->models[i]), modelst);
	 }
	fclose(infile);
	return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x7a150, %rsp          # imm = 0x7A150
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rdi
leaq 0x7c8ac(%rip), %rsi     # 0xe81a6
callq 0x40c0
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0x6b917
movq $0x0, -0x8(%rbp)
jmp 0x6bb10
movl $0x20, %edi
leaq 0x7b8d1(%rip), %rsi     # 0xe71f4
movl $0x8, %edx
callq 0x52d70
movq %rax, -0x7a148(%rbp)
movq -0x18(%rbp), %rdi
movq -0x7a148(%rbp), %rdx
addq $0xc, %rdx
leaq 0x8191b(%rip), %rsi     # 0xed265
movb $0x0, %al
callq 0x4070
movq -0x7a148(%rbp), %rax
movslq 0xc(%rax), %rdi
shlq $0x3, %rdi
leaq 0x7b88d(%rip), %rsi     # 0xe71f4
movl $0xa, %edx
callq 0x52d70
movq %rax, %rcx
movq -0x7a148(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x7a148(%rbp), %rax
movslq 0xc(%rax), %rdi
shlq $0x3, %rdi
leaq 0x7b85f(%rip), %rsi     # 0xe71f4
movl $0xb, %edx
callq 0x52d70
movq %rax, %rcx
movq -0x7a148(%rbp), %rax
movq %rcx, 0x18(%rax)
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movq -0x7a148(%rbp), %rcx
cmpl 0xc(%rcx), %eax
jge 0x6ba0c
movq -0x18(%rbp), %rdi
movq -0x7a148(%rbp), %rax
movq 0x10(%rax), %rdx
movslq -0x1c(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rdx
movq -0x7a148(%rbp), %rax
movq 0x18(%rax), %rcx
movslq -0x1c(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rcx
leaq 0x7af89(%rip), %rsi     # 0xe6983
movb $0x0, %al
callq 0x4070
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x6b9b4
movq -0x18(%rbp), %rdi
movq -0x7a148(%rbp), %rdx
addq $0x8, %rdx
leaq 0x81843(%rip), %rsi     # 0xed265
movb $0x0, %al
callq 0x4070
movq -0x7a148(%rbp), %rax
movslq 0x8(%rax), %rax
imulq $0x18, %rax, %rdi
leaq 0x7b7b5(%rip), %rsi     # 0xe71f4
movl $0xf, %edx
callq 0x52d70
movq %rax, %rcx
movq -0x7a148(%rbp), %rax
movq %rcx, (%rax)
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movq -0x7a148(%rbp), %rcx
cmpl 0x8(%rcx), %eax
jge 0x6bafc
movq -0x18(%rbp), %rdi
movq -0x7a148(%rbp), %rax
movq (%rax), %rdx
movslq -0x1c(%rbp), %rax
imulq $0x18, %rax, %rax
addq %rax, %rdx
addq $0x8, %rdx
movq -0x7a148(%rbp), %rax
movq (%rax), %rcx
movslq -0x1c(%rbp), %rax
imulq $0x18, %rax, %rax
addq %rax, %rcx
addq $0x10, %rcx
leaq 0x7b765(%rip), %rsi     # 0xe7212
movb $0x0, %al
callq 0x4070
movq -0x18(%rbp), %rdi
leaq -0x7a140(%rbp), %rdx
leaq 0x78fd2(%rip), %rsi     # 0xe4a98
movb $0x0, %al
callq 0x4070
movq -0x7a148(%rbp), %rax
movq (%rax), %rdi
movslq -0x1c(%rbp), %rax
imulq $0x18, %rax, %rax
addq %rax, %rdi
leaq -0x7a140(%rbp), %rsi
callq 0x6b840
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x6ba5d
movq -0x18(%rbp), %rdi
callq 0x4250
movq -0x7a148(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x7a150, %rsp          # imm = 0x7A150
popq %rbp
retq
nopl (%rax)