package com.bytedance.android.livesdkapi.depend.model.live.match;

import X.0SJ;
import X.0SP;
import X.0SQ;
import com.bytedance.android.live.base.model._ImageModel_ProtoDecoder;
import com.bytedance.android.livesdkapi.depend.model.live.match.BattleArmy;
import com.bytedance.covode.number.Covode;

public final class _BattleArmy_RankUser_ProtoDecoder implements 0SJ<BattleArmy.RankUser> {
    static {
        Covode.recordClassIndex(22365);
    }

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

    public static BattleArmy.RankUser LIZ(0SP r5) {
        BattleArmy.RankUser rankUser = new BattleArmy.RankUser();
        long LIZ = r5.LIZ();
        while (true) {
            int LIZIZ = r5.LIZIZ();
            if (LIZIZ == -1) {
                r5.LIZ(LIZ);
                return rankUser;
            } else if (LIZIZ == 1) {
                rankUser.LIZJ = Long.valueOf(r5.LJFF());
            } else if (LIZIZ == 2) {
                rankUser.LIZLLL = r5.LIZLLL();
            } else if (LIZIZ == 3) {
                rankUser.LJ = _ImageModel_ProtoDecoder.LIZ(r5);
            } else if (LIZIZ == 4) {
                rankUser.LJFF = Long.valueOf(r5.LJFF());
            } else if (LIZIZ != 5) {
                0SQ.LIZJ(r5);
            } else {
                rankUser.LJI = r5.LIZLLL();
            }
        }
    }
}
