granularity level: instruction
.class public final Lr0/p;
.super Ljava/lang/Object;
.source "SourceFile"
.implements Lb1/a;
.field public volatile a:Ljava/util/Set;
.field public volatile b:Ljava/util/Set;
.method public constructor <init>(Ljava/util/Collection;)V
.locals 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
iput-object v0, p0, Lr0/p;->b:Ljava/util/Set;
new-instance v0, Ljava/util/concurrent/ConcurrentHashMap;
invoke-direct {v0}, Ljava/util/concurrent/ConcurrentHashMap;-><init>()V
invoke-static {v0}, Ljava/util/Collections;->newSetFromMap(Ljava/util/Map;)Ljava/util/Set;
move-result-object v0
iput-object v0, p0, Lr0/p;->a:Ljava/util/Set;
iget-object v0, p0, Lr0/p;->a:Ljava/util/Set;
invoke-interface {v0, p1}, Ljava/util/Set;->addAll(Ljava/util/Collection;)Z
return-void
.end method
.method public final get()Ljava/lang/Object;
.locals 3
iget-object v0, p0, Lr0/p;->b:Ljava/util/Set;
if-nez v0, :cond_2
monitor-enter p0
:try_start_0
iget-object v0, p0, Lr0/p;->b:Ljava/util/Set;
if-nez v0, :cond_1
new-instance v0, Ljava/util/concurrent/ConcurrentHashMap;
invoke-direct {v0}, Ljava/util/concurrent/ConcurrentHashMap;-><init>()V
invoke-static {v0}, Ljava/util/Collections;->newSetFromMap(Ljava/util/Map;)Ljava/util/Set;
move-result-object v0
iput-object v0, p0, Lr0/p;->b:Ljava/util/Set;
monitor-enter p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_1
:try_start_1
iget-object v0, p0, Lr0/p;->a:Ljava/util/Set;
invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object v0
:goto_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_0
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lb1/a;
iget-object v2, p0, Lr0/p;->b:Ljava/util/Set;
invoke-interface {v1}, Lb1/a;->get()Ljava/lang/Object;
move-result-object v1
invoke-interface {v2, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
goto :goto_0
:cond_0
const/4 v0, 0x0
iput-object v0, p0, Lr0/p;->a:Ljava/util/Set;
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
:try_start_2
monitor-exit p0
goto :goto_1
:catchall_0
move-exception v0
monitor-exit p0
throw v0
:goto_1
:cond_1
monitor-exit p0
goto :goto_2
:catchall_1
move-exception v0
monitor-exit p0
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_1
throw v0
:goto_2
:cond_2
iget-object v0, p0, Lr0/p;->b:Ljava/util/Set;
invoke-static {v0}, Ljava/util/Collections;->unmodifiableSet(Ljava/util/Set;)Ljava/util/Set;
move-result-object v0
return-object v0
.end method