package com.bytedance.android.livesdk.model.message.ext;

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 _EcDrawEntity_ProtoDecoder implements 0SJ<EcDrawEntity> {
    static {
        Covode.recordClassIndex(19424);
    }

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

    public static EcDrawEntity LIZ(0SP r6) {
        EcDrawEntity ecDrawEntity = new EcDrawEntity();
        long LIZ = r6.LIZ();
        while (true) {
            int LIZIZ = r6.LIZIZ();
            if (LIZIZ == -1) {
                r6.LIZ(LIZ);
                return ecDrawEntity;
            } else if (LIZIZ == 1) {
                ecDrawEntity.LIZ = r6.LJ();
            } else if (LIZIZ == 2) {
                ecDrawEntity.LIZIZ = r6.LJ();
            } else if (LIZIZ == 3) {
                ecDrawEntity.LIZJ = String.valueOf(r6.LJFF());
            } else if (LIZIZ == 11) {
                ecDrawEntity.LJ = _ImageModel_ProtoDecoder.LIZ(r6);
            } else if (LIZIZ != 12) {
                0SQ.LIZJ(r6);
            } else {
                ecDrawEntity.LIZLLL = String.valueOf(r6.LJFF());
            }
        }
    }
}
