package d3;

import P2.C0253j;

/* JADX INFO: loaded from: classes.dex */
public final class H {

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public static final Object f11474f = new Object();

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

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final Object f11477c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final Object f11478d = new Object();

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public volatile Object f11479e = null;

    public /* synthetic */ H(String str, Object obj, G g8) {
        this.f11475a = str;
        this.f11477c = obj;
        this.f11476b = g8;
    }

    /* JADX WARN: Removed duplicated region for block: B:56:0x005f A[EXC_TOP_SPLITTER, SYNTHETIC] */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object a(Object obj) {
        G g8;
        synchronized (this.f11478d) {
        }
        if (obj != null) {
            return obj;
        }
        if (G0.f11472k == null) {
            return this.f11477c;
        }
        synchronized (f11474f) {
            try {
                if (C0253j.s()) {
                    return this.f11479e == null ? this.f11477c : this.f11479e;
                }
                try {
                } catch (SecurityException unused) {
                }
                for (H h8 : I.f11534a) {
                    if (C0253j.s()) {
                        throw new IllegalStateException("Refreshing flag cache must be done on a worker thread.");
                    }
                    Object objC = null;
                    try {
                        G g9 = h8.f11476b;
                        if (g9 != null) {
                            objC = g9.c();
                        }
                    } catch (IllegalStateException unused2) {
                    }
                    synchronized (f11474f) {
                        h8.f11479e = objC;
                    }
                    g8 = this.f11476b;
                    if (g8 != null) {
                        try {
                            return g8.c();
                        } catch (IllegalStateException | SecurityException unused3) {
                        }
                    }
                    return this.f11477c;
                }
                g8 = this.f11476b;
                if (g8 != null) {
                }
                return this.f11477c;
            } finally {
            }
        }
    }
}
