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

import X.0SJ;
import X.0SP;
import X.0SQ;
import com.bytedance.android.live.base.model.user._PrivilegeLogExtra_ProtoDecoder;
import com.bytedance.android.live.base.model.user._User_ProtoDecoder;
import com.bytedance.android.livesdkapi.message._CommonMessageData_ProtoDecoder;
import com.bytedance.covode.number.Covode;
import java.util.ArrayList;

public final class _RoomNotifyMessage_ProtoDecoder implements 0SJ<RoomNotifyMessage> {
    static {
        Covode.recordClassIndex(19299);
    }

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

    public static RoomNotifyMessage LIZ(0SP r7) {
        RoomNotifyMessage roomNotifyMessage = new RoomNotifyMessage();
        roomNotifyMessage.LJIILLIIL = new ArrayList();
        long LIZ = r7.LIZ();
        while (true) {
            int LIZIZ = r7.LIZIZ();
            if (LIZIZ != -1) {
                switch (LIZIZ) {
                    case 1:
                        roomNotifyMessage.LJJJJ = _CommonMessageData_ProtoDecoder.LIZ(r7);
                        break;
                    case 2:
                        roomNotifyMessage.LIZLLL = r7.LIZLLL();
                        break;
                    case 3:
                        roomNotifyMessage.LIZIZ = 0SQ.LIZIZ(r7);
                        break;
                    case 4:
                        roomNotifyMessage.LIZ = r7.LIZLLL();
                        break;
                    case 5:
                        roomNotifyMessage.LJFF = _User_ProtoDecoder.LIZ(r7);
                        break;
                    case 6:
                        roomNotifyMessage.LJ = _RoomNotifyMessageExtra_ProtoDecoder.LIZ(r7);
                        break;
                    case 7:
                        roomNotifyMessage.LIZJ = (int) 0SQ.LIZIZ(r7);
                        break;
                    case 8:
                        roomNotifyMessage.LJIILLIIL.add(Long.valueOf(0SQ.LIZIZ(r7)));
                        break;
                    case 9:
                        roomNotifyMessage.LJII = r7.LIZLLL();
                        break;
                    case 10:
                        roomNotifyMessage.LJI = 0SQ.LIZIZ(r7);
                        break;
                    case 11:
                        roomNotifyMessage.LJIIIIZZ = _PrivilegeLogExtra_ProtoDecoder.LIZ(r7);
                        break;
                    default:
                        0SQ.LIZJ(r7);
                        break;
                }
            } else {
                r7.LIZ(LIZ);
                return roomNotifyMessage;
            }
        }
    }
}
