// File: /workspace/github_c_makefile_star2_O1/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 0xd79e
movl %ecx, %r12d
testl %ecx, %ecx
jle 0xd79e
movl %r8d, %ebp
testl %r8d, %r8d
jle 0xd79e
movl %edx, %r13d
movq %rsi, %r15
movq %rdi, %rbx
movq %rdi, %r14
movq (%r14), %r14
cmpq %rbx, %r14
je 0xd624
movq 0x10(%r14), %rdi
callq 0x6f9c
movq %rax, %rdi
movq %r15, %rsi
callq 0x33f0
testl %eax, %eax
jne 0xd5e5
leaq 0xad04(%rip), %rdi      # 0x18310
leaq 0xad1f(%rip), %rsi      # 0x18332
leaq 0xadf4(%rip), %rcx      # 0x1840e
movl $0x73, %edx
callq 0x31b0
movl %ebp, %r14d
leaq 0x10(%rsp), %rdi
leaq 0x7(%rsp), %rdx
movq %r15, %rsi
callq 0xaa0c
leaq 0x18(%rbx), %rbp
leaq 0x10(%rsp), %rsi
movq %rbp, %rdi
callq 0x11b50
testq %rax, %rax
jne 0xd7bd
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xd66e
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 0x8cba
leaq 0x10(%rsp), %rdi
leaq 0x7(%rsp), %rdx
movq %r15, %rsi
callq 0xaa0c
leaq 0x10(%rsp), %rsi
movq %rbp, %rdi
callq 0x11c4c
movq 0x8(%rsp), %rcx
movq %rcx, (%rax)
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0xd6d7
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x32f0
movq 0x8(%rsp), %rdi
callq 0x91dc
testq %rax, %rax
je 0xd78f
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 0xd755
movq 0x38(%rsp), %r14
movq %rbp, %r13
testb %al, %al
jne 0xd761
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 0x9222
movq %rax, %r12
testq %rax, %rax
jne 0xd71f
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xac4c(%rip), %rdi      # 0x183f1
leaq 0xab86(%rip), %rsi      # 0x18332
leaq 0xac5b(%rip), %rcx      # 0x1840e
movl $0x71, %edx
callq 0x31b0
leaq 0xaba6(%rip), %rdi      # 0x1836a
leaq 0xab67(%rip), %rsi      # 0x18332
leaq 0xac3c(%rip), %rcx      # 0x1840e
movl $0x75, %edx
callq 0x31b0
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
jmp 0xd808
jmp 0xd81c
movq %rax, %rbx
movl $0xa0, %esi
movq 0x8(%rsp), %rdi
jmp 0xd815
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xd81f
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x32f0
jmp 0xd81f
movq %rax, %rbx
movq %rbx, %rdi
callq 0x3570
nop