.class Lcom/moji/lottie/Mask$Factory;
.super Ljava/lang/Object;
.source "Mask.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/moji/lottie/Mask;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x8
    name = "Factory"
.end annotation


# direct methods
.method private constructor <init>()V
    .locals 0

    .line 22
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method static a(Lorg/json/JSONObject;Lcom/moji/lottie/LottieComposition;)Lcom/moji/lottie/Mask;
    .locals 3

    const-string v0, "mode"

    .line 27
    invoke-virtual {p0, v0}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->hashCode()I

    move-result v1

    const/16 v2, 0x61

    if-eq v1, v2, :cond_2

    const/16 v2, 0x69

    if-eq v1, v2, :cond_1

    const/16 v2, 0x73

    if-eq v1, v2, :cond_0

    goto :goto_0

    :cond_0
    const-string v1, "s"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3

    const/4 v0, 0x1

    goto :goto_1

    :cond_1
    const-string v1, "i"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3

    const/4 v0, 0x2

    goto :goto_1

    :cond_2
    const-string v1, "a"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3

    const/4 v0, 0x0

    goto :goto_1

    :cond_3
    :goto_0
    const/4 v0, -0x1

    :goto_1
    packed-switch v0, :pswitch_data_0

    .line 38
    sget-object v0, Lcom/moji/lottie/Mask$MaskMode;->MaskModeUnknown:Lcom/moji/lottie/Mask$MaskMode;

    goto :goto_2

    .line 35
    :pswitch_0
    sget-object v0, Lcom/moji/lottie/Mask$MaskMode;->MaskModeIntersect:Lcom/moji/lottie/Mask$MaskMode;

    goto :goto_2

    .line 32
    :pswitch_1
    sget-object v0, Lcom/moji/lottie/Mask$MaskMode;->MaskModeSubtract:Lcom/moji/lottie/Mask$MaskMode;

    goto :goto_2

    .line 29
    :pswitch_2
    sget-object v0, Lcom/moji/lottie/Mask$MaskMode;->MaskModeAdd:Lcom/moji/lottie/Mask$MaskMode;

    :goto_2
    const-string v1, "pt"

    .line 42
    invoke-virtual {p0, v1}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object p0

    .line 41
    invoke-static {p0, p1}, Lcom/moji/lottie/AnimatableShapeValue$Factory;->a(Lorg/json/JSONObject;Lcom/moji/lottie/LottieComposition;)Lcom/moji/lottie/AnimatableShapeValue;

    move-result-object p0

    .line 50
    new-instance p1, Lcom/moji/lottie/Mask;

    const/4 v1, 0x0

    invoke-direct {p1, v0, p0, v1}, Lcom/moji/lottie/Mask;-><init>(Lcom/moji/lottie/Mask$MaskMode;Lcom/moji/lottie/AnimatableShapeValue;Lcom/moji/lottie/Mask$1;)V

    return-object p1

    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_2
        :pswitch_1
        :pswitch_0
    .end packed-switch
.end method
