package com.bytedance.android.livesdk.model.message;

import X.0SJ;
import X.0SP;
import X.0SQ;
import com.bytedance.android.live.base.model._ImageModel_ProtoDecoder;
import com.bytedance.covode.number.Covode;

public final class _CeremonyEffect_ProtoDecoder implements 0SJ<CeremonyEffect> {
    static {
        Covode.recordClassIndex(19180);
    }

    public final /* synthetic */ Object LIZIZ(0SP r2) {
        return LIZ(r2);
    }

    public static CeremonyEffect LIZ(0SP r5) {
        CeremonyEffect ceremonyEffect = new CeremonyEffect();
        long LIZ = r5.LIZ();
        while (true) {
            int LIZIZ = r5.LIZIZ();
            if (LIZIZ == -1) {
                r5.LIZ(LIZ);
                return ceremonyEffect;
            } else if (LIZIZ == 1) {
                ceremonyEffect.LIZ = _ImageModel_ProtoDecoder.LIZ(r5);
            } else if (LIZIZ != 2) {
                0SQ.LIZJ(r5);
            } else {
                ceremonyEffect.LIZIZ = _ImageModel_ProtoDecoder.LIZ(r5);
            }
        }
    }
}
