Пример #1
0
    internal Struct29 method_11(Struct28 A_0, Class883 A_1)
    {
        if (A_0.method_0())
        {
            return(new Struct29());
        }
        Struct29 struct3 = new Struct29();
        Struct28 struct4 = A_0.method_1();
        bool     flag    = false;
        int      num2    = -1;
        int      num     = 0;
        int      count   = A_1.list_0.Count;

        while (num < count)
        {
            Struct28 struct5 = A_1.list_0[num];
            if ((!flag && (struct4.int_1 >= struct5.int_1)) && (struct4.int_1 < struct5.int_0))
            {
                Struct30 struct6 = A_1.list_2[num];
                struct6.method_3(struct4.int_1 - A_1.list_0[num].int_1);
                struct3.method_3(struct6);
                num2 = num;
                flag = true;
            }
            if ((flag && (struct4.int_0 > struct5.int_1)) && (struct4.int_0 <= struct5.int_0))
            {
                if ((num < (count - 1)) && (struct4.int_0 < struct5.int_0))
                {
                    struct3.method_1(A_1.list_2[num]);
                }
                else if ((num < (count - 1)) && (struct4.int_0 == struct5.int_0))
                {
                    struct3.method_1(A_1.list_2[num + 1]);
                }
                else if (num2 == (count - 1))
                {
                    struct3.method_1(struct3.method_2());
                }
                else
                {
                    struct3.method_1(this.struct30_1);
                }
            }
            num++;
        }
        return(struct3);
    }