// File: /workspace/github_c_makefile_star2_O0/olcaytaner[P]Isell/regressiontree.c
// Function: make_regression_children
int make_regression_children(Regressionnodeptr node, LEAF_TYPE leaftype)
{
	/*!Last Changed 24.03.2005*/
	/*!Last Changed 09.12.2004*/
 Regressionnodeptr left, right;
 if (node->featureno == LEAF_NODE || node->instances == NULL)
	 {
		 make_leaf_regression_node(node, leaftype);
   return 0;
	 }
 left = createnewregnode(node, 1, leaftype);
 right = createnewregnode(node, 1, leaftype);
	if (node->featureno >= 0)
	 {
  	divide_instancelist_according_to_split(&(node->instances), &(left->instances), &(right->instances), node->featureno, node->split);
	  divide_instancelist_according_to_split(&(node->cvinstances), &(left->cvinstances), &(right->cvinstances), node->featureno, node->split);
	 }
	else
		 if (node->featureno == LINEAR)
			 {
				 divide_instancelist_according_centers(&(node->instances), &(left->instances), &(right->instances), node->leftcenter, node->rightcenter, NO);
				 divide_instancelist_according_centers(&(node->cvinstances), &(left->cvinstances), &(right->cvinstances), node->leftcenter, node->rightcenter, NO);
			 }
			else
			 {
				 divide_instancelist_according_centers(&(node->instances), &(left->instances), &(right->instances), node->leftcenter, node->rightcenter, YES);
				 divide_instancelist_according_centers(&(node->cvinstances), &(left->cvinstances), &(right->cvinstances), node->leftcenter, node->rightcenter, YES);
			 }
	node->left = left;
	node->right = right;
 return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq -0x10(%rbp), %rax
cmpl $-0x1, 0x68(%rax)
je 0xa7094
movq -0x10(%rbp), %rax
cmpq $0x0, 0x20(%rax)
jne 0xa70ac
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0xa60c0
movl $0x0, -0x4(%rbp)
jmp 0xa7249
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %edx
movl $0x1, %esi
callq 0xa6d80
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %edx
movl $0x1, %esi
callq 0xa6d80
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x0, 0x68(%rax)
jl 0xa713f
movq -0x10(%rbp), %rdi
addq $0x20, %rdi
movq -0x20(%rbp), %rsi
addq $0x20, %rsi
movq -0x28(%rbp), %rdx
addq $0x20, %rdx
movq -0x10(%rbp), %rax
movl 0x68(%rax), %ecx
movq -0x10(%rbp), %rax
movsd 0x50(%rax), %xmm0
callq 0x456d0
movq -0x10(%rbp), %rdi
addq $0x28, %rdi
movq -0x20(%rbp), %rsi
addq $0x28, %rsi
movq -0x28(%rbp), %rdx
addq $0x28, %rdx
movq -0x10(%rbp), %rax
movl 0x68(%rax), %ecx
movq -0x10(%rbp), %rax
movsd 0x50(%rax), %xmm0
callq 0x456d0
jmp 0xa722b
movq -0x10(%rbp), %rax
cmpl $-0x2, 0x68(%rax)
jne 0xa71b7
movq -0x10(%rbp), %rdi
addq $0x20, %rdi
movq -0x20(%rbp), %rsi
addq $0x20, %rsi
movq -0x28(%rbp), %rdx
addq $0x20, %rdx
movq -0x10(%rbp), %rax
movq 0x80(%rax), %rcx
movq -0x10(%rbp), %rax
movq 0x88(%rax), %r8
xorl %r9d, %r9d
callq 0x45590
movq -0x10(%rbp), %rdi
addq $0x28, %rdi
movq -0x20(%rbp), %rsi
addq $0x28, %rsi
movq -0x28(%rbp), %rdx
addq $0x28, %rdx
movq -0x10(%rbp), %rax
movq 0x80(%rax), %rcx
movq -0x10(%rbp), %rax
movq 0x88(%rax), %r8
xorl %r9d, %r9d
callq 0x45590
jmp 0xa7229
movq -0x10(%rbp), %rdi
addq $0x20, %rdi
movq -0x20(%rbp), %rsi
addq $0x20, %rsi
movq -0x28(%rbp), %rdx
addq $0x20, %rdx
movq -0x10(%rbp), %rax
movq 0x80(%rax), %rcx
movq -0x10(%rbp), %rax
movq 0x88(%rax), %r8
movl $0x1, %r9d
callq 0x45590
movq -0x10(%rbp), %rdi
addq $0x28, %rdi
movq -0x20(%rbp), %rsi
addq $0x28, %rsi
movq -0x28(%rbp), %rdx
addq $0x28, %rdx
movq -0x10(%rbp), %rax
movq 0x80(%rax), %rcx
movq -0x10(%rbp), %rax
movq 0x88(%rax), %r8
movl $0x1, %r9d
callq 0x45590
jmp 0xa722b
movq -0x20(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
movq -0x28(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)