# DailyActiveQuest_View_DailyActiveQuestRewardRecoverWindow_1629.luac
; fn @DailyActiveQuestRewardRecoverWindow.lua  line 0-0 np=0 va=1 ms=3 code=18 consts=7 upvals=1 protos=3
;   K[0]='DailyActiveQuestRewardRecoverWindow'
;   K[1]='setmetatable'
;   K[2]='DailyActiveQuestBaseWindow'
;   K[3]='__index'
;   K[4]='Init'
;   K[5]='_OnDayChanged'
;   K[6]='OnCloseView'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('DailyActiveQuestBaseWindow')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('DailyActiveQuestRewardRecoverWindow')] = R0
0005  GETTABUP  R0 = _ENV[K0('DailyActiveQuestRewardRecoverWindow')]
0006  GETTABUP  R1 = _ENV[K0('DailyActiveQuestRewardRecoverWindow')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('DailyActiveQuestRewardRecoverWindow')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Init')] = R1
0011  GETTABUP  R0 = _ENV[K0('DailyActiveQuestRewardRecoverWindow')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('_OnDayChanged')] = R1
0014  GETTABUP  R0 = _ENV[K0('DailyActiveQuestRewardRecoverWindow')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('OnCloseView')] = R1
0017  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 5-18 np=1 va=1 ms=5 code=35 consts=17 upvals=1 protos=0
  ;   K[0]='DailyActiveQuestBaseWindow'
  ;   K[1]='Init'
  ;   K[2]='m_rewards'
  ;   K[3]='m_model'
  ;   K[4]='GetRewardRecoverRewards'
  ;   K[5]='RemoveRewardRecoverRewards'
  ;   K[6]='Table'
  ;   K[7]='IsEmpty'
  ;   K[8]='Close'
  ;   K[9]='m_rewardContent'
  ;   K[10]='ERewardScene'
  ;   K[11]='Other'
  ;   K[12]='EventDispatcher'
  ;   K[13]='AddListener'
  ;   K[14]='m_activityDefinition'
  ;   K[15]='NewDayEvent'
  ;   K[16]='_OnDayChanged'
  ;   upvals: _ENV
  ;   locals: self(0-35)
  0000  GETTABUP  R1 = _ENV[K0('DailyActiveQuestBaseWindow')]
  0001  GETTABLE  R1 = R1[K1('Init')]
  0002  MOVE      R2 = R0
  0003  VARARG    R3 = vararg(0)
  0004  CALL      R1 = call(R1, 0 args, -1 rets)
  0005  GETTABLE  R1 = R0[K3('m_model')]
  0006  SELF      R2 = R1[K4('GetRewardRecoverRewards')] (self)
  0007  CALL      R1 = call(R1, 1 args, 1 rets)
  0008  SETTABLE  R0[K2('m_rewards')] = R1
  0009  GETTABLE  R1 = R0[K3('m_model')]
  0010  SELF      R2 = R1[K5('RemoveRewardRecoverRewards')] (self)
  0011  CALL      R1 = call(R1, 0 args, 1 rets)
  0012  GETTABUP  R1 = _ENV[K6('Table')]
  0013  GETTABLE  R1 = R1[K7('IsEmpty')]
  0014  GETTABLE  R2 = R0[K2('m_rewards')]
  0015  CALL      R1 = call(R1, 1 args, 1 rets)
  0016  TEST      if not R1 then   -> -131054
  0017  JMP       (jump)   -> 21
  0018  SELF      R2 = R0[K8('Close')] (self)
  0019  CALL      R1 = call(R1, 0 args, 1 rets)
  0020  RETURN    return R0..R-1
  0021  GETTABLE  R1 = R0[K9('m_rewardContent')]
  0022  SELF      R2 = R1[K1('Init')] (self)
  0023  GETTABLE  R3 = R0[K2('m_rewards')]
  0024  GETTABUP  R4 = _ENV[K10('ERewardScene')]
  0025  GETTABLE  R4 = R4[K11('Other')]
  0026  CALL      R1 = call(R1, 0 args, 3 rets)
  0027  GETTABUP  R1 = _ENV[K12('EventDispatcher')]
  0028  GETTABLE  R1 = R1[K13('AddListener')]
  0029  GETTABLE  R2 = R0[K14('m_activityDefinition')]
  0030  GETTABLE  R2 = R2[K15('NewDayEvent')]
  0031  MOVE      R3 = R0
  0032  GETTABLE  R4 = R0[K16('_OnDayChanged')]
  0033  CALL      R1 = call(R1, 0 args, 3 rets)
  0034  RETURN    return R0..R-1
; ---------- proto1 [_OnDayChanged] ----------
  ; fn ?  line 20-22 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
; ---------- proto2 [OnCloseView] ----------
  ; fn ?  line 24-42 np=1 va=0 ms=6 code=58 consts=29 upvals=1 protos=0
  ;   K[0]='DailyActiveQuestBaseWindow'
  ;   K[1]='OnCloseView'
  ;   K[2]='Table'
  ;   K[3]='IsEmpty'
  ;   K[4]='m_rewards'
  ;   K[5]='m_rewardContent'
  ;   K[6]='PlayRewardAnimation'
  ;   K[7]='GM'
  ;   K[8]='SceneManager'
  ;   K[9]='GetGameMode'
  ;   K[10]='EGameMode'
  ;   K[11]='Board'
  ;   K[12]='m_model'
  ;   K[13]='GetState'
  ;   K[14]='ActivityState'
  ;   K[15]='Started'
  ;   K[16]='GetId'
  ;   K[17]='m_id'
  ;   K[18]='CanPopupRewardRecoverWindow'
  ;   K[19]='CanPopupMainWindow'
  ;   K[20]='UIManager'
  ;   K[21]='OpenView'
  ;   K[22]='m_activityDefinition'
  ;   K[23]='MainWindowPrefabName'
  ;   K[24]='m_activityType'
  ;   K[25]='EventDispatcher'
  ;   K[26]='DispatchEvent'
  ;   K[27]='EEventType'
  ;   K[28]='DailyActiveQuestPopupRefresh'
  ;   upvals: _ENV
  ;   locals: self(0-58)
  0000  GETTABUP  R1 = _ENV[K0('DailyActiveQuestBaseWindow')]
  0001  GETTABLE  R1 = R1[K1('OnCloseView')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABUP  R1 = _ENV[K2('Table')]
  0005  GETTABLE  R1 = R1[K3('IsEmpty')]
  0006  GETTABLE  R2 = R0[K4('m_rewards')]
  0007  CALL      R1 = call(R1, 1 args, 1 rets)
  0008  TEST      if not R1 then   -> -131061
  0009  JMP       (jump)   -> 13
  0010  GETTABLE  R1 = R0[K5('m_rewardContent')]
  0011  SELF      R2 = R1[K6('PlayRewardAnimation')] (self)
  0012  CALL      R1 = call(R1, 0 args, 1 rets)
  0013  GETTABUP  R1 = _ENV[K7('GM')]
  0014  GETTABLE  R1 = R1[K8('SceneManager')]
  0015  SELF      R2 = R1[K9('GetGameMode')] (self)
  0016  CALL      R1 = call(R1, 1 args, 1 rets)
  0017  GETTABUP  R2 = _ENV[K10('EGameMode')]
  0018  GETTABLE  R2 = R2[K11('Board')]
  0019  EQ        if R0 eq R2   -> -130537
  0020  JMP       (jump)   -> 52
  0021  GETTABLE  R1 = R0[K12('m_model')]
  0022  SELF      R2 = R1[K13('GetState')] (self)
  0023  CALL      R1 = call(R1, 1 args, 1 rets)
  0024  GETTABUP  R2 = _ENV[K14('ActivityState')]
  0025  GETTABLE  R2 = R2[K15('Started')]
  0026  EQ        if R0 eq R2   -> -130530
  0027  JMP       (jump)   -> 52
  0028  GETTABLE  R1 = R0[K12('m_model')]
  0029  SELF      R2 = R1[K16('GetId')] (self)
  0030  CALL      R1 = call(R1, 1 args, 1 rets)
  0031  GETTABLE  R2 = R0[K17('m_id')]
  0032  EQ        if R0 eq R2   -> -130524
  0033  JMP       (jump)   -> 52
  0034  GETTABLE  R1 = R0[K12('m_model')]
  0035  SELF      R2 = R1[K18('CanPopupRewardRecoverWindow')] (self)
  0036  CALL      R1 = call(R1, 1 args, 1 rets)
  0037  TEST      if not R1 then   -> -131032
  0038  JMP       (jump)   -> 52
  0039  GETTABLE  R1 = R0[K12('m_model')]
  0040  SELF      R2 = R1[K19('CanPopupMainWindow')] (self)
  0041  CALL      R1 = call(R1, 1 args, 1 rets)
  0042  TEST      if not R1 then   -> -131028
  0043  JMP       (jump)   -> 52
  0044  GETTABUP  R1 = _ENV[K7('GM')]
  0045  GETTABLE  R1 = R1[K20('UIManager')]
  0046  SELF      R2 = R1[K21('OpenView')] (self)
  0047  GETTABLE  R3 = R0[K22('m_activityDefinition')]
  0048  GETTABLE  R3 = R3[K23('MainWindowPrefabName')]
  0049  GETTABLE  R4 = R0[K24('m_activityType')]
  0050  LOADBOOL  R5 = false
  0051  CALL      R1 = call(R1, 0 args, 4 rets)
  0052  GETTABUP  R1 = _ENV[K25('EventDispatcher')]
  0053  GETTABLE  R1 = R1[K26('DispatchEvent')]
  0054  GETTABUP  R2 = _ENV[K27('EEventType')]
  0055  GETTABLE  R2 = R2[K28('DailyActiveQuestPopupRefresh')]
  0056  CALL      R1 = call(R1, 0 args, 1 rets)
  0057  RETURN    return R0..R-1
