d.smali

.class public Ls3/d;
.super Ljava/lang/Object;
.source "SourceFile"


# static fields
.field private static volatile a:Z

.field private static volatile b:Z


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

    return-void
.end method

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

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

    return-void
.end method

.method private static a()Z
    .registers 2

    :try_start_0
    sget v0, Lcom/google/android/gms/common/GoogleApiAvailability;->GOOGLE_PLAY_SERVICES_VERSION_CODE:I
    :try_end_2
    .catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_2} :catch_4

    const/4 v0, 0x1

    return v0

    :catch_4
    sget-boolean v0, Ls3/c;->c:Z

    if-eqz v0, :cond_f

    sget-object v0, Ls3/c;->a:Ljava/lang/String;

    const-string v1, "google play service not available"

    invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    :cond_f
    const/4 v0, 0x0

    return v0
.end method

.method public static b(Landroid/content/Context;)Z
    .registers 4

    sget-boolean v0, Ls3/d;->a:Z

    const/4 v1, 0x1

    if-nez v0, :cond_19

    const-class v0, Ls3/d;

    monitor-enter v0

    :try_start_8
    sget-boolean v2, Ls3/d;->a:Z

    if-nez v2, :cond_14

    sput-boolean v1, Ls3/d;->a:Z

    invoke-static {}, Ls3/d;->a()Z

    move-result v2

    sput-boolean v2, Ls3/d;->b:Z

    :cond_14
    monitor-exit v0

    goto :goto_19

    :catchall_16
    move-exception p0

    monitor-exit v0
    :try_end_18
    .catchall {:try_start_8 .. :try_end_18} :catchall_16

    throw p0

    :cond_19
    :goto_19
    sget-boolean v0, Ls3/d;->b:Z

    if-eqz v0, :cond_28

    invoke-static {}, Lcom/google/android/gms/common/GoogleApiAvailability;->getInstance()Lcom/google/android/gms/common/GoogleApiAvailability;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/google/android/gms/common/GoogleApiAvailability;->isGooglePlayServicesAvailable(Landroid/content/Context;)I

    move-result p0

    if-nez p0, :cond_28

    goto :goto_29

    :cond_28
    const/4 v1, 0x0

    :goto_29
    return v1
.end method