// File: /workspace/github_c_makefile_star2_O1/dalnefre[P]kernel_abe/kernel.c
// Function: symbol_type
static
BEH_DECL(symbol_type)
{
	CONS* name = MINE;
	CONS* msg = WHAT;
	CONS* cust;
	CONS* req;

	DBUG_ENTER("symbol_type");
	ENSURE(is_pr(msg));
	cust = hd(msg);
	ENSURE(actorp(cust));
	req = tl(msg);

	DBUG_PRINT("name", ("%s", cons_to_str(name)));
	DBUG_PRINT("cust", ("%s", cons_to_str(cust)));
	DBUG_PRINT("req", ("%s", cons_to_str(req)));
	if (is_pr(req)
	&& (hd(req) == ATOM("type_eq"))) {
		SEND(cust, ((tl(req) == MK_REF(symbol_type)) ? a_true : a_false));
	} else if (is_pr(req)
	&& (hd(req) == ATOM("eval"))) {
		CONS* env = tl(req);

		SEND(env, pr(cust, pr(ATOM("lookup"), name)));
	} else if (is_pr(req) && is_pr(tl(req))
	&& (hd(req) == ATOM("match"))) {
		CONS* value = hd(tl(req));
		CONS* env = tl(tl(req));

		SEND(env, pr(cust, pr(ATOM("bind"), pr(name, value))));
	} else if (req == ATOM("write")) {
		SINK* sink = current_sink;
		char* s = printable(name);
		SEND(cust, (sink->put_cstr)(sink, s));
		FREE(s);
	} else {
		object_type(CFG);  /* DELEGATE BEHAVIOR */
	}
	DBUG_RETURN;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x30(%rdi), %rdi
callq 0x19ba6
movq %rax, %rdi
callq 0x11d11
movq %rax, %r15
movq 0x30(%rbx), %rdi
callq 0x19c45
movq %rax, %r12
leaq 0x13b51(%rip), %rax     # 0x1c7c9
movq %rsp, %rdi
movq %rax, (%rdi)
leaq 0x1a6ab(%rip), %r13     # 0x23330
movq (%r13), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x59d, 0xc(%rdi)       # imm = 0x59D
leaq 0x136a9(%rip), %rcx     # 0x1c34a
movq %rcx, 0x10(%rdi)
leaq 0x1a4a4(%rip), %rcx     # 0x23150
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x1b912
cmpq 0x1a300(%rip), %r12     # 0x22fc0
je 0x8e8b
testq %r12, %r12
je 0x8e8b
movl %r12d, %eax
andl $0x3, %eax
jne 0x8e8b
movq %r12, %rdi
callq 0x19ba6
movq %rax, %r14
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x8eef
movq %r12, %rdi
callq 0x19c45
movq %rax, %r12
leaq 0x1ac2c(%rip), %rbp     # 0x23930
cmpl $0x0, (%rbp)
je 0x8d4e
movq (%r13), %rax
movq 0x50(%rax), %rax
leaq 0x13aab(%rip), %rdi     # 0x1c7c4
movq %rdi, 0x10(%rax)
callq 0x1b084
testl %eax, %eax
je 0x8d4e
movq (%r13), %rax
movq 0x50(%rax), %rax
movl $0x5a3, 0xc(%rax)       # imm = 0x5A3
movq %r15, %rdi
callq 0x13b9c
leaq 0x14810(%rip), %rdi     # 0x1d554
movq %rax, %rsi
xorl %eax, %eax
callq 0x1b983
cmpl $0x0, (%rbp)
je 0x8d98
movq (%r13), %rax
movq 0x50(%rax), %rax
leaq 0x137d3(%rip), %rdi     # 0x1c536
movq %rdi, 0x10(%rax)
callq 0x1b084
testl %eax, %eax
je 0x8d98
movq (%r13), %rax
movq 0x50(%rax), %rax
movl $0x5a4, 0xc(%rax)       # imm = 0x5A4
movq %r14, %rdi
callq 0x13b9c
leaq 0x147c6(%rip), %rdi     # 0x1d554
movq %rax, %rsi
xorl %eax, %eax
callq 0x1b983
cmpl $0x0, (%rbp)
je 0x8de2
movq (%r13), %rax
movq 0x50(%rax), %rax
leaq 0x1378e(%rip), %rdi     # 0x1c53b
movq %rdi, 0x10(%rax)
callq 0x1b084
testl %eax, %eax
je 0x8de2
movq (%r13), %rax
movq 0x50(%rax), %rax
movl $0x5a5, 0xc(%rax)       # imm = 0x5A5
movq %r12, %rdi
callq 0x13b9c
leaq 0x1477c(%rip), %rdi     # 0x1d554
movq %rax, %rsi
xorl %eax, %eax
callq 0x1b983
testq %r12, %r12
sete %al
testb $0x3, %r12b
setne %bpl
cmpq 0x1a1c9(%rip), %r12     # 0x22fc0
sete %cl
orb %al, %bpl
orb %cl, %bpl
jne 0x8e69
movq %r12, %rdi
callq 0x19ba6
movq %rax, %r13
leaq 0x1377d(%rip), %rdi     # 0x1c591
callq 0x1707c
cmpq %rax, %r13
je 0x8f88
testb %bpl, %bpl
jne 0x8e69
movq %r12, %rdi
callq 0x19ba6
movq %rax, %r13
leaq 0x13760(%rip), %rdi     # 0x1c599
callq 0x1707c
cmpq %rax, %r13
je 0x8fbf
testb %bpl, %bpl
jne 0x8e69
movq %r12, %rdi
callq 0x19c45
testq %rax, %rax
je 0x8e69
movq %r12, %rdi
callq 0x19c45
testb $0x3, %al
je 0x9019
leaq 0x13760(%rip), %rdi     # 0x1c5d0
callq 0x1707c
cmpq %rax, %r12
je 0x8f53
movq %rbx, %rdi
callq 0x8681
jmp 0x8ffa
leaq -0x329d(%rip), %rsi     # 0x5bf5
leaq 0x1a407(%rip), %rdx     # 0x232a0
movq %rbx, %rdi
callq 0x1283a
movq %rax, %r14
leaq 0x13688(%rip), %rdi     # 0x1c533
callq 0x1707c
movq %rax, %r15
leaq 0x13162(%rip), %rdi     # 0x1c01c
callq 0x1707c
movl $0x167b, %esi           # imm = 0x167B
movq %rax, %rdi
callq 0x19b84
movq %r15, %rdi
movq %rax, %rsi
callq 0x19b84
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x12917
movl $0x59e, %eax            # imm = 0x59E
jmp 0x8fff
leaq -0x3301(%rip), %rsi     # 0x5bf5
leaq 0x1a3a3(%rip), %rdx     # 0x232a0
movq %rbx, %rdi
callq 0x1283a
movq %rax, %r14
leaq 0x13624(%rip), %rdi     # 0x1c533
callq 0x1707c
movq %rax, %r15
leaq 0x130fe(%rip), %rdi     # 0x1c01c
callq 0x1707c
movl $0x1683, %esi           # imm = 0x1683
movq %rax, %rdi
callq 0x19b84
movq %r15, %rdi
movq %rax, %rsi
callq 0x19b84
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x12917
movl $0x5a0, %eax            # imm = 0x5A0
jmp 0x8fff
movq 0x1a45e(%rip), %r12     # 0x233b8
movq %r15, %rdi
callq 0x863d
movq %rax, %r15
movq %r12, %rdi
movq %rax, %rsi
callq *0x10(%r12)
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x12917
movq %r15, %rdi
callq 0x2030
jmp 0x8ffa
movq %r12, %rdi
callq 0x19c45
leaq -0x357(%rip), %rcx      # 0x8c40
leaq 0x3(,%rcx,4), %rcx
cmpq %rcx, %rax
leaq 0x1a3df(%rip), %rax     # 0x23388
leaq 0x1a3d0(%rip), %rcx     # 0x23380
cmoveq %rax, %rcx
movq (%rcx), %rdx
movq %rbx, %rdi
movq %r14, %rsi
jmp 0x8ff5
movq %r12, %rdi
callq 0x19c45
movq %rax, %r12
leaq 0x13804(%rip), %rdi     # 0x1c7d5
callq 0x1707c
movq %rax, %rdi
movq %r15, %rsi
callq 0x19b84
movq %r14, %rdi
movq %rax, %rsi
callq 0x19b84
movq %rbx, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x12917
movl $0x5bc, %eax            # imm = 0x5BC
movq %rsp, %rdi
movl %eax, 0xc(%rdi)
callq 0x1ba97
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r12, %rdi
callq 0x19c45
cmpq 0x19f98(%rip), %rax     # 0x22fc0
je 0x8e69
movq %r12, %rdi
callq 0x19c45
andl $0x3, %eax
cmpl $0x1, %eax
je 0x8e69
movq %r12, %rdi
callq 0x19ba6
movq %rax, %r13
leaq 0x13560(%rip), %rdi     # 0x1c5b4
callq 0x1707c
cmpq %rax, %r13
jne 0x8e69
movq %r12, %rdi
callq 0x19c45
movq %rax, %rdi
callq 0x19ba6
movq %rax, %r13
movq %r12, %rdi
callq 0x19c45
movq %rax, %rdi
callq 0x19c45
movq %rax, %r12
leaq 0x1374d(%rip), %rdi     # 0x1c7dc
callq 0x1707c
movq %rax, %rbp
movq %r15, %rdi
movq %r13, %rsi
callq 0x19b84
movq %rbp, %rdi
movq %rax, %rsi
jmp 0x8fdc