package com.google.android.gms.internal.p002firebaseauthapi; import com.google.android.gms.common.api.Api; /* loaded from: classes.dex */ public class zzah { zzah() { } static int zza(int i10, int i11) { if (i11 < 0) { throw new AssertionError("cannot store more than MAX_VALUE elements"); } int i12 = i10 + (i10 >> 1) + 1; if (i12 < i11) { int highestOneBit = Integer.highestOneBit(i11 - 1); i12 = highestOneBit + highestOneBit; } return i12 < 0 ? Api.BaseClientBuilder.API_PRIORITY_OTHER : i12; } }