package d3;

import android.os.Handler;

/* JADX INFO: renamed from: d3.o, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public abstract class AbstractC0808o {

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public static volatile Y2.e f12076d;

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final G3.b f12078b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public volatile long f12079c;

    public AbstractC0808o(B0 b02) {
        P2.w.f(b02);
        this.f12077a = b02;
        this.f12078b = new G3.b(this, b02, 7, false);
    }

    public final void a() {
        this.f12079c = 0L;
        d().removeCallbacks(this.f12078b);
    }

    public abstract void b();

    public final void c(long j8) {
        a();
        if (j8 >= 0) {
            B0 b02 = this.f12077a;
            b02.d().getClass();
            this.f12079c = System.currentTimeMillis();
            if (d().postDelayed(this.f12078b, j8)) {
                return;
            }
            b02.e().f11875v.c(Long.valueOf(j8), "Failed to schedule delayed post. time");
        }
    }

    public final Handler d() {
        Y2.e eVar;
        if (f12076d != null) {
            return f12076d;
        }
        synchronized (AbstractC0808o.class) {
            try {
                if (f12076d == null) {
                    f12076d = new Y2.e(this.f12077a.a().getMainLooper(), 3);
                }
                eVar = f12076d;
            } catch (Throwable th) {
                throw th;
            }
        }
        return eVar;
    }
}
