package com.tencent.mm.plugin.fav.ui.d;

import android.view.View;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.bz.a;
import com.tencent.mm.kernel.g;
import com.tencent.mm.plugin.fav.a.y;
import com.tencent.mm.plugin.fav.ui.l;
import com.tencent.mm.protocal.protobuf.abh;

public final class h extends a {
    private static int moM;

    public h(l lVar) {
        super(lVar);
        AppMethodBeat.i(74633);
        moM = a.al(lVar.context, 2131427657);
        AppMethodBeat.o(74633);
    }

    /* JADX WARNING: Removed duplicated region for block: B:92:0x036b A:{LOOP_END, LOOP:3: B:90:0x0368->B:92:0x036b} */
    /* JADX WARNING: Removed duplicated region for block: B:96:0x0396  */
    /* JADX WARNING: Removed duplicated region for block: B:104:0x03b5 A:{LOOP_END, LOOP:4: B:102:0x03af->B:104:0x03b5} */
    public final android.view.View a(android.view.View r17, android.view.ViewGroup r18, com.tencent.mm.plugin.fav.a.g r19) {
        /*
        r16 = this;
        r2 = 74634; // 0x1238a float:1.04585E-40 double:3.6874E-319;
        com.tencent.matrix.trace.core.AppMethodBeat.i(r2);
        r2 = r18.getContext();
        if (r17 != 0) goto L_0x010f;
    L_0x000c:
        r3 = new com.tencent.mm.plugin.fav.ui.d.h$a;
        r3.<init>();
        r4 = 2130969517; // 0x7f0403ad float:1.7547718E38 double:1.0528388307E-314;
        r5 = 0;
        r2 = android.view.View.inflate(r2, r4, r5);
        r0 = r16;
        r1 = r19;
        r17 = r0.a(r2, r3, r1);
        r2 = 2131823927; // 0x7f110d37 float:1.9280667E38 double:1.0532609653E-314;
        r0 = r17;
        r2 = r0.findViewById(r2);
        r3.moS = r2;
        r2 = 2131823938; // 0x7f110d42 float:1.928069E38 double:1.0532609707E-314;
        r0 = r17;
        r2 = r0.findViewById(r2);
        r3.moT = r2;
        r2 = 2131823934; // 0x7f110d3e float:1.9280682E38 double:1.053260969E-314;
        r0 = r17;
        r2 = r0.findViewById(r2);
        r3.moU = r2;
        r2 = 2131823936; // 0x7f110d40 float:1.9280686E38 double:1.05326097E-314;
        r0 = r17;
        r2 = r0.findViewById(r2);
        r3.moV = r2;
        r2 = 2131823928; // 0x7f110d38 float:1.928067E38 double:1.053260966E-314;
        r0 = r17;
        r2 = r0.findViewById(r2);
        r3.moW = r2;
        r2 = 2131823929; // 0x7f110d39 float:1.9280672E38 double:1.0532609663E-314;
        r0 = r17;
        r2 = r0.findViewById(r2);
        r2 = (android.widget.ImageView) r2;
        r3.moX = r2;
        r2 = 2131823930; // 0x7f110d3a float:1.9280674E38 double:1.053260967E-314;
        r0 = r17;
        r2 = r0.findViewById(r2);
        r3.moZ = r2;
        r2 = 2131823919; // 0x7f110d2f float:1.9280651E38 double:1.0532609614E-314;
        r0 = r17;
        r2 = r0.findViewById(r2);
        r2 = (android.widget.ImageView) r2;
        r3.moY = r2;
        r2 = 2131823931; // 0x7f110d3b float:1.9280676E38 double:1.0532609673E-314;
        r0 = r17;
        r2 = r0.findViewById(r2);
        r2 = (android.widget.TextView) r2;
        r3.mpa = r2;
        r2 = 2131823932; // 0x7f110d3c float:1.9280678E38 double:1.053260968E-314;
        r0 = r17;
        r2 = r0.findViewById(r2);
        r2 = (android.widget.TextView) r2;
        r3.mpb = r2;
        r2 = 2131823933; // 0x7f110d3d float:1.928068E38 double:1.0532609683E-314;
        r0 = r17;
        r2 = r0.findViewById(r2);
        r2 = (android.widget.TextView) r2;
        r3.mpc = r2;
        r2 = 2131823939; // 0x7f110d43 float:1.9280692E38 double:1.053260971E-314;
        r0 = r17;
        r2 = r0.findViewById(r2);
        r2 = (android.widget.ImageView) r2;
        r3.mpd = r2;
        r2 = 2131823940; // 0x7f110d44 float:1.9280694E38 double:1.0532609717E-314;
        r0 = r17;
        r2 = r0.findViewById(r2);
        r2 = (android.widget.TextView) r2;
        r3.mpe = r2;
        r2 = 2131823941; // 0x7f110d45 float:1.9280696E38 double:1.053260972E-314;
        r0 = r17;
        r2 = r0.findViewById(r2);
        r2 = (android.widget.TextView) r2;
        r3.mpf = r2;
        r2 = 2131823935; // 0x7f110d3f float:1.9280684E38 double:1.0532609693E-314;
        r0 = r17;
        r2 = r0.findViewById(r2);
        r2 = (android.widget.TextView) r2;
        r3.mpg = r2;
        r2 = 2131823937; // 0x7f110d41 float:1.9280688E38 double:1.0532609703E-314;
        r0 = r17;
        r2 = r0.findViewById(r2);
        r2 = (android.widget.TextView) r2;
        r3.mph = r2;
        r0 = r17;
        r0.setTag(r3);
        r12 = r3;
    L_0x00eb:
        r0 = r16;
        r1 = r19;
        r0.a(r12, r1);
        r0 = r19;
        r2 = r0.field_favProto;
        r10 = r2.wiv;
        r2 = r10.size();
        r3 = 2;
        if (r2 >= r3) goto L_0x0117;
    L_0x00ff:
        r2 = "MicroMsg.Fav.FavNoteListItem";
        r3 = "no other item";
        com.tencent.mm.sdk.platformtools.ab.e(r2, r3);
        r2 = 74634; // 0x1238a float:1.04585E-40 double:3.6874E-319;
        com.tencent.matrix.trace.core.AppMethodBeat.o(r2);
    L_0x010e:
        return r17;
    L_0x010f:
        r2 = r17.getTag();
        r2 = (com.tencent.mm.plugin.fav.ui.d.h.a) r2;
        r12 = r2;
        goto L_0x00eb;
    L_0x0117:
        r9 = -1;
        r8 = 0;
        r7 = r10.size();
        r6 = 0;
        r5 = -1;
        r4 = 1;
        r2 = 0;
        r3 = r2;
        r13 = r8;
    L_0x0123:
        r2 = r10.size();
        if (r3 >= r2) goto L_0x01ae;
    L_0x0129:
        r2 = r10.get(r3);
        r2 = (com.tencent.mm.protocal.protobuf.aar) r2;
        if (r3 != 0) goto L_0x0175;
    L_0x0131:
        r8 = new com.tencent.mm.vfs.b;
        r11 = com.tencent.mm.plugin.fav.a.b.b(r2);
        r8.<init>(r11);
        r11 = r8.exists();
        if (r11 != 0) goto L_0x014b;
    L_0x0140:
        r0 = r19;
        com.tencent.mm.plugin.fav.ui.l.b(r0, r2);
        r8 = r13;
    L_0x0146:
        r2 = r3 + 1;
        r3 = r2;
        r13 = r8;
        goto L_0x0123;
    L_0x014b:
        r2 = r2.whb;
        if (r2 != 0) goto L_0x0173;
    L_0x014f:
        r2 = new com.tencent.mm.g.a.ld;
        r2.<init>();
        r11 = r2.cGU;
        r14 = 10;
        r11.type = r14;
        r11 = r2.cGU;
        r0 = r19;
        r14 = r0.field_localId;
        r11.field_localId = r14;
        r11 = r2.cGU;
        r8 = r8.dMD();
        r8 = com.tencent.mm.vfs.j.w(r8);
        r11.path = r8;
        r8 = com.tencent.mm.sdk.b.a.xxA;
        r8.m(r2);
    L_0x0173:
        r8 = r13;
        goto L_0x0146;
    L_0x0175:
        r8 = r2.dataType;
        r11 = 2;
        if (r8 == r11) goto L_0x0185;
    L_0x017a:
        r8 = r2.dataType;
        r11 = 4;
        if (r8 == r11) goto L_0x0185;
    L_0x017f:
        r8 = r2.dataType;
        r11 = 15;
        if (r8 != r11) goto L_0x018c;
    L_0x0185:
        r13 = r13 + 1;
        r6 = 1;
        r8 = -1;
        if (r9 != r8) goto L_0x018c;
    L_0x018b:
        r9 = r3;
    L_0x018c:
        r8 = r2.dataType;
        switch(r8) {
            case 1: goto L_0x0197;
            case 2: goto L_0x0191;
            case 3: goto L_0x0194;
            case 4: goto L_0x0191;
            case 5: goto L_0x0194;
            case 6: goto L_0x0194;
            case 7: goto L_0x0194;
            case 8: goto L_0x0194;
            case 9: goto L_0x0191;
            case 10: goto L_0x0194;
            case 11: goto L_0x0194;
            case 12: goto L_0x0191;
            case 13: goto L_0x0191;
            case 14: goto L_0x0194;
            case 15: goto L_0x0191;
            case 16: goto L_0x0194;
            case 17: goto L_0x0191;
            case 18: goto L_0x0191;
            case 19: goto L_0x0191;
            case 20: goto L_0x0194;
            default: goto L_0x0191;
        };
    L_0x0191:
        r4 = 0;
        r8 = r13;
        goto L_0x0146;
    L_0x0194:
        r5 = r3;
        r8 = r13;
        goto L_0x0146;
    L_0x0197:
        r2 = r2.desc;
        r8 = "";
        r2 = com.tencent.mm.sdk.platformtools.bo.bc(r2, r8);
        r2 = r2.trim();
        r2 = r2.length();
        if (r2 > 0) goto L_0x0191;
    L_0x01aa:
        r7 = r7 + -1;
        r8 = r13;
        goto L_0x0146;
    L_0x01ae:
        if (r4 == 0) goto L_0x01fd;
    L_0x01b0:
        r2 = 2;
        if (r7 != r2) goto L_0x01fd;
    L_0x01b3:
        r2 = 1;
    L_0x01b4:
        if (r2 == 0) goto L_0x02c6;
    L_0x01b6:
        if (r5 <= 0) goto L_0x02c6;
    L_0x01b8:
        r2 = r10.get(r5);
        r2 = (com.tencent.mm.protocal.protobuf.aar) r2;
        r3 = r2.dataType;
        r4 = 3;
        if (r3 != r4) goto L_0x01ff;
    L_0x01c3:
        r3 = r12.moS;
        r4 = 8;
        r3.setVisibility(r4);
        r3 = r12.moT;
        r4 = 8;
        r3.setVisibility(r4);
        r3 = r12.moU;
        r4 = 0;
        r3.setVisibility(r4);
        r3 = r12.moV;
        r4 = 8;
        r3.setVisibility(r4);
        r3 = r12.mpg;
        r0 = r16;
        r4 = r0.mhy;
        r4 = r4.context;
        r2 = r2.duration;
        r6 = (long) r2;
        r2 = com.tencent.mm.plugin.fav.a.b.iu(r6);
        r2 = (int) r2;
        r2 = com.tencent.mm.plugin.fav.ui.k.K(r4, r2);
        r3.setText(r2);
    L_0x01f5:
        r2 = 74634; // 0x1238a float:1.04585E-40 double:3.6874E-319;
        com.tencent.matrix.trace.core.AppMethodBeat.o(r2);
        goto L_0x010e;
    L_0x01fd:
        r2 = 0;
        goto L_0x01b4;
    L_0x01ff:
        r3 = r2.dataType;
        r4 = 20;
        if (r3 != r4) goto L_0x0238;
    L_0x0205:
        r3 = r12.moS;
        r4 = 8;
        r3.setVisibility(r4);
        r3 = r12.moT;
        r4 = 8;
        r3.setVisibility(r4);
        r3 = r12.moU;
        r4 = 8;
        r3.setVisibility(r4);
        r3 = r12.moV;
        r4 = 0;
        r3.setVisibility(r4);
        r3 = r12.mph;
        r0 = r16;
        r4 = r0.mhy;
        r4 = r4.context;
        r2 = r2.duration;
        r6 = (long) r2;
        r2 = com.tencent.mm.plugin.fav.a.b.iu(r6);
        r2 = (int) r2;
        r2 = com.tencent.mm.plugin.fav.ui.k.K(r4, r2);
        r3.setText(r2);
        goto L_0x01f5;
    L_0x0238:
        r4 = 0;
        r3 = r2.dataType;
        r5 = 6;
        if (r3 != r5) goto L_0x02a4;
    L_0x023e:
        r3 = 2131230798; // 0x7f08004e float:1.8077659E38 double:1.0529679207E-314;
        r5 = r2.wgT;
        r5 = r5.why;
        r2 = r2.wgT;
        r2 = r2.hHV;
        r6 = com.tencent.mm.sdk.platformtools.bo.isNullOrNil(r2);
        if (r6 == 0) goto L_0x0298;
    L_0x024f:
        r2 = r5.cIK;
        r2 = com.tencent.mm.plugin.fav.ui.k.Md(r2);
        if (r2 == 0) goto L_0x0294;
    L_0x0257:
        r2 = r5.cIK;
    L_0x0259:
        r4 = r5.label;
        r5 = r2;
    L_0x025c:
        r2 = r12.moU;
        r6 = 8;
        r2.setVisibility(r6);
        r2 = r12.moV;
        r6 = 8;
        r2.setVisibility(r6);
        r2 = r12.moS;
        r6 = 8;
        r2.setVisibility(r6);
        r2 = r12.moT;
        r6 = 0;
        r2.setVisibility(r6);
        r2 = r12.mpd;
        r2.setImageResource(r3);
        r2 = r12.mpe;
        r2.setText(r5);
        r2 = com.tencent.mm.sdk.platformtools.bo.isNullOrNil(r4);
        if (r2 != 0) goto L_0x02bd;
    L_0x0287:
        r2 = r12.mpf;
        r2.setText(r4);
        r2 = r12.mpf;
        r3 = 0;
        r2.setVisibility(r3);
        goto L_0x01f5;
    L_0x0294:
        r2 = r5.label;
        r5 = r2;
        goto L_0x025c;
    L_0x0298:
        r4 = r5.cIK;
        r4 = com.tencent.mm.plugin.fav.ui.k.Md(r4);
        if (r4 == 0) goto L_0x0259;
    L_0x02a0:
        r4 = r5.cIK;
        r5 = r2;
        goto L_0x025c;
    L_0x02a4:
        r3 = r2.wgo;
        r3 = com.tencent.mm.plugin.fav.ui.c.LX(r3);
        r5 = r2.title;
        r4 = r2.desc;
        r6 = com.tencent.mm.sdk.platformtools.bo.isNullOrNil(r4);
        if (r6 == 0) goto L_0x025c;
    L_0x02b4:
        r6 = r2.wgu;
        r2 = (float) r6;
        r2 = com.tencent.mm.plugin.fav.a.b.aC(r2);
        r4 = r2;
        goto L_0x025c;
    L_0x02bd:
        r2 = r12.mpf;
        r3 = 8;
        r2.setVisibility(r3);
        goto L_0x01f5;
    L_0x02c6:
        r2 = r12.moS;
        r3 = 0;
        r2.setVisibility(r3);
        r2 = r12.moT;
        r3 = 8;
        r2.setVisibility(r3);
        r2 = r12.moU;
        r3 = 8;
        r2.setVisibility(r3);
        r2 = r12.moV;
        r3 = 8;
        r2.setVisibility(r3);
        r11 = new java.util.ArrayList;
        r11.<init>();
        r3 = 0;
        r2 = 1;
        r5 = r2;
    L_0x02e9:
        r2 = r10.size();
        if (r5 >= r2) goto L_0x04f0;
    L_0x02ef:
        r2 = r10.get(r5);
        r2 = (com.tencent.mm.protocal.protobuf.aar) r2;
        r4 = r2.dataType;
        r7 = 1;
        if (r4 != r7) goto L_0x03c0;
    L_0x02fa:
        r2 = r2.desc;
        r4 = 0;
        r7 = com.tencent.mm.sdk.platformtools.bo.isNullOrNil(r2);
        if (r7 != 0) goto L_0x0613;
    L_0x0303:
        r4 = r2.length();
        r7 = 1000; // 0x3e8 float:1.401E-42 double:4.94E-321;
        if (r4 <= r7) goto L_0x0312;
    L_0x030b:
        r4 = 0;
        r7 = 1000; // 0x3e8 float:1.401E-42 double:4.94E-321;
        r2 = r2.substring(r4, r7);
    L_0x0312:
        r4 = "&lt;";
        r7 = "<";
        r2 = r2.replaceAll(r4, r7);
        r4 = "&gt;";
        r7 = ">";
        r2 = r2.replaceAll(r4, r7);
        r4 = "&amp;";
        r7 = "&";
        r2 = r2.replaceAll(r4, r7);
        r4 = " ";
        r7 = " ";
        r2 = r2.replace(r4, r7);
        r4 = "\n";
        r2 = r2.split(r4);
        r8 = r2;
    L_0x0342:
        if (r8 == 0) goto L_0x03d6;
    L_0x0344:
        r2 = r8.length;
        if (r2 <= 0) goto L_0x03d6;
    L_0x0347:
        r14 = new java.util.ArrayList;
        r14.<init>();
        r4 = 0;
        r2 = 0;
    L_0x034e:
        r7 = r8.length;
        if (r2 >= r7) goto L_0x0610;
    L_0x0351:
        r7 = r8[r2];
        r7 = r7.trim();
        r7 = com.tencent.mm.sdk.platformtools.bo.isNullOrNil(r7);
        if (r7 != 0) goto L_0x0389;
    L_0x035d:
        r4 = r8[r2];
        r14.add(r4);
    L_0x0362:
        r4 = "";
        r7 = r2 + 1;
        r2 = r4;
    L_0x0368:
        r4 = r8.length;
        if (r7 >= r4) goto L_0x038c;
    L_0x036b:
        r4 = new java.lang.StringBuilder;
        r4.<init>();
        r2 = r4.append(r2);
        r4 = r8[r7];
        r2 = r2.append(r4);
        r4 = " ";
        r2 = r2.append(r4);
        r2 = r2.toString();
        r4 = r7 + 1;
        r7 = r4;
        goto L_0x0368;
    L_0x0389:
        r2 = r2 + 1;
        goto L_0x034e;
    L_0x038c:
        r2 = r2.trim();
        r4 = r2.length();
        if (r4 <= 0) goto L_0x0399;
    L_0x0396:
        r14.add(r2);
    L_0x0399:
        r4 = 0;
        r2 = r14.size();
        if (r2 <= 0) goto L_0x060d;
    L_0x03a0:
        r2 = com.tencent.mm.sdk.platformtools.bo.isNullOrNil(r3);
        if (r2 == 0) goto L_0x060d;
    L_0x03a6:
        r2 = 0;
        r2 = r14.get(r2);
        r2 = (java.lang.String) r2;
        r3 = 1;
        r4 = r3;
    L_0x03af:
        r3 = r14.size();
        if (r4 >= r3) goto L_0x0616;
    L_0x03b5:
        r3 = r14.get(r4);
        r11.add(r3);
        r3 = r4 + 1;
        r4 = r3;
        goto L_0x03af;
    L_0x03c0:
        r7 = r17.getContext();
        r4 = "";
        r8 = r2.dataType;
        switch(r8) {
            case 3: goto L_0x03db;
            case 4: goto L_0x03cc;
            case 5: goto L_0x0407;
            case 6: goto L_0x044b;
            case 7: goto L_0x0429;
            case 8: goto L_0x049d;
            case 9: goto L_0x03cc;
            case 10: goto L_0x04c0;
            case 11: goto L_0x03cc;
            case 12: goto L_0x03cc;
            case 13: goto L_0x03cc;
            case 14: goto L_0x03cc;
            case 15: goto L_0x03cc;
            case 16: goto L_0x04e7;
            case 17: goto L_0x03cc;
            case 18: goto L_0x03cc;
            case 19: goto L_0x03cc;
            case 20: goto L_0x03db;
            default: goto L_0x03cc;
        };
    L_0x03cc:
        r2 = r4;
    L_0x03cd:
        r4 = com.tencent.mm.sdk.platformtools.bo.isNullOrNil(r2);
        if (r4 != 0) goto L_0x03d6;
    L_0x03d3:
        r11.add(r2);
    L_0x03d6:
        r2 = r5 + 1;
        r5 = r2;
        goto L_0x02e9;
    L_0x03db:
        r4 = new java.lang.StringBuilder;
        r4.<init>();
        r8 = 2131299748; // 0x7f090da4 float:1.8217506E38 double:1.0530019865E-314;
        r8 = com.tencent.mm.plugin.fav.ui.k.L(r7, r8);
        r4 = r4.append(r8);
        r8 = " ";
        r4 = r4.append(r8);
        r2 = r2.duration;
        r14 = (long) r2;
        r2 = com.tencent.mm.plugin.fav.a.b.iu(r14);
        r2 = (int) r2;
        r2 = com.tencent.mm.plugin.fav.ui.k.K(r7, r2);
        r2 = r4.append(r2);
        r2 = r2.toString();
        goto L_0x03cd;
    L_0x0407:
        r4 = new java.lang.StringBuilder;
        r4.<init>();
        r8 = 2131299746; // 0x7f090da2 float:1.8217502E38 double:1.0530019855E-314;
        r7 = com.tencent.mm.plugin.fav.ui.k.L(r7, r8);
        r4 = r4.append(r7);
        r7 = " ";
        r4 = r4.append(r7);
        r2 = r2.title;
        r2 = r4.append(r2);
        r2 = r2.toString();
        goto L_0x03cd;
    L_0x0429:
        r4 = new java.lang.StringBuilder;
        r4.<init>();
        r8 = 2131299743; // 0x7f090d9f float:1.8217496E38 double:1.053001984E-314;
        r7 = com.tencent.mm.plugin.fav.ui.k.L(r7, r8);
        r4 = r4.append(r7);
        r7 = " ";
        r4 = r4.append(r7);
        r2 = r2.title;
        r2 = r4.append(r2);
        r2 = r2.toString();
        goto L_0x03cd;
    L_0x044b:
        r2 = r2.wgT;
        r2 = r2.why;
        r4 = r2.cIK;
        r4 = com.tencent.mm.plugin.fav.ui.k.Md(r4);
        if (r4 == 0) goto L_0x047a;
    L_0x0457:
        r4 = new java.lang.StringBuilder;
        r4.<init>();
        r8 = 2131299742; // 0x7f090d9e float:1.8217494E38 double:1.0530019835E-314;
        r7 = com.tencent.mm.plugin.fav.ui.k.L(r7, r8);
        r4 = r4.append(r7);
        r7 = " ";
        r4 = r4.append(r7);
        r2 = r2.cIK;
        r2 = r4.append(r2);
        r2 = r2.toString();
        goto L_0x03cd;
    L_0x047a:
        r4 = new java.lang.StringBuilder;
        r4.<init>();
        r8 = 2131299742; // 0x7f090d9e float:1.8217494E38 double:1.0530019835E-314;
        r7 = com.tencent.mm.plugin.fav.ui.k.L(r7, r8);
        r4 = r4.append(r7);
        r7 = " ";
        r4 = r4.append(r7);
        r2 = r2.label;
        r2 = r4.append(r2);
        r2 = r2.toString();
        goto L_0x03cd;
    L_0x049d:
        r4 = new java.lang.StringBuilder;
        r4.<init>();
        r8 = 2131299739; // 0x7f090d9b float:1.8217488E38 double:1.053001982E-314;
        r7 = com.tencent.mm.plugin.fav.ui.k.L(r7, r8);
        r4 = r4.append(r7);
        r7 = " ";
        r4 = r4.append(r7);
        r2 = r2.title;
        r2 = r4.append(r2);
        r2 = r2.toString();
        goto L_0x03cd;
    L_0x04c0:
        r4 = new java.lang.StringBuilder;
        r4.<init>();
        r8 = 2131299663; // 0x7f090d4f float:1.8217334E38 double:1.0530019445E-314;
        r7 = com.tencent.mm.plugin.fav.ui.k.L(r7, r8);
        r4 = r4.append(r7);
        r7 = " ";
        r4 = r4.append(r7);
        r2 = r2.wgT;
        r2 = r2.whC;
        r2 = r2.title;
        r2 = r4.append(r2);
        r2 = r2.toString();
        goto L_0x03cd;
    L_0x04e7:
        r2 = 2131299644; // 0x7f090d3c float:1.8217295E38 double:1.053001935E-314;
        r2 = com.tencent.mm.plugin.fav.ui.k.L(r7, r2);
        goto L_0x03cd;
    L_0x04f0:
        r2 = com.tencent.mm.sdk.platformtools.bo.isNullOrNil(r3);
        if (r2 != 0) goto L_0x0547;
    L_0x04f6:
        r2 = r12.mpb;
        r4 = r12.mpb;
        r4 = r4.getContext();
        r5 = r12.mpb;
        r5 = r5.getTextSize();
        r3 = com.tencent.mm.pluginsdk.ui.e.j.b(r4, r3, r5);
        r2.setText(r3);
        r2 = r12.mpb;
        r3 = 0;
        r2.setVisibility(r3);
        r2 = r11.size();
        if (r2 <= 0) goto L_0x0540;
    L_0x0517:
        r2 = r12.mpb;
        r3 = 1;
        r2.setMaxLines(r3);
    L_0x051d:
        r4 = new java.lang.StringBuffer;
        r4.<init>();
        r2 = 0;
        r3 = r2;
    L_0x0524:
        r2 = r11.size();
        if (r3 >= r2) goto L_0x054f;
    L_0x052a:
        r2 = 2;
        if (r3 >= r2) goto L_0x054f;
    L_0x052d:
        r2 = r11.get(r3);
        r2 = (java.lang.String) r2;
        r4.append(r2);
        r2 = "\n";
        r4.append(r2);
        r2 = r3 + 1;
        r3 = r2;
        goto L_0x0524;
    L_0x0540:
        r2 = r12.mpb;
        r3 = 3;
        r2.setMaxLines(r3);
        goto L_0x051d;
    L_0x0547:
        r2 = r12.mpb;
        r3 = 8;
        r2.setVisibility(r3);
        goto L_0x051d;
    L_0x054f:
        r2 = r4.length();
        if (r2 == 0) goto L_0x05d1;
    L_0x0555:
        r2 = 0;
        r3 = r4.length();
        r3 = r3 + -1;
        r2 = r4.substring(r2, r3);
        r3 = r12.mpc;
        r4 = r12.mpc;
        r4 = r4.getContext();
        r5 = r12.mpc;
        r5 = r5.getTextSize();
        r2 = com.tencent.mm.pluginsdk.ui.e.j.b(r4, r2, r5);
        r3.setText(r2);
        r2 = r12.mpc;
        r3 = 0;
        r2.setVisibility(r3);
    L_0x057b:
        if (r6 == 0) goto L_0x0604;
    L_0x057d:
        r2 = r12.moW;
        r3 = 0;
        r2.setVisibility(r3);
        r3 = r10.get(r9);
        r3 = (com.tencent.mm.protocal.protobuf.aar) r3;
        r2 = r10.get(r9);
        r2 = (com.tencent.mm.protocal.protobuf.aar) r2;
        r2 = r2.dataType;
        r4 = 2;
        if (r2 != r4) goto L_0x05d9;
    L_0x0594:
        r2 = r12.moX;
        r5 = 1;
        r6 = moM;
        r4 = r19;
        r7 = r6;
        com.tencent.mm.plugin.fav.ui.l.a(r2, r3, r4, r5, r6, r7);
        r2 = r12.moY;
        r3 = 8;
        r2.setVisibility(r3);
    L_0x05a6:
        r2 = 1;
        if (r13 <= r2) goto L_0x05f4;
    L_0x05a9:
        r2 = r12.mpa;
        r3 = r17.getContext();
        r4 = 2131299648; // 0x7f090d40 float:1.8217303E38 double:1.053001937E-314;
        r5 = 1;
        r5 = new java.lang.Object[r5];
        r6 = 0;
        r7 = java.lang.Integer.valueOf(r13);
        r5[r6] = r7;
        r3 = r3.getString(r4, r5);
        r2.setText(r3);
        r2 = r12.mpa;
        r3 = 0;
        r2.setVisibility(r3);
        r2 = r12.moZ;
        r3 = 0;
        r2.setVisibility(r3);
        goto L_0x01f5;
    L_0x05d1:
        r2 = r12.mpc;
        r3 = 8;
        r2.setVisibility(r3);
        goto L_0x057b;
    L_0x05d9:
        r2 = r12.moY;
        r4 = 0;
        r2.setVisibility(r4);
        r0 = r16;
        r4 = r0.mhy;
        r5 = r12.moX;
        r8 = r3.cvq;
        r9 = 2131230817; // 0x7f080061 float:1.8077697E38 double:1.05296793E-314;
        r10 = moM;
        r6 = r3;
        r7 = r19;
        r11 = r10;
        r4.a(r5, r6, r7, r8, r9, r10, r11);
        goto L_0x05a6;
    L_0x05f4:
        r2 = r12.mpa;
        r3 = 8;
        r2.setVisibility(r3);
        r2 = r12.moZ;
        r3 = 8;
        r2.setVisibility(r3);
        goto L_0x01f5;
    L_0x0604:
        r2 = r12.moW;
        r3 = 8;
        r2.setVisibility(r3);
        goto L_0x01f5;
    L_0x060d:
        r2 = r3;
        goto L_0x03af;
    L_0x0610:
        r2 = r4;
        goto L_0x0362;
    L_0x0613:
        r8 = r4;
        goto L_0x0342;
    L_0x0616:
        r3 = r2;
        goto L_0x03d6;
        */
        throw new UnsupportedOperationException("Method not decompiled: com.tencent.mm.plugin.fav.ui.d.h.a(android.view.View, android.view.ViewGroup, com.tencent.mm.plugin.fav.a.g):android.view.View");
    }

    public final void a(View view, abh abh) {
        AppMethodBeat.i(74635);
        a aVar = (a) view.getTag();
        ((y) g.K(y.class)).a(view.getContext(), aVar.mgf, abh);
        AppMethodBeat.o(74635);
    }
}
