package com.ss.android.ugc.aweme.mix.addfeed.viewmodel;

import X.0Bt;
import X.7he;
import X.C1338Aac;
import X.C1340Aae;
import X.C1341Aaf;
import X.C1718Agk;
import X.Crj;
import X.DaU;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.aweme.feed.model.Aweme;
import java.util.ArrayList;
import java.util.List;

public final class GetMixListViewModel extends 0Bt {
    public int LIZ = -1;
    public C1340Aae LIZIZ;
    public boolean LIZJ = true;
    public boolean LIZLLL;
    public List<C1338Aac> LJ = new ArrayList();
    public String LJFF = "";
    public Aweme LJI;
    public String LJII = "";
    public String LJIIIIZZ = "";
    public boolean LJIIIZ;
    public final Crj LJIIJ = 7he.LIZ(new C1341Aaf(this));

    static {
        Covode.recordClassIndex(92298);
    }

    public final DaU<C1718Agk> LIZ() {
        return (DaU) this.LJIIJ.getValue();
    }

    public final void LIZIZ() {
        LIZ().LIZLLL.LIZLLL();
    }

    public final void LIZ(int i, C1340Aae aae) {
        this.LIZ = i;
        this.LIZIZ = aae;
    }

    /* JADX WARNING: Code restructure failed: missing block: B:28:0x007e, code lost:
        if (r9.isEmpty() != false) goto L_0x0080;
     */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public final java.util.List<X.C1340Aae> LIZ(java.util.List<? extends X.AZ6> r9, boolean r10) {
        /*
            r8 = this;
            java.util.ArrayList r2 = new java.util.ArrayList
            r2.<init>()
            r4 = 0
            r3 = 1
            if (r9 == 0) goto L_0x0080
            boolean r0 = r8.LIZJ
            if (r0 == 0) goto L_0x006b
            if (r10 != 0) goto L_0x006b
            X.Aac r0 = new X.Aac
            r0.<init>(r4)
            r0.LIZIZ = r4
            r2.add(r0)
        L_0x0019:
            java.util.Iterator r7 = r9.iterator()
            r6 = 0
        L_0x001e:
            boolean r0 = r7.hasNext()
            if (r0 == 0) goto L_0x007a
            java.lang.Object r1 = r7.next()
            X.AZ6 r1 = (X.AZ6) r1
            X.Aac r5 = new X.Aac
            r5.<init>(r4)
            com.ss.android.ugc.aweme.base.model.UrlModel r0 = r1.icon
            r5.LIZ = r0
            java.lang.String r0 = r1.getMixName()
            r5.LJ = r0
            java.lang.String r0 = r1.mixId
            r5.LIZJ = r0
            r5.LIZIZ = r3
            if (r10 != 0) goto L_0x0063
            java.lang.String r0 = r8.LJFF
            boolean r0 = android.text.TextUtils.isEmpty(r0)
            if (r0 != 0) goto L_0x0063
            java.lang.String r1 = r1.mixId
            java.lang.String r0 = r8.LJFF
            boolean r0 = kotlin.h.b.n.LIZ(r1, r0)
            if (r0 == 0) goto L_0x0063
            r5.LIZLLL = r3
            boolean r0 = r8.LIZJ
            if (r0 != 0) goto L_0x005d
            boolean r0 = r8.LIZLLL
            if (r0 == 0) goto L_0x0069
        L_0x005d:
            int r0 = r6 + 1
        L_0x005f:
            r8.LIZ = r0
            r8.LIZIZ = r5
        L_0x0063:
            r2.add(r5)
            int r6 = r6 + 1
            goto L_0x001e
        L_0x0069:
            r0 = r6
            goto L_0x005f
        L_0x006b:
            boolean r0 = r8.LIZLLL
            if (r0 == 0) goto L_0x0019
            if (r10 != 0) goto L_0x0019
            X.AaZ r0 = new X.AaZ
            r0.<init>()
            r2.add(r0)
            goto L_0x0019
        L_0x007a:
            boolean r0 = r9.isEmpty()
            if (r0 == 0) goto L_0x008e
        L_0x0080:
            boolean r0 = r8.LIZLLL
            if (r0 == 0) goto L_0x008e
            if (r10 != 0) goto L_0x008e
            X.AaZ r0 = new X.AaZ
            r0.<init>()
            r2.add(r0)
        L_0x008e:
            return r2
        */
        throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.mix.addfeed.viewmodel.GetMixListViewModel.LIZ(java.util.List, boolean):java.util.List");
    }
}
