// File: /workspace/github_c_makefile_star2_O0/olcaytaner[P]Isell/loadmodel.c
// Function: load_model_rise
void* load_model_rise(FILE* infile, Datasetptr d)
{
 int i;
 Model_riseptr m;
 Decisionruleptr tmp, tmpbefore;
 m = safemalloc(sizeof(Model_rise), "load_model_rise", 4);
 fscanf(infile, "%d", &(m->rules.rulecount));
 m->counts = load_array_int(infile, d->classno);
 if (m->rules.rulecount > 0)
  {
   m->rules.start = load_rule(infile, d);
   tmpbefore = m->rules.start;
   tmp = m->rules.start;
   for (i = 1; i < m->rules.rulecount; i++)
    {
     tmp = load_rule(infile, d);
     tmpbefore->next = tmp;
     tmpbefore = tmp;
    }
   m->rules.end = tmp;
  }
 else
  {
   m->rules.start = NULL;
   m->rules.end = NULL;
  }
 m->svdm = safemalloc(d->featurecount * sizeof(matrix), "load_model_rise", 20);
 for (i = 0; i < d->featurecount; i++)
   if (d->features[i].type == STRING)
     m->svdm[i] = load_matrix(infile, d->features[i].valuecount, d->features[i].valuecount);  
 return m;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x38, %edi
leaq 0x8fb94(%rip), %rsi     # 0xe6940
movl $0x4, %edx
callq 0x52d70
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rdx
addq $0x10, %rdx
leaq 0x96498(%rip), %rsi     # 0xed265
movb $0x0, %al
callq 0x4070
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movl 0x10(%rax), %esi
callq 0x54df0
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x30(%rax)
movq -0x20(%rbp), %rax
cmpl $0x0, 0x10(%rax)
jle 0x56e77
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x56b70
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x28(%rbp)
movl $0x1, -0x14(%rbp)
movl -0x14(%rbp), %eax
movq -0x20(%rbp), %rcx
cmpl 0x10(%rcx), %eax
jge 0x56e69
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x56b70
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, 0x30(%rax)
movq -0x28(%rbp), %rax
movq %rax, -0x30(%rbp)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x56e2d
movq -0x28(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x8(%rax)
jmp 0x56e8e
movq -0x20(%rbp), %rax
movq $0x0, (%rax)
movq -0x20(%rbp), %rax
movq $0x0, 0x8(%rax)
movq -0x10(%rbp), %rax
movslq 0x1bc(%rax), %rdi
shlq $0x4, %rdi
leaq 0x8fa9c(%rip), %rsi     # 0xe6940
movl $0x14, %edx
callq 0x52d70
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x28(%rax)
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0x1bc(%rcx), %eax
jge 0x56f74
movq -0x10(%rbp), %rax
addq $0x30f08, %rax          # imm = 0x30F08
movslq -0x14(%rbp), %rcx
imulq $0x340, %rcx, %rcx      # imm = 0x340
addq %rcx, %rax
cmpl $0x1, (%rax)
jne 0x56f64
movq -0x20(%rbp), %rax
movq 0x28(%rax), %rax
movslq -0x14(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x48(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
addq $0x30f08, %rax          # imm = 0x30F08
movslq -0x14(%rbp), %rcx
imulq $0x340, %rcx, %rcx      # imm = 0x340
addq %rcx, %rax
movl 0x18(%rax), %esi
movq -0x10(%rbp), %rax
addq $0x30f08, %rax          # imm = 0x30F08
movslq -0x14(%rbp), %rcx
imulq $0x340, %rcx, %rcx      # imm = 0x340
addq %rcx, %rax
movl 0x18(%rax), %edx
callq 0x54cc0
movq %rax, %rcx
movq -0x48(%rbp), %rax
movq %rcx, -0x40(%rbp)
movq %rdx, -0x38(%rbp)
movq -0x40(%rbp), %rcx
movq %rcx, (%rax)
movq -0x38(%rbp), %rcx
movq %rcx, 0x8(%rax)
jmp 0x56f66
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x56ec0
movq -0x20(%rbp), %rax
addq $0x50, %rsp
popq %rbp
retq
nop