// File: /workspace/github_cpp_makefile_star2_O3/oknenavin[P]cxon/test/../src/cxon/lang/common/cio/string.hxx
// Function: std::enable_if<!has_traits<cxon::JSON<cxon::cio::key::quoted_traits<cxon::cxcf::format_traits>>, cxon::cio::str::raw_traits>::value, bool>::type cxon::cio::str::imp::imp::string_read_tail_<cxon::JSON<cxon::cio::key::quoted_traits<cxon::cxcf::format_traits>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const*, cxon::context<cxon::JSON<cxon::cxcf::format_traits>>, char>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, char const*&, char const*, cxon::context<cxon::JSON<cxon::cxcf::format_traits>>&)
inline auto string_read_tail_(C& c, II& i, II e, Cx& cx)
                    -> enable_if_t<!has_traits<X, str::raw_traits>::value, bool>
                {
                    II l = i;
                        constexpr bool HANDLE_ESCAPES = is_unquoted_key_context<X>::value || !X::assume_no_escapes;
                        for ( ; i != e; ++i) {
                            if (HANDLE_ESCAPES && *i == '\\') {
                                if (l != i && !cxon::cnt::append(c, l, i))
                                    return rewind(i, l), cx/X::read_error::overflow;
                                CXON_IF_CONSTEXPR (is_unquoted_key_context<X>::value) {
                                    II const f = i;
                                        if (++i != e && *i == X::string::del)
                                            return ++i, true;
                                    i = f;
                                }
                                II const o = i;
                                    char32_t const c32 = chr::esc_to_utf32<X>(++i, e, cx);
                                        if (c32 == chr::bad_utf32) return rewind(i, o), false;
                                    if (!char_append_(c, c32))
                                        return rewind(i, o), cx/X::read_error::overflow;
                                l = i, --i;
                            }
                            else {
                                CXON_IF_CONSTEXPR (!is_unquoted_key_context<X>::value) {
                                    if (delim_en_check<X>(*i)) {
                                        if (l == i || cxon::cnt::append(c, l, i))
                                            return delim_en_read<X>(i, e);
                                        return rewind(i, l), cx/X::read_error::overflow;
                                    }
                                }
                                CXON_IF_CONSTEXPR (X::validate_string_encoding) {
                                    if ((unsigned char)*i > 0x7F) {
                                        auto bs = chr::utf8_check(i, e);
                                        if (bs == 0)
                                            return cx/X::read_error::character_invalid;
                                        while ((bs = chr::utf8_check(i += bs, e)))
                                            ;
                                        --i;
                                    }
                                    else CXON_IF_CONSTEXPR (X::validate_string_escapes) {
                                        if (chr::is<X>::ctrl(*i))
                                            return cx/X::read_error::unexpected;
                                    }
                                }
                                else CXON_IF_CONSTEXPR (X::validate_string_escapes) {
                                    if (chr::is<X>::ctrl(*i))
                                        return cx/X::read_error::unexpected;
                                }
                            }
                        }
                    return cx/X::read_error::unexpected;
                }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq (%rsi), %rbp
cmpq %rdx, %rbp
je 0xafd5
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %r14
leaq 0x3a3eb(%rip), %r13     # 0x45080
movq %rbp, %rcx
movzbl (%rbp), %eax
cmpq $0x5c, %rax
jne 0xacf4
cmpq %rbp, %rcx
je 0xacbe
movq 0x8(%r14), %rsi
subq %rcx, %rbp
movq %r14, %rdi
xorl %edx, %edx
movq %rbp, %r8
callq 0x4270
movq (%r15), %rbp
leaq 0x1(%rbp), %rax
movq %rax, (%r15)
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0xb026
cmpl $-0x1, %eax
je 0xaff7
movl %eax, %ecx
andl $0xfffffc00, %ecx       # imm = 0xFFFFFC00
cmpl $0xd800, %ecx           # imm = 0xD800
jne 0xad20
xorl %r8d, %r8d
jmp 0xad90
cmpq $0x3d, %rax
je 0xaffc
movb (%rax,%r13), %dl
andb $0x8, %dl
jne 0xaffc
testb %al, %al
js 0xadaf
cmpb $0x1f, %al
ja 0xafc6
jmp 0xafd5
movl $0x1, %r8d
cmpl $0x80, %eax
jb 0xad81
movl $0x2, %r8d
cmpl $0x800, %eax            # imm = 0x800
jb 0xad72
movl $0x3, %r8d
cmpl $0x10000, %eax          # imm = 0x10000
jb 0xad63
cmpl $0x10ffff, %eax         # imm = 0x10FFFF
ja 0xacec
movl %eax, %ecx
andb $0x3f, %cl
orb $-0x80, %cl
movb %cl, 0x7(%rsp)
shrl $0x6, %eax
movl $0x4, %r8d
movl %eax, %ecx
andb $0x3f, %cl
orb $-0x80, %cl
movb %cl, 0x6(%rsp)
shrl $0x6, %eax
movl %eax, %ecx
andb $0x3f, %cl
orb $-0x80, %cl
movb %cl, 0x5(%rsp)
shrl $0x6, %eax
leaq 0x3a3f8(%rip), %rcx     # 0x45180
orl (%rcx,%r8,8), %eax
movb %al, 0x4(%rsp)
movq 0x8(%r14), %rsi
movq %r14, %rdi
xorl %edx, %edx
leaq 0x4(%rsp), %rcx
callq 0x4270
movq (%r15), %rcx
leaq -0x1(%rcx), %rbp
jmp 0xafc6
movq %r12, %rdx
subq %rbp, %rdx
cmpb $-0x21, %al
ja 0xaddf
cmpq $0x2, %rdx
jl 0xb019
cmpb $-0x3e, %al
jb 0xb019
movl $0x2, %eax
cmpb $-0x40, 0x1(%rbp)
jl 0xaed3
jmp 0xb019
cmpb $-0x11, %al
ja 0xae02
cmpq $0x3, %rdx
jl 0xb019
cmpl $0xe0, %eax
jne 0xae55
movb 0x1(%rbp), %al
andb $-0x20, %al
cmpb $-0x60, %al
je 0xae63
jmp 0xb019
cmpq $0x4, %rdx
jl 0xb019
cmpb $-0x9, %al
ja 0xb019
cmpl $0xf0, %eax
jne 0xae29
movb 0x1(%rbp), %al
addb $0x70, %al
cmpb $0x2f, %al
jbe 0xae37
jmp 0xb019
cmpb $-0xd, %al
ja 0xae73
cmpb $-0x41, 0x1(%rbp)
jg 0xb019
cmpb $-0x41, 0x2(%rbp)
jg 0xb019
movl $0x4, %eax
cmpb $-0x40, 0x3(%rbp)
jl 0xaed3
jmp 0xb019
cmpb $-0x14, %al
ja 0xaea2
cmpb $-0x41, 0x1(%rbp)
jg 0xb019
movl $0x3, %eax
cmpb $-0x40, 0x2(%rbp)
jl 0xaed3
jmp 0xb019
cmpl $0xf4, %eax
jne 0xb019
cmpb $-0x71, 0x1(%rbp)
jg 0xb019
cmpb $-0x41, 0x2(%rbp)
jg 0xb019
movl $0x4, %eax
cmpb $-0x41, 0x3(%rbp)
jle 0xaed3
jmp 0xb019
movb 0x1(%rbp), %sil
movb 0x2(%rbp), %dl
cmpl $0xed, %eax
jne 0xaebb
cmpb $-0x61, %sil
jle 0xaec5
jmp 0xb019
cmpb $-0x41, %sil
jg 0xb019
movl $0x3, %eax
cmpb $-0x40, %dl
jge 0xb019
movq %rbp, %rdx
addq %rax, %rbp
movq %rbp, (%r15)
movb (%rdx,%rax), %al
cmpb $-0x21, %al
ja 0xaf0b
cmpb $-0x3e, %al
jb 0xafc3
movq %r12, %rax
subq %rbp, %rax
cmpq $0x2, %rax
jl 0xafc3
movl $0x2, %eax
cmpb $-0x40, 0x1(%rbp)
jl 0xaed3
jmp 0xafc3
cmpb $-0x11, %al
ja 0xaf31
movq %r12, %rdx
subq %rbp, %rdx
cmpq $0x3, %rdx
jl 0xafc3
cmpb $-0x20, %al
jne 0xaf60
movb 0x1(%rbp), %al
andb $-0x20, %al
cmpb $-0x60, %al
je 0xaf6a
jmp 0xafc3
cmpb $-0x9, %al
ja 0xafc3
movq %r12, %rdx
subq %rbp, %rdx
cmpq $0x4, %rdx
jl 0xafc3
cmpb $-0x10, %al
jne 0xaf54
movb 0x1(%rbp), %al
addb $0x70, %al
cmpb $0x2f, %al
jbe 0xaf85
jmp 0xafc3
cmpb $-0xd, %al
ja 0xaf7b
cmpb $-0x41, 0x1(%rbp)
jle 0xaf85
jmp 0xafc3
cmpb $-0x14, %al
ja 0xaf9c
cmpb $-0x41, 0x1(%rbp)
jg 0xafc3
movl $0x3, %eax
cmpb $-0x40, 0x2(%rbp)
jl 0xaed3
jmp 0xafc3
cmpb $-0xc, %al
jne 0xafc3
cmpb $-0x71, 0x1(%rbp)
jg 0xafc3
cmpb $-0x41, 0x2(%rbp)
jg 0xafc3
movl $0x4, %eax
cmpb $-0x40, 0x3(%rbp)
jl 0xaed3
jmp 0xafc3
movb 0x1(%rbp), %sil
movb 0x2(%rbp), %dl
cmpb $-0x13, %al
jne 0xafaf
cmpb $-0x61, %sil
jle 0xafb5
jmp 0xafc3
cmpb $-0x41, %sil
jg 0xafc3
movl $0x3, %eax
cmpb $-0x40, %dl
jl 0xaed3
decq %rbp
incq %rbp
movq %rbp, (%r15)
cmpq %r12, %rbp
jne 0xac98
callq 0xdf1e
movl $0x1, (%rbx)
movq %rax, 0x8(%rbx)
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbp, (%r15)
jmp 0xafe4
movb $0x1, %bl
cmpq %rbp, %rcx
je 0xafe6
movq 0x8(%r14), %rsi
subq %rcx, %rbp
movq %r14, %rdi
xorl %edx, %edx
movq %rbp, %r8
callq 0x4270
jmp 0xafe6
callq 0xdf1e
movl $0x2, (%rbx)
jmp 0xafe0