# Model_UpcomingEvent_UpcomingEventModel_200.luac
; fn @UpcomingEventModel.lua  line 0-0 np=0 va=1 ms=2 code=45 consts=15 upvals=1 protos=13
;   K[0]='UpcomingEventModel'
;   K[1]='__index'
;   K[2]='Init'
;   K[3]='Destroy'
;   K[4]='OnLevelUp'
;   K[5]='LoadServerConfig'
;   K[6]='UpdatePerSecond'
;   K[7]='HasUpcomingEvent'
;   K[8]='GetId'
;   K[9]='GetIconLink'
;   K[10]='GetPictureLink'
;   K[11]='GetLastTime'
;   K[12]='GetTitleText'
;   K[13]='GetDescText'
;   K[14]='GetButtonText'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('UpcomingEventModel')] = R0
0002  GETTABUP  R0 = _ENV[K0('UpcomingEventModel')]
0003  GETTABUP  R1 = _ENV[K0('UpcomingEventModel')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('UpcomingEventModel')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Init')] = R1
0008  GETTABUP  R0 = _ENV[K0('UpcomingEventModel')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K3('Destroy')] = R1
0011  GETTABUP  R0 = _ENV[K0('UpcomingEventModel')]
0012  CLOSURE   R1 = closure proto2
0013  SETTABLE  R0[K4('OnLevelUp')] = R1
0014  GETTABUP  R0 = _ENV[K0('UpcomingEventModel')]
0015  CLOSURE   R1 = closure proto3
0016  SETTABLE  R0[K5('LoadServerConfig')] = R1
0017  GETTABUP  R0 = _ENV[K0('UpcomingEventModel')]
0018  CLOSURE   R1 = closure proto4
0019  SETTABLE  R0[K6('UpdatePerSecond')] = R1
0020  GETTABUP  R0 = _ENV[K0('UpcomingEventModel')]
0021  CLOSURE   R1 = closure proto5
0022  SETTABLE  R0[K7('HasUpcomingEvent')] = R1
0023  GETTABUP  R0 = _ENV[K0('UpcomingEventModel')]
0024  CLOSURE   R1 = closure proto6
0025  SETTABLE  R0[K8('GetId')] = R1
0026  GETTABUP  R0 = _ENV[K0('UpcomingEventModel')]
0027  CLOSURE   R1 = closure proto7
0028  SETTABLE  R0[K9('GetIconLink')] = R1
0029  GETTABUP  R0 = _ENV[K0('UpcomingEventModel')]
0030  CLOSURE   R1 = closure proto8
0031  SETTABLE  R0[K10('GetPictureLink')] = R1
0032  GETTABUP  R0 = _ENV[K0('UpcomingEventModel')]
0033  CLOSURE   R1 = closure proto9
0034  SETTABLE  R0[K11('GetLastTime')] = R1
0035  GETTABUP  R0 = _ENV[K0('UpcomingEventModel')]
0036  CLOSURE   R1 = closure proto10
0037  SETTABLE  R0[K12('GetTitleText')] = R1
0038  GETTABUP  R0 = _ENV[K0('UpcomingEventModel')]
0039  CLOSURE   R1 = closure proto11
0040  SETTABLE  R0[K13('GetDescText')] = R1
0041  GETTABUP  R0 = _ENV[K0('UpcomingEventModel')]
0042  CLOSURE   R1 = closure proto12
0043  SETTABLE  R0[K14('GetButtonText')] = R1
0044  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 4-6 np=1 va=0 ms=5 code=8 consts=5 upvals=1 protos=0
  ;   K[0]='EventDispatcher'
  ;   K[1]='AddListener'
  ;   K[2]='EEventType'
  ;   K[3]='LevelUp'
  ;   K[4]='OnLevelUp'
  ;   upvals: _ENV
  ;   locals: self(0-8)
  0000  GETTABUP  R1 = _ENV[K0('EventDispatcher')]
  0001  GETTABLE  R1 = R1[K1('AddListener')]
  0002  GETTABUP  R2 = _ENV[K2('EEventType')]
  0003  GETTABLE  R2 = R2[K3('LevelUp')]
  0004  MOVE      R3 = R0
  0005  GETTABLE  R4 = R0[K4('OnLevelUp')]
  0006  CALL      R1 = call(R1, 0 args, 3 rets)
  0007  RETURN    return R0..R-1
; ---------- proto1 [Destroy] ----------
  ; fn ?  line 8-10 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
; ---------- proto2 [OnLevelUp] ----------
  ; fn ?  line 12-19 np=1 va=0 ms=3 code=22 consts=10 upvals=1 protos=0
  ;   K[0]='m_config'
  ;   K[1]=nil
  ;   K[2]='eLv'
  ;   K[3]='GM'
  ;   K[4]='LevelModel'
  ;   K[5]='GetCurrentLevel'
  ;   K[6]='EventDispatcher'
  ;   K[7]='DispatchEvent'
  ;   K[8]='EEventType'
  ;   K[9]='UpcomingEventStateChanged'
  ;   upvals: _ENV
  ;   locals: self(0-22)
  0000  GETTABLE  R1 = R0[K0('m_config')]
  0001  EQ        if R1 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 21
  0003  GETTABLE  R1 = R0[K0('m_config')]
  0004  GETTABLE  R1 = R1[K2('eLv')]
  0005  EQ        if R1 eq K1(nil)   -> -130296
  0006  JMP       (jump)   -> 21
  0007  GETTABUP  R1 = _ENV[K3('GM')]
  0008  GETTABLE  R1 = R1[K4('LevelModel')]
  0009  SELF      R2 = R1[K5('GetCurrentLevel')] (self)
  0010  CALL      R1 = call(R1, 1 args, 1 rets)
  0011  GETTABLE  R2 = R0[K0('m_config')]
  0012  GETTABLE  R2 = R2[K2('eLv')]
  0013  LT        if R0 lt R1   -> -130032
  0014  JMP       (jump)   -> 21
  0015  SETTABLE  R0[K0('m_config')] = K1(nil)
  0016  GETTABUP  R1 = _ENV[K6('EventDispatcher')]
  0017  GETTABLE  R1 = R1[K7('DispatchEvent')]
  0018  GETTABUP  R2 = _ENV[K8('EEventType')]
  0019  GETTABLE  R2 = R2[K9('UpcomingEventStateChanged')]
  0020  CALL      R1 = call(R1, 0 args, 1 rets)
  0021  RETURN    return R0..R-1
; ---------- proto3 [LoadServerConfig] ----------
  ; fn ?  line 21-38 np=1 va=0 ms=6 code=39 consts=16 upvals=1 protos=1
  ;   K[0]='GM'
  ;   K[1]='ConfigModel'
  ;   K[2]='GetServerConfigMD5'
  ;   K[3]='ServerConfigKey'
  ;   K[4]='UpcomingEvent'
  ;   K[5]='m_md5'
  ;   K[6]='GetServerConfig'
  ;   K[7]=nil
  ;   K[8]='m_config'
  ;   K[9]='EventDispatcher'
  ;   K[10]='DispatchEvent'
  ;   K[11]='EEventType'
  ;   K[12]='UpcomingEventStateChanged'
  ;   K[13]='table'
  ;   K[14]='sort'
  ;   K[15]=1
  ;   upvals: _ENV
  ;   locals: self(0-39), md5(6-39), config(17-39)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('ConfigModel')]
  0002  SELF      R2 = R1[K2('GetServerConfigMD5')] (self)
  0003  GETTABUP  R3 = _ENV[K3('ServerConfigKey')]
  0004  GETTABLE  R3 = R3[K4('UpcomingEvent')]
  0005  CALL      R1 = call(R1, 1 args, 2 rets)
  0006  GETTABLE  R2 = R0[K5('m_md5')]
  0007  EQ        if R0 eq R1   -> -130038
  0008  JMP       (jump)   -> 10
  0009  RETURN    return R0..R-1
  0010  SETTABLE  R0[K5('m_md5')] = R1
  0011  GETTABUP  R2 = _ENV[K0('GM')]
  0012  GETTABLE  R2 = R2[K1('ConfigModel')]
  0013  SELF      R3 = R2[K6('GetServerConfig')] (self)
  0014  GETTABUP  R4 = _ENV[K3('ServerConfigKey')]
  0015  GETTABLE  R4 = R4[K4('UpcomingEvent')]
  0016  CALL      R2 = call(R2, 1 args, 2 rets)
  0017  EQ        if R0 eq K7(nil)   -> -129766
  0018  JMP       (jump)   -> 26
  0019  SETTABLE  R0[K8('m_config')] = K7(nil)
  0020  GETTABUP  R3 = _ENV[K9('EventDispatcher')]
  0021  GETTABLE  R3 = R3[K10('DispatchEvent')]
  0022  GETTABUP  R4 = _ENV[K11('EEventType')]
  0023  GETTABLE  R4 = R4[K12('UpcomingEventStateChanged')]
  0024  CALL      R3 = call(R3, 0 args, 1 rets)
  0025  RETURN    return R0..R-1
  0026  GETTABUP  R3 = _ENV[K13('table')]
  0027  GETTABLE  R3 = R3[K14('sort')]
  0028  MOVE      R4 = R0
  0029  CLOSURE   R5 = closure proto0
  0030  CALL      R3 = call(R3, 0 args, 2 rets)
  0031  GETTABLE  R3 = R2[K15(1)]
  0032  SETTABLE  R0[K8('m_config')] = R3
  0033  GETTABUP  R3 = _ENV[K9('EventDispatcher')]
  0034  GETTABLE  R3 = R3[K10('DispatchEvent')]
  0035  GETTABUP  R4 = _ENV[K11('EEventType')]
  0036  GETTABLE  R4 = R4[K12('UpcomingEventStateChanged')]
  0037  CALL      R3 = call(R3, 0 args, 1 rets)
  0038  RETURN    return R0..R-1
  ; ---------- proto0 [m_config] ----------
    ; fn ?  line 35-35 np=2 va=0 ms=4 code=8 consts=1 upvals=0 protos=0
    ;   K[0]='id'
    ;   locals: a(0-8), b(0-8)
    0000  GETTABLE  R2 = R0[K0('id')]
    0001  GETTABLE  R3 = R1[K0('id')]
    0002  LT        if R1 lt R3   -> -130041
    0003  JMP       (jump)   -> 5
    0004  LOADBOOL  R2 = false
    0005  LOADBOOL  R2 = true
    0006  RETURN    return R2..R1
    0007  RETURN    return R0..R-1
; ---------- proto4 [UpdatePerSecond] ----------
  ; fn ?  line 40-45 np=1 va=0 ms=4 code=19 consts=11 upvals=1 protos=0
  ;   K[0]='HasUpcomingEvent'
  ;   K[1]='GM'
  ;   K[2]='GameModel'
  ;   K[3]='GetServerTime'
  ;   K[4]='GetLastTime'
  ;   K[5]='m_config'
  ;   K[6]=nil
  ;   K[7]='EventDispatcher'
  ;   K[8]='DispatchEvent'
  ;   K[9]='EEventType'
  ;   K[10]='UpcomingEventStateChanged'
  ;   upvals: _ENV
  ;   locals: self(0-19)
  0000  SELF      R2 = R0[K0('HasUpcomingEvent')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  TEST      if not R1 then   -> -131068
  0003  JMP       (jump)   -> 18
  0004  GETTABUP  R1 = _ENV[K1('GM')]
  0005  GETTABLE  R1 = R1[K2('GameModel')]
  0006  SELF      R2 = R1[K3('GetServerTime')] (self)
  0007  CALL      R1 = call(R1, 1 args, 1 rets)
  0008  SELF      R3 = R0[K4('GetLastTime')] (self)
  0009  CALL      R2 = call(R2, 1 args, 1 rets)
  0010  LE        if R0 le R1   -> -130035
  0011  JMP       (jump)   -> 18
  0012  SETTABLE  R0[K5('m_config')] = K6(nil)
  0013  GETTABUP  R1 = _ENV[K7('EventDispatcher')]
  0014  GETTABLE  R1 = R1[K8('DispatchEvent')]
  0015  GETTABUP  R2 = _ENV[K9('EEventType')]
  0016  GETTABLE  R2 = R2[K10('UpcomingEventStateChanged')]
  0017  CALL      R1 = call(R1, 0 args, 1 rets)
  0018  RETURN    return R0..R-1
; ---------- proto5 [HasUpcomingEvent] ----------
  ; fn ?  line 47-49 np=1 va=0 ms=2 code=7 consts=2 upvals=0 protos=0
  ;   K[0]='m_config'
  ;   K[1]=nil
  ;   locals: self(0-7)
  0000  GETTABLE  R1 = R0[K0('m_config')]
  0001  EQ        if R0 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 4
  0003  LOADBOOL  R1 = false
  0004  LOADBOOL  R1 = true
  0005  RETURN    return R1..R0
  0006  RETURN    return R0..R-1
; ---------- proto6 [GetId] ----------
  ; fn ?  line 51-53 np=1 va=0 ms=2 code=7 consts=2 upvals=0 protos=0
  ;   K[0]='m_config'
  ;   K[1]='id'
  ;   locals: self(0-7)
  0000  GETTABLE  R1 = R0[K0('m_config')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 5
  0003  GETTABLE  R1 = R0[K0('m_config')]
  0004  GETTABLE  R1 = R1[K1('id')]
  0005  RETURN    return R1..R0
  0006  RETURN    return R0..R-1
; ---------- proto7 [GetIconLink] ----------
  ; fn ?  line 55-57 np=1 va=0 ms=2 code=7 consts=2 upvals=0 protos=0
  ;   K[0]='m_config'
  ;   K[1]='iconLink'
  ;   locals: self(0-7)
  0000  GETTABLE  R1 = R0[K0('m_config')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 5
  0003  GETTABLE  R1 = R0[K0('m_config')]
  0004  GETTABLE  R1 = R1[K1('iconLink')]
  0005  RETURN    return R1..R0
  0006  RETURN    return R0..R-1
; ---------- proto8 [GetPictureLink] ----------
  ; fn ?  line 59-61 np=1 va=0 ms=2 code=7 consts=2 upvals=0 protos=0
  ;   K[0]='m_config'
  ;   K[1]='picLink'
  ;   locals: self(0-7)
  0000  GETTABLE  R1 = R0[K0('m_config')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 5
  0003  GETTABLE  R1 = R0[K0('m_config')]
  0004  GETTABLE  R1 = R1[K1('picLink')]
  0005  RETURN    return R1..R0
  0006  RETURN    return R0..R-1
; ---------- proto9 [GetLastTime] ----------
  ; fn ?  line 63-65 np=1 va=0 ms=2 code=7 consts=2 upvals=0 protos=0
  ;   K[0]='m_config'
  ;   K[1]='rTime'
  ;   locals: self(0-7)
  0000  GETTABLE  R1 = R0[K0('m_config')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 5
  0003  GETTABLE  R1 = R0[K0('m_config')]
  0004  GETTABLE  R1 = R1[K1('rTime')]
  0005  RETURN    return R1..R0
  0006  RETURN    return R0..R-1
; ---------- proto10 [GetTitleText] ----------
  ; fn ?  line 67-69 np=1 va=0 ms=4 code=11 consts=5 upvals=1 protos=0
  ;   K[0]='m_config'
  ;   K[1]='GM'
  ;   K[2]='GameTextModel'
  ;   K[3]='GetText'
  ;   K[4]='titleKey'
  ;   upvals: _ENV
  ;   locals: self(0-11)
  0000  GETTABLE  R1 = R0[K0('m_config')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 9
  0003  GETTABUP  R1 = _ENV[K1('GM')]
  0004  GETTABLE  R1 = R1[K2('GameTextModel')]
  0005  SELF      R2 = R1[K3('GetText')] (self)
  0006  GETTABLE  R3 = R0[K0('m_config')]
  0007  GETTABLE  R3 = R3[K4('titleKey')]
  0008  CALL      R1 = call(R1, 1 args, 2 rets)
  0009  RETURN    return R1..R0
  0010  RETURN    return R0..R-1
; ---------- proto11 [GetDescText] ----------
  ; fn ?  line 71-73 np=1 va=0 ms=4 code=11 consts=5 upvals=1 protos=0
  ;   K[0]='m_config'
  ;   K[1]='GM'
  ;   K[2]='GameTextModel'
  ;   K[3]='GetText'
  ;   K[4]='descKey'
  ;   upvals: _ENV
  ;   locals: self(0-11)
  0000  GETTABLE  R1 = R0[K0('m_config')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 9
  0003  GETTABUP  R1 = _ENV[K1('GM')]
  0004  GETTABLE  R1 = R1[K2('GameTextModel')]
  0005  SELF      R2 = R1[K3('GetText')] (self)
  0006  GETTABLE  R3 = R0[K0('m_config')]
  0007  GETTABLE  R3 = R3[K4('descKey')]
  0008  CALL      R1 = call(R1, 1 args, 2 rets)
  0009  RETURN    return R1..R0
  0010  RETURN    return R0..R-1
; ---------- proto12 [GetButtonText] ----------
  ; fn ?  line 75-77 np=1 va=0 ms=4 code=11 consts=5 upvals=1 protos=0
  ;   K[0]='m_config'
  ;   K[1]='GM'
  ;   K[2]='GameTextModel'
  ;   K[3]='GetText'
  ;   K[4]='buttonKey'
  ;   upvals: _ENV
  ;   locals: self(0-11)
  0000  GETTABLE  R1 = R0[K0('m_config')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 9
  0003  GETTABUP  R1 = _ENV[K1('GM')]
  0004  GETTABLE  R1 = R1[K2('GameTextModel')]
  0005  SELF      R2 = R1[K3('GetText')] (self)
  0006  GETTABLE  R3 = R0[K0('m_config')]
  0007  GETTABLE  R3 = R3[K4('buttonKey')]
  0008  CALL      R1 = call(R1, 1 args, 2 rets)
  0009  RETURN    return R1..R0
  0010  RETURN    return R0..R-1
