// File: /workspace/github_c_makefile_star2_O3/dalnefre[P]kernel_abe/kernel.c
// Function: unit_type
static
BEH_DECL(unit_type)
{
	CONS* msg = WHAT;
	CONS* cust;
	CONS* req;

	DBUG_ENTER("unit_type");
	ENSURE(is_pr(msg));
	cust = hd(msg);
	ENSURE(actorp(cust));
	req = tl(msg);

	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(unit_type)) ? a_true : a_false));
	} else if (req == ATOM("write")) {
		SINK* sink = current_sink;
		SEND(cust, (sink->put_cstr)(sink, "#inert"));
	} else {
		object_type(CFG);  /* DELEGATE BEHAVIOR */
	}
	DBUG_RETURN;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
movq 0x30(%rdi), %rdi
callq 0x19d11
movq %rax, %r15
leaq 0x134cc(%rip), %rax     # 0x1c93a
leaq 0x8(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x19eb3(%rip), %r12     # 0x23330
movq (%r12), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x251, 0xc(%rdi)       # imm = 0x251
leaq 0x12eb1(%rip), %rcx     # 0x1c34a
movq %rcx, 0x10(%rdi)
leaq 0x19cac(%rip), %rcx     # 0x23150
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x1ba26
cmpq 0x19b08(%rip), %r15     # 0x22fc0
je 0x95ee
testq %r15, %r15
je 0x95ee
movl %r15d, %eax
andl $0x3, %eax
jne 0x95ee
movq %r15, %rdi
callq 0x19c72
movq %rax, %r14
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x9652
movq %r15, %rdi
callq 0x19d11
movq %rax, %r15
leaq 0x1a434(%rip), %r13     # 0x23930
cmpl $0x0, (%r13)
je 0x9596
movq (%r12), %rax
movq 0x50(%rax), %rax
leaq 0x13020(%rip), %rdi     # 0x1c536
movq %rdi, 0x10(%rax)
callq 0x1b188
testl %eax, %eax
je 0x954b
movq (%r12), %rax
movq 0x50(%rax), %rax
movl $0x257, 0xc(%rax)       # imm = 0x257
movq %r14, %rdi
callq 0x13c40
leaq 0x14013(%rip), %rdi     # 0x1d554
movq %rax, %rsi
xorl %eax, %eax
callq 0x1ba97
cmpl $0x0, (%r13)
je 0x9596
movq (%r12), %rax
movq 0x50(%rax), %rax
leaq 0x12fda(%rip), %rdi     # 0x1c53b
movq %rdi, 0x10(%rax)
callq 0x1b188
testl %eax, %eax
je 0x9596
movq (%r12), %rax
movq 0x50(%rax), %rax
movl $0x258, 0xc(%rax)       # imm = 0x258
movq %r15, %rdi
callq 0x13c40
leaq 0x13fc8(%rip), %rdi     # 0x1d554
movq %rax, %rsi
xorl %eax, %eax
callq 0x1ba97
cmpq 0x19a23(%rip), %r15     # 0x22fc0
je 0x95cc
testq %r15, %r15
je 0x95cc
movl %r15d, %eax
andl $0x3, %eax
jne 0x95cc
movq %r15, %rdi
callq 0x19c72
movq %rax, %r12
leaq 0x12fd3(%rip), %rdi     # 0x1c591
callq 0x170ff
cmpq %rax, %r12
je 0x96cf
leaq 0x12ffd(%rip), %rdi     # 0x1c5d0
callq 0x170ff
cmpq %rax, %r15
je 0x96b3
movq %rbx, %rdi
callq 0x865b
jmp 0x9709
leaq -0x3a4d(%rip), %rsi     # 0x5ba8
leaq 0x19ca4(%rip), %rdx     # 0x232a0
movq %rbx, %rdi
callq 0x128be
movq %rax, %r14
leaq 0x12f25(%rip), %rdi     # 0x1c533
callq 0x170ff
movq %rax, %r15
leaq 0x129ff(%rip), %rdi     # 0x1c01c
callq 0x170ff
movl $0x94b, %esi            # imm = 0x94B
movq %rax, %rdi
callq 0x19c50
movq %r15, %rdi
movq %rax, %rsi
callq 0x19c50
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x1299b
movl $0x252, %eax            # imm = 0x252
jmp 0x970e
leaq -0x3ab1(%rip), %rsi     # 0x5ba8
leaq 0x19c40(%rip), %rdx     # 0x232a0
movq %rbx, %rdi
callq 0x128be
movq %rax, %r14
leaq 0x12ec1(%rip), %rdi     # 0x1c533
callq 0x170ff
movq %rax, %r15
leaq 0x1299b(%rip), %rdi     # 0x1c01c
callq 0x170ff
movl $0x953, %esi            # imm = 0x953
movq %rax, %rdi
callq 0x19c50
movq %r15, %rdi
movq %rax, %rsi
callq 0x19c50
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x1299b
movl $0x254, %eax            # imm = 0x254
jmp 0x970e
movq 0x19cfe(%rip), %rdi     # 0x233b8
leaq 0x12a9f(%rip), %rsi     # 0x1c160
callq *0x10(%rdi)
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
jmp 0x9704
movq %r15, %rdi
callq 0x19d11
leaq -0x293(%rip), %rcx      # 0x944b
leaq 0x3(,%rcx,4), %rcx
cmpq %rcx, %rax
leaq 0x19c98(%rip), %rax     # 0x23388
leaq 0x19c89(%rip), %rcx     # 0x23380
cmoveq %rax, %rcx
movq (%rcx), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1299b
movl $0x262, %eax            # imm = 0x262
leaq 0x8(%rsp), %rdi
movl %eax, 0xc(%rdi)
callq 0x1bbab
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq