# DoubleWheelActivity_View_DoubleWheelActivityPurchaseWindow_2006.luac
; fn @DoubleWheelActivityPurchaseWindow.lua  line 0-0 np=0 va=1 ms=3 code=55 consts=24 upvals=1 protos=14
;   K[0]='DoubleWheelActivityPurchaseWindow'
;   K[1]='setmetatable'
;   K[2]='DoubleWheelActivityBaseWindow'
;   K[3]='__index'
;   K[4]=6
;   K[5]='A'
;   K[6]=8
;   K[7]='B'
;   K[8]=10
;   K[9]='C'
;   K[10]='Init'
;   K[11]='_InitModelData'
;   K[12]='_InitView'
;   K[13]='OnDestroy'
;   K[14]='Close'
;   K[15]='_AddListeners'
;   K[16]='_LogWindowAction'
;   K[17]='_OnUpdateRewards'
;   K[18]='_UpdateRewardsIndex'
;   K[19]='_ShowTip'
;   K[20]='OnShellUpgradeInfoClicked'
;   K[21]='OnUpgradeInfoClicked'
;   K[22]='OnBtnClicked'
;   K[23]='_OnPurchaseSuccess'
;   upvals: _ENV
;   locals: mapSkinName(12-55)
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('DoubleWheelActivityBaseWindow')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('DoubleWheelActivityPurchaseWindow')] = R0
0005  GETTABUP  R0 = _ENV[K0('DoubleWheelActivityPurchaseWindow')]
0006  GETTABUP  R1 = _ENV[K0('DoubleWheelActivityPurchaseWindow')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  NEWTABLE  R0 = {} (0 items)
0009  SETTABLE  R0[K4(6)] = K5('A')
0010  SETTABLE  R0[K6(8)] = K7('B')
0011  SETTABLE  R0[K8(10)] = K9('C')
0012  GETTABUP  R1 = _ENV[K0('DoubleWheelActivityPurchaseWindow')]
0013  CLOSURE   R2 = closure proto0
0014  SETTABLE  R1[K10('Init')] = R2
0015  GETTABUP  R1 = _ENV[K0('DoubleWheelActivityPurchaseWindow')]
0016  CLOSURE   R2 = closure proto1
0017  SETTABLE  R1[K11('_InitModelData')] = R2
0018  GETTABUP  R1 = _ENV[K0('DoubleWheelActivityPurchaseWindow')]
0019  CLOSURE   R2 = closure proto2
0020  SETTABLE  R1[K12('_InitView')] = R2
0021  GETTABUP  R1 = _ENV[K0('DoubleWheelActivityPurchaseWindow')]
0022  CLOSURE   R2 = closure proto3
0023  SETTABLE  R1[K13('OnDestroy')] = R2
0024  GETTABUP  R1 = _ENV[K0('DoubleWheelActivityPurchaseWindow')]
0025  CLOSURE   R2 = closure proto4
0026  SETTABLE  R1[K14('Close')] = R2
0027  GETTABUP  R1 = _ENV[K0('DoubleWheelActivityPurchaseWindow')]
0028  CLOSURE   R2 = closure proto5
0029  SETTABLE  R1[K15('_AddListeners')] = R2
0030  GETTABUP  R1 = _ENV[K0('DoubleWheelActivityPurchaseWindow')]
0031  CLOSURE   R2 = closure proto6
0032  SETTABLE  R1[K16('_LogWindowAction')] = R2
0033  GETTABUP  R1 = _ENV[K0('DoubleWheelActivityPurchaseWindow')]
0034  CLOSURE   R2 = closure proto7
0035  SETTABLE  R1[K17('_OnUpdateRewards')] = R2
0036  GETTABUP  R1 = _ENV[K0('DoubleWheelActivityPurchaseWindow')]
0037  CLOSURE   R2 = closure proto8
0038  SETTABLE  R1[K18('_UpdateRewardsIndex')] = R2
0039  GETTABUP  R1 = _ENV[K0('DoubleWheelActivityPurchaseWindow')]
0040  CLOSURE   R2 = closure proto9
0041  SETTABLE  R1[K19('_ShowTip')] = R2
0042  GETTABUP  R1 = _ENV[K0('DoubleWheelActivityPurchaseWindow')]
0043  CLOSURE   R2 = closure proto10
0044  SETTABLE  R1[K20('OnShellUpgradeInfoClicked')] = R2
0045  GETTABUP  R1 = _ENV[K0('DoubleWheelActivityPurchaseWindow')]
0046  CLOSURE   R2 = closure proto11
0047  SETTABLE  R1[K21('OnUpgradeInfoClicked')] = R2
0048  GETTABUP  R1 = _ENV[K0('DoubleWheelActivityPurchaseWindow')]
0049  CLOSURE   R2 = closure proto12
0050  SETTABLE  R1[K22('OnBtnClicked')] = R2
0051  GETTABUP  R1 = _ENV[K0('DoubleWheelActivityPurchaseWindow')]
0052  CLOSURE   R2 = closure proto13
0053  SETTABLE  R1[K23('_OnPurchaseSuccess')] = R2
0054  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 54-58 np=6 va=0 ms=11 code=10 consts=4 upvals=1 protos=0
  ;   K[0]='m_bLastChance'
  ;   K[1]='m_closeCallback'
  ;   K[2]='DoubleWheelActivityBaseWindow'
  ;   K[3]='Init'
  ;   upvals: _ENV
  ;   locals: self(0-10), activityType(0-10), id(0-10), bAutoPop(0-10), bLastChance(0-10), closeCallback(0-10)
  0000  SETTABLE  R0[K0('m_bLastChance')] = R4
  0001  SETTABLE  R0[K1('m_closeCallback')] = R5
  0002  GETTABUP  R6 = _ENV[K2('DoubleWheelActivityBaseWindow')]
  0003  GETTABLE  R6 = R6[K3('Init')]
  0004  MOVE      R7 = R0
  0005  MOVE      R8 = R0
  0006  MOVE      R9 = R0
  0007  MOVE      R10 = R0
  0008  CALL      R6 = call(R6, 0 args, 4 rets)
  0009  RETURN    return R0..R-1
; ---------- proto1 [_InitModelData] ----------
  ; fn ?  line 61-70 np=1 va=0 ms=4 code=34 consts=19 upvals=0 protos=0
  ;   K[0]='GetModel'
  ;   K[1]='m_paidRewardsInstant'
  ;   K[2]='m_paidRewardsToSpin'
  ;   K[3]='GetPaidRewardsForPurchase'
  ;   K[4]='m_bCanUpgarde'
  ;   K[5]='CanUpgradeWheelNecessary'
  ;   K[6]='m_upgradeLevel'
  ;   K[7]='GetCurrentWheelIndex'
  ;   K[8]=1
  ;   K[9]='m_bEmpty'
  ;   K[10]='GetRewardTakenCount'
  ;   K[11]=0
  ;   K[12]='m_bSpinFinished'
  ;   K[13]='IsCurrentWheelSpinFinished'
  ;   K[14]='m_eIAPType'
  ;   K[15]='GetCurrentWheelConfig'
  ;   K[16]='GetIAPType'
  ;   K[17]='m_totalRewardCount'
  ;   K[18]='GetCurrentTotalRewardCount'
  ;   locals: self(0-34), model(2-34)
  0000  SELF      R2 = R0[K0('GetModel')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  SELF      R3 = R1[K3('GetPaidRewardsForPurchase')] (self)
  0003  CALL      R2 = call(R2, 2 args, 1 rets)
  0004  SETTABLE  R0[K2('m_paidRewardsToSpin')] = R3
  0005  SETTABLE  R0[K1('m_paidRewardsInstant')] = R2
  0006  SELF      R3 = R1[K5('CanUpgradeWheelNecessary')] (self)
  0007  CALL      R2 = call(R2, 1 args, 1 rets)
  0008  SETTABLE  R0[K4('m_bCanUpgarde')] = R2
  0009  SELF      R3 = R1[K7('GetCurrentWheelIndex')] (self)
  0010  CALL      R2 = call(R2, 1 args, 1 rets)
  0011  ADD       R2 = K8(1) add R2
  0012  SETTABLE  R0[K6('m_upgradeLevel')] = R2
  0013  SELF      R3 = R1[K10('GetRewardTakenCount')] (self)
  0014  CALL      R2 = call(R2, 1 args, 1 rets)
  0015  LE        if R1 le K11(0)   -> -129764
  0016  JMP       (jump)   -> 18
  0017  LOADBOOL  R2 = false
  0018  LOADBOOL  R2 = true
  0019  SETTABLE  R0[K9('m_bEmpty')] = R2
  0020  SELF      R3 = R1[K13('IsCurrentWheelSpinFinished')] (self)
  0021  CALL      R2 = call(R2, 1 args, 1 rets)
  0022  SETTABLE  R0[K12('m_bSpinFinished')] = R2
  0023  SELF      R3 = R0[K0('GetModel')] (self)
  0024  CALL      R2 = call(R2, 1 args, 1 rets)
  0025  SELF      R3 = R2[K15('GetCurrentWheelConfig')] (self)
  0026  CALL      R2 = call(R2, 1 args, 1 rets)
  0027  SELF      R3 = R2[K16('GetIAPType')] (self)
  0028  CALL      R2 = call(R2, 1 args, 1 rets)
  0029  SETTABLE  R0[K14('m_eIAPType')] = R2
  0030  SELF      R3 = R1[K18('GetCurrentTotalRewardCount')] (self)
  0031  CALL      R2 = call(R2, 1 args, 1 rets)
  0032  SETTABLE  R0[K17('m_totalRewardCount')] = R2
  0033  RETURN    return R0..R-1
; ---------- proto2 [_InitView] ----------
  ; fn ?  line 73-135 np=1 va=0 ms=6 code=211 consts=74 upvals=2 protos=3
  ;   K[0]='m_rewardContentInstant'
  ;   K[1]='Init'
  ;   K[2]='m_paidRewardsInstant'
  ;   K[3]='ERewardScene'
  ;   K[4]='Other'
  ;   K[5]='AddHandlerAndRecordMap'
  ;   K[6]='event'
  ;   K[7]='SimpleRewardContent'
  ;   K[8]='EventType'
  ;   K[9]='OnUpdateRewards'
  ;   K[10]='obj'
  ;   K[11]='method'
  ;   K[12]='_OnUpdateRewards'
  ;   K[13]='_UpdateRewardsIndex'
  ;   K[14]='m_rewardContentToSpin'
  ;   K[15]='m_paidRewardsToSpin'
  ;   K[16]='UIUtil'
  ;   K[17]='SetActive'
  ;   K[18]='m_upgradeGo'
  ;   K[19]='m_bCanUpgarde'
  ;   K[20]='m_bSpinFinished'
  ;   K[21]='m_buttonText'
  ;   K[22]='text'
  ;   K[23]='GM'
  ;   K[24]='InAppPurchaseModel'
  ;   K[25]='GetLocalizedPrice'
  ;   K[26]='m_eIAPType'
  ;   K[27]='m_shellUpgradeGo'
  ;   K[28]='m_shellUpgradeText'
  ;   K[29]='GameTextModel'
  ;   K[30]='GetText'
  ;   K[31]='progressConflict_desc_lv'
  ;   K[32]='m_upgradeLevel'
  ;   K[33]='m_upgradeText'
  ;   K[34]='m_bEmpty'
  ;   K[35]='m_shellGo'
  ;   K[36]='m_rewardDescGo'
  ;   K[37]='m_rewardRectTransform'
  ;   K[38]='SetParent'
  ;   K[39]='m_rewardRoot2'
  ;   K[40]='SetLocalPosition'
  ;   K[41]=0
  ;   K[42]='m_rewardLayoutGroup'
  ;   K[43]='spacing'
  ;   K[44]='Vector2'
  ;   K[45]=20
  ;   K[46]=60
  ;   K[47]='m_descText'
  ;   K[48]='doubleWheel_nobuy_hint'
  ;   K[49]='m_bLastChance'
  ;   K[50]='m_rewardGo'
  ;   K[51]='m_shellRectTransform'
  ;   K[52]='m_shellRoot2'
  ;   K[53]='doubleWheel_purchase_hint1'
  ;   K[54]='doubleWheel_purchase_hint2'
  ;   K[55]='m_shellRoot1'
  ;   K[56]='m_rewardRoot1'
  ;   K[57]='doubleWheel_buy_hint'
  ;   K[58]='m_shellSpine'
  ;   K[59]='SetSkin'
  ;   K[60]='m_totalRewardCount'
  ;   K[61]='A'
  ;   K[62]='m_bInitAnimEnd'
  ;   K[63]=false
  ;   K[64]='DOTween'
  ;   K[65]='Sequence'
  ;   K[66]='AppendInterval'
  ;   K[67]='EDurationDefine'
  ;   K[68]='TimePerFrame'
  ;   K[69]=35
  ;   K[70]='AppendCallback'
  ;   K[71]='InsertCallback'
  ;   K[72]=75
  ;   K[73]='m_initSequence'
  ;   upvals: _ENV, mapSkinName
  ;   locals: self(0-211), sequence(192-211)
  0000  GETTABLE  R1 = R0[K0('m_rewardContentInstant')]
  0001  SELF      R2 = R1[K1('Init')] (self)
  0002  GETTABLE  R3 = R0[K2('m_paidRewardsInstant')]
  0003  GETTABUP  R4 = _ENV[K3('ERewardScene')]
  0004  GETTABLE  R4 = R4[K4('Other')]
  0005  CALL      R1 = call(R1, 0 args, 3 rets)
  0006  GETTABUP  R1 = _ENV[K5('AddHandlerAndRecordMap')]
  0007  GETTABLE  R2 = R0[K0('m_rewardContentInstant')]
  0008  GETTABLE  R2 = R2[K6('event')]
  0009  GETTABUP  R3 = _ENV[K7('SimpleRewardContent')]
  0010  GETTABLE  R3 = R3[K8('EventType')]
  0011  GETTABLE  R3 = R3[K9('OnUpdateRewards')]
  0012  NEWTABLE  R4 = {} (0 items)
  0013  SETTABLE  R4[K10('obj')] = R0
  0014  GETTABLE  R5 = R0[K12('_OnUpdateRewards')]
  0015  SETTABLE  R4[K11('method')] = R5
  0016  CALL      R1 = call(R1, 0 args, 3 rets)
  0017  SELF      R2 = R0[K13('_UpdateRewardsIndex')] (self)
  0018  CALL      R1 = call(R1, 0 args, 1 rets)
  0019  GETTABLE  R1 = R0[K14('m_rewardContentToSpin')]
  0020  SELF      R2 = R1[K1('Init')] (self)
  0021  GETTABLE  R3 = R0[K15('m_paidRewardsToSpin')]
  0022  GETTABUP  R4 = _ENV[K3('ERewardScene')]
  0023  GETTABLE  R4 = R4[K4('Other')]
  0024  CALL      R1 = call(R1, 0 args, 3 rets)
  0025  GETTABUP  R1 = _ENV[K16('UIUtil')]
  0026  GETTABLE  R1 = R1[K17('SetActive')]
  0027  GETTABLE  R2 = R0[K18('m_upgradeGo')]
  0028  GETTABLE  R3 = R0[K19('m_bCanUpgarde')]
  0029  TEST      if not R3 then   -> -131041
  0030  JMP       (jump)   -> 33
  0031  GETTABLE  R3 = R0[K20('m_bSpinFinished')]
  0032  NOT       R3 = not R0
  0033  CALL      R1 = call(R1, 0 args, 2 rets)
  0034  GETTABLE  R1 = R0[K21('m_buttonText')]
  0035  GETTABUP  R2 = _ENV[K23('GM')]
  0036  GETTABLE  R2 = R2[K24('InAppPurchaseModel')]
  0037  SELF      R3 = R2[K25('GetLocalizedPrice')] (self)
  0038  GETTABLE  R4 = R0[K26('m_eIAPType')]
  0039  CALL      R2 = call(R2, 1 args, 2 rets)
  0040  SETTABLE  R1[K22('text')] = R2
  0041  GETTABUP  R1 = _ENV[K16('UIUtil')]
  0042  GETTABLE  R1 = R1[K17('SetActive')]
  0043  GETTABLE  R2 = R0[K27('m_shellUpgradeGo')]
  0044  GETTABLE  R3 = R0[K19('m_bCanUpgarde')]
  0045  TEST      if not R3 then   -> -131025
  0046  JMP       (jump)   -> 48
  0047  GETTABLE  R3 = R0[K20('m_bSpinFinished')]
  0048  CALL      R1 = call(R1, 0 args, 2 rets)
  0049  GETTABLE  R1 = R0[K28('m_shellUpgradeText')]
  0050  GETTABUP  R2 = _ENV[K23('GM')]
  0051  GETTABLE  R2 = R2[K29('GameTextModel')]
  0052  SELF      R3 = R2[K30('GetText')] (self)
  0053  LOADK     R4 = K31 'progressConflict_desc_lv'
  0054  GETTABLE  R5 = R0[K32('m_upgradeLevel')]
  0055  CALL      R2 = call(R2, 1 args, 3 rets)
  0056  SETTABLE  R1[K22('text')] = R2
  0057  GETTABLE  R1 = R0[K33('m_upgradeText')]
  0058  GETTABUP  R2 = _ENV[K23('GM')]
  0059  GETTABLE  R2 = R2[K29('GameTextModel')]
  0060  SELF      R3 = R2[K30('GetText')] (self)
  0061  LOADK     R4 = K31 'progressConflict_desc_lv'
  0062  GETTABLE  R5 = R0[K32('m_upgradeLevel')]
  0063  CALL      R2 = call(R2, 1 args, 3 rets)
  0064  SETTABLE  R1[K22('text')] = R2
  0065  GETTABLE  R1 = R0[K34('m_bEmpty')]
  0066  TEST      if not R1 then   -> -131004
  0067  JMP       (jump)   -> 104
  0068  GETTABUP  R1 = _ENV[K16('UIUtil')]
  0069  GETTABLE  R1 = R1[K17('SetActive')]
  0070  GETTABLE  R2 = R0[K35('m_shellGo')]
  0071  LOADBOOL  R3 = false
  0072  CALL      R1 = call(R1, 0 args, 2 rets)
  0073  GETTABUP  R1 = _ENV[K16('UIUtil')]
  0074  GETTABLE  R1 = R1[K17('SetActive')]
  0075  GETTABLE  R2 = R0[K36('m_rewardDescGo')]
  0076  LOADBOOL  R3 = false
  0077  CALL      R1 = call(R1, 0 args, 2 rets)
  0078  GETTABLE  R1 = R0[K37('m_rewardRectTransform')]
  0079  SELF      R2 = R1[K38('SetParent')] (self)
  0080  GETTABLE  R3 = R0[K39('m_rewardRoot2')]
  0081  LOADBOOL  R4 = false
  0082  CALL      R1 = call(R1, 0 args, 3 rets)
  0083  GETTABUP  R1 = _ENV[K16('UIUtil')]
  0084  GETTABLE  R1 = R1[K40('SetLocalPosition')]
  0085  GETTABLE  R2 = R0[K37('m_rewardRectTransform')]
  0086  LOADK     R3 = K41 0
  0087  LOADK     R4 = K41 0
  0088  LOADK     R5 = K41 0
  0089  CALL      R1 = call(R1, 0 args, 4 rets)
  0090  GETTABLE  R1 = R0[K42('m_rewardLayoutGroup')]
  0091  GETTABUP  R2 = _ENV[K44('Vector2')]
  0092  LOADK     R3 = K45 20
  0093  LOADK     R4 = K46 60
  0094  CALL      R2 = call(R2, 1 args, 2 rets)
  0095  SETTABLE  R1[K43('spacing')] = R2
  0096  GETTABLE  R1 = R0[K47('m_descText')]
  0097  GETTABUP  R2 = _ENV[K23('GM')]
  0098  GETTABLE  R2 = R2[K29('GameTextModel')]
  0099  SELF      R3 = R2[K30('GetText')] (self)
  0100  LOADK     R4 = K48 'doubleWheel_nobuy_hint'
  0101  CALL      R2 = call(R2, 1 args, 2 rets)
  0102  SETTABLE  R1[K22('text')] = R2
  0103  JMP       (jump)   -> 177
  0104  GETTABLE  R1 = R0[K20('m_bSpinFinished')]
  0105  TEST      if not R1 then   -> -130964
  0106  JMP       (jump)   -> 110
  0107  GETTABLE  R1 = R0[K49('m_bLastChance')]
  0108  TEST      if not R1 then   -> -130962
  0109  JMP       (jump)   -> 146
  0110  GETTABUP  R1 = _ENV[K16('UIUtil')]
  0111  GETTABLE  R1 = R1[K17('SetActive')]
  0112  GETTABLE  R2 = R0[K50('m_rewardGo')]
  0113  LOADBOOL  R3 = false
  0114  CALL      R1 = call(R1, 0 args, 2 rets)
  0115  GETTABLE  R1 = R0[K51('m_shellRectTransform')]
  0116  SELF      R2 = R1[K38('SetParent')] (self)
  0117  GETTABLE  R3 = R0[K52('m_shellRoot2')]
  0118  LOADBOOL  R4 = false
  0119  CALL      R1 = call(R1, 0 args, 3 rets)
  0120  GETTABUP  R1 = _ENV[K16('UIUtil')]
  0121  GETTABLE  R1 = R1[K40('SetLocalPosition')]
  0122  GETTABLE  R2 = R0[K51('m_shellRectTransform')]
  0123  LOADK     R3 = K41 0
  0124  LOADK     R4 = K41 0
  0125  LOADK     R5 = K41 0
  0126  CALL      R1 = call(R1, 0 args, 4 rets)
  0127  GETTABLE  R1 = R0[K19('m_bCanUpgarde')]
  0128  TEST      if not R1 then   -> -130941
  0129  JMP       (jump)   -> 138
  0130  GETTABLE  R1 = R0[K47('m_descText')]
  0131  GETTABUP  R2 = _ENV[K23('GM')]
  0132  GETTABLE  R2 = R2[K29('GameTextModel')]
  0133  SELF      R3 = R2[K30('GetText')] (self)
  0134  LOADK     R4 = K53 'doubleWheel_purchase_hint1'
  0135  CALL      R2 = call(R2, 1 args, 2 rets)
  0136  SETTABLE  R1[K22('text')] = R2
  0137  JMP       (jump)   -> 177
  0138  GETTABLE  R1 = R0[K47('m_descText')]
  0139  GETTABUP  R2 = _ENV[K23('GM')]
  0140  GETTABLE  R2 = R2[K29('GameTextModel')]
  0141  SELF      R3 = R2[K30('GetText')] (self)
  0142  LOADK     R4 = K54 'doubleWheel_purchase_hint2'
  0143  CALL      R2 = call(R2, 1 args, 2 rets)
  0144  SETTABLE  R1[K22('text')] = R2
  0145  JMP       (jump)   -> 177
  0146  GETTABLE  R1 = R0[K51('m_shellRectTransform')]
  0147  SELF      R2 = R1[K38('SetParent')] (self)
  0148  GETTABLE  R3 = R0[K55('m_shellRoot1')]
  0149  LOADBOOL  R4 = false
  0150  CALL      R1 = call(R1, 0 args, 3 rets)
  0151  GETTABUP  R1 = _ENV[K16('UIUtil')]
  0152  GETTABLE  R1 = R1[K40('SetLocalPosition')]
  0153  GETTABLE  R2 = R0[K51('m_shellRectTransform')]
  0154  LOADK     R3 = K41 0
  0155  LOADK     R4 = K41 0
  0156  LOADK     R5 = K41 0
  0157  CALL      R1 = call(R1, 0 args, 4 rets)
  0158  GETTABLE  R1 = R0[K37('m_rewardRectTransform')]
  0159  SELF      R2 = R1[K38('SetParent')] (self)
  0160  GETTABLE  R3 = R0[K56('m_rewardRoot1')]
  0161  LOADBOOL  R4 = false
  0162  CALL      R1 = call(R1, 0 args, 3 rets)
  0163  GETTABUP  R1 = _ENV[K16('UIUtil')]
  0164  GETTABLE  R1 = R1[K40('SetLocalPosition')]
  0165  GETTABLE  R2 = R0[K37('m_rewardRectTransform')]
  0166  LOADK     R3 = K41 0
  0167  LOADK     R4 = K41 0
  0168  LOADK     R5 = K41 0
  0169  CALL      R1 = call(R1, 0 args, 4 rets)
  0170  GETTABLE  R1 = R0[K47('m_descText')]
  0171  GETTABUP  R2 = _ENV[K23('GM')]
  0172  GETTABLE  R2 = R2[K29('GameTextModel')]
  0173  SELF      R3 = R2[K30('GetText')] (self)
  0174  LOADK     R4 = K57 'doubleWheel_buy_hint'
  0175  CALL      R2 = call(R2, 1 args, 2 rets)
  0176  SETTABLE  R1[K22('text')] = R2
  0177  GETTABLE  R1 = R0[K58('m_shellSpine')]
  0178  SELF      R2 = R1[K1('Init')] (self)
  0179  CALL      R1 = call(R1, 0 args, 1 rets)
  0180  GETTABLE  R1 = R0[K58('m_shellSpine')]
  0181  SELF      R2 = R1[K59('SetSkin')] (self)
  0182  GETTABLE  R3 = R0[K60('m_totalRewardCount')]
  0183  GETTABUP  R3 = mapSkinName[R3]
  0184  TEST      if not R3 then   -> -130885
  0185  JMP       (jump)   -> 187
  0186  LOADK     R3 = K61 'A'
  0187  CALL      R1 = call(R1, 0 args, 2 rets)
  0188  SETTABLE  R0[K62('m_bInitAnimEnd')] = K63(false)
  0189  GETTABUP  R1 = _ENV[K64('DOTween')]
  0190  GETTABLE  R1 = R1[K65('Sequence')]
  0191  CALL      R1 = call(R1, 1 args, 0 rets)
  0192  SELF      R3 = R1[K66('AppendInterval')] (self)
  0193  GETTABUP  R4 = _ENV[K67('EDurationDefine')]
  0194  GETTABLE  R4 = R4[K68('TimePerFrame')]
  0195  MUL       R4 = R4 mul K69(35)
  0196  CALL      R2 = call(R2, 0 args, 2 rets)
  0197  SELF      R3 = R1[K70('AppendCallback')] (self)
  0198  CLOSURE   R4 = closure proto0
  0199  CALL      R2 = call(R2, 0 args, 2 rets)
  0200  SELF      R3 = R1[K71('InsertCallback')] (self)
  0201  GETTABUP  R4 = _ENV[K67('EDurationDefine')]
  0202  GETTABLE  R4 = R4[K68('TimePerFrame')]
  0203  MUL       R4 = R4 mul K72(75)
  0204  CLOSURE   R5 = closure proto1
  0205  CALL      R2 = call(R2, 0 args, 3 rets)
  0206  SELF      R3 = R1[K70('AppendCallback')] (self)
  0207  CLOSURE   R4 = closure proto2
  0208  CALL      R2 = call(R2, 0 args, 2 rets)
  0209  SETTABLE  R0[K73('m_initSequence')] = R1
  0210  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 124-126 np=0 va=0 ms=3 code=6 consts=3 upvals=2 protos=0
    ;   K[0]='UIUtil'
    ;   K[1]='SetActive'
    ;   K[2]='m_effectGo'
    ;   upvals: _ENV, self
    0000  GETTABUP  R0 = _ENV[K0('UIUtil')]
    0001  GETTABLE  R0 = R0[K1('SetActive')]
    0002  GETTABUP  R1 = self[K2('m_effectGo')]
    0003  LOADBOOL  R2 = true
    0004  CALL      R0 = call(R0, 0 args, 2 rets)
    0005  RETURN    return R0..R-1
  ; ---------- proto1 [m_initSequence] ----------
    ; fn ?  line 127-130 np=0 va=0 ms=2 code=5 consts=3 upvals=1 protos=0
    ;   K[0]='m_bInitAnimEnd'
    ;   K[1]=true
    ;   K[2]='_OnUpdateRewards'
    ;   upvals: self
    0000  SETTABUP  self[K0('m_bInitAnimEnd')] = K1(true)
    0001  GETUPVAL  R0 = self
    0002  SELF      R1 = R0[K2('_OnUpdateRewards')] (self)
    0003  CALL      R0 = call(R0, 0 args, 1 rets)
    0004  RETURN    return R0..R-1
  ; ---------- proto2 [m_initSequence] ----------
    ; fn ?  line 131-133 np=0 va=0 ms=2 code=2 consts=2 upvals=1 protos=0
    ;   K[0]='m_initSequence'
    ;   K[1]=nil
    ;   upvals: self
    0000  SETTABUP  self[K0('m_initSequence')] = K1(nil)
    0001  RETURN    return R0..R-1
; ---------- proto3 [OnDestroy] ----------
  ; fn ?  line 138-144 np=1 va=0 ms=3 code=12 consts=5 upvals=1 protos=0
  ;   K[0]='DoubleWheelActivityBaseWindow'
  ;   K[1]='OnDestroy'
  ;   K[2]='m_initSequence'
  ;   K[3]=nil
  ;   K[4]='Kill'
  ;   upvals: _ENV
  ;   locals: self(0-12)
  0000  GETTABUP  R1 = _ENV[K0('DoubleWheelActivityBaseWindow')]
  0001  GETTABLE  R1 = R1[K1('OnDestroy')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABLE  R1 = R0[K2('m_initSequence')]
  0005  EQ        if R1 eq K3(nil)   -> -130294
  0006  JMP       (jump)   -> 11
  0007  GETTABLE  R1 = R0[K2('m_initSequence')]
  0008  SELF      R2 = R1[K4('Kill')] (self)
  0009  CALL      R1 = call(R1, 0 args, 1 rets)
  0010  SETTABLE  R0[K2('m_initSequence')] = K3(nil)
  0011  RETURN    return R0..R-1
; ---------- proto4 [Close] ----------
  ; fn ?  line 147-154 np=1 va=0 ms=3 code=14 consts=5 upvals=1 protos=0
  ;   K[0]='DoubleWheelActivityBaseWindow'
  ;   K[1]='Close'
  ;   K[2]='IsFunction'
  ;   K[3]='m_closeCallback'
  ;   K[4]=nil
  ;   upvals: _ENV
  ;   locals: self(0-14), closeCallback(10-13)
  0000  GETTABUP  R1 = _ENV[K0('DoubleWheelActivityBaseWindow')]
  0001  GETTABLE  R1 = R1[K1('Close')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABUP  R1 = _ENV[K2('IsFunction')]
  0005  GETTABLE  R2 = R0[K3('m_closeCallback')]
  0006  CALL      R1 = call(R1, 1 args, 1 rets)
  0007  TEST      if not R1 then   -> -131063
  0008  JMP       (jump)   -> 13
  0009  GETTABLE  R1 = R0[K3('m_closeCallback')]
  0010  SETTABLE  R0[K3('m_closeCallback')] = K4(nil)
  0011  MOVE      R2 = R0
  0012  CALL      R2 = call(R2, 0 args, 0 rets)
  0013  RETURN    return R0..R-1
; ---------- proto5 [_AddListeners] ----------
  ; fn ?  line 157-161 np=1 va=0 ms=6 code=13 consts=7 upvals=1 protos=0
  ;   K[0]='DoubleWheelActivityBaseWindow'
  ;   K[1]='_AddListeners'
  ;   K[2]='GetActivityDefinition'
  ;   K[3]='EventDispatcher'
  ;   K[4]='AddListener'
  ;   K[5]='PurchaseSuccessEvent'
  ;   K[6]='_OnPurchaseSuccess'
  ;   upvals: _ENV
  ;   locals: self(0-13), activityDefinition(6-13)
  0000  GETTABUP  R1 = _ENV[K0('DoubleWheelActivityBaseWindow')]
  0001  GETTABLE  R1 = R1[K1('_AddListeners')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  SELF      R2 = R0[K2('GetActivityDefinition')] (self)
  0005  CALL      R1 = call(R1, 1 args, 1 rets)
  0006  GETTABUP  R2 = _ENV[K3('EventDispatcher')]
  0007  GETTABLE  R2 = R2[K4('AddListener')]
  0008  GETTABLE  R3 = R1[K5('PurchaseSuccessEvent')]
  0009  MOVE      R4 = R0
  0010  GETTABLE  R5 = R0[K6('_OnPurchaseSuccess')]
  0011  CALL      R2 = call(R2, 0 args, 3 rets)
  0012  RETURN    return R0..R-1
; ---------- proto6 [_LogWindowAction] ----------
  ; fn ?  line 164-167 np=1 va=0 ms=7 code=23 consts=11 upvals=1 protos=0
  ;   K[0]='LogWindowAction'
  ;   K[1]='EBIType'
  ;   K[2]='UIActionType'
  ;   K[3]='Open'
  ;   K[4]='m_bAutoPop'
  ;   K[5]='EBIReferType'
  ;   K[6]='AutoPopup'
  ;   K[7]='UserClick'
  ;   K[8]='GetModel'
  ;   K[9]='GetCurrentWheelConfig'
  ;   K[10]='GetIAPType'
  ;   upvals: _ENV
  ;   locals: self(0-23)
  0000  SELF      R2 = R0[K0('LogWindowAction')] (self)
  0001  GETTABUP  R3 = _ENV[K1('EBIType')]
  0002  GETTABLE  R3 = R3[K2('UIActionType')]
  0003  GETTABLE  R3 = R3[K3('Open')]
  0004  NEWTABLE  R4 = {} (1 items)
  0005  GETTABLE  R5 = R0[K4('m_bAutoPop')]
  0006  TEST      if not R5 then   -> -131064
  0007  JMP       (jump)   -> 12
  0008  GETTABUP  R5 = _ENV[K5('EBIReferType')]
  0009  GETTABLE  R5 = R5[K6('AutoPopup')]
  0010  TEST      if not R5 then   -> -131059
  0011  JMP       (jump)   -> 14
  0012  GETTABUP  R5 = _ENV[K5('EBIReferType')]
  0013  GETTABLE  R5 = R5[K7('UserClick')]
  0014  SETLIST   setlist R4[B=1,C=1]
  0015  SELF      R6 = R0[K8('GetModel')] (self)
  0016  CALL      R5 = call(R5, 1 args, 1 rets)
  0017  SELF      R6 = R5[K9('GetCurrentWheelConfig')] (self)
  0018  CALL      R5 = call(R5, 1 args, 1 rets)
  0019  SELF      R6 = R5[K10('GetIAPType')] (self)
  0020  CALL      R5 = call(R5, -1 args, 1 rets)
  0021  CALL      R1 = call(R1, 0 args, -1 rets)
  0022  RETURN    return R0..R-1
; ---------- proto7 [_OnUpdateRewards] ----------
  ; fn ?  line 169-174 np=1 va=0 ms=3 code=7 consts=2 upvals=0 protos=0
  ;   K[0]='m_bInitAnimEnd'
  ;   K[1]='_UpdateRewardsIndex'
  ;   locals: self(0-7)
  0000  GETTABLE  R1 = R0[K0('m_bInitAnimEnd')]
  0001  TEST      if not R1 then   -> -131068
  0002  JMP       (jump)   -> 4
  0003  RETURN    return R0..R-1
  0004  SELF      R2 = R0[K1('_UpdateRewardsIndex')] (self)
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  RETURN    return R0..R-1
; ---------- proto8 [_UpdateRewardsIndex] ----------
  ; fn ?  line 176-182 np=1 va=0 ms=9 code=20 consts=6 upvals=1 protos=0
  ;   K[0]='ipairs'
  ;   K[1]='m_rewardContentInstant'
  ;   K[2]='GetRewardItems'
  ;   K[3]='UpdateIndex'
  ;   K[4]='m_shellUpgradeRewardItem'
  ;   K[5]=1
  ;   upvals: _ENV
  ;   locals: self(0-20), (for generator)(5-11), (for state)(5-11), (for control)(5-11), index(6-9), rewardItem(6-9)
  0000  GETTABUP  R1 = _ENV[K0('ipairs')]
  0001  GETTABLE  R2 = R0[K1('m_rewardContentInstant')]
  0002  SELF      R3 = R2[K2('GetRewardItems')] (self)
  0003  CALL      R2 = call(R2, -1 args, 1 rets)
  0004  CALL      R1 = call(R1, 3 args, -1 rets)
  0005  JMP       (jump)   -> 9
  0006  SELF      R7 = R5[K3('UpdateIndex')] (self)
  0007  MOVE      R8 = R0
  0008  CALL      R6 = call(R6, 0 args, 2 rets)
  0009  TFORCALL  tforcall R1
  0010  TFORLOOP  tforloop R3(sBx=-5)   -> 6
  0011  GETTABLE  R1 = R0[K4('m_shellUpgradeRewardItem')]
  0012  SELF      R2 = R1[K3('UpdateIndex')] (self)
  0013  GETTABLE  R3 = R0[K1('m_rewardContentInstant')]
  0014  SELF      R4 = R3[K2('GetRewardItems')] (self)
  0015  CALL      R3 = call(R3, 1 args, 1 rets)
  0016  LEN       R3 = len R0
  0017  ADD       R3 = K5(1) add R3
  0018  CALL      R1 = call(R1, 0 args, 2 rets)
  0019  RETURN    return R0..R-1
; ---------- proto9 [_ShowTip] ----------
  ; fn ?  line 185-189 np=2 va=0 ms=7 code=23 consts=11 upvals=1 protos=0
  ;   K[0]='m_descTip'
  ;   K[1]='transform'
  ;   K[2]='SetParent'
  ;   K[3]='UIUtil'
  ;   K[4]='SetLocalPosition'
  ;   K[5]=0
  ;   K[6]='Show'
  ;   K[7]='GM'
  ;   K[8]='GameTextModel'
  ;   K[9]='GetText'
  ;   K[10]='doubleWheel_upgrade_hint'
  ;   upvals: _ENV
  ;   locals: self(0-23), tipRoot(0-23)
  0000  GETTABLE  R2 = R0[K0('m_descTip')]
  0001  GETTABLE  R2 = R2[K1('transform')]
  0002  SELF      R3 = R2[K2('SetParent')] (self)
  0003  MOVE      R4 = R0
  0004  LOADBOOL  R5 = false
  0005  CALL      R2 = call(R2, 0 args, 3 rets)
  0006  GETTABUP  R2 = _ENV[K3('UIUtil')]
  0007  GETTABLE  R2 = R2[K4('SetLocalPosition')]
  0008  GETTABLE  R3 = R0[K0('m_descTip')]
  0009  GETTABLE  R3 = R3[K1('transform')]
  0010  LOADK     R4 = K5 0
  0011  LOADK     R5 = K5 0
  0012  LOADK     R6 = K5 0
  0013  CALL      R2 = call(R2, 0 args, 4 rets)
  0014  GETTABLE  R2 = R0[K0('m_descTip')]
  0015  SELF      R3 = R2[K6('Show')] (self)
  0016  GETTABUP  R4 = _ENV[K7('GM')]
  0017  GETTABLE  R4 = R4[K8('GameTextModel')]
  0018  SELF      R5 = R4[K9('GetText')] (self)
  0019  LOADK     R6 = K10 'doubleWheel_upgrade_hint'
  0020  CALL      R4 = call(R4, -1 args, 2 rets)
  0021  CALL      R2 = call(R2, 0 args, -1 rets)
  0022  RETURN    return R0..R-1
; ---------- proto10 [OnShellUpgradeInfoClicked] ----------
  ; fn ?  line 192-194 np=1 va=0 ms=4 code=4 consts=2 upvals=0 protos=0
  ;   K[0]='_ShowTip'
  ;   K[1]='m_shellTipRoot'
  ;   locals: self(0-4)
  0000  SELF      R2 = R0[K0('_ShowTip')] (self)
  0001  GETTABLE  R3 = R0[K1('m_shellTipRoot')]
  0002  CALL      R1 = call(R1, 0 args, 2 rets)
  0003  RETURN    return R0..R-1
; ---------- proto11 [OnUpgradeInfoClicked] ----------
  ; fn ?  line 197-199 np=1 va=0 ms=4 code=4 consts=2 upvals=0 protos=0
  ;   K[0]='_ShowTip'
  ;   K[1]='m_tipRoot'
  ;   locals: self(0-4)
  0000  SELF      R2 = R0[K0('_ShowTip')] (self)
  0001  GETTABLE  R3 = R0[K1('m_tipRoot')]
  0002  CALL      R1 = call(R1, 0 args, 2 rets)
  0003  RETURN    return R0..R-1
; ---------- proto12 [OnBtnClicked] ----------
  ; fn ?  line 202-205 np=1 va=0 ms=4 code=5 consts=2 upvals=0 protos=0
  ;   K[0]='GetModel'
  ;   K[1]='StartPurchase'
  ;   locals: self(0-5), model(2-5)
  0000  SELF      R2 = R0[K0('GetModel')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  SELF      R3 = R1[K1('StartPurchase')] (self)
  0003  CALL      R2 = call(R2, 0 args, 1 rets)
  0004  RETURN    return R0..R-1
; ---------- proto13 [_OnPurchaseSuccess] ----------
  ; fn ?  line 207-209 np=1 va=0 ms=3 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='Close'
  ;   locals: self(0-3)
  0000  SELF      R2 = R0[K0('Close')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  RETURN    return R0..R-1
