// File: /workspace/github_c_makefile_star2_O1/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 0x7e6a
movq %rcx, %rbx
movq (%r13), %r12
testq %r12, %r12
je 0x7e79
movq %r12, %rdi
callq 0xc3e2
movq 0x10(%rax), %rsi
leaq 0x18(%rsp), %r14
movq %r14, %rdi
leaq 0x38(%rsp), %r15
movq %r15, %rdx
callq 0xaa0c
movq 0x8(%rbx), %rcx
movq %r15, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x3310
movq 0x40(%rsp), %rdx
movb $0x1, %r14b
cmpq 0x8(%rbx), %rdx
jne 0x7d0e
testq %rdx, %rdx
je 0x7d0b
movq (%rbx), %rsi
movq 0x38(%rsp), %rdi
callq 0x3300
testl %eax, %eax
setne %r14b
jmp 0x7d0e
xorl %r14d, %r14d
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x7d2a
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x32f0
testb %r14b, %r14b
jne 0x7e41
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 0xf2d5(%rip), %rsi      # 0x17030
callq 0x3340
movq (%rsp), %rax
movq 0x10(%rax), %r14
testq %r14, %r14
je 0x7d85
movq %r14, %rdi
callq 0x3150
movq %r15, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x3340
jmp 0x7d9d
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 0xf284(%rip), %rsi      # 0x17030
callq 0x3340
movq %r12, %rdi
callq 0xc3e2
movq 0x10(%rax), %r14
testq %r14, %r14
je 0x7dda
movq %r14, %rdi
callq 0x3150
movq %r15, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x3340
jmp 0x7df4
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 0xf22d(%rip), %rsi      # 0x17030
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 0x7e5d
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x32f0
addq $0x8, %r13
cmpq %rbp, %r13
jne 0x7ca4
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x11742(%rip), %rdi     # 0x195c2
leaq 0xf862(%rip), %rsi      # 0x176e9
leaq 0xf9f7(%rip), %rcx      # 0x17885
movl $0x207, %edx            # imm = 0x207
callq 0x31b0
jmp 0x7e9a
movq %rax, %rbx
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x7eb9
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x32f0
movq %rbx, %rdi
callq 0x3570
nop