package o;

import android.os.Parcelable;
import android.util.SparseArray;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class Y5 extends AbstractC0706aK implements NC {
    public final /* synthetic */ int m;
    public final /* synthetic */ Tj0 n;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public /* synthetic */ Y5(Tj0 tj0, int i) {
        super(0);
        this.m = i;
        this.n = tj0;
    }

    @Override // o.NC
    public final Object a() {
        switch (this.m) {
            case 0:
                this.n.getLayoutNode().z();
                break;
            case 1:
                Tj0 tj0 = this.n;
                if (tj0.p && tj0.isAttachedToWindow() && tj0.getView().getParent() == tj0) {
                    tj0.getSnapshotObserver().a(tj0, C1160f3.w, tj0.getUpdate());
                }
                break;
            case 2:
                SparseArray<Parcelable> sparseArray = new SparseArray<>();
                this.n.K.saveHierarchyState(sparseArray);
                break;
            case 3:
                Tj0 tj02 = this.n;
                tj02.getReleaseBlock().g(tj02.K);
                Tj0.n(tj02);
                break;
            case 4:
                Tj0 tj03 = this.n;
                tj03.getResetBlock().g(tj03.K);
                break;
            default:
                Tj0 tj04 = this.n;
                tj04.getUpdateBlock().g(tj04.K);
                break;
        }
        return Oh0.a;
    }
}
