package p0;

import android.graphics.Shader;
import java.util.ArrayList;
import java.util.List;
import o0.C2631b;

/* JADX INFO: renamed from: p0.I, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C2691I extends V {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final List f22850a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final ArrayList f22851b;

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

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final long f22853d;

    public C2691I(List list, ArrayList arrayList, long j4, long j6) {
        this.f22850a = list;
        this.f22851b = arrayList;
        this.f22852c = j4;
        this.f22853d = j6;
    }

    @Override // p0.V
    /* JADX INFO: renamed from: createShader-uvyYCjk */
    public final Shader mo746createShaderuvyYCjk(long j4) {
        long j6 = this.f22852c;
        int i6 = (int) (j6 >> 32);
        if (Float.intBitsToFloat(i6) == Float.POSITIVE_INFINITY) {
            i6 = (int) (j4 >> 32);
        }
        float fIntBitsToFloat = Float.intBitsToFloat(i6);
        int i7 = (int) (j6 & 4294967295L);
        if (Float.intBitsToFloat(i7) == Float.POSITIVE_INFINITY) {
            i7 = (int) (j4 & 4294967295L);
        }
        float fIntBitsToFloat2 = Float.intBitsToFloat(i7);
        long j7 = this.f22853d;
        int i8 = (int) (j7 >> 32);
        if (Float.intBitsToFloat(i8) == Float.POSITIVE_INFINITY) {
            i8 = (int) (j4 >> 32);
        }
        float fIntBitsToFloat3 = Float.intBitsToFloat(i8);
        int i9 = (int) (j7 & 4294967295L);
        if (Float.intBitsToFloat(i9) == Float.POSITIVE_INFINITY) {
            i9 = (int) (j4 & 4294967295L);
        }
        float fIntBitsToFloat4 = Float.intBitsToFloat(i9);
        return AbstractC2686D.h((((long) Float.floatToRawIntBits(fIntBitsToFloat)) << 32) | (((long) Float.floatToRawIntBits(fIntBitsToFloat2)) & 4294967295L), (((long) Float.floatToRawIntBits(fIntBitsToFloat3)) << 32) | (((long) Float.floatToRawIntBits(fIntBitsToFloat4)) & 4294967295L), this.f22850a, this.f22851b, 0);
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof C2691I)) {
            return false;
        }
        C2691I c2691i = (C2691I) obj;
        return kotlin.jvm.internal.o.c(this.f22850a, c2691i.f22850a) && kotlin.jvm.internal.o.c(this.f22851b, c2691i.f22851b) && C2631b.b(this.f22852c, c2691i.f22852c) && C2631b.b(this.f22853d, c2691i.f22853d);
    }

    /* JADX WARN: Removed duplicated region for block: B:11:0x0042  */
    @Override // p0.AbstractC2711q
    /* JADX INFO: renamed from: getIntrinsicSize-NH-jbRc, reason: not valid java name */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final long mo1208getIntrinsicSizeNHjbRc() {
        float fAbs;
        long j4 = this.f22852c;
        float fIntBitsToFloat = Float.intBitsToFloat((int) (j4 >> 32));
        boolean zIsInfinite = Float.isInfinite(fIntBitsToFloat);
        float fAbs2 = Float.NaN;
        long j6 = this.f22853d;
        if (zIsInfinite || Float.isNaN(fIntBitsToFloat)) {
            fAbs = Float.NaN;
        } else {
            float fIntBitsToFloat2 = Float.intBitsToFloat((int) (j6 >> 32));
            if (!Float.isInfinite(fIntBitsToFloat2) && !Float.isNaN(fIntBitsToFloat2)) {
                fAbs = Math.abs(Float.intBitsToFloat((int) (j4 >> 32)) - Float.intBitsToFloat((int) (j6 >> 32)));
            }
        }
        float fIntBitsToFloat3 = Float.intBitsToFloat((int) (j4 & 4294967295L));
        if (!Float.isInfinite(fIntBitsToFloat3) && !Float.isNaN(fIntBitsToFloat3)) {
            float fIntBitsToFloat4 = Float.intBitsToFloat((int) (j6 & 4294967295L));
            if (!Float.isInfinite(fIntBitsToFloat4) && !Float.isNaN(fIntBitsToFloat4)) {
                fAbs2 = Math.abs(Float.intBitsToFloat((int) (j4 & 4294967295L)) - Float.intBitsToFloat((int) (j6 & 4294967295L)));
            }
        }
        return (((long) Float.floatToRawIntBits(fAbs)) << 32) | (((long) Float.floatToRawIntBits(fAbs2)) & 4294967295L);
    }

    public final int hashCode() {
        int iHashCode = this.f22850a.hashCode() * 31;
        ArrayList arrayList = this.f22851b;
        return Integer.hashCode(0) + com.google.android.recaptcha.internal.a.e(com.google.android.recaptcha.internal.a.e((iHashCode + (arrayList != null ? arrayList.hashCode() : 0)) * 31, 31, this.f22852c), 31, this.f22853d);
    }

    public final String toString() {
        String str;
        long j4 = this.f22852c;
        String str2 = "";
        if (((((j4 & 9187343241974906880L) ^ 9187343241974906880L) - 4294967297L) & (-9223372034707292160L)) == 0) {
            str = "start=" + ((Object) C2631b.g(j4)) + ", ";
        } else {
            str = "";
        }
        long j6 = this.f22853d;
        if (((((j6 & 9187343241974906880L) ^ 9187343241974906880L) - 4294967297L) & (-9223372034707292160L)) == 0) {
            str2 = "end=" + ((Object) C2631b.g(j6)) + ", ";
        }
        return "LinearGradient(colors=" + this.f22850a + ", stops=" + this.f22851b + ", " + str + str2 + "tileMode=" + ((Object) AbstractC2686D.N(0)) + ')';
    }
}
