// File: /workspace/github_c_makefile_star2_O0/dalnefre[P]kernel_abe/life.c
// Function: init_life
CONFIG*
init_life()
{
	static BOOL init_done = FALSE;
	int x, y;
	CONFIG* cfg;
	
	DBUG_ENTER("init_life");
	if (init_done) {
		DBUG_RETURN NULL;
	}
	DBUG_PRINT("", ("init needed"));
	cfg = new_configuration(1000);
	for (y = 0; y < Y_MAX; ++y) {
		for (x = 0; x < X_MAX; ++x) {
			CONS* state = NIL;
			state = map_put(state, ATOM("y"), NUMBER(y));
			state = map_put(state, ATOM("x"), NUMBER(x));
			state = map_put(state, ATOM("value"), NUMBER(get_grid_value(x, y)));
			cells[y][x] = CFG_ACTOR(cfg, cell_actor, state);
			DBUG_PRINT("", ("cell(%d,%d) = %s", x, y, cons_to_str(cells[y][x])));
		}
	}
	init_done = TRUE;
	DBUG_RETURN cfg;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
leaq 0xf835(%rip), %rax      # 0x13144
movq %rax, -0x40(%rbp)
leaq 0x14ace(%rip), %rax     # 0x183e8
movq (%rax), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %eax
movl %eax, -0x38(%rbp)
movl $0x15c, -0x34(%rbp)     # imm = 0x15C
leaq 0x1167b(%rip), %rax     # 0x14fb0
movq %rax, -0x30(%rbp)
leaq 0x148e0(%rip), %rax     # 0x18220
movq %rax, -0x28(%rbp)
leaq 0x14a9d(%rip), %rax     # 0x183e8
movq (%rax), %rax
movq 0x50(%rax), %rax
movq %rax, -0x20(%rbp)
leaq -0x40(%rbp), %rdi
callq 0x11fa0
cmpq $0x0, 0x14cd9(%rip)     # 0x18640
je 0x3986
movl $0x15e, -0x34(%rbp)     # imm = 0x15E
leaq -0x40(%rbp), %rdi
callq 0x12170
movq $0x0, -0x8(%rbp)
jmp 0x3bc5
jmp 0x3988
leaq 0x15201(%rip), %rax     # 0x18b90
cmpl $0x0, (%rax)
je 0x39e1
leaq 0x14a4d(%rip), %rax     # 0x183e8
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x11607(%rip), %rcx     # 0x14fb0
movq %rcx, 0x10(%rax)
leaq 0x115fc(%rip), %rdi     # 0x14fb0
callq 0x113b0
cmpl $0x0, %eax
je 0x39e1
leaq 0x14a23(%rip), %rax     # 0x183e8
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x160, 0xc(%rax)       # imm = 0x160
leaq 0xf774(%rip), %rdi      # 0x1314e
movb $0x0, %al
callq 0x12050
jmp 0x39e3
movl $0x3e8, %edi            # imm = 0x3E8
callq 0x48d0
movq %rax, -0x18(%rbp)
movl $0x0, -0x10(%rbp)
cmpl $0x8, -0x10(%rbp)
jge 0x3ba1
movl $0x0, -0xc(%rbp)
cmpl $0x8, -0xc(%rbp)
jge 0x3b91
leaq 0x1493e(%rip), %rax     # 0x18358
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x68(%rbp)
leaq 0xfe43(%rip), %rdi      # 0x13870
callq 0xb1f0
movq -0x68(%rbp), %rdi
movq %rax, %rsi
movslq -0x10(%rbp), %rdx
shlq $0x2, %rdx
orq $0x3, %rdx
callq 0xf930
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x60(%rbp)
leaq 0x10956(%rip), %rdi     # 0x143b3
callq 0xb1f0
movq -0x60(%rbp), %rdi
movq %rax, %rsi
movslq -0xc(%rbp), %rdx
shlq $0x2, %rdx
orq $0x3, %rdx
callq 0xf930
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x58(%rbp)
leaq 0x10cc7(%rip), %rdi     # 0x14754
callq 0xb1f0
movq %rax, -0x50(%rbp)
movl -0xc(%rbp), %edi
movl -0x10(%rbp), %esi
callq 0x2370
movq -0x58(%rbp), %rdi
movq -0x50(%rbp), %rsi
movslq %eax, %rdx
shlq $0x2, %rdx
orq $0x3, %rdx
callq 0xf930
movq %rax, -0x48(%rbp)
movq -0x18(%rbp), %rdi
movq -0x48(%rbp), %rdx
leaq -0xcfc(%rip), %rsi      # 0x2dd0
callq 0x5200
movq %rax, %rdx
movslq -0x10(%rbp), %rcx
leaq 0x14961(%rip), %rax     # 0x18440
shlq $0x6, %rcx
addq %rcx, %rax
movslq -0xc(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
leaq 0x1509b(%rip), %rax     # 0x18b90
cmpl $0x0, (%rax)
je 0x3b7f
leaq 0x148e3(%rip), %rax     # 0x183e8
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x1149d(%rip), %rcx     # 0x14fb0
movq %rcx, 0x10(%rax)
leaq 0x11492(%rip), %rdi     # 0x14fb0
callq 0x113b0
cmpl $0x0, %eax
je 0x3b7f
leaq 0x148b9(%rip), %rax     # 0x183e8
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x169, 0xc(%rax)       # imm = 0x169
movl -0xc(%rbp), %eax
movl %eax, -0x70(%rbp)
movl -0x10(%rbp), %eax
movl %eax, -0x6c(%rbp)
movslq -0x10(%rbp), %rcx
leaq 0x148ec(%rip), %rax     # 0x18440
shlq $0x6, %rcx
addq %rcx, %rax
movslq -0xc(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x6d60
movl -0x70(%rbp), %esi
movl -0x6c(%rbp), %edx
movq %rax, %rcx
leaq 0xf5e2(%rip), %rdi      # 0x1315a
movb $0x0, %al
callq 0x12050
jmp 0x3b81
jmp 0x3b83
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x3a09
jmp 0x3b93
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0x39f8
movl $0x1, %eax
movq %rax, 0x14a93(%rip)     # 0x18640
movl $0x16d, -0x34(%rbp)     # imm = 0x16D
leaq -0x40(%rbp), %rdi
callq 0x12170
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x70, %rsp
popq %rbp
retq
nop