package com.ss.android.ugc.aweme.feed.adapter;

import X.070;
import X.07U;
import X.0CH;
import X.0CM;
import X.0Gf;
import X.0Gp;
import X.0HH;
import X.0QK;
import X.1Fq;
import X.1JK;
import X.1hK;
import X.2EE;
import X.2Eb;
import X.2FE;
import X.2GE;
import X.2GH;
import X.2GO;
import X.2Gq;
import X.2HV;
import X.2HX;
import X.2HZ;
import X.2Hn;
import X.2IR;
import X.2Ip;
import X.2Iq;
import X.2Iz;
import X.2Kc;
import X.2Ki;
import X.2Km;
import X.2Lv;
import X.2MX;
import X.2Nf;
import X.2Ny;
import X.2Pr;
import X.2UX;
import X.2YM;
import X.2aZ;
import X.2ha;
import X.2kf;
import X.2mF;
import X.2mK;
import X.2nK;
import X.2oE;
import X.2oQ;
import X.2yB;
import X.30g;
import X.33g;
import X.33t;
import X.3BB;
import X.3EX;
import X.3EY;
import X.3Fl;
import X.3Fs;
import X.3QA;
import X.3av;
import X.3dE;
import X.3hl;
import X.3jJ;
import X.3rX;
import X.42V;
import X.46i;
import X.4Mp;
import X.4RT;
import X.4VX;
import X.4W3;
import X.4W4;
import X.4W6;
import X.4W7;
import X.4WB;
import X.4WY;
import X.4Wb;
import X.4Wc;
import X.4Wd;
import X.4Wm;
import X.4Wo;
import X.4XF;
import X.4ZN;
import X.4aP;
import X.4at;
import X.4au;
import X.4bv;
import X.4jS;
import X.4jT;
import X.4jy;
import X.4jz;
import X.4kk;
import X.4lx;
import X.4mI;
import X.4mN;
import X.4mO;
import X.4mP;
import X.4mR;
import X.4mT;
import X.4mU;
import X.4mV;
import X.4ma;
import X.4o1;
import X.4wQ;
import X.7Pp;
import X.7Pr;
import X.7QX;
import X.7Qw;
import X.7Rl;
import X.7SJ;
import X.7T8;
import X.7W7;
import X.7YX;
import X.7YY;
import X.7cy;
import X.7d2;
import X.7df;
import X.7du;
import X.7hc;
import X.7ku;
import X.7nD;
import X.7nR;
import X.86a;
import X.878;
import X.8Fb;
import X.8Y7;
import X.8YD;
import X.8Ys;
import X.8aD;
import X.8xW;
import X.8xY;
import X.8xZ;
import X.9EH;
import X.9LK;
import X.9Y3;
import X.9bx;
import X.9nG;
import X.A3Q;
import X.A3R;
import X.A3S;
import X.A3T;
import X.A3W;
import X.A3X;
import X.A3Y;
import X.A3Z;
import X.A3a;
import X.A7H;
import X.AIW;
import X.AKm;
import X.AP2;
import X.AQ6;
import X.AR9;
import X.ATl;
import X.ATm;
import X.AUZ;
import X.AjX;
import X.AjY;
import X.Aja;
import X.AoK;
import X.B4h;
import X.B62;
import X.B6p;
import X.B6u;
import X.B7R;
import X.BDm;
import X.BK5;
import X.C0000Cga;
import X.C0001Cgb;
import X.C0003Cgd;
import X.C0004Cge;
import X.C0007Cgh;
import X.C0008Cgi;
import X.C0009Cgj;
import X.C0010Cgk;
import X.C0012Cgm;
import X.C0013Cgn;
import X.C0014Cgo;
import X.C0015Cgp;
import X.C0016Cgq;
import X.C0017Cgr;
import X.C0018Cgs;
import X.C0019Cgt;
import X.C0020Cgu;
import X.C0021Cgv;
import X.C0022Cgw;
import X.C0023Cgx;
import X.C0024Cgy;
import X.C0025Cgz;
import X.C0034Chi;
import X.C0035Chj;
import X.C0036Chk;
import X.C0041Chp;
import X.C0043Chr;
import X.C0051Chz;
import X.C0054Cic;
import X.C0074Ciw;
import X.C0092Cjo;
import X.C0179Cmx;
import X.C0194Cnm;
import X.C0244Cpk;
import X.C0279Cqt;
import X.C0282Cqw;
import X.C0312Csa;
import X.C0326Cso;
import X.C0330Css;
import X.C0334Csw;
import X.C0336Csy;
import X.C0504Czk;
import X.C0559D1n;
import X.C1602DcM;
import X.C2844DwO;
import X.C3644EMe;
import X.C3648EMi;
import X.C3737EPt;
import X.C4121Ebt;
import X.C5233Etp;
import X.CbP;
import X.Cbz;
import X.Cg6;
import X.Cg7;
import X.Cg8;
import X.Cg9;
import X.CgA;
import X.CgB;
import X.CgC;
import X.CgE;
import X.CgI;
import X.CgJ;
import X.CgK;
import X.CgL;
import X.CgM;
import X.CgN;
import X.CgO;
import X.CgP;
import X.CgQ;
import X.CgU;
import X.CgV;
import X.CgW;
import X.CgX;
import X.CgY;
import X.Ch2;
import X.Ch3;
import X.Ch4;
import X.Ch6;
import X.ChB;
import X.ChD;
import X.ChE;
import X.ChG;
import X.ChO;
import X.ChW;
import X.CiN;
import X.CiO;
import X.CiT;
import X.CiW;
import X.Cl7;
import X.CmZ;
import X.Cq0;
import X.CqM;
import X.CsR;
import X.CsT;
import X.CuS;
import X.CzM;
import X.D0M;
import X.D1G;
import X.EMX;
import X.ESC;
import X.F55;
import X.F97;
import X.FGO;
import X.FLK;
import X.HcY;
import X.HeD;
import X.Hx0;
import X.ISm;
import X.Ijl;
import X.KEM;
import X.LDj;
import X.LEp;
import X.LFp;
import X.LSI;
import X.LeJ;
import X.LnL;
import X.Ls2;
import X.LsC;
import X.M12;
import X.Mjy;
import X.OAQ;
import X.Ota;
import X.Otb;
import X.QDE;
import X.QDH;
import X.QEL;
import X.QHW;
import X.QJt;
import X.QO1;
import X.Qeg;
import X.QlK;
import X.Qur;
import X.Qus;
import X.Qux;
import X.QvC;
import X.QvD;
import X.QvF;
import X.QvT;
import X.Rc9;
import X.Spm;
import X.Sts;
import X.Stx;
import X.T0P;
import X.TBL;
import X.Tpu;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.animation.ValueAnimator;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.Rect;
import android.net.Uri;
import android.os.Handler;
import android.os.Looper;
import android.os.SystemClock;
import android.text.TextUtils;
import android.util.SparseBooleanArray;
import android.view.GestureDetector;
import android.view.LayoutInflater;
import android.view.Surface;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewPropertyAnimator;
import android.view.ViewStub;
import android.view.ViewTreeObserver;
import android.view.animation.AlphaAnimation;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.Space;
import android.widget.TextView;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.fragment.app.Fragment;
import com.bytedance.covode.number.Covode;
import com.bytedance.frameworks.apm.trace.MethodCollector;
import com.bytedance.io.prefetcher.doframe.DoFrameController;
import com.bytedance.lighten.loader.SmartImageView;
import com.ss.android.ugc.aweme.AccountService;
import com.ss.android.ugc.aweme.IAccountService;
import com.ss.android.ugc.aweme.app.SharePrefCache;
import com.ss.android.ugc.aweme.arch.widgets.base.DataCenter;
import com.ss.android.ugc.aweme.arch.widgets.base.Widget;
import com.ss.android.ugc.aweme.arch.widgets.base.WidgetManager;
import com.ss.android.ugc.aweme.awemeservice.RequestIdService;
import com.ss.android.ugc.aweme.base.model.UrlModel;
import com.ss.android.ugc.aweme.base.ui.TagLayout;
import com.ss.android.ugc.aweme.comment.CommentServiceImpl;
import com.ss.android.ugc.aweme.common.MobClick;
import com.ss.android.ugc.aweme.compliance.api.a;
import com.ss.android.ugc.aweme.feed.ab.BottomGradualOptimizeConfig;
import com.ss.android.ugc.aweme.feed.assem.ability.IVideoCellAbility;
import com.ss.android.ugc.aweme.feed.assem.share.VideoShareViewModel;
import com.ss.android.ugc.aweme.feed.bottom.BottomToastVM;
import com.ss.android.ugc.aweme.feed.model.Aweme;
import com.ss.android.ugc.aweme.feed.model.AwemeLabelModel;
import com.ss.android.ugc.aweme.feed.model.AwemeStatisticsBackup;
import com.ss.android.ugc.aweme.feed.model.AwemeStatus;
import com.ss.android.ugc.aweme.feed.model.AwemeTextLabelModel;
import com.ss.android.ugc.aweme.feed.model.BaseFeedPageParams;
import com.ss.android.ugc.aweme.feed.model.RelationDynamicLabel;
import com.ss.android.ugc.aweme.feed.model.RelationLabelHelper;
import com.ss.android.ugc.aweme.feed.model.Video;
import com.ss.android.ugc.aweme.feed.model.VideoCaptionUpdateParams;
import com.ss.android.ugc.aweme.feed.model.VideoItemParams;
import com.ss.android.ugc.aweme.feed.param.FeedParamProvider;
import com.ss.android.ugc.aweme.framework.services.ServiceManager;
import com.ss.android.ugc.aweme.homepage.api.interaction.ScrollSwitchStateManager;
import com.ss.android.ugc.aweme.im.sdk.common.controller.providedservices.IMService;
import com.ss.android.ugc.aweme.im.service.IIMService;
import com.ss.android.ugc.aweme.main.MainPageExperimentServiceImpl;
import com.ss.android.ugc.aweme.net.mutli.network.SpeedModeServiceImpl;
import com.ss.android.ugc.aweme.profile.model.FollowStatus;
import com.ss.android.ugc.aweme.qna.services.QnaService;
import com.ss.android.ugc.aweme.services.BusinessComponentServiceUtils;
import com.ss.android.ugc.aweme.shortvideo.sticker.infoSticker.interact.consume.widget.AbsInteractStickerWidget;
import com.ss.android.ugc.aweme.shortvideo.sticker.infoSticker.interact.consume.widget.InteractStickerViewModel;
import com.ss.android.ugc.aweme.specact.SpecActServiceImpl;
import com.ss.android.ugc.aweme.sticker.StickerServiceImpl;
import com.ss.android.ugc.aweme.sticker.data.InteractStickerStruct;
import com.ss.android.ugc.aweme.userservice.UserService;
import com.ss.android.ugc.aweme.util.FollowPageFirstFrameViewModel;
import com.ss.android.ugc.effectmanager.common.ConcurrentHashSet;
import com.ss.android.ugc.feed.platform.priority.PriorityViewModel;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import kotlin.h.b.n;
import org.greenrobot.eventbus.ThreadMode;
import org.json.JSONException;
import org.json.JSONObject;

public class VideoViewCell extends VideoBaseCell implements C3648EMi, C0559D1n, IVideoCellAbility, AIW, 2HZ, 2GO {
    public boolean LIZLLL;
    public Otb LJ;
    public boolean LJFF;
    public 7YY LJI;
    public boolean LJII;
    public boolean LJIIIIZZ;
    public boolean LJIIIZ;
    public 7Qw LJIIJ;
    public RelativeLayout LJIIZILJ;
    public C0034Chi LJIJ;
    public SmartImageView LJIJI;
    public FrameLayout LJIJJ;
    public ViewGroup LJIJJLI;
    public FrameLayout LJIL;
    public View LJJ;
    public View LJJI;
    public View LJJIFFI;
    public View LJJII;
    public QO1 LJJIII;
    public View LJJIIJ;
    public View LJJIIJZLJL;
    public CbP LJJIIZ;
    public HcY LJJIIZI;
    public ViewStub LJJIJ;
    public ViewStub LJJIJIIJI;
    public ViewStub LJJIJIIJIL;
    public ImageView LJJIJIL;
    public ViewStub LJJIJL;
    public View LJJIJLIJ;
    public LinearLayout LJJIL;
    public ViewGroup LJJIZ;
    public ViewGroup LJJJ;
    public T0P LJJJI;
    public CiW LJJJIL;
    public FrameLayout LJJJJ;
    public FrameLayout LJJJJI;
    public FrameLayout LJJJJIZL;
    public FrameLayout LJJJJJ;
    public FrameLayout LJJJJJL;
    public FrameLayout LJJJJL;
    public FrameLayout LJJJJLI;
    public RelativeLayout LJJJJLL;
    public RelativeLayout LJJJJZ;
    public ViewGroup LJJJJZI;
    public ViewGroup LJJJLIIL;
    public TextView LJJJLL;
    public View LJJJLZIJ;
    public ImageView LJJJZ;
    public View LJJL;
    public View LJJLI;
    public FrameLayout LJJLIIIIJ;
    public OAQ LJJLIIIJ;
    public FrameLayout LJJLIIIJILLIZJL;
    public Space LJJLIIIJJI;
    public LinearLayout LJJLIIIJJIZ;
    public long LJJLIIIJL;
    public Context LJJLIIIJLJLI;
    public 2YM<C5233Etp> LJJLIIIJLLLLLLLZ;
    public JSONObject LJJLIIJ;
    public 4RT LJJLIL;
    public 3Fs LJJLJ = new 3Fs();
    public CmZ LJJLJLI;
    public boolean LJJLL = false;
    public boolean LJJZ = true;
    public boolean LJJZZI = false;
    public String LJJZZIII = "click";
    public DataCenter LJL;
    public WidgetManager LJLI;
    public CzM LJLIIIL;
    public C0279Cqt LJLIIL;
    public View LJLIL;
    public Handler LJLILLLLZI = new Handler(Looper.getMainLooper());
    public float LJLJI;
    public C0017Cgr LJLJJI;
    public WidgetManager LJLJJL;
    public BaseFeedPageParams LJLJJLL;
    public boolean LJLJL = false;
    public final Mjy LJLJLJ = new Mjy();
    public boolean LJLJLLL = false;
    public View.OnTouchListener LJLL;
    public 3EY LJLLI;
    public int LJLLILLLL = -1;
    public long LJLLJ;
    public long LJLLL;
    public final boolean LJLLLL = false;
    public boolean LJLLLLLL = false;
    public boolean LJLZ = false;
    public ScrollSwitchStateManager LJZ;
    public AP2 LJZI;
    public String LJZL;
    public long LL = -1;
    public boolean LLD;
    public boolean LLF;
    public Qus LLFF;
    public C0054Cic LLFFF;
    public VideoViewModel LLFII;
    public VideoPlayViewModel LLFZ;
    public VideoPlaySearchViewModel LLI;
    public VideoEventDispatchViewModel LLIFFJFJJ;
    public CgQ LLII;
    public FrameLayout LLIIII;
    public 4VX LLIIIILZ;
    public LinearLayout LLIIIJ;
    public FrameLayout LLIIIL;
    public final ViewTreeObserver.OnGlobalLayoutListener LLIIIZ = new ViewTreeObserver.OnGlobalLayoutListener() {
        static {
            Covode.recordClassIndex(76495);
        }

        public final void onGlobalLayout() {
            if (VideoViewCell.this.LJLJL() != VideoViewCell.this.LJLJI && VideoViewCell.this.LJJLJLI != null) {
                VideoViewCell.this.LJJLJLI.LIZ((int) VideoViewCell.this.LJLJL(), VideoViewCell.this.LJJJJ.getHeight());
                VideoViewCell videoViewCell = VideoViewCell.this;
                videoViewCell.LJLJI = videoViewCell.LJLJL();
            }
        }
    };
    public int LLIIJI;
    public boolean LLIIJLIL = true;
    public double LLIIL = -1.0d;
    public boolean LLIILII = false;
    public final SparseBooleanArray LLIILZL = new SparseBooleanArray();
    public Runnable LLIIZ = null;
    public final C0504Czk LLIL = new C0504Czk(LJIIJJI());
    public final 0CM<FollowStatus> LLILII = new C0010Cgk(this);
    public final Set<C0282Cqw> LLILIL = new ConcurrentHashSet();

    static {
        Covode.recordClassIndex(76494);
    }

    public final void LIZIZ(int i, int i2) {
    }

    public final void LIZLLL(int i) {
    }

    public void LJFF(Aweme aweme) {
    }

    public final 7Pp LJIIJ() {
        return this;
    }

    public final int LJIIZILJ() {
        return 1;
    }

    public final 2IR LJIJJ() {
        return this;
    }

    public final 2GH d_(String str) {
        if (str.hashCode() != 625290945) {
            return null;
        }
        return this;
    }

    public Map<Integer, Object> getSubscriberEventTypes() {
        HashMap hashMap = new HashMap();
        hashMap.put(58, new Rc9(VideoViewCell.class, "onJsBroadCastEvent", Hx0.class, ThreadMode.MAIN, 0, false));
        return hashMap;
    }

    public void onRetryOnError(7cy r1) {
    }

    public Aweme LIZIZ() {
        return this.LJIIL;
    }

    public final 4RT LJIJ() {
        return this.LJJLIL;
    }

    public final 7Qw LJJIZ() {
        return this.LJIIJ;
    }

    public final C0034Chi LJJJIL() {
        return this.LJIJ;
    }

    public final boolean LJJJJ() {
        return this.LJFF;
    }

    public final 7YY LJJJJI() {
        return this.LJI;
    }

    public final boolean LJJJJJ() {
        return this.LJJZZI;
    }

    public final boolean LJJJJZ() {
        return this.LLF;
    }

    public final ImageView LJJLIIIIJ() {
        return this.LJJIJIL;
    }

    public final View LJJLIIIJLLLLLLLZ() {
        return this.LJJJJ;
    }

    public final Context LJL() {
        return this.LJJLIIIJLJLI;
    }

    public final JSONObject LJLIIL() {
        return this.LJJLIIJ;
    }

    public final double LJLILLLLZI() {
        return this.LLIIL;
    }

    public final DataCenter LJLJJI() {
        return this.LJL;
    }

    public final void LIZ(Bitmap bitmap) {
        SmartImageView smartImageView = this.LJIJI;
        if (smartImageView != null && bitmap != null) {
            smartImageView.setImageBitmap(bitmap);
            this.LJIJI.setVisibility(0);
        }
    }

    public final void LIZ(View.OnTouchListener onTouchListener) {
        CiW ciW = this.LJJJIL;
        if (ciW != null) {
            T0P t0p = onTouchListener != null ? this.LJJJI : null;
            ciW.LIZ = onTouchListener;
            ciW.LIZIZ = t0p;
        }
    }

    public void LIZ(Aweme aweme, int i) {
        this.LJIILIIL = i;
        if (LJIIJJI() == 2 && ((Boolean) C0051Chz.LIZ.getValue()).booleanValue() && 7d2.LIZIZ == 0) {
            for (Runnable run : 7d2.LIZ) {
                run.run();
            }
            7d2.LIZ.clear();
        }
        LIZ(aweme);
    }

    public void LIZ(Aweme aweme) {
        super.LIZ(aweme);
        if (aweme != null) {
            if (2mK.LIZ) {
                if (2mK.LIZIZ == 0) {
                    2HX.LIZ.LIZ("feed_ui_duration_first_videoviewcell_bind", false);
                } else if (2mK.LIZIZ == 1) {
                    2HX.LIZ.LIZ("feed_ui_duration_second_videoviewcell_bind", false);
                }
            }
            LJ(aweme);
            if (!2mK.LIZ) {
                return;
            }
            if (2mK.LIZIZ == 0) {
                2HX.LIZ.LIZIZ("feed_ui_duration_first_videoviewcell_bind", false);
            } else if (2mK.LIZIZ == 1) {
                2HX.LIZ.LIZIZ("feed_ui_duration_second_videoviewcell_bind", false);
            }
        }
    }

    public final void LIZ(42V r15) {
        if (this.LJIIL.getAid().equals(r15.LIZIZ.getAid())) {
            UrlModel urlModel = r15.LIZ.labelPrivate;
            this.LJIIL.setLabelPrivate(urlModel);
            this.LJIIL.setHybridLabels(r15.LIZ.hybridLabels);
            AwemeLabelModel awemeLabelModel = null;
            if (urlModel != null) {
                awemeLabelModel = new AwemeLabelModel();
                awemeLabelModel.setLabelType(1);
                awemeLabelModel.setUrlModels(urlModel);
            }
            if (!(this.LJIIL == null || this.LJIIL.videoLabels == null)) {
                if (this.LJIIL.videoLabels.size() == 0) {
                    this.LJIIL.videoLabels.add(0, awemeLabelModel);
                } else {
                    this.LJIIL.videoLabels.set(0, awemeLabelModel);
                }
            }
            if (!878.LIZ(this.LJIIL.getHybridLabels()) || (((Boolean) SharePrefCache.inst().getIsPrivateAvailable().LIZLLL()).booleanValue() && urlModel != null && !878.LIZ(urlModel.getUrlList()))) {
                LJJIJL();
                this.LJJIIZ.LIZIZ(this.LJIIL, this.LJIIL.getVideoLabels(), CbP.LJFF);
                return;
            }
            CbP cbP = this.LJJIIZ;
            View LIZ = cbP.LIZ(1);
            if (LIZ != null || (LIZ = cbP.LIZ(11)) != null) {
                int indexOfChild = cbP.indexOfChild(LIZ);
                ArrayList arrayList = new ArrayList();
                if (indexOfChild != -1) {
                    AnimatorSet animatorSet = new AnimatorSet();
                    ArrayList arrayList2 = new ArrayList();
                    for (int i = 0; i < cbP.getChildCount(); i++) {
                        if (i > indexOfChild) {
                            arrayList.add(cbP.getChildAt(i));
                            int LIZIZ = (int) (((float) (-LIZ.getWidth())) - HeD.LIZIZ(cbP.LIZIZ, 7.0f));
                            arrayList2.add(ObjectAnimator.ofFloat(cbP.getChildAt(i), "translationX", new float[]{0.0f, (float) LIZIZ}));
                        }
                    }
                    animatorSet.setDuration(200);
                    animatorSet.playSequentially(arrayList2);
                    animatorSet.start();
                }
                LIZ.animate().alpha(0.0f).setDuration(150).withEndAction(new TagLayout.2(cbP, LIZ, arrayList));
            }
        }
    }

    public final void LIZ(String str, String str2) {
        if (this.LJIIL != null && TextUtils.equals(this.LJIIL.getAid(), str2) && !TextUtils.isEmpty(str) && !TextUtils.isEmpty(str2)) {
            if ((TextUtils.equals(LJLIIIL(), "homepage_hot") || TextUtils.equals(LJLIIIL(), "personal_homepage") || TextUtils.equals(LJLIIIL(), "others_homepage") || TextUtils.equals(LJLIIIL(), "challenge")) && this.LJJIIZ != null) {
                this.LJIIL.setFeedRelationLabel(RelationLabelHelper.mockStarCommentLabel(this.LJIIL.getAuthor()));
            }
        }
    }

    public final void LIZ(Cg8 cg8) {
        3av LIZIZ;
        2kf.LIZIZ(3, "VideoViewCell", "shareSending" + cg8.LIZIZ + " enter from: " + cg8.LJI);
        if (this.LJIIL == null) {
            return;
        }
        if ((TextUtils.equals(cg8.LIZ, this.LJIIL.getAid()) || "publish_share_panel".equals(cg8.LJI)) && !CommentServiceImpl.LJI().LIZ(this.LJJLIIIJLJLI) && !LJLZ()) {
            this.LJZL = cg8.LIZIZ;
            AP2 ap2 = this.LJZI;
            M12.LIZ(cg8);
            if (ap2 != null && (LIZIZ = ap2.LIZ.LIZIZ()) != null) {
                LIZIZ.LJ(2131834446);
                if (!cg8.LJIIIIZZ) {
                    LIZIZ.LIZIZ();
                }
                if (!cg8.LJIIIZ) {
                    LIZIZ.LIZJ();
                }
                if (cg8.LJ) {
                    LIZIZ.LIZ(B6p.LIZIZ.getString(2131832115, new Object[]{cg8.LIZLLL.getDisplayName()}));
                } else {
                    LIZIZ.LIZ(B6p.LIZIZ.getString(2131832114, new Object[]{cg8.LIZLLL.getDisplayName()}));
                }
                LIZIZ.LIZ(new CgA(LIZIZ, cg8));
                LIZIZ.LIZ(2131755558);
                LIZIZ.LIZJ(2130968624);
                LIZIZ.LIZ(cg8.LIZJ);
                LIZIZ.LJ();
                IMService.createIIMServicebyMonsterPlugin(false).logImIconRedesignExperiment("bottom_bar", "show");
            }
        }
    }

    public final void LIZ(Cg9 cg9) {
        3av LIZIZ;
        if (TextUtils.isEmpty(this.LJZL) || this.LJZL == cg9.LIZIZ) {
            2kf.LIZIZ("VideoViewCell", "shareUndo" + cg9.LIZIZ);
            AP2 ap2 = this.LJZI;
            M12.LIZ(cg9);
            if (ap2 != null && (LIZIZ = ap2.LIZ.LIZIZ()) != null) {
                if (!cg9.LIZLLL) {
                    LIZIZ.LIZIZ();
                }
                if (!cg9.LJ) {
                    LIZIZ.LIZJ();
                }
                LIZIZ.LIZ(B6p.LIZIZ.getString(2131824858));
                LIZIZ.LIZ(2131755388);
                LIZIZ.LIZJ(2130968624);
                LIZIZ.LIZ(cg9.LIZJ);
                LIZIZ.LJ();
                B6p.LIZJ.LIZ(cg9.LIZJ);
            }
        }
    }

    public final void LIZ(B6u b6u) {
        2kf.LIZIZ(3, "VideoViewCell", "shareComplete" + b6u.LJI + " enter from: " + b6u.LJ);
        if (this.LJIIL == null) {
            return;
        }
        if ((!TextUtils.equals(b6u.LJI, this.LJIIL.getAid()) && !"publish_share_panel".equals(b6u.LJ)) || CommentServiceImpl.LJI().LIZ(this.LJJLIIIJLJLI)) {
            return;
        }
        if (b6u.LIZLLL.equals("mix_videos") && b6u.LJIIJ != this.LJJLIIIJLJLI.hashCode()) {
            return;
        }
        if (LJLZ()) {
            3BB r1 = new 3BB(9EH.LJJIFFI.LIZ());
            r1.LIZIZ(2131825982);
            r1.LIZIZ();
        } else if (TextUtils.isEmpty(this.LJZL) || TextUtils.isEmpty(b6u.LJIIIIZZ) || this.LJZL == b6u.LJIIIIZZ) {
            long j = 0;
            if (!TextUtils.isEmpty(b6u.LJIIIIZZ)) {
                j = 500;
            }
            B6p.LIZ(b6u, this.LJZI, j, this.LJIIL);
        }
    }

    public final void LIZ(AR9 ar9) {
        BottomToastVM bottomToastVM = this.LJZI.LIZ;
        long j = ar9.LIZ;
        M12.LIZ(bottomToastVM);
        if (j > 0) {
            8YD.LIZJ.LIZ().postDelayed(new C0009Cgj(bottomToastVM), j);
        } else {
            bottomToastVM.LIZ();
        }
    }

    public final /* synthetic */ void LIZ(1hK r4) {
        C2844DwO.LIZ.LIZ(r4, LJLIIIL(), this.LJIIL);
    }

    public final void LIZ(String str) {
        this.LJJZZIII = str;
        if (this.LLIILII) {
            ChB.LIZ.LIZ(new 8Ys(true, new CgN(this, str)));
        } else {
            this.LJIIJJI.setEnterMethodValue(str);
        }
        LJLLLLLL();
    }

    public void LIZ(Video video) {
        this.LJJZ = true;
        this.LJI = new 7YY();
        Aweme aweme = this.LJIIL;
        3Fs r3 = this.LJJLJ;
        Context context = this.LJJLIIIJLJLI;
        View LJJ2 = this.LJIJ.LJJ();
        SmartImageView smartImageView = this.LJIJI;
        if (aweme == null) {
            2kf.LIZ(new NullPointerException("aweme is null"));
        } else if (aweme.isVr()) {
            r3.LIZ(LJJ2);
            r3.LIZ(smartImageView);
        } else if (aweme.getVideo() != null) {
            r3.LIZ(context, aweme.getVideo(), LJJ2, smartImageView, aweme.getOcrLocation());
        }
        this.LJJLJ.LIZ(this.LJJLIIIJLJLI, aweme.getVideo(), this.LJJLIIIIJ, aweme.getOcrLocation());
        LJI("bindCoverImage");
        if (LEp.LIZ(this.LJIIL, 3)) {
            if (video == null || !LIZ(video.getOriginCover())) {
                Cg7.LIZ(this.LJIJI);
                SmartImageView smartImageView2 = this.LJIJI;
                smartImageView2.setImageURI(Uri.parse("res://" + this.LJJLIIIJLJLI.getPackageName() + "/2131099659"));
                return;
            }
            QJt LIZ = QHW.LIZ(3EX.LIZ(video.getOriginCover()));
            LIZ.LJJII = 4ma.HIGH;
            LIZ.LIZ("VideoViewCell");
            LIZ.LJJIIZ = this.LJIJI;
            LIZ.LIZ(new 7YX(this, this.LJI));
        } else if (video == null || video.getPlayAddr() == null || 878.LIZ(video.getPlayAddr().getUrlList()) || !LIZ(video.getOriginCover())) {
            Cg7.LIZ(this.LJIJI, this.LJJLIIIJLJLI, 2131233326);
        } else if (D0M.LIZLLL((2EE) this)) {
            QJt LIZ2 = QHW.LIZ(3EX.LIZ(video.getOriginCover()));
            LIZ2.LIZ("VideoViewCell");
            LIZ2.LJJIIZ = this.LJIJI;
            LIZ2.LIZ(new 7YX(this, this.LJI));
        } else {
            int LJIJI2 = 7Rl.LJIJI();
            if (7Rl.LJIJJ() && ((LJIJI2 == 2 || LJIJI2 == 3) && !D0M.LJFF(this.LJIIL))) {
                SmartImageView smartImageView3 = this.LJIJI;
                if (smartImageView3 != null) {
                    smartImageView3.setVisibility(0);
                    Cg7.LIZ(this.LJIJI, this.LJJLIIIJLJLI, 2131231865);
                }
            } else if (((Boolean) 7ku.LJIJI.getValue()).booleanValue()) {
                8YD.LIZJ.LIZ().postAtFrontOfQueue(new CgO(this, aweme, video));
            } else {
                LIZ(aweme, video);
                this.LJJZ = true;
            }
        }
    }

    public final void LIZ(Aweme aweme, Video video) {
        if (4lx.LJI(aweme)) {
            Cg7.LIZ(this.LJIJI, this.LJJLIIIJLJLI, 2131233326);
        } else if (!9Y3.LIZ(9Y3.LIZ(), true, "enable_reuse_external_image", false) || this.LJLJJLL.awemeFromPage != 2 || video.getCachedOuterCoverUrl() == null || video.getCachedOuterCoverUrl().getUrlList().isEmpty()) {
            LIZIZ(video);
        } else {
            QJt LIZ = QHW.LIZ(3EX.LIZ(video.getCachedOuterCoverUrl()));
            if (video.getCachedOuterCoverSize() != null) {
                LIZ.LIZIZ(video.getCachedOuterCoverSize());
            }
            LIZ.LIZ("VideoViewCell");
            LIZ.LJJIIZ = this.LJIJI;
            LIZ.LIZJ = false;
            LIZ.LIZ(new 7YX(this, this.LJI));
        }
    }

    public void LIZ(View view, boolean z) {
        int i = 0;
        boolean z2 = z || QlK.LIZJ(this.LJIIL) || D0M.LJI(this.LJIIL) || D0M.LJII(this.LJIIL) || this.LJIIL.isReferralFakeAweme();
        Boolean bool = false;
        if (this.LJIILJJIL != null && (this.LJIILJJIL instanceof Ch2)) {
            bool = Boolean.valueOf(this.LJIILJJIL.LIZIZ());
        }
        if (!TextUtils.equals(LJLIIIL(), "homepage_popular") || D0M.LJI(this.LJIIL) || bool.booleanValue()) {
            if (z2) {
                i = 4;
            }
            view.setVisibility(i);
            if (!z2) {
                view.setAlpha(1.0f);
            }
        } else if (!z2) {
            view.setVisibility(0);
            view.animate().setInterpolator(new TBL()).alpha(1.0f).setDuration(200).start();
        } else {
            view.animate().setInterpolator(new TBL()).alpha(0.0f).setDuration(300).withEndAction(new C0024Cgy(view)).start();
        }
    }

    public final void LIZ(boolean z, int i) {
        View view = this.LJJL;
        if (view != null) {
            if (z) {
                ViewGroup.LayoutParams layoutParams = view.getLayoutParams();
                layoutParams.height = i;
                this.LJJL.setLayoutParams(layoutParams);
                this.LJJL.requestLayout();
            }
            this.LJJL.setVisibility(z ? 0 : 8);
        }
    }

    public void LIZ(boolean z) {
        this.LJJLIL.LIZLLL(z);
        if (z) {
            this.LJJ.animate().alpha(0.0f).setDuration(200).start();
            this.LLIIIJ.animate().alpha(0.0f).setDuration(200).start();
            this.LJJIFFI.animate().alpha(0.0f).setDuration(200).start();
            this.LJIIZILJ.animate().alpha(0.0f).setDuration(200).start();
            this.LJFF = true;
            return;
        }
        this.LJJ.animate().alpha(1.0f).setDuration(200).start();
        this.LLIIIJ.animate().alpha(1.0f).setDuration(200).start();
        this.LJJIFFI.animate().alpha(1.0f).setDuration(200).start();
        this.LJIIZILJ.setVisibility(0);
        this.LJIIZILJ.animate().alpha(1.0f).setDuration(200).start();
        if (this.LJFF) {
            this.LJFF = false;
        }
    }

    public final void LIZIZ(boolean z, boolean z2) {
        this.LJJLIL.LIZLLL(z);
        if (z) {
            ViewPropertyAnimator duration = this.LJIIZILJ.animate().alpha(0.0f).setDuration(200);
            this.LLIIIJ.animate().alpha(0.0f).setDuration(200).start();
            if (z2) {
                duration.setListener(new CgJ(this, duration));
            }
            duration.start();
            this.LJFF = true;
            return;
        }
        if (TextUtils.equals(LJLIIIL(), "homepage_friends") && 2oQ.LIZ().LIZJ) {
            this.LJIIZILJ.setVisibility(8);
        } else if (TextUtils.equals(LJLIIIL(), "homepage_nearby") && 2oQ.LIZ().LJ) {
            this.LJIIZILJ.setVisibility(8);
        } else if (!TextUtils.equals(LJLIIIL(), "homepage_popular") || !2oQ.LIZ().LIZLLL) {
            this.LJIIZILJ.setVisibility(0);
        }
        this.LJIIZILJ.animate().alpha(1.0f).setDuration(200).start();
        this.LLIIIJ.animate().alpha(1.0f).setDuration(200).start();
        if (this.LJFF) {
            this.LJFF = false;
        }
    }

    /* JADX WARNING: Code restructure failed: missing block: B:157:0x02f9, code lost:
        if (r0.LIZJ != false) goto L_0x02fb;
     */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public void LIZ(int r15) {
        /*
            r14 = this;
            super.LIZ((int) r15)
            r14.LJIILIIL = r15
            r6 = 0
            r14.LJLZ = r6
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r14.LJIIL
            boolean r0 = X.LFp.LJJIII(r0)
            java.lang.String r5 = ""
            r4 = 0
            r3 = 1
            java.lang.Boolean r2 = java.lang.Boolean.valueOf(r3)
            if (r0 == 0) goto L_0x02ce
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r14.LJIIL
            boolean r0 = X.LFp.LJJJZ(r0)
            if (r0 != 0) goto L_0x02ce
            r14.LIZIZ((boolean) r3)
            X.4RT r0 = r14.LJJLIL
            r0.LJJJJJ()
        L_0x0028:
            java.lang.String r0 = "onViewHolderSelected"
            r14.LJI((java.lang.String) r0)
            com.ss.android.ugc.aweme.arch.widgets.base.DataCenter r1 = r14.LJL
            if (r1 == 0) goto L_0x0043
            java.lang.String r0 = "on_page_selected"
            r1.LIZ((java.lang.String) r0, (java.lang.Object) r2)
            com.ss.android.ugc.aweme.arch.widgets.base.DataCenter r7 = r14.LJL
            int r0 = r14.LJIILIIL
            java.lang.Integer r1 = java.lang.Integer.valueOf(r0)
            java.lang.String r0 = "position_in_list"
            r7.LIZ((java.lang.String) r0, (java.lang.Object) r1)
        L_0x0043:
            com.ss.android.ugc.feed.platform.container.interaction.FeedInteractionAreaContainer r0 = r14.LJIILL
            r0.LIZ((int) r15)
            com.ss.android.ugc.aweme.feed.adapter.VideoViewModel r1 = r14.LLFII
            X.A3U r0 = new X.A3U
            r0.<init>(r15)
            r1.setState(r0)
            X.A3V r0 = new X.A3V
            r0.<init>(r15)
            r1.setState(r0)
            com.ss.android.ugc.aweme.feed.model.BaseFeedPageParams r0 = r14.LJLJJLL
            if (r0 != 0) goto L_0x02c6
            r8 = r5
        L_0x005f:
            android.widget.RelativeLayout r9 = r14.LJJJJLL
            com.ss.android.ugc.aweme.feed.model.Aweme r7 = r14.LJIIL
            X.9EH r0 = X.9EH.LJJIFFI
            android.content.Context r1 = r0.LIZ()
            if (r9 == 0) goto L_0x009b
            r0 = 2131372433(0x7f0a2991, float:1.8364929E38)
            android.view.View r9 = r9.findViewById(r0)
            r0 = 2131825011(0x7f111173, float:1.9282866E38)
            java.lang.String r1 = r1.getString(r0)
            if (r9 == 0) goto L_0x009b
            boolean r0 = r9 instanceof X.Qeg
            if (r0 == 0) goto L_0x009b
            r0 = r9
            androidx.appcompat.widget.AppCompatTextView r0 = (androidx.appcompat.widget.AppCompatTextView) r0
            java.lang.CharSequence r0 = r0.getText()
            java.lang.String r0 = r0.toString()
            boolean r0 = r0.equals(r1)
            if (r0 == 0) goto L_0x009b
            int r0 = r9.getVisibility()
            if (r0 != 0) goto L_0x009b
            X.4wT r0 = X.4wT.LIZ
            r0.LIZ(r7, r8, r6)
        L_0x009b:
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r14.LJIIL
            r7 = 8
            if (r0 == 0) goto L_0x00c0
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r14.LJIIL
            boolean r0 = r0.isReferralFakeAweme()
            if (r0 == 0) goto L_0x00c0
            X.Cic r10 = r14.LJJIJIL()
            X.ChW r0 = r10.LJIIZILJ
            r9 = 2
            if (r0 == 0) goto L_0x020c
            int r0 = r0.LJ
            if (r0 != r9) goto L_0x020c
            android.widget.LinearLayout r0 = r10.LIZIZ
            if (r0 == 0) goto L_0x01fd
            int r0 = r0.getVisibility()
            if (r0 != 0) goto L_0x01fd
        L_0x00c0:
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r14.LJIIL
            boolean r0 = X.C0022Cgw.LIZ(r0)
            if (r0 == 0) goto L_0x00d9
            android.widget.FrameLayout r0 = r14.LJJJJ
            if (r0 == 0) goto L_0x00d9
            X.7Pv r8 = X.LDj.LJ()
            android.content.Context r5 = r14.LJJLIIIJLJLI
            com.ss.android.ugc.aweme.feed.model.Aweme r1 = r14.LJIIL
            android.widget.FrameLayout r0 = r14.LJJJJ
            r8.LIZ(r5, r1, r0, r3)
        L_0x00d9:
            java.lang.String r1 = r14.LJLIIIL()
            java.lang.String r0 = "homepage_hot"
            boolean r0 = android.text.TextUtils.equals(r1, r0)
            if (r0 == 0) goto L_0x00fc
            boolean r0 = r14.LJIIIZ
            if (r0 == 0) goto L_0x00fa
            X.Chi r0 = r14.LJIJ
            X.8O1 r0 = r0.LIZJ()
            if (r0 == 0) goto L_0x00fa
            X.Chi r0 = r14.LJIJ
            X.8O1 r0 = r0.LIZJ()
            r0.LIZLLL()
        L_0x00fa:
            r14.LJIIIZ = r6
        L_0x00fc:
            int r0 = r14.LLIIJI
            boolean r0 = X.C0000Cga.LIZ((int) r0)
            if (r0 == 0) goto L_0x010e
            X.3dd r1 = new X.3dd
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r14.LJIIL
            r1.<init>(r0)
            X.CqM.LIZ(r1)
        L_0x010e:
            X.4RT r0 = r14.LJJLIL
            r0.LJIIJJI()
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r14.LJIIL
            boolean r0 = X.LFp.LJJIII(r0)
            if (r0 == 0) goto L_0x011e
            r14.LLF()
        L_0x011e:
            android.content.Context r0 = r14.LJJLIIIJLJLI
            java.lang.String r3 = r14.LJLIIIL()
            if (r0 == 0) goto L_0x013c
            X.1hK r1 = X.3jJ.LIZIZ(r0)
            if (r1 == 0) goto L_0x013c
            X.2I4 r0 = com.ss.android.ugc.aweme.homepage.api.data.HomePageDataViewModel.LJIILJJIL
            com.ss.android.ugc.aweme.homepage.api.data.HomePageDataViewModel r0 = r0.LIZ(r1)
            java.lang.String r0 = r0.LIZIZ()
            boolean r0 = android.text.TextUtils.equals(r0, r3)
            if (r0 != 0) goto L_0x014e
        L_0x013c:
            X.Cgz r3 = new X.Cgz
            java.lang.String r1 = r14.LJLIIIL()
            int r0 = r14.LLIIJI
            boolean r0 = X.C0000Cga.LIZ((int) r0)
            r3.<init>(r1, r0)
            X.CqM.LIZ(r3)
        L_0x014e:
            X.CmZ r3 = r14.LJJLJLI
            if (r3 == 0) goto L_0x0177
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r14.LJIIL
            if (r0 == 0) goto L_0x01fa
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r14.LJIIL
            java.lang.String r1 = r0.getAid()
        L_0x015c:
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r3.LIZ
            if (r0 == 0) goto L_0x01f7
            java.lang.String r0 = r0.getAid()
        L_0x0164:
            boolean r0 = kotlin.h.b.n.LIZ(r1, r0)
            if (r0 == 0) goto L_0x0177
            com.ss.android.ugc.aweme.arch.widgets.base.DataCenter r0 = r3.LIZIZ
            java.lang.String r1 = "viewholder_select_status_changed"
            if (r0 == 0) goto L_0x01ef
            com.ss.android.ugc.aweme.arch.widgets.base.DataCenter r0 = r3.LIZIZ
            if (r0 == 0) goto L_0x0177
            r0.LIZ((java.lang.String) r1, (java.lang.Object) r2)
        L_0x0177:
            long r0 = android.os.SystemClock.elapsedRealtime()
            r14.LL = r0
            android.widget.FrameLayout r0 = r14.LJJJJJL
            if (r0 == 0) goto L_0x01d2
            X.4nv r2 = X.CzM.LJJ
            com.ss.android.ugc.aweme.feed.model.BaseFeedPageParams r1 = r14.LJLJJLL
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r14.LJIIL
            boolean r0 = r2.LIZ(r1, r0)
            if (r0 == 0) goto L_0x01e2
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r14.LJIIL
            if (r0 == 0) goto L_0x01e2
            X.CgQ r0 = r14.LLII
            if (r0 != 0) goto L_0x01bc
            com.ss.android.ugc.aweme.comment.services.CommentService r3 = com.ss.android.ugc.aweme.comment.CommentServiceImpl.LJI()
            X.A64 r2 = new X.A64
            android.widget.FrameLayout r1 = r14.LJJJJJL
            androidx.fragment.app.Fragment r0 = r14.LJIILJJIL
            r2.<init>(r1, r0)
            com.ss.android.ugc.aweme.feed.model.BaseFeedPageParams r0 = r14.LJLJJLL
            java.lang.String r0 = r0.eventType
            r2.LIZ = r0
            com.ss.android.ugc.aweme.feed.model.BaseFeedPageParams r0 = r14.LJLJJLL
            int r0 = r0.pageType
            java.lang.Integer r0 = java.lang.Integer.valueOf(r0)
            r2.LIZIZ = r0
            X.A63 r0 = r2.LIZ()
            X.CgQ r0 = r3.LIZ(r0)
            r14.LLII = r0
        L_0x01bc:
            android.view.ViewGroup r0 = r14.LJJJ
            r0.setVisibility(r7)
            android.widget.FrameLayout r0 = r14.LJJJJJL
            r0.setVisibility(r6)
            X.CgQ r0 = r14.LLII
            r0.LIZ()
            X.CgQ r1 = r14.LLII
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r14.LJIIL
            r1.LIZ(r0)
        L_0x01d2:
            X.Dfy r0 = X.C1826Dfy.LIZ
            X.E5z r2 = r0.LIZLLL()
            com.ss.android.ugc.aweme.feed.model.Aweme r1 = r14.LJIIL
            java.lang.String r0 = r14.LJLIIIL()
            r2.LIZ((com.ss.android.ugc.aweme.feed.model.Aweme) r1, (java.lang.String) r0)
            return
        L_0x01e2:
            r14.LLII = r4
            android.view.ViewGroup r0 = r14.LJJJ
            r0.setVisibility(r6)
            android.widget.FrameLayout r0 = r14.LJJJJJL
            r0.setVisibility(r7)
            goto L_0x01d2
        L_0x01ef:
            com.ss.android.ugc.aweme.shortvideo.sticker.infoSticker.interact.consume.widget.InteractStickerViewModel r0 = r3.LJIIIZ
            if (r0 == 0) goto L_0x0177
            r0.LIZ(r1, r2)
            goto L_0x0177
        L_0x01f7:
            r0 = r4
            goto L_0x0164
        L_0x01fa:
            r1 = r4
            goto L_0x015c
        L_0x01fd:
            android.view.View r11 = r10.LIZ
            if (r11 == 0) goto L_0x0283
            X.Ci9 r8 = new X.Ci9
            r8.<init>(r10)
            r0 = 1000(0x3e8, double:4.94E-321)
            r11.postDelayed(r8, r0)
            goto L_0x0283
        L_0x020c:
            X.ChW r0 = r10.LJIIZILJ
            if (r0 == 0) goto L_0x0283
            int r0 = r0.LJ
            if (r0 != r3) goto L_0x0283
            android.widget.LinearLayout r0 = r10.LIZIZ
            if (r0 == 0) goto L_0x021b
            r0.setVisibility(r7)
        L_0x021b:
            android.widget.LinearLayout r0 = r10.LJI
            if (r0 == 0) goto L_0x0222
            r0.setVisibility(r6)
        L_0x0222:
            X.ChW r0 = r10.LJIIZILJ
            if (r0 == 0) goto L_0x027c
            X.2Rc r0 = r0.LJI
            if (r0 == 0) goto L_0x027c
            X.2Je r11 = r0.LIZLLL
            if (r11 == 0) goto L_0x027c
            X.1Fq r13 = r10.LJIIIZ
            if (r13 == 0) goto L_0x0246
            android.util.JsonReader r12 = new android.util.JsonReader
            java.io.FileReader r8 = new java.io.FileReader
            java.io.File r1 = new java.io.File
            java.lang.String r0 = r11.LJFF
            r1.<init>(r0)
            r8.<init>(r1)
            r12.<init>(r8)
            r13.LIZ(r12, r4)
        L_0x0246:
            X.1Fq r0 = r10.LJIIIZ
            if (r0 == 0) goto L_0x024d
            r0.setRepeatCount(r6)
        L_0x024d:
            X.1Fq r0 = r10.LJIIIZ
            if (r0 == 0) goto L_0x0254
            r0.setFrame(r6)
        L_0x0254:
            X.3Ok r8 = new X.3Ok
            r8.<init>()
            r8.element = r3
            X.1Fq r1 = r10.LJIIIZ
            if (r1 == 0) goto L_0x0267
            X.Ch0 r0 = new X.Ch0
            r0.<init>(r10, r11)
            r1.LIZ(r0)
        L_0x0267:
            X.1Fq r1 = r10.LJIIIZ
            if (r1 == 0) goto L_0x0273
            X.Chd r0 = new X.Chd
            r0.<init>(r10, r8, r11)
            r1.LIZ(r0)
        L_0x0273:
            X.1Fq r1 = r10.LJIIIZ
            if (r1 == 0) goto L_0x027c
            X.CiG r0 = X.CiG.LIZ
            r1.setFailureListener(r0)
        L_0x027c:
            X.1Fq r0 = r10.LJIIIZ
            if (r0 == 0) goto L_0x0283
            r0.LIZJ()
        L_0x0283:
            com.ss.android.ugc.aweme.specact.api.ISpecActService r8 = com.ss.android.ugc.aweme.specact.SpecActServiceImpl.LJIJJ()
            if (r8 == 0) goto L_0x0297
            X.ChW r0 = r10.LJIIZILJ
            if (r0 == 0) goto L_0x0291
            java.lang.String r1 = r0.LJIIJJI
            if (r1 != 0) goto L_0x0292
        L_0x0291:
            r1 = r5
        L_0x0292:
            java.lang.String r0 = "feed_banner"
            r8.LIZ((java.lang.String) r1, (int) r9, (java.lang.String) r0)
        L_0x0297:
            X.2UX r8 = new X.2UX
            r8.<init>()
            com.ss.android.ugc.aweme.IAccountService r0 = com.ss.android.ugc.aweme.AccountService.LIZ()
            if (r0 == 0) goto L_0x02c4
            java.lang.String r1 = r0.LIZJ()
            if (r1 == 0) goto L_0x02c4
            java.lang.String r0 = "null cannot be cast to non-null type java.lang.String"
            java.util.Objects.requireNonNull(r1, r0)
            java.util.Locale r0 = java.util.Locale.ROOT
            java.lang.String r1 = r1.toLowerCase(r0)
            kotlin.h.b.n.LIZIZ(r1, r5)
        L_0x02b6:
            java.lang.String r0 = "region"
            r8.LIZ(r0, r1)
            java.util.Map r1 = r8.LIZ
            java.lang.String r0 = "feed_activation_video_show"
            X.2nK.LIZ(r0, r1)
            goto L_0x00c0
        L_0x02c4:
            r1 = r4
            goto L_0x02b6
        L_0x02c6:
            X.TnV r0 = r0.param
            java.lang.String r8 = r0.getFrom()
            goto L_0x005f
        L_0x02ce:
            int r0 = r14.LLIIJI
            boolean r0 = X.C0000Cga.LIZ((int) r0)
            if (r0 != 0) goto L_0x02fb
            android.content.Context r7 = r14.LJJLIIIJLJLI
            boolean r0 = r7 instanceof X.1hK
            if (r0 == 0) goto L_0x0304
            X.1hK r7 = (X.1hK) r7
            X.M12.LIZ(r7)
            X.0Bx r1 = X.0By.LIZ(r7, r4)
            boolean r0 = X.2GD.LIZ
            if (r0 == 0) goto L_0x02ec
            X.0Bs.LIZ(r1, r7)
        L_0x02ec:
            java.lang.Class<com.ss.android.ugc.aweme.main.CleanModeManager2> r0 = com.ss.android.ugc.aweme.main.CleanModeManager2.class
            X.0Bt r0 = r1.LIZ(r0)
            kotlin.h.b.n.LIZIZ(r0, r5)
            com.ss.android.ugc.aweme.main.CleanModeManager2 r0 = (com.ss.android.ugc.aweme.main.CleanModeManager2) r0
            boolean r0 = r0.LIZJ
            if (r0 == 0) goto L_0x0304
        L_0x02fb:
            android.widget.RelativeLayout r1 = r14.LJIIZILJ
            boolean r0 = r14.LLD()
            r14.LIZ((android.view.View) r1, (boolean) r0)
        L_0x0304:
            X.4RT r0 = r14.LJJLIL
            r0.LJJJJJL()
            goto L_0x0028
        */
        throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.feed.adapter.VideoViewCell.LIZ(int):void");
    }

    public final void LIZ(int i, long j) {
        if (!LEp.LIZ(this.LJIIL, 3)) {
            RelativeLayout relativeLayout = this.LJIIZILJ;
            CbP cbP = this.LJJIIZ;
            if (cbP != null) {
                Iterator LIZ = LeJ.LJ(C0041Chp.LIZIZ.LIZIZ(cbP)).LIZ();
                while (LIZ.hasNext()) {
                    View view = (View) LIZ.next();
                    Object tag = view.getTag(C0041Chp.LIZ);
                    if (!(tag instanceof Long)) {
                        tag = null;
                    }
                    Long l = (Long) tag;
                    if (l != null) {
                        long longValue = l.longValue();
                        if (longValue > 0) {
                            view.postDelayed(new CgY(view, relativeLayout, cbP), longValue);
                        }
                    }
                    C0041Chp.LIZIZ.LIZ(relativeLayout, cbP, view);
                }
            }
        }
        if (86a.LIZ(9EH.LJIJI, "lark_inhouse")) {
            this.LJJLIIIJ = 0QK.LIZ(this.LJLIL, this.LJJLIIIJ, 2131363923, 2131373034);
        }
        if (!this.LIZLLL && this.LJJLIIIJ != null) {
            if (TextUtils.isEmpty(this.LJIIL.getExtra())) {
                Cbz.LIZ(this.LJJLIIIJ, 8);
            } else {
                Cbz.LIZ(this.LJJLIIIJ, 0);
                this.LJJLIIIJ.setContent(this.LJIIL.getExtra());
            }
        }
        CbP cbP2 = this.LJJIIZ;
        if (!(cbP2 == null || cbP2.LIZLLL == null)) {
            if ((TextUtils.equals(cbP2.LIZJ, "homepage_hot") || TextUtils.equals(cbP2.LIZJ, "homepage_follow") || TextUtils.equals(cbP2.LIZJ, "homepage_popular") || TextUtils.equals(cbP2.LIZJ, "homepage_nearby") || TextUtils.equals(cbP2.LIZJ, "homepage_friends")) && cbP2.LIZLLL.getRelationRecommendInfo() != null) {
                2UX r4 = new 2UX();
                r4.LIZ("enter_from", cbP2.LIZJ);
                r4.LIZ("group_id", cbP2.LIZLLL.getAid());
                r4.LIZ("author_id", cbP2.LIZLLL.getAuthorUid());
                r4.LIZ("rec_type", cbP2.LIZLLL.getRelationRecommendInfo().getRecommendType());
                r4.LIZ("label_text", cbP2.LIZLLL.getRelationRecommendInfo().getRelationTextKey());
                if (cbP2.LIZLLL.getMutualRelation() != null && B62.LIZ.LIZIZ()) {
                    r4.LIZ("is_avatar", B62.LIZ.LIZJ());
                    r4.LIZ("maf_num", cbP2.LIZLLL.getMutualRelation().getTotal());
                }
                2nK.LIZ("show_label", r4.LIZ);
            } else if (!(cbP2.LIZLLL.getRelationLabel() == null || !cbP2.LIZLLL.getRelationLabel().isValid() || cbP2.LJ == null)) {
                MobClick obtain = MobClick.obtain();
                obtain.setEventName("show");
                obtain.setLabelName("like_banner");
                obtain.setValue(cbP2.LIZLLL.getAid());
                obtain.setExtValueString(46i.LJFF().getCurUserId());
                2nK.onEvent(obtain);
            }
        }
        if (this.LJIIL != null && this.LJIIL.isAd()) {
            MobClick obtain2 = MobClick.obtain();
            obtain2.setEventName("ad_show");
            2aZ r42 = new 2aZ();
            r42.LIZ("request_id", RequestIdService.LIZ().LIZ(this.LJIIL, this.LJLJJLL.pageType));
            obtain2.setJsonObject(r42.LIZ());
            obtain2.setExtValueString(this.LJIIL.getAid());
            2nK.onEvent(obtain2);
        }
        if (TextUtils.equals(LJLIIIL(), "homepage_hot")) {
            LDj.LJI().LIZ(this.LJJLIIIJLJLI, this.LJIIL, j);
            LDj.LJI().LIZIZ(this.LJJLIIIJLJLI, this.LJIIL, j);
        }
    }

    public final void LIZ(String str, int i, int i2, String str2) {
        VideoCaptionUpdateParams.Builder builder = new VideoCaptionUpdateParams.Builder();
        builder.setAwemeId(str);
        builder.setCode(i);
        builder.setTimestamp(i2);
        builder.setCaptionText(str2);
        VideoCaptionUpdateParams videoCaptionUpdateParams = builder.mParams;
        this.LJL.LIZ("update_caption_text", (Object) videoCaptionUpdateParams);
        VideoViewModel videoViewModel = this.LLFII;
        M12.LIZ(videoCaptionUpdateParams);
        videoViewModel.setState(new AUZ(videoCaptionUpdateParams));
    }

    public final void LIZ(int i, String str, int i2) {
        if (this.LL != -1) {
            Long valueOf = Long.valueOf(SystemClock.elapsedRealtime() - this.LL);
            this.LL = -1;
            2UX r1 = new 2UX();
            r1.LIZ("enter_from", LJLIIIL());
            r1.LIZ("group_id", 4wQ.LJ(this.LJIIL));
            r1.LIZ("author_id", 4wQ.LIZ(this.LJIIL));
            r1.LIZ("load_duration", valueOf);
            r1.LIZ("enable_experiment", 9Y3.LIZ(9Y3.LIZ(), true, "player_enable_opt_subload_time", 1));
            r1.LIZ("play_sess", str);
            r1.LIZ("cla_pre_cache_size", i2);
            2nK.LIZ("cla_caption_load_time", r1.LIZ);
        }
        2UX r12 = new 2UX();
        r12.LIZ("enter_from", LJLIIIL());
        r12.LIZ("group_id", 4wQ.LJ(this.LJIIL));
        r12.LIZ("author_id", 4wQ.LIZ(this.LJIIL));
        r12.LIZ("is_success", i);
        r12.LIZ("enable_experiment", 9Y3.LIZ(9Y3.LIZ(), true, "player_enable_opt_subload_time", 1));
        2nK.LIZ("cla_caption_load_success", r12.LIZ);
    }

    public final void LIZ(String str, long j, long j2, int i, long j3, long j4, long j5, int i2) {
        if (this.LL != -1) {
            Long valueOf = Long.valueOf(SystemClock.elapsedRealtime() - this.LL);
            this.LL = -1;
            2UX r1 = new 2UX();
            r1.LIZ("enter_from", LJLIIIL());
            r1.LIZ("group_id", 4wQ.LJ(this.LJIIL));
            r1.LIZ("author_id", 4wQ.LIZ(this.LJIIL));
            r1.LIZ("load_duration", valueOf);
            r1.LIZ("enable_experiment", 9Y3.LIZ(9Y3.LIZ(), true, "player_enable_opt_subload_time", 1));
            r1.LIZ("play_sess", str);
            r1.LIZ("duration", j);
            r1.LIZ("load_duration", j2);
            r1.LIZ("is_display_ontime", i);
            r1.LIZ("fst_display_position", j3);
            r1.LIZ("fst_line_position", j4);
            r1.LIZ("position_lag", j5);
            r1.LIZ("cla_pre_cache_size", i2);
            2nK.LIZ("cla_caption_load_time", r1.LIZ);
        }
    }

    public final void LIZ(String str, int i, int i2, int i3, long j) {
        this.LJL.LIZ("update_audio_state", (Object) true);
        2UX r1 = new 2UX();
        r1.LIZ("duration", j);
        r1.LIZ("tts_pre_cache_size", i2);
        r1.LIZ("tts_bitrate", i3);
        r1.LIZ("is_success", i);
        r1.LIZ("group_id", str);
        r1.LIZ("author_id", str);
        2nK.LIZ("tts_switch_play_quality", r1.LIZ);
    }

    public final void LIZ(3EY r2) {
        T0P t0p = this.LJJJI;
        if (t0p != null) {
            t0p.setListener(r2);
        }
    }

    public final void LIZ(int i, int i2) {
        this.LJLJLLL = true;
        if (!LSI.LIZLLL) {
            LIZ(0, (LsC<C5233Etp, C5233Etp>) null);
            LJJZZI();
        }
    }

    /* JADX WARNING: Code restructure failed: missing block: B:124:0x0364, code lost:
        LIZ(((java.lang.Integer) r8.LIZ()).intValue(), (X.LsC<X.C5233Etp, X.C5233Etp>) X.AP6.LIZ);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:125:0x0373, code lost:
        return;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:130:0x0388, code lost:
        r7.LLIIJLIL = false;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:131:0x038a, code lost:
        return;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:136:0x03a2, code lost:
        r7.LJJLIL.LIZ(X.LFp.LJJLIIIIJ(r7.LJIIL) * 1000, "passive_show");
     */
    /* JADX WARNING: Code restructure failed: missing block: B:137:0x03af, code lost:
        return;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:140:?, code lost:
        return;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:141:?, code lost:
        return;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:142:?, code lost:
        return;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:143:?, code lost:
        return;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:144:?, code lost:
        return;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:145:?, code lost:
        return;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:146:?, code lost:
        return;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:41:0x00ab, code lost:
        r2 = (java.lang.Boolean) r8.LIZ();
     */
    /* JADX WARNING: Code restructure failed: missing block: B:42:0x00b9, code lost:
        if (com.ss.android.ugc.trill.setting.TranslatedCaptionCacheServiceImpl.LJJIJ().LJ() == false) goto L_?;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:44:0x00c3, code lost:
        if (X.4o1.LIZ.LJIIIZ(r7.LJIIL) == false) goto L_?;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:45:0x00c5, code lost:
        r1 = X.7df.LJJJI();
     */
    /* JADX WARNING: Code restructure failed: missing block: B:46:0x00cd, code lost:
        if (r2.booleanValue() == false) goto L_0x00d6;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:47:0x00cf, code lost:
        r0 = com.ss.android.ugc.aweme.feed.model.Audio.InfoIdType.TRANSLATED;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:48:0x00d1, code lost:
        r1.LIZ(r0);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:49:0x00d6, code lost:
        r0 = com.ss.android.ugc.aweme.feed.model.Audio.InfoIdType.ORIGINAL;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:50:0x00d9, code lost:
        r1 = r7.LJJLIIIJLLLLLLLZ;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:51:0x00db, code lost:
        if (r1 == null) goto L_?;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:52:0x00dd, code lost:
        r1.LIZ(r8.LIZ());
     */
    /* JADX WARNING: Code restructure failed: missing block: B:53:0x00e4, code lost:
        return;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:55:0x00ef, code lost:
        if (((java.lang.Boolean) r8.LIZ()).booleanValue() == false) goto L_?;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:56:0x00f1, code lost:
        r7.LJJLIL.LJJIIZI();
     */
    /* JADX WARNING: Code restructure failed: missing block: B:57:0x00fe, code lost:
        if (X.7XB.LIZ(r7.LJIIL) == false) goto L_0x011a;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:59:0x0108, code lost:
        if (X.LDj.LIZIZ().isShowCommerceAfterInteraction() == false) goto L_0x011a;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:60:0x010a, code lost:
        r7.LJJLIL.LIZ(X.LDj.LIZIZ().getDelayTimeAfterInteraction() * 1000, "passive_show");
     */
    /* JADX WARNING: Code restructure failed: missing block: B:61:0x0119, code lost:
        return;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:63:0x0120, code lost:
        if (X.LFp.LJJLI(r7.LJIIL) == false) goto L_0x015c;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:65:0x0128, code lost:
        if (X.LFp.LJJIJL(r7.LJIIL) == false) goto L_0x03a2;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:67:0x0130, code lost:
        if (X.LFp.LJ(r7.LJIIL) == null) goto L_0x03a2;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:69:0x014b, code lost:
        if (r7.LJJLIL.LJJJJ().longValue() < ((long) (X.LFp.LJ(r7.LJIIL).getShowSeconds() * 1000))) goto L_0x03a2;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:70:0x014d, code lost:
        r7.LJJLIL.LIZ((long) (X.LFp.LJJLIIIIJ(r7.LJIIL) * 1000));
     */
    /* JADX WARNING: Code restructure failed: missing block: B:71:0x015b, code lost:
        return;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:73:0x0162, code lost:
        if (X.LFp.LJJIL(r7.LJIIL) == false) goto L_?;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:75:0x016a, code lost:
        if (X.LFp.LJJJ(r7.LJIIL) != false) goto L_?;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:76:0x016c, code lost:
        r7.LJJLIL.LIZ(0);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:77:0x0173, code lost:
        return;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:79:0x0183, code lost:
        LJIIIIZZ((java.lang.String) r8.LIZ());
     */
    /* JADX WARNING: Code restructure failed: missing block: B:80:0x018c, code lost:
        return;
     */
    /* renamed from: LIZ */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public void onChanged(X.33g r8) {
        /*
            r7 = this;
            if (r8 == 0) goto L_0x0012
            java.lang.String r1 = r8.LIZ
            r1.hashCode()
            r0 = -1
            int r0 = r1.hashCode()
            r6 = 1
            r2 = 3
            r3 = 0
            switch(r0) {
                case -1618328215: goto L_0x009a;
                case -1616128562: goto L_0x008e;
                case -1505149831: goto L_0x0083;
                case -1245454328: goto L_0x007a;
                case -962685926: goto L_0x006f;
                case -777668341: goto L_0x0066;
                case -492284990: goto L_0x005b;
                case -264863217: goto L_0x0052;
                case -162745511: goto L_0x0049;
                case -144973899: goto L_0x003d;
                case 1181771620: goto L_0x0031;
                case 1547809077: goto L_0x0028;
                case 1724642747: goto L_0x001c;
                case 1964086245: goto L_0x0013;
                default: goto L_0x0012;
            }
        L_0x0012:
            return
        L_0x0013:
            java.lang.String r0 = "to_profile"
            boolean r0 = r1.equals(r0)
            if (r0 != 0) goto L_0x0183
            goto L_0x0012
        L_0x001c:
            java.lang.String r0 = "video_gift_stripe_show_comment_list_gift_panel"
            boolean r0 = r1.equals(r0)
            if (r0 != 0) goto L_0x0025
            goto L_0x0012
        L_0x0025:
            r0 = 12
            goto L_0x00a5
        L_0x0028:
            java.lang.String r0 = "use_translated_caption"
            boolean r0 = r1.equals(r0)
            if (r0 != 0) goto L_0x00ab
            goto L_0x0012
        L_0x0031:
            java.lang.String r0 = "video_share_click"
            boolean r0 = r1.equals(r0)
            if (r0 != 0) goto L_0x003a
            goto L_0x0012
        L_0x003a:
            r0 = 10
            goto L_0x00a5
        L_0x003d:
            java.lang.String r0 = "title_view_click"
            boolean r0 = r1.equals(r0)
            if (r0 != 0) goto L_0x0046
            goto L_0x0012
        L_0x0046:
            r0 = 9
            goto L_0x00a5
        L_0x0049:
            java.lang.String r0 = "feed_internal_event"
            boolean r0 = r1.equals(r0)
            if (r0 != 0) goto L_0x00d9
            goto L_0x0012
        L_0x0052:
            java.lang.String r0 = "upvote_bubble_click"
            boolean r0 = r1.equals(r0)
            if (r0 != 0) goto L_0x0364
            goto L_0x0012
        L_0x005b:
            java.lang.String r0 = "video_comment_list"
            boolean r0 = r1.equals(r0)
            if (r0 != 0) goto L_0x0064
            goto L_0x0012
        L_0x0064:
            r0 = 6
            goto L_0x00a5
        L_0x0066:
            java.lang.String r0 = "update_diig_view"
            boolean r0 = r1.equals(r0)
            if (r0 != 0) goto L_0x00e5
            goto L_0x0012
        L_0x006f:
            java.lang.String r0 = "on_render_ready"
            boolean r0 = r1.equals(r0)
            if (r0 != 0) goto L_0x0078
            goto L_0x0012
        L_0x0078:
            r0 = 4
            goto L_0x00a5
        L_0x007a:
            java.lang.String r0 = "VIDEO_CANCEL_REPORT_SKIP_BEHAVIOR"
            boolean r0 = r1.equals(r0)
            if (r0 != 0) goto L_0x0388
            goto L_0x0012
        L_0x0083:
            java.lang.String r0 = "video_gift_stripe_show_comment_list"
            boolean r0 = r1.equals(r0)
            if (r0 != 0) goto L_0x008c
            goto L_0x0012
        L_0x008c:
            r0 = 2
            goto L_0x00a5
        L_0x008e:
            java.lang.String r0 = "to_vs_fragment"
            boolean r0 = r1.equals(r0)
            if (r0 != 0) goto L_0x0098
            goto L_0x0012
        L_0x0098:
            r0 = 1
            goto L_0x00a5
        L_0x009a:
            java.lang.String r0 = "video_digg"
            boolean r0 = r1.equals(r0)
            if (r0 != 0) goto L_0x00a4
            goto L_0x0012
        L_0x00a4:
            r0 = 0
        L_0x00a5:
            r1 = 0
            switch(r0) {
                case 0: goto L_0x0174;
                case 1: goto L_0x0399;
                case 2: goto L_0x038b;
                case 3: goto L_0x0388;
                case 4: goto L_0x0382;
                case 5: goto L_0x00e5;
                case 6: goto L_0x0374;
                case 7: goto L_0x0364;
                case 8: goto L_0x00d9;
                case 9: goto L_0x01be;
                case 10: goto L_0x018d;
                case 11: goto L_0x00ab;
                case 12: goto L_0x0374;
                case 13: goto L_0x0183;
                default: goto L_0x00a9;
            }
        L_0x00a9:
            goto L_0x0012
        L_0x00ab:
            java.lang.Object r2 = r8.LIZ()
            java.lang.Boolean r2 = (java.lang.Boolean) r2
            com.ss.android.ugc.aweme.setting.services.ITranslatedCaptionService r0 = com.ss.android.ugc.trill.setting.TranslatedCaptionCacheServiceImpl.LJJIJ()
            boolean r0 = r0.LJ()
            if (r0 == 0) goto L_0x0012
            X.4o1 r1 = X.4o1.LIZ
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r7.LJIIL
            boolean r0 = r1.LJIIIZ(r0)
            if (r0 == 0) goto L_0x0012
            X.7W7 r1 = X.7df.LJJJI()
            boolean r0 = r2.booleanValue()
            if (r0 == 0) goto L_0x00d6
            com.ss.android.ugc.aweme.feed.model.Audio$InfoIdType r0 = com.ss.android.ugc.aweme.feed.model.Audio.InfoIdType.TRANSLATED
        L_0x00d1:
            r1.LIZ(r0)
            goto L_0x0012
        L_0x00d6:
            com.ss.android.ugc.aweme.feed.model.Audio$InfoIdType r0 = com.ss.android.ugc.aweme.feed.model.Audio.InfoIdType.ORIGINAL
            goto L_0x00d1
        L_0x00d9:
            X.2YM<X.Etp> r1 = r7.LJJLIIIJLLLLLLLZ
            if (r1 == 0) goto L_0x0012
            java.lang.Object r0 = r8.LIZ()
            r1.LIZ(r0)
            return
        L_0x00e5:
            java.lang.Object r0 = r8.LIZ()
            java.lang.Boolean r0 = (java.lang.Boolean) r0
            boolean r0 = r0.booleanValue()
            if (r0 == 0) goto L_0x0012
            X.4RT r0 = r7.LJJLIL
            r0.LJJIIZI()
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r7.LJIIL
            boolean r0 = X.7XB.LIZ(r0)
            java.lang.String r5 = "passive_show"
            if (r0 == 0) goto L_0x011a
            X.2Fn r0 = X.LDj.LIZIZ()
            boolean r0 = r0.isShowCommerceAfterInteraction()
            if (r0 == 0) goto L_0x011a
            X.4RT r1 = r7.LJJLIL
            X.2Fn r0 = X.LDj.LIZIZ()
            int r0 = r0.getDelayTimeAfterInteraction()
            int r0 = r0 * 1000
            r1.LIZ(r0, r5)
            return
        L_0x011a:
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r7.LJIIL
            boolean r0 = X.LFp.LJJLI(r0)
            if (r0 == 0) goto L_0x015c
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r7.LJIIL
            boolean r0 = X.LFp.LJJIJL(r0)
            if (r0 == 0) goto L_0x03a2
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r7.LJIIL
            com.ss.android.ugc.aweme.feed.model.CardStruct r0 = X.LFp.LJ(r0)
            if (r0 == 0) goto L_0x03a2
            X.4RT r0 = r7.LJJLIL
            java.lang.Long r0 = r0.LJJJJ()
            long r3 = r0.longValue()
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r7.LJIIL
            com.ss.android.ugc.aweme.feed.model.CardStruct r0 = X.LFp.LJ(r0)
            int r0 = r0.getShowSeconds()
            int r0 = r0 * 1000
            long r1 = (long) r0
            int r0 = (r3 > r1 ? 1 : (r3 == r1 ? 0 : -1))
            if (r0 < 0) goto L_0x03a2
            X.4RT r2 = r7.LJJLIL
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r7.LJIIL
            int r0 = X.LFp.LJJLIIIIJ(r0)
            int r0 = r0 * 1000
            long r0 = (long) r0
            r2.LIZ(r0)
            return
        L_0x015c:
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r7.LJIIL
            boolean r0 = X.LFp.LJJIL(r0)
            if (r0 == 0) goto L_0x0012
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r7.LJIIL
            boolean r0 = X.LFp.LJJJ(r0)
            if (r0 != 0) goto L_0x0012
            X.4RT r2 = r7.LJJLIL
            r0 = 0
            r2.LIZ(r0)
            return
        L_0x0174:
            java.lang.Object r0 = r8.LIZ()
            java.lang.Integer r0 = (java.lang.Integer) r0
            int r0 = r0.intValue()
            r7.LIZ((int) r0, (X.LsC<X.C5233Etp, X.C5233Etp>) r1)
            goto L_0x0012
        L_0x0183:
            java.lang.Object r0 = r8.LIZ()
            java.lang.String r0 = (java.lang.String) r0
            r7.LJIIIIZZ((java.lang.String) r0)
            return
        L_0x018d:
            X.4lv r3 = X.4lv.LIZ
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r7.LJIIL
            boolean r0 = r3.LIZ(r0)
            if (r0 == 0) goto L_0x01a9
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r7.LJIIL
            boolean r0 = r0.isCollected()
            if (r0 != 0) goto L_0x01a9
            X.4lv r3 = X.4lv.LIZ
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r7.LJIIL
            boolean r0 = r3.LIZLLL(r0)
            if (r0 != 0) goto L_0x01ad
        L_0x01a9:
            r7.LIZ((int) r2, (X.LsC<X.C5233Etp, X.C5233Etp>) r1)
            return
        L_0x01ad:
            X.3BB r1 = new X.3BB
            android.content.Context r0 = r7.LJJLIIIJLJLI
            r1.<init>(r0)
            r0 = 2131835036(0x7f11389c, float:1.93032E38)
            r1.LIZIZ(r0)
            r1.LIZIZ()
            return
        L_0x01be:
            java.lang.Object r3 = r8.LIZ()
            java.lang.String r3 = (java.lang.String) r3
            java.lang.String r0 = "new_ad_fake_user"
            boolean r0 = android.text.TextUtils.equals(r3, r0)
            if (r0 != 0) goto L_0x01d4
            X.4RT r0 = r7.LJJLIL
            boolean r0 = r0.LJIIIIZZ()
            if (r0 != 0) goto L_0x01dc
        L_0x01d4:
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r7.LJIIL
            boolean r0 = X.2J6.LIZ(r0)
            if (r0 == 0) goto L_0x01dd
        L_0x01dc:
            return
        L_0x01dd:
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r7.LJIIL
            if (r0 == 0) goto L_0x0202
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r7.LJIIL
            boolean r0 = r0.isCanPlay()
            if (r0 == 0) goto L_0x01f1
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r7.LJIIL
            boolean r0 = r0.isDelete()
            if (r0 == 0) goto L_0x0202
        L_0x01f1:
            X.3BB r1 = new X.3BB
            android.content.Context r0 = r7.LJJLIIIJLJLI
            r1.<init>(r0)
            r0 = 2131834754(0x7f113782, float:1.9302627E38)
            r1.LIZIZ(r0)
            r1.LIZIZ()
            return
        L_0x0202:
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r7.LJIIL
            com.ss.android.ugc.aweme.profile.model.User r0 = r0.getAuthor()
            if (r0 != 0) goto L_0x0212
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r7.LJIIL
            boolean r0 = X.LEp.LIZ(r0, r2)
            if (r0 == 0) goto L_0x0360
        L_0x0212:
            r0 = 18
            r7.LIZ((int) r0, (X.LsC<X.C5233Etp, X.C5233Etp>) r1)
            X.4RT r0 = r7.LJJLIL
            r0.LJIIIZ()
            android.content.Context r1 = r7.LJJLIIIJLJLI
            X.2M8 r0 = com.ss.android.ugc.aweme.feed.param.FeedParamProvider.LIZIZ
            X.TnV r0 = r0.LIZ(r1)
            java.lang.String r2 = r0.getSearchResultId()
            boolean r0 = android.text.TextUtils.isEmpty(r2)
            if (r0 == 0) goto L_0x0234
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r7.LJIIL
            java.lang.String r2 = X.4wQ.LJ(r0)
        L_0x0234:
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r7.LJIIL
            com.ss.android.ugc.aweme.feed.model.BottomBarModel r0 = r0.getBottomBarModel()
            if (r0 == 0) goto L_0x0361
        L_0x023c:
            X.Spj r1 = X.Spj.LIZ
            java.lang.String r0 = r7.LJLIIIL()
            java.lang.String r4 = ""
            java.util.Map r5 = r1.LIZ(r0, r4)
            X.B5l r3 = new X.B5l
            r3.<init>()
            com.ss.android.ugc.aweme.feed.model.Aweme r1 = r7.LJIIL
            com.ss.android.ugc.aweme.feed.model.BaseFeedPageParams r0 = r7.LJLJJLL
            int r0 = r0.pageType
            r3.LIZJ(r1, r0)
            java.lang.String r0 = r7.LJLIIIL()
            r3.LJIILL(r0)
            android.content.Context r1 = r7.LJJLIIIJLJLI
            X.2M8 r0 = com.ss.android.ugc.aweme.feed.param.FeedParamProvider.LIZIZ
            X.TnV r0 = r0.LIZ(r1)
            java.lang.String r0 = r0.getPreviousPage()
            r3.LJJJLIIL = r0
            android.content.Context r1 = r7.LJJLIIIJLJLI
            X.2M8 r0 = com.ss.android.ugc.aweme.feed.param.FeedParamProvider.LIZIZ
            X.TnV r0 = r0.LIZ(r1)
            java.lang.String r0 = r0.getPreviousPagePosition()
            r3.LJJJLL = r0
            r3.LJJJLZIJ = r6
            java.lang.String r0 = "click_name"
            r3.LIZ(r0)
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r7.LJIIL
            boolean r0 = X.4lx.LIZIZ(r0)
            java.lang.Boolean r0 = java.lang.Boolean.valueOf(r0)
            r3.LIZ(r0)
            java.lang.String r0 = r7.LJLIIIL()
            r3.LJIILL(r0)
            android.content.Context r1 = r7.LJJLIIIJLJLI
            X.2M8 r0 = com.ss.android.ugc.aweme.feed.param.FeedParamProvider.LIZIZ
            X.TnV r0 = r0.LIZ(r1)
            java.lang.String r0 = r0.getSearchId()
            r3.LJIIJJI(r0)
            r3.LJFF(r2)
            android.content.Context r0 = r7.LJJLIIIJLJLI
            r3.LIZ(r0)
            android.content.Context r1 = r7.LJJLIIIJLJLI
            X.2M8 r0 = com.ss.android.ugc.aweme.feed.param.FeedParamProvider.LIZIZ
            X.TnV r0 = r0.LIZ(r1)
            java.lang.String r0 = r0.getCategoryName()
            r3.LJJLI = r0
            android.content.Context r1 = r7.LJJLIIIJLJLI
            X.2M8 r0 = com.ss.android.ugc.aweme.feed.param.FeedParamProvider.LIZIZ
            X.TnV r0 = r0.LIZ(r1)
            java.lang.String r2 = r0.getPreviousPage()
            android.content.Context r1 = r7.LJJLIIIJLJLI
            X.2M8 r0 = com.ss.android.ugc.aweme.feed.param.FeedParamProvider.LIZIZ
            X.TnV r0 = r0.LIZ(r1)
            java.lang.String r0 = r0.getFromGroupId()
            java.lang.String r0 = X.2JA.LIZ(r2, r0)
            r3.LJIILJJIL(r0)
            r3.LIZIZ(r5)
            com.ss.android.ugc.aweme.feed.model.Aweme r2 = r7.LJIIL
            java.lang.String r1 = r7.LJLIIIL()
            java.lang.String r0 = "enter_personal_detail"
            java.util.Map r0 = X.2Yt.LIZ(r2, r0, r1)
            r3.LIZ(r0)
            X.ClS r2 = X.ClS.LIZIZ
            java.lang.String r1 = r7.LJLIIIL()
            com.ss.android.ugc.aweme.feed.model.BaseFeedPageParams r0 = r7.LJLJJLL
            X.TnV r0 = r0.param
            java.lang.String r0 = r0.getFrom()
            java.lang.String r1 = r2.LIZ((java.lang.String) r1, (java.lang.String) r0)
            java.lang.String r0 = "enter_position"
            r3.LIZ(r0, r1)
            com.ss.android.ugc.aweme.feed.model.Aweme r1 = r7.LJIIL
            java.lang.String r0 = r7.LJLIIIL()
            X.A16.LIZ(r3, r1, r0)
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r7.LJIIL
            java.lang.String r0 = X.4wQ.LJ(r0)
            X.A1G.LIZ(r3, r0)
            r3.LJFF()
            X.B3o r2 = new X.B3o
            r2.<init>()
            com.ss.android.ugc.aweme.feed.model.Aweme r1 = r7.LJIIL
            if (r1 == 0) goto L_0x0331
            java.lang.String r0 = r1.getAid()
            r2.LIZIZ = r0
            java.lang.String r0 = r1.getRequestId()
            r2.LIZJ = r0
            java.lang.String r0 = r1.getAuthorUid()
            r2.LIZ = r0
        L_0x0331:
            java.lang.String r0 = r7.LJLIIIL()
            r2.LIZ(r0)
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r7.LJIIL
            java.lang.String r0 = r0.getAuthorUid()
            r2.LIZ = r0
            r2.LJFF()
            android.content.Context r0 = r7.LJJLIIIJLJLI
            if (r0 == 0) goto L_0x0358
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r7.LJIIL
            if (r0 == 0) goto L_0x0358
            X.4wS r3 = X.4wS.LIZ
            com.ss.android.ugc.aweme.feed.model.Aweme r2 = r7.LJIIL
            android.content.Context r1 = r7.LJJLIIIJLJLI
            java.lang.String r0 = r7.LJLIIIL()
            r3.LIZ(r2, r1, r0)
        L_0x0358:
            X.Eje r0 = X.C4602Eje.PROFILE
            X.7xA.LIZ(r0)
            r7.LJIIIIZZ((java.lang.String) r4)
        L_0x0360:
            return
        L_0x0361:
            r6 = 0
            goto L_0x023c
        L_0x0364:
            java.lang.Object r0 = r8.LIZ()
            java.lang.Integer r0 = (java.lang.Integer) r0
            int r1 = r0.intValue()
            X.LsC r0 = X.AP6.LIZ
            r7.LIZ((int) r1, (X.LsC<X.C5233Etp, X.C5233Etp>) r0)
            return
        L_0x0374:
            java.lang.Object r0 = r8.LIZ()
            java.lang.Integer r0 = (java.lang.Integer) r0
            int r0 = r0.intValue()
            r7.LIZ((int) r0, (X.LsC<X.C5233Etp, X.C5233Etp>) r1)
            return
        L_0x0382:
            r0 = 53
            r7.LIZ((int) r0, (X.LsC<X.C5233Etp, X.C5233Etp>) r1)
            return
        L_0x0388:
            r7.LLIIJLIL = r3
            return
        L_0x038b:
            java.lang.Object r0 = r8.LIZ()
            java.lang.Integer r0 = (java.lang.Integer) r0
            int r0 = r0.intValue()
            r7.LIZ((int) r0, (X.LsC<X.C5233Etp, X.C5233Etp>) r1)
            return
        L_0x0399:
            r7.LJJLIIIJLJLI()
            r0 = 40
            r7.LIZ((int) r0, (X.LsC<X.C5233Etp, X.C5233Etp>) r1)
            return
        L_0x03a2:
            X.4RT r1 = r7.LJJLIL
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r7.LJIIL
            int r0 = X.LFp.LJJLIIIIJ(r0)
            int r0 = r0 * 1000
            r1.LIZ(r0, r5)
            return
        */
        throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.feed.adapter.VideoViewCell.onChanged(X.33g):void");
    }

    public final void LIZ(Map<String, AwemeStatisticsBackup> map) {
        if (this.LJIIL == null || map == null || map.size() == 0) {
            2kf.LIZ(new IllegalArgumentException("list is empty,should never happen!"));
            return;
        }
        for (int i = 0; i < map.size(); i++) {
            String aid = this.LJIIL.getAid();
            if (!(map.get(aid) == null || this.LJL == null)) {
                2kf.LIZIZ(4, "FeedBackupHelper", "aid:" + aid + ".start to update statistics!");
                this.LJL.LIZ("awesome_update_backup_data", (Object) this.LJIIJJI);
                VideoViewModel videoViewModel = this.LLFII;
                if (videoViewModel != null) {
                    videoViewModel.setState(new A3a(this.LJIIJJI));
                }
            }
        }
    }

    public final void LIZ(View view) {
        MethodCollector.i(14851);
        FrameLayout frameLayout = this.LJJJJL;
        if (frameLayout != null) {
            frameLayout.addView(view);
        }
        MethodCollector.o(14851);
    }

    public final void LIZ(C0282Cqw cqw) {
        this.LLILIL.add(cqw);
    }

    public final void LIZ(HashMap<String, String> hashMap) {
        InteractStickerViewModel interactStickerViewModel;
        CmZ cmZ = this.LJJLJLI;
        if (cmZ != null) {
            M12.LIZ(hashMap);
            if (cmZ.LJIILJJIL == null) {
                return;
            }
            if (cmZ.LIZIZ != null) {
                DataCenter dataCenter = cmZ.LIZIZ;
                if (dataCenter != null) {
                    dataCenter.LIZ("interact_text_translate_data", (Object) hashMap);
                }
            } else if (cmZ.LJIIIZ != null && (interactStickerViewModel = cmZ.LJIIIZ) != null) {
                interactStickerViewModel.LIZ("interact_text_translate_data", hashMap);
            }
        }
    }

    public void LIZ(long j) {
        this.LJL.LIZ("hide_commerce_second_info", (Object) null);
        LJIILJJIL(false);
        C0041Chp.LIZ(this.LJJIIZ);
        long j2 = j;
        LIZIZ(j2);
        long j3 = this.LJLLJ;
        this.LJLLJ = 0;
        if (j3 > 0 && j3 < 2000 && this.LLIIJLIL && !TextUtils.isEmpty(LJLIIIL()) && this.LJIIL != null && !TextUtils.isEmpty(this.LJIIL.getAid())) {
            2Ny.LIZ(new 2Hn(this.LJIIL.getAid(), 2, j2, LJLIIIL()));
        }
    }

    public final void LIZ(int i, long j, long j2, int i2, long j3, long j4, long j5, int i3) {
        2UX r1 = new 2UX();
        r1.LIZ("enter_from", LJLIIIL());
        r1.LIZ("group_id", 4wQ.LJ(this.LJIIL));
        r1.LIZ("author_id", 4wQ.LIZ(this.LJIIL));
        r1.LIZ("is_success", i);
        r1.LIZ("enable_experiment", 9Y3.LIZ(9Y3.LIZ(), true, "player_enable_opt_subload_time", 1));
        r1.LIZ("duration", j);
        r1.LIZ("load_duration", j2);
        r1.LIZ("is_display_ontime", i2);
        r1.LIZ("fst_display_position", j3);
        r1.LIZ("fst_line_position", j4);
        r1.LIZ("position_lag", j5);
        r1.LIZ("cla_pre_cache_size", i3);
        2nK.LIZ("cla_caption_switch_language_success", r1.LIZ);
    }

    public void LJI() {
        this.LJJLIL.LJJIII();
    }

    public final void LJIILLIIL() {
        LJJIII();
        LJJIIJ();
    }

    public final boolean LJIJJLI() {
        return this.LJIJ.LJIJJLI();
    }

    public final Surface LJIL() {
        return this.LJIJ.LJIL();
    }

    public final View LJJ() {
        return this.LJIJ.LJJ();
    }

    public final boolean LJJJJLL() {
        return 4o1.LIZ.LIZ();
    }

    public final void LJJJJZI() {
        LJJIIJZLJL();
        this.LJJZZI = true;
    }

    public final void LJJJLZIJ() {
        LJII(3);
    }

    public final boolean LJLIL() {
        return this.LJIILJJIL.getUserVisibleHint();
    }

    public float LJLJL() {
        return this.LJJLIIIJJI.getY();
    }

    public final void LJLJLJ() {
        LJIILL(true);
    }

    public final void LJLJLLL() {
        LJIILL(false);
    }

    public final /* synthetic */ void LJLL() {
        this.LJJJJL.setVisibility(4);
    }

    public final /* synthetic */ void LJLLI() {
        this.LJJJ.setVisibility(4);
    }

    public final /* synthetic */ void LJLLL() {
        LJII(2);
    }

    private Qus LJJIIZI() {
        if (this.LLFF == null) {
            this.LLFF = new Qus();
        }
        return this.LLFF;
    }

    private C0054Cic LJJIJIL() {
        if (this.LLFFF == null) {
            this.LLFFF = new C0054Cic();
        }
        return this.LLFFF;
    }

    private boolean LJLZ() {
        if (this.LJIIL == null || !this.LJIIL.isAd()) {
            return false;
        }
        return true;
    }

    private boolean LJZL() {
        if (!7SJ.LIZ || !this.LJLZ) {
            return false;
        }
        return true;
    }

    public final ViewGroup LJJI() {
        C0034Chi chi = this.LJIJ;
        if (chi != null) {
            return chi.LJJI();
        }
        return null;
    }

    public void LJJIFFI() {
        LJJZZIII();
        this.LJJLIL.LJJIIJZLJL();
    }

    public final void LJJII() {
        if (!LJZL()) {
            LJJZZIII();
        }
    }

    public final void LJJIIJZLJL() {
        SmartImageView smartImageView = this.LJIJI;
        if (smartImageView != null) {
            smartImageView.setVisibility(8);
        }
        LJIIIZ(true);
    }

    public final 2EE LJJJJJL() {
        C0034Chi chi = this.LJIJ;
        if (chi != null) {
            return chi.LIZLLL();
        }
        return null;
    }

    public final boolean LJJJLL() {
        View view = this.LJJI;
        if (view != null && view.getVisibility() == 0) {
            return true;
        }
        return false;
    }

    public final boolean LJJL() {
        return LJJIIZI().LJ();
    }

    public final void LJJLIIIJL() {
        DataCenter dataCenter = this.LJL;
        if (dataCenter != null) {
            dataCenter.LIZ("show_festival_activity_icon", (Object) null);
        }
    }

    public void LJJLIIIJLJLI() {
        AbsInteractStickerWidget absInteractStickerWidget;
        CmZ cmZ = this.LJJLJLI;
        if (cmZ != null && (absInteractStickerWidget = cmZ.LJIILJJIL) != null) {
            absInteractStickerWidget.LJFF();
        }
    }

    public final void LJJLJLI() {
        if (this.LJL != null) {
            LJIIIZ(this.LJIILIIL);
        }
    }

    public final boolean LJJLL() {
        return 7df.LJJJI().LJIILJJIL();
    }

    public final String LJLIIIL() {
        if (this.LJLJJLL.eventType == null) {
            return "";
        }
        return this.LJLJJLL.eventType;
    }

    public final long LJLJJL() {
        return 7df.LJJJI().LJIILIIL();
    }

    public final /* synthetic */ Long LJLLILLLL() {
        return Long.valueOf(System.currentTimeMillis() - this.LJJLIIIJL);
    }

    public final void aG_() {
        DataCenter dataCenter = this.LJL;
        if (dataCenter != null) {
            dataCenter.LIZ("on_viewpager_page_selected", (Object) null);
        }
    }

    private void LJJIJIIJIL() {
        if (this.LJIILJJIL != null && this.LJIILJJIL.getActivity() != null) {
            WidgetManager LIZ = WidgetManager.LIZ(this.LJIILJJIL, (View) this.LJJJJ);
            this.LJLI = LIZ;
            LIZ.LIZ(this.LJL);
            LJIILL();
        }
    }

    private void LJJIJL() {
        if (!AQ6.LIZJ(this.LJIIL) || this.LJIIL == null) {
            View view = this.LJJIIJZLJL;
            if (view != null) {
                view.setVisibility(8);
                return;
            }
            return;
        }
        LLFFF();
        this.LJJIIJZLJL.setVisibility(0);
    }

    private void LJZ() {
        DataCenter dataCenter = this.LJL;
        if (dataCenter != null) {
            dataCenter.LIZ("stopPlayAnimation", (Object) true);
        }
        VideoPlayViewModel videoPlayViewModel = this.LLFZ;
        if (videoPlayViewModel != null) {
            videoPlayViewModel.LIZJ();
        }
        this.LJLZ = false;
    }

    private void LLFF() {
        this.LJJLIIIJJIZ = (LinearLayout) 0QK.LIZ(this.LJLIL, this.LJJLIIIJJIZ, 2131369105, 2131373050);
    }

    private void LLFFF() {
        this.LJJIIJZLJL = 0QK.LIZ(this.LJLIL, this.LJJIIJZLJL, 2131368495, 2131373047);
    }

    private void LLFII() {
        this.LJJIII = 0QK.LIZ(this.LJLIL, this.LJJIII, 2131372271, 2131373055);
    }

    public void LJII() {
        LJJLIIIJLJLI();
        this.LJL.LIZ("video_on_pause", (Object) null);
        this.LJJLIL.LJJIIJ();
    }

    public final void LJIIIIZZ() {
        this.LJL.LIZ("video_show_share_guide_animation", (Object) null);
        VideoShareViewModel LIZ = 4bv.LIZ(this);
        if (LIZ != null) {
            LIZ.LJFF();
        }
    }

    public final void LJIJI() {
        if (this.LJIJ.LIZIZ()) {
            this.LJIJ.LJJ().setVisibility(8);
        }
    }

    public final void LJJIII() {
        if (this.LJIJ.LIZIZ()) {
            View LJJ2 = this.LJIJ.LJJ();
            if (LJJ2.getVisibility() != 0) {
                Cbz.LIZ(LJJ2, 0);
            }
        }
    }

    public final void LJJIIZ() {
        BusinessComponentServiceUtils.getBusinessBridgeService().LIZIZ();
        this.LJIJ.LJJ();
        LIZIZ();
        LJLIIIL();
    }

    public final void LJJIL() {
        this.LJL.LIZ("video_hide_share_stay_home_animation", (Object) null);
        VideoShareViewModel LIZ = 4bv.LIZ(this);
        if (LIZ != null) {
            LIZ.setState(4at.LIZ);
        }
    }

    public final void LJJJZ() {
        if (!QlK.LIZJ(this.LJIIL)) {
            LJJIIZI().LIZ(this.LJJIJ, this.LJJLIIIJLJLI, this.LJIIL, this.LJIIZILJ, this.LJJJ, this.LLIIII, this.LJJLIIIIJ, true);
        }
    }

    public final void LJJLIIIJJI() {
        if (this.LJIIL != null) {
            LLFII();
            this.LJJIII.LIZ(this.LJIIL.getAid());
        }
    }

    public void LJJLIIIJJIZ() {
        LJJLIIIJLJLI();
        Otb otb = this.LJ;
        if (otb != null) {
            otb.dismiss();
            this.LJ = null;
        }
        4jy.LIZIZ = false;
    }

    public final void LJLI() {
        C0279Cqt cqt = this.LJLIIL;
        ConstraintLayout constraintLayout = cqt.LJIIIIZZ.LIZ;
        if (constraintLayout != null) {
            constraintLayout.setVisibility(8);
        }
        C0004Cge cge = cqt.LJII;
        if (cge != null) {
            cge.LIZ();
        }
        cqt.LIZJ.LIZLLL();
        cqt.LIZLLL.LIZLLL();
    }

    public final int LJLJJLL() {
        return (int) Math.min((double) this.LLIIII.getHeight(), ((double) HeD.LIZIZ(this.LJJLIIIJLJLI)) * 0.6d);
    }

    public final /* synthetic */ void LJLLJ() {
        3hl r4 = new 3hl(true, this.LJLJJLL.awemeFromPage, 4, this.LJJLIIIJLJLI.hashCode());
        r4.LJII = new C0015Cgp(this);
        CqM.LIZ(r4);
    }

    public final void aH_() {
        if (this.LJL != null) {
            LJIIIZ(this.LJIILIIL);
            C0279Cqt cqt = this.LJLIIL;
            Aweme aweme = cqt.LJIIL.LJIIL;
            if (aweme != null) {
                cqt.LJIIIZ.LIZ(aweme);
                cqt.LIZJ().LIZIZ();
            }
        }
    }

    /* JADX WARNING: type inference failed for: r3v0, types: [X.F97, com.ss.android.ugc.aweme.feed.adapter.VideoViewCell] */
    public final AbsInteractStickerWidget aI_() {
        AbsInteractStickerWidget LIZ = StickerServiceImpl.LIZIZ().LIZ();
        LIZ.LIZ((F97) this);
        WidgetManager widgetManager = this.LJLJJL;
        if (widgetManager != null) {
            widgetManager.LIZ(2131366095, (Widget) LIZ);
        }
        return LIZ;
    }

    public final void aJ_() {
        if (this.LJLJLLL) {
            this.LJLJLLL = false;
            if (this.LJIJ.LIZIZ() && this.LJLJL) {
                7df.LJJJI().LJJIIJZLJL();
            }
        }
    }

    public final void aL_() {
        MethodCollector.i(17319);
        FrameLayout frameLayout = this.LJJJJL;
        if (frameLayout != null) {
            frameLayout.removeAllViews();
        }
        this.LJJJ.setVisibility(0);
        MethodCollector.o(17319);
    }

    /* renamed from: cr_ */
    public CzM aM_() {
        CzM czM = this.LJLIIIL;
        if (czM != null) {
            return czM;
        }
        CzM LIZ = LIZ(this.LJLJJLL, (Ls2<Long>) new C0020Cgu(this), LJIIJJI(), this.LLILIL);
        this.LJLIIIL = LIZ;
        return LIZ;
    }

    private void LJLLLLLL() {
        JSONObject LIZ = LIZ(this.LJIIL, this.LJLJJLL, this.LJJZZIII);
        this.LJJLIIJ = LIZ;
        this.LJJLIL.LIZ(LIZ);
        if (this.LLIILII) {
            ChB.LIZ.LIZ(new 8Ys(true, new CgE(this)));
        } else {
            this.LJIIJJI.setRequestId(this.LJJLIIJ);
        }
    }

    private void LJZI() {
        if (!Cl7.LJ(LIZIZ()) || Cl7.LIZJ(LIZIZ())) {
            if (4jT.LJ && 2Km.LIZLLL.LIZ().LIZ(LJLIIIL())) {
                LIZJ(false, false);
            }
            if (4jT.LIZIZ) {
                LIZ(false, false);
            }
        }
    }

    private boolean LLD() {
        if (2oQ.LIZ().LIZ) {
            return true;
        }
        if (TextUtils.equals(LJLIIIL(), "homepage_friends") && 2oQ.LIZ().LIZJ) {
            return true;
        }
        if (!C0000Cga.LIZ(LJLIIIL()) || !2oQ.LIZ().LIZIZ) {
            return false;
        }
        return true;
    }

    private void LLF() {
        int i;
        if (!2HV.LIZ.LJIILLIIL || (LFp.LJJIII(this.LJIIL) && !LFp.LJJJZ(this.LJIIL) && !FLK.LIZ)) {
            i = 0;
        } else {
            i = -2HV.LIZ.LIZ();
        }
        if (3Fl.LIZLLL) {
            i += 3Fl.LJ;
        }
        FrameLayout.LayoutParams layoutParams = (FrameLayout.LayoutParams) this.LJIIZILJ.getLayoutParams();
        layoutParams.bottomMargin = i;
        this.LJIIZILJ.setLayoutParams(layoutParams);
    }

    public final int LIZ() {
        if (this.LJIIL != null) {
            return this.LJIIL.getAwemeType();
        }
        return 0;
    }

    public final void LJIIIZ() {
        this.LJL.LIZ("video_show_share_stay_home_animation", (Object) null);
        VideoShareViewModel LIZ = 4bv.LIZ(this);
        if (LIZ != null) {
            LIZ.setState(4au.LIZ);
        }
    }

    public void LJIILJJIL() {
        AbsInteractStickerWidget absInteractStickerWidget;
        if (C0022Cgw.LIZ(this.LJIIL)) {
            LDj.LJ().LIZIZ(this.LJIIL);
        }
        this.LJJLIL.LJJJJLL();
        CmZ cmZ = this.LJJLJLI;
        if (!(cmZ == null || (absInteractStickerWidget = cmZ.LJIILJJIL) == null)) {
            absInteractStickerWidget.LJI();
        }
        Handler handler = this.LJLILLLLZI;
        if (handler != null) {
            handler.removeCallbacksAndMessages((Object) null);
        }
        this.LLIIL = -1.0d;
        this.LJLJLJ.dispose();
        this.LJIJ.LJIIIIZZ();
        LJZI();
    }

    public final void LJJJI() {
        if (7ku.LJJIII.LJJI() && this.LJIIL != null) {
            if (this.LJIIL.isAd() || LFp.LJJIL(this.LJIIL)) {
                0QK.LIZ(this.LJLIL, (View) null, 2131362882, 2131373030);
            }
        }
    }

    public final void LJJLI() {
        if (QlK.LIZJ(this.LJIIL)) {
            Qus LJJIIZI2 = LJJIIZI();
            View view = LJJIIZI2.LJI;
            if (view != null) {
                view.setVisibility(8);
            }
            View view2 = LJJIIZI2.LJII;
            if (view2 != null) {
                view2.setVisibility(8);
            }
            View view3 = LJJIIZI2.LJIIIIZZ;
            if (view3 != null) {
                view3.setVisibility(8);
            }
        }
    }

    public final void aK_() {
        if (!CzM.LJJ.LIZ(this.LJLJJLL, LIZIZ()) && this.LJJJJL != null) {
            this.LJLILLLLZI.postDelayed(new C0013Cgn(this), 500);
            this.LJJJJL.setVisibility(0);
            AlphaAnimation alphaAnimation = new AlphaAnimation(1.0f, 0.0f);
            alphaAnimation.setDuration(200);
            alphaAnimation.setFillAfter(true);
            this.LJJJ.startAnimation(alphaAnimation);
        }
    }

    private void LL() {
        int LIZIZ;
        Rect rect = new Rect();
        this.LJJ.getGlobalVisibleRect(rect);
        if (CzM.LJJ.LIZ(this.LJLJJLL, LIZIZ())) {
            Rect rect2 = new Rect();
            this.LJJJJJL.getGlobalVisibleRect(rect2);
            LIZIZ = rect.bottom - rect2.top;
        } else {
            Rect rect3 = new Rect();
            this.LJJLI.getGlobalVisibleRect(rect3);
            LIZIZ = (rect.bottom - rect3.bottom) + ((int) HeD.LIZIZ(this.LJJLIIIJLJLI, 72.0f));
        }
        if (LIZIZ != this.LJJ.getLayoutParams().height) {
            this.LJJ.getLayoutParams().height = LIZIZ;
        }
    }

    public void LIZJ() {
        super.LIZJ();
        DataCenter dataCenter = this.LJL;
        if (dataCenter != null) {
            dataCenter.LIZ("stopPlayAnimation", (Object) true);
        }
        LJFF(false);
        this.LJJLJLI.LIZ(this.LJIIL);
        CmZ cmZ = this.LJJLJLI;
        if (cmZ.LJIILJJIL != null) {
            if (cmZ.LIZIZ != null) {
                DataCenter dataCenter2 = cmZ.LIZIZ;
                if (dataCenter2 != null) {
                    dataCenter2.LIZ("interact_sticker_clear_data", (Object) null);
                }
                DataCenter dataCenter3 = cmZ.LIZIZ;
                if (dataCenter3 != null) {
                    dataCenter3.LIZ("interact_sticker_aweme_data", (Object) null);
                }
                DataCenter dataCenter4 = cmZ.LIZIZ;
                if (dataCenter4 != null) {
                    dataCenter4.LIZ("interact_sticker_video_data", (Object) null);
                }
            } else {
                InteractStickerViewModel interactStickerViewModel = cmZ.LJIIIZ;
                if (interactStickerViewModel != null) {
                    interactStickerViewModel.LIZ("interact_sticker_clear_data", (Object) null);
                }
                InteractStickerViewModel interactStickerViewModel2 = cmZ.LJIIIZ;
                if (interactStickerViewModel2 != null) {
                    interactStickerViewModel2.LIZ("interact_sticker_aweme_data", (Object) null);
                }
                InteractStickerViewModel interactStickerViewModel3 = cmZ.LJIIIZ;
                if (interactStickerViewModel3 != null) {
                    interactStickerViewModel3.LIZ("interact_sticker_video_data", (Object) null);
                }
            }
        }
        UserService.LIZLLL().LIZIZ().removeObserver(this.LLILII);
        LJIILIIL(false);
        CgQ cgQ = this.LLII;
        if (cgQ != null) {
            cgQ.LIZJ();
        }
    }

    public final void LIZLLL() {
        if (this.LJIIZILJ != null) {
            LLF();
            this.LJJLJ.LIZ(this.LJJLIIIJLJLI, this.LJIIL.getVideo(), this.LJIJ.LJJ(), this.LJIJI, this.LJIIL.getOcrLocation());
            if (this.LJIIL.getVideo() != null) {
                this.LJJLJ.LIZ(this.LJJLIIIJLJLI, this.LJIIL.getVideo(), this.LJJLIIIIJ, this.LJIIL.getOcrLocation());
            }
            this.LJJLIL.LJIILIIL();
        }
    }

    public final void LJ() {
        8aD.LJI = false;
        DoFrameController.LIZ = 0;
        if (!LJZL() && 7df.LJJJI().LJIILJJIL()) {
            LJJZZIII();
        }
        if (8xZ.LIZ) {
            8xY.LIZ = false;
        }
        if (2Lv.LIZJ && (CuS.LIZ.LIZ() instanceof 8Y7)) {
            CuS.LIZ.LIZ().LIZ = true;
            8YD.LIZ.postDelayed(new Cg6(this), (long) 7nD.LIZ);
        }
        2Iq.LIZ.LIZIZ();
    }

    public final void LJFF() {
        8aD.LJI = true;
        8aD.LJII = false;
        8YD.LIZ.postDelayed(new C0001Cgb(this), 600);
        8aD.LIZLLL(1000);
        8aD.LIZJ(1500);
        8aD.LIZ(1000);
        if (7nR.LIZ) {
            8aD.LIZIZ(2000);
        }
        if (8xZ.LIZ) {
            8xY.LIZ = true;
            8aD.LJ++;
            8YD.LIZ.postDelayed(new 8xW(), 800);
        }
        if (7df.LJJJI().LJIILJJIL()) {
            LJZ();
        }
        2Iq.LIZ.LIZ();
    }

    public void LJIILL() {
        4RT r1;
        LJJLJ();
        this.LLIILII = true;
        if (!7ku.LJJIII.LJJIFFI() && (r1 = this.LJJLIL) != null) {
            r1.LIZIZ(this.LJL);
        }
        this.LJJLIL.LIZ(this.LJLI);
        this.LJLJJL = WidgetManager.LIZ(this.LJIILJJIL, (View) this.LJJJJ);
    }

    public final void LJJIIJ() {
        if (this.LJIJ.LIZIZ()) {
            View LJJ2 = this.LJIJ.LJJ();
            LnL lnL = (LnL) CsR.LIZ.get(this.LJJLIIIJLJLI);
            if (lnL != null) {
                Iterator it = lnL.iterator();
                while (it.hasNext()) {
                    View view = (View) it.next();
                    if (view != LJJ2) {
                        Cbz.LIZ(view, 8);
                    }
                }
            }
            LnL lnL2 = (LnL) CsR.LIZIZ.get(this.LJJLIIIJLJLI);
            if (lnL2 != null) {
                Iterator it2 = lnL2.iterator();
                while (it2.hasNext()) {
                    VideoViewCell videoViewCell = (2oE) it2.next();
                    if (videoViewCell != this) {
                        VideoViewCell videoViewCell2 = videoViewCell;
                        if ((videoViewCell2.LJIILIIL == this.LJIILIIL - 1 || videoViewCell2.LJIILIIL == this.LJIILIIL + 1) && videoViewCell2.LJIIL != null) {
                            videoViewCell2.LIZ(videoViewCell2.LJIIL.getVideo());
                        }
                    }
                }
            }
        }
    }

    public void LJJZ() {
        BaseFeedPageParams baseFeedPageParams = this.LJLJJLL;
        if (baseFeedPageParams == null || !baseFeedPageParams.isPlayListCleanMode().booleanValue()) {
            this.LJJLJLI.LIZ(this.LJIIL);
            CmZ cmZ = this.LJJLJLI;
            Aweme aweme = cmZ.LIZ;
            if (aweme != null && aweme.getInteractStickerStructs() != null) {
                Aweme aweme2 = cmZ.LIZ;
                if (aweme2 == null) {
                    n.LIZIZ();
                }
                ArrayList arrayList = new ArrayList(aweme2.getInteractStickerStructs());
                Aweme aweme3 = cmZ.LIZ;
                if (aweme3 != null && aweme3.isProhibited()) {
                    arrayList = new ArrayList();
                }
                if (!878.LIZ(arrayList)) {
                    if (cmZ.LJIILJJIL == null) {
                        cmZ.LIZJ();
                    }
                    cmZ.LIZ((ArrayList<InteractStickerStruct>) arrayList);
                } else if (cmZ.LJIILJJIL != null) {
                    cmZ.LIZ((ArrayList<InteractStickerStruct>) new ArrayList());
                }
            } else if (cmZ.LJIILJJIL != null) {
                cmZ.LIZ((ArrayList<InteractStickerStruct>) new ArrayList());
            }
        }
    }

    public void LJJZZI() {
        InteractStickerViewModel interactStickerViewModel;
        BaseFeedPageParams baseFeedPageParams = this.LJLJJLL;
        if (baseFeedPageParams != null && baseFeedPageParams.isPlayListCleanMode().booleanValue()) {
            return;
        }
        if (!7SJ.LIZ || !this.LJLLLLLL) {
            this.LJLLLLLL = true;
            7W7 LJJJI2 = 7df.LJJJI();
            this.LJJLJLI.LIZ(this.LJIIL);
            this.LJJLJLI.LJFF = LJJJI2;
            this.LJJLJLI.LJI = null;
            CmZ cmZ = this.LJJLJLI;
            Aweme aweme = cmZ.LIZ;
            if (aweme == null || !aweme.isProhibited()) {
                0Gp.LIZ(new CiO(cmZ)).LIZ(new CiN(cmZ), 0Gp.LIZIZ, (0Gf) null);
            } else if (cmZ.LIZIZ != null) {
                DataCenter dataCenter = cmZ.LIZIZ;
                if (dataCenter != null) {
                    dataCenter.LIZ("interact_sticker_video_data", (Object) new ArrayList());
                }
            } else if (cmZ.LJIIIZ != null && (interactStickerViewModel = cmZ.LJIIIZ) != null) {
                interactStickerViewModel.LIZ("interact_sticker_video_data", new ArrayList());
            }
        }
    }

    /* JADX WARNING: type inference failed for: r1v4, types: [com.bytedance.assem.arch.viewModel.AssemViewModel, com.ss.android.ugc.aweme.feed.adapter.VideoPlayViewModel] */
    public void LJJZZIII() {
        this.LJLZ = true;
        if (this.LJL != null && !B4h.LIZ().LIZIZ()) {
            this.LJL.LIZ("startPlayAnimation", (Object) true);
            ? r1 = this.LLFZ;
            if (r1 != 0) {
                r1.setState(new 4mT());
            }
        }
        if (LFp.LJJIII(this.LJIIL) && !LFp.LJJJZ(this.LJIIL)) {
            this.LJJLIL.LIZ(this.LJJJJ);
        } else if (C0000Cga.LIZ(this.LLIIJI) && !this.LJFF) {
            LIZ((View) this.LJIIZILJ, LLD());
        }
        if (CgM.LIZIZ() > 0) {
            LL();
        }
    }

    public final void LJLJI() {
        View findViewById;
        Aweme LIZIZ = LIZIZ();
        if (4jy.LIZ(LIZIZ) && this.LJIILJJIL.getActivity() != null && (findViewById = this.LJJJJ.findViewById(2131370182)) != null) {
            2yB r2 = new 2yB(this.LJJLIIIJLJLI);
            r2.LIZ(3000);
            r2.LIZ(070.LIZJ(this.LJJLIIIJLJLI, 2131099737));
            r2.LIZ(LIZIZ.getBubbleInfo().getText());
            r2.LIZ(Ota.END);
            r2.LIZIZ(findViewById);
            r2.LIZ(false);
            r2.LIZ(new 4jz(this, LIZIZ));
            r2.LIZ(false, (View.OnClickListener) null);
            Otb LIZJ = r2.LIZJ();
            this.LJ = LIZJ;
            LIZJ.LIZ();
        }
    }

    /* access modifiers changed from: private */
    /* renamed from: LJJIJLIJ */
    public void LJLLLL() {
        AwemeTextLabelModel label;
        D0M.LIZJ(this.LJIIL);
        List videoLabels = this.LJIIL.getVideoLabels();
        if (this.LJIIL.isAd() && !this.LJIIL.getAwemeRawAd().isRightStyle() && (label = this.LJIIL.getAwemeRawAd().getLabel()) != null) {
            ArrayList arrayList = new ArrayList();
            arrayList.add(label);
            this.LJIIL.setTextVideoLabels(arrayList);
        }
        if (LJLZ() && LFp.LJJL(this.LJIIL)) {
            this.LJJIIZ.setVisibility(8);
        } else if ((!86a.LIZ(LJLIIIL(), "homepage_hot") || LJLZ()) && !TextUtils.equals(LJLIIIL(), "homepage_familiar") && !LFp.LJJJJLI(this.LJIIL) && !TextUtils.equals(LJLIIIL(), "challenge")) {
            a.LJIIIIZZ().LIZ(this.LJJIIZ, this.LJIIL, this.LJIILJJIL, LJLIIIL());
            this.LJJIIZ.LIZIZ(this.LJIIL, videoLabels, CbP.LJFF);
        } else {
            if (this.LJIIL.getRelationLabel() != null && this.LJIIL.getRelationLabel().getType() == 0 && TextUtils.equals(LJLIIIL(), "homepage_familiar")) {
                this.LJIIL.setRelationLabel((RelationDynamicLabel) null);
            }
            this.LJJIIZ.LIZJ(this.LJIIL, videoLabels, CbP.LJFF);
            if (86a.LIZ(LJLIIIL(), "homepage_hot") && !LJLZ()) {
                a.LJIIIIZZ().LIZ(this.LJJIIZ, this.LJIIL, this.LJIILJJIL, LJLIIIL());
            }
        }
        this.LLIIIILZ.LIZ(this.LJIIL, this.LJJIIZ);
        C0041Chp.LIZ(this.LJJIIZ);
    }

    public void LJJLJ() {
        ViewGroup viewGroup;
        DataCenter dataCenter = this.LJL;
        dataCenter.LIZ("feed_internal_event", (0CM<33g>) this);
        dataCenter.LIZ("to_profile", (0CM<33g>) this);
        dataCenter.LIZ("update_diig_view", (0CM<33g>) this);
        dataCenter.LIZ("video_comment_list", (0CM<33g>) this);
        dataCenter.LIZ("video_gift_stripe_show_comment_list_gift_panel", (0CM<33g>) this);
        dataCenter.LIZ("video_gift_stripe_show_comment_list", (0CM<33g>) this);
        dataCenter.LIZ("video_share_click", (0CM<33g>) this);
        dataCenter.LIZ("on_render_ready", (0CM<33g>) this);
        dataCenter.LIZ("video_digg", (0CM<33g>) this);
        dataCenter.LIZ("VIDEO_CANCEL_REPORT_SKIP_BEHAVIOR", (0CM<33g>) this);
        dataCenter.LIZ("title_view_click", (0CM<33g>) this);
        dataCenter.LIZ("use_translated_caption", (0CM<33g>) this);
        dataCenter.LIZ("upvote_bubble_click", (0CM<33g>) this);
        if (LJIIJJI() == 2 && C0051Chz.LIZIZ.LIZ() != 0) {
            7d2.LIZIZ--;
        }
        if (!this.LJIILLIIL.LJ.param.isFromDuetModeOrDuetModeDetail()) {
            if (!Ijl.LIZ() && (viewGroup = this.LJJJJZI) != null) {
                viewGroup.getLayoutParams().width = this.LJJJJZI.getContext().getResources().getDimensionPixelSize(2131165458);
            }
            if (FeedParamProvider.LIZIZ.LIZ(this.LJJLIIIJLJLI).isHideMusicText()) {
                8YD.LIZJ.LIZ().post(new Ch4(this));
            }
            if (9Y3.LIZ(9Y3.LIZ(), true, "marquee_title_opt", false) || B4h.LIZ().LIZ == 2) {
                8YD.LIZJ.LIZ().post(new CgC(this));
            }
        }
        if (this.LJIIIIZZ || this.LJIILLIIL.LJ.param.isFromDuetModeOrDuetModeDetail()) {
            this.LJJIL.setVisibility(8);
            this.LJJJJ.findViewById(2131372864).setGroupClickable(false);
            this.LJJJJ.findViewById(2131366799).setGroupClickable(false);
            this.LJJJJ.findViewById(2131372867).setGroupClickable(false);
            this.LJJJJ.findViewById(2131366095).setGroupClickable(false);
        }
    }

    public void cq_() {
        boolean z;
        boolean z2;
        boolean z3;
        boolean z4;
        boolean z5;
        boolean z6;
        boolean z7;
        boolean z8;
        boolean z9;
        VideoViewCell videoViewCell;
        PriorityViewModel priorityViewModel;
        PriorityViewModel priorityViewModel2;
        PriorityViewModel priorityViewModel3;
        PriorityViewModel priorityViewModel4;
        BaseFeedPageParams baseFeedPageParams;
        PriorityViewModel priorityViewModel5;
        PriorityViewModel priorityViewModel6;
        ViewGroup viewGroup = this.LJJJ;
        if (viewGroup != null) {
            viewGroup.setClipChildren(false);
        }
        ImageView imageView = this.LJJJZ;
        if (imageView != null) {
            imageView.setVisibility(8);
        }
        Video video = this.LJIIL.getVideo();
        LLF();
        Context context = this.LJJLIIIJLJLI;
        Aweme aweme = this.LJIIL;
        String LJLIIIL2 = LJLIIIL();
        Boolean valueOf = Boolean.valueOf(ESC.LIZ(aweme.getAuthorUid()));
        if (!"homepage_hot".equals(LJLIIIL2) || valueOf.booleanValue()) {
            z = false;
        } else {
            z = true;
        }
        Boolean valueOf2 = Boolean.valueOf(z);
        Boolean valueOf3 = Boolean.valueOf("homepage_follow".equals(LJLIIIL2));
        Boolean valueOf4 = Boolean.valueOf("homepage_nearby".equals(LJLIIIL2));
        Boolean valueOf5 = Boolean.valueOf("homepage_friends".equals(LJLIIIL2));
        if (!"chat_list".equals(LJLIIIL2) || valueOf.booleanValue()) {
            z2 = false;
        } else {
            z2 = true;
        }
        Boolean valueOf6 = Boolean.valueOf(z2);
        if (!"notification_page".equals(LJLIIIL2) || valueOf.booleanValue()) {
            z3 = false;
        } else {
            z3 = true;
        }
        Boolean valueOf7 = Boolean.valueOf(z3);
        if (!C0244Cpk.LIZ.LIZJ() || valueOf.booleanValue() || (!"personal_homepage".equals(LJLIIIL()) && !"others_homepage".equals(LJLIIIL()))) {
            z4 = false;
        } else {
            z4 = true;
        }
        Boolean valueOf8 = Boolean.valueOf(z4);
        if (valueOf.booleanValue() || (!"following".equals(LJLIIIL2) && !"other_following".equals(LJLIIIL2))) {
            z5 = false;
        } else {
            z5 = true;
        }
        Boolean valueOf9 = Boolean.valueOf(z5);
        if (valueOf.booleanValue() || (!"fans".equals(LJLIIIL2) && !"other_fans".equals(LJLIIIL2))) {
            z6 = false;
        } else {
            z6 = true;
        }
        Boolean valueOf10 = Boolean.valueOf(z6);
        Boolean valueOf11 = Boolean.valueOf("follow_request".equals(LJLIIIL2));
        if ("story_widget_extension_large".equals(LJLIIIL2) || "story_widget_extension_small".equals(LJLIIIL2)) {
            z7 = true;
        } else {
            z7 = false;
        }
        Boolean valueOf12 = Boolean.valueOf(z7);
        if (!"web".equals(LJLIIIL2) || valueOf.booleanValue()) {
            z8 = false;
        } else {
            z8 = true;
        }
        Boolean valueOf13 = Boolean.valueOf(z8);
        if (!(context instanceof 1hK) || !C0244Cpk.LIZ.LIZIZ() || !Cl7.LJ(aweme) || (!valueOf2.booleanValue() && !valueOf3.booleanValue() && !valueOf4.booleanValue() && !valueOf5.booleanValue() && !valueOf6.booleanValue() && !valueOf7.booleanValue() && !valueOf8.booleanValue() && !valueOf9.booleanValue() && !valueOf10.booleanValue() && !valueOf11.booleanValue() && !valueOf12.booleanValue() && !valueOf13.booleanValue())) {
            z9 = false;
        } else {
            z9 = true;
        }
        if (Boolean.valueOf(z9).booleanValue()) {
            videoViewCell = this;
            View LIZ = 0QK.LIZ(videoViewCell.LJLIL, videoViewCell.LJJIIJ, 2131370743, 2131373052);
            videoViewCell.LJJIIJ = LIZ;
            LIZ.setVisibility(0);
            1hK LIZIZ = 3jJ.LIZIZ(context);
            if (LIZIZ != null) {
                videoViewCell.LJJIIJ.setOnClickListener(new C0008Cgi(videoViewCell, LIZIZ));
            }
        } else {
            videoViewCell = this;
            View view = videoViewCell.LJJIIJ;
            if (view != null) {
                view.setVisibility(8);
            }
        }
        LJJIJL();
        LJLLLL();
        if (videoViewCell.LJIIL.isRelieve()) {
            HcY LIZ2 = 0QK.LIZ(videoViewCell.LJLIL, videoViewCell.LJJIIZI, 2131372819, 2131373059);
            videoViewCell.LJJIIZI = LIZ2;
            LIZ2.setAnimation("anti_addiction_tag.json");
            videoViewCell.LJJIIZI.LIZJ();
            videoViewCell.LJJIIZI.LIZIZ(true);
            videoViewCell.LJJIIZI.setVisibility(0);
        } else {
            HcY hcY = videoViewCell.LJJIIZI;
            if (hcY != null) {
                try {
                    hcY.LJII();
                } catch (NullPointerException e) {
                    2kf.LIZ(e);
                }
                videoViewCell.LJJIIZI.setVisibility(8);
            }
        }
        if (((Boolean) SharePrefCache.inst().isOb().LIZLLL()).booleanValue()) {
            LLFII();
            videoViewCell.LJJIII.setVisibility(0);
            videoViewCell.LJJIII.LIZ(videoViewCell.LJIIL.getAid());
        } else {
            QO1 qo1 = videoViewCell.LJJIII;
            if (qo1 != null) {
                qo1.setVisibility(8);
            }
        }
        if (!LJLZ()) {
            videoViewCell.LJIIJ(false);
        }
        if (!4ZN.LIZIZ.LIZ() || aO_() != null) {
            C0279Cqt cqt = videoViewCell.LJLIIL;
            Aweme aweme2 = videoViewCell.LJIIL;
            if (aweme2 != null) {
                BaseFeedPageParams baseFeedPageParams2 = cqt.LJIILJJIL.LJ;
                cqt.LIZ().LIZ.observe(cqt, new 4W6(cqt, aweme2));
                cqt.LIZ().LIZ();
                C0004Cge cge = cqt.LJII;
                if (cge != null) {
                    cge.LIZ();
                }
                if (!4Wo.LIZ(aweme2) || !(!n.LIZ(baseFeedPageParams2.eventType, "personal_homepage"))) {
                    4WY r5 = cqt.LJIIIIZZ;
                    String str = baseFeedPageParams2.eventType;
                    M12.LIZ(aweme2);
                    r5.LIZJ = aweme2;
                    r5.LIZLLL = str;
                    M12.LIZ(aweme2);
                    if (!aweme2.isAd() && 4lx.LJII(aweme2) && (priorityViewModel = r5.LIZIZ) != null) {
                        PriorityViewModel.LIZ(priorityViewModel, r5, (Boolean) null, 0, 6);
                    }
                } else {
                    C0004Cge cge2 = cqt.LJII;
                    if (cge2 != null) {
                        String str2 = baseFeedPageParams2.eventType;
                        M12.LIZ(aweme2);
                        if (4Wo.LIZ(aweme2)) {
                            if (cge2.LIZ == null) {
                                0HH.LIZ(LayoutInflater.from(cge2.LIZIZ.getContext()), 2131559359, cge2.LIZIZ, true);
                            }
                            cge2.LIZ = cge2.LIZIZ.findViewById(2131364824);
                            M12.LIZ(aweme2);
                            cge2.LIZIZ.setVisibility(0);
                            4Wm.LIZ(aweme2, cge2.LIZ, str2);
                        } else {
                            cge2.LIZ();
                        }
                    }
                }
                4W3 r52 = cqt.LJ;
                M12.LIZ(aweme2);
                r52.LIZJ = aweme2;
                M12.LIZ(aweme2);
                if (!aweme2.isAd() && SpecActServiceImpl.LJIJJ().LIZ(aweme2, r52.LIZ) && (priorityViewModel6 = r52.LIZIZ) != null) {
                    PriorityViewModel.LIZ(priorityViewModel6, r52, (Boolean) null, 0, 6);
                }
                4Wd r53 = cqt.LJFF;
                M12.LIZ(aweme2);
                r53.LIZJ = aweme2;
                BaseFeedPageParams baseFeedPageParams3 = r53.LIZ;
                if (baseFeedPageParams3 != null) {
                    int i = baseFeedPageParams3.pageType;
                    M12.LIZ(aweme2);
                    if (!aweme2.isAd() && !4Mp.LIZ() && i != 30 && ((aweme2.hasTrendingBar() || aweme2.hasTrendingBarFYP()) && (priorityViewModel2 = r53.LIZIZ) != null)) {
                        PriorityViewModel.LIZ(priorityViewModel2, r53, (Boolean) null, 0, 6);
                    }
                }
                4W7 r54 = cqt.LJI;
                M12.LIZ(aweme2);
                r54.LIZJ = aweme2;
                if (r54.LIZ != null) {
                    M12.LIZ(aweme2);
                    if (QnaService.LIZ().isQnaAugmentationFYPBannerEnabled() && aweme2.isQnaResponseAweme() && (baseFeedPageParams = r54.LIZ) != null && baseFeedPageParams.pageType == 0 && (priorityViewModel5 = r54.LIZIZ) != null) {
                        PriorityViewModel.LIZ(priorityViewModel5, r54, (Boolean) null, 0, 6);
                    }
                }
                cqt.LJIIIZ.LIZ(aweme2);
                4WB r55 = cqt.LIZJ;
                M12.LIZ(aweme2);
                r55.LIZJ = aweme2;
                M12.LIZ(aweme2);
                if (!aweme2.isAd() && !4Mp.LIZ() && r55.LJFF.LIZ(aweme2) && r55.LJFF.LIZIZ().size() < 3 && !r55.LJFF.LIZJ() && aweme2.getAuthor() != null && (priorityViewModel4 = r55.LIZIZ) != null) {
                    PriorityViewModel.LIZ(priorityViewModel4, r55, (Boolean) null, 0, 6);
                }
                4W4 r56 = cqt.LIZLLL;
                M12.LIZ(aweme2);
                r56.LIZ = aweme2;
                M12.LIZ(aweme2);
                if (!aweme2.isAd() && !4Mp.LIZ() && r56.LIZJ.LIZ(aweme2)) {
                    if (!(46i.LJFF().getCurUser().getGiftBagStatus() != 1 || aweme2.getAuthor() == null || (priorityViewModel3 = (PriorityViewModel) r56.LIZIZ.getValue()) == null)) {
                        PriorityViewModel.LIZ(priorityViewModel3, r56, (Boolean) null, 0, 6);
                    }
                }
                4Wb r57 = cqt.LJIIJJI;
                String str3 = baseFeedPageParams2.eventType;
                M12.LIZ(aweme2);
                4Wc.LIZIZ.LIZ(r57.LIZ, r57.LIZLLL);
                r57.LIZJ = aweme2;
                M12.LIZ(aweme2);
                if (!aweme2.isAd() && aweme2.isScheduleVideo() && !TextUtils.equals(str3, "homepage_follow")) {
                    PriorityViewModel.LIZ((PriorityViewModel) r57.LIZIZ.getValue(), r57, (Boolean) null, 0, 6);
                }
                Cq0 cq0 = cqt.LJIIJ;
                M12.LIZ(aweme2);
                cq0.LIZJ = aweme2;
                BaseFeedPageParams baseFeedPageParams4 = cq0.LJ;
                if (baseFeedPageParams4 != null) {
                    M12.LIZ(baseFeedPageParams4, aweme2);
                    if (n.LIZ(baseFeedPageParams4.eventType, "live_center")) {
                        7T8 r1 = 7T8.LJI;
                        String aid = aweme2.getAid();
                        n.LIZIZ(aid, "");
                        if (r1.LIZIZ(aid)) {
                            PriorityViewModel priorityViewModel7 = cq0.LIZIZ;
                            if (priorityViewModel7 != null) {
                                PriorityViewModel.LIZ(priorityViewModel7, cq0, (Boolean) null, 0, 6);
                            }
                        }
                    }
                    PriorityViewModel priorityViewModel8 = cq0.LIZIZ;
                    if (priorityViewModel8 != null) {
                        priorityViewModel8.LIZ(cq0);
                    }
                }
            }
        }
        if (!4wQ.LJII(videoViewCell.LJIIL) || !videoViewCell.LJIIL.isProhibited()) {
            TextView textView = videoViewCell.LJJJLL;
            if (textView != null) {
                textView.setVisibility(8);
            }
        } else {
            TextView textView2 = (TextView) 0QK.LIZ(videoViewCell.LJLIL, videoViewCell.LJJJLL, 2131372528, 2131373057);
            videoViewCell.LJJJLL = textView2;
            textView2.setVisibility(0);
            videoViewCell.LJJJLL.setWidth((int) (((double) HeD.LIZ(videoViewCell.LJJLIIIJLJLI)) * 0.56d));
            if (!TextUtils.isEmpty(videoViewCell.LJIIL.getVideoDetailNotice())) {
                videoViewCell.LJJJLL.setText(videoViewCell.LJIIL.getVideoDetailNotice());
            } else {
                videoViewCell.LJJJLL.setText(2131834754);
                2aZ r3 = new 2aZ();
                r3.LIZ("type", "video_detail_notice_bottom");
                r3.LIZ("log_id", videoViewCell.LJIIL.getRequestId());
                r3.LIZ("item_id", videoViewCell.LJIIL.getAid());
                9bx.LIZ("notice_content_empty", "", r3.LIZ());
            }
        }
        Integer num = (Integer) videoViewCell.LJJJJ.getTag(2131364820);
        if (num != null) {
            videoViewCell.LJLLILLLL = num.intValue();
        }
        videoViewCell.LIZ(video);
        if (videoViewCell.LJJJI == null) {
            return;
        }
        if ((videoViewCell.LJIIL == null || !videoViewCell.LJIIL.isScheduleVideo()) && !QlK.LIZJ(videoViewCell.LJIIL) && !videoViewCell.LJIIL.isReferralFakeAweme() && ((!Cl7.LJIIJ(videoViewCell.LJIIL) || !C0244Cpk.LIZ.LIZIZ()) && ((!Cl7.LJII(videoViewCell.LJIIL) || !videoViewCell.LJIIL.isProhibited()) && !D0M.LJI(videoViewCell.LJIIL) && !D0M.LJII(videoViewCell.LJIIL)))) {
            videoViewCell.LJJJI.setListener(videoViewCell.LJLLI);
        } else {
            videoViewCell.LJJJI.setListener((3EY) null);
        }
    }

    private void LJIIIZ(boolean z) {
        CiW ciW = this.LJJJIL;
        if (ciW != null) {
            ciW.setCanTouch(z);
        }
    }

    public final void LIZJ(View view) {
        CiW ciW = this.LJJJIL;
        if (ciW != null) {
            ciW.setGradualFullScreenView(view);
        }
    }

    public void onPlayFailed(7cy r2) {
        LJIIJ(3);
    }

    public final void LIZIZ(View.OnTouchListener onTouchListener) {
        this.LJL.LIZ("bind_title_touch_listener", (Object) onTouchListener);
    }

    public final 2EE LIZJ(String str) {
        C0034Chi chi = this.LJIJ;
        if (chi != null) {
            return chi.LIZ(str);
        }
        return null;
    }

    public final void LJI(boolean z) {
        LIZ(z, true);
    }

    public final /* synthetic */ 2Pr LJII(Aweme aweme) {
        this.LJL.LIZ("social_video_tag_info", (Object) aweme);
        return null;
    }

    public void onPlayCompleted(String str) {
        this.LJJLIL.LJJIJIIJIL();
        this.LJIJ.onPlayCompleted(str);
    }

    /* JADX WARNING: type inference failed for: r1v1, types: [com.bytedance.assem.arch.viewModel.AssemViewModel, com.ss.android.ugc.aweme.feed.adapter.VideoPlayViewModel] */
    public void onPlayCompletedFirstTime(String str) {
        this.LJL.LIZ("play_complete_first_time", (Object) null);
        this.LLFZ.setState(4mO.LIZ);
    }

    private boolean LIZ(UrlModel urlModel) {
        if (urlModel == null || urlModel.getUrlList() == null || urlModel.getUrlList().isEmpty()) {
            return false;
        }
        return true;
    }

    private void LIZIZ(long j) {
        long j2 = this.LJLLL;
        if (j2 > 0) {
            this.LJLLJ += j - j2;
            this.LJLLL = 0;
        }
    }

    private void LJIIIZ(int i) {
        if (this.LJIIJJI != null) {
            this.LJIIJJI.currentPosition = i;
        }
        this.LJL.LIZ("video_params", (Object) this.LJIIJJI);
        LIZ(i, this.LJIIJJI);
    }

    private void LJIIJ(int i) {
        DataCenter dataCenter = this.LJL;
        if (dataCenter != null) {
            dataCenter.LIZ("pausePlayAnimation", (Object) Integer.valueOf(i));
        }
        VideoPlayViewModel videoPlayViewModel = this.LLFZ;
        if (videoPlayViewModel != null) {
            videoPlayViewModel.LIZ(i);
        }
        this.LJLZ = false;
    }

    private void LJIILJJIL(boolean z) {
        if (this.LJIIJ != null) {
            if (z) {
                this.LJIJJ.setVisibility(0);
            } else {
                this.LJIJJ.setVisibility(8);
            }
            this.LJIIJ.LIZ(z);
        }
    }

    public final void LIZLLL(View view) {
        this.LJJJJZ = (RelativeLayout) 0QK.LIZ(view, this.LJJJJZ, 2131362882, 2131373030);
        if (this.LJJJJJ == null) {
            this.LJJJJJ = (FrameLayout) view.findViewById(2131370755);
        }
    }

    public final void LJ(String str) {
        Aweme aweme = this.LJIIL;
        if (aweme != null && TextUtils.equals(str, aweme.getAid())) {
            LIZ(aweme, aweme.getVideo());
        }
    }

    public Aweme LJI(int i) {
        if (!Cl7.LIZJ(this.LJIIL)) {
            return this.LJIIL;
        }
        if (LJJJJJL() == null) {
            return null;
        }
        return LJJJJJL().LIZIZ();
    }

    @ISm(LIZ = ThreadMode.MAIN)
    public void onJsBroadCastEvent(Hx0 hx0) {
        if (!2Kc.LIZ && hx0.LIZIZ.optString("eventName") == 33t.LIZ) {
            2GE.LIZ = true;
        }
    }

    public void onPreparePlay(String str) {
        LJI("onPreparePlay");
        this.LJII = false;
        C0034Chi chi = this.LJIJ;
        if (chi != null) {
            chi.onPreparePlay(str);
        }
        SpeedModeServiceImpl.LIZLLL().LIZ(ChD.OnPreparePlay);
    }

    private void LJII(String str) {
        String LJFF2 = 4lx.LJFF(this.LJIIL);
        M12.LIZ(str);
        2Ip r2 = 2Ip.LIZ;
        r2.LIZJ("hideCover " + LJFF2 + ", source " + str);
        SmartImageView smartImageView = this.LJIJI;
        if (smartImageView != null) {
            smartImageView.setVisibility(8);
        }
        LJIIIZ(true);
    }

    /* access modifiers changed from: private */
    /* renamed from: LJIIIIZZ */
    public void LJII(int i) {
        Boolean valueOf;
        C0504Czk czk = this.LLIL;
        if (czk == null) {
            valueOf = false;
        } else {
            valueOf = Boolean.valueOf(czk.LIZ(16));
        }
        if (!valueOf.booleanValue()) {
            this.LJL.LIZ("on_fullscreen_layer_clicked", (Object) Integer.valueOf(i));
        } else {
            this.LLFII.setState(new A3S(i));
        }
    }

    private void LJIILIIL(boolean z) {
        Space space = this.LJJLIIIJJI;
        if (space != null) {
            space.getViewTreeObserver().removeOnGlobalLayoutListener(this.LLIIIZ);
            if (D0M.LIZLLL(this.LJIIL) && z) {
                this.LJJLIIIJJI.getViewTreeObserver().addOnGlobalLayoutListener(this.LLIIIZ);
                if (this.LJJLJLI != null) {
                    float LJLJL2 = LJLJL();
                    this.LJLJI = LJLJL2;
                    this.LJJLJLI.LIZ((int) LJLJL2, this.LJJJJ.getHeight());
                }
            }
        }
    }

    private void LJIILL(boolean z) {
        FrameLayout frameLayout;
        if (2Nf.LIZIZ() && (frameLayout = this.LJJJJ) != null) {
            View findViewById = frameLayout.findViewById(2131367092);
            if (findViewById instanceof C0074Ciw) {
                C0074Ciw ciw = (C0074Ciw) findViewById;
                if (z) {
                    ciw.setAnimationStage(ChE.SCROLLING);
                } else {
                    ciw.setAnimationStage(ChE.NORMAL);
                }
            }
        }
    }

    public final void LIZLLL(Aweme aweme) {
        if (aweme != null) {
            LJIIIIZZ(aweme);
            if (!this.LJIJ.LIZIZ()) {
                this.LJIJ.LIZ((Stx) this);
            }
        }
    }

    public final void LJ(boolean z) {
        this.LJL.LIZ("load_progress_bar", (Object) Boolean.valueOf(z));
        VideoViewModel videoViewModel = this.LLFII;
        if (videoViewModel != null) {
            videoViewModel.setState(new A3X(z));
        }
    }

    public final void LJFF(boolean z) {
        this.LJIIIZ = z;
        if (z) {
            if (this.LJIJ.LIZJ() != null) {
                this.LJIJ.LIZJ().LJI();
            }
        } else if (this.LJIJ.LIZJ() != null) {
            this.LJIJ.LIZJ().LJII();
        }
    }

    public final void LJIIL(boolean z) {
        InteractStickerViewModel interactStickerViewModel;
        CmZ cmZ = this.LJJLJLI;
        if (cmZ != null && cmZ.LJIILJJIL != null) {
            if (cmZ.LIZIZ != null) {
                DataCenter dataCenter = cmZ.LIZIZ;
                if (dataCenter != null) {
                    dataCenter.LIZ("interact_text_translate_status", (Object) Boolean.valueOf(z));
                }
            } else if (cmZ.LJIIIZ != null && (interactStickerViewModel = cmZ.LJIIIZ) != null) {
                interactStickerViewModel.LIZ("interact_text_translate_status", Boolean.valueOf(z));
            }
        }
    }

    public final void a_(long j) {
        if (!CzM.LJJ.LIZ(this.LJLJJLL, LIZIZ()) && this.LJJJJL != null) {
            this.LJLILLLLZI.postDelayed(new C0014Cgo(this), j);
            this.LJJJ.setVisibility(0);
            if (j > 200) {
                AlphaAnimation alphaAnimation = new AlphaAnimation(0.0f, 1.0f);
                alphaAnimation.setDuration(200);
                alphaAnimation.setStartOffset(j - 200);
                this.LJJJ.startAnimation(alphaAnimation);
            }
        }
    }

    /* JADX WARNING: type inference failed for: r1v1, types: [com.bytedance.assem.arch.viewModel.AssemViewModel, com.ss.android.ugc.aweme.feed.adapter.VideoPlayViewModel] */
    public final void b_(Aweme aweme) {
        DataCenter dataCenter = this.LJL;
        if (dataCenter != null) {
            dataCenter.LIZ("video_resume_play", (Object) aweme);
        }
        ? r1 = this.LLFZ;
        if (r1 != 0) {
            r1.setState(new 4mV(aweme));
        }
        SmartImageView smartImageView = this.LJIJI;
        if (smartImageView != null) {
            Cg7.LIZ(smartImageView);
        }
    }

    /* JADX WARNING: type inference failed for: r1v0, types: [com.bytedance.assem.arch.viewModel.AssemViewModel, com.ss.android.ugc.aweme.feed.adapter.VideoPlayViewModel] */
    public void onPausePlay(String str) {
        LJIIJ(2);
        this.LJJLIL.LJJIIZ();
        this.LLFZ.setState(4mN.LIZ);
        LIZIZ(System.currentTimeMillis());
        C0034Chi chi = this.LJIJ;
        if (chi != null) {
            chi.onPausePlay(str);
        }
        VideoPlaySearchViewModel videoPlaySearchViewModel = this.LLI;
        if (videoPlaySearchViewModel != null) {
            videoPlaySearchViewModel.setState(AjX.LIZ);
        }
    }

    private void LIZIZ(Video video) {
        QJt LIZ = QHW.LIZ(3EX.LIZ(video.getOriginCover()));
        if (C0003Cgd.LIZ && !video.getOriginCover().getUrlList().isEmpty()) {
            if (QEL.LIZIZ().LJIIL().LIZLLL(QDH.LIZ().LIZ(QDE.LIZ(Uri.parse((String) video.getOriginCover().getUrlList().get(0)))))) {
                LIZ.LJJIIJZLJL = C0092Cjo.SMALL;
            }
        }
        LIZ.LJJII = 4ma.HIGH;
        LIZ.LIZ("VideoViewCell");
        LIZ.LJJIIZ = this.LJIJI;
        LIZ.LIZ(new 7YX(this, this.LJI));
    }

    private void LJIIIIZZ(Aweme aweme) {
        this.LJIIL = aweme;
        this.LJIIJJI.setAweme(aweme);
        if (this.LLIILII) {
            ChB.LIZ.LIZ(new 8Ys(true, new CgI(this, aweme)));
        } else {
            this.LJIIJJI.setwidgetAweme(aweme);
        }
        LJLLLLLL();
        Spm.LIZIZ(7du.LJFF, aweme);
    }

    public final void LJIIJ(boolean z) {
        if (QnaService.LIZ().enablePublicQna() && this.LJIILJJIL != null && this.LJIILJJIL.getActivity() != null && !this.LJIIIIZZ && this.LJLJJLL != null) {
            if (7ku.LJJIII.LJJ()) {
                if (3rX.LIZJ.LIZ(this.LJIIL)) {
                    LLFF();
                } else {
                    return;
                }
            }
            3rX.LIZJ.LIZ(this.LJIILJJIL, this.LJIIL, this.LJJLIIIJJIZ, this.LJLJJLL.eventType, z);
        }
    }

    public final void a_(Aweme aweme) {
        if (this.LJJLIIIJLJLI != null && aweme != null) {
            DataCenter dataCenter = this.LJL;
            if (dataCenter != null) {
                dataCenter.LIZ("handle_double_click", (Object) aweme);
            }
            VideoViewModel videoViewModel = this.LLFII;
            if (videoViewModel != null) {
                videoViewModel.setState(new A3Y(aweme));
            }
            if (this.LJLJJLL.isPlayListCleanMode().booleanValue()) {
            }
        }
    }

    public void onBuffering(boolean z) {
        Runnable runnable;
        if (!TextUtils.equals(LJLIIIL(), "homepage_hot")) {
            return;
        }
        if (z) {
            this.LLIIZ = new C1602DcM(this, LIZIZ());
            if (!(3dE.LIZ.LIZ() == 0 || (runnable = this.LLIIZ) == null)) {
                this.LJLILLLLZI.postDelayed(runnable, 5000);
            }
            SpeedModeServiceImpl.LIZLLL().LIZ(ChD.OnBufferStart);
            return;
        }
        Runnable runnable2 = this.LLIIZ;
        if (runnable2 != null) {
            this.LJLILLLLZI.removeCallbacks(runnable2);
        }
        SpeedModeServiceImpl.LIZLLL().LIZ(ChD.OnBufferEnd);
    }

    /* JADX WARNING: type inference failed for: r1v4, types: [com.bytedance.assem.arch.viewModel.AssemViewModel, com.ss.android.ugc.aweme.feed.adapter.VideoPlayViewModel] */
    /* JADX WARNING: type inference failed for: r1v5, types: [com.bytedance.assem.arch.viewModel.AssemViewModel, com.ss.android.ugc.aweme.feed.adapter.VideoPlayViewModel] */
    public void onPlayProgressChange(float f) {
        if (!(this.LJIIL == null || this.LJIIL.getVideo() == null)) {
            double duration = (double) ((((float) this.LJIIL.getVideo().getDuration()) * (f / 100.0f)) / 1000.0f);
            if (this.LLIIL < Math.floor(duration)) {
                this.LJL.LIZ("action_video_on_play_progress_change", (Object) new 07U(Float.valueOf(f), Double.valueOf(duration)));
                this.LLFZ.setState(new 4mI(f));
                this.LLFZ.setState(new 4mU(duration));
            }
            this.LLIIL = duration;
        }
        this.LJIJ.onPlayProgressChange(f);
    }

    /* JADX WARNING: type inference failed for: r1v1, types: [com.bytedance.assem.arch.viewModel.AssemViewModel, com.ss.android.ugc.aweme.feed.adapter.VideoPlayViewModel] */
    public void onResumePlay(String str) {
        this.LJJLIL.LJJIIJZLJL();
        if (this.LLIIJI == 2 || this.LJII) {
            LJII("onResumePlay");
        } else if (2Ki.LIZIZ()) {
            2kf.LIZIZ(4, "VideoViewCell", "onResumePlay without calling hideCover in " + LJLIIIL() + ", sourceId is " + str);
        }
        DataCenter dataCenter = this.LJL;
        if (dataCenter != null) {
            dataCenter.LIZ("in_video_view_holder", (Object) true);
        }
        this.LLFZ.setState(4mR.LIZ);
        this.LJLLL = System.currentTimeMillis();
        C0034Chi chi = this.LJIJ;
        if (chi != null) {
            chi.onResumePlay(str);
        }
    }

    private void LJIIIIZZ(String str) {
        2kf.LIZ(4, "FeedAvatarView", "VideoViewCell rev liveData!");
        DataCenter dataCenter = this.LJL;
        if (dataCenter != null) {
            dataCenter.LIZ("dismiss_dou_pop", (Object) true);
        }
        C0043Chr chr = new C0043Chr(this.LJJLIIIJLJLI.hashCode(), this.LLIIJI);
        if (!TextUtils.isEmpty(str)) {
            chr.LIZJ = str;
        }
        C0025Cgz cgz = new C0025Cgz(LJLIIIL(), C0000Cga.LIZ(this.LLIIJI));
        LJLIIIL();
        CgW.LIZ(cgz, chr);
    }

    public void LIZIZ(int i) {
        DataCenter dataCenter;
        this.LLFII.setState(new A3T(i));
        this.LJLJL = true;
        if (this.LJIJ.LIZIZ()) {
            View LJJ2 = this.LJIJ.LJJ();
            if (LJJ2.getVisibility() != 8) {
                Cbz.LIZ(LJJ2, 8);
            }
        }
        if (!(i == 4 || i == 5)) {
            this.LJJLIL.LJJII();
        }
        CgQ cgQ = this.LLII;
        if (cgQ != null) {
            cgQ.LIZLLL();
        }
        if (i == 1) {
            if (9Y3.LIZ(9Y3.LIZ(), true, "stop_main_anim_when_invisible", false) && (dataCenter = this.LJL) != null) {
                dataCenter.LIZ("pause_share_guide_animation", (Object) true);
            }
        } else if (i != 6) {
            if (i == 5) {
                LJZ();
                CqM.LIZ(new 2FE(false, 2MX.SWITCH_PAGE.getType(), ""));
            } else {
                LJIIJ(1);
            }
            DataCenter dataCenter2 = this.LJL;
            if (dataCenter2 != null) {
                dataCenter2.LIZ("holder_on_pause", (Object) true);
                this.LJL.LIZ("in_video_view_holder", (Object) false);
            }
            this.LLFII.setState(A3Q.LIZ);
        }
    }

    public void LIZJ(int i) {
        DataCenter dataCenter;
        this.LJLJL = false;
        LJJIII();
        Qus LJJIIZI2 = LJJIIZI();
        if (QvT.LIZLLL.LIZJ() && LJJIIZI2.LJIILJJIL == Qux.GREY_CARD && LJJIIZI2.LJ() && !LJJIIZI2.LJIIL) {
            QvF.LIZ();
        }
        DataCenter dataCenter2 = this.LJL;
        if (dataCenter2 != null) {
            dataCenter2.LIZ("holder_on_resume", (Object) Integer.valueOf(i));
        }
        CgQ cgQ = this.LLII;
        if (cgQ != null) {
            cgQ.LJ();
        }
        if (i == 2 || i == 1) {
            this.LJJLIL.LJJ();
            this.LLFII.setState(A3R.LIZ);
        } else if (9Y3.LIZ(9Y3.LIZ(), true, "stop_main_anim_when_invisible", false) && (dataCenter = this.LJL) != null) {
            dataCenter.LIZ("recover_share_guide_animation", (Object) true);
        }
    }

    public final void LJ(int i) {
        2UX r3 = new 2UX();
        r3.LIZ("enter_from", LJLIIIL());
        r3.LIZ("group_id", 4wQ.LJ(this.LJIIL));
        r3.LIZ("author_id", 4wQ.LIZ(this.LJIIL));
        r3.LIZ("is_success", i);
        r3.LIZ("enable_experiment", 9Y3.LIZ(9Y3.LIZ(), true, "player_enable_opt_subload_time", 1));
        2nK.LIZ("cla_caption_switch_language_success", r3.LIZ);
    }

    public final void LJFF(int i) {
        2UX r3 = new 2UX();
        r3.LIZ("enter_from", LJLIIIL());
        r3.LIZ("group_id", 4wQ.LJ(this.LJIIL));
        r3.LIZ("author_id", 4wQ.LIZ(this.LJIIL));
        r3.LIZ("is_success", i);
        r3.LIZ("enable_experiment", 9Y3.LIZ(9Y3.LIZ(), true, "player_enable_opt_subload_time", 1));
        2nK.LIZ("cla_caption_load_success", r3.LIZ);
    }

    public void LJI(String str) {
        SmartImageView smartImageView;
        Aweme aweme = this.LJIIL;
        boolean z = true;
        if (aweme == null || aweme.getAwemeType() != 77) {
            String LJFF2 = 4lx.LJFF(this.LJIIL);
            M12.LIZ(str);
            2Ip r3 = 2Ip.LIZ;
            r3.LIZJ("showCover " + LJFF2 + ", source " + str);
            7Pr LJJJJI2 = this.LJJLIL.LJJJJI();
            if (LJJJJI2 == null || !LJJJJI2.LIZ(this.LJIIL)) {
                z = false;
            }
            if ((!this.LJJZ || z) && (smartImageView = this.LJIJI) != null) {
                smartImageView.setVisibility(8);
                return;
            }
            int LJIJI2 = 7Rl.LJIJI();
            if (this.LJIJI != null && (this.LJJZZI || LJIJI2 == 2 || LJIJI2 == 3)) {
                return;
            }
            if (!this.LJII || (!LJLIIIL().equals("playlist") && !LJLIIIL().equals("chat"))) {
                SmartImageView smartImageView2 = this.LJIJI;
                if (smartImageView2 != null) {
                    smartImageView2.setVisibility(0);
                }
                LJIIIZ(false);
                return;
            }
            return;
        }
        M12.LIZ("showCover: story sub video has no cover url and can not show cache cover");
    }

    public final Void LJIIJJI(boolean z) {
        ValueAnimator ofFloat;
        if (AKm.LIZIZ()) {
            if (CgM.LIZIZ() == 0) {
                this.LJJ.setBackgroundResource(2131231850);
                if (z) {
                    int LIZIZ = HeD.LIZIZ(this.LJJLIIIJLJLI);
                    this.LJJ.getLayoutParams().height = (LIZIZ * 3) / 5;
                    return null;
                }
                this.LJJ.getLayoutParams().height = (int) HeD.LIZIZ(this.LJJLIIIJLJLI, 356.0f);
                return null;
            }
            LL();
            return null;
        } else if (AKm.LIZJ()) {
            if (z) {
                this.LJJ.setBackgroundResource(2131231846);
            } else {
                this.LJJ.setBackgroundResource(2131231850);
            }
            LL();
            return null;
        } else if (!AKm.LIZLLL()) {
            return null;
        } else {
            Boolean valueOf = Boolean.valueOf(z);
            if (!valueOf.booleanValue() && this.LJJI.getVisibility() == 8) {
                return null;
            }
            if (valueOf.booleanValue()) {
                ofFloat = ValueAnimator.ofFloat(new float[]{0.0f, AKm.LIZ()});
            } else {
                ofFloat = ValueAnimator.ofFloat(new float[]{AKm.LIZ(), 0.0f});
            }
            ofFloat.addUpdateListener(new CgL(this));
            ofFloat.addListener(new CgK(this, valueOf));
            ofFloat.start();
            return null;
        }
    }

    /* JADX WARNING: type inference failed for: r8v0, types: [X.2GH, X.BDg, com.ss.android.ugc.aweme.feed.adapter.VideoViewCell, X.Chv, X.EMe, X.0C0, com.ss.android.ugc.aweme.feed.adapter.VideoBaseCell] */
    public VideoViewCell(4aP r9) {
        super(r9);
        if (2mK.LIZ) {
            if (2mK.LIZIZ == 0) {
                2HX.LIZ.LIZ("feed_ui_duration_first_videoviewcell_init", false);
            } else if (2mK.LIZIZ == 1) {
                2HX.LIZ.LIZ("feed_ui_duration_second_videoviewcell_init", false);
            }
        }
        View view = r9.LIZ;
        this.LJLIL = view;
        this.LJJJJLI = (FrameLayout) view.findViewById(2131368600);
        this.LJJJJI = (FrameLayout) view.findViewById(2131370739);
        this.LJJJJIZL = (FrameLayout) view.findViewById(2131370744);
        this.LJJJJJ = (FrameLayout) view.findViewById(2131370755);
        this.LJJLIIIJJI = (Space) view.findViewById(2131368551);
        this.LJIIZILJ = (RelativeLayout) view.findViewById(2131373118);
        this.LLIIIL = (FrameLayout) view.findViewById(2131372866);
        this.LJJJI = view.findViewById(2131367483);
        this.LJJJIL = (CiW) view.findViewById(2131367759);
        this.LLFZ = VideoPlayViewModel.LIZIZ.LIZ(this);
        this.LLFII = VideoViewModel.LIZ.LIZ(this);
        this.LJIJ = LIZ(r9);
        this.LJIILJJIL = r9.LIZJ;
        this.LJL = DataCenter.LIZ(C0179Cmx.LIZ(this.LJIILJJIL, this), (0CH) this.LJIILJJIL);
        this.LJLIIL = new C0279Cqt(this, this.LJL, this.LJIILLIIL);
        this.LLIIIILZ = new 4VX(this, view);
        this.LJJLIIIJLLLLLLLZ = r9.LIZIZ;
        this.LJLJJLL = r9.LJ;
        4RT LIZ = LIZ(r9.LIZ, (2YM<C5233Etp>) r9.LIZIZ, this.LJIILJJIL);
        this.LJJLIL = LIZ;
        LIZ.LIZ(this.LJLJJLL.param);
        this.LJJLIL.LIZ(this.LJL);
        this.LJIJ.LIZ = this.LJL;
        if (this.LJJLJLI == null) {
            this.LJJLJLI = new CmZ(this);
        }
        this.LJIIJJI = VideoItemParams.newBuilder(this.LJLJJLL, this.LJJLIL, this, this.LJIILJJIL, this.LJJZZIII, this.LJL, this, this);
        4ZN.LIZIZ.LIZ(new C0007Cgh(this, r9));
        EMX.LIZ(EMX.LIZ((C3644EMe) this), this, IVideoCellAbility.class);
    }

    public final void LIZIZ(String str) {
        if (this.LJIIJJI != null) {
            this.LJIIJJI.adapterType = str;
        }
    }

    public void LIZLLL(boolean z) {
        String str;
        String LIZJ;
        String str2;
        String str3;
        FLK.LIZ = true;
        this.LJJLIL.LJIIL();
        int i = 0;
        if (C0022Cgw.LIZ(this.LJIIL) && this.LJJJJ != null) {
            LDj.LJ().LIZ(this.LJJLIIIJLJLI, this.LJIIL, this.LJJJJ, false);
        }
        this.LJL.LIZ("on_page_unselected", (Object) true);
        CqM.LIZ(new 9nG(this.LJIIL.getAid()));
        VideoViewModel videoViewModel = this.LLFII;
        4XF r1 = new 4XF(this.LJIIL.getAid(), z);
        videoViewModel.setState(new ATl(r1));
        videoViewModel.setState(new ATm(r1));
        this.LJIILL.LIZ(this.LJIIL.getAid());
        LDj.LJI().LIZ();
        CmZ cmZ = this.LJJLJLI;
        Qur qur = null;
        if (cmZ != null) {
            if (this.LJIIL != null) {
                str2 = this.LJIIL.getAid();
            } else {
                str2 = null;
            }
            Aweme aweme = cmZ.LIZ;
            if (aweme != null) {
                str3 = aweme.getAid();
            } else {
                str3 = null;
            }
            if (n.LIZ(str2, str3)) {
                if (cmZ.LIZIZ != null) {
                    DataCenter dataCenter = cmZ.LIZIZ;
                    if (dataCenter != null) {
                        dataCenter.LIZ("viewholder_select_status_changed", (Object) false);
                    }
                } else {
                    InteractStickerViewModel interactStickerViewModel = cmZ.LJIIIZ;
                    if (interactStickerViewModel != null) {
                        interactStickerViewModel.LIZ("viewholder_select_status_changed", false);
                    }
                }
            }
        }
        CgQ cgQ = this.LLII;
        if (cgQ != null) {
            cgQ.LIZIZ();
        }
        if (this.LJIIL.isReferralFakeAweme()) {
            C0054Cic LJJIJIL2 = LJJIJIL();
            ChW chW = LJJIJIL2.LJIIZILJ;
            if (chW != null) {
                i = chW.LJ;
            }
            if (i == 1) {
                1Fq r0 = LJJIJIL2.LJIIIZ;
                if (r0 != null) {
                    r0.LJII();
                }
                1Fq r02 = LJJIJIL2.LJIIIZ;
                if (r02 != null) {
                    r02.clearAnimation();
                }
                LinearLayout linearLayout = LJJIJIL2.LJI;
                if (linearLayout != null) {
                    linearLayout.setVisibility(8);
                }
                Qeg qeg = LJJIJIL2.LJII;
                if (qeg != null) {
                    qeg.setVisibility(4);
                }
                Qeg qeg2 = LJJIJIL2.LJIIIIZZ;
                if (qeg2 != null) {
                    qeg2.setVisibility(4);
                }
                FrameLayout frameLayout = LJJIJIL2.LJIIJ;
                if (frameLayout != null) {
                    frameLayout.setVisibility(4);
                }
            } else {
                LinearLayout linearLayout2 = LJJIJIL2.LIZIZ;
                if (linearLayout2 != null) {
                    linearLayout2.setVisibility(8);
                }
            }
            LinearLayout linearLayout3 = LJJIJIL2.LJIILJJIL;
            if (linearLayout3 != null) {
                linearLayout3.setVisibility(8);
            }
            if (!LJJIJIL2.LJJIFFI) {
                SpecActServiceImpl.LJIJJ().LJIJ();
                LJJIJIL2.LJJIFFI = true;
            }
            2UX r2 = new 2UX();
            IAccountService LIZ = AccountService.LIZ();
            if (LIZ == null || (LIZJ = LIZ.LIZJ()) == null) {
                str = null;
            } else {
                Objects.requireNonNull(LIZJ, "null cannot be cast to non-null type java.lang.String");
                str = LIZJ.toLowerCase(Locale.ROOT);
                n.LIZIZ(str, "");
            }
            r2.LIZ("region", str);
            2nK.LIZ("feed_activation_video_swipe_click", r2.LIZ);
        }
        if ((this.LJIIL == null || (qur = C0194Cnm.LIZJ.LIZ().LIZIZ(this.LJIIL.getAid())) == null || !qur.LIZLLL) && LJJIIZI().LJ() && this.LJIIL != null && qur != null) {
            if (QvT.LIZLLL.LIZJ()) {
                LJJIIZI().LIZ(QvC.SWIPE, this.LJIIL.getAid(), this.LJIIL, !qur.LIZJ);
                LJJIIZI().LIZJ();
            } else if (QvD.LIZ() && this.LJIIL.getIsSubAweme()) {
                LJJIIZI().LIZ(QvC.SWIPE, this.LJIIL.getAid(), this.LJIIL, !qur.LIZJ);
            }
            qur.LIZJ = true;
            C0194Cnm.LIZJ.LIZ().LIZ(this.LJIIL.getAid(), qur);
        }
        30g.LIZ(aO_(), this.LJIILJJIL, this.LJIIL, 46i.LJFF().getCurUser(), LJLIIIL());
        LJZI();
    }

    public final void LJI(Aweme aweme) {
        boolean z;
        if (this.LJIIL != null && aweme != null && TextUtils.equals(this.LJIIL.getAid(), aweme.getAid()) && this.LJL != null) {
            this.LJIIL.setCmtSwt(aweme.isCmtSwt());
            this.LJIIL.setAwemeACLShareInfo(aweme.getAwemeACLShareInfo());
            if (aweme.getStatus() != null) {
                AwemeStatus status = this.LJIIL.getStatus();
                if (status == null) {
                    status = new AwemeStatus();
                }
                status.setDownloadStatus(aweme.getStatus().getDownloadStatus());
                status.setAllowShare(aweme.getStatus().isAllowShare());
                this.LJIIL.setStatus(status);
            }
            if (aweme.getCommerceVideoAuthInfo() != null) {
                Tpu commerceVideoAuthInfo = this.LJIIL.getCommerceVideoAuthInfo();
                if (commerceVideoAuthInfo == null) {
                    commerceVideoAuthInfo = new Tpu();
                }
                commerceVideoAuthInfo.setPreventShare(aweme.getCommerceVideoAuthInfo().isPreventShare());
                this.LJIIL.setCommerceVideoAuthInfo(commerceVideoAuthInfo);
            }
            if (!(!LFp.LJIL(this.LJIIL) || aweme.getAuthor() == null || this.LJIIL.getAuthor() == null || this.LJJLIL.LJJJJL() == 4)) {
                this.LJIIL.getAuthor().roomId = aweme.getAuthor().roomId;
                LFp.LJJJLL(this.LJIIL);
                try {
                    1JK r2 = new 1JK();
                    r2.LIZIZ = Long.parseLong(aweme.getAuthor().getUid());
                    r2.LIZ = aweme.getAuthor().roomId;
                    if (!aweme.getAuthor().isLive()) {
                        z = true;
                    } else {
                        z = false;
                    }
                    r2.LIZJ = z;
                    3QA.LIZ(new CgB(this, r2));
                } catch (Exception unused) {
                }
            }
            this.LJIIL.setDuetSetting(aweme.getDuetSetting());
            this.LJIIL.setStitchSetting(aweme.getStitchSetting());
            this.LJIIL.setWithPromotionalMusic(aweme.isWithPromotionalMusic());
            this.LJIIL.setStatistics(aweme.getStatistics());
            if (F55.LIZ.LJII()) {
                3QA.LIZ(new CgV(this));
            }
            this.LJL.LIZ("awesome_update_data", (Object) this.LJIIJJI);
            VideoViewModel videoViewModel = this.LLFII;
            if (videoViewModel != null) {
                videoViewModel.setState(new A3Z(this.LJIIJJI));
            }
        }
    }

    public final void LJIIIIZZ(boolean z) {
        if (LJIIJJI() == 2 && ChO.LJFF.LIZIZ()) {
            if (z) {
                if (ChG.LIZIZ.LIZ()) {
                    Cbz.LIZ(this.LJJIL, 4);
                }
                if (ChG.LIZIZ.LIZJ()) {
                    Cbz.LIZ(this.LJJIZ, 4);
                }
                if (ChG.LIZIZ.LIZIZ()) {
                    Cbz.LIZ(this.LLIIIL, 4);
                }
                if (ChG.LIZIZ.LIZLLL()) {
                    Cbz.LIZ(this.LJJ, 4);
                    Cbz.LIZ(this.LJJIFFI, 4);
                }
                if (ChG.LIZIZ.LJ()) {
                    LJ(false);
                    return;
                }
                return;
            }
            if (ChG.LIZIZ.LIZ()) {
                Cbz.LIZ(this.LJJIL, 0);
            }
            if (ChG.LIZIZ.LIZJ()) {
                Cbz.LIZ(this.LJJIZ, 0);
            }
            if (ChG.LIZIZ.LIZIZ()) {
                Cbz.LIZ(this.LLIIIL, 0);
            }
            if (ChG.LIZIZ.LIZLLL()) {
                Cbz.LIZ(this.LJJ, 0);
                Cbz.LIZ(this.LJJIFFI, 0);
            }
            if (ChG.LIZIZ.LJ()) {
                LJ(true);
            }
        }
    }

    /* JADX WARNING: type inference failed for: r2v3, types: [com.bytedance.assem.arch.viewModel.AssemViewModel, com.ss.android.ugc.aweme.feed.adapter.VideoPlayViewModel] */
    public void onRenderFirstFrame(8Fb r13) {
        int i;
        String str;
        this.LJJLIIIJL = System.currentTimeMillis();
        SpeedModeServiceImpl.LIZLLL().LIZ(ChD.OnRenderFirstFrame);
        LJII("onRenderFirstFrame");
        this.LJII = true;
        Aweme aweme = this.LJIIL;
        if (7QX.LIZJ) {
            2Iz.LIZ.LIZ.postDelayed(new CgP(this, aweme), 300);
            2Iz.LIZ.LIZ.postDelayed(new CgU(this), 500);
        } else {
            LJFF(this.LJIIL);
            LJLJI();
        }
        LJIILJJIL(true);
        DataCenter dataCenter = this.LJL;
        if (dataCenter != null) {
            dataCenter.LIZ("in_video_view_holder", (Object) true);
        }
        this.LLFZ.setState(4mP.LIZ);
        if (this.LJIILJJIL.getActivity() != null && this.LJIILIIL == 0) {
            MainPageExperimentServiceImpl.LIZIZ();
            if (TextUtils.equals(LJLIIIL(), "homepage_follow")) {
                FollowPageFirstFrameViewModel.LIZ(this.LJIILJJIL.getActivity());
            }
        }
        if (!(this.LJIIL == null || this.LJIIL.getVideo() == null)) {
            int LJIIJJI = 7df.LJJJI().LJIIJJI();
            int LJIIL = 7df.LJJJI().LJIIL();
            if (LJIIJJI <= 0 || LJIIL <= 0) {
                2kf.LIZIZ(5, "VideoViewCell", "video Player size is wrong, aid is " + 4lx.LJFF(this.LJIIL));
            } else {
                int width = this.LJIIL.getVideo().getWidth();
                int height = this.LJIIL.getVideo().getHeight();
                if (width <= 0 || height <= 0) {
                    i = 1;
                } else if ((width > height && LJIIJJI < LJIIL) || (width < height && LJIIJJI > LJIIL)) {
                    i = 2;
                } else if (CiT.LIZ(width, height, LJIIJJI, LJIIL)) {
                    i = 3;
                }
                try {
                    JSONObject jSONObject = new JSONObject();
                    jSONObject.put("aweme_id", 4lx.LJFF(this.LJIIL));
                    jSONObject.put("aweme_position", this.LJIILIIL);
                    jSONObject.put("video_server_width", width);
                    jSONObject.put("video_server_height", height);
                    jSONObject.put("video_player_width", LJIIJJI);
                    jSONObject.put("video_player_height", LJIIL);
                    jSONObject.put("event_type", LJLIIIL());
                    JSONObject jSONObject2 = this.LJJLIIJ;
                    if (jSONObject2 == null) {
                        str = "";
                    } else {
                        str = jSONObject2.optString("request_id");
                    }
                    jSONObject.put("request_id", str);
                    2kf.LIZIZ(4, "VideoViewCell", "video_view_size_mismatch ".concat(String.valueOf(jSONObject)));
                    9LK.LIZ("video_view_size_mismatch", i, jSONObject);
                } catch (Exception e) {
                    2kf.LIZ(e);
                }
                if (i > 1) {
                    2kf.LIZIZ(5, "VideoViewCell", "video_view_size_mismatch, but current strategy does not handle it");
                } else if (!(this.LJIIL == null || this.LJIIL.getVideo() == null)) {
                    this.LJIIL.getVideo().setWidth(LJIIJJI);
                    this.LJIIL.getVideo().setHeight(LJIIL);
                    UrlModel originCover = this.LJIIL.getVideo().getOriginCover();
                    if (originCover != null) {
                        originCover.setWidth(LJIIJJI);
                        originCover.setHeight(LJIIL);
                    }
                    try {
                        this.LJJLJ.LIZ(this.LJJLIIIJLJLI, this.LJIIL.getVideo(), this.LJIJ.LJJ(), this.LJIJI, this.LJIIL.getOcrLocation());
                    } catch (Exception e2) {
                        2kf.LIZ("", e2);
                    }
                }
            }
        }
        View view = this.LJJLI;
        LinearLayout linearLayout = this.LJJIL;
        if (BK5.LIZ && linearLayout != null) {
            linearLayout.getLocationOnScreen(BK5.LIZLLL);
        }
        if (BK5.LIZIZ && view != null) {
            view.getLocationOnScreen(BK5.LIZJ);
        }
        C0034Chi chi = this.LJIJ;
        if (chi != null) {
            chi.onRenderFirstFrame(r13);
        }
        ((Ch3) ServiceManager.get().getService(Ch3.class)).LIZ(r13.getId());
        SpeedModeServiceImpl.LIZLLL().LIZ(ChD.OnRenderFirstFrame);
    }

    public C0034Chi LIZ(4aP r5) {
        FrameLayout frameLayout = this.LJJJJLI;
        M12.LIZ(frameLayout, this, r5);
        if (r5.LJIILJJIL != 16) {
            return new C0035Chj(frameLayout, this);
        }
        Context context = frameLayout.getContext();
        n.LIZIZ(context, "");
        return new C0036Chk(context);
    }

    public void LIZIZ(boolean z) {
        DataCenter dataCenter;
        this.LLD = z;
        LIZ((View) this.LJIIZILJ, z);
        this.LJJLIL.LIZJ(z);
        if (z && (dataCenter = this.LJL) != null) {
            dataCenter.LIZ("dismiss_dou_pop", (Object) true);
        }
        if (C0000Cga.LIZ(LJLIIIL())) {
            2kf.LIZIZ(3, "VideoViewCell", "openCleanMode in position " + this.LJIILIIL + ", clean is" + z);
        }
    }

    /* JADX WARNING: type inference failed for: r1v1, types: [com.bytedance.assem.arch.viewModel.AssemViewModel, com.ss.android.ugc.aweme.feed.adapter.VideoPlayViewModel] */
    /* JADX WARNING: Code restructure failed: missing block: B:165:0x0273, code lost:
        if (r2.getCommentId() != 0) goto L_0x0275;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:185:0x02c7, code lost:
        if (r2 == null) goto L_0x02c9;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:202:0x02f6, code lost:
        if (r2 == null) goto L_0x02f8;
     */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public void onRenderReady(X.7TD r19) {
        /*
            r18 = this;
            r5 = r18
            X.HcY r0 = r5.LJJIIZI
            if (r0 == 0) goto L_0x0015
            boolean r0 = X.Cbz.LIZIZ(r0)
            if (r0 == 0) goto L_0x0015
            com.ss.android.ugc.aweme.compliance.api.services.antiaddiction.IAntiAddictionService r1 = com.ss.android.ugc.aweme.compliance.api.a.LIZIZ()
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r5.LJIIL
            r1.LIZ(r0)
        L_0x0015:
            com.ss.android.ugc.aweme.arch.widgets.base.DataCenter r2 = r5.LJL
            java.lang.String r1 = "on_render_ready"
            r0 = 0
            r2.LIZ((java.lang.String) r1, (java.lang.Object) r0)
            com.ss.android.ugc.aweme.feed.adapter.VideoPlayViewModel r1 = r5.LLFZ
            if (r1 == 0) goto L_0x0026
            X.4mQ r0 = X.4mQ.LIZ
            r1.setState(r0)
        L_0x0026:
            X.4RT r0 = r5.LJJLIL
            r0.LJJIJIIJI()
            com.ss.android.ugc.aweme.feed.model.BaseFeedPageParams r2 = r5.LJLJJLL
            r0 = 0
            if (r2 == 0) goto L_0x003b
            java.lang.Boolean r2 = r2.isPlayListCleanMode()
            boolean r2 = r2.booleanValue()
            if (r2 != 0) goto L_0x0354
        L_0x003b:
            X.CmZ r3 = r5.LJJLJLI
            com.ss.android.ugc.aweme.feed.model.Aweme r2 = r5.LJIIL
            r3.LIZ((com.ss.android.ugc.aweme.feed.model.Aweme) r2)
            X.CmZ r7 = r5.LJJLJLI
            android.content.Context r6 = r5.LJJLIIIJLJLI
            com.bytedance.lighten.loader.SmartImageView r4 = r5.LJIJI
            X.M12.LIZ(r6, r4)
            com.ss.android.ugc.aweme.shortvideo.sticker.infoSticker.interact.consume.widget.AbsInteractStickerWidget r2 = r7.LJIILJJIL
            if (r2 == 0) goto L_0x0354
            com.ss.android.ugc.aweme.feed.model.Aweme r2 = r7.LIZ
            if (r2 == 0) goto L_0x0059
            java.util.List r2 = r2.getInteractStickerStructs()
            if (r2 != 0) goto L_0x0342
        L_0x0059:
            java.util.ArrayList r3 = new java.util.ArrayList
            r3.<init>()
        L_0x005e:
            X.DEa r2 = new X.DEa
            r2.<init>()
            java.util.List r2 = X.Lea.LIZ(r3, r2)
            java.util.Iterator r17 = r2.iterator()
        L_0x006b:
            boolean r2 = r17.hasNext()
            if (r2 == 0) goto L_0x0354
            java.lang.Object r8 = r17.next()
            com.ss.android.ugc.aweme.sticker.data.InteractStickerStruct r8 = (com.ss.android.ugc.aweme.sticker.data.InteractStickerStruct) r8
            int r13 = r8.getType()
            r3 = 3
            r2 = 0
            java.lang.String r9 = ""
            if (r13 == r3) goto L_0x02bb
            r2 = 4
            java.lang.String r10 = "author_id"
            java.lang.String r11 = "group_id"
            java.lang.String r12 = "enter_from"
            java.lang.String r3 = "interact_sticker_data"
            if (r13 == r2) goto L_0x0226
            r2 = 10
            if (r13 == r2) goto L_0x013f
            r2 = 17
            if (r13 == r2) goto L_0x0095
            goto L_0x006b
        L_0x0095:
            com.ss.android.ugc.aweme.arch.widgets.base.DataCenter r2 = r7.LIZIZ
            if (r2 == 0) goto L_0x012c
            com.ss.android.ugc.aweme.arch.widgets.base.DataCenter r2 = r7.LIZIZ
            if (r2 == 0) goto L_0x013c
            java.lang.Object r13 = r2.LIZ((java.lang.String) r3)
            X.Cma r13 = (X.C0156Cma) r13
        L_0x00a3:
            com.ss.android.ugc.aweme.sticker.data.QaStruct r2 = r8.getQaStruct()
            if (r2 == 0) goto L_0x00af
            java.lang.String r2 = r2.getExtra()
            if (r2 != 0) goto L_0x0119
        L_0x00af:
            r15 = 0
        L_0x00b0:
            X.2UX r14 = new X.2UX
            r14.<init>()
            if (r13 == 0) goto L_0x0117
            X.Cgl r2 = r13.LJIIZILJ
            if (r2 == 0) goto L_0x0117
            java.lang.String r2 = r2.LIZ
        L_0x00bd:
            r14.LIZ(r12, r2)
            if (r13 == 0) goto L_0x0115
            X.Cgl r2 = r13.LJIIZILJ
            if (r2 == 0) goto L_0x0115
            java.lang.String r2 = r2.LIZJ
        L_0x00c8:
            r14.LIZ(r11, r2)
            if (r13 == 0) goto L_0x0113
            X.Cgl r2 = r13.LJIIZILJ
            if (r2 == 0) goto L_0x0113
            java.lang.String r2 = r2.LIZIZ
        L_0x00d3:
            r14.LIZ(r10, r2)
            com.ss.android.ugc.aweme.sticker.data.QaStruct r2 = r8.getQaStruct()
            if (r2 == 0) goto L_0x0111
            long r2 = r2.getQuestionId()
            java.lang.Long r3 = java.lang.Long.valueOf(r2)
        L_0x00e4:
            java.lang.String r2 = "question_id"
            r14.LIZ(r2, r3)
            com.ss.android.ugc.aweme.sticker.data.QaStruct r2 = r8.getQaStruct()
            if (r2 == 0) goto L_0x00f7
            long r2 = r2.getUserId()
            java.lang.Long r9 = java.lang.Long.valueOf(r2)
        L_0x00f7:
            java.lang.String r2 = "question_user_id"
            r14.LIZ(r2, r9)
            if (r15 == 0) goto L_0x010e
            java.lang.String r3 = "answer_btn"
        L_0x0100:
            java.lang.String r2 = "sticker_design"
            r14.LIZ(r2, r3)
            java.util.Map r3 = r14.LIZ
            java.lang.String r2 = "question_sticker_show"
            X.2nK.LIZ(r2, r3)
            goto L_0x006b
        L_0x010e:
            java.lang.String r3 = "question_only"
            goto L_0x0100
        L_0x0111:
            r3 = r9
            goto L_0x00e4
        L_0x0113:
            r2 = 0
            goto L_0x00d3
        L_0x0115:
            r2 = 0
            goto L_0x00c8
        L_0x0117:
            r2 = 0
            goto L_0x00bd
        L_0x0119:
            org.json.JSONObject r3 = new org.json.JSONObject
            r3.<init>(r2)
            java.lang.String r2 = "answer_btn_height"
            double r2 = r3.optDouble(r2)
            float r14 = (float) r2
            r2 = 0
            int r2 = (r14 > r2 ? 1 : (r14 == r2 ? 0 : -1))
            if (r2 <= 0) goto L_0x00af
            r15 = 1
            goto L_0x00b0
        L_0x012c:
            com.ss.android.ugc.aweme.shortvideo.sticker.infoSticker.interact.consume.widget.InteractStickerViewModel r2 = r7.LJIIIZ
            if (r2 == 0) goto L_0x013c
            com.ss.android.ugc.aweme.shortvideo.sticker.infoSticker.interact.consume.widget.InteractStickerViewModel r2 = r7.LJIIIZ
            if (r2 == 0) goto L_0x013c
            java.lang.Object r13 = r2.LIZ(r3)
            X.Cma r13 = (X.C0156Cma) r13
            goto L_0x00a3
        L_0x013c:
            r13 = 0
            goto L_0x00a3
        L_0x013f:
            com.ss.android.ugc.aweme.arch.widgets.base.DataCenter r2 = r7.LIZIZ
            if (r2 == 0) goto L_0x0213
            com.ss.android.ugc.aweme.arch.widgets.base.DataCenter r2 = r7.LIZIZ
            if (r2 == 0) goto L_0x0223
            java.lang.Object r3 = r2.LIZ((java.lang.String) r3)
            X.Cma r3 = (X.C0156Cma) r3
        L_0x014d:
            com.ss.android.ugc.aweme.IAccountUserService r2 = X.46i.LJFF()
            kotlin.h.b.n.LIZIZ(r2, r9)
            java.lang.String r13 = r2.getCurUserId()
            com.ss.android.ugc.aweme.feed.model.Aweme r2 = r7.LIZ
            if (r2 == 0) goto L_0x0210
            java.lang.String r2 = r2.getAuthorUid()
        L_0x0160:
            boolean r2 = android.text.TextUtils.equals(r13, r2)
            if (r2 == 0) goto L_0x0186
            long r15 = java.lang.System.currentTimeMillis()
            com.ss.android.ugc.aweme.sticker.data.CountDownStickerStruct r2 = r8.getCountDownStickerStruct()
            if (r2 == 0) goto L_0x020c
            long r13 = r2.getMillSecond()
        L_0x0174:
            int r2 = (r15 > r13 ? 1 : (r15 == r13 ? 0 : -1))
            if (r2 <= 0) goto L_0x0186
            X.3af r13 = new X.3af
            r13.<init>(r4)
            r2 = 2131823275(0x7f110aab, float:1.9279345E38)
            r13.LJ(r2)
            X.3af.LIZ(r13)
        L_0x0186:
            X.2UX r13 = new X.2UX
            r13.<init>()
            if (r3 == 0) goto L_0x020a
            X.Cgl r2 = r3.LJIIZILJ
            if (r2 == 0) goto L_0x020a
            java.lang.String r2 = r2.LIZJ
        L_0x0193:
            r13.LIZ(r11, r2)
            if (r3 == 0) goto L_0x0208
            X.Cgl r2 = r3.LJIIZILJ
            if (r2 == 0) goto L_0x0208
            java.lang.String r2 = r2.LIZIZ
        L_0x019e:
            r13.LIZ(r10, r2)
            if (r3 == 0) goto L_0x0206
            X.Cgl r2 = r3.LJIIZILJ
            if (r2 == 0) goto L_0x0206
            java.lang.String r2 = r2.LIZ
        L_0x01a9:
            r13.LIZ(r12, r2)
            com.ss.android.ugc.aweme.sticker.data.CountDownStickerStruct r8 = r8.getCountDownStickerStruct()
            if (r8 == 0) goto L_0x0203
            long r10 = r8.getMillSecond()
            long r2 = java.lang.System.currentTimeMillis()
            long r10 = r10 - r2
            int r2 = (r10 > r0 ? 1 : (r10 == r0 ? 0 : -1))
            if (r2 <= 0) goto L_0x0203
            if (r8 == 0) goto L_0x0200
            long r2 = r8.getMillSecond()
            long r10 = java.lang.System.currentTimeMillis()
            long r2 = r2 - r10
        L_0x01ca:
            r10 = 1000(0x3e8, double:4.94E-321)
            long r2 = r2 / r10
        L_0x01cd:
            java.lang.String r8 = "countdown_time"
            r13.LIZ(r8, r2)
            com.ss.android.ugc.aweme.IAccountUserService r2 = X.46i.LJFF()
            kotlin.h.b.n.LIZIZ(r2, r9)
            java.lang.String r3 = r2.getCurUserId()
            com.ss.android.ugc.aweme.feed.model.Aweme r2 = r7.LIZ
            if (r2 == 0) goto L_0x01fe
            java.lang.String r2 = r2.getAuthorUid()
        L_0x01e5:
            boolean r3 = android.text.TextUtils.equals(r3, r2)
            java.lang.String r2 = "is_author"
            r13.LIZ(r2, r3)
            java.lang.String r3 = r7.LJIIL
            java.lang.String r2 = "enter_method"
            r13.LIZ(r2, r3)
            java.util.Map r3 = r13.LIZ
            java.lang.String r2 = "livesdk_cd_sticker_show"
            X.2nK.LIZ(r2, r3)
            goto L_0x006b
        L_0x01fe:
            r2 = 0
            goto L_0x01e5
        L_0x0200:
            r2 = 0
            goto L_0x01ca
        L_0x0203:
            r2 = -1
            goto L_0x01cd
        L_0x0206:
            r2 = 0
            goto L_0x01a9
        L_0x0208:
            r2 = 0
            goto L_0x019e
        L_0x020a:
            r2 = 0
            goto L_0x0193
        L_0x020c:
            r13 = 0
            goto L_0x0174
        L_0x0210:
            r2 = 0
            goto L_0x0160
        L_0x0213:
            com.ss.android.ugc.aweme.shortvideo.sticker.infoSticker.interact.consume.widget.InteractStickerViewModel r2 = r7.LJIIIZ
            if (r2 == 0) goto L_0x0223
            com.ss.android.ugc.aweme.shortvideo.sticker.infoSticker.interact.consume.widget.InteractStickerViewModel r2 = r7.LJIIIZ
            if (r2 == 0) goto L_0x0223
            java.lang.Object r3 = r2.LIZ(r3)
            X.Cma r3 = (X.C0156Cma) r3
            goto L_0x014d
        L_0x0223:
            r3 = 0
            goto L_0x014d
        L_0x0226:
            com.ss.android.ugc.aweme.arch.widgets.base.DataCenter r2 = r7.LIZIZ
            if (r2 == 0) goto L_0x02a8
            com.ss.android.ugc.aweme.arch.widgets.base.DataCenter r2 = r7.LIZIZ
            if (r2 == 0) goto L_0x02b8
            java.lang.Object r3 = r2.LIZ((java.lang.String) r3)
            X.Cma r3 = (X.C0156Cma) r3
        L_0x0234:
            X.2UX r8 = new X.2UX
            r8.<init>()
            if (r3 == 0) goto L_0x02a6
            X.Cgl r2 = r3.LJIIZILJ
            if (r2 == 0) goto L_0x02a6
            java.lang.String r2 = r2.LIZ
        L_0x0241:
            r8.LIZ(r12, r2)
            if (r3 == 0) goto L_0x02a4
            X.Cgl r2 = r3.LJIIZILJ
            if (r2 == 0) goto L_0x02a4
            java.lang.String r2 = r2.LIZJ
        L_0x024c:
            r8.LIZ(r11, r2)
            if (r3 == 0) goto L_0x02a2
            X.Cgl r2 = r3.LJIIZILJ
            if (r2 == 0) goto L_0x02a2
            java.lang.String r11 = r2.LIZLLL
        L_0x0257:
            java.lang.String r2 = "log_pb"
            r8.LIZ(r2, r11)
            if (r3 == 0) goto L_0x02a0
            X.Cgl r2 = r3.LJIIZILJ
            if (r2 == 0) goto L_0x02a0
            java.lang.String r2 = r2.LIZIZ
        L_0x0264:
            r8.LIZ(r10, r2)
            if (r3 == 0) goto L_0x029e
            com.ss.android.ugc.aweme.feed.model.VideoReplyStruct r2 = r3.LJIJ
            if (r2 == 0) goto L_0x0275
            long r10 = r2.getCommentId()
            int r2 = (r10 > r0 ? 1 : (r10 == r0 ? 0 : -1))
            if (r2 == 0) goto L_0x0285
        L_0x0275:
            com.ss.android.ugc.aweme.feed.model.VideoReplyStruct r2 = r3.LJIJ
            if (r2 == 0) goto L_0x029e
            long r2 = r2.getCommentId()
            java.lang.Long r2 = java.lang.Long.valueOf(r2)
        L_0x0281:
            java.lang.String r9 = java.lang.String.valueOf(r2)
        L_0x0285:
            java.lang.String r2 = "reply_comment_id"
            r8.LIZ(r2, r9)
            com.ss.android.ugc.aweme.feed.model.Aweme r2 = r7.LIZ
            java.lang.String r3 = r7.LIZIZ((com.ss.android.ugc.aweme.feed.model.Aweme) r2)
            java.lang.String r2 = "reply_user_id"
            r8.LIZ(r2, r3)
            java.util.Map r3 = r8.LIZ
            java.lang.String r2 = "comment_sticker_show"
            X.2nK.LIZ(r2, r3)
            goto L_0x006b
        L_0x029e:
            r2 = 0
            goto L_0x0281
        L_0x02a0:
            r2 = 0
            goto L_0x0264
        L_0x02a2:
            r11 = 0
            goto L_0x0257
        L_0x02a4:
            r2 = 0
            goto L_0x024c
        L_0x02a6:
            r2 = 0
            goto L_0x0241
        L_0x02a8:
            com.ss.android.ugc.aweme.shortvideo.sticker.infoSticker.interact.consume.widget.InteractStickerViewModel r2 = r7.LJIIIZ
            if (r2 == 0) goto L_0x02b8
            com.ss.android.ugc.aweme.shortvideo.sticker.infoSticker.interact.consume.widget.InteractStickerViewModel r2 = r7.LJIIIZ
            if (r2 == 0) goto L_0x02b8
            java.lang.Object r3 = r2.LIZ(r3)
            X.Cma r3 = (X.C0156Cma) r3
            goto L_0x0234
        L_0x02b8:
            r3 = 0
            goto L_0x0234
        L_0x02bb:
            com.ss.android.ugc.aweme.feed.model.Aweme r2 = r7.LIZ
            if (r2 == 0) goto L_0x0331
            boolean r2 = r2.isAd()
            java.lang.Boolean r2 = java.lang.Boolean.valueOf(r2)
            if (r2 != 0) goto L_0x02cc
        L_0x02c9:
            kotlin.h.b.n.LIZIZ()
        L_0x02cc:
            boolean r2 = r2.booleanValue()
            if (r2 == 0) goto L_0x006b
            com.ss.android.ugc.aweme.feed.model.Aweme r2 = r7.LIZ
            if (r2 == 0) goto L_0x032f
            com.ss.android.ugc.aweme.feed.model.AwemeRawAd r2 = r2.getAwemeRawAd()
            if (r2 == 0) goto L_0x032f
            java.lang.String r8 = r2.getLogExtra()
        L_0x02e0:
            com.ss.android.ugc.aweme.feed.model.Aweme r2 = r7.LIZ
            if (r2 == 0) goto L_0x032d
            com.ss.android.ugc.aweme.feed.model.AwemeRawAd r2 = r2.getAwemeRawAd()
            if (r2 == 0) goto L_0x032d
            java.lang.String r12 = r2.getPageFrom()
        L_0x02ee:
            com.ss.android.ugc.aweme.feed.model.Aweme r2 = r7.LIZ
            if (r2 == 0) goto L_0x032b
            com.ss.android.ugc.aweme.feed.model.AwemeRawAd r2 = r2.getAwemeRawAd()
            if (r2 != 0) goto L_0x02fb
        L_0x02f8:
            kotlin.h.b.n.LIZIZ()
        L_0x02fb:
            kotlin.h.b.n.LIZIZ(r2, r9)
            X.M12.LIZ(r2)
            java.lang.Long r2 = r2.getCreativeId()
            if (r2 == 0) goto L_0x0311
            long r2 = r2.longValue()
            java.lang.String r3 = java.lang.String.valueOf(r2)
            if (r3 != 0) goto L_0x0313
        L_0x0311:
            java.lang.String r3 = "0"
        L_0x0313:
            com.ss.android.ugc.aweme.feed.model.Aweme r2 = r7.LIZ
            if (r2 != 0) goto L_0x031a
            kotlin.h.b.n.LIZIZ()
        L_0x031a:
            long r14 = X.C1284DTk.LIZ(r2)
            X.M12.LIZ(r6, r3)
            if (r8 == 0) goto L_0x006b
            int r2 = r8.length()
            if (r2 != 0) goto L_0x0333
            goto L_0x006b
        L_0x032b:
            r2 = 0
            goto L_0x02f8
        L_0x032d:
            r12 = 0
            goto L_0x02ee
        L_0x032f:
            r8 = 0
            goto L_0x02e0
        L_0x0331:
            r2 = 0
            goto L_0x02c9
        L_0x0333:
            org.json.JSONObject r11 = X.C1284DTk.LIZ((android.content.Context) r6, (java.lang.String) r8)
            java.lang.String r9 = "draw_ad"
            java.lang.String r10 = "poll_sticker_show"
            r8 = r6
            r13 = r3
            X.C1284DTk.LIZ(r8, r9, r10, r11, r12, r13, r14)
            goto L_0x006b
        L_0x0342:
            java.util.ArrayList r3 = new java.util.ArrayList
            com.ss.android.ugc.aweme.feed.model.Aweme r2 = r7.LIZ
            if (r2 != 0) goto L_0x034b
            kotlin.h.b.n.LIZIZ()
        L_0x034b:
            java.util.List r2 = r2.getInteractStickerStructs()
            r3.<init>(r2)
            goto L_0x005e
        L_0x0354:
            r18.LJJZZI()
            r5.LJLLJ = r0
            long r0 = java.lang.System.currentTimeMillis()
            r5.LJLLL = r0
            return
        */
        throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.feed.adapter.VideoViewCell.onRenderReady(X.7TD):void");
    }

    public final /* synthetic */ void LIZIZ(4aP r23) {
        7hc r21;
        boolean z;
        int i;
        View view;
        C0312Csa csa;
        VideoPlaySearchViewModel videoPlaySearchViewModel;
        VideoViewCell videoViewCell = this;
        MethodCollector.i(14233);
        2HX.LIZ.LIZ("tryplay_videoviewcell_init", false);
        if (!4ZN.LIZIZ.LIZ() || videoViewCell.aO_() != null) {
            M12.LIZ(videoViewCell);
            D1G LIZ = KEM.LIZ.LIZ(VideoEventDispatchViewModel.class);
            B7R b7r = B7R.INSTANCE;
            if (CuS.LJIIIIZZ) {
                r21 = 7hc.SYNCHRONIZED;
            } else {
                r21 = 7hc.NONE;
            }
            videoViewCell.LLIFFJFJJ = (VideoEventDispatchViewModel) new CsT(LIZ, C0326Cso.LIZ(videoViewCell, LIZ.LIZIZ()), C0326Cso.LIZ(false), AoK.LIZ(videoViewCell, false), videoViewCell, A7H.LIZ, b7r, videoViewCell.aS_(), r21).getValue();
            4aP r1 = r23;
            if (!(r1.LIZJ == null || r1.LIZJ.getActivity() == null)) {
                Fragment fragment = r1.LIZJ;
                M12.LIZ(fragment);
                if (fragment.getActivity() == null) {
                    videoPlaySearchViewModel = null;
                } else {
                    C0334Csw csw = C0334Csw.LIZ;
                    D1G LIZ2 = KEM.LIZ.LIZ(VideoPlaySearchViewModel.class);
                    Ls2 aja = new Aja(LIZ2);
                    AjY ajY = AjY.INSTANCE;
                    if (n.LIZ(csw, C0334Csw.LIZ)) {
                        csa = new C0312Csa(LIZ2, aja, C0330Css.LIZ, AoK.LIZ(fragment, true), AoK.LIZ(fragment, true), A7H.LIZ, ajY, AoK.LIZ(fragment, true), AoK.LIZIZ(fragment, true));
                    } else if (csw != null && !n.LIZ(csw, C0336Csy.LIZ)) {
                        IllegalArgumentException illegalArgumentException = new IllegalArgumentException("Do not support this scope here.");
                        MethodCollector.o(14233);
                        throw illegalArgumentException;
                    } else {
                        csa = new C0312Csa(LIZ2, aja, C0330Css.LIZ, AoK.LIZ(fragment, false), AoK.LIZ(fragment, false), A7H.LIZ, ajY, AoK.LIZ(fragment, false), AoK.LIZIZ(fragment, false));
                    }
                    videoPlaySearchViewModel = (VideoPlaySearchViewModel) csa.getValue();
                }
                videoViewCell.LLI = videoPlaySearchViewModel;
            }
            View view2 = r1.LIZ;
            videoViewCell.LJJLIIIJLJLI = view2.getContext();
            2YM<C5233Etp> r9 = r1.LIZIZ;
            View.OnTouchListener onTouchListener = r1.LIZLLL;
            Fragment fragment2 = r1.LIZJ;
            BaseFeedPageParams baseFeedPageParams = videoViewCell.LJLJJLL;
            if (TextUtils.equals("from_publish_add_video", baseFeedPageParams.param.getFrom())) {
                videoViewCell.LJIIIIZZ = true;
            }
            C0017Cgr cgr = r1.LJFF;
            3Fs r10 = r1.LJI;
            View.OnTouchListener onTouchListener2 = r1.LJII;
            if (onTouchListener2 != null) {
                videoViewCell.LJLL = onTouchListener2;
            } else {
                videoViewCell.LJLL = new 2mF();
            }
            3EY r3 = r1.LJIIIIZZ;
            if (r3 == null) {
                r3 = new 2Gq(baseFeedPageParams, videoViewCell.LJJLIIIJLJLI);
            }
            videoViewCell.LJLLI = r3;
            videoViewCell.LJLJJLL = baseFeedPageParams;
            videoViewCell.LLIIJI = baseFeedPageParams.awemeFromPage;
            videoViewCell.LJLJJI = cgr;
            if (r10 == null) {
                3Fs r4 = new 3Fs();
                videoViewCell.LJJLJ = r4;
                r4.LIZ(videoViewCell.LJJLIIIJLJLI);
            }
            try {
                videoViewCell.LJIJI = view2.findViewById(2131363809);
                videoViewCell.LLIIIJ = (LinearLayout) view2.findViewById(2131371408);
                videoViewCell.LJIJJLI = (ViewGroup) view2.findViewById(2131372838);
                videoViewCell.LJIL = (FrameLayout) view2.findViewById(2131362795);
                videoViewCell.LJJ = view2.findViewById(2131365406);
                videoViewCell.LJJI = view2.findViewById(2131365408);
                videoViewCell.LJJIFFI = view2.findViewById(2131365409);
                videoViewCell.LJJII = view2.findViewById(2131362817);
                if (!7ku.LJJIII.LJJ()) {
                    videoViewCell.LJJIIJ = view2.findViewById(2131370743);
                }
                if (!7ku.LJJIII.LJJI()) {
                    videoViewCell.LJJIIJZLJL = view2.findViewById(2131368495);
                    videoViewCell.LJJIIZI = view2.findViewById(2131372819);
                    videoViewCell.LJJLIIIJ = view2.findViewById(2131363923);
                    videoViewCell.LJJIII = view2.findViewById(2131372271);
                    videoViewCell.LJJJLL = (TextView) view2.findViewById(2131372528);
                    videoViewCell.LJJJJZ = (RelativeLayout) view2.findViewById(2131362882);
                }
                videoViewCell.LJJIIZ = view2.findViewById(2131372848);
                videoViewCell.LJJIJ = (ViewStub) view2.findViewById(2131365415);
                videoViewCell.LJJIJIIJI = (ViewStub) view2.findViewById(2131369410);
                videoViewCell.LJJIJIIJIL = (ViewStub) view2.findViewById(2131365147);
                videoViewCell.LJJIJIL = (ImageView) view2.findViewById(2131368571);
                videoViewCell.LJJIJL = (ViewStub) view2.findViewById(2131364663);
                videoViewCell.LJJIL = (LinearLayout) view2.findViewById(2131369593);
                videoViewCell.LJJIZ = (ViewGroup) view2.findViewById(2131362561);
                videoViewCell.LJJJ = (ViewGroup) view2.findViewById(2131362560);
                videoViewCell.LJJJJ = (FrameLayout) view2.findViewById(2131372953);
                videoViewCell.LJJJJJL = (FrameLayout) view2.findViewById(2131368984);
                videoViewCell.LJJJJL = (FrameLayout) view2.findViewById(2131363878);
                videoViewCell.LJJJJLL = (RelativeLayout) view2.findViewById(2131371461);
                videoViewCell.LJJJJZI = (ViewGroup) view2.findViewById(2131372867);
                videoViewCell.LJJJLIIL = (ViewGroup) view2.findViewById(2131364279);
                videoViewCell.LJJJLZIJ = view2.findViewById(2131362534);
                videoViewCell.LJJJZ = (ImageView) view2.findViewById(2131366422);
                videoViewCell.LJJL = view2.findViewById(2131372768);
                videoViewCell.LJJLI = view2.findViewById(2131366799);
                videoViewCell.LJJLIIIIJ = (FrameLayout) view2.findViewById(2131366095);
                videoViewCell.LJJLIIIJILLIZJL = (FrameLayout) view2.findViewById(2131363579);
                if (!7ku.LJJIII.LJJ()) {
                    videoViewCell.LJJLIIIJJIZ = (LinearLayout) view2.findViewById(2131369105);
                }
                videoViewCell.LLIIII = (FrameLayout) view2.findViewById(2131372756);
                View findViewById = view2.findViewById(2131371242);
                if (findViewById != null) {
                    findViewById.setOnClickListener(new C0023Cgx(videoViewCell));
                }
            } catch (IllegalStateException unused) {
                String name = videoViewCell.getClass().getName();
                StringBuilder sb = new StringBuilder();
                sb.append(name + "type=" + view2.getClass().getName() + "\n");
                sb.append(name + "id=" + view2.getId() + "\n");
                StringBuilder sb2 = sb;
                sb2.append(name + "childCount=" + ((ViewGroup) view2).getChildCount());
                sb2.append(name + "isX2COpen=" + C4121Ebt.LIZIZ);
                2kf.LIZIZ(3, (String) null, sb2.toString());
                2aZ r42 = new 2aZ();
                r42.LIZ("x2c_error", sb2.toString());
                JSONObject LIZ3 = r42.LIZ();
                if (LIZ3 == null) {
                    LIZ3 = new JSONObject();
                }
                try {
                    if (!TextUtils.isEmpty("")) {
                        LIZ3.put("service", "");
                    }
                } catch (JSONException e) {
                    0HH.LIZ(e);
                }
                9LK.LIZ("x2c_error", LIZ3);
            }
            videoViewCell.LJZI = new AP2(C0179Cmx.LIZIZ(fragment2).LIZ(BottomToastVM.class));
            T0P t0p = videoViewCell.LJJJI;
            if (t0p != null) {
                t0p.setListener(videoViewCell.LJLLI);
            }
            if (!46i.LJFF().isLogin() || !86a.LIZ(9EH.LJIJI, "lark_inhouse")) {
                z = true;
            } else {
                z = false;
            }
            videoViewCell.LIZLLL = z;
            if (videoViewCell.LJIJ == null) {
                videoViewCell.LJIJ = videoViewCell.LIZ(r1);
            }
            int LIZIZ = CgM.LIZIZ();
            if (LIZIZ == 0) {
                videoViewCell.LJJ.setBackgroundResource(2131231850);
                videoViewCell.LJJ.getLayoutParams().height = (int) HeD.LIZIZ(videoViewCell.LJJLIIIJLJLI, 356.0f);
            } else if (LIZIZ != 1) {
                float f = 0.18f;
                if (LIZIZ == 2) {
                    view = videoViewCell.LJJ;
                } else if (LIZIZ == 3) {
                    view = videoViewCell.LJJ;
                    BottomGradualOptimizeConfig LIZ4 = CgM.LIZ();
                    if (LIZ4 != null) {
                        float opacity = LIZ4.getOpacity();
                        if (opacity >= 0.18f && opacity <= 0.24f) {
                            f = LIZ4.getOpacity();
                        }
                    }
                }
                view.setBackgroundDrawable(C3737EPt.LIZ.LIZ(((int) Math.ceil((double) (f * 255.0f))) << 24));
            } else {
                videoViewCell.LJJ.setBackgroundResource(2131231850);
            }
            if (videoViewCell.LJJI != null && AKm.LIZLLL()) {
                videoViewCell.LJJI.setOnTouchListener(new C0012Cgm(videoViewCell, new GestureDetector(videoViewCell.LJJLIIIJLJLI, new Ch6(videoViewCell.LJLJJI, new C0019Cgt(videoViewCell), new C0016Cgq(videoViewCell)))));
            }
            videoViewCell.LJJIFFI.setBackgroundResource(2131231851);
            videoViewCell.LJJIFFI.getLayoutParams().height = (int) HeD.LIZIZ(videoViewCell.LJJLIIIJLJLI, 136.0f);
            videoViewCell.LJIILJJIL = fragment2;
            if (((Boolean) SharePrefCache.inst().getShowPlayerInfoUI().LIZLLL()).booleanValue()) {
                if (videoViewCell.LJIJJ == null) {
                    FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams((int) HeD.LIZIZ(videoViewCell.LJJLIIIJLJLI, 300.0f), (int) HeD.LIZIZ(videoViewCell.LJJLIIIJLJLI, 500.0f));
                    layoutParams.topMargin = (int) HeD.LIZIZ(videoViewCell.LJJLIIIJLJLI, 80.0f);
                    videoViewCell.LJIJJ = new FrameLayout(videoViewCell.LJJLIIIJLJLI);
                    int LIZIZ2 = (int) HeD.LIZIZ(videoViewCell.LJJLIIIJLJLI, 8.0f);
                    videoViewCell.LJIJJ.setPadding(LIZIZ2, LIZIZ2, LIZIZ2, LIZIZ2);
                    videoViewCell.LJJJJ.addView(videoViewCell.LJIJJ, layoutParams);
                }
                videoViewCell.LJIIJ = new Sts(videoViewCell.LJJLIIIJLJLI, videoViewCell.LJIJJ);
            }
            videoViewCell.LJJLIIIJLLLLLLLZ = r9;
            if (TextUtils.equals("upload", videoViewCell.LJLIIIL())) {
                videoViewCell.LJLJJLL.setEventType((String) null);
            }
            videoViewCell.LJJJI.setTapListener(onTouchListener);
            videoViewCell.LJJIJIIJIL();
            videoViewCell.LLIFFJFJJ.LIZ = new CgX(videoViewCell);
            videoViewCell.LLIFFJFJJ.LIZIZ = new BDm(videoViewCell);
            if (CsR.LIZIZ.get(videoViewCell.LJJLIIIJLJLI) == null) {
                CsR.LIZIZ.put(videoViewCell.LJJLIIIJLJLI, new LnL());
            }
            ((LnL) CsR.LIZIZ.get(videoViewCell.LJJLIIIJLJLI)).LIZ(videoViewCell);
            videoViewCell.LJJIIZ.setEventType(videoViewCell.LJLIIIL());
            videoViewCell.LJJIIZ.setFeedFromPage(videoViewCell.LLIIJI);
            videoViewCell.LJJIIZ.setFromPostPage(videoViewCell.LJLJJLL.isFromPostList);
            if (fragment2 == null || fragment2.getActivity() == null) {
                MethodCollector.o(14233);
                return;
            }
            ScrollSwitchStateManager LIZ5 = ScrollSwitchStateManager.LJIILL.LIZ(fragment2.getActivity());
            videoViewCell.LJZ = LIZ5;
            LIZ5.LJII(fragment2, new C0021Cgv(videoViewCell));
            2HX.LIZ.LIZIZ("tryplay_videoviewcell_init", false);
            if (!2mK.LIZ) {
                i = 14233;
            } else if (2mK.LIZIZ == 0) {
                2HX.LIZ.LIZIZ("feed_ui_duration_first_videoviewcell_init", false);
                MethodCollector.o(14233);
                return;
            } else {
                i = 14233;
                if (2mK.LIZIZ == 1) {
                    2HX.LIZ.LIZIZ("feed_ui_duration_second_videoviewcell_init", false);
                }
            }
            MethodCollector.o(i);
            return;
        }
        MethodCollector.o(14233);
    }

    /* JADX WARNING: Removed duplicated region for block: B:317:0x0698  */
    /* JADX WARNING: Removed duplicated region for block: B:318:0x069b  */
    /* JADX WARNING: Removed duplicated region for block: B:41:0x01d3  */
    /* JADX WARNING: Removed duplicated region for block: B:46:0x01f9  */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public void LJ(com.ss.android.ugc.aweme.feed.model.Aweme r25) {
        /*
            r24 = this;
            r3 = r24
            r3 = r3
            r14 = 18130(0x46d2, float:2.5406E-41)
            com.bytedance.frameworks.apm.trace.MethodCollector.i(r14)
            r7 = r25
            r3.LJIIIIZZ((com.ss.android.ugc.aweme.feed.model.Aweme) r7)
            X.Cqt r2 = r3.LJLIIL
            X.M12.LIZ(r7)
            com.ss.android.ugc.feed.platform.priority.PriorityViewModel r0 = r2.LIZIZ()
            r0.LJI()
            X.1Bn r1 = r0.LJFF()
            r5 = 0
            java.lang.Boolean r0 = java.lang.Boolean.valueOf(r5)
            X.4VN.LIZ(r1, r0)
            X.Chs r6 = r2.LIZLLL()
            r4 = 0
            if (r7 != 0) goto L_0x06d1
            r6.LIZLLL = r4
        L_0x002e:
            X.7Qw r0 = r3.LJIIJ
            if (r0 == 0) goto L_0x0035
            r0.LIZ()
        L_0x0035:
            X.3Fs r0 = r3.LJJLJ
            r7 = -1
            r0.LJ = r7
            r0.LIZLLL = r7
            r3.LJLLLLLL = r5
            r3.LJLZ = r5
            r3.LJII = r5
            r2 = 1
            r3.LLIIJLIL = r2
            r3.LJJLL = r5
            r3.LJJLJLI()
            r3.LJJZZI = r5
            r6 = 3
            java.lang.StringBuilder r8 = new java.lang.StringBuilder
            java.lang.String r0 = "VideoViewCell.bind() called with: aweme id = "
            r8.<init>(r0)
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r3.LJIIL
            java.lang.String r0 = r0.getAid()
            r8.append(r0)
            java.lang.String r0 = ", position = "
            r8.append(r0)
            int r0 = r3.LJIILIIL
            r8.append(r0)
            java.lang.String r0 = ", is ad = "
            r8.append(r0)
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r3.LJIIL
            boolean r0 = r0.isAd()
            r8.append(r0)
            java.lang.String r0 = ", adId = "
            r8.append(r0)
            com.ss.android.ugc.aweme.feed.model.Aweme r1 = r3.LJIIL
            com.ss.android.ugc.aweme.feed.model.AwemeRawAd r0 = r1.getAwemeRawAd()
            if (r0 == 0) goto L_0x06cd
            com.ss.android.ugc.aweme.feed.model.AwemeRawAd r0 = r1.getAwemeRawAd()
            java.lang.Long r0 = r0.getAdId()
            if (r0 == 0) goto L_0x06cd
            com.ss.android.ugc.aweme.feed.model.AwemeRawAd r0 = r1.getAwemeRawAd()
            java.lang.Long r0 = r0.getAdId()
            long r0 = r0.longValue()
        L_0x0098:
            r8.append(r0)
            java.lang.String r1 = r8.toString()
            java.lang.String r0 = "VideoViewCell"
            X.2kf.LIZJ(r6, r0, r1)
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r3.LJIIL
            java.lang.String r9 = r0.getAid()
            int r8 = r3.LJIILIIL
            X.2Ip r6 = X.2Ip.LIZ
            java.lang.StringBuilder r1 = new java.lang.StringBuilder
            java.lang.String r0 = "bindViewHolder "
            r1.<init>(r0)
            r1.append(r9)
            java.lang.String r0 = ", position "
            r1.append(r0)
            r1.append(r8)
            java.lang.String r0 = r1.toString()
            r6.LIZJ(r0)
            X.4ZN r0 = X.4ZN.LIZIZ
            boolean r0 = r0.LIZ()
            if (r0 == 0) goto L_0x00d4
            X.Chi r0 = r3.LJIJ
            r0.LIZ(r3)
        L_0x00d4:
            X.Chi r0 = r3.LJIJ
            boolean r0 = r0.LIZIZ()
            if (r0 != 0) goto L_0x00e1
            X.Chi r0 = r3.LJIJ
            r0.LIZ((X.Stx) r3)
        L_0x00e1:
            X.4RT r1 = r3.LJJLIL
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r3.LJIIL
            r1.LIZ(r0)
            com.ss.android.ugc.aweme.feed.model.BaseFeedPageParams r0 = r3.LJLJJLL
            java.lang.String r6 = ""
            if (r0 == 0) goto L_0x00f8
            java.lang.Boolean r0 = r0.isPlayListCleanMode()
            boolean r0 = r0.booleanValue()
            if (r0 != 0) goto L_0x01fc
        L_0x00f8:
            X.Cgl r12 = new X.Cgl
            r12.<init>()
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r3.LJIIL
            java.lang.String r0 = r0.getAuthorUid()
            r12.LIZIZ = r0
            java.lang.String r0 = r3.LJLIIIL()
            r12.LIZ = r0
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r3.LJIIL
            java.lang.String r0 = r0.getAid()
            r12.LIZJ = r0
            X.B8V r1 = X.9oY.LIZ
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r3.LJIIL
            java.lang.String r0 = r0.getRequestId()
            java.lang.String r0 = r1.LIZ(r0)
            r12.LIZLLL = r0
            X.7W7 r11 = X.7df.LJJJI()
            X.CmZ r1 = r3.LJJLJLI
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r3.LJIIL
            r1.LIZ((com.ss.android.ugc.aweme.feed.model.Aweme) r0)
            X.CmZ r1 = r3.LJJLJLI
            X.CgF r0 = new X.CgF
            r0.<init>(r3, r5)
            r1.LIZJ = r0
            X.CmZ r13 = r3.LJJLJLI
            X.3G6 r10 = new X.3G6
            android.content.Context r9 = r3.LJJLIIIJLJLI
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r3.LJIIL
            com.ss.android.ugc.aweme.feed.model.Video r8 = r0.getVideo()
            X.3Fs r1 = r3.LJJLJ
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r3.LJIIL
            com.ss.android.ugc.aweme.feed.model.OcrLocation r0 = r0.getOcrLocation()
            r10.<init>(r9, r8, r1, r0)
            r13.LIZLLL = r10
            X.CmZ r0 = r3.LJJLJLI
            r0.LJ = r12
            X.CmZ r0 = r3.LJJLJLI
            r0.LJFF = r11
            X.CmZ r1 = r3.LJJLJLI
            X.CgG r0 = new X.CgG
            r0.<init>(r3, r5)
            r1.LJII = r0
            X.CmZ r1 = r3.LJJLJLI
            X.CgH r0 = new X.CgH
            r0.<init>(r3, r5)
            r1.LJIILIIL = r0
            X.CmZ r8 = r3.LJJLJLI
            com.ss.android.ugc.aweme.feed.model.BaseFeedPageParams r0 = r3.LJLJJLL
            boolean r0 = r0.showVote
            if (r0 == 0) goto L_0x06ca
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r3.LJIIL
            java.lang.String r1 = r0.getAid()
            X.Cgr r0 = r3.LJLJJI
            java.lang.String r0 = r0.LJZ()
            boolean r0 = android.text.TextUtils.equals(r1, r0)
            if (r0 == 0) goto L_0x06ca
            r0 = 1
        L_0x0183:
            r8.LJIIJ = r0
            X.CmZ r0 = r3.LJJLJLI
            r0.LIZ()
            X.CmZ r1 = r3.LJJLJLI
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r3.LJIIL
            r1.LIZ((com.ss.android.ugc.aweme.feed.model.Aweme) r0)
            androidx.fragment.app.Fragment r0 = r3.LJIILJJIL
            X.1hK r0 = r0.getActivity()
            if (r0 == 0) goto L_0x06c7
            androidx.fragment.app.Fragment r0 = r3.LJIILJJIL
            X.1hK r0 = r0.getActivity()
            android.content.Intent r9 = r0.getIntent()
        L_0x01a3:
            java.lang.String r8 = "show_countdown"
            if (r9 == 0) goto L_0x06c3
            int r0 = r9.getIntExtra(r8, r7)
            if (r0 != r2) goto L_0x06c3
            java.lang.String r0 = "enter_from"
            java.lang.String r0 = LIZ((android.content.Intent) r9, (java.lang.String) r0)
            java.lang.String r1 = "push"
            boolean r0 = android.text.TextUtils.equals(r0, r1)
            if (r0 == 0) goto L_0x06ab
            X.CmZ r0 = r3.LJJLJLI
            X.Cgl r0 = r0.LJ
            if (r0 == 0) goto L_0x01c7
            X.CmZ r0 = r3.LJJLJLI
            X.Cgl r0 = r0.LJ
            r0.LIZ = r1
        L_0x01c7:
            java.lang.String r1 = "click_push_live_anchor"
        L_0x01c9:
            X.CmZ r9 = r3.LJJLJLI
            androidx.fragment.app.Fragment r0 = r3.LJIILJJIL
            X.1hK r0 = r0.getActivity()
            if (r0 != 0) goto L_0x069b
            r0 = 0
        L_0x01d4:
            r9.LJIIJJI = r0
            X.CmZ r0 = r3.LJJLJLI
            X.M12.LIZ(r1)
            r0.LJIIL = r1
            X.CmZ r7 = r3.LJJLJLI
            androidx.fragment.app.Fragment r0 = r3.LJIILJJIL
            X.1hK r0 = r0.getActivity()
            if (r0 == 0) goto L_0x0698
            androidx.fragment.app.Fragment r0 = r3.LJIILJJIL
            X.1hK r0 = r0.getActivity()
            android.content.Intent r1 = r0.getIntent()
            java.lang.String r0 = "show_vote"
            int r0 = r1.getIntExtra(r0, r5)
            if (r0 != r2) goto L_0x0698
            r0 = 1
        L_0x01fa:
            r7.LJIIJ = r0
        L_0x01fc:
            r3.LJJZ()
            r3.cq_()
            r3.LJIILIIL(r2)
            X.4RT r0 = r3.LJJLIL
            r0.LIZLLL()
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r3.LJIIL
            boolean r0 = X.LFp.LJJIII(r0)
            if (r0 == 0) goto L_0x021a
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r3.LJIIL
            boolean r0 = X.LFp.LJJJZ(r0)
            if (r0 == 0) goto L_0x027c
        L_0x021a:
            java.lang.String r1 = r3.LJLIIIL()
            java.lang.String r0 = "homepage_hot"
            boolean r0 = android.text.TextUtils.equals(r1, r0)
            if (r0 == 0) goto L_0x022e
            X.2oQ r0 = X.2oQ.LIZ()
            boolean r0 = r0.LIZ
            if (r0 != 0) goto L_0x027c
        L_0x022e:
            java.lang.String r0 = r3.LJLIIIL()
            boolean r0 = X.C0000Cga.LIZ((java.lang.String) r0)
            if (r0 == 0) goto L_0x0240
            X.2oQ r0 = X.2oQ.LIZ()
            boolean r0 = r0.LIZIZ
            if (r0 != 0) goto L_0x027c
        L_0x0240:
            java.lang.String r1 = r3.LJLIIIL()
            java.lang.String r0 = "homepage_friends"
            boolean r0 = android.text.TextUtils.equals(r1, r0)
            if (r0 == 0) goto L_0x0254
            X.2oQ r0 = X.2oQ.LIZ()
            boolean r0 = r0.LIZJ
            if (r0 != 0) goto L_0x027c
        L_0x0254:
            java.lang.String r1 = r3.LJLIIIL()
            java.lang.String r0 = "homepage_popular"
            boolean r0 = android.text.TextUtils.equals(r1, r0)
            if (r0 == 0) goto L_0x0268
            X.2oQ r0 = X.2oQ.LIZ()
            boolean r0 = r0.LIZLLL
            if (r0 != 0) goto L_0x027c
        L_0x0268:
            java.lang.String r1 = r3.LJLIIIL()
            java.lang.String r0 = "homepage_nearby"
            boolean r0 = android.text.TextUtils.equals(r1, r0)
            if (r0 == 0) goto L_0x0695
            X.2oQ r0 = X.2oQ.LIZ()
            boolean r0 = r0.LJ
            if (r0 == 0) goto L_0x0695
        L_0x027c:
            r0 = 1
        L_0x027d:
            r3.LIZIZ((boolean) r0)
            com.ss.android.ugc.aweme.userservice.api.IUserService r0 = com.ss.android.ugc.aweme.userservice.UserService.LIZLLL()
            X.2ce r7 = r0.LIZIZ()
            androidx.fragment.app.Fragment r1 = r3.LJIILJJIL
            X.0CM<com.ss.android.ugc.aweme.profile.model.FollowStatus> r0 = r3.LLILII
            r7.observe(r1, r0)
            X.Qus r15 = r3.LJJIIZI()
            android.view.ViewStub r11 = r3.LJJIJIIJIL
            android.content.Context r10 = r3.LJJLIIIJLJLI
            com.ss.android.ugc.aweme.feed.model.Aweme r9 = r3.LJIIL
            android.widget.RelativeLayout r8 = r3.LJIIZILJ
            android.view.ViewGroup r7 = r3.LJJJ
            android.widget.FrameLayout r1 = r3.LLIIII
            android.widget.FrameLayout r0 = r3.LJJLIIIIJ
            r23 = 0
            r16 = r11
            r17 = r10
            r18 = r9
            r19 = r8
            r20 = r7
            r21 = r1
            r22 = r0
            r15.LIZ(r16, r17, r18, r19, r20, r21, r22, r23)
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r3.LJIIL
            if (r0 == 0) goto L_0x0733
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r3.LJIIL
            r0.getAid()
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r3.LJIIL
            boolean r0 = r0.isReferralFakeAweme()
            if (r0 == 0) goto L_0x071a
            X.Cic r7 = r3.LJJIJIL()
            android.view.ViewStub r11 = r3.LJJIJIIJI
            android.content.Context r13 = r3.LJJLIIIJLJLI
            com.ss.android.ugc.aweme.feed.model.Aweme r12 = r3.LJIIL
            android.widget.RelativeLayout r10 = r3.LJIIZILJ
            android.view.ViewGroup r9 = r3.LJJJ
            android.widget.FrameLayout r8 = r3.LLIIII
            android.widget.FrameLayout r1 = r3.LJJLIIIIJ
            android.widget.LinearLayout r3 = r3.LJJIL
            X.M12.LIZ(r11)
            r7.LIZIZ()
            if (r13 == 0) goto L_0x0733
            com.ss.android.ugc.aweme.specact.api.ISpecActService r0 = com.ss.android.ugc.aweme.specact.SpecActServiceImpl.LJIJJ()
            X.ChW r0 = r0.LJIILLIIL()
            r7.LJIIZILJ = r0
            X.ChW r0 = r7.LJIIZILJ
            if (r0 == 0) goto L_0x0733
            r7.LJJ = r13
            r7.LJJI = r12
            r7.LJIJ = r10
            r7.LJIJI = r9
            r7.LJIJJ = r8
            r7.LJIJJLI = r1
            r7.LJIL = r3
            android.view.View r0 = r7.LIZ
            r8 = 700(0x2bc, float:9.81E-43)
            if (r0 != 0) goto L_0x068c
            android.view.View r0 = r11.inflate()
            r7.LIZ = r0
            android.view.View r1 = r7.LIZ
            if (r1 == 0) goto L_0x0689
            r0 = 2131372833(0x7f0a2b21, float:1.836574E38)
            android.view.View r0 = r1.findViewById(r0)
            android.widget.LinearLayout r0 = (android.widget.LinearLayout) r0
        L_0x0316:
            r7.LIZIZ = r0
            android.view.View r1 = r7.LIZ
            if (r1 == 0) goto L_0x0686
            r0 = 2131372834(0x7f0a2b22, float:1.8365742E38)
            android.view.View r0 = r1.findViewById(r0)
            X.Qeg r0 = (X.Qeg) r0
        L_0x0325:
            r7.LIZJ = r0
            android.view.View r1 = r7.LIZ
            if (r1 == 0) goto L_0x0683
            r0 = 2131372754(0x7f0a2ad2, float:1.836558E38)
            android.view.View r0 = r1.findViewById(r0)
            X.Qeg r0 = (X.Qeg) r0
        L_0x0334:
            r7.LIZLLL = r0
            android.view.View r1 = r7.LIZ
            if (r1 == 0) goto L_0x0680
            r0 = 2131372753(0x7f0a2ad1, float:1.8365578E38)
            android.view.View r0 = r1.findViewById(r0)
            android.widget.ImageView r0 = (android.widget.ImageView) r0
        L_0x0343:
            r7.LJ = r0
            android.view.View r1 = r7.LIZ
            if (r1 == 0) goto L_0x067d
            r0 = 2131368518(0x7f0a1a46, float:1.8356988E38)
            android.view.View r0 = r1.findViewById(r0)
            X.OD6 r0 = (X.OD6) r0
        L_0x0352:
            r7.LJFF = r0
            android.view.View r1 = r7.LIZ
            if (r1 == 0) goto L_0x067a
            r0 = 2131368519(0x7f0a1a47, float:1.835699E38)
            android.view.View r0 = r1.findViewById(r0)
            android.widget.LinearLayout r0 = (android.widget.LinearLayout) r0
        L_0x0361:
            r7.LJI = r0
            android.view.View r1 = r7.LIZ
            if (r1 == 0) goto L_0x0677
            r0 = 2131368514(0x7f0a1a42, float:1.835698E38)
            android.view.View r0 = r1.findViewById(r0)
            X.Qeg r0 = (X.Qeg) r0
        L_0x0370:
            r7.LJII = r0
            android.view.View r1 = r7.LIZ
            if (r1 == 0) goto L_0x0674
            r0 = 2131368513(0x7f0a1a41, float:1.8356978E38)
            android.view.View r0 = r1.findViewById(r0)
            X.Qeg r0 = (X.Qeg) r0
        L_0x037f:
            r7.LJIIIIZZ = r0
            android.view.View r1 = r7.LIZ
            if (r1 == 0) goto L_0x0671
            r0 = 2131368512(0x7f0a1a40, float:1.8356976E38)
            android.view.View r0 = r1.findViewById(r0)
            X.1Fq r0 = (X.1Fq) r0
        L_0x038e:
            r7.LJIIIZ = r0
            android.view.View r1 = r7.LIZ
            if (r1 == 0) goto L_0x066e
            r0 = 2131368509(0x7f0a1a3d, float:1.835697E38)
            android.view.View r0 = r1.findViewById(r0)
            android.widget.FrameLayout r0 = (android.widget.FrameLayout) r0
        L_0x039d:
            r7.LJIIJ = r0
            android.view.View r1 = r7.LIZ
            if (r1 == 0) goto L_0x066b
            r0 = 2131368510(0x7f0a1a3e, float:1.8356972E38)
            android.view.View r0 = r1.findViewById(r0)
            android.widget.ImageView r0 = (android.widget.ImageView) r0
        L_0x03ac:
            r7.LJIIJJI = r0
            android.view.View r1 = r7.LIZ
            if (r1 == 0) goto L_0x0668
            r0 = 2131368511(0x7f0a1a3f, float:1.8356974E38)
            android.view.View r0 = r1.findViewById(r0)
            X.Qeg r0 = (X.Qeg) r0
        L_0x03bb:
            r7.LJIIL = r0
            android.view.View r1 = r7.LIZ
            if (r1 == 0) goto L_0x0665
            r0 = 2131365591(0x7f0a0ed7, float:1.8351052E38)
            android.view.View r0 = r1.findViewById(r0)
            android.widget.LinearLayout r0 = (android.widget.LinearLayout) r0
        L_0x03ca:
            r7.LJIILJJIL = r0
            android.view.View r1 = r7.LIZ
            if (r1 == 0) goto L_0x0662
            r0 = 2131365589(0x7f0a0ed5, float:1.8351048E38)
            android.view.View r0 = r1.findViewById(r0)
            X.Qeg r0 = (X.Qeg) r0
        L_0x03d9:
            r7.LJIILIIL = r0
            android.view.View r1 = r7.LIZ
            if (r1 == 0) goto L_0x065f
            r0 = 2131371182(0x7f0a24ae, float:1.8362392E38)
            android.view.View r0 = r1.findViewById(r0)
            com.bytedance.lighten.loader.SmartImageView r0 = (com.bytedance.lighten.loader.SmartImageView) r0
        L_0x03e8:
            r7.LJIILL = r0
            X.3Fl r0 = X.2HV.LIZ
            boolean r0 = r0.LJIILLIIL
            if (r0 == 0) goto L_0x064b
            r1 = 0
        L_0x03f1:
            android.widget.LinearLayout r0 = r7.LJIILJJIL
            r7.LIZ(r0, r1)
            android.widget.LinearLayout r0 = r7.LIZIZ
            r7.LIZ(r0, r1)
            int r0 = r7.LIZLLL()
            if (r0 >= r8) goto L_0x0508
            android.widget.LinearLayout r0 = r7.LJI
            if (r0 == 0) goto L_0x0648
            android.view.ViewGroup$LayoutParams r3 = r0.getLayoutParams()
        L_0x0409:
            android.view.ViewGroup$MarginLayoutParams r3 = (android.view.ViewGroup.MarginLayoutParams) r3
            if (r3 == 0) goto L_0x0424
            r1 = 1118437376(0x42aa0000, float:85.0)
            android.content.res.Resources r0 = android.content.res.Resources.getSystem()
            kotlin.h.b.n.LIZIZ(r0, r6)
            android.util.DisplayMetrics r0 = r0.getDisplayMetrics()
            float r0 = android.util.TypedValue.applyDimension(r2, r1, r0)
            int r0 = X.LnI.LIZ(r0)
            r3.topMargin = r0
        L_0x0424:
            android.widget.LinearLayout r0 = r7.LJI
            if (r0 == 0) goto L_0x042b
            r0.setLayoutParams(r3)
        L_0x042b:
            X.Qeg r0 = r7.LJIIIIZZ
            if (r0 == 0) goto L_0x0645
            android.view.ViewGroup$LayoutParams r3 = r0.getLayoutParams()
        L_0x0433:
            android.view.ViewGroup$MarginLayoutParams r3 = (android.view.ViewGroup.MarginLayoutParams) r3
            if (r3 == 0) goto L_0x044e
            r1 = 1090519040(0x41000000, float:8.0)
            android.content.res.Resources r0 = android.content.res.Resources.getSystem()
            kotlin.h.b.n.LIZIZ(r0, r6)
            android.util.DisplayMetrics r0 = r0.getDisplayMetrics()
            float r0 = android.util.TypedValue.applyDimension(r2, r1, r0)
            int r0 = X.LnI.LIZ(r0)
            r3.topMargin = r0
        L_0x044e:
            X.Qeg r0 = r7.LJIIIIZZ
            if (r0 == 0) goto L_0x0455
            r0.setLayoutParams(r3)
        L_0x0455:
            X.1Fq r0 = r7.LJIIIZ
            if (r0 == 0) goto L_0x0642
            android.view.ViewGroup$LayoutParams r3 = r0.getLayoutParams()
        L_0x045d:
            android.view.ViewGroup$MarginLayoutParams r3 = (android.view.ViewGroup.MarginLayoutParams) r3
            if (r3 == 0) goto L_0x04a8
            r1 = 1134755840(0x43a30000, float:326.0)
            android.content.res.Resources r0 = android.content.res.Resources.getSystem()
            kotlin.h.b.n.LIZIZ(r0, r6)
            android.util.DisplayMetrics r0 = r0.getDisplayMetrics()
            float r0 = android.util.TypedValue.applyDimension(r2, r1, r0)
            int r0 = X.LnI.LIZ(r0)
            r3.width = r0
            r1 = 1133805568(0x43948000, float:297.0)
            android.content.res.Resources r0 = android.content.res.Resources.getSystem()
            kotlin.h.b.n.LIZIZ(r0, r6)
            android.util.DisplayMetrics r0 = r0.getDisplayMetrics()
            float r0 = android.util.TypedValue.applyDimension(r2, r1, r0)
            int r0 = X.LnI.LIZ(r0)
            r3.height = r0
            r1 = 1101529088(0x41a80000, float:21.0)
            android.content.res.Resources r0 = android.content.res.Resources.getSystem()
            kotlin.h.b.n.LIZIZ(r0, r6)
            android.util.DisplayMetrics r0 = r0.getDisplayMetrics()
            float r0 = android.util.TypedValue.applyDimension(r2, r1, r0)
            int r0 = X.LnI.LIZ(r0)
            int r0 = -r0
            r3.topMargin = r0
        L_0x04a8:
            X.1Fq r0 = r7.LJIIIZ
            if (r0 == 0) goto L_0x04af
            r0.setLayoutParams(r3)
        L_0x04af:
            android.widget.FrameLayout r0 = r7.LJIIJ
            if (r0 == 0) goto L_0x063f
            android.view.ViewGroup$LayoutParams r3 = r0.getLayoutParams()
        L_0x04b7:
            android.view.ViewGroup$MarginLayoutParams r3 = (android.view.ViewGroup.MarginLayoutParams) r3
            if (r3 == 0) goto L_0x0501
            r1 = 1104150528(0x41d00000, float:26.0)
            android.content.res.Resources r0 = android.content.res.Resources.getSystem()
            kotlin.h.b.n.LIZIZ(r0, r6)
            android.util.DisplayMetrics r0 = r0.getDisplayMetrics()
            float r0 = android.util.TypedValue.applyDimension(r2, r1, r0)
            int r0 = X.LnI.LIZ(r0)
            int r0 = -r0
            r3.topMargin = r0
            r1 = 1126170624(0x43200000, float:160.0)
            android.content.res.Resources r0 = android.content.res.Resources.getSystem()
            kotlin.h.b.n.LIZIZ(r0, r6)
            android.util.DisplayMetrics r0 = r0.getDisplayMetrics()
            float r0 = android.util.TypedValue.applyDimension(r2, r1, r0)
            int r0 = X.LnI.LIZ(r0)
            r3.width = r0
            r1 = 1111490560(0x42400000, float:48.0)
            android.content.res.Resources r0 = android.content.res.Resources.getSystem()
            kotlin.h.b.n.LIZIZ(r0, r6)
            android.util.DisplayMetrics r0 = r0.getDisplayMetrics()
            float r0 = android.util.TypedValue.applyDimension(r2, r1, r0)
            int r0 = X.LnI.LIZ(r0)
            r3.height = r0
        L_0x0501:
            android.widget.FrameLayout r0 = r7.LJIIJ
            if (r0 == 0) goto L_0x0508
            r0.setLayoutParams(r3)
        L_0x0508:
            X.ChW r3 = r7.LJIIZILJ
            if (r3 == 0) goto L_0x0716
            int r1 = r3.LJ
            r0 = 2
            if (r1 != r0) goto L_0x05a6
            X.Qeg r2 = r7.LIZJ
            X.2GV r0 = r3.LJFF
            if (r0 == 0) goto L_0x05a3
            X.2Jf r0 = r0.LIZJ
            if (r0 == 0) goto L_0x05a3
            X.2LI r1 = r0.LIZ
        L_0x051d:
            X.2GV r0 = r3.LJFF
            if (r0 == 0) goto L_0x05a1
            X.2Jf r0 = r0.LIZJ
            if (r0 == 0) goto L_0x05a1
            X.2LI r0 = r0.LIZIZ
        L_0x0527:
            r7.LIZ((X.Qeg) r2, (X.2LI) r1, (X.2LI) r0)
            X.Qeg r1 = r7.LIZLLL
            if (r1 == 0) goto L_0x0543
            X.2GV r0 = r3.LJFF
            if (r0 == 0) goto L_0x059f
            X.2Jf r0 = r0.LIZJ
            if (r0 == 0) goto L_0x059f
            X.Ch8 r0 = r0.LIZJ
            if (r0 == 0) goto L_0x059f
            X.FIA r0 = r0.LIZ
            if (r0 == 0) goto L_0x059f
            java.lang.String r0 = r0.LIZ
        L_0x0540:
            r1.setText(r0)
        L_0x0543:
            android.widget.ImageView r0 = r7.LJ
            if (r0 == 0) goto L_0x059d
            android.graphics.drawable.Drawable r1 = r0.getDrawable()
        L_0x054b:
            boolean r0 = r1 instanceof android.graphics.drawable.GradientDrawable
            if (r0 == 0) goto L_0x0566
            android.graphics.drawable.GradientDrawable r1 = (android.graphics.drawable.GradientDrawable) r1
            X.2GV r0 = r3.LJFF
            if (r0 == 0) goto L_0x055f
            X.2Jf r0 = r0.LIZJ
            if (r0 == 0) goto L_0x055f
            X.Ch8 r0 = r0.LIZJ
            if (r0 == 0) goto L_0x055f
            java.lang.String r4 = r0.LIZIZ
        L_0x055f:
            int r0 = r7.LIZ((java.lang.String) r4)
            r1.setColor(r0)
        L_0x0566:
            android.widget.ImageView r1 = r7.LJ
            if (r1 == 0) goto L_0x0572
            X.ChU r0 = new X.ChU
            r0.<init>(r7, r3)
            r1.setOnClickListener(r0)
        L_0x0572:
            X.Qeg r1 = r7.LJIILIIL
            if (r1 == 0) goto L_0x057b
            java.lang.String r0 = r3.LJIIJ
            r1.setText(r0)
        L_0x057b:
            android.view.View r0 = r7.LJIJ
            r1 = 8
            if (r0 == 0) goto L_0x0584
            r0.setVisibility(r1)
        L_0x0584:
            android.view.View r0 = r7.LJIJJ
            if (r0 == 0) goto L_0x058b
            r0.setVisibility(r1)
        L_0x058b:
            android.view.View r0 = r7.LJIJJLI
            if (r0 == 0) goto L_0x0592
            r0.setVisibility(r1)
        L_0x0592:
            android.view.View r0 = r7.LJIJI
            if (r0 == 0) goto L_0x0712
            r0.setVisibility(r1)
            com.bytedance.frameworks.apm.trace.MethodCollector.o(r14)
            return
        L_0x059d:
            r1 = r4
            goto L_0x054b
        L_0x059f:
            r0 = r4
            goto L_0x0540
        L_0x05a1:
            r0 = r4
            goto L_0x0527
        L_0x05a3:
            r1 = r4
            goto L_0x051d
        L_0x05a6:
            int r0 = r3.LJ
            if (r0 != r2) goto L_0x0572
            X.OD6 r0 = r7.LJFF
            if (r0 == 0) goto L_0x05b1
            r0.setVisibility(r5)
        L_0x05b1:
            X.OD6 r1 = r7.LJFF
            if (r1 == 0) goto L_0x05be
            X.2Rc r0 = r3.LJI
            if (r0 == 0) goto L_0x063c
            java.lang.String r0 = r0.LJ
        L_0x05bb:
            r1.setImageURI(r0)
        L_0x05be:
            X.Qeg r2 = r7.LJII
            X.2Rc r0 = r3.LJI
            if (r0 == 0) goto L_0x063a
            X.2LI r1 = r0.LIZ
        L_0x05c6:
            X.2Rc r0 = r3.LJI
            if (r0 == 0) goto L_0x0638
            X.2LI r0 = r0.LIZIZ
        L_0x05cc:
            r7.LIZ((X.Qeg) r2, (X.2LI) r1, (X.2LI) r0)
            X.Qeg r1 = r7.LJII
            if (r1 == 0) goto L_0x05de
            int r0 = r7.LIZLLL()
            if (r0 >= r8) goto L_0x0635
            r0 = 1103101952(0x41c00000, float:24.0)
        L_0x05db:
            r1.LIZ(r0)
        L_0x05de:
            X.Qeg r1 = r7.LJIIIIZZ
            X.2Rc r0 = r3.LJI
            if (r0 == 0) goto L_0x0633
            X.2LI r0 = r0.LIZJ
        L_0x05e6:
            r7.LIZ((X.Qeg) r1, (X.2LI) r0, (X.2LI) r4)
            android.widget.ImageView r0 = r7.LJ
            if (r0 == 0) goto L_0x0631
            android.graphics.drawable.Drawable r1 = r0.getDrawable()
        L_0x05f1:
            boolean r0 = r1 instanceof android.graphics.drawable.GradientDrawable
            if (r0 == 0) goto L_0x060c
            android.graphics.drawable.GradientDrawable r1 = (android.graphics.drawable.GradientDrawable) r1
            X.2GV r0 = r3.LJFF
            if (r0 == 0) goto L_0x062f
            X.2Jf r0 = r0.LIZJ
            if (r0 == 0) goto L_0x062f
            X.Ch8 r0 = r0.LIZJ
            if (r0 == 0) goto L_0x062f
            java.lang.String r0 = r0.LIZIZ
        L_0x0605:
            int r0 = r7.LIZ((java.lang.String) r0)
            r1.setColor(r0)
        L_0x060c:
            android.widget.ImageView r1 = r7.LJIIJJI
            if (r1 == 0) goto L_0x0618
            X.ChV r0 = new X.ChV
            r0.<init>(r7, r3)
            r1.setOnClickListener(r0)
        L_0x0618:
            X.Qeg r1 = r7.LJIIL
            if (r1 == 0) goto L_0x0572
            X.2Rc r0 = r3.LJI
            if (r0 == 0) goto L_0x062a
            X.Ch8 r0 = r0.LJFF
            if (r0 == 0) goto L_0x062a
            X.FIA r0 = r0.LIZ
            if (r0 == 0) goto L_0x062a
            java.lang.String r4 = r0.LIZ
        L_0x062a:
            r1.setText(r4)
            goto L_0x0572
        L_0x062f:
            r0 = r4
            goto L_0x0605
        L_0x0631:
            r1 = r4
            goto L_0x05f1
        L_0x0633:
            r0 = r4
            goto L_0x05e6
        L_0x0635:
            r0 = 1105199104(0x41e00000, float:28.0)
            goto L_0x05db
        L_0x0638:
            r0 = r4
            goto L_0x05cc
        L_0x063a:
            r1 = r4
            goto L_0x05c6
        L_0x063c:
            r0 = r4
            goto L_0x05bb
        L_0x063f:
            r3 = r4
            goto L_0x04b7
        L_0x0642:
            r3 = r4
            goto L_0x045d
        L_0x0645:
            r3 = r4
            goto L_0x0433
        L_0x0648:
            r3 = r4
            goto L_0x0409
        L_0x064b:
            android.content.Context r0 = r7.LJJ
            if (r0 != 0) goto L_0x0652
            kotlin.h.b.n.LIZIZ()
        L_0x0652:
            android.content.res.Resources r1 = r0.getResources()
            r0 = 2131165994(0x7f07032a, float:1.794622E38)
            int r1 = r1.getDimensionPixelSize(r0)
            goto L_0x03f1
        L_0x065f:
            r0 = r4
            goto L_0x03e8
        L_0x0662:
            r0 = r4
            goto L_0x03d9
        L_0x0665:
            r0 = r4
            goto L_0x03ca
        L_0x0668:
            r0 = r4
            goto L_0x03bb
        L_0x066b:
            r0 = r4
            goto L_0x03ac
        L_0x066e:
            r0 = r4
            goto L_0x039d
        L_0x0671:
            r0 = r4
            goto L_0x038e
        L_0x0674:
            r0 = r4
            goto L_0x037f
        L_0x0677:
            r0 = r4
            goto L_0x0370
        L_0x067a:
            r0 = r4
            goto L_0x0361
        L_0x067d:
            r0 = r4
            goto L_0x0352
        L_0x0680:
            r0 = r4
            goto L_0x0343
        L_0x0683:
            r0 = r4
            goto L_0x0334
        L_0x0686:
            r0 = r4
            goto L_0x0325
        L_0x0689:
            r0 = r4
            goto L_0x0316
        L_0x068c:
            android.view.View r0 = r7.LIZ
            if (r0 == 0) goto L_0x0508
            r0.setVisibility(r5)
            goto L_0x0508
        L_0x0695:
            r0 = 0
            goto L_0x027d
        L_0x0698:
            r0 = 0
            goto L_0x01fa
        L_0x069b:
            androidx.fragment.app.Fragment r0 = r3.LJIILJJIL
            X.1hK r0 = r0.getActivity()
            android.content.Intent r0 = r0.getIntent()
            int r0 = r0.getIntExtra(r8, r7)
            goto L_0x01d4
        L_0x06ab:
            java.lang.String r1 = "cd_enter_method"
            java.lang.String r0 = LIZ((android.content.Intent) r9, (java.lang.String) r1)
            if (r0 == 0) goto L_0x06c3
            java.lang.String r0 = LIZ((android.content.Intent) r9, (java.lang.String) r1)
            boolean r0 = r0.equals(r6)
            if (r0 != 0) goto L_0x06c3
            java.lang.String r1 = LIZ((android.content.Intent) r9, (java.lang.String) r1)
            goto L_0x01c9
        L_0x06c3:
            java.lang.String r1 = "normal"
            goto L_0x01c9
        L_0x06c7:
            r9 = r4
            goto L_0x01a3
        L_0x06ca:
            r0 = 0
            goto L_0x0183
        L_0x06cd:
            r0 = -1
            goto L_0x0098
        L_0x06d1:
            java.lang.StringBuilder r1 = new java.lang.StringBuilder
            java.lang.String r0 = "aid:"
            r1.<init>(r0)
            java.lang.String r0 = r7.getAid()
            r1.append(r0)
            r0 = 95
            r1.append(r0)
            java.lang.String r0 = r1.toString()
            r6.LIZLLL = r0
            boolean r0 = r6.LIZ
            if (r0 == 0) goto L_0x002e
            java.lang.String r2 = r6.LIZLLL
            java.lang.StringBuilder r1 = new java.lang.StringBuilder
            java.lang.String r0 = "name: "
            r1.<init>(r0)
            com.ss.android.ugc.aweme.profile.model.User r0 = r7.getAuthor()
            if (r0 == 0) goto L_0x0710
            java.lang.String r0 = r0.getNickname()
        L_0x0701:
            r1.append(r0)
            java.lang.String r0 = r1.toString()
            java.lang.String r0 = kotlin.h.b.n.LIZ(r2, r0)
            r6.LIZLLL = r0
            goto L_0x002e
        L_0x0710:
            r0 = r4
            goto L_0x0701
        L_0x0712:
            com.bytedance.frameworks.apm.trace.MethodCollector.o(r14)
            return
        L_0x0716:
            com.bytedance.frameworks.apm.trace.MethodCollector.o(r14)
            return
        L_0x071a:
            X.Cic r0 = r3.LJJIJIL()
            android.view.View r0 = r0.LIZ
            if (r0 == 0) goto L_0x0733
            int r0 = r0.getVisibility()
            if (r0 != 0) goto L_0x0733
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r3.LJIIL
            if (r0 == 0) goto L_0x0733
            X.Cic r0 = r3.LJJIJIL()
            r0.LIZIZ()
        L_0x0733:
            com.bytedance.frameworks.apm.trace.MethodCollector.o(r14)
            return
        */
        throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.feed.adapter.VideoViewCell.LJ(com.ss.android.ugc.aweme.feed.model.Aweme):void");
    }

    public static String LIZ(Intent intent, String str) {
        try {
            return intent.getStringExtra(str);
        } catch (Exception unused) {
            return null;
        }
    }

    public void b_(int i, int i2) {
        C0034Chi chi = this.LJIJ;
        if (chi != null) {
            chi.LIZ(i, i2);
        }
        DataCenter dataCenter = this.LJL;
        if (dataCenter != null) {
            dataCenter.LIZ("on_page_scroll_state_changed", (Object) Integer.valueOf(i2));
        }
        this.LLFII.setState(new A3W(i2));
    }

    public final void LIZIZ(Aweme aweme, int i) {
        this.LJIILIIL = i;
        LJIIIIZZ(aweme);
        LJJLJLI();
    }

    private void LIZ(int i, LsC<C5233Etp, C5233Etp> lsC) {
        String str;
        JSONObject jSONObject = this.LJJLIIJ;
        if (jSONObject != null) {
            try {
                str = jSONObject.getString("request_id");
            } catch (JSONException e) {
                0HH.LIZ(e);
                str = "";
            }
            if (!TextUtils.isEmpty(str) && this.LJIIL != null) {
                this.LJIIL.setRequestId(str);
            }
        }
        IIMService createIIMServicebyMonsterPlugin = IMService.createIIMServicebyMonsterPlugin(false);
        if (createIIMServicebyMonsterPlugin.isNeedToContinuePlayInAct()) {
            createIIMServicebyMonsterPlugin.setNeedToContinuePlayInAct(false);
        }
        if (this.LJJLIIIJLLLLLLLZ != null && this.LJIIL != null) {
            C5233Etp etp = new C5233Etp(i, LJI(i));
            if (lsC != null) {
                lsC.invoke(etp);
            }
            this.LJJLIIIJLLLLLLLZ.LIZ(etp);
        }
    }

    private void LIZ(boolean z, boolean z2) {
        RelativeLayout relativeLayout = this.LJIIZILJ;
        if (relativeLayout != null && relativeLayout.getVisibility() == 0 && this.LJJLIIIIJ != null) {
            if (z || this.LJIIZILJ.getAlpha() != 1.0f) {
                if (this.LLF) {
                    if (!z) {
                        this.LLF = false;
                        if (z2) {
                            this.LJIIZILJ.animate().alpha(1.0f).setDuration(200).start();
                            this.LJJLIIIIJ.animate().alpha(1.0f).setDuration(200).start();
                            View view = this.LJJIJLIJ;
                            if (view != null) {
                                view.animate().alpha(1.0f).setDuration(200).start();
                            }
                        } else {
                            this.LJIIZILJ.setAlpha(1.0f);
                            this.LJJLIIIIJ.setAlpha(1.0f);
                            View view2 = this.LJJIJLIJ;
                            if (view2 != null) {
                                view2.setAlpha(1.0f);
                            }
                        }
                    } else {
                        return;
                    }
                } else if (z) {
                    this.LLF = true;
                    float f = 4jT.LIZJ;
                    this.LJIIZILJ.animate().alpha(f).setDuration(200).start();
                    this.LJJLIIIIJ.animate().alpha(f).setDuration(200).start();
                    View view3 = this.LJJIJLIJ;
                    if (view3 != null) {
                        view3.animate().alpha(f).setDuration(200).start();
                        return;
                    }
                    return;
                }
                if (this.LJIIZILJ.getAlpha() < 1.0f) {
                    this.LJIIZILJ.setAlpha(1.0f);
                    this.LJJLIIIIJ.setAlpha(1.0f);
                    View view4 = this.LJJIJLIJ;
                    if (view4 != null) {
                        view4.setAlpha(1.0f);
                        return;
                    }
                    return;
                }
                return;
            }
            this.LLF = false;
        }
    }

    public final void LIZJ(boolean z, boolean z2) {
        boolean z3;
        int i;
        int i2;
        double d;
        long j;
        int i3;
        double d2;
        ViewStub viewStub;
        MethodCollector.i(12899);
        2Km LIZ = 2Km.LIZLLL.LIZ();
        String LJLIIIL2 = LJLIIIL();
        boolean z4 = z;
        if (LJLIIIL2 != null) {
            LIZ.LIZ.put("scene_key_".concat(String.valueOf(LJLIIIL2)), Boolean.valueOf(z4));
        }
        if (4jS.LIZ.LIZ() == 1 && (viewStub = this.LJJIJL) != null && this.LJJIJLIJ == null) {
            View inflate = viewStub.inflate();
            this.LJJIJLIJ = inflate;
            if (inflate == null) {
                MethodCollector.o(12899);
                return;
            }
            inflate.setOnClickListener(2Eb.LIZ);
        }
        if (LIZIZ() == null || (!LIZIZ().isPhotoMode() && !Cl7.LJII(LIZIZ()))) {
            z3 = false;
        } else {
            z3 = true;
        }
        RelativeLayout relativeLayout = this.LJJJJLL;
        RelativeLayout relativeLayout2 = this.LJJJJZ;
        View view = this.LJJIJLIJ;
        FrameLayout frameLayout = this.LJIL;
        View view2 = this.LJJ;
        View view3 = this.LJJII;
        boolean z5 = z2;
        if (view != null) {
            if (z4) {
                view.setAlpha(1.0f);
                view.setVisibility(0);
            } else if (z5) {
                view.animate().alpha(0.0f).setDuration(300).withEndAction(new C0018Cgs(view)).start();
            } else {
                view.setAlpha(0.0f);
                view.setVisibility(8);
            }
            ViewGroup.LayoutParams layoutParams = view.getLayoutParams();
            if (layoutParams instanceof RelativeLayout.LayoutParams) {
                RelativeLayout.LayoutParams layoutParams2 = (RelativeLayout.LayoutParams) layoutParams;
                if (z3) {
                    d2 = 24.0d;
                } else {
                    d2 = 12.0d;
                }
                layoutParams2.bottomMargin = 2ha.LIZ(d2);
            }
            view.setLayoutParams(layoutParams);
        }
        4jT r10 = 4jT.LJFF;
        if (relativeLayout != null) {
            if (!z4) {
                Iterator it = 4jT.LIZ.entrySet().iterator();
                while (true) {
                    if (it.hasNext()) {
                        if (((Number) ((Map.Entry) it.next()).getValue()).intValue() == 0) {
                            break;
                        }
                    } else {
                        4jT.LIZ.clear();
                        break;
                    }
                }
            } else {
                try {
                    4jT.LIZ.clear();
                } catch (Exception unused) {
                }
            }
            LinkedHashSet linkedHashSet = new LinkedHashSet();
            linkedHashSet.add(2131372756);
            linkedHashSet.add(2131368551);
            if (4jS.LIZ.LIZJ()) {
                linkedHashSet.add(2131369593);
            }
            int childCount = relativeLayout.getChildCount();
            for (int i4 = 0; i4 < childCount; i4++) {
                View childAt = relativeLayout.getChildAt(i4);
                n.LIZIZ(childAt, "");
                if (linkedHashSet.contains(Integer.valueOf(childAt.getId()))) {
                    int id = childAt.getId();
                    if (id == 2131372756) {
                        ViewGroup.LayoutParams layoutParams3 = childAt.getLayoutParams();
                        if (layoutParams3 instanceof RelativeLayout.LayoutParams) {
                            double d3 = 0.0d;
                            if (4jS.LIZ.LIZJ()) {
                                RelativeLayout.LayoutParams layoutParams4 = (RelativeLayout.LayoutParams) layoutParams3;
                                if (z4) {
                                    d3 = 10.0d;
                                }
                                layoutParams4.bottomMargin = 2ha.LIZ(d3);
                            } else {
                                RelativeLayout.LayoutParams layoutParams5 = (RelativeLayout.LayoutParams) layoutParams3;
                                if (z4) {
                                    d3 = 1.0d;
                                }
                                layoutParams5.bottomMargin = 2ha.LIZ(d3);
                            }
                        }
                        childAt.setLayoutParams(layoutParams3);
                    } else if (id == 2131369593) {
                        ViewGroup.LayoutParams layoutParams6 = childAt.getLayoutParams();
                        if (layoutParams6 instanceof RelativeLayout.LayoutParams) {
                            RelativeLayout.LayoutParams layoutParams7 = (RelativeLayout.LayoutParams) layoutParams6;
                            if (z4) {
                                d = 14.0d;
                            } else {
                                d = 78.0d;
                            }
                            layoutParams7.bottomMargin = 2ha.LIZ(d);
                        }
                        childAt.setLayoutParams(layoutParams6);
                        View findViewById = childAt.findViewById(2131362534);
                        if (z4) {
                            childAt.setAlpha(0.75f);
                            if (findViewById != null) {
                                findViewById.setVisibility(8);
                            }
                        } else {
                            childAt.setAlpha(1.0f);
                            if (findViewById != null) {
                                findViewById.setVisibility(0);
                            }
                        }
                    }
                } else if (z4) {
                    4jT.LIZ.put(Integer.valueOf(childAt.getId()), Integer.valueOf(childAt.getVisibility()));
                    childAt.setVisibility(8);
                    childAt.setAlpha(0.0f);
                } else {
                    if (4jT.LIZ.containsKey(Integer.valueOf(childAt.getId()))) {
                        Integer num = (Integer) 4jT.LIZ.get(Integer.valueOf(childAt.getId()));
                        if (num != null) {
                            i3 = num.intValue();
                        } else {
                            i3 = 0;
                        }
                        childAt.setVisibility(i3);
                    } else {
                        childAt.setVisibility(0);
                    }
                    ViewPropertyAnimator duration = childAt.animate().alpha(1.0f).setDuration(300);
                    if (z5) {
                        j = 200;
                    } else {
                        j = 0;
                    }
                    duration.setStartDelay(j).start();
                }
            }
            r10.LIZ(frameLayout, z4, z5);
            r10.LIZ(relativeLayout2, z4, z5);
            if (!(!4jS.LIZ.LIZJ() || view2 == null || view3 == null)) {
                if (z4) {
                    i = 8;
                } else {
                    i = 0;
                }
                view2.setVisibility(i);
                if (z4) {
                    i2 = 0;
                } else {
                    i2 = 8;
                }
                view3.setVisibility(i2);
                View findViewById2 = relativeLayout.findViewById(2131369593);
                if (findViewById2 != null) {
                    Rect rect = new Rect();
                    findViewById2.getGlobalVisibleRect(rect);
                    Rect rect2 = new Rect();
                    view2.getGlobalVisibleRect(rect2);
                    int LIZ2 = (rect2.bottom - rect.top) - 2ha.LIZ(40.0d);
                    if (LIZ2 != view3.getLayoutParams().height) {
                        view3.getLayoutParams().height = LIZ2;
                    }
                    MethodCollector.o(12899);
                    return;
                }
            }
        }
        MethodCollector.o(12899);
    }

    public static JSONObject LIZ(Aweme aweme, BaseFeedPageParams baseFeedPageParams, String str) {
        return 4kk.LIZ(aweme, baseFeedPageParams.pageType, str, baseFeedPageParams.eventType);
    }

    public void onPlayProgressChange(String str, long j, long j2) {
        this.LJIJ.onPlayProgressChange(str, j, j2);
        AbsInteractStickerWidget absInteractStickerWidget = this.LJJLJLI.LJIILJJIL;
        if (absInteractStickerWidget != null) {
            absInteractStickerWidget.LJII();
        }
    }

    public 4RT LIZ(View view, 2YM<C5233Etp> r10, Fragment fragment) {
        return FGO.LIZ().LIZ().LIZ(this, view, this.LJLJJLL.pageType, LJLIIIL(), r10, fragment);
    }

    public CzM LIZ(BaseFeedPageParams baseFeedPageParams, Ls2<Long> ls2, int i, Set<C0282Cqw> set) {
        return new CzM(baseFeedPageParams, ls2, i, set);
    }
}
