package o;

import android.content.Context;
import android.os.Parcelable;
import android.util.SparseArray;
import android.view.View;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class Tj0 extends Z5 {
    public final View K;
    public final JR L;
    public Y30 M;
    public OC N;
    public OC O;
    public OC P;

    public Tj0(Context context, OC oc, C0244Jk c0244Jk, Z30 z30, int i, InterfaceC1577jV interfaceC1577jV) {
        View view = (View) oc.g(context);
        JR jr = new JR();
        super(context, c0244Jk, i, jr, view, interfaceC1577jV);
        this.K = view;
        this.L = jr;
        setClipChildren(false);
        String strValueOf = String.valueOf(i);
        Object objC = z30 != null ? z30.c(strValueOf) : null;
        SparseArray<Parcelable> sparseArray = objC instanceof SparseArray ? (SparseArray) objC : null;
        if (sparseArray != null) {
            view.restoreHierarchyState(sparseArray);
        }
        if (z30 != null) {
            setSavableRegistryEntry(z30.a(strValueOf, new Y5(this, 2)));
        }
        C1160f3 c1160f3 = C1160f3.z;
        this.N = c1160f3;
        this.O = c1160f3;
        this.P = c1160f3;
    }

    public static final void n(Tj0 tj0) {
        tj0.setSavableRegistryEntry(null);
    }

    private final void setSavableRegistryEntry(Y30 y30) {
        Y30 y302 = this.M;
        if (y302 != null) {
            ((C3126zm0) y302).W();
        }
        this.M = y30;
    }

    public final JR getDispatcher() {
        return this.L;
    }

    public final OC getReleaseBlock() {
        return this.P;
    }

    public final OC getResetBlock() {
        return this.O;
    }

    public /* bridge */ /* synthetic */ AbstractC3054z getSubCompositionView() {
        return null;
    }

    public final OC getUpdateBlock() {
        return this.N;
    }

    public final void setReleaseBlock(OC oc) {
        this.P = oc;
        setRelease(new Y5(this, 3));
    }

    public final void setResetBlock(OC oc) {
        this.O = oc;
        setReset(new Y5(this, 4));
    }

    public final void setUpdateBlock(OC oc) {
        this.N = oc;
        setUpdate(new Y5(this, 5));
    }

    public View getViewRoot() {
        return this;
    }
}
