public int method_6(OggClass2 oggClass2) { OggClass2 = oggClass2; Int1 = oggClass2.Int1; Int0 = oggClass2.Int0; Float0 = oggClass2.method_3(); OggData = GetOggData(); if (OggData == null) { method_5(); return -1; } return 0; }
public OggData GetOggData() { var num = 0; var oggData = new OggData(); var array = oggData.Int3 = new int[Int1 * 2]; var array2 = oggData.Int4 = new int[Int1 * 2]; var array3 = smethod_0(OggClass2.Int2, OggClass2.Int1); if (array3 == null) { return null; } oggData.Int5 = Int1 * 2; for (var i = 0; i < Int1; i++) { if (OggClass2.Int2[i] > 0) { var num2 = 0; int j; for (j = 0; j < OggClass2.Int2[i] - 1; j++) { if (((uint) array3[i] >> j & 1u) == 0u) { if (array[num2] == 0) { num = (array[num2] = num + 1); } num2 = array[num2]; } else { if (array2[num2] == 0) { num = (array2[num2] = num + 1); } num2 = array2[num2]; } } if (((uint) array3[i] >> j & 1u) == 0u) { array[num2] = -i; } else { array2[num2] = -i; } } } oggData.Int2 = smethod_1(Int1) - 4; if (oggData.Int2 < 5) { oggData.Int2 = 5; } var num3 = 1 << oggData.Int2; oggData.Int0 = new int[num3]; oggData.Int1 = new int[num3]; for (var k = 0; k < num3; k++) { var num4 = 0; var num5 = 0; while (num5 < oggData.Int2 && (num4 > 0 || num5 == 0)) { if ((k & 1 << num5) != 0) { num4 = array2[num4]; } else { num4 = array[num4]; } num5++; } oggData.Int0[k] = num4; oggData.Int1[k] = num5; } return oggData; }