package com.ss.android.ugc.aweme.bullet.bridge.ad;

import X.0CB;
import X.0CH;
import X.4UQ;
import X.6Is;
import X.C1567Kek;
import X.C1599KfG;
import X.C2899L0o;
import X.C2901L0q;
import X.C2902L0r;
import X.C3166LAv;
import X.CqM;
import X.KT7;
import X.KT8;
import X.M12;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.aweme.bullet.bridge.BaseBridgeMethod;
import kotlin.h.b.n;
import org.json.JSONObject;

public final class StorySelectionReplayMethod extends BaseBridgeMethod implements 6Is {
    public static final C2899L0o LIZIZ = new C2899L0o((byte) 0);
    public final String LIZJ = "storySelectionReplay";

    static {
        Covode.recordClassIndex(54958);
    }

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

    public final String LIZLLL() {
        return this.LIZJ;
    }

    /* JADX INFO: super call moved to the top of the method (can break code semantics) */
    public StorySelectionReplayMethod(KT7 kt7) {
        super(kt7);
        M12.LIZ((Object) kt7);
    }

    public final void LIZ(JSONObject jSONObject, 4UQ r5) {
        Class cls;
        int i;
        M12.LIZ((Object) jSONObject, (Object) r5);
        Object opt = jSONObject.opt("index");
        if (!n.LIZ(opt, 1)) {
            if (n.LIZ(opt, 2)) {
                CqM.LIZ(new C2902L0r(2));
                return;
            } else if (n.LIZ(opt, 3)) {
                CqM.LIZ(new C2902L0r(3));
                return;
            }
        }
        if (C3166LAv.LIZIZ.LIZ().LJIIIIZZ) {
            cls = C1567Kek.class;
        } else {
            cls = C1599KfG.class;
        }
        KT8 LIZIZ2 = this.LIZ.LIZIZ(cls);
        if (LIZIZ2 != null) {
            Object LIZIZ3 = LIZIZ2.LIZIZ();
            if (LIZIZ3 != null) {
                i = LIZIZ3.hashCode();
            } else {
                i = 0;
            }
            CqM.LIZ(new C2901L0q(i));
        }
    }
}
