package com.bytedance.vcloud.strategy;

import X.4Sh;
import android.os.SystemClock;
import com.bytedance.covode.number.Covode;
import com.bytedance.frameworks.apm.trace.MethodCollector;
import com.bytedance.librarian.Librarian;

public class StrategyCenterJniLoader {
    public static volatile String exception = "";
    public static volatile boolean isLibraryLoaded;

    static {
        Covode.recordClassIndex(40214);
    }

    public static synchronized void loadLibrary() {
        synchronized (StrategyCenterJniLoader.class) {
            MethodCollector.i(14656);
            try {
                if (!isLibraryLoaded) {
                    INVOKESTATIC_com_bytedance_vcloud_strategy_StrategyCenterJniLoader_com_ss_android_ugc_aweme_lancet_LoadSoLancet_loadLibrary("preload");
                    isLibraryLoaded = true;
                }
                MethodCollector.o(14656);
            } catch (Throwable th) {
                exception = th.toString();
                MethodCollector.o(14656);
            }
        }
    }

    public static void INVOKESTATIC_com_bytedance_vcloud_strategy_StrategyCenterJniLoader_com_ss_android_ugc_aweme_lancet_LoadSoLancet_loadLibrary(String str) {
        long uptimeMillis = SystemClock.uptimeMillis();
        Librarian.LIZ(str);
        4Sh.LIZ(uptimeMillis, str);
    }
}
