private static spr smethod_11(spr A_0, spr A_1, ArrayList A_2, bool A_3, Class318 A_4) { float minValue = float.MinValue; int index = 0; for (int i = 0; i < A_4.method_4().Length; i++) { if ((A_3 && (A_4.method_4()[i] > minValue)) || (!A_3 && (A_4.method_4()[i] <= minValue))) { minValue = A_4.method_4()[i]; index = i; } } float num4 = A_4.method_4()[index]; float num5 = A_4.method_6()[index]; spr[] rArray = smethod_22(A_0, num4); spr[] rArray2 = smethod_22(A_1, num5); if (!A_3) { A_0 = rArray[0]; A_1 = (rArray2.Length > 1) ? rArray2[1] : rArray2[0]; } else { A_0 = (rArray.Length > 1) ? rArray[1] : rArray[0]; A_1 = rArray2[0]; } A_2.Add(A_1); return(A_0); }
internal static void smethod_12(spr[] A_0) { if (A_0.Length >= 2) { for (int i = 0; i < (A_0.Length - 1); i++) { Class318 class2 = smethod_13(A_0[i], A_0[i + 1]); if (class2.method_0()) { spr[] rArray = smethod_22(A_0[i], class2.method_4()[0]); A_0[i] = rArray[0]; rArray = smethod_22(A_0[i + 1], class2.method_6()[0]); A_0[i + 1] = (rArray.Length > 1) ? rArray[1] : rArray[0]; } A_0[i].ᜂ(A_0[i + 1].ᜁ()); } } }