package com.bytedance.android.livesdk.model;

import X.0SJ;
import X.0SP;
import X.0SQ;
import com.bytedance.android.live.base.model.user._User_ProtoDecoder;
import com.bytedance.android.livesdk.model.message._PollOptionInfo_ProtoDecoder;
import com.bytedance.covode.number.Covode;
import java.util.ArrayList;

public final class _PollData_ProtoDecoder implements 0SJ<PollData> {
    static {
        Covode.recordClassIndex(18937);
    }

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

    public static PollData LIZ(0SP r5) {
        PollData pollData = new PollData();
        pollData.LJFF = new ArrayList();
        long LIZ = r5.LIZ();
        while (true) {
            int LIZIZ = r5.LIZIZ();
            if (LIZIZ != -1) {
                switch (LIZIZ) {
                    case 1:
                        pollData.LIZIZ = 0SQ.LIZIZ(r5);
                        break;
                    case 2:
                        pollData.LIZJ = r5.LJ();
                        break;
                    case 3:
                        pollData.LIZLLL = 0SQ.LIZIZ(r5);
                        break;
                    case 4:
                        pollData.LJ = 0SQ.LIZIZ(r5);
                        break;
                    case 5:
                        pollData.LJFF.add(_PollOptionInfo_ProtoDecoder.LIZ(r5));
                        break;
                    case 6:
                        pollData.LIZ = r5.LJ();
                        break;
                    case 7:
                        pollData.LJI = r5.LIZLLL();
                        break;
                    case 8:
                        pollData.LJII = _User_ProtoDecoder.LIZ(r5);
                        break;
                    case 9:
                        pollData.LJIIIIZZ = Long.valueOf(0SQ.LIZIZ(r5));
                        break;
                    default:
                        0SQ.LIZJ(r5);
                        break;
                }
            } else {
                r5.LIZ(LIZ);
                return pollData;
            }
        }
    }
}
