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

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

public final class _FreqLimitGiftOption_ProtoDecoder implements 0SJ<FreqLimitGiftOption> {
    static {
        Covode.recordClassIndex(16444);
    }

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

    public static FreqLimitGiftOption LIZ(0SP r5) {
        FreqLimitGiftOption freqLimitGiftOption = new FreqLimitGiftOption();
        long LIZ = r5.LIZ();
        while (true) {
            int LIZIZ = r5.LIZIZ();
            if (LIZIZ == -1) {
                r5.LIZ(LIZ);
                return freqLimitGiftOption;
            } else if (LIZIZ == 1) {
                freqLimitGiftOption.LIZ = r5.LJFF();
            } else if (LIZIZ == 2) {
                freqLimitGiftOption.LIZIZ = r5.LJFF();
            } else if (LIZIZ == 3) {
                freqLimitGiftOption.LIZJ = 0SQ.LIZ(r5);
            } else if (LIZIZ == 4) {
                freqLimitGiftOption.LIZLLL = 0SQ.LIZ(r5);
            } else if (LIZIZ != 5) {
                0SQ.LIZJ(r5);
            } else {
                freqLimitGiftOption.LJ = r5.LJ();
            }
        }
    }
}
