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

	if (!token)
		return "<no token>";
	switch (token_type(token)) {
	case TOKEN_ERROR:
		return "syntax error";

	case TOKEN_EOF:
		return "end-of-input";

	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 show_char(token->string->data,
			token->string->length - 1, 0, '\'');
	case TOKEN_CHAR_EMBEDDED_0 ... TOKEN_CHAR_EMBEDDED_3:
		return show_char(token->embedded,
			token_type(token) - TOKEN_CHAR, 0, '\'');
	case TOKEN_WIDE_CHAR: 
		return show_char(token->string->data,
			token->string->length - 1, 'L', '\'');
	case TOKEN_WIDE_CHAR_EMBEDDED_0 ... TOKEN_WIDE_CHAR_EMBEDDED_3:
		return show_char(token->embedded,
			token_type(token) - TOKEN_WIDE_CHAR, 'L', '\'');
	case TOKEN_STRING: 
		return show_char(token->string->data,
			token->string->length - 1, 0, '"');
	case TOKEN_WIDE_STRING: 
		return show_char(token->string->data,
			token->string->length - 1, 'L', '"');

	case TOKEN_STREAMBEGIN:
		sprintf(buffer, "<beginning of '%s'>", stream_name(token->pos.stream));
		return buffer;

	case TOKEN_STREAMEND:
		sprintf(buffer, "<end of '%s'>", stream_name(token->pos.stream));
		return buffer;

	case TOKEN_UNTAINT:
		sprintf(buffer, "<untaint>");
		return buffer;

	case TOKEN_ARG_COUNT:
		sprintf(buffer, "<argcnt>");
		return buffer;

	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)
cmpq $0x0, -0x10(%rbp)
jne 0x44443
leaq 0x25c9b(%rip), %rax     # 0x6a0d5
movq %rax, -0x8(%rbp)
jmp 0x446f5
movq -0x10(%rbp), %rax
movq (%rax), %rax
andl $0x3f, %eax
movq %rax, -0x18(%rbp)
subl $0x1b, %eax
ja 0x446c8
movq -0x18(%rbp), %rax
leaq 0x2595b(%rip), %rcx     # 0x69dc0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x25c6b(%rip), %rax     # 0x6a0e0
movq %rax, -0x8(%rbp)
jmp 0x446f5
leaq 0x25c68(%rip), %rax     # 0x6a0ed
movq %rax, -0x8(%rbp)
jmp 0x446f5
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0x44150
movq %rax, -0x8(%rbp)
jmp 0x446f5
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x8(%rbp)
jmp 0x446f5
movq -0x10(%rbp), %rax
movl 0x10(%rax), %edi
callq 0x440f0
movq %rax, -0x8(%rbp)
jmp 0x446f5
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 0x44700
movq %rax, -0x8(%rbp)
jmp 0x446f5
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 0x44700
movq %rax, -0x8(%rbp)
jmp 0x446f5
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 0x44700
movq %rax, -0x8(%rbp)
jmp 0x446f5
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 0x44700
movq %rax, -0x8(%rbp)
jmp 0x446f5
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 0x44700
movq %rax, -0x8(%rbp)
jmp 0x446f5
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 0x44700
movq %rax, -0x8(%rbp)
jmp 0x446f5
movq -0x10(%rbp), %rax
movq (%rax), %rax
shrq $0x6, %rax
andq $0x3fff, %rax           # imm = 0x3FFF
movl %eax, %edi
callq 0x44030
movq %rax, %rdx
leaq 0x58187(%rip), %rdi     # 0x9c7b0
leaq 0x25aca(%rip), %rsi     # 0x6a0fa
movb $0x0, %al
callq 0x112c0
leaq 0x58172(%rip), %rax     # 0x9c7b0
movq %rax, -0x8(%rbp)
jmp 0x446f5
movq -0x10(%rbp), %rax
movq (%rax), %rax
shrq $0x6, %rax
andq $0x3fff, %rax           # imm = 0x3FFF
movl %eax, %edi
callq 0x44030
movq %rax, %rdx
leaq 0x58147(%rip), %rdi     # 0x9c7b0
leaq 0x25a9e(%rip), %rsi     # 0x6a10e
movb $0x0, %al
callq 0x112c0
leaq 0x58132(%rip), %rax     # 0x9c7b0
movq %rax, -0x8(%rbp)
jmp 0x446f5
leaq 0x58125(%rip), %rdi     # 0x9c7b0
leaq 0x25a8a(%rip), %rsi     # 0x6a11c
movb $0x0, %al
callq 0x112c0
leaq 0x58110(%rip), %rax     # 0x9c7b0
movq %rax, -0x8(%rbp)
jmp 0x446f5
leaq 0x58103(%rip), %rdi     # 0x9c7b0
leaq 0x25a72(%rip), %rsi     # 0x6a126
movb $0x0, %al
callq 0x112c0
leaq 0x580ee(%rip), %rax     # 0x9c7b0
movq %rax, -0x8(%rbp)
jmp 0x446f5
movq -0x10(%rbp), %rax
movq (%rax), %rax
andq $0x3f, %rax
movl %eax, %edx
leaq 0x580d4(%rip), %rdi     # 0x9c7b0
leaq 0x25a4c(%rip), %rsi     # 0x6a12f
movb $0x0, %al
callq 0x112c0
leaq 0x580bf(%rip), %rax     # 0x9c7b0
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nop