fv.smali

.class public abstract Lcom/xiaomi/push/fv;
.super Ljava/lang/Object;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/xiaomi/push/fv$a;
    }
.end annotation


# static fields
.field public static a:Z

.field private static final o:Ljava/util/concurrent/atomic/AtomicInteger;


# instance fields
.field protected b:I

.field protected c:J

.field protected volatile d:J

.field protected volatile e:J

.field protected final f:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map",
            "<",
            "Lcom/xiaomi/push/ga;",
            "Lcom/xiaomi/push/fv$a;",
            ">;"
        }
    .end annotation
.end field

.field protected final g:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map",
            "<",
            "Lcom/xiaomi/push/ga;",
            "Lcom/xiaomi/push/fv$a;",
            ">;"
        }
    .end annotation
.end field

.field protected h:Lcom/xiaomi/push/gk;

.field protected i:Ljava/lang/String;

.field protected j:Ljava/lang/String;

.field protected final k:I

.field protected l:Lcom/xiaomi/push/fw;

.field protected m:Lcom/xiaomi/push/service/XMPushService;

.field protected n:J

.field private p:Ljava/util/LinkedList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/LinkedList",
            "<",
            "Landroid/util/Pair",
            "<",
            "Ljava/lang/Integer;",
            "Ljava/lang/Long;",
            ">;>;"
        }
    .end annotation
.end field

.field private final q:Ljava/util/Collection;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Collection",
            "<",
            "Lcom/xiaomi/push/fy;",
            ">;"
        }
    .end annotation
.end field

.field private r:I

.field private s:J


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

    const/4 v1, 0x0

    new-instance v0, Ljava/util/concurrent/atomic/AtomicInteger;

    invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicInteger;-><init>(I)V

    sput-object v0, Lcom/xiaomi/push/fv;->o:Ljava/util/concurrent/atomic/AtomicInteger;

    sput-boolean v1, Lcom/xiaomi/push/fv;->a:Z

    :try_start_a
    const-string v0, "smack.debugEnabled"

    invoke-static {v0}, Ljava/lang/Boolean;->getBoolean(Ljava/lang/String;)Z

    move-result v0

    sput-boolean v0, Lcom/xiaomi/push/fv;->a:Z
    :try_end_12
    .catch Ljava/lang/Exception; {:try_start_a .. :try_end_12} :catch_16

    :goto_12
    invoke-static {}, Lcom/xiaomi/push/gb;->a()Ljava/lang/String;

    return-void

    :catch_16
    move-exception v0

    goto :goto_12
.end method

.method protected constructor <init>(Lcom/xiaomi/push/service/XMPushService;Lcom/xiaomi/push/fw;)V
    .registers 7

    const-wide/16 v2, 0x0

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

    const/4 v0, 0x0

    iput v0, p0, Lcom/xiaomi/push/fv;->b:I

    const-wide/16 v0, -0x1

    iput-wide v0, p0, Lcom/xiaomi/push/fv;->c:J

    iput-wide v2, p0, Lcom/xiaomi/push/fv;->d:J

    iput-wide v2, p0, Lcom/xiaomi/push/fv;->e:J

    new-instance v0, Ljava/util/LinkedList;

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

    iput-object v0, p0, Lcom/xiaomi/push/fv;->p:Ljava/util/LinkedList;

    new-instance v0, Ljava/util/concurrent/CopyOnWriteArrayList;

    invoke-direct {v0}, Ljava/util/concurrent/CopyOnWriteArrayList;-><init>()V

    iput-object v0, p0, Lcom/xiaomi/push/fv;->q:Ljava/util/Collection;

    new-instance v0, Ljava/util/concurrent/ConcurrentHashMap;

    invoke-direct {v0}, Ljava/util/concurrent/ConcurrentHashMap;-><init>()V

    iput-object v0, p0, Lcom/xiaomi/push/fv;->f:Ljava/util/Map;

    new-instance v0, Ljava/util/concurrent/ConcurrentHashMap;

    invoke-direct {v0}, Ljava/util/concurrent/ConcurrentHashMap;-><init>()V

    iput-object v0, p0, Lcom/xiaomi/push/fv;->g:Ljava/util/Map;

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/xiaomi/push/fv;->h:Lcom/xiaomi/push/gk;

    const-string v0, ""

    iput-object v0, p0, Lcom/xiaomi/push/fv;->i:Ljava/lang/String;

    const-string v0, ""

    iput-object v0, p0, Lcom/xiaomi/push/fv;->j:Ljava/lang/String;

    const/4 v0, 0x2

    iput v0, p0, Lcom/xiaomi/push/fv;->r:I

    sget-object v0, Lcom/xiaomi/push/fv;->o:Ljava/util/concurrent/atomic/AtomicInteger;

    invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicInteger;->getAndIncrement()I

    move-result v0

    iput v0, p0, Lcom/xiaomi/push/fv;->k:I

    iput-wide v2, p0, Lcom/xiaomi/push/fv;->s:J

    iput-wide v2, p0, Lcom/xiaomi/push/fv;->n:J

    iput-object p2, p0, Lcom/xiaomi/push/fv;->l:Lcom/xiaomi/push/fw;

    iput-object p1, p0, Lcom/xiaomi/push/fv;->m:Lcom/xiaomi/push/service/XMPushService;

    invoke-virtual {p0}, Lcom/xiaomi/push/fv;->h()V

    return-void
.end method

.method private a(I)Ljava/lang/String;
    .registers 3

    const/4 v0, 0x1

    if-ne p1, v0, :cond_6

    const-string v0, "connected"

    :goto_5
    return-object v0

    :cond_6
    if-nez p1, :cond_b

    const-string v0, "connecting"

    goto :goto_5

    :cond_b
    const/4 v0, 0x2

    if-ne p1, v0, :cond_11

    const-string v0, "disconnected"

    goto :goto_5

    :cond_11
    const-string v0, "unknown"

    goto :goto_5
.end method

.method private b(I)V
    .registers 8

    iget-object v1, p0, Lcom/xiaomi/push/fv;->p:Ljava/util/LinkedList;

    monitor-enter v1

    const/4 v0, 0x1

    if-ne p1, v0, :cond_d

    :try_start_6
    iget-object v0, p0, Lcom/xiaomi/push/fv;->p:Ljava/util/LinkedList;

    invoke-virtual {v0}, Ljava/util/LinkedList;->clear()V

    :cond_b
    :goto_b
    monitor-exit v1

    return-void

    :cond_d
    iget-object v0, p0, Lcom/xiaomi/push/fv;->p:Ljava/util/LinkedList;

    new-instance v2, Landroid/util/Pair;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v4

    invoke-static {v4, v5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v4

    invoke-direct {v2, v3, v4}, Landroid/util/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V

    invoke-virtual {v0, v2}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z

    iget-object v0, p0, Lcom/xiaomi/push/fv;->p:Ljava/util/LinkedList;

    invoke-virtual {v0}, Ljava/util/LinkedList;->size()I

    move-result v0

    const/4 v2, 0x6

    if-le v0, v2, :cond_b

    iget-object v0, p0, Lcom/xiaomi/push/fv;->p:Ljava/util/LinkedList;

    const/4 v2, 0x0

    invoke-virtual {v0, v2}, Ljava/util/LinkedList;->remove(I)Ljava/lang/Object;

    goto :goto_b

    :catchall_33
    move-exception v0

    monitor-exit v1
    :try_end_35
    .catchall {:try_start_6 .. :try_end_35} :catchall_33

    throw v0
.end method


# virtual methods
.method public a(IILjava/lang/Exception;)V
    .registers 11

    const/16 v6, 0xa

    const/4 v5, 0x2

    const/4 v4, 0x1

    iget v0, p0, Lcom/xiaomi/push/fv;->r:I

    if-eq p1, v0, :cond_29

    const-string v0, "update the connection status. %1$s -> %2$s : %3$s "

    const/4 v1, 0x3

    new-array v1, v1, [Ljava/lang/Object;

    const/4 v2, 0x0

    iget v3, p0, Lcom/xiaomi/push/fv;->r:I

    invoke-direct {p0, v3}, Lcom/xiaomi/push/fv;->a(I)Ljava/lang/String;

    move-result-object v3

    aput-object v3, v1, v2

    invoke-direct {p0, p1}, Lcom/xiaomi/push/fv;->a(I)Ljava/lang/String;

    move-result-object v2

    aput-object v2, v1, v4

    invoke-static {p2}, Lcom/xiaomi/push/service/p;->a(I)Ljava/lang/String;

    move-result-object v2

    aput-object v2, v1, v5

    invoke-static {v0, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/xiaomi/a/a/a/c;->a(Ljava/lang/String;)V

    :cond_29
    iget-object v0, p0, Lcom/xiaomi/push/fv;->m:Lcom/xiaomi/push/service/XMPushService;

    invoke-static {v0}, Lcom/xiaomi/push/z;->c(Landroid/content/Context;)Z

    move-result v0

    if-eqz v0, :cond_34

    invoke-direct {p0, p1}, Lcom/xiaomi/push/fv;->b(I)V

    :cond_34
    if-ne p1, v4, :cond_5c

    iget-object v0, p0, Lcom/xiaomi/push/fv;->m:Lcom/xiaomi/push/service/XMPushService;

    invoke-virtual {v0, v6}, Lcom/xiaomi/push/service/XMPushService;->a(I)V

    iget v0, p0, Lcom/xiaomi/push/fv;->r:I

    if-eqz v0, :cond_44

    const-string v0, "try set connected while not connecting."

    invoke-static {v0}, Lcom/xiaomi/a/a/a/c;->a(Ljava/lang/String;)V

    :cond_44
    iput p1, p0, Lcom/xiaomi/push/fv;->r:I

    iget-object v0, p0, Lcom/xiaomi/push/fv;->q:Ljava/util/Collection;

    invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;

    move-result-object v1

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

    move-result v0

    if-eqz v0, :cond_c7

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

    move-result-object v0

    check-cast v0, Lcom/xiaomi/push/fy;

    invoke-interface {v0, p0}, Lcom/xiaomi/push/fy;->a(Lcom/xiaomi/push/fv;)V

    goto :goto_4c

    :cond_5c
    if-nez p1, :cond_7f

    iget v0, p0, Lcom/xiaomi/push/fv;->r:I

    if-eq v0, v5, :cond_67

    const-string v0, "try set connecting while not disconnected."

    invoke-static {v0}, Lcom/xiaomi/a/a/a/c;->a(Ljava/lang/String;)V

    :cond_67
    iput p1, p0, Lcom/xiaomi/push/fv;->r:I

    iget-object v0, p0, Lcom/xiaomi/push/fv;->q:Ljava/util/Collection;

    invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;

    move-result-object v1

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

    move-result v0

    if-eqz v0, :cond_c7

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

    move-result-object v0

    check-cast v0, Lcom/xiaomi/push/fy;

    invoke-interface {v0, p0}, Lcom/xiaomi/push/fy;->b(Lcom/xiaomi/push/fv;)V

    goto :goto_6f

    :cond_7f
    if-ne p1, v5, :cond_c7

    iget-object v0, p0, Lcom/xiaomi/push/fv;->m:Lcom/xiaomi/push/service/XMPushService;

    invoke-virtual {v0, v6}, Lcom/xiaomi/push/service/XMPushService;->a(I)V

    iget v0, p0, Lcom/xiaomi/push/fv;->r:I

    if-nez v0, :cond_ab

    iget-object v0, p0, Lcom/xiaomi/push/fv;->q:Ljava/util/Collection;

    invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;

    move-result-object v2

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

    move-result v0

    if-eqz v0, :cond_c5

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

    move-result-object v0

    check-cast v0, Lcom/xiaomi/push/fy;

    if-nez p3, :cond_a9

    new-instance v1, Ljava/util/concurrent/CancellationException;

    const-string v3, "disconnect while connecting"

    invoke-direct {v1, v3}, Ljava/util/concurrent/CancellationException;-><init>(Ljava/lang/String;)V

    :goto_a5
    invoke-interface {v0, p0, v1}, Lcom/xiaomi/push/fy;->a(Lcom/xiaomi/push/fv;Ljava/lang/Exception;)V

    goto :goto_90

    :cond_a9
    move-object v1, p3

    goto :goto_a5

    :cond_ab
    iget v0, p0, Lcom/xiaomi/push/fv;->r:I

    if-ne v0, v4, :cond_c5

    iget-object v0, p0, Lcom/xiaomi/push/fv;->q:Ljava/util/Collection;

    invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;

    move-result-object v1

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

    move-result v0

    if-eqz v0, :cond_c5

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

    move-result-object v0

    check-cast v0, Lcom/xiaomi/push/fy;

    invoke-interface {v0, p0, p2, p3}, Lcom/xiaomi/push/fy;->a(Lcom/xiaomi/push/fv;ILjava/lang/Exception;)V

    goto :goto_b5

    :cond_c5
    iput p1, p0, Lcom/xiaomi/push/fv;->r:I

    :cond_c7
    return-void
.end method

.method public a(Lcom/xiaomi/push/fy;)V
    .registers 3

    if-nez p1, :cond_3

    :cond_2
    :goto_2
    return-void

    :cond_3
    iget-object v0, p0, Lcom/xiaomi/push/fv;->q:Ljava/util/Collection;

    invoke-interface {v0, p1}, Ljava/util/Collection;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_2

    iget-object v0, p0, Lcom/xiaomi/push/fv;->q:Ljava/util/Collection;

    invoke-interface {v0, p1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z

    goto :goto_2
.end method

.method public a(Lcom/xiaomi/push/ga;Lcom/xiaomi/push/gl;)V
    .registers 5

    if-nez p1, :cond_a

    new-instance v0, Ljava/lang/NullPointerException;

    const-string v1, "Packet listener is null."

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

    throw v0

    :cond_a
    new-instance v0, Lcom/xiaomi/push/fv$a;

    invoke-direct {v0, p1, p2}, Lcom/xiaomi/push/fv$a;-><init>(Lcom/xiaomi/push/ga;Lcom/xiaomi/push/gl;)V

    iget-object v1, p0, Lcom/xiaomi/push/fv;->f:Ljava/util/Map;

    invoke-interface {v1, p1, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    return-void
.end method

.method public abstract a(Lcom/xiaomi/push/gp;)V
.end method

.method public abstract a(Lcom/xiaomi/push/service/al$b;)V
.end method

.method public declared-synchronized a(Ljava/lang/String;)V
    .registers 6

    monitor-enter p0

    :try_start_1
    iget v0, p0, Lcom/xiaomi/push/fv;->r:I

    if-nez v0, :cond_30

    new-instance v0, Ljava/lang/StringBuilder;

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

    const-string v1, "setChallenge hash = "

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

    move-result-object v0

    invoke-static {p1}, Lcom/xiaomi/push/ae;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x0

    const/16 v3, 0x8

    invoke-virtual {v1, v2, v3}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v1

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

    move-result-object v0

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

    move-result-object v0

    invoke-static {v0}, Lcom/xiaomi/a/a/a/c;->a(Ljava/lang/String;)V

    iput-object p1, p0, Lcom/xiaomi/push/fv;->i:Ljava/lang/String;

    const/4 v0, 0x1

    const/4 v1, 0x0

    const/4 v2, 0x0

    invoke-virtual {p0, v0, v1, v2}, Lcom/xiaomi/push/fv;->a(IILjava/lang/Exception;)V
    :try_end_2e
    .catchall {:try_start_1 .. :try_end_2e} :catchall_36

    :goto_2e
    monitor-exit p0

    return-void

    :cond_30
    :try_start_30
    const-string v0, "ignore setChallenge because connection was disconnected"

    invoke-static {v0}, Lcom/xiaomi/a/a/a/c;->a(Ljava/lang/String;)V
    :try_end_35
    .catchall {:try_start_30 .. :try_end_35} :catchall_36

    goto :goto_2e

    :catchall_36
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public abstract a(Ljava/lang/String;Ljava/lang/String;)V
.end method

.method public abstract a([Lcom/xiaomi/push/fn;)V
.end method

.method public declared-synchronized a(J)Z
    .registers 6

    monitor-enter p0

    :try_start_1
    iget-wide v0, p0, Lcom/xiaomi/push/fv;->s:J
    :try_end_3
    .catchall {:try_start_1 .. :try_end_3} :catchall_c

    cmp-long v0, v0, p1

    if-ltz v0, :cond_a

    const/4 v0, 0x1

    :goto_8
    monitor-exit p0

    return v0

    :cond_a
    const/4 v0, 0x0

    goto :goto_8

    :catchall_c
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public abstract b(ILjava/lang/Exception;)V
.end method

.method public abstract b(Lcom/xiaomi/push/fn;)V
.end method

.method public b(Lcom/xiaomi/push/fy;)V
    .registers 3

    iget-object v0, p0, Lcom/xiaomi/push/fv;->q:Ljava/util/Collection;

    invoke-interface {v0, p1}, Ljava/util/Collection;->remove(Ljava/lang/Object;)Z

    return-void
.end method

.method public b(Lcom/xiaomi/push/ga;Lcom/xiaomi/push/gl;)V
    .registers 5

    if-nez p1, :cond_a

    new-instance v0, Ljava/lang/NullPointerException;

    const-string v1, "Packet listener is null."

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

    throw v0

    :cond_a
    new-instance v0, Lcom/xiaomi/push/fv$a;

    invoke-direct {v0, p1, p2}, Lcom/xiaomi/push/fv$a;-><init>(Lcom/xiaomi/push/ga;Lcom/xiaomi/push/gl;)V

    iget-object v1, p0, Lcom/xiaomi/push/fv;->g:Ljava/util/Map;

    invoke-interface {v1, p1, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    return-void
.end method

.method public abstract b(Z)V
.end method

.method public b()Z
    .registers 2

    const/4 v0, 0x0

    return v0
.end method

.method public d()Lcom/xiaomi/push/fw;
    .registers 2

    iget-object v0, p0, Lcom/xiaomi/push/fv;->l:Lcom/xiaomi/push/fw;

    return-object v0
.end method

.method public e()Ljava/lang/String;
    .registers 2

    iget-object v0, p0, Lcom/xiaomi/push/fv;->l:Lcom/xiaomi/push/fw;

    invoke-virtual {v0}, Lcom/xiaomi/push/fw;->e()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public f()Ljava/lang/String;
    .registers 2

    iget-object v0, p0, Lcom/xiaomi/push/fv;->l:Lcom/xiaomi/push/fw;

    invoke-virtual {v0}, Lcom/xiaomi/push/fw;->b()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public g()J
    .registers 3

    iget-wide v0, p0, Lcom/xiaomi/push/fv;->e:J

    return-wide v0
.end method

.method protected h()V
    .registers 5

    const/4 v0, 0x0

    iget-object v1, p0, Lcom/xiaomi/push/fv;->l:Lcom/xiaomi/push/fw;

    invoke-virtual {v1}, Lcom/xiaomi/push/fw;->f()Z

    move-result v1

    if-eqz v1, :cond_22

    iget-object v1, p0, Lcom/xiaomi/push/fv;->h:Lcom/xiaomi/push/gk;

    if-nez v1, :cond_22

    :try_start_d
    const-string v1, "smack.debuggerClass"

    invoke-static {v1}, Ljava/lang/System;->getProperty(Ljava/lang/String;)Ljava/lang/String;
    :try_end_12
    .catch Ljava/lang/Throwable; {:try_start_d .. :try_end_12} :catch_23

    move-result-object v1

    :goto_13
    if-eqz v1, :cond_19

    :try_start_15
    invoke-static {v1}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
    :try_end_18
    .catch Ljava/lang/Exception; {:try_start_15 .. :try_end_18} :catch_26

    move-result-object v0

    :cond_19
    :goto_19
    if-nez v0, :cond_2b

    new-instance v0, Lcom/xiaomi/push/aq;

    invoke-direct {v0, p0}, Lcom/xiaomi/push/aq;-><init>(Lcom/xiaomi/push/fv;)V

    iput-object v0, p0, Lcom/xiaomi/push/fv;->h:Lcom/xiaomi/push/gk;

    :cond_22
    :goto_22
    return-void

    :catch_23
    move-exception v1

    move-object v1, v0

    goto :goto_13

    :catch_26
    move-exception v1

    invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_19

    :cond_2b
    const/4 v1, 0x3

    :try_start_2c
    new-array v1, v1, [Ljava/lang/Class;

    const/4 v2, 0x0

    const-class v3, Lcom/xiaomi/push/fv;

    aput-object v3, v1, v2

    const/4 v2, 0x1

    const-class v3, Ljava/io/Writer;

    aput-object v3, v1, v2

    const/4 v2, 0x2

    const-class v3, Ljava/io/Reader;

    aput-object v3, v1, v2

    invoke-virtual {v0, v1}, Ljava/lang/Class;->getConstructor([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;

    move-result-object v0

    const/4 v1, 0x1

    new-array v1, v1, [Ljava/lang/Object;

    const/4 v2, 0x0

    aput-object p0, v1, v2

    invoke-virtual {v0, v1}, Ljava/lang/reflect/Constructor;->newInstance([Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/xiaomi/push/gk;

    iput-object v0, p0, Lcom/xiaomi/push/fv;->h:Lcom/xiaomi/push/gk;
    :try_end_4f
    .catch Ljava/lang/Exception; {:try_start_2c .. :try_end_4f} :catch_50

    goto :goto_22

    :catch_50
    move-exception v0

    new-instance v1, Ljava/lang/IllegalArgumentException;

    const-string v2, "Can\'t initialize the configured debugger!"

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

    throw v1
.end method

.method public i()Z
    .registers 2

    iget v0, p0, Lcom/xiaomi/push/fv;->r:I

    if-nez v0, :cond_6

    const/4 v0, 0x1

    :goto_5
    return v0

    :cond_6
    const/4 v0, 0x0

    goto :goto_5
.end method

.method public j()Z
    .registers 3

    const/4 v0, 0x1

    iget v1, p0, Lcom/xiaomi/push/fv;->r:I

    if-ne v1, v0, :cond_6

    :goto_5
    return v0

    :cond_6
    const/4 v0, 0x0

    goto :goto_5
.end method

.method public k()I
    .registers 2

    iget v0, p0, Lcom/xiaomi/push/fv;->b:I

    return v0
.end method

.method public l()I
    .registers 2

    iget v0, p0, Lcom/xiaomi/push/fv;->r:I

    return v0
.end method

.method public declared-synchronized m()V
    .registers 3

    monitor-enter p0

    :try_start_1
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iput-wide v0, p0, Lcom/xiaomi/push/fv;->s:J
    :try_end_7
    .catchall {:try_start_1 .. :try_end_7} :catchall_9

    monitor-exit p0

    return-void

    :catchall_9
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public declared-synchronized n()Z
    .registers 5

    monitor-enter p0

    :try_start_1
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iget-wide v2, p0, Lcom/xiaomi/push/fv;->s:J

    sub-long/2addr v0, v2

    invoke-static {}, Lcom/xiaomi/push/gb;->b()I
    :try_end_b
    .catchall {:try_start_1 .. :try_end_b} :catchall_16

    move-result v2

    int-to-long v2, v2

    cmp-long v0, v0, v2

    if-gez v0, :cond_14

    const/4 v0, 0x1

    :goto_12
    monitor-exit p0

    return v0

    :cond_14
    const/4 v0, 0x0

    goto :goto_12

    :catchall_16
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public declared-synchronized o()Z
    .registers 5

    monitor-enter p0

    :try_start_1
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iget-wide v2, p0, Lcom/xiaomi/push/fv;->n:J

    sub-long/2addr v0, v2

    invoke-static {}, Lcom/xiaomi/push/gb;->b()I
    :try_end_b
    .catchall {:try_start_1 .. :try_end_b} :catchall_18

    move-result v2

    shl-int/lit8 v2, v2, 0x1

    int-to-long v2, v2

    cmp-long v0, v0, v2

    if-gez v0, :cond_16

    const/4 v0, 0x1

    :goto_14
    monitor-exit p0

    return v0

    :cond_16
    const/4 v0, 0x0

    goto :goto_14

    :catchall_18
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public p()V
    .registers 3

    iget-object v1, p0, Lcom/xiaomi/push/fv;->p:Ljava/util/LinkedList;

    monitor-enter v1

    :try_start_3
    iget-object v0, p0, Lcom/xiaomi/push/fv;->p:Ljava/util/LinkedList;

    invoke-virtual {v0}, Ljava/util/LinkedList;->clear()V

    monitor-exit v1

    return-void

    :catchall_a
    move-exception v0

    monitor-exit v1
    :try_end_c
    .catchall {:try_start_3 .. :try_end_c} :catchall_a

    throw v0
.end method