package P;

import D.C0135f;
import G0.InterfaceC0279y;
import kotlin.jvm.internal.C;
import o0.C2632c;

/* JADX INFO: loaded from: classes.dex */
public final /* synthetic */ class b implements J4.a {

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

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ R.e f5536c;

    public /* synthetic */ b(h hVar, R.e eVar, int i6) {
        this.f5534a = i6;
        this.f5535b = hVar;
        this.f5536c = eVar;
    }

    @Override // J4.a
    public final Object invoke() throws Throwable {
        switch (this.f5534a) {
            case 0:
                h hVar = this.f5535b;
                a aVar = hVar.f5557f;
                C0135f c0135f = new C0135f(this.f5536c, 8);
                C c6 = new C();
                hVar.f5556e.observeReads("dataBuilder", aVar, new B2.j(11, c6, c0135f));
                Object obj = c6.f20115a;
                if (obj != null) {
                    return (N.c) obj;
                }
                kotlin.jvm.internal.o.n("result");
                throw null;
            case 1:
                h hVar2 = this.f5535b;
                a aVar2 = hVar2.f5558g;
                b bVar = new b(hVar2, this.f5536c, 2);
                C c7 = new C();
                hVar2.f5556e.observeReads("positioner", aVar2, new B2.j(11, c7, bVar));
                Object obj2 = c7.f20115a;
                if (obj2 != null) {
                    return (C2632c) obj2;
                }
                kotlin.jvm.internal.o.n("result");
                throw null;
            default:
                Object objInvoke = this.f5535b.f5554c.invoke();
                if (!((InterfaceC0279y) objInvoke).w()) {
                    objInvoke = null;
                }
                InterfaceC0279y interfaceC0279y = (InterfaceC0279y) objInvoke;
                return interfaceC0279y == null ? C2632c.f21786e : this.f5536c.m0(interfaceC0279y).i(interfaceC0279y.e0(0L));
        }
    }
}
