package com.ss.android.ugc.aweme.discover.jedi;

import X.0Bs;
import X.0Bv;
import X.0Bx;
import X.0By;
import X.0CD;
import X.0CM;
import X.0Gp;
import X.1Bd;
import X.1Bn;
import X.1hK;
import X.2GD;
import X.2GI;
import X.2GO;
import X.2K7;
import X.2NP;
import X.2NQ;
import X.2Pr;
import X.2Wt;
import X.2ce;
import X.4Iv;
import X.7he;
import X.8AR;
import X.8Zu;
import X.8gI;
import X.AVG;
import X.B9I;
import X.BYu;
import X.Bb8;
import X.BbC;
import X.C1069Rc9;
import X.C3302STa;
import X.C3304STc;
import X.C3320STs;
import X.C3328SUa;
import X.C3341SUn;
import X.C3439SYh;
import X.C3444SYm;
import X.C3614Sc6;
import X.C3616Sc8;
import X.C3622ScE;
import X.C3623ScF;
import X.C3625ScH;
import X.C3627ScJ;
import X.C3629ScL;
import X.C3631ScN;
import X.C3633ScP;
import X.C3643ScZ;
import X.C3645Scb;
import X.C3646Scc;
import X.C3653Scj;
import X.C3658Sco;
import X.C3660Scq;
import X.C3662Scs;
import X.C3665Scv;
import X.C3680SdA;
import X.C3799Sf5;
import X.C3810SfG;
import X.C3812SfI;
import X.C4000SiK;
import X.C4458Spi;
import X.C4459Spj;
import X.C4477Sq1;
import X.CqM;
import X.Crj;
import X.EXZ;
import X.Etp;
import X.FNa;
import X.HeD;
import X.ISm;
import X.Jv1;
import X.LFp;
import X.LYd;
import X.Las;
import X.LcP;
import X.Ldp;
import X.Ldr;
import X.LeC;
import X.Lea;
import X.LsC;
import X.M12;
import X.MHo;
import X.MJb;
import X.MMQ;
import X.MNS;
import X.MYX;
import X.OC9;
import X.OQS;
import X.Pmj;
import X.Qlc;
import X.Qvm;
import X.SG1;
import X.STV;
import X.STZ;
import X.SU1;
import X.SU4;
import X.SUJ;
import X.SUT;
import X.SUU;
import X.SV0;
import X.SV5;
import android.content.res.Configuration;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.SparseArray;
import android.view.View;
import androidx.fragment.app.Fragment;
import androidx.lifecycle.SharedViewModelProvider;
import androidx.recyclerview.widget.GridLayoutManager;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.aweme.ad.preload.AdLandPagePreloadServiceImpl;
import com.ss.android.ugc.aweme.ad.preload.IAdLandPagePreloadService;
import com.ss.android.ugc.aweme.discover.eventcenter.EventCenter;
import com.ss.android.ugc.aweme.discover.helper.MusicPlayHelper;
import com.ss.android.ugc.aweme.discover.mixfeed.cs.ClickSearchViewModel;
import com.ss.android.ugc.aweme.discover.model.GlobalDoodleConfig;
import com.ss.android.ugc.aweme.discover.model.GradientBgData;
import com.ss.android.ugc.aweme.discover.model.QueryCorrectInfo;
import com.ss.android.ugc.aweme.discover.model.SearchApiResult;
import com.ss.android.ugc.aweme.discover.model.SearchIntermediateViewModel;
import com.ss.android.ugc.aweme.discover.model.SearchObserver;
import com.ss.android.ugc.aweme.discover.viewmodel.SearchInfoViewModel;
import com.ss.android.ugc.aweme.feed.model.Aweme;
import com.ss.android.ugc.aweme.profile.model.FollowStatus;
import com.ss.android.ugc.aweme.search.activity.SearchGlobalViewModel;
import com.ss.android.ugc.aweme.search.feedback.single.userguide.FeedbackGuideViewModel;
import com.ss.android.ugc.aweme.search.survey.SurveyViewModel;
import com.ss.android.ugc.aweme.views.WrapGridLayoutManager;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.concurrent.CancellationException;
import kotlin.h.b.n;
import org.greenrobot.eventbus.ThreadMode;

public final class SearchJediMixFeedFragment extends SearchJediFragment<STZ> implements 2GI, C4458Spi, SUU, 2GO {
    public static final C3665Scv LJIIJ = new C3665Scv((byte) 0);
    public MusicPlayHelper LIZIZ;
    public SurveyViewModel LIZJ;
    public final SUT<SearchJediMixFeedFragment> LIZLLL = new SUT<>();
    public C3812SfI LJ;
    public C3810SfG LJIIIZ;
    public SearchGlobalViewModel LJJJJLL;
    public Etp LJJJJZ;
    public ClickSearchViewModel LJJJJZI;
    public FeedbackGuideViewModel LJJJLIIL;
    public final Crj LJJJLL = 7he.LIZ(C3658Sco.LIZ);
    public SU1 LJJJLZIJ;
    public final 0CM<Integer> LJJJZ;
    public EventCenter LJJL;
    public boolean LJJLI;
    public C4477Sq1 LJJLIIIIJ;
    public final Crj LJJLIIIJ;
    public final Crj LJJLIIIJILLIZJL;
    public SparseArray LJJLIIIJJI;

    static {
        Covode.recordClassIndex(64722);
    }

    private final int[] LJJJJLL() {
        return (int[]) this.LJJJLL.getValue();
    }

    private final C3627ScJ LJJJJZI() {
        return (C3627ScJ) this.LJJLIIIJ.getValue();
    }

    private final Runnable LJJJLIIL() {
        return (Runnable) this.LJJLIIIJILLIZJL.getValue();
    }

    public final void LIZJ() {
        SparseArray sparseArray = this.LJJLIIIJJI;
        if (sparseArray != null) {
            sparseArray.clear();
        }
    }

    public final String LIZLLL() {
        return "general_search";
    }

    public final boolean LJIJI() {
        return true;
    }

    public final boolean LJIJJLI() {
        return false;
    }

    /* JADX WARNING: type inference failed for: r9v0, types: [com.ss.android.ugc.aweme.discover.ui.SearchFragment, com.ss.android.ugc.aweme.discover.jedi.SearchJediMixFeedFragment] */
    public final Map<Integer, Object> getSubscriberEventTypes() {
        Map<Integer, Object> subscriberEventTypes = SearchJediMixFeedFragment.super.getSubscriberEventTypes();
        subscriberEventTypes.put(6, new C1069Rc9(SearchJediMixFeedFragment.class, "onVideoEvent", Etp.class, ThreadMode.POSTING, 0, false));
        subscriberEventTypes.put(207, new C1069Rc9(SearchJediMixFeedFragment.class, "onReceiveCancelEvent", OC9.class, ThreadMode.BACKGROUND, 0, false));
        subscriberEventTypes.put(208, new C1069Rc9(SearchJediMixFeedFragment.class, "onReceiveHotSpotAwemeListMerge", 2NQ.class, ThreadMode.POSTING, 0, false));
        return subscriberEventTypes;
    }

    /* JADX WARNING: type inference failed for: r0v0, types: [X.SUD] */
    /* JADX WARNING: Multi-variable type inference failed */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public final X.SUD LJJ() {
        /*
            r1 = this;
            r0 = r1
            return r0
        */
        throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.discover.jedi.SearchJediMixFeedFragment.LJJ():X.SUD");
    }

    public final BbC<?> LJJI() {
        return this;
    }

    /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r0v0, resolved type: X.SUV} */
    /* JADX WARNING: Multi-variable type inference failed */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public final X.SUV LJJIFFI() {
        /*
            r1 = this;
            r0 = r1
            return r0
        */
        throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.discover.jedi.SearchJediMixFeedFragment.LJJIFFI():X.SUV");
    }

    /* JADX WARNING: type inference failed for: r2v0, types: [com.ss.android.ugc.aweme.discover.ui.SearchFragment, com.ss.android.ugc.aweme.discover.jedi.SearchJediMixFeedFragment] */
    public final void LIZ(View view) {
        M12.LIZ(view);
        SearchJediMixFeedFragment.super.LIZ(view);
        C4477Sq1 LJJIIJ = LJJIIJ();
        Objects.requireNonNull(LJJIIJ, "null cannot be cast to non-null type com.ss.android.ugc.aweme.discover.mixfeed.ui.SearchRecyclerView");
        this.LJJLIIIIJ = LJJIIJ;
    }

    /* JADX WARNING: type inference failed for: r4v0, types: [com.ss.android.ugc.aweme.discover.ui.SearchFragment, androidx.fragment.app.Fragment, com.ss.android.ugc.aweme.discover.jedi.SearchJediMixFeedFragment] */
    public final void LIZ(View view, Bundle bundle) {
        M12.LIZ(view);
        SearchJediMixFeedFragment.super.LIZ(view, bundle);
        1hK activity = getActivity();
        if (activity != null) {
            this.LIZIZ = LIZ(activity).LIZ(MusicPlayHelper.class);
            n.LIZIZ(activity, "");
            this.LJIIIZ = new C3810SfG(activity, LJJIIJ(), LJJJJZI());
            this.LIZJ = LIZ(activity).LIZ(SurveyViewModel.class);
        }
    }

    /* JADX WARNING: type inference failed for: r1v0, types: [com.ss.android.ugc.aweme.discover.ui.SearchFragment, com.ss.android.ugc.aweme.discover.jedi.SearchJediMixFeedFragment] */
    public final void LIZ(Throwable th) {
        M12.LIZ(th);
        if (!(th instanceof CancellationException)) {
            LIZJ(new Exception(th));
        }
    }

    /* JADX WARNING: type inference failed for: r2v0, types: [com.ss.android.ugc.aweme.discover.ui.SearchFragment, androidx.fragment.app.Fragment, com.ss.android.ugc.aweme.discover.jedi.SearchJediMixFeedFragment] */
    public final void LIZ(List<? extends STZ> list, boolean z) {
        M12.LIZ(list);
        FNa.INSTANCE.await();
        SearchJediMixFeedFragment.super.LIZ(list, z);
        ClickSearchViewModel clickSearchViewModel = this.LJJJJZI;
        if (clickSearchViewModel != null) {
            clickSearchViewModel.LIZJ();
        }
        MYX.LIZIZ.LIZ(hashCode());
        2Wt.LIZ.LIZ(hashCode());
    }

    /* JADX WARNING: type inference failed for: r2v0, types: [com.bytedance.ies.uikit.base.AbsFragment, com.ss.android.ugc.aweme.discover.ui.SearchFragment, com.ss.android.ugc.aweme.discover.jedi.SearchJediMixFeedFragment] */
    public final void LIZ(FollowStatus followStatus) {
        M12.LIZ(followStatus);
        if (aq_() && LJJIJIIJIL() != null) {
            C3680SdA LJJIJIIJIL = LJJIJIIJIL();
            Objects.requireNonNull(LJJIJIIJIL, "null cannot be cast to non-null type com.ss.android.ugc.aweme.discover.jedi.adapter.SearchJediMixFeedAdapter");
            LJJIJIIJIL.LIZ(followStatus);
        }
    }

    /* JADX WARNING: type inference failed for: r1v0, types: [com.ss.android.ugc.aweme.discover.ui.SearchFragment, com.ss.android.ugc.aweme.discover.jedi.SearchJediMixFeedFragment] */
    public final void LJIIL() {
        LJJJLL();
        c_(true);
    }

    /* JADX WARNING: type inference failed for: r0v0, types: [com.ss.android.ugc.aweme.discover.ui.SearchFragment, com.ss.android.ugc.aweme.discover.jedi.SearchJediMixFeedFragment] */
    public final void LJIJ() {
        SearchJediMixFeedFragment.super.LJIJ();
        LJIIIZ();
    }

    public static boolean LJJJJZ() {
        try {
            return 2K7.LIZ.LIZJ();
        } catch (Exception unused) {
            return false;
        }
    }

    /* JADX WARNING: type inference failed for: r2v0, types: [com.ss.android.ugc.aweme.discover.ui.SearchFragment, com.ss.android.ugc.aweme.discover.jedi.SearchJediMixFeedFragment] */
    private void LJJJLL() {
        if (LJJJJIZL()) {
            LJJIJL().setIsShowingSuicideHeader(true);
        }
    }

    /* JADX WARNING: type inference failed for: r1v0, types: [com.ss.android.ugc.aweme.discover.ui.SearchBaseFragment, com.ss.android.ugc.aweme.discover.jedi.SearchJediMixFeedFragment] */
    private final String LJJL() {
        String searchFrom;
        SV0 sv0 = this.LJJI;
        if (sv0 == null || (searchFrom = sv0.getSearchFrom()) == null) {
            return "null";
        }
        return searchFrom;
    }

    public final void LJIILJJIL() {
        C4477Sq1 sq1 = this.LJJLIIIIJ;
        if (sq1 == null) {
            n.LIZIZ();
        }
        sq1.LJIJ();
    }

    public final void LJIILL() {
        C4477Sq1 sq1 = this.LJJLIIIIJ;
        if (sq1 == null) {
            n.LIZIZ();
        }
        sq1.LJIIZILJ();
    }

    public final void LJIILLIIL() {
        C4477Sq1 sq1 = this.LJJLIIIIJ;
        if (sq1 == null) {
            n.LIZIZ();
        }
        sq1.LJIILLIIL();
    }

    /* JADX WARNING: type inference failed for: r2v0, types: [com.ss.android.ugc.aweme.discover.ui.SearchFragment, com.ss.android.ugc.aweme.discover.jedi.SearchJediMixFeedFragment] */
    public final void LJIIZILJ() {
        SearchJediMixFeedFragment.super.LJIIZILJ();
        C3810SfG sfG = this.LJIIIZ;
        if (sfG != null) {
            sfG.LIZ((GradientBgData) null);
        }
    }

    public final String LJIL() {
        C3304STc sTc;
        SUT<SearchJediMixFeedFragment> sut = this.LIZLLL;
        if (sut == null || (sTc = sut.LJII) == null) {
            return null;
        }
        return sTc.LJIJJ;
    }

    /* JADX WARNING: type inference failed for: r2v0, types: [com.ss.android.ugc.aweme.discover.ui.SearchFragment, com.ss.android.ugc.aweme.discover.jedi.SearchJediMixFeedFragment] */
    public final void onPause() {
        SearchJediMixFeedFragment.super.onPause();
        C3812SfI sfI = this.LJ;
        if (sfI != null) {
            sfI.LJII = true;
        }
        LJIIIZ();
    }

    /* JADX WARNING: type inference failed for: r1v0, types: [com.ss.android.ugc.aweme.discover.ui.SearchBaseFragment, com.ss.android.ugc.aweme.discover.jedi.SearchJediMixFeedFragment] */
    private final String LJJJLZIJ() {
        SV5 searchEnterParam;
        String enterSearchFrom;
        SV0 sv0 = this.LJJI;
        if (sv0 == null || (searchEnterParam = sv0.getSearchEnterParam()) == null || (enterSearchFrom = searchEnterParam.getEnterSearchFrom()) == null) {
            return "null";
        }
        return enterSearchFrom;
    }

    private final String LJJJZ() {
        C3439SYh LIZ = 8gI.LIZIZ.LIZ();
        if (LIZ != null) {
            return C3320STs.LIZ(LIZ.LIZ());
        }
        return "null";
    }

    /* JADX WARNING: type inference failed for: r1v0, types: [com.ss.android.ugc.aweme.discover.ui.SearchFragment, com.ss.android.ugc.aweme.discover.jedi.SearchJediMixFeedFragment] */
    public final void LJIILIIL() {
        C4477Sq1 sq1 = this.LJJLIIIIJ;
        if (sq1 == null) {
            n.LIZIZ();
        }
        sq1.LJIILL();
        LJJJJJL();
        LJJJJI();
    }

    public SearchJediMixFeedFragment() {
        SearchObserver searchObserver = new SearchObserver();
        searchObserver.setListener(new C3645Scb(this));
        n.LIZIZ(searchObserver, "");
        this.LJJJZ = searchObserver;
        this.LJJLIIIJ = 7he.LIZ(new C3653Scj(this));
        this.LJJLIIIJILLIZJL = 7he.LIZ(new C3662Scs(this));
    }

    /* JADX WARNING: type inference failed for: r4v0, types: [com.ss.android.ugc.aweme.discover.ui.SearchFragment, com.ss.android.ugc.aweme.discover.jedi.SearchJediMixFeedFragment] */
    public final void LJFF() {
        if (this.LIZLLL.LJII instanceof C3304STc) {
            SG1 LJJJ = LJJJ();
            Bb8 bb8 = this.LIZLLL.LJII;
            n.LIZIZ(bb8, "");
            OQS LIZ = SG1.LIZ(LJJJ, (SearchApiResult) bb8.getData(), (Exception) null, 2);
            if (LIZ != null) {
                LIZ(LIZ);
                return;
            }
        }
        LJJJJ();
        LJJJJJL();
    }

    /* JADX WARNING: type inference failed for: r2v0, types: [com.ss.android.ugc.aweme.discover.ui.SearchFragment, com.ss.android.ugc.aweme.discover.jedi.SearchJediMixFeedFragment] */
    public final void LJIIIZ() {
        if (LJJJJLI() && (LJJIJIIJIL() instanceof C3680SdA)) {
            Objects.requireNonNull(LJJIJIIJIL(), "null cannot be cast to non-null type com.ss.android.ugc.aweme.discover.jedi.adapter.SearchJediMixFeedAdapter");
            C3799Sf5.LIZIZ.LJFF();
            C3799Sf5.LIZIZ.LIZ();
        }
        C3812SfI sfI = this.LJ;
        if (sfI != null) {
            sfI.LJI();
        }
    }

    /* JADX WARNING: type inference failed for: r2v0, types: [com.ss.android.ugc.aweme.discover.ui.SearchFragment, androidx.fragment.app.Fragment, com.ss.android.ugc.aweme.discover.jedi.SearchJediMixFeedFragment] */
    public final void onResume() {
        SearchJediMixFeedFragment.super.onResume();
        View view = getView();
        if (view != null) {
            view.post(C3660Scq.LIZ);
        }
        C4459Spj.LIZ.LIZ(hashCode());
        C3812SfI sfI = this.LJ;
        if (sfI != null) {
            sfI.LJII = false;
        }
        if (!LJJJJIZL()) {
            LJIIJ();
        }
        Las.LIZIZ = hashCode();
    }

    /* JADX WARNING: type inference failed for: r4v0, types: [com.ss.android.ugc.aweme.discover.ui.SearchFragment, com.ss.android.ugc.aweme.discover.jedi.SearchJediMixFeedFragment] */
    public final void LJIIJ() {
        C3812SfI sfI;
        SearchIntermediateViewModel searchIntermediateViewModel;
        2ce<Integer> intermediateState;
        Integer num;
        Object obj = null;
        if (LJJJJLI() && (LJJIJIIJIL() instanceof C3680SdA) && (searchIntermediateViewModel = this.LJIJJ) != null && (intermediateState = searchIntermediateViewModel.getIntermediateState()) != null && (num = (Integer) intermediateState.getValue()) != null && num.intValue() == 0) {
            C3680SdA LJJIJIIJIL = LJJIJIIJIL();
            Objects.requireNonNull(LJJIJIIJIL, "null cannot be cast to non-null type com.ss.android.ugc.aweme.discover.jedi.adapter.SearchJediMixFeedAdapter");
            C3812SfI sfI2 = LJJIJIIJIL.LIZLLL;
            if (sfI2 != null) {
                sfI2.LJFF();
            }
        }
        1Bn<Boolean> r0 = LJJIJL().isRefreshingData;
        if (r0 != null) {
            obj = r0.getValue();
        }
        if (!n.LIZ(obj, true)) {
            1Bn<Boolean> r1 = LJJIJL().isShowingFilters;
            n.LIZIZ(r1, "");
            if ((true ^ n.LIZ(r1.getValue(), true)) && (sfI = this.LJ) != null) {
                sfI.LJ();
            }
        }
    }

    /* JADX WARNING: type inference failed for: r6v0, types: [com.ss.android.ugc.aweme.discover.ui.SearchFragment, com.ss.android.ugc.aweme.discover.ui.SearchBaseFragment, com.ss.android.ugc.aweme.discover.jedi.SearchJediMixFeedFragment] */
    public final void bO_() {
        EXZ exz = this.LIZLLL.LJII;
        n.LIZIZ(exz, "");
        if (!exz.isDataEmpty()) {
            EXZ exz2 = this.LIZLLL.LJII;
            n.LIZIZ(exz2, "");
            if (exz2.isHasMore()) {
                SU1 su1 = this.LJJJLZIJ;
                if (su1 == null || !su1.LJIILLIIL) {
                    this.LIZLLL.LIZ(new Object[]{4, LJJII(), 0, 0, 0, Integer.valueOf(this.LJJIJIIJI), this.LJJIJIIJIL, LJJJJL()});
                }
            }
        }
    }

    /* JADX WARNING: type inference failed for: r5v0, types: [com.ss.android.ugc.aweme.discover.ui.SearchFragment, androidx.fragment.app.Fragment, com.ss.android.ugc.aweme.discover.jedi.SearchJediMixFeedFragment] */
    public final void LJIIIIZZ() {
        SU4 su4;
        if (MMQ.LIZJ.LIZ()) {
            SU4 su42 = new SU4();
            su42.LIZJ = this.LIZLLL;
            su4 = su42;
        } else {
            su4 = new SU1();
        }
        this.LJJJLZIJ = su4;
        SearchGlobalViewModel searchGlobalViewModel = this.LJJJJLL;
        boolean z = true;
        if (searchGlobalViewModel == null || !searchGlobalViewModel.LIZ()) {
            z = false;
        }
        su4.LJIIJ = z;
        this.LIZLLL.a_(this);
        this.LIZLLL.LIZ(this.LJJJLZIJ);
        ClickSearchViewModel LIZ = LIZ(this).LIZ(ClickSearchViewModel.class);
        this.LJJJJZI = LIZ;
        if (LIZ != null) {
            LIZ.LIZ(this);
        }
        B9I LJJIJIIJIL = LJJIJIIJIL();
        C3680SdA sdA = null;
        if (!(LJJIJIIJIL instanceof C3680SdA)) {
            LJJIJIIJIL = null;
        }
        C3680SdA sdA2 = (C3680SdA) LJJIJIIJIL;
        if (sdA2 != null) {
            sdA2.LJFF = this.LJJJJZI;
        }
        this.LIZLLL.LJII.LJIIIZ = hashCode();
        FeedbackGuideViewModel LIZ2 = LIZ(this).LIZ(FeedbackGuideViewModel.class);
        LIZ2.LIZ(this);
        C3680SdA LJJIJIIJIL2 = LJJIJIIJIL();
        if (LJJIJIIJIL2 instanceof C3680SdA) {
            sdA = LJJIJIIJIL2;
        }
        C3680SdA sdA3 = sdA;
        if (sdA3 != null) {
            sdA3.LJI = LIZ2;
        }
        this.LJJJLIIL = LIZ2;
        if (getActivity() != null) {
            1Bn<Integer> r3 = LJJIJL().searchState;
            if (r3 != null) {
                SearchObserver searchObserver = new SearchObserver();
                searchObserver.setListener(new C3629ScL(this));
                r3.observe(this, searchObserver);
            }
            1Bn<Boolean> r2 = LJJIJL().isRefreshingData;
            if (r2 != null) {
                r2.observe(this, new C3623ScF(this));
            }
            1Bn<Boolean> r22 = LJJIJL().isShowingFilters;
            if (r22 != null) {
                r22.observe(this, new C3631ScN(this));
            }
            1Bn<Boolean> r23 = LJJIJL().isShowingSuicideHeader;
            if (r23 != null) {
                r23.observe(this, new C3633ScP(this));
            }
        }
    }

    /* JADX WARNING: type inference failed for: r6v0, types: [com.ss.android.ugc.aweme.discover.ui.SearchFragment, androidx.fragment.app.Fragment, com.ss.android.ugc.aweme.discover.jedi.SearchJediMixFeedFragment] */
    public final void LJIIJJI() {
        int LIZIZ2 = MNS.LIZ.LIZ().LIZIZ();
        SearchJediMixFeedFragment$initAdapter$layoutManager$1 searchJediMixFeedFragment$initAdapter$layoutManager$1 = new SearchJediMixFeedFragment$initAdapter$layoutManager$1(this, LIZIZ2, getContext(), LIZIZ2);
        searchJediMixFeedFragment$initAdapter$layoutManager$1.LJJIZ = MJb.LIZ.LIZ();
        LJJIIJ().setLayoutManager(searchJediMixFeedFragment$initAdapter$layoutManager$1);
        if (MHo.LIZ.LIZIZ()) {
            LJJIIJ().LIZ(new Pmj());
        }
        LJJIIJ().LIZ(new 4Iv(LIZIZ2, (int) HeD.LIZIZ(getContext(), 8.0f)));
        if (!this.LJJLI) {
            C3680SdA sdA = new C3680SdA(LJJIIJ(), LJJJJZI(), new C3614Sc6(this));
            LJJIIJ().addOnAttachStateChangeListener(new C3646Scc(this));
            if (searchJediMixFeedFragment$initAdapter$layoutManager$1.LIZIZ <= 2) {
                C3812SfI sfI = new C3812SfI(LJJIIJ(), LJJIIZ());
                this.LJ = sfI;
                M12.LIZ(sfI);
                sdA.LIZLLL = sfI;
            }
            LIZ(sdA);
            this.LJJLI = true;
            C3625ScH.LIZIZ.LIZ(getActivity(), new C3625ScH(LJJJJZI()));
        }
    }

    /* JADX WARNING: type inference failed for: r4v0, types: [com.ss.android.ugc.aweme.discover.ui.SearchFragment, androidx.fragment.app.Fragment, com.ss.android.ugc.aweme.discover.ui.SearchBaseFragment, com.ss.android.ugc.aweme.discover.jedi.SearchJediMixFeedFragment, com.ss.android.ugc.aweme.discover.jedi.SearchJediFragment] */
    public final void onDestroyView() {
        SearchJediMixFeedFragment.super.onDestroyView();
        C3810SfG sfG = this.LJIIIZ;
        if (sfG != null) {
            sfG.LIZ();
        }
        Jv1.LIZ(hashCode());
        MYX myx = MYX.LIZIZ;
        int hashCode = hashCode();
        Map LIZIZ2 = myx.LIZIZ();
        if (LIZIZ2 != null && LIZIZ2.containsKey(Integer.valueOf(hashCode))) {
            LIZIZ2.remove(Integer.valueOf(hashCode));
        }
        Map LIZJ2 = myx.LIZJ();
        if (LIZJ2 != null && LIZJ2.containsKey(Integer.valueOf(hashCode))) {
            LIZJ2.remove(Integer.valueOf(hashCode));
        }
        Map LIZLLL2 = myx.LIZLLL();
        if (LIZLLL2 != null && LIZLLL2.containsKey(Integer.valueOf(hashCode))) {
            LIZLLL2.remove(Integer.valueOf(hashCode));
        }
        Qlc.LIZ.LIZ().remove(Integer.valueOf(hashCode()));
        LJJIJL().searchState.removeObservers(this);
        LYd.LIZIZ.LIZ();
        this.LIZLLL.do_();
        this.LIZLLL.LJIIIIZZ();
        CqM.LIZ(new C4000SiK(hashCode(), 3));
        LIZJ();
    }

    /* JADX WARNING: type inference failed for: r1v0, types: [com.ss.android.ugc.aweme.discover.ui.SearchFragment, com.ss.android.ugc.aweme.discover.jedi.SearchJediMixFeedFragment] */
    public final void LIZIZ(boolean z) {
        LJJIJIIJIL().setShowFooter(z);
    }

    public static 0Bx LIZ(1hK r2) {
        0Bx LIZ = 0By.LIZ(r2, (0Bv) null);
        if (2GD.LIZ) {
            0Bs.LIZ(LIZ, r2);
        }
        return LIZ;
    }

    @ISm(LIZ = ThreadMode.BACKGROUND)
    public final void onReceiveCancelEvent(OC9 oc9) {
        if (oc9 != null) {
            C3341SUn.LJFF.LIZ((LsC<? super SUJ, 2Pr>) new C3643ScZ(oc9));
        }
    }

    @ISm
    public final void onReceiveHotSpotAwemeListMerge(2NQ r2) {
        M12.LIZ(r2);
        BYu.LIZ = this.LIZLLL.LJII;
        BYu.LJFF = 71;
    }

    public static 0Bx LIZ(Fragment fragment) {
        0Bx LIZ = 0By.LIZ(fragment, (0Bv) null);
        if (2GD.LIZ) {
            0Bs.LIZ(LIZ, fragment);
        }
        return LIZ;
    }

    /* JADX WARNING: type inference failed for: r2v0, types: [com.ss.android.ugc.aweme.discover.ui.SearchFragment, com.ss.android.ugc.aweme.discover.jedi.SearchJediMixFeedFragment] */
    private final void LIZIZ(GlobalDoodleConfig globalDoodleConfig) {
        if (globalDoodleConfig != null) {
            B9I LJJIJIIJIL = LJJIJIIJIL();
            if (!(LJJIJIIJIL instanceof C3680SdA)) {
                LJJIJIIJIL = null;
            }
            C3680SdA sdA = (C3680SdA) LJJIJIIJIL;
            if (sdA != null) {
                sdA.LIZ(globalDoodleConfig);
            }
            C3810SfG sfG = this.LJIIIZ;
            if (sfG != null) {
                sfG.LIZ(globalDoodleConfig);
            }
        }
    }

    private final String LIZLLL(SearchApiResult searchApiResult) {
        if (searchApiResult.queryCorrectInfo == null) {
            return "none";
        }
        if (searchApiResult.queryCorrectInfo.getCorrectedLevel() == 2) {
            return "strong";
        }
        return "weak";
    }

    private final boolean LJ(SearchApiResult searchApiResult) {
        String str;
        GlobalDoodleConfig globalDoodleConfig;
        if (searchApiResult == null || (globalDoodleConfig = searchApiResult.globalDoodleConfig) == null) {
            str = null;
        } else {
            str = globalDoodleConfig.getRequestKeyword();
        }
        return TextUtils.isEmpty(str);
    }

    public final void c_(boolean z) {
        SU1 su1 = this.LJJJLZIJ;
        if (su1 != null && !su1.LJIILLIIL) {
            0Gp.LIZ(new C3622ScE(this, z));
        }
    }

    /* JADX WARNING: type inference failed for: r2v0, types: [com.ss.android.ugc.aweme.discover.ui.SearchFragment, com.ss.android.ugc.aweme.discover.jedi.SearchJediMixFeedFragment] */
    public final void LIZIZ(Throwable th) {
        M12.LIZ(th);
        if (!(th instanceof CancellationException)) {
            if (th instanceof Exception) {
                LIZIZ((Exception) th);
            } else {
                LIZIZ(new Exception(th));
            }
            C3810SfG sfG = this.LJIIIZ;
            if (sfG != null) {
                sfG.LIZ((GradientBgData) null);
            }
            LIZ((QueryCorrectInfo) null);
            LIZIZ((SearchApiResult) null);
            LIZ((LeC) null, (String) null);
        }
    }

    /* JADX WARNING: type inference failed for: r2v0, types: [com.ss.android.ugc.aweme.discover.ui.SearchFragment, com.ss.android.ugc.common.component.fragment.ComponentFragment, com.ss.android.ugc.aweme.discover.jedi.SearchJediMixFeedFragment] */
    public final void onConfigurationChanged(Configuration configuration) {
        M12.LIZ(configuration);
        SearchJediMixFeedFragment.super.onConfigurationChanged(configuration);
        GridLayoutManager layoutManager = LJJIIJ().getLayoutManager();
        if (layoutManager instanceof WrapGridLayoutManager) {
            layoutManager.LIZ(MNS.LIZ.LIZ().LIZIZ());
        }
    }

    private final void LIZJ(List<? extends STZ> list) {
        8AR LIZ;
        List awemeCards;
        if (list != null) {
            ArrayList arrayList = new ArrayList();
            for (STZ stz : list) {
                if (LFp.LJIJ(stz.getAweme())) {
                    Aweme aweme = stz.getAweme();
                    n.LIZIZ(aweme, "");
                    arrayList.add(aweme);
                }
                2NP r0 = stz.LJIIZILJ;
                if (!(r0 == null || (awemeCards = r0.getAwemeCards()) == null)) {
                    arrayList.addAll(awemeCards);
                }
            }
            IAdLandPagePreloadService LJFF = AdLandPagePreloadServiceImpl.LJFF();
            if (LJFF != null && (LIZ = LJFF.LIZ()) != null) {
                LIZ.LIZ(arrayList);
            }
        }
    }

    /* JADX WARNING: type inference failed for: r5v0, types: [com.ss.android.ugc.aweme.discover.ui.SearchFragment, androidx.fragment.app.Fragment, com.ss.android.ugc.aweme.discover.ui.SearchBaseFragment, com.ss.android.ugc.aweme.discover.jedi.SearchJediMixFeedFragment] */
    public final void LJ(C3302STa sTa) {
        Boolean bool;
        M12.LIZ(sTa);
        boolean z = true;
        LIZ((SearchApiResult) sTa, true);
        LIZIZ(sTa.globalDoodleConfig);
        String str = null;
        if (LJJJJIZL()) {
            GlobalDoodleConfig globalDoodleConfig = this.LJIJ;
            if (globalDoodleConfig != null) {
                bool = globalDoodleConfig.getHideResults();
            } else {
                bool = null;
            }
            if (n.LIZ(bool, false)) {
                LJJIJL().setIsShowingSuicideHeader(true);
            }
        }
        LeC leC = sTa.dynamicMask;
        GlobalDoodleConfig globalDoodleConfig2 = sTa.globalDoodleConfig;
        if (globalDoodleConfig2 != null) {
            str = globalDoodleConfig2.getUseScenario();
        }
        LIZ(leC, str);
        GlobalDoodleConfig globalDoodleConfig3 = sTa.globalDoodleConfig;
        if (!(globalDoodleConfig3 == null || globalDoodleConfig3.getDisplayFilterBar() == 1)) {
            z = false;
        }
        e_(z);
        LIZJ((SearchApiResult) sTa);
        Jv1.LIZ(Integer.valueOf(hashCode()), sTa.LJ);
        C3328SUa.LIZJ.LIZ(this.LJJI).LIZ(sTa.extra.server_stream_time);
    }

    /* JADX WARNING: type inference failed for: r4v0, types: [com.ss.android.ugc.aweme.discover.ui.SearchFragment, androidx.fragment.app.Fragment, com.ss.android.ugc.aweme.discover.jedi.SearchJediMixFeedFragment] */
    public final void setUserVisibleHint(boolean z) {
        EventCenter eventCenter;
        if (!(getUserVisibleHint() == z || (eventCenter = this.LJJL) == null)) {
            eventCenter.LIZ("mix_feed_fragment_status", Boolean.valueOf(z));
        }
        SearchJediMixFeedFragment.super.setUserVisibleHint(z);
        C3812SfI sfI = this.LJ;
        if (sfI != null) {
            sfI.LJIIIIZZ = z;
        }
        C3810SfG sfG = this.LJIIIZ;
        if (sfG != null) {
            sfG.LIZ(z);
        }
        MusicPlayHelper musicPlayHelper = this.LIZIZ;
        if (musicPlayHelper != null) {
            musicPlayHelper.LIZ();
        }
        if (!z) {
            View view = getView();
            if (view != null) {
                view.removeCallbacks(LJJJLIIL());
            }
            LJIIIZ();
            return;
        }
        View view2 = getView();
        if (view2 != null) {
            view2.removeCallbacks(LJJJLIIL());
        }
        View view3 = getView();
        if (view3 != null) {
            view3.postDelayed(LJJJLIIL(), 300);
        }
        LJJJLL();
    }

    /* JADX WARNING: type inference failed for: r8v0, types: [com.ss.android.ugc.aweme.discover.ui.SearchFragment, androidx.fragment.app.Fragment, com.ss.android.ugc.aweme.discover.ui.SearchBaseFragment, com.ss.android.ugc.aweme.discover.jedi.SearchJediMixFeedFragment] */
    /* JADX WARNING: Code restructure failed: missing block: B:12:0x0066, code lost:
        if (r0 == null) goto L_0x0068;
     */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public final void LIZIZ(X.C3302STa r9) {
        /*
            r8 = this;
            X.M12.LIZ(r9)
            X.Sq1 r0 = r8.LJJLIIIIJ
            if (r0 != 0) goto L_0x000a
            kotlin.h.b.n.LIZIZ()
        L_0x000a:
            r0.LJIILL()
            X.SUa r1 = X.C3328SUa.LIZJ
            X.SV0 r0 = r8.LJJI
            X.SUY r0 = r1.LIZ((X.SV0) r0)
            r0.LIZJ()
            X.SUb r1 = X.C3329SUb.LIZJ
            X.SV0 r0 = r8.LJJI
            X.SUX r0 = r1.LIZ((X.SV0) r0)
            r0.LIZJ()
            java.util.List<X.STZ> r4 = r9.LIZJ
            boolean r7 = r9.LIZIZ
            X.STV r1 = X.STV.LIZIZ
            java.lang.String r0 = ""
            kotlin.h.b.n.LIZIZ(r4, r0)
            java.util.List r5 = r1.LIZ((java.util.List<? extends X.STZ>) r4)
            boolean r0 = r4.isEmpty()
            java.lang.String r6 = "null cannot be cast to non-null type com.ss.android.ugc.aweme.discover.jedi.adapter.SearchJediMixFeedAdapter"
            if (r0 == 0) goto L_0x00bd
            r8.LJFF()
        L_0x003d:
            X.B9I r0 = r8.LJJIJIIJIL()
            boolean r0 = r0 instanceof X.C3680SdA
            if (r0 == 0) goto L_0x005c
            X.B9I r1 = r8.LJJIJIIJIL()
            java.util.Objects.requireNonNull(r1, r6)
            X.SdA r1 = (X.C3680SdA) r1
            X.OfH r0 = r8.LJJIJIL()
            java.util.List r0 = r0.LIZIZ()
            int r0 = r0.size()
            r1.LIZ = r0
        L_0x005c:
            X.SU1 r0 = r8.LJJJLZIJ
            if (r0 == 0) goto L_0x00bb
            boolean r0 = r0.mIsLoading
            java.lang.Boolean r0 = java.lang.Boolean.valueOf(r0)
            if (r0 != 0) goto L_0x006b
        L_0x0068:
            kotlin.h.b.n.LIZIZ()
        L_0x006b:
            boolean r0 = r0.booleanValue()
            if (r0 != 0) goto L_0x0088
            android.view.View r0 = r8.getView()
            if (r0 == 0) goto L_0x0088
            android.view.View r1 = r8.getView()
            if (r1 != 0) goto L_0x0080
            kotlin.h.b.n.LIZIZ()
        L_0x0080:
            X.ScU r0 = new X.ScU
            r0.<init>(r8, r9)
            r1.post(r0)
        L_0x0088:
            com.ss.android.ugc.aweme.feed.model.LogPbBean r0 = r9.logPb
            if (r0 == 0) goto L_0x008f
            r0.getImprId()
        L_0x008f:
            X.SfI r3 = r8.LJ
            if (r3 == 0) goto L_0x00b7
            r2 = 0
            java.lang.Object r0 = X.Lea.LIZIZ(r5, r2)
            X.STZ r0 = (X.STZ) r0
            r1 = 1
            if (r0 == 0) goto L_0x00a3
            boolean r0 = X.Qlb.LIZ(r0)
            if (r0 == r1) goto L_0x00b1
        L_0x00a3:
            java.lang.Object r0 = X.Lea.LIZIZ(r5, r1)
            X.STZ r0 = (X.STZ) r0
            if (r0 == 0) goto L_0x00b2
            boolean r0 = X.Qlb.LIZ(r0)
            if (r0 != r1) goto L_0x00b2
        L_0x00b1:
            r2 = 1
        L_0x00b2:
            X.Qsl r0 = r8.LJIJJLI
            r3.LIZ((boolean) r2, (X.Qsl) r0)
        L_0x00b7:
            r8.LIZJ((java.util.List<? extends X.STZ>) r4)
            return
        L_0x00bb:
            r0 = 0
            goto L_0x0068
        L_0x00bd:
            X.8Zu r3 = X.8Zu.LIZ
            r0 = 2
            int[] r2 = new int[r0]
            r2 = {2, 8} // fill-array
            r0 = 1000(0x3e8, double:4.94E-321)
            r3.LIZ(r2, r0)
            X.B9I r0 = r8.LJJIJIIJIL()
            java.util.Objects.requireNonNull(r0, r6)
            X.SdA r0 = (X.C3680SdA) r0
            r0.LIZ((java.util.List<? extends X.STZ>) r5)
            r8.LIZ(r5, (boolean) r7)
            goto L_0x003d
        */
        throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.discover.jedi.SearchJediMixFeedFragment.LIZIZ(X.STa):void");
    }

    /* JADX WARNING: type inference failed for: r3v0, types: [com.ss.android.ugc.aweme.discover.ui.SearchFragment, androidx.fragment.app.Fragment, com.ss.android.ugc.aweme.discover.jedi.SearchJediMixFeedFragment] */
    public final void LIZJ(C3302STa sTa) {
        Boolean bool;
        Boolean showResearchFilter;
        M12.LIZ(sTa);
        C4477Sq1 sq1 = this.LJJLIIIIJ;
        if (sq1 == null) {
            n.LIZIZ();
        }
        boolean z = false;
        sq1.LJJJ = false;
        List data = LJJIJIIJIL().getData();
        if (data != null) {
            data.clear();
        }
        LIZ((SearchApiResult) sTa);
        LIZ(sTa.queryCorrectInfo);
        LIZIZ((SearchApiResult) sTa);
        LIZ(sTa.guideSearchWordList);
        GlobalDoodleConfig globalDoodleConfig = sTa.globalDoodleConfig;
        if (!(globalDoodleConfig == null || (showResearchFilter = globalDoodleConfig.getShowResearchFilter()) == null)) {
            z = showResearchFilter.booleanValue();
        }
        LIZJ(z);
        C3680SdA LJJIJIIJIL = LJJIJIIJIL();
        Objects.requireNonNull(LJJIJIIJIL, "null cannot be cast to non-null type com.ss.android.ugc.aweme.discover.jedi.adapter.SearchJediMixFeedAdapter");
        List<STZ> list = sTa.LIZJ;
        n.LIZIZ(list, "");
        LJJIJIIJIL.LIZ((List<? extends STZ>) list);
        GlobalDoodleConfig globalDoodleConfig2 = this.LJIJ;
        if (globalDoodleConfig2 != null) {
            bool = globalDoodleConfig2.getHideResults();
        } else {
            bool = null;
        }
        if (n.LIZ(bool, true)) {
            LJJIJIIJIL().setData(new ArrayList());
        } else {
            LJJIJIIJIL().setData(sTa.LIZJ);
            FNa.INSTANCE.await();
            ClickSearchViewModel clickSearchViewModel = this.LJJJJZI;
            if (clickSearchViewModel != null) {
                clickSearchViewModel.LIZJ();
            }
            MYX.LIZIZ.LIZ(hashCode());
            2Wt.LIZ.LIZ(hashCode());
        }
        List<STZ> list2 = sTa.LIZJ;
        n.LIZIZ(list2, "");
        LIZIZ(list2);
    }

    /* JADX WARNING: type inference failed for: r6v0, types: [com.ss.android.ugc.aweme.discover.ui.SearchFragment, com.ss.android.ugc.aweme.discover.jedi.SearchJediMixFeedFragment] */
    public final void LIZLLL(C3302STa sTa) {
        boolean z;
        List list;
        Boolean showResearchFilter;
        M12.LIZ(sTa);
        LIZ((SearchApiResult) sTa);
        LIZ(sTa.queryCorrectInfo);
        LIZIZ((SearchApiResult) sTa);
        LIZ(sTa.guideSearchWordList);
        GlobalDoodleConfig globalDoodleConfig = sTa.globalDoodleConfig;
        if (globalDoodleConfig == null || (showResearchFilter = globalDoodleConfig.getShowResearchFilter()) == null) {
            z = false;
        } else {
            z = showResearchFilter.booleanValue();
        }
        LIZJ(z);
        GlobalDoodleConfig globalDoodleConfig2 = this.LJIJ;
        Boolean bool = null;
        if (globalDoodleConfig2 != null) {
            bool = globalDoodleConfig2.getHideResults();
        }
        if (n.LIZ(bool, true)) {
            LJJIJIIJIL().setData(new ArrayList());
        } else {
            C3680SdA LJJIJIIJIL = LJJIJIIJIL();
            Objects.requireNonNull(LJJIJIIJIL, "null cannot be cast to non-null type com.ss.android.ugc.aweme.discover.jedi.adapter.SearchJediMixFeedAdapter");
            List<STZ> list2 = sTa.LIZJ;
            n.LIZIZ(list2, "");
            LJJIJIIJIL.LIZ((List<? extends STZ>) list2);
            C3680SdA LJJIJIIJIL2 = LJJIJIIJIL();
            Objects.requireNonNull(LJJIJIIJIL2, "null cannot be cast to non-null type com.ss.android.ugc.aweme.discover.jedi.adapter.SearchJediMixFeedAdapter");
            C3680SdA sdA = LJJIJIIJIL2;
            List<STZ> list3 = sTa.LIZJ;
            sdA.LIZJ.LIZ(list3, new Qvm());
            if (list3 == null || (list = Lea.LJII(list3)) == null) {
                list = new ArrayList();
                sdA.setShowFooter(false);
            }
            sdA.mItems = list;
            sdA.notifyDataSetChanged();
            LcP.LIZLLL.set(0);
        }
        LJIILLIIL();
        LJIILIIL();
        List<STZ> list4 = sTa.LIZJ;
        n.LIZIZ(list4, "");
        LIZIZ(list4);
    }

    /* JADX WARNING: type inference failed for: r5v0, types: [com.ss.android.ugc.aweme.discover.ui.SearchFragment, androidx.fragment.app.Fragment, com.ss.android.ugc.aweme.discover.ui.SearchBaseFragment, com.ss.android.ugc.aweme.discover.jedi.SearchJediMixFeedFragment] */
    public final void LJFF(C3302STa sTa) {
        Boolean showResearchFilter;
        Boolean bool;
        M12.LIZ(sTa);
        LIZ((SearchApiResult) sTa);
        LIZIZ(sTa.globalDoodleConfig);
        String str = null;
        boolean z = false;
        boolean z2 = true;
        if (LJJJJIZL()) {
            GlobalDoodleConfig globalDoodleConfig = this.LJIJ;
            if (globalDoodleConfig != null) {
                bool = globalDoodleConfig.getHideResults();
            } else {
                bool = null;
            }
            if (n.LIZ(bool, false)) {
                LJJIJL().setIsShowingSuicideHeader(true);
            }
        }
        LIZ(sTa.guideSearchWordList);
        LIZIZ((SearchApiResult) sTa);
        LeC leC = sTa.dynamicMask;
        GlobalDoodleConfig globalDoodleConfig2 = sTa.globalDoodleConfig;
        if (globalDoodleConfig2 != null) {
            str = globalDoodleConfig2.getUseScenario();
        }
        LIZ(leC, str);
        LIZ(sTa.queryCorrectInfo);
        GlobalDoodleConfig globalDoodleConfig3 = sTa.globalDoodleConfig;
        if (!(globalDoodleConfig3 == null || globalDoodleConfig3.getDisplayFilterBar() == 1)) {
            z2 = false;
        }
        e_(z2);
        GlobalDoodleConfig globalDoodleConfig4 = sTa.globalDoodleConfig;
        if (!(globalDoodleConfig4 == null || (showResearchFilter = globalDoodleConfig4.getShowResearchFilter()) == null)) {
            z = showResearchFilter.booleanValue();
        }
        LIZJ(z);
        LIZJ((SearchApiResult) sTa);
        Jv1.LIZ(Integer.valueOf(hashCode()), sTa.LJ);
        C3328SUa.LIZJ.LIZ(this.LJJI).LIZ(sTa.extra.server_stream_time);
    }

    /* JADX WARNING: type inference failed for: r6v0, types: [com.ss.android.ugc.aweme.discover.ui.SearchFragment, com.ss.android.ugc.aweme.discover.jedi.SearchJediMixFeedFragment] */
    public final void LIZ(C3302STa sTa) {
        M12.LIZ(sTa);
        List<STZ> list = sTa.LIZJ;
        boolean z = sTa.LIZIZ;
        if (!sTa.LJII) {
            LIZ((SearchApiResult) sTa, false);
        }
        n.LIZIZ(list, "");
        if (!list.isEmpty()) {
            8Zu.LIZ.LIZ(new int[]{2, 8}, 500);
        }
        List<STZ> LIZ = STV.LIZIZ.LIZ((List<? extends STZ>) list);
        C3680SdA LJJIJIIJIL = LJJIJIIJIL();
        Objects.requireNonNull(LJJIJIIJIL, "null cannot be cast to non-null type com.ss.android.ugc.aweme.discover.jedi.adapter.SearchJediMixFeedAdapter");
        LJJIJIIJIL.LIZ((List<? extends STZ>) LIZ);
        LIZIZ(LIZ, z);
        Etp etp = this.LJJJJZ;
        if (etp != null) {
            onVideoEvent(etp);
            this.LJJJJZ = null;
        }
        LIZJ((List<? extends STZ>) list);
    }

    /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r6v2, resolved type: com.ss.android.ugc.aweme.feed.model.Aweme} */
    /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r6v4, resolved type: com.ss.android.ugc.aweme.feed.model.Aweme} */
    /* JADX WARNING: type inference failed for: r7v0, types: [com.ss.android.ugc.aweme.discover.ui.SearchFragment, com.ss.android.ugc.aweme.discover.jedi.SearchJediMixFeedFragment] */
    /* JADX WARNING: Code restructure failed: missing block: B:144:0x0293, code lost:
        if ((r2 - r1) >= r0) goto L_0x0295;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:145:0x0295, code lost:
        if (r0 > 0) goto L_0x029a;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:63:0x0147, code lost:
        if (r10 != null) goto L_0x0149;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:72:0x016b, code lost:
        if ((r2 - r1) >= r0) goto L_0x016d;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:73:0x016d, code lost:
        if (r0 > 0) goto L_0x010d;
     */
    /* JADX WARNING: Multi-variable type inference failed */
    /* JADX WARNING: Removed duplicated region for block: B:67:0x0160  */
    @X.ISm
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public final void onVideoEvent(X.Etp r19) {
        /*
            r18 = this;
            r7 = r18
            r3 = r19
            X.M12.LIZ(r3)
            boolean r0 = r18.aq_()
            if (r0 != 0) goto L_0x000e
            return
        L_0x000e:
            int r1 = r3.LJIIIZ
            r0 = 73
            if (r1 == r0) goto L_0x0022
            int r1 = r3.LJIIIZ
            r0 = 71
            if (r1 != r0) goto L_0x0023
            X.MJE r0 = X.MJE.LIZ
            boolean r0 = r0.LIZ()
            if (r0 != 0) goto L_0x0023
        L_0x0022:
            return
        L_0x0023:
            int r1 = r3.LIZ
            r0 = 13
            if (r1 == r0) goto L_0x02ad
            r0 = 21
            java.lang.String r2 = "null cannot be cast to non-null type androidx.recyclerview.widget.GridLayoutManager"
            r8 = 555(0x22b, float:7.78E-43)
            java.lang.String r9 = "playlist"
            r10 = 70
            r11 = 65456(0xffb0, float:9.1723E-41)
            r12 = 65458(0xffb2, float:9.1726E-41)
            r16 = 0
            java.lang.String r13 = "null cannot be cast to non-null type com.ss.android.ugc.aweme.feed.model.Aweme"
            java.lang.String r4 = ""
            java.lang.String r5 = "null cannot be cast to non-null type com.ss.android.ugc.aweme.discover.jedi.adapter.SearchJediMixFeedAdapter"
            r15 = 1
            if (r1 == r0) goto L_0x0203
            r0 = 66
            if (r1 == r0) goto L_0x0049
            goto L_0x0022
        L_0x0049:
            X.MFt r0 = X.MFt.LIZ
            boolean r0 = r0.LIZ()
            if (r0 == 0) goto L_0x018c
            boolean r0 = r18.getUserVisibleHint()
            if (r0 != 0) goto L_0x0058
            return
        L_0x0058:
            java.lang.Object r6 = r3.LIZIZ
            java.util.Objects.requireNonNull(r6, r13)
            com.ss.android.ugc.aweme.feed.model.Aweme r6 = (com.ss.android.ugc.aweme.feed.model.Aweme) r6
            long r0 = r3.LJI
            int r14 = (r0 > r16 ? 1 : (r0 == r16 ? 0 : -1))
            if (r14 <= 0) goto L_0x007a
            java.lang.String r1 = r6.getSearchFeedType()
            java.lang.String r0 = X.Las.LIZ
            boolean r0 = kotlin.h.b.n.LIZ(r1, r0)
            r0 = r0 ^ 1
            if (r0 == 0) goto L_0x007a
            boolean r0 = r3.LJIIL
            r0 = r0 ^ 1
            r7.LIZ((com.ss.android.ugc.aweme.feed.model.Aweme) r6, (boolean) r0)
        L_0x007a:
            int r0 = r3.LJIIIZ
            if (r0 == r12) goto L_0x00a5
            int r0 = r3.LJIIIZ
            if (r0 == r11) goto L_0x00a5
            int r0 = r3.LJIIIZ
            if (r0 == r10) goto L_0x00a5
            java.lang.String r0 = r3.LJFF
            boolean r0 = kotlin.h.b.n.LIZ(r0, r9)
            if (r0 != 0) goto L_0x00a5
            int r1 = r3.LJIIIZ
            r0 = 71
            if (r1 != r0) goto L_0x009c
            X.MJE r0 = X.MJE.LIZ
            boolean r0 = r0.LIZ()
            if (r0 == 0) goto L_0x00a5
        L_0x009c:
            int r0 = r3.LJIIIZ
            if (r0 == r8) goto L_0x00a5
            int r1 = r3.LJIIIZ
            r0 = -1
            if (r1 != r0) goto L_0x00a6
        L_0x00a5:
            return
        L_0x00a6:
            java.lang.Object r11 = r3.LIZIZ
            java.util.Objects.requireNonNull(r11, r13)
            com.ss.android.ugc.aweme.feed.model.Aweme r11 = (com.ss.android.ugc.aweme.feed.model.Aweme) r11
            java.lang.String r1 = r11.getSearchFeedType()
            java.lang.String r0 = X.Las.LIZ
            boolean r0 = kotlin.h.b.n.LIZ(r1, r0)
            if (r0 == 0) goto L_0x0176
            X.B9I r0 = r18.LJJIJIIJIL()
            java.util.Objects.requireNonNull(r0, r5)
            X.SdA r0 = (X.C3680SdA) r0
            int r9 = r0.LIZ
            r0 = 0
            int r9 = r9 + r0
        L_0x00c6:
            r0 = -1
            if (r9 == r0) goto L_0x0173
            androidx.recyclerview.widget.RecyclerView r0 = r18.LJJIIJ()
            X.0EF r8 = r0.getLayoutManager()
            java.util.Objects.requireNonNull(r8, r2)
            androidx.recyclerview.widget.GridLayoutManager r8 = (androidx.recyclerview.widget.GridLayoutManager) r8
            android.view.View r10 = r8.LIZJ(r9)
            X.MJE r0 = X.MJE.LIZ
            boolean r0 = r0.LIZ()
            if (r0 == 0) goto L_0x0147
            int r1 = r3.LJIIIZ
            r0 = 71
            if (r1 != r0) goto L_0x0147
            if (r10 == 0) goto L_0x0150
            java.lang.String r1 = r11.getSearchFeedType()
            java.lang.String r0 = X.Las.LIZ
            boolean r0 = kotlin.h.b.n.LIZ(r1, r0)
            r0 = r0 ^ 1
            if (r0 == 0) goto L_0x0149
            X.B9I r0 = r18.LJJIJIIJIL()
            java.util.Objects.requireNonNull(r0, r5)
            X.SdA r0 = (X.C3680SdA) r0
            int r1 = r0.LIZ
            r0 = 0
            int r1 = r1 + r0
            int r1 = r9 - r1
            r0 = 2
            if (r1 > r0) goto L_0x0149
            r7.LIZ((X.0EF) r8, (int) r9)
        L_0x010d:
            X.SfI r2 = r7.LJ
            if (r2 == 0) goto L_0x011c
            int r1 = r18.hashCode()
            java.lang.String r0 = r6.getAid()
            r2.LIZ((int) r1, (java.lang.String) r0)
        L_0x011c:
            X.MJE r0 = X.MJE.LIZ
            boolean r0 = r0.LIZ()
            if (r0 == 0) goto L_0x018c
            r0 = -1
            X.BYu.LJFF = r0
            X.P0W r7 = new X.P0W
            boolean r5 = r3.LJIIL
            long r1 = r3.LJI
            int r0 = r3.LJIIIZ
            r8 = r6
            r9 = r5
            r10 = r1
            r12 = r0
            r7.<init>(r8, r9, r10, r12)
            X.CqM.LIZIZ(r7)
            java.lang.String r1 = r6.getSearchFeedType()
            java.lang.String r0 = X.Las.LIZ
            boolean r0 = kotlin.h.b.n.LIZ(r1, r0)
            if (r0 == 0) goto L_0x018c
            goto L_0x00a5
        L_0x0147:
            if (r10 == 0) goto L_0x0150
        L_0x0149:
            int[] r0 = r18.LJJJJLL()
            r10.getLocationOnScreen(r0)
        L_0x0150:
            android.content.Context r0 = r18.getContext()
            int r2 = X.2t8.LIZIZ(r0)
            int[] r0 = r18.LJJJJLL()
            r1 = r0[r15]
            if (r10 == 0) goto L_0x016f
            int r0 = r10.getHeight()
            if (r1 >= r2) goto L_0x016f
            if (r1 < 0) goto L_0x016f
            if (r1 >= r2) goto L_0x016d
            int r2 = r2 - r1
            if (r2 < r0) goto L_0x016f
        L_0x016d:
            if (r0 > 0) goto L_0x010d
        L_0x016f:
            r7.LIZ((X.0EF) r8, (int) r9)
            goto L_0x010d
        L_0x0173:
            r7.LJJJJZ = r3
            goto L_0x010d
        L_0x0176:
            X.B9I r1 = r18.LJJIJIIJIL()
            java.util.Objects.requireNonNull(r1, r5)
            X.SdA r1 = (X.C3680SdA) r1
            java.lang.String r0 = r11.getAid()
            kotlin.h.b.n.LIZIZ(r0, r4)
            int r9 = r1.LIZ((java.lang.String) r0)
            goto L_0x00c6
        L_0x018c:
            java.lang.Object r1 = r3.LIZIZ
            boolean r0 = r1 instanceof com.ss.android.ugc.aweme.feed.model.Aweme
            r6 = 0
            if (r0 != 0) goto L_0x0194
            r1 = r6
        L_0x0194:
            com.ss.android.ugc.aweme.feed.model.Aweme r1 = (com.ss.android.ugc.aweme.feed.model.Aweme) r1
            X.B9I r5 = r18.LJJIJIIJIL()
            boolean r0 = r5 instanceof X.C3680SdA
            if (r0 != 0) goto L_0x019f
            r5 = r6
        L_0x019f:
            X.SdA r5 = (X.C3680SdA) r5
            if (r1 == 0) goto L_0x01af
            r1.getAid()
            com.ss.android.ugc.aweme.profile.model.User r0 = r1.getAuthor()
            if (r0 == 0) goto L_0x01af
            r0.getUniqueId()
        L_0x01af:
            if (r5 == 0) goto L_0x0022
            X.M12.LIZ(r3)
            boolean r0 = X.MJk.LIZ()
            if (r0 == 0) goto L_0x01d9
            java.lang.Object r1 = r3.LIZIZ
            boolean r0 = r1 instanceof com.ss.android.ugc.aweme.feed.model.Aweme
            if (r0 != 0) goto L_0x01c1
            r1 = r6
        L_0x01c1:
            com.ss.android.ugc.aweme.feed.model.Aweme r1 = (com.ss.android.ugc.aweme.feed.model.Aweme) r1
            if (r1 == 0) goto L_0x01cb
            java.lang.String r0 = r1.getAid()
            if (r0 != 0) goto L_0x01cc
        L_0x01cb:
            r0 = r4
        L_0x01cc:
            int r2 = r5.LIZ((java.lang.String) r0)
            X.Sci r1 = new X.Sci
            r1.<init>(r3)
            r0 = 0
            r5.LIZ(r2, r0, r1)
        L_0x01d9:
            X.MHa r0 = X.MHa.LIZ
            boolean r0 = r0.LIZ()
            if (r0 == 0) goto L_0x01fe
            java.lang.Object r1 = r3.LIZIZ
            boolean r0 = r1 instanceof com.ss.android.ugc.aweme.feed.model.Aweme
            if (r0 != 0) goto L_0x0201
        L_0x01e7:
            com.ss.android.ugc.aweme.feed.model.Aweme r6 = (com.ss.android.ugc.aweme.feed.model.Aweme) r6
            if (r6 == 0) goto L_0x01f1
            java.lang.String r0 = r6.getAid()
            if (r0 != 0) goto L_0x01ff
        L_0x01f1:
            int r2 = r5.LIZ((java.lang.String) r4)
            X.SdK r1 = new X.SdK
            r1.<init>(r5, r3, r6)
            r0 = 0
            r5.LIZ(r2, r0, r1)
        L_0x01fe:
            return
        L_0x01ff:
            r4 = r0
            goto L_0x01f1
        L_0x0201:
            r6 = r1
            goto L_0x01e7
        L_0x0203:
            r0 = 0
            X.MFt r0 = X.MFt.LIZ
            boolean r0 = r0.LIZ()
            if (r0 == 0) goto L_0x020d
            return
        L_0x020d:
            boolean r0 = r18.getUserVisibleHint()
            if (r0 != 0) goto L_0x0214
            return
        L_0x0214:
            java.lang.Object r6 = r3.LIZIZ
            java.util.Objects.requireNonNull(r6, r13)
            com.ss.android.ugc.aweme.feed.model.Aweme r6 = (com.ss.android.ugc.aweme.feed.model.Aweme) r6
            long r0 = r3.LJI
            int r13 = (r0 > r16 ? 1 : (r0 == r16 ? 0 : -1))
            if (r13 <= 0) goto L_0x0228
            boolean r0 = r3.LJIIL
            r0 = r0 ^ 1
            r7.LIZ((com.ss.android.ugc.aweme.feed.model.Aweme) r6, (boolean) r0)
        L_0x0228:
            int r0 = r3.LJIIIZ
            if (r0 == r12) goto L_0x0246
            int r0 = r3.LJIIIZ
            if (r0 == r11) goto L_0x0246
            int r0 = r3.LJIIIZ
            if (r0 == r10) goto L_0x0246
            java.lang.String r0 = r3.LJFF
            boolean r0 = kotlin.h.b.n.LIZ(r0, r9)
            if (r0 != 0) goto L_0x0246
            int r1 = r3.LJIIIZ
            r0 = 71
            if (r1 == r0) goto L_0x0246
            int r0 = r3.LJIIIZ
            if (r0 != r8) goto L_0x0247
        L_0x0246:
            return
        L_0x0247:
            X.B9I r1 = r18.LJJIJIIJIL()
            java.util.Objects.requireNonNull(r1, r5)
            X.SdA r1 = (X.C3680SdA) r1
            java.lang.String r0 = r6.getAid()
            kotlin.h.b.n.LIZIZ(r0, r4)
            int r5 = r1.LIZ((java.lang.String) r0)
            r0 = -1
            if (r5 == r0) goto L_0x02aa
            androidx.recyclerview.widget.RecyclerView r0 = r18.LJJIIJ()
            X.0EF r4 = r0.getLayoutManager()
            java.util.Objects.requireNonNull(r4, r2)
            androidx.recyclerview.widget.GridLayoutManager r4 = (androidx.recyclerview.widget.GridLayoutManager) r4
            android.view.View r3 = r4.LIZJ(r5)
            if (r3 == 0) goto L_0x0278
            int[] r0 = r18.LJJJJLL()
            r3.getLocationOnScreen(r0)
        L_0x0278:
            android.content.Context r0 = r18.getContext()
            int r2 = X.2t8.LIZIZ(r0)
            int[] r0 = r18.LJJJJLL()
            r1 = r0[r15]
            if (r3 == 0) goto L_0x0297
            int r0 = r3.getHeight()
            if (r1 >= r2) goto L_0x0297
            if (r1 < 0) goto L_0x0297
            if (r1 >= r2) goto L_0x0295
            int r2 = r2 - r1
            if (r2 < r0) goto L_0x0297
        L_0x0295:
            if (r0 > 0) goto L_0x029a
        L_0x0297:
            r7.LIZ((X.0EF) r4, (int) r5)
        L_0x029a:
            X.SfI r2 = r7.LJ
            if (r2 == 0) goto L_0x0022
            int r1 = r18.hashCode()
            java.lang.String r0 = r6.getAid()
            r2.LIZ((int) r1, (java.lang.String) r0)
            goto L_0x0246
        L_0x02aa:
            r7.LJJJJZ = r3
            goto L_0x029a
        L_0x02ad:
            androidx.recyclerview.widget.RecyclerView r0 = r18.LJJIIJ()
            int r3 = r0.getChildCount()
            r2 = 0
        L_0x02b6:
            if (r2 >= r3) goto L_0x0022
            androidx.recyclerview.widget.RecyclerView r0 = r18.LJJIIJ()
            android.view.View r1 = r0.getChildAt(r2)
            androidx.recyclerview.widget.RecyclerView r0 = r18.LJJIIJ()
            androidx.recyclerview.widget.RecyclerView$ViewHolder r1 = r0.LIZ(r1)
            boolean r0 = r1 instanceof X.C3748SeG
            if (r0 == 0) goto L_0x02d1
            X.SeG r1 = (X.C3748SeG) r1
            r1.LJJIJIIJI()
        L_0x02d1:
            int r2 = r2 + 1
            goto L_0x02b6
        */
        throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.discover.jedi.SearchJediMixFeedFragment.onVideoEvent(X.Etp):void");
    }

    /* JADX WARNING: type inference failed for: r2v0, types: [com.ss.android.ugc.aweme.discover.ui.SearchFragment, com.ss.android.ugc.aweme.discover.jedi.SearchJediMixFeedFragment] */
    public final void LIZ(SV0 sv0) {
        M12.LIZ(sv0);
        SearchJediMixFeedFragment.super.LIZ(sv0);
        if (LJJJJLI()) {
            C3680SdA LJJIJIIJIL = LJJIJIIJIL();
            Objects.requireNonNull(LJJIJIIJIL, "null cannot be cast to non-null type com.ss.android.ugc.aweme.discover.jedi.adapter.SearchJediMixFeedAdapter");
            M12.LIZ(sv0);
            LJJIJIIJIL.LIZIZ = sv0;
        }
    }

    /* JADX WARNING: type inference failed for: r2v0, types: [com.ss.android.ugc.aweme.discover.ui.SearchFragment, com.ss.android.ugc.aweme.discover.jedi.SearchJediMixFeedFragment] */
    private void LIZ(Aweme aweme, boolean z) {
        M12.LIZ(aweme);
        C3680SdA LJJIJIIJIL = LJJIJIIJIL();
        Objects.requireNonNull(LJJIJIIJIL, "null cannot be cast to non-null type com.ss.android.ugc.aweme.discover.jedi.adapter.SearchJediMixFeedAdapter");
        LJJIJIIJIL.LIZ(aweme, z);
    }

    /* JADX WARNING: type inference failed for: r3v0, types: [com.ss.android.ugc.aweme.discover.ui.SearchFragment, androidx.fragment.app.Fragment, com.ss.android.ugc.aweme.discover.jedi.SearchJediMixFeedFragment] */
    public final void onViewCreated(View view, Bundle bundle) {
        EventCenter eventCenter;
        M12.LIZ(view);
        SearchJediMixFeedFragment.super.onViewCreated(view, bundle);
        LJJIJL().searchState.observe(this, this.LJJJZ);
        1hK activity = getActivity();
        if (activity != null) {
            eventCenter = (EventCenter) LIZ(activity).LIZ(EventCenter.class);
        } else {
            eventCenter = null;
        }
        this.LJJL = eventCenter;
    }

    /* JADX WARNING: type inference failed for: r3v0, types: [com.ss.android.ugc.aweme.discover.ui.SearchFragment, androidx.fragment.app.Fragment, com.ss.android.ugc.aweme.discover.jedi.SearchJediMixFeedFragment] */
    public final void LIZ(int i, AVG avg) {
        SearchJediMixFeedFragment.super.LIZ(i, avg);
        getActivity();
        if (LJJJJZ()) {
            FNa.INSTANCE.async(new C3616Sc8(this, i));
        } else {
            LJIIZILJ();
        }
        SharedViewModelProvider sharedViewModelProvider = new SharedViewModelProvider(new 1Bd());
        0CD lifecycle = getLifecycle();
        n.LIZIZ(lifecycle, "");
        SearchInfoViewModel LIZ = sharedViewModelProvider.LIZ(lifecycle, SearchInfoViewModel.class);
        LIZ.LIZ(true);
        if (LIZ.LIZ() && C3444SYm.LIZIZ.LIZ()) {
            C3444SYm.LIZIZ.LIZIZ();
        }
    }

    /* JADX WARNING: type inference failed for: r8v0, types: [androidx.fragment.app.Fragment, com.ss.android.ugc.aweme.discover.ui.SearchBaseFragment, com.ss.android.ugc.aweme.discover.jedi.SearchJediMixFeedFragment] */
    /* JADX WARNING: Removed duplicated region for block: B:17:0x002e  */
    /* JADX WARNING: Removed duplicated region for block: B:20:0x0038  */
    /* JADX WARNING: Removed duplicated region for block: B:35:0x0094  */
    /* JADX WARNING: Removed duplicated region for block: B:42:? A[RETURN, SYNTHETIC] */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    private final void LIZ(com.ss.android.ugc.aweme.discover.model.SearchApiResult r9, boolean r10) {
        /*
            r8 = this;
            boolean r0 = r8.getUserVisibleHint()
            if (r0 != 0) goto L_0x0007
            return
        L_0x0007:
            X.OeP r0 = r8.LJJIII()
            r7 = 0
            if (r0 == 0) goto L_0x00a0
            X.Odu r6 = r0.LIZ()
        L_0x0012:
            if (r10 != 0) goto L_0x001e
            if (r6 == 0) goto L_0x009d
            java.lang.String r0 = r6.LIZIZ
        L_0x0018:
            boolean r0 = android.text.TextUtils.isEmpty(r0)
            if (r0 == 0) goto L_0x0096
        L_0x001e:
            X.OeP r0 = r8.LJJIII()
            if (r0 == 0) goto L_0x009b
            java.lang.String r5 = r0.LIZIZ()
        L_0x0028:
            if (r9 == 0) goto L_0x0094
            com.ss.android.ugc.aweme.discover.model.GlobalDoodleConfig r0 = r9.globalDoodleConfig
            if (r0 == 0) goto L_0x0094
            java.lang.String r0 = r0.getRequestKeyword()
        L_0x0032:
            boolean r0 = android.text.TextUtils.equals(r0, r5)
            if (r0 != 0) goto L_0x008d
            org.json.JSONObject r4 = new org.json.JSONObject
            r4.<init>()
            java.lang.String r1 = r8.LJJJLZIJ()
            java.lang.String r0 = "enter_from"
            r4.put(r0, r1)
            java.lang.String r1 = r8.LJJJZ()
            java.lang.String r0 = "search_type"
            r4.put(r0, r1)
            java.lang.String r1 = r8.LJJL()
            java.lang.String r0 = "search_from"
            r4.put(r0, r1)
            java.lang.String r1 = r8.LIZLLL((com.ss.android.ugc.aweme.discover.model.SearchApiResult) r9)
            java.lang.String r0 = "correct_type"
            r4.put(r0, r1)
            java.lang.String r3 = "1"
            java.lang.String r2 = "0"
            if (r10 == 0) goto L_0x0092
            r1 = r3
        L_0x0068:
            java.lang.String r0 = "is_refresh"
            r4.put(r0, r1)
            boolean r0 = r8.LJ((com.ss.android.ugc.aweme.discover.model.SearchApiResult) r9)
            if (r0 == 0) goto L_0x0090
            r1 = r3
        L_0x0074:
            java.lang.String r0 = "is_server_keyword_null"
            r4.put(r0, r1)
            if (r6 == 0) goto L_0x007d
            java.lang.String r7 = r6.LIZ
        L_0x007d:
            boolean r0 = android.text.TextUtils.equals(r7, r5)
            if (r0 != 0) goto L_0x008e
        L_0x0083:
            java.lang.String r0 = "check_edit_text"
            r4.put(r0, r3)
            java.lang.String r0 = "search_keyword_conflict"
            com.ss.android.common.c.a.LIZ(r0, r4)
        L_0x008d:
            return
        L_0x008e:
            r3 = r2
            goto L_0x0083
        L_0x0090:
            r1 = r2
            goto L_0x0074
        L_0x0092:
            r1 = r2
            goto L_0x0068
        L_0x0094:
            r0 = r7
            goto L_0x0032
        L_0x0096:
            if (r6 == 0) goto L_0x009b
            java.lang.String r5 = r6.LIZIZ
            goto L_0x0028
        L_0x009b:
            r5 = r7
            goto L_0x0028
        L_0x009d:
            r0 = r7
            goto L_0x0018
        L_0x00a0:
            r6 = r7
            goto L_0x0012
        */
        throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.discover.jedi.SearchJediMixFeedFragment.LIZ(com.ss.android.ugc.aweme.discover.model.SearchApiResult, boolean):void");
    }

    /* JADX WARNING: type inference failed for: r7v0, types: [androidx.fragment.app.Fragment, com.ss.android.ugc.aweme.discover.ui.SearchBaseFragment, com.ss.android.ugc.aweme.discover.jedi.SearchJediMixFeedFragment] */
    public final void LIZ(LeC leC, String str) {
        Ldr.LIZ.LIZ(new Ldp(getActivity(), leC, str, this.LJJIJ, getView()));
    }
}
