// File: /workspace/github_c_makefile_star2_O2/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 0xaa96(%rip), %rax      # 0xd056
movq %rsp, %rdi
movq %rax, (%rdi)
leaq 0xfd3b(%rip), %rax      # 0x12308
movq (%rax), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x60, 0xc(%rdi)
leaq 0xc77c(%rip), %r15      # 0xed64
movq %r15, 0x10(%rdi)
leaq 0xfb3d(%rip), %rcx      # 0x12130
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0xc63d
movq 0x30(%rbx), %rdi
callq 0xa7bf
movq %rax, %rdi
callq 0x2d1f
movq %rax, %r14
notl %eax
testb $0x3, %al
jne 0x27ab
movq 0x30(%rbx), %rdi
callq 0xa8ca
testq %rax, %rax
je 0x2792
movq 0x30(%rbx), %rdi
callq 0xa8ca
testb $0x3, %al
jne 0x2792
movq 0x30(%rbx), %rdi
callq 0xa8ca
movq %rax, %rdi
callq 0xa7bf
movq %rax, %r12
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x27c4
movq 0x30(%rbx), %rdi
callq 0xa8ca
movq %rax, %rdi
callq 0xa8ca
movq %rax, %r13
notl %eax
testb $0x3, %al
jne 0x27dd
movq %r14, %rbp
shrq $0x2, %rbp
leaq 0x10223(%rip), %rax     # 0x128b0
cmpl $0x0, (%rax)
je 0x26dc
leaq 0xfc6f(%rip), %rax      # 0x12308
movq (%rax), %rax
movq 0x50(%rax), %rax
movq %r15, 0x10(%rax)
movq %r15, %rdi
callq 0xbdb8
testl %eax, %eax
je 0x26dc
leaq 0xfc51(%rip), %rax      # 0x12308
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x69, 0xc(%rax)
movq %r13, %rdx
shrq $0x2, %rdx
leaq 0xa9fb(%rip), %rdi      # 0xd0ce
movl %ebp, %esi
xorl %eax, %eax
callq 0xc6b4
testl %ebp, %ebp
jle 0x2735
movabsq $0x3fffffffc, %rdx      # imm = 0x3FFFFFFFC
addq %rdx, %r14
orq $0x3, %rdx
andq %r14, %rdx
leaq -0x153(%rip), %rsi      # 0x25a8
movq %rbx, %rdi
callq 0x397b
movq %rax, %r14
movq 0x30(%rbx), %rdi
callq 0xa7bf
leaq -0x219(%rip), %rsi      # 0x24fd
movq %rax, %rdi
movq %r14, %rdx
callq 0x30da
movq 0x30(%rbx), %rdi
callq 0xa8ca
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
jmp 0x276f
movq 0x30(%rbx), %rdi
callq 0xa7bf
leaq -0x334(%rip), %rsi      # 0x2411
movq %rax, %rdi
movq %r12, %rdx
callq 0x30da
movq 0xfc01(%rip), %rsi      # 0x12358
leaq 0xfb1a(%rip), %rdx      # 0x12278
movq %rbx, %rdi
callq 0x3a58
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x3a58
movq %rsp, %rdi
movl $0x75, 0xc(%rdi)
callq 0xc7b6
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xa910(%rip), %rdi      # 0xd0a9
leaq 0xa8d7(%rip), %rsi      # 0xd077
leaq 0xa8dd(%rip), %rcx      # 0xd084
pushq $0x63
jmp 0x27f4
leaq 0xa8ba(%rip), %rdi      # 0xd06c
leaq 0xa8be(%rip), %rsi      # 0xd077
leaq 0xa8c4(%rip), %rcx      # 0xd084
pushq $0x62
jmp 0x27f4
leaq 0xa8ea(%rip), %rdi      # 0xd0b5
leaq 0xa8a5(%rip), %rsi      # 0xd077
leaq 0xa8ab(%rip), %rcx      # 0xd084
pushq $0x65
jmp 0x27f4
leaq 0xa8df(%rip), %rdi      # 0xd0c3
leaq 0xa88c(%rip), %rsi      # 0xd077
leaq 0xa892(%rip), %rcx      # 0xd084
pushq $0x67
popq %rdx
callq 0x2100