package h3;

import androidx.compose.runtime.State;
import com.debridstream.tv.data.home.HomeMetaItem;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import m3.AbstractC2467b;
import w4.C3137A;

/* JADX INFO: renamed from: h3.w2, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C2212w2 extends C4.j implements J4.e {

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C2212w2(Map map, State state, A4.d dVar) {
        super(2, dVar);
        this.f18648a = map;
        this.f18649b = state;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        return new C2212w2(this.f18648a, this.f18649b, dVar);
    }

    @Override // J4.e
    public final Object invoke(Object obj, Object obj2) {
        C2212w2 c2212w2 = (C2212w2) create((V4.C) obj, (A4.d) obj2);
        C3137A c3137a = C3137A.f25453a;
        c2212w2.invokeSuspend(c3137a);
        return c3137a;
    }

    @Override // C4.a
    public final Object invokeSuspend(Object obj) {
        B4.a aVar = B4.a.f492a;
        AbstractC2467b.l(obj);
        Map map = this.f18648a;
        boolean zIsEmpty = map.isEmpty();
        C3137A c3137a = C3137A.f25453a;
        if (zIsEmpty) {
            return c3137a;
        }
        float f6 = T2.f17380a;
        List list = ((C2105e2) this.f18649b.getValue()).f17893c;
        HashSet hashSet = new HashSet(list.size());
        Iterator it = list.iterator();
        while (it.hasNext()) {
            hashSet.add(W.a.V((HomeMetaItem) it.next()));
        }
        map.keySet().retainAll(hashSet);
        return c3137a;
    }
}
