package com.bytedance.android.livesdk.model;

import X.0SJ;
import X.0SP;
import X.0SQ;
import com.bytedance.android.live.base.model._ImageModel_ProtoDecoder;
import com.bytedance.covode.number.Covode;

public final class _GiftOperation_ProtoDecoder implements 0SJ<GiftOperation> {
    static {
        Covode.recordClassIndex(18923);
    }

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

    public static GiftOperation LIZ(0SP r6) {
        GiftOperation giftOperation = new GiftOperation();
        long LIZ = r6.LIZ();
        while (true) {
            int LIZIZ = r6.LIZIZ();
            if (LIZIZ != -1) {
                switch (LIZIZ) {
                    case 1:
                        giftOperation.leftImage = _ImageModel_ProtoDecoder.LIZ(r6);
                        break;
                    case 2:
                        giftOperation.rightImage = _ImageModel_ProtoDecoder.LIZ(r6);
                        break;
                    case 3:
                        giftOperation.title = r6.LIZLLL();
                        break;
                    case 4:
                        giftOperation.titleColor = r6.LIZLLL();
                        break;
                    case 5:
                        giftOperation.titleSize = (int) r6.LJFF();
                        break;
                    case 6:
                        giftOperation.schemeUrl = r6.LIZLLL();
                        break;
                    case 7:
                        giftOperation.eventName = r6.LIZLLL();
                        break;
                    default:
                        0SQ.LIZJ(r6);
                        break;
                }
            } else {
                r6.LIZ(LIZ);
                return giftOperation;
            }
        }
    }
}
