Rabbit-R1/original r1/java/sources/androidx/compose/foundation/gestures/ScrollExtensionsKt.java
2024-05-21 17:08:36 -04:00

173 lines
9.5 KiB
Java

package androidx.compose.foundation.gestures;
import androidx.compose.animation.core.AnimationSpec;
import androidx.compose.animation.core.AnimationSpecKt;
import androidx.compose.foundation.MutatePriority;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.intrinsics.IntrinsicsKt;
/* compiled from: ScrollExtensions.kt */
@Metadata(d1 = {"\u0000$\n\u0000\n\u0002\u0010\u0007\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u001a-\u0010\u0000\u001a\u00020\u0001*\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u00012\u000e\b\u0002\u0010\u0004\u001a\b\u0012\u0004\u0012\u00020\u00010\u0005H\u0086@ø\u0001\u0000¢\u0006\u0002\u0010\u0006\u001a\u001d\u0010\u0007\u001a\u00020\u0001*\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u0001H\u0086@ø\u0001\u0000¢\u0006\u0002\u0010\b\u001a\u001f\u0010\t\u001a\u00020\n*\u00020\u00022\b\b\u0002\u0010\u000b\u001a\u00020\fH\u0086@ø\u0001\u0000¢\u0006\u0002\u0010\r\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u000e"}, d2 = {"animateScrollBy", "", "Landroidx/compose/foundation/gestures/ScrollableState;", "value", "animationSpec", "Landroidx/compose/animation/core/AnimationSpec;", "(Landroidx/compose/foundation/gestures/ScrollableState;FLandroidx/compose/animation/core/AnimationSpec;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "scrollBy", "(Landroidx/compose/foundation/gestures/ScrollableState;FLkotlin/coroutines/Continuation;)Ljava/lang/Object;", "stopScroll", "", "scrollPriority", "Landroidx/compose/foundation/MutatePriority;", "(Landroidx/compose/foundation/gestures/ScrollableState;Landroidx/compose/foundation/MutatePriority;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "foundation_release"}, k = 2, mv = {1, 8, 0}, xi = 48)
/* loaded from: classes.dex */
public final class ScrollExtensionsKt {
/* JADX WARN: Removed duplicated region for block: B:15:0x0037 */
/* JADX WARN: Removed duplicated region for block: B:8:0x0025 */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public static final java.lang.Object animateScrollBy(androidx.compose.foundation.gestures.ScrollableState r7, float r8, androidx.compose.animation.core.AnimationSpec<java.lang.Float> r9, kotlin.coroutines.Continuation<? super java.lang.Float> r10) {
/*
boolean r0 = r10 instanceof androidx.compose.foundation.gestures.ScrollExtensionsKt$animateScrollBy$1
if (r0 == 0) goto L14
r0 = r10
androidx.compose.foundation.gestures.ScrollExtensionsKt$animateScrollBy$1 r0 = (androidx.compose.foundation.gestures.ScrollExtensionsKt$animateScrollBy$1) 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:
androidx.compose.foundation.gestures.ScrollExtensionsKt$animateScrollBy$1 r0 = new androidx.compose.foundation.gestures.ScrollExtensionsKt$animateScrollBy$1
r0.<init>(r10)
L19:
r4 = r0
java.lang.Object r10 = r4.result
java.lang.Object r0 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
int r1 = r4.label
r2 = 1
if (r1 == 0) goto L37
if (r1 != r2) goto L2f
java.lang.Object r7 = r4.L$0
kotlin.jvm.internal.Ref$FloatRef r7 = (kotlin.jvm.internal.Ref.FloatRef) r7
kotlin.ResultKt.throwOnFailure(r10)
goto L5a
L2f:
java.lang.IllegalStateException r7 = new java.lang.IllegalStateException
java.lang.String r8 = "call to 'resume' before 'invoke' with coroutine"
r7.<init>(r8)
throw r7
L37:
kotlin.ResultKt.throwOnFailure(r10)
kotlin.jvm.internal.Ref$FloatRef r10 = new kotlin.jvm.internal.Ref$FloatRef
r10.<init>()
r3 = 0
androidx.compose.foundation.gestures.ScrollExtensionsKt$animateScrollBy$2 r1 = new androidx.compose.foundation.gestures.ScrollExtensionsKt$animateScrollBy$2
r5 = 0
r1.<init>(r8, r9, r10, r5)
r8 = r1
kotlin.jvm.functions.Function2 r8 = (kotlin.jvm.functions.Function2) r8
r5 = 1
r6 = 0
r4.L$0 = r10
r4.label = r2
r1 = r7
r2 = r3
r3 = r8
java.lang.Object r7 = androidx.compose.foundation.gestures.ScrollableState.scroll$default(r1, r2, r3, r4, r5, r6)
if (r7 != r0) goto L59
return r0
L59:
r7 = r10
L5a:
float r7 = r7.element
java.lang.Float r7 = kotlin.coroutines.jvm.internal.Boxing.boxFloat(r7)
return r7
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.compose.foundation.gestures.ScrollExtensionsKt.animateScrollBy(androidx.compose.foundation.gestures.ScrollableState, float, androidx.compose.animation.core.AnimationSpec, kotlin.coroutines.Continuation):java.lang.Object");
}
public static /* synthetic */ Object animateScrollBy$default(ScrollableState scrollableState, float f, AnimationSpec animationSpec, Continuation continuation, int i, Object obj) {
if ((i & 2) != 0) {
animationSpec = AnimationSpecKt.spring$default(0.0f, 0.0f, null, 7, null);
}
return animateScrollBy(scrollableState, f, animationSpec, continuation);
}
/* JADX WARN: Removed duplicated region for block: B:15:0x0037 */
/* JADX WARN: Removed duplicated region for block: B:8:0x0025 */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public static final java.lang.Object scrollBy(androidx.compose.foundation.gestures.ScrollableState r7, float r8, kotlin.coroutines.Continuation<? super java.lang.Float> r9) {
/*
boolean r0 = r9 instanceof androidx.compose.foundation.gestures.ScrollExtensionsKt$scrollBy$1
if (r0 == 0) goto L14
r0 = r9
androidx.compose.foundation.gestures.ScrollExtensionsKt$scrollBy$1 r0 = (androidx.compose.foundation.gestures.ScrollExtensionsKt$scrollBy$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:
androidx.compose.foundation.gestures.ScrollExtensionsKt$scrollBy$1 r0 = new androidx.compose.foundation.gestures.ScrollExtensionsKt$scrollBy$1
r0.<init>(r9)
L19:
r4 = r0
java.lang.Object r9 = r4.result
java.lang.Object r0 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
int r1 = r4.label
r2 = 1
if (r1 == 0) goto L37
if (r1 != r2) goto L2f
java.lang.Object r7 = r4.L$0
kotlin.jvm.internal.Ref$FloatRef r7 = (kotlin.jvm.internal.Ref.FloatRef) r7
kotlin.ResultKt.throwOnFailure(r9)
goto L5a
L2f:
java.lang.IllegalStateException r7 = new java.lang.IllegalStateException
java.lang.String r8 = "call to 'resume' before 'invoke' with coroutine"
r7.<init>(r8)
throw r7
L37:
kotlin.ResultKt.throwOnFailure(r9)
kotlin.jvm.internal.Ref$FloatRef r9 = new kotlin.jvm.internal.Ref$FloatRef
r9.<init>()
r3 = 0
androidx.compose.foundation.gestures.ScrollExtensionsKt$scrollBy$2 r1 = new androidx.compose.foundation.gestures.ScrollExtensionsKt$scrollBy$2
r5 = 0
r1.<init>(r9, r8, r5)
r8 = r1
kotlin.jvm.functions.Function2 r8 = (kotlin.jvm.functions.Function2) r8
r5 = 1
r6 = 0
r4.L$0 = r9
r4.label = r2
r1 = r7
r2 = r3
r3 = r8
java.lang.Object r7 = androidx.compose.foundation.gestures.ScrollableState.scroll$default(r1, r2, r3, r4, r5, r6)
if (r7 != r0) goto L59
return r0
L59:
r7 = r9
L5a:
float r7 = r7.element
java.lang.Float r7 = kotlin.coroutines.jvm.internal.Boxing.boxFloat(r7)
return r7
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.compose.foundation.gestures.ScrollExtensionsKt.scrollBy(androidx.compose.foundation.gestures.ScrollableState, float, kotlin.coroutines.Continuation):java.lang.Object");
}
public static /* synthetic */ Object stopScroll$default(ScrollableState scrollableState, MutatePriority mutatePriority, Continuation continuation, int i, Object obj) {
if ((i & 1) != 0) {
mutatePriority = MutatePriority.Default;
}
return stopScroll(scrollableState, mutatePriority, continuation);
}
public static final Object stopScroll(ScrollableState scrollableState, MutatePriority mutatePriority, Continuation<? super Unit> continuation) {
Object scroll = scrollableState.scroll(mutatePriority, new ScrollExtensionsKt$stopScroll$2(null), continuation);
return scroll == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? scroll : Unit.INSTANCE;
}
}