// File: /workspace/github_c_makefile_star2_O3/stonezwr[P]SpiKL-IP/network.C
// Function: Network::LSMAddNeuronGroup(char*, int, int, int)
void Network::LSMAddNeuronGroup(char * name, int dim1, int dim2, int dim3){
    assert((dim1>0)&&(dim2>0)&&(dim3>0));
    for(list<Neuron*>::iterator iter = _individualNeurons.begin(); iter != _individualNeurons.end(); iter++)
        assert(strcmp((*iter)->Name(),name) != 0);

    assert(_groupNeurons.find(string(name)) == _groupNeurons.end());

    NeuronGroup * neuronGroup = new NeuronGroup(name, dim1, dim2, dim3, this);

    _groupNeurons[string(name)] = neuronGroup;

    for(Neuron * neuron = neuronGroup->First(); neuron != NULL; neuron = neuronGroup->Next()){
        _allNeurons.push_back(neuron);
        if(neuron->IsExcitatory()) _allExcitatoryNeurons.push_back(neuron);
        else _allInhibitoryNeurons.push_back(neuron);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
testl %edx, %edx
jle 0xd514
movl %ecx, %r12d
testl %ecx, %ecx
jle 0xd514
movl %r8d, %ebp
testl %r8d, %r8d
jle 0xd514
movl %edx, %r13d
movq %rsi, %r15
movq %rdi, %rbx
movq %rdi, %r14
movq (%r14), %r14
cmpq %rbx, %r14
je 0xd39a
movq 0x10(%r14), %rdi
callq 0x6ec8
movq %rax, %rdi
movq %r15, %rsi
callq 0x33f0
testl %eax, %eax
jne 0xd35b
leaq 0xb02e(%rip), %rdi      # 0x183b0
leaq 0xb049(%rip), %rsi      # 0x183d2
leaq 0xb11e(%rip), %rcx      # 0x184ae
movl $0x73, %edx
callq 0x31b0
movl %ebp, %r14d
leaq 0x10(%rsp), %rdi
leaq 0x7(%rsp), %rdx
movq %r15, %rsi
callq 0xa7e4
leaq 0x18(%rbx), %rbp
leaq 0x10(%rsp), %rsi
movq %rbp, %rdi
callq 0x1182c
testq %rax, %rax
jne 0xd533
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xd3e4
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x32f0
movl $0xa0, %edi
callq 0x32e0
movq %rax, 0x8(%rsp)
movq %rax, %rdi
movq %r15, %rsi
movl %r13d, %edx
movl %r12d, %ecx
movl %r14d, %r8d
movq %rbx, %r9
callq 0x8ac8
leaq 0x10(%rsp), %rdi
leaq 0x7(%rsp), %rdx
movq %r15, %rsi
callq 0xa7e4
leaq 0x10(%rsp), %rsi
movq %rbp, %rdi
callq 0x11928
movq 0x8(%rsp), %rcx
movq %rcx, (%rax)
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0xd44d
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x32f0
movq 0x8(%rsp), %rdi
callq 0x8fe4
testq %rax, %rax
je 0xd505
movq %rax, %r12
leaq 0x88(%rbx), %rax
movq %rax, 0x40(%rsp)
leaq 0xa0(%rbx), %rbp
leaq 0xc8(%rbx), %rax
movq %rax, 0x38(%rsp)
leaq 0xb0(%rbx), %r15
leaq 0xb8(%rbx), %rax
movq %rax, 0x30(%rsp)
movl $0x18, %edi
callq 0x32e0
movq %r12, 0x10(%rax)
movq %rax, %rdi
movq 0x40(%rsp), %rsi
callq 0x3060
incq 0x98(%rbx)
movb 0x110(%r12), %al
movq %r15, %r14
testb %al, %al
jne 0xd4cb
movq 0x38(%rsp), %r14
movq %rbp, %r13
testb %al, %al
jne 0xd4d7
movq 0x30(%rsp), %r13
movl $0x18, %edi
callq 0x32e0
movq %r12, 0x10(%rax)
movq %rax, %rdi
movq %r13, %rsi
callq 0x3060
incq (%r14)
movq 0x8(%rsp), %rdi
callq 0x902a
movq %rax, %r12
testq %rax, %rax
jne 0xd495
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xaf76(%rip), %rdi      # 0x18491
leaq 0xaeb0(%rip), %rsi      # 0x183d2
leaq 0xaf85(%rip), %rcx      # 0x184ae
movl $0x71, %edx
callq 0x31b0
leaq 0xaed0(%rip), %rdi      # 0x1840a
leaq 0xae91(%rip), %rsi      # 0x183d2
leaq 0xaf66(%rip), %rcx      # 0x184ae
movl $0x75, %edx
callq 0x31b0
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
jmp 0xd57e
jmp 0xd592
movq %rax, %rbx
movl $0xa0, %esi
movq 0x8(%rsp), %rdi
jmp 0xd58b
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xd595
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x32f0
jmp 0xd595
movq %rax, %rbx
movq %rbx, %rdi
callq 0x3570
nop