package D;

import B.h1;
import F.P;
import androidx.compose.runtime.snapshots.Snapshot;

/* JADX INFO: loaded from: classes.dex */
public interface y {
    static P a(D d6, int i6) {
        d6.getClass();
        Snapshot.Companion companion = Snapshot.Companion;
        H h5 = d6.f755a;
        Snapshot currentThreadSnapshot = companion.getCurrentThreadSnapshot();
        J4.c readObserver = currentThreadSnapshot != null ? currentThreadSnapshot.getReadObserver() : null;
        Snapshot snapshotMakeCurrentNonObservable = companion.makeCurrentNonObservable(currentThreadSnapshot);
        try {
            w wVar = (w) h5.f772f.getValue();
            companion.restoreNonObservable(currentThreadSnapshot, snapshotMakeCurrentNonObservable, readObserver);
            return h5.f781p.a(i6, wVar.f900j, h5.f770d, new h1(i6, wVar));
        } catch (Throwable th) {
            companion.restoreNonObservable(currentThreadSnapshot, snapshotMakeCurrentNonObservable, readObserver);
            throw th;
        }
    }
}
