// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/eps.c
// Function: plot_regression_model_at_node
void plot_regression_model_at_node(FILE* outfile, Regressionnodeptr rootnode, int maxdepth, int maxwidth, double outputmean, double outputvariance)
{
 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;
   if (rootnode->featureno == LEAF_NODE)
     plot_regression_leaf_model(outfile, rootnode, p1, radius, SOFTREGTREE, outputmean, outputvariance);
   else
     plot_regression_node_model(outfile, rootnode, p1, radius, outputmean, outputvariance);
   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_regression_model_at_node(outfile, rootnode->left, maxdepth, maxwidth, outputmean, outputvariance);
   plot_regression_model_at_node(outfile, rootnode->right, maxdepth, maxwidth, outputmean, outputvariance);
  }  
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movsd %xmm1, 0x8(%rsp)
movsd %xmm0, (%rsp)
movl %ecx, %ebx
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %r15
leal (%rbx,%rbx), %r12d
movl $0x244, %eax            # imm = 0x244
xorl %edx, %edx
idivl %r12d
testq %r14, %r14
je 0x25556
movl %eax, %r13d
leaq 0x389d07(%rip), %rax    # 0x3af0b8
movl (%rax), %ecx
movl %ecx, %eax
cltd
idivl %ebp
movl %eax, %esi
movl $0x244, %eax            # imm = 0x244
xorl %edx, %edx
idivl %ebx
xorps %xmm3, %xmm3
cvtsi2sdl 0x90(%r14), %xmm3
movsd 0x7d941(%rip), %xmm4    # 0xa2d18
addsd %xmm4, %xmm3
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x20(%rsp)
mulsd %xmm0, %xmm3
movsd 0x7f974(%rip), %xmm2    # 0xa4d68
addsd %xmm2, %xmm3
xorps %xmm1, %xmm1
cvtsi2sd %ecx, %xmm1
xorps %xmm0, %xmm0
cvtsi2sdl 0x94(%r14), %xmm0
addsd %xmm4, %xmm0
xorps %xmm4, %xmm4
cvtsi2sd %esi, %xmm4
movsd %xmm4, 0x10(%rsp)
mulsd %xmm4, %xmm0
subsd %xmm0, %xmm1
leal (%r13,%r13), %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
addsd %xmm2, %xmm1
movsd %xmm0, 0x18(%rsp)
addsd %xmm0, %xmm1
cmpl $-0x1, 0x68(%r14)
movsd %xmm3, 0x30(%rsp)
movsd %xmm1, 0x28(%rsp)
movq %r15, %rdi
movq %r14, %rsi
movapd %xmm3, %xmm0
movl %r13d, %edx
je 0x25470
movsd (%rsp), %xmm2
movsd 0x8(%rsp), %xmm3
callq 0x23feb
jmp 0x25485
movl $0x7de, %ecx            # imm = 0x7DE
movsd (%rsp), %xmm2
movsd 0x8(%rsp), %xmm3
callq 0x24619
movq 0x18(%r14), %rax
testq %rax, %rax
je 0x25533
xorps %xmm0, %xmm0
cvtsi2sdl 0x90(%rax), %xmm0
movsd 0x7d873(%rip), %xmm3    # 0xa2d18
addsd %xmm3, %xmm0
mulsd 0x20(%rsp), %xmm0
movsd 0x7f8b1(%rip), %xmm4    # 0xa4d68
addsd %xmm4, %xmm0
leaq 0x389bf6(%rip), %rcx    # 0x3af0b8
xorps %xmm1, %xmm1
cvtsi2sdl (%rcx), %xmm1
xorps %xmm2, %xmm2
cvtsi2sdl 0x94(%rax), %xmm2
addsd %xmm3, %xmm2
mulsd 0x10(%rsp), %xmm2
subsd %xmm2, %xmm1
addsd %xmm4, %xmm1
cvttsd2si 0x30(%rsp), %edx
movsd 0x18(%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 0x7f857(%rip), %xmm0    # 0xa4d70
addsd %xmm1, %xmm0
cvttsd2si %xmm0, %r9d
movq %r15, %rdi
leaq 0x7fad6(%rip), %rsi     # 0xa5002
xorl %eax, %eax
callq 0x42e0
movq (%r14), %rsi
movq %r15, %rdi
movl %ebp, %edx
movl %ebx, %ecx
movsd (%rsp), %xmm0
movsd 0x8(%rsp), %xmm1
callq 0x2536d
movq 0x8(%r14), %r14
jmp 0x25394
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq