package com.bytedance.adsdk.ro.jnr;

import android.graphics.PointF;
import android.util.JsonReader;
import com.bytedance.adsdk.ro.lb.ro;
import java.io.IOException;

/* JADX INFO: loaded from: classes.dex */
public class ef implements tzk<com.bytedance.adsdk.ro.lb.ro> {
    public static final ef fm = new ef();

    private ef() {
    }

    @Override // com.bytedance.adsdk.ro.jnr.tzk
    /* JADX INFO: renamed from: fm, reason: merged with bridge method [inline-methods] */
    public com.bytedance.adsdk.ro.lb.ro ro(JsonReader jsonReader, float f10) throws IOException {
        ro.fm fmVar = ro.fm.CENTER;
        jsonReader.beginObject();
        ro.fm fmVar2 = fmVar;
        String strNextString = null;
        String strNextString2 = null;
        PointF pointF = null;
        PointF pointF2 = null;
        float fNextDouble = 0.0f;
        float fNextDouble2 = 0.0f;
        float fNextDouble3 = 0.0f;
        float fNextDouble4 = 0.0f;
        int iNextInt = 0;
        int iFm = 0;
        int iFm2 = 0;
        boolean zNextBoolean = true;
        while (jsonReader.hasNext()) {
            String strNextName = jsonReader.nextName();
            strNextName.getClass();
            switch (strNextName) {
                case "f":
                    strNextString2 = jsonReader.nextString();
                    break;
                case "j":
                    int iNextInt2 = jsonReader.nextInt();
                    fmVar2 = ro.fm.CENTER;
                    if (iNextInt2 <= fmVar2.ordinal() && iNextInt2 >= 0) {
                        fmVar2 = ro.fm.values()[iNextInt2];
                        break;
                    } else {
                        break;
                    }
                    break;
                case "s":
                    fNextDouble = (float) jsonReader.nextDouble();
                    break;
                case "t":
                    strNextString = jsonReader.nextString();
                    break;
                case "fc":
                    iFm = gqi.fm(jsonReader);
                    break;
                case "lh":
                    fNextDouble2 = (float) jsonReader.nextDouble();
                    break;
                case "ls":
                    fNextDouble3 = (float) jsonReader.nextDouble();
                    break;
                case "of":
                    zNextBoolean = jsonReader.nextBoolean();
                    break;
                case "ps":
                    jsonReader.beginArray();
                    PointF pointF3 = new PointF(((float) jsonReader.nextDouble()) * f10, ((float) jsonReader.nextDouble()) * f10);
                    jsonReader.endArray();
                    pointF = pointF3;
                    break;
                case "sc":
                    iFm2 = gqi.fm(jsonReader);
                    break;
                case "sw":
                    fNextDouble4 = (float) jsonReader.nextDouble();
                    break;
                case "sz":
                    jsonReader.beginArray();
                    PointF pointF4 = new PointF(((float) jsonReader.nextDouble()) * f10, ((float) jsonReader.nextDouble()) * f10);
                    jsonReader.endArray();
                    pointF2 = pointF4;
                    break;
                case "tr":
                    iNextInt = jsonReader.nextInt();
                    break;
                default:
                    jsonReader.skipValue();
                    break;
            }
        }
        jsonReader.endObject();
        return new com.bytedance.adsdk.ro.lb.ro(strNextString, strNextString2, fNextDouble, fmVar2, iNextInt, fNextDouble2, fNextDouble3, iFm, iFm2, fNextDouble4, zNextBoolean, pointF, pointF2);
    }
}
