package o;

import java.util.ArrayList;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class CA implements InterfaceC1416hm {
    public final /* synthetic */ int a;
    public final /* synthetic */ Object b;

    public /* synthetic */ CA(int i, Object obj) {
        this.a = i;
        this.b = obj;
    }

    @Override // o.InterfaceC1416hm
    public final void accept(Object obj) {
        switch (this.a) {
            case 0:
                DA da = (DA) obj;
                if (da == null) {
                    da = new DA(-3);
                }
                ((C3040yr) this.b).i(da);
                return;
            default:
                DA da2 = (DA) obj;
                synchronized (EA.c) {
                    try {
                        I80 i80 = EA.d;
                        ArrayList arrayList = (ArrayList) i80.get((String) this.b);
                        if (arrayList == null) {
                            return;
                        }
                        i80.remove((String) this.b);
                        for (int i = 0; i < arrayList.size(); i++) {
                            ((InterfaceC1416hm) arrayList.get(i)).accept(da2);
                        }
                        return;
                    } finally {
                    }
                }
        }
    }
}
