// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x1c340
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x1c1b0
movq %rax, %rdi
callq 0x11430
movq %rax, %rdi
callq 0x1c1b0
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x1c1b0
movq %rax, %rdi
callq 0x11430
movq %rax, %rdi
callq 0x1c340
movq %rax, -0x20(%rbp)
leaq 0x11d63(%rip), %rax     # 0x2052c
movq %rax, -0x60(%rbp)
leaq 0x17b3c(%rip), %rax     # 0x26310
movq (%rax), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %eax
movl %eax, -0x58(%rbp)
movl $0x90f, -0x54(%rbp)     # imm = 0x90F
leaq 0x1439d(%rip), %rax     # 0x22b8c
movq %rax, -0x50(%rbp)
leaq 0x17936(%rip), %rax     # 0x26130
movq %rax, -0x48(%rbp)
leaq 0x17b0b(%rip), %rax     # 0x26310
movq (%rax), %rax
movq 0x50(%rax), %rax
movq %rax, -0x40(%rbp)
leaq -0x60(%rbp), %rdi
callq 0x1f2c0
leaq 0x180c0(%rip), %rax     # 0x268e0
cmpl $0x0, (%rax)
je 0xe87e
leaq 0x17ae4(%rip), %rax     # 0x26310
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x14352(%rip), %rcx     # 0x22b8c
movq %rcx, 0x10(%rax)
leaq 0x14347(%rip), %rdi     # 0x22b8c
callq 0x1e6d0
cmpl $0x0, %eax
je 0xe87e
leaq 0x17aba(%rip), %rax     # 0x26310
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x910, 0xc(%rax)       # imm = 0x910
movq -0x10(%rbp), %rdi
callq 0x14080
movq %rax, %rsi
leaq 0x118a7(%rip), %rdi     # 0x2011e
movb $0x0, %al
callq 0x1f370
jmp 0xe880
movq -0x10(%rbp), %rsi
movl $0x1, %edi
callq 0x5ec0
cmpq $0x0, %rax
je 0xe942
movq -0x10(%rbp), %rdi
callq 0x1c1b0
andq $0x3, %rax
cmpq $0x1, %rax
sete %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0xe942
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x1c0c0
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rdx
leaq -0x4ad(%rip), %rsi      # 0xe430
callq 0x12520
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
leaq 0x1798f(%rip), %rsi     # 0x26280
callq 0x1c0c0
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x1c0c0
movq %rax, -0x30(%rbp)
movq -0x18(%rbp), %rdi
movq -0x30(%rbp), %rsi
callq 0x1c0c0
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x10(%rbp), %rdi
callq 0x1c1b0
movq -0x68(%rbp), %rdi
movq %rax, %rsi
movq -0x30(%rbp), %rdx
callq 0x12640
jmp 0xea4a
jmp 0xe944
leaq 0x17f95(%rip), %rax     # 0x268e0
cmpl $0x0, (%rax)
je 0xe99d
leaq 0x179b9(%rip), %rax     # 0x26310
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x14227(%rip), %rcx     # 0x22b8c
movq %rcx, 0x10(%rax)
leaq 0x1421c(%rip), %rdi     # 0x22b8c
callq 0x1e6d0
cmpl $0x0, %eax
je 0xe99d
leaq 0x1798f(%rip), %rax     # 0x26310
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x919, 0xc(%rax)       # imm = 0x919
leaq 0x11897(%rip), %rdi     # 0x2022d
movb $0x0, %al
callq 0x1f370
jmp 0xe99f
movq -0x8(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x90(%rbp)
leaq 0x11b7d(%rip), %rdi     # 0x2053e
callq 0x18510
movq %rax, %rdi
movq -0x10(%rbp), %rsi
callq 0x1c0c0
movq -0x90(%rbp), %rdi
movq %rax, %rdx
leaq -0xc253(%rip), %rsi     # 0x2790
callq 0x12520
movq %rax, -0x80(%rbp)
leaq 0x11697(%rip), %rdi     # 0x2008a
callq 0x18510
movq %rax, -0x88(%rbp)
callq 0x11360
movq %rax, %rdi
leaq 0x17872(%rip), %rsi     # 0x26280
callq 0x1c0c0
movq -0x88(%rbp), %rdi
movq %rax, %rsi
callq 0x1c0c0
movq %rax, %rdi
movq -0x20(%rbp), %rsi
callq 0x1c0c0
movq -0x80(%rbp), %rdi
movq %rax, %rsi
callq 0x1c0c0
movq -0x78(%rbp), %rdi
movq -0x70(%rbp), %rsi
movq %rax, %rdx
callq 0x12640
movl $0x91c, -0x54(%rbp)     # imm = 0x91C
leaq -0x60(%rbp), %rdi
callq 0x1f490
addq $0x90, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)