// File: /workspace/github_c_makefile_star2_O0/lucvoo[P]sparse-dev/tokenize.c
// Function: quote_token
const char *quote_token(const struct token *token)
{
	static char buffer[256];

	switch (token_type(token)) {
	case TOKEN_ERROR:
		return "syntax error";

	case TOKEN_IDENT:
	case TOKEN_ZERO_IDENT:
		return show_ident(token->ident);

	case TOKEN_NUMBER:
		return token->number;

	case TOKEN_SPECIAL:
		return show_special(token->special);

	case TOKEN_CHAR: 
		return quote_char(token->string->data,
			token->string->length - 1, 0, '\'');
	case TOKEN_CHAR_EMBEDDED_0 ... TOKEN_CHAR_EMBEDDED_3:
		return quote_char(token->embedded,
			token_type(token) - TOKEN_CHAR, 0, '\'');
	case TOKEN_WIDE_CHAR: 
		return quote_char(token->string->data,
			token->string->length - 1, 'L', '\'');
	case TOKEN_WIDE_CHAR_EMBEDDED_0 ... TOKEN_WIDE_CHAR_EMBEDDED_3:
		return quote_char(token->embedded,
			token_type(token) - TOKEN_WIDE_CHAR, 'L', '\'');
	case TOKEN_STRING: 
		return quote_char(token->string->data,
			token->string->length - 1, 0, '"');
	case TOKEN_WIDE_STRING: 
		return quote_char(token->string->data,
			token->string->length - 1, 'L', '"');
	default:
		sprintf(buffer, "unhandled token type '%d' ", token_type(token));
		return buffer;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movl (%rax), %eax
andl $0x3f, %eax
addl $-0x2, %eax
movl %eax, %ecx
movq %rcx, -0x18(%rbp)
subl $0x10, %eax
ja 0x4496e
movq -0x18(%rbp), %rax
leaq 0x2564e(%rip), %rcx     # 0x69e30
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x258ee(%rip), %rax     # 0x6a0e0
movq %rax, -0x8(%rbp)
jmp 0x4499b
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0x44150
movq %rax, -0x8(%rbp)
jmp 0x4499b
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x8(%rbp)
jmp 0x4499b
movq -0x10(%rbp), %rax
movl 0x10(%rax), %edi
callq 0x440f0
movq %rax, -0x8(%rbp)
jmp 0x4499b
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
addq $0x4, %rdi
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movl (%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
subl $0x1, %eax
movslq %eax, %rsi
xorl %edx, %edx
movl $0x27, %ecx
callq 0x449b0
movq %rax, -0x8(%rbp)
jmp 0x4499b
movq -0x10(%rbp), %rdi
addq $0x10, %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rax
andq $0x3f, %rax
subl $0x6, %eax
movslq %eax, %rsi
xorl %edx, %edx
movl $0x27, %ecx
callq 0x449b0
movq %rax, -0x8(%rbp)
jmp 0x4499b
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
addq $0x4, %rdi
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movl (%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
subl $0x1, %eax
movslq %eax, %rsi
movl $0x4c, %edx
movl $0x27, %ecx
callq 0x449b0
movq %rax, -0x8(%rbp)
jmp 0x4499b
movq -0x10(%rbp), %rdi
addq $0x10, %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rax
andq $0x3f, %rax
subl $0xb, %eax
movslq %eax, %rsi
movl $0x4c, %edx
movl $0x27, %ecx
callq 0x449b0
movq %rax, -0x8(%rbp)
jmp 0x4499b
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
addq $0x4, %rdi
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movl (%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
subl $0x1, %eax
movslq %eax, %rsi
xorl %edx, %edx
movl $0x22, %ecx
callq 0x449b0
movq %rax, -0x8(%rbp)
jmp 0x4499b
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
addq $0x4, %rdi
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movl (%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
subl $0x1, %eax
movslq %eax, %rsi
movl $0x4c, %edx
movl $0x22, %ecx
callq 0x449b0
movq %rax, -0x8(%rbp)
jmp 0x4499b
movq -0x10(%rbp), %rax
movq (%rax), %rax
andq $0x3f, %rax
movl %eax, %edx
leaq 0x57f2e(%rip), %rdi     # 0x9c8b0
leaq 0x257a6(%rip), %rsi     # 0x6a12f
movb $0x0, %al
callq 0x112c0
leaq 0x57f19(%rip), %rax     # 0x9c8b0
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)