package com.ss.android.ugc.aweme.bullet.module.p000default;

import X.0CB;
import X.0CH;
import X.4UQ;
import X.6Is;
import X.C0662KCn;
import X.C0665KCq;
import X.C3739LWw;
import X.C3740LWx;
import X.C4949LsC;
import X.CwZ;
import X.KCT;
import X.KT7;
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;

/* renamed from: com.ss.android.ugc.aweme.bullet.module.default.BridgeProxy  reason: invalid package */
public final class BridgeProxy extends BaseBridgeMethod implements 6Is {
    public static final C0662KCn LIZJ = new C0662KCn((byte) 0);
    public final C4949LsC<KT7, C0665KCq> LIZIZ;
    public String LIZLLL;
    public C0665KCq LJ;

    static {
        Covode.recordClassIndex(55306);
    }

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

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

    public final void LIZ() {
        Class<?> cls;
        super.LIZ();
        C0665KCq kCq = this.LJ;
        if (kCq != null) {
            kCq.LIZ();
        }
        C0665KCq kCq2 = this.LJ;
        if (kCq2 != null && (cls = kCq2.getClass()) != null) {
            cls.getSimpleName();
        }
    }

    public final void LIZ(JSONObject jSONObject, 4UQ r2) {
        M12.LIZ((Object) jSONObject, (Object) r2);
        super.LIZ(jSONObject, r2);
    }

    public final void LIZ(JSONObject jSONObject, KCT kct) {
        Class<?> cls;
        M12.LIZ((Object) jSONObject, (Object) kct);
        if (this.LJ == null) {
            String str = this.LIZLLL;
            M12.LIZ((Object) str);
            n.LIZ(this.LIZLLL, str);
            if (this.LJ != null) {
                C3739LWw.LIZ();
            } else {
                C0665KCq invoke = this.LIZIZ.invoke(this.LIZ);
                this.LJ = invoke;
                C3740LWx.LIZ(CwZ.LIZ(str, invoke));
            }
        }
        C0665KCq kCq = this.LJ;
        if (kCq != null) {
            kCq.LIZ(jSONObject, kct);
        }
        C0665KCq kCq2 = this.LJ;
        if (kCq2 != null && (cls = kCq2.getClass()) != null) {
            cls.getSimpleName();
        }
    }

    /* JADX INFO: super call moved to the top of the method (can break code semantics) */
    public BridgeProxy(String str, KT7 kt7, C4949LsC<? super KT7, ? extends C0665KCq> lsC) {
        super(kt7);
        M12.LIZ(str, kt7, lsC);
        this.LIZIZ = lsC;
        this.LIZLLL = str;
    }
}
