NetworkChangeNotifierAutoDetect$ConnectivityManagerDelegate.smali

.class Laegon/chrome/net/NetworkChangeNotifierAutoDetect$ConnectivityManagerDelegate;
.super Ljava/lang/Object;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Laegon/chrome/net/NetworkChangeNotifierAutoDetect;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x8
    name = "ConnectivityManagerDelegate"
.end annotation


# static fields
.field static final synthetic $assertionsDisabled:Z


# instance fields
.field private final mConnectivityManager:Landroid/net/ConnectivityManager;


# direct methods
.method static constructor <clinit>()V
    .registers 1

    const-class v0, Laegon/chrome/net/NetworkChangeNotifierAutoDetect;

    invoke-virtual {v0}, Ljava/lang/Class;->desiredAssertionStatus()Z

    move-result v0

    if-nez v0, :cond_c

    const/4 v0, 0x1

    :goto_9
    sput-boolean v0, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$ConnectivityManagerDelegate;->$assertionsDisabled:Z

    return-void

    :cond_c
    const/4 v0, 0x0

    goto :goto_9
.end method

.method constructor <init>()V
    .registers 2

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

    const/4 v0, 0x0

    iput-object v0, p0, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$ConnectivityManagerDelegate;->mConnectivityManager:Landroid/net/ConnectivityManager;

    return-void
.end method

.method constructor <init>(Landroid/content/Context;)V
    .registers 3

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

    const-string v0, "connectivity"

    invoke-virtual {p1, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/net/ConnectivityManager;

    iput-object v0, p0, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$ConnectivityManagerDelegate;->mConnectivityManager:Landroid/net/ConnectivityManager;

    return-void
.end method

.method private getNetworkInfo(Landroid/net/Network;)Landroid/net/NetworkInfo;
    .registers 3

    :try_start_0
    iget-object v0, p0, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$ConnectivityManagerDelegate;->mConnectivityManager:Landroid/net/ConnectivityManager;

    invoke-virtual {v0, p1}, Landroid/net/ConnectivityManager;->getNetworkInfo(Landroid/net/Network;)Landroid/net/NetworkInfo;
    :try_end_5
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_5} :catch_7

    move-result-object v0

    :goto_6
    return-object v0

    :catch_7
    move-exception v0

    :try_start_8
    iget-object v0, p0, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$ConnectivityManagerDelegate;->mConnectivityManager:Landroid/net/ConnectivityManager;

    invoke-virtual {v0, p1}, Landroid/net/ConnectivityManager;->getNetworkInfo(Landroid/net/Network;)Landroid/net/NetworkInfo;
    :try_end_d
    .catch Ljava/lang/Exception; {:try_start_8 .. :try_end_d} :catch_f

    move-result-object v0

    goto :goto_6

    :catch_f
    move-exception v0

    const/4 v0, 0x0

    goto :goto_6
.end method

.method private processActiveNetworkInfo(Landroid/net/NetworkInfo;)Landroid/net/NetworkInfo;
    .registers 5
    .annotation build Landroid/annotation/TargetApi;
        value = 0x15
    .end annotation

    const/4 v0, 0x0

    if-nez p1, :cond_5

    move-object p1, v0

    :cond_4
    :goto_4
    return-object p1

    :cond_5
    invoke-virtual {p1}, Landroid/net/NetworkInfo;->isConnected()Z

    move-result v1

    if-nez v1, :cond_4

    sget v1, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v2, 0x15

    if-ge v1, v2, :cond_13

    move-object p1, v0

    goto :goto_4

    :cond_13
    invoke-virtual {p1}, Landroid/net/NetworkInfo;->getDetailedState()Landroid/net/NetworkInfo$DetailedState;

    move-result-object v1

    sget-object v2, Landroid/net/NetworkInfo$DetailedState;->BLOCKED:Landroid/net/NetworkInfo$DetailedState;

    if-eq v1, v2, :cond_1d

    move-object p1, v0

    goto :goto_4

    :cond_1d
    invoke-static {}, Laegon/chrome/base/ApplicationStatus;->getStateForApplication()I

    move-result v1

    const/4 v2, 0x1

    if-eq v1, v2, :cond_4

    move-object p1, v0

    goto :goto_4
.end method


# virtual methods
.method protected getAllNetworksUnfiltered()[Landroid/net/Network;
    .registers 2
    .annotation build Laegon/chrome/base/VisibleForTesting;
    .end annotation

    .annotation build Landroid/annotation/TargetApi;
        value = 0x15
    .end annotation

    iget-object v0, p0, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$ConnectivityManagerDelegate;->mConnectivityManager:Landroid/net/ConnectivityManager;

    invoke-virtual {v0}, Landroid/net/ConnectivityManager;->getAllNetworks()[Landroid/net/Network;

    move-result-object v0

    if-nez v0, :cond_b

    const/4 v0, 0x0

    new-array v0, v0, [Landroid/net/Network;

    :cond_b
    return-object v0
.end method

.method getConnectionType(Landroid/net/Network;)I
    .registers 5
    .annotation build Landroid/annotation/TargetApi;
        value = 0x15
    .end annotation

    invoke-direct {p0, p1}, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$ConnectivityManagerDelegate;->getNetworkInfo(Landroid/net/Network;)Landroid/net/NetworkInfo;

    move-result-object v0

    if-eqz v0, :cond_14

    invoke-virtual {v0}, Landroid/net/NetworkInfo;->getType()I

    move-result v1

    const/16 v2, 0x11

    if-ne v1, v2, :cond_14

    iget-object v0, p0, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$ConnectivityManagerDelegate;->mConnectivityManager:Landroid/net/ConnectivityManager;

    invoke-virtual {v0}, Landroid/net/ConnectivityManager;->getActiveNetworkInfo()Landroid/net/NetworkInfo;

    move-result-object v0

    :cond_14
    if-eqz v0, :cond_29

    invoke-virtual {v0}, Landroid/net/NetworkInfo;->isConnected()Z

    move-result v1

    if-eqz v1, :cond_29

    invoke-virtual {v0}, Landroid/net/NetworkInfo;->getType()I

    move-result v1

    invoke-virtual {v0}, Landroid/net/NetworkInfo;->getSubtype()I

    move-result v0

    # invokes: Laegon/chrome/net/NetworkChangeNotifierAutoDetect;->convertToConnectionType(II)I
    invoke-static {v1, v0}, Laegon/chrome/net/NetworkChangeNotifierAutoDetect;->access$000(II)I

    move-result v0

    :goto_28
    return v0

    :cond_29
    const/4 v0, 0x6

    goto :goto_28
.end method

.method getDefaultNetwork()Landroid/net/Network;
    .registers 10
    .annotation build Landroid/annotation/TargetApi;
        value = 0x15
    .end annotation

    const/4 v1, 0x0

    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v2, 0x17

    if-lt v0, v2, :cond_10

    iget-object v0, p0, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$ConnectivityManagerDelegate;->mConnectivityManager:Landroid/net/ConnectivityManager;

    invoke-static {v0}, Laegon/chrome/base/compat/ApiHelperForM;->getActiveNetwork(Landroid/net/ConnectivityManager;)Landroid/net/Network;

    move-result-object v0

    if-eqz v0, :cond_11

    :cond_f
    :goto_f
    return-object v0

    :cond_10
    move-object v0, v1

    :cond_11
    iget-object v2, p0, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$ConnectivityManagerDelegate;->mConnectivityManager:Landroid/net/ConnectivityManager;

    invoke-virtual {v2}, Landroid/net/ConnectivityManager;->getActiveNetworkInfo()Landroid/net/NetworkInfo;

    move-result-object v3

    if-nez v3, :cond_1b

    move-object v0, v1

    goto :goto_f

    :cond_1b
    # invokes: Laegon/chrome/net/NetworkChangeNotifierAutoDetect;->getAllNetworksFiltered(Laegon/chrome/net/NetworkChangeNotifierAutoDetect$ConnectivityManagerDelegate;Landroid/net/Network;)[Landroid/net/Network;
    invoke-static {p0, v1}, Laegon/chrome/net/NetworkChangeNotifierAutoDetect;->access$100(Laegon/chrome/net/NetworkChangeNotifierAutoDetect$ConnectivityManagerDelegate;Landroid/net/Network;)[Landroid/net/Network;

    move-result-object v4

    array-length v5, v4

    const/4 v1, 0x0

    move v2, v1

    :goto_22
    if-ge v2, v5, :cond_f

    aget-object v1, v4, v2

    invoke-direct {p0, v1}, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$ConnectivityManagerDelegate;->getNetworkInfo(Landroid/net/Network;)Landroid/net/NetworkInfo;

    move-result-object v6

    if-eqz v6, :cond_4b

    invoke-virtual {v6}, Landroid/net/NetworkInfo;->getType()I

    move-result v7

    invoke-virtual {v3}, Landroid/net/NetworkInfo;->getType()I

    move-result v8

    if-eq v7, v8, :cond_3e

    invoke-virtual {v6}, Landroid/net/NetworkInfo;->getType()I

    move-result v6

    const/16 v7, 0x11

    if-ne v6, v7, :cond_4b

    :cond_3e
    sget-boolean v6, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$ConnectivityManagerDelegate;->$assertionsDisabled:Z

    if-nez v6, :cond_4a

    if-eqz v0, :cond_4a

    new-instance v0, Ljava/lang/AssertionError;

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

    throw v0

    :cond_4a
    move-object v0, v1

    :cond_4b
    add-int/lit8 v1, v2, 0x1

    move v2, v1

    goto :goto_22
.end method

.method protected getNetworkCapabilities(Landroid/net/Network;)Landroid/net/NetworkCapabilities;
    .registers 3
    .annotation build Laegon/chrome/base/VisibleForTesting;
    .end annotation

    .annotation build Landroid/annotation/TargetApi;
        value = 0x15
    .end annotation

    iget-object v0, p0, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$ConnectivityManagerDelegate;->mConnectivityManager:Landroid/net/ConnectivityManager;

    invoke-virtual {v0, p1}, Landroid/net/ConnectivityManager;->getNetworkCapabilities(Landroid/net/Network;)Landroid/net/NetworkCapabilities;

    move-result-object v0

    return-object v0
.end method

.method getNetworkState(Laegon/chrome/net/NetworkChangeNotifierAutoDetect$WifiManagerDelegate;)Laegon/chrome/net/NetworkChangeNotifierAutoDetect$NetworkState;
    .registers 13

    const/16 v6, 0x17

    const/4 v2, -0x1

    const/4 v4, 0x0

    const/4 v9, 0x1

    const/4 v1, 0x0

    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    if-lt v0, v6, :cond_23

    invoke-virtual {p0}, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$ConnectivityManagerDelegate;->getDefaultNetwork()Landroid/net/Network;

    move-result-object v3

    iget-object v0, p0, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$ConnectivityManagerDelegate;->mConnectivityManager:Landroid/net/ConnectivityManager;

    invoke-static {v0, v3}, Laegon/chrome/base/compat/ApiHelperForM;->getNetworkInfo(Landroid/net/ConnectivityManager;Landroid/net/Network;)Landroid/net/NetworkInfo;

    move-result-object v0

    move-object v5, v3

    :goto_15
    invoke-direct {p0, v0}, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$ConnectivityManagerDelegate;->processActiveNetworkInfo(Landroid/net/NetworkInfo;)Landroid/net/NetworkInfo;

    move-result-object v3

    if-nez v3, :cond_2b

    new-instance v0, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$NetworkState;

    move v3, v2

    move v5, v1

    invoke-direct/range {v0 .. v5}, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$NetworkState;-><init>(ZIILjava/lang/String;Z)V

    :goto_22
    return-object v0

    :cond_23
    iget-object v0, p0, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$ConnectivityManagerDelegate;->mConnectivityManager:Landroid/net/ConnectivityManager;

    invoke-virtual {v0}, Landroid/net/ConnectivityManager;->getActiveNetworkInfo()Landroid/net/NetworkInfo;

    move-result-object v0

    move-object v5, v4

    goto :goto_15

    :cond_2b
    if-eqz v5, :cond_59

    new-instance v0, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$NetworkState;

    invoke-virtual {v3}, Landroid/net/NetworkInfo;->getType()I

    move-result v2

    invoke-virtual {v3}, Landroid/net/NetworkInfo;->getSubtype()I

    move-result v3

    invoke-static {v5}, Laegon/chrome/net/NetworkChangeNotifierAutoDetect;->networkToNetId(Landroid/net/Network;)J

    move-result-wide v6

    invoke-static {v6, v7}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v4

    sget v6, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v7, 0x1c

    if-lt v6, v7, :cond_57

    iget-object v6, p0, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$ConnectivityManagerDelegate;->mConnectivityManager:Landroid/net/ConnectivityManager;

    invoke-virtual {v6, v5}, Landroid/net/ConnectivityManager;->getLinkProperties(Landroid/net/Network;)Landroid/net/LinkProperties;

    move-result-object v5

    invoke-static {v5}, Laegon/chrome/net/AndroidNetworkLibrary;->isPrivateDnsActive(Landroid/net/LinkProperties;)Z

    move-result v5

    if-eqz v5, :cond_57

    move v5, v9

    :goto_52
    move v1, v9

    invoke-direct/range {v0 .. v5}, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$NetworkState;-><init>(ZIILjava/lang/String;Z)V

    goto :goto_22

    :cond_57
    move v5, v1

    goto :goto_52

    :cond_59
    sget-boolean v0, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$ConnectivityManagerDelegate;->$assertionsDisabled:Z

    if-nez v0, :cond_67

    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    if-lt v0, v6, :cond_67

    new-instance v0, Ljava/lang/AssertionError;

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

    throw v0

    :cond_67
    invoke-virtual {v3}, Landroid/net/NetworkInfo;->getType()I

    move-result v0

    if-ne v0, v9, :cond_aa

    invoke-virtual {v3}, Landroid/net/NetworkInfo;->getExtraInfo()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_94

    const-string v0, ""

    invoke-virtual {v3}, Landroid/net/NetworkInfo;->getExtraInfo()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_94

    new-instance v2, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$NetworkState;

    invoke-virtual {v3}, Landroid/net/NetworkInfo;->getType()I

    move-result v4

    invoke-virtual {v3}, Landroid/net/NetworkInfo;->getSubtype()I

    move-result v5

    invoke-virtual {v3}, Landroid/net/NetworkInfo;->getExtraInfo()Ljava/lang/String;

    move-result-object v6

    move v3, v9

    move v7, v1

    invoke-direct/range {v2 .. v7}, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$NetworkState;-><init>(ZIILjava/lang/String;Z)V

    move-object v0, v2

    goto :goto_22

    :cond_94
    new-instance v2, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$NetworkState;

    invoke-virtual {v3}, Landroid/net/NetworkInfo;->getType()I

    move-result v4

    invoke-virtual {v3}, Landroid/net/NetworkInfo;->getSubtype()I

    move-result v5

    invoke-virtual {p1}, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$WifiManagerDelegate;->getWifiSsid()Ljava/lang/String;

    move-result-object v6

    move v3, v9

    move v7, v1

    invoke-direct/range {v2 .. v7}, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$NetworkState;-><init>(ZIILjava/lang/String;Z)V

    move-object v0, v2

    goto/16 :goto_22

    :cond_aa
    new-instance v5, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$NetworkState;

    invoke-virtual {v3}, Landroid/net/NetworkInfo;->getType()I

    move-result v7

    invoke-virtual {v3}, Landroid/net/NetworkInfo;->getSubtype()I

    move-result v8

    move v6, v9

    move-object v9, v4

    move v10, v1

    invoke-direct/range {v5 .. v10}, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$NetworkState;-><init>(ZIILjava/lang/String;Z)V

    move-object v0, v5

    goto/16 :goto_22
.end method

.method registerDefaultNetworkCallback(Landroid/net/ConnectivityManager$NetworkCallback;Landroid/os/Handler;)V
    .registers 4
    .annotation build Landroid/annotation/TargetApi;
        value = 0x1c
    .end annotation

    iget-object v0, p0, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$ConnectivityManagerDelegate;->mConnectivityManager:Landroid/net/ConnectivityManager;

    invoke-virtual {v0, p1, p2}, Landroid/net/ConnectivityManager;->registerDefaultNetworkCallback(Landroid/net/ConnectivityManager$NetworkCallback;Landroid/os/Handler;)V

    return-void
.end method

.method registerNetworkCallback(Landroid/net/NetworkRequest;Landroid/net/ConnectivityManager$NetworkCallback;Landroid/os/Handler;)V
    .registers 6
    .annotation build Landroid/annotation/TargetApi;
        value = 0x15
    .end annotation

    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x1a

    if-lt v0, v1, :cond_c

    iget-object v0, p0, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$ConnectivityManagerDelegate;->mConnectivityManager:Landroid/net/ConnectivityManager;

    invoke-virtual {v0, p1, p2, p3}, Landroid/net/ConnectivityManager;->registerNetworkCallback(Landroid/net/NetworkRequest;Landroid/net/ConnectivityManager$NetworkCallback;Landroid/os/Handler;)V

    :goto_b
    return-void

    :cond_c
    iget-object v0, p0, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$ConnectivityManagerDelegate;->mConnectivityManager:Landroid/net/ConnectivityManager;

    invoke-virtual {v0, p1, p2}, Landroid/net/ConnectivityManager;->registerNetworkCallback(Landroid/net/NetworkRequest;Landroid/net/ConnectivityManager$NetworkCallback;)V

    goto :goto_b
.end method

.method unregisterNetworkCallback(Landroid/net/ConnectivityManager$NetworkCallback;)V
    .registers 3
    .annotation build Landroid/annotation/TargetApi;
        value = 0x15
    .end annotation

    iget-object v0, p0, Laegon/chrome/net/NetworkChangeNotifierAutoDetect$ConnectivityManagerDelegate;->mConnectivityManager:Landroid/net/ConnectivityManager;

    invoke-virtual {v0, p1}, Landroid/net/ConnectivityManager;->unregisterNetworkCallback(Landroid/net/ConnectivityManager$NetworkCallback;)V

    return-void
.end method

.method protected vpnAccessible(Landroid/net/Network;)Z
    .registers 6
    .annotation build Laegon/chrome/base/VisibleForTesting;
    .end annotation

    .annotation build Landroid/annotation/TargetApi;
        value = 0x15
    .end annotation

    new-instance v2, Ljava/net/Socket;

    invoke-direct {v2}, Ljava/net/Socket;-><init>()V

    :try_start_5
    invoke-static {}, Laegon/chrome/base/StrictModeContext;->allowAllVmPolicies()Laegon/chrome/base/StrictModeContext;
    :try_end_8
    .catch Ljava/io/IOException; {:try_start_5 .. :try_end_8} :catch_1e
    .catchall {:try_start_5 .. :try_end_8} :catchall_2a

    move-result-object v3

    const/4 v1, 0x0

    :try_start_a
    invoke-virtual {p1, v2}, Landroid/net/Network;->bindSocket(Ljava/net/Socket;)V
    :try_end_d
    .catch Ljava/lang/Throwable; {:try_start_a .. :try_end_d} :catch_2f
    .catchall {:try_start_a .. :try_end_d} :catchall_31

    if-eqz v3, :cond_14

    if-eqz v1, :cond_26

    :try_start_11
    invoke-virtual {v3}, Laegon/chrome/base/StrictModeContext;->close()V
    :try_end_14
    .catch Ljava/lang/Throwable; {:try_start_11 .. :try_end_14} :catch_19
    .catch Ljava/io/IOException; {:try_start_11 .. :try_end_14} :catch_1e
    .catchall {:try_start_11 .. :try_end_14} :catchall_2a

    :cond_14
    :goto_14
    :try_start_14
    invoke-virtual {v2}, Ljava/net/Socket;->close()V
    :try_end_17
    .catch Ljava/io/IOException; {:try_start_14 .. :try_end_17} :catch_43

    :goto_17
    const/4 v0, 0x1

    :goto_18
    return v0

    :catch_19
    move-exception v0

    :try_start_1a
    invoke-virtual {v1, v0}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
    :try_end_1d
    .catch Ljava/io/IOException; {:try_start_1a .. :try_end_1d} :catch_1e
    .catchall {:try_start_1a .. :try_end_1d} :catchall_2a

    goto :goto_14

    :catch_1e
    move-exception v0

    const/4 v0, 0x0

    :try_start_20
    invoke-virtual {v2}, Ljava/net/Socket;->close()V
    :try_end_23
    .catch Ljava/io/IOException; {:try_start_20 .. :try_end_23} :catch_24

    goto :goto_18

    :catch_24
    move-exception v1

    goto :goto_18

    :cond_26
    :try_start_26
    invoke-virtual {v3}, Laegon/chrome/base/StrictModeContext;->close()V
    :try_end_29
    .catch Ljava/io/IOException; {:try_start_26 .. :try_end_29} :catch_1e
    .catchall {:try_start_26 .. :try_end_29} :catchall_2a

    goto :goto_14

    :catchall_2a
    move-exception v0

    :try_start_2b
    invoke-virtual {v2}, Ljava/net/Socket;->close()V
    :try_end_2e
    .catch Ljava/io/IOException; {:try_start_2b .. :try_end_2e} :catch_45

    :goto_2e
    throw v0

    :catch_2f
    move-exception v1

    :try_start_30
    throw v1
    :try_end_31
    .catchall {:try_start_30 .. :try_end_31} :catchall_31

    :catchall_31
    move-exception v0

    if-eqz v3, :cond_39

    if-eqz v1, :cond_3f

    :try_start_36
    invoke-virtual {v3}, Laegon/chrome/base/StrictModeContext;->close()V
    :try_end_39
    .catch Ljava/lang/Throwable; {:try_start_36 .. :try_end_39} :catch_3a
    .catch Ljava/io/IOException; {:try_start_36 .. :try_end_39} :catch_1e
    .catchall {:try_start_36 .. :try_end_39} :catchall_2a

    :cond_39
    :goto_39
    :try_start_39
    throw v0

    :catch_3a
    move-exception v3

    invoke-virtual {v1, v3}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V

    goto :goto_39

    :cond_3f
    invoke-virtual {v3}, Laegon/chrome/base/StrictModeContext;->close()V
    :try_end_42
    .catch Ljava/io/IOException; {:try_start_39 .. :try_end_42} :catch_1e
    .catchall {:try_start_39 .. :try_end_42} :catchall_2a

    goto :goto_39

    :catch_43
    move-exception v0

    goto :goto_17

    :catch_45
    move-exception v1

    goto :goto_2e
.end method