// File: /workspace/github_cpp_makefile_star2_O1/sehe[P]spirit-v2-json/json.cpp
// Function: bool JSON::tryParseJson<boost::spirit::basic_istream_iterator<char, std::char_traits<char>>>(boost::spirit::basic_istream_iterator<char, std::char_traits<char>>&, boost::spirit::basic_istream_iterator<char, std::char_traits<char>>, boost::variant<JSON::Literal<JSON::tag_undefined>, JSON::Literal<JSON::tag_null>, JSON::Bool, boost::recursive_wrapper<JSON::Object>, boost::recursive_wrapper<JSON::Array>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, long, long double>&)
bool tryParseJson(It& f, It l, Value& value) // note: first iterator gets updated
    {
        static const skipper<It> s = {};
        static const parser<It, skipper<It> > p;

        try
        {
            return qi::phrase_parse(f,l,p,s,value);
        } catch(const qi::expectation_failure<It>& e)
        {
            std::string msg;

            boost::utf8_output_iterator<std::back_insert_iterator<std::string>> to_utf8(std::back_inserter(msg));
            // expectation points not currently used, but we could tidy up the
            // grammar to bail on unexpected tokens (future)
            std::copy(e.first, e.last, to_utf8); 

            std::cerr << e.what() << "'" << msg << "'\n";
            return false;
        }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movb 0x3e2f6(%rip), %al      # 0x46cc0
testb %al, %al
je 0x8ad1
movb 0x3e5a0(%rip), %al      # 0x46f78
testb %al, %al
je 0x8b1f
movq (%r15), %rax
movq %rax, 0x10(%rsp)
vmovups 0x8(%r15), %xmm0
vmovups %xmm0, 0x18(%rsp)
testq %rax, %rax
je 0x89fc
lock
incl (%rax)
movq 0x10(%rsp), %rax
movq %rax, 0x28(%rsp)
vmovups 0x18(%rsp), %xmm0
vmovups %xmm0, 0x30(%rsp)
testq %rax, %rax
je 0x8a1a
lock
incl (%rax)
movq 0x3e22f(%rip), %rax     # 0x46c50
movq %rax, 0x8(%rsp)
movq 0x3e29b(%rip), %rdi     # 0x46cc8
cmpq $0x0, 0x28(%rdi)
je 0x8a5c
addq $0x28, %rdi
leaq 0xa0(%rsp), %rcx
movq %r14, (%rcx)
leaq 0x28(%rsp), %rdx
leaq 0x8(%rsp), %r8
movq %rbx, %rsi
callq 0x1f73c
movb $0x1, %bpl
testb %al, %al
jne 0x8a5e
xorl %ebp, %ebp
testb %bpl, %bpl
je 0x8aa9
leaq 0x7(%rsp), %r13
leaq 0x1b9f9(%rip), %r14     # 0x24468
leaq 0x28(%rsp), %r15
leaq 0xa0(%rsp), %r12
movq 0x8(%rsp), %rdi
cmpq $0x0, 0x28(%rdi)
je 0x8aa9
addq $0x28, %rdi
movq %r13, 0xa0(%rsp)
movq %rbx, %rsi
movq %r15, %rdx
movq %r12, %rcx
movq %r14, %r8
callq 0x1e390
testb %al, %al
jne 0x8a7c
leaq 0x28(%rsp), %rdi
callq 0x1da34
leaq 0x10(%rsp), %rdi
callq 0x1da34
movl %ebp, %eax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3e1e8(%rip), %r12     # 0x46cc0
movq %r12, %rdi
callq 0x4430
testl %eax, %eax
je 0x89d2
leaq 0x3e161(%rip), %rdi     # 0x46c50
callq 0x1b7f2
leaq 0x12e9d(%rip), %rdi     # 0x1b998
leaq 0x3e14e(%rip), %rsi     # 0x46c50
leaq 0x3d737(%rip), %rdx     # 0x46240
callq 0x4200
leaq 0x3e1ab(%rip), %rdi     # 0x46cc0
callq 0x4140
jmp 0x89d2
leaq 0x3e452(%rip), %r12     # 0x46f78
movq %r12, %rdi
callq 0x4430
testl %eax, %eax
je 0x89e0
leaq 0x3e18b(%rip), %rdi     # 0x46cc8
callq 0x1b9cc
leaq 0x13edb(%rip), %rdi     # 0x1ca24
leaq 0x3e178(%rip), %rsi     # 0x46cc8
leaq 0x3d6e9(%rip), %rdx     # 0x46240
callq 0x4200
leaq 0x3e415(%rip), %rdi     # 0x46f78
callq 0x4140
jmp 0x89e0
jmp 0x8b6f
movq %rax, %rbx
movq %r12, %rdi
callq 0x4130
jmp 0x8cdb
jmp 0x8b81
movq %rdx, %r14
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x1da34
leaq 0x10(%rsp), %rdi
callq 0x1da34
cmpl $0x1, %r14d
jne 0x8cdb
movq %rbx, %rdi
callq 0x40c0
movq %rax, %rbx
leaq 0x80(%rsp), %r14
movq %r14, -0x10(%r14)
movq $0x0, -0x8(%r14)
movb $0x0, (%r14)
movq 0x10(%rax), %rax
movq %rax, 0x58(%rsp)
vmovups 0x18(%rbx), %xmm0
vmovups %xmm0, 0x60(%rsp)
testq %rax, %rax
je 0x8be4
lock
incl (%rax)
movq 0x28(%rbx), %rax
movq %rax, 0x40(%rsp)
vmovups 0x30(%rbx), %xmm0
vmovups %xmm0, 0x48(%rsp)
testq %rax, %rax
je 0x8c00
lock
incl (%rax)
leaq 0x70(%rsp), %rax
leaq 0x98(%rsp), %rcx
movq %rax, (%rcx)
leaq 0x90(%rsp), %rdi
leaq 0x58(%rsp), %rsi
leaq 0x40(%rsp), %rdx
callq 0x1cb75
leaq 0x40(%rsp), %rdi
callq 0x1da34
leaq 0x58(%rsp), %rdi
callq 0x1da34
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x10(%rax)
movq 0x3d3a5(%rip), %rdi     # 0x45ff0
movq %rax, %rsi
callq 0x4240
movq %rax, %rbx
leaq 0x29980(%rip), %rsi     # 0x325dd
movl $0x1, %edx
movq %rax, %rdi
callq 0x4290
movq 0x70(%rsp), %rsi
movq 0x78(%rsp), %rdx
movq %rbx, %rdi
callq 0x4290
leaq 0x2995c(%rip), %rsi     # 0x325df
movl $0x2, %edx
movq %rax, %rdi
callq 0x4290
movq 0x70(%rsp), %rdi
cmpq %r14, %rdi
je 0x8c9f
callq 0x4210
callq 0x43b0
xorl %ebp, %ebp
jmp 0x8abd
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x1da34
leaq 0x58(%rsp), %rdi
callq 0x1da34
jmp 0x8cc7
movq %rax, %rbx
movq 0x70(%rsp), %rdi
cmpq %r14, %rdi
je 0x8cd6
callq 0x4210
callq 0x43b0
movq %rbx, %rdi
callq 0x4410
movq %rax, %rdi
callq 0x4a96
nop