package kotlin.reflect.w.internal.y0.n;

import java.util.Collection;
import java.util.Collections;
import java.util.List;
import kotlin.reflect.w.internal.y0.c.f;
import kotlin.reflect.w.internal.y0.d.e;
import kotlin.reflect.w.internal.y0.d.k;
import kotlin.reflect.w.internal.y0.k.z.a;
import kotlin.reflect.w.internal.y0.m.m;
import kotlin.reflect.w.internal.y0.p.h;

/* JADX INFO: loaded from: classes2.dex */
public abstract class b extends i implements e1 {
    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public b(m mVar) {
        super(mVar);
        if (mVar != null) {
        } else {
            r(0);
            throw null;
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:21:0x002f  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static /* synthetic */ void r(int r9) {
        /*
            r0 = 4
            r1 = 3
            r2 = 1
            if (r9 == r2) goto Lc
            if (r9 == r1) goto Lc
            if (r9 == r0) goto Lc
            java.lang.String r3 = "Argument for @NotNull parameter '%s' of %s.%s must not be null"
            goto Le
        Lc:
            java.lang.String r3 = "@NotNull method %s.%s must not return null"
        Le:
            r4 = 2
            if (r9 == r2) goto L17
            if (r9 == r1) goto L17
            if (r9 == r0) goto L17
            r5 = r1
            goto L18
        L17:
            r5 = r4
        L18:
            java.lang.Object[] r5 = new java.lang.Object[r5]
            java.lang.String r6 = "kotlin/reflect/jvm/internal/impl/types/AbstractClassTypeConstructor"
            r7 = 0
            if (r9 == r2) goto L2f
            if (r9 == r4) goto L2a
            if (r9 == r1) goto L2f
            if (r9 == r0) goto L2f
            java.lang.String r8 = "storageManager"
            r5[r7] = r8
            goto L31
        L2a:
            java.lang.String r8 = "classifier"
            r5[r7] = r8
            goto L31
        L2f:
            r5[r7] = r6
        L31:
            if (r9 == r2) goto L3f
            if (r9 == r1) goto L3a
            if (r9 == r0) goto L3a
            r5[r2] = r6
            goto L43
        L3a:
            java.lang.String r6 = "getAdditionalNeighboursInSupertypeGraph"
            r5[r2] = r6
            goto L43
        L3f:
            java.lang.String r6 = "getBuiltIns"
            r5[r2] = r6
        L43:
            if (r9 == r2) goto L54
            if (r9 == r4) goto L50
            if (r9 == r1) goto L54
            if (r9 == r0) goto L54
            java.lang.String r6 = "<init>"
            r5[r4] = r6
            goto L54
        L50:
            java.lang.String r6 = "isSameClassifier"
            r5[r4] = r6
        L54:
            java.lang.String r3 = java.lang.String.format(r3, r5)
            if (r9 == r2) goto L64
            if (r9 == r1) goto L64
            if (r9 == r0) goto L64
            java.lang.IllegalArgumentException r9 = new java.lang.IllegalArgumentException
            r9.<init>(r3)
            goto L69
        L64:
            java.lang.IllegalStateException r9 = new java.lang.IllegalStateException
            r9.<init>(r3)
        L69:
            throw r9
        */
        throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.w.internal.y0.n.b.r(int):void");
    }

    /* JADX WARN: Code restructure failed: missing block: B:30:0x0074, code lost:
    
        r6 = true;
     */
    /* JADX WARN: Removed duplicated region for block: B:42:? A[RETURN, SYNTHETIC] */
    @Override // kotlin.reflect.w.internal.y0.n.q
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public boolean h(kotlin.reflect.w.internal.y0.d.h r6) {
        /*
            r5 = this;
            boolean r0 = r6 instanceof kotlin.reflect.w.internal.y0.d.e
            r1 = 1
            r2 = 0
            if (r0 == 0) goto L78
            r.i0.w.b.y0.d.e r0 = r5.c()
            java.lang.String r3 = "first"
            kotlin.jvm.internal.o.f(r0, r3)
            java.lang.String r3 = "second"
            kotlin.jvm.internal.o.f(r6, r3)
            r.i0.w.b.y0.h.e r3 = r0.getName()
            r.i0.w.b.y0.h.e r4 = r6.getName()
            boolean r3 = kotlin.jvm.internal.o.a(r3, r4)
            if (r3 != 0) goto L23
            goto L69
        L23:
            r.i0.w.b.y0.d.k r0 = r0.b()
            r.i0.w.b.y0.d.k r6 = r6.b()
        L2b:
            if (r0 == 0) goto L74
            if (r6 == 0) goto L74
            boolean r3 = r0 instanceof kotlin.reflect.w.internal.y0.d.e0
            if (r3 == 0) goto L36
            boolean r6 = r6 instanceof kotlin.reflect.w.internal.y0.d.e0
            goto L75
        L36:
            boolean r3 = r6 instanceof kotlin.reflect.w.internal.y0.d.e0
            if (r3 == 0) goto L3b
            goto L69
        L3b:
            boolean r3 = r0 instanceof kotlin.reflect.w.internal.y0.d.h0
            if (r3 == 0) goto L56
            boolean r3 = r6 instanceof kotlin.reflect.w.internal.y0.d.h0
            if (r3 == 0) goto L69
            r.i0.w.b.y0.d.h0 r0 = (kotlin.reflect.w.internal.y0.d.h0) r0
            r.i0.w.b.y0.h.c r0 = r0.d()
            r.i0.w.b.y0.d.h0 r6 = (kotlin.reflect.w.internal.y0.d.h0) r6
            r.i0.w.b.y0.h.c r6 = r6.d()
            boolean r6 = kotlin.jvm.internal.o.a(r0, r6)
            if (r6 == 0) goto L69
            goto L74
        L56:
            boolean r3 = r6 instanceof kotlin.reflect.w.internal.y0.d.h0
            if (r3 == 0) goto L5b
            goto L69
        L5b:
            r.i0.w.b.y0.h.e r3 = r0.getName()
            r.i0.w.b.y0.h.e r4 = r6.getName()
            boolean r3 = kotlin.jvm.internal.o.a(r3, r4)
            if (r3 != 0) goto L6b
        L69:
            r6 = r2
            goto L75
        L6b:
            r.i0.w.b.y0.d.k r0 = r0.b()
            r.i0.w.b.y0.d.k r6 = r6.b()
            goto L2b
        L74:
            r6 = r1
        L75:
            if (r6 == 0) goto L78
            goto L79
        L78:
            r1 = r2
        L79:
            return r1
        */
        throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.w.internal.y0.n.b.h(r.i0.w.b.y0.d.h):boolean");
    }

    @Override // kotlin.reflect.w.internal.y0.n.i
    public h0 k() {
        if (f.M(c())) {
            return null;
        }
        return o().f();
    }

    @Override // kotlin.reflect.w.internal.y0.n.i
    public Collection<h0> l(boolean z2) {
        k kVarB = c().b();
        if (!(kVarB instanceof e)) {
            List listEmptyList = Collections.emptyList();
            if (listEmptyList != null) {
                return listEmptyList;
            }
            r(3);
            throw null;
        }
        h hVar = new h();
        e eVar = (e) kVarB;
        hVar.add(eVar.s());
        e eVarT = eVar.T();
        if (z2 && eVarT != null) {
            hVar.add(eVarT.s());
        }
        return hVar;
    }

    @Override // kotlin.reflect.w.internal.y0.n.e1
    public f o() {
        f fVarE = a.e(c());
        if (fVarE != null) {
            return fVarE;
        }
        r(1);
        throw null;
    }

    @Override // kotlin.reflect.w.internal.y0.n.q, kotlin.reflect.w.internal.y0.n.e1
    /* JADX INFO: renamed from: s, reason: merged with bridge method [inline-methods] */
    public abstract e c();
}
