// File: /workspace/github_cpp_makefile_star2_O3/oknenavin[P]cxon/test/../src/cxon/lang/json/fundamental.hxx
// Function: bool cxon::read<cxon::JSON<cxon::json::format_traits>, bool, void>::value<std::istreambuf_iterator<char, std::char_traits<char>>, cxon::context<cxon::JSON<cxon::json::format_traits>>>(bool&, std::istreambuf_iterator<char, std::char_traits<char>>&, std::istreambuf_iterator<char, std::char_traits<char>>, cxon::context<cxon::JSON<cxon::json::format_traits>>&)
static bool value(bool& t, II& i, II e, Cx& cx) {
                    static_assert(*X::id::pos != *X::id::neg, "boolean literals ambiguous"); // for input-iterator, id must be consumed
                    if (!cio::consume<X>(i, e, cx))
                        return false;
                    II const o = i;
                        char const c = cio::peek(i, e);
                            if (c == *X::id::pos && cio::consume<X>(X::id::pos, i, e)) return t = true,  true;
                            if (c == *X::id::neg && cio::consume<X>(X::id::neg, i, e)) return t = false, true;
                    return cio::rewind(i, o), cx/json::read_error::boolean_invalid;
                }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, 0x10(%rsp)
movl %ecx, %ebp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, 0x8(%rsp)
leaq 0x32bd5(%rip), %rbx     # 0x45080
movq %rdx, (%rsp)
cmpl $-0x1, %ebp
sete %r12b
movq %r15, %rdi
callq 0x9cb2
movl %eax, %r13d
testq %r14, %r14
setne %al
andb %r12b, %al
cmpb $0x1, %al
jne 0x124e0
movq 0x10(%r14), %rax
cmpq 0x18(%r14), %rax
jae 0x12528
cmpl $-0x1, %r13d
je 0x124f1
jmp 0x12541
cmpl $-0x1, %r13d
sete %al
cmpl $-0x1, %ebp
sete %cl
cmpb %al, %cl
je 0x12541
movq %r15, %rdi
callq 0x9cb2
movzbl %al, %eax
testb $0x4, (%rax,%rbx)
je 0x12541
movq (%r15), %rdi
movq 0x10(%rdi), %rax
cmpq 0x18(%rdi), %rax
jae 0x12520
incq %rax
movq %rax, 0x10(%rdi)
movl $0xffffffff, 0x8(%r15)  # imm = 0xFFFFFFFF
jmp 0x124af
movq (%rdi), %rax
callq *0x50(%rax)
jmp 0x12516
movq (%r14), %rax
movq %r14, %rdi
callq *0x48(%rax)
cmpl $-0x1, %eax
jne 0x124d8
cmpl $-0x1, %r13d
je 0x12541
xorl %r14d, %r14d
jmp 0x124f1
movq (%r15), %r14
movl 0x8(%r15), %r13d
testq %r14, %r14
setne %al
cmpl $-0x1, %r13d
sete %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x12573
movq 0x10(%r14), %rax
cmpq 0x18(%r14), %rax
movq (%rsp), %rdi
jae 0x127c2
movzbl (%rax), %eax
jmp 0x1257a
movl %r13d, %eax
movq (%rsp), %rdi
cmpl $-0x1, %ebp
sete %cl
testq %rdi, %rdi
setne %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x125a6
movq 0x10(%rdi), %rcx
cmpq 0x18(%rdi), %rcx
jae 0x127dd
cmpl $-0x1, %eax
jne 0x12791
jmp 0x125ba
cmpl $-0x1, %eax
sete %al
cmpl $-0x1, %ebp
sete %cl
cmpb %al, %cl
je 0x12791
cmpl $-0x1, %r13d
sete %al
testq %r14, %r14
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x125e0
movq 0x10(%r14), %rax
cmpq 0x18(%r14), %rax
jae 0x127f8
movzbl (%rax), %r13d
cmpb $0x74, %r13b
je 0x126bb
movzbl %r13b, %eax
cmpl $0x66, %eax
jne 0x12791
xorl %r13d, %r13d
leaq 0x32452(%rip), %rbx     # 0x44a53
cmpl $-0x1, %ebp
sete %r12b
movq %r15, %rdi
callq 0x9cb2
movl %eax, %r14d
movq (%rsp), %rdi
testq %rdi, %rdi
setne %al
andb %r12b, %al
cmpb $0x1, %al
jne 0x12639
movq 0x10(%rdi), %rax
cmpq 0x18(%rdi), %rax
jae 0x1269e
cmpl $-0x1, %r14d
je 0x1264e
jmp 0x12773
cmpl $-0x1, %r14d
sete %al
cmpl $-0x1, %ebp
sete %cl
cmpb %al, %cl
je 0x12773
cmpq $0x5, %r13
je 0x1277d
movq %rdi, (%rsp)
movb (%r13,%rbx), %r14b
movq %r15, %rdi
callq 0x9cb2
cmpb %al, %r14b
jne 0x12778
movq (%r15), %rdi
movq 0x10(%rdi), %rax
cmpq 0x18(%rdi), %rax
jae 0x12696
incq %rax
movq %rax, 0x10(%rdi)
movl $0xffffffff, 0x8(%r15)  # imm = 0xFFFFFFFF
incq %r13
jmp 0x12601
movq (%rdi), %rax
callq *0x50(%rax)
jmp 0x12686
movq (%rdi), %rax
callq *0x48(%rax)
movq (%rsp), %rdi
cmpl $-0x1, %eax
jne 0x1262e
cmpl $-0x1, %r14d
je 0x12773
xorl %edi, %edi
jmp 0x1264e
xorl %r13d, %r13d
leaq 0x32389(%rip), %rbx     # 0x44a4e
cmpl $-0x1, %ebp
sete %r12b
movq %r15, %rdi
callq 0x9cb2
movl %eax, %r14d
movq (%rsp), %rdi
testq %rdi, %rdi
setne %al
andb %r12b, %al
cmpb $0x1, %al
jne 0x126fd
movq 0x10(%rdi), %rax
cmpq 0x18(%rdi), %rax
jae 0x1275a
cmpl $-0x1, %r14d
je 0x1270e
jmp 0x12787
cmpl $-0x1, %r14d
sete %al
cmpl $-0x1, %ebp
sete %cl
cmpb %al, %cl
je 0x12787
cmpq $0x4, %r13
je 0x127b6
movq %rdi, (%rsp)
movb (%r13,%rbx), %r14b
movq %r15, %rdi
callq 0x9cb2
cmpb %al, %r14b
jne 0x1278c
movq (%r15), %rdi
movq 0x10(%rdi), %rax
cmpq 0x18(%rdi), %rax
jae 0x12752
incq %rax
movq %rax, 0x10(%rdi)
movl $0xffffffff, 0x8(%r15)  # imm = 0xFFFFFFFF
incq %r13
jmp 0x126c5
movq (%rdi), %rax
callq *0x50(%rax)
jmp 0x12742
movq (%rdi), %rax
callq *0x48(%rax)
movq (%rsp), %rdi
cmpl $-0x1, %eax
jne 0x126f2
cmpl $-0x1, %r14d
je 0x12787
xorl %edi, %edi
jmp 0x1270e
movb (%r13,%rbx), %r14b
testb %r14b, %r14b
jne 0x12791
movq 0x8(%rsp), %rax
movb $0x0, (%rax)
jmp 0x127be
movb (%r13,%rbx), %r14b
testb %r14b, %r14b
je 0x127b6
callq 0xdf1e
movq 0x10(%rsp), %rcx
movl $0x5, (%rcx)
movq %rax, 0x8(%rcx)
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%rsp), %rax
movb $0x1, (%rax)
movb $0x1, %al
jmp 0x127a7
movq (%r14), %rax
movq %r14, %rdi
callq *0x48(%rax)
movq (%rsp), %rdi
xorl %ecx, %ecx
cmpl $-0x1, %eax
cmoveq %rcx, %r14
jmp 0x1257a
cmpl $-0x1, %eax
sete %bl
movq (%rdi), %rax
callq *0x48(%rax)
cmpl $-0x1, %eax
sete %al
xorb %bl, %al
je 0x12791
jmp 0x125ba
movq (%r14), %rax
movq %r14, %rdi
callq *0x48(%rax)
movl %eax, %r13d
jmp 0x125e0
nop