package g1;

import j1.InterfaceC0796a;
import java.util.HashMap;

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

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final InterfaceC0796a f6420a;

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

    public b(InterfaceC0796a interfaceC0796a, HashMap map) {
        this.f6420a = interfaceC0796a;
        this.f6421b = map;
    }

    public final long a(X0.d dVar, long j5, int i) {
        long jB = j5 - this.f6420a.b();
        c cVar = (c) this.f6421b.get(dVar);
        long j6 = cVar.f6422a;
        return Math.min(Math.max((long) (Math.pow(3.0d, i - 1) * j6 * Math.max(1.0d, Math.log(10000.0d) / Math.log((j6 > 1 ? j6 : 2L) * ((long) r12)))), jB), cVar.f6423b);
    }

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

    public final int hashCode() {
        return ((this.f6420a.hashCode() ^ 1000003) * 1000003) ^ this.f6421b.hashCode();
    }

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