# WeeklyActiveQuest_View_WeeklyActiveQuestViewController_1313.luac
; fn @WeeklyActiveQuestViewController.lua  line 0-0 np=0 va=1 ms=3 code=40 consts=15 upvals=1 protos=11
;   K[0]='WeeklyActiveQuestViewController'
;   K[1]='__index'
;   K[2]=2.0
;   K[3]='Create'
;   K[4]='WeeklyActiveQuestViewController'
;   K[5]='Init'
;   K[6]='Destroy'
;   K[7]='_OnCloseView'
;   K[8]='State0'
;   K[9]='State1'
;   K[10]='State2'
;   K[11]='State3'
;   K[12]='StateUnlock0'
;   K[13]='CheckEnd'
;   K[14]='Close'
;   upvals: _ENV
;   locals: showRewardTime(6-40)
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('WeeklyActiveQuestViewController')] = R0
0002  GETTABUP  R0 = _ENV[K0('WeeklyActiveQuestViewController')]
0003  GETTABUP  R1 = _ENV[K0('WeeklyActiveQuestViewController')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  LOADK     R0 = K2 2.0
0006  GETTABUP  R1 = _ENV[K0('WeeklyActiveQuestViewController')]
0007  CLOSURE   R2 = closure proto0
0008  SETTABLE  R1[K3('Create')] = R2
0009  GETTABUP  R1 = _ENV[K4('WeeklyActiveQuestViewController')]
0010  CLOSURE   R2 = closure proto1
0011  SETTABLE  R1[K5('Init')] = R2
0012  GETTABUP  R1 = _ENV[K4('WeeklyActiveQuestViewController')]
0013  CLOSURE   R2 = closure proto2
0014  SETTABLE  R1[K6('Destroy')] = R2
0015  GETTABUP  R1 = _ENV[K4('WeeklyActiveQuestViewController')]
0016  CLOSURE   R2 = closure proto3
0017  SETTABLE  R1[K7('_OnCloseView')] = R2
0018  GETTABUP  R1 = _ENV[K4('WeeklyActiveQuestViewController')]
0019  CLOSURE   R2 = closure proto4
0020  SETTABLE  R1[K8('State0')] = R2
0021  GETTABUP  R1 = _ENV[K4('WeeklyActiveQuestViewController')]
0022  CLOSURE   R2 = closure proto5
0023  SETTABLE  R1[K9('State1')] = R2
0024  GETTABUP  R1 = _ENV[K4('WeeklyActiveQuestViewController')]
0025  CLOSURE   R2 = closure proto6
0026  SETTABLE  R1[K10('State2')] = R2
0027  GETTABUP  R1 = _ENV[K4('WeeklyActiveQuestViewController')]
0028  CLOSURE   R2 = closure proto7
0029  SETTABLE  R1[K11('State3')] = R2
0030  GETTABUP  R1 = _ENV[K4('WeeklyActiveQuestViewController')]
0031  CLOSURE   R2 = closure proto8
0032  SETTABLE  R1[K12('StateUnlock0')] = R2
0033  GETTABUP  R1 = _ENV[K4('WeeklyActiveQuestViewController')]
0034  CLOSURE   R2 = closure proto9
0035  SETTABLE  R1[K13('CheckEnd')] = R2
0036  GETTABUP  R1 = _ENV[K4('WeeklyActiveQuestViewController')]
0037  CLOSURE   R2 = closure proto10
0038  SETTABLE  R1[K14('Close')] = R2
0039  RETURN    return R0..R-1
; ---------- proto0 [Create] ----------
  ; fn ?  line 6-10 np=2 va=0 ms=7 code=10 consts=3 upvals=1 protos=0
  ;   K[0]='setmetatable'
  ;   K[1]='WeeklyActiveQuestViewController'
  ;   K[2]='Init'
  ;   upvals: _ENV
  ;   locals: activityType(0-10), index(0-10), viewController(4-10)
  0000  GETTABUP  R2 = _ENV[K0('setmetatable')]
  0001  NEWTABLE  R3 = {} (0 items)
  0002  GETTABUP  R4 = _ENV[K1('WeeklyActiveQuestViewController')]
  0003  CALL      R2 = call(R2, 1 args, 2 rets)
  0004  SELF      R4 = R2[K2('Init')] (self)
  0005  MOVE      R5 = R0
  0006  MOVE      R6 = R0
  0007  CALL      R3 = call(R3, 0 args, 3 rets)
  0008  RETURN    return R2..R1
  0009  RETURN    return R0..R-1
; ---------- proto1 [Init] ----------
  ; fn ?  line 12-18 np=3 va=0 ms=7 code=19 consts=13 upvals=1 protos=0
  ;   K[0]='m_activityType'
  ;   K[1]='m_activityDefinition'
  ;   K[2]='WeeklyActiveQuestDefinition'
  ;   K[3]='m_model'
  ;   K[4]='GM'
  ;   K[5]='ActivityManager'
  ;   K[6]='GetModel'
  ;   K[7]='m_controllerid'
  ;   K[8]='EventDispatcher'
  ;   K[9]='AddListener'
  ;   K[10]='EEventType'
  ;   K[11]='CloseView'
  ;   K[12]='_OnCloseView'
  ;   upvals: _ENV
  ;   locals: self(0-19), activityType(0-19), index(0-19)
  0000  SETTABLE  R0[K0('m_activityType')] = R1
  0001  GETTABUP  R3 = _ENV[K2('WeeklyActiveQuestDefinition')]
  0002  GETTABLE  R3 = R3[R1]
  0003  SETTABLE  R0[K1('m_activityDefinition')] = R3
  0004  GETTABUP  R3 = _ENV[K4('GM')]
  0005  GETTABLE  R3 = R3[K5('ActivityManager')]
  0006  SELF      R4 = R3[K6('GetModel')] (self)
  0007  MOVE      R5 = R0
  0008  CALL      R3 = call(R3, 1 args, 2 rets)
  0009  SETTABLE  R0[K3('m_model')] = R3
  0010  SETTABLE  R0[K7('m_controllerid')] = R2
  0011  GETTABUP  R3 = _ENV[K8('EventDispatcher')]
  0012  GETTABLE  R3 = R3[K9('AddListener')]
  0013  GETTABUP  R4 = _ENV[K10('EEventType')]
  0014  GETTABLE  R4 = R4[K11('CloseView')]
  0015  MOVE      R5 = R0
  0016  GETTABLE  R6 = R0[K12('_OnCloseView')]
  0017  CALL      R3 = call(R3, 0 args, 3 rets)
  0018  RETURN    return R0..R-1
; ---------- proto2 [Destroy] ----------
  ; fn ?  line 20-22 np=1 va=0 ms=4 code=7 consts=4 upvals=1 protos=0
  ;   K[0]='EventDispatcher'
  ;   K[1]='RemoveListener'
  ;   K[2]='EEventType'
  ;   K[3]='CloseView'
  ;   upvals: _ENV
  ;   locals: self(0-7)
  0000  GETTABUP  R1 = _ENV[K0('EventDispatcher')]
  0001  GETTABLE  R1 = R1[K1('RemoveListener')]
  0002  GETTABUP  R2 = _ENV[K2('EEventType')]
  0003  GETTABLE  R2 = R2[K3('CloseView')]
  0004  MOVE      R3 = R0
  0005  CALL      R1 = call(R1, 0 args, 2 rets)
  0006  RETURN    return R0..R-1
; ---------- proto3 [_OnCloseView] ----------
  ; fn ?  line 24-29 np=2 va=0 ms=4 code=8 consts=4 upvals=0 protos=0
  ;   K[0]='name'
  ;   K[1]='m_activityDefinition'
  ;   K[2]='MainWindowPrefabName'
  ;   K[3]='Close'
  ;   locals: self(0-8), msg(0-8)
  0000  GETTABLE  R2 = R1[K0('name')]
  0001  GETTABLE  R3 = R0[K1('m_activityDefinition')]
  0002  GETTABLE  R3 = R3[K2('MainWindowPrefabName')]
  0003  EQ        if R0 eq R3   -> -130040
  0004  JMP       (jump)   -> 7
  0005  SELF      R3 = R0[K3('Close')] (self)
  0006  CALL      R2 = call(R2, 0 args, 1 rets)
  0007  RETURN    return R0..R-1
; ---------- proto4 [State0] ----------
  ; fn ?  line 31-47 np=4 va=0 ms=9 code=32 consts=16 upvals=1 protos=1
  ;   K[0]='m_reward'
  ;   K[1]='Table'
  ;   K[2]='IsEmpty'
  ;   K[3]='m_locked'
  ;   K[4]=true
  ;   K[5]='GM'
  ;   K[6]='UIManager'
  ;   K[7]='SetEventLock'
  ;   K[8]='SwitchToFinish'
  ;   K[9]='GetOpenedViewByName'
  ;   K[10]='m_activityDefinition'
  ;   K[11]='MainWindowPrefabName'
  ;   K[12]='MoveToEnd'
  ;   K[13]='UpdateTab'
  ;   K[14]='DelayExecuteFuncInView'
  ;   K[15]=1.8
  ;   upvals: _ENV
  ;   locals: self(0-32), taskCell(0-32), endScore(0-32), progressrewards(0-32), mainwindow(21-32)
  0000  SETTABLE  R0[K0('m_reward')] = R3
  0001  GETTABUP  R4 = _ENV[K1('Table')]
  0002  GETTABLE  R4 = R4[K2('IsEmpty')]
  0003  GETTABLE  R5 = R0[K0('m_reward')]
  0004  CALL      R4 = call(R4, 1 args, 1 rets)
  0005  TEST      if not R4 then   -> -131064
  0006  JMP       (jump)   -> 13
  0007  SETTABLE  R0[K3('m_locked')] = K4(true)
  0008  GETTABUP  R4 = _ENV[K5('GM')]
  0009  GETTABLE  R4 = R4[K6('UIManager')]
  0010  SELF      R5 = R4[K7('SetEventLock')] (self)
  0011  LOADBOOL  R6 = true
  0012  CALL      R4 = call(R4, 0 args, 2 rets)
  0013  SELF      R5 = R1[K8('SwitchToFinish')] (self)
  0014  CALL      R4 = call(R4, 0 args, 1 rets)
  0015  GETTABUP  R4 = _ENV[K5('GM')]
  0016  GETTABLE  R4 = R4[K6('UIManager')]
  0017  SELF      R5 = R4[K9('GetOpenedViewByName')] (self)
  0018  GETTABLE  R6 = R0[K10('m_activityDefinition')]
  0019  GETTABLE  R6 = R6[K11('MainWindowPrefabName')]
  0020  CALL      R4 = call(R4, 1 args, 2 rets)
  0021  SELF      R6 = R4[K12('MoveToEnd')] (self)
  0022  MOVE      R7 = R0
  0023  CALL      R5 = call(R5, 0 args, 2 rets)
  0024  SELF      R6 = R4[K13('UpdateTab')] (self)
  0025  CALL      R5 = call(R5, 0 args, 1 rets)
  0026  GETTABUP  R5 = _ENV[K14('DelayExecuteFuncInView')]
  0027  CLOSURE   R6 = closure proto0
  0028  LOADK     R7 = K15 1.8
  0029  MOVE      R8 = R0
  0030  CALL      R5 = call(R5, 0 args, 3 rets)
  0031  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 44-46 np=0 va=0 ms=4 code=6 consts=1 upvals=3 protos=1
    ;   K[0]='UpdateProgress'
    ;   upvals: mainwindow, endScore, self
    0000  GETUPVAL  R0 = mainwindow
    0001  SELF      R1 = R0[K0('UpdateProgress')] (self)
    0002  GETUPVAL  R2 = mainwindow
    0003  CLOSURE   R3 = closure proto0
    0004  CALL      R0 = call(R0, 0 args, 3 rets)
    0005  RETURN    return R0..R-1
    ; ---------- proto0 [] ----------
      ; fn ?  line 45-45 np=0 va=0 ms=2 code=4 consts=1 upvals=1 protos=0
      ;   K[0]='State1'
      ;   upvals: self
      0000  GETUPVAL  R0 = self
      0001  SELF      R1 = R0[K0('State1')] (self)
      0002  CALL      R0 = call(R0, 0 args, 1 rets)
      0003  RETURN    return R0..R-1
; ---------- proto5 [State1] ----------
  ; fn ?  line 50-64 np=1 va=0 ms=11 code=30 consts=8 upvals=1 protos=0
  ;   K[0]='CheckEnd'
  ;   K[1]='Table'
  ;   K[2]='IsEmpty'
  ;   K[3]='m_reward'
  ;   K[4]='Close'
  ;   K[5]='pairs'
  ;   K[6]='DeepCopy'
  ;   K[7]='State2'
  ;   upvals: _ENV
  ;   locals: self(0-30), (for generator)(17-29), (for state)(17-29), (for control)(17-29), id(18-27), content(18-27), reward(22-27)
  0000  SELF      R2 = R0[K0('CheckEnd')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  TEST      if not R1 then   -> -131068
  0003  JMP       (jump)   -> 5
  0004  RETURN    return R0..R-1
  0005  GETTABUP  R1 = _ENV[K1('Table')]
  0006  GETTABLE  R1 = R1[K2('IsEmpty')]
  0007  GETTABLE  R2 = R0[K3('m_reward')]
  0008  CALL      R1 = call(R1, 1 args, 1 rets)
  0009  TEST      if not R1 then   -> -131061
  0010  JMP       (jump)   -> 14
  0011  SELF      R2 = R0[K4('Close')] (self)
  0012  CALL      R1 = call(R1, 0 args, 1 rets)
  0013  JMP       (jump)   -> 29
  0014  GETTABUP  R1 = _ENV[K5('pairs')]
  0015  GETTABLE  R2 = R0[K3('m_reward')]
  0016  CALL      R1 = call(R1, 3 args, 1 rets)
  0017  JMP       (jump)   -> 27
  0018  GETTABUP  R6 = _ENV[K1('Table')]
  0019  GETTABLE  R6 = R6[K6('DeepCopy')]
  0020  MOVE      R7 = R0
  0021  CALL      R6 = call(R6, 1 args, 1 rets)
  0022  SELF      R8 = R0[K7('State2')] (self)
  0023  MOVE      R9 = R0
  0024  MOVE      R10 = R0
  0025  CALL      R7 = call(R7, 0 args, 3 rets)
  0026  JMP       (jump)   -> 29
  0027  TFORCALL  tforcall R1
  0028  TFORLOOP  tforloop R3(sBx=-11)   -> 18
  0029  RETURN    return R0..R-1
; ---------- proto6 [State2] ----------
  ; fn ?  line 66-72 np=3 va=0 ms=8 code=16 consts=7 upvals=1 protos=1
  ;   K[0]='CheckEnd'
  ;   K[1]='GM'
  ;   K[2]='UIManager'
  ;   K[3]='GetOpenedViewByName'
  ;   K[4]='m_activityDefinition'
  ;   K[5]='MainWindowPrefabName'
  ;   K[6]='ShowReward'
  ;   upvals: _ENV
  ;   locals: self(0-16), id(0-16), reward(0-16), mainwindow(11-16)
  0000  SELF      R4 = R0[K0('CheckEnd')] (self)
  0001  CALL      R3 = call(R3, 1 args, 1 rets)
  0002  TEST      if not R3 then   -> -131068
  0003  JMP       (jump)   -> 5
  0004  RETURN    return R0..R-1
  0005  GETTABUP  R3 = _ENV[K1('GM')]
  0006  GETTABLE  R3 = R3[K2('UIManager')]
  0007  SELF      R4 = R3[K3('GetOpenedViewByName')] (self)
  0008  GETTABLE  R5 = R0[K4('m_activityDefinition')]
  0009  GETTABLE  R5 = R5[K5('MainWindowPrefabName')]
  0010  CALL      R3 = call(R3, 1 args, 2 rets)
  0011  SELF      R5 = R3[K6('ShowReward')] (self)
  0012  MOVE      R6 = R0
  0013  CLOSURE   R7 = closure proto0
  0014  CALL      R4 = call(R4, 0 args, 3 rets)
  0015  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 71-71 np=0 va=0 ms=4 code=6 consts=1 upvals=3 protos=0
    ;   K[0]='State3'
    ;   upvals: self, id, reward
    0000  GETUPVAL  R0 = self
    0001  SELF      R1 = R0[K0('State3')] (self)
    0002  GETUPVAL  R2 = self
    0003  GETUPVAL  R3 = self
    0004  CALL      R0 = call(R0, 0 args, 3 rets)
    0005  RETURN    return R0..R-1
; ---------- proto7 [State3] ----------
  ; fn ?  line 74-103 np=3 va=0 ms=12 code=19 consts=9 upvals=1 protos=2
  ;   K[0]='CheckEnd'
  ;   K[1]='GM'
  ;   K[2]='UIManager'
  ;   K[3]='OpenView'
  ;   K[4]='UIPrefabConfigName'
  ;   K[5]='AnimatedRewardWindow'
  ;   K[6]='rewards_window_title_normal'
  ;   K[7]='ERewardScene'
  ;   K[8]='Other'
  ;   upvals: _ENV
  ;   locals: self(0-19), id(0-19), reward(0-19)
  0000  SELF      R4 = R0[K0('CheckEnd')] (self)
  0001  CALL      R3 = call(R3, 1 args, 1 rets)
  0002  TEST      if not R3 then   -> -131068
  0003  JMP       (jump)   -> 5
  0004  RETURN    return R0..R-1
  0005  GETTABUP  R3 = _ENV[K1('GM')]
  0006  GETTABLE  R3 = R3[K2('UIManager')]
  0007  SELF      R4 = R3[K3('OpenView')] (self)
  0008  GETTABUP  R5 = _ENV[K4('UIPrefabConfigName')]
  0009  GETTABLE  R5 = R5[K5('AnimatedRewardWindow')]
  0010  MOVE      R6 = R0
  0011  LOADK     R7 = K6 'rewards_window_title_normal'
  0012  LOADBOOL  R8 = true
  0013  GETTABUP  R9 = _ENV[K7('ERewardScene')]
  0014  GETTABLE  R9 = R9[K8('Other')]
  0015  CLOSURE   R10 = closure proto0
  0016  CLOSURE   R11 = closure proto1
  0017  CALL      R3 = call(R3, 0 args, 8 rets)
  0018  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 79-100 np=0 va=0 ms=3 code=21 consts=11 upvals=3 protos=1
    ;   K[0]='m_locked'
    ;   K[1]=false
    ;   K[2]='GM'
    ;   K[3]='UIManager'
    ;   K[4]='SetEventLock'
    ;   K[5]='m_reward'
    ;   K[6]=nil
    ;   K[7]='GetOpenedViewByName'
    ;   K[8]='UIPrefabConfigName'
    ;   K[9]='AnimatedRewardWindow'
    ;   K[10]='Close'
    ;   upvals: self, _ENV, id
    ;   locals: rewardwindow(18-21)
    0000  GETTABUP  R0 = self[K0('m_locked')]
    0001  TEST      if not R0 then   -> -131069
    0002  JMP       (jump)   -> 9
    0003  SETTABUP  self[K0('m_locked')] = K1(false)
    0004  GETTABUP  R0 = _ENV[K2('GM')]
    0005  GETTABLE  R0 = R0[K3('UIManager')]
    0006  SELF      R1 = R0[K4('SetEventLock')] (self)
    0007  LOADBOOL  R2 = false
    0008  CALL      R0 = call(R0, 0 args, 2 rets)
    0009  GETTABUP  R0 = self[K5('m_reward')]
    0010  GETUPVAL  R1 = self
    0011  SETTABLE  R0[R1] = K6(nil)
    0012  GETTABUP  R0 = _ENV[K2('GM')]
    0013  GETTABLE  R0 = R0[K3('UIManager')]
    0014  SELF      R1 = R0[K7('GetOpenedViewByName')] (self)
    0015  GETTABUP  R2 = _ENV[K8('UIPrefabConfigName')]
    0016  GETTABLE  R2 = R2[K9('AnimatedRewardWindow')]
    0017  CALL      R0 = call(R0, 1 args, 2 rets)
    0018  CLOSURE   R1 = closure proto0
    0019  SETTABLE  R0[K10('Close')] = R1
    0020  RETURN    return R0..R-1
    ; ---------- proto0 [Close] ----------
      ; fn ?  line 92-99 np=0 va=0 ms=4 code=16 consts=9 upvals=4 protos=0
      ;   K[0]='BaseWindow'
      ;   K[1]='Close'
      ;   K[2]='GM'
      ;   K[3]='UIManager'
      ;   K[4]='GetOpenedViewByName'
      ;   K[5]='m_activityDefinition'
      ;   K[6]='MainWindowPrefabName'
      ;   K[7]=nil
      ;   K[8]='RewardAnim'
      ;   upvals: _ENV, rewardwindow, self, id
      ;   locals: mainwindow(10-16)
      0000  GETTABUP  R0 = _ENV[K0('BaseWindow')]
      0001  GETTABLE  R0 = R0[K1('Close')]
      0002  GETUPVAL  R1 = _ENV
      0003  CALL      R0 = call(R0, 0 args, 1 rets)
      0004  GETTABUP  R0 = _ENV[K2('GM')]
      0005  GETTABLE  R0 = R0[K3('UIManager')]
      0006  SELF      R1 = R0[K4('GetOpenedViewByName')] (self)
      0007  GETTABUP  R2 = self[K5('m_activityDefinition')]
      0008  GETTABLE  R2 = R2[K6('MainWindowPrefabName')]
      0009  CALL      R0 = call(R0, 1 args, 2 rets)
      0010  EQ        if R1 eq K7(nil)   -> -130797
      0011  JMP       (jump)   -> 15
      0012  SELF      R2 = R0[K8('RewardAnim')] (self)
      0013  GETUPVAL  R3 = _ENV
      0014  CALL      R1 = call(R1, 0 args, 2 rets)
      0015  RETURN    return R0..R-1
  ; ---------- proto1 [] ----------
    ; fn ?  line 100-102 np=0 va=0 ms=2 code=4 consts=1 upvals=1 protos=0
    ;   K[0]='State1'
    ;   upvals: self
    0000  GETUPVAL  R0 = self
    0001  SELF      R1 = R0[K0('State1')] (self)
    0002  CALL      R0 = call(R0, 0 args, 1 rets)
    0003  RETURN    return R0..R-1
; ---------- proto8 [StateUnlock0] ----------
  ; fn ?  line 106-118 np=1 va=0 ms=5 code=26 consts=12 upvals=1 protos=1
  ;   K[0]='CheckEnd'
  ;   K[1]='m_locked'
  ;   K[2]=true
  ;   K[3]='GM'
  ;   K[4]='UIManager'
  ;   K[5]='SetEventLock'
  ;   K[6]='GetOpenedViewByName'
  ;   K[7]='m_activityDefinition'
  ;   K[8]='MainWindowPrefabName'
  ;   K[9]='UpdateTaskBoard'
  ;   K[10]='UpdateTab'
  ;   K[11]='UnlockAnim'
  ;   upvals: _ENV
  ;   locals: self(0-26), mainwindow(17-26)
  0000  SELF      R2 = R0[K0('CheckEnd')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  TEST      if not R1 then   -> -131068
  0003  JMP       (jump)   -> 5
  0004  RETURN    return R0..R-1
  0005  SETTABLE  R0[K1('m_locked')] = K2(true)
  0006  GETTABUP  R1 = _ENV[K3('GM')]
  0007  GETTABLE  R1 = R1[K4('UIManager')]
  0008  SELF      R2 = R1[K5('SetEventLock')] (self)
  0009  LOADBOOL  R3 = true
  0010  CALL      R1 = call(R1, 0 args, 2 rets)
  0011  GETTABUP  R1 = _ENV[K3('GM')]
  0012  GETTABLE  R1 = R1[K4('UIManager')]
  0013  SELF      R2 = R1[K6('GetOpenedViewByName')] (self)
  0014  GETTABLE  R3 = R0[K7('m_activityDefinition')]
  0015  GETTABLE  R3 = R3[K8('MainWindowPrefabName')]
  0016  CALL      R1 = call(R1, 1 args, 2 rets)
  0017  SELF      R3 = R1[K9('UpdateTaskBoard')] (self)
  0018  LOADBOOL  R4 = true
  0019  CALL      R2 = call(R2, 0 args, 2 rets)
  0020  SELF      R3 = R1[K10('UpdateTab')] (self)
  0021  CALL      R2 = call(R2, 0 args, 1 rets)
  0022  SELF      R3 = R1[K11('UnlockAnim')] (self)
  0023  CLOSURE   R4 = closure proto0
  0024  CALL      R2 = call(R2, 0 args, 2 rets)
  0025  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 117-117 np=0 va=0 ms=2 code=4 consts=1 upvals=1 protos=0
    ;   K[0]='Close'
    ;   upvals: self
    0000  GETUPVAL  R0 = self
    0001  SELF      R1 = R0[K0('Close')] (self)
    0002  CALL      R0 = call(R0, 0 args, 1 rets)
    0003  RETURN    return R0..R-1
; ---------- proto9 [CheckEnd] ----------
  ; fn ?  line 120-127 np=1 va=0 ms=4 code=15 consts=7 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='UIManager'
  ;   K[2]='GetOpenedViewByName'
  ;   K[3]='m_activityDefinition'
  ;   K[4]='MainWindowPrefabName'
  ;   K[5]=nil
  ;   K[6]='Close'
  ;   upvals: _ENV
  ;   locals: self(0-15)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('UIManager')]
  0002  SELF      R2 = R1[K2('GetOpenedViewByName')] (self)
  0003  GETTABLE  R3 = R0[K3('m_activityDefinition')]
  0004  GETTABLE  R3 = R3[K4('MainWindowPrefabName')]
  0005  CALL      R1 = call(R1, 1 args, 2 rets)
  0006  EQ        if R0 eq K5(nil)   -> -130291
  0007  JMP       (jump)   -> 12
  0008  SELF      R2 = R0[K6('Close')] (self)
  0009  CALL      R1 = call(R1, 0 args, 1 rets)
  0010  LOADBOOL  R1 = true
  0011  RETURN    return R1..R0
  0012  LOADBOOL  R1 = false
  0013  RETURN    return R1..R0
  0014  RETURN    return R0..R-1
; ---------- proto10 [Close] ----------
  ; fn ?  line 129-149 np=1 va=0 ms=10 code=45 consts=23 upvals=1 protos=0
  ;   K[0]='m_controllerid'
  ;   K[1]=nil
  ;   K[2]='Table'
  ;   K[3]='IsEmpty'
  ;   K[4]='m_reward'
  ;   K[5]='pairs'
  ;   K[6]='RewardApi'
  ;   K[7]='AcquireRewardsInView'
  ;   K[8]='alwaysInMiddle'
  ;   K[9]=true
  ;   K[10]='ERewardScene'
  ;   K[11]='Other'
  ;   K[12]='m_locked'
  ;   K[13]='GM'
  ;   K[14]='UIManager'
  ;   K[15]='SetEventLock'
  ;   K[16]=false
  ;   K[17]='m_model'
  ;   K[18]='ViewControllerFinished'
  ;   K[19]='EventDispatcher'
  ;   K[20]='RemoveListener'
  ;   K[21]='EEventType'
  ;   K[22]='CloseView'
  ;   upvals: _ENV
  ;   locals: self(0-45), (for generator)(13-24), (for state)(13-24), (for control)(13-24), _(14-22), reward(14-22)
  0000  GETTABLE  R1 = R0[K0('m_controllerid')]
  0001  EQ        if R0 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 4
  0003  RETURN    return R0..R-1
  0004  GETTABUP  R1 = _ENV[K2('Table')]
  0005  GETTABLE  R1 = R1[K3('IsEmpty')]
  0006  GETTABLE  R2 = R0[K4('m_reward')]
  0007  CALL      R1 = call(R1, 1 args, 1 rets)
  0008  TEST      if not R1 then   -> -131061
  0009  JMP       (jump)   -> 24
  0010  GETTABUP  R1 = _ENV[K5('pairs')]
  0011  GETTABLE  R2 = R0[K4('m_reward')]
  0012  CALL      R1 = call(R1, 3 args, 1 rets)
  0013  JMP       (jump)   -> 22
  0014  GETTABUP  R6 = _ENV[K6('RewardApi')]
  0015  GETTABLE  R6 = R6[K7('AcquireRewardsInView')]
  0016  MOVE      R7 = R0
  0017  NEWTABLE  R8 = {} (0 items)
  0018  SETTABLE  R8[K8('alwaysInMiddle')] = K9(true)
  0019  GETTABUP  R9 = _ENV[K10('ERewardScene')]
  0020  GETTABLE  R9 = R9[K11('Other')]
  0021  CALL      R6 = call(R6, 0 args, 3 rets)
  0022  TFORCALL  tforcall R1
  0023  TFORLOOP  tforloop R3(sBx=-10)   -> 14
  0024  GETTABLE  R1 = R0[K12('m_locked')]
  0025  TEST      if not R1 then   -> -131045
  0026  JMP       (jump)   -> 33
  0027  GETTABUP  R1 = _ENV[K13('GM')]
  0028  GETTABLE  R1 = R1[K14('UIManager')]
  0029  SELF      R2 = R1[K15('SetEventLock')] (self)
  0030  LOADBOOL  R3 = false
  0031  CALL      R1 = call(R1, 0 args, 2 rets)
  0032  SETTABLE  R0[K12('m_locked')] = K16(false)
  0033  GETTABLE  R1 = R0[K17('m_model')]
  0034  SELF      R2 = R1[K18('ViewControllerFinished')] (self)
  0035  GETTABLE  R3 = R0[K0('m_controllerid')]
  0036  CALL      R1 = call(R1, 0 args, 2 rets)
  0037  SETTABLE  R0[K0('m_controllerid')] = K1(nil)
  0038  GETTABUP  R1 = _ENV[K19('EventDispatcher')]
  0039  GETTABLE  R1 = R1[K20('RemoveListener')]
  0040  GETTABUP  R2 = _ENV[K21('EEventType')]
  0041  GETTABLE  R2 = R2[K22('CloseView')]
  0042  MOVE      R3 = R0
  0043  CALL      R1 = call(R1, 0 args, 2 rets)
  0044  RETURN    return R0..R-1
