// File: /workspace/github_cpp_makefile_star2_O3/wrighteagle2d[P]wrighteaglebase/Debug/../src/VisualSystem.cpp
// Function: VisualSystem::DoInfoGatherForPenaltyAttack()
void VisualSystem::DoInfoGatherForPenaltyAttack() {
  const Strategy &strategy = mpAgent->GetStrategy();

  RaiseBall();
  switch (mpAgent->GetFormation()
              .GetTeammateRoleType(mpSelfState->GetUnum())
              .mLineType) {
  case LT_Defender:
    for (Unum i = 1; i <= TEAMSIZE; ++i) {
      if (i != mpSelfState->GetUnum() &&
          i != mpWorldState->GetTeammateGoalieUnum()) {
        RaisePlayer(i);
      }
      RaisePlayer(-i);
    }
    break;
  case LT_Midfielder:
    for (Unum i = 1; i <= TEAMSIZE; ++i) {
      if (i != mpSelfState->GetUnum() &&
          i != mpWorldState->GetTeammateGoalieUnum()) {
        switch (mpAgent->GetFormation().GetTeammateRoleType(i).mLineType) {
        case LT_Defender:
          RaisePlayer(i, 100.0);
          break;
        case LT_Midfielder:
          RaisePlayer(i, 5.0);
          break;
        case LT_Forward:
          RaisePlayer(i, 5.0);
          break;
        default:
          PRINT_ERROR("line type error");
          break;
        }
      }
      if (mpWorldState->GetOpponent(i).GetPosConf() > FLOAT_EPS) {
        if (mpWorldState->GetOpponent(i).GetPos().X() > mPreBallPos.X() - 8.0)
          RaisePlayer(-i, 3.0);
        else
          RaisePlayer(-i, 100.0);
      }
    }
    if (mpWorldState->GetOpponentGoalieUnum() &&
        mpWorldState->GetOpponent(mpWorldState->GetOpponentGoalieUnum())
                .GetPosConf() > FLOAT_EPS) {
      RaisePlayer(-mpWorldState->GetOpponentGoalieUnum(), 20.0);
    }
    break;
  case LT_Forward:
    for (Unum i = 1; i <= TEAMSIZE; ++i) {
      if (i != mpSelfState->GetUnum() &&
          i != mpWorldState->GetTeammateGoalieUnum()) {
        switch (mpAgent->GetFormation().GetTeammateRoleType(i).mLineType) {
        case LT_Defender:
          RaisePlayer(i, 100.0);
          break;
        case LT_Midfielder:
          RaisePlayer(i, 5.0);
          break;
        case LT_Forward:
          RaisePlayer(i, 3.0);
          break;
        default:
          PRINT_ERROR("line type error");
          break;
        }
      }
      if (mpWorldState->GetOpponent(i).GetPosConf() > FLOAT_EPS) {
        if (mpWorldState->GetOpponent(i).GetPos().X() > mPreBallPos.X() - 8.0)
          RaisePlayer(-i, 3.0);
        else
          RaisePlayer(-i, 100.0);
      }
    }
    break;
  default:
    PRINT_ERROR("line type error");
    break;
  }

  //特殊视觉请求
  if (ServerParam::instance().oppPenaltyArea().IsWithin(mPreSelfPos) &&
      (strategy.IsMyControl() ||
       (strategy.IsTmControl() &&
        mpInfoState->GetPositionInfo().GetBallDistToTeammate(
            mpSelfState->GetUnum()) < 20.0))) {
    if (mpWorldState->GetOpponentGoalieUnum() &&
        mpWorldState->GetOpponent(mpWorldState->GetOpponentGoalieUnum())
                .GetPosConf() > FLOAT_EPS) {
      if (strategy.IsMyControl() &&
          (mpSelfState->GetPos().X() > 38.0 ||
           (mpInfoState->GetPositionInfo().GetBallDistToOpponent(
                mpWorldState->GetOpponentGoalieUnum()) < 8.0 &&
            mpSelfState->GetPos().X() > 36.0))) {
        if (mpWorldState->GetPlayMode() == PM_Our_Back_Pass_Kick ||
            mpWorldState->GetPlayMode() == PM_Our_Indirect_Free_Kick) {
          RaisePlayer(-mpWorldState->GetOpponentGoalieUnum(), 1.2);
        } else {
          RaisePlayer(-mpWorldState->GetOpponentGoalieUnum(), 1.0);
        }
      } else {
        RaisePlayer(-mpWorldState->GetOpponentGoalieUnum(), 2.0);
      }
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
leaq 0x38(%rdi), %rsi
callq 0xf4b0
movq %rax, -0x38(%rbp)
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x57908
movq 0x8(%rbx), %rdi
callq 0x13432
movq 0x20(%rbx), %rcx
movslq 0x11c(%rcx), %rcx
movq 0x10(%rax), %rax
movslq 0x350(%rax,%rcx,4), %rcx
shlq $0x4, %rcx
movl 0x58(%rcx,%rax), %eax
cmpl $0x1, %eax
je 0x58d92
cmpl $0x2, %eax
je 0x58bbe
cmpl $0x3, %eax
jne 0x58de7
movl $0x1, %r15d
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
movl $0x436, %r13d           # imm = 0x436
xorl %r14d, %r14d
movq 0x20(%rbx), %rax
movl 0x11c(%rax), %eax
cmpq %rax, %r15
je 0x58b57
movq 0x10(%rbx), %rax
movl 0x2110(%rax), %eax
cmpq %rax, %r15
je 0x58b57
movq 0x8(%rbx), %rdi
callq 0x13432
movq 0x10(%rax), %rax
movslq 0x354(%rax,%r14,4), %rcx
shlq $0x4, %rcx
movl 0x58(%rcx,%rax), %eax
cmpl $0x3, %eax
je 0x58aa5
cmpl $0x2, %eax
je 0x58a95
cmpl $0x1, %eax
jne 0x58abd
movq %rbx, %rdi
movl %r15d, %esi
movsd 0x10c9d(%rip), %xmm0    # 0x69730
jmp 0x58ab3
movq %rbx, %rdi
movl %r15d, %esi
movsd 0x10f25(%rip), %xmm0    # 0x699c8
jmp 0x58ab3
movq %rbx, %rdi
movl %r15d, %esi
movsd 0x1116d(%rip), %xmm0    # 0x69c20
callq 0x576ea
jmp 0x58b57
movl $0x17, %edx
movq 0x2b527(%rip), %rdi     # 0x83ff0
leaq 0x14b60(%rip), %rsi     # 0x6d630
callq 0x9560
movl $0x1, %edx
movq 0x2b50f(%rip), %rdi     # 0x83ff0
leaq 0x146aa(%rip), %rsi     # 0x6d192
callq 0x9560
movq 0x2b4fc(%rip), %rdi     # 0x83ff0
movl $0x209, %esi            # imm = 0x209
callq 0x9880
movq %rax, -0x30(%rbp)
movl $0x3, %edx
movq %rax, %rdi
leaq 0x12946(%rip), %rsi     # 0x6b457
callq 0x9560
movl $0xf, %edx
movq -0x30(%rbp), %rdi
leaq 0x11ba4(%rip), %rsi     # 0x6a6ca
callq 0x9560
movq -0x30(%rbp), %rcx
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x9480
movsbl %al, %esi
movq -0x30(%rbp), %rdi
callq 0x9070
movq %rax, %rdi
callq 0x9330
movq 0x10(%rbx), %rax
movsd 0x18(%rax,%r13,4), %xmm0
ucomisd 0x104d6(%rip), %xmm0    # 0x69040
jbe 0x58ba2
movsd (%rax,%r13,4), %xmm0
movsd 0x650(%rbx), %xmm1
addsd 0x14a96(%rip), %xmm1    # 0x6d618
xorl %eax, %eax
ucomisd %xmm1, %xmm0
seta %al
leaq 0x14a3e(%rip), %rcx     # 0x6d5d0
movsd (%rcx,%rax,8), %xmm0
movq %rbx, %rdi
movl %r12d, %esi
callq 0x576ea
incq %r15
decl %r12d
addq $0x5e, %r13
incq %r14
cmpq $0xb, %r14
jne 0x58a33
jmp 0x58e75
movl $0x1, %r15d
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
movl $0x436, %r13d           # imm = 0x436
xorl %r14d, %r14d
movq 0x20(%rbx), %rax
movl 0x11c(%rax), %eax
cmpq %rax, %r15
je 0x58ce7
movq 0x10(%rbx), %rax
movl 0x2110(%rax), %eax
cmpq %rax, %r15
je 0x58ce7
movq 0x8(%rbx), %rdi
callq 0x13432
movq 0x10(%rax), %rax
movslq 0x354(%rax,%r14,4), %rcx
shlq $0x4, %rcx
movl 0x58(%rcx,%rax), %eax
cmpl $0x3, %eax
je 0x58c35
cmpl $0x2, %eax
je 0x58c35
cmpl $0x1, %eax
jne 0x58c4d
movq %rbx, %rdi
movl %r15d, %esi
movsd 0x10afd(%rip), %xmm0    # 0x69730
jmp 0x58c43
movq %rbx, %rdi
movl %r15d, %esi
movsd 0x10d85(%rip), %xmm0    # 0x699c8
callq 0x576ea
jmp 0x58ce7
movl $0x17, %edx
movq 0x2b397(%rip), %rdi     # 0x83ff0
leaq 0x149d0(%rip), %rsi     # 0x6d630
callq 0x9560
movl $0x1, %edx
movq 0x2b37f(%rip), %rdi     # 0x83ff0
leaq 0x1451a(%rip), %rsi     # 0x6d192
callq 0x9560
movq 0x2b36c(%rip), %rdi     # 0x83ff0
movl $0x1e9, %esi            # imm = 0x1E9
callq 0x9880
movq %rax, -0x30(%rbp)
movl $0x3, %edx
movq %rax, %rdi
leaq 0x127b6(%rip), %rsi     # 0x6b457
callq 0x9560
movl $0xf, %edx
movq -0x30(%rbp), %rdi
leaq 0x11a14(%rip), %rsi     # 0x6a6ca
callq 0x9560
movq -0x30(%rbp), %rcx
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x9480
movsbl %al, %esi
movq -0x30(%rbp), %rdi
callq 0x9070
movq %rax, %rdi
callq 0x9330
movq 0x10(%rbx), %rax
movsd 0x18(%rax,%r13,4), %xmm0
ucomisd 0x10346(%rip), %xmm0    # 0x69040
jbe 0x58d32
movsd (%rax,%r13,4), %xmm0
movsd 0x650(%rbx), %xmm1
addsd 0x14906(%rip), %xmm1    # 0x6d618
xorl %eax, %eax
ucomisd %xmm1, %xmm0
seta %al
leaq 0x148ae(%rip), %rcx     # 0x6d5d0
movsd (%rcx,%rax,8), %xmm0
movq %rbx, %rdi
movl %r12d, %esi
callq 0x576ea
incq %r15
decl %r12d
addq $0x5e, %r13
incq %r14
cmpq $0xb, %r14
jne 0x58bd3
movq 0x10(%rbx), %rax
movslq 0x2114(%rax), %rsi
testq %rsi, %rsi
je 0x58e75
imulq $0x178, %rsi, %rcx      # imm = 0x178
movsd 0xf78(%rax,%rcx), %xmm0
ucomisd 0x102cb(%rip), %xmm0    # 0x69040
jbe 0x58e75
negl %esi
movsd 0x12213(%rip), %xmm0    # 0x6af98
movq %rbx, %rdi
callq 0x576ea
jmp 0x58e75
movl $0x1, %r14d
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
movq 0x20(%rbx), %rax
cmpl 0x11c(%rax), %r14d
je 0x58dc7
movq 0x10(%rbx), %rax
cmpl 0x2110(%rax), %r14d
je 0x58dc7
xorpd %xmm0, %xmm0
movq %rbx, %rdi
movl %r14d, %esi
callq 0x576ea
xorpd %xmm0, %xmm0
movq %rbx, %rdi
movl %r15d, %esi
callq 0x576ea
incl %r14d
decl %r15d
cmpl $-0xc, %r15d
jne 0x58d9e
jmp 0x58e75
movq 0x2b202(%rip), %r14     # 0x83ff0
leaq 0x1483b(%rip), %rsi     # 0x6d630
movl $0x17, %edx
movq %r14, %rdi
callq 0x9560
leaq 0x14389(%rip), %rsi     # 0x6d192
movl $0x1, %edx
movq %r14, %rdi
callq 0x9560
movq %r14, %rdi
movl $0x216, %esi            # imm = 0x216
callq 0x9880
movq %rax, %r14
leaq 0x1262a(%rip), %rsi     # 0x6b457
movl $0x3, %edx
movq %rax, %rdi
callq 0x9560
leaq 0x11889(%rip), %rsi     # 0x6a6ca
movl $0xf, %edx
movq %r14, %rdi
callq 0x9560
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x9480
movsbl %al, %esi
movq %r14, %rdi
callq 0x9070
movq %rax, %rdi
callq 0x9330
callq 0x49360
movsd 0x660(%rbx), %xmm0
movsd 0x3850(%rax), %xmm1
addsd 0x101e6(%rip), %xmm1    # 0x69078
ucomisd %xmm1, %xmm0
jb 0x58ee2
movsd 0x3858(%rax), %xmm1
addsd 0x10198(%rip), %xmm1    # 0x69040
ucomisd %xmm0, %xmm1
jb 0x58ee2
movsd 0x668(%rbx), %xmm0
movsd 0x3860(%rax), %xmm1
addsd 0x101b2(%rip), %xmm1    # 0x69078
ucomisd %xmm1, %xmm0
jb 0x58ee2
movsd 0x3868(%rax), %xmm1
addsd 0x10164(%rip), %xmm1    # 0x69040
ucomisd %xmm0, %xmm1
jae 0x58ef1
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq -0x38(%rbp), %rdi
callq 0x4b51a
testb %al, %al
jne 0x58f31
movq -0x38(%rbp), %rax
cmpl $0x0, 0x48(%rax)
jle 0x58ee2
movq 0x28(%rbx), %rdi
callq 0x2a4b4
movq 0x20(%rbx), %rcx
movl 0x11c(%rcx), %esi
movq %rax, %rdi
callq 0x4706a
movsd 0x1206d(%rip), %xmm0    # 0x6af98
ucomisd (%rax), %xmm0
jbe 0x58ee2
movq 0x10(%rbx), %rax
movslq 0x2114(%rax), %rcx
testq %rcx, %rcx
je 0x58ee2
imulq $0x178, %rcx, %rcx      # imm = 0x178
movsd 0xf78(%rax,%rcx), %xmm0
ucomisd 0x100e7(%rip), %xmm0    # 0x69040
jbe 0x58ee2
movq -0x38(%rbp), %rdi
callq 0x4b51a
testb %al, %al
je 0x58fdc
movq 0x20(%rbx), %rax
movsd 0x8(%rax), %xmm0
ucomisd 0x146a7(%rip), %xmm0    # 0x6d620
jbe 0x58f9e
movq 0x10(%rbx), %rax
movl 0x1c(%rax), %ecx
movsd 0x11856(%rip), %xmm0    # 0x6a7e0
cmpl $0x7, %ecx
je 0x58fe8
cmpl $0xa, %ecx
je 0x58fe8
movsd 0x100bc(%rip), %xmm0    # 0x69058
jmp 0x58fe8
movq 0x28(%rbx), %rdi
callq 0x2a4b4
movq 0x10(%rbx), %rcx
xorl %esi, %esi
subl 0x2114(%rcx), %esi
movq %rax, %rdi
callq 0x4706a
movsd 0x14645(%rip), %xmm0    # 0x6d608
ucomisd (%rax), %xmm0
jbe 0x58fdc
movq 0x20(%rbx), %rax
movsd 0x8(%rax), %xmm0
ucomisd 0x10cfe(%rip), %xmm0    # 0x69cd8
ja 0x58f7b
movq 0x10(%rbx), %rax
movsd 0x10798(%rip), %xmm0    # 0x69780
xorl %esi, %esi
subl 0x2114(%rax), %esi
movq %rbx, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x576ea