// File: wrighteagle2d[P]wrighteaglebase/Debug/../src/Parser.cpp
// Function: Parser::Parser(Observer*)
Parser::Parser(Observer *p_observer) {
  mpObserver = p_observer;

  mConnectServerOk = false;
  mHalfTime = 0;
  mClangOk = false;
  mSynchOk = false;
  mEyeOnOk = false;
  mEarOnOk = false;

  mLastServerPlayMode = SPM_Null;

  ServerPlayModeMap::instance();

  if (PlayerParam::instance().isCoach()) {
    UDPSocket::instance().Initial(ServerParam::instance().serverHost().c_str(),
                                  ServerParam::instance().onlineCoachPort());
  } else if (PlayerParam::instance().isTrainer()) {
    UDPSocket::instance().Initial(ServerParam::instance().serverHost().c_str(),
                                  ServerParam::instance().offlineCoachPort());
  } else {
    UDPSocket::instance().Initial(ServerParam::instance().serverHost().c_str(),
                                  ServerParam::instance().playerPort());
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xe0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x28(%rbp)
callq 0x2be40
movq -0x28(%rbp), %rdi
leaq 0x8c7e5(%rip), %rax     # 0xfda00
movq %rax, (%rdi)
addq $0x20, %rdi
movq %rdi, -0x30(%rbp)
callq 0x8eb70
movq -0x28(%rbp), %rdi
addq $0x51, %rdi
callq 0x779e0
jmp 0x7123a
movq -0x28(%rbp), %rax
movq -0x10(%rbp), %rcx
movq %rcx, 0x10(%rax)
movb $0x0, 0x4c(%rax)
movl $0x0, 0x48(%rax)
movb $0x0, 0x4d(%rax)
movb $0x0, 0x4e(%rax)
movb $0x0, 0x4f(%rax)
movb $0x0, 0x50(%rax)
movl $0x0, 0x18(%rax)
callq 0x9ed90
jmp 0x7126f
callq 0x798a0
movq %rax, -0x38(%rbp)
jmp 0x7127a
movq -0x38(%rbp), %rdi
callq 0x10de0
movq %rax, -0x40(%rbp)
jmp 0x71289
movq -0x40(%rbp), %rax
testb $0x1, (%rax)
je 0x7130e
callq 0x9e170
movq %rax, -0x48(%rbp)
jmp 0x7129d
callq 0x855e0
movq %rax, -0x50(%rbp)
jmp 0x712a8
movq -0x50(%rbp), %rdi
callq 0x77a00
movq %rax, -0x58(%rbp)
jmp 0x712b7
movq -0x58(%rbp), %rdi
callq 0xa240
movq %rax, -0x68(%rbp)
callq 0x855e0
movq %rax, -0x60(%rbp)
jmp 0x712cf
movq -0x60(%rbp), %rdi
callq 0x77a20
movl %eax, -0x6c(%rbp)
jmp 0x712dd
movl -0x6c(%rbp), %edx
movq -0x68(%rbp), %rsi
movq -0x48(%rbp), %rdi
callq 0x9e200
jmp 0x712ef
jmp 0x71440
movq -0x30(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
callq 0x8eb90
jmp 0x71449
callq 0x798a0
movq %rax, -0x78(%rbp)
jmp 0x71319
movq -0x78(%rbp), %rdi
callq 0x12080
movq %rax, -0x80(%rbp)
jmp 0x71328
movq -0x80(%rbp), %rax
testb $0x1, (%rax)
je 0x713bb
callq 0x9e170
movq %rax, -0x88(%rbp)
jmp 0x71343
callq 0x855e0
movq %rax, -0x90(%rbp)
jmp 0x71351
movq -0x90(%rbp), %rdi
callq 0x77a00
movq %rax, -0x98(%rbp)
jmp 0x71366
movq -0x98(%rbp), %rdi
callq 0xa240
movq %rax, -0xa8(%rbp)
callq 0x855e0
movq %rax, -0xa0(%rbp)
jmp 0x71387
movq -0xa0(%rbp), %rdi
callq 0x77a40
movl %eax, -0xac(%rbp)
jmp 0x7139b
movl -0xac(%rbp), %edx
movq -0xa8(%rbp), %rsi
movq -0x88(%rbp), %rdi
callq 0x9e200
jmp 0x713b6
jmp 0x7143e
callq 0x9e170
movq %rax, -0xb8(%rbp)
jmp 0x713c9
callq 0x855e0
movq %rax, -0xc0(%rbp)
jmp 0x713d7
movq -0xc0(%rbp), %rdi
callq 0x77a00
movq %rax, -0xc8(%rbp)
jmp 0x713ec
movq -0xc8(%rbp), %rdi
callq 0xa240
movq %rax, -0xd8(%rbp)
callq 0x855e0
movq %rax, -0xd0(%rbp)
jmp 0x7140d
movq -0xd0(%rbp), %rdi
callq 0x77a60
movl %eax, -0xdc(%rbp)
jmp 0x71421
movl -0xdc(%rbp), %edx
movq -0xd8(%rbp), %rsi
movq -0xb8(%rbp), %rdi
callq 0x9e200
jmp 0x7143c
jmp 0x7143e
jmp 0x71440
addq $0xe0, %rsp
popq %rbp
retq
movq -0x18(%rbp), %rdi
callq 0xaa60
nopw %cs:(%rax,%rax)