package com.google.ads.interactivemedia.v3.internal;

import javax.annotation.CheckForNull;

/* JADX INFO: loaded from: classes2.dex */
final class zzrg {
    public static int zza(int i10, double d10) {
        int iMax = Math.max(i10, 2);
        int iHighestOneBit = Integer.highestOneBit(iMax);
        if (iMax <= iHighestOneBit) {
            return iHighestOneBit;
        }
        int i11 = iHighestOneBit + iHighestOneBit;
        if (i11 > 0) {
            return i11;
        }
        return 1073741824;
    }

    public static int zzb(int i10) {
        return (int) (((long) Integer.rotateLeft((int) (((long) i10) * (-862048943)), 15)) * 461845907);
    }

    public static int zzc(@CheckForNull Object obj) {
        return zzb(obj == null ? 0 : obj.hashCode());
    }
}
