package o;

import androidx.work.impl.WorkDatabase;
import java.util.concurrent.atomic.AtomicBoolean;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.q80, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public abstract class AbstractC2218q80 {
    public final WorkDatabase a;
    public final AtomicBoolean b = new AtomicBoolean(false);
    public final C1014dc0 c = new C1014dc0(new U4(24, this));

    public AbstractC2218q80(WorkDatabase workDatabase) {
        this.a = workDatabase;
    }

    public final LC a() {
        WorkDatabase workDatabase = this.a;
        workDatabase.a();
        if (this.b.compareAndSet(false, true)) {
            return (LC) this.c.getValue();
        }
        String strB = b();
        workDatabase.a();
        workDatabase.b();
        Hb0 hb0 = workDatabase.c;
        if (hb0 == null) {
            hb0 = null;
        }
        return hb0.L().d(strB);
    }

    public abstract String b();

    public final void c(LC lc) {
        if (lc == ((LC) this.c.getValue())) {
            this.b.set(false);
        }
    }
}
