ViMusic v0.5.4版本的 MD5 值为:e5d76df875234aa34db5af7d13eb379b
以下内容为反编译后的 c2.java 源代码,内容仅作参考
package l;
import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.Intent;
import android.text.BoringLayout;
import android.text.Layout;
import android.text.Spanned;
import android.text.TextPaint;
import it.vfsfitvnm.vimusic.service.PlayerService;
import java.security.cert.Certificate;
import java.security.cert.X509Certificate;
import java.util.ArrayList;
import java.util.List;
public final class c2 extends z7.i implements y7.a {
public final int f6087r;
public final Object f6088s;
public final Object f6089t;
public final Object f6090u;
public c2(Object obj, Object obj2, Object obj3, int i10) {
super(0);
this.f6087r = i10;
this.f6089t = obj;
this.f6088s = obj2;
this.f6090u = obj3;
}
public final m7.i a() {
boolean z9;
boolean z10;
boolean z11 = false;
switch (this.f6087r) {
case 19:
if (((Number) ((y.b1) this.f6090u).getValue()).intValue() != ((q.q0) this.f6089t).e() ? ((q.q0) this.f6089t).e() > ((Number) ((y.b1) this.f6090u).getValue()).intValue() : ((q.q0) this.f6089t).f() > ((Number) ((y.b1) this.f6088s).getValue()).intValue()) {
z10 = true;
} else {
z10 = false;
}
if (((q.q0) this.f6089t).e() > ((q.q0) this.f6089t).g().g().size()) {
z11 = true;
}
((y.b1) this.f6090u).setValue(Integer.valueOf(((q.q0) this.f6089t).e()));
((y.b1) this.f6088s).setValue(Integer.valueOf(((q.q0) this.f6089t).f()));
return new m7.i(z10, z11);
default:
if (((Number) ((y.b1) this.f6090u).getValue()).intValue() != ((r.r0) this.f6089t).d() ? ((r.r0) this.f6089t).d() > ((Number) ((y.b1) this.f6090u).getValue()).intValue() : ((r.r0) this.f6089t).e() > ((Number) ((y.b1) this.f6088s).getValue()).intValue()) {
z9 = true;
} else {
z9 = false;
}
if (((r.r0) this.f6089t).d() > ((r.r0) this.f6089t).f().g().size()) {
z11 = true;
}
((y.b1) this.f6090u).setValue(Integer.valueOf(((r.r0) this.f6089t).d()));
((y.b1) this.f6088s).setValue(Integer.valueOf(((r.r0) this.f6089t).e()));
return new m7.i(z9, z11);
}
}
public final void b() {
String sb;
Object obj;
int i10;
int i11;
int i12;
Long l10;
o2.g0 g0Var;
String str;
v6.f fVar;
v6.f fVar2;
int i13 = 0;
String str2 = null;
switch (this.f6087r) {
case 3:
if (((y7.e) this.f6089t) != null) {
((y.x) this.f6088s).b0(200, g7.y.f3299h);
y.x xVar = (y.x) this.f6088s;
y7.e eVar = (y7.e) this.f6089t;
g7.e.z(xVar, "composer");
g7.e.z(eVar, "composable");
g7.y.h(2, eVar);
eVar.u(xVar, 1);
((y.x) this.f6088s).r(false);
return;
}
((y.x) this.f6088s).getClass();
y.x xVar2 = (y.x) this.f6088s;
if (xVar2.f13865r.isEmpty()) {
xVar2.f13859l = xVar2.D.o() + xVar2.f13859l;
return;
}
y.c2 c2Var = xVar2.D;
int f10 = c2Var.f();
int i14 = c2Var.f13606g;
if (i14 < c2Var.f13607h) {
obj = c2Var.l(c2Var.f13601b, i14);
} else {
obj = null;
}
Object e10 = c2Var.e();
xVar2.k0(obj, f10, e10);
xVar2.d0(null, i8.a0.W(c2Var.f13601b, c2Var.f13606g));
xVar2.L();
c2Var.d();
xVar2.m0(obj, f10, e10);
return;
case 4:
case 8:
default:
m6.l e11 = v8.i.e((y.b1) this.f6090u);
if (e11 == null || (sb = e11.f7458e) == null) {
StringBuilder s9 = a.g.s("https://music.youtube.com/playlist?list=");
s9.append(h8.i.E0("VL", (String) this.f6089t));
sb = s9.toString();
}
Intent intent = new Intent();
intent.setAction("android.intent.action.SEND");
intent.setType("text/plain");
intent.putExtra("android.intent.extra.TEXT", sb);
((Context) this.f6088s).startActivity(Intent.createChooser(intent, null));
return;
case 5:
z.i o10 = ((e1.k0) this.f6089t).D.f2031a.o();
int i15 = o10.f14272s;
if (i15 > 0) {
Object[] objArr = o10.f14270q;
g7.e.x(objArr, "null cannot be cast to non-null type kotlin.Array<T of androidx.compose.runtime.collection.MutableVector>");
int i16 = 0;
do {
e1.k0 k0Var = ((e1.f0) objArr[i16]).S.f2042l;
g7.e.w(k0Var);
k0Var.f2012y = k0Var.f2011x;
k0Var.f2011x = false;
i16++;
} while (i16 < i15);
z.i o11 = ((e1.n0) this.f6088s).f2031a.o();
i10 = o11.f14272s;
if (i10 <= 0) {
Object[] objArr2 = o11.f14270q;
g7.e.x(objArr2, "null cannot be cast to non-null type kotlin.Array<T of androidx.compose.runtime.collection.MutableVector>");
int i17 = 0;
do {
e1.f0 f0Var = (e1.f0) objArr2[i17];
if (f0Var.N == 2) {
f0Var.N = 3;
}
i17++;
} while (i17 < i10);
((e1.k0) this.f6089t).s(v.s1.T);
((e1.p0) this.f6090u).k0().i();
((e1.k0) this.f6089t).s(v.s1.U);
z.i o12 = ((e1.k0) this.f6089t).D.f2031a.o();
i11 = o12.f14272s;
if (i11 <= 0) {
Object[] objArr3 = o12.f14270q;
g7.e.x(objArr3, "null cannot be cast to non-null type kotlin.Array<T of androidx.compose.runtime.collection.MutableVector>");
do {
e1.k0 k0Var2 = ((e1.f0) objArr3[i13]).S.f2042l;
g7.e.w(k0Var2);
if (!k0Var2.f2011x) {
k0Var2.e0();
}
i13++;
} while (i13 < i11);
return;
}
return;
}
((e1.k0) this.f6089t).s(v.s1.T);
((e1.p0) this.f6090u).k0().i();
((e1.k0) this.f6089t).s(v.s1.U);
z.i o122 = ((e1.k0) this.f6089t).D.f2031a.o();
i11 = o122.f14272s;
if (i11 <= 0) {
}
} else {
z.i o112 = ((e1.n0) this.f6088s).f2031a.o();
i10 = o112.f14272s;
if (i10 <= 0) {
}
}
case 6:
e1.f0 f0Var2 = ((e1.n0) this.f6089t).f2031a;
f0Var2.L = 0;
z.i o13 = f0Var2.o();
int i18 = o13.f14272s;
if (i18 > 0) {
Object[] objArr4 = o13.f14270q;
g7.e.x(objArr4, "null cannot be cast to non-null type kotlin.Array<T of androidx.compose.runtime.collection.MutableVector>");
int i19 = 0;
do {
e1.f0 f0Var3 = (e1.f0) objArr4[i19];
f0Var3.K = f0Var3.J;
f0Var3.J = Integer.MAX_VALUE;
if (f0Var3.M == 2) {
f0Var3.M = 3;
}
i19++;
} while (i19 < i18);
((e1.m0) this.f6088s).s(e1.j0.f2000u);
((e1.f0) this.f6090u).R.f2073b.k0().i();
e1.f0 f0Var4 = ((e1.n0) this.f6089t).f2031a;
z.i o14 = f0Var4.o();
i12 = o14.f14272s;
if (i12 <= 0) {
Object[] objArr5 = o14.f14270q;
g7.e.x(objArr5, "null cannot be cast to non-null type kotlin.Array<T of androidx.compose.runtime.collection.MutableVector>");
do {
e1.f0 f0Var5 = (e1.f0) objArr5[i13];
if (f0Var5.K != f0Var5.J) {
f0Var4.C();
f0Var4.r();
if (f0Var5.J == Integer.MAX_VALUE) {
f0Var5.z();
}
}
i13++;
} while (i13 < i12);
((e1.m0) this.f6088s).s(e1.j0.f2001v);
return;
}
((e1.m0) this.f6088s).s(e1.j0.f2001v);
return;
}
((e1.m0) this.f6088s).s(e1.j0.f2000u);
((e1.f0) this.f6090u).R.f2073b.k0().i();
e1.f0 f0Var42 = ((e1.n0) this.f6089t).f2031a;
z.i o142 = f0Var42.o();
i12 = o142.f14272s;
if (i12 <= 0) {
}
case 7:
((androidx.compose.ui.platform.a) this.f6089t).removeOnAttachStateChangeListener((androidx.compose.ui.platform.u) this.f6088s);
androidx.compose.ui.platform.a aVar = (androidx.compose.ui.platform.a) this.f6089t;
a3.o oVar = (a3.o) this.f6090u;
g7.e.z(aVar, "<this>");
g7.e.z(oVar, "listener");
q6.c.V(aVar).f6423a.remove(oVar);
return;
case 9:
b8.a.a2(((a1.d) this.f6089t).f50a, null);
((x6.j) this.f6088s).i(-v1.n.c(((a1.d) this.f6089t).a()), (y7.a) this.f6090u);
return;
case 10:
((y7.a) this.f6089t).e();
v.y0.c0(new y6.x((w6.m) this.f6088s, (v6.l) this.f6090u));
return;
case 11:
((y7.a) this.f6089t).e();
v6.h hVar = (v6.h) this.f6090u;
((y7.e) this.f6088s).u(hVar.f12321a, Integer.valueOf(hVar.f12322b));
return;
case 12:
w6.m mVar = (w6.m) this.f6089t;
if (mVar != null) {
long a10 = y6.k0.a((y.b1) this.f6090u) * 10 * 60 * 1000;
m7.n nVar = mVar.f12821c.f4298y;
if (nVar != null) {
((l8.z0) nVar.f7532a).k(null);
nVar.f7533b.a();
nVar.f7534c.f(null);
}
PlayerService playerService = mVar.f12821c;
n8.d dVar = playerService.B;
w6.l lVar = new w6.l(playerService, 0);
g7.e.z(dVar, "<this>");
l8.z0 c10 = v8.i.c(Long.valueOf(a10));
i8.v1 u02 = g7.e.u0(dVar, null, 0, new m7.o(c10, null), 3);
playerService.f4298y = new m7.n(c10, u02.l(new w.c0(lVar, 6)), u02);
}
((y.b1) this.f6088s).setValue(Boolean.FALSE);
return;
case 13:
t6.a aVar2 = t6.b.f11029a;
String str3 = (String) this.f6089t;
if (((Long) ((y.b1) this.f6090u).getValue()) == null) {
l10 = Long.valueOf(System.currentTimeMillis());
} else {
l10 = null;
}
if (aVar2.T(str3, l10) == 0 && (g0Var = (o2.g0) this.f6088s) != 0) {
if (g7.e.n(g0Var.f8465q, (String) this.f6089t)) {
str2 = g0Var;
}
if (str2 != null) {
aVar2.M((o2.g0) this.f6088s, g7.c.f3084y);
return;
}
return;
}
return;
case 14:
v.y0.c0(new c2((String) this.f6088s, ((w6.m) this.f6089t).b().a(), (y.b1) this.f6090u, 13));
return;
case 15:
((x6.p) this.f6089t).b(false);
o2.j0 j0Var = (o2.j0) ((y7.a) this.f6088s).e();
try {
Intent intent2 = new Intent("android.intent.action.WEB_SEARCH");
intent2.putExtra("query", ((Object) j0Var.f8531q) + ' ' + ((Object) j0Var.f8532r) + " lyrics");
((Context) this.f6090u).startActivity(intent2);
return;
} catch (ActivityNotFoundException unused) {
q6.a.Y((Context) this.f6090u, "Couldn't find an application to browse the Internet");
return;
}
case 16:
t6.a aVar3 = t6.b.f11029a;
String str4 = (String) this.f6089t;
if (g7.w.b((y.b1) this.f6090u) && (fVar2 = (v6.f) ((y.b1) this.f6088s).getValue()) != null) {
str = fVar2.f12316b;
} else {
str = null;
}
if (!g7.w.b((y.b1) this.f6090u) && (fVar = (v6.f) ((y.b1) this.f6088s).getValue()) != null) {
str2 = fVar.f12317c;
}
aVar3.f11025b.a(new v6.f(str4, str, str2));
return;
case 17:
x6.p pVar = (x6.p) this.f6089t;
pVar.a(x0.c.p(-1572449291, new r.m(pVar, (w6.m) this.f6088s, (o2.g0) this.f6090u, 3), true));
return;
}
}
public final List d() {
List<Certificate> i10;
switch (this.f6087r) {
case 22:
q6.a aVar = ((x8.g) this.f6089t).f13444b;
if (aVar == null) {
i10 = null;
} else {
i10 = aVar.i((String) this.f6090u, (List) this.f6088s);
}
if (i10 == null) {
i10 = (List) this.f6088s;
}
ArrayList arrayList = new ArrayList(o7.o.G0(i10, 10));
for (Certificate certificate : i10) {
arrayList.add((X509Certificate) certificate);
}
return arrayList;
default:
q6.a aVar2 = ((x8.g) this.f6089t).f13444b;
g7.e.w(aVar2);
return aVar2.i(((x8.a) this.f6090u).f13386i.f13510d, ((x8.o) this.f6088s).a());
}
}
@Override
public final Object e() {
long j10;
Float f10;
boolean z9;
boolean z10;
boolean z11 = false;
switch (this.f6087r) {
case 0:
long j11 = ((n0.c) ((y7.c) ((y.r2) this.f6088s).getValue()).c((v1.b) this.f6089t)).f7713a;
if (m7.d.z0(((n0.c) ((y.b1) this.f6090u).getValue()).f7713a) && m7.d.z0(j11)) {
j10 = n0.c.i(((n0.c) ((y.b1) this.f6090u).getValue()).f7713a, j11);
} else {
j10 = n0.c.f7711d;
}
return new n0.c(j10);
case 1:
q.l0 l0Var = new q.l0();
((y7.c) ((y.r2) this.f6088s).getValue()).c(l0Var);
return new q.v(l0Var.f9468b, (e8.g) ((y.r2) this.f6089t).getValue(), (q.h) this.f6090u);
case 2:
int intValue = ((Number) ((y7.a) this.f6089t).e()).intValue();
int intValue2 = ((Number) ((y7.a) this.f6088s).e()).intValue();
int intValue3 = ((Number) ((y7.a) this.f6090u).e()).intValue();
int i10 = (intValue / intValue2) * intValue2;
return q6.c.u0(Math.max(i10 - intValue3, 0), i10 + intValue2 + intValue3);
case 3:
b();
return n7.n.f8152a;
case 4:
return ((g0.m) ((y.r2) this.f6088s).getValue()).b(new g0.d((g0.i) this.f6090u), ((y.r2) this.f6089t).getValue());
case 5:
b();
return n7.n.f8152a;
case 6:
b();
return n7.n.f8152a;
case 7:
b();
return n7.n.f8152a;
case 8:
BoringLayout.Metrics metrics = (BoringLayout.Metrics) ((k1.h) this.f6089t).f5702a.getValue();
if (metrics != null) {
f10 = Float.valueOf(metrics.width);
} else {
f10 = null;
}
if (f10 == null) {
CharSequence charSequence = (CharSequence) this.f6088s;
f10 = Float.valueOf((float) Math.ceil(Layout.getDesiredWidth(charSequence, 0, charSequence.length(), (TextPaint) this.f6090u)));
}
float floatValue = f10.floatValue();
CharSequence charSequence2 = (CharSequence) this.f6088s;
TextPaint textPaint = (TextPaint) this.f6090u;
if (floatValue == 0.0f) {
z9 = true;
} else {
z9 = false;
}
if (!z9 && (charSequence2 instanceof Spanned)) {
if (textPaint.getLetterSpacing() == 0.0f) {
z10 = true;
} else {
z10 = false;
}
if (z10) {
Spanned spanned = (Spanned) charSequence2;
if (!m7.d.t0(spanned, m1.f.class)) {
break;
}
}
z11 = true;
}
if (z11) {
return Float.valueOf(f10.floatValue() + 0.5f);
}
return f10;
case 9:
b();
return n7.n.f8152a;
case 10:
b();
return n7.n.f8152a;
case 11:
b();
return n7.n.f8152a;
case 12:
b();
return n7.n.f8152a;
case 13:
b();
return n7.n.f8152a;
case 14:
b();
return n7.n.f8152a;
case 15:
b();
return n7.n.f8152a;
case 16:
b();
return n7.n.f8152a;
case 17:
b();
return n7.n.f8152a;
case 18:
b();
return n7.n.f8152a;
case 19:
return a();
case 20:
return a();
case 21:
return i8.a0.l0((String) this.f6089t, r8.c.f10314b, new r8.g[0], new f5.c((q8.f) this.f6088s, 13, (q8.b[]) this.f6090u));
case 22:
return d();
default:
return d();
}
}
public c2(Object obj, y.b1 b1Var, Object obj2, int i10) {
super(0);
this.f6087r = i10;
this.f6089t = obj;
this.f6090u = b1Var;
this.f6088s = obj2;
}
public c2(y.r2 r2Var, y.r2 r2Var2, Object obj, int i10) {
super(0);
this.f6087r = i10;
this.f6088s = r2Var;
this.f6089t = r2Var2;
this.f6090u = obj;
}
}