// File: /workspace/github_cpp_makefile_star2_O1/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 $0x188, %rsp            # imm = 0x188
movq %rsi, %rbx
movq %rdi, %r15
leaq 0x10(%rdi), %rax
movq %rax, 0x18(%rsp)
movq %rax, (%rdi)
leaq 0xca63(%rip), %rsi      # 0x15290
leaq 0xca5d(%rip), %rdx      # 0x15291
callq 0xdea6
movl $0x1000, %esi           # imm = 0x1000
movq %r15, %rdi
callq 0x5830
movq %r15, 0x10(%rsp)
movq (%rbx), %rbp
cmpq 0x8(%rbx), %rbp
je 0x8e74
leaq 0x90(%rsp), %r14
leaq 0x40(%rsp), %r13
movq %rbx, 0xe0(%rsp)
leaq 0x8(%rbp), %r12
movq %r12, %rdi
callq 0x86f1
movq 0x28(%rbp), %rsi
movslq 0x30(%rbp), %rdx
leaq 0x138(%rsp), %rax
movq %rax, 0x128(%rsp)
addq %rsi, %rdx
leaq 0x128(%rsp), %r15
movq %r15, %rdi
callq 0xdea6
movq %r15, %rdi
callq 0x86f1
leaq 0x38(%rbp), %rbx
xorl %eax, %eax
movq 0xe0(%rsp), %rcx
cmpq 0x8(%rcx), %rbx
leaq 0xc9cd(%rip), %rsi      # 0x15292
leaq 0xd975(%rip), %rcx      # 0x16241
cmoveq %rcx, %rsi
sete %al
leaq 0x118(%rsp), %rcx
movq %rcx, 0x108(%rsp)
negq %rax
leaq (%rsi,%rax), %rdx
addq $0x2, %rdx
leaq 0x108(%rsp), %rdi
callq 0xdea6
leaq 0x168(%rsp), %r15
movq %r15, %rdi
leaq 0xc988(%rip), %rsi      # 0x15295
movq %r12, %rdx
callq 0xc25a
movq %r15, %rdi
leaq 0xc985(%rip), %rsi      # 0x152a4
callq 0x5990
leaq 0x70(%rsp), %rsi
movq %rsi, 0x60(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x894c
movq %rdx, 0x60(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x70(%rsp)
jmp 0x8952
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x68(%rsp)
movq %rcx, (%rax)
xorl %ecx, %ecx
movq %rcx, 0x8(%rax)
movb %cl, 0x10(%rax)
movl (%rbp), %ebp
leaq 0x50(%rsp), %rax
movq %rax, 0x40(%rsp)
movq %rcx, 0x48(%rsp)
movb %cl, 0x50(%rsp)
testl %ebp, %ebp
je 0x89bb
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 0x8981
jmp 0x89d4
movl $0x1, %r8d
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
leaq 0xd49f(%rip), %rcx      # 0x15e6e
callq 0x57f0
movq 0x60(%rsp), %rcx
movl $0xf, %esi
leaq 0x70(%rsp), %rbp
cmpq %rbp, %rcx
je 0x89ed
movq 0x70(%rsp), %rsi
movq 0x68(%rsp), %r8
movq 0x48(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rsi, %rax
movq %r14, %r12
jbe 0x8a1e
movl $0xf, %esi
leaq 0x50(%rsp), %rdi
cmpq %rdi, 0x40(%rsp)
je 0x8a19
movq 0x50(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x8a2f
movq 0x40(%rsp), %rsi
leaq 0x60(%rsp), %rdi
callq 0x5160
jmp 0x8a3b
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5570
movq %r12, 0x80(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x8a64
movq %rdx, 0x80(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x90(%rsp)
jmp 0x8a6c
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x88(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movq 0x130(%rsp), %r12
testq %r12, %r12
setne 0xf(%rsp)
leaq 0x128(%rsp), %rdx
leaq 0x148(%rsp), %rdi
je 0x8af4
leaq 0xc7fc(%rip), %rsi      # 0x152b1
movq %rdi, %r15
callq 0xc25a
movq %r15, %rdi
leaq 0xc7db(%rip), %rsi      # 0x152a2
callq 0x5990
leaq 0x30(%rsp), %rsi
movq %rsi, 0x20(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x8b14
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0x8b1a
leaq 0x30(%rsp), %rax
movq %rax, 0x20(%rsp)
leaq 0x20(%rsp), %rdi
leaq 0xd738(%rip), %rdx      # 0x16242
movq %rdx, %rsi
callq 0xdea6
jmp 0x8b32
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x28(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x80(%rsp), %rcx
movq 0x88(%rsp), %r8
movq 0x28(%rsp), %rdx
movl $0xf, %esi
cmpq %r14, %rcx
je 0x8b59
movq 0x90(%rsp), %rsi
leaq (%rdx,%r8), %rax
cmpq %rsi, %rax
jbe 0x8b7d
movl $0xf, %esi
leaq 0x30(%rsp), %rdi
cmpq %rdi, 0x20(%rsp)
je 0x8b78
movq 0x30(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x8b91
movq 0x20(%rsp), %rsi
leaq 0x80(%rsp), %rdi
callq 0x5160
jmp 0x8b9f
leaq 0x20(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5570
leaq 0xb0(%rsp), %rsi
movq %rsi, 0xa0(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x8bd0
movq %rdx, 0xa0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xb0(%rsp)
jmp 0x8bd6
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0xa8(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0xa0(%rsp), %rdi
leaq 0xc6bb(%rip), %rsi      # 0x152c0
callq 0x5990
leaq 0xf8(%rsp), %rsi
movq %rsi, 0xe8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x8c3e
movq %rdx, 0xe8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xf8(%rsp)
jmp 0x8c44
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0xf0(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x108(%rsp), %rsi
movq 0x110(%rsp), %rdx
leaq 0xe8(%rsp), %rdi
callq 0x5160
leaq 0xd0(%rsp), %rsi
movq %rsi, 0xc0(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x8cb0
movq %rdx, 0xc0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xd0(%rsp)
jmp 0x8cb6
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0xc8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0xc0(%rsp), %rsi
movq 0xc8(%rsp), %rdx
movq 0x10(%rsp), %rdi
callq 0x5160
movq 0xc0(%rsp), %rdi
leaq 0xd0(%rsp), %rax
cmpq %rax, %rdi
je 0x8d10
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x54c0
movq 0xe8(%rsp), %rdi
leaq 0xf8(%rsp), %rax
cmpq %rax, %rdi
je 0x8d35
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x54c0
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x8d5a
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x54c0
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x8d76
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x54c0
testq %r12, %r12
je 0x8da0
movq 0x148(%rsp), %rdi
leaq 0x158(%rsp), %rax
cmpq %rax, %rdi
je 0x8da0
movq 0x158(%rsp), %rsi
incq %rsi
callq 0x54c0
movq 0x80(%rsp), %rdi
cmpq %r14, %rdi
je 0x8dbd
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x54c0
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x8dd9
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x54c0
movq 0x60(%rsp), %rdi
cmpq %rbp, %rdi
je 0x8df0
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x54c0
movq 0x168(%rsp), %rdi
leaq 0x178(%rsp), %rax
cmpq %rax, %rdi
je 0x8e15
movq 0x178(%rsp), %rsi
incq %rsi
callq 0x54c0
movq 0x108(%rsp), %rdi
leaq 0x118(%rsp), %rax
cmpq %rax, %rdi
je 0x8e3a
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x54c0
movq 0x128(%rsp), %rdi
leaq 0x138(%rsp), %rax
cmpq %rax, %rdi
je 0x8e5f
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x54c0
movq %rbx, %rbp
movq 0xe0(%rsp), %rax
cmpq 0x8(%rax), %rbx
jne 0x886d
leaq 0xc450(%rip), %rsi      # 0x152cb
movq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0x5990
movq %r15, %rax
addq $0x188, %rsp            # imm = 0x188
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r12
movq 0x18(%rsp), %rbx
jmp 0x90e8
movq %rax, %r12
jmp 0x8f9f
jmp 0x9034
movq %rax, %r12
movb $0x1, 0xf(%rsp)
jmp 0x8f9a
movq %rax, %r12
movb $0x1, 0xf(%rsp)
jmp 0x8f6e
movq %rax, %r12
jmp 0x8f52
movq %rax, %r12
jmp 0x8f2d
movq %rax, %r12
jmp 0x8f08
movq %rax, %r12
movq 0xc0(%rsp), %rdi
leaq 0xd0(%rsp), %rax
cmpq %rax, %rdi
je 0x8f08
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x54c0
movq 0xe8(%rsp), %rdi
leaq 0xf8(%rsp), %rax
cmpq %rax, %rdi
je 0x8f2d
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x54c0
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x8f52
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x54c0
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x8f6e
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x54c0
cmpb $0x0, 0xf(%rsp)
je 0x8f9a
movq 0x148(%rsp), %rdi
leaq 0x158(%rsp), %rax
cmpq %rax, %rdi
je 0x8f9a
movq 0x158(%rsp), %rsi
incq %rsi
callq 0x54c0
cmpb $0x0, 0xf(%rsp)
movq 0x80(%rsp), %rdi
cmpq %r14, %rdi
je 0x8fbc
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x54c0
movq 0x18(%rsp), %rbx
movq 0x10(%rsp), %r15
leaq 0x70(%rsp), %rbp
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
jne 0x9055
jmp 0x9062
movq %rax, %r12
movq 0x18(%rsp), %rbx
movq 0x10(%rsp), %r15
jmp 0x8fcb
jmp 0x8ff0
movq %rax, %r12
movq 0x18(%rsp), %rbx
movq 0x10(%rsp), %r15
jmp 0x90e8
jmp 0x9004
movq %rax, %r12
movq 0x18(%rsp), %rbx
movq 0x10(%rsp), %r15
jmp 0x90c3
movq %rax, %r12
movq 0x18(%rsp), %rbx
movq 0x10(%rsp), %r15
jmp 0x909e
movq %rax, %r12
movq 0x18(%rsp), %rbx
movq 0x10(%rsp), %r15
jmp 0x9079
movq %rax, %r12
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
movq 0x18(%rsp), %rbx
movq 0x10(%rsp), %r15
leaq 0x70(%rsp), %rbp
je 0x9062
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x54c0
movq 0x60(%rsp), %rdi
cmpq %rbp, %rdi
je 0x9079
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x54c0
movq 0x168(%rsp), %rdi
leaq 0x178(%rsp), %rax
cmpq %rax, %rdi
je 0x909e
movq 0x178(%rsp), %rsi
incq %rsi
callq 0x54c0
movq 0x108(%rsp), %rdi
leaq 0x118(%rsp), %rax
cmpq %rax, %rdi
je 0x90c3
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x54c0
movq 0x128(%rsp), %rdi
leaq 0x138(%rsp), %rax
cmpq %rax, %rdi
je 0x90e8
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x54c0
movq (%r15), %rdi
cmpq %rbx, %rdi
je 0x90fb
movq (%rbx), %rsi
incq %rsi
callq 0x54c0
movq %r12, %rdi
callq 0x58e0