// File: /workspace/github_cpp_makefile_star2_O3/wrighteagle2d[P]wrighteaglebase/Debug/../src/Parser.cpp
// Function: Parser::SendInitialLizeMsg()
void Parser::SendInitialLizeMsg() {
  // TODO: how about reconnect
  std::ostringstream init_string;
  if (PlayerParam::instance().isCoach()) {
    init_string << "(init " << PlayerParam::instance().teamName()
                << " (version " << PlayerParam::instance().coachVersion()
                << "))";
  } else if (PlayerParam::instance().isGoalie()) {
    init_string << "(init " << PlayerParam::instance().teamName()
                << " (version " << PlayerParam::instance().playerVersion()
                << ") (goalie))";
  } else if (PlayerParam::instance().isTrainer()) {
    init_string << "(init "
                << " (version " << PlayerParam::instance().playerVersion()
                << "))";
  } else {
    init_string << "(init " << PlayerParam::instance().teamName()
                << " (version " << PlayerParam::instance().playerVersion()
                << "))";
  }

  if (UDPSocket::instance().Send(init_string.str().c_str()) < 0) {
    PRINT_ERROR("send_initialize_message failed");
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x198, %rsp            # imm = 0x198
leaq -0x1a0(%rbp), %rdi
callq 0x9660
callq 0x43dce
cmpb $0x1, 0x31a5(%rax)
jne 0x3dffa
leaq 0x2d3bd(%rip), %rsi     # 0x6b360
leaq -0x1a0(%rbp), %rdi
movl $0x6, %edx
callq 0x9560
callq 0x43dce
movq 0x3138(%rax), %rsi
movq 0x3140(%rax), %rdx
leaq -0x1a0(%rbp), %rdi
callq 0x9560
movq %rax, %rbx
leaq 0x2d38a(%rip), %rsi     # 0x6b367
movl $0xa, %edx
movq %rax, %rdi
callq 0x9560
callq 0x43dce
addq $0x31b0, %rax           # imm = 0x31B0
jmp 0x3e11d
callq 0x43dce
cmpb $0x1, 0x31a4(%rax)
jne 0x3e07c
leaq 0x2d351(%rip), %rsi     # 0x6b360
leaq -0x1a0(%rbp), %rdi
movl $0x6, %edx
callq 0x9560
callq 0x43dce
movq 0x3138(%rax), %rsi
movq 0x3140(%rax), %rdx
leaq -0x1a0(%rbp), %rdi
callq 0x9560
movq %rax, %rbx
leaq 0x2d31e(%rip), %rsi     # 0x6b367
movl $0xa, %edx
movq %rax, %rdi
callq 0x9560
callq 0x43dce
movsd 0x31a8(%rax), %xmm0
movq %rbx, %rdi
callq 0x97d0
movl $0xb, %edx
leaq 0x2d2fb(%rip), %rsi     # 0x6b372
jmp 0x3e135
callq 0x43dce
cmpb $0x1, 0x31a6(%rax)
jne 0x3e0c4
leaq 0x2d2cf(%rip), %rsi     # 0x6b360
leaq -0x1a0(%rbp), %rdi
movl $0x6, %edx
callq 0x9560
leaq 0x2d2be(%rip), %rsi     # 0x6b367
leaq -0x1a0(%rbp), %rbx
movl $0xa, %edx
movq %rbx, %rdi
callq 0x9560
callq 0x43dce
jmp 0x3e117
leaq 0x2d295(%rip), %rsi     # 0x6b360
leaq -0x1a0(%rbp), %rdi
movl $0x6, %edx
callq 0x9560
callq 0x43dce
movq 0x3138(%rax), %rsi
movq 0x3140(%rax), %rdx
leaq -0x1a0(%rbp), %rdi
callq 0x9560
movq %rax, %rbx
leaq 0x2d262(%rip), %rsi     # 0x6b367
movl $0xa, %edx
movq %rax, %rdi
callq 0x9560
callq 0x43dce
addq $0x31a8, %rax           # imm = 0x31A8
movsd (%rax), %xmm0
movq %rbx, %rdi
callq 0x97d0
movl $0x2, %edx
leaq 0x2c8e2(%rip), %rsi     # 0x6aa17
movq %rax, %rdi
callq 0x9560
callq 0x54038
movq %rax, %rbx
leaq -0x198(%rbp), %rsi
leaq -0x28(%rbp), %rdi
callq 0x97a0
movq -0x28(%rbp), %rsi
movq %rbx, %rdi
callq 0x5432c
movl %eax, %ebx
leaq -0x18(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3e17c
movq -0x18(%rbp), %rsi
incq %rsi
callq 0x94e0
testl %ebx, %ebx
jns 0x3e217
movq 0x45e65(%rip), %rdi     # 0x83ff0
leaq 0x2d1ec(%rip), %rsi     # 0x6b37e
movl $0x11, %edx
callq 0x9560
movq 0x45e4d(%rip), %rdi     # 0x83ff0
leaq 0x2efe8(%rip), %rsi     # 0x6d192
movl $0x1, %edx
callq 0x9560
movq 0x45e35(%rip), %rdi     # 0x83ff0
movl $0x90, %esi
callq 0x9880
movq %rax, %rbx
leaq 0x2d288(%rip), %rsi     # 0x6b457
movl $0x3, %edx
movq %rax, %rdi
callq 0x9560
leaq 0x2d1ad(%rip), %rsi     # 0x6b390
movl $0x1e, %edx
movq %rbx, %rdi
callq 0x9560
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x9480
movsbl %al, %esi
movq %rbx, %rdi
callq 0x9070
movq %rax, %rdi
callq 0x9330
movq 0x45d9a(%rip), %rsi     # 0x83fb8
leaq -0x1a0(%rbp), %rdi
callq 0x9290
leaq -0x130(%rbp), %rdi
callq 0x91c0
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %rbp
retq
movq %rax, %rbx
leaq -0x18(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3e263
movq -0x18(%rbp), %rsi
incq %rsi
callq 0x94e0
jmp 0x3e263
jmp 0x3e260
movq %rax, %rbx
movq 0x45d4e(%rip), %rsi     # 0x83fb8
leaq -0x1a0(%rbp), %rdi
callq 0x9290
leaq -0x130(%rbp), %rdi
callq 0x91c0
movq %rbx, %rdi
callq 0x98b0