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

import android.content.Context;
import java.util.concurrent.atomic.AtomicReference;

/* JADX INFO: loaded from: classes2.dex */
public final class i4 extends w4 {

    /* JADX INFO: renamed from: i, reason: collision with root package name */
    public static final o3 f20981i = new o3(1);

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public final Context f20982h;

    public i4(y3 y3Var, ea eaVar, int i10, Context context) {
        super(y3Var, "joxZSCFIfSio2J1Z0g3HMtlcDGNvogfMyrj1e2b+qPNv6DXnDVXfwkgCXW9zFWFC", "iJiFXDBrMwFOGpG8WmWNKc3sGwXbWv8N6fPQac0mMm0=", eaVar, i10, 29);
        this.f20982h = context;
    }

    @Override // com.google.android.gms.internal.pal.w4
    public final void a() {
        ea eaVar = this.f21306d;
        if (eaVar.f20700c) {
            eaVar.i();
            eaVar.f20700c = false;
        }
        l1.w0((l1) eaVar.f20699b, "E");
        AtomicReference atomicReferenceF = f20981i.f(this.f20982h.getPackageName());
        if (atomicReferenceF.get() == null) {
            synchronized (atomicReferenceF) {
                try {
                    if (atomicReferenceF.get() == null) {
                        atomicReferenceF.set((String) this.f21307e.invoke(null, this.f20982h));
                    }
                } finally {
                }
            }
        }
        String str = (String) atomicReferenceF.get();
        synchronized (this.f21306d) {
            ea eaVar2 = this.f21306d;
            String strP = q9.p(str.getBytes(), true);
            if (eaVar2.f20700c) {
                eaVar2.i();
                eaVar2.f20700c = false;
            }
            l1.w0((l1) eaVar2.f20699b, strP);
        }
    }
}
