// File: wrighteagle2d[P]wrighteaglebase/Debug/../src/Net.cpp
// Function: Net::Destroy()
void Net::Destroy() {
  if (mUnits == 0)
    return;
  for (int i = 1; i < mLayers; ++i) {
    for (int j = 0; j < mUnits[i]; ++j) {
      delete[] mWeight[i][j];
      delete[] mDeltaWeight[i][j];
    }
    delete[] mWeight[i];
    delete[] mDeltaWeight[i];
  }
  delete[] mWeight;
  delete[] mDeltaWeight;

  for (int i = 1; i < mLayers; ++i) {
    delete[] mOutput[i];
    delete[] mDelta[i];
  }
  delete[] mOutput;
  delete[] mDelta;

  delete[] mUnits;
  if (mLogName != 0)
    delete[] mLogName;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, 0x8(%rax)
jne 0x603c3
jmp 0x605c1
movl $0x1, -0xc(%rbp)
movq -0x20(%rbp), %rcx
movl -0xc(%rbp), %eax
cmpl (%rcx), %eax
jge 0x604ad
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 0x60457
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movslq -0xc(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x10(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x28(%rbp)
cmpq $0x0, %rax
je 0x6041f
movq -0x28(%rbp), %rdi
callq 0xa7b0
movq -0x20(%rbp), %rax
movq 0x18(%rax), %rax
movslq -0xc(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x10(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x30(%rbp)
cmpq $0x0, %rax
je 0x6044a
movq -0x30(%rbp), %rdi
callq 0xa7b0
jmp 0x6044c
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0x603e0
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movslq -0xc(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x38(%rbp)
cmpq $0x0, %rax
je 0x6047a
movq -0x38(%rbp), %rdi
callq 0xa7b0
movq -0x20(%rbp), %rax
movq 0x18(%rax), %rax
movslq -0xc(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x40(%rbp)
cmpq $0x0, %rax
je 0x6049d
movq -0x40(%rbp), %rdi
callq 0xa7b0
jmp 0x6049f
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x603ca
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x48(%rbp)
cmpq $0x0, %rax
je 0x604c8
movq -0x48(%rbp), %rdi
callq 0xa7b0
movq -0x20(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x50(%rbp)
cmpq $0x0, %rax
je 0x604e3
movq -0x50(%rbp), %rdi
callq 0xa7b0
movl $0x1, -0x14(%rbp)
movq -0x20(%rbp), %rcx
movl -0x14(%rbp), %eax
cmpl (%rcx), %eax
jge 0x60548
movq -0x20(%rbp), %rax
movq 0x28(%rax), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x58(%rbp)
cmpq $0x0, %rax
je 0x60518
movq -0x58(%rbp), %rdi
callq 0xa7b0
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x60(%rbp)
cmpq $0x0, %rax
je 0x6053b
movq -0x60(%rbp), %rdi
callq 0xa7b0
jmp 0x6053d
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x604ea
movq -0x20(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x68(%rbp)
cmpq $0x0, %rax
je 0x60563
movq -0x68(%rbp), %rdi
callq 0xa7b0
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x70(%rbp)
cmpq $0x0, %rax
je 0x6057e
movq -0x70(%rbp), %rdi
callq 0xa7b0
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x78(%rbp)
cmpq $0x0, %rax
je 0x60599
movq -0x78(%rbp), %rdi
callq 0xa7b0
movq -0x20(%rbp), %rax
cmpq $0x0, 0x58(%rax)
je 0x605c1
movq -0x20(%rbp), %rax
movq 0x58(%rax), %rax
movq %rax, -0x80(%rbp)
cmpq $0x0, %rax
je 0x605bf
movq -0x80(%rbp), %rdi
callq 0xa7b0
jmp 0x605c1
addq $0x80, %rsp
popq %rbp
retq
nopw (%rax,%rax)