// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/eps.c
// Function: plot_decision_model_at_node
void plot_decision_model_at_node(FILE* outfile, Decisionnodeptr rootnode, int maxdepth, int maxwidth)
{
 int radius = (epsaxis + MARGIN) / (WIDTHFACTOR * maxwidth), node_width = (epsaxis + MARGIN) / maxwidth, node_height = img.height / maxdepth;
 Point p1, parent;
 if (rootnode)
  {
   p1.x = MARGIN / 2 + (rootnode->x + 0.5) * node_width;
   p1.y = img.height - (rootnode->y + 0.5) * node_height + MARGIN / 2 + 2 * radius;
   plot_decision_leaf_model(outfile, rootnode, p1, radius);
   if (rootnode->parent)
    {
     parent.x = MARGIN / 2 + (rootnode->parent->x + 0.5) * node_width;
     parent.y = img.height - (rootnode->parent->y + 0.5) * node_height + MARGIN / 2 + 2 * radius;
     write_line(outfile, p1.x, p1.y - 2 * radius, parent.x, parent.y - (2 * WIDTHFACTOR + 1.5) * radius);
    }   
   plot_decision_model_at_node(outfile, rootnode->left, maxdepth, maxwidth);
   plot_decision_model_at_node(outfile, rootnode->right, maxdepth, maxwidth);
  }  
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %ecx, %ebx
movl %edx, %ebp
leal (%rbx,%rbx), %ecx
movl $0x244, %eax            # imm = 0x244
xorl %edx, %edx
idivl %ecx
testq %rsi, %rsi
je 0x25a9f
movq %rsi, %r14
movq %rdi, %r15
movl %eax, %r12d
movl $0x244, %eax            # imm = 0x244
xorl %edx, %edx
idivl %ebx
cvtsi2sd %eax, %xmm5
leal (%r12,%r12), %eax
cvtsi2sd %eax, %xmm6
cvtsi2sd %r12d, %xmm2
leaq 0x38c785(%rip), %r13    # 0x3b20b8
movsd 0x803dd(%rip), %xmm3    # 0xa5d18
movsd 0x824ad(%rip), %xmm4    # 0xa7df0
mulsd 0x824ad(%rip), %xmm2    # 0xa7df8
movsd %xmm2, 0x18(%rsp)
movsd %xmm5, 0x10(%rsp)
movsd %xmm6, 0x8(%rsp)
movl (%r13), %ecx
movl %ecx, %eax
cltd
idivl %ebp
xorps %xmm0, %xmm0
cvtsi2sdl 0x134(%r14), %xmm0
addsd %xmm3, %xmm0
mulsd %xmm5, %xmm0
addsd %xmm4, %xmm0
xorps %xmm1, %xmm1
cvtsi2sd %ecx, %xmm1
xorps %xmm2, %xmm2
cvtsi2sdl 0x138(%r14), %xmm2
addsd %xmm3, %xmm2
xorps %xmm3, %xmm3
cvtsi2sd %eax, %xmm3
movsd %xmm3, 0x20(%rsp)
mulsd %xmm3, %xmm2
subsd %xmm2, %xmm1
addsd %xmm4, %xmm1
addsd %xmm6, %xmm1
movq %r15, %rdi
movq %r14, %rsi
movsd %xmm0, 0x30(%rsp)
movsd %xmm1, 0x28(%rsp)
movl %r12d, %edx
callq 0x23a1d
movq 0x18(%r14), %rax
testq %rax, %rax
je 0x25a67
xorps %xmm0, %xmm0
cvtsi2sdl 0x134(%rax), %xmm0
movsd 0x8032c(%rip), %xmm3    # 0xa5d18
addsd %xmm3, %xmm0
mulsd 0x10(%rsp), %xmm0
xorps %xmm1, %xmm1
cvtsi2sdl (%r13), %xmm1
xorps %xmm2, %xmm2
cvtsi2sdl 0x138(%rax), %xmm2
movsd 0x823de(%rip), %xmm4    # 0xa7df0
addsd %xmm4, %xmm0
addsd %xmm3, %xmm2
mulsd 0x20(%rsp), %xmm2
subsd %xmm2, %xmm1
addsd %xmm4, %xmm1
movsd 0x8(%rsp), %xmm2
addsd %xmm2, %xmm1
cvttsd2si 0x30(%rsp), %edx
addsd 0x18(%rsp), %xmm1
movsd 0x28(%rsp), %xmm3
subsd %xmm2, %xmm3
cvttsd2si %xmm3, %ecx
cvttsd2si %xmm0, %r8d
cvttsd2si %xmm1, %r9d
movq %r15, %rdi
leaq 0x825fa(%rip), %rsi     # 0xa805a
xorl %eax, %eax
callq 0x42e0
movq (%r14), %rsi
movq %r15, %rdi
movl %ebp, %edx
movl %ebx, %ecx
callq 0x258e2
movq 0x8(%r14), %r14
testq %r14, %r14
movsd 0x10(%rsp), %xmm5
movsd 0x8(%rsp), %xmm6
movsd 0x80287(%rip), %xmm3    # 0xa5d18
movsd 0x82357(%rip), %xmm4    # 0xa7df0
jne 0x2595d
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq