# WeeklyRank_Model_WeeklyRankModel_1224.luac
; fn @WeeklyRankModel.lua  line 0-0 np=0 va=1 ms=3 code=67 consts=27 upvals=1 protos=18
;   K[0]='WeeklyRankModel'
;   K[1]='setmetatable'
;   K[2]='RequestFullRankDataApiFuncName'
;   K[3]=''
;   K[4]='QueryFinalRankDataApiFuncName'
;   K[5]='HeartBeatReqTokenKey'
;   K[6]='HeartBeatRespRankKey'
;   K[7]='RankActivityModel'
;   K[8]='__index'
;   K[9]='_GetDefinition'
;   K[10]='_EnlistGetFullRankRequestCallback'
;   K[11]='_SettlementGetFullRankRequestCallback'
;   K[12]='Init'
;   K[13]='GetActiveModel'
;   K[14]='_LoadOtherServerConfig'
;   K[15]='_DropData'
;   K[16]='_OnStateChanged'
;   K[17]='AddEventListeners'
;   K[18]='RemoveEventListeners'
;   K[19]='GetMapEntryShowConfig'
;   K[20]='CheckPassActivity'
;   K[21]='TryAddScore'
;   K[22]='TakeFinalRewards'
;   K[23]='TryShowMainWindow'
;   K[24]='OpenMainWindowView'
;   K[25]='UpdatePerSecond'
;   K[26]='CanStartActivityInView'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  SETTABLE  R1[K2('RequestFullRankDataApiFuncName')] = K3('')
0003  SETTABLE  R1[K4('QueryFinalRankDataApiFuncName')] = K3('')
0004  SETTABLE  R1[K5('HeartBeatReqTokenKey')] = K3('')
0005  SETTABLE  R1[K6('HeartBeatRespRankKey')] = K3('')
0006  GETTABUP  R2 = _ENV[K7('RankActivityModel')]
0007  CALL      R0 = call(R0, 1 args, 2 rets)
0008  SETTABUP  _ENV[K0('WeeklyRankModel')] = R0
0009  GETTABUP  R0 = _ENV[K0('WeeklyRankModel')]
0010  GETTABUP  R1 = _ENV[K0('WeeklyRankModel')]
0011  SETTABLE  R0[K8('__index')] = R1
0012  GETTABUP  R0 = _ENV[K0('WeeklyRankModel')]
0013  CLOSURE   R1 = closure proto0
0014  SETTABLE  R0[K9('_GetDefinition')] = R1
0015  GETTABUP  R0 = _ENV[K0('WeeklyRankModel')]
0016  CLOSURE   R1 = closure proto1
0017  SETTABLE  R0[K10('_EnlistGetFullRankRequestCallback')] = R1
0018  GETTABUP  R0 = _ENV[K0('WeeklyRankModel')]
0019  CLOSURE   R1 = closure proto2
0020  SETTABLE  R0[K11('_SettlementGetFullRankRequestCallback')] = R1
0021  GETTABUP  R0 = _ENV[K0('WeeklyRankModel')]
0022  CLOSURE   R1 = closure proto3
0023  SETTABLE  R0[K12('Init')] = R1
0024  GETTABUP  R0 = _ENV[K0('WeeklyRankModel')]
0025  CLOSURE   R1 = closure proto4
0026  SETTABLE  R0[K13('GetActiveModel')] = R1
0027  GETTABUP  R0 = _ENV[K0('WeeklyRankModel')]
0028  CLOSURE   R1 = closure proto5
0029  SETTABLE  R0[K14('_LoadOtherServerConfig')] = R1
0030  GETTABUP  R0 = _ENV[K0('WeeklyRankModel')]
0031  CLOSURE   R1 = closure proto6
0032  SETTABLE  R0[K15('_DropData')] = R1
0033  GETTABUP  R0 = _ENV[K0('WeeklyRankModel')]
0034  CLOSURE   R1 = closure proto7
0035  SETTABLE  R0[K16('_OnStateChanged')] = R1
0036  GETTABUP  R0 = _ENV[K0('WeeklyRankModel')]
0037  CLOSURE   R1 = closure proto8
0038  SETTABLE  R0[K17('AddEventListeners')] = R1
0039  GETTABUP  R0 = _ENV[K0('WeeklyRankModel')]
0040  CLOSURE   R1 = closure proto9
0041  SETTABLE  R0[K18('RemoveEventListeners')] = R1
0042  GETTABUP  R0 = _ENV[K0('WeeklyRankModel')]
0043  CLOSURE   R1 = closure proto10
0044  SETTABLE  R0[K19('GetMapEntryShowConfig')] = R1
0045  GETTABUP  R0 = _ENV[K0('WeeklyRankModel')]
0046  CLOSURE   R1 = closure proto11
0047  SETTABLE  R0[K20('CheckPassActivity')] = R1
0048  GETTABUP  R0 = _ENV[K0('WeeklyRankModel')]
0049  CLOSURE   R1 = closure proto12
0050  SETTABLE  R0[K21('TryAddScore')] = R1
0051  GETTABUP  R0 = _ENV[K0('WeeklyRankModel')]
0052  CLOSURE   R1 = closure proto13
0053  SETTABLE  R0[K22('TakeFinalRewards')] = R1
0054  GETTABUP  R0 = _ENV[K0('WeeklyRankModel')]
0055  CLOSURE   R1 = closure proto14
0056  SETTABLE  R0[K23('TryShowMainWindow')] = R1
0057  GETTABUP  R0 = _ENV[K0('WeeklyRankModel')]
0058  CLOSURE   R1 = closure proto15
0059  SETTABLE  R0[K24('OpenMainWindowView')] = R1
0060  GETTABUP  R0 = _ENV[K0('WeeklyRankModel')]
0061  CLOSURE   R1 = closure proto16
0062  SETTABLE  R0[K25('UpdatePerSecond')] = R1
0063  GETTABUP  R0 = _ENV[K0('WeeklyRankModel')]
0064  CLOSURE   R1 = closure proto17
0065  SETTABLE  R0[K26('CanStartActivityInView')] = R1
0066  RETURN    return R0..R-1
; ---------- proto0 [_GetDefinition] ----------
  ; fn ?  line 11-13 np=2 va=0 ms=3 code=4 consts=1 upvals=1 protos=0
  ;   K[0]='WeeklyRankDefinition'
  ;   upvals: _ENV
  ;   locals: self(0-4), activityType(0-4)
  0000  GETTABUP  R2 = _ENV[K0('WeeklyRankDefinition')]
  0001  GETTABLE  R2 = R2[R1]
  0002  RETURN    return R2..R1
  0003  RETURN    return R0..R-1
; ---------- proto1 [_EnlistGetFullRankRequestCallback] ----------
  ; fn ?  line 15-17 np=2 va=0 ms=2 code=1 consts=0 upvals=0 protos=0
  ;   locals: self(0-1), success(0-1)
  0000  RETURN    return R0..R-1
; ---------- proto2 [_SettlementGetFullRankRequestCallback] ----------
  ; fn ?  line 19-21 np=2 va=0 ms=2 code=1 consts=0 upvals=0 protos=0
  ;   locals: self(0-1), success(0-1)
  0000  RETURN    return R0..R-1
; ---------- proto3 [Init] ----------
  ; fn ?  line 23-30 np=3 va=0 ms=7 code=23 consts=12 upvals=1 protos=0
  ;   K[0]='m_activityDefinition'
  ;   K[1]='_GetDefinition'
  ;   K[2]='RequestFullRankDataApiFuncName'
  ;   K[3]='RSGetFuncName'
  ;   K[4]='QueryFinalRankDataApiFuncName'
  ;   K[5]='RSQueryFuncName'
  ;   K[6]='HeartBeatReqTokenKey'
  ;   K[7]='HeartBeatTokenKey'
  ;   K[8]='HeartBeatRespRankKey'
  ;   K[9]='HeartBeatRankKey'
  ;   K[10]='RankActivityModel'
  ;   K[11]='Init'
  ;   upvals: _ENV
  ;   locals: self(0-23), activityType(0-23), dbTable(0-23)
  0000  SELF      R4 = R0[K1('_GetDefinition')] (self)
  0001  MOVE      R5 = R0
  0002  CALL      R3 = call(R3, 1 args, 2 rets)
  0003  SETTABLE  R0[K0('m_activityDefinition')] = R3
  0004  GETTABLE  R3 = R0[K0('m_activityDefinition')]
  0005  GETTABLE  R3 = R3[K3('RSGetFuncName')]
  0006  SETTABLE  R0[K2('RequestFullRankDataApiFuncName')] = R3
  0007  GETTABLE  R3 = R0[K0('m_activityDefinition')]
  0008  GETTABLE  R3 = R3[K5('RSQueryFuncName')]
  0009  SETTABLE  R0[K4('QueryFinalRankDataApiFuncName')] = R3
  0010  GETTABLE  R3 = R0[K0('m_activityDefinition')]
  0011  GETTABLE  R3 = R3[K7('HeartBeatTokenKey')]
  0012  SETTABLE  R0[K6('HeartBeatReqTokenKey')] = R3
  0013  GETTABLE  R3 = R0[K0('m_activityDefinition')]
  0014  GETTABLE  R3 = R3[K9('HeartBeatRankKey')]
  0015  SETTABLE  R0[K8('HeartBeatRespRankKey')] = R3
  0016  GETTABUP  R3 = _ENV[K10('RankActivityModel')]
  0017  GETTABLE  R3 = R3[K11('Init')]
  0018  MOVE      R4 = R0
  0019  MOVE      R5 = R0
  0020  MOVE      R6 = R0
  0021  CALL      R3 = call(R3, 0 args, 3 rets)
  0022  RETURN    return R0..R-1
; ---------- proto4 [GetActiveModel] ----------
  ; fn ?  line 32-42 np=0 va=0 ms=9 code=25 consts=9 upvals=1 protos=0
  ;   K[0]='pairs'
  ;   K[1]='WeeklyRankDefinition'
  ;   K[2]='GM'
  ;   K[3]='ActivityManager'
  ;   K[4]='GetModel'
  ;   K[5]=nil
  ;   K[6]='GetState'
  ;   K[7]='ActivityState'
  ;   K[8]='Started'
  ;   upvals: _ENV
  ;   locals: model(1-25), (for generator)(4-22), (for state)(4-22), (for control)(4-22), actType(5-20), _(5-20)
  0000  LOADNIL   R0..R0 = nil
  0001  GETTABUP  R1 = _ENV[K0('pairs')]
  0002  GETTABUP  R2 = _ENV[K1('WeeklyRankDefinition')]
  0003  CALL      R1 = call(R1, 3 args, 1 rets)
  0004  JMP       (jump)   -> 20
  0005  GETTABUP  R6 = _ENV[K2('GM')]
  0006  GETTABLE  R6 = R6[K3('ActivityManager')]
  0007  SELF      R7 = R6[K4('GetModel')] (self)
  0008  MOVE      R8 = R0
  0009  CALL      R6 = call(R6, 1 args, 2 rets)
  0010  MOVE      R0 = R0
  0011  EQ        if R1 eq K5(nil)   -> -130798
  0012  JMP       (jump)   -> 20
  0013  SELF      R7 = R0[K6('GetState')] (self)
  0014  CALL      R6 = call(R6, 1 args, 1 rets)
  0015  GETTABUP  R7 = _ENV[K7('ActivityState')]
  0016  GETTABLE  R7 = R7[K8('Started')]
  0017  EQ        if R0 eq R7   -> -127974
  0018  JMP       (jump)   -> 20
  0019  RETURN    return R0..R-1
  0020  TFORCALL  tforcall R1
  0021  TFORLOOP  tforloop R3(sBx=-17)   -> 5
  0022  LOADNIL   R1..R1 = nil
  0023  RETURN    return R1..R0
  0024  RETURN    return R0..R-1
; ---------- proto5 [_LoadOtherServerConfig] ----------
  ; fn ?  line 45-52 np=2 va=0 ms=9 code=24 consts=12 upvals=1 protos=0
  ;   K[0]='RankActivityModel'
  ;   K[1]='_LoadOtherServerConfig'
  ;   K[2]='pairs'
  ;   K[3]='m_config'
  ;   K[4]='RewardConfigs'
  ;   K[5]='MinRank'
  ;   K[6]=3
  ;   K[7]='Rewards'
  ;   K[8]=1
  ;   K[9]='Log'
  ;   K[10]='Error'
  ;   K[11]='[WeeklyRank] 4名及以后奖励项不得配置超过1个'
  ;   upvals: _ENV
  ;   locals: self(0-24), config(0-24), (for generator)(9-23), (for state)(9-23), (for control)(9-23), _(10-21), rewardConfig(10-21)
  0000  GETTABUP  R2 = _ENV[K0('RankActivityModel')]
  0001  GETTABLE  R2 = R2[K1('_LoadOtherServerConfig')]
  0002  MOVE      R3 = R0
  0003  MOVE      R4 = R0
  0004  CALL      R2 = call(R2, 0 args, 2 rets)
  0005  GETTABUP  R2 = _ENV[K2('pairs')]
  0006  GETTABLE  R3 = R0[K3('m_config')]
  0007  GETTABLE  R3 = R3[K4('RewardConfigs')]
  0008  CALL      R2 = call(R2, 3 args, 1 rets)
  0009  JMP       (jump)   -> 21
  0010  GETTABLE  R7 = R6[K5('MinRank')]
  0011  LT        if R0 lt R7   -> 3092
  0012  JMP       (jump)   -> 21
  0013  GETTABLE  R7 = R6[K7('Rewards')]
  0014  LEN       R7 = len R0
  0015  LT        if R0 lt R7   -> 4120
  0016  JMP       (jump)   -> 21
  0017  GETTABUP  R7 = _ENV[K9('Log')]
  0018  GETTABLE  R7 = R7[K10('Error')]
  0019  LOADK     R8 = K11 '[WeeklyRank] 4名及以后奖励项不得配置超过1个'
  0020  CALL      R7 = call(R7, 0 args, 1 rets)
  0021  TFORCALL  tforcall R2
  0022  TFORLOOP  tforloop R4(sBx=-13)   -> 10
  0023  RETURN    return R0..R-1
; ---------- proto6 [_DropData] ----------
  ; fn ?  line 54-57 np=1 va=0 ms=3 code=6 consts=4 upvals=1 protos=0
  ;   K[0]='RankActivityModel'
  ;   K[1]='_DropData'
  ;   K[2]='m_bStartInView'
  ;   K[3]=nil
  ;   upvals: _ENV
  ;   locals: self(0-6)
  0000  GETTABUP  R1 = _ENV[K0('RankActivityModel')]
  0001  GETTABLE  R1 = R1[K1('_DropData')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  SETTABLE  R0[K2('m_bStartInView')] = K3(nil)
  0005  RETURN    return R0..R-1
; ---------- proto7 [_OnStateChanged] ----------
  ; fn ?  line 59-67 np=1 va=0 ms=4 code=17 consts=7 upvals=1 protos=0
  ;   K[0]='RankActivityModel'
  ;   K[1]='_OnStateChanged'
  ;   K[2]='GetState'
  ;   K[3]='ActivityState'
  ;   K[4]='Started'
  ;   K[5]='AddEventListeners'
  ;   K[6]='RemoveEventListeners'
  ;   upvals: _ENV
  ;   locals: self(0-17)
  0000  GETTABUP  R1 = _ENV[K0('RankActivityModel')]
  0001  GETTABLE  R1 = R1[K1('_OnStateChanged')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  SELF      R2 = R0[K2('GetState')] (self)
  0005  LOADBOOL  R3 = false
  0006  CALL      R1 = call(R1, 1 args, 2 rets)
  0007  GETTABUP  R2 = _ENV[K3('ActivityState')]
  0008  GETTABLE  R2 = R2[K4('Started')]
  0009  EQ        if R0 eq R2   -> -130547
  0010  JMP       (jump)   -> 14
  0011  SELF      R2 = R0[K5('AddEventListeners')] (self)
  0012  CALL      R1 = call(R1, 0 args, 1 rets)
  0013  JMP       (jump)   -> 16
  0014  SELF      R2 = R0[K6('RemoveEventListeners')] (self)
  0015  CALL      R1 = call(R1, 0 args, 1 rets)
  0016  RETURN    return R0..R-1
; ---------- proto8 [AddEventListeners] ----------
  ; fn ?  line 69-76 np=1 va=0 ms=5 code=13 consts=7 upvals=1 protos=0
  ;   K[0]='m_bAddListener'
  ;   K[1]=true
  ;   K[2]='EventDispatcher'
  ;   K[3]='AddListener'
  ;   K[4]='EEventType'
  ;   K[5]='ObtainBPTokenForWeeklyRank'
  ;   K[6]='TryAddScore'
  ;   upvals: _ENV
  ;   locals: self(0-13)
  0000  GETTABLE  R1 = R0[K0('m_bAddListener')]
  0001  EQ        if R0 eq K1(true)   -> -130300
  0002  JMP       (jump)   -> 4
  0003  RETURN    return R0..R-1
  0004  SETTABLE  R0[K0('m_bAddListener')] = K1(true)
  0005  GETTABUP  R1 = _ENV[K2('EventDispatcher')]
  0006  GETTABLE  R1 = R1[K3('AddListener')]
  0007  GETTABUP  R2 = _ENV[K4('EEventType')]
  0008  GETTABLE  R2 = R2[K5('ObtainBPTokenForWeeklyRank')]
  0009  MOVE      R3 = R0
  0010  GETTABLE  R4 = R0[K6('TryAddScore')]
  0011  CALL      R1 = call(R1, 0 args, 3 rets)
  0012  RETURN    return R0..R-1
; ---------- proto9 [RemoveEventListeners] ----------
  ; fn ?  line 78-82 np=1 va=0 ms=4 code=8 consts=6 upvals=1 protos=0
  ;   K[0]='m_bAddListener'
  ;   K[1]=false
  ;   K[2]='EventDispatcher'
  ;   K[3]='RemoveListener'
  ;   K[4]='EEventType'
  ;   K[5]='ObtainBPTokenForWeeklyRank'
  ;   upvals: _ENV
  ;   locals: self(0-8)
  0000  SETTABLE  R0[K0('m_bAddListener')] = K1(false)
  0001  GETTABUP  R1 = _ENV[K2('EventDispatcher')]
  0002  GETTABLE  R1 = R1[K3('RemoveListener')]
  0003  GETTABUP  R2 = _ENV[K4('EEventType')]
  0004  GETTABLE  R2 = R2[K5('ObtainBPTokenForWeeklyRank')]
  0005  MOVE      R3 = R0
  0006  CALL      R1 = call(R1, 0 args, 2 rets)
  0007  RETURN    return R0..R-1
; ---------- proto10 [GetMapEntryShowConfig] ----------
  ; fn ?  line 85-96 np=1 va=0 ms=3 code=20 consts=13 upvals=1 protos=1
  ;   K[0]='statusChangeEvent'
  ;   K[1]='m_activityDefinition'
  ;   K[2]='StateChangedEvent'
  ;   K[3]='extraListenEvent'
  ;   K[4]='FinishSettlementEvent'
  ;   K[5]='eEntryRootKey'
  ;   K[6]='EEntryRootKey'
  ;   K[7]='WeeklyRank'
  ;   K[8]='entryPrefabName'
  ;   K[9]='EntryPrefabName'
  ;   K[10]='hudKey'
  ;   K[11]='EntryButtonKey'
  ;   K[12]='checkFun'
  ;   upvals: _ENV
  ;   locals: self(0-20)
  0000  NEWTABLE  R1 = {} (0 items)
  0001  GETTABLE  R2 = R0[K1('m_activityDefinition')]
  0002  GETTABLE  R2 = R2[K2('StateChangedEvent')]
  0003  SETTABLE  R1[K0('statusChangeEvent')] = R2
  0004  GETTABLE  R2 = R0[K1('m_activityDefinition')]
  0005  GETTABLE  R2 = R2[K4('FinishSettlementEvent')]
  0006  SETTABLE  R1[K3('extraListenEvent')] = R2
  0007  GETTABUP  R2 = _ENV[K6('EEntryRootKey')]
  0008  GETTABLE  R2 = R2[K7('WeeklyRank')]
  0009  SETTABLE  R1[K5('eEntryRootKey')] = R2
  0010  GETTABLE  R2 = R0[K1('m_activityDefinition')]
  0011  GETTABLE  R2 = R2[K9('EntryPrefabName')]
  0012  SETTABLE  R1[K8('entryPrefabName')] = R2
  0013  GETTABLE  R2 = R0[K1('m_activityDefinition')]
  0014  GETTABLE  R2 = R2[K11('EntryButtonKey')]
  0015  SETTABLE  R1[K10('hudKey')] = R2
  0016  CLOSURE   R2 = closure proto0
  0017  SETTABLE  R1[K12('checkFun')] = R2
  0018  RETURN    return R1..R0
  0019  RETURN    return R0..R-1
  ; ---------- proto0 [checkFun] ----------
    ; fn ?  line 92-94 np=0 va=0 ms=2 code=10 consts=2 upvals=1 protos=0
    ;   K[0]='CheckOpen'
    ;   K[1]='CanStartActivityInView'
    ;   upvals: self
    0000  GETUPVAL  R0 = self
    0001  SELF      R1 = R0[K0('CheckOpen')] (self)
    0002  CALL      R0 = call(R0, 1 args, 1 rets)
    0003  TEST      if not R0 then   -> -131067
    0004  JMP       (jump)   -> 8
    0005  GETUPVAL  R0 = self
    0006  SELF      R1 = R0[K1('CanStartActivityInView')] (self)
    0007  CALL      R0 = call(R0, 1 args, 1 rets)
    0008  RETURN    return R0..R-1
    0009  RETURN    return R0..R-1
; ---------- proto11 [CheckPassActivity] ----------
  ; fn ?  line 98-104 np=1 va=0 ms=6 code=16 consts=7 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='ActivityManager'
  ;   K[2]='GetOneActivityModel'
  ;   K[3]='ActivityModelType'
  ;   K[4]='Pass'
  ;   K[5]='ActivityState'
  ;   K[6]='Started'
  ;   upvals: _ENV
  ;   locals: self(0-16), passModel(9-16)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('ActivityManager')]
  0002  SELF      R2 = R1[K2('GetOneActivityModel')] (self)
  0003  GETTABUP  R3 = _ENV[K3('ActivityModelType')]
  0004  GETTABLE  R3 = R3[K4('Pass')]
  0005  GETTABUP  R4 = _ENV[K5('ActivityState')]
  0006  GETTABLE  R4 = R4[K6('Started')]
  0007  LOADBOOL  R5 = false
  0008  CALL      R1 = call(R1, 1 args, 4 rets)
  0009  TEST      if not R1 then   -> -131060
  0010  JMP       (jump)   -> 13
  0011  LOADBOOL  R2 = false
  0012  RETURN    return R2..R1
  0013  LOADBOOL  R2 = true
  0014  RETURN    return R2..R1
  0015  RETURN    return R0..R-1
; ---------- proto12 [TryAddScore] ----------
  ; fn ?  line 106-110 np=2 va=0 ms=5 code=14 consts=5 upvals=1 protos=0
  ;   K[0]='GetState'
  ;   K[1]='ActivityState'
  ;   K[2]='Started'
  ;   K[3]='IsInGroup'
  ;   K[4]='_AddToken'
  ;   upvals: _ENV
  ;   locals: self(0-14), count(0-14)
  0000  SELF      R3 = R0[K0('GetState')] (self)
  0001  CALL      R2 = call(R2, 1 args, 1 rets)
  0002  GETTABUP  R3 = _ENV[K1('ActivityState')]
  0003  GETTABLE  R3 = R3[K2('Started')]
  0004  EQ        if R0 eq R3   -> -130039
  0005  JMP       (jump)   -> 13
  0006  SELF      R3 = R0[K3('IsInGroup')] (self)
  0007  CALL      R2 = call(R2, 1 args, 1 rets)
  0008  TEST      if not R2 then   -> -131062
  0009  JMP       (jump)   -> 13
  0010  SELF      R3 = R0[K4('_AddToken')] (self)
  0011  MOVE      R4 = R0
  0012  CALL      R2 = call(R2, 0 args, 2 rets)
  0013  RETURN    return R0..R-1
; ---------- proto13 [TakeFinalRewards] ----------
  ; fn ?  line 113-121 np=4 va=0 ms=11 code=60 consts=20 upvals=1 protos=0
  ;   K[0]='RankActivityModel'
  ;   K[1]='TakeFinalRewards'
  ;   K[2]='table'
  ;   K[3]='insert'
  ;   K[4]='totalScore: '
  ;   K[5]='tostring'
  ;   K[6]='GetUserScore'
  ;   K[7]='groupId: '
  ;   K[8]='_GetGroupId'
  ;   K[9]='groupType: '
  ;   K[10]='_GetCacheGroupType'
  ;   K[11]='finalRank: '
  ;   K[12]='GetUserRank'
  ;   K[13]='GM'
  ;   K[14]='BIManager'
  ;   K[15]='LogAction'
  ;   K[16]='EBIType'
  ;   K[17]='WeeklyRankEnd'
  ;   K[18]='concat'
  ;   K[19]=';'
  ;   upvals: _ENV
  ;   locals: self(0-60), rewards(0-60), scene(0-60), ext(0-60), biInfo(8-60)
  0000  GETTABUP  R4 = _ENV[K0('RankActivityModel')]
  0001  GETTABLE  R4 = R4[K1('TakeFinalRewards')]
  0002  MOVE      R5 = R0
  0003  MOVE      R6 = R0
  0004  MOVE      R7 = R0
  0005  MOVE      R8 = R0
  0006  CALL      R4 = call(R4, 0 args, 4 rets)
  0007  NEWTABLE  R4 = {} (0 items)
  0008  GETTABUP  R5 = _ENV[K2('table')]
  0009  GETTABLE  R5 = R5[K3('insert')]
  0010  MOVE      R6 = R0
  0011  LOADK     R7 = K4 'totalScore: '
  0012  GETTABUP  R8 = _ENV[K5('tostring')]
  0013  SELF      R10 = R0[K6('GetUserScore')] (self)
  0014  CALL      R9 = call(R9, -1 args, 1 rets)
  0015  CALL      R8 = call(R8, 1 args, -1 rets)
  0016  CONCAT    R7 = concat(R7..R7)
  0017  CALL      R5 = call(R5, 0 args, 2 rets)
  0018  GETTABUP  R5 = _ENV[K2('table')]
  0019  GETTABLE  R5 = R5[K3('insert')]
  0020  MOVE      R6 = R0
  0021  LOADK     R7 = K7 'groupId: '
  0022  GETTABUP  R8 = _ENV[K5('tostring')]
  0023  SELF      R10 = R0[K8('_GetGroupId')] (self)
  0024  CALL      R9 = call(R9, -1 args, 1 rets)
  0025  CALL      R8 = call(R8, 1 args, -1 rets)
  0026  CONCAT    R7 = concat(R7..R7)
  0027  CALL      R5 = call(R5, 0 args, 2 rets)
  0028  GETTABUP  R5 = _ENV[K2('table')]
  0029  GETTABLE  R5 = R5[K3('insert')]
  0030  MOVE      R6 = R0
  0031  LOADK     R7 = K9 'groupType: '
  0032  GETTABUP  R8 = _ENV[K5('tostring')]
  0033  SELF      R10 = R0[K10('_GetCacheGroupType')] (self)
  0034  CALL      R9 = call(R9, -1 args, 1 rets)
  0035  CALL      R8 = call(R8, 1 args, -1 rets)
  0036  CONCAT    R7 = concat(R7..R7)
  0037  CALL      R5 = call(R5, 0 args, 2 rets)
  0038  GETTABUP  R5 = _ENV[K2('table')]
  0039  GETTABLE  R5 = R5[K3('insert')]
  0040  MOVE      R6 = R0
  0041  LOADK     R7 = K11 'finalRank: '
  0042  GETTABUP  R8 = _ENV[K5('tostring')]
  0043  SELF      R10 = R0[K12('GetUserRank')] (self)
  0044  CALL      R9 = call(R9, -1 args, 1 rets)
  0045  CALL      R8 = call(R8, 1 args, -1 rets)
  0046  CONCAT    R7 = concat(R7..R7)
  0047  CALL      R5 = call(R5, 0 args, 2 rets)
  0048  GETTABUP  R5 = _ENV[K13('GM')]
  0049  GETTABLE  R5 = R5[K14('BIManager')]
  0050  SELF      R6 = R5[K15('LogAction')] (self)
  0051  GETTABUP  R7 = _ENV[K16('EBIType')]
  0052  GETTABLE  R7 = R7[K17('WeeklyRankEnd')]
  0053  GETTABUP  R8 = _ENV[K2('table')]
  0054  GETTABLE  R8 = R8[K18('concat')]
  0055  MOVE      R9 = R0
  0056  LOADK     R10 = K19 ';'
  0057  CALL      R8 = call(R8, -1 args, 2 rets)
  0058  CALL      R5 = call(R5, 0 args, -1 rets)
  0059  RETURN    return R0..R-1
; ---------- proto14 [TryShowMainWindow] ----------
  ; fn ?  line 124-136 np=1 va=0 ms=5 code=32 consts=9 upvals=1 protos=0
  ;   K[0]='GetState'
  ;   K[1]='ActivityState'
  ;   K[2]='Ended'
  ;   K[3]='IsInGroup'
  ;   K[4]='GetSettlementState'
  ;   K[5]='RankSettlementState'
  ;   K[6]='Finished'
  ;   K[7]='OpenMainWindowView'
  ;   K[8]='Started'
  ;   upvals: _ENV
  ;   locals: self(0-32), state(2-32)
  0000  SELF      R2 = R0[K0('GetState')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  GETTABUP  R2 = _ENV[K1('ActivityState')]
  0003  GETTABLE  R2 = R2[K2('Ended')]
  0004  EQ        if R0 eq R2   -> -130552
  0005  JMP       (jump)   -> 24
  0006  SELF      R3 = R0[K3('IsInGroup')] (self)
  0007  CALL      R2 = call(R2, 1 args, 1 rets)
  0008  TEST      if not R2 then   -> -131062
  0009  JMP       (jump)   -> 24
  0010  SELF      R3 = R0[K4('GetSettlementState')] (self)
  0011  CALL      R2 = call(R2, 1 args, 1 rets)
  0012  GETTABUP  R3 = _ENV[K5('RankSettlementState')]
  0013  GETTABLE  R3 = R3[K6('Finished')]
  0014  EQ        if R0 eq R3   -> -130029
  0015  JMP       (jump)   -> 20
  0016  SELF      R3 = R0[K7('OpenMainWindowView')] (self)
  0017  LOADBOOL  R4 = false
  0018  CALL      R2 = call(R2, 0 args, 2 rets)
  0019  JMP       (jump)   -> 31
  0020  SELF      R3 = R0[K7('OpenMainWindowView')] (self)
  0021  LOADBOOL  R4 = true
  0022  CALL      R2 = call(R2, 0 args, 2 rets)
  0023  JMP       (jump)   -> 31
  0024  GETTABUP  R2 = _ENV[K1('ActivityState')]
  0025  GETTABLE  R2 = R2[K8('Started')]
  0026  EQ        if R0 eq R2   -> -130530
  0027  JMP       (jump)   -> 31
  0028  SELF      R3 = R0[K7('OpenMainWindowView')] (self)
  0029  LOADBOOL  R4 = false
  0030  CALL      R2 = call(R2, 0 args, 2 rets)
  0031  RETURN    return R0..R-1
; ---------- proto15 [OpenMainWindowView] ----------
  ; fn ?  line 138-140 np=2 va=0 ms=8 code=11 consts=6 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='UIManager'
  ;   K[2]='OpenView'
  ;   K[3]='m_activityDefinition'
  ;   K[4]='MainWindowPrefabName'
  ;   K[5]='GetType'
  ;   upvals: _ENV
  ;   locals: self(0-11), bSettlement(0-11)
  0000  GETTABUP  R2 = _ENV[K0('GM')]
  0001  GETTABLE  R2 = R2[K1('UIManager')]
  0002  SELF      R3 = R2[K2('OpenView')] (self)
  0003  GETTABLE  R4 = R0[K3('m_activityDefinition')]
  0004  GETTABLE  R4 = R4[K4('MainWindowPrefabName')]
  0005  SELF      R6 = R0[K5('GetType')] (self)
  0006  CALL      R5 = call(R5, 1 args, 1 rets)
  0007  LOADBOOL  R6 = true
  0008  MOVE      R7 = R0
  0009  CALL      R2 = call(R2, 0 args, 5 rets)
  0010  RETURN    return R0..R-1
; ---------- proto16 [UpdatePerSecond] ----------
  ; fn ?  line 142-154 np=1 va=0 ms=4 code=36 consts=17 upvals=1 protos=0
  ;   K[0]='RankActivityModel'
  ;   K[1]='UpdatePerSecond'
  ;   K[2]='GM'
  ;   K[3]='SceneManager'
  ;   K[4]='GetGameMode'
  ;   K[5]='EGameMode'
  ;   K[6]='Loading'
  ;   K[7]='GetState'
  ;   K[8]='ActivityState'
  ;   K[9]='Released'
  ;   K[10]='CanStartActivityInView'
  ;   K[11]='m_bStartInView'
  ;   K[12]=nil
  ;   K[13]='EventDispatcher'
  ;   K[14]='DispatchEvent'
  ;   K[15]='m_activityDefinition'
  ;   K[16]='StateChangedEvent'
  ;   upvals: _ENV
  ;   locals: self(0-36), bStartInView(20-35)
  0000  GETTABUP  R1 = _ENV[K0('RankActivityModel')]
  0001  GETTABLE  R1 = R1[K1('UpdatePerSecond')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABUP  R1 = _ENV[K2('GM')]
  0005  GETTABLE  R1 = R1[K3('SceneManager')]
  0006  SELF      R2 = R1[K4('GetGameMode')] (self)
  0007  CALL      R1 = call(R1, 1 args, 1 rets)
  0008  GETTABUP  R2 = _ENV[K5('EGameMode')]
  0009  GETTABLE  R2 = R2[K6('Loading')]
  0010  EQ        if R1 eq R2   -> -130546
  0011  JMP       (jump)   -> 35
  0012  SELF      R2 = R0[K7('GetState')] (self)
  0013  CALL      R1 = call(R1, 1 args, 1 rets)
  0014  GETTABUP  R2 = _ENV[K8('ActivityState')]
  0015  GETTABLE  R2 = R2[K9('Released')]
  0016  EQ        if R1 eq R2   -> -130540
  0017  JMP       (jump)   -> 35
  0018  SELF      R2 = R0[K10('CanStartActivityInView')] (self)
  0019  CALL      R1 = call(R1, 1 args, 1 rets)
  0020  GETTABLE  R2 = R0[K11('m_bStartInView')]
  0021  TEST      if not R2 then   -> -131048
  0022  JMP       (jump)   -> 35
  0023  GETTABLE  R2 = R0[K11('m_bStartInView')]
  0024  EQ        if R1 eq R1   -> -130021
  0025  JMP       (jump)   -> 35
  0026  GETTABLE  R2 = R0[K11('m_bStartInView')]
  0027  EQ        if R1 eq K12(nil)   -> -129751
  0028  JMP       (jump)   -> 34
  0029  GETTABUP  R2 = _ENV[K13('EventDispatcher')]
  0030  GETTABLE  R2 = R2[K14('DispatchEvent')]
  0031  GETTABLE  R3 = R0[K15('m_activityDefinition')]
  0032  GETTABLE  R3 = R3[K16('StateChangedEvent')]
  0033  CALL      R2 = call(R2, 0 args, 1 rets)
  0034  SETTABLE  R0[K11('m_bStartInView')] = R1
  0035  RETURN    return R0..R-1
; ---------- proto17 [CanStartActivityInView] ----------
  ; fn ?  line 157-189 np=1 va=0 ms=12 code=69 consts=21 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='SceneManager'
  ;   K[2]='GetGameMode'
  ;   K[3]='EGameMode'
  ;   K[4]='Loading'
  ;   K[5]='GameConfig'
  ;   K[6]='IsTestMode'
  ;   K[7]='Log'
  ;   K[8]='Error'
  ;   K[9]='WeeklyRankModel:CanStartActivityInView 不支持在Loading场景下调用'
  ;   K[10]='GetStartTime'
  ;   K[11]='GetState'
  ;   K[12]='ActivityState'
  ;   K[13]='Released'
  ;   K[14]=nil
  ;   K[15]='pairs'
  ;   K[16]='WeeklyRankDefinition'
  ;   K[17]='GetType'
  ;   K[18]='ActivityManager'
  ;   K[19]='GetModel'
  ;   K[20]='CheckOpen'
  ;   upvals: _ENV
  ;   locals: self(0-69), sTime(21-69), model(32-69), sTime2(32-69), (for generator)(35-66), (for state)(35-66), (for control)(35-66), actType(36-64), _(36-64)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('SceneManager')]
  0002  SELF      R2 = R1[K2('GetGameMode')] (self)
  0003  CALL      R1 = call(R1, 1 args, 1 rets)
  0004  GETTABUP  R2 = _ENV[K3('EGameMode')]
  0005  GETTABLE  R2 = R2[K4('Loading')]
  0006  EQ        if R0 eq R2   -> -130550
  0007  JMP       (jump)   -> 19
  0008  GETTABUP  R1 = _ENV[K5('GameConfig')]
  0009  GETTABLE  R1 = R1[K6('IsTestMode')]
  0010  CALL      R1 = call(R1, 1 args, 0 rets)
  0011  TEST      if not R1 then   -> -131059
  0012  JMP       (jump)   -> 17
  0013  GETTABUP  R1 = _ENV[K7('Log')]
  0014  GETTABLE  R1 = R1[K8('Error')]
  0015  LOADK     R2 = K9 'WeeklyRankModel:CanStartActivityInView 不支持在Loading场景下调用'
  0016  CALL      R1 = call(R1, 0 args, 1 rets)
  0017  LOADBOOL  R1 = false
  0018  RETURN    return R1..R0
  0019  SELF      R2 = R0[K10('GetStartTime')] (self)
  0020  CALL      R1 = call(R1, 1 args, 1 rets)
  0021  SELF      R3 = R0[K11('GetState')] (self)
  0022  CALL      R2 = call(R2, 1 args, 1 rets)
  0023  GETTABUP  R3 = _ENV[K12('ActivityState')]
  0024  GETTABLE  R3 = R3[K13('Released')]
  0025  EQ        if R1 eq R3   -> -130018
  0026  JMP       (jump)   -> 29
  0027  EQ        if R0 eq K14(nil)   -> -130261
  0028  JMP       (jump)   -> 31
  0029  LOADBOOL  R2 = false
  0030  RETURN    return R2..R1
  0031  LOADNIL   R2..R2 = nil
  0032  GETTABUP  R4 = _ENV[K15('pairs')]
  0033  GETTABUP  R5 = _ENV[K16('WeeklyRankDefinition')]
  0034  CALL      R4 = call(R4, 3 args, 1 rets)
  0035  JMP       (jump)   -> 64
  0036  SELF      R10 = R0[K17('GetType')] (self)
  0037  CALL      R9 = call(R9, 1 args, 1 rets)
  0038  EQ        if R1 eq R9   -> -127439
  0039  JMP       (jump)   -> 64
  0040  GETTABUP  R9 = _ENV[K0('GM')]
  0041  GETTABLE  R9 = R9[K18('ActivityManager')]
  0042  SELF      R10 = R9[K19('GetModel')] (self)
  0043  MOVE      R11 = R0
  0044  CALL      R9 = call(R9, 1 args, 2 rets)
  0045  MOVE      R2 = R0
  0046  TESTSET   if R0 then R3   -> -130000
  0047  JMP       (jump)   -> 51
  0048  SELF      R10 = R2[K10('GetStartTime')] (self)
  0049  CALL      R9 = call(R9, 1 args, 1 rets)
  0050  MOVE      R3 = R0
  0051  EQ        if R1 eq K14(nil)   -> -129725
  0052  JMP       (jump)   -> 64
  0053  EQ        if R1 eq K14(nil)   -> -129211
  0054  JMP       (jump)   -> 64
  0055  LT        if R0 lt R1   -> -129478
  0056  JMP       (jump)   -> 64
  0057  SELF      R10 = R2[K20('CheckOpen')] (self)
  0058  LOADBOOL  R11 = false
  0059  CALL      R9 = call(R9, 1 args, 2 rets)
  0060  TEST      if not R9 then   -> -131010
  0061  JMP       (jump)   -> 64
  0062  LOADBOOL  R9 = false
  0063  RETURN    return R9..R8
  0064  TFORCALL  tforcall R4
  0065  TFORLOOP  tforloop R6(sBx=-30)   -> 36
  0066  LOADBOOL  R4 = true
  0067  RETURN    return R4..R3
  0068  RETURN    return R0..R-1
