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.covode.number.Covode;

public final class _GradeIcon_ProtoDecoder implements 0SJ<GradeIcon> {
    static {
        Covode.recordClassIndex(18928);
    }

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

    public static GradeIcon LIZ(0SP r6) {
        GradeIcon gradeIcon = new GradeIcon();
        long LIZ = r6.LIZ();
        while (true) {
            int LIZIZ = r6.LIZIZ();
            if (LIZIZ == -1) {
                r6.LIZ(LIZ);
                return gradeIcon;
            } else if (LIZIZ == 1) {
                gradeIcon.LIZJ = _ImageModel_ProtoDecoder.LIZ(r6);
            } else if (LIZIZ == 2) {
                gradeIcon.LIZIZ = (int) r6.LJFF();
            } else if (LIZIZ == 3) {
                gradeIcon.LIZLLL = (int) r6.LJFF();
            } else if (LIZIZ != 4) {
                0SQ.LIZJ(r6);
            } else {
                gradeIcon.LIZ = r6.LIZLLL();
            }
        }
    }
}
