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

import X.0SJ;
import X.0SP;
import X.0SQ;
import com.bytedance.android.live.base.model.user._User_ProtoDecoder;
import com.bytedance.android.livesdk.chatroom.model.multilive._MultiLiveAnchorPanelSettings_ProtoDecoder;
import com.bytedance.android.livesdk.model.message.linker.mic_update._LinkerMicIdxUpdateInfo_ProtoDecoder;
import com.bytedance.covode.number.Covode;
import com.bytedance.ugc.glue.monitor.UGCMonitor;

public final class _LinkerReplyContent_ProtoDecoder implements 0SJ<LinkerReplyContent> {
    static {
        Covode.recordClassIndex(19570);
    }

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

    public static LinkerReplyContent LIZ(0SP r14) {
        LinkerReplyContent linkerReplyContent = new LinkerReplyContent();
        long LIZ = r14.LIZ();
        while (true) {
            int LIZIZ = r14.LIZIZ();
            if (LIZIZ != -1) {
                Long l = null;
                switch (LIZIZ) {
                    case 1:
                        linkerReplyContent.LIZ = r14.LJFF();
                        break;
                    case 2:
                        linkerReplyContent.LIZJ = r14.LJFF();
                        break;
                    case UGCMonitor.STATUS_RESPONSE /*3*/:
                        linkerReplyContent.LIZLLL = _LinkmicInfo_ProtoDecoder.LIZ(r14);
                        break;
                    case UGCMonitor.STATUS_FINISH /*4*/:
                        linkerReplyContent.LJ = r14.LJFF();
                        break;
                    case 5:
                        linkerReplyContent.LJI = _LinkmicInfo_ProtoDecoder.LIZ(r14);
                        break;
                    case 6:
                        linkerReplyContent.LJII = r14.LJFF();
                        break;
                    case 7:
                        linkerReplyContent.LJIIIIZZ = (int) r14.LJFF();
                        break;
                    case 8:
                        linkerReplyContent.LJIIIZ = _LinkerSetting_ProtoDecoder.LIZ(r14);
                        break;
                    case 9:
                        linkerReplyContent.LIZIZ = _User_ProtoDecoder.LIZ(r14);
                        break;
                    case 10:
                        linkerReplyContent.LJFF = _User_ProtoDecoder.LIZ(r14);
                        break;
                    case 11:
                        long LIZ2 = r14.LIZ();
                        String str = null;
                        while (true) {
                            int LIZIZ2 = r14.LIZIZ();
                            if (LIZIZ2 == -1) {
                                r14.LIZ(LIZ2);
                                if (l == null) {
                                    throw new IllegalStateException("Map key must not be null!");
                                } else if (str != null) {
                                    linkerReplyContent.LJIIJ.put(l, str);
                                    break;
                                } else {
                                    throw new IllegalStateException("Map value must not be null!");
                                }
                            } else if (LIZIZ2 == 1) {
                                l = Long.valueOf(r14.LJFF());
                            } else if (LIZIZ2 == 2) {
                                str = r14.LIZLLL();
                            }
                        }
                    case 12:
                        linkerReplyContent.LJIIJJI = _LinkerMicIdxUpdateInfo_ProtoDecoder.LIZ(r14);
                        break;
                    case 13:
                        long LIZ3 = r14.LIZ();
                        Long l2 = null;
                        while (true) {
                            int LIZIZ3 = r14.LIZIZ();
                            if (LIZIZ3 == -1) {
                                r14.LIZ(LIZ3);
                                if (l == null) {
                                    throw new IllegalStateException("Map key must not be null!");
                                } else if (l2 != null) {
                                    linkerReplyContent.LJIIL.put(l, l2);
                                    break;
                                } else {
                                    throw new IllegalStateException("Map value must not be null!");
                                }
                            } else if (LIZIZ3 == 1) {
                                l = Long.valueOf(0SQ.LIZIZ(r14));
                            } else if (LIZIZ3 == 2) {
                                l2 = Long.valueOf(0SQ.LIZIZ(r14));
                            }
                        }
                    case 14:
                        linkerReplyContent.LJIILIIL = r14.LJ();
                        break;
                    case 15:
                        linkerReplyContent.LJIILJJIL = _MultiLiveAnchorPanelSettings_ProtoDecoder.LIZ(r14);
                        break;
                    case 16:
                        linkerReplyContent.LJIILL = Long.valueOf(0SQ.LIZIZ(r14));
                        break;
                    default:
                        0SQ.LIZJ(r14);
                        break;
                }
            } else {
                r14.LIZ(LIZ);
                return linkerReplyContent;
            }
        }
    }
}
