Files

315 lines
13 KiB
Java

package b1;
public final class m extends kotlin.coroutines.jvm.internal.SuspendLambda implements a7.e {
public final synthetic int c;
public int d;
public final synthetic boolean e;
public Object f;
public final synthetic Object g;
public synthetic m(Object p1, boolean p2, Object p3, kotlin.coroutines.Continuation p4, int p5)
{
this.c = p5;
this.f = p1;
this.e = p2;
this.g = p3;
super(2, p4);
return;
}
public m(w7.n p2, boolean p3, kotlin.coroutines.Continuation p4)
{
this.c = 4;
this.g = p2;
this.e = p3;
super(2, p4);
return;
}
public synthetic m(boolean p1, Object p2, Object p3, kotlin.coroutines.Continuation p4, int p5)
{
this.c = p5;
this.e = p1;
this.f = p2;
this.g = p3;
super(2, p4);
return;
}
public final kotlin.coroutines.Continuation create(Object p8, kotlin.coroutines.Continuation p9)
{
switch (this.c) {
case 0:
return new b1.m(((b1.a) this.f), this.e, ((b1.x) this.g), p9, 0);
case 1:
return new b1.m(this.e, ((String) this.f), ((n8.l) this.g), p9, 1);
case 2:
return new b1.m(this.e, ((y0.sd) this.f), ((e1.j1) this.g), p9, 2);
case 3:
return new b1.m(this.e, ((s8.f1) this.f), ((a7.a) this.g), p9, 3);
case 4:
return new b1.m(((w7.n) this.g), this.e, p9);
default:
return new b1.m(((n.c) this.f), this.e, ((n.v0) this.g), p9, 5);
}
}
public final Object invoke(Object p2, Object p3)
{
switch (this.c) {
case 0:
return ((b1.m) this.create(((kotlinx.coroutines.CoroutineScope) p2), ((kotlin.coroutines.Continuation) p3))).invokeSuspend(p6.a0.a);
case 1:
return ((b1.m) this.create(((kotlinx.coroutines.CoroutineScope) p2), ((kotlin.coroutines.Continuation) p3))).invokeSuspend(p6.a0.a);
case 2:
return ((b1.m) this.create(((kotlinx.coroutines.CoroutineScope) p2), ((kotlin.coroutines.Continuation) p3))).invokeSuspend(p6.a0.a);
case 3:
return ((b1.m) this.create(((kotlinx.coroutines.CoroutineScope) p2), ((kotlin.coroutines.Continuation) p3))).invokeSuspend(p6.a0.a);
case 4:
return ((b1.m) this.create(((kotlinx.coroutines.CoroutineScope) p2), ((kotlin.coroutines.Continuation) p3))).invokeSuspend(p6.a0.a);
default:
return ((b1.m) this.create(((kotlinx.coroutines.CoroutineScope) p2), ((kotlin.coroutines.Continuation) p3))).invokeSuspend(p6.a0.a);
}
}
public final Object invokeSuspend(Object p20)
{
r6.c v3_15 = 1065353216;
w7.f0 v6_2 = p6.a0.a;
int v5_11 = this.g;
boolean v7 = this.e;
int v9_2 = 1;
switch (this.c) {
case 0:
w7.f0 v17_4 = v6_2;
w7.o v0_27 = ((b1.x) v5_11).b;
w7.f0 v6_11 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED();
int v1_5 = this.d;
if (v1_5 == 0) {
q6.y.Y(p20);
int v1_8 = ((b1.a) this.f).C;
if (!v7) {
v3_15 = 0;
}
w7.o v0_29;
Boolean v2_3 = kotlin.coroutines.jvm.internal.Boxing.boxFloat(v3_15);
if (!v7) {
v0_29 = ((b1.q) v0_27).n;
} else {
v0_29 = ((b1.q) v0_27).m;
}
this.d = 1;
if (n.c.b(v1_8, v2_3, v0_29, 0, this, 12) != v6_11) {
v6_11 = v17_4;
}
} else {
if (v1_5 != 1) {
throw new IllegalStateException("call to \'resume\' before \'invoke\' with coroutine");
} else {
q6.y.Y(p20);
}
}
return v6_11;
case 1:
w7.f0 v6_9;
w7.f0 v17_3 = v6_2;
int v5_6 = ((n8.l) v5_11);
w7.o v0_22 = ((String) this.f);
Boolean v2_2 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED();
r6.c v3_13 = this.d;
if (v3_13 == null) {
q6.y.Y(p20);
r6.c v3_14 = n8.j.a;
if (!v7) {
int v5_7 = v5_6.a;
this.d = 2;
if (v3_14.f(v0_22, v5_7, this) != v2_2) {
v6_9 = v17_3;
return v6_9;
}
} else {
int v1_4 = v5_6.a;
this.d = 1;
if (v3_14.j(v0_22, v1_4, this) != v2_2) {
}
}
v6_9 = v2_2;
} else {
if ((v3_13 != 1) && (v3_13 != 2)) {
throw new IllegalStateException("call to \'resume\' before \'invoke\' with coroutine");
} else {
q6.y.Y(p20);
}
}
return v6_9;
case 2:
w7.f0 v6_7;
w7.f0 v17_2 = v6_2;
w7.o v0_16 = ((y0.sd) this.f);
Boolean v2_1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED();
r6.c v3_6 = this.d;
if (v3_6 == null) {
q6.y.Y(p20);
if ((!v7) || (!((Boolean) ((e1.j1) v5_11).getValue()).booleanValue())) {
((y0.td) v0_16).b();
v6_7 = v17_2;
} else {
r6.c v3_11 = new okio.internal.b(3);
this.d = 1;
if (e1.c1.a(this.getContext()).e(v3_11, this) != v2_1) {
this.d = 2;
if (y0.sd.a(v0_16, this) != v2_1) {
} else {
v6_7 = v2_1;
}
}
}
} else {
if (v3_6 == 1) {
q6.y.Y(p20);
} else {
if (v3_6 != 2) {
throw new IllegalStateException("call to \'resume\' before \'invoke\' with coroutine");
} else {
q6.y.Y(p20);
}
}
}
return v6_7;
case 3:
w7.f0 v6_4;
w7.f0 v17_1 = v6_2;
w7.o v0_10 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED();
int v1_1 = this.d;
if (v1_1 == 0) {
q6.y.Y(p20);
if (v7) {
v6_4 = v17_1;
} else {
this.d = 1;
if (kotlinx.coroutines.DelayKt.delay(320, this) != v0_10) {
((s8.f1) this.f).a = 0;
((a7.a) v5_11).invoke();
} else {
v6_4 = v0_10;
}
}
} else {
if (v1_1 != 1) {
throw new IllegalStateException("call to \'resume\' before \'invoke\' with coroutine");
} else {
q6.y.Y(p20);
}
}
return v6_4;
case 4:
String v8_5;
int v5_0 = ((w7.n) v5_11);
w7.o v0_7 = v5_0.f;
int v1_0 = v5_0.d;
r6.c v3_4 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED();
r6.c v10_0 = this.d;
try {
if (v10_0 == null) {
q6.y.Y(p20);
String v8_4 = w7.w.e(new p6.g[] {new p6.g("machine", v5_0.c.invoke()), new p6.g("version", kotlin.coroutines.jvm.internal.Boxing.boxInt(4)), new p6.g("platform", "android")}));
this.f = kotlin.coroutines.jvm.internal.SpillingKt.nullOutSpilledVariable(v8_4);
this.d = 1;
v8_5 = k8.h.c("https://qbsg.top/api/check-update", v8_4, this);
if (v8_5 != v3_4) {
r6.c v3_20 = w7.w.k(((String) v8_5));
if (!v3_20.f("isLatest", 1)) {
Boolean v2_10 = v3_20.i(-1, "latestVersionCode");
String v8_11 = v3_20.m("latestVersionName");
if (v8_11 == null) {
v8_11 = "";
}
String v12_3 = v3_20.m("downloadUrl");
if (v12_3 == null) {
v12_3 = "";
}
w7.f0 v17_0;
r6.c v3_2 = v3_20.j("updates");
r6.c v10_9 = k3.t.p();
if (v3_2 != null) {
int v13_2 = v3_2.E();
int v14 = 0;
while (v14 < v13_2) {
n4.q v15 = v3_2.z(v14);
int v16_0 = v9_2;
r6.c v20_1 = v3_2;
r6.c v3_1 = v15.m("versionName");
if (v3_1 == null) {
v3_1 = "";
}
v17_0 = v6_2;
w7.f0 v6_1 = v15.m("changelog");
if (v6_1 == null) {
v6_1 = "";
}
v10_9.add(new w7.g0(v3_1, v6_1));
v14++;
v3_2 = v20_1;
v9_2 = v16_0;
v6_2 = v17_0;
}
}
v17_0 = v6_2;
int v16_2 = v9_2;
v0_7.setValue(new w7.f0(v2_10, v8_11, v12_3, k3.t.i(v10_9)));
if ((v7) || (v2_10 != ((l8.a) ((kotlinx.coroutines.flow.StateFlow) v5_0.b.f).getValue()).i)) {
v1_0.setValue(w7.o.e);
v5_0.h.setValue(kotlin.coroutines.jvm.internal.Boxing.boxBoolean(v16_2));
v6_2 = v17_0;
} else {
v1_0.setValue(w7.o.g);
}
} else {
v5_0.l = 0;
a.b.n(j8.c.d, "updates");
v0_7.setValue(0);
v1_0.setValue(w7.o.h);
}
} else {
v6_2 = v3_4;
}
} else {
if (v10_0 != 1) {
throw new IllegalStateException("call to \'resume\' before \'invoke\' with coroutine");
} else {
q6.y.Y(p20);
v8_5 = p20;
}
}
} catch (Exception) {
v17_0 = v6_2;
v1_0.setValue(w7.o.f);
} catch (Exception) {
}
return v6_2;
default:
r6.c v10_5 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED();
w7.o v0_35 = this.d;
if (v0_35 == null) {
q6.y.Y(p20);
w7.o v0_37 = ((n.c) this.f);
if (!v7) {
v3_15 = 1061997773;
}
int v1_10 = kotlin.coroutines.jvm.internal.Boxing.boxFloat(v3_15);
Boolean v2_8 = ((n.v0) v5_11);
this.d = 1;
if (n.c.b(v0_37, v1_10, v2_8, 0, this, 12) == v10_5) {
v6_2 = v10_5;
}
} else {
if (v0_35 != 1) {
throw new IllegalStateException("call to \'resume\' before \'invoke\' with coroutine");
} else {
q6.y.Y(p20);
}
}
return v6_2;
}
}
}