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

import X.0Gp;
import X.AnonymousClass7lW;
import X.AnonymousClass9EH;
import X.C06317oa;
import X.C08127rf;
import X.C11537xA;
import X.C22428Zd;
import X.C22438Ze;
import X.C24558d4;
import X.C25518ec;
import X.C42869Ft;
import X.C42909Fx;
import X.C48359aM;
import X.C48559ag;
import X.C48789b3;
import X.C48939bI;
import android.app.Application;
import android.content.Context;
import com.bytedance.covode.number.Covode;
import java.util.List;
import kotlin.h.b.n;

public final class KidsSkyEyeTask implements C22438Ze {
    static {
        Covode.recordClassIndex(90502);
    }

    public final boolean meetTrigger() {
        return true;
    }

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

    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();
    }

    /* JADX WARNING: Code restructure failed: missing block: B:5:0x0018, code lost:
        if (r0 == null) goto L_0x001a;
     */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public final com.bytedance.helios.api.config.AbstractSettingsModel LIZ(X.C48439aU r3) {
        /*
            r2 = this;
            if (r3 == 0) goto L_0x000e
            com.ss.android.ugc.aweme.compliance.api.services.monitor.IComplianceMonitorService r1 = com.ss.android.ugc.aweme.compliance.common.serviceimpl.ComplianceMonitorServiceImpl.LJI()
            X.9aP r0 = new X.9aP
            r0.<init>(r2, r3)
            r1.LIZ((X.49y) r0)
        L_0x000e:
            com.ss.android.ugc.aweme.compliance.api.services.monitor.IComplianceMonitorService r0 = com.ss.android.ugc.aweme.compliance.common.serviceimpl.ComplianceMonitorServiceImpl.LJI()
            if (r0 == 0) goto L_0x001e
            com.bytedance.helios.api.config.AbstractSettingsModel r0 = r0.LIZJ()
            if (r0 != 0) goto L_0x001d
        L_0x001a:
            kotlin.h.b.n.LIZIZ()
        L_0x001d:
            return r0
        L_0x001e:
            r0 = 0
            goto L_0x001a
        */
        throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.legoImp.task.KidsSkyEyeTask.LIZ(X.9aU):com.bytedance.helios.api.config.AbstractSettingsModel");
    }

    public final void run(Context context) {
        Object obj;
        if (C48789b3.LIZIZ.LJIIIIZZ()) {
            C24558d4 r1 = C24558d4.LIZLLL;
            Thread currentThread = Thread.currentThread();
            n.LIZIZ(currentThread, "");
            r1.LIZLLL(currentThread);
        }
        if (context != null) {
            obj = context.getApplicationContext();
            if (AnonymousClass7lW.LIZJ && obj == null) {
                obj = AnonymousClass7lW.LIZ;
            }
        } else {
            obj = null;
        }
        Application application = (Application) obj;
        if (application != null) {
            C48939bI LIZ = C48939bI.Companion.LIZ();
            C48559ag r4 = new C48559ag(this);
            Boolean LIZIZ = C11537xA.LIZIZ();
            n.LIZIZ(LIZIZ, "");
            LIZ.init(r4, new C08127rf(application, AnonymousClass9EH.LJIJI, LIZIZ.booleanValue(), AnonymousClass9EH.LJIILJJIL));
        }
        if (C48789b3.LIZIZ.LJIIIIZZ()) {
            C24558d4 r12 = C24558d4.LIZLLL;
            Thread currentThread2 = Thread.currentThread();
            n.LIZIZ(currentThread2, "");
            r12.LIZJ(currentThread2);
        }
        if (C06317oa.LIZIZ.LIZ()) {
            0Gp.LIZ(new C48359aM(this));
        }
    }
}
