package com.bytedance.android.livesdk.model;

import X.0SJ;
import X.0SP;
import X.0SQ;
import com.bytedance.android.live.base.model._ImageModel_ProtoDecoder;
import com.bytedance.android.livesdk.livesetting.linkmic.MtCoHostReceiveInviteMessageTimeOutSetting;
import com.bytedance.android.livesdk.livesetting.wallet.LiveRechargeAgeThresholdSetting;
import com.bytedance.covode.number.Covode;

public final class _BannerInRoom_ProtoDecoder implements 0SJ<BannerInRoom> {
    static {
        Covode.recordClassIndex(18909);
    }

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

    public static BannerInRoom LIZ(0SP r7) {
        BannerInRoom bannerInRoom = new BannerInRoom();
        long LIZ = r7.LIZ();
        while (true) {
            int LIZIZ = r7.LIZIZ();
            if (LIZIZ != -1) {
                switch (LIZIZ) {
                    case 1:
                        bannerInRoom.LIZ = r7.LJFF();
                        break;
                    case 2:
                        bannerInRoom.LIZIZ = r7.LIZLLL();
                        break;
                    case 3:
                        bannerInRoom.LIZJ = _ImageModel_ProtoDecoder.LIZ(r7);
                        break;
                    case 4:
                        bannerInRoom.LIZLLL = (int) r7.LJFF();
                        break;
                    case 5:
                        bannerInRoom.LJ = (int) r7.LJFF();
                        break;
                    case 6:
                        bannerInRoom.LJFF = r7.LIZLLL();
                        break;
                    case 7:
                        bannerInRoom.LJII = (int) r7.LJFF();
                        break;
                    case 8:
                        bannerInRoom.LJIIIZ = Long.valueOf(r7.LJFF());
                        break;
                    case 9:
                        bannerInRoom.LJIIIIZZ = (int) r7.LJFF();
                        break;
                    case 10:
                        bannerInRoom.LJI = r7.LIZLLL();
                        break;
                    case 11:
                        bannerInRoom.LJIIJ = Long.valueOf(r7.LJFF());
                        break;
                    case 12:
                        bannerInRoom.LJIIJJI = r7.LIZLLL();
                        break;
                    case 13:
                        bannerInRoom.LJIIL = Long.valueOf(r7.LJFF());
                        break;
                    case 14:
                        bannerInRoom.LJIILIIL = Long.valueOf(r7.LJFF());
                        break;
                    case MtCoHostReceiveInviteMessageTimeOutSetting.DEFAULT:
                        bannerInRoom.LJIILJJIL = Long.valueOf(r7.LJFF());
                        break;
                    case 16:
                        bannerInRoom.LJIILL = Long.valueOf(r7.LJFF());
                        break;
                    case 17:
                        bannerInRoom.LJIILLIIL = Long.valueOf(r7.LJFF());
                        break;
                    case LiveRechargeAgeThresholdSetting.DEFAULT:
                        bannerInRoom.LJIIZILJ = Long.valueOf(r7.LJFF());
                        break;
                    case 19:
                        bannerInRoom.LJIJ = Long.valueOf(r7.LJFF());
                        break;
                    case 20:
                        bannerInRoom.LJIJI = _BannerInRoom_BannerContentDynamic_ProtoDecoder.LIZ(r7);
                        break;
                    default:
                        0SQ.LIZJ(r7);
                        break;
                }
            } else {
                r7.LIZ(LIZ);
                return bannerInRoom;
            }
        }
    }
}
