package V2;

import java.util.List;
import java.util.Map;
import m3.AbstractC2467b;
import w4.C3137A;

/* JADX INFO: renamed from: V2.n0, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0698n0 extends C4.j implements J4.f {

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public /* synthetic */ Map f7963b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public /* synthetic */ String f7964c;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public /* synthetic */ C0698n0(int i6, A4.d dVar, int i7) {
        super(i6, dVar);
        this.f7962a = i7;
    }

    @Override // J4.f
    public final Object invoke(Object obj, Object obj2, Object obj3) {
        Map map = (Map) obj;
        String str = (String) obj2;
        A4.d dVar = (A4.d) obj3;
        switch (this.f7962a) {
            case 0:
                C0698n0 c0698n0 = new C0698n0(3, dVar, 0);
                c0698n0.f7963b = map;
                c0698n0.f7964c = str;
                return c0698n0.invokeSuspend(C3137A.f25453a);
            default:
                C0698n0 c0698n02 = new C0698n0(3, dVar, 1);
                c0698n02.f7963b = map;
                c0698n02.f7964c = str;
                return c0698n02.invokeSuspend(C3137A.f25453a);
        }
    }

    @Override // C4.a
    public final Object invokeSuspend(Object obj) {
        x4.y yVar = x4.y.f26065a;
        switch (this.f7962a) {
            case 0:
                B4.a aVar = B4.a.f492a;
                AbstractC2467b.l(obj);
                List list = (List) this.f7963b.get(this.f7964c);
                return list == null ? yVar : list;
            default:
                B4.a aVar2 = B4.a.f492a;
                AbstractC2467b.l(obj);
                List list2 = (List) this.f7963b.get(this.f7964c);
                return list2 == null ? yVar : list2;
        }
    }
}
package V2;

import java.util.List;
import java.util.Map;
import m3.AbstractC2467b;
import w4.C3137A;

/**
 * This class represents a coroutine builder for fetching a list of items from a map.
 * It is constructed with a specific key and a flag indicating whether to fetch the first or second list.
 * The class extends C4.j and implements J4.f, which suggests it is part of a larger coroutine framework.
 * The invoke method creates a new instance of this class with the provided map and key, and then calls invokeSuspend.
 * The invokeSuspend method retrieves the list associated with the key from the map and returns it.
 * If the list is null, it returns a special value (yVar) which likely indicates an empty or null result.
 */
public final class C0698n0 extends C4.j implements J4.f {

    /**
     * Flag indicating whether to fetch the first list (0) or the second list (1).
     * This is used to differentiate between two possible lists associated with the same key.
     */
    public final int f7962a;

    /**
     * The map from which the list will be retrieved.
     * This map is passed to the constructor and stored for later use in invokeSuspend.
     */
    public Map<String, List<?>> f7963b;

    /**
     * The key used to retrieve the list from the map.
     * This key is passed to the constructor and stored for later use in invokeSuspend.
     */
    public String f7964c;

    /**
     * Constructor for C0698n0.
     * @param i6 The type parameter for the coroutine builder (likely indicating the return type).
     * @param dVar The coroutine context (A4.d).
     * @param i7 The flag indicating whether to fetch the first list (0) or the second list (1).
     */
    public C0698n0(int i6, A4.d dVar, int i7) {
        super(i6, dVar);
        this.f7962a = i7;
    }

    /**
     * Invokes the coroutine builder with the provided map and key.
     * This method creates a new instance of C0698n0 with the provided map and key, and then calls invokeSuspend.
     * @param obj The map from which the list will be retrieved.
     * @param obj2 The key used to retrieve the list from the map.
     * @param obj3 The coroutine context (A4.d).
     * @return The list associated with the key, or a special value if the list is null.
     */
    @Override
    public final Object invoke(Object obj, Object obj2, Object obj3) {
        Map<String, List<?>> map = (Map<String, List<?>>) obj;
        String key = (String) obj2;
        A4.d context = (A4.d) obj3;
        
        switch (this.f7962a) {
            case 0: // Fetch the first list
                C0698n0 firstListBuilder = new C0698n0(3, context, 0);
                firstListBuilder.f7963b = map;
                firstListBuilder.f7964c = key;
                return firstListBuilder.invokeSuspend(C3137A.f25453a);
            default: // Fetch the second list
                C0698n0 secondListBuilder = new C0698n0(3, context, 1);
                secondListBuilder.f7963b = map;
                secondListBuilder.f7964c = key;
                return secondListBuilder.invokeSuspend(C3137A.f25453a);
        }
    }

    /**
     * Suspends the coroutine and retrieves the list associated with the key from the map.
     * This method is called after the coroutine builder is invoked with the provided map and key.
     * @param obj The coroutine context (A4.d).
     * @return The list associated with the key, or a special value if the list is null.
     */
    @Override
    public final Object invokeSuspend(Object obj) {
        x4.y yVar = x4.y.f26065a; // Special value for null/empty result
        
        switch (this.f7962a) {
            case 0: // Fetch the first list
                B4.a context = B4.a.f492a;
                AbstractC2467b.l(obj); // Resume the coroutine
                List<?> list = (List<?>) this.f7963b.get(this.f7964c);
                return list == null ? yVar : list;
            default: // Fetch the second list
                B4.a context2 = B4.a.f492a;
                AbstractC2467b.l(obj); // Resume the coroutine
                List<?> list2 = (List<?>) this.f7963b.get(this.f7964c);
                return list2 == null ? yVar : list2;
        }
    }
}