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

import android.os.Looper;
import androidx.annotation.Nullable;

/* JADX INFO: loaded from: classes2.dex */
public final class aj2 {

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final yi2 f8716b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public int f8717c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final Looper f8718d;

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

    @Nullable
    private Object zze;

    public aj2(ci2 ci2Var, ej2 ej2Var, Looper looper) {
        this.f8716b = ci2Var;
        this.f8715a = ej2Var;
        this.f8718d = looper;
    }

    public final Looper a() {
        return this.f8718d;
    }

    public final void b() {
        ih1.b1(!this.f8719e);
        this.f8719e = true;
        ci2 ci2Var = (ci2) this.f8716b;
        if (!ci2Var.f9928j0 && ci2Var.f9927j.getThread().isAlive()) {
            ((u71) ((h81) ci2Var.f9923h).zzd(14, this)).a();
        } else {
            vt0.c("Ignoring messages sent after release.");
            c(false);
        }
    }

    public final synchronized void c(boolean z10) {
        notifyAll();
    }

    public final aj2 zzd(@Nullable Object obj) {
        ih1.b1(!this.f8719e);
        this.zze = obj;
        return this;
    }

    @Nullable
    public final Object zze() {
        return this.zze;
    }
}
