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

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

public final class _LiveStreamGoalServerMessage_ProtoDecoder implements 0SJ<LiveStreamGoalServerMessage> {
    static {
        Covode.recordClassIndex(16474);
    }

    public final /* synthetic */ Object LIZIZ(0SP r6) {
        LiveStreamGoalServerMessage liveStreamGoalServerMessage = new LiveStreamGoalServerMessage();
        long LIZ = r6.LIZ();
        while (true) {
            int LIZIZ = r6.LIZIZ();
            if (LIZIZ != -1) {
                switch (LIZIZ) {
                    case 1:
                        liveStreamGoalServerMessage.LJJJJ = _CommonMessageData_ProtoDecoder.LIZ(r6);
                        break;
                    case 2:
                        liveStreamGoalServerMessage.LIZ = _LiveStreamGoalIndicator_ProtoDecoder.LIZ(r6);
                        break;
                    case 3:
                        liveStreamGoalServerMessage.LIZIZ = _LiveStreamGoal_ProtoDecoder.LIZ(r6);
                        break;
                    case 4:
                        liveStreamGoalServerMessage.LIZJ = r6.LJFF();
                        break;
                    case 5:
                        liveStreamGoalServerMessage.LIZLLL = _ImageModel_ProtoDecoder.LIZ(r6);
                        break;
                    case 6:
                        liveStreamGoalServerMessage.LJ = r6.LIZLLL();
                        break;
                    case 7:
                        liveStreamGoalServerMessage.LJFF = _LiveStreamSubGoal_ProtoDecoder.LIZ(r6);
                        break;
                    case 9:
                        liveStreamGoalServerMessage.LJI = r6.LJFF();
                        break;
                    case 10:
                        liveStreamGoalServerMessage.LJII = r6.LJFF();
                        break;
                    case 11:
                        liveStreamGoalServerMessage.LJIIIIZZ = r6.LJFF();
                        break;
                    case 12:
                        liveStreamGoalServerMessage.LJIIIZ = r6.LIZLLL();
                        break;
                    default:
                        0SQ.LIZJ(r6);
                        break;
                }
            } else {
                r6.LIZ(LIZ);
                return liveStreamGoalServerMessage;
            }
        }
    }
}
