# DashActivity_Common_View_DashActivityEntry_791.luac
; fn @DashActivityEntry.lua  line 0-0 np=0 va=1 ms=3 code=18 consts=7 upvals=1 protos=3
;   K[0]='DashActivityEntry'
;   K[1]='setmetatable'
;   K[2]='HudGeneralButton'
;   K[3]='__index'
;   K[4]='Init'
;   K[5]='UpdatePerSecond'
;   K[6]='OnClicked'
;   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('DashActivityEntry')] = R0
0005  GETTABUP  R0 = _ENV[K0('DashActivityEntry')]
0006  GETTABUP  R1 = _ENV[K0('DashActivityEntry')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('DashActivityEntry')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Init')] = R1
0011  GETTABUP  R0 = _ENV[K0('DashActivityEntry')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('UpdatePerSecond')] = R1
0014  GETTABUP  R0 = _ENV[K0('DashActivityEntry')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('OnClicked')] = R1
0017  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 6-12 np=2 va=0 ms=6 code=20 consts=12 upvals=1 protos=0
  ;   K[0]='m_activityType'
  ;   K[1]='m_model'
  ;   K[2]='GM'
  ;   K[3]='ActivityManager'
  ;   K[4]='GetModel'
  ;   K[5]='m_activityDefinition'
  ;   K[6]='DashActivityDefinition'
  ;   K[7]='SpriteUtil'
  ;   K[8]='SetImage'
  ;   K[9]='m_iconImage'
  ;   K[10]='EntryImageName'
  ;   K[11]='UpdatePerSecond'
  ;   upvals: _ENV
  ;   locals: self(0-20), activityType(0-20)
  0000  SETTABLE  R0[K0('m_activityType')] = R1
  0001  GETTABUP  R2 = _ENV[K2('GM')]
  0002  GETTABLE  R2 = R2[K3('ActivityManager')]
  0003  SELF      R3 = R2[K4('GetModel')] (self)
  0004  MOVE      R4 = R0
  0005  CALL      R2 = call(R2, 1 args, 2 rets)
  0006  SETTABLE  R0[K1('m_model')] = R2
  0007  GETTABUP  R2 = _ENV[K6('DashActivityDefinition')]
  0008  GETTABLE  R2 = R2[R1]
  0009  SETTABLE  R0[K5('m_activityDefinition')] = R2
  0010  GETTABUP  R2 = _ENV[K7('SpriteUtil')]
  0011  GETTABLE  R2 = R2[K8('SetImage')]
  0012  GETTABLE  R3 = R0[K9('m_iconImage')]
  0013  GETTABLE  R4 = R0[K5('m_activityDefinition')]
  0014  GETTABLE  R4 = R4[K10('EntryImageName')]
  0015  LOADBOOL  R5 = true
  0016  CALL      R2 = call(R2, 0 args, 3 rets)
  0017  SELF      R3 = R0[K11('UpdatePerSecond')] (self)
  0018  CALL      R2 = call(R2, 0 args, 1 rets)
  0019  RETURN    return R0..R-1
; ---------- proto1 [UpdatePerSecond] ----------
  ; fn ?  line 14-17 np=1 va=0 ms=8 code=18 consts=10 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='GetNextStateTime'
  ;   K[2]='GM'
  ;   K[3]='GameModel'
  ;   K[4]='GetServerTime'
  ;   K[5]='m_countDownText'
  ;   K[6]='text'
  ;   K[7]='TimeUtil'
  ;   K[8]='ParseTimeDescription'
  ;   K[9]=2
  ;   upvals: _ENV
  ;   locals: self(0-18), delta(8-18)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  SELF      R2 = R1[K1('GetNextStateTime')] (self)
  0002  CALL      R1 = call(R1, 1 args, 1 rets)
  0003  GETTABUP  R2 = _ENV[K2('GM')]
  0004  GETTABLE  R2 = R2[K3('GameModel')]
  0005  SELF      R3 = R2[K4('GetServerTime')] (self)
  0006  CALL      R2 = call(R2, 1 args, 1 rets)
  0007  SUB       R1 = R2 sub R1
  0008  GETTABLE  R2 = R0[K5('m_countDownText')]
  0009  GETTABUP  R3 = _ENV[K7('TimeUtil')]
  0010  GETTABLE  R3 = R3[K8('ParseTimeDescription')]
  0011  MOVE      R4 = R0
  0012  LOADK     R5 = K9 2
  0013  LOADBOOL  R6 = false
  0014  LOADBOOL  R7 = false
  0015  CALL      R3 = call(R3, 1 args, 4 rets)
  0016  SETTABLE  R2[K6('text')] = R3
  0017  RETURN    return R0..R-1
; ---------- proto2 [OnClicked] ----------
  ; fn ?  line 19-27 np=1 va=0 ms=7 code=28 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-28), state(3-28)
  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  R2 = _ENV[K4('GM')]
  0008  GETTABLE  R2 = R2[K5('UIManager')]
  0009  SELF      R3 = R2[K6('OpenView')] (self)
  0010  GETTABLE  R4 = R0[K7('m_activityDefinition')]
  0011  GETTABLE  R4 = R4[K8('NoticeWindowPrefabName')]
  0012  GETTABLE  R5 = R0[K9('m_activityType')]
  0013  LOADBOOL  R6 = false
  0014  CALL      R2 = call(R2, 0 args, 4 rets)
  0015  JMP       (jump)   -> 27
  0016  GETTABUP  R2 = _ENV[K2('ActivityState')]
  0017  GETTABLE  R2 = R2[K10('Started')]
  0018  EQ        if R0 eq R2   -> -130538
  0019  JMP       (jump)   -> 27
  0020  GETTABUP  R2 = _ENV[K4('GM')]
  0021  GETTABLE  R2 = R2[K5('UIManager')]
  0022  SELF      R3 = R2[K6('OpenView')] (self)
  0023  GETTABLE  R4 = R0[K7('m_activityDefinition')]
  0024  GETTABLE  R4 = R4[K11('MainWindowPrefabName')]
  0025  GETTABLE  R5 = R0[K9('m_activityType')]
  0026  CALL      R2 = call(R2, 0 args, 3 rets)
  0027  RETURN    return R0..R-1
