// File: /workspace/github_cpp_makefile_star2_O3/nilnilnil[P]autocomplete/src/main.cpp
// Function: rich_suggestions_json_array[abi:cxx11](std::vector<phrase_t, std::allocator<phrase_t>>&)
std::string
rich_suggestions_json_array(vp_t& suggestions) {
    std::string ret = "[";
    ret.reserve(OUTPUT_SIZE_RESERVE);
    for (vp_t::iterator i = suggestions.begin(); i != suggestions.end(); ++i) {
        escape_special_chars(i->phrase);
        std::string snippet = i->snippet;
        escape_special_chars(snippet);

        std::string trailer = i + 1 == suggestions.end() ? "\n" : ",\n";
        ret += " { \"phrase\": \"" + i->phrase + "\", \"score\": " + uint_to_string(i->weight) + 
            (snippet.empty() ? "" : ", \"snippet\": \"" + snippet + "\"") + "}" + trailer;
    }
    ret += "]";
    return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x178, %rsp            # imm = 0x178
movq %rsi, %rbx
movq %rdi, %r15
leaq 0x10(%rdi), %rax
movq %rax, 0x8(%rsp)
movq %rax, (%rdi)
leaq 0xca31(%rip), %rsi      # 0x15290
leaq 0xca2b(%rip), %rdx      # 0x15291
callq 0xde28
movl $0x1000, %esi           # imm = 0x1000
movq %r15, %rdi
callq 0x5830
movq %r15, (%rsp)
movq (%rbx), %rbp
cmpq 0x8(%rbx), %rbp
je 0x8e86
leaq 0x80(%rsp), %r14
leaq 0x30(%rsp), %r13
movq %rbx, 0xd0(%rsp)
leaq 0x8(%rbp), %r12
movq %r12, %rdi
callq 0x8723
movq 0x28(%rbp), %rsi
movslq 0x30(%rbp), %rdx
leaq 0x128(%rsp), %rax
movq %rax, 0x118(%rsp)
addq %rsi, %rdx
leaq 0x118(%rsp), %r15
movq %r15, %rdi
callq 0xde28
movq %r15, %rdi
callq 0x8723
leaq 0x38(%rbp), %rbx
xorl %eax, %eax
movq 0xd0(%rsp), %rcx
cmpq 0x8(%rcx), %rbx
leaq 0xc99c(%rip), %rsi      # 0x15292
leaq 0xd941(%rip), %rcx      # 0x1623e
cmoveq %rcx, %rsi
sete %al
leaq 0x108(%rsp), %rcx
movq %rcx, 0xf8(%rsp)
negq %rax
leaq (%rsi,%rax), %rdx
addq $0x2, %rdx
leaq 0xf8(%rsp), %rdi
callq 0xde28
leaq 0x158(%rsp), %r15
movq %r15, %rdi
leaq 0xc957(%rip), %rsi      # 0x15295
movq %r12, %rdx
callq 0xc25d
movq %r15, %rdi
leaq 0xc954(%rip), %rsi      # 0x152a4
callq 0x5990
leaq 0x60(%rsp), %rsi
movq %rsi, 0x50(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x897d
movq %rdx, 0x50(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x60(%rsp)
jmp 0x8983
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x58(%rsp)
movq %rcx, (%rax)
xorl %ecx, %ecx
movq %rcx, 0x8(%rax)
movb %cl, 0x10(%rax)
movl (%rbp), %ebp
leaq 0x40(%rsp), %rax
movq %rax, 0x30(%rsp)
movq %rcx, 0x38(%rsp)
movb %cl, 0x40(%rsp)
testl %ebp, %ebp
je 0x89ec
movl %ebp, %r12d
movl $0xcccccccd, %eax       # imm = 0xCCCCCCCD
imulq %rax, %r12
shrq $0x23, %r12
leal (%r12,%r12), %eax
leal (%rax,%rax,4), %eax
movl %ebp, %ecx
subl %eax, %ecx
orb $0x30, %cl
movzbl %cl, %ecx
movl $0x1, %edx
movq %r13, %rdi
xorl %esi, %esi
callq 0x59d0
cmpl $0xa, %ebp
movl %r12d, %ebp
jae 0x89b2
jmp 0x8a05
movl $0x1, %r8d
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
leaq 0xd46e(%rip), %rcx      # 0x15e6e
callq 0x57f0
movq 0x50(%rsp), %rcx
movl $0xf, %edi
leaq 0x60(%rsp), %rbp
cmpq %rbp, %rcx
je 0x8a1e
movq 0x60(%rsp), %rdi
movq 0x58(%rsp), %r8
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rdi, %rax
movq %r14, %r12
jbe 0x8a52
movl $0xf, %edi
leaq 0x40(%rsp), %r9
cmpq %r9, %rsi
je 0x8a4d
movq 0x40(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x8a5e
leaq 0x50(%rsp), %rdi
callq 0x5160
jmp 0x8a6a
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5570
movq %r12, 0x70(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x8a8d
movq %rdx, 0x70(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x80(%rsp)
jmp 0x8a95
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x78(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movq 0x120(%rsp), %r12
testq %r12, %r12
leaq 0x118(%rsp), %rdx
leaq 0x138(%rsp), %rdi
je 0x8b15
leaq 0xc7db(%rip), %rsi      # 0x152b1
movq %rdi, %r15
callq 0xc25d
movq %r15, %rdi
leaq 0xc7ba(%rip), %rsi      # 0x152a2
callq 0x5990
leaq 0x20(%rsp), %rsi
movq %rsi, 0x10(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x8b35
movq %rdx, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
jmp 0x8b3b
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
leaq 0x10(%rsp), %rdi
leaq 0xd714(%rip), %rdx      # 0x1623f
movq %rdx, %rsi
callq 0xde28
jmp 0x8b53
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x18(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x70(%rsp), %rcx
movq 0x78(%rsp), %r8
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movl $0xf, %edi
cmpq %r14, %rcx
je 0x8b79
movq 0x80(%rsp), %rdi
leaq (%rdx,%r8), %rax
cmpq %rdi, %rax
jbe 0x8b9b
movl $0xf, %edi
leaq 0x20(%rsp), %r9
cmpq %r9, %rsi
je 0x8b96
movq 0x20(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x8ba7
leaq 0x70(%rsp), %rdi
callq 0x5160
jmp 0x8bb5
leaq 0x10(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5570
leaq 0xa0(%rsp), %rsi
movq %rsi, 0x90(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x8be6
movq %rdx, 0x90(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xa0(%rsp)
jmp 0x8bec
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x98(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x90(%rsp), %rdi
leaq 0xc6a5(%rip), %rsi      # 0x152c0
callq 0x5990
leaq 0xe8(%rsp), %rsi
movq %rsi, 0xd8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x8c54
movq %rdx, 0xd8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xe8(%rsp)
jmp 0x8c5a
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0xe0(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0xf8(%rsp), %rsi
movq 0x100(%rsp), %rdx
leaq 0xd8(%rsp), %rdi
callq 0x5160
leaq 0xc0(%rsp), %rsi
movq %rsi, 0xb0(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x8cc6
movq %rdx, 0xb0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xc0(%rsp)
jmp 0x8ccc
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0xb8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0xb0(%rsp), %rsi
movq 0xb8(%rsp), %rdx
movq (%rsp), %rdi
callq 0x5160
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x8d25
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x54c0
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x8d4a
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x54c0
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x8d6f
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x54c0
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x8d8b
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x54c0
testq %r12, %r12
je 0x8db5
movq 0x138(%rsp), %rdi
leaq 0x148(%rsp), %rax
cmpq %rax, %rdi
je 0x8db5
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x54c0
movq 0x70(%rsp), %rdi
cmpq %r14, %rdi
je 0x8dcf
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x54c0
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x8deb
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x54c0
movq 0x50(%rsp), %rdi
cmpq %rbp, %rdi
je 0x8e02
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x54c0
movq 0x158(%rsp), %rdi
leaq 0x168(%rsp), %rax
cmpq %rax, %rdi
je 0x8e27
movq 0x168(%rsp), %rsi
incq %rsi
callq 0x54c0
movq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
cmpq %rax, %rdi
je 0x8e4c
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x54c0
movq 0x118(%rsp), %rdi
leaq 0x128(%rsp), %rax
cmpq %rax, %rdi
je 0x8e71
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x54c0
movq %rbx, %rbp
movq 0xd0(%rsp), %rax
cmpq 0x8(%rax), %rbx
jne 0x889e
leaq 0xc43e(%rip), %rsi      # 0x152cb
movq (%rsp), %r15
movq %r15, %rdi
callq 0x5990
movq %r15, %rax
addq $0x178, %rsp            # imm = 0x178
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r13
movq 0x8(%rsp), %rbx
jmp 0x90d5
jmp 0x8ec2
jmp 0x9022
movq %rax, %r13
jmp 0x8f99
movq %rax, %r13
jmp 0x8f74
movq %rax, %r13
jmp 0x8f53
movq %rax, %r13
jmp 0x8f2e
movq %rax, %r13
jmp 0x8f09
movq %rax, %r13
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x8f09
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x54c0
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x8f2e
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x54c0
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x8f53
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x54c0
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x8f6f
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x54c0
testq %r12, %r12
je 0x8f99
movq 0x138(%rsp), %rdi
leaq 0x148(%rsp), %rax
cmpq %rax, %rdi
je 0x8f99
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x54c0
movq 0x70(%rsp), %rdi
cmpq %r14, %rdi
je 0x8fb3
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x54c0
movq 0x8(%rsp), %rbx
movq (%rsp), %r15
leaq 0x60(%rsp), %rbp
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
jne 0x9042
jmp 0x904f
movq %rax, %r13
movq 0x8(%rsp), %rbx
movq (%rsp), %r15
jmp 0x8fc1
jmp 0x8fe2
movq %rax, %r13
movq 0x8(%rsp), %rbx
movq (%rsp), %r15
jmp 0x90d5
jmp 0x8ff5
movq %rax, %r13
movq 0x8(%rsp), %rbx
movq (%rsp), %r15
jmp 0x90b0
movq %rax, %r13
movq 0x8(%rsp), %rbx
movq (%rsp), %r15
jmp 0x908b
movq %rax, %r13
movq 0x8(%rsp), %rbx
movq (%rsp), %r15
jmp 0x9066
movq %rax, %r13
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
movq 0x8(%rsp), %rbx
movq (%rsp), %r15
leaq 0x60(%rsp), %rbp
je 0x904f
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x54c0
movq 0x50(%rsp), %rdi
cmpq %rbp, %rdi
je 0x9066
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x54c0
movq 0x158(%rsp), %rdi
leaq 0x168(%rsp), %rax
cmpq %rax, %rdi
je 0x908b
movq 0x168(%rsp), %rsi
incq %rsi
callq 0x54c0
movq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
cmpq %rax, %rdi
je 0x90b0
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x54c0
movq 0x118(%rsp), %rdi
leaq 0x128(%rsp), %rax
cmpq %rax, %rdi
je 0x90d5
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x54c0
movq (%r15), %rdi
cmpq %rbx, %rdi
je 0x90e8
movq (%rbx), %rsi
incq %rsi
callq 0x54c0
movq %r13, %rdi
callq 0x58e0