package a0;

import Y4.InterfaceC0844j;
import androidx.compose.runtime.snapshots.SnapshotStateList;
import w4.C3137A;
import z.C3281a;
import z.C3282b;
import z.C3283c;
import z.C3284d;
import z.C3285e;
import z.C3288h;
import z.C3289i;
import z.InterfaceC3290j;

/* JADX INFO: renamed from: a0.z, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0955z implements InterfaceC0844j {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f10354a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ SnapshotStateList f10355b;

    public /* synthetic */ C0955z(SnapshotStateList snapshotStateList, int i6) {
        this.f10354a = i6;
        this.f10355b = snapshotStateList;
    }

    @Override // Y4.InterfaceC0844j
    public final Object emit(Object obj, A4.d dVar) {
        switch (this.f10354a) {
            case 0:
                InterfaceC3290j interfaceC3290j = (InterfaceC3290j) obj;
                boolean z6 = interfaceC3290j instanceof C3288h;
                SnapshotStateList snapshotStateList = this.f10355b;
                if (z6) {
                    snapshotStateList.add(interfaceC3290j);
                } else if (interfaceC3290j instanceof C3289i) {
                    snapshotStateList.remove(((C3289i) interfaceC3290j).f26249a);
                } else if (interfaceC3290j instanceof C3284d) {
                    snapshotStateList.add(interfaceC3290j);
                } else if (interfaceC3290j instanceof C3285e) {
                    snapshotStateList.remove(((C3285e) interfaceC3290j).f26242a);
                } else if (interfaceC3290j instanceof z.o) {
                    snapshotStateList.add(interfaceC3290j);
                } else if (interfaceC3290j instanceof z.p) {
                    snapshotStateList.remove(((z.p) interfaceC3290j).f26253a);
                } else if (interfaceC3290j instanceof z.n) {
                    snapshotStateList.remove(((z.n) interfaceC3290j).f26251a);
                }
                break;
            default:
                InterfaceC3290j interfaceC3290j2 = (InterfaceC3290j) obj;
                boolean z7 = interfaceC3290j2 instanceof z.o;
                SnapshotStateList snapshotStateList2 = this.f10355b;
                if (z7) {
                    snapshotStateList2.add(interfaceC3290j2);
                } else if (interfaceC3290j2 instanceof z.p) {
                    snapshotStateList2.remove(((z.p) interfaceC3290j2).f26253a);
                } else if (interfaceC3290j2 instanceof z.n) {
                    snapshotStateList2.remove(((z.n) interfaceC3290j2).f26251a);
                } else if (interfaceC3290j2 instanceof C3282b) {
                    snapshotStateList2.add(interfaceC3290j2);
                } else if (interfaceC3290j2 instanceof C3283c) {
                    snapshotStateList2.remove(((C3283c) interfaceC3290j2).f26241a);
                } else if (interfaceC3290j2 instanceof C3281a) {
                    snapshotStateList2.remove(((C3281a) interfaceC3290j2).f26240a);
                }
                break;
        }
        return C3137A.f25453a;
    }
}
