package o;

import java.util.Set;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class Oa0 implements Runnable {
    public final XY l;
    public final C2627ua0 m;
    public final boolean n;

    /* renamed from: o, reason: collision with root package name */
    public final int f269o;

    public Oa0(XY xy, C2627ua0 c2627ua0, boolean z, int i) {
        this.l = xy;
        this.m = c2627ua0;
        this.n = z;
        this.f269o = i;
    }

    @Override // java.lang.Runnable
    public final void run() {
        Lm0 lm0B;
        if (this.n) {
            XY xy = this.l;
            C2627ua0 c2627ua0 = this.m;
            int i = this.f269o;
            xy.getClass();
            String str = c2627ua0.a.a;
            synchronized (xy.k) {
                lm0B = xy.b(str);
            }
            XY.d(lm0B, i);
        } else {
            XY xy2 = this.l;
            C2627ua0 c2627ua02 = this.m;
            int i2 = this.f269o;
            xy2.getClass();
            String str2 = c2627ua02.a.a;
            synchronized (xy2.k) {
                try {
                    if (xy2.f.get(str2) != null) {
                        C0669Zu.e().getClass();
                    } else {
                        Set set = (Set) xy2.h.get(str2);
                        if (set != null && set.contains(c2627ua02)) {
                            XY.d(xy2.b(str2), i2);
                        }
                    }
                } finally {
                }
            }
        }
        C0669Zu c0669ZuE = C0669Zu.e();
        C0669Zu.l("StopWorkRunnable");
        C2366rm0 c2366rm0 = this.m.a;
        c0669ZuE.getClass();
    }
}
