package o;

import java.lang.ref.WeakReference;
import java.util.concurrent.Executor;
import java.util.concurrent.TimeUnit;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.eg, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C1116eg implements YL {
    public final WeakReference l;
    public final C1021dg m = new C1021dg(this);

    public C1116eg(C0925cg c0925cg) {
        this.l = new WeakReference(c0925cg);
    }

    @Override // o.YL
    public final void a(Runnable runnable, Executor executor) {
        this.m.a(runnable, executor);
    }

    @Override // java.util.concurrent.Future
    public final boolean cancel(boolean z) {
        C0925cg c0925cg = (C0925cg) this.l.get();
        boolean zCancel = this.m.cancel(z);
        if (zCancel && c0925cg != null) {
            c0925cg.a = null;
            c0925cg.b = null;
            c0925cg.c.j(null);
        }
        return zCancel;
    }

    @Override // java.util.concurrent.Future
    public final Object get() {
        return this.m.get();
    }

    @Override // java.util.concurrent.Future
    public final boolean isCancelled() {
        return this.m.l instanceof C0772b0;
    }

    @Override // java.util.concurrent.Future
    public final boolean isDone() {
        return this.m.isDone();
    }

    public final String toString() {
        return this.m.toString();
    }

    @Override // java.util.concurrent.Future
    public final Object get(long j, TimeUnit timeUnit) {
        return this.m.get(j, timeUnit);
    }
}
