// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x120, %rsp            # imm = 0x120
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl %ecx, -0x18(%rbp)
movl %r8d, -0x1c(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xc8(%rbp)
xorl %eax, %eax
cmpl $0x0, -0x14(%rbp)
movb %al, -0xb9(%rbp)
jle 0x1dc61
xorl %eax, %eax
cmpl $0x0, -0x18(%rbp)
movb %al, -0xb9(%rbp)
jle 0x1dc61
cmpl $0x0, -0x1c(%rbp)
setg %al
movb %al, -0xb9(%rbp)
movb -0xb9(%rbp), %al
testb $0x1, %al
jne 0x1dc6d
jmp 0x1dc6f
jmp 0x1dc8e
leaq 0x17763(%rip), %rdi     # 0x353d9
leaq 0x1769d(%rip), %rsi     # 0x3531a
movl $0x71, %edx
leaq 0x1776d(%rip), %rcx     # 0x353f6
callq 0x4210
movq -0xc8(%rbp), %rdi
callq 0x239e0
movq %rax, -0x28(%rbp)
movq -0xc8(%rbp), %rdi
callq 0x23a40
movq %rax, -0x30(%rbp)
leaq -0x28(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x23a10
testb $0x1, %al
jne 0x1dcc1
jmp 0x1dd17
leaq -0x28(%rbp), %rdi
callq 0x23a70
movq (%rax), %rdi
callq 0xbea0
movq %rax, %rdi
movq -0x10(%rbp), %rsi
callq 0x4520
cmpl $0x0, %eax
je 0x1dce5
jmp 0x1dd04
leaq 0x1760c(%rip), %rdi     # 0x352f8
leaq 0x17627(%rip), %rsi     # 0x3531a
movl $0x73, %edx
leaq 0x176f7(%rip), %rcx     # 0x353f6
callq 0x4210
jmp 0x1dd06
leaq -0x28(%rbp), %rdi
xorl %esi, %esi
callq 0x23a90
movq %rax, -0x38(%rbp)
jmp 0x1dc9e
movq -0xc8(%rbp), %rax
addq $0x18, %rax
movq %rax, -0xe0(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xd8(%rbp)
leaq -0x61(%rbp), %rdi
movq %rdi, -0xd0(%rbp)
callq 0x46f0
movq -0xd8(%rbp), %rsi
movq -0xd0(%rbp), %rdx
leaq -0x60(%rbp), %rdi
callq 0x12880
jmp 0x1dd5d
movq -0xe0(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x23f10
movq %rax, -0xe8(%rbp)
jmp 0x1dd76
movq -0xc8(%rbp), %rdi
movq -0xe8(%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 0x1dda8
jmp 0x1ddaa
jmp 0x1ddf4
leaq 0x175a1(%rip), %rdi     # 0x35352
leaq 0x17562(%rip), %rsi     # 0x3531a
movl $0x75, %edx
leaq 0x17632(%rip), %rcx     # 0x353f6
callq 0x4210
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x1df4f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
leaq -0x60(%rbp), %rdi
callq 0x4200
jmp 0x1df4f
leaq -0x60(%rbp), %rdi
callq 0x4200
leaq -0x61(%rbp), %rdi
callq 0x43d0
movl $0xa0, %edi
callq 0x4380
movq -0xc8(%rbp), %r9
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0xf0(%rbp)
movq -0x10(%rbp), %rsi
movl -0x14(%rbp), %edx
movl -0x18(%rbp), %ecx
movl -0x1c(%rbp), %r8d
callq 0xe880
jmp 0x1de39
movq -0xc8(%rbp), %rax
movq -0xf0(%rbp), %rcx
movq %rcx, -0x88(%rbp)
movq -0x88(%rbp), %rcx
movq %rcx, -0x110(%rbp)
addq $0x18, %rax
movq %rax, -0x108(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x100(%rbp)
leaq -0xa9(%rbp), %rdi
movq %rdi, -0xf8(%rbp)
callq 0x46f0
movq -0x100(%rbp), %rsi
movq -0xf8(%rbp), %rdx
leaq -0xa8(%rbp), %rdi
callq 0x12880
jmp 0x1dea1
movq -0x108(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x23fd0
movq %rax, -0x118(%rbp)
jmp 0x1debd
movq -0x118(%rbp), %rax
movq -0x110(%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 0x1dfe4
movq -0xc8(%rbp), %rdi
addq $0x88, %rdi
leaq -0xb8(%rbp), %rsi
callq 0x23f70
movq -0xb8(%rbp), %rdi
callq 0x13350
testb $0x1, %al
jne 0x1df33
jmp 0x1dfb0
movq -0xc8(%rbp), %rdi
addq $0xa0, %rdi
leaq -0xb8(%rbp), %rsi
callq 0x23f70
jmp 0x1dfca
leaq -0x61(%rbp), %rdi
callq 0x43d0
jmp 0x1dfed
movq -0xf0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
movl $0xa0, %esi
callq 0x4390
jmp 0x1dfed
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x1dfa2
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 0x1dfed
movq -0xc8(%rbp), %rdi
addq $0xb8, %rdi
leaq -0xb8(%rbp), %rsi
callq 0x23f70
jmp 0x1dfcc
movq -0x88(%rbp), %rdi
callq 0xf1d0
movq %rax, -0xb8(%rbp)
jmp 0x1def9
addq $0x120, %rsp            # imm = 0x120
popq %rbp
retq
movq -0x70(%rbp), %rdi
callq 0x46d0
nopw %cs:(%rax,%rax)