ADD week 5
This commit is contained in:
@ -0,0 +1,30 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
|
||||
/* compiled from: Flow.kt */
|
||||
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.AbstractFlow", f = "Flow.kt", i = {0}, l = {230}, m = "collect", n = {"safeCollector"}, s = {"L$0"})
|
||||
/* loaded from: classes.dex */
|
||||
final class AbstractFlow$collect$1 extends ContinuationImpl {
|
||||
Object L$0;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
final /* synthetic */ AbstractFlow<T> this$0;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
AbstractFlow$collect$1(AbstractFlow<T> abstractFlow, Continuation<? super AbstractFlow$collect$1> continuation) {
|
||||
super(continuation);
|
||||
this.this$0 = abstractFlow;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= Integer.MIN_VALUE;
|
||||
return this.this$0.collect(null, this);
|
||||
}
|
||||
}
|
@ -0,0 +1,86 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
|
||||
/* compiled from: Flow.kt */
|
||||
@Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\b'\u0018\u0000*\u0004\b\u0000\u0010\u00012\b\u0012\u0004\u0012\u0002H\u00010\u00022\b\u0012\u0004\u0012\u0002H\u00010\u0003B\u0005¢\u0006\u0002\u0010\u0004J\u001f\u0010\u0005\u001a\u00020\u00062\f\u0010\u0007\u001a\b\u0012\u0004\u0012\u00028\u00000\bH\u0086@ø\u0001\u0000¢\u0006\u0002\u0010\tJ\u001f\u0010\n\u001a\u00020\u00062\f\u0010\u0007\u001a\b\u0012\u0004\u0012\u00028\u00000\bH¦@ø\u0001\u0000¢\u0006\u0002\u0010\t\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u000b"}, d2 = {"Lkotlinx/coroutines/flow/AbstractFlow;", "T", "Lkotlinx/coroutines/flow/Flow;", "Lkotlinx/coroutines/flow/CancellableFlow;", "()V", "collect", "", "collector", "Lkotlinx/coroutines/flow/FlowCollector;", "(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "collectSafely", "kotlinx-coroutines-core"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public abstract class AbstractFlow<T> implements Flow<T>, CancellableFlow<T> {
|
||||
public abstract Object collectSafely(FlowCollector<? super T> flowCollector, Continuation<? super Unit> continuation);
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:21:0x0038 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0024 */
|
||||
@Override // kotlinx.coroutines.flow.Flow
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object collect(kotlinx.coroutines.flow.FlowCollector<? super T> r6, kotlin.coroutines.Continuation<? super kotlin.Unit> r7) {
|
||||
/*
|
||||
r5 = this;
|
||||
boolean r0 = r7 instanceof kotlinx.coroutines.flow.AbstractFlow$collect$1
|
||||
if (r0 == 0) goto L14
|
||||
r0 = r7
|
||||
kotlinx.coroutines.flow.AbstractFlow$collect$1 r0 = (kotlinx.coroutines.flow.AbstractFlow$collect$1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r1 = r1 & r2
|
||||
if (r1 == 0) goto L14
|
||||
int r7 = r0.label
|
||||
int r7 = r7 - r2
|
||||
r0.label = r7
|
||||
goto L19
|
||||
L14:
|
||||
kotlinx.coroutines.flow.AbstractFlow$collect$1 r0 = new kotlinx.coroutines.flow.AbstractFlow$collect$1
|
||||
r0.<init>(r5, r7)
|
||||
L19:
|
||||
java.lang.Object r7 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L38
|
||||
if (r2 != r3) goto L30
|
||||
java.lang.Object r6 = r0.L$0
|
||||
kotlinx.coroutines.flow.internal.SafeCollector r6 = (kotlinx.coroutines.flow.internal.SafeCollector) r6
|
||||
kotlin.ResultKt.throwOnFailure(r7) // Catch: java.lang.Throwable -> L2e
|
||||
goto L53
|
||||
L2e:
|
||||
r7 = move-exception
|
||||
goto L5d
|
||||
L30:
|
||||
java.lang.IllegalStateException r6 = new java.lang.IllegalStateException
|
||||
java.lang.String r7 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r6.<init>(r7)
|
||||
throw r6
|
||||
L38:
|
||||
kotlin.ResultKt.throwOnFailure(r7)
|
||||
kotlinx.coroutines.flow.internal.SafeCollector r7 = new kotlinx.coroutines.flow.internal.SafeCollector
|
||||
kotlin.coroutines.CoroutineContext r2 = r0.getContext()
|
||||
r7.<init>(r6, r2)
|
||||
r6 = r7
|
||||
kotlinx.coroutines.flow.FlowCollector r6 = (kotlinx.coroutines.flow.FlowCollector) r6 // Catch: java.lang.Throwable -> L59
|
||||
r0.L$0 = r7 // Catch: java.lang.Throwable -> L59
|
||||
r0.label = r3 // Catch: java.lang.Throwable -> L59
|
||||
java.lang.Object r6 = r5.collectSafely(r6, r0) // Catch: java.lang.Throwable -> L59
|
||||
if (r6 != r1) goto L52
|
||||
return r1
|
||||
L52:
|
||||
r6 = r7
|
||||
L53:
|
||||
r6.releaseIntercepted()
|
||||
kotlin.Unit r6 = kotlin.Unit.INSTANCE
|
||||
return r6
|
||||
L59:
|
||||
r6 = move-exception
|
||||
r4 = r7
|
||||
r7 = r6
|
||||
r6 = r4
|
||||
L5d:
|
||||
r6.releaseIntercepted()
|
||||
throw r7
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.AbstractFlow.collect(kotlinx.coroutines.flow.FlowCollector, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
|
||||
/* compiled from: Builders.kt */
|
||||
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.CallbackFlowBuilder", f = "Builders.kt", i = {0}, l = {334}, m = "collectTo", n = {"scope"}, s = {"L$0"})
|
||||
/* loaded from: classes.dex */
|
||||
final class CallbackFlowBuilder$collectTo$1 extends ContinuationImpl {
|
||||
Object L$0;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
final /* synthetic */ CallbackFlowBuilder<T> this$0;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
CallbackFlowBuilder$collectTo$1(CallbackFlowBuilder<T> callbackFlowBuilder, Continuation<? super CallbackFlowBuilder$collectTo$1> continuation) {
|
||||
super(continuation);
|
||||
this.this$0 = callbackFlowBuilder;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= Integer.MIN_VALUE;
|
||||
return this.this$0.collectTo(null, this);
|
||||
}
|
||||
}
|
@ -0,0 +1,98 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.CoroutineContext;
|
||||
import kotlin.coroutines.EmptyCoroutineContext;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlinx.coroutines.channels.BufferOverflow;
|
||||
import kotlinx.coroutines.channels.ProducerScope;
|
||||
import kotlinx.coroutines.flow.internal.ChannelFlow;
|
||||
|
||||
/* compiled from: Builders.kt */
|
||||
@Metadata(d1 = {"\u0000@\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0000\b\u0002\u0018\u0000*\u0004\b\u0000\u0010\u00012\b\u0012\u0004\u0012\u0002H\u00010\u0002BU\u0012-\u0010\u0003\u001a)\b\u0001\u0012\n\u0012\b\u0012\u0004\u0012\u00028\u00000\u0005\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00070\u0006\u0012\u0006\u0012\u0004\u0018\u00010\b0\u0004¢\u0006\u0002\b\t\u0012\b\b\u0002\u0010\n\u001a\u00020\u000b\u0012\b\b\u0002\u0010\f\u001a\u00020\r\u0012\b\b\u0002\u0010\u000e\u001a\u00020\u000fø\u0001\u0000¢\u0006\u0002\u0010\u0010J\u001f\u0010\u0012\u001a\u00020\u00072\f\u0010\u0013\u001a\b\u0012\u0004\u0012\u00028\u00000\u0005H\u0094@ø\u0001\u0000¢\u0006\u0002\u0010\u0014J&\u0010\u0015\u001a\b\u0012\u0004\u0012\u00028\u00000\u00162\u0006\u0010\n\u001a\u00020\u000b2\u0006\u0010\f\u001a\u00020\r2\u0006\u0010\u000e\u001a\u00020\u000fH\u0014R:\u0010\u0003\u001a)\b\u0001\u0012\n\u0012\b\u0012\u0004\u0012\u00028\u00000\u0005\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00070\u0006\u0012\u0006\u0012\u0004\u0018\u00010\b0\u0004¢\u0006\u0002\b\tX\u0082\u0004ø\u0001\u0000¢\u0006\u0004\n\u0002\u0010\u0011\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u0017"}, d2 = {"Lkotlinx/coroutines/flow/CallbackFlowBuilder;", "T", "Lkotlinx/coroutines/flow/ChannelFlowBuilder;", "block", "Lkotlin/Function2;", "Lkotlinx/coroutines/channels/ProducerScope;", "Lkotlin/coroutines/Continuation;", "", "", "Lkotlin/ExtensionFunctionType;", "context", "Lkotlin/coroutines/CoroutineContext;", "capacity", "", "onBufferOverflow", "Lkotlinx/coroutines/channels/BufferOverflow;", "(Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/CoroutineContext;ILkotlinx/coroutines/channels/BufferOverflow;)V", "Lkotlin/jvm/functions/Function2;", "collectTo", "scope", "(Lkotlinx/coroutines/channels/ProducerScope;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "create", "Lkotlinx/coroutines/flow/internal/ChannelFlow;", "kotlinx-coroutines-core"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
final class CallbackFlowBuilder<T> extends ChannelFlowBuilder<T> {
|
||||
private final Function2<ProducerScope<? super T>, Continuation<? super Unit>, Object> block;
|
||||
|
||||
public /* synthetic */ CallbackFlowBuilder(Function2 function2, EmptyCoroutineContext emptyCoroutineContext, int i, BufferOverflow bufferOverflow, int i2, DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this(function2, (i2 & 2) != 0 ? EmptyCoroutineContext.INSTANCE : emptyCoroutineContext, (i2 & 4) != 0 ? -2 : i, (i2 & 8) != 0 ? BufferOverflow.SUSPEND : bufferOverflow);
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public CallbackFlowBuilder(Function2<? super ProducerScope<? super T>, ? super Continuation<? super Unit>, ? extends Object> function2, CoroutineContext coroutineContext, int i, BufferOverflow bufferOverflow) {
|
||||
super(function2, coroutineContext, i, bufferOverflow);
|
||||
this.block = function2;
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:12:0x004a */
|
||||
/* JADX WARN: Removed duplicated region for block: B:15:0x004d */
|
||||
/* JADX WARN: Removed duplicated region for block: B:19:0x0036 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0024 */
|
||||
@Override // kotlinx.coroutines.flow.ChannelFlowBuilder, kotlinx.coroutines.flow.internal.ChannelFlow
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
protected java.lang.Object collectTo(kotlinx.coroutines.channels.ProducerScope<? super T> r5, kotlin.coroutines.Continuation<? super kotlin.Unit> r6) {
|
||||
/*
|
||||
r4 = this;
|
||||
boolean r0 = r6 instanceof kotlinx.coroutines.flow.CallbackFlowBuilder$collectTo$1
|
||||
if (r0 == 0) goto L14
|
||||
r0 = r6
|
||||
kotlinx.coroutines.flow.CallbackFlowBuilder$collectTo$1 r0 = (kotlinx.coroutines.flow.CallbackFlowBuilder$collectTo$1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r1 = r1 & r2
|
||||
if (r1 == 0) goto L14
|
||||
int r6 = r0.label
|
||||
int r6 = r6 - r2
|
||||
r0.label = r6
|
||||
goto L19
|
||||
L14:
|
||||
kotlinx.coroutines.flow.CallbackFlowBuilder$collectTo$1 r0 = new kotlinx.coroutines.flow.CallbackFlowBuilder$collectTo$1
|
||||
r0.<init>(r4, r6)
|
||||
L19:
|
||||
java.lang.Object r6 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L36
|
||||
if (r2 != r3) goto L2e
|
||||
java.lang.Object r5 = r0.L$0
|
||||
kotlinx.coroutines.channels.ProducerScope r5 = (kotlinx.coroutines.channels.ProducerScope) r5
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L44
|
||||
L2e:
|
||||
java.lang.IllegalStateException r5 = new java.lang.IllegalStateException
|
||||
java.lang.String r6 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r5.<init>(r6)
|
||||
throw r5
|
||||
L36:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
r0.L$0 = r5
|
||||
r0.label = r3
|
||||
java.lang.Object r6 = super.collectTo(r5, r0)
|
||||
if (r6 != r1) goto L44
|
||||
return r1
|
||||
L44:
|
||||
boolean r5 = r5.isClosedForSend()
|
||||
if (r5 == 0) goto L4d
|
||||
kotlin.Unit r5 = kotlin.Unit.INSTANCE
|
||||
return r5
|
||||
L4d:
|
||||
java.lang.IllegalStateException r5 = new java.lang.IllegalStateException
|
||||
java.lang.String r6 = "'awaitClose { yourCallbackOrListener.cancel() }' should be used in the end of callbackFlow block.\nOtherwise, a callback/listener may leak in case of external cancellation.\nSee callbackFlow API documentation for the details."
|
||||
r5.<init>(r6)
|
||||
throw r5
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.CallbackFlowBuilder.collectTo(kotlinx.coroutines.channels.ProducerScope, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
|
||||
@Override // kotlinx.coroutines.flow.ChannelFlowBuilder, kotlinx.coroutines.flow.internal.ChannelFlow
|
||||
protected ChannelFlow<T> create(CoroutineContext context, int capacity, BufferOverflow onBufferOverflow) {
|
||||
return new CallbackFlowBuilder(this.block, context, capacity, onBufferOverflow);
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
|
||||
/* compiled from: Context.kt */
|
||||
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\b`\u0018\u0000*\u0006\b\u0000\u0010\u0001 \u00012\b\u0012\u0004\u0012\u0002H\u00010\u0002¨\u0006\u0003"}, d2 = {"Lkotlinx/coroutines/flow/CancellableFlow;", "T", "Lkotlinx/coroutines/flow/Flow;", "kotlinx-coroutines-core"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public interface CancellableFlow<T> extends Flow<T> {
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
|
||||
/* compiled from: Context.kt */
|
||||
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.CancellableFlowImpl$collect$2", f = "Context.kt", i = {}, l = {275}, m = "emit", n = {}, s = {})
|
||||
/* loaded from: classes.dex */
|
||||
final class CancellableFlowImpl$collect$2$emit$1 extends ContinuationImpl {
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
final /* synthetic */ CancellableFlowImpl$collect$2<T> this$0;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
CancellableFlowImpl$collect$2$emit$1(CancellableFlowImpl$collect$2<? super T> cancellableFlowImpl$collect$2, Continuation<? super CancellableFlowImpl$collect$2$emit$1> continuation) {
|
||||
super(continuation);
|
||||
this.this$0 = cancellableFlowImpl$collect$2;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= Integer.MIN_VALUE;
|
||||
return this.this$0.emit(null, this);
|
||||
}
|
||||
}
|
@ -0,0 +1,70 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
|
||||
/* compiled from: Context.kt */
|
||||
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0004\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u00022\u0006\u0010\u0003\u001a\u0002H\u0002H\u008a@¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"<anonymous>", "", "T", "it", "emit", "(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;"}, k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
final class CancellableFlowImpl$collect$2<T> implements FlowCollector {
|
||||
final /* synthetic */ FlowCollector<T> $collector;
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
CancellableFlowImpl$collect$2(FlowCollector<? super T> flowCollector) {
|
||||
this.$collector = flowCollector;
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:15:0x0032 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0024 */
|
||||
@Override // kotlinx.coroutines.flow.FlowCollector
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object emit(T r5, kotlin.coroutines.Continuation<? super kotlin.Unit> r6) {
|
||||
/*
|
||||
r4 = this;
|
||||
boolean r0 = r6 instanceof kotlinx.coroutines.flow.CancellableFlowImpl$collect$2$emit$1
|
||||
if (r0 == 0) goto L14
|
||||
r0 = r6
|
||||
kotlinx.coroutines.flow.CancellableFlowImpl$collect$2$emit$1 r0 = (kotlinx.coroutines.flow.CancellableFlowImpl$collect$2$emit$1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r1 = r1 & r2
|
||||
if (r1 == 0) goto L14
|
||||
int r6 = r0.label
|
||||
int r6 = r6 - r2
|
||||
r0.label = r6
|
||||
goto L19
|
||||
L14:
|
||||
kotlinx.coroutines.flow.CancellableFlowImpl$collect$2$emit$1 r0 = new kotlinx.coroutines.flow.CancellableFlowImpl$collect$2$emit$1
|
||||
r0.<init>(r4, r6)
|
||||
L19:
|
||||
java.lang.Object r6 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L32
|
||||
if (r2 != r3) goto L2a
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L47
|
||||
L2a:
|
||||
java.lang.IllegalStateException r5 = new java.lang.IllegalStateException
|
||||
java.lang.String r6 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r5.<init>(r6)
|
||||
throw r5
|
||||
L32:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
kotlin.coroutines.CoroutineContext r6 = r0.getContext()
|
||||
kotlinx.coroutines.JobKt.ensureActive(r6)
|
||||
kotlinx.coroutines.flow.FlowCollector<T> r6 = r4.$collector
|
||||
r0.label = r3
|
||||
java.lang.Object r5 = r6.emit(r5, r0)
|
||||
if (r5 != r1) goto L47
|
||||
return r1
|
||||
L47:
|
||||
kotlin.Unit r5 = kotlin.Unit.INSTANCE
|
||||
return r5
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.CancellableFlowImpl$collect$2.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
|
||||
/* compiled from: Context.kt */
|
||||
@Metadata(d1 = {"\u0000\"\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\b\u0002\u0018\u0000*\u0004\b\u0000\u0010\u00012\b\u0012\u0004\u0012\u0002H\u00010\u0002B\u0013\u0012\f\u0010\u0003\u001a\b\u0012\u0004\u0012\u00028\u00000\u0004¢\u0006\u0002\u0010\u0005J\u001f\u0010\u0006\u001a\u00020\u00072\f\u0010\b\u001a\b\u0012\u0004\u0012\u00028\u00000\tH\u0096@ø\u0001\u0000¢\u0006\u0002\u0010\nR\u0014\u0010\u0003\u001a\b\u0012\u0004\u0012\u00028\u00000\u0004X\u0082\u0004¢\u0006\u0002\n\u0000\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u000b"}, d2 = {"Lkotlinx/coroutines/flow/CancellableFlowImpl;", "T", "Lkotlinx/coroutines/flow/CancellableFlow;", "flow", "Lkotlinx/coroutines/flow/Flow;", "(Lkotlinx/coroutines/flow/Flow;)V", "collect", "", "collector", "Lkotlinx/coroutines/flow/FlowCollector;", "(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
final class CancellableFlowImpl<T> implements CancellableFlow<T> {
|
||||
private final Flow<T> flow;
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public CancellableFlowImpl(Flow<? extends T> flow) {
|
||||
this.flow = flow;
|
||||
}
|
||||
|
||||
@Override // kotlinx.coroutines.flow.Flow
|
||||
public Object collect(FlowCollector<? super T> flowCollector, Continuation<? super Unit> continuation) {
|
||||
Object collect = this.flow.collect(new CancellableFlowImpl$collect$2(flowCollector), continuation);
|
||||
return collect == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? collect : Unit.INSTANCE;
|
||||
}
|
||||
}
|
@ -0,0 +1,87 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import java.util.concurrent.atomic.AtomicIntegerFieldUpdater;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.CoroutineContext;
|
||||
import kotlin.coroutines.EmptyCoroutineContext;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.jvm.Volatile;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
import kotlinx.coroutines.channels.BufferOverflow;
|
||||
import kotlinx.coroutines.channels.ProducerScope;
|
||||
import kotlinx.coroutines.channels.ReceiveChannel;
|
||||
import kotlinx.coroutines.flow.internal.ChannelFlow;
|
||||
import kotlinx.coroutines.flow.internal.SendingCollector;
|
||||
|
||||
/* compiled from: Channels.kt */
|
||||
@Metadata(d1 = {"\u0000\\\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\b\u0002\u0018\u0000*\u0004\b\u0000\u0010\u00012\b\u0012\u0004\u0012\u0002H\u00010\u0002B9\u0012\f\u0010\u0003\u001a\b\u0012\u0004\u0012\u00028\u00000\u0004\u0012\u0006\u0010\u0005\u001a\u00020\u0006\u0012\b\b\u0002\u0010\u0007\u001a\u00020\b\u0012\b\b\u0002\u0010\t\u001a\u00020\n\u0012\b\b\u0002\u0010\u000b\u001a\u00020\f¢\u0006\u0002\u0010\rJ\b\u0010\u0010\u001a\u00020\u0011H\u0014J\u001f\u0010\u0012\u001a\u00020\u00132\f\u0010\u0014\u001a\b\u0012\u0004\u0012\u00028\u00000\u0015H\u0096@ø\u0001\u0000¢\u0006\u0002\u0010\u0016J\u001f\u0010\u0017\u001a\u00020\u00132\f\u0010\u0018\u001a\b\u0012\u0004\u0012\u00028\u00000\u0019H\u0094@ø\u0001\u0000¢\u0006\u0002\u0010\u001aJ&\u0010\u001b\u001a\b\u0012\u0004\u0012\u00028\u00000\u00022\u0006\u0010\u0007\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\n2\u0006\u0010\u000b\u001a\u00020\fH\u0014J\u000e\u0010\u001c\u001a\b\u0012\u0004\u0012\u00028\u00000\u001dH\u0016J\b\u0010\u001e\u001a\u00020\u0013H\u0002J\u0016\u0010\u001f\u001a\b\u0012\u0004\u0012\u00028\u00000\u00042\u0006\u0010\u0018\u001a\u00020 H\u0016R\u0014\u0010\u0003\u001a\b\u0012\u0004\u0012\u00028\u00000\u0004X\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\u0005\u001a\u00020\u0006X\u0082\u0004¢\u0006\u0002\n\u0000R\t\u0010\u000e\u001a\u00020\u000fX\u0082\u0004\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006!"}, d2 = {"Lkotlinx/coroutines/flow/ChannelAsFlow;", "T", "Lkotlinx/coroutines/flow/internal/ChannelFlow;", "channel", "Lkotlinx/coroutines/channels/ReceiveChannel;", "consume", "", "context", "Lkotlin/coroutines/CoroutineContext;", "capacity", "", "onBufferOverflow", "Lkotlinx/coroutines/channels/BufferOverflow;", "(Lkotlinx/coroutines/channels/ReceiveChannel;ZLkotlin/coroutines/CoroutineContext;ILkotlinx/coroutines/channels/BufferOverflow;)V", "consumed", "Lkotlinx/atomicfu/AtomicBoolean;", "additionalToStringProps", "", "collect", "", "collector", "Lkotlinx/coroutines/flow/FlowCollector;", "(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "collectTo", "scope", "Lkotlinx/coroutines/channels/ProducerScope;", "(Lkotlinx/coroutines/channels/ProducerScope;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "create", "dropChannelOperators", "Lkotlinx/coroutines/flow/Flow;", "markConsumed", "produceImpl", "Lkotlinx/coroutines/CoroutineScope;", "kotlinx-coroutines-core"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
final class ChannelAsFlow<T> extends ChannelFlow<T> {
|
||||
private static final AtomicIntegerFieldUpdater consumed$FU = AtomicIntegerFieldUpdater.newUpdater(ChannelAsFlow.class, "consumed");
|
||||
private final ReceiveChannel<T> channel;
|
||||
private final boolean consume;
|
||||
|
||||
@Volatile
|
||||
private volatile int consumed;
|
||||
|
||||
public /* synthetic */ ChannelAsFlow(ReceiveChannel receiveChannel, boolean z, EmptyCoroutineContext emptyCoroutineContext, int i, BufferOverflow bufferOverflow, int i2, DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this(receiveChannel, z, (i2 & 4) != 0 ? EmptyCoroutineContext.INSTANCE : emptyCoroutineContext, (i2 & 8) != 0 ? -3 : i, (i2 & 16) != 0 ? BufferOverflow.SUSPEND : bufferOverflow);
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public ChannelAsFlow(ReceiveChannel<? extends T> receiveChannel, boolean z, CoroutineContext coroutineContext, int i, BufferOverflow bufferOverflow) {
|
||||
super(coroutineContext, i, bufferOverflow);
|
||||
this.channel = receiveChannel;
|
||||
this.consume = z;
|
||||
this.consumed = 0;
|
||||
}
|
||||
|
||||
private final void markConsumed() {
|
||||
if (this.consume && consumed$FU.getAndSet(this, 1) != 0) {
|
||||
throw new IllegalStateException("ReceiveChannel.consumeAsFlow can be collected just once".toString());
|
||||
}
|
||||
}
|
||||
|
||||
@Override // kotlinx.coroutines.flow.internal.ChannelFlow
|
||||
protected ChannelFlow<T> create(CoroutineContext context, int capacity, BufferOverflow onBufferOverflow) {
|
||||
return new ChannelAsFlow(this.channel, this.consume, context, capacity, onBufferOverflow);
|
||||
}
|
||||
|
||||
@Override // kotlinx.coroutines.flow.internal.ChannelFlow
|
||||
public Flow<T> dropChannelOperators() {
|
||||
return new ChannelAsFlow(this.channel, this.consume, null, 0, null, 28, null);
|
||||
}
|
||||
|
||||
@Override // kotlinx.coroutines.flow.internal.ChannelFlow
|
||||
protected Object collectTo(ProducerScope<? super T> producerScope, Continuation<? super Unit> continuation) {
|
||||
Object emitAllImpl$FlowKt__ChannelsKt;
|
||||
emitAllImpl$FlowKt__ChannelsKt = FlowKt__ChannelsKt.emitAllImpl$FlowKt__ChannelsKt(new SendingCollector(producerScope), this.channel, this.consume, continuation);
|
||||
return emitAllImpl$FlowKt__ChannelsKt == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? emitAllImpl$FlowKt__ChannelsKt : Unit.INSTANCE;
|
||||
}
|
||||
|
||||
@Override // kotlinx.coroutines.flow.internal.ChannelFlow
|
||||
public ReceiveChannel<T> produceImpl(CoroutineScope scope) {
|
||||
markConsumed();
|
||||
return this.capacity == -3 ? this.channel : super.produceImpl(scope);
|
||||
}
|
||||
|
||||
@Override // kotlinx.coroutines.flow.internal.ChannelFlow, kotlinx.coroutines.flow.Flow
|
||||
public Object collect(FlowCollector<? super T> flowCollector, Continuation<? super Unit> continuation) {
|
||||
Object emitAllImpl$FlowKt__ChannelsKt;
|
||||
if (this.capacity == -3) {
|
||||
markConsumed();
|
||||
emitAllImpl$FlowKt__ChannelsKt = FlowKt__ChannelsKt.emitAllImpl$FlowKt__ChannelsKt(flowCollector, this.channel, this.consume, continuation);
|
||||
return emitAllImpl$FlowKt__ChannelsKt == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? emitAllImpl$FlowKt__ChannelsKt : Unit.INSTANCE;
|
||||
}
|
||||
Object collect = super.collect(flowCollector, continuation);
|
||||
return collect == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? collect : Unit.INSTANCE;
|
||||
}
|
||||
|
||||
@Override // kotlinx.coroutines.flow.internal.ChannelFlow
|
||||
protected String additionalToStringProps() {
|
||||
return "channel=" + this.channel;
|
||||
}
|
||||
}
|
@ -0,0 +1,50 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.CoroutineContext;
|
||||
import kotlin.coroutines.EmptyCoroutineContext;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlinx.coroutines.channels.BufferOverflow;
|
||||
import kotlinx.coroutines.channels.ProducerScope;
|
||||
import kotlinx.coroutines.flow.internal.ChannelFlow;
|
||||
|
||||
/* compiled from: Builders.kt */
|
||||
@Metadata(d1 = {"\u0000@\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0010\u000e\n\u0000\b\u0012\u0018\u0000*\u0004\b\u0000\u0010\u00012\b\u0012\u0004\u0012\u0002H\u00010\u0002BU\u0012-\u0010\u0003\u001a)\b\u0001\u0012\n\u0012\b\u0012\u0004\u0012\u00028\u00000\u0005\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00070\u0006\u0012\u0006\u0012\u0004\u0018\u00010\b0\u0004¢\u0006\u0002\b\t\u0012\b\b\u0002\u0010\n\u001a\u00020\u000b\u0012\b\b\u0002\u0010\f\u001a\u00020\r\u0012\b\b\u0002\u0010\u000e\u001a\u00020\u000fø\u0001\u0000¢\u0006\u0002\u0010\u0010J\u001f\u0010\u0012\u001a\u00020\u00072\f\u0010\u0013\u001a\b\u0012\u0004\u0012\u00028\u00000\u0005H\u0094@ø\u0001\u0000¢\u0006\u0002\u0010\u0014J&\u0010\u0015\u001a\b\u0012\u0004\u0012\u00028\u00000\u00022\u0006\u0010\n\u001a\u00020\u000b2\u0006\u0010\f\u001a\u00020\r2\u0006\u0010\u000e\u001a\u00020\u000fH\u0014J\b\u0010\u0016\u001a\u00020\u0017H\u0016R:\u0010\u0003\u001a)\b\u0001\u0012\n\u0012\b\u0012\u0004\u0012\u00028\u00000\u0005\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00070\u0006\u0012\u0006\u0012\u0004\u0018\u00010\b0\u0004¢\u0006\u0002\b\tX\u0082\u0004ø\u0001\u0000¢\u0006\u0004\n\u0002\u0010\u0011\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u0018"}, d2 = {"Lkotlinx/coroutines/flow/ChannelFlowBuilder;", "T", "Lkotlinx/coroutines/flow/internal/ChannelFlow;", "block", "Lkotlin/Function2;", "Lkotlinx/coroutines/channels/ProducerScope;", "Lkotlin/coroutines/Continuation;", "", "", "Lkotlin/ExtensionFunctionType;", "context", "Lkotlin/coroutines/CoroutineContext;", "capacity", "", "onBufferOverflow", "Lkotlinx/coroutines/channels/BufferOverflow;", "(Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/CoroutineContext;ILkotlinx/coroutines/channels/BufferOverflow;)V", "Lkotlin/jvm/functions/Function2;", "collectTo", "scope", "(Lkotlinx/coroutines/channels/ProducerScope;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "create", "toString", "", "kotlinx-coroutines-core"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
class ChannelFlowBuilder<T> extends ChannelFlow<T> {
|
||||
private final Function2<ProducerScope<? super T>, Continuation<? super Unit>, Object> block;
|
||||
|
||||
@Override // kotlinx.coroutines.flow.internal.ChannelFlow
|
||||
protected Object collectTo(ProducerScope<? super T> producerScope, Continuation<? super Unit> continuation) {
|
||||
return collectTo$suspendImpl(this, producerScope, continuation);
|
||||
}
|
||||
|
||||
public /* synthetic */ ChannelFlowBuilder(Function2 function2, EmptyCoroutineContext emptyCoroutineContext, int i, BufferOverflow bufferOverflow, int i2, DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this(function2, (i2 & 2) != 0 ? EmptyCoroutineContext.INSTANCE : emptyCoroutineContext, (i2 & 4) != 0 ? -2 : i, (i2 & 8) != 0 ? BufferOverflow.SUSPEND : bufferOverflow);
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public ChannelFlowBuilder(Function2<? super ProducerScope<? super T>, ? super Continuation<? super Unit>, ? extends Object> function2, CoroutineContext coroutineContext, int i, BufferOverflow bufferOverflow) {
|
||||
super(coroutineContext, i, bufferOverflow);
|
||||
this.block = function2;
|
||||
}
|
||||
|
||||
@Override // kotlinx.coroutines.flow.internal.ChannelFlow
|
||||
protected ChannelFlow<T> create(CoroutineContext context, int capacity, BufferOverflow onBufferOverflow) {
|
||||
return new ChannelFlowBuilder(this.block, context, capacity, onBufferOverflow);
|
||||
}
|
||||
|
||||
static /* synthetic */ <T> Object collectTo$suspendImpl(ChannelFlowBuilder<T> channelFlowBuilder, ProducerScope<? super T> producerScope, Continuation<? super Unit> continuation) {
|
||||
Object invoke = ((ChannelFlowBuilder) channelFlowBuilder).block.invoke(producerScope, continuation);
|
||||
return invoke == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? invoke : Unit.INSTANCE;
|
||||
}
|
||||
|
||||
@Override // kotlinx.coroutines.flow.internal.ChannelFlow
|
||||
public String toString() {
|
||||
return "block[" + this.block + "] -> " + super.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
|
||||
/* compiled from: Distinct.kt */
|
||||
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.DistinctFlowImpl$collect$2", f = "Distinct.kt", i = {}, l = {77}, m = "emit", n = {}, s = {})
|
||||
/* loaded from: classes.dex */
|
||||
final class DistinctFlowImpl$collect$2$emit$1 extends ContinuationImpl {
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
final /* synthetic */ DistinctFlowImpl$collect$2<T> this$0;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
DistinctFlowImpl$collect$2$emit$1(DistinctFlowImpl$collect$2<? super T> distinctFlowImpl$collect$2, Continuation<? super DistinctFlowImpl$collect$2$emit$1> continuation) {
|
||||
super(continuation);
|
||||
this.this$0 = distinctFlowImpl$collect$2;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= Integer.MIN_VALUE;
|
||||
return this.this$0.emit(null, this);
|
||||
}
|
||||
}
|
@ -0,0 +1,95 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Ref;
|
||||
|
||||
/* compiled from: Distinct.kt */
|
||||
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0004\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u00022\u0006\u0010\u0003\u001a\u0002H\u0002H\u008a@¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"<anonymous>", "", "T", "value", "emit", "(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;"}, k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
final class DistinctFlowImpl$collect$2<T> implements FlowCollector {
|
||||
final /* synthetic */ FlowCollector<T> $collector;
|
||||
final /* synthetic */ Ref.ObjectRef<Object> $previousKey;
|
||||
final /* synthetic */ DistinctFlowImpl<T> this$0;
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
DistinctFlowImpl$collect$2(DistinctFlowImpl<T> distinctFlowImpl, Ref.ObjectRef<Object> objectRef, FlowCollector<? super T> flowCollector) {
|
||||
this.this$0 = distinctFlowImpl;
|
||||
this.$previousKey = objectRef;
|
||||
this.$collector = flowCollector;
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:15:0x0032 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0024 */
|
||||
@Override // kotlinx.coroutines.flow.FlowCollector
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object emit(T r6, kotlin.coroutines.Continuation<? super kotlin.Unit> r7) {
|
||||
/*
|
||||
r5 = this;
|
||||
boolean r0 = r7 instanceof kotlinx.coroutines.flow.DistinctFlowImpl$collect$2$emit$1
|
||||
if (r0 == 0) goto L14
|
||||
r0 = r7
|
||||
kotlinx.coroutines.flow.DistinctFlowImpl$collect$2$emit$1 r0 = (kotlinx.coroutines.flow.DistinctFlowImpl$collect$2$emit$1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r1 = r1 & r2
|
||||
if (r1 == 0) goto L14
|
||||
int r7 = r0.label
|
||||
int r7 = r7 - r2
|
||||
r0.label = r7
|
||||
goto L19
|
||||
L14:
|
||||
kotlinx.coroutines.flow.DistinctFlowImpl$collect$2$emit$1 r0 = new kotlinx.coroutines.flow.DistinctFlowImpl$collect$2$emit$1
|
||||
r0.<init>(r5, r7)
|
||||
L19:
|
||||
java.lang.Object r7 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L32
|
||||
if (r2 != r3) goto L2a
|
||||
kotlin.ResultKt.throwOnFailure(r7)
|
||||
goto L6c
|
||||
L2a:
|
||||
java.lang.IllegalStateException r6 = new java.lang.IllegalStateException
|
||||
java.lang.String r7 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r6.<init>(r7)
|
||||
throw r6
|
||||
L32:
|
||||
kotlin.ResultKt.throwOnFailure(r7)
|
||||
kotlinx.coroutines.flow.DistinctFlowImpl<T> r7 = r5.this$0
|
||||
kotlin.jvm.functions.Function1<T, java.lang.Object> r7 = r7.keySelector
|
||||
java.lang.Object r7 = r7.invoke(r6)
|
||||
kotlin.jvm.internal.Ref$ObjectRef<java.lang.Object> r2 = r5.$previousKey
|
||||
T r2 = r2.element
|
||||
kotlinx.coroutines.internal.Symbol r4 = kotlinx.coroutines.flow.internal.NullSurrogateKt.NULL
|
||||
if (r2 == r4) goto L5d
|
||||
kotlinx.coroutines.flow.DistinctFlowImpl<T> r2 = r5.this$0
|
||||
kotlin.jvm.functions.Function2<java.lang.Object, java.lang.Object, java.lang.Boolean> r2 = r2.areEquivalent
|
||||
kotlin.jvm.internal.Ref$ObjectRef<java.lang.Object> r4 = r5.$previousKey
|
||||
T r4 = r4.element
|
||||
java.lang.Object r2 = r2.invoke(r4, r7)
|
||||
java.lang.Boolean r2 = (java.lang.Boolean) r2
|
||||
boolean r2 = r2.booleanValue()
|
||||
if (r2 != 0) goto L5a
|
||||
goto L5d
|
||||
L5a:
|
||||
kotlin.Unit r6 = kotlin.Unit.INSTANCE
|
||||
return r6
|
||||
L5d:
|
||||
kotlin.jvm.internal.Ref$ObjectRef<java.lang.Object> r2 = r5.$previousKey
|
||||
r2.element = r7
|
||||
kotlinx.coroutines.flow.FlowCollector<T> r7 = r5.$collector
|
||||
r0.label = r3
|
||||
java.lang.Object r6 = r7.emit(r6, r0)
|
||||
if (r6 != r1) goto L6c
|
||||
return r1
|
||||
L6c:
|
||||
kotlin.Unit r6 = kotlin.Unit.INSTANCE
|
||||
return r6
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.DistinctFlowImpl$collect$2.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.internal.Ref;
|
||||
import kotlinx.coroutines.flow.internal.NullSurrogateKt;
|
||||
|
||||
/* compiled from: Distinct.kt */
|
||||
@Metadata(d1 = {"\u0000:\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\b\u0002\u0018\u0000*\u0004\b\u0000\u0010\u00012\b\u0012\u0004\u0012\u0002H\u00010\u0002Be\u0012\f\u0010\u0003\u001a\b\u0012\u0004\u0012\u00028\u00000\u0002\u0012\u0014\u0010\u0004\u001a\u0010\u0012\u0004\u0012\u00028\u0000\u0012\u0006\u0012\u0004\u0018\u00010\u00060\u0005\u0012:\u0010\u0007\u001a6\u0012\u0015\u0012\u0013\u0018\u00010\u0006¢\u0006\f\b\t\u0012\b\b\n\u0012\u0004\b\b(\u000b\u0012\u0015\u0012\u0013\u0018\u00010\u0006¢\u0006\f\b\t\u0012\b\b\n\u0012\u0004\b\b(\f\u0012\u0004\u0012\u00020\r0\b¢\u0006\u0002\u0010\u000eJ\u001f\u0010\u000f\u001a\u00020\u00102\f\u0010\u0011\u001a\b\u0012\u0004\u0012\u00028\u00000\u0012H\u0096@ø\u0001\u0000¢\u0006\u0002\u0010\u0013RD\u0010\u0007\u001a6\u0012\u0015\u0012\u0013\u0018\u00010\u0006¢\u0006\f\b\t\u0012\b\b\n\u0012\u0004\b\b(\u000b\u0012\u0015\u0012\u0013\u0018\u00010\u0006¢\u0006\f\b\t\u0012\b\b\n\u0012\u0004\b\b(\f\u0012\u0004\u0012\u00020\r0\b8\u0006X\u0087\u0004¢\u0006\u0002\n\u0000R\u001e\u0010\u0004\u001a\u0010\u0012\u0004\u0012\u00028\u0000\u0012\u0006\u0012\u0004\u0018\u00010\u00060\u00058\u0006X\u0087\u0004¢\u0006\u0002\n\u0000R\u0014\u0010\u0003\u001a\b\u0012\u0004\u0012\u00028\u00000\u0002X\u0082\u0004¢\u0006\u0002\n\u0000\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u0014"}, d2 = {"Lkotlinx/coroutines/flow/DistinctFlowImpl;", "T", "Lkotlinx/coroutines/flow/Flow;", "upstream", "keySelector", "Lkotlin/Function1;", "", "areEquivalent", "Lkotlin/Function2;", "Lkotlin/ParameterName;", "name", "old", "new", "", "(Lkotlinx/coroutines/flow/Flow;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function2;)V", "collect", "", "collector", "Lkotlinx/coroutines/flow/FlowCollector;", "(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
final class DistinctFlowImpl<T> implements Flow<T> {
|
||||
public final Function2<Object, Object, Boolean> areEquivalent;
|
||||
public final Function1<T, Object> keySelector;
|
||||
private final Flow<T> upstream;
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public DistinctFlowImpl(Flow<? extends T> flow, Function1<? super T, ? extends Object> function1, Function2<Object, Object, Boolean> function2) {
|
||||
this.upstream = flow;
|
||||
this.keySelector = function1;
|
||||
this.areEquivalent = function2;
|
||||
}
|
||||
|
||||
@Override // kotlinx.coroutines.flow.Flow
|
||||
public Object collect(FlowCollector<? super T> flowCollector, Continuation<? super Unit> continuation) {
|
||||
Ref.ObjectRef objectRef = new Ref.ObjectRef();
|
||||
objectRef.element = (T) NullSurrogateKt.NULL;
|
||||
Object collect = this.upstream.collect(new DistinctFlowImpl$collect$2(this, objectRef, flowCollector), continuation);
|
||||
return collect == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? collect : Unit.INSTANCE;
|
||||
}
|
||||
}
|
20
02-Easy5/E5/sources/kotlinx/coroutines/flow/EmptyFlow.java
Normal file
20
02-Easy5/E5/sources/kotlinx/coroutines/flow/EmptyFlow.java
Normal file
@ -0,0 +1,20 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
|
||||
/* compiled from: Builders.kt */
|
||||
@Metadata(d1 = {"\u0000\u001e\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0001\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\bÂ\u0002\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0003J\u001f\u0010\u0004\u001a\u00020\u00052\f\u0010\u0006\u001a\b\u0012\u0004\u0012\u00020\u00020\u0007H\u0096@ø\u0001\u0000¢\u0006\u0002\u0010\b\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\t"}, d2 = {"Lkotlinx/coroutines/flow/EmptyFlow;", "Lkotlinx/coroutines/flow/Flow;", "", "()V", "collect", "", "collector", "Lkotlinx/coroutines/flow/FlowCollector;", "(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
final class EmptyFlow implements Flow {
|
||||
public static final EmptyFlow INSTANCE = new EmptyFlow();
|
||||
|
||||
private EmptyFlow() {
|
||||
}
|
||||
|
||||
@Override // kotlinx.coroutines.flow.Flow
|
||||
public Object collect(FlowCollector<?> flowCollector, Continuation<? super Unit> continuation) {
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
12
02-Easy5/E5/sources/kotlinx/coroutines/flow/Flow.java
Normal file
12
02-Easy5/E5/sources/kotlinx/coroutines/flow/Flow.java
Normal file
@ -0,0 +1,12 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
|
||||
/* compiled from: Flow.kt */
|
||||
@Metadata(d1 = {"\u0000\u001a\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\bf\u0018\u0000*\u0006\b\u0000\u0010\u0001 \u00012\u00020\u0002J\u001f\u0010\u0003\u001a\u00020\u00042\f\u0010\u0005\u001a\b\u0012\u0004\u0012\u00028\u00000\u0006H¦@ø\u0001\u0000¢\u0006\u0002\u0010\u0007\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\b"}, d2 = {"Lkotlinx/coroutines/flow/Flow;", "T", "", "collect", "", "collector", "Lkotlinx/coroutines/flow/FlowCollector;", "(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public interface Flow<T> {
|
||||
Object collect(FlowCollector<? super T> flowCollector, Continuation<? super Unit> continuation);
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
|
||||
/* compiled from: FlowCollector.kt */
|
||||
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0003\bæ\u0080\u0001\u0018\u0000*\u0006\b\u0000\u0010\u0001 \u00002\u00020\u0002J\u0019\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00028\u0000H¦@ø\u0001\u0000¢\u0006\u0002\u0010\u0006\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u0007"}, d2 = {"Lkotlinx/coroutines/flow/FlowCollector;", "T", "", "emit", "", "value", "(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public interface FlowCollector<T> {
|
||||
Object emit(T t, Continuation<? super Unit> continuation);
|
||||
}
|
663
02-Easy5/E5/sources/kotlinx/coroutines/flow/FlowKt.java
Normal file
663
02-Easy5/E5/sources/kotlinx/coroutines/flow/FlowKt.java
Normal file
@ -0,0 +1,663 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import kotlin.Deprecated;
|
||||
import kotlin.DeprecationLevel;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.ReplaceWith;
|
||||
import kotlin.Unit;
|
||||
import kotlin.collections.IndexedValue;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.CoroutineContext;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.functions.Function3;
|
||||
import kotlin.jvm.functions.Function4;
|
||||
import kotlin.jvm.functions.Function5;
|
||||
import kotlin.jvm.functions.Function6;
|
||||
import kotlin.jvm.functions.Function7;
|
||||
import kotlin.ranges.IntRange;
|
||||
import kotlin.ranges.LongRange;
|
||||
import kotlin.reflect.KClass;
|
||||
import kotlin.sequences.Sequence;
|
||||
import kotlin.time.Duration;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
import kotlinx.coroutines.Job;
|
||||
import kotlinx.coroutines.channels.BroadcastChannel;
|
||||
import kotlinx.coroutines.channels.BufferOverflow;
|
||||
import kotlinx.coroutines.channels.ProducerScope;
|
||||
import kotlinx.coroutines.channels.ReceiveChannel;
|
||||
|
||||
@Metadata(d1 = {"kotlinx/coroutines/flow/FlowKt__BuildersKt", "kotlinx/coroutines/flow/FlowKt__ChannelsKt", "kotlinx/coroutines/flow/FlowKt__CollectKt", "kotlinx/coroutines/flow/FlowKt__CollectionKt", "kotlinx/coroutines/flow/FlowKt__ContextKt", "kotlinx/coroutines/flow/FlowKt__CountKt", "kotlinx/coroutines/flow/FlowKt__DelayKt", "kotlinx/coroutines/flow/FlowKt__DistinctKt", "kotlinx/coroutines/flow/FlowKt__EmittersKt", "kotlinx/coroutines/flow/FlowKt__ErrorsKt", "kotlinx/coroutines/flow/FlowKt__LimitKt", "kotlinx/coroutines/flow/FlowKt__MergeKt", "kotlinx/coroutines/flow/FlowKt__MigrationKt", "kotlinx/coroutines/flow/FlowKt__ReduceKt", "kotlinx/coroutines/flow/FlowKt__ShareKt", "kotlinx/coroutines/flow/FlowKt__TransformKt", "kotlinx/coroutines/flow/FlowKt__ZipKt"}, k = 4, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class FlowKt {
|
||||
public static final String DEFAULT_CONCURRENCY_PROPERTY_NAME = "kotlinx.coroutines.flow.defaultConcurrency";
|
||||
|
||||
public static final <T> Flow<T> asFlow(Iterable<? extends T> iterable) {
|
||||
return FlowKt__BuildersKt.asFlow(iterable);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> asFlow(Iterator<? extends T> it) {
|
||||
return FlowKt__BuildersKt.asFlow(it);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> asFlow(Function0<? extends T> function0) {
|
||||
return FlowKt__BuildersKt.asFlow(function0);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> asFlow(Function1<? super Continuation<? super T>, ? extends Object> function1) {
|
||||
return FlowKt__BuildersKt.asFlow(function1);
|
||||
}
|
||||
|
||||
public static final Flow<Integer> asFlow(IntRange intRange) {
|
||||
return FlowKt__BuildersKt.asFlow(intRange);
|
||||
}
|
||||
|
||||
public static final Flow<Long> asFlow(LongRange longRange) {
|
||||
return FlowKt__BuildersKt.asFlow(longRange);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> asFlow(Sequence<? extends T> sequence) {
|
||||
return FlowKt__BuildersKt.asFlow(sequence);
|
||||
}
|
||||
|
||||
@Deprecated(level = DeprecationLevel.ERROR, message = "'BroadcastChannel' is obsolete and all corresponding operators are deprecated in the favour of StateFlow and SharedFlow")
|
||||
public static final <T> Flow<T> asFlow(BroadcastChannel<T> broadcastChannel) {
|
||||
return FlowKt__ChannelsKt.asFlow(broadcastChannel);
|
||||
}
|
||||
|
||||
public static final Flow<Integer> asFlow(int[] iArr) {
|
||||
return FlowKt__BuildersKt.asFlow(iArr);
|
||||
}
|
||||
|
||||
public static final Flow<Long> asFlow(long[] jArr) {
|
||||
return FlowKt__BuildersKt.asFlow(jArr);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> asFlow(T[] tArr) {
|
||||
return FlowKt__BuildersKt.asFlow(tArr);
|
||||
}
|
||||
|
||||
public static final <T> SharedFlow<T> asSharedFlow(MutableSharedFlow<T> mutableSharedFlow) {
|
||||
return FlowKt__ShareKt.asSharedFlow(mutableSharedFlow);
|
||||
}
|
||||
|
||||
public static final <T> StateFlow<T> asStateFlow(MutableStateFlow<T> mutableStateFlow) {
|
||||
return FlowKt__ShareKt.asStateFlow(mutableStateFlow);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> buffer(Flow<? extends T> flow, int i, BufferOverflow bufferOverflow) {
|
||||
return FlowKt__ContextKt.buffer(flow, i, bufferOverflow);
|
||||
}
|
||||
|
||||
@Deprecated(level = DeprecationLevel.ERROR, message = "Flow analogue of 'cache()' is 'shareIn' with unlimited replay and 'started = SharingStared.Lazily' argument'", replaceWith = @ReplaceWith(expression = "this.shareIn(scope, Int.MAX_VALUE, started = SharingStared.Lazily)", imports = {}))
|
||||
public static final <T> Flow<T> cache(Flow<? extends T> flow) {
|
||||
return FlowKt__MigrationKt.cache(flow);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> callbackFlow(Function2<? super ProducerScope<? super T>, ? super Continuation<? super Unit>, ? extends Object> function2) {
|
||||
return FlowKt__BuildersKt.callbackFlow(function2);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> cancellable(Flow<? extends T> flow) {
|
||||
return FlowKt__ContextKt.cancellable(flow);
|
||||
}
|
||||
|
||||
/* renamed from: catch, reason: not valid java name */
|
||||
public static final <T> Flow<T> m1881catch(Flow<? extends T> flow, Function3<? super FlowCollector<? super T>, ? super Throwable, ? super Continuation<? super Unit>, ? extends Object> function3) {
|
||||
return FlowKt__ErrorsKt.m1892catch(flow, function3);
|
||||
}
|
||||
|
||||
public static final <T> Object catchImpl(Flow<? extends T> flow, FlowCollector<? super T> flowCollector, Continuation<? super Throwable> continuation) {
|
||||
return FlowKt__ErrorsKt.catchImpl(flow, flowCollector, continuation);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> channelFlow(Function2<? super ProducerScope<? super T>, ? super Continuation<? super Unit>, ? extends Object> function2) {
|
||||
return FlowKt__BuildersKt.channelFlow(function2);
|
||||
}
|
||||
|
||||
public static final Object collect(Flow<?> flow, Continuation<? super Unit> continuation) {
|
||||
return FlowKt__CollectKt.collect(flow, continuation);
|
||||
}
|
||||
|
||||
public static final <T> Object collectIndexed(Flow<? extends T> flow, Function3<? super Integer, ? super T, ? super Continuation<? super Unit>, ? extends Object> function3, Continuation<? super Unit> continuation) {
|
||||
return FlowKt__CollectKt.collectIndexed(flow, function3, continuation);
|
||||
}
|
||||
|
||||
public static final <T> Object collectLatest(Flow<? extends T> flow, Function2<? super T, ? super Continuation<? super Unit>, ? extends Object> function2, Continuation<? super Unit> continuation) {
|
||||
return FlowKt__CollectKt.collectLatest(flow, function2, continuation);
|
||||
}
|
||||
|
||||
public static final <T> Object collectWhile(Flow<? extends T> flow, Function2<? super T, ? super Continuation<? super Boolean>, ? extends Object> function2, Continuation<? super Unit> continuation) {
|
||||
return FlowKt__LimitKt.collectWhile(flow, function2, continuation);
|
||||
}
|
||||
|
||||
public static final <T1, T2, R> Flow<R> combine(Flow<? extends T1> flow, Flow<? extends T2> flow2, Function3<? super T1, ? super T2, ? super Continuation<? super R>, ? extends Object> function3) {
|
||||
return FlowKt__ZipKt.combine(flow, flow2, function3);
|
||||
}
|
||||
|
||||
public static final <T1, T2, T3, R> Flow<R> combine(Flow<? extends T1> flow, Flow<? extends T2> flow2, Flow<? extends T3> flow3, Function4<? super T1, ? super T2, ? super T3, ? super Continuation<? super R>, ? extends Object> function4) {
|
||||
return FlowKt__ZipKt.combine(flow, flow2, flow3, function4);
|
||||
}
|
||||
|
||||
public static final <T1, T2, T3, T4, R> Flow<R> combine(Flow<? extends T1> flow, Flow<? extends T2> flow2, Flow<? extends T3> flow3, Flow<? extends T4> flow4, Function5<? super T1, ? super T2, ? super T3, ? super T4, ? super Continuation<? super R>, ? extends Object> function5) {
|
||||
return FlowKt__ZipKt.combine(flow, flow2, flow3, flow4, function5);
|
||||
}
|
||||
|
||||
public static final <T1, T2, T3, T4, T5, R> Flow<R> combine(Flow<? extends T1> flow, Flow<? extends T2> flow2, Flow<? extends T3> flow3, Flow<? extends T4> flow4, Flow<? extends T5> flow5, Function6<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super Continuation<? super R>, ? extends Object> function6) {
|
||||
return FlowKt__ZipKt.combine(flow, flow2, flow3, flow4, flow5, function6);
|
||||
}
|
||||
|
||||
@Deprecated(level = DeprecationLevel.ERROR, message = "Flow analogue of 'combineLatest' is 'combine'", replaceWith = @ReplaceWith(expression = "this.combine(other, transform)", imports = {}))
|
||||
public static final <T1, T2, R> Flow<R> combineLatest(Flow<? extends T1> flow, Flow<? extends T2> flow2, Function3<? super T1, ? super T2, ? super Continuation<? super R>, ? extends Object> function3) {
|
||||
return FlowKt__MigrationKt.combineLatest(flow, flow2, function3);
|
||||
}
|
||||
|
||||
@Deprecated(level = DeprecationLevel.ERROR, message = "Flow analogue of 'combineLatest' is 'combine'", replaceWith = @ReplaceWith(expression = "combine(this, other, other2, transform)", imports = {}))
|
||||
public static final <T1, T2, T3, R> Flow<R> combineLatest(Flow<? extends T1> flow, Flow<? extends T2> flow2, Flow<? extends T3> flow3, Function4<? super T1, ? super T2, ? super T3, ? super Continuation<? super R>, ? extends Object> function4) {
|
||||
return FlowKt__MigrationKt.combineLatest(flow, flow2, flow3, function4);
|
||||
}
|
||||
|
||||
@Deprecated(level = DeprecationLevel.ERROR, message = "Flow analogue of 'combineLatest' is 'combine'", replaceWith = @ReplaceWith(expression = "combine(this, other, other2, other3, transform)", imports = {}))
|
||||
public static final <T1, T2, T3, T4, R> Flow<R> combineLatest(Flow<? extends T1> flow, Flow<? extends T2> flow2, Flow<? extends T3> flow3, Flow<? extends T4> flow4, Function5<? super T1, ? super T2, ? super T3, ? super T4, ? super Continuation<? super R>, ? extends Object> function5) {
|
||||
return FlowKt__MigrationKt.combineLatest(flow, flow2, flow3, flow4, function5);
|
||||
}
|
||||
|
||||
@Deprecated(level = DeprecationLevel.ERROR, message = "Flow analogue of 'combineLatest' is 'combine'", replaceWith = @ReplaceWith(expression = "combine(this, other, other2, other3, transform)", imports = {}))
|
||||
public static final <T1, T2, T3, T4, T5, R> Flow<R> combineLatest(Flow<? extends T1> flow, Flow<? extends T2> flow2, Flow<? extends T3> flow3, Flow<? extends T4> flow4, Flow<? extends T5> flow5, Function6<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super Continuation<? super R>, ? extends Object> function6) {
|
||||
return FlowKt__MigrationKt.combineLatest(flow, flow2, flow3, flow4, flow5, function6);
|
||||
}
|
||||
|
||||
public static final <T1, T2, R> Flow<R> combineTransform(Flow<? extends T1> flow, Flow<? extends T2> flow2, Function4<? super FlowCollector<? super R>, ? super T1, ? super T2, ? super Continuation<? super Unit>, ? extends Object> function4) {
|
||||
return FlowKt__ZipKt.combineTransform(flow, flow2, function4);
|
||||
}
|
||||
|
||||
public static final <T1, T2, T3, R> Flow<R> combineTransform(Flow<? extends T1> flow, Flow<? extends T2> flow2, Flow<? extends T3> flow3, Function5<? super FlowCollector<? super R>, ? super T1, ? super T2, ? super T3, ? super Continuation<? super Unit>, ? extends Object> function5) {
|
||||
return FlowKt__ZipKt.combineTransform(flow, flow2, flow3, function5);
|
||||
}
|
||||
|
||||
public static final <T1, T2, T3, T4, R> Flow<R> combineTransform(Flow<? extends T1> flow, Flow<? extends T2> flow2, Flow<? extends T3> flow3, Flow<? extends T4> flow4, Function6<? super FlowCollector<? super R>, ? super T1, ? super T2, ? super T3, ? super T4, ? super Continuation<? super Unit>, ? extends Object> function6) {
|
||||
return FlowKt__ZipKt.combineTransform(flow, flow2, flow3, flow4, function6);
|
||||
}
|
||||
|
||||
public static final <T1, T2, T3, T4, T5, R> Flow<R> combineTransform(Flow<? extends T1> flow, Flow<? extends T2> flow2, Flow<? extends T3> flow3, Flow<? extends T4> flow4, Flow<? extends T5> flow5, Function7<? super FlowCollector<? super R>, ? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super Continuation<? super Unit>, ? extends Object> function7) {
|
||||
return FlowKt__ZipKt.combineTransform(flow, flow2, flow3, flow4, flow5, function7);
|
||||
}
|
||||
|
||||
@Deprecated(level = DeprecationLevel.ERROR, message = "Flow analogue of 'compose' is 'let'", replaceWith = @ReplaceWith(expression = "let(transformer)", imports = {}))
|
||||
public static final <T, R> Flow<R> compose(Flow<? extends T> flow, Function1<? super Flow<? extends T>, ? extends Flow<? extends R>> function1) {
|
||||
return FlowKt__MigrationKt.compose(flow, function1);
|
||||
}
|
||||
|
||||
@Deprecated(level = DeprecationLevel.ERROR, message = "Flow analogue of 'concatMap' is 'flatMapConcat'", replaceWith = @ReplaceWith(expression = "flatMapConcat(mapper)", imports = {}))
|
||||
public static final <T, R> Flow<R> concatMap(Flow<? extends T> flow, Function1<? super T, ? extends Flow<? extends R>> function1) {
|
||||
return FlowKt__MigrationKt.concatMap(flow, function1);
|
||||
}
|
||||
|
||||
@Deprecated(level = DeprecationLevel.ERROR, message = "Flow analogue of 'concatWith' is 'onCompletion'. Use 'onCompletion { emit(value) }'", replaceWith = @ReplaceWith(expression = "onCompletion { emit(value) }", imports = {}))
|
||||
public static final <T> Flow<T> concatWith(Flow<? extends T> flow, T t) {
|
||||
return FlowKt__MigrationKt.concatWith(flow, t);
|
||||
}
|
||||
|
||||
@Deprecated(level = DeprecationLevel.ERROR, message = "Flow analogue of 'concatWith' is 'onCompletion'. Use 'onCompletion { if (it == null) emitAll(other) }'", replaceWith = @ReplaceWith(expression = "onCompletion { if (it == null) emitAll(other) }", imports = {}))
|
||||
public static final <T> Flow<T> concatWith(Flow<? extends T> flow, Flow<? extends T> flow2) {
|
||||
return FlowKt__MigrationKt.concatWith((Flow) flow, (Flow) flow2);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> conflate(Flow<? extends T> flow) {
|
||||
return FlowKt__ContextKt.conflate(flow);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> consumeAsFlow(ReceiveChannel<? extends T> receiveChannel) {
|
||||
return FlowKt__ChannelsKt.consumeAsFlow(receiveChannel);
|
||||
}
|
||||
|
||||
public static final <T> Object count(Flow<? extends T> flow, Continuation<? super Integer> continuation) {
|
||||
return FlowKt__CountKt.count(flow, continuation);
|
||||
}
|
||||
|
||||
public static final <T> Object count(Flow<? extends T> flow, Function2<? super T, ? super Continuation<? super Boolean>, ? extends Object> function2, Continuation<? super Integer> continuation) {
|
||||
return FlowKt__CountKt.count(flow, function2, continuation);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> debounce(Flow<? extends T> flow, long j) {
|
||||
return FlowKt__DelayKt.debounce(flow, j);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> debounce(Flow<? extends T> flow, Function1<? super T, Long> function1) {
|
||||
return FlowKt__DelayKt.debounce(flow, function1);
|
||||
}
|
||||
|
||||
/* renamed from: debounce-HG0u8IE, reason: not valid java name */
|
||||
public static final <T> Flow<T> m1882debounceHG0u8IE(Flow<? extends T> flow, long j) {
|
||||
return FlowKt__DelayKt.m1885debounceHG0u8IE(flow, j);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> debounceDuration(Flow<? extends T> flow, Function1<? super T, Duration> function1) {
|
||||
return FlowKt__DelayKt.debounceDuration(flow, function1);
|
||||
}
|
||||
|
||||
@Deprecated(level = DeprecationLevel.ERROR, message = "Use 'onEach { delay(timeMillis) }'", replaceWith = @ReplaceWith(expression = "onEach { delay(timeMillis) }", imports = {}))
|
||||
public static final <T> Flow<T> delayEach(Flow<? extends T> flow, long j) {
|
||||
return FlowKt__MigrationKt.delayEach(flow, j);
|
||||
}
|
||||
|
||||
@Deprecated(level = DeprecationLevel.ERROR, message = "Use 'onStart { delay(timeMillis) }'", replaceWith = @ReplaceWith(expression = "onStart { delay(timeMillis) }", imports = {}))
|
||||
public static final <T> Flow<T> delayFlow(Flow<? extends T> flow, long j) {
|
||||
return FlowKt__MigrationKt.delayFlow(flow, j);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> distinctUntilChanged(Flow<? extends T> flow) {
|
||||
return FlowKt__DistinctKt.distinctUntilChanged(flow);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> distinctUntilChanged(Flow<? extends T> flow, Function2<? super T, ? super T, Boolean> function2) {
|
||||
return FlowKt__DistinctKt.distinctUntilChanged(flow, function2);
|
||||
}
|
||||
|
||||
public static final <T, K> Flow<T> distinctUntilChangedBy(Flow<? extends T> flow, Function1<? super T, ? extends K> function1) {
|
||||
return FlowKt__DistinctKt.distinctUntilChangedBy(flow, function1);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> drop(Flow<? extends T> flow, int i) {
|
||||
return FlowKt__LimitKt.drop(flow, i);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> dropWhile(Flow<? extends T> flow, Function2<? super T, ? super Continuation<? super Boolean>, ? extends Object> function2) {
|
||||
return FlowKt__LimitKt.dropWhile(flow, function2);
|
||||
}
|
||||
|
||||
public static final <T> Object emitAll(FlowCollector<? super T> flowCollector, ReceiveChannel<? extends T> receiveChannel, Continuation<? super Unit> continuation) {
|
||||
return FlowKt__ChannelsKt.emitAll(flowCollector, receiveChannel, continuation);
|
||||
}
|
||||
|
||||
public static final <T> Object emitAll(FlowCollector<? super T> flowCollector, Flow<? extends T> flow, Continuation<? super Unit> continuation) {
|
||||
return FlowKt__CollectKt.emitAll(flowCollector, flow, continuation);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> emptyFlow() {
|
||||
return FlowKt__BuildersKt.emptyFlow();
|
||||
}
|
||||
|
||||
public static final void ensureActive(FlowCollector<?> flowCollector) {
|
||||
FlowKt__EmittersKt.ensureActive(flowCollector);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> filter(Flow<? extends T> flow, Function2<? super T, ? super Continuation<? super Boolean>, ? extends Object> function2) {
|
||||
return FlowKt__TransformKt.filter(flow, function2);
|
||||
}
|
||||
|
||||
public static final <R> Flow<R> filterIsInstance(Flow<?> flow, KClass<R> kClass) {
|
||||
return FlowKt__TransformKt.filterIsInstance(flow, kClass);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> filterNot(Flow<? extends T> flow, Function2<? super T, ? super Continuation<? super Boolean>, ? extends Object> function2) {
|
||||
return FlowKt__TransformKt.filterNot(flow, function2);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> filterNotNull(Flow<? extends T> flow) {
|
||||
return FlowKt__TransformKt.filterNotNull(flow);
|
||||
}
|
||||
|
||||
public static final <T> Object first(Flow<? extends T> flow, Continuation<? super T> continuation) {
|
||||
return FlowKt__ReduceKt.first(flow, continuation);
|
||||
}
|
||||
|
||||
public static final <T> Object first(Flow<? extends T> flow, Function2<? super T, ? super Continuation<? super Boolean>, ? extends Object> function2, Continuation<? super T> continuation) {
|
||||
return FlowKt__ReduceKt.first(flow, function2, continuation);
|
||||
}
|
||||
|
||||
public static final <T> Object firstOrNull(Flow<? extends T> flow, Continuation<? super T> continuation) {
|
||||
return FlowKt__ReduceKt.firstOrNull(flow, continuation);
|
||||
}
|
||||
|
||||
public static final <T> Object firstOrNull(Flow<? extends T> flow, Function2<? super T, ? super Continuation<? super Boolean>, ? extends Object> function2, Continuation<? super T> continuation) {
|
||||
return FlowKt__ReduceKt.firstOrNull(flow, function2, continuation);
|
||||
}
|
||||
|
||||
public static final ReceiveChannel<Unit> fixedPeriodTicker(CoroutineScope coroutineScope, long j, long j2) {
|
||||
return FlowKt__DelayKt.fixedPeriodTicker(coroutineScope, j, j2);
|
||||
}
|
||||
|
||||
@Deprecated(level = DeprecationLevel.ERROR, message = "Flow analogue is 'flatMapConcat'", replaceWith = @ReplaceWith(expression = "flatMapConcat(mapper)", imports = {}))
|
||||
public static final <T, R> Flow<R> flatMap(Flow<? extends T> flow, Function2<? super T, ? super Continuation<? super Flow<? extends R>>, ? extends Object> function2) {
|
||||
return FlowKt__MigrationKt.flatMap(flow, function2);
|
||||
}
|
||||
|
||||
public static final <T, R> Flow<R> flatMapConcat(Flow<? extends T> flow, Function2<? super T, ? super Continuation<? super Flow<? extends R>>, ? extends Object> function2) {
|
||||
return FlowKt__MergeKt.flatMapConcat(flow, function2);
|
||||
}
|
||||
|
||||
public static final <T, R> Flow<R> flatMapLatest(Flow<? extends T> flow, Function2<? super T, ? super Continuation<? super Flow<? extends R>>, ? extends Object> function2) {
|
||||
return FlowKt__MergeKt.flatMapLatest(flow, function2);
|
||||
}
|
||||
|
||||
public static final <T, R> Flow<R> flatMapMerge(Flow<? extends T> flow, int i, Function2<? super T, ? super Continuation<? super Flow<? extends R>>, ? extends Object> function2) {
|
||||
return FlowKt__MergeKt.flatMapMerge(flow, i, function2);
|
||||
}
|
||||
|
||||
@Deprecated(level = DeprecationLevel.ERROR, message = "Flow analogue of 'flatten' is 'flattenConcat'", replaceWith = @ReplaceWith(expression = "flattenConcat()", imports = {}))
|
||||
public static final <T> Flow<T> flatten(Flow<? extends Flow<? extends T>> flow) {
|
||||
return FlowKt__MigrationKt.flatten(flow);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> flattenConcat(Flow<? extends Flow<? extends T>> flow) {
|
||||
return FlowKt__MergeKt.flattenConcat(flow);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> flattenMerge(Flow<? extends Flow<? extends T>> flow, int i) {
|
||||
return FlowKt__MergeKt.flattenMerge(flow, i);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> flow(Function2<? super FlowCollector<? super T>, ? super Continuation<? super Unit>, ? extends Object> function2) {
|
||||
return FlowKt__BuildersKt.flow(function2);
|
||||
}
|
||||
|
||||
public static final <T1, T2, R> Flow<R> flowCombine(Flow<? extends T1> flow, Flow<? extends T2> flow2, Function3<? super T1, ? super T2, ? super Continuation<? super R>, ? extends Object> function3) {
|
||||
return FlowKt__ZipKt.flowCombine(flow, flow2, function3);
|
||||
}
|
||||
|
||||
public static final <T1, T2, R> Flow<R> flowCombineTransform(Flow<? extends T1> flow, Flow<? extends T2> flow2, Function4<? super FlowCollector<? super R>, ? super T1, ? super T2, ? super Continuation<? super Unit>, ? extends Object> function4) {
|
||||
return FlowKt__ZipKt.flowCombineTransform(flow, flow2, function4);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> flowOf(T t) {
|
||||
return FlowKt__BuildersKt.flowOf(t);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> flowOf(T... tArr) {
|
||||
return FlowKt__BuildersKt.flowOf((Object[]) tArr);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> flowOn(Flow<? extends T> flow, CoroutineContext coroutineContext) {
|
||||
return FlowKt__ContextKt.flowOn(flow, coroutineContext);
|
||||
}
|
||||
|
||||
public static final <T, R> Object fold(Flow<? extends T> flow, R r, Function3<? super R, ? super T, ? super Continuation<? super R>, ? extends Object> function3, Continuation<? super R> continuation) {
|
||||
return FlowKt__ReduceKt.fold(flow, r, function3, continuation);
|
||||
}
|
||||
|
||||
@Deprecated(level = DeprecationLevel.ERROR, message = "Flow analogue of 'forEach' is 'collect'", replaceWith = @ReplaceWith(expression = "collect(action)", imports = {}))
|
||||
public static final <T> void forEach(Flow<? extends T> flow, Function2<? super T, ? super Continuation<? super Unit>, ? extends Object> function2) {
|
||||
FlowKt__MigrationKt.forEach(flow, function2);
|
||||
}
|
||||
|
||||
public static final int getDEFAULT_CONCURRENCY() {
|
||||
return FlowKt__MergeKt.getDEFAULT_CONCURRENCY();
|
||||
}
|
||||
|
||||
public static final <T> Object last(Flow<? extends T> flow, Continuation<? super T> continuation) {
|
||||
return FlowKt__ReduceKt.last(flow, continuation);
|
||||
}
|
||||
|
||||
public static final <T> Object lastOrNull(Flow<? extends T> flow, Continuation<? super T> continuation) {
|
||||
return FlowKt__ReduceKt.lastOrNull(flow, continuation);
|
||||
}
|
||||
|
||||
public static final <T> Job launchIn(Flow<? extends T> flow, CoroutineScope coroutineScope) {
|
||||
return FlowKt__CollectKt.launchIn(flow, coroutineScope);
|
||||
}
|
||||
|
||||
public static final <T, R> Flow<R> map(Flow<? extends T> flow, Function2<? super T, ? super Continuation<? super R>, ? extends Object> function2) {
|
||||
return FlowKt__TransformKt.map(flow, function2);
|
||||
}
|
||||
|
||||
public static final <T, R> Flow<R> mapLatest(Flow<? extends T> flow, Function2<? super T, ? super Continuation<? super R>, ? extends Object> function2) {
|
||||
return FlowKt__MergeKt.mapLatest(flow, function2);
|
||||
}
|
||||
|
||||
public static final <T, R> Flow<R> mapNotNull(Flow<? extends T> flow, Function2<? super T, ? super Continuation<? super R>, ? extends Object> function2) {
|
||||
return FlowKt__TransformKt.mapNotNull(flow, function2);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> merge(Iterable<? extends Flow<? extends T>> iterable) {
|
||||
return FlowKt__MergeKt.merge(iterable);
|
||||
}
|
||||
|
||||
@Deprecated(level = DeprecationLevel.ERROR, message = "Flow analogue of 'merge' is 'flattenConcat'", replaceWith = @ReplaceWith(expression = "flattenConcat()", imports = {}))
|
||||
public static final <T> Flow<T> merge(Flow<? extends Flow<? extends T>> flow) {
|
||||
return FlowKt__MigrationKt.merge(flow);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> merge(Flow<? extends T>... flowArr) {
|
||||
return FlowKt__MergeKt.merge(flowArr);
|
||||
}
|
||||
|
||||
public static final Void noImpl() {
|
||||
return FlowKt__MigrationKt.noImpl();
|
||||
}
|
||||
|
||||
@Deprecated(level = DeprecationLevel.ERROR, message = "Collect flow in the desired context instead")
|
||||
public static final <T> Flow<T> observeOn(Flow<? extends T> flow, CoroutineContext coroutineContext) {
|
||||
return FlowKt__MigrationKt.observeOn(flow, coroutineContext);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> onCompletion(Flow<? extends T> flow, Function3<? super FlowCollector<? super T>, ? super Throwable, ? super Continuation<? super Unit>, ? extends Object> function3) {
|
||||
return FlowKt__EmittersKt.onCompletion(flow, function3);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> onEach(Flow<? extends T> flow, Function2<? super T, ? super Continuation<? super Unit>, ? extends Object> function2) {
|
||||
return FlowKt__TransformKt.onEach(flow, function2);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> onEmpty(Flow<? extends T> flow, Function2<? super FlowCollector<? super T>, ? super Continuation<? super Unit>, ? extends Object> function2) {
|
||||
return FlowKt__EmittersKt.onEmpty(flow, function2);
|
||||
}
|
||||
|
||||
@Deprecated(level = DeprecationLevel.ERROR, message = "Flow analogue of 'onErrorXxx' is 'catch'. Use 'catch { emitAll(fallback) }'", replaceWith = @ReplaceWith(expression = "catch { emitAll(fallback) }", imports = {}))
|
||||
public static final <T> Flow<T> onErrorResume(Flow<? extends T> flow, Flow<? extends T> flow2) {
|
||||
return FlowKt__MigrationKt.onErrorResume(flow, flow2);
|
||||
}
|
||||
|
||||
@Deprecated(level = DeprecationLevel.ERROR, message = "Flow analogue of 'onErrorXxx' is 'catch'. Use 'catch { emitAll(fallback) }'", replaceWith = @ReplaceWith(expression = "catch { emitAll(fallback) }", imports = {}))
|
||||
public static final <T> Flow<T> onErrorResumeNext(Flow<? extends T> flow, Flow<? extends T> flow2) {
|
||||
return FlowKt__MigrationKt.onErrorResumeNext(flow, flow2);
|
||||
}
|
||||
|
||||
@Deprecated(level = DeprecationLevel.ERROR, message = "Flow analogue of 'onErrorXxx' is 'catch'. Use 'catch { emit(fallback) }'", replaceWith = @ReplaceWith(expression = "catch { emit(fallback) }", imports = {}))
|
||||
public static final <T> Flow<T> onErrorReturn(Flow<? extends T> flow, T t) {
|
||||
return FlowKt__MigrationKt.onErrorReturn(flow, t);
|
||||
}
|
||||
|
||||
@Deprecated(level = DeprecationLevel.ERROR, message = "Flow analogue of 'onErrorXxx' is 'catch'. Use 'catch { e -> if (predicate(e)) emit(fallback) else throw e }'", replaceWith = @ReplaceWith(expression = "catch { e -> if (predicate(e)) emit(fallback) else throw e }", imports = {}))
|
||||
public static final <T> Flow<T> onErrorReturn(Flow<? extends T> flow, T t, Function1<? super Throwable, Boolean> function1) {
|
||||
return FlowKt__MigrationKt.onErrorReturn(flow, t, function1);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> onStart(Flow<? extends T> flow, Function2<? super FlowCollector<? super T>, ? super Continuation<? super Unit>, ? extends Object> function2) {
|
||||
return FlowKt__EmittersKt.onStart(flow, function2);
|
||||
}
|
||||
|
||||
public static final <T> SharedFlow<T> onSubscription(SharedFlow<? extends T> sharedFlow, Function2<? super FlowCollector<? super T>, ? super Continuation<? super Unit>, ? extends Object> function2) {
|
||||
return FlowKt__ShareKt.onSubscription(sharedFlow, function2);
|
||||
}
|
||||
|
||||
public static final <T> ReceiveChannel<T> produceIn(Flow<? extends T> flow, CoroutineScope coroutineScope) {
|
||||
return FlowKt__ChannelsKt.produceIn(flow, coroutineScope);
|
||||
}
|
||||
|
||||
@Deprecated(level = DeprecationLevel.ERROR, message = "Flow analogue of 'publish()' is 'shareIn'. \npublish().connect() is the default strategy (no extra call is needed), \npublish().autoConnect() translates to 'started = SharingStared.Lazily' argument, \npublish().refCount() translates to 'started = SharingStared.WhileSubscribed()' argument.", replaceWith = @ReplaceWith(expression = "this.shareIn(scope, 0)", imports = {}))
|
||||
public static final <T> Flow<T> publish(Flow<? extends T> flow) {
|
||||
return FlowKt__MigrationKt.publish(flow);
|
||||
}
|
||||
|
||||
@Deprecated(level = DeprecationLevel.ERROR, message = "Flow analogue of 'publish(bufferSize)' is 'buffer' followed by 'shareIn'. \npublish().connect() is the default strategy (no extra call is needed), \npublish().autoConnect() translates to 'started = SharingStared.Lazily' argument, \npublish().refCount() translates to 'started = SharingStared.WhileSubscribed()' argument.", replaceWith = @ReplaceWith(expression = "this.buffer(bufferSize).shareIn(scope, 0)", imports = {}))
|
||||
public static final <T> Flow<T> publish(Flow<? extends T> flow, int i) {
|
||||
return FlowKt__MigrationKt.publish(flow, i);
|
||||
}
|
||||
|
||||
@Deprecated(level = DeprecationLevel.ERROR, message = "Collect flow in the desired context instead")
|
||||
public static final <T> Flow<T> publishOn(Flow<? extends T> flow, CoroutineContext coroutineContext) {
|
||||
return FlowKt__MigrationKt.publishOn(flow, coroutineContext);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> receiveAsFlow(ReceiveChannel<? extends T> receiveChannel) {
|
||||
return FlowKt__ChannelsKt.receiveAsFlow(receiveChannel);
|
||||
}
|
||||
|
||||
public static final <S, T extends S> Object reduce(Flow<? extends T> flow, Function3<? super S, ? super T, ? super Continuation<? super S>, ? extends Object> function3, Continuation<? super S> continuation) {
|
||||
return FlowKt__ReduceKt.reduce(flow, function3, continuation);
|
||||
}
|
||||
|
||||
@Deprecated(level = DeprecationLevel.ERROR, message = "Flow analogue of 'replay()' is 'shareIn' with unlimited replay. \nreplay().connect() is the default strategy (no extra call is needed), \nreplay().autoConnect() translates to 'started = SharingStared.Lazily' argument, \nreplay().refCount() translates to 'started = SharingStared.WhileSubscribed()' argument.", replaceWith = @ReplaceWith(expression = "this.shareIn(scope, Int.MAX_VALUE)", imports = {}))
|
||||
public static final <T> Flow<T> replay(Flow<? extends T> flow) {
|
||||
return FlowKt__MigrationKt.replay(flow);
|
||||
}
|
||||
|
||||
@Deprecated(level = DeprecationLevel.ERROR, message = "Flow analogue of 'replay(bufferSize)' is 'shareIn' with the specified replay parameter. \nreplay().connect() is the default strategy (no extra call is needed), \nreplay().autoConnect() translates to 'started = SharingStared.Lazily' argument, \nreplay().refCount() translates to 'started = SharingStared.WhileSubscribed()' argument.", replaceWith = @ReplaceWith(expression = "this.shareIn(scope, bufferSize)", imports = {}))
|
||||
public static final <T> Flow<T> replay(Flow<? extends T> flow, int i) {
|
||||
return FlowKt__MigrationKt.replay(flow, i);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> retry(Flow<? extends T> flow, long j, Function2<? super Throwable, ? super Continuation<? super Boolean>, ? extends Object> function2) {
|
||||
return FlowKt__ErrorsKt.retry(flow, j, function2);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> retryWhen(Flow<? extends T> flow, Function4<? super FlowCollector<? super T>, ? super Throwable, ? super Long, ? super Continuation<? super Boolean>, ? extends Object> function4) {
|
||||
return FlowKt__ErrorsKt.retryWhen(flow, function4);
|
||||
}
|
||||
|
||||
public static final <T, R> Flow<R> runningFold(Flow<? extends T> flow, R r, Function3<? super R, ? super T, ? super Continuation<? super R>, ? extends Object> function3) {
|
||||
return FlowKt__TransformKt.runningFold(flow, r, function3);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> runningReduce(Flow<? extends T> flow, Function3<? super T, ? super T, ? super Continuation<? super T>, ? extends Object> function3) {
|
||||
return FlowKt__TransformKt.runningReduce(flow, function3);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> sample(Flow<? extends T> flow, long j) {
|
||||
return FlowKt__DelayKt.sample(flow, j);
|
||||
}
|
||||
|
||||
/* renamed from: sample-HG0u8IE, reason: not valid java name */
|
||||
public static final <T> Flow<T> m1883sampleHG0u8IE(Flow<? extends T> flow, long j) {
|
||||
return FlowKt__DelayKt.m1886sampleHG0u8IE(flow, j);
|
||||
}
|
||||
|
||||
public static final <T, R> Flow<R> scan(Flow<? extends T> flow, R r, Function3<? super R, ? super T, ? super Continuation<? super R>, ? extends Object> function3) {
|
||||
return FlowKt__TransformKt.scan(flow, r, function3);
|
||||
}
|
||||
|
||||
@Deprecated(level = DeprecationLevel.ERROR, message = "Flow has less verbose 'scan' shortcut", replaceWith = @ReplaceWith(expression = "scan(initial, operation)", imports = {}))
|
||||
public static final <T, R> Flow<R> scanFold(Flow<? extends T> flow, R r, Function3<? super R, ? super T, ? super Continuation<? super R>, ? extends Object> function3) {
|
||||
return FlowKt__MigrationKt.scanFold(flow, r, function3);
|
||||
}
|
||||
|
||||
@Deprecated(level = DeprecationLevel.ERROR, message = "'scanReduce' was renamed to 'runningReduce' to be consistent with Kotlin standard library", replaceWith = @ReplaceWith(expression = "runningReduce(operation)", imports = {}))
|
||||
public static final <T> Flow<T> scanReduce(Flow<? extends T> flow, Function3<? super T, ? super T, ? super Continuation<? super T>, ? extends Object> function3) {
|
||||
return FlowKt__MigrationKt.scanReduce(flow, function3);
|
||||
}
|
||||
|
||||
public static final <T> SharedFlow<T> shareIn(Flow<? extends T> flow, CoroutineScope coroutineScope, SharingStarted sharingStarted, int i) {
|
||||
return FlowKt__ShareKt.shareIn(flow, coroutineScope, sharingStarted, i);
|
||||
}
|
||||
|
||||
public static final <T> Object single(Flow<? extends T> flow, Continuation<? super T> continuation) {
|
||||
return FlowKt__ReduceKt.single(flow, continuation);
|
||||
}
|
||||
|
||||
public static final <T> Object singleOrNull(Flow<? extends T> flow, Continuation<? super T> continuation) {
|
||||
return FlowKt__ReduceKt.singleOrNull(flow, continuation);
|
||||
}
|
||||
|
||||
@Deprecated(level = DeprecationLevel.ERROR, message = "Flow analogue of 'skip' is 'drop'", replaceWith = @ReplaceWith(expression = "drop(count)", imports = {}))
|
||||
public static final <T> Flow<T> skip(Flow<? extends T> flow, int i) {
|
||||
return FlowKt__MigrationKt.skip(flow, i);
|
||||
}
|
||||
|
||||
@Deprecated(level = DeprecationLevel.ERROR, message = "Flow analogue of 'startWith' is 'onStart'. Use 'onStart { emit(value) }'", replaceWith = @ReplaceWith(expression = "onStart { emit(value) }", imports = {}))
|
||||
public static final <T> Flow<T> startWith(Flow<? extends T> flow, T t) {
|
||||
return FlowKt__MigrationKt.startWith(flow, t);
|
||||
}
|
||||
|
||||
@Deprecated(level = DeprecationLevel.ERROR, message = "Flow analogue of 'startWith' is 'onStart'. Use 'onStart { emitAll(other) }'", replaceWith = @ReplaceWith(expression = "onStart { emitAll(other) }", imports = {}))
|
||||
public static final <T> Flow<T> startWith(Flow<? extends T> flow, Flow<? extends T> flow2) {
|
||||
return FlowKt__MigrationKt.startWith((Flow) flow, (Flow) flow2);
|
||||
}
|
||||
|
||||
public static final <T> Object stateIn(Flow<? extends T> flow, CoroutineScope coroutineScope, Continuation<? super StateFlow<? extends T>> continuation) {
|
||||
return FlowKt__ShareKt.stateIn(flow, coroutineScope, continuation);
|
||||
}
|
||||
|
||||
public static final <T> StateFlow<T> stateIn(Flow<? extends T> flow, CoroutineScope coroutineScope, SharingStarted sharingStarted, T t) {
|
||||
return FlowKt__ShareKt.stateIn(flow, coroutineScope, sharingStarted, t);
|
||||
}
|
||||
|
||||
@Deprecated(level = DeprecationLevel.ERROR, message = "Use 'launchIn' with 'onEach', 'onCompletion' and 'catch' instead")
|
||||
public static final <T> void subscribe(Flow<? extends T> flow) {
|
||||
FlowKt__MigrationKt.subscribe(flow);
|
||||
}
|
||||
|
||||
@Deprecated(level = DeprecationLevel.ERROR, message = "Use 'launchIn' with 'onEach', 'onCompletion' and 'catch' instead")
|
||||
public static final <T> void subscribe(Flow<? extends T> flow, Function2<? super T, ? super Continuation<? super Unit>, ? extends Object> function2) {
|
||||
FlowKt__MigrationKt.subscribe(flow, function2);
|
||||
}
|
||||
|
||||
@Deprecated(level = DeprecationLevel.ERROR, message = "Use 'launchIn' with 'onEach', 'onCompletion' and 'catch' instead")
|
||||
public static final <T> void subscribe(Flow<? extends T> flow, Function2<? super T, ? super Continuation<? super Unit>, ? extends Object> function2, Function2<? super Throwable, ? super Continuation<? super Unit>, ? extends Object> function22) {
|
||||
FlowKt__MigrationKt.subscribe(flow, function2, function22);
|
||||
}
|
||||
|
||||
@Deprecated(level = DeprecationLevel.ERROR, message = "Use 'flowOn' instead")
|
||||
public static final <T> Flow<T> subscribeOn(Flow<? extends T> flow, CoroutineContext coroutineContext) {
|
||||
return FlowKt__MigrationKt.subscribeOn(flow, coroutineContext);
|
||||
}
|
||||
|
||||
@Deprecated(level = DeprecationLevel.ERROR, message = "Flow analogues of 'switchMap' are 'transformLatest', 'flatMapLatest' and 'mapLatest'", replaceWith = @ReplaceWith(expression = "this.flatMapLatest(transform)", imports = {}))
|
||||
public static final <T, R> Flow<R> switchMap(Flow<? extends T> flow, Function2<? super T, ? super Continuation<? super Flow<? extends R>>, ? extends Object> function2) {
|
||||
return FlowKt__MigrationKt.switchMap(flow, function2);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> take(Flow<? extends T> flow, int i) {
|
||||
return FlowKt__LimitKt.take(flow, i);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> takeWhile(Flow<? extends T> flow, Function2<? super T, ? super Continuation<? super Boolean>, ? extends Object> function2) {
|
||||
return FlowKt__LimitKt.takeWhile(flow, function2);
|
||||
}
|
||||
|
||||
/* renamed from: timeout-HG0u8IE, reason: not valid java name */
|
||||
public static final <T> Flow<T> m1884timeoutHG0u8IE(Flow<? extends T> flow, long j) {
|
||||
return FlowKt__DelayKt.m1887timeoutHG0u8IE(flow, j);
|
||||
}
|
||||
|
||||
public static final <T, C extends Collection<? super T>> Object toCollection(Flow<? extends T> flow, C c, Continuation<? super C> continuation) {
|
||||
return FlowKt__CollectionKt.toCollection(flow, c, continuation);
|
||||
}
|
||||
|
||||
public static final <T> Object toList(Flow<? extends T> flow, List<T> list, Continuation<? super List<? extends T>> continuation) {
|
||||
return FlowKt__CollectionKt.toList(flow, list, continuation);
|
||||
}
|
||||
|
||||
public static final <T> Object toSet(Flow<? extends T> flow, Set<T> set, Continuation<? super Set<? extends T>> continuation) {
|
||||
return FlowKt__CollectionKt.toSet(flow, set, continuation);
|
||||
}
|
||||
|
||||
public static final <T, R> Flow<R> transform(Flow<? extends T> flow, Function3<? super FlowCollector<? super R>, ? super T, ? super Continuation<? super Unit>, ? extends Object> function3) {
|
||||
return FlowKt__EmittersKt.transform(flow, function3);
|
||||
}
|
||||
|
||||
public static final <T, R> Flow<R> transformLatest(Flow<? extends T> flow, Function3<? super FlowCollector<? super R>, ? super T, ? super Continuation<? super Unit>, ? extends Object> function3) {
|
||||
return FlowKt__MergeKt.transformLatest(flow, function3);
|
||||
}
|
||||
|
||||
public static final <T, R> Flow<R> transformWhile(Flow<? extends T> flow, Function3<? super FlowCollector<? super R>, ? super T, ? super Continuation<? super Boolean>, ? extends Object> function3) {
|
||||
return FlowKt__LimitKt.transformWhile(flow, function3);
|
||||
}
|
||||
|
||||
public static final <T, R> Flow<R> unsafeTransform(Flow<? extends T> flow, Function3<? super FlowCollector<? super R>, ? super T, ? super Continuation<? super Unit>, ? extends Object> function3) {
|
||||
return FlowKt__EmittersKt.unsafeTransform(flow, function3);
|
||||
}
|
||||
|
||||
public static final <T> Flow<IndexedValue<T>> withIndex(Flow<? extends T> flow) {
|
||||
return FlowKt__TransformKt.withIndex(flow);
|
||||
}
|
||||
|
||||
public static final <T1, T2, R> Flow<R> zip(Flow<? extends T1> flow, Flow<? extends T2> flow2, Function3<? super T1, ? super T2, ? super Continuation<? super R>, ? extends Object> function3) {
|
||||
return FlowKt__ZipKt.zip(flow, flow2, function3);
|
||||
}
|
||||
}
|
@ -0,0 +1,115 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.ranges.LongRange;
|
||||
|
||||
/* compiled from: SafeCollector.common.kt */
|
||||
@Metadata(d1 = {"\u0000\u0019\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u001f\u0010\u0002\u001a\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0005H\u0096@ø\u0001\u0000¢\u0006\u0002\u0010\u0006\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u0007¸\u0006\u0000"}, d2 = {"kotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1", "Lkotlinx/coroutines/flow/Flow;", "collect", "", "collector", "Lkotlinx/coroutines/flow/FlowCollector;", "(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$10 implements Flow<Long> {
|
||||
final /* synthetic */ LongRange $this_asFlow$inlined;
|
||||
|
||||
/* compiled from: SafeCollector.common.kt */
|
||||
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$10", f = "Builders.kt", i = {0}, l = {115}, m = "collect", n = {"$this$asFlow_u24lambda_u2419"}, s = {"L$0"})
|
||||
/* renamed from: kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$10$1, reason: invalid class name */
|
||||
public static final class AnonymousClass1 extends ContinuationImpl {
|
||||
Object L$0;
|
||||
Object L$1;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
public AnonymousClass1(Continuation continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= Integer.MIN_VALUE;
|
||||
return FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$10.this.collect(null, this);
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:13:0x0052 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:24:0x003b */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0024 */
|
||||
@Override // kotlinx.coroutines.flow.Flow
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public java.lang.Object collect(kotlinx.coroutines.flow.FlowCollector<? super java.lang.Long> r8, kotlin.coroutines.Continuation<? super kotlin.Unit> r9) {
|
||||
/*
|
||||
r7 = this;
|
||||
boolean r0 = r9 instanceof kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$10.AnonymousClass1
|
||||
if (r0 == 0) goto L14
|
||||
r0 = r9
|
||||
kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$10$1 r0 = (kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$10.AnonymousClass1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r1 = r1 & r2
|
||||
if (r1 == 0) goto L14
|
||||
int r9 = r0.label
|
||||
int r9 = r9 - r2
|
||||
r0.label = r9
|
||||
goto L19
|
||||
L14:
|
||||
kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$10$1 r0 = new kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$10$1
|
||||
r0.<init>(r9)
|
||||
L19:
|
||||
java.lang.Object r9 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L3b
|
||||
if (r2 != r3) goto L33
|
||||
java.lang.Object r8 = r0.L$1
|
||||
java.util.Iterator r8 = (java.util.Iterator) r8
|
||||
java.lang.Object r2 = r0.L$0
|
||||
kotlinx.coroutines.flow.FlowCollector r2 = (kotlinx.coroutines.flow.FlowCollector) r2
|
||||
kotlin.ResultKt.throwOnFailure(r9)
|
||||
r9 = r2
|
||||
goto L4c
|
||||
L33:
|
||||
java.lang.IllegalStateException r8 = new java.lang.IllegalStateException
|
||||
java.lang.String r9 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r8.<init>(r9)
|
||||
throw r8
|
||||
L3b:
|
||||
kotlin.ResultKt.throwOnFailure(r9)
|
||||
r9 = r0
|
||||
kotlin.coroutines.Continuation r9 = (kotlin.coroutines.Continuation) r9
|
||||
kotlin.ranges.LongRange r9 = r7.$this_asFlow$inlined
|
||||
java.lang.Iterable r9 = (java.lang.Iterable) r9
|
||||
java.util.Iterator r9 = r9.iterator()
|
||||
r6 = r9
|
||||
r9 = r8
|
||||
r8 = r6
|
||||
L4c:
|
||||
boolean r2 = r8.hasNext()
|
||||
if (r2 == 0) goto L6a
|
||||
r2 = r8
|
||||
kotlin.collections.LongIterator r2 = (kotlin.collections.LongIterator) r2
|
||||
long r4 = r2.nextLong()
|
||||
java.lang.Long r2 = kotlin.coroutines.jvm.internal.Boxing.boxLong(r4)
|
||||
r0.L$0 = r9
|
||||
r0.L$1 = r8
|
||||
r0.label = r3
|
||||
java.lang.Object r2 = r9.emit(r2, r0)
|
||||
if (r2 != r1) goto L4c
|
||||
return r1
|
||||
L6a:
|
||||
kotlin.Unit r8 = kotlin.Unit.INSTANCE
|
||||
return r8
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$10.collect(kotlinx.coroutines.flow.FlowCollector, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
|
||||
public FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$10(LongRange longRange) {
|
||||
this.$this_asFlow$inlined = longRange;
|
||||
}
|
||||
}
|
@ -0,0 +1,115 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
|
||||
/* JADX INFO: Add missing generic type declarations: [T] */
|
||||
/* compiled from: SafeCollector.common.kt */
|
||||
@Metadata(d1 = {"\u0000\u0019\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u001f\u0010\u0002\u001a\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0005H\u0096@ø\u0001\u0000¢\u0006\u0002\u0010\u0006\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u0007¸\u0006\u0000"}, d2 = {"kotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1", "Lkotlinx/coroutines/flow/Flow;", "collect", "", "collector", "Lkotlinx/coroutines/flow/FlowCollector;", "(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$2<T> implements Flow<T> {
|
||||
final /* synthetic */ Function1 $this_asFlow$inlined;
|
||||
|
||||
/* compiled from: SafeCollector.common.kt */
|
||||
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$2", f = "Builders.kt", i = {}, l = {113, 113}, m = "collect", n = {}, s = {})
|
||||
/* renamed from: kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$2$1, reason: invalid class name */
|
||||
public static final class AnonymousClass1 extends ContinuationImpl {
|
||||
Object L$0;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
public AnonymousClass1(Continuation continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= Integer.MIN_VALUE;
|
||||
return FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$2.this.collect(null, this);
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:19:0x0063 A[RETURN] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:20:0x003d */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0025 */
|
||||
@Override // kotlinx.coroutines.flow.Flow
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public java.lang.Object collect(kotlinx.coroutines.flow.FlowCollector<? super T> r6, kotlin.coroutines.Continuation<? super kotlin.Unit> r7) {
|
||||
/*
|
||||
r5 = this;
|
||||
boolean r0 = r7 instanceof kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$2.AnonymousClass1
|
||||
if (r0 == 0) goto L14
|
||||
r0 = r7
|
||||
kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$2$1 r0 = (kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$2.AnonymousClass1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r1 = r1 & r2
|
||||
if (r1 == 0) goto L14
|
||||
int r7 = r0.label
|
||||
int r7 = r7 - r2
|
||||
r0.label = r7
|
||||
goto L19
|
||||
L14:
|
||||
kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$2$1 r0 = new kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$2$1
|
||||
r0.<init>(r7)
|
||||
L19:
|
||||
java.lang.Object r7 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 2
|
||||
r4 = 1
|
||||
if (r2 == 0) goto L3d
|
||||
if (r2 == r4) goto L35
|
||||
if (r2 != r3) goto L2d
|
||||
kotlin.ResultKt.throwOnFailure(r7)
|
||||
goto L64
|
||||
L2d:
|
||||
java.lang.IllegalStateException r6 = new java.lang.IllegalStateException
|
||||
java.lang.String r7 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r6.<init>(r7)
|
||||
throw r6
|
||||
L35:
|
||||
java.lang.Object r6 = r0.L$0
|
||||
kotlinx.coroutines.flow.FlowCollector r6 = (kotlinx.coroutines.flow.FlowCollector) r6
|
||||
kotlin.ResultKt.throwOnFailure(r7)
|
||||
goto L58
|
||||
L3d:
|
||||
kotlin.ResultKt.throwOnFailure(r7)
|
||||
r7 = r0
|
||||
kotlin.coroutines.Continuation r7 = (kotlin.coroutines.Continuation) r7
|
||||
kotlin.jvm.functions.Function1 r7 = r5.$this_asFlow$inlined
|
||||
r0.L$0 = r6
|
||||
r0.label = r4
|
||||
r2 = 6
|
||||
kotlin.jvm.internal.InlineMarker.mark(r2)
|
||||
java.lang.Object r7 = r7.invoke(r0)
|
||||
r2 = 7
|
||||
kotlin.jvm.internal.InlineMarker.mark(r2)
|
||||
if (r7 != r1) goto L58
|
||||
return r1
|
||||
L58:
|
||||
r2 = 0
|
||||
r0.L$0 = r2
|
||||
r0.label = r3
|
||||
java.lang.Object r6 = r6.emit(r7, r0)
|
||||
if (r6 != r1) goto L64
|
||||
return r1
|
||||
L64:
|
||||
kotlin.Unit r6 = kotlin.Unit.INSTANCE
|
||||
return r6
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$2.collect(kotlinx.coroutines.flow.FlowCollector, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
|
||||
public FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$2(Function1 function1) {
|
||||
this.$this_asFlow$inlined = function1;
|
||||
}
|
||||
}
|
@ -0,0 +1,111 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
|
||||
/* JADX INFO: Add missing generic type declarations: [T] */
|
||||
/* compiled from: SafeCollector.common.kt */
|
||||
@Metadata(d1 = {"\u0000\u0019\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u001f\u0010\u0002\u001a\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0005H\u0096@ø\u0001\u0000¢\u0006\u0002\u0010\u0006\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u0007¸\u0006\u0000"}, d2 = {"kotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1", "Lkotlinx/coroutines/flow/Flow;", "collect", "", "collector", "Lkotlinx/coroutines/flow/FlowCollector;", "(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$3<T> implements Flow<T> {
|
||||
final /* synthetic */ Iterable $this_asFlow$inlined;
|
||||
|
||||
/* compiled from: SafeCollector.common.kt */
|
||||
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$3", f = "Builders.kt", i = {0}, l = {115}, m = "collect", n = {"$this$asFlow_u24lambda_u243"}, s = {"L$0"})
|
||||
/* renamed from: kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$3$1, reason: invalid class name */
|
||||
public static final class AnonymousClass1 extends ContinuationImpl {
|
||||
Object L$0;
|
||||
Object L$1;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
public AnonymousClass1(Continuation continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= Integer.MIN_VALUE;
|
||||
return FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$3.this.collect(null, this);
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:13:0x0050 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:24:0x003b */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0024 */
|
||||
@Override // kotlinx.coroutines.flow.Flow
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public java.lang.Object collect(kotlinx.coroutines.flow.FlowCollector<? super T> r6, kotlin.coroutines.Continuation<? super kotlin.Unit> r7) {
|
||||
/*
|
||||
r5 = this;
|
||||
boolean r0 = r7 instanceof kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$3.AnonymousClass1
|
||||
if (r0 == 0) goto L14
|
||||
r0 = r7
|
||||
kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$3$1 r0 = (kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$3.AnonymousClass1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r1 = r1 & r2
|
||||
if (r1 == 0) goto L14
|
||||
int r7 = r0.label
|
||||
int r7 = r7 - r2
|
||||
r0.label = r7
|
||||
goto L19
|
||||
L14:
|
||||
kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$3$1 r0 = new kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$3$1
|
||||
r0.<init>(r7)
|
||||
L19:
|
||||
java.lang.Object r7 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L3b
|
||||
if (r2 != r3) goto L33
|
||||
java.lang.Object r6 = r0.L$1
|
||||
java.util.Iterator r6 = (java.util.Iterator) r6
|
||||
java.lang.Object r2 = r0.L$0
|
||||
kotlinx.coroutines.flow.FlowCollector r2 = (kotlinx.coroutines.flow.FlowCollector) r2
|
||||
kotlin.ResultKt.throwOnFailure(r7)
|
||||
r7 = r2
|
||||
goto L4a
|
||||
L33:
|
||||
java.lang.IllegalStateException r6 = new java.lang.IllegalStateException
|
||||
java.lang.String r7 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r6.<init>(r7)
|
||||
throw r6
|
||||
L3b:
|
||||
kotlin.ResultKt.throwOnFailure(r7)
|
||||
r7 = r0
|
||||
kotlin.coroutines.Continuation r7 = (kotlin.coroutines.Continuation) r7
|
||||
java.lang.Iterable r7 = r5.$this_asFlow$inlined
|
||||
java.util.Iterator r7 = r7.iterator()
|
||||
r4 = r7
|
||||
r7 = r6
|
||||
r6 = r4
|
||||
L4a:
|
||||
boolean r2 = r6.hasNext()
|
||||
if (r2 == 0) goto L61
|
||||
java.lang.Object r2 = r6.next()
|
||||
r0.L$0 = r7
|
||||
r0.L$1 = r6
|
||||
r0.label = r3
|
||||
java.lang.Object r2 = r7.emit(r2, r0)
|
||||
if (r2 != r1) goto L4a
|
||||
return r1
|
||||
L61:
|
||||
kotlin.Unit r6 = kotlin.Unit.INSTANCE
|
||||
return r6
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$3.collect(kotlinx.coroutines.flow.FlowCollector, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
|
||||
public FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$3(Iterable iterable) {
|
||||
this.$this_asFlow$inlined = iterable;
|
||||
}
|
||||
}
|
@ -0,0 +1,112 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import java.util.Iterator;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
|
||||
/* JADX INFO: Add missing generic type declarations: [T] */
|
||||
/* compiled from: SafeCollector.common.kt */
|
||||
@Metadata(d1 = {"\u0000\u0019\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u001f\u0010\u0002\u001a\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0005H\u0096@ø\u0001\u0000¢\u0006\u0002\u0010\u0006\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u0007¸\u0006\u0000"}, d2 = {"kotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1", "Lkotlinx/coroutines/flow/Flow;", "collect", "", "collector", "Lkotlinx/coroutines/flow/FlowCollector;", "(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$4<T> implements Flow<T> {
|
||||
final /* synthetic */ Iterator $this_asFlow$inlined;
|
||||
|
||||
/* compiled from: SafeCollector.common.kt */
|
||||
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$4", f = "Builders.kt", i = {0}, l = {115}, m = "collect", n = {"$this$asFlow_u24lambda_u245"}, s = {"L$0"})
|
||||
/* renamed from: kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$4$1, reason: invalid class name */
|
||||
public static final class AnonymousClass1 extends ContinuationImpl {
|
||||
Object L$0;
|
||||
Object L$1;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
public AnonymousClass1(Continuation continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= Integer.MIN_VALUE;
|
||||
return FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$4.this.collect(null, this);
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
/* JADX WARN: Removed duplicated region for block: B:13:0x004c */
|
||||
/* JADX WARN: Removed duplicated region for block: B:24:0x003b */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0024 */
|
||||
@Override // kotlinx.coroutines.flow.Flow
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public java.lang.Object collect(kotlinx.coroutines.flow.FlowCollector<? super T> r6, kotlin.coroutines.Continuation<? super kotlin.Unit> r7) {
|
||||
/*
|
||||
r5 = this;
|
||||
boolean r0 = r7 instanceof kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$4.AnonymousClass1
|
||||
if (r0 == 0) goto L14
|
||||
r0 = r7
|
||||
kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$4$1 r0 = (kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$4.AnonymousClass1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r1 = r1 & r2
|
||||
if (r1 == 0) goto L14
|
||||
int r7 = r0.label
|
||||
int r7 = r7 - r2
|
||||
r0.label = r7
|
||||
goto L19
|
||||
L14:
|
||||
kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$4$1 r0 = new kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$4$1
|
||||
r0.<init>(r7)
|
||||
L19:
|
||||
java.lang.Object r7 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L3b
|
||||
if (r2 != r3) goto L33
|
||||
java.lang.Object r6 = r0.L$1
|
||||
java.util.Iterator r6 = (java.util.Iterator) r6
|
||||
java.lang.Object r2 = r0.L$0
|
||||
kotlinx.coroutines.flow.FlowCollector r2 = (kotlinx.coroutines.flow.FlowCollector) r2
|
||||
kotlin.ResultKt.throwOnFailure(r7)
|
||||
r7 = r2
|
||||
goto L46
|
||||
L33:
|
||||
java.lang.IllegalStateException r6 = new java.lang.IllegalStateException
|
||||
java.lang.String r7 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r6.<init>(r7)
|
||||
throw r6
|
||||
L3b:
|
||||
kotlin.ResultKt.throwOnFailure(r7)
|
||||
r7 = r0
|
||||
kotlin.coroutines.Continuation r7 = (kotlin.coroutines.Continuation) r7
|
||||
java.util.Iterator r7 = r5.$this_asFlow$inlined
|
||||
r4 = r7
|
||||
r7 = r6
|
||||
r6 = r4
|
||||
L46:
|
||||
boolean r2 = r6.hasNext()
|
||||
if (r2 == 0) goto L5d
|
||||
java.lang.Object r2 = r6.next()
|
||||
r0.L$0 = r7
|
||||
r0.L$1 = r6
|
||||
r0.label = r3
|
||||
java.lang.Object r2 = r7.emit(r2, r0)
|
||||
if (r2 != r1) goto L46
|
||||
return r1
|
||||
L5d:
|
||||
kotlin.Unit r6 = kotlin.Unit.INSTANCE
|
||||
return r6
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$4.collect(kotlinx.coroutines.flow.FlowCollector, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
|
||||
public FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$4(Iterator it) {
|
||||
this.$this_asFlow$inlined = it;
|
||||
}
|
||||
}
|
@ -0,0 +1,112 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.sequences.Sequence;
|
||||
|
||||
/* JADX INFO: Add missing generic type declarations: [T] */
|
||||
/* compiled from: SafeCollector.common.kt */
|
||||
@Metadata(d1 = {"\u0000\u0019\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u001f\u0010\u0002\u001a\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0005H\u0096@ø\u0001\u0000¢\u0006\u0002\u0010\u0006\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u0007¸\u0006\u0000"}, d2 = {"kotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1", "Lkotlinx/coroutines/flow/Flow;", "collect", "", "collector", "Lkotlinx/coroutines/flow/FlowCollector;", "(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$5<T> implements Flow<T> {
|
||||
final /* synthetic */ Sequence $this_asFlow$inlined;
|
||||
|
||||
/* compiled from: SafeCollector.common.kt */
|
||||
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$5", f = "Builders.kt", i = {0}, l = {115}, m = "collect", n = {"$this$asFlow_u24lambda_u247"}, s = {"L$0"})
|
||||
/* renamed from: kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$5$1, reason: invalid class name */
|
||||
public static final class AnonymousClass1 extends ContinuationImpl {
|
||||
Object L$0;
|
||||
Object L$1;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
public AnonymousClass1(Continuation continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= Integer.MIN_VALUE;
|
||||
return FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$5.this.collect(null, this);
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:13:0x0050 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:24:0x003b */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0024 */
|
||||
@Override // kotlinx.coroutines.flow.Flow
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public java.lang.Object collect(kotlinx.coroutines.flow.FlowCollector<? super T> r6, kotlin.coroutines.Continuation<? super kotlin.Unit> r7) {
|
||||
/*
|
||||
r5 = this;
|
||||
boolean r0 = r7 instanceof kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$5.AnonymousClass1
|
||||
if (r0 == 0) goto L14
|
||||
r0 = r7
|
||||
kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$5$1 r0 = (kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$5.AnonymousClass1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r1 = r1 & r2
|
||||
if (r1 == 0) goto L14
|
||||
int r7 = r0.label
|
||||
int r7 = r7 - r2
|
||||
r0.label = r7
|
||||
goto L19
|
||||
L14:
|
||||
kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$5$1 r0 = new kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$5$1
|
||||
r0.<init>(r7)
|
||||
L19:
|
||||
java.lang.Object r7 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L3b
|
||||
if (r2 != r3) goto L33
|
||||
java.lang.Object r6 = r0.L$1
|
||||
java.util.Iterator r6 = (java.util.Iterator) r6
|
||||
java.lang.Object r2 = r0.L$0
|
||||
kotlinx.coroutines.flow.FlowCollector r2 = (kotlinx.coroutines.flow.FlowCollector) r2
|
||||
kotlin.ResultKt.throwOnFailure(r7)
|
||||
r7 = r2
|
||||
goto L4a
|
||||
L33:
|
||||
java.lang.IllegalStateException r6 = new java.lang.IllegalStateException
|
||||
java.lang.String r7 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r6.<init>(r7)
|
||||
throw r6
|
||||
L3b:
|
||||
kotlin.ResultKt.throwOnFailure(r7)
|
||||
r7 = r0
|
||||
kotlin.coroutines.Continuation r7 = (kotlin.coroutines.Continuation) r7
|
||||
kotlin.sequences.Sequence r7 = r5.$this_asFlow$inlined
|
||||
java.util.Iterator r7 = r7.iterator()
|
||||
r4 = r7
|
||||
r7 = r6
|
||||
r6 = r4
|
||||
L4a:
|
||||
boolean r2 = r6.hasNext()
|
||||
if (r2 == 0) goto L61
|
||||
java.lang.Object r2 = r6.next()
|
||||
r0.L$0 = r7
|
||||
r0.L$1 = r6
|
||||
r0.label = r3
|
||||
java.lang.Object r2 = r7.emit(r2, r0)
|
||||
if (r2 != r1) goto L4a
|
||||
return r1
|
||||
L61:
|
||||
kotlin.Unit r6 = kotlin.Unit.INSTANCE
|
||||
return r6
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$5.collect(kotlinx.coroutines.flow.FlowCollector, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
|
||||
public FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$5(Sequence sequence) {
|
||||
this.$this_asFlow$inlined = sequence;
|
||||
}
|
||||
}
|
@ -0,0 +1,124 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
|
||||
/* JADX INFO: Add missing generic type declarations: [T] */
|
||||
/* compiled from: SafeCollector.common.kt */
|
||||
@Metadata(d1 = {"\u0000\u0019\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u001f\u0010\u0002\u001a\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0005H\u0096@ø\u0001\u0000¢\u0006\u0002\u0010\u0006\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u0007¸\u0006\u0000"}, d2 = {"kotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1", "Lkotlinx/coroutines/flow/Flow;", "collect", "", "collector", "Lkotlinx/coroutines/flow/FlowCollector;", "(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$6<T> implements Flow<T> {
|
||||
final /* synthetic */ Object[] $this_asFlow$inlined;
|
||||
|
||||
/* compiled from: SafeCollector.common.kt */
|
||||
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$6", f = "Builders.kt", i = {0, 0}, l = {115}, m = "collect", n = {"$this$asFlow_u24lambda_u2411", "$this$forEach$iv"}, s = {"L$0", "L$1"})
|
||||
/* renamed from: kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$6$1, reason: invalid class name */
|
||||
public static final class AnonymousClass1 extends ContinuationImpl {
|
||||
int I$0;
|
||||
int I$1;
|
||||
Object L$0;
|
||||
Object L$1;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
public AnonymousClass1(Continuation continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= Integer.MIN_VALUE;
|
||||
return FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$6.this.collect(null, this);
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
/* JADX WARN: Removed duplicated region for block: B:12:0x004f */
|
||||
/* JADX WARN: Removed duplicated region for block: B:16:0x0064 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:20:0x003f */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0024 */
|
||||
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:13:0x005f -> B:10:0x0062). Please report as a decompilation issue!!! */
|
||||
@Override // kotlinx.coroutines.flow.Flow
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public java.lang.Object collect(kotlinx.coroutines.flow.FlowCollector<? super T> r7, kotlin.coroutines.Continuation<? super kotlin.Unit> r8) {
|
||||
/*
|
||||
r6 = this;
|
||||
boolean r0 = r8 instanceof kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$6.AnonymousClass1
|
||||
if (r0 == 0) goto L14
|
||||
r0 = r8
|
||||
kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$6$1 r0 = (kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$6.AnonymousClass1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r1 = r1 & r2
|
||||
if (r1 == 0) goto L14
|
||||
int r8 = r0.label
|
||||
int r8 = r8 - r2
|
||||
r0.label = r8
|
||||
goto L19
|
||||
L14:
|
||||
kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$6$1 r0 = new kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$6$1
|
||||
r0.<init>(r8)
|
||||
L19:
|
||||
java.lang.Object r8 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L3f
|
||||
if (r2 != r3) goto L37
|
||||
int r7 = r0.I$1
|
||||
int r2 = r0.I$0
|
||||
java.lang.Object r4 = r0.L$1
|
||||
java.lang.Object[] r4 = (java.lang.Object[]) r4
|
||||
java.lang.Object r5 = r0.L$0
|
||||
kotlinx.coroutines.flow.FlowCollector r5 = (kotlinx.coroutines.flow.FlowCollector) r5
|
||||
kotlin.ResultKt.throwOnFailure(r8)
|
||||
r8 = r5
|
||||
goto L62
|
||||
L37:
|
||||
java.lang.IllegalStateException r7 = new java.lang.IllegalStateException
|
||||
java.lang.String r8 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r7.<init>(r8)
|
||||
throw r7
|
||||
L3f:
|
||||
kotlin.ResultKt.throwOnFailure(r8)
|
||||
r8 = r0
|
||||
kotlin.coroutines.Continuation r8 = (kotlin.coroutines.Continuation) r8
|
||||
java.lang.Object[] r8 = r6.$this_asFlow$inlined
|
||||
int r2 = r8.length
|
||||
r4 = 0
|
||||
r4 = r8
|
||||
r8 = r7
|
||||
r7 = r2
|
||||
r2 = 0
|
||||
L4d:
|
||||
if (r2 >= r7) goto L64
|
||||
r5 = r4[r2]
|
||||
r0.L$0 = r8
|
||||
r0.L$1 = r4
|
||||
r0.I$0 = r2
|
||||
r0.I$1 = r7
|
||||
r0.label = r3
|
||||
java.lang.Object r5 = r8.emit(r5, r0)
|
||||
if (r5 != r1) goto L62
|
||||
return r1
|
||||
L62:
|
||||
int r2 = r2 + r3
|
||||
goto L4d
|
||||
L64:
|
||||
kotlin.Unit r7 = kotlin.Unit.INSTANCE
|
||||
return r7
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$6.collect(kotlinx.coroutines.flow.FlowCollector, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
|
||||
public FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$6(Object[] objArr) {
|
||||
this.$this_asFlow$inlined = objArr;
|
||||
}
|
||||
}
|
@ -0,0 +1,123 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
|
||||
/* compiled from: SafeCollector.common.kt */
|
||||
@Metadata(d1 = {"\u0000\u0019\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u001f\u0010\u0002\u001a\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0005H\u0096@ø\u0001\u0000¢\u0006\u0002\u0010\u0006\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u0007¸\u0006\u0000"}, d2 = {"kotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1", "Lkotlinx/coroutines/flow/Flow;", "collect", "", "collector", "Lkotlinx/coroutines/flow/FlowCollector;", "(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$7 implements Flow<Integer> {
|
||||
final /* synthetic */ int[] $this_asFlow$inlined;
|
||||
|
||||
/* compiled from: SafeCollector.common.kt */
|
||||
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$7", f = "Builders.kt", i = {0, 0}, l = {115}, m = "collect", n = {"$this$asFlow_u24lambda_u2413", "$this$forEach$iv"}, s = {"L$0", "L$1"})
|
||||
/* renamed from: kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$7$1, reason: invalid class name */
|
||||
public static final class AnonymousClass1 extends ContinuationImpl {
|
||||
int I$0;
|
||||
int I$1;
|
||||
Object L$0;
|
||||
Object L$1;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
public AnonymousClass1(Continuation continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= Integer.MIN_VALUE;
|
||||
return FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$7.this.collect(null, this);
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:12:0x004f */
|
||||
/* JADX WARN: Removed duplicated region for block: B:16:0x0068 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:20:0x003f */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0024 */
|
||||
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:13:0x0063 -> B:10:0x0066). Please report as a decompilation issue!!! */
|
||||
@Override // kotlinx.coroutines.flow.Flow
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public java.lang.Object collect(kotlinx.coroutines.flow.FlowCollector<? super java.lang.Integer> r7, kotlin.coroutines.Continuation<? super kotlin.Unit> r8) {
|
||||
/*
|
||||
r6 = this;
|
||||
boolean r0 = r8 instanceof kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$7.AnonymousClass1
|
||||
if (r0 == 0) goto L14
|
||||
r0 = r8
|
||||
kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$7$1 r0 = (kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$7.AnonymousClass1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r1 = r1 & r2
|
||||
if (r1 == 0) goto L14
|
||||
int r8 = r0.label
|
||||
int r8 = r8 - r2
|
||||
r0.label = r8
|
||||
goto L19
|
||||
L14:
|
||||
kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$7$1 r0 = new kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$7$1
|
||||
r0.<init>(r8)
|
||||
L19:
|
||||
java.lang.Object r8 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L3f
|
||||
if (r2 != r3) goto L37
|
||||
int r7 = r0.I$1
|
||||
int r2 = r0.I$0
|
||||
java.lang.Object r4 = r0.L$1
|
||||
int[] r4 = (int[]) r4
|
||||
java.lang.Object r5 = r0.L$0
|
||||
kotlinx.coroutines.flow.FlowCollector r5 = (kotlinx.coroutines.flow.FlowCollector) r5
|
||||
kotlin.ResultKt.throwOnFailure(r8)
|
||||
r8 = r5
|
||||
goto L66
|
||||
L37:
|
||||
java.lang.IllegalStateException r7 = new java.lang.IllegalStateException
|
||||
java.lang.String r8 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r7.<init>(r8)
|
||||
throw r7
|
||||
L3f:
|
||||
kotlin.ResultKt.throwOnFailure(r8)
|
||||
r8 = r0
|
||||
kotlin.coroutines.Continuation r8 = (kotlin.coroutines.Continuation) r8
|
||||
int[] r8 = r6.$this_asFlow$inlined
|
||||
int r2 = r8.length
|
||||
r4 = 0
|
||||
r4 = r8
|
||||
r8 = r7
|
||||
r7 = r2
|
||||
r2 = 0
|
||||
L4d:
|
||||
if (r2 >= r7) goto L68
|
||||
r5 = r4[r2]
|
||||
java.lang.Integer r5 = kotlin.coroutines.jvm.internal.Boxing.boxInt(r5)
|
||||
r0.L$0 = r8
|
||||
r0.L$1 = r4
|
||||
r0.I$0 = r2
|
||||
r0.I$1 = r7
|
||||
r0.label = r3
|
||||
java.lang.Object r5 = r8.emit(r5, r0)
|
||||
if (r5 != r1) goto L66
|
||||
return r1
|
||||
L66:
|
||||
int r2 = r2 + r3
|
||||
goto L4d
|
||||
L68:
|
||||
kotlin.Unit r7 = kotlin.Unit.INSTANCE
|
||||
return r7
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$7.collect(kotlinx.coroutines.flow.FlowCollector, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
|
||||
public FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$7(int[] iArr) {
|
||||
this.$this_asFlow$inlined = iArr;
|
||||
}
|
||||
}
|
@ -0,0 +1,123 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
|
||||
/* compiled from: SafeCollector.common.kt */
|
||||
@Metadata(d1 = {"\u0000\u0019\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u001f\u0010\u0002\u001a\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0005H\u0096@ø\u0001\u0000¢\u0006\u0002\u0010\u0006\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u0007¸\u0006\u0000"}, d2 = {"kotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1", "Lkotlinx/coroutines/flow/Flow;", "collect", "", "collector", "Lkotlinx/coroutines/flow/FlowCollector;", "(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$8 implements Flow<Long> {
|
||||
final /* synthetic */ long[] $this_asFlow$inlined;
|
||||
|
||||
/* compiled from: SafeCollector.common.kt */
|
||||
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$8", f = "Builders.kt", i = {0, 0}, l = {115}, m = "collect", n = {"$this$asFlow_u24lambda_u2415", "$this$forEach$iv"}, s = {"L$0", "L$1"})
|
||||
/* renamed from: kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$8$1, reason: invalid class name */
|
||||
public static final class AnonymousClass1 extends ContinuationImpl {
|
||||
int I$0;
|
||||
int I$1;
|
||||
Object L$0;
|
||||
Object L$1;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
public AnonymousClass1(Continuation continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= Integer.MIN_VALUE;
|
||||
return FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$8.this.collect(null, this);
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:12:0x004f */
|
||||
/* JADX WARN: Removed duplicated region for block: B:16:0x0068 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:20:0x003f */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0024 */
|
||||
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:13:0x0063 -> B:10:0x0066). Please report as a decompilation issue!!! */
|
||||
@Override // kotlinx.coroutines.flow.Flow
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public java.lang.Object collect(kotlinx.coroutines.flow.FlowCollector<? super java.lang.Long> r8, kotlin.coroutines.Continuation<? super kotlin.Unit> r9) {
|
||||
/*
|
||||
r7 = this;
|
||||
boolean r0 = r9 instanceof kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$8.AnonymousClass1
|
||||
if (r0 == 0) goto L14
|
||||
r0 = r9
|
||||
kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$8$1 r0 = (kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$8.AnonymousClass1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r1 = r1 & r2
|
||||
if (r1 == 0) goto L14
|
||||
int r9 = r0.label
|
||||
int r9 = r9 - r2
|
||||
r0.label = r9
|
||||
goto L19
|
||||
L14:
|
||||
kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$8$1 r0 = new kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$8$1
|
||||
r0.<init>(r9)
|
||||
L19:
|
||||
java.lang.Object r9 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L3f
|
||||
if (r2 != r3) goto L37
|
||||
int r8 = r0.I$1
|
||||
int r2 = r0.I$0
|
||||
java.lang.Object r4 = r0.L$1
|
||||
long[] r4 = (long[]) r4
|
||||
java.lang.Object r5 = r0.L$0
|
||||
kotlinx.coroutines.flow.FlowCollector r5 = (kotlinx.coroutines.flow.FlowCollector) r5
|
||||
kotlin.ResultKt.throwOnFailure(r9)
|
||||
r9 = r5
|
||||
goto L66
|
||||
L37:
|
||||
java.lang.IllegalStateException r8 = new java.lang.IllegalStateException
|
||||
java.lang.String r9 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r8.<init>(r9)
|
||||
throw r8
|
||||
L3f:
|
||||
kotlin.ResultKt.throwOnFailure(r9)
|
||||
r9 = r0
|
||||
kotlin.coroutines.Continuation r9 = (kotlin.coroutines.Continuation) r9
|
||||
long[] r9 = r7.$this_asFlow$inlined
|
||||
int r2 = r9.length
|
||||
r4 = 0
|
||||
r4 = r9
|
||||
r9 = r8
|
||||
r8 = r2
|
||||
r2 = 0
|
||||
L4d:
|
||||
if (r2 >= r8) goto L68
|
||||
r5 = r4[r2]
|
||||
java.lang.Long r5 = kotlin.coroutines.jvm.internal.Boxing.boxLong(r5)
|
||||
r0.L$0 = r9
|
||||
r0.L$1 = r4
|
||||
r0.I$0 = r2
|
||||
r0.I$1 = r8
|
||||
r0.label = r3
|
||||
java.lang.Object r5 = r9.emit(r5, r0)
|
||||
if (r5 != r1) goto L66
|
||||
return r1
|
||||
L66:
|
||||
int r2 = r2 + r3
|
||||
goto L4d
|
||||
L68:
|
||||
kotlin.Unit r8 = kotlin.Unit.INSTANCE
|
||||
return r8
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$8.collect(kotlinx.coroutines.flow.FlowCollector, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
|
||||
public FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$8(long[] jArr) {
|
||||
this.$this_asFlow$inlined = jArr;
|
||||
}
|
||||
}
|
@ -0,0 +1,115 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.ranges.IntRange;
|
||||
|
||||
/* compiled from: SafeCollector.common.kt */
|
||||
@Metadata(d1 = {"\u0000\u0019\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u001f\u0010\u0002\u001a\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0005H\u0096@ø\u0001\u0000¢\u0006\u0002\u0010\u0006\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u0007¸\u0006\u0000"}, d2 = {"kotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1", "Lkotlinx/coroutines/flow/Flow;", "collect", "", "collector", "Lkotlinx/coroutines/flow/FlowCollector;", "(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$9 implements Flow<Integer> {
|
||||
final /* synthetic */ IntRange $this_asFlow$inlined;
|
||||
|
||||
/* compiled from: SafeCollector.common.kt */
|
||||
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$9", f = "Builders.kt", i = {0}, l = {115}, m = "collect", n = {"$this$asFlow_u24lambda_u2417"}, s = {"L$0"})
|
||||
/* renamed from: kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$9$1, reason: invalid class name */
|
||||
public static final class AnonymousClass1 extends ContinuationImpl {
|
||||
Object L$0;
|
||||
Object L$1;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
public AnonymousClass1(Continuation continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= Integer.MIN_VALUE;
|
||||
return FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$9.this.collect(null, this);
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:13:0x0052 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:24:0x003b */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0024 */
|
||||
@Override // kotlinx.coroutines.flow.Flow
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public java.lang.Object collect(kotlinx.coroutines.flow.FlowCollector<? super java.lang.Integer> r6, kotlin.coroutines.Continuation<? super kotlin.Unit> r7) {
|
||||
/*
|
||||
r5 = this;
|
||||
boolean r0 = r7 instanceof kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$9.AnonymousClass1
|
||||
if (r0 == 0) goto L14
|
||||
r0 = r7
|
||||
kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$9$1 r0 = (kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$9.AnonymousClass1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r1 = r1 & r2
|
||||
if (r1 == 0) goto L14
|
||||
int r7 = r0.label
|
||||
int r7 = r7 - r2
|
||||
r0.label = r7
|
||||
goto L19
|
||||
L14:
|
||||
kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$9$1 r0 = new kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$9$1
|
||||
r0.<init>(r7)
|
||||
L19:
|
||||
java.lang.Object r7 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L3b
|
||||
if (r2 != r3) goto L33
|
||||
java.lang.Object r6 = r0.L$1
|
||||
java.util.Iterator r6 = (java.util.Iterator) r6
|
||||
java.lang.Object r2 = r0.L$0
|
||||
kotlinx.coroutines.flow.FlowCollector r2 = (kotlinx.coroutines.flow.FlowCollector) r2
|
||||
kotlin.ResultKt.throwOnFailure(r7)
|
||||
r7 = r2
|
||||
goto L4c
|
||||
L33:
|
||||
java.lang.IllegalStateException r6 = new java.lang.IllegalStateException
|
||||
java.lang.String r7 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r6.<init>(r7)
|
||||
throw r6
|
||||
L3b:
|
||||
kotlin.ResultKt.throwOnFailure(r7)
|
||||
r7 = r0
|
||||
kotlin.coroutines.Continuation r7 = (kotlin.coroutines.Continuation) r7
|
||||
kotlin.ranges.IntRange r7 = r5.$this_asFlow$inlined
|
||||
java.lang.Iterable r7 = (java.lang.Iterable) r7
|
||||
java.util.Iterator r7 = r7.iterator()
|
||||
r4 = r7
|
||||
r7 = r6
|
||||
r6 = r4
|
||||
L4c:
|
||||
boolean r2 = r6.hasNext()
|
||||
if (r2 == 0) goto L6a
|
||||
r2 = r6
|
||||
kotlin.collections.IntIterator r2 = (kotlin.collections.IntIterator) r2
|
||||
int r2 = r2.nextInt()
|
||||
java.lang.Integer r2 = kotlin.coroutines.jvm.internal.Boxing.boxInt(r2)
|
||||
r0.L$0 = r7
|
||||
r0.L$1 = r6
|
||||
r0.label = r3
|
||||
java.lang.Object r2 = r7.emit(r2, r0)
|
||||
if (r2 != r1) goto L4c
|
||||
return r1
|
||||
L6a:
|
||||
kotlin.Unit r6 = kotlin.Unit.INSTANCE
|
||||
return r6
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$9.collect(kotlinx.coroutines.flow.FlowCollector, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
|
||||
public FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$9(IntRange intRange) {
|
||||
this.$this_asFlow$inlined = intRange;
|
||||
}
|
||||
}
|
@ -0,0 +1,125 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
|
||||
/* JADX INFO: Add missing generic type declarations: [T] */
|
||||
/* compiled from: SafeCollector.common.kt */
|
||||
@Metadata(d1 = {"\u0000\u0019\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u001f\u0010\u0002\u001a\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0005H\u0096@ø\u0001\u0000¢\u0006\u0002\u0010\u0006\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u0007¸\u0006\u0000"}, d2 = {"kotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1", "Lkotlinx/coroutines/flow/Flow;", "collect", "", "collector", "Lkotlinx/coroutines/flow/FlowCollector;", "(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class FlowKt__BuildersKt$flowOf$$inlined$unsafeFlow$1<T> implements Flow<T> {
|
||||
final /* synthetic */ Object[] $elements$inlined;
|
||||
|
||||
/* compiled from: SafeCollector.common.kt */
|
||||
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__BuildersKt$flowOf$$inlined$unsafeFlow$1", f = "Builders.kt", i = {0, 0}, l = {114}, m = "collect", n = {"this", "$this$flowOf_u24lambda_u248"}, s = {"L$0", "L$1"})
|
||||
/* renamed from: kotlinx.coroutines.flow.FlowKt__BuildersKt$flowOf$$inlined$unsafeFlow$1$1, reason: invalid class name */
|
||||
public static final class AnonymousClass1 extends ContinuationImpl {
|
||||
int I$0;
|
||||
int I$1;
|
||||
Object L$0;
|
||||
Object L$1;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
public AnonymousClass1(Continuation continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= Integer.MIN_VALUE;
|
||||
return FlowKt__BuildersKt$flowOf$$inlined$unsafeFlow$1.this.collect(null, this);
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
/* JADX WARN: Removed duplicated region for block: B:12:0x004f */
|
||||
/* JADX WARN: Removed duplicated region for block: B:16:0x0066 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:20:0x003f */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0024 */
|
||||
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:13:0x0061 -> B:10:0x0064). Please report as a decompilation issue!!! */
|
||||
@Override // kotlinx.coroutines.flow.Flow
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public java.lang.Object collect(kotlinx.coroutines.flow.FlowCollector<? super T> r8, kotlin.coroutines.Continuation<? super kotlin.Unit> r9) {
|
||||
/*
|
||||
r7 = this;
|
||||
boolean r0 = r9 instanceof kotlinx.coroutines.flow.FlowKt__BuildersKt$flowOf$$inlined$unsafeFlow$1.AnonymousClass1
|
||||
if (r0 == 0) goto L14
|
||||
r0 = r9
|
||||
kotlinx.coroutines.flow.FlowKt__BuildersKt$flowOf$$inlined$unsafeFlow$1$1 r0 = (kotlinx.coroutines.flow.FlowKt__BuildersKt$flowOf$$inlined$unsafeFlow$1.AnonymousClass1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r1 = r1 & r2
|
||||
if (r1 == 0) goto L14
|
||||
int r9 = r0.label
|
||||
int r9 = r9 - r2
|
||||
r0.label = r9
|
||||
goto L19
|
||||
L14:
|
||||
kotlinx.coroutines.flow.FlowKt__BuildersKt$flowOf$$inlined$unsafeFlow$1$1 r0 = new kotlinx.coroutines.flow.FlowKt__BuildersKt$flowOf$$inlined$unsafeFlow$1$1
|
||||
r0.<init>(r9)
|
||||
L19:
|
||||
java.lang.Object r9 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L3f
|
||||
if (r2 != r3) goto L37
|
||||
int r8 = r0.I$1
|
||||
int r2 = r0.I$0
|
||||
java.lang.Object r4 = r0.L$1
|
||||
kotlinx.coroutines.flow.FlowCollector r4 = (kotlinx.coroutines.flow.FlowCollector) r4
|
||||
java.lang.Object r5 = r0.L$0
|
||||
kotlinx.coroutines.flow.FlowKt__BuildersKt$flowOf$$inlined$unsafeFlow$1 r5 = (kotlinx.coroutines.flow.FlowKt__BuildersKt$flowOf$$inlined$unsafeFlow$1) r5
|
||||
kotlin.ResultKt.throwOnFailure(r9)
|
||||
r9 = r4
|
||||
goto L64
|
||||
L37:
|
||||
java.lang.IllegalStateException r8 = new java.lang.IllegalStateException
|
||||
java.lang.String r9 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r8.<init>(r9)
|
||||
throw r8
|
||||
L3f:
|
||||
kotlin.ResultKt.throwOnFailure(r9)
|
||||
r9 = r0
|
||||
kotlin.coroutines.Continuation r9 = (kotlin.coroutines.Continuation) r9
|
||||
java.lang.Object[] r9 = r7.$elements$inlined
|
||||
int r9 = r9.length
|
||||
r2 = 0
|
||||
r5 = r7
|
||||
r6 = r9
|
||||
r9 = r8
|
||||
r8 = r6
|
||||
L4d:
|
||||
if (r2 >= r8) goto L66
|
||||
java.lang.Object[] r4 = r5.$elements$inlined
|
||||
r4 = r4[r2]
|
||||
r0.L$0 = r5
|
||||
r0.L$1 = r9
|
||||
r0.I$0 = r2
|
||||
r0.I$1 = r8
|
||||
r0.label = r3
|
||||
java.lang.Object r4 = r9.emit(r4, r0)
|
||||
if (r4 != r1) goto L64
|
||||
return r1
|
||||
L64:
|
||||
int r2 = r2 + r3
|
||||
goto L4d
|
||||
L66:
|
||||
kotlin.Unit r8 = kotlin.Unit.INSTANCE
|
||||
return r8
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.FlowKt__BuildersKt$flowOf$$inlined$unsafeFlow$1.collect(kotlinx.coroutines.flow.FlowCollector, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
|
||||
public FlowKt__BuildersKt$flowOf$$inlined$unsafeFlow$1(Object[] objArr) {
|
||||
this.$elements$inlined = objArr;
|
||||
}
|
||||
}
|
@ -0,0 +1,95 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import java.util.Iterator;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.ranges.IntRange;
|
||||
import kotlin.ranges.LongRange;
|
||||
import kotlin.sequences.Sequence;
|
||||
import kotlinx.coroutines.channels.ProducerScope;
|
||||
|
||||
/* compiled from: Builders.kt */
|
||||
@Metadata(d1 = {"\u0000f\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u0011\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0010\b\n\u0002\u0010\u0015\n\u0002\u0010\t\n\u0002\u0010\u0016\n\u0002\u0010\u001c\n\u0002\u0010(\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u001aK\u0010\u0000\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u00022/\b\u0001\u0010\u0003\u001a)\b\u0001\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00020\u0005\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00070\u0006\u0012\u0006\u0012\u0004\u0018\u00010\b0\u0004¢\u0006\u0002\b\tø\u0001\u0000¢\u0006\u0002\u0010\n\u001aK\u0010\u000b\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u00022/\b\u0001\u0010\u0003\u001a)\b\u0001\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00020\u0005\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00070\u0006\u0012\u0006\u0012\u0004\u0018\u00010\b0\u0004¢\u0006\u0002\b\tø\u0001\u0000¢\u0006\u0002\u0010\n\u001a\u0012\u0010\f\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u0002\u001aK\u0010\r\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u00022/\b\u0001\u0010\u0003\u001a)\b\u0001\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00020\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00070\u0006\u0012\u0006\u0012\u0004\u0018\u00010\b0\u0004¢\u0006\u0002\b\tø\u0001\u0000¢\u0006\u0002\u0010\n\u001a\u001f\u0010\u000f\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u00022\u0006\u0010\u0010\u001a\u0002H\u0002¢\u0006\u0002\u0010\u0011\u001a+\u0010\u000f\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u00022\u0012\u0010\u0012\u001a\n\u0012\u0006\b\u0001\u0012\u0002H\u00020\u0013\"\u0002H\u0002¢\u0006\u0002\u0010\u0014\u001a\u001c\u0010\u0015\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u0016\u001a!\u0010\u0015\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u0013¢\u0006\u0002\u0010\u0014\u001a\u0010\u0010\u0015\u001a\b\u0012\u0004\u0012\u00020\u00170\u0001*\u00020\u0018\u001a\u0010\u0010\u0015\u001a\b\u0012\u0004\u0012\u00020\u00190\u0001*\u00020\u001a\u001a\u001c\u0010\u0015\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u001b\u001a\u001c\u0010\u0015\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u001c\u001a\u0010\u0010\u0015\u001a\b\u0012\u0004\u0012\u00020\u00170\u0001*\u00020\u001d\u001a\u0010\u0010\u0015\u001a\b\u0012\u0004\u0012\u00020\u00190\u0001*\u00020\u001e\u001a\u001c\u0010\u0015\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u001f\u001a4\u0010\u0015\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\u0018\b\u0001\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00020\u0006\u0012\u0006\u0012\u0004\u0018\u00010\b0 ø\u0001\u0000¢\u0006\u0002\u0010!\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\""}, d2 = {"callbackFlow", "Lkotlinx/coroutines/flow/Flow;", "T", "block", "Lkotlin/Function2;", "Lkotlinx/coroutines/channels/ProducerScope;", "Lkotlin/coroutines/Continuation;", "", "", "Lkotlin/ExtensionFunctionType;", "(Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;", "channelFlow", "emptyFlow", "flow", "Lkotlinx/coroutines/flow/FlowCollector;", "flowOf", "value", "(Ljava/lang/Object;)Lkotlinx/coroutines/flow/Flow;", "elements", "", "([Ljava/lang/Object;)Lkotlinx/coroutines/flow/Flow;", "asFlow", "Lkotlin/Function0;", "", "", "", "", "", "", "Lkotlin/ranges/IntRange;", "Lkotlin/ranges/LongRange;", "Lkotlin/sequences/Sequence;", "Lkotlin/Function1;", "(Lkotlin/jvm/functions/Function1;)Lkotlinx/coroutines/flow/Flow;", "kotlinx-coroutines-core"}, k = 5, mv = {1, 8, 0}, xi = 48, xs = "kotlinx/coroutines/flow/FlowKt")
|
||||
/* loaded from: classes.dex */
|
||||
final /* synthetic */ class FlowKt__BuildersKt {
|
||||
public static final <T> Flow<T> flow(Function2<? super FlowCollector<? super T>, ? super Continuation<? super Unit>, ? extends Object> function2) {
|
||||
return new SafeFlow(function2);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> emptyFlow() {
|
||||
return EmptyFlow.INSTANCE;
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> channelFlow(Function2<? super ProducerScope<? super T>, ? super Continuation<? super Unit>, ? extends Object> function2) {
|
||||
return new ChannelFlowBuilder(function2, null, 0, null, 14, null);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> callbackFlow(Function2<? super ProducerScope<? super T>, ? super Continuation<? super Unit>, ? extends Object> function2) {
|
||||
return new CallbackFlowBuilder(function2, null, 0, null, 14, null);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> asFlow(final Function0<? extends T> function0) {
|
||||
return new Flow<T>() { // from class: kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$1
|
||||
@Override // kotlinx.coroutines.flow.Flow
|
||||
public Object collect(FlowCollector<? super T> flowCollector, Continuation<? super Unit> continuation) {
|
||||
Object emit = flowCollector.emit((Object) Function0.this.invoke(), continuation);
|
||||
return emit == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? emit : Unit.INSTANCE;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> asFlow(Function1<? super Continuation<? super T>, ? extends Object> function1) {
|
||||
return new FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$2(function1);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> asFlow(Iterable<? extends T> iterable) {
|
||||
return new FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$3(iterable);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> asFlow(Iterator<? extends T> it) {
|
||||
return new FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$4(it);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> asFlow(Sequence<? extends T> sequence) {
|
||||
return new FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$5(sequence);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> flowOf(T... tArr) {
|
||||
return new FlowKt__BuildersKt$flowOf$$inlined$unsafeFlow$1(tArr);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> flowOf(final T t) {
|
||||
return new Flow<T>() { // from class: kotlinx.coroutines.flow.FlowKt__BuildersKt$flowOf$$inlined$unsafeFlow$2
|
||||
@Override // kotlinx.coroutines.flow.Flow
|
||||
public Object collect(FlowCollector<? super T> flowCollector, Continuation<? super Unit> continuation) {
|
||||
Object emit = flowCollector.emit((Object) t, continuation);
|
||||
return emit == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? emit : Unit.INSTANCE;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> asFlow(T[] tArr) {
|
||||
return new FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$6(tArr);
|
||||
}
|
||||
|
||||
public static final Flow<Integer> asFlow(int[] iArr) {
|
||||
return new FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$7(iArr);
|
||||
}
|
||||
|
||||
public static final Flow<Long> asFlow(long[] jArr) {
|
||||
return new FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$8(jArr);
|
||||
}
|
||||
|
||||
public static final Flow<Integer> asFlow(IntRange intRange) {
|
||||
return new FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$9(intRange);
|
||||
}
|
||||
|
||||
public static final Flow<Long> asFlow(LongRange longRange) {
|
||||
return new FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$10(longRange);
|
||||
}
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
|
||||
/* compiled from: Channels.kt */
|
||||
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__ChannelsKt", f = "Channels.kt", i = {0, 0, 0, 1, 1, 1}, l = {36, 37}, m = "emitAllImpl$FlowKt__ChannelsKt", n = {"$this$emitAllImpl", "channel", "consume", "$this$emitAllImpl", "channel", "consume"}, s = {"L$0", "L$1", "Z$0", "L$0", "L$1", "Z$0"})
|
||||
/* loaded from: classes.dex */
|
||||
final class FlowKt__ChannelsKt$emitAllImpl$1<T> extends ContinuationImpl {
|
||||
Object L$0;
|
||||
Object L$1;
|
||||
Object L$2;
|
||||
boolean Z$0;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
FlowKt__ChannelsKt$emitAllImpl$1(Continuation<? super FlowKt__ChannelsKt$emitAllImpl$1> continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
Object emitAllImpl$FlowKt__ChannelsKt;
|
||||
this.result = obj;
|
||||
this.label |= Integer.MIN_VALUE;
|
||||
emitAllImpl$FlowKt__ChannelsKt = FlowKt__ChannelsKt.emitAllImpl$FlowKt__ChannelsKt(null, null, false, this);
|
||||
return emitAllImpl$FlowKt__ChannelsKt;
|
||||
}
|
||||
}
|
@ -0,0 +1,165 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Deprecated;
|
||||
import kotlin.DeprecationLevel;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
import kotlinx.coroutines.channels.BroadcastChannel;
|
||||
import kotlinx.coroutines.channels.ReceiveChannel;
|
||||
import kotlinx.coroutines.flow.internal.ChannelFlowKt;
|
||||
|
||||
/* compiled from: Channels.kt */
|
||||
@Metadata(d1 = {"\u00000\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u000b\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0002\u001a\u001e\u0010\u0000\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u0003H\u0007\u001a\u001c\u0010\u0004\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u0005\u001a/\u0010\u0006\u001a\u00020\u0007\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\b2\f\u0010\t\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0005H\u0086@ø\u0001\u0000¢\u0006\u0002\u0010\n\u001a9\u0010\u000b\u001a\u00020\u0007\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\b2\f\u0010\t\u001a\b\u0012\u0004\u0012\u0002H\u00020\u00052\u0006\u0010\f\u001a\u00020\rH\u0082@ø\u0001\u0000¢\u0006\u0004\b\u000e\u0010\u000f\u001a$\u0010\u0010\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0005\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00012\u0006\u0010\u0011\u001a\u00020\u0012\u001a\u001c\u0010\u0013\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u0005\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u0014"}, d2 = {"asFlow", "Lkotlinx/coroutines/flow/Flow;", "T", "Lkotlinx/coroutines/channels/BroadcastChannel;", "consumeAsFlow", "Lkotlinx/coroutines/channels/ReceiveChannel;", "emitAll", "", "Lkotlinx/coroutines/flow/FlowCollector;", "channel", "(Lkotlinx/coroutines/flow/FlowCollector;Lkotlinx/coroutines/channels/ReceiveChannel;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "emitAllImpl", "consume", "", "emitAllImpl$FlowKt__ChannelsKt", "(Lkotlinx/coroutines/flow/FlowCollector;Lkotlinx/coroutines/channels/ReceiveChannel;ZLkotlin/coroutines/Continuation;)Ljava/lang/Object;", "produceIn", "scope", "Lkotlinx/coroutines/CoroutineScope;", "receiveAsFlow", "kotlinx-coroutines-core"}, k = 5, mv = {1, 8, 0}, xi = 48, xs = "kotlinx/coroutines/flow/FlowKt")
|
||||
/* loaded from: classes.dex */
|
||||
final /* synthetic */ class FlowKt__ChannelsKt {
|
||||
public static final <T> Object emitAll(FlowCollector<? super T> flowCollector, ReceiveChannel<? extends T> receiveChannel, Continuation<? super Unit> continuation) {
|
||||
Object emitAllImpl$FlowKt__ChannelsKt = emitAllImpl$FlowKt__ChannelsKt(flowCollector, receiveChannel, true, continuation);
|
||||
return emitAllImpl$FlowKt__ChannelsKt == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? emitAllImpl$FlowKt__ChannelsKt : Unit.INSTANCE;
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
/* JADX WARN: Removed duplicated region for block: B:16:0x0071 A[RETURN] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:18:0x0072 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:21:0x007e A[Catch: all -> 0x009c, TRY_LEAVE, TryCatch #0 {all -> 0x009c, blocks: (B:12:0x0037, B:14:0x0061, B:19:0x0076, B:21:0x007e, B:32:0x0053, B:34:0x005d), top: B:7:0x0023 }] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:24:0x0093 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:33:0x0057 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:9:0x0025 */
|
||||
/* JADX WARN: Type inference failed for: r2v1, types: [java.lang.Object, kotlinx.coroutines.flow.FlowCollector] */
|
||||
/* JADX WARN: Type inference failed for: r2v11 */
|
||||
/* JADX WARN: Type inference failed for: r2v3 */
|
||||
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:22:0x0090 -> B:13:0x003a). Please report as a decompilation issue!!! */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public static final <T> java.lang.Object emitAllImpl$FlowKt__ChannelsKt(kotlinx.coroutines.flow.FlowCollector<? super T> r6, kotlinx.coroutines.channels.ReceiveChannel<? extends T> r7, boolean r8, kotlin.coroutines.Continuation<? super kotlin.Unit> r9) {
|
||||
/*
|
||||
boolean r0 = r9 instanceof kotlinx.coroutines.flow.FlowKt__ChannelsKt$emitAllImpl$1
|
||||
if (r0 == 0) goto L14
|
||||
r0 = r9
|
||||
kotlinx.coroutines.flow.FlowKt__ChannelsKt$emitAllImpl$1 r0 = (kotlinx.coroutines.flow.FlowKt__ChannelsKt$emitAllImpl$1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r1 = r1 & r2
|
||||
if (r1 == 0) goto L14
|
||||
int r9 = r0.label
|
||||
int r9 = r9 - r2
|
||||
r0.label = r9
|
||||
goto L19
|
||||
L14:
|
||||
kotlinx.coroutines.flow.FlowKt__ChannelsKt$emitAllImpl$1 r0 = new kotlinx.coroutines.flow.FlowKt__ChannelsKt$emitAllImpl$1
|
||||
r0.<init>(r9)
|
||||
L19:
|
||||
java.lang.Object r9 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 2
|
||||
r4 = 1
|
||||
if (r2 == 0) goto L57
|
||||
if (r2 == r4) goto L45
|
||||
if (r2 != r3) goto L3d
|
||||
boolean r8 = r0.Z$0
|
||||
java.lang.Object r6 = r0.L$2
|
||||
kotlinx.coroutines.channels.ChannelIterator r6 = (kotlinx.coroutines.channels.ChannelIterator) r6
|
||||
java.lang.Object r7 = r0.L$1
|
||||
kotlinx.coroutines.channels.ReceiveChannel r7 = (kotlinx.coroutines.channels.ReceiveChannel) r7
|
||||
java.lang.Object r2 = r0.L$0
|
||||
kotlinx.coroutines.flow.FlowCollector r2 = (kotlinx.coroutines.flow.FlowCollector) r2
|
||||
kotlin.ResultKt.throwOnFailure(r9) // Catch: java.lang.Throwable -> L9c
|
||||
L3a:
|
||||
r9 = r6
|
||||
r6 = r2
|
||||
goto L61
|
||||
L3d:
|
||||
java.lang.IllegalStateException r6 = new java.lang.IllegalStateException
|
||||
java.lang.String r7 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r6.<init>(r7)
|
||||
throw r6
|
||||
L45:
|
||||
boolean r8 = r0.Z$0
|
||||
java.lang.Object r6 = r0.L$2
|
||||
kotlinx.coroutines.channels.ChannelIterator r6 = (kotlinx.coroutines.channels.ChannelIterator) r6
|
||||
java.lang.Object r7 = r0.L$1
|
||||
kotlinx.coroutines.channels.ReceiveChannel r7 = (kotlinx.coroutines.channels.ReceiveChannel) r7
|
||||
java.lang.Object r2 = r0.L$0
|
||||
kotlinx.coroutines.flow.FlowCollector r2 = (kotlinx.coroutines.flow.FlowCollector) r2
|
||||
kotlin.ResultKt.throwOnFailure(r9) // Catch: java.lang.Throwable -> L9c
|
||||
goto L76
|
||||
L57:
|
||||
kotlin.ResultKt.throwOnFailure(r9)
|
||||
kotlinx.coroutines.flow.FlowKt.ensureActive(r6)
|
||||
kotlinx.coroutines.channels.ChannelIterator r9 = r7.iterator() // Catch: java.lang.Throwable -> L9c
|
||||
L61:
|
||||
r0.L$0 = r6 // Catch: java.lang.Throwable -> L9c
|
||||
r0.L$1 = r7 // Catch: java.lang.Throwable -> L9c
|
||||
r0.L$2 = r9 // Catch: java.lang.Throwable -> L9c
|
||||
r0.Z$0 = r8 // Catch: java.lang.Throwable -> L9c
|
||||
r0.label = r4 // Catch: java.lang.Throwable -> L9c
|
||||
java.lang.Object r2 = r9.hasNext(r0) // Catch: java.lang.Throwable -> L9c
|
||||
if (r2 != r1) goto L72
|
||||
return r1
|
||||
L72:
|
||||
r5 = r2
|
||||
r2 = r6
|
||||
r6 = r9
|
||||
r9 = r5
|
||||
L76:
|
||||
java.lang.Boolean r9 = (java.lang.Boolean) r9 // Catch: java.lang.Throwable -> L9c
|
||||
boolean r9 = r9.booleanValue() // Catch: java.lang.Throwable -> L9c
|
||||
if (r9 == 0) goto L93
|
||||
java.lang.Object r9 = r6.next() // Catch: java.lang.Throwable -> L9c
|
||||
r0.L$0 = r2 // Catch: java.lang.Throwable -> L9c
|
||||
r0.L$1 = r7 // Catch: java.lang.Throwable -> L9c
|
||||
r0.L$2 = r6 // Catch: java.lang.Throwable -> L9c
|
||||
r0.Z$0 = r8 // Catch: java.lang.Throwable -> L9c
|
||||
r0.label = r3 // Catch: java.lang.Throwable -> L9c
|
||||
java.lang.Object r9 = r2.emit(r9, r0) // Catch: java.lang.Throwable -> L9c
|
||||
if (r9 != r1) goto L3a
|
||||
return r1
|
||||
L93:
|
||||
if (r8 == 0) goto L99
|
||||
r6 = 0
|
||||
kotlinx.coroutines.channels.ChannelsKt.cancelConsumed(r7, r6)
|
||||
L99:
|
||||
kotlin.Unit r6 = kotlin.Unit.INSTANCE
|
||||
return r6
|
||||
L9c:
|
||||
r6 = move-exception
|
||||
throw r6 // Catch: java.lang.Throwable -> L9e
|
||||
L9e:
|
||||
r9 = move-exception
|
||||
if (r8 == 0) goto La4
|
||||
kotlinx.coroutines.channels.ChannelsKt.cancelConsumed(r7, r6)
|
||||
La4:
|
||||
throw r9
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.FlowKt__ChannelsKt.emitAllImpl$FlowKt__ChannelsKt(kotlinx.coroutines.flow.FlowCollector, kotlinx.coroutines.channels.ReceiveChannel, boolean, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> receiveAsFlow(ReceiveChannel<? extends T> receiveChannel) {
|
||||
return new ChannelAsFlow(receiveChannel, false, null, 0, null, 28, null);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> consumeAsFlow(ReceiveChannel<? extends T> receiveChannel) {
|
||||
return new ChannelAsFlow(receiveChannel, true, null, 0, null, 28, null);
|
||||
}
|
||||
|
||||
public static final <T> ReceiveChannel<T> produceIn(Flow<? extends T> flow, CoroutineScope coroutineScope) {
|
||||
return ChannelFlowKt.asChannelFlow(flow).produceImpl(coroutineScope);
|
||||
}
|
||||
|
||||
@Deprecated(level = DeprecationLevel.ERROR, message = "'BroadcastChannel' is obsolete and all corresponding operators are deprecated in the favour of StateFlow and SharedFlow")
|
||||
public static final <T> Flow<T> asFlow(final BroadcastChannel<T> broadcastChannel) {
|
||||
return new Flow<T>() { // from class: kotlinx.coroutines.flow.FlowKt__ChannelsKt$asFlow$$inlined$unsafeFlow$1
|
||||
@Override // kotlinx.coroutines.flow.Flow
|
||||
public Object collect(FlowCollector<? super T> flowCollector, Continuation<? super Unit> continuation) {
|
||||
Object emitAll = FlowKt.emitAll(flowCollector, BroadcastChannel.this.openSubscription(), continuation);
|
||||
return emitAll == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? emitAll : Unit.INSTANCE;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
@ -0,0 +1,46 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.internal.InlineMarker;
|
||||
|
||||
/* JADX INFO: Add missing generic type declarations: [T] */
|
||||
/* compiled from: Collect.kt */
|
||||
@Metadata(d1 = {"\u0000\u0013\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0003*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u0019\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00028\u0000H\u0096@ø\u0001\u0000¢\u0006\u0002\u0010\u0005\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u0006"}, d2 = {"kotlinx/coroutines/flow/FlowKt__CollectKt$collect$3", "Lkotlinx/coroutines/flow/FlowCollector;", "emit", "", "value", "(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core"}, k = 1, mv = {1, 8, 0}, xi = 176)
|
||||
/* loaded from: classes.dex */
|
||||
public final class FlowKt__CollectKt$collect$3<T> implements FlowCollector<T> {
|
||||
final /* synthetic */ Function2<T, Continuation<? super Unit>, Object> $action;
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public FlowKt__CollectKt$collect$3(Function2<? super T, ? super Continuation<? super Unit>, ? extends Object> function2) {
|
||||
this.$action = function2;
|
||||
}
|
||||
|
||||
@Override // kotlinx.coroutines.flow.FlowCollector
|
||||
public Object emit(T t, Continuation<? super Unit> continuation) {
|
||||
Object invoke = this.$action.invoke(t, continuation);
|
||||
return invoke == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? invoke : Unit.INSTANCE;
|
||||
}
|
||||
|
||||
public Object emit$$forInline(T t, final Continuation<? super Unit> continuation) {
|
||||
InlineMarker.mark(4);
|
||||
new ContinuationImpl(continuation) { // from class: kotlinx.coroutines.flow.FlowKt__CollectKt$collect$3$emit$1
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= Integer.MIN_VALUE;
|
||||
return FlowKt__CollectKt$collect$3.this.emit(null, this);
|
||||
}
|
||||
};
|
||||
InlineMarker.mark(5);
|
||||
this.$action.invoke(t, continuation);
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
@ -0,0 +1,60 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.Boxing;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.jvm.functions.Function3;
|
||||
import kotlin.jvm.internal.InlineMarker;
|
||||
|
||||
/* JADX INFO: Add missing generic type declarations: [T] */
|
||||
/* compiled from: Collect.kt */
|
||||
@Metadata(d1 = {"\u0000\u0019\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0003*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u0019\u0010\u0004\u001a\u00020\u00052\u0006\u0010\u0006\u001a\u00028\u0000H\u0096@ø\u0001\u0000¢\u0006\u0002\u0010\u0007R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u000e¢\u0006\u0002\n\u0000\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\b"}, d2 = {"kotlinx/coroutines/flow/FlowKt__CollectKt$collectIndexed$2", "Lkotlinx/coroutines/flow/FlowCollector;", "index", "", "emit", "", "value", "(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core"}, k = 1, mv = {1, 8, 0}, xi = 176)
|
||||
/* loaded from: classes.dex */
|
||||
public final class FlowKt__CollectKt$collectIndexed$2<T> implements FlowCollector<T> {
|
||||
final /* synthetic */ Function3<Integer, T, Continuation<? super Unit>, Object> $action;
|
||||
private int index;
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public FlowKt__CollectKt$collectIndexed$2(Function3<? super Integer, ? super T, ? super Continuation<? super Unit>, ? extends Object> function3) {
|
||||
this.$action = function3;
|
||||
}
|
||||
|
||||
@Override // kotlinx.coroutines.flow.FlowCollector
|
||||
public Object emit(T t, Continuation<? super Unit> continuation) {
|
||||
Function3<Integer, T, Continuation<? super Unit>, Object> function3 = this.$action;
|
||||
int i = this.index;
|
||||
this.index = i + 1;
|
||||
if (i >= 0) {
|
||||
Object invoke = function3.invoke(Boxing.boxInt(i), t, continuation);
|
||||
return invoke == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? invoke : Unit.INSTANCE;
|
||||
}
|
||||
throw new ArithmeticException("Index overflow has happened");
|
||||
}
|
||||
|
||||
public Object emit$$forInline(T t, final Continuation<? super Unit> continuation) {
|
||||
InlineMarker.mark(4);
|
||||
new ContinuationImpl(continuation) { // from class: kotlinx.coroutines.flow.FlowKt__CollectKt$collectIndexed$2$emit$1
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= Integer.MIN_VALUE;
|
||||
return FlowKt__CollectKt$collectIndexed$2.this.emit(null, this);
|
||||
}
|
||||
};
|
||||
InlineMarker.mark(5);
|
||||
Function3<Integer, T, Continuation<? super Unit>, Object> function3 = this.$action;
|
||||
int i = this.index;
|
||||
this.index = i + 1;
|
||||
if (i >= 0) {
|
||||
function3.invoke(Integer.valueOf(i), t, continuation);
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
throw new ArithmeticException("Index overflow has happened");
|
||||
}
|
||||
}
|
@ -0,0 +1,56 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* compiled from: Collect.kt */
|
||||
@Metadata(d1 = {"\u0000\f\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0000\u0010\u0003\u001a\u00020\u0002\"\u0004\b\u0000\u0010\u0000*\u00020\u0001H\u008a@"}, d2 = {"T", "Lkotlinx/coroutines/CoroutineScope;", "", "<anonymous>"}, k = 3, mv = {1, 8, 0})
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__CollectKt$launchIn$1", f = "Collect.kt", i = {}, l = {50}, m = "invokeSuspend", n = {}, s = {})
|
||||
/* loaded from: classes.dex */
|
||||
final class FlowKt__CollectKt$launchIn$1 extends SuspendLambda implements Function2<CoroutineScope, Continuation<? super Unit>, Object> {
|
||||
final /* synthetic */ Flow<T> $this_launchIn;
|
||||
int label;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
FlowKt__CollectKt$launchIn$1(Flow<? extends T> flow, Continuation<? super FlowKt__CollectKt$launchIn$1> continuation) {
|
||||
super(2, continuation);
|
||||
this.$this_launchIn = flow;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
||||
return new FlowKt__CollectKt$launchIn$1(this.$this_launchIn, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(CoroutineScope coroutineScope, Continuation<? super Unit> continuation) {
|
||||
return ((FlowKt__CollectKt$launchIn$1) create(coroutineScope, continuation)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.label;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
this.label = 1;
|
||||
if (FlowKt.collect(this.$this_launchIn, this) == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
} else {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
@ -0,0 +1,70 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Deprecated;
|
||||
import kotlin.DeprecationLevel;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.functions.Function3;
|
||||
import kotlin.jvm.internal.InlineMarker;
|
||||
import kotlinx.coroutines.BuildersKt__Builders_commonKt;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
import kotlinx.coroutines.Job;
|
||||
import kotlinx.coroutines.flow.internal.NopCollector;
|
||||
|
||||
/* compiled from: Collect.kt */
|
||||
@Metadata(d1 = {"\u0000F\n\u0000\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0010\b\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\u001a\u0019\u0010\u0000\u001a\u00020\u0001*\u0006\u0012\u0002\b\u00030\u0002H\u0086@ø\u0001\u0000¢\u0006\u0002\u0010\u0003\u001aV\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0004*\b\u0012\u0004\u0012\u0002H\u00040\u000223\b\u0004\u0010\u0005\u001a-\b\u0001\u0012\u0013\u0012\u0011H\u0004¢\u0006\f\b\u0007\u0012\b\b\b\u0012\u0004\b\b(\t\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00010\n\u0012\u0006\u0012\u0004\u0018\u00010\u000b0\u0006H\u0087Hø\u0001\u0000¢\u0006\u0002\u0010\f\u001ak\u0010\r\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0004*\b\u0012\u0004\u0012\u0002H\u00040\u00022H\b\u0004\u0010\u0005\u001aB\b\u0001\u0012\u0013\u0012\u00110\u000f¢\u0006\f\b\u0007\u0012\b\b\b\u0012\u0004\b\b(\u0010\u0012\u0013\u0012\u0011H\u0004¢\u0006\f\b\u0007\u0012\b\b\b\u0012\u0004\b\b(\t\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00010\n\u0012\u0006\u0012\u0004\u0018\u00010\u000b0\u000eH\u0086Hø\u0001\u0000¢\u0006\u0002\u0010\u0011\u001aT\u0010\u0012\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0004*\b\u0012\u0004\u0012\u0002H\u00040\u000221\u0010\u0005\u001a-\b\u0001\u0012\u0013\u0012\u0011H\u0004¢\u0006\f\b\u0007\u0012\b\b\b\u0012\u0004\b\b(\t\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00010\n\u0012\u0006\u0012\u0004\u0018\u00010\u000b0\u0006H\u0086@ø\u0001\u0000¢\u0006\u0002\u0010\f\u001a/\u0010\u0013\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0004*\b\u0012\u0004\u0012\u0002H\u00040\u00142\f\u0010\u0015\u001a\b\u0012\u0004\u0012\u0002H\u00040\u0002H\u0086@ø\u0001\u0000¢\u0006\u0002\u0010\u0016\u001a\u001e\u0010\u0017\u001a\u00020\u0018\"\u0004\b\u0000\u0010\u0004*\b\u0012\u0004\u0012\u0002H\u00040\u00022\u0006\u0010\u0019\u001a\u00020\u001a\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u001b"}, d2 = {"collect", "", "Lkotlinx/coroutines/flow/Flow;", "(Lkotlinx/coroutines/flow/Flow;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "T", "action", "Lkotlin/Function2;", "Lkotlin/ParameterName;", "name", "value", "Lkotlin/coroutines/Continuation;", "", "(Lkotlinx/coroutines/flow/Flow;Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "collectIndexed", "Lkotlin/Function3;", "", "index", "(Lkotlinx/coroutines/flow/Flow;Lkotlin/jvm/functions/Function3;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "collectLatest", "emitAll", "Lkotlinx/coroutines/flow/FlowCollector;", "flow", "(Lkotlinx/coroutines/flow/FlowCollector;Lkotlinx/coroutines/flow/Flow;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "launchIn", "Lkotlinx/coroutines/Job;", "scope", "Lkotlinx/coroutines/CoroutineScope;", "kotlinx-coroutines-core"}, k = 5, mv = {1, 8, 0}, xi = 48, xs = "kotlinx/coroutines/flow/FlowKt")
|
||||
/* loaded from: classes.dex */
|
||||
final /* synthetic */ class FlowKt__CollectKt {
|
||||
public static final Object collect(Flow<?> flow, Continuation<? super Unit> continuation) {
|
||||
Object collect = flow.collect(NopCollector.INSTANCE, continuation);
|
||||
return collect == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? collect : Unit.INSTANCE;
|
||||
}
|
||||
|
||||
public static final <T> Job launchIn(Flow<? extends T> flow, CoroutineScope coroutineScope) {
|
||||
Job launch$default;
|
||||
launch$default = BuildersKt__Builders_commonKt.launch$default(coroutineScope, null, null, new FlowKt__CollectKt$launchIn$1(flow, null), 3, null);
|
||||
return launch$default;
|
||||
}
|
||||
|
||||
public static final <T> Object collectIndexed(Flow<? extends T> flow, Function3<? super Integer, ? super T, ? super Continuation<? super Unit>, ? extends Object> function3, Continuation<? super Unit> continuation) {
|
||||
Object collect = flow.collect(new FlowKt__CollectKt$collectIndexed$2(function3), continuation);
|
||||
return collect == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? collect : Unit.INSTANCE;
|
||||
}
|
||||
|
||||
private static final <T> Object collectIndexed$$forInline(Flow<? extends T> flow, Function3<? super Integer, ? super T, ? super Continuation<? super Unit>, ? extends Object> function3, Continuation<? super Unit> continuation) {
|
||||
FlowKt__CollectKt$collectIndexed$2 flowKt__CollectKt$collectIndexed$2 = new FlowKt__CollectKt$collectIndexed$2(function3);
|
||||
InlineMarker.mark(0);
|
||||
flow.collect(flowKt__CollectKt$collectIndexed$2, continuation);
|
||||
InlineMarker.mark(1);
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
|
||||
public static final <T> Object collectLatest(Flow<? extends T> flow, Function2<? super T, ? super Continuation<? super Unit>, ? extends Object> function2, Continuation<? super Unit> continuation) {
|
||||
Object collect = FlowKt.collect(FlowKt__ContextKt.buffer$default(FlowKt.mapLatest(flow, function2), 0, null, 2, null), continuation);
|
||||
return collect == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? collect : Unit.INSTANCE;
|
||||
}
|
||||
|
||||
public static final <T> Object emitAll(FlowCollector<? super T> flowCollector, Flow<? extends T> flow, Continuation<? super Unit> continuation) {
|
||||
FlowKt.ensureActive(flowCollector);
|
||||
Object collect = flow.collect(flowCollector, continuation);
|
||||
return collect == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? collect : Unit.INSTANCE;
|
||||
}
|
||||
|
||||
@Deprecated(level = DeprecationLevel.HIDDEN, message = "Backwards compatibility with JS and K/N")
|
||||
public static final /* synthetic */ <T> Object collect(Flow<? extends T> flow, Function2<? super T, ? super Continuation<? super Unit>, ? extends Object> function2, Continuation<? super Unit> continuation) {
|
||||
Object collect = flow.collect(new FlowKt__CollectKt$collect$3(function2), continuation);
|
||||
return collect == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? collect : Unit.INSTANCE;
|
||||
}
|
||||
|
||||
@Deprecated(level = DeprecationLevel.HIDDEN, message = "Backwards compatibility with JS and K/N")
|
||||
private static final /* synthetic */ <T> Object collect$$forInline(Flow<? extends T> flow, Function2<? super T, ? super Continuation<? super Unit>, ? extends Object> function2, Continuation<? super Unit> continuation) {
|
||||
FlowKt__CollectKt$collect$3 flowKt__CollectKt$collect$3 = new FlowKt__CollectKt$collect$3(function2);
|
||||
InlineMarker.mark(0);
|
||||
flow.collect(flowKt__CollectKt$collect$3, continuation);
|
||||
InlineMarker.mark(1);
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
@ -0,0 +1,28 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import java.util.Collection;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
|
||||
/* compiled from: Collection.kt */
|
||||
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__CollectionKt", f = "Collection.kt", i = {0}, l = {26}, m = "toCollection", n = {"destination"}, s = {"L$0"})
|
||||
/* loaded from: classes.dex */
|
||||
final class FlowKt__CollectionKt$toCollection$1<T, C extends Collection<? super T>> extends ContinuationImpl {
|
||||
Object L$0;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
FlowKt__CollectionKt$toCollection$1(Continuation<? super FlowKt__CollectionKt$toCollection$1> continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= Integer.MIN_VALUE;
|
||||
return FlowKt.toCollection(null, null, this);
|
||||
}
|
||||
}
|
@ -0,0 +1,91 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
|
||||
/* compiled from: Collection.kt */
|
||||
@Metadata(d1 = {"\u0000(\n\u0002\b\u0003\n\u0002\u0010\u001f\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010 \n\u0002\u0010!\n\u0002\b\u0002\n\u0002\u0010\"\n\u0002\u0010#\n\u0002\b\u0002\u001a;\u0010\u0000\u001a\u0002H\u0001\"\u0004\b\u0000\u0010\u0002\"\u0010\b\u0001\u0010\u0001*\n\u0012\u0006\b\u0000\u0012\u0002H\u00020\u0003*\b\u0012\u0004\u0012\u0002H\u00020\u00042\u0006\u0010\u0005\u001a\u0002H\u0001H\u0086@ø\u0001\u0000¢\u0006\u0002\u0010\u0006\u001a7\u0010\u0007\u001a\b\u0012\u0004\u0012\u0002H\u00020\b\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00042\u000e\b\u0002\u0010\u0005\u001a\b\u0012\u0004\u0012\u0002H\u00020\tH\u0086@ø\u0001\u0000¢\u0006\u0002\u0010\n\u001a7\u0010\u000b\u001a\b\u0012\u0004\u0012\u0002H\u00020\f\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00042\u000e\b\u0002\u0010\u0005\u001a\b\u0012\u0004\u0012\u0002H\u00020\rH\u0086@ø\u0001\u0000¢\u0006\u0002\u0010\u000e\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u000f"}, d2 = {"toCollection", "C", "T", "", "Lkotlinx/coroutines/flow/Flow;", "destination", "(Lkotlinx/coroutines/flow/Flow;Ljava/util/Collection;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "toList", "", "", "(Lkotlinx/coroutines/flow/Flow;Ljava/util/List;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "toSet", "", "", "(Lkotlinx/coroutines/flow/Flow;Ljava/util/Set;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core"}, k = 5, mv = {1, 8, 0}, xi = 48, xs = "kotlinx/coroutines/flow/FlowKt")
|
||||
/* loaded from: classes.dex */
|
||||
final /* synthetic */ class FlowKt__CollectionKt {
|
||||
public static final <T> Object toList(Flow<? extends T> flow, List<T> list, Continuation<? super List<? extends T>> continuation) {
|
||||
return FlowKt.toCollection(flow, list, continuation);
|
||||
}
|
||||
|
||||
public static /* synthetic */ Object toList$default(Flow flow, List list, Continuation continuation, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
list = new ArrayList();
|
||||
}
|
||||
return FlowKt.toList(flow, list, continuation);
|
||||
}
|
||||
|
||||
public static final <T> Object toSet(Flow<? extends T> flow, Set<T> set, Continuation<? super Set<? extends T>> continuation) {
|
||||
return FlowKt.toCollection(flow, set, continuation);
|
||||
}
|
||||
|
||||
public static /* synthetic */ Object toSet$default(Flow flow, Set set, Continuation continuation, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
set = new LinkedHashSet();
|
||||
}
|
||||
return FlowKt.toSet(flow, set, continuation);
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:14:0x0037 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0024 */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public static final <T, C extends java.util.Collection<? super T>> java.lang.Object toCollection(kotlinx.coroutines.flow.Flow<? extends T> r4, final C r5, kotlin.coroutines.Continuation<? super C> r6) {
|
||||
/*
|
||||
boolean r0 = r6 instanceof kotlinx.coroutines.flow.FlowKt__CollectionKt$toCollection$1
|
||||
if (r0 == 0) goto L14
|
||||
r0 = r6
|
||||
kotlinx.coroutines.flow.FlowKt__CollectionKt$toCollection$1 r0 = (kotlinx.coroutines.flow.FlowKt__CollectionKt$toCollection$1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r1 = r1 & r2
|
||||
if (r1 == 0) goto L14
|
||||
int r6 = r0.label
|
||||
int r6 = r6 - r2
|
||||
r0.label = r6
|
||||
goto L19
|
||||
L14:
|
||||
kotlinx.coroutines.flow.FlowKt__CollectionKt$toCollection$1 r0 = new kotlinx.coroutines.flow.FlowKt__CollectionKt$toCollection$1
|
||||
r0.<init>(r6)
|
||||
L19:
|
||||
java.lang.Object r6 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L37
|
||||
if (r2 != r3) goto L2f
|
||||
java.lang.Object r4 = r0.L$0
|
||||
r5 = r4
|
||||
java.util.Collection r5 = (java.util.Collection) r5
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L4c
|
||||
L2f:
|
||||
java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
|
||||
java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r4.<init>(r5)
|
||||
throw r4
|
||||
L37:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
kotlinx.coroutines.flow.FlowKt__CollectionKt$toCollection$2 r6 = new kotlinx.coroutines.flow.FlowKt__CollectionKt$toCollection$2
|
||||
r6.<init>()
|
||||
kotlinx.coroutines.flow.FlowCollector r6 = (kotlinx.coroutines.flow.FlowCollector) r6
|
||||
r0.L$0 = r5
|
||||
r0.label = r3
|
||||
java.lang.Object r4 = r4.collect(r6, r0)
|
||||
if (r4 != r1) goto L4c
|
||||
return r1
|
||||
L4c:
|
||||
return r5
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.FlowKt__CollectionKt.toCollection(kotlinx.coroutines.flow.Flow, java.util.Collection, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
}
|
@ -0,0 +1,80 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Deprecated;
|
||||
import kotlin.DeprecationLevel;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.CoroutineContext;
|
||||
import kotlin.coroutines.EmptyCoroutineContext;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlinx.coroutines.Job;
|
||||
import kotlinx.coroutines.channels.BufferOverflow;
|
||||
import kotlinx.coroutines.flow.internal.ChannelFlowOperatorImpl;
|
||||
import kotlinx.coroutines.flow.internal.FusibleFlow;
|
||||
|
||||
/* compiled from: Context.kt */
|
||||
@Metadata(d1 = {"\u0000&\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\u001a\u0015\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0003H\u0002¢\u0006\u0002\b\u0004\u001a(\u0010\u0005\u001a\b\u0012\u0004\u0012\u0002H\u00070\u0006\"\u0004\b\u0000\u0010\u0007*\b\u0012\u0004\u0012\u0002H\u00070\u00062\b\b\u0002\u0010\b\u001a\u00020\tH\u0007\u001a0\u0010\u0005\u001a\b\u0012\u0004\u0012\u0002H\u00070\u0006\"\u0004\b\u0000\u0010\u0007*\b\u0012\u0004\u0012\u0002H\u00070\u00062\b\b\u0002\u0010\b\u001a\u00020\t2\b\b\u0002\u0010\n\u001a\u00020\u000b\u001a\u001c\u0010\f\u001a\b\u0012\u0004\u0012\u0002H\u00070\u0006\"\u0004\b\u0000\u0010\u0007*\b\u0012\u0004\u0012\u0002H\u00070\u0006\u001a\u001c\u0010\r\u001a\b\u0012\u0004\u0012\u0002H\u00070\u0006\"\u0004\b\u0000\u0010\u0007*\b\u0012\u0004\u0012\u0002H\u00070\u0006\u001a$\u0010\u000e\u001a\b\u0012\u0004\u0012\u0002H\u00070\u0006\"\u0004\b\u0000\u0010\u0007*\b\u0012\u0004\u0012\u0002H\u00070\u00062\u0006\u0010\u0002\u001a\u00020\u0003¨\u0006\u000f"}, d2 = {"checkFlowContext", "", "context", "Lkotlin/coroutines/CoroutineContext;", "checkFlowContext$FlowKt__ContextKt", "buffer", "Lkotlinx/coroutines/flow/Flow;", "T", "capacity", "", "onBufferOverflow", "Lkotlinx/coroutines/channels/BufferOverflow;", "cancellable", "conflate", "flowOn", "kotlinx-coroutines-core"}, k = 5, mv = {1, 8, 0}, xi = 48, xs = "kotlinx/coroutines/flow/FlowKt")
|
||||
/* loaded from: classes.dex */
|
||||
final /* synthetic */ class FlowKt__ContextKt {
|
||||
public static /* synthetic */ Flow buffer$default(Flow flow, int i, BufferOverflow bufferOverflow, int i2, Object obj) {
|
||||
if ((i2 & 1) != 0) {
|
||||
i = -2;
|
||||
}
|
||||
if ((i2 & 2) != 0) {
|
||||
bufferOverflow = BufferOverflow.SUSPEND;
|
||||
}
|
||||
return FlowKt.buffer(flow, i, bufferOverflow);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> buffer(Flow<? extends T> flow, int i, BufferOverflow bufferOverflow) {
|
||||
int i2;
|
||||
BufferOverflow bufferOverflow2;
|
||||
if (i < 0 && i != -2 && i != -1) {
|
||||
throw new IllegalArgumentException(("Buffer size should be non-negative, BUFFERED, or CONFLATED, but was " + i).toString());
|
||||
}
|
||||
if (i == -1 && bufferOverflow != BufferOverflow.SUSPEND) {
|
||||
throw new IllegalArgumentException("CONFLATED capacity cannot be used with non-default onBufferOverflow".toString());
|
||||
}
|
||||
if (i == -1) {
|
||||
bufferOverflow2 = BufferOverflow.DROP_OLDEST;
|
||||
i2 = 0;
|
||||
} else {
|
||||
i2 = i;
|
||||
bufferOverflow2 = bufferOverflow;
|
||||
}
|
||||
return flow instanceof FusibleFlow ? FusibleFlow.DefaultImpls.fuse$default((FusibleFlow) flow, null, i2, bufferOverflow2, 1, null) : new ChannelFlowOperatorImpl(flow, null, i2, bufferOverflow2, 2, null);
|
||||
}
|
||||
|
||||
@Deprecated(level = DeprecationLevel.HIDDEN, message = "Since 1.4.0, binary compatibility with earlier versions")
|
||||
public static final /* synthetic */ Flow buffer(Flow flow, int i) {
|
||||
return buffer$default(flow, i, null, 2, null);
|
||||
}
|
||||
|
||||
public static /* synthetic */ Flow buffer$default(Flow flow, int i, int i2, Object obj) {
|
||||
if ((i2 & 1) != 0) {
|
||||
i = -2;
|
||||
}
|
||||
return buffer(flow, i);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> conflate(Flow<? extends T> flow) {
|
||||
return buffer$default(flow, -1, null, 2, null);
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public static final <T> Flow<T> flowOn(Flow<? extends T> flow, CoroutineContext coroutineContext) {
|
||||
checkFlowContext$FlowKt__ContextKt(coroutineContext);
|
||||
return Intrinsics.areEqual(coroutineContext, EmptyCoroutineContext.INSTANCE) ? flow : flow instanceof FusibleFlow ? FusibleFlow.DefaultImpls.fuse$default((FusibleFlow) flow, coroutineContext, 0, null, 6, null) : new ChannelFlowOperatorImpl(flow, coroutineContext, 0, null, 12, null);
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public static final <T> Flow<T> cancellable(Flow<? extends T> flow) {
|
||||
return flow instanceof CancellableFlow ? flow : new CancellableFlowImpl(flow);
|
||||
}
|
||||
|
||||
private static final void checkFlowContext$FlowKt__ContextKt(CoroutineContext coroutineContext) {
|
||||
if (coroutineContext.get(Job.INSTANCE) == null) {
|
||||
return;
|
||||
}
|
||||
throw new IllegalArgumentException(("Flow context cannot contain job in it. Had " + coroutineContext).toString());
|
||||
}
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
|
||||
/* compiled from: Count.kt */
|
||||
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__CountKt", f = "Count.kt", i = {0}, l = {17}, m = "count", n = {"i"}, s = {"L$0"})
|
||||
/* loaded from: classes.dex */
|
||||
final class FlowKt__CountKt$count$1<T> extends ContinuationImpl {
|
||||
Object L$0;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
FlowKt__CountKt$count$1(Continuation<? super FlowKt__CountKt$count$1> continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= Integer.MIN_VALUE;
|
||||
return FlowKt.count(null, this);
|
||||
}
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
|
||||
/* compiled from: Count.kt */
|
||||
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__CountKt", f = "Count.kt", i = {0}, l = {29}, m = "count", n = {"i"}, s = {"L$0"})
|
||||
/* loaded from: classes.dex */
|
||||
final class FlowKt__CountKt$count$3<T> extends ContinuationImpl {
|
||||
Object L$0;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
FlowKt__CountKt$count$3(Continuation<? super FlowKt__CountKt$count$3> continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= Integer.MIN_VALUE;
|
||||
return FlowKt.count(null, null, this);
|
||||
}
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
|
||||
/* compiled from: Count.kt */
|
||||
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__CountKt$count$4", f = "Count.kt", i = {0}, l = {30}, m = "emit", n = {"this"}, s = {"L$0"})
|
||||
/* loaded from: classes.dex */
|
||||
final class FlowKt__CountKt$count$4$emit$1 extends ContinuationImpl {
|
||||
Object L$0;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
final /* synthetic */ FlowKt__CountKt$count$4<T> this$0;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
FlowKt__CountKt$count$4$emit$1(FlowKt__CountKt$count$4<? super T> flowKt__CountKt$count$4, Continuation<? super FlowKt__CountKt$count$4$emit$1> continuation) {
|
||||
super(continuation);
|
||||
this.this$0 = flowKt__CountKt$count$4;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= Integer.MIN_VALUE;
|
||||
return this.this$0.emit(null, this);
|
||||
}
|
||||
}
|
@ -0,0 +1,89 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.internal.Ref;
|
||||
|
||||
/* compiled from: Count.kt */
|
||||
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0004\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u00022\u0006\u0010\u0003\u001a\u0002H\u0002H\u008a@¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"<anonymous>", "", "T", "value", "emit", "(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;"}, k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
final class FlowKt__CountKt$count$4<T> implements FlowCollector {
|
||||
final /* synthetic */ Ref.IntRef $i;
|
||||
final /* synthetic */ Function2<T, Continuation<? super Boolean>, Object> $predicate;
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
FlowKt__CountKt$count$4(Function2<? super T, ? super Continuation<? super Boolean>, ? extends Object> function2, Ref.IntRef intRef) {
|
||||
this.$predicate = function2;
|
||||
this.$i = intRef;
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:12:0x004f */
|
||||
/* JADX WARN: Removed duplicated region for block: B:18:0x0036 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0024 */
|
||||
@Override // kotlinx.coroutines.flow.FlowCollector
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object emit(T r5, kotlin.coroutines.Continuation<? super kotlin.Unit> r6) {
|
||||
/*
|
||||
r4 = this;
|
||||
boolean r0 = r6 instanceof kotlinx.coroutines.flow.FlowKt__CountKt$count$4$emit$1
|
||||
if (r0 == 0) goto L14
|
||||
r0 = r6
|
||||
kotlinx.coroutines.flow.FlowKt__CountKt$count$4$emit$1 r0 = (kotlinx.coroutines.flow.FlowKt__CountKt$count$4$emit$1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r1 = r1 & r2
|
||||
if (r1 == 0) goto L14
|
||||
int r6 = r0.label
|
||||
int r6 = r6 - r2
|
||||
r0.label = r6
|
||||
goto L19
|
||||
L14:
|
||||
kotlinx.coroutines.flow.FlowKt__CountKt$count$4$emit$1 r0 = new kotlinx.coroutines.flow.FlowKt__CountKt$count$4$emit$1
|
||||
r0.<init>(r4, r6)
|
||||
L19:
|
||||
java.lang.Object r6 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L36
|
||||
if (r2 != r3) goto L2e
|
||||
java.lang.Object r5 = r0.L$0
|
||||
kotlinx.coroutines.flow.FlowKt__CountKt$count$4 r5 = (kotlinx.coroutines.flow.FlowKt__CountKt$count$4) r5
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L47
|
||||
L2e:
|
||||
java.lang.IllegalStateException r5 = new java.lang.IllegalStateException
|
||||
java.lang.String r6 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r5.<init>(r6)
|
||||
throw r5
|
||||
L36:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
kotlin.jvm.functions.Function2<T, kotlin.coroutines.Continuation<? super java.lang.Boolean>, java.lang.Object> r6 = r4.$predicate
|
||||
r0.L$0 = r4
|
||||
r0.label = r3
|
||||
java.lang.Object r6 = r6.invoke(r5, r0)
|
||||
if (r6 != r1) goto L46
|
||||
return r1
|
||||
L46:
|
||||
r5 = r4
|
||||
L47:
|
||||
java.lang.Boolean r6 = (java.lang.Boolean) r6
|
||||
boolean r6 = r6.booleanValue()
|
||||
if (r6 == 0) goto L5a
|
||||
kotlin.jvm.internal.Ref$IntRef r6 = r5.$i
|
||||
int r0 = r6.element
|
||||
int r0 = r0 + r3
|
||||
r6.element = r0
|
||||
kotlin.jvm.internal.Ref$IntRef r5 = r5.$i
|
||||
int r5 = r5.element
|
||||
L5a:
|
||||
kotlin.Unit r5 = kotlin.Unit.INSTANCE
|
||||
return r5
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.FlowKt__CountKt$count$4.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
}
|
130
02-Easy5/E5/sources/kotlinx/coroutines/flow/FlowKt__CountKt.java
Normal file
130
02-Easy5/E5/sources/kotlinx/coroutines/flow/FlowKt__CountKt.java
Normal file
@ -0,0 +1,130 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
|
||||
/* compiled from: Count.kt */
|
||||
@Metadata(d1 = {"\u0000$\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000b\n\u0002\u0010\u0000\n\u0002\b\u0002\u001a!\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u0003H\u0086@ø\u0001\u0000¢\u0006\u0002\u0010\u0004\u001aE\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00032\"\u0010\u0005\u001a\u001e\b\u0001\u0012\u0004\u0012\u0002H\u0002\u0012\n\u0012\b\u0012\u0004\u0012\u00020\b0\u0007\u0012\u0006\u0012\u0004\u0018\u00010\t0\u0006H\u0086@ø\u0001\u0000¢\u0006\u0002\u0010\n\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u000b"}, d2 = {"count", "", "T", "Lkotlinx/coroutines/flow/Flow;", "(Lkotlinx/coroutines/flow/Flow;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "predicate", "Lkotlin/Function2;", "Lkotlin/coroutines/Continuation;", "", "", "(Lkotlinx/coroutines/flow/Flow;Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core"}, k = 5, mv = {1, 8, 0}, xi = 48, xs = "kotlinx/coroutines/flow/FlowKt")
|
||||
/* loaded from: classes.dex */
|
||||
final /* synthetic */ class FlowKt__CountKt {
|
||||
/* JADX WARN: Removed duplicated region for block: B:15:0x0036 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0024 */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public static final <T> java.lang.Object count(kotlinx.coroutines.flow.Flow<? extends T> r4, kotlin.coroutines.Continuation<? super java.lang.Integer> r5) {
|
||||
/*
|
||||
boolean r0 = r5 instanceof kotlinx.coroutines.flow.FlowKt__CountKt$count$1
|
||||
if (r0 == 0) goto L14
|
||||
r0 = r5
|
||||
kotlinx.coroutines.flow.FlowKt__CountKt$count$1 r0 = (kotlinx.coroutines.flow.FlowKt__CountKt$count$1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r1 = r1 & r2
|
||||
if (r1 == 0) goto L14
|
||||
int r5 = r0.label
|
||||
int r5 = r5 - r2
|
||||
r0.label = r5
|
||||
goto L19
|
||||
L14:
|
||||
kotlinx.coroutines.flow.FlowKt__CountKt$count$1 r0 = new kotlinx.coroutines.flow.FlowKt__CountKt$count$1
|
||||
r0.<init>(r5)
|
||||
L19:
|
||||
java.lang.Object r5 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L36
|
||||
if (r2 != r3) goto L2e
|
||||
java.lang.Object r4 = r0.L$0
|
||||
kotlin.jvm.internal.Ref$IntRef r4 = (kotlin.jvm.internal.Ref.IntRef) r4
|
||||
kotlin.ResultKt.throwOnFailure(r5)
|
||||
goto L51
|
||||
L2e:
|
||||
java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
|
||||
java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r4.<init>(r5)
|
||||
throw r4
|
||||
L36:
|
||||
kotlin.ResultKt.throwOnFailure(r5)
|
||||
kotlin.jvm.internal.Ref$IntRef r5 = new kotlin.jvm.internal.Ref$IntRef
|
||||
r5.<init>()
|
||||
kotlinx.coroutines.flow.FlowKt__CountKt$count$2 r2 = new kotlinx.coroutines.flow.FlowKt__CountKt$count$2
|
||||
r2.<init>()
|
||||
kotlinx.coroutines.flow.FlowCollector r2 = (kotlinx.coroutines.flow.FlowCollector) r2
|
||||
r0.L$0 = r5
|
||||
r0.label = r3
|
||||
java.lang.Object r4 = r4.collect(r2, r0)
|
||||
if (r4 != r1) goto L50
|
||||
return r1
|
||||
L50:
|
||||
r4 = r5
|
||||
L51:
|
||||
int r4 = r4.element
|
||||
java.lang.Integer r4 = kotlin.coroutines.jvm.internal.Boxing.boxInt(r4)
|
||||
return r4
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.FlowKt__CountKt.count(kotlinx.coroutines.flow.Flow, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:15:0x0036 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0024 */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public static final <T> java.lang.Object count(kotlinx.coroutines.flow.Flow<? extends T> r4, kotlin.jvm.functions.Function2<? super T, ? super kotlin.coroutines.Continuation<? super java.lang.Boolean>, ? extends java.lang.Object> r5, kotlin.coroutines.Continuation<? super java.lang.Integer> r6) {
|
||||
/*
|
||||
boolean r0 = r6 instanceof kotlinx.coroutines.flow.FlowKt__CountKt$count$3
|
||||
if (r0 == 0) goto L14
|
||||
r0 = r6
|
||||
kotlinx.coroutines.flow.FlowKt__CountKt$count$3 r0 = (kotlinx.coroutines.flow.FlowKt__CountKt$count$3) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r1 = r1 & r2
|
||||
if (r1 == 0) goto L14
|
||||
int r6 = r0.label
|
||||
int r6 = r6 - r2
|
||||
r0.label = r6
|
||||
goto L19
|
||||
L14:
|
||||
kotlinx.coroutines.flow.FlowKt__CountKt$count$3 r0 = new kotlinx.coroutines.flow.FlowKt__CountKt$count$3
|
||||
r0.<init>(r6)
|
||||
L19:
|
||||
java.lang.Object r6 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L36
|
||||
if (r2 != r3) goto L2e
|
||||
java.lang.Object r4 = r0.L$0
|
||||
kotlin.jvm.internal.Ref$IntRef r4 = (kotlin.jvm.internal.Ref.IntRef) r4
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L51
|
||||
L2e:
|
||||
java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
|
||||
java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r4.<init>(r5)
|
||||
throw r4
|
||||
L36:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
kotlin.jvm.internal.Ref$IntRef r6 = new kotlin.jvm.internal.Ref$IntRef
|
||||
r6.<init>()
|
||||
kotlinx.coroutines.flow.FlowKt__CountKt$count$4 r2 = new kotlinx.coroutines.flow.FlowKt__CountKt$count$4
|
||||
r2.<init>(r5, r6)
|
||||
kotlinx.coroutines.flow.FlowCollector r2 = (kotlinx.coroutines.flow.FlowCollector) r2
|
||||
r0.L$0 = r6
|
||||
r0.label = r3
|
||||
java.lang.Object r4 = r4.collect(r2, r0)
|
||||
if (r4 != r1) goto L50
|
||||
return r1
|
||||
L50:
|
||||
r4 = r6
|
||||
L51:
|
||||
int r4 = r4.element
|
||||
java.lang.Integer r4 = kotlin.coroutines.jvm.internal.Boxing.boxInt(r4)
|
||||
return r4
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.FlowKt__CountKt.count(kotlinx.coroutines.flow.Flow, kotlin.jvm.functions.Function2, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
}
|
@ -0,0 +1,67 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Ref;
|
||||
import kotlinx.coroutines.flow.internal.NullSurrogateKt;
|
||||
import kotlinx.coroutines.internal.Symbol;
|
||||
|
||||
/* compiled from: Delay.kt */
|
||||
@Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u0002\n\u0000\u0010\u0002\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0000H\u008a@"}, d2 = {"T", "", "<anonymous>"}, k = 3, mv = {1, 8, 0})
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__DelayKt$debounceInternal$1$3$1", f = "Delay.kt", i = {}, l = {232}, m = "invokeSuspend", n = {}, s = {})
|
||||
/* loaded from: classes.dex */
|
||||
final class FlowKt__DelayKt$debounceInternal$1$3$1 extends SuspendLambda implements Function1<Continuation<? super Unit>, Object> {
|
||||
final /* synthetic */ FlowCollector<T> $downstream;
|
||||
final /* synthetic */ Ref.ObjectRef<Object> $lastValue;
|
||||
int label;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
FlowKt__DelayKt$debounceInternal$1$3$1(FlowCollector<? super T> flowCollector, Ref.ObjectRef<Object> objectRef, Continuation<? super FlowKt__DelayKt$debounceInternal$1$3$1> continuation) {
|
||||
super(1, continuation);
|
||||
this.$downstream = flowCollector;
|
||||
this.$lastValue = objectRef;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation<Unit> create(Continuation<?> continuation) {
|
||||
return new FlowKt__DelayKt$debounceInternal$1$3$1(this.$downstream, this.$lastValue, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final Object invoke(Continuation<? super Unit> continuation) {
|
||||
return ((FlowKt__DelayKt$debounceInternal$1$3$1) create(continuation)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.label;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
FlowCollector<T> flowCollector = this.$downstream;
|
||||
Symbol symbol = NullSurrogateKt.NULL;
|
||||
Object obj2 = this.$lastValue.element;
|
||||
if (obj2 == symbol) {
|
||||
obj2 = null;
|
||||
}
|
||||
this.label = 1;
|
||||
if (flowCollector.emit(obj2, this) == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
} else {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
}
|
||||
this.$lastValue.element = null;
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
@ -0,0 +1,102 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.internal.Ref;
|
||||
import kotlinx.coroutines.channels.ChannelResult;
|
||||
import kotlinx.coroutines.flow.internal.NullSurrogateKt;
|
||||
import kotlinx.coroutines.internal.Symbol;
|
||||
|
||||
/* compiled from: Delay.kt */
|
||||
@Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0002\n\u0000\u0010\u0005\u001a\u00020\u0004\"\u0004\b\u0000\u0010\u00002\f\u0010\u0003\u001a\b\u0012\u0004\u0012\u00020\u00020\u0001H\u008a@"}, d2 = {"T", "Lkotlinx/coroutines/channels/ChannelResult;", "", "value", "", "<anonymous>"}, k = 3, mv = {1, 8, 0})
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__DelayKt$debounceInternal$1$3$2", f = "Delay.kt", i = {0}, l = {242}, m = "invokeSuspend", n = {"$this$onFailure_u2dWpGqRn0$iv"}, s = {"L$0"})
|
||||
/* loaded from: classes.dex */
|
||||
final class FlowKt__DelayKt$debounceInternal$1$3$2 extends SuspendLambda implements Function2<ChannelResult<? extends Object>, Continuation<? super Unit>, Object> {
|
||||
final /* synthetic */ FlowCollector<T> $downstream;
|
||||
final /* synthetic */ Ref.ObjectRef<Object> $lastValue;
|
||||
/* synthetic */ Object L$0;
|
||||
Object L$1;
|
||||
int label;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
FlowKt__DelayKt$debounceInternal$1$3$2(Ref.ObjectRef<Object> objectRef, FlowCollector<? super T> flowCollector, Continuation<? super FlowKt__DelayKt$debounceInternal$1$3$2> continuation) {
|
||||
super(2, continuation);
|
||||
this.$lastValue = objectRef;
|
||||
this.$downstream = flowCollector;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
||||
FlowKt__DelayKt$debounceInternal$1$3$2 flowKt__DelayKt$debounceInternal$1$3$2 = new FlowKt__DelayKt$debounceInternal$1$3$2(this.$lastValue, this.$downstream, continuation);
|
||||
flowKt__DelayKt$debounceInternal$1$3$2.L$0 = obj;
|
||||
return flowKt__DelayKt$debounceInternal$1$3$2;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public /* bridge */ /* synthetic */ Object invoke(ChannelResult<? extends Object> channelResult, Continuation<? super Unit> continuation) {
|
||||
return m1889invokeWpGqRn0(channelResult.getHolder(), continuation);
|
||||
}
|
||||
|
||||
/* renamed from: invoke-WpGqRn0, reason: not valid java name */
|
||||
public final Object m1889invokeWpGqRn0(Object obj, Continuation<? super Unit> continuation) {
|
||||
return ((FlowKt__DelayKt$debounceInternal$1$3$2) create(ChannelResult.m1862boximpl(obj), continuation)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* JADX WARN: Type inference failed for: r7v3, types: [T, java.lang.Object] */
|
||||
/* JADX WARN: Type inference failed for: r7v6, types: [T, kotlinx.coroutines.internal.Symbol] */
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
Ref.ObjectRef<Object> objectRef;
|
||||
Ref.ObjectRef<Object> objectRef2;
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.label;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
?? holder = ((ChannelResult) this.L$0).getHolder();
|
||||
Ref.ObjectRef<Object> objectRef3 = this.$lastValue;
|
||||
boolean z = holder instanceof ChannelResult.Failed;
|
||||
if (!z) {
|
||||
objectRef3.element = holder;
|
||||
}
|
||||
objectRef = this.$lastValue;
|
||||
FlowCollector<T> flowCollector = this.$downstream;
|
||||
if (z) {
|
||||
Throwable m1866exceptionOrNullimpl = ChannelResult.m1866exceptionOrNullimpl(holder);
|
||||
if (m1866exceptionOrNullimpl != null) {
|
||||
throw m1866exceptionOrNullimpl;
|
||||
}
|
||||
if (objectRef.element != null) {
|
||||
Symbol symbol = NullSurrogateKt.NULL;
|
||||
Object obj2 = objectRef.element;
|
||||
if (obj2 == symbol) {
|
||||
obj2 = null;
|
||||
}
|
||||
this.L$0 = holder;
|
||||
this.L$1 = objectRef;
|
||||
this.label = 1;
|
||||
if (flowCollector.emit(obj2, this) == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
objectRef2 = objectRef;
|
||||
}
|
||||
objectRef.element = NullSurrogateKt.DONE;
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
objectRef2 = (Ref.ObjectRef) this.L$1;
|
||||
ResultKt.throwOnFailure(obj);
|
||||
objectRef = objectRef2;
|
||||
objectRef.element = NullSurrogateKt.DONE;
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlinx.coroutines.flow.FlowKt__DelayKt$debounceInternal$1$values$1;
|
||||
|
||||
/* compiled from: Delay.kt */
|
||||
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__DelayKt$debounceInternal$1$values$1$1", f = "Delay.kt", i = {}, l = {210}, m = "emit", n = {}, s = {})
|
||||
/* loaded from: classes.dex */
|
||||
final class FlowKt__DelayKt$debounceInternal$1$values$1$1$emit$1 extends ContinuationImpl {
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
final /* synthetic */ FlowKt__DelayKt$debounceInternal$1$values$1.AnonymousClass1<T> this$0;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
FlowKt__DelayKt$debounceInternal$1$values$1$1$emit$1(FlowKt__DelayKt$debounceInternal$1$values$1.AnonymousClass1<? super T> anonymousClass1, Continuation<? super FlowKt__DelayKt$debounceInternal$1$values$1$1$emit$1> continuation) {
|
||||
super(continuation);
|
||||
this.this$0 = anonymousClass1;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= Integer.MIN_VALUE;
|
||||
return this.this$0.emit(null, this);
|
||||
}
|
||||
}
|
@ -0,0 +1,132 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.channels.ProducerScope;
|
||||
|
||||
/* compiled from: Delay.kt */
|
||||
@Metadata(d1 = {"\u0000\u0010\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u0002\n\u0000\u0010\u0004\u001a\u00020\u0003\"\u0004\b\u0000\u0010\u0000*\b\u0012\u0004\u0012\u00020\u00020\u0001H\u008a@"}, d2 = {"T", "Lkotlinx/coroutines/channels/ProducerScope;", "", "", "<anonymous>"}, k = 3, mv = {1, 8, 0})
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__DelayKt$debounceInternal$1$values$1", f = "Delay.kt", i = {}, l = {210}, m = "invokeSuspend", n = {}, s = {})
|
||||
/* loaded from: classes.dex */
|
||||
final class FlowKt__DelayKt$debounceInternal$1$values$1 extends SuspendLambda implements Function2<ProducerScope<? super Object>, Continuation<? super Unit>, Object> {
|
||||
final /* synthetic */ Flow<T> $this_debounceInternal;
|
||||
private /* synthetic */ Object L$0;
|
||||
int label;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
FlowKt__DelayKt$debounceInternal$1$values$1(Flow<? extends T> flow, Continuation<? super FlowKt__DelayKt$debounceInternal$1$values$1> continuation) {
|
||||
super(2, continuation);
|
||||
this.$this_debounceInternal = flow;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
||||
FlowKt__DelayKt$debounceInternal$1$values$1 flowKt__DelayKt$debounceInternal$1$values$1 = new FlowKt__DelayKt$debounceInternal$1$values$1(this.$this_debounceInternal, continuation);
|
||||
flowKt__DelayKt$debounceInternal$1$values$1.L$0 = obj;
|
||||
return flowKt__DelayKt$debounceInternal$1$values$1;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public /* bridge */ /* synthetic */ Object invoke(ProducerScope<? super Object> producerScope, Continuation<? super Unit> continuation) {
|
||||
return invoke2((ProducerScope<Object>) producerScope, continuation);
|
||||
}
|
||||
|
||||
/* renamed from: invoke, reason: avoid collision after fix types in other method */
|
||||
public final Object invoke2(ProducerScope<Object> producerScope, Continuation<? super Unit> continuation) {
|
||||
return ((FlowKt__DelayKt$debounceInternal$1$values$1) create(producerScope, continuation)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* compiled from: Delay.kt */
|
||||
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0004\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u00022\u0006\u0010\u0003\u001a\u0002H\u0002H\u008a@¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"<anonymous>", "", "T", "value", "emit", "(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;"}, k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
/* renamed from: kotlinx.coroutines.flow.FlowKt__DelayKt$debounceInternal$1$values$1$1, reason: invalid class name */
|
||||
static final class AnonymousClass1<T> implements FlowCollector {
|
||||
final /* synthetic */ ProducerScope<Object> $$this$produce;
|
||||
|
||||
AnonymousClass1(ProducerScope<Object> producerScope) {
|
||||
this.$$this$produce = producerScope;
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:15:0x0032 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0024 */
|
||||
@Override // kotlinx.coroutines.flow.FlowCollector
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object emit(T r5, kotlin.coroutines.Continuation<? super kotlin.Unit> r6) {
|
||||
/*
|
||||
r4 = this;
|
||||
boolean r0 = r6 instanceof kotlinx.coroutines.flow.FlowKt__DelayKt$debounceInternal$1$values$1$1$emit$1
|
||||
if (r0 == 0) goto L14
|
||||
r0 = r6
|
||||
kotlinx.coroutines.flow.FlowKt__DelayKt$debounceInternal$1$values$1$1$emit$1 r0 = (kotlinx.coroutines.flow.FlowKt__DelayKt$debounceInternal$1$values$1$1$emit$1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r1 = r1 & r2
|
||||
if (r1 == 0) goto L14
|
||||
int r6 = r0.label
|
||||
int r6 = r6 - r2
|
||||
r0.label = r6
|
||||
goto L19
|
||||
L14:
|
||||
kotlinx.coroutines.flow.FlowKt__DelayKt$debounceInternal$1$values$1$1$emit$1 r0 = new kotlinx.coroutines.flow.FlowKt__DelayKt$debounceInternal$1$values$1$1$emit$1
|
||||
r0.<init>(r4, r6)
|
||||
L19:
|
||||
java.lang.Object r6 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L32
|
||||
if (r2 != r3) goto L2a
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L44
|
||||
L2a:
|
||||
java.lang.IllegalStateException r5 = new java.lang.IllegalStateException
|
||||
java.lang.String r6 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r5.<init>(r6)
|
||||
throw r5
|
||||
L32:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
kotlinx.coroutines.channels.ProducerScope<java.lang.Object> r6 = r4.$$this$produce
|
||||
if (r5 != 0) goto L3b
|
||||
kotlinx.coroutines.internal.Symbol r5 = kotlinx.coroutines.flow.internal.NullSurrogateKt.NULL
|
||||
L3b:
|
||||
r0.label = r3
|
||||
java.lang.Object r5 = r6.send(r5, r0)
|
||||
if (r5 != r1) goto L44
|
||||
return r1
|
||||
L44:
|
||||
kotlin.Unit r5 = kotlin.Unit.INSTANCE
|
||||
return r5
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.FlowKt__DelayKt$debounceInternal$1$values$1.AnonymousClass1.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.label;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
ProducerScope producerScope = (ProducerScope) this.L$0;
|
||||
this.label = 1;
|
||||
if (this.$this_debounceInternal.collect(new AnonymousClass1(producerScope), this) == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
} else {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
@ -0,0 +1,59 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import androidx.constraintlayout.core.motion.utils.TypedValues;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.functions.Function3;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* JADX INFO: Add missing generic type declarations: [T] */
|
||||
/* compiled from: Delay.kt */
|
||||
@Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\u0010\u0005\u001a\u00020\u0004\"\u0004\b\u0000\u0010\u0000*\u00020\u00012\f\u0010\u0003\u001a\b\u0012\u0004\u0012\u00028\u00000\u0002H\u008a@"}, d2 = {"T", "Lkotlinx/coroutines/CoroutineScope;", "Lkotlinx/coroutines/flow/FlowCollector;", "downstream", "", "<anonymous>"}, k = 3, mv = {1, 8, 0})
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__DelayKt$debounceInternal$1", f = "Delay.kt", i = {0, 0, 0, 0, 1, 1, 1}, l = {221, TypedValues.CycleType.TYPE_PATH_ROTATE}, m = "invokeSuspend", n = {"downstream", "values", "lastValue", "timeoutMillis", "downstream", "values", "lastValue"}, s = {"L$0", "L$1", "L$2", "L$3", "L$0", "L$1", "L$2"})
|
||||
/* loaded from: classes.dex */
|
||||
final class FlowKt__DelayKt$debounceInternal$1<T> extends SuspendLambda implements Function3<CoroutineScope, FlowCollector<? super T>, Continuation<? super Unit>, Object> {
|
||||
final /* synthetic */ Flow<T> $this_debounceInternal;
|
||||
final /* synthetic */ Function1<T, Long> $timeoutMillisSelector;
|
||||
private /* synthetic */ Object L$0;
|
||||
/* synthetic */ Object L$1;
|
||||
Object L$2;
|
||||
Object L$3;
|
||||
int label;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
FlowKt__DelayKt$debounceInternal$1(Function1<? super T, Long> function1, Flow<? extends T> flow, Continuation<? super FlowKt__DelayKt$debounceInternal$1> continuation) {
|
||||
super(3, continuation);
|
||||
this.$timeoutMillisSelector = function1;
|
||||
this.$this_debounceInternal = flow;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function3
|
||||
public final Object invoke(CoroutineScope coroutineScope, FlowCollector<? super T> flowCollector, Continuation<? super Unit> continuation) {
|
||||
FlowKt__DelayKt$debounceInternal$1 flowKt__DelayKt$debounceInternal$1 = new FlowKt__DelayKt$debounceInternal$1(this.$timeoutMillisSelector, this.$this_debounceInternal, continuation);
|
||||
flowKt__DelayKt$debounceInternal$1.L$0 = coroutineScope;
|
||||
flowKt__DelayKt$debounceInternal$1.L$1 = flowCollector;
|
||||
return flowKt__DelayKt$debounceInternal$1.invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:38:0x00f5 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:41:0x011f A[RETURN] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:42:0x0120 */
|
||||
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:42:0x0120 -> B:6:0x006f). Please report as a decompilation issue!!! */
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object invokeSuspend(java.lang.Object r18) {
|
||||
/*
|
||||
Method dump skipped, instructions count: 298
|
||||
To view this dump add '--comments-level debug' option
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.FlowKt__DelayKt$debounceInternal$1.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
}
|
@ -0,0 +1,120 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import androidx.constraintlayout.core.motion.utils.TypedValues;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.channels.ProducerScope;
|
||||
|
||||
/* compiled from: Delay.kt */
|
||||
@Metadata(d1 = {"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0000\u0010\u0002\u001a\u00020\u0001*\b\u0012\u0004\u0012\u00020\u00010\u0000H\u008a@"}, d2 = {"Lkotlinx/coroutines/channels/ProducerScope;", "", "<anonymous>"}, k = 3, mv = {1, 8, 0})
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__DelayKt$fixedPeriodTicker$3", f = "Delay.kt", i = {0, 1, 2}, l = {313, 315, TypedValues.AttributesType.TYPE_PATH_ROTATE}, m = "invokeSuspend", n = {"$this$produce", "$this$produce", "$this$produce"}, s = {"L$0", "L$0", "L$0"})
|
||||
/* loaded from: classes.dex */
|
||||
final class FlowKt__DelayKt$fixedPeriodTicker$3 extends SuspendLambda implements Function2<ProducerScope<? super Unit>, Continuation<? super Unit>, Object> {
|
||||
final /* synthetic */ long $delayMillis;
|
||||
final /* synthetic */ long $initialDelayMillis;
|
||||
private /* synthetic */ Object L$0;
|
||||
int label;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
FlowKt__DelayKt$fixedPeriodTicker$3(long j, long j2, Continuation<? super FlowKt__DelayKt$fixedPeriodTicker$3> continuation) {
|
||||
super(2, continuation);
|
||||
this.$initialDelayMillis = j;
|
||||
this.$delayMillis = j2;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
||||
FlowKt__DelayKt$fixedPeriodTicker$3 flowKt__DelayKt$fixedPeriodTicker$3 = new FlowKt__DelayKt$fixedPeriodTicker$3(this.$initialDelayMillis, this.$delayMillis, continuation);
|
||||
flowKt__DelayKt$fixedPeriodTicker$3.L$0 = obj;
|
||||
return flowKt__DelayKt$fixedPeriodTicker$3;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(ProducerScope<? super Unit> producerScope, Continuation<? super Unit> continuation) {
|
||||
return ((FlowKt__DelayKt$fixedPeriodTicker$3) create(producerScope, continuation)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* JADX ERROR: JadxOverflowException in pass: RegionMakerVisitor
|
||||
jadx.core.utils.exceptions.JadxOverflowException: Regions count limit reached
|
||||
at jadx.core.utils.ErrorsCounter.addError(ErrorsCounter.java:59)
|
||||
at jadx.core.utils.ErrorsCounter.error(ErrorsCounter.java:31)
|
||||
at jadx.core.dex.attributes.nodes.NotificationAttrNode.addError(NotificationAttrNode.java:19)
|
||||
*/
|
||||
/* JADX WARN: Removed duplicated region for block: B:14:0x0056 A[RETURN] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:15:0x0066 A[RETURN] */
|
||||
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:11:0x0064 -> B:12:0x0043). Please report as a decompilation issue!!! */
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object invokeSuspend(java.lang.Object r8) {
|
||||
/*
|
||||
r7 = this;
|
||||
java.lang.Object r0 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r1 = r7.label
|
||||
r2 = 3
|
||||
r3 = 2
|
||||
r4 = 1
|
||||
if (r1 == 0) goto L2a
|
||||
if (r1 == r4) goto L11
|
||||
if (r1 == r3) goto L21
|
||||
if (r1 != r2) goto L19
|
||||
L11:
|
||||
java.lang.Object r1 = r7.L$0
|
||||
kotlinx.coroutines.channels.ProducerScope r1 = (kotlinx.coroutines.channels.ProducerScope) r1
|
||||
kotlin.ResultKt.throwOnFailure(r8)
|
||||
goto L42
|
||||
L19:
|
||||
java.lang.IllegalStateException r8 = new java.lang.IllegalStateException
|
||||
java.lang.String r0 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r8.<init>(r0)
|
||||
throw r8
|
||||
L21:
|
||||
java.lang.Object r1 = r7.L$0
|
||||
kotlinx.coroutines.channels.ProducerScope r1 = (kotlinx.coroutines.channels.ProducerScope) r1
|
||||
kotlin.ResultKt.throwOnFailure(r8)
|
||||
r8 = r7
|
||||
goto L57
|
||||
L2a:
|
||||
kotlin.ResultKt.throwOnFailure(r8)
|
||||
java.lang.Object r8 = r7.L$0
|
||||
r1 = r8
|
||||
kotlinx.coroutines.channels.ProducerScope r1 = (kotlinx.coroutines.channels.ProducerScope) r1
|
||||
long r5 = r7.$initialDelayMillis
|
||||
r8 = r7
|
||||
kotlin.coroutines.Continuation r8 = (kotlin.coroutines.Continuation) r8
|
||||
r7.L$0 = r1
|
||||
r7.label = r4
|
||||
java.lang.Object r8 = kotlinx.coroutines.DelayKt.delay(r5, r8)
|
||||
if (r8 != r0) goto L42
|
||||
return r0
|
||||
L42:
|
||||
r8 = r7
|
||||
L43:
|
||||
kotlinx.coroutines.channels.SendChannel r4 = r1.getChannel()
|
||||
kotlin.Unit r5 = kotlin.Unit.INSTANCE
|
||||
r6 = r8
|
||||
kotlin.coroutines.Continuation r6 = (kotlin.coroutines.Continuation) r6
|
||||
r8.L$0 = r1
|
||||
r8.label = r3
|
||||
java.lang.Object r4 = r4.send(r5, r6)
|
||||
if (r4 != r0) goto L57
|
||||
return r0
|
||||
L57:
|
||||
long r4 = r8.$delayMillis
|
||||
r6 = r8
|
||||
kotlin.coroutines.Continuation r6 = (kotlin.coroutines.Continuation) r6
|
||||
r8.L$0 = r1
|
||||
r8.label = r2
|
||||
java.lang.Object r4 = kotlinx.coroutines.DelayKt.delay(r4, r6)
|
||||
if (r4 != r0) goto L43
|
||||
return r0
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.FlowKt__DelayKt$fixedPeriodTicker$3.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
}
|
@ -0,0 +1,79 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import java.util.concurrent.CancellationException;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.internal.Ref;
|
||||
import kotlinx.coroutines.channels.ChannelResult;
|
||||
import kotlinx.coroutines.channels.ReceiveChannel;
|
||||
import kotlinx.coroutines.flow.internal.ChildCancelledException;
|
||||
import kotlinx.coroutines.flow.internal.NullSurrogateKt;
|
||||
|
||||
/* compiled from: Delay.kt */
|
||||
@Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0002\n\u0000\u0010\u0005\u001a\u00020\u0004\"\u0004\b\u0000\u0010\u00002\f\u0010\u0003\u001a\b\u0012\u0004\u0012\u00020\u00020\u0001H\u008a@"}, d2 = {"T", "Lkotlinx/coroutines/channels/ChannelResult;", "", "result", "", "<anonymous>"}, k = 3, mv = {1, 8, 0})
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__DelayKt$sample$2$1$1", f = "Delay.kt", i = {}, l = {}, m = "invokeSuspend", n = {}, s = {})
|
||||
/* loaded from: classes.dex */
|
||||
final class FlowKt__DelayKt$sample$2$1$1 extends SuspendLambda implements Function2<ChannelResult<? extends Object>, Continuation<? super Unit>, Object> {
|
||||
final /* synthetic */ Ref.ObjectRef<Object> $lastValue;
|
||||
final /* synthetic */ ReceiveChannel<Unit> $ticker;
|
||||
/* synthetic */ Object L$0;
|
||||
int label;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
FlowKt__DelayKt$sample$2$1$1(Ref.ObjectRef<Object> objectRef, ReceiveChannel<Unit> receiveChannel, Continuation<? super FlowKt__DelayKt$sample$2$1$1> continuation) {
|
||||
super(2, continuation);
|
||||
this.$lastValue = objectRef;
|
||||
this.$ticker = receiveChannel;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
||||
FlowKt__DelayKt$sample$2$1$1 flowKt__DelayKt$sample$2$1$1 = new FlowKt__DelayKt$sample$2$1$1(this.$lastValue, this.$ticker, continuation);
|
||||
flowKt__DelayKt$sample$2$1$1.L$0 = obj;
|
||||
return flowKt__DelayKt$sample$2$1$1;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public /* bridge */ /* synthetic */ Object invoke(ChannelResult<? extends Object> channelResult, Continuation<? super Unit> continuation) {
|
||||
return m1890invokeWpGqRn0(channelResult.getHolder(), continuation);
|
||||
}
|
||||
|
||||
/* renamed from: invoke-WpGqRn0, reason: not valid java name */
|
||||
public final Object m1890invokeWpGqRn0(Object obj, Continuation<? super Unit> continuation) {
|
||||
return ((FlowKt__DelayKt$sample$2$1$1) create(ChannelResult.m1862boximpl(obj), continuation)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* JADX WARN: Type inference failed for: r4v4, types: [T, java.lang.Object] */
|
||||
/* JADX WARN: Type inference failed for: r4v9, types: [T, kotlinx.coroutines.internal.Symbol] */
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
if (this.label == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
?? holder = ((ChannelResult) this.L$0).getHolder();
|
||||
Ref.ObjectRef<Object> objectRef = this.$lastValue;
|
||||
boolean z = holder instanceof ChannelResult.Failed;
|
||||
if (!z) {
|
||||
objectRef.element = holder;
|
||||
}
|
||||
ReceiveChannel<Unit> receiveChannel = this.$ticker;
|
||||
Ref.ObjectRef<Object> objectRef2 = this.$lastValue;
|
||||
if (z) {
|
||||
Throwable m1866exceptionOrNullimpl = ChannelResult.m1866exceptionOrNullimpl(holder);
|
||||
if (m1866exceptionOrNullimpl != null) {
|
||||
throw m1866exceptionOrNullimpl;
|
||||
}
|
||||
receiveChannel.cancel((CancellationException) new ChildCancelledException());
|
||||
objectRef2.element = NullSurrogateKt.DONE;
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
}
|
@ -0,0 +1,68 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.internal.Ref;
|
||||
import kotlinx.coroutines.flow.internal.NullSurrogateKt;
|
||||
|
||||
/* compiled from: Delay.kt */
|
||||
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u00002\u0006\u0010\u0002\u001a\u00020\u0001H\u008a@"}, d2 = {"T", "", "it", "<anonymous>"}, k = 3, mv = {1, 8, 0})
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__DelayKt$sample$2$1$2", f = "Delay.kt", i = {}, l = {299}, m = "invokeSuspend", n = {}, s = {})
|
||||
/* loaded from: classes.dex */
|
||||
final class FlowKt__DelayKt$sample$2$1$2 extends SuspendLambda implements Function2<Unit, Continuation<? super Unit>, Object> {
|
||||
final /* synthetic */ FlowCollector<T> $downstream;
|
||||
final /* synthetic */ Ref.ObjectRef<Object> $lastValue;
|
||||
int label;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
FlowKt__DelayKt$sample$2$1$2(Ref.ObjectRef<Object> objectRef, FlowCollector<? super T> flowCollector, Continuation<? super FlowKt__DelayKt$sample$2$1$2> continuation) {
|
||||
super(2, continuation);
|
||||
this.$lastValue = objectRef;
|
||||
this.$downstream = flowCollector;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
||||
return new FlowKt__DelayKt$sample$2$1$2(this.$lastValue, this.$downstream, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Unit unit, Continuation<? super Unit> continuation) {
|
||||
return ((FlowKt__DelayKt$sample$2$1$2) create(unit, continuation)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.label;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
Object obj2 = this.$lastValue.element;
|
||||
if (obj2 == null) {
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
this.$lastValue.element = null;
|
||||
FlowCollector<T> flowCollector = this.$downstream;
|
||||
if (obj2 == NullSurrogateKt.NULL) {
|
||||
obj2 = null;
|
||||
}
|
||||
this.label = 1;
|
||||
if (flowCollector.emit(obj2, this) == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
} else {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlinx.coroutines.flow.FlowKt__DelayKt$sample$2$values$1;
|
||||
|
||||
/* compiled from: Delay.kt */
|
||||
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__DelayKt$sample$2$values$1$1", f = "Delay.kt", i = {}, l = {279}, m = "emit", n = {}, s = {})
|
||||
/* loaded from: classes.dex */
|
||||
final class FlowKt__DelayKt$sample$2$values$1$1$emit$1 extends ContinuationImpl {
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
final /* synthetic */ FlowKt__DelayKt$sample$2$values$1.AnonymousClass1<T> this$0;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
FlowKt__DelayKt$sample$2$values$1$1$emit$1(FlowKt__DelayKt$sample$2$values$1.AnonymousClass1<? super T> anonymousClass1, Continuation<? super FlowKt__DelayKt$sample$2$values$1$1$emit$1> continuation) {
|
||||
super(continuation);
|
||||
this.this$0 = anonymousClass1;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= Integer.MIN_VALUE;
|
||||
return this.this$0.emit(null, this);
|
||||
}
|
||||
}
|
@ -0,0 +1,132 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.channels.ProducerScope;
|
||||
|
||||
/* compiled from: Delay.kt */
|
||||
@Metadata(d1 = {"\u0000\u0010\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u0002\n\u0000\u0010\u0004\u001a\u00020\u0003\"\u0004\b\u0000\u0010\u0000*\b\u0012\u0004\u0012\u00020\u00020\u0001H\u008a@"}, d2 = {"T", "Lkotlinx/coroutines/channels/ProducerScope;", "", "", "<anonymous>"}, k = 3, mv = {1, 8, 0})
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__DelayKt$sample$2$values$1", f = "Delay.kt", i = {}, l = {279}, m = "invokeSuspend", n = {}, s = {})
|
||||
/* loaded from: classes.dex */
|
||||
final class FlowKt__DelayKt$sample$2$values$1 extends SuspendLambda implements Function2<ProducerScope<? super Object>, Continuation<? super Unit>, Object> {
|
||||
final /* synthetic */ Flow<T> $this_sample;
|
||||
private /* synthetic */ Object L$0;
|
||||
int label;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
FlowKt__DelayKt$sample$2$values$1(Flow<? extends T> flow, Continuation<? super FlowKt__DelayKt$sample$2$values$1> continuation) {
|
||||
super(2, continuation);
|
||||
this.$this_sample = flow;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
||||
FlowKt__DelayKt$sample$2$values$1 flowKt__DelayKt$sample$2$values$1 = new FlowKt__DelayKt$sample$2$values$1(this.$this_sample, continuation);
|
||||
flowKt__DelayKt$sample$2$values$1.L$0 = obj;
|
||||
return flowKt__DelayKt$sample$2$values$1;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public /* bridge */ /* synthetic */ Object invoke(ProducerScope<? super Object> producerScope, Continuation<? super Unit> continuation) {
|
||||
return invoke2((ProducerScope<Object>) producerScope, continuation);
|
||||
}
|
||||
|
||||
/* renamed from: invoke, reason: avoid collision after fix types in other method */
|
||||
public final Object invoke2(ProducerScope<Object> producerScope, Continuation<? super Unit> continuation) {
|
||||
return ((FlowKt__DelayKt$sample$2$values$1) create(producerScope, continuation)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* compiled from: Delay.kt */
|
||||
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0004\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u00022\u0006\u0010\u0003\u001a\u0002H\u0002H\u008a@¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"<anonymous>", "", "T", "value", "emit", "(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;"}, k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
/* renamed from: kotlinx.coroutines.flow.FlowKt__DelayKt$sample$2$values$1$1, reason: invalid class name */
|
||||
static final class AnonymousClass1<T> implements FlowCollector {
|
||||
final /* synthetic */ ProducerScope<Object> $$this$produce;
|
||||
|
||||
AnonymousClass1(ProducerScope<Object> producerScope) {
|
||||
this.$$this$produce = producerScope;
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:15:0x0032 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0024 */
|
||||
@Override // kotlinx.coroutines.flow.FlowCollector
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object emit(T r5, kotlin.coroutines.Continuation<? super kotlin.Unit> r6) {
|
||||
/*
|
||||
r4 = this;
|
||||
boolean r0 = r6 instanceof kotlinx.coroutines.flow.FlowKt__DelayKt$sample$2$values$1$1$emit$1
|
||||
if (r0 == 0) goto L14
|
||||
r0 = r6
|
||||
kotlinx.coroutines.flow.FlowKt__DelayKt$sample$2$values$1$1$emit$1 r0 = (kotlinx.coroutines.flow.FlowKt__DelayKt$sample$2$values$1$1$emit$1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r1 = r1 & r2
|
||||
if (r1 == 0) goto L14
|
||||
int r6 = r0.label
|
||||
int r6 = r6 - r2
|
||||
r0.label = r6
|
||||
goto L19
|
||||
L14:
|
||||
kotlinx.coroutines.flow.FlowKt__DelayKt$sample$2$values$1$1$emit$1 r0 = new kotlinx.coroutines.flow.FlowKt__DelayKt$sample$2$values$1$1$emit$1
|
||||
r0.<init>(r4, r6)
|
||||
L19:
|
||||
java.lang.Object r6 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L32
|
||||
if (r2 != r3) goto L2a
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L44
|
||||
L2a:
|
||||
java.lang.IllegalStateException r5 = new java.lang.IllegalStateException
|
||||
java.lang.String r6 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r5.<init>(r6)
|
||||
throw r5
|
||||
L32:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
kotlinx.coroutines.channels.ProducerScope<java.lang.Object> r6 = r4.$$this$produce
|
||||
if (r5 != 0) goto L3b
|
||||
kotlinx.coroutines.internal.Symbol r5 = kotlinx.coroutines.flow.internal.NullSurrogateKt.NULL
|
||||
L3b:
|
||||
r0.label = r3
|
||||
java.lang.Object r5 = r6.send(r5, r0)
|
||||
if (r5 != r1) goto L44
|
||||
return r1
|
||||
L44:
|
||||
kotlin.Unit r5 = kotlin.Unit.INSTANCE
|
||||
return r5
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.FlowKt__DelayKt$sample$2$values$1.AnonymousClass1.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.label;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
ProducerScope producerScope = (ProducerScope) this.L$0;
|
||||
this.label = 1;
|
||||
if (this.$this_sample.collect(new AnonymousClass1(producerScope), this) == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
} else {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
@ -0,0 +1,94 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function3;
|
||||
import kotlin.jvm.internal.Ref;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
import kotlinx.coroutines.channels.ProduceKt;
|
||||
import kotlinx.coroutines.channels.ReceiveChannel;
|
||||
import kotlinx.coroutines.flow.internal.NullSurrogateKt;
|
||||
import kotlinx.coroutines.selects.SelectImplementation;
|
||||
|
||||
/* JADX INFO: Add missing generic type declarations: [T] */
|
||||
/* compiled from: Delay.kt */
|
||||
@Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\u0010\u0005\u001a\u00020\u0004\"\u0004\b\u0000\u0010\u0000*\u00020\u00012\f\u0010\u0003\u001a\b\u0012\u0004\u0012\u00028\u00000\u0002H\u008a@"}, d2 = {"T", "Lkotlinx/coroutines/CoroutineScope;", "Lkotlinx/coroutines/flow/FlowCollector;", "downstream", "", "<anonymous>"}, k = 3, mv = {1, 8, 0})
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__DelayKt$sample$2", f = "Delay.kt", i = {0, 0, 0, 0}, l = {413}, m = "invokeSuspend", n = {"downstream", "values", "lastValue", "ticker"}, s = {"L$0", "L$1", "L$2", "L$3"})
|
||||
/* loaded from: classes.dex */
|
||||
final class FlowKt__DelayKt$sample$2<T> extends SuspendLambda implements Function3<CoroutineScope, FlowCollector<? super T>, Continuation<? super Unit>, Object> {
|
||||
final /* synthetic */ long $periodMillis;
|
||||
final /* synthetic */ Flow<T> $this_sample;
|
||||
private /* synthetic */ Object L$0;
|
||||
/* synthetic */ Object L$1;
|
||||
Object L$2;
|
||||
Object L$3;
|
||||
int label;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
FlowKt__DelayKt$sample$2(long j, Flow<? extends T> flow, Continuation<? super FlowKt__DelayKt$sample$2> continuation) {
|
||||
super(3, continuation);
|
||||
this.$periodMillis = j;
|
||||
this.$this_sample = flow;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function3
|
||||
public final Object invoke(CoroutineScope coroutineScope, FlowCollector<? super T> flowCollector, Continuation<? super Unit> continuation) {
|
||||
FlowKt__DelayKt$sample$2 flowKt__DelayKt$sample$2 = new FlowKt__DelayKt$sample$2(this.$periodMillis, this.$this_sample, continuation);
|
||||
flowKt__DelayKt$sample$2.L$0 = coroutineScope;
|
||||
flowKt__DelayKt$sample$2.L$1 = flowCollector;
|
||||
return flowKt__DelayKt$sample$2.invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
ReceiveChannel fixedPeriodTicker$default;
|
||||
FlowCollector flowCollector;
|
||||
ReceiveChannel receiveChannel;
|
||||
Ref.ObjectRef objectRef;
|
||||
ReceiveChannel receiveChannel2;
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.label;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
CoroutineScope coroutineScope = (CoroutineScope) this.L$0;
|
||||
FlowCollector flowCollector2 = (FlowCollector) this.L$1;
|
||||
ReceiveChannel produce$default = ProduceKt.produce$default(coroutineScope, null, -1, new FlowKt__DelayKt$sample$2$values$1(this.$this_sample, null), 1, null);
|
||||
Ref.ObjectRef objectRef2 = new Ref.ObjectRef();
|
||||
fixedPeriodTicker$default = FlowKt__DelayKt.fixedPeriodTicker$default(coroutineScope, this.$periodMillis, 0L, 2, null);
|
||||
flowCollector = flowCollector2;
|
||||
receiveChannel = produce$default;
|
||||
objectRef = objectRef2;
|
||||
receiveChannel2 = fixedPeriodTicker$default;
|
||||
} else {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
receiveChannel2 = (ReceiveChannel) this.L$3;
|
||||
objectRef = (Ref.ObjectRef) this.L$2;
|
||||
receiveChannel = (ReceiveChannel) this.L$1;
|
||||
flowCollector = (FlowCollector) this.L$0;
|
||||
ResultKt.throwOnFailure(obj);
|
||||
}
|
||||
while (objectRef.element != NullSurrogateKt.DONE) {
|
||||
SelectImplementation selectImplementation = new SelectImplementation(get$context());
|
||||
SelectImplementation selectImplementation2 = selectImplementation;
|
||||
selectImplementation2.invoke(receiveChannel.getOnReceiveCatching(), new FlowKt__DelayKt$sample$2$1$1(objectRef, receiveChannel2, null));
|
||||
selectImplementation2.invoke(receiveChannel2.getOnReceive(), new FlowKt__DelayKt$sample$2$1$2(objectRef, flowCollector, null));
|
||||
this.L$0 = flowCollector;
|
||||
this.L$1 = receiveChannel;
|
||||
this.L$2 = objectRef;
|
||||
this.L$3 = receiveChannel2;
|
||||
this.label = 1;
|
||||
if (selectImplementation.doSelect(this) == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
@ -0,0 +1,99 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.channels.ChannelResult;
|
||||
|
||||
/* JADX INFO: Add missing generic type declarations: [T] */
|
||||
/* compiled from: Delay.kt */
|
||||
@Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\u0010\u0004\u001a\u00020\u0003\"\u0004\b\u0000\u0010\u00002\f\u0010\u0002\u001a\b\u0012\u0004\u0012\u00028\u00000\u0001H\u008a@"}, d2 = {"T", "Lkotlinx/coroutines/channels/ChannelResult;", "value", "", "<anonymous>"}, k = 3, mv = {1, 8, 0})
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__DelayKt$timeoutInternal$1$1$1", f = "Delay.kt", i = {0}, l = {394}, m = "invokeSuspend", n = {"$this$onSuccess_u2dWpGqRn0$iv"}, s = {"L$0"})
|
||||
/* loaded from: classes.dex */
|
||||
final class FlowKt__DelayKt$timeoutInternal$1$1$1<T> extends SuspendLambda implements Function2<ChannelResult<? extends T>, Continuation<? super Boolean>, Object> {
|
||||
final /* synthetic */ FlowCollector<T> $downStream;
|
||||
/* synthetic */ Object L$0;
|
||||
int label;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
FlowKt__DelayKt$timeoutInternal$1$1$1(FlowCollector<? super T> flowCollector, Continuation<? super FlowKt__DelayKt$timeoutInternal$1$1$1> continuation) {
|
||||
super(2, continuation);
|
||||
this.$downStream = flowCollector;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
||||
FlowKt__DelayKt$timeoutInternal$1$1$1 flowKt__DelayKt$timeoutInternal$1$1$1 = new FlowKt__DelayKt$timeoutInternal$1$1$1(this.$downStream, continuation);
|
||||
flowKt__DelayKt$timeoutInternal$1$1$1.L$0 = obj;
|
||||
return flowKt__DelayKt$timeoutInternal$1$1$1;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public /* bridge */ /* synthetic */ Object invoke(Object obj, Continuation<? super Boolean> continuation) {
|
||||
return m1891invokeWpGqRn0(((ChannelResult) obj).getHolder(), continuation);
|
||||
}
|
||||
|
||||
/* renamed from: invoke-WpGqRn0, reason: not valid java name */
|
||||
public final Object m1891invokeWpGqRn0(Object obj, Continuation<? super Boolean> continuation) {
|
||||
return ((FlowKt__DelayKt$timeoutInternal$1$1$1) create(ChannelResult.m1862boximpl(obj), continuation)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
/* JADX WARN: Removed duplicated region for block: B:11:0x0045 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x003c */
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object invokeSuspend(java.lang.Object r5) {
|
||||
/*
|
||||
r4 = this;
|
||||
java.lang.Object r0 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r1 = r4.label
|
||||
r2 = 1
|
||||
if (r1 == 0) goto L19
|
||||
if (r1 != r2) goto L11
|
||||
java.lang.Object r0 = r4.L$0
|
||||
kotlin.ResultKt.throwOnFailure(r5)
|
||||
goto L36
|
||||
L11:
|
||||
java.lang.IllegalStateException r5 = new java.lang.IllegalStateException
|
||||
java.lang.String r0 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r5.<init>(r0)
|
||||
throw r5
|
||||
L19:
|
||||
kotlin.ResultKt.throwOnFailure(r5)
|
||||
java.lang.Object r5 = r4.L$0
|
||||
kotlinx.coroutines.channels.ChannelResult r5 = (kotlinx.coroutines.channels.ChannelResult) r5
|
||||
java.lang.Object r5 = r5.getHolder()
|
||||
kotlinx.coroutines.flow.FlowCollector<T> r1 = r4.$downStream
|
||||
boolean r3 = r5 instanceof kotlinx.coroutines.channels.ChannelResult.Failed
|
||||
if (r3 != 0) goto L37
|
||||
r4.L$0 = r5
|
||||
r4.label = r2
|
||||
java.lang.Object r1 = r1.emit(r5, r4)
|
||||
if (r1 != r0) goto L35
|
||||
return r0
|
||||
L35:
|
||||
r0 = r5
|
||||
L36:
|
||||
r5 = r0
|
||||
L37:
|
||||
boolean r0 = r5 instanceof kotlinx.coroutines.channels.ChannelResult.Closed
|
||||
if (r0 == 0) goto L45
|
||||
kotlinx.coroutines.channels.ChannelResult.m1866exceptionOrNullimpl(r5)
|
||||
r5 = 0
|
||||
java.lang.Boolean r5 = kotlin.coroutines.jvm.internal.Boxing.boxBoolean(r5)
|
||||
return r5
|
||||
L45:
|
||||
java.lang.Boolean r5 = kotlin.coroutines.jvm.internal.Boxing.boxBoolean(r2)
|
||||
return r5
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.FlowKt__DelayKt$timeoutInternal$1$1$1.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
}
|
@ -0,0 +1,47 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.time.Duration;
|
||||
import kotlinx.coroutines.TimeoutCancellationException;
|
||||
|
||||
/* compiled from: Delay.kt */
|
||||
@Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u0001\n\u0000\u0010\u0002\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0000H\u008a@"}, d2 = {"T", "", "<anonymous>"}, k = 3, mv = {1, 8, 0})
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__DelayKt$timeoutInternal$1$1$2", f = "Delay.kt", i = {}, l = {}, m = "invokeSuspend", n = {}, s = {})
|
||||
/* loaded from: classes.dex */
|
||||
final class FlowKt__DelayKt$timeoutInternal$1$1$2 extends SuspendLambda implements Function1<Continuation<?>, Object> {
|
||||
final /* synthetic */ long $timeout;
|
||||
int label;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
FlowKt__DelayKt$timeoutInternal$1$1$2(long j, Continuation<? super FlowKt__DelayKt$timeoutInternal$1$1$2> continuation) {
|
||||
super(1, continuation);
|
||||
this.$timeout = j;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation<Unit> create(Continuation<?> continuation) {
|
||||
return new FlowKt__DelayKt$timeoutInternal$1$1$2(this.$timeout, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final Object invoke(Continuation<?> continuation) {
|
||||
return ((FlowKt__DelayKt$timeoutInternal$1$1$2) create(continuation)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
if (this.label != 0) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
throw new TimeoutCancellationException("Timed out waiting for " + ((Object) Duration.m1724toStringimpl(this.$timeout)));
|
||||
}
|
||||
}
|
@ -0,0 +1,147 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function3;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
|
||||
/* JADX INFO: Add missing generic type declarations: [T] */
|
||||
/* compiled from: Delay.kt */
|
||||
@Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\u0010\u0005\u001a\u00020\u0004\"\u0004\b\u0000\u0010\u0000*\u00020\u00012\f\u0010\u0003\u001a\b\u0012\u0004\u0012\u00028\u00000\u0002H\u008a@"}, d2 = {"T", "Lkotlinx/coroutines/CoroutineScope;", "Lkotlinx/coroutines/flow/FlowCollector;", "downStream", "", "<anonymous>"}, k = 3, mv = {1, 8, 0})
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__DelayKt$timeoutInternal$1", f = "Delay.kt", i = {0, 0}, l = {414}, m = "invokeSuspend", n = {"downStream", "values"}, s = {"L$0", "L$1"})
|
||||
/* loaded from: classes.dex */
|
||||
final class FlowKt__DelayKt$timeoutInternal$1<T> extends SuspendLambda implements Function3<CoroutineScope, FlowCollector<? super T>, Continuation<? super Unit>, Object> {
|
||||
final /* synthetic */ Flow<T> $this_timeoutInternal;
|
||||
final /* synthetic */ long $timeout;
|
||||
long J$0;
|
||||
private /* synthetic */ Object L$0;
|
||||
/* synthetic */ Object L$1;
|
||||
int label;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
FlowKt__DelayKt$timeoutInternal$1(long j, Flow<? extends T> flow, Continuation<? super FlowKt__DelayKt$timeoutInternal$1> continuation) {
|
||||
super(3, continuation);
|
||||
this.$timeout = j;
|
||||
this.$this_timeoutInternal = flow;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function3
|
||||
public final Object invoke(CoroutineScope coroutineScope, FlowCollector<? super T> flowCollector, Continuation<? super Unit> continuation) {
|
||||
FlowKt__DelayKt$timeoutInternal$1 flowKt__DelayKt$timeoutInternal$1 = new FlowKt__DelayKt$timeoutInternal$1(this.$timeout, this.$this_timeoutInternal, continuation);
|
||||
flowKt__DelayKt$timeoutInternal$1.L$0 = coroutineScope;
|
||||
flowKt__DelayKt$timeoutInternal$1.L$1 = flowCollector;
|
||||
return flowKt__DelayKt$timeoutInternal$1.invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:10:0x0097 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:13:0x0084 A[RETURN] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:14:0x0085 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:7:0x0094 */
|
||||
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:14:0x0085 -> B:5:0x008c). Please report as a decompilation issue!!! */
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object invokeSuspend(java.lang.Object r13) {
|
||||
/*
|
||||
r12 = this;
|
||||
java.lang.Object r0 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r1 = r12.label
|
||||
r2 = 1
|
||||
r3 = 0
|
||||
if (r1 == 0) goto L28
|
||||
if (r1 != r2) goto L20
|
||||
long r4 = r12.J$0
|
||||
java.lang.Object r1 = r12.L$1
|
||||
kotlinx.coroutines.channels.ReceiveChannel r1 = (kotlinx.coroutines.channels.ReceiveChannel) r1
|
||||
java.lang.Object r6 = r12.L$0
|
||||
kotlinx.coroutines.flow.FlowCollector r6 = (kotlinx.coroutines.flow.FlowCollector) r6
|
||||
kotlin.ResultKt.throwOnFailure(r13)
|
||||
r7 = r6
|
||||
r5 = r4
|
||||
r4 = r1
|
||||
r1 = r0
|
||||
r0 = r12
|
||||
goto L8c
|
||||
L20:
|
||||
java.lang.IllegalStateException r13 = new java.lang.IllegalStateException
|
||||
java.lang.String r0 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r13.<init>(r0)
|
||||
throw r13
|
||||
L28:
|
||||
kotlin.ResultKt.throwOnFailure(r13)
|
||||
java.lang.Object r13 = r12.L$0
|
||||
kotlinx.coroutines.CoroutineScope r13 = (kotlinx.coroutines.CoroutineScope) r13
|
||||
java.lang.Object r1 = r12.L$1
|
||||
kotlinx.coroutines.flow.FlowCollector r1 = (kotlinx.coroutines.flow.FlowCollector) r1
|
||||
long r4 = r12.$timeout
|
||||
kotlin.time.Duration$Companion r6 = kotlin.time.Duration.INSTANCE
|
||||
long r6 = r6.m1777getZEROUwyO8pc()
|
||||
int r4 = kotlin.time.Duration.m1674compareToLRDsOJo(r4, r6)
|
||||
if (r4 <= 0) goto L9d
|
||||
kotlinx.coroutines.flow.Flow<T> r4 = r12.$this_timeoutInternal
|
||||
r5 = 0
|
||||
r6 = 2
|
||||
kotlinx.coroutines.flow.Flow r4 = kotlinx.coroutines.flow.FlowKt.buffer$default(r4, r5, r3, r6, r3)
|
||||
kotlinx.coroutines.channels.ReceiveChannel r13 = kotlinx.coroutines.flow.FlowKt.produceIn(r4, r13)
|
||||
long r4 = r12.$timeout
|
||||
r6 = r1
|
||||
r1 = r13
|
||||
r13 = r12
|
||||
L52:
|
||||
kotlinx.coroutines.selects.SelectImplementation r7 = new kotlinx.coroutines.selects.SelectImplementation
|
||||
kotlin.coroutines.CoroutineContext r8 = r13.get$context()
|
||||
r7.<init>(r8)
|
||||
r8 = r7
|
||||
kotlinx.coroutines.selects.SelectBuilder r8 = (kotlinx.coroutines.selects.SelectBuilder) r8
|
||||
kotlinx.coroutines.selects.SelectClause1 r9 = r1.getOnReceiveCatching()
|
||||
kotlinx.coroutines.flow.FlowKt__DelayKt$timeoutInternal$1$1$1 r10 = new kotlinx.coroutines.flow.FlowKt__DelayKt$timeoutInternal$1$1$1
|
||||
r10.<init>(r6, r3)
|
||||
kotlin.jvm.functions.Function2 r10 = (kotlin.jvm.functions.Function2) r10
|
||||
r8.invoke(r9, r10)
|
||||
kotlinx.coroutines.flow.FlowKt__DelayKt$timeoutInternal$1$1$2 r9 = new kotlinx.coroutines.flow.FlowKt__DelayKt$timeoutInternal$1$1$2
|
||||
r9.<init>(r4, r3)
|
||||
kotlin.jvm.functions.Function1 r9 = (kotlin.jvm.functions.Function1) r9
|
||||
kotlinx.coroutines.selects.OnTimeoutKt.m1919onTimeout8Mi8wO0(r8, r4, r9)
|
||||
r13.L$0 = r6
|
||||
r13.L$1 = r1
|
||||
r13.J$0 = r4
|
||||
r13.label = r2
|
||||
java.lang.Object r7 = r7.doSelect(r13)
|
||||
if (r7 != r0) goto L85
|
||||
return r0
|
||||
L85:
|
||||
r11 = r0
|
||||
r0 = r13
|
||||
r13 = r7
|
||||
r7 = r6
|
||||
r5 = r4
|
||||
r4 = r1
|
||||
r1 = r11
|
||||
L8c:
|
||||
java.lang.Boolean r13 = (java.lang.Boolean) r13
|
||||
boolean r13 = r13.booleanValue()
|
||||
if (r13 != 0) goto L97
|
||||
kotlin.Unit r13 = kotlin.Unit.INSTANCE
|
||||
return r13
|
||||
L97:
|
||||
r13 = r0
|
||||
r0 = r1
|
||||
r1 = r4
|
||||
r4 = r5
|
||||
r6 = r7
|
||||
goto L52
|
||||
L9d:
|
||||
kotlinx.coroutines.TimeoutCancellationException r13 = new kotlinx.coroutines.TimeoutCancellationException
|
||||
java.lang.String r0 = "Timed out immediately"
|
||||
r13.<init>(r0)
|
||||
throw r13
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.FlowKt__DelayKt$timeoutInternal$1.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
}
|
116
02-Easy5/E5/sources/kotlinx/coroutines/flow/FlowKt__DelayKt.java
Normal file
116
02-Easy5/E5/sources/kotlinx/coroutines/flow/FlowKt__DelayKt.java
Normal file
@ -0,0 +1,116 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import androidx.constraintlayout.core.motion.utils.TypedValues;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.time.Duration;
|
||||
import kotlinx.coroutines.CoroutineScope;
|
||||
import kotlinx.coroutines.DelayKt;
|
||||
import kotlinx.coroutines.channels.ProduceKt;
|
||||
import kotlinx.coroutines.channels.ReceiveChannel;
|
||||
import kotlinx.coroutines.flow.internal.FlowCoroutineKt;
|
||||
|
||||
/* compiled from: Delay.kt */
|
||||
@Metadata(d1 = {"\u0000,\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0010\t\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0002\b\n\u001a2\u0010\u0000\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00012\u0012\u0010\u0003\u001a\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u00020\u00050\u0004H\u0007\u001a:\u0010\u0000\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00012\u0012\u0010\u0006\u001a\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u00020\u00070\u0004H\u0007ø\u0001\u0000¢\u0006\u0002\b\b\u001a&\u0010\u0000\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00012\u0006\u0010\u0003\u001a\u00020\u0005H\u0007\u001a3\u0010\u0000\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00012\u0006\u0010\u0006\u001a\u00020\u0007H\u0007ø\u0001\u0001ø\u0001\u0000¢\u0006\u0004\b\t\u0010\n\u001a7\u0010\u000b\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00012\u0012\u0010\f\u001a\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u00020\u00050\u0004H\u0002¢\u0006\u0002\b\r\u001a$\u0010\u000e\u001a\b\u0012\u0004\u0012\u00020\u00100\u000f*\u00020\u00112\u0006\u0010\u0012\u001a\u00020\u00052\b\b\u0002\u0010\u0013\u001a\u00020\u0005H\u0000\u001a&\u0010\u0014\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00012\u0006\u0010\u0015\u001a\u00020\u0005H\u0007\u001a3\u0010\u0014\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00012\u0006\u0010\u0016\u001a\u00020\u0007H\u0007ø\u0001\u0001ø\u0001\u0000¢\u0006\u0004\b\u0017\u0010\n\u001a3\u0010\u0006\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00012\u0006\u0010\u0006\u001a\u00020\u0007H\u0007ø\u0001\u0001ø\u0001\u0000¢\u0006\u0004\b\u0018\u0010\n\u001a3\u0010\u0019\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00012\u0006\u0010\u0006\u001a\u00020\u0007H\u0002ø\u0001\u0001ø\u0001\u0000¢\u0006\u0004\b\u001a\u0010\n\u0082\u0002\u000b\n\u0002\b\u0019\n\u0005\b¡\u001e0\u0001¨\u0006\u001b"}, d2 = {"debounce", "Lkotlinx/coroutines/flow/Flow;", "T", "timeoutMillis", "Lkotlin/Function1;", "", "timeout", "Lkotlin/time/Duration;", "debounceDuration", "debounce-HG0u8IE", "(Lkotlinx/coroutines/flow/Flow;J)Lkotlinx/coroutines/flow/Flow;", "debounceInternal", "timeoutMillisSelector", "debounceInternal$FlowKt__DelayKt", "fixedPeriodTicker", "Lkotlinx/coroutines/channels/ReceiveChannel;", "", "Lkotlinx/coroutines/CoroutineScope;", "delayMillis", "initialDelayMillis", "sample", "periodMillis", TypedValues.CycleType.S_WAVE_PERIOD, "sample-HG0u8IE", "timeout-HG0u8IE", "timeoutInternal", "timeoutInternal-HG0u8IE$FlowKt__DelayKt", "kotlinx-coroutines-core"}, k = 5, mv = {1, 8, 0}, xi = 48, xs = "kotlinx/coroutines/flow/FlowKt")
|
||||
/* loaded from: classes.dex */
|
||||
final /* synthetic */ class FlowKt__DelayKt {
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public static final <T> Flow<T> debounce(Flow<? extends T> flow, final long j) {
|
||||
if (j >= 0) {
|
||||
return j == 0 ? flow : debounceInternal$FlowKt__DelayKt(flow, new Function1<T, Long>() { // from class: kotlinx.coroutines.flow.FlowKt__DelayKt$debounce$2
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
{
|
||||
super(1);
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final Long invoke(T t) {
|
||||
return Long.valueOf(j);
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public /* bridge */ /* synthetic */ Long invoke(Object obj) {
|
||||
return invoke((FlowKt__DelayKt$debounce$2<T>) obj);
|
||||
}
|
||||
});
|
||||
}
|
||||
throw new IllegalArgumentException("Debounce timeout should not be negative".toString());
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> debounce(Flow<? extends T> flow, Function1<? super T, Long> function1) {
|
||||
return debounceInternal$FlowKt__DelayKt(flow, function1);
|
||||
}
|
||||
|
||||
/* renamed from: debounce-HG0u8IE, reason: not valid java name */
|
||||
public static final <T> Flow<T> m1885debounceHG0u8IE(Flow<? extends T> flow, long j) {
|
||||
return FlowKt.debounce(flow, DelayKt.m1839toDelayMillisLRDsOJo(j));
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> debounceDuration(Flow<? extends T> flow, final Function1<? super T, Duration> function1) {
|
||||
return debounceInternal$FlowKt__DelayKt(flow, new Function1<T, Long>() { // from class: kotlinx.coroutines.flow.FlowKt__DelayKt$debounce$3
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
{
|
||||
super(1);
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public /* bridge */ /* synthetic */ Long invoke(Object obj) {
|
||||
return invoke((FlowKt__DelayKt$debounce$3<T>) obj);
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final Long invoke(T t) {
|
||||
return Long.valueOf(DelayKt.m1839toDelayMillisLRDsOJo(function1.invoke(t).getRawValue()));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private static final <T> Flow<T> debounceInternal$FlowKt__DelayKt(Flow<? extends T> flow, Function1<? super T, Long> function1) {
|
||||
return FlowCoroutineKt.scopedFlow(new FlowKt__DelayKt$debounceInternal$1(function1, flow, null));
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> sample(Flow<? extends T> flow, long j) {
|
||||
if (j <= 0) {
|
||||
throw new IllegalArgumentException("Sample period should be positive".toString());
|
||||
}
|
||||
return FlowCoroutineKt.scopedFlow(new FlowKt__DelayKt$sample$2(j, flow, null));
|
||||
}
|
||||
|
||||
public static /* synthetic */ ReceiveChannel fixedPeriodTicker$default(CoroutineScope coroutineScope, long j, long j2, int i, Object obj) {
|
||||
if ((i & 2) != 0) {
|
||||
j2 = j;
|
||||
}
|
||||
return FlowKt.fixedPeriodTicker(coroutineScope, j, j2);
|
||||
}
|
||||
|
||||
public static final ReceiveChannel<Unit> fixedPeriodTicker(CoroutineScope coroutineScope, long j, long j2) {
|
||||
if (j < 0) {
|
||||
throw new IllegalArgumentException(("Expected non-negative delay, but has " + j + " ms").toString());
|
||||
}
|
||||
if (j2 < 0) {
|
||||
throw new IllegalArgumentException(("Expected non-negative initial delay, but has " + j2 + " ms").toString());
|
||||
}
|
||||
return ProduceKt.produce$default(coroutineScope, null, 0, new FlowKt__DelayKt$fixedPeriodTicker$3(j2, j, null), 1, null);
|
||||
}
|
||||
|
||||
/* renamed from: sample-HG0u8IE, reason: not valid java name */
|
||||
public static final <T> Flow<T> m1886sampleHG0u8IE(Flow<? extends T> flow, long j) {
|
||||
return FlowKt.sample(flow, DelayKt.m1839toDelayMillisLRDsOJo(j));
|
||||
}
|
||||
|
||||
/* renamed from: timeout-HG0u8IE, reason: not valid java name */
|
||||
public static final <T> Flow<T> m1887timeoutHG0u8IE(Flow<? extends T> flow, long j) {
|
||||
return m1888timeoutInternalHG0u8IE$FlowKt__DelayKt(flow, j);
|
||||
}
|
||||
|
||||
/* renamed from: timeoutInternal-HG0u8IE$FlowKt__DelayKt, reason: not valid java name */
|
||||
private static final <T> Flow<T> m1888timeoutInternalHG0u8IE$FlowKt__DelayKt(Flow<? extends T> flow, long j) {
|
||||
return FlowCoroutineKt.scopedFlow(new FlowKt__DelayKt$timeoutInternal$1(j, flow, null));
|
||||
}
|
||||
}
|
@ -0,0 +1,52 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.TypeIntrinsics;
|
||||
|
||||
/* compiled from: Distinct.kt */
|
||||
@Metadata(d1 = {"\u0000&\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\b\u001a\u001c\u0010\u0006\u001a\b\u0012\u0004\u0012\u0002H\b0\u0007\"\u0004\b\u0000\u0010\b*\b\u0012\u0004\u0012\u0002H\b0\u0007\u001aT\u0010\u0006\u001a\b\u0012\u0004\u0012\u0002H\b0\u0007\"\u0004\b\u0000\u0010\b*\b\u0012\u0004\u0012\u0002H\b0\u000726\u0010\t\u001a2\u0012\u0013\u0012\u0011H\b¢\u0006\f\b\n\u0012\b\b\u000b\u0012\u0004\b\b(\f\u0012\u0013\u0012\u0011H\b¢\u0006\f\b\n\u0012\b\b\u000b\u0012\u0004\b\b(\r\u0012\u0004\u0012\u00020\u00030\u0001\u001a6\u0010\u000e\u001a\b\u0012\u0004\u0012\u0002H\b0\u0007\"\u0004\b\u0000\u0010\b\"\u0004\b\u0001\u0010\u000f*\b\u0012\u0004\u0012\u0002H\b0\u00072\u0012\u0010\u0010\u001a\u000e\u0012\u0004\u0012\u0002H\b\u0012\u0004\u0012\u0002H\u000f0\u0005\u001au\u0010\u000e\u001a\b\u0012\u0004\u0012\u0002H\b0\u0007\"\u0004\b\u0000\u0010\b*\b\u0012\u0004\u0012\u0002H\b0\u00072\u0014\u0010\u0010\u001a\u0010\u0012\u0004\u0012\u0002H\b\u0012\u0006\u0012\u0004\u0018\u00010\u00020\u00052:\u0010\t\u001a6\u0012\u0015\u0012\u0013\u0018\u00010\u0002¢\u0006\f\b\n\u0012\b\b\u000b\u0012\u0004\b\b(\f\u0012\u0015\u0012\u0013\u0018\u00010\u0002¢\u0006\f\b\n\u0012\b\b\u000b\u0012\u0004\b\b(\r\u0012\u0004\u0012\u00020\u00030\u0001H\u0002¢\u0006\u0002\b\u0011\"$\u0010\u0000\u001a\u0018\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0004\u0012\u00020\u00030\u0001X\u0082\u0004¢\u0006\u0002\n\u0000\"\u001e\u0010\u0004\u001a\u0012\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u00020\u0005X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u0012"}, d2 = {"defaultAreEquivalent", "Lkotlin/Function2;", "", "", "defaultKeySelector", "Lkotlin/Function1;", "distinctUntilChanged", "Lkotlinx/coroutines/flow/Flow;", "T", "areEquivalent", "Lkotlin/ParameterName;", "name", "old", "new", "distinctUntilChangedBy", "K", "keySelector", "distinctUntilChangedBy$FlowKt__DistinctKt", "kotlinx-coroutines-core"}, k = 5, mv = {1, 8, 0}, xi = 48, xs = "kotlinx/coroutines/flow/FlowKt")
|
||||
/* loaded from: classes.dex */
|
||||
final /* synthetic */ class FlowKt__DistinctKt {
|
||||
private static final Function1<Object, Object> defaultKeySelector = new Function1<Object, Object>() { // from class: kotlinx.coroutines.flow.FlowKt__DistinctKt$defaultKeySelector$1
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final Object invoke(Object obj) {
|
||||
return obj;
|
||||
}
|
||||
};
|
||||
private static final Function2<Object, Object, Boolean> defaultAreEquivalent = new Function2<Object, Object, Boolean>() { // from class: kotlinx.coroutines.flow.FlowKt__DistinctKt$defaultAreEquivalent$1
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Boolean invoke(Object obj, Object obj2) {
|
||||
return Boolean.valueOf(Intrinsics.areEqual(obj, obj2));
|
||||
}
|
||||
};
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public static final <T> Flow<T> distinctUntilChanged(Flow<? extends T> flow) {
|
||||
return flow instanceof StateFlow ? flow : distinctUntilChangedBy$FlowKt__DistinctKt(flow, defaultKeySelector, defaultAreEquivalent);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> distinctUntilChanged(Flow<? extends T> flow, Function2<? super T, ? super T, Boolean> function2) {
|
||||
Function1<Object, Object> function1 = defaultKeySelector;
|
||||
Intrinsics.checkNotNull(function2, "null cannot be cast to non-null type kotlin.Function2<kotlin.Any?, kotlin.Any?, kotlin.Boolean>");
|
||||
return distinctUntilChangedBy$FlowKt__DistinctKt(flow, function1, (Function2) TypeIntrinsics.beforeCheckcastToFunctionOfArity(function2, 2));
|
||||
}
|
||||
|
||||
public static final <T, K> Flow<T> distinctUntilChangedBy(Flow<? extends T> flow, Function1<? super T, ? extends K> function1) {
|
||||
return distinctUntilChangedBy$FlowKt__DistinctKt(flow, function1, defaultAreEquivalent);
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
private static final <T> Flow<T> distinctUntilChangedBy$FlowKt__DistinctKt(Flow<? extends T> flow, Function1<? super T, ? extends Object> function1, Function2<Object, Object, Boolean> function2) {
|
||||
if (flow instanceof DistinctFlowImpl) {
|
||||
DistinctFlowImpl distinctFlowImpl = (DistinctFlowImpl) flow;
|
||||
if (distinctFlowImpl.keySelector == function1 && distinctFlowImpl.areEquivalent == function2) {
|
||||
return flow;
|
||||
}
|
||||
}
|
||||
return new DistinctFlowImpl(flow, function1, function2);
|
||||
}
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
|
||||
/* compiled from: Emitters.kt */
|
||||
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__EmittersKt", f = "Emitters.kt", i = {0}, l = {216}, m = "invokeSafely$FlowKt__EmittersKt", n = {"cause"}, s = {"L$0"})
|
||||
/* loaded from: classes.dex */
|
||||
final class FlowKt__EmittersKt$invokeSafely$1<T> extends ContinuationImpl {
|
||||
Object L$0;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
FlowKt__EmittersKt$invokeSafely$1(Continuation<? super FlowKt__EmittersKt$invokeSafely$1> continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
Object invokeSafely$FlowKt__EmittersKt;
|
||||
this.result = obj;
|
||||
this.label |= Integer.MIN_VALUE;
|
||||
invokeSafely$FlowKt__EmittersKt = FlowKt__EmittersKt.invokeSafely$FlowKt__EmittersKt(null, null, null, this);
|
||||
return invokeSafely$FlowKt__EmittersKt;
|
||||
}
|
||||
}
|
@ -0,0 +1,173 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.jvm.functions.Function3;
|
||||
|
||||
/* JADX INFO: Add missing generic type declarations: [T] */
|
||||
/* compiled from: SafeCollector.common.kt */
|
||||
@Metadata(d1 = {"\u0000\u0019\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u001f\u0010\u0002\u001a\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0005H\u0096@ø\u0001\u0000¢\u0006\u0002\u0010\u0006\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u0007¸\u0006\u0000"}, d2 = {"kotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1", "Lkotlinx/coroutines/flow/Flow;", "collect", "", "collector", "Lkotlinx/coroutines/flow/FlowCollector;", "(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class FlowKt__EmittersKt$onCompletion$$inlined$unsafeFlow$1<T> implements Flow<T> {
|
||||
final /* synthetic */ Function3 $action$inlined;
|
||||
final /* synthetic */ Flow $this_onCompletion$inlined;
|
||||
|
||||
/* compiled from: SafeCollector.common.kt */
|
||||
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__EmittersKt$onCompletion$$inlined$unsafeFlow$1", f = "Emitters.kt", i = {0, 0, 1, 2}, l = {114, 121, 128}, m = "collect", n = {"this", "$this$onCompletion_u24lambda_u242", "e", "sc"}, s = {"L$0", "L$1", "L$0", "L$0"})
|
||||
/* renamed from: kotlinx.coroutines.flow.FlowKt__EmittersKt$onCompletion$$inlined$unsafeFlow$1$1, reason: invalid class name */
|
||||
public static final class AnonymousClass1 extends ContinuationImpl {
|
||||
Object L$0;
|
||||
Object L$1;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
public AnonymousClass1(Continuation continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= Integer.MIN_VALUE;
|
||||
return FlowKt__EmittersKt$onCompletion$$inlined$unsafeFlow$1.this.collect(null, this);
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:32:0x008b A[RETURN] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:33:0x008c */
|
||||
/* JADX WARN: Removed duplicated region for block: B:41:0x00b2 A[RETURN] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:42:? A[RETURN, SYNTHETIC] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:43:0x0056 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0027 */
|
||||
@Override // kotlinx.coroutines.flow.Flow
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public java.lang.Object collect(kotlinx.coroutines.flow.FlowCollector<? super T> r9, kotlin.coroutines.Continuation<? super kotlin.Unit> r10) {
|
||||
/*
|
||||
r8 = this;
|
||||
boolean r0 = r10 instanceof kotlinx.coroutines.flow.FlowKt__EmittersKt$onCompletion$$inlined$unsafeFlow$1.AnonymousClass1
|
||||
if (r0 == 0) goto L14
|
||||
r0 = r10
|
||||
kotlinx.coroutines.flow.FlowKt__EmittersKt$onCompletion$$inlined$unsafeFlow$1$1 r0 = (kotlinx.coroutines.flow.FlowKt__EmittersKt$onCompletion$$inlined$unsafeFlow$1.AnonymousClass1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r1 = r1 & r2
|
||||
if (r1 == 0) goto L14
|
||||
int r10 = r0.label
|
||||
int r10 = r10 - r2
|
||||
r0.label = r10
|
||||
goto L19
|
||||
L14:
|
||||
kotlinx.coroutines.flow.FlowKt__EmittersKt$onCompletion$$inlined$unsafeFlow$1$1 r0 = new kotlinx.coroutines.flow.FlowKt__EmittersKt$onCompletion$$inlined$unsafeFlow$1$1
|
||||
r0.<init>(r10)
|
||||
L19:
|
||||
java.lang.Object r10 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 3
|
||||
r4 = 2
|
||||
r5 = 1
|
||||
r6 = 0
|
||||
if (r2 == 0) goto L56
|
||||
if (r2 == r5) goto L48
|
||||
if (r2 == r4) goto L3f
|
||||
if (r2 != r3) goto L37
|
||||
java.lang.Object r9 = r0.L$0
|
||||
kotlinx.coroutines.flow.internal.SafeCollector r9 = (kotlinx.coroutines.flow.internal.SafeCollector) r9
|
||||
kotlin.ResultKt.throwOnFailure(r10) // Catch: java.lang.Throwable -> L35
|
||||
goto L8d
|
||||
L35:
|
||||
r10 = move-exception
|
||||
goto L97
|
||||
L37:
|
||||
java.lang.IllegalStateException r9 = new java.lang.IllegalStateException
|
||||
java.lang.String r10 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r9.<init>(r10)
|
||||
throw r9
|
||||
L3f:
|
||||
java.lang.Object r9 = r0.L$0
|
||||
java.lang.Throwable r9 = (java.lang.Throwable) r9
|
||||
kotlin.ResultKt.throwOnFailure(r10)
|
||||
goto Lb3
|
||||
L48:
|
||||
java.lang.Object r9 = r0.L$1
|
||||
kotlinx.coroutines.flow.FlowCollector r9 = (kotlinx.coroutines.flow.FlowCollector) r9
|
||||
java.lang.Object r2 = r0.L$0
|
||||
kotlinx.coroutines.flow.FlowKt__EmittersKt$onCompletion$$inlined$unsafeFlow$1 r2 = (kotlinx.coroutines.flow.FlowKt__EmittersKt$onCompletion$$inlined$unsafeFlow$1) r2
|
||||
kotlin.ResultKt.throwOnFailure(r10) // Catch: java.lang.Throwable -> L54
|
||||
goto L6c
|
||||
L54:
|
||||
r9 = move-exception
|
||||
goto L9d
|
||||
L56:
|
||||
kotlin.ResultKt.throwOnFailure(r10)
|
||||
r10 = r0
|
||||
kotlin.coroutines.Continuation r10 = (kotlin.coroutines.Continuation) r10
|
||||
kotlinx.coroutines.flow.Flow r10 = r8.$this_onCompletion$inlined // Catch: java.lang.Throwable -> L9b
|
||||
r0.L$0 = r8 // Catch: java.lang.Throwable -> L9b
|
||||
r0.L$1 = r9 // Catch: java.lang.Throwable -> L9b
|
||||
r0.label = r5 // Catch: java.lang.Throwable -> L9b
|
||||
java.lang.Object r10 = r10.collect(r9, r0) // Catch: java.lang.Throwable -> L9b
|
||||
if (r10 != r1) goto L6b
|
||||
return r1
|
||||
L6b:
|
||||
r2 = r8
|
||||
L6c:
|
||||
kotlinx.coroutines.flow.internal.SafeCollector r10 = new kotlinx.coroutines.flow.internal.SafeCollector
|
||||
kotlin.coroutines.CoroutineContext r4 = r0.getContext()
|
||||
r10.<init>(r9, r4)
|
||||
kotlin.jvm.functions.Function3 r9 = r2.$action$inlined // Catch: java.lang.Throwable -> L93
|
||||
r0.L$0 = r10 // Catch: java.lang.Throwable -> L93
|
||||
r0.L$1 = r6 // Catch: java.lang.Throwable -> L93
|
||||
r0.label = r3 // Catch: java.lang.Throwable -> L93
|
||||
r2 = 6
|
||||
kotlin.jvm.internal.InlineMarker.mark(r2) // Catch: java.lang.Throwable -> L93
|
||||
java.lang.Object r9 = r9.invoke(r10, r6, r0) // Catch: java.lang.Throwable -> L93
|
||||
r0 = 7
|
||||
kotlin.jvm.internal.InlineMarker.mark(r0) // Catch: java.lang.Throwable -> L93
|
||||
if (r9 != r1) goto L8c
|
||||
return r1
|
||||
L8c:
|
||||
r9 = r10
|
||||
L8d:
|
||||
r9.releaseIntercepted()
|
||||
kotlin.Unit r9 = kotlin.Unit.INSTANCE
|
||||
return r9
|
||||
L93:
|
||||
r9 = move-exception
|
||||
r7 = r10
|
||||
r10 = r9
|
||||
r9 = r7
|
||||
L97:
|
||||
r9.releaseIntercepted()
|
||||
throw r10
|
||||
L9b:
|
||||
r9 = move-exception
|
||||
r2 = r8
|
||||
L9d:
|
||||
kotlinx.coroutines.flow.ThrowingCollector r10 = new kotlinx.coroutines.flow.ThrowingCollector
|
||||
r10.<init>(r9)
|
||||
kotlinx.coroutines.flow.FlowCollector r10 = (kotlinx.coroutines.flow.FlowCollector) r10
|
||||
kotlin.jvm.functions.Function3 r2 = r2.$action$inlined
|
||||
r0.L$0 = r9
|
||||
r0.L$1 = r6
|
||||
r0.label = r4
|
||||
java.lang.Object r10 = kotlinx.coroutines.flow.FlowKt__EmittersKt.access$invokeSafely$FlowKt__EmittersKt(r10, r2, r9, r0)
|
||||
if (r10 != r1) goto Lb3
|
||||
return r1
|
||||
Lb3:
|
||||
throw r9
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.FlowKt__EmittersKt$onCompletion$$inlined$unsafeFlow$1.collect(kotlinx.coroutines.flow.FlowCollector, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
|
||||
public FlowKt__EmittersKt$onCompletion$$inlined$unsafeFlow$1(Flow flow, Function3 function3) {
|
||||
this.$this_onCompletion$inlined = flow;
|
||||
this.$action$inlined = function3;
|
||||
}
|
||||
}
|
@ -0,0 +1,160 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
|
||||
/* JADX INFO: Add missing generic type declarations: [T] */
|
||||
/* compiled from: SafeCollector.common.kt */
|
||||
@Metadata(d1 = {"\u0000\u0019\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u001f\u0010\u0002\u001a\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0005H\u0096@ø\u0001\u0000¢\u0006\u0002\u0010\u0006\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u0007¸\u0006\u0000"}, d2 = {"kotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1", "Lkotlinx/coroutines/flow/Flow;", "collect", "", "collector", "Lkotlinx/coroutines/flow/FlowCollector;", "(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class FlowKt__EmittersKt$onEmpty$$inlined$unsafeFlow$1<T> implements Flow<T> {
|
||||
final /* synthetic */ Function2 $action$inlined;
|
||||
final /* synthetic */ Flow $this_onEmpty$inlined;
|
||||
|
||||
/* compiled from: SafeCollector.common.kt */
|
||||
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__EmittersKt$onEmpty$$inlined$unsafeFlow$1", f = "Emitters.kt", i = {0, 0, 0, 1}, l = {114, 122}, m = "collect", n = {"this", "$this$onEmpty_u24lambda_u243", "isEmpty", "collector"}, s = {"L$0", "L$1", "L$2", "L$0"})
|
||||
/* renamed from: kotlinx.coroutines.flow.FlowKt__EmittersKt$onEmpty$$inlined$unsafeFlow$1$1, reason: invalid class name */
|
||||
public static final class AnonymousClass1 extends ContinuationImpl {
|
||||
Object L$0;
|
||||
Object L$1;
|
||||
Object L$2;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
public AnonymousClass1(Continuation continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= Integer.MIN_VALUE;
|
||||
return FlowKt__EmittersKt$onEmpty$$inlined$unsafeFlow$1.this.collect(null, this);
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
/* JADX WARN: Removed duplicated region for block: B:23:0x0077 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:27:0x004b */
|
||||
/* JADX WARN: Removed duplicated region for block: B:9:0x0025 */
|
||||
/* JADX WARN: Type inference failed for: r7v0, types: [java.lang.Object, kotlinx.coroutines.flow.FlowCollector, kotlinx.coroutines.flow.FlowCollector<? super T>] */
|
||||
/* JADX WARN: Type inference failed for: r7v1, types: [kotlinx.coroutines.flow.internal.SafeCollector] */
|
||||
/* JADX WARN: Type inference failed for: r7v15 */
|
||||
/* JADX WARN: Type inference failed for: r7v16 */
|
||||
/* JADX WARN: Type inference failed for: r7v7, types: [kotlinx.coroutines.flow.internal.SafeCollector] */
|
||||
@Override // kotlinx.coroutines.flow.Flow
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public java.lang.Object collect(kotlinx.coroutines.flow.FlowCollector<? super T> r7, kotlin.coroutines.Continuation<? super kotlin.Unit> r8) {
|
||||
/*
|
||||
r6 = this;
|
||||
boolean r0 = r8 instanceof kotlinx.coroutines.flow.FlowKt__EmittersKt$onEmpty$$inlined$unsafeFlow$1.AnonymousClass1
|
||||
if (r0 == 0) goto L14
|
||||
r0 = r8
|
||||
kotlinx.coroutines.flow.FlowKt__EmittersKt$onEmpty$$inlined$unsafeFlow$1$1 r0 = (kotlinx.coroutines.flow.FlowKt__EmittersKt$onEmpty$$inlined$unsafeFlow$1.AnonymousClass1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r1 = r1 & r2
|
||||
if (r1 == 0) goto L14
|
||||
int r8 = r0.label
|
||||
int r8 = r8 - r2
|
||||
r0.label = r8
|
||||
goto L19
|
||||
L14:
|
||||
kotlinx.coroutines.flow.FlowKt__EmittersKt$onEmpty$$inlined$unsafeFlow$1$1 r0 = new kotlinx.coroutines.flow.FlowKt__EmittersKt$onEmpty$$inlined$unsafeFlow$1$1
|
||||
r0.<init>(r8)
|
||||
L19:
|
||||
java.lang.Object r8 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 2
|
||||
r4 = 1
|
||||
if (r2 == 0) goto L4b
|
||||
if (r2 == r4) goto L3b
|
||||
if (r2 != r3) goto L33
|
||||
java.lang.Object r7 = r0.L$0
|
||||
kotlinx.coroutines.flow.internal.SafeCollector r7 = (kotlinx.coroutines.flow.internal.SafeCollector) r7
|
||||
kotlin.ResultKt.throwOnFailure(r8) // Catch: java.lang.Throwable -> L31
|
||||
goto L9a
|
||||
L31:
|
||||
r8 = move-exception
|
||||
goto L9e
|
||||
L33:
|
||||
java.lang.IllegalStateException r7 = new java.lang.IllegalStateException
|
||||
java.lang.String r8 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r7.<init>(r8)
|
||||
throw r7
|
||||
L3b:
|
||||
java.lang.Object r7 = r0.L$2
|
||||
kotlin.jvm.internal.Ref$BooleanRef r7 = (kotlin.jvm.internal.Ref.BooleanRef) r7
|
||||
java.lang.Object r2 = r0.L$1
|
||||
kotlinx.coroutines.flow.FlowCollector r2 = (kotlinx.coroutines.flow.FlowCollector) r2
|
||||
java.lang.Object r4 = r0.L$0
|
||||
kotlinx.coroutines.flow.FlowKt__EmittersKt$onEmpty$$inlined$unsafeFlow$1 r4 = (kotlinx.coroutines.flow.FlowKt__EmittersKt$onEmpty$$inlined$unsafeFlow$1) r4
|
||||
kotlin.ResultKt.throwOnFailure(r8)
|
||||
goto L73
|
||||
L4b:
|
||||
kotlin.ResultKt.throwOnFailure(r8)
|
||||
r8 = r0
|
||||
kotlin.coroutines.Continuation r8 = (kotlin.coroutines.Continuation) r8
|
||||
kotlin.jvm.internal.Ref$BooleanRef r8 = new kotlin.jvm.internal.Ref$BooleanRef
|
||||
r8.<init>()
|
||||
r8.element = r4
|
||||
kotlinx.coroutines.flow.Flow r2 = r6.$this_onEmpty$inlined
|
||||
kotlinx.coroutines.flow.FlowKt__EmittersKt$onEmpty$1$1 r5 = new kotlinx.coroutines.flow.FlowKt__EmittersKt$onEmpty$1$1
|
||||
r5.<init>(r8, r7)
|
||||
kotlinx.coroutines.flow.FlowCollector r5 = (kotlinx.coroutines.flow.FlowCollector) r5
|
||||
r0.L$0 = r6
|
||||
r0.L$1 = r7
|
||||
r0.L$2 = r8
|
||||
r0.label = r4
|
||||
java.lang.Object r2 = r2.collect(r5, r0)
|
||||
if (r2 != r1) goto L70
|
||||
return r1
|
||||
L70:
|
||||
r4 = r6
|
||||
r2 = r7
|
||||
r7 = r8
|
||||
L73:
|
||||
boolean r7 = r7.element
|
||||
if (r7 == 0) goto La2
|
||||
kotlinx.coroutines.flow.internal.SafeCollector r7 = new kotlinx.coroutines.flow.internal.SafeCollector
|
||||
kotlin.coroutines.CoroutineContext r8 = r0.getContext()
|
||||
r7.<init>(r2, r8)
|
||||
kotlin.jvm.functions.Function2 r8 = r4.$action$inlined // Catch: java.lang.Throwable -> L31
|
||||
r0.L$0 = r7 // Catch: java.lang.Throwable -> L31
|
||||
r2 = 0
|
||||
r0.L$1 = r2 // Catch: java.lang.Throwable -> L31
|
||||
r0.L$2 = r2 // Catch: java.lang.Throwable -> L31
|
||||
r0.label = r3 // Catch: java.lang.Throwable -> L31
|
||||
r2 = 6
|
||||
kotlin.jvm.internal.InlineMarker.mark(r2) // Catch: java.lang.Throwable -> L31
|
||||
java.lang.Object r8 = r8.invoke(r7, r0) // Catch: java.lang.Throwable -> L31
|
||||
r0 = 7
|
||||
kotlin.jvm.internal.InlineMarker.mark(r0) // Catch: java.lang.Throwable -> L31
|
||||
if (r8 != r1) goto L9a
|
||||
return r1
|
||||
L9a:
|
||||
r7.releaseIntercepted()
|
||||
goto La2
|
||||
L9e:
|
||||
r7.releaseIntercepted()
|
||||
throw r8
|
||||
La2:
|
||||
kotlin.Unit r7 = kotlin.Unit.INSTANCE
|
||||
return r7
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.FlowKt__EmittersKt$onEmpty$$inlined$unsafeFlow$1.collect(kotlinx.coroutines.flow.FlowCollector, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
|
||||
public FlowKt__EmittersKt$onEmpty$$inlined$unsafeFlow$1(Flow flow, Function2 function2) {
|
||||
this.$this_onEmpty$inlined = flow;
|
||||
this.$action$inlined = function2;
|
||||
}
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
|
||||
/* compiled from: Emitters.kt */
|
||||
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__EmittersKt$onEmpty$1$1", f = "Emitters.kt", i = {}, l = {185}, m = "emit", n = {}, s = {})
|
||||
/* loaded from: classes.dex */
|
||||
final class FlowKt__EmittersKt$onEmpty$1$1$emit$1 extends ContinuationImpl {
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
final /* synthetic */ FlowKt__EmittersKt$onEmpty$1$1<T> this$0;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
FlowKt__EmittersKt$onEmpty$1$1$emit$1(FlowKt__EmittersKt$onEmpty$1$1<? super T> flowKt__EmittersKt$onEmpty$1$1, Continuation<? super FlowKt__EmittersKt$onEmpty$1$1$emit$1> continuation) {
|
||||
super(continuation);
|
||||
this.this$0 = flowKt__EmittersKt$onEmpty$1$1;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= Integer.MIN_VALUE;
|
||||
return this.this$0.emit(null, this);
|
||||
}
|
||||
}
|
@ -0,0 +1,74 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Ref;
|
||||
|
||||
/* compiled from: Emitters.kt */
|
||||
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0004\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u00022\u0006\u0010\u0003\u001a\u0002H\u0002H\u008a@¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"<anonymous>", "", "T", "it", "emit", "(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;"}, k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
final class FlowKt__EmittersKt$onEmpty$1$1<T> implements FlowCollector {
|
||||
final /* synthetic */ Ref.BooleanRef $isEmpty;
|
||||
final /* synthetic */ FlowCollector<T> $this_unsafeFlow;
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
FlowKt__EmittersKt$onEmpty$1$1(Ref.BooleanRef booleanRef, FlowCollector<? super T> flowCollector) {
|
||||
this.$isEmpty = booleanRef;
|
||||
this.$this_unsafeFlow = flowCollector;
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:15:0x0032 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0024 */
|
||||
@Override // kotlinx.coroutines.flow.FlowCollector
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object emit(T r5, kotlin.coroutines.Continuation<? super kotlin.Unit> r6) {
|
||||
/*
|
||||
r4 = this;
|
||||
boolean r0 = r6 instanceof kotlinx.coroutines.flow.FlowKt__EmittersKt$onEmpty$1$1$emit$1
|
||||
if (r0 == 0) goto L14
|
||||
r0 = r6
|
||||
kotlinx.coroutines.flow.FlowKt__EmittersKt$onEmpty$1$1$emit$1 r0 = (kotlinx.coroutines.flow.FlowKt__EmittersKt$onEmpty$1$1$emit$1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r1 = r1 & r2
|
||||
if (r1 == 0) goto L14
|
||||
int r6 = r0.label
|
||||
int r6 = r6 - r2
|
||||
r0.label = r6
|
||||
goto L19
|
||||
L14:
|
||||
kotlinx.coroutines.flow.FlowKt__EmittersKt$onEmpty$1$1$emit$1 r0 = new kotlinx.coroutines.flow.FlowKt__EmittersKt$onEmpty$1$1$emit$1
|
||||
r0.<init>(r4, r6)
|
||||
L19:
|
||||
java.lang.Object r6 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L32
|
||||
if (r2 != r3) goto L2a
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L45
|
||||
L2a:
|
||||
java.lang.IllegalStateException r5 = new java.lang.IllegalStateException
|
||||
java.lang.String r6 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r5.<init>(r6)
|
||||
throw r5
|
||||
L32:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
kotlin.jvm.internal.Ref$BooleanRef r6 = r4.$isEmpty
|
||||
r2 = 0
|
||||
r6.element = r2
|
||||
kotlinx.coroutines.flow.FlowCollector<T> r6 = r4.$this_unsafeFlow
|
||||
r0.label = r3
|
||||
java.lang.Object r5 = r6.emit(r5, r0)
|
||||
if (r5 != r1) goto L45
|
||||
return r1
|
||||
L45:
|
||||
kotlin.Unit r5 = kotlin.Unit.INSTANCE
|
||||
return r5
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.FlowKt__EmittersKt$onEmpty$1$1.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
}
|
@ -0,0 +1,147 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
|
||||
/* JADX INFO: Add missing generic type declarations: [T] */
|
||||
/* compiled from: SafeCollector.common.kt */
|
||||
@Metadata(d1 = {"\u0000\u0019\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u001f\u0010\u0002\u001a\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0005H\u0096@ø\u0001\u0000¢\u0006\u0002\u0010\u0006\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u0007¸\u0006\u0000"}, d2 = {"kotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1", "Lkotlinx/coroutines/flow/Flow;", "collect", "", "collector", "Lkotlinx/coroutines/flow/FlowCollector;", "(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class FlowKt__EmittersKt$onStart$$inlined$unsafeFlow$1<T> implements Flow<T> {
|
||||
final /* synthetic */ Function2 $action$inlined;
|
||||
final /* synthetic */ Flow $this_onStart$inlined;
|
||||
|
||||
/* compiled from: SafeCollector.common.kt */
|
||||
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__EmittersKt$onStart$$inlined$unsafeFlow$1", f = "Emitters.kt", i = {0, 0, 0}, l = {116, 120}, m = "collect", n = {"this", "$this$onStart_u24lambda_u241", "safeCollector"}, s = {"L$0", "L$1", "L$2"})
|
||||
/* renamed from: kotlinx.coroutines.flow.FlowKt__EmittersKt$onStart$$inlined$unsafeFlow$1$1, reason: invalid class name */
|
||||
public static final class AnonymousClass1 extends ContinuationImpl {
|
||||
Object L$0;
|
||||
Object L$1;
|
||||
Object L$2;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
public AnonymousClass1(Continuation continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= Integer.MIN_VALUE;
|
||||
return FlowKt__EmittersKt$onStart$$inlined$unsafeFlow$1.this.collect(null, this);
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:21:0x0086 A[RETURN] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:26:0x0047 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0025 */
|
||||
@Override // kotlinx.coroutines.flow.Flow
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public java.lang.Object collect(kotlinx.coroutines.flow.FlowCollector<? super T> r7, kotlin.coroutines.Continuation<? super kotlin.Unit> r8) {
|
||||
/*
|
||||
r6 = this;
|
||||
boolean r0 = r8 instanceof kotlinx.coroutines.flow.FlowKt__EmittersKt$onStart$$inlined$unsafeFlow$1.AnonymousClass1
|
||||
if (r0 == 0) goto L14
|
||||
r0 = r8
|
||||
kotlinx.coroutines.flow.FlowKt__EmittersKt$onStart$$inlined$unsafeFlow$1$1 r0 = (kotlinx.coroutines.flow.FlowKt__EmittersKt$onStart$$inlined$unsafeFlow$1.AnonymousClass1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r1 = r1 & r2
|
||||
if (r1 == 0) goto L14
|
||||
int r8 = r0.label
|
||||
int r8 = r8 - r2
|
||||
r0.label = r8
|
||||
goto L19
|
||||
L14:
|
||||
kotlinx.coroutines.flow.FlowKt__EmittersKt$onStart$$inlined$unsafeFlow$1$1 r0 = new kotlinx.coroutines.flow.FlowKt__EmittersKt$onStart$$inlined$unsafeFlow$1$1
|
||||
r0.<init>(r8)
|
||||
L19:
|
||||
java.lang.Object r8 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 2
|
||||
r4 = 1
|
||||
if (r2 == 0) goto L47
|
||||
if (r2 == r4) goto L35
|
||||
if (r2 != r3) goto L2d
|
||||
kotlin.ResultKt.throwOnFailure(r8)
|
||||
goto L87
|
||||
L2d:
|
||||
java.lang.IllegalStateException r7 = new java.lang.IllegalStateException
|
||||
java.lang.String r8 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r7.<init>(r8)
|
||||
throw r7
|
||||
L35:
|
||||
java.lang.Object r7 = r0.L$2
|
||||
kotlinx.coroutines.flow.internal.SafeCollector r7 = (kotlinx.coroutines.flow.internal.SafeCollector) r7
|
||||
java.lang.Object r2 = r0.L$1
|
||||
kotlinx.coroutines.flow.FlowCollector r2 = (kotlinx.coroutines.flow.FlowCollector) r2
|
||||
java.lang.Object r4 = r0.L$0
|
||||
kotlinx.coroutines.flow.FlowKt__EmittersKt$onStart$$inlined$unsafeFlow$1 r4 = (kotlinx.coroutines.flow.FlowKt__EmittersKt$onStart$$inlined$unsafeFlow$1) r4
|
||||
kotlin.ResultKt.throwOnFailure(r8) // Catch: java.lang.Throwable -> L45
|
||||
goto L72
|
||||
L45:
|
||||
r8 = move-exception
|
||||
goto L8e
|
||||
L47:
|
||||
kotlin.ResultKt.throwOnFailure(r8)
|
||||
r8 = r0
|
||||
kotlin.coroutines.Continuation r8 = (kotlin.coroutines.Continuation) r8
|
||||
kotlinx.coroutines.flow.internal.SafeCollector r8 = new kotlinx.coroutines.flow.internal.SafeCollector
|
||||
kotlin.coroutines.CoroutineContext r2 = r0.getContext()
|
||||
r8.<init>(r7, r2)
|
||||
kotlin.jvm.functions.Function2 r2 = r6.$action$inlined // Catch: java.lang.Throwable -> L8a
|
||||
r0.L$0 = r6 // Catch: java.lang.Throwable -> L8a
|
||||
r0.L$1 = r7 // Catch: java.lang.Throwable -> L8a
|
||||
r0.L$2 = r8 // Catch: java.lang.Throwable -> L8a
|
||||
r0.label = r4 // Catch: java.lang.Throwable -> L8a
|
||||
r4 = 6
|
||||
kotlin.jvm.internal.InlineMarker.mark(r4) // Catch: java.lang.Throwable -> L8a
|
||||
java.lang.Object r2 = r2.invoke(r8, r0) // Catch: java.lang.Throwable -> L8a
|
||||
r4 = 7
|
||||
kotlin.jvm.internal.InlineMarker.mark(r4) // Catch: java.lang.Throwable -> L8a
|
||||
if (r2 != r1) goto L6f
|
||||
return r1
|
||||
L6f:
|
||||
r4 = r6
|
||||
r2 = r7
|
||||
r7 = r8
|
||||
L72:
|
||||
r7.releaseIntercepted()
|
||||
kotlinx.coroutines.flow.Flow r7 = r4.$this_onStart$inlined
|
||||
r8 = 0
|
||||
r0.L$0 = r8
|
||||
r0.L$1 = r8
|
||||
r0.L$2 = r8
|
||||
r0.label = r3
|
||||
java.lang.Object r7 = r7.collect(r2, r0)
|
||||
if (r7 != r1) goto L87
|
||||
return r1
|
||||
L87:
|
||||
kotlin.Unit r7 = kotlin.Unit.INSTANCE
|
||||
return r7
|
||||
L8a:
|
||||
r7 = move-exception
|
||||
r5 = r8
|
||||
r8 = r7
|
||||
r7 = r5
|
||||
L8e:
|
||||
r7.releaseIntercepted()
|
||||
throw r8
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.FlowKt__EmittersKt$onStart$$inlined$unsafeFlow$1.collect(kotlinx.coroutines.flow.FlowCollector, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
|
||||
public FlowKt__EmittersKt$onStart$$inlined$unsafeFlow$1(Function2 function2, Flow flow) {
|
||||
this.$action$inlined = function2;
|
||||
this.$this_onStart$inlined = flow;
|
||||
}
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlinx.coroutines.flow.FlowKt__EmittersKt$transform$1;
|
||||
|
||||
/* compiled from: Emitters.kt */
|
||||
@Metadata(k = 3, mv = {1, 8, 0}, xi = 176)
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__EmittersKt$transform$1$1", f = "Emitters.kt", i = {}, l = {42}, m = "emit", n = {}, s = {})
|
||||
/* loaded from: classes.dex */
|
||||
public final class FlowKt__EmittersKt$transform$1$1$emit$1 extends ContinuationImpl {
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
final /* synthetic */ FlowKt__EmittersKt$transform$1.AnonymousClass1<T> this$0;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public FlowKt__EmittersKt$transform$1$1$emit$1(FlowKt__EmittersKt$transform$1.AnonymousClass1<? super T> anonymousClass1, Continuation<? super FlowKt__EmittersKt$transform$1$1$emit$1> continuation) {
|
||||
super(continuation);
|
||||
this.this$0 = anonymousClass1;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= Integer.MIN_VALUE;
|
||||
return this.this$0.emit(null, this);
|
||||
}
|
||||
}
|
@ -0,0 +1,148 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.functions.Function3;
|
||||
import kotlin.jvm.internal.InlineMarker;
|
||||
|
||||
/* JADX INFO: Add missing generic type declarations: [R] */
|
||||
/* compiled from: Emitters.kt */
|
||||
@Metadata(d1 = {"\u0000\u000e\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0000\u0010\u0004\u001a\u00020\u0003\"\u0004\b\u0000\u0010\u0000\"\u0004\b\u0001\u0010\u0001*\b\u0012\u0004\u0012\u00028\u00010\u0002H\u008a@"}, d2 = {"T", "R", "Lkotlinx/coroutines/flow/FlowCollector;", "", "<anonymous>"}, k = 3, mv = {1, 8, 0})
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__EmittersKt$transform$1", f = "Emitters.kt", i = {}, l = {40}, m = "invokeSuspend", n = {}, s = {})
|
||||
/* loaded from: classes.dex */
|
||||
public final class FlowKt__EmittersKt$transform$1<R> extends SuspendLambda implements Function2<FlowCollector<? super R>, Continuation<? super Unit>, Object> {
|
||||
final /* synthetic */ Flow<T> $this_transform;
|
||||
final /* synthetic */ Function3<FlowCollector<? super R>, T, Continuation<? super Unit>, Object> $transform;
|
||||
private /* synthetic */ Object L$0;
|
||||
int label;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public FlowKt__EmittersKt$transform$1(Flow<? extends T> flow, Function3<? super FlowCollector<? super R>, ? super T, ? super Continuation<? super Unit>, ? extends Object> function3, Continuation<? super FlowKt__EmittersKt$transform$1> continuation) {
|
||||
super(2, continuation);
|
||||
this.$this_transform = flow;
|
||||
this.$transform = function3;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
||||
FlowKt__EmittersKt$transform$1 flowKt__EmittersKt$transform$1 = new FlowKt__EmittersKt$transform$1(this.$this_transform, this.$transform, continuation);
|
||||
flowKt__EmittersKt$transform$1.L$0 = obj;
|
||||
return flowKt__EmittersKt$transform$1;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(FlowCollector<? super R> flowCollector, Continuation<? super Unit> continuation) {
|
||||
return ((FlowKt__EmittersKt$transform$1) create(flowCollector, continuation)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* compiled from: Emitters.kt */
|
||||
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0005\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u00032\u0006\u0010\u0004\u001a\u0002H\u0002H\u008a@¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"<anonymous>", "", "T", "R", "value", "emit", "(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;"}, k = 3, mv = {1, 8, 0}, xi = 176)
|
||||
/* renamed from: kotlinx.coroutines.flow.FlowKt__EmittersKt$transform$1$1, reason: invalid class name */
|
||||
public static final class AnonymousClass1<T> implements FlowCollector {
|
||||
final /* synthetic */ FlowCollector<R> $$this$flow;
|
||||
final /* synthetic */ Function3<FlowCollector<? super R>, T, Continuation<? super Unit>, Object> $transform;
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public AnonymousClass1(Function3<? super FlowCollector<? super R>, ? super T, ? super Continuation<? super Unit>, ? extends Object> function3, FlowCollector<? super R> flowCollector) {
|
||||
this.$transform = function3;
|
||||
this.$$this$flow = flowCollector;
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:15:0x0032 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0024 */
|
||||
@Override // kotlinx.coroutines.flow.FlowCollector
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object emit(T r5, kotlin.coroutines.Continuation<? super kotlin.Unit> r6) {
|
||||
/*
|
||||
r4 = this;
|
||||
boolean r0 = r6 instanceof kotlinx.coroutines.flow.FlowKt__EmittersKt$transform$1$1$emit$1
|
||||
if (r0 == 0) goto L14
|
||||
r0 = r6
|
||||
kotlinx.coroutines.flow.FlowKt__EmittersKt$transform$1$1$emit$1 r0 = (kotlinx.coroutines.flow.FlowKt__EmittersKt$transform$1$1$emit$1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r1 = r1 & r2
|
||||
if (r1 == 0) goto L14
|
||||
int r6 = r0.label
|
||||
int r6 = r6 - r2
|
||||
r0.label = r6
|
||||
goto L19
|
||||
L14:
|
||||
kotlinx.coroutines.flow.FlowKt__EmittersKt$transform$1$1$emit$1 r0 = new kotlinx.coroutines.flow.FlowKt__EmittersKt$transform$1$1$emit$1
|
||||
r0.<init>(r4, r6)
|
||||
L19:
|
||||
java.lang.Object r6 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L32
|
||||
if (r2 != r3) goto L2a
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L42
|
||||
L2a:
|
||||
java.lang.IllegalStateException r5 = new java.lang.IllegalStateException
|
||||
java.lang.String r6 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r5.<init>(r6)
|
||||
throw r5
|
||||
L32:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
kotlin.jvm.functions.Function3<kotlinx.coroutines.flow.FlowCollector<? super R>, T, kotlin.coroutines.Continuation<? super kotlin.Unit>, java.lang.Object> r6 = r4.$transform
|
||||
kotlinx.coroutines.flow.FlowCollector<R> r2 = r4.$$this$flow
|
||||
r0.label = r3
|
||||
java.lang.Object r5 = r6.invoke(r2, r5, r0)
|
||||
if (r5 != r1) goto L42
|
||||
return r1
|
||||
L42:
|
||||
kotlin.Unit r5 = kotlin.Unit.INSTANCE
|
||||
return r5
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.FlowKt__EmittersKt$transform$1.AnonymousClass1.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
|
||||
public final Object emit$$forInline(T t, Continuation<? super Unit> continuation) {
|
||||
InlineMarker.mark(4);
|
||||
new FlowKt__EmittersKt$transform$1$1$emit$1(this, continuation);
|
||||
InlineMarker.mark(5);
|
||||
this.$transform.invoke(this.$$this$flow, t, continuation);
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.label;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
FlowCollector flowCollector = (FlowCollector) this.L$0;
|
||||
this.label = 1;
|
||||
if (this.$this_transform.collect(new AnonymousClass1(this.$transform, flowCollector), this) == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
} else {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
|
||||
public final Object invokeSuspend$$forInline(Object obj) {
|
||||
FlowCollector flowCollector = (FlowCollector) this.L$0;
|
||||
InlineMarker.mark(0);
|
||||
this.$this_transform.collect(new AnonymousClass1(this.$transform, flowCollector), this);
|
||||
InlineMarker.mark(1);
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
@ -0,0 +1,51 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.jvm.functions.Function3;
|
||||
import kotlin.jvm.internal.InlineMarker;
|
||||
|
||||
/* JADX INFO: Add missing generic type declarations: [R] */
|
||||
/* compiled from: SafeCollector.common.kt */
|
||||
@Metadata(d1 = {"\u0000\u0019\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u001f\u0010\u0002\u001a\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0005H\u0096@ø\u0001\u0000¢\u0006\u0002\u0010\u0006\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u0007¸\u0006\u0000"}, d2 = {"kotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1", "Lkotlinx/coroutines/flow/Flow;", "collect", "", "collector", "Lkotlinx/coroutines/flow/FlowCollector;", "(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core"}, k = 1, mv = {1, 8, 0}, xi = 176)
|
||||
/* loaded from: classes.dex */
|
||||
public final class FlowKt__EmittersKt$unsafeTransform$$inlined$unsafeFlow$1<R> implements Flow<R> {
|
||||
final /* synthetic */ Flow $this_unsafeTransform$inlined;
|
||||
final /* synthetic */ Function3 $transform$inlined;
|
||||
|
||||
public FlowKt__EmittersKt$unsafeTransform$$inlined$unsafeFlow$1(Flow flow, Function3 function3) {
|
||||
this.$this_unsafeTransform$inlined = flow;
|
||||
this.$transform$inlined = function3;
|
||||
}
|
||||
|
||||
@Override // kotlinx.coroutines.flow.Flow
|
||||
public Object collect(FlowCollector<? super R> flowCollector, Continuation<? super Unit> continuation) {
|
||||
Object collect = this.$this_unsafeTransform$inlined.collect(new FlowKt__EmittersKt$unsafeTransform$1$1(this.$transform$inlined, flowCollector), continuation);
|
||||
return collect == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? collect : Unit.INSTANCE;
|
||||
}
|
||||
|
||||
public Object collect$$forInline(FlowCollector flowCollector, Continuation continuation) {
|
||||
InlineMarker.mark(4);
|
||||
new ContinuationImpl(continuation) { // from class: kotlinx.coroutines.flow.FlowKt__EmittersKt$unsafeTransform$$inlined$unsafeFlow$1.1
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= Integer.MIN_VALUE;
|
||||
return FlowKt__EmittersKt$unsafeTransform$$inlined$unsafeFlow$1.this.collect(null, this);
|
||||
}
|
||||
};
|
||||
InlineMarker.mark(5);
|
||||
Flow flow = this.$this_unsafeTransform$inlined;
|
||||
FlowKt__EmittersKt$unsafeTransform$1$1 flowKt__EmittersKt$unsafeTransform$1$1 = new FlowKt__EmittersKt$unsafeTransform$1$1(this.$transform$inlined, flowCollector);
|
||||
InlineMarker.mark(0);
|
||||
flow.collect(flowKt__EmittersKt$unsafeTransform$1$1, continuation);
|
||||
InlineMarker.mark(1);
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
|
||||
/* compiled from: Emitters.kt */
|
||||
@Metadata(k = 3, mv = {1, 8, 0}, xi = 176)
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__EmittersKt$unsafeTransform$1$1", f = "Emitters.kt", i = {}, l = {53}, m = "emit", n = {}, s = {})
|
||||
/* loaded from: classes.dex */
|
||||
public final class FlowKt__EmittersKt$unsafeTransform$1$1$emit$1 extends ContinuationImpl {
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
final /* synthetic */ FlowKt__EmittersKt$unsafeTransform$1$1<T> this$0;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public FlowKt__EmittersKt$unsafeTransform$1$1$emit$1(FlowKt__EmittersKt$unsafeTransform$1$1<? super T> flowKt__EmittersKt$unsafeTransform$1$1, Continuation<? super FlowKt__EmittersKt$unsafeTransform$1$1$emit$1> continuation) {
|
||||
super(continuation);
|
||||
this.this$0 = flowKt__EmittersKt$unsafeTransform$1$1;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= Integer.MIN_VALUE;
|
||||
return this.this$0.emit(null, this);
|
||||
}
|
||||
}
|
@ -0,0 +1,83 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.jvm.functions.Function3;
|
||||
import kotlin.jvm.internal.InlineMarker;
|
||||
|
||||
/* compiled from: Emitters.kt */
|
||||
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0005\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u00032\u0006\u0010\u0004\u001a\u0002H\u0002H\u008a@¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"<anonymous>", "", "T", "R", "value", "emit", "(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;"}, k = 3, mv = {1, 8, 0}, xi = 176)
|
||||
/* loaded from: classes.dex */
|
||||
public final class FlowKt__EmittersKt$unsafeTransform$1$1<T> implements FlowCollector {
|
||||
final /* synthetic */ FlowCollector<R> $this_unsafeFlow;
|
||||
final /* synthetic */ Function3<FlowCollector<? super R>, T, Continuation<? super Unit>, Object> $transform;
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public FlowKt__EmittersKt$unsafeTransform$1$1(Function3<? super FlowCollector<? super R>, ? super T, ? super Continuation<? super Unit>, ? extends Object> function3, FlowCollector<? super R> flowCollector) {
|
||||
this.$transform = function3;
|
||||
this.$this_unsafeFlow = flowCollector;
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:15:0x0032 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0024 */
|
||||
@Override // kotlinx.coroutines.flow.FlowCollector
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object emit(T r5, kotlin.coroutines.Continuation<? super kotlin.Unit> r6) {
|
||||
/*
|
||||
r4 = this;
|
||||
boolean r0 = r6 instanceof kotlinx.coroutines.flow.FlowKt__EmittersKt$unsafeTransform$1$1$emit$1
|
||||
if (r0 == 0) goto L14
|
||||
r0 = r6
|
||||
kotlinx.coroutines.flow.FlowKt__EmittersKt$unsafeTransform$1$1$emit$1 r0 = (kotlinx.coroutines.flow.FlowKt__EmittersKt$unsafeTransform$1$1$emit$1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r1 = r1 & r2
|
||||
if (r1 == 0) goto L14
|
||||
int r6 = r0.label
|
||||
int r6 = r6 - r2
|
||||
r0.label = r6
|
||||
goto L19
|
||||
L14:
|
||||
kotlinx.coroutines.flow.FlowKt__EmittersKt$unsafeTransform$1$1$emit$1 r0 = new kotlinx.coroutines.flow.FlowKt__EmittersKt$unsafeTransform$1$1$emit$1
|
||||
r0.<init>(r4, r6)
|
||||
L19:
|
||||
java.lang.Object r6 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L32
|
||||
if (r2 != r3) goto L2a
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L42
|
||||
L2a:
|
||||
java.lang.IllegalStateException r5 = new java.lang.IllegalStateException
|
||||
java.lang.String r6 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r5.<init>(r6)
|
||||
throw r5
|
||||
L32:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
kotlin.jvm.functions.Function3<kotlinx.coroutines.flow.FlowCollector<? super R>, T, kotlin.coroutines.Continuation<? super kotlin.Unit>, java.lang.Object> r6 = r4.$transform
|
||||
kotlinx.coroutines.flow.FlowCollector<R> r2 = r4.$this_unsafeFlow
|
||||
r0.label = r3
|
||||
java.lang.Object r5 = r6.invoke(r2, r5, r0)
|
||||
if (r5 != r1) goto L42
|
||||
return r1
|
||||
L42:
|
||||
kotlin.Unit r5 = kotlin.Unit.INSTANCE
|
||||
return r5
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.FlowKt__EmittersKt$unsafeTransform$1$1.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
|
||||
public final Object emit$$forInline(T t, Continuation<? super Unit> continuation) {
|
||||
InlineMarker.mark(4);
|
||||
new FlowKt__EmittersKt$unsafeTransform$1$1$emit$1(this, continuation);
|
||||
InlineMarker.mark(5);
|
||||
this.$transform.invoke(this.$this_unsafeFlow, t, continuation);
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
@ -0,0 +1,100 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.functions.Function3;
|
||||
|
||||
/* compiled from: Emitters.kt */
|
||||
@Metadata(d1 = {"\u0000>\n\u0000\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0010\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0007\u001a\u0010\u0010\u0000\u001a\u00020\u0001*\u0006\u0012\u0002\b\u00030\u0002H\u0000\u001as\u0010\u0003\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0004*\b\u0012\u0004\u0012\u0002H\u00040\u00022D\u0010\u0005\u001a@\b\u0001\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00040\u0002\u0012\u0015\u0012\u0013\u0018\u00010\u0007¢\u0006\f\b\b\u0012\b\b\t\u0012\u0004\b\b(\n\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00010\u000b\u0012\u0006\u0012\u0004\u0018\u00010\f0\u0006¢\u0006\u0002\b\r2\b\u0010\n\u001a\u0004\u0018\u00010\u0007H\u0082@ø\u0001\u0000¢\u0006\u0004\b\u000e\u0010\u000f\u001aj\u0010\u0010\u001a\b\u0012\u0004\u0012\u0002H\u00040\u0011\"\u0004\b\u0000\u0010\u0004*\b\u0012\u0004\u0012\u0002H\u00040\u00112D\u0010\u0005\u001a@\b\u0001\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00040\u0002\u0012\u0015\u0012\u0013\u0018\u00010\u0007¢\u0006\f\b\b\u0012\b\b\t\u0012\u0004\b\b(\n\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00010\u000b\u0012\u0006\u0012\u0004\u0018\u00010\f0\u0006¢\u0006\u0002\b\rø\u0001\u0000¢\u0006\u0002\u0010\u0012\u001aS\u0010\u0013\u001a\b\u0012\u0004\u0012\u0002H\u00040\u0011\"\u0004\b\u0000\u0010\u0004*\b\u0012\u0004\u0012\u0002H\u00040\u00112-\u0010\u0005\u001a)\b\u0001\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00040\u0002\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00010\u000b\u0012\u0006\u0012\u0004\u0018\u00010\f0\u0014¢\u0006\u0002\b\rø\u0001\u0000¢\u0006\u0002\u0010\u0015\u001aS\u0010\u0016\u001a\b\u0012\u0004\u0012\u0002H\u00040\u0011\"\u0004\b\u0000\u0010\u0004*\b\u0012\u0004\u0012\u0002H\u00040\u00112-\u0010\u0005\u001a)\b\u0001\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00040\u0002\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00010\u000b\u0012\u0006\u0012\u0004\u0018\u00010\f0\u0014¢\u0006\u0002\b\rø\u0001\u0000¢\u0006\u0002\u0010\u0015\u001as\u0010\u0017\u001a\b\u0012\u0004\u0012\u0002H\u00180\u0011\"\u0004\b\u0000\u0010\u0004\"\u0004\b\u0001\u0010\u0018*\b\u0012\u0004\u0012\u0002H\u00040\u00112D\b\u0005\u0010\u0017\u001a>\b\u0001\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00180\u0002\u0012\u0013\u0012\u0011H\u0004¢\u0006\f\b\b\u0012\b\b\t\u0012\u0004\b\b(\u0019\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00010\u000b\u0012\u0006\u0012\u0004\u0018\u00010\f0\u0006¢\u0006\u0002\b\rH\u0086\bø\u0001\u0000¢\u0006\u0002\u0010\u0012\u001as\u0010\u001a\u001a\b\u0012\u0004\u0012\u0002H\u00180\u0011\"\u0004\b\u0000\u0010\u0004\"\u0004\b\u0001\u0010\u0018*\b\u0012\u0004\u0012\u0002H\u00040\u00112D\b\u0005\u0010\u0017\u001a>\b\u0001\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00180\u0002\u0012\u0013\u0012\u0011H\u0004¢\u0006\f\b\b\u0012\b\b\t\u0012\u0004\b\b(\u0019\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00010\u000b\u0012\u0006\u0012\u0004\u0018\u00010\f0\u0006¢\u0006\u0002\b\rH\u0081\bø\u0001\u0000¢\u0006\u0002\u0010\u0012\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u001b"}, d2 = {"ensureActive", "", "Lkotlinx/coroutines/flow/FlowCollector;", "invokeSafely", "T", "action", "Lkotlin/Function3;", "", "Lkotlin/ParameterName;", "name", "cause", "Lkotlin/coroutines/Continuation;", "", "Lkotlin/ExtensionFunctionType;", "invokeSafely$FlowKt__EmittersKt", "(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/jvm/functions/Function3;Ljava/lang/Throwable;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "onCompletion", "Lkotlinx/coroutines/flow/Flow;", "(Lkotlinx/coroutines/flow/Flow;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/flow/Flow;", "onEmpty", "Lkotlin/Function2;", "(Lkotlinx/coroutines/flow/Flow;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;", "onStart", "transform", "R", "value", "unsafeTransform", "kotlinx-coroutines-core"}, k = 5, mv = {1, 8, 0}, xi = 48, xs = "kotlinx/coroutines/flow/FlowKt")
|
||||
/* loaded from: classes.dex */
|
||||
final /* synthetic */ class FlowKt__EmittersKt {
|
||||
public static final <T, R> Flow<R> transform(Flow<? extends T> flow, Function3<? super FlowCollector<? super R>, ? super T, ? super Continuation<? super Unit>, ? extends Object> function3) {
|
||||
return FlowKt.flow(new FlowKt__EmittersKt$transform$1(flow, function3, null));
|
||||
}
|
||||
|
||||
public static final void ensureActive(FlowCollector<?> flowCollector) {
|
||||
if (flowCollector instanceof ThrowingCollector) {
|
||||
throw ((ThrowingCollector) flowCollector).e;
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
/* JADX WARN: Removed duplicated region for block: B:18:0x0037 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:9:0x0024 */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public static final <T> java.lang.Object invokeSafely$FlowKt__EmittersKt(kotlinx.coroutines.flow.FlowCollector<? super T> r4, kotlin.jvm.functions.Function3<? super kotlinx.coroutines.flow.FlowCollector<? super T>, ? super java.lang.Throwable, ? super kotlin.coroutines.Continuation<? super kotlin.Unit>, ? extends java.lang.Object> r5, java.lang.Throwable r6, kotlin.coroutines.Continuation<? super kotlin.Unit> r7) {
|
||||
/*
|
||||
boolean r0 = r7 instanceof kotlinx.coroutines.flow.FlowKt__EmittersKt$invokeSafely$1
|
||||
if (r0 == 0) goto L14
|
||||
r0 = r7
|
||||
kotlinx.coroutines.flow.FlowKt__EmittersKt$invokeSafely$1 r0 = (kotlinx.coroutines.flow.FlowKt__EmittersKt$invokeSafely$1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r1 = r1 & r2
|
||||
if (r1 == 0) goto L14
|
||||
int r7 = r0.label
|
||||
int r7 = r7 - r2
|
||||
r0.label = r7
|
||||
goto L19
|
||||
L14:
|
||||
kotlinx.coroutines.flow.FlowKt__EmittersKt$invokeSafely$1 r0 = new kotlinx.coroutines.flow.FlowKt__EmittersKt$invokeSafely$1
|
||||
r0.<init>(r7)
|
||||
L19:
|
||||
java.lang.Object r7 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L37
|
||||
if (r2 != r3) goto L2f
|
||||
java.lang.Object r4 = r0.L$0
|
||||
r6 = r4
|
||||
java.lang.Throwable r6 = (java.lang.Throwable) r6
|
||||
kotlin.ResultKt.throwOnFailure(r7) // Catch: java.lang.Throwable -> L48
|
||||
goto L45
|
||||
L2f:
|
||||
java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
|
||||
java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r4.<init>(r5)
|
||||
throw r4
|
||||
L37:
|
||||
kotlin.ResultKt.throwOnFailure(r7)
|
||||
r0.L$0 = r6 // Catch: java.lang.Throwable -> L48
|
||||
r0.label = r3 // Catch: java.lang.Throwable -> L48
|
||||
java.lang.Object r4 = r5.invoke(r4, r6, r0) // Catch: java.lang.Throwable -> L48
|
||||
if (r4 != r1) goto L45
|
||||
return r1
|
||||
L45:
|
||||
kotlin.Unit r4 = kotlin.Unit.INSTANCE
|
||||
return r4
|
||||
L48:
|
||||
r4 = move-exception
|
||||
if (r6 == 0) goto L50
|
||||
if (r6 == r4) goto L50
|
||||
kotlin.ExceptionsKt.addSuppressed(r4, r6)
|
||||
L50:
|
||||
throw r4
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.FlowKt__EmittersKt.invokeSafely$FlowKt__EmittersKt(kotlinx.coroutines.flow.FlowCollector, kotlin.jvm.functions.Function3, java.lang.Throwable, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
|
||||
public static final <T, R> Flow<R> unsafeTransform(Flow<? extends T> flow, Function3<? super FlowCollector<? super R>, ? super T, ? super Continuation<? super Unit>, ? extends Object> function3) {
|
||||
return new FlowKt__EmittersKt$unsafeTransform$$inlined$unsafeFlow$1(flow, function3);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> onStart(Flow<? extends T> flow, Function2<? super FlowCollector<? super T>, ? super Continuation<? super Unit>, ? extends Object> function2) {
|
||||
return new FlowKt__EmittersKt$onStart$$inlined$unsafeFlow$1(function2, flow);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> onCompletion(Flow<? extends T> flow, Function3<? super FlowCollector<? super T>, ? super Throwable, ? super Continuation<? super Unit>, ? extends Object> function3) {
|
||||
return new FlowKt__EmittersKt$onCompletion$$inlined$unsafeFlow$1(flow, function3);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> onEmpty(Flow<? extends T> flow, Function2<? super FlowCollector<? super T>, ? super Continuation<? super Unit>, ? extends Object> function2) {
|
||||
return new FlowKt__EmittersKt$onEmpty$$inlined$unsafeFlow$1(flow, function2);
|
||||
}
|
||||
}
|
@ -0,0 +1,127 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.jvm.functions.Function3;
|
||||
|
||||
/* JADX INFO: Add missing generic type declarations: [T] */
|
||||
/* compiled from: SafeCollector.common.kt */
|
||||
@Metadata(d1 = {"\u0000\u0019\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u001f\u0010\u0002\u001a\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0005H\u0096@ø\u0001\u0000¢\u0006\u0002\u0010\u0006\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u0007¸\u0006\u0000"}, d2 = {"kotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1", "Lkotlinx/coroutines/flow/Flow;", "collect", "", "collector", "Lkotlinx/coroutines/flow/FlowCollector;", "(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class FlowKt__ErrorsKt$catch$$inlined$unsafeFlow$1<T> implements Flow<T> {
|
||||
final /* synthetic */ Function3 $action$inlined;
|
||||
final /* synthetic */ Flow $this_catch$inlined;
|
||||
|
||||
/* compiled from: SafeCollector.common.kt */
|
||||
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__ErrorsKt$catch$$inlined$unsafeFlow$1", f = "Errors.kt", i = {0, 0}, l = {113, 114}, m = "collect", n = {"this", "$this$catch_u24lambda_u240"}, s = {"L$0", "L$1"})
|
||||
/* renamed from: kotlinx.coroutines.flow.FlowKt__ErrorsKt$catch$$inlined$unsafeFlow$1$1, reason: invalid class name */
|
||||
public static final class AnonymousClass1 extends ContinuationImpl {
|
||||
Object L$0;
|
||||
Object L$1;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
public AnonymousClass1(Continuation continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= Integer.MIN_VALUE;
|
||||
return FlowKt__ErrorsKt$catch$$inlined$unsafeFlow$1.this.collect(null, this);
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:19:0x005b */
|
||||
/* JADX WARN: Removed duplicated region for block: B:22:0x0041 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0025 */
|
||||
@Override // kotlinx.coroutines.flow.Flow
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public java.lang.Object collect(kotlinx.coroutines.flow.FlowCollector<? super T> r6, kotlin.coroutines.Continuation<? super kotlin.Unit> r7) {
|
||||
/*
|
||||
r5 = this;
|
||||
boolean r0 = r7 instanceof kotlinx.coroutines.flow.FlowKt__ErrorsKt$catch$$inlined$unsafeFlow$1.AnonymousClass1
|
||||
if (r0 == 0) goto L14
|
||||
r0 = r7
|
||||
kotlinx.coroutines.flow.FlowKt__ErrorsKt$catch$$inlined$unsafeFlow$1$1 r0 = (kotlinx.coroutines.flow.FlowKt__ErrorsKt$catch$$inlined$unsafeFlow$1.AnonymousClass1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r1 = r1 & r2
|
||||
if (r1 == 0) goto L14
|
||||
int r7 = r0.label
|
||||
int r7 = r7 - r2
|
||||
r0.label = r7
|
||||
goto L19
|
||||
L14:
|
||||
kotlinx.coroutines.flow.FlowKt__ErrorsKt$catch$$inlined$unsafeFlow$1$1 r0 = new kotlinx.coroutines.flow.FlowKt__ErrorsKt$catch$$inlined$unsafeFlow$1$1
|
||||
r0.<init>(r7)
|
||||
L19:
|
||||
java.lang.Object r7 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 2
|
||||
r4 = 1
|
||||
if (r2 == 0) goto L41
|
||||
if (r2 == r4) goto L35
|
||||
if (r2 != r3) goto L2d
|
||||
kotlin.ResultKt.throwOnFailure(r7)
|
||||
goto L73
|
||||
L2d:
|
||||
java.lang.IllegalStateException r6 = new java.lang.IllegalStateException
|
||||
java.lang.String r7 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r6.<init>(r7)
|
||||
throw r6
|
||||
L35:
|
||||
java.lang.Object r6 = r0.L$1
|
||||
kotlinx.coroutines.flow.FlowCollector r6 = (kotlinx.coroutines.flow.FlowCollector) r6
|
||||
java.lang.Object r2 = r0.L$0
|
||||
kotlinx.coroutines.flow.FlowKt__ErrorsKt$catch$$inlined$unsafeFlow$1 r2 = (kotlinx.coroutines.flow.FlowKt__ErrorsKt$catch$$inlined$unsafeFlow$1) r2
|
||||
kotlin.ResultKt.throwOnFailure(r7)
|
||||
goto L57
|
||||
L41:
|
||||
kotlin.ResultKt.throwOnFailure(r7)
|
||||
r7 = r0
|
||||
kotlin.coroutines.Continuation r7 = (kotlin.coroutines.Continuation) r7
|
||||
kotlinx.coroutines.flow.Flow r7 = r5.$this_catch$inlined
|
||||
r0.L$0 = r5
|
||||
r0.L$1 = r6
|
||||
r0.label = r4
|
||||
java.lang.Object r7 = kotlinx.coroutines.flow.FlowKt.catchImpl(r7, r6, r0)
|
||||
if (r7 != r1) goto L56
|
||||
return r1
|
||||
L56:
|
||||
r2 = r5
|
||||
L57:
|
||||
java.lang.Throwable r7 = (java.lang.Throwable) r7
|
||||
if (r7 == 0) goto L73
|
||||
kotlin.jvm.functions.Function3 r2 = r2.$action$inlined
|
||||
r4 = 0
|
||||
r0.L$0 = r4
|
||||
r0.L$1 = r4
|
||||
r0.label = r3
|
||||
r3 = 6
|
||||
kotlin.jvm.internal.InlineMarker.mark(r3)
|
||||
java.lang.Object r6 = r2.invoke(r6, r7, r0)
|
||||
r7 = 7
|
||||
kotlin.jvm.internal.InlineMarker.mark(r7)
|
||||
if (r6 != r1) goto L73
|
||||
return r1
|
||||
L73:
|
||||
kotlin.Unit r6 = kotlin.Unit.INSTANCE
|
||||
return r6
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.FlowKt__ErrorsKt$catch$$inlined$unsafeFlow$1.collect(kotlinx.coroutines.flow.FlowCollector, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
|
||||
public FlowKt__ErrorsKt$catch$$inlined$unsafeFlow$1(Flow flow, Function3 function3) {
|
||||
this.$this_catch$inlined = flow;
|
||||
this.$action$inlined = function3;
|
||||
}
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
|
||||
/* compiled from: Errors.kt */
|
||||
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__ErrorsKt", f = "Errors.kt", i = {0}, l = {156}, m = "catchImpl", n = {"fromDownstream"}, s = {"L$0"})
|
||||
/* loaded from: classes.dex */
|
||||
final class FlowKt__ErrorsKt$catchImpl$1<T> extends ContinuationImpl {
|
||||
Object L$0;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
FlowKt__ErrorsKt$catchImpl$1(Continuation<? super FlowKt__ErrorsKt$catchImpl$1> continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= Integer.MIN_VALUE;
|
||||
return FlowKt.catchImpl(null, null, this);
|
||||
}
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
|
||||
/* compiled from: Errors.kt */
|
||||
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__ErrorsKt$catchImpl$2", f = "Errors.kt", i = {0}, l = {158}, m = "emit", n = {"this"}, s = {"L$0"})
|
||||
/* loaded from: classes.dex */
|
||||
final class FlowKt__ErrorsKt$catchImpl$2$emit$1 extends ContinuationImpl {
|
||||
Object L$0;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
final /* synthetic */ FlowKt__ErrorsKt$catchImpl$2<T> this$0;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
FlowKt__ErrorsKt$catchImpl$2$emit$1(FlowKt__ErrorsKt$catchImpl$2<? super T> flowKt__ErrorsKt$catchImpl$2, Continuation<? super FlowKt__ErrorsKt$catchImpl$2$emit$1> continuation) {
|
||||
super(continuation);
|
||||
this.this$0 = flowKt__ErrorsKt$catchImpl$2;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= Integer.MIN_VALUE;
|
||||
return this.this$0.emit(null, this);
|
||||
}
|
||||
}
|
@ -0,0 +1,84 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Ref;
|
||||
|
||||
/* compiled from: Errors.kt */
|
||||
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0004\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u00022\u0006\u0010\u0003\u001a\u0002H\u0002H\u008a@¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"<anonymous>", "", "T", "it", "emit", "(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;"}, k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
final class FlowKt__ErrorsKt$catchImpl$2<T> implements FlowCollector {
|
||||
final /* synthetic */ FlowCollector<T> $collector;
|
||||
final /* synthetic */ Ref.ObjectRef<Throwable> $fromDownstream;
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
FlowKt__ErrorsKt$catchImpl$2(FlowCollector<? super T> flowCollector, Ref.ObjectRef<Throwable> objectRef) {
|
||||
this.$collector = flowCollector;
|
||||
this.$fromDownstream = objectRef;
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:21:0x0038 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0024 */
|
||||
@Override // kotlinx.coroutines.flow.FlowCollector
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object emit(T r5, kotlin.coroutines.Continuation<? super kotlin.Unit> r6) {
|
||||
/*
|
||||
r4 = this;
|
||||
boolean r0 = r6 instanceof kotlinx.coroutines.flow.FlowKt__ErrorsKt$catchImpl$2$emit$1
|
||||
if (r0 == 0) goto L14
|
||||
r0 = r6
|
||||
kotlinx.coroutines.flow.FlowKt__ErrorsKt$catchImpl$2$emit$1 r0 = (kotlinx.coroutines.flow.FlowKt__ErrorsKt$catchImpl$2$emit$1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r1 = r1 & r2
|
||||
if (r1 == 0) goto L14
|
||||
int r6 = r0.label
|
||||
int r6 = r6 - r2
|
||||
r0.label = r6
|
||||
goto L19
|
||||
L14:
|
||||
kotlinx.coroutines.flow.FlowKt__ErrorsKt$catchImpl$2$emit$1 r0 = new kotlinx.coroutines.flow.FlowKt__ErrorsKt$catchImpl$2$emit$1
|
||||
r0.<init>(r4, r6)
|
||||
L19:
|
||||
java.lang.Object r6 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L38
|
||||
if (r2 != r3) goto L30
|
||||
java.lang.Object r5 = r0.L$0
|
||||
kotlinx.coroutines.flow.FlowKt__ErrorsKt$catchImpl$2 r5 = (kotlinx.coroutines.flow.FlowKt__ErrorsKt$catchImpl$2) r5
|
||||
kotlin.ResultKt.throwOnFailure(r6) // Catch: java.lang.Throwable -> L2e
|
||||
goto L48
|
||||
L2e:
|
||||
r6 = move-exception
|
||||
goto L4d
|
||||
L30:
|
||||
java.lang.IllegalStateException r5 = new java.lang.IllegalStateException
|
||||
java.lang.String r6 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r5.<init>(r6)
|
||||
throw r5
|
||||
L38:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
kotlinx.coroutines.flow.FlowCollector<T> r6 = r4.$collector // Catch: java.lang.Throwable -> L4b
|
||||
r0.L$0 = r4 // Catch: java.lang.Throwable -> L4b
|
||||
r0.label = r3 // Catch: java.lang.Throwable -> L4b
|
||||
java.lang.Object r5 = r6.emit(r5, r0) // Catch: java.lang.Throwable -> L4b
|
||||
if (r5 != r1) goto L48
|
||||
return r1
|
||||
L48:
|
||||
kotlin.Unit r5 = kotlin.Unit.INSTANCE
|
||||
return r5
|
||||
L4b:
|
||||
r6 = move-exception
|
||||
r5 = r4
|
||||
L4d:
|
||||
kotlin.jvm.internal.Ref$ObjectRef<java.lang.Throwable> r5 = r5.$fromDownstream
|
||||
r5.element = r6
|
||||
throw r6
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.FlowKt__ErrorsKt$catchImpl$2.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
}
|
@ -0,0 +1,43 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.Boxing;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
|
||||
/* compiled from: Errors.kt */
|
||||
@Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0010\u0003\n\u0000\n\u0002\u0010\u000b\n\u0000\u0010\u0004\u001a\u00020\u0003\"\u0004\b\u0000\u0010\u00002\u0006\u0010\u0002\u001a\u00020\u0001H\u008a@"}, d2 = {"T", "", "it", "", "<anonymous>"}, k = 3, mv = {1, 8, 0})
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__ErrorsKt$retry$1", f = "Errors.kt", i = {}, l = {}, m = "invokeSuspend", n = {}, s = {})
|
||||
/* loaded from: classes.dex */
|
||||
final class FlowKt__ErrorsKt$retry$1 extends SuspendLambda implements Function2<Throwable, Continuation<? super Boolean>, Object> {
|
||||
int label;
|
||||
|
||||
FlowKt__ErrorsKt$retry$1(Continuation<? super FlowKt__ErrorsKt$retry$1> continuation) {
|
||||
super(2, continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
||||
return new FlowKt__ErrorsKt$retry$1(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(Throwable th, Continuation<? super Boolean> continuation) {
|
||||
return ((FlowKt__ErrorsKt$retry$1) create(th, continuation)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
if (this.label != 0) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
return Boxing.boxBoolean(true);
|
||||
}
|
||||
}
|
@ -0,0 +1,93 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.functions.Function4;
|
||||
|
||||
/* JADX INFO: Add missing generic type declarations: [T] */
|
||||
/* compiled from: Errors.kt */
|
||||
@Metadata(d1 = {"\u0000\u0018\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0003\n\u0000\n\u0002\u0010\t\n\u0000\n\u0002\u0010\u000b\n\u0000\u0010\u0007\u001a\u00020\u0006\"\u0004\b\u0000\u0010\u0000*\b\u0012\u0004\u0012\u00028\u00000\u00012\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u008a@"}, d2 = {"T", "Lkotlinx/coroutines/flow/FlowCollector;", "", "cause", "", "attempt", "", "<anonymous>"}, k = 3, mv = {1, 8, 0})
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__ErrorsKt$retry$3", f = "Errors.kt", i = {}, l = {95}, m = "invokeSuspend", n = {}, s = {})
|
||||
/* loaded from: classes.dex */
|
||||
final class FlowKt__ErrorsKt$retry$3<T> extends SuspendLambda implements Function4<FlowCollector<? super T>, Throwable, Long, Continuation<? super Boolean>, Object> {
|
||||
final /* synthetic */ Function2<Throwable, Continuation<? super Boolean>, Object> $predicate;
|
||||
final /* synthetic */ long $retries;
|
||||
/* synthetic */ long J$0;
|
||||
/* synthetic */ Object L$0;
|
||||
int label;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
FlowKt__ErrorsKt$retry$3(long j, Function2<? super Throwable, ? super Continuation<? super Boolean>, ? extends Object> function2, Continuation<? super FlowKt__ErrorsKt$retry$3> continuation) {
|
||||
super(4, continuation);
|
||||
this.$retries = j;
|
||||
this.$predicate = function2;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function4
|
||||
public /* bridge */ /* synthetic */ Object invoke(Object obj, Throwable th, Long l, Continuation<? super Boolean> continuation) {
|
||||
return invoke((FlowCollector) obj, th, l.longValue(), continuation);
|
||||
}
|
||||
|
||||
public final Object invoke(FlowCollector<? super T> flowCollector, Throwable th, long j, Continuation<? super Boolean> continuation) {
|
||||
FlowKt__ErrorsKt$retry$3 flowKt__ErrorsKt$retry$3 = new FlowKt__ErrorsKt$retry$3(this.$retries, this.$predicate, continuation);
|
||||
flowKt__ErrorsKt$retry$3.L$0 = th;
|
||||
flowKt__ErrorsKt$retry$3.J$0 = j;
|
||||
return flowKt__ErrorsKt$retry$3.invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:6:0x0037, code lost:
|
||||
|
||||
if (((java.lang.Boolean) r8).booleanValue() != false) goto L17;
|
||||
*/
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object invokeSuspend(java.lang.Object r8) {
|
||||
/*
|
||||
r7 = this;
|
||||
java.lang.Object r0 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r1 = r7.label
|
||||
r2 = 1
|
||||
if (r1 == 0) goto L17
|
||||
if (r1 != r2) goto Lf
|
||||
kotlin.ResultKt.throwOnFailure(r8)
|
||||
goto L31
|
||||
Lf:
|
||||
java.lang.IllegalStateException r8 = new java.lang.IllegalStateException
|
||||
java.lang.String r0 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r8.<init>(r0)
|
||||
throw r8
|
||||
L17:
|
||||
kotlin.ResultKt.throwOnFailure(r8)
|
||||
java.lang.Object r8 = r7.L$0
|
||||
java.lang.Throwable r8 = (java.lang.Throwable) r8
|
||||
long r3 = r7.J$0
|
||||
long r5 = r7.$retries
|
||||
int r1 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))
|
||||
if (r1 >= 0) goto L3a
|
||||
kotlin.jvm.functions.Function2<java.lang.Throwable, kotlin.coroutines.Continuation<? super java.lang.Boolean>, java.lang.Object> r1 = r7.$predicate
|
||||
r7.label = r2
|
||||
java.lang.Object r8 = r1.invoke(r8, r7)
|
||||
if (r8 != r0) goto L31
|
||||
return r0
|
||||
L31:
|
||||
java.lang.Boolean r8 = (java.lang.Boolean) r8
|
||||
boolean r8 = r8.booleanValue()
|
||||
if (r8 == 0) goto L3a
|
||||
goto L3b
|
||||
L3a:
|
||||
r2 = 0
|
||||
L3b:
|
||||
java.lang.Boolean r8 = kotlin.coroutines.jvm.internal.Boxing.boxBoolean(r2)
|
||||
return r8
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.FlowKt__ErrorsKt$retry$3.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
}
|
@ -0,0 +1,182 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.jvm.functions.Function4;
|
||||
|
||||
/* JADX INFO: Add missing generic type declarations: [T] */
|
||||
/* compiled from: SafeCollector.common.kt */
|
||||
@Metadata(d1 = {"\u0000\u0019\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u001f\u0010\u0002\u001a\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0005H\u0096@ø\u0001\u0000¢\u0006\u0002\u0010\u0006\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u0007¸\u0006\u0000"}, d2 = {"kotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1", "Lkotlinx/coroutines/flow/Flow;", "collect", "", "collector", "Lkotlinx/coroutines/flow/FlowCollector;", "(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class FlowKt__ErrorsKt$retryWhen$$inlined$unsafeFlow$1<T> implements Flow<T> {
|
||||
final /* synthetic */ Function4 $predicate$inlined;
|
||||
final /* synthetic */ Flow $this_retryWhen$inlined;
|
||||
|
||||
/* compiled from: SafeCollector.common.kt */
|
||||
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__ErrorsKt$retryWhen$$inlined$unsafeFlow$1", f = "Errors.kt", i = {0, 0, 0, 0, 1, 1, 1, 1}, l = {117, 119}, m = "collect", n = {"this", "$this$retryWhen_u24lambda_u242", "attempt", "shallRetry", "this", "$this$retryWhen_u24lambda_u242", "cause", "attempt"}, s = {"L$0", "L$1", "J$0", "I$0", "L$0", "L$1", "L$2", "J$0"})
|
||||
/* renamed from: kotlinx.coroutines.flow.FlowKt__ErrorsKt$retryWhen$$inlined$unsafeFlow$1$1, reason: invalid class name */
|
||||
public static final class AnonymousClass1 extends ContinuationImpl {
|
||||
int I$0;
|
||||
long J$0;
|
||||
Object L$0;
|
||||
Object L$1;
|
||||
Object L$2;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
public AnonymousClass1(Continuation continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= Integer.MIN_VALUE;
|
||||
return FlowKt__ErrorsKt$retryWhen$$inlined$unsafeFlow$1.this.collect(null, this);
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:13:0x00a5 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:15:0x00af */
|
||||
/* JADX WARN: Removed duplicated region for block: B:18:0x00b2 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:21:0x0072 A[RETURN] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:22:0x0073 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:25:0x007b */
|
||||
/* JADX WARN: Removed duplicated region for block: B:29:0x00ac */
|
||||
/* JADX WARN: Removed duplicated region for block: B:30:0x00ab */
|
||||
/* JADX WARN: Removed duplicated region for block: B:34:0x0053 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0025 */
|
||||
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:28:0x009a -> B:11:0x009d). Please report as a decompilation issue!!! */
|
||||
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:29:0x00ac -> B:14:0x00ad). Please report as a decompilation issue!!! */
|
||||
@Override // kotlinx.coroutines.flow.Flow
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public java.lang.Object collect(kotlinx.coroutines.flow.FlowCollector<? super T> r12, kotlin.coroutines.Continuation<? super kotlin.Unit> r13) {
|
||||
/*
|
||||
r11 = this;
|
||||
boolean r0 = r13 instanceof kotlinx.coroutines.flow.FlowKt__ErrorsKt$retryWhen$$inlined$unsafeFlow$1.AnonymousClass1
|
||||
if (r0 == 0) goto L14
|
||||
r0 = r13
|
||||
kotlinx.coroutines.flow.FlowKt__ErrorsKt$retryWhen$$inlined$unsafeFlow$1$1 r0 = (kotlinx.coroutines.flow.FlowKt__ErrorsKt$retryWhen$$inlined$unsafeFlow$1.AnonymousClass1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r1 = r1 & r2
|
||||
if (r1 == 0) goto L14
|
||||
int r13 = r0.label
|
||||
int r13 = r13 - r2
|
||||
r0.label = r13
|
||||
goto L19
|
||||
L14:
|
||||
kotlinx.coroutines.flow.FlowKt__ErrorsKt$retryWhen$$inlined$unsafeFlow$1$1 r0 = new kotlinx.coroutines.flow.FlowKt__ErrorsKt$retryWhen$$inlined$unsafeFlow$1$1
|
||||
r0.<init>(r13)
|
||||
L19:
|
||||
java.lang.Object r13 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 2
|
||||
r4 = 1
|
||||
if (r2 == 0) goto L53
|
||||
if (r2 == r4) goto L43
|
||||
if (r2 != r3) goto L3b
|
||||
long r5 = r0.J$0
|
||||
java.lang.Object r12 = r0.L$2
|
||||
java.lang.Throwable r12 = (java.lang.Throwable) r12
|
||||
java.lang.Object r2 = r0.L$1
|
||||
kotlinx.coroutines.flow.FlowCollector r2 = (kotlinx.coroutines.flow.FlowCollector) r2
|
||||
java.lang.Object r7 = r0.L$0
|
||||
kotlinx.coroutines.flow.FlowKt__ErrorsKt$retryWhen$$inlined$unsafeFlow$1 r7 = (kotlinx.coroutines.flow.FlowKt__ErrorsKt$retryWhen$$inlined$unsafeFlow$1) r7
|
||||
kotlin.ResultKt.throwOnFailure(r13)
|
||||
goto L9d
|
||||
L3b:
|
||||
java.lang.IllegalStateException r12 = new java.lang.IllegalStateException
|
||||
java.lang.String r13 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r12.<init>(r13)
|
||||
throw r12
|
||||
L43:
|
||||
int r12 = r0.I$0
|
||||
long r5 = r0.J$0
|
||||
java.lang.Object r2 = r0.L$1
|
||||
kotlinx.coroutines.flow.FlowCollector r2 = (kotlinx.coroutines.flow.FlowCollector) r2
|
||||
java.lang.Object r7 = r0.L$0
|
||||
kotlinx.coroutines.flow.FlowKt__ErrorsKt$retryWhen$$inlined$unsafeFlow$1 r7 = (kotlinx.coroutines.flow.FlowKt__ErrorsKt$retryWhen$$inlined$unsafeFlow$1) r7
|
||||
kotlin.ResultKt.throwOnFailure(r13)
|
||||
goto L77
|
||||
L53:
|
||||
kotlin.ResultKt.throwOnFailure(r13)
|
||||
r13 = r0
|
||||
kotlin.coroutines.Continuation r13 = (kotlin.coroutines.Continuation) r13
|
||||
r5 = 0
|
||||
r13 = r11
|
||||
L5c:
|
||||
kotlinx.coroutines.flow.Flow r2 = r13.$this_retryWhen$inlined
|
||||
r0.L$0 = r13
|
||||
r0.L$1 = r12
|
||||
r7 = 0
|
||||
r0.L$2 = r7
|
||||
r0.J$0 = r5
|
||||
r7 = 0
|
||||
r0.I$0 = r7
|
||||
r0.label = r4
|
||||
java.lang.Object r2 = kotlinx.coroutines.flow.FlowKt.catchImpl(r2, r12, r0)
|
||||
if (r2 != r1) goto L73
|
||||
return r1
|
||||
L73:
|
||||
r7 = r13
|
||||
r13 = r2
|
||||
r2 = r12
|
||||
r12 = 0
|
||||
L77:
|
||||
java.lang.Throwable r13 = (java.lang.Throwable) r13
|
||||
if (r13 == 0) goto Lac
|
||||
kotlin.jvm.functions.Function4 r12 = r7.$predicate$inlined
|
||||
java.lang.Long r8 = kotlin.coroutines.jvm.internal.Boxing.boxLong(r5)
|
||||
r0.L$0 = r7
|
||||
r0.L$1 = r2
|
||||
r0.L$2 = r13
|
||||
r0.J$0 = r5
|
||||
r0.label = r3
|
||||
r9 = 6
|
||||
kotlin.jvm.internal.InlineMarker.mark(r9)
|
||||
java.lang.Object r12 = r12.invoke(r2, r13, r8, r0)
|
||||
r8 = 7
|
||||
kotlin.jvm.internal.InlineMarker.mark(r8)
|
||||
if (r12 != r1) goto L9a
|
||||
return r1
|
||||
L9a:
|
||||
r10 = r13
|
||||
r13 = r12
|
||||
r12 = r10
|
||||
L9d:
|
||||
java.lang.Boolean r13 = (java.lang.Boolean) r13
|
||||
boolean r13 = r13.booleanValue()
|
||||
if (r13 == 0) goto Lab
|
||||
r12 = 1
|
||||
long r5 = r5 + r12
|
||||
r13 = r7
|
||||
r12 = 1
|
||||
goto Lad
|
||||
Lab:
|
||||
throw r12
|
||||
Lac:
|
||||
r13 = r7
|
||||
Lad:
|
||||
if (r12 != 0) goto Lb2
|
||||
kotlin.Unit r12 = kotlin.Unit.INSTANCE
|
||||
return r12
|
||||
Lb2:
|
||||
r12 = r2
|
||||
goto L5c
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.FlowKt__ErrorsKt$retryWhen$$inlined$unsafeFlow$1.collect(kotlinx.coroutines.flow.FlowCollector, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
|
||||
public FlowKt__ErrorsKt$retryWhen$$inlined$unsafeFlow$1(Flow flow, Function4 function4) {
|
||||
this.$this_retryWhen$inlined = flow;
|
||||
this.$predicate$inlined = function4;
|
||||
}
|
||||
}
|
@ -0,0 +1,151 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.CoroutineContext;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.functions.Function3;
|
||||
import kotlin.jvm.functions.Function4;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlinx.coroutines.DebugKt;
|
||||
import kotlinx.coroutines.Job;
|
||||
import kotlinx.coroutines.internal.StackTraceRecoveryKt;
|
||||
|
||||
/* compiled from: Errors.kt */
|
||||
@Metadata(d1 = {"\u0000V\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\t\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\u001ah\u0010\u0000\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00012B\u0010\u0003\u001a>\b\u0001\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00020\u0005\u0012\u0013\u0012\u00110\u0006¢\u0006\f\b\u0007\u0012\b\b\b\u0012\u0004\b\b(\t\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u000b0\n\u0012\u0006\u0012\u0004\u0018\u00010\f0\u0004¢\u0006\u0002\b\rø\u0001\u0000¢\u0006\u0002\u0010\u000e\u001a1\u0010\u000f\u001a\u0004\u0018\u00010\u0006\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00012\f\u0010\u0010\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0005H\u0080@ø\u0001\u0000¢\u0006\u0002\u0010\u0011\u001a\u0019\u0010\u0012\u001a\u00020\u0013*\u00020\u00062\u0006\u0010\u0014\u001a\u00020\u0015H\u0002¢\u0006\u0002\b\u0016\u001a\u001b\u0010\u0017\u001a\u00020\u0013*\u00020\u00062\b\u0010\u0018\u001a\u0004\u0018\u00010\u0006H\u0002¢\u0006\u0002\b\u0019\u001ac\u0010\u001a\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00012\b\b\u0002\u0010\u001b\u001a\u00020\u001c23\b\u0002\u0010\u001d\u001a-\b\u0001\u0012\u0013\u0012\u00110\u0006¢\u0006\f\b\u0007\u0012\b\b\b\u0012\u0004\b\b(\t\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00130\n\u0012\u0006\u0012\u0004\u0018\u00010\f0\u001eø\u0001\u0000¢\u0006\u0002\u0010\u001f\u001a}\u0010 \u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00012W\u0010\u001d\u001aS\b\u0001\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00020\u0005\u0012\u0013\u0012\u00110\u0006¢\u0006\f\b\u0007\u0012\b\b\b\u0012\u0004\b\b(\t\u0012\u0013\u0012\u00110\u001c¢\u0006\f\b\u0007\u0012\b\b\b\u0012\u0004\b\b(\"\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00130\n\u0012\u0006\u0012\u0004\u0018\u00010\f0!¢\u0006\u0002\b\rø\u0001\u0000¢\u0006\u0002\u0010#\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006$"}, d2 = {"catch", "Lkotlinx/coroutines/flow/Flow;", "T", "action", "Lkotlin/Function3;", "Lkotlinx/coroutines/flow/FlowCollector;", "", "Lkotlin/ParameterName;", "name", "cause", "Lkotlin/coroutines/Continuation;", "", "", "Lkotlin/ExtensionFunctionType;", "(Lkotlinx/coroutines/flow/Flow;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/flow/Flow;", "catchImpl", "collector", "(Lkotlinx/coroutines/flow/Flow;Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "isCancellationCause", "", "coroutineContext", "Lkotlin/coroutines/CoroutineContext;", "isCancellationCause$FlowKt__ErrorsKt", "isSameExceptionAs", "other", "isSameExceptionAs$FlowKt__ErrorsKt", "retry", "retries", "", "predicate", "Lkotlin/Function2;", "(Lkotlinx/coroutines/flow/Flow;JLkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;", "retryWhen", "Lkotlin/Function4;", "attempt", "(Lkotlinx/coroutines/flow/Flow;Lkotlin/jvm/functions/Function4;)Lkotlinx/coroutines/flow/Flow;", "kotlinx-coroutines-core"}, k = 5, mv = {1, 8, 0}, xi = 48, xs = "kotlinx/coroutines/flow/FlowKt")
|
||||
/* loaded from: classes.dex */
|
||||
final /* synthetic */ class FlowKt__ErrorsKt {
|
||||
public static /* synthetic */ Flow retry$default(Flow flow, long j, Function2 function2, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
j = Long.MAX_VALUE;
|
||||
}
|
||||
if ((i & 2) != 0) {
|
||||
function2 = new FlowKt__ErrorsKt$retry$1(null);
|
||||
}
|
||||
return FlowKt.retry(flow, j, function2);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> retry(Flow<? extends T> flow, long j, Function2<? super Throwable, ? super Continuation<? super Boolean>, ? extends Object> function2) {
|
||||
if (j <= 0) {
|
||||
throw new IllegalArgumentException(("Expected positive amount of retries, but had " + j).toString());
|
||||
}
|
||||
return FlowKt.retryWhen(flow, new FlowKt__ErrorsKt$retry$3(j, function2, null));
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:31:0x0038 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0024 */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public static final <T> java.lang.Object catchImpl(kotlinx.coroutines.flow.Flow<? extends T> r4, kotlinx.coroutines.flow.FlowCollector<? super T> r5, kotlin.coroutines.Continuation<? super java.lang.Throwable> r6) {
|
||||
/*
|
||||
boolean r0 = r6 instanceof kotlinx.coroutines.flow.FlowKt__ErrorsKt$catchImpl$1
|
||||
if (r0 == 0) goto L14
|
||||
r0 = r6
|
||||
kotlinx.coroutines.flow.FlowKt__ErrorsKt$catchImpl$1 r0 = (kotlinx.coroutines.flow.FlowKt__ErrorsKt$catchImpl$1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r1 = r1 & r2
|
||||
if (r1 == 0) goto L14
|
||||
int r6 = r0.label
|
||||
int r6 = r6 - r2
|
||||
r0.label = r6
|
||||
goto L19
|
||||
L14:
|
||||
kotlinx.coroutines.flow.FlowKt__ErrorsKt$catchImpl$1 r0 = new kotlinx.coroutines.flow.FlowKt__ErrorsKt$catchImpl$1
|
||||
r0.<init>(r6)
|
||||
L19:
|
||||
java.lang.Object r6 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L38
|
||||
if (r2 != r3) goto L30
|
||||
java.lang.Object r4 = r0.L$0
|
||||
kotlin.jvm.internal.Ref$ObjectRef r4 = (kotlin.jvm.internal.Ref.ObjectRef) r4
|
||||
kotlin.ResultKt.throwOnFailure(r6) // Catch: java.lang.Throwable -> L2e
|
||||
goto L52
|
||||
L2e:
|
||||
r5 = move-exception
|
||||
goto L56
|
||||
L30:
|
||||
java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
|
||||
java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r4.<init>(r5)
|
||||
throw r4
|
||||
L38:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
kotlin.jvm.internal.Ref$ObjectRef r6 = new kotlin.jvm.internal.Ref$ObjectRef
|
||||
r6.<init>()
|
||||
kotlinx.coroutines.flow.FlowKt__ErrorsKt$catchImpl$2 r2 = new kotlinx.coroutines.flow.FlowKt__ErrorsKt$catchImpl$2 // Catch: java.lang.Throwable -> L54
|
||||
r2.<init>(r5, r6) // Catch: java.lang.Throwable -> L54
|
||||
kotlinx.coroutines.flow.FlowCollector r2 = (kotlinx.coroutines.flow.FlowCollector) r2 // Catch: java.lang.Throwable -> L54
|
||||
r0.L$0 = r6 // Catch: java.lang.Throwable -> L54
|
||||
r0.label = r3 // Catch: java.lang.Throwable -> L54
|
||||
java.lang.Object r4 = r4.collect(r2, r0) // Catch: java.lang.Throwable -> L54
|
||||
if (r4 != r1) goto L52
|
||||
return r1
|
||||
L52:
|
||||
r4 = 0
|
||||
return r4
|
||||
L54:
|
||||
r5 = move-exception
|
||||
r4 = r6
|
||||
L56:
|
||||
T r4 = r4.element
|
||||
java.lang.Throwable r4 = (java.lang.Throwable) r4
|
||||
boolean r6 = isSameExceptionAs$FlowKt__ErrorsKt(r5, r4)
|
||||
if (r6 != 0) goto L79
|
||||
kotlin.coroutines.CoroutineContext r6 = r0.get$context()
|
||||
boolean r6 = isCancellationCause$FlowKt__ErrorsKt(r5, r6)
|
||||
if (r6 != 0) goto L79
|
||||
if (r4 != 0) goto L6d
|
||||
return r5
|
||||
L6d:
|
||||
boolean r6 = r5 instanceof java.util.concurrent.CancellationException
|
||||
if (r6 == 0) goto L75
|
||||
kotlin.ExceptionsKt.addSuppressed(r4, r5)
|
||||
throw r4
|
||||
L75:
|
||||
kotlin.ExceptionsKt.addSuppressed(r5, r4)
|
||||
throw r5
|
||||
L79:
|
||||
throw r5
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.FlowKt__ErrorsKt.catchImpl(kotlinx.coroutines.flow.Flow, kotlinx.coroutines.flow.FlowCollector, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
|
||||
private static final boolean isCancellationCause$FlowKt__ErrorsKt(Throwable th, CoroutineContext coroutineContext) {
|
||||
Job job = (Job) coroutineContext.get(Job.INSTANCE);
|
||||
if (job == null || !job.isCancelled()) {
|
||||
return false;
|
||||
}
|
||||
return isSameExceptionAs$FlowKt__ErrorsKt(th, job.getCancellationException());
|
||||
}
|
||||
|
||||
/* renamed from: catch, reason: not valid java name */
|
||||
public static final <T> Flow<T> m1892catch(Flow<? extends T> flow, Function3<? super FlowCollector<? super T>, ? super Throwable, ? super Continuation<? super Unit>, ? extends Object> function3) {
|
||||
return new FlowKt__ErrorsKt$catch$$inlined$unsafeFlow$1(flow, function3);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> retryWhen(Flow<? extends T> flow, Function4<? super FlowCollector<? super T>, ? super Throwable, ? super Long, ? super Continuation<? super Boolean>, ? extends Object> function4) {
|
||||
return new FlowKt__ErrorsKt$retryWhen$$inlined$unsafeFlow$1(flow, function4);
|
||||
}
|
||||
|
||||
private static final boolean isSameExceptionAs$FlowKt__ErrorsKt(Throwable th, Throwable th2) {
|
||||
if (th2 != null) {
|
||||
if (DebugKt.getRECOVER_STACK_TRACES()) {
|
||||
th2 = StackTraceRecoveryKt.unwrapImpl(th2);
|
||||
}
|
||||
if (DebugKt.getRECOVER_STACK_TRACES()) {
|
||||
th = StackTraceRecoveryKt.unwrapImpl(th);
|
||||
}
|
||||
if (Intrinsics.areEqual(th2, th)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
|
||||
/* compiled from: Limit.kt */
|
||||
@Metadata(k = 3, mv = {1, 8, 0}, xi = 176)
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__LimitKt", f = "Limit.kt", i = {0}, l = {136}, m = "collectWhile", n = {"collector"}, s = {"L$0"})
|
||||
/* loaded from: classes.dex */
|
||||
final class FlowKt__LimitKt$collectWhile$1<T> extends ContinuationImpl {
|
||||
Object L$0;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
FlowKt__LimitKt$collectWhile$1(Continuation<? super FlowKt__LimitKt$collectWhile$1> continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= Integer.MIN_VALUE;
|
||||
return FlowKt__LimitKt.collectWhile(null, null, this);
|
||||
}
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
|
||||
/* compiled from: Limit.kt */
|
||||
@Metadata(k = 3, mv = {1, 8, 0}, xi = 176)
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__LimitKt$collectWhile$collector$1", f = "Limit.kt", i = {0}, l = {130}, m = "emit", n = {"this"}, s = {"L$0"})
|
||||
/* loaded from: classes.dex */
|
||||
public final class FlowKt__LimitKt$collectWhile$collector$1$emit$1 extends ContinuationImpl {
|
||||
Object L$0;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
final /* synthetic */ FlowKt__LimitKt$collectWhile$collector$1 this$0;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public FlowKt__LimitKt$collectWhile$collector$1$emit$1(FlowKt__LimitKt$collectWhile$collector$1 flowKt__LimitKt$collectWhile$collector$1, Continuation<? super FlowKt__LimitKt$collectWhile$collector$1$emit$1> continuation) {
|
||||
super(continuation);
|
||||
this.this$0 = flowKt__LimitKt$collectWhile$collector$1;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= Integer.MIN_VALUE;
|
||||
return this.this$0.emit(null, this);
|
||||
}
|
||||
}
|
@ -0,0 +1,99 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.internal.InlineMarker;
|
||||
import kotlinx.coroutines.flow.internal.AbortFlowException;
|
||||
|
||||
/* JADX INFO: Add missing generic type declarations: [T] */
|
||||
/* compiled from: Limit.kt */
|
||||
@Metadata(d1 = {"\u0000\u0013\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0003*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u0019\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00028\u0000H\u0096@ø\u0001\u0000¢\u0006\u0002\u0010\u0005\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u0006"}, d2 = {"kotlinx/coroutines/flow/FlowKt__LimitKt$collectWhile$collector$1", "Lkotlinx/coroutines/flow/FlowCollector;", "emit", "", "value", "(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core"}, k = 1, mv = {1, 8, 0}, xi = 176)
|
||||
/* loaded from: classes.dex */
|
||||
public final class FlowKt__LimitKt$collectWhile$collector$1<T> implements FlowCollector<T> {
|
||||
final /* synthetic */ Function2<T, Continuation<? super Boolean>, Object> $predicate;
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public FlowKt__LimitKt$collectWhile$collector$1(Function2<? super T, ? super Continuation<? super Boolean>, ? extends Object> function2) {
|
||||
this.$predicate = function2;
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:12:0x004f */
|
||||
/* JADX WARN: Removed duplicated region for block: B:15:0x0052 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:19:0x0036 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0024 */
|
||||
@Override // kotlinx.coroutines.flow.FlowCollector
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public java.lang.Object emit(T r5, kotlin.coroutines.Continuation<? super kotlin.Unit> r6) {
|
||||
/*
|
||||
r4 = this;
|
||||
boolean r0 = r6 instanceof kotlinx.coroutines.flow.FlowKt__LimitKt$collectWhile$collector$1$emit$1
|
||||
if (r0 == 0) goto L14
|
||||
r0 = r6
|
||||
kotlinx.coroutines.flow.FlowKt__LimitKt$collectWhile$collector$1$emit$1 r0 = (kotlinx.coroutines.flow.FlowKt__LimitKt$collectWhile$collector$1$emit$1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r1 = r1 & r2
|
||||
if (r1 == 0) goto L14
|
||||
int r6 = r0.label
|
||||
int r6 = r6 - r2
|
||||
r0.label = r6
|
||||
goto L19
|
||||
L14:
|
||||
kotlinx.coroutines.flow.FlowKt__LimitKt$collectWhile$collector$1$emit$1 r0 = new kotlinx.coroutines.flow.FlowKt__LimitKt$collectWhile$collector$1$emit$1
|
||||
r0.<init>(r4, r6)
|
||||
L19:
|
||||
java.lang.Object r6 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L36
|
||||
if (r2 != r3) goto L2e
|
||||
java.lang.Object r5 = r0.L$0
|
||||
kotlinx.coroutines.flow.FlowKt__LimitKt$collectWhile$collector$1 r5 = (kotlinx.coroutines.flow.FlowKt__LimitKt$collectWhile$collector$1) r5
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L47
|
||||
L2e:
|
||||
java.lang.IllegalStateException r5 = new java.lang.IllegalStateException
|
||||
java.lang.String r6 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r5.<init>(r6)
|
||||
throw r5
|
||||
L36:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
kotlin.jvm.functions.Function2<T, kotlin.coroutines.Continuation<? super java.lang.Boolean>, java.lang.Object> r6 = r4.$predicate
|
||||
r0.L$0 = r4
|
||||
r0.label = r3
|
||||
java.lang.Object r6 = r6.invoke(r5, r0)
|
||||
if (r6 != r1) goto L46
|
||||
return r1
|
||||
L46:
|
||||
r5 = r4
|
||||
L47:
|
||||
java.lang.Boolean r6 = (java.lang.Boolean) r6
|
||||
boolean r6 = r6.booleanValue()
|
||||
if (r6 == 0) goto L52
|
||||
kotlin.Unit r5 = kotlin.Unit.INSTANCE
|
||||
return r5
|
||||
L52:
|
||||
kotlinx.coroutines.flow.internal.AbortFlowException r6 = new kotlinx.coroutines.flow.internal.AbortFlowException
|
||||
kotlinx.coroutines.flow.FlowCollector r5 = (kotlinx.coroutines.flow.FlowCollector) r5
|
||||
r6.<init>(r5)
|
||||
throw r6
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.FlowKt__LimitKt$collectWhile$collector$1.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
|
||||
public Object emit$$forInline(T t, Continuation<? super Unit> continuation) {
|
||||
InlineMarker.mark(4);
|
||||
new FlowKt__LimitKt$collectWhile$collector$1$emit$1(this, continuation);
|
||||
InlineMarker.mark(5);
|
||||
if (!((Boolean) this.$predicate.invoke(t, continuation)).booleanValue()) {
|
||||
throw new AbortFlowException(this);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
|
||||
/* compiled from: Limit.kt */
|
||||
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__LimitKt$drop$2$1", f = "Limit.kt", i = {}, l = {25}, m = "emit", n = {}, s = {})
|
||||
/* loaded from: classes.dex */
|
||||
final class FlowKt__LimitKt$drop$2$1$emit$1 extends ContinuationImpl {
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
final /* synthetic */ FlowKt__LimitKt$drop$2$1<T> this$0;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
FlowKt__LimitKt$drop$2$1$emit$1(FlowKt__LimitKt$drop$2$1<? super T> flowKt__LimitKt$drop$2$1, Continuation<? super FlowKt__LimitKt$drop$2$1$emit$1> continuation) {
|
||||
super(continuation);
|
||||
this.this$0 = flowKt__LimitKt$drop$2$1;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= Integer.MIN_VALUE;
|
||||
return this.this$0.emit(null, this);
|
||||
}
|
||||
}
|
@ -0,0 +1,86 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Ref;
|
||||
|
||||
/* compiled from: Limit.kt */
|
||||
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0004\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u00022\u0006\u0010\u0003\u001a\u0002H\u0002H\u008a@¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"<anonymous>", "", "T", "value", "emit", "(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;"}, k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
final class FlowKt__LimitKt$drop$2$1<T> implements FlowCollector {
|
||||
final /* synthetic */ int $count;
|
||||
final /* synthetic */ Ref.IntRef $skipped;
|
||||
final /* synthetic */ FlowCollector<T> $this_unsafeFlow;
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
FlowKt__LimitKt$drop$2$1(Ref.IntRef intRef, int i, FlowCollector<? super T> flowCollector) {
|
||||
this.$skipped = intRef;
|
||||
this.$count = i;
|
||||
this.$this_unsafeFlow = flowCollector;
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:15:0x0032 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0024 */
|
||||
@Override // kotlinx.coroutines.flow.FlowCollector
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object emit(T r5, kotlin.coroutines.Continuation<? super kotlin.Unit> r6) {
|
||||
/*
|
||||
r4 = this;
|
||||
boolean r0 = r6 instanceof kotlinx.coroutines.flow.FlowKt__LimitKt$drop$2$1$emit$1
|
||||
if (r0 == 0) goto L14
|
||||
r0 = r6
|
||||
kotlinx.coroutines.flow.FlowKt__LimitKt$drop$2$1$emit$1 r0 = (kotlinx.coroutines.flow.FlowKt__LimitKt$drop$2$1$emit$1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r1 = r1 & r2
|
||||
if (r1 == 0) goto L14
|
||||
int r6 = r0.label
|
||||
int r6 = r6 - r2
|
||||
r0.label = r6
|
||||
goto L19
|
||||
L14:
|
||||
kotlinx.coroutines.flow.FlowKt__LimitKt$drop$2$1$emit$1 r0 = new kotlinx.coroutines.flow.FlowKt__LimitKt$drop$2$1$emit$1
|
||||
r0.<init>(r4, r6)
|
||||
L19:
|
||||
java.lang.Object r6 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L32
|
||||
if (r2 != r3) goto L2a
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L48
|
||||
L2a:
|
||||
java.lang.IllegalStateException r5 = new java.lang.IllegalStateException
|
||||
java.lang.String r6 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r5.<init>(r6)
|
||||
throw r5
|
||||
L32:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
kotlin.jvm.internal.Ref$IntRef r6 = r4.$skipped
|
||||
int r6 = r6.element
|
||||
int r2 = r4.$count
|
||||
if (r6 < r2) goto L4b
|
||||
kotlinx.coroutines.flow.FlowCollector<T> r6 = r4.$this_unsafeFlow
|
||||
r0.label = r3
|
||||
java.lang.Object r5 = r6.emit(r5, r0)
|
||||
if (r5 != r1) goto L48
|
||||
return r1
|
||||
L48:
|
||||
kotlin.Unit r5 = kotlin.Unit.INSTANCE
|
||||
return r5
|
||||
L4b:
|
||||
kotlin.jvm.internal.Ref$IntRef r5 = r4.$skipped
|
||||
int r6 = r5.element
|
||||
int r6 = r6 + r3
|
||||
r5.element = r6
|
||||
kotlin.jvm.internal.Ref$IntRef r5 = r4.$skipped
|
||||
int r5 = r5.element
|
||||
kotlin.Unit r5 = kotlin.Unit.INSTANCE
|
||||
return r5
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.FlowKt__LimitKt$drop$2$1.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
|
||||
/* compiled from: Limit.kt */
|
||||
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__LimitKt$dropWhile$1$1", f = "Limit.kt", i = {1, 1}, l = {37, 38, 40}, m = "emit", n = {"this", "value"}, s = {"L$0", "L$1"})
|
||||
/* loaded from: classes.dex */
|
||||
final class FlowKt__LimitKt$dropWhile$1$1$emit$1 extends ContinuationImpl {
|
||||
Object L$0;
|
||||
Object L$1;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
final /* synthetic */ FlowKt__LimitKt$dropWhile$1$1<T> this$0;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
FlowKt__LimitKt$dropWhile$1$1$emit$1(FlowKt__LimitKt$dropWhile$1$1<? super T> flowKt__LimitKt$dropWhile$1$1, Continuation<? super FlowKt__LimitKt$dropWhile$1$1$emit$1> continuation) {
|
||||
super(continuation);
|
||||
this.this$0 = flowKt__LimitKt$dropWhile$1$1;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= Integer.MIN_VALUE;
|
||||
return this.this$0.emit(null, this);
|
||||
}
|
||||
}
|
@ -0,0 +1,123 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.internal.Ref;
|
||||
|
||||
/* compiled from: Limit.kt */
|
||||
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0004\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u00022\u0006\u0010\u0003\u001a\u0002H\u0002H\u008a@¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"<anonymous>", "", "T", "value", "emit", "(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;"}, k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
final class FlowKt__LimitKt$dropWhile$1$1<T> implements FlowCollector {
|
||||
final /* synthetic */ Ref.BooleanRef $matched;
|
||||
final /* synthetic */ Function2<T, Continuation<? super Boolean>, Object> $predicate;
|
||||
final /* synthetic */ FlowCollector<T> $this_unsafeFlow;
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
FlowKt__LimitKt$dropWhile$1$1(Ref.BooleanRef booleanRef, FlowCollector<? super T> flowCollector, Function2<? super T, ? super Continuation<? super Boolean>, ? extends Object> function2) {
|
||||
this.$matched = booleanRef;
|
||||
this.$this_unsafeFlow = flowCollector;
|
||||
this.$predicate = function2;
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:20:0x0075 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:23:0x008c */
|
||||
/* JADX WARN: Removed duplicated region for block: B:28:0x0046 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0026 */
|
||||
@Override // kotlinx.coroutines.flow.FlowCollector
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object emit(T r7, kotlin.coroutines.Continuation<? super kotlin.Unit> r8) {
|
||||
/*
|
||||
r6 = this;
|
||||
boolean r0 = r8 instanceof kotlinx.coroutines.flow.FlowKt__LimitKt$dropWhile$1$1$emit$1
|
||||
if (r0 == 0) goto L14
|
||||
r0 = r8
|
||||
kotlinx.coroutines.flow.FlowKt__LimitKt$dropWhile$1$1$emit$1 r0 = (kotlinx.coroutines.flow.FlowKt__LimitKt$dropWhile$1$1$emit$1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r1 = r1 & r2
|
||||
if (r1 == 0) goto L14
|
||||
int r8 = r0.label
|
||||
int r8 = r8 - r2
|
||||
r0.label = r8
|
||||
goto L19
|
||||
L14:
|
||||
kotlinx.coroutines.flow.FlowKt__LimitKt$dropWhile$1$1$emit$1 r0 = new kotlinx.coroutines.flow.FlowKt__LimitKt$dropWhile$1$1$emit$1
|
||||
r0.<init>(r6, r8)
|
||||
L19:
|
||||
java.lang.Object r8 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 3
|
||||
r4 = 2
|
||||
r5 = 1
|
||||
if (r2 == 0) goto L46
|
||||
if (r2 == r5) goto L42
|
||||
if (r2 == r4) goto L38
|
||||
if (r2 != r3) goto L30
|
||||
kotlin.ResultKt.throwOnFailure(r8)
|
||||
goto L89
|
||||
L30:
|
||||
java.lang.IllegalStateException r7 = new java.lang.IllegalStateException
|
||||
java.lang.String r8 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r7.<init>(r8)
|
||||
throw r7
|
||||
L38:
|
||||
java.lang.Object r7 = r0.L$1
|
||||
java.lang.Object r2 = r0.L$0
|
||||
kotlinx.coroutines.flow.FlowKt__LimitKt$dropWhile$1$1 r2 = (kotlinx.coroutines.flow.FlowKt__LimitKt$dropWhile$1$1) r2
|
||||
kotlin.ResultKt.throwOnFailure(r8)
|
||||
goto L6d
|
||||
L42:
|
||||
kotlin.ResultKt.throwOnFailure(r8)
|
||||
goto L5a
|
||||
L46:
|
||||
kotlin.ResultKt.throwOnFailure(r8)
|
||||
kotlin.jvm.internal.Ref$BooleanRef r8 = r6.$matched
|
||||
boolean r8 = r8.element
|
||||
if (r8 == 0) goto L5d
|
||||
kotlinx.coroutines.flow.FlowCollector<T> r8 = r6.$this_unsafeFlow
|
||||
r0.label = r5
|
||||
java.lang.Object r7 = r8.emit(r7, r0)
|
||||
if (r7 != r1) goto L5a
|
||||
return r1
|
||||
L5a:
|
||||
kotlin.Unit r7 = kotlin.Unit.INSTANCE
|
||||
return r7
|
||||
L5d:
|
||||
kotlin.jvm.functions.Function2<T, kotlin.coroutines.Continuation<? super java.lang.Boolean>, java.lang.Object> r8 = r6.$predicate
|
||||
r0.L$0 = r6
|
||||
r0.L$1 = r7
|
||||
r0.label = r4
|
||||
java.lang.Object r8 = r8.invoke(r7, r0)
|
||||
if (r8 != r1) goto L6c
|
||||
return r1
|
||||
L6c:
|
||||
r2 = r6
|
||||
L6d:
|
||||
java.lang.Boolean r8 = (java.lang.Boolean) r8
|
||||
boolean r8 = r8.booleanValue()
|
||||
if (r8 != 0) goto L8c
|
||||
kotlin.jvm.internal.Ref$BooleanRef r8 = r2.$matched
|
||||
r8.element = r5
|
||||
kotlinx.coroutines.flow.FlowCollector<T> r8 = r2.$this_unsafeFlow
|
||||
r2 = 0
|
||||
r0.L$0 = r2
|
||||
r0.L$1 = r2
|
||||
r0.label = r3
|
||||
java.lang.Object r7 = r8.emit(r7, r0)
|
||||
if (r7 != r1) goto L89
|
||||
return r1
|
||||
L89:
|
||||
kotlin.Unit r7 = kotlin.Unit.INSTANCE
|
||||
return r7
|
||||
L8c:
|
||||
kotlin.Unit r7 = kotlin.Unit.INSTANCE
|
||||
return r7
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.FlowKt__LimitKt$dropWhile$1$1.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
|
||||
/* compiled from: Limit.kt */
|
||||
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__LimitKt", f = "Limit.kt", i = {0}, l = {73}, m = "emitAbort$FlowKt__LimitKt", n = {"$this$emitAbort"}, s = {"L$0"})
|
||||
/* loaded from: classes.dex */
|
||||
final class FlowKt__LimitKt$emitAbort$1<T> extends ContinuationImpl {
|
||||
Object L$0;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
FlowKt__LimitKt$emitAbort$1(Continuation<? super FlowKt__LimitKt$emitAbort$1> continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
Object emitAbort$FlowKt__LimitKt;
|
||||
this.result = obj;
|
||||
this.label |= Integer.MIN_VALUE;
|
||||
emitAbort$FlowKt__LimitKt = FlowKt__LimitKt.emitAbort$FlowKt__LimitKt(null, null, this);
|
||||
return emitAbort$FlowKt__LimitKt;
|
||||
}
|
||||
}
|
@ -0,0 +1,118 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
|
||||
/* JADX INFO: Add missing generic type declarations: [T] */
|
||||
/* compiled from: SafeCollector.common.kt */
|
||||
@Metadata(d1 = {"\u0000\u0019\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u001f\u0010\u0002\u001a\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0005H\u0096@ø\u0001\u0000¢\u0006\u0002\u0010\u0006\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u0007¸\u0006\u0000"}, d2 = {"kotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1", "Lkotlinx/coroutines/flow/Flow;", "collect", "", "collector", "Lkotlinx/coroutines/flow/FlowCollector;", "(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class FlowKt__LimitKt$take$$inlined$unsafeFlow$1<T> implements Flow<T> {
|
||||
final /* synthetic */ int $count$inlined;
|
||||
final /* synthetic */ Flow $this_take$inlined;
|
||||
|
||||
/* compiled from: SafeCollector.common.kt */
|
||||
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__LimitKt$take$$inlined$unsafeFlow$1", f = "Limit.kt", i = {0}, l = {115}, m = "collect", n = {"$this$take_u24lambda_u244"}, s = {"L$0"})
|
||||
/* renamed from: kotlinx.coroutines.flow.FlowKt__LimitKt$take$$inlined$unsafeFlow$1$1, reason: invalid class name */
|
||||
public static final class AnonymousClass1 extends ContinuationImpl {
|
||||
Object L$0;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
public AnonymousClass1(Continuation continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= Integer.MIN_VALUE;
|
||||
return FlowKt__LimitKt$take$$inlined$unsafeFlow$1.this.collect(null, this);
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't wrap try/catch for region: R(10:0|1|(2:3|(7:5|6|7|(1:(2:10|11)(2:17|18))(3:19|20|(1:22))|12|13|14))|25|6|7|(0)(0)|12|13|14) */
|
||||
/* JADX WARN: Code restructure failed: missing block: B:23:0x0057, code lost:
|
||||
|
||||
r8 = move-exception;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:24:0x0058, code lost:
|
||||
|
||||
kotlinx.coroutines.flow.internal.FlowExceptions_commonKt.checkOwnership(r8, r7);
|
||||
*/
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
/* JADX WARN: Removed duplicated region for block: B:19:0x0036 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:9:0x0024 */
|
||||
@Override // kotlinx.coroutines.flow.Flow
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public java.lang.Object collect(kotlinx.coroutines.flow.FlowCollector<? super T> r7, kotlin.coroutines.Continuation<? super kotlin.Unit> r8) {
|
||||
/*
|
||||
r6 = this;
|
||||
boolean r0 = r8 instanceof kotlinx.coroutines.flow.FlowKt__LimitKt$take$$inlined$unsafeFlow$1.AnonymousClass1
|
||||
if (r0 == 0) goto L14
|
||||
r0 = r8
|
||||
kotlinx.coroutines.flow.FlowKt__LimitKt$take$$inlined$unsafeFlow$1$1 r0 = (kotlinx.coroutines.flow.FlowKt__LimitKt$take$$inlined$unsafeFlow$1.AnonymousClass1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r1 = r1 & r2
|
||||
if (r1 == 0) goto L14
|
||||
int r8 = r0.label
|
||||
int r8 = r8 - r2
|
||||
r0.label = r8
|
||||
goto L19
|
||||
L14:
|
||||
kotlinx.coroutines.flow.FlowKt__LimitKt$take$$inlined$unsafeFlow$1$1 r0 = new kotlinx.coroutines.flow.FlowKt__LimitKt$take$$inlined$unsafeFlow$1$1
|
||||
r0.<init>(r8)
|
||||
L19:
|
||||
java.lang.Object r8 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L36
|
||||
if (r2 != r3) goto L2e
|
||||
java.lang.Object r7 = r0.L$0
|
||||
kotlinx.coroutines.flow.FlowCollector r7 = (kotlinx.coroutines.flow.FlowCollector) r7
|
||||
kotlin.ResultKt.throwOnFailure(r8) // Catch: kotlinx.coroutines.flow.internal.AbortFlowException -> L57
|
||||
goto L5b
|
||||
L2e:
|
||||
java.lang.IllegalStateException r7 = new java.lang.IllegalStateException
|
||||
java.lang.String r8 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r7.<init>(r8)
|
||||
throw r7
|
||||
L36:
|
||||
kotlin.ResultKt.throwOnFailure(r8)
|
||||
r8 = r0
|
||||
kotlin.coroutines.Continuation r8 = (kotlin.coroutines.Continuation) r8
|
||||
kotlin.jvm.internal.Ref$IntRef r8 = new kotlin.jvm.internal.Ref$IntRef
|
||||
r8.<init>()
|
||||
kotlinx.coroutines.flow.Flow r2 = r6.$this_take$inlined // Catch: kotlinx.coroutines.flow.internal.AbortFlowException -> L57
|
||||
kotlinx.coroutines.flow.FlowKt__LimitKt$take$2$1 r4 = new kotlinx.coroutines.flow.FlowKt__LimitKt$take$2$1 // Catch: kotlinx.coroutines.flow.internal.AbortFlowException -> L57
|
||||
int r5 = r6.$count$inlined // Catch: kotlinx.coroutines.flow.internal.AbortFlowException -> L57
|
||||
r4.<init>(r8, r5, r7) // Catch: kotlinx.coroutines.flow.internal.AbortFlowException -> L57
|
||||
kotlinx.coroutines.flow.FlowCollector r4 = (kotlinx.coroutines.flow.FlowCollector) r4 // Catch: kotlinx.coroutines.flow.internal.AbortFlowException -> L57
|
||||
r0.L$0 = r7 // Catch: kotlinx.coroutines.flow.internal.AbortFlowException -> L57
|
||||
r0.label = r3 // Catch: kotlinx.coroutines.flow.internal.AbortFlowException -> L57
|
||||
java.lang.Object r7 = r2.collect(r4, r0) // Catch: kotlinx.coroutines.flow.internal.AbortFlowException -> L57
|
||||
if (r7 != r1) goto L5b
|
||||
return r1
|
||||
L57:
|
||||
r8 = move-exception
|
||||
kotlinx.coroutines.flow.internal.FlowExceptions_commonKt.checkOwnership(r8, r7)
|
||||
L5b:
|
||||
kotlin.Unit r7 = kotlin.Unit.INSTANCE
|
||||
return r7
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.FlowKt__LimitKt$take$$inlined$unsafeFlow$1.collect(kotlinx.coroutines.flow.FlowCollector, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
|
||||
public FlowKt__LimitKt$take$$inlined$unsafeFlow$1(Flow flow, int i) {
|
||||
this.$this_take$inlined = flow;
|
||||
this.$count$inlined = i;
|
||||
}
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
|
||||
/* compiled from: Limit.kt */
|
||||
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__LimitKt$take$2$1", f = "Limit.kt", i = {}, l = {61, 63}, m = "emit", n = {}, s = {})
|
||||
/* loaded from: classes.dex */
|
||||
final class FlowKt__LimitKt$take$2$1$emit$1 extends ContinuationImpl {
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
final /* synthetic */ FlowKt__LimitKt$take$2$1<T> this$0;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
FlowKt__LimitKt$take$2$1$emit$1(FlowKt__LimitKt$take$2$1<? super T> flowKt__LimitKt$take$2$1, Continuation<? super FlowKt__LimitKt$take$2$1$emit$1> continuation) {
|
||||
super(continuation);
|
||||
this.this$0 = flowKt__LimitKt$take$2$1;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= Integer.MIN_VALUE;
|
||||
return this.this$0.emit(null, this);
|
||||
}
|
||||
}
|
@ -0,0 +1,95 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Ref;
|
||||
|
||||
/* compiled from: Limit.kt */
|
||||
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0004\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u00022\u0006\u0010\u0003\u001a\u0002H\u0002H\u008a@¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"<anonymous>", "", "T", "value", "emit", "(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;"}, k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
final class FlowKt__LimitKt$take$2$1<T> implements FlowCollector {
|
||||
final /* synthetic */ Ref.IntRef $consumed;
|
||||
final /* synthetic */ int $count;
|
||||
final /* synthetic */ FlowCollector<T> $this_unsafeFlow;
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
FlowKt__LimitKt$take$2$1(Ref.IntRef intRef, int i, FlowCollector<? super T> flowCollector) {
|
||||
this.$consumed = intRef;
|
||||
this.$count = i;
|
||||
this.$this_unsafeFlow = flowCollector;
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:19:0x0039 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0025 */
|
||||
@Override // kotlinx.coroutines.flow.FlowCollector
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object emit(T r6, kotlin.coroutines.Continuation<? super kotlin.Unit> r7) {
|
||||
/*
|
||||
r5 = this;
|
||||
boolean r0 = r7 instanceof kotlinx.coroutines.flow.FlowKt__LimitKt$take$2$1$emit$1
|
||||
if (r0 == 0) goto L14
|
||||
r0 = r7
|
||||
kotlinx.coroutines.flow.FlowKt__LimitKt$take$2$1$emit$1 r0 = (kotlinx.coroutines.flow.FlowKt__LimitKt$take$2$1$emit$1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r1 = r1 & r2
|
||||
if (r1 == 0) goto L14
|
||||
int r7 = r0.label
|
||||
int r7 = r7 - r2
|
||||
r0.label = r7
|
||||
goto L19
|
||||
L14:
|
||||
kotlinx.coroutines.flow.FlowKt__LimitKt$take$2$1$emit$1 r0 = new kotlinx.coroutines.flow.FlowKt__LimitKt$take$2$1$emit$1
|
||||
r0.<init>(r5, r7)
|
||||
L19:
|
||||
java.lang.Object r7 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 2
|
||||
r4 = 1
|
||||
if (r2 == 0) goto L39
|
||||
if (r2 == r4) goto L35
|
||||
if (r2 != r3) goto L2d
|
||||
kotlin.ResultKt.throwOnFailure(r7)
|
||||
goto L64
|
||||
L2d:
|
||||
java.lang.IllegalStateException r6 = new java.lang.IllegalStateException
|
||||
java.lang.String r7 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r6.<init>(r7)
|
||||
throw r6
|
||||
L35:
|
||||
kotlin.ResultKt.throwOnFailure(r7)
|
||||
goto L56
|
||||
L39:
|
||||
kotlin.ResultKt.throwOnFailure(r7)
|
||||
kotlin.jvm.internal.Ref$IntRef r7 = r5.$consumed
|
||||
int r2 = r7.element
|
||||
int r2 = r2 + r4
|
||||
r7.element = r2
|
||||
kotlin.jvm.internal.Ref$IntRef r7 = r5.$consumed
|
||||
int r7 = r7.element
|
||||
int r2 = r5.$count
|
||||
if (r7 >= r2) goto L59
|
||||
kotlinx.coroutines.flow.FlowCollector<T> r7 = r5.$this_unsafeFlow
|
||||
r0.label = r4
|
||||
java.lang.Object r6 = r7.emit(r6, r0)
|
||||
if (r6 != r1) goto L56
|
||||
return r1
|
||||
L56:
|
||||
kotlin.Unit r6 = kotlin.Unit.INSTANCE
|
||||
return r6
|
||||
L59:
|
||||
kotlinx.coroutines.flow.FlowCollector<T> r7 = r5.$this_unsafeFlow
|
||||
r0.label = r3
|
||||
java.lang.Object r6 = kotlinx.coroutines.flow.FlowKt__LimitKt.access$emitAbort$FlowKt__LimitKt(r7, r6, r0)
|
||||
if (r6 != r1) goto L64
|
||||
return r1
|
||||
L64:
|
||||
kotlin.Unit r6 = kotlin.Unit.INSTANCE
|
||||
return r6
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.FlowKt__LimitKt$take$2$1.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
}
|
@ -0,0 +1,114 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
|
||||
/* JADX INFO: Add missing generic type declarations: [T] */
|
||||
/* compiled from: SafeCollector.common.kt */
|
||||
@Metadata(d1 = {"\u0000\u0019\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u001f\u0010\u0002\u001a\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0005H\u0096@ø\u0001\u0000¢\u0006\u0002\u0010\u0006\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u0007¸\u0006\u0000"}, d2 = {"kotlinx/coroutines/flow/internal/SafeCollector_commonKt$unsafeFlow$1", "Lkotlinx/coroutines/flow/Flow;", "collect", "", "collector", "Lkotlinx/coroutines/flow/FlowCollector;", "(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class FlowKt__LimitKt$takeWhile$$inlined$unsafeFlow$1<T> implements Flow<T> {
|
||||
final /* synthetic */ Function2 $predicate$inlined;
|
||||
final /* synthetic */ Flow $this_takeWhile$inlined;
|
||||
|
||||
/* compiled from: SafeCollector.common.kt */
|
||||
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__LimitKt$takeWhile$$inlined$unsafeFlow$1", f = "Limit.kt", i = {0}, l = {124}, m = "collect", n = {"collector$iv"}, s = {"L$0"})
|
||||
/* renamed from: kotlinx.coroutines.flow.FlowKt__LimitKt$takeWhile$$inlined$unsafeFlow$1$1, reason: invalid class name */
|
||||
public static final class AnonymousClass1 extends ContinuationImpl {
|
||||
Object L$0;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
public AnonymousClass1(Continuation continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= Integer.MIN_VALUE;
|
||||
return FlowKt__LimitKt$takeWhile$$inlined$unsafeFlow$1.this.collect(null, this);
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:20:0x0038 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0024 */
|
||||
@Override // kotlinx.coroutines.flow.Flow
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public java.lang.Object collect(kotlinx.coroutines.flow.FlowCollector<? super T> r6, kotlin.coroutines.Continuation<? super kotlin.Unit> r7) {
|
||||
/*
|
||||
r5 = this;
|
||||
boolean r0 = r7 instanceof kotlinx.coroutines.flow.FlowKt__LimitKt$takeWhile$$inlined$unsafeFlow$1.AnonymousClass1
|
||||
if (r0 == 0) goto L14
|
||||
r0 = r7
|
||||
kotlinx.coroutines.flow.FlowKt__LimitKt$takeWhile$$inlined$unsafeFlow$1$1 r0 = (kotlinx.coroutines.flow.FlowKt__LimitKt$takeWhile$$inlined$unsafeFlow$1.AnonymousClass1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r1 = r1 & r2
|
||||
if (r1 == 0) goto L14
|
||||
int r7 = r0.label
|
||||
int r7 = r7 - r2
|
||||
r0.label = r7
|
||||
goto L19
|
||||
L14:
|
||||
kotlinx.coroutines.flow.FlowKt__LimitKt$takeWhile$$inlined$unsafeFlow$1$1 r0 = new kotlinx.coroutines.flow.FlowKt__LimitKt$takeWhile$$inlined$unsafeFlow$1$1
|
||||
r0.<init>(r7)
|
||||
L19:
|
||||
java.lang.Object r7 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L38
|
||||
if (r2 != r3) goto L30
|
||||
java.lang.Object r6 = r0.L$0
|
||||
kotlinx.coroutines.flow.FlowKt__LimitKt$takeWhile$lambda$6$$inlined$collectWhile$1 r6 = (kotlinx.coroutines.flow.FlowKt__LimitKt$takeWhile$lambda$6$$inlined$collectWhile$1) r6
|
||||
kotlin.ResultKt.throwOnFailure(r7) // Catch: kotlinx.coroutines.flow.internal.AbortFlowException -> L2e
|
||||
goto L5c
|
||||
L2e:
|
||||
r7 = move-exception
|
||||
goto L57
|
||||
L30:
|
||||
java.lang.IllegalStateException r6 = new java.lang.IllegalStateException
|
||||
java.lang.String r7 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r6.<init>(r7)
|
||||
throw r6
|
||||
L38:
|
||||
kotlin.ResultKt.throwOnFailure(r7)
|
||||
r7 = r0
|
||||
kotlin.coroutines.Continuation r7 = (kotlin.coroutines.Continuation) r7
|
||||
kotlinx.coroutines.flow.Flow r7 = r5.$this_takeWhile$inlined
|
||||
kotlinx.coroutines.flow.FlowKt__LimitKt$takeWhile$lambda$6$$inlined$collectWhile$1 r2 = new kotlinx.coroutines.flow.FlowKt__LimitKt$takeWhile$lambda$6$$inlined$collectWhile$1
|
||||
kotlin.jvm.functions.Function2 r4 = r5.$predicate$inlined
|
||||
r2.<init>(r4, r6)
|
||||
r6 = r2
|
||||
kotlinx.coroutines.flow.FlowCollector r6 = (kotlinx.coroutines.flow.FlowCollector) r6 // Catch: kotlinx.coroutines.flow.internal.AbortFlowException -> L55
|
||||
r0.L$0 = r2 // Catch: kotlinx.coroutines.flow.internal.AbortFlowException -> L55
|
||||
r0.label = r3 // Catch: kotlinx.coroutines.flow.internal.AbortFlowException -> L55
|
||||
java.lang.Object r6 = r7.collect(r6, r0) // Catch: kotlinx.coroutines.flow.internal.AbortFlowException -> L55
|
||||
if (r6 != r1) goto L5c
|
||||
return r1
|
||||
L55:
|
||||
r7 = move-exception
|
||||
r6 = r2
|
||||
L57:
|
||||
kotlinx.coroutines.flow.FlowCollector r6 = (kotlinx.coroutines.flow.FlowCollector) r6
|
||||
kotlinx.coroutines.flow.internal.FlowExceptions_commonKt.checkOwnership(r7, r6)
|
||||
L5c:
|
||||
kotlin.Unit r6 = kotlin.Unit.INSTANCE
|
||||
return r6
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.FlowKt__LimitKt$takeWhile$$inlined$unsafeFlow$1.collect(kotlinx.coroutines.flow.FlowCollector, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
|
||||
public FlowKt__LimitKt$takeWhile$$inlined$unsafeFlow$1(Flow flow, Function2 function2) {
|
||||
this.$this_takeWhile$inlined = flow;
|
||||
this.$predicate$inlined = function2;
|
||||
}
|
||||
}
|
@ -0,0 +1,147 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
|
||||
/* JADX INFO: Add missing generic type declarations: [T] */
|
||||
/* compiled from: Limit.kt */
|
||||
@Metadata(d1 = {"\u0000\u0013\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0003*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u0019\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00028\u0000H\u0096@ø\u0001\u0000¢\u0006\u0002\u0010\u0005\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u0006¸\u0006\u0000"}, d2 = {"kotlinx/coroutines/flow/FlowKt__LimitKt$collectWhile$collector$1", "Lkotlinx/coroutines/flow/FlowCollector;", "emit", "", "value", "(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class FlowKt__LimitKt$takeWhile$lambda$6$$inlined$collectWhile$1<T> implements FlowCollector<T> {
|
||||
final /* synthetic */ Function2 $predicate$inlined;
|
||||
final /* synthetic */ FlowCollector $this_unsafeFlow$inlined;
|
||||
|
||||
/* compiled from: Limit.kt */
|
||||
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__LimitKt$takeWhile$lambda$6$$inlined$collectWhile$1", f = "Limit.kt", i = {0, 0, 1}, l = {142, 143}, m = "emit", n = {"this", "value", "this"}, s = {"L$0", "L$1", "L$0"})
|
||||
/* renamed from: kotlinx.coroutines.flow.FlowKt__LimitKt$takeWhile$lambda$6$$inlined$collectWhile$1$1, reason: invalid class name */
|
||||
public static final class AnonymousClass1 extends ContinuationImpl {
|
||||
Object L$0;
|
||||
Object L$1;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
public AnonymousClass1(Continuation continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= Integer.MIN_VALUE;
|
||||
return FlowKt__LimitKt$takeWhile$lambda$6$$inlined$collectWhile$1.this.emit(null, this);
|
||||
}
|
||||
}
|
||||
|
||||
public FlowKt__LimitKt$takeWhile$lambda$6$$inlined$collectWhile$1(Function2 function2, FlowCollector flowCollector) {
|
||||
this.$predicate$inlined = function2;
|
||||
this.$this_unsafeFlow$inlined = flowCollector;
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
/* JADX WARN: Removed duplicated region for block: B:12:0x0082 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:15:0x0085 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:22:0x006f */
|
||||
/* JADX WARN: Removed duplicated region for block: B:25:0x007f */
|
||||
/* JADX WARN: Removed duplicated region for block: B:26:0x0047 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0025 */
|
||||
@Override // kotlinx.coroutines.flow.FlowCollector
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public java.lang.Object emit(T r8, kotlin.coroutines.Continuation<? super kotlin.Unit> r9) {
|
||||
/*
|
||||
r7 = this;
|
||||
boolean r0 = r9 instanceof kotlinx.coroutines.flow.FlowKt__LimitKt$takeWhile$lambda$6$$inlined$collectWhile$1.AnonymousClass1
|
||||
if (r0 == 0) goto L14
|
||||
r0 = r9
|
||||
kotlinx.coroutines.flow.FlowKt__LimitKt$takeWhile$lambda$6$$inlined$collectWhile$1$1 r0 = (kotlinx.coroutines.flow.FlowKt__LimitKt$takeWhile$lambda$6$$inlined$collectWhile$1.AnonymousClass1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r1 = r1 & r2
|
||||
if (r1 == 0) goto L14
|
||||
int r9 = r0.label
|
||||
int r9 = r9 - r2
|
||||
r0.label = r9
|
||||
goto L19
|
||||
L14:
|
||||
kotlinx.coroutines.flow.FlowKt__LimitKt$takeWhile$lambda$6$$inlined$collectWhile$1$1 r0 = new kotlinx.coroutines.flow.FlowKt__LimitKt$takeWhile$lambda$6$$inlined$collectWhile$1$1
|
||||
r0.<init>(r9)
|
||||
L19:
|
||||
java.lang.Object r9 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 2
|
||||
r4 = 1
|
||||
if (r2 == 0) goto L47
|
||||
if (r2 == r4) goto L39
|
||||
if (r2 != r3) goto L31
|
||||
java.lang.Object r8 = r0.L$0
|
||||
kotlinx.coroutines.flow.FlowKt__LimitKt$takeWhile$lambda$6$$inlined$collectWhile$1 r8 = (kotlinx.coroutines.flow.FlowKt__LimitKt$takeWhile$lambda$6$$inlined$collectWhile$1) r8
|
||||
kotlin.ResultKt.throwOnFailure(r9)
|
||||
goto L80
|
||||
L31:
|
||||
java.lang.IllegalStateException r8 = new java.lang.IllegalStateException
|
||||
java.lang.String r9 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r8.<init>(r9)
|
||||
throw r8
|
||||
L39:
|
||||
java.lang.Object r8 = r0.L$1
|
||||
java.lang.Object r2 = r0.L$0
|
||||
kotlinx.coroutines.flow.FlowKt__LimitKt$takeWhile$lambda$6$$inlined$collectWhile$1 r2 = (kotlinx.coroutines.flow.FlowKt__LimitKt$takeWhile$lambda$6$$inlined$collectWhile$1) r2
|
||||
kotlin.ResultKt.throwOnFailure(r9)
|
||||
r6 = r9
|
||||
r9 = r8
|
||||
r8 = r2
|
||||
r2 = r6
|
||||
goto L67
|
||||
L47:
|
||||
kotlin.ResultKt.throwOnFailure(r9)
|
||||
r9 = r0
|
||||
kotlin.coroutines.Continuation r9 = (kotlin.coroutines.Continuation) r9
|
||||
kotlin.jvm.functions.Function2 r9 = r7.$predicate$inlined
|
||||
r0.L$0 = r7
|
||||
r0.L$1 = r8
|
||||
r0.label = r4
|
||||
r2 = 6
|
||||
kotlin.jvm.internal.InlineMarker.mark(r2)
|
||||
java.lang.Object r9 = r9.invoke(r8, r0)
|
||||
r2 = 7
|
||||
kotlin.jvm.internal.InlineMarker.mark(r2)
|
||||
if (r9 != r1) goto L64
|
||||
return r1
|
||||
L64:
|
||||
r2 = r9
|
||||
r9 = r8
|
||||
r8 = r7
|
||||
L67:
|
||||
java.lang.Boolean r2 = (java.lang.Boolean) r2
|
||||
boolean r2 = r2.booleanValue()
|
||||
if (r2 == 0) goto L7f
|
||||
kotlinx.coroutines.flow.FlowCollector r2 = r8.$this_unsafeFlow$inlined
|
||||
r0.L$0 = r8
|
||||
r5 = 0
|
||||
r0.L$1 = r5
|
||||
r0.label = r3
|
||||
java.lang.Object r9 = r2.emit(r9, r0)
|
||||
if (r9 != r1) goto L80
|
||||
return r1
|
||||
L7f:
|
||||
r4 = 0
|
||||
L80:
|
||||
if (r4 == 0) goto L85
|
||||
kotlin.Unit r8 = kotlin.Unit.INSTANCE
|
||||
return r8
|
||||
L85:
|
||||
kotlinx.coroutines.flow.internal.AbortFlowException r9 = new kotlinx.coroutines.flow.internal.AbortFlowException
|
||||
kotlinx.coroutines.flow.FlowCollector r8 = (kotlinx.coroutines.flow.FlowCollector) r8
|
||||
r9.<init>(r8)
|
||||
throw r9
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.FlowKt__LimitKt$takeWhile$lambda$6$$inlined$collectWhile$1.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
}
|
@ -0,0 +1,117 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.jvm.functions.Function3;
|
||||
|
||||
/* JADX INFO: Add missing generic type declarations: [T] */
|
||||
/* compiled from: Limit.kt */
|
||||
@Metadata(d1 = {"\u0000\u0013\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0003*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u0019\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00028\u0000H\u0096@ø\u0001\u0000¢\u0006\u0002\u0010\u0005\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u0006¸\u0006\u0000"}, d2 = {"kotlinx/coroutines/flow/FlowKt__LimitKt$collectWhile$collector$1", "Lkotlinx/coroutines/flow/FlowCollector;", "emit", "", "value", "(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx-coroutines-core"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class FlowKt__LimitKt$transformWhile$1$invokeSuspend$$inlined$collectWhile$1<T> implements FlowCollector<T> {
|
||||
final /* synthetic */ FlowCollector $$this$flow$inlined;
|
||||
final /* synthetic */ Function3 $transform$inlined;
|
||||
|
||||
/* compiled from: Limit.kt */
|
||||
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__LimitKt$transformWhile$1$invokeSuspend$$inlined$collectWhile$1", f = "Limit.kt", i = {0}, l = {142}, m = "emit", n = {"this"}, s = {"L$0"})
|
||||
/* renamed from: kotlinx.coroutines.flow.FlowKt__LimitKt$transformWhile$1$invokeSuspend$$inlined$collectWhile$1$1, reason: invalid class name */
|
||||
public static final class AnonymousClass1 extends ContinuationImpl {
|
||||
Object L$0;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
public AnonymousClass1(Continuation continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= Integer.MIN_VALUE;
|
||||
return FlowKt__LimitKt$transformWhile$1$invokeSuspend$$inlined$collectWhile$1.this.emit(null, this);
|
||||
}
|
||||
}
|
||||
|
||||
public FlowKt__LimitKt$transformWhile$1$invokeSuspend$$inlined$collectWhile$1(Function3 function3, FlowCollector flowCollector) {
|
||||
this.$transform$inlined = function3;
|
||||
this.$$this$flow$inlined = flowCollector;
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:12:0x005c */
|
||||
/* JADX WARN: Removed duplicated region for block: B:15:0x005f */
|
||||
/* JADX WARN: Removed duplicated region for block: B:19:0x0036 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0024 */
|
||||
@Override // kotlinx.coroutines.flow.FlowCollector
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public java.lang.Object emit(T r5, kotlin.coroutines.Continuation<? super kotlin.Unit> r6) {
|
||||
/*
|
||||
r4 = this;
|
||||
boolean r0 = r6 instanceof kotlinx.coroutines.flow.FlowKt__LimitKt$transformWhile$1$invokeSuspend$$inlined$collectWhile$1.AnonymousClass1
|
||||
if (r0 == 0) goto L14
|
||||
r0 = r6
|
||||
kotlinx.coroutines.flow.FlowKt__LimitKt$transformWhile$1$invokeSuspend$$inlined$collectWhile$1$1 r0 = (kotlinx.coroutines.flow.FlowKt__LimitKt$transformWhile$1$invokeSuspend$$inlined$collectWhile$1.AnonymousClass1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r1 = r1 & r2
|
||||
if (r1 == 0) goto L14
|
||||
int r6 = r0.label
|
||||
int r6 = r6 - r2
|
||||
r0.label = r6
|
||||
goto L19
|
||||
L14:
|
||||
kotlinx.coroutines.flow.FlowKt__LimitKt$transformWhile$1$invokeSuspend$$inlined$collectWhile$1$1 r0 = new kotlinx.coroutines.flow.FlowKt__LimitKt$transformWhile$1$invokeSuspend$$inlined$collectWhile$1$1
|
||||
r0.<init>(r6)
|
||||
L19:
|
||||
java.lang.Object r6 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L36
|
||||
if (r2 != r3) goto L2e
|
||||
java.lang.Object r5 = r0.L$0
|
||||
kotlinx.coroutines.flow.FlowKt__LimitKt$transformWhile$1$invokeSuspend$$inlined$collectWhile$1 r5 = (kotlinx.coroutines.flow.FlowKt__LimitKt$transformWhile$1$invokeSuspend$$inlined$collectWhile$1) r5
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L54
|
||||
L2e:
|
||||
java.lang.IllegalStateException r5 = new java.lang.IllegalStateException
|
||||
java.lang.String r6 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r5.<init>(r6)
|
||||
throw r5
|
||||
L36:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
r6 = r0
|
||||
kotlin.coroutines.Continuation r6 = (kotlin.coroutines.Continuation) r6
|
||||
kotlin.jvm.functions.Function3 r6 = r4.$transform$inlined
|
||||
kotlinx.coroutines.flow.FlowCollector r2 = r4.$$this$flow$inlined
|
||||
r0.L$0 = r4
|
||||
r0.label = r3
|
||||
r3 = 6
|
||||
kotlin.jvm.internal.InlineMarker.mark(r3)
|
||||
java.lang.Object r6 = r6.invoke(r2, r5, r0)
|
||||
r5 = 7
|
||||
kotlin.jvm.internal.InlineMarker.mark(r5)
|
||||
if (r6 != r1) goto L53
|
||||
return r1
|
||||
L53:
|
||||
r5 = r4
|
||||
L54:
|
||||
java.lang.Boolean r6 = (java.lang.Boolean) r6
|
||||
boolean r6 = r6.booleanValue()
|
||||
if (r6 == 0) goto L5f
|
||||
kotlin.Unit r5 = kotlin.Unit.INSTANCE
|
||||
return r5
|
||||
L5f:
|
||||
kotlinx.coroutines.flow.internal.AbortFlowException r6 = new kotlinx.coroutines.flow.internal.AbortFlowException
|
||||
kotlinx.coroutines.flow.FlowCollector r5 = (kotlinx.coroutines.flow.FlowCollector) r5
|
||||
r6.<init>(r5)
|
||||
throw r6
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.FlowKt__LimitKt$transformWhile$1$invokeSuspend$$inlined$collectWhile$1.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
}
|
@ -0,0 +1,83 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.functions.Function3;
|
||||
import kotlinx.coroutines.flow.internal.AbortFlowException;
|
||||
import kotlinx.coroutines.flow.internal.FlowExceptions_commonKt;
|
||||
|
||||
/* JADX INFO: Add missing generic type declarations: [R] */
|
||||
/* compiled from: Limit.kt */
|
||||
@Metadata(d1 = {"\u0000\u000e\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0000\u0010\u0004\u001a\u00020\u0003\"\u0004\b\u0000\u0010\u0000\"\u0004\b\u0001\u0010\u0001*\b\u0012\u0004\u0012\u00028\u00010\u0002H\u008a@"}, d2 = {"T", "R", "Lkotlinx/coroutines/flow/FlowCollector;", "", "<anonymous>"}, k = 3, mv = {1, 8, 0})
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__LimitKt$transformWhile$1", f = "Limit.kt", i = {0}, l = {152}, m = "invokeSuspend", n = {"collector$iv"}, s = {"L$0"})
|
||||
/* loaded from: classes.dex */
|
||||
final class FlowKt__LimitKt$transformWhile$1<R> extends SuspendLambda implements Function2<FlowCollector<? super R>, Continuation<? super Unit>, Object> {
|
||||
final /* synthetic */ Flow<T> $this_transformWhile;
|
||||
final /* synthetic */ Function3<FlowCollector<? super R>, T, Continuation<? super Boolean>, Object> $transform;
|
||||
private /* synthetic */ Object L$0;
|
||||
int label;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
FlowKt__LimitKt$transformWhile$1(Flow<? extends T> flow, Function3<? super FlowCollector<? super R>, ? super T, ? super Continuation<? super Boolean>, ? extends Object> function3, Continuation<? super FlowKt__LimitKt$transformWhile$1> continuation) {
|
||||
super(2, continuation);
|
||||
this.$this_transformWhile = flow;
|
||||
this.$transform = function3;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
||||
FlowKt__LimitKt$transformWhile$1 flowKt__LimitKt$transformWhile$1 = new FlowKt__LimitKt$transformWhile$1(this.$this_transformWhile, this.$transform, continuation);
|
||||
flowKt__LimitKt$transformWhile$1.L$0 = obj;
|
||||
return flowKt__LimitKt$transformWhile$1;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(FlowCollector<? super R> flowCollector, Continuation<? super Unit> continuation) {
|
||||
return ((FlowKt__LimitKt$transformWhile$1) create(flowCollector, continuation)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
FlowKt__LimitKt$transformWhile$1$invokeSuspend$$inlined$collectWhile$1 flowKt__LimitKt$transformWhile$1$invokeSuspend$$inlined$collectWhile$1;
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.label;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
FlowCollector flowCollector = (FlowCollector) this.L$0;
|
||||
Flow<T> flow = this.$this_transformWhile;
|
||||
FlowKt__LimitKt$transformWhile$1$invokeSuspend$$inlined$collectWhile$1 flowKt__LimitKt$transformWhile$1$invokeSuspend$$inlined$collectWhile$12 = new FlowKt__LimitKt$transformWhile$1$invokeSuspend$$inlined$collectWhile$1(this.$transform, flowCollector);
|
||||
try {
|
||||
this.L$0 = flowKt__LimitKt$transformWhile$1$invokeSuspend$$inlined$collectWhile$12;
|
||||
this.label = 1;
|
||||
if (flow.collect(flowKt__LimitKt$transformWhile$1$invokeSuspend$$inlined$collectWhile$12, this) == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
} catch (AbortFlowException e) {
|
||||
e = e;
|
||||
flowKt__LimitKt$transformWhile$1$invokeSuspend$$inlined$collectWhile$1 = flowKt__LimitKt$transformWhile$1$invokeSuspend$$inlined$collectWhile$12;
|
||||
FlowExceptions_commonKt.checkOwnership(e, flowKt__LimitKt$transformWhile$1$invokeSuspend$$inlined$collectWhile$1);
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
} else {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
flowKt__LimitKt$transformWhile$1$invokeSuspend$$inlined$collectWhile$1 = (FlowKt__LimitKt$transformWhile$1$invokeSuspend$$inlined$collectWhile$1) this.L$0;
|
||||
try {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
} catch (AbortFlowException e2) {
|
||||
e = e2;
|
||||
FlowExceptions_commonKt.checkOwnership(e, flowKt__LimitKt$transformWhile$1$invokeSuspend$$inlined$collectWhile$1);
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
188
02-Easy5/E5/sources/kotlinx/coroutines/flow/FlowKt__LimitKt.java
Normal file
188
02-Easy5/E5/sources/kotlinx/coroutines/flow/FlowKt__LimitKt.java
Normal file
@ -0,0 +1,188 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.functions.Function3;
|
||||
import kotlin.jvm.internal.InlineMarker;
|
||||
import kotlin.jvm.internal.Ref;
|
||||
import kotlinx.coroutines.flow.internal.AbortFlowException;
|
||||
import kotlinx.coroutines.flow.internal.FlowExceptions_commonKt;
|
||||
|
||||
/* compiled from: Limit.kt */
|
||||
@Metadata(d1 = {"\u0000F\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000b\n\u0002\u0010\u0000\n\u0002\b\u0003\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u001aV\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u000323\b\u0004\u0010\u0004\u001a-\b\u0001\u0012\u0013\u0012\u0011H\u0002¢\u0006\f\b\u0006\u0012\b\b\u0007\u0012\u0004\b\b(\b\u0012\n\u0012\b\u0012\u0004\u0012\u00020\n0\t\u0012\u0006\u0012\u0004\u0018\u00010\u000b0\u0005H\u0080Hø\u0001\u0000¢\u0006\u0002\u0010\f\u001a$\u0010\r\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0003\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00032\u0006\u0010\u000e\u001a\u00020\u000f\u001aH\u0010\u0010\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0003\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00032\"\u0010\u0004\u001a\u001e\b\u0001\u0012\u0004\u0012\u0002H\u0002\u0012\n\u0012\b\u0012\u0004\u0012\u00020\n0\t\u0012\u0006\u0012\u0004\u0018\u00010\u000b0\u0005ø\u0001\u0000¢\u0006\u0002\u0010\u0011\u001a+\u0010\u0012\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00132\u0006\u0010\b\u001a\u0002H\u0002H\u0082@ø\u0001\u0000¢\u0006\u0004\b\u0014\u0010\u0015\u001a$\u0010\u0016\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0003\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00032\u0006\u0010\u000e\u001a\u00020\u000f\u001aH\u0010\u0017\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0003\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00032\"\u0010\u0004\u001a\u001e\b\u0001\u0012\u0004\u0012\u0002H\u0002\u0012\n\u0012\b\u0012\u0004\u0012\u00020\n0\t\u0012\u0006\u0012\u0004\u0018\u00010\u000b0\u0005ø\u0001\u0000¢\u0006\u0002\u0010\u0011\u001ap\u0010\u0018\u001a\b\u0012\u0004\u0012\u0002H\u00190\u0003\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0019*\b\u0012\u0004\u0012\u0002H\u00020\u00032D\b\u0001\u0010\u001a\u001a>\b\u0001\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00190\u0013\u0012\u0013\u0012\u0011H\u0002¢\u0006\f\b\u0006\u0012\b\b\u0007\u0012\u0004\b\b(\b\u0012\n\u0012\b\u0012\u0004\u0012\u00020\n0\t\u0012\u0006\u0012\u0004\u0018\u00010\u000b0\u001b¢\u0006\u0002\b\u001cø\u0001\u0000¢\u0006\u0002\u0010\u001d\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u001e"}, d2 = {"collectWhile", "", "T", "Lkotlinx/coroutines/flow/Flow;", "predicate", "Lkotlin/Function2;", "Lkotlin/ParameterName;", "name", "value", "Lkotlin/coroutines/Continuation;", "", "", "(Lkotlinx/coroutines/flow/Flow;Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "drop", "count", "", "dropWhile", "(Lkotlinx/coroutines/flow/Flow;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;", "emitAbort", "Lkotlinx/coroutines/flow/FlowCollector;", "emitAbort$FlowKt__LimitKt", "(Lkotlinx/coroutines/flow/FlowCollector;Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "take", "takeWhile", "transformWhile", "R", "transform", "Lkotlin/Function3;", "Lkotlin/ExtensionFunctionType;", "(Lkotlinx/coroutines/flow/Flow;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/flow/Flow;", "kotlinx-coroutines-core"}, k = 5, mv = {1, 8, 0}, xi = 48, xs = "kotlinx/coroutines/flow/FlowKt")
|
||||
/* loaded from: classes.dex */
|
||||
final /* synthetic */ class FlowKt__LimitKt {
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
/* JADX WARN: Removed duplicated region for block: B:15:0x0036 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0024 */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public static final <T> java.lang.Object emitAbort$FlowKt__LimitKt(kotlinx.coroutines.flow.FlowCollector<? super T> r4, T r5, kotlin.coroutines.Continuation<? super kotlin.Unit> r6) {
|
||||
/*
|
||||
boolean r0 = r6 instanceof kotlinx.coroutines.flow.FlowKt__LimitKt$emitAbort$1
|
||||
if (r0 == 0) goto L14
|
||||
r0 = r6
|
||||
kotlinx.coroutines.flow.FlowKt__LimitKt$emitAbort$1 r0 = (kotlinx.coroutines.flow.FlowKt__LimitKt$emitAbort$1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r1 = r1 & r2
|
||||
if (r1 == 0) goto L14
|
||||
int r6 = r0.label
|
||||
int r6 = r6 - r2
|
||||
r0.label = r6
|
||||
goto L19
|
||||
L14:
|
||||
kotlinx.coroutines.flow.FlowKt__LimitKt$emitAbort$1 r0 = new kotlinx.coroutines.flow.FlowKt__LimitKt$emitAbort$1
|
||||
r0.<init>(r6)
|
||||
L19:
|
||||
java.lang.Object r6 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L36
|
||||
if (r2 == r3) goto L2e
|
||||
java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
|
||||
java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r4.<init>(r5)
|
||||
throw r4
|
||||
L2e:
|
||||
java.lang.Object r4 = r0.L$0
|
||||
kotlinx.coroutines.flow.FlowCollector r4 = (kotlinx.coroutines.flow.FlowCollector) r4
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L44
|
||||
L36:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
r0.L$0 = r4
|
||||
r0.label = r3
|
||||
java.lang.Object r5 = r4.emit(r5, r0)
|
||||
if (r5 != r1) goto L44
|
||||
return r1
|
||||
L44:
|
||||
kotlinx.coroutines.flow.internal.AbortFlowException r5 = new kotlinx.coroutines.flow.internal.AbortFlowException
|
||||
r5.<init>(r4)
|
||||
throw r5
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.FlowKt__LimitKt.emitAbort$FlowKt__LimitKt(kotlinx.coroutines.flow.FlowCollector, java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
|
||||
public static final <T, R> Flow<R> transformWhile(Flow<? extends T> flow, Function3<? super FlowCollector<? super R>, ? super T, ? super Continuation<? super Boolean>, ? extends Object> function3) {
|
||||
return FlowKt.flow(new FlowKt__LimitKt$transformWhile$1(flow, function3, null));
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:20:0x0038 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0024 */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public static final <T> java.lang.Object collectWhile(kotlinx.coroutines.flow.Flow<? extends T> r4, kotlin.jvm.functions.Function2<? super T, ? super kotlin.coroutines.Continuation<? super java.lang.Boolean>, ? extends java.lang.Object> r5, kotlin.coroutines.Continuation<? super kotlin.Unit> r6) {
|
||||
/*
|
||||
boolean r0 = r6 instanceof kotlinx.coroutines.flow.FlowKt__LimitKt$collectWhile$1
|
||||
if (r0 == 0) goto L14
|
||||
r0 = r6
|
||||
kotlinx.coroutines.flow.FlowKt__LimitKt$collectWhile$1 r0 = (kotlinx.coroutines.flow.FlowKt__LimitKt$collectWhile$1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r1 = r1 & r2
|
||||
if (r1 == 0) goto L14
|
||||
int r6 = r0.label
|
||||
int r6 = r6 - r2
|
||||
r0.label = r6
|
||||
goto L19
|
||||
L14:
|
||||
kotlinx.coroutines.flow.FlowKt__LimitKt$collectWhile$1 r0 = new kotlinx.coroutines.flow.FlowKt__LimitKt$collectWhile$1
|
||||
r0.<init>(r6)
|
||||
L19:
|
||||
java.lang.Object r6 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L38
|
||||
if (r2 != r3) goto L30
|
||||
java.lang.Object r4 = r0.L$0
|
||||
kotlinx.coroutines.flow.FlowKt__LimitKt$collectWhile$collector$1 r4 = (kotlinx.coroutines.flow.FlowKt__LimitKt$collectWhile$collector$1) r4
|
||||
kotlin.ResultKt.throwOnFailure(r6) // Catch: kotlinx.coroutines.flow.internal.AbortFlowException -> L2e
|
||||
goto L55
|
||||
L2e:
|
||||
r5 = move-exception
|
||||
goto L50
|
||||
L30:
|
||||
java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
|
||||
java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r4.<init>(r5)
|
||||
throw r4
|
||||
L38:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
kotlinx.coroutines.flow.FlowKt__LimitKt$collectWhile$collector$1 r6 = new kotlinx.coroutines.flow.FlowKt__LimitKt$collectWhile$collector$1
|
||||
r6.<init>(r5)
|
||||
r5 = r6
|
||||
kotlinx.coroutines.flow.FlowCollector r5 = (kotlinx.coroutines.flow.FlowCollector) r5 // Catch: kotlinx.coroutines.flow.internal.AbortFlowException -> L4e
|
||||
r0.L$0 = r6 // Catch: kotlinx.coroutines.flow.internal.AbortFlowException -> L4e
|
||||
r0.label = r3 // Catch: kotlinx.coroutines.flow.internal.AbortFlowException -> L4e
|
||||
java.lang.Object r4 = r4.collect(r5, r0) // Catch: kotlinx.coroutines.flow.internal.AbortFlowException -> L4e
|
||||
if (r4 != r1) goto L55
|
||||
return r1
|
||||
L4e:
|
||||
r5 = move-exception
|
||||
r4 = r6
|
||||
L50:
|
||||
kotlinx.coroutines.flow.FlowCollector r4 = (kotlinx.coroutines.flow.FlowCollector) r4
|
||||
kotlinx.coroutines.flow.internal.FlowExceptions_commonKt.checkOwnership(r5, r4)
|
||||
L55:
|
||||
kotlin.Unit r4 = kotlin.Unit.INSTANCE
|
||||
return r4
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.FlowKt__LimitKt.collectWhile(kotlinx.coroutines.flow.Flow, kotlin.jvm.functions.Function2, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
|
||||
private static final <T> Object collectWhile$$forInline(Flow<? extends T> flow, Function2<? super T, ? super Continuation<? super Boolean>, ? extends Object> function2, Continuation<? super Unit> continuation) {
|
||||
FlowKt__LimitKt$collectWhile$collector$1 flowKt__LimitKt$collectWhile$collector$1 = new FlowKt__LimitKt$collectWhile$collector$1(function2);
|
||||
try {
|
||||
InlineMarker.mark(0);
|
||||
flow.collect(flowKt__LimitKt$collectWhile$collector$1, continuation);
|
||||
InlineMarker.mark(1);
|
||||
} catch (AbortFlowException e) {
|
||||
FlowExceptions_commonKt.checkOwnership(e, flowKt__LimitKt$collectWhile$collector$1);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> drop(final Flow<? extends T> flow, final int i) {
|
||||
if (i < 0) {
|
||||
throw new IllegalArgumentException(("Drop count should be non-negative, but had " + i).toString());
|
||||
}
|
||||
return new Flow<T>() { // from class: kotlinx.coroutines.flow.FlowKt__LimitKt$drop$$inlined$unsafeFlow$1
|
||||
@Override // kotlinx.coroutines.flow.Flow
|
||||
public Object collect(FlowCollector<? super T> flowCollector, Continuation<? super Unit> continuation) {
|
||||
Object collect = Flow.this.collect(new FlowKt__LimitKt$drop$2$1(new Ref.IntRef(), i, flowCollector), continuation);
|
||||
return collect == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? collect : Unit.INSTANCE;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> dropWhile(final Flow<? extends T> flow, final Function2<? super T, ? super Continuation<? super Boolean>, ? extends Object> function2) {
|
||||
return new Flow<T>() { // from class: kotlinx.coroutines.flow.FlowKt__LimitKt$dropWhile$$inlined$unsafeFlow$1
|
||||
@Override // kotlinx.coroutines.flow.Flow
|
||||
public Object collect(FlowCollector<? super T> flowCollector, Continuation<? super Unit> continuation) {
|
||||
Object collect = Flow.this.collect(new FlowKt__LimitKt$dropWhile$1$1(new Ref.BooleanRef(), flowCollector, function2), continuation);
|
||||
return collect == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? collect : Unit.INSTANCE;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> take(Flow<? extends T> flow, int i) {
|
||||
if (i <= 0) {
|
||||
throw new IllegalArgumentException(("Requested element count " + i + " should be positive").toString());
|
||||
}
|
||||
return new FlowKt__LimitKt$take$$inlined$unsafeFlow$1(flow, i);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> takeWhile(Flow<? extends T> flow, Function2<? super T, ? super Continuation<? super Boolean>, ? extends Object> function2) {
|
||||
return new FlowKt__LimitKt$takeWhile$$inlined$unsafeFlow$1(flow, function2);
|
||||
}
|
||||
}
|
@ -0,0 +1,88 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.functions.Function3;
|
||||
import kotlin.jvm.internal.InlineMarker;
|
||||
|
||||
/* JADX INFO: Add missing generic type declarations: [R, T] */
|
||||
/* compiled from: Merge.kt */
|
||||
@Metadata(d1 = {"\u0000\u0010\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\u0010\u0005\u001a\u00020\u0004\"\u0004\b\u0000\u0010\u0000\"\u0004\b\u0001\u0010\u0001*\b\u0012\u0004\u0012\u00028\u00010\u00022\u0006\u0010\u0003\u001a\u00028\u0000H\u008a@"}, d2 = {"T", "R", "Lkotlinx/coroutines/flow/FlowCollector;", "it", "", "<anonymous>"}, k = 3, mv = {1, 8, 0})
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__MergeKt$flatMapLatest$1", f = "Merge.kt", i = {}, l = {193, 193}, m = "invokeSuspend", n = {}, s = {})
|
||||
/* loaded from: classes.dex */
|
||||
public final class FlowKt__MergeKt$flatMapLatest$1<R, T> extends SuspendLambda implements Function3<FlowCollector<? super R>, T, Continuation<? super Unit>, Object> {
|
||||
final /* synthetic */ Function2<T, Continuation<? super Flow<? extends R>>, Object> $transform;
|
||||
private /* synthetic */ Object L$0;
|
||||
/* synthetic */ Object L$1;
|
||||
int label;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public FlowKt__MergeKt$flatMapLatest$1(Function2<? super T, ? super Continuation<? super Flow<? extends R>>, ? extends Object> function2, Continuation<? super FlowKt__MergeKt$flatMapLatest$1> continuation) {
|
||||
super(3, continuation);
|
||||
this.$transform = function2;
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
@Override // kotlin.jvm.functions.Function3
|
||||
public /* bridge */ /* synthetic */ Object invoke(Object obj, Object obj2, Continuation<? super Unit> continuation) {
|
||||
return invoke((FlowCollector) obj, (FlowCollector<? super R>) obj2, continuation);
|
||||
}
|
||||
|
||||
public final Object invoke(FlowCollector<? super R> flowCollector, T t, Continuation<? super Unit> continuation) {
|
||||
FlowKt__MergeKt$flatMapLatest$1 flowKt__MergeKt$flatMapLatest$1 = new FlowKt__MergeKt$flatMapLatest$1(this.$transform, continuation);
|
||||
flowKt__MergeKt$flatMapLatest$1.L$0 = flowCollector;
|
||||
flowKt__MergeKt$flatMapLatest$1.L$1 = t;
|
||||
return flowKt__MergeKt$flatMapLatest$1.invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
FlowCollector flowCollector;
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.label;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
flowCollector = (FlowCollector) this.L$0;
|
||||
Object obj2 = this.L$1;
|
||||
Function2<T, Continuation<? super Flow<? extends R>>, Object> function2 = this.$transform;
|
||||
this.L$0 = flowCollector;
|
||||
this.label = 1;
|
||||
obj = function2.invoke(obj2, this);
|
||||
if (obj == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
} else {
|
||||
if (i != 1) {
|
||||
if (i != 2) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
flowCollector = (FlowCollector) this.L$0;
|
||||
ResultKt.throwOnFailure(obj);
|
||||
}
|
||||
this.L$0 = null;
|
||||
this.label = 2;
|
||||
if (FlowKt.emitAll(flowCollector, (Flow) obj, this) == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
|
||||
public final Object invokeSuspend$$forInline(Object obj) {
|
||||
FlowCollector flowCollector = (FlowCollector) this.L$0;
|
||||
Object obj2 = this.L$1;
|
||||
InlineMarker.mark(0);
|
||||
FlowKt.emitAll(flowCollector, (Flow) this.$transform.invoke(obj2, this), this);
|
||||
InlineMarker.mark(1);
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
|
||||
/* compiled from: Merge.kt */
|
||||
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__MergeKt$flattenConcat$1$1", f = "Merge.kt", i = {}, l = {83}, m = "emit", n = {}, s = {})
|
||||
/* loaded from: classes.dex */
|
||||
final class FlowKt__MergeKt$flattenConcat$1$1$emit$1 extends ContinuationImpl {
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
final /* synthetic */ FlowKt__MergeKt$flattenConcat$1$1<T> this$0;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
FlowKt__MergeKt$flattenConcat$1$1$emit$1(FlowKt__MergeKt$flattenConcat$1$1<? super T> flowKt__MergeKt$flattenConcat$1$1, Continuation<? super FlowKt__MergeKt$flattenConcat$1$1$emit$1> continuation) {
|
||||
super(continuation);
|
||||
this.this$0 = flowKt__MergeKt$flattenConcat$1$1;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= Integer.MIN_VALUE;
|
||||
return this.this$0.emit((Flow) null, (Continuation<? super Unit>) this);
|
||||
}
|
||||
}
|
@ -0,0 +1,74 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
|
||||
/* compiled from: Merge.kt */
|
||||
@Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u00022\f\u0010\u0003\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0004H\u008a@¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"<anonymous>", "", "T", "value", "Lkotlinx/coroutines/flow/Flow;", "emit", "(Lkotlinx/coroutines/flow/Flow;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;"}, k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
final class FlowKt__MergeKt$flattenConcat$1$1<T> implements FlowCollector {
|
||||
final /* synthetic */ FlowCollector<T> $this_unsafeFlow;
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
FlowKt__MergeKt$flattenConcat$1$1(FlowCollector<? super T> flowCollector) {
|
||||
this.$this_unsafeFlow = flowCollector;
|
||||
}
|
||||
|
||||
@Override // kotlinx.coroutines.flow.FlowCollector
|
||||
public /* bridge */ /* synthetic */ Object emit(Object obj, Continuation continuation) {
|
||||
return emit((Flow) obj, (Continuation<? super Unit>) continuation);
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:15:0x0032 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0024 */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object emit(kotlinx.coroutines.flow.Flow<? extends T> r5, kotlin.coroutines.Continuation<? super kotlin.Unit> r6) {
|
||||
/*
|
||||
r4 = this;
|
||||
boolean r0 = r6 instanceof kotlinx.coroutines.flow.FlowKt__MergeKt$flattenConcat$1$1$emit$1
|
||||
if (r0 == 0) goto L14
|
||||
r0 = r6
|
||||
kotlinx.coroutines.flow.FlowKt__MergeKt$flattenConcat$1$1$emit$1 r0 = (kotlinx.coroutines.flow.FlowKt__MergeKt$flattenConcat$1$1$emit$1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r1 = r1 & r2
|
||||
if (r1 == 0) goto L14
|
||||
int r6 = r0.label
|
||||
int r6 = r6 - r2
|
||||
r0.label = r6
|
||||
goto L19
|
||||
L14:
|
||||
kotlinx.coroutines.flow.FlowKt__MergeKt$flattenConcat$1$1$emit$1 r0 = new kotlinx.coroutines.flow.FlowKt__MergeKt$flattenConcat$1$1$emit$1
|
||||
r0.<init>(r4, r6)
|
||||
L19:
|
||||
java.lang.Object r6 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L32
|
||||
if (r2 != r3) goto L2a
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L40
|
||||
L2a:
|
||||
java.lang.IllegalStateException r5 = new java.lang.IllegalStateException
|
||||
java.lang.String r6 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r5.<init>(r6)
|
||||
throw r5
|
||||
L32:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
kotlinx.coroutines.flow.FlowCollector<T> r6 = r4.$this_unsafeFlow
|
||||
r0.label = r3
|
||||
java.lang.Object r5 = kotlinx.coroutines.flow.FlowKt.emitAll(r6, r5, r0)
|
||||
if (r5 != r1) goto L40
|
||||
return r1
|
||||
L40:
|
||||
kotlin.Unit r5 = kotlin.Unit.INSTANCE
|
||||
return r5
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.FlowKt__MergeKt$flattenConcat$1$1.emit(kotlinx.coroutines.flow.Flow, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
}
|
@ -0,0 +1,80 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.functions.Function3;
|
||||
|
||||
/* JADX INFO: Add missing generic type declarations: [R, T] */
|
||||
/* compiled from: Merge.kt */
|
||||
@Metadata(d1 = {"\u0000\u0010\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\u0010\u0005\u001a\u00020\u0004\"\u0004\b\u0000\u0010\u0000\"\u0004\b\u0001\u0010\u0001*\b\u0012\u0004\u0012\u00028\u00010\u00022\u0006\u0010\u0003\u001a\u00028\u0000H\u008a@"}, d2 = {"T", "R", "Lkotlinx/coroutines/flow/FlowCollector;", "it", "", "<anonymous>"}, k = 3, mv = {1, 8, 0})
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__MergeKt$mapLatest$1", f = "Merge.kt", i = {}, l = {217, 217}, m = "invokeSuspend", n = {}, s = {})
|
||||
/* loaded from: classes.dex */
|
||||
final class FlowKt__MergeKt$mapLatest$1<R, T> extends SuspendLambda implements Function3<FlowCollector<? super R>, T, Continuation<? super Unit>, Object> {
|
||||
final /* synthetic */ Function2<T, Continuation<? super R>, Object> $transform;
|
||||
private /* synthetic */ Object L$0;
|
||||
/* synthetic */ Object L$1;
|
||||
int label;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
FlowKt__MergeKt$mapLatest$1(Function2<? super T, ? super Continuation<? super R>, ? extends Object> function2, Continuation<? super FlowKt__MergeKt$mapLatest$1> continuation) {
|
||||
super(3, continuation);
|
||||
this.$transform = function2;
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
@Override // kotlin.jvm.functions.Function3
|
||||
public /* bridge */ /* synthetic */ Object invoke(Object obj, Object obj2, Continuation<? super Unit> continuation) {
|
||||
return invoke((FlowCollector) obj, (FlowCollector<? super R>) obj2, continuation);
|
||||
}
|
||||
|
||||
public final Object invoke(FlowCollector<? super R> flowCollector, T t, Continuation<? super Unit> continuation) {
|
||||
FlowKt__MergeKt$mapLatest$1 flowKt__MergeKt$mapLatest$1 = new FlowKt__MergeKt$mapLatest$1(this.$transform, continuation);
|
||||
flowKt__MergeKt$mapLatest$1.L$0 = flowCollector;
|
||||
flowKt__MergeKt$mapLatest$1.L$1 = t;
|
||||
return flowKt__MergeKt$mapLatest$1.invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
FlowCollector flowCollector;
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.label;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
FlowCollector flowCollector2 = (FlowCollector) this.L$0;
|
||||
Object obj2 = this.L$1;
|
||||
Function2<T, Continuation<? super R>, Object> function2 = this.$transform;
|
||||
this.L$0 = flowCollector2;
|
||||
this.label = 1;
|
||||
obj = function2.invoke(obj2, this);
|
||||
flowCollector = flowCollector2;
|
||||
if (obj == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
} else {
|
||||
if (i != 1) {
|
||||
if (i != 2) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
FlowCollector flowCollector3 = (FlowCollector) this.L$0;
|
||||
ResultKt.throwOnFailure(obj);
|
||||
flowCollector = flowCollector3;
|
||||
}
|
||||
this.L$0 = null;
|
||||
this.label = 2;
|
||||
if (flowCollector.emit(obj, this) == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
321
02-Easy5/E5/sources/kotlinx/coroutines/flow/FlowKt__MergeKt.java
Normal file
321
02-Easy5/E5/sources/kotlinx/coroutines/flow/FlowKt__MergeKt.java
Normal file
@ -0,0 +1,321 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.collections.ArraysKt;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.functions.Function3;
|
||||
import kotlinx.coroutines.flow.internal.ChannelFlowMerge;
|
||||
import kotlinx.coroutines.flow.internal.ChannelFlowTransformLatest;
|
||||
import kotlinx.coroutines.flow.internal.ChannelLimitedFlowMerge;
|
||||
import kotlinx.coroutines.internal.SystemPropsKt;
|
||||
|
||||
/* compiled from: Merge.kt */
|
||||
@Metadata(d1 = {"\u0000T\n\u0000\n\u0002\u0010\b\n\u0002\b\u0005\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0011\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\b\n\u0002\u0010\u001c\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u001a7\u0010\t\u001a\b\u0012\u0004\u0012\u0002H\u000b0\n\"\u0004\b\u0000\u0010\u000b2\u001e\u0010\f\u001a\u0010\u0012\f\b\u0001\u0012\b\u0012\u0004\u0012\u0002H\u000b0\n0\r\"\b\u0012\u0004\u0012\u0002H\u000b0\n¢\u0006\u0002\u0010\u000e\u001ae\u0010\u000f\u001a\b\u0012\u0004\u0012\u0002H\u00100\n\"\u0004\b\u0000\u0010\u000b\"\u0004\b\u0001\u0010\u0010*\b\u0012\u0004\u0012\u0002H\u000b0\n27\u0010\u0011\u001a3\b\u0001\u0012\u0013\u0012\u0011H\u000b¢\u0006\f\b\u0013\u0012\b\b\u0014\u0012\u0004\b\b(\u0015\u0012\u0010\u0012\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00100\n0\u0016\u0012\u0006\u0012\u0004\u0018\u00010\u00170\u0012H\u0007ø\u0001\u0000¢\u0006\u0002\u0010\u0018\u001ah\u0010\u0019\u001a\b\u0012\u0004\u0012\u0002H\u00100\n\"\u0004\b\u0000\u0010\u000b\"\u0004\b\u0001\u0010\u0010*\b\u0012\u0004\u0012\u0002H\u000b0\n29\b\u0005\u0010\u0011\u001a3\b\u0001\u0012\u0013\u0012\u0011H\u000b¢\u0006\f\b\u0013\u0012\b\b\u0014\u0012\u0004\b\b(\u0015\u0012\u0010\u0012\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00100\n0\u0016\u0012\u0006\u0012\u0004\u0018\u00010\u00170\u0012H\u0087\bø\u0001\u0000¢\u0006\u0002\u0010\u0018\u001ao\u0010\u001a\u001a\b\u0012\u0004\u0012\u0002H\u00100\n\"\u0004\b\u0000\u0010\u000b\"\u0004\b\u0001\u0010\u0010*\b\u0012\u0004\u0012\u0002H\u000b0\n2\b\b\u0002\u0010\u001b\u001a\u00020\u000127\u0010\u0011\u001a3\b\u0001\u0012\u0013\u0012\u0011H\u000b¢\u0006\f\b\u0013\u0012\b\b\u0014\u0012\u0004\b\b(\u0015\u0012\u0010\u0012\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00100\n0\u0016\u0012\u0006\u0012\u0004\u0018\u00010\u00170\u0012H\u0007ø\u0001\u0000¢\u0006\u0002\u0010\u001c\u001a$\u0010\u001d\u001a\b\u0012\u0004\u0012\u0002H\u000b0\n\"\u0004\b\u0000\u0010\u000b*\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u000b0\n0\nH\u0007\u001a.\u0010\u001e\u001a\b\u0012\u0004\u0012\u0002H\u000b0\n\"\u0004\b\u0000\u0010\u000b*\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u000b0\n0\n2\b\b\u0002\u0010\u001b\u001a\u00020\u0001H\u0007\u001aa\u0010\u001f\u001a\b\u0012\u0004\u0012\u0002H\u00100\n\"\u0004\b\u0000\u0010\u000b\"\u0004\b\u0001\u0010\u0010*\b\u0012\u0004\u0012\u0002H\u000b0\n23\b\u0001\u0010\u0011\u001a-\b\u0001\u0012\u0013\u0012\u0011H\u000b¢\u0006\f\b\u0013\u0012\b\b\u0014\u0012\u0004\b\b(\u0015\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00100\u0016\u0012\u0006\u0012\u0004\u0018\u00010\u00170\u0012H\u0007ø\u0001\u0000¢\u0006\u0002\u0010\u0018\u001a\"\u0010\t\u001a\b\u0012\u0004\u0012\u0002H\u000b0\n\"\u0004\b\u0000\u0010\u000b*\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u000b0\n0 \u001ar\u0010!\u001a\b\u0012\u0004\u0012\u0002H\u00100\n\"\u0004\b\u0000\u0010\u000b\"\u0004\b\u0001\u0010\u0010*\b\u0012\u0004\u0012\u0002H\u000b0\n2D\b\u0001\u0010\u0011\u001a>\b\u0001\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00100#\u0012\u0013\u0012\u0011H\u000b¢\u0006\f\b\u0013\u0012\b\b\u0014\u0012\u0004\b\b(\u0015\u0012\n\u0012\b\u0012\u0004\u0012\u00020$0\u0016\u0012\u0006\u0012\u0004\u0018\u00010\u00170\"¢\u0006\u0002\b%H\u0007ø\u0001\u0000¢\u0006\u0002\u0010&\"\u001c\u0010\u0000\u001a\u00020\u00018\u0006X\u0087\u0004¢\u0006\u000e\n\u0000\u0012\u0004\b\u0002\u0010\u0003\u001a\u0004\b\u0004\u0010\u0005\"\u0016\u0010\u0006\u001a\u00020\u00078\u0006X\u0087T¢\u0006\b\n\u0000\u0012\u0004\b\b\u0010\u0003\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006'"}, d2 = {"DEFAULT_CONCURRENCY", "", "getDEFAULT_CONCURRENCY$annotations", "()V", "getDEFAULT_CONCURRENCY", "()I", "DEFAULT_CONCURRENCY_PROPERTY_NAME", "", "getDEFAULT_CONCURRENCY_PROPERTY_NAME$annotations", "merge", "Lkotlinx/coroutines/flow/Flow;", "T", "flows", "", "([Lkotlinx/coroutines/flow/Flow;)Lkotlinx/coroutines/flow/Flow;", "flatMapConcat", "R", "transform", "Lkotlin/Function2;", "Lkotlin/ParameterName;", "name", "value", "Lkotlin/coroutines/Continuation;", "", "(Lkotlinx/coroutines/flow/Flow;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;", "flatMapLatest", "flatMapMerge", "concurrency", "(Lkotlinx/coroutines/flow/Flow;ILkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;", "flattenConcat", "flattenMerge", "mapLatest", "", "transformLatest", "Lkotlin/Function3;", "Lkotlinx/coroutines/flow/FlowCollector;", "", "Lkotlin/ExtensionFunctionType;", "(Lkotlinx/coroutines/flow/Flow;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/flow/Flow;", "kotlinx-coroutines-core"}, k = 5, mv = {1, 8, 0}, xi = 48, xs = "kotlinx/coroutines/flow/FlowKt")
|
||||
/* loaded from: classes.dex */
|
||||
final /* synthetic */ class FlowKt__MergeKt {
|
||||
private static final int DEFAULT_CONCURRENCY = SystemPropsKt.systemProp(FlowKt.DEFAULT_CONCURRENCY_PROPERTY_NAME, 16, 1, Integer.MAX_VALUE);
|
||||
|
||||
public static final int getDEFAULT_CONCURRENCY() {
|
||||
return DEFAULT_CONCURRENCY;
|
||||
}
|
||||
|
||||
public static /* synthetic */ void getDEFAULT_CONCURRENCY$annotations() {
|
||||
}
|
||||
|
||||
public static /* synthetic */ void getDEFAULT_CONCURRENCY_PROPERTY_NAME$annotations() {
|
||||
}
|
||||
|
||||
public static /* synthetic */ Flow flatMapMerge$default(Flow flow, int i, Function2 function2, int i2, Object obj) {
|
||||
if ((i2 & 1) != 0) {
|
||||
i = DEFAULT_CONCURRENCY;
|
||||
}
|
||||
return FlowKt.flatMapMerge(flow, i, function2);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> merge(Iterable<? extends Flow<? extends T>> iterable) {
|
||||
return new ChannelLimitedFlowMerge(iterable, null, 0, null, 14, null);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> merge(Flow<? extends T>... flowArr) {
|
||||
return FlowKt.merge(ArraysKt.asIterable(flowArr));
|
||||
}
|
||||
|
||||
public static /* synthetic */ Flow flattenMerge$default(Flow flow, int i, int i2, Object obj) {
|
||||
if ((i2 & 1) != 0) {
|
||||
i = DEFAULT_CONCURRENCY;
|
||||
}
|
||||
return FlowKt.flattenMerge(flow, i);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> flattenMerge(Flow<? extends Flow<? extends T>> flow, int i) {
|
||||
if (i > 0) {
|
||||
return i == 1 ? FlowKt.flattenConcat(flow) : new ChannelFlowMerge(flow, i, null, 0, null, 28, null);
|
||||
}
|
||||
throw new IllegalArgumentException(("Expected positive concurrency level, but had " + i).toString());
|
||||
}
|
||||
|
||||
public static final <T, R> Flow<R> transformLatest(Flow<? extends T> flow, Function3<? super FlowCollector<? super R>, ? super T, ? super Continuation<? super Unit>, ? extends Object> function3) {
|
||||
return new ChannelFlowTransformLatest(function3, flow, null, 0, null, 28, null);
|
||||
}
|
||||
|
||||
public static final <T, R> Flow<R> flatMapLatest(Flow<? extends T> flow, Function2<? super T, ? super Continuation<? super Flow<? extends R>>, ? extends Object> function2) {
|
||||
return FlowKt.transformLatest(flow, new FlowKt__MergeKt$flatMapLatest$1(function2, null));
|
||||
}
|
||||
|
||||
public static final <T, R> Flow<R> mapLatest(Flow<? extends T> flow, Function2<? super T, ? super Continuation<? super R>, ? extends Object> function2) {
|
||||
return FlowKt.transformLatest(flow, new FlowKt__MergeKt$mapLatest$1(function2, null));
|
||||
}
|
||||
|
||||
public static final <T, R> Flow<R> flatMapConcat(final Flow<? extends T> flow, final Function2<? super T, ? super Continuation<? super Flow<? extends R>>, ? extends Object> function2) {
|
||||
return FlowKt.flattenConcat(new Flow<Flow<? extends R>>() { // from class: kotlinx.coroutines.flow.FlowKt__MergeKt$flatMapConcat$$inlined$map$1
|
||||
|
||||
/* compiled from: Emitters.kt */
|
||||
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0007\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u00032\u0006\u0010\u0004\u001a\u0002H\u0002H\u008a@¢\u0006\u0004\b\u0005\u0010\u0006¨\u0006\b"}, d2 = {"<anonymous>", "", "T", "R", "value", "emit", "(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1", "kotlinx/coroutines/flow/FlowKt__TransformKt$map$$inlined$unsafeTransform$1$2"}, k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
/* renamed from: kotlinx.coroutines.flow.FlowKt__MergeKt$flatMapConcat$$inlined$map$1$2, reason: invalid class name */
|
||||
public static final class AnonymousClass2<T> implements FlowCollector {
|
||||
final /* synthetic */ FlowCollector $this_unsafeFlow;
|
||||
final /* synthetic */ Function2 $transform$inlined;
|
||||
|
||||
/* compiled from: Emitters.kt */
|
||||
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__MergeKt$flatMapConcat$$inlined$map$1$2", f = "Merge.kt", i = {}, l = {223, 223}, m = "emit", n = {}, s = {})
|
||||
/* renamed from: kotlinx.coroutines.flow.FlowKt__MergeKt$flatMapConcat$$inlined$map$1$2$1, reason: invalid class name */
|
||||
public static final class AnonymousClass1 extends ContinuationImpl {
|
||||
Object L$0;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
public AnonymousClass1(Continuation continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= Integer.MIN_VALUE;
|
||||
return AnonymousClass2.this.emit(null, this);
|
||||
}
|
||||
}
|
||||
|
||||
public AnonymousClass2(FlowCollector flowCollector, Function2 function2) {
|
||||
this.$this_unsafeFlow = flowCollector;
|
||||
this.$transform$inlined = function2;
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:19:0x005d A[RETURN] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:20:0x003d */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0025 */
|
||||
@Override // kotlinx.coroutines.flow.FlowCollector
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object emit(java.lang.Object r7, kotlin.coroutines.Continuation r8) {
|
||||
/*
|
||||
r6 = this;
|
||||
boolean r0 = r8 instanceof kotlinx.coroutines.flow.FlowKt__MergeKt$flatMapConcat$$inlined$map$1.AnonymousClass2.AnonymousClass1
|
||||
if (r0 == 0) goto L14
|
||||
r0 = r8
|
||||
kotlinx.coroutines.flow.FlowKt__MergeKt$flatMapConcat$$inlined$map$1$2$1 r0 = (kotlinx.coroutines.flow.FlowKt__MergeKt$flatMapConcat$$inlined$map$1.AnonymousClass2.AnonymousClass1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r1 = r1 & r2
|
||||
if (r1 == 0) goto L14
|
||||
int r8 = r0.label
|
||||
int r8 = r8 - r2
|
||||
r0.label = r8
|
||||
goto L19
|
||||
L14:
|
||||
kotlinx.coroutines.flow.FlowKt__MergeKt$flatMapConcat$$inlined$map$1$2$1 r0 = new kotlinx.coroutines.flow.FlowKt__MergeKt$flatMapConcat$$inlined$map$1$2$1
|
||||
r0.<init>(r8)
|
||||
L19:
|
||||
java.lang.Object r8 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 2
|
||||
r4 = 1
|
||||
if (r2 == 0) goto L3d
|
||||
if (r2 == r4) goto L35
|
||||
if (r2 != r3) goto L2d
|
||||
kotlin.ResultKt.throwOnFailure(r8)
|
||||
goto L5e
|
||||
L2d:
|
||||
java.lang.IllegalStateException r7 = new java.lang.IllegalStateException
|
||||
java.lang.String r8 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r7.<init>(r8)
|
||||
throw r7
|
||||
L35:
|
||||
java.lang.Object r7 = r0.L$0
|
||||
kotlinx.coroutines.flow.FlowCollector r7 = (kotlinx.coroutines.flow.FlowCollector) r7
|
||||
kotlin.ResultKt.throwOnFailure(r8)
|
||||
goto L52
|
||||
L3d:
|
||||
kotlin.ResultKt.throwOnFailure(r8)
|
||||
kotlinx.coroutines.flow.FlowCollector r8 = r6.$this_unsafeFlow
|
||||
kotlin.jvm.functions.Function2 r2 = r6.$transform$inlined
|
||||
r0.L$0 = r8
|
||||
r0.label = r4
|
||||
java.lang.Object r7 = r2.invoke(r7, r0)
|
||||
if (r7 != r1) goto L4f
|
||||
return r1
|
||||
L4f:
|
||||
r5 = r8
|
||||
r8 = r7
|
||||
r7 = r5
|
||||
L52:
|
||||
r2 = 0
|
||||
r0.L$0 = r2
|
||||
r0.label = r3
|
||||
java.lang.Object r7 = r7.emit(r8, r0)
|
||||
if (r7 != r1) goto L5e
|
||||
return r1
|
||||
L5e:
|
||||
kotlin.Unit r7 = kotlin.Unit.INSTANCE
|
||||
return r7
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.FlowKt__MergeKt$flatMapConcat$$inlined$map$1.AnonymousClass2.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
}
|
||||
|
||||
@Override // kotlinx.coroutines.flow.Flow
|
||||
public Object collect(FlowCollector flowCollector, Continuation continuation) {
|
||||
Object collect = Flow.this.collect(new AnonymousClass2(flowCollector, function2), continuation);
|
||||
return collect == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? collect : Unit.INSTANCE;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public static final <T, R> Flow<R> flatMapMerge(final Flow<? extends T> flow, int i, final Function2<? super T, ? super Continuation<? super Flow<? extends R>>, ? extends Object> function2) {
|
||||
return FlowKt.flattenMerge(new Flow<Flow<? extends R>>() { // from class: kotlinx.coroutines.flow.FlowKt__MergeKt$flatMapMerge$$inlined$map$1
|
||||
|
||||
/* compiled from: Emitters.kt */
|
||||
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0007\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u00032\u0006\u0010\u0004\u001a\u0002H\u0002H\u008a@¢\u0006\u0004\b\u0005\u0010\u0006¨\u0006\b"}, d2 = {"<anonymous>", "", "T", "R", "value", "emit", "(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1", "kotlinx/coroutines/flow/FlowKt__TransformKt$map$$inlined$unsafeTransform$1$2"}, k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
/* renamed from: kotlinx.coroutines.flow.FlowKt__MergeKt$flatMapMerge$$inlined$map$1$2, reason: invalid class name */
|
||||
public static final class AnonymousClass2<T> implements FlowCollector {
|
||||
final /* synthetic */ FlowCollector $this_unsafeFlow;
|
||||
final /* synthetic */ Function2 $transform$inlined;
|
||||
|
||||
/* compiled from: Emitters.kt */
|
||||
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__MergeKt$flatMapMerge$$inlined$map$1$2", f = "Merge.kt", i = {}, l = {223, 223}, m = "emit", n = {}, s = {})
|
||||
/* renamed from: kotlinx.coroutines.flow.FlowKt__MergeKt$flatMapMerge$$inlined$map$1$2$1, reason: invalid class name */
|
||||
public static final class AnonymousClass1 extends ContinuationImpl {
|
||||
Object L$0;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
public AnonymousClass1(Continuation continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= Integer.MIN_VALUE;
|
||||
return AnonymousClass2.this.emit(null, this);
|
||||
}
|
||||
}
|
||||
|
||||
public AnonymousClass2(FlowCollector flowCollector, Function2 function2) {
|
||||
this.$this_unsafeFlow = flowCollector;
|
||||
this.$transform$inlined = function2;
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:19:0x005d A[RETURN] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:20:0x003d */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0025 */
|
||||
@Override // kotlinx.coroutines.flow.FlowCollector
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object emit(java.lang.Object r7, kotlin.coroutines.Continuation r8) {
|
||||
/*
|
||||
r6 = this;
|
||||
boolean r0 = r8 instanceof kotlinx.coroutines.flow.FlowKt__MergeKt$flatMapMerge$$inlined$map$1.AnonymousClass2.AnonymousClass1
|
||||
if (r0 == 0) goto L14
|
||||
r0 = r8
|
||||
kotlinx.coroutines.flow.FlowKt__MergeKt$flatMapMerge$$inlined$map$1$2$1 r0 = (kotlinx.coroutines.flow.FlowKt__MergeKt$flatMapMerge$$inlined$map$1.AnonymousClass2.AnonymousClass1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r1 = r1 & r2
|
||||
if (r1 == 0) goto L14
|
||||
int r8 = r0.label
|
||||
int r8 = r8 - r2
|
||||
r0.label = r8
|
||||
goto L19
|
||||
L14:
|
||||
kotlinx.coroutines.flow.FlowKt__MergeKt$flatMapMerge$$inlined$map$1$2$1 r0 = new kotlinx.coroutines.flow.FlowKt__MergeKt$flatMapMerge$$inlined$map$1$2$1
|
||||
r0.<init>(r8)
|
||||
L19:
|
||||
java.lang.Object r8 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 2
|
||||
r4 = 1
|
||||
if (r2 == 0) goto L3d
|
||||
if (r2 == r4) goto L35
|
||||
if (r2 != r3) goto L2d
|
||||
kotlin.ResultKt.throwOnFailure(r8)
|
||||
goto L5e
|
||||
L2d:
|
||||
java.lang.IllegalStateException r7 = new java.lang.IllegalStateException
|
||||
java.lang.String r8 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r7.<init>(r8)
|
||||
throw r7
|
||||
L35:
|
||||
java.lang.Object r7 = r0.L$0
|
||||
kotlinx.coroutines.flow.FlowCollector r7 = (kotlinx.coroutines.flow.FlowCollector) r7
|
||||
kotlin.ResultKt.throwOnFailure(r8)
|
||||
goto L52
|
||||
L3d:
|
||||
kotlin.ResultKt.throwOnFailure(r8)
|
||||
kotlinx.coroutines.flow.FlowCollector r8 = r6.$this_unsafeFlow
|
||||
kotlin.jvm.functions.Function2 r2 = r6.$transform$inlined
|
||||
r0.L$0 = r8
|
||||
r0.label = r4
|
||||
java.lang.Object r7 = r2.invoke(r7, r0)
|
||||
if (r7 != r1) goto L4f
|
||||
return r1
|
||||
L4f:
|
||||
r5 = r8
|
||||
r8 = r7
|
||||
r7 = r5
|
||||
L52:
|
||||
r2 = 0
|
||||
r0.L$0 = r2
|
||||
r0.label = r3
|
||||
java.lang.Object r7 = r7.emit(r8, r0)
|
||||
if (r7 != r1) goto L5e
|
||||
return r1
|
||||
L5e:
|
||||
kotlin.Unit r7 = kotlin.Unit.INSTANCE
|
||||
return r7
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.flow.FlowKt__MergeKt$flatMapMerge$$inlined$map$1.AnonymousClass2.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
}
|
||||
|
||||
@Override // kotlinx.coroutines.flow.Flow
|
||||
public Object collect(FlowCollector flowCollector, Continuation continuation) {
|
||||
Object collect = Flow.this.collect(new AnonymousClass2(flowCollector, function2), continuation);
|
||||
return collect == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? collect : Unit.INSTANCE;
|
||||
}
|
||||
}, i);
|
||||
}
|
||||
|
||||
public static final <T> Flow<T> flattenConcat(final Flow<? extends Flow<? extends T>> flow) {
|
||||
return new Flow<T>() { // from class: kotlinx.coroutines.flow.FlowKt__MergeKt$flattenConcat$$inlined$unsafeFlow$1
|
||||
@Override // kotlinx.coroutines.flow.Flow
|
||||
public Object collect(FlowCollector<? super T> flowCollector, Continuation<? super Unit> continuation) {
|
||||
Object collect = Flow.this.collect(new FlowKt__MergeKt$flattenConcat$1$1(flowCollector), continuation);
|
||||
return collect == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? collect : Unit.INSTANCE;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
@ -0,0 +1,62 @@
|
||||
package kotlinx.coroutines.flow;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.ResultKt;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlinx.coroutines.DelayKt;
|
||||
|
||||
/* JADX INFO: Add missing generic type declarations: [T] */
|
||||
/* compiled from: Migration.kt */
|
||||
@Metadata(d1 = {"\u0000\n\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\u0010\u0003\u001a\u00020\u0002\"\u0004\b\u0000\u0010\u00002\u0006\u0010\u0001\u001a\u00028\u0000H\u008a@"}, d2 = {"T", "it", "", "<anonymous>"}, k = 3, mv = {1, 8, 0})
|
||||
@DebugMetadata(c = "kotlinx.coroutines.flow.FlowKt__MigrationKt$delayEach$1", f = "Migration.kt", i = {}, l = {427}, m = "invokeSuspend", n = {}, s = {})
|
||||
/* loaded from: classes.dex */
|
||||
final class FlowKt__MigrationKt$delayEach$1<T> extends SuspendLambda implements Function2<T, Continuation<? super Unit>, Object> {
|
||||
final /* synthetic */ long $timeMillis;
|
||||
int label;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
FlowKt__MigrationKt$delayEach$1(long j, Continuation<? super FlowKt__MigrationKt$delayEach$1> continuation) {
|
||||
super(2, continuation);
|
||||
this.$timeMillis = j;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
||||
return new FlowKt__MigrationKt$delayEach$1(this.$timeMillis, continuation);
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public /* bridge */ /* synthetic */ Object invoke(Object obj, Continuation<? super Unit> continuation) {
|
||||
return invoke2((FlowKt__MigrationKt$delayEach$1<T>) obj, continuation);
|
||||
}
|
||||
|
||||
/* renamed from: invoke, reason: avoid collision after fix types in other method */
|
||||
public final Object invoke2(T t, Continuation<? super Unit> continuation) {
|
||||
return ((FlowKt__MigrationKt$delayEach$1) create(t, continuation)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
||||
int i = this.label;
|
||||
if (i == 0) {
|
||||
ResultKt.throwOnFailure(obj);
|
||||
this.label = 1;
|
||||
if (DelayKt.delay(this.$timeMillis, this) == coroutine_suspended) {
|
||||
return coroutine_suspended;
|
||||
}
|
||||
} else {
|
||||
if (i != 1) {
|
||||
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||
}
|
||||
ResultKt.throwOnFailure(obj);
|
||||
}
|
||||
return Unit.INSTANCE;
|
||||
}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user