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

import X.0SJ;
import X.0SP;
import X.0SQ;
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.covode.number.Covode;

public final class _GiftData_ProtoDecoder implements 0SJ<GiftData> {
    static {
        Covode.recordClassIndex(16458);
    }

    public final /* synthetic */ Object LIZIZ(0SP r7) {
        GiftData giftData = new GiftData();
        long LIZ = r7.LIZ();
        while (true) {
            int LIZIZ = r7.LIZIZ();
            if (LIZIZ != -1) {
                switch (LIZIZ) {
                    case 1:
                        giftData.LJFF = _Text_ProtoDecoder.LIZ(r7);
                        break;
                    case 2:
                        giftData.LJI = r7.LIZLLL();
                        break;
                    case 3:
                        giftData.LJII = Long.valueOf(r7.LJFF());
                        break;
                    case 4:
                        giftData.LJIIIIZZ = Long.valueOf(r7.LJFF());
                        break;
                    case 5:
                        giftData.LJIIIZ = Long.valueOf(r7.LJFF());
                        break;
                    case 6:
                        giftData.LJIIJ = Long.valueOf(r7.LJFF());
                        break;
                    case 7:
                        giftData.LJIIJJI = Long.valueOf(r7.LJFF());
                        break;
                    case 8:
                        giftData.LJIIL = _Text_ProtoDecoder.LIZ(r7);
                        break;
                    case 10:
                        giftData.LJIILIIL = _GiftTrayInfo_ProtoDecoder.LIZ(r7);
                        break;
                    case 11:
                        giftData.LJIILJJIL = _Gift_ProtoDecoder.LIZ(r7);
                        break;
                    default:
                        0SQ.LIZJ(r7);
                        break;
                }
            } else {
                r7.LIZ(LIZ);
                return giftData;
            }
        }
    }
}
