.class public Lcom/scaleasw/powercalc/FunctionSolver;
.super Ljava/lang/Object;
.source "FunctionSolver.java"


# instance fields
.field private solver:Lcom/scaleasw/powercalc/Solver;


# direct methods
.method constructor <init>(Lcom/scaleasw/powercalc/Solver;)V
    .locals 0
    .param p1, "solver"    # Lcom/scaleasw/powercalc/Solver;

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

    .line 11
    iput-object p1, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    .line 12
    return-void
.end method

.method public static degToGrad(D)D
    .locals 4
    .param p0, "arg"    # D

    .prologue
    .line 35
    const-wide/high16 v0, 0x4024000000000000L    # 10.0

    mul-double/2addr v0, p0

    const-wide/high16 v2, 0x4022000000000000L    # 9.0

    div-double/2addr v0, v2

    return-wide v0
.end method

.method public static degToRad(D)D
    .locals 4
    .param p0, "arg"    # D

    .prologue
    .line 29
    const-wide v0, 0x400921fb54442d18L    # Math.PI

    mul-double/2addr v0, p0

    const-wide v2, 0x4066800000000000L    # 180.0

    div-double/2addr v0, v2

    return-wide v0
.end method

.method public static gradToDeg(D)D
    .locals 4
    .param p0, "arg"    # D

    .prologue
    .line 47
    const-wide/high16 v0, 0x4022000000000000L    # 9.0

    mul-double/2addr v0, p0

    const-wide/high16 v2, 0x4024000000000000L    # 10.0

    div-double/2addr v0, v2

    return-wide v0
.end method

.method public static gradToRad(D)D
    .locals 4
    .param p0, "arg"    # D

    .prologue
    .line 41
    const-wide v0, 0x400921fb54442d18L    # Math.PI

    mul-double/2addr v0, p0

    const-wide/high16 v2, 0x4069000000000000L    # 200.0

    div-double/2addr v0, v2

    return-wide v0
.end method

.method public static radToDeg(D)D
    .locals 4
    .param p0, "arg"    # D

    .prologue
    .line 17
    const-wide v0, 0x4066800000000000L    # 180.0

    mul-double/2addr v0, p0

    const-wide v2, 0x400921fb54442d18L    # Math.PI

    div-double/2addr v0, v2

    return-wide v0
.end method

.method public static radToGrad(D)D
    .locals 4
    .param p0, "arg"    # D

    .prologue
    .line 23
    const-wide/high16 v0, 0x4069000000000000L    # 200.0

    mul-double/2addr v0, p0

    const-wide v2, 0x400921fb54442d18L    # Math.PI

    div-double/2addr v0, v2

    return-wide v0
.end method

.method private solveFunctionAF(I)Lcom/scaleasw/powercalc/Solver$Error;
    .locals 12
    .param p1, "index"    # I

    .prologue
    const-wide/high16 v8, 0x3ff0000000000000L    # 1.0

    const-wide/16 v10, 0x0

    .line 95
    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, v6, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    add-int/lit8 v7, p1, -0x1

    invoke-interface {v6, v7}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Lcom/scaleasw/powercalc/FormalElement;

    iget-object v0, v6, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    .line 96
    .local v0, "argument":Lcom/scaleasw/powercalc/Complex;
    new-instance v4, Lcom/scaleasw/powercalc/Complex;

    invoke-direct {v4, v10, v11, v10, v11}, Lcom/scaleasw/powercalc/Complex;-><init>(DD)V

    .line 97
    .local v4, "result":Lcom/scaleasw/powercalc/Complex;
    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, v6, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    invoke-interface {v6, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Lcom/scaleasw/powercalc/FormalElement;

    iget-object v2, v6, Lcom/scaleasw/powercalc/FormalElement;->element:Lcom/scaleasw/powercalc/Element;

    .line 98
    .local v2, "function":Lcom/scaleasw/powercalc/Element;
    sget-object v3, Lcom/scaleasw/powercalc/Solver$Error;->NONE:Lcom/scaleasw/powercalc/Solver$Error;

    .line 100
    .local v3, "lastError":Lcom/scaleasw/powercalc/Solver$Error;
    sget-object v6, Lcom/scaleasw/powercalc/FunctionSolver$1;->$SwitchMap$com$scaleasw$powercalc$Element:[I

    invoke-virtual {v2}, Lcom/scaleasw/powercalc/Element;->ordinal()I

    move-result v7

    aget v6, v6, v7

    packed-switch v6, :pswitch_data_0

    .line 138
    :goto_0
    if-nez v4, :cond_0

    .line 139
    sget-object v3, Lcom/scaleasw/powercalc/Solver$Error;->SOLVE_COMPUTATION:Lcom/scaleasw/powercalc/Solver$Error;

    .line 140
    iget-object v7, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, v6, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    invoke-interface {v6, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Lcom/scaleasw/powercalc/FormalElement;

    iget v6, v6, Lcom/scaleasw/powercalc/FormalElement;->elementIndex:I

    invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    iput-object v6, v7, Lcom/scaleasw/powercalc/Solver;->lastErrorIndex:Ljava/lang/Integer;

    .line 143
    :cond_0
    sget-object v6, Lcom/scaleasw/powercalc/Solver$Error;->NONE:Lcom/scaleasw/powercalc/Solver$Error;

    if-eq v3, v6, :cond_4

    .line 149
    :goto_1
    return-object v3

    .line 103
    :pswitch_0
    iget-wide v6, v0, Lcom/scaleasw/powercalc/Complex;->im:D

    cmpl-double v6, v6, v10

    if-nez v6, :cond_1

    .line 104
    iget-wide v6, v0, Lcom/scaleasw/powercalc/Complex;->re:D

    iget-wide v8, v0, Lcom/scaleasw/powercalc/Complex;->re:D

    mul-double/2addr v6, v8

    iput-wide v6, v4, Lcom/scaleasw/powercalc/Complex;->re:D

    .line 105
    iput-wide v10, v4, Lcom/scaleasw/powercalc/Complex;->im:D

    goto :goto_0

    .line 108
    :cond_1
    invoke-static {v0}, Lcom/scaleasw/powercalc/Complex;->square(Lcom/scaleasw/powercalc/Complex;)Lcom/scaleasw/powercalc/Complex;

    move-result-object v4

    .line 110
    goto :goto_0

    .line 112
    :pswitch_1
    iget-wide v6, v0, Lcom/scaleasw/powercalc/Complex;->radix:J

    iget-wide v8, v0, Lcom/scaleasw/powercalc/Complex;->radix:J

    mul-long/2addr v6, v8

    iput-wide v6, v4, Lcom/scaleasw/powercalc/Complex;->radix:J

    .line 113
    iget-wide v6, v0, Lcom/scaleasw/powercalc/Complex;->re:D

    iget-wide v8, v0, Lcom/scaleasw/powercalc/Complex;->re:D

    mul-double/2addr v6, v8

    iput-wide v6, v4, Lcom/scaleasw/powercalc/Complex;->re:D

    .line 114
    iget-wide v6, v4, Lcom/scaleasw/powercalc/Complex;->re:D

    iget-wide v8, v4, Lcom/scaleasw/powercalc/Complex;->radix:J

    long-to-double v8, v8

    cmpl-double v6, v6, v8

    if-lez v6, :cond_2

    .line 116
    sget-object v3, Lcom/scaleasw/powercalc/Solver$Error;->SOLVE_INFINITY:Lcom/scaleasw/powercalc/Solver$Error;

    .line 117
    iget-object v7, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, v6, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    invoke-interface {v6, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Lcom/scaleasw/powercalc/FormalElement;

    iget v6, v6, Lcom/scaleasw/powercalc/FormalElement;->elementIndex:I

    invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    iput-object v6, v7, Lcom/scaleasw/powercalc/Solver;->lastErrorIndex:Ljava/lang/Integer;

    goto :goto_0

    .line 119
    :cond_2
    iget-wide v6, v4, Lcom/scaleasw/powercalc/Complex;->radix:J

    iget-object v8, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget v8, v8, Lcom/scaleasw/powercalc/Solver;->calcBits:I

    invoke-virtual {v4, v6, v7, v8}, Lcom/scaleasw/powercalc/Complex;->setRadix(JI)V

    goto :goto_0

    .line 122
    :pswitch_2
    iget-wide v6, v0, Lcom/scaleasw/powercalc/Complex;->im:D

    cmpl-double v6, v6, v10

    if-nez v6, :cond_3

    .line 123
    iget-wide v6, v0, Lcom/scaleasw/powercalc/Complex;->re:D

    div-double v6, v8, v6

    iput-wide v6, v4, Lcom/scaleasw/powercalc/Complex;->re:D

    .line 124
    iput-wide v10, v4, Lcom/scaleasw/powercalc/Complex;->im:D

    goto :goto_0

    .line 127
    :cond_3
    new-instance v5, Lcom/scaleasw/powercalc/Complex;

    invoke-direct {v5, v8, v9, v10, v11}, Lcom/scaleasw/powercalc/Complex;-><init>(DD)V

    .line 128
    .local v5, "temp":Lcom/scaleasw/powercalc/Complex;
    invoke-static {v5, v0}, Lcom/scaleasw/powercalc/Complex;->divide(Lcom/scaleasw/powercalc/Complex;Lcom/scaleasw/powercalc/Complex;)Lcom/scaleasw/powercalc/Complex;

    move-result-object v4

    .line 130
    goto/16 :goto_0

    .line 132
    .end local v5    # "temp":Lcom/scaleasw/powercalc/Complex;
    :pswitch_3
    invoke-static {v0}, Lcom/scaleasw/powercalc/Complex;->factorial(Lcom/scaleasw/powercalc/Complex;)Lcom/scaleasw/powercalc/Complex;

    move-result-object v4

    .line 133
    goto/16 :goto_0

    .line 145
    :cond_4
    new-instance v1, Lcom/scaleasw/powercalc/FormalElement;

    sget-object v6, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->NUMBER:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-direct {v1, v6}, Lcom/scaleasw/powercalc/FormalElement;-><init>(Lcom/scaleasw/powercalc/FormalElement$FormalElementType;)V

    .line 146
    .local v1, "element":Lcom/scaleasw/powercalc/FormalElement;
    invoke-virtual {v1, v4}, Lcom/scaleasw/powercalc/FormalElement;->setValue(Lcom/scaleasw/powercalc/Complex;)V

    .line 147
    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, v6, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    add-int/lit8 v7, p1, -0x1

    invoke-interface {v6, v7, v1}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object;

    .line 148
    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, v6, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    invoke-interface {v6, p1}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    goto/16 :goto_1

    .line 100
    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
    .end packed-switch
.end method

.method private solveFunctionAFA(I)Lcom/scaleasw/powercalc/Solver$Error;
    .locals 14
    .param p1, "index"    # I

    .prologue
    const-wide/high16 v12, 0x3ff0000000000000L    # 1.0

    const-wide/16 v10, 0x0

    .line 347
    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, v6, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    add-int/lit8 v7, p1, -0x1

    invoke-interface {v6, v7}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Lcom/scaleasw/powercalc/FormalElement;

    iget-object v0, v6, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    .line 348
    .local v0, "argument1":Lcom/scaleasw/powercalc/Complex;
    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, v6, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    add-int/lit8 v7, p1, 0x1

    invoke-interface {v6, v7}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Lcom/scaleasw/powercalc/FormalElement;

    iget-object v1, v6, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    .line 349
    .local v1, "argument2":Lcom/scaleasw/powercalc/Complex;
    new-instance v5, Lcom/scaleasw/powercalc/Complex;

    invoke-direct {v5, v10, v11, v10, v11}, Lcom/scaleasw/powercalc/Complex;-><init>(DD)V

    .line 350
    .local v5, "result":Lcom/scaleasw/powercalc/Complex;
    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, v6, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    invoke-interface {v6, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Lcom/scaleasw/powercalc/FormalElement;

    iget-object v3, v6, Lcom/scaleasw/powercalc/FormalElement;->element:Lcom/scaleasw/powercalc/Element;

    .line 351
    .local v3, "function":Lcom/scaleasw/powercalc/Element;
    sget-object v4, Lcom/scaleasw/powercalc/Solver$Error;->NONE:Lcom/scaleasw/powercalc/Solver$Error;

    .line 353
    .local v4, "lastError":Lcom/scaleasw/powercalc/Solver$Error;
    sget-object v6, Lcom/scaleasw/powercalc/FunctionSolver$1;->$SwitchMap$com$scaleasw$powercalc$Element:[I

    invoke-virtual {v3}, Lcom/scaleasw/powercalc/Element;->ordinal()I

    move-result v7

    aget v6, v6, v7

    packed-switch v6, :pswitch_data_0

    .line 404
    :goto_0
    if-nez v5, :cond_0

    .line 405
    sget-object v4, Lcom/scaleasw/powercalc/Solver$Error;->SOLVE_COMPUTATION:Lcom/scaleasw/powercalc/Solver$Error;

    .line 406
    iget-object v7, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, v6, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    invoke-interface {v6, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Lcom/scaleasw/powercalc/FormalElement;

    iget v6, v6, Lcom/scaleasw/powercalc/FormalElement;->elementIndex:I

    invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    iput-object v6, v7, Lcom/scaleasw/powercalc/Solver;->lastErrorIndex:Ljava/lang/Integer;

    .line 409
    :cond_0
    sget-object v6, Lcom/scaleasw/powercalc/Solver$Error;->NONE:Lcom/scaleasw/powercalc/Solver$Error;

    if-eq v4, v6, :cond_6

    .line 416
    :goto_1
    return-object v4

    .line 356
    :pswitch_0
    invoke-static {v0, v1}, Lcom/scaleasw/powercalc/Complex;->powerComplexComplex(Lcom/scaleasw/powercalc/Complex;Lcom/scaleasw/powercalc/Complex;)Lcom/scaleasw/powercalc/Complex;

    move-result-object v5

    .line 357
    goto :goto_0

    .line 359
    :pswitch_1
    iget-wide v6, v0, Lcom/scaleasw/powercalc/Complex;->re:D

    iget-wide v8, v1, Lcom/scaleasw/powercalc/Complex;->re:D

    invoke-static {v6, v7, v8, v9}, Ljava/lang/Math;->pow(DD)D

    move-result-wide v6

    iput-wide v6, v5, Lcom/scaleasw/powercalc/Complex;->re:D

    .line 360
    iget-wide v6, v5, Lcom/scaleasw/powercalc/Complex;->re:D

    invoke-static {v6, v7}, Ljava/lang/Double;->isNaN(D)Z

    move-result v6

    if-eqz v6, :cond_1

    .line 361
    sget-object v4, Lcom/scaleasw/powercalc/Solver$Error;->SOLVE_COMPUTATION:Lcom/scaleasw/powercalc/Solver$Error;

    .line 362
    iget-object v7, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, v6, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    invoke-interface {v6, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Lcom/scaleasw/powercalc/FormalElement;

    iget v6, v6, Lcom/scaleasw/powercalc/FormalElement;->elementIndex:I

    invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    iput-object v6, v7, Lcom/scaleasw/powercalc/Solver;->lastErrorIndex:Ljava/lang/Integer;

    goto :goto_0

    .line 364
    :cond_1
    iget-wide v6, v5, Lcom/scaleasw/powercalc/Complex;->re:D

    invoke-static {v6, v7}, Ljava/lang/Double;->isInfinite(D)Z

    move-result v6

    if-eqz v6, :cond_2

    .line 366
    sget-object v4, Lcom/scaleasw/powercalc/Solver$Error;->SOLVE_INFINITY:Lcom/scaleasw/powercalc/Solver$Error;

    .line 367
    iget-object v7, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, v6, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    invoke-interface {v6, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Lcom/scaleasw/powercalc/FormalElement;

    iget v6, v6, Lcom/scaleasw/powercalc/FormalElement;->elementIndex:I

    invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    iput-object v6, v7, Lcom/scaleasw/powercalc/Solver;->lastErrorIndex:Ljava/lang/Integer;

    goto :goto_0

    .line 369
    :cond_2
    iget-wide v6, v5, Lcom/scaleasw/powercalc/Complex;->re:D

    invoke-static {v6, v7}, Ljava/lang/Math;->floor(D)D

    move-result-wide v6

    double-to-long v6, v6

    iget-object v8, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget v8, v8, Lcom/scaleasw/powercalc/Solver;->calcBits:I

    invoke-virtual {v5, v6, v7, v8}, Lcom/scaleasw/powercalc/Complex;->setRadix(JI)V

    goto :goto_0

    .line 372
    :pswitch_2
    iget-wide v6, v0, Lcom/scaleasw/powercalc/Complex;->im:D

    cmpl-double v6, v6, v10

    if-nez v6, :cond_3

    iget-wide v6, v1, Lcom/scaleasw/powercalc/Complex;->im:D

    cmpl-double v6, v6, v10

    if-eqz v6, :cond_4

    .line 373
    :cond_3
    sget-object v4, Lcom/scaleasw/powercalc/Solver$Error;->SOLVE_IMAGINARY:Lcom/scaleasw/powercalc/Solver$Error;

    .line 374
    iget-object v7, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, v6, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    invoke-interface {v6, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Lcom/scaleasw/powercalc/FormalElement;

    iget v6, v6, Lcom/scaleasw/powercalc/FormalElement;->elementIndex:I

    invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    iput-object v6, v7, Lcom/scaleasw/powercalc/Solver;->lastErrorIndex:Ljava/lang/Integer;

    goto/16 :goto_0

    .line 377
    :cond_4
    iget-wide v6, v1, Lcom/scaleasw/powercalc/Complex;->re:D

    iget-wide v8, v0, Lcom/scaleasw/powercalc/Complex;->re:D

    div-double v8, v12, v8

    invoke-static {v6, v7, v8, v9}, Ljava/lang/Math;->pow(DD)D

    move-result-wide v6

    iput-wide v6, v5, Lcom/scaleasw/powercalc/Complex;->re:D

    .line 378
    iput-wide v10, v5, Lcom/scaleasw/powercalc/Complex;->im:D

    goto/16 :goto_0

    .line 382
    :pswitch_3
    iget-wide v6, v1, Lcom/scaleasw/powercalc/Complex;->re:D

    iget-wide v8, v0, Lcom/scaleasw/powercalc/Complex;->re:D

    div-double v8, v12, v8

    invoke-static {v6, v7, v8, v9}, Ljava/lang/Math;->pow(DD)D

    move-result-wide v6

    iput-wide v6, v5, Lcom/scaleasw/powercalc/Complex;->re:D

    .line 383
    iget-wide v6, v5, Lcom/scaleasw/powercalc/Complex;->re:D

    invoke-static {v6, v7}, Ljava/lang/Double;->isNaN(D)Z

    move-result v6

    if-eqz v6, :cond_5

    .line 384
    sget-object v4, Lcom/scaleasw/powercalc/Solver$Error;->SOLVE_COMPUTATION:Lcom/scaleasw/powercalc/Solver$Error;

    .line 385
    iget-object v7, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, v6, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    invoke-interface {v6, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Lcom/scaleasw/powercalc/FormalElement;

    iget v6, v6, Lcom/scaleasw/powercalc/FormalElement;->elementIndex:I

    invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    iput-object v6, v7, Lcom/scaleasw/powercalc/Solver;->lastErrorIndex:Ljava/lang/Integer;

    goto/16 :goto_0

    .line 387
    :cond_5
    iget-wide v6, v5, Lcom/scaleasw/powercalc/Complex;->re:D

    invoke-static {v6, v7}, Ljava/lang/Math;->floor(D)D

    move-result-wide v6

    double-to-long v6, v6

    iget-object v8, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget v8, v8, Lcom/scaleasw/powercalc/Solver;->calcBits:I

    invoke-virtual {v5, v6, v7, v8}, Lcom/scaleasw/powercalc/Complex;->setRadix(JI)V

    goto/16 :goto_0

    .line 391
    :pswitch_4
    iget-wide v6, v0, Lcom/scaleasw/powercalc/Complex;->re:D

    iget-wide v8, v1, Lcom/scaleasw/powercalc/Complex;->re:D

    invoke-virtual {p0, v8, v9}, Lcom/scaleasw/powercalc/FunctionSolver;->denormalizeAngle(D)D

    move-result-wide v8

    invoke-static {v8, v9}, Lcom/scaleasw/powercalc/Complex;->cosReal(D)Ljava/lang/Double;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/Double;->doubleValue()D

    move-result-wide v8

    mul-double/2addr v6, v8

    iput-wide v6, v5, Lcom/scaleasw/powercalc/Complex;->re:D

    .line 392
    iget-wide v6, v0, Lcom/scaleasw/powercalc/Complex;->re:D

    iget-wide v8, v1, Lcom/scaleasw/powercalc/Complex;->re:D

    invoke-virtual {p0, v8, v9}, Lcom/scaleasw/powercalc/FunctionSolver;->denormalizeAngle(D)D

    move-result-wide v8

    invoke-static {v8, v9}, Lcom/scaleasw/powercalc/Complex;->sinReal(D)Ljava/lang/Double;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/Double;->doubleValue()D

    move-result-wide v8

    mul-double/2addr v6, v8

    iput-wide v6, v5, Lcom/scaleasw/powercalc/Complex;->im:D

    goto/16 :goto_0

    .line 395
    :pswitch_5
    invoke-static {v0, v1}, Lcom/scaleasw/powercalc/Complex;->permutations(Lcom/scaleasw/powercalc/Complex;Lcom/scaleasw/powercalc/Complex;)Lcom/scaleasw/powercalc/Complex;

    move-result-object v5

    .line 396
    goto/16 :goto_0

    .line 398
    :pswitch_6
    invoke-static {v0, v1}, Lcom/scaleasw/powercalc/Complex;->combinations(Lcom/scaleasw/powercalc/Complex;Lcom/scaleasw/powercalc/Complex;)Lcom/scaleasw/powercalc/Complex;

    move-result-object v5

    .line 399
    goto/16 :goto_0

    .line 411
    :cond_6
    new-instance v2, Lcom/scaleasw/powercalc/FormalElement;

    sget-object v6, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->NUMBER:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-direct {v2, v6}, Lcom/scaleasw/powercalc/FormalElement;-><init>(Lcom/scaleasw/powercalc/FormalElement$FormalElementType;)V

    .line 412
    .local v2, "element":Lcom/scaleasw/powercalc/FormalElement;
    invoke-virtual {v2, v5}, Lcom/scaleasw/powercalc/FormalElement;->setValue(Lcom/scaleasw/powercalc/Complex;)V

    .line 413
    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, v6, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    add-int/lit8 v7, p1, -0x1

    invoke-interface {v6, v7, v2}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object;

    .line 414
    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, v6, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    invoke-interface {v6, p1}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    .line 415
    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, v6, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    invoke-interface {v6, p1}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    goto/16 :goto_1

    .line 353
    :pswitch_data_0
    .packed-switch 0x1f
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
        :pswitch_4
        :pswitch_5
        :pswitch_6
    .end packed-switch
.end method

.method private solveFunctionFA(I)Lcom/scaleasw/powercalc/Solver$Error;
    .locals 12
    .param p1, "index"    # I

    .prologue
    const-wide/16 v10, 0x0

    .line 153
    iget-object v8, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v8, v8, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    add-int/lit8 v9, p1, 0x1

    invoke-interface {v8, v9}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Lcom/scaleasw/powercalc/FormalElement;

    iget-object v0, v8, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    .line 154
    .local v0, "argument":Lcom/scaleasw/powercalc/Complex;
    new-instance v5, Lcom/scaleasw/powercalc/Complex;

    invoke-direct {v5, v10, v11, v10, v11}, Lcom/scaleasw/powercalc/Complex;-><init>(DD)V

    .line 155
    .local v5, "result":Lcom/scaleasw/powercalc/Complex;
    iget-object v8, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v8, v8, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    invoke-interface {v8, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Lcom/scaleasw/powercalc/FormalElement;

    iget-object v3, v8, Lcom/scaleasw/powercalc/FormalElement;->element:Lcom/scaleasw/powercalc/Element;

    .line 156
    .local v3, "function":Lcom/scaleasw/powercalc/Element;
    sget-object v4, Lcom/scaleasw/powercalc/Solver$Error;->NONE:Lcom/scaleasw/powercalc/Solver$Error;

    .line 158
    .local v4, "lastError":Lcom/scaleasw/powercalc/Solver$Error;
    const/4 v2, 0x0

    .line 160
    .local v2, "freeError":Z
    sget-object v8, Lcom/scaleasw/powercalc/FunctionSolver$1;->$SwitchMap$com$scaleasw$powercalc$Element:[I

    invoke-virtual {v3}, Lcom/scaleasw/powercalc/Element;->ordinal()I

    move-result v9

    aget v8, v8, v9

    packed-switch v8, :pswitch_data_0

    .line 326
    :cond_0
    :goto_0
    if-nez v5, :cond_1

    .line 327
    sget-object v4, Lcom/scaleasw/powercalc/Solver$Error;->SOLVE_COMPUTATION:Lcom/scaleasw/powercalc/Solver$Error;

    .line 328
    iget-object v9, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v8, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v8, v8, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    invoke-interface {v8, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Lcom/scaleasw/powercalc/FormalElement;

    iget v8, v8, Lcom/scaleasw/powercalc/FormalElement;->elementIndex:I

    invoke-static {v8}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v8

    iput-object v8, v9, Lcom/scaleasw/powercalc/Solver;->lastErrorIndex:Ljava/lang/Integer;

    .line 331
    :cond_1
    if-eqz v2, :cond_2

    .line 332
    const/4 v5, 0x0

    .line 333
    sget-object v4, Lcom/scaleasw/powercalc/Solver$Error;->SOLVE_FREEVER:Lcom/scaleasw/powercalc/Solver$Error;

    .line 334
    iget-object v9, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v8, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v8, v8, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    invoke-interface {v8, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Lcom/scaleasw/powercalc/FormalElement;

    iget v8, v8, Lcom/scaleasw/powercalc/FormalElement;->elementIndex:I

    invoke-static {v8}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v8

    iput-object v8, v9, Lcom/scaleasw/powercalc/Solver;->lastErrorIndex:Ljava/lang/Integer;

    .line 337
    :cond_2
    sget-object v8, Lcom/scaleasw/powercalc/Solver$Error;->NONE:Lcom/scaleasw/powercalc/Solver$Error;

    if-eq v4, v8, :cond_13

    .line 343
    :goto_1
    return-object v4

    .line 163
    :pswitch_0
    iget-wide v8, v0, Lcom/scaleasw/powercalc/Complex;->radix:J

    const-wide/16 v10, -0x1

    xor-long/2addr v8, v10

    iput-wide v8, v5, Lcom/scaleasw/powercalc/Complex;->radix:J

    .line 164
    iget-wide v8, v5, Lcom/scaleasw/powercalc/Complex;->radix:J

    iget-object v10, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget v10, v10, Lcom/scaleasw/powercalc/Solver;->calcBits:I

    invoke-virtual {v5, v8, v9, v10}, Lcom/scaleasw/powercalc/Complex;->setRadix(JI)V

    goto :goto_0

    .line 167
    :pswitch_1
    invoke-virtual {v0}, Lcom/scaleasw/powercalc/Complex;->argument()Ljava/lang/Double;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/Double;->doubleValue()D

    move-result-wide v8

    invoke-virtual {p0, v8, v9}, Lcom/scaleasw/powercalc/FunctionSolver;->normalizeAngle(D)D

    move-result-wide v8

    iput-wide v8, v5, Lcom/scaleasw/powercalc/Complex;->re:D

    goto :goto_0

    .line 170
    :pswitch_2
    invoke-virtual {v0}, Lcom/scaleasw/powercalc/Complex;->magnitude()Ljava/lang/Double;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/Double;->doubleValue()D

    move-result-wide v8

    iput-wide v8, v5, Lcom/scaleasw/powercalc/Complex;->re:D

    goto :goto_0

    .line 173
    :pswitch_3
    invoke-virtual {v0}, Lcom/scaleasw/powercalc/Complex;->magnitude()Ljava/lang/Double;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/Double;->doubleValue()D

    move-result-wide v6

    .line 174
    .local v6, "mag":D
    iget-wide v8, v0, Lcom/scaleasw/powercalc/Complex;->re:D

    div-double/2addr v8, v6

    iput-wide v8, v5, Lcom/scaleasw/powercalc/Complex;->re:D

    .line 175
    iget-wide v8, v0, Lcom/scaleasw/powercalc/Complex;->im:D

    div-double/2addr v8, v6

    iput-wide v8, v5, Lcom/scaleasw/powercalc/Complex;->im:D

    goto :goto_0

    .line 178
    .end local v6    # "mag":D
    :pswitch_4
    invoke-static {v0}, Lcom/scaleasw/powercalc/Complex;->powerE(Lcom/scaleasw/powercalc/Complex;)Lcom/scaleasw/powercalc/Complex;

    move-result-object v5

    .line 179
    goto :goto_0

    .line 181
    :pswitch_5
    invoke-static {v0}, Lcom/scaleasw/powercalc/Complex;->ln(Lcom/scaleasw/powercalc/Complex;)Lcom/scaleasw/powercalc/Complex;

    move-result-object v5

    .line 182
    goto :goto_0

    .line 184
    :pswitch_6
    invoke-static {v0}, Lcom/scaleasw/powercalc/Complex;->log(Lcom/scaleasw/powercalc/Complex;)Lcom/scaleasw/powercalc/Complex;

    move-result-object v5

    .line 185
    goto/16 :goto_0

    .line 187
    :pswitch_7
    const-wide/high16 v8, 0x4024000000000000L    # 10.0

    invoke-static {v8, v9, v0}, Lcom/scaleasw/powercalc/Complex;->powerRealComplex(DLcom/scaleasw/powercalc/Complex;)Lcom/scaleasw/powercalc/Complex;

    move-result-object v5

    .line 188
    goto/16 :goto_0

    .line 190
    :pswitch_8
    invoke-static {v0}, Lcom/scaleasw/powercalc/Complex;->squareRoot(Lcom/scaleasw/powercalc/Complex;)Lcom/scaleasw/powercalc/Complex;

    move-result-object v5

    .line 191
    goto/16 :goto_0

    .line 193
    :pswitch_9
    invoke-static {v0}, Lcom/scaleasw/powercalc/Complex;->squareRoot(Lcom/scaleasw/powercalc/Complex;)Lcom/scaleasw/powercalc/Complex;

    move-result-object v5

    .line 194
    iget-wide v8, v5, Lcom/scaleasw/powercalc/Complex;->im:D

    cmpl-double v8, v8, v10

    if-eqz v8, :cond_0

    .line 195
    sget-object v4, Lcom/scaleasw/powercalc/Solver$Error;->SOLVE_COMPUTATION:Lcom/scaleasw/powercalc/Solver$Error;

    .line 196
    iget-object v9, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v8, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v8, v8, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    invoke-interface {v8, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Lcom/scaleasw/powercalc/FormalElement;

    iget v8, v8, Lcom/scaleasw/powercalc/FormalElement;->elementIndex:I

    invoke-static {v8}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v8

    iput-object v8, v9, Lcom/scaleasw/powercalc/Solver;->lastErrorIndex:Ljava/lang/Integer;

    goto/16 :goto_0

    .line 200
    :pswitch_a
    iget-wide v8, v0, Lcom/scaleasw/powercalc/Complex;->im:D

    cmpl-double v8, v8, v10

    if-eqz v8, :cond_3

    .line 201
    sget-object v4, Lcom/scaleasw/powercalc/Solver$Error;->SOLVE_IMAGINARY:Lcom/scaleasw/powercalc/Solver$Error;

    .line 202
    iget-object v9, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v8, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v8, v8, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    invoke-interface {v8, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Lcom/scaleasw/powercalc/FormalElement;

    iget v8, v8, Lcom/scaleasw/powercalc/FormalElement;->elementIndex:I

    invoke-static {v8}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v8

    iput-object v8, v9, Lcom/scaleasw/powercalc/Solver;->lastErrorIndex:Ljava/lang/Integer;

    goto/16 :goto_0

    .line 205
    :cond_3
    iget-wide v8, v0, Lcom/scaleasw/powercalc/Complex;->re:D

    invoke-static {v8, v9}, Ljava/lang/Math;->cbrt(D)D

    move-result-wide v8

    iput-wide v8, v5, Lcom/scaleasw/powercalc/Complex;->re:D

    .line 206
    iput-wide v10, v5, Lcom/scaleasw/powercalc/Complex;->im:D

    goto/16 :goto_0

    .line 210
    :pswitch_b
    iget-wide v8, v0, Lcom/scaleasw/powercalc/Complex;->re:D

    invoke-static {v8, v9}, Ljava/lang/Math;->cbrt(D)D

    move-result-wide v8

    iput-wide v8, v5, Lcom/scaleasw/powercalc/Complex;->re:D

    .line 211
    iget-wide v8, v5, Lcom/scaleasw/powercalc/Complex;->im:D

    cmpl-double v8, v8, v10

    if-eqz v8, :cond_4

    .line 212
    sget-object v4, Lcom/scaleasw/powercalc/Solver$Error;->SOLVE_IMAGINARY:Lcom/scaleasw/powercalc/Solver$Error;

    .line 213
    iget-object v9, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v8, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v8, v8, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    invoke-interface {v8, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Lcom/scaleasw/powercalc/FormalElement;

    iget v8, v8, Lcom/scaleasw/powercalc/FormalElement;->elementIndex:I

    invoke-static {v8}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v8

    iput-object v8, v9, Lcom/scaleasw/powercalc/Solver;->lastErrorIndex:Ljava/lang/Integer;

    goto/16 :goto_0

    .line 215
    :cond_4
    iget-object v8, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget v8, v8, Lcom/scaleasw/powercalc/Solver;->calcBits:I

    invoke-virtual {v5, v8}, Lcom/scaleasw/powercalc/Complex;->toRadix(I)V

    goto/16 :goto_0

    .line 219
    :pswitch_c
    iget-wide v8, v0, Lcom/scaleasw/powercalc/Complex;->im:D

    cmpl-double v8, v8, v10

    if-eqz v8, :cond_5

    .line 220
    const/4 v2, 0x1

    .line 222
    :cond_5
    invoke-virtual {p0, v0}, Lcom/scaleasw/powercalc/FunctionSolver;->denormalizeAngleComplex(Lcom/scaleasw/powercalc/Complex;)Lcom/scaleasw/powercalc/Complex;

    move-result-object v8

    invoke-static {v8}, Lcom/scaleasw/powercalc/Complex;->sin(Lcom/scaleasw/powercalc/Complex;)Lcom/scaleasw/powercalc/Complex;

    move-result-object v5

    .line 223
    goto/16 :goto_0

    .line 226
    :pswitch_d
    iget-wide v8, v0, Lcom/scaleasw/powercalc/Complex;->im:D

    cmpl-double v8, v8, v10

    if-eqz v8, :cond_6

    .line 227
    const/4 v2, 0x1

    .line 229
    :cond_6
    invoke-static {v0}, Lcom/scaleasw/powercalc/Complex;->asin(Lcom/scaleasw/powercalc/Complex;)Lcom/scaleasw/powercalc/Complex;

    move-result-object v8

    invoke-virtual {p0, v8}, Lcom/scaleasw/powercalc/FunctionSolver;->normalizeAngleComplex(Lcom/scaleasw/powercalc/Complex;)Lcom/scaleasw/powercalc/Complex;

    move-result-object v5

    .line 230
    goto/16 :goto_0

    .line 233
    :pswitch_e
    iget-wide v8, v0, Lcom/scaleasw/powercalc/Complex;->im:D

    cmpl-double v8, v8, v10

    if-eqz v8, :cond_7

    .line 234
    const/4 v2, 0x1

    .line 236
    :cond_7
    invoke-virtual {p0, v0}, Lcom/scaleasw/powercalc/FunctionSolver;->denormalizeAngleComplex(Lcom/scaleasw/powercalc/Complex;)Lcom/scaleasw/powercalc/Complex;

    move-result-object v8

    invoke-static {v8}, Lcom/scaleasw/powercalc/Complex;->cos(Lcom/scaleasw/powercalc/Complex;)Lcom/scaleasw/powercalc/Complex;

    move-result-object v5

    .line 237
    goto/16 :goto_0

    .line 240
    :pswitch_f
    iget-wide v8, v0, Lcom/scaleasw/powercalc/Complex;->im:D

    cmpl-double v8, v8, v10

    if-eqz v8, :cond_8

    .line 241
    const/4 v2, 0x1

    .line 243
    :cond_8
    invoke-static {v0}, Lcom/scaleasw/powercalc/Complex;->acos(Lcom/scaleasw/powercalc/Complex;)Lcom/scaleasw/powercalc/Complex;

    move-result-object v8

    invoke-virtual {p0, v8}, Lcom/scaleasw/powercalc/FunctionSolver;->normalizeAngleComplex(Lcom/scaleasw/powercalc/Complex;)Lcom/scaleasw/powercalc/Complex;

    move-result-object v5

    .line 244
    goto/16 :goto_0

    .line 247
    :pswitch_10
    iget-wide v8, v0, Lcom/scaleasw/powercalc/Complex;->im:D

    cmpl-double v8, v8, v10

    if-eqz v8, :cond_9

    .line 248
    const/4 v2, 0x1

    .line 251
    :cond_9
    iget-wide v8, v0, Lcom/scaleasw/powercalc/Complex;->im:D

    cmpl-double v8, v8, v10

    if-nez v8, :cond_b

    .line 253
    iget-wide v8, v0, Lcom/scaleasw/powercalc/Complex;->re:D

    invoke-virtual {p0, v8, v9}, Lcom/scaleasw/powercalc/FunctionSolver;->denormalizeAngle(D)D

    move-result-wide v8

    invoke-static {v8, v9}, Lcom/scaleasw/powercalc/Complex;->cosReal(D)Ljava/lang/Double;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/Double;->doubleValue()D

    move-result-wide v8

    cmpl-double v8, v8, v10

    if-nez v8, :cond_a

    .line 255
    sget-object v4, Lcom/scaleasw/powercalc/Solver$Error;->SOLVE_INFINITY:Lcom/scaleasw/powercalc/Solver$Error;

    .line 256
    iget-object v9, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v8, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v8, v8, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    invoke-interface {v8, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Lcom/scaleasw/powercalc/FormalElement;

    iget v8, v8, Lcom/scaleasw/powercalc/FormalElement;->elementIndex:I

    invoke-static {v8}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v8

    iput-object v8, v9, Lcom/scaleasw/powercalc/Solver;->lastErrorIndex:Ljava/lang/Integer;

    goto/16 :goto_0

    .line 259
    :cond_a
    iget-wide v8, v0, Lcom/scaleasw/powercalc/Complex;->re:D

    invoke-virtual {p0, v8, v9}, Lcom/scaleasw/powercalc/FunctionSolver;->denormalizeAngle(D)D

    move-result-wide v8

    invoke-static {v8, v9}, Lcom/scaleasw/powercalc/Complex;->sinReal(D)Ljava/lang/Double;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/Double;->doubleValue()D

    move-result-wide v8

    cmpl-double v8, v8, v10

    if-nez v8, :cond_b

    .line 261
    iput-wide v10, v5, Lcom/scaleasw/powercalc/Complex;->re:D

    .line 262
    iput-wide v10, v5, Lcom/scaleasw/powercalc/Complex;->im:D

    goto/16 :goto_0

    .line 266
    :cond_b
    invoke-virtual {p0, v0}, Lcom/scaleasw/powercalc/FunctionSolver;->denormalizeAngleComplex(Lcom/scaleasw/powercalc/Complex;)Lcom/scaleasw/powercalc/Complex;

    move-result-object v8

    invoke-static {v8}, Lcom/scaleasw/powercalc/Complex;->tan(Lcom/scaleasw/powercalc/Complex;)Lcom/scaleasw/powercalc/Complex;

    move-result-object v5

    .line 267
    goto/16 :goto_0

    .line 270
    :pswitch_11
    iget-wide v8, v0, Lcom/scaleasw/powercalc/Complex;->im:D

    cmpl-double v8, v8, v10

    if-eqz v8, :cond_c

    .line 271
    const/4 v2, 0x1

    .line 273
    :cond_c
    invoke-static {v0}, Lcom/scaleasw/powercalc/Complex;->atan(Lcom/scaleasw/powercalc/Complex;)Lcom/scaleasw/powercalc/Complex;

    move-result-object v8

    invoke-virtual {p0, v8}, Lcom/scaleasw/powercalc/FunctionSolver;->normalizeAngleComplex(Lcom/scaleasw/powercalc/Complex;)Lcom/scaleasw/powercalc/Complex;

    move-result-object v5

    .line 274
    goto/16 :goto_0

    .line 277
    :pswitch_12
    iget-wide v8, v0, Lcom/scaleasw/powercalc/Complex;->im:D

    cmpl-double v8, v8, v10

    if-eqz v8, :cond_d

    .line 278
    const/4 v2, 0x1

    .line 280
    :cond_d
    invoke-static {v0}, Lcom/scaleasw/powercalc/Complex;->sinh(Lcom/scaleasw/powercalc/Complex;)Lcom/scaleasw/powercalc/Complex;

    move-result-object v5

    .line 281
    goto/16 :goto_0

    .line 284
    :pswitch_13
    iget-wide v8, v0, Lcom/scaleasw/powercalc/Complex;->im:D

    cmpl-double v8, v8, v10

    if-eqz v8, :cond_e

    .line 285
    const/4 v2, 0x1

    .line 287
    :cond_e
    invoke-static {v0}, Lcom/scaleasw/powercalc/Complex;->asinh(Lcom/scaleasw/powercalc/Complex;)Lcom/scaleasw/powercalc/Complex;

    move-result-object v5

    .line 288
    goto/16 :goto_0

    .line 291
    :pswitch_14
    iget-wide v8, v0, Lcom/scaleasw/powercalc/Complex;->im:D

    cmpl-double v8, v8, v10

    if-eqz v8, :cond_f

    .line 292
    const/4 v2, 0x1

    .line 294
    :cond_f
    invoke-static {v0}, Lcom/scaleasw/powercalc/Complex;->cosh(Lcom/scaleasw/powercalc/Complex;)Lcom/scaleasw/powercalc/Complex;

    move-result-object v5

    .line 295
    goto/16 :goto_0

    .line 298
    :pswitch_15
    iget-wide v8, v0, Lcom/scaleasw/powercalc/Complex;->im:D

    cmpl-double v8, v8, v10

    if-eqz v8, :cond_10

    .line 299
    const/4 v2, 0x1

    .line 301
    :cond_10
    invoke-static {v0}, Lcom/scaleasw/powercalc/Complex;->acosh(Lcom/scaleasw/powercalc/Complex;)Lcom/scaleasw/powercalc/Complex;

    move-result-object v5

    .line 302
    goto/16 :goto_0

    .line 305
    :pswitch_16
    iget-wide v8, v0, Lcom/scaleasw/powercalc/Complex;->im:D

    cmpl-double v8, v8, v10

    if-eqz v8, :cond_11

    .line 306
    const/4 v2, 0x1

    .line 308
    :cond_11
    invoke-static {v0}, Lcom/scaleasw/powercalc/Complex;->tanh(Lcom/scaleasw/powercalc/Complex;)Lcom/scaleasw/powercalc/Complex;

    move-result-object v5

    .line 309
    goto/16 :goto_0

    .line 312
    :pswitch_17
    iget-wide v8, v0, Lcom/scaleasw/powercalc/Complex;->im:D

    cmpl-double v8, v8, v10

    if-eqz v8, :cond_12

    .line 313
    const/4 v2, 0x1

    .line 315
    :cond_12
    invoke-static {v0}, Lcom/scaleasw/powercalc/Complex;->atanh(Lcom/scaleasw/powercalc/Complex;)Lcom/scaleasw/powercalc/Complex;

    move-result-object v5

    .line 316
    goto/16 :goto_0

    .line 318
    :pswitch_18
    new-instance v5, Lcom/scaleasw/powercalc/Complex;

    .end local v5    # "result":Lcom/scaleasw/powercalc/Complex;
    iget-wide v8, v0, Lcom/scaleasw/powercalc/Complex;->re:D

    invoke-direct {v5, v8, v9, v10, v11}, Lcom/scaleasw/powercalc/Complex;-><init>(DD)V

    .line 319
    .restart local v5    # "result":Lcom/scaleasw/powercalc/Complex;
    goto/16 :goto_0

    .line 321
    :pswitch_19
    new-instance v5, Lcom/scaleasw/powercalc/Complex;

    .end local v5    # "result":Lcom/scaleasw/powercalc/Complex;
    iget-wide v8, v0, Lcom/scaleasw/powercalc/Complex;->im:D

    invoke-direct {v5, v8, v9, v10, v11}, Lcom/scaleasw/powercalc/Complex;-><init>(DD)V

    .line 322
    .restart local v5    # "result":Lcom/scaleasw/powercalc/Complex;
    goto/16 :goto_0

    .line 339
    :cond_13
    new-instance v1, Lcom/scaleasw/powercalc/FormalElement;

    sget-object v8, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->NUMBER:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-direct {v1, v8}, Lcom/scaleasw/powercalc/FormalElement;-><init>(Lcom/scaleasw/powercalc/FormalElement$FormalElementType;)V

    .line 340
    .local v1, "element":Lcom/scaleasw/powercalc/FormalElement;
    invoke-virtual {v1, v5}, Lcom/scaleasw/powercalc/FormalElement;->setValue(Lcom/scaleasw/powercalc/Complex;)V

    .line 341
    iget-object v8, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v8, v8, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    invoke-interface {v8, p1, v1}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object;

    .line 342
    iget-object v8, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v8, v8, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    add-int/lit8 v9, p1, 0x1

    invoke-interface {v8, v9}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    goto/16 :goto_1

    .line 160
    :pswitch_data_0
    .packed-switch 0x5
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
        :pswitch_4
        :pswitch_5
        :pswitch_6
        :pswitch_7
        :pswitch_8
        :pswitch_9
        :pswitch_a
        :pswitch_b
        :pswitch_c
        :pswitch_d
        :pswitch_e
        :pswitch_f
        :pswitch_10
        :pswitch_11
        :pswitch_12
        :pswitch_13
        :pswitch_14
        :pswitch_15
        :pswitch_16
        :pswitch_17
        :pswitch_18
        :pswitch_19
    .end packed-switch
.end method


# virtual methods
.method public denormalizeAngle(D)D
    .locals 3
    .param p1, "arg"    # D

    .prologue
    .line 75
    sget-object v0, Lcom/scaleasw/powercalc/FunctionSolver$1;->$SwitchMap$com$scaleasw$powercalc$Solver$AngleMode:[I

    iget-object v1, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v1, v1, Lcom/scaleasw/powercalc/Solver;->angleMode:Lcom/scaleasw/powercalc/Solver$AngleMode;

    invoke-virtual {v1}, Lcom/scaleasw/powercalc/Solver$AngleMode;->ordinal()I

    move-result v1

    aget v0, v0, v1

    packed-switch v0, :pswitch_data_0

    .line 82
    .end local p1    # "arg":D
    :goto_0
    return-wide p1

    .line 78
    .restart local p1    # "arg":D
    :pswitch_0
    invoke-static {p1, p2}, Lcom/scaleasw/powercalc/FunctionSolver;->degToRad(D)D

    move-result-wide p1

    goto :goto_0

    .line 80
    :pswitch_1
    invoke-static {p1, p2}, Lcom/scaleasw/powercalc/FunctionSolver;->gradToRad(D)D

    move-result-wide p1

    goto :goto_0

    .line 75
    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method

.method public denormalizeAngleComplex(Lcom/scaleasw/powercalc/Complex;)Lcom/scaleasw/powercalc/Complex;
    .locals 6
    .param p1, "arg"    # Lcom/scaleasw/powercalc/Complex;

    .prologue
    .line 89
    new-instance v0, Lcom/scaleasw/powercalc/Complex;

    invoke-direct {v0, p1}, Lcom/scaleasw/powercalc/Complex;-><init>(Lcom/scaleasw/powercalc/Complex;)V

    .line 90
    .local v0, "result":Lcom/scaleasw/powercalc/Complex;
    iget-wide v2, p1, Lcom/scaleasw/powercalc/Complex;->im:D

    const-wide/16 v4, 0x0

    cmpl-double v1, v2, v4

    if-nez v1, :cond_0

    iget-wide v2, p1, Lcom/scaleasw/powercalc/Complex;->re:D

    invoke-virtual {p0, v2, v3}, Lcom/scaleasw/powercalc/FunctionSolver;->denormalizeAngle(D)D

    move-result-wide v2

    iput-wide v2, v0, Lcom/scaleasw/powercalc/Complex;->re:D

    .line 91
    :cond_0
    return-object v0
.end method

.method public normalizeAngle(D)D
    .locals 3
    .param p1, "arg"    # D

    .prologue
    .line 53
    sget-object v0, Lcom/scaleasw/powercalc/FunctionSolver$1;->$SwitchMap$com$scaleasw$powercalc$Solver$AngleMode:[I

    iget-object v1, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v1, v1, Lcom/scaleasw/powercalc/Solver;->angleMode:Lcom/scaleasw/powercalc/Solver$AngleMode;

    invoke-virtual {v1}, Lcom/scaleasw/powercalc/Solver$AngleMode;->ordinal()I

    move-result v1

    aget v0, v0, v1

    packed-switch v0, :pswitch_data_0

    .line 60
    .end local p1    # "arg":D
    :goto_0
    return-wide p1

    .line 56
    .restart local p1    # "arg":D
    :pswitch_0
    invoke-static {p1, p2}, Lcom/scaleasw/powercalc/FunctionSolver;->radToDeg(D)D

    move-result-wide p1

    goto :goto_0

    .line 58
    :pswitch_1
    invoke-static {p1, p2}, Lcom/scaleasw/powercalc/FunctionSolver;->radToGrad(D)D

    move-result-wide p1

    goto :goto_0

    .line 53
    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method

.method public normalizeAngleComplex(Lcom/scaleasw/powercalc/Complex;)Lcom/scaleasw/powercalc/Complex;
    .locals 6
    .param p1, "arg"    # Lcom/scaleasw/powercalc/Complex;

    .prologue
    .line 67
    new-instance v0, Lcom/scaleasw/powercalc/Complex;

    invoke-direct {v0, p1}, Lcom/scaleasw/powercalc/Complex;-><init>(Lcom/scaleasw/powercalc/Complex;)V

    .line 68
    .local v0, "result":Lcom/scaleasw/powercalc/Complex;
    iget-wide v2, p1, Lcom/scaleasw/powercalc/Complex;->im:D

    const-wide/16 v4, 0x0

    cmpl-double v1, v2, v4

    if-nez v1, :cond_0

    iget-wide v2, p1, Lcom/scaleasw/powercalc/Complex;->re:D

    invoke-virtual {p0, v2, v3}, Lcom/scaleasw/powercalc/FunctionSolver;->normalizeAngle(D)D

    move-result-wide v2

    iput-wide v2, v0, Lcom/scaleasw/powercalc/Complex;->re:D

    .line 69
    :cond_0
    return-object v0
.end method

.method public solveAction(I)Lcom/scaleasw/powercalc/Solver$Error;
    .locals 8
    .param p1, "index"    # I

    .prologue
    const/4 v5, 0x1

    .line 594
    sget-object v1, Lcom/scaleasw/powercalc/Solver$Error;->NONE:Lcom/scaleasw/powercalc/Solver$Error;

    .line 596
    .local v1, "lastError":Lcom/scaleasw/powercalc/Solver$Error;
    if-nez p1, :cond_0

    const/4 v2, 0x0

    .line 598
    .local v2, "previous":Lcom/scaleasw/powercalc/FormalElement;
    :goto_0
    iget-object v3, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    invoke-interface {v3, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/scaleasw/powercalc/FormalElement;

    .line 600
    .local v0, "current":Lcom/scaleasw/powercalc/FormalElement;
    sget-object v3, Lcom/scaleasw/powercalc/FunctionSolver$1;->$SwitchMap$com$scaleasw$powercalc$Element:[I

    iget-object v4, v0, Lcom/scaleasw/powercalc/FormalElement;->element:Lcom/scaleasw/powercalc/Element;

    invoke-virtual {v4}, Lcom/scaleasw/powercalc/Element;->ordinal()I

    move-result v4

    aget v3, v3, v4

    packed-switch v3, :pswitch_data_0

    .line 651
    :goto_1
    return-object v1

    .line 597
    .end local v0    # "current":Lcom/scaleasw/powercalc/FormalElement;
    .end local v2    # "previous":Lcom/scaleasw/powercalc/FormalElement;
    :cond_0
    iget-object v3, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    add-int/lit8 v4, p1, -0x1

    invoke-interface {v3, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/scaleasw/powercalc/FormalElement;

    .restart local v2    # "previous":Lcom/scaleasw/powercalc/FormalElement;
    goto :goto_0

    .line 603
    .restart local v0    # "current":Lcom/scaleasw/powercalc/FormalElement;
    :pswitch_0
    iget-object v3, v2, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    sget-object v4, Lcom/scaleasw/powercalc/Complex$Format;->POLAR:Lcom/scaleasw/powercalc/Complex$Format;

    iput-object v4, v3, Lcom/scaleasw/powercalc/Complex;->format:Lcom/scaleasw/powercalc/Complex$Format;

    .line 604
    iget-object v3, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    invoke-interface {v3, p1}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    goto :goto_1

    .line 607
    :pswitch_1
    iget-object v3, v2, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    sget-object v4, Lcom/scaleasw/powercalc/Complex$Format;->ORTHO:Lcom/scaleasw/powercalc/Complex$Format;

    iput-object v4, v3, Lcom/scaleasw/powercalc/Complex;->format:Lcom/scaleasw/powercalc/Complex$Format;

    .line 608
    iget-object v3, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    invoke-interface {v3, p1}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    goto :goto_1

    .line 611
    :pswitch_2
    iget-object v3, v2, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    iget-wide v4, v3, Lcom/scaleasw/powercalc/Complex;->im:D

    const-wide/16 v6, 0x0

    cmpl-double v3, v4, v6

    if-eqz v3, :cond_1

    .line 612
    sget-object v1, Lcom/scaleasw/powercalc/Solver$Error;->SOLVE_IMAGINARY:Lcom/scaleasw/powercalc/Solver$Error;

    .line 613
    iget-object v3, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    iput-object v4, v3, Lcom/scaleasw/powercalc/Solver;->lastErrorIndex:Ljava/lang/Integer;

    goto :goto_1

    .line 616
    :cond_1
    iget-object v3, v2, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    sget-object v4, Lcom/scaleasw/powercalc/Complex$Format;->DMS:Lcom/scaleasw/powercalc/Complex$Format;

    iput-object v4, v3, Lcom/scaleasw/powercalc/Complex;->format:Lcom/scaleasw/powercalc/Complex$Format;

    .line 617
    iget-object v3, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    invoke-interface {v3, p1}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    goto :goto_1

    .line 620
    :pswitch_3
    iget-object v3, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Solver;->calcMode:Lcom/scaleasw/powercalc/Solver$CalcMode;

    sget-object v4, Lcom/scaleasw/powercalc/Solver$CalcMode;->MODE_FLOAT:Lcom/scaleasw/powercalc/Solver$CalcMode;

    if-ne v3, v4, :cond_2

    iget-object v3, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iput-boolean v5, v3, Lcom/scaleasw/powercalc/Solver;->modeChange:Z

    .line 621
    :cond_2
    iget-object v3, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    sget-object v4, Lcom/scaleasw/powercalc/Solver$CalcMode;->MODE_HEX:Lcom/scaleasw/powercalc/Solver$CalcMode;

    iput-object v4, v3, Lcom/scaleasw/powercalc/Solver;->calcMode:Lcom/scaleasw/powercalc/Solver$CalcMode;

    .line 622
    iget-object v3, v2, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    iget-object v4, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget v4, v4, Lcom/scaleasw/powercalc/Solver;->calcBits:I

    invoke-virtual {v3, v4}, Lcom/scaleasw/powercalc/Complex;->toRadix(I)V

    .line 623
    iget-object v3, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    invoke-interface {v3, p1}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    goto :goto_1

    .line 626
    :pswitch_4
    iget-object v3, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Solver;->calcMode:Lcom/scaleasw/powercalc/Solver$CalcMode;

    sget-object v4, Lcom/scaleasw/powercalc/Solver$CalcMode;->MODE_FLOAT:Lcom/scaleasw/powercalc/Solver$CalcMode;

    if-ne v3, v4, :cond_3

    iget-object v3, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iput-boolean v5, v3, Lcom/scaleasw/powercalc/Solver;->modeChange:Z

    .line 627
    :cond_3
    iget-object v3, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    sget-object v4, Lcom/scaleasw/powercalc/Solver$CalcMode;->MODE_DEC:Lcom/scaleasw/powercalc/Solver$CalcMode;

    iput-object v4, v3, Lcom/scaleasw/powercalc/Solver;->calcMode:Lcom/scaleasw/powercalc/Solver$CalcMode;

    .line 628
    iget-object v3, v2, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    iget-object v4, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget v4, v4, Lcom/scaleasw/powercalc/Solver;->calcBits:I

    invoke-virtual {v3, v4}, Lcom/scaleasw/powercalc/Complex;->toRadix(I)V

    .line 629
    iget-object v3, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    invoke-interface {v3, p1}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    goto/16 :goto_1

    .line 632
    :pswitch_5
    iget-object v3, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Solver;->calcMode:Lcom/scaleasw/powercalc/Solver$CalcMode;

    sget-object v4, Lcom/scaleasw/powercalc/Solver$CalcMode;->MODE_FLOAT:Lcom/scaleasw/powercalc/Solver$CalcMode;

    if-ne v3, v4, :cond_4

    iget-object v3, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iput-boolean v5, v3, Lcom/scaleasw/powercalc/Solver;->modeChange:Z

    .line 633
    :cond_4
    iget-object v3, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    sget-object v4, Lcom/scaleasw/powercalc/Solver$CalcMode;->MODE_OCT:Lcom/scaleasw/powercalc/Solver$CalcMode;

    iput-object v4, v3, Lcom/scaleasw/powercalc/Solver;->calcMode:Lcom/scaleasw/powercalc/Solver$CalcMode;

    .line 634
    iget-object v3, v2, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    iget-object v4, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget v4, v4, Lcom/scaleasw/powercalc/Solver;->calcBits:I

    invoke-virtual {v3, v4}, Lcom/scaleasw/powercalc/Complex;->toRadix(I)V

    .line 635
    iget-object v3, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    invoke-interface {v3, p1}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    goto/16 :goto_1

    .line 638
    :pswitch_6
    iget-object v3, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Solver;->calcMode:Lcom/scaleasw/powercalc/Solver$CalcMode;

    sget-object v4, Lcom/scaleasw/powercalc/Solver$CalcMode;->MODE_FLOAT:Lcom/scaleasw/powercalc/Solver$CalcMode;

    if-ne v3, v4, :cond_5

    iget-object v3, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iput-boolean v5, v3, Lcom/scaleasw/powercalc/Solver;->modeChange:Z

    .line 639
    :cond_5
    iget-object v3, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    sget-object v4, Lcom/scaleasw/powercalc/Solver$CalcMode;->MODE_BIN:Lcom/scaleasw/powercalc/Solver$CalcMode;

    iput-object v4, v3, Lcom/scaleasw/powercalc/Solver;->calcMode:Lcom/scaleasw/powercalc/Solver$CalcMode;

    .line 640
    iget-object v3, v2, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    iget-object v4, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget v4, v4, Lcom/scaleasw/powercalc/Solver;->calcBits:I

    invoke-virtual {v3, v4}, Lcom/scaleasw/powercalc/Complex;->toRadix(I)V

    .line 641
    iget-object v3, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    invoke-interface {v3, p1}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    goto/16 :goto_1

    .line 644
    :pswitch_7
    iget-object v3, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Solver;->calcMode:Lcom/scaleasw/powercalc/Solver$CalcMode;

    sget-object v4, Lcom/scaleasw/powercalc/Solver$CalcMode;->MODE_FLOAT:Lcom/scaleasw/powercalc/Solver$CalcMode;

    if-eq v3, v4, :cond_6

    iget-object v3, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iput-boolean v5, v3, Lcom/scaleasw/powercalc/Solver;->modeChange:Z

    .line 645
    :cond_6
    iget-object v3, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    sget-object v4, Lcom/scaleasw/powercalc/Solver$CalcMode;->MODE_FLOAT:Lcom/scaleasw/powercalc/Solver$CalcMode;

    iput-object v4, v3, Lcom/scaleasw/powercalc/Solver;->calcMode:Lcom/scaleasw/powercalc/Solver$CalcMode;

    .line 646
    iget-object v3, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    invoke-interface {v3, p1}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    goto/16 :goto_1

    .line 600
    :pswitch_data_0
    .packed-switch 0x2c
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
        :pswitch_4
        :pswitch_5
        :pswitch_6
        :pswitch_7
    .end packed-switch
.end method

.method public solveFunction(I)Lcom/scaleasw/powercalc/Solver$Error;
    .locals 6
    .param p1, "index"    # I

    .prologue
    .line 423
    sget-object v1, Lcom/scaleasw/powercalc/Solver$Error;->NONE:Lcom/scaleasw/powercalc/Solver$Error;

    .line 425
    .local v1, "lastError":Lcom/scaleasw/powercalc/Solver$Error;
    if-nez p1, :cond_1

    const/4 v3, 0x0

    .line 427
    .local v3, "previous":Lcom/scaleasw/powercalc/FormalElement;
    :goto_0
    iget-object v4, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v4, v4, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    invoke-interface {v4, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/scaleasw/powercalc/FormalElement;

    .line 428
    .local v0, "current":Lcom/scaleasw/powercalc/FormalElement;
    iget-object v4, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v4, v4, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    invoke-interface {v4}, Ljava/util/List;->size()I

    move-result v4

    add-int/lit8 v4, v4, -0x1

    if-ne p1, v4, :cond_2

    const/4 v2, 0x0

    .line 431
    .local v2, "next":Lcom/scaleasw/powercalc/FormalElement;
    :goto_1
    sget-object v4, Lcom/scaleasw/powercalc/FunctionSolver$1;->$SwitchMap$com$scaleasw$powercalc$FormalElement$FormalElementType:[I

    iget-object v5, v0, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-virtual {v5}, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->ordinal()I

    move-result v5

    aget v4, v4, v5

    packed-switch v4, :pswitch_data_0

    .line 475
    sget-object v1, Lcom/scaleasw/powercalc/Solver$Error;->SYNTAX_INTERNAL_FSOLVER:Lcom/scaleasw/powercalc/Solver$Error;

    .line 478
    :cond_0
    :goto_2
    return-object v1

    .line 426
    .end local v0    # "current":Lcom/scaleasw/powercalc/FormalElement;
    .end local v2    # "next":Lcom/scaleasw/powercalc/FormalElement;
    .end local v3    # "previous":Lcom/scaleasw/powercalc/FormalElement;
    :cond_1
    iget-object v4, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v4, v4, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    add-int/lit8 v5, p1, -0x1

    invoke-interface {v4, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/scaleasw/powercalc/FormalElement;

    .restart local v3    # "previous":Lcom/scaleasw/powercalc/FormalElement;
    goto :goto_0

    .line 429
    .restart local v0    # "current":Lcom/scaleasw/powercalc/FormalElement;
    :cond_2
    iget-object v4, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v4, v4, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    add-int/lit8 v5, p1, 0x1

    invoke-interface {v4, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/scaleasw/powercalc/FormalElement;

    .restart local v2    # "next":Lcom/scaleasw/powercalc/FormalElement;
    goto :goto_1

    .line 434
    :pswitch_0
    iget-object v4, v3, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    sget-object v5, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->NUMBER:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    if-eq v4, v5, :cond_3

    .line 435
    sget-object v1, Lcom/scaleasw/powercalc/Solver$Error;->SYNTAX_INTERNAL_FSOLVER:Lcom/scaleasw/powercalc/Solver$Error;

    goto :goto_2

    .line 438
    :cond_3
    invoke-direct {p0, p1}, Lcom/scaleasw/powercalc/FunctionSolver;->solveFunctionAF(I)Lcom/scaleasw/powercalc/Solver$Error;

    move-result-object v1

    .line 440
    goto :goto_2

    .line 442
    :pswitch_1
    iget-object v4, v2, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    sget-object v5, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->FUNCTION_FA:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    if-ne v4, v5, :cond_4

    .line 443
    add-int/lit8 v4, p1, 0x1

    invoke-virtual {p0, v4}, Lcom/scaleasw/powercalc/FunctionSolver;->solveFunction(I)Lcom/scaleasw/powercalc/Solver$Error;

    move-result-object v1

    .line 444
    sget-object v4, Lcom/scaleasw/powercalc/Solver$Error;->NONE:Lcom/scaleasw/powercalc/Solver$Error;

    if-ne v1, v4, :cond_0

    .line 445
    invoke-direct {p0, p1}, Lcom/scaleasw/powercalc/FunctionSolver;->solveFunctionFA(I)Lcom/scaleasw/powercalc/Solver$Error;

    move-result-object v1

    goto :goto_2

    .line 448
    :cond_4
    iget-object v4, v2, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    sget-object v5, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->NUMBER:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    if-ne v4, v5, :cond_5

    .line 449
    invoke-direct {p0, p1}, Lcom/scaleasw/powercalc/FunctionSolver;->solveFunctionFA(I)Lcom/scaleasw/powercalc/Solver$Error;

    move-result-object v1

    goto :goto_2

    .line 452
    :cond_5
    sget-object v1, Lcom/scaleasw/powercalc/Solver$Error;->SYNTAX_INTERNAL_FSOLVER:Lcom/scaleasw/powercalc/Solver$Error;

    .line 454
    goto :goto_2

    .line 456
    :pswitch_2
    iget-object v4, v3, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    sget-object v5, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->NUMBER:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    if-eq v4, v5, :cond_6

    .line 457
    sget-object v1, Lcom/scaleasw/powercalc/Solver$Error;->SYNTAX_INTERNAL_FSOLVER:Lcom/scaleasw/powercalc/Solver$Error;

    goto :goto_2

    .line 460
    :cond_6
    iget-object v4, v2, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    sget-object v5, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->FUNCTION_FA:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    if-ne v4, v5, :cond_7

    .line 461
    add-int/lit8 v4, p1, 0x1

    invoke-virtual {p0, v4}, Lcom/scaleasw/powercalc/FunctionSolver;->solveFunction(I)Lcom/scaleasw/powercalc/Solver$Error;

    move-result-object v1

    .line 462
    sget-object v4, Lcom/scaleasw/powercalc/Solver$Error;->NONE:Lcom/scaleasw/powercalc/Solver$Error;

    if-ne v1, v4, :cond_0

    .line 463
    invoke-direct {p0, p1}, Lcom/scaleasw/powercalc/FunctionSolver;->solveFunctionAFA(I)Lcom/scaleasw/powercalc/Solver$Error;

    move-result-object v1

    goto :goto_2

    .line 466
    :cond_7
    iget-object v4, v2, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    sget-object v5, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->NUMBER:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    if-ne v4, v5, :cond_8

    .line 467
    invoke-direct {p0, p1}, Lcom/scaleasw/powercalc/FunctionSolver;->solveFunctionAFA(I)Lcom/scaleasw/powercalc/Solver$Error;

    move-result-object v1

    goto :goto_2

    .line 470
    :cond_8
    sget-object v1, Lcom/scaleasw/powercalc/Solver$Error;->SYNTAX_INTERNAL_FSOLVER:Lcom/scaleasw/powercalc/Solver$Error;

    .line 473
    goto :goto_2

    .line 431
    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
        :pswitch_2
    .end packed-switch
.end method

.method public solveOperator(I)Lcom/scaleasw/powercalc/Solver$Error;
    .locals 22
    .param p1, "index"    # I

    .prologue
    .line 659
    new-instance v13, Lcom/scaleasw/powercalc/Complex;

    const-wide/16 v18, 0x0

    const-wide/16 v20, 0x0

    move-wide/from16 v0, v18

    move-wide/from16 v2, v20

    invoke-direct {v13, v0, v1, v2, v3}, Lcom/scaleasw/powercalc/Complex;-><init>(DD)V

    .line 661
    .local v13, "value":Lcom/scaleasw/powercalc/Complex;
    if-nez p1, :cond_0

    sget-object v18, Lcom/scaleasw/powercalc/Solver$Error;->SYNTAX_INTERNAL_FSOLVER:Lcom/scaleasw/powercalc/Solver$Error;

    .line 807
    :goto_0
    return-object v18

    .line 662
    :cond_0
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    move-object/from16 v18, v0

    move-object/from16 v0, v18

    iget-object v0, v0, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    move-object/from16 v18, v0

    add-int/lit8 v19, p1, -0x1

    invoke-interface/range {v18 .. v19}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v12

    check-cast v12, Lcom/scaleasw/powercalc/FormalElement;

    .line 663
    .local v12, "previous":Lcom/scaleasw/powercalc/FormalElement;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    move-object/from16 v18, v0

    move-object/from16 v0, v18

    iget-object v0, v0, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    move-object/from16 v18, v0

    move-object/from16 v0, v18

    move/from16 v1, p1

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Lcom/scaleasw/powercalc/FormalElement;

    .line 664
    .local v6, "current":Lcom/scaleasw/powercalc/FormalElement;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    move-object/from16 v18, v0

    move-object/from16 v0, v18

    iget-object v0, v0, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    move-object/from16 v18, v0

    invoke-interface/range {v18 .. v18}, Ljava/util/List;->size()I

    move-result v18

    add-int/lit8 v18, v18, -0x1

    move/from16 v0, p1

    move/from16 v1, v18

    if-ne v0, v1, :cond_1

    sget-object v18, Lcom/scaleasw/powercalc/Solver$Error;->SYNTAX_INTERNAL_FSOLVER:Lcom/scaleasw/powercalc/Solver$Error;

    goto :goto_0

    .line 665
    :cond_1
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    move-object/from16 v18, v0

    move-object/from16 v0, v18

    iget-object v0, v0, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    move-object/from16 v18, v0

    add-int/lit8 v19, p1, 0x1

    invoke-interface/range {v18 .. v19}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v9

    check-cast v9, Lcom/scaleasw/powercalc/FormalElement;

    .line 667
    .local v9, "next":Lcom/scaleasw/powercalc/FormalElement;
    iget-object v0, v12, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    move-object/from16 v18, v0

    sget-object v19, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->NUMBER:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    move-object/from16 v0, v18

    move-object/from16 v1, v19

    if-eq v0, v1, :cond_2

    sget-object v18, Lcom/scaleasw/powercalc/Solver$Error;->SYNTAX_INTERNAL_FSOLVER:Lcom/scaleasw/powercalc/Solver$Error;

    goto :goto_0

    .line 668
    :cond_2
    iget-object v0, v9, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    move-object/from16 v18, v0

    sget-object v19, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->NUMBER:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    move-object/from16 v0, v18

    move-object/from16 v1, v19

    if-eq v0, v1, :cond_3

    sget-object v18, Lcom/scaleasw/powercalc/Solver$Error;->SYNTAX_INTERNAL_FSOLVER:Lcom/scaleasw/powercalc/Solver$Error;

    goto :goto_0

    .line 670
    :cond_3
    new-instance v7, Lcom/scaleasw/powercalc/FormalElement;

    sget-object v18, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->NUMBER:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    move-object/from16 v0, v18

    invoke-direct {v7, v0}, Lcom/scaleasw/powercalc/FormalElement;-><init>(Lcom/scaleasw/powercalc/FormalElement$FormalElementType;)V

    .line 671
    .local v7, "element":Lcom/scaleasw/powercalc/FormalElement;
    iget-object v0, v6, Lcom/scaleasw/powercalc/FormalElement;->element:Lcom/scaleasw/powercalc/Element;

    move-object/from16 v18, v0

    sget-object v19, Lcom/scaleasw/powercalc/Element;->OMULT:Lcom/scaleasw/powercalc/Element;

    move-object/from16 v0, v18

    move-object/from16 v1, v19

    if-ne v0, v1, :cond_6

    .line 672
    iget-object v0, v12, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v18, v0

    iget-object v0, v9, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v19, v0

    invoke-static/range {v18 .. v19}, Lcom/scaleasw/powercalc/Complex;->multiply(Lcom/scaleasw/powercalc/Complex;Lcom/scaleasw/powercalc/Complex;)Lcom/scaleasw/powercalc/Complex;

    move-result-object v13

    .line 673
    iget-object v0, v12, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v18, v0

    move-object/from16 v0, v18

    iget-wide v0, v0, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v18, v0

    iget-object v0, v9, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-wide v0, v0, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v20, v0

    mul-long v18, v18, v20

    move-wide/from16 v0, v18

    iput-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->radix:J

    .line 799
    :cond_4
    :goto_1
    invoke-virtual {v7, v13}, Lcom/scaleasw/powercalc/FormalElement;->setValue(Lcom/scaleasw/powercalc/Complex;)V

    .line 800
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    move-object/from16 v18, v0

    move-object/from16 v0, v18

    iget-object v0, v0, Lcom/scaleasw/powercalc/Solver;->calcMode:Lcom/scaleasw/powercalc/Solver$CalcMode;

    move-object/from16 v18, v0

    sget-object v19, Lcom/scaleasw/powercalc/Solver$CalcMode;->MODE_FLOAT:Lcom/scaleasw/powercalc/Solver$CalcMode;

    move-object/from16 v0, v18

    move-object/from16 v1, v19

    if-eq v0, v1, :cond_5

    .line 801
    iget-object v0, v7, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v18, v0

    iget-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v20, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    move-object/from16 v19, v0

    move-object/from16 v0, v19

    iget v0, v0, Lcom/scaleasw/powercalc/Solver;->calcBits:I

    move/from16 v19, v0

    move-object/from16 v0, v18

    move-wide/from16 v1, v20

    move/from16 v3, v19

    invoke-virtual {v0, v1, v2, v3}, Lcom/scaleasw/powercalc/Complex;->setRadix(JI)V

    .line 803
    :cond_5
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    move-object/from16 v18, v0

    move-object/from16 v0, v18

    iget-object v0, v0, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    move-object/from16 v18, v0

    add-int/lit8 v19, p1, -0x1

    move-object/from16 v0, v18

    move/from16 v1, v19

    invoke-interface {v0, v1, v7}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object;

    .line 804
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    move-object/from16 v18, v0

    move-object/from16 v0, v18

    iget-object v0, v0, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    move-object/from16 v18, v0

    move-object/from16 v0, v18

    move/from16 v1, p1

    invoke-interface {v0, v1}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    .line 805
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    move-object/from16 v18, v0

    move-object/from16 v0, v18

    iget-object v0, v0, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    move-object/from16 v18, v0

    move-object/from16 v0, v18

    move/from16 v1, p1

    invoke-interface {v0, v1}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    .line 807
    sget-object v18, Lcom/scaleasw/powercalc/Solver$Error;->NONE:Lcom/scaleasw/powercalc/Solver$Error;

    goto/16 :goto_0

    .line 677
    :cond_6
    iget-object v0, v6, Lcom/scaleasw/powercalc/FormalElement;->element:Lcom/scaleasw/powercalc/Element;

    move-object/from16 v18, v0

    sget-object v19, Lcom/scaleasw/powercalc/Element;->ODIV:Lcom/scaleasw/powercalc/Element;

    move-object/from16 v0, v18

    move-object/from16 v1, v19

    if-ne v0, v1, :cond_9

    .line 678
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    move-object/from16 v18, v0

    move-object/from16 v0, v18

    iget-object v0, v0, Lcom/scaleasw/powercalc/Solver;->calcMode:Lcom/scaleasw/powercalc/Solver$CalcMode;

    move-object/from16 v18, v0

    sget-object v19, Lcom/scaleasw/powercalc/Solver$CalcMode;->MODE_FLOAT:Lcom/scaleasw/powercalc/Solver$CalcMode;

    move-object/from16 v0, v18

    move-object/from16 v1, v19

    if-ne v0, v1, :cond_7

    .line 679
    iget-object v0, v12, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v18, v0

    iget-object v0, v9, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v19, v0

    invoke-static/range {v18 .. v19}, Lcom/scaleasw/powercalc/Complex;->divide(Lcom/scaleasw/powercalc/Complex;Lcom/scaleasw/powercalc/Complex;)Lcom/scaleasw/powercalc/Complex;

    move-result-object v13

    .line 680
    if-nez v13, :cond_4

    .line 681
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    move-object/from16 v18, v0

    invoke-static/range {p1 .. p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v19

    move-object/from16 v0, v19

    move-object/from16 v1, v18

    iput-object v0, v1, Lcom/scaleasw/powercalc/Solver;->lastErrorIndex:Ljava/lang/Integer;

    .line 682
    sget-object v18, Lcom/scaleasw/powercalc/Solver$Error;->SOLVE_DIV_ZERO:Lcom/scaleasw/powercalc/Solver$Error;

    goto/16 :goto_0

    .line 686
    :cond_7
    iget-object v0, v9, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v18, v0

    move-object/from16 v0, v18

    iget-wide v0, v0, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v18, v0

    const-wide/16 v20, 0x0

    cmp-long v18, v18, v20

    if-nez v18, :cond_8

    .line 687
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    move-object/from16 v18, v0

    invoke-static/range {p1 .. p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v19

    move-object/from16 v0, v19

    move-object/from16 v1, v18

    iput-object v0, v1, Lcom/scaleasw/powercalc/Solver;->lastErrorIndex:Ljava/lang/Integer;

    .line 688
    sget-object v18, Lcom/scaleasw/powercalc/Solver$Error;->SOLVE_DIV_ZERO:Lcom/scaleasw/powercalc/Solver$Error;

    goto/16 :goto_0

    .line 691
    :cond_8
    iget-object v0, v12, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v18, v0

    move-object/from16 v0, v18

    iget-wide v0, v0, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v18, v0

    iget-object v0, v9, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-wide v0, v0, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v20, v0

    div-long v18, v18, v20

    move-wide/from16 v0, v18

    iput-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->radix:J

    .line 692
    iget-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v18, v0

    move-wide/from16 v0, v18

    long-to-double v0, v0

    move-wide/from16 v18, v0

    move-wide/from16 v0, v18

    iput-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->re:D

    goto/16 :goto_1

    .line 703
    :cond_9
    iget-object v0, v6, Lcom/scaleasw/powercalc/FormalElement;->element:Lcom/scaleasw/powercalc/Element;

    move-object/from16 v18, v0

    sget-object v19, Lcom/scaleasw/powercalc/Element;->OMOD:Lcom/scaleasw/powercalc/Element;

    move-object/from16 v0, v18

    move-object/from16 v1, v19

    if-ne v0, v1, :cond_a

    .line 704
    iget-object v0, v12, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v18, v0

    move-object/from16 v0, v18

    iget-wide v0, v0, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v18, v0

    iget-object v0, v9, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-wide v0, v0, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v20, v0

    rem-long v18, v18, v20

    move-wide/from16 v0, v18

    iput-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->radix:J

    goto/16 :goto_1

    .line 706
    :cond_a
    iget-object v0, v6, Lcom/scaleasw/powercalc/FormalElement;->element:Lcom/scaleasw/powercalc/Element;

    move-object/from16 v18, v0

    sget-object v19, Lcom/scaleasw/powercalc/Element;->OPLUS:Lcom/scaleasw/powercalc/Element;

    move-object/from16 v0, v18

    move-object/from16 v1, v19

    if-ne v0, v1, :cond_b

    .line 707
    iget-object v0, v12, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v18, v0

    move-object/from16 v0, v18

    iget-wide v0, v0, Lcom/scaleasw/powercalc/Complex;->re:D

    move-wide/from16 v18, v0

    iget-object v0, v9, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-wide v0, v0, Lcom/scaleasw/powercalc/Complex;->re:D

    move-wide/from16 v20, v0

    add-double v18, v18, v20

    move-wide/from16 v0, v18

    iput-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->re:D

    .line 708
    iget-object v0, v12, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v18, v0

    move-object/from16 v0, v18

    iget-wide v0, v0, Lcom/scaleasw/powercalc/Complex;->im:D

    move-wide/from16 v18, v0

    iget-object v0, v9, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-wide v0, v0, Lcom/scaleasw/powercalc/Complex;->im:D

    move-wide/from16 v20, v0

    add-double v18, v18, v20

    move-wide/from16 v0, v18

    iput-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->im:D

    .line 709
    iget-object v0, v12, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v18, v0

    move-object/from16 v0, v18

    iget-wide v0, v0, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v18, v0

    iget-object v0, v9, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-wide v0, v0, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v20, v0

    add-long v18, v18, v20

    move-wide/from16 v0, v18

    iput-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->radix:J

    goto/16 :goto_1

    .line 711
    :cond_b
    iget-object v0, v6, Lcom/scaleasw/powercalc/FormalElement;->element:Lcom/scaleasw/powercalc/Element;

    move-object/from16 v18, v0

    sget-object v19, Lcom/scaleasw/powercalc/Element;->OMINUS:Lcom/scaleasw/powercalc/Element;

    move-object/from16 v0, v18

    move-object/from16 v1, v19

    if-ne v0, v1, :cond_c

    .line 712
    iget-object v0, v12, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v18, v0

    move-object/from16 v0, v18

    iget-wide v0, v0, Lcom/scaleasw/powercalc/Complex;->re:D

    move-wide/from16 v18, v0

    iget-object v0, v9, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-wide v0, v0, Lcom/scaleasw/powercalc/Complex;->re:D

    move-wide/from16 v20, v0

    sub-double v18, v18, v20

    move-wide/from16 v0, v18

    iput-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->re:D

    .line 713
    iget-object v0, v12, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v18, v0

    move-object/from16 v0, v18

    iget-wide v0, v0, Lcom/scaleasw/powercalc/Complex;->im:D

    move-wide/from16 v18, v0

    iget-object v0, v9, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-wide v0, v0, Lcom/scaleasw/powercalc/Complex;->im:D

    move-wide/from16 v20, v0

    sub-double v18, v18, v20

    move-wide/from16 v0, v18

    iput-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->im:D

    .line 714
    iget-object v0, v12, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v18, v0

    move-object/from16 v0, v18

    iget-wide v0, v0, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v18, v0

    iget-object v0, v9, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-wide v0, v0, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v20, v0

    sub-long v18, v18, v20

    move-wide/from16 v0, v18

    iput-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->radix:J

    goto/16 :goto_1

    .line 716
    :cond_c
    iget-object v0, v6, Lcom/scaleasw/powercalc/FormalElement;->element:Lcom/scaleasw/powercalc/Element;

    move-object/from16 v18, v0

    sget-object v19, Lcom/scaleasw/powercalc/Element;->OAND:Lcom/scaleasw/powercalc/Element;

    move-object/from16 v0, v18

    move-object/from16 v1, v19

    if-ne v0, v1, :cond_d

    .line 717
    iget-object v0, v12, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v18, v0

    move-object/from16 v0, v18

    iget-wide v0, v0, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v18, v0

    iget-object v0, v9, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-wide v0, v0, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v20, v0

    and-long v18, v18, v20

    move-wide/from16 v0, v18

    iput-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->radix:J

    goto/16 :goto_1

    .line 719
    :cond_d
    iget-object v0, v6, Lcom/scaleasw/powercalc/FormalElement;->element:Lcom/scaleasw/powercalc/Element;

    move-object/from16 v18, v0

    sget-object v19, Lcom/scaleasw/powercalc/Element;->OOR:Lcom/scaleasw/powercalc/Element;

    move-object/from16 v0, v18

    move-object/from16 v1, v19

    if-ne v0, v1, :cond_e

    .line 720
    iget-object v0, v12, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v18, v0

    move-object/from16 v0, v18

    iget-wide v0, v0, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v18, v0

    iget-object v0, v9, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-wide v0, v0, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v20, v0

    or-long v18, v18, v20

    move-wide/from16 v0, v18

    iput-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->radix:J

    goto/16 :goto_1

    .line 722
    :cond_e
    iget-object v0, v6, Lcom/scaleasw/powercalc/FormalElement;->element:Lcom/scaleasw/powercalc/Element;

    move-object/from16 v18, v0

    sget-object v19, Lcom/scaleasw/powercalc/Element;->OXOR:Lcom/scaleasw/powercalc/Element;

    move-object/from16 v0, v18

    move-object/from16 v1, v19

    if-ne v0, v1, :cond_f

    .line 723
    iget-object v0, v12, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v18, v0

    move-object/from16 v0, v18

    iget-wide v0, v0, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v18, v0

    iget-object v0, v9, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-wide v0, v0, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v20, v0

    xor-long v18, v18, v20

    move-wide/from16 v0, v18

    iput-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->radix:J

    goto/16 :goto_1

    .line 725
    :cond_f
    iget-object v0, v6, Lcom/scaleasw/powercalc/FormalElement;->element:Lcom/scaleasw/powercalc/Element;

    move-object/from16 v18, v0

    sget-object v19, Lcom/scaleasw/powercalc/Element;->OXNOR:Lcom/scaleasw/powercalc/Element;

    move-object/from16 v0, v18

    move-object/from16 v1, v19

    if-ne v0, v1, :cond_10

    .line 726
    iget-object v0, v12, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v18, v0

    move-object/from16 v0, v18

    iget-wide v0, v0, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v18, v0

    iget-object v0, v9, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-wide v0, v0, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v20, v0

    xor-long v18, v18, v20

    const-wide/16 v20, -0x1

    xor-long v18, v18, v20

    move-wide/from16 v0, v18

    iput-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->radix:J

    goto/16 :goto_1

    .line 728
    :cond_10
    iget-object v0, v6, Lcom/scaleasw/powercalc/FormalElement;->element:Lcom/scaleasw/powercalc/Element;

    move-object/from16 v18, v0

    sget-object v19, Lcom/scaleasw/powercalc/Element;->ONAND:Lcom/scaleasw/powercalc/Element;

    move-object/from16 v0, v18

    move-object/from16 v1, v19

    if-ne v0, v1, :cond_11

    .line 729
    iget-object v0, v12, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v18, v0

    move-object/from16 v0, v18

    iget-wide v0, v0, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v18, v0

    iget-object v0, v9, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-wide v0, v0, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v20, v0

    and-long v18, v18, v20

    const-wide/16 v20, -0x1

    xor-long v18, v18, v20

    move-wide/from16 v0, v18

    iput-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->radix:J

    goto/16 :goto_1

    .line 731
    :cond_11
    iget-object v0, v6, Lcom/scaleasw/powercalc/FormalElement;->element:Lcom/scaleasw/powercalc/Element;

    move-object/from16 v18, v0

    sget-object v19, Lcom/scaleasw/powercalc/Element;->ONOR:Lcom/scaleasw/powercalc/Element;

    move-object/from16 v0, v18

    move-object/from16 v1, v19

    if-ne v0, v1, :cond_12

    .line 732
    iget-object v0, v12, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v18, v0

    move-object/from16 v0, v18

    iget-wide v0, v0, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v18, v0

    iget-object v0, v9, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-wide v0, v0, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v20, v0

    or-long v18, v18, v20

    const-wide/16 v20, -0x1

    xor-long v18, v18, v20

    move-wide/from16 v0, v18

    iput-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->radix:J

    goto/16 :goto_1

    .line 734
    :cond_12
    iget-object v0, v6, Lcom/scaleasw/powercalc/FormalElement;->element:Lcom/scaleasw/powercalc/Element;

    move-object/from16 v18, v0

    sget-object v19, Lcom/scaleasw/powercalc/Element;->OLSL:Lcom/scaleasw/powercalc/Element;

    move-object/from16 v0, v18

    move-object/from16 v1, v19

    if-ne v0, v1, :cond_14

    .line 735
    iget-object v0, v12, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v18, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    move-object/from16 v19, v0

    move-object/from16 v0, v19

    iget v0, v0, Lcom/scaleasw/powercalc/Solver;->calcBits:I

    move/from16 v19, v0

    invoke-virtual/range {v18 .. v19}, Lcom/scaleasw/powercalc/Complex;->getMask(I)J

    move-result-wide v10

    .line 736
    .local v10, "mask":J
    iget-object v0, v12, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v18, v0

    move-object/from16 v0, v18

    iget-wide v0, v0, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v18, v0

    move-wide/from16 v0, v18

    iput-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->radix:J

    .line 737
    const/4 v8, 0x0

    .local v8, "i":I
    :goto_2
    int-to-long v0, v8

    move-wide/from16 v18, v0

    iget-object v0, v9, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-wide v0, v0, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v20, v0

    cmp-long v18, v18, v20

    if-gez v18, :cond_13

    .line 739
    iget-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v18, v0

    const/16 v20, 0x1

    shl-long v18, v18, v20

    move-wide/from16 v0, v18

    iput-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->radix:J

    .line 737
    add-int/lit8 v8, v8, 0x1

    goto :goto_2

    .line 741
    :cond_13
    iget-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v18, v0

    and-long v18, v18, v10

    move-wide/from16 v0, v18

    iput-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->radix:J

    goto/16 :goto_1

    .line 743
    .end local v8    # "i":I
    .end local v10    # "mask":J
    :cond_14
    iget-object v0, v6, Lcom/scaleasw/powercalc/FormalElement;->element:Lcom/scaleasw/powercalc/Element;

    move-object/from16 v18, v0

    sget-object v19, Lcom/scaleasw/powercalc/Element;->OLSR:Lcom/scaleasw/powercalc/Element;

    move-object/from16 v0, v18

    move-object/from16 v1, v19

    if-ne v0, v1, :cond_15

    .line 744
    iget-object v0, v12, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v18, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    move-object/from16 v19, v0

    move-object/from16 v0, v19

    iget v0, v0, Lcom/scaleasw/powercalc/Solver;->calcBits:I

    move/from16 v19, v0

    invoke-virtual/range {v18 .. v19}, Lcom/scaleasw/powercalc/Complex;->getMask(I)J

    move-result-wide v10

    .line 745
    .restart local v10    # "mask":J
    iget-object v0, v12, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v18, v0

    move-object/from16 v0, v18

    iget-wide v0, v0, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v18, v0

    and-long v18, v18, v10

    iget-object v0, v9, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-wide v0, v0, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v20, v0

    move-wide/from16 v0, v20

    long-to-int v0, v0

    move/from16 v20, v0

    ushr-long v18, v18, v20

    move-wide/from16 v0, v18

    iput-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->radix:J

    goto/16 :goto_1

    .line 747
    .end local v10    # "mask":J
    :cond_15
    iget-object v0, v6, Lcom/scaleasw/powercalc/FormalElement;->element:Lcom/scaleasw/powercalc/Element;

    move-object/from16 v18, v0

    sget-object v19, Lcom/scaleasw/powercalc/Element;->OASL:Lcom/scaleasw/powercalc/Element;

    move-object/from16 v0, v18

    move-object/from16 v1, v19

    if-ne v0, v1, :cond_17

    .line 748
    iget-object v0, v12, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v18, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    move-object/from16 v19, v0

    move-object/from16 v0, v19

    iget v0, v0, Lcom/scaleasw/powercalc/Solver;->calcBits:I

    move/from16 v19, v0

    move/from16 v0, v19

    int-to-long v0, v0

    move-wide/from16 v20, v0

    move-object/from16 v0, v18

    move-wide/from16 v1, v20

    invoke-virtual {v0, v1, v2}, Lcom/scaleasw/powercalc/Complex;->getRadixSign(J)J

    move-result-wide v14

    .line 749
    .local v14, "sign":J
    iget-object v0, v12, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v18, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    move-object/from16 v19, v0

    move-object/from16 v0, v19

    iget v0, v0, Lcom/scaleasw/powercalc/Solver;->calcBits:I

    move/from16 v19, v0

    add-int/lit8 v19, v19, -0x1

    invoke-virtual/range {v18 .. v19}, Lcom/scaleasw/powercalc/Complex;->getMask(I)J

    move-result-wide v10

    .line 750
    .restart local v10    # "mask":J
    iget-object v0, v12, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v18, v0

    move-object/from16 v0, v18

    iget-wide v0, v0, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v18, v0

    move-wide/from16 v0, v18

    iput-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->radix:J

    .line 751
    const/4 v8, 0x0

    .restart local v8    # "i":I
    :goto_3
    int-to-long v0, v8

    move-wide/from16 v18, v0

    iget-object v0, v9, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-wide v0, v0, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v20, v0

    cmp-long v18, v18, v20

    if-gez v18, :cond_16

    .line 753
    iget-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v18, v0

    const/16 v20, 0x1

    shl-long v18, v18, v20

    move-wide/from16 v0, v18

    iput-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->radix:J

    .line 751
    add-int/lit8 v8, v8, 0x1

    goto :goto_3

    .line 755
    :cond_16
    iget-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v18, v0

    and-long v18, v18, v10

    or-long v18, v18, v14

    move-wide/from16 v0, v18

    iput-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->radix:J

    goto/16 :goto_1

    .line 757
    .end local v8    # "i":I
    .end local v10    # "mask":J
    .end local v14    # "sign":J
    :cond_17
    iget-object v0, v6, Lcom/scaleasw/powercalc/FormalElement;->element:Lcom/scaleasw/powercalc/Element;

    move-object/from16 v18, v0

    sget-object v19, Lcom/scaleasw/powercalc/Element;->OASR:Lcom/scaleasw/powercalc/Element;

    move-object/from16 v0, v18

    move-object/from16 v1, v19

    if-ne v0, v1, :cond_18

    .line 758
    iget-object v0, v12, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v18, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    move-object/from16 v19, v0

    move-object/from16 v0, v19

    iget v0, v0, Lcom/scaleasw/powercalc/Solver;->calcBits:I

    move/from16 v19, v0

    move/from16 v0, v19

    int-to-long v0, v0

    move-wide/from16 v20, v0

    move-object/from16 v0, v18

    move-wide/from16 v1, v20

    invoke-virtual {v0, v1, v2}, Lcom/scaleasw/powercalc/Complex;->getRadixSign(J)J

    move-result-wide v14

    .line 759
    .restart local v14    # "sign":J
    iget-object v0, v12, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v18, v0

    move-object/from16 v0, v18

    iget-wide v0, v0, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v18, v0

    move-wide/from16 v0, v18

    iput-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->radix:J

    .line 760
    const/4 v8, 0x0

    .restart local v8    # "i":I
    :goto_4
    int-to-long v0, v8

    move-wide/from16 v18, v0

    iget-object v0, v9, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-wide v0, v0, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v20, v0

    cmp-long v18, v18, v20

    if-gez v18, :cond_4

    .line 762
    iget-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v18, v0

    const/16 v20, 0x1

    shr-long v18, v18, v20

    move-wide/from16 v0, v18

    iput-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->radix:J

    .line 763
    iget-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v18, v0

    or-long v18, v18, v14

    move-wide/from16 v0, v18

    iput-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->radix:J

    .line 760
    add-int/lit8 v8, v8, 0x1

    goto :goto_4

    .line 766
    .end local v8    # "i":I
    .end local v14    # "sign":J
    :cond_18
    iget-object v0, v6, Lcom/scaleasw/powercalc/FormalElement;->element:Lcom/scaleasw/powercalc/Element;

    move-object/from16 v18, v0

    sget-object v19, Lcom/scaleasw/powercalc/Element;->OROL:Lcom/scaleasw/powercalc/Element;

    move-object/from16 v0, v18

    move-object/from16 v1, v19

    if-ne v0, v1, :cond_1a

    .line 767
    iget-object v0, v12, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v18, v0

    move-object/from16 v0, v18

    iget-wide v0, v0, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v18, v0

    move-wide/from16 v0, v18

    iput-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->radix:J

    .line 768
    const/4 v8, 0x0

    .restart local v8    # "i":I
    :goto_5
    int-to-long v0, v8

    move-wide/from16 v18, v0

    iget-object v0, v9, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-wide v0, v0, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v20, v0

    cmp-long v18, v18, v20

    if-gez v18, :cond_4

    .line 770
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    move-object/from16 v18, v0

    move-object/from16 v0, v18

    iget v0, v0, Lcom/scaleasw/powercalc/Solver;->calcBits:I

    move/from16 v18, v0

    move/from16 v0, v18

    int-to-long v0, v0

    move-wide/from16 v18, v0

    move-wide/from16 v0, v18

    invoke-virtual {v13, v0, v1}, Lcom/scaleasw/powercalc/Complex;->getRadixSign(J)J

    move-result-wide v14

    .line 771
    .restart local v14    # "sign":J
    iget-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v18, v0

    const/16 v20, 0x1

    shl-long v18, v18, v20

    move-wide/from16 v0, v18

    iput-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->radix:J

    .line 772
    const-wide/16 v18, 0x0

    cmp-long v18, v14, v18

    if-eqz v18, :cond_19

    iget-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v18, v0

    const-wide/16 v20, 0x1

    or-long v18, v18, v20

    move-wide/from16 v0, v18

    iput-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->radix:J

    .line 768
    :cond_19
    add-int/lit8 v8, v8, 0x1

    goto :goto_5

    .line 775
    .end local v8    # "i":I
    .end local v14    # "sign":J
    :cond_1a
    iget-object v0, v6, Lcom/scaleasw/powercalc/FormalElement;->element:Lcom/scaleasw/powercalc/Element;

    move-object/from16 v18, v0

    sget-object v19, Lcom/scaleasw/powercalc/Element;->OROR:Lcom/scaleasw/powercalc/Element;

    move-object/from16 v0, v18

    move-object/from16 v1, v19

    if-ne v0, v1, :cond_1c

    .line 776
    iget-object v0, v12, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v18, v0

    move-object/from16 v0, v18

    iget-wide v0, v0, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v18, v0

    iget-object v0, v12, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v20, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    move-object/from16 v21, v0

    move-object/from16 v0, v21

    iget v0, v0, Lcom/scaleasw/powercalc/Solver;->calcBits:I

    move/from16 v21, v0

    invoke-virtual/range {v20 .. v21}, Lcom/scaleasw/powercalc/Complex;->getMask(I)J

    move-result-wide v20

    and-long v18, v18, v20

    move-wide/from16 v0, v18

    iput-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->radix:J

    .line 777
    new-instance v16, Lcom/scaleasw/powercalc/Complex;

    const-wide/16 v18, -0x1

    move-object/from16 v0, v16

    move-wide/from16 v1, v18

    invoke-direct {v0, v1, v2}, Lcom/scaleasw/powercalc/Complex;-><init>(J)V

    .line 778
    .local v16, "temp":Lcom/scaleasw/powercalc/Complex;
    const-wide/16 v18, -0x1

    move-wide/from16 v0, v18

    move-object/from16 v2, v16

    iput-wide v0, v2, Lcom/scaleasw/powercalc/Complex;->radix:J

    .line 779
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    move-object/from16 v18, v0

    move-object/from16 v0, v18

    iget v0, v0, Lcom/scaleasw/powercalc/Solver;->calcBits:I

    move/from16 v18, v0

    move/from16 v0, v18

    int-to-long v0, v0

    move-wide/from16 v18, v0

    move-object/from16 v0, v16

    move-wide/from16 v1, v18

    invoke-virtual {v0, v1, v2}, Lcom/scaleasw/powercalc/Complex;->getRadixSign(J)J

    move-result-wide v14

    .line 780
    .restart local v14    # "sign":J
    const/4 v8, 0x0

    .restart local v8    # "i":I
    :goto_6
    int-to-long v0, v8

    move-wide/from16 v18, v0

    iget-object v0, v9, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-wide v0, v0, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v20, v0

    cmp-long v18, v18, v20

    if-gez v18, :cond_4

    .line 782
    iget-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v18, v0

    const-wide/16 v20, 0x1

    and-long v4, v18, v20

    .line 783
    .local v4, "bit":J
    iget-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v18, v0

    const/16 v20, 0x1

    ushr-long v18, v18, v20

    move-wide/from16 v0, v18

    iput-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->radix:J

    .line 784
    const-wide/16 v18, 0x0

    cmp-long v18, v4, v18

    if-eqz v18, :cond_1b

    iget-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v18, v0

    or-long v18, v18, v14

    move-wide/from16 v0, v18

    iput-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->radix:J

    .line 780
    :cond_1b
    add-int/lit8 v8, v8, 0x1

    goto :goto_6

    .line 787
    .end local v4    # "bit":J
    .end local v8    # "i":I
    .end local v14    # "sign":J
    .end local v16    # "temp":Lcom/scaleasw/powercalc/Complex;
    :cond_1c
    iget-object v0, v6, Lcom/scaleasw/powercalc/FormalElement;->element:Lcom/scaleasw/powercalc/Element;

    move-object/from16 v18, v0

    sget-object v19, Lcom/scaleasw/powercalc/Element;->OREV:Lcom/scaleasw/powercalc/Element;

    move-object/from16 v0, v18

    move-object/from16 v1, v19

    if-ne v0, v1, :cond_1d

    .line 788
    const-wide/16 v18, 0x0

    move-wide/from16 v0, v18

    iput-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->radix:J

    .line 789
    iget-object v0, v12, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v18, v0

    move-object/from16 v0, v18

    iget-wide v0, v0, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v16, v0

    .line 790
    .local v16, "temp":J
    const/4 v8, 0x0

    .restart local v8    # "i":I
    :goto_7
    int-to-long v0, v8

    move-wide/from16 v18, v0

    iget-object v0, v9, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-wide v0, v0, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v20, v0

    cmp-long v18, v18, v20

    if-gez v18, :cond_4

    .line 792
    iget-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v18, v0

    const/16 v20, 0x1

    shl-long v18, v18, v20

    move-wide/from16 v0, v18

    iput-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->radix:J

    .line 793
    iget-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->radix:J

    move-wide/from16 v18, v0

    const-wide/16 v20, 0x1

    and-long v20, v20, v16

    or-long v18, v18, v20

    move-wide/from16 v0, v18

    iput-wide v0, v13, Lcom/scaleasw/powercalc/Complex;->radix:J

    .line 794
    const/16 v18, 0x1

    ushr-long v16, v16, v18

    .line 790
    add-int/lit8 v8, v8, 0x1

    goto :goto_7

    .line 797
    .end local v8    # "i":I
    .end local v16    # "temp":J
    :cond_1d
    sget-object v18, Lcom/scaleasw/powercalc/Solver$Error;->SYNTAX_INTERNAL_FSOLVER:Lcom/scaleasw/powercalc/Solver$Error;

    goto/16 :goto_0
.end method

.method public solveOperatorAction(I)Lcom/scaleasw/powercalc/Solver$Error;
    .locals 12
    .param p1, "index"    # I

    .prologue
    const-wide/16 v8, 0x0

    .line 487
    sget-object v2, Lcom/scaleasw/powercalc/Solver$Error;->NONE:Lcom/scaleasw/powercalc/Solver$Error;

    .line 489
    .local v2, "lastError":Lcom/scaleasw/powercalc/Solver$Error;
    if-nez p1, :cond_0

    const/4 v4, 0x0

    .line 491
    .local v4, "previous":Lcom/scaleasw/powercalc/FormalElement;
    :goto_0
    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, v6, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    invoke-interface {v6, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/scaleasw/powercalc/FormalElement;

    .line 492
    .local v0, "current":Lcom/scaleasw/powercalc/FormalElement;
    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, v6, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    invoke-interface {v6}, Ljava/util/List;->size()I

    move-result v6

    add-int/lit8 v6, v6, -0x1

    if-ne p1, v6, :cond_1

    const/4 v3, 0x0

    .line 495
    .local v3, "next":Lcom/scaleasw/powercalc/FormalElement;
    :goto_1
    iget-object v6, v4, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    sget-object v7, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->NUMBER:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    if-eq v6, v7, :cond_2

    .line 496
    sget-object v2, Lcom/scaleasw/powercalc/Solver$Error;->SYNTAX_INTERNAL_FSOLVER:Lcom/scaleasw/powercalc/Solver$Error;

    .line 497
    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v7

    iput-object v7, v6, Lcom/scaleasw/powercalc/Solver;->lastErrorIndex:Ljava/lang/Integer;

    :goto_2
    move-object v6, v2

    .line 587
    :goto_3
    return-object v6

    .line 490
    .end local v0    # "current":Lcom/scaleasw/powercalc/FormalElement;
    .end local v3    # "next":Lcom/scaleasw/powercalc/FormalElement;
    .end local v4    # "previous":Lcom/scaleasw/powercalc/FormalElement;
    :cond_0
    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, v6, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    add-int/lit8 v7, p1, -0x1

    invoke-interface {v6, v7}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lcom/scaleasw/powercalc/FormalElement;

    .restart local v4    # "previous":Lcom/scaleasw/powercalc/FormalElement;
    goto :goto_0

    .line 493
    .restart local v0    # "current":Lcom/scaleasw/powercalc/FormalElement;
    :cond_1
    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, v6, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    add-int/lit8 v7, p1, 0x1

    invoke-interface {v6, v7}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/scaleasw/powercalc/FormalElement;

    .restart local v3    # "next":Lcom/scaleasw/powercalc/FormalElement;
    goto :goto_1

    .line 503
    :cond_2
    sget-object v6, Lcom/scaleasw/powercalc/FunctionSolver$1;->$SwitchMap$com$scaleasw$powercalc$Element:[I

    iget-object v7, v0, Lcom/scaleasw/powercalc/FormalElement;->element:Lcom/scaleasw/powercalc/Element;

    invoke-virtual {v7}, Lcom/scaleasw/powercalc/Element;->ordinal()I

    move-result v7

    aget v6, v6, v7

    packed-switch v6, :pswitch_data_0

    .line 583
    const/4 v6, 0x0

    goto :goto_3

    .line 506
    :pswitch_0
    if-eqz v3, :cond_3

    iget-object v6, v3, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    sget-object v7, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->MEMORY:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    if-eq v6, v7, :cond_4

    .line 508
    :cond_3
    sget-object v2, Lcom/scaleasw/powercalc/Solver$Error;->SYNTAX_INTERNAL_FSOLVER:Lcom/scaleasw/powercalc/Solver$Error;

    .line 509
    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v7

    iput-object v7, v6, Lcom/scaleasw/powercalc/Solver;->lastErrorIndex:Ljava/lang/Integer;

    goto :goto_2

    .line 512
    :cond_4
    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v7, v4, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    iget-object v8, v3, Lcom/scaleasw/powercalc/FormalElement;->element:Lcom/scaleasw/powercalc/Element;

    invoke-virtual {v6, v7, v8}, Lcom/scaleasw/powercalc/Solver;->storeMemory(Lcom/scaleasw/powercalc/Complex;Lcom/scaleasw/powercalc/Element;)V

    .line 513
    new-instance v1, Lcom/scaleasw/powercalc/FormalElement;

    sget-object v6, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->NUMBER:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-direct {v1, v6}, Lcom/scaleasw/powercalc/FormalElement;-><init>(Lcom/scaleasw/powercalc/FormalElement$FormalElementType;)V

    .line 514
    .local v1, "element":Lcom/scaleasw/powercalc/FormalElement;
    iget-object v6, v4, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    invoke-virtual {v1, v6}, Lcom/scaleasw/powercalc/FormalElement;->setValue(Lcom/scaleasw/powercalc/Complex;)V

    .line 515
    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, v6, Lcom/scaleasw/powercalc/Solver;->calcMode:Lcom/scaleasw/powercalc/Solver$CalcMode;

    sget-object v7, Lcom/scaleasw/powercalc/Solver$CalcMode;->MODE_FLOAT:Lcom/scaleasw/powercalc/Solver$CalcMode;

    if-eq v6, v7, :cond_5

    iget-object v6, v1, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    iget-object v7, v4, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    iget-wide v8, v7, Lcom/scaleasw/powercalc/Complex;->radix:J

    iget-object v7, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget v7, v7, Lcom/scaleasw/powercalc/Solver;->calcBits:I

    invoke-virtual {v6, v8, v9, v7}, Lcom/scaleasw/powercalc/Complex;->setRadix(JI)V

    .line 516
    :cond_5
    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, v6, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    add-int/lit8 v7, p1, -0x1

    invoke-interface {v6, v7, v1}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object;

    .line 517
    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, v6, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    invoke-interface {v6, p1}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    .line 518
    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, v6, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    invoke-interface {v6, p1}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    goto :goto_2

    .line 521
    .end local v1    # "element":Lcom/scaleasw/powercalc/FormalElement;
    :pswitch_1
    new-instance v5, Lcom/scaleasw/powercalc/Complex;

    iget-object v6, v4, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    invoke-direct {v5, v6}, Lcom/scaleasw/powercalc/Complex;-><init>(Lcom/scaleasw/powercalc/Complex;)V

    .line 522
    .local v5, "value":Lcom/scaleasw/powercalc/Complex;
    iget-wide v6, v5, Lcom/scaleasw/powercalc/Complex;->im:D

    cmpl-double v6, v6, v8

    if-eqz v6, :cond_6

    .line 523
    sget-object v2, Lcom/scaleasw/powercalc/Solver$Error;->SOLVE_IMAGINARY:Lcom/scaleasw/powercalc/Solver$Error;

    .line 524
    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v7

    iput-object v7, v6, Lcom/scaleasw/powercalc/Solver;->lastErrorIndex:Ljava/lang/Integer;

    goto/16 :goto_2

    .line 527
    :cond_6
    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, v6, Lcom/scaleasw/powercalc/Solver;->angleMode:Lcom/scaleasw/powercalc/Solver$AngleMode;

    sget-object v7, Lcom/scaleasw/powercalc/Solver$AngleMode;->MODE_RAD:Lcom/scaleasw/powercalc/Solver$AngleMode;

    if-ne v6, v7, :cond_8

    iget-wide v6, v5, Lcom/scaleasw/powercalc/Complex;->re:D

    invoke-static {v6, v7}, Lcom/scaleasw/powercalc/FunctionSolver;->radToDeg(D)D

    move-result-wide v6

    iput-wide v6, v5, Lcom/scaleasw/powercalc/Complex;->re:D

    .line 529
    :cond_7
    :goto_4
    new-instance v1, Lcom/scaleasw/powercalc/FormalElement;

    sget-object v6, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->NUMBER:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-direct {v1, v6}, Lcom/scaleasw/powercalc/FormalElement;-><init>(Lcom/scaleasw/powercalc/FormalElement$FormalElementType;)V

    .line 530
    .restart local v1    # "element":Lcom/scaleasw/powercalc/FormalElement;
    invoke-virtual {v1, v5}, Lcom/scaleasw/powercalc/FormalElement;->setValue(Lcom/scaleasw/powercalc/Complex;)V

    .line 531
    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, v6, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    add-int/lit8 v7, p1, -0x1

    invoke-interface {v6, v7, v1}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object;

    .line 532
    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, v6, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    invoke-interface {v6, p1}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    goto/16 :goto_2

    .line 528
    .end local v1    # "element":Lcom/scaleasw/powercalc/FormalElement;
    :cond_8
    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, v6, Lcom/scaleasw/powercalc/Solver;->angleMode:Lcom/scaleasw/powercalc/Solver$AngleMode;

    sget-object v7, Lcom/scaleasw/powercalc/Solver$AngleMode;->MODE_GRAD:Lcom/scaleasw/powercalc/Solver$AngleMode;

    if-ne v6, v7, :cond_7

    iget-wide v6, v5, Lcom/scaleasw/powercalc/Complex;->re:D

    invoke-static {v6, v7}, Lcom/scaleasw/powercalc/FunctionSolver;->gradToDeg(D)D

    move-result-wide v6

    iput-wide v6, v5, Lcom/scaleasw/powercalc/Complex;->re:D

    goto :goto_4

    .line 535
    .end local v5    # "value":Lcom/scaleasw/powercalc/Complex;
    :pswitch_2
    new-instance v5, Lcom/scaleasw/powercalc/Complex;

    iget-object v6, v4, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    invoke-direct {v5, v6}, Lcom/scaleasw/powercalc/Complex;-><init>(Lcom/scaleasw/powercalc/Complex;)V

    .line 536
    .restart local v5    # "value":Lcom/scaleasw/powercalc/Complex;
    iget-wide v6, v5, Lcom/scaleasw/powercalc/Complex;->im:D

    cmpl-double v6, v6, v8

    if-eqz v6, :cond_9

    .line 537
    sget-object v2, Lcom/scaleasw/powercalc/Solver$Error;->SOLVE_IMAGINARY:Lcom/scaleasw/powercalc/Solver$Error;

    .line 538
    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v7

    iput-object v7, v6, Lcom/scaleasw/powercalc/Solver;->lastErrorIndex:Ljava/lang/Integer;

    goto/16 :goto_2

    .line 541
    :cond_9
    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, v6, Lcom/scaleasw/powercalc/Solver;->angleMode:Lcom/scaleasw/powercalc/Solver$AngleMode;

    sget-object v7, Lcom/scaleasw/powercalc/Solver$AngleMode;->MODE_DEG:Lcom/scaleasw/powercalc/Solver$AngleMode;

    if-ne v6, v7, :cond_b

    iget-wide v6, v5, Lcom/scaleasw/powercalc/Complex;->re:D

    invoke-static {v6, v7}, Lcom/scaleasw/powercalc/FunctionSolver;->degToRad(D)D

    move-result-wide v6

    iput-wide v6, v5, Lcom/scaleasw/powercalc/Complex;->re:D

    .line 543
    :cond_a
    :goto_5
    new-instance v1, Lcom/scaleasw/powercalc/FormalElement;

    sget-object v6, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->NUMBER:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-direct {v1, v6}, Lcom/scaleasw/powercalc/FormalElement;-><init>(Lcom/scaleasw/powercalc/FormalElement$FormalElementType;)V

    .line 544
    .restart local v1    # "element":Lcom/scaleasw/powercalc/FormalElement;
    invoke-virtual {v1, v5}, Lcom/scaleasw/powercalc/FormalElement;->setValue(Lcom/scaleasw/powercalc/Complex;)V

    .line 545
    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, v6, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    add-int/lit8 v7, p1, -0x1

    invoke-interface {v6, v7, v1}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object;

    .line 546
    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, v6, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    invoke-interface {v6, p1}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    goto/16 :goto_2

    .line 542
    .end local v1    # "element":Lcom/scaleasw/powercalc/FormalElement;
    :cond_b
    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, v6, Lcom/scaleasw/powercalc/Solver;->angleMode:Lcom/scaleasw/powercalc/Solver$AngleMode;

    sget-object v7, Lcom/scaleasw/powercalc/Solver$AngleMode;->MODE_GRAD:Lcom/scaleasw/powercalc/Solver$AngleMode;

    if-ne v6, v7, :cond_a

    iget-wide v6, v5, Lcom/scaleasw/powercalc/Complex;->re:D

    invoke-static {v6, v7}, Lcom/scaleasw/powercalc/FunctionSolver;->gradToRad(D)D

    move-result-wide v6

    iput-wide v6, v5, Lcom/scaleasw/powercalc/Complex;->re:D

    goto :goto_5

    .line 549
    .end local v5    # "value":Lcom/scaleasw/powercalc/Complex;
    :pswitch_3
    new-instance v5, Lcom/scaleasw/powercalc/Complex;

    iget-object v6, v4, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    invoke-direct {v5, v6}, Lcom/scaleasw/powercalc/Complex;-><init>(Lcom/scaleasw/powercalc/Complex;)V

    .line 550
    .restart local v5    # "value":Lcom/scaleasw/powercalc/Complex;
    iget-wide v6, v5, Lcom/scaleasw/powercalc/Complex;->im:D

    cmpl-double v6, v6, v8

    if-eqz v6, :cond_c

    .line 551
    sget-object v2, Lcom/scaleasw/powercalc/Solver$Error;->SOLVE_IMAGINARY:Lcom/scaleasw/powercalc/Solver$Error;

    .line 552
    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v7

    iput-object v7, v6, Lcom/scaleasw/powercalc/Solver;->lastErrorIndex:Ljava/lang/Integer;

    goto/16 :goto_2

    .line 555
    :cond_c
    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, v6, Lcom/scaleasw/powercalc/Solver;->angleMode:Lcom/scaleasw/powercalc/Solver$AngleMode;

    sget-object v7, Lcom/scaleasw/powercalc/Solver$AngleMode;->MODE_DEG:Lcom/scaleasw/powercalc/Solver$AngleMode;

    if-ne v6, v7, :cond_e

    iget-wide v6, v5, Lcom/scaleasw/powercalc/Complex;->re:D

    invoke-static {v6, v7}, Lcom/scaleasw/powercalc/FunctionSolver;->degToGrad(D)D

    move-result-wide v6

    iput-wide v6, v5, Lcom/scaleasw/powercalc/Complex;->re:D

    .line 557
    :cond_d
    :goto_6
    new-instance v1, Lcom/scaleasw/powercalc/FormalElement;

    sget-object v6, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->NUMBER:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-direct {v1, v6}, Lcom/scaleasw/powercalc/FormalElement;-><init>(Lcom/scaleasw/powercalc/FormalElement$FormalElementType;)V

    .line 558
    .restart local v1    # "element":Lcom/scaleasw/powercalc/FormalElement;
    invoke-virtual {v1, v5}, Lcom/scaleasw/powercalc/FormalElement;->setValue(Lcom/scaleasw/powercalc/Complex;)V

    .line 559
    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, v6, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    add-int/lit8 v7, p1, -0x1

    invoke-interface {v6, v7, v1}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object;

    .line 560
    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, v6, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    invoke-interface {v6, p1}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    goto/16 :goto_2

    .line 556
    .end local v1    # "element":Lcom/scaleasw/powercalc/FormalElement;
    :cond_e
    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, v6, Lcom/scaleasw/powercalc/Solver;->angleMode:Lcom/scaleasw/powercalc/Solver$AngleMode;

    sget-object v7, Lcom/scaleasw/powercalc/Solver$AngleMode;->MODE_RAD:Lcom/scaleasw/powercalc/Solver$AngleMode;

    if-ne v6, v7, :cond_d

    iget-wide v6, v5, Lcom/scaleasw/powercalc/Complex;->re:D

    invoke-static {v6, v7}, Lcom/scaleasw/powercalc/FunctionSolver;->radToGrad(D)D

    move-result-wide v6

    iput-wide v6, v5, Lcom/scaleasw/powercalc/Complex;->re:D

    goto :goto_6

    .line 563
    .end local v5    # "value":Lcom/scaleasw/powercalc/Complex;
    :pswitch_4
    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, v6, Lcom/scaleasw/powercalc/Solver;->memoryM:Lcom/scaleasw/powercalc/Complex;

    iget-wide v8, v6, Lcom/scaleasw/powercalc/Complex;->re:D

    iget-object v7, v4, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    iget-wide v10, v7, Lcom/scaleasw/powercalc/Complex;->re:D

    add-double/2addr v8, v10

    iput-wide v8, v6, Lcom/scaleasw/powercalc/Complex;->re:D

    .line 564
    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, v6, Lcom/scaleasw/powercalc/Solver;->memoryM:Lcom/scaleasw/powercalc/Complex;

    iget-wide v8, v6, Lcom/scaleasw/powercalc/Complex;->im:D

    iget-object v7, v4, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    iget-wide v10, v7, Lcom/scaleasw/powercalc/Complex;->im:D

    add-double/2addr v8, v10

    iput-wide v8, v6, Lcom/scaleasw/powercalc/Complex;->im:D

    .line 565
    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, v6, Lcom/scaleasw/powercalc/Solver;->memoryM:Lcom/scaleasw/powercalc/Complex;

    iget-wide v8, v6, Lcom/scaleasw/powercalc/Complex;->radix:J

    iget-object v7, v4, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    iget-wide v10, v7, Lcom/scaleasw/powercalc/Complex;->radix:J

    add-long/2addr v8, v10

    iput-wide v8, v6, Lcom/scaleasw/powercalc/Complex;->radix:J

    .line 566
    new-instance v1, Lcom/scaleasw/powercalc/FormalElement;

    sget-object v6, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->NUMBER:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-direct {v1, v6}, Lcom/scaleasw/powercalc/FormalElement;-><init>(Lcom/scaleasw/powercalc/FormalElement$FormalElementType;)V

    .line 568
    .restart local v1    # "element":Lcom/scaleasw/powercalc/FormalElement;
    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, v6, Lcom/scaleasw/powercalc/Solver;->memoryM:Lcom/scaleasw/powercalc/Complex;

    invoke-virtual {v1, v6}, Lcom/scaleasw/powercalc/FormalElement;->setValue(Lcom/scaleasw/powercalc/Complex;)V

    .line 569
    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, v6, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    add-int/lit8 v7, p1, -0x1

    invoke-interface {v6, v7, v1}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object;

    .line 570
    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, v6, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    invoke-interface {v6, p1}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    goto/16 :goto_2

    .line 573
    .end local v1    # "element":Lcom/scaleasw/powercalc/FormalElement;
    :pswitch_5
    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, v6, Lcom/scaleasw/powercalc/Solver;->memoryM:Lcom/scaleasw/powercalc/Complex;

    iget-wide v8, v6, Lcom/scaleasw/powercalc/Complex;->re:D

    iget-object v7, v4, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    iget-wide v10, v7, Lcom/scaleasw/powercalc/Complex;->re:D

    sub-double/2addr v8, v10

    iput-wide v8, v6, Lcom/scaleasw/powercalc/Complex;->re:D

    .line 574
    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, v6, Lcom/scaleasw/powercalc/Solver;->memoryM:Lcom/scaleasw/powercalc/Complex;

    iget-wide v8, v6, Lcom/scaleasw/powercalc/Complex;->im:D

    iget-object v7, v4, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    iget-wide v10, v7, Lcom/scaleasw/powercalc/Complex;->im:D

    sub-double/2addr v8, v10

    iput-wide v8, v6, Lcom/scaleasw/powercalc/Complex;->im:D

    .line 575
    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, v6, Lcom/scaleasw/powercalc/Solver;->memoryM:Lcom/scaleasw/powercalc/Complex;

    iget-wide v8, v6, Lcom/scaleasw/powercalc/Complex;->radix:J

    iget-object v7, v4, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    iget-wide v10, v7, Lcom/scaleasw/powercalc/Complex;->radix:J

    sub-long/2addr v8, v10

    iput-wide v8, v6, Lcom/scaleasw/powercalc/Complex;->radix:J

    .line 576
    new-instance v1, Lcom/scaleasw/powercalc/FormalElement;

    sget-object v6, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->NUMBER:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-direct {v1, v6}, Lcom/scaleasw/powercalc/FormalElement;-><init>(Lcom/scaleasw/powercalc/FormalElement$FormalElementType;)V

    .line 578
    .restart local v1    # "element":Lcom/scaleasw/powercalc/FormalElement;
    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, v6, Lcom/scaleasw/powercalc/Solver;->memoryM:Lcom/scaleasw/powercalc/Complex;

    invoke-virtual {v1, v6}, Lcom/scaleasw/powercalc/FormalElement;->setValue(Lcom/scaleasw/powercalc/Complex;)V

    .line 579
    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, v6, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    add-int/lit8 v7, p1, -0x1

    invoke-interface {v6, v7, v1}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object;

    .line 580
    iget-object v6, p0, Lcom/scaleasw/powercalc/FunctionSolver;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v6, v6, Lcom/scaleasw/powercalc/Solver;->formalLine:Ljava/util/List;

    invoke-interface {v6, p1}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    goto/16 :goto_2

    .line 503
    :pswitch_data_0
    .packed-switch 0x26
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
        :pswitch_4
        :pswitch_5
    .end packed-switch
.end method
