package b7;

import com.google.android.datatransport.Priority;
import java.util.Map;

/* JADX INFO: loaded from: classes2.dex */
public final class b {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final e7.a f4733a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final Map f4734b;

    public b(e7.a aVar, Map map) {
        if (aVar == null) {
            throw new NullPointerException("Null clock");
        }
        this.f4733a = aVar;
        if (map == null) {
            throw new NullPointerException("Null values");
        }
        this.f4734b = map;
    }

    public final long a(Priority priority, long j10, int i10) {
        long jA = j10 - ((e7.c) this.f4733a).a();
        c cVar = (c) this.f4734b.get(priority);
        long j11 = cVar.f4735a;
        return Math.min(Math.max((long) (Math.pow(3.0d, i10 - 1) * j11 * Math.max(1.0d, Math.log(10000.0d) / Math.log((j11 > 1 ? j11 : 2L) * ((long) r12)))), jA), cVar.f4736b);
    }

    public final boolean equals(Object obj) {
        if (obj == this) {
            return true;
        }
        if (!(obj instanceof b)) {
            return false;
        }
        b bVar = (b) obj;
        return this.f4733a.equals(bVar.f4733a) && this.f4734b.equals(bVar.f4734b);
    }

    public final int hashCode() {
        return ((this.f4733a.hashCode() ^ 1000003) * 1000003) ^ this.f4734b.hashCode();
    }

    public final String toString() {
        return "SchedulerConfig{clock=" + this.f4733a + ", values=" + this.f4734b + "}";
    }
}
