// File: /workspace/github_c_makefile_star2_O1/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 0x6b1f9(%rip), %r12     # 0xa6d98
movl $0x30, %edi
movq %r12, %rsi
movl $0x4, %edx
callq 0x390f5
movq %rax, %r14
leaq 0x20(%rax), %rdx
leaq 0x24(%rax), %rcx
leaq 0x28(%rax), %r8
leaq 0x69d1c(%rip), %rsi     # 0xa58e3
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 0x390f5
movq %rax, 0x8(%r14)
movslq 0x20(%r14), %rdi
shlq $0x2, %rdi
movq %r12, %rsi
movl $0x7, %edx
callq 0x390f5
movq %rax, 0x10(%r14)
movslq 0x20(%r14), %rdi
shlq $0x3, %rdi
movq %r12, %rsi
movl $0x8, %edx
callq 0x390f5
movq %rax, (%r14)
movslq 0x20(%r14), %rdi
shlq $0x3, %rdi
movq %r12, %rsi
movl $0x9, %edx
callq 0x390f5
movq %r14, %rdx
movq %rax, 0x18(%r14)
cmpl $0x0, 0x20(%r14)
jle 0x3bd3f
xorl %ebp, %ebp
movq %rbx, 0x8(%rsp)
movq %rdx, (%rsp)
leaq (,%rbp,4), %rcx
movq (%rsp), %rax
movq 0x8(%rax), %rdx
addq %rcx, %rdx
movq (%rsp), %rax
addq 0x10(%rax), %rcx
movq %rbx, %rdi
leaq 0x69c6f(%rip), %rsi     # 0xa58e6
xorl %eax, %eax
callq 0x4070
movq (%rsp), %rax
movq 0x8(%rax), %rax
movl (%rax,%rbp,4), %esi
movq %rbx, %rdi
callq 0x3a580
movq (%rsp), %rdx
movq 0x18(%rdx), %rcx
movq %rax, (%rcx,%rbp,8)
movq 0x8(%rdx), %rax
cmpl $0x0, (%rax,%rbp,4)
jle 0x3bd26
xorl %r12d, %r12d
movq 0x18(%rdx), %rax
movq (%rax,%rbp,8), %rax
cmpl $0x0, (%rax,%r12,4)
leaq 0x6b0ea(%rip), %r14     # 0xa6da8
movq 0x8(%rsp), %rbx
jle 0x3bd16
movl $0x8, %r15d
xorl %r13d, %r13d
movq (%rdx), %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 %rbx, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x4070
movq (%rsp), %rdx
incq %r13
movq 0x18(%rdx), %rax
movq (%rax,%rbp,8), %rax
movslq (%rax,%r12,4), %rax
addq $0x10, %r15
cmpq %rax, %r13
jl 0x3bcce
incq %r12
movq 0x8(%rdx), %rax
movslq (%rax,%rbp,4), %rax
cmpq %rax, %r12
jl 0x3bcaa
incq %rbp
movq 0x10(%rsp), %rax
movslq (%rax), %rax
cmpq %rax, %rbp
movq 0x8(%rsp), %rbx
jl 0x3bc52
movq %rdx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq