package o;

import java.util.LinkedHashMap;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final /* synthetic */ class AE implements InterfaceC2567ts {
    public final /* synthetic */ int l;
    public final /* synthetic */ Object m;
    public final /* synthetic */ Object n;

    public /* synthetic */ AE(int i, Object obj, Object obj2) {
        this.l = i;
        this.m = obj;
        this.n = obj2;
    }

    @Override // o.InterfaceC2567ts
    public final void a() {
        switch (this.l) {
            case 0:
                BE be = (BE) this.m;
                be.m.removeCallbacks((Ef0) this.n);
                return;
            default:
                String str = (String) this.m;
                K3 k3 = (K3) this.n;
                synchronized (CQ.b) {
                    LinkedHashMap linkedHashMap = CQ.c;
                    CQ cq = (CQ) linkedHashMap.get(str);
                    if (cq != null) {
                        cq.a.remove(k3);
                        if (cq.a.isEmpty()) {
                            linkedHashMap.remove(str);
                            cq.stopWatching();
                        }
                    }
                }
                return;
        }
    }
}
