package com.bytedance.android.live.base.model.emoji;

import X.AnonymousClass0SJ;
import X.AnonymousClass0SP;
import X.AnonymousClass0SQ;
import com.bytedance.android.live.base.model._ImageModel_ProtoDecoder;
import com.bytedance.covode.number.Covode;

public final class _EmoteModel_ProtoDecoder implements AnonymousClass0SJ<EmoteModel> {
    static {
        Covode.recordClassIndex(4749);
    }

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

    public static EmoteModel LIZ(AnonymousClass0SP r5) {
        EmoteModel emoteModel = new EmoteModel();
        long LIZ = r5.LIZ();
        while (true) {
            int LIZIZ = r5.LIZIZ();
            if (LIZIZ == -1) {
                r5.LIZ(LIZ);
                return emoteModel;
            } else if (LIZIZ == 1) {
                emoteModel.LJI = r5.LIZLLL();
            } else if (LIZIZ == 2) {
                emoteModel.LJII = _ImageModel_ProtoDecoder.LIZ(r5);
            } else if (LIZIZ == 3) {
                emoteModel.LJIIIIZZ = r5.LJ();
            } else if (LIZIZ != 4) {
                AnonymousClass0SQ.LIZJ(r5);
            } else {
                emoteModel.LJIIIZ = r5.LIZLLL();
            }
        }
    }
}
