// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl %ecx, -0x18(%rbp)
movsd %xmm0, -0x20(%rbp)
movsd %xmm1, -0x28(%rbp)
movl -0x18(%rbp), %ecx
shll %ecx
movl $0x244, %eax            # imm = 0x244
cltd
idivl %ecx
movl %eax, -0x2c(%rbp)
movl $0x244, %eax            # imm = 0x244
cltd
idivl -0x18(%rbp)
movl %eax, -0x30(%rbp)
leaq 0x3ac7a5(%rip), %rax    # 0x3e2088
movl (%rax), %eax
cltd
idivl -0x14(%rbp)
movl %eax, -0x34(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x35b1e
movq -0x10(%rbp), %rax
cvtsi2sdl 0x90(%rax), %xmm0
movsd 0xad0ad(%rip), %xmm1    # 0xe29b8
addsd %xmm1, %xmm0
cvtsi2sdl -0x30(%rbp), %xmm1
mulsd %xmm1, %xmm0
movsd 0xaf050(%rip), %xmm1    # 0xe4970
addsd %xmm1, %xmm0
movsd %xmm0, -0x48(%rbp)
leaq 0x3ac758(%rip), %rax    # 0x3e2088
cvtsi2sdl (%rax), %xmm1
movq -0x10(%rbp), %rax
cvtsi2sdl 0x94(%rax), %xmm0
movsd 0xad070(%rip), %xmm2    # 0xe29b8
addsd %xmm2, %xmm0
cvtsi2sdl -0x34(%rbp), %xmm2
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd 0xaeff8(%rip), %xmm1    # 0xe4970
addsd %xmm1, %xmm0
movl -0x2c(%rbp), %eax
shll %eax
cvtsi2sd %eax, %xmm1
addsd %xmm1, %xmm0
movsd %xmm0, -0x40(%rbp)
movq -0x10(%rbp), %rax
cmpl $-0x1, 0x68(%rax)
jne 0x359c3
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl -0x2c(%rbp), %edx
movsd -0x20(%rbp), %xmm2
movsd -0x28(%rbp), %xmm3
movsd -0x48(%rbp), %xmm0
movsd -0x40(%rbp), %xmm1
movl $0x7de, %ecx            # imm = 0x7DE
callq 0x349c0
jmp 0x359e7
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl -0x2c(%rbp), %edx
movsd -0x20(%rbp), %xmm2
movsd -0x28(%rbp), %xmm3
movsd -0x48(%rbp), %xmm0
movsd -0x40(%rbp), %xmm1
callq 0x34320
movq -0x10(%rbp), %rax
cmpq $0x0, 0x18(%rax)
je 0x35add
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
cvtsi2sdl 0x90(%rax), %xmm0
movsd 0xacfaa(%rip), %xmm1    # 0xe29b8
addsd %xmm1, %xmm0
cvtsi2sdl -0x30(%rbp), %xmm1
mulsd %xmm1, %xmm0
movsd 0xaef4d(%rip), %xmm1    # 0xe4970
addsd %xmm1, %xmm0
movsd %xmm0, -0x58(%rbp)
leaq 0x3ac655(%rip), %rax    # 0x3e2088
cvtsi2sdl (%rax), %xmm1
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
cvtsi2sdl 0x94(%rax), %xmm0
movsd 0xacf69(%rip), %xmm2    # 0xe29b8
addsd %xmm2, %xmm0
cvtsi2sdl -0x34(%rbp), %xmm2
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd 0xaeef1(%rip), %xmm1    # 0xe4970
addsd %xmm1, %xmm0
movl -0x2c(%rbp), %eax
shll %eax
cvtsi2sd %eax, %xmm1
addsd %xmm1, %xmm0
movsd %xmm0, -0x50(%rbp)
movq -0x8(%rbp), %rdi
cvttsd2si -0x48(%rbp), %esi
movsd -0x40(%rbp), %xmm0
movl -0x2c(%rbp), %eax
shll %eax
cvtsi2sd %eax, %xmm1
subsd %xmm1, %xmm0
cvttsd2si %xmm0, %edx
cvttsd2si -0x58(%rbp), %ecx
movsd -0x50(%rbp), %xmm1
cvtsi2sdl -0x2c(%rbp), %xmm0
movsd 0xaeead(%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
movsd -0x20(%rbp), %xmm0
movsd -0x28(%rbp), %xmm1
callq 0x358a0
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rsi
movl -0x14(%rbp), %edx
movl -0x18(%rbp), %ecx
movsd -0x20(%rbp), %xmm0
movsd -0x28(%rbp), %xmm1
callq 0x358a0
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)