// File: /workspace/github_c_makefile_star2_O1/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
movq %rsi, %r14
movq %rdi, %r15
leal (%rbx,%rbx), %eax
movl %eax, 0xc(%rsp)
leaq 0x389edb(%rip), %r12    # 0x3af0b8
movsd 0x7db33(%rip), %xmm2    # 0xa2d18
movsd 0x7fb7b(%rip), %xmm4    # 0xa4d68
movl $0x244, %eax            # imm = 0x244
xorl %edx, %edx
idivl 0xc(%rsp)
testq %r14, %r14
je 0x2535e
movl %eax, %r13d
movl (%r12), %ecx
movl %ecx, %eax
cltd
idivl %ebp
movl %eax, %esi
movl $0x244, %eax            # imm = 0x244
xorl %edx, %edx
idivl %ebx
xorps %xmm0, %xmm0
cvtsi2sdl 0x134(%r14), %xmm0
addsd %xmm2, %xmm0
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
movsd %xmm1, 0x20(%rsp)
mulsd %xmm1, %xmm0
addsd %xmm4, %xmm0
xorps %xmm1, %xmm1
cvtsi2sd %ecx, %xmm1
xorps %xmm3, %xmm3
cvtsi2sdl 0x138(%r14), %xmm3
xorps %xmm5, %xmm5
cvtsi2sd %esi, %xmm5
addsd %xmm2, %xmm3
movsd %xmm5, 0x18(%rsp)
mulsd %xmm5, %xmm3
subsd %xmm3, %xmm1
addsd %xmm4, %xmm1
leal (%r13,%r13), %eax
xorps %xmm2, %xmm2
cvtsi2sd %eax, %xmm2
movsd %xmm2, 0x10(%rsp)
addsd %xmm2, %xmm1
movq %r15, %rdi
movq %r14, %rsi
movsd %xmm0, 0x30(%rsp)
movsd %xmm1, 0x28(%rsp)
movl %r13d, %edx
callq 0x23242
movq 0x18(%r14), %rax
testq %rax, %rax
je 0x25346
xorps %xmm0, %xmm0
cvtsi2sdl 0x134(%rax), %xmm0
movsd 0x7da5b(%rip), %xmm4    # 0xa2d18
addsd %xmm4, %xmm0
mulsd 0x20(%rsp), %xmm0
movsd 0x7fa99(%rip), %xmm3    # 0xa4d68
addsd %xmm3, %xmm0
xorps %xmm1, %xmm1
cvtsi2sdl (%r12), %xmm1
xorps %xmm2, %xmm2
cvtsi2sdl 0x138(%rax), %xmm2
addsd %xmm4, %xmm2
mulsd 0x18(%rsp), %xmm2
subsd %xmm2, %xmm1
addsd %xmm3, %xmm1
cvttsd2si 0x30(%rsp), %edx
movsd 0x10(%rsp), %xmm3
addsd %xmm3, %xmm1
movsd 0x28(%rsp), %xmm2
subsd %xmm3, %xmm2
cvttsd2si %xmm2, %ecx
cvttsd2si %xmm0, %r8d
xorps %xmm0, %xmm0
cvtsi2sd %r13d, %xmm0
mulsd 0x7fa44(%rip), %xmm0    # 0xa4d70
addsd %xmm1, %xmm0
cvttsd2si %xmm0, %r9d
movq %r15, %rdi
leaq 0x7fcc3(%rip), %rsi     # 0xa5002
xorl %eax, %eax
callq 0x42e0
movq (%r14), %rsi
movq %r15, %rdi
movl %ebp, %edx
movl %ebx, %ecx
callq 0x251b7
movq 0x8(%r14), %r14
jmp 0x251dd
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq