package h3;

import com.debridstream.tv.HomeSection;
import m3.AbstractC2467b;
import w4.C3137A;

/* JADX INFO: loaded from: classes.dex */
public final class X4 extends C4.j implements J4.e {

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

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ HomeSection f17593c;

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public X4(C2220x4 c2220x4, HomeSection homeSection, int i6, A4.d dVar) {
        super(2, dVar);
        this.f17592b = c2220x4;
        this.f17593c = homeSection;
        this.f17594d = i6;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        return new X4(this.f17592b, this.f17593c, this.f17594d, dVar);
    }

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

    @Override // C4.a
    public final Object invokeSuspend(Object obj) {
        B4.a aVar = B4.a.f492a;
        int i6 = this.f17591a;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            String sectionId = this.f17593c.getId();
            C2220x4 c2220x4 = this.f17592b;
            c2220x4.getClass();
            kotlin.jvm.internal.o.h(sectionId, "sectionId");
            D.H h5 = (D.H) c2220x4.f18698a.get(sectionId);
            if (h5 != null) {
                this.f17591a = 1;
                if (D.H.k(h5, this.f17594d, this) == aVar) {
                    return aVar;
                }
            }
        } else {
            if (i6 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            AbstractC2467b.l(obj);
        }
        return C3137A.f25453a;
    }
}
