# ExtraBoardActivity_View_ExtraBoardActivityNoticeWindow_1017.luac
; fn @ExtraBoardActivityNoticeWindow.lua  line 0-0 np=0 va=1 ms=3 code=15 consts=6 upvals=1 protos=2
;   K[0]='ExtraBoardActivityNoticeWindow'
;   K[1]='setmetatable'
;   K[2]='ExtraBoardActivityBaseWindow'
;   K[3]='__index'
;   K[4]='Init'
;   K[5]='UpdatePerSecond'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('ExtraBoardActivityBaseWindow')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('ExtraBoardActivityNoticeWindow')] = R0
0005  GETTABUP  R0 = _ENV[K0('ExtraBoardActivityNoticeWindow')]
0006  GETTABUP  R1 = _ENV[K0('ExtraBoardActivityNoticeWindow')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('ExtraBoardActivityNoticeWindow')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Init')] = R1
0011  GETTABUP  R0 = _ENV[K0('ExtraBoardActivityNoticeWindow')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('UpdatePerSecond')] = R1
0014  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 6-15 np=3 va=0 ms=9 code=39 consts=16 upvals=1 protos=0
  ;   K[0]='ExtraBoardActivityBaseWindow'
  ;   K[1]='Init'
  ;   K[2]='m_nextStateTime'
  ;   K[3]='m_model'
  ;   K[4]='GetNextStateTime'
  ;   K[5]='UpdatePerSecond'
  ;   K[6]='m_activityDefinition'
  ;   K[7]='BaseItemTextKey'
  ;   K[8]='m_preDesc1Text'
  ;   K[9]='text'
  ;   K[10]='GM'
  ;   K[11]='GameTextModel'
  ;   K[12]='GetText'
  ;   K[13]='extraBoard_pre_desc1'
  ;   K[14]='m_preDesc2Text'
  ;   K[15]='extraBoard_pre_desc2'
  ;   upvals: _ENV
  ;   locals: self(0-39), activityType(0-39), bUserClick(0-39)
  0000  GETTABUP  R3 = _ENV[K0('ExtraBoardActivityBaseWindow')]
  0001  GETTABLE  R3 = R3[K1('Init')]
  0002  MOVE      R4 = R0
  0003  MOVE      R5 = R0
  0004  MOVE      R6 = R0
  0005  CALL      R3 = call(R3, 0 args, 3 rets)
  0006  GETTABLE  R3 = R0[K3('m_model')]
  0007  SELF      R4 = R3[K4('GetNextStateTime')] (self)
  0008  CALL      R3 = call(R3, 1 args, 1 rets)
  0009  SETTABLE  R0[K2('m_nextStateTime')] = R3
  0010  SELF      R4 = R0[K5('UpdatePerSecond')] (self)
  0011  CALL      R3 = call(R3, 0 args, 1 rets)
  0012  GETTABLE  R3 = R0[K6('m_activityDefinition')]
  0013  GETTABLE  R3 = R3[K7('BaseItemTextKey')]
  0014  TEST      if not R3 then   -> -131056
  0015  JMP       (jump)   -> 38
  0016  GETTABLE  R3 = R0[K8('m_preDesc1Text')]
  0017  GETTABUP  R4 = _ENV[K10('GM')]
  0018  GETTABLE  R4 = R4[K11('GameTextModel')]
  0019  SELF      R5 = R4[K12('GetText')] (self)
  0020  LOADK     R6 = K13 'extraBoard_pre_desc1'
  0021  GETTABLE  R7 = R0[K6('m_activityDefinition')]
  0022  GETTABLE  R7 = R7[K7('BaseItemTextKey')]
  0023  GETTABLE  R8 = R0[K6('m_activityDefinition')]
  0024  GETTABLE  R8 = R8[K7('BaseItemTextKey')]
  0025  CALL      R4 = call(R4, 1 args, 4 rets)
  0026  SETTABLE  R3[K9('text')] = R4
  0027  GETTABLE  R3 = R0[K14('m_preDesc2Text')]
  0028  GETTABUP  R4 = _ENV[K10('GM')]
  0029  GETTABLE  R4 = R4[K11('GameTextModel')]
  0030  SELF      R5 = R4[K12('GetText')] (self)
  0031  LOADK     R6 = K15 'extraBoard_pre_desc2'
  0032  GETTABLE  R7 = R0[K6('m_activityDefinition')]
  0033  GETTABLE  R7 = R7[K7('BaseItemTextKey')]
  0034  GETTABLE  R8 = R0[K6('m_activityDefinition')]
  0035  GETTABLE  R8 = R8[K7('BaseItemTextKey')]
  0036  CALL      R4 = call(R4, 1 args, 4 rets)
  0037  SETTABLE  R3[K9('text')] = R4
  0038  RETURN    return R0..R-1
; ---------- proto1 [UpdatePerSecond] ----------
  ; fn ?  line 17-23 np=1 va=0 ms=8 code=27 consts=15 upvals=1 protos=0
  ;   K[0]='ExtraBoardActivityBaseWindow'
  ;   K[1]='UpdatePerSecond'
  ;   K[2]='m_nextStateTime'
  ;   K[3]=nil
  ;   K[4]='math'
  ;   K[5]='max'
  ;   K[6]=0
  ;   K[7]='GM'
  ;   K[8]='GameModel'
  ;   K[9]='GetServerTime'
  ;   K[10]='m_countdownText'
  ;   K[11]='text'
  ;   K[12]='TimeUtil'
  ;   K[13]='ParseTimeDescription'
  ;   K[14]=2
  ;   upvals: _ENV
  ;   locals: self(0-27), delta(17-26)
  0000  GETTABUP  R1 = _ENV[K0('ExtraBoardActivityBaseWindow')]
  0001  GETTABLE  R1 = R1[K1('UpdatePerSecond')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABLE  R1 = R0[K2('m_nextStateTime')]
  0005  EQ        if R1 eq K3(nil)   -> -130294
  0006  JMP       (jump)   -> 26
  0007  GETTABUP  R1 = _ENV[K4('math')]
  0008  GETTABLE  R1 = R1[K5('max')]
  0009  LOADK     R2 = K6 0
  0010  GETTABLE  R3 = R0[K2('m_nextStateTime')]
  0011  GETTABUP  R4 = _ENV[K7('GM')]
  0012  GETTABLE  R4 = R4[K8('GameModel')]
  0013  SELF      R5 = R4[K9('GetServerTime')] (self)
  0014  CALL      R4 = call(R4, 1 args, 1 rets)
  0015  SUB       R3 = R4 sub R3
  0016  CALL      R1 = call(R1, 1 args, 2 rets)
  0017  GETTABLE  R2 = R0[K10('m_countdownText')]
  0018  GETTABUP  R3 = _ENV[K12('TimeUtil')]
  0019  GETTABLE  R3 = R3[K13('ParseTimeDescription')]
  0020  MOVE      R4 = R0
  0021  LOADK     R5 = K14 2
  0022  LOADBOOL  R6 = false
  0023  LOADBOOL  R7 = false
  0024  CALL      R3 = call(R3, 1 args, 4 rets)
  0025  SETTABLE  R2[K11('text')] = R3
  0026  RETURN    return R0..R-1
