# EnergyBoost_View_EnergyBoostHelpWindow_920.luac
; fn @EnergyBoostHelpWindow.lua  line 0-0 np=0 va=1 ms=3 code=19 consts=11 upvals=1 protos=2
;   K[0]='EnergyBoostHelpWindow'
;   K[1]='setmetatable'
;   K[2]='windowMaskAlpha'
;   K[3]='EWindowMaskAlpha'
;   K[4]='Dark'
;   K[5]='disableEffectWhenCloseView'
;   K[6]=true
;   K[7]='BaseWindow'
;   K[8]='__index'
;   K[9]='Init'
;   K[10]='_LoadPdImage'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K3('EWindowMaskAlpha')]
0003  GETTABLE  R2 = R2[K4('Dark')]
0004  SETTABLE  R1[K2('windowMaskAlpha')] = R2
0005  SETTABLE  R1[K5('disableEffectWhenCloseView')] = K6(true)
0006  GETTABUP  R2 = _ENV[K7('BaseWindow')]
0007  CALL      R0 = call(R0, 1 args, 2 rets)
0008  SETTABUP  _ENV[K0('EnergyBoostHelpWindow')] = R0
0009  GETTABUP  R0 = _ENV[K0('EnergyBoostHelpWindow')]
0010  GETTABUP  R1 = _ENV[K0('EnergyBoostHelpWindow')]
0011  SETTABLE  R0[K8('__index')] = R1
0012  GETTABUP  R0 = _ENV[K0('EnergyBoostHelpWindow')]
0013  CLOSURE   R1 = closure proto0
0014  SETTABLE  R0[K9('Init')] = R1
0015  GETTABUP  R0 = _ENV[K0('EnergyBoostHelpWindow')]
0016  CLOSURE   R1 = closure proto1
0017  SETTABLE  R0[K10('_LoadPdImage')] = R1
0018  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 7-19 np=2 va=0 ms=10 code=53 consts=20 upvals=1 protos=0
  ;   K[0]='eEnergyBoostType'
  ;   K[1]='GM'
  ;   K[2]='EnergyBoostModel'
  ;   K[3]='GetEnergyBoostCostNum'
  ;   K[4]=1
  ;   K[5]=3
  ;   K[6]='_LoadPdImage'
  ;   K[7]='m_step'
  ;   K[8]='Gox2'
  ;   K[9]='SetActive'
  ;   K[10]=2
  ;   K[11]='Gox4'
  ;   K[12]=4
  ;   K[13]='m_descText1'
  ;   K[14]='text'
  ;   K[15]='GameTextModel'
  ;   K[16]='GetText'
  ;   K[17]='doubleEnergy_hint1'
  ;   K[18]='m_descText3'
  ;   K[19]='doubleEnergy_hint3'
  ;   upvals: _ENV
  ;   locals: self(0-53), eEnergyBoostType(0-53), cost(6-53), (for index)(9-36), (for limit)(9-36), (for step)(9-36), i(10-35)
  0000  SETTABLE  R0[K0('eEnergyBoostType')] = R1
  0001  GETTABUP  R2 = _ENV[K1('GM')]
  0002  GETTABLE  R2 = R2[K2('EnergyBoostModel')]
  0003  SELF      R3 = R2[K3('GetEnergyBoostCostNum')] (self)
  0004  MOVE      R4 = R0
  0005  CALL      R2 = call(R2, 1 args, 2 rets)
  0006  LOADK     R3 = K4 1
  0007  LOADK     R4 = K5 3
  0008  LOADK     R5 = K4 1
  0009  FORPREP   forprep R3(sBx=25)   -> 35
  0010  SELF      R8 = R0[K6('_LoadPdImage')] (self)
  0011  MOVE      R9 = R0
  0012  CALL      R7 = call(R7, 0 args, 2 rets)
  0013  LOADK     R7 = K7 'm_step'
  0014  MOVE      R8 = R0
  0015  LOADK     R9 = K8 'Gox2'
  0016  CONCAT    R7 = concat(R7..R7)
  0017  GETTABLE  R7 = R0[R7]
  0018  SELF      R8 = R7[K9('SetActive')] (self)
  0019  EQ        if R1 eq K10(2)   -> -129761
  0020  JMP       (jump)   -> 22
  0021  LOADBOOL  R9 = false
  0022  LOADBOOL  R9 = true
  0023  CALL      R7 = call(R7, 0 args, 2 rets)
  0024  LOADK     R7 = K7 'm_step'
  0025  MOVE      R8 = R0
  0026  LOADK     R9 = K11 'Gox4'
  0027  CONCAT    R7 = concat(R7..R7)
  0028  GETTABLE  R7 = R0[R7]
  0029  SELF      R8 = R7[K9('SetActive')] (self)
  0030  EQ        if R1 eq K12(4)   -> -129748
  0031  JMP       (jump)   -> 33
  0032  LOADBOOL  R9 = false
  0033  LOADBOOL  R9 = true
  0034  CALL      R7 = call(R7, 0 args, 2 rets)
  0035  FORLOOP   forloop R3(sBx=-26)   -> 10
  0036  GETTABLE  R3 = R0[K13('m_descText1')]
  0037  GETTABUP  R4 = _ENV[K1('GM')]
  0038  GETTABLE  R4 = R4[K15('GameTextModel')]
  0039  SELF      R5 = R4[K16('GetText')] (self)
  0040  LOADK     R6 = K17 'doubleEnergy_hint1'
  0041  MOVE      R7 = R0
  0042  CALL      R4 = call(R4, 1 args, 3 rets)
  0043  SETTABLE  R3[K14('text')] = R4
  0044  GETTABLE  R3 = R0[K18('m_descText3')]
  0045  GETTABUP  R4 = _ENV[K1('GM')]
  0046  GETTABLE  R4 = R4[K15('GameTextModel')]
  0047  SELF      R5 = R4[K16('GetText')] (self)
  0048  LOADK     R6 = K19 'doubleEnergy_hint3'
  0049  MOVE      R7 = R0
  0050  CALL      R4 = call(R4, 1 args, 3 rets)
  0051  SETTABLE  R3[K14('text')] = R4
  0052  RETURN    return R0..R-1
; ---------- proto1 [_LoadPdImage] ----------
  ; fn ?  line 21-41 np=3 va=0 ms=17 code=44 consts=12 upvals=1 protos=0
  ;   K[0]='m_pdImg'
  ;   K[1]='GM'
  ;   K[2]='ItemDataModel'
  ;   K[3]=4
  ;   K[4]='pd_'
  ;   K[5]='GetChainMaxLevel'
  ;   K[6]=1
  ;   K[7]='IsUnlocked'
  ;   K[8]='_'
  ;   K[9]='SpriteUtil'
  ;   K[10]='SetImage'
  ;   K[11]='ImageFileConfigName'
  ;   upvals: _ENV
  ;   locals: self(0-44), index(0-44), fadeInDelay(0-44), imageCmp(4-44), itemDataModel(9-44), maxUnlockedLevel(10-44), chain(13-44), chainMaxLevel(16-44), (for index)(19-32), (for limit)(19-32), (for step)(19-32), level(20-31), imageKey(36-44)
  0000  LOADK     R3 = K0 'm_pdImg'
  0001  MOVE      R4 = R0
  0002  CONCAT    R3 = concat(R3..R3)
  0003  GETTABLE  R3 = R0[R3]
  0004  TEST      if not R3 then   -> -131065
  0005  JMP       (jump)   -> 7
  0006  RETURN    return R0..R-1
  0007  GETTABUP  R4 = _ENV[K1('GM')]
  0008  GETTABLE  R4 = R4[K2('ItemDataModel')]
  0009  LOADK     R5 = K3 4
  0010  LOADK     R6 = K4 'pd_'
  0011  MOVE      R7 = R0
  0012  CONCAT    R6 = concat(R6..R6)
  0013  SELF      R8 = R4[K5('GetChainMaxLevel')] (self)
  0014  MOVE      R9 = R0
  0015  CALL      R7 = call(R7, 1 args, 2 rets)
  0016  ADD       R8 = K6(1) add R5
  0017  MOVE      R9 = R0
  0018  LOADK     R10 = K6 1
  0019  FORPREP   forprep R8(sBx=11)   -> 31
  0020  SELF      R13 = R4[K7('IsUnlocked')] (self)
  0021  MOVE      R14 = R0
  0022  LOADK     R15 = K8 '_'
  0023  MOVE      R16 = R0
  0024  CONCAT    R14 = concat(R14..R14)
  0025  CALL      R12 = call(R12, 1 args, 2 rets)
  0026  TEST      if not R12 then   -> -131044
  0027  JMP       (jump)   -> 32
  0028  MOVE      R5 = R0
  0029  JMP       (jump)   -> 31
  0030  JMP       (jump)   -> 32
  0031  FORLOOP   forloop R8(sBx=-12)   -> 20
  0032  MOVE      R8 = R0
  0033  LOADK     R9 = K8 '_'
  0034  MOVE      R10 = R0
  0035  CONCAT    R8 = concat(R8..R8)
  0036  GETTABUP  R9 = _ENV[K9('SpriteUtil')]
  0037  GETTABLE  R9 = R9[K10('SetImage')]
  0038  MOVE      R10 = R0
  0039  GETTABUP  R11 = _ENV[K11('ImageFileConfigName')]
  0040  GETTABLE  R11 = R11[R8]
  0041  LOADBOOL  R12 = true
  0042  CALL      R9 = call(R9, 0 args, 3 rets)
  0043  RETURN    return R0..R-1
