package com.airbnb.lottie.parser; import android.graphics.PointF; import androidx.media3.exoplayer.upstream.CmcdHeadersFactory; import com.airbnb.lottie.LottieComposition; import com.airbnb.lottie.model.animatable.AnimatablePointValue; import com.airbnb.lottie.model.animatable.AnimatableValue; import com.airbnb.lottie.model.content.CircleShape; import com.airbnb.lottie.parser.moshi.JsonReader; import java.io.IOException; /* loaded from: classes2.dex */ class CircleShapeParser { private static final JsonReader.Options NAMES = JsonReader.Options.of("nm", "p", CmcdHeadersFactory.STREAMING_FORMAT_SS, "hd", "d"); private CircleShapeParser() { } /* JADX INFO: Access modifiers changed from: package-private */ public static CircleShape parse(JsonReader jsonReader, LottieComposition lottieComposition, int i) throws IOException { boolean z = i == 3; boolean z2 = false; String str = null; AnimatableValue animatableValue = null; AnimatablePointValue animatablePointValue = null; while (jsonReader.hasNext()) { int selectName = jsonReader.selectName(NAMES); if (selectName == 0) { str = jsonReader.nextString(); } else if (selectName == 1) { animatableValue = AnimatablePathValueParser.parseSplitPath(jsonReader, lottieComposition); } else if (selectName == 2) { animatablePointValue = AnimatableValueParser.parsePoint(jsonReader, lottieComposition); } else if (selectName == 3) { z2 = jsonReader.nextBoolean(); } else if (selectName == 4) { z = jsonReader.nextInt() == 3; } else { jsonReader.skipName(); jsonReader.skipValue(); } } return new CircleShape(str, animatableValue, animatablePointValue, z, z2); } }