package com.bytedance.android.livesdk.message.proto;

import X.0SJ;
import X.0SP;
import X.0SQ;
import com.bytedance.covode.number.Covode;

public final class _BadgeStruct_ProtoDecoder implements 0SJ<BadgeStruct> {
    static {
        Covode.recordClassIndex(18758);
    }

    public final /* synthetic */ Object LIZIZ(0SP r6) {
        BadgeStruct badgeStruct = new BadgeStruct();
        long LIZ = r6.LIZ();
        while (true) {
            int LIZIZ = r6.LIZIZ();
            if (LIZIZ == -1) {
                r6.LIZ(LIZ);
                return badgeStruct;
            } else if (LIZIZ == 1) {
                badgeStruct.LIZ = r6.LJ();
            } else if (LIZIZ == 2) {
                badgeStruct.LIZIZ = r6.LJ();
            } else if (LIZIZ == 3) {
                badgeStruct.LIZJ = r6.LJ();
            } else if (LIZIZ != 10) {
                switch (LIZIZ) {
                    case 20:
                        badgeStruct.LJ = _ImageBadge_ProtoDecoder.LIZ(r6);
                        break;
                    case 21:
                        badgeStruct.LJFF = _TextBadge_ProtoDecoder.LIZ(r6);
                        break;
                    case 22:
                        badgeStruct.LJI = _StringBadge_ProtoDecoder.LIZ(r6);
                        break;
                    default:
                        0SQ.LIZJ(r6);
                        break;
                }
            } else {
                badgeStruct.LIZLLL = r6.LIZLLL();
            }
        }
    }
}
