// File: nilnilnil[P]autocomplete/src/main.cpp
// Function: suggestions_json_array[abi:cxx11](std::vector<phrase_t, std::allocator<phrase_t>>&)
std::string
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 trailer = i + 1 == suggestions.end() ? "\n" : ",\n";
        ret += "\"" + i->phrase + "\"" + trailer;
    }
    ret += "]";
    return ret;
}

// Assembly:
subq $0xf8, %rsp
movq %rdi, 0x18(%rsp)
movq %rdi, %rax
movq %rax, 0x10(%rsp)
movq %rdi, 0xf0(%rsp)
movq %rsi, 0xe8(%rsp)
movb $0x0, 0xe7(%rsp)
leaq 0xe6(%rsp), %rdi
movq %rdi, 0x20(%rsp)
callq 0x5a50
movq 0x18(%rsp), %rdi
movq 0x20(%rsp), %rdx
leaq 0x17cf5(%rip), %rsi     # 0x22274
callq 0xddd0
jmp 0xa586
leaq 0xe6(%rsp), %rdi
callq 0x55e0
movq 0x18(%rsp), %rdi
movl $0x1000, %esi           # imm = 0x1000
callq 0x5970
jmp 0xa5a4
movq 0xe8(%rsp), %rdi
callq 0xda50
movq %rax, 0xc8(%rsp)
movq 0xe8(%rsp), %rdi
callq 0xdac0
movq %rax, 0xc0(%rsp)
leaq 0xc8(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
callq 0xda80
testb $0x1, %al
jne 0xa5ec
jmp 0xa82a
leaq 0xc8(%rsp), %rdi
callq 0xdb30
movq %rax, %rdi
addq $0x8, %rdi
callq 0x9d60
jmp 0xa607
leaq 0xc8(%rsp), %rdi
movl $0x1, %esi
callq 0xe540
movq %rax, 0x98(%rsp)
movq 0xe8(%rsp), %rdi
callq 0xdac0
movq %rax, 0x90(%rsp)
leaq 0x98(%rsp), %rdi
leaq 0x90(%rsp), %rsi
callq 0xe500
movb %al, %dl
leaq 0x17c9b(%rip), %rcx     # 0x222ef
leaq 0x17c1b(%rip), %rax     # 0x22276
testb %dl, %dl
cmovneq %rcx, %rax
movq %rax, (%rsp)
leaq 0x8f(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x5a50
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
leaq 0xa0(%rsp), %rdi
callq 0xddd0
jmp 0xa68f
leaq 0x8f(%rsp), %rdi
callq 0x55e0
leaq 0xc8(%rsp), %rdi
callq 0xdb30
movq %rax, %rdx
addq $0x8, %rdx
leaq 0x17bcf(%rip), %rsi     # 0x22286
leaq 0x28(%rsp), %rdi
callq 0xe710
jmp 0xa6c3
leaq 0x17bbc(%rip), %rdx     # 0x22286
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0xe5d0
jmp 0xa6db
leaq 0x68(%rsp), %rdi
leaq 0x48(%rsp), %rsi
leaq 0xa0(%rsp), %rdx
callq 0xe580
jmp 0xa6f4
movq 0x18(%rsp), %rdi
leaq 0x68(%rsp), %rsi
callq 0x5750
jmp 0xa705
leaq 0x68(%rsp), %rdi
callq 0x5320
leaq 0x48(%rsp), %rdi
callq 0x5320
leaq 0x28(%rsp), %rdi
callq 0x5320
leaq 0xa0(%rsp), %rdi
callq 0x5320
leaq 0xc8(%rsp), %rdi
callq 0xdb40
jmp 0xa5b9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd8(%rsp)
movl %eax, 0xd4(%rsp)
leaq 0xe6(%rsp), %rdi
callq 0x55e0
jmp 0xa870
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd8(%rsp)
movl %eax, 0xd4(%rsp)
jmp 0xa866
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd8(%rsp)
movl %eax, 0xd4(%rsp)
leaq 0x8f(%rsp), %rdi
callq 0x55e0
jmp 0xa866
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd8(%rsp)
movl %eax, 0xd4(%rsp)
jmp 0xa81b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd8(%rsp)
movl %eax, 0xd4(%rsp)
jmp 0xa811
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd8(%rsp)
movl %eax, 0xd4(%rsp)
jmp 0xa807
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd8(%rsp)
movl %eax, 0xd4(%rsp)
leaq 0x68(%rsp), %rdi
callq 0x5320
leaq 0x48(%rsp), %rdi
callq 0x5320
leaq 0x28(%rsp), %rdi
callq 0x5320
leaq 0xa0(%rsp), %rdi
callq 0x5320
jmp 0xa866
movq 0x18(%rsp), %rdi
leaq 0x17a79(%rip), %rsi     # 0x222af
callq 0x5530
jmp 0xa83d
movb $0x1, 0xe7(%rsp)
testb $0x1, 0xe7(%rsp)
jne 0xa859
movq 0x18(%rsp), %rdi
callq 0x5320
movq 0x10(%rsp), %rax
addq $0xf8, %rsp
retq
movq 0x18(%rsp), %rdi
callq 0x5320
movq 0xd8(%rsp), %rdi
callq 0x5a40
nopl (%rax)