public int method_4(Class47 class470, Class67 class670) { var @class = new OggClass3(); if (class670 != null) { @class.method_4(class670.Byte0, class670.Int0, class670.Int1); var array = new byte[6]; var num = @class.method_6(8); @class.method_5(array, 6); if (array[0] == 118 && array[1] == 111 && array[2] == 114 && array[3] == 98 && array[4] == 105) { if (array[5] == 115) { switch (num) { case 1: if (class670.Int2 == 0) { return(-1); } if (Int9 != 0) { return(-1); } return(method_2(@class)); case 2: case 4: return(-1); case 3: if (Int9 == 0) { return(-1); } return(class470.method_1(@class)); case 5: if (Int9 != 0 && class470.Byte1 != null) { return(method_3(@class)); } return(-1); default: return(-1); } } } return(-1); } return(-1); }
private int method_12() { _int20 = 1; _oggClass5 = new OggClass5[_int20]; _oggClass5[0] = new OggClass5(); _class470 = new Class47[_int20]; _class470[0] = new Class47(); var array = new int[1]; if (method_2(_oggClass5[0], _class470[0], array, null) == -1) { return(-1); } _int22 = array[0]; method_4(); return(0); }
private int method_11() { var oggClass5 = new OggClass5(); var class47 = new Class47(); var @class = new Class48(); var array = new int[1]; var num = method_2(oggClass5, class47, array, null); var num2 = array[0]; var int_ = (int)_long0; _class560.method_2(); if (num == -1) { return(-1); } _bool0 = true; smethod_0(FileStream, 0L, Int5); _long0 = smethod_1(FileStream); var num3 = _long0; num3 = method_1(@class); if (@class.method_5() != num2) { if (method_13(0L, 0L, num3 + 1L, num2, 0) < 0) { method_22(); return(Int9); } } else if (method_13(0L, num3, num3 + 1L, num2, 0) < 0) { method_22(); return(Int9); } method_3(oggClass5, class47, int_); return(method_17(0)); }
private void method_3(OggClass5 class491, Class47 class471, int int24) { var @class = new Class48(); _oggClass5 = new OggClass5[_int20]; _class470 = new Class47[_int20]; _long2 = new long[_int20]; _long3 = new long[_int20]; _int21 = new int[_int20]; var i = 0; while (i < _int20) { if (class491 != null && class471 != null && i == 0) { _oggClass5[i] = class491; _class470[i] = class471; _long2[i] = int24; } else { method_8(_long1[i]); if (method_2(_oggClass5[i], _class470[i], null, null) == -1) { Console.Error.WriteLine("Error opening logical bitstream #" + (i + 1) + "\n"); _long2[i] = -1L; } else { _long2[i] = _long0; _class560.method_2(); } } var long_ = _long1[i + 1]; method_8(long_); long num2; while (true) { var num = method_1(@class); if (num == -1) { goto Block_6; } num2 = @class.method_4(); if (num2 != -1L) { goto Block_5; } } IL_189: i++; continue; Block_5: _int21[i] = @class.method_5(); _long3[i] = num2; goto IL_189; Block_6: Console.Error.WriteLine("Could not find last page of logical bitstream #" + i + "\n"); _oggClass5[i].method_1(); _class470[i].method_2(); goto IL_189; } }
private int method_2(OggClass5 oggClass5, Class47 class471, int[] int24, Class48 class480) { var @class = new Class48(); var class67 = new Class67(); if (class480 == null) { var num = method_0(@class, Int2); if (num == Int9) { return(Int9); } if (num < 0) { return(Int13); } class480 = @class; } if (int24 != null) { int24[0] = class480.method_5(); } _class560.method_1(class480.method_5()); oggClass5.method_0(); class471.method_0(); var i = 0; while (i < 3) { _class560.method_6(class480); while (i < 3) { var num2 = _class560.method_5(class67); if (num2 == 0) { break; } if (num2 == -1) { Console.Error.WriteLine("Corrupt header in logical bitstream."); oggClass5.method_1(); class471.method_2(); _class560.method_2(); return(-1); } if (oggClass5.method_4(class471, class67) != 0) { Console.Error.WriteLine("Illegal header in logical bitstream."); oggClass5.method_1(); class471.method_2(); _class560.method_2(); return(-1); } i++; } if (i < 3 && method_0(class480, 1L) < 0) { Console.Error.WriteLine("Missing header in logical bitstream."); oggClass5.method_1(); class471.method_2(); _class560.method_2(); return(-1); } } return(0); }