// File: /workspace/github_cpp_makefile_star2_O1/wrighteagle2d[P]wrighteaglebase/Debug/../src/Trainer.cpp
// Function: Trainer::Parse(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, 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>>>> const&)
void Trainer::Parse(const string &section, const vector<string> &content) {
  Unum num;
  double x, y, vx, vy, dir;
  int playerType;
  if (section == "Scene") {
    sscanf(content.at(0).c_str(), "%d %s", &mTrainTime, mTrainRcg);
    mHaveRcg = ReadRcgFile();
  } else if (section == "NeedOpponent") {
    Unum t;
    stringstream sin;
    sin.str(*content.begin());
    while (sin >> t) {
      mNeedOpponentList.push_back(t);
    }
  } else if (section == "Converse") {
    ReadConverseConf(content.at(0));
  } else if (section == "InitialTime") {
    sscanf(content.at(0).c_str(), "%d", &mInitialTime);
  } else if (!mHaveRcg) {
    mInitialTime = 0;
    if (section == "BallData") {
      sscanf(content.at(0).c_str(), "%lf %lf %lf %lf", &x, &y, &vx, &vy);
      mBallStateList.push_back(
          pair<Vector, Vector>(Vector(x, y), Vector(vx, vy)));
    } else if (section == "TeammateData") {
      vector<PlayerState> ps;
      for (vector<string>::const_iterator it = content.begin();
           it != content.end(); it++) {
        sscanf(it->c_str(), "%d %d %lf %lf %lf %lf %lf", &num, &playerType, &x,
               &y, &vx, &vy, &dir);
        ps.push_back(
            PlayerState(num, Vector(x, y), Vector(vx, vy), dir, playerType));
      }
      mPlayerStatesList.push_back(ps);
    } else if (section == "OpponentData") {
      vector<PlayerState> ps;
      for (vector<string>::const_iterator it = content.begin();
           it != content.end(); it++) {
        sscanf(it->c_str(), "%d %d %lf %lf %lf %lf %lf", &num, &playerType, &x,
               &y, &vx, &vy, &dir);
        ps.push_back(
            PlayerState(-num, Vector(x, y), Vector(vx, vy), dir, playerType));
      }
      mPlayerStatesList.push_back(ps);
    }
  } else if (section == "EndCondition") {
    std::string tmp; //把几行变成一行，便于控制结构

    for (vector<string>::const_iterator it = content.begin();
         it != content.end(); it++) {
      tmp.append(it->c_str());
    }
    tmp.append("\0");
    ParseCondition(tmp);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1d8, %rsp            # imm = 0x1D8
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x1ca15(%rip), %rsi     # 0x6f033
movq %r15, %rdi
callq 0x91a0
testl %eax, %eax
je 0x52715
leaq 0x1ca0a(%rip), %rsi     # 0x6f03f
movq %r15, %rdi
callq 0x91a0
testl %eax, %eax
je 0x52751
leaq 0x1ca00(%rip), %rsi     # 0x6f04c
movq %r15, %rdi
callq 0x91a0
testl %eax, %eax
je 0x527f7
leaq 0x1c9f2(%rip), %rsi     # 0x6f055
movq %r15, %rdi
callq 0x91a0
testl %eax, %eax
je 0x5281d
cmpb $0x0, 0x32(%rbx)
je 0x52856
leaq 0x1ca1a(%rip), %rsi     # 0x6f09e
movq %r15, %rdi
callq 0x91a0
testl %eax, %eax
jne 0x527e5
leaq -0x1e8(%rbp), %r12
movq %r12, -0x10(%r12)
movq $0x0, -0x8(%r12)
movb $0x0, (%r12)
movq (%r14), %r13
cmpq 0x8(%r14), %r13
je 0x526d4
leaq -0x1f8(%rbp), %r15
movq (%r13), %rsi
movq %r15, %rdi
callq 0x9970
addq $0x20, %r13
cmpq 0x8(%r14), %r13
jne 0x526be
leaq 0x1c711(%rip), %rsi     # 0x6edec
leaq -0x1f8(%rbp), %rdi
callq 0x9970
leaq -0x1f8(%rbp), %rsi
movq %rbx, %rdi
callq 0x53954
movq -0x1f8(%rbp), %rdi
cmpq %r12, %rdi
je 0x527e5
movq -0x1e8(%rbp), %rsi
incq %rsi
jmp 0x52bc8
movq (%r14), %rax
cmpq %rax, 0x8(%r14)
je 0x52bed
movq (%rax), %rdi
leaq 0x98(%rbx), %rdx
leaq 0xa0(%rbx), %rcx
leaq 0x1c8ff(%rip), %rsi     # 0x6f039
xorl %eax, %eax
callq 0x9490
movq %rbx, %rdi
callq 0x52c6e
movb %al, 0x32(%rbx)
jmp 0x527e5
leaq -0x1f8(%rbp), %rdi
callq 0x9350
movq (%r14), %rsi
leaq -0x1e0(%rbp), %rdi
callq 0x9730
leaq 0x140(%rbx), %r14
leaq -0x1f8(%rbp), %r15
leaq -0x40(%rbp), %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x92e0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x527c6
movq 0x148(%rbx), %rsi
cmpq 0x150(%rbx), %rsi
je 0x527b9
movl -0x40(%rbp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x148(%rbx)
jmp 0x5277e
movq %r14, %rdi
movq %r12, %rdx
callq 0x4a4fa
jmp 0x5277e
movq 0x347cb(%rip), %rsi     # 0x86f98
leaq -0x1f8(%rbp), %rdi
callq 0x9370
leaq -0x178(%rbp), %rdi
callq 0x91c0
addq $0x1d8, %rsp            # imm = 0x1D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq (%r14), %rsi
cmpq %rsi, 0x8(%r14)
je 0x52bef
movq %rbx, %rdi
addq $0x1d8, %rsp            # imm = 0x1D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x53824
movq (%r14), %rax
cmpq %rax, 0x8(%r14)
je 0x52bf1
movq (%rax), %rdi
addq $0x138, %rbx            # imm = 0x138
leaq 0x1a358(%rip), %rsi     # 0x6cb93
movq %rbx, %rdx
xorl %eax, %eax
addq $0x1d8, %rsp            # imm = 0x1D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x9490
movl $0x0, 0x138(%rbx)
leaq 0x1c7fa(%rip), %rsi     # 0x6f061
movq %r15, %rdi
callq 0x91a0
testl %eax, %eax
je 0x529dd
leaq 0x1c7ec(%rip), %rsi     # 0x6f06a
movq %r15, %rdi
callq 0x91a0
testl %eax, %eax
je 0x52a83
leaq 0x1c7fc(%rip), %rsi     # 0x6f091
movq %r15, %rdi
callq 0x91a0
testl %eax, %eax
jne 0x527e5
xorps %xmm0, %xmm0
movaps %xmm0, -0x40(%rbp)
movq $0x0, -0x30(%rbp)
movq (%r14), %r13
cmpq 0x8(%r14), %r13
je 0x529c5
leaq -0x1f0(%rbp), %r15
leaq -0x60(%rbp), %r12
movq (%r13), %rdi
subq $0x8, %rsp
leaq 0x1c79c(%rip), %rsi     # 0x6f077
leaq -0x48(%rbp), %rdx
leaq -0x44(%rbp), %rcx
leaq -0x68(%rbp), %r8
movq %r12, %r9
xorl %eax, %eax
leaq -0x70(%rbp), %r10
pushq %r10
leaq -0x50(%rbp), %r10
pushq %r10
leaq -0x58(%rbp), %r10
pushq %r10
callq 0x9490
addq $0x20, %rsp
xorl %eax, %eax
subl -0x48(%rbp), %eax
movsd -0x68(%rbp), %xmm0
movsd -0x60(%rbp), %xmm1
movsd -0x58(%rbp), %xmm2
movsd -0x50(%rbp), %xmm3
movsd -0x70(%rbp), %xmm4
movl -0x44(%rbp), %ecx
xorps %xmm5, %xmm5
movups %xmm5, 0x10(%r15)
movups %xmm5, (%r15)
movl %eax, -0x1f8(%rbp)
movsd %xmm0, -0x1f0(%rbp)
movsd %xmm1, -0x1e8(%rbp)
movsd %xmm2, -0x1e0(%rbp)
movsd %xmm3, -0x1d8(%rbp)
movsd %xmm4, -0x1d0(%rbp)
movl %ecx, -0x1c8(%rbp)
movq -0x38(%rbp), %rsi
cmpq -0x30(%rbp), %rsi
je 0x529a7
movq -0x1c8(%rbp), %rax
movq %rax, 0x30(%rsi)
movups -0x1f8(%rbp), %xmm0
movups -0x1e8(%rbp), %xmm1
movups -0x1d8(%rbp), %xmm2
movups %xmm2, 0x20(%rsi)
movups %xmm1, 0x10(%rsi)
movups %xmm0, (%rsi)
addq $0x38, %rsi
movq %rsi, -0x38(%rbp)
jmp 0x529b7
leaq -0x40(%rbp), %rdi
leaq -0x1f8(%rbp), %rdx
callq 0x54edc
addq $0x20, %r13
cmpq 0x8(%r14), %r13
jne 0x528cc
addq $0x120, %rbx            # imm = 0x120
leaq -0x40(%rbp), %rsi
movq %rbx, %rdi
callq 0x545f0
jmp 0x52bb4
movq (%r14), %rax
cmpq %rax, 0x8(%r14)
je 0x52bf3
movq (%rax), %rdi
leaq 0x1c68d(%rip), %rsi     # 0x6f081
leaq -0x68(%rbp), %r14
leaq -0x60(%rbp), %r15
leaq -0x58(%rbp), %r12
leaq -0x50(%rbp), %r13
movq %r14, %rdx
movq %r15, %rcx
movq %r12, %r8
movq %r13, %r9
xorl %eax, %eax
callq 0x9490
movsd (%r14), %xmm0
movsd (%r15), %xmm1
movsd (%r12), %xmm2
movsd (%r13), %xmm3
movsd %xmm0, -0x1f8(%rbp)
movsd %xmm1, -0x1f0(%rbp)
movsd %xmm2, -0x1e8(%rbp)
movsd %xmm3, -0x1e0(%rbp)
movq 0x168(%rbx), %rsi
cmpq 0x170(%rbx), %rsi
je 0x52bd2
movups -0x1f8(%rbp), %xmm0
movups -0x1e8(%rbp), %xmm1
movups %xmm1, 0x10(%rsi)
movups %xmm0, (%rsi)
addq $0x20, 0x168(%rbx)
jmp 0x527e5
xorps %xmm0, %xmm0
movaps %xmm0, -0x40(%rbp)
movq $0x0, -0x30(%rbp)
movq (%r14), %r13
cmpq 0x8(%r14), %r13
je 0x52ba1
leaq -0x1f0(%rbp), %r15
leaq -0x60(%rbp), %r12
movq (%r13), %rdi
subq $0x8, %rsp
leaq 0x1c5be(%rip), %rsi     # 0x6f077
leaq -0x48(%rbp), %rdx
leaq -0x44(%rbp), %rcx
leaq -0x68(%rbp), %r8
movq %r12, %r9
xorl %eax, %eax
leaq -0x70(%rbp), %r10
pushq %r10
leaq -0x50(%rbp), %r10
pushq %r10
leaq -0x58(%rbp), %r10
pushq %r10
callq 0x9490
addq $0x20, %rsp
movl -0x48(%rbp), %eax
movsd -0x68(%rbp), %xmm0
movsd -0x60(%rbp), %xmm1
movsd -0x58(%rbp), %xmm2
movsd -0x50(%rbp), %xmm3
movsd -0x70(%rbp), %xmm4
movl -0x44(%rbp), %ecx
xorps %xmm5, %xmm5
movups %xmm5, 0x10(%r15)
movups %xmm5, (%r15)
movl %eax, -0x1f8(%rbp)
movsd %xmm0, -0x1f0(%rbp)
movsd %xmm1, -0x1e8(%rbp)
movsd %xmm2, -0x1e0(%rbp)
movsd %xmm3, -0x1d8(%rbp)
movsd %xmm4, -0x1d0(%rbp)
movl %ecx, -0x1c8(%rbp)
movq -0x38(%rbp), %rsi
cmpq -0x30(%rbp), %rsi
je 0x52b83
movq -0x1c8(%rbp), %rax
movq %rax, 0x30(%rsi)
movups -0x1f8(%rbp), %xmm0
movups -0x1e8(%rbp), %xmm1
movups -0x1d8(%rbp), %xmm2
movups %xmm2, 0x20(%rsi)
movups %xmm1, 0x10(%rsi)
movups %xmm0, (%rsi)
addq $0x38, %rsi
movq %rsi, -0x38(%rbp)
jmp 0x52b93
leaq -0x40(%rbp), %rdi
leaq -0x1f8(%rbp), %rdx
callq 0x54edc
addq $0x20, %r13
cmpq 0x8(%r14), %r13
jne 0x52aaa
addq $0x120, %rbx            # imm = 0x120
leaq -0x40(%rbp), %rsi
movq %rbx, %rdi
callq 0x545f0
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
je 0x527e5
movq -0x30(%rbp), %rsi
subq %rdi, %rsi
callq 0x94e0
jmp 0x527e5
addq $0x160, %rbx            # imm = 0x160
leaq -0x1f8(%rbp), %rdx
movq %rbx, %rdi
callq 0x556ec
jmp 0x527e5
jmp 0x52bf3
jmp 0x52bf3
jmp 0x52bf3
leaq 0x18f39(%rip), %rdi     # 0x6bb33
xorl %esi, %esi
xorl %edx, %edx
xorl %eax, %eax
callq 0x9750
jmp 0x52c0d
jmp 0x52c0d
jmp 0x52c24
jmp 0x52c0d
movq %rax, %rbx
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
je 0x52c66
movq -0x30(%rbp), %rsi
subq %rdi, %rsi
jmp 0x52c3d
jmp 0x52c44
movq %rax, %rbx
movq -0x1f8(%rbp), %rdi
cmpq %r12, %rdi
je 0x52c66
movq -0x1e8(%rbp), %rsi
incq %rsi
callq 0x94e0
jmp 0x52c66
movq %rax, %rbx
movq 0x3434a(%rip), %rsi     # 0x86f98
leaq -0x1f8(%rbp), %rdi
callq 0x9370
leaq -0x178(%rbp), %rdi
callq 0x91c0
movq %rbx, %rdi
callq 0x98b0