// File: /workspace/github_cpp_makefile_star2_O1/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 0xf5c4
movq %rax, -0x38(%rbp)
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x59178
movq 0x8(%rbx), %rdi
callq 0x1356e
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 0x5a5fc
cmpl $0x2, %eax
je 0x5a428
cmpl $0x3, %eax
jne 0x5a651
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 0x5a3c1
movq 0x10(%rbx), %rax
movl 0x2110(%rax), %eax
cmpq %rax, %r15
je 0x5a3c1
movq 0x8(%rbx), %rdi
callq 0x1356e
movq 0x10(%rax), %rax
movslq 0x354(%rax,%r14,4), %rcx
shlq $0x4, %rcx
movl 0x58(%rcx,%rax), %eax
cmpl $0x3, %eax
je 0x5a30f
cmpl $0x2, %eax
je 0x5a2ff
cmpl $0x1, %eax
jne 0x5a327
movq %rbx, %rdi
movl %r15d, %esi
movsd 0x11433(%rip), %xmm0    # 0x6b730
jmp 0x5a31d
movq %rbx, %rdi
movl %r15d, %esi
movsd 0x116bb(%rip), %xmm0    # 0x6b9c8
jmp 0x5a31d
movq %rbx, %rdi
movl %r15d, %esi
movsd 0x11903(%rip), %xmm0    # 0x6bc20
callq 0x58f34
jmp 0x5a3c1
movl $0x17, %edx
movq 0x2ccbd(%rip), %rdi     # 0x86ff0
leaq 0x15336(%rip), %rsi     # 0x6f670
callq 0x9560
movl $0x1, %edx
movq 0x2cca5(%rip), %rdi     # 0x86ff0
leaq 0x14e70(%rip), %rsi     # 0x6f1c2
callq 0x9560
movq 0x2cc92(%rip), %rdi     # 0x86ff0
movl $0x209, %esi            # imm = 0x209
callq 0x9880
movq %rax, -0x30(%rbp)
movl $0x3, %edx
movq %rax, %rdi
leaq 0x13104(%rip), %rsi     # 0x6d47f
callq 0x9560
movl $0xf, %edx
movq -0x30(%rbp), %rdi
leaq 0x1234a(%rip), %rsi     # 0x6c6da
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 0x10c6c(%rip), %xmm0    # 0x6b040
jbe 0x5a40c
movsd (%rax,%r13,4), %xmm0
movsd 0x650(%rbx), %xmm1
addsd 0x1526c(%rip), %xmm1    # 0x6f658
xorl %eax, %eax
ucomisd %xmm1, %xmm0
seta %al
leaq 0x15214(%rip), %rcx     # 0x6f610
movsd (%rcx,%rax,8), %xmm0
movq %rbx, %rdi
movl %r12d, %esi
callq 0x58f34
incq %r15
decl %r12d
addq $0x5e, %r13
incq %r14
cmpq $0xb, %r14
jne 0x5a29d
jmp 0x5a6df
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 0x5a551
movq 0x10(%rbx), %rax
movl 0x2110(%rax), %eax
cmpq %rax, %r15
je 0x5a551
movq 0x8(%rbx), %rdi
callq 0x1356e
movq 0x10(%rax), %rax
movslq 0x354(%rax,%r14,4), %rcx
shlq $0x4, %rcx
movl 0x58(%rcx,%rax), %eax
cmpl $0x3, %eax
je 0x5a49f
cmpl $0x2, %eax
je 0x5a49f
cmpl $0x1, %eax
jne 0x5a4b7
movq %rbx, %rdi
movl %r15d, %esi
movsd 0x11293(%rip), %xmm0    # 0x6b730
jmp 0x5a4ad
movq %rbx, %rdi
movl %r15d, %esi
movsd 0x1151b(%rip), %xmm0    # 0x6b9c8
callq 0x58f34
jmp 0x5a551
movl $0x17, %edx
movq 0x2cb2d(%rip), %rdi     # 0x86ff0
leaq 0x151a6(%rip), %rsi     # 0x6f670
callq 0x9560
movl $0x1, %edx
movq 0x2cb15(%rip), %rdi     # 0x86ff0
leaq 0x14ce0(%rip), %rsi     # 0x6f1c2
callq 0x9560
movq 0x2cb02(%rip), %rdi     # 0x86ff0
movl $0x1e9, %esi            # imm = 0x1E9
callq 0x9880
movq %rax, -0x30(%rbp)
movl $0x3, %edx
movq %rax, %rdi
leaq 0x12f74(%rip), %rsi     # 0x6d47f
callq 0x9560
movl $0xf, %edx
movq -0x30(%rbp), %rdi
leaq 0x121ba(%rip), %rsi     # 0x6c6da
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 0x10adc(%rip), %xmm0    # 0x6b040
jbe 0x5a59c
movsd (%rax,%r13,4), %xmm0
movsd 0x650(%rbx), %xmm1
addsd 0x150dc(%rip), %xmm1    # 0x6f658
xorl %eax, %eax
ucomisd %xmm1, %xmm0
seta %al
leaq 0x15084(%rip), %rcx     # 0x6f610
movsd (%rcx,%rax,8), %xmm0
movq %rbx, %rdi
movl %r12d, %esi
callq 0x58f34
incq %r15
decl %r12d
addq $0x5e, %r13
incq %r14
cmpq $0xb, %r14
jne 0x5a43d
movq 0x10(%rbx), %rax
movslq 0x2114(%rax), %rsi
testq %rsi, %rsi
je 0x5a6df
imulq $0x178, %rsi, %rcx      # imm = 0x178
movsd 0xf78(%rax,%rcx), %xmm0
ucomisd 0x10a61(%rip), %xmm0    # 0x6b040
jbe 0x5a6df
negl %esi
movsd 0x129b9(%rip), %xmm0    # 0x6cfa8
movq %rbx, %rdi
callq 0x58f34
jmp 0x5a6df
movl $0x1, %r14d
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
movq 0x20(%rbx), %rax
cmpl 0x11c(%rax), %r14d
je 0x5a631
movq 0x10(%rbx), %rax
cmpl 0x2110(%rax), %r14d
je 0x5a631
xorpd %xmm0, %xmm0
movq %rbx, %rdi
movl %r14d, %esi
callq 0x58f34
xorpd %xmm0, %xmm0
movq %rbx, %rdi
movl %r15d, %esi
callq 0x58f34
incl %r14d
decl %r15d
cmpl $-0xc, %r15d
jne 0x5a608
jmp 0x5a6df
movq 0x2c998(%rip), %r14     # 0x86ff0
leaq 0x15011(%rip), %rsi     # 0x6f670
movl $0x17, %edx
movq %r14, %rdi
callq 0x9560
leaq 0x14b4f(%rip), %rsi     # 0x6f1c2
movl $0x1, %edx
movq %r14, %rdi
callq 0x9560
movq %r14, %rdi
movl $0x216, %esi            # imm = 0x216
callq 0x9880
movq %rax, %r14
leaq 0x12de8(%rip), %rsi     # 0x6d47f
movl $0x3, %edx
movq %rax, %rdi
callq 0x9560
leaq 0x1202f(%rip), %rsi     # 0x6c6da
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 0x4a75c
movsd 0x660(%rbx), %xmm0
movsd 0x3850(%rax), %xmm1
addsd 0x1097c(%rip), %xmm1    # 0x6b078
ucomisd %xmm1, %xmm0
jb 0x5a74c
movsd 0x3858(%rax), %xmm1
addsd 0x1092e(%rip), %xmm1    # 0x6b040
ucomisd %xmm0, %xmm1
jb 0x5a74c
movsd 0x668(%rbx), %xmm0
movsd 0x3860(%rax), %xmm1
addsd 0x10948(%rip), %xmm1    # 0x6b078
ucomisd %xmm1, %xmm0
jb 0x5a74c
movsd 0x3868(%rax), %xmm1
addsd 0x108fa(%rip), %xmm1    # 0x6b040
ucomisd %xmm0, %xmm1
jae 0x5a75b
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq -0x38(%rbp), %rdi
callq 0x4c97e
testb %al, %al
jne 0x5a79b
movq -0x38(%rbp), %rax
cmpl $0x0, 0x48(%rax)
jle 0x5a74c
movq 0x28(%rbx), %rdi
callq 0x2adf8
movq 0x20(%rbx), %rcx
movl 0x11c(%rcx), %esi
movq %rax, %rdi
callq 0x4846e
movsd 0x12813(%rip), %xmm0    # 0x6cfa8
ucomisd (%rax), %xmm0
jbe 0x5a74c
movq 0x10(%rbx), %rax
movslq 0x2114(%rax), %rcx
testq %rcx, %rcx
je 0x5a74c
imulq $0x178, %rcx, %rcx      # imm = 0x178
movsd 0xf78(%rax,%rcx), %xmm0
ucomisd 0x1087d(%rip), %xmm0    # 0x6b040
jbe 0x5a74c
movq -0x38(%rbp), %rdi
callq 0x4c97e
testb %al, %al
je 0x5a846
movq 0x20(%rbx), %rax
movsd 0x8(%rax), %xmm0
ucomisd 0x14e7d(%rip), %xmm0    # 0x6f660
jbe 0x5a808
movq 0x10(%rbx), %rax
movl 0x1c(%rax), %ecx
movsd 0x11ffc(%rip), %xmm0    # 0x6c7f0
cmpl $0x7, %ecx
je 0x5a852
cmpl $0xa, %ecx
je 0x5a852
movsd 0x10852(%rip), %xmm0    # 0x6b058
jmp 0x5a852
movq 0x28(%rbx), %rdi
callq 0x2adf8
movq 0x10(%rbx), %rcx
xorl %esi, %esi
subl 0x2114(%rcx), %esi
movq %rax, %rdi
callq 0x4846e
movsd 0x14e13(%rip), %xmm0    # 0x6f640
ucomisd (%rax), %xmm0
jbe 0x5a846
movq 0x20(%rbx), %rax
movsd 0x8(%rax), %xmm0
ucomisd 0x1149c(%rip), %xmm0    # 0x6bce0
ja 0x5a7e5
movq 0x10(%rbx), %rax
movsd 0x10f2e(%rip), %xmm0    # 0x6b780
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 0x58f34