// File: /workspace/github_cpp_makefile_star2_O1/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 0x2708
leaq 0x2cfa(%rip), %rsi      # 0x50b4
leaq 0x98(%rsp), %r15
leaq 0x28(%rsp), %rdx
movq %r15, %rdi
callq 0x2746
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 0x2708
leaq 0x2ca8(%rip), %rsi      # 0x50b9
leaq 0x48(%rsp), %rdx
movq %r15, %rdi
callq 0x27a6
leaq 0x108(%rsp), %rdi
leaq 0x98(%rsp), %rsi
leaq 0x26(%rsp), %rcx
leaq 0x25(%rsp), %r8
movl $0x2, %edx
callq 0x2806
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 0x2e66
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 0x33a9
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 0x461e
testb %al, %al
je 0x25e6
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0x25b8
callq 0x2150
leaq 0x98(%rsp), %rdi
callq 0x29e4
leaq 0x108(%rsp), %rdi
callq 0x29e4
xorl %eax, %eax
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2ad0(%rip), %rdi      # 0x50bd
leaq 0x2ad4(%rip), %rsi      # 0x50c8
leaq 0x2ae0(%rip), %rcx      # 0x50db
movl $0x14, %edx
callq 0x20e0
leaq 0x2b35(%rip), %rdi      # 0x5141
leaq 0x2b3b(%rip), %rsi      # 0x514e
leaq 0x2b49(%rip), %rcx      # 0x5163
movl $0xe6, %edx
callq 0x20e0
leaq 0x2b16(%rip), %rdi      # 0x5141
leaq 0x2b1c(%rip), %rsi      # 0x514e
leaq 0x2d36(%rip), %rcx      # 0x536f
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 0x29e4
leaq 0x108(%rsp), %rdi
callq 0x29e4
jmp 0x26ff
movq %rax, %rbx
movl $0x38, %r14d
leaq (%rsp,%r14), %rdi
addq $0x98, %rdi
callq 0x2886
addq $-0x38, %r14
cmpq $-0x38, %r14
jne 0x2681
movb $0x1, %bpl
jmp 0x26a5
movq %rax, %rbx
xorl %ebp, %ebp
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x26bd
callq 0x2150
jmp 0x26bd
jmp 0x26b8
movq %rax, %rbx
xorl %ebp, %ebp
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x26db
callq 0x2150
jmp 0x26db
movq %rax, %rbx
leaq 0x98(%rsp), %r15
xorl %ebp, %ebp
leaq 0x98(%rsp), %r14
cmpq %r15, %r14
sete %al
orb %bpl, %al
jne 0x26ff
addq $-0x38, %r15
movq %r15, %rdi
callq 0x2886
cmpq %r14, %r15
jne 0x26ee
movq %rbx, %rdi
callq 0x21f0
nop