// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl %ecx, -0x18(%rbp)
movl -0x18(%rbp), %ecx
shll %ecx
movl $0x244, %eax            # imm = 0x244
cltd
idivl %ecx
movl %eax, -0x1c(%rbp)
movl $0x244, %eax            # imm = 0x244
cltd
idivl -0x18(%rbp)
movl %eax, -0x20(%rbp)
leaq 0x3ac9df(%rip), %rax    # 0x3e2088
movl (%rax), %eax
cltd
idivl -0x14(%rbp)
movl %eax, -0x24(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x35891
movq -0x10(%rbp), %rax
cvtsi2sdl 0x134(%rax), %xmm0
movsd 0xad2e7(%rip), %xmm1    # 0xe29b8
addsd %xmm1, %xmm0
cvtsi2sdl -0x20(%rbp), %xmm1
mulsd %xmm1, %xmm0
movsd 0xaf28a(%rip), %xmm1    # 0xe4970
addsd %xmm1, %xmm0
movsd %xmm0, -0x38(%rbp)
leaq 0x3ac992(%rip), %rax    # 0x3e2088
cvtsi2sdl (%rax), %xmm1
movq -0x10(%rbp), %rax
cvtsi2sdl 0x138(%rax), %xmm0
movsd 0xad2aa(%rip), %xmm2    # 0xe29b8
addsd %xmm2, %xmm0
cvtsi2sdl -0x24(%rbp), %xmm2
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd 0xaf232(%rip), %xmm1    # 0xe4970
addsd %xmm1, %xmm0
movl -0x1c(%rbp), %eax
shll %eax
cvtsi2sd %eax, %xmm1
addsd %xmm1, %xmm0
movsd %xmm0, -0x30(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl -0x1c(%rbp), %edx
movsd -0x38(%rbp), %xmm0
movsd -0x30(%rbp), %xmm1
callq 0x33300
movq -0x10(%rbp), %rax
cmpq $0x0, 0x18(%rax)
je 0x35864
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
cvtsi2sdl 0x134(%rax), %xmm0
movsd 0xad223(%rip), %xmm1    # 0xe29b8
addsd %xmm1, %xmm0
cvtsi2sdl -0x20(%rbp), %xmm1
mulsd %xmm1, %xmm0
movsd 0xaf1c6(%rip), %xmm1    # 0xe4970
addsd %xmm1, %xmm0
movsd %xmm0, -0x48(%rbp)
leaq 0x3ac8ce(%rip), %rax    # 0x3e2088
cvtsi2sdl (%rax), %xmm1
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
cvtsi2sdl 0x138(%rax), %xmm0
movsd 0xad1e2(%rip), %xmm2    # 0xe29b8
addsd %xmm2, %xmm0
cvtsi2sdl -0x24(%rbp), %xmm2
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd 0xaf16a(%rip), %xmm1    # 0xe4970
addsd %xmm1, %xmm0
movl -0x1c(%rbp), %eax
shll %eax
cvtsi2sd %eax, %xmm1
addsd %xmm1, %xmm0
movsd %xmm0, -0x40(%rbp)
movq -0x8(%rbp), %rdi
cvttsd2si -0x38(%rbp), %esi
movsd -0x30(%rbp), %xmm0
movl -0x1c(%rbp), %eax
shll %eax
cvtsi2sd %eax, %xmm1
subsd %xmm1, %xmm0
cvttsd2si %xmm0, %edx
cvttsd2si -0x48(%rbp), %ecx
movsd -0x40(%rbp), %xmm1
cvtsi2sdl -0x1c(%rbp), %xmm0
movsd 0xaf126(%rip), %xmm2    # 0xe4978
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
cvttsd2si %xmm0, %r8d
callq 0x32a70
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rsi
movl -0x14(%rbp), %edx
movl -0x18(%rbp), %ecx
callq 0x35670
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rsi
movl -0x14(%rbp), %edx
movl -0x18(%rbp), %ecx
callq 0x35670
addq $0x50, %rsp
popq %rbp
retq
nopw (%rax,%rax)