package com.ss.android.ugc.aweme.web.jsbridge;

import X.0CB;
import X.0CH;
import X.3af;
import X.6Is;
import X.C0878KKv;
import X.C2487Kta;
import X.FIu;
import android.app.Activity;
import android.content.Context;
import android.content.ContextWrapper;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.aweme.fe.base.BaseCommonJavaMethod;
import java.lang.ref.WeakReference;
import org.json.JSONObject;

public final class AdCommonJsMethod extends BaseCommonJavaMethod implements 6Is {
    public static final C2487Kta LIZIZ = new C2487Kta((byte) 0);
    public final WeakReference<Context> LIZ;
    public final C0878KKv LIZJ;

    static {
        Covode.recordClassIndex(124426);
    }

    public final void onStateChanged(0CH r1, 0CB r2) {
        super.onStateChanged(r1, r2);
    }

    /* JADX WARNING: Illegal instructions before constructor call */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public AdCommonJsMethod(java.lang.ref.WeakReference<android.content.Context> r6, X.C0878KKv r7) {
        /*
            r5 = this;
            X.M12.LIZ((java.lang.Object) r6)
            if (r7 == 0) goto L_0x002f
            X.KKi r0 = r7.LIZIZ
        L_0x0007:
            r5.<init>(r0)
            r5.LIZ = r6
            r5.LIZJ = r7
            java.lang.String r4 = "openAdUrl"
            java.lang.String r3 = "messageTip"
            java.lang.String r2 = "sendAdLog"
            if (r7 == 0) goto L_0x002e
            X.KKi r1 = r7.LIZIZ
            if (r1 == 0) goto L_0x0024
            r0 = r5
            r1.LIZ((java.lang.String) r2, (X.HzT) r0)
            r1.LIZ((java.lang.String) r3, (X.HzT) r0)
            r1.LIZ((java.lang.String) r4, (X.HzT) r0)
        L_0x0024:
            r0 = r5
            r7.LIZ((java.lang.String) r2, (X.HzT) r0)
            r7.LIZ((java.lang.String) r3, (X.HzT) r0)
            r7.LIZ((java.lang.String) r4, (X.HzT) r0)
        L_0x002e:
            return
        L_0x002f:
            r0 = 0
            goto L_0x0007
        */
        throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.web.jsbridge.AdCommonJsMethod.<init>(java.lang.ref.WeakReference, X.KKv):void");
    }

    private final void LIZ(JSONObject jSONObject, FIu fIu) {
        Activity activity;
        Context context;
        if (jSONObject.has("msg")) {
            WeakReference<Context> weakReference = this.mContextRef;
            if (weakReference != null && (context = (Context) weakReference.get()) != null) {
                while (true) {
                    if (!(context instanceof Activity)) {
                        if (context instanceof ContextWrapper) {
                            context = ((ContextWrapper) context).getBaseContext();
                            if (context == null) {
                                break;
                            }
                        } else {
                            break;
                        }
                    } else {
                        activity = (Activity) context;
                        break;
                    }
                }
            }
            activity = null;
            if (activity instanceof Activity) {
                3af r1 = new 3af(activity);
                r1.LIZ(jSONObject.getString("msg"));
                3af.LIZ(r1);
            }
            if (fIu != null) {
                fIu.LIZ((Object) null);
            }
        } else if (fIu != null) {
            fIu.LIZ(-1, "empty msg");
        }
    }

    /* JADX WARNING: Code restructure failed: missing block: B:63:0x01a3, code lost:
        if (r4 != null) goto L_0x0192;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:68:0x01af, code lost:
        r0 = (r0 = r4.LJIIL).getAwemeRawAd();
     */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public final void handle(org.json.JSONObject r18, X.FIu r19) {
        /*
            r17 = this;
            r2 = r17
            r10 = r2
            r7 = r18
            if (r7 != 0) goto L_0x0008
            return
        L_0x0008:
            java.lang.String r0 = "func"
            java.lang.String r5 = r7.optString(r0)
            X.Kt4 r0 = X.C2455Kt4.LIZIZ
            X.Kro r4 = r0.LIZ()
            java.lang.String r3 = ""
            if (r5 != 0) goto L_0x0024
        L_0x0018:
            X.DSB r0 = new X.DSB
            kotlin.h.b.n.LIZIZ(r5, r3)
            r0.<init>(r5, r7)
            X.CqM.LIZ(r0)
            return
        L_0x0024:
            int r1 = r5.hashCode()
            r0 = -1690732780(0xffffffff9b397714, float:-1.5341318E-22)
            r6 = r19
            if (r1 == r0) goto L_0x0363
            r0 = -1491591(0xffffffffffe93d79, float:NaN)
            java.lang.String r2 = "draw_ad"
            r12 = 1
            r15 = 0
            if (r1 == r0) goto L_0x01be
            r0 = 1518137890(0x5a7cf222, float:1.77994805E16)
            if (r1 == r0) goto L_0x003e
            goto L_0x0018
        L_0x003e:
            java.lang.String r0 = "openAdUrl"
            boolean r0 = r5.equals(r0)
            if (r0 == 0) goto L_0x0018
            org.json.JSONObject r8 = new org.json.JSONObject
            r8.<init>()
            java.lang.String r11 = "open_status"
            r8.put(r11, r15)
            java.lang.String r9 = "web_status"
            r8.put(r9, r15)
            java.lang.String r1 = "code"
            r8.put(r1, r12)
            java.lang.String r0 = "open_url"
            java.lang.String r13 = r7.optString(r0)
            java.lang.String r0 = "web_url"
            java.lang.String r12 = r7.optString(r0)
            java.lang.String r0 = "web_title"
            java.lang.String r14 = r7.optString(r0)
            java.lang.String r0 = "use_packaged_open_url"
            boolean r16 = r7.optBoolean(r0, r15)
            java.lang.String r0 = "use_packaged_web_url"
            boolean r15 = r7.optBoolean(r0, r15)
            if (r16 == 0) goto L_0x0082
            if (r13 == 0) goto L_0x01a9
            int r0 = r13.length()
            if (r0 <= 0) goto L_0x01a9
        L_0x0082:
            if (r15 == 0) goto L_0x008c
            if (r12 == 0) goto L_0x0182
            int r0 = r12.length()
            if (r0 <= 0) goto L_0x0182
        L_0x008c:
            java.lang.ref.WeakReference<android.content.Context> r0 = r10.LIZ
            java.lang.Object r15 = r0.get()
            android.content.Context r15 = (android.content.Context) r15
            if (r4 == 0) goto L_0x017f
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r4.LJIIL
        L_0x0098:
            boolean r0 = X.C2553Kue.LIZ((android.content.Context) r15, (java.lang.String) r13, (com.ss.android.ugc.aweme.feed.model.Aweme) r0)
            if (r0 == 0) goto L_0x00a9
            r0 = 1
            r8.put(r11, r0)
        L_0x00a2:
            if (r6 == 0) goto L_0x0018
            r6.LIZ(r8)
            goto L_0x0018
        L_0x00a9:
            r0 = 1
            java.lang.ref.WeakReference<android.content.Context> r0 = r10.LIZ
            java.lang.Object r15 = r0.get()
            android.content.Context r15 = (android.content.Context) r15
            r0 = 0
            boolean r0 = X.C2553Kue.LIZ((android.content.Context) r15, (java.lang.String) r13, (boolean) r0)
            if (r0 == 0) goto L_0x0109
            r0 = 1
            r8.put(r11, r0)
            if (r4 == 0) goto L_0x00a2
            X.Kvn r11 = X.C2625Kvo.LIZ()
            r11.LIZ = r2
            java.lang.String r9 = "open_url_app"
            r11.LIZIZ = r9
            long r0 = r4.LIZ
            java.lang.Long r0 = java.lang.Long.valueOf(r0)
            r11.LIZ((java.lang.Long) r0)
            java.lang.String r0 = r4.LIZIZ
            r11.LJ(r0)
            long r0 = r4.LIZJ
            java.lang.Long r0 = java.lang.Long.valueOf(r0)
            r11.LIZIZ((java.lang.Long) r0)
            java.lang.ref.WeakReference<android.content.Context> r0 = r10.LIZ
            java.lang.Object r0 = r0.get()
            android.content.Context r0 = (android.content.Context) r0
            r11.LIZ((android.content.Context) r0)
            long r0 = r4.LIZ
            java.lang.String r12 = java.lang.String.valueOf(r0)
            java.lang.String r11 = r4.LIZIZ
            long r0 = r4.LIZJ
            java.lang.String r0 = java.lang.String.valueOf(r0)
            X.KGj r0 = X.C0339K0c.LIZ(r2, r9, r12, r11, r0)
            r0.LIZJ()
            X.KtP r0 = new X.KtP
            r0.<init>(r4, r10, r4)
            X.C2553Kue.LIZ((X.FML) r0)
            goto L_0x00a2
        L_0x0109:
            java.lang.ref.WeakReference<android.content.Context> r0 = r10.LIZ
            java.lang.Object r11 = r0.get()
            android.content.Context r11 = (android.content.Context) r11
            if (r4 == 0) goto L_0x0120
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r4.LJIIL
        L_0x0115:
            boolean r0 = X.C2553Kue.LIZ((android.content.Context) r11, (com.ss.android.ugc.aweme.feed.model.Aweme) r0, (java.lang.String) r12, (java.lang.String) r14)
            if (r0 == 0) goto L_0x0122
            r0 = 1
            r8.put(r9, r0)
            goto L_0x00a2
        L_0x0120:
            r0 = 0
            goto L_0x0115
        L_0x0122:
            r11 = 1
            java.lang.ref.WeakReference<android.content.Context> r0 = r10.LIZ
            java.lang.Object r0 = r0.get()
            android.content.Context r0 = (android.content.Context) r0
            boolean r0 = X.C2553Kue.LIZ((android.content.Context) r0, (java.lang.String) r12, (java.lang.String) r14)
            if (r0 == 0) goto L_0x0179
            r8.put(r9, r11)
            if (r4 == 0) goto L_0x00a2
            X.Kvn r11 = X.C2625Kvo.LIZ()
            r11.LIZ = r2
            java.lang.String r9 = "open_url_h5"
            r11.LIZIZ = r9
            long r0 = r4.LIZ
            java.lang.Long r0 = java.lang.Long.valueOf(r0)
            r11.LIZ((java.lang.Long) r0)
            java.lang.String r0 = r4.LIZIZ
            r11.LJ(r0)
            long r0 = r4.LIZJ
            java.lang.Long r0 = java.lang.Long.valueOf(r0)
            r11.LIZIZ((java.lang.Long) r0)
            java.lang.ref.WeakReference<android.content.Context> r0 = r10.LIZ
            java.lang.Object r0 = r0.get()
            android.content.Context r0 = (android.content.Context) r0
            r11.LIZ((android.content.Context) r0)
            long r0 = r4.LIZ
            java.lang.String r11 = java.lang.String.valueOf(r0)
            java.lang.String r10 = r4.LIZIZ
            long r0 = r4.LIZJ
            java.lang.String r0 = java.lang.String.valueOf(r0)
            X.KGj r0 = X.C0339K0c.LIZ(r2, r9, r11, r10, r0)
            r0.LIZJ()
            goto L_0x00a2
        L_0x0179:
            r0 = 0
            r8.put(r1, r0)
            goto L_0x00a2
        L_0x017f:
            r0 = 0
            goto L_0x0098
        L_0x0182:
            if (r4 == 0) goto L_0x01a2
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r4.LJIIL
            if (r0 == 0) goto L_0x01a2
            com.ss.android.ugc.aweme.feed.model.AwemeRawAd r0 = r0.getAwemeRawAd()
            if (r0 == 0) goto L_0x01a2
            java.lang.String r12 = r0.getWebUrl()
        L_0x0192:
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r4.LJIIL
            if (r0 == 0) goto L_0x01a6
            com.ss.android.ugc.aweme.feed.model.AwemeRawAd r0 = r0.getAwemeRawAd()
            if (r0 == 0) goto L_0x01a6
            java.lang.String r14 = r0.getWebTitle()
            goto L_0x008c
        L_0x01a2:
            r12 = 0
            if (r4 == 0) goto L_0x01a6
            goto L_0x0192
        L_0x01a6:
            r14 = 0
            goto L_0x008c
        L_0x01a9:
            if (r4 == 0) goto L_0x01bb
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r4.LJIIL
            if (r0 == 0) goto L_0x01bb
            com.ss.android.ugc.aweme.feed.model.AwemeRawAd r0 = r0.getAwemeRawAd()
            if (r0 == 0) goto L_0x01bb
            java.lang.String r13 = r0.getOpenUrl()
            goto L_0x0082
        L_0x01bb:
            r13 = 0
            goto L_0x0082
        L_0x01be:
            r0 = 1
            java.lang.String r0 = "sendAdLog"
            boolean r0 = r5.equals(r0)
            if (r0 == 0) goto L_0x0018
            r9 = -1
            java.lang.String r0 = "tag"
            java.lang.String r12 = r7.optString(r0)     // Catch:{ Exception -> 0x0356 }
            java.lang.String r0 = "label"
            java.lang.String r11 = r7.optString(r0)     // Catch:{ Exception -> 0x0356 }
            java.lang.String r0 = "extParam"
            org.json.JSONObject r8 = r7.optJSONObject(r0)     // Catch:{ Exception -> 0x0356 }
            java.lang.String r0 = "has_ad_info"
            r1 = 0
            boolean r13 = r7.optBoolean(r0, r1)     // Catch:{ Exception -> 0x0356 }
            java.lang.String r0 = "is_live"
            boolean r1 = r7.optBoolean(r0, r1)     // Catch:{ Exception -> 0x0356 }
            if (r13 == 0) goto L_0x025c
            java.lang.String r0 = "creative_id"
            java.lang.String r13 = r7.optString(r0)     // Catch:{ Exception -> 0x0356 }
            java.lang.String r0 = "log_extra"
            java.lang.String r4 = r7.optString(r0)     // Catch:{ Exception -> 0x0356 }
            java.lang.String r0 = "group_id"
            java.lang.String r2 = r7.optString(r0)     // Catch:{ Exception -> 0x0356 }
            boolean r0 = android.text.TextUtils.isEmpty(r13)     // Catch:{ Exception -> 0x0356 }
            if (r0 == 0) goto L_0x020a
            if (r6 == 0) goto L_0x0018
            java.lang.String r0 = "empty creativeId"
            r6.LIZ(r9, r0)     // Catch:{ Exception -> 0x0356 }
            goto L_0x0018
        L_0x020a:
            X.Kvn r1 = X.C2625Kvo.LIZ()     // Catch:{ Exception -> 0x0356 }
            r1.LIZ = r12     // Catch:{ Exception -> 0x0356 }
            r1.LIZIZ = r11     // Catch:{ Exception -> 0x0356 }
            r1.LIZJ = r13     // Catch:{ Exception -> 0x0356 }
            r1.LJ(r4)     // Catch:{ Exception -> 0x0356 }
            r1.LIZLLL = r2     // Catch:{ Exception -> 0x0356 }
            r1.LIZIZ((org.json.JSONObject) r8)     // Catch:{ Exception -> 0x0356 }
            java.lang.ref.WeakReference<android.content.Context> r0 = r10.LIZ     // Catch:{ Exception -> 0x0356 }
            java.lang.Object r0 = r0.get()     // Catch:{ Exception -> 0x0356 }
            android.content.Context r0 = (android.content.Context) r0     // Catch:{ Exception -> 0x0356 }
            r1.LIZ((android.content.Context) r0)     // Catch:{ Exception -> 0x0356 }
            kotlin.h.b.n.LIZIZ(r12, r3)     // Catch:{ Exception -> 0x0356 }
            kotlin.h.b.n.LIZIZ(r11, r3)     // Catch:{ Exception -> 0x0356 }
            kotlin.h.b.n.LIZIZ(r13, r3)     // Catch:{ Exception -> 0x0356 }
            X.KGj r4 = X.C0339K0c.LIZ(r12, r11, r13, r4, r2)     // Catch:{ Exception -> 0x0356 }
            if (r8 == 0) goto L_0x0251
            java.util.Iterator r2 = r8.keys()     // Catch:{ Exception -> 0x0356 }
            kotlin.h.b.n.LIZIZ(r2, r3)     // Catch:{ Exception -> 0x0356 }
        L_0x023d:
            boolean r0 = r2.hasNext()     // Catch:{ Exception -> 0x0356 }
            if (r0 == 0) goto L_0x0251
            java.lang.Object r1 = r2.next()     // Catch:{ Exception -> 0x0356 }
            java.lang.String r1 = (java.lang.String) r1     // Catch:{ Exception -> 0x0356 }
            java.lang.Object r0 = r8.opt(r1)     // Catch:{ Exception -> 0x0356 }
            r4.LIZIZ(r1, r0)     // Catch:{ Exception -> 0x0356 }
            goto L_0x023d
        L_0x0251:
            r4.LIZJ()     // Catch:{ Exception -> 0x0356 }
            if (r6 == 0) goto L_0x0018
            r0 = 0
            r6.LIZ(r0)     // Catch:{ Exception -> 0x0356 }
            goto L_0x0018
        L_0x025c:
            kotlin.h.b.n.LIZIZ(r12, r3)     // Catch:{ Exception -> 0x0356 }
            int r0 = r12.length()     // Catch:{ Exception -> 0x0356 }
            if (r0 <= 0) goto L_0x029c
            kotlin.h.b.n.LIZIZ(r11, r3)     // Catch:{ Exception -> 0x0356 }
            int r0 = r11.length()     // Catch:{ Exception -> 0x0356 }
            if (r0 <= 0) goto L_0x029c
            if (r1 == 0) goto L_0x029c
            java.util.LinkedHashMap r4 = new java.util.LinkedHashMap     // Catch:{ Exception -> 0x0356 }
            r4.<init>()     // Catch:{ Exception -> 0x0356 }
            if (r8 == 0) goto L_0x0297
            java.util.Iterator r2 = r8.keys()     // Catch:{ Exception -> 0x0356 }
            kotlin.h.b.n.LIZIZ(r2, r3)     // Catch:{ Exception -> 0x0356 }
        L_0x027e:
            boolean r0 = r2.hasNext()     // Catch:{ Exception -> 0x0356 }
            if (r0 == 0) goto L_0x0297
            java.lang.Object r1 = r2.next()     // Catch:{ Exception -> 0x0356 }
            java.lang.String r1 = (java.lang.String) r1     // Catch:{ Exception -> 0x0356 }
            java.lang.Object r0 = r8.opt(r1)     // Catch:{ Exception -> 0x0356 }
            if (r0 == 0) goto L_0x027e
            kotlin.h.b.n.LIZIZ(r1, r3)     // Catch:{ Exception -> 0x0356 }
            r4.put(r1, r0)     // Catch:{ Exception -> 0x0356 }
            goto L_0x027e
        L_0x0297:
            X.Hns.LIZ(r12, r11, r4)     // Catch:{ Exception -> 0x0356 }
            goto L_0x0018
        L_0x029c:
            int r0 = r12.length()     // Catch:{ Exception -> 0x0356 }
            if (r0 <= 0) goto L_0x034d
            kotlin.h.b.n.LIZIZ(r11, r3)     // Catch:{ Exception -> 0x0356 }
            int r0 = r11.length()     // Catch:{ Exception -> 0x0356 }
            if (r0 <= 0) goto L_0x034d
            if (r4 == 0) goto L_0x034d
            X.Kvn r13 = X.C2625Kvo.LIZ()     // Catch:{ Exception -> 0x0356 }
            r13.LIZ = r12     // Catch:{ Exception -> 0x0356 }
            r13.LIZIZ = r11     // Catch:{ Exception -> 0x0356 }
            long r0 = r4.LIZ     // Catch:{ Exception -> 0x0356 }
            java.lang.Long r0 = java.lang.Long.valueOf(r0)     // Catch:{ Exception -> 0x0356 }
            r13.LIZ((java.lang.Long) r0)     // Catch:{ Exception -> 0x0356 }
            java.lang.String r0 = r4.LIZIZ     // Catch:{ Exception -> 0x0356 }
            r13.LJ(r0)     // Catch:{ Exception -> 0x0356 }
            long r0 = r4.LIZJ     // Catch:{ Exception -> 0x0356 }
            java.lang.Long r0 = java.lang.Long.valueOf(r0)     // Catch:{ Exception -> 0x0356 }
            r13.LIZIZ((java.lang.Long) r0)     // Catch:{ Exception -> 0x0356 }
            r13.LIZIZ((org.json.JSONObject) r8)     // Catch:{ Exception -> 0x0356 }
            java.lang.ref.WeakReference<android.content.Context> r0 = r10.LIZ     // Catch:{ Exception -> 0x0356 }
            java.lang.Object r0 = r0.get()     // Catch:{ Exception -> 0x0356 }
            android.content.Context r0 = (android.content.Context) r0     // Catch:{ Exception -> 0x0356 }
            r13.LIZ((android.content.Context) r0)     // Catch:{ Exception -> 0x0356 }
            long r0 = r4.LIZ     // Catch:{ Exception -> 0x0356 }
            java.lang.String r13 = java.lang.String.valueOf(r0)     // Catch:{ Exception -> 0x0356 }
            java.lang.String r10 = r4.LIZIZ     // Catch:{ Exception -> 0x0356 }
            long r0 = r4.LIZJ     // Catch:{ Exception -> 0x0356 }
            java.lang.String r0 = java.lang.String.valueOf(r0)     // Catch:{ Exception -> 0x0356 }
            X.KGj r13 = X.C0339K0c.LIZ(r12, r11, r13, r10, r0)     // Catch:{ Exception -> 0x0356 }
            if (r8 == 0) goto L_0x0309
            java.util.Iterator r10 = r8.keys()     // Catch:{ Exception -> 0x0356 }
            kotlin.h.b.n.LIZIZ(r10, r3)     // Catch:{ Exception -> 0x0356 }
        L_0x02f5:
            boolean r0 = r10.hasNext()     // Catch:{ Exception -> 0x0356 }
            if (r0 == 0) goto L_0x0309
            java.lang.Object r1 = r10.next()     // Catch:{ Exception -> 0x0356 }
            java.lang.String r1 = (java.lang.String) r1     // Catch:{ Exception -> 0x0356 }
            java.lang.Object r0 = r8.opt(r1)     // Catch:{ Exception -> 0x0356 }
            r13.LIZIZ(r1, r0)     // Catch:{ Exception -> 0x0356 }
            goto L_0x02f5
        L_0x0309:
            r13.LIZJ()     // Catch:{ Exception -> 0x0356 }
            boolean r0 = kotlin.h.b.n.LIZ(r12, r2)     // Catch:{ Exception -> 0x0356 }
            if (r0 == 0) goto L_0x0345
            java.lang.String r0 = "click"
            boolean r0 = kotlin.h.b.n.LIZ(r11, r0)     // Catch:{ Exception -> 0x0356 }
            if (r0 == 0) goto L_0x0345
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r4.LJIIL     // Catch:{ Exception -> 0x0356 }
            if (r0 == 0) goto L_0x033c
            com.ss.android.ugc.aweme.feed.model.AwemeRawAd r0 = r0.getAwemeRawAd()     // Catch:{ Exception -> 0x0356 }
            if (r0 == 0) goto L_0x033c
            X.LFW r10 = X.LFW.LIZ     // Catch:{ Exception -> 0x0356 }
            java.lang.String r11 = "click"
            com.ss.android.ugc.aweme.base.model.UrlModel r12 = r0.getClickTrackUrlList()     // Catch:{ Exception -> 0x0356 }
            java.lang.Long r13 = r0.getCreativeId()     // Catch:{ Exception -> 0x0356 }
            java.lang.String r14 = r0.getLogExtra()     // Catch:{ Exception -> 0x0356 }
            X.KtU r15 = new X.KtU     // Catch:{ Exception -> 0x0356 }
            r15.<init>(r4)     // Catch:{ Exception -> 0x0356 }
            r10.LIZ((java.lang.String) r11, (com.ss.android.ugc.aweme.base.model.UrlModel) r12, (java.lang.Long) r13, (java.lang.String) r14, (X.C4950LsD<? super X.C2624Kvn, ? super java.lang.Boolean, ? extends X.C2624Kvn>) r15)     // Catch:{ Exception -> 0x0356 }
        L_0x033c:
            java.lang.String r0 = "refer"
            java.lang.String r0 = r8.getString(r0)     // Catch:{ Exception -> 0x0356 }
            X.C2272Kq7.LIZ(r2, r0)     // Catch:{ Exception -> 0x0356 }
        L_0x0345:
            if (r6 == 0) goto L_0x0018
            r0 = 0
            r6.LIZ(r0)     // Catch:{ Exception -> 0x0356 }
            goto L_0x0018
        L_0x034d:
            if (r6 == 0) goto L_0x0018
            java.lang.String r0 = "empty tag or label"
            r6.LIZ(r9, r0)     // Catch:{ Exception -> 0x0356 }
            goto L_0x0018
        L_0x0356:
            r0 = move-exception
            X.2kf.LIZ(r0)
            if (r6 == 0) goto L_0x0018
            java.lang.String r0 = "unknown error"
            r6.LIZ(r9, r0)
            goto L_0x0018
        L_0x0363:
            java.lang.String r0 = "messageTip"
            boolean r0 = r5.equals(r0)
            if (r0 == 0) goto L_0x0018
            r2.LIZ(r7, r6)
            goto L_0x0018
        */
        throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.web.jsbridge.AdCommonJsMethod.handle(org.json.JSONObject, X.FIu):void");
    }
}
