// File: /workspace/github_c_makefile_star2_O2/michaelforney[P]cproc/expr.c
// Function: decodechar
static size_t
decodechar(const char *src, uint_least32_t *chr, bool *hexoct, const char *desc, struct location *loc)
{
	uint_least32_t c;
	size_t n;
	int i;
	const unsigned char *s = (const unsigned char *)src;

	if (*s == '\\') {
		++s;
		switch (*s) {
		case '\'':
		case '"':
		case '?':
		case '\\': c = *s;   ++s; break;
		case 'a':  c = '\a'; ++s; break;
		case 'b':  c = '\b'; ++s; break;
		case 'f':  c = '\f'; ++s; break;
		case 'n':  c = '\n'; ++s; break;
		case 'r':  c = '\r'; ++s; break;
		case 't':  c = '\t'; ++s; break;
		case 'v':  c = '\v'; ++s; break;
		case 'x':
			++s;
			assert(isxdigit(*s));
			c = 0;
			do c = c * 16 + (*s > '9' ? 10 + tolower(*s) - 'a' : *s - '0');
			while (isxdigit(*++s));
			if (hexoct)
				*hexoct = true;
			break;
		default:
			assert(isodigit(*s));
			c = 0;
			i = 0;
			do c = c * 8 + (*s++ - '0');
			while (++i < 3 && isodigit(*s));
			if (hexoct)
				*hexoct = true;
		}
	} else {
		n = utf8dec(&c, s, 4);
		if (n == (size_t)-1)
			error(loc, "%s contains invalid UTF-8", desc);
		s += n;
	}
	*chr = c;
	return s - (const unsigned char *)src;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %rbx
cmpb $0x5c, (%rdi)
jne 0x69ce
movb 0x1(%rbx), %al
movzbl %al, %r13d
leal -0x22(%r13), %ecx
cmpl $0x3f, %ecx
jbe 0x6a0e
leal -0x6e(%r13), %ecx
cmpl $0xa, %ecx
ja 0x6a27
leaq 0xb896(%rip), %rsi      # 0x12250
movslq (%rsi,%rcx,4), %rcx
addq %rsi, %rcx
jmpq *%rcx
leaq 0x2(%rbx), %r15
pushq $0xa
jmp 0x6b22
movq %r8, %rbp
movq %rcx, %r13
leaq 0xc(%rsp), %rdi
pushq $0x4
popq %rdx
movq %rbx, %rsi
callq 0xcdd7
movq %rax, %r15
cmpq $-0x1, %rax
jne 0x6a01
leaq 0xbdb1(%rip), %rsi      # 0x127a5
movq %rbp, %rdi
movq %r13, %rdx
xorl %eax, %eax
callq 0xc536
addq %rbx, %r15
movl 0xc(%rsp), %r13d
jmp 0x6b24
movabsq $0x400000020000021, %rsi # imm = 0x400000020000021
btq %rcx, %rsi
jae 0x6a42
leaq 0x2(%rbx), %r15
jmp 0x6b24
cmpl $0x62, %r13d
je 0x6b1c
cmpl $0x66, %r13d
jne 0x6a57
leaq 0x2(%rbx), %r15
pushq $0xc
jmp 0x6b22
cmpq $0x3f, %rcx
jne 0x69aa
leaq 0x2(%rbx), %r15
pushq $0x7
jmp 0x6b22
addl $-0x39, %r13d
cmpl $-0xa, %r13d
jbe 0x6b49
leaq 0x1(%rbx), %r15
leaq 0x4(%rbx), %rcx
xorl %r13d, %r13d
pushq $0x2
popq %rdi
movzbl %al, %eax
leal (%rax,%r13,8), %r13d
addl $-0x30, %r13d
subl $0x1, %edi
jb 0x6b3c
movzbl 0x1(%r15), %eax
incq %r15
movl %eax, %esi
addl $-0x39, %esi
cmpl $-0xa, %esi
ja 0x6a73
jmp 0x6b3f
leaq 0x2(%rbx), %r15
pushq $0xb
jmp 0x6b22
leaq 0x2(%rbx), %r15
pushq $0xd
jmp 0x6b22
leaq 0x2(%rbx), %r15
pushq $0x9
jmp 0x6b22
movq %rdx, 0x10(%rsp)
callq 0x3240
movq (%rax), %rbp
movzbl 0x2(%rbx), %eax
testb $0x10, 0x1(%rbp,%rax,2)
je 0x6b68
leaq 0x2(%rbx), %r15
xorl %r13d, %r13d
movzbl %al, %r12d
cmpb $0x3a, %al
jb 0x6af3
callq 0x3230
movq (%rax), %rax
movl (%rax,%r12,4), %r12d
addl $-0x57, %r12d
jmp 0x6af7
addl $-0x30, %r12d
shll $0x4, %r13d
addl %r12d, %r13d
movzbl 0x1(%r15), %eax
incq %r15
testb $0x10, 0x1(%rbp,%rax,2)
jne 0x6ad9
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x6b24
movb $0x1, (%rax)
jmp 0x6b24
leaq 0x2(%rbx), %r15
pushq $0x8
popq %r13
movl %r13d, (%r14)
subq %rbx, %r15
movq %r15, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rcx, %r15
testq %rdx, %rdx
je 0x6b24
movb $0x1, (%rdx)
jmp 0x6b24
leaq 0xbc48(%rip), %rdi      # 0x12798
leaq 0xb9de(%rip), %rsi      # 0x12535
leaq 0xbbde(%rip), %rcx      # 0x1273c
movl $0x1cb, %edx            # imm = 0x1CB
callq 0x30e0
leaq 0xbbc0(%rip), %rdi      # 0x1272f
leaq 0xb9bf(%rip), %rsi      # 0x12535
leaq 0xbbbf(%rip), %rcx      # 0x1273c
movl $0x1c3, %edx            # imm = 0x1C3
callq 0x30e0