// File: /workspace/github_c_makefile_star2_O0/olcaytaner[P]Isell/loadmodel.c
// Function: load_model_divs
void* load_model_divs(FILE* infile, Datasetptr d)
{
 int i, j, k;
 Model_divsptr m;
 m = safemalloc(sizeof(Model_divs), "load_model_divs", 4);
 fscanf(infile, "%d %d %d", &(m->datacount), &(m->M), &(m->epsilon));
 m->rulecounts = safemalloc(m->datacount * sizeof(int), "load_model_divs", 6);
 m->classno = safemalloc(m->datacount * sizeof(int), "load_model_divs", 7);
 m->hypotheses = safemalloc(m->datacount * sizeof(Condition**), "load_model_divs", 8);
 m->conditioncounts = safemalloc(m->datacount * sizeof(int*), "load_model_divs", 9);
 for (i = 0; i < m->datacount; i++)
  {
   fscanf(infile, "%d %d", &(m->rulecounts[i]), &(m->classno[i]));
   m->conditioncounts[i] = load_array_int(infile, m->rulecounts[i]);
   for (j = 0; j < m->rulecounts[i]; j++)
    {
     for (k = 0; k < m->conditioncounts[i][j]; k++)
       fscanf(infile, "%d%c%lf", &(m->hypotheses[i][j][k].featureindex), &(m->hypotheses[i][j][k].comparison), &(m->hypotheses[i][j][k].value));
    }   
  }
 return m;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x30, %edi
leaq 0x8f9b4(%rip), %rsi     # 0xe6950
movl $0x4, %edx
callq 0x52d70
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rdx
addq $0x20, %rdx
movq -0x28(%rbp), %rcx
addq $0x24, %rcx
movq -0x28(%rbp), %r8
addq $0x28, %r8
leaq 0x8e4be(%rip), %rsi     # 0xe548b
movb $0x0, %al
callq 0x4070
movq -0x28(%rbp), %rax
movslq 0x20(%rax), %rdi
shlq $0x2, %rdi
leaq 0x8f969(%rip), %rsi     # 0xe6950
movl $0x6, %edx
callq 0x52d70
movq %rax, %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x28(%rbp), %rax
movslq 0x20(%rax), %rdi
shlq $0x2, %rdi
leaq 0x8f941(%rip), %rsi     # 0xe6950
movl $0x7, %edx
callq 0x52d70
movq %rax, %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x28(%rbp), %rax
movslq 0x20(%rax), %rdi
shlq $0x3, %rdi
leaq 0x8f919(%rip), %rsi     # 0xe6950
movl $0x8, %edx
callq 0x52d70
movq %rax, %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
movq -0x28(%rbp), %rax
movslq 0x20(%rax), %rdi
shlq $0x3, %rdi
leaq 0x8f8f2(%rip), %rsi     # 0xe6950
movl $0x9, %edx
callq 0x52d70
movq %rax, %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0x18(%rax)
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
movq -0x28(%rbp), %rcx
cmpl 0x20(%rcx), %eax
jge 0x571e1
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rdx
movslq -0x14(%rbp), %rax
shlq $0x2, %rax
addq %rax, %rdx
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rcx
movslq -0x14(%rbp), %rax
shlq $0x2, %rax
addq %rax, %rcx
leaq 0x8e3d3(%rip), %rsi     # 0xe548e
movb $0x0, %al
callq 0x4070
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x14(%rbp), %rcx
movl (%rax,%rcx,4), %esi
callq 0x54df0
movq %rax, %rdx
movq -0x28(%rbp), %rax
movq 0x18(%rax), %rax
movslq -0x14(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movl $0x0, -0x18(%rbp)
movl -0x18(%rbp), %eax
movq -0x28(%rbp), %rcx
movq 0x8(%rcx), %rcx
movslq -0x14(%rbp), %rdx
cmpl (%rcx,%rdx,4), %eax
jge 0x571d1
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movq -0x28(%rbp), %rcx
movq 0x18(%rcx), %rcx
movslq -0x14(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
movslq -0x18(%rbp), %rdx
cmpl (%rcx,%rdx,4), %eax
jge 0x571c1
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rax
movq (%rax), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x18(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movslq -0x1c(%rbp), %rax
shlq $0x4, %rax
addq %rax, %rdx
movq -0x28(%rbp), %rax
movq (%rax), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x18(%rbp), %rcx
movq (%rax,%rcx,8), %rcx
movslq -0x1c(%rbp), %rax
shlq $0x4, %rax
addq %rax, %rcx
addq $0x4, %rcx
movq -0x28(%rbp), %rax
movq (%rax), %rax
movslq -0x14(%rbp), %rsi
movq (%rax,%rsi,8), %rax
movslq -0x18(%rbp), %rsi
movq (%rax,%rsi,8), %r8
movslq -0x1c(%rbp), %rax
shlq $0x4, %rax
addq %rax, %r8
addq $0x8, %r8
leaq 0x8f7b4(%rip), %rsi     # 0xe6960
movb $0x0, %al
callq 0x4070
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x57113
jmp 0x571c3
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x570f4
jmp 0x571d3
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x5707a
movq -0x28(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)