alexandroid/decompiled/jadx/sources/androidx/paging/CachedPageEventFlow$job$1.java
KaKi87 a47fad5135 📦 Add decompiled Alexa 2.2.730155.0 (jadx, apktool, Hermes strings)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 00:04:16 +01:00

177 lines
8.9 KiB
Java

package androidx.paging;
import androidx.exifinterface.media.ExifInterface;
import kotlin.Metadata;
import kotlin.ResultKt;
import kotlin.Unit;
import kotlin.collections.IndexedValue;
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;
import kotlinx.coroutines.flow.Flow;
import kotlinx.coroutines.flow.FlowCollector;
import kotlinx.coroutines.flow.FlowKt;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.openjdk.tools.javac.jvm.ByteCodes;
import rx.Single$$ExternalSyntheticBUOutline0;
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
@Metadata(d1 = {"\u0000\u0010\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u0000\n\u0002\u0018\u0002\u0010\u0000\u001a\u00020\u0001\"\b\b\u0000\u0010\u0002*\u00020\u0003*\u00020\u0004H\u008a@"}, d2 = {"<anonymous>", "", ExifInterface.GPS_DIRECTION_TRUE, "", "Lkotlinx/coroutines/CoroutineScope;"}, k = 3, mv = {1, 8, 0}, xi = 48)
@DebugMetadata(c = "androidx.paging.CachedPageEventFlow$job$1", f = "CachedPageEventFlow.kt", i = {}, l = {ByteCodes.astore_2}, m = "invokeSuspend", n = {}, s = {})
/* loaded from: classes14.dex */
public final class CachedPageEventFlow$job$1 extends SuspendLambda implements Function2<CoroutineScope, Continuation<? super Unit>, Object> {
final /* synthetic */ Flow<PageEvent<T>> $src;
int label;
final /* synthetic */ CachedPageEventFlow<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 CachedPageEventFlow$job$1(Flow<? extends PageEvent<T>> flow, CachedPageEventFlow<T> cachedPageEventFlow, Continuation<? super CachedPageEventFlow$job$1> continuation) {
super(2, continuation);
this.$src = flow;
this.this$0 = cachedPageEventFlow;
}
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
@NotNull
public final Continuation<Unit> create(@Nullable Object obj, @NotNull Continuation<?> continuation) {
return new CachedPageEventFlow$job$1(this.$src, this.this$0, continuation);
}
@Override // kotlin.jvm.functions.Function2
@Nullable
public final Object invoke(@NotNull CoroutineScope coroutineScope, @Nullable Continuation<? super Unit> continuation) {
return ((CachedPageEventFlow$job$1) create(coroutineScope, continuation)).invokeSuspend(Unit.INSTANCE);
}
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
@Nullable
public final Object invokeSuspend(@NotNull Object obj) {
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
int i = this.label;
if (i == 0) {
ResultKt.throwOnFailure(obj);
Flow withIndex = FlowKt.withIndex(this.$src);
AnonymousClass1 anonymousClass1 = new AnonymousClass1(this.this$0);
this.label = 1;
if (withIndex.collect(anonymousClass1, this) == coroutine_suspended) {
return coroutine_suspended;
}
} else {
if (i != 1) {
Single$$ExternalSyntheticBUOutline0.m$2("call to 'resume' before 'invoke' with coroutine");
return null;
}
ResultKt.throwOnFailure(obj);
}
return Unit.INSTANCE;
}
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
@Metadata(d1 = {"\u0000\u001a\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0000\u001a\u00020\u0001\"\b\b\u0000\u0010\u0002*\u00020\u00032\u0012\u0010\u0004\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00020\u00060\u0005H\u008a@¢\u0006\u0004\b\u0007\u0010\b"}, d2 = {"<anonymous>", "", ExifInterface.GPS_DIRECTION_TRUE, "", "it", "Lkotlin/collections/IndexedValue;", "Landroidx/paging/PageEvent;", "emit", "(Lkotlin/collections/IndexedValue;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;"}, k = 3, mv = {1, 8, 0}, xi = 48)
/* renamed from: androidx.paging.CachedPageEventFlow$job$1$1, reason: invalid class name */
public static final class AnonymousClass1<T> implements FlowCollector {
final /* synthetic */ CachedPageEventFlow<T> this$0;
public AnonymousClass1(CachedPageEventFlow<T> cachedPageEventFlow) {
this.this$0 = cachedPageEventFlow;
}
/* JADX WARN: Code restructure failed: missing block: B:18:0x0067, code lost:
if (r5.record(r6, r0) != r1) goto L22;
*/
/* JADX WARN: Code restructure failed: missing block: B:19:0x0069, code lost:
return r1;
*/
/* JADX WARN: Code restructure failed: missing block: B:21:0x0053, code lost:
if (r7.emit(r6, r0) == r1) goto L21;
*/
/* JADX WARN: Removed duplicated region for block: B:20:0x0040 */
/* JADX WARN: Removed duplicated region for block: B:8:0x0024 */
@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(@org.jetbrains.annotations.NotNull kotlin.collections.IndexedValue<? extends androidx.paging.PageEvent<T>> r6, @org.jetbrains.annotations.NotNull kotlin.coroutines.Continuation<? super kotlin.Unit> r7) {
/*
r5 = this;
boolean r0 = r7 instanceof androidx.paging.CachedPageEventFlow$job$1$1$emit$1
if (r0 == 0) goto L13
r0 = r7
androidx.paging.CachedPageEventFlow$job$1$1$emit$1 r0 = (androidx.paging.CachedPageEventFlow$job$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.CachedPageEventFlow$job$1$1$emit$1 r0 = new androidx.paging.CachedPageEventFlow$job$1$1$emit$1
r0.<init>(r5, r7)
L18:
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 L40
if (r2 == r4) goto L33
if (r2 != r3) goto L2c
kotlin.ResultKt.throwOnFailure(r7)
goto L6a
L2c:
java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
rx.Single$$ExternalSyntheticBUOutline0.m$2(r5)
r5 = 0
return r5
L33:
java.lang.Object r5 = r0.L$1
r6 = r5
kotlin.collections.IndexedValue r6 = (kotlin.collections.IndexedValue) r6
java.lang.Object r5 = r0.L$0
androidx.paging.CachedPageEventFlow$job$1$1 r5 = (androidx.paging.CachedPageEventFlow$job$1.AnonymousClass1) r5
kotlin.ResultKt.throwOnFailure(r7)
goto L56
L40:
kotlin.ResultKt.throwOnFailure(r7)
androidx.paging.CachedPageEventFlow<T> r7 = r5.this$0
kotlinx.coroutines.flow.MutableSharedFlow r7 = androidx.paging.CachedPageEventFlow.access$getMutableSharedSrc$p(r7)
r0.L$0 = r5
r0.L$1 = r6
r0.label = r4
java.lang.Object r7 = r7.emit(r6, r0)
if (r7 != r1) goto L56
goto L69
L56:
androidx.paging.CachedPageEventFlow<T> r5 = r5.this$0
androidx.paging.FlattenedPageController r5 = androidx.paging.CachedPageEventFlow.access$getPageController$p(r5)
r7 = 0
r0.L$0 = r7
r0.L$1 = r7
r0.label = r3
java.lang.Object r5 = r5.record(r6, r0)
if (r5 != r1) goto L6a
L69:
return r1
L6a:
kotlin.Unit r5 = kotlin.Unit.INSTANCE
return r5
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.paging.CachedPageEventFlow$job$1.AnonymousClass1.emit(kotlin.collections.IndexedValue, kotlin.coroutines.Continuation):java.lang.Object");
}
@Override // kotlinx.coroutines.flow.FlowCollector
public /* bridge */ /* synthetic */ Object emit(Object obj, Continuation continuation) {
return emit((IndexedValue) obj, (Continuation<? super Unit>) continuation);
}
}
}