mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
272 lines
16 KiB
Java
272 lines
16 KiB
Java
package androidx.compose.foundation.gestures;
|
|
|
|
import androidx.compose.ui.input.pointer.AwaitPointerEventScope;
|
|
import androidx.compose.ui.input.pointer.PointerInputChange;
|
|
import androidx.compose.ui.input.pointer.PointerInputScope;
|
|
import java.util.List;
|
|
import kotlin.Metadata;
|
|
import kotlin.Unit;
|
|
import kotlin.coroutines.Continuation;
|
|
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
|
import kotlin.jvm.functions.Function2;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* compiled from: ForEachGesture.kt */
|
|
@Metadata(d1 = {"\u0000.\n\u0000\n\u0002\u0010\u000b\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\u001a\f\u0010\u0000\u001a\u00020\u0001*\u00020\u0002H\u0000\u001a\u0015\u0010\u0003\u001a\u00020\u0004*\u00020\u0002H\u0080@ø\u0001\u0000¢\u0006\u0002\u0010\u0005\u001a\u0015\u0010\u0003\u001a\u00020\u0004*\u00020\u0006H\u0080@ø\u0001\u0000¢\u0006\u0002\u0010\u0007\u001a>\u0010\b\u001a\u00020\u0004*\u00020\u00062'\u0010\t\u001a#\b\u0001\u0012\u0004\u0012\u00020\u0002\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00040\u000b\u0012\u0006\u0012\u0004\u0018\u00010\f0\n¢\u0006\u0002\b\rH\u0086@ø\u0001\u0000¢\u0006\u0002\u0010\u000e\u001a>\u0010\u000f\u001a\u00020\u0004*\u00020\u00062'\u0010\t\u001a#\b\u0001\u0012\u0004\u0012\u00020\u0006\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00040\u000b\u0012\u0006\u0012\u0004\u0018\u00010\f0\n¢\u0006\u0002\b\rH\u0087@ø\u0001\u0000¢\u0006\u0002\u0010\u000e\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u0010"}, d2 = {"allPointersUp", "", "Landroidx/compose/ui/input/pointer/AwaitPointerEventScope;", "awaitAllPointersUp", "", "(Landroidx/compose/ui/input/pointer/AwaitPointerEventScope;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "Landroidx/compose/ui/input/pointer/PointerInputScope;", "(Landroidx/compose/ui/input/pointer/PointerInputScope;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "awaitEachGesture", "block", "Lkotlin/Function2;", "Lkotlin/coroutines/Continuation;", "", "Lkotlin/ExtensionFunctionType;", "(Landroidx/compose/ui/input/pointer/PointerInputScope;Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "forEachGesture", "foundation_release"}, k = 2, mv = {1, 8, 0}, xi = 48)
|
|
/* loaded from: classes.dex */
|
|
public final class ForEachGestureKt {
|
|
/* JADX WARN: Can't wrap try/catch for region: R(6:1|(2:3|(4:5|6|7|(1:(4:(1:(1:12)(2:37|38))(2:39|40)|13|14|(3:19|20|(1:22)(6:23|24|(1:26)|13|14|(2:16|17)(0)))(0))(7:41|42|24|(0)|13|14|(0)(0)))(3:43|14|(0)(0))))|45|6|7|(0)(0)) */
|
|
/* JADX WARN: Code restructure failed: missing block: B:44:0x0066, code lost:
|
|
|
|
r10 = e;
|
|
*/
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* JADX WARN: Removed duplicated region for block: B:16:0x00b0 */
|
|
/* JADX WARN: Removed duplicated region for block: B:19:0x0075 A[EXC_TOP_SPLITTER, SYNTHETIC] */
|
|
/* JADX WARN: Removed duplicated region for block: B:26:0x0094 A[RETURN] */
|
|
/* JADX WARN: Removed duplicated region for block: B:33:0x00a0 */
|
|
/* JADX WARN: Removed duplicated region for block: B:36:0x00af */
|
|
/* JADX WARN: Removed duplicated region for block: B:43:0x0068 */
|
|
/* JADX WARN: Removed duplicated region for block: B:9:0x0026 */
|
|
/* JADX WARN: Type inference failed for: r2v0, types: [int] */
|
|
/* JADX WARN: Type inference failed for: r2v1 */
|
|
/* JADX WARN: Type inference failed for: r2v2, types: [androidx.compose.ui.input.pointer.PointerInputScope, java.lang.Object] */
|
|
/* JADX WARN: Type inference failed for: r2v20 */
|
|
/* JADX WARN: Type inference failed for: r2v3, types: [androidx.compose.ui.input.pointer.PointerInputScope, java.lang.Object] */
|
|
/* JADX WARN: Type inference failed for: r2v6 */
|
|
/* JADX WARN: Type inference failed for: r2v8 */
|
|
/* JADX WARN: Type inference failed for: r8v0, types: [androidx.compose.ui.input.pointer.PointerInputScope] */
|
|
/* JADX WARN: Type inference failed for: r8v1 */
|
|
/* JADX WARN: Type inference failed for: r8v2, types: [java.lang.Object, kotlin.coroutines.CoroutineContext] */
|
|
/* JADX WARN: Type inference failed for: r8v22 */
|
|
/* JADX WARN: Type inference failed for: r8v3, types: [java.lang.Object] */
|
|
/* JADX WARN: Type inference failed for: r8v5 */
|
|
/* JADX WARN: Type inference failed for: r8v6 */
|
|
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:25:0x0092 -> B:13:0x0053). Please report as a decompilation issue!!! */
|
|
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:34:0x00ac -> B:13:0x0053). Please report as a decompilation issue!!! */
|
|
@kotlin.Deprecated(message = "Use awaitEachGesture instead. forEachGesture() can drop events between gestures.", replaceWith = @kotlin.ReplaceWith(expression = "awaitEachGesture(block)", imports = {}))
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public static final java.lang.Object forEachGesture(androidx.compose.ui.input.pointer.PointerInputScope r8, kotlin.jvm.functions.Function2<? super androidx.compose.ui.input.pointer.PointerInputScope, ? super kotlin.coroutines.Continuation<? super kotlin.Unit>, ? extends java.lang.Object> r9, kotlin.coroutines.Continuation<? super kotlin.Unit> r10) {
|
|
/*
|
|
boolean r0 = r10 instanceof androidx.compose.foundation.gestures.ForEachGestureKt$forEachGesture$1
|
|
if (r0 == 0) goto L14
|
|
r0 = r10
|
|
androidx.compose.foundation.gestures.ForEachGestureKt$forEachGesture$1 r0 = (androidx.compose.foundation.gestures.ForEachGestureKt$forEachGesture$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.ForEachGestureKt$forEachGesture$1 r0 = new androidx.compose.foundation.gestures.ForEachGestureKt$forEachGesture$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
|
|
if (r2 == 0) goto L68
|
|
if (r2 == r5) goto L56
|
|
if (r2 == r4) goto L44
|
|
if (r2 != r3) goto L3c
|
|
java.lang.Object r8 = r0.L$2
|
|
kotlin.coroutines.CoroutineContext r8 = (kotlin.coroutines.CoroutineContext) r8
|
|
java.lang.Object r9 = r0.L$1
|
|
kotlin.jvm.functions.Function2 r9 = (kotlin.jvm.functions.Function2) r9
|
|
java.lang.Object r2 = r0.L$0
|
|
androidx.compose.ui.input.pointer.PointerInputScope r2 = (androidx.compose.ui.input.pointer.PointerInputScope) r2
|
|
kotlin.ResultKt.throwOnFailure(r10)
|
|
goto L53
|
|
L3c:
|
|
java.lang.IllegalStateException r8 = new java.lang.IllegalStateException
|
|
java.lang.String r9 = "call to 'resume' before 'invoke' with coroutine"
|
|
r8.<init>(r9)
|
|
throw r8
|
|
L44:
|
|
java.lang.Object r8 = r0.L$2
|
|
kotlin.coroutines.CoroutineContext r8 = (kotlin.coroutines.CoroutineContext) r8
|
|
java.lang.Object r9 = r0.L$1
|
|
kotlin.jvm.functions.Function2 r9 = (kotlin.jvm.functions.Function2) r9
|
|
java.lang.Object r2 = r0.L$0
|
|
androidx.compose.ui.input.pointer.PointerInputScope r2 = (androidx.compose.ui.input.pointer.PointerInputScope) r2
|
|
kotlin.ResultKt.throwOnFailure(r10) // Catch: java.util.concurrent.CancellationException -> L66
|
|
L53:
|
|
r10 = r8
|
|
r8 = r2
|
|
goto L6f
|
|
L56:
|
|
java.lang.Object r8 = r0.L$2
|
|
kotlin.coroutines.CoroutineContext r8 = (kotlin.coroutines.CoroutineContext) r8
|
|
java.lang.Object r9 = r0.L$1
|
|
kotlin.jvm.functions.Function2 r9 = (kotlin.jvm.functions.Function2) r9
|
|
java.lang.Object r2 = r0.L$0
|
|
androidx.compose.ui.input.pointer.PointerInputScope r2 = (androidx.compose.ui.input.pointer.PointerInputScope) r2
|
|
kotlin.ResultKt.throwOnFailure(r10) // Catch: java.util.concurrent.CancellationException -> L66
|
|
goto L86
|
|
L66:
|
|
r10 = move-exception
|
|
goto L9a
|
|
L68:
|
|
kotlin.ResultKt.throwOnFailure(r10)
|
|
kotlin.coroutines.CoroutineContext r10 = r0.get$context()
|
|
L6f:
|
|
boolean r2 = kotlinx.coroutines.JobKt.isActive(r10)
|
|
if (r2 == 0) goto Lb0
|
|
r0.L$0 = r8 // Catch: java.util.concurrent.CancellationException -> L95
|
|
r0.L$1 = r9 // Catch: java.util.concurrent.CancellationException -> L95
|
|
r0.L$2 = r10 // Catch: java.util.concurrent.CancellationException -> L95
|
|
r0.label = r5 // Catch: java.util.concurrent.CancellationException -> L95
|
|
java.lang.Object r2 = r9.invoke(r8, r0) // Catch: java.util.concurrent.CancellationException -> L95
|
|
if (r2 != r1) goto L84
|
|
return r1
|
|
L84:
|
|
r2 = r8
|
|
r8 = r10
|
|
L86:
|
|
r0.L$0 = r2 // Catch: java.util.concurrent.CancellationException -> L66
|
|
r0.L$1 = r9 // Catch: java.util.concurrent.CancellationException -> L66
|
|
r0.L$2 = r8 // Catch: java.util.concurrent.CancellationException -> L66
|
|
r0.label = r4 // Catch: java.util.concurrent.CancellationException -> L66
|
|
java.lang.Object r10 = awaitAllPointersUp(r2, r0) // Catch: java.util.concurrent.CancellationException -> L66
|
|
if (r10 != r1) goto L53
|
|
return r1
|
|
L95:
|
|
r2 = move-exception
|
|
r7 = r2
|
|
r2 = r8
|
|
r8 = r10
|
|
r10 = r7
|
|
L9a:
|
|
boolean r6 = kotlinx.coroutines.JobKt.isActive(r8)
|
|
if (r6 == 0) goto Laf
|
|
r0.L$0 = r2
|
|
r0.L$1 = r9
|
|
r0.L$2 = r8
|
|
r0.label = r3
|
|
java.lang.Object r10 = awaitAllPointersUp(r2, r0)
|
|
if (r10 != r1) goto L53
|
|
return r1
|
|
Laf:
|
|
throw r10
|
|
Lb0:
|
|
kotlin.Unit r8 = kotlin.Unit.INSTANCE
|
|
return r8
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: androidx.compose.foundation.gestures.ForEachGestureKt.forEachGesture(androidx.compose.ui.input.pointer.PointerInputScope, kotlin.jvm.functions.Function2, kotlin.coroutines.Continuation):java.lang.Object");
|
|
}
|
|
|
|
public static final boolean allPointersUp(AwaitPointerEventScope awaitPointerEventScope) {
|
|
Intrinsics.checkNotNullParameter(awaitPointerEventScope, "<this>");
|
|
List<PointerInputChange> changes = awaitPointerEventScope.getCurrentEvent().getChanges();
|
|
int size = changes.size();
|
|
boolean z = false;
|
|
int i = 0;
|
|
while (true) {
|
|
if (i >= size) {
|
|
break;
|
|
}
|
|
if (changes.get(i).getPressed()) {
|
|
z = true;
|
|
break;
|
|
}
|
|
i++;
|
|
}
|
|
return !z;
|
|
}
|
|
|
|
public static final Object awaitAllPointersUp(PointerInputScope pointerInputScope, Continuation<? super Unit> continuation) {
|
|
Object awaitPointerEventScope = pointerInputScope.awaitPointerEventScope(new ForEachGestureKt$awaitAllPointersUp$2(null), continuation);
|
|
return awaitPointerEventScope == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? awaitPointerEventScope : Unit.INSTANCE;
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:26:0x003d, code lost:
|
|
|
|
if (allPointersUp(r6) == false) goto L16;
|
|
*/
|
|
/* JADX WARN: Removed duplicated region for block: B:12:0x0059 */
|
|
/* JADX WARN: Removed duplicated region for block: B:25:0x0036 */
|
|
/* JADX WARN: Removed duplicated region for block: B:8:0x0024 */
|
|
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:16:0x0049 -> B:10:0x004c). 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 java.lang.Object awaitAllPointersUp(androidx.compose.ui.input.pointer.AwaitPointerEventScope r6, kotlin.coroutines.Continuation<? super kotlin.Unit> r7) {
|
|
/*
|
|
boolean r0 = r7 instanceof androidx.compose.foundation.gestures.ForEachGestureKt$awaitAllPointersUp$3
|
|
if (r0 == 0) goto L14
|
|
r0 = r7
|
|
androidx.compose.foundation.gestures.ForEachGestureKt$awaitAllPointersUp$3 r0 = (androidx.compose.foundation.gestures.ForEachGestureKt$awaitAllPointersUp$3) 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:
|
|
androidx.compose.foundation.gestures.ForEachGestureKt$awaitAllPointersUp$3 r0 = new androidx.compose.foundation.gestures.ForEachGestureKt$awaitAllPointersUp$3
|
|
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 L36
|
|
if (r2 != r3) goto L2e
|
|
java.lang.Object r6 = r0.L$0
|
|
androidx.compose.ui.input.pointer.AwaitPointerEventScope r6 = (androidx.compose.ui.input.pointer.AwaitPointerEventScope) r6
|
|
kotlin.ResultKt.throwOnFailure(r7)
|
|
goto L4c
|
|
L2e:
|
|
java.lang.IllegalStateException r6 = new java.lang.IllegalStateException
|
|
java.lang.String r7 = "call to 'resume' before 'invoke' with coroutine"
|
|
r6.<init>(r7)
|
|
throw r6
|
|
L36:
|
|
kotlin.ResultKt.throwOnFailure(r7)
|
|
boolean r7 = allPointersUp(r6)
|
|
if (r7 != 0) goto L69
|
|
L3f:
|
|
androidx.compose.ui.input.pointer.PointerEventPass r7 = androidx.compose.ui.input.pointer.PointerEventPass.Final
|
|
r0.L$0 = r6
|
|
r0.label = r3
|
|
java.lang.Object r7 = r6.awaitPointerEvent(r7, r0)
|
|
if (r7 != r1) goto L4c
|
|
return r1
|
|
L4c:
|
|
androidx.compose.ui.input.pointer.PointerEvent r7 = (androidx.compose.ui.input.pointer.PointerEvent) r7
|
|
java.util.List r7 = r7.getChanges()
|
|
int r2 = r7.size()
|
|
r4 = 0
|
|
L57:
|
|
if (r4 >= r2) goto L69
|
|
java.lang.Object r5 = r7.get(r4)
|
|
androidx.compose.ui.input.pointer.PointerInputChange r5 = (androidx.compose.ui.input.pointer.PointerInputChange) r5
|
|
boolean r5 = r5.getPressed()
|
|
if (r5 == 0) goto L66
|
|
goto L3f
|
|
L66:
|
|
int r4 = r4 + 1
|
|
goto L57
|
|
L69:
|
|
kotlin.Unit r6 = kotlin.Unit.INSTANCE
|
|
return r6
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: androidx.compose.foundation.gestures.ForEachGestureKt.awaitAllPointersUp(androidx.compose.ui.input.pointer.AwaitPointerEventScope, kotlin.coroutines.Continuation):java.lang.Object");
|
|
}
|
|
|
|
public static final Object awaitEachGesture(PointerInputScope pointerInputScope, Function2<? super AwaitPointerEventScope, ? super Continuation<? super Unit>, ? extends Object> function2, Continuation<? super Unit> continuation) {
|
|
Object awaitPointerEventScope = pointerInputScope.awaitPointerEventScope(new ForEachGestureKt$awaitEachGesture$2(continuation.get$context(), function2, null), continuation);
|
|
return awaitPointerEventScope == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? awaitPointerEventScope : Unit.INSTANCE;
|
|
}
|
|
}
|