package com.bytedance.als.dsl;

import X.AnonymousClass0PF;
import X.C03070Bt;
import X.C39401hK;
import X.M12;
import com.bytedance.als.AlsLogicContainer;
import com.bytedance.covode.number.Covode;
import java.lang.ref.WeakReference;
import kotlin.h.b.n;

public final class AlsVMContainer extends C03070Bt {
    public AnonymousClass0PF LIZ = new AnonymousClass0PF((byte) 0);
    public AlsLogicContainer LIZIZ;
    public OCAdapterViewModel LIZJ;
    public WeakReference<C39401hK> LIZLLL;

    static {
        Covode.recordClassIndex(4179);
    }

    private final void LIZ() {
        this.LIZIZ = null;
        this.LIZJ = null;
    }

    public final void LIZ(AnonymousClass0PF r1) {
        M12.LIZ(r1);
        this.LIZ = r1;
    }

    public final void LIZ(C39401hK r2) {
        Object obj;
        M12.LIZ(r2);
        WeakReference<C39401hK> weakReference = this.LIZLLL;
        if (weakReference != null) {
            obj = weakReference.get();
        } else {
            obj = null;
        }
        if (!n.LIZ(obj, r2)) {
            this.LIZLLL = new WeakReference<>(r2);
            LIZ();
        }
    }
}
