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

import X.0SJ;
import X.0SP;
import X.0SQ;
import com.bytedance.android.live.base.model._ImageModel_ProtoDecoder;
import com.bytedance.android.livesdk.model._BannerInRoom_ProtoDecoder;
import com.bytedance.android.livesdk.model.message.BannerInRoomCollection;
import com.bytedance.covode.number.Covode;
import java.util.ArrayList;

public final class _BannerInRoomCollection_BannerInfo_ProtoDecoder implements 0SJ<BannerInRoomCollection.BannerInfo> {
    static {
        Covode.recordClassIndex(19171);
    }

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

    public static BannerInRoomCollection.BannerInfo LIZ(0SP r7) {
        BannerInRoomCollection.BannerInfo bannerInfo = new BannerInRoomCollection.BannerInfo();
        bannerInfo.LIZIZ = new ArrayList();
        long LIZ = r7.LIZ();
        while (true) {
            int LIZIZ = r7.LIZIZ();
            if (LIZIZ != -1) {
                switch (LIZIZ) {
                    case 1:
                        bannerInfo.LIZ = r7.LIZLLL();
                        break;
                    case 2:
                        bannerInfo.LIZIZ.add(_BannerInRoom_ProtoDecoder.LIZ(r7));
                        break;
                    case 3:
                        bannerInfo.LIZJ = _ImageModel_ProtoDecoder.LIZ(r7);
                        break;
                    case 4:
                        bannerInfo.LIZLLL = _BannerCollapseInfo_ProtoDecoder.LIZ(r7);
                        break;
                    case 5:
                        bannerInfo.LJ = (int) 0SQ.LIZIZ(r7);
                        break;
                    case 6:
                        bannerInfo.LJFF = (int) 0SQ.LIZIZ(r7);
                        break;
                    case 7:
                        bannerInfo.LJI = r7.LIZLLL();
                        break;
                    case 8:
                        bannerInfo.LJII = Long.valueOf(0SQ.LIZIZ(r7));
                        break;
                    default:
                        0SQ.LIZJ(r7);
                        break;
                }
            } else {
                r7.LIZ(LIZ);
                return bannerInfo;
            }
        }
    }
}
