package jo;

import bo.b0;
import hp.e0;
import java.util.List;
import kotlin.jvm.internal.t;
import sm.c0;

/* loaded from: classes3.dex */
public abstract class r {

    /* renamed from: a, reason: collision with root package name */
    private static final kotlin.reflect.jvm.internal.impl.descriptors.annotations.g f25185a;

    /* renamed from: b, reason: collision with root package name */
    private static final c f25186b;

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

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

        static {
            int[] iArr = new int[h.values().length];
            try {
                iArr[h.NULLABLE.ordinal()] = 1;
            } catch (NoSuchFieldError unused) {
            }
            try {
                iArr[h.NOT_NULL.ordinal()] = 2;
            } catch (NoSuchFieldError unused2) {
            }
            f25187a = iArr;
        }
    }

    static {
        ro.c ENHANCED_NULLABILITY_ANNOTATION = b0.f7076v;
        t.f(ENHANCED_NULLABILITY_ANNOTATION, "ENHANCED_NULLABILITY_ANNOTATION");
        f25185a = new c(ENHANCED_NULLABILITY_ANNOTATION);
        ro.c ENHANCED_MUTABILITY_ANNOTATION = b0.f7077w;
        t.f(ENHANCED_MUTABILITY_ANNOTATION, "ENHANCED_MUTABILITY_ANNOTATION");
        f25186b = new c(ENHANCED_MUTABILITY_ANNOTATION);
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final kotlin.reflect.jvm.internal.impl.descriptors.annotations.g e(List list) {
        Object D0;
        List S0;
        int size = list.size();
        if (size == 0) {
            throw new IllegalStateException("At least one Annotations object expected".toString());
        }
        if (size != 1) {
            S0 = c0.S0(list);
            return new kotlin.reflect.jvm.internal.impl.descriptors.annotations.k(S0);
        }
        D0 = c0.D0(list);
        return (kotlin.reflect.jvm.internal.impl.descriptors.annotations.g) D0;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final tn.h f(tn.h hVar, e eVar, o oVar) {
        sn.d dVar = sn.d.f35901a;
        if (!p.a(oVar) || !(hVar instanceof tn.e)) {
            return null;
        }
        if (eVar.c() == f.READ_ONLY && oVar == o.FLEXIBLE_LOWER) {
            tn.e eVar2 = (tn.e) hVar;
            if (dVar.c(eVar2)) {
                return dVar.a(eVar2);
            }
        }
        if (eVar.c() != f.MUTABLE || oVar != o.FLEXIBLE_UPPER) {
            return null;
        }
        tn.e eVar3 = (tn.e) hVar;
        if (dVar.d(eVar3)) {
            return dVar.b(eVar3);
        }
        return null;
    }

    public static final kotlin.reflect.jvm.internal.impl.descriptors.annotations.g g() {
        return f25185a;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final Boolean h(e eVar, o oVar) {
        if (!p.a(oVar)) {
            return null;
        }
        h d10 = eVar.d();
        int i10 = d10 == null ? -1 : a.f25187a[d10.ordinal()];
        if (i10 == 1) {
            return Boolean.TRUE;
        }
        if (i10 != 2) {
            return null;
        }
        return Boolean.FALSE;
    }

    public static final boolean i(e0 e0Var) {
        t.g(e0Var, "<this>");
        return s.c(kotlin.reflect.jvm.internal.impl.types.checker.o.f26448a, e0Var);
    }
}
