// File: /workspace/github_c_makefile_star2_O3/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 0x19c72
movq %rax, %rdi
callq 0x11d65
movq %rax, %r15
movq 0x30(%rbx), %rdi
callq 0x19d11
movq %rax, %r14
leaq 0x11a1a(%rip), %rax     # 0x1c9b9
movq %rsp, %rdi
movq %rax, (%rdi)
leaq 0x18384(%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 0x11382(%rip), %rcx     # 0x1c34a
movq %rcx, 0x10(%rdi)
leaq 0x1817d(%rip), %rcx     # 0x23150
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x1ba26
cmpq 0x17fd9(%rip), %r15     # 0x22fc0
je 0xb104
testq %r15, %r15
je 0xb104
movl %r15d, %eax
andl $0x3, %eax
jne 0xb104
movq %r15, %rdi
callq 0x19c72
movq %rax, %r15
andl $0x3, %eax
cmpl $0x1, %eax
jne 0xb168
leaq 0x18910(%rip), %rax     # 0x23930
cmpl $0x0, (%rax)
je 0xb069
movq (%r12), %rax
movq 0x50(%rax), %rax
leaq 0x11997(%rip), %rdi     # 0x1c9cb
movq %rdi, 0x10(%rax)
callq 0x1b188
testl %eax, %eax
je 0xb069
movq (%r12), %rax
movq 0x50(%rax), %rax
movl $0x66b, 0xc(%rax)       # imm = 0x66B
movq %r14, %rdi
callq 0x13c40
leaq 0x124f5(%rip), %rdi     # 0x1d554
movq %rax, %rsi
xorl %eax, %eax
callq 0x1ba97
cmpq 0x17f50(%rip), %r14     # 0x22fc0
je 0xb1dc
testq %r14, %r14
je 0xb1dc
movl %r14d, %eax
andl $0x3, %eax
jne 0xb1dc
movq %r14, %rdi
callq 0x19d11
cmpq 0x17f26(%rip), %rax     # 0x22fc0
je 0xb1c9
leaq -0x54ff(%rip), %rsi     # 0x5ba8
leaq 0x181f2(%rip), %rdx     # 0x232a0
movq %rbx, %rdi
callq 0x128be
movq %rax, %r14
leaq 0x11473(%rip), %rdi     # 0x1c533
callq 0x170ff
movq %rax, %r15
leaq 0x10f4d(%rip), %rdi     # 0x1c01c
callq 0x170ff
movl $0x19b7, %esi           # imm = 0x19B7
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 $0x66d, %eax            # imm = 0x66D
jmp 0xb210
leaq -0x5563(%rip), %rsi     # 0x5ba8
leaq 0x1818e(%rip), %rdx     # 0x232a0
movq %rbx, %rdi
callq 0x128be
movq %rax, %r14
leaq 0x1140f(%rip), %rdi     # 0x1c533
callq 0x170ff
movq %rax, %r15
leaq 0x10ee9(%rip), %rdi     # 0x1c01c
callq 0x170ff
movl $0x199f, %esi           # imm = 0x199F
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 $0x667, %eax            # imm = 0x667
jmp 0xb210
leaq -0x55c7(%rip), %rsi     # 0x5ba8
leaq 0x1812a(%rip), %rdx     # 0x232a0
movq %rbx, %rdi
callq 0x128be
movq %rax, %r14
leaq 0x113ab(%rip), %rdi     # 0x1c533
callq 0x170ff
movq %rax, %r15
leaq 0x10e85(%rip), %rdi     # 0x1c01c
callq 0x170ff
movl $0x19a7, %esi           # imm = 0x19A7
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 $0x669, %eax            # imm = 0x669
jmp 0xb210
movq %r14, %rdi
callq 0x19c72
movq %rax, %r14
andl $0x3, %eax
cmpl $0x1, %eax
jne 0xb227
leaq 0x180bd(%rip), %rsi     # 0x232a0
movq %r14, %rdi
callq 0x19c50
leaq 0x3db3(%rip), %rsi      # 0xefa5
movq %rbx, %rdi
movq %rax, %rdx
callq 0x128be
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x1299b
movl $0x673, %eax            # imm = 0x673
movq %rsp, %rdi
movl %eax, 0xc(%rdi)
callq 0x1bbab
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq -0x5686(%rip), %rsi     # 0x5ba8
leaq 0x1806b(%rip), %rdx     # 0x232a0
movq %rbx, %rdi
callq 0x128be
movq %rax, %r14
leaq 0x112ec(%rip), %rdi     # 0x1c533
callq 0x170ff
movq %rax, %r15
leaq 0x10dc6(%rip), %rdi     # 0x1c01c
callq 0x170ff
movl $0x19bf, %esi           # imm = 0x19BF
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 $0x66f, %eax            # imm = 0x66F
jmp 0xb210