package com.bytedance.android.livesdk.chatroom.model.interact.audience;

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

public final class _PermitResult_ProtoDecoder implements 0SJ<PermitResult> {
    static {
        Covode.recordClassIndex(13802);
    }

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

    public static PermitResult LIZ(0SP r6) {
        PermitResult permitResult = new PermitResult();
        long LIZ = r6.LIZ();
        while (true) {
            int LIZIZ = r6.LIZIZ();
            if (LIZIZ == -1) {
                r6.LIZ(LIZ);
                return permitResult;
            } else if (LIZIZ == 2) {
                permitResult.LIZ = (int) r6.LJFF();
            } else if (LIZIZ == 3) {
                permitResult.LIZIZ = r6.LJ();
            } else if (LIZIZ == 6) {
                permitResult.LIZJ = r6.LIZLLL();
            } else if (LIZIZ == 7) {
                permitResult.LIZLLL = (int) r6.LJFF();
            } else if (LIZIZ == 8) {
                permitResult.LJ = r6.LIZLLL();
            } else if (LIZIZ != 11) {
                0SQ.LIZJ(r6);
            } else {
                permitResult.LJFF = (int) r6.LJFF();
            }
        }
    }
}
