package com.ss.android.ugc.aweme.video.preload.enginepreloader;

import X.0HH;
import X.4Ms;
import X.4N2;
import X.AnonymousClass7R6;
import X.AnonymousClass7UR;
import X.AnonymousClass7dQ;
import X.AnonymousClass7dR;
import X.AnonymousClass7dW;
import X.AnonymousClass7dX;
import X.AnonymousClass7g8;
import X.AnonymousClass8BE;
import X.AnonymousClass8BK;
import X.AnonymousClass8F1;
import X.AnonymousClass8F4;
import X.AnonymousClass8FE;
import X.AnonymousClass8FJ;
import X.AnonymousClass8N0;
import X.AnonymousClass8N3;
import X.AnonymousClass8NQ;
import X.AnonymousClass8PM;
import X.AnonymousClass8PP;
import X.AnonymousClass8S7;
import X.AnonymousClass8SB;
import X.AnonymousClass8SR;
import X.AnonymousClass8SS;
import X.AnonymousClass8T6;
import X.AnonymousClass8T8;
import X.AnonymousClass8TF;
import X.AnonymousClass8TN;
import X.AnonymousClass8XJ;
import X.AnonymousClass8YN;
import X.AnonymousClass8YP;
import X.AnonymousClass8YQ;
import X.AnonymousClass8YR;
import X.C02697ac;
import X.C16168Bb;
import X.C16368Bv;
import X.C16738Dg;
import X.C16748Dh;
import X.C16758Di;
import X.C17218Fc;
import X.C17348Fp;
import X.C17408Fv;
import X.C17418Fw;
import X.C18518Kc;
import X.C18738Ky;
import X.C18758La;
import X.C19788Oz;
import X.C20598Sc;
import X.C20708Sn;
import X.C20738Sq;
import X.C20788Sv;
import X.C20938Tk;
import X.C20958Tm;
import X.C33198r0;
import X.C33208r1;
import X.JqP;
import X.JqQ;
import X.JqT;
import android.app.Application;
import android.content.Context;
import android.os.Handler;
import android.os.HandlerThread;
import android.os.Looper;
import android.text.TextUtils;
import android.util.Pair;
import com.bytedance.covode.number.Covode;
import com.bytedance.frameworks.apm.trace.MethodCollector;
import com.bytedance.ies.abmock.SettingsManager;
import com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig;
import com.ss.mediakit.medialoader.AVMDLCopyOperation;
import com.ss.mediakit.medialoader.LoaderEventInfo;
import com.ss.mediakit.medialoader.LoaderListener;
import java.io.File;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.TimeUnit;
import org.json.JSONArray;
import org.json.JSONObject;

public class EnginePreloader implements C20958Tm {
    public static int LJIILL = -1;
    public static final String LJIILLIIL = AnonymousClass8NQ.MediaLoader.getCacheDirName();
    public final List<WeakReference<AnonymousClass8N3>> LIZ = new CopyOnWriteArrayList();
    public AnonymousClass8SB LIZIZ;
    public AnonymousClass8S7 LIZJ;
    public Handler LIZLLL = new Handler(Looper.getMainLooper());
    public Map<String, List<AnonymousClass7dW>> LJ = Collections.synchronizedMap(new LinkedHashMap<String, List<AnonymousClass7dW>>() {
        static {
            Covode.recordClassIndex(122954);
        }

        public final boolean removeEldestEntry(Map.Entry entry) {
            if (size() > 15) {
                return true;
            }
            return false;
        }
    });
    public ConcurrentHashMap<String, String> LJFF = new ConcurrentHashMap<>();
    public final List<AnonymousClass7UR> LJI = new CopyOnWriteArrayList();
    public double LJII = -1.0d;
    public long LJIIIIZZ = 0;
    public volatile String LJIIIZ;
    public Map<String, Integer> LJIIJ = new ConcurrentHashMap();
    public Map<String, AnonymousClass8N0> LJIIJJI = new ConcurrentHashMap();
    public Map<String, C16758Di> LJIIL = new ConcurrentHashMap();
    public final Map<String, AnonymousClass8F4> LJIILIIL = new ConcurrentHashMap();
    public final IVideoPreloadConfig LJIILJJIL = AnonymousClass8BE.LIZ.LIZ();
    public volatile boolean LJIIZILJ;
    public volatile boolean LJIJ;
    public int LJIJI;
    public boolean LJIJJ;
    public Handler LJIJJLI;
    public File LJIL;
    public volatile boolean LJJ;
    public int LJJI = 819200;
    public volatile boolean LJJIFFI = false;
    public ConcurrentLinkedQueue<String> LJJII = new ConcurrentLinkedQueue<>();
    public Map<String, String> LJJIII;
    public C20788Sv LJJIIJ = new C17408Fv(this);
    public String LJJIIJZLJL = null;
    public LoaderListener LJJIIZ = new C20938Tk(this);
    public final ConcurrentHashMap<String, AnonymousClass8FE> LJJIIZI = new ConcurrentHashMap<>();

    public String getNetworkLibName() {
        return "engine";
    }

    public List<C02697ac> getSingleTimeDownloadList(C16758Di r2) {
        return null;
    }

    public boolean preload(C16758Di r2, int i) {
        return AnonymousClass8SS.LIZ(this, r2, i);
    }

    public AnonymousClass7R6 readTimeInfo(C16758Di r2) {
        return null;
    }

    public boolean supportPreloadObservable() {
        return true;
    }

    public File getCacheFile() {
        return this.LJIL;
    }

    public boolean isInited() {
        return this.LJIIZILJ;
    }

    public final void LIZ(AnonymousClass8N3 r4, int i, LoaderEventInfo loaderEventInfo) {
        if (r4 != null) {
            C20738Sq r2 = new C20738Sq();
            r2.LIZ = i;
            r2.LIZIZ = loaderEventInfo.fileHash;
            r2.LIZJ = loaderEventInfo.taskType;
            r2.LIZLLL = loaderEventInfo.bytesLoaded;
            r2.LJFF = loaderEventInfo.off;
            r2.LJI = loaderEventInfo.endOff;
            r2.LJ = loaderEventInfo.loadDurationMs;
            C20738Sq.LIZ(r2);
        }
    }

    /* JADX WARNING: Can't wrap try/catch for region: R(22:223|(1:225)|226|227|228|(1:230)|231|(1:233)|234|(1:236)|237|(1:239)|240|241|(2:243|244)|245|(1:247)|248|249|(0)|252|(0)(0)) */
    /* JADX WARNING: Can't wrap try/catch for region: R(2:106|107) */
    /* JADX WARNING: Code restructure failed: missing block: B:105:0x070e, code lost:
        if (r2 != null) goto L_0x0715;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:107:?, code lost:
        r2 = new com.ss.android.ugc.aweme.video.preload.model.EnginePreloaderConfig();
     */
    /* JADX WARNING: Code restructure failed: missing block: B:251:0x0afb, code lost:
        r4.LJIIJ.mEnableReportTaskLog = 1;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:254:0x0b0e, code lost:
        X.C18758La.LIZ("DataLoaderHelper", "[preload] preload strategy " + r4.LJJI);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:255:0x0b25, code lost:
        if (r4.LJIIJ.mEnableIOManager != 0) goto L_0x0b27;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:256:0x0b27, code lost:
        r2 = r4.LJIIIZ.getLongValue(7390);
        r0 = r4.LJIIIZ.getLongValue(7402);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:257:0x0b3b, code lost:
        if (r2 > 0) goto L_0x0b3d;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:259:0x0b3f, code lost:
        if (r0 < 0) goto L_0x0b41;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:261:0x0b43, code lost:
        r4.LJJ = new X.C20878Te();
        r11 = X.C19788Oz.LIZ;
        r11.LJIIIIZZ.lock();
     */
    /* JADX WARNING: Code restructure failed: missing block: B:263:?, code lost:
        r11.LIZJ = r2;
        r11.LIZLLL = r0;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:265:?, code lost:
        r11.LJIIIIZZ.unlock();
        X.C19788Oz.LIZ.LJ = r4.LJIIJJI;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:266:0x0b62, code lost:
        if (r4.LIZ != null) goto L_0x0b64;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:267:0x0b64, code lost:
        r0 = r4.LIZ.LIZ();
     */
    /* JADX WARNING: Code restructure failed: missing block: B:268:0x0b6a, code lost:
        r10 = X.C19788Oz.LIZ;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:269:0x0b6c, code lost:
        if (r0 == false) goto L_0x0b6e;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:271:0x0b6f, code lost:
        r0 = false;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:272:0x0b71, code lost:
        r11 = true;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:273:0x0b73, code lost:
        r11 = false;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:274:0x0b74, code lost:
        r10.LIZIZ();
        r10.LJIIIIZZ.lock();
     */
    /* JADX WARNING: Code restructure failed: missing block: B:276:?, code lost:
        r10.LIZIZ().create(r11);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:277:0x0b8b, code lost:
        if (r10.LIZIZ().isLoadLibrarySucceed() != false) goto L_0x0b8d;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:278:0x0b8d, code lost:
        r10.LIZLLL();
     */
    /* JADX WARNING: Code restructure failed: missing block: B:279:0x0b9c, code lost:
        if (r10.LJIIJ.get(31001) == null) goto L_0x0b9e;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:280:0x0b9e, code lost:
        r2 = "{\"strategy_center_v1\":{\"engine_default\":{\"preload_strategy\":{\"name\":\"default\",\"tasks\":[{\"download_progress\":100,\"count\":5,\"offset\":0,\"size\":800}]}},\"video_range_request\":{\"enable_concurrent_download\":0,\"allowed_segment_download\":0,\"fixed_size\":3000,\"fixed_duration\":10}}}";
     */
    /* JADX WARNING: Code restructure failed: missing block: B:281:0x0ba4, code lost:
        if (r10.LJI == 32) goto L_0x0ba6;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:282:0x0ba6, code lost:
        r2 = "{\"strategy_center_v1\":{\"feed\":{\"preload_strategy\":{\"name\":\"adaptive\",\"low_buf\":5,\"high_buf\":20,\"tasks\":[{\"count\":5,\"size\":800,\"offset\":0}]}},\"fullscreen_immersive\":{\"preload_strategy\":{\"name\":\"adaptive\",\"low_buf\":5,\"high_buf\":20,\"tasks\":[{\"count\":5,\"size\":800,\"offset\":0}]}},\"story\":{\"preload_strategy\":{\"name\":\"adaptive\",\"low_buf\":5,\"high_buf\":20,\"tasks\":[{\"count\":5,\"size\":800,\"offset\":0}]}}}}";
     */
    /* JADX WARNING: Code restructure failed: missing block: B:283:0x0ba8, code lost:
        r10.LIZ(31001, r2);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:284:0x0bad, code lost:
        r10.LIZIZ().setIOManager(r10.LIZJ, r10.LIZLLL);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:285:0x0bc0, code lost:
        if (r10.LIZIZ().isIOManagerVersionMatch() == false) goto L_0x0bc2;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:286:0x0bc2, code lost:
        X.C18758La.LIZ("VCStrategy", "io manager interface not match, start fail.");
     */
    /* JADX WARNING: Code restructure failed: missing block: B:287:0x0bc9, code lost:
        r10.LIZIZ().setLogCallback(new X.AnonymousClass8T7());
        r2 = X.AnonymousClass8TB.LIZ;
        r1 = X.C20728Sp.LJ;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:289:0x0bdd, code lost:
        r13 = new X.AnonymousClass8T9("engine_default");
        r13.LIZ = "engine_default";
        r13.LIZIZ = 1;
        r13.LIZJ = 0;
        r13.LIZLLL = 1;
        r13.LJFF = "engine_default";
        r3 = X.C19788Oz.LIZ.LIZIZ();
        r9 = new java.util.HashMap();
        r9.put("scene_id", r13.LIZ);
        r9.put("auto_play", java.lang.Integer.valueOf(r13.LIZIZ));
        r9.put("mute", java.lang.Integer.valueOf(r13.LIZJ));
        r9.put("card_cnt", java.lang.Integer.valueOf(r13.LIZLLL));
        r9.put("json", r13.LJ);
        r3.createScene(new org.json.JSONObject(r9).toString());
        r10.LIZIZ().setStateSupplier(new X.C20688Sl(r10));
        r10.LIZIZ().start(r11);
        X.C19788Oz.LIZ.LIZIZ().switchToScene("engine_default");
     */
    /* JADX WARNING: Code restructure failed: missing block: B:292:0x0c59, code lost:
        r10.LIZIZ().setSettingsInfo(X.C20728Sp.LJ, r0.toString());
     */
    /* JADX WARNING: Code restructure failed: missing block: B:304:0x0c81, code lost:
        r0 = r10.LJIIIIZZ;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:305:0x0c83, code lost:
        r0.unlock();
        X.C19788Oz.LIZ.LIZ(X.C20748Sr.LIZ(), (java.util.Map) null);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:306:0x0c98, code lost:
        if (android.text.TextUtils.isEmpty(X.AnonymousClass8TE.LIZ.LIZ) == false) goto L_0x0c9a;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:307:0x0c9a, code lost:
        X.C19788Oz.LIZ.LIZIZ().businessEvent(31207, X.AnonymousClass8TE.LIZ.LIZ);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:309:0x0caf, code lost:
        if (r4.LJIIIZ.isRunning() != false) goto L_0x0cb1;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:311:0x0cbd, code lost:
        if (X.C19788Oz.LIZ.LIZIZ().isRunning() == false) goto L_0x0cbf;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:312:0x0cbf, code lost:
        X.C18758La.LIZIZ("DataLoaderHelper", "strategy center start failed, set mdl preload strategy back " + r4.LJJIFFI);
        r4.LJIIIZ.setIntValue(1030, r4.LJJIFFI);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:313:0x0cd9, code lost:
        X.AnonymousClass8TJ.LIZ.LIZJ();
        r4.LJIILL = r4.LJIIIZ.getLongValue(7218);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:314:0x0cee, code lost:
        if (r4.LJIILL == -1) goto L_0x0cf0;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:315:0x0cf0, code lost:
        r4.LJIILLIIL = true;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:317:0x0cfe, code lost:
        if (r4.LJIIIZ.getLongValue(9407) == 1) goto L_0x0d00;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:319:0x0d01, code lost:
        r4.LJIIIZ.setIntValue(1030, r4.LJJI);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:320:0x0d09, code lost:
        r0 = true;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:321:0x0d0b, code lost:
        r0 = false;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:322:0x0d0c, code lost:
        r4.LJIL = r0;
        X.C18758La.LIZ("DataLoaderHelper", "start: get mdlprotocolHandle: " + r4.LJIILL);
        r3 = r4.LJIIL;
        r2 = r4.LJIIIZ;
        r1 = r4.LJIJ;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:326:0x0d2f, code lost:
        if (r1 <= 0) goto L_0x0d31;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:328:0x0d32, code lost:
        r3.LIZIZ = new X.AnonymousClass8TA(r3, r2);
        r3.LIZ = new java.util.Timer();
        r11 = (long) r1;
        r3.LIZ.schedule(r3.LIZIZ, r11, r11);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:329:0x0d49, code lost:
        r4.LIZLLL = 0;
        X.C30668mv.LIZ().LIZ(r4.LJIIJJI);
        r4.LJIJI = new X.C20778Su(r4);
        r4.LJIJJ = new java.lang.ref.WeakReference(r4.LJIJI);
        X.C30668mv.LIZ().LIZ((java.lang.ref.WeakReference<X.C30708mz>) r4.LJIJJ);
        X.C18758La.LIZIZ("DataLoaderHelper", "DataLoader start.");
     */
    /* JADX WARNING: Code restructure failed: missing block: B:331:?, code lost:
        r0 = r4.LJIIZILJ;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:336:?, code lost:
        r1 = r8.LJJIIZ;
        r2 = X.AnonymousClass8XJ.LIZ;
        r2.LJIIZILJ.lock();
     */
    /* JADX WARNING: Code restructure failed: missing block: B:338:?, code lost:
        com.ss.mediakit.medialoader.AVMDLDataLoader.getInstance().setEventListener(r1);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:343:0x0d9a, code lost:
        r2.LJIIZILJ.unlock();
     */
    /* JADX WARNING: Code restructure failed: missing block: B:346:0x0db0, code lost:
        X.C20708Sn.LJIIL = r8.LJIILJJIL.getExperiment().PlayerAbABRAlgoExp();
        r5 = r8.LJIILJJIL.getExperiment().PlayerAbABRSpeedPredictAlgoExp();
        r9 = r8.LJIILJJIL.getExperiment().PlayerAbABRSpeedPredictTimeIntervalExp();
        r2 = r8.LJIILJJIL.getExperiment().getPreloaderExpModel().LJIIZILJ;
        r1 = r8.LJIILJJIL.getExperiment().getPreloaderExpModel().LJIJ;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:347:0x0dea, code lost:
        if (X.AnonymousClass8TD.LIZIZ == null) goto L_0x0dec;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:348:0x0dec, code lost:
        X.C20708Sn.LJIIJJI = r5;
        X.C20708Sn.LJIIIZ = r2;
        X.C20708Sn.LJIIJ = r1;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:349:0x0df4, code lost:
        if (X.C20708Sn.LJIILIIL == 0) goto L_0x0df6;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:350:0x0df6, code lost:
        X.C20708Sn.LJIILIIL = 1;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:351:0x0df8, code lost:
        if (r9 > 0) goto L_0x0dfa;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:352:0x0dfa, code lost:
        X.C20708Sn.LJII = r9;
        X.C20708Sn.LJIIIIZZ = r9;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:353:0x0dfe, code lost:
        X.C18758La.LIZIZ("TTVideoEngine", "[ABR] abrSpeedPredictUpdateIntervalMs:".concat(java.lang.String.valueOf(r9)));
     */
    /* JADX WARNING: Code restructure failed: missing block: B:354:0x0e0d, code lost:
        if (X.AnonymousClass8TD.LIZIZ == null) goto L_0x0e0f;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:355:0x0e0f, code lost:
        X.C18758La.LIZIZ("TTVideoEngine", X.0HH.LIZ(java.util.Locale.US, "[ABR] start speed predictor, type:%d，intervalMs:%d", new java.lang.Object[]{java.lang.Integer.valueOf(r5), java.lang.Integer.valueOf(r9)}));
        X.AnonymousClass8TD.LIZIZ = new com.bytedance.vcloud.networkpredictor.DefaultSpeedPredictor(r5);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:359:0x0e3b, code lost:
        throw new java.lang.Exception("start data loader fail");
     */
    /* JADX WARNING: Missing exception handler attribute for start block: B:106:0x0710 */
    /* JADX WARNING: Missing exception handler attribute for start block: B:248:0x0af7 */
    /* JADX WARNING: Removed duplicated region for block: B:100:0x06ed A[Catch:{ all -> 0x0e59, all -> 0x0e52, all -> 0x0d93, all -> 0x08bc, all -> 0x0e60 }] */
    /* JADX WARNING: Removed duplicated region for block: B:251:0x0afb A[Catch:{ all -> 0x0c7a, all -> 0x0c68, all -> 0x0c73, all -> 0x0e44 }] */
    /* JADX WARNING: Removed duplicated region for block: B:254:0x0b0e A[Catch:{ all -> 0x0c7a, all -> 0x0c68, all -> 0x0c73, all -> 0x0e44 }] */
    /* JADX WARNING: Removed duplicated region for block: B:335:0x0d82 A[SYNTHETIC, Splitter:B:335:0x0d82] */
    /* JADX WARNING: Removed duplicated region for block: B:33:0x00ec A[Catch:{ all -> 0x0e59, all -> 0x0e52, all -> 0x0d93, all -> 0x08bc, all -> 0x0e60 }] */
    /* JADX WARNING: Removed duplicated region for block: B:346:0x0db0 A[Catch:{ all -> 0x0e59, all -> 0x0e52, all -> 0x0d93, all -> 0x08bc, all -> 0x0e60 }] */
    /* JADX WARNING: Removed duplicated region for block: B:357:0x0e34 A[SYNTHETIC, Splitter:B:357:0x0e34] */
    /* JADX WARNING: Removed duplicated region for block: B:36:0x02ae A[Catch:{ all -> 0x0e59, all -> 0x0e52, all -> 0x0d93, all -> 0x08bc, all -> 0x0e60 }] */
    /* JADX WARNING: Removed duplicated region for block: B:39:0x02d4 A[Catch:{ all -> 0x0e59, all -> 0x0e52, all -> 0x0d93, all -> 0x08bc, all -> 0x0e60 }] */
    /* JADX WARNING: Removed duplicated region for block: B:42:0x02ed A[Catch:{ all -> 0x0e59, all -> 0x0e52, all -> 0x0d93, all -> 0x08bc, all -> 0x0e60 }] */
    /* JADX WARNING: Removed duplicated region for block: B:45:0x0308 A[Catch:{ all -> 0x0e59, all -> 0x0e52, all -> 0x0d93, all -> 0x08bc, all -> 0x0e60 }] */
    /* JADX WARNING: Removed duplicated region for block: B:48:0x0321 A[Catch:{ all -> 0x0e59, all -> 0x0e52, all -> 0x0d93, all -> 0x08bc, all -> 0x0e60 }] */
    /* JADX WARNING: Removed duplicated region for block: B:51:0x0336 A[Catch:{ all -> 0x0e59, all -> 0x0e52, all -> 0x0d93, all -> 0x08bc, all -> 0x0e60 }] */
    /* JADX WARNING: Removed duplicated region for block: B:54:0x034d A[Catch:{ all -> 0x0e59, all -> 0x0e52, all -> 0x0d93, all -> 0x08bc, all -> 0x0e60 }] */
    /* JADX WARNING: Removed duplicated region for block: B:57:0x0384 A[Catch:{ all -> 0x0e59, all -> 0x0e52, all -> 0x0d93, all -> 0x08bc, all -> 0x0e60 }] */
    /* JADX WARNING: Removed duplicated region for block: B:62:0x04c3 A[Catch:{ all -> 0x0e59, all -> 0x0e52, all -> 0x0d93, all -> 0x08bc, all -> 0x0e60 }] */
    /* JADX WARNING: Removed duplicated region for block: B:65:0x05b4 A[Catch:{ all -> 0x0e59, all -> 0x0e52, all -> 0x0d93, all -> 0x08bc, all -> 0x0e60 }] */
    /* JADX WARNING: Removed duplicated region for block: B:66:0x05b5 A[Catch:{ all -> 0x0e59, all -> 0x0e52, all -> 0x0d93, all -> 0x08bc, all -> 0x0e60 }] */
    /* JADX WARNING: Removed duplicated region for block: B:68:0x05bc A[Catch:{ all -> 0x0e59, all -> 0x0e52, all -> 0x0d93, all -> 0x08bc, all -> 0x0e60 }] */
    /* JADX WARNING: Removed duplicated region for block: B:71:0x0602 A[Catch:{ all -> 0x0e59, all -> 0x0e52, all -> 0x0d93, all -> 0x08bc, all -> 0x0e60 }] */
    /* JADX WARNING: Removed duplicated region for block: B:72:0x0603 A[Catch:{ all -> 0x0e59, all -> 0x0e52, all -> 0x0d93, all -> 0x08bc, all -> 0x0e60 }] */
    /* JADX WARNING: Removed duplicated region for block: B:84:0x0652 A[Catch:{ all -> 0x0e59, all -> 0x0e52, all -> 0x0d93, all -> 0x08bc, all -> 0x0e60 }] */
    /* JADX WARNING: Removed duplicated region for block: B:99:0x06ec A[Catch:{ all -> 0x0e59, all -> 0x0e52, all -> 0x0d93, all -> 0x08bc, all -> 0x0e60 }] */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public boolean checkInit() {
        /*
            r16 = this;
            r8 = r16
            java.lang.String r12 = "VCStrategy"
            java.lang.String r11 = "DATALOADER_KEY_INT_ENABLE_EARLY_DATA"
            java.lang.String r10 = "DATALOADER_KEY_STR_VDP_ABGROUP_ID"
            java.lang.String r5 = "DATALOADER_KEY_STR_VDP_ABTEST_ID"
            java.lang.String r7 = "TTVideoEngine"
            boolean r0 = r8.LJIIZILJ
            r9 = 0
            if (r0 != 0) goto L_0x0015
            boolean r0 = r8.LJIJ
            if (r0 == 0) goto L_0x0017
        L_0x0015:
            r0 = 0
            return r0
        L_0x0017:
            r6 = 1
            r8.LJIJ = r6
            java.lang.String r2 = r16.LJ()
            r4 = 0
            if (r2 != 0) goto L_0x002d
            r0 = r4
        L_0x0022:
            r8.LJIIIZ = r0
            java.lang.String r0 = r8.LJIIIZ
            boolean r0 = android.text.TextUtils.isEmpty(r0)
            if (r0 != 0) goto L_0x0e77
            goto L_0x0044
        L_0x002d:
            java.io.File r1 = new java.io.File
            java.lang.String r0 = LJIILLIIL
            r1.<init>(r2, r0)
            boolean r0 = r1.exists()
            if (r0 != 0) goto L_0x003d
            r1.mkdirs()
        L_0x003d:
            r8.LJIL = r1
            java.lang.String r0 = r1.getAbsolutePath()
            goto L_0x0022
        L_0x0044:
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.PlayerAbEnableDebugLogExp()     // Catch:{ all -> 0x0e60 }
            com.ss.mediakit.medialoader.AVMDLLog.turnOn(r6, r0)     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            r0.getVideoCachePlugin()     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r1 = r0.VideoCacheLoaderTypeExperiment()     // Catch:{ all -> 0x0e60 }
            LIZIZ()     // Catch:{ all -> 0x0e60 }
            if (r1 <= 0) goto L_0x0069
            r0 = 5
            X.C20708Sn.LJ((int) r0, (int) r1)     // Catch:{ all -> 0x0e60 }
        L_0x0069:
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            X.8RP r0 = r0.getPlayerPgoPlugin()     // Catch:{ all -> 0x0e60 }
            if (r0 == 0) goto L_0x0076
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            r0.getPlayerPgoPlugin()     // Catch:{ all -> 0x0e60 }
        L_0x0076:
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            java.lang.Boolean r0 = r0.PlayerPreloadLazyGetUrlsExperiment()     // Catch:{ all -> 0x0e60 }
            boolean r0 = r0.booleanValue()     // Catch:{ all -> 0x0e60 }
            if (r0 != 0) goto L_0x0093
            com.ss.android.ugc.playerkit.simapicommon.IAppConfig r0 = X.AnonymousClass7dQ.LIZ()     // Catch:{ all -> 0x0e60 }
            boolean r0 = r0.isDebug()     // Catch:{ all -> 0x0e60 }
            if (r0 == 0) goto L_0x0091
            goto L_0x0093
        L_0x0091:
            r0 = 0
            goto L_0x0094
        L_0x0093:
            r0 = 1
        L_0x0094:
            r8.LJIJJ = r0     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r3 = r0.VideoSpeedQueueSizeExperiment()     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            X.8SE r0 = r0.getSpeedManager()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.LIZ()     // Catch:{ all -> 0x0e60 }
            if (r0 == r3) goto L_0x00c0
            if (r3 <= 0) goto L_0x00c0
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            X.8SE r0 = r0.getSpeedManager()     // Catch:{ all -> 0x0e60 }
            r0.LIZ(r3)     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            X.8SE r0 = r0.getSpeedManager()     // Catch:{ all -> 0x0e60 }
            r0.LIZIZ(r3)     // Catch:{ all -> 0x0e60 }
        L_0x00c0:
            r1 = 30
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.PlayerDataEncryptExperiment()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 16
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.VideoCacheP2pLevelExperiment()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r0 = 100
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r2 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r2 = r2.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r2 = r2.VideoCacheMaxCacheSizeExperiment()     // Catch:{ all -> 0x0e60 }
            if (r2 <= 0) goto L_0x00ed
            long r0 = (long) r2     // Catch:{ all -> 0x0e60 }
        L_0x00ed:
            int r2 = (int) r0     // Catch:{ all -> 0x0e60 }
            r0 = 1048576(0x100000, float:1.469368E-39)
            int r2 = r2 * r0
            X.C20708Sn.LJ((int) r6, (int) r2)     // Catch:{ all -> 0x0e60 }
            r1 = 1005(0x3ed, float:1.408E-42)
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.DisableVideocacheLocalServerExperiment()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 1006(0x3ee, float:1.41E-42)
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.RingBufferSizeMdlExperiment()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r0 = 15
            X.C20708Sn.LJ((int) r0, (int) r9)     // Catch:{ all -> 0x0e60 }
            r1 = 93
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.PlayerAbMedialoaderEnableBenchmarkExp()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 94
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.PlayerAbMedialoaderEnableSpeedCoefficientExp()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 3
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.EnginePreloaderOpenTimeoutExperiment()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 1011(0x3f3, float:1.417E-42)
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.EnginePreloaderEnableNetworkChangedListenExperiment()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.EnginePreloaderRWTimeoutExperiment()     // Catch:{ all -> 0x0e60 }
            r2 = 2
            X.C20708Sn.LJ((int) r2, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 11
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.EnginePreloaderConcurrentNumExperiment()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 80
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.EnginePreloaderStackOrQueueExperiment()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r1 = r0.EnginePreloaderPreloadStrategyExperiment()     // Catch:{ all -> 0x0e60 }
            r0 = 12
            X.C20708Sn.LJ((int) r0, (int) r1)     // Catch:{ all -> 0x0e60 }
            r1 = 13
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.PlayerAbChecksumLevelExp()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 14
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.PlayerAbTestSpeedVersionExp()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 90
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.PlayerAbMainDnsTypeExp()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 91
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.PlayerAbBackupDnsTypeExp()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 92
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.PlayerAbMainDnsDelayTimeExp()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 1102(0x44e, float:1.544E-42)
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.PlayerAbMedialoaderAccessCheckLevelExp()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 1101(0x44d, float:1.543E-42)
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.PlayerAbMedialoaderEnableTaskReuseExp()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 1103(0x44f, float:1.546E-42)
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.PlayerAbMedialoaderTaskReuseParallelNextThresholdExp()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 22
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.enginePreloaderEnableTTnetLoader()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 105(0x69, float:1.47E-43)
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.PlayerAbMedialoaderEnableDnsRefreshExp()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 103(0x67, float:1.44E-43)
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.PlayerAbMedialoaderEnableDnsParallelExp()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 106(0x6a, float:1.49E-43)
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.PlayerAbMedialoaderEnableDnsLogExp()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 108(0x6c, float:1.51E-43)
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            java.lang.String r0 = r0.PlayerAbMedialoaderGoogleDnsHostExp()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LIZIZ((int) r1, (java.lang.String) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 107(0x6b, float:1.5E-43)
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            java.lang.String r0 = r0.PlayerAbMedialoaderOwnDnsHostExp()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LIZIZ((int) r1, (java.lang.String) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 4
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            X.7Wk r0 = r0.getPreloaderExpModel()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.LJI     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 1147(0x47b, float:1.607E-42)
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            X.7Wk r0 = r0.getPreloaderExpModel()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.LJIIJ     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 1146(0x47a, float:1.606E-42)
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            X.7Wk r0 = r0.getPreloaderExpModel()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.LJIIJJI     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 122(0x7a, float:1.71E-43)
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            java.lang.String r0 = r0.getPlayerTraceHost()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LIZIZ((int) r1, (java.lang.String) r0)     // Catch:{ all -> 0x0e60 }
            X.Crj r0 = X.C17348Fp.LJJIJLIJ     // Catch:{ all -> 0x0e60 }
            java.lang.Object r0 = r0.getValue()     // Catch:{ all -> 0x0e60 }
            java.lang.Boolean r0 = (java.lang.Boolean) r0     // Catch:{ all -> 0x0e60 }
            boolean r0 = r0.booleanValue()     // Catch:{ all -> 0x0e60 }
            if (r0 == 0) goto L_0x02b3
            r0 = 33
            X.C20708Sn.LJ((int) r0, (int) r6)     // Catch:{ all -> 0x0e60 }
        L_0x02b3:
            r1 = 1150(0x47e, float:1.611E-42)
            X.Crj r0 = X.C17348Fp.LJJII     // Catch:{ all -> 0x0e60 }
            java.lang.Object r0 = r0.getValue()     // Catch:{ all -> 0x0e60 }
            java.lang.Number r0 = (java.lang.Number) r0     // Catch:{ all -> 0x0e60 }
            int r0 = r0.intValue()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            X.Crj r0 = X.C17348Fp.LJJIII     // Catch:{ all -> 0x0e60 }
            java.lang.Object r0 = r0.getValue()     // Catch:{ all -> 0x0e60 }
            java.lang.Boolean r0 = (java.lang.Boolean) r0     // Catch:{ all -> 0x0e60 }
            boolean r0 = r0.booleanValue()     // Catch:{ all -> 0x0e60 }
            r1 = 31001(0x7919, float:4.3442E-41)
            if (r0 == 0) goto L_0x02df
            X.Crj r0 = X.C17348Fp.LJJIIZI     // Catch:{ all -> 0x0e60 }
            java.lang.Object r0 = r0.getValue()     // Catch:{ all -> 0x0e60 }
            java.lang.String r0 = (java.lang.String) r0     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LIZJ((int) r1, (java.lang.String) r0)     // Catch:{ all -> 0x0e60 }
        L_0x02df:
            X.Crj r0 = X.C17348Fp.LJJIIJ     // Catch:{ all -> 0x0e60 }
            java.lang.Object r0 = r0.getValue()     // Catch:{ all -> 0x0e60 }
            java.lang.Boolean r0 = (java.lang.Boolean) r0     // Catch:{ all -> 0x0e60 }
            boolean r0 = r0.booleanValue()     // Catch:{ all -> 0x0e60 }
            if (r0 == 0) goto L_0x02fa
            r13 = 31004(0x791c, float:4.3446E-41)
            X.Crj r0 = X.C17348Fp.LJJIJ     // Catch:{ all -> 0x0e60 }
            java.lang.Object r0 = r0.getValue()     // Catch:{ all -> 0x0e60 }
            java.lang.String r0 = (java.lang.String) r0     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LIZJ((int) r13, (java.lang.String) r0)     // Catch:{ all -> 0x0e60 }
        L_0x02fa:
            X.Crj r0 = X.C17348Fp.LJJIIJZLJL     // Catch:{ all -> 0x0e60 }
            java.lang.Object r0 = r0.getValue()     // Catch:{ all -> 0x0e60 }
            java.lang.Boolean r0 = (java.lang.Boolean) r0     // Catch:{ all -> 0x0e60 }
            boolean r0 = r0.booleanValue()     // Catch:{ all -> 0x0e60 }
            if (r0 == 0) goto L_0x0315
            r13 = 31011(0x7923, float:4.3456E-41)
            X.Crj r0 = X.C17348Fp.LJJIIZ     // Catch:{ all -> 0x0e60 }
            java.lang.Object r0 = r0.getValue()     // Catch:{ all -> 0x0e60 }
            java.lang.String r0 = (java.lang.String) r0     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LIZJ((int) r13, (java.lang.String) r0)     // Catch:{ all -> 0x0e60 }
        L_0x0315:
            X.8Fp r0 = X.C17348Fp.LJJIL     // Catch:{ all -> 0x0e60 }
            java.lang.String r0 = r0.LJJJJL()     // Catch:{ all -> 0x0e60 }
            boolean r0 = android.text.TextUtils.isEmpty(r0)     // Catch:{ all -> 0x0e60 }
            if (r0 != 0) goto L_0x032a
            X.8Fp r0 = X.C17348Fp.LJJIL     // Catch:{ all -> 0x0e60 }
            java.lang.String r0 = r0.LJJJJL()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LIZJ((int) r1, (java.lang.String) r0)     // Catch:{ all -> 0x0e60 }
        L_0x032a:
            X.8Fp r0 = X.C17348Fp.LJJIL     // Catch:{ all -> 0x0e60 }
            java.lang.String r0 = r0.LJJJJJ()     // Catch:{ all -> 0x0e60 }
            boolean r0 = android.text.TextUtils.isEmpty(r0)     // Catch:{ all -> 0x0e60 }
            if (r0 != 0) goto L_0x0341
            r1 = 31005(0x791d, float:4.3447E-41)
            X.8Fp r0 = X.C17348Fp.LJJIL     // Catch:{ all -> 0x0e60 }
            java.lang.String r0 = r0.LJJJJJ()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LIZJ((int) r1, (java.lang.String) r0)     // Catch:{ all -> 0x0e60 }
        L_0x0341:
            X.8Fp r0 = X.C17348Fp.LJJIL     // Catch:{ all -> 0x0e60 }
            java.lang.String r0 = r0.LJJJJJL()     // Catch:{ all -> 0x0e60 }
            boolean r0 = android.text.TextUtils.isEmpty(r0)     // Catch:{ all -> 0x0e60 }
            if (r0 != 0) goto L_0x0358
            r1 = 31010(0x7922, float:4.3454E-41)
            X.8Fp r0 = X.C17348Fp.LJJIL     // Catch:{ all -> 0x0e60 }
            java.lang.String r0 = r0.LJJJJJL()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LIZJ((int) r1, (java.lang.String) r0)     // Catch:{ all -> 0x0e60 }
        L_0x0358:
            r1 = 1009(0x3f1, float:1.414E-42)
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.PlayerAbMedialoaderEnableFileRingBuffer()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 1010(0x3f2, float:1.415E-42)
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.PlayerAbMedialoaderEnableFileExtendBuffer()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r1 = r0.PlayerAbMedialoaderEnableBackupDnsIPExp()     // Catch:{ all -> 0x0e60 }
            r0 = 104(0x68, float:1.46E-43)
            if (r1 != r6) goto L_0x05b5
            X.C20708Sn.LJ((int) r0, (int) r6)     // Catch:{ all -> 0x0e60 }
            java.util.Map<java.lang.String, java.lang.String> r0 = r8.LJJIII     // Catch:{ all -> 0x0e60 }
            if (r0 == 0) goto L_0x038e
            r8.LIZ((java.util.Map<java.lang.String, java.lang.String>) r0)     // Catch:{ all -> 0x0e60 }
        L_0x038e:
            r1 = 1001(0x3e9, float:1.403E-42)
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.PlayerAbMedialoaderEnablePreconneExp()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 1002(0x3ea, float:1.404E-42)
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.PlayerAbMedialoaderPreconnectNumExp()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 101(0x65, float:1.42E-43)
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.PlayerAbMedialoaderEnableTLSSessionReuseExp()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 100
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.PlayerAbMedialoaderTLSVersionExp()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 1111(0x457, float:1.557E-42)
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.PlayerAbMediaLoaderCheckPreloadLevelExp()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 1118(0x45e, float:1.567E-42)
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.PlayerAbMedialoaderLazyBufferPoolEnableExp()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 95
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            X.M12.LIZ(r0)     // Catch:{ all -> 0x0e60 }
            int r0 = r0.EnableP2pStragetyControlExperiment()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 99
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            X.M12.LIZ(r0)     // Catch:{ all -> 0x0e60 }
            int r0 = r0.P2pStragetyExpiredTimeExperiment()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 96
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            X.M12.LIZ(r0)     // Catch:{ all -> 0x0e60 }
            int r0 = r0.P2pStragetyMinPlayNumberExperiment()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 98
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            X.M12.LIZ(r0)     // Catch:{ all -> 0x0e60 }
            int r0 = r0.P2pStragetyMaxBufferingTimeExperiment()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 97
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            X.M12.LIZ(r0)     // Catch:{ all -> 0x0e60 }
            int r0 = r0.P2pStragetyMaxLeaveWaitTimeExperiment()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 109(0x6d, float:1.53E-43)
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            X.M12.LIZ(r0)     // Catch:{ all -> 0x0e60 }
            int r0 = r0.P2pStragetyMinNetSpeedExperiment()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 1110(0x456, float:1.555E-42)
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            X.M12.LIZ(r0)     // Catch:{ all -> 0x0e60 }
            int r0 = r0.P2pStragetyXyLibValueExperiment()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 1108(0x454, float:1.553E-42)
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            X.M12.LIZ(r0)     // Catch:{ all -> 0x0e60 }
            int r0 = r0.P2pStragetyEnableSyndnsExperiment()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            java.lang.String r0 = r0.PlayerAbMedialoaderOwnDnsHostExp()     // Catch:{ all -> 0x0e60 }
            X.JpE.LIZ(r0)     // Catch:{ all -> 0x0e60 }
            r1 = 1114(0x45a, float:1.561E-42)
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.PlayerAbMedialoaderHeaderDataMemCache()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 1115(0x45b, float:1.562E-42)
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.PlayerAbMedialoaderIpv6Num()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 1116(0x45c, float:1.564E-42)
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.PlayerAbMedialoaderIpv4Num()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            android.app.Application r0 = X.AnonymousClass7dQ.LIZ     // Catch:{ all -> 0x0e60 }
            com.ss.mediakit.vcnlib.NetUtils.setApplicationContext(r0)     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.isEnginePreloaderForceUseOKHttp()     // Catch:{ all -> 0x0e60 }
            if (r0 != r6) goto L_0x04c8
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            r0.getNetClient()     // Catch:{ all -> 0x0e60 }
        L_0x04c8:
            r1 = 1119(0x45f, float:1.568E-42)
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.EnginePreloaderTlsSessionTimeoutExperiment()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r0 = 1112(0x458, float:1.558E-42)
            X.C20708Sn.LJ((int) r0, (int) r2)     // Catch:{ all -> 0x0e60 }
            r1 = 31
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.isEnginePreloaderForceUseOKHttp()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 1127(0x467, float:1.579E-42)
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.PlayerMdlLogEnableExperiment()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 1128(0x468, float:1.58E-42)
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.EnginePreloaderNetSchedulerEnableExperiment()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 1130(0x46a, float:1.583E-42)
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.EnginePreloaderNetSchedulerBlockErrorCountExperiment()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 1131(0x46b, float:1.585E-42)
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.EnginePreloaderNetSchedulerBlockDurationExperiment()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 1129(0x469, float:1.582E-42)
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.EnginePreloaderNetSchedulerBlockAllNetErrorExperiment()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 21
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.EnableDownloaderLogExpErrorExperiment()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 1137(0x471, float:1.593E-42)
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            X.7Wk r0 = r0.getPreloaderExpModel()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.LIZ     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 1138(0x472, float:1.595E-42)
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            X.7Wk r0 = r0.getPreloaderExpModel()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.LIZIZ     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 1139(0x473, float:1.596E-42)
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            X.7Wk r0 = r0.getPreloaderExpModel()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.LIZJ     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 1141(0x475, float:1.599E-42)
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            X.7Wk r0 = r0.getPreloaderExpModel()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.LIZLLL     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 1140(0x474, float:1.597E-42)
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            X.7Wk r0 = r0.getPreloaderExpModel()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.LJ     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r13 = 1142(0x476, float:1.6E-42)
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            X.7Wk r0 = r0.getPreloaderExpModel()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.LJFF     // Catch:{ all -> 0x0e60 }
            long r0 = (long) r0     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LIZ((int) r13, (long) r0)     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            boolean r0 = r0.forbidBypassCookie()     // Catch:{ all -> 0x0e60 }
            if (r0 == 0) goto L_0x05bc
            goto L_0x05ba
        L_0x05b5:
            X.C20708Sn.LJ((int) r0, (int) r9)     // Catch:{ all -> 0x0e60 }
            goto L_0x038e
        L_0x05ba:
            r1 = 1
            goto L_0x05bd
        L_0x05bc:
            r1 = 0
        L_0x05bd:
            r0 = 1117(0x45d, float:1.565E-42)
            X.C20708Sn.LJ((int) r0, (int) r1)     // Catch:{ all -> 0x0e60 }
            r1 = 1145(0x479, float:1.604E-42)
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            X.7Wk r0 = r0.getPreloaderExpModel()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.LJII     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r13 = 1144(0x478, float:1.603E-42)
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            X.7Wk r0 = r0.getPreloaderExpModel()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.LJIIIIZZ     // Catch:{ all -> 0x0e60 }
            long r0 = (long) r0     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LIZ((int) r13, (long) r0)     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            X.7Wk r0 = r0.getPreloaderExpModel()     // Catch:{ all -> 0x0e60 }
            boolean r14 = r0.LJIIIZ     // Catch:{ all -> 0x0e60 }
            android.app.Application r15 = X.AnonymousClass7dQ.LIZ     // Catch:{ all -> 0x0e60 }
            java.lang.String r1 = "setReportLogByEngine "
            java.lang.String r0 = java.lang.String.valueOf(r14)     // Catch:{ all -> 0x0e60 }
            java.lang.String r0 = r1.concat(r0)     // Catch:{ all -> 0x0e60 }
            X.C18758La.LIZ(r7, r0)     // Catch:{ all -> 0x0e60 }
            if (r15 != 0) goto L_0x0603
            goto L_0x062e
        L_0x0603:
            X.8XD r13 = X.AnonymousClass8TC.LIZ     // Catch:{ all -> 0x0e60 }
            android.content.Context r1 = r15.getApplicationContext()     // Catch:{ all -> 0x0e60 }
            boolean r0 = X.AnonymousClass7lW.LIZJ     // Catch:{ all -> 0x0e60 }
            if (r0 != 0) goto L_0x0610
        L_0x060d:
            r13.LJ = r1     // Catch:{ all -> 0x0e60 }
            goto L_0x0616
        L_0x0610:
            if (r1 == 0) goto L_0x0613
            goto L_0x060d
        L_0x0613:
            android.app.Application r1 = X.AnonymousClass7lW.LIZ     // Catch:{ all -> 0x0e60 }
            goto L_0x060d
        L_0x0616:
            if (r14 == 0) goto L_0x0623
            X.JqP r0 = X.AnonymousClass8XJ.LIZ     // Catch:{ all -> 0x0e60 }
            r0.LIZ(r13)     // Catch:{ all -> 0x0e60 }
            X.8Mq r0 = X.C19178Mq.instance     // Catch:{ all -> 0x0e60 }
            r0.setEngineUploader(r13)     // Catch:{ all -> 0x0e60 }
            goto L_0x0633
        L_0x0623:
            X.JqP r0 = X.AnonymousClass8XJ.LIZ     // Catch:{ all -> 0x0e60 }
            r0.LIZ(r4)     // Catch:{ all -> 0x0e60 }
            X.8Mq r0 = X.C19178Mq.instance     // Catch:{ all -> 0x0e60 }
            r0.setEngineUploader(r4)     // Catch:{ all -> 0x0e60 }
            goto L_0x0633
        L_0x062e:
            java.lang.String r0 = "setReportLogByEngine context is null"
            X.C18758La.LJ(r7, r0)     // Catch:{ all -> 0x0e60 }
        L_0x0633:
            r1 = 1148(0x47c, float:1.609E-42)
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            X.7Wk r0 = r0.getPreloaderExpModel()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.LJIIL     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            X.7Wk r0 = r0.getPreloaderExpModel()     // Catch:{ all -> 0x0e60 }
            java.util.HashMap<java.lang.String, java.lang.Object> r4 = r0.LJIILIIL     // Catch:{ all -> 0x0e60 }
            if (r4 == 0) goto L_0x06a7
            java.lang.Object r0 = r4.get(r5)     // Catch:{ all -> 0x0e60 }
            boolean r0 = r0 instanceof java.lang.String     // Catch:{ all -> 0x0e60 }
            if (r0 == 0) goto L_0x0671
            java.lang.Object r0 = r4.get(r5)     // Catch:{ all -> 0x0e60 }
            java.lang.String r0 = (java.lang.String) r0     // Catch:{ all -> 0x0e60 }
            boolean r0 = android.text.TextUtils.isEmpty(r0)     // Catch:{ all -> 0x0e60 }
            if (r0 != 0) goto L_0x0671
            r1 = 1106(0x452, float:1.55E-42)
            java.lang.Object r0 = r4.get(r5)     // Catch:{ all -> 0x0e60 }
            java.lang.String r0 = (java.lang.String) r0     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LIZIZ((int) r1, (java.lang.String) r0)     // Catch:{ all -> 0x0e60 }
        L_0x0671:
            java.lang.Object r0 = r4.get(r10)     // Catch:{ all -> 0x0e60 }
            boolean r0 = r0 instanceof java.lang.String     // Catch:{ all -> 0x0e60 }
            if (r0 == 0) goto L_0x0690
            java.lang.Object r0 = r4.get(r10)     // Catch:{ all -> 0x0e60 }
            java.lang.String r0 = (java.lang.String) r0     // Catch:{ all -> 0x0e60 }
            boolean r0 = android.text.TextUtils.isEmpty(r0)     // Catch:{ all -> 0x0e60 }
            if (r0 != 0) goto L_0x0690
            r1 = 1107(0x453, float:1.551E-42)
            java.lang.Object r0 = r4.get(r10)     // Catch:{ all -> 0x0e60 }
            java.lang.String r0 = (java.lang.String) r0     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LIZIZ((int) r1, (java.lang.String) r0)     // Catch:{ all -> 0x0e60 }
        L_0x0690:
            java.lang.Object r0 = r4.get(r11)     // Catch:{ all -> 0x0e60 }
            boolean r0 = r0 instanceof java.lang.Integer     // Catch:{ all -> 0x0e60 }
            if (r0 == 0) goto L_0x06a7
            r1 = 1160(0x488, float:1.626E-42)
            java.lang.Object r0 = r4.get(r11)     // Catch:{ all -> 0x0e60 }
            java.lang.Integer r0 = (java.lang.Integer) r0     // Catch:{ all -> 0x0e60 }
            int r0 = r0.intValue()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
        L_0x06a7:
            r4 = 1152(0x480, float:1.614E-42)
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            X.7Wk r0 = r0.getPreloaderExpModel()     // Catch:{ all -> 0x0e60 }
            long r0 = r0.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LIZ((int) r4, (long) r0)     // Catch:{ all -> 0x0e60 }
            r4 = 1153(0x481, float:1.616E-42)
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            X.7Wk r0 = r0.getPreloaderExpModel()     // Catch:{ all -> 0x0e60 }
            long r0 = r0.LJIILL     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LIZ((int) r4, (long) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 9010(0x2332, float:1.2626E-41)
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            X.7Wk r0 = r0.getPreloaderExpModel()     // Catch:{ all -> 0x0e60 }
            java.lang.String r0 = r0.LJIILLIIL     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LIZIZ((int) r1, (java.lang.String) r0)     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            X.7Wk r0 = r0.getPreloaderExpModel()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.LJIJI     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJIILIIL = r0     // Catch:{ all -> 0x0e60 }
            r4 = 112(0x70, float:1.57E-43)
            if (r0 != r2) goto L_0x06ed
            goto L_0x06f3
        L_0x06ed:
            X.JqP r0 = X.AnonymousClass8XJ.LIZ     // Catch:{ all -> 0x0e60 }
            X.JqP.LIZ(r0, r4, r9)     // Catch:{ all -> 0x0e60 }
            goto L_0x06fa
        L_0x06f3:
            X.JqP r1 = X.AnonymousClass8XJ.LIZ     // Catch:{ all -> 0x0e60 }
            r0 = 500(0x1f4, float:7.0E-43)
            X.JqP.LIZ(r1, r4, r0)     // Catch:{ all -> 0x0e60 }
        L_0x06fa:
            X.8TQ r1 = X.AnonymousClass8TJ.LIZ     // Catch:{ all -> 0x0e60 }
            X.8T2 r0 = new X.8T2     // Catch:{ all -> 0x0e60 }
            r0.<init>(r8)     // Catch:{ all -> 0x0e60 }
            r1.LIZ((X.AnonymousClass8TP) r0)     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0710 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0710 }
            com.ss.android.ugc.aweme.video.preload.model.EnginePreloaderConfig r2 = r0.EnginePreloaderConfigExperiment()     // Catch:{ all -> 0x0710 }
            if (r2 != 0) goto L_0x0715
        L_0x0710:
            com.ss.android.ugc.aweme.video.preload.model.EnginePreloaderConfig r2 = new com.ss.android.ugc.aweme.video.preload.model.EnginePreloaderConfig     // Catch:{ all -> 0x0e60 }
            r2.<init>()     // Catch:{ all -> 0x0e60 }
        L_0x0715:
            r1 = 7
            int r0 = r2.enableExternDns     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 8
            int r0 = r2.enableSocketReuse     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 9
            int r0 = r2.enableSocketIdleTimeout     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            java.lang.String r0 = r8.LJIIIZ     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LIZIZ((int) r9, (java.lang.String) r0)     // Catch:{ all -> 0x0e60 }
            r1 = 1113(0x459, float:1.56E-42)
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.PlayerAbDashPreloadAudioFirstExp()     // Catch:{ all -> 0x0e60 }
            if (r0 != r6) goto L_0x073e
            r0 = 1
            goto L_0x073f
        L_0x073e:
            r0 = 0
        L_0x073f:
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            boolean r15 = r0.EnableDetailNotification()     // Catch:{ all -> 0x0e60 }
            if (r15 == 0) goto L_0x0750
            r0 = 1
            goto L_0x0751
        L_0x0750:
            r0 = 0
        L_0x0751:
            r1 = 200(0xc8, float:2.8E-43)
            X.C20708Sn.LJ((int) r1, (int) r0)     // Catch:{ all -> 0x0e60 }
            r2 = 1158(0x486, float:1.623E-42)
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.EngineEnableMaxFileMemCacheSizeExp()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r2, (int) r0)     // Catch:{ all -> 0x0e60 }
            r2 = 1159(0x487, float:1.624E-42)
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.EngineEnableMaxFileMemCacheNumExp()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJ((int) r2, (int) r0)     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.playerkit.simapicommon.IAppConfig r0 = X.AnonymousClass7dQ.LIZ()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.getAppID()     // Catch:{ all -> 0x0e60 }
            java.lang.String r0 = java.lang.String.valueOf(r0)     // Catch:{ all -> 0x0e60 }
            r4 = 1506(0x5e2, float:2.11E-42)
            X.C20708Sn.LIZIZ((int) r4, (java.lang.String) r0)     // Catch:{ all -> 0x0e60 }
            android.app.Application r0 = X.AnonymousClass7dQ.LIZ     // Catch:{ all -> 0x0e60 }
            com.ss.mediakit.medialoader.AVMDLDataLoader.initApplicationContext(r0)     // Catch:{ all -> 0x0e60 }
            r16.LIZLLL()     // Catch:{ all -> 0x0e60 }
            X.8Mw r5 = new X.8Mw     // Catch:{ all -> 0x0e60 }
            r5.<init>(r8)     // Catch:{ all -> 0x0e60 }
            X.JqP r2 = X.AnonymousClass8XJ.LIZ     // Catch:{ all -> 0x0e60 }
            java.util.concurrent.locks.ReentrantLock r0 = r2.LJIIZILJ     // Catch:{ all -> 0x0e60 }
            r0.lock()     // Catch:{ all -> 0x0e60 }
            r2.LIZIZ = r5     // Catch:{ all -> 0x0e59 }
            java.util.concurrent.locks.ReentrantLock r0 = r2.LJIIZILJ     // Catch:{ all -> 0x0e60 }
            r0.unlock()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LIZ = r5     // Catch:{ all -> 0x0e60 }
            X.Jos r0 = new X.Jos     // Catch:{ all -> 0x0e60 }
            r0.<init>()     // Catch:{ all -> 0x0e60 }
            com.ss.mediakit.fetcher.AVMDLURLFetcherBridge.setFetcherMaker(r0)     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            boolean r0 = r0.EnableTTnetClientInject()     // Catch:{ all -> 0x0e60 }
            if (r0 == 0) goto L_0x07c3
            X.8Rv r2 = new X.8Rv     // Catch:{ all -> 0x0e60 }
            X.8Ru r0 = new X.8Ru     // Catch:{ all -> 0x0e60 }
            r0.<init>(r8)     // Catch:{ all -> 0x0e60 }
            r2.<init>(r0)     // Catch:{ all -> 0x0e60 }
            com.ss.mediakit.net.AVMDLDNSParser.setClientMaker(r2)     // Catch:{ all -> 0x0e60 }
        L_0x07c3:
            java.util.HashMap r5 = new java.util.HashMap     // Catch:{ all -> 0x0e60 }
            r5.<init>()     // Catch:{ all -> 0x0e60 }
            java.lang.String r2 = "deviceid"
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            X.8N2 r0 = r0.getAppLog()     // Catch:{ all -> 0x0e60 }
            java.lang.String r0 = r0.LIZ()     // Catch:{ all -> 0x0e60 }
            r5.put(r2, r0)     // Catch:{ all -> 0x0e60 }
            java.lang.String r2 = "appname"
            com.ss.android.ugc.playerkit.simapicommon.IAppConfig r0 = X.AnonymousClass7dQ.LIZ()     // Catch:{ all -> 0x0e60 }
            java.lang.String r0 = r0.getAppName()     // Catch:{ all -> 0x0e60 }
            r5.put(r2, r0)     // Catch:{ all -> 0x0e60 }
            java.lang.String r2 = "appid"
            com.ss.android.ugc.playerkit.simapicommon.IAppConfig r0 = X.AnonymousClass7dQ.LIZ()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.getAppID()     // Catch:{ all -> 0x0e60 }
            java.lang.Integer r0 = java.lang.Integer.valueOf(r0)     // Catch:{ all -> 0x0e60 }
            r5.put(r2, r0)     // Catch:{ all -> 0x0e60 }
            java.lang.String r2 = "appversion"
            com.ss.android.ugc.playerkit.simapicommon.IAppConfig r0 = X.AnonymousClass7dQ.LIZ()     // Catch:{ all -> 0x0e60 }
            java.lang.String r0 = r0.getAppVersion()     // Catch:{ all -> 0x0e60 }
            r5.put(r2, r0)     // Catch:{ all -> 0x0e60 }
            java.lang.String r2 = "screen_width"
            android.app.Application r10 = X.AnonymousClass7dQ.LIZ     // Catch:{ all -> 0x0e60 }
            int r0 = X.2Ht.LIZ     // Catch:{ all -> 0x0e60 }
            java.lang.String r11 = "window"
            if (r0 != 0) goto L_0x0840
            java.lang.Object r0 = X.2Ht.LIZ(r10, r11)     // Catch:{ all -> 0x0e60 }
            android.view.WindowManager r0 = (android.view.WindowManager) r0     // Catch:{ all -> 0x0e60 }
            if (r0 == 0) goto L_0x0828
            android.graphics.Point r13 = new android.graphics.Point     // Catch:{ all -> 0x0e60 }
            r13.<init>()     // Catch:{ all -> 0x0e60 }
            android.view.Display r0 = r0.getDefaultDisplay()     // Catch:{ all -> 0x0e60 }
            r0.getSize(r13)     // Catch:{ all -> 0x0e60 }
            int r0 = r13.x     // Catch:{ all -> 0x0e60 }
            X.2Ht.LIZ = r0     // Catch:{ all -> 0x0e60 }
            int r0 = r13.y     // Catch:{ all -> 0x0e60 }
            X.2Ht.LIZIZ = r0     // Catch:{ all -> 0x0e60 }
        L_0x0828:
            int r0 = X.2Ht.LIZ     // Catch:{ all -> 0x0e60 }
            if (r0 == 0) goto L_0x0830
            int r0 = X.2Ht.LIZIZ     // Catch:{ all -> 0x0e60 }
            if (r0 != 0) goto L_0x0840
        L_0x0830:
            android.content.res.Resources r0 = r10.getResources()     // Catch:{ all -> 0x0e60 }
            android.util.DisplayMetrics r10 = r0.getDisplayMetrics()     // Catch:{ all -> 0x0e60 }
            int r0 = r10.widthPixels     // Catch:{ all -> 0x0e60 }
            X.2Ht.LIZ = r0     // Catch:{ all -> 0x0e60 }
            int r0 = r10.heightPixels     // Catch:{ all -> 0x0e60 }
            X.2Ht.LIZIZ = r0     // Catch:{ all -> 0x0e60 }
        L_0x0840:
            int r0 = X.2Ht.LIZ     // Catch:{ all -> 0x0e60 }
            java.lang.Integer r0 = java.lang.Integer.valueOf(r0)     // Catch:{ all -> 0x0e60 }
            r5.put(r2, r0)     // Catch:{ all -> 0x0e60 }
            java.lang.String r10 = "screen_height"
            android.app.Application r2 = X.AnonymousClass7dQ.LIZ     // Catch:{ all -> 0x0e60 }
            int r0 = X.2Ht.LIZIZ     // Catch:{ all -> 0x0e60 }
            if (r0 != 0) goto L_0x0885
            java.lang.Object r0 = X.2Ht.LIZ(r2, r11)     // Catch:{ all -> 0x0e60 }
            android.view.WindowManager r0 = (android.view.WindowManager) r0     // Catch:{ all -> 0x0e60 }
            if (r0 == 0) goto L_0x086d
            android.graphics.Point r11 = new android.graphics.Point     // Catch:{ all -> 0x0e60 }
            r11.<init>()     // Catch:{ all -> 0x0e60 }
            android.view.Display r0 = r0.getDefaultDisplay()     // Catch:{ all -> 0x0e60 }
            r0.getSize(r11)     // Catch:{ all -> 0x0e60 }
            int r0 = r11.x     // Catch:{ all -> 0x0e60 }
            X.2Ht.LIZ = r0     // Catch:{ all -> 0x0e60 }
            int r0 = r11.y     // Catch:{ all -> 0x0e60 }
            X.2Ht.LIZIZ = r0     // Catch:{ all -> 0x0e60 }
        L_0x086d:
            int r0 = X.2Ht.LIZ     // Catch:{ all -> 0x0e60 }
            if (r0 == 0) goto L_0x0875
            int r0 = X.2Ht.LIZIZ     // Catch:{ all -> 0x0e60 }
            if (r0 != 0) goto L_0x0885
        L_0x0875:
            android.content.res.Resources r0 = r2.getResources()     // Catch:{ all -> 0x0e60 }
            android.util.DisplayMetrics r2 = r0.getDisplayMetrics()     // Catch:{ all -> 0x0e60 }
            int r0 = r2.widthPixels     // Catch:{ all -> 0x0e60 }
            X.2Ht.LIZ = r0     // Catch:{ all -> 0x0e60 }
            int r0 = r2.heightPixels     // Catch:{ all -> 0x0e60 }
            X.2Ht.LIZIZ = r0     // Catch:{ all -> 0x0e60 }
        L_0x0885:
            int r0 = X.2Ht.LIZIZ     // Catch:{ all -> 0x0e60 }
            java.lang.Integer r0 = java.lang.Integer.valueOf(r0)     // Catch:{ all -> 0x0e60 }
            r5.put(r10, r0)     // Catch:{ all -> 0x0e60 }
            android.app.Application r0 = X.AnonymousClass7dQ.LIZ     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LIZ((android.content.Context) r0, (java.util.Map) r5)     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            boolean r0 = r0.isPreloadV3Enabled()     // Catch:{ all -> 0x0e60 }
            r8.LJJ = r0     // Catch:{ all -> 0x0e60 }
            boolean r0 = r8.LJJ     // Catch:{ all -> 0x0e60 }
            if (r0 == 0) goto L_0x08c8
            r0 = 12
            X.C20708Sn.LJ((int) r0, (int) r1)     // Catch:{ all -> 0x0e60 }
            X.8Sz r1 = new X.8Sz     // Catch:{ all -> 0x0e60 }
            r1.<init>(r8)     // Catch:{ all -> 0x0e60 }
            X.8Sm r0 = X.C19788Oz.LIZ     // Catch:{ all -> 0x0e60 }
            r0.LIZ = r1     // Catch:{ all -> 0x0e60 }
            X.8T3 r1 = new X.8T3     // Catch:{ all -> 0x0e60 }
            r1.<init>(r8)     // Catch:{ all -> 0x0e60 }
            X.8Sm r2 = X.C19788Oz.LIZ     // Catch:{ all -> 0x0e60 }
            java.util.concurrent.locks.ReentrantLock r0 = r2.LJIIIIZZ     // Catch:{ all -> 0x0e60 }
            r0.lock()     // Catch:{ all -> 0x0e60 }
            r2.LIZIZ = r1     // Catch:{ all -> 0x08bc }
            goto L_0x08c3
        L_0x08bc:
            r1 = move-exception
            java.util.concurrent.locks.ReentrantLock r0 = r2.LJIIIIZZ     // Catch:{ all -> 0x0e60 }
            r0.unlock()     // Catch:{ all -> 0x0e60 }
            throw r1     // Catch:{ all -> 0x0e60 }
        L_0x08c3:
            java.util.concurrent.locks.ReentrantLock r0 = r2.LJIIIIZZ     // Catch:{ all -> 0x0e60 }
            r0.unlock()     // Catch:{ all -> 0x0e60 }
        L_0x08c8:
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            java.lang.String r0 = r0.getMDLUA1()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LIZIZ((int) r4, (java.lang.String) r0)     // Catch:{ all -> 0x0e60 }
            r16.LJII()     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            X.8RO r0 = r0.getSensitiveSceneTransmitter()     // Catch:{ all -> 0x0e60 }
            if (r0 == 0) goto L_0x08e5
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            r0.getSensitiveSceneTransmitter()     // Catch:{ all -> 0x0e60 }
        L_0x08e5:
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            java.lang.String r1 = r0.getDataLoaderMdlExtensionOpts()     // Catch:{ all -> 0x0e60 }
            boolean r0 = android.text.TextUtils.isEmpty(r1)     // Catch:{ all -> 0x0e60 }
            if (r0 != 0) goto L_0x08fa
            r0 = 1500(0x5dc, float:2.102E-42)
            X.C20708Sn.LIZIZ((int) r0, (java.lang.String) r1)     // Catch:{ all -> 0x0e60 }
        L_0x08fa:
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            java.lang.String r1 = r0.getModuleConfigJsonString()     // Catch:{ all -> 0x0e60 }
            boolean r0 = android.text.TextUtils.isEmpty(r1)     // Catch:{ all -> 0x0e60 }
            if (r0 != 0) goto L_0x0914
            r0 = 31008(0x7920, float:4.3451E-41)
            X.C20708Sn.LIZJ((int) r0, (java.lang.String) r1)     // Catch:{ all -> 0x0e60 }
            org.json.JSONObject r0 = new org.json.JSONObject     // Catch:{ all -> 0x0e60 }
            r0.<init>(r1)     // Catch:{ all -> 0x0e60 }
        L_0x0914:
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            java.lang.String r1 = r0.getGearStrategyJsonString()     // Catch:{ all -> 0x0e60 }
            boolean r0 = android.text.TextUtils.isEmpty(r1)     // Catch:{ all -> 0x0e60 }
            if (r0 != 0) goto L_0x097a
            org.json.JSONObject r4 = new org.json.JSONObject     // Catch:{ all -> 0x0e60 }
            r4.<init>(r1)     // Catch:{ all -> 0x0e60 }
            org.json.JSONObject r5 = new org.json.JSONObject     // Catch:{ all -> 0x0e60 }
            r5.<init>()     // Catch:{ all -> 0x0e60 }
            java.lang.String r1 = "type"
            X.8Fp r0 = X.C17348Fp.LJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.playerkit.model.NativeBitrateSelectConfig r0 = r0.LJIIIIZZ()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.cacheCheck     // Catch:{ all -> 0x0e60 }
            r5.put(r1, r0)     // Catch:{ all -> 0x0e60 }
            java.lang.String r2 = "bitrate_switch_threshold"
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            double r0 = r0.getBitrateSwitchThreshold()     // Catch:{ all -> 0x0e60 }
            r5.put(r2, r0)     // Catch:{ all -> 0x0e60 }
            java.lang.String r0 = "cache_check"
            r4.put(r0, r5)     // Catch:{ all -> 0x0e60 }
            X.Crj r0 = X.C17348Fp.LIZ     // Catch:{ all -> 0x0e60 }
            java.lang.Object r2 = r0.getValue()     // Catch:{ all -> 0x0e60 }
            java.lang.String r2 = (java.lang.String) r2     // Catch:{ all -> 0x0e60 }
            boolean r0 = android.text.TextUtils.isEmpty(r2)     // Catch:{ all -> 0x0e60 }
            if (r0 != 0) goto L_0x0967
            org.json.JSONObject r1 = new org.json.JSONObject     // Catch:{ all -> 0x0e60 }
            r1.<init>(r2)     // Catch:{ all -> 0x0e60 }
            java.lang.String r0 = "extra_config"
            r4.put(r0, r1)     // Catch:{ all -> 0x0e60 }
        L_0x0967:
            org.json.JSONObject r2 = new org.json.JSONObject     // Catch:{ all -> 0x0e60 }
            r2.<init>()     // Catch:{ all -> 0x0e60 }
            java.lang.String r0 = "vod_strategy_select_bitrate"
            r2.put(r0, r4)     // Catch:{ all -> 0x0e60 }
            r1 = 31006(0x791e, float:4.3449E-41)
            java.lang.String r0 = r2.toString()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LIZJ((int) r1, (java.lang.String) r0)     // Catch:{ all -> 0x0e60 }
        L_0x097a:
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            java.lang.String r1 = r0.getBandWidthJsonString()     // Catch:{ all -> 0x0e60 }
            boolean r0 = android.text.TextUtils.isEmpty(r1)     // Catch:{ all -> 0x0e60 }
            if (r0 != 0) goto L_0x09a7
            org.json.JSONObject r2 = new org.json.JSONObject     // Catch:{ all -> 0x0e60 }
            r2.<init>(r1)     // Catch:{ all -> 0x0e60 }
            java.lang.String r0 = "vod_strategy_bandwidth"
            org.json.JSONObject r1 = r2.getJSONObject(r0)     // Catch:{ all -> 0x0e60 }
            if (r1 == 0) goto L_0x099e
            if (r3 <= 0) goto L_0x099e
            java.lang.String r0 = "queue_capacity"
            r1.put(r0, r3)     // Catch:{ all -> 0x0e60 }
        L_0x099e:
            r1 = 31007(0x791f, float:4.345E-41)
            java.lang.String r0 = r2.toString()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LIZJ((int) r1, (java.lang.String) r0)     // Catch:{ all -> 0x0e60 }
        L_0x09a7:
            boolean r0 = r16.LJFF()     // Catch:{ all -> 0x0e60 }
            if (r0 != 0) goto L_0x09b9
            boolean r0 = r16.LIZ()     // Catch:{ all -> 0x0e60 }
            if (r0 != 0) goto L_0x09b9
            boolean r0 = r16.LJI()     // Catch:{ all -> 0x0e60 }
            if (r0 == 0) goto L_0x09d1
        L_0x09b9:
            X.8T0 r2 = new X.8T0     // Catch:{ all -> 0x0e60 }
            r2.<init>()     // Catch:{ all -> 0x0e60 }
            X.8Sv r0 = r8.LJJIIJ     // Catch:{ all -> 0x0e60 }
            r2.LIZ = r0     // Catch:{ all -> 0x0e60 }
            java.lang.String r1 = "[GearStrategy]setGearStrategyConfig config="
            java.lang.String r0 = java.lang.String.valueOf(r2)     // Catch:{ all -> 0x0e60 }
            java.lang.String r0 = r1.concat(r0)     // Catch:{ all -> 0x0e60 }
            X.C18758La.LIZ(r7, r0)     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJI = r2     // Catch:{ all -> 0x0e60 }
        L_0x09d1:
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.PlayerAbEnableDebugLogExp()     // Catch:{ all -> 0x0e60 }
            X.AnonymousClass8TI.LIZ(r0)     // Catch:{ all -> 0x0e60 }
            android.app.Application r3 = X.AnonymousClass7dQ.LIZ     // Catch:{ all -> 0x0e60 }
            X.JqP r4 = X.AnonymousClass8XJ.LIZ     // Catch:{ all -> 0x0e60 }
            java.lang.String r5 = "DataLoaderHelper"
            if (r3 != 0) goto L_0x09ec
            java.lang.String r0 = "set context null"
            X.C18758La.LIZIZ(r5, r0)     // Catch:{ all -> 0x0e60 }
            goto L_0x0a57
        L_0x09ec:
            java.util.concurrent.locks.ReentrantLock r0 = r4.LJIIZILJ     // Catch:{ all -> 0x0e60 }
            r0.lock()     // Catch:{ all -> 0x0e60 }
            android.content.Context r0 = r4.LJIIJJI     // Catch:{ all -> 0x0e52 }
            if (r0 != 0) goto L_0x0a43
            X.8Sp r2 = X.AnonymousClass8TB.LIZ     // Catch:{ all -> 0x0e52 }
            r2.LJIIIZ = r3     // Catch:{ all -> 0x0e52 }
            X.0Nn r0 = r2.LJIIIIZZ     // Catch:{ all -> 0x0e52 }
            if (r0 == 0) goto L_0x0a2a
            X.0Nn r11 = r2.LJIIIIZZ     // Catch:{ all -> 0x0e52 }
            android.content.Context r0 = r11.LIZJ     // Catch:{ all -> 0x0e52 }
            if (r0 != 0) goto L_0x0a15
            r11.LIZJ = r3     // Catch:{ all -> 0x0e52 }
            X.0Ne r10 = new X.0Ne     // Catch:{ all -> 0x0e52 }
            android.content.Context r1 = X.0Nn.LIZ(r3)     // Catch:{ all -> 0x0e52 }
            X.1H8 r0 = new X.1H8     // Catch:{ all -> 0x0e52 }
            r0.<init>(r11, r11)     // Catch:{ all -> 0x0e52 }
            r10.<init>(r1, r0)     // Catch:{ all -> 0x0e52 }
            r11.LIZLLL = r10     // Catch:{ all -> 0x0e52 }
        L_0x0a15:
            X.0Nn r0 = r2.LJIIIIZZ     // Catch:{ all -> 0x0e52 }
            boolean r1 = r2.LJIIJ     // Catch:{ all -> 0x0e52 }
            X.0Ne r0 = r0.LIZLLL     // Catch:{ all -> 0x0e52 }
            r0.LIZIZ = r1     // Catch:{ all -> 0x0e52 }
            X.0Ng.LIZ = r1     // Catch:{ all -> 0x0e52 }
            X.0Nn r0 = r2.LJIIIIZZ     // Catch:{ all -> 0x0e52 }
            X.8Sx r1 = new X.8Sx     // Catch:{ all -> 0x0e52 }
            r1.<init>(r2)     // Catch:{ all -> 0x0e52 }
            X.0Ne r0 = r0.LIZLLL     // Catch:{ all -> 0x0e52 }
            r0.LJI = r1     // Catch:{ all -> 0x0e52 }
        L_0x0a2a:
            X.8Sp r1 = X.AnonymousClass8TB.LIZ     // Catch:{ all -> 0x0e52 }
            android.content.Context r0 = r1.LJIIIZ     // Catch:{ all -> 0x0e52 }
            if (r0 == 0) goto L_0x0a43
            X.0Nn r0 = r1.LJIIIIZZ     // Catch:{ all -> 0x0e52 }
            if (r0 == 0) goto L_0x0a43
            X.0Nn r2 = r1.LJIIIIZZ     // Catch:{ all -> 0x0e52 }
            java.lang.Thread r1 = new java.lang.Thread     // Catch:{ all -> 0x0e52 }
            X.0Nk r0 = new X.0Nk     // Catch:{ all -> 0x0e52 }
            r0.<init>(r2)     // Catch:{ all -> 0x0e52 }
            r1.<init>(r0)     // Catch:{ all -> 0x0e52 }
            r1.start()     // Catch:{ all -> 0x0e52 }
        L_0x0a43:
            r4.LJIIJJI = r3     // Catch:{ all -> 0x0e52 }
            java.util.concurrent.locks.ReentrantLock r0 = r4.LJIIZILJ     // Catch:{ all -> 0x0e60 }
            r0.unlock()     // Catch:{ all -> 0x0e60 }
            java.lang.String r1 = "set context end"
            java.lang.String r0 = java.lang.String.valueOf(r3)     // Catch:{ all -> 0x0e60 }
            java.lang.String r0 = r1.concat(r0)     // Catch:{ all -> 0x0e60 }
            X.C18758La.LIZIZ(r5, r0)     // Catch:{ all -> 0x0e60 }
        L_0x0a57:
            X.JqP r4 = X.AnonymousClass8XJ.LIZ     // Catch:{ Exception -> 0x0e4b }
            java.util.concurrent.locks.ReentrantLock r0 = r4.LJIIZILJ     // Catch:{ Exception -> 0x0e4b }
            r0.lock()     // Catch:{ Exception -> 0x0e4b }
            int r0 = r4.LIZLLL     // Catch:{ all -> 0x0e44 }
            if (r0 != 0) goto L_0x0a69
            java.lang.String r0 = "DataLoader has started not need start"
            X.C18758La.LJ(r5, r0)     // Catch:{ all -> 0x0e44 }
            goto L_0x0d76
        L_0x0a69:
            X.7im r0 = X.2HX.LIZ     // Catch:{ all -> 0x0e44 }
            boolean r0 = r0.LIZ     // Catch:{ all -> 0x0e44 }
            java.lang.String r2 = "player_precreate_dataload_init_duration"
            if (r0 == 0) goto L_0x0a76
            X.7im r0 = X.2HX.LIZ     // Catch:{ all -> 0x0e44 }
            r0.LIZ((java.lang.String) r2, (boolean) r9)     // Catch:{ all -> 0x0e44 }
        L_0x0a76:
            boolean r1 = r4.LIZIZ()     // Catch:{ all -> 0x0e44 }
            X.7im r0 = X.2HX.LIZ     // Catch:{ all -> 0x0e44 }
            boolean r0 = r0.LIZ     // Catch:{ all -> 0x0e44 }
            if (r0 == 0) goto L_0x0a85
            X.7im r0 = X.2HX.LIZ     // Catch:{ all -> 0x0e44 }
            r0.LIZIZ((java.lang.String) r2, (boolean) r9)     // Catch:{ all -> 0x0e44 }
        L_0x0a85:
            if (r1 == 0) goto L_0x0e3c
            X.JqO r2 = r4.LJFF     // Catch:{ all -> 0x0e44 }
            r0 = 4
            r2.LIZ = r0     // Catch:{ all -> 0x0e44 }
            X.JqO r2 = r4.LJ     // Catch:{ all -> 0x0e44 }
            r0 = 20
            r2.LIZ = r0     // Catch:{ all -> 0x0e44 }
            com.ss.mediakit.medialoader.AVMDLDataLoaderConfigure r0 = r4.LJIIJ     // Catch:{ all -> 0x0e44 }
            if (r0 != 0) goto L_0x0a9d
            com.ss.mediakit.medialoader.AVMDLDataLoaderConfigure r0 = com.ss.mediakit.medialoader.AVMDLDataLoaderConfigure.getDefaultonfigure()     // Catch:{ all -> 0x0e44 }
            r4.LJIIJ = r0     // Catch:{ all -> 0x0e44 }
        L_0x0a9d:
            org.json.JSONObject r2 = new org.json.JSONObject     // Catch:{ all -> 0x0e44 }
            r2.<init>()     // Catch:{ all -> 0x0e44 }
            java.lang.String r0 = X.C20748Sr.LIZLLL     // Catch:{ JSONException -> 0x0af7 }
            boolean r0 = android.text.TextUtils.isEmpty(r0)     // Catch:{ JSONException -> 0x0af7 }
            if (r0 != 0) goto L_0x0ab1
            java.lang.String r1 = "app_channel"
            java.lang.String r0 = X.C20748Sr.LIZLLL     // Catch:{ JSONException -> 0x0af7 }
            r2.put(r1, r0)     // Catch:{ JSONException -> 0x0af7 }
        L_0x0ab1:
            java.lang.String r0 = X.C20748Sr.LIZJ     // Catch:{ JSONException -> 0x0af7 }
            boolean r0 = android.text.TextUtils.isEmpty(r0)     // Catch:{ JSONException -> 0x0af7 }
            if (r0 != 0) goto L_0x0ac0
            java.lang.String r1 = "app_name"
            java.lang.String r0 = X.C20748Sr.LIZJ     // Catch:{ JSONException -> 0x0af7 }
            r2.put(r1, r0)     // Catch:{ JSONException -> 0x0af7 }
        L_0x0ac0:
            java.lang.String r0 = X.C20748Sr.LJFF     // Catch:{ JSONException -> 0x0af7 }
            boolean r0 = android.text.TextUtils.isEmpty(r0)     // Catch:{ JSONException -> 0x0af7 }
            if (r0 != 0) goto L_0x0acf
            java.lang.String r1 = "device_id"
            java.lang.String r0 = X.C20748Sr.LJFF     // Catch:{ JSONException -> 0x0af7 }
            r2.put(r1, r0)     // Catch:{ JSONException -> 0x0af7 }
        L_0x0acf:
            java.lang.String r0 = X.C20748Sr.LJ     // Catch:{ JSONException -> 0x0af7 }
            boolean r0 = android.text.TextUtils.isEmpty(r0)     // Catch:{ JSONException -> 0x0af7 }
            if (r0 != 0) goto L_0x0ade
            java.lang.String r1 = "app_version"
            java.lang.String r0 = X.C20748Sr.LJ     // Catch:{ JSONException -> 0x0af7 }
            r2.put(r1, r0)     // Catch:{ JSONException -> 0x0af7 }
        L_0x0ade:
            int r0 = X.C20748Sr.LIZIZ     // Catch:{ JSONException -> 0x0af7 }
            java.lang.String r1 = "app_id"
            if (r0 < 0) goto L_0x0ae9
            int r0 = X.C20748Sr.LIZIZ     // Catch:{ JSONException -> 0x0af7 }
            r2.put(r1, r0)     // Catch:{ JSONException -> 0x0af7 }
        L_0x0ae9:
            boolean r0 = r2.has(r1)     // Catch:{ JSONException -> 0x0af7 }
            if (r0 == 0) goto L_0x0af7
            com.ss.mediakit.medialoader.AVMDLDataLoaderConfigure r1 = r4.LJIIJ     // Catch:{ JSONException -> 0x0af7 }
            java.lang.String r0 = r2.toString()     // Catch:{ JSONException -> 0x0af7 }
            r1.mAppInfo = r0     // Catch:{ JSONException -> 0x0af7 }
        L_0x0af7:
            X.8Mt r0 = r4.LJIILJJIL     // Catch:{ all -> 0x0e44 }
            if (r0 == 0) goto L_0x0aff
            com.ss.mediakit.medialoader.AVMDLDataLoaderConfigure r0 = r4.LJIIJ     // Catch:{ all -> 0x0e44 }
            r0.mEnableReportTaskLog = r6     // Catch:{ all -> 0x0e44 }
        L_0x0aff:
            com.ss.mediakit.medialoader.AVMDLDataLoader r1 = r4.LJIIIZ     // Catch:{ all -> 0x0e44 }
            com.ss.mediakit.medialoader.AVMDLDataLoaderConfigure r0 = r4.LJIIJ     // Catch:{ all -> 0x0e44 }
            r1.setConfigure(r0)     // Catch:{ all -> 0x0e44 }
            com.ss.mediakit.medialoader.AVMDLDataLoader r0 = r4.LJIIIZ     // Catch:{ all -> 0x0e44 }
            int r0 = r0.start()     // Catch:{ all -> 0x0e44 }
            if (r0 < 0) goto L_0x0e34
            java.lang.StringBuilder r1 = new java.lang.StringBuilder     // Catch:{ all -> 0x0e44 }
            java.lang.String r0 = "[preload] preload strategy "
            r1.<init>(r0)     // Catch:{ all -> 0x0e44 }
            int r0 = r4.LJJI     // Catch:{ all -> 0x0e44 }
            r1.append(r0)     // Catch:{ all -> 0x0e44 }
            java.lang.String r0 = r1.toString()     // Catch:{ all -> 0x0e44 }
            X.C18758La.LIZ(r5, r0)     // Catch:{ all -> 0x0e44 }
            com.ss.mediakit.medialoader.AVMDLDataLoaderConfigure r0 = r4.LJIIJ     // Catch:{ all -> 0x0e44 }
            int r0 = r0.mEnableIOManager     // Catch:{ all -> 0x0e44 }
            if (r0 == 0) goto L_0x0cd9
            com.ss.mediakit.medialoader.AVMDLDataLoader r1 = r4.LJIIIZ     // Catch:{ all -> 0x0e44 }
            r0 = 7390(0x1cde, float:1.0356E-41)
            long r2 = r1.getLongValue(r0)     // Catch:{ all -> 0x0e44 }
            com.ss.mediakit.medialoader.AVMDLDataLoader r1 = r4.LJIIIZ     // Catch:{ all -> 0x0e44 }
            r0 = 7402(0x1cea, float:1.0372E-41)
            long r0 = r1.getLongValue(r0)     // Catch:{ all -> 0x0e44 }
            r13 = 0
            int r10 = (r2 > r13 ? 1 : (r2 == r13 ? 0 : -1))
            if (r10 <= 0) goto L_0x0cd9
            int r10 = (r0 > r13 ? 1 : (r0 == r13 ? 0 : -1))
            if (r10 >= 0) goto L_0x0b43
            goto L_0x0cd9
        L_0x0b43:
            X.8Te r10 = new X.8Te     // Catch:{ all -> 0x0e44 }
            r10.<init>()     // Catch:{ all -> 0x0e44 }
            r4.LJJ = r10     // Catch:{ all -> 0x0e44 }
            X.8Sm r11 = X.C19788Oz.LIZ     // Catch:{ all -> 0x0e44 }
            java.util.concurrent.locks.ReentrantLock r10 = r11.LJIIIIZZ     // Catch:{ all -> 0x0e44 }
            r10.lock()     // Catch:{ all -> 0x0e44 }
            r11.LIZJ = r2     // Catch:{ all -> 0x0c7a }
            r11.LIZLLL = r0     // Catch:{ all -> 0x0c7a }
            java.util.concurrent.locks.ReentrantLock r0 = r11.LJIIIIZZ     // Catch:{ all -> 0x0e44 }
            r0.unlock()     // Catch:{ all -> 0x0e44 }
            X.8Sm r1 = X.C19788Oz.LIZ     // Catch:{ all -> 0x0e44 }
            android.content.Context r0 = r4.LJIIJJI     // Catch:{ all -> 0x0e44 }
            r1.LJ = r0     // Catch:{ all -> 0x0e44 }
            X.8TL r0 = r4.LIZ     // Catch:{ all -> 0x0e44 }
            if (r0 == 0) goto L_0x0b6f
            X.8TL r0 = r4.LIZ     // Catch:{ all -> 0x0e44 }
            boolean r0 = r0.LIZ()     // Catch:{ all -> 0x0e44 }
        L_0x0b6a:
            X.8Sm r10 = X.C19788Oz.LIZ     // Catch:{ all -> 0x0e44 }
            if (r0 != 0) goto L_0x0b73
            goto L_0x0b71
        L_0x0b6f:
            r0 = 0
            goto L_0x0b6a
        L_0x0b71:
            r11 = 1
            goto L_0x0b74
        L_0x0b73:
            r11 = 0
        L_0x0b74:
            r10.LIZIZ()     // Catch:{ all -> 0x0e44 }
            java.util.concurrent.locks.ReentrantLock r0 = r10.LJIIIIZZ     // Catch:{ all -> 0x0e44 }
            r0.lock()     // Catch:{ all -> 0x0e44 }
            com.bytedance.vcloud.strategy.StrategyCenter r0 = r10.LIZIZ()     // Catch:{ all -> 0x0c68 }
            r0.create(r11)     // Catch:{ all -> 0x0c68 }
            com.bytedance.vcloud.strategy.StrategyCenter r0 = r10.LIZIZ()     // Catch:{ all -> 0x0c68 }
            boolean r0 = r0.isLoadLibrarySucceed()     // Catch:{ all -> 0x0c68 }
            if (r0 == 0) goto L_0x0c81
            r10.LIZLLL()     // Catch:{ all -> 0x0c68 }
            java.util.Map<java.lang.Integer, java.lang.String> r1 = r10.LJIIJ     // Catch:{ all -> 0x0c68 }
            r0 = 31001(0x7919, float:4.3442E-41)
            java.lang.Integer r0 = java.lang.Integer.valueOf(r0)     // Catch:{ all -> 0x0c68 }
            java.lang.Object r0 = r1.get(r0)     // Catch:{ all -> 0x0c68 }
            if (r0 != 0) goto L_0x0bad
            java.lang.String r2 = "{\"strategy_center_v1\":{\"engine_default\":{\"preload_strategy\":{\"name\":\"default\",\"tasks\":[{\"download_progress\":100,\"count\":5,\"offset\":0,\"size\":800}]}},\"video_range_request\":{\"enable_concurrent_download\":0,\"allowed_segment_download\":0,\"fixed_size\":3000,\"fixed_duration\":10}}}"
            int r1 = r10.LJI     // Catch:{ all -> 0x0c68 }
            r0 = 32
            if (r1 != r0) goto L_0x0ba8
            java.lang.String r2 = "{\"strategy_center_v1\":{\"feed\":{\"preload_strategy\":{\"name\":\"adaptive\",\"low_buf\":5,\"high_buf\":20,\"tasks\":[{\"count\":5,\"size\":800,\"offset\":0}]}},\"fullscreen_immersive\":{\"preload_strategy\":{\"name\":\"adaptive\",\"low_buf\":5,\"high_buf\":20,\"tasks\":[{\"count\":5,\"size\":800,\"offset\":0}]}},\"story\":{\"preload_strategy\":{\"name\":\"adaptive\",\"low_buf\":5,\"high_buf\":20,\"tasks\":[{\"count\":5,\"size\":800,\"offset\":0}]}}}}"
        L_0x0ba8:
            r0 = 31001(0x7919, float:4.3442E-41)
            r10.LIZ((int) r0, (java.lang.String) r2)     // Catch:{ all -> 0x0c68 }
        L_0x0bad:
            com.bytedance.vcloud.strategy.StrategyCenter r13 = r10.LIZIZ()     // Catch:{ all -> 0x0c68 }
            long r2 = r10.LIZJ     // Catch:{ all -> 0x0c68 }
            long r0 = r10.LIZLLL     // Catch:{ all -> 0x0c68 }
            r13.setIOManager(r2, r0)     // Catch:{ all -> 0x0c68 }
            com.bytedance.vcloud.strategy.StrategyCenter r0 = r10.LIZIZ()     // Catch:{ all -> 0x0c68 }
            boolean r0 = r0.isIOManagerVersionMatch()     // Catch:{ all -> 0x0c68 }
            if (r0 != 0) goto L_0x0bc9
            java.lang.String r0 = "io manager interface not match, start fail."
            X.C18758La.LIZ(r12, r0)     // Catch:{ all -> 0x0c68 }
            goto L_0x0c81
        L_0x0bc9:
            com.bytedance.vcloud.strategy.StrategyCenter r1 = r10.LIZIZ()     // Catch:{ all -> 0x0c68 }
            X.8T7 r0 = new X.8T7     // Catch:{ all -> 0x0c68 }
            r0.<init>()     // Catch:{ all -> 0x0c68 }
            r1.setLogCallback(r0)     // Catch:{ all -> 0x0c68 }
            X.8Sp r2 = X.AnonymousClass8TB.LIZ     // Catch:{ all -> 0x0c68 }
            java.lang.String r1 = X.C20728Sp.LJ     // Catch:{ all -> 0x0c68 }
            int r0 = r2.LJIIJJI     // Catch:{ all -> 0x0c68 }
            if (r0 != 0) goto L_0x0c51
        L_0x0bdd:
            java.lang.String r2 = "engine_default"
            X.8T9 r13 = new X.8T9     // Catch:{ all -> 0x0c68 }
            r13.<init>(r2)     // Catch:{ all -> 0x0c68 }
            r13.LIZ = r2     // Catch:{ all -> 0x0c68 }
            r13.LIZIZ = r6     // Catch:{ all -> 0x0c68 }
            r13.LIZJ = r9     // Catch:{ all -> 0x0c68 }
            r13.LIZLLL = r6     // Catch:{ all -> 0x0c68 }
            r13.LJFF = r2     // Catch:{ all -> 0x0c68 }
            X.8Sm r0 = X.C19788Oz.LIZ     // Catch:{ all -> 0x0c68 }
            com.bytedance.vcloud.strategy.StrategyCenter r3 = r0.LIZIZ()     // Catch:{ all -> 0x0c68 }
            java.util.HashMap r9 = new java.util.HashMap     // Catch:{ all -> 0x0c68 }
            r9.<init>()     // Catch:{ all -> 0x0c68 }
            java.lang.String r1 = "scene_id"
            java.lang.String r0 = r13.LIZ     // Catch:{ all -> 0x0c68 }
            r9.put(r1, r0)     // Catch:{ all -> 0x0c68 }
            java.lang.String r1 = "auto_play"
            int r0 = r13.LIZIZ     // Catch:{ all -> 0x0c68 }
            java.lang.Integer r0 = java.lang.Integer.valueOf(r0)     // Catch:{ all -> 0x0c68 }
            r9.put(r1, r0)     // Catch:{ all -> 0x0c68 }
            java.lang.String r1 = "mute"
            int r0 = r13.LIZJ     // Catch:{ all -> 0x0c68 }
            java.lang.Integer r0 = java.lang.Integer.valueOf(r0)     // Catch:{ all -> 0x0c68 }
            r9.put(r1, r0)     // Catch:{ all -> 0x0c68 }
            java.lang.String r1 = "card_cnt"
            int r0 = r13.LIZLLL     // Catch:{ all -> 0x0c68 }
            java.lang.Integer r0 = java.lang.Integer.valueOf(r0)     // Catch:{ all -> 0x0c68 }
            r9.put(r1, r0)     // Catch:{ all -> 0x0c68 }
            java.lang.String r1 = "json"
            java.lang.String r0 = r13.LJ     // Catch:{ all -> 0x0c68 }
            r9.put(r1, r0)     // Catch:{ all -> 0x0c68 }
            org.json.JSONObject r0 = new org.json.JSONObject     // Catch:{ all -> 0x0c68 }
            r0.<init>(r9)     // Catch:{ all -> 0x0c68 }
            java.lang.String r0 = r0.toString()     // Catch:{ all -> 0x0c68 }
            r3.createScene(r0)     // Catch:{ all -> 0x0c68 }
            com.bytedance.vcloud.strategy.StrategyCenter r1 = r10.LIZIZ()     // Catch:{ all -> 0x0c68 }
            X.8Sl r0 = new X.8Sl     // Catch:{ all -> 0x0c68 }
            r0.<init>(r10)     // Catch:{ all -> 0x0c68 }
            r1.setStateSupplier(r0)     // Catch:{ all -> 0x0c68 }
            com.bytedance.vcloud.strategy.StrategyCenter r0 = r10.LIZIZ()     // Catch:{ all -> 0x0c68 }
            r0.start(r11)     // Catch:{ all -> 0x0c68 }
            X.8Sm r0 = X.C19788Oz.LIZ     // Catch:{ all -> 0x0c68 }
            com.bytedance.vcloud.strategy.StrategyCenter r0 = r0.LIZIZ()     // Catch:{ all -> 0x0c68 }
            r0.switchToScene(r2)     // Catch:{ all -> 0x0c68 }
            goto L_0x0c81
        L_0x0c51:
            X.0Nn r0 = r2.LJIIIIZZ     // Catch:{ all -> 0x0c68 }
            org.json.JSONObject r0 = r0.LIZJ(r1)     // Catch:{ all -> 0x0c68 }
            if (r0 == 0) goto L_0x0bdd
            com.bytedance.vcloud.strategy.StrategyCenter r2 = r10.LIZIZ()     // Catch:{ all -> 0x0c68 }
            java.lang.String r1 = X.C20728Sp.LJ     // Catch:{ all -> 0x0c68 }
            java.lang.String r0 = r0.toString()     // Catch:{ all -> 0x0c68 }
            r2.setSettingsInfo(r1, r0)     // Catch:{ all -> 0x0c68 }
            goto L_0x0bdd
        L_0x0c68:
            r0 = move-exception
            java.lang.String r0 = r0.toString()     // Catch:{ all -> 0x0c73 }
            X.C18758La.LIZ(r12, r0)     // Catch:{ all -> 0x0c73 }
            java.util.concurrent.locks.ReentrantLock r0 = r10.LJIIIIZZ     // Catch:{ all -> 0x0e44 }
            goto L_0x0c83
        L_0x0c73:
            r1 = move-exception
            java.util.concurrent.locks.ReentrantLock r0 = r10.LJIIIIZZ     // Catch:{ all -> 0x0e44 }
            r0.unlock()     // Catch:{ all -> 0x0e44 }
            throw r1     // Catch:{ all -> 0x0e44 }
        L_0x0c7a:
            r1 = move-exception
            java.util.concurrent.locks.ReentrantLock r0 = r11.LJIIIIZZ     // Catch:{ all -> 0x0e44 }
            r0.unlock()     // Catch:{ all -> 0x0e44 }
            throw r1     // Catch:{ all -> 0x0e44 }
        L_0x0c81:
            java.util.concurrent.locks.ReentrantLock r0 = r10.LJIIIIZZ     // Catch:{ all -> 0x0e44 }
        L_0x0c83:
            r0.unlock()     // Catch:{ all -> 0x0e44 }
            X.8Sm r2 = X.C19788Oz.LIZ     // Catch:{ all -> 0x0e44 }
            java.lang.String r1 = X.C20748Sr.LIZ()     // Catch:{ all -> 0x0e44 }
            r0 = 0
            r2.LIZ((java.lang.String) r1, (java.util.Map) r0)     // Catch:{ all -> 0x0e44 }
            X.8Sw r0 = X.AnonymousClass8TE.LIZ     // Catch:{ all -> 0x0e44 }
            java.lang.String r0 = r0.LIZ     // Catch:{ all -> 0x0e44 }
            boolean r0 = android.text.TextUtils.isEmpty(r0)     // Catch:{ all -> 0x0e44 }
            if (r0 != 0) goto L_0x0ca9
            X.8Sm r0 = X.C19788Oz.LIZ     // Catch:{ all -> 0x0e44 }
            com.bytedance.vcloud.strategy.StrategyCenter r2 = r0.LIZIZ()     // Catch:{ all -> 0x0e44 }
            r1 = 31207(0x79e7, float:4.373E-41)
            X.8Sw r0 = X.AnonymousClass8TE.LIZ     // Catch:{ all -> 0x0e44 }
            java.lang.String r0 = r0.LIZ     // Catch:{ all -> 0x0e44 }
            r2.businessEvent((int) r1, (java.lang.String) r0)     // Catch:{ all -> 0x0e44 }
        L_0x0ca9:
            com.ss.mediakit.medialoader.AVMDLDataLoader r0 = r4.LJIIIZ     // Catch:{ all -> 0x0e44 }
            boolean r0 = r0.isRunning()     // Catch:{ all -> 0x0e44 }
            if (r0 == 0) goto L_0x0cd9
            X.8Sm r0 = X.C19788Oz.LIZ     // Catch:{ all -> 0x0e44 }
            com.bytedance.vcloud.strategy.StrategyCenter r0 = r0.LIZIZ()     // Catch:{ all -> 0x0e44 }
            boolean r0 = r0.isRunning()     // Catch:{ all -> 0x0e44 }
            r2 = 1030(0x406, float:1.443E-42)
            if (r0 != 0) goto L_0x0d01
            java.lang.StringBuilder r1 = new java.lang.StringBuilder     // Catch:{ all -> 0x0e44 }
            java.lang.String r0 = "strategy center start failed, set mdl preload strategy back "
            r1.<init>(r0)     // Catch:{ all -> 0x0e44 }
            int r0 = r4.LJJIFFI     // Catch:{ all -> 0x0e44 }
            r1.append(r0)     // Catch:{ all -> 0x0e44 }
            java.lang.String r0 = r1.toString()     // Catch:{ all -> 0x0e44 }
            X.C18758La.LIZIZ(r5, r0)     // Catch:{ all -> 0x0e44 }
            com.ss.mediakit.medialoader.AVMDLDataLoader r1 = r4.LJIIIZ     // Catch:{ all -> 0x0e44 }
            int r0 = r4.LJJIFFI     // Catch:{ all -> 0x0e44 }
            r1.setIntValue(r2, r0)     // Catch:{ all -> 0x0e44 }
        L_0x0cd9:
            X.8TQ r0 = X.AnonymousClass8TJ.LIZ     // Catch:{ all -> 0x0e44 }
            r0.LIZJ()     // Catch:{ all -> 0x0e44 }
            com.ss.mediakit.medialoader.AVMDLDataLoader r1 = r4.LJIIIZ     // Catch:{ all -> 0x0e44 }
            r0 = 7218(0x1c32, float:1.0115E-41)
            long r0 = r1.getLongValue(r0)     // Catch:{ all -> 0x0e44 }
            r4.LJIILL = r0     // Catch:{ all -> 0x0e44 }
            long r0 = r4.LJIILL     // Catch:{ all -> 0x0e44 }
            r9 = -1
            int r2 = (r0 > r9 ? 1 : (r0 == r9 ? 0 : -1))
            if (r2 != 0) goto L_0x0cf2
            r4.LJIILLIIL = r6     // Catch:{ all -> 0x0e44 }
        L_0x0cf2:
            com.ss.mediakit.medialoader.AVMDLDataLoader r1 = r4.LJIIIZ     // Catch:{ all -> 0x0e44 }
            r0 = 9407(0x24bf, float:1.3182E-41)
            long r9 = r1.getLongValue(r0)     // Catch:{ all -> 0x0e44 }
            r1 = 1
            int r0 = (r9 > r1 ? 1 : (r9 == r1 ? 0 : -1))
            if (r0 != 0) goto L_0x0d0b
            goto L_0x0d09
        L_0x0d01:
            com.ss.mediakit.medialoader.AVMDLDataLoader r1 = r4.LJIIIZ     // Catch:{ all -> 0x0e44 }
            int r0 = r4.LJJI     // Catch:{ all -> 0x0e44 }
            r1.setIntValue(r2, r0)     // Catch:{ all -> 0x0e44 }
            goto L_0x0cd9
        L_0x0d09:
            r0 = 1
            goto L_0x0d0c
        L_0x0d0b:
            r0 = 0
        L_0x0d0c:
            r4.LJIL = r0     // Catch:{ all -> 0x0e44 }
            java.lang.StringBuilder r2 = new java.lang.StringBuilder     // Catch:{ all -> 0x0e44 }
            java.lang.String r0 = "start: get mdlprotocolHandle: "
            r2.<init>(r0)     // Catch:{ all -> 0x0e44 }
            long r0 = r4.LJIILL     // Catch:{ all -> 0x0e44 }
            r2.append(r0)     // Catch:{ all -> 0x0e44 }
            java.lang.String r0 = r2.toString()     // Catch:{ all -> 0x0e44 }
            X.C18758La.LIZ(r5, r0)     // Catch:{ all -> 0x0e44 }
            X.8T5 r3 = r4.LJIIL     // Catch:{ all -> 0x0e44 }
            com.ss.mediakit.medialoader.AVMDLDataLoader r2 = r4.LJIIIZ     // Catch:{ all -> 0x0e44 }
            int r1 = r4.LJIJ     // Catch:{ all -> 0x0e44 }
            X.8TA r0 = r3.LIZIZ     // Catch:{ all -> 0x0e44 }
            if (r0 != 0) goto L_0x0d49
            java.util.Timer r0 = r3.LIZ     // Catch:{ all -> 0x0e44 }
            if (r0 != 0) goto L_0x0d49
            if (r1 > 0) goto L_0x0d32
            goto L_0x0d49
        L_0x0d32:
            X.8TA r0 = new X.8TA     // Catch:{ all -> 0x0e44 }
            r0.<init>(r3, r2)     // Catch:{ all -> 0x0e44 }
            r3.LIZIZ = r0     // Catch:{ all -> 0x0e44 }
            java.util.Timer r0 = new java.util.Timer     // Catch:{ all -> 0x0e44 }
            r0.<init>()     // Catch:{ all -> 0x0e44 }
            r3.LIZ = r0     // Catch:{ all -> 0x0e44 }
            java.util.Timer r9 = r3.LIZ     // Catch:{ all -> 0x0e44 }
            X.8TA r10 = r3.LIZIZ     // Catch:{ all -> 0x0e44 }
            long r11 = (long) r1     // Catch:{ all -> 0x0e44 }
            r13 = r11
            r9.schedule(r10, r11, r13)     // Catch:{ all -> 0x0e44 }
        L_0x0d49:
            r0 = 0
            r4.LIZLLL = r0     // Catch:{ all -> 0x0e44 }
            X.8mv r1 = X.C30668mv.LIZ()     // Catch:{ all -> 0x0e44 }
            android.content.Context r0 = r4.LJIIJJI     // Catch:{ all -> 0x0e44 }
            r1.LIZ((android.content.Context) r0)     // Catch:{ all -> 0x0e44 }
            X.8Su r0 = new X.8Su     // Catch:{ all -> 0x0e44 }
            r0.<init>(r4)     // Catch:{ all -> 0x0e44 }
            r4.LJIJI = r0     // Catch:{ all -> 0x0e44 }
            java.lang.ref.WeakReference r1 = new java.lang.ref.WeakReference     // Catch:{ all -> 0x0e44 }
            X.8mz r0 = r4.LJIJI     // Catch:{ all -> 0x0e44 }
            r1.<init>(r0)     // Catch:{ all -> 0x0e44 }
            r4.LJIJJ = r1     // Catch:{ all -> 0x0e44 }
            X.8mv r1 = X.C30668mv.LIZ()     // Catch:{ all -> 0x0e44 }
            java.lang.ref.WeakReference r0 = r4.LJIJJ     // Catch:{ all -> 0x0e44 }
            r1.LIZ((java.lang.ref.WeakReference<X.C30708mz>) r0)     // Catch:{ all -> 0x0e44 }
            java.lang.String r0 = "DataLoader start."
            X.C18758La.LIZIZ(r5, r0)     // Catch:{ all -> 0x0e44 }
            java.util.concurrent.locks.ReentrantLock r0 = r4.LJIIZILJ     // Catch:{ Exception -> 0x0e4b }
            goto L_0x0d78
        L_0x0d76:
            java.util.concurrent.locks.ReentrantLock r0 = r4.LJIIZILJ     // Catch:{ Exception -> 0x0e4b }
        L_0x0d78:
            r0.unlock()     // Catch:{ Exception -> 0x0e4b }
            java.lang.String r0 = "DataLoader Start"
            X.C18758La.LIZIZ(r7, r0)     // Catch:{ Exception -> 0x0e4b }
            if (r15 == 0) goto L_0x0d9f
            com.ss.mediakit.medialoader.LoaderListener r1 = r8.LJJIIZ     // Catch:{ all -> 0x0e60 }
            X.JqP r2 = X.AnonymousClass8XJ.LIZ     // Catch:{ all -> 0x0e60 }
            java.util.concurrent.locks.ReentrantLock r0 = r2.LJIIZILJ     // Catch:{ all -> 0x0e60 }
            r0.lock()     // Catch:{ all -> 0x0e60 }
            com.ss.mediakit.medialoader.AVMDLDataLoader r0 = com.ss.mediakit.medialoader.AVMDLDataLoader.getInstance()     // Catch:{ all -> 0x0d93 }
            r0.setEventListener(r1)     // Catch:{ all -> 0x0d93 }
            goto L_0x0d9a
        L_0x0d93:
            r1 = move-exception
            java.util.concurrent.locks.ReentrantLock r0 = r2.LJIIZILJ     // Catch:{ all -> 0x0e60 }
            r0.unlock()     // Catch:{ all -> 0x0e60 }
            throw r1     // Catch:{ all -> 0x0e60 }
        L_0x0d9a:
            java.util.concurrent.locks.ReentrantLock r0 = r2.LJIIZILJ     // Catch:{ all -> 0x0e60 }
            r0.unlock()     // Catch:{ all -> 0x0e60 }
        L_0x0d9f:
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            X.8SE r0 = r0.getSpeedManager()     // Catch:{ all -> 0x0e60 }
            r0.LJ()     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            boolean r0 = r0.isDashABREnabled()     // Catch:{ all -> 0x0e60 }
            if (r0 == 0) goto L_0x0e31
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r0 = r0.PlayerAbABRAlgoExp()     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJIIL = r0     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r5 = r0.PlayerAbABRSpeedPredictAlgoExp()     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            int r9 = r0.PlayerAbABRSpeedPredictTimeIntervalExp()     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            X.7Wk r0 = r0.getPreloaderExpModel()     // Catch:{ all -> 0x0e60 }
            int r2 = r0.LJIIZILJ     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r8.LJIILJJIL     // Catch:{ all -> 0x0e60 }
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()     // Catch:{ all -> 0x0e60 }
            X.7Wk r0 = r0.getPreloaderExpModel()     // Catch:{ all -> 0x0e60 }
            int r1 = r0.LJIJ     // Catch:{ all -> 0x0e60 }
            com.bytedance.vcloud.networkpredictor.ISpeedPredictor r0 = X.AnonymousClass8TD.LIZIZ     // Catch:{ all -> 0x0e60 }
            if (r0 != 0) goto L_0x0e31
            X.C20708Sn.LJIIJJI = r5     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJIIIZ = r2     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJIIJ = r1     // Catch:{ all -> 0x0e60 }
            int r0 = X.C20708Sn.LJIILIIL     // Catch:{ all -> 0x0e60 }
            if (r0 != 0) goto L_0x0df8
            X.C20708Sn.LJIILIIL = r6     // Catch:{ all -> 0x0e60 }
        L_0x0df8:
            if (r9 <= 0) goto L_0x0dfe
            X.C20708Sn.LJII = r9     // Catch:{ all -> 0x0e60 }
            X.C20708Sn.LJIIIIZZ = r9     // Catch:{ all -> 0x0e60 }
        L_0x0dfe:
            java.lang.String r1 = "[ABR] abrSpeedPredictUpdateIntervalMs:"
            java.lang.String r0 = java.lang.String.valueOf(r9)     // Catch:{ all -> 0x0e60 }
            java.lang.String r0 = r1.concat(r0)     // Catch:{ all -> 0x0e60 }
            X.C18758La.LIZIZ(r7, r0)     // Catch:{ all -> 0x0e60 }
            com.bytedance.vcloud.networkpredictor.ISpeedPredictor r0 = X.AnonymousClass8TD.LIZIZ     // Catch:{ all -> 0x0e60 }
            if (r0 != 0) goto L_0x0e31
            java.util.Locale r4 = java.util.Locale.US     // Catch:{ all -> 0x0e60 }
            java.lang.String r3 = "[ABR] start speed predictor, type:%d，intervalMs:%d"
            r0 = 2
            java.lang.Object[] r2 = new java.lang.Object[r0]     // Catch:{ all -> 0x0e60 }
            java.lang.Integer r1 = java.lang.Integer.valueOf(r5)     // Catch:{ all -> 0x0e60 }
            r0 = 0
            r2[r0] = r1     // Catch:{ all -> 0x0e60 }
            java.lang.Integer r0 = java.lang.Integer.valueOf(r9)     // Catch:{ all -> 0x0e60 }
            r2[r6] = r0     // Catch:{ all -> 0x0e60 }
            java.lang.String r0 = X.0HH.LIZ(r4, r3, r2)     // Catch:{ all -> 0x0e60 }
            X.C18758La.LIZIZ(r7, r0)     // Catch:{ all -> 0x0e60 }
            com.bytedance.vcloud.networkpredictor.DefaultSpeedPredictor r0 = new com.bytedance.vcloud.networkpredictor.DefaultSpeedPredictor     // Catch:{ all -> 0x0e60 }
            r0.<init>(r5)     // Catch:{ all -> 0x0e60 }
            X.AnonymousClass8TD.LIZIZ = r0     // Catch:{ all -> 0x0e60 }
        L_0x0e31:
            r8.LJIIZILJ = r6     // Catch:{ all -> 0x0e60 }
            goto L_0x0e77
        L_0x0e34:
            java.lang.Exception r1 = new java.lang.Exception     // Catch:{ all -> 0x0e44 }
            java.lang.String r0 = "start data loader fail"
            r1.<init>(r0)     // Catch:{ all -> 0x0e44 }
            throw r1     // Catch:{ all -> 0x0e44 }
        L_0x0e3c:
            java.lang.Exception r1 = new java.lang.Exception     // Catch:{ all -> 0x0e44 }
            java.lang.String r0 = "init data loader fail"
            r1.<init>(r0)     // Catch:{ all -> 0x0e44 }
            throw r1     // Catch:{ all -> 0x0e44 }
        L_0x0e44:
            r1 = move-exception
            java.util.concurrent.locks.ReentrantLock r0 = r4.LJIIZILJ     // Catch:{ Exception -> 0x0e4b }
            r0.unlock()     // Catch:{ Exception -> 0x0e4b }
            throw r1     // Catch:{ Exception -> 0x0e4b }
        L_0x0e4b:
            r1 = move-exception
            java.lang.String r0 = "DataLoader Start Fail"
            X.C18758La.LIZIZ(r7, r0)     // Catch:{ all -> 0x0e60 }
            throw r1     // Catch:{ all -> 0x0e60 }
        L_0x0e52:
            r1 = move-exception
            java.util.concurrent.locks.ReentrantLock r0 = r4.LJIIZILJ     // Catch:{ all -> 0x0e60 }
            r0.unlock()     // Catch:{ all -> 0x0e60 }
            throw r1     // Catch:{ all -> 0x0e60 }
        L_0x0e59:
            r1 = move-exception
            java.util.concurrent.locks.ReentrantLock r0 = r2.LJIIZILJ     // Catch:{ all -> 0x0e60 }
            r0.unlock()     // Catch:{ all -> 0x0e60 }
            throw r1     // Catch:{ all -> 0x0e60 }
        L_0x0e60:
            r2 = move-exception
            r0 = 0
            r8.LJIJ = r0
            com.ss.android.ugc.playerkit.simapicommon.reporter.IMonitor r1 = X.AnonymousClass7dQ.LIZIZ()
            java.lang.String r0 = "checkInit fail."
            r1.ensureNotReachHere(r2, r0)
            com.ss.android.ugc.playerkit.simapicommon.IAppConfig r0 = X.AnonymousClass7dQ.LIZ()
            boolean r0 = r0.isDebug()
            if (r0 != 0) goto L_0x0e7d
        L_0x0e77:
            r0 = 0
            r8.LJIJ = r0
            boolean r0 = r8.LJIIZILJ
            return r0
        L_0x0e7d:
            java.lang.RuntimeException r0 = new java.lang.RuntimeException
            r0.<init>(r2)
            throw r0
        */
        throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.video.preload.enginepreloader.EnginePreloader.checkInit():boolean");
    }

    public final boolean LIZ() {
        return C17348Fp.LJJIL.LJIIIIZZ().mode == 3 && this.LJJ;
    }

    public final void LIZ(String str) {
        this.LJIIJ.remove(str);
        C16758Di remove = this.LJIIL.remove(str);
        if (remove != null) {
            for (AnonymousClass7UR LIZ2 : this.LJI) {
                LIZ2.LIZ(remove);
            }
            if (!TextUtils.isEmpty(remove.getSourceId())) {
                this.LJIILIIL.remove(remove.getSourceId());
            }
        }
    }

    public final void LIZ(String str, String str2) {
        if (this.LJJII.size() > 50) {
            this.LJFF.remove(this.LJJII.poll());
        }
        if (!TextUtils.isEmpty(str) && !TextUtils.isEmpty(str2)) {
            this.LJJII.add(str);
            LIZIZ();
            this.LJFF.put(str, str2);
        }
    }

    public static void LIZIZ() {
        AnonymousClass7dQ.LIZ().isDebug();
    }

    public int startMethodHook() {
        return AnonymousClass7g8.LIZ();
    }

    static {
        Covode.recordClassIndex(122953);
    }

    private boolean LJFF() {
        if (C17348Fp.LJJIL.LJIIIIZZ().mode != 2 || !this.LJJ) {
            return false;
        }
        return true;
    }

    private boolean LJI() {
        if (C17348Fp.LJJIL.LJIIIIZZ().mode != 4 || !this.LJJ) {
            return false;
        }
        return true;
    }

    public final int LIZJ() {
        int i;
        int LIZLLL2 = this.LJIILJJIL.getSpeedManager().LIZLLL();
        if (((double) LIZLLL2) <= 0.0d && (i = LJIILL) > 0) {
            LIZLLL2 = i;
        }
        LJIILL = LIZLLL2;
        return LIZLLL2;
    }

    public void cancelAll() {
        LIZIZ();
        AnonymousClass8XJ.LIZ.LJII();
        Map<String, Integer> map = this.LJIIJ;
        if (map != null) {
            map.clear();
        }
        this.LJIILIIL.clear();
        if (this.LJIIL != null) {
            ArrayList arrayList = new ArrayList(this.LJIIL.values());
            this.LJIIL.clear();
            for (AnonymousClass7UR LIZ2 : this.LJI) {
                LIZ2.LIZ((List<C16758Di>) arrayList);
            }
        }
    }

    public void clearCache() {
        JqP jqP = AnonymousClass8XJ.LIZ;
        if (jqP.LIZLLL == 0) {
            jqP.LJIIZILJ.lock();
            try {
                if (jqP.LJIIIZ == null) {
                    C18758La.LJ("DataLoaderHelper", "mInnerDataLoader == null");
                } else {
                    jqP.LJIIIZ.clearAllCaches();
                }
            } catch (Throwable unused) {
            }
            jqP.LJIIZILJ.unlock();
        }
    }

    private String LJ() {
        if (!TextUtils.isEmpty(this.LJJIIJZLJL)) {
            return this.LJJIIJZLJL;
        }
        Application application = AnonymousClass7dQ.LIZ;
        if (application == null) {
            return null;
        }
        File LIZ2 = LIZ((Context) application);
        if (AnonymousClass7dQ.LIZ().isDebug()) {
            LIZ2 = AnonymousClass8SR.LIZ(application);
        }
        if (TextUtils.equals("playback_simulator_test", AnonymousClass7dQ.LIZ().getChannel())) {
            LIZ2 = AnonymousClass8SR.LIZ(application);
        }
        if (LIZ2 == null) {
            return null;
        }
        String absolutePath = LIZ2.getAbsolutePath();
        this.LJJIIJZLJL = absolutePath;
        return absolutePath;
    }

    public EnginePreloader() {
        if (((Boolean) C17348Fp.LJIJJ.getValue()).booleanValue()) {
            HandlerThread handlerThread = new HandlerThread("SC_Preload_Thread", ((Number) C17348Fp.LJIJJLI.getValue()).intValue());
            handlerThread.start();
            this.LJIJJLI = new Handler(handlerThread.getLooper());
        }
    }

    private void LIZLLL() {
        JqP jqP;
        long j;
        try {
            LJ();
            HashMap hashMap = new HashMap();
            int i = 0;
            for (AnonymousClass8PP r8 : AnonymousClass8PP.values()) {
                if (r8 == null || TextUtils.isEmpty(r8.getCacheDir())) {
                    j = -1;
                } else {
                    Long l = this.LJIILJJIL.getExperiment().getExCacheDirSizeConfig().get(r8.getCacheDir());
                    if (l == null || l.longValue() <= 0) {
                        j = r8.getSizeMB();
                    } else {
                        j = l.longValue();
                    }
                }
                boolean z = true;
                boolean z2 = !TextUtils.isEmpty(r8.getCacheDir());
                if (j <= 0) {
                    z = false;
                }
                if (z2 && z) {
                    hashMap.put(LIZ(r8), Long.valueOf(j));
                }
            }
            if (hashMap.size() > 0) {
                String[] strArr = new String[hashMap.size()];
                long[] jArr = new long[hashMap.size()];
                for (Map.Entry entry : hashMap.entrySet()) {
                    strArr[i] = (String) entry.getKey();
                    jArr[i] = ((Long) entry.getValue()).longValue() * 1048576;
                    i++;
                }
                Pair pair = new Pair(strArr, jArr);
                jqP = AnonymousClass8XJ.LIZ;
                String[] strArr2 = (String[]) pair.first;
                long[] jArr2 = (long[]) pair.second;
                C18758La.LIZIZ("DataLoaderHelper", "setcustom paths and maxcaches ");
                jqP.LJIIZILJ.lock();
                jqP.LJIIJ.setCacheInfoList(strArr2, jArr2);
                jqP.LJIIZILJ.unlock();
            }
        } catch (Exception e) {
            0HH.LIZ(e);
        } catch (Throwable th) {
            jqP.LJIIZILJ.unlock();
            throw th;
        }
    }

    private void LJII() {
        List<C18738Ky> engineStaticOptionList = this.LJIILJJIL.getExperiment().engineStaticOptionList();
        if (engineStaticOptionList != null && engineStaticOptionList.size() > 0) {
            for (C18738Ky next : engineStaticOptionList) {
                if (next.LIZIZ != null) {
                    try {
                        if (next.LIZJ == 1) {
                            C20708Sn.LJ(next.LIZ, ((Integer) next.LIZIZ).intValue());
                        } else if (next.LIZJ == 2) {
                            C20708Sn.LIZ(next.LIZ, ((Long) next.LIZIZ).longValue());
                        } else if (next.LIZJ == 4) {
                            C20708Sn.LIZIZ(next.LIZ, (String) next.LIZIZ);
                        } else if (next.LIZJ == 5) {
                            C20708Sn.LIZIZ(next.LIZ, ((JSONObject) next.LIZIZ).toString());
                        } else if (next.LIZJ == 6) {
                            C20708Sn.LIZIZ(next.LIZ, ((JSONArray) next.LIZIZ).toString());
                        }
                    } catch (Exception unused) {
                    }
                }
            }
        }
    }

    public void setConcurrentNum(int i) {
        C20708Sn.LJ(11, i);
    }

    public void setSmartPreloadAlgorithmJson(String str) {
        C20708Sn.LIZJ(31002, str);
    }

    public void setSmartPreloadPlayTaskAlgorithmJson(String str) {
        C20708Sn.LIZJ(31009, str);
    }

    public void setTimelinessAlgorithmJson(String str) {
        C20708Sn.LIZJ(31003, str);
    }

    public void smartPreloadBusinessEvent(String str) {
        C20708Sn.LIZ(31201, str);
    }

    public void smartPreloadPlayTaskBusinessEvent(String str) {
        C20708Sn.LIZ(31204, str);
    }

    public void smartTimelinessPreloadBusinessEvent(String str) {
        C20708Sn.LIZ(31202, str);
    }

    private void LIZ(C20598Sc r1) {
        if (r1 != null) {
            r1.LIZ();
        }
    }

    public void addPreloadCallback(AnonymousClass7UR r2) {
        if (r2 != null && !this.LJI.contains(r2)) {
            this.LJI.add(r2);
        }
    }

    public long getPreloadedSize(String str) {
        if (AnonymousClass8XJ.LIZ != null) {
            return LIZIZ(str);
        }
        return 0;
    }

    public long getVideoSize(String str) {
        AnonymousClass8TF LJIIIZ2 = AnonymousClass8XJ.LIZ.LJIIIZ(str);
        if (LJIIIZ2 != null) {
            return LJIIIZ2.LIZIZ;
        }
        return 0;
    }

    public void updateDnsBackupIpMap(Map<String, String> map) {
        if (this.LJIIZILJ) {
            LIZ(map);
        } else {
            this.LJJIII = map;
        }
    }

    public static File LIZ(Context context) {
        if (4Ms.LIZIZ != null && 4Ms.LJ) {
            return 4Ms.LIZIZ;
        }
        File cacheDir = context.getCacheDir();
        4Ms.LIZIZ = cacheDir;
        return cacheDir;
    }

    private void LIZJ(String str) {
        if (!TextUtils.isEmpty(str) && this.LJIILJJIL.getExperiment().EnablePreloaderPreConnect().booleanValue()) {
            AnonymousClass8XJ.LIZ.LIZIZ(str);
        }
    }

    private boolean LIZLLL(String str) {
        if (!TextUtils.isEmpty(str) && str.contains("feed") && this.LJIILJJIL.getExperiment().enableSuperResolution()) {
            return true;
        }
        return false;
    }

    public void updateAppState(boolean z) {
        int i;
        if (z) {
            i = 2;
        } else {
            i = 1;
        }
        C19788Oz.LIZ.LIZIZ().businessEvent(1001, i);
    }

    public final String LIZ(AnonymousClass8PP r4) {
        if (r4 == null || TextUtils.isEmpty(r4.getCacheDir())) {
            return null;
        }
        File file = new File(LJ(), r4.getCacheDir());
        if (!file.isDirectory()) {
            LIZ(file);
        }
        if (!file.exists()) {
            file.mkdirs();
        }
        return file.getAbsolutePath();
    }

    public void addDownloadProgressListener(AnonymousClass8N3 r3) {
        for (WeakReference<AnonymousClass8N3> weakReference : this.LIZ) {
            if (weakReference.get() == r3) {
                return;
            }
        }
        this.LIZ.add(new WeakReference(r3));
    }

    public int cacheSize(C16758Di r4) {
        long LIZIZ2;
        if (r4 == null) {
            return 0;
        }
        String bitRatedRatioUri = r4.getBitRatedRatioUri();
        if (!TextUtils.isEmpty(r4.getDashVideoId())) {
            AnonymousClass8YQ LIZIZ3 = C16748Dh.LIZIZ.LIZIZ(r4.getDashVideoId());
            if (LIZIZ3 == null) {
                return 0;
            }
            LIZIZ2 = C16748Dh.LIZIZ.LIZ(LIZIZ3);
        } else {
            LIZIZ2 = LIZIZ(bitRatedRatioUri);
        }
        return (int) LIZIZ2;
    }

    public AnonymousClass7dW getRequestInfo(C16758Di r4) {
        String dashVideoId;
        List list;
        if (TextUtils.isEmpty(r4.getDashVideoId())) {
            dashVideoId = r4.getBitRatedRatioUri();
        } else {
            dashVideoId = r4.getDashVideoId();
        }
        if (TextUtils.isEmpty(dashVideoId) || !this.LJ.containsKey(dashVideoId) || (list = this.LJ.get(dashVideoId)) == null || list.size() <= 0) {
            return null;
        }
        return (AnonymousClass7dW) list.get(list.size() - 1);
    }

    private long LIZIZ(String str) {
        AnonymousClass8TF LJIIIZ2;
        AnonymousClass8N0 r0;
        long j = 0;
        if (TextUtils.isEmpty(str)) {
            return 0;
        }
        if (C17348Fp.LJJIL.LJJJ() && (r0 = this.LJIIJJI.get(str)) != null) {
            return r0.LIZIZ;
        }
        if (C17348Fp.LJJIL.LJJJI() || this.LJIILJJIL.getExperiment().enableUseNewGetCacheMethod()) {
            return AnonymousClass8XJ.LIZ.LIZLLL(str);
        }
        if (!C17348Fp.LJJIL.LJJJLL() || Looper.myLooper() != Looper.getMainLooper()) {
            LJIIIZ2 = AnonymousClass8XJ.LIZ.LJIIIZ(str);
        } else {
            LJIIIZ2 = AnonymousClass8XJ.LIZ.LIZ(str, C17348Fp.LJJIL.LJJJLZIJ(), TimeUnit.MILLISECONDS);
        }
        if (LJIIIZ2 != null) {
            j = LJIIIZ2.LIZJ;
        }
        return (long) ((int) j);
    }

    public List<AnonymousClass7dW> getRequestInfoList(C16758Di r5) {
        String dashVideoId;
        if (TextUtils.isEmpty(r5.getDashVideoId())) {
            dashVideoId = r5.getBitRatedRatioUri();
        } else {
            dashVideoId = r5.getDashVideoId();
        }
        List<AnonymousClass7dW> list = this.LJ.get(dashVideoId);
        if (AnonymousClass7dQ.LIZ().isDebug() || this.LJIILJJIL.getExperiment().EnableGetCDNLogExperiment()) {
            while (true) {
                JSONObject LIZJ2 = AnonymousClass8XJ.LIZ.LIZJ(dashVideoId);
                LIZIZ();
                if (LIZJ2 == null) {
                    break;
                }
                AnonymousClass7dX r1 = (AnonymousClass7dX) C16168Bb.LIZ(LIZJ2.toString(), AnonymousClass7dX.class);
                r1.LIZ = 1;
                AnonymousClass7dW r0 = new AnonymousClass7dW(r1);
                if (list != null) {
                    list.add(r0);
                } else {
                    list = new ArrayList<>();
                    list.add(r0);
                }
            }
        }
        return list;
    }

    public boolean isCacheCompleted(C16758Di r9) {
        AnonymousClass8N0 r1;
        if (r9 == null) {
            return false;
        }
        String bitRatedRatioUri = r9.getBitRatedRatioUri();
        if (TextUtils.isEmpty(bitRatedRatioUri)) {
            return false;
        }
        long j = 0;
        if (!C17348Fp.LJJIL.LJJJ() || (r1 = this.LJIIJJI.get(bitRatedRatioUri)) == null) {
            AnonymousClass8TF LJIIIZ2 = AnonymousClass8XJ.LIZ.LJIIIZ(bitRatedRatioUri);
            if (LJIIIZ2 != null) {
                j = LJIIIZ2.LIZJ;
            }
            int i = (int) j;
            if (i <= 0 || ((long) i) != LJIIIZ2.LIZIZ) {
                return false;
            }
            return true;
        } else if (r1.LIZ <= 0 || r1.LIZ != r1.LIZIZ) {
            return false;
        } else {
            return true;
        }
    }

    private void LIZ(Map<String, String> map) {
        if (this.LJIILJJIL.getExperiment().PlayerAbMedialoaderEnableBackupDnsIPExp() == 1 && map != null) {
            try {
                if (map.size() > 0) {
                    for (String next : map.keySet()) {
                        AnonymousClass8XJ.LIZ.LIZ(next, map.get(next));
                    }
                }
            } catch (Throwable th) {
                AnonymousClass7dQ.LIZIZ().ensureNotReachHere(th, "setDnsBackupIpMap fail.");
            }
        }
    }

    public void cancelPreload(C16758Di r6) {
        String dashVideoId;
        if (r6 != null) {
            if (TextUtils.isEmpty(r6.getDashVideoId())) {
                dashVideoId = r6.getBitRatedRatioUri();
            } else {
                dashVideoId = r6.getDashVideoId();
            }
            JqP jqP = AnonymousClass8XJ.LIZ;
            if (!TextUtils.isEmpty(dashVideoId)) {
                if (jqP.LJIIIZ == null || jqP.LIZLLL != 0) {
                    C18758La.LJ("DataLoaderHelper", "need start mdl first");
                } else {
                    jqP.LJIIZILJ.lock();
                    try {
                        JqQ LIZLLL2 = jqP.LJ.LIZLLL(dashVideoId);
                        if (LIZLLL2 != null) {
                            jqP.LIZ(LIZLLL2);
                        } else {
                            JqQ LIZLLL3 = jqP.LJFF.LIZLLL(dashVideoId);
                            if (LIZLLL3 != null) {
                                if (LIZLLL3.LJIIIZ != null) {
                                    LIZLLL3.LJIIIZ.LIZ();
                                }
                                jqP.LIZ(LIZLLL3);
                            } else {
                                JqQ LIZLLL4 = jqP.LJI.LIZLLL(dashVideoId);
                                if (LIZLLL4 != null) {
                                    jqP.LJIIIZ.cancel(dashVideoId);
                                    jqP.LIZ(LIZLLL4);
                                }
                            }
                        }
                        C18758La.LIZ("DataLoaderHelper", "[preload] cancel preload task. key = ".concat(String.valueOf(dashVideoId)));
                    } catch (Throwable unused) {
                    }
                    jqP.LJIIZILJ.unlock();
                }
            }
            this.LJIIJ.remove(dashVideoId);
            C16758Di remove = this.LJIIL.remove(dashVideoId);
            if (remove != null) {
                ArrayList arrayList = new ArrayList();
                arrayList.add(remove);
                for (AnonymousClass7UR LIZ2 : this.LJI) {
                    LIZ2.LIZ((List<C16758Di>) arrayList);
                }
                if (!TextUtils.isEmpty(remove.getSourceId())) {
                    this.LJIILIIL.remove(remove.getSourceId());
                }
            }
        }
    }

    public boolean isCache(C16758Di r10) {
        AnonymousClass8TF LJIIIZ2;
        if (r10 == null) {
            return false;
        }
        String bitRatedRatioUri = r10.getBitRatedRatioUri();
        if (!TextUtils.isEmpty(r10.getDashVideoId())) {
            AnonymousClass8YQ LIZIZ2 = C16748Dh.LIZIZ.LIZIZ(r10.getDashVideoId());
            if (LIZIZ2 == null || C16748Dh.LIZIZ.LIZ(LIZIZ2) <= 0) {
                return false;
            }
            return true;
        }
        if (C17348Fp.LJJIL.LJJJ() || this.LJIILJJIL.getExperiment().enableUseNewGetCacheMethod()) {
            if (TextUtils.isEmpty(bitRatedRatioUri)) {
                return false;
            }
            AnonymousClass8N0 r0 = this.LJIIJJI.get(bitRatedRatioUri);
            if (r0 != null) {
                if (r0.LIZIZ > 0) {
                    return true;
                }
                return false;
            }
        }
        if (!C17348Fp.LJJIL.LJJJI()) {
            if (!C17348Fp.LJJIL.LJJJLL() || Looper.myLooper() != Looper.getMainLooper()) {
                LJIIIZ2 = AnonymousClass8XJ.LIZ.LJIIIZ(bitRatedRatioUri);
            } else {
                LJIIIZ2 = AnonymousClass8XJ.LIZ.LIZ(bitRatedRatioUri, C17348Fp.LJJIL.LJJJLZIJ(), TimeUnit.MILLISECONDS);
            }
            if (LJIIIZ2 != null) {
                return true;
            }
            return false;
        } else if (LIZIZ(bitRatedRatioUri) > 0) {
            return true;
        } else {
            return false;
        }
    }

    public static boolean LIZ(File file) {
        C33208r1 r3;
        MethodCollector.i(10784);
        try {
            if (C18518Kc.LIZIZ()) {
                r3 = (C33208r1) SettingsManager.LIZ().LIZ("storage_intercepter_key", C33208r1.class, 4N2.LIZ);
            } else {
                r3 = 4N2.LIZ;
            }
            if (C33198r0.LIZ(file.getAbsolutePath(), r3)) {
                C33198r0.LIZ(file, new RuntimeException(), "exception_delete_log", C33198r0.LIZ(r3));
            }
            if (C33198r0.LIZJ(file.getAbsolutePath(), r3)) {
                C33198r0.LIZ(file, new RuntimeException(), "exception_handle", C33198r0.LIZ(r3));
                MethodCollector.o(10784);
                return false;
            }
        } catch (Throwable unused) {
        }
        boolean delete = file.delete();
        MethodCollector.o(10784);
        return delete;
    }

    private AnonymousClass8F4 LIZ(C16758Di r2, C16738Dg r3) {
        return LIZ(r2, r3, "");
    }

    public long tryToClearAndGetCachesByUsedTime(long j, boolean z) {
        if (AnonymousClass8XJ.LIZ != null) {
            return AnonymousClass8XJ.LIZ.LIZ(j, z);
        }
        return -1;
    }

    public Object proxyUrl(C16758Di r15, String str, String[] strArr) {
        return AnonymousClass8XJ.LIZ.LIZ(str, r15.getSourceId(), 0, strArr, (AnonymousClass8YN) null, (String) null, (AnonymousClass8YP) null, (String) null, (String) null, false, false, (String) null);
    }

    private AnonymousClass8F4 LIZ(C16758Di r5, C16738Dg r6, String str) {
        if ((!LJFF() && !LJI()) || r5 == null) {
            return null;
        }
        AnonymousClass8F4 LIZ2 = AnonymousClass8F1.LIZ(r5, r6, C16368Bv.LIZ, AnonymousClass8BE.LIZ.LIZ().isUseLastNetworkSpeed());
        LIZ2.LJIJJLI = true;
        if (!TextUtils.isEmpty(str) && LIZLLL(str)) {
            LIZ2.LJIILJJIL = true;
        }
        if (LJFF() && this.LJIILJJIL.getBitrateSelectListener() != null) {
            this.LJIILJJIL.getBitrateSelectListener().LIZ(2, 2, LIZ2);
        }
        if (r6 == null && (LIZ2.LJIIJ == null || LIZ2.LJIIJ.LJFF == null || LIZ2.LJIIJ.LJFF.size() == 0)) {
            return null;
        }
        if (LIZ2.LIZJ != null) {
            this.LJIILIIL.put(LIZ2.LIZJ, LIZ2);
        }
        return LIZ2;
    }

    public final void LIZ(C16758Di r3, int i, String str) {
        if (str != null && r3 != null) {
            this.LJIIJ.put(str, Integer.valueOf(i));
            this.LJIIL.put(str, r3);
        }
    }

    public boolean preload(List<C16758Di> list, int i, List<C16758Di> list2, int i2) {
        if (this.LJIILJJIL.isPlayerPreferchCaption() && list != null && !list.isEmpty()) {
            if (this.LJIILJJIL.playerPreferchCaptionSize() > 0.0f) {
                i = (int) (this.LJIILJJIL.playerPreferchCaptionSize() * 1024.0f);
            }
            for (C16758Di next : list) {
                if (next != null) {
                    String sourceId = next.getSourceId();
                    C20708Sn.LIZ(sourceId, sourceId, next.getUrlList().get(0), (long) i);
                    LIZ(next, i, sourceId);
                }
            }
        }
        if (!this.LJIILJJIL.isPlayerPreferchTtsAudio() || list2 == null || list2.isEmpty()) {
            return true;
        }
        if (this.LJIILJJIL.playerPreferchTtsAudioSize() > 0.0f) {
            i2 = (int) (this.LJIILJJIL.playerPreferchTtsAudioSize() * 1024.0f);
        }
        for (C16758Di next2 : list2) {
            if (next2 != null) {
                String sourceId2 = next2.getSourceId();
                C20708Sn.LIZ(sourceId2, sourceId2, next2.getUrlList().get(0), (long) i2);
                LIZ(next2, i2, sourceId2);
            }
        }
        return true;
    }

    private boolean LIZ(AnonymousClass8YQ r12, AnonymousClass8YN r13, int i, long j) {
        AnonymousClass8YQ r5 = r12;
        AnonymousClass8YN r6 = r13;
        long j2 = j;
        if (r5 == null) {
            return false;
        }
        if (r6 == null) {
            if (LJFF()) {
                r6 = AnonymousClass8YN.Auto;
            } else {
                r6 = AnonymousClass8YR.LIZ.LIZ(this.LJIILJJIL.getProperResolution((String) null, new C17418Fw(r5)));
                if (r6 == null || r6 == AnonymousClass8YN.Undefine) {
                    r6 = C20708Sn.LIZIZ(r5);
                }
            }
        }
        long j3 = (long) i;
        if (j2 <= 0) {
            j2 = 0;
        }
        JqT jqT = new JqT(r5, r6, j3, j2);
        if (LJFF()) {
            jqT.LJIIIIZZ = 1;
        }
        C16758Di r2 = new C16758Di();
        C17418Fw r1 = new C17418Fw(r5);
        r2.setDashVideoId(r1.LIZIZ());
        LIZ(r2, i, r2.getDashVideoId());
        LIZ(r2, (C16738Dg) r1);
        AnonymousClass8XJ.LIZ.LIZ(jqT);
        return true;
    }

    /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r7v1, resolved type: boolean} */
    /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r7v3, resolved type: int} */
    /* JADX WARNING: type inference failed for: r7v0 */
    /* JADX WARNING: type inference failed for: r7v2 */
    /* JADX WARNING: type inference failed for: r7v9, types: [int] */
    /* JADX WARNING: type inference failed for: r7v11 */
    /* JADX WARNING: type inference failed for: r7v13 */
    /* JADX WARNING: type inference failed for: r7v14 */
    /* JADX WARNING: type inference failed for: r7v15 */
    /* JADX WARNING: Failed to insert additional move for type inference */
    /* JADX WARNING: Multi-variable type inference failed */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public boolean preload(X.C16758Di r29, int r30, X.AnonymousClass8PM r31, X.AnonymousClass8BK r32) {
        /*
            r28 = this;
            r3 = r28
            r3 = r3
            r4 = r29
            r4.getSourceId()
            r4.getBitRatedRatioUri()
            LIZIZ()
            boolean r0 = r3.LJIIZILJ
            r7 = 0
            if (r0 == 0) goto L_0x00aa
            if (r4 == 0) goto L_0x00aa
            java.lang.String r9 = r4.getSourceId()
            r0 = -1
            r5 = r30
            if (r5 == r0) goto L_0x0020
            if (r5 != 0) goto L_0x038a
        L_0x0020:
            int r2 = r3.LJIJI
            if (r2 <= 0) goto L_0x038a
        L_0x0024:
            com.ss.android.ugc.aweme.video.preload.PreloadSessionManager r1 = com.ss.android.ugc.aweme.video.preload.PreloadSessionManager.LIZ
            java.lang.String r0 = r4.getSourceId()
            com.ss.android.ugc.aweme.video.preload.PreloadSessionManager$PreloadSession r6 = r1.LIZIZ(r0)
            r1 = 1
            if (r6 != 0) goto L_0x0386
            com.ss.android.ugc.aweme.video.preload.PreloadSessionManager r6 = com.ss.android.ugc.aweme.video.preload.PreloadSessionManager.LIZ
            java.lang.String r0 = r4.getSourceId()
            com.ss.android.ugc.aweme.video.preload.PreloadSessionManager$PreloadSession r6 = r6.LIZ(r0)
            r20 = 1
        L_0x003d:
            int r15 = r3.LIZJ()
            boolean r0 = r4.isColdBoot()
            r10 = 0
            r14 = r31
            if (r0 == 0) goto L_0x0115
            java.lang.String r0 = r4.getDashVideoModelStr()
            boolean r0 = android.text.TextUtils.isEmpty(r0)
            if (r0 == 0) goto L_0x00ab
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r3.LJIILJJIL
            X.8F6 r8 = r0.getSelectedBitrateForColdBoot(r4)
            if (r8 == 0) goto L_0x009e
            java.lang.Object r0 = r8.LIZ
            if (r0 == 0) goto L_0x009e
            java.lang.String r5 = r8.LJFF
            X.7dR r11 = X.AnonymousClass7dR.LIZ
            java.lang.String r0 = r8.LJI
            r11.LIZ((java.lang.String) r5, (java.lang.String) r0)
            boolean r0 = android.text.TextUtils.isEmpty(r5)
            if (r0 != 0) goto L_0x0078
            boolean r0 = android.text.TextUtils.isEmpty(r9)
            if (r0 != 0) goto L_0x0078
            r3.LIZ((java.lang.String) r5, (java.lang.String) r9)
        L_0x0078:
            java.lang.Object r0 = r8.LIZ
            boolean r0 = r0 instanceof java.lang.String
            if (r0 == 0) goto L_0x0082
            java.lang.Object r10 = r8.LIZ
            java.lang.String r10 = (java.lang.String) r10
        L_0x0082:
            boolean r0 = android.text.TextUtils.isEmpty(r10)
            if (r0 != 0) goto L_0x009e
            java.lang.String[] r8 = new java.lang.String[r1]
            r8[r7] = r10
            long r0 = (long) r2
            X.8PP r7 = r14.LIZ
            java.lang.String r14 = r3.LIZ((X.AnonymousClass8PP) r7)
            r10 = r5
            r9 = r5
            r11 = r8
            r12 = r0
            X.C20708Sn.LIZ(r9, r10, r11, r12, r14)
            r3.LIZ((X.C16758Di) r4, (int) r2, (java.lang.String) r5)
            r7 = 1
        L_0x009e:
            if (r6 == 0) goto L_0x00aa
            int r0 = r3.cacheSize(r4)
            if (r0 <= 0) goto L_0x00a8
            if (r20 == 0) goto L_0x00aa
        L_0x00a8:
            r6.speed = r15
        L_0x00aa:
            return r7
        L_0x00ab:
            X.8Dh r1 = X.C16748Dh.LIZIZ     // Catch:{ all -> 0x009e }
            java.lang.String r0 = r4.getDashVideoModelStr()     // Catch:{ all -> 0x009e }
            X.8YQ r11 = r1.LIZ((java.lang.String) r0)     // Catch:{ all -> 0x009e }
            if (r11 == 0) goto L_0x009e
            X.8YO r0 = r11.LIZLLL     // Catch:{ all -> 0x009e }
            if (r0 == 0) goto L_0x009e
            X.8YO r0 = r11.LIZLLL     // Catch:{ all -> 0x009e }
            java.lang.String r1 = r0.LJII     // Catch:{ all -> 0x009e }
            boolean r0 = android.text.TextUtils.isEmpty(r1)     // Catch:{ all -> 0x009e }
            if (r0 != 0) goto L_0x00ce
            boolean r0 = android.text.TextUtils.isEmpty(r9)     // Catch:{ all -> 0x009e }
            if (r0 != 0) goto L_0x00ce
            r3.LIZ((java.lang.String) r1, (java.lang.String) r9)     // Catch:{ all -> 0x009e }
        L_0x00ce:
            LIZIZ()     // Catch:{ all -> 0x009e }
            r4.setDashVideoId(r1)     // Catch:{ all -> 0x009e }
            X.8Dh r0 = X.C16748Dh.LIZIZ     // Catch:{ all -> 0x009e }
            r0.LIZ(r1, r11)     // Catch:{ all -> 0x009e }
            X.7dR r1 = X.AnonymousClass7dR.LIZ     // Catch:{ all -> 0x009e }
            X.8YO r0 = r11.LIZLLL     // Catch:{ all -> 0x009e }
            java.lang.String r0 = r0.LJII     // Catch:{ all -> 0x009e }
            r1.LIZJ(r9, r0)     // Catch:{ all -> 0x009e }
            X.8YR r2 = X.AnonymousClass8YR.LIZ     // Catch:{ all -> 0x009e }
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r1 = r3.LJIILJJIL     // Catch:{ all -> 0x009e }
            X.8Fw r0 = new X.8Fw     // Catch:{ all -> 0x009e }
            r0.<init>(r11)     // Catch:{ all -> 0x009e }
            X.8YM r0 = r1.getProperResolution(r9, r0)     // Catch:{ all -> 0x009e }
            X.8YN r9 = r2.LIZ(r0)     // Catch:{ all -> 0x009e }
            if (r9 == 0) goto L_0x010e
            X.8YN r0 = X.AnonymousClass8YN.Undefine     // Catch:{ all -> 0x009e }
            if (r9 == r0) goto L_0x010e
        L_0x00f9:
            long r0 = (long) r5     // Catch:{ all -> 0x009e }
            X.JqP r8 = X.AnonymousClass8XJ.LIZ     // Catch:{ all -> 0x009e }
            X.JqT r2 = new X.JqT     // Catch:{ all -> 0x009e }
            r2.<init>(r11, r9, r0)     // Catch:{ all -> 0x009e }
            r2.LJIIIZ = r10     // Catch:{ all -> 0x009e }
            r8.LIZ(r2)     // Catch:{ all -> 0x009e }
            java.lang.String r0 = r4.getDashVideoId()     // Catch:{ all -> 0x009e }
            r3.LIZ((X.C16758Di) r4, (int) r5, (java.lang.String) r0)     // Catch:{ all -> 0x009e }
            goto L_0x009e
        L_0x010e:
            X.8YN r0 = X.C16748Dh.LIZ     // Catch:{ all -> 0x009e }
            X.8YN r9 = X.C20708Sn.LIZ((X.AnonymousClass8YQ) r11, (X.AnonymousClass8YN) r0)     // Catch:{ all -> 0x009e }
            goto L_0x00f9
        L_0x0115:
            java.lang.String r0 = r4.getDashVideoModelStr()
            boolean r0 = android.text.TextUtils.isEmpty(r0)
            if (r0 == 0) goto L_0x0303
            boolean r0 = r3.LJIJJ
            if (r0 != 0) goto L_0x0168
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r3.LJIILJJIL
            X.8CH r5 = r0.createVideoUrlProcessor()
            X.8Fc r0 = X.C17218Fc.LIZ
            X.7ct r0 = r0.getPlayerType()
            X.8FE r5 = r5.LIZ(r4, r0)
            if (r5 == 0) goto L_0x0163
            java.lang.String[] r0 = r5.LIZ
            if (r0 == 0) goto L_0x0163
            java.lang.String[] r0 = r5.LIZ
            int r0 = r0.length
            if (r0 <= 0) goto L_0x0163
            LIZIZ()
            X.7dR r10 = X.AnonymousClass7dR.LIZ
            java.lang.String r8 = r5.LIZJ
            java.lang.String r0 = r5.LJ
            r10.LIZ((java.lang.String) r8, (java.lang.String) r0)
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r3.LJIILJJIL
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()
            int r0 = r0.PlayerAbMedialoaderEnablePreconneExp()
            if (r0 != r1) goto L_0x02b8
            java.lang.String[] r8 = r5.LIZ
            int r1 = r8.length
        L_0x0159:
            if (r7 >= r1) goto L_0x02b8
            r0 = r8[r7]
            r3.LIZJ(r0)
            int r7 = r7 + 1
            goto L_0x0159
        L_0x0163:
            LIZIZ()
            goto L_0x009e
        L_0x0168:
            java.lang.String r8 = r4.getUri()
            LIZIZ()
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r3.LJIILJJIL
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()
            int r0 = r0.PlayerAbMedialoaderEnablePreconneExp()
            if (r0 != r1) goto L_0x01b3
            java.util.List r1 = r4.getUrlList()
            java.util.List r0 = r4.getBitRate()
            if (r0 == 0) goto L_0x019d
            java.util.List r0 = r4.getBitRate()
            int r0 = r0.size()
            if (r0 <= 0) goto L_0x019d
            java.util.List r0 = r4.getBitRate()
            java.lang.Object r0 = r0.get(r7)
            X.8Dn r0 = (X.C16808Dn) r0
            java.util.List r1 = r0.urlList()
        L_0x019d:
            if (r1 == 0) goto L_0x01b3
            java.util.Iterator r1 = r1.iterator()
        L_0x01a3:
            boolean r0 = r1.hasNext()
            if (r0 == 0) goto L_0x01b3
            java.lang.Object r0 = r1.next()
            java.lang.String r0 = (java.lang.String) r0
            r3.LIZJ(r0)
            goto L_0x01a3
        L_0x01b3:
            boolean r0 = r3.LJFF()
            if (r0 != 0) goto L_0x023f
            X.8PK r16 = new X.8PK
            r17 = r3
            r18 = r4
            r23 = r14
            r21 = r2
            r22 = r9
            r19 = r6
            r16.<init>(r17, r18, r19, r20, r21, r22, r23)
        L_0x01ca:
            java.util.List r13 = r4.getBitRate()
            r12 = 0
        L_0x01cf:
            int r0 = r13.size()
            if (r12 >= r0) goto L_0x0242
            java.lang.Object r0 = r13.get(r12)
            X.8Dn r0 = (X.C16808Dn) r0
            java.util.List r0 = r0.urlList()
            if (r0 == 0) goto L_0x020a
            int r0 = r0.size()
            if (r0 <= 0) goto L_0x020a
            X.JqP r11 = X.AnonymousClass8XJ.LIZ
            java.lang.Object r0 = r13.get(r12)
            X.8Dn r0 = (X.C16808Dn) r0
            java.util.List r0 = r0.urlList()
            java.lang.Object r9 = r0.get(r7)
            java.lang.String r9 = (java.lang.String) r9
            int r0 = r11.LIZLLL
            java.lang.String r5 = "DataLoaderHelper"
            if (r0 != 0) goto L_0x0205
            boolean r0 = android.text.TextUtils.isEmpty(r9)
            if (r0 == 0) goto L_0x020d
        L_0x0205:
            java.lang.String r0 = "[predown]  state or url is invalid, not allow predown"
            X.C18758La.LIZIZ(r5, r0)
        L_0x020a:
            int r12 = r12 + 1
            goto L_0x01cf
        L_0x020d:
            com.ss.mediakit.medialoader.AVMDLDataLoaderConfigure r0 = r11.LJIIJ
            int r0 = r0.mLoaderType
            if (r0 > 0) goto L_0x0219
            java.lang.String r0 = "[predown]  loader type is http, not allow predown"
            X.C18758La.LIZIZ(r5, r0)
            goto L_0x020a
        L_0x0219:
            java.util.concurrent.locks.ReentrantLock r0 = r11.LJIIZILJ
            r0.lock()
            java.lang.String r1 = "[predown] start predown for url: "
            java.lang.String r0 = java.lang.String.valueOf(r9)     // Catch:{ all -> 0x038d }
            java.lang.String r0 = r1.concat(r0)     // Catch:{ all -> 0x038d }
            X.C18758La.LIZIZ(r5, r0)     // Catch:{ all -> 0x038d }
            com.ss.mediakit.medialoader.AVMDLDataLoader r0 = r11.LJIIIZ     // Catch:{ all -> 0x038d }
            if (r0 == 0) goto L_0x0234
            com.ss.mediakit.medialoader.AVMDLDataLoader r0 = r11.LJIIIZ     // Catch:{ all -> 0x038d }
            r0.p2pPredown(r9)     // Catch:{ all -> 0x038d }
        L_0x0234:
            java.lang.String r0 = "[predown] end predown for url"
            X.C18758La.LIZIZ(r5, r0)     // Catch:{ all -> 0x038d }
            java.util.concurrent.locks.ReentrantLock r0 = r11.LJIIZILJ
            r0.unlock()
            goto L_0x020a
        L_0x023f:
            r16 = r10
            goto L_0x01ca
        L_0x0242:
            boolean r0 = r3.LJFF()
            if (r0 == 0) goto L_0x0267
            X.8F4 r0 = r3.LIZ((X.C16758Di) r4, (X.C16738Dg) r10)
            if (r0 == 0) goto L_0x0262
            X.JqT r9 = new X.JqT
            X.8Ya r7 = X.C17358Fq.LIZ((X.AnonymousClass8F4) r0)
            X.8YN r5 = X.AnonymousClass8YN.Auto
            long r0 = (long) r2
            r9.<init>(r7, r5, r0)
            r0 = 1
            r9.LJIIIIZZ = r0
            X.JqP r0 = X.AnonymousClass8XJ.LIZ
            r0.LIZ(r9)
        L_0x0262:
            r3.LIZ((X.C16758Di) r4, (int) r2, (java.lang.String) r8)
            goto L_0x0300
        L_0x0267:
            X.JqY r5 = new X.JqY
            long r0 = (long) r2
            X.8PP r9 = r14.LIZ
            java.lang.String r27 = r3.LIZ((X.AnonymousClass8PP) r9)
            r23 = r8
            r21 = r5
            r22 = r8
            r24 = r0
            r26 = r16
            r21.<init>(r22, r23, r24, r26, r27)
            r1 = 2
            r10 = r32
            if (r10 == 0) goto L_0x028b
            int r9 = r10.LIZ
            r0 = 1
            if (r9 != r0) goto L_0x02af
            r0 = 100
            r5.LJII = r0
        L_0x028b:
            r0 = 4
            java.lang.Object[] r9 = new java.lang.Object[r0]
            r9[r7] = r8
            r0 = 1
            r9[r0] = r8
            java.lang.Integer r0 = java.lang.Integer.valueOf(r2)
            r9[r1] = r0
            r1 = 3
            if (r10 == 0) goto L_0x029e
            int r7 = r10.LIZ
        L_0x029e:
            java.lang.Integer r0 = java.lang.Integer.valueOf(r7)
            r9[r1] = r0
            java.lang.String r0 = "addTask: key:%s, vid:%s, limit:%s, priority:%s"
            X.0HH.LIZ(r0, r9)
            X.JqP r0 = X.AnonymousClass8XJ.LIZ
            r0.LIZ(r5)
            goto L_0x0262
        L_0x02af:
            int r0 = r10.LIZ
            if (r0 != r1) goto L_0x028b
            r0 = 10000(0x2710, float:1.4013E-41)
            r5.LJII = r0
            goto L_0x028b
        L_0x02b8:
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r0 = r3.LJIILJJIL
            com.ss.android.ugc.aweme.video.preload.api.IPreloaderExperiment r0 = r0.getExperiment()
            int r8 = r0.PlayerAbPreloadSizeOffsetThresholdExp()
            long r10 = r4.getSize()
            long r0 = (long) r2
            int r7 = (r10 > r0 ? 1 : (r10 == r0 ? 0 : -1))
            if (r7 <= 0) goto L_0x02da
            long r10 = r4.getSize()
            long r10 = r10 - r0
            long r0 = (long) r8
            int r7 = (r10 > r0 ? 1 : (r10 == r0 ? 0 : -1))
            if (r7 > 0) goto L_0x02da
            long r0 = r4.getSize()
            int r2 = (int) r0
        L_0x02da:
            java.lang.String r1 = r5.LIZJ
            boolean r0 = android.text.TextUtils.isEmpty(r1)
            if (r0 != 0) goto L_0x02eb
            boolean r0 = android.text.TextUtils.isEmpty(r9)
            if (r0 != 0) goto L_0x02eb
            r3.LIZ((java.lang.String) r1, (java.lang.String) r9)
        L_0x02eb:
            java.lang.String r7 = r5.LIZJ
            java.lang.String r8 = r5.LIZJ
            java.lang.String[] r9 = r5.LIZ
            long r10 = (long) r2
            X.8PP r0 = r14.LIZ
            java.lang.String r12 = r3.LIZ((X.AnonymousClass8PP) r0)
            X.C20708Sn.LIZ(r7, r8, r9, r10, r12)
            java.lang.String r0 = r5.LIZJ
            r3.LIZ((X.C16758Di) r4, (int) r2, (java.lang.String) r0)
        L_0x0300:
            r7 = 1
            goto L_0x009e
        L_0x0303:
            X.8Dh r1 = X.C16748Dh.LIZIZ     // Catch:{ all -> 0x009e }
            java.lang.String r0 = r4.getDashVideoModelStr()     // Catch:{ all -> 0x009e }
            X.8YQ r2 = r1.LIZ((java.lang.String) r0)     // Catch:{ all -> 0x009e }
            if (r2 == 0) goto L_0x009e
            X.8YO r0 = r2.LIZLLL     // Catch:{ all -> 0x009e }
            if (r0 == 0) goto L_0x009e
            X.8YO r0 = r2.LIZLLL     // Catch:{ all -> 0x009e }
            java.lang.String r1 = r0.LJII     // Catch:{ all -> 0x009e }
            boolean r0 = android.text.TextUtils.isEmpty(r1)     // Catch:{ all -> 0x009e }
            if (r0 != 0) goto L_0x0326
            boolean r0 = android.text.TextUtils.isEmpty(r9)     // Catch:{ all -> 0x009e }
            if (r0 != 0) goto L_0x0326
            r3.LIZ((java.lang.String) r1, (java.lang.String) r9)     // Catch:{ all -> 0x009e }
        L_0x0326:
            LIZIZ()     // Catch:{ all -> 0x009e }
            r4.setDashVideoId(r1)     // Catch:{ all -> 0x009e }
            X.8Dh r0 = X.C16748Dh.LIZIZ     // Catch:{ all -> 0x009e }
            r0.LIZ(r1, r2)     // Catch:{ all -> 0x009e }
            X.7dR r1 = X.AnonymousClass7dR.LIZ     // Catch:{ all -> 0x009e }
            X.8YO r0 = r2.LIZLLL     // Catch:{ all -> 0x009e }
            java.lang.String r0 = r0.LJII     // Catch:{ all -> 0x009e }
            r1.LIZJ(r9, r0)     // Catch:{ all -> 0x009e }
            boolean r0 = r3.LJFF()     // Catch:{ all -> 0x009e }
            if (r0 == 0) goto L_0x0367
            X.8YN r9 = X.AnonymousClass8YN.Auto     // Catch:{ all -> 0x009e }
        L_0x0342:
            X.JqT r8 = new X.JqT     // Catch:{ all -> 0x009e }
            long r0 = (long) r5     // Catch:{ all -> 0x009e }
            r8.<init>(r2, r9, r0)     // Catch:{ all -> 0x009e }
            boolean r0 = r3.LJFF()     // Catch:{ all -> 0x009e }
            if (r0 == 0) goto L_0x0351
            r0 = 1
            r8.LJIIIIZZ = r0     // Catch:{ all -> 0x009e }
        L_0x0351:
            X.8Fw r0 = new X.8Fw     // Catch:{ all -> 0x009e }
            r0.<init>(r2)     // Catch:{ all -> 0x009e }
            r3.LIZ((X.C16758Di) r4, (X.C16738Dg) r0)     // Catch:{ all -> 0x009e }
            X.JqP r0 = X.AnonymousClass8XJ.LIZ     // Catch:{ all -> 0x009e }
            r0.LIZ(r8)     // Catch:{ all -> 0x009e }
            java.lang.String r0 = r4.getDashVideoId()     // Catch:{ all -> 0x009e }
            r3.LIZ((X.C16758Di) r4, (int) r5, (java.lang.String) r0)     // Catch:{ all -> 0x009e }
            goto L_0x009e
        L_0x0367:
            X.8YR r8 = X.AnonymousClass8YR.LIZ     // Catch:{ all -> 0x009e }
            com.ss.android.ugc.aweme.video.preload.IVideoPreloadConfig r1 = r3.LJIILJJIL     // Catch:{ all -> 0x009e }
            X.8Fw r0 = new X.8Fw     // Catch:{ all -> 0x009e }
            r0.<init>(r2)     // Catch:{ all -> 0x009e }
            X.8YM r0 = r1.getProperResolution(r9, r0)     // Catch:{ all -> 0x009e }
            X.8YN r9 = r8.LIZ(r0)     // Catch:{ all -> 0x009e }
            if (r9 == 0) goto L_0x037f
            X.8YN r0 = X.AnonymousClass8YN.Undefine     // Catch:{ all -> 0x009e }
            if (r9 == r0) goto L_0x037f
            goto L_0x0342
        L_0x037f:
            X.8YN r0 = X.C16748Dh.LIZ     // Catch:{ all -> 0x009e }
            X.8YN r9 = X.C20708Sn.LIZ((X.AnonymousClass8YQ) r2, (X.AnonymousClass8YN) r0)     // Catch:{ all -> 0x009e }
            goto L_0x0342
        L_0x0386:
            r20 = 0
            goto L_0x003d
        L_0x038a:
            r2 = r5
            goto L_0x0024
        L_0x038d:
            r1 = move-exception
            java.util.concurrent.locks.ReentrantLock r0 = r11.LJIIZILJ
            r0.unlock()
            throw r1
        */
        throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.video.preload.enginepreloader.EnginePreloader.preload(X.8Di, int, X.8PM, X.8BK):boolean");
    }

    public boolean preload(String str, String str2, int i, AnonymousClass8PM r14, AnonymousClass8BK r15) {
        AnonymousClass8YQ LIZ2 = C16748Dh.LIZIZ.LIZ(str);
        AnonymousClass8YN r6 = null;
        for (AnonymousClass8YN r1 : AnonymousClass8YN.values()) {
            if (r1.name().equals(str2)) {
                r6 = r1;
            }
        }
        return LIZ(LIZ2, r6, i, 0);
    }

    public void copyCache(C16758Di r9, String str, boolean z, boolean z2, C20598Sc r13) {
        String str2;
        if (r9 == null) {
            LIZ(r13);
        } else if (!TextUtils.isEmpty(r9.getDashVideoModelStr())) {
            LIZ(r13);
        } else {
            if (LJFF()) {
                AnonymousClass8FJ LJFF2 = AnonymousClass7dR.LIZ.LJFF(r9.getSourceId());
                if (LJFF2 != null) {
                    str2 = LJFF2.getUrlKey();
                } else {
                    str2 = r9.getUrlKey();
                }
            } else if (this.LJIILJJIL.createVideoUrlProcessor() != null) {
                str2 = this.LJIILJJIL.createVideoUrlProcessor().LIZ(r9, C17218Fc.LIZ.getPlayerType()).LIZJ;
            } else {
                str2 = "";
            }
            if (TextUtils.isEmpty(str2)) {
                LIZ(r13);
                return;
            }
            String str3 = str;
            AnonymousClass8T8 r0 = new AnonymousClass8T8(str2, str3, z, z2, new AnonymousClass8T6(this, r13));
            JqP jqP = AnonymousClass8XJ.LIZ;
            AVMDLCopyOperation aVMDLCopyOperation = new AVMDLCopyOperation(r0.LIZ, r0.LIZIZ, r0.LJ, r0.LIZLLL, new AnonymousClass8TN(jqP, r0));
            aVMDLCopyOperation.mCustomDir = r0.LIZJ;
            if (jqP.LIZLLL == 0) {
                jqP.LJIIZILJ.lock();
                try {
                    if (jqP.LJIIIZ != null) {
                        jqP.LJIIIZ.asyncCopyOperation(aVMDLCopyOperation);
                    }
                } catch (Throwable unused) {
                }
                jqP.LJIIZILJ.unlock();
            }
        }
    }

    public boolean preload(String str, String str2, int i, long j, AnonymousClass8PM r16, AnonymousClass8BK r17) {
        AnonymousClass8YQ LIZ2 = C16748Dh.LIZIZ.LIZ(str);
        AnonymousClass8YN r6 = null;
        for (AnonymousClass8YN r1 : AnonymousClass8YN.values()) {
            if (r1.name().equals(str2)) {
                r6 = r1;
            }
        }
        return LIZ(LIZ2, r6, i, j);
    }
}
