# UI_Window_Shop_BuyEnergyWindow_493.luac
; fn @BuyEnergyWindow.lua  line 0-0 np=0 va=1 ms=3 code=51 consts=23 upvals=1 protos=9
;   K[0]='BuyEnergyWindow'
;   K[1]='setmetatable'
;   K[2]='disableEffectWhenCloseView'
;   K[3]=true
;   K[4]='Type'
;   K[5]='EnergyType'
;   K[6]='Main'
;   K[7]='BaseWindow'
;   K[8]='__index'
;   K[9]='EnergyType2WindowName'
;   K[10]='BuyEnergyWindow'
;   K[11]='Init'
;   K[12]='OnDestroy'
;   K[13]='OnCloseView'
;   K[14]='GetBtnRectTrans'
;   K[15]='UpdateContent'
;   K[16]='_UpdateBoostBonus'
;   K[17]='OnCloseFinish'
;   K[18]='OnClickBoostBonus'
;   K[19]='BuyEventEnergyWindow'
;   K[20]='Type'
;   K[21]='EnergyType'
;   K[22]='Event'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  SETTABLE  R1[K2('disableEffectWhenCloseView')] = K3(true)
0003  GETTABUP  R2 = _ENV[K5('EnergyType')]
0004  GETTABLE  R2 = R2[K6('Main')]
0005  SETTABLE  R1[K4('Type')] = R2
0006  GETTABUP  R2 = _ENV[K7('BaseWindow')]
0007  CALL      R0 = call(R0, 1 args, 2 rets)
0008  SETTABUP  _ENV[K0('BuyEnergyWindow')] = R0
0009  GETTABUP  R0 = _ENV[K0('BuyEnergyWindow')]
0010  GETTABUP  R1 = _ENV[K0('BuyEnergyWindow')]
0011  SETTABLE  R0[K8('__index')] = R1
0012  GETTABUP  R0 = _ENV[K0('BuyEnergyWindow')]
0013  CLOSURE   R1 = closure proto0
0014  SETTABLE  R0[K9('EnergyType2WindowName')] = R1
0015  GETTABUP  R0 = _ENV[K10('BuyEnergyWindow')]
0016  CLOSURE   R1 = closure proto1
0017  SETTABLE  R0[K11('Init')] = R1
0018  GETTABUP  R0 = _ENV[K10('BuyEnergyWindow')]
0019  CLOSURE   R1 = closure proto2
0020  SETTABLE  R0[K12('OnDestroy')] = R1
0021  GETTABUP  R0 = _ENV[K10('BuyEnergyWindow')]
0022  CLOSURE   R1 = closure proto3
0023  SETTABLE  R0[K13('OnCloseView')] = R1
0024  GETTABUP  R0 = _ENV[K10('BuyEnergyWindow')]
0025  CLOSURE   R1 = closure proto4
0026  SETTABLE  R0[K14('GetBtnRectTrans')] = R1
0027  GETTABUP  R0 = _ENV[K10('BuyEnergyWindow')]
0028  CLOSURE   R1 = closure proto5
0029  SETTABLE  R0[K15('UpdateContent')] = R1
0030  GETTABUP  R0 = _ENV[K10('BuyEnergyWindow')]
0031  CLOSURE   R1 = closure proto6
0032  SETTABLE  R0[K16('_UpdateBoostBonus')] = R1
0033  GETTABUP  R0 = _ENV[K10('BuyEnergyWindow')]
0034  CLOSURE   R1 = closure proto7
0035  SETTABLE  R0[K17('OnCloseFinish')] = R1
0036  GETTABUP  R0 = _ENV[K10('BuyEnergyWindow')]
0037  CLOSURE   R1 = closure proto8
0038  SETTABLE  R0[K18('OnClickBoostBonus')] = R1
0039  GETTABUP  R0 = _ENV[K1('setmetatable')]
0040  NEWTABLE  R1 = {} (0 items)
0041  GETTABUP  R2 = _ENV[K21('EnergyType')]
0042  GETTABLE  R2 = R2[K22('Event')]
0043  SETTABLE  R1[K20('Type')] = R2
0044  GETTABUP  R2 = _ENV[K10('BuyEnergyWindow')]
0045  CALL      R0 = call(R0, 1 args, 2 rets)
0046  SETTABUP  _ENV[K19('BuyEventEnergyWindow')] = R0
0047  GETTABUP  R0 = _ENV[K19('BuyEventEnergyWindow')]
0048  GETTABUP  R1 = _ENV[K19('BuyEventEnergyWindow')]
0049  SETTABLE  R0[K8('__index')] = R1
0050  RETURN    return R0..R-1
; ---------- proto0 [EnergyType2WindowName] ----------
  ; fn ?  line 7-13 np=1 va=0 ms=2 code=12 consts=5 upvals=1 protos=0
  ;   K[0]='EnergyType'
  ;   K[1]='Event'
  ;   K[2]='UIPrefabConfigName'
  ;   K[3]='BuyEventEnergyWindow'
  ;   K[4]='BuyEnergyWindow'
  ;   upvals: _ENV
  ;   locals: energyType(0-12)
  0000  GETTABUP  R1 = _ENV[K0('EnergyType')]
  0001  GETTABLE  R1 = R1[K1('Event')]
  0002  EQ        if R0 eq R1   -> -131067
  0003  JMP       (jump)   -> 8
  0004  GETTABUP  R1 = _ENV[K2('UIPrefabConfigName')]
  0005  GETTABLE  R1 = R1[K3('BuyEventEnergyWindow')]
  0006  RETURN    return R1..R0
  0007  JMP       (jump)   -> 11
  0008  GETTABUP  R1 = _ENV[K2('UIPrefabConfigName')]
  0009  GETTABLE  R1 = R1[K4('BuyEnergyWindow')]
  0010  RETURN    return R1..R0
  0011  RETURN    return R0..R-1
; ---------- proto1 [Init] ----------
  ; fn ?  line 15-58 np=3 va=0 ms=12 code=112 consts=52 upvals=1 protos=2
  ;   K[0]='m_energyModel'
  ;   K[1]='GM'
  ;   K[2]='EnergyModel'
  ;   K[3]='m_shopModel'
  ;   K[4]='ShopModel'
  ;   K[5]='m_energyCount'
  ;   K[6]='ShopDataModel'
  ;   K[7]='GetBuyEnergyCount'
  ;   K[8]='m_inShopWindow'
  ;   K[9]='m_popupForLackingEnergy'
  ;   K[10]='m_BuyEnergyBottomAdLuaTable'
  ;   K[11]='Init'
  ;   K[12]='+'
  ;   K[13]='tostring'
  ;   K[14]='m_numText'
  ;   K[15]='text'
  ;   K[16]='UpdateContent'
  ;   K[17]='LayoutRebuilder'
  ;   K[18]='ForceRebuildLayoutImmediate'
  ;   K[19]='m_scaleRootRect'
  ;   K[20]='EventDispatcher'
  ;   K[21]='AddListener'
  ;   K[22]='EEventType'
  ;   K[23]='ShopRefreshed'
  ;   K[24]='EnergyBoostModeChanged'
  ;   K[25]='IsAutoRun'
  ;   K[26]=0.2
  ;   K[27]='ConfigModel'
  ;   K[28]='GetAntiMisTouchDuration'
  ;   K[29]=nil
  ;   K[30]=0
  ;   K[31]='m_bDisableTouch'
  ;   K[32]=true
  ;   K[33]='DelayExecuteFuncInView'
  ;   K[34]='LogWindowAction'
  ;   K[35]='EBIType'
  ;   K[36]='UIActionType'
  ;   K[37]='Open'
  ;   K[38]='EBIReferType'
  ;   K[39]='ClickEle'
  ;   K[40]='UserClick'
  ;   K[41]='UIManager'
  ;   K[42]='CanShowTestUI'
  ;   K[43]='m_testText'
  ;   K[44]='gameObject'
  ;   K[45]='SetActive'
  ;   K[46]='GetRefreshTimeEnergy'
  ;   K[47]='下次刷新体力价格时间：UTC '
  ;   K[48]='TimeUtil'
  ;   K[49]='ToDate'
  ;   K[50]='ETimeFormat'
  ;   K[51]='UTCYMDHMS'
  ;   upvals: _ENV
  ;   locals: self(0-112), popupForLackingEnergy(0-112), inShopWindow(0-112), payOption(16-112), energyStr(21-112), isAutoRun(47-67), disableTouchDuration(56-67), canShowTest(90-112), refreshTime(101-111)
  0000  GETTABUP  R3 = _ENV[K1('GM')]
  0001  GETTABLE  R3 = R3[K2('EnergyModel')]
  0002  SETTABLE  R0[K0('m_energyModel')] = R3
  0003  GETTABUP  R3 = _ENV[K1('GM')]
  0004  GETTABLE  R3 = R3[K4('ShopModel')]
  0005  SETTABLE  R0[K3('m_shopModel')] = R3
  0006  GETTABUP  R3 = _ENV[K1('GM')]
  0007  GETTABLE  R3 = R3[K6('ShopDataModel')]
  0008  SELF      R4 = R3[K7('GetBuyEnergyCount')] (self)
  0009  CALL      R3 = call(R3, 1 args, 1 rets)
  0010  SETTABLE  R0[K5('m_energyCount')] = R3
  0011  SETTABLE  R0[K8('m_inShopWindow')] = R2
  0012  SETTABLE  R0[K9('m_popupForLackingEnergy')] = R1
  0013  GETTABLE  R3 = R0[K10('m_BuyEnergyBottomAdLuaTable')]
  0014  SELF      R4 = R3[K11('Init')] (self)
  0015  CALL      R3 = call(R3, 1 args, 1 rets)
  0016  LOADK     R4 = K12 '+'
  0017  GETTABUP  R5 = _ENV[K13('tostring')]
  0018  GETTABLE  R6 = R0[K5('m_energyCount')]
  0019  CALL      R5 = call(R5, 1 args, 1 rets)
  0020  CONCAT    R4 = concat(R4..R4)
  0021  GETTABLE  R5 = R0[K14('m_numText')]
  0022  SETTABLE  R5[K15('text')] = R4
  0023  SELF      R6 = R0[K16('UpdateContent')] (self)
  0024  CALL      R5 = call(R5, 0 args, 1 rets)
  0025  GETTABUP  R5 = _ENV[K17('LayoutRebuilder')]
  0026  GETTABLE  R5 = R5[K18('ForceRebuildLayoutImmediate')]
  0027  GETTABLE  R6 = R0[K19('m_scaleRootRect')]
  0028  CALL      R5 = call(R5, 0 args, 1 rets)
  0029  GETTABUP  R5 = _ENV[K20('EventDispatcher')]
  0030  GETTABLE  R5 = R5[K21('AddListener')]
  0031  GETTABUP  R6 = _ENV[K22('EEventType')]
  0032  GETTABLE  R6 = R6[K23('ShopRefreshed')]
  0033  MOVE      R7 = R0
  0034  GETTABLE  R8 = R0[K16('UpdateContent')]
  0035  CALL      R5 = call(R5, 0 args, 3 rets)
  0036  GETTABUP  R5 = _ENV[K20('EventDispatcher')]
  0037  GETTABLE  R5 = R5[K21('AddListener')]
  0038  GETTABUP  R6 = _ENV[K22('EEventType')]
  0039  GETTABLE  R6 = R6[K24('EnergyBoostModeChanged')]
  0040  MOVE      R7 = R0
  0041  GETTABLE  R8 = R0[K16('UpdateContent')]
  0042  CALL      R5 = call(R5, 0 args, 3 rets)
  0043  TEST      if not R1 then   -> -131027
  0044  JMP       (jump)   -> 67
  0045  GETTABUP  R5 = _ENV[K25('IsAutoRun')]
  0046  CALL      R5 = call(R5, 1 args, 0 rets)
  0047  TEST      if not R5 then   -> -131023
  0048  JMP       (jump)   -> 52
  0049  LOADK     R6 = K26 0.2
  0050  TEST      if not R6 then   -> -131019
  0051  JMP       (jump)   -> 56
  0052  GETTABUP  R6 = _ENV[K1('GM')]
  0053  GETTABLE  R6 = R6[K27('ConfigModel')]
  0054  SELF      R7 = R6[K28('GetAntiMisTouchDuration')] (self)
  0055  CALL      R6 = call(R6, 1 args, 1 rets)
  0056  EQ        if R1 eq K29(nil)   -> -127657
  0057  JMP       (jump)   -> 67
  0058  LT        if R0 lt R6   -> 15426
  0059  JMP       (jump)   -> 67
  0060  SETTABLE  R0[K31('m_bDisableTouch')] = K32(true)
  0061  GETTABUP  R7 = _ENV[K33('DelayExecuteFuncInView')]
  0062  CLOSURE   R8 = closure proto0
  0063  MOVE      R9 = R0
  0064  MOVE      R10 = R0
  0065  CALL      R7 = call(R7, 0 args, 3 rets)
  0066  JMP       (jump)   -> 67
  0067  GETTABUP  R5 = _ENV[K33('DelayExecuteFuncInView')]
  0068  CLOSURE   R6 = closure proto1
  0069  LOADK     R7 = K26 0.2
  0070  MOVE      R8 = R0
  0071  CALL      R5 = call(R5, 0 args, 3 rets)
  0072  SELF      R6 = R0[K34('LogWindowAction')] (self)
  0073  GETTABUP  R7 = _ENV[K35('EBIType')]
  0074  GETTABLE  R7 = R7[K36('UIActionType')]
  0075  GETTABLE  R7 = R7[K37('Open')]
  0076  TEST      if not R1 then   -> -130994
  0077  JMP       (jump)   -> 82
  0078  GETTABUP  R8 = _ENV[K38('EBIReferType')]
  0079  GETTABLE  R8 = R8[K39('ClickEle')]
  0080  TEST      if not R8 then   -> -130989
  0081  JMP       (jump)   -> 84
  0082  GETTABUP  R8 = _ENV[K38('EBIReferType')]
  0083  GETTABLE  R8 = R8[K40('UserClick')]
  0084  MOVE      R9 = R0
  0085  CALL      R5 = call(R5, 0 args, 4 rets)
  0086  GETTABUP  R5 = _ENV[K1('GM')]
  0087  GETTABLE  R5 = R5[K41('UIManager')]
  0088  SELF      R6 = R5[K42('CanShowTestUI')] (self)
  0089  CALL      R5 = call(R5, 1 args, 1 rets)
  0090  GETTABLE  R6 = R0[K43('m_testText')]
  0091  GETTABLE  R6 = R6[K44('gameObject')]
  0092  SELF      R7 = R6[K45('SetActive')] (self)
  0093  MOVE      R8 = R0
  0094  CALL      R6 = call(R6, 0 args, 2 rets)
  0095  TEST      if not R5 then   -> -130975
  0096  JMP       (jump)   -> 111
  0097  GETTABUP  R6 = _ENV[K1('GM')]
  0098  GETTABLE  R6 = R6[K4('ShopModel')]
  0099  SELF      R7 = R6[K46('GetRefreshTimeEnergy')] (self)
  0100  CALL      R6 = call(R6, 1 args, 1 rets)
  0101  GETTABLE  R7 = R0[K43('m_testText')]
  0102  LOADK     R8 = K47 '下次刷新体力价格时间：UTC '
  0103  GETTABUP  R9 = _ENV[K48('TimeUtil')]
  0104  GETTABLE  R9 = R9[K49('ToDate')]
  0105  MOVE      R10 = R0
  0106  GETTABUP  R11 = _ENV[K50('ETimeFormat')]
  0107  GETTABLE  R11 = R11[K51('UTCYMDHMS')]
  0108  CALL      R9 = call(R9, 1 args, 2 rets)
  0109  CONCAT    R8 = concat(R8..R8)
  0110  SETTABLE  R7[K15('text')] = R8
  0111  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 37-42 np=0 va=0 ms=2 code=8 consts=4 upvals=2 protos=0
    ;   K[0]='m_bDisableTouch'
    ;   K[1]=nil
    ;   K[2]='m_propertyButton'
    ;   K[3]='OnBtnClicked'
    ;   upvals: self, isAutoRun
    0000  SETTABUP  self[K0('m_bDisableTouch')] = K1(nil)
    0001  GETUPVAL  R0 = self
    0002  TEST      if not R0 then   -> -131068
    0003  JMP       (jump)   -> 7
    0004  GETTABUP  R0 = self[K2('m_propertyButton')]
    0005  SELF      R1 = R0[K3('OnBtnClicked')] (self)
    0006  CALL      R0 = call(R0, 0 args, 1 rets)
    0007  RETURN    return R0..R-1
  ; ---------- proto1 [] ----------
    ; fn ?  line 46-48 np=0 va=0 ms=3 code=5 consts=2 upvals=1 protos=0
    ;   K[0]='m_effectGo'
    ;   K[1]='SetActive'
    ;   upvals: self
    0000  GETTABUP  R0 = self[K0('m_effectGo')]
    0001  SELF      R1 = R0[K1('SetActive')] (self)
    0002  LOADBOOL  R2 = true
    0003  CALL      R0 = call(R0, 0 args, 2 rets)
    0004  RETURN    return R0..R-1
; ---------- proto2 [OnDestroy] ----------
  ; fn ?  line 60-63 np=1 va=0 ms=3 code=9 consts=4 upvals=1 protos=0
  ;   K[0]='Scheduler'
  ;   K[1]='UnscheduleTarget'
  ;   K[2]='EventDispatcher'
  ;   K[3]='RemoveTarget'
  ;   upvals: _ENV
  ;   locals: self(0-9)
  0000  GETTABUP  R1 = _ENV[K0('Scheduler')]
  0001  GETTABLE  R1 = R1[K1('UnscheduleTarget')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABUP  R1 = _ENV[K2('EventDispatcher')]
  0005  GETTABLE  R1 = R1[K3('RemoveTarget')]
  0006  MOVE      R2 = R0
  0007  CALL      R1 = call(R1, 0 args, 1 rets)
  0008  RETURN    return R0..R-1
; ---------- proto3 [OnCloseView] ----------
  ; fn ?  line 65-71 np=1 va=0 ms=3 code=13 consts=6 upvals=1 protos=0
  ;   K[0]='BaseWindow'
  ;   K[1]='OnCloseView'
  ;   K[2]='m_BuyEnergyBottomAdLuaTable'
  ;   K[3]='gameObject'
  ;   K[4]='activeSelf'
  ;   K[5]='ShowHide'
  ;   upvals: _ENV
  ;   locals: self(0-13)
  0000  GETTABUP  R1 = _ENV[K0('BaseWindow')]
  0001  GETTABLE  R1 = R1[K1('OnCloseView')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABLE  R1 = R0[K2('m_BuyEnergyBottomAdLuaTable')]
  0005  GETTABLE  R1 = R1[K3('gameObject')]
  0006  GETTABLE  R1 = R1[K4('activeSelf')]
  0007  TEST      if not R1 then   -> -131063
  0008  JMP       (jump)   -> 12
  0009  GETTABLE  R1 = R0[K2('m_BuyEnergyBottomAdLuaTable')]
  0010  SELF      R2 = R1[K5('ShowHide')] (self)
  0011  CALL      R1 = call(R1, 0 args, 1 rets)
  0012  RETURN    return R0..R-1
; ---------- proto4 [GetBtnRectTrans] ----------
  ; fn ?  line 74-76 np=1 va=0 ms=2 code=5 consts=3 upvals=0 protos=0
  ;   K[0]='m_propertyButton'
  ;   K[1]='gameObject'
  ;   K[2]='transform'
  ;   locals: self(0-5)
  0000  GETTABLE  R1 = R0[K0('m_propertyButton')]
  0001  GETTABLE  R1 = R1[K1('gameObject')]
  0002  GETTABLE  R1 = R1[K2('transform')]
  0003  RETURN    return R1..R0
  0004  RETURN    return R0..R-1
; ---------- proto5 [UpdateContent] ----------
  ; fn ?  line 78-98 np=1 va=0 ms=7 code=42 consts=18 upvals=1 protos=1
  ;   K[0]='m_callback'
  ;   K[1]=nil
  ;   K[2]='m_free2Refill'
  ;   K[3]='m_shopModel'
  ;   K[4]='IsEnergyFreeRefill'
  ;   K[5]='Type'
  ;   K[6]='GetEnergyDatas'
  ;   K[7]='m_freeTextGo'
  ;   K[8]='SetActive'
  ;   K[9]='m_priceTextGo'
  ;   K[10]='m_propertyButton'
  ;   K[11]='Init'
  ;   K[12]='EPropertyType'
  ;   K[13]='Gem'
  ;   K[14]=1
  ;   K[15]='costNum'
  ;   K[16]='_UpdateBoostBonus'
  ;   K[17]=0
  ;   upvals: _ENV
  ;   locals: self(0-42), energyData(14-42)
  0000  GETTABLE  R1 = R0[K0('m_callback')]
  0001  EQ        if R0 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 5
  0003  CLOSURE   R1 = closure proto0
  0004  SETTABLE  R0[K0('m_callback')] = R1
  0005  GETTABLE  R1 = R0[K3('m_shopModel')]
  0006  SELF      R2 = R1[K4('IsEnergyFreeRefill')] (self)
  0007  GETTABLE  R3 = R0[K5('Type')]
  0008  CALL      R1 = call(R1, 1 args, 2 rets)
  0009  SETTABLE  R0[K2('m_free2Refill')] = R1
  0010  GETTABLE  R1 = R0[K3('m_shopModel')]
  0011  SELF      R2 = R1[K6('GetEnergyDatas')] (self)
  0012  GETTABLE  R3 = R0[K5('Type')]
  0013  CALL      R1 = call(R1, 1 args, 2 rets)
  0014  GETTABLE  R2 = R0[K7('m_freeTextGo')]
  0015  SELF      R3 = R2[K8('SetActive')] (self)
  0016  GETTABLE  R4 = R0[K2('m_free2Refill')]
  0017  CALL      R2 = call(R2, 0 args, 2 rets)
  0018  GETTABLE  R2 = R0[K9('m_priceTextGo')]
  0019  SELF      R3 = R2[K8('SetActive')] (self)
  0020  GETTABLE  R4 = R0[K2('m_free2Refill')]
  0021  NOT       R4 = not R0
  0022  CALL      R2 = call(R2, 0 args, 2 rets)
  0023  GETTABLE  R2 = R0[K10('m_propertyButton')]
  0024  SELF      R3 = R2[K11('Init')] (self)
  0025  GETTABUP  R4 = _ENV[K12('EPropertyType')]
  0026  GETTABLE  R4 = R4[K13('Gem')]
  0027  GETTABLE  R5 = R1[K14(1)]
  0028  GETTABLE  R5 = R5[K15('costNum')]
  0029  GETTABLE  R6 = R0[K0('m_callback')]
  0030  CALL      R2 = call(R2, 0 args, 4 rets)
  0031  SELF      R3 = R0[K16('_UpdateBoostBonus')] (self)
  0032  GETTABLE  R4 = R0[K2('m_free2Refill')]
  0033  TEST      if not R4 then   -> -131037
  0034  JMP       (jump)   -> 38
  0035  LOADK     R4 = K17 0
  0036  TEST      if not R4 then   -> -131033
  0037  JMP       (jump)   -> 40
  0038  GETTABLE  R4 = R1[K14(1)]
  0039  GETTABLE  R4 = R4[K15('costNum')]
  0040  CALL      R2 = call(R2, 0 args, 2 rets)
  0041  RETURN    return R0..R-1
  ; ---------- proto0 [m_callback] ----------
    ; fn ?  line 80-88 np=0 va=0 ms=3 code=14 consts=8 upvals=1 protos=0
    ;   K[0]='m_bDisableTouch'
    ;   K[1]='m_bBuying'
    ;   K[2]=true
    ;   K[3]='m_bBuySuccess'
    ;   K[4]='m_shopModel'
    ;   K[5]='BuyEnergy'
    ;   K[6]='Type'
    ;   K[7]='Close'
    ;   upvals: self
    0000  GETTABUP  R0 = self[K0('m_bDisableTouch')]
    0001  TEST      if not R0 then   -> -131069
    0002  JMP       (jump)   -> 4
    0003  RETURN    return R0..R-1
    0004  SETTABUP  self[K1('m_bBuying')] = K2(true)
    0005  GETTABUP  R0 = self[K4('m_shopModel')]
    0006  SELF      R1 = R0[K5('BuyEnergy')] (self)
    0007  GETTABUP  R2 = self[K6('Type')]
    0008  CALL      R0 = call(R0, 1 args, 2 rets)
    0009  SETTABUP  self[K3('m_bBuySuccess')] = R0
    0010  GETUPVAL  R0 = self
    0011  SELF      R1 = R0[K7('Close')] (self)
    0012  CALL      R0 = call(R0, 0 args, 1 rets)
    0013  RETURN    return R0..R-1
; ---------- proto6 [_UpdateBoostBonus] ----------
  ; fn ?  line 100-120 np=2 va=0 ms=12 code=64 consts=26 upvals=1 protos=0
  ;   K[0]='m_bBuying'
  ;   K[1]='GM'
  ;   K[2]='ShopDataModel'
  ;   K[3]='GetBuyEnergyCount'
  ;   K[4]='EnergyModel'
  ;   K[5]='GetEnergy'
  ;   K[6]='EnergyType'
  ;   K[7]='Main'
  ;   K[8]='EnergyBoostModel'
  ;   K[9]='GetBoostBonusDurationInMin'
  ;   K[10]='m_boostBonusDuration'
  ;   K[11]='m_boostBonusType'
  ;   K[12]=0
  ;   K[13]='m_boostBonusGo'
  ;   K[14]='SetActive'
  ;   K[15]='m_boostBonusText'
  ;   K[16]='text'
  ;   K[17]='+'
  ;   K[18]='GameTextModel'
  ;   K[19]='GetText'
  ;   K[20]='common_time_m'
  ;   K[21]='GetEnergyBoostCostNum'
  ;   K[22]='m_boostBonusIconGox2'
  ;   K[23]=2
  ;   K[24]='m_boostBonusIconGox4'
  ;   K[25]=4
  ;   upvals: _ENV
  ;   locals: self(0-64), buyEnergyCost(0-64), buyEnergyCount(8-64), afterEnergyNum(15-64), bonusDuration(21-64), eEnergyBoostType(21-64), costNum(49-63)
  0000  GETTABLE  R2 = R0[K0('m_bBuying')]
  0001  TEST      if not R2 then   -> -131069
  0002  JMP       (jump)   -> 4
  0003  RETURN    return R0..R-1
  0004  GETTABUP  R2 = _ENV[K1('GM')]
  0005  GETTABLE  R2 = R2[K2('ShopDataModel')]
  0006  SELF      R3 = R2[K3('GetBuyEnergyCount')] (self)
  0007  CALL      R2 = call(R2, 1 args, 1 rets)
  0008  GETTABUP  R3 = _ENV[K1('GM')]
  0009  GETTABLE  R3 = R3[K4('EnergyModel')]
  0010  SELF      R4 = R3[K5('GetEnergy')] (self)
  0011  GETTABUP  R5 = _ENV[K6('EnergyType')]
  0012  GETTABLE  R5 = R5[K7('Main')]
  0013  CALL      R3 = call(R3, 1 args, 2 rets)
  0014  ADD       R3 = R3 add R2
  0015  GETTABUP  R4 = _ENV[K1('GM')]
  0016  GETTABLE  R4 = R4[K8('EnergyBoostModel')]
  0017  SELF      R5 = R4[K9('GetBoostBonusDurationInMin')] (self)
  0018  MOVE      R6 = R0
  0019  MOVE      R7 = R0
  0020  CALL      R4 = call(R4, 2 args, 3 rets)
  0021  SETTABLE  R0[K10('m_boostBonusDuration')] = R4
  0022  SETTABLE  R0[K11('m_boostBonusType')] = R5
  0023  LE        if R0 le K12(0)   -> -128731
  0024  JMP       (jump)   -> 30
  0025  GETTABLE  R6 = R0[K13('m_boostBonusGo')]
  0026  SELF      R7 = R6[K14('SetActive')] (self)
  0027  LOADBOOL  R8 = false
  0028  CALL      R6 = call(R6, 0 args, 2 rets)
  0029  JMP       (jump)   -> 63
  0030  GETTABLE  R6 = R0[K13('m_boostBonusGo')]
  0031  SELF      R7 = R6[K14('SetActive')] (self)
  0032  LOADBOOL  R8 = true
  0033  CALL      R6 = call(R6, 0 args, 2 rets)
  0034  GETTABLE  R6 = R0[K15('m_boostBonusText')]
  0035  LOADK     R7 = K17 '+'
  0036  MOVE      R8 = R0
  0037  GETTABUP  R9 = _ENV[K1('GM')]
  0038  GETTABLE  R9 = R9[K18('GameTextModel')]
  0039  SELF      R10 = R9[K19('GetText')] (self)
  0040  LOADK     R11 = K20 'common_time_m'
  0041  CALL      R9 = call(R9, 1 args, 2 rets)
  0042  CONCAT    R7 = concat(R7..R7)
  0043  SETTABLE  R6[K16('text')] = R7
  0044  GETTABUP  R6 = _ENV[K1('GM')]
  0045  GETTABLE  R6 = R6[K8('EnergyBoostModel')]
  0046  SELF      R7 = R6[K21('GetEnergyBoostCostNum')] (self)
  0047  MOVE      R8 = R0
  0048  CALL      R6 = call(R6, 1 args, 2 rets)
  0049  GETTABLE  R7 = R0[K22('m_boostBonusIconGox2')]
  0050  SELF      R8 = R7[K14('SetActive')] (self)
  0051  EQ        if R1 eq K23(2)   -> -127668
  0052  JMP       (jump)   -> 54
  0053  LOADBOOL  R9 = false
  0054  LOADBOOL  R9 = true
  0055  CALL      R7 = call(R7, 0 args, 2 rets)
  0056  GETTABLE  R7 = R0[K24('m_boostBonusIconGox4')]
  0057  SELF      R8 = R7[K14('SetActive')] (self)
  0058  EQ        if R1 eq K25(4)   -> -127659
  0059  JMP       (jump)   -> 61
  0060  LOADBOOL  R9 = false
  0061  LOADBOOL  R9 = true
  0062  CALL      R7 = call(R7, 0 args, 2 rets)
  0063  RETURN    return R0..R-1
; ---------- proto7 [OnCloseFinish] ----------
  ; fn ?  line 122-153 np=1 va=0 ms=7 code=104 consts=48 upvals=1 protos=0
  ;   K[0]='m_bBuySuccess'
  ;   K[1]=1
  ;   K[2]='PROPERTY_TYPE'
  ;   K[3]='EnergyModel'
  ;   K[4]='EnergyType2PropertyType'
  ;   K[5]='Type'
  ;   K[6]='PROPERTY_COUNT'
  ;   K[7]='m_energyCount'
  ;   K[8]=0
  ;   K[9]='eventLock'
  ;   K[10]=false
  ;   K[11]='RewardApi'
  ;   K[12]='AcquireRewardsInView'
  ;   K[13]='ERewardScene'
  ;   K[14]='Other'
  ;   K[15]='GM'
  ;   K[16]='ShopModel'
  ;   K[17]='OnLackOfGem'
  ;   K[18]='m_shopModel'
  ;   K[19]='GetEnergyDatas'
  ;   K[20]='costNum'
  ;   K[21]='PropertyDataManager'
  ;   K[22]='GetPropertyNum'
  ;   K[23]='EPropertyType'
  ;   K[24]='Gem'
  ;   K[25]='EBIType'
  ;   K[26]='BuyEnergy'
  ;   K[27]='m_BuyEnergyBottomAdLuaTable'
  ;   K[28]='ClosedByBpAd'
  ;   K[29]='BaseWindow'
  ;   K[30]='OnCloseFinish'
  ;   K[31]='m_inShopWindow'
  ;   K[32]='UIManager'
  ;   K[33]='OpenView'
  ;   K[34]='UIPrefabConfigName'
  ;   K[35]='ShopWindow'
  ;   K[36]='EnergyType'
  ;   K[37]='Main'
  ;   K[38]='NotificationModel'
  ;   K[39]='TryOpenNotificationWindow'
  ;   K[40]='ENotiSceneDescKey'
  ;   K[41]='EnergyEmpty'
  ;   K[42]='m_popupForLackingEnergy'
  ;   K[43]='m_free2Refill'
  ;   K[44]='BundleManager'
  ;   K[45]='TryStartBundlePopupChain'
  ;   K[46]='EBundleTriggerType'
  ;   K[47]='LackEnergy'
  ;   upvals: _ENV
  ;   locals: self(0-104), viewRewards(4-29), viewData(22-29)
  0000  GETTABLE  R1 = R0[K0('m_bBuySuccess')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 30
  0003  NEWTABLE  R1 = {} (0 items)
  0004  LEN       R2 = len R0
  0005  ADD       R2 = K1(1) add R2
  0006  NEWTABLE  R3 = {} (0 items)
  0007  GETTABUP  R4 = _ENV[K2('PROPERTY_TYPE')]
  0008  GETTABUP  R5 = _ENV[K3('EnergyModel')]
  0009  GETTABLE  R5 = R5[K4('EnergyType2PropertyType')]
  0010  GETTABLE  R6 = R0[K5('Type')]
  0011  CALL      R5 = call(R5, 1 args, 1 rets)
  0012  SETTABLE  R3[R4] = R5
  0013  GETTABUP  R4 = _ENV[K6('PROPERTY_COUNT')]
  0014  GETTABLE  R5 = R0[K7('m_energyCount')]
  0015  TEST      if not R5 then   -> -131054
  0016  JMP       (jump)   -> 18
  0017  LOADK     R5 = K8 0
  0018  SETTABLE  R3[R4] = R5
  0019  SETTABLE  R1[R2] = R3
  0020  NEWTABLE  R2 = {} (0 items)
  0021  SETTABLE  R2[K9('eventLock')] = K10(false)
  0022  GETTABUP  R3 = _ENV[K11('RewardApi')]
  0023  GETTABLE  R3 = R3[K12('AcquireRewardsInView')]
  0024  MOVE      R4 = R0
  0025  MOVE      R5 = R0
  0026  GETTABUP  R6 = _ENV[K13('ERewardScene')]
  0027  GETTABLE  R6 = R6[K14('Other')]
  0028  CALL      R3 = call(R3, 0 args, 3 rets)
  0029  JMP       (jump)   -> 99
  0030  GETTABLE  R1 = R0[K0('m_bBuySuccess')]
  0031  EQ        if R0 eq K10(false)   -> -130261
  0032  JMP       (jump)   -> 53
  0033  GETTABUP  R1 = _ENV[K15('GM')]
  0034  GETTABLE  R1 = R1[K16('ShopModel')]
  0035  SELF      R2 = R1[K17('OnLackOfGem')] (self)
  0036  GETTABLE  R3 = R0[K18('m_shopModel')]
  0037  SELF      R4 = R3[K19('GetEnergyDatas')] (self)
  0038  GETTABLE  R5 = R0[K5('Type')]
  0039  CALL      R3 = call(R3, 1 args, 2 rets)
  0040  GETTABLE  R3 = R3[K1(1)]
  0041  GETTABLE  R3 = R3[K20('costNum')]
  0042  GETTABUP  R4 = _ENV[K15('GM')]
  0043  GETTABLE  R4 = R4[K21('PropertyDataManager')]
  0044  SELF      R5 = R4[K22('GetPropertyNum')] (self)
  0045  GETTABUP  R6 = _ENV[K23('EPropertyType')]
  0046  GETTABLE  R6 = R6[K24('Gem')]
  0047  CALL      R4 = call(R4, 1 args, 2 rets)
  0048  SUB       R3 = R4 sub R3
  0049  GETTABUP  R4 = _ENV[K25('EBIType')]
  0050  GETTABLE  R4 = R4[K26('BuyEnergy')]
  0051  CALL      R1 = call(R1, 0 args, 3 rets)
  0052  JMP       (jump)   -> 99
  0053  GETTABLE  R1 = R0[K27('m_BuyEnergyBottomAdLuaTable')]
  0054  SELF      R2 = R1[K28('ClosedByBpAd')] (self)
  0055  CALL      R1 = call(R1, 1 args, 1 rets)
  0056  TEST      if not R1 then   -> -131014
  0057  JMP       (jump)   -> 64
  0058  GETTABUP  R1 = _ENV[K29('BaseWindow')]
  0059  GETTABLE  R1 = R1[K30('OnCloseFinish')]
  0060  MOVE      R2 = R0
  0061  CALL      R1 = call(R1, 0 args, 1 rets)
  0062  RETURN    return R0..R-1
  0063  JMP       (jump)   -> 99
  0064  GETTABLE  R1 = R0[K31('m_inShopWindow')]
  0065  TEST      if not R1 then   -> -131005
  0066  JMP       (jump)   -> 76
  0067  GETTABUP  R1 = _ENV[K15('GM')]
  0068  GETTABLE  R1 = R1[K32('UIManager')]
  0069  SELF      R2 = R1[K33('OpenView')] (self)
  0070  GETTABUP  R3 = _ENV[K34('UIPrefabConfigName')]
  0071  GETTABLE  R3 = R3[K35('ShopWindow')]
  0072  LOADNIL   R4..R4 = nil
  0073  LOADBOOL  R5 = true
  0074  CALL      R1 = call(R1, 0 args, 4 rets)
  0075  JMP       (jump)   -> 99
  0076  GETTABLE  R1 = R0[K5('Type')]
  0077  GETTABUP  R2 = _ENV[K36('EnergyType')]
  0078  GETTABLE  R2 = R2[K37('Main')]
  0079  EQ        if R0 eq R2   -> -130477
  0080  JMP       (jump)   -> 99
  0081  GETTABUP  R1 = _ENV[K15('GM')]
  0082  GETTABLE  R1 = R1[K38('NotificationModel')]
  0083  SELF      R2 = R1[K39('TryOpenNotificationWindow')] (self)
  0084  GETTABUP  R3 = _ENV[K40('ENotiSceneDescKey')]
  0085  GETTABLE  R3 = R3[K41('EnergyEmpty')]
  0086  CALL      R1 = call(R1, 0 args, 2 rets)
  0087  GETTABLE  R1 = R0[K42('m_popupForLackingEnergy')]
  0088  TEST      if not R1 then   -> -130982
  0089  JMP       (jump)   -> 99
  0090  GETTABLE  R1 = R0[K43('m_free2Refill')]
  0091  TEST      if not R1 then   -> -130978
  0092  JMP       (jump)   -> 99
  0093  GETTABUP  R1 = _ENV[K15('GM')]
  0094  GETTABLE  R1 = R1[K44('BundleManager')]
  0095  SELF      R2 = R1[K45('TryStartBundlePopupChain')] (self)
  0096  GETTABUP  R3 = _ENV[K46('EBundleTriggerType')]
  0097  GETTABLE  R3 = R3[K47('LackEnergy')]
  0098  CALL      R1 = call(R1, 0 args, 2 rets)
  0099  GETTABUP  R1 = _ENV[K29('BaseWindow')]
  0100  GETTABLE  R1 = R1[K30('OnCloseFinish')]
  0101  MOVE      R2 = R0
  0102  CALL      R1 = call(R1, 0 args, 1 rets)
  0103  RETURN    return R0..R-1
; ---------- proto8 [OnClickBoostBonus] ----------
  ; fn ?  line 155-157 np=1 va=0 ms=5 code=8 consts=6 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='UIManager'
  ;   K[2]='OpenView'
  ;   K[3]='UIPrefabConfigName'
  ;   K[4]='EnergyBoostHelpWindow'
  ;   K[5]='m_boostBonusType'
  ;   upvals: _ENV
  ;   locals: self(0-8)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('UIManager')]
  0002  SELF      R2 = R1[K2('OpenView')] (self)
  0003  GETTABUP  R3 = _ENV[K3('UIPrefabConfigName')]
  0004  GETTABLE  R3 = R3[K4('EnergyBoostHelpWindow')]
  0005  GETTABLE  R4 = R0[K5('m_boostBonusType')]
  0006  CALL      R1 = call(R1, 0 args, 3 rets)
  0007  RETURN    return R0..R-1
