package I0;

import r4.AbstractC0983h;

/* JADX INFO: loaded from: classes.dex */
public final class c {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final F0.b f885a;

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

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

    public c(F0.b bVar, b bVar2, b bVar3) {
        this.f885a = bVar;
        this.f886b = bVar2;
        this.f887c = bVar3;
        int i = bVar.f619c;
        int i5 = bVar.f617a;
        int i6 = i - i5;
        int i7 = bVar.f618b;
        if (i6 == 0 && bVar.f620d - i7 == 0) {
            throw new IllegalArgumentException("Bounds must be non zero");
        }
        if (i5 != 0 && i7 != 0) {
            throw new IllegalArgumentException("Bounding rectangle must start at the top or left window edge for folding features");
        }
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!c.class.equals(obj != null ? obj.getClass() : null)) {
            return false;
        }
        AbstractC0983h.c("null cannot be cast to non-null type androidx.window.layout.HardwareFoldingFeature", obj);
        c cVar = (c) obj;
        return AbstractC0983h.a(this.f885a, cVar.f885a) && AbstractC0983h.a(this.f886b, cVar.f886b) && AbstractC0983h.a(this.f887c, cVar.f887c);
    }

    public final int hashCode() {
        return this.f887c.hashCode() + ((this.f886b.hashCode() + (this.f885a.hashCode() * 31)) * 31);
    }

    public final String toString() {
        return c.class.getSimpleName() + " { " + this.f885a + ", type=" + this.f886b + ", state=" + this.f887c + " }";
    }
}
