# DailyActiveQuest_View_DailyActiveQuestBaseWindow_1626.luac
; fn @DailyActiveQuestBaseWindow.lua  line 0-0 np=0 va=1 ms=3 code=18 consts=7 upvals=1 protos=3
;   K[0]='DailyActiveQuestBaseWindow'
;   K[1]='setmetatable'
;   K[2]='BaseWindow'
;   K[3]='__index'
;   K[4]='Init'
;   K[5]='OnDestroy'
;   K[6]='OnStateChanged'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('BaseWindow')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('DailyActiveQuestBaseWindow')] = R0
0005  GETTABUP  R0 = _ENV[K0('DailyActiveQuestBaseWindow')]
0006  GETTABUP  R1 = _ENV[K0('DailyActiveQuestBaseWindow')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('DailyActiveQuestBaseWindow')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Init')] = R1
0011  GETTABUP  R0 = _ENV[K0('DailyActiveQuestBaseWindow')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('OnDestroy')] = R1
0014  GETTABUP  R0 = _ENV[K0('DailyActiveQuestBaseWindow')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('OnStateChanged')] = R1
0017  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 7-19 np=3 va=0 ms=8 code=41 consts=21 upvals=1 protos=0
  ;   K[0]='m_activityType'
  ;   K[1]='m_model'
  ;   K[2]='GM'
  ;   K[3]='ActivityManager'
  ;   K[4]='GetModel'
  ;   K[5]='m_activityDefinition'
  ;   K[6]='GetActivityDefinition'
  ;   K[7]='m_id'
  ;   K[8]='GetId'
  ;   K[9]='SetWindowOpened'
  ;   K[10]='EventDispatcher'
  ;   K[11]='AddListener'
  ;   K[12]='StateChangedEvent'
  ;   K[13]='OnStateChanged'
  ;   K[14]='LogWindowAction'
  ;   K[15]='EBIType'
  ;   K[16]='UIActionType'
  ;   K[17]='Open'
  ;   K[18]='EBIReferType'
  ;   K[19]='UserClick'
  ;   K[20]='AutoPopup'
  ;   upvals: _ENV
  ;   locals: self(0-41), activityType(0-41), bUserClick(0-41)
  0000  SETTABLE  R0[K0('m_activityType')] = R1
  0001  GETTABUP  R3 = _ENV[K2('GM')]
  0002  GETTABLE  R3 = R3[K3('ActivityManager')]
  0003  SELF      R4 = R3[K4('GetModel')] (self)
  0004  MOVE      R5 = R0
  0005  CALL      R3 = call(R3, 1 args, 2 rets)
  0006  SETTABLE  R0[K1('m_model')] = R3
  0007  GETTABLE  R3 = R0[K1('m_model')]
  0008  SELF      R4 = R3[K6('GetActivityDefinition')] (self)
  0009  CALL      R3 = call(R3, 1 args, 1 rets)
  0010  SETTABLE  R0[K5('m_activityDefinition')] = R3
  0011  GETTABLE  R3 = R0[K1('m_model')]
  0012  SELF      R4 = R3[K8('GetId')] (self)
  0013  CALL      R3 = call(R3, 1 args, 1 rets)
  0014  SETTABLE  R0[K7('m_id')] = R3
  0015  GETTABLE  R3 = R0[K1('m_model')]
  0016  SELF      R4 = R3[K9('SetWindowOpened')] (self)
  0017  CALL      R3 = call(R3, 0 args, 1 rets)
  0018  GETTABUP  R3 = _ENV[K10('EventDispatcher')]
  0019  GETTABLE  R3 = R3[K11('AddListener')]
  0020  GETTABLE  R4 = R0[K5('m_activityDefinition')]
  0021  GETTABLE  R4 = R4[K12('StateChangedEvent')]
  0022  MOVE      R5 = R0
  0023  GETTABLE  R6 = R0[K13('OnStateChanged')]
  0024  CALL      R3 = call(R3, 0 args, 3 rets)
  0025  SELF      R4 = R0[K14('LogWindowAction')] (self)
  0026  GETTABUP  R5 = _ENV[K15('EBIType')]
  0027  GETTABLE  R5 = R5[K16('UIActionType')]
  0028  GETTABLE  R5 = R5[K17('Open')]
  0029  NEWTABLE  R6 = {} (1 items)
  0030  TEST      if not R2 then   -> -131040
  0031  JMP       (jump)   -> 36
  0032  GETTABUP  R7 = _ENV[K18('EBIReferType')]
  0033  GETTABLE  R7 = R7[K19('UserClick')]
  0034  TEST      if not R7 then   -> -131035
  0035  JMP       (jump)   -> 38
  0036  GETTABUP  R7 = _ENV[K18('EBIReferType')]
  0037  GETTABLE  R7 = R7[K20('AutoPopup')]
  0038  SETLIST   setlist R6[B=1,C=1]
  0039  CALL      R3 = call(R3, 0 args, 3 rets)
  0040  RETURN    return R0..R-1
; ---------- proto1 [OnDestroy] ----------
  ; fn ?  line 21-23 np=1 va=0 ms=3 code=5 consts=2 upvals=1 protos=0
  ;   K[0]='BaseWindow'
  ;   K[1]='OnDestroy'
  ;   upvals: _ENV
  ;   locals: self(0-5)
  0000  GETTABUP  R1 = _ENV[K0('BaseWindow')]
  0001  GETTABLE  R1 = R1[K1('OnDestroy')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  RETURN    return R0..R-1
; ---------- proto2 [OnStateChanged] ----------
  ; fn ?  line 25-27 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
