.class public final Lya/t$i;
.super Lya/t;
.source ""


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lya/t;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x19
    name = "i"
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "<T:",
        "Ljava/lang/Object;",
        ">",
        "Lya/t<",
        "TT;>;"
    }
.end annotation


# instance fields
.field public final a:Ljava/lang/reflect/Method;

.field public final b:I

.field public final c:Ljava/lang/String;

.field public final d:Lya/f;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lya/f<",
            "TT;",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field public final e:Z


# direct methods
.method public constructor <init>(Ljava/lang/reflect/Method;ILjava/lang/String;Lya/f;Z)V
    .registers 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/reflect/Method;",
            "I",
            "Ljava/lang/String;",
            "Lya/f<",
            "TT;",
            "Ljava/lang/String;",
            ">;Z)V"
        }
    .end annotation

    invoke-direct {p0}, Lya/t;-><init>()V

    iput-object p1, p0, Lya/t$i;->a:Ljava/lang/reflect/Method;

    iput p2, p0, Lya/t$i;->b:I

    const-string p1, "name == null"

    invoke-static {p3, p1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;

    iput-object p3, p0, Lya/t$i;->c:Ljava/lang/String;

    iput-object p4, p0, Lya/t$i;->d:Lya/f;

    iput-boolean p5, p0, Lya/t$i;->e:Z

    return-void
.end method


# virtual methods
.method public a(Lya/v;Ljava/lang/Object;)V
    .registers 20
    .param p2    # Ljava/lang/Object;
        .annotation runtime Ljavax/annotation/Nullable;
        .end annotation
    .end param
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lya/v;",
            "TT;)V"
        }
    .end annotation

    move-object/from16 v0, p0

    move-object/from16 v1, p1

    move-object/from16 v2, p2

    const/4 v3, 0x0

    if-eqz v2, :cond_fa

    iget-object v4, v0, Lya/t$i;->c:Ljava/lang/String;

    iget-object v5, v0, Lya/t$i;->d:Lya/f;

    invoke-interface {v5, v2}, Lya/f;->c(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    iget-boolean v5, v0, Lya/t$i;->e:Z

    .line 1
    iget-object v6, v1, Lya/v;->c:Ljava/lang/String;

    if-eqz v6, :cond_f4

    .line 2
    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v6

    move v7, v3

    :goto_1e
    if-ge v7, v6, :cond_bc

    invoke-virtual {v2, v7}, Ljava/lang/String;->codePointAt(I)I

    move-result v8

    const/16 v9, 0x2f

    const/4 v10, -0x1

    const-string v11, " \"<>^`{}|\\?#"

    const/16 v12, 0x7f

    const/16 v13, 0x25

    const/16 v14, 0x20

    if-lt v8, v14, :cond_46

    if-ge v8, v12, :cond_46

    invoke-virtual {v11, v8}, Ljava/lang/String;->indexOf(I)I

    move-result v15

    if-ne v15, v10, :cond_46

    if-nez v5, :cond_40

    if-eq v8, v9, :cond_46

    if-ne v8, v13, :cond_40

    goto :goto_46

    :cond_40
    invoke-static {v8}, Ljava/lang/Character;->charCount(I)I

    move-result v8

    add-int/2addr v7, v8

    goto :goto_1e

    :cond_46
    :goto_46
    new-instance v8, Lha/e;

    invoke-direct {v8}, Lha/e;-><init>()V

    invoke-virtual {v8, v2, v3, v7}, Lha/e;->k0(Ljava/lang/String;II)Lha/e;

    const/4 v3, 0x0

    :goto_4f
    if-ge v7, v6, :cond_b7

    .line 3
    invoke-virtual {v2, v7}, Ljava/lang/String;->codePointAt(I)I

    move-result v13

    if-eqz v5, :cond_68

    const/16 v15, 0x9

    if-eq v13, v15, :cond_ae

    const/16 v15, 0xa

    if-eq v13, v15, :cond_ae

    const/16 v15, 0xc

    if-eq v13, v15, :cond_ae

    const/16 v15, 0xd

    if-ne v13, v15, :cond_68

    goto :goto_ae

    :cond_68
    if-lt v13, v14, :cond_7f

    if-ge v13, v12, :cond_7f

    invoke-virtual {v11, v13}, Ljava/lang/String;->indexOf(I)I

    move-result v15

    if-ne v15, v10, :cond_7f

    if-nez v5, :cond_7b

    if-eq v13, v9, :cond_7f

    const/16 v9, 0x25

    if-ne v13, v9, :cond_7b

    goto :goto_7f

    :cond_7b
    invoke-virtual {v8, v13}, Lha/e;->l0(I)Lha/e;

    goto :goto_ae

    :cond_7f
    :goto_7f
    if-nez v3, :cond_86

    new-instance v3, Lha/e;

    invoke-direct {v3}, Lha/e;-><init>()V

    :cond_86
    invoke-virtual {v3, v13}, Lha/e;->l0(I)Lha/e;

    :goto_89
    invoke-virtual {v3}, Lha/e;->v()Z

    move-result v9

    if-nez v9, :cond_ae

    invoke-virtual {v3}, Lha/e;->readByte()B

    move-result v9

    and-int/lit16 v9, v9, 0xff

    const/16 v15, 0x25

    invoke-virtual {v8, v15}, Lha/e;->e0(I)Lha/e;

    sget-object v15, Lya/v;->l:[C

    shr-int/lit8 v16, v9, 0x4

    and-int/lit8 v16, v16, 0xf

    aget-char v10, v15, v16

    invoke-virtual {v8, v10}, Lha/e;->e0(I)Lha/e;

    and-int/lit8 v9, v9, 0xf

    aget-char v9, v15, v9

    invoke-virtual {v8, v9}, Lha/e;->e0(I)Lha/e;

    const/4 v10, -0x1

    goto :goto_89

    :cond_ae
    :goto_ae
    invoke-static {v13}, Ljava/lang/Character;->charCount(I)I

    move-result v9

    add-int/2addr v7, v9

    const/16 v9, 0x2f

    const/4 v10, -0x1

    goto :goto_4f

    .line 4
    :cond_b7
    invoke-virtual {v8}, Lha/e;->T()Ljava/lang/String;

    move-result-object v3

    goto :goto_bd

    :cond_bc
    move-object v3, v2

    .line 5
    :goto_bd
    iget-object v5, v1, Lya/v;->c:Ljava/lang/String;

    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    const-string v7, "{"

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v4, "}"

    invoke-virtual {v6, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v5, v4, v3}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v3

    sget-object v4, Lya/v;->m:Ljava/util/regex/Pattern;

    invoke-virtual {v4, v3}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;

    move-result-object v4

    invoke-virtual {v4}, Ljava/util/regex/Matcher;->matches()Z

    move-result v4

    if-nez v4, :cond_e8

    iput-object v3, v1, Lya/v;->c:Ljava/lang/String;

    return-void

    :cond_e8
    new-instance v1, Ljava/lang/IllegalArgumentException;

    const-string v3, "@Path parameters shouldn\'t perform path traversal (\'.\' or \'..\'): "

    invoke-static {v3, v2}, Le/a;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v1

    :cond_f4
    new-instance v1, Ljava/lang/AssertionError;

    invoke-direct {v1}, Ljava/lang/AssertionError;-><init>()V

    throw v1

    .line 6
    :cond_fa
    iget-object v1, v0, Lya/t$i;->a:Ljava/lang/reflect/Method;

    iget v2, v0, Lya/t$i;->b:I

    const-string v4, "Path parameter \""

    invoke-static {v4}, Landroidx/activity/c;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    iget-object v5, v0, Lya/t$i;->c:Ljava/lang/String;

    const-string v6, "\" value must not be null."

    invoke-static {v4, v5, v6}, Landroidx/activity/b;->a(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    new-array v3, v3, [Ljava/lang/Object;

    invoke-static {v1, v2, v4, v3}, Lya/f0;->l(Ljava/lang/reflect/Method;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException;

    move-result-object v1

    throw v1
.end method
