// File: /workspace/github_cpp_makefile_star2_O3/oknenavin[P]cxon/examples/std-types-ex01.cxx
// Function: main
int main() {
    my_type mv1 = { {"even", {2, 4, 6}}, {"odd", {1, 3, 5}} },
            mv2;
    std::string json;
        // write it to output-iterator, container, buffer, etc. - in this case, std::string
        cxon::to_bytes(json, mv1);
        // read it from input-iterator, container, buffer, etc. - in this case, std::string
        cxon::from_bytes(mv2, json);
    // json == "{ \"even\": [2, 4, 6], \"odd\": [1, 3, 5] }"
    assert(mv1 == mv2);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x138, %rsp            # imm = 0x138
movabsq $0x400000002, %rax      # imm = 0x400000002
leaq 0x80(%rsp), %rbx
movq %rax, (%rbx)
movl $0x6, 0x8(%rbx)
leaq 0x28(%rsp), %rdi
leaq 0x68(%rsp), %r13
movl $0x3, %edx
movq %rbx, %rsi
movq %r13, %rcx
callq 0x26fa
leaq 0x2cea(%rip), %rsi      # 0x50a4
leaq 0x98(%rsp), %r15
leaq 0x28(%rsp), %rdx
movq %r15, %rdi
callq 0x2738
leaq 0xd0(%rsp), %r15
movabsq $0x300000001, %rax      # imm = 0x300000001
leaq 0x70(%rsp), %r12
movq %rax, (%r12)
movl $0x5, 0x8(%r12)
leaq 0x48(%rsp), %rdi
leaq 0x27(%rsp), %rcx
movl $0x3, %edx
movq %r12, %rsi
callq 0x26fa
leaq 0x2c98(%rip), %rsi      # 0x50a9
leaq 0x48(%rsp), %rdx
movq %r15, %rdi
callq 0x2798
leaq 0x108(%rsp), %rdi
leaq 0x98(%rsp), %rsi
leaq 0x26(%rsp), %rcx
leaq 0x25(%rsp), %r8
movl $0x2, %edx
callq 0x27f8
leaq 0xe0(%rsp), %r14
xorl %r15d, %r15d
movq 0xf0(%rsp,%r15), %rdi
testq %rdi, %rdi
je 0x245f
callq 0x2150
movq 0xd0(%rsp,%r15), %rdi
leaq (%r14,%r15), %rax
cmpq %rdi, %rax
je 0x2475
callq 0x2150
addq $-0x38, %r15
cmpq $-0x70, %r15
jne 0x244d
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x248e
callq 0x2150
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x249d
callq 0x2150
leaq 0xa0(%rsp), %rax
xorl %ecx, %ecx
movl %ecx, (%rax)
movq %rcx, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
movq %rcx, 0x20(%rax)
leaq 0x58(%rsp), %r14
movq %r14, -0x10(%r14)
movq %rcx, -0x8(%r14)
movb $0x0, (%r14)
leaq 0x28(%rsp), %rbp
movl %ecx, (%rbp)
callq 0x20b0
movq %rax, %r15
movq %rax, 0x8(%rbp)
leaq 0x48(%rsp), %rdi
leaq 0x108(%rsp), %rsi
movq %rbp, %rdx
callq 0x2e56
cmpl $0x0, 0x28(%rsp)
setne %cl
xorb %cl, %al
je 0x2605
movq 0x48(%rsp), %rax
movq 0x50(%rsp), %rsi
addq %rax, %rsi
movq %rax, 0x68(%rsp)
movl $0x0, 0x80(%rsp)
movq %r15, 0x88(%rsp)
movq %rsi, 0x70(%rsp)
leaq 0x98(%rsp), %rax
movq %rax, 0x28(%rsp)
movq %r13, 0x30(%rsp)
movq %r12, 0x38(%rsp)
movq %rbx, 0x40(%rsp)
movups 0x28(%rsp), %xmm0
movups 0x38(%rsp), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq %r13, %rdi
movq %rbx, %rdx
callq 0x3353
cmpl $0x0, 0x80(%rsp)
setne %cl
xorb %cl, %al
je 0x2624
movq 0x130(%rsp), %rax
cmpq 0xc0(%rsp), %rax
jne 0x25e6
leaq 0x110(%rsp), %rsi
movq 0x10(%rsi), %rdi
movq 0xb0(%rsp), %rdx
callq 0x441e
testb %al, %al
je 0x25e6
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0x25b8
callq 0x2150
leaq 0x98(%rsp), %rdi
callq 0x29da
leaq 0x108(%rsp), %rdi
callq 0x29da
xorl %eax, %eax
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2ac0(%rip), %rdi      # 0x50ad
leaq 0x2ac4(%rip), %rsi      # 0x50b8
leaq 0x2ad0(%rip), %rcx      # 0x50cb
movl $0x14, %edx
callq 0x20e0
leaq 0x2b25(%rip), %rdi      # 0x5131
leaq 0x2b2b(%rip), %rsi      # 0x513e
leaq 0x2b39(%rip), %rcx      # 0x5153
movl $0xe6, %edx
callq 0x20e0
leaq 0x2b06(%rip), %rdi      # 0x5131
leaq 0x2b0c(%rip), %rsi      # 0x513e
leaq 0x2d26(%rip), %rcx      # 0x535f
movl $0xbd, %edx
callq 0x20e0
jmp 0x2647
jmp 0x2647
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0x2659
callq 0x2150
leaq 0x98(%rsp), %rdi
callq 0x29da
leaq 0x108(%rsp), %rdi
callq 0x29da
jmp 0x26f2
movq %rax, %rbx
movl $0x38, %r14d
leaq (%rsp,%r14), %rdi
addq $0x98, %rdi
callq 0x2878
addq $-0x38, %r14
cmpq $-0x38, %r14
jne 0x267e
movb $0x1, %bpl
jmp 0x26a2
movq %rax, %rbx
xorl %ebp, %ebp
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x26ba
callq 0x2150
jmp 0x26ba
jmp 0x26b5
movq %rax, %rbx
xorl %ebp, %ebp
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x26c9
callq 0x2150
leaq 0x98(%rsp), %r14
cmpq %r15, %r14
sete %al
orb %al, %bpl
jne 0x26f2
addq $-0x38, %r15
movq %r15, %rdi
callq 0x2878
cmpq %r14, %r15
jne 0x26dc
jmp 0x26f2
movq %rax, %rbx
movq %rbx, %rdi
callq 0x21f0