package com.bytedance.android.livesdkapi.depend.model.live;

import X.0SJ;
import X.0SP;
import X.0SQ;
import com.bytedance.android.livesdkapi.depend.model.live.LiveCoreSDKData;
import com.bytedance.covode.number.Covode;
import java.util.ArrayList;

public final class _LiveCoreSDKData_Options_ProtoDecoder implements 0SJ<LiveCoreSDKData.Options> {
    static {
        Covode.recordClassIndex(22277);
    }

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

    public static LiveCoreSDKData.Options LIZ(0SP r5) {
        LiveCoreSDKData.Options options = new LiveCoreSDKData.Options();
        options.qualityList = new ArrayList();
        long LIZ = r5.LIZ();
        while (true) {
            int LIZIZ = r5.LIZIZ();
            if (LIZIZ == -1) {
                r5.LIZ(LIZ);
                return options;
            } else if (LIZIZ == 1) {
                options.defaultQuality = _LiveCoreSDKData_Quality_ProtoDecoder.LIZ(r5);
            } else if (LIZIZ == 2) {
                options.qualityList.add(_LiveCoreSDKData_Quality_ProtoDecoder.LIZ(r5));
            } else if (LIZIZ != 3) {
                0SQ.LIZJ(r5);
            } else {
                options.defaultPreviewQuality = _LiveCoreSDKData_Quality_ProtoDecoder.LIZ(r5);
            }
        }
    }
}
