// File: /workspace/github_c_makefile_star2_O0/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
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), %rax
movq %rax, -0xa8(%rbp)
addq $0x18, %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rdi
callq 0x12080
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rdi
callq 0x120b0
movq %rax, -0x38(%rbp)
leaq -0x30(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x120e0
testb $0x1, %al
jne 0xd16e
jmp 0xd3c1
leaq -0x30(%rbp), %rdi
callq 0x12120
movq (%rax), %rax
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
je 0xd187
jmp 0xd1a6
leaq 0x29424(%rip), %rdi     # 0x365b2
leaq 0x2750c(%rip), %rsi     # 0x346a1
movl $0x207, %edx            # imm = 0x207
leaq 0x2769c(%rip), %rcx     # 0x3483d
callq 0x4210
movq -0x40(%rbp), %rdi
callq 0x1c160
movq %rax, %rdi
callq 0xbea0
movq %rax, -0xb8(%rbp)
leaq -0x61(%rbp), %rdi
movq %rdi, -0xb0(%rbp)
callq 0x46f0
movq -0xb8(%rbp), %rsi
movq -0xb0(%rbp), %rdx
leaq -0x60(%rbp), %rdi
callq 0x12880
jmp 0xd1e7
leaq -0x61(%rbp), %rdi
callq 0x43d0
movq -0x20(%rbp), %rdi
callq 0x4580
movq %rax, %rcx
xorl %eax, %eax
movl %eax, %edx
leaq -0x98(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x43a0
jmp 0xd212
movq -0x20(%rbp), %rsi
leaq -0x98(%rbp), %rdi
callq 0x12930
movb %al, -0xb9(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x4200
movb -0xb9(%rbp), %al
testb $0x1, %al
jne 0xd240
jmp 0xd283
movl $0x3, -0x9c(%rbp)
jmp 0xd39a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
leaq -0x61(%rbp), %rdi
callq 0x43d0
jmp 0xd3ca
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
leaq -0x60(%rbp), %rdi
callq 0x4200
jmp 0xd3ca
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movl (%rax), %esi
movl %esi, %ecx
incl %ecx
movl %ecx, (%rax)
callq 0x46c0
movq %rax, -0xc8(%rbp)
jmp 0xd2a1
movq -0xc8(%rbp), %rdi
leaq 0x26d79(%rip), %rsi     # 0x34028
callq 0x4360
movq %rax, -0xd0(%rbp)
jmp 0xd2bd
movq -0xd0(%rbp), %rdi
movq -0xa8(%rbp), %rax
movq 0x10(%rax), %rsi
callq 0x4360
movq %rax, -0xd8(%rbp)
jmp 0xd2dd
movq -0xd8(%rbp), %rdi
leaq 0x26d3d(%rip), %rsi     # 0x34028
callq 0x4360
movq %rax, -0xe0(%rbp)
jmp 0xd2f9
movq -0x40(%rbp), %rdi
callq 0x1c160
movq %rax, -0xe8(%rbp)
jmp 0xd30b
movq -0xe8(%rbp), %rdi
callq 0xbea0
movq -0xe0(%rbp), %rdi
movq %rax, %rsi
callq 0x4360
movq %rax, -0xf0(%rbp)
jmp 0xd32f
movq -0xf0(%rbp), %rdi
leaq 0x26ceb(%rip), %rsi     # 0x34028
callq 0x4360
movq %rax, -0xf8(%rbp)
jmp 0xd34b
movq -0x40(%rbp), %rdi
callq 0x12140
movsd %xmm0, -0x100(%rbp)
jmp 0xd35e
movsd -0x100(%rbp), %xmm0
movq -0xf8(%rbp), %rdi
callq 0x4770
movq %rax, -0x108(%rbp)
jmp 0xd37b
movq -0x108(%rbp), %rdi
movq 0x3fc2f(%rip), %rsi     # 0x4cfb8
callq 0x43b0
jmp 0xd390
movl $0x0, -0x9c(%rbp)
leaq -0x60(%rbp), %rdi
callq 0x4200
movl -0x9c(%rbp), %eax
testl %eax, %eax
je 0xd3b1
jmp 0xd3af
jmp 0xd3b3
jmp 0xd3b3
leaq -0x30(%rbp), %rdi
callq 0x12160
jmp 0xd158
addq $0x110, %rsp            # imm = 0x110
popq %rbp
retq
movq -0x70(%rbp), %rdi
callq 0x46d0
nopw %cs:(%rax,%rax)