// File: /workspace/github_cpp_makefile_star2_O3/mattn[P]minijson/main.cxx
// Function: main
int
main(int /*argc*/, char* /*argv*/[]) {
#ifdef __MINIJSON_LIBERAL
  const char* foo = R"(
{'empty':{"":[]}, "foo":
3.2, "bar": "baz", "baz": true,"hoge":{"a":"あい\nうお\2え"}, "moge": null, "zz": 0xff
, "rrr":[[2,"3"], "4"], "fuba": 1e9,}
)";
#else
  const char* foo = R"(
{"empty":{"":[]}, "foo":
3.2, "bar": "baz", "baz": true,"hoge":{"a":"あい\nうお\2え"}, "moge": null, "zz": 0xff
, "rrr":[[2,"3"], "4"], "fuba": 1e9}
)";
#endif
  const char* p = foo;
  value v;
  error e = parse(p, v);
  if (e != no_error) {
    std::cerr << errstr(e) << "(" << (int) (p - foo) << "):" << p << std::endl;
    return 1;
  }
  while (*p && strchr("\r\n \t", *p)) { p++; }
  if (*p) {
    std::cerr << "invalid token: " << p << std::endl;
    return 1;
  }

#if defined(_MSC_VER) && _MSC_VER <= 6000
  object& o = object();
  v.get(o);
#else
  object& o = v.get<object>();
#endif
  o["momo"] = "3.0";
#if defined(_MSC_VER) && _MSC_VER <= 6000
  array& a = array();
  o["rrr"].get(a);
#else
  array& a = o["rrr"].get<array>();
#endif
  a.push_back("3.0");
  a.push_back(null);
  o.erase(o.find("foo"));
  std::cout << v.str() << std::endl;
  return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x38, %rsp
leaq 0x2c92(%rip), %rax      # 0x5050
leaq 0x20(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x28(%rsp), %rsi
movl $0x0, (%rsi)
movq $0x0, 0x8(%rsi)
callq 0x3b95
cmpl $0x4, %eax
ja 0x247c
movl %eax, %eax
leaq 0x2c14(%rip), %rcx      # 0x5004
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x20(%rsp), %r14
movb (%r14), %al
testb %al, %al
je 0x2437
incq %r14
leaq 0x2ce2(%rip), %rbx      # 0x50f1
movsbl %al, %esi
movl $0x5, %edx
movq %rbx, %rdi
callq 0x21b0
testq %rax, %rax
je 0x2564
movq %r14, 0x20(%rsp)
movb (%r14), %al
incq %r14
testb %al, %al
jne 0x240f
movl 0x28(%rsp), %eax
cmpl $0x4, %eax
je 0x244e
cmpl $0x6, %eax
je 0x244e
cmpl $0x5, %eax
jne 0x25ac
movq 0x30(%rsp), %rbx
jmp 0x25b1
leaq 0x2cdd(%rip), %rbx      # 0x513c
jmp 0x2483
leaq 0x2cb9(%rip), %rbx      # 0x5121
jmp 0x2483
leaq 0x2cbe(%rip), %rbx      # 0x512f
jmp 0x2483
leaq 0x2c9d(%rip), %rbx      # 0x5117
jmp 0x2483
leaq 0x2cd1(%rip), %rbx      # 0x5154
movq %rbx, %rdi
callq 0x20a0
movq 0x5b5e(%rip), %rdi      # 0x7ff0
movq %rbx, %rsi
movq %rax, %rdx
callq 0x21c0
movq 0x5b4c(%rip), %rdi      # 0x7ff0
leaq 0x2c41(%rip), %rsi      # 0x50ec
movl $0x1, %edx
callq 0x21c0
movl 0x20(%rsp), %esi
leaq 0x2b90(%rip), %rax      # 0x5050
subl %eax, %esi
movq 0x5b27(%rip), %rdi      # 0x7ff0
callq 0x2240
movq %rax, %rbx
leaq 0x2c16(%rip), %rsi      # 0x50ee
movl $0x2, %edx
movq %rax, %rdi
callq 0x21c0
movq 0x20(%rsp), %r14
testq %r14, %r14
je 0x2507
movq %r14, %rdi
callq 0x20a0
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x21c0
jmp 0x2520
movq (%rbx), %rax
movq -0x18(%rax), %rax
movq %rbx, %rdi
addq %rax, %rdi
movl 0x20(%rbx,%rax), %esi
orl $0x1, %esi
callq 0x2230
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2170
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movl $0x1, %ebx
movq %rax, %rdi
callq 0x20e0
leaq 0x28(%rsp), %rdi
callq 0x294a
movl %ebx, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0x5a85(%rip), %rbx      # 0x7ff0
leaq 0x2b84(%rip), %rsi      # 0x50f6
movl $0xf, %edx
movq %rbx, %rdi
callq 0x21c0
movq 0x20(%rsp), %r14
testq %r14, %r14
je 0x274e
movq %r14, %rdi
callq 0x20a0
movq 0x5a54(%rip), %rdi      # 0x7ff0
movq %r14, %rsi
movq %rax, %rdx
callq 0x21c0
jmp 0x276c
leaq 0x30(%rsp), %rbx
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x2b48(%rip), %rsi      # 0x510a
leaq 0x2b45(%rip), %rdx      # 0x510e
movq %rsp, %rdi
callq 0x3b00
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x27d4
leaq 0x2b23(%rip), %rsi      # 0x5106
movq %rax, %rdi
callq 0x288e
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x2601
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2190
movq %rsp, %rdi
movq %r12, (%rdi)
leaq 0x2b01(%rip), %rsi      # 0x510f
leaq 0x2afd(%rip), %rdx      # 0x5112
callq 0x3b00
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x27d4
movq %rax, %r14
movl (%rax), %eax
addq $0x8, %r14
cmpl $0x4, %eax
je 0x263d
cmpl $0x6, %eax
je 0x263d
cmpl $0x5, %eax
jne 0x2640
movq (%r14), %r14
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x2656
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2190
leaq 0x2aa9(%rip), %rsi      # 0x5106
movq %rsp, %rdi
callq 0x28ea
movq %rsp, %rsi
movq %r14, %rdi
callq 0x4d4a
movq %rsp, %r15
movq %r15, %rdi
callq 0x294a
movl $0x1, (%r15)
movq $0x0, 0x8(%r15)
movq %rsp, %rsi
movq %r14, %rdi
callq 0x4d4a
movq %rsp, %r14
movq %r14, %rdi
callq 0x294a
movq %r12, (%r14)
leaq 0x2a69(%rip), %rsi      # 0x5113
leaq 0x2a65(%rip), %rdx      # 0x5116
movq %rsp, %rdi
callq 0x3b00
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x4efc
movq %rbx, %rdi
movq %rax, %rsi
callq 0x4f42
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x26e5
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2190
movq %rsp, %rdi
leaq 0x28(%rsp), %rsi
callq 0x29de
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq 0x58ce(%rip), %rdi      # 0x7fd0
callq 0x21c0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2170
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20e0
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x2747
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2190
xorl %ebx, %ebx
jmp 0x254c
movq 0x589b(%rip), %rax      # 0x7ff0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
leaq (%rax,%rcx), %rdi
movl 0x20(%rax,%rcx), %esi
orl $0x1, %esi
callq 0x2230
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2170
jmp 0x2534
jmp 0x27bf
jmp 0x27a4
jmp 0x27bf
jmp 0x278d
movq %rax, %rbx
movq %rsp, %rdi
callq 0x294a
jmp 0x27c2
jmp 0x27bf
jmp 0x27a4
jmp 0x27bf
jmp 0x27bf
jmp 0x27a4
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x27c2
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2190
jmp 0x27c2
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x294a
movq %rbx, %rdi
callq 0x2250