package com.ss.android.ugc.aweme.newfollow.statistics;

import X.Lnj;
import com.bytedance.covode.number.Covode;
import com.bytedance.frameworks.apm.trace.MethodCollector;
import com.ss.android.ugc.aweme.follow.statistics.IFollowStatisticsService;

public class FollowStatisticsServiceImpl implements IFollowStatisticsService {
    static {
        Covode.recordClassIndex(94907);
    }

    public static IFollowStatisticsService LIZ() {
        MethodCollector.i(199);
        IFollowStatisticsService iFollowStatisticsService = (IFollowStatisticsService) Lnj.LIZ(IFollowStatisticsService.class, false);
        if (iFollowStatisticsService != null) {
            MethodCollector.o(199);
            return iFollowStatisticsService;
        }
        Object LIZIZ = Lnj.LIZIZ(IFollowStatisticsService.class, false);
        if (LIZIZ != null) {
            IFollowStatisticsService iFollowStatisticsService2 = (IFollowStatisticsService) LIZIZ;
            MethodCollector.o(199);
            return iFollowStatisticsService2;
        }
        if (Lnj.E == null) {
            synchronized (IFollowStatisticsService.class) {
                try {
                    if (Lnj.E == null) {
                        Lnj.E = new FollowStatisticsServiceImpl();
                    }
                } catch (Throwable th) {
                    MethodCollector.o(199);
                    throw th;
                }
            }
        }
        FollowStatisticsServiceImpl followStatisticsServiceImpl = (FollowStatisticsServiceImpl) Lnj.E;
        MethodCollector.o(199);
        return followStatisticsServiceImpl;
    }

    /* JADX WARNING: Code restructure failed: missing block: B:4:0x002e, code lost:
        if (r0 == null) goto L_0x0030;
     */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public final void LIZ(com.ss.android.ugc.aweme.feed.model.Aweme r6, java.lang.String r7, java.lang.String r8, java.lang.String r9) {
        /*
            r5 = this;
            if (r6 == 0) goto L_0x00b6
            X.2aZ r2 = new X.2aZ
            r2.<init>()
            java.lang.String r4 = "enter_from"
            r2.LIZ((java.lang.String) r4, (java.lang.String) r7)
            java.lang.String r1 = "enter_method"
            java.lang.String r0 = "click"
            r2.LIZ((java.lang.String) r1, (java.lang.String) r0)
            java.lang.String r0 = "reply_to_comment_id"
            r2.LIZ((java.lang.String) r0, (java.lang.String) r9)
            java.lang.String r1 = X.C69024wQ.LIZIZ((com.ss.android.ugc.aweme.feed.model.Aweme) r6)
            java.lang.String r0 = "request_id"
            r2.LIZ((java.lang.String) r0, (java.lang.String) r1)
            r1 = -1
            r3 = 13
            int r0 = r6.getAwemeType()
            if (r0 != r3) goto L_0x00b7
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r6.getForwardItem()
            if (r0 != 0) goto L_0x00b8
        L_0x0030:
            java.lang.Integer r1 = java.lang.Integer.valueOf(r1)
            java.lang.String r0 = "is_photo"
            r2.LIZ((java.lang.String) r0, (java.lang.Integer) r1)
            int r0 = r6.getAwemeType()
            if (r0 != r3) goto L_0x0083
            java.lang.String r0 = "page_type"
            r2.LIZ((java.lang.String) r0, (java.lang.String) r8)
            java.lang.String r1 = "is_reposted"
            java.lang.String r0 = "1"
            r2.LIZ((java.lang.String) r1, (java.lang.String) r0)
            java.lang.String r1 = r6.getForwardCommentId()
            java.lang.String r0 = "repost_comment_id"
            r2.LIZ((java.lang.String) r0, (java.lang.String) r1)
            java.lang.String r1 = r6.getFromGroupId()
            java.lang.String r0 = "from_group_id"
            r2.LIZ((java.lang.String) r0, (java.lang.String) r1)
            java.lang.String r0 = r6.getForwardGroupId()
            boolean r0 = android.text.TextUtils.isEmpty(r0)
            if (r0 != 0) goto L_0x0070
            java.lang.String r1 = r6.getForwardGroupId()
            java.lang.String r0 = "forward_group_id"
            r2.LIZ((java.lang.String) r0, (java.lang.String) r1)
        L_0x0070:
            java.lang.String r0 = r6.getForwardUserId()
            boolean r0 = android.text.TextUtils.isEmpty(r0)
            if (r0 != 0) goto L_0x0083
            java.lang.String r1 = r6.getForwardUserId()
            java.lang.String r0 = "forward_user_id"
            r2.LIZ((java.lang.String) r0, (java.lang.String) r1)
        L_0x0083:
            org.json.JSONObject r2 = r2.LIZ()
            com.ss.android.ugc.aweme.common.MobClick r1 = com.ss.android.ugc.aweme.common.MobClick.obtain()
            java.lang.String r3 = "comment"
            r1.setEventName(r3)
            r1.setLabelName(r7)
            java.lang.String r0 = r6.getAid()
            r1.setValue(r0)
            r1.setJsonObject(r2)
            X.C12422nK.onEvent(r1)
            X.2UX r2 = new X.2UX
            r2.<init>()
            r2.LIZ((java.lang.String) r4, (java.lang.String) r7)
            java.lang.String r1 = r6.getAid()
            java.lang.String r0 = "group_id"
            r2.LIZ((java.lang.String) r0, (java.lang.String) r1)
            java.util.Map<java.lang.String, java.lang.String> r0 = r2.LIZ
            X.C12422nK.LIZ((java.lang.String) r3, (java.util.Map<java.lang.String, java.lang.String>) r0)
        L_0x00b6:
            return
        L_0x00b7:
            r0 = r6
        L_0x00b8:
            int r1 = r0.getAwemeType()
            r0 = 2
            if (r1 != r0) goto L_0x00c2
            r1 = 1
            goto L_0x0030
        L_0x00c2:
            r1 = 0
            goto L_0x0030
        */
        throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.newfollow.statistics.FollowStatisticsServiceImpl.LIZ(com.ss.android.ugc.aweme.feed.model.Aweme, java.lang.String, java.lang.String, java.lang.String):void");
    }
}
