package androidx.compose.ui.semantics;

import o.C0531Um;
import o.KP;
import o.LP;
import o.OC;
import o.RP;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class AppendedSemanticsElement extends RP implements KP {
    public final boolean a;
    public final OC b;

    public AppendedSemanticsElement(OC oc, boolean z) {
        this.a = z;
        this.b = oc;
    }

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

    @Override // o.RP
    public final LP f() {
        C0531Um c0531Um = new C0531Um();
        c0531Um.z = this.a;
        c0531Um.A = this.b;
        return c0531Um;
    }

    public final int hashCode() {
        return this.b.hashCode() + (Boolean.hashCode(this.a) * 31);
    }

    @Override // o.RP
    public final void j(LP lp) {
        C0531Um c0531Um = (C0531Um) lp;
        c0531Um.z = this.a;
        c0531Um.A = this.b;
    }
}
