mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-14 01:47:17 +01:00
226 lines
11 KiB
Java
226 lines
11 KiB
Java
package androidx.paging;
|
|
|
|
import androidx.exifinterface.media.ExifInterface;
|
|
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.Function3;
|
|
import kotlin.jvm.internal.Ref;
|
|
import kotlinx.coroutines.flow.Flow;
|
|
import kotlinx.coroutines.flow.FlowCollector;
|
|
import org.jetbrains.annotations.NotNull;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
/* JADX INFO: Add missing generic type declarations: [R] */
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003*\b\u0012\u0004\u0012\u0002H\u00030\u0004H\u008a@"}, d2 = {"<anonymous>", "", ExifInterface.GPS_DIRECTION_TRUE, "R", "Lkotlinx/coroutines/flow/FlowCollector;"}, k = 3, mv = {1, 8, 0}, xi = 48)
|
|
@DebugMetadata(c = "androidx.paging.FlowExtKt$simpleScan$1", f = "FlowExt.kt", i = {0, 0}, l = {55, 56}, m = "invokeSuspend", n = {"$this$flow", "accumulator"}, s = {"L$0", "L$1"})
|
|
/* loaded from: classes14.dex */
|
|
public final class FlowExtKt$simpleScan$1<R> extends SuspendLambda implements Function2<FlowCollector<? super R>, Continuation<? super Unit>, Object> {
|
|
final /* synthetic */ R $initial;
|
|
final /* synthetic */ Function3<R, T, Continuation<? super R>, Object> $operation;
|
|
final /* synthetic */ Flow<T> $this_simpleScan;
|
|
private /* synthetic */ Object L$0;
|
|
Object L$1;
|
|
int label;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@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>", "", ExifInterface.GPS_DIRECTION_TRUE, "R", "value", "emit", "(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;"}, k = 3, mv = {1, 8, 0}, xi = 48)
|
|
/* renamed from: androidx.paging.FlowExtKt$simpleScan$1$1, reason: invalid class name */
|
|
public static final class AnonymousClass1<T> implements FlowCollector {
|
|
final /* synthetic */ FlowCollector<R> $$this$flow;
|
|
final /* synthetic */ Ref.ObjectRef<R> $accumulator;
|
|
final /* synthetic */ Function3<R, T, Continuation<? super R>, Object> $operation;
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public AnonymousClass1(Ref.ObjectRef<R> objectRef, Function3<? super R, ? super T, ? super Continuation<? super R>, ? extends Object> function3, FlowCollector<? super R> flowCollector) {
|
|
this.$accumulator = objectRef;
|
|
this.$operation = function3;
|
|
this.$$this$flow = flowCollector;
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:18:0x006c, code lost:
|
|
|
|
if (r7.emit(r8, r0) != r1) goto L23;
|
|
*/
|
|
/* JADX WARN: Removed duplicated region for block: B:20:0x003f */
|
|
/* JADX WARN: Removed duplicated region for block: B:8:0x0024 */
|
|
@Override // kotlinx.coroutines.flow.FlowCollector
|
|
@org.jetbrains.annotations.Nullable
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final java.lang.Object emit(T r8, @org.jetbrains.annotations.NotNull kotlin.coroutines.Continuation<? super kotlin.Unit> r9) {
|
|
/*
|
|
r7 = this;
|
|
boolean r0 = r9 instanceof androidx.paging.FlowExtKt$simpleScan$1$1$emit$1
|
|
if (r0 == 0) goto L13
|
|
r0 = r9
|
|
androidx.paging.FlowExtKt$simpleScan$1$1$emit$1 r0 = (androidx.paging.FlowExtKt$simpleScan$1$1$emit$1) r0
|
|
int r1 = r0.label
|
|
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
|
r3 = r1 & r2
|
|
if (r3 == 0) goto L13
|
|
int r1 = r1 - r2
|
|
r0.label = r1
|
|
goto L18
|
|
L13:
|
|
androidx.paging.FlowExtKt$simpleScan$1$1$emit$1 r0 = new androidx.paging.FlowExtKt$simpleScan$1$1$emit$1
|
|
r0.<init>(r7, r9)
|
|
L18:
|
|
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 L3f
|
|
if (r2 == r4) goto L33
|
|
if (r2 != r3) goto L2c
|
|
kotlin.ResultKt.throwOnFailure(r9)
|
|
goto L6f
|
|
L2c:
|
|
java.lang.String r7 = "call to 'resume' before 'invoke' with coroutine"
|
|
rx.Single$$ExternalSyntheticBUOutline0.m$2(r7)
|
|
r7 = 0
|
|
return r7
|
|
L33:
|
|
java.lang.Object r7 = r0.L$1
|
|
kotlin.jvm.internal.Ref$ObjectRef r7 = (kotlin.jvm.internal.Ref.ObjectRef) r7
|
|
java.lang.Object r8 = r0.L$0
|
|
androidx.paging.FlowExtKt$simpleScan$1$1 r8 = (androidx.paging.FlowExtKt$simpleScan$1.AnonymousClass1) r8
|
|
kotlin.ResultKt.throwOnFailure(r9)
|
|
goto L59
|
|
L3f:
|
|
kotlin.ResultKt.throwOnFailure(r9)
|
|
kotlin.jvm.internal.Ref$ObjectRef<R> r9 = r7.$accumulator
|
|
kotlin.jvm.functions.Function3<R, T, kotlin.coroutines.Continuation<? super R>, java.lang.Object> r2 = r7.$operation
|
|
T r5 = r9.element
|
|
r0.L$0 = r7
|
|
r0.L$1 = r9
|
|
r0.label = r4
|
|
java.lang.Object r8 = r2.invoke(r5, r8, r0)
|
|
if (r8 != r1) goto L55
|
|
goto L6e
|
|
L55:
|
|
r6 = r8
|
|
r8 = r7
|
|
r7 = r9
|
|
r9 = r6
|
|
L59:
|
|
r7.element = r9
|
|
kotlinx.coroutines.flow.FlowCollector<R> r7 = r8.$$this$flow
|
|
kotlin.jvm.internal.Ref$ObjectRef<R> r8 = r8.$accumulator
|
|
T r8 = r8.element
|
|
r9 = 0
|
|
r0.L$0 = r9
|
|
r0.L$1 = r9
|
|
r0.label = r3
|
|
java.lang.Object r7 = r7.emit(r8, r0)
|
|
if (r7 != r1) goto L6f
|
|
L6e:
|
|
return r1
|
|
L6f:
|
|
kotlin.Unit r7 = kotlin.Unit.INSTANCE
|
|
return r7
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: androidx.paging.FlowExtKt$simpleScan$1.AnonymousClass1.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object");
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public FlowExtKt$simpleScan$1(R r, Flow<? extends T> flow, Function3<? super R, ? super T, ? super Continuation<? super R>, ? extends Object> function3, Continuation<? super FlowExtKt$simpleScan$1> continuation) {
|
|
super(2, continuation);
|
|
this.$initial = r;
|
|
this.$this_simpleScan = flow;
|
|
this.$operation = function3;
|
|
}
|
|
|
|
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
|
@NotNull
|
|
public final Continuation<Unit> create(@Nullable Object obj, @NotNull Continuation<?> continuation) {
|
|
FlowExtKt$simpleScan$1 flowExtKt$simpleScan$1 = new FlowExtKt$simpleScan$1(this.$initial, this.$this_simpleScan, this.$operation, continuation);
|
|
flowExtKt$simpleScan$1.L$0 = obj;
|
|
return flowExtKt$simpleScan$1;
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function2
|
|
@Nullable
|
|
public final Object invoke(@NotNull FlowCollector<? super R> flowCollector, @Nullable Continuation<? super Unit> continuation) {
|
|
return ((FlowExtKt$simpleScan$1) create(flowCollector, continuation)).invokeSuspend(Unit.INSTANCE);
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:13:0x0057, code lost:
|
|
|
|
if (r7.collect(r4, r6) == r0) goto L16;
|
|
*/
|
|
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
|
@org.jetbrains.annotations.Nullable
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final java.lang.Object invokeSuspend(@org.jetbrains.annotations.NotNull java.lang.Object r7) {
|
|
/*
|
|
r6 = this;
|
|
java.lang.Object r0 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
|
int r1 = r6.label
|
|
r2 = 2
|
|
r3 = 1
|
|
if (r1 == 0) goto L25
|
|
if (r1 == r3) goto L19
|
|
if (r1 != r2) goto L12
|
|
kotlin.ResultKt.throwOnFailure(r7)
|
|
goto L5a
|
|
L12:
|
|
java.lang.String r6 = "call to 'resume' before 'invoke' with coroutine"
|
|
rx.Single$$ExternalSyntheticBUOutline0.m$2(r6)
|
|
r6 = 0
|
|
return r6
|
|
L19:
|
|
java.lang.Object r1 = r6.L$1
|
|
kotlin.jvm.internal.Ref$ObjectRef r1 = (kotlin.jvm.internal.Ref.ObjectRef) r1
|
|
java.lang.Object r3 = r6.L$0
|
|
kotlinx.coroutines.flow.FlowCollector r3 = (kotlinx.coroutines.flow.FlowCollector) r3
|
|
kotlin.ResultKt.throwOnFailure(r7)
|
|
goto L43
|
|
L25:
|
|
kotlin.ResultKt.throwOnFailure(r7)
|
|
java.lang.Object r7 = r6.L$0
|
|
kotlinx.coroutines.flow.FlowCollector r7 = (kotlinx.coroutines.flow.FlowCollector) r7
|
|
kotlin.jvm.internal.Ref$ObjectRef r1 = new kotlin.jvm.internal.Ref$ObjectRef
|
|
r1.<init>()
|
|
R r4 = r6.$initial
|
|
r1.element = r4
|
|
r6.L$0 = r7
|
|
r6.L$1 = r1
|
|
r6.label = r3
|
|
java.lang.Object r3 = r7.emit(r4, r6)
|
|
if (r3 != r0) goto L42
|
|
goto L59
|
|
L42:
|
|
r3 = r7
|
|
L43:
|
|
kotlinx.coroutines.flow.Flow<T> r7 = r6.$this_simpleScan
|
|
androidx.paging.FlowExtKt$simpleScan$1$1 r4 = new androidx.paging.FlowExtKt$simpleScan$1$1
|
|
kotlin.jvm.functions.Function3<R, T, kotlin.coroutines.Continuation<? super R>, java.lang.Object> r5 = r6.$operation
|
|
r4.<init>(r1, r5, r3)
|
|
r1 = 0
|
|
r6.L$0 = r1
|
|
r6.L$1 = r1
|
|
r6.label = r2
|
|
java.lang.Object r6 = r7.collect(r4, r6)
|
|
if (r6 != r0) goto L5a
|
|
L59:
|
|
return r0
|
|
L5a:
|
|
kotlin.Unit r6 = kotlin.Unit.INSTANCE
|
|
return r6
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: androidx.paging.FlowExtKt$simpleScan$1.invokeSuspend(java.lang.Object):java.lang.Object");
|
|
}
|
|
}
|