// File: /workspace/github_cpp_makefile_star2_O2/matallui[P]nibble-curses/src/CNibbles.cpp
// Function: CNibbles::PresentLevel()
void CNibbles::PresentLevel ( void )
{
  bkgd ( COLOR_PAIR (1) );
  attrset ( COLOR_PAIR(2) );
  for ( int j = 0; j < m_maxCols; j++ )
  {
    mvaddch ( 0, j, '*' );
    mvaddch ( m_maxLines-1, j, '*' );
  }
  for ( int i = 0; i < m_maxLines; i++ )
  {
    mvaddch ( i, 0, '*' );
    mvaddch ( i, m_maxCols-1, '*' );
  }
  
  attrset ( COLOR_PAIR(3) );
  move ( 15, 39 );
  attron ( A_BOLD );
  printw ( "LEVEL %d / 10", m_level );
  attroff ( A_BOLD );
  if ( m_mode == 3 )
  {
    char buffer[3];
    bzero ( buffer, 3 );
    if (  (m_master && m_snakes[0]->getLives() ) || ( !m_master && !m_snakes[0]->getLives() ) )
    {
      move ( 19, 32 );
      printw ( "* Press SPACE to continue... *" );
      refresh();
      nodelay( stdscr, false );
      while ( getch() != ' ' );
      nodelay( stdscr, true );
      sprintf ( buffer, "GO" );
      if ( ! m_socket->Send ( buffer, 3 ) )		throw CException( "Problems with communication." );
      bzero ( buffer, 3 );
      if ( ! m_socket->Recv ( buffer, 3 ) )		throw CException( "Problems with communication." );
      if ( buffer[0] != 'O' || buffer[1] != 'K' )	throw CException( "Problems with communication." );
    }
    else
    {
      move ( 21, 32 );
      printw ( "* Waiting for answer... *" );
      refresh();
      if ( ! m_socket->Recv ( buffer, 3 ) )		throw CException( "Problems with communication." );
      if ( buffer[0] !='G' || buffer[1] != 'O' )	throw CException( "Problems with communication." );
      sprintf ( buffer, "OK" );
      if ( ! m_socket->Send ( buffer, 3 ) )		throw CException( "Problems with communication." );
    }
    flushinp();
  }
  else
  {
    move ( 19, 32 );
    printw ( "* Press SPACE to continue... *" );
    refresh();
    nodelay( stdscr, false );
    while ( getch() != ' ' );
    nodelay( stdscr, true );
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
movq 0x4f55(%rip), %r12      # 0xbfd0
movq (%r12), %rdi
movl $0x100, %esi            # imm = 0x100
callq 0x33f0
movq (%r12), %rdi
movl $0x200, %esi            # imm = 0x200
callq 0x32c0
xorl %r14d, %r14d
pushq $0x2a
popq %r15
cmpl 0x4(%rbx), %r14d
jge 0x70e9
movq (%r12), %rdi
xorl %esi, %esi
movl %r14d, %edx
callq 0x32b0
cmpl $-0x1, %eax
je 0x70c3
movq (%r12), %rdi
movl %r15d, %esi
callq 0x30b0
movq (%r12), %rdi
movl (%rbx), %esi
decl %esi
movl %r14d, %edx
callq 0x32b0
cmpl $-0x1, %eax
je 0x70e4
movq (%r12), %rdi
movl %r15d, %esi
callq 0x30b0
incl %r14d
jmp 0x709e
xorl %r14d, %r14d
pushq $0x2a
popq %r15
movq (%r12), %rdi
cmpl (%rbx), %r14d
jge 0x713b
movl %r14d, %esi
xorl %edx, %edx
callq 0x32b0
cmpl $-0x1, %eax
je 0x7114
movq (%r12), %rdi
movl %r15d, %esi
callq 0x30b0
movq (%r12), %rdi
movl 0x4(%rbx), %edx
decl %edx
movl %r14d, %esi
callq 0x32b0
cmpl $-0x1, %eax
je 0x7136
movq (%r12), %rdi
movl %r15d, %esi
callq 0x30b0
incl %r14d
jmp 0x70f0
movl $0x300, %esi            # imm = 0x300
callq 0x32c0
pushq $0xf
popq %rdi
pushq $0x27
popq %rsi
callq 0x31d0
movq (%r12), %rdi
movl $0x200000, %esi         # imm = 0x200000
xorl %edx, %edx
callq 0x3160
movl 0x8(%rbx), %esi
leaq 0x128e(%rip), %rdi      # 0x83f8
xorl %eax, %eax
callq 0x3290
movq (%r12), %rdi
movl $0x200000, %esi         # imm = 0x200000
xorl %edx, %edx
callq 0x3340
cmpl $0x3, 0x14(%rbx)
jne 0x7291
andw $0x0, -0x24(%rbp)
movb $0x0, -0x22(%rbp)
movb 0x18(%rbx), %al
cmpb $0x1, %al
jne 0x71b2
movq 0x30(%rbx), %rax
movq (%rax), %rdi
callq 0x3d02
testl %eax, %eax
jne 0x72e0
movb 0x18(%rbx), %al
testb $0x1, %al
jne 0x71ca
movq 0x30(%rbx), %rax
movq (%rax), %rdi
callq 0x3d02
testl %eax, %eax
je 0x72e0
pushq $0x15
popq %rdi
pushq $0x20
popq %rsi
callq 0x31d0
leaq 0x124c(%rip), %rdi      # 0x8428
xorl %eax, %eax
callq 0x3290
callq 0x3400
movq 0x48(%rbx), %rdi
leaq -0x48(%rbp), %rdx
movl $0x3, (%rdx)
movq (%rdi), %rax
leaq -0x24(%rbp), %rsi
callq *0x28(%rax)
testb %al, %al
je 0x739a
cmpb $0x47, -0x24(%rbp)
jne 0x73e6
cmpb $0x4f, -0x23(%rbp)
jne 0x73e6
leaq -0x24(%rbp), %rsi
movb $0x0, 0x2(%rsi)
movw $0x4b4f, (%rsi)         # imm = 0x4B4F
movq 0x48(%rbx), %rdi
leaq -0x48(%rbp), %rdx
movl $0x3, (%rdx)
movq (%rdi), %rax
callq *0x20(%rax)
testb %al, %al
jne 0x7388
pushq $0x20
popq %rdi
callq 0x3180
movq %rax, %rbx
leaq 0x1184(%rip), %rsi      # 0x83db
leaq -0x48(%rbp), %rdi
leaq -0x21(%rbp), %rdx
callq 0x369c
movb $0x1, %r15b
leaq -0x48(%rbp), %rsi
movq %rbx, %rdi
callq 0x361a
xorl %r15d, %r15d
leaq 0x4afb(%rip), %rsi      # 0xbd78
leaq 0xaca(%rip), %rdx       # 0x7d4e
movq %rbx, %rdi
callq 0x3410
jmp 0x750e
pushq $0x13
popq %rdi
pushq $0x20
popq %rsi
callq 0x31d0
leaq 0x1163(%rip), %rdi      # 0x8406
xorl %eax, %eax
callq 0x3290
callq 0x3400
movq (%r12), %rdi
xorl %esi, %esi
callq 0x31b0
movq (%r12), %rdi
callq 0x3100
cmpl $0x20, %eax
jne 0x72ba
movq (%r12), %rdi
pushq $0x1
popq %rsi
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x31b0
pushq $0x13
popq %rdi
pushq $0x20
popq %rsi
callq 0x31d0
leaq 0x1114(%rip), %rdi      # 0x8406
xorl %eax, %eax
callq 0x3290
callq 0x3400
movq (%r12), %rdi
xorl %esi, %esi
callq 0x31b0
movq (%r12), %rdi
callq 0x3100
cmpl $0x20, %eax
jne 0x7309
movq (%r12), %rdi
pushq $0x1
popq %rsi
callq 0x31b0
leaq -0x24(%rbp), %rsi
movw $0x4f47, (%rsi)         # imm = 0x4F47
movb $0x0, 0x2(%rsi)
movq 0x48(%rbx), %rdi
leaq -0x48(%rbp), %rdx
movl $0x3, (%rdx)
movq (%rdi), %rax
callq *0x20(%rax)
testb %al, %al
je 0x7432
leaq -0x24(%rbp), %rsi
movb $0x0, 0x2(%rsi)
andw $0x0, (%rsi)
movq 0x48(%rbx), %rdi
leaq -0x48(%rbp), %rdx
movl $0x3, (%rdx)
movq (%rdi), %rax
callq *0x28(%rax)
testb %al, %al
je 0x747e
cmpb $0x4f, -0x24(%rbp)
jne 0x74c7
cmpb $0x4b, -0x23(%rbp)
jne 0x74c7
callq 0x3130
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
pushq $0x20
popq %rdi
callq 0x3180
movq %rax, %rbx
leaq 0x102f(%rip), %rsi      # 0x83db
leaq -0x48(%rbp), %rdi
leaq -0x21(%rbp), %rdx
callq 0x369c
movb $0x1, %r15b
leaq -0x48(%rbp), %rsi
movq %rbx, %rdi
callq 0x361a
xorl %r15d, %r15d
leaq 0x49a6(%rip), %rsi      # 0xbd78
leaq 0x975(%rip), %rdx       # 0x7d4e
movq %rbx, %rdi
callq 0x3410
jmp 0x750e
pushq $0x20
popq %rdi
callq 0x3180
movq %rax, %rbx
leaq 0xfe3(%rip), %rsi       # 0x83db
leaq -0x48(%rbp), %rdi
leaq -0x21(%rbp), %rdx
callq 0x369c
movb $0x1, %r15b
leaq -0x48(%rbp), %rsi
movq %rbx, %rdi
callq 0x361a
xorl %r15d, %r15d
leaq 0x495a(%rip), %rsi      # 0xbd78
leaq 0x929(%rip), %rdx       # 0x7d4e
movq %rbx, %rdi
callq 0x3410
jmp 0x750e
pushq $0x20
popq %rdi
callq 0x3180
movq %rax, %rbx
leaq 0xf97(%rip), %rsi       # 0x83db
leaq -0x48(%rbp), %rdi
leaq -0x21(%rbp), %rdx
callq 0x369c
movb $0x1, %r15b
leaq -0x48(%rbp), %rsi
movq %rbx, %rdi
callq 0x361a
xorl %r15d, %r15d
leaq 0x490e(%rip), %rsi      # 0xbd78
leaq 0x8dd(%rip), %rdx       # 0x7d4e
movq %rbx, %rdi
callq 0x3410
jmp 0x750e
pushq $0x20
popq %rdi
callq 0x3180
movq %rax, %rbx
leaq 0xf4b(%rip), %rsi       # 0x83db
leaq -0x48(%rbp), %rdi
leaq -0x21(%rbp), %rdx
callq 0x369c
movb $0x1, %r15b
leaq -0x48(%rbp), %rsi
movq %rbx, %rdi
callq 0x361a
xorl %r15d, %r15d
leaq 0x48c2(%rip), %rsi      # 0xbd78
leaq 0x891(%rip), %rdx       # 0x7d4e
movq %rbx, %rdi
callq 0x3410
jmp 0x750e
pushq $0x20
popq %rdi
callq 0x3180
movq %rax, %rbx
leaq 0xf02(%rip), %rsi       # 0x83db
leaq -0x48(%rbp), %rdi
leaq -0x21(%rbp), %rdx
callq 0x369c
movb $0x1, %r15b
leaq -0x48(%rbp), %rsi
movq %rbx, %rdi
callq 0x361a
xorl %r15d, %r15d
leaq 0x4879(%rip), %rsi      # 0xbd78
leaq 0x848(%rip), %rdx       # 0x7d4e
movq %rbx, %rdi
callq 0x3410
jmp 0x7522
jmp 0x7535
jmp 0x7522
jmp 0x7535
jmp 0x7522
jmp 0x7535
jmp 0x7522
jmp 0x7535
jmp 0x7522
jmp 0x7535
movq %rax, %r14
leaq -0x48(%rbp), %rdi
callq 0x3150
testb %r15b, %r15b
jne 0x7538
jmp 0x7540
movq %rax, %r14
movq %rbx, %rdi
callq 0x31f0
movq %r14, %rdi
callq 0x3420