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

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

public final class _BattleSetting_ProtoDecoder implements 0SJ<BattleSetting> {
    static {
        Covode.recordClassIndex(19357);
    }

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

    public static BattleSetting LIZ(0SP r7) {
        BattleSetting battleSetting = new BattleSetting();
        long LIZ = r7.LIZ();
        while (true) {
            int LIZIZ = r7.LIZIZ();
            if (LIZIZ != -1) {
                switch (LIZIZ) {
                    case 1:
                        battleSetting.LIZIZ = r7.LJFF();
                        break;
                    case 2:
                        battleSetting.LIZJ = r7.LJFF();
                        break;
                    case 3:
                        battleSetting.LIZLLL = (int) r7.LJFF();
                        break;
                    case 4:
                        battleSetting.LIZ = r7.LJFF();
                        break;
                    case 5:
                        battleSetting.LJ = r7.LJ();
                        break;
                    case 6:
                        battleSetting.LJFF = r7.LJ();
                        break;
                    default:
                        0SQ.LIZJ(r7);
                        break;
                }
            } else {
                r7.LIZ(LIZ);
                return battleSetting;
            }
        }
    }
}
