package Z0;

import J2.L;
import a1.AbstractC0958a;

/* JADX INFO: renamed from: Z0.e, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0864e implements InterfaceC0866g {

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

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

    public C0864e(int i6, int i7) {
        this.f9100a = i6;
        this.f9101b = i7;
        if (i6 >= 0 && i7 >= 0) {
            return;
        }
        AbstractC0958a.a("Expected lengthBeforeCursor and lengthAfterCursor to be non-negative, were " + i6 + " and " + i7 + " respectively.");
    }

    @Override // Z0.InterfaceC0866g
    public final void a(C0867h c0867h) {
        int i6 = c0867h.f9106c;
        int i7 = this.f9101b;
        int iP = i6 + i7;
        int i8 = (i6 ^ iP) & (i7 ^ iP);
        L l = c0867h.f9104a;
        if (i8 < 0) {
            iP = l.p();
        }
        c0867h.a(c0867h.f9106c, Math.min(iP, l.p()));
        int i9 = c0867h.f9105b;
        int i10 = this.f9100a;
        int i11 = i9 - i10;
        if (((i9 ^ i11) & (i10 ^ i9)) < 0) {
            i11 = 0;
        }
        c0867h.a(Math.max(0, i11), c0867h.f9105b);
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof C0864e)) {
            return false;
        }
        C0864e c0864e = (C0864e) obj;
        return this.f9100a == c0864e.f9100a && this.f9101b == c0864e.f9101b;
    }

    public final int hashCode() {
        return (this.f9100a * 31) + this.f9101b;
    }

    public final String toString() {
        StringBuilder sb = new StringBuilder("DeleteSurroundingTextCommand(lengthBeforeCursor=");
        sb.append(this.f9100a);
        sb.append(", lengthAfterCursor=");
        return com.google.android.recaptcha.internal.a.m(sb, this.f9101b, ')');
    }
}
