package a8; public final class f extends kotlin.coroutines.jvm.internal.SuspendLambda implements a7.e { public final synthetic int c; public int d; public Object e; public Object f; public Object g; public final synthetic Object h; public f(a7.c p2, java.util.concurrent.atomic.AtomicReference p3, a7.e p4, kotlin.coroutines.Continuation p5) { this.c = 17; this.g = ((kotlin.jvm.internal.t) p2); this.e = p3; this.h = p4; super(2, p5); return; } public synthetic f(Object p1, Object p2, Object p3, Object p4, kotlin.coroutines.Continuation p5, int p6) { this.c = p6; this.f = p1; this.g = p2; this.e = p3; this.h = p4; super(2, p5); return; } public synthetic f(Object p1, Object p2, Object p3, Object p4, kotlin.coroutines.Continuation p5, int p6, boolean p7) { this.c = p6; this.f = p1; this.e = p2; this.g = p3; this.h = p4; super(2, p5); return; } public synthetic f(Object p1, Object p2, Object p3, kotlin.coroutines.Continuation p4, int p5) { this.c = p5; this.g = p1; this.e = p2; this.h = p3; super(2, p4); return; } public synthetic f(Object p1, Object p2, kotlin.coroutines.Continuation p3, int p4) { this.c = p4; this.e = p1; this.h = p2; super(2, p3); return; } public f(String p2, String p3, String p4, java.util.ArrayList p5, kotlin.coroutines.Continuation p6) { this.c = 24; this.e = p2; this.f = p3; this.g = p4; this.h = p5; super(2, p6); return; } public f(String p2, w7.n p3, w7.f0 p4, kotlin.coroutines.Continuation p5) { this.c = 19; this.e = p2; this.g = p3; this.h = p4; super(2, p5); return; } public f(o8.c5 p2, String p3, kotlin.coroutines.Continuation p4) { this.c = 10; this.g = p2; this.h = p3; super(2, p4); return; } public f(s.d4 p2, kotlin.coroutines.Continuation p3) { this.c = 13; this.h = p2; super(2, p3); return; } public f(s0.v p2, a7.e p3, kotlin.coroutines.Continuation p4) { this.c = 14; this.e = p2; this.h = ((kotlin.coroutines.jvm.internal.SuspendLambda) p3); super(2, p4); return; } private final Object d(Object p10) { Object v10_1; Object v1_4; android.view.textclassifier.TextClassifier v4_3; Object v1_1; String v0_0 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED(); Object v1_2 = this.d; try { if (v1_2 == null) { q6.y.Y(p10); v1_1 = ((s0.v) this.e); v10_1 = v1_1.e; this.f = v10_1; this.g = v1_1; this.d = 1; if (v10_1.lock(0, this) != v0_0) { v4_3 = v1_1.f; if (v4_3 != null) { if (!s0.r.l(v4_3)) { v10_1.unlock(0); Object v10_3 = new s0.t(v4_3, ((kotlin.coroutines.jvm.internal.SuspendLambda) this.h), 0); this.f = 0; this.g = 0; this.d = 3; Object v10_4 = kotlinx.coroutines.TimeoutKt.withTimeoutOrNull(200, v10_3, this); if (v10_4 != v0_0) { return v10_4; } } else { } } android.view.textclassifier.TextClassifier v4_5 = new a9.g4(v1_1, 0, 5); this.f = v10_1; this.g = 0; this.d = 2; Object v1_5 = kotlinx.coroutines.TimeoutKt.withTimeoutOrNull(300, v4_5, this); if (v1_5 != v0_0) { v1_4 = v10_1; p10 = v1_5; v4_3 = m0.p.k(p10); v10_1 = v1_4; } } } else { if (v1_2 == 1) { v1_1 = ((s0.v) this.g); android.view.textclassifier.TextClassifier v4_2 = ((kotlinx.coroutines.sync.Mutex) this.f); q6.y.Y(p10); v10_1 = v4_2; } else { if (v1_2 == 2) { v1_4 = ((kotlinx.coroutines.sync.Mutex) this.f); q6.y.Y(p10); } else { if (v1_2 != 3) { throw new IllegalStateException("call to \'resume\' before \'invoke\' with coroutine"); } else { q6.y.Y(p10); return p10; } } } } } catch (Object v10_1) { v1_4.unlock(0); throw v10_1; } return v0_0; } private final Object e(Object p18) { s0.z v7_6; s0.z v7_2; a7.c v1_2 = ((kotlin.jvm.internal.f0) this.e); s0.a0 v2_1 = ((kotlin.jvm.internal.f0) this.g); e1.t1 v3_2 = ((kotlin.jvm.internal.e0) this.h); s0.b1 v4_1 = ((s0.b1) this.f); s0.g1 v5 = v4_1.a; p6.a0 v6_0 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED(); s0.z v7_0 = this.d; if (v7_0 == null) { q6.y.Y(p18); s0.z v7_1 = v4_1.w; if (v7_1 == null) { v7_2 = 0; } else { CharSequence v14_1 = ((CharSequence) v2_1.c); long v12_0 = ((g3.o0) v1_2.c).a; this.d = 1; s0.v v16_1 = ((s0.v) v7_1); if ((v14_1.length() != 0) && (!g3.o0.c(v12_0))) { s0.z v7_5 = v16_1; v7_6 = kotlinx.coroutines.BuildersKt.withContext(v7_5.a, new a8.f(v7_5, new s0.u(v12_0, v14_1, 0, v16_1), 0), this); } else { v7_6 = 0; } if (v7_6 != v6_0) { v7_2 = ((g3.o0) v7_6); } else { return v6_0; } } } else { if (v7_0 != 1) { throw new IllegalStateException("call to \'resume\' before \'invoke\' with coroutine"); } else { q6.y.Y(p18); v7_6 = p18; } } if (v7_2 != null) { int v9_2 = v7_2.a; if (!g3.o0.a(v9_2, v1_2.c)) { a7.c v1_9 = ((s0.o) v5.c.e(v3_2.c)); if ((v1_9 != null) && (v1_9.d() == v2_1.c)) { a7.c v1_12 = ((g3.l0) v1_9.c.invoke()); if (v1_12 != null) { s0.z v11_5 = ((int) (v9_2 >> 32)); int v9_4 = ((int) (v9_2 & 4294967295)); long v12_3 = v3_2.c; s0.a0 v2_5 = new s0.a0(new s0.z(s0.d1.u(v1_12, v11_5), v11_5, v3_2.c), new s0.z(s0.d1.u(v1_12, v9_4), v9_4, v12_3), 0); a7.c v1_16 = new k.f0(); v1_16.h(v12_3, v2_5); v5.k.setValue(v1_16); v4_1.d.invoke(v2_5); v4_1.t = 0; } } } } return p6.a0.a; } private final Object f(Object p15) { java.util.Map v3_0; q6.u v0_1 = ((e1.j1) this.e); java.util.Set v1_1 = ((java.util.Set) this.g); Object v2 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED(); java.util.Map v3_4 = this.d; if (v3_4 == null) { q6.y.Y(p15); if (!v1_1.isEmpty()) { v3_0 = 0; } else { ((a7.c) v0_1.getValue()).invoke(q6.u.c); return p6.a0.a; } } else { if (v3_4 != 1) { throw new IllegalStateException("call to \'resume\' before \'invoke\' with coroutine"); } else { v3_0 = ((java.util.Map) this.f); q6.y.Y(p15); java.util.Map v15_8 = ((Iterable) v1_1); boolean v6_1 = ((s8.q0) this.h); java.util.ArrayList v7_1 = new java.util.ArrayList(); java.util.Map v15_9 = v15_8.iterator(); while (v15_9.hasNext()) { p6.g v9_3; Object v8_1 = v15_9.next(); p6.g v9_6 = ((s8.u0) v6_1.a.get(v8_1)); if (v9_6 != null) { v9_3 = new p6.g(v8_1, new s8.i0(c7.a.S(((Number) v9_6.b.d()).floatValue()), c7.a.S(((Number) v9_6.c.d()).floatValue()), c7.a.S(((Number) v9_6.d.d()).floatValue()), c7.a.S(((Number) v9_6.e.d()).floatValue()))); } else { v9_3 = 0; } if (v9_3 != null) { v7_1.add(v9_3); } } java.util.Map v15_10 = q6.y.a0(v7_1); if (!v15_10.equals(v3_0)) { ((a7.c) v0_1.getValue()).invoke(v15_10); v3_0 = v15_10; } } } java.util.Map v15_12 = new okio.internal.b(3); this.f = v3_0; this.d = 1; if (e1.c1.a(this.getContext()).e(v15_12, this) != v2) { } else { return v2; } } private final Object g(Object p9) { u1.t v1_1; Object v2_1; String v0_1 = ((java.util.concurrent.atomic.AtomicReference) this.e); u1.t v1_0 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED(); Object v2_3 = this.d; if (v2_3 == null) { q6.y.Y(p9); Throwable v9_2 = ((kotlinx.coroutines.CoroutineScope) this.f); v2_1 = new u1.t(kotlinx.coroutines.JobKt.getJob(v9_2.getCoroutineContext()), ((kotlin.jvm.internal.t) this.g).invoke(v9_2)); Throwable v9_5 = ((u1.t) v0_1.getAndSet(v2_1)); if (v9_5 == null) { try { Throwable v9_9 = ((a7.e) this.h); Object v5_0 = v2_1.b; this.f = v2_1; this.d = 2; p9 = v9_9.invoke(v5_0, this); } catch (Throwable v9_10) { v1_1 = v2_1; } if (p9 != v1_0) { v1_1 = v2_1; } else { return v1_0; } } else { Throwable v9_6 = v9_5.a; if (v9_6 == null) { } else { this.f = v2_1; this.d = 1; if (kotlinx.coroutines.JobKt.cancelAndJoin(v9_6, this) != v1_0) { } } } } else { if (v2_3 == 1) { v2_1 = ((u1.t) this.f); q6.y.Y(p9); } else { if (v2_3 != 2) { throw new IllegalStateException("call to \'resume\' before \'invoke\' with coroutine"); } else { v1_1 = ((u1.t) this.f); try { q6.y.Y(p9); } catch (Throwable v9_10) { } } } } while (!v0_1.compareAndSet(v1_1, 0)) { if (v0_1.get() != v1_1) { break; } } return p9; } private final Object h(Object p11) { w2.z2 v1_1 = ((w2.z2) this.h); androidx.lifecycle.u v2_1 = ((androidx.lifecycle.u) this.e); e1.j2 v4_1 = ((e1.j2) this.g); androidx.lifecycle.w v0_1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED(); Object v3_0 = this.d; p6.a0 v9 = p6.a0.a; try { if (v3_0 == null) { q6.y.Y(p11); p6.a0 v11_4 = ((w2.c2) ((kotlin.jvm.internal.f0) this.f).c); if (v11_4 != null) { v11_4.d = kotlinx.coroutines.CoroutineScopeKt.CoroutineScope(v4_1.x); } this.d = 1; p6.a0 v11_7 = kotlinx.coroutines.BuildersKt.withContext(v4_1.a, new a9.b2(v4_1, new e1.i2(v4_1, 0), e1.c1.a(this.getContext()), 0, 1), this); if (v11_7 != kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()) { v11_7 = v9; } else { } if (v11_7 != kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()) { v11_7 = v9; } if (v11_7 == v0_1) { return v0_1; } } else { if (v3_0 != 1) { throw new IllegalStateException("call to \'resume\' before \'invoke\' with coroutine"); } else { q6.y.Y(p11); } } } catch (androidx.lifecycle.w v0_4) { p6.a0 v11_10 = v0_4; v2_1.g().f(v1_1); throw v11_10; } v2_1.g().f(v1_1); return v9; } private final Object i(Object p14) { Integer v3_0; String v1_1 = ((String) this.e); Boolean v0_3 = ((w7.n) this.g); kotlinx.coroutines.flow.MutableStateFlow v2 = v0_3.d; Integer v3_4 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED(); Object v4_7 = this.d; try { if (v4_7 == null) { q6.y.Y(p14); kotlinx.coroutines.flow.MutableStateFlow v14_1 = j8.c.d; a.b.m(v14_1, v1_1); kotlinx.coroutines.flow.MutableStateFlow v14_2 = a.b.A(v14_1, v1_1, 0); String v6 = q6.y.T(((w7.f0) this.h).c); s0.u0 v9_1 = new s0.u0(17); m0.r v10_1 = new m0.r(27, v0_3); i8.c v11_1 = new i8.c(v14_2, 1); this.f = v14_2; this.d = 1; if (k8.h.b(v6, 0, v9_1, v10_1, v11_1, this) != v3_4) { v3_0 = v14_2; v3_0.a.flush(); v3_0.a(); v0_3.l = v1_1; v0_3.j.setValue(kotlin.coroutines.jvm.internal.Boxing.boxInt(100)); v2.setValue(w7.o.j); v0_3.h.setValue(kotlin.coroutines.jvm.internal.Boxing.boxBoolean(1)); } else { return v3_4; } } else { if (v4_7 != 1) { throw new IllegalStateException("call to \'resume\' before \'invoke\' with coroutine"); } else { v3_0 = ((j8.a) this.f); q6.y.Y(p14); } } } catch (Exception) { a.b.m(j8.c.d, v1_1); v2.setValue(w7.o.e); } catch (Boolean v0_2) { kotlinx.coroutines.flow.MutableStateFlow v14_6 = v0_2; v3_0.a(); throw v14_6; } return p6.a0.a; } private final Object j(Object p11) { kotlinx.coroutines.channels.ChannelIterator v2_0; kotlinx.coroutines.CoroutineScope v4_0; String v0_1 = ((kotlinx.coroutines.channels.Channel) this.e); Object v1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED(); kotlinx.coroutines.channels.ChannelIterator v2_2 = this.d; if (v2_2 == null) { q6.y.Y(p11); f0.f v11_9 = ((kotlinx.coroutines.CoroutineScope) this.g); v2_0 = v0_1.iterator(); v4_0 = v11_9; } else { if (v2_2 != 1) { throw new IllegalStateException("call to \'resume\' before \'invoke\' with coroutine"); } else { v2_0 = ((kotlinx.coroutines.channels.ChannelIterator) this.f); v4_0 = ((kotlinx.coroutines.CoroutineScope) this.g); q6.y.Y(p11); if (!((Boolean) p11).booleanValue()) { return p6.a0.a; } else { f0.f v11_7 = ((f0.f) v2_0.next()); int v5_2 = ((f0.f) kotlinx.coroutines.channels.ChannelResult.getOrNull-impl(v0_1.tryReceive-PtdJZtk())); if (v5_2 != 0) { v11_7 = v5_2; } kotlinx.coroutines.BuildersKt.launch$default(v4_0, 0, 0, new z0.i(((z0.k) this.h), v11_7, 0, 0), 3, 0); } } } this.g = v4_0; this.f = v2_0; this.d = 1; p11 = v2_0.hasNext(this); if (p11 != v1) { } else { return v1; } } private final Object k(Object p11) { kotlinx.coroutines.CoroutineScope v4_0; kotlinx.coroutines.channels.ChannelIterator v2_0; String v0_1 = ((kotlinx.coroutines.channels.Channel) this.e); Object v1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED(); kotlinx.coroutines.channels.ChannelIterator v2_2 = this.d; if (v2_2 == null) { q6.y.Y(p11); f0.f v11_9 = ((kotlinx.coroutines.CoroutineScope) this.g); v2_0 = v0_1.iterator(); v4_0 = v11_9; } else { if (v2_2 != 1) { throw new IllegalStateException("call to \'resume\' before \'invoke\' with coroutine"); } else { v2_0 = ((kotlinx.coroutines.channels.ChannelIterator) this.f); v4_0 = ((kotlinx.coroutines.CoroutineScope) this.g); q6.y.Y(p11); if (!((Boolean) p11).booleanValue()) { return p6.a0.a; } else { f0.f v11_7 = ((f0.f) v2_0.next()); int v5_2 = ((f0.f) kotlinx.coroutines.channels.ChannelResult.getOrNull-impl(v0_1.tryReceive-PtdJZtk())); if (v5_2 != 0) { v11_7 = v5_2; } kotlinx.coroutines.BuildersKt.launch$default(v4_0, 0, 0, new z0.e(((z0.f) this.h), v11_7, 0, 4), 3, 0); } } } this.g = v4_0; this.f = v2_0; this.d = 1; p11 = v2_0.hasNext(this); if (p11 != v1) { } else { return v1; } } private final Object l(Object p12) { String v0_0 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED(); String v1_1 = this.d; if (v1_1 == null) { q6.y.Y(p12); IllegalStateException v12_8 = w7.w.e(new p6.g[] {new p6.g("token", ((String) this.e)), new p6.g("provider_id", ((String) this.f)), new p6.g("firmware_id", ((String) this.g)), new p6.g("mac", q6.o.s0(((java.util.ArrayList) this.h), ",", 0, 0, 0, 62))})); this.d = 1; IllegalStateException v12_9 = k8.h.c("https://qbsg.top/api/activation/activate", v12_8, this); if (v12_9 != v0_0) { return v12_9; } else { return v0_0; } } else { if (v1_1 != 1) { throw new IllegalStateException("call to \'resume\' before \'invoke\' with coroutine"); } else { q6.y.Y(p12); return p12; } } } private final Object m(Object p10) { n8.f0 v0_0 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED(); y0.jb v1_2 = this.d; p6.a0 v2 = p6.a0.a; if (v1_2 == null) { q6.y.Y(p10); kotlinx.coroutines.flow.MutableStateFlow v10_3 = ((n8.f0) ((e1.j1) this.h).getValue()).e; if (v10_3 != null) { y0.jb v1_1 = ((y0.jb) this.g); this.f = kotlin.coroutines.jvm.internal.SpillingKt.nullOutSpilledVariable(v10_3); this.d = 1; if (y0.jb.b(v1_1, v10_3, this) == v0_0) { return v0_0; } } else { return v2; } } else { if (v1_2 != 1) { throw new IllegalStateException("call to \'resume\' before \'invoke\' with coroutine"); } else { q6.y.Y(p10); } } kotlinx.coroutines.flow.MutableStateFlow v10_9 = ((n8.i0) this.e).c; v10_9.setValue(n8.f0.a(((n8.f0) v10_9.getValue()), 0, 0, 0, 0, 15)); return v2; } public final kotlin.coroutines.Continuation create(Object p11, kotlin.coroutines.Continuation p12) { switch (this.c) { case 0: return new a8.f(((a8.g) this.f), ((byte[]) this.g), ((String) this.e), ((qbsg.top.ble.GattOtaChannel) this.h), p12, 0); case 1: return new a8.f(((i7.g) this.f), ((String) this.e), ((b9.g) this.g), ((w7.d) this.h), p12, 1, 0); case 2: return new a8.f(((c3.d) this.f), ((android.view.ScrollCaptureSession) this.g), ((android.graphics.Rect) this.e), ((java.util.function.Consumer) this.h), p12, 2); case 3: return new a8.f(this.f, ((n.c) this.g), ((e1.j1) this.e), ((e1.j1) this.h), p12, 3); case 4: a8.f v12_23 = new a8.f(((e1.j1) this.e), ((n.h0) this.h), p12, 4); v12_23.g = p11; return v12_23; case 5: return new a8.f(((n8.l) this.e), ((n8.e0) this.h), p12, 5); case 6: a8.f v12_19 = new a8.f(((n8.e0) this.e), ((n8.l) this.h), p12, 6); v12_19.g = p11; return v12_19; case 7: a8.f v12_17 = new a8.f(((String) this.e), ((n8.l) this.h), p12, 7); v12_17.g = p11; return v12_17; case 8: return new a8.f(((p8.q) this.g), ((o8.q2) this.e), ((o8.c5) this.h), p12, 8); case 9: a8.f v12_15 = new a8.f(((o8.c5) this.e), ((o8.q2) this.h), p12, 9); v12_15.g = p11; return v12_15; case 10: return new a8.f(((o8.c5) this.g), ((String) this.h), p12); case 11: return new a8.f(((o8.c5) this.e), ((o8.e2) this.h), p12, 11); case 12: a8.f v2_10 = new a8.f(((a7.c) this.g), ((q0.b) this.e), ((q0.m) this.h), p12, 12); v2_10.f = p11; return v2_10; case 13: a8.f v12_6 = new a8.f(((s.d4) this.h), p12); v12_6.e = p11; return v12_6; case 14: return new a8.f(((s0.v) this.e), ((kotlin.coroutines.jvm.internal.SuspendLambda) this.h), p12); case 15: return new a8.f(((s0.b1) this.f), ((kotlin.jvm.internal.f0) this.g), ((kotlin.jvm.internal.f0) this.e), ((kotlin.jvm.internal.e0) this.h), p12, 15); case 16: return new a8.f(((java.util.Set) this.g), ((e1.j1) this.e), ((s8.q0) this.h), p12, 16); case 17: a8.f v12_2 = new a8.f(((kotlin.jvm.internal.t) this.g), ((java.util.concurrent.atomic.AtomicReference) this.e), ((a7.e) this.h), p12); v12_2.f = p11; return v12_2; case 18: return new a8.f(((kotlin.jvm.internal.f0) this.f), ((e1.j2) this.g), ((androidx.lifecycle.u) this.e), ((w2.z2) this.h), p12, 18); case 19: return new a8.f(((String) this.e), ((w7.n) this.g), ((w7.f0) this.h), p12); case 20: return new a8.f(((y.t) this.f), ((a7.c) this.g), ((z0.x) this.e), ((f7.d) this.h), p12, 20); case 21: a8.f v12_27 = new a8.f(((kotlinx.coroutines.channels.Channel) this.e), ((z0.k) this.h), p12, 21); v12_27.g = p11; return v12_27; case 22: a8.f v12_25 = new a8.f(((kotlinx.coroutines.channels.Channel) this.e), ((z0.f) this.h), p12, 22); v12_25.g = p11; return v12_25; case 23: return new a8.f(((qbsg.top.ble.RawGattHandle) this.f), ((z7.b0) this.e), ((byte[]) this.g), ((z7.f0) this.h), p12, 23, 0); case 24: return new a8.f(((String) this.e), ((String) this.f), ((String) this.g), ((java.util.ArrayList) this.h), p12); case 25: return new a8.f(((y0.jb) this.g), ((n8.i0) this.e), ((e1.j1) this.h), p12, 25); default: return new a8.f(((y0.jb) this.g), ((n8.e0) this.e), ((e1.j1) this.h), p12, 26); } } public final Object invoke(Object p2, Object p3) { switch (this.c) { case 0: return ((a8.f) this.create(((kotlinx.coroutines.CoroutineScope) p2), ((kotlin.coroutines.Continuation) p3))).invokeSuspend(p6.a0.a); case 1: return ((a8.f) this.create(((kotlinx.coroutines.CoroutineScope) p2), ((kotlin.coroutines.Continuation) p3))).invokeSuspend(p6.a0.a); case 2: return ((a8.f) this.create(((kotlinx.coroutines.CoroutineScope) p2), ((kotlin.coroutines.Continuation) p3))).invokeSuspend(p6.a0.a); case 3: return ((a8.f) this.create(((kotlinx.coroutines.CoroutineScope) p2), ((kotlin.coroutines.Continuation) p3))).invokeSuspend(p6.a0.a); case 4: return ((a8.f) this.create(((kotlinx.coroutines.CoroutineScope) p2), ((kotlin.coroutines.Continuation) p3))).invokeSuspend(p6.a0.a); case 5: return ((a8.f) this.create(((kotlinx.coroutines.CoroutineScope) p2), ((kotlin.coroutines.Continuation) p3))).invokeSuspend(p6.a0.a); case 6: return ((a8.f) this.create(((kotlinx.coroutines.CoroutineScope) p2), ((kotlin.coroutines.Continuation) p3))).invokeSuspend(p6.a0.a); case 7: return ((a8.f) this.create(((kotlinx.coroutines.CoroutineScope) p2), ((kotlin.coroutines.Continuation) p3))).invokeSuspend(p6.a0.a); case 8: return ((a8.f) this.create(((kotlinx.coroutines.CoroutineScope) p2), ((kotlin.coroutines.Continuation) p3))).invokeSuspend(p6.a0.a); case 9: return ((a8.f) this.create(((kotlinx.coroutines.CoroutineScope) p2), ((kotlin.coroutines.Continuation) p3))).invokeSuspend(p6.a0.a); case 10: return ((a8.f) this.create(((kotlinx.coroutines.CoroutineScope) p2), ((kotlin.coroutines.Continuation) p3))).invokeSuspend(p6.a0.a); case 11: return ((a8.f) this.create(((kotlinx.coroutines.CoroutineScope) p2), ((kotlin.coroutines.Continuation) p3))).invokeSuspend(p6.a0.a); case 12: return ((a8.f) this.create(((w2.o0) p2), ((kotlin.coroutines.Continuation) p3))).invokeSuspend(p6.a0.a); case 13: return ((a8.f) this.create(((kotlinx.coroutines.CoroutineScope) p2), ((kotlin.coroutines.Continuation) p3))).invokeSuspend(p6.a0.a); case 14: return ((a8.f) this.create(((kotlinx.coroutines.CoroutineScope) p2), ((kotlin.coroutines.Continuation) p3))).invokeSuspend(p6.a0.a); case 15: return ((a8.f) this.create(((kotlinx.coroutines.CoroutineScope) p2), ((kotlin.coroutines.Continuation) p3))).invokeSuspend(p6.a0.a); case 16: return ((a8.f) this.create(((kotlinx.coroutines.CoroutineScope) p2), ((kotlin.coroutines.Continuation) p3))).invokeSuspend(p6.a0.a); case 17: return ((a8.f) this.create(((kotlinx.coroutines.CoroutineScope) p2), ((kotlin.coroutines.Continuation) p3))).invokeSuspend(p6.a0.a); case 18: return ((a8.f) this.create(((kotlinx.coroutines.CoroutineScope) p2), ((kotlin.coroutines.Continuation) p3))).invokeSuspend(p6.a0.a); case 19: return ((a8.f) this.create(((kotlinx.coroutines.CoroutineScope) p2), ((kotlin.coroutines.Continuation) p3))).invokeSuspend(p6.a0.a); case 20: return ((a8.f) this.create(((kotlinx.coroutines.CoroutineScope) p2), ((kotlin.coroutines.Continuation) p3))).invokeSuspend(p6.a0.a); case 21: return ((a8.f) this.create(((kotlinx.coroutines.CoroutineScope) p2), ((kotlin.coroutines.Continuation) p3))).invokeSuspend(p6.a0.a); case 22: return ((a8.f) this.create(((kotlinx.coroutines.CoroutineScope) p2), ((kotlin.coroutines.Continuation) p3))).invokeSuspend(p6.a0.a); case 23: return ((a8.f) this.create(((kotlinx.coroutines.CoroutineScope) p2), ((kotlin.coroutines.Continuation) p3))).invokeSuspend(p6.a0.a); case 24: return ((a8.f) this.create(((kotlinx.coroutines.CoroutineScope) p2), ((kotlin.coroutines.Continuation) p3))).invokeSuspend(p6.a0.a); case 25: return ((a8.f) this.create(((kotlinx.coroutines.CoroutineScope) p2), ((kotlin.coroutines.Continuation) p3))).invokeSuspend(p6.a0.a); default: return ((a8.f) this.create(((kotlinx.coroutines.CoroutineScope) p2), ((kotlin.coroutines.Continuation) p3))).invokeSuspend(p6.a0.a); } } public final Object invokeSuspend(Object p31) { int v7_5 = 0; String v8_2 = 0; switch (this.c) { case 0: o8.e v0_36 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED(); long v1_18 = this.d; if (v1_18 == 0) { q6.y.Y(p31); long v1_20 = ((a8.g) this.f); int v2_34 = ((byte[]) this.g); j7.m v3_24 = ((String) this.e); int v5_12 = ((qbsg.top.ble.GattOtaChannel) this.h); this.d = 1; if (v1_20.f(v2_34, v3_24, v5_12, this) != v0_36) { v0_36 = p6.a0.a; } } else { if (v1_18 != 1) { throw new IllegalStateException("call to \'resume\' before \'invoke\' with coroutine"); } else { q6.y.Y(p31); } } return v0_36; case 1: int v2_27; long v1_16 = ((b9.g) this.g); o8.e v0_31 = v1_16.e; int v2_25 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED(); j7.m v3_14 = this.d; try { if (v3_14 == null) { q6.y.Y(p31); j7.m v3_16 = ((i7.g) this.f); int v5_4 = ((String) this.e); this.d = 1; j7.m v3_17 = v3_16.c(v5_4, this); if (v3_17 != v2_25) { v2_27 = v3_17; if (!(v2_27 instanceof p6.i)) { j7.m v3_20 = ((x7.i) v2_27); v1_16.k(""); v1_16.l(new b9.b(v3_20)); } j7.m v3_22 = ((w7.d) this.h); int v2_30 = p6.j.a(v2_27); if (v2_30 != 0) { v1_16.l(b9.c.a); v0_31.i((v0_31.h() + 1)); o8.e v0_34 = v2_30.getMessage(); if (v0_34 == null) { v0_34 = "\u767b\u5f55\u5931\u8d25"; } v3_22.invoke(v0_34); } v1_16.j(0); v2_25 = p6.a0.a; } else { } } else { if (v3_14 != 1) { throw new IllegalStateException("call to \'resume\' before \'invoke\' with coroutine"); } else { q6.y.Y(p31); v2_27 = ((p6.j) p31).c; } } } catch (o8.e v0_35) { v1_16.j(0); throw v0_35; } return v2_25; case 2: long v1_11; o8.e v0_24 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED(); long v1_6 = this.d; if (v1_6 == 0) { q6.y.Y(p31); long v1_8 = ((c3.d) this.f); int v2_24 = ((android.view.ScrollCaptureSession) this.g); j7.m v3_12 = ((android.graphics.Rect) this.e); int v5_2 = new s3.k(v3_12.left, v3_12.top, v3_12.right, v3_12.bottom); this.d = 1; v1_11 = c3.d.a(v1_8, v2_24, v5_2, this); if (v1_11 != v0_24) { ((java.util.function.Consumer) this.h).accept(b2.h0.J(((s3.k) v1_11))); v0_24 = p6.a0.a; } } else { if (v1_6 != 1) { throw new IllegalStateException("call to \'resume\' before \'invoke\' with coroutine"); } else { q6.y.Y(p31); v1_11 = p31; } } return v0_24; case 3: int v6_2 = ((n.c) this.g); int v7_0 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED(); o8.e v0_9 = this.d; if (v0_9 == null) { q6.y.Y(p31); if (kotlin.jvm.internal.s.b(this.f, v6_2.e.getValue())) { v7_0 = p6.a0.a; } else { o8.e v0_13 = ((n.c) this.g); long v1_3 = this.f; int v2_22 = ((n.k) ((e1.j1) this.e).getValue()); this.d = 1; if (n.c.b(v0_13, v1_3, v2_22, 0, this, 12) != v7_0) { o8.e v0_22 = ((a7.c) ((e1.j1) this.h).getValue()); if (v0_22 == null) { } else { v0_22.invoke(v6_2.d()); } } } } else { if (v0_9 != 1) { throw new IllegalStateException("call to \'resume\' before \'invoke\' with coroutine"); } else { q6.y.Y(p31); } } return v7_0; case 4: int v13_0; int v14_0; o8.e v0_132 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED(); int v2_113 = this.d; if (v2_113 == 0) { q6.y.Y(p31); int v2_1 = ((kotlinx.coroutines.CoroutineScope) this.g); j7.m v3_1 = new kotlin.jvm.internal.c0(); v3_1.c = 1065353216; v14_0 = v2_1; v13_0 = v3_1; String v10_1 = new c9.k0(((e1.j1) this.e), ((n.h0) this.h), v13_0, v14_0, 4); this.g = v14_0; this.f = v13_0; this.d = 1; if (this.getContext().get(w2.u1.c) != null) { throw new ClassCastException(); } else { if (e1.c1.a(this.getContext()).e(v10_1, this) != v0_132) { if (v13_0.c == 0) { int v2_17 = e1.t.w(new a0.m0(23, v14_0)); j7.m v3_9 = new n.g0(2, 0); this.g = v14_0; this.f = v13_0; this.d = 2; if (kotlinx.coroutines.flow.FlowKt.first(v2_17, v3_9, this) == v0_132) { } } } } } else { if (v2_113 == 1) { int v2_3 = ((kotlin.jvm.internal.c0) this.f); j7.m v3_3 = ((kotlinx.coroutines.CoroutineScope) this.g); q6.y.Y(p31); v13_0 = v2_3; v14_0 = v3_3; } else { if (v2_113 != 2) { throw new IllegalStateException("call to \'resume\' before \'invoke\' with coroutine"); } else { int v2_5 = ((kotlin.jvm.internal.c0) this.f); j7.m v3_5 = ((kotlinx.coroutines.CoroutineScope) this.g); q6.y.Y(p31); v13_0 = v2_5; v14_0 = v3_5; } } } return v0_132; case 5: long v1_100; o8.e v0_125; o8.e v0_121 = ((n8.l) this.e); String v8_7 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED(); int v2_108 = this.d; if (v2_108 == 0) { q6.y.Y(p31); String v10_33 = new java.util.ArrayList(); int v11_26 = new kotlin.jvm.internal.d0(); int v2_110 = q6.y.T(v0_121.h); j7.m v3_84 = ((n8.e0) this.h); int v5_64 = new n.n1(3, v3_84, v0_121); int v6_29 = new a0.q0(22, v3_84, v0_121); j7.m v3_85 = v5_64; int v5_66 = new a0.q0(23, v10_33, v11_26); this.f = v10_33; this.g = v11_26; this.d = 1; if (k8.h.b(v2_110, 0, v3_85, v6_29, v5_66, this) != v8_7) { v1_100 = v10_33; v0_125 = v11_26; v4.a v9_7 = new byte[v0_125.c]; o8.e v0_131 = v1_100.size(); String v10_34 = 0; while (v7_5 < v0_131) { int v2_111 = v1_100.get(v7_5); v7_5++; String v8_9 = ((byte[]) v2_111); q6.n.g0(v8_9, v9_7, v10_34, 0, 0, 12); v10_34 += v8_9.length; } v8_7 = v9_7; } } else { if (v2_108 != 1) { throw new IllegalStateException("call to \'resume\' before \'invoke\' with coroutine"); } else { v0_125 = ((kotlin.jvm.internal.d0) this.g); v1_100 = ((java.util.ArrayList) this.f); q6.y.Y(p31); } } return v8_7; case 6: o8.e v0_105; o8.e v0_103 = ((kotlinx.coroutines.CoroutineScope) this.g); long v1_87 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED(); int v2_91 = this.d; try { if (v2_91 == 0) { q6.y.Y(p31); int v2_94 = ((n8.e0) this.e).d; int v5_42 = ((n8.l) this.h); v2_94.setValue(n8.w.a(((n8.w) v2_94.getValue()), 0, 0, 0, 0, 0, 0, 0, 0, 0, new n8.k(v5_42.a, v5_42.b, 0), 0, 0, 0, 0, 0, 0, 65023)); int v6_23 = new a8.f(((n8.l) this.h), ((n8.e0) this.e), 0, 5); this.g = kotlin.coroutines.jvm.internal.SpillingKt.nullOutSpilledVariable(v0_103); this.f = kotlin.coroutines.jvm.internal.SpillingKt.nullOutSpilledVariable(v0_103); this.d = 1; v0_105 = kotlinx.coroutines.BuildersKt.withContext(w7.b.a, v6_23, this); if (v0_105 != v1_87) { o8.e v0_110 = ((byte[]) v0_105); long v1_90 = ((n8.e0) this.e); int v2_101 = ((n8.l) this.h); if (!(v0_110 instanceof p6.i)) { j7.m v3_70 = ((byte[]) v0_110); v4.a v9_1 = v1_90.b; int v13_11 = v2_101.a; String v26_1; kotlin.jvm.internal.s.f(v3_70, "zipBytes"); int v11_17 = java.util.UUID.randomUUID().toString(); kotlin.jvm.internal.s.e(v11_17, "toString(...)"); if (((java.util.LinkedHashSet) v9_1.b).add(v11_17)) { String v10_21 = java.util.UUID.randomUUID().toString(); kotlin.jvm.internal.s.e(v10_21, "toString(...)"); int v5_53 = g3.q.x(v10_21); g3.q.x(v10_21).mkdirs(); try { String v10_26; g3.q.z(v3_70, v10_21); } catch (Exception) { a8.f v12_17 = v11_17; y6.k.t(v5_53); ((java.util.LinkedHashSet) v9_1.b).remove(v12_17); v9_1.u(); v10_26 = 0; v26_1 = v10_26; } if (g3.q.m(v5_53)) { a8.f v12_16 = v11_17; int v11_18 = v10_21; j7.m v3_72 = new m8.f(v11_18, v12_16, v13_11, 0, 16); v11_17 = v12_16; v12_17 = 1; g3.q.A(v9_1, v11_18, v11_17, 1, v13_11, 0, 16); v12_17 = v11_17; v9_1.u(); v10_26 = v3_72; } else { y6.k.t(v5_53); ((java.util.LinkedHashSet) v9_1.b).remove(v11_17); v9_1.u(); } } else { v26_1 = 0; } if (v26_1 == null) { long v1_91 = v1_90.d; v1_91.setValue(n8.w.a(((n8.w) v1_91.getValue()), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "\u6253\u5f00\u5931\u8d25", 32767)); } else { j7.m v3_78 = v1_90.d; v3_78.setValue(n8.w.a(((n8.w) v3_78.getValue()), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, v26_1, 0, 49151)); j7.m v3_82 = ((a0.m2) v1_90.c.d).z(); if (i7.i.x0(v3_82)) { v3_82 = 0; } if (v3_82 != null) { kotlinx.coroutines.BuildersKt.launch$default(androidx.lifecycle.l0.g(v1_90), 0, 0, new a8.f(v3_82, v2_101, 0, 7), 3, 0); } } } long v1_94 = ((n8.e0) this.e); o8.e v0_112 = p6.j.a(v0_110); if (v0_112 != null) { long v1_95 = v1_94.d; int v5_60 = ((n8.w) v1_95.getValue()); o8.e v0_113 = v0_112.getMessage(); if (v0_113 == null) { v0_113 = "\u4e0b\u8f7d\u5931\u8d25"; } v1_95.setValue(n8.w.a(v5_60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, v0_113, 32767)); } o8.e v0_119 = ((n8.e0) this.e).d; v0_119.setValue(n8.w.a(((n8.w) v0_119.getValue()), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 65023)); v1_87 = p6.a0.a; } else { } } else { if (v2_91 != 1) { throw new IllegalStateException("call to \'resume\' before \'invoke\' with coroutine"); } else { q6.y.Y(p31); v0_105 = p31; } } } catch (o8.e v0_109) { v0_110 = q6.y.s(v0_109); } return v1_87; case 7: o8.e v0_95 = ((kotlinx.coroutines.CoroutineScope) this.g); long v1_85 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED(); int v2_86 = this.d; try { if (v2_86 == 0) { q6.y.Y(p31); int v6_20 = new b1.l(((String) this.e), ((n8.l) this.h), 0, 13); this.g = kotlin.coroutines.jvm.internal.SpillingKt.nullOutSpilledVariable(v0_95); this.f = kotlin.coroutines.jvm.internal.SpillingKt.nullOutSpilledVariable(v0_95); this.d = 1; if (kotlinx.coroutines.BuildersKt.withContext(w7.b.a, v6_20, this) != v1_85) { v1_85 = p6.a0.a; } } else { if (v2_86 != 1) { throw new IllegalStateException("call to \'resume\' before \'invoke\' with coroutine"); } else { q6.y.Y(p31); } } } catch (o8.e v0_101) { q6.y.s(v0_101); } return v1_85; case 8: long v1_81; o8.e v0_91 = p6.a0.a; long v1_80 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED(); int v2_80 = this.d; if (v2_80 == 0) { q6.y.Y(p31); int v2_82 = ((p8.q) this.g); if ((v2_82 != 0) && ((v2_82.i == p8.o.f) && ((v2_82.h > 0) && (((o8.q2) this.e) != null)))) { this.f = v2_82; this.d = 1; if (kotlinx.coroutines.DelayKt.delay(500, this) != v1_80) { v1_81 = v2_82; ((o8.c5) this.h).Y(v1_81.e); } else { v0_91 = v1_80; } } } else { if (v2_80 != 1) { throw new IllegalStateException("call to \'resume\' before \'invoke\' with coroutine"); } else { v1_81 = ((p8.q) this.f); q6.y.Y(p31); } } return v0_91; case 9: o8.e v0_81; o8.e v0_86; String v10_18 = ((o8.c5) this.e); long v1_77 = p6.a0.a; int v2_77 = ((o8.q2) this.h); o8.e v0_78 = ((kotlinx.coroutines.CoroutineScope) this.g); j7.m v3_53 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED(); int v5_35 = this.d; try { if (v5_35 == 0) { q6.y.Y(p31); int v6_18 = new a9.b2(v10_18, v2_77, 0, 8); this.g = kotlin.coroutines.jvm.internal.SpillingKt.nullOutSpilledVariable(v0_78); this.f = kotlin.coroutines.jvm.internal.SpillingKt.nullOutSpilledVariable(v0_78); this.d = 1; v0_81 = kotlinx.coroutines.BuildersKt.withContext(w7.b.a, v6_18, this); if (v0_81 != v3_53) { v0_86 = kotlin.coroutines.jvm.internal.Boxing.boxBoolean(((Boolean) v0_81).booleanValue()); j7.m v3_54 = kotlin.coroutines.jvm.internal.Boxing.boxBoolean(0); if ((v0_86 instanceof p6.i)) { v0_86 = v3_54; } if (((Boolean) v0_86).booleanValue()) { o8.c5.M(v10_18, new o8.s3(1, v2_77, v10_18), 0, 0, 0, 0, 126); } else { o8.c5.M(v10_18, 0, 0, 0, 0, 0, 123); } } else { v1_77 = v3_53; } } else { if (v5_35 != 1) { throw new IllegalStateException("call to \'resume\' before \'invoke\' with coroutine"); } else { q6.y.Y(p31); v0_81 = p31; } } } catch (o8.e v0_85) { v0_86 = q6.y.s(v0_85); } return v1_77; case 10: int v13_5; int v6_14; int v11_7; o8.e v0_57 = ""; long v1_74 = ((o8.c5) this.g); int v5_24 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED(); int v6_12 = this.d; if (v6_12 == 0) { q6.y.Y(p31); int v6_13 = qbsg.top.template.editor.LibEditor.a; String v10_8 = v6_13.create(((String) this.h), v1_74.V(), v1_74.I()); v1_74.e = v10_8; if (v10_8 != 0) { v6_14 = v6_13.toJson(v10_8); v1_74.b0(v6_14); } else { v6_14 = ""; } if (i7.i.x0(v6_14)) { v6_14 = v1_74.L(); if (v6_14 == 0) { v6_14 = ""; } } String v10_10 = o8.c5.n(v1_74, v6_14); int v11_6 = v10_10.e; this.e = v6_14; this.f = v10_10; this.d = 1; v11_7 = o8.c5.o(v1_74, v11_6); if (v11_7 != v5_24) { v13_5 = v10_10; int v5_28 = ((java.util.List) v11_7).iterator(); while (v5_28.hasNext()) { String v10_15 = v5_28.next(); int v11_9 = v1_74.e; if (v11_9 != 0) { qbsg.top.template.editor.LibEditor.a.markFontDirty(v11_9, ((String) v10_15)); } } o8.e v0_63; int v2_64 = j8.c.d; if (!a.b.u(v2_64, v1_74.y("history.json"))) { o8.e v0_62 = v1_74.Z(v6_14); v0_63 = new o8.e(k3.t.K(v0_62), 0, v0_62); } else { try { o8.e v0_65; j7.m v3_48; int v2_67 = a.b.B(v2_64, v1_74.y("history.json")); } catch (o8.e v0_64) { v0_65 = q6.y.s(v0_64); int v2_72 = new o8.e(); if ((v0_65 instanceof p6.i)) { v0_65 = v2_72; } v0_63 = ((o8.e) v0_65); } if (v2_67 == 0) { v3_48 = 0; } else { v3_48 = new String(v2_67, i7.a.a); } if (v3_48 == null) { v3_48 = ""; } int v2_68 = w7.w.k(v3_48); j7.m v3_50 = o8.d5.h(v3_48); int v5_33 = v2_68.i(k3.t.y(v3_50), "currentIndex"); String v10_13 = k3.t.y(v3_50); if (v10_13 < null) { v10_13 = 0; } int v5_34 = a.a.o(v5_33, 0, v10_13); int v2_69 = v2_68.m("lastSavedFile"); if (v2_69 != 0) { v0_57 = v2_69; } else { } if (!i7.i.x0(v0_57)) { v8_2 = v0_57; } v0_65 = new o8.e(v3_50, v5_34, v8_2); } v1_74.f = v0_63; if (v0_63.a.isEmpty()) { o8.e v0_70 = v1_74.Z(v6_14); v1_74.f = new o8.e(k3.t.K(v0_70), 0, v0_70); } int v15_4; v1_74.a0(); int v14_5 = o8.d5.f(); o8.e v0_71 = v1_74.f; int v2_75 = v0_71.b; if (v2_75 <= 0) { v15_4 = 0; } else { v15_4 = 1; } int v16_3; if (v2_75 >= k3.t.y(v0_71.a)) { v16_3 = 0; } else { v16_3 = 1; } v5_24 = new o8.b1(v13_5, v14_5, v15_4, v16_3, v1_74.t()); } } else { if (v6_12 != 1) { throw new IllegalStateException("call to \'resume\' before \'invoke\' with coroutine"); } else { int v5_26 = ((o8.a2) this.f); v6_14 = ((String) this.e); q6.y.Y(p31); v11_7 = p31; v13_5 = v5_26; } } return v5_24; case 11: long v1_42; int v5_17; o8.e v0_53 = ((o8.c5) this.e); long v1_40 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED(); int v5_16 = this.d; if (v5_16 == 0) { q6.y.Y(p31); v5_17 = v0_53.i; this.f = v5_17; this.g = v0_53; this.d = 1; if (v5_17.lock(0, this) != v1_40) { v1_42 = v0_53; try { if (!v1_42.h) { String v10_5 = v1_42.e; if (v10_5 != 0) { int v13_4 = qbsg.top.template.editor.LibEditor.a.toJson(v10_5); v1_42.b0(v13_4); v5_17.unlock(0); if (!i7.i.x0(v13_4)) { if (((o8.e2) this.h).c) { long v1_49 = v0_53.f; long v1_52 = ((String) q6.o.p0(v1_49.b, v1_49.a)); if ((v1_52 == 0) || (!kotlin.jvm.internal.s.b(v0_53.K(v1_52), v13_4))) { long v1_55 = v0_53.n; if ((v1_55 == 0) || (j7.b.c(j7.m.a(v1_55.c), j7.h.m(1, j7.d.f)) >= 0)) { long v1_59 = v0_53.f; long v1_63 = q6.o.H0(q6.o.D0(v1_59.a, (v1_59.b + 1))); int v2_55 = v0_53.f; int v2_59 = q6.o.k0(v2_55.a, (v2_55.b + 1)).iterator(); while (v2_59.hasNext()) { v0_53.u(((String) v2_59.next())); } v1_63.add(v0_53.Z(v13_4)); int v2_61 = k3.t.y(v1_63); while (v1_63.size() > 64) { v0_53.u(((String) v1_63.remove(0))); v2_61--; } if (v2_61 < 0) { v2_61 = 0; } v0_53.f = o8.e.a(v0_53.f, v1_63, v2_61, 0, 4); v0_53.n = new j7.m(j7.l.a()); v0_53.a0(); } } } int v15_3; int v14_4 = o8.c5.n(v0_53, v13_4); long v1_69 = v0_53.f; int v2_63 = v1_69.b; if (v2_63 <= 0) { v15_3 = 0; } else { v15_3 = 1; } int v16_2; if (v2_63 >= k3.t.y(v1_69.a)) { v16_2 = 0; } else { v16_2 = 1; } v8_2 = new o8.d2(v13_4, v14_4, v15_3, v16_2, v0_53.t()); return v8_2; } } else { } } } catch (o8.e v0_56) { v5_17.unlock(0); throw v0_56; } v5_17.unlock(0); } else { v8_2 = v1_40; } } else { if (v5_16 != 1) { throw new IllegalStateException("call to \'resume\' before \'invoke\' with coroutine"); } else { v1_42 = ((o8.c5) this.g); v5_17 = ((kotlinx.coroutines.sync.Mutex) this.f); q6.y.Y(p31); } } return v8_2; case 12: o8.e v0_47 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED(); long v1_30 = this.d; if (v1_30 == 0) { q6.y.Y(p31); String v10_4 = new a9.b2(((w2.o0) this.f), ((a7.c) this.g), ((q0.b) this.e), ((q0.m) this.h), 0, 12); this.d = 1; if (kotlinx.coroutines.CoroutineScopeKt.coroutineScope(v10_4, this) == v0_47) { return v0_47; } } else { if (v1_30 == 1) { q6.y.Y(p31); } else { throw new IllegalStateException("call to \'resume\' before \'invoke\' with coroutine"); } } throw new b3.e(); case 13: int v2_32; int v2_36; j7.m v3_29; int v7_3; int v6_7; long v1_10 = ((s.d4) this.h); o8.e v0_30 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED(); int v2_26 = this.d; try { if (v2_26 == 0) { q6.y.Y(p31); v2_32 = ((kotlinx.coroutines.CoroutineScope) this.e); if (!kotlinx.coroutines.JobKt.isActive(v2_32.getCoroutineContext())) { v1_10.g = 0; v0_30 = p6.a0.a; } else { j7.m v3_32 = v1_10.a; int v6_8 = v1_10.f; this.e = v2_32; this.f = v1_10; this.g = v3_32; this.d = 1; v6_7 = v6_8.receive(this); if (v6_7 != v0_30) { v3_29 = v2_32; v2_36 = v3_32; v7_3 = v1_10; int v6_9 = ((s.b4) v6_7); this.e = v3_29; this.f = 0; this.g = 0; this.d = 2; if (s.d4.c(v7_3, v2_36, v6_9, this) != v0_30) { v2_32 = v3_29; } } else { } } } else { if (v2_26 == 1) { v2_36 = ((s.m3) this.g); j7.m v3_28 = ((s.d4) this.f); int v6_5 = ((kotlinx.coroutines.CoroutineScope) this.e); q6.y.Y(p31); v7_3 = v3_28; v3_29 = v6_5; v6_7 = p31; } else { if (v2_26 != 2) { throw new IllegalStateException("call to \'resume\' before \'invoke\' with coroutine"); } else { v2_32 = ((kotlinx.coroutines.CoroutineScope) this.e); q6.y.Y(p31); } } } } catch (o8.e v0_46) { v1_10.g = 0; throw v0_46; } return v0_30; case 14: return this.d(p31); case 15: return this.e(p31); case 16: return this.f(p31); case 17: return this.g(p31); case 18: return this.h(p31); case 19: return this.i(p31); case 20: o8.e v0_79 = p6.a0.a; long v1_79 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED(); int v2_78 = this.d; if (v2_78 == 0) { q6.y.Y(p31); int v11_15 = ((y.t) this.f); a8.f v12_14 = ((a7.c) this.g); int v13_9 = ((z0.x) this.e); int v14_12 = ((f7.d) this.h); this.d = 1; int v2_105 = e1.t.w(new a9.k2(v11_15, 3)).collect(new g0.c(v11_15, v12_14, v13_9, v14_12, 4), this); if (v2_105 != kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()) { v2_105 = v0_79; } if (v2_105 == v1_79) { v0_79 = v1_79; } } else { if (v2_78 != 1) { throw new IllegalStateException("call to \'resume\' before \'invoke\' with coroutine"); } else { q6.y.Y(p31); } } return v0_79; case 21: return this.j(p31); case 22: return this.k(p31); case 23: o8.e v0_45 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED(); long v1_32 = this.d; if (v1_32 == 0) { q6.y.Y(p31); int v2_50 = ((z7.b0) this.e); ((qbsg.top.ble.RawGattHandle) this.f).writeCharacteristic(v2_50.e, v2_50.f, ((byte[]) this.g), 1); long v1_68 = ((z7.f0) this.h).c; this.d = 1; long v1_72 = v1_68.receive(this); if (v1_72 != v0_45) { v0_45 = v1_72; } } else { if (v1_32 != 1) { throw new IllegalStateException("call to \'resume\' before \'invoke\' with coroutine"); } else { q6.y.Y(p31); v0_45 = p31; } } return v0_45; case 24: return this.l(p31); case 25: return this.m(p31); default: o8.e v0_39 = p6.a0.a; long v1_23 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED(); int v2_37 = this.d; if (v2_37 == 0) { q6.y.Y(p31); int v2_42 = ((n8.w) ((e1.j1) this.h).getValue()).p; if (v2_42 != 0) { j7.m v3_27 = ((y0.jb) this.g); this.f = kotlin.coroutines.jvm.internal.SpillingKt.nullOutSpilledVariable(v2_42); this.d = 1; if (y0.jb.b(v3_27, v2_42, this) != v1_23) { long v1_28 = ((n8.e0) this.e).d; v1_28.setValue(n8.w.a(((n8.w) v1_28.getValue()), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32767)); } else { v0_39 = v1_23; } } } else { if (v2_37 != 1) { throw new IllegalStateException("call to \'resume\' before \'invoke\' with coroutine"); } else { q6.y.Y(p31); } } return v0_39; } } }