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

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

public final class _CoHost_ProtoDecoder implements 0SJ<CoHost> {
    static {
        Covode.recordClassIndex(18996);
    }

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

    public static CoHost LIZ(0SP r5) {
        CoHost coHost = new CoHost(0);
        coHost.LIZIZ = new ArrayList();
        long LIZ = r5.LIZ();
        while (true) {
            int LIZIZ = r5.LIZIZ();
            if (LIZIZ == -1) {
                r5.LIZ(LIZ);
                return coHost;
            } else if (LIZIZ == 1) {
                coHost.LIZ = 0SQ.LIZ(r5);
            } else if (LIZIZ != 2) {
                0SQ.LIZJ(r5);
            } else {
                coHost.LIZIZ.add(_LinkmicUser_ProtoDecoder.LIZ(r5));
            }
        }
    }
}
