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

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

public final class _RTCExtraInfo_ProtoDecoder implements 0SJ<RTCExtraInfo> {
    static {
        Covode.recordClassIndex(19520);
    }

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

    public static RTCExtraInfo LIZ(0SP r5) {
        RTCExtraInfo rTCExtraInfo = new RTCExtraInfo(0);
        rTCExtraInfo.LIZIZ = new ArrayList();
        long LIZ = r5.LIZ();
        while (true) {
            int LIZIZ = r5.LIZIZ();
            if (LIZIZ != -1) {
                switch (LIZIZ) {
                    case 1:
                        rTCExtraInfo.LIZ = _RTCEngineConfig_ProtoDecoder.LIZ(r5);
                        break;
                    case 2:
                        rTCExtraInfo.LIZIZ.add(_RTCLiveVideoParam_ProtoDecoder.LIZ(r5));
                        break;
                    case 3:
                        rTCExtraInfo.LIZJ = _RTCBitRateMap_ProtoDecoder.LIZ(r5);
                        break;
                    case 4:
                        rTCExtraInfo.LIZLLL = r5.LJ();
                        break;
                    case 5:
                        rTCExtraInfo.LJ = _RTCMixBase_ProtoDecoder.LIZ(r5);
                        break;
                    case 6:
                        rTCExtraInfo.LJFF = _ByteRTCExtInfo_ProtoDecoder.LIZ(r5);
                        break;
                    case 7:
                        rTCExtraInfo.LJI = _RTCInfoExtra_ProtoDecoder.LIZ(r5);
                        break;
                    case 8:
                        rTCExtraInfo.LJII = r5.LIZLLL();
                        break;
                    case 9:
                        rTCExtraInfo.LJIIIIZZ = _RTCOther_ProtoDecoder.LIZ(r5);
                        break;
                    case 10:
                        rTCExtraInfo.LJIIIZ = r5.LJ();
                        break;
                    default:
                        0SQ.LIZJ(r5);
                        break;
                }
            } else {
                r5.LIZ(LIZ);
                return rTCExtraInfo;
            }
        }
    }
}
