// File: /workspace/github_cpp_makefile_star2_O3/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 0x24ea5e
movq (%rbx), %rbp
addq %rbp, %r12
xorl %edi, %edi
leaq 0x13bc2f(%rip), %rsi    # 0x38a498
movq %rbp, %r13
xorl %r14d, %r14d
movb (%rbp,%r14), %al
cmpb $0x5c, %al
je 0x24e891
movb %al, (%r13,%r14)
leaq (%r14,%rbp), %rax
incq %rax
incq %r14
cmpq %r12, %rax
jne 0x24e86f
jmp 0x24ea60
leaq (%r14,%rbp), %rax
incq %rax
cmpq %r12, %rax
je 0x24ea7e
leaq (%r14,%rbp), %r8
addq $0x2, %r8
cmpq %r12, %r8
je 0x24e9d0
leaq (%r14,%rbp), %r15
addq $0x3, %r15
cmpq %r12, %r15
je 0x24e9d0
leaq (%r14,%rbp), %rcx
addq $0x4, %rcx
cmpq %r12, %rcx
je 0x24e9d0
movb 0x1(%rbp,%r14), %al
cmpb $0x30, %al
jne 0x24e9d5
movq %rdi, 0x8(%rsp)
movsbl (%r8), %edi
movq %r8, (%rsp)
movq %rcx, 0x10(%rsp)
callq 0x11e130
movq 0x10(%rsp), %r9
movq (%rsp), %r8
movabsq $0x3f0000003f, %rdx     # imm = 0x3F0000003F
leaq 0x13bb86(%rip), %rsi    # 0x38a498
movq 0x8(%rsp), %rdi
cmpl $0x58, %eax
jne 0x24e9d0
movb (%r15), %al
leal -0x30(%rax), %r15d
cmpb $0xa, %r15b
jb 0x24e946
movzbl %al, %ecx
addl $-0x41, %ecx
cmpl $0x25, %ecx
ja 0x24e9d0
btq %rcx, %rdx
jae 0x24e9d0
movb (%r9), %r10b
leal -0x30(%r10), %r9d
cmpb $0xa, %r9b
jb 0x24e965
movzbl %r10b, %ecx
addl $-0x41, %ecx
cmpl $0x25, %ecx
ja 0x24e9d0
btq %rcx, %rdx
jae 0x24e9d0
cmpb $0xa, %r15b
jb 0x24e994
movzbl %al, %edi
movl %r9d, (%rsp)
movq %r10, %r15
callq 0x11e130
movq %r15, %r10
movl (%rsp), %r9d
leaq 0x13bb10(%rip), %rsi    # 0x38a498
movq 0x8(%rsp), %rdi
movl %eax, %r15d
addb $-0x37, %r15b
cmpb $0xa, %r9b
jb 0x24e9b6
movzbl %r10b, %edi
callq 0x11e130
leaq 0x13baee(%rip), %rsi    # 0x38a498
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 0x24ea4a
movb 0x1(%rbp,%r14), %al
incq %rdi
movzbl %al, %ecx
cmpl $0x65, %ecx
jg 0x24e9f7
cmpl $0x30, %ecx
je 0x24ea10
cmpl $0x61, %ecx
je 0x24ea18
cmpl $0x62, %ecx
jne 0x24ea2d
movb $0x8, (%r13,%r14)
jmp 0x24ea4a
leal -0x6e(%rcx), %edx
cmpl $0x8, %edx
ja 0x24ea20
movslq (%rsi,%rdx,4), %rcx
addq %rsi, %rcx
jmpq *%rcx
movb $0xa, (%r13,%r14)
jmp 0x24ea4a
movb $0x0, (%r13,%r14)
jmp 0x24ea4a
movb $0x7, (%r13,%r14)
jmp 0x24ea4a
cmpl $0x66, %ecx
jne 0x24ea2d
movb $0xc, (%r13,%r14)
jmp 0x24ea4a
movb %al, (%r13,%r14)
jmp 0x24ea4a
movb $0xb, (%r13,%r14)
jmp 0x24ea4a
movb $0xd, (%r13,%r14)
jmp 0x24ea4a
movb $0x9, (%r13,%r14)
addq %r14, %r13
incq %r13
movq %r8, %rbp
cmpq %r8, %r12
jne 0x24e86c
jmp 0x24ea60
xorl %edi, %edi
movq 0x8(%rbx), %rsi
leaq -0x1(%rdi), %rax
cmpq %rsi, %rax
jae 0x24ea7e
subq %rdi, %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x11e350
movb $0x1, %al
jmp 0x24ea80
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq