package com.bytedance.adsdk.ro.jnr;

import android.graphics.Path;
import android.util.JsonReader;
import java.io.IOException;
import java.util.Collections;

/* JADX INFO: loaded from: classes.dex */
class irt {
    public static com.bytedance.adsdk.ro.lb.ro.jnr fm(JsonReader jsonReader, com.bytedance.adsdk.ro.wsy wsyVar) throws IOException {
        int iNextInt;
        com.bytedance.adsdk.ro.lb.fm.yz yzVarRo = null;
        Path.FillType fillType = Path.FillType.WINDING;
        String strNextString = null;
        com.bytedance.adsdk.ro.lb.ro.wsy wsyVar2 = null;
        com.bytedance.adsdk.ro.lb.fm.lb lbVarFm = null;
        com.bytedance.adsdk.ro.lb.fm.ajl ajlVarLb = null;
        com.bytedance.adsdk.ro.lb.fm.ajl ajlVarLb2 = null;
        boolean zNextBoolean = false;
        while (jsonReader.hasNext()) {
            String strNextName = jsonReader.nextName();
            strNextName.getClass();
            iNextInt = -1;
            switch (strNextName) {
                case "e":
                    ajlVarLb2 = yz.lb(jsonReader, wsyVar);
                    break;
                case "g":
                    jsonReader.beginObject();
                    while (jsonReader.hasNext()) {
                        String strNextName2 = jsonReader.nextName();
                        strNextName2.getClass();
                        if (strNextName2.equals("k")) {
                            lbVarFm = yz.fm(jsonReader, wsyVar, iNextInt);
                        } else if (strNextName2.equals("p")) {
                            iNextInt = jsonReader.nextInt();
                        } else {
                            jsonReader.skipValue();
                        }
                    }
                    jsonReader.endObject();
                    break;
                case "o":
                    yzVarRo = yz.ro(jsonReader, wsyVar);
                    break;
                case "r":
                    fillType = jsonReader.nextInt() == 1 ? Path.FillType.WINDING : Path.FillType.EVEN_ODD;
                    break;
                case "s":
                    ajlVarLb = yz.lb(jsonReader, wsyVar);
                    break;
                case "t":
                    wsyVar2 = jsonReader.nextInt() == 1 ? com.bytedance.adsdk.ro.lb.ro.wsy.LINEAR : com.bytedance.adsdk.ro.lb.ro.wsy.RADIAL;
                    break;
                case "hd":
                    zNextBoolean = jsonReader.nextBoolean();
                    break;
                case "nm":
                    strNextString = jsonReader.nextString();
                    break;
                default:
                    jsonReader.skipValue();
                    break;
            }
        }
        return new com.bytedance.adsdk.ro.lb.ro.jnr(strNextString, wsyVar2, fillType, lbVarFm, yzVarRo == null ? new com.bytedance.adsdk.ro.lb.fm.yz(Collections.singletonList(new com.bytedance.adsdk.ro.wsy.fm(100))) : yzVarRo, ajlVarLb, ajlVarLb2, null, null, zNextBoolean);
    }
}
