package kotlin.jvm.internal;

import kotlin.jvm.KotlinReflectionNotSupportedError;

/* JADX INFO: loaded from: classes.dex */
public abstract class PropertyReference extends CallableReference implements yd.g {
    private final boolean syntheticJavaProperty;

    public PropertyReference(Object obj, Class cls, String str, String str2, int i10) {
        super(obj, cls, str, str2, (i10 & 1) == 1);
        this.syntheticJavaProperty = (i10 & 2) == 2;
    }

    public final boolean equals(Object obj) {
        if (obj == this) {
            return true;
        }
        if (obj instanceof PropertyReference) {
            PropertyReference propertyReference = (PropertyReference) obj;
            return e().equals(propertyReference.e()) && d().equals(propertyReference.d()) && f().equals(propertyReference.f()) && nb.g.c(this.receiver, propertyReference.receiver);
        }
        if (obj instanceof yd.g) {
            return obj.equals(g());
        }
        return false;
    }

    public final yd.a g() {
        if (this.syntheticJavaProperty) {
            return this;
        }
        yd.a aVar = this.f29232a;
        if (aVar != null) {
            return aVar;
        }
        yd.a aVarC = c();
        this.f29232a = aVarC;
        return aVarC;
    }

    public final yd.g h() {
        if (this.syntheticJavaProperty) {
            throw new UnsupportedOperationException("Kotlin reflection is not yet supported for synthetic Java properties");
        }
        yd.a aVarG = g();
        if (aVarG != this) {
            return (yd.g) aVarG;
        }
        throw new KotlinReflectionNotSupportedError();
    }

    public final int hashCode() {
        return f().hashCode() + ((d().hashCode() + (e().hashCode() * 31)) * 31);
    }

    public final String toString() {
        yd.a aVarG = g();
        if (aVarG != this) {
            return aVarG.toString();
        }
        return "property " + d() + " (Kotlin reflection is not available)";
    }
}
