SecP224R1Field.smali

.class public Lorg/spongycastle/math/ec/custom/sec/SecP224R1Field;
.super Ljava/lang/Object;
.source "SecP224R1Field.java"


# static fields
.field private static final M:J = 0xffffffffL

.field static final P:[I

.field private static final P6:I = -0x1

.field static final PExt:[I

.field private static final PExt13:I = -0x1

.field private static final PExtInv:[I


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

    .prologue
    .line 13
    const/4 v0, 0x7

    new-array v0, v0, [I

    fill-array-data v0, :array_1c

    sput-object v0, Lorg/spongycastle/math/ec/custom/sec/SecP224R1Field;->P:[I

    .line 14
    const/16 v0, 0xe

    new-array v0, v0, [I

    fill-array-data v0, :array_2e

    sput-object v0, Lorg/spongycastle/math/ec/custom/sec/SecP224R1Field;->PExt:[I

    .line 16
    const/16 v0, 0xb

    new-array v0, v0, [I

    fill-array-data v0, :array_4e

    sput-object v0, Lorg/spongycastle/math/ec/custom/sec/SecP224R1Field;->PExtInv:[I

    return-void

    .line 13
    nop

    :array_1c
    .array-data 4
        0x1
        0x0
        0x0
        -0x1
        -0x1
        -0x1
        -0x1
    .end array-data

    .line 14
    :array_2e
    .array-data 4
        0x1
        0x0
        0x0
        -0x2
        -0x1
        -0x1
        0x0
        0x2
        0x0
        0x0
        -0x2
        -0x1
        -0x1
        -0x1
    .end array-data

    .line 16
    :array_4e
    .array-data 4
        -0x1
        -0x1
        -0x1
        0x1
        0x0
        0x0
        -0x1
        -0x3
        -0x1
        -0x1
        0x1
    .end array-data
.end method

.method public constructor <init>()V
    .registers 1

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

    return-void
.end method

.method public static add([I[I[I)V
    .registers 5

    .prologue
    .line 23
    invoke-static {p0, p1, p2}, Lorg/spongycastle/math/raw/Nat224;->add([I[I[I)I

    move-result v0

    .line 24
    if-nez v0, :cond_14

    const/4 v0, 0x6

    aget v0, p2, v0

    const/4 v1, -0x1

    if-ne v0, v1, :cond_17

    sget-object v0, Lorg/spongycastle/math/ec/custom/sec/SecP224R1Field;->P:[I

    invoke-static {p2, v0}, Lorg/spongycastle/math/raw/Nat224;->gte([I[I)Z

    move-result v0

    if-eqz v0, :cond_17

    .line 26
    :cond_14
    invoke-static {p2}, Lorg/spongycastle/math/ec/custom/sec/SecP224R1Field;->addPInvTo([I)V

    .line 28
    :cond_17
    return-void
.end method

.method public static addExt([I[I[I)V
    .registers 6

    .prologue
    const/16 v2, 0xe

    .line 32
    invoke-static {v2, p0, p1, p2}, Lorg/spongycastle/math/raw/Nat;->add(I[I[I[I)I

    move-result v0

    .line 33
    if-nez v0, :cond_17

    const/16 v0, 0xd

    aget v0, p2, v0

    const/4 v1, -0x1

    if-ne v0, v1, :cond_28

    sget-object v0, Lorg/spongycastle/math/ec/custom/sec/SecP224R1Field;->PExt:[I

    invoke-static {v2, p2, v0}, Lorg/spongycastle/math/raw/Nat;->gte(I[I[I)Z

    move-result v0

    if-eqz v0, :cond_28

    .line 35
    :cond_17
    sget-object v0, Lorg/spongycastle/math/ec/custom/sec/SecP224R1Field;->PExtInv:[I

    array-length v0, v0

    sget-object v1, Lorg/spongycastle/math/ec/custom/sec/SecP224R1Field;->PExtInv:[I

    invoke-static {v0, v1, p2}, Lorg/spongycastle/math/raw/Nat;->addTo(I[I[I)I

    move-result v0

    if-eqz v0, :cond_28

    .line 37
    sget-object v0, Lorg/spongycastle/math/ec/custom/sec/SecP224R1Field;->PExtInv:[I

    array-length v0, v0

    invoke-static {v2, p2, v0}, Lorg/spongycastle/math/raw/Nat;->incAt(I[II)I

    .line 40
    :cond_28
    return-void
.end method

.method public static addOne([I[I)V
    .registers 4

    .prologue
    .line 44
    const/4 v0, 0x7

    invoke-static {v0, p0, p1}, Lorg/spongycastle/math/raw/Nat;->inc(I[I[I)I

    move-result v0

    .line 45
    if-nez v0, :cond_15

    const/4 v0, 0x6

    aget v0, p1, v0

    const/4 v1, -0x1

    if-ne v0, v1, :cond_18

    sget-object v0, Lorg/spongycastle/math/ec/custom/sec/SecP224R1Field;->P:[I

    invoke-static {p1, v0}, Lorg/spongycastle/math/raw/Nat224;->gte([I[I)Z

    move-result v0

    if-eqz v0, :cond_18

    .line 47
    :cond_15
    invoke-static {p1}, Lorg/spongycastle/math/ec/custom/sec/SecP224R1Field;->addPInvTo([I)V

    .line 49
    :cond_18
    return-void
.end method

.method private static addPInvTo([I)V
    .registers 11

    .prologue
    const/4 v9, 0x2

    const/4 v8, 0x1

    const/4 v7, 0x0

    const-wide v4, 0xffffffffL

    const/16 v6, 0x20

    .line 255
    aget v0, p0, v7

    int-to-long v0, v0

    and-long/2addr v0, v4

    const-wide/16 v2, 0x1

    sub-long/2addr v0, v2

    .line 256
    long-to-int v2, v0

    aput v2, p0, v7

    .line 257
    shr-long/2addr v0, v6

    .line 258
    const-wide/16 v2, 0x0

    cmp-long v2, v0, v2

    if-eqz v2, :cond_2d

    .line 260
    aget v2, p0, v8

    int-to-long v2, v2

    and-long/2addr v2, v4

    add-long/2addr v0, v2

    .line 261
    long-to-int v2, v0

    aput v2, p0, v8

    .line 262
    shr-long/2addr v0, v6

    .line 263
    aget v2, p0, v9

    int-to-long v2, v2

    and-long/2addr v2, v4

    add-long/2addr v0, v2

    .line 264
    long-to-int v2, v0

    aput v2, p0, v9

    .line 265
    shr-long/2addr v0, v6

    .line 267
    :cond_2d
    const/4 v2, 0x3

    aget v2, p0, v2

    int-to-long v2, v2

    and-long/2addr v2, v4

    const-wide/16 v4, 0x1

    add-long/2addr v2, v4

    add-long/2addr v0, v2

    .line 268
    const/4 v2, 0x3

    long-to-int v3, v0

    aput v3, p0, v2

    .line 269
    shr-long/2addr v0, v6

    .line 270
    const-wide/16 v2, 0x0

    cmp-long v0, v0, v2

    if-eqz v0, :cond_46

    .line 272
    const/4 v0, 0x7

    const/4 v1, 0x4

    invoke-static {v0, p0, v1}, Lorg/spongycastle/math/raw/Nat;->incAt(I[II)I

    .line 274
    :cond_46
    return-void
.end method

.method public static fromBigInteger(Ljava/math/BigInteger;)[I
    .registers 4

    .prologue
    .line 53
    invoke-static {p0}, Lorg/spongycastle/math/raw/Nat224;->fromBigInteger(Ljava/math/BigInteger;)[I

    move-result-object v0

    .line 54
    const/4 v1, 0x6

    aget v1, v0, v1

    const/4 v2, -0x1

    if-ne v1, v2, :cond_17

    sget-object v1, Lorg/spongycastle/math/ec/custom/sec/SecP224R1Field;->P:[I

    invoke-static {v0, v1}, Lorg/spongycastle/math/raw/Nat224;->gte([I[I)Z

    move-result v1

    if-eqz v1, :cond_17

    .line 56
    sget-object v1, Lorg/spongycastle/math/ec/custom/sec/SecP224R1Field;->P:[I

    invoke-static {v1, v0}, Lorg/spongycastle/math/raw/Nat224;->subFrom([I[I)I

    .line 58
    :cond_17
    return-object v0
.end method

.method public static half([I[I)V
    .registers 5

    .prologue
    const/4 v2, 0x7

    const/4 v1, 0x0

    .line 63
    aget v0, p0, v1

    and-int/lit8 v0, v0, 0x1

    if-nez v0, :cond_c

    .line 65
    invoke-static {v2, p0, v1, p1}, Lorg/spongycastle/math/raw/Nat;->shiftDownBit(I[II[I)I

    .line 72
    :goto_b
    return-void

    .line 69
    :cond_c
    sget-object v0, Lorg/spongycastle/math/ec/custom/sec/SecP224R1Field;->P:[I

    invoke-static {p0, v0, p1}, Lorg/spongycastle/math/raw/Nat224;->add([I[I[I)I

    move-result v0

    .line 70
    invoke-static {v2, p1, v0}, Lorg/spongycastle/math/raw/Nat;->shiftDownBit(I[II)I

    goto :goto_b
.end method

.method public static multiply([I[I[I)V
    .registers 4

    .prologue
    .line 76
    invoke-static {}, Lorg/spongycastle/math/raw/Nat224;->createExt()[I

    move-result-object v0

    .line 77
    invoke-static {p0, p1, v0}, Lorg/spongycastle/math/raw/Nat224;->mul([I[I[I)V

    .line 78
    invoke-static {v0, p2}, Lorg/spongycastle/math/ec/custom/sec/SecP224R1Field;->reduce([I[I)V

    .line 79
    return-void
.end method

.method public static multiplyAddToExt([I[I[I)V
    .registers 6

    .prologue
    const/16 v2, 0xe

    .line 83
    invoke-static {p0, p1, p2}, Lorg/spongycastle/math/raw/Nat224;->mulAddTo([I[I[I)I

    move-result v0

    .line 84
    if-nez v0, :cond_17

    const/16 v0, 0xd

    aget v0, p2, v0

    const/4 v1, -0x1

    if-ne v0, v1, :cond_28

    sget-object v0, Lorg/spongycastle/math/ec/custom/sec/SecP224R1Field;->PExt:[I

    invoke-static {v2, p2, v0}, Lorg/spongycastle/math/raw/Nat;->gte(I[I[I)Z

    move-result v0

    if-eqz v0, :cond_28

    .line 86
    :cond_17
    sget-object v0, Lorg/spongycastle/math/ec/custom/sec/SecP224R1Field;->PExtInv:[I

    array-length v0, v0

    sget-object v1, Lorg/spongycastle/math/ec/custom/sec/SecP224R1Field;->PExtInv:[I

    invoke-static {v0, v1, p2}, Lorg/spongycastle/math/raw/Nat;->addTo(I[I[I)I

    move-result v0

    if-eqz v0, :cond_28

    .line 88
    sget-object v0, Lorg/spongycastle/math/ec/custom/sec/SecP224R1Field;->PExtInv:[I

    array-length v0, v0

    invoke-static {v2, p2, v0}, Lorg/spongycastle/math/raw/Nat;->incAt(I[II)I

    .line 91
    :cond_28
    return-void
.end method

.method public static negate([I[I)V
    .registers 3

    .prologue
    .line 95
    invoke-static {p0}, Lorg/spongycastle/math/raw/Nat224;->isZero([I)Z

    move-result v0

    if-eqz v0, :cond_a

    .line 97
    invoke-static {p1}, Lorg/spongycastle/math/raw/Nat224;->zero([I)V

    .line 103
    :goto_9
    return-void

    .line 101
    :cond_a
    sget-object v0, Lorg/spongycastle/math/ec/custom/sec/SecP224R1Field;->P:[I

    invoke-static {v0, p0, p1}, Lorg/spongycastle/math/raw/Nat224;->sub([I[I[I)I

    goto :goto_9
.end method

.method public static reduce([I[I)V
    .registers 26

    .prologue
    .line 107
    const/16 v2, 0xa

    aget v2, p0, v2

    int-to-long v2, v2

    const-wide v4, 0xffffffffL

    and-long/2addr v2, v4

    const/16 v4, 0xb

    aget v4, p0, v4

    int-to-long v4, v4

    const-wide v6, 0xffffffffL

    and-long/2addr v4, v6

    const/16 v6, 0xc

    aget v6, p0, v6

    int-to-long v6, v6

    const-wide v8, 0xffffffffL

    and-long/2addr v6, v8

    const/16 v8, 0xd

    aget v8, p0, v8

    int-to-long v8, v8

    const-wide v10, 0xffffffffL

    and-long/2addr v8, v10

    .line 111
    const/4 v10, 0x7

    aget v10, p0, v10

    int-to-long v10, v10

    const-wide v12, 0xffffffffL

    and-long/2addr v10, v12

    add-long/2addr v10, v4

    const-wide/16 v12, 0x1

    sub-long/2addr v10, v12

    .line 112
    const/16 v12, 0x8

    aget v12, p0, v12

    int-to-long v12, v12

    const-wide v14, 0xffffffffL

    and-long/2addr v12, v14

    add-long/2addr v12, v6

    .line 113
    const/16 v14, 0x9

    aget v14, p0, v14

    int-to-long v14, v14

    const-wide v16, 0xffffffffL

    and-long v14, v14, v16

    add-long/2addr v14, v8

    .line 116
    const-wide/16 v16, 0x0

    const/16 v18, 0x0

    aget v18, p0, v18

    move/from16 v0, v18

    int-to-long v0, v0

    move-wide/from16 v18, v0

    const-wide v20, 0xffffffffL

    and-long v18, v18, v20

    sub-long v18, v18, v10

    add-long v16, v16, v18

    .line 117
    const-wide v18, 0xffffffffL

    and-long v18, v18, v16

    .line 118
    const/16 v20, 0x20

    shr-long v16, v16, v20

    .line 119
    const/16 v20, 0x1

    aget v20, p0, v20

    move/from16 v0, v20

    int-to-long v0, v0

    move-wide/from16 v20, v0

    const-wide v22, 0xffffffffL

    and-long v20, v20, v22

    sub-long v20, v20, v12

    add-long v16, v16, v20

    .line 120
    const/16 v20, 0x1

    move-wide/from16 v0, v16

    long-to-int v0, v0

    move/from16 v21, v0

    aput v21, p1, v20

    .line 121
    const/16 v20, 0x20

    shr-long v16, v16, v20

    .line 122
    const/16 v20, 0x2

    aget v20, p0, v20

    move/from16 v0, v20

    int-to-long v0, v0

    move-wide/from16 v20, v0

    const-wide v22, 0xffffffffL

    and-long v20, v20, v22

    sub-long v20, v20, v14

    add-long v16, v16, v20

    .line 123
    const/16 v20, 0x2

    move-wide/from16 v0, v16

    long-to-int v0, v0

    move/from16 v21, v0

    aput v21, p1, v20

    .line 124
    const/16 v20, 0x20

    shr-long v16, v16, v20

    .line 125
    const/16 v20, 0x3

    aget v20, p0, v20

    move/from16 v0, v20

    int-to-long v0, v0

    move-wide/from16 v20, v0

    const-wide v22, 0xffffffffL

    and-long v20, v20, v22

    add-long v10, v10, v20

    sub-long/2addr v10, v2

    add-long v10, v10, v16

    .line 126
    const-wide v16, 0xffffffffL

    and-long v16, v16, v10

    .line 127
    const/16 v20, 0x20

    shr-long v10, v10, v20

    .line 128
    const/16 v20, 0x4

    aget v20, p0, v20

    move/from16 v0, v20

    int-to-long v0, v0

    move-wide/from16 v20, v0

    const-wide v22, 0xffffffffL

    and-long v20, v20, v22

    add-long v12, v12, v20

    sub-long v4, v12, v4

    add-long/2addr v4, v10

    .line 129
    const/4 v10, 0x4

    long-to-int v11, v4

    aput v11, p1, v10

    .line 130
    const/16 v10, 0x20

    shr-long/2addr v4, v10

    .line 131
    const/4 v10, 0x5

    aget v10, p0, v10

    int-to-long v10, v10

    const-wide v12, 0xffffffffL

    and-long/2addr v10, v12

    add-long/2addr v10, v14

    sub-long v6, v10, v6

    add-long/2addr v4, v6

    .line 132
    const/4 v6, 0x5

    long-to-int v7, v4

    aput v7, p1, v6

    .line 133
    const/16 v6, 0x20

    shr-long/2addr v4, v6

    .line 134
    const/4 v6, 0x6

    aget v6, p0, v6

    int-to-long v6, v6

    const-wide v10, 0xffffffffL

    and-long/2addr v6, v10

    add-long/2addr v2, v6

    sub-long/2addr v2, v8

    add-long/2addr v2, v4

    .line 135
    const/4 v4, 0x6

    long-to-int v5, v2

    aput v5, p1, v4

    .line 136
    const/16 v4, 0x20

    shr-long/2addr v2, v4

    .line 137
    const-wide/16 v4, 0x1

    add-long/2addr v4, v2

    .line 141
    add-long v2, v16, v4

    .line 143
    sub-long v4, v18, v4

    .line 144
    const/4 v6, 0x0

    long-to-int v7, v4

    aput v7, p1, v6

    .line 145
    const/16 v6, 0x20

    shr-long/2addr v4, v6

    .line 146
    const-wide/16 v6, 0x0

    cmp-long v6, v4, v6

    if-eqz v6, :cond_154

    .line 148
    const/4 v6, 0x1

    aget v6, p1, v6

    int-to-long v6, v6

    const-wide v8, 0xffffffffL

    and-long/2addr v6, v8

    add-long/2addr v4, v6

    .line 149
    const/4 v6, 0x1

    long-to-int v7, v4

    aput v7, p1, v6

    .line 150
    const/16 v6, 0x20

    shr-long/2addr v4, v6

    .line 151
    const/4 v6, 0x2

    aget v6, p1, v6

    int-to-long v6, v6

    const-wide v8, 0xffffffffL

    and-long/2addr v6, v8

    add-long/2addr v4, v6

    .line 152
    const/4 v6, 0x2

    long-to-int v7, v4

    aput v7, p1, v6

    .line 153
    const/16 v6, 0x20

    shr-long/2addr v4, v6

    add-long/2addr v2, v4

    .line 155
    :cond_154
    const/4 v4, 0x3

    long-to-int v5, v2

    aput v5, p1, v4

    .line 156
    const/16 v4, 0x20

    shr-long/2addr v2, v4

    .line 160
    const-wide/16 v4, 0x0

    cmp-long v2, v2, v4

    if-eqz v2, :cond_16b

    const/4 v2, 0x7

    const/4 v3, 0x4

    move-object/from16 v0, p1

    invoke-static {v2, v0, v3}, Lorg/spongycastle/math/raw/Nat;->incAt(I[II)I

    move-result v2

    if-nez v2, :cond_17b

    :cond_16b
    const/4 v2, 0x6

    aget v2, p1, v2

    const/4 v3, -0x1

    if-ne v2, v3, :cond_17e

    sget-object v2, Lorg/spongycastle/math/ec/custom/sec/SecP224R1Field;->P:[I

    .line 161
    move-object/from16 v0, p1

    invoke-static {v0, v2}, Lorg/spongycastle/math/raw/Nat224;->gte([I[I)Z

    move-result v2

    if-eqz v2, :cond_17e

    .line 163
    :cond_17b
    invoke-static/range {p1 .. p1}, Lorg/spongycastle/math/ec/custom/sec/SecP224R1Field;->addPInvTo([I)V

    .line 165
    :cond_17e
    return-void
.end method

.method public static reduce32(I[I)V
    .registers 14

    .prologue
    const/4 v11, 0x1

    const/4 v7, 0x0

    const-wide/16 v2, 0x0

    const/16 v10, 0x20

    const-wide v8, 0xffffffffL

    .line 169
    .line 171
    if-eqz p0, :cond_5c

    .line 173
    int-to-long v0, p0

    and-long v4, v0, v8

    .line 175
    aget v0, p1, v7

    int-to-long v0, v0

    and-long/2addr v0, v8

    sub-long/2addr v0, v4

    add-long/2addr v0, v2

    .line 176
    long-to-int v6, v0

    aput v6, p1, v7

    .line 177
    shr-long/2addr v0, v10

    .line 178
    cmp-long v6, v0, v2

    if-eqz v6, :cond_32

    .line 180
    aget v6, p1, v11

    int-to-long v6, v6

    and-long/2addr v6, v8

    add-long/2addr v0, v6

    .line 181
    long-to-int v6, v0

    aput v6, p1, v11

    .line 182
    shr-long/2addr v0, v10

    .line 183
    const/4 v6, 0x2

    aget v6, p1, v6

    int-to-long v6, v6

    and-long/2addr v6, v8

    add-long/2addr v0, v6

    .line 184
    const/4 v6, 0x2

    long-to-int v7, v0

    aput v7, p1, v6

    .line 185
    shr-long/2addr v0, v10

    .line 187
    :cond_32
    const/4 v6, 0x3

    aget v6, p1, v6

    int-to-long v6, v6

    and-long/2addr v6, v8

    add-long/2addr v4, v6

    add-long/2addr v0, v4

    .line 188
    const/4 v4, 0x3

    long-to-int v5, v0

    aput v5, p1, v4

    .line 189
    shr-long/2addr v0, v10

    .line 194
    :goto_3e
    cmp-long v0, v0, v2

    if-eqz v0, :cond_4a

    const/4 v0, 0x7

    const/4 v1, 0x4

    invoke-static {v0, p1, v1}, Lorg/spongycastle/math/raw/Nat;->incAt(I[II)I

    move-result v0

    if-nez v0, :cond_58

    :cond_4a
    const/4 v0, 0x6

    aget v0, p1, v0

    const/4 v1, -0x1

    if-ne v0, v1, :cond_5b

    sget-object v0, Lorg/spongycastle/math/ec/custom/sec/SecP224R1Field;->P:[I

    .line 195
    invoke-static {p1, v0}, Lorg/spongycastle/math/raw/Nat224;->gte([I[I)Z

    move-result v0

    if-eqz v0, :cond_5b

    .line 197
    :cond_58
    invoke-static {p1}, Lorg/spongycastle/math/ec/custom/sec/SecP224R1Field;->addPInvTo([I)V

    .line 199
    :cond_5b
    return-void

    :cond_5c
    move-wide v0, v2

    goto :goto_3e
.end method

.method public static square([I[I)V
    .registers 3

    .prologue
    .line 203
    invoke-static {}, Lorg/spongycastle/math/raw/Nat224;->createExt()[I

    move-result-object v0

    .line 204
    invoke-static {p0, v0}, Lorg/spongycastle/math/raw/Nat224;->square([I[I)V

    .line 205
    invoke-static {v0, p1}, Lorg/spongycastle/math/ec/custom/sec/SecP224R1Field;->reduce([I[I)V

    .line 206
    return-void
.end method

.method public static squareN([II[I)V
    .registers 4

    .prologue
    .line 212
    invoke-static {}, Lorg/spongycastle/math/raw/Nat224;->createExt()[I

    move-result-object v0

    .line 213
    invoke-static {p0, v0}, Lorg/spongycastle/math/raw/Nat224;->square([I[I)V

    .line 214
    invoke-static {v0, p2}, Lorg/spongycastle/math/ec/custom/sec/SecP224R1Field;->reduce([I[I)V

    .line 216
    :goto_a
    add-int/lit8 p1, p1, -0x1

    if-lez p1, :cond_15

    .line 218
    invoke-static {p2, v0}, Lorg/spongycastle/math/raw/Nat224;->square([I[I)V

    .line 219
    invoke-static {v0, p2}, Lorg/spongycastle/math/ec/custom/sec/SecP224R1Field;->reduce([I[I)V

    goto :goto_a

    .line 221
    :cond_15
    return-void
.end method

.method private static subPInvFrom([I)V
    .registers 11

    .prologue
    const/4 v9, 0x2

    const/4 v8, 0x1

    const/4 v7, 0x0

    const-wide v4, 0xffffffffL

    const/16 v6, 0x20

    .line 278
    aget v0, p0, v7

    int-to-long v0, v0

    and-long/2addr v0, v4

    const-wide/16 v2, 0x1

    add-long/2addr v0, v2

    .line 279
    long-to-int v2, v0

    aput v2, p0, v7

    .line 280
    shr-long/2addr v0, v6

    .line 281
    const-wide/16 v2, 0x0

    cmp-long v2, v0, v2

    if-eqz v2, :cond_2d

    .line 283
    aget v2, p0, v8

    int-to-long v2, v2

    and-long/2addr v2, v4

    add-long/2addr v0, v2

    .line 284
    long-to-int v2, v0

    aput v2, p0, v8

    .line 285
    shr-long/2addr v0, v6

    .line 286
    aget v2, p0, v9

    int-to-long v2, v2

    and-long/2addr v2, v4

    add-long/2addr v0, v2

    .line 287
    long-to-int v2, v0

    aput v2, p0, v9

    .line 288
    shr-long/2addr v0, v6

    .line 290
    :cond_2d
    const/4 v2, 0x3

    aget v2, p0, v2

    int-to-long v2, v2

    and-long/2addr v2, v4

    const-wide/16 v4, 0x1

    sub-long/2addr v2, v4

    add-long/2addr v0, v2

    .line 291
    const/4 v2, 0x3

    long-to-int v3, v0

    aput v3, p0, v2

    .line 292
    shr-long/2addr v0, v6

    .line 293
    const-wide/16 v2, 0x0

    cmp-long v0, v0, v2

    if-eqz v0, :cond_46

    .line 295
    const/4 v0, 0x7

    const/4 v1, 0x4

    invoke-static {v0, p0, v1}, Lorg/spongycastle/math/raw/Nat;->decAt(I[II)I

    .line 297
    :cond_46
    return-void
.end method

.method public static subtract([I[I[I)V
    .registers 4

    .prologue
    .line 225
    invoke-static {p0, p1, p2}, Lorg/spongycastle/math/raw/Nat224;->sub([I[I[I)I

    move-result v0

    .line 226
    if-eqz v0, :cond_9

    .line 228
    invoke-static {p2}, Lorg/spongycastle/math/ec/custom/sec/SecP224R1Field;->subPInvFrom([I)V

    .line 230
    :cond_9
    return-void
.end method

.method public static subtractExt([I[I[I)V
    .registers 6

    .prologue
    const/16 v2, 0xe

    .line 234
    invoke-static {v2, p0, p1, p2}, Lorg/spongycastle/math/raw/Nat;->sub(I[I[I[I)I

    move-result v0

    .line 235
    if-eqz v0, :cond_19

    .line 237
    sget-object v0, Lorg/spongycastle/math/ec/custom/sec/SecP224R1Field;->PExtInv:[I

    array-length v0, v0

    sget-object v1, Lorg/spongycastle/math/ec/custom/sec/SecP224R1Field;->PExtInv:[I

    invoke-static {v0, v1, p2}, Lorg/spongycastle/math/raw/Nat;->subFrom(I[I[I)I

    move-result v0

    if-eqz v0, :cond_19

    .line 239
    sget-object v0, Lorg/spongycastle/math/ec/custom/sec/SecP224R1Field;->PExtInv:[I

    array-length v0, v0

    invoke-static {v2, p2, v0}, Lorg/spongycastle/math/raw/Nat;->decAt(I[II)I

    .line 242
    :cond_19
    return-void
.end method

.method public static twice([I[I)V
    .registers 4

    .prologue
    .line 246
    const/4 v0, 0x7

    const/4 v1, 0x0

    invoke-static {v0, p0, v1, p1}, Lorg/spongycastle/math/raw/Nat;->shiftUpBit(I[II[I)I

    move-result v0

    .line 247
    if-nez v0, :cond_16

    const/4 v0, 0x6

    aget v0, p1, v0

    const/4 v1, -0x1

    if-ne v0, v1, :cond_19

    sget-object v0, Lorg/spongycastle/math/ec/custom/sec/SecP224R1Field;->P:[I

    invoke-static {p1, v0}, Lorg/spongycastle/math/raw/Nat224;->gte([I[I)Z

    move-result v0

    if-eqz v0, :cond_19

    .line 249
    :cond_16
    invoke-static {p1}, Lorg/spongycastle/math/ec/custom/sec/SecP224R1Field;->addPInvTo([I)V

    .line 251
    :cond_19
    return-void
.end method