package jo;

import hp.e0;
import hp.f0;
import hp.j0;
import hp.m0;
import hp.p1;
import hp.r1;
import hp.s1;
import hp.y;
import hp.z0;
import kotlin.jvm.internal.t;

/* loaded from: classes3.dex */
public final class g extends hp.q implements j0 {

    /* renamed from: q, reason: collision with root package name */
    private final m0 f25123q;

    public g(m0 delegate) {
        t.g(delegate, "delegate");
        this.f25123q = delegate;
    }

    private final m0 W0(m0 m0Var) {
        m0 O0 = m0Var.O0(false);
        return !kp.a.t(m0Var) ? O0 : new g(O0);
    }

    @Override // hp.q, hp.e0
    public boolean L0() {
        return false;
    }

    @Override // hp.s1
    /* renamed from: R0 */
    public m0 O0(boolean z10) {
        return z10 ? T0().O0(true) : this;
    }

    @Override // hp.q
    protected m0 T0() {
        return this.f25123q;
    }

    @Override // hp.m0
    /* renamed from: X0, reason: merged with bridge method [inline-methods] */
    public g Q0(z0 newAttributes) {
        t.g(newAttributes, "newAttributes");
        return new g(T0().Q0(newAttributes));
    }

    @Override // hp.q
    /* renamed from: Y0, reason: merged with bridge method [inline-methods] */
    public g V0(m0 delegate) {
        t.g(delegate, "delegate");
        return new g(delegate);
    }

    @Override // hp.m
    public e0 q0(e0 replacement) {
        t.g(replacement, "replacement");
        s1 N0 = replacement.N0();
        if (!kp.a.t(N0) && !p1.l(N0)) {
            return N0;
        }
        if (N0 instanceof m0) {
            return W0((m0) N0);
        }
        if (N0 instanceof y) {
            y yVar = (y) N0;
            return r1.d(f0.d(W0(yVar.S0()), W0(yVar.T0())), r1.a(N0));
        }
        throw new IllegalStateException(("Incorrect type: " + N0).toString());
    }

    @Override // hp.m
    public boolean x0() {
        return true;
    }
}
