// [TypeInfo RVA: 0x0]
private sealed class <MoveToFarPointCoroutine>d__83 : Object
{
	private int <>1__state; // 0x10
	private object <>2__current; // 0x18
	public AdvancedAI_Final <>4__this; // 0x20
	private float <origSpeed>5__2; // 0x28
	private float <origAcc>5__3; // 0x2C
	private UnityEngine.Transform <targetPoint>5__4; // 0x30
	private float <startTime>5__5; // 0x38

	// RVA: 0x31F6368 VA: 0x78188E1368
	public void .ctor(int <>1__state);
	/*
	 *   System.Object..ctor(this);
	 *   this.n_1_state = n_1_state;
	 *   return;
	 */
	// RVA: 0x31F6974 VA: 0x78188E1974
	private void System.IDisposable.Dispose();
	/*
	 *   return;
	 */
	// RVA: 0x31F6978 VA: 0x78188E1978
	private bool MoveNext();
	/*
	 *   undefined *puVar1;
	 *   undefined *puVar2;
	 *   bool bVar3;
	 *   uint uVar4;
	 *   ulong uVar5;
	 *   void *pvVar6;
	 *   long lVar7;
	 *   void *extraout_x1;
	 *   void *in_x4;
	 *   AdvancedAI_Final *this_00;
	 *   float fVar8;
	 *   float fVar9;
	 *   float fVar10;
	 *   UnityEngine_Vector3 UVar11;
	 *   UnityEngine_Vector3 UVar12;
	 *   undefined8 uStack_b8;
	 *   undefined8 *puStack_b0;
	 *   void *pvStack_a8;
	 *   undefined8 uStack_a0;
	 *   undefined8 *puStack_98;
	 *   void *pvStack_90;
	 *   undefined8 uStack_80;
	 *   undefined8 *puStack_78;
	 *   void *pvStack_70;
	 *
	 *   if ((bRam000000000754a745 & 1) == 0) {
	 *     func_0x031fdc8c(typeinfo_ptr_UnityEngine_CoreModule_Debug_6FC07A8);
	 *     func_0x031fdc8c(PTR_DAT_070c0920);
	 *     func_0x031fdc8c(PTR_DAT_070c0928);
	 *     func_0x031fdc8c(PTR_DAT_070c0930);
	 *     func_0x031fdc8c(PTR_DAT_070c0938);
	 *     func_0x031fdc8c(PTR_DAT_070c0940);
	 *     func_0x031fdc8c(PTR_DAT_070c0948);
	 *     func_0x031fdc8c(PTR_DAT_070c0950);
	 *     func_0x031fdc8c(PTR_DAT_070c0958);
	 *     func_0x031fdc8c(PTR_DAT_070c0ab8);
	 *     func_0x031fdc8c(typeinfo_ptr_UnityEngine_CoreModule_Object_6FC07E8);
	 *     func_0x031fdc8c(typeinfo_ptr_PhotonUnityNetworking_PhotonNetwork_6FC08F0);
	 *     func_0x031fdc8c(PTR_DAT_070c0ac0);
	 *     func_0x031fdc8c(PTR_DAT_070c0ac8);
	 *     bRam000000000754a745 = 1;
	 *     methodInfo = extraout_x1;
	 *   }
	 *   puVar1 = typeinfo_ptr_PhotonUnityNetworking_PhotonNetwork_6FC08F0;
	 *   this_00 = this.n_4_this;
	 *   uStack_80 = 0;
	 *   puStack_78 = null;
	 *   pvStack_70 = null;
	 *   uStack_a0 = 0;
	 *   puStack_98 = null;
	 *   pvStack_90 = null;
	 *   if (this.n_1_state == 1) {
	 *     this.n_1_state = -1;
	 *     if (this_00 == null) goto LAB_032f7000;
	 *   }
	 *   else {
	 *     if (this.n_1_state != 0) {
	 *       return false;
	 *     }
	 *     this.n_1_state = -1;
	 *     if (*(int *)(*(long *)puVar1 + 0xe4) == 0) {
	 *       func_0x031fde08(*(long *)puVar1,methodInfo);
	 *     }
	 *     bVar3 = Photon.Pun.PhotonNetwork.get_IsMasterClient();
	 *     if (!bVar3) {
	 *       return false;
	 *     }
	 *     if (this_00 == null) goto LAB_032f7000;
	 *     this_00->allowBehaviorUpdate = false;
	 *     if (this_00->objectsToDisableDuringStalk == null) goto LAB_032f7000;
	 *     func_0x03f2e1a8(&uStack_b8,this_00->objectsToDisableDuringStalk,*(undefined8 *)PTR_DAT_070c0950)
	 *     ;
	 *     puVar2 = PTR_DAT_070c0938;
	 *     puVar1 = typeinfo_ptr_UnityEngine_CoreModule_Object_6FC07E8;
	 *     puStack_78 = puStack_b0;
	 *     uStack_80 = uStack_b8;
	 *     pvStack_70 = pvStack_a8;
	 *     uStack_b8 = 0;
	 *     puStack_b0 = &uStack_80;
	 *     while (uVar5 = func_0x05018cac(&uStack_80,*(undefined8 *)puVar2), pvVar6 = pvStack_70,
	 *           (uVar5 & 1) != 0) {
	 *       if (*(int *)(*(long *)puVar1 + 0xe4) == 0) {
	 *         func_0x031fde08();
	 *       }
	 *       uVar5 = UnityEngine.Object.op_Inequality(pvVar6,null);
	 *       if ((uVar5 & 1) != 0) {
	 *         if (pvVar6 == null) {
	 *           IL2CPP.ThrowNullReferenceException();
	 *         }
	 *         UnityEngine.GameObject.SetActive(pvVar6,true);
	 *       }
	 *     }
	 *     func_0x05018ca8(&uStack_80,*(undefined8 *)PTR_DAT_070c0920);
	 *     pvVar6 = this_00->audioToMuteDuringStalk;
	 *     if ((pvVar6 != null) && (0 < *(int *)((long)pvVar6 + 0x18))) {
	 *       func_0x03f2e1a8(&uStack_b8,pvVar6,*(undefined8 *)PTR_DAT_070c0958);
	 *       puVar2 = PTR_DAT_070c0930;
	 *       puStack_98 = puStack_b0;
	 *       uStack_a0 = uStack_b8;
	 *       pvStack_90 = pvStack_a8;
	 *       uStack_b8 = 0;
	 *       puStack_b0 = &uStack_a0;
	 *       while (uVar5 = func_0x05018cac(&uStack_a0,*(undefined8 *)puVar2), pvVar6 = pvStack_90,
	 *             (uVar5 & 1) != 0) {
	 *         if (*(int *)(*(long *)puVar1 + 0xe4) == 0) {
	 *           func_0x031fde08();
	 *         }
	 *         uVar5 = UnityEngine.Object.op_Inequality(pvVar6,null);
	 *         if ((uVar5 & 1) != 0) {
	 *           if (pvVar6 == null) {
	 *             IL2CPP.ThrowNullReferenceException();
	 *           }
	 *           UnityEngine.AudioSource.set_mute(pvVar6,false);
	 *           UnityEngine.InputSystem.OnScreen.OnScreenStick.Behaviour.set_enabled(pvVar6,true);
	 *         }
	 *       }
	 *       func_0x05018ca8(&uStack_a0,*(undefined8 *)PTR_DAT_070c0928);
	 *     }
	 *     if ((this_00->farPoints == null) || (*(long *)((long)this_00->farPoints + 0x18) == 0)) {
	 *       if (*(int *)(*(long *)typeinfo_ptr_UnityEngine_CoreModule_Debug_6FC07A8 + 0xe4) == 0) {
	 *         func_0x031fde08();
	 *       }
	 *       UnityEngine.Debug.LogWarning(*(void **)PTR_DAT_070c0ac0);
	 *       this_00->allowBehaviorUpdate = true;
	 *       AdvancedAI_Final.SwitchToBehaviorWithTarget(this_00,0,null,false);
	 *       return false;
	 *     }
	 *     pvVar6 = this_00->agent;
	 *     if (*(int *)(*(long *)puVar1 + 0xe4) == 0) {
	 *       func_0x031fde08();
	 *     }
	 *     uVar5 = UnityEngine.Object.op_Inequality(pvVar6,null);
	 *     if ((uVar5 & 1) != 0) {
	 *       if (this_00->agent == null) goto LAB_032f7000;
	 *       UnityEngine.AI.NavMeshAgent.set_isStopped(this_00->agent,false);
	 *     }
	 *     pvVar6 = this_00->agent;
	 *     if (*(int *)(*(long *)puVar1 + 0xe4) == 0) {
	 *       func_0x031fde08();
	 *     }
	 *     uVar5 = UnityEngine.Object.op_Inequality(pvVar6,null);
	 *     fVar8 = 0.0;
	 *     if ((uVar5 & 1) != 0) {
	 *       if (this_00->agent == null) goto LAB_032f7000;
	 *       fVar8 = UnityEngine.AI.NavMeshAgent.get_speed(this_00->agent);
	 *     }
	 *     if (this == null) goto LAB_032f7000;
	 *     lVar7 = *(long *)puVar1;
	 *     this.origSpeed_5_2 = fVar8;
	 *     pvVar6 = this_00->agent;
	 *     if (*(int *)(lVar7 + 0xe4) == 0) {
	 *       func_0x031fde08();
	 *     }
	 *     uVar5 = UnityEngine.Object.op_Inequality(pvVar6,null);
	 *     fVar8 = 0.0;
	 *     if ((uVar5 & 1) != 0) {
	 *       if (this_00->agent == null) goto LAB_032f7000;
	 *       fVar8 = UnityEngine.AI.NavMeshAgent.get_acceleration(this_00->agent);
	 *     }
	 *     lVar7 = *(long *)puVar1;
	 *     this.origAcc_5_3 = fVar8;
	 *     pvVar6 = this_00->agent;
	 *     if (*(int *)(lVar7 + 0xe4) == 0) {
	 *       func_0x031fde08();
	 *     }
	 *     uVar5 = UnityEngine.Object.op_Inequality(pvVar6,null);
	 *     if ((uVar5 & 1) != 0) {
	 *       if (this_00->agent == null) goto LAB_032f7000;
	 *       UnityEngine.AI.NavMeshAgent.set_speed(this_00->agent,this_00->chaseSpeed);
	 *       if (this_00->agent == null) goto LAB_032f7000;
	 *       UnityEngine.AI.NavMeshAgent.set_acceleration(this_00->agent,this_00->accelerationBurst);
	 *     }
	 *     pvVar6 = this_00->farPoints;
	 *     if (pvVar6 == null) goto LAB_032f7000;
	 *     uVar4 = Random.Range(0,*(int *)((long)pvVar6 + 0x18));
	 *     if (*(uint *)((long)pvVar6 + 0x18) <= uVar4) {
	 *       IL2CPP.ThrowIndexOutOfRangeException();
	 *     }
	 *     this.targetPoint_5_4 = *(void **)((long)pvVar6 + (long)(int)uVar4 * 8 + 0x20);
	 *     func_0x031fdc38(&this.targetPoint_5_4);
	 *     fVar8 = UnityEngine.Time.get_time();
	 *     this.startTime_5_5 = fVar8;
	 *   }
	 *   puVar1 = typeinfo_ptr_UnityEngine_CoreModule_Object_6FC07E8;
	 *   pvVar6 = this_00->agent;
	 *   if (*(int *)(*(long *)typeinfo_ptr_UnityEngine_CoreModule_Object_6FC07E8 + 0xe4) == 0) {
	 *     func_0x031fde08();
	 *   }
	 *   uVar5 = UnityEngine.Object.op_Inequality(pvVar6,null);
	 *   if ((uVar5 & 1) != 0) {
	 *     if (this_00->agent == null) goto LAB_032f7000;
	 *     bVar3 = UnityEngine.AI.NavMeshAgent.get_pathPending(this_00->agent);
	 *     if (!bVar3) {
	 *       if (this.targetPoint_5_4 == null) goto LAB_032f7000;
	 *       pvVar6 = this_00->agent;
	 *       UVar11 = UnityEngine.Transform.get_position(this.targetPoint_5_4);
	 *       if (pvVar6 == null) goto LAB_032f7000;
	 *       UnityEngine.AI.NavMeshAgent.SetDestination(pvVar6,UVar11);
	 *     }
	 *   }
	 *   pvVar6 = UnityEngine.Component.get_transform(this_00);
	 *   if (pvVar6 != null) {
	 *     UVar11 = UnityEngine.Transform.get_position(pvVar6);
	 *     if (this.targetPoint_5_4 != null) {
	 *       UVar12 = UnityEngine.Transform.get_position(this.targetPoint_5_4);
	 *       if (cRam000000000754a7c9 == '\0') {
	 *         func_0x031fdc8c(typeinfo_ptr_mscorlib_Math_6FC0738);
	 *         cRam000000000754a7c9 = '\x01';
	 *       }
	 *       if (*(int *)(*(long *)typeinfo_ptr_mscorlib_Math_6FC0738 + 0xe4) == 0) {
	 *         func_0x031fde08();
	 *       }
	 *       fVar8 = UVar11.y - UVar12.y;
	 *       fVar9 = UVar11.x - UVar12.x;
	 *       fVar10 = UVar11.z - UVar12.z;
	 *       if (1.0 < SQRT(fVar10 * fVar10 + fVar9 * fVar9 + fVar8 * fVar8)) {
	 *         fVar8 = UnityEngine.Time.get_time();
	 *         if (fVar8 - this.startTime_5_5 <= 90.0) {
	 *           this.n_2_current = null;
	 *           func_0x031fdc38(&this.n_2_current,0);
	 *           this.n_1_state = 1;
	 *           return true;
	 *         }
	 *         if (*(int *)(*(long *)typeinfo_ptr_UnityEngine_CoreModule_Debug_6FC07A8 + 0xe4) == 0) {
	 *           func_0x031fde08();
	 *         }
	 *         UnityEngine.Debug.LogWarning(*(void **)PTR_DAT_070c0ac8);
	 *       }
	 *       pvVar6 = this_00->agent;
	 *       if (*(int *)(*(long *)puVar1 + 0xe4) == 0) {
	 *         func_0x031fde08();
	 *       }
	 *       uVar5 = UnityEngine.Object.op_Inequality(pvVar6,null);
	 *       if ((uVar5 & 1) == 0) {
	 * LAB_032f6cf8:
	 *         this_00->currentTarget = null;
	 *         func_0x031fdc38(&this_00->currentTarget,0);
	 *         this_00->allowBehaviorUpdate = true;
	 *         AdvancedAI_Final.SwitchToBehaviorWithTarget(this_00,0,null,false);
	 *         this_00->activeCoroutine = null;
	 *         func_0x031fdc38(&this_00->activeCoroutine,0);
	 *         return false;
	 *       }
	 *       if (this_00->agent != null) {
	 *         UnityEngine.AI.NavMeshAgent.set_speed(this_00->agent,this.origSpeed_5_2);
	 *         if (this_00->agent != null) {
	 *           UnityEngine.AI.NavMeshAgent.set_acceleration(this_00->agent,this.origAcc_5_3);
	 *           goto LAB_032f6cf8;
	 *         }
	 *       }
	 *     }
	 *   }
	 * LAB_032f7000:
	 *   IL2CPP.ThrowNullReferenceException();
	 */
	// RVA: 0x31F70D4 VA: 0x78188E20D4
	private object System.Collections.Generic.IEnumerator<System.Object>.get_Current();
	/*
	 *   return this.n_2_current;
	 */
	// RVA: 0x31F70DC VA: 0x78188E20DC
	private void System.Collections.IEnumerator.Reset();
	/*
	 *   void *this_00;
	 *   undefined8 uVar1;
	 *
	 *   func_0x031fdca0(PTR_DAT_070c0ad0);
	 *   this_00 = (void *)func_0x031fdf24();
	 *   System.NotSupportedException..ctor(this_00);
	 *   uVar1 = func_0x031fdca0(PTR_DAT_070c0ad8);
	 *   IL2CPP.ThrowManagedException();
	 */
	// RVA: 0x31F7114 VA: 0x78188E2114
	private object System.Collections.IEnumerator.get_Current();
	/*
	 *   return this.n_2_current;
	 */
}
