// File: /workspace/github_c_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x6d1d8(%rip), %r12     # 0xa9e08
movl $0x30, %edi
movq %r12, %rsi
movl $0x4, %edx
callq 0x3a0e1
movq %rax, %r14
leaq 0x20(%rax), %rdx
leaq 0x24(%rax), %rcx
leaq 0x28(%rax), %r8
leaq 0x6bd03(%rip), %rsi     # 0xa895b
movq %rbx, %rdi
movq %rdx, 0x10(%rsp)
xorl %eax, %eax
callq 0x4070
movslq 0x20(%r14), %rdi
shlq $0x2, %rdi
movq %r12, %rsi
movl $0x6, %edx
callq 0x3a0e1
movq %rax, 0x8(%r14)
movslq 0x20(%r14), %rdi
shlq $0x2, %rdi
movq %r12, %rsi
movl $0x7, %edx
callq 0x3a0e1
movq %rax, 0x10(%r14)
movslq 0x20(%r14), %rdi
shlq $0x3, %rdi
movq %r12, %rsi
movl $0x8, %edx
callq 0x3a0e1
movq %rax, (%r14)
movslq 0x20(%r14), %rdi
shlq $0x3, %rdi
movq %r12, %rsi
movl $0x9, %edx
callq 0x3a0e1
movq %r14, %r8
movq %rax, 0x18(%r14)
cmpl $0x0, 0x20(%r14)
jle 0x3cddf
movq %rbx, %rdi
movq 0x8(%r8), %rax
leaq 0x6d132(%rip), %rsi     # 0xa9e18
xorl %ebp, %ebp
movq %r8, 0x8(%rsp)
movq %rsi, %rbx
leaq (%rax,%rbp,4), %rdx
leaq (,%rbp,4), %rcx
addq 0x10(%r8), %rcx
movq %rdi, %r15
leaq 0x6bc54(%rip), %rsi     # 0xa895e
xorl %eax, %eax
callq 0x4070
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rax
movl (%rax,%rbp,4), %esi
movq %r15, %r14
movq %r15, %rdi
callq 0x3b610
movq 0x8(%rsp), %r8
movq 0x18(%r8), %rcx
movq %rax, (%rcx,%rbp,8)
movq 0x8(%r8), %rax
cmpl $0x0, (%rax,%rbp,4)
jle 0x3cdc5
movq 0x18(%r8), %rcx
xorl %r12d, %r12d
movq %rbx, %rsi
movq %r14, %rdi
movq (%rcx,%rbp,8), %rdx
cmpl $0x0, (%rdx,%r12,4)
jle 0x3cdb7
movl $0x8, %r15d
xorl %r13d, %r13d
movq (%r8), %rax
movq (%rax,%rbp,8), %rax
movq (%rax,%r12,8), %rax
leaq (%rax,%r15), %r8
leaq (%rax,%r15), %rdx
addq $-0x8, %rdx
leaq (%rax,%r15), %rcx
addq $-0x4, %rcx
movq %r14, %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq 0x4070
movq 0x8(%rsp), %r8
incq %r13
movq 0x18(%r8), %rcx
movq (%rcx,%rbp,8), %rax
movslq (%rax,%r12,4), %rax
addq $0x10, %r15
cmpq %rax, %r13
jl 0x3cd64
movq %r14, %rdi
movq %rbx, %rsi
movq 0x8(%r8), %rax
incq %r12
movslq (%rax,%rbp,4), %rdx
cmpq %rdx, %r12
jl 0x3cd50
jmp 0x3cdcb
movq %rbx, %rsi
movq %r14, %rdi
incq %rbp
movq 0x10(%rsp), %rcx
movslq (%rcx), %rcx
cmpq %rcx, %rbp
jl 0x3cced
movq %r8, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq