# BlockActivity_View_BlockActivityBoardEntry_1544.luac
; fn @BlockActivityBoardEntry.lua  line 0-0 np=0 va=1 ms=2 code=36 consts=12 upvals=1 protos=10
;   K[0]='BlockActivityBoardEntry'
;   K[1]='__index'
;   K[2]='Awake'
;   K[3]='Init'
;   K[4]='OnDestroy'
;   K[5]='GetModel'
;   K[6]='_AddListeners'
;   K[7]='UpdatePerSecond'
;   K[8]='OnMaskClicked'
;   K[9]='UpdateContent'
;   K[10]='GetIconArea'
;   K[11]='_OnCloseView'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('BlockActivityBoardEntry')] = R0
0002  GETTABUP  R0 = _ENV[K0('BlockActivityBoardEntry')]
0003  GETTABUP  R1 = _ENV[K0('BlockActivityBoardEntry')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('BlockActivityBoardEntry')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Awake')] = R1
0008  GETTABUP  R0 = _ENV[K0('BlockActivityBoardEntry')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K3('Init')] = R1
0011  GETTABUP  R0 = _ENV[K0('BlockActivityBoardEntry')]
0012  CLOSURE   R1 = closure proto2
0013  SETTABLE  R0[K4('OnDestroy')] = R1
0014  GETTABUP  R0 = _ENV[K0('BlockActivityBoardEntry')]
0015  CLOSURE   R1 = closure proto3
0016  SETTABLE  R0[K5('GetModel')] = R1
0017  GETTABUP  R0 = _ENV[K0('BlockActivityBoardEntry')]
0018  CLOSURE   R1 = closure proto4
0019  SETTABLE  R0[K6('_AddListeners')] = R1
0020  GETTABUP  R0 = _ENV[K0('BlockActivityBoardEntry')]
0021  CLOSURE   R1 = closure proto5
0022  SETTABLE  R0[K7('UpdatePerSecond')] = R1
0023  GETTABUP  R0 = _ENV[K0('BlockActivityBoardEntry')]
0024  CLOSURE   R1 = closure proto6
0025  SETTABLE  R0[K8('OnMaskClicked')] = R1
0026  GETTABUP  R0 = _ENV[K0('BlockActivityBoardEntry')]
0027  CLOSURE   R1 = closure proto7
0028  SETTABLE  R0[K9('UpdateContent')] = R1
0029  GETTABUP  R0 = _ENV[K0('BlockActivityBoardEntry')]
0030  CLOSURE   R1 = closure proto8
0031  SETTABLE  R0[K10('GetIconArea')] = R1
0032  GETTABUP  R0 = _ENV[K0('BlockActivityBoardEntry')]
0033  CLOSURE   R1 = closure proto9
0034  SETTABLE  R0[K11('_OnCloseView')] = R1
0035  RETURN    return R0..R-1
; ---------- proto0 [Awake] ----------
  ; fn ?  line 4-6 np=1 va=0 ms=3 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='_AddListeners'
  ;   locals: self(0-3)
  0000  SELF      R2 = R0[K0('_AddListeners')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  RETURN    return R0..R-1
; ---------- proto1 [Init] ----------
  ; fn ?  line 8-22 np=3 va=0 ms=6 code=27 consts=14 upvals=0 protos=0
  ;   K[0]='m_activityType'
  ;   K[1]='GetType'
  ;   K[2]='m_model'
  ;   K[3]='m_activityDefinition'
  ;   K[4]='GetActivityDefinition'
  ;   K[5]='m_orderArea'
  ;   K[6]='m_iconArea'
  ;   K[7]='Init'
  ;   K[8]='SetInBoardView'
  ;   K[9]='UpdateContent'
  ;   K[10]='UpdatePerSecond'
  ;   K[11]='gameObject'
  ;   K[12]='activeInHierarchy'
  ;   K[13]='_AddListeners'
  ;   locals: self(0-27), model(0-27), orderArea(0-27)
  0000  SELF      R4 = R1[K1('GetType')] (self)
  0001  CALL      R3 = call(R3, 1 args, 1 rets)
  0002  SETTABLE  R0[K0('m_activityType')] = R3
  0003  SETTABLE  R0[K2('m_model')] = R1
  0004  GETTABLE  R3 = R0[K2('m_model')]
  0005  SELF      R4 = R3[K4('GetActivityDefinition')] (self)
  0006  CALL      R3 = call(R3, 1 args, 1 rets)
  0007  SETTABLE  R0[K3('m_activityDefinition')] = R3
  0008  SETTABLE  R0[K5('m_orderArea')] = R2
  0009  GETTABLE  R3 = R0[K6('m_iconArea')]
  0010  SELF      R4 = R3[K7('Init')] (self)
  0011  MOVE      R5 = R0
  0012  CALL      R3 = call(R3, 0 args, 2 rets)
  0013  GETTABLE  R3 = R0[K6('m_iconArea')]
  0014  SELF      R4 = R3[K8('SetInBoardView')] (self)
  0015  CALL      R3 = call(R3, 0 args, 1 rets)
  0016  SELF      R4 = R0[K9('UpdateContent')] (self)
  0017  CALL      R3 = call(R3, 0 args, 1 rets)
  0018  SELF      R4 = R0[K10('UpdatePerSecond')] (self)
  0019  CALL      R3 = call(R3, 0 args, 1 rets)
  0020  GETTABLE  R3 = R0[K11('gameObject')]
  0021  GETTABLE  R3 = R3[K12('activeInHierarchy')]
  0022  TEST      if not R3 then   -> -131048
  0023  JMP       (jump)   -> 26
  0024  SELF      R4 = R0[K13('_AddListeners')] (self)
  0025  CALL      R3 = call(R3, 0 args, 1 rets)
  0026  RETURN    return R0..R-1
; ---------- proto2 [OnDestroy] ----------
  ; fn ?  line 24-26 np=1 va=0 ms=3 code=5 consts=2 upvals=1 protos=0
  ;   K[0]='EventDispatcher'
  ;   K[1]='RemoveTarget'
  ;   upvals: _ENV
  ;   locals: self(0-5)
  0000  GETTABUP  R1 = _ENV[K0('EventDispatcher')]
  0001  GETTABLE  R1 = R1[K1('RemoveTarget')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  RETURN    return R0..R-1
; ---------- proto3 [GetModel] ----------
  ; fn ?  line 28-30 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_model'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto4 [_AddListeners] ----------
  ; fn ?  line 32-43 np=1 va=0 ms=5 code=37 consts=12 upvals=1 protos=0
  ;   K[0]='m_activityDefinition'
  ;   K[1]='m_bAddListener'
  ;   K[2]=true
  ;   K[3]='EventDispatcher'
  ;   K[4]='AddListener'
  ;   K[5]='EEventType'
  ;   K[6]='BlockBoardAddScore'
  ;   K[7]='UpdateContent'
  ;   K[8]='StateChangedEvent'
  ;   K[9]='BlockEnterNextRound'
  ;   K[10]='CloseView'
  ;   K[11]='_OnCloseView'
  ;   upvals: _ENV
  ;   locals: self(0-37)
  0000  GETTABLE  R1 = R0[K0('m_activityDefinition')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 6
  0003  GETTABLE  R1 = R0[K1('m_bAddListener')]
  0004  TEST      if not R1 then   -> -131066
  0005  JMP       (jump)   -> 7
  0006  RETURN    return R0..R-1
  0007  SETTABLE  R0[K1('m_bAddListener')] = K2(true)
  0008  GETTABUP  R1 = _ENV[K3('EventDispatcher')]
  0009  GETTABLE  R1 = R1[K4('AddListener')]
  0010  GETTABUP  R2 = _ENV[K5('EEventType')]
  0011  GETTABLE  R2 = R2[K6('BlockBoardAddScore')]
  0012  MOVE      R3 = R0
  0013  GETTABLE  R4 = R0[K7('UpdateContent')]
  0014  CALL      R1 = call(R1, 0 args, 3 rets)
  0015  GETTABUP  R1 = _ENV[K3('EventDispatcher')]
  0016  GETTABLE  R1 = R1[K4('AddListener')]
  0017  GETTABLE  R2 = R0[K0('m_activityDefinition')]
  0018  GETTABLE  R2 = R2[K8('StateChangedEvent')]
  0019  MOVE      R3 = R0
  0020  GETTABLE  R4 = R0[K7('UpdateContent')]
  0021  CALL      R1 = call(R1, 0 args, 3 rets)
  0022  GETTABUP  R1 = _ENV[K3('EventDispatcher')]
  0023  GETTABLE  R1 = R1[K4('AddListener')]
  0024  GETTABUP  R2 = _ENV[K5('EEventType')]
  0025  GETTABLE  R2 = R2[K9('BlockEnterNextRound')]
  0026  MOVE      R3 = R0
  0027  GETTABLE  R4 = R0[K7('UpdateContent')]
  0028  CALL      R1 = call(R1, 0 args, 3 rets)
  0029  GETTABUP  R1 = _ENV[K3('EventDispatcher')]
  0030  GETTABLE  R1 = R1[K4('AddListener')]
  0031  GETTABUP  R2 = _ENV[K5('EEventType')]
  0032  GETTABLE  R2 = R2[K10('CloseView')]
  0033  MOVE      R3 = R0
  0034  GETTABLE  R4 = R0[K11('_OnCloseView')]
  0035  CALL      R1 = call(R1, 0 args, 3 rets)
  0036  RETURN    return R0..R-1
; ---------- proto5 [UpdatePerSecond] ----------
  ; fn ?  line 45-51 np=1 va=0 ms=9 code=27 consts=14 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='GetNextStateTime'
  ;   K[2]=nil
  ;   K[3]='math'
  ;   K[4]='max'
  ;   K[5]=0
  ;   K[6]='GM'
  ;   K[7]='GameModel'
  ;   K[8]='GetServerTime'
  ;   K[9]='m_countDownText'
  ;   K[10]='text'
  ;   K[11]='TimeUtil'
  ;   K[12]='ParseTimeDescription'
  ;   K[13]=2
  ;   upvals: _ENV
  ;   locals: self(0-27), nextStateTime(6-27), delta(17-26)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 6
  0003  GETTABLE  R1 = R0[K0('m_model')]
  0004  SELF      R2 = R1[K1('GetNextStateTime')] (self)
  0005  CALL      R1 = call(R1, 1 args, 1 rets)
  0006  EQ        if R1 eq K2(nil)   -> -130294
  0007  JMP       (jump)   -> 26
  0008  GETTABUP  R2 = _ENV[K3('math')]
  0009  GETTABLE  R2 = R2[K4('max')]
  0010  LOADK     R3 = K5 0
  0011  GETTABUP  R4 = _ENV[K6('GM')]
  0012  GETTABLE  R4 = R4[K7('GameModel')]
  0013  SELF      R5 = R4[K8('GetServerTime')] (self)
  0014  CALL      R4 = call(R4, 1 args, 1 rets)
  0015  SUB       R4 = R4 sub R1
  0016  CALL      R2 = call(R2, 1 args, 2 rets)
  0017  GETTABLE  R3 = R0[K9('m_countDownText')]
  0018  GETTABUP  R4 = _ENV[K11('TimeUtil')]
  0019  GETTABLE  R4 = R4[K12('ParseTimeDescription')]
  0020  MOVE      R5 = R0
  0021  LOADK     R6 = K13 2
  0022  LOADBOOL  R7 = false
  0023  LOADBOOL  R8 = false
  0024  CALL      R4 = call(R4, 1 args, 4 rets)
  0025  SETTABLE  R3[K10('text')] = R4
  0026  RETURN    return R0..R-1
; ---------- proto6 [OnMaskClicked] ----------
  ; fn ?  line 53-57 np=1 va=0 ms=6 code=16 consts=10 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='GetState'
  ;   K[2]='ActivityState'
  ;   K[3]='Started'
  ;   K[4]='GM'
  ;   K[5]='UIManager'
  ;   K[6]='OpenView'
  ;   K[7]='m_activityDefinition'
  ;   K[8]='MainWindowPrefabName'
  ;   K[9]='m_activityType'
  ;   upvals: _ENV
  ;   locals: self(0-16)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  SELF      R2 = R1[K1('GetState')] (self)
  0002  CALL      R1 = call(R1, 1 args, 1 rets)
  0003  GETTABUP  R2 = _ENV[K2('ActivityState')]
  0004  GETTABLE  R2 = R2[K3('Started')]
  0005  EQ        if R0 eq R2   -> -130551
  0006  JMP       (jump)   -> 15
  0007  GETTABUP  R1 = _ENV[K4('GM')]
  0008  GETTABLE  R1 = R1[K5('UIManager')]
  0009  SELF      R2 = R1[K6('OpenView')] (self)
  0010  GETTABLE  R3 = R0[K7('m_activityDefinition')]
  0011  GETTABLE  R3 = R3[K8('MainWindowPrefabName')]
  0012  GETTABLE  R4 = R0[K9('m_activityType')]
  0013  LOADBOOL  R5 = true
  0014  CALL      R1 = call(R1, 0 args, 4 rets)
  0015  RETURN    return R0..R-1
; ---------- proto7 [UpdateContent] ----------
  ; fn ?  line 59-67 np=1 va=0 ms=7 code=23 consts=10 upvals=0 protos=0
  ;   K[0]='m_model'
  ;   K[1]='GetScore'
  ;   K[2]='GetTargetScore'
  ;   K[3]=nil
  ;   K[4]=0
  ;   K[5]='m_progressSlider'
  ;   K[6]='value'
  ;   K[7]='m_progressText'
  ;   K[8]='text'
  ;   K[9]='/'
  ;   locals: self(0-23), curScore(3-23), targetScore(6-23)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  SELF      R2 = R1[K1('GetScore')] (self)
  0002  CALL      R1 = call(R1, 1 args, 1 rets)
  0003  GETTABLE  R2 = R0[K0('m_model')]
  0004  SELF      R3 = R2[K2('GetTargetScore')] (self)
  0005  CALL      R2 = call(R2, 1 args, 1 rets)
  0006  EQ        if R1 eq K3(nil)   -> -130293
  0007  JMP       (jump)   -> 12
  0008  EQ        if R1 eq K3(nil)   -> -129779
  0009  JMP       (jump)   -> 12
  0010  EQ        if R0 eq K4(0)   -> -129776
  0011  JMP       (jump)   -> 13
  0012  RETURN    return R0..R-1
  0013  GETTABLE  R3 = R0[K5('m_progressSlider')]
  0014  DIV       R4 = R2 div R1
  0015  SETTABLE  R3[K6('value')] = R4
  0016  GETTABLE  R3 = R0[K7('m_progressText')]
  0017  MOVE      R4 = R0
  0018  LOADK     R5 = K9 '/'
  0019  MOVE      R6 = R0
  0020  CONCAT    R4 = concat(R4..R4)
  0021  SETTABLE  R3[K8('text')] = R4
  0022  RETURN    return R0..R-1
; ---------- proto8 [GetIconArea] ----------
  ; fn ?  line 69-71 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_iconArea'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_iconArea')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto9 [_OnCloseView] ----------
  ; fn ?  line 73-77 np=2 va=0 ms=4 code=11 consts=5 upvals=0 protos=0
  ;   K[0]='name'
  ;   K[1]='m_activityDefinition'
  ;   K[2]='MainWindowPrefabName'
  ;   K[3]='m_iconArea'
  ;   K[4]='SyncToModelValue'
  ;   locals: self(0-11), msg(0-11)
  0000  TEST      if not R1 then   -> -131070
  0001  JMP       (jump)   -> 10
  0002  GETTABLE  R2 = R1[K0('name')]
  0003  GETTABLE  R3 = R0[K1('m_activityDefinition')]
  0004  GETTABLE  R3 = R3[K2('MainWindowPrefabName')]
  0005  EQ        if R0 eq R3   -> -130038
  0006  JMP       (jump)   -> 10
  0007  GETTABLE  R2 = R0[K3('m_iconArea')]
  0008  SELF      R3 = R2[K4('SyncToModelValue')] (self)
  0009  CALL      R2 = call(R2, 0 args, 1 rets)
  0010  RETURN    return R0..R-1
