package q2;

import b3.l;

/* loaded from: classes.dex */
public abstract class p0 {

    /* loaded from: classes.dex */
    public /* synthetic */ class a {

        /* renamed from: a */
        public static final /* synthetic */ int[] f33363a;

        static {
            int[] iArr = new int[c3.t.values().length];
            try {
                iArr[c3.t.Ltr.ordinal()] = 1;
            } catch (NoSuchFieldError unused) {
            }
            try {
                iArr[c3.t.Rtl.ordinal()] = 2;
            } catch (NoSuchFieldError unused2) {
            }
            f33363a = iArr;
        }
    }

    public static final z b(y yVar, x xVar) {
        if (yVar == null && xVar == null) {
            return null;
        }
        return c.a(yVar, xVar);
    }

    public static final o0 c(o0 o0Var, o0 o0Var2, float f10) {
        return new o0(c0.c(o0Var.M(), o0Var2.M(), f10), v.b(o0Var.L(), o0Var2.L(), f10));
    }

    public static final o0 d(o0 o0Var, c3.t tVar) {
        return new o0(c0.h(o0Var.y()), v.e(o0Var.v(), tVar), o0Var.w());
    }

    public static final int e(c3.t tVar, int i10) {
        l.a aVar = b3.l.f6705b;
        if (b3.l.j(i10, aVar.a())) {
            int i11 = a.f33363a[tVar.ordinal()];
            if (i11 == 1) {
                return aVar.b();
            }
            if (i11 == 2) {
                return aVar.c();
            }
            throw new rm.t();
        }
        if (!b3.l.j(i10, aVar.f())) {
            return i10;
        }
        int i12 = a.f33363a[tVar.ordinal()];
        if (i12 == 1) {
            return aVar.d();
        }
        if (i12 == 2) {
            return aVar.e();
        }
        throw new rm.t();
    }
}
