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 _GiftResultData_ProtoDecoder implements 0SJ<GiftResultData> {
    static {
        Covode.recordClassIndex(16466);
    }

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

    public static GiftResultData LIZ(0SP r6) {
        GiftResultData giftResultData = new GiftResultData();
        long LIZ = r6.LIZ();
        while (true) {
            int LIZIZ = r6.LIZIZ();
            if (LIZIZ != -1) {
                switch (LIZIZ) {
                    case 1:
                        giftResultData.LIZ = _Text_ProtoDecoder.LIZ(r6);
                        break;
                    case 2:
                        giftResultData.LIZIZ = r6.LIZLLL();
                        break;
                    case 3:
                        giftResultData.LIZJ = r6.LJFF();
                        break;
                    case 4:
                        giftResultData.LIZLLL = (int) r6.LJFF();
                        break;
                    case 5:
                        giftResultData.LJ = (int) r6.LJFF();
                        break;
                    case 6:
                        giftResultData.LJFF = (int) r6.LJFF();
                        break;
                    case 7:
                        giftResultData.LJI = r6.LJFF();
                        break;
                    case 8:
                        giftResultData.LJIIJJI = _Text_ProtoDecoder.LIZ(r6);
                        break;
                    case 10:
                        giftResultData.LJII = _GiftTrayInfo_ProtoDecoder.LIZ(r6);
                        break;
                    case 11:
                        giftResultData.LJIIIIZZ = _Gift_ProtoDecoder.LIZ(r6);
                        break;
                    case 12:
                        giftResultData.LJIIIZ = _Text_ProtoDecoder.LIZ(r6);
                        break;
                    case 13:
                        giftResultData.LJIIJ = _Text_ProtoDecoder.LIZ(r6);
                        break;
                    default:
                        0SQ.LIZJ(r6);
                        break;
                }
            } else {
                r6.LIZ(LIZ);
                return giftResultData;
            }
        }
    }
}
