package o4;

import androidx.work.u;

/* JADX INFO: loaded from: classes.dex */
public final class s implements Runnable {

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

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

    public s(t tVar, String str) {
        this.f31416a = tVar;
        this.f31417b = str;
    }

    @Override // java.lang.Runnable
    public final void run() {
        synchronized (this.f31416a.f31421d) {
            try {
                if (((s) this.f31416a.f31419b.remove(this.f31417b)) != null) {
                    r rVar = (r) this.f31416a.f31420c.remove(this.f31417b);
                    if (rVar != null) {
                        String str = this.f31417b;
                        u uVarC = u.c();
                        String.format("Exceeded time limits on execution for %s", str);
                        int i10 = i4.e.f26547i;
                        uVarC.a(new Throwable[0]);
                        ((i4.e) rVar).c();
                    }
                } else {
                    u uVarC2 = u.c();
                    String.format("Timer with %s is already marked as complete.", this.f31417b);
                    uVarC2.a(new Throwable[0]);
                }
            } catch (Throwable th) {
                throw th;
            }
        }
    }
}
