// File: /workspace/github_cpp_makefile_star2_O3/wrighteagle2d[P]wrighteaglebase/Debug/../src/Formation.cpp
// Function: TeammateFormation::InitialFormation(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&)
void TeammateFormation::InitialFormation(std::vector<std::string> &config) {
  vector<string>::iterator conf_iter(config.begin());
  stringstream sin;
  for (int i(FORMATION_LINE_NUM); i >= 0 && conf_iter != config.end();
       --i, ++conf_iter) {
    sin.str(*conf_iter);
    sin.clear();
    int j(0);
    for (; sin >> mPos2Index[i][j]; ++j) {
      mPlayerRole[mPos2Index[i][j]].mIndexX = i;
      mPlayerRole[mPos2Index[i][j]].mIndexY = j + 1;
    }
    mLineArrange[i] = j;
  }
  if (conf_iter != config.end()) {
    sin.str(*conf_iter);
    sin.clear();
  }
  for (int i(0); i < FORMATION_LINE_NUM - 1 && sin >> mHInterval[i]; ++i)
    ;
  if (conf_iter != config.end()) {
    sin.str(*(++conf_iter));
    sin.clear();
  }
  for (int i(1); i <= FORMATION_LINE_NUM && sin >> mVInterval[i]; ++i)
    ;

  if (conf_iter != config.end()) {
    sin.str(*(++conf_iter));
    sin.clear();
  }
  sin >> m_FORMATION_MAX_X;
  if (conf_iter != config.end()) {
    sin.str(*(++conf_iter));
    sin.clear();
  }
  sin >> m_FORMATION_MAX_Y;

  SetTeammateRole();
  SetHInterval(mHInterval[0], mHInterval[1]);
  SetVInterval(mVInterval[1], mVInterval[2], mVInterval[3]);

  if (conf_iter != config.end()) {
    sin.str(*(++conf_iter));
    sin.clear();
  }
  for (int i(1), j; i <= TEAMSIZE && sin >> j; ++i) {
    mIndex2Unum[i] = j;
    mUnum2Index[j] = i;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1b8, %rsp            # imm = 0x1B8
movq %rsi, %r14
movq %rdi, %r13
movq (%rsi), %rbx
leaq -0x1d8(%rbp), %r12
movq %r12, %rdi
callq 0x9350
movq %r14, -0x30(%rbp)
cmpq 0x8(%r14), %rbx
je 0x256b8
movq %r13, %rax
addq $0x60, %r13
movq %rax, -0x38(%rbp)
leaq 0x2f4(%rax), %r15
movl $0x3, %r14d
leaq -0x1c0(%rbp), %rdi
movq %rbx, -0x50(%rbp)
movq %rbx, %rsi
callq 0x9730
movq -0x1d8(%rbp), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
xorl %esi, %esi
callq 0x9860
xorl %ebx, %ebx
movq %r15, -0x48(%rbp)
movq %r12, %rdi
movq %r15, %rsi
callq 0x92e0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x25655
movslq (%r15), %rax
shlq $0x4, %rax
movl %r14d, -0x10(%rax,%r13)
movslq (%r15), %rax
shlq $0x4, %rax
incl %ebx
movl %ebx, -0xc(%rax,%r13)
addq $0x4, %r15
jmp 0x2561c
movq -0x38(%rbp), %rax
movl %ebx, 0x40(%rax,%r14,4)
movq -0x50(%rbp), %rbx
addq $0x20, %rbx
movq -0x30(%rbp), %rax
movq 0x8(%rax), %rax
addq $-0x1, %r14
movq -0x48(%rbp), %r15
jae 0x25685
addq $-0x2c, %r15
cmpq %rax, %rbx
jne 0x255ee
cmpq %rax, %rbx
je 0x256b4
leaq -0x1c0(%rbp), %rdi
movq %rbx, %rsi
callq 0x9730
movq -0x38(%rbp), %r13
movq -0x1d8(%rbp), %rax
addq -0x18(%rax), %r12
movq %r12, %rdi
xorl %esi, %esi
callq 0x9860
jmp 0x256b8
movq -0x38(%rbp), %r13
movq %rbx, %r15
leaq 0x10(%r13), %rbx
movb $0x1, %r14b
xorl %eax, %eax
leaq -0x1d8(%rbp), %r12
leaq (%rbx,%rax,8), %rsi
movq %r12, %rdi
callq 0x9310
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
sete %cl
movl $0x1, %eax
testb %r14b, %cl
movl $0x0, %r14d
jne 0x256cb
movq %r15, %rbx
movq -0x30(%rbp), %rax
cmpq 0x8(%rax), %r15
je 0x2572b
addq $0x20, %rbx
leaq -0x1c0(%rbp), %rdi
movq %rbx, %rsi
callq 0x9730
movq -0x1d8(%rbp), %rax
addq -0x18(%rax), %r12
movq %r12, %rdi
xorl %esi, %esi
callq 0x9860
movq %rbx, %r14
movl $0x28, %ebx
leaq -0x1d8(%rbp), %r12
leaq (%rbx,%r13), %rsi
movq %r12, %rdi
callq 0x9310
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x25761
leaq 0x8(%rbx), %rax
cmpq $0x38, %rbx
movq %rax, %rbx
jne 0x2573a
movq %r14, %rbx
movq -0x30(%rbp), %rax
cmpq 0x8(%rax), %r14
je 0x25796
addq $0x20, %rbx
leaq -0x1c0(%rbp), %rdi
movq %rbx, %rsi
callq 0x9730
movq -0x1d8(%rbp), %rax
addq -0x18(%rax), %r12
movq %r12, %rdi
xorl %esi, %esi
callq 0x9860
leaq 0xc90(%r13), %rsi
leaq -0x1d8(%rbp), %r15
movq %r15, %rdi
callq 0x9310
movq -0x30(%rbp), %rax
cmpq 0x8(%rax), %rbx
je 0x257de
addq $0x20, %rbx
leaq -0x1c0(%rbp), %rdi
movq %rbx, %rsi
callq 0x9730
movq -0x1d8(%rbp), %rax
addq -0x18(%rax), %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x9860
leaq 0xc98(%r13), %rsi
leaq -0x1d8(%rbp), %r12
movq %r12, %rdi
callq 0x9310
movq %r13, %rdi
callq 0x25964
movsd 0x10(%r13), %xmm0
movsd 0x18(%r13), %xmm1
movq %r13, %rdi
callq 0x25aa0
movsd 0x28(%r13), %xmm0
movsd 0x30(%r13), %xmm1
movsd 0x38(%r13), %xmm2
movq %r13, %rdi
callq 0x25cb6
movq -0x30(%rbp), %rax
cmpq 0x8(%rax), %rbx
je 0x2585c
addq $0x20, %rbx
leaq -0x1c0(%rbp), %rdi
movq %rbx, %rsi
callq 0x9730
movq -0x1d8(%rbp), %rax
addq -0x18(%rax), %r12
movq %r12, %rdi
xorl %esi, %esi
callq 0x9860
xorl %ebx, %ebx
leaq -0x1d8(%rbp), %r14
leaq -0x3c(%rbp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x92e0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x2589f
movslq -0x3c(%rbp), %rax
movl %eax, 0x324(%r13,%rbx,4)
incq %rbx
movl %ebx, 0x350(%r13,%rax,4)
cmpq $0xb, %rbx
jne 0x25869
movq 0x5e6f2(%rip), %rsi     # 0x83f98
leaq -0x1d8(%rbp), %rdi
callq 0x9370
leaq -0x158(%rbp), %rdi
callq 0x91c0
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x258de
jmp 0x258de
jmp 0x258de
jmp 0x258de
jmp 0x258de
jmp 0x258de
jmp 0x258de
movq %rax, %rbx
movq 0x5e6b0(%rip), %rsi     # 0x83f98
leaq -0x1d8(%rbp), %rdi
callq 0x9370
leaq -0x158(%rbp), %rdi
callq 0x91c0
movq %rbx, %rdi
callq 0x98b0