package com.ss.android.ugc.aweme.sticker.original;

import X.0CB;
import X.0CH;
import X.2sG;
import X.6Is;
import X.C2780NRf;
import X.M12;
import X.N6L;
import X.N6U;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.aweme.sticker.view.internal.viewmodels.StickerListViewModel;
import com.ss.android.ugc.effectmanager.effect.model.Effect;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import kotlin.h.b.n;

public final class OriginalStickerViewModel extends StickerListViewModel implements 6Is {
    public List<Effect> LIZ = new ArrayList();
    public final N6U LIZIZ;
    public final Effect LIZJ;

    static {
        Covode.recordClassIndex(115773);
    }

    public final void onStateChanged(0CH r1, 0CB r2) {
        super.onStateChanged(r1, r2);
    }

    public final void LIZ(String str) {
        M12.LIZ(str);
        2sG r4 = new 2sG();
        r4.element = null;
        this.LIZIZ.LIZ(C2780NRf.LJJJI, 0, new N6L(this, r4));
    }

    public final List<Effect> LIZ(List<? extends Effect> list, boolean z) {
        M12.LIZ(list);
        ArrayList arrayList = new ArrayList();
        if (z) {
            arrayList.add(this.LIZJ);
        }
        Iterator<T> it = list.iterator();
        while (it.hasNext()) {
            com.ss.ugc.effectplatform.model.Effect effect = (com.ss.ugc.effectplatform.model.Effect) it.next();
            if (!n.LIZ(effect.getEffect_id(), this.LIZJ.getEffect_id())) {
                arrayList.add(effect);
            }
        }
        return arrayList;
    }

    /* JADX WARNING: Illegal instructions before constructor call */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public OriginalStickerViewModel(X.0CH r7, X.C2310N9d r8, X.C2336NAd r9, X.C2268N7n r10, X.N6U r11, com.ss.android.ugc.effectmanager.effect.model.Effect r12) {
        /*
            r6 = this;
            r1 = r8
            r0 = r7
            r2 = r9
            r3 = r10
            r5 = r12
            r4 = r11
            X.M12.LIZ(r0, r1, r2, r3, r4, r5)
            r6.<init>(r0, r1, r2, r3)
            r6.LIZIZ = r4
            r6.LIZJ = r5
            java.util.ArrayList r0 = new java.util.ArrayList
            r0.<init>()
            r6.LIZ = r0
            return
        */
        throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.sticker.original.OriginalStickerViewModel.<init>(X.0CH, X.N9d, X.NAd, X.N7n, X.N6U, com.ss.android.ugc.effectmanager.effect.model.Effect):void");
    }
}
