// File: /workspace/github_c_makefile_star2_O1/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 0xd884
movq 0x10(%r14), %rdi
callq 0x6f9c
movq %rax, %rdi
movq %r15, %rsi
callq 0x33f0
testl %eax, %eax
jne 0xd845
leaq 0xaaa4(%rip), %rdi      # 0x18310
leaq 0xaabf(%rip), %rsi      # 0x18332
leaq 0xabcb(%rip), %rcx      # 0x18445
movl $0x85, %edx
callq 0x31b0
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 0xd9f7
movq %r12, %r14
leaq 0x20(%rsp), %r12
movq -0x10(%r12), %rdi
cmpq %r12, %rdi
je 0xd8cf
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 0x8780
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
cmpq %r12, %rdi
je 0xd930
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x32f0
movq 0x8(%rsp), %rdi
callq 0x91dc
testq %rax, %rax
je 0xd9e8
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 0xd9ae
movq 0x38(%rsp), %r14
movq %rbp, %r13
testb %al, %al
jne 0xd9ba
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 0xd978
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xa96c(%rip), %rdi      # 0x1836a
leaq 0xa92d(%rip), %rsi      # 0x18332
leaq 0xaa39(%rip), %rcx      # 0x18445
movl $0x87, %edx
callq 0x31b0
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
jne 0xda47
jmp 0xda59
jmp 0xda56
movq %rax, %rbx
movl $0xa0, %esi
movq 0x8(%rsp), %rdi
jmp 0xda4f
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xda59
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x32f0
jmp 0xda59
movq %rax, %rbx
movq %rbx, %rdi
callq 0x3570
nop