# CrownLevelUp_View_CrownLevelUpBaseWindow_1268.luac
; fn @CrownLevelUpBaseWindow.lua  line 0-0 np=0 va=1 ms=3 code=21 consts=8 upvals=1 protos=4
;   K[0]='CrownLevelUpBaseWindow'
;   K[1]='setmetatable'
;   K[2]='BaseActivityBaseWindow'
;   K[3]='__index'
;   K[4]='_AddListeners'
;   K[5]='_OnOrderStateChanged'
;   K[6]='_IsActivityValid'
;   K[7]='_GetCountDownEndTime'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('BaseActivityBaseWindow')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('CrownLevelUpBaseWindow')] = R0
0005  GETTABUP  R0 = _ENV[K0('CrownLevelUpBaseWindow')]
0006  GETTABUP  R1 = _ENV[K0('CrownLevelUpBaseWindow')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('CrownLevelUpBaseWindow')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('_AddListeners')] = R1
0011  GETTABUP  R0 = _ENV[K0('CrownLevelUpBaseWindow')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('_OnOrderStateChanged')] = R1
0014  GETTABUP  R0 = _ENV[K0('CrownLevelUpBaseWindow')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('_IsActivityValid')] = R1
0017  GETTABUP  R0 = _ENV[K0('CrownLevelUpBaseWindow')]
0018  CLOSURE   R1 = closure proto3
0019  SETTABLE  R0[K7('_GetCountDownEndTime')] = R1
0020  RETURN    return R0..R-1
; ---------- proto0 [_AddListeners] ----------
  ; fn ?  line 8-11 np=1 va=0 ms=5 code=12 consts=7 upvals=1 protos=0
  ;   K[0]='BaseActivityBaseWindow'
  ;   K[1]='_AddListeners'
  ;   K[2]='EventDispatcher'
  ;   K[3]='AddListener'
  ;   K[4]='m_activityDefinition'
  ;   K[5]='OrderStateChangedEvent'
  ;   K[6]='_OnOrderStateChanged'
  ;   upvals: _ENV
  ;   locals: self(0-12)
  0000  GETTABUP  R1 = _ENV[K0('BaseActivityBaseWindow')]
  0001  GETTABLE  R1 = R1[K1('_AddListeners')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABUP  R1 = _ENV[K2('EventDispatcher')]
  0005  GETTABLE  R1 = R1[K3('AddListener')]
  0006  GETTABLE  R2 = R0[K4('m_activityDefinition')]
  0007  GETTABLE  R2 = R2[K5('OrderStateChangedEvent')]
  0008  MOVE      R3 = R0
  0009  GETTABLE  R4 = R0[K6('_OnOrderStateChanged')]
  0010  CALL      R1 = call(R1, 0 args, 3 rets)
  0011  RETURN    return R0..R-1
; ---------- proto1 [_OnOrderStateChanged] ----------
  ; fn ?  line 13-15 np=1 va=0 ms=3 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='_CloseWhenNotValid'
  ;   locals: self(0-3)
  0000  SELF      R2 = R0[K0('_CloseWhenNotValid')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  RETURN    return R0..R-1
; ---------- proto2 [_IsActivityValid] ----------
  ; fn ?  line 17-19 np=1 va=0 ms=3 code=12 consts=4 upvals=1 protos=0
  ;   K[0]='BaseActivityBaseWindow'
  ;   K[1]='_IsActivityValid'
  ;   K[2]='GetModel'
  ;   K[3]='IsInDuration'
  ;   upvals: _ENV
  ;   locals: self(0-12)
  0000  GETTABUP  R1 = _ENV[K0('BaseActivityBaseWindow')]
  0001  GETTABLE  R1 = R1[K1('_IsActivityValid')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 1 args, 1 rets)
  0004  TEST      if not R1 then   -> -131066
  0005  JMP       (jump)   -> 10
  0006  SELF      R2 = R0[K2('GetModel')] (self)
  0007  CALL      R1 = call(R1, 1 args, 1 rets)
  0008  SELF      R2 = R1[K3('IsInDuration')] (self)
  0009  CALL      R1 = call(R1, 1 args, 1 rets)
  0010  RETURN    return R1..R0
  0011  RETURN    return R0..R-1
; ---------- proto3 [_GetCountDownEndTime] ----------
  ; fn ?  line 23-25 np=1 va=0 ms=3 code=6 consts=2 upvals=0 protos=0
  ;   K[0]='GetModel'
  ;   K[1]='GetTriggerEndTime'
  ;   locals: self(0-6)
  0000  SELF      R2 = R0[K0('GetModel')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  SELF      R2 = R1[K1('GetTriggerEndTime')] (self)
  0003  TAILCALL  tailcall(R1, 0)
  0004  RETURN    return R1..R0
  0005  RETURN    return R0..R-1
