package jq;

import java.util.Arrays;
import java.util.Iterator;

/* loaded from: classes3.dex */
public abstract class x0 {
    public static final int a(hq.e eVar, hq.e[] typeParams) {
        kotlin.jvm.internal.t.g(eVar, "<this>");
        kotlin.jvm.internal.t.g(typeParams, "typeParams");
        int hashCode = (eVar.h().hashCode() * 31) + Arrays.hashCode(typeParams);
        Iterable a10 = hq.g.a(eVar);
        Iterator it = a10.iterator();
        int i10 = 1;
        int i11 = 1;
        while (true) {
            int i12 = 0;
            if (!it.hasNext()) {
                break;
            }
            int i13 = i11 * 31;
            String h10 = ((hq.e) it.next()).h();
            if (h10 != null) {
                i12 = h10.hashCode();
            }
            i11 = i13 + i12;
        }
        Iterator it2 = a10.iterator();
        while (it2.hasNext()) {
            int i14 = i10 * 31;
            hq.i g10 = ((hq.e) it2.next()).g();
            i10 = i14 + (g10 != null ? g10.hashCode() : 0);
        }
        return (((hashCode * 31) + i11) * 31) + i10;
    }
}
