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

import X.0SJ;
import X.0SP;
import X.0SQ;
import com.bytedance.android.live.base.model.user._User_ProtoDecoder;
import com.bytedance.android.livesdk.livesetting.linkmic.MtCoHostReceiveInviteMessageTimeOutSetting;
import com.bytedance.android.livesdk.livesetting.wallet.LiveRechargeAgeThresholdSetting;
import com.bytedance.android.livesdk.model._GiftTrayInfo_ProtoDecoder;
import com.bytedance.android.livesdk.model._Gift_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 _GiftMessage_ProtoDecoder implements 0SJ<GiftMessage> {
    static {
        Covode.recordClassIndex(19209);
    }

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

    public static GiftMessage LIZ(0SP r6) {
        GiftMessage giftMessage = new GiftMessage();
        long LIZ = r6.LIZ();
        while (true) {
            int LIZIZ = r6.LIZIZ();
            if (LIZIZ != -1) {
                switch (LIZIZ) {
                    case 1:
                        giftMessage.LJJJJ = _CommonMessageData_ProtoDecoder.LIZ(r6);
                        break;
                    case 2:
                        giftMessage.LJ = r6.LJFF();
                        break;
                    case 3:
                        giftMessage.LJI = (int) r6.LJFF();
                        break;
                    case 4:
                        giftMessage.LJIIZILJ = (int) r6.LJFF();
                        break;
                    case 5:
                        giftMessage.LJFF = (int) r6.LJFF();
                        break;
                    case 6:
                        giftMessage.LJIILLIIL = (int) r6.LJFF();
                        break;
                    case 7:
                        giftMessage.LIZJ = _User_ProtoDecoder.LIZ(r6);
                        break;
                    case 8:
                        giftMessage.LIZLLL = _User_ProtoDecoder.LIZ(r6);
                        break;
                    case 9:
                        giftMessage.LJIILL = r6.LJ();
                        break;
                    case 10:
                        giftMessage.LJIJI = _TextEffect_ProtoDecoder.LIZ(r6);
                        break;
                    case 11:
                        giftMessage.LJIJ = r6.LJFF();
                        break;
                    case 12:
                        giftMessage.LJJIIJ = Long.valueOf(r6.LJFF());
                        break;
                    case 13:
                        giftMessage.LJII = r6.LJFF();
                        break;
                    case 14:
                        giftMessage.LJJIIJZLJL = _GiftIMPriority_ProtoDecoder.LIZ(r6);
                        break;
                    case MtCoHostReceiveInviteMessageTimeOutSetting.DEFAULT:
                        giftMessage.LJIL = _Gift_ProtoDecoder.LIZ(r6);
                        break;
                    case 16:
                        giftMessage.LJJIFFI = r6.LIZLLL();
                        break;
                    case 17:
                        giftMessage.LJJIIZ = Long.valueOf(r6.LJFF());
                        break;
                    case LiveRechargeAgeThresholdSetting.DEFAULT:
                        giftMessage.LJJIIZI = _PublicAreaCommon_ProtoDecoder.LIZ(r6);
                        break;
                    case 19:
                        giftMessage.LJJIJ = _Text_ProtoDecoder.LIZ(r6);
                        break;
                    case 20:
                        giftMessage.LJJIJIIJI = Long.valueOf(r6.LJFF());
                        break;
                    case 21:
                        giftMessage.LJJ = _GiftTrayInfo_ProtoDecoder.LIZ(r6);
                        break;
                    case 23:
                        giftMessage.LJJIII = _GiftMonitorInfo_ProtoDecoder.LIZ(r6);
                        break;
                    case 24:
                        giftMessage.LJJIJIIJIL = Long.valueOf(r6.LJFF());
                        break;
                    case 25:
                        giftMessage.LJIIIIZZ = 0SQ.LIZ(r6);
                        break;
                    case 26:
                        giftMessage.LJIIIZ = _Text_ProtoDecoder.LIZ(r6);
                        break;
                    case 27:
                        giftMessage.LJIILJJIL = _Text_ProtoDecoder.LIZ(r6);
                        break;
                    case 28:
                        giftMessage.LJJI = r6.LIZLLL();
                        break;
                    default:
                        0SQ.LIZJ(r6);
                        break;
                }
            } else {
                r6.LIZ(LIZ);
                return giftMessage;
            }
        }
    }
}
