// File: yeonnic[P]solparser/./tokenize.cpp
// Function: DecodeEscape(__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>&, __gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, bool&)
char DecodeEscape(string::const_iterator& it, string::const_iterator end, bool& error)
{
	if(it == end || *it != '\\')
	{
		error = true;
		return 0;
	}
	++it;
	error = false;
	switch(*it)
	{
	case '\\':
		++it;
		return '\\';
	case 't':
		++it;
		return '\t';
	case 'n':
		++it;
		return '\n';
	case 'r':
		++it;
		return '\r';
	case '\'':
		++it;
		return '\'';
	case '"':
		++it;
		return '\"';
	case '0':
		++it;
		return '\0';
	case 'x':
		{
			++it;
			int h = 0;
			for(int i = 0; i < 2; ++i)
			{
				if(!ishex(*it))
				{
					error = true;
					return 0;
				}
				h = h * 16 +  hexToInt(*it);
				++it;
			}
			return h;
		}
	}
	error = true;
	return '\\';
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rsi, -0x10(%rbp)
movq %rdi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x18(%rbp), %rdi
leaq -0x10(%rbp), %rsi
callq 0x32b30
testb $0x1, %al
jne 0x2eb96
movq -0x18(%rbp), %rdi
callq 0x16b00
movsbl (%rax), %eax
cmpl $0x5c, %eax
je 0x2eba6
movq -0x20(%rbp), %rax
movb $0x1, (%rax)
movb $0x0, -0x1(%rbp)
jmp 0x2ed2d
movq -0x18(%rbp), %rdi
callq 0x16b50
movq -0x20(%rbp), %rax
movb $0x0, (%rax)
movq -0x18(%rbp), %rdi
callq 0x16b00
movsbl (%rax), %eax
movl %eax, -0x2c(%rbp)
subl $0x22, %eax
je 0x2ec7f
jmp 0x2ebd0
movl -0x2c(%rbp), %eax
subl $0x27, %eax
je 0x2ec6d
jmp 0x2ebde
movl -0x2c(%rbp), %eax
subl $0x30, %eax
je 0x2ec91
jmp 0x2ebec
movl -0x2c(%rbp), %eax
subl $0x5c, %eax
je 0x2ec25
jmp 0x2ebf6
movl -0x2c(%rbp), %eax
subl $0x6e, %eax
je 0x2ec49
jmp 0x2ec00
movl -0x2c(%rbp), %eax
subl $0x72, %eax
je 0x2ec5b
jmp 0x2ec0a
movl -0x2c(%rbp), %eax
subl $0x74, %eax
je 0x2ec37
jmp 0x2ec14
movl -0x2c(%rbp), %eax
subl $0x78, %eax
je 0x2eca3
jmp 0x2ed22
movq -0x18(%rbp), %rdi
callq 0x16b50
movb $0x5c, -0x1(%rbp)
jmp 0x2ed2d
movq -0x18(%rbp), %rdi
callq 0x16b50
movb $0x9, -0x1(%rbp)
jmp 0x2ed2d
movq -0x18(%rbp), %rdi
callq 0x16b50
movb $0xa, -0x1(%rbp)
jmp 0x2ed2d
movq -0x18(%rbp), %rdi
callq 0x16b50
movb $0xd, -0x1(%rbp)
jmp 0x2ed2d
movq -0x18(%rbp), %rdi
callq 0x16b50
movb $0x27, -0x1(%rbp)
jmp 0x2ed2d
movq -0x18(%rbp), %rdi
callq 0x16b50
movb $0x22, -0x1(%rbp)
jmp 0x2ed2d
movq -0x18(%rbp), %rdi
callq 0x16b50
movb $0x0, -0x1(%rbp)
jmp 0x2ed2d
movq -0x18(%rbp), %rdi
callq 0x16b50
movl $0x0, -0x24(%rbp)
movl $0x0, -0x28(%rbp)
cmpl $0x2, -0x28(%rbp)
jge 0x2ed1a
movq -0x18(%rbp), %rdi
callq 0x16b00
movsbl (%rax), %edi
callq 0x2ea60
testb $0x1, %al
jne 0x2ece2
movq -0x20(%rbp), %rax
movb $0x1, (%rax)
movb $0x0, -0x1(%rbp)
jmp 0x2ed2d
movl -0x24(%rbp), %eax
shll $0x4, %eax
movl %eax, -0x30(%rbp)
movq -0x18(%rbp), %rdi
callq 0x16b00
movsbl (%rax), %edi
callq 0x2ead0
movl %eax, %ecx
movl -0x30(%rbp), %eax
addl %ecx, %eax
movl %eax, -0x24(%rbp)
movq -0x18(%rbp), %rdi
callq 0x16b50
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x2ecba
movl -0x24(%rbp), %eax
movb %al, -0x1(%rbp)
jmp 0x2ed2d
movq -0x20(%rbp), %rax
movb $0x1, (%rax)
movb $0x5c, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)