# Model_Tutorial_Executer_TutorialExecuterEnergy_2193.luac
; fn @TutorialExecuterEnergy.lua  line 0-0 np=0 va=1 ms=6 code=25 consts=13 upvals=1 protos=5
;   K[0]='ClickRefill'
;   K[1]='1'
;   K[2]='tutorial_out_of_energy'
;   K[3]=80
;   K[4]='setmetatable'
;   K[5]='AddToAutoPopup'
;   K[6]=false
;   K[7]='TutorialExecuter'
;   K[8]='__index'
;   K[9]='OnStart'
;   K[10]='_OnOpenView'
;   K[11]='_OnCloseView'
;   K[12]='_ExecuteStep1'
;   upvals: _ENV
;   locals: Step(2-25), EStep2TextKey(5-25), EStep2TextAnchorPercent(8-25), Executer(13-25)
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABLE  R0[K0('ClickRefill')] = K1('1')
0002  NEWTABLE  R1 = {} (0 items)
0003  GETTABLE  R2 = R0[K0('ClickRefill')]
0004  SETTABLE  R1[R2] = K2('tutorial_out_of_energy')
0005  NEWTABLE  R2 = {} (0 items)
0006  GETTABLE  R3 = R0[K0('ClickRefill')]
0007  SETTABLE  R2[R3] = K3(80)
0008  GETTABUP  R3 = _ENV[K4('setmetatable')]
0009  NEWTABLE  R4 = {} (0 items)
0010  SETTABLE  R4[K5('AddToAutoPopup')] = K6(false)
0011  GETTABUP  R5 = _ENV[K7('TutorialExecuter')]
0012  CALL      R3 = call(R3, 1 args, 2 rets)
0013  SETTABLE  R3[K8('__index')] = R3
0014  CLOSURE   R4 = closure proto0
0015  SETTABLE  R3[K9('OnStart')] = R4
0016  CLOSURE   R4 = closure proto1
0017  SETTABLE  R3[K10('_OnOpenView')] = R4
0018  CLOSURE   R4 = closure proto2
0019  SETTABLE  R3[K11('_OnCloseView')] = R4
0020  CLOSURE   R4 = closure proto3
0021  SETTABLE  R3[K12('_ExecuteStep1')] = R4
0022  CLOSURE   R4 = closure proto4
0023  RETURN    return R4..R3
0024  RETURN    return R0..R-1
; ---------- proto0 [OnStart] ----------
  ; fn ?  line 21-24 np=1 va=0 ms=5 code=15 consts=7 upvals=1 protos=0
  ;   K[0]='EventDispatcher'
  ;   K[1]='AddListener'
  ;   K[2]='EEventType'
  ;   K[3]='OpenView'
  ;   K[4]='_OnOpenView'
  ;   K[5]='OnViewWillClose'
  ;   K[6]='_OnCloseView'
  ;   upvals: _ENV
  ;   locals: self(0-15)
  0000  GETTABUP  R1 = _ENV[K0('EventDispatcher')]
  0001  GETTABLE  R1 = R1[K1('AddListener')]
  0002  GETTABUP  R2 = _ENV[K2('EEventType')]
  0003  GETTABLE  R2 = R2[K3('OpenView')]
  0004  MOVE      R3 = R0
  0005  GETTABLE  R4 = R0[K4('_OnOpenView')]
  0006  CALL      R1 = call(R1, 0 args, 3 rets)
  0007  GETTABUP  R1 = _ENV[K0('EventDispatcher')]
  0008  GETTABLE  R1 = R1[K1('AddListener')]
  0009  GETTABUP  R2 = _ENV[K2('EEventType')]
  0010  GETTABLE  R2 = R2[K5('OnViewWillClose')]
  0011  MOVE      R3 = R0
  0012  GETTABLE  R4 = R0[K6('_OnCloseView')]
  0013  CALL      R1 = call(R1, 0 args, 3 rets)
  0014  RETURN    return R0..R-1
; ---------- proto1 [_OnOpenView] ----------
  ; fn ?  line 26-38 np=2 va=0 ms=5 code=31 consts=16 upvals=1 protos=0
  ;   K[0]='name'
  ;   K[1]='UIPrefabConfigName'
  ;   K[2]='BuyEnergyWindow'
  ;   K[3]='GM'
  ;   K[4]='EnergyModel'
  ;   K[5]='GetEnergy'
  ;   K[6]='EnergyType'
  ;   K[7]='Main'
  ;   K[8]=0
  ;   K[9]='ShopModel'
  ;   K[10]='IsEnergyFreeRefill'
  ;   K[11]='Finish'
  ;   K[12]='LogTutorialStepFinish'
  ;   K[13]='TutorialExecuter'
  ;   K[14]='StepStart'
  ;   K[15]='_ExecuteStep1'
  ;   upvals: _ENV
  ;   locals: self(0-31), msg(0-31)
  0000  GETTABLE  R2 = R1[K0('name')]
  0001  GETTABUP  R3 = _ENV[K1('UIPrefabConfigName')]
  0002  GETTABLE  R3 = R3[K2('BuyEnergyWindow')]
  0003  EQ        if R0 eq R3   -> -130040
  0004  JMP       (jump)   -> 30
  0005  GETTABUP  R2 = _ENV[K3('GM')]
  0006  GETTABLE  R2 = R2[K4('EnergyModel')]
  0007  SELF      R3 = R2[K5('GetEnergy')] (self)
  0008  GETTABUP  R4 = _ENV[K6('EnergyType')]
  0009  GETTABLE  R4 = R4[K7('Main')]
  0010  CALL      R2 = call(R2, 1 args, 2 rets)
  0011  EQ        if R0 eq K8(0)   -> -129771
  0012  JMP       (jump)   -> 30
  0013  GETTABUP  R2 = _ENV[K3('GM')]
  0014  GETTABLE  R2 = R2[K9('ShopModel')]
  0015  SELF      R3 = R2[K10('IsEnergyFreeRefill')] (self)
  0016  GETTABUP  R4 = _ENV[K6('EnergyType')]
  0017  GETTABLE  R4 = R4[K7('Main')]
  0018  CALL      R2 = call(R2, 1 args, 2 rets)
  0019  TEST      if not R2 then   -> -131050
  0020  JMP       (jump)   -> 24
  0021  SELF      R3 = R0[K11('Finish')] (self)
  0022  CALL      R2 = call(R2, 0 args, 1 rets)
  0023  RETURN    return R0..R-1
  0024  SELF      R3 = R0[K12('LogTutorialStepFinish')] (self)
  0025  GETTABUP  R4 = _ENV[K13('TutorialExecuter')]
  0026  GETTABLE  R4 = R4[K14('StepStart')]
  0027  CALL      R2 = call(R2, 0 args, 2 rets)
  0028  SELF      R3 = R0[K15('_ExecuteStep1')] (self)
  0029  CALL      R2 = call(R2, 0 args, 1 rets)
  0030  RETURN    return R0..R-1
; ---------- proto2 [_OnCloseView] ----------
  ; fn ?  line 40-47 np=2 va=0 ms=5 code=16 consts=8 upvals=1 protos=0
  ;   K[0]='name'
  ;   K[1]='UIPrefabConfigName'
  ;   K[2]='BuyEnergyWindow'
  ;   K[3]='btnRectTrans'
  ;   K[4]='TutorialHelper'
  ;   K[5]='DehighlightForUI'
  ;   K[6]='Finish'
  ;   K[7]='m_gesture'
  ;   upvals: _ENV
  ;   locals: self(0-16), msg(0-16)
  0000  GETTABLE  R2 = R1[K0('name')]
  0001  GETTABUP  R3 = _ENV[K1('UIPrefabConfigName')]
  0002  GETTABLE  R3 = R3[K2('BuyEnergyWindow')]
  0003  EQ        if R0 eq R3   -> -130040
  0004  JMP       (jump)   -> 15
  0005  GETTABLE  R2 = R0[K3('btnRectTrans')]
  0006  TEST      if not R2 then   -> -131064
  0007  JMP       (jump)   -> 15
  0008  GETTABUP  R2 = _ENV[K4('TutorialHelper')]
  0009  GETTABLE  R2 = R2[K5('DehighlightForUI')]
  0010  GETTABLE  R3 = R0[K3('btnRectTrans')]
  0011  CALL      R2 = call(R2, 0 args, 1 rets)
  0012  SELF      R3 = R0[K6('Finish')] (self)
  0013  GETTABLE  R4 = R0[K7('m_gesture')]
  0014  CALL      R2 = call(R2, 0 args, 2 rets)
  0015  RETURN    return R0..R-1
; ---------- proto3 [_ExecuteStep1] ----------
  ; fn ?  line 49-68 np=1 va=0 ms=5 code=54 consts=26 upvals=4 protos=0
  ;   K[0]='m_model'
  ;   K[1]='SetTutorialFinished'
  ;   K[2]='GetTutorialId'
  ;   K[3]='SetStrongTutorial'
  ;   K[4]='m_strOngoingDatas'
  ;   K[5]='ClickRefill'
  ;   K[6]='TutorialHelper'
  ;   K[7]='WholeMask'
  ;   K[8]='ShowDialog'
  ;   K[9]='GM'
  ;   K[10]='GameTextModel'
  ;   K[11]='GetText'
  ;   K[12]='UIManager'
  ;   K[13]='GetOpenedViewByName'
  ;   K[14]='UIPrefabConfigName'
  ;   K[15]='BuyEnergyWindow'
  ;   K[16]='Finish'
  ;   K[17]='btnRectTrans'
  ;   K[18]='GetBtnRectTrans'
  ;   K[19]='HighlightForUI'
  ;   K[20]='m_gesture'
  ;   K[21]='TapOnCustomRectTrans'
  ;   K[22]='UpdateSortingOrder'
  ;   K[23]='ESpecialViewSortingOrder'
  ;   K[24]='TutorialHighlight'
  ;   K[25]=1
  ;   upvals: Step, _ENV, EStep2TextKey, EStep2TextAnchorPercent
  ;   locals: self(0-54), window(30-54)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  SELF      R2 = R1[K1('SetTutorialFinished')] (self)
  0002  SELF      R4 = R0[K2('GetTutorialId')] (self)
  0003  CALL      R3 = call(R3, -1 args, 1 rets)
  0004  CALL      R1 = call(R1, 0 args, -1 rets)
  0005  SELF      R2 = R0[K3('SetStrongTutorial')] (self)
  0006  LOADBOOL  R3 = true
  0007  CALL      R1 = call(R1, 0 args, 2 rets)
  0008  GETTABUP  R1 = Step[K5('ClickRefill')]
  0009  SETTABLE  R0[K4('m_strOngoingDatas')] = R1
  0010  GETTABUP  R1 = _ENV[K6('TutorialHelper')]
  0011  GETTABLE  R1 = R1[K7('WholeMask')]
  0012  CALL      R1 = call(R1, 0 args, 0 rets)
  0013  GETTABUP  R1 = _ENV[K6('TutorialHelper')]
  0014  GETTABLE  R1 = R1[K8('ShowDialog')]
  0015  GETTABUP  R2 = _ENV[K9('GM')]
  0016  GETTABLE  R2 = R2[K10('GameTextModel')]
  0017  SELF      R3 = R2[K11('GetText')] (self)
  0018  GETTABLE  R4 = R0[K4('m_strOngoingDatas')]
  0019  GETTABUP  R4 = EStep2TextKey[R4]
  0020  CALL      R2 = call(R2, 1 args, 2 rets)
  0021  GETTABLE  R3 = R0[K4('m_strOngoingDatas')]
  0022  GETTABUP  R3 = EStep2TextAnchorPercent[R3]
  0023  CALL      R1 = call(R1, 0 args, 2 rets)
  0024  GETTABUP  R1 = _ENV[K9('GM')]
  0025  GETTABLE  R1 = R1[K12('UIManager')]
  0026  SELF      R2 = R1[K13('GetOpenedViewByName')] (self)
  0027  GETTABUP  R3 = _ENV[K14('UIPrefabConfigName')]
  0028  GETTABLE  R3 = R3[K15('BuyEnergyWindow')]
  0029  CALL      R1 = call(R1, 1 args, 2 rets)
  0030  TEST      if not R1 then   -> -131039
  0031  JMP       (jump)   -> 35
  0032  SELF      R3 = R0[K16('Finish')] (self)
  0033  CALL      R2 = call(R2, 0 args, 1 rets)
  0034  RETURN    return R0..R-1
  0035  SELF      R3 = R1[K18('GetBtnRectTrans')] (self)
  0036  CALL      R2 = call(R2, 1 args, 1 rets)
  0037  SETTABLE  R0[K17('btnRectTrans')] = R2
  0038  GETTABUP  R2 = _ENV[K6('TutorialHelper')]
  0039  GETTABLE  R2 = R2[K19('HighlightForUI')]
  0040  GETTABLE  R3 = R0[K17('btnRectTrans')]
  0041  CALL      R2 = call(R2, 0 args, 1 rets)
  0042  GETTABUP  R2 = _ENV[K6('TutorialHelper')]
  0043  GETTABLE  R2 = R2[K21('TapOnCustomRectTrans')]
  0044  GETTABLE  R3 = R0[K17('btnRectTrans')]
  0045  CALL      R2 = call(R2, 1 args, 1 rets)
  0046  SETTABLE  R0[K20('m_gesture')] = R2
  0047  GETTABLE  R2 = R0[K20('m_gesture')]
  0048  SELF      R3 = R2[K22('UpdateSortingOrder')] (self)
  0049  GETTABUP  R4 = _ENV[K23('ESpecialViewSortingOrder')]
  0050  GETTABLE  R4 = R4[K24('TutorialHighlight')]
  0051  ADD       R4 = K25(1) add R4
  0052  CALL      R2 = call(R2, 0 args, 2 rets)
  0053  RETURN    return R0..R-1
; ---------- proto4 [] ----------
  ; fn ?  line 70-72 np=2 va=0 ms=6 code=8 consts=2 upvals=2 protos=0
  ;   K[0]='TutorialExecuter'
  ;   K[1]='CreateExecuter'
  ;   upvals: _ENV, Executer
  ;   locals: tutorialId(0-8), strDatas(0-8)
  0000  GETTABUP  R2 = _ENV[K0('TutorialExecuter')]
  0001  GETTABLE  R2 = R2[K1('CreateExecuter')]
  0002  GETUPVAL  R3 = _ENV
  0003  MOVE      R4 = R0
  0004  MOVE      R5 = R0
  0005  TAILCALL  tailcall(R2, 0)
  0006  RETURN    return R2..R1
  0007  RETURN    return R0..R-1
