// File: /workspace/github_cpp_makefile_star2_O2/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 0x16965(%rip), %rsi     # 0x5afe3
movq %r15, %rdi
callq 0x1e947
testb %al, %al
je 0x446c3
movq %r14, %rdi
xorl %esi, %esi
callq 0x45fe6
movq (%rax), %rdi
leaq 0x98(%rbx), %rdx
leaq 0xa0(%rbx), %rcx
leaq 0x1693d(%rip), %rsi     # 0x5afe9
xorl %eax, %eax
callq 0x94a0
movq %rbx, %rdi
callq 0x44b1e
movb %al, 0x32(%rbx)
jmp 0x4476e
leaq 0x16925(%rip), %rsi     # 0x5afef
movq %r15, %rdi
callq 0x1e947
testb %al, %al
je 0x44729
leaq -0x1f8(%rbp), %rdi
callq 0x9360
movq (%r14), %rsi
leaq -0x1e0(%rbp), %rdi
callq 0x9750
addq $0x140, %rbx            # imm = 0x140
leaq -0x1f8(%rbp), %r14
leaq -0x70(%rbp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x92f0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x44762
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3ca5e
jmp 0x44703
leaq 0x168cc(%rip), %rsi     # 0x5affc
movq %r15, %rdi
callq 0x1e947
testb %al, %al
je 0x44780
movq %r14, %rdi
xorl %esi, %esi
callq 0x45fe6
movq %rbx, %rdi
movq %rax, %rsi
addq $0x1d8, %rsp            # imm = 0x1D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x452e4
leaq -0x1f8(%rbp), %rdi
callq 0x9390
addq $0x1d8, %rsp            # imm = 0x1D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1687e(%rip), %rsi     # 0x5b005
movq %r15, %rdi
callq 0x1e947
testb %al, %al
je 0x447c9
movq %r14, %rdi
xorl %esi, %esi
callq 0x45fe6
movq (%rax), %rdi
addq $0x138, %rbx            # imm = 0x138
leaq 0x143a1(%rip), %rsi     # 0x58b4f
movq %rbx, %rdx
xorl %eax, %eax
addq $0x1d8, %rsp            # imm = 0x1D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x94a0
cmpb $0x0, 0x32(%rbx)
je 0x4481b
leaq 0x16878(%rip), %rsi     # 0x5b04e
movq %r15, %rdi
callq 0x1e947
testb %al, %al
je 0x4476e
leaq -0x1e8(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq (%r14), %r12
leaq -0x1f8(%rbp), %r15
cmpq 0x8(%r14), %r12
je 0x44991
movq (%r12), %rsi
movq %r15, %rdi
callq 0x9960
addq $0x20, %r12
jmp 0x447ff
andl $0x0, 0x138(%rbx)
leaq 0x167e8(%rip), %rsi     # 0x5b011
movq %r15, %rdi
callq 0x1e947
testb %al, %al
je 0x448b0
movq %r14, %rdi
xorl %esi, %esi
callq 0x45fe6
movq (%rax), %rdi
leaq 0x167e8(%rip), %rsi     # 0x5b031
leaq -0x50(%rbp), %r14
leaq -0x48(%rbp), %r15
leaq -0x40(%rbp), %r12
leaq -0x38(%rbp), %r13
movq %r14, %rdx
movq %r15, %rcx
movq %r12, %r8
movq %r13, %r9
xorl %eax, %eax
callq 0x94a0
addq $0x160, %rbx            # imm = 0x160
movsd (%r14), %xmm0
movsd (%r15), %xmm1
movsd (%r12), %xmm2
movsd (%r13), %xmm3
leaq -0x1f8(%rbp), %rsi
movsd %xmm0, (%rsi)
movsd %xmm1, 0x8(%rsi)
movsd %xmm2, 0x10(%rsi)
movsd %xmm3, 0x18(%rsi)
movq %rbx, %rdi
callq 0x47042
jmp 0x4476e
leaq 0x16763(%rip), %rsi     # 0x5b01a
movq %r15, %rdi
callq 0x1e947
testb %al, %al
je 0x449c4
leaq -0x70(%rbp), %rax
andq $0x0, 0x10(%rax)
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movq (%r14), %r12
leaq -0x48(%rbp), %r13
leaq -0x1f8(%rbp), %r15
cmpq 0x8(%r14), %r12
je 0x44aa7
movq (%r12), %rdi
subq $0x8, %rsp
leaq 0x1672a(%rip), %rsi     # 0x5b027
leaq -0x30(%rbp), %rdx
leaq -0x2c(%rbp), %rcx
leaq -0x50(%rbp), %r8
movq %r13, %r9
xorl %eax, %eax
leaq -0x58(%rbp), %r10
pushq %r10
leaq -0x38(%rbp), %r10
pushq %r10
leaq -0x40(%rbp), %r10
pushq %r10
callq 0x94a0
addq $0x20, %rsp
movl -0x30(%rbp), %eax
movsd -0x50(%rbp), %xmm0
movsd -0x48(%rbp), %xmm1
movsd -0x40(%rbp), %xmm2
movsd -0x38(%rbp), %xmm3
movsd -0x58(%rbp), %xmm4
movl -0x2c(%rbp), %ecx
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)
leaq -0x70(%rbp), %rdi
movq %r15, %rsi
callq 0x46732
addq $0x20, %r12
jmp 0x448e4
leaq 0x16404(%rip), %rsi     # 0x5ad9c
leaq -0x1f8(%rbp), %rdi
callq 0x9960
leaq -0x1f8(%rbp), %rsi
movq %rbx, %rdi
callq 0x453b6
leaq -0x1f8(%rbp), %rdi
callq 0x9240
jmp 0x4476e
leaq 0x16676(%rip), %rsi     # 0x5b041
movq %r15, %rdi
callq 0x1e947
testb %al, %al
je 0x4476e
leaq -0x70(%rbp), %rax
andq $0x0, 0x10(%rax)
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movq (%r14), %r12
leaq -0x48(%rbp), %r13
leaq -0x1f8(%rbp), %r15
cmpq 0x8(%r14), %r12
je 0x44abc
movq (%r12), %rdi
subq $0x8, %rsp
leaq 0x16616(%rip), %rsi     # 0x5b027
leaq -0x30(%rbp), %rdx
leaq -0x2c(%rbp), %rcx
leaq -0x50(%rbp), %r8
movq %r13, %r9
xorl %eax, %eax
leaq -0x58(%rbp), %r10
pushq %r10
leaq -0x38(%rbp), %r10
pushq %r10
leaq -0x40(%rbp), %r10
pushq %r10
callq 0x94a0
addq $0x20, %rsp
xorl %eax, %eax
subl -0x30(%rbp), %eax
movsd -0x50(%rbp), %xmm0
movsd -0x48(%rbp), %xmm1
movsd -0x40(%rbp), %xmm2
movsd -0x38(%rbp), %xmm3
movsd -0x58(%rbp), %xmm4
movl -0x2c(%rbp), %ecx
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)
leaq -0x70(%rbp), %rdi
movq %r15, %rsi
callq 0x46732
addq $0x20, %r12
jmp 0x449f8
addq $0x120, %rbx            # imm = 0x120
leaq -0x70(%rbp), %rsi
movq %rbx, %rdi
callq 0x45e96
jmp 0x44acf
addq $0x120, %rbx            # imm = 0x120
leaq -0x70(%rbp), %rsi
movq %rbx, %rdi
callq 0x45e96
leaq -0x70(%rbp), %rdi
callq 0x46594
jmp 0x4476e
jmp 0x44ae5
jmp 0x44ae5
jmp 0x44af5
jmp 0x44ae5
movq %rax, %rbx
leaq -0x70(%rbp), %rdi
callq 0x46594
jmp 0x44b15
jmp 0x44b06
movq %rax, %rbx
leaq -0x1f8(%rbp), %rdi
callq 0x9240
jmp 0x44b15
movq %rax, %rbx
leaq -0x1f8(%rbp), %rdi
callq 0x9390
movq %rbx, %rdi
callq 0x98b0
nop