# BlockActivity_View_BlockStartWindow_1550.luac
; fn @BlockStartWindow.lua  line 0-0 np=0 va=1 ms=3 code=19 consts=9 upvals=1 protos=3
;   K[0]='BlockStartWindow'
;   K[1]='setmetatable'
;   K[2]='canClickWindowMask'
;   K[3]=true
;   K[4]='BlockActivityBaseWindow'
;   K[5]='__index'
;   K[6]='Init'
;   K[7]='OnBtnClicked'
;   K[8]='UpdatePerSecond'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  SETTABLE  R1[K2('canClickWindowMask')] = K3(true)
0003  GETTABUP  R2 = _ENV[K4('BlockActivityBaseWindow')]
0004  CALL      R0 = call(R0, 1 args, 2 rets)
0005  SETTABUP  _ENV[K0('BlockStartWindow')] = R0
0006  GETTABUP  R0 = _ENV[K0('BlockStartWindow')]
0007  GETTABUP  R1 = _ENV[K0('BlockStartWindow')]
0008  SETTABLE  R0[K5('__index')] = R1
0009  GETTABUP  R0 = _ENV[K0('BlockStartWindow')]
0010  CLOSURE   R1 = closure proto0
0011  SETTABLE  R0[K6('Init')] = R1
0012  GETTABUP  R0 = _ENV[K0('BlockStartWindow')]
0013  CLOSURE   R1 = closure proto1
0014  SETTABLE  R0[K7('OnBtnClicked')] = R1
0015  GETTABUP  R0 = _ENV[K0('BlockStartWindow')]
0016  CLOSURE   R1 = closure proto2
0017  SETTABLE  R0[K8('UpdatePerSecond')] = R1
0018  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 7-10 np=1 va=1 ms=4 code=8 consts=3 upvals=1 protos=0
  ;   K[0]='BlockActivityBaseWindow'
  ;   K[1]='Init'
  ;   K[2]='UpdatePerSecond'
  ;   upvals: _ENV
  ;   locals: self(0-8)
  0000  GETTABUP  R1 = _ENV[K0('BlockActivityBaseWindow')]
  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  SELF      R2 = R0[K2('UpdatePerSecond')] (self)
  0006  CALL      R1 = call(R1, 0 args, 1 rets)
  0007  RETURN    return R0..R-1
; ---------- proto1 [OnBtnClicked] ----------
  ; fn ?  line 12-16 np=1 va=0 ms=6 code=11 consts=7 upvals=1 protos=0
  ;   K[0]='Close'
  ;   K[1]='GM'
  ;   K[2]='UIManager'
  ;   K[3]='OpenView'
  ;   K[4]='m_activityDefinition'
  ;   K[5]='MainWindowPrefabName'
  ;   K[6]='m_activityType'
  ;   upvals: _ENV
  ;   locals: self(0-11)
  0000  SELF      R2 = R0[K0('Close')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  GETTABUP  R1 = _ENV[K1('GM')]
  0003  GETTABLE  R1 = R1[K2('UIManager')]
  0004  SELF      R2 = R1[K3('OpenView')] (self)
  0005  GETTABLE  R3 = R0[K4('m_activityDefinition')]
  0006  GETTABLE  R3 = R3[K5('MainWindowPrefabName')]
  0007  GETTABLE  R4 = R0[K6('m_activityType')]
  0008  LOADBOOL  R5 = true
  0009  CALL      R1 = call(R1, 0 args, 4 rets)
  0010  RETURN    return R0..R-1
; ---------- proto2 [UpdatePerSecond] ----------
  ; fn ?  line 18-27 np=1 va=0 ms=8 code=37 consts=17 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]=nil
  ;   K[2]='GetState'
  ;   K[3]='ActivityState'
  ;   K[4]='Started'
  ;   K[5]='UIUtil'
  ;   K[6]='SetActive'
  ;   K[7]='m_countdownGo'
  ;   K[8]='GetNextStateTime'
  ;   K[9]='GM'
  ;   K[10]='GameModel'
  ;   K[11]='GetServerTime'
  ;   K[12]='m_countdownText'
  ;   K[13]='text'
  ;   K[14]='TimeUtil'
  ;   K[15]='ParseTimeDescription'
  ;   K[16]=2
  ;   upvals: _ENV
  ;   locals: self(0-37), delta(27-36)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  EQ        if R1 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 16
  0003  GETTABLE  R1 = R0[K0('m_model')]
  0004  SELF      R2 = R1[K2('GetState')] (self)
  0005  CALL      R1 = call(R1, 1 args, 1 rets)
  0006  GETTABUP  R2 = _ENV[K3('ActivityState')]
  0007  GETTABLE  R2 = R2[K4('Started')]
  0008  EQ        if R1 eq R2   -> -130548
  0009  JMP       (jump)   -> 16
  0010  GETTABUP  R1 = _ENV[K5('UIUtil')]
  0011  GETTABLE  R1 = R1[K6('SetActive')]
  0012  GETTABLE  R2 = R0[K7('m_countdownGo')]
  0013  LOADBOOL  R3 = false
  0014  CALL      R1 = call(R1, 0 args, 2 rets)
  0015  RETURN    return R0..R-1
  0016  GETTABLE  R1 = R0[K0('m_model')]
  0017  EQ        if R1 eq K1(nil)   -> -130284
  0018  JMP       (jump)   -> 36
  0019  GETTABLE  R1 = R0[K0('m_model')]
  0020  SELF      R2 = R1[K8('GetNextStateTime')] (self)
  0021  CALL      R1 = call(R1, 1 args, 1 rets)
  0022  GETTABUP  R2 = _ENV[K9('GM')]
  0023  GETTABLE  R2 = R2[K10('GameModel')]
  0024  SELF      R3 = R2[K11('GetServerTime')] (self)
  0025  CALL      R2 = call(R2, 1 args, 1 rets)
  0026  SUB       R1 = R2 sub R1
  0027  GETTABLE  R2 = R0[K12('m_countdownText')]
  0028  GETTABUP  R3 = _ENV[K14('TimeUtil')]
  0029  GETTABLE  R3 = R3[K15('ParseTimeDescription')]
  0030  MOVE      R4 = R0
  0031  LOADK     R5 = K16 2
  0032  LOADBOOL  R6 = false
  0033  LOADBOOL  R7 = false
  0034  CALL      R3 = call(R3, 1 args, 4 rets)
  0035  SETTABLE  R2[K13('text')] = R3
  0036  RETURN    return R0..R-1
