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

import android.content.Context;

/* JADX INFO: loaded from: classes2.dex */
public final class sj1 extends qj1 {

    /* JADX INFO: renamed from: i, reason: collision with root package name */
    public static sj1 f16461i;

    public static final sj1 e(Context context) {
        sj1 sj1Var;
        synchronized (sj1.class) {
            try {
                if (f16461i == null) {
                    f16461i = new sj1(context, "paidv2_id", "paidv2_creation_time", "PaidV2LifecycleImpl");
                }
                sj1Var = f16461i;
            } catch (Throwable th) {
                throw th;
            }
        }
        return sj1Var;
    }

    public final nj1 f(long j10, boolean z10) {
        boolean z11;
        synchronized (sj1.class) {
            try {
                oj1 oj1Var = this.f15766g;
                oj1Var.getClass();
                synchronized (oj1.class) {
                    z11 = oj1Var.f15092a.f15446b.getBoolean("paidv2_publisher_option", true);
                }
                if (z11) {
                    return zza(null, null, j10, z10);
                }
                return new nj1();
            } catch (Throwable th) {
                throw th;
            }
        }
    }

    public final void g() {
        synchronized (sj1.class) {
            try {
                if (this.f15765f.f15446b.contains(this.f15760a)) {
                    b(false);
                }
            } catch (Throwable th) {
                throw th;
            }
        }
    }
}
