// File: /workspace/github_cpp_makefile_star2_O1/BlinfoldKing[P]lisval/src/lib/parser.cpp
// Function: Token::debug[abi:cxx11]()
string Token::debug() {
	string res = "";
	switch (this->type) {
		case TokenType::ATOM:
		{
			Atom* a = static_cast<Atom*>(this);
			res += a->str;
			break;
		}
		case TokenType::LIST:
			{
				res += "(";
				List* l = static_cast<List*>(this);
				for (size_t i = 0; i < l->list.size(); i++) {
					res += l->list[i]->debug();
					if (i < l->list.size() - 1) res += ' ';
				}
				res += ")";
				break;
			}
		case TokenType::NUMBER:
			{
				Number* a = static_cast<Number*>(this);
				res += to_string(a->value);
				break;
			}
		case TokenType::VARIABLE:
		{
			Variable* a = static_cast<Variable*>(this);
			res += a->str;
			break;
		}
		case TokenType::UNARY_OPERATOR:
		{
			UnaryOperator* a = static_cast<UnaryOperator*>(this);
			res += unaryOperatorToString(a->operator_type);
			break;
		}
		case TokenType::BINARY_OPERATOR:
		{
			BinaryOperator* a = static_cast<BinaryOperator*>(this);
			res += binaryOperatorToString(a->operator_type);
			break;
		}
		case TokenType::BOOLEAN:
		{
			Boolean* a = static_cast<Boolean*>(this);
			res += boolToString(a->value);
			break;
		}
        case TokenType::ERROR:
        {
			Error* a = static_cast<Error*>(this);
		    res += "(:error \""+a->message+"\")";
            break;
        }
		default:
			res += "UNKNOWN";
	}

	return res;

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %r12
movq %r12, (%rdi)
leaq 0x35d3(%rip), %rdx      # 0xf5e0
movq %rdx, %rsi
callq 0x3ba8
movl (%r14), %eax
cmpq $0x8, %rax
ja 0xc043
leaq 0x34bf(%rip), %rcx      # 0xf4e4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdx
movq %rbx, %rdi
callq 0x30c0
jmp 0xc211
leaq 0x3561(%rip), %rsi      # 0xf5ab
movq %rbx, %rdi
callq 0x3330
jmp 0xc211
movl 0x4(%r14), %esi
leaq -0x50(%rbp), %rdi
callq 0xa927
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq %rbx, %rdi
callq 0x30c0
jmp 0xc1f8
leaq 0x3533(%rip), %rsi      # 0xf5b3
movq %rbx, %rdi
callq 0x3330
movq %r12, -0x30(%rbp)
movq 0x8(%r14), %rax
cmpq %rax, 0x10(%r14)
je 0xc10a
leaq -0x40(%rbp), %r13
xorl %r12d, %r12d
leaq -0x50(%rbp), %r15
movq (%rax,%r12,8), %rsi
movq %r15, %rdi
callq 0xbfe8
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq %rbx, %rdi
callq 0x30c0
movq -0x50(%rbp), %rdi
cmpq %r13, %rdi
je 0xc0d2
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x31c0
movq 0x10(%r14), %rax
subq 0x8(%r14), %rax
sarq $0x3, %rax
decq %rax
cmpq %rax, %r12
jae 0xc0f3
movq %rbx, %rdi
movl $0x20, %esi
callq 0x3180
incq %r12
movq 0x8(%r14), %rax
movq 0x10(%r14), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %rcx, %r12
jb 0xc0a1
leaq 0x34af(%rip), %rsi      # 0xf5c0
movq %rbx, %rdi
callq 0x3330
jmp 0xc211
movzbl 0x4(%r14), %esi
leaq -0x50(%rbp), %rdi
callq 0xb092
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq %rbx, %rdi
callq 0x30c0
jmp 0xc1f8
addq $0x8, %r14
leaq 0x3469(%rip), %rsi      # 0xf5b5
leaq -0x70(%rbp), %rdi
movq %r14, %rdx
callq 0xc84b
leaq 0x3460(%rip), %rsi      # 0xf5bf
leaq -0x70(%rbp), %rdi
callq 0x3330
leaq -0x40(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xc223
movq %rdx, -0x50(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x40(%rbp)
jmp 0xc22a
cvtss2sd 0x4(%r14), %xmm0
movq 0x8e18(%rip), %rsi      # 0x14fb8
leaq 0x3420(%rip), %rcx      # 0xf5c7
leaq -0x50(%rbp), %rdi
movl $0x3a, %edx
movb $0x1, %al
callq 0xcc32
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq %rbx, %rdi
callq 0x30c0
jmp 0xc1f8
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdx
movq %rbx, %rdi
callq 0x30c0
jmp 0xc211
movl 0x4(%r14), %esi
leaq -0x50(%rbp), %rdi
callq 0xa631
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq %rbx, %rdi
callq 0x30c0
leaq -0x40(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc211
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x31c0
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, -0x48(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq %rbx, %rdi
callq 0x30c0
movq -0x50(%rbp), %rdi
cmpq %r15, %rdi
je 0xc266
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x31c0
leaq -0x60(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc211
movq -0x60(%rbp), %rsi
jmp 0xc209
jmp 0xc2e5
movq %r12, -0x30(%rbp)
movq %rax, %r14
movq -0x50(%rbp), %rdi
cmpq %r15, %rdi
je 0xc2a4
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x31c0
jmp 0xc2a4
jmp 0xc2b9
jmp 0xc2b9
movq %r12, -0x30(%rbp)
movq %rax, %r14
leaq -0x60(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc302
movq -0x60(%rbp), %rsi
jmp 0xc2fa
jmp 0xc2b9
movq %r12, -0x30(%rbp)
movq %rax, %r14
leaq -0x40(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0xc2f6
jmp 0xc302
jmp 0xc2dd
jmp 0xc2dd
jmp 0xc2dd
jmp 0xc2dd
jmp 0xc2dd
jmp 0xc2dd
jmp 0xc2dd
movq %r12, -0x30(%rbp)
jmp 0xc2e5
jmp 0xc2e5
movq %rax, %r14
jmp 0xc302
movq %rax, %r14
movq -0x50(%rbp), %rdi
cmpq %r13, %rdi
je 0xc302
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x31c0
movq (%rbx), %rdi
cmpq -0x30(%rbp), %rdi
je 0xc31a
movq -0x30(%rbp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x31c0
movq %r14, %rdi
callq 0x32e0