package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.Kp, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0275Kp implements O6 {
    public final C2062oc0 a;
    public final C1597jh0 b;
    public final Object c;
    public final Y6 d;
    public final Y6 e;
    public final Y6 f;
    public final Object g;
    public final long h;

    public C0275Kp(C0247Jn c0247Jn, C1597jh0 c1597jh0, Object obj, Y6 y6) {
        C2062oc0 c2062oc0 = new C2062oc0((WT) c0247Jn.m);
        this.a = c2062oc0;
        this.b = c1597jh0;
        this.c = obj;
        Y6 y62 = (Y6) c1597jh0.a.g(obj);
        this.d = y62;
        this.e = YT.s(y6);
        OC oc = c1597jh0.b;
        if (((Y6) c2062oc0.d) == null) {
            c2062oc0.d = y62.c();
        }
        Y6 y63 = (Y6) c2062oc0.d;
        int iB = (y63 == null ? null : y63).b();
        int i = 0;
        while (i < iB) {
            Y6 y64 = (Y6) c2062oc0.d;
            if (y64 == null) {
                y64 = null;
            }
            WT wt = (WT) c2062oc0.a;
            float fA = y62.a(i);
            float fA2 = y6.a(i);
            double dB = ((C1248fz) wt.m).b(fA2);
            double d = AbstractC1344gz.a;
            int i2 = i;
            y64.e(i2, (Math.signum(fA2) * ((float) (Math.exp((d / (d - 1.0d)) * dB) * r12.a * r12.b))) + fA);
            i = i2 + 1;
        }
        Y6 y65 = (Y6) c2062oc0.d;
        this.g = oc.g(y65 == null ? null : y65);
        C2062oc0 c2062oc02 = this.a;
        Y6 y66 = this.d;
        if (((Y6) c2062oc02.c) == null) {
            c2062oc02.c = y66.c();
        }
        Y6 y67 = (Y6) c2062oc02.c;
        int iB2 = (y67 == null ? null : y67).b();
        long jMax = 0;
        for (int i3 = 0; i3 < iB2; i3++) {
            WT wt2 = (WT) c2062oc02.a;
            y66.getClass();
            jMax = Math.max(jMax, ((long) (Math.exp(((C1248fz) wt2.m).b(y6.a(i3)) / (AbstractC1344gz.a - 1.0d)) * 1000.0d)) * 1000000);
        }
        this.h = jMax;
        Y6 y6S = YT.s(this.a.e(jMax, this.d, y6));
        this.f = y6S;
        int iB3 = y6S.b();
        for (int i4 = 0; i4 < iB3; i4++) {
            Y6 y68 = this.f;
            float fA3 = y68.a(i4);
            this.a.getClass();
            this.a.getClass();
            y68.e(i4, AbstractC0940cn0.j(fA3, -0.0f, 0.0f));
        }
    }

    @Override // o.O6
    public final boolean a() {
        return false;
    }

    @Override // o.O6
    public final Object b(long j) {
        if (g(j)) {
            return this.g;
        }
        OC oc = this.b.b;
        C2062oc0 c2062oc0 = this.a;
        Y6 y6 = (Y6) c2062oc0.b;
        Y6 y62 = this.d;
        if (y6 == null) {
            c2062oc0.b = y62.c();
        }
        Y6 y63 = (Y6) c2062oc0.b;
        if (y63 == null) {
            y63 = null;
        }
        int iB = y63.b();
        for (int i = 0; i < iB; i++) {
            Y6 y64 = (Y6) c2062oc0.b;
            if (y64 == null) {
                y64 = null;
            }
            WT wt = (WT) c2062oc0.a;
            float fA = y62.a(i);
            long j2 = j / 1000000;
            C1152ez c1152ezA = ((C1248fz) wt.m).a(this.e.a(i));
            long j3 = c1152ezA.c;
            y64.e(i, (Math.signum(c1152ezA.a) * c1152ezA.b * AbstractC2114p4.a(j3 > 0 ? j2 / j3 : 1.0f).a) + fA);
        }
        Y6 y65 = (Y6) c2062oc0.b;
        return oc.g(y65 != null ? y65 : null);
    }

    @Override // o.O6
    public final long c() {
        return this.h;
    }

    @Override // o.O6
    public final C1597jh0 d() {
        return this.b;
    }

    @Override // o.O6
    public final Object e() {
        return this.g;
    }

    @Override // o.O6
    public final Y6 f(long j) {
        if (g(j)) {
            return this.f;
        }
        return this.a.e(j, this.d, this.e);
    }
}
