// File: /workspace/github_c_makefile_star2_O0/olcaytaner[P]Isell/mlp.c
// Function: testMlpnInput_reg
double testMlpnInput_reg(double *Test, matrix* testY, Mlpnetwork N, matrixptr output_error)
{
	/*!Last Changed 16.03.2004 Oya*/
	double sqrderror;
	matrixptr testH;
	int li;			
	*testY = matrix_alloc(1, N.P.classnum);
	testH = allocate_hiddens(N.P);
	/*calculate hidden layers*/
	for (li=0; li<N.P.layernum; li++)
	 {
 		if (li==0)
  			calculate_hidden_values(Test, N.weights[0], &testH[0]);
	 	else
	  		calculate_hidden_values(testH[li-1].values[0], N.weights[li], &testH[li]);
	 }
	/*calculate outputs*/
	if (N.P.layernum == 0)
   calculate_output_values_reg(Test, N.weights[N.P.layernum], testY);
	else
		 calculate_output_values_reg(testH[N.P.layernum-1].values[0], N.weights[N.P.layernum], testY);
	/*calculate error*/
	sqrderror = calculate_error_values_reg(Test[N.P.dimnum], *testY, output_error);
	free_hiddens(testH, N.P.layernum);
	return sqrderror;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xe0, %rsp
leaq 0x10(%rbp), %rax
movq %rax, -0x50(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rcx
movq %rcx, -0x48(%rbp)
movl 0x8(%rax), %esi
movl $0x1, %edi
callq 0x57fc0
movq -0x50(%rbp), %rsi
movq %rax, %rcx
movq -0x48(%rbp), %rax
movq %rcx, -0x40(%rbp)
movq %rdx, -0x38(%rbp)
movq -0x40(%rbp), %rcx
movq %rcx, (%rax)
movq -0x38(%rbp), %rcx
movq %rcx, 0x8(%rax)
addq $0x8, %rsi
movq %rsp, %rdi
movl $0x12, %ecx
rep  movsq (%rsi), %es:(%rdi)
callq 0x63970
movq %rax, -0x28(%rbp)
movl $0x0, -0x2c(%rbp)
movq -0x50(%rbp), %rcx
movl -0x2c(%rbp), %eax
cmpl 0x5c(%rcx), %eax
jge 0x64f6c
cmpl $0x0, -0x2c(%rbp)
jne 0x64f14
movq -0x50(%rbp), %rax
movq -0x8(%rbp), %rdi
movq (%rax), %rax
movq -0x28(%rbp), %rcx
movq (%rax), %rsi
movq 0x8(%rax), %rdx
callq 0x62ac0
jmp 0x64f5c
movq -0x50(%rbp), %rax
movq -0x28(%rbp), %rcx
movl -0x2c(%rbp), %edx
subl $0x1, %edx
movslq %edx, %rdx
shlq $0x4, %rdx
addq %rdx, %rcx
movq 0x8(%rcx), %rcx
movq (%rcx), %rdi
movq (%rax), %rax
movslq -0x2c(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq -0x28(%rbp), %rcx
movslq -0x2c(%rbp), %rdx
shlq $0x4, %rdx
addq %rdx, %rcx
movq (%rax), %rsi
movq 0x8(%rax), %rdx
callq 0x62ac0
jmp 0x64f5e
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x64ee5
movq -0x50(%rbp), %rax
cmpl $0x0, 0x5c(%rax)
jne 0x64f9e
movq -0x50(%rbp), %rcx
movq -0x8(%rbp), %rdi
movq (%rcx), %rax
movslq 0x5c(%rcx), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq -0x10(%rbp), %rcx
movq (%rax), %rsi
movq 0x8(%rax), %rdx
callq 0x632a0
jmp 0x64fdb
movq -0x50(%rbp), %rcx
movq -0x28(%rbp), %rax
movl 0x5c(%rcx), %edx
subl $0x1, %edx
movslq %edx, %rdx
shlq $0x4, %rdx
addq %rdx, %rax
movq 0x8(%rax), %rax
movq (%rax), %rdi
movq (%rcx), %rax
movslq 0x5c(%rcx), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq -0x10(%rbp), %rcx
movq (%rax), %rsi
movq 0x8(%rax), %rdx
callq 0x632a0
movq -0x50(%rbp), %rcx
movq -0x8(%rbp), %rax
movslq 0xc(%rcx), %rcx
movsd (%rax,%rcx,8), %xmm0
movq -0x10(%rbp), %rax
movq -0x18(%rbp), %rdx
movq (%rax), %rdi
movq 0x8(%rax), %rsi
callq 0x63c90
movq -0x50(%rbp), %rax
movsd %xmm0, -0x20(%rbp)
movq -0x28(%rbp), %rdi
movl 0x5c(%rax), %esi
callq 0x63b40
movsd -0x20(%rbp), %xmm0
addq $0xe0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)