package com.bytedance.android.livesdk;

import X.0HH;
import X.0S6;
import X.0Ur;
import X.0b0;
import X.0cm;
import X.0hX;
import X.0yx;
import X.158;
import X.1c5;
import X.C1064Fv7;
import X.C1313Fz8;
import X.C2088GRt;
import X.C2118GSx;
import X.C2119GSy;
import X.C2675Gg0;
import X.C3028Glh;
import X.C3253GpK;
import X.C3441GsM;
import X.C3491GtA;
import X.C3543Gu0;
import X.C3633GvS;
import X.C3904Gzp;
import X.C4057H5m;
import X.C4100H7d;
import X.C4442HKh;
import X.C4461HLa;
import X.C4483HLw;
import X.C4489HMc;
import X.C4492HMf;
import X.C4495HMi;
import X.C4504HMr;
import X.C4508HMv;
import X.C4510HMx;
import X.C4514HNb;
import X.C4524HNl;
import X.C4582HPr;
import X.C4593HQc;
import X.C4613HQw;
import X.C5065HdS;
import X.C6014Hsl;
import X.C6103HuC;
import X.C6241HwQ;
import X.GMS;
import X.GWE;
import X.HEN;
import X.HEP;
import X.HLN;
import X.HMB;
import X.HMG;
import X.HMT;
import X.HMU;
import X.HMW;
import X.HNK;
import X.HNP;
import X.HNT;
import X.HO5;
import X.HOC;
import X.HPK;
import X.HPY;
import X.HT6;
import X.HU9;
import X.HUC;
import X.HZN;
import X.KMV;
import X.M12;
import X.PgU;
import X.Q3k;
import X.Q4a;
import X.TX2;
import android.app.Activity;
import android.content.Context;
import android.net.Uri;
import android.os.SystemClock;
import android.util.Pair;
import androidx.recyclerview.widget.RecyclerView;
import com.bytedance.android.live.actionhandler.IActionHandlerService;
import com.bytedance.android.live.base.model.user.User;
import com.bytedance.android.live.gift.IGiftService;
import com.bytedance.android.livesdk.comp.api.network.INetworkService;
import com.bytedance.android.livesdk.envelope.widget.RedEnvelopeWidget;
import com.bytedance.android.livesdk.gift.assets.AssetsModel;
import com.bytedance.android.livesdk.gift.model.GiftPage;
import com.bytedance.android.livesdk.gift.model.SendGiftResult;
import com.bytedance.android.livesdk.livesetting.gift.LiveFirstRechargeWebUrlLynxFaq;
import com.bytedance.android.livesdk.livesetting.gift.LiveGiftPanelPreLoadViewSetting;
import com.bytedance.android.livesdk.livesetting.gift.LiveGiftPanelShowOptSetting;
import com.bytedance.android.livesdk.livesetting.gift.LiveGiftResourceCacheSetting;
import com.bytedance.android.livesdk.livesetting.other.ToolBarButtonWithTextExperiment;
import com.bytedance.android.livesdk.livesetting.performance.LiveBroadcastPoorDeviceDelayDurationSetting;
import com.bytedance.android.livesdk.livesetting.redenvelope.AgeRestrictedConfig;
import com.bytedance.android.livesdk.livesetting.redenvelope.RedEnvelopeLibraConfig;
import com.bytedance.android.livesdk.model.Gift;
import com.bytedance.android.livesdk.model.message.GiftMessage;
import com.bytedance.android.livesdk.newtray.ExtendScreenGiftTrayWidget;
import com.bytedance.android.livesdk.service.assets.GiftManager;
import com.bytedance.android.livesdk.service.network.GiftRetrofitApi;
import com.bytedance.android.livesdk.wallet.Diamond;
import com.bytedance.android.livesdk.widgets.giftwidget.GiftWidget;
import com.bytedance.android.livesdk.wishlist.widget.WishListWidget;
import com.bytedance.android.livesdkapi.depend.model.live.Room;
import com.bytedance.android.livesdkapi.host.IHostApp;
import com.bytedance.android.livesdkapi.message.CommonMessageData;
import com.bytedance.android.livesdkapi.session.EnterRoomConfig;
import com.bytedance.android.widget.Widget;
import com.bytedance.covode.number.Covode;
import com.bytedance.ies.sdk.datachannel.DataChannel;
import com.bytedance.ies.sdk.datachannel.DataChannelGlobal;
import com.bytedance.ies.sdk.widgets.LiveRecyclableWidget;
import com.bytedance.ies.sdk.widgets.LiveWidget;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import kotlin.h.b.n;

public class GiftService implements IGiftService {
    static {
        Covode.recordClassIndex(11215);
    }

    public void resetRoomStatus() {
    }

    public Class<? extends LiveRecyclableWidget> getExtendScreenGiftTrayWidget() {
        return ExtendScreenGiftTrayWidget.class;
    }

    public C4495HMi getFirstRechargeManager() {
        return C4495HMi.LJIIJJI;
    }

    public boolean isGuestMatchAnchorGiftTrayEnable() {
        return C4613HQw.LJIIIIZZ;
    }

    public Widget getRedEnvelopeWidget() {
        return new RedEnvelopeWidget();
    }

    public LiveWidget getWishListWidget() {
        return new WishListWidget();
    }

    public C3904Gzp giftPlayControllerManager() {
        return C6014Hsl.LIZ();
    }

    public boolean isFirstRecharge() {
        return C4495HMi.LJIIJJI.LIZJ();
    }

    public List<GiftPage> getGiftPages() {
        return GiftManager.inst().getGiftPageList();
    }

    public GWE getPollGifts() {
        return GiftManager.inst().getPollGifts();
    }

    public List<Gift> getStickerGifts() {
        return GiftManager.inst().getStickerGifts();
    }

    public void initGiftResource() {
        initGiftResourceManager(0b0.LJ());
        syncGiftList(1);
    }

    public void onLiveActivityDestroyed() {
        ((RecyclerView.RecycledViewPool) HMW.LIZIZ.getValue()).clear();
        HMW.LIZ = false;
    }

    public void preloadLayout() {
        0S6.LJFF.LIZ(2131562186);
    }

    public C3253GpK getBoostChartInfo() {
        C3253GpK gpK = new C3253GpK();
        gpK.LIZJ = C4461HLa.LIZJ;
        gpK.LIZLLL = C4461HLa.LIZLLL;
        gpK.LIZIZ = C4461HLa.LJII;
        gpK.LIZ = C4461HLa.LIZIZ;
        gpK.LJ = C4461HLa.LIZ;
        return gpK;
    }

    public String getLowAgeReportUrl() {
        if (0cm.LIZ(IHostApp.class).isInMusicallyRegion()) {
            return "sslocal://webcast_webview?url=https%3A%2F%2Fttlive-va.tiktok.com%2Ffalcon%2Fwebcast_mt%2Fpage%2Fappeal%2Findex.html&type=fullscreen&title=&hide_more=0&hide_nav_bar=1&hide_status_bar=0";
        }
        return "sslocal://webcast_webview?url=https%3A%2F%2Fttlive.tiktok.com%2Ffalcon%2Fwebcast_mt%2Fpage%2Fappeal%2Findex.html&type=fullscreen&title=&hide_more=0&hide_nav_bar=1&hide_status_bar=0";
    }

    public Pair<Integer, Integer> getShowedAndUnShowedGuestGiftCount() {
        return new Pair<>(Integer.valueOf(C4613HQw.LJFF), Integer.valueOf(C4613HQw.LJIIIZ.LIZ()));
    }

    public void onInit() {
        0cm.LIZ(INetworkService.class).addCommonParamsAdder(new HMT());
    }

    public boolean enableRedEnvelope() {
        boolean z;
        Room room = (Room) DataChannelGlobal.LIZLLL.LIZIZ(HEP.class);
        if (room == null || room.mRoomAuthStatus == null || !room.mRoomAuthStatus.showRedEnvelope()) {
            z = false;
        } else {
            z = true;
        }
        if (!RedEnvelopeLibraConfig.INSTANCE.enableEnvelopeFunc() || AgeRestrictedConfig.INSTANCE.isLimit() || !z) {
            return false;
        }
        return true;
    }

    public void preloadBroadcastApi() {
        ((GiftRetrofitApi) 0yx.LIZ().LIZ(GiftRetrofitApi.class)).syncGiftList("", 0, "", "");
        ((GiftRetrofitApi) 0yx.LIZ().LIZ(GiftRetrofitApi.class)).getWishList(0, 0);
    }

    public void logBoostCardLiveEndShow() {
        String str;
        String str2 = C4461HLa.LJ;
        String str3 = C4461HLa.LJI;
        String str4 = C4461HLa.LJFF;
        C3491GtA LIZ = C3491GtA.LJFF.LIZ("end_live_show");
        LIZ.LIZ();
        Map map = (Map) DataChannelGlobal.LIZLLL.LIZIZ(HEN.class);
        if (map == null || (str = (String) map.get("anchor_id")) == null) {
            str = "0";
        }
        LIZ.LIZ("anchor_id", str);
        LIZ.LIZ("task_id", str2);
        LIZ.LIZ("card_id", str3);
        C3028Glh LIZIZ = C4100H7d.LIZ().LIZIZ();
        n.LIZIZ(LIZIZ, "");
        LIZ.LIZ("user_id", LIZIZ.LIZJ());
        LIZ.LIZ("task_source", str4);
        LIZ.LIZLLL();
    }

    public void onPlayFragmentCreate() {
        0S6.LJFF.LIZ(2131562177);
        0S6.LJFF.LIZ(2131562053);
        0S6.LJFF.LIZ(2131562126);
        if (!HMW.LIZ && LiveGiftPanelShowOptSetting.INSTANCE.getEnable() && LiveGiftPanelPreLoadViewSetting.INSTANCE.getValue()) {
            HMW.LIZ = true;
            0S6.LJFF.LIZ(2131561849, 1);
            0S6.LJFF.LIZ(2131561852, 12);
            0S6.LJFF.LIZ(2131561857, 1);
        }
        if (ToolBarButtonWithTextExperiment.hasText()) {
            0S6.LJFF.LIZ(2131561786);
            0S6.LJFF.LIZ(2131562178);
        } else {
            0S6.LJFF.LIZ(2131561785);
        }
        HPK.LIZ = SystemClock.elapsedRealtime();
    }

    public void clearFastGift(long j) {
        GiftManager.inst().clearFastGift(j);
    }

    public LiveWidget getGiftWidget(EnterRoomConfig enterRoomConfig) {
        GiftWidget giftWidget = new GiftWidget();
        giftWidget.LJFF = enterRoomConfig;
        return giftWidget;
    }

    public void openGiftDialogFromJSB(C3633GvS gvS) {
        C2675Gg0.LIZ().LIZ((Object) gvS);
    }

    public void syncGiftList(int i) {
        GiftManager.inst().syncGiftList(i);
    }

    public void clearAssets(String str) {
        C6103HuC.LIZ.LIZ().LIZJ();
    }

    public void exitRoom(Boolean bool) {
        C4492HMf hMf = C4495HMi.LJIIJJI;
        hMf.LIZ().LIZJ();
        hMf.LJIIJ = null;
    }

    public Gift findGiftById(long j) {
        return GiftManager.inst().findGiftById(j);
    }

    public boolean isFirstRechargeGift(long j) {
        if (C4495HMi.LJIIJJI.LJIIIZ() == j) {
            return true;
        }
        return false;
    }

    public long giftVideoResourcesClear(boolean z) {
        Long LIZ = C6103HuC.LIZ.LIZ().LIZ(z);
        n.LIZIZ(LIZ, "");
        return LIZ.longValue();
    }

    public boolean isSubscriptionGift(long j) {
        if (GiftManager.inst().getTabName(GiftManager.inst().getTabByGiftIdWithoutFirstRecharge(j)).contains("Exclusive")) {
            return true;
        }
        return false;
    }

    public void openGiftDialog(String str) {
        C3543Gu0 gu0;
        C2675Gg0 LIZ = C2675Gg0.LIZ();
        if ("gift".equals(str)) {
            gu0 = C3543Gu0.GIFT;
        } else {
            gu0 = C3543Gu0.PROP;
        }
        LIZ.LIZ((Object) new C3633GvS(gu0));
    }

    public void registerDebugJsb(KMV kmv) {
        try {
            Class.forName("com.bytedance.android.livesdk.gift.debugservice.DebugToolInitServiceManager").getDeclaredField("INSTANCE").get((Object) null);
        } catch (ClassNotFoundException | IllegalAccessException | NoSuchFieldException e) {
            0HH.LIZ(e);
        }
    }

    public void removeAnimationEngine(HPY hpy) {
        C4483HLw LIZ = C4483HLw.LIZ();
        if (LIZ.LIZ.containsKey(hpy)) {
            HMB hmb = LIZ.LIZ.get(hpy);
            if (hmb != null) {
                hmb.LIZ();
            }
            LIZ.LIZ.remove(hpy);
        }
    }

    public HOC getSendGiftResultLog(SendGiftResult sendGiftResult) {
        int i;
        Gift findGiftById = GiftManager.inst().findGiftById(sendGiftResult.LJFF);
        if (findGiftById == null) {
            i = 0;
        } else {
            i = findGiftById.LJFF;
        }
        return new HOC(sendGiftResult.LJFF, findGiftById, sendGiftResult.LJIILIIL, sendGiftResult.LJIJJ, sendGiftResult.LJIJJLI, sendGiftResult.LJIIJJI, sendGiftResult.LJIIIIZZ, sendGiftResult.LJI, (long) i);
    }

    public void initGiftResourceManager(Context context) {
        HU9 hu9 = new HU9(context);
        hu9.LIZIZ = new Q3k();
        hu9.LIZ = new HUC(context);
        hu9.LJFF = 5;
        hu9.LJ = 3;
        if (LiveGiftResourceCacheSetting.INSTANCE.getValue() != 0) {
            hu9.LJI = LiveGiftResourceCacheSetting.INSTANCE.getValue();
        }
        Q4a.LIZ(hu9.LIZ());
    }

    public void monitorBroadcastClicked(long j) {
        Long valueOf = Long.valueOf(j);
        C3491GtA LIZ = C3491GtA.LJFF.LIZ("announcements_click");
        LIZ.LIZ();
        LIZ.LIZ("gift_id", (Number) valueOf);
        LIZ.LIZ("reason", "gift");
        LIZ.LIZ("scene", HLN.LIZ.LIZIZ().getDesc());
        LIZ.LIZLLL();
    }

    public void showBroadCaseEndPage(boolean z) {
        if (z) {
            C3491GtA LIZ = C3491GtA.LJFF.LIZ("travel_gift_collect_status");
            LIZ.LIZ();
            LIZ.LIZ("round", (Number) C4442HKh.LIZ);
            LIZ.LIZ("guide_from", C4524HNl.LIZ.LIZ);
            StringBuilder sb = new StringBuilder();
            sb.append(C4442HKh.LIZIZ);
            sb.append('/');
            sb.append(C4442HKh.LIZJ);
            LIZ.LIZ("collect_progress", sb.toString());
            LIZ.LIZLLL();
        }
    }

    public void logBoostCardLiveEndClick(int i) {
        String str;
        String str2;
        String str3 = C4461HLa.LJ;
        String str4 = C4461HLa.LJI;
        String str5 = C4461HLa.LJFF;
        Integer valueOf = Integer.valueOf(i);
        C3491GtA LIZ = C3491GtA.LJFF.LIZ("end_live_click");
        LIZ.LIZ();
        Map map = (Map) DataChannelGlobal.LIZLLL.LIZIZ(HEN.class);
        if (map == null || (str = (String) map.get("anchor_id")) == null) {
            str = "0";
        }
        LIZ.LIZ("anchor_id", str);
        LIZ.LIZ("task_id", str3);
        LIZ.LIZ("card_id", str4);
        LIZ.LIZ("task_source", str5);
        C3028Glh LIZIZ = C4100H7d.LIZ().LIZIZ();
        n.LIZIZ(LIZIZ, "");
        LIZ.LIZ("user_id", LIZIZ.LIZJ());
        if (valueOf != null) {
            if (valueOf.intValue() == 0) {
                str2 = "think_again";
            } else if (valueOf.intValue() == 1) {
                str2 = "confirm";
            }
            LIZ.LIZ("click_button", str2);
            LIZ.LIZLLL();
        }
        str2 = "no_selection";
        LIZ.LIZ("click_button", str2);
        LIZ.LIZLLL();
    }

    public String getAmountString(long j) {
        if (j >= LiveBroadcastPoorDeviceDelayDurationSetting.DEFAULT && j < 1000000) {
            return 0HH.LIZ(Locale.getDefault(), "%.1f", new Object[]{Double.valueOf(((double) j) / 1000.0d)}) + "K";
        } else if (j >= 1000000) {
            return 0HH.LIZ(Locale.getDefault(), "%.1f", new Object[]{Double.valueOf(((double) j) / 1000000.0d)}) + "M";
        } else if (j < 1000) {
            return String.valueOf(j);
        } else {
            StringBuffer stringBuffer = new StringBuffer(String.valueOf(j));
            stringBuffer.insert(1, ',');
            return stringBuffer.toString();
        }
    }

    public void openRechargeFAQPage(Context context) {
        String str;
        C4492HMf hMf = C4495HMi.LJIIJJI;
        if (context instanceof Activity) {
            Diamond diamond = hMf.LJII;
            if (diamond == null || (str = diamond.LIZJ) == null || str.length() == 0 || diamond.LIZLLL == 0 || diamond.LJ == 0) {
                C1313Fz8.LIZ(0b0.LJ(), 2131833723);
                return;
            }
            C4489HMc.LIZ.LIZ(hMf.LJFF);
            String value = LiveFirstRechargeWebUrlLynxFaq.INSTANCE.getValue();
            try {
                Uri.Builder buildUpon = Uri.parse(value).buildUpon();
                buildUpon.appendQueryParameter("gift_enter_from", hMf.LJFF);
                String str2 = diamond.LIZJ;
                if (str2 != null) {
                    str2.toString();
                } else {
                    str2 = null;
                }
                buildUpon.appendQueryParameter("price", str2);
                buildUpon.appendQueryParameter("diamond_count", String.valueOf(diamond.LIZLLL));
                buildUpon.appendQueryParameter("giving_count", String.valueOf(diamond.LJ));
                buildUpon.appendQueryParameter("title_ab", "0");
                buildUpon.appendQueryParameter("pay_method", "google_pay");
                String uri = buildUpon.build().toString();
                n.LIZIZ(uri, "");
                value = uri;
            } catch (Exception unused) {
            }
            0cm.LIZ(IActionHandlerService.class).handle(context, value);
        }
    }

    public AssetsModel getAssets(String str, long j) {
        return HT6.LIZ(j);
    }

    public String getAssetsPath(String str, long j) {
        return HT6.LIZ(j, true);
    }

    public TX2 getGiftInterceptor(long j, boolean z) {
        return new C4504HMr(j);
    }

    public long getEffectIdWithGiftId(Gift gift, long j) {
        return C4582HPr.LIZ.LIZ(gift, Long.valueOf(j));
    }

    public boolean isAssetsDownloaded(String str, long j) {
        return C6103HuC.LIZ.LIZ().LIZIZ(j);
    }

    public void monitorBroadcastMonitor(long j, boolean z) {
        String str;
        Long valueOf = Long.valueOf(j);
        C3491GtA LIZ = C3491GtA.LJFF.LIZ("receive_announcements");
        LIZ.LIZ();
        LIZ.LIZ("gift_id", (Number) valueOf);
        LIZ.LIZ("reason", "gift");
        LIZ.LIZ("scene", HLN.LIZ.LIZIZ().getDesc());
        if (z) {
            str = "1";
        } else {
            str = "0";
        }
        LIZ.LIZ("is_own_send", str);
        LIZ.LIZLLL();
    }

    public void playGiftVideo(long j, C4514HNb hNb) {
        HMG hmg = new HMG();
        GiftMessage giftMessage = new GiftMessage();
        CommonMessageData commonMessageData = new CommonMessageData();
        commonMessageData.LIZJ = 0;
        commonMessageData.LIZLLL = GMS.LIZ();
        giftMessage.LJJJJ = commonMessageData;
        giftMessage.LJ = j;
        giftMessage.LJIJJLI = true;
        giftMessage.LJIIJ = true;
        giftMessage.LIZ = true;
        giftMessage.LIZJ = 0Ur.LIZ.LIZ();
        hmg.LIZ = giftMessage;
        hmg.LIZ.LIZIZ = hNb;
        C2675Gg0.LIZ().LIZ((Object) hmg);
    }

    public void setGiftAnimationEngine(HPY hpy, HMB hmb) {
        C4483HLw LIZ = C4483HLw.LIZ();
        if (!LIZ.LIZ.containsKey(hpy)) {
            LIZ.LIZ.put(hpy, hmb);
            return;
        }
        throw new Exception("GiftType " + hpy.toString() + " already has been set, or you should call release firstly.");
    }

    public void downloadAssets(long j, C6241HwQ hwQ, int i) {
        HT6.LIZ(Long.valueOf(j), hwQ, i);
    }

    public GiftMessage getGiftMessage(long j, SendGiftResult sendGiftResult, User user) {
        return C4508HMv.LIZ(j, sendGiftResult, (User) null, user);
    }

    public void loadBehavior(Context context, DataChannel dataChannel, int i) {
        if (i == 158.FAST_GIFT.ordinal()) {
            158.FAST_GIFT.load(dataChannel, new C4057H5m(context));
        } else if (i == 158.GIFT.ordinal()) {
            158.GIFT.load(dataChannel, new HZN(dataChannel));
        } else if (i == 158.DUMMY_GIFT.ordinal()) {
            158.DUMMY_GIFT.load(dataChannel, new C2118GSx(dataChannel));
        } else if (i == 158.DUMMY_FAST_GIFT.ordinal()) {
            C2119GSy gSy = new C2119GSy(dataChannel);
            Room room = (Room) dataChannel.LIZIZ(C1064Fv7.class);
            if (room != null && GiftManager.inst().getFastGift(room.getId()) != null) {
                158.DUMMY_FAST_GIFT.load(dataChannel, gSy);
            }
        }
    }

    public void syncGiftList(C4593HQc hQc, long j, int i, boolean z) {
        GiftManager.inst().syncGiftList(hQc, j, i, z, "");
    }

    public void monitorGiftIconShow(boolean z, C2088GRt gRt, String str, String str2) {
        String str3;
        String str4;
        M12.LIZ(gRt, str, str2);
        C3491GtA LIZ = C3491GtA.LJFF.LIZ("gift_icon_show");
        LIZ.LIZ("is_click_available", z ? 1 : 0);
        if (!z) {
            str3 = gRt.getDescription();
        } else {
            str3 = "";
        }
        LIZ.LIZ("un_available_click_reason", str3);
        LIZ.LIZ("user_type", str);
        LIZ.LIZ("icon_show_position", str2);
        if (0b0.LJFF()) {
            str4 = "portrait";
        } else {
            str4 = "landscape";
        }
        LIZ.LIZ("room_orientation", str4);
        LIZ.LIZ(new C3441GsM("user_live_duration"));
        LIZ.LIZ();
        LIZ.LIZLLL();
    }

    public PgU<1c5<SendGiftResult>> sendGift(long j, long j2, long j3, int i, HashMap<String, String> hashMap) {
        return ((GiftRetrofitApi) 0yx.LIZ().LIZ(GiftRetrofitApi.class)).send(j, j2, j3, i, hashMap);
    }

    public void sendGiftPoll(long j, long j2, Room room, DataChannel dataChannel, HNT hnt) {
        long j3 = j;
        Gift findGiftById = GiftManager.inst().findGiftById(j3);
        Room room2 = room;
        C4510HMx hMx = new C4510HMx(j3, 1, false, room2, 0);
        boolean z = true;
        if (findGiftById.LJ == 1) {
            z = false;
        }
        hMx.LJIILIIL = z;
        String str = "click";
        hMx.LJIIZILJ = str;
        hMx.LJIJI = findGiftById.LJJIJLIJ;
        hMx.LJII = findGiftById.LJFF;
        hMx.LJIJ = "0";
        hMx.LJIIJJI = room2.getOwner();
        hMx.LJIIL = "quick_poll";
        hMx.LJJIII = hnt;
        hMx.LJIJJ = findGiftById.LJIILLIIL;
        hMx.LJJII = j2;
        dataChannel.LIZJ(HNP.class, hMx);
        if (C5065HdS.LIZ.LIZ) {
            str = "call";
        }
        HO5.LJIIIIZZ.LIZ(findGiftById.LIZLLL, false, hMx.LJIIL, str, 0, (Integer) null, 0L, (List<Long>) null);
    }

    public void sendGiftInternal(Context context, long j, int i, HashMap<String, String> hashMap, HNK hnk, int i2, String str, String str2) {
        Room room = (Room) DataChannelGlobal.LIZLLL.LIZIZ(HEP.class);
        if (room != null && room.getOwner() != null) {
            long j2 = j;
            0hX r2 = new 0hX(j2, i, room, C4524HNl.LIZ.LJIIJ, hnk, i2, str);
            String str3 = str2;
            M12.LIZ(str3);
            r2.LIZ = str3;
            C2675Gg0.LIZ().LIZ((Object) new HMU(r2));
        }
    }
}
