package d8; public final class e extends kotlin.coroutines.jvm.internal.SuspendLambda implements a7.e { public long c; public Object d; public java.util.Iterator e; public byte[] f; public kotlin.jvm.internal.d0 g; public byte[] h; public Object i; public int j; public int k; public int l; public int m; public int n; public boolean o; public int p; public final synthetic d8.f q; public final synthetic Object r; public final synthetic g8.d s; public final synthetic a7.a t; public e(d8.f p1, Object p2, g8.d p3, a7.a p4, kotlin.coroutines.Continuation p5) { this.q = p1; this.r = p2; this.s = p3; this.t = p4; super(2, p5); return; } public final kotlin.coroutines.Continuation create(Object p7, kotlin.coroutines.Continuation p8) { return new d8.e(this.q, this.r, this.s, this.t, p8); } public final Object invoke(Object p1, Object p2) { return ((d8.e) this.create(((kotlinx.coroutines.CoroutineScope) p1), ((kotlin.coroutines.Continuation) p2))).invokeSuspend(p6.a0.a); } public final Object invokeSuspend(Object p31) { try { int v18_5; byte[] v9_1; String v21_2; Integer v7_0; long v10_0; byte[] v15_0; Exception v0_21; boolean v12_11; int v22_0; Integer v3_0; Exception v0_24; int v11_1; byte[] v15_4; Integer v5_1; int v20_0; int v8_10; boolean v12_15; Integer v7_7; boolean v23_1; Integer v7_8; Exception v0_1; int v13_9; int v18_2; String v6_0; int v11_9; int v24_3; String v4_0; String v6_1; byte[] v14_2; byte[] v9_0; Integer v31_3; Exception v0_0 = this.r; Boolean v2_0 = this.q; v3_0 = v2_0.j; v4_0 = v2_0.h; v5_1 = v2_0.b; v6_0 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED(); v8_10 = p6.a0.a; switch (this.p) { case 0: q6.y.Y(p31); v9_0 = System.currentTimeMillis(); v2_0.l("\u5f00\u59cbEPD\u901a\u9053\u56fe\u7247\u4e0a\u4f20"); v4_0.setValue(kotlin.coroutines.jvm.internal.Boxing.boxBoolean(1)); v3_0.setValue(kotlin.coroutines.jvm.internal.Boxing.boxInt(0)); v11_1 = q6.n.Y(new p6.g[] {new p6.g(d8.f.o(v2_0, v0_0, 0), kotlin.coroutines.jvm.internal.Boxing.boxBoolean(0)), new p6.g(d8.f.o(v2_0, v0_0, 1), kotlin.coroutines.jvm.internal.Boxing.boxBoolean(1))})); Exception v0_6 = v11_1.iterator(); v7_0 = 0; while (v0_6.hasNext()) { v7_0 += ((byte[]) ((p6.g) v0_6.next()).c).length; } Exception v0_8 = d8.f.p(v2_0, "8001"); this.d = v11_1; this.c = v9_0; this.j = v7_0; this.k = 0; this.p = 1; if (v5_1.sendEpdBytes(v0_8, this) != v6_0) { v0_1 = 0; boolean v12_6 = d8.f.p(v2_0, "0000"); this.d = v11_1; this.c = v9_0; this.j = v7_0; this.k = v0_1; this.p = 2; if (v5_1.sendEpdBytes(v12_6, this) != v6_0) { boolean v12_9 = d8.f.p(v2_0, "020000"); this.d = v11_1; this.c = v9_0; this.j = v7_0; this.k = v0_1; this.p = 3; if (v5_1.sendEpdBytes(v12_9, this) != v6_0) { v12_11 = v11_1.iterator(); if (!v12_11.hasNext()) { Integer v31_1 = v5_1; v5_1 = v3_0; v3_0 = v6_0; v6_0 = v4_0; v4_0 = v31_1; v22_0 = v8_10; Integer v31_2 = v11_1; int v8_1 = d8.f.p(v2_0, "0101"); this.d = kotlin.coroutines.jvm.internal.SpillingKt.nullOutSpilledVariable(v31_2); this.e = 0; this.f = 0; this.g = 0; this.h = 0; this.i = 0; this.c = v9_0; this.j = v7_0; this.k = v0_1; this.p = 5; if (v4_0.sendEpdBytes(v8_1, this) != v3_0) { v11_9 = v31_2; this.d = kotlin.coroutines.jvm.internal.SpillingKt.nullOutSpilledVariable(v11_9); this.c = v9_0; this.j = v7_0; this.k = v0_1; this.p = 6; if (kotlinx.coroutines.DelayKt.delay(300, this) != v3_0) { int v8_8; int v8_7 = this.s.b; if (v8_7 == 0) { v8_8 = 0; } else { v8_8 = v8_7.f; } int v8_9; if (v8_8 == 0) { v8_9 = "e2"; } else { v8_9 = "aa"; } this.d = kotlin.coroutines.jvm.internal.SpillingKt.nullOutSpilledVariable(v11_9); this.c = v9_0; this.j = v7_0; this.k = v0_1; this.p = 7; if (v4_0.sendCommand(v8_9, this) != v3_0) { v5_1.setValue(kotlin.coroutines.jvm.internal.Boxing.boxInt(100)); Exception v0_16 = w7.w.j((((float) (System.currentTimeMillis() - v9_0)) / 1148846080)); Integer v3_5 = new StringBuilder(); v3_5.append("\u4e0a\u4f20\u5b8c\u6210\uff0c\u8017\u65f6"); v3_5.append(v0_16); v3_5.append("s"); v2_0.l(v3_5.toString()); this.t.invoke(); v6_0.setValue(kotlin.coroutines.jvm.internal.Boxing.boxBoolean(0)); return v22_0; } else { return v3_0; } } else { return v3_0; } } else { return v3_0; } } else { int v13_4 = ((p6.g) v12_11.next()); byte[] v14_1 = ((byte[]) v13_4.c); int v13_7 = ((Boolean) v13_4.d).booleanValue(); if (v13_7 != 0) { v15_0 = 0; } else { v15_0 = -1; } String v21_0; int v18_1 = new kotlin.jvm.internal.d0(); if (v13_7 != 0) { v21_0 = "BWR"; } else { v21_0 = "BW"; } v22_0 = v8_10; v31_3 = v11_1; v8_10 = v21_0; int v11_12 = v14_1.length; String v21_1 = v12_11; boolean v12_14 = new StringBuilder(); boolean v23_0 = v13_7; v12_14.append("\u53d1\u9001"); v12_14.append(v8_10); v12_14.append(" "); v12_14.append(v11_12); v12_14.append("B"); v2_0.l(v12_14.toString()); v8_10 = 240; v10_0 = v9_0; v13_9 = v18_1; v12_15 = v23_0; v18_2 = 0; v9_1 = v7_0; v7_7 = v0_1; v0_21 = v14_1; v14_2 = v21_1; v21_2 = v4_0; String v4_2 = v13_9.c; v23_1 = v3_0; if (v4_2 >= v0_21.length) { int v17 = 2; v0_1 = v7_7; v7_0 = v9_1; v9_0 = v10_0; v12_11 = v14_2; v4_0 = v21_2; v8_10 = v22_0; v3_0 = v23_1; v11_1 = v31_3; } else { Integer v3_9 = q6.n.k0(v0_21, v13_9.c, Math.min((v4_2 + v8_10), v0_21.length)); int v24_0 = v3_9; String v4_7 = new byte[(v3_9.length + 4)]; v4_7[0] = 3; v4_7[1] = ((byte) v15_0); Integer v3_12 = v13_9.c; byte[] v25_0 = v4_7; v25_0[2] = ((byte) (v3_12 >> 8)); v25_0[3] = ((byte) (v3_12 & 255)); q6.n.g0(v24_0, v25_0, 4, 0, 0, 12); Integer v3_15 = v24_0; int v24_1 = v6_0; v6_0 = (v18_2 + 1); byte[] v25_1 = v25_0; String v4_11 = v3_15.length; int v18_3 = v5_1; Integer v5_2 = v13_9.c; String v26_1 = v8_10; int v8_15 = new StringBuilder(); int v27_1 = v15_0; v8_15.append("\u7b2c"); v8_15.append(v6_0); v8_15.append("\u5757 \u00b7 "); v8_15.append(v4_11); v8_15.append("B \u00b7 \u504f\u79fb"); v8_15.append(v5_2); v2_0.l(v8_15.toString()); this.d = kotlin.coroutines.jvm.internal.SpillingKt.nullOutSpilledVariable(v31_3); this.e = v14_2; this.f = v0_21; this.g = v13_9; this.h = v3_15; this.i = kotlin.coroutines.jvm.internal.SpillingKt.nullOutSpilledVariable(v25_1); this.c = v10_0; this.j = v9_1; this.k = v7_7; this.o = v12_15; byte[] v15_3 = v27_1; this.l = v15_3; v8_10 = v26_1; this.m = v8_10; this.n = v6_0; this.p = 4; v4_0 = v18_3; v5_1 = v4_0.sendEpdBytes(v25_1, this); v3_0 = v24_1; if (v5_1 != v3_0) { v15_4 = v7_7; v7_8 = v3_15; v18_5 = v15_3; v24_3 = v6_0; v6_1 = v0_21; v0_24 = v31_3; while (!((Boolean) v5_1).booleanValue()) { try { v2_0.l("\u53d1\u9001\u5931\u8d25\uff0c\u5df2\u4e2d\u6b62"); v5_1 = v23_1; try { v5_1.setValue(kotlin.coroutines.jvm.internal.Boxing.boxInt(0)); v21_2.setValue(kotlin.coroutines.jvm.internal.Boxing.boxBoolean(0)); return v22_0; } catch (Exception v0_22) { Integer v3_16 = v21_2; v6_0 = v3_16; Exception v0_34 = v0_22.getMessage(); Integer v3_20 = new StringBuilder(); v3_20.append("\u4f20\u8f93\u4e2d\u65ad: "); v3_20.append(v0_34); v2_0.l(v3_20.toString()); v5_1.setValue(kotlin.coroutines.jvm.internal.Boxing.boxInt(0)); v6_0.setValue(kotlin.coroutines.jvm.internal.Boxing.boxBoolean(0)); return v22_0; } } catch (Exception v0_22) { v3_16 = v21_2; v5_1 = v23_1; } catch (Exception v0_2) { v6_0 = v21_2; v20_0 = 0; } v5_1.setValue(kotlin.coroutines.jvm.internal.Boxing.boxInt(0)); v21_2.setValue(kotlin.coroutines.jvm.internal.Boxing.boxBoolean(0)); return v22_0; } Integer v31_4 = v6_1; String v6_2 = v21_2; Integer v5_6 = v23_1; String v21_3 = v0_24; v13_9.c = (v13_9.c + v8_10); v7_7 = (v15_4 + v7_8.length); v5_6.setValue(kotlin.coroutines.jvm.internal.Boxing.boxInt(((v7_7 * 100) / v9_1))); v0_21 = v31_4; v15_0 = v18_5; v31_3 = v21_3; v18_2 = v24_3; v21_2 = v6_2; v6_0 = v3_0; v3_0 = v5_6; v5_1 = v4_0; } else { return v3_0; } } } } else { v3_0 = v6_0; return v3_0; } } else { } } else { } case 1: v20_0 = 0; v0_1 = this.k; v7_0 = this.j; v9_0 = this.c; v11_1 = ((java.util.List) this.d); q6.y.Y(p31); break; case 2: v20_0 = 0; v0_1 = this.k; v7_0 = this.j; v9_0 = this.c; v11_1 = ((java.util.List) this.d); q6.y.Y(p31); break; case 3: v20_0 = 0; v0_1 = this.k; v7_0 = this.j; v9_0 = this.c; v11_1 = ((java.util.List) this.d); q6.y.Y(p31); break; case 4: Integer v7_9 = this.m; int v13_10 = this.l; byte[] v14_3 = this.o; v15_4 = this.k; int v18_6 = this.j; byte[] v9_2 = this.c; int v11_15 = this.h; v20_0 = 0; boolean v12_21 = this.g; String v21_4 = this.n; int v22_3 = this.f; boolean v23_2 = this.e; v0_24 = ((java.util.List) this.d); q6.y.Y(p31); v23_1 = v3_0; v3_0 = v6_0; v6_1 = v22_3; v22_0 = v8_10; v8_10 = v7_9; v7_8 = v11_15; v10_0 = v9_2; v9_1 = v18_6; v18_5 = v13_10; v13_9 = v12_21; v12_15 = v14_3; v14_2 = v23_2; v24_3 = v21_4; v17 = 2; v21_2 = v4_0; v4_0 = v5_1; v5_1 = p31; break; case 5: v0_1 = this.k; v7_0 = this.j; v9_0 = this.c; v11_9 = ((java.util.List) this.d); q6.y.Y(p31); int v22_2 = v5_1; v5_1 = v3_0; v3_0 = v6_0; v6_0 = v4_0; v4_0 = v22_2; v22_0 = v8_10; break; case 6: v0_1 = this.k; v7_0 = this.j; v9_0 = this.c; v11_9 = ((java.util.List) this.d); q6.y.Y(p31); int v22_1 = v5_1; v5_1 = v3_0; v3_0 = v6_0; v6_0 = v4_0; v4_0 = v22_1; v22_0 = v8_10; break; case 7: Integer v5_0 = this.c; q6.y.Y(p31); v9_0 = v5_0; v22_0 = v8_10; v5_1 = v3_0; v6_0 = v4_0; v5_1.setValue(kotlin.coroutines.jvm.internal.Boxing.boxInt(100)); v0_16 = w7.w.j((((float) (System.currentTimeMillis() - v9_0)) / 1148846080)); v3_5 = new StringBuilder(); v3_5.append("\u4e0a\u4f20\u5b8c\u6210\uff0c\u8017\u65f6"); v3_5.append(v0_16); v3_5.append("s"); v2_0.l(v3_5.toString()); this.t.invoke(); v6_0.setValue(kotlin.coroutines.jvm.internal.Boxing.boxBoolean(0)); return v22_0; default: throw new IllegalStateException("call to \'resume\' before \'invoke\' with coroutine"); } } catch (Exception v0_22) { v5_1 = v3_0; v6_0 = v4_0; v22_0 = v8_10; v0_34 = v0_22.getMessage(); v3_20 = new StringBuilder(); v3_20.append("\u4f20\u8f93\u4e2d\u65ad: "); v3_20.append(v0_34); v2_0.l(v3_20.toString()); v5_1.setValue(kotlin.coroutines.jvm.internal.Boxing.boxInt(0)); v6_0.setValue(kotlin.coroutines.jvm.internal.Boxing.boxBoolean(0)); return v22_0; } catch (Exception v0_2) { v6_0 = v4_0; } catch (Exception v0_2) { v6_0 = v4_0; } v6_0.setValue(kotlin.coroutines.jvm.internal.Boxing.boxBoolean(v20_0)); throw v0_2; } }