package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public abstract class BD implements Cloneable {
    public final DD l;
    public DD m;

    public BD(DD dd) {
        this.l = dd;
        if (dd.g()) {
            throw new IllegalArgumentException("Default instance must be immutable.");
        }
        this.m = dd.i();
    }

    public final DD a() {
        DD ddB = b();
        ddB.getClass();
        if (DD.f(ddB, true)) {
            return ddB;
        }
        throw new Lh0();
    }

    public final DD b() {
        if (!this.m.g()) {
            return this.m;
        }
        DD dd = this.m;
        dd.getClass();
        C2530tZ c2530tZ = C2530tZ.c;
        c2530tZ.getClass();
        c2530tZ.a(dd.getClass()).c(dd);
        dd.h();
        return this.m;
    }

    public final void c() {
        if (this.m.g()) {
            return;
        }
        DD ddI = this.l.i();
        DD dd = this.m;
        C2530tZ c2530tZ = C2530tZ.c;
        c2530tZ.getClass();
        c2530tZ.a(ddI.getClass()).a(ddI, dd);
        this.m = ddI;
    }

    public final Object clone() {
        BD bd = (BD) this.l.c(5);
        bd.m = b();
        return bd;
    }
}
