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.covode.number.Covode;
import java.util.ArrayList;

public final class _GiftColorInfo_ProtoDecoder implements 0SJ<GiftColorInfo> {
    static {
        Covode.recordClassIndex(16456);
    }

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

    public static GiftColorInfo LIZ(0SP r6) {
        GiftColorInfo giftColorInfo = new GiftColorInfo();
        giftColorInfo.LJFF = new ArrayList();
        long LIZ = r6.LIZ();
        while (true) {
            int LIZIZ = r6.LIZIZ();
            if (LIZIZ != -1) {
                switch (LIZIZ) {
                    case 1:
                        giftColorInfo.LIZLLL = Long.valueOf(0SQ.LIZIZ(r6));
                        break;
                    case 2:
                        giftColorInfo.LJ = r6.LIZLLL();
                        break;
                    case 3:
                        giftColorInfo.LJFF.add(r6.LIZLLL());
                        break;
                    case 4:
                        giftColorInfo.LJI = _ImageModel_ProtoDecoder.LIZ(r6);
                        break;
                    case 5:
                        giftColorInfo.LJII = _ImageModel_ProtoDecoder.LIZ(r6);
                        break;
                    case 6:
                        giftColorInfo.LJIIIIZZ = Long.valueOf(0SQ.LIZIZ(r6));
                        break;
                    case 7:
                        giftColorInfo.LJIIIZ = Boolean.valueOf(0SQ.LIZ(r6));
                        break;
                    default:
                        0SQ.LIZJ(r6);
                        break;
                }
            } else {
                r6.LIZ(LIZ);
                return giftColorInfo;
            }
        }
    }
}
