// File: /workspace/github_c_makefile_star2_O1/dalnefre[P]kernel_abe/kernel.c
// Function: make_env_args_beh
static
BEH_DECL(make_env_args_beh)
{
	CONS* state = MINE;
	CONS* cust;
	CONS* parent = WHAT;
	CONS* env_;

	DBUG_ENTER("make_env_args_beh");
	ENSURE(is_pr(state));
	cust = hd(state);
	ENSURE(actorp(cust));

	DBUG_PRINT("parent", ("%s", cons_to_str(parent)));
	if (is_pr(parent)) {
		ENSURE(nilp(tl(parent)));  /* FIXME: support multiple parents */
		parent = hd(parent);
		ENSURE(actorp(parent));
	}
	env_ = ACTOR(env_type, pr(parent, NIL));
	SEND(cust, env_);
	DBUG_RETURN;
}

// Assembly:
pushq %r15
pushq %r14
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, %r14
leaq 0x119fa(%rip), %rax     # 0x1c9b9
movq %rsp, %rdi
movq %rax, (%rdi)
leaq 0x18364(%rip), %r12     # 0x23330
movq (%r12), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x666, 0xc(%rdi)       # imm = 0x666
leaq 0x11362(%rip), %rcx     # 0x1c34a
movq %rcx, 0x10(%rdi)
leaq 0x1815d(%rip), %rcx     # 0x23150
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x1b912
cmpq 0x17fb9(%rip), %r15     # 0x22fc0
je 0xb124
testq %r15, %r15
je 0xb124
movl %r15d, %eax
andl $0x3, %eax
jne 0xb124
movq %r15, %rdi
callq 0x19ba6
movq %rax, %r15
andl $0x3, %eax
cmpl $0x1, %eax
jne 0xb188
leaq 0x188f0(%rip), %rax     # 0x23930
cmpl $0x0, (%rax)
je 0xb089
movq (%r12), %rax
movq 0x50(%rax), %rax
leaq 0x11977(%rip), %rdi     # 0x1c9cb
movq %rdi, 0x10(%rax)
callq 0x1b084
testl %eax, %eax
je 0xb089
movq (%r12), %rax
movq 0x50(%rax), %rax
movl $0x66b, 0xc(%rax)       # imm = 0x66B
movq %r14, %rdi
callq 0x13b9c
leaq 0x124d5(%rip), %rdi     # 0x1d554
movq %rax, %rsi
xorl %eax, %eax
callq 0x1b983
cmpq 0x17f30(%rip), %r14     # 0x22fc0
je 0xb1fc
testq %r14, %r14
je 0xb1fc
movl %r14d, %eax
andl $0x3, %eax
jne 0xb1fc
movq %r14, %rdi
callq 0x19c45
cmpq 0x17f06(%rip), %rax     # 0x22fc0
je 0xb1e9
leaq -0x54d2(%rip), %rsi     # 0x5bf5
leaq 0x181d2(%rip), %rdx     # 0x232a0
movq %rbx, %rdi
callq 0x1283a
movq %rax, %r14
leaq 0x11453(%rip), %rdi     # 0x1c533
callq 0x1707c
movq %rax, %r15
leaq 0x10f2d(%rip), %rdi     # 0x1c01c
callq 0x1707c
movl $0x19b7, %esi           # imm = 0x19B7
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 $0x66d, %eax            # imm = 0x66D
jmp 0xb230
leaq -0x5536(%rip), %rsi     # 0x5bf5
leaq 0x1816e(%rip), %rdx     # 0x232a0
movq %rbx, %rdi
callq 0x1283a
movq %rax, %r14
leaq 0x113ef(%rip), %rdi     # 0x1c533
callq 0x1707c
movq %rax, %r15
leaq 0x10ec9(%rip), %rdi     # 0x1c01c
callq 0x1707c
movl $0x199f, %esi           # imm = 0x199F
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 $0x667, %eax            # imm = 0x667
jmp 0xb230
leaq -0x559a(%rip), %rsi     # 0x5bf5
leaq 0x1810a(%rip), %rdx     # 0x232a0
movq %rbx, %rdi
callq 0x1283a
movq %rax, %r14
leaq 0x1138b(%rip), %rdi     # 0x1c533
callq 0x1707c
movq %rax, %r15
leaq 0x10e65(%rip), %rdi     # 0x1c01c
callq 0x1707c
movl $0x19a7, %esi           # imm = 0x19A7
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 $0x669, %eax            # imm = 0x669
jmp 0xb230
movq %r14, %rdi
callq 0x19ba6
movq %rax, %r14
andl $0x3, %eax
cmpl $0x1, %eax
jne 0xb247
leaq 0x1809d(%rip), %rsi     # 0x232a0
movq %r14, %rdi
callq 0x19b84
leaq 0x3d75(%rip), %rsi      # 0xef87
movq %rbx, %rdi
movq %rax, %rdx
callq 0x1283a
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x12917
movl $0x673, %eax            # imm = 0x673
movq %rsp, %rdi
movl %eax, 0xc(%rdi)
callq 0x1ba97
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq -0x5659(%rip), %rsi     # 0x5bf5
leaq 0x1804b(%rip), %rdx     # 0x232a0
movq %rbx, %rdi
callq 0x1283a
movq %rax, %r14
leaq 0x112cc(%rip), %rdi     # 0x1c533
callq 0x1707c
movq %rax, %r15
leaq 0x10da6(%rip), %rdi     # 0x1c01c
callq 0x1707c
movl $0x19bf, %esi           # imm = 0x19BF
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 $0x66f, %eax            # imm = 0x66F
jmp 0xb230