// File: /workspace/github_c_makefile_star2_O1/dalnefre[P]kernel_abe/kernel.c
// Function: bool_type
static
BEH_DECL(bool_type)
{
	CONS* value = MINE;
	CONS* msg = WHAT;
	CONS* cust;
	CONS* req;

	DBUG_ENTER("bool_type");
	ENSURE(is_pr(msg));
	cust = hd(msg);
	ENSURE(actorp(cust));
	req = tl(msg);

	DBUG_PRINT("value", ("%s", cons_to_str(value)));
	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(bool_type)) ? a_true : a_false));
	} else if (is_pr(req) && is_pr(tl(req)) && is_pr(tl(tl(req)))
	&& (hd(req) == ATOM("if"))) {
		CONS* cnsq = hd(tl(req));
		CONS* altn = hd(tl(tl(req)));
		CONS* env = tl(tl(tl(req)));

		SEND((value ? cnsq : altn), pr(cust, pr(ATOM("eval"), env)));
	} else if (req == ATOM("write")) {
		SINK* sink = current_sink;
		SEND(cust, (sink->put_cstr)(sink, (value ? "#t" : "#f")));
	} 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 0x131bf(%rip), %rax     # 0x1c944
movq %rsp, %rdi
movq %rax, (%rdi)
leaq 0x19b9e(%rip), %r13     # 0x23330
movq (%r13), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x361, 0xc(%rdi)       # imm = 0x361
leaq 0x12b9c(%rip), %rcx     # 0x1c34a
movq %rcx, 0x10(%rdi)
leaq 0x19997(%rip), %rcx     # 0x23150
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x1b912
cmpq 0x197f3(%rip), %r12     # 0x22fc0
je 0x9973
testq %r12, %r12
je 0x9973
movl %r12d, %eax
andl $0x3, %eax
jne 0x9973
movq %r12, %rdi
callq 0x19ba6
movq %rax, %r14
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x99d7
movq %r12, %rdi
callq 0x19c45
movq %rax, %r12
leaq 0x1a11f(%rip), %rbp     # 0x23930
cmpl $0x0, (%rbp)
je 0x985b
movq (%r13), %rax
movq 0x50(%rax), %rax
leaq 0x148a1(%rip), %rdi     # 0x1e0c7
movq %rdi, 0x10(%rax)
callq 0x1b084
testl %eax, %eax
je 0x985b
movq (%r13), %rax
movq 0x50(%rax), %rax
movl $0x367, 0xc(%rax)       # imm = 0x367
movq %r15, %rdi
callq 0x13b9c
leaq 0x13d03(%rip), %rdi     # 0x1d554
movq %rax, %rsi
xorl %eax, %eax
callq 0x1b983
cmpl $0x0, (%rbp)
je 0x98a5
movq (%r13), %rax
movq 0x50(%rax), %rax
leaq 0x12cc6(%rip), %rdi     # 0x1c536
movq %rdi, 0x10(%rax)
callq 0x1b084
testl %eax, %eax
je 0x98a5
movq (%r13), %rax
movq 0x50(%rax), %rax
movl $0x368, 0xc(%rax)       # imm = 0x368
movq %r14, %rdi
callq 0x13b9c
leaq 0x13cb9(%rip), %rdi     # 0x1d554
movq %rax, %rsi
xorl %eax, %eax
callq 0x1b983
cmpl $0x0, (%rbp)
je 0x98ef
movq (%r13), %rax
movq 0x50(%rax), %rax
leaq 0x12c81(%rip), %rdi     # 0x1c53b
movq %rdi, 0x10(%rax)
callq 0x1b084
testl %eax, %eax
je 0x98ef
movq (%r13), %rax
movq 0x50(%rax), %rax
movl $0x369, 0xc(%rax)       # imm = 0x369
movq %r12, %rdi
callq 0x13b9c
leaq 0x13c6f(%rip), %rdi     # 0x1d554
movq %rax, %rsi
xorl %eax, %eax
callq 0x1b983
testq %r12, %r12
sete %al
testb $0x3, %r12b
setne %bpl
cmpq 0x196bc(%rip), %r12     # 0x22fc0
sete %cl
orb %al, %bpl
orb %cl, %bpl
jne 0x9951
movq %r12, %rdi
callq 0x19ba6
movq %rax, %r13
leaq 0x12c70(%rip), %rdi     # 0x1c591
callq 0x1707c
cmpq %rax, %r13
je 0x9a62
testb %bpl, %bpl
jne 0x9951
movq %r12, %rdi
callq 0x19c45
testq %rax, %rax
je 0x9951
movq %r12, %rdi
callq 0x19c45
testb $0x3, %al
je 0x9abb
leaq 0x12c78(%rip), %rdi     # 0x1c5d0
callq 0x1707c
cmpq %rax, %r12
je 0x9a38
movq %rbx, %rdi
callq 0x8681
jmp 0x9a9c
leaq -0x3d85(%rip), %rsi     # 0x5bf5
leaq 0x1991f(%rip), %rdx     # 0x232a0
movq %rbx, %rdi
callq 0x1283a
movq %rax, %r14
leaq 0x12ba0(%rip), %rdi     # 0x1c533
callq 0x1707c
movq %rax, %r15
leaq 0x1267a(%rip), %rdi     # 0x1c01c
callq 0x1707c
movl $0xd8b, %esi            # imm = 0xD8B
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 $0x362, %eax            # imm = 0x362
jmp 0x9aa1
leaq -0x3de9(%rip), %rsi     # 0x5bf5
leaq 0x198bb(%rip), %rdx     # 0x232a0
movq %rbx, %rdi
callq 0x1283a
movq %rax, %r14
leaq 0x12b3c(%rip), %rdi     # 0x1c533
callq 0x1707c
movq %rax, %r15
leaq 0x12616(%rip), %rdi     # 0x1c01c
callq 0x1707c
movl $0xd93, %esi            # imm = 0xD93
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 $0x364, %eax            # imm = 0x364
jmp 0x9aa1
movq 0x19979(%rip), %rdi     # 0x233b8
testq %r15, %r15
leaq 0x12721(%rip), %rax     # 0x1c16a
leaq 0x12717(%rip), %rsi     # 0x1c167
cmoveq %rax, %rsi
callq *0x10(%rdi)
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
jmp 0x9a97
movq %r12, %rdi
callq 0x19c45
leaq -0x324(%rip), %rcx      # 0x974d
leaq 0x3(,%rcx,4), %rcx
cmpq %rcx, %rax
leaq 0x19905(%rip), %rax     # 0x23388
leaq 0x198f6(%rip), %rcx     # 0x23380
cmoveq %rax, %rcx
movq (%rcx), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x12917
movl $0x37a, %eax            # imm = 0x37A
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 0x194f6(%rip), %rax     # 0x22fc0
je 0x9951
movq %r12, %rdi
callq 0x19c45
andl $0x3, %eax
cmpl $0x1, %eax
je 0x9951
movq %r12, %rdi
callq 0x19c45
movq %rax, %rdi
callq 0x19c45
testq %rax, %rax
je 0x9951
movq %r12, %rdi
callq 0x19c45
movq %rax, %rdi
callq 0x19c45
testb $0x3, %al
jne 0x9951
movq %r12, %rdi
callq 0x19c45
movq %rax, %rdi
callq 0x19c45
cmpq 0x19494(%rip), %rax     # 0x22fc0
je 0x9951
movq %r12, %rdi
callq 0x19c45
movq %rax, %rdi
callq 0x19c45
andl $0x3, %eax
cmpl $0x1, %eax
je 0x9951
movq %r12, %rdi
callq 0x19ba6
movq %rax, %r13
leaq 0x12d6c(%rip), %rdi     # 0x1c8cc
callq 0x1707c
cmpq %rax, %r13
jne 0x9951
movq %r12, %rdi
callq 0x19c45
movq %rax, %rdi
callq 0x19ba6
movq %rax, %rbp
movq %r12, %rdi
callq 0x19c45
movq %rax, %rdi
callq 0x19c45
movq %rax, %rdi
callq 0x19ba6
movq %rax, %r13
movq %r12, %rdi
callq 0x19c45
movq %rax, %rdi
callq 0x19c45
movq %rax, %rdi
callq 0x19c45
movq %rax, %r12
testq %r15, %r15
cmovneq %rbp, %r13
leaq 0x129d4(%rip), %rdi     # 0x1c599
callq 0x1707c
movq %rax, %rdi
movq %r12, %rsi
callq 0x19b84
movq %r14, %rdi
movq %rax, %rsi
callq 0x19b84
movq %rbx, %rdi
movq %r13, %rsi
jmp 0x9a5d