package com.google.android.gms.internal.ads;

/* JADX INFO: loaded from: classes2.dex */
public abstract class ab2 extends ba2 {

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public cb2 f8617b;

    public ab2(cb2 cb2Var) {
        this.f8616a = cb2Var;
        if (cb2Var.h()) {
            throw new IllegalArgumentException("Default instance must be immutable.");
        }
        this.f8617b = cb2Var.p();
    }

    public final void c() {
        if (this.f8617b.h()) {
            return;
        }
        cb2 cb2VarP = this.f8616a.p();
        dc2.f10372c.b(cb2VarP.getClass()).d(cb2VarP, this.f8617b);
        this.f8617b = cb2VarP;
    }

    public final Object clone() {
        ab2 ab2Var = (ab2) this.f8616a.x(zzibq.f19865e, null);
        ab2Var.f8617b = d();
        return ab2Var;
    }

    public final cb2 d() {
        if (!this.f8617b.h()) {
            return this.f8617b;
        }
        this.f8617b.q();
        return this.f8617b;
    }

    public final cb2 e() {
        cb2 cb2VarD = d();
        cb2VarD.getClass();
        if (cb2.y(cb2VarD, true)) {
            return cb2VarD;
        }
        throw new zziee();
    }

    public final ab2 f(cb2 cb2Var) {
        if (this.f8616a.equals(cb2Var)) {
            return this;
        }
        c();
        cb2 cb2Var2 = this.f8617b;
        dc2.f10372c.b(cb2Var2.getClass()).d(cb2Var2, cb2Var);
        return this;
    }
}
