package com.bytedance.android.livesdk.gift.assets;

import X.0SJ;
import X.0SP;
import X.0SQ;
import com.bytedance.android.livesdk.gift.model._LokiExtraContent_ProtoDecoder;
import com.bytedance.covode.number.Covode;
import java.util.ArrayList;

public final class _AssetsModel_ProtoDecoder implements 0SJ<AssetsModel> {
    static {
        Covode.recordClassIndex(16341);
    }

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

    public static AssetsModel LIZ(0SP r6) {
        AssetsModel assetsModel = new AssetsModel();
        assetsModel.videoResourceList = new ArrayList();
        long LIZ = r6.LIZ();
        while (true) {
            int LIZIZ = r6.LIZIZ();
            if (LIZIZ == -1) {
                r6.LIZ(LIZ);
                return assetsModel;
            } else if (LIZIZ == 1) {
                assetsModel.name = r6.LIZLLL();
            } else if (LIZIZ == 2) {
                assetsModel.resourceUri = r6.LIZLLL();
            } else if (LIZIZ != 26) {
                switch (LIZIZ) {
                    case 4:
                        assetsModel.resourceModel = _ResourceModel_ProtoDecoder.LIZ(r6);
                        break;
                    case 5:
                        assetsModel.describe = r6.LIZLLL();
                        break;
                    case 6:
                        assetsModel.id = 0SQ.LIZIZ(r6);
                        break;
                    case 7:
                        assetsModel.resourceType = r6.LJ();
                        break;
                    case 8:
                        assetsModel.md5 = r6.LIZLLL();
                        break;
                    case 9:
                        assetsModel.size = 0SQ.LIZIZ(r6);
                        break;
                    case 10:
                        assetsModel.lokiExtraContent = _LokiExtraContent_ProtoDecoder.LIZ(r6);
                        break;
                    default:
                        switch (LIZIZ) {
                            case 28:
                                assetsModel.resourceByteVC1Model = _ResourceModel_ProtoDecoder.LIZ(r6);
                                break;
                            case 29:
                                assetsModel.bytevc1Md5 = r6.LIZLLL();
                                break;
                            case 30:
                                assetsModel.videoResourceList.add(_VideoResource_ProtoDecoder.LIZ(r6));
                                break;
                            case 31:
                                assetsModel.faceRecognitionArchiveMeta = _FaceRecognitionMeta_ProtoDecoder.LIZ(r6);
                                break;
                            default:
                                0SQ.LIZJ(r6);
                                break;
                        }
                }
            } else {
                assetsModel.downloadType = r6.LJ();
            }
        }
    }
}
