// File: /workspace/github_cpp_makefile_star2_O1/ArashPartow[P]exprtk/./exprtk.hpp
// Function: exprtk::details::cleanup_escapes(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
inline bool cleanup_escapes(std::string& s)
      {
         typedef std::string::iterator str_itr_t;

         str_itr_t itr1 = s.begin();
         str_itr_t itr2 = s.begin();
         str_itr_t end  = s.end  ();

         std::size_t removal_count  = 0;

         while (end != itr1)
         {
            if ('\\' == (*itr1))
            {
               if (end == ++itr1)
               {
                  return false;
               }
               else if (parse_hex(itr1, end, *itr2))
               {
                  itr1 += 4;
                  itr2 += 1;
                  removal_count += 4;
               }
               else if ('a' == (*itr1)) { (*itr2++) = '\a'; ++itr1; ++removal_count; }
               else if ('b' == (*itr1)) { (*itr2++) = '\b'; ++itr1; ++removal_count; }
               else if ('f' == (*itr1)) { (*itr2++) = '\f'; ++itr1; ++removal_count; }
               else if ('n' == (*itr1)) { (*itr2++) = '\n'; ++itr1; ++removal_count; }
               else if ('r' == (*itr1)) { (*itr2++) = '\r'; ++itr1; ++removal_count; }
               else if ('t' == (*itr1)) { (*itr2++) = '\t'; ++itr1; ++removal_count; }
               else if ('v' == (*itr1)) { (*itr2++) = '\v'; ++itr1; ++removal_count; }
               else if ('0' == (*itr1)) { (*itr2++) = '\0'; ++itr1; ++removal_count; }
               else
               {
                  (*itr2++) = (*itr1++);
                  ++removal_count;
               }

               continue;
            }
            else
               (*itr2++) = (*itr1++);
         }

         if ((removal_count > s.size()) || (0 == removal_count))
            return false;

         s.resize(s.size() - removal_count);

         return true;
      }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq 0x8(%rdi), %r12
testq %r12, %r12
je 0x26c890
movq (%rbx), %rbp
addq %rbp, %r12
xorl %edi, %edi
leaq 0x146da4(%rip), %rsi    # 0x3b3440
movq %rbp, %r13
xorl %r14d, %r14d
movb (%rbp,%r14), %al
cmpb $0x5c, %al
je 0x26c6c4
movb %al, (%r13,%r14)
leaq (%r14,%rbp), %rax
incq %rax
incq %r14
cmpq %r12, %rax
jne 0x26c6a2
jmp 0x26c892
leaq (%r14,%rbp), %rax
incq %rax
cmpq %r12, %rax
je 0x26c8b0
leaq (%r14,%rbp), %r8
addq $0x2, %r8
cmpq %r12, %r8
je 0x26c802
leaq (%r14,%rbp), %r15
addq $0x3, %r15
cmpq %r12, %r15
je 0x26c802
leaq (%r14,%rbp), %rax
addq $0x4, %rax
cmpq %r12, %rax
je 0x26c802
cmpb $0x30, 0x1(%rbp,%r14)
jne 0x26c802
movq %rdi, 0x8(%rsp)
movsbl (%r8), %edi
movq %r8, (%rsp)
movq %rax, 0x10(%rsp)
callq 0x120130
movq 0x10(%rsp), %r9
movq (%rsp), %r8
movabsq $0x3f0000003f, %rdx     # imm = 0x3F0000003F
leaq 0x146cfc(%rip), %rsi    # 0x3b3440
movq 0x8(%rsp), %rdi
cmpl $0x58, %eax
jne 0x26c802
movb (%r15), %al
leal -0x30(%rax), %r15d
cmpb $0xa, %r15b
jb 0x26c778
movzbl %al, %ecx
addl $-0x41, %ecx
cmpl $0x25, %ecx
ja 0x26c802
btq %rcx, %rdx
jae 0x26c802
movb (%r9), %r10b
leal -0x30(%r10), %r9d
cmpb $0xa, %r9b
jb 0x26c797
movzbl %r10b, %ecx
addl $-0x41, %ecx
cmpl $0x25, %ecx
ja 0x26c802
btq %rcx, %rdx
jae 0x26c802
cmpb $0xa, %r15b
jb 0x26c7c6
movzbl %al, %edi
movl %r9d, (%rsp)
movq %r10, %r15
callq 0x120130
movq %r15, %r10
movl (%rsp), %r9d
leaq 0x146c86(%rip), %rsi    # 0x3b3440
movq 0x8(%rsp), %rdi
movl %eax, %r15d
addb $-0x37, %r15b
cmpb $0xa, %r9b
jb 0x26c7e8
movzbl %r10b, %edi
callq 0x120130
leaq 0x146c64(%rip), %rsi    # 0x3b3440
movq 0x8(%rsp), %rdi
movl %eax, %r9d
addb $-0x37, %r9b
shlb $0x4, %r15b
orb %r9b, %r15b
movb %r15b, (%r13,%r14)
leaq (%r14,%rbp), %r8
addq $0x5, %r8
addq $0x4, %rdi
jmp 0x26c87c
movb 0x1(%rbp,%r14), %al
incq %rdi
movzbl %al, %ecx
cmpl $0x65, %ecx
jg 0x26c829
cmpl $0x30, %ecx
je 0x26c842
cmpl $0x61, %ecx
je 0x26c84a
cmpl $0x62, %ecx
jne 0x26c85f
movb $0x8, (%r13,%r14)
jmp 0x26c87c
leal -0x6e(%rcx), %edx
cmpl $0x8, %edx
ja 0x26c852
movslq (%rsi,%rdx,4), %rcx
addq %rsi, %rcx
jmpq *%rcx
movb $0xa, (%r13,%r14)
jmp 0x26c87c
movb $0x0, (%r13,%r14)
jmp 0x26c87c
movb $0x7, (%r13,%r14)
jmp 0x26c87c
cmpl $0x66, %ecx
jne 0x26c85f
movb $0xc, (%r13,%r14)
jmp 0x26c87c
movb %al, (%r13,%r14)
jmp 0x26c87c
movb $0xb, (%r13,%r14)
jmp 0x26c87c
movb $0xd, (%r13,%r14)
jmp 0x26c87c
movb $0x9, (%r13,%r14)
addq %r14, %r13
incq %r13
movq %r8, %rbp
cmpq %r8, %r12
jne 0x26c69f
jmp 0x26c892
xorl %edi, %edi
movq 0x8(%rbx), %rsi
leaq -0x1(%rdi), %rax
cmpq %rsi, %rax
jae 0x26c8b0
subq %rdi, %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x120350
movb $0x1, %al
jmp 0x26c8b2
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq