Files

219 lines
9.1 KiB
Java

package e8;
public final class j extends kotlin.coroutines.jvm.internal.SuspendLambda implements a7.e {
public int c;
public int d;
public int e;
public int f;
public Object g;
public e8.o h;
public java.util.Iterator i;
public Object j;
public Object k;
public Object l;
public String m;
public int n;
public final synthetic e8.o o;
public final synthetic java.util.List p;
public final synthetic a7.a q;
public j(e8.o p1, java.util.List p2, a7.a p3, kotlin.coroutines.Continuation p4)
{
this.o = p1;
this.p = p2;
this.q = p3;
super(2, p4);
return;
}
public final kotlin.coroutines.Continuation create(Object p4, kotlin.coroutines.Continuation p5)
{
return new e8.j(this.o, this.p, this.q, p5);
}
public final Object invoke(Object p1, Object p2)
{
return ((e8.j) this.create(((kotlinx.coroutines.CoroutineScope) p1), ((kotlin.coroutines.Continuation) p2))).invokeSuspend(p6.a0.a);
}
public final Object invokeSuspend(Object p22)
{
int v10_5;
java.util.Iterator v13_2;
boolean v20;
int v11_1;
e8.d v5_11;
Object v6_6;
int v18;
java.util.List v15_2;
e8.d v14_0;
int v12_2;
Exception v0_5;
int v17_0;
Exception v0_0 = this.o;
int v2_0 = v0_0.h;
kotlinx.coroutines.sync.Mutex v3 = v0_0.g;
int v4_6 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED();
e8.d v5_12 = this.n;
Object v6_0 = p6.a0.a;
int v7_0 = 0;
int v8_0 = 0;
Object v9_0 = 1;
try {
if (v5_12 == null) {
q6.y.Y(p22);
if (kotlinx.coroutines.sync.Mutex$DefaultImpls.tryLock$default(v3, 0, 1, 0)) {
v2_0.setValue(kotlin.coroutines.jvm.internal.Boxing.boxBoolean(1));
v0_0.j.setValue(kotlin.coroutines.jvm.internal.Boxing.boxInt(0));
int v11_0 = this.p;
e8.d v5_7 = v11_0.size();
int v10_2 = q6.o.s0(v11_0, "", 0, 0, new e1.v(2), 30);
int v12_5 = new StringBuilder("\u5f00\u59cb\u6267\u884c\uff0c\u5171");
v12_5.append(v5_7);
v12_5.append(" \u6761\u6307\u4ee4\uff1a");
v12_5.append(v10_2);
System.out.println(v12_5.toString());
v13_2 = v11_0.iterator();
v15_2 = v11_0;
v11_1 = v11_0.size();
v10_5 = 0;
v5_11 = v0_0;
v0_5 = 0;
if (!v13_2.hasNext()) {
v20 = v6_0;
v18 = v7_0;
v17_0 = v8_0;
try {
this.q.invoke();
v2_0.setValue(kotlin.coroutines.jvm.internal.Boxing.boxBoolean(v18));
v2_0 = v17_0;
kotlinx.coroutines.sync.Mutex$DefaultImpls.unlock$default(v3, v2_0, 1, v2_0);
return v20;
} catch (Exception) {
int v4_0 = 0;
int v7_3 = 1;
}
} else {
int v12_1 = v13_2.next();
v14_0 = (v0_5 + 1);
if (v0_5 < null) {
v20 = v6_0;
v18 = v7_0;
v17_0 = v8_0;
k3.t.W();
throw v17_0;
} else {
String v16_1 = ((String) v12_1);
v18 = v7_0;
int v7_2 = i7.i.S0(v16_1).toString();
v17_0 = v8_0;
try {
int v8_3;
if (!i7.p.f0(v7_2, "TIME")) {
v8_3 = v7_2;
} else {
v8_3 = e8.o.m();
}
} catch (Exception) {
v20 = v6_0;
v7_3 = v9_0;
v4_0 = v17_0;
}
Object v9_2 = new StringBuilder();
v20 = v6_0;
v9_2.append("\u6b63\u5728\u53d1\u9001(");
v9_2.append(v14_0);
v9_2.append("/");
v9_2.append(v11_1);
v9_2.append("): ");
v9_2.append(v8_3);
System.out.println(v9_2.toString());
try {
Object v6_5 = v5_11.b;
this.g = kotlin.coroutines.jvm.internal.SpillingKt.nullOutSpilledVariable(v15_2);
this.h = v5_11;
this.i = v13_2;
this.j = kotlin.coroutines.jvm.internal.SpillingKt.nullOutSpilledVariable(v12_1);
this.k = kotlin.coroutines.jvm.internal.SpillingKt.nullOutSpilledVariable(v16_1);
this.l = kotlin.coroutines.jvm.internal.SpillingKt.nullOutSpilledVariable(v7_2);
this.m = v8_3;
this.c = v11_1;
this.d = v10_5;
this.e = v14_0;
this.f = v0_5;
this.n = 1;
v6_6 = v6_5.sendCommand(v8_3, this);
} catch (Exception v0_6) {
v14_0 = v5_11;
v12_2 = v8_3;
int v4_1 = v0_6.getMessage();
e8.d v5_4 = new StringBuilder();
v5_4.append("\u6307\u4ee4\u53d1\u9001\u5931\u8d25 ");
v5_4.append(v12_2);
v5_4.append(", \u539f\u56e0: ");
v5_4.append(v4_1);
v14_0.l(v5_4.toString());
v14_0.l.tryEmit(new e8.d(v0_6, v12_2));
throw v0_6;
}
if (v6_6 != v4_6) {
v12_2 = v8_3;
if (!((Boolean) v6_6).booleanValue()) {
throw new IllegalStateException("\u53d1\u9001\u5931\u8d25");
} else {
v5_11.j.setValue(kotlin.coroutines.jvm.internal.Boxing.boxInt((((v0_5 + 1) * 100) / v11_1)));
v0_5 = v14_0;
v8_0 = v17_0;
v7_0 = v18;
v6_0 = v20;
v9_0 = 1;
}
} else {
return v4_6;
}
}
}
} else {
v0_0.l("\u6267\u884c\u8df3\u8fc7\uff1a\u4e92\u65a5\u9501\u5df2\u88ab\u5360\u7528");
return v6_0;
}
} else {
if (v5_12 != 1) {
throw new IllegalStateException("call to \'resume\' before \'invoke\' with coroutine");
} else {
v0_5 = this.f;
e8.d v5_13 = this.e;
v10_5 = this.d;
v11_1 = this.c;
v12_2 = this.m;
java.util.Iterator v13 = ((String) this.k);
v13_2 = this.i;
e8.d v14_2 = this.h;
v15_2 = ((Iterable) this.g);
try {
q6.y.Y(p22);
v14_0 = v5_13;
v5_11 = v14_2;
v20 = v6_0;
v18 = 0;
v17_0 = 0;
v6_6 = p22;
} catch (Exception v0_6) {
v20 = p22;
v18 = 0;
v17_0 = 0;
}
}
}
} catch (Exception v0_9) {
v18 = 0;
v2_0.setValue(kotlin.coroutines.jvm.internal.Boxing.boxBoolean(v18));
kotlinx.coroutines.sync.Mutex$DefaultImpls.unlock$default(v3, 0, 1, 0);
throw v0_9;
} catch (Exception v0_9) {
}
v2_0.setValue(kotlin.coroutines.jvm.internal.Boxing.boxBoolean(v18));
kotlinx.coroutines.sync.Mutex$DefaultImpls.unlock$default(v3, v4_0, v7_3, v4_0);
return v20;
}
}