package xy1; import android.content.Context; import android.graphics.Bitmap; import android.graphics.Point; import android.graphics.RectF; import android.graphics.drawable.Drawable; import android.text.TextPaint; import android.text.style.ImageSpan; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import br1.a6; import br1.z5; import bw3.ci1; import bw3.fl1; import bw3.g21; import bw3.i01; import bw3.kz0; import bw3.x31; import bw3.z81; import com.tencent.mm.R; import com.tencent.mm.plugin.finder.live.model.FinderLiveService; import com.tencent.mm.plugin.finder.utils.a5; import com.tencent.mm.plugin.finder.utils.s0; import com.tencent.mm.plugin.finder.view.DanmakuStrokeTextView; import com.tencent.mm.protocal.protobuf.FinderContact; import com.tencent.mm.sdk.platformtools.BuildInfo; import com.tencent.mm.sdk.platformtools.Log; import com.tencent.mm.sdk.platformtools.MMApplicationContext; import dr1.c0; import dr1.k0; import dr1.l; import ek0.w2; import er1.b; import ft1.w; import java.util.ArrayList; import java.util.Iterator; import java.util.LinkedList; import java.util.Random; import java.util.regex.Pattern; import kv3.u; import lh4.f0; import lh4.m; import qk.c; import rk.f; import rs1.d; import t32.e2; import tt1.j0; import tt1.v0; import wg4.b0; import wg4.g; import wg4.h; import wg4.n; import y24.r; import yz3.j; public final class o extends f { /* renamed from: a reason: collision with root package name */ public final Context f341628a; /* renamed from: b reason: collision with root package name */ public final b f341629b; /* renamed from: c reason: collision with root package name */ public final String f341630c = "LiveDanmakuRender"; public static final class a extends f.a { /* renamed from: d reason: collision with root package name */ public final View f341631d; /* renamed from: e reason: collision with root package name */ public final g f341632e = h.a(C6230a.f341637d); /* renamed from: f reason: collision with root package name */ public final g f341633f = h.a(new b(this)); /* renamed from: g reason: collision with root package name */ public final DanmakuStrokeTextView f341634g; /* renamed from: h reason: collision with root package name */ public final View f341635h; /* renamed from: i reason: collision with root package name */ public final View f341636i; /* renamed from: xy1.o$a$a reason: collision with other inner class name */ public static final class C6230a extends lh4.o implements kh4.a<Double> { /* renamed from: d reason: collision with root package name */ public static final C6230a f341637d = new C6230a(); public C6230a() { super(0); } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public Double invoke() { int i15 = c.c().f290117j; int i16 = c.c().f290118k; if (i15 < i16) { i15 = i16; } return Double.valueOf(((double) i15) * 1.5d); } } public static final class b extends lh4.o implements kh4.a<Integer> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ a f341638d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public b(a aVar) { super(0); this.f341638d = aVar; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public Integer invoke() { return Integer.valueOf(View.MeasureSpec.makeMeasureSpec((int) ((Number) ((n) this.f341638d.f341632e).getValue()).doubleValue(), Integer.MIN_VALUE)); } } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public a(View view) { super(view); m.g(view, "itemView"); this.f341631d = view; View findViewById = view.findViewById(R.id.i8m); m.f(findViewById, "itemView.findViewById(R.…_comment_item_content_tv)"); this.f341634g = (DanmakuStrokeTextView) findViewById; View findViewById2 = view.findViewById(R.id.i8i); m.f(findViewById2, "itemView.findViewById(R.id.live_comment_container)"); this.f341635h = findViewById2; View findViewById3 = view.findViewById(R.id.c7g); m.f(findViewById3, "itemView.findViewById(R.id.comment_like_ui_root)"); this.f341636i = findViewById3; } @Override // rk.f.a private final View c(View view, float f15, float f16) { boolean z15; RectF rectF = new RectF(); ArrayList<View> touchables = view.getTouchables(); m.f(touchables, "view.touchables"); ArrayList<View> arrayList = new ArrayList(); Iterator<T> it = touchables.iterator(); while (true) { boolean z16 = true; z15 = false; if (!it.hasNext()) { break; } T next = it.next(); if (next.getVisibility() != 0) { z16 = false; } if (z16) { arrayList.add(next); } } View view2 = null; for (View view3 : arrayList) { float x15 = view3.getX(); float y15 = view3.getY(); rectF.set(x15, y15, ((float) view3.getMeasuredWidth()) + x15, ((float) view3.getMeasuredWidth()) + y15); if (rectF.contains(f15, f16)) { if (m.b(view3, view)) { z15 = true; } else if (!(view3 instanceof ViewGroup)) { return view3; } else { view2 = c(view, f15 - x15, f16 - f15); } } } return (!z15 || view2 != null) ? view2 : view; } public static final void g(a aVar, boolean z15) { if (z15) { DanmakuStrokeTextView danmakuStrokeTextView = aVar.f341634g; danmakuStrokeTextView.setTextColor(danmakuStrokeTextView.getContext().getResources().getColor(R.color.f357977an)); aVar.f341635h.setBackgroundResource(R.drawable.a1x); return; } DanmakuStrokeTextView danmakuStrokeTextView2 = aVar.f341634g; danmakuStrokeTextView2.setTextColor(danmakuStrokeTextView2.getContext().getResources().getColor(R.color.BW_100_Alpha_0_8)); aVar.f341635h.setBackground(null); } @Override // rk.f.a public View d(sk.h hVar) { m.g(hVar, "touchPoint"); View view = this.f295073a; m.f(view, "mItemView"); Point point = hVar.f302191b; return c(view, ((float) point.x) - hVar.f302193d, ((float) point.y) - hVar.f302194e); } @Override // rk.f.a public void e(int i15, int i16) { int intValue = ((Number) ((n) this.f341633f).getValue()).intValue(); if (i15 < intValue) { i15 = intValue; } super.e(i15, i16); } public void f(g gVar) { z5 z5Var; Integer num; boolean z15; int i15; boolean z16; boolean z17; boolean z18; boolean z19; m.g(gVar, "config"); if (a5.f118672a.W()) { Log.i("ViewDanmakuRender", "debug setBackground config:" + gVar); } if (gVar.f341596b) { Object obj = gVar.f341597c; et1.b bVar = null; if (obj instanceof z5) { z5Var = (z5) obj; } else { z5Var = null; } if (z5Var != null) { g21 a15 = w.B.a(z5Var); if (a15 != null) { num = Integer.valueOf(a15.f22245d); } else { num = null; } if (num != null && num.intValue() == 2) { boolean z25 = gVar.f341595a; int i16 = a15.f22247f; if (z25) { DanmakuStrokeTextView danmakuStrokeTextView = this.f341634g; danmakuStrokeTextView.setTextColor(danmakuStrokeTextView.getContext().getResources().getColor(R.color.f357977an)); View view = this.f341635h; fr1.a aVar = fr1.a.f216454a; boolean z26 = true; if (40 > i16 || i16 >= 50) { z15 = false; } else { z15 = true; } if (z15) { i15 = R.drawable.f361063a21; } else { if (50 > i16 || i16 >= 60) { z16 = false; } else { z16 = true; } if (z16) { i15 = R.drawable.f361065a23; } else { if (60 > i16 || i16 >= 70) { z17 = false; } else { z17 = true; } if (z17) { i15 = R.drawable.a25; } else { if (70 > i16 || i16 >= 80) { z18 = false; } else { z18 = true; } if (z18) { i15 = R.drawable.a27; } else { if (80 > i16 || i16 >= 90) { z19 = false; } else { z19 = true; } if (z19) { i15 = R.drawable.a29; } else { if (90 > i16 || i16 >= 100) { z26 = false; } if (z26) { i15 = R.drawable.a2a; } else { i15 = R.drawable.a1z; } } } } } } Drawable drawable = MMApplicationContext.getContext().getResources().getDrawable(i15, null); m.f(drawable, "getContext().resources.getDrawable(id, null)"); view.setBackground(drawable); return; } DanmakuStrokeTextView danmakuStrokeTextView2 = this.f341634g; danmakuStrokeTextView2.setTextColor(danmakuStrokeTextView2.getContext().getResources().getColor(R.color.BW_100_Alpha_0_8)); this.f341635h.setBackground(fr1.a.f216454a.a(i16)); } else if (num != null && num.intValue() == 4) { g(this, gVar.f341595a); } } else { if (obj instanceof et1.b) { bVar = (et1.b) obj; } if (bVar != null) { g(this, gVar.f341595a); } } } else { g(this, gVar.f341595a); } } } public o(Context context, b bVar) { m.g(context, "context"); m.g(bVar, "buContext"); this.f341628a = context; this.f341629b = bVar; } @Override // rk.f, rk.a public boolean a(pk.a<?, ?> aVar) { return aVar instanceof p; } @Override // rk.f public int f(Object obj) { return 2; } @Override // rk.f public void h(int i15, f.a aVar, pk.f fVar) { b0 b0Var; b0 b0Var2; b0 b0Var3; if (!(aVar instanceof a)) { String str = this.f341630c; StringBuilder sb5 = new StringBuilder(); sb5.append("viewHolder:"); sb5.append(aVar); sb5.append(" error,data:"); sb5.append((Object) (fVar != null ? fVar.f283796x : null)); Log.e(str, sb5.toString()); return; } w.d n55 = ((w) this.f341629b.a(w.class)).n5(); if (n55 != null) { int ordinal = n55.f217446a.ordinal(); boolean z15 = false; if (ordinal == 0) { a aVar2 = (a) aVar; View view = aVar2.f341631d; k30.a aVar3 = new k30.a(); ThreadLocal<k30.a> threadLocal = k30.c.f244265a; aVar3.c(Float.valueOf(1.0f)); j30.a.d(view, aVar3.b(), "com/tencent/mm/plugin/finder/replay/bullet/LiveDanmakuRender", "onBindViewHolder", "(ILcom/tencent/mm/danmaku/render/ViewDanmakuRender$ViewHolder;Lcom/tencent/mm/danmaku/data/ViewDanmaku;)V", "android/view/View_EXEC_", "setAlpha", "(F)V"); view.setAlpha(((Float) aVar3.a(0)).floatValue()); j30.a.e(view, "com/tencent/mm/plugin/finder/replay/bullet/LiveDanmakuRender", "onBindViewHolder", "(ILcom/tencent/mm/danmaku/render/ViewDanmakuRender$ViewHolder;Lcom/tencent/mm/danmaku/data/ViewDanmaku;)V", "android/view/View_EXEC_", "setAlpha", "(F)V"); aVar2.f341634g.setTextColor(aVar2.f341631d.getContext().getResources().getColor(R.color.f357977an)); if (n55.f217447b) { DATA data = fVar != null ? fVar.f283796x : null; DATA data2 = data instanceof z5 ? data : null; if (data2 != null) { l("case1_NormalComment_" + data2.getContent()); if (data2.g()) { k(this.f341629b, aVar2, fVar, data2); } else { Log.e(this.f341630c, "bind view holder wrong msg type!"); } b0Var = b0.f332794a; } else { b0Var = null; } if (b0Var == null) { Log.e(this.f341630c, "bind view holder wrong mode and privilege config!"); return; } return; } Log.e(this.f341630c, "bind view holder wrong mode and privilege config!"); } else if (ordinal == 1) { a aVar4 = (a) aVar; View view2 = aVar4.f341631d; float f15 = ((w) this.f341629b.a(w.class)).f217426f; k30.a aVar5 = new k30.a(); ThreadLocal<k30.a> threadLocal2 = k30.c.f244265a; aVar5.c(Float.valueOf(f15)); j30.a.d(view2, aVar5.b(), "com/tencent/mm/plugin/finder/replay/bullet/LiveDanmakuRender", "onBindViewHolder", "(ILcom/tencent/mm/danmaku/render/ViewDanmakuRender$ViewHolder;Lcom/tencent/mm/danmaku/data/ViewDanmaku;)V", "android/view/View_EXEC_", "setAlpha", "(F)V"); view2.setAlpha(((Float) aVar5.a(0)).floatValue()); j30.a.e(view2, "com/tencent/mm/plugin/finder/replay/bullet/LiveDanmakuRender", "onBindViewHolder", "(ILcom/tencent/mm/danmaku/render/ViewDanmakuRender$ViewHolder;Lcom/tencent/mm/danmaku/data/ViewDanmaku;)V", "android/view/View_EXEC_", "setAlpha", "(F)V"); if (aVar4.f341631d.getAlpha() == 1.0f) { z15 = true; } if (z15) { aVar4.f341634g.setTextColor(aVar4.f341631d.getContext().getResources().getColor(R.color.f357977an)); } else { aVar4.f341634g.setTextColor(aVar4.f341631d.getContext().getResources().getColor(R.color.BW_100_Alpha_0_8)); } if (n55.f217447b) { DATA data3 = fVar != null ? fVar.f283796x : null; DATA data4 = data3 instanceof z5 ? data3 : null; if (data4 != null) { if (data4.g()) { l("case_2_Danmaku_privilege_" + ((long) fVar.f283774b) + '_' + data4.getContent()); k(this.f341629b, aVar4, fVar, data4); } else { l("case_3_Danmaku_comment_" + ((long) fVar.f283774b) + '_' + data4.getContent()); j(this.f341629b, aVar4, fVar, data4); } b0Var3 = b0.f332794a; } else { DATA data5 = fVar != null ? fVar.f283796x : null; DATA data6 = data5 instanceof et1.b ? data5 : null; if (data6 != null) { l("case_4_Danmaku_Box_" + ((long) fVar.f283774b) + '_' + data6.getContent()); b0Var3 = b0.f332794a; } else { b0Var3 = null; } } if (b0Var3 == null) { String str2 = this.f341630c; StringBuilder sb6 = new StringBuilder(); sb6.append("bind view holder with privilege error,"); sb6.append(fVar != null ? Long.valueOf((long) fVar.f283774b) : null); sb6.append(",data:"); sb6.append((Object) (fVar != null ? fVar.f283796x : null)); Log.e(str2, sb6.toString()); return; } return; } DATA data7 = fVar != null ? fVar.f283796x : null; DATA data8 = data7 instanceof z5 ? data7 : null; if (data8 != null) { l("case_4_Danmaku_normalComment_" + ((long) fVar.f283774b) + '_' + data8.getContent()); j(this.f341629b, aVar4, fVar, data8); b0Var2 = b0.f332794a; } else { DATA data9 = fVar != null ? fVar.f283796x : null; DATA data10 = data9 instanceof et1.b ? data9 : null; if (data10 != null) { l("case_5_Danmaku_normalBox_" + ((long) fVar.f283774b) + '_' + data10.getContent()); b0Var2 = b0.f332794a; } else { b0Var2 = null; } } if (b0Var2 == null) { String str3 = this.f341630c; StringBuilder sb7 = new StringBuilder(); sb7.append("bind view holder error,"); sb7.append(fVar != null ? Long.valueOf((long) fVar.f283774b) : null); sb7.append(",data:"); sb7.append((Object) (fVar != null ? fVar.f283796x : null)); Log.e(str3, sb7.toString()); } } } } @Override // rk.f public f.a i(int i15) { View inflate = LayoutInflater.from(this.f341628a).inflate(R.layout.apb, (ViewGroup) null); m.f(inflate, "from(context).inflate(R.…nt_danmaku_text_ui, null)"); return new a(inflate); } /* JADX WARN: Multi-variable type inference failed */ /* JADX WARN: Type inference failed for: r6v18, types: [br1.a6] */ /* JADX WARN: Type inference failed for: r6v21, types: [br1.a6] */ /* JADX WARN: Type inference failed for: r6v25 */ /* JADX WARN: Type inference failed for: r6v30 */ /* JADX WARNING: Removed duplicated region for block: B:143:0x0356 */ /* JADX WARNING: Removed duplicated region for block: B:144:0x035a */ /* JADX WARNING: Removed duplicated region for block: B:147:0x035f */ /* JADX WARNING: Removed duplicated region for block: B:148:0x03e8 */ /* JADX WARNING: Removed duplicated region for block: B:166:0x0421 */ /* JADX WARNING: Removed duplicated region for block: B:167:0x0424 */ /* JADX WARNING: Removed duplicated region for block: B:170:0x0500 */ /* JADX WARNING: Removed duplicated region for block: B:171:0x0505 */ /* JADX WARNING: Removed duplicated region for block: B:17:0x0054 */ /* JADX WARNING: Removed duplicated region for block: B:189:0x059d */ /* JADX WARNING: Removed duplicated region for block: B:190:0x059f */ /* JADX WARNING: Removed duplicated region for block: B:193:0x05c0 */ /* JADX WARNING: Removed duplicated region for block: B:194:0x0618 */ /* JADX WARNING: Removed duplicated region for block: B:21:0x0060 */ /* JADX WARNING: Removed duplicated region for block: B:22:0x0063 */ /* JADX WARNING: Removed duplicated region for block: B:234:0x0771 */ /* JADX WARNING: Removed duplicated region for block: B:238:0x07a0 */ /* JADX WARNING: Removed duplicated region for block: B:241:0x07dd */ /* JADX WARNING: Removed duplicated region for block: B:25:0x0068 */ /* JADX WARNING: Removed duplicated region for block: B:26:0x006f */ /* JADX WARNING: Removed duplicated region for block: B:287:0x08d0 */ /* JADX WARNING: Removed duplicated region for block: B:290:0x08d6 */ /* JADX WARNING: Removed duplicated region for block: B:297:0x08f0 */ /* JADX WARNING: Removed duplicated region for block: B:309:0x094d */ /* JADX WARNING: Removed duplicated region for block: B:312:0x098a */ /* JADX WARNING: Removed duplicated region for block: B:338:? A[RETURN, SYNTHETIC] */ /* JADX WARNING: Removed duplicated region for block: B:340:? A[RETURN, SYNTHETIC] */ /* JADX WARNING: Removed duplicated region for block: B:81:0x0262 */ public final void j(b bVar, a aVar, pk.f fVar, z5 z5Var) { String str; boolean z15; String str2; String content; FinderContact finderContact; boolean z16; FinderContact finderContact2; FinderContact finderContact3; boolean z17; String content2; boolean z18; String str3; String str4; String str5; String str6; String str7; LinkedList<g21> linkedList; kz0 kz02; char c15; int i15; u uVar; z81 z812; String str8; String str9; String str10; byte[] bArr; kz0 kz03; int i16; z81 z813; boolean z19; FinderContact finderContact4; boolean z25; i01 i012; boolean z26; aVar.f341634g.setNeedStroke(true); int type = z5Var.getType(); boolean z27 = false; if (type == 20035) { m.g(bVar, "liveBuContext"); if (((ft1.o) bVar.a(ft1.o.class)).f217324x) { if (!(b70.b.X0 != null)) { if (!(h70.a.f224614c1 != null)) { z26 = false; if (!z26) { z25 = true; Object q15 = z5Var.q(); i012 = !(q15 instanceof i01) ? (i01) q15 : null; if (i012 != null) { Log.i("DanmakuItemLocation", "[onBindPoiMsg]: payload is not FinderLiveAppMsgLocationInfo"); return; } fl1 fl12 = i012.f24353d; String str11 = fl12 != null ? fl12.f21742f : null; if (str11 == null || str11.length() == 0) { Log.i("DanmakuItemLocation", "[onBindPoiMsg]: city is null or empty:" + str11); return; } String str12 = i012.f24354e; if (str12 == null || str12.length() == 0) { z27 = true; } boolean z28 = !z27; c0.c cVar = c0.f202018j; Context context = aVar.f341634g.getContext(); m.f(context, "holder.contentTv.context"); TextPaint paint = aVar.f341634g.getPaint(); m.f(paint, "holder.contentTv.paint"); wg4.o<CharSequence, String, String> a15 = cVar.a(context, z25, z5Var, i012, str11, z28, paint); u uVar2 = new u(((hz.h) j.c(hz.h.class)).Vr0(MMApplicationContext.getContext(), ((String) a15.f332816e) + ((String) a15.f332817f), 0.0f)); Context context2 = aVar.f341634g.getContext(); m.f(context2, "holder.contentTv.context"); cVar.c(context2, i012, uVar2, z28, str11); aVar.f341634g.setText(uVar2); DanmakuStrokeTextView danmakuStrokeTextView = aVar.f341634g; fr1.a aVar2 = fr1.a.f216454a; danmakuStrokeTextView.setTextSize((float) fr1.a.f216458e); aVar2.e(aVar.f341635h, aVar.f341636i); aVar2.c(z5Var, aVar.f341636i); if (a5.f118672a.W()) { StringBuilder sb5 = new StringBuilder(); sb5.append("LiveDanmaku_step4 fill normal comment location msg:"); sb5.append(z5Var.hashCode()); sb5.append(','); sb5.append(z5Var.f()); sb5.append(':'); sb5.append(z5Var.getContent()); sb5.append(",like:"); boolean z29 = z5Var instanceof a6; a6 a6Var = z29 ? (a6) z5Var : null; sb5.append(a6Var != null ? Boolean.valueOf(a6Var.m()) : null); sb5.append(",likeCount:"); a6 a6Var2 = z29 ? (a6) z5Var : null; sb5.append(a6Var2 != null ? Integer.valueOf(a6Var2.getLikeCount()) : null); sb5.append(",is_float:"); sb5.append(z5Var.g()); sb5.append(",floatType:"); sb5.append(z5Var.n()); sb5.append(",badgeInfo:"); zs1.n nVar = zs1.n.f355239a; x31 h15 = z5Var.h(); sb5.append(nVar.u(h15 != null ? h15.f41760r : null)); Log.i("DanmakuItemLocation", sb5.toString()); return; } return; } } } z26 = true; if (!z26) { } } z25 = false; Object q152 = z5Var.q(); if (!(q152 instanceof i01)) { } if (i012 != null) { } } else { g gVar = fr1.b.f216461a; if (type == 20013) { m.g(bVar, "liveBuContext"); m.g(fVar, "danmaku"); TextPaint paint2 = aVar.f341634g.getPaint(); m.f(paint2, "holder.contentTv.paint"); String o05 = d.o0(d.f297303a, z5Var.d(), z5Var.f(), false, 4, null); yz3.d c16 = j.c(w2.class); m.f(c16, "getService(IFinderCommon…atureService::class.java)"); w2 w2Var = (w2) c16; Context context3 = MMApplicationContext.getContext(); m.f(context3, "getContext()"); String obj = w2.a.g(w2Var, context3, paint2, o05, 0, 8, null).toString(); if (((ft1.o) bVar.a(ft1.o.class)).m5()) { if (!(b70.b.X0 != null)) { if (!(h70.a.f224614c1 != null)) { z19 = false; if (!z19) { x31 h16 = z5Var.h(); String m15 = s0.m((h16 == null || (finderContact4 = h16.f41749d) == null) ? null : finderContact4.username, obj); m.f(m15, "makeAnonymousNameIfIsMyS… vNickname\n )"); yz3.d c17 = j.c(w2.class); m.f(c17, "getService(IFinderCommon…atureService::class.java)"); w2 w2Var2 = (w2) c17; Context context4 = MMApplicationContext.getContext(); m.f(context4, "getContext()"); obj = w2.a.g(w2Var2, context4, paint2, m15, 0, 8, null).toString(); } } } z19 = true; if (!z19) { } } Object q16 = z5Var.q(); if (q16 instanceof kz0) { kz0 kz04 = (kz0) q16; if (BuildInfo.DEBUG) { String str13 = kz04.f27954h; if (str13 == null || str13.length() == 0) { kz04.f27954h = "123456"; } z81 z814 = kz04.f27951e; String str14 = z814 != null ? z814.f44187f : null; if ((str14 == null || str14.length() == 0) && (z813 = kz04.f27951e) != null) { z813.f44187f = "http://dldir1.qq.com/weixin/checkresupdate/fans_54fc0cc071084cc1b7767055fe901823.png"; } int nextInt = new Random().nextInt(1000); kz04.f27953g = nextInt; z81 z815 = kz04.f27951e; if (z815 != null) { z815.f44193o = "星星"; } if (nextInt % 2 == 0) { if (z815 != null) { int i17 = z815.f44197s; Pattern pattern = m60.d.f258150a; z815.f44197s = i17 | 256; } } else if (nextInt % 3 == 0) { kz04.f27955i = 1; } } int i18 = kz04.f27953g; z81 z816 = kz04.f27951e; String str15 = z816 != null ? z816.f44193o : null; String str16 = kz04.f27950d; boolean u15 = m60.d.u(z816 != null ? z816.f44197s : 0, 256); ci1 ci12 = new ci1(); xv3.b bVar2 = kz04.f27956j; byte[] f15 = bVar2 != null ? bVar2.f() : null; if (f15 != null) { try { ci12.parseFrom(f15); } catch (Exception e15) { Log.printDebugStack("safeParser", "", e15); } String str17 = ci12 == null ? ci12.f18336d : null; if (!u15) { String string = MMApplicationContext.getContext().getResources().getString(R.string.dys, str15); m.f(string, "getContext().resources.g…sg_gift_prefix, giftName)"); i15 = obj.length() + string.length() + 1; str4 = ",holder:"; str3 = ",is_float:"; str5 = ",floatType:"; str6 = ",badgeInfo:"; c15 = '!'; str7 = ",likeCount:"; kz02 = kz04; uVar = new u(((hz.h) j.c(hz.h.class)).g2(MMApplicationContext.getContext(), obj + ' ' + string + ' ' + ('x' + i18 + (char) 65292 + MMApplicationContext.getContext().getResources().getString(R.string.f368379e52)))); } else { if (kz04.f27955i == 1) { f0 f0Var = new f0(); ci1 ci13 = new ci1(); xv3.b bVar3 = kz04.f27956j; if (bVar3 != null) { bArr = bVar3.f(); } else { bArr = null; } if (bArr == null) { kz03 = kz04; } else { try { ci13.parseFrom(bArr); kz03 = kz04; } catch (Exception e16) { kz03 = kz04; Log.printDebugStack("safeParser", "", e16); } f0Var.f253292d = ci13 == null ? (T) ci13.f18336d : null; l.a aVar3 = l.f202065l; FinderLiveService.f112934d.getClass(); aVar3.b(FinderLiveService.f112938h, str17, str16, i18); Log.i("DanmakuItemGift", "commentItem is Song songName: " + ((String) f0Var.f253292d)); String string2 = MMApplicationContext.getContext().getResources().getString(R.string.efg, f0Var.f253292d, str15); m.f(string2, "getContext().resources.g…text, songName, giftName)"); StringBuilder sb6 = new StringBuilder(); sb6.append('x'); sb6.append(i18); String sb7 = sb6.toString(); String str18 = obj + ' ' + string2 + ' ' + sb7; int length = (obj + ' ').length(); int length2 = (' ' + sb7).length(); int length3 = obj.length() + string2.length() + 1; u uVar3 = new u(((hz.h) j.c(hz.h.class)).g2(MMApplicationContext.getContext(), str18)); str6 = ",badgeInfo:"; str5 = ",floatType:"; str7 = ",likeCount:"; str4 = ",holder:"; str3 = ",is_float:"; kz02 = kz03; fr1.d dVar = new fr1.d(str17, str16, i18, bVar, f0Var); int i19 = length + 3; int length4 = uVar3.length() - length2; if (str15 == null) { i16 = str15.length(); } else { i16 = 0; } c15 = '!'; uVar3.b(dVar, i19, (length4 - i16) - 4, 33); i15 = length3; uVar = uVar3; } ci13 = null; f0Var.f253292d = ci13 == null ? (T) ci13.f18336d : null; l.a aVar32 = l.f202065l; FinderLiveService.f112934d.getClass(); aVar32.b(FinderLiveService.f112938h, str17, str16, i18); Log.i("DanmakuItemGift", "commentItem is Song songName: " + ((String) f0Var.f253292d)); String string22 = MMApplicationContext.getContext().getResources().getString(R.string.efg, f0Var.f253292d, str15); m.f(string22, "getContext().resources.g…text, songName, giftName)"); StringBuilder sb62 = new StringBuilder(); sb62.append('x'); sb62.append(i18); String sb72 = sb62.toString(); String str182 = obj + ' ' + string22 + ' ' + sb72; int length5 = (obj + ' ').length(); int length22 = (' ' + sb72).length(); int length32 = obj.length() + string22.length() + 1; u uVar32 = new u(((hz.h) j.c(hz.h.class)).g2(MMApplicationContext.getContext(), str182)); str6 = ",badgeInfo:"; str5 = ",floatType:"; str7 = ",likeCount:"; str4 = ",holder:"; str3 = ",is_float:"; kz02 = kz03; fr1.d dVar2 = new fr1.d(str17, str16, i18, bVar, f0Var); int i192 = length5 + 3; int length42 = uVar32.length() - length22; if (str15 == null) { } c15 = '!'; uVar32.b(dVar2, i192, (length42 - i16) - 4, 33); i15 = length32; uVar = uVar32; } else { str4 = ",holder:"; str3 = ",is_float:"; str5 = ",floatType:"; str6 = ",badgeInfo:"; c15 = '!'; str7 = ",likeCount:"; kz02 = kz04; int length6 = obj.length(); g gVar2 = fr1.b.f216462b; Context context5 = aVar.f341631d.getContext(); i15 = length6 + ((String) ((n) gVar2).getValue()).length() + 1; uVar = new u(((hz.h) j.c(hz.h.class)).g2(context5, obj + ' ' + ((String) ((n) gVar2).getValue()) + " x" + i18)); } } aVar.f341634g.setText(uVar); if (i15 >= 0 && i15 < uVar.length() && (z812 = kz02.f27951e) != null && (str8 = z812.f44187f) != null) { g gVar3 = fr1.b.f216461a; str9 = kz02.f27954h; if (!(str9 != null || str9.length() == 0)) { str10 = str8; } else { str10 = str9 + '_' + str8; } if (!m.b(aVar.f341631d.getTag(), str10)) { k80.b<j0, Bitmap> d15 = ((v0) r.f342954a.e(e2.class).c(v0.class)).C3().d(new tt1.f(str8, null, 2, null)); fr1.c cVar2 = new fr1.c(aVar, str10, uVar, i15, false, bVar, fVar); d15.getClass(); d15.f245205d = cVar2; d15.a(); Log.i("DanmakuItemGift", "loadGift view" + aVar.f341631d.hashCode() + " have load " + str10 + c15); } else { aVar.f341631d.setTag(str10); linkedList = null; k80.b<j0, Bitmap> a16 = ((v0) r.f342954a.e(e2.class).c(v0.class)).C3().a(new tt1.f(str8, null, 2, null)); fr1.c cVar3 = new fr1.c(aVar, str10, uVar, i15, true, bVar, fVar); a16.getClass(); a16.f245205d = cVar3; a16.a(); } } linkedList = null; } ci12 = null; if (ci12 == null) { } if (!u15) { } aVar.f341634g.setText(uVar); g gVar32 = fr1.b.f216461a; str9 = kz02.f27954h; if (!(str9 != null || str9.length() == 0)) { } if (!m.b(aVar.f341631d.getTag(), str10)) { } } else { str4 = ",holder:"; str3 = ",is_float:"; str5 = ",floatType:"; str6 = ",badgeInfo:"; str7 = ",likeCount:"; linkedList = null; aVar.f341634g.setText(((hz.h) j.c(hz.h.class)).g2(MMApplicationContext.getContext(), obj)); } DanmakuStrokeTextView danmakuStrokeTextView2 = aVar.f341634g; fr1.a aVar4 = fr1.a.f216454a; danmakuStrokeTextView2.setTextSize((float) fr1.a.f216458e); aVar4.e(aVar.f341635h, aVar.f341636i); aVar4.c(z5Var, aVar.f341636i); if (a5.f118672a.W()) { StringBuilder sb8 = new StringBuilder(); sb8.append("LiveDanmaku_step4 fill gift msg:"); sb8.append(z5Var.hashCode()); sb8.append(','); sb8.append(z5Var.f()); sb8.append(':'); sb8.append(z5Var.getContent()); sb8.append(",like:"); boolean z35 = z5Var instanceof a6; a6 a6Var3 = z35 ? (a6) z5Var : linkedList; sb8.append(a6Var3 != 0 ? Boolean.valueOf(a6Var3.m()) : linkedList); sb8.append(str7); a6 a6Var4 = z35 ? (a6) z5Var : linkedList; sb8.append(a6Var4 != 0 ? Integer.valueOf(a6Var4.getLikeCount()) : linkedList); sb8.append(str3); sb8.append(z5Var.g()); sb8.append(str5); sb8.append(z5Var.n()); sb8.append(str6); zs1.n nVar2 = zs1.n.f355239a; x31 h17 = z5Var.h(); if (h17 != null) { linkedList = h17.f41760r; } sb8.append(nVar2.u(linkedList)); sb8.append(str4); sb8.append(aVar.hashCode()); Log.i("DanmakuItemGift", sb8.toString()); } } else if (type == 20002) { m.g(bVar, "liveBuContext"); if (((ft1.o) bVar.a(ft1.o.class)).f217324x) { if (!(b70.b.X0 != null)) { if (!(h70.a.f224614c1 != null)) { z18 = false; if (!z18) { z17 = true; k0.a aVar5 = k0.f202064i; Context context6 = aVar.f341634g.getContext(); m.f(context6, "holder.contentTv.context"); TextPaint paint3 = aVar.f341634g.getPaint(); m.f(paint3, "holder.contentTv.paint"); wg4.l<CharSequence, String> a17 = aVar5.a(context6, z5Var, z17, paint3); Context context7 = MMApplicationContext.getContext(); Object[] objArr = new Object[2]; objArr[0] = a17.f332808e; content2 = z5Var.getContent(); if (content2 == null) { content2 = ""; } objArr[1] = content2; String string3 = context7.getString(R.string.gc6, objArr); m.f(string3, "getContext().getString(\n…Content() ?: \"\"\n )"); aVar.f341634g.setText(((hz.h) j.c(hz.h.class)).g2(MMApplicationContext.getContext(), string3)); DanmakuStrokeTextView danmakuStrokeTextView3 = aVar.f341634g; fr1.a aVar6 = fr1.a.f216454a; danmakuStrokeTextView3.setTextSize((float) fr1.a.f216458e); aVar6.e(aVar.f341635h, aVar.f341636i); aVar6.c(z5Var, aVar.f341636i); if (!a5.f118672a.W()) { StringBuilder sb9 = new StringBuilder(); sb9.append("LiveDanmaku_step4 normal comment reply msg:"); sb9.append(z5Var.hashCode()); sb9.append(','); sb9.append(z5Var.f()); sb9.append(':'); sb9.append(z5Var.getContent()); sb9.append(",like:"); boolean z36 = z5Var instanceof a6; a6 a6Var5 = z36 ? (a6) z5Var : null; sb9.append(a6Var5 != null ? Boolean.valueOf(a6Var5.m()) : null); sb9.append(",likeCount:"); a6 a6Var6 = z36 ? (a6) z5Var : null; sb9.append(a6Var6 != null ? Integer.valueOf(a6Var6.getLikeCount()) : null); sb9.append(",is_float:"); sb9.append(z5Var.g()); sb9.append(",floatType:"); sb9.append(z5Var.n()); sb9.append(",badgeInfo:"); zs1.n nVar3 = zs1.n.f355239a; x31 h18 = z5Var.h(); sb9.append(nVar3.u(h18 != null ? h18.f41760r : null)); Log.i("DanmakuItemReply", sb9.toString()); return; } return; } } } z18 = true; if (!z18) { } } z17 = false; k0.a aVar52 = k0.f202064i; Context context62 = aVar.f341634g.getContext(); m.f(context62, "holder.contentTv.context"); TextPaint paint32 = aVar.f341634g.getPaint(); m.f(paint32, "holder.contentTv.paint"); wg4.l<CharSequence, String> a172 = aVar52.a(context62, z5Var, z17, paint32); Context context72 = MMApplicationContext.getContext(); Object[] objArr2 = new Object[2]; objArr2[0] = a172.f332808e; content2 = z5Var.getContent(); if (content2 == null) { } objArr2[1] = content2; String string32 = context72.getString(R.string.gc6, objArr2); m.f(string32, "getContext().getString(\n…Content() ?: \"\"\n )"); aVar.f341634g.setText(((hz.h) j.c(hz.h.class)).g2(MMApplicationContext.getContext(), string32)); DanmakuStrokeTextView danmakuStrokeTextView32 = aVar.f341634g; fr1.a aVar62 = fr1.a.f216454a; danmakuStrokeTextView32.setTextSize((float) fr1.a.f216458e); aVar62.e(aVar.f341635h, aVar.f341636i); aVar62.c(z5Var, aVar.f341636i); if (!a5.f118672a.W()) { } } else { m.g(bVar, "liveBuContext"); TextPaint paint4 = aVar.f341634g.getPaint(); m.f(paint4, "holder.contentTv.paint"); d dVar3 = d.f297303a; x31 h19 = z5Var.h(); String str19 = (h19 == null || (finderContact3 = h19.f41749d) == null) ? null : finderContact3.username; x31 h25 = z5Var.h(); if (h25 == null || (finderContact2 = h25.f41749d) == null) { str = null; } else { str = finderContact2.nickname; } String o06 = d.o0(dVar3, str19, str, false, 4, null); if (((ft1.o) bVar.a(ft1.o.class)).f217324x) { if (!(b70.b.X0 != null)) { if (!(h70.a.f224614c1 != null)) { z16 = false; if (!z16) { z15 = true; if (!z15) { x31 h26 = z5Var.h(); String m16 = s0.m((h26 == null || (finderContact = h26.f41749d) == null) ? null : finderContact.username, o06); m.f(m16, "makeAnonymousNameIfIsMyS…displayName\n )"); str2 = m16; } else { str2 = o06; } yz3.d c18 = j.c(w2.class); m.f(c18, "getService(IFinderCommon…atureService::class.java)"); w2 w2Var3 = (w2) c18; Context context8 = MMApplicationContext.getContext(); m.f(context8, "getContext()"); String obj2 = w2.a.g(w2Var3, context8, paint4, str2, 0, 8, null).toString(); x31 h27 = z5Var.h(); if ((h27 == null && h27.f41756n == 3) && !z15) { obj2 = obj2 + fr1.a.f216457d; } Context context9 = MMApplicationContext.getContext(); Object[] objArr3 = new Object[2]; objArr3[0] = obj2; content = z5Var.getContent(); if (content == null) { content = ""; } objArr3[1] = content; String string4 = context9.getString(R.string.gc6, objArr3); m.f(string4, "getContext().getString(\n…Content() ?: \"\"\n )"); aVar.f341634g.setText(((hz.h) j.c(hz.h.class)).g2(MMApplicationContext.getContext(), string4)); DanmakuStrokeTextView danmakuStrokeTextView4 = aVar.f341634g; fr1.a aVar7 = fr1.a.f216454a; danmakuStrokeTextView4.setTextSize((float) fr1.a.f216458e); aVar7.e(aVar.f341635h, aVar.f341636i); aVar7.c(z5Var, aVar.f341636i); if (!a5.f118672a.W()) { StringBuilder sb10 = new StringBuilder(); sb10.append("LiveDanmaku_step4 fill text msg:"); sb10.append(z5Var.hashCode()); sb10.append(','); sb10.append(z5Var.f()); sb10.append(':'); sb10.append(z5Var.getContent()); sb10.append(",like:"); boolean z37 = z5Var instanceof a6; a6 a6Var7 = z37 ? (a6) z5Var : null; sb10.append(a6Var7 != null ? Boolean.valueOf(a6Var7.m()) : null); sb10.append(",likeCount:"); a6 a6Var8 = z37 ? (a6) z5Var : null; sb10.append(a6Var8 != null ? Integer.valueOf(a6Var8.getLikeCount()) : null); sb10.append(",is_float:"); sb10.append(z5Var.g()); sb10.append(",floatType:"); sb10.append(z5Var.n()); sb10.append(",badgeInfo:"); zs1.n nVar4 = zs1.n.f355239a; x31 h28 = z5Var.h(); sb10.append(nVar4.u(h28 != null ? h28.f41760r : null)); sb10.append(",holder:"); sb10.append(aVar.hashCode()); Log.i("DanmakuItemText", sb10.toString()); return; } return; } } } z16 = true; if (!z16) { } } z15 = false; if (!z15) { } yz3.d c182 = j.c(w2.class); m.f(c182, "getService(IFinderCommon…atureService::class.java)"); w2 w2Var32 = (w2) c182; Context context82 = MMApplicationContext.getContext(); m.f(context82, "getContext()"); String obj22 = w2.a.g(w2Var32, context82, paint4, str2, 0, 8, null).toString(); x31 h272 = z5Var.h(); obj22 = obj22 + fr1.a.f216457d; Context context92 = MMApplicationContext.getContext(); Object[] objArr32 = new Object[2]; objArr32[0] = obj22; content = z5Var.getContent(); if (content == null) { } objArr32[1] = content; String string42 = context92.getString(R.string.gc6, objArr32); m.f(string42, "getContext().getString(\n…Content() ?: \"\"\n )"); aVar.f341634g.setText(((hz.h) j.c(hz.h.class)).g2(MMApplicationContext.getContext(), string42)); DanmakuStrokeTextView danmakuStrokeTextView42 = aVar.f341634g; fr1.a aVar72 = fr1.a.f216454a; danmakuStrokeTextView42.setTextSize((float) fr1.a.f216458e); aVar72.e(aVar.f341635h, aVar.f341636i); aVar72.c(z5Var, aVar.f341636i); if (!a5.f118672a.W()) { } } } } /* JADX WARNING: Removed duplicated region for block: B:166:0x0467 */ /* JADX WARNING: Removed duplicated region for block: B:169:0x046c */ /* JADX WARNING: Removed duplicated region for block: B:176:0x0487 */ /* JADX WARNING: Removed duplicated region for block: B:17:0x006d */ /* JADX WARNING: Removed duplicated region for block: B:188:0x04e6 */ /* JADX WARNING: Removed duplicated region for block: B:191:0x04fc */ /* JADX WARNING: Removed duplicated region for block: B:192:0x0517 */ /* JADX WARNING: Removed duplicated region for block: B:195:0x0544 */ /* JADX WARNING: Removed duplicated region for block: B:21:0x009c */ /* JADX WARNING: Removed duplicated region for block: B:227:? A[RETURN, SYNTHETIC] */ /* JADX WARNING: Removed duplicated region for block: B:233:? A[RETURN, SYNTHETIC] */ /* JADX WARNING: Removed duplicated region for block: B:24:0x00b1 */ /* JADX WARNING: Removed duplicated region for block: B:25:0x00cc */ /* JADX WARNING: Removed duplicated region for block: B:28:0x00f9 */ /* JADX WARNING: Removed duplicated region for block: B:76:0x01f7 */ /* JADX WARNING: Removed duplicated region for block: B:80:0x0202 */ /* JADX WARNING: Removed duplicated region for block: B:81:0x0206 */ /* JADX WARNING: Removed duplicated region for block: B:84:0x020c */ /* JADX WARNING: Removed duplicated region for block: B:85:0x0213 */ public final void k(b bVar, a aVar, pk.f fVar, z5 z5Var) { String str; String str2; boolean z15; String str3; x31 h15; boolean z16; String content; CharSequence charSequence; a6 a6Var; Boolean bool; a6 a6Var2; Integer num; Integer num2; Integer num3; int i15; LinkedList<g21> linkedList; String str4; FinderContact finderContact; boolean z17; boolean z18; boolean z19; FinderContact finderContact2; FinderContact finderContact3; boolean z25; Object q15; i01 i012; String str5; boolean z26; boolean z27; boolean z28; u uVar; a6 a6Var3; Boolean bool2; a6 a6Var4; Integer num4; Integer num5; Integer num6; int i16; LinkedList<g21> linkedList2; boolean z29; boolean z35; boolean z36; boolean z37; String content2; CharSequence charSequence2; a6 a6Var5; Boolean bool3; a6 a6Var6; Integer num7; Integer num8; Integer num9; int i17; LinkedList<g21> linkedList3; boolean z38; boolean z39; boolean z45; aVar.f341634g.setNeedStroke(false); int type = z5Var.getType(); if (type == 20002) { m.g(bVar, "liveBuContext"); g21 a15 = w.B.a(z5Var); fr1.a aVar2 = fr1.a.f216454a; ImageSpan b15 = aVar2.b(a15); if (((ft1.o) bVar.a(ft1.o.class)).f217324x) { if (b70.b.X0 != null) { z38 = true; } else { z38 = false; } if (!z38) { if (h70.a.f224614c1 != null) { z45 = true; } else { z45 = false; } if (!z45) { z39 = false; if (!z39) { z37 = true; k0.a aVar3 = k0.f202064i; Context context = aVar.f341634g.getContext(); m.f(context, "holder.contentTv.context"); TextPaint paint = aVar.f341634g.getPaint(); m.f(paint, "holder.contentTv.paint"); wg4.l<CharSequence, String> a16 = aVar3.a(context, z5Var, z37, paint); Context context2 = MMApplicationContext.getContext(); Object[] objArr = new Object[2]; objArr[0] = a16.f332808e; content2 = z5Var.getContent(); if (content2 == null) { content2 = ""; } objArr[1] = content2; String string = context2.getString(R.string.gc6, objArr); m.f(string, "getContext().getString(\n…ent() ?: \"\"\n )"); DanmakuStrokeTextView danmakuStrokeTextView = aVar.f341634g; if (b15 == null) { zs1.n nVar = zs1.n.f355239a; Context context3 = aVar.f341631d.getContext(); m.f(context3, "holder.itemView.context"); LinkedList linkedList4 = new LinkedList(); linkedList4.add(b15); b0 b0Var = b0.f332794a; charSequence2 = nVar.r(context3, string, linkedList4, true); } else { charSequence2 = ((hz.h) j.c(hz.h.class)).g2(MMApplicationContext.getContext(), string); } danmakuStrokeTextView.setText(charSequence2); aVar.f341634g.setTextSize((float) fr1.a.f216458e); aVar2.d(a15, aVar.f341635h, aVar.f341636i); aVar2.c(z5Var, aVar.f341636i); if (!a5.f118672a.W()) { StringBuilder sb5 = new StringBuilder(); sb5.append("LiveDanmaku_step4 privilege reply msg:"); sb5.append(z5Var.hashCode()); sb5.append(','); sb5.append(z5Var.f()); sb5.append(':'); sb5.append(z5Var.getContent()); sb5.append(",like:"); boolean z46 = z5Var instanceof a6; if (z46) { a6Var5 = (a6) z5Var; } else { a6Var5 = null; } if (a6Var5 != null) { bool3 = Boolean.valueOf(a6Var5.m()); } else { bool3 = null; } sb5.append(bool3); sb5.append(",likeCount:"); if (z46) { a6Var6 = (a6) z5Var; } else { a6Var6 = null; } if (a6Var6 != null) { num7 = Integer.valueOf(a6Var6.getLikeCount()); } else { num7 = null; } sb5.append(num7); sb5.append(",is_float:"); sb5.append(z5Var.g()); sb5.append(",floatType:"); sb5.append(z5Var.n()); sb5.append(",float msg badge type:"); if (a15 != null) { num8 = Integer.valueOf(a15.f22245d); } else { num8 = null; } sb5.append(num8); sb5.append(" level:"); if (a15 != null) { num9 = Integer.valueOf(a15.f22247f); } else { num9 = null; } sb5.append(num9); sb5.append(", leftSpan:"); if (b15 != null) { i17 = b15.hashCode(); } else { i17 = 0; } sb5.append(i17); sb5.append("badgeInfo:"); zs1.n nVar2 = zs1.n.f355239a; x31 h16 = z5Var.h(); if (h16 != null) { linkedList3 = h16.f41760r; } else { linkedList3 = null; } sb5.append(nVar2.u(linkedList3)); Log.i("PrivilegeDanmakuItemReply", sb5.toString()); return; } return; } } } z39 = true; if (!z39) { } } z37 = false; k0.a aVar32 = k0.f202064i; Context context4 = aVar.f341634g.getContext(); m.f(context4, "holder.contentTv.context"); TextPaint paint2 = aVar.f341634g.getPaint(); m.f(paint2, "holder.contentTv.paint"); wg4.l<CharSequence, String> a162 = aVar32.a(context4, z5Var, z37, paint2); Context context22 = MMApplicationContext.getContext(); Object[] objArr2 = new Object[2]; objArr2[0] = a162.f332808e; content2 = z5Var.getContent(); if (content2 == null) { } objArr2[1] = content2; String string2 = context22.getString(R.string.gc6, objArr2); m.f(string2, "getContext().getString(\n…ent() ?: \"\"\n )"); DanmakuStrokeTextView danmakuStrokeTextView2 = aVar.f341634g; if (b15 == null) { } danmakuStrokeTextView2.setText(charSequence2); aVar.f341634g.setTextSize((float) fr1.a.f216458e); aVar2.d(a15, aVar.f341635h, aVar.f341636i); aVar2.c(z5Var, aVar.f341636i); if (!a5.f118672a.W()) { } } else if (type == 20035) { m.g(bVar, "liveBuContext"); if (((ft1.o) bVar.a(ft1.o.class)).f217324x) { if (b70.b.X0 != null) { z29 = true; } else { z29 = false; } if (!z29) { if (h70.a.f224614c1 != null) { z36 = true; } else { z36 = false; } if (!z36) { z35 = false; if (!z35) { z25 = true; q15 = z5Var.q(); if (!(q15 instanceof i01)) { i012 = (i01) q15; } else { i012 = null; } if (i012 != null) { Log.i("PrivilegeDanmakuItemLocation", "[onBindPoiMsg]: payload is not FinderLiveAppMsgLocationInfo"); return; } fl1 fl12 = i012.f24353d; if (fl12 != null) { str5 = fl12.f21742f; } else { str5 = null; } if (str5 == null || str5.length() == 0) { z26 = true; } else { z26 = false; } if (z26) { Log.i("PrivilegeDanmakuItemLocation", "[onBindPoiMsg]: city is null or empty:" + str5); return; } String str6 = i012.f24354e; if (str6 == null || str6.length() == 0) { z28 = true; z27 = true; } else { z28 = true; z27 = false; } boolean z47 = !z27; c0.c cVar = c0.f202018j; Context context5 = aVar.f341634g.getContext(); m.f(context5, "holder.contentTv.context"); TextPaint paint3 = aVar.f341634g.getPaint(); m.f(paint3, "holder.contentTv.paint"); wg4.o<CharSequence, String, String> a17 = cVar.a(context5, z25, z5Var, i012, str5, z47, paint3); String str7 = ((String) a17.f332816e) + ((String) a17.f332817f); g21 a18 = w.B.a(z5Var); fr1.a aVar4 = fr1.a.f216454a; ImageSpan b16 = aVar4.b(a18); if (b16 != null) { zs1.n nVar3 = zs1.n.f355239a; Context context6 = aVar.f341631d.getContext(); m.f(context6, "holder.itemView.context"); LinkedList linkedList5 = new LinkedList(); linkedList5.add(b16); b0 b0Var2 = b0.f332794a; uVar = nVar3.r(context6, str7, linkedList5, z28); } else { uVar = new u(((hz.h) j.c(hz.h.class)).Vr0(MMApplicationContext.getContext(), str7, 0.0f)); } Context context7 = aVar.f341634g.getContext(); m.f(context7, "holder.contentTv.context"); cVar.c(context7, i012, uVar, z47, str5); aVar.f341634g.setText(uVar); aVar.f341634g.setTextSize((float) fr1.a.f216458e); aVar4.d(a18, aVar.f341635h, aVar.f341636i); aVar4.c(z5Var, aVar.f341636i); if (a5.f118672a.W()) { StringBuilder sb6 = new StringBuilder(); sb6.append("LiveDanmaku_step4 fill privilege location msg:"); sb6.append(z5Var.hashCode()); sb6.append(','); sb6.append(z5Var.f()); sb6.append(':'); sb6.append(z5Var.getContent()); sb6.append(",like:"); boolean z48 = z5Var instanceof a6; if (z48) { a6Var3 = (a6) z5Var; } else { a6Var3 = null; } if (a6Var3 != null) { bool2 = Boolean.valueOf(a6Var3.m()); } else { bool2 = null; } sb6.append(bool2); sb6.append(",likeCount:"); if (z48) { a6Var4 = (a6) z5Var; } else { a6Var4 = null; } if (a6Var4 != null) { num4 = Integer.valueOf(a6Var4.getLikeCount()); } else { num4 = null; } sb6.append(num4); sb6.append(",is_float:"); sb6.append(z5Var.g()); sb6.append(",floatType:"); sb6.append(z5Var.n()); sb6.append(",badge type:"); if (a18 != null) { num5 = Integer.valueOf(a18.f22245d); } else { num5 = null; } sb6.append(num5); sb6.append(" level:"); if (a18 != null) { num6 = Integer.valueOf(a18.f22247f); } else { num6 = null; } sb6.append(num6); sb6.append(", leftSpan:"); if (b16 != null) { i16 = b16.hashCode(); } else { i16 = 0; } sb6.append(i16); sb6.append("badgeInfo:"); zs1.n nVar4 = zs1.n.f355239a; x31 h17 = z5Var.h(); if (h17 != null) { linkedList2 = h17.f41760r; } else { linkedList2 = null; } sb6.append(nVar4.u(linkedList2)); Log.i("PrivilegeDanmakuItemLocation", sb6.toString()); return; } return; } } } z35 = true; if (!z35) { } } z25 = false; q15 = z5Var.q(); if (!(q15 instanceof i01)) { } if (i012 != null) { } } else { m.g(bVar, "liveBuContext"); g21 a19 = w.B.a(z5Var); fr1.a aVar5 = fr1.a.f216454a; ImageSpan b17 = aVar5.b(a19); TextPaint paint4 = aVar.f341634g.getPaint(); m.f(paint4, "holder.contentTv.paint"); d dVar = d.f297303a; x31 h18 = z5Var.h(); if (h18 == null || (finderContact3 = h18.f41749d) == null) { str = null; } else { str = finderContact3.username; } x31 h19 = z5Var.h(); if (h19 == null || (finderContact2 = h19.f41749d) == null) { str2 = null; } else { str2 = finderContact2.nickname; } String o05 = d.o0(dVar, str, str2, false, 4, null); if (((ft1.o) bVar.a(ft1.o.class)).f217324x) { if (b70.b.X0 != null) { z17 = true; } else { z17 = false; } if (!z17) { if (h70.a.f224614c1 != null) { z19 = true; } else { z19 = false; } if (!z19) { z18 = false; if (!z18) { z15 = true; if (!z15) { x31 h25 = z5Var.h(); if (h25 == null || (finderContact = h25.f41749d) == null) { str4 = null; } else { str4 = finderContact.username; } String m15 = s0.m(str4, o05); m.f(m15, "makeAnonymousNameIfIsMyS…displayName\n )"); str3 = m15; } else { str3 = o05; } yz3.d c15 = j.c(w2.class); m.f(c15, "getService(IFinderCommon…atureService::class.java)"); w2 w2Var = (w2) c15; Context context8 = MMApplicationContext.getContext(); m.f(context8, "getContext()"); String obj = w2.a.g(w2Var, context8, paint4, str3, 0, 8, null).toString(); h15 = z5Var.h(); if (h15 == null && h15.f41756n == 3) { z16 = true; } else { z16 = false; } if (z16 && !z15) { obj = obj + fr1.a.f216457d; } Context context9 = MMApplicationContext.getContext(); Object[] objArr3 = new Object[2]; objArr3[0] = obj; content = z5Var.getContent(); if (content == null) { content = ""; } objArr3[1] = content; String string3 = context9.getString(R.string.gc6, objArr3); m.f(string3, "getContext().getString(\n…Content() ?: \"\"\n )"); DanmakuStrokeTextView danmakuStrokeTextView3 = aVar.f341634g; if (b17 == null) { zs1.n nVar5 = zs1.n.f355239a; Context context10 = aVar.f341631d.getContext(); m.f(context10, "holder.itemView.context"); LinkedList linkedList6 = new LinkedList(); linkedList6.add(b17); b0 b0Var3 = b0.f332794a; charSequence = nVar5.r(context10, string3, linkedList6, true); } else { charSequence = ((hz.h) j.c(hz.h.class)).g2(MMApplicationContext.getContext(), string3); } danmakuStrokeTextView3.setText(charSequence); aVar.f341634g.setTextSize((float) fr1.a.f216458e); aVar5.d(a19, aVar.f341635h, aVar.f341636i); aVar5.c(z5Var, aVar.f341636i); if (!a5.f118672a.W()) { StringBuilder sb7 = new StringBuilder(); sb7.append("LiveDanmaku_step4 privilege text msg:"); sb7.append(z5Var.hashCode()); sb7.append(','); sb7.append(z5Var.f()); sb7.append(':'); sb7.append(z5Var.getContent()); sb7.append(",like:"); boolean z49 = z5Var instanceof a6; if (z49) { a6Var = (a6) z5Var; } else { a6Var = null; } if (a6Var != null) { bool = Boolean.valueOf(a6Var.m()); } else { bool = null; } sb7.append(bool); sb7.append(",likeCount:"); if (z49) { a6Var2 = (a6) z5Var; } else { a6Var2 = null; } if (a6Var2 != null) { num = Integer.valueOf(a6Var2.getLikeCount()); } else { num = null; } sb7.append(num); sb7.append(",is_float:"); sb7.append(z5Var.g()); sb7.append(",floatType:"); sb7.append(z5Var.n()); sb7.append(",float msg badge type:"); if (a19 != null) { num2 = Integer.valueOf(a19.f22245d); } else { num2 = null; } sb7.append(num2); sb7.append(" level:"); if (a19 != null) { num3 = Integer.valueOf(a19.f22247f); } else { num3 = null; } sb7.append(num3); sb7.append(", leftSpan:"); if (b17 != null) { i15 = b17.hashCode(); } else { i15 = 0; } sb7.append(i15); sb7.append("badgeInfo:"); zs1.n nVar6 = zs1.n.f355239a; x31 h26 = z5Var.h(); if (h26 != null) { linkedList = h26.f41760r; } else { linkedList = null; } sb7.append(nVar6.u(linkedList)); sb7.append(",holder:"); sb7.append(aVar.hashCode()); Log.i("PrivilegeDanmakuItemText", sb7.toString()); return; } return; } } } z18 = true; if (!z18) { } } z15 = false; if (!z15) { } yz3.d c152 = j.c(w2.class); m.f(c152, "getService(IFinderCommon…atureService::class.java)"); w2 w2Var2 = (w2) c152; Context context82 = MMApplicationContext.getContext(); m.f(context82, "getContext()"); String obj2 = w2.a.g(w2Var2, context82, paint4, str3, 0, 8, null).toString(); h15 = z5Var.h(); if (h15 == null) { } z16 = false; obj2 = obj2 + fr1.a.f216457d; Context context92 = MMApplicationContext.getContext(); Object[] objArr32 = new Object[2]; objArr32[0] = obj2; content = z5Var.getContent(); if (content == null) { } objArr32[1] = content; String string32 = context92.getString(R.string.gc6, objArr32); m.f(string32, "getContext().getString(\n…Content() ?: \"\"\n )"); DanmakuStrokeTextView danmakuStrokeTextView32 = aVar.f341634g; if (b17 == null) { } danmakuStrokeTextView32.setText(charSequence); aVar.f341634g.setTextSize((float) fr1.a.f216458e); aVar5.d(a19, aVar.f341635h, aVar.f341636i); aVar5.c(z5Var, aVar.f341636i); if (!a5.f118672a.W()) { } } } public final void l(String str) { w.j jVar; if (a5.f118672a.W()) { String str2 = this.f341630c; StringBuilder sb5 = new StringBuilder(); sb5.append("bind view holder curThread:"); sb5.append(Thread.currentThread().getName()); sb5.append(",commentMode:"); w.d n55 = ((w) this.f341629b.a(w.class)).n5(); Boolean bool = null; if (n55 != null) { jVar = n55.f217446a; } else { jVar = null; } sb5.append(jVar); sb5.append(','); sb5.append(str); sb5.append(",alphaValue:"); sb5.append(((w) this.f341629b.a(w.class)).f217426f); sb5.append(",showPrivilegeDanmaku:"); w.d n56 = ((w) this.f341629b.a(w.class)).n5(); if (n56 != null) { bool = Boolean.valueOf(n56.f217447b); } sb5.append(bool); sb5.append('!'); Log.i(str2, sb5.toString()); } } }