// File: /workspace/github_cpp_makefile_star2_O1/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, %r15
movq %rdi, %rbx
movq (%rsi), %r14
leaq -0x1d8(%rbp), %r12
movq %r12, %rdi
callq 0x9350
movq %r14, %rax
movq %r15, -0x30(%rbp)
cmpq 0x8(%r15), %r14
movq %rbx, -0x40(%rbp)
je 0x25e05
leaq 0x60(%rbx), %r13
leaq 0x2f4(%rbx), %r15
movl $0x3, %r14d
movq %rax, %rbx
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 0x25dd6
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 0x25d9d
movq -0x40(%rbp), %rax
movl %ebx, 0x40(%rax,%r14,4)
movq -0x50(%rbp), %rbx
addq $0x20, %rbx
addq $-0x1, %r14
jae 0x25e08
movq -0x48(%rbp), %r15
addq $-0x2c, %r15
movq -0x30(%rbp), %rax
cmpq 0x8(%rax), %rbx
jne 0x25d6f
jmp 0x25e08
movq %rax, %rbx
movq -0x30(%rbp), %rax
cmpq 0x8(%rax), %rbx
movq -0x40(%rbp), %r13
je 0x25e3a
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 $0x10, %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 0x25e70
leaq 0x8(%rbx), %rax
cmpq $0x10, %rbx
movq %rax, %rbx
je 0x25e49
movq %r14, %rbx
movq -0x30(%rbp), %rax
cmpq 0x8(%rax), %r14
je 0x25ea5
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 0x25edb
leaq 0x8(%rbx), %rax
cmpq $0x38, %rbx
movq %rax, %rbx
jne 0x25eb4
movq %r14, %rbx
movq -0x30(%rbp), %rax
cmpq 0x8(%rax), %r14
je 0x25f10
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 0x25f58
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 0x260de
movsd 0x10(%r13), %xmm0
movsd 0x18(%r13), %xmm1
movq %r13, %rdi
callq 0x2621a
movsd 0x28(%r13), %xmm0
movsd 0x30(%r13), %xmm1
movsd 0x38(%r13), %xmm2
movq %r13, %rdi
callq 0x26424
movq -0x30(%rbp), %rax
cmpq 0x8(%rax), %rbx
je 0x25fd6
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 -0x34(%rbp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x92e0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x26019
movslq -0x34(%rbp), %rax
movl %eax, 0x324(%r13,%rbx,4)
incq %rbx
movl %ebx, 0x350(%r13,%rax,4)
cmpq $0xb, %rbx
jne 0x25fe3
movq 0x60f78(%rip), %rsi     # 0x86f98
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 0x26058
jmp 0x26058
jmp 0x26058
jmp 0x26058
jmp 0x26058
jmp 0x26058
jmp 0x26058
movq %rax, %rbx
movq 0x60f36(%rip), %rsi     # 0x86f98
leaq -0x1d8(%rbp), %rdi
callq 0x9370
leaq -0x158(%rbp), %rdi
callq 0x91c0
movq %rbx, %rdi
callq 0x98b0