// File: /workspace/github_cpp_makefile_star2_O1/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 $0x28, %rsp
movq %r8, 0x20(%rsp)
movl %ecx, %ebp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, 0x18(%rsp)
leaq 0x36377(%rip), %r13     # 0x48140
movq %rdx, 0x10(%rsp)
cmpl $-0x1, %ebp
sete %r12b
movq %r15, %rdi
callq 0x9bbc
movl %eax, %ebx
testq %r14, %r14
setne %al
andb %r12b, %al
cmpb $0x1, %al
jne 0x11e03
movq 0x10(%r14), %rax
cmpq 0x18(%r14), %rax
jae 0x11e4d
movzbl (%rax), %eax
cmpl $-0x1, %eax
jne 0x11e05
xorl %r14d, %r14d
jmp 0x11e05
movl %ebp, %eax
cmpl $-0x1, %ebx
sete %cl
cmpl $-0x1, %eax
sete %al
cmpb %al, %cl
je 0x11e58
movq %r15, %rdi
callq 0x9bbc
movzbl %al, %eax
testb $0x4, (%rax,%r13)
je 0x11e58
movq (%r15), %rdi
movq 0x10(%rdi), %rax
cmpq 0x18(%rdi), %rax
jae 0x11e45
incq %rax
movq %rax, 0x10(%rdi)
movl $0xffffffff, 0x8(%r15)  # imm = 0xFFFFFFFF
jmp 0x11dce
movq (%rdi), %rax
callq *0x50(%rax)
jmp 0x11e3b
movq (%r14), %rax
movq %r14, %rdi
callq *0x48(%rax)
jmp 0x11df9
movq (%r15), %r13
movl 0x8(%r15), %ebx
testq %r13, %r13
setne %al
cmpl $-0x1, %ebx
sete %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x11e95
movq 0x10(%r13), %rax
cmpq 0x18(%r13), %rax
movq 0x10(%rsp), %rdi
jae 0x120cd
movzbl (%rax), %r14d
xorl %eax, %eax
cmpl $-0x1, %r14d
cmoveq %rax, %r13
jmp 0x11e9d
movl %ebx, %r14d
movq 0x10(%rsp), %rdi
cmpl $-0x1, %ebp
sete %al
testq %rdi, %rdi
setne %cl
andb %al, %cl
movl %ebp, %eax
cmpb $0x1, %cl
jne 0x11ec3
movq 0x10(%rdi), %rax
cmpq 0x18(%rdi), %rax
jae 0x120e4
movzbl (%rax), %eax
cmpl $-0x1, %r14d
sete %cl
cmpl $-0x1, %eax
sete %al
movb $-0x1, %dl
cmpb %al, %cl
je 0x11efc
cmpl $-0x1, %ebx
sete %al
testq %r13, %r13
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x11efa
movq 0x10(%r13), %rax
cmpq 0x18(%r13), %rax
jae 0x120f4
movzbl (%rax), %ebx
movl %ebx, %edx
cmpb $0x66, %dl
je 0x11fd7
movzbl %dl, %eax
cmpl $0x74, %eax
jne 0x12092
movb %dl, 0xf(%rsp)
xorl %r13d, %r13d
movq %rdi, %r14
cmpl $-0x1, %ebp
sete %r12b
movq %r15, %rdi
callq 0x9bbc
movl %eax, %ebx
testq %r14, %r14
setne %al
andb %r12b, %al
cmpb $0x1, %al
jne 0x11f50
movq 0x10(%r14), %rax
cmpq 0x18(%r14), %rax
jae 0x11faf
movzbl (%rax), %eax
cmpl $-0x1, %eax
jne 0x11f52
xorl %r14d, %r14d
jmp 0x11f52
movl %ebp, %eax
leaq 0x35bb5(%rip), %rcx     # 0x47b0e
leaq (%rcx,%r13), %r12
cmpl $-0x1, %ebx
sete %cl
cmpl $-0x1, %eax
sete %al
cmpb %al, %cl
je 0x11fc1
cmpq $0x4, %r13
je 0x11fba
movb (%r12), %bl
movq %r15, %rdi
callq 0x9bbc
cmpb %al, %bl
jne 0x11fc1
movq (%r15), %rdi
movq 0x10(%rdi), %rax
cmpq 0x18(%rdi), %rax
jae 0x11fa7
incq %rax
movq %rax, 0x10(%rdi)
movl $0xffffffff, 0x8(%r15)  # imm = 0xFFFFFFFF
incq %r13
jmp 0x11f1b
movq (%rdi), %rax
callq *0x50(%rax)
jmp 0x11f97
movq (%r14), %rax
movq %r14, %rdi
callq *0x48(%rax)
jmp 0x11f46
leaq 0x35b51(%rip), %r12     # 0x47b12
cmpb $0x0, (%r12)
je 0x120b4
cmpb $0x66, 0xf(%rsp)
jne 0x12092
xorl %r14d, %r14d
leaq 0x35b32(%rip), %r13     # 0x47b13
cmpl $-0x1, %ebp
sete %r12b
movq %r15, %rdi
callq 0x9bbc
movl %eax, %ebx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
setne %al
andb %r12b, %al
cmpb $0x1, %al
jne 0x1201a
movq 0x10(%rdi), %rax
cmpq 0x18(%rdi), %rax
jae 0x12077
movzbl (%rax), %eax
cmpl $-0x1, %eax
jne 0x1201c
xorl %edi, %edi
jmp 0x1201c
movl %ebp, %eax
leaq (%r14,%r13), %r12
cmpl $-0x1, %ebx
sete %cl
cmpl $-0x1, %eax
sete %al
cmpb %al, %cl
je 0x1208b
cmpq $0x5, %r14
je 0x12084
movq %rdi, 0x10(%rsp)
movb (%r12), %bl
movq %r15, %rdi
callq 0x9bbc
cmpb %al, %bl
jne 0x1208b
movq (%r15), %rdi
movq 0x10(%rdi), %rax
cmpq 0x18(%rdi), %rax
jae 0x1206f
incq %rax
movq %rax, 0x10(%rdi)
movl $0xffffffff, 0x8(%r15)  # imm = 0xFFFFFFFF
incq %r14
jmp 0x11fe1
movq (%rdi), %rax
callq *0x50(%rax)
jmp 0x1205f
movq (%rdi), %rax
callq *0x48(%rax)
movq 0x10(%rsp), %rdi
jmp 0x12011
leaq 0x35a8d(%rip), %r12     # 0x47b18
cmpb $0x0, (%r12)
je 0x120aa
callq 0xcf7a
movq 0x20(%rsp), %rcx
movl $0x5, (%rcx)
movq %rax, 0x8(%rcx)
xorl %eax, %eax
jmp 0x120be
movq 0x18(%rsp), %rax
movb $0x0, (%rax)
jmp 0x120bc
movq 0x18(%rsp), %rax
movb $0x1, (%rax)
movb $0x1, %al
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq (%r13), %rax
movq %r13, %rdi
callq *0x48(%rax)
movq 0x10(%rsp), %rdi
movl %eax, %r14d
jmp 0x11e89
movq (%rdi), %rax
callq *0x48(%rax)
movq 0x10(%rsp), %rdi
jmp 0x11ec3
movq (%r13), %rax
movq %r13, %rdi
callq *0x48(%rax)
movq 0x10(%rsp), %rdi
movl %eax, %ebx
jmp 0x11efa