// File: /workspace/github_c_makefile_star2_O3/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 0x6d86
movb 0x1(%rbx), %al
movzbl %al, %r13d
cmpl $0x65, %r13d
jg 0x6ddb
leal -0x22(%r13), %ecx
cmpl $0x3f, %ecx
ja 0x6e24
movabsq $0x400000020000021, %rsi # imm = 0x400000020000021
btq %rcx, %rsi
jae 0x6e12
leaq 0x2(%rbx), %r15
jmp 0x6dc3
movq %r8, %rbp
movq %rcx, %r13
leaq 0xc(%rsp), %rdi
movl $0x4, %edx
movq %rbx, %rsi
callq 0xde82
movq %rax, %r15
cmpq $-0x1, %rax
jne 0x6dbb
leaq 0xc9f7(%rip), %rsi      # 0x137a5
movq %rbp, %rdi
movq %r13, %rdx
xorl %eax, %eax
callq 0xd55c
addq %rbx, %r15
movl 0xc(%rsp), %r13d
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
leal -0x6e(%r13), %ecx
cmpl $0xa, %ecx
ja 0x6e00
leaq 0xc465(%rip), %rsi      # 0x13250
movslq (%rsi,%rcx,4), %rcx
addq %rsi, %rcx
jmpq *%rcx
leaq 0x2(%rbx), %r15
movl $0xa, %r13d
jmp 0x6dc3
cmpl $0x66, %r13d
jne 0x6e36
leaq 0x2(%rbx), %r15
movl $0xc, %r13d
jmp 0x6dc3
cmpq $0x3f, %rcx
jne 0x6e24
leaq 0x2(%rbx), %r15
movl $0x7, %r13d
jmp 0x6dc3
cmpl $0x62, %r13d
jne 0x6e36
leaq 0x2(%rbx), %r15
movl $0x8, %r13d
jmp 0x6dc3
addl $-0x39, %r13d
cmpl $-0xa, %r13d
jbe 0x6f2d
leaq 0x1(%rbx), %r15
leaq 0x4(%rbx), %rcx
xorl %r13d, %r13d
movl $0x2, %edi
movzbl %al, %eax
leal (%rax,%r13,8), %r13d
addl $-0x30, %r13d
subl $0x1, %edi
jb 0x6f19
movzbl 0x1(%r15), %eax
incq %r15
movl %eax, %esi
addl $-0x39, %esi
cmpl $-0xa, %esi
ja 0x6e54
jmp 0x6f1c
movq %rdx, 0x10(%rsp)
callq 0x3240
movq (%rax), %rbp
movzbl 0x2(%rbx), %eax
testb $0x10, 0x1(%rbp,%rax,2)
je 0x6f4c
leaq 0x2(%rbx), %r15
xorl %r13d, %r13d
movzbl %al, %r12d
cmpb $0x3a, %al
jb 0x6ebc
callq 0x3230
movq (%rax), %rax
movl (%rax,%r12,4), %r12d
addl $-0x57, %r12d
jmp 0x6ec0
addl $-0x30, %r12d
shll $0x4, %r13d
addl %r12d, %r13d
movzbl 0x1(%r15), %eax
incq %r15
testb $0x10, 0x1(%rbp,%rax,2)
jne 0x6ea2
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x6dc3
movb $0x1, (%rax)
jmp 0x6dc3
leaq 0x2(%rbx), %r15
movl $0xb, %r13d
jmp 0x6dc3
leaq 0x2(%rbx), %r15
movl $0xd, %r13d
jmp 0x6dc3
leaq 0x2(%rbx), %r15
movl $0x9, %r13d
jmp 0x6dc3
movq %rcx, %r15
testq %rdx, %rdx
je 0x6dc3
movb $0x1, (%rdx)
jmp 0x6dc3
leaq 0xc864(%rip), %rdi      # 0x13798
leaq 0xc5fa(%rip), %rsi      # 0x13535
leaq 0xc7fa(%rip), %rcx      # 0x1373c
movl $0x1cb, %edx            # imm = 0x1CB
callq 0x30e0
leaq 0xc7dc(%rip), %rdi      # 0x1372f
leaq 0xc5db(%rip), %rsi      # 0x13535
leaq 0xc7db(%rip), %rcx      # 0x1373c
movl $0x1c3, %edx            # imm = 0x1C3
callq 0x30e0