.class public Li0/j;
.super Ljava/lang/Object;
.source ""


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Li0/j$a;
    }
.end annotation


# static fields
.field public static final a:Lr/f;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lr/f<",
            "Ljava/lang/String;",
            "Landroid/graphics/Typeface;",
            ">;"
        }
    .end annotation
.end field

.field public static final b:Ljava/util/concurrent/ExecutorService;

.field public static final c:Ljava/lang/Object;

.field public static final d:Lr/h;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lr/h<",
            "Ljava/lang/String;",
            "Ljava/util/ArrayList<",
            "Lk0/a<",
            "Li0/j$a;",
            ">;>;>;"
        }
    .end annotation
.end field


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

    new-instance v0, Lr/f;

    const/16 v1, 0x10

    invoke-direct {v0, v1}, Lr/f;-><init>(I)V

    sput-object v0, Li0/j;->a:Lr/f;

    .line 1
    new-instance v9, Li0/n;

    const-string v0, "fonts-androidx"

    const/16 v1, 0xa

    invoke-direct {v9, v0, v1}, Li0/n;-><init>(Ljava/lang/String;I)V

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

    const/16 v1, 0x2710

    int-to-long v5, v1

    sget-object v7, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;

    new-instance v8, Ljava/util/concurrent/LinkedBlockingDeque;

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

    const/4 v3, 0x0

    const/4 v4, 0x1

    move-object v2, v0

    invoke-direct/range {v2 .. v9}, Ljava/util/concurrent/ThreadPoolExecutor;-><init>(IIJLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/BlockingQueue;Ljava/util/concurrent/ThreadFactory;)V

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Ljava/util/concurrent/ThreadPoolExecutor;->allowCoreThreadTimeOut(Z)V

    .line 2
    sput-object v0, Li0/j;->b:Ljava/util/concurrent/ExecutorService;

    new-instance v0, Ljava/lang/Object;

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

    sput-object v0, Li0/j;->c:Ljava/lang/Object;

    new-instance v0, Lr/h;

    invoke-direct {v0}, Lr/h;-><init>()V

    sput-object v0, Li0/j;->d:Lr/h;

    return-void
.end method

.method public static a(Ljava/lang/String;Landroid/content/Context;Li0/e;I)Li0/j$a;
    .registers 11

    sget-object v0, Li0/j;->a:Lr/f;

    invoke-virtual {v0, p0}, Lr/f;->b(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/graphics/Typeface;

    if-eqz v0, :cond_10

    new-instance p0, Li0/j$a;

    invoke-direct {p0, v0}, Li0/j$a;-><init>(Landroid/graphics/Typeface;)V

    return-object p0

    :cond_10
    const/4 v0, 0x0

    :try_start_11
    invoke-static {p1, p2, v0}, Li0/d;->a(Landroid/content/Context;Li0/e;Landroid/os/CancellationSignal;)Li0/k;

    move-result-object p2
    :try_end_15
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_11 .. :try_end_15} :catch_61

    .line 1
    iget v1, p2, Li0/k;->a:I

    const/4 v2, -0x3

    const/4 v3, 0x1

    if-eqz v1, :cond_20

    if-eq v1, v3, :cond_1e

    goto :goto_35

    :cond_1e
    const/4 v1, -0x2

    goto :goto_3e

    .line 2
    :cond_20
    iget-object v1, p2, Li0/k;->b:[Li0/l;

    if-eqz v1, :cond_3d

    .line 3
    array-length v4, v1

    if-nez v4, :cond_28

    goto :goto_3d

    :cond_28
    array-length v3, v1

    const/4 v4, 0x0

    move v5, v4

    :goto_2b
    if-ge v5, v3, :cond_3c

    aget-object v6, v1, v5

    .line 4
    iget v6, v6, Li0/l;->e:I

    if-eqz v6, :cond_39

    if-gez v6, :cond_37

    :goto_35
    move v1, v2

    goto :goto_3e

    :cond_37
    move v1, v6

    goto :goto_3e

    :cond_39
    add-int/lit8 v5, v5, 0x1

    goto :goto_2b

    :cond_3c
    move v3, v4

    :cond_3d
    :goto_3d
    move v1, v3

    :goto_3e
    if-eqz v1, :cond_46

    .line 5
    new-instance p0, Li0/j$a;

    invoke-direct {p0, v1}, Li0/j$a;-><init>(I)V

    return-object p0

    .line 6
    :cond_46
    iget-object p2, p2, Li0/k;->b:[Li0/l;

    .line 7
    sget-object v1, Le0/d;->a:Le0/j;

    invoke-virtual {v1, p1, v0, p2, p3}, Le0/j;->b(Landroid/content/Context;Landroid/os/CancellationSignal;[Li0/l;I)Landroid/graphics/Typeface;

    move-result-object p1

    if-eqz p1, :cond_5b

    .line 8
    sget-object p2, Li0/j;->a:Lr/f;

    invoke-virtual {p2, p0, p1}, Lr/f;->c(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    new-instance p0, Li0/j$a;

    invoke-direct {p0, p1}, Li0/j$a;-><init>(Landroid/graphics/Typeface;)V

    return-object p0

    :cond_5b
    new-instance p0, Li0/j$a;

    invoke-direct {p0, v2}, Li0/j$a;-><init>(I)V

    return-object p0

    :catch_61
    new-instance p0, Li0/j$a;

    const/4 p1, -0x1

    invoke-direct {p0, p1}, Li0/j$a;-><init>(I)V

    return-object p0
.end method
