package com.ss.android.ugc.aweme.feed.assem.contentclassificationmask;

import X.AnonymousClass4HR;
import X.C56794ch;
import X.C57334dZ;
import X.C57484do;
import X.M12;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.aweme.feed.assem.base.FeedBaseViewModel;
import com.ss.android.ugc.aweme.feed.model.Aweme;
import com.ss.android.ugc.aweme.feed.model.VideoItemParams;
import kotlin.h.b.n;

public final class ContentClassificationMaskVM extends FeedBaseViewModel<C57334dZ> {
    static {
        Covode.recordClassIndex(77085);
    }

    public final /* synthetic */ AnonymousClass4HR defaultState() {
        return new C57334dZ();
    }

    public final void LIZJ() {
        setState(new C57484do(this));
    }

    public final boolean LIZIZ() {
        String str;
        VideoItemParams videoItemParams;
        VideoItemParams videoItemParams2;
        VideoItemParams videoItemParams3 = (VideoItemParams) LIZ();
        if (videoItemParams3 != null) {
            str = videoItemParams3.mEventType;
        } else {
            str = null;
        }
        if (!n.LIZ("homepage_hot", str) || (videoItemParams = (VideoItemParams) LIZ()) == null || videoItemParams.mPageType != 0 || (videoItemParams2 = (VideoItemParams) LIZ()) == null || videoItemParams2.mAwemeFromPage != 1) {
            return false;
        }
        return true;
    }

    public final /* synthetic */ AnonymousClass4HR LIZIZ(AnonymousClass4HR r5, VideoItemParams videoItemParams) {
        C57334dZ r52 = (C57334dZ) r5;
        M12.LIZ(r52, videoItemParams);
        Aweme aweme = videoItemParams.mAweme;
        n.LIZIZ(aweme, "");
        C56794ch r3 = new C56794ch(n.LIZ(aweme.getContentClassificationMaskInfo().getShowMask(), true));
        Aweme aweme2 = videoItemParams.mAweme;
        n.LIZIZ(aweme2, "");
        return r52.LIZ(r3, aweme2.getContentClassificationMaskInfo());
    }
}
