package zw2; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.util.Base64; import com.tencent.mm.app.y0; import com.tencent.mm.plugin.ringtone.ui.RingtoneSelectUI; import com.tencent.mm.plugin.ringtone.ui.RingtoneSettingsUI; import com.tencent.mm.protocal.protobuf.FinderObject; import com.tencent.mm.sdk.platformtools.Log; import com.tencent.mm.sdk.platformtools.MMApplicationContext; import com.tencent.thumbplayer.api.TPOptionalID; import com.tencent.thumbplayer.tplayer.plugins.report.TPReportKeys; import com.tencent.xweb.updater.IXWebBroadcastListener; import dh4.d; import dh4.f; import dw3.a0; import dw3.c1; import dw3.e0; import dw3.l0; import dw3.n0; import dw3.v0; import gk4.d1; import gk4.z1; import ix2.h; import java.util.ArrayList; import kotlin.ResultKt; import lh4.m; import lh4.o; import nf0.u0; import o60.c; import oz0.b; import qd3.b0; import qd3.z; import t32.e2; import ve3.g0; import ve3.h1; import ve3.j1; import ve3.k1; import wg4.g; import wg4.h; import wg4.n; import y24.r; import yz3.e; import yz3.j; import zw2.c; @zz3.b(onProcess = {y0.MATCH_MM}) public final class i extends e implements c { /* renamed from: f reason: collision with root package name */ public static final a f355915f = new a(null); /* renamed from: d reason: collision with root package name */ public final g f355916d = h.a(b.f355928d); /* renamed from: e reason: collision with root package name */ public mx2.a f355917e; public static final class a { @f(c = "com.tencent.mm.plugin.ringtone.PluginRingtone$Companion", f = "PluginRingtone.kt", l = {324, 343, TPOptionalID.OPTION_ID_BEFORE_INT_AUDIO_STREAM_TYPE, com.tencent.mm.plugin.appbrand.jsapi.nfc.i.CTRL_INDEX}, m = "setRingtone") /* renamed from: zw2.i$a$a reason: collision with other inner class name */ public static final class C6661a extends d { /* renamed from: d reason: collision with root package name */ public Object f355918d; /* renamed from: e reason: collision with root package name */ public Object f355919e; /* renamed from: f reason: collision with root package name */ public Object f355920f; /* renamed from: g reason: collision with root package name */ public Object f355921g; /* renamed from: h reason: collision with root package name */ public Object f355922h; /* renamed from: i reason: collision with root package name */ public boolean f355923i; /* renamed from: j reason: collision with root package name */ public /* synthetic */ Object f355924j; /* renamed from: n reason: collision with root package name */ public final /* synthetic */ a f355925n; /* renamed from: o reason: collision with root package name */ public int f355926o; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public C6661a(a aVar, bh4.d<? super C6661a> dVar) { super(dVar); this.f355925n = aVar; } @Override // dh4.a public final Object invokeSuspend(Object obj) { this.f355924j = obj; this.f355926o |= Integer.MIN_VALUE; return this.f355925n.d(null, null, false, null, this); } } public static final class b implements b0 { /* renamed from: a reason: collision with root package name */ public static final b f355927a = new b(); @Override // qd3.b0 public final void onFinishAction(int i15, String str, g0 g0Var) { Log.i("MicroMsg.PluginRingtone", "setStatus result:" + i15 + ", errMsg:" + str); } } public a(lh4.h hVar) { } public final void a(Context context, int i15) { m.g(context, "context"); Intent intent = new Intent(); intent.putExtra("ringtone_channel", i15); intent.setClass(context, RingtoneSettingsUI.class); k30.a aVar = new k30.a(); aVar.c(intent); j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/ringtone/PluginRingtone$Companion", "enterRingtoneSettingUI", "(Landroid/content/Context;I)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V"); context.startActivity((Intent) aVar.a(0)); j30.a.e(context, "com/tencent/mm/plugin/ringtone/PluginRingtone$Companion", "enterRingtoneSettingUI", "(Landroid/content/Context;I)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V"); } public final Object b(int i15, int i16, l0 l0Var, int i17, int i18, String str, String str2, bh4.d<? super c<c1>> dVar) { String str3; if (l0Var.f203828d == 2) { dw3.f fVar = l0Var.f203832h; if (fVar == null) { return new c(false, null, 2, null); } long j15 = fVar.f203776d; if (fVar == null || (str3 = fVar.f203777e) == null) { return new c(false, null, 2, null); } return kx2.a.c(kx2.a.f249659a, i15, i16, j15, str3, i17, i18, str, 0, str2, dVar, 128, null); } e0 e0Var = l0Var.f203831g; if (e0Var != null) { return kx2.a.f249659a.b(i15, i16, 0, "", i17, i18, str, e0Var.f203774d, str2, dVar); } return new c(false, null, 2, null); } public final Object c(int i15, int i16, l0 l0Var, int i17, int i18, int i19, String str, bh4.d<? super c<c1>> dVar) { String str2; if (l0Var.f203828d == 2) { dw3.f fVar = l0Var.f203832h; if (fVar == null) { return new c(false, null, 2, null); } long j15 = fVar.f203776d; if (fVar == null || (str2 = fVar.f203777e) == null) { return new c(false, null, 2, null); } return kx2.a.f249659a.d(i15, i16, 0, j15, str2, i17, i18, i19, str, dVar); } e0 e0Var = l0Var.f203831g; if (e0Var != null) { return kx2.a.f249659a.d(i15, i16, e0Var.f203774d, 0, "", i17, i18, i19, str, dVar); } return new c(false, null, 2, null); } /* JADX WARNING: Removed duplicated region for block: B:18:0x00a2 */ /* JADX WARNING: Removed duplicated region for block: B:39:0x0129 */ /* JADX WARNING: Removed duplicated region for block: B:41:0x0145 */ /* JADX WARNING: Removed duplicated region for block: B:56:0x01a6 A[RETURN] */ /* JADX WARNING: Removed duplicated region for block: B:57:0x01a7 */ /* JADX WARNING: Removed duplicated region for block: B:60:0x01b8 */ /* JADX WARNING: Removed duplicated region for block: B:62:0x01d3 */ /* JADX WARNING: Removed duplicated region for block: B:77:0x022f */ /* JADX WARNING: Removed duplicated region for block: B:79:0x024a */ /* JADX WARNING: Removed duplicated region for block: B:8:0x0031 */ public final Object d(ix2.f fVar, String str, boolean z15, String str2, bh4.d<? super Boolean> dVar) { C6661a aVar; int i15; ix2.f fVar2; Object obj; String str3; byte[] bArr; boolean z16; c cVar; String str4; byte[] bArr2; int i16; v0 v0Var; Object obj2; String str5; String str6; l0 l0Var; String str7; boolean z17; String str8; l0 l0Var2; String str9; ix2.f fVar3; a0 a0Var; dw3.g gVar; Object[] objArr; ix2.f fVar4 = fVar; if (dVar instanceof C6661a) { aVar = (C6661a) dVar; int i17 = aVar.f355926o; if ((i17 & Integer.MIN_VALUE) != 0) { aVar.f355926o = i17 - Integer.MIN_VALUE; Object obj3 = aVar.f355924j; ch4.a aVar2 = ch4.a.COROUTINE_SUSPENDED; i15 = aVar.f355926o; char c15 = 2; if (i15 != 0) { ResultKt.throwOnFailure(obj3); l0Var2 = new l0(); l0Var2.f203829e = 0; l0Var2.f203830f = (int) fVar4.f235493c; if (fVar4.f235494d != null) { dw3.f fVar5 = new dw3.f(); fVar5.f203777e = fVar4.f235506p; fVar5.f203776d = fVar4.f235505o; l0Var2.f203832h = fVar5; l0Var2.f203828d = 2; } Integer num = new Integer(fVar4.f235507q); if (num.intValue() != 0) { objArr = 1; } else { objArr = null; } if (objArr == null) { num = null; } if (num != null) { num.intValue(); e0 e0Var = new e0(); e0Var.f203774d = fVar4.f235507q; l0Var2.f203828d = 1; l0Var2.f203831g = e0Var; } str7 = u0.r(); if (fVar.j()) { fVar3 = dx2.b.a(fVar4.f235505o); if (fVar3 == null) { long j15 = fVar4.f235505o; String str10 = fVar4.f235506p; aVar.f355918d = fVar4; aVar.f355919e = str; str9 = str2; aVar.f355920f = str9; aVar.f355921g = l0Var2; aVar.f355922h = str7; z17 = z15; aVar.f355923i = z17; aVar.f355926o = 1; obj3 = gk4.h.g(d1.f221178c, new g(j15, str10, null), aVar); if (obj3 == aVar2) { return aVar2; } str8 = str; } else { z17 = z15; str9 = str2; str8 = str; String str11 = fVar3.f235499i; fVar4.getClass(); m.g(str11, "<set-?>"); fVar4.f235499i = str11; fVar4.l(fVar3.f235498h); String str12 = fVar3.f235500j; m.g(str12, "<set-?>"); fVar4.f235500j = str12; p pVar = p.f355972a; aVar.f355918d = fVar4; aVar.f355919e = str8; aVar.f355920f = str9; aVar.f355921g = l0Var2; aVar.f355922h = str7; aVar.f355923i = z17; c15 = 2; aVar.f355926o = 2; obj3 = pVar.a(str8, fVar4, false, aVar); if (obj3 == aVar2) { return aVar2; } str5 = str9; l0Var = l0Var2; str6 = str8; fVar2 = fVar4; z16 = z17; if (((Boolean) obj3).booleanValue()) { } } } else { z17 = z15; str9 = str2; str8 = str; p pVar2 = p.f355972a; aVar.f355918d = fVar4; aVar.f355919e = str8; aVar.f355920f = str9; aVar.f355921g = l0Var2; aVar.f355922h = str7; aVar.f355923i = z17; c15 = 2; aVar.f355926o = 2; obj3 = pVar2.a(str8, fVar4, false, aVar); if (obj3 == aVar2) { } } } else if (i15 == 1) { boolean z18 = aVar.f355923i; str7 = (String) aVar.f355922h; l0Var2 = (l0) aVar.f355921g; str8 = (String) aVar.f355919e; ResultKt.throwOnFailure(obj3); z17 = z18; str9 = (String) aVar.f355920f; fVar4 = (ix2.f) aVar.f355918d; } else if (i15 == 2) { z16 = aVar.f355923i; str7 = (String) aVar.f355922h; l0Var = (l0) aVar.f355921g; ResultKt.throwOnFailure(obj3); fVar2 = (ix2.f) aVar.f355918d; str5 = (String) aVar.f355920f; str6 = (String) aVar.f355919e; if (((Boolean) obj3).booleanValue()) { Log.e("MicroMsg.PluginRingtone", "cacheRingtone step1 fail " + fVar2.e()); return Boolean.FALSE; } else if (m.b(str6, str7)) { a aVar3 = i.f355915f; int i18 = l0Var.f203829e; int i19 = l0Var.f203830f; aVar.f355918d = fVar2; aVar.f355919e = str6; aVar.f355920f = null; aVar.f355921g = null; aVar.f355922h = null; aVar.f355923i = z16; aVar.f355926o = 3; bArr = null; int i25 = z16 ? 1 : 0; int i26 = z16 ? 1 : 0; int i27 = z16 ? 1 : 0; int i28 = z16 ? 1 : 0; int i29 = z16 ? 1 : 0; obj2 = aVar3.c(1, 1, l0Var, i18, i19, i25, str5, aVar); if (obj2 == aVar2) { return aVar2; } str3 = str6; cVar = (c) obj2; if (cVar.f274951a) { } } else { bArr = null; a aVar4 = i.f355915f; int i35 = l0Var.f203829e; int i36 = l0Var.f203830f; aVar.f355918d = fVar2; aVar.f355919e = str6; aVar.f355920f = null; aVar.f355921g = null; aVar.f355922h = null; aVar.f355923i = z16; aVar.f355926o = 4; obj = aVar4.b(1, 3, l0Var, i35, i36, str6, str5, aVar); if (obj == aVar2) { return aVar2; } str3 = str6; cVar = (c) obj; if (cVar.f274951a) { } } } else if (i15 == 3) { z16 = aVar.f355923i; str3 = (String) aVar.f355919e; ResultKt.throwOnFailure(obj3); fVar2 = (ix2.f) aVar.f355918d; obj2 = obj3; bArr = null; cVar = (c) obj2; if (cVar.f274951a) { } } else if (i15 == 4) { z16 = aVar.f355923i; str3 = (String) aVar.f355919e; ResultKt.throwOnFailure(obj3); fVar2 = (ix2.f) aVar.f355918d; obj = obj3; bArr = null; cVar = (c) obj; if (cVar.f274951a) { Log.e("MicroMsg.PluginRingtone", "cacheRingtone step2 fail " + fVar2.e()); return Boolean.FALSE; } p.l(str3, fVar2); p.n(str3, fVar2, 0, 4, null); if (z16) { Context context = MMApplicationContext.getContext(); m.f(context, "getContext()"); c1 c1Var = (c1) cVar.f274952b; if (c1Var == null || (v0Var = c1Var.f203763d) == null || (str4 = v0Var.f203876d) == null) { str4 = ""; } b bVar = b.f355927a; m.g(fVar2, "ringtoneInfo"); z.a aVar5 = new z.a(); aVar5.a("1071_ls"); aVar5.f(fVar2.f235499i); aVar5.d("http://wxapp.tc.qq.com/258/20304/stodownload?m=bb31772544a871fbd29038a10658ad70&filekey=30340201010420301e02020102040253480410bb31772544a871fbd29038a10658ad7002021c9b040d00000004627466730000000131&hy=SH&storeid=32303232303330313137313334353030303761626166303030303030303037636638353130393030303030313032&bizid=1023"); aVar5.e("ringtone@inner"); aVar5.g(str4); aVar5.f289149a.f325217u = true; ArrayList arrayList = new ArrayList(); ve3.a0 a0Var2 = new ve3.a0(); a0Var2.f325223d = "14"; FinderObject finderObject = fVar2.f235494d; if (finderObject != null) { bArr2 = finderObject.toByteArray(); } else { bArr2 = bArr; } a0Var2.f325225f = Base64.encodeToString(bArr2, 0); j1 j1Var = new j1(); if (fVar2.j()) { i16 = 2; } else { i16 = 1; } j1Var.f325340d = i16; k1 k1Var = new k1(); k1Var.f325347d = fVar2.f235507q; j1Var.f325341e = k1Var; h1 h1Var = new h1(); h1Var.f325327d = fVar2.f235505o; h1Var.f325328e = fVar2.f235506p; j1Var.f325342f = h1Var; a0Var2.f325226g = Base64.encodeToString(j1Var.toByteArray(), 2); arrayList.add(a0Var2); int i37 = qd3.a.f289077a; ve3.a0 a0Var3 = new ve3.a0(); a0Var3.f325223d = "3"; a0Var3.f325225f = "https://support.weixin.qq.com/security/readtemplate?t=w_security_center_website/upgrade&scene=1#wechat_redirect"; arrayList.add(a0Var3); aVar5.b(arrayList); ((sz.h) j.c(sz.h.class)).Bh(context, aVar5.f289149a, bVar); } return Boolean.TRUE; } else { throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine"); } a0Var = (a0) obj3; if (a0Var != null) { Log.e("MicroMsg.PluginRingtone", "try get finder ring back detail fail " + fVar4.e()); return Boolean.FALSE; } h.a aVar6 = ix2.h.E; n0 n0Var = a0Var.f203750d; if (n0Var == null || (gVar = n0Var.f203844f) == null) { fVar3 = null; } else { fVar3 = aVar6.e(gVar, n0Var); } if (fVar3 == null) { Log.e("MicroMsg.PluginRingtone", "try get TPMediaInfoDesc fail null"); return Boolean.FALSE; } dx2.b.c(fVar3.f235505o, fVar3); String str112 = fVar3.f235499i; fVar4.getClass(); m.g(str112, "<set-?>"); fVar4.f235499i = str112; fVar4.l(fVar3.f235498h); String str122 = fVar3.f235500j; m.g(str122, "<set-?>"); fVar4.f235500j = str122; p pVar22 = p.f355972a; aVar.f355918d = fVar4; aVar.f355919e = str8; aVar.f355920f = str9; aVar.f355921g = l0Var2; aVar.f355922h = str7; aVar.f355923i = z17; c15 = 2; aVar.f355926o = 2; obj3 = pVar22.a(str8, fVar4, false, aVar); if (obj3 == aVar2) { } } } aVar = new C6661a(this, dVar); Object obj32 = aVar.f355924j; ch4.a aVar22 = ch4.a.COROUTINE_SUSPENDED; i15 = aVar.f355926o; char c152 = 2; if (i15 != 0) { } a0Var = (a0) obj32; if (a0Var != null) { } } } public static final class b extends o implements kh4.a<lx2.f> { /* renamed from: d reason: collision with root package name */ public static final b f355928d = new b(); public b() { super(0); } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public lx2.f invoke() { return new lx2.f(); } } @Override // zw2.c public ax2.a Aa0() { int i15; boolean z15; lx2.f VN0 = VN0(); if (VN0 == null) { return null; } VN0.f256982t = System.currentTimeMillis() - VN0.f256980r; b.a aVar = oz0.b.f279663h; if (aVar.b().z()) { i15 = aVar.c(); } else { ix2.c cVar = VN0.f256967e; if (cVar != null) { i15 = cVar.f235479b; } else { i15 = 0; } } int g15 = aVar.b().g(i15); boolean z16 = !m.b(aVar.a(), "normal"); if (VN0.f256986x == ix2.e.EXCLUSIVE) { z15 = true; } else { z15 = false; } ax2.a aVar2 = new ax2.a(z15, VN0.f256982t, VN0.f256981s, String.valueOf(VN0.A), VN0.f256987y, VN0.f256983u, VN0.D, VN0.C, g15, i15, VN0.f256988z, z16, VN0.B, VN0.f256985w, VN0.f256984v); VN0.f256980r = 0; VN0.f256982t = 0; VN0.f256983u = true; VN0.f256984v = ""; VN0.f256986x = ix2.e.UNKNOWN; VN0.f256987y = ""; VN0.A = 0; VN0.D = false; VN0.f256988z = 0; return aVar2; } @Override // zw2.c public int LC() { lx2.f VN0 = VN0(); if (VN0 == null) { return 5; } ix2.c cVar = VN0.f256967e; if (cVar != null) { return cVar.f235479b; } lx2.b bVar = VN0.f256965c; if (bVar != null) { return bVar.c(); } return 3; } @Override // zw2.c public int SP() { lx2.f VN0 = VN0(); if (VN0 == null) { return 9; } lx2.b bVar = VN0.f256965c; boolean z15 = true; if (bVar == null || !bVar.d()) { z15 = false; } if (z15) { return 5; } return 9; } public final lx2.f VN0() { return (lx2.f) ((n) this.f355916d).getValue(); } public void WN0(int i15) { if (VN0() != null && m.i()) { b.a aVar = oz0.b.f279663h; if (i15 != aVar.f()) { Log.i("MicroMsg.RingtoneServiceHelper", "set AudioManager mode: %s", Integer.valueOf(i15)); aVar.n(i15); } } } public void XN0(ix2.d dVar, int i15, boolean z15) { int i16; m.g(dVar, "soundType"); lx2.f VN0 = VN0(); if (VN0 != null) { VN0.f256967e = new ix2.c(dVar, i15, z15); b.a aVar = oz0.b.f279663h; if (aVar.b().z()) { i16 = aVar.c(); } else { ix2.c cVar = VN0.f256967e; if (cVar != null) { i16 = cVar.f235479b; } else { i16 = 0; } } VN0.f256988z = aVar.b().g(i16); } } public boolean YN0(boolean z15) { lx2.f VN0; String a15 = oz0.b.f279663h.a(); if ((m.b(a15, "vibrate") || m.b(a15, "normal")) && (VN0 = VN0()) != null) { Log.i("MicroMsg.RingtoneServiceHelper", "updateVibrateInfo"); VN0.f256979q = true; } return true; } @Override // zw2.c public boolean Z() { lx2.f VN0 = VN0(); if (VN0 == null) { return true; } VN0.d(ix2.b.f235472d); return true; } public boolean ZN0(String str, boolean z15) { lx2.f VN0; m.g(str, "name"); String a15 = oz0.b.f279663h.a(); if ((m.b(a15, "vibrate") || m.b(a15, "normal")) && (VN0 = VN0()) != null) { Log.i("MicroMsg.RingtoneServiceHelper", "updateRingtoneInfo name:" + str + ", isOutCall:" + z15 + ", seekStartMs:" + VN0.f256968f); VN0.f256963a = VN0.f256966d; VN0.f256966d = null; VN0.f256969g = z15; VN0.f256971i = -1.0f; z1 z1Var = VN0.f256972j; if (z1Var != null) { z1.a.a(z1Var, null, 1, null); } VN0.f256972j = gk4.h.d(VN0.f256973k, null, null, new lx2.g(VN0, str, z15, null), 3, null); } return true; } @Override // zw2.c public boolean a0() { lx2.f VN0 = VN0(); if (VN0 == null) { return true; } VN0.d(ix2.b.f235475g); return true; } public void aO0(String str, boolean z15, long j15) { lx2.f VN0 = VN0(); if (VN0 != null) { Log.i("MicroMsg.RingtoneServiceHelper", "updateRingtoneInfo name:" + str + ", isOutCall:" + z15 + ", seekStartMs:" + j15); VN0.f256963a = VN0.f256966d; VN0.f256966d = null; VN0.f256968f = j15; VN0.f256969g = z15; VN0.f256971i = -1.0f; z1 z1Var = VN0.f256972j; if (z1Var != null) { z1.a.a(z1Var, null, 1, null); } VN0.f256972j = gk4.h.d(VN0.f256973k, null, null, new lx2.h(VN0, str, z15, null), 3, null); } } @Override // zw2.c public void m30(boolean z15) { lx2.f VN0 = VN0(); if (VN0 != null) { VN0.f(z15); } } @Override // zw2.c public boolean mi(c.a aVar, Bundle bundle) { String string; lx2.f VN0; Boolean bool; ix2.b bVar = ix2.b.f235474f; m.g(bundle, "params"); mx2.a aVar2 = this.f355917e; if (aVar2 == null || aVar2.f267826b != aVar) { if (aVar == c.a.VOIP) { this.f355917e = new mx2.c(this); } else if (aVar == c.a.MULTITALK) { this.f355917e = new mx2.b(this); } else if (aVar == c.a.WMPF_CALL_IN) { this.f355917e = new mx2.d(this); } } mx2.a aVar3 = this.f355917e; if (aVar3 == null || (string = bundle.getString(TPReportKeys.PlayerStep.PLAYER_BUFFERING_SCENE)) == null) { return false; } ix2.d dVar = ix2.d.f235482e; switch (string.hashCode()) { case -346633629: if (!string.equals("bad_net")) { return false; } int i15 = bundle.getInt("streamType"); b.a aVar4 = oz0.b.f279663h; if (!aVar4.j() && !aVar4.k() && (m.b(aVar4.a(), "silent") || m.b(aVar4.a(), "vibrate"))) { return false; } try { aVar3.f267825a.XN0(dVar, i15, false); aVar3.f267825a.aO0(null, false, 0); i iVar = aVar3.f267825a; boolean l15 = aVar4.l(); lx2.f VN02 = iVar.VN0(); if (VN02 != null) { VN02.f(l15); break; } } catch (Throwable th5) { Log.w("MicroMsg.BaseSceneSetting", "playSound Failed Throwable t = ", th5); return false; } break; case 100571: if (!string.equals("end")) { return false; } int i16 = bundle.getInt("streamType"); b.a aVar5 = oz0.b.f279663h; if (!aVar5.j() && !aVar5.k() && (m.b(aVar5.a(), "silent") || m.b(aVar5.a(), "vibrate"))) { return false; } try { aVar3.f267825a.XN0(dVar, i16, false); aVar3.f267825a.aO0(null, false, 0); if ((aVar5.j() || aVar5.k()) && (VN0 = aVar3.f267825a.VN0()) != null) { lx2.b bVar2 = VN0.f256965c; if (bVar2 != null) { bVar2.a(0.5f, 0.5f); VN0.f256971i = -1.0f; } else { VN0.f256971i = 0.5f; } } i iVar2 = aVar3.f267825a; boolean l16 = aVar5.l(); lx2.f VN03 = iVar2.VN0(); if (VN03 != null) { VN03.f(l16); break; } } catch (Throwable th6) { Log.w("MicroMsg.BaseSceneSetting", "playSound Failed Throwable t = ", th6); return false; } break; case 94756344: if (string.equals("close")) { if (aVar3.f267827c) { aVar3.f267828d = true; } lx2.f VN04 = aVar3.f267825a.VN0(); if (VN04 != null) { VN04.d(bVar); break; } } else { return false; } break; case 106440182: if (string.equals("pause")) { aVar3.f267825a.Z(); break; } else { return false; } case 109757538: if (!string.equals(IXWebBroadcastListener.STAGE_START)) { return false; } aVar3.f267827c = true; String string2 = bundle.getString("username"); int i17 = bundle.getInt("isVideoCall"); boolean z15 = bundle.getBoolean("isOutCall"); long j15 = bundle.getLong("seekStartMs"); if (bundle.containsKey("isSpeakOn")) { bool = Boolean.valueOf(bundle.getBoolean("isSpeakOn")); } else { bool = null; } boolean a15 = aVar3.a(string2, i17, z15, j15, bool); aVar3.f267827c = false; if (aVar3.f267828d) { aVar3.f267828d = false; lx2.f VN05 = aVar3.f267825a.VN0(); if (VN05 != null) { VN05.d(bVar); } } return a15; default: return false; } return true; } @Override // yz3.e public void onAccountInitialized(Context context) { m.g(context, "context"); super.onAccountInitialized(context); p.k(); ((b42.c) r.f342954a.e(e2.class).c(b42.c.class)).b3(RingtoneSelectUI.class); } @Override // yz3.e public void onAccountReleased(Context context) { m.g(context, "context"); super.onAccountReleased(context); z1 z1Var = p.f355979h; if (z1Var != null) { z1.a.a(z1Var, null, 1, null); } p.f355979h = null; } @Override // zw2.c public void setMute(boolean z15) { lx2.b bVar; lx2.f VN0 = VN0(); if (VN0 != null && (bVar = VN0.f256965c) != null) { bVar.i(z15); } } @Override // zw2.c public void wo0(Context context, int i15) { m.g(context, "context"); f355915f.a(context, i15); } }