LunarCalendar.smali
.class public Lcom/bigkoo/pickerview/utils/LunarCalendar;
.super Ljava/lang/Object;
.source "LunarCalendar.java"
# static fields
.field private static final DAYS_BEFORE_MONTH:[I
.field private static final LUNAR_INFO:[I
.field public static final MAX_YEAR:I = 0x833
.field public static final MIN_YEAR:I = 0x76c
.field private static lunar_month_days:[I
.field private static solar_1_1:[I
# direct methods
.method static constructor <clinit>()V
.registers 2
.line 26
const/16 v0, 0xd
new-array v0, v0, [I
fill-array-data v0, :array_24
sput-object v0, Lcom/bigkoo/pickerview/utils/LunarCalendar;->DAYS_BEFORE_MONTH:[I
.line 39
const/16 v0, 0xc8
new-array v0, v0, [I
fill-array-data v0, :array_42
sput-object v0, Lcom/bigkoo/pickerview/utils/LunarCalendar;->LUNAR_INFO:[I
.line 62
const/16 v0, 0xe1
new-array v1, v0, [I
fill-array-data v1, :array_1d6
sput-object v1, Lcom/bigkoo/pickerview/utils/LunarCalendar;->solar_1_1:[I
.line 96
new-array v0, v0, [I
fill-array-data v0, :array_39c
sput-object v0, Lcom/bigkoo/pickerview/utils/LunarCalendar;->lunar_month_days:[I
return-void
nop
:array_24
.array-data 4
0x0
0x1f
0x3b
0x5a
0x78
0x97
0xb5
0xd4
0xf3
0x111
0x130
0x14e
0x16d
.end array-data
:array_42
.array-data 4
0x84b6bf
0x4ae53
0xa5748
0x5526bd
0xd2650
0xd9544
0x46aab9
0x56a4d
0x9ad42
0x24aeb6
0x4ae4a
0x6a4dbe
0xa4d52
0xd2546
0x5d52ba
0xb544e
0xd6a43
0x296d37
0x95b4b
0x749bc1
0x49754
0xa4b48
0x5b25bc
0x6a550
0x6d445
0x4adab8
0x2b64d
0x95742
0x2497b7
0x4974a
0x664b3e
0xd4a51
0xea546
0x56d4ba
0x5ad4e
0x2b644
0x393738
0x92e4b
0x7c96bf
0xc9553
0xd4a48
0x6da53b
0xb554f
0x56a45
0x4aadb9
0x25d4d
0x92d42
0x2c95b6
0xa954a
0x7b4abd
0x6ca51
0xb5546
0x555abb
0x4da4e
0xa5b43
0x352bb8
0x52b4c
0x8a953f
0xe9552
0x6aa48
0x6ad53c
0xab54f
0x4b645
0x4a5739
0xa574d
0x52642
0x3e9335
0xd9549
0x75aabe
0x56a51
0x96d46
0x54aebb
0x4ad4f
0xa4d43
0x4d26b7
0xd254b
0x8d52bf
0xb5452
0xb6a47
0x696d3c
0x95b50
0x49b45
0x4a4bb9
0xa4b4d
0xab25c2
0x6a554
0x6d449
0x6ada3d
0xab651
0x95746
0x5497bb
0x4974f
0x64b44
0x36a537
0xea54a
0x86b2bf
0x5ac53
0xab647
0x5936bc
0x92e50
0xc9645
0x4d4ab8
0xd4a4c
0xda541
0x25aab6
0x56a49
0x7aadbd
0x25d52
0x92d47
0x5c95ba
0xa954e
0xb4a43
0x4b5537
0xad54a
0x955abf
0x4ba53
0xa5b48
0x652bbc
0x52b50
0xa9345
0x474ab9
0x6aa4c
0xad541
0x24dab6
0x4b64a
0x6a573d
0xa4e51
0xd2646
0x5e933a
0xd534d
0x5aa43
0x36b537
0x96d4b
0xb4aebf
0x4ad53
0xa4d48
0x6d25bc
0xd254f
0xd5244
0x5daa38
0xb5a4c
0x56d41
0x24adb6
0x49b4a
0x7a4bbe
0xa4b51
0xaa546
0x5b52ba
0x6d24e
0xada42
0x355b37 # 4.900003E-39f
0x9374b
0x8497c1
0x49753
0x64b48
0x66a53c
0xea54f
0x6aa44
0x4ab638
0xaae4c
0x92e42
0x3c9735
0xc9649
0x7d4abd
0xd4a51
0xda545
0x55aaba
0x56a4e
0xa6d43
0x452eb7
0x52d4b
0x8a95bf
0xa9553
0xb4a47
0x6b553b
0xad54f
0x55a45
0x4a5d38
0xa5b4c
0x52b42
0x3a93b6
0x69349
0x7729bd
0x6aa51
0xad546
0x54daba
0x4b64e
0xa5743
0x452738
0xd264a
0x8e933e
0xd5252
0xdaa47
0x66b53b
0x56d4f
0x4ae45
0x4a4eb9
0xa4d4c
0xd1541
0x2d92b5
.end array-data
:array_1d6
.array-data 4
0x75f
0xec04c
0xec23f
0xec435
0xec649
0xec83e
0xeca51
0xecc46
0xece3a
0xed04d
0xed242
0xed436
0xed64a
0xed83f
0xeda53
0xedc48
0xede3d
0xee050
0xee244
0xee439
0xee64d
0xee842
0xeea36
0xeec4a
0xeee3e
0xef052
0xef246
0xef43a
0xef64e
0xef843
0xefa37
0xefc4b
0xefe41
0xf0054
0xf0248
0xf043c
0xf0650
0xf0845
0xf0a38
0xf0c4d
0xf0e42
0xf1037
0xf124a
0xf143e
0xf1651
0xf1846
0xf1a3a
0xf1c4e
0xf1e44
0xf2038
0xf224b
0xf243f
0xf2653
0xf2848
0xf2a3b
0xf2c4f
0xf2e45
0xf3039
0xf324d
0xf3442
0xf3636
0xf384a
0xf3a3d
0xf3c51
0xf3e46
0xf403b
0xf424e
0xf4443
0xf4638
0xf484c
0xf4a3f
0xf4c52
0xf4e48
0xf503c
0xf524f
0xf5445
0xf5639
0xf584d
0xf5a42
0xf5c35
0xf5e49
0xf603e
0xf6251
0xf6446
0xf663b
0xf684f
0xf6a43
0xf6c37
0xf6e4b
0xf703f
0xf7252
0xf7447
0xf763c
0xf7850
0xf7a45
0xf7c39
0xf7e4d
0xf8042
0xf8254
0xf8449
0xf863d
0xf8851
0xf8a46
0xf8c3b
0xf8e4f
0xf9044
0xf9237
0xf944a
0xf963f
0xf9853
0xf9a47
0xf9c3c
0xf9e50
0xfa045
0xfa238
0xfa44c
0xfa641
0xfa836
0xfaa49
0xfac3d
0xfae52
0xfb047
0xfb23a
0xfb44e
0xfb643
0xfb837
0xfba4a
0xfbc3f
0xfbe53
0xfc048
0xfc23c
0xfc450
0xfc645
0xfc839
0xfca4c
0xfcc41
0xfce36
0xfd04a
0xfd23d
0xfd451
0xfd646
0xfd83a
0xfda4d
0xfdc43
0xfde37
0xfe04b
0xfe23f
0xfe453
0xfe648
0xfe83c
0xfea4f
0xfec44
0xfee38
0xff04c
0xff241
0xff436
0xff64a
0xff83e
0xffa51
0xffc46
0xffe3a
0x10004e
0x100242
0x100437
0x10064b
0x100841
0x100a53
0x100c48
0x100e3c
0x10104f
0x101244
0x101438
0x10164c
0x101842
0x101a35
0x101c49
0x101e3d
0x102051
0x102245
0x10243a
0x10264e
0x102843
0x102a37
0x102c4b
0x102e3f
0x103053
0x103247
0x10343b
0x10364f
0x103845
0x103a38
0x103c4c
0x103e42
0x104036
0x104249
0x10443d
0x104651
0x104846
0x104a3a
0x104c4e
0x104e43
0x105038
0x10524a
0x10543e
0x105652
0x105847
0x105a3b
0x105c4f
0x105e45
0x106039
0x10624c
0x106441
0x106635
0x106849
0x106a3d
0x106c51
0x106e47
0x10703c
0x10724f
0x107444
0x107638
0x10784c
0x107a3f
0x107c53
0x107e48
.end array-data
:array_39c
.array-data 4
0x75f
0x1694
0x16aa
0x4ad5
0xab6
0xc4b7
0x4ae
0xa56
0xb52a
0x1d2a
0xd54
0x75aa
0x156a
0x1096d
0x95c
0x14ae
0xaa4d
0x1a4c
0x1b2a
0x8d55
0xad4
0x135a
0x495d
0x95c
0xd49b
0x149a
0x1a4a
0xbaa5
0x16a8
0x1ad4
0x52da
0x12b6
0xe937
0x92e
0x1496
0xb64b
0xd4a
0xda8
0x95b5
0x56c
0x12ae
0x492f
0x92e
0xcc96
0x1a94
0x1d4a
0xada9
0xb5a
0x56c
0x726e
0x125c
0xf92d
0x192a
0x1a94
0xdb4a
0x16aa
0xad4
0x955b
0x4ba
0x125a
0x592b
0x152a
0xf695
0xd94
0x16aa
0xaab5
0x9b4
0x14b6
0x6a57
0xa56
0x1152a
0x1d2a
0xd54
0xd5aa
0x156a
0x96c
0x94ae
0x14ae
0xa4c
0x7d26
0x1b2a
0xeb55
0xad4
0x12da
0xa95d
0x95a
0x149a
0x9a4d
0x1a4a
0x11aa5
0x16a8
0x16d4
0xd2da
0x12b6
0x936
0x9497
0x1496
0x1564b
0xd4a
0xda8
0xd5b4
0x156c
0x12ae
0xa92f
0x92e
0xc96
0x6d4a
0x1d4a
0x10d65
0xb58
0x156c
0xb26d
0x125c
0x192c
0x9a95
0x1a94
0x1b4a
0x4b55
0xad4
0xf55b
0x4ba
0x125a
0xb92b
0x152a
0x1694
0x96aa
0x15aa
0x12ab5
0x974
0x14b6
0xca57
0xa56
0x1526
0x8e95
0xd54
0x15aa
0x49b5
0x96c
0xd4ae
0x149c
0x1a4c
0xbd26
0x1aa6
0xb54
0x6d6a
0x12da
0x1695d
0x95a
0x149a
0xda4b
0x1a4a
0x1aa4
0xbb54
0x16b4
0xada
0x495b
0x936
0xf497
0x1496
0x154a
0xb6a5
0xda4
0x15b4
0x6ab6
0x126e
0x1092f
0x92e
0xc96
0xcd4a
0x1d4a
0xd64
0x956c
0x155c
0x125c
0x792e
0x192c
0xfa95
0x1a94
0x1b4a
0xab55
0xad4
0x14da
0x8a5d
0xa5a
0x1152b
0x152a
0x1694
0xd6aa
0x15aa
0xab4
0x94ba
0x14b6
0xa56
0x7527
0xd26
0xee53
0xd54
0x15aa
0xa9b5
0x96c
0x14ae
0x8a4e
0x1a4c
0x11d26
0x1aa4
0x1b54
0xcd6a
0xada
0x95c
0x949d
0x149a
0x1a2a
0x5b25
0x1aa4
0xfb52
0x16b4
0xaba
0xa95b
0x936
0x1496
0x9a4b
0x154a
0x136a5
0xda4
0x15ac
.end array-data
.end method
.method public constructor <init>()V
.registers 1
.line 12
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method private static daysInLunarMonth(II)I
.registers 4
.param p0, "year" # I
.param p1, "month" # I
.line 401
sget-object v0, Lcom/bigkoo/pickerview/utils/LunarCalendar;->LUNAR_INFO:[I
add-int/lit16 v1, p0, -0x76c
aget v0, v0, v1
const/high16 v1, 0x100000
shr-int/2addr v1, p1
and-int/2addr v0, v1
if-nez v0, :cond_f
.line 402
const/16 v0, 0x1d
return v0
.line 404
:cond_f
const/16 v0, 0x1e
return v0
.end method
.method private static daysInLunarYear(I)I
.registers 5
.param p0, "year" # I
.line 381
const/16 v0, 0x15c
.line 382
.local v0, "sum":I
invoke-static {p0}, Lcom/bigkoo/pickerview/utils/LunarCalendar;->leapMonth(I)I
move-result v1
if-eqz v1, :cond_a
.line 383
const/16 v0, 0x179
.line 385
:cond_a
sget-object v1, Lcom/bigkoo/pickerview/utils/LunarCalendar;->LUNAR_INFO:[I
add-int/lit16 v2, p0, -0x76c
aget v1, v1, v2
const v2, 0xfff80
and-int/2addr v1, v2
.line 386
.local v1, "monthInfo":I
const/high16 v2, 0x80000
.local v2, "i":I
:goto_16
const/4 v3, 0x7
if-le v2, v3, :cond_22
.line 387
and-int v3, v1, v2
if-eqz v3, :cond_1f
.line 388
add-int/lit8 v0, v0, 0x1
.line 386
:cond_1f
shr-int/lit8 v2, v2, 0x1
goto :goto_16
.line 390
:cond_22
return v0
.end method
.method public static final daysInMonth(II)I
.registers 3
.param p0, "year" # I
.param p1, "month" # I
.line 341
const/4 v0, 0x0
invoke-static {p0, p1, v0}, Lcom/bigkoo/pickerview/utils/LunarCalendar;->daysInMonth(IIZ)I
move-result v0
return v0
.end method
.method public static final daysInMonth(IIZ)I
.registers 6
.param p0, "year" # I
.param p1, "month" # I
.param p2, "leap" # Z
.line 353
invoke-static {p0}, Lcom/bigkoo/pickerview/utils/LunarCalendar;->leapMonth(I)I
move-result v0
.line 354
.local v0, "leapMonth":I
const/4 v1, 0x0
.line 357
.local v1, "offset":I
if-eqz v0, :cond_a
if-le p1, v0, :cond_a
.line 358
const/4 v1, 0x1
.line 362
:cond_a
if-nez p2, :cond_13
.line 363
add-int v2, p1, v1
invoke-static {p0, v2}, Lcom/bigkoo/pickerview/utils/LunarCalendar;->daysInLunarMonth(II)I
move-result v2
return v2
.line 366
:cond_13
if-eqz v0, :cond_1e
if-ne v0, p1, :cond_1e
.line 367
add-int/lit8 v2, p1, 0x1
invoke-static {p0, v2}, Lcom/bigkoo/pickerview/utils/LunarCalendar;->daysInLunarMonth(II)I
move-result v2
return v2
.line 371
:cond_1e
const/4 v2, 0x0
return v2
.end method
.method private static getBitInt(III)I
.registers 5
.param p0, "data" # I
.param p1, "length" # I
.param p2, "shift" # I
.line 419
const/4 v0, 0x1
shl-int v1, v0, p1
sub-int/2addr v1, v0
shl-int v0, v1, p2
and-int/2addr v0, p0
shr-int/2addr v0, p2
return v0
.end method
.method public static leapMonth(I)I
.registers 3
.param p0, "year" # I
.line 414
sget-object v0, Lcom/bigkoo/pickerview/utils/LunarCalendar;->LUNAR_INFO:[I
add-int/lit16 v1, p0, -0x76c
aget v0, v0, v1
const/high16 v1, 0xf00000
and-int/2addr v0, v1
shr-int/lit8 v0, v0, 0x14
return v0
.end method
.method public static final lunarToSolar(IIIZ)[I
.registers 14
.param p0, "year" # I
.param p1, "month" # I
.param p2, "monthDay" # I
.param p3, "isLeapMonth" # Z
.line 141
const/16 v0, 0x76c
if-lt p0, v0, :cond_e9
const/16 v0, 0x833
if-gt p0, v0, :cond_e9
const/4 v0, 0x1
if-lt p1, v0, :cond_e9
const/16 v1, 0xc
if-gt p1, v1, :cond_e9
if-lt p2, v0, :cond_e9
const/16 v1, 0x1e
if-gt p2, v1, :cond_e9
.line 150
sget-object v1, Lcom/bigkoo/pickerview/utils/LunarCalendar;->LUNAR_INFO:[I
add-int/lit16 v2, p0, -0x76c
aget v2, v1, v2
and-int/lit8 v2, v2, 0x1f
sub-int/2addr v2, v0
.line 152
.local v2, "dayOffset":I
add-int/lit16 v3, p0, -0x76c
aget v1, v1, v3
and-int/lit8 v1, v1, 0x60
shr-int/lit8 v1, v1, 0x5
const/4 v3, 0x2
if-ne v1, v3, :cond_2b
.line 153
add-int/lit8 v2, v2, 0x1f
.line 155
:cond_2b
const/4 v1, 0x1
.local v1, "i":I
:goto_2c
const/high16 v4, 0x80000
if-ge v1, p1, :cond_44
.line 156
sget-object v5, Lcom/bigkoo/pickerview/utils/LunarCalendar;->LUNAR_INFO:[I
add-int/lit16 v6, p0, -0x76c
aget v5, v5, v6
add-int/lit8 v6, v1, -0x1
shr-int/2addr v4, v6
and-int/2addr v4, v5
if-nez v4, :cond_3f
.line 157
add-int/lit8 v2, v2, 0x1d
goto :goto_41
.line 159
:cond_3f
add-int/lit8 v2, v2, 0x1e
.line 155
:goto_41
add-int/lit8 v1, v1, 0x1
goto :goto_2c
.line 162
:cond_44
add-int/2addr v2, p2
.line 163
sget-object v5, Lcom/bigkoo/pickerview/utils/LunarCalendar;->LUNAR_INFO:[I
add-int/lit16 v6, p0, -0x76c
aget v5, v5, v6
const/high16 v6, 0xf00000
and-int/2addr v5, v6
shr-int/lit8 v5, v5, 0x14
.line 166
.local v5, "leapMonth":I
if-eqz v5, :cond_69
.line 167
if-gt p1, v5, :cond_58
if-ne p1, v5, :cond_69
if-eqz p3, :cond_69
.line 168
:cond_58
sget-object v6, Lcom/bigkoo/pickerview/utils/LunarCalendar;->LUNAR_INFO:[I
add-int/lit16 v7, p0, -0x76c
aget v6, v6, v7
add-int/lit8 v7, p1, -0x1
shr-int/2addr v4, v7
and-int/2addr v4, v6
if-nez v4, :cond_67
.line 169
add-int/lit8 v2, v2, 0x1d
goto :goto_69
.line 171
:cond_67
add-int/lit8 v2, v2, 0x1e
.line 175
:cond_69
:goto_69
const/16 v4, 0x16e
if-gt v2, v4, :cond_75
rem-int/lit8 v4, p0, 0x4
if-eqz v4, :cond_80
const/16 v4, 0x16d
if-le v2, v4, :cond_80
.line 176
:cond_75
add-int/lit8 p0, p0, 0x1
.line 177
rem-int/lit8 v4, p0, 0x4
if-ne v4, v0, :cond_7e
.line 178
add-int/lit16 v2, v2, -0x16e
goto :goto_80
.line 180
:cond_7e
add-int/lit16 v2, v2, -0x16d
.line 183
:cond_80
:goto_80
const/4 v4, 0x3
new-array v4, v4, [I
.line 184
.local v4, "solarInfo":[I
const/4 v1, 0x1
:goto_84
const/16 v6, 0xd
if-ge v1, v6, :cond_e5
.line 185
sget-object v6, Lcom/bigkoo/pickerview/utils/LunarCalendar;->DAYS_BEFORE_MONTH:[I
aget v6, v6, v1
.line 186
.local v6, "iPos":I
rem-int/lit8 v7, p0, 0x4
if-nez v7, :cond_94
if-le v1, v3, :cond_94
.line 187
add-int/lit8 v6, v6, 0x1
.line 190
:cond_94
rem-int/lit8 v7, p0, 0x4
if-nez v7, :cond_a5
if-ne v1, v3, :cond_a5
add-int/lit8 v7, v6, 0x1
if-ne v7, v2, :cond_a5
.line 191
aput v1, v4, v0
.line 192
add-int/lit8 v0, v2, -0x1f
aput v0, v4, v3
.line 193
goto :goto_e5
.line 196
:cond_a5
if-lt v6, v2, :cond_e2
.line 197
aput v1, v4, v0
.line 198
sget-object v7, Lcom/bigkoo/pickerview/utils/LunarCalendar;->DAYS_BEFORE_MONTH:[I
add-int/lit8 v8, v1, -0x1
aget v6, v7, v8
.line 199
rem-int/lit8 v7, p0, 0x4
if-nez v7, :cond_b7
if-le v1, v3, :cond_b7
.line 200
add-int/lit8 v6, v6, 0x1
.line 202
:cond_b7
if-le v2, v6, :cond_be
.line 203
sub-int v0, v2, v6
aput v0, v4, v3
goto :goto_e5
.line 204
:cond_be
if-ne v2, v6, :cond_df
.line 205
rem-int/lit8 v7, p0, 0x4
if-nez v7, :cond_d3
if-ne v1, v3, :cond_d3
.line 206
sget-object v7, Lcom/bigkoo/pickerview/utils/LunarCalendar;->DAYS_BEFORE_MONTH:[I
aget v8, v7, v1
add-int/lit8 v9, v1, -0x1
aget v7, v7, v9
sub-int/2addr v8, v7
add-int/2addr v8, v0
aput v8, v4, v3
goto :goto_e5
.line 208
:cond_d3
sget-object v0, Lcom/bigkoo/pickerview/utils/LunarCalendar;->DAYS_BEFORE_MONTH:[I
aget v7, v0, v1
add-int/lit8 v8, v1, -0x1
aget v0, v0, v8
sub-int/2addr v7, v0
aput v7, v4, v3
goto :goto_e5
.line 211
:cond_df
aput v2, v4, v3
.line 212
goto :goto_e5
.line 184
.end local v6 # "iPos":I
:cond_e2
add-int/lit8 v1, v1, 0x1
goto :goto_84
.line 215
:cond_e5
:goto_e5
const/4 v0, 0x0
aput p0, v4, v0
.line 217
return-object v4
.line 143
.end local v1 # "i":I
.end local v2 # "dayOffset":I
.end local v4 # "solarInfo":[I
.end local v5 # "leapMonth":I
:cond_e9
new-instance v0, Ljava/lang/IllegalArgumentException;
const-string v1, "Illegal lunar date, must be like that:\n\tyear : 1900~2099\n\tmonth : 1~12\n\tday : 1~30"
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
goto :goto_f2
:goto_f1
throw v0
:goto_f2
goto :goto_f1
.end method
.method private static solarToInt(III)J
.registers 6
.param p0, "y" # I
.param p1, "m" # I
.param p2, "d" # I
.line 423
add-int/lit8 v0, p1, 0x9
rem-int/lit8 v0, v0, 0xc
.line 424
.end local p1 # "m":I
.local v0, "m":I
div-int/lit8 p1, v0, 0xa
sub-int/2addr p0, p1
.line 425
mul-int/lit16 p1, p0, 0x16d
div-int/lit8 v1, p0, 0x4
add-int/2addr p1, v1
div-int/lit8 v1, p0, 0x64
sub-int/2addr p1, v1
div-int/lit16 v1, p0, 0x190
add-int/2addr p1, v1
mul-int/lit16 v1, v0, 0x132
add-int/lit8 v1, v1, 0x5
div-int/lit8 v1, v1, 0xa
add-int/2addr p1, v1
add-int/lit8 v1, p2, -0x1
add-int/2addr p1, v1
int-to-long v1, p1
return-wide v1
.end method
.method public static final solarToLunar(III)[I
.registers 24
.param p0, "year" # I
.param p1, "month" # I
.param p2, "monthDay" # I
.line 221
const/4 v0, 0x4
new-array v1, v0, [I
.line 223
.local v1, "lunarDate":[I
sget-object v2, Lcom/bigkoo/pickerview/utils/LunarCalendar;->solar_1_1:[I
const/4 v3, 0x0
aget v4, v2, v3
sub-int v4, p0, v4
.line 224
.local v4, "index":I
shl-int/lit8 v5, p0, 0x9
shl-int/lit8 v6, p1, 0x5
or-int/2addr v5, v6
or-int v5, v5, p2
.line 226
.local v5, "data":I
const/4 v6, 0x0
.line 227
.local v6, "solar11":I
aget v2, v2, v4
if-le v2, v5, :cond_18
.line 228
add-int/lit8 v4, v4, -0x1
.line 230
:cond_18
sget-object v2, Lcom/bigkoo/pickerview/utils/LunarCalendar;->solar_1_1:[I
aget v2, v2, v4
.line 231
.end local v6 # "solar11":I
.local v2, "solar11":I
const/16 v6, 0xc
const/16 v7, 0x9
invoke-static {v2, v6, v7}, Lcom/bigkoo/pickerview/utils/LunarCalendar;->getBitInt(III)I
move-result v7
.line 232
.local v7, "y":I
const/4 v8, 0x5
invoke-static {v2, v0, v8}, Lcom/bigkoo/pickerview/utils/LunarCalendar;->getBitInt(III)I
move-result v9
.line 233
.local v9, "m":I
invoke-static {v2, v8, v3}, Lcom/bigkoo/pickerview/utils/LunarCalendar;->getBitInt(III)I
move-result v8
.line 234
.local v8, "d":I
invoke-static/range {p0 .. p2}, Lcom/bigkoo/pickerview/utils/LunarCalendar;->solarToInt(III)J
move-result-wide v10
.line 235
invoke-static {v7, v9, v8}, Lcom/bigkoo/pickerview/utils/LunarCalendar;->solarToInt(III)J
move-result-wide v12
sub-long/2addr v10, v12
.line 237
.local v10, "offset":J
sget-object v12, Lcom/bigkoo/pickerview/utils/LunarCalendar;->lunar_month_days:[I
aget v12, v12, v4
.line 238
.local v12, "days":I
const/16 v13, 0xd
invoke-static {v12, v0, v13}, Lcom/bigkoo/pickerview/utils/LunarCalendar;->getBitInt(III)I
move-result v0
.line 240
.local v0, "leap":I
sget-object v14, Lcom/bigkoo/pickerview/utils/LunarCalendar;->solar_1_1:[I
aget v14, v14, v3
add-int/2addr v14, v4
.line 241
.local v14, "lunarY":I
const/4 v15, 0x1
.line 242
.local v15, "lunarM":I
const/16 v16, 0x1
.line 243
.local v16, "lunarD":I
const-wide/16 v17, 0x1
add-long v10, v10, v17
.line 245
const/16 v17, 0x0
move/from16 v3, v17
.local v3, "i":I
:goto_50
const/4 v6, 0x1
if-ge v3, v13, :cond_76
.line 246
const/16 v18, 0xc
rsub-int/lit8 v13, v3, 0xc
invoke-static {v12, v6, v13}, Lcom/bigkoo/pickerview/utils/LunarCalendar;->getBitInt(III)I
move-result v13
if-ne v13, v6, :cond_60
const/16 v13, 0x1e
goto :goto_62
:cond_60
const/16 v13, 0x1d
.line 247
.local v13, "dm":I
:goto_62
move/from16 v19, v7
.end local v7 # "y":I
.local v19, "y":I
int-to-long v6, v13
cmp-long v20, v10, v6
if-lez v20, :cond_78
.line 248
add-int/lit8 v15, v15, 0x1
.line 249
int-to-long v6, v13
sub-long/2addr v10, v6
.line 245
.end local v13 # "dm":I
add-int/lit8 v3, v3, 0x1
move/from16 v7, v19
const/16 v6, 0xc
const/16 v13, 0xd
goto :goto_50
.end local v19 # "y":I
.restart local v7 # "y":I
:cond_76
move/from16 v19, v7
.line 254
.end local v3 # "i":I
.end local v7 # "y":I
.restart local v19 # "y":I
:cond_78
long-to-int v3, v10
.line 255
.end local v16 # "lunarD":I
.local v3, "lunarD":I
const/4 v6, 0x0
aput v14, v1, v6
.line 256
const/4 v6, 0x1
aput v15, v1, v6
.line 257
const/4 v7, 0x0
.line 258
.local v7, "isLeap":Z
if-eqz v0, :cond_8d
if-le v15, v0, :cond_8d
.line 259
add-int/lit8 v13, v15, -0x1
aput v13, v1, v6
.line 260
add-int/lit8 v6, v0, 0x1
if-ne v15, v6, :cond_8d
.line 261
const/4 v7, 0x1
.line 265
:cond_8d
const/4 v6, 0x2
aput v3, v1, v6
.line 266
const/4 v6, 0x3
aput v7, v1, v6
.line 268
return-object v1
.end method
.method public static final solarToLunarDeprecated(III)[I
.registers 16
.param p0, "year" # I
.param p1, "month" # I
.param p2, "monthDay" # I
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.line 283
const/4 v0, 0x4
new-array v0, v0, [I
.line 284
.local v0, "lunarDate":[I
new-instance v1, Ljava/util/GregorianCalendar;
const/4 v2, 0x0
const/16 v3, 0x76c
const/16 v4, 0x1f
invoke-direct {v1, v3, v2, v4}, Ljava/util/GregorianCalendar;-><init>(III)V
invoke-virtual {v1}, Ljava/util/GregorianCalendar;->getTime()Ljava/util/Date;
move-result-object v1
.line 285
.local v1, "baseDate":Ljava/util/Date;
new-instance v3, Ljava/util/GregorianCalendar;
add-int/lit8 v4, p1, -0x1
invoke-direct {v3, p0, v4, p2}, Ljava/util/GregorianCalendar;-><init>(III)V
invoke-virtual {v3}, Ljava/util/GregorianCalendar;->getTime()Ljava/util/Date;
move-result-object v3
.line 286
.local v3, "objDate":Ljava/util/Date;
invoke-virtual {v3}, Ljava/util/Date;->getTime()J
move-result-wide v4
invoke-virtual {v1}, Ljava/util/Date;->getTime()J
move-result-wide v6
sub-long/2addr v4, v6
const-wide/32 v6, 0x5265c00
div-long/2addr v4, v6
long-to-int v5, v4
.line 290
.local v5, "offset":I
const/4 v4, 0x0
.line 291
.local v4, "daysOfYear":I
const/16 v6, 0x76c
.local v6, "iYear":I
:goto_2d
const/16 v7, 0x833
if-gt v6, v7, :cond_3b
if-lez v5, :cond_3b
.line 292
invoke-static {v6}, Lcom/bigkoo/pickerview/utils/LunarCalendar;->daysInLunarYear(I)I
move-result v4
.line 293
sub-int/2addr v5, v4
.line 291
add-int/lit8 v6, v6, 0x1
goto :goto_2d
.line 295
:cond_3b
if-gez v5, :cond_40
.line 296
add-int/2addr v5, v4
.line 297
add-int/lit8 v6, v6, -0x1
.line 301
:cond_40
aput v6, v0, v2
.line 303
invoke-static {v6}, Lcom/bigkoo/pickerview/utils/LunarCalendar;->leapMonth(I)I
move-result v2
.line 304
.local v2, "leapMonth":I
const/4 v7, 0x0
.line 306
.local v7, "isLeap":Z
const/4 v8, 0x0
.line 307
.local v8, "daysOfMonth":I
const/4 v9, 0x1
.local v9, "iMonth":I
:goto_49
const/16 v10, 0xd
if-gt v9, v10, :cond_57
if-lez v5, :cond_57
.line 308
invoke-static {v6, v9}, Lcom/bigkoo/pickerview/utils/LunarCalendar;->daysInLunarMonth(II)I
move-result v8
.line 309
sub-int/2addr v5, v8
.line 307
add-int/lit8 v9, v9, 0x1
goto :goto_49
.line 312
:cond_57
if-eqz v2, :cond_8d
if-le v9, v2, :cond_8d
.line 313
add-int/lit8 v9, v9, -0x1
.line 314
new-instance v10, Ljava/lang/StringBuilder;
invoke-direct {v10}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v10, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v11, "-"
invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v10, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v10, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v12, "====>"
invoke-virtual {v10, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v10, v9}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v10, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v10
const-string v11, "----------->"
invoke-static {v11, v10}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
.line 315
if-ne v9, v2, :cond_8d
.line 316
const/4 v7, 0x1
.line 320
:cond_8d
if-gez v5, :cond_92
.line 321
add-int/2addr v5, v8
.line 322
add-int/lit8 v9, v9, -0x1
.line 325
:cond_92
const/4 v10, 0x1
aput v9, v0, v10
.line 326
const/4 v10, 0x2
add-int/lit8 v11, v5, 0x1
aput v11, v0, v10
.line 327
const/4 v10, 0x3
aput v7, v0, v10
.line 330
return-object v0
.end method