# ProgressActivity_View_ProgressActivityEntry_980.luac
; fn @ProgressActivityEntry.lua  line 0-0 np=0 va=1 ms=3 code=18 consts=7 upvals=1 protos=3
;   K[0]='ProgressActivityEntry'
;   K[1]='setmetatable'
;   K[2]='HudGeneralButton'
;   K[3]='__index'
;   K[4]='Init'
;   K[5]='UpdatePerSecond'
;   K[6]='OnBtnClicked'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('HudGeneralButton')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('ProgressActivityEntry')] = R0
0005  GETTABUP  R0 = _ENV[K0('ProgressActivityEntry')]
0006  GETTABUP  R1 = _ENV[K0('ProgressActivityEntry')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('ProgressActivityEntry')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Init')] = R1
0011  GETTABUP  R0 = _ENV[K0('ProgressActivityEntry')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('UpdatePerSecond')] = R1
0014  GETTABUP  R0 = _ENV[K0('ProgressActivityEntry')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('OnBtnClicked')] = R1
0017  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 4-10 np=2 va=0 ms=4 code=12 consts=6 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='m_activityType'
  ;   K[2]='GetType'
  ;   K[3]='m_activityDefinition'
  ;   K[4]='ProgressActivityDefinition'
  ;   K[5]='UpdatePerSecond'
  ;   upvals: _ENV
  ;   locals: self(0-12), model(0-12)
  0000  SETTABLE  R0[K0('m_model')] = R1
  0001  GETTABLE  R2 = R0[K0('m_model')]
  0002  SELF      R3 = R2[K2('GetType')] (self)
  0003  CALL      R2 = call(R2, 1 args, 1 rets)
  0004  SETTABLE  R0[K1('m_activityType')] = R2
  0005  GETTABUP  R2 = _ENV[K4('ProgressActivityDefinition')]
  0006  GETTABLE  R3 = R0[K1('m_activityType')]
  0007  GETTABLE  R2 = R2[R3]
  0008  SETTABLE  R0[K3('m_activityDefinition')] = R2
  0009  SELF      R3 = R0[K5('UpdatePerSecond')] (self)
  0010  CALL      R2 = call(R2, 0 args, 1 rets)
  0011  RETURN    return R0..R-1
; ---------- proto1 [UpdatePerSecond] ----------
  ; fn ?  line 12-24 np=1 va=0 ms=8 code=43 consts=18 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]=nil
  ;   K[2]='GetState'
  ;   K[3]='ActivityState'
  ;   K[4]='Ended'
  ;   K[5]='Released'
  ;   K[6]='m_countDownText'
  ;   K[7]='text'
  ;   K[8]='GM'
  ;   K[9]='GameTextModel'
  ;   K[10]='GetText'
  ;   K[11]='countdown_finished'
  ;   K[12]='GetNextStateTime'
  ;   K[13]='GameModel'
  ;   K[14]='GetServerTime'
  ;   K[15]='TimeUtil'
  ;   K[16]='ParseTimeDescription'
  ;   K[17]=2
  ;   upvals: _ENV
  ;   locals: self(0-43), delta(33-43)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  EQ        if R0 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 4
  0003  RETURN    return R0..R-1
  0004  GETTABLE  R1 = R0[K0('m_model')]
  0005  SELF      R2 = R1[K2('GetState')] (self)
  0006  CALL      R1 = call(R1, 1 args, 1 rets)
  0007  GETTABUP  R2 = _ENV[K3('ActivityState')]
  0008  GETTABLE  R2 = R2[K4('Ended')]
  0009  EQ        if R1 eq R2   -> -130547
  0010  JMP       (jump)   -> 18
  0011  GETTABLE  R1 = R0[K0('m_model')]
  0012  SELF      R2 = R1[K2('GetState')] (self)
  0013  CALL      R1 = call(R1, 1 args, 1 rets)
  0014  GETTABUP  R2 = _ENV[K3('ActivityState')]
  0015  GETTABLE  R2 = R2[K5('Released')]
  0016  EQ        if R0 eq R2   -> -130540
  0017  JMP       (jump)   -> 25
  0018  GETTABLE  R1 = R0[K6('m_countDownText')]
  0019  GETTABUP  R2 = _ENV[K8('GM')]
  0020  GETTABLE  R2 = R2[K9('GameTextModel')]
  0021  SELF      R3 = R2[K10('GetText')] (self)
  0022  LOADK     R4 = K11 'countdown_finished'
  0023  CALL      R2 = call(R2, 1 args, 2 rets)
  0024  SETTABLE  R1[K7('text')] = R2
  0025  GETTABLE  R1 = R0[K0('m_model')]
  0026  SELF      R2 = R1[K12('GetNextStateTime')] (self)
  0027  CALL      R1 = call(R1, 1 args, 1 rets)
  0028  GETTABUP  R2 = _ENV[K8('GM')]
  0029  GETTABLE  R2 = R2[K13('GameModel')]
  0030  SELF      R3 = R2[K14('GetServerTime')] (self)
  0031  CALL      R2 = call(R2, 1 args, 1 rets)
  0032  SUB       R1 = R2 sub R1
  0033  GETTABLE  R2 = R0[K6('m_countDownText')]
  0034  GETTABUP  R3 = _ENV[K15('TimeUtil')]
  0035  GETTABLE  R3 = R3[K16('ParseTimeDescription')]
  0036  MOVE      R4 = R0
  0037  LOADK     R5 = K17 2
  0038  LOADBOOL  R6 = false
  0039  LOADBOOL  R7 = false
  0040  CALL      R3 = call(R3, 1 args, 4 rets)
  0041  SETTABLE  R2[K7('text')] = R3
  0042  RETURN    return R0..R-1
; ---------- proto2 [OnBtnClicked] ----------
  ; fn ?  line 26-32 np=1 va=0 ms=6 code=32 consts=12 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='GetState'
  ;   K[2]='ActivityState'
  ;   K[3]='Preparing'
  ;   K[4]='GM'
  ;   K[5]='UIManager'
  ;   K[6]='OpenView'
  ;   K[7]='m_activityDefinition'
  ;   K[8]='NoticeWindowPrefabName'
  ;   K[9]='m_activityType'
  ;   K[10]='Started'
  ;   K[11]='MainWindowPrefabName'
  ;   upvals: _ENV
  ;   locals: self(0-32)
  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('Preparing')]
  0005  EQ        if R0 eq R2   -> -130551
  0006  JMP       (jump)   -> 16
  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('NoticeWindowPrefabName')]
  0012  GETTABLE  R4 = R0[K9('m_activityType')]
  0013  LOADBOOL  R5 = false
  0014  CALL      R1 = call(R1, 0 args, 4 rets)
  0015  JMP       (jump)   -> 31
  0016  GETTABLE  R1 = R0[K0('m_model')]
  0017  SELF      R2 = R1[K1('GetState')] (self)
  0018  CALL      R1 = call(R1, 1 args, 1 rets)
  0019  GETTABUP  R2 = _ENV[K2('ActivityState')]
  0020  GETTABLE  R2 = R2[K10('Started')]
  0021  EQ        if R0 eq R2   -> -130535
  0022  JMP       (jump)   -> 31
  0023  GETTABUP  R1 = _ENV[K4('GM')]
  0024  GETTABLE  R1 = R1[K5('UIManager')]
  0025  SELF      R2 = R1[K6('OpenView')] (self)
  0026  GETTABLE  R3 = R0[K7('m_activityDefinition')]
  0027  GETTABLE  R3 = R3[K11('MainWindowPrefabName')]
  0028  GETTABLE  R4 = R0[K9('m_activityType')]
  0029  LOADBOOL  R5 = false
  0030  CALL      R1 = call(R1, 0 args, 4 rets)
  0031  RETURN    return R0..R-1
