// File: /workspace/github_cpp_makefile_star2_O3/matallui[P]nibble-curses/src/CMultPC.cpp
// Function: CMultPC::Initialize(int const&)
void CMultPC::Initialize ( int const & nlevel )
{
  if ( !m_lives ) return;
  if ( m_playerid == 1 ) 
  {
    CSingle::Initialize ( nlevel );
    return;
  }
  
  m_size = 3;
  m_head = 2;
  m_tail = 0;
  m_delay = 0;
  
  switch ( nlevel )
  {
    case 1:
      m_body[2].Update ( 19, 20 );
      m_body[1].Update ( 19, 19 );
      m_body[0].Update ( 19, 18 );
      m_direction = 'R';
      break;
    case 2:
      m_body[2].Update ( 26, 20 );
      m_body[1].Update ( 26, 19 );
      m_body[0].Update ( 26, 18 );
      m_direction = 'R';
      break;
    case 3:
    case 4:
    case 6:
    case 7:
      m_body[2].Update ( 31, 20 );
      m_body[1].Update ( 31, 19 );
      m_body[0].Update ( 31, 18 );
      m_direction = 'R';
      break;
    case 5:
      m_body[2].Update ( 19, 20 );
      m_body[1].Update ( 19, 19 );
      m_body[0].Update ( 19, 18 );
      m_direction = 'R';
      break;
    case 8:
    case 10:
      m_body[2].Update ( 30, 5 );
      m_body[1].Update ( 31, 5 );
      m_body[0].Update ( 32, 5 );
      m_direction = 'U';
      break;
    case 9:
      m_body[2].Update ( 34, 20 );
      m_body[1].Update ( 34, 19 );
      m_body[0].Update ( 34, 18 );
      m_direction = 'R';
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
cmpl $0x0, 0x24(%rdi)
je 0x446e
movq %rdi, %rbx
cmpl $0x1, 0x38(%rdi)
jne 0x430a
movq %rbx, %rdi
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x3e3a
movabsq $0x200000003, %rax      # imm = 0x200000003
movq %rax, 0x14(%rbx)
xorl %eax, %eax
movl %eax, 0x1c(%rbx)
movl %eax, 0x2c(%rbx)
movl (%rsi), %eax
decl %eax
cmpl $0x9, %eax
ja 0x446e
leaq 0x4d58(%rip), %rcx      # 0x908c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x8(%rbx), %rdi
addq $0x10, %rdi
movl $0x1f, %r12d
jmp 0x4415
movq 0x8(%rbx), %rdi
addq $0x10, %rdi
leaq -0x28(%rbp), %r14
movl $0x1e, (%r14)
movl $0x5, %r12d
leaq -0x24(%rbp), %r15
movl %r12d, (%r15)
movq %r14, %rsi
movq %r15, %rdx
callq 0x3898
movq 0x8(%rbx), %rdi
addq $0x8, %rdi
movl $0x1f, (%r14)
movl %r12d, (%r15)
movq %r14, %rsi
movq %r15, %rdx
callq 0x3898
movq 0x8(%rbx), %rdi
movl $0x20, (%r14)
movl %r12d, (%r15)
leaq -0x28(%rbp), %rsi
leaq -0x24(%rbp), %rdx
callq 0x3898
movb $0x55, 0x28(%rbx)
jmp 0x446e
movq 0x8(%rbx), %rdi
addq $0x10, %rdi
movl $0x13, %r12d
leaq -0x28(%rbp), %r14
movl %r12d, (%r14)
leaq -0x24(%rbp), %r15
movl $0x14, (%r15)
movq %r14, %rsi
movq %r15, %rdx
callq 0x3898
movq 0x8(%rbx), %rdi
addq $0x8, %rdi
movl %r12d, (%r14)
movl %r12d, (%r15)
jmp 0x4444
movq 0x8(%rbx), %rdi
addq $0x10, %rdi
movl $0x22, %r12d
jmp 0x4415
movq 0x8(%rbx), %rdi
addq $0x10, %rdi
movl $0x1a, %r12d
leaq -0x28(%rbp), %r14
movl %r12d, (%r14)
leaq -0x24(%rbp), %r15
movl $0x14, (%r15)
movq %r14, %rsi
movq %r15, %rdx
callq 0x3898
movq 0x8(%rbx), %rdi
addq $0x8, %rdi
movl %r12d, (%r14)
movl $0x13, (%r15)
movq %r14, %rsi
movq %r15, %rdx
callq 0x3898
movq 0x8(%rbx), %rdi
movl %r12d, (%r14)
movl $0x12, (%r15)
leaq -0x28(%rbp), %rsi
leaq -0x24(%rbp), %rdx
callq 0x3898
movb $0x52, 0x28(%rbx)
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop