.method public static calculateSignalLevel(II)I
.registers 9
.parameter "rssi"
.parameter "numLevels"
.prologue
const/4 v6, 0x5
const/16 v5,[COLOR="Red"] -0x46[/COLOR] [COLOR="Blue"]#changed to -0x50[/COLOR]
const/16 v4, [COLOR="red"]-0x50[/COLOR] [COLOR="Blue"]#changed to -0x5a[/COLOR]
.line 963
const/4 v1, 0x0
.line 964
.local v1, level:I
const/4 v3, 0x4
if-eq p1, v3, :cond_b
if-ne p1, v6, :cond_23
.line 965
:cond_b
if-lt p0, v5, :cond_13
.line 966
const/4 v1, 0x3
.line 974
:goto_e
if-ne p1, v6, :cond_12
add-int/lit8 v1, v1, 0x1
.line 986
:cond_12
:goto_12
return v1
.line 967
:cond_13
if-ge p0, v5, :cond_19
if-lt p0, v4, :cond_19
.line 968
const/4 v1, 0x2
goto :goto_e
.line 969
:cond_19
if-ge p0, v4, :cond_21
const/16 v3, [COLOR="red"]-0x55[/COLOR] [COLOR="Blue"]#changed to -0x5f[/COLOR]
if-lt p0, v3, :cond_21
.line 970
const/4 v1, 0x1
goto :goto_e
.line 972
:cond_21
const/4 v1, 0x0
goto :goto_e
.line 976
:cond_23
const/16 v3, [COLOR="red"]-0x64[/COLOR] [COLOR="Blue"]#changed to -0x6e[/COLOR]
if-gt p0, v3, :cond_29
.line 977
const/4 v1, 0x0
goto :goto_12
.line 978
:cond_29
const/16 v3, [COLOR="red"]-0x37[/COLOR] [COLOR="Blue"]#changed to -0x41[/COLOR]
if-lt p0, v3, :cond_30
.line 979
add-int/lit8 v1, p1, -0x1
goto :goto_12
.line 981
:cond_30
const/high16 v0, 0x4234
.line 982
.local v0, inputRange:F
add-int/lit8 v3, p1, -0x1
int-to-float v2, v3
.line 983
.local v2, outputRange:F
add-int/lit8 v3, p0, 0x64
int-to-float v3, v3
mul-float/2addr v3, v2
div-float/2addr v3, v0
float-to-int v1, v3
goto :goto_12
.end method