internal static RectangleF smethod_0(Class672 A_0, float A_1)
    {
        RectangleF  ef           = A_0.method_30();
        Class316    class2       = A_0.method_8();
        ShapeObject obj2         = A_0.method_28();
        float       strokeWeight = (float)obj2.StrokeWeight;

        if ((strokeWeight <= 1f) || !obj2.Stroked)
        {
            strokeWeight = 0f;
        }
        float num2            = strokeWeight * 0.5f;
        float x               = ef.X;
        float y               = ef.Y;
        float width           = ef.Width;
        float height          = ef.Height;
        float num7            = x + width;
        float num8            = y + height;
        float num9            = A_0.method_33().Width;
        float num10           = A_0.method_33().Height;
        float num11           = ((float)obj2.TextBox.method_0()) + num2;
        float num12           = ((float)obj2.TextBox.method_4()) + num2;
        float num13           = ((float)obj2.TextBox.method_2()) + num2;
        float num14           = ((float)obj2.TextBox.method_6()) + num2;
        float coordSizeWidth  = obj2.CoordSizeWidth;
        float coordSizeHeight = obj2.CoordSizeHeight;
        float num17           = (num9 - num11) - num13;
        float num18           = (num10 - num12) - num14;
        float num19           = x / coordSizeWidth;
        float num20           = num7 / coordSizeWidth;
        float num21           = y / coordSizeHeight;
        float num22           = num8 / coordSizeHeight;
        float num23           = (num17 * num19) + num11;
        float num24           = (num17 * num20) + num11;
        float num25           = (num18 * num21) + num12;
        float num26           = (num18 * num22) + num12;
        float num28           = (num9 == 0f) ? 1f : (coordSizeWidth / num9);
        float num27           = (num10 == 0f) ? 1f : (coordSizeHeight / num10);

        x    = (num23 * num28) + num2;
        num7 = (num24 * num28) + num2;
        y    = (num25 * num27) - num2;
        num8 = (num26 * num27) - num2;
        PointF[] tfArray2 = new PointF[] { new PointF(x, y), new PointF(num7, num8) };
        class2.method_1(tfArray2, true);
        width  = tfArray2[1].X - tfArray2[0].X;
        height = tfArray2[1].Y - tfArray2[0].Y;
        SizeF  size     = smethod_3(obj2, width, height, A_1);
        PointF location = tfArray2[0];

        if (Class316.smethod_1(obj2))
        {
            float num29 = (height - width) * 0.5f;
            location = new PointF(location.X - num29, location.Y + num29);
        }
        return(new RectangleF(location, size));
    }
    private static SizeF smethod_3(ShapeObject A_0, float A_1, float A_2, float A_3)
    {
        float width  = A_1;
        float height = A_2;

        if (!(A_3 == 0f) ^ Class316.smethod_1(A_0))
        {
            width  = A_2;
            height = A_1;
        }
        return(new SizeF(width, height));
    }