// File: /workspace/github_c_makefile_star2_O0/olcaytaner[P]Isell/rbf.c
// Function: update_rbfweights
void update_rbfweights(Rbfnetworkptr network, Rbfweights delta, Rbfweights prevweights, Rbf_parameterptr params)
{
 /*!Last Changed 21.08.2007*/
 int i, h, j;
 for (i = 0; i < network->output; i++)
   for (h = 0; h < network->hidden + 1; h++)
     network->weights.w.values[i][h] = network->weights.w.values[i][h] + delta.w.values[i][h] + params->alpha * prevweights.w.values[i][h];
 for (h = 0; h < network->hidden; h++)
   for (j = 0; j < network->input; j++)
     network->weights.m.values[h][j] = network->weights.m.values[h][j] + delta.m.values[h][j] + params->alpha * prevweights.m.values[h][j];
 for (h = 0; h < network->hidden; h++)
   network->weights.s.values[0][h] = network->weights.s.values[0][h] + delta.s.values[0][h] + params->alpha * prevweights.s.values[0][h];
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0x40(%rbp), %rax
movq %rax, -0x30(%rbp)
leaq 0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x4(%rcx), %eax
jge 0x9db31
movl $0x0, -0x18(%rbp)
movl -0x18(%rbp), %eax
movq -0x8(%rbp), %rcx
movl (%rcx), %ecx
addl $0x1, %ecx
cmpl %ecx, %eax
jge 0x9db21
movq -0x30(%rbp), %rax
movq -0x28(%rbp), %rcx
movq -0x8(%rbp), %rdx
movq 0x38(%rdx), %rdx
movslq -0x14(%rbp), %rsi
movq (%rdx,%rsi,8), %rdx
movslq -0x18(%rbp), %rsi
movsd (%rdx,%rsi,8), %xmm1
movq 0x28(%rcx), %rcx
movslq -0x14(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
movslq -0x18(%rbp), %rdx
addsd (%rcx,%rdx,8), %xmm1
movq -0x10(%rbp), %rcx
movsd 0x38(%rcx), %xmm0
movq 0x28(%rax), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x18(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movq -0x8(%rbp), %rax
movq 0x38(%rax), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x18(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x9da8a
jmp 0x9db23
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x9da73
movl $0x0, -0x18(%rbp)
movl -0x18(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl (%rcx), %eax
jge 0x9dbf1
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x8(%rcx), %eax
jge 0x9dbe1
movq -0x30(%rbp), %rax
movq -0x28(%rbp), %rcx
movq -0x8(%rbp), %rdx
movq 0x18(%rdx), %rdx
movslq -0x18(%rbp), %rsi
movq (%rdx,%rsi,8), %rdx
movslq -0x1c(%rbp), %rsi
movsd (%rdx,%rsi,8), %xmm1
movq 0x8(%rcx), %rcx
movslq -0x18(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
movslq -0x1c(%rbp), %rdx
addsd (%rcx,%rdx,8), %xmm1
movq -0x10(%rbp), %rcx
movsd 0x38(%rcx), %xmm0
movq 0x8(%rax), %rax
movslq -0x18(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x1c(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movslq -0x18(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x1c(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x9db4e
jmp 0x9dbe3
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x9db38
movl $0x0, -0x18(%rbp)
movl -0x18(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl (%rcx), %eax
jge 0x9dc6f
movq -0x30(%rbp), %rax
movq -0x28(%rbp), %rcx
movq -0x8(%rbp), %rdx
movq 0x28(%rdx), %rdx
movq (%rdx), %rdx
movslq -0x18(%rbp), %rsi
movsd (%rdx,%rsi,8), %xmm1
movq 0x18(%rcx), %rcx
movq (%rcx), %rcx
movslq -0x18(%rbp), %rdx
addsd (%rcx,%rdx,8), %xmm1
movq -0x10(%rbp), %rcx
movsd 0x38(%rcx), %xmm0
movq 0x18(%rax), %rax
movq (%rax), %rax
movslq -0x18(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movq (%rax), %rax
movslq -0x18(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x9dbf8
popq %rbp
retq
nopw %cs:(%rax,%rax)