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

import X.0SJ;
import X.0SP;
import X.0SQ;
import com.bytedance.android.livesdk.rank.api.model.OnlineAudienceResponse;
import com.bytedance.covode.number.Covode;

public final class _OnlineAudienceResponse_DisplayConfig_ProtoDecoder implements 0SJ<OnlineAudienceResponse.DisplayConfig> {
    static {
        Covode.recordClassIndex(20354);
    }

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

    public static OnlineAudienceResponse.DisplayConfig LIZ(0SP r6) {
        OnlineAudienceResponse.DisplayConfig displayConfig = new OnlineAudienceResponse.DisplayConfig();
        long LIZ = r6.LIZ();
        while (true) {
            int LIZIZ = r6.LIZIZ();
            if (LIZIZ == -1) {
                r6.LIZ(LIZ);
                return displayConfig;
            } else if (LIZIZ == 1) {
                displayConfig.LJFF = Boolean.valueOf(0SQ.LIZ(r6));
            } else if (LIZIZ == 2) {
                displayConfig.LJI = Boolean.valueOf(0SQ.LIZ(r6));
            } else if (LIZIZ == 3) {
                displayConfig.LJII = Boolean.valueOf(0SQ.LIZ(r6));
            } else if (LIZIZ == 4) {
                displayConfig.LJIIIIZZ = Long.valueOf(r6.LJFF());
            } else if (LIZIZ != 5) {
                0SQ.LIZJ(r6);
            } else {
                displayConfig.LJIIIZ = Boolean.valueOf(0SQ.LIZ(r6));
            }
        }
    }
}
