package com.tencent.mm.plugin.radar.ui;

import a.f.b.j;
import a.l;
import android.content.Context;
import android.view.View;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.radar.ui.RadarViewController.a;
import com.tencent.mm.protocal.protobuf.bpb;
import java.util.HashMap;

@l(dWo = {1, 1, 13}, dWp = {"\u0000x\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\b\b\n\u0002\u0010\u0011\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0002\n\u0002\b\u0007\n\u0002\u0010\u0000\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\b\u0004\u0018\u00002\u00020\u0001:\u0001DB\u0015\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005¢\u0006\u0002\u0010\u0006J\u0010\u0010.\u001a\u00020/2\b\u00100\u001a\u0004\u0018\u00010\u001dJ\u0006\u00101\u001a\u00020/J\u0006\u00102\u001a\u00020/J\b\u00103\u001a\u00020/H\u0002J\u0010\u00104\u001a\u00020\u00102\u0006\u00105\u001a\u00020\bH\u0016J\u0012\u00106\u001a\u0004\u0018\u0001072\u0006\u00105\u001a\u00020\bH\u0016J\u001a\u00108\u001a\u00020+2\b\u00109\u001a\u0004\u0018\u00010+2\u0006\u00105\u001a\u00020\bH\u0016J\u0010\u0010:\u001a\u00020\u00102\b\u0010;\u001a\u0004\u0018\u00010\u001dJ\u001a\u0010<\u001a\u00020+2\b\u00109\u001a\u0004\u0018\u00010+2\u0006\u00105\u001a\u00020\bH\u0002J\"\u0010=\u001a\u00020+2\b\u00109\u001a\u0004\u0018\u00010+2\u0006\u00105\u001a\u00020\b2\u0006\u0010>\u001a\u00020?H\u0002J\u0010\u0010@\u001a\u00020/2\b\u00100\u001a\u0004\u0018\u00010\u001dJ\u0016\u0010A\u001a\u00020/2\u000e\u0010B\u001a\n\u0012\u0004\u0012\u00020C\u0018\u00010$R\u000e\u0010\u0007\u001a\u00020\bX\u000e¢\u0006\u0002\n\u0000R\u0012\u0010\t\u001a\u00060\nR\u00020\u000bX\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\u0004\u001a\u00020\u0005X\u0004¢\u0006\u0002\n\u0000R\u0014\u0010\f\u001a\u00020\b8VX\u0004¢\u0006\u0006\u001a\u0004\b\r\u0010\u000eR\u000e\u0010\u000f\u001a\u00020\u0010X\u000e¢\u0006\u0002\n\u0000R&\u0010\u0011\u001a\u000e\u0012\u0004\u0012\u00020\u0013\u0012\u0004\u0012\u00020\u00130\u0012X\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0014\u0010\u0015\"\u0004\b\u0016\u0010\u0017R&\u0010\u0018\u001a\u000e\u0012\u0004\u0012\u00020\u0013\u0012\u0004\u0012\u00020\b0\u0012X\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0019\u0010\u0015\"\u0004\b\u001a\u0010\u0017R$\u0010\u001b\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u001d0\u001cX\u000e¢\u0006\u0010\n\u0002\u0010\"\u001a\u0004\b\u001e\u0010\u001f\"\u0004\b \u0010!R4\u0010%\u001a\n\u0012\u0004\u0012\u00020\u001d\u0018\u00010$2\u000e\u0010#\u001a\n\u0012\u0004\u0012\u00020\u001d\u0018\u00010$8F@FX\u000e¢\u0006\f\u001a\u0004\b&\u0010'\"\u0004\b(\u0010)R&\u0010*\u001a\u000e\u0012\u0004\u0012\u00020\u0013\u0012\u0004\u0012\u00020+0\u0012X\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b,\u0010\u0015\"\u0004\b-\u0010\u0017¨\u0006E"}, dWq = {"Lcom/tencent/mm/plugin/radar/ui/RadarViewController$RadarSearchAdapter;", "Lcom/tencent/mm/plugin/radar/ui/GridDataAdapter;", "radarGridView", "Lcom/tencent/mm/plugin/radar/ui/RadarSpecialGridView;", "context", "Landroid/content/Context;", "(Lcom/tencent/mm/plugin/radar/ui/RadarViewController;Lcom/tencent/mm/plugin/radar/ui/RadarSpecialGridView;Landroid/content/Context;)V", "animSize", "", "animator", "Lcom/tencent/mm/plugin/radar/ui/RadarViewController$AvatarAnimator;", "Lcom/tencent/mm/plugin/radar/ui/RadarViewController;", "count", "getCount", "()I", "hideView", "", "memberReqMap", "Ljava/util/HashMap;", "", "getMemberReqMap", "()Ljava/util/HashMap;", "setMemberReqMap", "(Ljava/util/HashMap;)V", "needAnim", "getNeedAnim", "setNeedAnim", "radarSearchMember", "", "Lcom/tencent/mm/protocal/protobuf/RadarSearchMember;", "getRadarSearchMember", "()[Lcom/tencent/mm/protocal/protobuf/RadarSearchMember;", "setRadarSearchMember", "([Lcom/tencent/mm/protocal/protobuf/RadarSearchMember;)V", "[Lcom/tencent/mm/protocal/protobuf/RadarSearchMember;", "newMembers", "Ljava/util/LinkedList;", "radarSearchMemberList", "getRadarSearchMemberList", "()Ljava/util/LinkedList;", "setRadarSearchMemberList", "(Ljava/util/LinkedList;)V", "viewTable", "Landroid/view/View;", "getViewTable", "setViewTable", "addMemberReq", "", "member", "clearAll", "clearData", "doInit", "getChanged", "position", "getItem", "", "getView", "convertView", "isMemReqContainsSearchMem", "sm", "makePlaceHolderView", "makeView", "radarStatus", "Lcom/tencent/mm/plugin/radar/model/RadarManager$RadarStatus;", "removeMemberReq", "setRadarChatRoomMemberList", "radarChatMember", "Lcom/tencent/mm/protocal/protobuf/RadarChatRoomMember;", "ViewHolder", "plugin-radar_release"})
public final class RadarViewController$c extends a {
    private final Context context;
    final /* synthetic */ RadarViewController pEg;
    bpb[] pEi = new bpb[12];
    HashMap<String, String> pEj = new HashMap();
    HashMap<String, Integer> pEk = new HashMap();
    private final a pEl;
    private int pEm;
    HashMap<String, View> pEn = new HashMap();
    private boolean pEo;

    public RadarViewController$c(RadarViewController radarViewController, RadarSpecialGridView radarSpecialGridView, Context context) {
        j.p(radarSpecialGridView, "radarGridView");
        j.p(context, "context");
        this.pEg = radarViewController;
        super(radarSpecialGridView, context);
        AppMethodBeat.i(103092);
        this.context = context;
        this.pEl = new a(radarViewController);
        AppMethodBeat.o(103092);
    }

    public final int getCount() {
        if (this.pEo) {
            return 0;
        }
        return this.pEi.length;
    }

    /* JADX WARNING: Removed duplicated region for block: B:64:0x0077 A:{SYNTHETIC} */
    /* JADX WARNING: Removed duplicated region for block: B:61:0x00a2 A:{SYNTHETIC} */
    /* JADX WARNING: Missing block: B:38:0x009d, code skipped:
            if (r1 != 0) goto L_0x009f;
     */
    public final void al(java.util.LinkedList<com.tencent.mm.protocal.protobuf.bpb> r12) {
        /*
        r11 = this;
        r10 = 103087; // 0x192af float:1.44456E-40 double:5.09317E-319;
        r3 = 1;
        r2 = 0;
        com.tencent.matrix.trace.core.AppMethodBeat.i(r10);
        if (r12 == 0) goto L_0x0010;
    L_0x000a:
        r0 = r12.size();
        if (r0 == 0) goto L_0x0012;
    L_0x0010:
        if (r12 != 0) goto L_0x0016;
    L_0x0012:
        com.tencent.matrix.trace.core.AppMethodBeat.o(r10);
    L_0x0015:
        return;
    L_0x0016:
        r0 = r11;
        r0 = (com.tencent.mm.plugin.radar.ui.RadarViewController$c) r0;
        r1 = r0.pEi;
        r5 = r1.length;
        r4 = r2;
    L_0x001d:
        if (r4 >= r5) goto L_0x004c;
    L_0x001f:
        r6 = r12.iterator();
    L_0x0023:
        r1 = r6.hasNext();
        if (r1 == 0) goto L_0x0048;
    L_0x0029:
        r1 = r6.next();
        r1 = (com.tencent.mm.protocal.protobuf.bpb) r1;
        r7 = com.tencent.mm.plugin.radar.ui.g.pDK;
        r7 = com.tencent.mm.plugin.radar.ui.g.c(r1);
        r8 = com.tencent.mm.plugin.radar.ui.g.pDK;
        r8 = r0.pEi;
        r8 = r8[r4];
        r8 = com.tencent.mm.plugin.radar.ui.g.c(r8);
        r7 = a.f.b.j.j(r7, r8);
        if (r7 == 0) goto L_0x0023;
    L_0x0045:
        r12.remove(r1);
    L_0x0048:
        r1 = r4 + 1;
        r4 = r1;
        goto L_0x001d;
    L_0x004c:
        r5 = r12.iterator();
    L_0x0050:
        r0 = r5.hasNext();
        if (r0 == 0) goto L_0x00c2;
    L_0x0056:
        r0 = r5.next();
        r0 = (com.tencent.mm.protocal.protobuf.bpb) r0;
        r6 = java.lang.System.currentTimeMillis();
        r1 = (int) r6;
        r1 = r1 % 6;
        r6 = java.lang.Math.abs(r1);
        r1 = r11.pEi;
        r7 = r1.length;
        r4 = r2;
    L_0x006b:
        if (r4 >= r7) goto L_0x0050;
    L_0x006d:
        r1 = r4 + r6;
        r8 = r1 % 12;
        r1 = 4;
        if (r8 == r1) goto L_0x0077;
    L_0x0074:
        r1 = 7;
        if (r8 != r1) goto L_0x007b;
    L_0x0077:
        r1 = r4 + 1;
        r4 = r1;
        goto L_0x006b;
    L_0x007b:
        r1 = r11.pEi;
        r9 = r1[r8];
        if (r9 == 0) goto L_0x009f;
    L_0x0081:
        r1 = r9.jBB;
        r1 = (java.lang.CharSequence) r1;
        if (r1 == 0) goto L_0x008d;
    L_0x0087:
        r1 = a.k.m.ar(r1);
        if (r1 == 0) goto L_0x00bc;
    L_0x008d:
        r1 = r3;
    L_0x008e:
        if (r1 == 0) goto L_0x00c0;
    L_0x0090:
        r1 = r9.wfK;
        r1 = (java.lang.CharSequence) r1;
        if (r1 == 0) goto L_0x009c;
    L_0x0096:
        r1 = a.k.m.ar(r1);
        if (r1 == 0) goto L_0x00be;
    L_0x009c:
        r1 = r3;
    L_0x009d:
        if (r1 == 0) goto L_0x00c0;
    L_0x009f:
        r1 = r3;
    L_0x00a0:
        if (r1 == 0) goto L_0x0077;
    L_0x00a2:
        r1 = r11.pEi;
        r1[r8] = r0;
        r1 = r11.pEk;
        r4 = com.tencent.mm.plugin.radar.ui.g.pDK;
        r4 = "member";
        a.f.b.j.o(r0, r4);
        r0 = com.tencent.mm.plugin.radar.ui.g.b(r0);
        r4 = java.lang.Integer.valueOf(r2);
        r1.put(r0, r4);
        goto L_0x0050;
    L_0x00bc:
        r1 = r2;
        goto L_0x008e;
    L_0x00be:
        r1 = r2;
        goto L_0x009d;
    L_0x00c0:
        r1 = r2;
        goto L_0x00a0;
    L_0x00c2:
        r0 = r12.size();
        if (r0 <= 0) goto L_0x0121;
    L_0x00c8:
        r11.aPw();
        r0 = com.tencent.mm.plugin.radar.b.d.pBq;
        r0 = r12.size();
        r1 = com.tencent.mm.plugin.radar.b.d.cEX;
        if (r1 != 0) goto L_0x0117;
    L_0x00d5:
        if (r0 <= 0) goto L_0x0117;
    L_0x00d7:
        r4 = com.tencent.mm.plugin.radar.b.d.cdz();
        r6 = com.tencent.mm.plugin.radar.b.d.pBm;
        r4 = r4 - r6;
        r1 = (float) r4;
        r4 = 1065353216; // 0x3f800000 float:1.0 double:5.263544247E-315;
        r1 = r1 * r4;
        r4 = 1148846080; // 0x447a0000 float:1000.0 double:5.676053805E-315;
        r1 = r1 / r4;
        r4 = com.tencent.mm.plugin.radar.b.d.TAG;
        r5 = "FoundFirstFriendTimeSpent %s";
        r6 = new java.lang.Object[r3];
        r7 = java.lang.Float.valueOf(r1);
        r6[r2] = r7;
        com.tencent.mm.sdk.platformtools.ab.d(r4, r5, r6);
        r4 = com.tencent.mm.plugin.report.service.h.pYm;
        r5 = a.f.b.y.AVH;
        r5 = "%s";
        r6 = new java.lang.Object[r3];
        r1 = java.lang.Float.valueOf(r1);
        r6[r2] = r1;
        r1 = java.util.Arrays.copyOf(r6, r3);
        r1 = java.lang.String.format(r5, r1);
        r2 = "java.lang.String.format(format, *args)";
        a.f.b.j.o(r1, r2);
        r2 = 10682; // 0x29ba float:1.4969E-41 double:5.2776E-320;
        r4.X(r2, r1);
    L_0x0117:
        r1 = com.tencent.mm.plugin.radar.b.d.cEX;
        r1 = r1 + r0;
        com.tencent.mm.plugin.radar.b.d.cEX = r1;
        r1 = com.tencent.mm.plugin.radar.b.d.pBn;
        r0 = r0 + r1;
        com.tencent.mm.plugin.radar.b.d.pBn = r0;
    L_0x0121:
        com.tencent.matrix.trace.core.AppMethodBeat.o(r10);
        goto L_0x0015;
        */
        throw new UnsupportedOperationException("Method not decompiled: com.tencent.mm.plugin.radar.ui.RadarViewController$c.al(java.util.LinkedList):void");
    }

    /* JADX WARNING: Removed duplicated region for block: B:16:0x0046  */
    /* JADX WARNING: Missing block: B:103:0x0372, code skipped:
            if (r1 == null) goto L_0x0374;
     */
    public final android.view.View Y(android.view.View r11, int r12) {
        /*
        r10 = this;
        r0 = 103088; // 0x192b0 float:1.44457E-40 double:5.0932E-319;
        com.tencent.matrix.trace.core.AppMethodBeat.i(r0);
        r0 = com.tencent.mm.plugin.radar.ui.RadarViewController.access$getTAG$cp();
        r1 = "getview RadarStatus%s";
        r2 = 1;
        r2 = new java.lang.Object[r2];
        r3 = 0;
        r4 = r10.pEg;
        r4 = r4.getRadarStatus();
        r2[r3] = r4;
        com.tencent.mm.sdk.platformtools.ab.d(r0, r1, r2);
        r0 = r10.pEi;
        r0 = r0[r12];
        r7 = r0;
        r7 = (com.tencent.mm.protocal.protobuf.bpb) r7;
        if (r7 == 0) goto L_0x03ea;
    L_0x0025:
        r0 = r7.jBB;
        r0 = (java.lang.CharSequence) r0;
        if (r0 == 0) goto L_0x0031;
    L_0x002b:
        r0 = a.k.m.ar(r0);
        if (r0 == 0) goto L_0x009e;
    L_0x0031:
        r0 = 1;
    L_0x0032:
        if (r0 == 0) goto L_0x00a2;
    L_0x0034:
        r0 = r7.wfK;
        r0 = (java.lang.CharSequence) r0;
        if (r0 == 0) goto L_0x0040;
    L_0x003a:
        r0 = a.k.m.ar(r0);
        if (r0 == 0) goto L_0x00a0;
    L_0x0040:
        r0 = 1;
    L_0x0041:
        if (r0 == 0) goto L_0x00a2;
    L_0x0043:
        r0 = 1;
    L_0x0044:
        if (r0 != 0) goto L_0x03ea;
    L_0x0046:
        r0 = com.tencent.mm.plugin.radar.ui.g.pDK;
        r9 = com.tencent.mm.plugin.radar.ui.g.b(r7);
        r0 = r10.pEg;
        r1 = r0.getRadarStatus();
        if (r11 != 0) goto L_0x03f0;
    L_0x0054:
        r0 = r10.context;
        r2 = 2130970439; // 0x7f040747 float:1.7549588E38 double:1.052839286E-314;
        r3 = 0;
        r0 = android.view.View.inflate(r0, r2, r3);
        if (r0 != 0) goto L_0x0063;
    L_0x0060:
        a.f.b.j.dWJ();
    L_0x0063:
        r2 = r10.pEg;
        r2 = com.tencent.mm.plugin.radar.ui.RadarViewController.a(r2);
        r3 = r10.pEl;
        r3 = r3.cdT();
        r3 = java.lang.Integer.valueOf(r3);
        r0.setTag(r2, r3);
        r2 = r10.pEg;
        r2 = com.tencent.mm.plugin.radar.ui.RadarViewController.b(r2);
        r3 = r10.pEl;
        r3 = r3.getInAnimation();
        r0.setTag(r2, r3);
        r8 = r0;
    L_0x0086:
        r0 = 2131826793; // 0x7f111869 float:1.928648E38 double:1.0532623813E-314;
        r3 = r8.findViewById(r0);
        if (r3 != 0) goto L_0x00a4;
    L_0x008f:
        r0 = new a.v;
        r1 = "null cannot be cast to non-null type android.widget.ImageView";
        r0.<init>(r1);
        r1 = 103088; // 0x192b0 float:1.44457E-40 double:5.0932E-319;
        com.tencent.matrix.trace.core.AppMethodBeat.o(r1);
        throw r0;
    L_0x009e:
        r0 = 0;
        goto L_0x0032;
    L_0x00a0:
        r0 = 0;
        goto L_0x0041;
    L_0x00a2:
        r0 = 0;
        goto L_0x0044;
    L_0x00a4:
        r3 = (android.widget.ImageView) r3;
        r0 = 2131826792; // 0x7f111868 float:1.9286478E38 double:1.053262381E-314;
        r4 = r8.findViewById(r0);
        if (r4 != 0) goto L_0x00be;
    L_0x00af:
        r0 = new a.v;
        r1 = "null cannot be cast to non-null type com.tencent.mm.plugin.radar.ui.RadarStateView";
        r0.<init>(r1);
        r1 = 103088; // 0x192b0 float:1.44457E-40 double:5.0932E-319;
        com.tencent.matrix.trace.core.AppMethodBeat.o(r1);
        throw r0;
    L_0x00be:
        r4 = (com.tencent.mm.plugin.radar.ui.RadarStateView) r4;
        r0 = 2131826796; // 0x7f11186c float:1.9286487E38 double:1.053262383E-314;
        r2 = r8.findViewById(r0);
        if (r2 != 0) goto L_0x00d8;
    L_0x00c9:
        r0 = new a.v;
        r1 = "null cannot be cast to non-null type android.widget.TextView";
        r0.<init>(r1);
        r1 = 103088; // 0x192b0 float:1.44457E-40 double:5.0932E-319;
        com.tencent.matrix.trace.core.AppMethodBeat.o(r1);
        throw r0;
    L_0x00d8:
        r2 = (android.widget.TextView) r2;
        r0 = 2131826794; // 0x7f11186a float:1.9286482E38 double:1.053262382E-314;
        r6 = r8.findViewById(r0);
        if (r6 != 0) goto L_0x00f2;
    L_0x00e3:
        r0 = new a.v;
        r1 = "null cannot be cast to non-null type android.widget.ImageView";
        r0.<init>(r1);
        r1 = 103088; // 0x192b0 float:1.44457E-40 double:5.0932E-319;
        com.tencent.matrix.trace.core.AppMethodBeat.o(r1);
        throw r0;
    L_0x00f2:
        r6 = (android.widget.ImageView) r6;
        r0 = 2131826795; // 0x7f11186b float:1.9286484E38 double:1.0532623823E-314;
        r5 = r8.findViewById(r0);
        if (r5 != 0) goto L_0x010c;
    L_0x00fd:
        r0 = new a.v;
        r1 = "null cannot be cast to non-null type com.tencent.mm.plugin.radar.ui.RadarStateChooseView";
        r0.<init>(r1);
        r1 = 103088; // 0x192b0 float:1.44457E-40 double:5.0932E-319;
        com.tencent.matrix.trace.core.AppMethodBeat.o(r1);
        throw r0;
    L_0x010c:
        r5 = (com.tencent.mm.plugin.radar.ui.RadarStateChooseView) r5;
        r0 = 0;
        r3.setVisibility(r0);
        r0 = 0;
        r4.setVisibility(r0);
        r0 = 0;
        r2.setVisibility(r0);
        r0 = 0;
        r6.setVisibility(r0);
        r0 = com.tencent.mm.plugin.radar.b.e.e.pBM;
        if (r1 == r0) goto L_0x0126;
    L_0x0122:
        r0 = com.tencent.mm.plugin.radar.b.e.e.pBN;
        if (r1 != r0) goto L_0x0181;
    L_0x0126:
        r0 = 0;
        r4.setVisibility(r0);
        r0 = 8;
        r5.setVisibility(r0);
    L_0x012f:
        r0 = new com.tencent.mm.plugin.radar.ui.RadarViewController$c$a;
        r1 = r10;
        r0.<init>(r1, r2, r3, r4, r5, r6);
        r8.setTag(r0);
        r0 = 7;
        if (r12 == r0) goto L_0x0140;
    L_0x013b:
        r0 = r12 % 3;
        r1 = 1;
        if (r0 != r1) goto L_0x018b;
    L_0x0140:
        r0 = 2131826797; // 0x7f11186d float:1.9286489E38 double:1.0532623833E-314;
        r0 = r8.findViewById(r0);
        r1 = "anotherConvertView.findV…d<View>(R.id.bottom_stub)";
        a.f.b.j.o(r0, r1);
        r1 = 0;
        r0.setVisibility(r1);
        r0 = 2131826791; // 0x7f111867 float:1.9286476E38 double:1.0532623803E-314;
        r0 = r8.findViewById(r0);
        r1 = "anotherConvertView.findV…ById<View>(R.id.top_stub)";
        a.f.b.j.o(r0, r1);
        r1 = 8;
        r0.setVisibility(r1);
    L_0x0163:
        if (r11 == 0) goto L_0x0167;
    L_0x0165:
        if (r8 == r11) goto L_0x016c;
    L_0x0167:
        r0 = r10.pEn;
        r0.put(r9, r8);
    L_0x016c:
        r0 = r8.getTag();
        if (r0 != 0) goto L_0x01af;
    L_0x0172:
        r0 = new a.v;
        r1 = "null cannot be cast to non-null type com.tencent.mm.plugin.radar.ui.RadarViewController.RadarSearchAdapter.ViewHolder";
        r0.<init>(r1);
        r1 = 103088; // 0x192b0 float:1.44457E-40 double:5.0932E-319;
        com.tencent.matrix.trace.core.AppMethodBeat.o(r1);
        throw r0;
    L_0x0181:
        r0 = 8;
        r4.setVisibility(r0);
        r0 = 0;
        r5.setVisibility(r0);
        goto L_0x012f;
    L_0x018b:
        r0 = 2131826791; // 0x7f111867 float:1.9286476E38 double:1.0532623803E-314;
        r0 = r8.findViewById(r0);
        r1 = "anotherConvertView.findV…ById<View>(R.id.top_stub)";
        a.f.b.j.o(r0, r1);
        r1 = 0;
        r0.setVisibility(r1);
        r0 = 2131826797; // 0x7f11186d float:1.9286489E38 double:1.0532623833E-314;
        r0 = r8.findViewById(r0);
        r1 = "anotherConvertView.findV…d<View>(R.id.bottom_stub)";
        a.f.b.j.o(r0, r1);
        r1 = 8;
        r0.setVisibility(r1);
        goto L_0x0163;
    L_0x01af:
        r0 = (com.tencent.mm.plugin.radar.ui.RadarViewController$c.a) r0;
        r2 = r0.pEp;
        r1 = r10.pEg;
        r3 = r1.getContext();
        r1 = r7.jCH;
        r1 = (java.lang.CharSequence) r1;
        r4 = r0.pEp;
        r4 = r4.getTextSize();
        r1 = com.tencent.mm.pluginsdk.ui.e.j.b(r3, r1, r4);
        r1 = (java.lang.CharSequence) r1;
        r2.setText(r1);
        r1 = com.tencent.mm.plugin.radar.ui.b.a.pCd;
        r1 = r0.pEq;
        com.tencent.mm.plugin.radar.ui.b.a.b(r1, r9);
        r1 = 2131826788; // 0x7f111864 float:1.928647E38 double:1.053262379E-314;
        r1 = r8.findViewById(r1);
        r2 = "view.findViewById(R.id.radar_avatar_container)";
        a.f.b.j.o(r1, r2);
        r2 = new com.tencent.mm.plugin.radar.ui.RadarViewController$d;
        r3 = r10.pEg;
        r2.<init>(r3, r7);
        r1.setTag(r2);
        r1 = r10.pEg;
        r1 = r1.getRadarStatus();
        r2 = com.tencent.mm.plugin.radar.b.e.e.pBM;
        if (r1 == r2) goto L_0x01fe;
    L_0x01f4:
        r1 = r10.pEg;
        r1 = r1.getRadarStatus();
        r2 = com.tencent.mm.plugin.radar.b.e.e.pBN;
        if (r1 != r2) goto L_0x032c;
    L_0x01fe:
        r1 = r0.pEt;
        r2 = 2130840106; // 0x7f020a2a float:1.7285241E38 double:1.052774893E-314;
        r1.setBackgroundResource(r2);
        r1 = r0.pEr;
        r2 = 1;
        r1.pDb = r2;
        r1.cdK();
        r1 = r0.pEs;
        r2 = 0;
        r1.pCV = r2;
        r2 = 8;
        r1.setVisibility(r2);
        r1 = r10.pEg;
        r1 = com.tencent.mm.plugin.radar.ui.RadarViewController.c(r1);
        r1 = com.tencent.mm.plugin.radar.b.e.a(r1, r7);
        if (r1 != 0) goto L_0x0256;
    L_0x0224:
        r1 = r10.pEg;
        r1 = com.tencent.mm.plugin.radar.ui.RadarViewController.e(r1);
        r1 = r1.Vx(r9);
        r2 = r10.pEg;
        r2 = com.tencent.mm.plugin.radar.ui.RadarViewController.c(r2);
        r3 = "member";
        a.f.b.j.p(r7, r3);
        r3 = "state";
        a.f.b.j.p(r1, r3);
        r3 = r7.jBB;
        r4 = "member.UserName";
        a.f.b.j.o(r3, r4);
        r2.b(r3, r1);
        r3 = r7.wfK;
        r4 = "member.EncodeUserName";
        a.f.b.j.o(r3, r4);
        r2.b(r3, r1);
    L_0x0256:
        r2 = r10.pEg;
        r2 = com.tencent.mm.plugin.radar.ui.RadarViewController.c(r2);
        r3 = 1;
        r2 = r2.a(r7, r3);
        r3 = r0.pEr;
        if (r2 != 0) goto L_0x0267;
    L_0x0265:
        r2 = com.tencent.mm.plugin.radar.b.c.e.pAW;
    L_0x0267:
        r4 = "state";
        a.f.b.j.p(r2, r4);
        r3.init();
        r4 = r3.pDc;
        r5 = 0;
        r4.removeMessages(r5);
        r3.clearAnimation();
        r3.pBL = r2;
        r2 = 0;
        r3.pCS = r2;
        r3.cdK();
        r3 = r0.pEr;
        r0 = "state";
        a.f.b.j.p(r1, r0);
        r3.init();
        r0 = com.tencent.mm.plugin.radar.ui.RadarStateView.TAG;
        r2 = " turnToState : ";
        r4 = java.lang.String.valueOf(r1);
        r2 = r2.concat(r4);
        com.tencent.mm.sdk.platformtools.ab.d(r0, r2);
        r0 = 0;
        r2 = r3.pBL;
        if (r2 != r1) goto L_0x02ef;
    L_0x02a1:
        r3.cdK();
    L_0x02a4:
        r0 = r10.pEg;
        r0 = com.tencent.mm.plugin.radar.ui.RadarViewController.c(r0);
        r1 = "member";
        a.f.b.j.p(r7, r1);
        r1 = r7.jBB;
        r2 = "member.UserName";
        a.f.b.j.o(r1, r2);
        r2 = 0;
        r0.a(r1, r2);
        r1 = r7.wfK;
        r2 = "member.EncodeUserName";
        a.f.b.j.o(r1, r2);
        r2 = 0;
        r0.a(r1, r2);
        if (r12 != 0) goto L_0x02d2;
    L_0x02ca:
        r0 = r10.pEk;
        r0 = r0.size();
        r10.pEm = r0;
    L_0x02d2:
        r0 = r10.pEk;
        r0 = r0.remove(r9);
        if (r0 == 0) goto L_0x02e8;
    L_0x02da:
        r0 = r10.pEl;
        r1 = r10.pEm;
        r2 = r10.pEk;
        r2 = r2.size();
        r1 = r1 - r2;
        r0.g(r1, r8);
    L_0x02e8:
        r0 = 103088; // 0x192b0 float:1.44457E-40 double:5.0932E-319;
        com.tencent.matrix.trace.core.AppMethodBeat.o(r0);
        return r8;
    L_0x02ef:
        r2 = r3.getVisibility();
        if (r2 != 0) goto L_0x031d;
    L_0x02f5:
        r2 = 1;
    L_0x02f6:
        if (r2 == 0) goto L_0x02fc;
    L_0x02f8:
        r3.cdM();
        r0 = 1;
    L_0x02fc:
        r2 = com.tencent.mm.plugin.radar.ui.RadarStateView.TAG;
        r4 = " delay : ";
        r5 = java.lang.String.valueOf(r0);
        r4 = r4.concat(r5);
        com.tencent.mm.sdk.platformtools.ab.d(r2, r4);
        r3.pBL = r1;
        r1 = r3.pBL;
        r2 = com.tencent.mm.plugin.radar.b.c.e.pAW;
        if (r1 == r2) goto L_0x02a4;
    L_0x0314:
        if (r0 != 0) goto L_0x031f;
    L_0x0316:
        r0 = r3.pDc;
        r1 = 0;
        r0.sendEmptyMessage(r1);
        goto L_0x02a4;
    L_0x031d:
        r2 = 0;
        goto L_0x02f6;
    L_0x031f:
        r0 = r3.pDc;
        r1 = 0;
        r2 = com.tencent.mm.plugin.radar.ui.RadarStateView.pDe;
        r2 = r2 + 20;
        r2 = (long) r2;
        r0.sendEmptyMessageDelayed(r1, r2);
        goto L_0x02a4;
    L_0x032c:
        r1 = r10.pEg;
        r1 = com.tencent.mm.plugin.radar.ui.RadarViewController.c(r1);
        r1 = r1.pBv;
        r2 = com.tencent.mm.plugin.radar.ui.g.pDK;
        r2 = com.tencent.mm.plugin.radar.ui.g.c(r7);
        r1 = r1.get(r2);
        r1 = (java.lang.String) r1;
        r1 = com.tencent.mm.sdk.platformtools.bo.isNullOrNil(r1);
        if (r1 != 0) goto L_0x03e4;
    L_0x0346:
        r1 = r0.pEr;
        r2 = 0;
        r1.pDb = r2;
        r2 = 8;
        r1.setVisibility(r2);
        r1 = r0.pEs;
        r2 = 1;
        r1.pCV = r2;
        r1.cdK();
        r1 = r10.pEg;
        r1 = com.tencent.mm.plugin.radar.ui.RadarViewController.c(r1);
        if (r7 == 0) goto L_0x0374;
    L_0x0360:
        r2 = com.tencent.mm.plugin.radar.ui.g.pDK;
        r2 = com.tencent.mm.plugin.radar.ui.g.b(r7);
        r1 = r1.pBz;
        r1 = r1.get(r2);
        r1 = (com.tencent.mm.plugin.radar.b.e.a) r1;
        if (r1 != 0) goto L_0x0372;
    L_0x0370:
        r1 = com.tencent.mm.plugin.radar.b.e.a.pBI;
    L_0x0372:
        if (r1 != 0) goto L_0x0376;
    L_0x0374:
        r1 = com.tencent.mm.plugin.radar.b.e.a.pBI;
    L_0x0376:
        r2 = com.tencent.mm.plugin.radar.b.e.a.pBI;
        if (r1 == r2) goto L_0x0380;
    L_0x037a:
        r2 = r0.pEt;
        r3 = 0;
        r2.setBackgroundDrawable(r3);
    L_0x0380:
        r0 = r0.pEs;
        r2 = "status";
        a.f.b.j.p(r1, r2);
        r2 = r0.pCW;
        if (r2 == r1) goto L_0x039b;
    L_0x038c:
        r0.pCW = r1;
        r1 = r0.pCW;
        r2 = com.tencent.mm.plugin.radar.ui.e.pCY;
        r1 = r1.ordinal();
        r1 = r2[r1];
        switch(r1) {
            case 1: goto L_0x03c3;
            case 2: goto L_0x03d5;
            default: goto L_0x039b;
        };
    L_0x039b:
        if (r12 != 0) goto L_0x03a5;
    L_0x039d:
        r0 = r10.pEk;
        r0 = r0.size();
        r10.pEm = r0;
    L_0x03a5:
        r0 = r10.pEk;
        r1 = com.tencent.mm.plugin.radar.ui.g.pDK;
        r1 = com.tencent.mm.plugin.radar.ui.g.c(r7);
        r0 = r0.remove(r1);
        if (r0 == 0) goto L_0x02e8;
    L_0x03b3:
        r0 = r10.pEl;
        r1 = r10.pEm;
        r2 = r10.pEk;
        r2 = r2.size();
        r1 = r1 - r2;
        r0.g(r1, r8);
        goto L_0x02e8;
    L_0x03c3:
        r1 = r0.pCV;
        if (r1 == 0) goto L_0x039b;
    L_0x03c7:
        r0.cdK();
        r1 = 1;
        r0.pCS = r1;
        r1 = r0.getSlideOutAnim();
        r0.startAnimation(r1);
        goto L_0x039b;
    L_0x03d5:
        r1 = r0.pCV;
        if (r1 == 0) goto L_0x039b;
    L_0x03d9:
        r0.cdK();
        r1 = r0.getSlideInAnim();
        r0.startAnimation(r1);
        goto L_0x039b;
    L_0x03e4:
        r8 = r10.Z(r11, r12);
        goto L_0x02e8;
    L_0x03ea:
        r8 = r10.Z(r11, r12);
        goto L_0x02e8;
    L_0x03f0:
        r8 = r11;
        goto L_0x0086;
        */
        throw new UnsupportedOperationException("Method not decompiled: com.tencent.mm.plugin.radar.ui.RadarViewController$c.Y(android.view.View, int):android.view.View");
    }

    public final void clearAll() {
        AppMethodBeat.i(103089);
        this.pEk.clear();
        this.pEn.clear();
        for (String str : this.pEn.keySet()) {
            View view = (View) this.pEn.get(str);
            if (view != null) {
                a aVar = this.pEl;
                j.o(view, "it");
                aVar.cf(view);
            }
        }
        aPw();
        AppMethodBeat.o(103089);
    }

    private final View Z(View view, int i) {
        AppMethodBeat.i(103090);
        if (view == null) {
            view = View.inflate(this.context, 2130970439, null);
            if (view == null) {
                j.dWJ();
            }
            view.setTag(RadarViewController.a(this.pEg), Integer.valueOf(this.pEl.cdT()));
            view.setTag(RadarViewController.b(this.pEg), this.pEl.getInAnimation());
        }
        View findViewById = view.findViewById(2131826793);
        j.o(findViewById, "anotherConvertView.findV…ar_result_item_avatar_iv)");
        findViewById.setVisibility(8);
        findViewById = view.findViewById(2131826794);
        j.o(findViewById, "anotherConvertView.findV…sult_item_avatar_mask_iv)");
        findViewById.setVisibility(8);
        findViewById = view.findViewById(2131826796);
        j.o(findViewById, "anotherConvertView.findV…_result_item_username_tv)");
        findViewById.setVisibility(4);
        findViewById = view.findViewById(2131826792);
        j.o(findViewById, "anotherConvertView.findV….radar_member_state_view)");
        findViewById.setVisibility(4);
        findViewById = view.findViewById(2131826795);
        j.o(findViewById, "anotherConvertView.findV…member_state_choose_view)");
        findViewById.setVisibility(4);
        if (i == 7 || i % 3 == 1) {
            findViewById = view.findViewById(2131826797);
            j.o(findViewById, "anotherConvertView.findV…d<View>(R.id.bottom_stub)");
            findViewById.setVisibility(0);
            findViewById = view.findViewById(2131826791);
            j.o(findViewById, "anotherConvertView.findV…ById<View>(R.id.top_stub)");
            findViewById.setVisibility(8);
        } else {
            findViewById = view.findViewById(2131826791);
            j.o(findViewById, "anotherConvertView.findV…ById<View>(R.id.top_stub)");
            findViewById.setVisibility(0);
            findViewById = view.findViewById(2131826797);
            j.o(findViewById, "anotherConvertView.findV…d<View>(R.id.bottom_stub)");
            findViewById.setVisibility(8);
        }
        AppMethodBeat.o(103090);
        return view;
    }

    /* JADX WARNING: Removed duplicated region for block: B:20:0x0035  */
    /* JADX WARNING: Removed duplicated region for block: B:16:0x002b  */
    /* JADX WARNING: Missing block: B:13:0x0026, code skipped:
            if (r0 != null) goto L_0x0028;
     */
    public final void d(com.tencent.mm.protocal.protobuf.bpb r5) {
        /*
        r4 = this;
        r2 = 1;
        r1 = 0;
        r3 = 103091; // 0x192b3 float:1.44461E-40 double:5.09337E-319;
        com.tencent.matrix.trace.core.AppMethodBeat.i(r3);
        if (r5 == 0) goto L_0x0028;
    L_0x000a:
        r0 = r5.jBB;
        r0 = (java.lang.CharSequence) r0;
        if (r0 == 0) goto L_0x0016;
    L_0x0010:
        r0 = a.k.m.ar(r0);
        if (r0 == 0) goto L_0x002f;
    L_0x0016:
        r0 = r2;
    L_0x0017:
        if (r0 == 0) goto L_0x0033;
    L_0x0019:
        r0 = r5.wfK;
        r0 = (java.lang.CharSequence) r0;
        if (r0 == 0) goto L_0x0025;
    L_0x001f:
        r0 = a.k.m.ar(r0);
        if (r0 == 0) goto L_0x0031;
    L_0x0025:
        r0 = r2;
    L_0x0026:
        if (r0 == 0) goto L_0x0033;
    L_0x0028:
        r0 = r2;
    L_0x0029:
        if (r0 == 0) goto L_0x0035;
    L_0x002b:
        com.tencent.matrix.trace.core.AppMethodBeat.o(r3);
    L_0x002e:
        return;
    L_0x002f:
        r0 = r1;
        goto L_0x0017;
    L_0x0031:
        r0 = r1;
        goto L_0x0026;
    L_0x0033:
        r0 = r1;
        goto L_0x0029;
    L_0x0035:
        r0 = com.tencent.mm.plugin.radar.ui.g.pDK;
        if (r5 != 0) goto L_0x003c;
    L_0x0039:
        a.f.b.j.dWJ();
    L_0x003c:
        r0 = com.tencent.mm.plugin.radar.ui.g.b(r5);
        r1 = r4.pEg;
        r1 = com.tencent.mm.plugin.radar.ui.RadarViewController.c(r1);
        r1 = r1.pBv;
        r1 = r1.containsKey(r0);
        if (r1 == 0) goto L_0x006a;
    L_0x004e:
        r1 = r4.pEg;
        r1 = com.tencent.mm.plugin.radar.ui.RadarViewController.c(r1);
        r1 = r1.pBv;
        r0 = r1.get(r0);
        if (r0 != 0) goto L_0x0068;
    L_0x005c:
        r0 = new a.v;
        r1 = "null cannot be cast to non-null type kotlin.String";
        r0.<init>(r1);
        com.tencent.matrix.trace.core.AppMethodBeat.o(r3);
        throw r0;
    L_0x0068:
        r0 = (java.lang.String) r0;
    L_0x006a:
        r1 = r4.pEj;
        r1.put(r0, r0);
        com.tencent.matrix.trace.core.AppMethodBeat.o(r3);
        goto L_0x002e;
        */
        throw new UnsupportedOperationException("Method not decompiled: com.tencent.mm.plugin.radar.ui.RadarViewController$c.d(com.tencent.mm.protocal.protobuf.bpb):void");
    }
}
