namespace PixelSecurity.Modules.SecuredTime
{

	// [TypeInfo RVA: 0x0]
	private sealed class <RequestNetworkTime>d__21 : Object
	{
		private int <>1__state; // 0x10
		private object <>2__current; // 0x18
		public PixelSecurity.Modules.SecuredTime.SecuredTime <>4__this; // 0x20
		public System.Action<System.Int32> onTimeReceived; // 0x28
		public System.Action<System.String> onRequestError; // 0x30
		private UnityEngine.Networking.UnityWebRequest <webRequest>5__2; // 0x38

		// RVA: 0x32995D0 VA: 0x78189845D0
		public void .ctor(int <>1__state);
		/*
		 *   System.Object..ctor(this);
		 *   this.n_1_state = n_1_state;
		 *   return;
		 */
		// RVA: 0x32995F8 VA: 0x78189845F8
		private void System.IDisposable.Dispose();
		/*
		 *   return;
		 */
		// RVA: 0x32995FC VA: 0x78189845FC
		private bool MoveNext();
		/*
		 *   int iVar1;
		 *   int iVar2;
		 *   void *pvVar3;
		 *   long lVar4;
		 *   void *this_00;
		 *   undefined8 uVar5;
		 *   void *extraout_x1;
		 *   void *pvVar6;
		 *   undefined8 uVar7;
		 *   code *pcVar8;
		 *   void **ppvVar9;
		 *
		 *   if ((bRam000000000754ada6 & 1) == 0) {
		 *     func_0x031fdc8c(typeinfo_ptr_UnityEngine_UnityWebRequestModule_DownloadHandlerBuffer_6FC1C70);
		 *     func_0x031fdc8c(PTR_DAT_070c6548);
		 *     func_0x031fdc8c(typeinfo_ptr_UnityEngine_UnityWebRequestModule_UnityWebRequest_6FC1C78);
		 *     func_0x031fdc8c(PTR_DAT_070c6550);
		 *     bRam000000000754ada6 = 1;
		 *     methodInfo = extraout_x1;
		 *   }
		 *   iVar1 = this.n_1_state;
		 *   if (iVar1 == 0) {
		 *     pvVar3 = this.n_4_this;
		 *     this.n_1_state = -1;
		 *     if (pvVar3 != null) {
		 *       pvVar6 = *(void **)((long)pvVar3 + 0x28);
		 *       pvVar3 = *(void **)((long)pvVar3 + 0x30);
		 *       this_00 = (void *)func_0x031fdf24(*(undefined8 *)
		 *                                          typeinfo_ptr_UnityEngine_UnityWebRequestModule_UnityWebRequest_6FC1C78
		 *                                         ,methodInfo);
		 *       UnityEngine.Networking.UnityWebRequest..ctor(this_00,pvVar6,pvVar3);
		 *       ppvVar9 = &this.webRequest_5_2;
		 *       *ppvVar9 = this_00;
		 *       func_0x031fdc38(ppvVar9,this_00);
		 *       pvVar3 = (void *)func_0x031fdf24(*(undefined8 *)
		 *                                         typeinfo_ptr_UnityEngine_UnityWebRequestModule_DownloadHandlerBuffer_6FC1C70
		 *                                       );
		 *       UnityEngine.Networking.DownloadHandlerBuffer..ctor(pvVar3);
		 *       if (*ppvVar9 != null) {
		 *         UnityEngine.Networking.UnityWebRequest.set_downloadHandler(*ppvVar9,pvVar3);
		 *         if (*ppvVar9 != null) {
		 *           pvVar3 = UnityEngine.Networking.UnityWebRequest.SendWebRequest(*ppvVar9);
		 *           this.n_2_current = pvVar3;
		 *           func_0x031fdc38(&this.n_2_current,pvVar3);
		 *           this.n_1_state = 1;
		 *           goto LAB_033997e4;
		 *         }
		 *       }
		 *     }
		 *     goto LAB_033997fc;
		 *   }
		 *   if (iVar1 != 1) goto LAB_033997e4;
		 *   this.n_1_state = -1;
		 *   if (this.webRequest_5_2 == null) goto LAB_033997fc;
		 *   iVar2 = UnityEngine.Networking.UnityWebRequest.get_result(this.webRequest_5_2);
		 *   if (iVar2 == 1) {
		 *     if ((this.webRequest_5_2 == null) ||
		 *        (pvVar3 = UnityEngine.Networking.UnityWebRequest.get_downloadHandler(this.webRequest_5_2), pvVar3 == null))
		 *     goto LAB_033997fc;
		 *     pvVar3 = UnityEngine.Networking.DownloadHandler.get_text(pvVar3);
		 *     lVar4 = func_0x0384d48c(pvVar3,*(undefined8 *)PTR_DAT_070c6548);
		 *     if ((lVar4 == 0) || (*(int *)(lVar4 + 0x38) < 1)) {
		 *       pvVar3 = this.onRequestError;
		 *       if (pvVar3 != null) {
		 *         uVar5 = *(undefined8 *)((long)pvVar3 + 0x40);
		 *         uVar7 = *(undefined8 *)((long)pvVar3 + 0x28);
		 *         pvVar6 = *(void **)PTR_DAT_070c6550;
		 *         pcVar8 = *(code **)((long)pvVar3 + 0x18);
		 *         goto LAB_033997d0;
		 *       }
		 *     }
		 *     else {
		 *       pvVar3 = this.onTimeReceived;
		 *       if (pvVar3 != null) {
		 *         (**(code **)((long)pvVar3 + 0x18))
		 *                   (*(undefined8 *)((long)pvVar3 + 0x40),*(int *)(lVar4 + 0x38),
		 *                    *(undefined8 *)((long)pvVar3 + 0x28));
		 *       }
		 *     }
		 *   }
		 *   else {
		 *     pvVar3 = this.onRequestError;
		 *     if (pvVar3 != null) {
		 *       if (this.webRequest_5_2 == null) goto LAB_033997fc;
		 *       pvVar6 = UnityEngine.Networking.UnityWebRequest.get_error(this.webRequest_5_2);
		 *       uVar5 = *(undefined8 *)((long)pvVar3 + 0x40);
		 *       pcVar8 = *(code **)((long)pvVar3 + 0x18);
		 *       uVar7 = *(undefined8 *)((long)pvVar3 + 0x28);
		 * LAB_033997d0:
		 *       (*pcVar8)(uVar5,pvVar6,uVar7);
		 *     }
		 *   }
		 *   if (this.webRequest_5_2 != null) {
		 *     UnityEngine.Networking.UnityWebRequest.Dispose(this.webRequest_5_2);
		 * LAB_033997e4:
		 *     return iVar1 == 0;
		 *   }
		 * LAB_033997fc:
		 *   IL2CPP.ThrowNullReferenceException();
		 */
		// RVA: 0x3299800 VA: 0x7818984800
		private object System.Collections.Generic.IEnumerator<System.Object>.get_Current();
		/*
		 *   return this.n_2_current;
		 */
		// RVA: 0x3299808 VA: 0x7818984808
		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_070c6558);
		 *   IL2CPP.ThrowManagedException();
		 */
		// RVA: 0x3299840 VA: 0x7818984840
		private object System.Collections.IEnumerator.get_Current();
		/*
		 *   return this.n_2_current;
		 */
	}
}
