n.smali

.class public final Lcom/cm/perm/n;
.super Ljava/lang/Object;
.source "SolutionManager.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/cm/perm/n$a;,
        Lcom/cm/perm/n$b;,
        Lcom/cm/perm/n$c;,
        Lcom/cm/perm/n$d;,
        Lcom/cm/perm/n$e;
    }
.end annotation


# direct methods
.method public constructor <init>()V
    .registers 1

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

    return-void
.end method

.method static synthetic a(Ljava/lang/String;)Lcom/cm/perm/n$c;
    .registers 2

    .prologue
    .line 297
    invoke-static {p0}, Lcom/cm/perm/n;->b(Ljava/lang/String;)Lcom/cm/perm/n$c;

    move-result-object v0

    return-object v0
.end method

.method private static b(Ljava/lang/String;)Lcom/cm/perm/n$c;
    .registers 9

    .prologue
    .line 298
    new-instance v1, Lcom/cm/perm/n$c;

    invoke-direct {v1}, Lcom/cm/perm/n$c;-><init>()V

    .line 301
    :try_start_5
    invoke-static {p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_1f

    .line 302
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0, p0}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 303
    const-string v2, "solution"

    invoke-virtual {v0, v2}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v2

    .line 305
    if-eqz v2, :cond_1f

    .line 306
    invoke-virtual {v2}, Lorg/json/JSONArray;->length()I

    move-result v3

    .line 307
    const/4 v0, 0x0

    :goto_1d
    if-lt v0, v3, :cond_20

    .line 323
    :cond_1f
    :goto_1f
    return-object v1

    .line 308
    :cond_20
    invoke-virtual {v2, v0}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v4

    .line 309
    const/4 v5, 0x1

    invoke-static {v4, v5}, Lcom/cm/perm/n$d;->a(Lorg/json/JSONObject;Z)Lcom/cm/perm/n$d;

    move-result-object v4

    .line 310
    if-eqz v4, :cond_3b

    .line 311
    invoke-static {}, Lcom/cm/perm/a;->a()Lcom/cm/perm/a$a;

    move-result-object v5

    const-string v6, "permx"

    invoke-virtual {v4}, Lcom/cm/perm/n$d;->f()Ljava/lang/String;

    move-result-object v7

    invoke-interface {v5, v6, v7}, Lcom/cm/perm/a$a;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 312
    invoke-virtual {v1, v4}, Lcom/cm/perm/n$c;->a(Lcom/cm/perm/n$d;)V
    :try_end_3b
    .catch Lorg/json/JSONException; {:try_start_5 .. :try_end_3b} :catch_3e

    .line 307
    :cond_3b
    add-int/lit8 v0, v0, 0x1

    goto :goto_1d

    .line 320
    :catch_3e
    move-exception v0

    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_1f
.end method