// File: /workspace/github_cpp_makefile_star2_O3/wrighteagle2d[P]wrighteaglebase/Debug/../src/VisualSystem.cpp
// Function: VisualSystem::DoInfoGatherForDefense()
void VisualSystem::DoInfoGatherForDefense() {
  if (mVisualRequest.GetOfBall().mConf < FLOAT_EPS && !mCanTurn &&
      !mIsCritical) {
    mForceToSeeObject.GetOfBall() = true;
  }

  RaiseBall();
  switch (mpAgent->GetFormation()
              .GetTeammateRoleType(mpSelfState->GetUnum())
              .mLineType) {
  case LT_Goalie:
  case LT_Defender:
    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, 5.0);
          break;
        case LT_Midfielder:
          RaisePlayer(i, 10.0);
          break;
        case LT_Forward:
          RaisePlayer(i, 100.0);
          break;
        default:
          PRINT_ERROR("line type error");
          break;
        }
      }
      RaisePlayer(-i);
    }
    break;
  case LT_Midfielder:
    for (Unum i = 1; i <= TEAMSIZE; ++i) {
      if (i != mpSelfState->GetUnum() &&
          i != mpWorldState->GetTeammateGoalieUnum()) {
        RaisePlayer(i);
      }
      RaisePlayer(-i, 12.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, 12.0);
          break;
        case LT_Midfielder:
          RaisePlayer(i, 8.0);
          break;
        case LT_Forward:
          RaisePlayer(i, 8.0);
          break;
        default:
          PRINT_ERROR("line type error");
          break;
        }
      }
      RaisePlayer(-i, 12.0);
    }
    break;
  default:
    PRINT_ERROR("line type error");
    break;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movsd 0x11531(%rip), %xmm0    # 0x69040
ucomisd 0x50(%rdi), %xmm0
jbe 0x57b2f
cmpb $0x0, 0x63c(%rbx)
jne 0x57b2f
cmpb $0x0, 0x638(%rbx)
jne 0x57b2f
movb $0x1, 0x5f0(%rbx)
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 $0x2, %eax
jb 0x57cbe
je 0x57e17
cmpl $0x3, %eax
jne 0x57eb9
movl $0x1, %r14d
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
xorl %r12d, %r12d
movq 0x20(%rbx), %rax
movl 0x11c(%rax), %eax
cmpq %rax, %r14
je 0x57c93
movq 0x10(%rbx), %rax
movl 0x2110(%rax), %eax
cmpq %rax, %r14
je 0x57c93
movq 0x8(%rbx), %rdi
callq 0x13432
movq 0x10(%rax), %rax
movslq 0x354(%rax,%r12,4), %rcx
shlq $0x4, %rcx
movl 0x58(%rcx,%rax), %eax
cmpl $0x3, %eax
je 0x57bec
cmpl $0x2, %eax
je 0x57bec
cmpl $0x1, %eax
jne 0x57c04
movq %rbx, %rdi
movl %r14d, %esi
movsd 0x11b86(%rip), %xmm0    # 0x69770
jmp 0x57bfa
movq %rbx, %rdi
movl %r14d, %esi
movsd 0x15a0e(%rip), %xmm0    # 0x6d608
callq 0x576ea
jmp 0x57c93
movl $0x17, %edx
movq 0x2c3e0(%rip), %r13     # 0x83ff0
movq %r13, %rdi
leaq 0x15a16(%rip), %rsi     # 0x6d630
callq 0x9560
movl $0x1, %edx
movq %r13, %rdi
leaq 0x15564(%rip), %rsi     # 0x6d192
callq 0x9560
movq %r13, %rdi
movl $0x273, %esi            # imm = 0x273
callq 0x9880
movq %rax, %r13
movl $0x3, %edx
movq %rax, %rdi
leaq 0x13805(%rip), %rsi     # 0x6b457
callq 0x9560
movl $0xf, %edx
movq %r13, %rdi
leaq 0x12a64(%rip), %rsi     # 0x6a6ca
callq 0x9560
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x9480
movsbl %al, %esi
movq %r13, %rdi
callq 0x9070
movq %rax, %rdi
callq 0x9330
movq %rbx, %rdi
movl %r15d, %esi
movsd 0x11acf(%rip), %xmm0    # 0x69770
callq 0x576ea
incq %r14
decl %r15d
incq %r12
cmpq $0xb, %r12
jne 0x57b8a
jmp 0x57e08
movl $0x1, %r14d
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
xorl %r12d, %r12d
movq 0x20(%rbx), %rax
movl 0x11c(%rax), %eax
cmpq %rax, %r14
je 0x57de6
movq 0x10(%rbx), %rax
movl 0x2110(%rax), %eax
cmpq %rax, %r14
je 0x57de6
movq 0x8(%rbx), %rdi
callq 0x13432
movq 0x10(%rax), %rax
movslq 0x354(%rax,%r12,4), %rcx
shlq $0x4, %rcx
movl 0x58(%rcx,%rax), %eax
cmpl $0x3, %eax
je 0x57d3f
cmpl $0x2, %eax
je 0x57d2f
cmpl $0x1, %eax
jne 0x57d57
movq %rbx, %rdi
movl %r14d, %esi
movsd 0x11c9b(%rip), %xmm0    # 0x699c8
jmp 0x57d4d
movq %rbx, %rdi
movl %r14d, %esi
movsd 0x11a23(%rip), %xmm0    # 0x69760
jmp 0x57d4d
movq %rbx, %rdi
movl %r14d, %esi
movsd 0x119e3(%rip), %xmm0    # 0x69730
callq 0x576ea
jmp 0x57de6
movl $0x17, %edx
movq 0x2c28d(%rip), %r13     # 0x83ff0
movq %r13, %rdi
leaq 0x158c3(%rip), %rsi     # 0x6d630
callq 0x9560
movl $0x1, %edx
movq %r13, %rdi
leaq 0x15411(%rip), %rsi     # 0x6d192
callq 0x9560
movq %r13, %rdi
movl $0x24f, %esi            # imm = 0x24F
callq 0x9880
movq %rax, %r13
movl $0x3, %edx
movq %rax, %rdi
leaq 0x136b2(%rip), %rsi     # 0x6b457
callq 0x9560
movl $0xf, %edx
movq %r13, %rdi
leaq 0x12911(%rip), %rsi     # 0x6a6ca
callq 0x9560
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x9480
movsbl %al, %esi
movq %r13, %rdi
callq 0x9070
movq %rax, %rdi
callq 0x9330
xorpd %xmm0, %xmm0
movq %rbx, %rdi
movl %r15d, %esi
callq 0x576ea
incq %r14
decl %r15d
incq %r12
cmpq $0xb, %r12
jne 0x57ccd
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x1, %r14d
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
movq 0x20(%rbx), %rax
cmpl 0x11c(%rax), %r14d
je 0x57e4c
movq 0x10(%rbx), %rax
cmpl 0x2110(%rax), %r14d
je 0x57e4c
xorpd %xmm0, %xmm0
movq %rbx, %rdi
movl %r14d, %esi
callq 0x576ea
movq %rbx, %rdi
movl %r15d, %esi
movsd 0x11916(%rip), %xmm0    # 0x69770
callq 0x576ea
incl %r14d
decl %r15d
cmpl $-0xc, %r15d
jne 0x57e23
movq 0x10(%rbx), %rax
movslq 0x2114(%rax), %rsi
testq %rsi, %rsi
je 0x57e08
imulq $0x178, %rsi, %rcx      # imm = 0x178
movsd 0xf78(%rax,%rcx), %xmm0
ucomisd 0x111ad(%rip), %xmm0    # 0x69040
jbe 0x57e08
negl %esi
movsd 0x130f5(%rip), %xmm0    # 0x6af98
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x576ea
movq 0x2c130(%rip), %rbx     # 0x83ff0
leaq 0x15769(%rip), %rsi     # 0x6d630
movl $0x17, %edx
movq %rbx, %rdi
callq 0x9560
leaq 0x152b7(%rip), %rsi     # 0x6d192
movl $0x1, %edx
movq %rbx, %rdi
callq 0x9560
movq %rbx, %rdi
movl $0x27b, %esi            # imm = 0x27B
callq 0x9880
movq %rax, %rbx
leaq 0x13558(%rip), %rsi     # 0x6b457
movl $0x3, %edx
movq %rax, %rdi
callq 0x9560
leaq 0x127b7(%rip), %rsi     # 0x6a6ca
movl $0xf, %edx
movq %rbx, %rdi
callq 0x9560
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x9480
movsbl %al, %esi
movq %rbx, %rdi
callq 0x9070
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x9330
nop