discord-jadx/app/src/main/java/s/a/a2/a.java

99 lines
3.5 KiB
Java

package s.a.a2;
import d0.l;
import d0.w.h.a.d;
import d0.w.h.a.e;
import kotlin.Unit;
import kotlin.coroutines.Continuation;
import s.a.a2.e.c;
/* compiled from: Flow.kt */
public abstract class a<T> implements b<T> {
/* compiled from: Flow.kt */
@e(c = "kotlinx.coroutines.flow.AbstractFlow", f = "Flow.kt", l = {212}, m = "collect")
/* renamed from: s.a.a2.a$a reason: collision with other inner class name */
public static final class C0340a extends d {
public Object L$0;
public Object L$1;
public Object L$2;
public int label;
public /* synthetic */ Object result;
public final /* synthetic */ a this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public C0340a(a aVar, Continuation continuation) {
super(continuation);
this.this$0 = aVar;
}
@Override // d0.w.h.a.a
public final Object invokeSuspend(Object obj) {
this.result = obj;
this.label |= Integer.MIN_VALUE;
return this.this$0.a(null, this);
}
}
/* JADX WARNING: Removed duplicated region for block: B:15:0x003f */
/* JADX WARNING: Removed duplicated region for block: B:8:0x0023 */
@Override // s.a.a2.b
public final Object a(c<? super T> cVar, Continuation<? super Unit> continuation) {
C0340a aVar;
int i;
Throwable th;
c cVar2;
if (continuation instanceof C0340a) {
aVar = (C0340a) continuation;
int i2 = aVar.label;
if ((i2 & Integer.MIN_VALUE) != 0) {
aVar.label = i2 - Integer.MIN_VALUE;
Object obj = aVar.result;
Object coroutine_suspended = d0.w.g.c.getCOROUTINE_SUSPENDED();
i = aVar.label;
if (i != 0) {
l.throwOnFailure(obj);
c<? super T> cVar3 = new c<>(cVar, aVar.getContext());
try {
aVar.L$0 = this;
aVar.L$1 = cVar;
aVar.L$2 = cVar3;
aVar.label = 1;
if (b(cVar3, aVar) == coroutine_suspended) {
return coroutine_suspended;
}
cVar2 = cVar3;
} catch (Throwable th2) {
th = th2;
cVar2 = cVar3;
cVar2.releaseIntercepted();
throw th;
}
} else if (i == 1) {
cVar2 = (c) aVar.L$2;
c cVar4 = (c) aVar.L$1;
a aVar2 = (a) aVar.L$0;
try {
l.throwOnFailure(obj);
} catch (Throwable th3) {
th = th3;
}
} else {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
cVar2.releaseIntercepted();
return Unit.a;
}
}
aVar = new C0340a(this, continuation);
Object obj = aVar.result;
Object coroutine_suspended = d0.w.g.c.getCOROUTINE_SUSPENDED();
i = aVar.label;
if (i != 0) {
}
cVar2.releaseIntercepted();
return Unit.a;
}
public abstract Object b(c<? super T> cVar, Continuation<? super Unit> continuation);
}