package p;

import androidx.compose.runtime.State;
import q.AbstractC2771e;
import q.InterfaceC2752C;
import q.w0;

/* JADX INFO: renamed from: p.r, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C2674r extends kotlin.jvm.internal.p implements J4.c {

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public /* synthetic */ C2674r(C2675s c2675s, long j4, int i6) {
        super(1);
        this.f22790a = i6;
        this.f22791b = c2675s;
        this.f22792c = j4;
    }

    @Override // J4.c
    public final Object invoke(Object obj) {
        long j4;
        long j6;
        switch (this.f22790a) {
            case 0:
                w0 w0Var = (w0) obj;
                Object objB = w0Var.b();
                C2675s c2675s = this.f22791b;
                if (kotlin.jvm.internal.o.c(objB, c2675s.f22795d.b())) {
                    j4 = h1.l.a(c2675s.f22796e, AbstractC2665i.f22752a) ? this.f22792c : c2675s.f22796e;
                } else {
                    State state = (State) c2675s.f22795d.f22800d.d(w0Var.b());
                    j4 = state != null ? ((h1.l) state.getValue()).f16627a : 0L;
                }
                State state2 = (State) c2675s.f22795d.f22800d.d(w0Var.c());
                long j7 = state2 != null ? ((h1.l) state2.getValue()).f16627a : 0L;
                l0 l0Var = (l0) c2675s.f22794c.getValue();
                if (l0Var != null) {
                    InterfaceC2752C interfaceC2752C = (InterfaceC2752C) l0Var.f22773a.invoke(new h1.l(j4), new h1.l(j7));
                    if (interfaceC2752C != null) {
                        return interfaceC2752C;
                    }
                }
                return AbstractC2771e.o(0.0f, 400.0f, null, 5);
            default:
                C2675s c2675s2 = this.f22791b;
                if (kotlin.jvm.internal.o.c(obj, c2675s2.f22795d.b())) {
                    j6 = h1.l.a(c2675s2.f22796e, AbstractC2665i.f22752a) ? this.f22792c : c2675s2.f22796e;
                } else {
                    State state3 = (State) c2675s2.f22795d.f22800d.d(obj);
                    j6 = state3 != null ? ((h1.l) state3.getValue()).f16627a : 0L;
                }
                return new h1.l(j6);
        }
    }
}
