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

/* JADX INFO: loaded from: classes2.dex */
public abstract class a2 extends o0.i {

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

    public a2(m1 m1Var) {
        super(m1Var);
        ((m1) this.f31277a).E++;
    }

    public final void x() {
        if (!this.f21470b) {
            throw new IllegalStateException("Not initialized");
        }
    }

    public final void y() {
        if (this.f21470b) {
            throw new IllegalStateException("Can't initialize twice");
        }
        if (z()) {
            return;
        }
        ((m1) this.f31277a).G.incrementAndGet();
        this.f21470b = true;
    }

    public abstract boolean z();
}
