.class public final Lq8/j;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Ln8/x;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lq8/j$a;,
        Lq8/j$b;
    }
.end annotation


# instance fields
.field public final r:Lp8/g;

.field public final s:Ln8/c;

.field public final t:Lp8/o;

.field public final u:Lq8/d;

.field public final v:Ls8/b;


# direct methods
.method public constructor <init>(Lp8/g;Ln8/c;Lp8/o;Lq8/d;)V
    .registers 6

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

    .line 1
    sget-object v0, Ls8/b;->a:Ls8/b;

    .line 2
    iput-object v0, p0, Lq8/j;->v:Ls8/b;

    iput-object p1, p0, Lq8/j;->r:Lp8/g;

    iput-object p2, p0, Lq8/j;->s:Ln8/c;

    iput-object p3, p0, Lq8/j;->t:Lp8/o;

    iput-object p4, p0, Lq8/j;->u:Lq8/d;

    return-void
.end method


# virtual methods
.method public a(Ln8/h;Lt8/a;)Ln8/w;
    .registers 37
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "<T:",
            "Ljava/lang/Object;",
            ">(",
            "Ln8/h;",
            "Lt8/a<",
            "TT;>;)",
            "Ln8/w<",
            "TT;>;"
        }
    .end annotation

    move-object/from16 v11, p0

    move-object/from16 v12, p1

    move-object/from16 v0, p2

    .line 1
    const-class v13, Ljava/lang/Object;

    iget-object v1, v0, Lt8/a;->a:Ljava/lang/Class;

    .line 2
    invoke-virtual {v13, v1}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z

    move-result v2

    const/4 v14, 0x0

    if-nez v2, :cond_12

    return-object v14

    :cond_12
    iget-object v2, v11, Lq8/j;->r:Lp8/g;

    invoke-virtual {v2, v0}, Lp8/g;->a(Lt8/a;)Lp8/s;

    move-result-object v15

    new-instance v10, Lq8/j$a;

    .line 3
    new-instance v9, Ljava/util/LinkedHashMap;

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

    invoke-virtual {v1}, Ljava/lang/Class;->isInterface()Z

    move-result v2

    if-eqz v2, :cond_2c

    :cond_25
    move-object v14, v9

    move-object/from16 v33, v10

    move-object/from16 v28, v15

    goto/16 :goto_1d9

    .line 4
    :cond_2c
    iget-object v8, v0, Lt8/a;->b:Ljava/lang/reflect/Type;

    move-object v7, v0

    move-object v6, v1

    :goto_30
    if-eq v6, v13, :cond_25

    .line 5
    invoke-virtual {v6}, Ljava/lang/Class;->getDeclaredFields()[Ljava/lang/reflect/Field;

    move-result-object v5

    array-length v4, v5

    const/4 v3, 0x0

    move v2, v3

    :goto_39
    if-ge v2, v4, :cond_1b2

    aget-object v1, v5, v2

    const/4 v0, 0x1

    invoke-virtual {v11, v1, v0}, Lq8/j;->b(Ljava/lang/reflect/Field;Z)Z

    move-result v16

    invoke-virtual {v11, v1, v3}, Lq8/j;->b(Ljava/lang/reflect/Field;Z)Z

    move-result v17

    if-nez v16, :cond_60

    if-nez v17, :cond_60

    move/from16 v19, v2

    move/from16 v29, v3

    move/from16 v20, v4

    move-object/from16 v31, v5

    move-object/from16 p2, v6

    move-object/from16 v32, v7

    move-object v14, v9

    move-object/from16 v33, v10

    move-object/from16 v22, v13

    move-object/from16 v28, v15

    move-object v15, v8

    goto/16 :goto_17b

    :cond_60
    iget-object v3, v11, Lq8/j;->v:Ls8/b;

    invoke-virtual {v3, v1}, Ls8/b;->a(Ljava/lang/reflect/AccessibleObject;)V

    .line 6
    iget-object v3, v7, Lt8/a;->b:Ljava/lang/reflect/Type;

    .line 7
    invoke-virtual {v1}, Ljava/lang/reflect/Field;->getGenericType()Ljava/lang/reflect/Type;

    move-result-object v14

    invoke-static {v3, v6, v14}, Lp8/a;->g(Ljava/lang/reflect/Type;Ljava/lang/Class;Ljava/lang/reflect/Type;)Ljava/lang/reflect/Type;

    move-result-object v14

    .line 8
    const-class v3, Lo8/b;

    invoke-virtual {v1, v3}, Ljava/lang/reflect/Field;->getAnnotation(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;

    move-result-object v3

    check-cast v3, Lo8/b;

    if-nez v3, :cond_86

    iget-object v3, v11, Lq8/j;->s:Ln8/c;

    invoke-interface {v3, v1}, Ln8/c;->b(Ljava/lang/reflect/Field;)Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Ljava/util/Collections;->singletonList(Ljava/lang/Object;)Ljava/util/List;

    move-result-object v3

    move/from16 v19, v2

    goto :goto_97

    :cond_86
    invoke-interface {v3}, Lo8/b;->value()Ljava/lang/String;

    move-result-object v0

    invoke-interface {v3}, Lo8/b;->alternate()[Ljava/lang/String;

    move-result-object v3

    move/from16 v19, v2

    array-length v2, v3

    if-nez v2, :cond_9d

    invoke-static {v0}, Ljava/util/Collections;->singletonList(Ljava/lang/Object;)Ljava/util/List;

    move-result-object v3

    :goto_97
    move/from16 v20, v4

    const/16 v18, 0x1

    move-object v4, v3

    goto :goto_bd

    :cond_9d
    new-instance v2, Ljava/util/ArrayList;

    move/from16 v20, v4

    array-length v4, v3

    const/16 v18, 0x1

    add-int/lit8 v4, v4, 0x1

    invoke-direct {v2, v4}, Ljava/util/ArrayList;-><init>(I)V

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    array-length v0, v3

    const/4 v4, 0x0

    :goto_ae
    if-ge v4, v0, :cond_bc

    move/from16 v21, v0

    aget-object v0, v3, v4

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    add-int/lit8 v4, v4, 0x1

    move/from16 v0, v21

    goto :goto_ae

    :cond_bc
    move-object v4, v2

    .line 9
    :goto_bd
    invoke-interface {v4}, Ljava/util/List;->size()I

    move-result v3

    const/4 v0, 0x0

    const/4 v2, 0x0

    :goto_c3
    if-ge v2, v3, :cond_168

    invoke-interface {v4, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v21

    move-object/from16 v22, v13

    move-object/from16 v13, v21

    check-cast v13, Ljava/lang/String;

    move-object/from16 v21, v9

    if-eqz v2, :cond_d5

    const/16 v16, 0x0

    .line 10
    :cond_d5
    new-instance v9, Lt8/a;

    invoke-direct {v9, v14}, Lt8/a;-><init>(Ljava/lang/reflect/Type;)V

    move-object/from16 v23, v0

    .line 11
    iget-object v0, v9, Lt8/a;->a:Ljava/lang/Class;

    move/from16 v24, v2

    .line 12
    sget-object v2, Lp8/t;->a:Ljava/util/Map;

    invoke-interface {v2, v0}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result v25

    .line 13
    const-class v0, Lo8/a;

    invoke-virtual {v1, v0}, Ljava/lang/reflect/Field;->getAnnotation(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;

    move-result-object v0

    check-cast v0, Lo8/a;

    if-eqz v0, :cond_fb

    iget-object v2, v11, Lq8/j;->u:Lq8/d;

    move-object/from16 v26, v1

    iget-object v1, v11, Lq8/j;->r:Lp8/g;

    invoke-virtual {v2, v1, v12, v9, v0}, Lq8/d;->b(Lp8/g;Ln8/h;Lt8/a;Lo8/a;)Ln8/w;

    move-result-object v0

    goto :goto_fe

    :cond_fb
    move-object/from16 v26, v1

    const/4 v0, 0x0

    :goto_fe
    if-eqz v0, :cond_103

    move/from16 v27, v18

    goto :goto_105

    :cond_103
    const/16 v27, 0x0

    :goto_105
    if-nez v0, :cond_10b

    invoke-virtual {v12, v9}, Ln8/h;->b(Lt8/a;)Ln8/w;

    move-result-object v0

    :cond_10b
    move-object/from16 v28, v0

    new-instance v2, Lq8/i;

    move-object/from16 v1, v23

    move-object v0, v2

    move-object v11, v1

    move-object/from16 v23, v26

    move-object/from16 v1, p0

    move-object v12, v2

    move-object v2, v13

    move/from16 v26, v3

    const/16 v29, 0x0

    move/from16 v3, v16

    move-object/from16 v30, v4

    move/from16 v4, v17

    move-object/from16 v31, v5

    move-object/from16 v5, v23

    move-object/from16 p2, v6

    move/from16 v6, v27

    move-object/from16 v27, v14

    move-object v14, v7

    move-object/from16 v7, v28

    move-object/from16 v28, v15

    move-object v15, v8

    move-object/from16 v8, p1

    move-object/from16 v32, v14

    move-object/from16 v14, v21

    move-object/from16 v33, v10

    move/from16 v10, v25

    invoke-direct/range {v0 .. v10}, Lq8/i;-><init>(Lq8/j;Ljava/lang/String;ZZLjava/lang/reflect/Field;ZLn8/w;Ln8/h;Lt8/a;Z)V

    .line 14
    invoke-interface {v14, v13, v12}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lq8/j$b;

    if-nez v11, :cond_149

    goto :goto_14a

    :cond_149
    move-object v0, v11

    :goto_14a
    add-int/lit8 v2, v24, 0x1

    move-object/from16 v11, p0

    move-object/from16 v12, p1

    move-object/from16 v6, p2

    move-object v9, v14

    move-object v8, v15

    move-object/from16 v13, v22

    move-object/from16 v1, v23

    move/from16 v3, v26

    move-object/from16 v14, v27

    move-object/from16 v15, v28

    move-object/from16 v4, v30

    move-object/from16 v5, v31

    move-object/from16 v7, v32

    move-object/from16 v10, v33

    goto/16 :goto_c3

    :cond_168
    move-object v11, v0

    move-object/from16 v31, v5

    move-object/from16 p2, v6

    move-object/from16 v32, v7

    move-object v14, v9

    move-object/from16 v33, v10

    move-object/from16 v22, v13

    move-object/from16 v28, v15

    const/16 v29, 0x0

    move-object v15, v8

    if-nez v11, :cond_196

    :goto_17b
    add-int/lit8 v2, v19, 0x1

    move-object/from16 v11, p0

    move-object/from16 v12, p1

    move-object/from16 v6, p2

    move-object v9, v14

    move-object v8, v15

    move/from16 v4, v20

    move-object/from16 v13, v22

    move-object/from16 v15, v28

    move/from16 v3, v29

    move-object/from16 v5, v31

    move-object/from16 v7, v32

    move-object/from16 v10, v33

    const/4 v14, 0x0

    goto/16 :goto_39

    :cond_196
    new-instance v0, Ljava/lang/IllegalArgumentException;

    new-instance v1, Ljava/lang/StringBuilder;

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

    invoke-virtual {v1, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string v2, " declares multiple JSON fields named "

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

    iget-object v2, v11, Lq8/j$b;->a:Ljava/lang/String;

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

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

    move-result-object v1

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

    throw v0

    :cond_1b2
    move-object/from16 p2, v6

    move-object v0, v7

    move-object v14, v9

    move-object/from16 v33, v10

    move-object/from16 v22, v13

    move-object/from16 v28, v15

    move-object v15, v8

    .line 15
    iget-object v0, v0, Lt8/a;->b:Ljava/lang/reflect/Type;

    .line 16
    invoke-virtual/range {p2 .. p2}, Ljava/lang/Class;->getGenericSuperclass()Ljava/lang/reflect/Type;

    move-result-object v1

    move-object/from16 v2, p2

    invoke-static {v0, v2, v1}, Lp8/a;->g(Ljava/lang/reflect/Type;Ljava/lang/Class;Ljava/lang/reflect/Type;)Ljava/lang/reflect/Type;

    move-result-object v0

    .line 17
    new-instance v7, Lt8/a;

    invoke-direct {v7, v0}, Lt8/a;-><init>(Ljava/lang/reflect/Type;)V

    .line 18
    iget-object v6, v7, Lt8/a;->a:Ljava/lang/Class;

    move-object/from16 v11, p0

    move-object/from16 v12, p1

    move-object/from16 v15, v28

    const/4 v14, 0x0

    goto/16 :goto_30

    :goto_1d9
    move-object/from16 v0, v28

    move-object/from16 v1, v33

    .line 19
    invoke-direct {v1, v0, v14}, Lq8/j$a;-><init>(Lp8/s;Ljava/util/Map;)V

    return-object v1
.end method

.method public b(Ljava/lang/reflect/Field;Z)Z
    .registers 8

    iget-object v0, p0, Lq8/j;->t:Lp8/o;

    .line 1
    invoke-virtual {p1}, Ljava/lang/reflect/Field;->getType()Ljava/lang/Class;

    move-result-object v1

    .line 2
    invoke-virtual {v0, v1}, Lp8/o;->c(Ljava/lang/Class;)Z

    move-result v2

    const/4 v3, 0x0

    const/4 v4, 0x1

    if-nez v2, :cond_17

    .line 3
    invoke-virtual {v0, v1, p2}, Lp8/o;->b(Ljava/lang/Class;Z)Z

    move-result v1

    if-eqz v1, :cond_15

    goto :goto_17

    :cond_15
    move v1, v3

    goto :goto_18

    :cond_17
    :goto_17
    move v1, v4

    :goto_18
    if-nez v1, :cond_63

    .line 4
    invoke-virtual {p1}, Ljava/lang/reflect/Field;->getModifiers()I

    move-result v1

    and-int/lit16 v1, v1, 0x88

    if-eqz v1, :cond_23

    goto :goto_5d

    :cond_23
    invoke-virtual {p1}, Ljava/lang/reflect/Field;->isSynthetic()Z

    move-result v1

    if-eqz v1, :cond_2a

    goto :goto_5d

    :cond_2a
    invoke-virtual {p1}, Ljava/lang/reflect/Field;->getType()Ljava/lang/Class;

    move-result-object v1

    invoke-virtual {v0, v1}, Lp8/o;->c(Ljava/lang/Class;)Z

    move-result v1

    if-eqz v1, :cond_35

    goto :goto_5d

    :cond_35
    if-eqz p2, :cond_3a

    iget-object p2, v0, Lp8/o;->r:Ljava/util/List;

    goto :goto_3c

    :cond_3a
    iget-object p2, v0, Lp8/o;->s:Ljava/util/List;

    :goto_3c
    invoke-interface {p2}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_5f

    new-instance v0, Lf/o;

    invoke-direct {v0, p1}, Lf/o;-><init>(Ljava/lang/reflect/Field;)V

    invoke-interface {p2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :cond_4b
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result p2

    if-eqz p2, :cond_5f

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Ln8/a;

    invoke-interface {p2, v0}, Ln8/a;->b(Lf/o;)Z

    move-result p2

    if-eqz p2, :cond_4b

    :goto_5d
    move p1, v4

    goto :goto_60

    :cond_5f
    move p1, v3

    :goto_60
    if-nez p1, :cond_63

    move v3, v4

    :cond_63
    return v3
.end method
