.class public final Ld/c;
.super Ld/a;
.source ""


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ld/a<",
        "[",
        "Ljava/lang/String;",
        "Ljava/util/Map<",
        "Ljava/lang/String;",
        "Ljava/lang/Boolean;",
        ">;>;"
    }
.end annotation


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

    invoke-direct {p0}, Ld/a;-><init>()V

    return-void
.end method


# virtual methods
.method public a(Landroid/content/Context;Ljava/lang/Object;)Landroid/content/Intent;
    .registers 4

    check-cast p2, [Ljava/lang/String;

    .line 1
    new-instance p1, Landroid/content/Intent;

    const-string v0, "androidx.activity.result.contract.action.REQUEST_PERMISSIONS"

    invoke-direct {p1, v0}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    const-string v0, "androidx.activity.result.contract.extra.PERMISSIONS"

    invoke-virtual {p1, v0, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;[Ljava/lang/String;)Landroid/content/Intent;

    move-result-object p1

    return-object p1
.end method

.method public b(Landroid/content/Context;Ljava/lang/Object;)Ld/a$a;
    .registers 12

    check-cast p2, [Ljava/lang/String;

    if-eqz p2, :cond_36

    .line 1
    array-length v0, p2

    if-nez v0, :cond_8

    goto :goto_36

    :cond_8
    new-instance v0, Lr/a;

    invoke-direct {v0}, Lr/a;-><init>()V

    array-length v1, p2

    const/4 v2, 0x0

    const/4 v3, 0x1

    move v4, v2

    move v5, v3

    :goto_12
    if-ge v4, v1, :cond_2c

    aget-object v6, p2, v4

    invoke-static {p1, v6}, Lc0/a;->a(Landroid/content/Context;Ljava/lang/String;)I

    move-result v7

    if-nez v7, :cond_1e

    move v7, v3

    goto :goto_1f

    :cond_1e
    move v7, v2

    :goto_1f
    invoke-static {v7}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v8

    invoke-virtual {v0, v6, v8}, Lr/h;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    if-nez v7, :cond_29

    move v5, v2

    :cond_29
    add-int/lit8 v4, v4, 0x1

    goto :goto_12

    :cond_2c
    if-eqz v5, :cond_34

    new-instance p1, Ld/a$a;

    invoke-direct {p1, v0}, Ld/a$a;-><init>(Ljava/lang/Object;)V

    goto :goto_3f

    :cond_34
    const/4 p1, 0x0

    goto :goto_3f

    :cond_36
    :goto_36
    new-instance p1, Ld/a$a;

    invoke-static {}, Ljava/util/Collections;->emptyMap()Ljava/util/Map;

    move-result-object p2

    invoke-direct {p1, p2}, Ld/a$a;-><init>(Ljava/lang/Object;)V

    :goto_3f
    return-object p1
.end method

.method public c(ILandroid/content/Intent;)Ljava/lang/Object;
    .registers 9

    const/4 v0, -0x1

    if-eq p1, v0, :cond_8

    .line 1
    :cond_3
    :goto_3
    invoke-static {}, Ljava/util/Collections;->emptyMap()Ljava/util/Map;

    move-result-object p1

    goto :goto_3a

    :cond_8
    if-nez p2, :cond_b

    goto :goto_3

    :cond_b
    const-string p1, "androidx.activity.result.contract.extra.PERMISSIONS"

    invoke-virtual {p2, p1}, Landroid/content/Intent;->getStringArrayExtra(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object p1

    const-string v0, "androidx.activity.result.contract.extra.PERMISSION_GRANT_RESULTS"

    invoke-virtual {p2, v0}, Landroid/content/Intent;->getIntArrayExtra(Ljava/lang/String;)[I

    move-result-object p2

    if-eqz p2, :cond_3

    if-nez p1, :cond_1c

    goto :goto_3

    :cond_1c
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    array-length v1, p1

    const/4 v2, 0x0

    move v3, v2

    :goto_24
    if-ge v3, v1, :cond_39

    aget-object v4, p1, v3

    aget v5, p2, v3

    if-nez v5, :cond_2e

    const/4 v5, 0x1

    goto :goto_2f

    :cond_2e
    move v5, v2

    :goto_2f
    invoke-static {v5}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v5

    invoke-virtual {v0, v4, v5}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    add-int/lit8 v3, v3, 0x1

    goto :goto_24

    :cond_39
    move-object p1, v0

    :goto_3a
    return-object p1
.end method
