package com.ss.android.ugc.aweme.relation.usercard.impl.cell;

import X.0CM;
import X.7he;
import X.C0295Crj;
import X.CvZ;
import X.DVM;
import X.DVN;
import X.OFc;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.aweme.relation.base.list.cell.BasePowerCell;
import kotlin.h.b.n;

public final class AdapterLoadingCell extends BasePowerCell<CvZ, AdapterLoadingCellVM> {
    public OFc LIZ;
    public final C0295Crj LIZIZ = 7he.LIZ(new DVM(this));
    public final 0CM<Boolean> LJIIIZ = new DVN(this);

    static {
        Covode.recordClassIndex(103520);
    }

    /* access modifiers changed from: private */
    /* renamed from: LIZ */
    public AdapterLoadingCellVM LIZIZ() {
        return (AdapterLoadingCellVM) this.LIZIZ.getValue();
    }

    public final int bB_() {
        return 2131560987;
    }

    public final void bC_() {
        super.bC_();
        LIZIZ().getLoading().removeObserver(this.LJIIIZ);
    }

    public final void bD_() {
        super.bD_();
        OFc findViewById = this.itemView.findViewById(2131364272);
        n.LIZIZ(findViewById, "");
        this.LIZ = findViewById;
    }

    public static final /* synthetic */ OFc LIZ(AdapterLoadingCell adapterLoadingCell) {
        OFc oFc = adapterLoadingCell.LIZ;
        if (oFc == null) {
            n.LIZ("");
        }
        return oFc;
    }

    /* JADX WARNING: Code restructure failed: missing block: B:13:0x004b, code lost:
        if (r2 == null) goto L_0x004d;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:29:0x0090, code lost:
        if (r2 == null) goto L_0x0092;
     */
    /* JADX WARNING: Removed duplicated region for block: B:42:0x00b9  */
    /* JADX WARNING: Removed duplicated region for block: B:53:? A[RETURN, SYNTHETIC] */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public final /* synthetic */ void LIZ(X.C1481DaP r7) {
        /*
            r6 = this;
            X.CvZ r7 = (X.CvZ) r7
            X.M12.LIZ(r7)
            super.LIZ(r7)
            r0 = r6
            com.bytedance.ies.powerlist.PowerStub r5 = r0.LJFF
            r4 = 0
            if (r5 == 0) goto L_0x0092
            X.DVR r3 = r5.LIZLLL()
            java.util.Map r2 = r3.LIZ()
            java.lang.Class<X.DVL> r1 = X.DVL.class
            java.lang.Object r2 = r2.get(r1)
            boolean r1 = r2 instanceof X.DVL
            if (r1 != 0) goto L_0x0021
            r2 = r4
        L_0x0021:
            X.DVL r2 = (X.DVL) r2
            if (r2 != 0) goto L_0x00af
            java.util.Map r1 = r3.LIZ()
            java.util.Set r1 = r1.entrySet()
            java.util.Iterator r3 = r1.iterator()
        L_0x0031:
            boolean r1 = r3.hasNext()
            if (r1 == 0) goto L_0x004d
            java.lang.Object r2 = r3.next()
            java.util.Map$Entry r2 = (java.util.Map.Entry) r2
            java.lang.Object r1 = r2.getValue()
            boolean r1 = r1 instanceof X.DVL
            if (r1 == 0) goto L_0x0031
            java.lang.Object r2 = r2.getValue()
            X.DVL r2 = (X.DVL) r2
            if (r2 != 0) goto L_0x00af
        L_0x004d:
            com.bytedance.ies.powerlist.PowerStub r1 = r5.LIZIZ
            if (r1 == 0) goto L_0x0092
            X.DVR r3 = r1.LIZLLL()
            if (r3 == 0) goto L_0x0092
            java.util.Map r2 = r3.LIZ()
            java.lang.Class<X.DVL> r1 = X.DVL.class
            java.lang.Object r2 = r2.get(r1)
            boolean r1 = r2 instanceof X.DVL
            if (r1 != 0) goto L_0x0066
            r2 = r4
        L_0x0066:
            X.DVL r2 = (X.DVL) r2
            if (r2 != 0) goto L_0x00af
            java.util.Map r1 = r3.LIZ()
            java.util.Set r1 = r1.entrySet()
            java.util.Iterator r3 = r1.iterator()
        L_0x0076:
            boolean r1 = r3.hasNext()
            if (r1 == 0) goto L_0x0092
            java.lang.Object r2 = r3.next()
            java.util.Map$Entry r2 = (java.util.Map.Entry) r2
            java.lang.Object r1 = r2.getValue()
            boolean r1 = r1 instanceof X.DVL
            if (r1 == 0) goto L_0x0076
            java.lang.Object r2 = r2.getValue()
            X.DVL r2 = (X.DVL) r2
            if (r2 != 0) goto L_0x00af
        L_0x0092:
            java.util.List r0 = r0.LJJI()
            java.util.Iterator r2 = r0.iterator()
        L_0x009a:
            boolean r0 = r2.hasNext()
            if (r0 == 0) goto L_0x00c9
            java.lang.Object r1 = r2.next()
            boolean r0 = r1 instanceof X.DVL
            if (r0 == 0) goto L_0x009a
        L_0x00a8:
            boolean r0 = r1 instanceof X.DVL
            if (r0 != 0) goto L_0x00c7
        L_0x00ac:
            X.DVL r4 = (X.DVL) r4
            r2 = r4
        L_0x00af:
            X.DVL r2 = (X.DVL) r2
            if (r2 == 0) goto L_0x00c6
            X.0CH r2 = r2.LIZ()
            if (r2 == 0) goto L_0x00c6
            com.ss.android.ugc.aweme.relation.usercard.impl.cell.AdapterLoadingCellVM r0 = r6.LIZIZ()
            androidx.lifecycle.LiveData r1 = r0.getLoading()
            X.0CM<java.lang.Boolean> r0 = r6.LJIIIZ
            r1.observe(r2, r0)
        L_0x00c6:
            return
        L_0x00c7:
            r4 = r1
            goto L_0x00ac
        L_0x00c9:
            r1 = r4
            goto L_0x00a8
        */
        throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.relation.usercard.impl.cell.AdapterLoadingCell.LIZ(X.DaP):void");
    }
}
