// File: /workspace/github_c_makefile_star2_O2/dalnefre[P]kernel_abe/actor.c
// Function: new_configuration
CONFIG*
new_configuration(int q_limit)
/*
 * Create a new (empty) actor configuration.
 */
{
	CONFIG* cfg = NULL;
	CELL* cell;
	CONS* cq;
	struct timeval tv;

	DBUG_ENTER("new_configuration");
	cfg = NEW(CONFIG);
	assert(cfg != NULL);
	cell = as_cell(cfg);
	cq = CONFIG_QUEUE(cfg);
	assert(consp(cq));
	GC_SET_FIRST(cell, NIL);
	GC_SET_REST(cell, NIL);
	GC_SET_PREV(cell, cell);
	GC_SET_NEXT(cell, cell);
	cfg->gc_root = NIL;
	cfg->q_count = 0;
	cfg->q_entry = NIL;
	cfg->msg_cnt_hi = 0;
	cfg->msg_cnt_lo = 0;
	cfg->q_limit = q_limit;
	if (gettimeofday(&tv, NULL) == 0) {
		cfg->t_epoch = tv.tv_sec;
		DBUG_PRINT("timer", ("epoch=%d", cfg->t_epoch));
		cfg->t_now_s = (tv.tv_sec - cfg->t_epoch);
		cfg->t_now_us = tv.tv_usec;
		DBUG_PRINT("timer", ("t = %lus %luus", cfg->t_now_s, cfg->t_now_us));
	}
	cfg->t_queue = NIL;
	cfg->t_count = 0;
	DBUG_RETURN cfg;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %edi, %ebp
leaq 0xaf45(%rip), %rax      # 0x1cc6c
leaq 0x10(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x125fa(%rip), %r14     # 0x24330
movq (%r14), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0xd4, 0xc(%rdi)
leaq 0xa5f9(%rip), %rcx      # 0x1c34a
movq %rcx, 0x10(%rdi)
leaq 0x1244c(%rip), %rcx     # 0x241a8
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x1b079
pushq $0x70
popq %rdi
pushq $0x1
popq %rsi
callq 0x2160
testq %rax, %rax
je 0x11ea5
movq %rax, %rbx
testb $0x3, %bl
jne 0x11ec4
leaq 0x12510(%rip), %r15     # 0x242a0
movq %r15, (%rbx)
movq %r15, 0x8(%rbx)
movq %rbx, %rax
sarq $0x2, %rax
movq %rax, 0x10(%rbx)
movq %rax, 0x18(%rbx)
movq %r15, 0x20(%rbx)
movq %r15, 0x30(%rbx)
movl %ebp, 0x40(%rbx)
movq %rsp, %rdi
xorl %esi, %esi
callq 0x20f0
testl %eax, %eax
je 0x11dea
movq %r15, 0x60(%rbx)
andl $0x0, 0x68(%rbx)
leaq 0x10(%rsp), %rdi
movl $0xed, 0xc(%rdi)
callq 0x1b1f2
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq (%rsp), %r13
movq %r13, 0x48(%rbx)
leaq 0x12b37(%rip), %r12     # 0x24930
cmpl $0x0, (%r12)
movq %r13, %rsi
je 0x11e42
movq (%r14), %rax
movq 0x50(%rax), %rax
leaq 0xaea2(%rip), %rdi      # 0x1ccb3
movq %rdi, 0x10(%rax)
callq 0x1a7f4
movq 0x48(%rbx), %rsi
testl %eax, %eax
je 0x11e42
movq (%r14), %rax
movq 0x50(%rax), %rax
movl $0xe6, 0xc(%rax)
leaq 0xae82(%rip), %rdi      # 0x1ccb9
xorl %eax, %eax
callq 0x1b0f0
movq 0x48(%rbx), %rsi
subq %rsi, %r13
movq %r13, 0x50(%rbx)
movq 0x8(%rsp), %rax
movq %rax, 0x58(%rbx)
cmpl $0x0, (%r12)
je 0x11dbf
movq (%r14), %rax
movq 0x50(%rax), %rax
leaq 0xae48(%rip), %rdi      # 0x1ccb3
movq %rdi, 0x10(%rax)
callq 0x1a7f4
testl %eax, %eax
je 0x11dbf
movq (%r14), %rax
movq 0x50(%rax), %rax
movl $0xe9, 0xc(%rax)
movq 0x50(%rbx), %rsi
movq 0x58(%rbx), %rdx
leaq 0xae29(%rip), %rdi      # 0x1ccc2
xorl %eax, %eax
callq 0x1b0f0
jmp 0x11dbf
leaq 0xadd2(%rip), %rdi      # 0x1cc7e
leaq 0xad25(%rip), %rsi      # 0x1cbd8
leaq 0xadd0(%rip), %rcx      # 0x1cc8a
movl $0xd6, %edx
callq 0x2100
leaq 0xadde(%rip), %rdi      # 0x1cca9
leaq 0xad06(%rip), %rsi      # 0x1cbd8
leaq 0xadb1(%rip), %rcx      # 0x1cc8a
movl $0xd9, %edx
callq 0x2100