// File: /workspace/github_c_makefile_star2_O3/stonezwr[P]SpiKL-IP/network.C
// Function: Network::LSMAddNeuronGroup(char*, char*, char*)
void Network::LSMAddNeuronGroup(char * name, char * path_info_neuron, char * path_info_synapse){
    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, path_info_neuron, path_info_synapse,this); //This function helps to generate the reservoir with brain-like connectivity
    _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
movq %rcx, %r12
movq %rdx, %r13
movq %rsi, %r15
movq %rdi, %rbx
movq %rdi, %r14
movq (%r14), %r14
cmpq %rbx, %r14
je 0xd5fa
movq 0x10(%r14), %rdi
callq 0x6ec8
movq %rax, %rdi
movq %r15, %rsi
callq 0x33f0
testl %eax, %eax
jne 0xd5bb
leaq 0xadce(%rip), %rdi      # 0x183b0
leaq 0xade9(%rip), %rsi      # 0x183d2
leaq 0xaef5(%rip), %rcx      # 0x184e5
movl $0x85, %edx
callq 0x31b0
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 0xd76d
movq %r12, %r14
leaq 0x20(%rsp), %r12
movq -0x10(%r12), %rdi
cmpq %r12, %rdi
je 0xd645
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x32f0
movl $0xa0, %edi
callq 0x32e0
movq %rax, 0x8(%rsp)
movq %rax, %rdi
movq %r15, %rsi
movq %r13, %rdx
movq %r14, %rcx
movq %rbx, %r8
callq 0x8612
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
cmpq %r12, %rdi
je 0xd6a6
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x32f0
movq 0x8(%rsp), %rdi
callq 0x8fe4
testq %rax, %rax
je 0xd75e
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 0xd724
movq 0x38(%rsp), %r14
movq %rbp, %r13
testb %al, %al
jne 0xd730
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 0xd6ee
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xac96(%rip), %rdi      # 0x1840a
leaq 0xac57(%rip), %rsi      # 0x183d2
leaq 0xad63(%rip), %rcx      # 0x184e5
movl $0x87, %edx
callq 0x31b0
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
jne 0xd7bd
jmp 0xd7cf
jmp 0xd7cc
movq %rax, %rbx
movl $0xa0, %esi
movq 0x8(%rsp), %rdi
jmp 0xd7c5
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xd7cf
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x32f0
jmp 0xd7cf
movq %rax, %rbx
movq %rbx, %rdi
callq 0x3570
nop