b.smali

.class public final Lcom/bumptech/glide/r/b;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Lcom/bumptech/glide/r/d;
.implements Lcom/bumptech/glide/r/c;


# instance fields
.field private final a:Ljava/lang/Object;

.field private final b:Lcom/bumptech/glide/r/d;

.field private volatile c:Lcom/bumptech/glide/r/c;

.field private volatile d:Lcom/bumptech/glide/r/c;

.field private e:Lcom/bumptech/glide/r/d$a;

.field private f:Lcom/bumptech/glide/r/d$a;


# direct methods
.method public constructor <init>(Ljava/lang/Object;Lcom/bumptech/glide/r/d;)V
    .registers 4

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

    sget-object v0, Lcom/bumptech/glide/r/d$a;->h:Lcom/bumptech/glide/r/d$a;

    iput-object v0, p0, Lcom/bumptech/glide/r/b;->e:Lcom/bumptech/glide/r/d$a;

    iput-object v0, p0, Lcom/bumptech/glide/r/b;->f:Lcom/bumptech/glide/r/d$a;

    iput-object p1, p0, Lcom/bumptech/glide/r/b;->a:Ljava/lang/Object;

    iput-object p2, p0, Lcom/bumptech/glide/r/b;->b:Lcom/bumptech/glide/r/d;

    return-void
.end method

.method private l(Lcom/bumptech/glide/r/c;)Z
    .registers 4

    iget-object v0, p0, Lcom/bumptech/glide/r/b;->c:Lcom/bumptech/glide/r/c;

    invoke-virtual {p1, v0}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_19

    iget-object v0, p0, Lcom/bumptech/glide/r/b;->e:Lcom/bumptech/glide/r/d$a;

    sget-object v1, Lcom/bumptech/glide/r/d$a;->j:Lcom/bumptech/glide/r/d$a;

    if-ne v0, v1, :cond_17

    iget-object v0, p0, Lcom/bumptech/glide/r/b;->d:Lcom/bumptech/glide/r/c;

    invoke-virtual {p1, v0}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_17

    goto :goto_19

    :cond_17
    const/4 p1, 0x0

    goto :goto_1a

    :cond_19
    :goto_19
    const/4 p1, 0x1

    :goto_1a
    return p1
.end method

.method private m()Z
    .registers 2

    iget-object v0, p0, Lcom/bumptech/glide/r/b;->b:Lcom/bumptech/glide/r/d;

    if-eqz v0, :cond_d

    invoke-interface {v0, p0}, Lcom/bumptech/glide/r/d;->k(Lcom/bumptech/glide/r/c;)Z

    move-result v0

    if-eqz v0, :cond_b

    goto :goto_d

    :cond_b
    const/4 v0, 0x0

    goto :goto_e

    :cond_d
    :goto_d
    const/4 v0, 0x1

    :goto_e
    return v0
.end method

.method private n()Z
    .registers 2

    iget-object v0, p0, Lcom/bumptech/glide/r/b;->b:Lcom/bumptech/glide/r/d;

    if-eqz v0, :cond_d

    invoke-interface {v0, p0}, Lcom/bumptech/glide/r/d;->e(Lcom/bumptech/glide/r/c;)Z

    move-result v0

    if-eqz v0, :cond_b

    goto :goto_d

    :cond_b
    const/4 v0, 0x0

    goto :goto_e

    :cond_d
    :goto_d
    const/4 v0, 0x1

    :goto_e
    return v0
.end method

.method private o()Z
    .registers 2

    iget-object v0, p0, Lcom/bumptech/glide/r/b;->b:Lcom/bumptech/glide/r/d;

    if-eqz v0, :cond_d

    invoke-interface {v0, p0}, Lcom/bumptech/glide/r/d;->g(Lcom/bumptech/glide/r/c;)Z

    move-result v0

    if-eqz v0, :cond_b

    goto :goto_d

    :cond_b
    const/4 v0, 0x0

    goto :goto_e

    :cond_d
    :goto_d
    const/4 v0, 0x1

    :goto_e
    return v0
.end method


# virtual methods
.method public a(Lcom/bumptech/glide/r/c;)V
    .registers 4

    iget-object v0, p0, Lcom/bumptech/glide/r/b;->a:Ljava/lang/Object;

    monitor-enter v0

    :try_start_3
    iget-object v1, p0, Lcom/bumptech/glide/r/b;->d:Lcom/bumptech/glide/r/c;

    invoke-virtual {p1, v1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-nez p1, :cond_1e

    sget-object p1, Lcom/bumptech/glide/r/d$a;->j:Lcom/bumptech/glide/r/d$a;

    iput-object p1, p0, Lcom/bumptech/glide/r/b;->e:Lcom/bumptech/glide/r/d$a;

    iget-object p1, p0, Lcom/bumptech/glide/r/b;->f:Lcom/bumptech/glide/r/d$a;

    sget-object v1, Lcom/bumptech/glide/r/d$a;->f:Lcom/bumptech/glide/r/d$a;

    if-eq p1, v1, :cond_1c

    iput-object v1, p0, Lcom/bumptech/glide/r/b;->f:Lcom/bumptech/glide/r/d$a;

    iget-object p1, p0, Lcom/bumptech/glide/r/b;->d:Lcom/bumptech/glide/r/c;

    invoke-interface {p1}, Lcom/bumptech/glide/r/c;->h()V

    :cond_1c
    monitor-exit v0

    return-void

    :cond_1e
    sget-object p1, Lcom/bumptech/glide/r/d$a;->j:Lcom/bumptech/glide/r/d$a;

    iput-object p1, p0, Lcom/bumptech/glide/r/b;->f:Lcom/bumptech/glide/r/d$a;

    iget-object p1, p0, Lcom/bumptech/glide/r/b;->b:Lcom/bumptech/glide/r/d;

    if-eqz p1, :cond_29

    invoke-interface {p1, p0}, Lcom/bumptech/glide/r/d;->a(Lcom/bumptech/glide/r/c;)V

    :cond_29
    monitor-exit v0

    return-void

    :catchall_2b
    move-exception p1

    monitor-exit v0
    :try_end_2d
    .catchall {:try_start_3 .. :try_end_2d} :catchall_2b

    throw p1
.end method

.method public b()Z
    .registers 3

    iget-object v0, p0, Lcom/bumptech/glide/r/b;->a:Ljava/lang/Object;

    monitor-enter v0

    :try_start_3
    iget-object v1, p0, Lcom/bumptech/glide/r/b;->c:Lcom/bumptech/glide/r/c;

    invoke-interface {v1}, Lcom/bumptech/glide/r/c;->b()Z

    move-result v1

    if-nez v1, :cond_16

    iget-object v1, p0, Lcom/bumptech/glide/r/b;->d:Lcom/bumptech/glide/r/c;

    invoke-interface {v1}, Lcom/bumptech/glide/r/c;->b()Z

    move-result v1

    if-eqz v1, :cond_14

    goto :goto_16

    :cond_14
    const/4 v1, 0x0

    goto :goto_17

    :cond_16
    :goto_16
    const/4 v1, 0x1

    :goto_17
    monitor-exit v0

    return v1

    :catchall_19
    move-exception v1

    monitor-exit v0
    :try_end_1b
    .catchall {:try_start_3 .. :try_end_1b} :catchall_19

    throw v1
.end method

.method public c()Lcom/bumptech/glide/r/d;
    .registers 3

    iget-object v0, p0, Lcom/bumptech/glide/r/b;->a:Ljava/lang/Object;

    monitor-enter v0

    :try_start_3
    iget-object v1, p0, Lcom/bumptech/glide/r/b;->b:Lcom/bumptech/glide/r/d;

    if-eqz v1, :cond_c

    invoke-interface {v1}, Lcom/bumptech/glide/r/d;->c()Lcom/bumptech/glide/r/d;

    move-result-object v1

    goto :goto_d

    :cond_c
    move-object v1, p0

    :goto_d
    monitor-exit v0

    return-object v1

    :catchall_f
    move-exception v1

    monitor-exit v0
    :try_end_11
    .catchall {:try_start_3 .. :try_end_11} :catchall_f

    throw v1
.end method

.method public clear()V
    .registers 4

    iget-object v0, p0, Lcom/bumptech/glide/r/b;->a:Ljava/lang/Object;

    monitor-enter v0

    :try_start_3
    sget-object v1, Lcom/bumptech/glide/r/d$a;->h:Lcom/bumptech/glide/r/d$a;

    iput-object v1, p0, Lcom/bumptech/glide/r/b;->e:Lcom/bumptech/glide/r/d$a;

    iget-object v2, p0, Lcom/bumptech/glide/r/b;->c:Lcom/bumptech/glide/r/c;

    invoke-interface {v2}, Lcom/bumptech/glide/r/c;->clear()V

    iget-object v2, p0, Lcom/bumptech/glide/r/b;->f:Lcom/bumptech/glide/r/d$a;

    if-eq v2, v1, :cond_17

    iput-object v1, p0, Lcom/bumptech/glide/r/b;->f:Lcom/bumptech/glide/r/d$a;

    iget-object v1, p0, Lcom/bumptech/glide/r/b;->d:Lcom/bumptech/glide/r/c;

    invoke-interface {v1}, Lcom/bumptech/glide/r/c;->clear()V

    :cond_17
    monitor-exit v0

    return-void

    :catchall_19
    move-exception v1

    monitor-exit v0
    :try_end_1b
    .catchall {:try_start_3 .. :try_end_1b} :catchall_19

    throw v1
.end method

.method public d(Lcom/bumptech/glide/r/c;)Z
    .registers 5

    instance-of v0, p1, Lcom/bumptech/glide/r/b;

    const/4 v1, 0x0

    if-eqz v0, :cond_1c

    check-cast p1, Lcom/bumptech/glide/r/b;

    iget-object v0, p0, Lcom/bumptech/glide/r/b;->c:Lcom/bumptech/glide/r/c;

    iget-object v2, p1, Lcom/bumptech/glide/r/b;->c:Lcom/bumptech/glide/r/c;

    invoke-interface {v0, v2}, Lcom/bumptech/glide/r/c;->d(Lcom/bumptech/glide/r/c;)Z

    move-result v0

    if-eqz v0, :cond_1c

    iget-object v0, p0, Lcom/bumptech/glide/r/b;->d:Lcom/bumptech/glide/r/c;

    iget-object p1, p1, Lcom/bumptech/glide/r/b;->d:Lcom/bumptech/glide/r/c;

    invoke-interface {v0, p1}, Lcom/bumptech/glide/r/c;->d(Lcom/bumptech/glide/r/c;)Z

    move-result p1

    if-eqz p1, :cond_1c

    const/4 v1, 0x1

    :cond_1c
    return v1
.end method

.method public e(Lcom/bumptech/glide/r/c;)Z
    .registers 4

    iget-object v0, p0, Lcom/bumptech/glide/r/b;->a:Ljava/lang/Object;

    monitor-enter v0

    :try_start_3
    invoke-direct {p0}, Lcom/bumptech/glide/r/b;->n()Z

    move-result v1

    if-eqz v1, :cond_11

    invoke-direct {p0, p1}, Lcom/bumptech/glide/r/b;->l(Lcom/bumptech/glide/r/c;)Z

    move-result p1

    if-eqz p1, :cond_11

    const/4 p1, 0x1

    goto :goto_12

    :cond_11
    const/4 p1, 0x0

    :goto_12
    monitor-exit v0

    return p1

    :catchall_14
    move-exception p1

    monitor-exit v0
    :try_end_16
    .catchall {:try_start_3 .. :try_end_16} :catchall_14

    throw p1
.end method

.method public f()Z
    .registers 4

    iget-object v0, p0, Lcom/bumptech/glide/r/b;->a:Ljava/lang/Object;

    monitor-enter v0

    :try_start_3
    iget-object v1, p0, Lcom/bumptech/glide/r/b;->e:Lcom/bumptech/glide/r/d$a;

    sget-object v2, Lcom/bumptech/glide/r/d$a;->h:Lcom/bumptech/glide/r/d$a;

    if-ne v1, v2, :cond_f

    iget-object v1, p0, Lcom/bumptech/glide/r/b;->f:Lcom/bumptech/glide/r/d$a;

    if-ne v1, v2, :cond_f

    const/4 v1, 0x1

    goto :goto_10

    :cond_f
    const/4 v1, 0x0

    :goto_10
    monitor-exit v0

    return v1

    :catchall_12
    move-exception v1

    monitor-exit v0
    :try_end_14
    .catchall {:try_start_3 .. :try_end_14} :catchall_12

    throw v1
.end method

.method public g(Lcom/bumptech/glide/r/c;)Z
    .registers 4

    iget-object v0, p0, Lcom/bumptech/glide/r/b;->a:Ljava/lang/Object;

    monitor-enter v0

    :try_start_3
    invoke-direct {p0}, Lcom/bumptech/glide/r/b;->o()Z

    move-result v1

    if-eqz v1, :cond_11

    invoke-direct {p0, p1}, Lcom/bumptech/glide/r/b;->l(Lcom/bumptech/glide/r/c;)Z

    move-result p1

    if-eqz p1, :cond_11

    const/4 p1, 0x1

    goto :goto_12

    :cond_11
    const/4 p1, 0x0

    :goto_12
    monitor-exit v0

    return p1

    :catchall_14
    move-exception p1

    monitor-exit v0
    :try_end_16
    .catchall {:try_start_3 .. :try_end_16} :catchall_14

    throw p1
.end method

.method public h()V
    .registers 4

    iget-object v0, p0, Lcom/bumptech/glide/r/b;->a:Ljava/lang/Object;

    monitor-enter v0

    :try_start_3
    iget-object v1, p0, Lcom/bumptech/glide/r/b;->e:Lcom/bumptech/glide/r/d$a;

    sget-object v2, Lcom/bumptech/glide/r/d$a;->f:Lcom/bumptech/glide/r/d$a;

    if-eq v1, v2, :cond_10

    iput-object v2, p0, Lcom/bumptech/glide/r/b;->e:Lcom/bumptech/glide/r/d$a;

    iget-object v1, p0, Lcom/bumptech/glide/r/b;->c:Lcom/bumptech/glide/r/c;

    invoke-interface {v1}, Lcom/bumptech/glide/r/c;->h()V

    :cond_10
    monitor-exit v0

    return-void

    :catchall_12
    move-exception v1

    monitor-exit v0
    :try_end_14
    .catchall {:try_start_3 .. :try_end_14} :catchall_12

    throw v1
.end method

.method public i(Lcom/bumptech/glide/r/c;)V
    .registers 4

    iget-object v0, p0, Lcom/bumptech/glide/r/b;->a:Ljava/lang/Object;

    monitor-enter v0

    :try_start_3
    iget-object v1, p0, Lcom/bumptech/glide/r/b;->c:Lcom/bumptech/glide/r/c;

    invoke-virtual {p1, v1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_10

    sget-object p1, Lcom/bumptech/glide/r/d$a;->i:Lcom/bumptech/glide/r/d$a;

    iput-object p1, p0, Lcom/bumptech/glide/r/b;->e:Lcom/bumptech/glide/r/d$a;

    goto :goto_1c

    :cond_10
    iget-object v1, p0, Lcom/bumptech/glide/r/b;->d:Lcom/bumptech/glide/r/c;

    invoke-virtual {p1, v1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_1c

    sget-object p1, Lcom/bumptech/glide/r/d$a;->i:Lcom/bumptech/glide/r/d$a;

    iput-object p1, p0, Lcom/bumptech/glide/r/b;->f:Lcom/bumptech/glide/r/d$a;

    :cond_1c
    :goto_1c
    iget-object p1, p0, Lcom/bumptech/glide/r/b;->b:Lcom/bumptech/glide/r/d;

    if-eqz p1, :cond_23

    invoke-interface {p1, p0}, Lcom/bumptech/glide/r/d;->i(Lcom/bumptech/glide/r/c;)V

    :cond_23
    monitor-exit v0

    return-void

    :catchall_25
    move-exception p1

    monitor-exit v0
    :try_end_27
    .catchall {:try_start_3 .. :try_end_27} :catchall_25

    throw p1
.end method

.method public isRunning()Z
    .registers 4

    iget-object v0, p0, Lcom/bumptech/glide/r/b;->a:Ljava/lang/Object;

    monitor-enter v0

    :try_start_3
    iget-object v1, p0, Lcom/bumptech/glide/r/b;->e:Lcom/bumptech/glide/r/d$a;

    sget-object v2, Lcom/bumptech/glide/r/d$a;->f:Lcom/bumptech/glide/r/d$a;

    if-eq v1, v2, :cond_10

    iget-object v1, p0, Lcom/bumptech/glide/r/b;->f:Lcom/bumptech/glide/r/d$a;

    if-ne v1, v2, :cond_e

    goto :goto_10

    :cond_e
    const/4 v1, 0x0

    goto :goto_11

    :cond_10
    :goto_10
    const/4 v1, 0x1

    :goto_11
    monitor-exit v0

    return v1

    :catchall_13
    move-exception v1

    monitor-exit v0
    :try_end_15
    .catchall {:try_start_3 .. :try_end_15} :catchall_13

    throw v1
.end method

.method public j()Z
    .registers 4

    iget-object v0, p0, Lcom/bumptech/glide/r/b;->a:Ljava/lang/Object;

    monitor-enter v0

    :try_start_3
    iget-object v1, p0, Lcom/bumptech/glide/r/b;->e:Lcom/bumptech/glide/r/d$a;

    sget-object v2, Lcom/bumptech/glide/r/d$a;->i:Lcom/bumptech/glide/r/d$a;

    if-eq v1, v2, :cond_10

    iget-object v1, p0, Lcom/bumptech/glide/r/b;->f:Lcom/bumptech/glide/r/d$a;

    if-ne v1, v2, :cond_e

    goto :goto_10

    :cond_e
    const/4 v1, 0x0

    goto :goto_11

    :cond_10
    :goto_10
    const/4 v1, 0x1

    :goto_11
    monitor-exit v0

    return v1

    :catchall_13
    move-exception v1

    monitor-exit v0
    :try_end_15
    .catchall {:try_start_3 .. :try_end_15} :catchall_13

    throw v1
.end method

.method public k(Lcom/bumptech/glide/r/c;)Z
    .registers 4

    iget-object v0, p0, Lcom/bumptech/glide/r/b;->a:Ljava/lang/Object;

    monitor-enter v0

    :try_start_3
    invoke-direct {p0}, Lcom/bumptech/glide/r/b;->m()Z

    move-result v1

    if-eqz v1, :cond_11

    invoke-direct {p0, p1}, Lcom/bumptech/glide/r/b;->l(Lcom/bumptech/glide/r/c;)Z

    move-result p1

    if-eqz p1, :cond_11

    const/4 p1, 0x1

    goto :goto_12

    :cond_11
    const/4 p1, 0x0

    :goto_12
    monitor-exit v0

    return p1

    :catchall_14
    move-exception p1

    monitor-exit v0
    :try_end_16
    .catchall {:try_start_3 .. :try_end_16} :catchall_14

    throw p1
.end method

.method public p(Lcom/bumptech/glide/r/c;Lcom/bumptech/glide/r/c;)V
    .registers 3

    iput-object p1, p0, Lcom/bumptech/glide/r/b;->c:Lcom/bumptech/glide/r/c;

    iput-object p2, p0, Lcom/bumptech/glide/r/b;->d:Lcom/bumptech/glide/r/c;

    return-void
.end method

.method public pause()V
    .registers 4

    iget-object v0, p0, Lcom/bumptech/glide/r/b;->a:Ljava/lang/Object;

    monitor-enter v0

    :try_start_3
    iget-object v1, p0, Lcom/bumptech/glide/r/b;->e:Lcom/bumptech/glide/r/d$a;

    sget-object v2, Lcom/bumptech/glide/r/d$a;->f:Lcom/bumptech/glide/r/d$a;

    if-ne v1, v2, :cond_12

    sget-object v1, Lcom/bumptech/glide/r/d$a;->g:Lcom/bumptech/glide/r/d$a;

    iput-object v1, p0, Lcom/bumptech/glide/r/b;->e:Lcom/bumptech/glide/r/d$a;

    iget-object v1, p0, Lcom/bumptech/glide/r/b;->c:Lcom/bumptech/glide/r/c;

    invoke-interface {v1}, Lcom/bumptech/glide/r/c;->pause()V

    :cond_12
    iget-object v1, p0, Lcom/bumptech/glide/r/b;->f:Lcom/bumptech/glide/r/d$a;

    if-ne v1, v2, :cond_1f

    sget-object v1, Lcom/bumptech/glide/r/d$a;->g:Lcom/bumptech/glide/r/d$a;

    iput-object v1, p0, Lcom/bumptech/glide/r/b;->f:Lcom/bumptech/glide/r/d$a;

    iget-object v1, p0, Lcom/bumptech/glide/r/b;->d:Lcom/bumptech/glide/r/c;

    invoke-interface {v1}, Lcom/bumptech/glide/r/c;->pause()V

    :cond_1f
    monitor-exit v0

    return-void

    :catchall_21
    move-exception v1

    monitor-exit v0
    :try_end_23
    .catchall {:try_start_3 .. :try_end_23} :catchall_21

    throw v1
.end method