// File: /workspace/github_cpp_makefile_star2_O1/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 0x450ba
cmpb $0x1, 0x31a5(%rax)
jne 0x3f04a
leaq 0x2e395(%rip), %rsi     # 0x6d388
leaq -0x1a0(%rbp), %rdi
movl $0x6, %edx
callq 0x9560
callq 0x450ba
movq 0x3138(%rax), %rsi
movq 0x3140(%rax), %rdx
leaq -0x1a0(%rbp), %rdi
callq 0x9560
movq %rax, %rbx
leaq 0x2e362(%rip), %rsi     # 0x6d38f
movl $0xa, %edx
movq %rax, %rdi
callq 0x9560
callq 0x450ba
addq $0x31b0, %rax           # imm = 0x31B0
jmp 0x3f16d
callq 0x450ba
cmpb $0x1, 0x31a4(%rax)
jne 0x3f0cc
leaq 0x2e329(%rip), %rsi     # 0x6d388
leaq -0x1a0(%rbp), %rdi
movl $0x6, %edx
callq 0x9560
callq 0x450ba
movq 0x3138(%rax), %rsi
movq 0x3140(%rax), %rdx
leaq -0x1a0(%rbp), %rdi
callq 0x9560
movq %rax, %rbx
leaq 0x2e2f6(%rip), %rsi     # 0x6d38f
movl $0xa, %edx
movq %rax, %rdi
callq 0x9560
callq 0x450ba
movsd 0x31a8(%rax), %xmm0
movq %rbx, %rdi
callq 0x97d0
movl $0xb, %edx
leaq 0x2e2d3(%rip), %rsi     # 0x6d39a
jmp 0x3f185
callq 0x450ba
cmpb $0x1, 0x31a6(%rax)
jne 0x3f114
leaq 0x2e2a7(%rip), %rsi     # 0x6d388
leaq -0x1a0(%rbp), %rdi
movl $0x6, %edx
callq 0x9560
leaq 0x2e296(%rip), %rsi     # 0x6d38f
leaq -0x1a0(%rbp), %rbx
movl $0xa, %edx
movq %rbx, %rdi
callq 0x9560
callq 0x450ba
jmp 0x3f167
leaq 0x2e26d(%rip), %rsi     # 0x6d388
leaq -0x1a0(%rbp), %rdi
movl $0x6, %edx
callq 0x9560
callq 0x450ba
movq 0x3138(%rax), %rsi
movq 0x3140(%rax), %rdx
leaq -0x1a0(%rbp), %rdi
callq 0x9560
movq %rax, %rbx
leaq 0x2e23a(%rip), %rsi     # 0x6d38f
movl $0xa, %edx
movq %rax, %rdi
callq 0x9560
callq 0x450ba
addq $0x31a8, %rax           # imm = 0x31A8
movsd (%rax), %xmm0
movq %rbx, %rdi
callq 0x97d0
movl $0x2, %edx
leaq 0x2d8a2(%rip), %rsi     # 0x6ca27
movq %rax, %rdi
callq 0x9560
callq 0x55830
movq %rax, %rbx
leaq -0x198(%rbp), %rsi
leaq -0x28(%rbp), %rdi
callq 0x97a0
movq -0x28(%rbp), %rsi
movq %rbx, %rdi
callq 0x55b22
movl %eax, %ebx
leaq -0x18(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3f1cc
movq -0x18(%rbp), %rsi
incq %rsi
callq 0x94e0
testl %ebx, %ebx
jns 0x3f267
movq 0x47e15(%rip), %rdi     # 0x86ff0
leaq 0x2e1c4(%rip), %rsi     # 0x6d3a6
movl $0x11, %edx
callq 0x9560
movq 0x47dfd(%rip), %rdi     # 0x86ff0
leaq 0x2ffc8(%rip), %rsi     # 0x6f1c2
movl $0x1, %edx
callq 0x9560
movq 0x47de5(%rip), %rdi     # 0x86ff0
movl $0x90, %esi
callq 0x9880
movq %rax, %rbx
leaq 0x2e260(%rip), %rsi     # 0x6d47f
movl $0x3, %edx
movq %rax, %rdi
callq 0x9560
leaq 0x2e185(%rip), %rsi     # 0x6d3b8
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 0x47d4a(%rip), %rsi     # 0x86fb8
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 0x3f2b3
movq -0x18(%rbp), %rsi
incq %rsi
callq 0x94e0
jmp 0x3f2b3
jmp 0x3f2b0
movq %rax, %rbx
movq 0x47cfe(%rip), %rsi     # 0x86fb8
leaq -0x1a0(%rbp), %rdi
callq 0x9290
leaq -0x130(%rbp), %rdi
callq 0x91c0
movq %rbx, %rdi
callq 0x98b0