package com.ss.android.ugc.aweme.legoImp.task;

import X.AnonymousClass9FH;
import X.C22428Zd;
import X.C22438Ze;
import X.C25518ec;
import X.C29988lp;
import X.C42869Ft;
import X.C42909Fx;
import X.C43189Gz;
import X.RXb;
import com.bytedance.covode.number.Covode;
import java.util.List;

public final class InitWebViewHookTask implements AnonymousClass9FH, C22438Ze {
    static {
        Covode.recordClassIndex(90490);
    }

    public final String[] deps() {
        return null;
    }

    public final String prefix() {
        return "task_";
    }

    public final int priority() {
        return 1;
    }

    public final boolean serialExecute() {
        return false;
    }

    public final int targetProcess() {
        return 1048575;
    }

    public final List triggerOtherLegoComponents() {
        return null;
    }

    public final C42869Ft triggerType() {
        return C22428Zd.LIZ(this);
    }

    public final C42909Fx scenesType() {
        return C42909Fx.DEFAULT;
    }

    public final C25518ec type() {
        return C25518ec.BACKGROUND;
    }

    public final String key() {
        return getClass().getSimpleName();
    }

    public final boolean meetTrigger() {
        if (C43189Gz.LIZLLL.LIZIZ()) {
            return false;
        }
        return true;
    }

    public final C29988lp threadType() {
        if (((Boolean) RXb.LIZLLL.getValue()).booleanValue()) {
            return C29988lp.IO;
        }
        return C29988lp.CPU;
    }

    /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r7v0, resolved type: java.lang.Object[]} */
    /* JADX WARNING: Multi-variable type inference failed */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public final void run(android.content.Context r14) {
        /*
            r13 = this;
            X.9EH r0 = X.AnonymousClass9EH.LJJIFFI
            android.content.Context r2 = r0.LIZ()
            java.util.HashSet<java.lang.String> r1 = X.C08307rx.LJIIIIZZ
            java.lang.String r0 = r2.getPackageName()
            boolean r0 = r1.contains(r0)
            if (r0 == 0) goto L_0x0074
            java.util.concurrent.atomic.AtomicBoolean r0 = X.C08307rx.LJFF     // Catch:{ Exception -> 0x0070 }
            r4 = 1
            boolean r0 = r0.getAndSet(r4)     // Catch:{ Exception -> 0x0070 }
            if (r0 != 0) goto L_0x0074
            android.content.Context r1 = r2.getApplicationContext()     // Catch:{ Exception -> 0x0070 }
            boolean r0 = X.AnonymousClass7lW.LIZJ     // Catch:{ Exception -> 0x0070 }
            if (r0 != 0) goto L_0x006a
        L_0x0023:
            X.C08307rx.LJ = r1     // Catch:{ Exception -> 0x0070 }
            X.C08307rx.LIZ()     // Catch:{ Exception -> 0x0070 }
            java.lang.reflect.Method r6 = X.C08307rx.LIZIZ     // Catch:{ Exception -> 0x0070 }
            r1 = 0
            java.lang.Object[] r3 = new java.lang.Object[r1]     // Catch:{ Exception -> 0x0070 }
            r0 = 110000(0x1adb0, float:1.54143E-40)
            X.3GY.LIZ(r0)     // Catch:{ Exception -> 0x0070 }
            r5 = 0
            r0 = 2
            java.lang.Object[] r7 = new java.lang.Object[r0]     // Catch:{ Exception -> 0x0070 }
            r2 = 0
            r7[r1] = r2     // Catch:{ Exception -> 0x0070 }
            r7[r4] = r3     // Catch:{ Exception -> 0x0070 }
            r8 = 110000(0x1adb0, float:1.54143E-40)
            java.lang.String r9 = "java.lang.Object"
            r10 = 1
            r11 = 802449600(0x2fd468c0, float:3.8637005E-10)
            r12 = 2
            android.util.Pair r1 = X.3GY.LIZ(r5, r6, r7, r8, r9, r10, r11, r12)     // Catch:{ Exception -> 0x0070 }
            java.lang.Object r0 = r1.first     // Catch:{ Exception -> 0x0070 }
            java.lang.Boolean r0 = (java.lang.Boolean) r0     // Catch:{ Exception -> 0x0070 }
            boolean r0 = r0.booleanValue()     // Catch:{ Exception -> 0x0070 }
            if (r0 == 0) goto L_0x0065
            java.lang.Object r1 = r1.second     // Catch:{ Exception -> 0x0070 }
        L_0x0056:
            X.7jo r0 = new X.7jo     // Catch:{ Exception -> 0x0070 }
            r0.<init>(r1)     // Catch:{ Exception -> 0x0070 }
            java.lang.Object r1 = r0.LIZ()     // Catch:{ Exception -> 0x0070 }
            java.lang.reflect.Field r0 = X.C08307rx.LIZ     // Catch:{ Exception -> 0x0070 }
            r0.set(r2, r1)     // Catch:{ Exception -> 0x0070 }
            goto L_0x0074
        L_0x0065:
            java.lang.Object r1 = r6.invoke(r2, r3)     // Catch:{ Exception -> 0x0070 }
            goto L_0x0056
        L_0x006a:
            if (r1 == 0) goto L_0x006d
            goto L_0x0023
        L_0x006d:
            android.app.Application r1 = X.AnonymousClass7lW.LIZ     // Catch:{ Exception -> 0x0070 }
            goto L_0x0023
        L_0x0070:
            r0 = move-exception
            X.0HH.LIZ(r0)
        L_0x0074:
            com.ss.android.ugc.aweme.compliance.api.services.businesses.IComplianceBusinessService r0 = com.ss.android.ugc.aweme.compliance.api.a.LIZLLL()
            r0.LJIIJJI()
            return
        */
        throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.legoImp.task.InitWebViewHookTask.run(android.content.Context):void");
    }
}
