mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-13 17:37:16 +01:00
229 lines
13 KiB
Java
229 lines
13 KiB
Java
package androidx.compose.material3.internal;
|
|
|
|
import androidx.compose.runtime.SnapshotStateKt;
|
|
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.Function0;
|
|
import kotlin.jvm.functions.Function2;
|
|
import kotlin.jvm.internal.Ref;
|
|
import kotlinx.coroutines.CoroutineScope;
|
|
import kotlinx.coroutines.CoroutineScopeKt;
|
|
import kotlinx.coroutines.Job;
|
|
import kotlinx.coroutines.flow.Flow;
|
|
import kotlinx.coroutines.flow.FlowCollector;
|
|
import org.jetbrains.annotations.NotNull;
|
|
import org.jetbrains.annotations.Nullable;
|
|
import rx.Single$$ExternalSyntheticBUOutline0;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Metadata(d1 = {"\u0000\f\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\u00020\u0003H\u008a@"}, d2 = {"<anonymous>", "", "I", "Lkotlinx/coroutines/CoroutineScope;"}, k = 3, mv = {1, 8, 0}, xi = 48)
|
|
@DebugMetadata(c = "androidx.compose.material3.internal.AnchoredDraggableKt$restartable$2", f = "AnchoredDraggable.kt", i = {}, l = {715}, m = "invokeSuspend", n = {}, s = {})
|
|
/* loaded from: classes13.dex */
|
|
public final class AnchoredDraggableKt$restartable$2 extends SuspendLambda implements Function2<CoroutineScope, Continuation<? super Unit>, Object> {
|
|
final /* synthetic */ Function2<I, Continuation<? super Unit>, Object> $block;
|
|
final /* synthetic */ Function0<I> $inputs;
|
|
private /* synthetic */ Object L$0;
|
|
int label;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@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>", "", "I", "latestInputs", "emit", "(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;"}, k = 3, mv = {1, 8, 0}, xi = 48)
|
|
/* renamed from: androidx.compose.material3.internal.AnchoredDraggableKt$restartable$2$1, reason: invalid class name */
|
|
public static final class AnonymousClass1<T> implements FlowCollector {
|
|
final /* synthetic */ CoroutineScope $$this$coroutineScope;
|
|
final /* synthetic */ Function2<I, Continuation<? super Unit>, Object> $block;
|
|
final /* synthetic */ Ref.ObjectRef<Job> $previousDrag;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Metadata(d1 = {"\u0000\f\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\u00020\u0003H\u008a@"}, d2 = {"<anonymous>", "", "I", "Lkotlinx/coroutines/CoroutineScope;"}, k = 3, mv = {1, 8, 0}, xi = 48)
|
|
@DebugMetadata(c = "androidx.compose.material3.internal.AnchoredDraggableKt$restartable$2$1$2", f = "AnchoredDraggable.kt", i = {}, l = {722}, m = "invokeSuspend", n = {}, s = {})
|
|
/* renamed from: androidx.compose.material3.internal.AnchoredDraggableKt$restartable$2$1$2, reason: invalid class name */
|
|
public static final class AnonymousClass2 extends SuspendLambda implements Function2<CoroutineScope, Continuation<? super Unit>, Object> {
|
|
final /* synthetic */ CoroutineScope $$this$coroutineScope;
|
|
final /* synthetic */ Function2<I, Continuation<? super Unit>, Object> $block;
|
|
final /* synthetic */ I $latestInputs;
|
|
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 AnonymousClass2(Function2<? super I, ? super Continuation<? super Unit>, ? extends Object> function2, I i, CoroutineScope coroutineScope, Continuation<? super AnonymousClass2> continuation) {
|
|
super(2, continuation);
|
|
this.$block = function2;
|
|
this.$latestInputs = i;
|
|
this.$$this$coroutineScope = coroutineScope;
|
|
}
|
|
|
|
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
|
@NotNull
|
|
public final Continuation<Unit> create(@Nullable Object obj, @NotNull Continuation<?> continuation) {
|
|
return new AnonymousClass2(this.$block, this.$latestInputs, this.$$this$coroutineScope, continuation);
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function2
|
|
@Nullable
|
|
public final Object invoke(@NotNull CoroutineScope coroutineScope, @Nullable Continuation<? super Unit> continuation) {
|
|
return ((AnonymousClass2) 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);
|
|
Function2<I, Continuation<? super Unit>, Object> function2 = this.$block;
|
|
I i2 = this.$latestInputs;
|
|
this.label = 1;
|
|
if (function2.invoke(i2, 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);
|
|
}
|
|
CoroutineScopeKt.cancel(this.$$this$coroutineScope, new AnchoredDragFinishedSignal());
|
|
return Unit.INSTANCE;
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public AnonymousClass1(Ref.ObjectRef<Job> objectRef, CoroutineScope coroutineScope, Function2<? super I, ? super Continuation<? super Unit>, ? extends Object> function2) {
|
|
this.$previousDrag = objectRef;
|
|
this.$$this$coroutineScope = coroutineScope;
|
|
this.$block = function2;
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:15:0x003a */
|
|
/* JADX WARN: Removed duplicated region for block: B:8:0x0023 */
|
|
@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(I r7, @org.jetbrains.annotations.NotNull kotlin.coroutines.Continuation<? super kotlin.Unit> r8) {
|
|
/*
|
|
r6 = this;
|
|
boolean r0 = r8 instanceof androidx.compose.material3.internal.AnchoredDraggableKt$restartable$2$1$emit$1
|
|
if (r0 == 0) goto L13
|
|
r0 = r8
|
|
androidx.compose.material3.internal.AnchoredDraggableKt$restartable$2$1$emit$1 r0 = (androidx.compose.material3.internal.AnchoredDraggableKt$restartable$2$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.compose.material3.internal.AnchoredDraggableKt$restartable$2$1$emit$1 r0 = new androidx.compose.material3.internal.AnchoredDraggableKt$restartable$2$1$emit$1
|
|
r0.<init>(r6, r8)
|
|
L18:
|
|
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 L3a
|
|
if (r2 != r3) goto L33
|
|
java.lang.Object r6 = r0.L$2
|
|
kotlinx.coroutines.Job r6 = (kotlinx.coroutines.Job) r6
|
|
java.lang.Object r7 = r0.L$1
|
|
java.lang.Object r6 = r0.L$0
|
|
androidx.compose.material3.internal.AnchoredDraggableKt$restartable$2$1 r6 = (androidx.compose.material3.internal.AnchoredDraggableKt$restartable$2.AnonymousClass1) r6
|
|
kotlin.ResultKt.throwOnFailure(r8)
|
|
goto L5c
|
|
L33:
|
|
java.lang.String r6 = "call to 'resume' before 'invoke' with coroutine"
|
|
rx.Single$$ExternalSyntheticBUOutline0.m$2(r6)
|
|
r6 = 0
|
|
return r6
|
|
L3a:
|
|
kotlin.ResultKt.throwOnFailure(r8)
|
|
kotlin.jvm.internal.Ref$ObjectRef<kotlinx.coroutines.Job> r8 = r6.$previousDrag
|
|
T r8 = r8.element
|
|
kotlinx.coroutines.Job r8 = (kotlinx.coroutines.Job) r8
|
|
if (r8 == 0) goto L5c
|
|
androidx.compose.material3.internal.AnchoredDragFinishedSignal r2 = new androidx.compose.material3.internal.AnchoredDragFinishedSignal
|
|
r2.<init>()
|
|
r8.cancel(r2)
|
|
r0.L$0 = r6
|
|
r0.L$1 = r7
|
|
r0.L$2 = r8
|
|
r0.label = r3
|
|
java.lang.Object r8 = r8.join(r0)
|
|
if (r8 != r1) goto L5c
|
|
return r1
|
|
L5c:
|
|
kotlin.jvm.internal.Ref$ObjectRef<kotlinx.coroutines.Job> r8 = r6.$previousDrag
|
|
kotlinx.coroutines.CoroutineScope r0 = r6.$$this$coroutineScope
|
|
kotlinx.coroutines.CoroutineStart r2 = kotlinx.coroutines.CoroutineStart.UNDISPATCHED
|
|
androidx.compose.material3.internal.AnchoredDraggableKt$restartable$2$1$2 r3 = new androidx.compose.material3.internal.AnchoredDraggableKt$restartable$2$1$2
|
|
kotlin.jvm.functions.Function2<I, kotlin.coroutines.Continuation<? super kotlin.Unit>, java.lang.Object> r6 = r6.$block
|
|
r1 = 0
|
|
r3.<init>(r6, r7, r0, r1)
|
|
r4 = 1
|
|
r5 = 0
|
|
kotlinx.coroutines.Job r6 = kotlinx.coroutines.BuildersKt.launch$default(r0, r1, r2, r3, r4, r5)
|
|
r8.element = r6
|
|
kotlin.Unit r6 = kotlin.Unit.INSTANCE
|
|
return r6
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: androidx.compose.material3.internal.AnchoredDraggableKt$restartable$2.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 AnchoredDraggableKt$restartable$2(Function0<? extends I> function0, Function2<? super I, ? super Continuation<? super Unit>, ? extends Object> function2, Continuation<? super AnchoredDraggableKt$restartable$2> continuation) {
|
|
super(2, continuation);
|
|
this.$inputs = function0;
|
|
this.$block = function2;
|
|
}
|
|
|
|
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
|
@NotNull
|
|
public final Continuation<Unit> create(@Nullable Object obj, @NotNull Continuation<?> continuation) {
|
|
AnchoredDraggableKt$restartable$2 anchoredDraggableKt$restartable$2 = new AnchoredDraggableKt$restartable$2(this.$inputs, this.$block, continuation);
|
|
anchoredDraggableKt$restartable$2.L$0 = obj;
|
|
return anchoredDraggableKt$restartable$2;
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function2
|
|
@Nullable
|
|
public final Object invoke(@NotNull CoroutineScope coroutineScope, @Nullable Continuation<? super Unit> continuation) {
|
|
return ((AnchoredDraggableKt$restartable$2) 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);
|
|
CoroutineScope coroutineScope = (CoroutineScope) this.L$0;
|
|
Ref.ObjectRef objectRef = new Ref.ObjectRef();
|
|
Flow snapshotFlow = SnapshotStateKt.snapshotFlow(this.$inputs);
|
|
AnonymousClass1 anonymousClass1 = new AnonymousClass1(objectRef, coroutineScope, this.$block);
|
|
this.label = 1;
|
|
if (snapshotFlow.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;
|
|
}
|
|
}
|