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.android.live.base.model.user._User_ProtoDecoder;
import com.bytedance.android.livesdk.model.message.common._Text_ProtoDecoder;
import com.bytedance.android.livesdkapi.message._CommonMessageData_ProtoDecoder;
import com.bytedance.covode.number.Covode;

public final class _LiveTrayMessage_ProtoDecoder implements 0SJ<LiveTrayMessage> {
    static {
        Covode.recordClassIndex(19247);
    }

    public final /* synthetic */ Object LIZIZ(0SP r7) {
        LiveTrayMessage liveTrayMessage = new LiveTrayMessage();
        long LIZ = r7.LIZ();
        while (true) {
            int LIZIZ = r7.LIZIZ();
            if (LIZIZ != -1) {
                switch (LIZIZ) {
                    case 1:
                        liveTrayMessage.LJJJJ = _CommonMessageData_ProtoDecoder.LIZ(r7);
                        break;
                    case 2:
                        liveTrayMessage.LIZ = _User_ProtoDecoder.LIZ(r7);
                        break;
                    case 3:
                        liveTrayMessage.LIZIZ = _Text_ProtoDecoder.LIZ(r7);
                        break;
                    case 4:
                        liveTrayMessage.LIZJ = _Text_ProtoDecoder.LIZ(r7);
                        break;
                    case 5:
                        liveTrayMessage.LIZLLL = (int) r7.LJFF();
                        break;
                    case 6:
                        liveTrayMessage.LJ = (int) r7.LJFF();
                        break;
                    case 7:
                        liveTrayMessage.LJFF = _ImageModel_ProtoDecoder.LIZ(r7);
                        break;
                    default:
                        0SQ.LIZJ(r7);
                        break;
                }
            } else {
                r7.LIZ(LIZ);
                return liveTrayMessage;
            }
        }
    }
}
