// File: /workspace/github_cpp_makefile_star2_O3/realuptime[P]PolyDetector/PolyDetector.cpp
// Function: PolyLine::neighToString[abi:cxx11](PolyDetector&, unsigned int*) const
std::string PolyLine::neighToString(PolyDetector &pd, uint32_t *retNNeigh) const
{
    auto search = pd._neighbors.find(id);
    if (search == pd._neighbors.end())
        return "[]";
    std::string str;
    uint32_t nNeigh = 0;
    for (auto &n : search->second)
    {
        auto l = pd.findLine(n);
        if (l)
        {
            str += std::to_string(n) + " ";
            nNeigh++;
        }
    }
    if (!str.empty())
        str.pop_back();
    if (retNNeigh)
        *retNNeigh = nNeigh;
    return str;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rcx, %r12
movq %rdi, %rbx
movq %rdx, 0x8(%rsp)
movq 0x78(%rdx), %rcx
testq %rcx, %rcx
je 0x561a
movq 0x8(%rsp), %rax
leaq 0x70(%rax), %rdi
movl 0x60(%rsi), %edx
movq %rdi, %rax
xorl %esi, %esi
cmpl %edx, 0x20(%rcx)
setb %sil
cmovaeq %rcx, %rax
movq 0x10(%rcx,%rsi,8), %rcx
testq %rcx, %rcx
jne 0x55f9
cmpq %rdi, %rax
je 0x561a
cmpl 0x20(%rax), %edx
jae 0x5649
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0xb152(%rip), %rsi      # 0x1077a
leaq 0xb14d(%rip), %rdx      # 0x1077c
movq %rbx, %rdi
callq 0xe45a
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x10(%rbx), %rcx
movq %rcx, (%rbx)
movq $0x0, 0x8(%rbx)
movb $0x0, 0x10(%rbx)
movq 0x28(%rax), %r14
movq 0x30(%rax), %rax
movq %rax, 0x60(%rsp)
cmpq %rax, %r14
je 0x57e0
movq %rcx, 0x50(%rsp)
movq %r12, 0x58(%rsp)
xorl %r13d, %r13d
leaq 0x40(%rsp), %rbp
leaq 0x10(%rsp), %r15
movq %rbx, (%rsp)
movl (%r14), %esi
movq 0x8(%rsp), %rdi
movl $0x1, %edx
callq 0x5842
testq %rax, %rax
je 0x57bb
movl %r13d, %ebx
movq %rbp, %r13
movl (%r14), %ebp
movl $0x1, %eax
cmpl $0xa, %ebp
movq %r15, %r12
jb 0x5702
movl $0x4, %eax
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x56fb
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x5700
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x5702
movl %ecx, %edx
movl $0xd1b71759, %esi       # imm = 0xD1B71759
imulq %rsi, %rdx
shrq $0x2d, %rdx
addl $0x4, %eax
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x56c5
addl $-0x3, %eax
jmp 0x5702
addl $-0x2, %eax
jmp 0x5702
decl %eax
movl %eax, %esi
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
movq %r12, %rdi
xorl %edx, %edx
callq 0x2190
movq 0x10(%rsp), %rdi
movl 0x18(%rsp), %esi
movl %ebp, %edx
callq 0xbfed
movq %r12, %rdi
leaq 0xb352(%rip), %rsi      # 0x10a84
callq 0x2220
movq %r13, %rbp
movq %r13, 0x30(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x575d
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
jmp 0x5764
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movl %ebx, %r13d
movq 0x8(%rax), %rdx
movq %rdx, 0x38(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
movq (%rsp), %rbx
movq %rbx, %rdi
callq 0x2060
movq 0x30(%rsp), %rdi
cmpq %rbp, %rdi
je 0x57a4
callq 0x2140
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x57b8
callq 0x2140
incl %r13d
addq $0x4, %r14
cmpq 0x60(%rsp), %r14
jne 0x568d
cmpq $0x0, 0x8(%rbx)
movq 0x58(%rsp), %r12
je 0x57e3
movq %rbx, %rdi
callq 0x21a0
jmp 0x57e3
xorl %r13d, %r13d
testq %r12, %r12
je 0x5637
movl %r13d, (%r12)
jmp 0x5637
movq %rax, %r15
movq 0x30(%rsp), %rdi
cmpq %rbp, %rdi
je 0x580e
callq 0x2140
jmp 0x580e
jmp 0x5824
movq %rax, %r15
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x5827
callq 0x2140
jmp 0x5827
movq %rax, %r15
movq (%rsp), %rax
movq (%rax), %rdi
cmpq 0x50(%rsp), %rdi
je 0x583a
callq 0x2140
movq %r15, %rdi
callq 0x2200