// File: /workspace/github_cpp_makefile_star2_O2/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 %rdx, %r13
movq %rsi, %r12
movq %rdi, %r14
movq (%rsi), %r15
pushq $0x2
popq %rbp
movq %r15, %rsi
cmpq %r13, %r15
je 0x92cd
movzbl (%r15), %eax
cmpq $0x5c, %rax
jne 0x907b
cmpq %r15, %rsi
je 0x903d
movq %r14, %rdi
movq %r15, %rdx
callq 0x93e2
movq (%r12), %r15
leaq 0x1(%r15), %rax
movq %rax, (%r12)
movq %r12, %rdi
movq %r13, %rsi
movq %rbx, %rdx
callq 0x931d
cmpl $-0x1, %eax
je 0x92d1
movq %r14, %rdi
movl %eax, %esi
callq 0x93ae
testb %al, %al
je 0x92fc
movq (%r12), %rsi
leaq -0x1(%rsi), %r15
jmp 0x92c1
cmpq $0x3d, %rax
je 0x92d9
leaq 0x33244(%rip), %rcx     # 0x3c2d0
movb (%rax,%rcx), %cl
andb $0x8, %cl
jne 0x92d9
testb %al, %al
js 0x90a9
cmpb $0x1f, %al
ja 0x92c1
jmp 0x92cd
movq %r13, %rcx
subq %r15, %rcx
cmpb $-0x21, %al
ja 0x90d8
cmpq $0x2, %rcx
jl 0x9304
cmpb $-0x3e, %al
jb 0x9304
cmpb $-0x40, 0x1(%r15)
movq %rbp, %rax
jl 0x91cd
jmp 0x9304
cmpb $-0x11, %al
ja 0x90fc
cmpq $0x3, %rcx
jl 0x9304
cmpl $0xe0, %eax
jne 0x9151
movb 0x1(%r15), %al
andb $-0x20, %al
cmpb $-0x60, %al
je 0x9160
jmp 0x9304
cmpq $0x4, %rcx
jl 0x9304
cmpb $-0x9, %al
ja 0x9304
cmpl $0xf0, %eax
jne 0x9124
movb 0x1(%r15), %al
addb $0x70, %al
cmpb $0x2f, %al
jbe 0x9133
jmp 0x9304
cmpb $-0xd, %al
ja 0x916f
cmpb $-0x41, 0x1(%r15)
jg 0x9304
cmpb $-0x41, 0x2(%r15)
jg 0x9304
cmpb $-0x40, 0x3(%r15)
pushq $0x4
popq %rax
jl 0x91cd
jmp 0x9304
cmpb $-0x14, %al
ja 0x919f
cmpb $-0x41, 0x1(%r15)
jg 0x9304
cmpb $-0x40, 0x2(%r15)
pushq $0x3
popq %rax
jl 0x91cd
jmp 0x9304
cmpl $0xf4, %eax
jne 0x9304
cmpb $-0x71, 0x1(%r15)
jg 0x9304
cmpb $-0x41, 0x2(%r15)
jg 0x9304
cmpb $-0x41, 0x3(%r15)
pushq $0x4
popq %rax
jle 0x91cd
jmp 0x9304
movb 0x1(%r15), %dl
movb 0x2(%r15), %cl
cmpl $0xed, %eax
jne 0x91b8
cmpb $-0x61, %dl
jle 0x91c1
jmp 0x9304
cmpb $-0x41, %dl
jg 0x9304
pushq $0x3
popq %rax
cmpb $-0x40, %cl
jge 0x9304
movq %r15, %rcx
addq %rax, %r15
movq %r15, (%r12)
movb (%rcx,%rax), %al
cmpb $-0x21, %al
ja 0x9205
cmpb $-0x3e, %al
jb 0x92be
movq %r13, %rax
subq %r15, %rax
cmpq $0x2, %rax
jl 0x92be
cmpb $-0x40, 0x1(%r15)
movq %rbp, %rax
jl 0x91cd
jmp 0x92be
cmpb $-0x11, %al
ja 0x922c
movq %r13, %rcx
subq %r15, %rcx
cmpq $0x3, %rcx
jl 0x92be
cmpb $-0x20, %al
jne 0x925d
movb 0x1(%r15), %al
andb $-0x20, %al
cmpb $-0x60, %al
je 0x9268
jmp 0x92be
cmpb $-0x9, %al
ja 0x92be
movq %r13, %rcx
subq %r15, %rcx
cmpq $0x4, %rcx
jl 0x92be
cmpb $-0x10, %al
jne 0x9250
movb 0x1(%r15), %al
addb $0x70, %al
cmpb $0x2f, %al
jbe 0x9283
jmp 0x92be
cmpb $-0xd, %al
ja 0x9278
cmpb $-0x41, 0x1(%r15)
jle 0x9283
jmp 0x92be
cmpb $-0x14, %al
ja 0x929a
cmpb $-0x41, 0x1(%r15)
jg 0x92be
cmpb $-0x40, 0x2(%r15)
pushq $0x3
popq %rax
jl 0x91cd
jmp 0x92be
cmpb $-0xc, %al
jne 0x92be
cmpb $-0x71, 0x1(%r15)
jg 0x92be
cmpb $-0x41, 0x2(%r15)
jg 0x92be
cmpb $-0x40, 0x3(%r15)
pushq $0x4
popq %rax
jl 0x91cd
jmp 0x92be
movb 0x1(%r15), %dl
movb 0x2(%r15), %cl
cmpb $-0x13, %al
jne 0x92ad
cmpb $-0x61, %dl
jle 0x92b2
jmp 0x92be
cmpb $-0x41, %dl
jg 0x92be
pushq $0x3
popq %rax
cmpb $-0x40, %cl
jl 0x91cd
decq %r15
incq %r15
movq %r15, (%r12)
jmp 0x9016
pushq $0x1
jmp 0x9306
movq %r15, (%r12)
xorl %ebx, %ebx
jmp 0x92eb
movb $0x1, %bl
cmpq %r15, %rsi
je 0x92eb
movq %r14, %rdi
movq %r15, %rdx
callq 0x93e2
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, (%r12)
pushq $0x8
jmp 0x9306
pushq $0x2
popq %rsi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x85ba