package com.bytedance.android.livesdk.wallet;

import X.0SJ;
import X.0SP;
import X.0SQ;
import com.bytedance.android.live.wallet.model._CurrencyPriceItem_ProtoDecoder;
import com.bytedance.covode.number.Covode;
import java.util.ArrayList;

public final class _Diamond_ProtoDecoder implements 0SJ<Diamond> {
    static {
        Covode.recordClassIndex(21590);
    }

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

    public static Diamond LIZ(0SP r7) {
        Diamond diamond = new Diamond();
        diamond.LJIIL = new ArrayList();
        long LIZ = r7.LIZ();
        while (true) {
            int LIZIZ = r7.LIZIZ();
            if (LIZIZ != -1) {
                switch (LIZIZ) {
                    case 1:
                        diamond.LIZ = (int) 0SQ.LIZIZ(r7);
                        break;
                    case 2:
                        diamond.LIZIZ = r7.LIZLLL();
                        break;
                    case 3:
                        diamond.LIZJ = String.valueOf(r7.LJ());
                        break;
                    case 4:
                        diamond.LJIIJ = Integer.valueOf(r7.LJ());
                        break;
                    case 5:
                        diamond.LIZLLL = r7.LJ();
                        break;
                    case 6:
                        diamond.LJ = r7.LJ();
                        break;
                    case 7:
                        diamond.LJIIJJI = r7.LIZLLL();
                        break;
                    case 8:
                        diamond.LJIIL.add(_CurrencyPriceItem_ProtoDecoder.LIZ(r7));
                        break;
                    case 9:
                        diamond.LJIILIIL = r7.LIZLLL();
                        break;
                    case 10:
                        diamond.LJIILJJIL = Integer.valueOf(r7.LJ());
                        break;
                    default:
                        0SQ.LIZJ(r7);
                        break;
                }
            } else {
                r7.LIZ(LIZ);
                return diamond;
            }
        }
    }
}
