// File: /workspace/github_cpp_makefile_star2_O2/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 %rdi, %r14
movq %rsi, -0x30(%rbp)
movq (%rsi), %r15
leaq -0x1e0(%rbp), %r13
movq %r13, %rdi
callq 0x9360
leaq 0x60(%r14), %r12
leaq 0x270(%r14), %rax
movq %rax, -0x48(%rbp)
pushq $0x3
popq %rbx
movq %r14, -0x40(%rbp)
movq -0x30(%rbp), %rax
movq 0x8(%rax), %rax
testl %ebx, %ebx
js 0x1fb3a
cmpq %rax, %r15
je 0x1fb3a
leaq -0x1c8(%rbp), %rdi
movq %r15, -0x58(%rbp)
movq %r15, %rsi
callq 0x9750
movq -0x1e0(%rbp), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
xorl %esi, %esi
callq 0x9870
movl %ebx, %ecx
movq %rcx, -0x50(%rbp)
imulq $0x2c, %rcx, %r15
addq -0x48(%rbp), %r15
xorl %r14d, %r14d
movq %r13, %rdi
movq %r15, %rsi
callq 0x92f0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x1fb1b
movslq (%r15), %rax
shlq $0x4, %rax
movl %ebx, -0x10(%rax,%r12)
movslq (%r15), %rax
shlq $0x4, %rax
incl %r14d
movl %r14d, -0xc(%rax,%r12)
addq $0x4, %r15
jmp 0x1fae1
movq -0x40(%rbp), %rax
movq -0x50(%rbp), %rcx
movl %r14d, 0x40(%rax,%rcx,4)
movq %rax, %r14
decl %ebx
movq -0x58(%rbp), %r15
addq $0x20, %r15
jmp 0x1fa8f
movq %r15, %r12
cmpq %rax, %r15
je 0x1fb66
leaq -0x1c8(%rbp), %rdi
movq %r12, %rsi
callq 0x9750
movq -0x1e0(%rbp), %rax
addq -0x18(%rax), %r13
movq %r13, %rdi
xorl %esi, %esi
callq 0x9870
pushq $0x10
popq %rsi
leaq -0x1e0(%rbp), %r13
movq %r12, %r15
leaq 0x8(%rsi), %rbx
cmpq $0x28, %rbx
je 0x1fb99
addq %r14, %rsi
movq %r13, %rdi
callq 0x9320
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
movq %rbx, %rsi
je 0x1fb73
movq -0x30(%rbp), %rax
cmpq 0x8(%rax), %r15
je 0x1fbce
addq $0x20, %r15
leaq -0x1c8(%rbp), %rdi
movq %r15, %r12
movq %r15, %rsi
callq 0x9750
movq -0x1e0(%rbp), %rax
addq -0x18(%rax), %r13
movq %r13, %rdi
xorl %esi, %esi
callq 0x9870
pushq $0x28
popq %rsi
leaq -0x1e0(%rbp), %r13
movq %r12, %r15
leaq 0x8(%rsi), %rbx
cmpq $0x48, %rbx
je 0x1fc01
addq %r14, %rsi
movq %r13, %rdi
callq 0x9320
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
movq %rbx, %rsi
je 0x1fbdb
movq -0x30(%rbp), %rax
cmpq 0x8(%rax), %r15
je 0x1fc36
addq $0x20, %r15
leaq -0x1c8(%rbp), %rdi
movq %r15, %r12
movq %r15, %rsi
callq 0x9750
movq -0x1e0(%rbp), %rax
addq -0x18(%rax), %r13
movq %r13, %rdi
xorl %esi, %esi
callq 0x9870
leaq 0xc90(%r14), %rsi
leaq -0x1e0(%rbp), %r15
movq %r15, %rdi
callq 0x9320
movq -0x30(%rbp), %rax
cmpq 0x8(%rax), %r12
je 0x1fc81
movq %r12, %rsi
addq $0x20, %rsi
leaq -0x1c8(%rbp), %rdi
movq %rsi, %r12
callq 0x9750
movq -0x1e0(%rbp), %rax
addq -0x18(%rax), %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x9870
leaq 0xc98(%r14), %rsi
leaq -0x1e0(%rbp), %r13
movq %r13, %rdi
callq 0x9320
movq %r14, %rdi
callq 0x1fdd2
movsd 0x10(%r14), %xmm0
movsd 0x18(%r14), %xmm1
movq %r14, %rdi
callq 0x1ff0c
movsd 0x28(%r14), %xmm0
movsd 0x30(%r14), %xmm1
movsd 0x38(%r14), %xmm2
movq %r14, %rdi
callq 0x20124
movq %r12, %rax
movq -0x30(%rbp), %rcx
cmpq 0x8(%rcx), %rax
je 0x1fd02
addq $0x20, %r12
leaq -0x1c8(%rbp), %rdi
movq %r12, %rsi
callq 0x9750
movq -0x1e0(%rbp), %rax
addq -0x18(%rax), %r13
movq %r13, %rdi
xorl %esi, %esi
callq 0x9870
xorl %ebx, %ebx
leaq -0x1e0(%rbp), %r14
leaq -0x34(%rbp), %r15
cmpq $0xb, %rbx
je 0x1fd49
movq %r14, %rdi
movq %r15, %rsi
callq 0x92f0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x1fd49
movslq -0x34(%rbp), %rax
movq -0x40(%rbp), %rcx
movl %eax, 0x324(%rcx,%rbx,4)
incq %rbx
movl %ebx, 0x350(%rcx,%rax,4)
jmp 0x1fd0f
leaq -0x1e0(%rbp), %rdi
callq 0x9390
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1fd75
jmp 0x1fd75
jmp 0x1fd75
jmp 0x1fd75
jmp 0x1fd75
jmp 0x1fd75
jmp 0x1fd75
movq %rax, %rbx
leaq -0x1e0(%rbp), %rdi
callq 0x9390
movq %rbx, %rdi
callq 0x98b0