package com.ss.android.ugc.effectmanager;

import com.bytedance.covode.number.Covode;
import com.bytedance.frameworks.apm.trace.MethodCollector;

public class DownloadableModelLibraryLoader {
    public static final DownloadableModelLibraryLoader INSTANCE = new DownloadableModelLibraryLoader();
    public static volatile boolean hasLoadedLibrary;

    static {
        Covode.recordClassIndex(125157);
    }

    public final void loadLibrary() {
        MethodCollector.i(7631);
        if (hasLoadedLibrary) {
            MethodCollector.o(7631);
            return;
        }
        synchronized (this) {
            try {
                if (!hasLoadedLibrary) {
                    DownloadableModelSupport.sLibraryLoader.loadLibrary("oldep");
                    hasLoadedLibrary = true;
                }
            } finally {
                MethodCollector.o(7631);
            }
        }
    }
}
