// [TypeInfo RVA: 0x0]
private sealed class <ApplyPresetCoroutine>d__17 : Object
{
	private int <>1__state; // 0x10
	private object <>2__current; // 0x18
	public float wait; // 0x20
	public int size; // 0x24
	public SimpleTextureSizerPersistent <>4__this; // 0x28

	// RVA: 0x32608D8 VA: 0x781894B8D8
	public void .ctor(int <>1__state);
	/*
	 *   System.Object..ctor(this);
	 *   this.n_1_state = n_1_state;
	 *   return;
	 */
	// RVA: 0x32613CC VA: 0x781894C3CC
	private void System.IDisposable.Dispose();
	/*
	 *   return;
	 */
	// RVA: 0x32613D0 VA: 0x781894C3D0
	private bool MoveNext();
	/*
	 *   uint uVar1;
	 *   undefined *puVar2;
	 *   undefined *puVar3;
	 *   undefined *puVar4;
	 *   void *pvVar5;
	 *   long lVar6;
	 *   ulong uVar7;
	 *   undefined8 *puVar8;
	 *   undefined8 uVar9;
	 *   SimpleTextureSizerPersistent *this_00;
	 *   void *pvVar10;
	 *   void *pvVar11;
	 *   void *extraout_x1;
	 *   void *in_x4;
	 *   long lVar12;
	 *   ulong uVar13;
	 *   long lVar14;
	 *   void *pvVar15;
	 *   float seconds;
	 *   undefined8 uStack_c8;
	 *   undefined8 *puStack_c0;
	 *   void *pvStack_b8;
	 *   undefined8 uStack_b0;
	 *   undefined8 *puStack_a8;
	 *   void *pvStack_a0;
	 *   undefined8 uStack_90;
	 *   undefined8 *puStack_88;
	 *   void *pvStack_80;
	 *   void *pvStack_68;
	 *
	 *   if ((bRam000000000754ab98 & 1) == 0) {
	 *     func_0x031fdc8c(PTR_DAT_070c4f00);
	 *     func_0x031fdc8c(PTR_DAT_070c4f08);
	 *     func_0x031fdc8c(PTR_DAT_070c4f10);
	 *     func_0x031fdc8c(PTR_DAT_070c4f18);
	 *     func_0x031fdc8c(PTR_DAT_070c4f20);
	 *     func_0x031fdc8c(PTR_DAT_070c4f28);
	 *     func_0x031fdc8c(PTR_DAT_070c4f30);
	 *     func_0x031fdc8c(PTR_DAT_070c4f38);
	 *     func_0x031fdc8c(PTR_DAT_070c4f40);
	 *     func_0x031fdc8c(PTR_DAT_070c4f48);
	 *     func_0x031fdc8c(PTR_DAT_070c4f50);
	 *     func_0x031fdc8c(PTR_DAT_070c4f58);
	 *     func_0x031fdc8c(PTR_DAT_070c2e50);
	 *     func_0x031fdc8c(PTR_DAT_070c2e28);
	 *     func_0x031fdc8c(PTR_DAT_070c2e48);
	 *     func_0x031fdc8c(PTR_DAT_070c4f60);
	 *     func_0x031fdc8c(typeinfo_ptr_UnityEngine_CoreModule_Object_6FC07E8);
	 *     func_0x031fdc8c(typeinfo_ptr_UnityEngine_CoreModule_WaitForSeconds_6FC0B10);
	 *     bRam000000000754ab98 = 1;
	 *     methodInfo = extraout_x1;
	 *   }
	 *   pvVar15 = this.n_4_this;
	 *   uStack_90 = 0;
	 *   puStack_88 = null;
	 *   pvStack_80 = null;
	 *   uStack_b0 = 0;
	 *   puStack_a8 = null;
	 *   pvStack_a0 = null;
	 *   pvStack_68 = null;
	 *   if (this.n_1_state == 1) {
	 *     this.n_1_state = -1;
	 *   }
	 *   else {
	 *     if (this.n_1_state != 0) {
	 *       return false;
	 *     }
	 *     seconds = this.wait;
	 *     this.n_1_state = -1;
	 *     if (0.0 < seconds) {
	 *       pvVar15 = (void *)func_0x031fdf24(*(undefined8 *)
	 *                                          typeinfo_ptr_UnityEngine_CoreModule_WaitForSeconds_6FC0B10)
	 *       ;
	 *       UnityEngine.WaitForSeconds..ctor(pvVar15,seconds);
	 *       this.n_2_current = pvVar15;
	 *       func_0x031fdc38(&this.n_2_current,pvVar15);
	 *       this.n_1_state = 1;
	 *       return true;
	 *     }
	 *   }
	 *   if (this.size < 1) {
	 *     return false;
	 *   }
	 *   if (pvVar15 == null) goto LAB_03361930;
	 *   if ((*(long *)((long)pvVar15 + 0x28) == 0) ||
	 *      (*(int *)(*(long *)((long)pvVar15 + 0x28) + 0x18) < 1)) {
	 *     if (*(int *)(*(long *)typeinfo_ptr_UnityEngine_CoreModule_Object_6FC07E8 + 0xe4) == 0) {
	 *       func_0x031fde08(*(long *)typeinfo_ptr_UnityEngine_CoreModule_Object_6FC07E8,methodInfo);
	 *     }
	 *     lVar6 = func_0x03890744(*(undefined8 *)PTR_DAT_070c4f60);
	 *   }
	 *   else {
	 *     lVar6 = func_0x031fdf24(*(undefined8 *)PTR_DAT_070c2e48);
	 *     func_0x03f2ce9c(lVar6,*(undefined8 *)PTR_DAT_070c2e50);
	 *     if (*(long *)((long)pvVar15 + 0x28) == 0) goto LAB_03361930;
	 *     func_0x03f2e1a8(&uStack_c8,*(long *)((long)pvVar15 + 0x28),*(undefined8 *)PTR_DAT_070c4f50);
	 *     puVar4 = PTR_DAT_070c4f40;
	 *     puVar3 = PTR_DAT_070c4f20;
	 *     puVar2 = typeinfo_ptr_UnityEngine_CoreModule_Object_6FC07E8;
	 *     puStack_88 = puStack_c0;
	 *     uStack_90 = uStack_c8;
	 *     puStack_c0 = &uStack_90;
	 *     pvStack_80 = pvStack_b8;
	 *     uStack_c8 = 0;
	 * LAB_033615f4:
	 *     uVar7 = func_0x05018cac(&uStack_90,*(undefined8 *)puVar3);
	 *     pvVar5 = pvStack_80;
	 *     if ((uVar7 & 1) != 0) {
	 *       if (*(int *)(*(long *)puVar2 + 0xe4) == 0) {
	 *         func_0x031fde08();
	 *       }
	 *       uVar7 = UnityEngine.Object.op_Inequality(pvVar5,null);
	 *       if ((uVar7 & 1) != 0) {
	 *         if (lVar6 != 0) {
	 *           lVar12 = *(long *)(lVar6 + 0x10);
	 *           lVar14 = *(long *)puVar4;
	 *           *(int *)(lVar6 + 0x1c) = *(int *)(lVar6 + 0x1c) + 1;
	 *           if (lVar12 != 0) {
	 *             uVar1 = *(uint *)(lVar6 + 0x18);
	 *             if (uVar1 < *(uint *)(lVar12 + 0x18)) {
	 *               *(uint *)(lVar6 + 0x18) = uVar1 + 1;
	 *               puVar8 = (undefined8 *)(lVar12 + (long)(int)uVar1 * 8 + 0x20);
	 *               *puVar8 = pvVar5;
	 *               func_0x031fdc38(puVar8,pvVar5);
	 *             }
	 *             else {
	 *               func_0x03f2d704(lVar6,pvVar5,
	 *                               *(undefined8 *)(*(long *)(*(long *)(lVar14 + 0x20) + 0xc0) + 0x70));
	 *             }
	 *             goto LAB_033615f4;
	 *           }
	 *         }
	 *         IL2CPP.ThrowNullReferenceException();
	 *       }
	 *       goto LAB_033615f4;
	 *     }
	 *     func_0x05018ca8(&uStack_90,*(undefined8 *)PTR_DAT_070c4f18);
	 *     if (lVar6 == 0) goto LAB_03361930;
	 *     lVar6 = func_0x03f2f1f0(lVar6,*(undefined8 *)PTR_DAT_070c4f58);
	 *   }
	 *   if (*(long *)((long)pvVar15 + 0x20) != 0) {
	 *     func_0x03f2e1a8(&uStack_c8,*(long *)((long)pvVar15 + 0x20),*(undefined8 *)PTR_DAT_070c4f48);
	 *     puVar4 = PTR_DAT_070c4f28;
	 *     puVar3 = PTR_DAT_070c4f00;
	 *     puVar2 = typeinfo_ptr_UnityEngine_CoreModule_Object_6FC07E8;
	 *     puStack_a8 = puStack_c0;
	 *     uStack_b0 = uStack_c8;
	 *     puStack_c0 = &uStack_b0;
	 *     pvStack_a0 = pvStack_b8;
	 *     uStack_c8 = 0;
	 * LAB_03361744:
	 *     do {
	 *       uVar7 = func_0x05018cac(&uStack_b0,*(undefined8 *)puVar4);
	 *       pvVar5 = pvStack_a0;
	 *       if ((uVar7 & 1) == 0) {
	 *         func_0x05018ca8(&uStack_b0,*(undefined8 *)PTR_DAT_070c4f10);
	 *         *(undefined1 *)((long)pvVar15 + 0x58) = 1;
	 *         return false;
	 *       }
	 *       if (*(int *)(*(long *)puVar2 + 0xe4) == 0) {
	 *         func_0x031fde08();
	 *       }
	 *       uVar7 = UnityEngine.Object.op_Equality(pvVar5,null);
	 *     } while ((uVar7 & 1) != 0);
	 *     uVar9 = SimpleTextureSizerPersistent.GetCacheKey(uVar7,pvVar5,this.size,this.size);
	 *     if (*(long *)((long)pvVar15 + 0x40) == 0) {
	 *       IL2CPP.ThrowNullReferenceException();
	 *     }
	 *     this_00 = (SimpleTextureSizerPersistent *)
	 *               func_0x04e2e9bc(*(long *)((long)pvVar15 + 0x40),uVar9,&pvStack_68,
	 *                               *(undefined8 *)puVar3);
	 *     if (((ulong)this_00 & 1) == 0) goto code_r0x033617ac;
	 *     goto LAB_03361808;
	 *   }
	 * LAB_03361930:
	 *   IL2CPP.ThrowNullReferenceException();
	 * code_r0x033617ac:
	 *   pvVar10 = SimpleTextureSizerPersistent.ResizeTextureGPU(this_00,pvVar5,this.size,this.size);
	 *   pvStack_68 = pvVar10;
	 *   if (*(int *)(*(long *)puVar2 + 0xe4) == 0) {
	 *     func_0x031fde08();
	 *   }
	 *   uVar7 = UnityEngine.Object.op_Equality(pvVar10,null);
	 *   if ((uVar7 & 1) == 0) {
	 *     if (*(long *)((long)pvVar15 + 0x40) == 0) {
	 *       IL2CPP.ThrowNullReferenceException();
	 *     }
	 *     func_0x04e2ce40(*(long *)((long)pvVar15 + 0x40),uVar9,pvStack_68,*(undefined8 *)PTR_DAT_070c4f08
	 *                    );
	 * LAB_03361808:
	 *     if (lVar6 == 0) {
	 *       IL2CPP.ThrowNullReferenceException();
	 *     }
	 *     if (0 < (int)*(ulong *)(lVar6 + 0x18)) {
	 *       uVar7 = 0;
	 *       uVar13 = *(ulong *)(lVar6 + 0x18) & 0xffffffff;
	 *       do {
	 *         if (uVar13 <= uVar7) {
	 *           IL2CPP.ThrowIndexOutOfRangeException();
	 *         }
	 *         pvVar10 = *(void **)(lVar6 + 0x20 + uVar7 * 8);
	 *         if (*(int *)(*(long *)puVar2 + 0xe4) == 0) {
	 *           func_0x031fde08();
	 *         }
	 *         uVar13 = UnityEngine.Object.op_Equality(pvVar10,null);
	 *         if ((uVar13 & 1) == 0) {
	 *           if (*(char *)((long)pvVar15 + 0x3e) == '\0') {
	 *             if (pvVar10 == null) {
	 *               IL2CPP.ThrowNullReferenceException();
	 *             }
	 *             pvVar11 = UnityEngine.Renderer.get_sharedMaterial(pvVar10);
	 *           }
	 *           else {
	 *             if (pvVar10 == null) {
	 *               IL2CPP.ThrowNullReferenceException();
	 *             }
	 *             pvVar11 = UnityEngine.Renderer.get_material(pvVar10);
	 *           }
	 *           if (*(int *)(*(long *)puVar2 + 0xe4) == 0) {
	 *             func_0x031fde08();
	 *           }
	 *           uVar13 = UnityEngine.Object.op_Equality(pvVar11,null);
	 *           if ((uVar13 & 1) == 0) {
	 *             in_x4 = pvStack_68;
	 *             SimpleTextureSizerPersistent.SwapMatchingTextureProperties(pvVar15,pvVar11,pvVar10,pvVar5);
	 *           }
	 *         }
	 *         uVar13 = (ulong)*(uint *)(lVar6 + 0x18);
	 *         uVar7 = uVar7 + 1;
	 *       } while ((long)uVar7 < (long)(int)*(uint *)(lVar6 + 0x18));
	 *     }
	 *   }
	 *   goto LAB_03361744;
	 */
	// RVA: 0x3261A40 VA: 0x781894CA40
	private object System.Collections.Generic.IEnumerator<System.Object>.get_Current();
	/*
	 *   return this.n_2_current;
	 */
	// RVA: 0x3261A48 VA: 0x781894CA48
	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_070c4f68);
	 *   IL2CPP.ThrowManagedException();
	 */
	// RVA: 0x3261A80 VA: 0x781894CA80
	private object System.Collections.IEnumerator.get_Current();
	/*
	 *   return this.n_2_current;
	 */
}
