namespace PixelSecurity.Modules.PrivacyAccepter
{

	// [TypeInfo RVA: 0x0]
	public class PrivacyAccepter : Object
	{
		private PixelSecurity.Modules.PrivacyAccepter.PrivacyAccepter.ModuleOptions _options; // 0x10
		private const string PrefabPath; // 0x0
		private const string AcceptedKey; // 0x0
		private PixelSecurity.UI.PrivacyPolicy.PrivacyView _viewInstance; // 0x18

		// RVA: 0x3299914 VA: 0x7818984914
		public PixelSecurity.Modules.PrivacyAccepter.PrivacyAccepter.ModuleOptions get_Options();
		/*
		 *   return *(undefined8 *)(param_1 + 0x10);
		 */
		// RVA: 0x329991C VA: 0x781898491C
		public void .ctor(PixelSecurity.Modules.PrivacyAccepter.PrivacyAccepter.ModuleOptions options);
		/*
		 *   undefined *puVar1;
		 *   undefined *puVar2;
		 *   bool bVar3;
		 *   undefined8 uVar4;
		 *   long lVar5;
		 *   void *pvVar6;
		 *   long lVar7;
		 *   undefined8 *puVar8;
		 *   undefined8 *puVar9;
		 *   void *object;
		 *   undefined1 auVar10 [16];
		 *   undefined8 uStack_80;
		 *   undefined8 uStack_78;
		 *   undefined8 uStack_70;
		 *   undefined8 uStack_68;
		 *   undefined8 uStack_60;
		 *   void *pvStack_58;
		 *   void *apvStack_50 [2];
		 *
		 *   if ((bRam000000000754ada8 & 1) == 0) {
		 *     func_0x031fdc8c(typeinfo_ptr_mscorlib_Action_6FC5B40);
		 *     func_0x031fdc8c(PTR_DAT_070c6568);
		 *     func_0x031fdc8c(PTR_DAT_070c6570);
		 *     func_0x031fdc8c(PTR_DAT_070c3338);
		 *     func_0x031fdc8c(typeinfo_ptr_UnityEngine_CoreModule_Object_6FC07E8);
		 *     func_0x031fdc8c(PTR_DAT_070c6578);
		 *     func_0x031fdc8c(PTR_DAT_070c62e0);
		 *     func_0x031fdc8c(PTR_DAT_070c6580);
		 *     func_0x031fdc8c(PTR_DAT_070c6588);
		 *     func_0x031fdc8c(PTR_DAT_070c6590);
		 *     bRam000000000754ada8 = 1;
		 *   }
		 *   apvStack_50[0] = null;
		 *   uStack_68 = 0;
		 *   uStack_70 = 0;
		 *   pvStack_58 = null;
		 *   uStack_60 = 0;
		 *   uStack_78 = 0;
		 *   uStack_80 = 0;
		 *   System.Object..ctor(param_1);
		 *   if (param_2 == null) {
		 *     auVar10 = func_0x031fdf24(*(undefined8 *)PTR_DAT_070c6570);
		 *     param_2 = auVar10._0_8_;
		 *     ModuleOptions..ctor(param_2);
		 *   }
		 *   *(undefined8 *)((long)param_1 + 0x10) = param_2;
		 *   auVar10 = func_0x031fdc38((undefined8 *)((long)param_1 + 0x10),param_2);
		 *   if (*(long *)((long)param_1 + 0x10) != 0) {
		 *     if ((*(char *)(*(long *)((long)param_1 + 0x10) + 0x10) != '\0') &&
		 *        (bVar3 = PrivacyAccepter.IsAccepted(auVar10._0_8_),
		 *        bVar3)) {
		 *       return;
		 *     }
		 *     puVar2 = PTR_DAT_070c3338;
		 *     puVar1 = typeinfo_ptr_UnityEngine_CoreModule_Object_6FC07E8;
		 *     uVar4 = func_0x03949758(*(undefined8 *)PTR_DAT_070c6590,*(undefined8 *)PTR_DAT_070c62e0);
		 *     if (*(int *)(*(long *)puVar1 + 0xe4) == 0) {
		 *       func_0x031fde08(*(long *)puVar1);
		 *     }
		 *     lVar5 = func_0x03890888(uVar4,*(undefined8 *)puVar2);
		 *     if (lVar5 != 0) {
		 *       uVar4 = func_0x037f3038(lVar5,*(undefined8 *)PTR_DAT_070c6568);
		 *       puVar9 = (undefined8 *)((long)param_1 + 0x18);
		 *       *puVar9 = uVar4;
		 *       func_0x031fdc38(puVar9,uVar4);
		 *       puVar2 = PTR_DAT_070c6578;
		 *       puVar1 = typeinfo_ptr_mscorlib_Action_6FC5B40;
		 *       if ((BaseView *)*puVar9 != null) {
		 *         BaseView.SetAsGlobalView((BaseView *)*puVar9);
		 *         lVar5 = *(long *)((long)param_1 + 0x18);
		 *         apvStack_50[0] = null;
		 *         uStack_78 = 0;
		 *         uStack_80 = 0;
		 *         uStack_68 = 0;
		 *         uStack_70 = 0;
		 *         pvStack_58 = null;
		 *         uStack_60 = 0;
		 *         pvVar6 = (void *)func_0x031fdf24(*(undefined8 *)puVar1);
		 *         System.Action..ctor(pvVar6,param_1,*(void **)puVar2);
		 *         pvStack_58 = pvVar6;
		 *         func_0x031fdc38(&pvStack_58,pvVar6);
		 *         puVar2 = PTR_DAT_070c6588;
		 *         if (*(long *)((long)param_1 + 0x10) != 0) {
		 *           pvVar6 = *(void **)(*(long *)((long)param_1 + 0x10) + 0x40);
		 *           if (pvVar6 == null) {
		 *             lVar7 = *(long *)PTR_DAT_070c6588;
		 *             if (*(int *)(lVar7 + 0xe4) == 0) {
		 *               func_0x031fde08();
		 *               lVar7 = *(long *)puVar2;
		 *             }
		 *             puVar8 = *(undefined8 **)(lVar7 + 0xb8);
		 *             pvVar6 = (void *)puVar8[1];
		 *             if (pvVar6 == null) {
		 *               if (*(int *)(lVar7 + 0xe4) == 0) {
		 *                 func_0x031fde08();
		 *                 puVar8 = *(undefined8 **)(*(long *)puVar2 + 0xb8);
		 *               }
		 *               object = (void *)*puVar8;
		 *               pvVar6 = (void *)func_0x031fdf24(*(undefined8 *)puVar1);
		 *               System.Action..ctor(pvVar6,object,*(void **)PTR_DAT_070c6580);
		 *               puVar8 = (undefined8 *)(*(long *)(*(long *)puVar2 + 0xb8) + 8);
		 *               *puVar8 = pvVar6;
		 *               func_0x031fdc38(puVar8,pvVar6);
		 *             }
		 *           }
		 *           apvStack_50[0] = pvVar6;
		 *           func_0x031fdc38(apvStack_50,pvVar6);
		 *           if (*(long *)((long)param_1 + 0x10) != 0) {
		 *             uStack_70 = *(undefined8 *)(*(long *)((long)param_1 + 0x10) + 0x30);
		 *             func_0x031fdc38(&uStack_70);
		 *             if (*(long *)((long)param_1 + 0x10) != 0) {
		 *               uStack_78 = *(undefined8 *)(*(long *)((long)param_1 + 0x10) + 0x20);
		 *               func_0x031fdc38((ulong)&uStack_80 | 8);
		 *               if (*(long *)((long)param_1 + 0x10) != 0) {
		 *                 uStack_60 = *(undefined8 *)(*(long *)((long)param_1 + 0x10) + 0x38);
		 *                 func_0x031fdc38(&uStack_60);
		 *                 if (*(long *)((long)param_1 + 0x10) != 0) {
		 *                   uStack_68 = *(undefined8 *)(*(long *)((long)param_1 + 0x10) + 0x28);
		 *                   func_0x031fdc38(&uStack_68);
		 *                   if (*(long *)((long)param_1 + 0x10) != 0) {
		 *                     uStack_80 = *(undefined8 *)(*(long *)((long)param_1 + 0x10) + 0x18);
		 *                     func_0x031fdc38(&uStack_80);
		 *                     if (lVar5 != 0) {
		 *                       *(undefined8 *)(lVar5 + 0x40) = uStack_78;
		 *                       *(undefined8 *)(lVar5 + 0x38) = uStack_80;
		 *                       *(undefined8 *)(lVar5 + 0x50) = uStack_68;
		 *                       *(undefined8 *)(lVar5 + 0x48) = uStack_70;
		 *                       *(void **)(lVar5 + 0x60) = pvStack_58;
		 *                       *(undefined8 *)(lVar5 + 0x58) = uStack_60;
		 *                       *(void **)(lVar5 + 0x68) = apvStack_50[0];
		 *                       func_0x031fdc38(lVar5 + 0x38,0);
		 *                       if ((PrivacyView *)*puVar9 != null) {
		 *                         PrivacyView.UpdateView((PrivacyView *)*puVar9);
		 *                         return;
		 *                       }
		 *                     }
		 *                   }
		 *                 }
		 *               }
		 *             }
		 *           }
		 *         }
		 *       }
		 *     }
		 *   }
		 *   IL2CPP.ThrowNullReferenceException();
		 */
		// RVA: 0x3299E64 VA: 0x7818984E64
		private bool IsAccepted();
		/*
		 *   undefined *puVar1;
		 *   int iVar2;
		 *
		 *   puVar1 = PTR_DAT_070c65b0;
		 *   if ((bRam000000000754ada9 & 1) == 0) {
		 *     func_0x031fdc8c(PTR_DAT_070c65b0);
		 *     bRam000000000754ada9 = 1;
		 *   }
		 *   iVar2 = UnityEngine.PlayerPrefs.GetInt(*(void **)puVar1,0);
		 *   return iVar2 == 1;
		 */
		// RVA: 0x3299EB8 VA: 0x7818984EB8
		private void SetAsAccepted();
		/*
		 *   undefined *puVar1;
		 *   bool bVar2;
		 *   void *this_00;
		 *   void *error;
		 *   undefined8 uVar3;
		 *   void *methodInfo_00;
		 *
		 *   puVar1 = PTR_DAT_070c65b0;
		 *   if ((bRam000000000754adaa & 1) == 0) {
		 *     func_0x031fdc8c(PTR_DAT_070c65b0);
		 *     bRam000000000754adaa = 1;
		 *   }
		 *   methodInfo_00 = null;
		 *   bVar2 = UnityEngine.PlayerPrefs.TrySetInt(*(void **)puVar1,1);
		 *   if (bVar2) {
		 *     return;
		 *   }
		 *   func_0x031fdca0(PTR_DAT_0714f1f8);
		 *   this_00 = (void *)func_0x031fdf24();
		 *   error = (void *)func_0x031fdca0(PTR_DAT_0714f200);
		 *   UnityEngine.PlayerPrefsException..ctor(this_00,error);
		 *   uVar3 = func_0x031fdca0(PTR_DAT_0714f208);
		 *   IL2CPP.ThrowManagedException();
		 */
		// RVA: 0x3299F00 VA: 0x7818984F00
		private void <.ctor>b__7_0();
		/*
		 *   long lVar1;
		 *
		 *   PrivacyAccepter.SetAsAccepted(this);
		 *   if (this.options == null) {
		 *     IL2CPP.ThrowNullReferenceException();
		 *   }
		 *   lVar1 = *(long *)((long)this.options + 0x48);
		 *   if (lVar1 != 0) {
		 *     (**(code **)(lVar1 + 0x18))(*(undefined8 *)(lVar1 + 0x40),*(undefined8 *)(lVar1 + 0x28));
		 *     return;
		 *   }
		 *   return;
		 */
	}
}
