package defpackage;

import java.io.File;
import java.util.concurrent.CopyOnWriteArraySet;

/* JADX INFO: renamed from: ᵷᵯᵷ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C4923 implements InterfaceC0333 {

    /* JADX INFO: renamed from: ˌᴵ, reason: contains not printable characters */
    public Object f18722;

    /* JADX INFO: renamed from: ᵜᵪʾ, reason: contains not printable characters */
    public volatile Object f18723;

    public C4923() {
        this.f18722 = new CopyOnWriteArraySet();
    }

    public /* synthetic */ C4923(Object obj) {
        this.f18722 = obj;
    }

    @Override // defpackage.InterfaceC0333
    public Object get() {
        if (this.f18723 == null) {
            synchronized (this) {
                try {
                    if (this.f18723 == null) {
                        Object obj = ((InterfaceC0333) this.f18722).get();
                        ᵿᵽᵤ.ːˏᵟᵯ(obj, "Argument must not be null");
                        this.f18723 = obj;
                    }
                } finally {
                }
            }
        }
        return this.f18723;
    }

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public InterfaceC4865 m10223() {
        if (((InterfaceC4865) this.f18723) == null) {
            synchronized (this) {
                try {
                    if (((InterfaceC4865) this.f18723) == null) {
                        File cacheDir = ((C1711) ((ᵧᵙᵤ) this.f18722).ᵜᵪʾ).f6834.getCacheDir();
                        C5227 c5227 = null;
                        File file = cacheDir == null ? null : new File(cacheDir, "image_manager_disk_cache");
                        if (file != null && (file.isDirectory() || file.mkdirs())) {
                            c5227 = new C5227(file);
                        }
                        this.f18723 = c5227;
                    }
                    if (((InterfaceC4865) this.f18723) == null) {
                        this.f18723 = new ᵱᵻᵧᵷ();
                    }
                } finally {
                }
            }
        }
        return (InterfaceC4865) this.f18723;
    }
}
