mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
139 lines
9.5 KiB
Java
139 lines
9.5 KiB
Java
package androidx.compose.foundation.lazy.layout;
|
|
|
|
import androidx.compose.runtime.Composer;
|
|
import androidx.compose.runtime.ComposerKt;
|
|
import androidx.compose.runtime.RecomposeScopeImplKt;
|
|
import androidx.compose.runtime.ScopeUpdateScope;
|
|
import androidx.compose.ui.Modifier;
|
|
import androidx.compose.ui.layout.MeasureResult;
|
|
import androidx.compose.ui.unit.Constraints;
|
|
import kotlin.Metadata;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function0;
|
|
import kotlin.jvm.functions.Function2;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* compiled from: LazyLayout.kt */
|
|
@Metadata(d1 = {"\u0000<\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\u001aS\u0010\u0002\u001a\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00020\u00060\u00052\b\b\u0002\u0010\u0007\u001a\u00020\b2\n\b\u0002\u0010\t\u001a\u0004\u0018\u00010\n2\u001d\u0010\u000b\u001a\u0019\u0012\u0004\u0012\u00020\r\u0012\u0004\u0012\u00020\u000e\u0012\u0004\u0012\u00020\u000f0\f¢\u0006\u0002\b\u0010H\u0001ø\u0001\u0000¢\u0006\u0002\u0010\u0011\u001aM\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u00062\b\b\u0002\u0010\u0007\u001a\u00020\b2\n\b\u0002\u0010\t\u001a\u0004\u0018\u00010\n2\u001d\u0010\u000b\u001a\u0019\u0012\u0004\u0012\u00020\r\u0012\u0004\u0012\u00020\u000e\u0012\u0004\u0012\u00020\u000f0\f¢\u0006\u0002\b\u0010H\u0007ø\u0001\u0000¢\u0006\u0002\u0010\u0012\"\u000e\u0010\u0000\u001a\u00020\u0001X\u0082T¢\u0006\u0002\n\u0000\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u0013"}, d2 = {"MaxItemsToRetainForReuse", "", "LazyLayout", "", "itemProvider", "Lkotlin/Function0;", "Landroidx/compose/foundation/lazy/layout/LazyLayoutItemProvider;", "modifier", "Landroidx/compose/ui/Modifier;", "prefetchState", "Landroidx/compose/foundation/lazy/layout/LazyLayoutPrefetchState;", "measurePolicy", "Lkotlin/Function2;", "Landroidx/compose/foundation/lazy/layout/LazyLayoutMeasureScope;", "Landroidx/compose/ui/unit/Constraints;", "Landroidx/compose/ui/layout/MeasureResult;", "Lkotlin/ExtensionFunctionType;", "(Lkotlin/jvm/functions/Function0;Landroidx/compose/ui/Modifier;Landroidx/compose/foundation/lazy/layout/LazyLayoutPrefetchState;Lkotlin/jvm/functions/Function2;Landroidx/compose/runtime/Composer;II)V", "(Landroidx/compose/foundation/lazy/layout/LazyLayoutItemProvider;Landroidx/compose/ui/Modifier;Landroidx/compose/foundation/lazy/layout/LazyLayoutPrefetchState;Lkotlin/jvm/functions/Function2;Landroidx/compose/runtime/Composer;II)V", "foundation_release"}, k = 2, mv = {1, 8, 0}, xi = 48)
|
|
/* loaded from: classes.dex */
|
|
public final class LazyLayoutKt {
|
|
private static final int MaxItemsToRetainForReuse = 7;
|
|
|
|
public static final void LazyLayout(final LazyLayoutItemProvider itemProvider, Modifier modifier, LazyLayoutPrefetchState lazyLayoutPrefetchState, final Function2<? super LazyLayoutMeasureScope, ? super Constraints, ? extends MeasureResult> measurePolicy, Composer composer, final int i, final int i2) {
|
|
int i3;
|
|
Intrinsics.checkNotNullParameter(itemProvider, "itemProvider");
|
|
Intrinsics.checkNotNullParameter(measurePolicy, "measurePolicy");
|
|
Composer startRestartGroup = composer.startRestartGroup(852831187);
|
|
ComposerKt.sourceInformation(startRestartGroup, "C(LazyLayout)P(!1,2,3)47@1918L16,47@1907L68:LazyLayout.kt#wow0x6");
|
|
if ((i2 & 1) != 0) {
|
|
i3 = i | 6;
|
|
} else if ((i & 14) == 0) {
|
|
i3 = (startRestartGroup.changed(itemProvider) ? 4 : 2) | i;
|
|
} else {
|
|
i3 = i;
|
|
}
|
|
int i4 = i2 & 2;
|
|
if (i4 != 0) {
|
|
i3 |= 48;
|
|
} else if ((i & 112) == 0) {
|
|
i3 |= startRestartGroup.changed(modifier) ? 32 : 16;
|
|
}
|
|
int i5 = i2 & 4;
|
|
if (i5 != 0) {
|
|
i3 |= 384;
|
|
} else if ((i & 896) == 0) {
|
|
i3 |= startRestartGroup.changed(lazyLayoutPrefetchState) ? 256 : 128;
|
|
}
|
|
if ((i2 & 8) != 0) {
|
|
i3 |= 3072;
|
|
} else if ((i & 7168) == 0) {
|
|
i3 |= startRestartGroup.changedInstance(measurePolicy) ? 2048 : 1024;
|
|
}
|
|
if ((i3 & 5851) != 1170 || !startRestartGroup.getSkipping()) {
|
|
if (i4 != 0) {
|
|
modifier = Modifier.INSTANCE;
|
|
}
|
|
if (i5 != 0) {
|
|
lazyLayoutPrefetchState = null;
|
|
}
|
|
if (ComposerKt.isTraceInProgress()) {
|
|
ComposerKt.traceEventStart(852831187, i3, -1, "androidx.compose.foundation.lazy.layout.LazyLayout (LazyLayout.kt:41)");
|
|
}
|
|
startRestartGroup.startReplaceableGroup(1157296644);
|
|
ComposerKt.sourceInformation(startRestartGroup, "CC(remember)P(1):Composables.kt#9igjgp");
|
|
boolean changed = startRestartGroup.changed(itemProvider);
|
|
Object rememberedValue = startRestartGroup.rememberedValue();
|
|
if (changed || rememberedValue == Composer.INSTANCE.getEmpty()) {
|
|
rememberedValue = (Function0) new Function0<LazyLayoutItemProvider>() { // from class: androidx.compose.foundation.lazy.layout.LazyLayoutKt$LazyLayout$1$1
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
{
|
|
super(0);
|
|
}
|
|
|
|
/* JADX WARN: Can't rename method to resolve collision */
|
|
@Override // kotlin.jvm.functions.Function0
|
|
public final LazyLayoutItemProvider invoke() {
|
|
return LazyLayoutItemProvider.this;
|
|
}
|
|
};
|
|
startRestartGroup.updateRememberedValue(rememberedValue);
|
|
}
|
|
startRestartGroup.endReplaceableGroup();
|
|
LazyLayout((Function0<? extends LazyLayoutItemProvider>) rememberedValue, modifier, lazyLayoutPrefetchState, measurePolicy, startRestartGroup, (i3 & 112) | (i3 & 896) | (i3 & 7168), 0);
|
|
if (ComposerKt.isTraceInProgress()) {
|
|
ComposerKt.traceEventEnd();
|
|
}
|
|
} else {
|
|
startRestartGroup.skipToGroupEnd();
|
|
}
|
|
final Modifier modifier2 = modifier;
|
|
final LazyLayoutPrefetchState lazyLayoutPrefetchState2 = lazyLayoutPrefetchState;
|
|
ScopeUpdateScope endRestartGroup = startRestartGroup.endRestartGroup();
|
|
if (endRestartGroup == null) {
|
|
return;
|
|
}
|
|
endRestartGroup.updateScope(new Function2<Composer, Integer, Unit>() { // from class: androidx.compose.foundation.lazy.layout.LazyLayoutKt$LazyLayout$2
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
{
|
|
super(2);
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function2
|
|
public /* bridge */ /* synthetic */ Unit invoke(Composer composer2, Integer num) {
|
|
invoke(composer2, num.intValue());
|
|
return Unit.INSTANCE;
|
|
}
|
|
|
|
public final void invoke(Composer composer2, int i6) {
|
|
LazyLayoutKt.LazyLayout(LazyLayoutItemProvider.this, modifier2, lazyLayoutPrefetchState2, measurePolicy, composer2, RecomposeScopeImplKt.updateChangedFlags(i | 1), i2);
|
|
}
|
|
});
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:10:0x0052 */
|
|
/* JADX WARN: Removed duplicated region for block: B:14:0x006e */
|
|
/* JADX WARN: Removed duplicated region for block: B:17:0x0088 */
|
|
/* JADX WARN: Removed duplicated region for block: B:22:0x00e2 */
|
|
/* JADX WARN: Removed duplicated region for block: B:25:? A[RETURN, SYNTHETIC] */
|
|
/* JADX WARN: Removed duplicated region for block: B:27:0x0097 */
|
|
/* JADX WARN: Removed duplicated region for block: B:29:0x00a0 */
|
|
/* JADX WARN: Removed duplicated region for block: B:32:0x00aa */
|
|
/* JADX WARN: Removed duplicated region for block: B:35:0x00d6 */
|
|
/* JADX WARN: Removed duplicated region for block: B:37:0x00a3 */
|
|
/* JADX WARN: Removed duplicated region for block: B:38:0x009d */
|
|
/* JADX WARN: Removed duplicated region for block: B:39:0x0071 */
|
|
/* JADX WARN: Removed duplicated region for block: B:46:0x0055 */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public static final void LazyLayout(final kotlin.jvm.functions.Function0<? extends androidx.compose.foundation.lazy.layout.LazyLayoutItemProvider> r14, androidx.compose.ui.Modifier r15, androidx.compose.foundation.lazy.layout.LazyLayoutPrefetchState r16, final kotlin.jvm.functions.Function2<? super androidx.compose.foundation.lazy.layout.LazyLayoutMeasureScope, ? super androidx.compose.ui.unit.Constraints, ? extends androidx.compose.ui.layout.MeasureResult> r17, androidx.compose.runtime.Composer r18, final int r19, final int r20) {
|
|
/*
|
|
Method dump skipped, instructions count: 245
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: androidx.compose.foundation.lazy.layout.LazyLayoutKt.LazyLayout(kotlin.jvm.functions.Function0, androidx.compose.ui.Modifier, androidx.compose.foundation.lazy.layout.LazyLayoutPrefetchState, kotlin.jvm.functions.Function2, androidx.compose.runtime.Composer, int, int):void");
|
|
}
|
|
}
|