# FrameDecoActivity_View_FrameDecoActivityStartWindow_1742.luac
; fn @FrameDecoActivityStartWindow.lua  line 0-0 np=0 va=1 ms=3 code=45 consts=15 upvals=1 protos=6
;   K[0]='FrameDecoActivityStartWindow'
;   K[1]='setmetatable'
;   K[2]='canClickWindowMask'
;   K[3]=true
;   K[4]='FrameDecoActivityBaseWindow'
;   K[5]='__index'
;   K[6]='OnBtnClicked'
;   K[7]='OnCloseBtnClick'
;   K[8]='_OnCloseWindow'
;   K[9]='FrameDecoActivityEndWindow'
;   K[10]='FrameDecoActivityBaseWindow'
;   K[11]='FrameDecoActivityLastChanceWindow'
;   K[12]='Init'
;   K[13]='OnLeaveClick'
;   K[14]='OnGoClick'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  SETTABLE  R1[K2('canClickWindowMask')] = K3(true)
0003  GETTABUP  R2 = _ENV[K4('FrameDecoActivityBaseWindow')]
0004  CALL      R0 = call(R0, 1 args, 2 rets)
0005  SETTABUP  _ENV[K0('FrameDecoActivityStartWindow')] = R0
0006  GETTABUP  R0 = _ENV[K0('FrameDecoActivityStartWindow')]
0007  GETTABUP  R1 = _ENV[K0('FrameDecoActivityStartWindow')]
0008  SETTABLE  R0[K5('__index')] = R1
0009  GETTABUP  R0 = _ENV[K0('FrameDecoActivityStartWindow')]
0010  CLOSURE   R1 = closure proto0
0011  SETTABLE  R0[K6('OnBtnClicked')] = R1
0012  GETTABUP  R0 = _ENV[K0('FrameDecoActivityStartWindow')]
0013  CLOSURE   R1 = closure proto1
0014  SETTABLE  R0[K7('OnCloseBtnClick')] = R1
0015  GETTABUP  R0 = _ENV[K0('FrameDecoActivityStartWindow')]
0016  CLOSURE   R1 = closure proto2
0017  SETTABLE  R0[K8('_OnCloseWindow')] = R1
0018  GETTABUP  R0 = _ENV[K1('setmetatable')]
0019  NEWTABLE  R1 = {} (0 items)
0020  SETTABLE  R1[K2('canClickWindowMask')] = K3(true)
0021  GETTABUP  R2 = _ENV[K10('FrameDecoActivityBaseWindow')]
0022  CALL      R0 = call(R0, 1 args, 2 rets)
0023  SETTABUP  _ENV[K9('FrameDecoActivityEndWindow')] = R0
0024  GETTABUP  R0 = _ENV[K9('FrameDecoActivityEndWindow')]
0025  GETTABUP  R1 = _ENV[K9('FrameDecoActivityEndWindow')]
0026  SETTABLE  R0[K5('__index')] = R1
0027  GETTABUP  R0 = _ENV[K1('setmetatable')]
0028  NEWTABLE  R1 = {} (0 items)
0029  GETTABUP  R2 = _ENV[K10('FrameDecoActivityBaseWindow')]
0030  CALL      R0 = call(R0, 1 args, 2 rets)
0031  SETTABUP  _ENV[K11('FrameDecoActivityLastChanceWindow')] = R0
0032  GETTABUP  R0 = _ENV[K11('FrameDecoActivityLastChanceWindow')]
0033  GETTABUP  R1 = _ENV[K11('FrameDecoActivityLastChanceWindow')]
0034  SETTABLE  R0[K5('__index')] = R1
0035  GETTABUP  R0 = _ENV[K11('FrameDecoActivityLastChanceWindow')]
0036  CLOSURE   R1 = closure proto3
0037  SETTABLE  R0[K12('Init')] = R1
0038  GETTABUP  R0 = _ENV[K11('FrameDecoActivityLastChanceWindow')]
0039  CLOSURE   R1 = closure proto4
0040  SETTABLE  R0[K13('OnLeaveClick')] = R1
0041  GETTABUP  R0 = _ENV[K11('FrameDecoActivityLastChanceWindow')]
0042  CLOSURE   R1 = closure proto5
0043  SETTABLE  R0[K14('OnGoClick')] = R1
0044  RETURN    return R0..R-1
; ---------- proto0 [OnBtnClicked] ----------
  ; fn ?  line 8-11 np=1 va=0 ms=3 code=5 consts=2 upvals=0 protos=0
  ;   K[0]='Close'
  ;   K[1]='_OnCloseWindow'
  ;   locals: self(0-5)
  0000  SELF      R2 = R0[K0('Close')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  SELF      R2 = R0[K1('_OnCloseWindow')] (self)
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  RETURN    return R0..R-1
; ---------- proto1 [OnCloseBtnClick] ----------
  ; fn ?  line 13-16 np=1 va=0 ms=3 code=7 consts=3 upvals=1 protos=0
  ;   K[0]='FrameDecoActivityBaseWindow'
  ;   K[1]='OnCloseBtnClick'
  ;   K[2]='_OnCloseWindow'
  ;   upvals: _ENV
  ;   locals: self(0-7)
  0000  GETTABUP  R1 = _ENV[K0('FrameDecoActivityBaseWindow')]
  0001  GETTABLE  R1 = R1[K1('OnCloseBtnClick')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  SELF      R2 = R0[K2('_OnCloseWindow')] (self)
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  RETURN    return R0..R-1
; ---------- proto2 [_OnCloseWindow] ----------
  ; fn ?  line 18-27 np=1 va=0 ms=5 code=28 consts=12 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='SceneManager'
  ;   K[2]='GetGameMode'
  ;   K[3]='TutorialModel'
  ;   K[4]='IsTutorialFinished'
  ;   K[5]='ETutorialId'
  ;   K[6]='FrameDecoStart'
  ;   K[7]='EGameMode'
  ;   K[8]='Main'
  ;   K[9]='ChangeGameMode'
  ;   K[10]='m_model'
  ;   K[11]='OpenMainWindow'
  ;   upvals: _ENV
  ;   locals: self(0-28), gameMode(4-28)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('SceneManager')]
  0002  SELF      R2 = R1[K2('GetGameMode')] (self)
  0003  CALL      R1 = call(R1, 1 args, 1 rets)
  0004  GETTABUP  R2 = _ENV[K0('GM')]
  0005  GETTABLE  R2 = R2[K3('TutorialModel')]
  0006  SELF      R3 = R2[K4('IsTutorialFinished')] (self)
  0007  GETTABUP  R4 = _ENV[K5('ETutorialId')]
  0008  GETTABLE  R4 = R4[K6('FrameDecoStart')]
  0009  CALL      R2 = call(R2, 1 args, 2 rets)
  0010  TEST      if not R2 then   -> -131059
  0011  JMP       (jump)   -> 23
  0012  GETTABUP  R2 = _ENV[K7('EGameMode')]
  0013  GETTABLE  R2 = R2[K8('Main')]
  0014  EQ        if R1 eq R2   -> -130542
  0015  JMP       (jump)   -> 23
  0016  GETTABUP  R2 = _ENV[K0('GM')]
  0017  GETTABLE  R2 = R2[K1('SceneManager')]
  0018  SELF      R3 = R2[K9('ChangeGameMode')] (self)
  0019  GETTABUP  R4 = _ENV[K7('EGameMode')]
  0020  GETTABLE  R4 = R4[K8('Main')]
  0021  CALL      R2 = call(R2, 0 args, 2 rets)
  0022  JMP       (jump)   -> 27
  0023  GETTABLE  R2 = R0[K10('m_model')]
  0024  SELF      R3 = R2[K11('OpenMainWindow')] (self)
  0025  LOADBOOL  R4 = false
  0026  CALL      R2 = call(R2, 0 args, 2 rets)
  0027  RETURN    return R0..R-1
; ---------- proto3 [Init] ----------
  ; fn ?  line 42-46 np=5 va=0 ms=10 code=16 consts=8 upvals=1 protos=0
  ;   K[0]='FrameDecoActivityBaseWindow'
  ;   K[1]='Init'
  ;   K[2]='m_leaveButtonCallback'
  ;   K[3]='m_tokenCount'
  ;   K[4]='text'
  ;   K[5]='tostring'
  ;   K[6]='m_model'
  ;   K[7]='GetTokenCount'
  ;   upvals: _ENV
  ;   locals: self(0-16), activityType(0-16), id(0-16), bAutoPop(0-16), leaveButtonCallback(0-16)
  0000  GETTABUP  R5 = _ENV[K0('FrameDecoActivityBaseWindow')]
  0001  GETTABLE  R5 = R5[K1('Init')]
  0002  MOVE      R6 = R0
  0003  MOVE      R7 = R0
  0004  MOVE      R8 = R0
  0005  MOVE      R9 = R0
  0006  CALL      R5 = call(R5, 0 args, 4 rets)
  0007  SETTABLE  R0[K2('m_leaveButtonCallback')] = R4
  0008  GETTABLE  R5 = R0[K3('m_tokenCount')]
  0009  GETTABUP  R6 = _ENV[K5('tostring')]
  0010  GETTABLE  R7 = R0[K6('m_model')]
  0011  SELF      R8 = R7[K7('GetTokenCount')] (self)
  0012  CALL      R7 = call(R7, -1 args, 1 rets)
  0013  CALL      R6 = call(R6, 1 args, -1 rets)
  0014  SETTABLE  R5[K4('text')] = R6
  0015  RETURN    return R0..R-1
; ---------- proto4 [OnLeaveClick] ----------
  ; fn ?  line 48-54 np=1 va=0 ms=3 code=10 consts=2 upvals=0 protos=0
  ;   K[0]='m_leaveButtonCallback'
  ;   K[1]='Close'
  ;   locals: self(0-10)
  0000  GETTABLE  R1 = R0[K0('m_leaveButtonCallback')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 7
  0003  GETTABLE  R1 = R0[K0('m_leaveButtonCallback')]
  0004  MOVE      R2 = R0
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  JMP       (jump)   -> 9
  0007  SELF      R2 = R0[K1('Close')] (self)
  0008  CALL      R1 = call(R1, 0 args, 1 rets)
  0009  RETURN    return R0..R-1
; ---------- proto5 [OnGoClick] ----------
  ; fn ?  line 56-58 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
