// File: /workspace/github_cpp_makefile_star2_O1/jo-qzy[P]MyJson/example.cpp
// Function: main
int main() {
    string json_source = "{\
                            \"encoding\" : \"UTF-8\",\
                            \"plug-ins\" : [\
                                \"python\",\
                                \"c++\",\
                                \"ruby\"\
                            ],\
                            \"indent\" : {\
                                \"length\" : 3,\
                                \"use_space\": true\
                            }\
                          }";

    // reader test
    JSON::Reader reader;
    JSON::Value root;
    reader.parse(json_source, root);
    
    // fast writet test
    JSON::FastWriter fw;
    cout << fw.write(root) << endl << endl;
    
    // style writer test
    JSON::StyleWriter sw;
    cout << sw.write(root) << endl << endl;

    // remove test
    root.removeMember("indent");
    cout << fw.write(root) << endl << endl;

    // append test
    JSON::Value item;
    item["array_key"] = "test_key";
    root.append(item);
    cout << fw.write(root) << endl << endl;

    // get member names
    vector<string> names = root.getMemberNames();
    for (auto vt : names)
        cout << vt << " , ";
    cout << endl << endl;

    // as string test

    // resize test
    root.resize(1);
    cout << fw.write(root) << endl << endl;

    // clear test
    root.clear();
    cout << fw.write(root) << endl << endl;
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2c8, %rsp            # imm = 0x2C8
leaq -0x78(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x4b4a(%rip), %rsi      # 0x70c0
leaq 0x4cf0(%rip), %rdx      # 0x726d
leaq -0x88(%rbp), %rbx
movq %rbx, %rdi
callq 0x69fe
xorl %eax, %eax
leaq -0x220(%rbp), %rcx
movl %eax, -0x18(%rcx)
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq -0x1f8(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rcx)
movq %rax, 0x20(%rcx)
leaq -0x1c8(%rbp), %rcx
movl %eax, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq -0xd8(%rbp), %r14
movq %r14, -0x10(%r14)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq -0xe8(%rbp), %rdi
callq 0x6964
leaq -0xe8(%rbp), %rdi
leaq -0x238(%rbp), %rsi
callq 0x32ac
movq %rax, %rdi
callq 0x3302
movq -0xe8(%rbp), %rdi
cmpq %r14, %rdi
je 0x2624
callq 0x21d0
leaq 0x870d(%rip), %rax      # 0xad38
leaq -0x50(%rbp), %rsi
movq %rax, (%rsi)
leaq -0x190(%rbp), %rdi
leaq -0x238(%rbp), %rdx
callq 0x5846
movq -0x190(%rbp), %rsi
movq -0x188(%rbp), %rdx
movq 0x897e(%rip), %rdi      # 0xafd8
callq 0x2210
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
leaq -0x180(%rbp), %r14
movq -0x10(%r14), %rdi
cmpq %r14, %rdi
je 0x26c8
callq 0x21d0
leaq 0x86b9(%rip), %rax      # 0xad88
leaq -0x248(%rbp), %rsi
movq %rax, (%rsi)
movq $0x0, 0x8(%rsi)
leaq -0x190(%rbp), %rdi
leaq -0x238(%rbp), %rdx
callq 0x5846
movq -0x190(%rbp), %rsi
movq -0x188(%rbp), %rdx
movq 0x88cf(%rip), %rdi      # 0xafd8
callq 0x2210
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
movq -0x190(%rbp), %rdi
cmpq %r14, %rdi
je 0x2773
callq 0x21d0
leaq -0xb8(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x4ae9(%rip), %rsi      # 0x726e
leaq 0x4ae8(%rip), %rdx      # 0x7274
leaq -0xc8(%rbp), %rdi
callq 0x69fe
leaq -0x2f0(%rbp), %rdi
leaq -0x238(%rbp), %rsi
leaq -0xc8(%rbp), %rdx
callq 0x2d3c
leaq -0x2f0(%rbp), %rdi
callq 0x2d88
movq -0xc8(%rbp), %rdi
cmpq %r15, %rdi
je 0x27cf
callq 0x21d0
leaq -0x190(%rbp), %rdi
leaq -0x50(%rbp), %rsi
leaq -0x238(%rbp), %rdx
callq 0x5846
movq -0x190(%rbp), %rsi
movq -0x188(%rbp), %rdx
movq 0x87dd(%rip), %rdi      # 0xafd8
callq 0x2210
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
movq -0x190(%rbp), %rdi
cmpq %r14, %rdi
je 0x2865
callq 0x21d0
xorl %eax, %eax
leaq -0x178(%rbp), %rcx
movl %eax, -0x18(%rcx)
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq -0x150(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rcx)
movq %rax, 0x20(%rcx)
leaq -0x120(%rbp), %rcx
movl %eax, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq -0x98(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x49bc(%rip), %rsi      # 0x727e
leaq 0x49be(%rip), %rdx      # 0x7287
leaq -0xa8(%rbp), %rdi
callq 0x69fe
leaq -0x190(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x2dd0
leaq 0x4986(%rip), %rsi      # 0x7275
movq %rax, %rdi
callq 0x2e04
movq -0xa8(%rbp), %rdi
cmpq %r14, %rdi
je 0x2908
callq 0x21d0
leaq -0x238(%rbp), %rdi
leaq -0x190(%rbp), %rsi
callq 0x2e62
leaq -0x48(%rbp), %rdi
leaq -0x50(%rbp), %rsi
leaq -0x238(%rbp), %rdx
callq 0x5846
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq 0x869a(%rip), %rdi      # 0xafd8
callq 0x2210
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x29a9
callq 0x21d0
leaq -0x68(%rbp), %rdi
leaq -0x238(%rbp), %rsi
callq 0x304e
movq -0x68(%rbp), %rbx
movq -0x60(%rbp), %r13
cmpq %r13, %rbx
je 0x2a2d
leaq -0x48(%rbp), %r14
movq 0x8607(%rip), %r15      # 0xafd8
leaq 0x48b0(%rip), %r12      # 0x7288
leaq -0x38(%rbp), %rax
movq %rax, -0x48(%rbp)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x6964
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq %r15, %rdi
callq 0x2210
movl $0x3, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x2210
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x2a24
callq 0x21d0
addq $0x20, %rbx
cmpq %r13, %rbx
jne 0x29d8
movq 0x85a4(%rip), %rdi      # 0xafd8
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq 0x8589(%rip), %rdi      # 0xafd8
callq 0x2030
movq %rax, %rdi
callq 0x2150
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
leaq -0x238(%rbp), %rdi
movl $0x1, %esi
callq 0x313a
leaq -0x48(%rbp), %rdi
leaq -0x50(%rbp), %rsi
leaq -0x238(%rbp), %rdx
callq 0x5846
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq 0x851e(%rip), %rdi      # 0xafd8
callq 0x2210
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x2b25
callq 0x21d0
leaq -0x238(%rbp), %rbx
movq %rbx, %rdi
callq 0x31de
leaq -0x48(%rbp), %rdi
leaq -0x50(%rbp), %rsi
movq %rbx, %rdx
callq 0x5846
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq 0x8485(%rip), %rdi      # 0xafd8
callq 0x2210
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x2bbe
callq 0x21d0
leaq -0x68(%rbp), %rdi
callq 0x3250
leaq -0x190(%rbp), %rdi
callq 0x2d88
leaq -0x238(%rbp), %rdi
callq 0x2d88
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x2bf4
callq 0x21d0
xorl %eax, %eax
addq $0x2c8, %rsp            # imm = 0x2C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2cab
jmp 0x2cab
jmp 0x2c18
jmp 0x2c18
jmp 0x2c18
movq %rax, %rbx
jmp 0x2cce
jmp 0x2c3c
movq %rax, %rbx
movq -0xc8(%rbp), %rdi
cmpq %r15, %rdi
jne 0x2ca4
jmp 0x2cda
jmp 0x2c3c
jmp 0x2c3c
jmp 0x2c3c
movq %rax, %rbx
jmp 0x2cda
movq %rax, %rbx
movq -0xa8(%rbp), %rdi
cmpq %r14, %rdi
jne 0x2c77
jmp 0x2cce
movq %rax, %rbx
movq -0xe8(%rbp), %rdi
jmp 0x2c8a
jmp 0x2cb0
jmp 0x2cb0
jmp 0x2cab
movq %rax, %rbx
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2cce
callq 0x21d0
jmp 0x2cce
jmp 0x2c80
movq %rax, %rbx
movq -0x190(%rbp), %rdi
cmpq %r14, %rdi
jne 0x2ca4
jmp 0x2cda
movq %rax, %rbx
leaq -0x180(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2cda
callq 0x21d0
jmp 0x2cda
movq %rax, %rbx
jmp 0x2cc5
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x2cc5
callq 0x21d0
leaq -0x68(%rbp), %rdi
callq 0x3250
leaq -0x190(%rbp), %rdi
callq 0x2d88
leaq -0x238(%rbp), %rdi
callq 0x2d88
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x2cfb
callq 0x21d0
movq %rbx, %rdi
callq 0x2280
nop