package f5;

import Z6.InterfaceC0382w;
import com.google.android.gms.internal.measurement.C1;
import d5.AbstractC0844a;
import e5.InterfaceC0881a;
import java.util.LinkedHashMap;
import java.util.List;

/* JADX INFO: renamed from: f5.i, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0948i extends G6.i implements O6.p {

    /* JADX INFO: renamed from: u, reason: collision with root package name */
    public int f12794u;

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

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

    /* JADX INFO: renamed from: x, reason: collision with root package name */
    public final /* synthetic */ List f12797x;

    /* JADX INFO: renamed from: y, reason: collision with root package name */
    public final /* synthetic */ C0926C f12798y;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C0948i(int i, int i5, List list, C0926C c0926c, E6.d dVar) {
        super(2, dVar);
        this.f12795v = i;
        this.f12796w = i5;
        this.f12797x = list;
        this.f12798y = c0926c;
    }

    @Override // O6.p
    public final Object k(Object obj, Object obj2) {
        return ((C0948i) m((E6.d) obj2, (InterfaceC0382w) obj)).p(A6.n.f457a);
    }

    @Override // G6.a
    public final E6.d m(E6.d dVar, Object obj) {
        return new C0948i(this.f12795v, this.f12796w, this.f12797x, this.f12798y, dVar);
    }

    @Override // G6.a
    public final Object p(Object obj) throws Throwable {
        F6.a aVar = F6.a.f2580q;
        int i = this.f12794u;
        if (i == 0) {
            C1.N(obj);
            LinkedHashMap linkedHashMapM0 = B6.w.m0(new A6.h("page", String.valueOf(this.f12795v)), new A6.h("limit", String.valueOf(this.f12796w)));
            linkedHashMapM0.put("media_type", "all");
            linkedHashMapM0.put("quality", "all");
            List<Long> list = this.f12797x;
            if (list.isEmpty()) {
                list = null;
            }
            C0926C c0926c = this.f12798y;
            InterfaceC0881a interfaceC0881a = c0926c.f12713a;
            String strL = AbstractC0844a.l(C1.v(c0926c.f12714b), g6.o.f12958a.v());
            this.f12794u = 1;
            obj = interfaceC0881a.k(strL, linkedHashMapM0, list, this);
            if (obj == aVar) {
                return aVar;
            }
        } else {
            if (i != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            C1.N(obj);
        }
        return new X4.b(obj);
    }
}
