Rabbit-R1/switch port/java/sources/androidx/compose/ui/layout/LayoutKt.java
2024-05-21 17:08:36 -04:00

411 lines
28 KiB
Java

package androidx.compose.ui.layout;
import androidx.compose.runtime.Applier;
import androidx.compose.runtime.ComposablesKt;
import androidx.compose.runtime.Composer;
import androidx.compose.runtime.ComposerKt;
import androidx.compose.runtime.CompositionLocalMap;
import androidx.compose.runtime.RecomposeScopeImplKt;
import androidx.compose.runtime.ScopeUpdateScope;
import androidx.compose.runtime.SkippableUpdater;
import androidx.compose.runtime.Updater;
import androidx.compose.runtime.internal.ComposableLambdaKt;
import androidx.compose.ui.ComposedModifierKt;
import androidx.compose.ui.Modifier;
import androidx.compose.ui.node.ComposeUiNode;
import androidx.compose.ui.node.LayoutNode;
import java.util.List;
import kotlin.Deprecated;
import kotlin.DeprecationLevel;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.functions.Function3;
import kotlin.jvm.internal.Intrinsics;
/* compiled from: Layout.kt */
@Metadata(d1 = {"\u0000D\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\u001a;\u0010\u0000\u001a\u00020\u00012\u0016\u0010\u0002\u001a\u0012\u0012\u0004\u0012\u00020\u00010\u0003¢\u0006\u0002\b\u0004¢\u0006\u0002\b\u00052\b\b\u0002\u0010\u0006\u001a\u00020\u00072\u0006\u0010\b\u001a\u00020\tH\u0087\\u0001\u0000¢\u0006\u0002\u0010\n\u001a \u0010\u0000\u001a\u00020\u00012\b\b\u0002\u0010\u0006\u001a\u00020\u00072\u0006\u0010\b\u001a\u00020\tH\u0087\\u0006\u0002\u0010\u000b\u001a>\u0010\u0000\u001a\u00020\u00012\u001c\u0010\f\u001a\u0018\u0012\u0014\u0012\u0012\u0012\u0004\u0012\u00020\u00010\u0003¢\u0006\u0002\b\u0004¢\u0006\u0002\b\u00050\r2\b\b\u0002\u0010\u0006\u001a\u00020\u00072\u0006\u0010\b\u001a\u00020\u000eH\u0087\\u0006\u0002\u0010\u000f\u001a7\u0010\u0010\u001a\u00020\u00012\b\b\u0002\u0010\u0006\u001a\u00020\u00072\u0016\u0010\u0002\u001a\u0012\u0012\u0004\u0012\u00020\u00010\u0003¢\u0006\u0002\b\u0004¢\u0006\u0002\b\u00052\u0006\u0010\b\u001a\u00020\tH\u0007¢\u0006\u0002\u0010\u0011\u001a;\u0010\u0012\u001a\u0012\u0012\u0004\u0012\u00020\u00010\u0003¢\u0006\u0002\b\u0004¢\u0006\u0002\b\u00052\u001c\u0010\f\u001a\u0018\u0012\u0014\u0012\u0012\u0012\u0004\u0012\u00020\u00010\u0003¢\u0006\u0002\b\u0004¢\u0006\u0002\b\u00050\rH\u0001¢\u0006\u0002\u0010\u0013\u001a6\u0010\u0014\u001a\u001e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00170\u0016\u0012\u0004\u0012\u00020\u00010\u0015¢\u0006\u0002\b\u0004¢\u0006\u0002\b\u00182\u0006\u0010\u0006\u001a\u00020\u0007H\u0001ø\u0001\u0001¢\u0006\u0004\b\u0019\u0010\u001a\u001a6\u0010\u001b\u001a\u001e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00170\u0016\u0012\u0004\u0012\u00020\u00010\u0015¢\u0006\u0002\b\u0004¢\u0006\u0002\b\u00182\u0006\u0010\u0006\u001a\u00020\u0007H\u0001ø\u0001\u0001¢\u0006\u0004\b\u0014\u0010\u001a\u0082\u0002\u000b\n\u0005\b\u009920\u0001\n\u0002\b\u0019¨\u0006\u001c"}, d2 = {"Layout", "", "content", "Lkotlin/Function0;", "Landroidx/compose/runtime/Composable;", "Landroidx/compose/ui/UiComposable;", "modifier", "Landroidx/compose/ui/Modifier;", "measurePolicy", "Landroidx/compose/ui/layout/MeasurePolicy;", "(Lkotlin/jvm/functions/Function2;Landroidx/compose/ui/Modifier;Landroidx/compose/ui/layout/MeasurePolicy;Landroidx/compose/runtime/Composer;II)V", "(Landroidx/compose/ui/Modifier;Landroidx/compose/ui/layout/MeasurePolicy;Landroidx/compose/runtime/Composer;II)V", "contents", "", "Landroidx/compose/ui/layout/MultiContentMeasurePolicy;", "(Ljava/util/List;Landroidx/compose/ui/Modifier;Landroidx/compose/ui/layout/MultiContentMeasurePolicy;Landroidx/compose/runtime/Composer;II)V", "MultiMeasureLayout", "(Landroidx/compose/ui/Modifier;Lkotlin/jvm/functions/Function2;Landroidx/compose/ui/layout/MeasurePolicy;Landroidx/compose/runtime/Composer;II)V", "combineAsVirtualLayouts", "(Ljava/util/List;)Lkotlin/jvm/functions/Function2;", "materializerOf", "Lkotlin/Function1;", "Landroidx/compose/runtime/SkippableUpdater;", "Landroidx/compose/ui/node/ComposeUiNode;", "Lkotlin/ExtensionFunctionType;", "modifierMaterializerOf", "(Landroidx/compose/ui/Modifier;)Lkotlin/jvm/functions/Function3;", "materializerOfWithCompositionLocalInjection", "ui_release"}, k = 2, mv = {1, 8, 0}, xi = 48)
/* loaded from: classes.dex */
public final class LayoutKt {
public static final void Layout(Function2<? super Composer, ? super Integer, Unit> content, Modifier modifier, MeasurePolicy measurePolicy, Composer composer, int i, int i2) {
Intrinsics.checkNotNullParameter(content, "content");
Intrinsics.checkNotNullParameter(measurePolicy, "measurePolicy");
composer.startReplaceableGroup(-1323940314);
ComposerKt.sourceInformation(composer, "CC(Layout)P(!1,2)77@3132L23,79@3222L420:Layout.kt#80mrfh");
if ((i2 & 2) != 0) {
modifier = Modifier.INSTANCE;
}
int currentCompositeKeyHash = ComposablesKt.getCurrentCompositeKeyHash(composer, 0);
CompositionLocalMap currentCompositionLocalMap = composer.getCurrentCompositionLocalMap();
Function0<ComposeUiNode> constructor = ComposeUiNode.INSTANCE.getConstructor();
Function3<SkippableUpdater<ComposeUiNode>, Composer, Integer, Unit> modifierMaterializerOf = modifierMaterializerOf(modifier);
int i3 = ((i << 9) & 7168) | 6;
if (!(composer.getApplier() instanceof Applier)) {
ComposablesKt.invalidApplier();
}
composer.startReusableNode();
if (composer.getInserting()) {
composer.createNode(constructor);
} else {
composer.useNode();
}
Composer m2273constructorimpl = Updater.m2273constructorimpl(composer);
Updater.m2280setimpl(m2273constructorimpl, measurePolicy, ComposeUiNode.INSTANCE.getSetMeasurePolicy());
Updater.m2280setimpl(m2273constructorimpl, currentCompositionLocalMap, ComposeUiNode.INSTANCE.getSetResolvedCompositionLocals());
Function2<ComposeUiNode, Integer, Unit> setCompositeKeyHash = ComposeUiNode.INSTANCE.getSetCompositeKeyHash();
if (m2273constructorimpl.getInserting() || !Intrinsics.areEqual(m2273constructorimpl.rememberedValue(), Integer.valueOf(currentCompositeKeyHash))) {
m2273constructorimpl.updateRememberedValue(Integer.valueOf(currentCompositeKeyHash));
m2273constructorimpl.apply(Integer.valueOf(currentCompositeKeyHash), setCompositeKeyHash);
}
modifierMaterializerOf.invoke(SkippableUpdater.m2264boximpl(SkippableUpdater.m2265constructorimpl(composer)), composer, Integer.valueOf((i3 >> 3) & 112));
composer.startReplaceableGroup(2058660585);
content.invoke(composer, Integer.valueOf((i3 >> 9) & 14));
composer.endReplaceableGroup();
composer.endNode();
composer.endReplaceableGroup();
}
public static final void Layout(Modifier modifier, MeasurePolicy measurePolicy, Composer composer, int i, int i2) {
Intrinsics.checkNotNullParameter(measurePolicy, "measurePolicy");
composer.startReplaceableGroup(544976794);
ComposerKt.sourceInformation(composer, "CC(Layout)P(1)122@4734L23,125@4885L385:Layout.kt#80mrfh");
if ((i2 & 1) != 0) {
modifier = Modifier.INSTANCE;
}
int currentCompositeKeyHash = ComposablesKt.getCurrentCompositeKeyHash(composer, 0);
Modifier materializeModifier = ComposedModifierKt.materializeModifier(composer, modifier);
CompositionLocalMap currentCompositionLocalMap = composer.getCurrentCompositionLocalMap();
final Function0<ComposeUiNode> constructor = ComposeUiNode.INSTANCE.getConstructor();
composer.startReplaceableGroup(1405779621);
ComposerKt.sourceInformation(composer, "CC(ReusableComposeNode):Composables.kt#9igjgp");
if (!(composer.getApplier() instanceof Applier)) {
ComposablesKt.invalidApplier();
}
composer.startReusableNode();
if (composer.getInserting()) {
composer.createNode(new Function0<ComposeUiNode>() { // from class: androidx.compose.ui.layout.LayoutKt$Layout$$inlined$ReusableComposeNode$1
{
super(0);
}
/* JADX WARN: Type inference failed for: r0v2, types: [androidx.compose.ui.node.ComposeUiNode, java.lang.Object] */
@Override // kotlin.jvm.functions.Function0
public final ComposeUiNode invoke() {
return Function0.this.invoke();
}
});
} else {
composer.useNode();
}
Composer m2273constructorimpl = Updater.m2273constructorimpl(composer);
Updater.m2280setimpl(m2273constructorimpl, measurePolicy, ComposeUiNode.INSTANCE.getSetMeasurePolicy());
Updater.m2280setimpl(m2273constructorimpl, currentCompositionLocalMap, ComposeUiNode.INSTANCE.getSetResolvedCompositionLocals());
Updater.m2280setimpl(m2273constructorimpl, materializeModifier, ComposeUiNode.INSTANCE.getSetModifier());
Function2<ComposeUiNode, Integer, Unit> setCompositeKeyHash = ComposeUiNode.INSTANCE.getSetCompositeKeyHash();
if (m2273constructorimpl.getInserting() || !Intrinsics.areEqual(m2273constructorimpl.rememberedValue(), Integer.valueOf(currentCompositeKeyHash))) {
m2273constructorimpl.updateRememberedValue(Integer.valueOf(currentCompositeKeyHash));
m2273constructorimpl.apply(Integer.valueOf(currentCompositeKeyHash), setCompositeKeyHash);
}
composer.endNode();
composer.endReplaceableGroup();
composer.endReplaceableGroup();
}
public static final void Layout(List<? extends Function2<? super Composer, ? super Integer, Unit>> contents, Modifier modifier, MultiContentMeasurePolicy measurePolicy, Composer composer, int i, int i2) {
Intrinsics.checkNotNullParameter(contents, "contents");
Intrinsics.checkNotNullParameter(measurePolicy, "measurePolicy");
composer.startReplaceableGroup(1399185516);
ComposerKt.sourceInformation(composer, "CC(Layout)P(!1,2)171@6874L62,168@6760L182:Layout.kt#80mrfh");
if ((i2 & 2) != 0) {
modifier = Modifier.INSTANCE;
}
Function2<Composer, Integer, Unit> combineAsVirtualLayouts = combineAsVirtualLayouts(contents);
composer.startReplaceableGroup(1157296644);
ComposerKt.sourceInformation(composer, "CC(remember)P(1):Composables.kt#9igjgp");
boolean changed = composer.changed(measurePolicy);
Object rememberedValue = composer.rememberedValue();
if (changed || rememberedValue == Composer.INSTANCE.getEmpty()) {
rememberedValue = MultiContentMeasurePolicyKt.createMeasurePolicy(measurePolicy);
composer.updateRememberedValue(rememberedValue);
}
composer.endReplaceableGroup();
MeasurePolicy measurePolicy2 = (MeasurePolicy) rememberedValue;
int i3 = i & 112;
composer.startReplaceableGroup(-1323940314);
ComposerKt.sourceInformation(composer, "CC(Layout)P(!1,2)77@3132L23,79@3222L420:Layout.kt#80mrfh");
int currentCompositeKeyHash = ComposablesKt.getCurrentCompositeKeyHash(composer, 0);
CompositionLocalMap currentCompositionLocalMap = composer.getCurrentCompositionLocalMap();
Function0<ComposeUiNode> constructor = ComposeUiNode.INSTANCE.getConstructor();
Function3<SkippableUpdater<ComposeUiNode>, Composer, Integer, Unit> modifierMaterializerOf = modifierMaterializerOf(modifier);
int i4 = ((i3 << 9) & 7168) | 6;
if (!(composer.getApplier() instanceof Applier)) {
ComposablesKt.invalidApplier();
}
composer.startReusableNode();
if (composer.getInserting()) {
composer.createNode(constructor);
} else {
composer.useNode();
}
Composer m2273constructorimpl = Updater.m2273constructorimpl(composer);
Updater.m2280setimpl(m2273constructorimpl, measurePolicy2, ComposeUiNode.INSTANCE.getSetMeasurePolicy());
Updater.m2280setimpl(m2273constructorimpl, currentCompositionLocalMap, ComposeUiNode.INSTANCE.getSetResolvedCompositionLocals());
Function2<ComposeUiNode, Integer, Unit> setCompositeKeyHash = ComposeUiNode.INSTANCE.getSetCompositeKeyHash();
if (m2273constructorimpl.getInserting() || !Intrinsics.areEqual(m2273constructorimpl.rememberedValue(), Integer.valueOf(currentCompositeKeyHash))) {
m2273constructorimpl.updateRememberedValue(Integer.valueOf(currentCompositeKeyHash));
m2273constructorimpl.apply(Integer.valueOf(currentCompositeKeyHash), setCompositeKeyHash);
}
modifierMaterializerOf.invoke(SkippableUpdater.m2264boximpl(SkippableUpdater.m2265constructorimpl(composer)), composer, Integer.valueOf((i4 >> 3) & 112));
composer.startReplaceableGroup(2058660585);
combineAsVirtualLayouts.invoke(composer, Integer.valueOf((i4 >> 9) & 14));
composer.endReplaceableGroup();
composer.endNode();
composer.endReplaceableGroup();
composer.endReplaceableGroup();
}
public static final Function2<Composer, Integer, Unit> combineAsVirtualLayouts(final List<? extends Function2<? super Composer, ? super Integer, Unit>> contents) {
Intrinsics.checkNotNullParameter(contents, "contents");
return ComposableLambdaKt.composableLambdaInstance(-1953651383, true, new Function2<Composer, Integer, Unit>() { // from class: androidx.compose.ui.layout.LayoutKt$combineAsVirtualLayouts$1
/* 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 composer, Integer num) {
invoke(composer, num.intValue());
return Unit.INSTANCE;
}
public final void invoke(Composer composer, int i) {
ComposerKt.sourceInformation(composer, "C*180@7168L23,181@7200L298:Layout.kt#80mrfh");
if ((i & 11) != 2 || !composer.getSkipping()) {
if (ComposerKt.isTraceInProgress()) {
ComposerKt.traceEventStart(-1953651383, i, -1, "androidx.compose.ui.layout.combineAsVirtualLayouts.<anonymous> (Layout.kt:178)");
}
List<Function2<Composer, Integer, Unit>> list = contents;
int size = list.size();
for (int i2 = 0; i2 < size; i2++) {
Function2<Composer, Integer, Unit> function2 = list.get(i2);
int currentCompositeKeyHash = ComposablesKt.getCurrentCompositeKeyHash(composer, 0);
Function0<ComposeUiNode> virtualConstructor = ComposeUiNode.INSTANCE.getVirtualConstructor();
composer.startReplaceableGroup(-692256719);
ComposerKt.sourceInformation(composer, "CC(ReusableComposeNode)P(1,2)372@13941L9:Composables.kt#9igjgp");
if (!(composer.getApplier() instanceof Applier)) {
ComposablesKt.invalidApplier();
}
composer.startReusableNode();
if (composer.getInserting()) {
composer.createNode(virtualConstructor);
} else {
composer.useNode();
}
Composer m2273constructorimpl = Updater.m2273constructorimpl(composer);
Function2<ComposeUiNode, Integer, Unit> setCompositeKeyHash = ComposeUiNode.INSTANCE.getSetCompositeKeyHash();
if (m2273constructorimpl.getInserting() || !Intrinsics.areEqual(m2273constructorimpl.rememberedValue(), Integer.valueOf(currentCompositeKeyHash))) {
m2273constructorimpl.updateRememberedValue(Integer.valueOf(currentCompositeKeyHash));
m2273constructorimpl.apply(Integer.valueOf(currentCompositeKeyHash), setCompositeKeyHash);
}
function2.invoke(composer, 0);
composer.endNode();
composer.endReplaceableGroup();
}
if (ComposerKt.isTraceInProgress()) {
ComposerKt.traceEventEnd();
return;
}
return;
}
composer.skipToGroupEnd();
}
});
}
public static final Function3<SkippableUpdater<ComposeUiNode>, Composer, Integer, Unit> modifierMaterializerOf(final Modifier modifier) {
Intrinsics.checkNotNullParameter(modifier, "modifier");
return ComposableLambdaKt.composableLambdaInstance(-1586257396, true, new Function3<SkippableUpdater<ComposeUiNode>, Composer, Integer, Unit>() { // from class: androidx.compose.ui.layout.LayoutKt$materializerOf$1
/* JADX INFO: Access modifiers changed from: package-private */
{
super(3);
}
@Override // kotlin.jvm.functions.Function3
public /* bridge */ /* synthetic */ Unit invoke(SkippableUpdater<ComposeUiNode> skippableUpdater, Composer composer, Integer num) {
m3890invokeDeg8D_g(skippableUpdater.getComposer(), composer, num.intValue());
return Unit.INSTANCE;
}
/* renamed from: invoke-Deg8D_g, reason: not valid java name */
public final void m3890invokeDeg8D_g(Composer composer, Composer composer2, int i) {
Intrinsics.checkNotNullParameter(composer, "$this$null");
ComposerKt.sourceInformation(composer2, "C202@7952L23:Layout.kt#80mrfh");
if (ComposerKt.isTraceInProgress()) {
ComposerKt.traceEventStart(-1586257396, i, -1, "androidx.compose.ui.layout.materializerOf.<anonymous> (Layout.kt:201)");
}
int currentCompositeKeyHash = ComposablesKt.getCurrentCompositeKeyHash(composer2, 0);
Modifier materializeModifier = ComposedModifierKt.materializeModifier(composer2, Modifier.this);
composer.startReplaceableGroup(509942095);
Composer m2273constructorimpl = Updater.m2273constructorimpl(composer);
Updater.m2280setimpl(m2273constructorimpl, materializeModifier, ComposeUiNode.INSTANCE.getSetModifier());
Function2<ComposeUiNode, Integer, Unit> setCompositeKeyHash = ComposeUiNode.INSTANCE.getSetCompositeKeyHash();
if (m2273constructorimpl.getInserting() || !Intrinsics.areEqual(m2273constructorimpl.rememberedValue(), Integer.valueOf(currentCompositeKeyHash))) {
m2273constructorimpl.updateRememberedValue(Integer.valueOf(currentCompositeKeyHash));
m2273constructorimpl.apply(Integer.valueOf(currentCompositeKeyHash), setCompositeKeyHash);
}
composer.endReplaceableGroup();
if (ComposerKt.isTraceInProgress()) {
ComposerKt.traceEventEnd();
}
}
});
}
@Deprecated(level = DeprecationLevel.WARNING, message = "Needed only for backwards compatibility. Do not use.")
public static final Function3<SkippableUpdater<ComposeUiNode>, Composer, Integer, Unit> materializerOf(final Modifier modifier) {
Intrinsics.checkNotNullParameter(modifier, "modifier");
return ComposableLambdaKt.composableLambdaInstance(-55743822, true, new Function3<SkippableUpdater<ComposeUiNode>, Composer, Integer, Unit>() { // from class: androidx.compose.ui.layout.LayoutKt$materializerOfWithCompositionLocalInjection$1
/* JADX INFO: Access modifiers changed from: package-private */
{
super(3);
}
@Override // kotlin.jvm.functions.Function3
public /* bridge */ /* synthetic */ Unit invoke(SkippableUpdater<ComposeUiNode> skippableUpdater, Composer composer, Integer num) {
m3891invokeDeg8D_g(skippableUpdater.getComposer(), composer, num.intValue());
return Unit.INSTANCE;
}
/* renamed from: invoke-Deg8D_g, reason: not valid java name */
public final void m3891invokeDeg8D_g(Composer composer, Composer composer2, int i) {
Intrinsics.checkNotNullParameter(composer, "$this$null");
ComposerKt.sourceInformation(composer2, "C225@8792L23:Layout.kt#80mrfh");
if (ComposerKt.isTraceInProgress()) {
ComposerKt.traceEventStart(-55743822, i, -1, "androidx.compose.ui.layout.materializerOfWithCompositionLocalInjection.<anonymous> (Layout.kt:224)");
}
int currentCompositeKeyHash = ComposablesKt.getCurrentCompositeKeyHash(composer2, 0);
Modifier materializeWithCompositionLocalInjectionInternal = ComposedModifierKt.materializeWithCompositionLocalInjectionInternal(composer2, Modifier.this);
composer.startReplaceableGroup(509942095);
Composer m2273constructorimpl = Updater.m2273constructorimpl(composer);
Updater.m2280setimpl(m2273constructorimpl, materializeWithCompositionLocalInjectionInternal, ComposeUiNode.INSTANCE.getSetModifier());
Function2<ComposeUiNode, Integer, Unit> setCompositeKeyHash = ComposeUiNode.INSTANCE.getSetCompositeKeyHash();
if (m2273constructorimpl.getInserting() || !Intrinsics.areEqual(m2273constructorimpl.rememberedValue(), Integer.valueOf(currentCompositeKeyHash))) {
m2273constructorimpl.updateRememberedValue(Integer.valueOf(currentCompositeKeyHash));
m2273constructorimpl.apply(Integer.valueOf(currentCompositeKeyHash), setCompositeKeyHash);
}
composer.endReplaceableGroup();
if (ComposerKt.isTraceInProgress()) {
ComposerKt.traceEventEnd();
}
}
});
}
@Deprecated(message = "This API is unsafe for UI performance at scale - using it incorrectly will lead to exponential performance issues. This API should be avoided whenever possible.")
public static final void MultiMeasureLayout(Modifier modifier, final Function2<? super Composer, ? super Integer, Unit> content, final MeasurePolicy measurePolicy, Composer composer, final int i, final int i2) {
int i3;
Intrinsics.checkNotNullParameter(content, "content");
Intrinsics.checkNotNullParameter(measurePolicy, "measurePolicy");
Composer startRestartGroup = composer.startRestartGroup(1949933075);
ComposerKt.sourceInformation(startRestartGroup, "C(MultiMeasureLayout)P(2)246@9516L23,250@9668L491:Layout.kt#80mrfh");
int i4 = i2 & 1;
if (i4 != 0) {
i3 = i | 6;
} else if ((i & 14) == 0) {
i3 = (startRestartGroup.changed(modifier) ? 4 : 2) | i;
} else {
i3 = i;
}
if ((i2 & 2) != 0) {
i3 |= 48;
} else if ((i & 112) == 0) {
i3 |= startRestartGroup.changedInstance(content) ? 32 : 16;
}
if ((i2 & 4) != 0) {
i3 |= 384;
} else if ((i & 896) == 0) {
i3 |= startRestartGroup.changed(measurePolicy) ? 256 : 128;
}
if ((i3 & 731) != 146 || !startRestartGroup.getSkipping()) {
if (i4 != 0) {
modifier = Modifier.INSTANCE;
}
if (ComposerKt.isTraceInProgress()) {
ComposerKt.traceEventStart(1949933075, i3, -1, "androidx.compose.ui.layout.MultiMeasureLayout (Layout.kt:241)");
}
int currentCompositeKeyHash = ComposablesKt.getCurrentCompositeKeyHash(startRestartGroup, 0);
Modifier materializeModifier = ComposedModifierKt.materializeModifier(startRestartGroup, modifier);
CompositionLocalMap currentCompositionLocalMap = startRestartGroup.getCurrentCompositionLocalMap();
Function0<LayoutNode> constructor$ui_release = LayoutNode.INSTANCE.getConstructor$ui_release();
int i5 = ((i3 << 3) & 896) | 6;
startRestartGroup.startReplaceableGroup(-692256719);
ComposerKt.sourceInformation(startRestartGroup, "CC(ReusableComposeNode)P(1,2)372@13941L9:Composables.kt#9igjgp");
if (!(startRestartGroup.getApplier() instanceof Applier)) {
ComposablesKt.invalidApplier();
}
startRestartGroup.startReusableNode();
if (startRestartGroup.getInserting()) {
startRestartGroup.createNode(constructor$ui_release);
} else {
startRestartGroup.useNode();
}
Composer m2273constructorimpl = Updater.m2273constructorimpl(startRestartGroup);
Updater.m2280setimpl(m2273constructorimpl, measurePolicy, ComposeUiNode.INSTANCE.getSetMeasurePolicy());
Updater.m2280setimpl(m2273constructorimpl, currentCompositionLocalMap, ComposeUiNode.INSTANCE.getSetResolvedCompositionLocals());
Updater.m2277initimpl(m2273constructorimpl, new Function1<LayoutNode, Unit>() { // from class: androidx.compose.ui.layout.LayoutKt$MultiMeasureLayout$1$1
@Override // kotlin.jvm.functions.Function1
public /* bridge */ /* synthetic */ Unit invoke(LayoutNode layoutNode) {
invoke2(layoutNode);
return Unit.INSTANCE;
}
/* renamed from: invoke, reason: avoid collision after fix types in other method */
public final void invoke2(LayoutNode init) {
Intrinsics.checkNotNullParameter(init, "$this$init");
init.setCanMultiMeasure$ui_release(true);
}
});
Updater.m2280setimpl(m2273constructorimpl, materializeModifier, ComposeUiNode.INSTANCE.getSetModifier());
Function2<ComposeUiNode, Integer, Unit> setCompositeKeyHash = ComposeUiNode.INSTANCE.getSetCompositeKeyHash();
if (m2273constructorimpl.getInserting() || !Intrinsics.areEqual(m2273constructorimpl.rememberedValue(), Integer.valueOf(currentCompositeKeyHash))) {
m2273constructorimpl.updateRememberedValue(Integer.valueOf(currentCompositeKeyHash));
m2273constructorimpl.apply(Integer.valueOf(currentCompositeKeyHash), setCompositeKeyHash);
}
content.invoke(startRestartGroup, Integer.valueOf((i5 >> 6) & 14));
startRestartGroup.endNode();
startRestartGroup.endReplaceableGroup();
if (ComposerKt.isTraceInProgress()) {
ComposerKt.traceEventEnd();
}
} else {
startRestartGroup.skipToGroupEnd();
}
final Modifier modifier2 = modifier;
ScopeUpdateScope endRestartGroup = startRestartGroup.endRestartGroup();
if (endRestartGroup == null) {
return;
}
endRestartGroup.updateScope(new Function2<Composer, Integer, Unit>() { // from class: androidx.compose.ui.layout.LayoutKt$MultiMeasureLayout$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) {
LayoutKt.MultiMeasureLayout(Modifier.this, content, measurePolicy, composer2, RecomposeScopeImplKt.updateChangedFlags(i | 1), i2);
}
});
}
}