// File: /workspace/github_cpp_makefile_star2_O1/eugene87222[P]Game-of-Life/gol.cpp
// Function: draw(int, int, char*, int, int)
void draw(int height, int width, char *status_background, int gen, int ms) {
	int not_first;
    for(int i=0; i<=height+1; i++) {
		for(int j=0; j<=width+1; j++) {
            not_first = (int)(j>0);
            if(i==0 && j==0) mvaddstr(i, j, "╔");
            else if(i==height+1 && j==0) mvaddstr(i, j, "╚");
            else if(i==0 && j==width+1) mvaddstr(i, j*2-not_first, "╗");
            else if(i==height+1 && j==width+1) mvaddstr(i, j*2-not_first, "╝");
            else if(i==0 || i==height+1) mvaddstr(i, j*2-not_first, "══");
            else if(j==0 || j==width+1) mvaddstr(i, j*2-not_first, "║");
            else if(board[i][j] == 0) mvaddstr(i, j*2-not_first, "  ");
            else mvaddstr(i, j*2-not_first, "██");
		}
    }
	status(status_background, gen, ms);
	refresh();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %r8d, 0x14(%rsp)
movl %ecx, 0x10(%rsp)
movq %rdx, 0x28(%rsp)
movq %rsi, 0x18(%rsp)
cmpl $-0x1, %edi
jl 0x2bc2
movq %rdi, %rax
movq %rdi, %rcx
incl %eax
movq %rax, 0x30(%rsp)
movq 0x18(%rsp), %rax
leal 0x1(%rax), %edx
movq %rdx, 0x20(%rsp)
addl $0x2, %eax
movq %rax, 0x40(%rsp)
addl $0x2, %ecx
movq %rcx, 0x38(%rsp)
xorl %r13d, %r13d
movq 0x3596(%rip), %rbp      # 0x5fd0
cmpl $-0x1, 0x18(%rsp)
jl 0x2bb4
testq %r13, %r13
sete %al
movq 0x30(%rsp), %rcx
cmpq %rcx, %r13
sete %dl
orb %al, %dl
movb %dl, 0xf(%rsp)
xorl %r12d, %r12d
movq %r13, %r14
xorq %rcx, %r14
xorl %r15d, %r15d
xorl %eax, %eax
testq %r15, %r15
setne %cl
movl %r15d, %edx
orl %r13d, %edx
je 0x2a9a
movq %r14, %rdx
orq %r15, %rdx
jne 0x2ab3
movq (%rbp), %rdi
movl %r13d, %esi
xorl %edx, %edx
callq 0x20e0
leaq 0x1657(%rip), %rbx      # 0x40ec
jmp 0x2b8c
movq (%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x20e0
leaq 0x163a(%rip), %rbx      # 0x40e8
jmp 0x2b8c
movb %cl, %al
movq 0x20(%rsp), %rcx
xorq %r15, %rcx
movq %r13, %rdx
orq %rcx, %rdx
jne 0x2ae1
movq (%rbp), %rdi
movl %r12d, %edx
subl %eax, %edx
xorl %esi, %esi
callq 0x20e0
leaq 0x1614(%rip), %rbx      # 0x40f0
jmp 0x2b8c
orq %r14, %rcx
jne 0x2b03
movq (%rbp), %rdi
movl %r12d, %edx
subl %eax, %edx
movl %r13d, %esi
callq 0x20e0
leaq 0x15f6(%rip), %rbx      # 0x40f4
jmp 0x2b8c
cmpb $0x0, 0xf(%rsp)
je 0x2b24
movq (%rbp), %rdi
movl %r12d, %edx
subl %eax, %edx
movl %r13d, %esi
callq 0x20e0
leaq 0x161c(%rip), %rbx      # 0x413e
jmp 0x2b8c
cmpq %r15, 0x20(%rsp)
setne %cl
testq %r15, %r15
setne %dl
testb %cl, %dl
jne 0x2b50
movq (%rbp), %rdi
movl %r12d, %edx
subl %eax, %edx
movl %r13d, %esi
callq 0x20e0
leaq 0x15aa(%rip), %rbx      # 0x40f8
jmp 0x2b8c
movq 0x3621(%rip), %rcx      # 0x6178
leaq (,%r13,2), %rdx
addq %r13, %rdx
movq (%rcx,%rdx,8), %rcx
cmpl $0x0, (%rcx,%r15,4)
leaq 0x158a(%rip), %rbx      # 0x40fc
je 0x2b7b
leaq 0x1584(%rip), %rbx      # 0x40ff
movl %r12d, %edx
subl %eax, %edx
movq (%rbp), %rdi
movl %r13d, %esi
callq 0x20e0
cmpl $-0x1, %eax
je 0x2ba2
movq (%rbp), %rdi
movq %rbx, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2250
incq %r15
addl $0x2, %r12d
cmpq %r15, 0x40(%rsp)
jne 0x2a68
incq %r13
cmpq 0x38(%rsp), %r13
jne 0x2a3a
movq 0x28(%rsp), %rdi
movl 0x10(%rsp), %esi
movl 0x14(%rsp), %edx
callq 0x2990
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2030