// File: /workspace/github_cpp_makefile_star2_O3/oknenavin[P]cxon/test/../src/cxon/lang/common/cio/string.hxx
// Function: std::enable_if<!chr::is_char_8<char>::value || !is_forward_iterator<std::istreambuf_iterator<char, std::char_traits<char>>>::value, bool>::type cxon::cio::str::imp::string_read_tail_<cxon::JSON<cxon::cio::str::raw_traits<cxon::json::format_traits>>, cxon::cnt::range_container<char*>, std::istreambuf_iterator<char, std::char_traits<char>>, cxon::context<cxon::JSON<cxon::json::format_traits>>, char>(cxon::cnt::range_container<char*>&, std::istreambuf_iterator<char, std::char_traits<char>>&, std::istreambuf_iterator<char, std::char_traits<char>>, cxon::context<cxon::JSON<cxon::json::format_traits>>&)
inline auto string_read_tail_(C& c, II& i, II e, Cx& cx)
                -> enable_if_t<!chr::is_char_8<T>::value || !is_forward_iterator<II>::value, bool>
            {
                constexpr bool HANDLE_ESCAPES = is_unquoted_key_context<X>::value || !X::assume_no_escapes;
                while (i != e) {
                    if (HANDLE_ESCAPES && *i == '\\') {
                        II const o = i; ++i;
                        CXON_IF_CONSTEXPR (is_unquoted_key_context<X>::value) {
                            if (i != e && *i == X::string::del)
                                return ++i, true;
                        }
                        char32_t 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;
                    }
                    else {
                        CXON_IF_CONSTEXPR (!is_unquoted_key_context<X>::value) {
                            if (delim_en_check<X>(*i))      return delim_en_read<X>(i, e);
                        }
                        CXON_IF_CONSTEXPR (X::validate_string_escapes) {
                            if (chr::is<X>::ctrl(*i))       return cx/X::read_error::unexpected;
                        }
                        if (!char_read_<X>(c, i, e, cx))    return false;
                    }
                }
                return cx/X::read_error::unexpected;
            }

// 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, %rbx
movq %rdi, %r12
cmpl $-0x1, %ebp
sete %r15b
movq %rbx, %rdi
callq 0x9cb2
movl %eax, %r13d
testq %r14, %r14
setne %al
andb %r15b, %al
cmpb $0x1, %al
jne 0xf2ac
movq 0x10(%r14), %rax
cmpq 0x18(%r14), %rax
jae 0xf4bd
cmpl $-0x1, %r13d
je 0xf2c1
jmp 0xf4e8
cmpl $-0x1, %r13d
sete %al
cmpl $-0x1, %ebp
sete %cl
cmpb %al, %cl
je 0xf4e8
movq %rbx, %rdi
callq 0x9cb2
cmpb $0x5c, %al
jne 0xf31f
movq (%rbx), %rdi
movq 0x10(%rdi), %rax
cmpq 0x18(%rdi), %rax
jae 0xf4dd
incq %rax
movq %rax, 0x10(%rdi)
movl $0xffffffff, 0x8(%rbx)  # imm = 0xFFFFFFFF
movq %rbx, %rdi
movq %r14, %rsi
movl %ebp, %edx
movq 0x10(%rsp), %rcx
callq 0xf62b
cmpl $-0x1, %eax
je 0xf50e
movl %eax, %ecx
andl $0xfffffc00, %ecx       # imm = 0xFFFFFC00
cmpl $0xd800, %ecx           # imm = 0xD800
jne 0xf376
xorl %r13d, %r13d
jmp 0xf3ea
movq %rbx, %rdi
callq 0x9cb2
cmpb $0x22, %al
je 0xf51f
movq %rbx, %rdi
callq 0x9cb2
testb $-0x20, %al
je 0xf4e8
movq %rbx, %rdi
movq %r14, %rsi
movl %ebp, %edx
movq 0x10(%rsp), %rcx
callq 0xfeb3
cmpl $-0x1, %eax
je 0xf50e
movl %eax, %ecx
andl $0xfffffc00, %ecx       # imm = 0xFFFFFC00
cmpl $0xd800, %ecx           # imm = 0xD800
jne 0xf413
xorl %r13d, %r13d
jmp 0xf487
movl $0x1, %r13d
cmpl $0x80, %eax
jb 0xf3db
movl $0x2, %r13d
cmpl $0x800, %eax            # imm = 0x800
jb 0xf3cc
movl $0x3, %r13d
cmpl $0x10000, %eax          # imm = 0x10000
jb 0xf3bd
cmpl $0x10ffff, %eax         # imm = 0x10FFFF
ja 0xf317
movl %eax, %ecx
andb $0x3f, %cl
orb $-0x80, %cl
movb %cl, 0xb(%rsp)
shrl $0x6, %eax
movl $0x4, %r13d
movl %eax, %ecx
andb $0x3f, %cl
orb $-0x80, %cl
movb %cl, 0xa(%rsp)
shrl $0x6, %eax
movl %eax, %ecx
andb $0x3f, %cl
orb $-0x80, %cl
movb %cl, 0x9(%rsp)
shrl $0x6, %eax
leaq 0x35d9e(%rip), %rcx     # 0x45180
orl (%rcx,%r13,8), %eax
movb %al, 0x8(%rsp)
movq 0x8(%r12), %rax
movq 0x10(%r12), %rdi
subq %rdi, %rax
cmpq %rax, %r13
jg 0xf4fa
testq %r13, %r13
je 0xf4b0
leaq 0x8(%rsp), %rsi
jmp 0xf4a3
movl $0x1, %r13d
cmpl $0x80, %eax
jb 0xf478
movl $0x2, %r13d
cmpl $0x800, %eax            # imm = 0x800
jb 0xf469
movl $0x3, %r13d
cmpl $0x10000, %eax          # imm = 0x10000
jb 0xf45a
cmpl $0x10ffff, %eax         # imm = 0x10FFFF
ja 0xf36e
movl %eax, %ecx
andb $0x3f, %cl
orb $-0x80, %cl
movb %cl, 0xf(%rsp)
shrl $0x6, %eax
movl $0x4, %r13d
movl %eax, %ecx
andb $0x3f, %cl
orb $-0x80, %cl
movb %cl, 0xe(%rsp)
shrl $0x6, %eax
movl %eax, %ecx
andb $0x3f, %cl
orb $-0x80, %cl
movb %cl, 0xd(%rsp)
shrl $0x6, %eax
leaq 0x35d01(%rip), %rcx     # 0x45180
orl (%rcx,%r13,8), %eax
movb %al, 0xc(%rsp)
movq 0x8(%r12), %rax
movq 0x10(%r12), %rdi
subq %rdi, %rax
cmpq %rax, %r13
jg 0xf4fa
testq %r13, %r13
je 0xf4b0
leaq 0xc(%rsp), %rsi
movq %r13, %rdx
callq 0x41e0
movq 0x10(%r12), %rdi
addq %r13, %rdi
movq %rdi, 0x10(%r12)
jmp 0xf274
movq (%r14), %rax
movq %r14, %rdi
callq *0x48(%rax)
cmpl $-0x1, %eax
jne 0xf2a1
cmpl $-0x1, %r13d
je 0xf4e8
xorl %r14d, %r14d
jmp 0xf2c1
movq (%rdi), %rax
callq *0x50(%rax)
jmp 0xf2e5
callq 0xdf1e
movq 0x10(%rsp), %rcx
movl $0x1, (%rcx)
jmp 0xf50a
callq 0xdf1e
movq 0x10(%rsp), %rcx
movl $0x8, (%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 (%rbx), %r15
movl 0x8(%rbx), %r12d
testq %r15, %r15
setne %al
cmpl $-0x1, %r12d
sete %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0xf54e
movq 0x10(%r15), %rax
cmpq 0x18(%r15), %rax
jae 0xf5d9
movzbl (%rax), %r13d
jmp 0xf551
movl %r12d, %r13d
cmpl $-0x1, %ebp
sete %al
testq %r14, %r14
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0xf57a
movq 0x10(%r14), %rax
cmpq 0x18(%r14), %rax
jae 0xf5f4
cmpl $-0x1, %r13d
jne 0xf50e
jmp 0xf58b
cmpl $-0x1, %r13d
sete %al
cmpl $-0x1, %ebp
sete %cl
cmpb %al, %cl
je 0xf50e
cmpl $-0x1, %r12d
sete %al
testq %r15, %r15
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0xf5ad
movq 0x10(%r15), %rax
cmpq 0x18(%r15), %rax
jae 0xf615
movzbl (%rax), %r12d
cmpb $0x22, %r12b
jne 0xf50e
movq (%rbx), %rdi
movq 0x10(%rdi), %rax
cmpq 0x18(%rdi), %rax
jae 0xf623
incq %rax
movq %rax, 0x10(%rdi)
movl $0xffffffff, 0x8(%rbx)  # imm = 0xFFFFFFFF
movb $0x1, %al
jmp 0xf510
movq (%r15), %rax
movq %r15, %rdi
callq *0x48(%rax)
movl %eax, %r13d
xorl %eax, %eax
cmpl $-0x1, %r13d
cmoveq %rax, %r15
jmp 0xf551
movq (%r14), %rax
movq %r14, %rdi
callq *0x48(%rax)
cmpl $-0x1, %eax
jne 0xf572
cmpl $-0x1, %r13d
jne 0xf58b
jmp 0xf50e
movq (%r15), %rax
movq %r15, %rdi
callq *0x48(%rax)
movl %eax, %r12d
jmp 0xf5ad
movq (%rdi), %rax
callq *0x50(%rax)
jmp 0xf5cb