package p138.p176.p177.p242.p265.p266;

import p138.p176.p177.p242.p246.p251.C4303;

/* JADX INFO: renamed from: ދ.ހ.֏.ހ.ބ.֏.ʴ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public final class C4796<V> {

    /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
    public static final Object f14454 = new Object();

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final String f14455;

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public final InterfaceC4826<V> f14456;

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public final V f14457;

    /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
    public final V f14458;

    /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
    public final Object f14459 = new Object();

    /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
    public volatile V f14460 = null;

    /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
    public volatile V f14461 = null;

    /* JADX WARN: Multi-variable type inference failed */
    public /* synthetic */ C4796(String str, Object obj, Object obj2, InterfaceC4826 interfaceC4826, C4831 c4831) {
        this.f14455 = str;
        this.f14457 = obj;
        this.f14458 = obj2;
        this.f14456 = interfaceC4826;
    }

    /* JADX WARN: Removed duplicated region for block: B:44:0x005d  */
    /* JADX WARN: Removed duplicated region for block: B:68:0x0060 A[EXC_TOP_SPLITTER, SYNTHETIC] */
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final V m8054(V v) {
        InterfaceC4826<V> interfaceC4826;
        synchronized (this.f14459) {
        }
        if (v != null) {
            return v;
        }
        if (C4303.f13597 == null) {
            return this.f14457;
        }
        synchronized (f14454) {
            if (C4785.m8028()) {
                return this.f14461 == null ? this.f14457 : this.f14461;
            }
            try {
            } catch (SecurityException unused) {
            }
            for (C4796<?> c4796 : C4915.f14828) {
                if (C4785.m8028()) {
                    throw new IllegalStateException("Refreshing flag cache must be done on a worker thread.");
                }
                V v2 = null;
                try {
                    if (c4796.f14456 != null) {
                        v2 = (V) c4796.f14456.mo8053();
                    }
                } catch (IllegalStateException unused2) {
                }
                synchronized (f14454) {
                    c4796.f14461 = v2;
                }
                interfaceC4826 = this.f14456;
                if (interfaceC4826 != null) {
                    return this.f14457;
                }
                try {
                    return interfaceC4826.mo8053();
                } catch (IllegalStateException unused3) {
                    return this.f14457;
                } catch (SecurityException unused4) {
                    return this.f14457;
                }
            }
            interfaceC4826 = this.f14456;
            if (interfaceC4826 != null) {
            }
        }
    }
}
