// File: /workspace/github_c_makefile_star2_O2/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 0x191fb
movq %rax, %rdi
callq 0x1175b
movq %rax, %r15
movq 0x30(%rbx), %rdi
callq 0x19306
movq %rax, %r14
leaq 0x11ff6(%rip), %rax     # 0x1c9b9
movq %rsp, %rdi
movq %rax, (%rdi)
leaq 0x19960(%rip), %r12     # 0x24330
movq (%r12), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x666, 0xc(%rdi)       # imm = 0x666
leaq 0x1195e(%rip), %rcx     # 0x1c34a
movq %rcx, 0x10(%rdi)
leaq 0x19759(%rip), %rcx     # 0x24150
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x1b079
cmpq 0x195b5(%rip), %r15     # 0x23fc0
je 0xab28
testq %r15, %r15
je 0xab28
movl %r15d, %eax
andl $0x3, %eax
jne 0xab28
movq %r15, %rdi
callq 0x191fb
movq %rax, %r15
andl $0x3, %eax
cmpl $0x1, %eax
jne 0xab8c
leaq 0x19eec(%rip), %rax     # 0x24930
cmpl $0x0, (%rax)
je 0xaa8d
movq (%r12), %rax
movq 0x50(%rax), %rax
leaq 0x11f73(%rip), %rdi     # 0x1c9cb
movq %rdi, 0x10(%rax)
callq 0x1a7f4
testl %eax, %eax
je 0xaa8d
movq (%r12), %rax
movq 0x50(%rax), %rax
movl $0x66b, 0xc(%rax)       # imm = 0x66B
movq %r14, %rdi
callq 0x13708
leaq 0x12ab1(%rip), %rdi     # 0x1d534
movq %rax, %rsi
xorl %eax, %eax
callq 0x1b0f0
cmpq 0x1952c(%rip), %r14     # 0x23fc0
je 0xac00
testq %r14, %r14
je 0xac00
movl %r14d, %eax
andl $0x3, %eax
jne 0xac00
movq %r14, %rdi
callq 0x19306
cmpq 0x19502(%rip), %rax     # 0x23fc0
je 0xabed
leaq -0x54ff(%rip), %rsi     # 0x55cc
leaq 0x197ce(%rip), %rdx     # 0x242a0
movq %rbx, %rdi
callq 0x123b7
movq %rax, %r14
leaq 0x11a4f(%rip), %rdi     # 0x1c533
callq 0x1691f
movq %rax, %r15
leaq 0x11529(%rip), %rdi     # 0x1c01c
callq 0x1691f
movl $0x19b7, %esi           # imm = 0x19B7
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 $0x66d, %eax            # imm = 0x66D
jmp 0xac34
leaq -0x5563(%rip), %rsi     # 0x55cc
leaq 0x1976a(%rip), %rdx     # 0x242a0
movq %rbx, %rdi
callq 0x123b7
movq %rax, %r14
leaq 0x119eb(%rip), %rdi     # 0x1c533
callq 0x1691f
movq %rax, %r15
leaq 0x114c5(%rip), %rdi     # 0x1c01c
callq 0x1691f
movl $0x199f, %esi           # imm = 0x199F
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 $0x667, %eax            # imm = 0x667
jmp 0xac34
leaq -0x55c7(%rip), %rsi     # 0x55cc
leaq 0x19706(%rip), %rdx     # 0x242a0
movq %rbx, %rdi
callq 0x123b7
movq %rax, %r14
leaq 0x11987(%rip), %rdi     # 0x1c533
callq 0x1691f
movq %rax, %r15
leaq 0x11461(%rip), %rdi     # 0x1c01c
callq 0x1691f
movl $0x19a7, %esi           # imm = 0x19A7
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 $0x669, %eax            # imm = 0x669
jmp 0xac34
movq %r14, %rdi
callq 0x191fb
movq %rax, %r14
andl $0x3, %eax
cmpl $0x1, %eax
jne 0xac4b
leaq 0x19699(%rip), %rsi     # 0x242a0
movq %r14, %rdi
callq 0x19164
leaq 0x3d89(%rip), %rsi      # 0xe99f
movq %rbx, %rdi
movq %rax, %rdx
callq 0x123b7
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x12494
movl $0x673, %eax            # imm = 0x673
movq %rsp, %rdi
movl %eax, 0xc(%rdi)
callq 0x1b1f2
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq -0x5686(%rip), %rsi     # 0x55cc
leaq 0x19647(%rip), %rdx     # 0x242a0
movq %rbx, %rdi
callq 0x123b7
movq %rax, %r14
leaq 0x118c8(%rip), %rdi     # 0x1c533
callq 0x1691f
movq %rax, %r15
leaq 0x113a2(%rip), %rdi     # 0x1c01c
callq 0x1691f
movl $0x19bf, %esi           # imm = 0x19BF
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 $0x66f, %eax            # imm = 0x66F
jmp 0xac34