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

import java.util.Collections;
import java.util.List;
import java.util.Objects;
import kotlin.reflect.w.internal.y0.d.b;
import kotlin.reflect.w.internal.y0.d.e;
import kotlin.reflect.w.internal.y0.d.f;
import kotlin.reflect.w.internal.y0.d.h1;
import kotlin.reflect.w.internal.y0.d.l1.h;
import kotlin.reflect.w.internal.y0.d.n1.i;
import kotlin.reflect.w.internal.y0.d.q;
import kotlin.reflect.w.internal.y0.d.r;
import kotlin.reflect.w.internal.y0.d.w0;

/* JADX INFO: loaded from: classes2.dex */
public class g extends i {
    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public g(e eVar, w0 w0Var, boolean z2) {
        r rVar;
        super(eVar, null, h.a.f6718b, true, b.a.DECLARATION, w0Var);
        if (eVar == null) {
            F(0);
            throw null;
        }
        if (w0Var == null) {
            F(1);
            throw null;
        }
        Objects.requireNonNull(h.f6717j);
        List<h1> listEmptyList = Collections.emptyList();
        int i2 = h.a;
        f kind = eVar.getKind();
        if (kind == f.ENUM_CLASS || kind.b()) {
            rVar = q.a;
            if (rVar == null) {
                h.a(49);
                throw null;
            }
        } else if (h.v(eVar)) {
            if (z2) {
                rVar = q.f6981c;
                if (rVar == null) {
                    h.a(50);
                    throw null;
                }
            } else {
                rVar = q.a;
                if (rVar == null) {
                    h.a(51);
                    throw null;
                }
            }
        } else if (h.n(eVar)) {
            rVar = q.f6990l;
            if (rVar == null) {
                h.a(52);
                throw null;
            }
        } else {
            rVar = q.f6983e;
            if (rVar == null) {
                h.a(53);
                throw null;
            }
        }
        U0(listEmptyList, rVar);
    }

    public static /* synthetic */ void F(int i2) {
        Object[] objArr = new Object[3];
        if (i2 != 1) {
            objArr[0] = "containingClass";
        } else {
            objArr[0] = "source";
        }
        objArr[1] = "kotlin/reflect/jvm/internal/impl/resolve/DescriptorFactory$DefaultClassConstructorDescriptor";
        objArr[2] = "<init>";
        throw new IllegalArgumentException(String.format("Argument for @NotNull parameter '%s' of %s.%s must not be null", objArr));
    }
}
