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

# interfaces
.implements Landroid/os/Handler$Callback;


# instance fields
.field public final synthetic r:I

.field public final s:Ljava/lang/Object;


# direct methods
.method public synthetic constructor <init>(Ll5/n;)V
    .registers 3

    const/4 v0, 0x0

    iput v0, p0, Ll5/j;->r:I

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

    iput-object p1, p0, Ll5/j;->s:Ljava/lang/Object;

    return-void
.end method

.method public constructor <init>(Lz5/z6;)V
    .registers 3

    const/4 v0, 0x1

    iput v0, p0, Ll5/j;->r:I

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

    iput-object p1, p0, Ll5/j;->s:Ljava/lang/Object;

    return-void
.end method


# virtual methods
.method public final handleMessage(Landroid/os/Message;)Z
    .registers 9

    iget v0, p0, Ll5/j;->r:I

    const/4 v1, 0x1

    const/4 v2, 0x0

    packed-switch v0, :pswitch_data_be

    goto :goto_7c

    .line 1
    :pswitch_8
    iget-object v0, p0, Ll5/j;->s:Ljava/lang/Object;

    check-cast v0, Ll5/n;

    iget v3, p1, Landroid/os/Message;->arg1:I

    const-string v4, "MessengerIpcClient"

    const/4 v5, 0x3

    invoke-static {v4, v5}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z

    move-result v4

    if-eqz v4, :cond_2f

    new-instance v4, Ljava/lang/StringBuilder;

    const/16 v5, 0x29

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

    const-string v5, "Received response to request: "

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

    invoke-virtual {v4, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v5, "MessengerIpcClient"

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

    move-result-object v4

    invoke-static {v5, v4}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    :cond_2f
    monitor-enter v0

    :try_start_30
    iget-object v4, v0, Ll5/n;->v:Landroid/util/SparseArray;

    invoke-virtual {v4, v3}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ll5/q;

    if-nez v4, :cond_54

    new-instance p1, Ljava/lang/StringBuilder;

    const/16 v2, 0x32

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

    const-string v2, "Received response for unknown request: "

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

    invoke-virtual {p1, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v2, "MessengerIpcClient"

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

    move-result-object p1

    invoke-static {v2, p1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I

    monitor-exit v0

    goto :goto_78

    :cond_54
    iget-object v5, v0, Ll5/n;->v:Landroid/util/SparseArray;

    invoke-virtual {v5, v3}, Landroid/util/SparseArray;->remove(I)V

    invoke-virtual {v0}, Ll5/n;->c()V

    monitor-exit v0
    :try_end_5d
    .catchall {:try_start_30 .. :try_end_5d} :catchall_79

    invoke-virtual {p1}, Landroid/os/Message;->getData()Landroid/os/Bundle;

    move-result-object p1

    const-string v0, "unsupported"

    invoke-virtual {p1, v0, v2}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z

    move-result v0

    if-eqz v0, :cond_75

    new-instance p1, Ll5/r;

    const-string v0, "Not supported by GmsCore"

    const/4 v2, 0x0

    invoke-direct {p1, v0, v2}, Ll5/r;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V

    invoke-virtual {v4, p1}, Ll5/q;->c(Ll5/r;)V

    goto :goto_78

    :cond_75
    invoke-virtual {v4, p1}, Ll5/q;->a(Landroid/os/Bundle;)V

    :goto_78
    return v1

    :catchall_79
    move-exception p1

    :try_start_7a
    monitor-exit v0
    :try_end_7b
    .catchall {:try_start_7a .. :try_end_7b} :catchall_79

    throw p1

    .line 2
    :goto_7c
    iget-object p1, p0, Ll5/j;->s:Ljava/lang/Object;

    check-cast p1, Lz5/z6;

    .line 3
    iget-object v0, p1, Lz5/z6;->d:Ljava/util/concurrent/CopyOnWriteArraySet;

    invoke-virtual {v0}, Ljava/util/concurrent/CopyOnWriteArraySet;->iterator()Ljava/util/Iterator;

    move-result-object v0

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

    move-result v3

    if-eqz v3, :cond_bc

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

    move-result-object v3

    check-cast v3, Lcom/google/android/gms/internal/ads/e;

    iget-object v4, p1, Lz5/z6;->c:Lz5/y6;

    .line 4
    iget-boolean v5, v3, Lcom/google/android/gms/internal/ads/e;->d:Z

    if-nez v5, :cond_b0

    iget-boolean v5, v3, Lcom/google/android/gms/internal/ads/e;->c:Z

    if-eqz v5, :cond_b0

    iget-object v5, v3, Lcom/google/android/gms/internal/ads/e;->b:Lz5/r6;

    invoke-virtual {v5}, Lz5/r6;->d()Lz5/u6;

    move-result-object v5

    new-instance v6, Lz5/r6;

    invoke-direct {v6}, Lz5/r6;-><init>()V

    iput-object v6, v3, Lcom/google/android/gms/internal/ads/e;->b:Lz5/r6;

    iput-boolean v2, v3, Lcom/google/android/gms/internal/ads/e;->c:Z

    iget-object v3, v3, Lcom/google/android/gms/internal/ads/e;->a:Ljava/lang/Object;

    invoke-interface {v4, v3, v5}, Lz5/y6;->e(Ljava/lang/Object;Lz5/u6;)V

    .line 5
    :cond_b0
    iget-object v3, p1, Lz5/z6;->b:Lz5/v6;

    check-cast v3, Lz5/n7;

    .line 6
    iget-object v3, v3, Lz5/n7;->a:Landroid/os/Handler;

    invoke-virtual {v3, v2}, Landroid/os/Handler;->hasMessages(I)Z

    move-result v3

    if-eqz v3, :cond_86

    :cond_bc
    return v1

    nop

    :pswitch_data_be
    .packed-switch 0x0
        :pswitch_8
    .end packed-switch
.end method
