package t1;

/* loaded from: classes.dex */
public final class y {

    /* renamed from: a, reason: collision with root package name */
    private final double f36077a;

    /* renamed from: b, reason: collision with root package name */
    private final double f36078b;

    /* renamed from: c, reason: collision with root package name */
    private final double f36079c;

    /* renamed from: d, reason: collision with root package name */
    private final double f36080d;

    /* renamed from: e, reason: collision with root package name */
    private final double f36081e;

    /* renamed from: f, reason: collision with root package name */
    private final double f36082f;

    /* renamed from: g, reason: collision with root package name */
    private final double f36083g;

    /* JADX WARN: Code restructure failed: missing block: B:30:0x0062, code lost:
    
        if ((r1 == 0.0d) == false) goto L38;
     */
    /* JADX WARN: Code restructure failed: missing block: B:52:0x0093, code lost:
    
        if ((r1 == 0.0d) != false) goto L58;
     */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public y(double d10, double d11, double d12, double d13, double d14, double d15, double d16) {
        this.f36077a = d10;
        this.f36078b = d11;
        this.f36079c = d12;
        this.f36080d = d13;
        this.f36081e = d14;
        this.f36082f = d15;
        this.f36083g = d16;
        if (Double.isNaN(d11) || Double.isNaN(d12) || Double.isNaN(d13) || Double.isNaN(d14) || Double.isNaN(d15) || Double.isNaN(d16) || Double.isNaN(d10)) {
            throw new IllegalArgumentException("Parameters cannot be NaN");
        }
        if (d14 < 0.0d || d14 > 1.0d) {
            throw new IllegalArgumentException("Parameter d must be in the range [0..1], was " + d14);
        }
        if (d14 == 0.0d) {
            if (!(d11 == 0.0d)) {
            }
            throw new IllegalArgumentException("Parameter a or g is zero, the transfer function is constant");
        }
        if (d14 >= 1.0d) {
            if (d13 == 0.0d) {
                throw new IllegalArgumentException("Parameter c is zero, the transfer function is constant");
            }
        }
        if (!(d11 == 0.0d)) {
        }
        if (d13 == 0.0d) {
            throw new IllegalArgumentException("Parameter a or g is zero, and c is zero, the transfer function is constant");
        }
        if (d13 < 0.0d) {
            throw new IllegalArgumentException("The transfer function must be increasing");
        }
        if (d11 < 0.0d || d10 < 0.0d) {
            throw new IllegalArgumentException("The transfer function must be positive or increasing");
        }
    }

    public final double a() {
        return this.f36078b;
    }

    public final double b() {
        return this.f36079c;
    }

    public final double c() {
        return this.f36080d;
    }

    public final double d() {
        return this.f36081e;
    }

    public final double e() {
        return this.f36082f;
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof y)) {
            return false;
        }
        y yVar = (y) obj;
        return Double.compare(this.f36077a, yVar.f36077a) == 0 && Double.compare(this.f36078b, yVar.f36078b) == 0 && Double.compare(this.f36079c, yVar.f36079c) == 0 && Double.compare(this.f36080d, yVar.f36080d) == 0 && Double.compare(this.f36081e, yVar.f36081e) == 0 && Double.compare(this.f36082f, yVar.f36082f) == 0 && Double.compare(this.f36083g, yVar.f36083g) == 0;
    }

    public final double f() {
        return this.f36083g;
    }

    public final double g() {
        return this.f36077a;
    }

    public int hashCode() {
        return (((((((((((Double.hashCode(this.f36077a) * 31) + Double.hashCode(this.f36078b)) * 31) + Double.hashCode(this.f36079c)) * 31) + Double.hashCode(this.f36080d)) * 31) + Double.hashCode(this.f36081e)) * 31) + Double.hashCode(this.f36082f)) * 31) + Double.hashCode(this.f36083g);
    }

    public String toString() {
        return "TransferParameters(gamma=" + this.f36077a + ", a=" + this.f36078b + ", b=" + this.f36079c + ", c=" + this.f36080d + ", d=" + this.f36081e + ", e=" + this.f36082f + ", f=" + this.f36083g + ')';
    }

    public /* synthetic */ y(double d10, double d11, double d12, double d13, double d14, double d15, double d16, int i10, kotlin.jvm.internal.k kVar) {
        this(d10, d11, d12, d13, d14, (i10 & 32) != 0 ? 0.0d : d15, (i10 & 64) != 0 ? 0.0d : d16);
    }
}
