// File: wrighteagle2d[P]wrighteaglebase/Debug/../src/Net.cpp
// Function: Net::UpdateWeight()
inline void Net::UpdateWeight() {
  for (int i = 1; i < mLayers; ++i) {
    for (int j = 0; j < mUnits[i]; ++j) {
      for (int k = 0; k < mUnits[i - 1]; ++k) {
        mDeltaWeight[i][j][k] = mEta * mDelta[i][j] * mOutput[i - 1][k] +
                                mAlpha * mDeltaWeight[i][j][k];
        mWeight[i][j][k] += mDeltaWeight[i][j][k];
      }
      mDeltaWeight[i][j][mUnits[i - 1]] =
          mEta * mDelta[i][j] + mAlpha * mDeltaWeight[i][j][mUnits[i - 1]];
      mWeight[i][j][mUnits[i - 1]] += mDeltaWeight[i][j][mUnits[i - 1]];
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
movl $0x1, -0xc(%rbp)
movq -0x20(%rbp), %rcx
movl -0xc(%rbp), %eax
cmpl (%rcx), %eax
jge 0x61b3b
movl $0x0, -0x10(%rbp)
movq -0x20(%rbp), %rcx
movl -0x10(%rbp), %eax
movq 0x8(%rcx), %rcx
movslq -0xc(%rbp), %rdx
cmpl (%rcx,%rdx,4), %eax
jge 0x61b2b
movl $0x0, -0x14(%rbp)
movq -0x20(%rbp), %rcx
movl -0x14(%rbp), %eax
movq 0x8(%rcx), %rcx
movl -0xc(%rbp), %edx
subl $0x1, %edx
movslq %edx, %rdx
cmpl (%rcx,%rdx,4), %eax
jge 0x61a45
movq -0x20(%rbp), %rax
movsd 0x38(%rax), %xmm0
movq 0x20(%rax), %rcx
movslq -0xc(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
movslq -0x10(%rbp), %rdx
mulsd (%rcx,%rdx,8), %xmm0
movq 0x28(%rax), %rcx
movl -0xc(%rbp), %edx
subl $0x1, %edx
movslq %edx, %rdx
movq (%rcx,%rdx,8), %rcx
movslq -0x14(%rbp), %rdx
movsd (%rcx,%rdx,8), %xmm2
movsd 0x40(%rax), %xmm1
movq 0x18(%rax), %rcx
movslq -0xc(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
movslq -0x10(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
movslq -0x14(%rbp), %rdx
mulsd (%rcx,%rdx,8), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movq 0x18(%rax), %rcx
movslq -0xc(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
movslq -0x10(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
movslq -0x14(%rbp), %rdx
movsd %xmm0, (%rcx,%rdx,8)
movq 0x18(%rax), %rcx
movslq -0xc(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
movslq -0x10(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
movslq -0x14(%rbp), %rdx
movsd (%rcx,%rdx,8), %xmm0
movq 0x10(%rax), %rax
movslq -0xc(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x10(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x14(%rbp), %rcx
addsd (%rax,%rcx,8), %xmm0
movsd %xmm0, (%rax,%rcx,8)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x6195c
movq -0x20(%rbp), %rcx
movsd 0x38(%rcx), %xmm0
movq 0x20(%rcx), %rax
movslq -0xc(%rbp), %rdx
movq (%rax,%rdx,8), %rax
movslq -0x10(%rbp), %rdx
movsd (%rax,%rdx,8), %xmm2
movsd 0x40(%rcx), %xmm1
movq 0x18(%rcx), %rax
movslq -0xc(%rbp), %rdx
movq (%rax,%rdx,8), %rax
movslq -0x10(%rbp), %rdx
movq (%rax,%rdx,8), %rax
movq 0x8(%rcx), %rdx
movl -0xc(%rbp), %esi
subl $0x1, %esi
movslq %esi, %rsi
movslq (%rdx,%rsi,4), %rdx
mulsd (%rax,%rdx,8), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movq 0x18(%rcx), %rax
movslq -0xc(%rbp), %rdx
movq (%rax,%rdx,8), %rax
movslq -0x10(%rbp), %rdx
movq (%rax,%rdx,8), %rax
movq 0x8(%rcx), %rdx
movl -0xc(%rbp), %esi
subl $0x1, %esi
movslq %esi, %rsi
movslq (%rdx,%rsi,4), %rdx
movsd %xmm0, (%rax,%rdx,8)
movq 0x18(%rcx), %rax
movslq -0xc(%rbp), %rdx
movq (%rax,%rdx,8), %rax
movslq -0x10(%rbp), %rdx
movq (%rax,%rdx,8), %rax
movq 0x8(%rcx), %rdx
movl -0xc(%rbp), %esi
subl $0x1, %esi
movslq %esi, %rsi
movslq (%rdx,%rsi,4), %rdx
movsd (%rax,%rdx,8), %xmm0
movq 0x10(%rcx), %rax
movslq -0xc(%rbp), %rdx
movq (%rax,%rdx,8), %rax
movslq -0x10(%rbp), %rdx
movq (%rax,%rdx,8), %rax
movq 0x8(%rcx), %rcx
movl -0xc(%rbp), %edx
subl $0x1, %edx
movslq %edx, %rdx
movslq (%rcx,%rdx,4), %rcx
addsd (%rax,%rcx,8), %xmm0
movsd %xmm0, (%rax,%rcx,8)
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0x6193d
jmp 0x61b2d
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x61927
popq %rbp
retq
nopl (%rax)