// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x110, %rsp            # imm = 0x110
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0xc0(%rbp)
callq 0x239e0
movq %rax, -0x28(%rbp)
movq -0xc0(%rbp), %rdi
callq 0x23a40
movq %rax, -0x30(%rbp)
leaq -0x28(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x23a10
testb $0x1, %al
jne 0x1e052
jmp 0x1e0a8
leaq -0x28(%rbp), %rdi
callq 0x23a70
movq (%rax), %rdi
callq 0xbea0
movq %rax, %rdi
movq -0x10(%rbp), %rsi
callq 0x4520
cmpl $0x0, %eax
je 0x1e076
jmp 0x1e095
leaq 0x1727b(%rip), %rdi     # 0x352f8
leaq 0x17296(%rip), %rsi     # 0x3531a
movl $0x85, %edx
leaq 0x1739d(%rip), %rcx     # 0x3542d
callq 0x4210
jmp 0x1e097
leaq -0x28(%rbp), %rdi
xorl %esi, %esi
callq 0x23a90
movq %rax, -0x38(%rbp)
jmp 0x1e02f
movq -0xc0(%rbp), %rax
addq $0x18, %rax
movq %rax, -0xd8(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xd0(%rbp)
leaq -0x61(%rbp), %rdi
movq %rdi, -0xc8(%rbp)
callq 0x46f0
movq -0xd0(%rbp), %rsi
movq -0xc8(%rbp), %rdx
leaq -0x60(%rbp), %rdi
callq 0x12880
jmp 0x1e0ee
movq -0xd8(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x23f10
movq %rax, -0xe0(%rbp)
jmp 0x1e107
movq -0xc0(%rbp), %rdi
movq -0xe0(%rbp), %rax
movq %rax, -0x40(%rbp)
addq $0x18, %rdi
callq 0x23af0
movq %rax, -0x80(%rbp)
leaq -0x40(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x23f40
testb $0x1, %al
jne 0x1e139
jmp 0x1e13b
jmp 0x1e185
leaq 0x17210(%rip), %rdi     # 0x35352
leaq 0x171d1(%rip), %rsi     # 0x3531a
movl $0x87, %edx
leaq 0x172d8(%rip), %rcx     # 0x3542d
callq 0x4210
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x1e2de
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
leaq -0x60(%rbp), %rdi
callq 0x4200
jmp 0x1e2de
leaq -0x60(%rbp), %rdi
callq 0x4200
leaq -0x61(%rbp), %rdi
callq 0x43d0
movl $0xa0, %edi
callq 0x4380
movq -0xc0(%rbp), %r8
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0xe8(%rbp)
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
callq 0xe0f0
jmp 0x1e1c8
movq -0xc0(%rbp), %rax
movq -0xe8(%rbp), %rcx
movq %rcx, -0x88(%rbp)
movq -0x88(%rbp), %rcx
movq %rcx, -0x108(%rbp)
addq $0x18, %rax
movq %rax, -0x100(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xf8(%rbp)
leaq -0xa9(%rbp), %rdi
movq %rdi, -0xf0(%rbp)
callq 0x46f0
movq -0xf8(%rbp), %rsi
movq -0xf0(%rbp), %rdx
leaq -0xa8(%rbp), %rdi
callq 0x12880
jmp 0x1e230
movq -0x100(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x23fd0
movq %rax, -0x110(%rbp)
jmp 0x1e24c
movq -0x110(%rbp), %rax
movq -0x108(%rbp), %rcx
movq %rcx, (%rax)
leaq -0xa8(%rbp), %rdi
callq 0x4200
leaq -0xa9(%rbp), %rdi
callq 0x43d0
movq -0x88(%rbp), %rdi
callq 0xf110
movq %rax, -0xb8(%rbp)
cmpq $0x0, -0xb8(%rbp)
je 0x1e373
movq -0xc0(%rbp), %rdi
addq $0x88, %rdi
leaq -0xb8(%rbp), %rsi
callq 0x23f70
movq -0xb8(%rbp), %rdi
callq 0x13350
testb $0x1, %al
jne 0x1e2c2
jmp 0x1e33f
movq -0xc0(%rbp), %rdi
addq $0xa0, %rdi
leaq -0xb8(%rbp), %rsi
callq 0x23f70
jmp 0x1e359
leaq -0x61(%rbp), %rdi
callq 0x43d0
jmp 0x1e37c
movq -0xe8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
movl $0xa0, %esi
callq 0x4390
jmp 0x1e37c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x1e331
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
leaq -0xa8(%rbp), %rdi
callq 0x4200
leaq -0xa9(%rbp), %rdi
callq 0x43d0
jmp 0x1e37c
movq -0xc0(%rbp), %rdi
addq $0xb8, %rdi
leaq -0xb8(%rbp), %rsi
callq 0x23f70
jmp 0x1e35b
movq -0x88(%rbp), %rdi
callq 0xf1d0
movq %rax, -0xb8(%rbp)
jmp 0x1e288
addq $0x110, %rsp            # imm = 0x110
popq %rbp
retq
movq -0x70(%rbp), %rdi
callq 0x46d0
nopw %cs:(%rax,%rax)