package androidx.compose.ui.node; import androidx.compose.ui.layout.AlignmentLine; import androidx.compose.ui.layout.LayoutCoordinates; import androidx.compose.ui.layout.MeasureResult; import androidx.compose.ui.layout.Placeable; import androidx.compose.ui.layout.VerticalAlignmentLine; import androidx.compose.ui.unit.IntOffset; import kotlin.Metadata; import kotlin.jvm.internal.Intrinsics; /* compiled from: LookaheadDelegate.kt */ @Metadata(d1 = {"\u0000\\\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\f\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\b \u0018\u00002\u00020\u00012\u00020\u0002B\u0005¢\u0006\u0002\u0010\u0003J\u0010\u0010*\u001a\u00020+2\u0006\u0010,\u001a\u00020-H&J\u0011\u0010.\u001a\u00020+2\u0006\u0010,\u001a\u00020-H\u0086\u0002J\r\u0010/\u001a\u000200H ¢\u0006\u0002\b1J\f\u00102\u001a\u000200*\u000203H\u0004R\u0012\u0010\u0004\u001a\u00020\u0005X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0006\u0010\u0007R\u0014\u0010\b\u001a\u0004\u0018\u00010\u0000X¦\u0004¢\u0006\u0006\u001a\u0004\b\t\u0010\nR\u0012\u0010\u000b\u001a\u00020\fX¦\u0004¢\u0006\u0006\u001a\u0004\b\r\u0010\u000eR\u0012\u0010\u000f\u001a\u00020\u0010X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0011\u0010\u0012R\u001a\u0010\u0013\u001a\u00020\u00108VX\u0096\u0004¢\u0006\f\u0012\u0004\b\u0014\u0010\u0003\u001a\u0004\b\u0013\u0010\u0012R\u001a\u0010\u0015\u001a\u00020\u0010X\u0080\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0016\u0010\u0012\"\u0004\b\u0017\u0010\u0018R\u001a\u0010\u0019\u001a\u00020\u0010X\u0080\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u001a\u0010\u0012\"\u0004\b\u001b\u0010\u0018R\u0012\u0010\u001c\u001a\u00020\u001dX¦\u0004¢\u0006\u0006\u001a\u0004\b\u001e\u0010\u001fR\u0012\u0010 \u001a\u00020!X \u0004¢\u0006\u0006\u001a\u0004\b\"\u0010#R\u0014\u0010$\u001a\u0004\u0018\u00010\u0000X¦\u0004¢\u0006\u0006\u001a\u0004\b%\u0010\nR\u001b\u0010&\u001a\u00020'X¦\u0004ø\u0001\u0000ø\u0001\u0001ø\u0001\u0002¢\u0006\u0006\u001a\u0004\b(\u0010)\u0082\u0002\u000f\n\u0002\b\u0019\n\u0005\b¡\u001e0\u0001\n\u0002\b!¨\u00064"}, d2 = {"Landroidx/compose/ui/node/LookaheadCapablePlaceable;", "Landroidx/compose/ui/layout/Placeable;", "Landroidx/compose/ui/node/MeasureScopeWithLayoutNode;", "()V", "alignmentLinesOwner", "Landroidx/compose/ui/node/AlignmentLinesOwner;", "getAlignmentLinesOwner", "()Landroidx/compose/ui/node/AlignmentLinesOwner;", "child", "getChild", "()Landroidx/compose/ui/node/LookaheadCapablePlaceable;", "coordinates", "Landroidx/compose/ui/layout/LayoutCoordinates;", "getCoordinates", "()Landroidx/compose/ui/layout/LayoutCoordinates;", "hasMeasureResult", "", "getHasMeasureResult", "()Z", "isLookingAhead", "isLookingAhead$annotations", "isPlacingForAlignment", "isPlacingForAlignment$ui_release", "setPlacingForAlignment$ui_release", "(Z)V", "isShallowPlacing", "isShallowPlacing$ui_release", "setShallowPlacing$ui_release", "layoutNode", "Landroidx/compose/ui/node/LayoutNode;", "getLayoutNode", "()Landroidx/compose/ui/node/LayoutNode;", "measureResult", "Landroidx/compose/ui/layout/MeasureResult;", "getMeasureResult$ui_release", "()Landroidx/compose/ui/layout/MeasureResult;", "parent", "getParent", "position", "Landroidx/compose/ui/unit/IntOffset;", "getPosition-nOcc-ac", "()J", "calculateAlignmentLine", "", "alignmentLine", "Landroidx/compose/ui/layout/AlignmentLine;", "get", "replace", "", "replace$ui_release", "invalidateAlignmentLinesFromPositionChange", "Landroidx/compose/ui/node/NodeCoordinator;", "ui_release"}, k = 1, mv = {1, 8, 0}, xi = 48) /* loaded from: classes.dex */ public abstract class LookaheadCapablePlaceable extends Placeable implements MeasureScopeWithLayoutNode { private boolean isPlacingForAlignment; private boolean isShallowPlacing; public static /* synthetic */ void isLookingAhead$annotations() { } public abstract int calculateAlignmentLine(AlignmentLine alignmentLine); public abstract AlignmentLinesOwner getAlignmentLinesOwner(); public abstract LookaheadCapablePlaceable getChild(); public abstract LayoutCoordinates getCoordinates(); public abstract boolean getHasMeasureResult(); @Override // androidx.compose.ui.node.MeasureScopeWithLayoutNode public abstract LayoutNode getLayoutNode(); public abstract MeasureResult getMeasureResult$ui_release(); public abstract LookaheadCapablePlaceable getParent(); /* renamed from: getPosition-nOcc-ac, reason: not valid java name */ public abstract long getPosition(); @Override // androidx.compose.ui.layout.IntrinsicMeasureScope public boolean isLookingAhead() { return false; } /* renamed from: isPlacingForAlignment$ui_release, reason: from getter */ public final boolean getIsPlacingForAlignment() { return this.isPlacingForAlignment; } /* renamed from: isShallowPlacing$ui_release, reason: from getter */ public final boolean getIsShallowPlacing() { return this.isShallowPlacing; } public abstract void replace$ui_release(); public final void setPlacingForAlignment$ui_release(boolean z) { this.isPlacingForAlignment = z; } public final void setShallowPlacing$ui_release(boolean z) { this.isShallowPlacing = z; } @Override // androidx.compose.ui.layout.Measured public final int get(AlignmentLine alignmentLine) { int calculateAlignmentLine; int m5002getYimpl; Intrinsics.checkNotNullParameter(alignmentLine, "alignmentLine"); if (!getHasMeasureResult() || (calculateAlignmentLine = calculateAlignmentLine(alignmentLine)) == Integer.MIN_VALUE) { return Integer.MIN_VALUE; } if (alignmentLine instanceof VerticalAlignmentLine) { m5002getYimpl = IntOffset.m5001getXimpl(getApparentToRealOffset()); } else { m5002getYimpl = IntOffset.m5002getYimpl(getApparentToRealOffset()); } return calculateAlignmentLine + m5002getYimpl; } /* JADX INFO: Access modifiers changed from: protected */ public final void invalidateAlignmentLinesFromPositionChange(NodeCoordinator nodeCoordinator) { AlignmentLines alignmentLines; Intrinsics.checkNotNullParameter(nodeCoordinator, ""); NodeCoordinator wrapped = nodeCoordinator.getWrapped(); if (!Intrinsics.areEqual(wrapped != null ? wrapped.getLayoutNode() : null, nodeCoordinator.getLayoutNode())) { nodeCoordinator.getAlignmentLinesOwner().getAlignmentLines().onAlignmentsChanged(); return; } AlignmentLinesOwner parentAlignmentLinesOwner = nodeCoordinator.getAlignmentLinesOwner().getParentAlignmentLinesOwner(); if (parentAlignmentLinesOwner == null || (alignmentLines = parentAlignmentLinesOwner.getAlignmentLines()) == null) { return; } alignmentLines.onAlignmentsChanged(); } }