DoubleAddMultiplier.smali
.class public Lorg/spongycastle/math/ec/DoubleAddMultiplier;
.super Lorg/spongycastle/math/ec/AbstractECMultiplier;
.source "DoubleAddMultiplier.java"
# direct methods
.method public constructor <init>()V
.registers 1
.prologue
.line 5
invoke-direct {p0}, Lorg/spongycastle/math/ec/AbstractECMultiplier;-><init>()V
return-void
.end method
# virtual methods
.method protected multiplyPositive(Lorg/spongycastle/math/ec/ECPoint;Ljava/math/BigInteger;)Lorg/spongycastle/math/ec/ECPoint;
.registers 11
.prologue
const/4 v1, 0x1
const/4 v2, 0x0
.line 12
const/4 v0, 0x2
new-array v4, v0, [Lorg/spongycastle/math/ec/ECPoint;
invoke-virtual {p1}, Lorg/spongycastle/math/ec/ECPoint;->getCurve()Lorg/spongycastle/math/ec/ECCurve;
move-result-object v0
invoke-virtual {v0}, Lorg/spongycastle/math/ec/ECCurve;->getInfinity()Lorg/spongycastle/math/ec/ECPoint;
move-result-object v0
aput-object v0, v4, v2
aput-object p1, v4, v1
.line 14
invoke-virtual {p2}, Ljava/math/BigInteger;->bitLength()I
move-result v5
move v3, v2
.line 15
:goto_16
if-ge v3, v5, :cond_31
.line 17
invoke-virtual {p2, v3}, Ljava/math/BigInteger;->testBit(I)Z
move-result v0
if-eqz v0, :cond_2f
move v0, v1
.line 18
:goto_1f
rsub-int/lit8 v6, v0, 0x1
.line 19
aget-object v7, v4, v6
aget-object v0, v4, v0
invoke-virtual {v7, v0}, Lorg/spongycastle/math/ec/ECPoint;->twicePlus(Lorg/spongycastle/math/ec/ECPoint;)Lorg/spongycastle/math/ec/ECPoint;
move-result-object v0
aput-object v0, v4, v6
.line 15
add-int/lit8 v0, v3, 0x1
move v3, v0
goto :goto_16
:cond_2f
move v0, v2
.line 17
goto :goto_1f
.line 22
:cond_31
aget-object v0, v4, v2
return-object v0
.end method