package s1;

import android.graphics.BlendMode;
import s1.u;

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

    /* renamed from: s1.a$a, reason: collision with other inner class name */
    /* loaded from: classes.dex */
    public /* synthetic */ class C0828a {

        /* renamed from: a, reason: collision with root package name */
        public static final /* synthetic */ int[] f35228a;

        static {
            int[] iArr = new int[BlendMode.values().length];
            try {
                iArr[BlendMode.CLEAR.ordinal()] = 1;
            } catch (NoSuchFieldError unused) {
            }
            try {
                iArr[BlendMode.SRC.ordinal()] = 2;
            } catch (NoSuchFieldError unused2) {
            }
            try {
                iArr[BlendMode.DST.ordinal()] = 3;
            } catch (NoSuchFieldError unused3) {
            }
            try {
                iArr[BlendMode.SRC_OVER.ordinal()] = 4;
            } catch (NoSuchFieldError unused4) {
            }
            try {
                iArr[BlendMode.DST_OVER.ordinal()] = 5;
            } catch (NoSuchFieldError unused5) {
            }
            try {
                iArr[BlendMode.SRC_IN.ordinal()] = 6;
            } catch (NoSuchFieldError unused6) {
            }
            try {
                iArr[BlendMode.DST_IN.ordinal()] = 7;
            } catch (NoSuchFieldError unused7) {
            }
            try {
                iArr[BlendMode.SRC_OUT.ordinal()] = 8;
            } catch (NoSuchFieldError unused8) {
            }
            try {
                iArr[BlendMode.DST_OUT.ordinal()] = 9;
            } catch (NoSuchFieldError unused9) {
            }
            try {
                iArr[BlendMode.SRC_ATOP.ordinal()] = 10;
            } catch (NoSuchFieldError unused10) {
            }
            try {
                iArr[BlendMode.DST_ATOP.ordinal()] = 11;
            } catch (NoSuchFieldError unused11) {
            }
            try {
                iArr[BlendMode.XOR.ordinal()] = 12;
            } catch (NoSuchFieldError unused12) {
            }
            try {
                iArr[BlendMode.PLUS.ordinal()] = 13;
            } catch (NoSuchFieldError unused13) {
            }
            try {
                iArr[BlendMode.MODULATE.ordinal()] = 14;
            } catch (NoSuchFieldError unused14) {
            }
            try {
                iArr[BlendMode.SCREEN.ordinal()] = 15;
            } catch (NoSuchFieldError unused15) {
            }
            try {
                iArr[BlendMode.OVERLAY.ordinal()] = 16;
            } catch (NoSuchFieldError unused16) {
            }
            try {
                iArr[BlendMode.DARKEN.ordinal()] = 17;
            } catch (NoSuchFieldError unused17) {
            }
            try {
                iArr[BlendMode.LIGHTEN.ordinal()] = 18;
            } catch (NoSuchFieldError unused18) {
            }
            try {
                iArr[BlendMode.COLOR_DODGE.ordinal()] = 19;
            } catch (NoSuchFieldError unused19) {
            }
            try {
                iArr[BlendMode.COLOR_BURN.ordinal()] = 20;
            } catch (NoSuchFieldError unused20) {
            }
            try {
                iArr[BlendMode.HARD_LIGHT.ordinal()] = 21;
            } catch (NoSuchFieldError unused21) {
            }
            try {
                iArr[BlendMode.SOFT_LIGHT.ordinal()] = 22;
            } catch (NoSuchFieldError unused22) {
            }
            try {
                iArr[BlendMode.DIFFERENCE.ordinal()] = 23;
            } catch (NoSuchFieldError unused23) {
            }
            try {
                iArr[BlendMode.EXCLUSION.ordinal()] = 24;
            } catch (NoSuchFieldError unused24) {
            }
            try {
                iArr[BlendMode.MULTIPLY.ordinal()] = 25;
            } catch (NoSuchFieldError unused25) {
            }
            try {
                iArr[BlendMode.HUE.ordinal()] = 26;
            } catch (NoSuchFieldError unused26) {
            }
            try {
                iArr[BlendMode.SATURATION.ordinal()] = 27;
            } catch (NoSuchFieldError unused27) {
            }
            try {
                iArr[BlendMode.COLOR.ordinal()] = 28;
            } catch (NoSuchFieldError unused28) {
            }
            try {
                iArr[BlendMode.LUMINOSITY.ordinal()] = 29;
            } catch (NoSuchFieldError unused29) {
            }
            f35228a = iArr;
        }
    }

    public static final BlendMode a(int i10) {
        u.a aVar = u.f35333a;
        return u.E(i10, aVar.a()) ? BlendMode.CLEAR : u.E(i10, aVar.x()) ? BlendMode.SRC : u.E(i10, aVar.g()) ? BlendMode.DST : u.E(i10, aVar.B()) ? BlendMode.SRC_OVER : u.E(i10, aVar.k()) ? BlendMode.DST_OVER : u.E(i10, aVar.z()) ? BlendMode.SRC_IN : u.E(i10, aVar.i()) ? BlendMode.DST_IN : u.E(i10, aVar.A()) ? BlendMode.SRC_OUT : u.E(i10, aVar.j()) ? BlendMode.DST_OUT : u.E(i10, aVar.y()) ? BlendMode.SRC_ATOP : u.E(i10, aVar.h()) ? BlendMode.DST_ATOP : u.E(i10, aVar.C()) ? BlendMode.XOR : u.E(i10, aVar.t()) ? BlendMode.PLUS : u.E(i10, aVar.q()) ? BlendMode.MODULATE : u.E(i10, aVar.v()) ? BlendMode.SCREEN : u.E(i10, aVar.s()) ? BlendMode.OVERLAY : u.E(i10, aVar.e()) ? BlendMode.DARKEN : u.E(i10, aVar.o()) ? BlendMode.LIGHTEN : u.E(i10, aVar.d()) ? BlendMode.COLOR_DODGE : u.E(i10, aVar.c()) ? BlendMode.COLOR_BURN : u.E(i10, aVar.m()) ? BlendMode.HARD_LIGHT : u.E(i10, aVar.w()) ? BlendMode.SOFT_LIGHT : u.E(i10, aVar.f()) ? BlendMode.DIFFERENCE : u.E(i10, aVar.l()) ? BlendMode.EXCLUSION : u.E(i10, aVar.r()) ? BlendMode.MULTIPLY : u.E(i10, aVar.n()) ? BlendMode.HUE : u.E(i10, aVar.u()) ? BlendMode.SATURATION : u.E(i10, aVar.b()) ? BlendMode.COLOR : u.E(i10, aVar.p()) ? BlendMode.LUMINOSITY : BlendMode.SRC_OVER;
    }

    public static final int b(BlendMode blendMode) {
        switch (C0828a.f35228a[blendMode.ordinal()]) {
            case 1:
                return u.f35333a.a();
            case 2:
                return u.f35333a.x();
            case 3:
                return u.f35333a.g();
            case 4:
                return u.f35333a.B();
            case 5:
                return u.f35333a.k();
            case 6:
                return u.f35333a.z();
            case 7:
                return u.f35333a.i();
            case 8:
                return u.f35333a.A();
            case 9:
                return u.f35333a.j();
            case 10:
                return u.f35333a.y();
            case 11:
                return u.f35333a.h();
            case 12:
                return u.f35333a.C();
            case 13:
                return u.f35333a.t();
            case 14:
                return u.f35333a.q();
            case 15:
                return u.f35333a.v();
            case 16:
                return u.f35333a.s();
            case 17:
                return u.f35333a.e();
            case 18:
                return u.f35333a.o();
            case 19:
                return u.f35333a.d();
            case 20:
                return u.f35333a.c();
            case 21:
                return u.f35333a.m();
            case 22:
                return u.f35333a.w();
            case 23:
                return u.f35333a.f();
            case 24:
                return u.f35333a.l();
            case 25:
                return u.f35333a.r();
            case 26:
                return u.f35333a.n();
            case 27:
                return u.f35333a.u();
            case 28:
                return u.f35333a.b();
            case 29:
                return u.f35333a.p();
            default:
                return u.f35333a.B();
        }
    }
}
