package com.bytedance.android.livesdkapi.message;

import X.0SJ;
import X.0SP;
import X.0SQ;
import com.bytedance.android.livesdk.livesetting.linkmic.MtCoHostReceiveInviteMessageTimeOutSetting;
import com.bytedance.android.livesdk.livesetting.wallet.LiveRechargeAgeThresholdSetting;
import com.bytedance.android.livesdk.model.message.common._Text_ProtoDecoder;
import com.bytedance.covode.number.Covode;
import java.util.ArrayList;

public final class _CommonMessageData_ProtoDecoder implements 0SJ<CommonMessageData> {
    static {
        Covode.recordClassIndex(22514);
    }

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

    public static CommonMessageData LIZ(0SP r6) {
        CommonMessageData commonMessageData = new CommonMessageData();
        commonMessageData.LJIIL = new ArrayList();
        commonMessageData.LJII = new ArrayList();
        long LIZ = r6.LIZ();
        while (true) {
            int LIZIZ = r6.LIZIZ();
            if (LIZIZ != -1) {
                switch (LIZIZ) {
                    case 1:
                        commonMessageData.LJ = r6.LIZLLL();
                        break;
                    case 2:
                        commonMessageData.LIZLLL = 0SQ.LIZIZ(r6);
                        break;
                    case 3:
                        commonMessageData.LIZJ = 0SQ.LIZIZ(r6);
                        break;
                    case 4:
                        commonMessageData.LIZ = 0SQ.LIZIZ(r6);
                        break;
                    case 5:
                        commonMessageData.LJIIIIZZ = r6.LJ();
                        break;
                    case 6:
                        commonMessageData.LJI = 0SQ.LIZ(r6);
                        break;
                    case 7:
                        commonMessageData.LJFF = r6.LIZLLL();
                        break;
                    case 8:
                        commonMessageData.LJIIIZ = _Text_ProtoDecoder.LIZ(r6);
                        break;
                    case 9:
                        commonMessageData.LJIIJ = 0SQ.LIZIZ(r6);
                        break;
                    case 10:
                        commonMessageData.LJIIZILJ = Long.valueOf(0SQ.LIZIZ(r6));
                        break;
                    case 11:
                        commonMessageData.LJIIJJI = 0SQ.LIZIZ(r6);
                        break;
                    case 12:
                        commonMessageData.LJIILIIL = r6.LIZLLL();
                        break;
                    case 13:
                        commonMessageData.LJIJ = r6.LIZLLL();
                        break;
                    case 14:
                        commonMessageData.LJIJI = r6.LIZLLL();
                        break;
                    case MtCoHostReceiveInviteMessageTimeOutSetting.DEFAULT:
                        commonMessageData.LJIJJ = r6.LIZLLL();
                        break;
                    case 16:
                        commonMessageData.LJIJJLI = r6.LIZLLL();
                        break;
                    case 17:
                        commonMessageData.LJIIL.add(r6.LIZLLL());
                        break;
                    case LiveRechargeAgeThresholdSetting.DEFAULT:
                        commonMessageData.LJIILJJIL = _LiveMessageSEI_ProtoDecoder.LIZ(r6);
                        break;
                    case 19:
                        commonMessageData.LJIILL = _LiveMessageID_ProtoDecoder.LIZ(r6);
                        break;
                    case 20:
                        commonMessageData.LJIILLIIL = _LiveMessageID_ProtoDecoder.LIZ(r6);
                        break;
                    default:
                        0SQ.LIZJ(r6);
                        break;
                }
            } else {
                r6.LIZ(LIZ);
                return commonMessageData;
            }
        }
    }
}
