package com.bytedance.android.livesdk.model;

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

public final class _RoomStats_ProtoDecoder implements 0SJ<RoomStats> {
    static {
        Covode.recordClassIndex(18949);
    }

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

    public static RoomStats LIZ(0SP r7) {
        RoomStats roomStats = new RoomStats();
        long LIZ = r7.LIZ();
        while (true) {
            int LIZIZ = r7.LIZIZ();
            if (LIZIZ == -1) {
                r7.LIZ(LIZ);
                return roomStats;
            } else if (LIZIZ == 1) {
                roomStats.id = r7.LJFF();
            } else if (LIZIZ == 2) {
                roomStats.idStr = r7.LIZLLL();
            } else if (LIZIZ == 3) {
                roomStats.ticket = r7.LJFF();
            } else if (LIZIZ == 5) {
                roomStats.totalUser = (int) r7.LJFF();
            } else if (LIZIZ == 6) {
                roomStats.giftUVCount = (int) r7.LJFF();
            } else if (LIZIZ == 7) {
                roomStats.followCount = (int) r7.LJFF();
            } else if (LIZIZ == 9) {
                roomStats.watermelon = (int) r7.LJFF();
            } else if (LIZIZ == 11) {
                roomStats.enterCount = (int) r7.LJFF();
            } else if (LIZIZ == 16) {
                roomStats.replayViewers = (int) r7.LJFF();
            } else if (LIZIZ != 17) {
                0SQ.LIZJ(r7);
            } else {
                roomStats.shareCount = (int) r7.LJFF();
            }
        }
    }
}
