// File: /workspace/github_c_makefile_star2_O2/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 0x191fb
movq %rax, %rdi
callq 0x1175b
movq %rax, %r14
movq 0x30(%rbx), %rdi
callq 0x19306
movq %rax, %r12
leaq 0x1379e(%rip), %rax     # 0x1c944
movq %rsp, %rdi
movq %rax, (%rdi)
leaq 0x1b17d(%rip), %r13     # 0x24330
movq (%r13), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x361, 0xc(%rdi)       # imm = 0x361
leaq 0x1317b(%rip), %rcx     # 0x1c34a
movq %rcx, 0x10(%rdi)
leaq 0x1af76(%rip), %rcx     # 0x24150
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x1b079
cmpq 0x1add2(%rip), %r12     # 0x23fc0
je 0x9390
testq %r12, %r12
je 0x9390
movl %r12d, %eax
andl $0x3, %eax
jne 0x9390
movq %r12, %rdi
callq 0x191fb
movq %rax, %r15
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x93f4
movq %r12, %rdi
callq 0x19306
movq %rax, %r12
leaq 0x1b6fe(%rip), %rbp     # 0x24930
cmpl $0x0, (%rbp)
je 0x9318
movq (%r13), %rax
movq 0x50(%rax), %rax
leaq 0x14e5c(%rip), %rdi     # 0x1e0a7
movq %rdi, 0x10(%rax)
callq 0x1a7f4
testl %eax, %eax
je 0x9280
movq (%r13), %rax
movq 0x50(%rax), %rax
movl $0x367, 0xc(%rax)       # imm = 0x367
movq %r14, %rdi
callq 0x13708
leaq 0x142be(%rip), %rdi     # 0x1d534
movq %rax, %rsi
xorl %eax, %eax
callq 0x1b0f0
cmpl $0x0, (%rbp)
je 0x9318
movq (%r13), %rax
movq 0x50(%rax), %rax
leaq 0x1329d(%rip), %rdi     # 0x1c536
movq %rdi, 0x10(%rax)
callq 0x1a7f4
testl %eax, %eax
je 0x92ce
movq (%r13), %rax
movq 0x50(%rax), %rax
movl $0x368, 0xc(%rax)       # imm = 0x368
movq %r15, %rdi
callq 0x13708
leaq 0x14270(%rip), %rdi     # 0x1d534
movq %rax, %rsi
xorl %eax, %eax
callq 0x1b0f0
cmpl $0x0, (%rbp)
je 0x9318
movq (%r13), %rax
movq 0x50(%rax), %rax
leaq 0x13258(%rip), %rdi     # 0x1c53b
movq %rdi, 0x10(%rax)
callq 0x1a7f4
testl %eax, %eax
je 0x9318
movq (%r13), %rax
movq 0x50(%rax), %rax
movl $0x369, 0xc(%rax)       # imm = 0x369
movq %r12, %rdi
callq 0x13708
leaq 0x14226(%rip), %rdi     # 0x1d534
movq %rax, %rsi
xorl %eax, %eax
callq 0x1b0f0
cmpq 0x1aca1(%rip), %r12     # 0x23fc0
je 0x936e
testq %r12, %r12
je 0x936e
movl %r12d, %eax
andl $0x3, %eax
jne 0x936e
movq %r12, %rdi
callq 0x191fb
movq %rax, %r13
leaq 0x13251(%rip), %rdi     # 0x1c591
callq 0x1691f
movq %rax, %rbp
movq %r12, %rdi
callq 0x19306
cmpq %rbp, %r13
je 0x947f
testq %rax, %rax
je 0x936e
movq %r12, %rdi
callq 0x19306
testb $0x3, %al
je 0x94d0
leaq 0x1325b(%rip), %rdi     # 0x1c5d0
callq 0x1691f
cmpq %rax, %r12
je 0x9455
movq %rbx, %rdi
callq 0x8053
jmp 0x94b1
leaq -0x3dcb(%rip), %rsi     # 0x55cc
leaq 0x1af02(%rip), %rdx     # 0x242a0
movq %rbx, %rdi
callq 0x123b7
movq %rax, %r14
leaq 0x13183(%rip), %rdi     # 0x1c533
callq 0x1691f
movq %rax, %r15
leaq 0x12c5d(%rip), %rdi     # 0x1c01c
callq 0x1691f
movl $0xd8b, %esi            # imm = 0xD8B
movq %rax, %rdi
callq 0x19164
movq %r15, %rdi
movq %rax, %rsi
callq 0x19164
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x12494
movl $0x362, %eax            # imm = 0x362
jmp 0x94b6
leaq -0x3e2f(%rip), %rsi     # 0x55cc
leaq 0x1ae9e(%rip), %rdx     # 0x242a0
movq %rbx, %rdi
callq 0x123b7
movq %rax, %r14
leaq 0x1311f(%rip), %rdi     # 0x1c533
callq 0x1691f
movq %rax, %r15
leaq 0x12bf9(%rip), %rdi     # 0x1c01c
callq 0x1691f
movl $0xd93, %esi            # imm = 0xD93
movq %rax, %rdi
callq 0x19164
movq %r15, %rdi
movq %rax, %rsi
callq 0x19164
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x12494
movl $0x364, %eax            # imm = 0x364
jmp 0x94b6
movq 0x1af5c(%rip), %rdi     # 0x243b8
testq %r14, %r14
leaq 0x12d04(%rip), %rax     # 0x1c16a
leaq 0x12cfa(%rip), %rsi     # 0x1c167
cmoveq %rax, %rsi
callq *0x10(%rdi)
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
jmp 0x94ac
leaq -0x318(%rip), %rcx      # 0x916e
leaq 0x3(,%rcx,4), %rcx
cmpq %rcx, %rax
leaq 0x1aef0(%rip), %rax     # 0x24388
leaq 0x1aee1(%rip), %rcx     # 0x24380
cmoveq %rax, %rcx
movq (%rcx), %rdx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x12494
movl $0x37a, %eax            # imm = 0x37A
movq %rsp, %rdi
movl %eax, 0xc(%rdi)
callq 0x1b1f2
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r12, %rdi
callq 0x19306
cmpq 0x1aae1(%rip), %rax     # 0x23fc0
je 0x936e
movq %r12, %rdi
callq 0x19306
andl $0x3, %eax
cmpl $0x1, %eax
je 0x936e
movq %r12, %rdi
callq 0x19306
movq %rax, %rdi
callq 0x19306
testq %rax, %rax
je 0x936e
movq %r12, %rdi
callq 0x19306
movq %rax, %rdi
callq 0x19306
testb $0x3, %al
jne 0x936e
movq %r12, %rdi
callq 0x19306
movq %rax, %rdi
callq 0x19306
cmpq 0x1aa7f(%rip), %rax     # 0x23fc0
je 0x936e
movq %r12, %rdi
callq 0x19306
movq %rax, %rdi
callq 0x19306
andl $0x3, %eax
cmpl $0x1, %eax
je 0x936e
movq %r12, %rdi
callq 0x191fb
movq %rax, %r13
leaq 0x13357(%rip), %rdi     # 0x1c8cc
callq 0x1691f
cmpq %rax, %r13
jne 0x936e
movq %r12, %rdi
callq 0x19306
movq %rax, %rdi
callq 0x191fb
movq %rax, %rbp
movq %r12, %rdi
callq 0x19306
movq %rax, %rdi
callq 0x19306
movq %rax, %rdi
callq 0x191fb
movq %rax, %r13
movq %r12, %rdi
callq 0x19306
movq %rax, %rdi
callq 0x19306
movq %rax, %rdi
callq 0x19306
movq %rax, %r12
testq %r14, %r14
cmovneq %rbp, %r13
leaq 0x12fbf(%rip), %rdi     # 0x1c599
callq 0x1691f
movq %rax, %rdi
movq %r12, %rsi
callq 0x19164
movq %r15, %rdi
movq %rax, %rsi
callq 0x19164
movq %rbx, %rdi
movq %r13, %rsi
jmp 0x947a