package com.ss.android.ugc.aweme.homepage.ui.inflate;

import X.9Ft;
import X.9Fx;
import X.C4966EpW;
import X.C5196EtE;
import X.O9k;
import android.app.Activity;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import com.bytedance.covode.number.Covode;
import com.bytedance.frameworks.apm.trace.MethodCollector;
import com.ss.android.ugc.aweme.main.uiApiImpl.HomePageUIFrameServiceImpl;
import java.util.List;

public class X2CFragmentMainPageIcon implements IFragmentMainPageIcon {
    public C4966EpW LIZ;
    public C4966EpW LIZIZ;
    public C4966EpW LIZJ;
    public C4966EpW LIZLLL;
    public C4966EpW LJ;
    public C4966EpW LJFF;
    public C4966EpW LJI;
    public O9k LJII;
    public C5196EtE LJIIIIZZ;
    public Integer LJIIIZ;

    static {
        Covode.recordClassIndex(83155);
    }

    public boolean meetTrigger() {
        return true;
    }

    public String prefix() {
        return "inflate_";
    }

    public void run(Context context) {
    }

    public int targetProcess() {
        return 1048575;
    }

    public List triggerOtherLegoComponents() {
        return null;
    }

    public 9Fx scenesType() {
        return 9Fx.DEFAULT;
    }

    public 9Ft triggerType() {
        return 9Ft.INFLATE;
    }

    public final Class<? extends Activity> LIZ() {
        return HomePageUIFrameServiceImpl.LJ().LIZ();
    }

    public final /* synthetic */ View LIZIZ() {
        C4966EpW epW = this.LIZIZ;
        if (epW == null) {
            return null;
        }
        LIZ(epW);
        C4966EpW epW2 = this.LIZIZ;
        this.LIZIZ = null;
        return epW2;
    }

    public final /* synthetic */ View LIZJ() {
        C4966EpW epW = this.LIZJ;
        if (epW == null) {
            return null;
        }
        LIZ(epW);
        C4966EpW epW2 = this.LIZJ;
        this.LIZJ = null;
        return epW2;
    }

    public final /* synthetic */ View LIZLLL() {
        C4966EpW epW = this.LIZLLL;
        if (epW == null) {
            return null;
        }
        LIZ(epW);
        C4966EpW epW2 = this.LIZLLL;
        this.LIZLLL = null;
        return epW2;
    }

    public final /* synthetic */ View LJ() {
        C4966EpW epW = this.LJFF;
        if (epW == null) {
            return null;
        }
        LIZ(epW);
        C4966EpW epW2 = this.LJFF;
        this.LJFF = null;
        return epW2;
    }

    public final /* synthetic */ View LJFF() {
        C4966EpW epW = this.LJI;
        if (epW == null) {
            return null;
        }
        LIZ(epW);
        C4966EpW epW2 = this.LJI;
        this.LJI = null;
        return epW2;
    }

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

    public static void LIZ(View view) {
        MethodCollector.i(6962);
        if (!(view == null || view.getParent() == null)) {
            ((ViewGroup) view.getParent()).removeView(view);
        }
        MethodCollector.o(6962);
    }

    /* JADX WARNING: Code restructure failed: missing block: B:3:0x0005, code lost:
        if (r8 != null) goto L_0x0007;
     */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public final void LIZ(android.content.Context r7, android.app.Activity r8) {
        /*
            r6 = this;
            if (r7 != 0) goto L_0x0005
            if (r8 != 0) goto L_0x0007
            return
        L_0x0005:
            if (r8 == 0) goto L_0x0008
        L_0x0007:
            r7 = r8
        L_0x0008:
            X.Crj r0 = X.7qE.LIZ     // Catch:{ all -> 0x01ed }
            java.lang.Object r0 = r0.getValue()     // Catch:{ all -> 0x01ed }
            java.lang.Boolean r0 = (java.lang.Boolean) r0     // Catch:{ all -> 0x01ed }
            boolean r0 = r0.booleanValue()     // Catch:{ all -> 0x01ed }
            if (r0 == 0) goto L_0x0024
            boolean r0 = r7 instanceof X.1hK     // Catch:{ all -> 0x01ed }
            if (r0 == 0) goto L_0x0024
            r0 = r7
            X.1hK r0 = (X.1hK) r0     // Catch:{ all -> 0x01ed }
            com.ss.android.ugc.aweme.homepage.ui.view.tab.HomeTabViewModel r0 = com.ss.android.ugc.aweme.homepage.ui.view.tab.HomeTabViewModel.LIZ((X.1hK) r0)     // Catch:{ all -> 0x01ed }
            r0.LIZ()     // Catch:{ all -> 0x01ed }
        L_0x0024:
            X.7qE r0 = X.7qE.LJI     // Catch:{ all -> 0x01ed }
            boolean r0 = r0.LIZJ()     // Catch:{ all -> 0x01ed }
            r3 = 0
            if (r0 == 0) goto L_0x017a
            X.9Fh r2 = X.9Fh.LJIILIIL     // Catch:{ all -> 0x01ed }
            java.lang.Class<com.ss.android.ugc.aweme.homepage.ui.inflate.PreDrawableInflate> r1 = com.ss.android.ugc.aweme.homepage.ui.inflate.PreDrawableInflate.class
            com.ss.android.ugc.aweme.homepage.ui.inflate.PreDrawableInflate r0 = new com.ss.android.ugc.aweme.homepage.ui.inflate.PreDrawableInflate     // Catch:{ all -> 0x01ed }
            r0.<init>()     // Catch:{ all -> 0x01ed }
            r2.LIZ(r1, r0)     // Catch:{ all -> 0x01ed }
            X.7qE r0 = X.7qE.LJI     // Catch:{ all -> 0x01ed }
            boolean r0 = r0.LIZLLL()     // Catch:{ all -> 0x01ed }
            if (r0 == 0) goto L_0x0053
            X.MNS r0 = X.MNS.LIZ     // Catch:{ all -> 0x01ed }
            X.FLR r0 = r0.LIZ()     // Catch:{ all -> 0x01ed }
            X.Eon r0 = r0.LJIIIIZZ()     // Catch:{ all -> 0x01ed }
            boolean r0 = r0.LIZIZ()     // Catch:{ all -> 0x01ed }
            if (r0 != 0) goto L_0x0053
            r5 = 1
            goto L_0x0054
        L_0x0053:
            r5 = 0
        L_0x0054:
            com.ss.android.ugc.aweme.homepage.api.ui.HomePageUIFrameService r2 = com.ss.android.ugc.aweme.main.uiApiImpl.HomePageUIFrameServiceImpl.LJ()     // Catch:{ all -> 0x01ed }
            X.EpW r4 = new X.EpW     // Catch:{ all -> 0x01ed }
            X.EpZ r0 = X.C4823EnD.LIZ(r7)     // Catch:{ all -> 0x01ed }
            r4.<init>(r0)     // Catch:{ all -> 0x01ed }
            r6.LIZ = r4     // Catch:{ all -> 0x01ed }
            if (r5 == 0) goto L_0x006f
            X.EpT r1 = new X.EpT     // Catch:{ all -> 0x01ed }
            X.EpW r0 = r6.LIZ     // Catch:{ all -> 0x01ed }
            r1.<init>(r0)     // Catch:{ all -> 0x01ed }
            r4.setIconTabLogic(r1)     // Catch:{ all -> 0x01ed }
        L_0x006f:
            X.Crj r0 = X.RXb.LIZ     // Catch:{ all -> 0x01ed }
            java.lang.Object r0 = r0.getValue()     // Catch:{ all -> 0x01ed }
            java.lang.Boolean r0 = (java.lang.Boolean) r0     // Catch:{ all -> 0x01ed }
            boolean r0 = r0.booleanValue()     // Catch:{ all -> 0x01ed }
            if (r0 == 0) goto L_0x00db
            X.Ekz r0 = X.C4685Ekz.LIZ     // Catch:{ all -> 0x01ed }
            boolean r0 = r0.LJIIL()     // Catch:{ all -> 0x01ed }
            if (r0 == 0) goto L_0x00a6
            X.Ekz r0 = X.C4685Ekz.LIZ     // Catch:{ all -> 0x01ed }
            boolean r0 = r0.LJIILJJIL()     // Catch:{ all -> 0x01ed }
            if (r0 != 0) goto L_0x00a6
            X.EpW r4 = new X.EpW     // Catch:{ all -> 0x01ed }
            X.Enq r0 = X.C4862Enq.LIZ     // Catch:{ all -> 0x01ed }
            X.EpZ r0 = r0.LIZ(r7)     // Catch:{ all -> 0x01ed }
            r4.<init>(r0)     // Catch:{ all -> 0x01ed }
            r6.LIZIZ = r4     // Catch:{ all -> 0x01ed }
            if (r5 == 0) goto L_0x00a6
            X.EpT r1 = new X.EpT     // Catch:{ all -> 0x01ed }
            X.EpW r0 = r6.LIZIZ     // Catch:{ all -> 0x01ed }
            r1.<init>(r0)     // Catch:{ all -> 0x01ed }
            r4.setIconTabLogic(r1)     // Catch:{ all -> 0x01ed }
        L_0x00a6:
            com.ss.android.ugc.aweme.search.ISearchService r0 = com.ss.android.ugc.aweme.search.SearchServiceImpl.LJJIIZ()     // Catch:{ all -> 0x01ed }
            boolean r0 = r0.LJIIIZ()     // Catch:{ all -> 0x01ed }
            if (r0 == 0) goto L_0x00c9
            X.EpW r1 = new X.EpW     // Catch:{ all -> 0x01ed }
            X.EpZ r0 = r2.LIZLLL((android.content.Context) r7)     // Catch:{ all -> 0x01ed }
            r1.<init>(r0)     // Catch:{ all -> 0x01ed }
            r6.LIZLLL = r1     // Catch:{ all -> 0x01ed }
            if (r5 == 0) goto L_0x012f
            X.EpW r1 = new X.EpW     // Catch:{ all -> 0x01ed }
            X.EpZ r0 = r2.LIZLLL((android.content.Context) r7)     // Catch:{ all -> 0x01ed }
            r1.<init>(r0)     // Catch:{ all -> 0x01ed }
            r6.LIZLLL = r1     // Catch:{ all -> 0x01ed }
            goto L_0x012f
        L_0x00c9:
            X.EpW r2 = new X.EpW     // Catch:{ all -> 0x01ed }
            com.ss.android.ugc.aweme.homepage.api.ui.HomePageUIFrameService r0 = com.ss.android.ugc.aweme.main.uiApiImpl.HomePageUIFrameServiceImpl.LJ()     // Catch:{ all -> 0x01ed }
            X.EpZ r0 = r0.LIZJ((android.content.Context) r7)     // Catch:{ all -> 0x01ed }
            r2.<init>(r0)     // Catch:{ all -> 0x01ed }
            r6.LIZJ = r2     // Catch:{ all -> 0x01ed }
            if (r5 == 0) goto L_0x012f
            goto L_0x0125
        L_0x00db:
            X.EpW r1 = new X.EpW     // Catch:{ all -> 0x01ed }
            X.Enq r0 = X.C4862Enq.LIZ     // Catch:{ all -> 0x01ed }
            X.EpZ r0 = r0.LIZ(r7)     // Catch:{ all -> 0x01ed }
            r1.<init>(r0)     // Catch:{ all -> 0x01ed }
            r6.LIZIZ = r1     // Catch:{ all -> 0x01ed }
            X.EpW r1 = new X.EpW     // Catch:{ all -> 0x01ed }
            X.EpZ r0 = r2.LIZJ((android.content.Context) r7)     // Catch:{ all -> 0x01ed }
            r1.<init>(r0)     // Catch:{ all -> 0x01ed }
            r6.LIZJ = r1     // Catch:{ all -> 0x01ed }
            X.EpW r1 = new X.EpW     // Catch:{ all -> 0x01ed }
            X.EpZ r0 = r2.LIZLLL((android.content.Context) r7)     // Catch:{ all -> 0x01ed }
            r1.<init>(r0)     // Catch:{ all -> 0x01ed }
            r6.LIZLLL = r1     // Catch:{ all -> 0x01ed }
            if (r5 == 0) goto L_0x012f
            X.EpW r2 = r6.LIZIZ     // Catch:{ all -> 0x01ed }
            X.EpT r1 = new X.EpT     // Catch:{ all -> 0x01ed }
            X.EpW r0 = r6.LIZIZ     // Catch:{ all -> 0x01ed }
            r1.<init>(r0)     // Catch:{ all -> 0x01ed }
            r2.setIconTabLogic(r1)     // Catch:{ all -> 0x01ed }
            X.EpW r2 = r6.LIZLLL     // Catch:{ all -> 0x01ed }
            X.EpT r1 = new X.EpT     // Catch:{ all -> 0x01ed }
            X.EpW r0 = r6.LIZLLL     // Catch:{ all -> 0x01ed }
            r1.<init>(r0)     // Catch:{ all -> 0x01ed }
            r2.setIconTabLogic(r1)     // Catch:{ all -> 0x01ed }
            X.EpW r2 = r6.LIZJ     // Catch:{ all -> 0x01ed }
            X.EpT r1 = new X.EpT     // Catch:{ all -> 0x01ed }
            X.EpW r0 = r6.LIZJ     // Catch:{ all -> 0x01ed }
            r1.<init>(r0)     // Catch:{ all -> 0x01ed }
            r2.setIconTabLogic(r1)     // Catch:{ all -> 0x01ed }
            goto L_0x012f
        L_0x0125:
            X.EpT r1 = new X.EpT     // Catch:{ all -> 0x01ed }
            X.EpW r0 = r6.LIZJ     // Catch:{ all -> 0x01ed }
            r1.<init>(r0)     // Catch:{ all -> 0x01ed }
            r2.setIconTabLogic(r1)     // Catch:{ all -> 0x01ed }
        L_0x012f:
            X.EpW r1 = new X.EpW     // Catch:{ all -> 0x01ed }
            X.EpZ r0 = X.C3682ENq.LIZ(r7)     // Catch:{ all -> 0x01ed }
            r1.<init>(r0)     // Catch:{ all -> 0x01ed }
            r6.LJFF = r1     // Catch:{ all -> 0x01ed }
            X.EpW r1 = new X.EpW     // Catch:{ all -> 0x01ed }
            X.EpZ r0 = X.C4864Ens.LIZ(r7)     // Catch:{ all -> 0x01ed }
            r1.<init>(r0)     // Catch:{ all -> 0x01ed }
            r6.LJ = r1     // Catch:{ all -> 0x01ed }
            X.EpW r1 = new X.EpW     // Catch:{ all -> 0x01ed }
            com.ss.android.ugc.aweme.profile.IProfileService r0 = com.ss.android.ugc.aweme.profile.ProfileServiceImpl.LJJIIJ()     // Catch:{ all -> 0x01ed }
            X.EpZ r0 = r0.LIZJ((android.content.Context) r7)     // Catch:{ all -> 0x01ed }
            r1.<init>(r0)     // Catch:{ all -> 0x01ed }
            r6.LJI = r1     // Catch:{ all -> 0x01ed }
            if (r5 == 0) goto L_0x017a
            X.EpW r2 = r6.LJFF     // Catch:{ all -> 0x01ed }
            X.EpT r1 = new X.EpT     // Catch:{ all -> 0x01ed }
            X.EpW r0 = r6.LJFF     // Catch:{ all -> 0x01ed }
            r1.<init>(r0)     // Catch:{ all -> 0x01ed }
            r2.setIconTabLogic(r1)     // Catch:{ all -> 0x01ed }
            X.EpW r2 = r6.LJ     // Catch:{ all -> 0x01ed }
            X.EpV r1 = new X.EpV     // Catch:{ all -> 0x01ed }
            X.EpW r0 = r6.LJ     // Catch:{ all -> 0x01ed }
            r1.<init>(r0)     // Catch:{ all -> 0x01ed }
            r2.setIconTabLogic(r1)     // Catch:{ all -> 0x01ed }
            X.EpW r2 = r6.LJI     // Catch:{ all -> 0x01ed }
            X.EpT r1 = new X.EpT     // Catch:{ all -> 0x01ed }
            X.EpW r0 = r6.LJI     // Catch:{ all -> 0x01ed }
            r1.<init>(r0)     // Catch:{ all -> 0x01ed }
            r2.setIconTabLogic(r1)     // Catch:{ all -> 0x01ed }
        L_0x017a:
            X.7qE r0 = X.7qE.LJI     // Catch:{ all -> 0x01ed }
            boolean r0 = r0.LJ()     // Catch:{ all -> 0x01ed }
            if (r0 == 0) goto L_0x018f
            X.EpW r0 = r6.LJ     // Catch:{ all -> 0x01ed }
            if (r0 == 0) goto L_0x018f
            X.O9k r1 = new X.O9k     // Catch:{ all -> 0x01ed }
            X.EpW r0 = r6.LJ     // Catch:{ all -> 0x01ed }
            r1.<init>(r7, r0)     // Catch:{ all -> 0x01ed }
            r6.LJII = r1     // Catch:{ all -> 0x01ed }
        L_0x018f:
            X.7qE r0 = X.7qE.LJI     // Catch:{ all -> 0x01ed }
            boolean r0 = r0.LJFF()     // Catch:{ all -> 0x01ed }
            if (r0 == 0) goto L_0x01d4
            boolean r0 = r7 instanceof X.1hK     // Catch:{ all -> 0x01ed }
            if (r0 == 0) goto L_0x01d4
            X.EtE r0 = new X.EtE     // Catch:{ all -> 0x01ed }
            r0.<init>((android.content.Context) r7, (char) r3)     // Catch:{ all -> 0x01ed }
            r6.LJIIIIZZ = r0     // Catch:{ all -> 0x01ed }
            X.1hK r0 = X.3jJ.LIZIZ(r7)     // Catch:{ all -> 0x01ed }
            com.ss.android.ugc.aweme.homepage.ui.view.tab.HomeTabViewModel r4 = com.ss.android.ugc.aweme.homepage.ui.view.tab.HomeTabViewModel.LIZ((X.1hK) r0)     // Catch:{ all -> 0x01ed }
            java.util.List r0 = r4.LIZLLL()     // Catch:{ all -> 0x01ed }
            java.util.Iterator r3 = r0.iterator()     // Catch:{ all -> 0x01ed }
        L_0x01b2:
            boolean r0 = r3.hasNext()     // Catch:{ all -> 0x01ed }
            if (r0 == 0) goto L_0x01c6
            java.lang.Object r2 = r3.next()     // Catch:{ all -> 0x01ed }
            X.EiP r2 = (X.C4525EiP) r2     // Catch:{ all -> 0x01ed }
            X.Enf r1 = X.C4866Enu.LJIIIIZZ     // Catch:{ all -> 0x01ed }
            X.EtE r0 = r6.LJIIIIZZ     // Catch:{ all -> 0x01ed }
            r1.LIZ(r0, r2, r4)     // Catch:{ all -> 0x01ed }
            goto L_0x01b2
        L_0x01c6:
            X.Enf r0 = X.C4866Enu.LJIIIIZZ     // Catch:{ all -> 0x01ed }
            X.1hK r7 = (X.1hK) r7     // Catch:{ all -> 0x01ed }
            int r0 = r0.LIZ(r4, r7)     // Catch:{ all -> 0x01ed }
            java.lang.Integer r0 = java.lang.Integer.valueOf(r0)     // Catch:{ all -> 0x01ed }
            r6.LJIIIZ = r0     // Catch:{ all -> 0x01ed }
        L_0x01d4:
            X.Crj r0 = X.7ku.LJJ     // Catch:{ all -> 0x01ed }
            java.lang.Object r0 = r0.getValue()     // Catch:{ all -> 0x01ed }
            java.lang.Boolean r0 = (java.lang.Boolean) r0     // Catch:{ all -> 0x01ed }
            boolean r0 = r0.booleanValue()     // Catch:{ all -> 0x01ed }
            if (r0 == 0) goto L_0x01ed
            com.ss.android.ugc.aweme.services.IExternalService r0 = com.ss.android.ugc.aweme.out.AVExternalServiceImpl.LIZ()     // Catch:{ all -> 0x01ed }
            com.ss.android.ugc.aweme.services.specialplus.ISpecialPlusService r0 = r0.specialPlusService()     // Catch:{ all -> 0x01ed }
            r0.isNeedShowSpecialPlusDirect()     // Catch:{ all -> 0x01ed }
        L_0x01ed:
            return
        */
        throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.homepage.ui.inflate.X2CFragmentMainPageIcon.LIZ(android.content.Context, android.app.Activity):void");
    }
}
