.class public final Lz5/y71;
.super Ljava/lang/Object;
.source ""


# instance fields
.field public final a:Landroid/content/Context;

.field public final b:Landroid/os/Looper;


# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/os/Looper;)V
    .registers 3

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

    iput-object p1, p0, Lz5/y71;->a:Landroid/content/Context;

    iput-object p2, p0, Lz5/y71;->b:Landroid/os/Looper;

    return-void
.end method


# virtual methods
.method public final a(Ljava/lang/String;)V
    .registers 6

    invoke-static {}, Lz5/k81;->w()Lz5/i81;

    move-result-object v0

    iget-object v1, p0, Lz5/y71;->a:Landroid/content/Context;

    invoke-virtual {v1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v1

    .line 1
    iget-boolean v2, v0, Lz5/uk1;->t:Z

    const/4 v3, 0x0

    if-eqz v2, :cond_14

    invoke-virtual {v0}, Lz5/uk1;->i()V

    iput-boolean v3, v0, Lz5/uk1;->t:Z

    :cond_14
    iget-object v2, v0, Lz5/uk1;->s:Lz5/xk1;

    check-cast v2, Lz5/k81;

    invoke-static {v2, v1}, Lz5/k81;->y(Lz5/k81;Ljava/lang/String;)V

    .line 2
    iget-boolean v1, v0, Lz5/uk1;->t:Z

    if-eqz v1, :cond_24

    invoke-virtual {v0}, Lz5/uk1;->i()V

    iput-boolean v3, v0, Lz5/uk1;->t:Z

    :cond_24
    iget-object v1, v0, Lz5/uk1;->s:Lz5/xk1;

    check-cast v1, Lz5/k81;

    invoke-static {v1}, Lz5/k81;->A(Lz5/k81;)V

    .line 3
    invoke-static {}, Lz5/h81;->w()Lz5/g81;

    move-result-object v1

    .line 4
    iget-boolean v2, v1, Lz5/uk1;->t:Z

    if-eqz v2, :cond_38

    invoke-virtual {v1}, Lz5/uk1;->i()V

    iput-boolean v3, v1, Lz5/uk1;->t:Z

    :cond_38
    iget-object v2, v1, Lz5/uk1;->s:Lz5/xk1;

    check-cast v2, Lz5/h81;

    invoke-static {v2, p1}, Lz5/h81;->y(Lz5/h81;Ljava/lang/String;)V

    .line 5
    iget-boolean p1, v1, Lz5/uk1;->t:Z

    if-eqz p1, :cond_48

    invoke-virtual {v1}, Lz5/uk1;->i()V

    iput-boolean v3, v1, Lz5/uk1;->t:Z

    :cond_48
    iget-object p1, v1, Lz5/uk1;->s:Lz5/xk1;

    check-cast p1, Lz5/h81;

    const/4 v2, 0x2

    invoke-static {p1, v2}, Lz5/h81;->z(Lz5/h81;I)V

    .line 6
    iget-boolean p1, v0, Lz5/uk1;->t:Z

    if-eqz p1, :cond_59

    invoke-virtual {v0}, Lz5/uk1;->i()V

    iput-boolean v3, v0, Lz5/uk1;->t:Z

    :cond_59
    iget-object p1, v0, Lz5/uk1;->s:Lz5/xk1;

    check-cast p1, Lz5/k81;

    invoke-virtual {v1}, Lz5/uk1;->m()Lz5/xk1;

    move-result-object v1

    check-cast v1, Lz5/h81;

    invoke-static {p1, v1}, Lz5/k81;->z(Lz5/k81;Lz5/h81;)V

    .line 7
    invoke-virtual {v0}, Lz5/uk1;->m()Lz5/xk1;

    move-result-object p1

    check-cast p1, Lz5/k81;

    iget-object v0, p0, Lz5/y71;->a:Landroid/content/Context;

    iget-object v1, p0, Lz5/y71;->b:Landroid/os/Looper;

    new-instance v2, Lz5/z71;

    invoke-direct {v2, v0, v1, p1}, Lz5/z71;-><init>(Landroid/content/Context;Landroid/os/Looper;Lz5/k81;)V

    .line 8
    iget-object p1, v2, Lz5/z71;->t:Ljava/lang/Object;

    monitor-enter p1

    :try_start_78
    iget-boolean v0, v2, Lz5/z71;->u:Z

    if-nez v0, :cond_84

    const/4 v0, 0x1

    iput-boolean v0, v2, Lz5/z71;->u:Z

    iget-object v0, v2, Lz5/z71;->r:Lz5/p81;

    invoke-virtual {v0}, Lcom/google/android/gms/common/internal/a;->checkAvailabilityAndConnect()V

    :cond_84
    monitor-exit p1

    return-void

    :catchall_86
    move-exception v0

    monitor-exit p1
    :try_end_88
    .catchall {:try_start_78 .. :try_end_88} :catchall_86

    throw v0
.end method
