.class public final Lz9/k;
.super Ljava/lang/Object;
.source ""


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lz9/k$a;
    }
.end annotation


# instance fields
.field public a:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "+",
            "Ljava/net/Proxy;",
            ">;"
        }
    .end annotation
.end field

.field public b:I

.field public c:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "+",
            "Ljava/net/InetSocketAddress;",
            ">;"
        }
    .end annotation
.end field

.field public final d:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lv9/j0;",
            ">;"
        }
    .end annotation
.end field

.field public final e:Lv9/a;

.field public final f:Lm8/d;

.field public final g:Lv9/f;

.field public final h:Lv9/r;


# direct methods
.method public constructor <init>(Lv9/a;Lm8/d;Lv9/f;Lv9/r;)V
    .registers 6

    const-string v0, "address"

    invoke-static {p1, v0}, Lx/e;->f(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v0, "routeDatabase"

    invoke-static {p2, v0}, Lx/e;->f(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v0, "call"

    invoke-static {p3, v0}, Lx/e;->f(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v0, "eventListener"

    invoke-static {p4, v0}, Lx/e;->f(Ljava/lang/Object;Ljava/lang/String;)V

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

    iput-object p1, p0, Lz9/k;->e:Lv9/a;

    iput-object p2, p0, Lz9/k;->f:Lm8/d;

    iput-object p3, p0, Lz9/k;->g:Lv9/f;

    iput-object p4, p0, Lz9/k;->h:Lv9/r;

    sget-object p2, Lz8/k;->r:Lz8/k;

    iput-object p2, p0, Lz9/k;->a:Ljava/util/List;

    iput-object p2, p0, Lz9/k;->c:Ljava/util/List;

    new-instance p2, Ljava/util/ArrayList;

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

    iput-object p2, p0, Lz9/k;->d:Ljava/util/List;

    .line 1
    iget-object p2, p1, Lv9/a;->a:Lv9/w;

    .line 2
    iget-object p3, p1, Lv9/a;->j:Ljava/net/Proxy;

    const-string p4, "url"

    .line 3
    invoke-static {p2, p4}, Lx/e;->f(Ljava/lang/Object;Ljava/lang/String;)V

    const/4 p4, 0x0

    if-eqz p3, :cond_3d

    .line 4
    invoke-static {p3}, Lo/b;->c(Ljava/lang/Object;)Ljava/util/List;

    move-result-object p1

    goto :goto_76

    :cond_3d
    invoke-virtual {p2}, Lv9/w;->h()Ljava/net/URI;

    move-result-object p2

    invoke-virtual {p2}, Ljava/net/URI;->getHost()Ljava/lang/String;

    move-result-object p3

    const/4 v0, 0x1

    if-nez p3, :cond_53

    new-array p1, v0, [Ljava/net/Proxy;

    sget-object p2, Ljava/net/Proxy;->NO_PROXY:Ljava/net/Proxy;

    aput-object p2, p1, p4

    invoke-static {p1}, Lw9/c;->l([Ljava/lang/Object;)Ljava/util/List;

    move-result-object p1

    goto :goto_76

    .line 5
    :cond_53
    iget-object p1, p1, Lv9/a;->k:Ljava/net/ProxySelector;

    .line 6
    invoke-virtual {p1, p2}, Ljava/net/ProxySelector;->select(Ljava/net/URI;)Ljava/util/List;

    move-result-object p1

    if-eqz p1, :cond_64

    invoke-interface {p1}, Ljava/util/Collection;->isEmpty()Z

    move-result p2

    if-eqz p2, :cond_62

    goto :goto_64

    :cond_62
    move p2, p4

    goto :goto_65

    :cond_64
    :goto_64
    move p2, v0

    :goto_65
    if-eqz p2, :cond_72

    new-array p1, v0, [Ljava/net/Proxy;

    sget-object p2, Ljava/net/Proxy;->NO_PROXY:Ljava/net/Proxy;

    aput-object p2, p1, p4

    invoke-static {p1}, Lw9/c;->l([Ljava/lang/Object;)Ljava/util/List;

    move-result-object p1

    goto :goto_76

    :cond_72
    invoke-static {p1}, Lw9/c;->w(Ljava/util/List;)Ljava/util/List;

    move-result-object p1

    .line 7
    :goto_76
    iput-object p1, p0, Lz9/k;->a:Ljava/util/List;

    iput p4, p0, Lz9/k;->b:I

    return-void
.end method


# virtual methods
.method public final a()Z
    .registers 3

    invoke-virtual {p0}, Lz9/k;->b()Z

    move-result v0

    const/4 v1, 0x1

    if-nez v0, :cond_12

    iget-object v0, p0, Lz9/k;->d:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/Collection;->isEmpty()Z

    move-result v0

    xor-int/2addr v0, v1

    if-eqz v0, :cond_11

    goto :goto_12

    :cond_11
    const/4 v1, 0x0

    :cond_12
    :goto_12
    return v1
.end method

.method public final b()Z
    .registers 3

    iget v0, p0, Lz9/k;->b:I

    iget-object v1, p0, Lz9/k;->a:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-ge v0, v1, :cond_c

    const/4 v0, 0x1

    goto :goto_d

    :cond_c
    const/4 v0, 0x0

    :goto_d
    return v0
.end method
