// File: /workspace/github_cpp_makefile_star2_O3/matallui[P]nibble-curses/src/CNibbles.cpp
// Function: CNibbles::PlayerDies(int const&) const
void CNibbles::PlayerDies ( int const & player ) const
{
  nodelay ( stdscr, false );
  
  char title[31];
  sprintf ( title, "*       PLAYER %d dies!!      *", player );
  
  if ( m_mode == 3 )
  {
    char buffer[3];
    bzero ( buffer, 3 );
    
    if ( (m_master && player == 1) || (!m_master && player == 2) )
    {
      PopUp ( (char*)title, (char*)"*   press space to continue  *" );
      while ( getch () != ' ' );
      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
    {
      PopUp ( (char*)title, (char*)"*   waiting to continue ...  *" );
      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
  {
    PopUp ( (char*)title, (char*)"*   press space to continue  *" );
    while ( getch () != ' ' );
  }
  nodelay ( stdscr, true );
  touchwin ( stdscr );
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x50, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x5352(%rip), %r15      # 0xcfd0
movq (%r15), %rdi
xorl %esi, %esi
callq 0x3190
movl (%r14), %edx
leaq 0x17ee(%rip), %rsi      # 0x9480
leaq -0x70(%rbp), %rdi
xorl %eax, %eax
callq 0x3070
cmpl $0x3, 0x14(%rbx)
jne 0x7d9d
movb $0x0, -0x22(%rbp)
movw $0x0, -0x24(%rbp)
movzbl 0x18(%rbx), %eax
movl $0x2, %ecx
subl %eax, %ecx
cmpl %ecx, (%r14)
jne 0x7dbc
leaq 0x17d4(%rip), %rdx      # 0x94a0
leaq -0x70(%rbp), %rsi
callq 0x7b34
movq (%r15), %rdi
callq 0x3110
cmpl $0x20, %eax
jne 0x7cd5
leaq -0x24(%rbp), %rsi
movb $0x0, 0x2(%rsi)
movw $0x4f47, (%rsi)         # imm = 0x4F47
movq 0x48(%rbx), %rdi
leaq -0x48(%rbp), %rdx
movl $0x3, (%rdx)
movq (%rdi), %rax
callq *0x20(%rax)
testb %al, %al
je 0x7e69
leaq -0x24(%rbp), %rsi
movb $0x0, 0x2(%rsi)
movw $0x0, (%rsi)
movq 0x48(%rbx), %rdi
leaq -0x48(%rbp), %rdx
movl $0x3, (%rdx)
movq (%rdi), %rax
callq *0x28(%rax)
testb %al, %al
je 0x7f1b
cmpb $0x4f, -0x24(%rbp)
jne 0x7d44
cmpb $0x4b, -0x23(%rbp)
je 0x7e2e
movl $0x20, %edi
callq 0x3160
movq %rax, %rbx
leaq -0x38(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x167b(%rip), %rsi      # 0x93db
leaq 0x1690(%rip), %rdx      # 0x93f7
leaq -0x48(%rbp), %rdi
callq 0x376e
movb $0x1, %r12b
leaq -0x48(%rbp), %rsi
movq %rbx, %rdi
callq 0x35f8
xorl %r12d, %r12d
leaq 0x4fef(%rip), %rsi      # 0xcd78
leaq 0x678(%rip), %rdx       # 0x8408
movq %rbx, %rdi
callq 0x33f0
jmp 0x801e
leaq 0x16fc(%rip), %rdx      # 0x94a0
leaq -0x70(%rbp), %rsi
callq 0x7b34
movq (%r15), %rdi
callq 0x3110
cmpl $0x20, %eax
jne 0x7dad
jmp 0x7e2e
leaq 0x16fc(%rip), %rdx      # 0x94bf
leaq -0x70(%rbp), %rsi
callq 0x7b34
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 0x7ec2
cmpb $0x47, -0x24(%rbp)
jne 0x7f74
cmpb $0x4f, -0x23(%rbp)
jne 0x7f74
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
je 0x7fca
callq 0x3140
movq (%r15), %rdi
movl $0x1, %esi
callq 0x3190
movq (%r15), %rdi
testq %rdi, %rdi
je 0x7e4b
movswl 0x4(%rdi), %edx
incl %edx
jmp 0x7e50
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
xorl %esi, %esi
movl $0x1, %ecx
callq 0x3380
addq $0x50, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0x3160
movq %rax, %rbx
leaq -0x38(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x1556(%rip), %rsi      # 0x93db
leaq 0x156b(%rip), %rdx      # 0x93f7
leaq -0x48(%rbp), %rdi
callq 0x376e
movb $0x1, %r12b
leaq -0x48(%rbp), %rsi
movq %rbx, %rdi
callq 0x35f8
xorl %r12d, %r12d
leaq 0x4eca(%rip), %rsi      # 0xcd78
leaq 0x553(%rip), %rdx       # 0x8408
movq %rbx, %rdi
callq 0x33f0
jmp 0x801e
movl $0x20, %edi
callq 0x3160
movq %rax, %rbx
leaq -0x38(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x14fd(%rip), %rsi      # 0x93db
leaq 0x1512(%rip), %rdx      # 0x93f7
leaq -0x48(%rbp), %rdi
callq 0x376e
movb $0x1, %r12b
leaq -0x48(%rbp), %rsi
movq %rbx, %rdi
callq 0x35f8
xorl %r12d, %r12d
leaq 0x4e71(%rip), %rsi      # 0xcd78
leaq 0x4fa(%rip), %rdx       # 0x8408
movq %rbx, %rdi
callq 0x33f0
jmp 0x801e
movl $0x20, %edi
callq 0x3160
movq %rax, %rbx
leaq -0x38(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x14a4(%rip), %rsi      # 0x93db
leaq 0x14b9(%rip), %rdx      # 0x93f7
leaq -0x48(%rbp), %rdi
callq 0x376e
movb $0x1, %r12b
leaq -0x48(%rbp), %rsi
movq %rbx, %rdi
callq 0x35f8
xorl %r12d, %r12d
leaq 0x4e18(%rip), %rsi      # 0xcd78
leaq 0x4a1(%rip), %rdx       # 0x8408
movq %rbx, %rdi
callq 0x33f0
jmp 0x801e
movl $0x20, %edi
callq 0x3160
movq %rax, %rbx
leaq -0x38(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x144b(%rip), %rsi      # 0x93db
leaq 0x1460(%rip), %rdx      # 0x93f7
leaq -0x48(%rbp), %rdi
callq 0x376e
movb $0x1, %r12b
leaq -0x48(%rbp), %rsi
movq %rbx, %rdi
callq 0x35f8
xorl %r12d, %r12d
leaq 0x4dbf(%rip), %rsi      # 0xcd78
leaq 0x448(%rip), %rdx       # 0x8408
movq %rbx, %rdi
callq 0x33f0
jmp 0x801e
movl $0x20, %edi
callq 0x3160
movq %rax, %rbx
leaq -0x38(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x13f5(%rip), %rsi      # 0x93db
leaq 0x140a(%rip), %rdx      # 0x93f7
leaq -0x48(%rbp), %rdi
callq 0x376e
movb $0x1, %r12b
leaq -0x48(%rbp), %rsi
movq %rbx, %rdi
callq 0x35f8
xorl %r12d, %r12d
leaq 0x4d69(%rip), %rsi      # 0xcd78
leaq 0x3f2(%rip), %rdx       # 0x8408
movq %rbx, %rdi
callq 0x33f0
jmp 0x8030
jmp 0x8051
jmp 0x8030
jmp 0x8051
jmp 0x8030
jmp 0x8051
jmp 0x8030
jmp 0x8051
jmp 0x8030
movq %rax, %r14
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0x8048
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3280
testb %r12b, %r12b
jne 0x8054
jmp 0x805c
jmp 0x8051
movq %rax, %r14
movq %rbx, %rdi
callq 0x31e0
movq %r14, %rdi
callq 0x3400