Rabbit-R1/android (non root)/java/sources/androidx/compose/material3/SwipeableState$snapTo$2.java
2024-05-21 17:08:36 -04:00

97 lines
4.6 KiB
Java

package androidx.compose.material3;
import androidx.exifinterface.media.ExifInterface;
import java.util.Map;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.coroutines.Continuation;
import kotlinx.coroutines.flow.FlowCollector;
/* JADX INFO: Access modifiers changed from: package-private */
/* JADX INFO: Add missing generic type declarations: [T] */
/* compiled from: Swipeable.kt */
@Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0010$\n\u0002\u0010\u0007\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u00022\u0012\u0010\u0003\u001a\u000e\u0012\u0004\u0012\u00020\u0005\u0012\u0004\u0012\u0002H\u00020\u0004H\u008a@"}, d2 = {"<anonymous>", "", ExifInterface.GPS_DIRECTION_TRUE, "anchors", "", ""}, k = 3, mv = {1, 8, 0}, xi = 48)
/* loaded from: classes.dex */
public final class SwipeableState$snapTo$2<T> implements FlowCollector<Map<Float, ? extends T>> {
final /* synthetic */ T $targetValue;
final /* synthetic */ SwipeableState<T> this$0;
/* JADX INFO: Access modifiers changed from: package-private */
public SwipeableState$snapTo$2(T t, SwipeableState<T> swipeableState) {
this.$targetValue = t;
this.this$0 = swipeableState;
}
@Override // kotlinx.coroutines.flow.FlowCollector
public /* bridge */ /* synthetic */ Object emit(Object obj, Continuation continuation) {
return emit((Map) obj, (Continuation<? super Unit>) continuation);
}
/* JADX WARN: Removed duplicated region for block: B:15:0x0036 */
/* JADX WARN: Removed duplicated region for block: B:8:0x0024 */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final java.lang.Object emit(java.util.Map<java.lang.Float, ? extends T> r5, kotlin.coroutines.Continuation<? super kotlin.Unit> r6) {
/*
r4 = this;
boolean r0 = r6 instanceof androidx.compose.material3.SwipeableState$snapTo$2$emit$1
if (r0 == 0) goto L14
r0 = r6
androidx.compose.material3.SwipeableState$snapTo$2$emit$1 r0 = (androidx.compose.material3.SwipeableState$snapTo$2$emit$1) r0
int r1 = r0.label
r2 = -2147483648(0xffffffff80000000, float:-0.0)
r1 = r1 & r2
if (r1 == 0) goto L14
int r6 = r0.label
int r6 = r6 - r2
r0.label = r6
goto L19
L14:
androidx.compose.material3.SwipeableState$snapTo$2$emit$1 r0 = new androidx.compose.material3.SwipeableState$snapTo$2$emit$1
r0.<init>(r4, r6)
L19:
java.lang.Object r6 = 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 r4 = r0.L$0
androidx.compose.material3.SwipeableState$snapTo$2 r4 = (androidx.compose.material3.SwipeableState$snapTo$2) r4
kotlin.ResultKt.throwOnFailure(r6)
goto L52
L2e:
java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
r4.<init>(r5)
throw r4
L36:
kotlin.ResultKt.throwOnFailure(r6)
T r6 = r4.$targetValue
java.lang.Float r5 = androidx.compose.material3.SwipeableKt.access$getOffset(r5, r6)
if (r5 == 0) goto L5c
androidx.compose.material3.SwipeableState<T> r6 = r4.this$0
float r5 = r5.floatValue()
r0.L$0 = r4
r0.label = r3
java.lang.Object r5 = androidx.compose.material3.SwipeableState.access$snapInternalToOffset(r6, r5, r0)
if (r5 != r1) goto L52
return r1
L52:
androidx.compose.material3.SwipeableState<T> r5 = r4.this$0
T r4 = r4.$targetValue
androidx.compose.material3.SwipeableState.access$setCurrentValue(r5, r4)
kotlin.Unit r4 = kotlin.Unit.INSTANCE
return r4
L5c:
java.lang.IllegalArgumentException r4 = new java.lang.IllegalArgumentException
java.lang.String r5 = "The target value must have an associated anchor."
java.lang.String r5 = r5.toString()
r4.<init>(r5)
throw r4
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.compose.material3.SwipeableState$snapTo$2.emit(java.util.Map, kotlin.coroutines.Continuation):java.lang.Object");
}
}