// File: /workspace/github_c_makefile_star2_O3/dalnefre[P]kernel_abe/schemer.c
// Function: apply_call_cc_beh
BEH_DECL(apply_call_cc_beh)
{
	CONS* args = WHAT;
	CONS* to = pr_head(MINE);
	CONS* env = pr_tail(MINE);
	CONS* state;
	CONS* msg;
	CONS* a;

	DBUG_ENTER("apply_call_cc_beh");
	DBUG_PRINT("", ("args = %s", cons_to_str(args)));
	if (have_n_args(1, args) && is_actor(lst_first(args))) {
		state = mk_pair(to, env);
		a = ACTOR(cont_beh, state);
		msg = mk_list(a, mk_empty());
		msg = mk_pair(msg, env);
		msg = mk_pair(to, msg);
		SEND(lst_first(args), msg);
	} else {
		DBUG_PRINT("", ("error"));
		FAIL(env, mk_list(ATOM("call/cc"), args));
	}
	DBUG_RETURN;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
movq 0x30(%rdi), %rdi
callq 0x1518d
movq %rax, %r15
movq 0x30(%rbx), %rdi
callq 0x150ee
movq %rax, %rdi
callq 0xd1e1
movq %rax, %rdi
callq 0x150ee
movq %rax, 0x8(%rsp)
movq 0x30(%rbx), %rdi
callq 0x150ee
movq %rax, %rdi
callq 0xd1e1
movq %rax, %rdi
callq 0x1518d
movq %rax, %r14
leaq 0xd44b(%rip), %rax      # 0x1852c
leaq 0x10(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x14230(%rip), %rbp     # 0x1f320
movq (%rbp), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x90f, 0xc(%rdi)       # imm = 0x90F
leaq 0xf8d4(%rip), %r13      # 0x1a9e0
movq %r13, 0x10(%rdi)
leaq 0x14029(%rip), %rcx     # 0x1f140
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x16ea2
leaq 0x147c5(%rip), %r12     # 0x1f8f0
cmpl $0x0, (%r12)
je 0xb172
movq (%rbp), %rax
movq 0x50(%rax), %rax
movq %r13, 0x10(%rax)
movq %r13, %rdi
callq 0x16604
testl %eax, %eax
je 0xb172
movq (%rbp), %rax
movq 0x50(%rax), %rax
movl $0x910, 0xc(%rax)       # imm = 0x910
movq %r15, %rdi
callq 0xf0bc
leaq 0xcfb6(%rip), %rdi      # 0x1811e
movq %rax, %rsi
xorl %eax, %eax
callq 0x16f13
movl $0x1, %edi
movq %r15, %rsi
callq 0x4f95
testq %rax, %rax
je 0xb1f4
movq %r15, %rdi
callq 0x150ee
andl $0x3, %eax
cmpl $0x1, %eax
jne 0xb1f4
movq 0x8(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x150cc
leaq -0x37f(%rip), %rsi      # 0xae2c
movq %rbx, %rdi
movq %rax, %rdx
callq 0xdd3a
leaq 0x140d3(%rip), %rsi     # 0x1f290
movq %rax, %rdi
callq 0x150cc
movq %rax, %rdi
movq %r14, %rsi
callq 0x150cc
movq %r12, %rdi
movq %rax, %rsi
callq 0x150cc
movq %rax, %r14
movq %r15, %rdi
callq 0x150ee
movq %rbx, %rdi
movq %rax, %rsi
movq %r14, %rdx
jmp 0xb2a9
cmpl $0x0, (%r12)
je 0xb230
movq (%rbp), %rax
movq 0x50(%rax), %rax
movq %r13, 0x10(%rax)
movq %r13, %rdi
callq 0x16604
testl %eax, %eax
je 0xb230
movq (%rbp), %rax
movq 0x50(%rax), %rax
movl $0x919, 0xc(%rax)       # imm = 0x919
leaq 0xd004(%rip), %rdi      # 0x1822d
xorl %eax, %eax
callq 0x16f13
leaq 0xd307(%rip), %rdi      # 0x1853e
callq 0x1257b
movq %rax, %rdi
movq %r15, %rsi
callq 0x150cc
leaq -0x87d6(%rip), %rsi     # 0x2a78
movq %rbx, %rdi
movq %rax, %rdx
callq 0xdd3a
movq %rax, %r15
leaq 0xce27(%rip), %rdi      # 0x1808a
callq 0x1257b
movq %rax, %r12
callq 0xd160
leaq 0x14019(%rip), %rsi     # 0x1f290
movq %rax, %rdi
callq 0x150cc
movq %r12, %rdi
movq %rax, %rsi
callq 0x150cc
movq %rax, %rdi
movq %r14, %rsi
callq 0x150cc
movq %r15, %rdi
movq %rax, %rsi
callq 0x150cc
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0xde17
leaq 0x10(%rsp), %rdi
movl $0x91c, 0xc(%rdi)       # imm = 0x91C
callq 0x17027
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq