// File: /workspace/github_c_makefile_star2_O3/dalnefre[P]kernel_abe/echallenge.c
// Function: countdown_builder_beh
BEH_DECL(countdown_builder_beh)
{
	CONS* n;
	CONS* first;
	CONS* m;
	int n_int;
/*
	CONS* n = MINE;
	CONS* first = car(WHAT);
	CONS* m = cdr(WHAT);
	int n_int = MK_INT(n);
*/
	DBUG_ENTER("countdown_builder_beh");
	n = MINE;
	assert(numberp(n));
	assert(consp(WHAT));
	first = car(WHAT);
	assert(actorp(first));
	m = cdr(WHAT);
	assert(numberp(m));
	n_int = MK_INT(n);
	DBUG_PRINT("", ("n=%d m=%d", n_int, MK_INT(m)));
	if (n_int <= 0) {
		BECOME(countdown_ring_0_beh, first);
		SEND(timing_actor, NIL);
		SEND(first, m);			/* NOTE: disable this line for process creation only */
	} else {
		CONS* next;

		next = ACTOR(countdown_builder_beh, NUMBER(n_int - 1));
		BECOME(countdown_ring_beh, next);
		SEND(next, WHAT);
	}
	DBUG_RETURN;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0xb6bb(%rip), %rax      # 0xe056
movq %rsp, %rdi
movq %rax, (%rdi)
leaq 0x10950(%rip), %rax     # 0x132f8
movq (%rax), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x60, 0xc(%rdi)
leaq 0xd3c1(%rip), %r15      # 0xfd84
movq %r15, 0x10(%rdi)
leaq 0x10752(%rip), %rcx     # 0x13120
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0xcdd2
movq 0x30(%rbx), %rdi
callq 0xb01e
movq %rax, %rdi
callq 0x3111
movq %rax, %r14
notl %eax
testb $0x3, %al
jne 0x2b8c
movq 0x30(%rbx), %rdi
callq 0xb0bd
testq %rax, %rax
je 0x2b6d
movq 0x30(%rbx), %rdi
callq 0xb0bd
testb $0x3, %al
jne 0x2b6d
movq 0x30(%rbx), %rdi
callq 0xb0bd
movq %rax, %rdi
callq 0xb01e
movq %rax, %r12
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x2bab
movq 0x30(%rbx), %rdi
callq 0xb0bd
movq %rax, %rdi
callq 0xb0bd
movq %rax, %r13
notl %eax
testb $0x3, %al
jne 0x2bca
movq %r14, %rbp
shrq $0x2, %rbp
leaq 0x10e38(%rip), %rax     # 0x138a0
cmpl $0x0, (%rax)
je 0x2ab7
leaq 0x10884(%rip), %rax     # 0x132f8
movq (%rax), %rax
movq 0x50(%rax), %rax
movq %r15, 0x10(%rax)
movq %r15, %rdi
callq 0xc534
testl %eax, %eax
je 0x2ab7
leaq 0x10866(%rip), %rax     # 0x132f8
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x69, 0xc(%rax)
movq %r13, %rdx
shrq $0x2, %rdx
leaq 0xb620(%rip), %rdi      # 0xe0ce
movl %ebp, %esi
xorl %eax, %eax
callq 0xce43
testl %ebp, %ebp
jle 0x2b10
movabsq $0x3fffffffc, %rdx      # imm = 0x3FFFFFFFC
addq %rdx, %r14
orq $0x3, %rdx
andq %r14, %rdx
leaq -0x153(%rip), %rsi      # 0x2983
movq %rbx, %rdi
callq 0x3c6a
movq %rax, %r14
movq 0x30(%rbx), %rdi
callq 0xb01e
leaq -0x219(%rip), %rsi      # 0x28d8
movq %rax, %rdi
movq %r14, %rdx
callq 0x336a
movq 0x30(%rbx), %rdi
callq 0xb0bd
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
jmp 0x2b4a
movq 0x30(%rbx), %rdi
callq 0xb01e
leaq -0x334(%rip), %rsi      # 0x27ec
movq %rax, %rdi
movq %r12, %rdx
callq 0x336a
movq 0x10816(%rip), %rsi     # 0x13348
leaq 0x1072f(%rip), %rdx     # 0x13268
movq %rbx, %rdi
callq 0x3d47
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x3d47
movq %rsp, %rdi
movl $0x75, 0xc(%rdi)
callq 0xcf57
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xb535(%rip), %rdi      # 0xe0a9
leaq 0xb4fc(%rip), %rsi      # 0xe077
leaq 0xb502(%rip), %rcx      # 0xe084
movl $0x63, %edx
callq 0x2100
leaq 0xb4d9(%rip), %rdi      # 0xe06c
leaq 0xb4dd(%rip), %rsi      # 0xe077
leaq 0xb4e3(%rip), %rcx      # 0xe084
movl $0x62, %edx
callq 0x2100
leaq 0xb503(%rip), %rdi      # 0xe0b5
leaq 0xb4be(%rip), %rsi      # 0xe077
leaq 0xb4c4(%rip), %rcx      # 0xe084
movl $0x65, %edx
callq 0x2100
leaq 0xb4f2(%rip), %rdi      # 0xe0c3
leaq 0xb49f(%rip), %rsi      # 0xe077
leaq 0xb4a5(%rip), %rcx      # 0xe084
movl $0x67, %edx
callq 0x2100