# Model_Tutorial_Executer_TutorialExecuterAdventureBoardFog_2197.luac
; fn @TutorialExecuterAdventureBoardFog.lua  line 0-0 np=0 va=1 ms=5 code=24 consts=13 upvals=1 protos=6
;   K[0]='HighlightBoard'
;   K[1]='1'
;   K[2]='adventureboard_guide_1'
;   K[3]='setmetatable'
;   K[4]='AddToAutoPopup'
;   K[5]=false
;   K[6]='TutorialExecuter'
;   K[7]='__index'
;   K[8]='OnStart'
;   K[9]='_OnActivityStateChanged'
;   K[10]='OnFogUnlocked'
;   K[11]='_ExecuteStep1'
;   K[12]='Finish'
;   upvals: _ENV
;   locals: Step(2-24), EStep2TextKey(5-24), Executer(10-24)
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABLE  R0[K0('HighlightBoard')] = K1('1')
0002  NEWTABLE  R1 = {} (0 items)
0003  GETTABLE  R2 = R0[K0('HighlightBoard')]
0004  SETTABLE  R1[R2] = K2('adventureboard_guide_1')
0005  GETTABUP  R2 = _ENV[K3('setmetatable')]
0006  NEWTABLE  R3 = {} (0 items)
0007  SETTABLE  R3[K4('AddToAutoPopup')] = K5(false)
0008  GETTABUP  R4 = _ENV[K6('TutorialExecuter')]
0009  CALL      R2 = call(R2, 1 args, 2 rets)
0010  SETTABLE  R2[K7('__index')] = R2
0011  CLOSURE   R3 = closure proto0
0012  SETTABLE  R2[K8('OnStart')] = R3
0013  CLOSURE   R3 = closure proto1
0014  SETTABLE  R2[K9('_OnActivityStateChanged')] = R3
0015  CLOSURE   R3 = closure proto2
0016  SETTABLE  R2[K10('OnFogUnlocked')] = R3
0017  CLOSURE   R3 = closure proto3
0018  SETTABLE  R2[K11('_ExecuteStep1')] = R3
0019  CLOSURE   R3 = closure proto4
0020  SETTABLE  R2[K12('Finish')] = R3
0021  CLOSURE   R3 = closure proto5
0022  RETURN    return R3..R2
0023  RETURN    return R0..R-1
; ---------- proto0 [OnStart] ----------
  ; fn ?  line 19-28 np=1 va=0 ms=10 code=22 consts=10 upvals=1 protos=0
  ;   K[0]='m_activityDefinitions'
  ;   K[1]='AdventureBoardDefinition'
  ;   K[2]='pairs'
  ;   K[3]='EventDispatcher'
  ;   K[4]='AddListener'
  ;   K[5]='StateChangedEvent'
  ;   K[6]='_OnActivityStateChanged'
  ;   K[7]='EEventType'
  ;   K[8]='FogUnlock'
  ;   K[9]='OnFogUnlocked'
  ;   upvals: _ENV
  ;   locals: self(0-22), (for generator)(5-14), (for state)(5-14), (for control)(5-14), _(6-12), v(6-12)
  0000  GETTABUP  R1 = _ENV[K1('AdventureBoardDefinition')]
  0001  SETTABLE  R0[K0('m_activityDefinitions')] = R1
  0002  GETTABUP  R1 = _ENV[K2('pairs')]
  0003  GETTABLE  R2 = R0[K0('m_activityDefinitions')]
  0004  CALL      R1 = call(R1, 3 args, 1 rets)
  0005  JMP       (jump)   -> 12
  0006  GETTABUP  R6 = _ENV[K3('EventDispatcher')]
  0007  GETTABLE  R6 = R6[K4('AddListener')]
  0008  GETTABLE  R7 = R5[K5('StateChangedEvent')]
  0009  MOVE      R8 = R0
  0010  GETTABLE  R9 = R0[K6('_OnActivityStateChanged')]
  0011  CALL      R6 = call(R6, 0 args, 3 rets)
  0012  TFORCALL  tforcall R1
  0013  TFORLOOP  tforloop R3(sBx=-8)   -> 6
  0014  GETTABUP  R1 = _ENV[K3('EventDispatcher')]
  0015  GETTABLE  R1 = R1[K4('AddListener')]
  0016  GETTABUP  R2 = _ENV[K7('EEventType')]
  0017  GETTABLE  R2 = R2[K8('FogUnlock')]
  0018  MOVE      R3 = R0
  0019  GETTABLE  R4 = R0[K9('OnFogUnlocked')]
  0020  CALL      R1 = call(R1, 0 args, 3 rets)
  0021  RETURN    return R0..R-1
; ---------- proto1 [_OnActivityStateChanged] ----------
  ; fn ?  line 31-37 np=1 va=0 ms=4 code=20 consts=9 upvals=1 protos=0
  ;   K[0]='StringUtil'
  ;   K[1]='IsNilOrEmpty'
  ;   K[2]='m_strOngoingDatas'
  ;   K[3]='GM'
  ;   K[4]='TutorialModel'
  ;   K[5]='SetForceSourceBoardPosition'
  ;   K[6]='SetForceTargetBoardPosition'
  ;   K[7]='Finish'
  ;   K[8]='m_gesture'
  ;   upvals: _ENV
  ;   locals: self(0-20)
  0000  GETTABUP  R1 = _ENV[K0('StringUtil')]
  0001  GETTABLE  R1 = R1[K1('IsNilOrEmpty')]
  0002  GETTABLE  R2 = R0[K2('m_strOngoingDatas')]
  0003  CALL      R1 = call(R1, 1 args, 1 rets)
  0004  TEST      if not R1 then   -> -131065
  0005  JMP       (jump)   -> 19
  0006  GETTABUP  R1 = _ENV[K3('GM')]
  0007  GETTABLE  R1 = R1[K4('TutorialModel')]
  0008  SELF      R2 = R1[K5('SetForceSourceBoardPosition')] (self)
  0009  LOADNIL   R3..R3 = nil
  0010  CALL      R1 = call(R1, 0 args, 2 rets)
  0011  GETTABUP  R1 = _ENV[K3('GM')]
  0012  GETTABLE  R1 = R1[K4('TutorialModel')]
  0013  SELF      R2 = R1[K6('SetForceTargetBoardPosition')] (self)
  0014  LOADNIL   R3..R3 = nil
  0015  CALL      R1 = call(R1, 0 args, 2 rets)
  0016  SELF      R2 = R0[K7('Finish')] (self)
  0017  GETTABLE  R3 = R0[K8('m_gesture')]
  0018  CALL      R1 = call(R1, 0 args, 2 rets)
  0019  RETURN    return R0..R-1
; ---------- proto2 [OnFogUnlocked] ----------
  ; fn ?  line 39-53 np=2 va=0 ms=5 code=23 consts=9 upvals=0 protos=0
  ;   K[0]='boardModel'
  ;   K[1]=nil
  ;   K[2]='m_activityType'
  ;   K[3]='GetActivityType'
  ;   K[4]='m_activityDefinition'
  ;   K[5]='m_activityDefinitions'
  ;   K[6]='m_bMove'
  ;   K[7]='bMove'
  ;   K[8]='_ExecuteStep1'
  ;   locals: self(0-23), msg(0-23), boardModel(1-23)
  0000  GETTABLE  R2 = R1[K0('boardModel')]
  0001  EQ        if R0 eq K1(nil)   -> -129788
  0002  JMP       (jump)   -> 4
  0003  RETURN    return R0..R-1
  0004  SELF      R4 = R2[K3('GetActivityType')] (self)
  0005  CALL      R3 = call(R3, 1 args, 1 rets)
  0006  SETTABLE  R0[K2('m_activityType')] = R3
  0007  GETTABLE  R3 = R0[K5('m_activityDefinitions')]
  0008  GETTABLE  R4 = R0[K2('m_activityType')]
  0009  GETTABLE  R3 = R3[R4]
  0010  SETTABLE  R0[K4('m_activityDefinition')] = R3
  0011  GETTABLE  R3 = R1[K7('bMove')]
  0012  SETTABLE  R0[K6('m_bMove')] = R3
  0013  GETTABLE  R3 = R0[K2('m_activityType')]
  0014  EQ        if R1 eq K1(nil)   -> -129263
  0015  JMP       (jump)   -> 19
  0016  GETTABLE  R3 = R0[K4('m_activityDefinition')]
  0017  EQ        if R0 eq K1(nil)   -> -129260
  0018  JMP       (jump)   -> 20
  0019  RETURN    return R0..R-1
  0020  SELF      R4 = R0[K8('_ExecuteStep1')] (self)
  0021  CALL      R3 = call(R3, 0 args, 1 rets)
  0022  RETURN    return R0..R-1
; ---------- proto3 [_ExecuteStep1] ----------
  ; fn ?  line 55-85 np=1 va=0 ms=5 code=30 consts=14 upvals=3 protos=1
  ;   K[0]='m_strOngoingDatas'
  ;   K[1]='HighlightBoard'
  ;   K[2]='SetStrongTutorial'
  ;   K[3]='GM'
  ;   K[4]='TutorialModel'
  ;   K[5]='SetTutorialFinished'
  ;   K[6]='GetTutorialId'
  ;   K[7]='LogTutorialStepFinish'
  ;   K[8]='UIManager'
  ;   K[9]='SetEventLock'
  ;   K[10]='DelayExecuteFunc'
  ;   K[11]='m_bMove'
  ;   K[12]=6
  ;   K[13]=3
  ;   upvals: Step, _ENV, EStep2TextKey
  ;   locals: self(0-30)
  0000  GETTABUP  R1 = Step[K1('HighlightBoard')]
  0001  SETTABLE  R0[K0('m_strOngoingDatas')] = R1
  0002  SELF      R2 = R0[K2('SetStrongTutorial')] (self)
  0003  LOADBOOL  R3 = true
  0004  CALL      R1 = call(R1, 0 args, 2 rets)
  0005  GETTABUP  R1 = _ENV[K3('GM')]
  0006  GETTABLE  R1 = R1[K4('TutorialModel')]
  0007  SELF      R2 = R1[K5('SetTutorialFinished')] (self)
  0008  SELF      R4 = R0[K6('GetTutorialId')] (self)
  0009  CALL      R3 = call(R3, -1 args, 1 rets)
  0010  CALL      R1 = call(R1, 0 args, -1 rets)
  0011  SELF      R2 = R0[K7('LogTutorialStepFinish')] (self)
  0012  GETTABLE  R3 = R0[K0('m_strOngoingDatas')]
  0013  CALL      R1 = call(R1, 0 args, 2 rets)
  0014  GETTABUP  R1 = _ENV[K3('GM')]
  0015  GETTABLE  R1 = R1[K8('UIManager')]
  0016  SELF      R2 = R1[K9('SetEventLock')] (self)
  0017  LOADBOOL  R3 = true
  0018  CALL      R1 = call(R1, 0 args, 2 rets)
  0019  GETTABUP  R1 = _ENV[K10('DelayExecuteFunc')]
  0020  CLOSURE   R2 = closure proto0
  0021  GETTABLE  R3 = R0[K11('m_bMove')]
  0022  TEST      if not R3 then   -> -131048
  0023  JMP       (jump)   -> 27
  0024  LOADK     R3 = K12 6
  0025  TEST      if not R3 then   -> -131044
  0026  JMP       (jump)   -> 28
  0027  LOADK     R3 = K13 3
  0028  CALL      R1 = call(R1, 0 args, 2 rets)
  0029  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 64-84 np=0 va=0 ms=7 code=53 consts=25 upvals=3 protos=1
    ;   K[0]='GM'
    ;   K[1]='UIManager'
    ;   K[2]='SetEventLock'
    ;   K[3]='GetOpenedViewByName'
    ;   K[4]='m_activityDefinition'
    ;   K[5]='MainWindowPrefabName'
    ;   K[6]='ModeViewController'
    ;   K[7]='GetExtraBoardActivityBoardView'
    ;   K[8]=nil
    ;   K[9]='Finish'
    ;   K[10]='m_gesture'
    ;   K[11]='GetBoardContainerTrans'
    ;   K[12]='TutorialHelper'
    ;   K[13]='HighlightForUI'
    ;   K[14]='m_boardContainerTrans'
    ;   K[15]='WholeMask'
    ;   K[16]='ShowDialog'
    ;   K[17]='GameTextModel'
    ;   K[18]='GetText'
    ;   K[19]='m_strOngoingDatas'
    ;   K[20]=30
    ;   K[21]='UpdateDialogSortingOrder'
    ;   K[22]='ESpecialViewSortingOrder'
    ;   K[23]='TutorialHighlight'
    ;   K[24]=1
    ;   upvals: _ENV, self, EStep2TextKey
    ;   locals: window(11-53), boardView(15-53), boardContainerTrans(26-53)
    0000  GETTABUP  R0 = _ENV[K0('GM')]
    0001  GETTABLE  R0 = R0[K1('UIManager')]
    0002  SELF      R1 = R0[K2('SetEventLock')] (self)
    0003  LOADBOOL  R2 = false
    0004  CALL      R0 = call(R0, 0 args, 2 rets)
    0005  GETTABUP  R0 = _ENV[K0('GM')]
    0006  GETTABLE  R0 = R0[K1('UIManager')]
    0007  SELF      R1 = R0[K3('GetOpenedViewByName')] (self)
    0008  GETTABUP  R2 = self[K4('m_activityDefinition')]
    0009  GETTABLE  R2 = R2[K5('MainWindowPrefabName')]
    0010  CALL      R0 = call(R0, 1 args, 2 rets)
    0011  GETTABUP  R1 = _ENV[K0('GM')]
    0012  GETTABLE  R1 = R1[K6('ModeViewController')]
    0013  SELF      R2 = R1[K7('GetExtraBoardActivityBoardView')] (self)
    0014  CALL      R1 = call(R1, 1 args, 1 rets)
    0015  EQ        if R1 eq K8(nil)   -> -130279
    0016  JMP       (jump)   -> 19
    0017  EQ        if R0 eq K8(nil)   -> -130789
    0018  JMP       (jump)   -> 24
    0019  GETUPVAL  R2 = _ENV
    0020  SELF      R3 = R2[K9('Finish')] (self)
    0021  GETTABUP  R4 = self[K10('m_gesture')]
    0022  CALL      R2 = call(R2, 0 args, 2 rets)
    0023  RETURN    return R0..R-1
    0024  SELF      R3 = R0[K11('GetBoardContainerTrans')] (self)
    0025  CALL      R2 = call(R2, 1 args, 1 rets)
    0026  GETTABUP  R3 = _ENV[K12('TutorialHelper')]
    0027  GETTABLE  R3 = R3[K13('HighlightForUI')]
    0028  MOVE      R4 = R0
    0029  LOADBOOL  R5 = true
    0030  CALL      R3 = call(R3, 0 args, 2 rets)
    0031  SETTABUP  self[K14('m_boardContainerTrans')] = R2
    0032  GETTABUP  R3 = _ENV[K12('TutorialHelper')]
    0033  GETTABLE  R3 = R3[K15('WholeMask')]
    0034  CLOSURE   R4 = closure proto0
    0035  CALL      R3 = call(R3, 0 args, 1 rets)
    0036  GETTABUP  R3 = _ENV[K12('TutorialHelper')]
    0037  GETTABLE  R3 = R3[K16('ShowDialog')]
    0038  GETTABUP  R4 = _ENV[K0('GM')]
    0039  GETTABLE  R4 = R4[K17('GameTextModel')]
    0040  SELF      R5 = R4[K18('GetText')] (self)
    0041  GETTABUP  R6 = self[K19('m_strOngoingDatas')]
    0042  GETTABUP  R6 = EStep2TextKey[R6]
    0043  CALL      R4 = call(R4, 1 args, 2 rets)
    0044  LOADK     R5 = K20 30
    0045  CALL      R3 = call(R3, 0 args, 2 rets)
    0046  GETTABUP  R3 = _ENV[K12('TutorialHelper')]
    0047  GETTABLE  R3 = R3[K21('UpdateDialogSortingOrder')]
    0048  GETTABUP  R4 = _ENV[K22('ESpecialViewSortingOrder')]
    0049  GETTABLE  R4 = R4[K23('TutorialHighlight')]
    0050  ADD       R4 = K24(1) add R4
    0051  CALL      R3 = call(R3, 0 args, 1 rets)
    0052  RETURN    return R0..R-1
    ; ---------- proto0 [] ----------
      ; fn ?  line 78-80 np=0 va=0 ms=2 code=4 consts=1 upvals=1 protos=0
      ;   K[0]='Finish'
      ;   upvals: self
      0000  GETUPVAL  R0 = self
      0001  SELF      R1 = R0[K0('Finish')] (self)
      0002  CALL      R0 = call(R0, 0 args, 1 rets)
      0003  RETURN    return R0..R-1
; ---------- proto4 [Finish] ----------
  ; fn ?  line 87-93 np=1 va=1 ms=4 code=19 consts=7 upvals=1 protos=0
  ;   K[0]='TutorialExecuter'
  ;   K[1]='Finish'
  ;   K[2]='m_boardContainerTrans'
  ;   K[3]=nil
  ;   K[4]='IsNull'
  ;   K[5]='TutorialHelper'
  ;   K[6]='DehighlightForUI'
  ;   upvals: _ENV
  ;   locals: self(0-19)
  0000  GETTABUP  R1 = _ENV[K0('TutorialExecuter')]
  0001  GETTABLE  R1 = R1[K1('Finish')]
  0002  MOVE      R2 = R0
  0003  VARARG    R3 = vararg(0)
  0004  CALL      R1 = call(R1, 0 args, -1 rets)
  0005  GETTABLE  R1 = R0[K2('m_boardContainerTrans')]
  0006  EQ        if R1 eq K3(nil)   -> -130293
  0007  JMP       (jump)   -> 18
  0008  GETTABLE  R1 = R0[K2('m_boardContainerTrans')]
  0009  SELF      R2 = R1[K4('IsNull')] (self)
  0010  CALL      R1 = call(R1, 1 args, 1 rets)
  0011  TEST      if not R1 then   -> -131058
  0012  JMP       (jump)   -> 18
  0013  GETTABUP  R1 = _ENV[K5('TutorialHelper')]
  0014  GETTABLE  R1 = R1[K6('DehighlightForUI')]
  0015  GETTABLE  R2 = R0[K2('m_boardContainerTrans')]
  0016  CALL      R1 = call(R1, 0 args, 1 rets)
  0017  SETTABLE  R0[K2('m_boardContainerTrans')] = K3(nil)
  0018  RETURN    return R0..R-1
; ---------- proto5 [] ----------
  ; fn ?  line 95-97 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
