package com.ss.android.ugc.aweme.anchor.service;

import X.C4672Lnj;
import X.M12;
import X.Svj;
import X.Swk;
import com.bytedance.covode.number.Covode;
import com.bytedance.frameworks.apm.trace.MethodCollector;

public final class CustomAnchorViewServicImpl implements ICustomAnchorViewService {
    static {
        Covode.recordClassIndex(53008);
    }

    public static ICustomAnchorViewService LIZ() {
        MethodCollector.i(14597);
        ICustomAnchorViewService iCustomAnchorViewService = (ICustomAnchorViewService) C4672Lnj.LIZ(ICustomAnchorViewService.class, false);
        if (iCustomAnchorViewService != null) {
            MethodCollector.o(14597);
            return iCustomAnchorViewService;
        }
        Object LIZIZ = C4672Lnj.LIZIZ(ICustomAnchorViewService.class, false);
        if (LIZIZ != null) {
            ICustomAnchorViewService iCustomAnchorViewService2 = (ICustomAnchorViewService) LIZIZ;
            MethodCollector.o(14597);
            return iCustomAnchorViewService2;
        }
        if (C4672Lnj.LJJJI == null) {
            synchronized (ICustomAnchorViewService.class) {
                try {
                    if (C4672Lnj.LJJJI == null) {
                        C4672Lnj.LJJJI = new CustomAnchorViewServicImpl();
                    }
                } catch (Throwable th) {
                    MethodCollector.o(14597);
                    throw th;
                }
            }
        }
        CustomAnchorViewServicImpl customAnchorViewServicImpl = (CustomAnchorViewServicImpl) C4672Lnj.LJJJI;
        MethodCollector.o(14597);
        return customAnchorViewServicImpl;
    }

    public final void LIZ(Swk swk) {
        M12.LIZ((Object) swk);
        Svj.LIZIZ.add(swk);
    }
}
