// File: BlinfoldKing[P]lisval/src/lib/parser.cpp
// Function: Token::debugToken[abi:cxx11]()
string Token::debugToken() {
	string res = "";
	switch (this->type) {
		case TokenType::ATOM:
			res += "ATOM";
			break;
		case TokenType::LIST:
			{
				res += "LIST{ ";
				List* l = static_cast<List*>(this);
				for (size_t i = 0; i < l->list.size(); i++) {
					res += l->list[i]->debugToken() + " ";
				}
				res += "}";
				break;
			}
		case TokenType::NUMBER:
			res += "NUMBER";
			break;
		case TokenType::VARIABLE:
			res += "VARIABLE";
			break;
		case TokenType::UNARY_OPERATOR:
			res += "UNARY_OPERATOR";
			break;
		case TokenType::BINARY_OPERATOR:
			res += "BINARY_OPERATOR";
			break;
		case TokenType::BOOLEAN:
			res += "BOOLEAN";
			break;
        case TokenType::ERROR:
            res += "ERROR";
            break;
		default:
			res += "UNKNOWN";
	}

	return res;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq %rdi, -0x88(%rbp)
movq %rdi, %rax
movq %rax, -0x98(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x90(%rbp)
movb $0x0, -0x11(%rbp)
leaq -0x12(%rbp), %rdi
movq %rdi, -0x80(%rbp)
callq 0x34a0
movq -0x88(%rbp), %rdi
movq -0x80(%rbp), %rdx
leaq 0xbce5(%rip), %rsi      # 0x23657
callq 0x33b0
jmp 0x17979
leaq -0x12(%rbp), %rdi
callq 0x3300
movq -0x90(%rbp), %rax
movl (%rax), %eax
movq %rax, -0xa0(%rbp)
subq $0x8, %rax
ja 0x17b8d
movq -0xa0(%rbp), %rax
leaq 0xbb7a(%rip), %rcx      # 0x23524
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
leaq -0x12(%rbp), %rdi
callq 0x3300
jmp 0x17bd6
movq -0x88(%rbp), %rdi
leaq 0xbbd2(%rip), %rsi      # 0x235ad
callq 0x3290
jmp 0x179e2
jmp 0x17ba4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
jmp 0x17bca
movq -0x88(%rbp), %rdi
leaq 0xbbac(%rip), %rsi      # 0x235b2
callq 0x3290
jmp 0x17a0d
movq -0x90(%rbp), %rax
movq %rax, -0x30(%rbp)
movq $0x0, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0x30(%rbp), %rdi
addq $0x8, %rdi
callq 0x11a60
movq %rax, %rcx
movq -0xa8(%rbp), %rax
cmpq %rcx, %rax
jae 0x17ae6
movq -0x30(%rbp), %rdi
addq $0x8, %rdi
movq -0x38(%rbp), %rsi
callq 0x11a80
movq (%rax), %rsi
leaq -0x78(%rbp), %rdi
callq 0x17920
jmp 0x17a6a
leaq 0xb5b8(%rip), %rdx      # 0x23029
leaq -0x58(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x18bf0
jmp 0x17a80
movq -0x88(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x3380
jmp 0x17a92
leaq -0x58(%rbp), %rdi
callq 0x31c0
leaq -0x78(%rbp), %rdi
callq 0x31c0
movq -0x38(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x38(%rbp)
jmp 0x17a20
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
jmp 0x17ad8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
leaq -0x58(%rbp), %rdi
callq 0x31c0
leaq -0x78(%rbp), %rdi
callq 0x31c0
jmp 0x17bca
movq -0x88(%rbp), %rdi
leaq 0xbac5(%rip), %rsi      # 0x235b9
callq 0x3290
jmp 0x17afb
jmp 0x17ba4
movq -0x88(%rbp), %rdi
leaq 0xbaad(%rip), %rsi      # 0x235bb
callq 0x3290
jmp 0x17b15
jmp 0x17ba4
movq -0x88(%rbp), %rdi
leaq 0xba9a(%rip), %rsi      # 0x235c2
callq 0x3290
jmp 0x17b2f
jmp 0x17ba4
movq -0x88(%rbp), %rdi
leaq 0xba8c(%rip), %rsi      # 0x235cb
callq 0x3290
jmp 0x17b46
jmp 0x17ba4
movq -0x88(%rbp), %rdi
leaq 0xba84(%rip), %rsi      # 0x235da
callq 0x3290
jmp 0x17b5d
jmp 0x17ba4
movq -0x88(%rbp), %rdi
leaq 0xba7d(%rip), %rsi      # 0x235ea
callq 0x3290
jmp 0x17b74
jmp 0x17ba4
movq -0x88(%rbp), %rdi
leaq 0xba6e(%rip), %rsi      # 0x235f2
callq 0x3290
jmp 0x17b8b
jmp 0x17ba4
movq -0x88(%rbp), %rdi
leaq 0xba5d(%rip), %rsi      # 0x235f8
callq 0x3290
jmp 0x17ba2
jmp 0x17ba4
movb $0x1, -0x11(%rbp)
testb $0x1, -0x11(%rbp)
jne 0x17bba
movq -0x88(%rbp), %rdi
callq 0x31c0
movq -0x98(%rbp), %rax
addq $0xb0, %rsp
popq %rbp
retq
movq -0x88(%rbp), %rdi
callq 0x31c0
movq -0x20(%rbp), %rdi
callq 0x3490
nop