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

import X.0SJ;
import X.0SP;
import X.0SQ;
import com.bytedance.android.livesdk.model.linkSetting._MultiLiveUpdateUserSettingContent_ProtoDecoder;
import com.bytedance.android.livesdk.model.message.linker.accpet_notice_message._LinkerAcceptNoticeContent_ProtoDecoder;
import com.bytedance.android.livesdk.model.message.linker.cancel_message._LinkerCancelContent_ProtoDecoder;
import com.bytedance.android.livesdk.model.message.linker.enter_message._LinkerEnterContent_ProtoDecoder;
import com.bytedance.android.livesdk.model.message.linker.invite_message._LinkerInviteContent_ProtoDecoder;
import com.bytedance.android.livesdk.model.message.linker.kick_out_message._LinkerKickOutContent_ProtoDecoder;
import com.bytedance.android.livesdk.model.message.linker.leave_message._LinkerLeaveContent_ProtoDecoder;
import com.bytedance.android.livesdk.model.message.linker.linked_list_change_message._LinkedListChangeContent_ProtoDecoder;
import com.bytedance.android.livesdk.model.message.linker.list_change_message._LinkerListChangeContent_ProtoDecoder;
import com.bytedance.android.livesdk.model.message.linker.mic_update._LinkerMicIdxUpdateContent_ProtoDecoder;
import com.bytedance.android.livesdk.model.message.linker.mute_message._LinkerMuteContent_ProtoDecoder;
import com.bytedance.android.livesdk.model.message.linker.random_linkmic_message._LinkerRandomMatchContent_ProtoDecoder;
import com.bytedance.android.livesdk.model.message.linker.reply_message._LinkerReplyContent_ProtoDecoder;
import com.bytedance.android.livesdkapi.message._CommonMessageData_ProtoDecoder;
import com.bytedance.covode.number.Covode;
import com.bytedance.ugc.glue.monitor.UGCMonitor;

public final class _LinkMessage_ProtoDecoder implements 0SJ<LinkMessage> {
    static {
        Covode.recordClassIndex(19223);
    }

    public final /* synthetic */ Object LIZIZ(0SP r7) {
        LinkMessage linkMessage = new LinkMessage();
        long LIZ = r7.LIZ();
        while (true) {
            int LIZIZ = r7.LIZIZ();
            if (LIZIZ == -1) {
                r7.LIZ(LIZ);
                return linkMessage;
            } else if (LIZIZ == 23) {
                linkMessage.LJI = _LinkerAcceptNoticeContent_ProtoDecoder.LIZ(r7);
            } else if (LIZIZ == 101) {
                linkMessage.LJJIII = _LinkerSysKickOutContent_ProtoDecoder.LIZ(r7);
            } else if (LIZIZ != 102) {
                switch (LIZIZ) {
                    case 1:
                        linkMessage.LJJJJ = _CommonMessageData_ProtoDecoder.LIZ(r7);
                        break;
                    case 2:
                        linkMessage.LIZ = (int) r7.LJFF();
                        break;
                    case UGCMonitor.STATUS_RESPONSE /*3*/:
                        linkMessage.LIZIZ = r7.LJFF();
                        break;
                    case UGCMonitor.STATUS_FINISH /*4*/:
                        linkMessage.LIZJ = (int) r7.LJFF();
                        break;
                    case 5:
                        linkMessage.LIZLLL = _LinkerInviteContent_ProtoDecoder.LIZ(r7);
                        break;
                    case 6:
                        linkMessage.LJ = _LinkerReplyContent_ProtoDecoder.LIZ(r7);
                        break;
                    case 7:
                        linkMessage.LJJ = _LinkerCreateContent_ProtoDecoder.LIZ(r7);
                        break;
                    case 8:
                        linkMessage.LJJI = _LinkerCloseContent_ProtoDecoder.LIZ(r7);
                        break;
                    case 9:
                        linkMessage.LJIIIIZZ = _LinkerEnterContent_ProtoDecoder.LIZ(r7);
                        break;
                    case 10:
                        linkMessage.LJIILJJIL = _LinkerLeaveContent_ProtoDecoder.LIZ(r7);
                        break;
                    case 11:
                        linkMessage.LJFF = _LinkerCancelContent_ProtoDecoder.LIZ(r7);
                        break;
                    case 12:
                        linkMessage.LJIIIZ = _LinkerKickOutContent_ProtoDecoder.LIZ(r7);
                        break;
                    case 13:
                        linkMessage.LJII = _LinkedListChangeContent_ProtoDecoder.LIZ(r7);
                        break;
                    case 14:
                        linkMessage.LJJIFFI = _LinkerUpdateUserContent_ProtoDecoder.LIZ(r7);
                        break;
                    case 15:
                        linkMessage.LJJII = _LinkerWaitingListChangeContent_ProtoDecoder.LIZ(r7);
                        break;
                    case 16:
                        linkMessage.LJIILL = _LinkerMuteContent_ProtoDecoder.LIZ(r7);
                        break;
                    case 17:
                        linkMessage.LJIILLIIL = _LinkerRandomMatchContent_ProtoDecoder.LIZ(r7);
                        break;
                    case 18:
                        linkMessage.LJIJ = _MultiLiveUpdateUserSettingContent_ProtoDecoder.LIZ(r7);
                        break;
                    case 19:
                        linkMessage.LJIIZILJ = _LinkerMicIdxUpdateContent_ProtoDecoder.LIZ(r7);
                        break;
                    case 20:
                        linkMessage.LJIJI = _LinkerListChangeContent_ProtoDecoder.LIZ(r7);
                        break;
                    case 21:
                        linkMessage.LJJIIJ = _CohostListChangeContent_ProtoDecoder.LIZ(r7);
                        break;
                    default:
                        switch (LIZIZ) {
                            case 200:
                                linkMessage.LJIJJ = r7.LIZLLL();
                                break;
                            case 201:
                                linkMessage.LJIJJLI = r7.LJFF();
                                break;
                            case 202:
                                linkMessage.LJIL = r7.LIZLLL();
                                break;
                            default:
                                0SQ.LIZJ(r7);
                                break;
                        }
                }
            } else {
                linkMessage.LJJIIJZLJL = _LinkmicUserToastContent_ProtoDecoder.LIZ(r7);
            }
        }
    }
}
