package androidx.recyclerview.widget;

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

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public int f3664a;

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public Object f3666c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public int f3667d;

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof b)) {
            return false;
        }
        b bVar = (b) obj;
        int i10 = this.f3664a;
        if (i10 != bVar.f3664a) {
            return false;
        }
        if (i10 == 8 && Math.abs(this.f3667d - this.f3665b) == 1 && this.f3667d == bVar.f3665b && this.f3665b == bVar.f3667d) {
            return true;
        }
        if (this.f3667d != bVar.f3667d || this.f3665b != bVar.f3665b) {
            return false;
        }
        Object obj2 = this.f3666c;
        if (obj2 != null) {
            if (!obj2.equals(bVar.f3666c)) {
                return false;
            }
        } else if (bVar.f3666c != null) {
            return false;
        }
        return true;
    }

    public final int hashCode() {
        return (((this.f3664a * 31) + this.f3665b) * 31) + this.f3667d;
    }

    public final String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(Integer.toHexString(System.identityHashCode(this)));
        sb.append("[");
        int i10 = this.f3664a;
        sb.append(i10 != 1 ? i10 != 2 ? i10 != 4 ? i10 != 8 ? "??" : "mv" : "up" : "rm" : "add");
        sb.append(",s:");
        sb.append(this.f3665b);
        sb.append("c:");
        sb.append(this.f3667d);
        sb.append(",p:");
        sb.append(this.f3666c);
        sb.append("]");
        return sb.toString();
    }
}
