// File: /workspace/github_c_makefile_star2_O3/stonezwr[P]SpiKL-IP/neuron.C
// Function: Neuron::WriteOutputWeights(std::basic_ofstream<char, std::char_traits<char>>&, int&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void Neuron::WriteOutputWeights(ofstream& f_out, int& index, const string& post_g){
    for(Synapse* synapse : _outputSyns){
        assert(synapse);
        string post_name(synapse->PostNeuron()->Name());

        if(post_name.substr(0, post_g.length()) != post_g)   continue;
        f_out<<index++<<"\t"<<_name<<"\t"<<synapse->PostNeuron()->Name()<<"\t"
             <<synapse->Weight()<<endl;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdx, 0x10(%rsp)
movq %rsi, 0x8(%rsp)
movq 0x18(%rdi), %r13
movq %rdi, (%rsp)
movq 0x20(%rdi), %rbp
cmpq %rbp, %r13
je 0x7cae
movq %rcx, %rbx
movq (%r13), %r12
testq %r12, %r12
je 0x7cbd
movq %r12, %rdi
callq 0xc180
movq 0x10(%rax), %rsi
leaq 0x18(%rsp), %r14
movq %r14, %rdi
leaq 0x38(%rsp), %r15
movq %r15, %rdx
callq 0xa7e4
movq 0x8(%rbx), %rcx
movq %r15, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x3310
movq 0x40(%rsp), %rdx
cmpq 0x8(%rbx), %rdx
jne 0x7b47
movq 0x38(%rsp), %r15
testq %rdx, %rdx
je 0x7b51
movq (%rbx), %rsi
movq %r15, %rdi
callq 0x3300
testl %eax, %eax
setne %r14b
jmp 0x7b54
movb $0x1, %r14b
movq 0x38(%rsp), %r15
jmp 0x7b54
xorl %r14d, %r14d
leaq 0x48(%rsp), %rax
cmpq %rax, %r15
je 0x7b6e
movq 0x48(%rsp), %rsi
incq %rsi
movq %r15, %rdi
callq 0x32f0
testb %r14b, %r14b
jne 0x7c85
movq 0x10(%rsp), %rcx
movl (%rcx), %esi
leal 0x1(%rsi), %eax
movl %eax, (%rcx)
movq 0x8(%rsp), %rdi
callq 0x3560
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
leaq 0xf4b1(%rip), %rsi      # 0x17050
callq 0x3340
movq (%rsp), %rax
movq 0x10(%rax), %r14
testq %r14, %r14
je 0x7bc9
movq %r14, %rdi
callq 0x3150
movq %r15, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x3340
jmp 0x7be1
movq (%r15), %rax
movq -0x18(%rax), %rax
leaq (%r15,%rax), %rdi
movl 0x20(%r15,%rax), %esi
orl $0x1, %esi
callq 0x3550
movl $0x1, %edx
movq %r15, %rdi
leaq 0xf460(%rip), %rsi      # 0x17050
callq 0x3340
movq %r12, %rdi
callq 0xc180
movq 0x10(%rax), %r14
testq %r14, %r14
je 0x7c1e
movq %r14, %rdi
callq 0x3150
movq %r15, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x3340
jmp 0x7c38
movq (%r15), %rax
movq -0x18(%rax), %rax
movq %r15, %rdi
addq %rax, %rdi
movl 0x20(%r15,%rax), %esi
orl $0x1, %esi
callq 0x3550
movl $0x1, %edx
movq %r15, %rdi
leaq 0xf409(%rip), %rsi      # 0x17050
callq 0x3340
movsd 0x38(%r12), %xmm0
movq %r15, %rdi
callq 0x34f0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x32b0
movsbl %al, %esi
movq %r15, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31e0
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x7ca1
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x32f0
addq $0x8, %r13
cmpq %rbp, %r13
jne 0x7ae0
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1199e(%rip), %rdi     # 0x19662
leaq 0xfabe(%rip), %rsi      # 0x17789
leaq 0xfc53(%rip), %rcx      # 0x17925
movl $0x207, %edx            # imm = 0x207
callq 0x31b0
jmp 0x7cde
movq %rax, %rbx
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x7cfd
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x32f0
movq %rbx, %rdi
callq 0x3570
nop