// File: /workspace/github_c_makefile_star2_O1/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 0x6edd
movzbl 0x1(%rbx), %eax
cmpl $0x65, %eax
jg 0x6f1a
leal -0x22(%rax), %ecx
cmpl $0x3f, %ecx
ja 0x6f64
movabsq $0x400000020000021, %rsi # imm = 0x400000020000021
btq %rcx, %rsi
jae 0x6f51
movl %eax, 0xc(%rsp)
jmp 0x7062
movq %r8, %rbp
movq %rcx, %r13
leaq 0xc(%rsp), %rdi
movl $0x4, %edx
movq %rbx, %rsi
callq 0xde7e
movq %rax, %r12
cmpq $-0x1, %rax
jne 0x6f12
leaq 0xc840(%rip), %rsi      # 0x13745
movq %rbp, %rdi
movq %r13, %rdx
xorl %eax, %eax
callq 0xd56a
addq %rbx, %r12
jmp 0x7066
leal -0x6e(%rax), %ecx
cmpl $0xa, %ecx
ja 0x6f3f
leaq 0xc2c7(%rip), %rsi      # 0x131f0
movslq (%rsi,%rcx,4), %rcx
addq %rsi, %rcx
jmpq *%rcx
movl $0xa, 0xc(%rsp)
jmp 0x7062
cmpl $0x66, %eax
jne 0x6f76
movl $0xc, 0xc(%rsp)
jmp 0x7062
cmpq $0x3f, %rcx
jne 0x6f64
movl $0x7, 0xc(%rsp)
jmp 0x7062
cmpl $0x62, %eax
jne 0x6f76
movl $0x8, 0xc(%rsp)
jmp 0x7062
addl $-0x39, %eax
cmpl $-0xa, %eax
jbe 0x7082
leaq 0x1(%rbx), %rax
movl $0x0, 0xc(%rsp)
leaq 0x4(%rbx), %r12
xorl %edi, %edi
xorl %ecx, %ecx
movzbl (%rax,%rdi), %esi
leal (%rsi,%rcx,8), %ecx
addl $-0x30, %ecx
cmpl $0x2, %edi
je 0x6fbb
movzbl 0x1(%rax,%rdi), %esi
addl $-0x39, %esi
incq %rdi
cmpl $-0xa, %esi
ja 0x6f96
addq %rdi, %rax
movq %rax, %r12
movl %ecx, 0xc(%rsp)
testq %rdx, %rdx
je 0x7066
movb $0x1, (%rdx)
jmp 0x7066
movq %rdx, 0x10(%rsp)
callq 0x3240
movq (%rax), %r13
movzbl 0x2(%rbx), %eax
testb $0x10, 0x1(%r13,%rax,2)
je 0x70a1
leaq 0x2(%rbx), %r12
movl $0x0, 0xc(%rsp)
xorl %ebp, %ebp
movzbl (%r12), %r15d
cmpq $0x3a, %r15
jb 0x7018
callq 0x3230
movq (%rax), %rax
movl (%rax,%r15,4), %r15d
addl $-0x57, %r15d
jmp 0x701c
addl $-0x30, %r15d
shll $0x4, %ebp
addl %r15d, %ebp
movl %ebp, 0xc(%rsp)
movzbl 0x1(%r12), %eax
incq %r12
testb $0x10, 0x1(%r13,%rax,2)
jne 0x6ffb
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x7066
movb $0x1, (%rax)
jmp 0x7066
movl $0xb, 0xc(%rsp)
jmp 0x7062
movl $0xd, 0xc(%rsp)
jmp 0x7062
movl $0x9, 0xc(%rsp)
leaq 0x2(%rbx), %r12
movl 0xc(%rsp), %eax
movl %eax, (%r14)
subq %rbx, %r12
movq %r12, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xc6af(%rip), %rdi      # 0x13738
leaq 0xc445(%rip), %rsi      # 0x134d5
leaq 0xc645(%rip), %rcx      # 0x136dc
movl $0x1cb, %edx            # imm = 0x1CB
callq 0x30e0
leaq 0xc627(%rip), %rdi      # 0x136cf
leaq 0xc426(%rip), %rsi      # 0x134d5
leaq 0xc626(%rip), %rcx      # 0x136dc
movl $0x1c3, %edx            # imm = 0x1C3
callq 0x30e0