package o;

import android.graphics.RectF;
import java.util.Arrays;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class V1 implements InterfaceC2273qn {
    public final InterfaceC2273qn a;
    public final float b;

    public V1(float f, InterfaceC2273qn interfaceC2273qn) {
        while (interfaceC2273qn instanceof V1) {
            interfaceC2273qn = ((V1) interfaceC2273qn).a;
            f += ((V1) interfaceC2273qn).b;
        }
        this.a = interfaceC2273qn;
        this.b = f;
    }

    @Override // o.InterfaceC2273qn
    public final float a(RectF rectF) {
        return Math.max(0.0f, this.a.a(rectF) + this.b);
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof V1)) {
            return false;
        }
        V1 v1 = (V1) obj;
        return this.a.equals(v1.a) && this.b == v1.b;
    }

    public final int hashCode() {
        return Arrays.hashCode(new Object[]{this.a, Float.valueOf(this.b)});
    }
}
