mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-28 01:52:26 -06:00
165 lines
11 KiB
Java
165 lines
11 KiB
Java
|
package androidx.compose.runtime.snapshots;
|
||
|
|
||
|
import kotlin.Metadata;
|
||
|
import kotlin.Unit;
|
||
|
import kotlin.jvm.functions.Function1;
|
||
|
import kotlin.jvm.internal.Intrinsics;
|
||
|
|
||
|
/* compiled from: Snapshot.kt */
|
||
|
@Metadata(d1 = {"\u0000>\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u0002\n\u0002\b\u0004\n\u0002\u0010\u000b\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0000\u0018\u00002\u00020\u0001BI\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0014\u0010\u0006\u001a\u0010\u0012\u0004\u0012\u00020\b\u0012\u0004\u0012\u00020\t\u0018\u00010\u0007\u0012\u0014\u0010\n\u001a\u0010\u0012\u0004\u0012\u00020\b\u0012\u0004\u0012\u00020\t\u0018\u00010\u0007\u0012\u0006\u0010\u000b\u001a\u00020\u0001¢\u0006\u0002\u0010\fJ\b\u0010\u0015\u001a\u00020\u0016H\u0016J\b\u0010\u0017\u001a\u00020\tH\u0002J\b\u0010\u0018\u001a\u00020\tH\u0016R\u000e\u0010\r\u001a\u00020\u000eX\u0082\u000e¢\u0006\u0002\n\u0000R\u0011\u0010\u000b\u001a\u00020\u0001¢\u0006\b\n\u0000\u001a\u0004\b\u000f\u0010\u0010R\u0014\u0010\u0011\u001a\u00020\u00128VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0013\u0010\u0014¨\u0006\u0019"}, d2 = {"Landroidx/compose/runtime/snapshots/NestedMutableSnapshot;", "Landroidx/compose/runtime/snapshots/MutableSnapshot;", "id", "", "invalid", "Landroidx/compose/runtime/snapshots/SnapshotIdSet;", "readObserver", "Lkotlin/Function1;", "", "", "writeObserver", "parent", "(ILandroidx/compose/runtime/snapshots/SnapshotIdSet;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Landroidx/compose/runtime/snapshots/MutableSnapshot;)V", "deactivated", "", "getParent", "()Landroidx/compose/runtime/snapshots/MutableSnapshot;", "root", "Landroidx/compose/runtime/snapshots/Snapshot;", "getRoot", "()Landroidx/compose/runtime/snapshots/Snapshot;", "apply", "Landroidx/compose/runtime/snapshots/SnapshotApplyResult;", "deactivate", "dispose", "runtime_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class NestedMutableSnapshot extends MutableSnapshot {
|
||
|
private boolean deactivated;
|
||
|
private final MutableSnapshot parent;
|
||
|
|
||
|
public final MutableSnapshot getParent() {
|
||
|
return this.parent;
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||
|
public NestedMutableSnapshot(int i, SnapshotIdSet invalid, Function1<Object, Unit> function1, Function1<Object, Unit> function12, MutableSnapshot parent) {
|
||
|
super(i, invalid, function1, function12);
|
||
|
Intrinsics.checkNotNullParameter(invalid, "invalid");
|
||
|
Intrinsics.checkNotNullParameter(parent, "parent");
|
||
|
this.parent = parent;
|
||
|
parent.mo2287nestedActivated$runtime_release(this);
|
||
|
}
|
||
|
|
||
|
@Override // androidx.compose.runtime.snapshots.MutableSnapshot, androidx.compose.runtime.snapshots.Snapshot
|
||
|
public Snapshot getRoot() {
|
||
|
return this.parent.getRoot();
|
||
|
}
|
||
|
|
||
|
@Override // androidx.compose.runtime.snapshots.MutableSnapshot, androidx.compose.runtime.snapshots.Snapshot
|
||
|
public void dispose() {
|
||
|
if (getDisposed()) {
|
||
|
return;
|
||
|
}
|
||
|
super.dispose();
|
||
|
deactivate();
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:24:0x0068, code lost:
|
||
|
|
||
|
if (r3 == null) goto L26;
|
||
|
*/
|
||
|
/* JADX WARN: Removed duplicated region for block: B:27:0x007e A[Catch: all -> 0x00c7, TryCatch #0 {, blocks: (B:11:0x0031, B:13:0x0039, B:16:0x0040, B:21:0x005a, B:23:0x0062, B:25:0x0076, B:27:0x007e, B:28:0x0083, B:33:0x006a, B:34:0x0073), top: B:10:0x0031 }] */
|
||
|
@Override // androidx.compose.runtime.snapshots.MutableSnapshot
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
public androidx.compose.runtime.snapshots.SnapshotApplyResult apply() {
|
||
|
/*
|
||
|
r7 = this;
|
||
|
androidx.compose.runtime.snapshots.MutableSnapshot r0 = r7.parent
|
||
|
boolean r0 = r0.getApplied()
|
||
|
if (r0 != 0) goto Lca
|
||
|
androidx.compose.runtime.snapshots.MutableSnapshot r0 = r7.parent
|
||
|
boolean r0 = r0.getDisposed()
|
||
|
if (r0 == 0) goto L12
|
||
|
goto Lca
|
||
|
L12:
|
||
|
androidx.compose.runtime.collection.IdentityArraySet r0 = r7.getModified$runtime_release()
|
||
|
int r1 = r7.getId()
|
||
|
r2 = 0
|
||
|
if (r0 == 0) goto L2b
|
||
|
androidx.compose.runtime.snapshots.MutableSnapshot r3 = r7.parent
|
||
|
r4 = r7
|
||
|
androidx.compose.runtime.snapshots.MutableSnapshot r4 = (androidx.compose.runtime.snapshots.MutableSnapshot) r4
|
||
|
androidx.compose.runtime.snapshots.SnapshotIdSet r5 = r3.getInvalid()
|
||
|
java.util.Map r3 = androidx.compose.runtime.snapshots.SnapshotKt.access$optimisticMerges(r3, r4, r5)
|
||
|
goto L2c
|
||
|
L2b:
|
||
|
r3 = r2
|
||
|
L2c:
|
||
|
java.lang.Object r4 = androidx.compose.runtime.snapshots.SnapshotKt.getLock()
|
||
|
monitor-enter(r4)
|
||
|
r5 = r7
|
||
|
androidx.compose.runtime.snapshots.Snapshot r5 = (androidx.compose.runtime.snapshots.Snapshot) r5 // Catch: java.lang.Throwable -> Lc7
|
||
|
androidx.compose.runtime.snapshots.SnapshotKt.access$validateOpen(r5) // Catch: java.lang.Throwable -> Lc7
|
||
|
if (r0 == 0) goto L73
|
||
|
int r5 = r0.size() // Catch: java.lang.Throwable -> Lc7
|
||
|
if (r5 != 0) goto L40
|
||
|
goto L73
|
||
|
L40:
|
||
|
androidx.compose.runtime.snapshots.MutableSnapshot r5 = r7.parent // Catch: java.lang.Throwable -> Lc7
|
||
|
int r5 = r5.getId() // Catch: java.lang.Throwable -> Lc7
|
||
|
androidx.compose.runtime.snapshots.MutableSnapshot r6 = r7.parent // Catch: java.lang.Throwable -> Lc7
|
||
|
androidx.compose.runtime.snapshots.SnapshotIdSet r6 = r6.getInvalid() // Catch: java.lang.Throwable -> Lc7
|
||
|
androidx.compose.runtime.snapshots.SnapshotApplyResult r3 = r7.innerApplyLocked$runtime_release(r5, r3, r6) // Catch: java.lang.Throwable -> Lc7
|
||
|
androidx.compose.runtime.snapshots.SnapshotApplyResult$Success r5 = androidx.compose.runtime.snapshots.SnapshotApplyResult.Success.INSTANCE // Catch: java.lang.Throwable -> Lc7
|
||
|
boolean r5 = kotlin.jvm.internal.Intrinsics.areEqual(r3, r5) // Catch: java.lang.Throwable -> Lc7
|
||
|
if (r5 != 0) goto L5a
|
||
|
monitor-exit(r4)
|
||
|
return r3
|
||
|
L5a:
|
||
|
androidx.compose.runtime.snapshots.MutableSnapshot r3 = r7.parent // Catch: java.lang.Throwable -> Lc7
|
||
|
androidx.compose.runtime.collection.IdentityArraySet r3 = r3.getModified$runtime_release() // Catch: java.lang.Throwable -> Lc7
|
||
|
if (r3 == 0) goto L6a
|
||
|
r5 = r0
|
||
|
java.util.Collection r5 = (java.util.Collection) r5 // Catch: java.lang.Throwable -> Lc7
|
||
|
r3.addAll(r5) // Catch: java.lang.Throwable -> Lc7
|
||
|
if (r3 != 0) goto L76
|
||
|
L6a:
|
||
|
androidx.compose.runtime.snapshots.MutableSnapshot r3 = r7.parent // Catch: java.lang.Throwable -> Lc7
|
||
|
r3.setModified(r0) // Catch: java.lang.Throwable -> Lc7
|
||
|
r7.setModified(r2) // Catch: java.lang.Throwable -> Lc7
|
||
|
goto L76
|
||
|
L73:
|
||
|
r7.closeAndReleasePinning$runtime_release() // Catch: java.lang.Throwable -> Lc7
|
||
|
L76:
|
||
|
androidx.compose.runtime.snapshots.MutableSnapshot r0 = r7.parent // Catch: java.lang.Throwable -> Lc7
|
||
|
int r0 = r0.getId() // Catch: java.lang.Throwable -> Lc7
|
||
|
if (r0 >= r1) goto L83
|
||
|
androidx.compose.runtime.snapshots.MutableSnapshot r0 = r7.parent // Catch: java.lang.Throwable -> Lc7
|
||
|
r0.advance$runtime_release() // Catch: java.lang.Throwable -> Lc7
|
||
|
L83:
|
||
|
androidx.compose.runtime.snapshots.MutableSnapshot r0 = r7.parent // Catch: java.lang.Throwable -> Lc7
|
||
|
androidx.compose.runtime.snapshots.SnapshotIdSet r2 = r0.getInvalid() // Catch: java.lang.Throwable -> Lc7
|
||
|
androidx.compose.runtime.snapshots.SnapshotIdSet r2 = r2.clear(r1) // Catch: java.lang.Throwable -> Lc7
|
||
|
androidx.compose.runtime.snapshots.SnapshotIdSet r3 = r7.getPreviousIds() // Catch: java.lang.Throwable -> Lc7
|
||
|
androidx.compose.runtime.snapshots.SnapshotIdSet r2 = r2.andNot(r3) // Catch: java.lang.Throwable -> Lc7
|
||
|
r0.setInvalid$runtime_release(r2) // Catch: java.lang.Throwable -> Lc7
|
||
|
androidx.compose.runtime.snapshots.MutableSnapshot r0 = r7.parent // Catch: java.lang.Throwable -> Lc7
|
||
|
r0.recordPrevious$runtime_release(r1) // Catch: java.lang.Throwable -> Lc7
|
||
|
androidx.compose.runtime.snapshots.MutableSnapshot r0 = r7.parent // Catch: java.lang.Throwable -> Lc7
|
||
|
int r1 = r7.takeoverPinnedSnapshot$runtime_release() // Catch: java.lang.Throwable -> Lc7
|
||
|
r0.recordPreviousPinnedSnapshot$runtime_release(r1) // Catch: java.lang.Throwable -> Lc7
|
||
|
androidx.compose.runtime.snapshots.MutableSnapshot r0 = r7.parent // Catch: java.lang.Throwable -> Lc7
|
||
|
androidx.compose.runtime.snapshots.SnapshotIdSet r1 = r7.getPreviousIds() // Catch: java.lang.Throwable -> Lc7
|
||
|
r0.recordPreviousList$runtime_release(r1) // Catch: java.lang.Throwable -> Lc7
|
||
|
androidx.compose.runtime.snapshots.MutableSnapshot r0 = r7.parent // Catch: java.lang.Throwable -> Lc7
|
||
|
int[] r1 = r7.getPreviousPinnedSnapshots() // Catch: java.lang.Throwable -> Lc7
|
||
|
r0.recordPreviousPinnedSnapshots$runtime_release(r1) // Catch: java.lang.Throwable -> Lc7
|
||
|
kotlin.Unit r0 = kotlin.Unit.INSTANCE // Catch: java.lang.Throwable -> Lc7
|
||
|
monitor-exit(r4)
|
||
|
r0 = 1
|
||
|
r7.setApplied$runtime_release(r0)
|
||
|
r7.deactivate()
|
||
|
androidx.compose.runtime.snapshots.SnapshotApplyResult$Success r7 = androidx.compose.runtime.snapshots.SnapshotApplyResult.Success.INSTANCE
|
||
|
androidx.compose.runtime.snapshots.SnapshotApplyResult r7 = (androidx.compose.runtime.snapshots.SnapshotApplyResult) r7
|
||
|
return r7
|
||
|
Lc7:
|
||
|
r7 = move-exception
|
||
|
monitor-exit(r4)
|
||
|
throw r7
|
||
|
Lca:
|
||
|
androidx.compose.runtime.snapshots.SnapshotApplyResult$Failure r0 = new androidx.compose.runtime.snapshots.SnapshotApplyResult$Failure
|
||
|
androidx.compose.runtime.snapshots.Snapshot r7 = (androidx.compose.runtime.snapshots.Snapshot) r7
|
||
|
r0.<init>(r7)
|
||
|
androidx.compose.runtime.snapshots.SnapshotApplyResult r0 = (androidx.compose.runtime.snapshots.SnapshotApplyResult) r0
|
||
|
return r0
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: androidx.compose.runtime.snapshots.NestedMutableSnapshot.apply():androidx.compose.runtime.snapshots.SnapshotApplyResult");
|
||
|
}
|
||
|
|
||
|
private final void deactivate() {
|
||
|
if (this.deactivated) {
|
||
|
return;
|
||
|
}
|
||
|
this.deactivated = true;
|
||
|
this.parent.mo2288nestedDeactivated$runtime_release(this);
|
||
|
}
|
||
|
}
|