package rm;

/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes3.dex */
public abstract class q {

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

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

        static {
            int[] iArr = new int[s.values().length];
            try {
                iArr[s.SYNCHRONIZED.ordinal()] = 1;
            } catch (NoSuchFieldError unused) {
            }
            try {
                iArr[s.PUBLICATION.ordinal()] = 2;
            } catch (NoSuchFieldError unused2) {
            }
            try {
                iArr[s.NONE.ordinal()] = 3;
            } catch (NoSuchFieldError unused3) {
            }
            f34907a = iArr;
        }
    }

    public static o a(dn.a initializer) {
        kotlin.jvm.internal.t.g(initializer, "initializer");
        return new a0(initializer, null, 2, null);
    }

    public static o b(s mode, dn.a initializer) {
        kotlin.jvm.internal.t.g(mode, "mode");
        kotlin.jvm.internal.t.g(initializer, "initializer");
        int i10 = a.f34907a[mode.ordinal()];
        if (i10 == 1) {
            return new a0(initializer, null, 2, null);
        }
        if (i10 == 2) {
            return new z(initializer);
        }
        if (i10 == 3) {
            return new o0(initializer);
        }
        throw new t();
    }
}
