package com.bytedance.android.livesdk.rank.list.model;

import X.0SJ;
import X.0SP;
import X.0SQ;
import com.bytedance.android.livesdk.rank.list.model.RankListV2Response;
import com.bytedance.covode.number.Covode;
import java.util.ArrayList;

public final class _RankListV2Response_RankView_ProtoDecoder implements 0SJ<RankListV2Response.RankView> {
    static {
        Covode.recordClassIndex(20563);
    }

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

    public static RankListV2Response.RankView LIZ(0SP r6) {
        RankListV2Response.RankView rankView = new RankListV2Response.RankView();
        rankView.LIZJ = new ArrayList();
        long LIZ = r6.LIZ();
        while (true) {
            int LIZIZ = r6.LIZIZ();
            if (LIZIZ != -1) {
                switch (LIZIZ) {
                    case 1:
                        rankView.LIZ = r6.LIZLLL();
                        break;
                    case 2:
                        rankView.LIZIZ = r6.LIZLLL();
                        break;
                    case 3:
                        rankView.LIZJ.add(_RankListV2Response_RankInfo_ProtoDecoder.LIZ(r6));
                        break;
                    case 4:
                        rankView.LIZLLL = _RankListV2Response_RankInfo_ProtoDecoder.LIZ(r6);
                        break;
                    case 5:
                        rankView.LJ = 0SQ.LIZIZ(r6);
                        break;
                    case 6:
                        rankView.LJFF = r6.LJ();
                        break;
                    case 7:
                        rankView.LJI = _WeeklyRankRegionInfo_ProtoDecoder.LIZ(r6);
                        break;
                    case 8:
                        rankView.LJII = 0SQ.LIZ(r6);
                        break;
                    case 9:
                        rankView.LJIIIIZZ = 0SQ.LIZ(r6);
                        break;
                    default:
                        0SQ.LIZJ(r6);
                        break;
                }
            } else {
                r6.LIZ(LIZ);
                return rankView;
            }
        }
    }
}
