.class public Lk7/l$a;
.super Lk7/l$f;
.source ""


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lk7/l;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x9
    name = "a"
.end annotation


# instance fields
.field public final b:Lk7/l$c;


# direct methods
.method public constructor <init>(Lk7/l$c;)V
    .registers 2

    invoke-direct {p0}, Lk7/l$f;-><init>()V

    iput-object p1, p0, Lk7/l$a;->b:Lk7/l$c;

    return-void
.end method


# virtual methods
.method public a(Landroid/graphics/Matrix;Lj7/a;ILandroid/graphics/Canvas;)V
    .registers 26

    move-object/from16 v0, p0

    move-object/from16 v1, p2

    move/from16 v2, p3

    move-object/from16 v7, p4

    iget-object v3, v0, Lk7/l$a;->b:Lk7/l$c;

    .line 1
    iget v4, v3, Lk7/l$c;->f:F

    .line 2
    iget v5, v3, Lk7/l$c;->g:F

    .line 3
    new-instance v3, Landroid/graphics/RectF;

    iget-object v6, v0, Lk7/l$a;->b:Lk7/l$c;

    .line 4
    iget v8, v6, Lk7/l$c;->b:F

    .line 5
    iget v9, v6, Lk7/l$c;->c:F

    .line 6
    iget v10, v6, Lk7/l$c;->d:F

    .line 7
    iget v6, v6, Lk7/l$c;->e:F

    .line 8
    invoke-direct {v3, v8, v9, v10, v6}, Landroid/graphics/RectF;-><init>(FFFF)V

    const/4 v6, 0x0

    cmpg-float v8, v5, v6

    const/4 v9, 0x1

    const/4 v10, 0x0

    if-gez v8, :cond_26

    move v8, v9

    goto :goto_27

    :cond_26
    move v8, v10

    .line 9
    :goto_27
    iget-object v11, v1, Lj7/a;->g:Landroid/graphics/Path;

    const/4 v12, 0x3

    const/4 v13, 0x2

    if-eqz v8, :cond_3e

    sget-object v14, Lj7/a;->k:[I

    aput v10, v14, v10

    iget v10, v1, Lj7/a;->f:I

    aput v10, v14, v9

    iget v10, v1, Lj7/a;->e:I

    aput v10, v14, v13

    iget v10, v1, Lj7/a;->d:I

    aput v10, v14, v12

    goto :goto_67

    :cond_3e
    invoke-virtual {v11}, Landroid/graphics/Path;->rewind()V

    invoke-virtual {v3}, Landroid/graphics/RectF;->centerX()F

    move-result v14

    invoke-virtual {v3}, Landroid/graphics/RectF;->centerY()F

    move-result v15

    invoke-virtual {v11, v14, v15}, Landroid/graphics/Path;->moveTo(FF)V

    invoke-virtual {v11, v3, v4, v5}, Landroid/graphics/Path;->arcTo(Landroid/graphics/RectF;FF)V

    invoke-virtual {v11}, Landroid/graphics/Path;->close()V

    neg-int v14, v2

    int-to-float v14, v14

    invoke-virtual {v3, v14, v14}, Landroid/graphics/RectF;->inset(FF)V

    sget-object v14, Lj7/a;->k:[I

    aput v10, v14, v10

    iget v10, v1, Lj7/a;->d:I

    aput v10, v14, v9

    iget v10, v1, Lj7/a;->e:I

    aput v10, v14, v13

    iget v10, v1, Lj7/a;->f:I

    aput v10, v14, v12

    :goto_67
    invoke-virtual {v3}, Landroid/graphics/RectF;->width()F

    move-result v10

    const/high16 v12, 0x40000000    # 2.0f

    div-float v17, v10, v12

    cmpg-float v6, v17, v6

    if-gtz v6, :cond_74

    goto :goto_cc

    :cond_74
    int-to-float v2, v2

    div-float v2, v2, v17

    const/high16 v6, 0x3f800000    # 1.0f

    sub-float v2, v6, v2

    sub-float v10, v6, v2

    div-float/2addr v10, v12

    add-float/2addr v10, v2

    sget-object v19, Lj7/a;->l:[F

    aput v2, v19, v9

    aput v10, v19, v13

    new-instance v2, Landroid/graphics/RadialGradient;

    invoke-virtual {v3}, Landroid/graphics/RectF;->centerX()F

    move-result v15

    invoke-virtual {v3}, Landroid/graphics/RectF;->centerY()F

    move-result v16

    sget-object v18, Lj7/a;->k:[I

    sget-object v20, Landroid/graphics/Shader$TileMode;->CLAMP:Landroid/graphics/Shader$TileMode;

    move-object v14, v2

    invoke-direct/range {v14 .. v20}, Landroid/graphics/RadialGradient;-><init>(FFF[I[FLandroid/graphics/Shader$TileMode;)V

    iget-object v9, v1, Lj7/a;->b:Landroid/graphics/Paint;

    invoke-virtual {v9, v2}, Landroid/graphics/Paint;->setShader(Landroid/graphics/Shader;)Landroid/graphics/Shader;

    invoke-virtual/range {p4 .. p4}, Landroid/graphics/Canvas;->save()I

    move-object/from16 v2, p1

    invoke-virtual {v7, v2}, Landroid/graphics/Canvas;->concat(Landroid/graphics/Matrix;)V

    invoke-virtual {v3}, Landroid/graphics/RectF;->height()F

    move-result v2

    invoke-virtual {v3}, Landroid/graphics/RectF;->width()F

    move-result v9

    div-float/2addr v2, v9

    invoke-virtual {v7, v6, v2}, Landroid/graphics/Canvas;->scale(FF)V

    if-nez v8, :cond_bc

    sget-object v2, Landroid/graphics/Region$Op;->DIFFERENCE:Landroid/graphics/Region$Op;

    invoke-virtual {v7, v11, v2}, Landroid/graphics/Canvas;->clipPath(Landroid/graphics/Path;Landroid/graphics/Region$Op;)Z

    iget-object v2, v1, Lj7/a;->h:Landroid/graphics/Paint;

    invoke-virtual {v7, v11, v2}, Landroid/graphics/Canvas;->drawPath(Landroid/graphics/Path;Landroid/graphics/Paint;)V

    :cond_bc
    const/4 v6, 0x1

    iget-object v8, v1, Lj7/a;->b:Landroid/graphics/Paint;

    move-object/from16 v1, p4

    move-object v2, v3

    move v3, v4

    move v4, v5

    move v5, v6

    move-object v6, v8

    invoke-virtual/range {v1 .. v6}, Landroid/graphics/Canvas;->drawArc(Landroid/graphics/RectF;FFZLandroid/graphics/Paint;)V

    invoke-virtual/range {p4 .. p4}, Landroid/graphics/Canvas;->restore()V

    :goto_cc
    return-void
.end method
