package G;

import B.C0096y;
import m3.AbstractC2467b;
import q.AbstractC2771e;
import q.InterfaceC2787m;
import w4.C3137A;
import x.G0;
import x4.AbstractC3251q;

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

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

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

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

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

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final /* synthetic */ float f1665e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final /* synthetic */ InterfaceC2787m f1666f;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public H(L l, int i6, float f6, InterfaceC2787m interfaceC2787m, A4.d dVar) {
        super(2, dVar);
        this.f1663c = l;
        this.f1664d = i6;
        this.f1665e = f6;
        this.f1666f = interfaceC2787m;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        H h5 = new H(this.f1663c, this.f1664d, this.f1665e, this.f1666f, dVar);
        h5.f1662b = obj;
        return h5;
    }

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

    /* JADX WARN: Type inference failed for: r10v9, types: [java.lang.Object, java.util.List] */
    /* JADX WARN: Type inference failed for: r9v1, types: [java.lang.Object, java.util.List] */
    @Override // C4.a
    public final Object invokeSuspend(Object obj) {
        int i6;
        B4.a aVar = B4.a.f492a;
        int i7 = this.f1661a;
        C3137A c3137a = C3137A.f25453a;
        if (i7 != 0) {
            if (i7 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            AbstractC2467b.l(obj);
            return c3137a;
        }
        AbstractC2467b.l(obj);
        G0 g0 = (G0) this.f1662b;
        L l = this.f1663c;
        C c6 = new C(g0, l);
        this.f1661a = 1;
        float f6 = P.f1716a;
        int i8 = this.f1664d;
        l.f1705s.setIntValue(l.k(new Integer(i8).intValue()));
        boolean z6 = i8 > l.f1692e;
        int i9 = (((C0234i) AbstractC3251q.n0(l.n().f1822a)).f1756a - l.f1692e) + 1;
        if (((z6 && i8 > ((C0234i) AbstractC3251q.n0(l.n().f1822a)).f1756a) || (!z6 && i8 < l.f1692e)) && Math.abs(i8 - l.f1692e) >= 3) {
            if (z6) {
                int i10 = i6;
                l.v(0 / l.q(), i10, true);
            } else {
                int i102 = i6;
                l.v(0 / l.q(), i102, true);
            }
        }
        Object objD = AbstractC2771e.d(0.0f, this.f1665e + ((int) (L4.a.x(e4.C.u(l) + ((long) L4.a.d0(((l.q() * (i8 - l.l())) - (l.m() * l.q())) + 0)), l.f1695h, l.f1694g) - e4.C.u(l))), this.f1666f, new C0096y(6, new kotlin.jvm.internal.z(), c6), this, 4);
        if (objD != aVar) {
            objD = c3137a;
        }
        return objD == aVar ? aVar : c3137a;
    }
}
