// File: /workspace/github_cpp_makefile_star2_O2/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 0x9670
callq 0x38d94
cmpb $0x1, 0x31a5(%rax)
jne 0x34efa
leaq 0x24475(%rip), %rsi     # 0x59328
leaq -0x1a0(%rbp), %rdi
callq 0x94b0
movq %rax, %rbx
callq 0x38d94
addq $0x3138, %rax           # imm = 0x3138
movq %rbx, %rdi
movq %rax, %rsi
callq 0x9430
leaq 0x24450(%rip), %rsi     # 0x5932f
movq %rax, %rdi
callq 0x94b0
movq %rax, %rbx
callq 0x38d94
addq $0x31b0, %rax           # imm = 0x31B0
jmp 0x34fea
callq 0x38d94
cmpb $0x1, 0x31a4(%rax)
jne 0x34f67
leaq 0x24419(%rip), %rsi     # 0x59328
leaq -0x1a0(%rbp), %rdi
callq 0x94b0
movq %rax, %rbx
callq 0x38d94
addq $0x3138, %rax           # imm = 0x3138
movq %rbx, %rdi
movq %rax, %rsi
callq 0x9430
leaq 0x243f4(%rip), %rsi     # 0x5932f
movq %rax, %rdi
callq 0x94b0
movq %rax, %rbx
callq 0x38d94
movsd 0x31a8(%rax), %xmm0
movq %rbx, %rdi
callq 0x97e0
leaq 0x243d8(%rip), %rsi     # 0x5933a
jmp 0x34ffd
callq 0x38d94
cmpb $0x1, 0x31a6(%rax)
jne 0x34fa1
leaq 0x243ac(%rip), %rsi     # 0x59328
leaq -0x1a0(%rbp), %rdi
callq 0x94b0
leaq 0x243a0(%rip), %rsi     # 0x5932f
movq %rax, %rdi
callq 0x94b0
movq %rax, %rbx
callq 0x38d94
jmp 0x34fe4
leaq 0x24380(%rip), %rsi     # 0x59328
leaq -0x1a0(%rbp), %rdi
callq 0x94b0
movq %rax, %rbx
callq 0x38d94
addq $0x3138, %rax           # imm = 0x3138
movq %rbx, %rdi
movq %rax, %rsi
callq 0x9430
leaq 0x2435b(%rip), %rsi     # 0x5932f
movq %rax, %rdi
callq 0x94b0
movq %rax, %rbx
callq 0x38d94
addq $0x31a8, %rax           # imm = 0x31A8
movsd (%rax), %xmm0
movq %rbx, %rdi
callq 0x97e0
leaq 0x239da(%rip), %rsi     # 0x589d7
movq %rax, %rdi
callq 0x94b0
callq 0x471ac
movq %rax, %rbx
leaq -0x198(%rbp), %rsi
leaq -0x28(%rbp), %rdi
callq 0x97b0
movq -0x28(%rbp), %rsi
movq %rbx, %rdi
callq 0x473e8
movl %eax, %ebx
leaq -0x28(%rbp), %rdi
callq 0x9240
testl %ebx, %ebx
jns 0x3508d
movq 0x41fb1(%rip), %rdi     # 0x76ff0
leaq 0x24300(%rip), %rsi     # 0x59346
callq 0x94b0
leaq 0x26120(%rip), %rsi     # 0x5b172
movq %rax, %rdi
callq 0x94b0
movq %rax, %rdi
movl $0x90, %esi
callq 0x9890
leaq 0x243b1(%rip), %rsi     # 0x5941f
movq %rax, %rdi
callq 0x94b0
leaq 0x242db(%rip), %rsi     # 0x59358
movq %rax, %rdi
callq 0x94b0
movq %rax, %rdi
callq 0x99e8
leaq -0x1a0(%rbp), %rdi
callq 0x9160
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %rbp
retq
movq %rax, %rbx
leaq -0x28(%rbp), %rdi
callq 0x9240
jmp 0x350b6
jmp 0x350b3
movq %rax, %rbx
leaq -0x1a0(%rbp), %rdi
callq 0x9160
movq %rbx, %rdi
callq 0x98b0