# Rank_Model_RankActivityModel_1189.luac
; fn @RankActivityModel.lua  line 0-0 np=0 va=1 ms=5 code=184 consts=89 upvals=1 protos=51
;   K[0]='RankSettlementState'
;   K[1]='Invalid'
;   K[2]=1
;   K[3]='UploadingScore'
;   K[4]=2
;   K[5]='CalculatingResult'
;   K[6]=3
;   K[7]='Finished'
;   K[8]=4
;   K[9]='value'
;   K[10]='UploadWaitingTimeKey'
;   K[11]='UploadWaitingTime'
;   K[12]='DelayWaitingTimeKey'
;   K[13]='DelayWaitingTime'
;   K[14]='UserScoreKey'
;   K[15]='UserScore'
;   K[16]='UserScoreUploadedKey'
;   K[17]='UserScoreUploaded'
;   K[18]='GroupIdKey'
;   K[19]='GroupId'
;   K[20]='FinalRewardsTakenKey'
;   K[21]='FinalRewardsTaken'
;   K[22]='DisplayedUserRankKey'
;   K[23]='DisplayedUserRank'
;   K[24]='GroupTypeKey'
;   K[25]='GroupType'
;   K[26]='GroupRewardsKey'
;   K[27]='GroupRewards'
;   K[28]='LastScore'
;   K[29]='RankActivityModel'
;   K[30]='setmetatable'
;   K[31]='RequestFullRankDataApiFuncName'
;   K[32]=''
;   K[33]='QueryFinalRankDataApiFuncName'
;   K[34]='HeartBeatReqTokenKey'
;   K[35]='HeartBeatRespRankKey'
;   K[36]='BaseActivityModel'
;   K[37]='__index'
;   K[38]='_GetDefinition'
;   K[39]='_EnlistGetFullRankRequestCallback'
;   K[40]='_SettlementGetFullRankRequestCallback'
;   K[41]='Init'
;   K[42]='GetActivityDefinition'
;   K[43]='Destroy'
;   K[44]='UpdatePerSecond'
;   K[45]='_CalculateState'
;   K[46]='LoadServerConfig'
;   K[47]='_LoadOtherServerConfig'
;   K[48]='UpdateConfigByCache'
;   K[49]='_DropData'
;   K[50]='_OnStateChanged'
;   K[51]='GetResourceLabels'
;   K[52]='HasNetwork'
;   K[53]='CanHeartBeat'
;   K[54]='ToHeartBeat'
;   K[55]='FromHeartBeat'
;   K[56]='IsSendingRankRequest'
;   K[57]='_UpdateScore'
;   K[58]='_AddToken'
;   K[59]='_SetToken'
;   K[60]='_UpdateSettlementState'
;   K[61]='_OnSettlementStateChanged'
;   K[62]='_CalcualateSettlementState'
;   K[63]='GetSettlementState'
;   K[64]='GetSettlementFinishTime'
;   K[65]='_GetUploadWaitingTime'
;   K[66]='_GetDelayWaitingTime'
;   K[67]='_GetCacheGroupType'
;   K[68]='_SetCacheGroupType'
;   K[69]='_GetCacheGroupRewards'
;   K[70]='_SetCacheGroupRewards'
;   K[71]='_GetGroupId'
;   K[72]='IsInGroup'
;   K[73]='GetUserScore'
;   K[74]='GetActivityTokenNumber'
;   K[75]='GetLastScore'
;   K[76]='SetLastScore'
;   K[77]='GetUserRank'
;   K[78]='_SetUserRank'
;   K[79]='GetFullRankData'
;   K[80]='GetGroupMinTokenNumber'
;   K[81]='GetRewards'
;   K[82]='IsFinalRewardsTaken'
;   K[83]='TakeFinalRewards'
;   K[84]='RequestFullRankData'
;   K[85]='_LoadFullRankDatas'
;   K[86]='GetDisplayedUserRank'
;   K[87]='SetDisplayedUserRank'
;   K[88]='CheckOpen'
;   upvals: _ENV
;   locals: DBColumnValue(7-184), DBKey(18-184)
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABLE  R0[K1('Invalid')] = K2(1)
0002  SETTABLE  R0[K3('UploadingScore')] = K4(2)
0003  SETTABLE  R0[K5('CalculatingResult')] = K6(3)
0004  SETTABLE  R0[K7('Finished')] = K8(4)
0005  SETTABUP  _ENV[K0('RankSettlementState')] = R0
0006  LOADK     R0 = K9 'value'
0007  NEWTABLE  R1 = {} (0 items)
0008  SETTABLE  R1[K10('UploadWaitingTimeKey')] = K11('UploadWaitingTime')
0009  SETTABLE  R1[K12('DelayWaitingTimeKey')] = K13('DelayWaitingTime')
0010  SETTABLE  R1[K14('UserScoreKey')] = K15('UserScore')
0011  SETTABLE  R1[K16('UserScoreUploadedKey')] = K17('UserScoreUploaded')
0012  SETTABLE  R1[K18('GroupIdKey')] = K19('GroupId')
0013  SETTABLE  R1[K20('FinalRewardsTakenKey')] = K21('FinalRewardsTaken')
0014  SETTABLE  R1[K22('DisplayedUserRankKey')] = K23('DisplayedUserRank')
0015  SETTABLE  R1[K24('GroupTypeKey')] = K25('GroupType')
0016  SETTABLE  R1[K26('GroupRewardsKey')] = K27('GroupRewards')
0017  SETTABLE  R1[K28('LastScore')] = K28('LastScore')
0018  GETTABUP  R2 = _ENV[K30('setmetatable')]
0019  NEWTABLE  R3 = {} (0 items)
0020  SETTABLE  R3[K31('RequestFullRankDataApiFuncName')] = K32('')
0021  SETTABLE  R3[K33('QueryFinalRankDataApiFuncName')] = K32('')
0022  SETTABLE  R3[K34('HeartBeatReqTokenKey')] = K32('')
0023  SETTABLE  R3[K35('HeartBeatRespRankKey')] = K32('')
0024  GETTABUP  R4 = _ENV[K36('BaseActivityModel')]
0025  CALL      R2 = call(R2, 1 args, 2 rets)
0026  SETTABUP  _ENV[K29('RankActivityModel')] = R2
0027  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0028  GETTABUP  R3 = _ENV[K29('RankActivityModel')]
0029  SETTABLE  R2[K37('__index')] = R3
0030  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0031  CLOSURE   R3 = closure proto0
0032  SETTABLE  R2[K38('_GetDefinition')] = R3
0033  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0034  CLOSURE   R3 = closure proto1
0035  SETTABLE  R2[K39('_EnlistGetFullRankRequestCallback')] = R3
0036  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0037  CLOSURE   R3 = closure proto2
0038  SETTABLE  R2[K40('_SettlementGetFullRankRequestCallback')] = R3
0039  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0040  CLOSURE   R3 = closure proto3
0041  SETTABLE  R2[K41('Init')] = R3
0042  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0043  CLOSURE   R3 = closure proto4
0044  SETTABLE  R2[K42('GetActivityDefinition')] = R3
0045  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0046  CLOSURE   R3 = closure proto5
0047  SETTABLE  R2[K43('Destroy')] = R3
0048  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0049  CLOSURE   R3 = closure proto6
0050  SETTABLE  R2[K44('UpdatePerSecond')] = R3
0051  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0052  CLOSURE   R3 = closure proto7
0053  SETTABLE  R2[K45('_CalculateState')] = R3
0054  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0055  CLOSURE   R3 = closure proto8
0056  SETTABLE  R2[K46('LoadServerConfig')] = R3
0057  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0058  CLOSURE   R3 = closure proto9
0059  SETTABLE  R2[K47('_LoadOtherServerConfig')] = R3
0060  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0061  CLOSURE   R3 = closure proto10
0062  SETTABLE  R2[K48('UpdateConfigByCache')] = R3
0063  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0064  CLOSURE   R3 = closure proto11
0065  SETTABLE  R2[K49('_DropData')] = R3
0066  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0067  CLOSURE   R3 = closure proto12
0068  SETTABLE  R2[K50('_OnStateChanged')] = R3
0069  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0070  CLOSURE   R3 = closure proto13
0071  SETTABLE  R2[K51('GetResourceLabels')] = R3
0072  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0073  CLOSURE   R3 = closure proto14
0074  SETTABLE  R2[K52('HasNetwork')] = R3
0075  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0076  CLOSURE   R3 = closure proto15
0077  SETTABLE  R2[K53('CanHeartBeat')] = R3
0078  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0079  CLOSURE   R3 = closure proto16
0080  SETTABLE  R2[K54('ToHeartBeat')] = R3
0081  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0082  CLOSURE   R3 = closure proto17
0083  SETTABLE  R2[K55('FromHeartBeat')] = R3
0084  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0085  CLOSURE   R3 = closure proto18
0086  SETTABLE  R2[K56('IsSendingRankRequest')] = R3
0087  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0088  CLOSURE   R3 = closure proto19
0089  SETTABLE  R2[K57('_UpdateScore')] = R3
0090  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0091  CLOSURE   R3 = closure proto20
0092  SETTABLE  R2[K58('_AddToken')] = R3
0093  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0094  CLOSURE   R3 = closure proto21
0095  SETTABLE  R2[K59('_SetToken')] = R3
0096  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0097  CLOSURE   R3 = closure proto22
0098  SETTABLE  R2[K60('_UpdateSettlementState')] = R3
0099  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0100  CLOSURE   R3 = closure proto23
0101  SETTABLE  R2[K61('_OnSettlementStateChanged')] = R3
0102  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0103  CLOSURE   R3 = closure proto24
0104  SETTABLE  R2[K62('_CalcualateSettlementState')] = R3
0105  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0106  CLOSURE   R3 = closure proto25
0107  SETTABLE  R2[K63('GetSettlementState')] = R3
0108  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0109  CLOSURE   R3 = closure proto26
0110  SETTABLE  R2[K64('GetSettlementFinishTime')] = R3
0111  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0112  CLOSURE   R3 = closure proto27
0113  SETTABLE  R2[K65('_GetUploadWaitingTime')] = R3
0114  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0115  CLOSURE   R3 = closure proto28
0116  SETTABLE  R2[K66('_GetDelayWaitingTime')] = R3
0117  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0118  CLOSURE   R3 = closure proto29
0119  SETTABLE  R2[K67('_GetCacheGroupType')] = R3
0120  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0121  CLOSURE   R3 = closure proto30
0122  SETTABLE  R2[K68('_SetCacheGroupType')] = R3
0123  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0124  CLOSURE   R3 = closure proto31
0125  SETTABLE  R2[K69('_GetCacheGroupRewards')] = R3
0126  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0127  CLOSURE   R3 = closure proto32
0128  SETTABLE  R2[K70('_SetCacheGroupRewards')] = R3
0129  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0130  CLOSURE   R3 = closure proto33
0131  SETTABLE  R2[K71('_GetGroupId')] = R3
0132  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0133  CLOSURE   R3 = closure proto34
0134  SETTABLE  R2[K72('IsInGroup')] = R3
0135  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0136  CLOSURE   R3 = closure proto35
0137  SETTABLE  R2[K73('GetUserScore')] = R3
0138  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0139  CLOSURE   R3 = closure proto36
0140  SETTABLE  R2[K74('GetActivityTokenNumber')] = R3
0141  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0142  CLOSURE   R3 = closure proto37
0143  SETTABLE  R2[K75('GetLastScore')] = R3
0144  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0145  CLOSURE   R3 = closure proto38
0146  SETTABLE  R2[K76('SetLastScore')] = R3
0147  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0148  CLOSURE   R3 = closure proto39
0149  SETTABLE  R2[K77('GetUserRank')] = R3
0150  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0151  CLOSURE   R3 = closure proto40
0152  SETTABLE  R2[K78('_SetUserRank')] = R3
0153  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0154  CLOSURE   R3 = closure proto41
0155  SETTABLE  R2[K79('GetFullRankData')] = R3
0156  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0157  CLOSURE   R3 = closure proto42
0158  SETTABLE  R2[K80('GetGroupMinTokenNumber')] = R3
0159  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0160  CLOSURE   R3 = closure proto43
0161  SETTABLE  R2[K81('GetRewards')] = R3
0162  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0163  CLOSURE   R3 = closure proto44
0164  SETTABLE  R2[K82('IsFinalRewardsTaken')] = R3
0165  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0166  CLOSURE   R3 = closure proto45
0167  SETTABLE  R2[K83('TakeFinalRewards')] = R3
0168  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0169  CLOSURE   R3 = closure proto46
0170  SETTABLE  R2[K84('RequestFullRankData')] = R3
0171  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0172  CLOSURE   R3 = closure proto47
0173  SETTABLE  R2[K85('_LoadFullRankDatas')] = R3
0174  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0175  CLOSURE   R3 = closure proto48
0176  SETTABLE  R2[K86('GetDisplayedUserRank')] = R3
0177  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0178  CLOSURE   R3 = closure proto49
0179  SETTABLE  R2[K87('SetDisplayedUserRank')] = R3
0180  GETTABUP  R2 = _ENV[K29('RankActivityModel')]
0181  CLOSURE   R3 = closure proto50
0182  SETTABLE  R2[K88('CheckOpen')] = R3
0183  RETURN    return R0..R-1
; ---------- proto0 [_GetDefinition] ----------
  ; fn ?  line 81-83 np=2 va=0 ms=5 code=6 consts=3 upvals=1 protos=0
  ;   K[0]='Log'
  ;   K[1]='Assert'
  ;   K[2]='RankActivityModel:_GetDefinition()是抽象接口'
  ;   upvals: _ENV
  ;   locals: self(0-6), activityType(0-6)
  0000  GETTABUP  R2 = _ENV[K0('Log')]
  0001  GETTABLE  R2 = R2[K1('Assert')]
  0002  LOADBOOL  R3 = false
  0003  LOADK     R4 = K2 'RankActivityModel:_GetDefinition()是抽象接口'
  0004  CALL      R2 = call(R2, 0 args, 2 rets)
  0005  RETURN    return R0..R-1
; ---------- proto1 [_EnlistGetFullRankRequestCallback] ----------
  ; fn ?  line 85-87 np=2 va=0 ms=5 code=6 consts=3 upvals=1 protos=0
  ;   K[0]='Log'
  ;   K[1]='Assert'
  ;   K[2]='RankActivityModel:_EnlistGetFullRankRequestCallback()是抽象接口'
  ;   upvals: _ENV
  ;   locals: self(0-6), success(0-6)
  0000  GETTABUP  R2 = _ENV[K0('Log')]
  0001  GETTABLE  R2 = R2[K1('Assert')]
  0002  LOADBOOL  R3 = false
  0003  LOADK     R4 = K2 'RankActivityModel:_EnlistGetFullRankRequestCallback()是抽象接口'
  0004  CALL      R2 = call(R2, 0 args, 2 rets)
  0005  RETURN    return R0..R-1
; ---------- proto2 [_SettlementGetFullRankRequestCallback] ----------
  ; fn ?  line 89-91 np=2 va=0 ms=5 code=6 consts=3 upvals=1 protos=0
  ;   K[0]='Log'
  ;   K[1]='Assert'
  ;   K[2]='RankActivityModel:_EnlistGetFullRankRequestCallback()是抽象接口'
  ;   upvals: _ENV
  ;   locals: self(0-6), success(0-6)
  0000  GETTABUP  R2 = _ENV[K0('Log')]
  0001  GETTABLE  R2 = R2[K1('Assert')]
  0002  LOADBOOL  R3 = false
  0003  LOADK     R4 = K2 'RankActivityModel:_EnlistGetFullRankRequestCallback()是抽象接口'
  0004  CALL      R2 = call(R2, 0 args, 2 rets)
  0005  RETURN    return R0..R-1
; ---------- proto3 [Init] ----------
  ; fn ?  line 93-97 np=3 va=0 ms=7 code=12 consts=5 upvals=1 protos=0
  ;   K[0]='m_activityType'
  ;   K[1]='m_activityDefinition'
  ;   K[2]='_GetDefinition'
  ;   K[3]='BaseActivityModel'
  ;   K[4]='Init'
  ;   upvals: _ENV
  ;   locals: self(0-12), activityType(0-12), dbTable(0-12)
  0000  SETTABLE  R0[K0('m_activityType')] = R1
  0001  SELF      R4 = R0[K2('_GetDefinition')] (self)
  0002  MOVE      R5 = R0
  0003  CALL      R3 = call(R3, 1 args, 2 rets)
  0004  SETTABLE  R0[K1('m_activityDefinition')] = R3
  0005  GETTABUP  R3 = _ENV[K3('BaseActivityModel')]
  0006  GETTABLE  R3 = R3[K4('Init')]
  0007  MOVE      R4 = R0
  0008  MOVE      R5 = R0
  0009  MOVE      R6 = R0
  0010  CALL      R3 = call(R3, 0 args, 3 rets)
  0011  RETURN    return R0..R-1
; ---------- proto4 [GetActivityDefinition] ----------
  ; fn ?  line 99-101 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_activityDefinition'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_activityDefinition')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto5 [Destroy] ----------
  ; fn ?  line 103-105 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
; ---------- proto6 [UpdatePerSecond] ----------
  ; fn ?  line 107-110 np=1 va=0 ms=3 code=7 consts=3 upvals=1 protos=0
  ;   K[0]='BaseActivityModel'
  ;   K[1]='UpdatePerSecond'
  ;   K[2]='_UpdateSettlementState'
  ;   upvals: _ENV
  ;   locals: self(0-7)
  0000  GETTABUP  R1 = _ENV[K0('BaseActivityModel')]
  0001  GETTABLE  R1 = R1[K1('UpdatePerSecond')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  SELF      R2 = R0[K2('_UpdateSettlementState')] (self)
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  RETURN    return R0..R-1
; ---------- proto7 [_CalculateState] ----------
  ; fn ?  line 113-130 np=1 va=0 ms=5 code=66 consts=16 upvals=1 protos=0
  ;   K[0]='m_config'
  ;   K[1]=nil
  ;   K[2]='ActivityState'
  ;   K[3]='Released'
  ;   K[4]='GM'
  ;   K[5]='GameModel'
  ;   K[6]='GetServerTime'
  ;   K[7]='eTime'
  ;   K[8]='SettlementConfig'
  ;   K[9]='NoRegisterTime'
  ;   K[10]='sTime'
  ;   K[11]='Preparing'
  ;   K[12]='IsInGroup'
  ;   K[13]='Started'
  ;   K[14]='rTime'
  ;   K[15]='Ended'
  ;   upvals: _ENV
  ;   locals: self(0-66), serverTime(11-66), bInNoRegisterTime(21-66)
  0000  GETTABLE  R1 = R0[K0('m_config')]
  0001  EQ        if R0 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 7
  0003  GETTABUP  R1 = _ENV[K2('ActivityState')]
  0004  GETTABLE  R1 = R1[K3('Released')]
  0005  LOADNIL   R2..R2 = nil
  0006  RETURN    return R1..R0
  0007  GETTABUP  R1 = _ENV[K4('GM')]
  0008  GETTABLE  R1 = R1[K5('GameModel')]
  0009  SELF      R2 = R1[K6('GetServerTime')] (self)
  0010  CALL      R1 = call(R1, 1 args, 1 rets)
  0011  GETTABLE  R2 = R0[K0('m_config')]
  0012  GETTABLE  R2 = R2[K7('eTime')]
  0013  GETTABLE  R3 = R0[K0('m_config')]
  0014  GETTABLE  R3 = R3[K8('SettlementConfig')]
  0015  GETTABLE  R3 = R3[K9('NoRegisterTime')]
  0016  SUB       R2 = R3 sub R2
  0017  LE        if R1 le R1   -> -130028
  0018  JMP       (jump)   -> 20
  0019  LOADBOOL  R2 = false
  0020  LOADBOOL  R2 = true
  0021  GETTABLE  R3 = R0[K0('m_config')]
  0022  GETTABLE  R3 = R3[K10('sTime')]
  0023  LT        if R0 lt R3   -> -130532
  0024  JMP       (jump)   -> 31
  0025  GETTABUP  R3 = _ENV[K2('ActivityState')]
  0026  GETTABLE  R3 = R3[K11('Preparing')]
  0027  GETTABLE  R4 = R0[K0('m_config')]
  0028  GETTABLE  R4 = R4[K10('sTime')]
  0029  RETURN    return R3..R2
  0030  JMP       (jump)   -> 65
  0031  GETTABLE  R3 = R0[K0('m_config')]
  0032  GETTABLE  R3 = R3[K7('eTime')]
  0033  LT        if R0 lt R3   -> -130522
  0034  JMP       (jump)   -> 47
  0035  TEST      if not R2 then   -> -131035
  0036  JMP       (jump)   -> 41
  0037  SELF      R4 = R0[K12('IsInGroup')] (self)
  0038  CALL      R3 = call(R3, 1 args, 1 rets)
  0039  TEST      if not R3 then   -> -131031
  0040  JMP       (jump)   -> 47
  0041  GETTABUP  R3 = _ENV[K2('ActivityState')]
  0042  GETTABLE  R3 = R3[K13('Started')]
  0043  GETTABLE  R4 = R0[K0('m_config')]
  0044  GETTABLE  R4 = R4[K7('eTime')]
  0045  RETURN    return R3..R2
  0046  JMP       (jump)   -> 65
  0047  GETTABLE  R3 = R0[K0('m_config')]
  0048  GETTABLE  R3 = R3[K14('rTime')]
  0049  TEST      if not R3 then   -> -131021
  0050  JMP       (jump)   -> 61
  0051  GETTABLE  R3 = R0[K0('m_config')]
  0052  GETTABLE  R3 = R3[K14('rTime')]
  0053  LT        if R0 lt R3   -> -130502
  0054  JMP       (jump)   -> 61
  0055  GETTABUP  R3 = _ENV[K2('ActivityState')]
  0056  GETTABLE  R3 = R3[K15('Ended')]
  0057  GETTABLE  R4 = R0[K0('m_config')]
  0058  GETTABLE  R4 = R4[K14('rTime')]
  0059  RETURN    return R3..R2
  0060  JMP       (jump)   -> 65
  0061  GETTABUP  R3 = _ENV[K2('ActivityState')]
  0062  GETTABLE  R3 = R3[K3('Released')]
  0063  LOADNIL   R4..R4 = nil
  0064  RETURN    return R3..R2
  0065  RETURN    return R0..R-1
; ---------- proto8 [LoadServerConfig] ----------
  ; fn ?  line 132-145 np=1 va=0 ms=8 code=39 consts=16 upvals=3 protos=0
  ;   K[0]='BaseActivityModel'
  ;   K[1]='LoadServerConfig'
  ;   K[2]='m_config'
  ;   K[3]=nil
  ;   K[4]='_GetUploadWaitingTime'
  ;   K[5]='MathUtil'
  ;   K[6]='Random'
  ;   K[7]='SettlementConfig'
  ;   K[8]='UploadTime'
  ;   K[9]=2
  ;   K[10]='m_dbTable'
  ;   K[11]='Set'
  ;   K[12]='UploadWaitingTimeKey'
  ;   K[13]='DelayTime'
  ;   K[14]='DelayWaitingTimeKey'
  ;   K[15]='_UpdateSettlementState'
  ;   upvals: _ENV, DBKey, DBColumnValue
  ;   locals: self(0-39), uploadWaitingTime(18-36), delayWaitingTime(30-36)
  0000  GETTABUP  R1 = _ENV[K0('BaseActivityModel')]
  0001  GETTABLE  R1 = R1[K1('LoadServerConfig')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABLE  R1 = R0[K2('m_config')]
  0005  EQ        if R1 eq K3(nil)   -> -130294
  0006  JMP       (jump)   -> 36
  0007  SELF      R2 = R0[K4('_GetUploadWaitingTime')] (self)
  0008  CALL      R1 = call(R1, 1 args, 1 rets)
  0009  EQ        if R0 eq K3(nil)   -> -130290
  0010  JMP       (jump)   -> 36
  0011  GETTABUP  R1 = _ENV[K5('MathUtil')]
  0012  GETTABLE  R1 = R1[K6('Random')]
  0013  GETTABLE  R2 = R0[K2('m_config')]
  0014  GETTABLE  R2 = R2[K7('SettlementConfig')]
  0015  GETTABLE  R2 = R2[K8('UploadTime')]
  0016  IDIV      R2 = K9(2) idiv R2
  0017  CALL      R1 = call(R1, 1 args, 1 rets)
  0018  GETTABLE  R2 = R0[K10('m_dbTable')]
  0019  SELF      R3 = R2[K11('Set')] (self)
  0020  GETTABUP  R4 = DBKey[K12('UploadWaitingTimeKey')]
  0021  GETUPVAL  R5 = _ENV
  0022  MOVE      R6 = R0
  0023  CALL      R2 = call(R2, 0 args, 4 rets)
  0024  GETTABUP  R2 = _ENV[K5('MathUtil')]
  0025  GETTABLE  R2 = R2[K6('Random')]
  0026  GETTABLE  R3 = R0[K2('m_config')]
  0027  GETTABLE  R3 = R3[K7('SettlementConfig')]
  0028  GETTABLE  R3 = R3[K13('DelayTime')]
  0029  CALL      R2 = call(R2, 1 args, 1 rets)
  0030  GETTABLE  R3 = R0[K10('m_dbTable')]
  0031  SELF      R4 = R3[K11('Set')] (self)
  0032  GETTABUP  R5 = DBKey[K14('DelayWaitingTimeKey')]
  0033  GETUPVAL  R6 = _ENV
  0034  MOVE      R7 = R0
  0035  CALL      R3 = call(R3, 0 args, 4 rets)
  0036  SELF      R2 = R0[K15('_UpdateSettlementState')] (self)
  0037  CALL      R1 = call(R1, 0 args, 1 rets)
  0038  RETURN    return R0..R-1
; ---------- proto9 [_LoadOtherServerConfig] ----------
  ; fn ?  line 147-171 np=2 va=0 ms=9 code=49 consts=28 upvals=1 protos=0
  ;   K[0]='rank_group_rule'
  ;   K[1]=1
  ;   K[2]='m_config'
  ;   K[3]='GroupRule'
  ;   K[4]='rank_para'
  ;   K[5]='GroupMinTokenNumber'
  ;   K[6]='tokenNeed'
  ;   K[7]=nil
  ;   K[8]='Log'
  ;   K[9]='Error'
  ;   K[10]='排行榜最低进组分不允许为空: '
  ;   K[11]='tostring'
  ;   K[12]='GetId'
  ;   K[13]=0
  ;   K[14]='UpdateConfigByCache'
  ;   K[15]='Table'
  ;   K[16]='IsEmpty'
  ;   K[17]='RewardConfigs'
  ;   K[18]='排行榜没有对应组的奖励, 请检查是否引用了rank_reward配置表'
  ;   K[19]='SettlementConfig'
  ;   K[20]='NoRegisterTime'
  ;   K[21]='noRegisterTime'
  ;   K[22]='UploadTime'
  ;   K[23]='uploadTime'
  ;   K[24]='SettlementTime'
  ;   K[25]='settlementTime'
  ;   K[26]='DelayTime'
  ;   K[27]='delayTime'
  ;   upvals: _ENV
  ;   locals: self(0-49), config(0-49), group_rule(2-49), rankParaConfig(6-49)
  0000  GETTABLE  R2 = R1[K0('rank_group_rule')]
  0001  GETTABLE  R2 = R2[K1(1)]
  0002  GETTABLE  R3 = R0[K2('m_config')]
  0003  SETTABLE  R3[K3('GroupRule')] = R2
  0004  GETTABLE  R3 = R1[K4('rank_para')]
  0005  GETTABLE  R3 = R3[K1(1)]
  0006  GETTABLE  R4 = R0[K2('m_config')]
  0007  GETTABLE  R5 = R3[K6('tokenNeed')]
  0008  SETTABLE  R4[K5('GroupMinTokenNumber')] = R5
  0009  GETTABLE  R4 = R0[K2('m_config')]
  0010  GETTABLE  R4 = R4[K5('GroupMinTokenNumber')]
  0011  EQ        if R0 eq K7(nil)   -> -128748
  0012  JMP       (jump)   -> 24
  0013  GETTABUP  R4 = _ENV[K8('Log')]
  0014  GETTABLE  R4 = R4[K9('Error')]
  0015  LOADK     R5 = K10 '排行榜最低进组分不允许为空: '
  0016  GETTABUP  R6 = _ENV[K11('tostring')]
  0017  SELF      R8 = R0[K12('GetId')] (self)
  0018  CALL      R7 = call(R7, -1 args, 1 rets)
  0019  CALL      R6 = call(R6, 1 args, -1 rets)
  0020  CONCAT    R5 = concat(R5..R5)
  0021  CALL      R4 = call(R4, 0 args, 1 rets)
  0022  GETTABLE  R4 = R0[K2('m_config')]
  0023  SETTABLE  R4[K5('GroupMinTokenNumber')] = K13(0)
  0024  SELF      R5 = R0[K14('UpdateConfigByCache')] (self)
  0025  CALL      R4 = call(R4, 0 args, 1 rets)
  0026  GETTABUP  R4 = _ENV[K15('Table')]
  0027  GETTABLE  R4 = R4[K16('IsEmpty')]
  0028  GETTABLE  R5 = R0[K2('m_config')]
  0029  GETTABLE  R5 = R5[K17('RewardConfigs')]
  0030  CALL      R4 = call(R4, 1 args, 1 rets)
  0031  TEST      if not R4 then   -> -131039
  0032  JMP       (jump)   -> 37
  0033  GETTABUP  R4 = _ENV[K8('Log')]
  0034  GETTABLE  R4 = R4[K9('Error')]
  0035  LOADK     R5 = K18 '排行榜没有对应组的奖励, 请检查是否引用了rank_reward配置表'
  0036  CALL      R4 = call(R4, 0 args, 1 rets)
  0037  GETTABLE  R4 = R0[K2('m_config')]
  0038  NEWTABLE  R5 = {} (0 items)
  0039  GETTABLE  R6 = R3[K21('noRegisterTime')]
  0040  SETTABLE  R5[K20('NoRegisterTime')] = R6
  0041  GETTABLE  R6 = R3[K23('uploadTime')]
  0042  SETTABLE  R5[K22('UploadTime')] = R6
  0043  GETTABLE  R6 = R3[K25('settlementTime')]
  0044  SETTABLE  R5[K24('SettlementTime')] = R6
  0045  GETTABLE  R6 = R3[K27('delayTime')]
  0046  SETTABLE  R5[K26('DelayTime')] = R6
  0047  SETTABLE  R4[K19('SettlementConfig')] = R5
  0048  RETURN    return R0..R-1
; ---------- proto10 [UpdateConfigByCache] ----------
  ; fn ?  line 173-204 np=1 va=0 ms=12 code=74 consts=23 upvals=1 protos=0
  ;   K[0]='_GetCacheGroupType'
  ;   K[1]=nil
  ;   K[2]='m_config'
  ;   K[3]='GroupRule'
  ;   K[4]='GroupType'
  ;   K[5]='group_type'
  ;   K[6]='_SetCacheGroupType'
  ;   K[7]='_GetCacheGroupRewards'
  ;   K[8]='Table'
  ;   K[9]='IsEmpty'
  ;   K[10]='ipairs'
  ;   K[11]='rank_reward'
  ;   K[12]='Rewards'
  ;   K[13]='reward'
  ;   K[14]='MinRank'
  ;   K[15]='range'
  ;   K[16]='Left'
  ;   K[17]='MaxRank'
  ;   K[18]='Right'
  ;   K[19]='table'
  ;   K[20]='insert'
  ;   K[21]='_SetCacheGroupRewards'
  ;   K[22]='RewardConfigs'
  ;   upvals: _ENV
  ;   locals: self(0-74), cacheGroupType(2-74), rewardConfigs(25-74), (for generator)(45-65), (for state)(45-65), (for control)(45-65), _(46-63), rewardConfig(46-63), data(47-63)
  0000  SELF      R2 = R0[K0('_GetCacheGroupType')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  EQ        if R0 eq K1(nil)   -> -130299
  0003  JMP       (jump)   -> 21
  0004  GETTABLE  R2 = R0[K2('m_config')]
  0005  EQ        if R1 eq K1(nil)   -> -129784
  0006  JMP       (jump)   -> 23
  0007  GETTABLE  R2 = R0[K2('m_config')]
  0008  GETTABLE  R2 = R2[K3('GroupRule')]
  0009  EQ        if R1 eq K1(nil)   -> -129780
  0010  JMP       (jump)   -> 23
  0011  GETTABLE  R2 = R0[K2('m_config')]
  0012  GETTABLE  R3 = R0[K2('m_config')]
  0013  GETTABLE  R3 = R3[K3('GroupRule')]
  0014  GETTABLE  R3 = R3[K5('group_type')]
  0015  SETTABLE  R2[K4('GroupType')] = R3
  0016  SELF      R3 = R0[K6('_SetCacheGroupType')] (self)
  0017  GETTABLE  R4 = R0[K2('m_config')]
  0018  GETTABLE  R4 = R4[K4('GroupType')]
  0019  CALL      R2 = call(R2, 0 args, 2 rets)
  0020  JMP       (jump)   -> 23
  0021  GETTABLE  R2 = R0[K2('m_config')]
  0022  SETTABLE  R2[K4('GroupType')] = R1
  0023  SELF      R3 = R0[K7('_GetCacheGroupRewards')] (self)
  0024  CALL      R2 = call(R2, 1 args, 1 rets)
  0025  GETTABUP  R3 = _ENV[K8('Table')]
  0026  GETTABLE  R3 = R3[K9('IsEmpty')]
  0027  MOVE      R4 = R0
  0028  CALL      R3 = call(R3, 1 args, 1 rets)
  0029  TEST      if not R3 then   -> -131041
  0030  JMP       (jump)   -> 71
  0031  NEWTABLE  R3 = {} (0 items)
  0032  MOVE      R2 = R0
  0033  GETTABLE  R3 = R0[K2('m_config')]
  0034  EQ        if R1 eq K1(nil)   -> -129243
  0035  JMP       (jump)   -> 73
  0036  GETTABLE  R3 = R0[K2('m_config')]
  0037  GETTABLE  R3 = R3[K3('GroupRule')]
  0038  EQ        if R1 eq K1(nil)   -> -129239
  0039  JMP       (jump)   -> 73
  0040  GETTABUP  R3 = _ENV[K10('ipairs')]
  0041  GETTABLE  R4 = R0[K2('m_config')]
  0042  GETTABLE  R4 = R4[K3('GroupRule')]
  0043  GETTABLE  R4 = R4[K11('rank_reward')]
  0044  CALL      R3 = call(R3, 3 args, 1 rets)
  0045  JMP       (jump)   -> 63
  0046  NEWTABLE  R8 = {} (0 items)
  0047  GETTABLE  R9 = R7[K13('reward')]
  0048  SETTABLE  R8[K12('Rewards')] = R9
  0049  GETTABLE  R9 = R7[K15('range')]
  0050  GETTABLE  R9 = R9[K16('Left')]
  0051  SETTABLE  R8[K14('MinRank')] = R9
  0052  GETTABLE  R9 = R7[K15('range')]
  0053  GETTABLE  R9 = R9[K18('Right')]
  0054  TEST      if not R9 then   -> -131015
  0055  JMP       (jump)   -> 57
  0056  GETTABLE  R9 = R8[K14('MinRank')]
  0057  SETTABLE  R8[K17('MaxRank')] = R9
  0058  GETTABUP  R9 = _ENV[K19('table')]
  0059  GETTABLE  R9 = R9[K20('insert')]
  0060  MOVE      R10 = R0
  0061  MOVE      R11 = R0
  0062  CALL      R9 = call(R9, 0 args, 2 rets)
  0063  TFORCALL  tforcall R3
  0064  TFORLOOP  tforloop R5(sBx=-19)   -> 46
  0065  SELF      R4 = R0[K21('_SetCacheGroupRewards')] (self)
  0066  MOVE      R5 = R0
  0067  CALL      R3 = call(R3, 0 args, 2 rets)
  0068  GETTABLE  R3 = R0[K2('m_config')]
  0069  SETTABLE  R3[K22('RewardConfigs')] = R2
  0070  JMP       (jump)   -> 73
  0071  GETTABLE  R3 = R0[K2('m_config')]
  0072  SETTABLE  R3[K22('RewardConfigs')] = R2
  0073  RETURN    return R0..R-1
; ---------- proto11 [_DropData] ----------
  ; fn ?  line 206-213 np=1 va=0 ms=3 code=11 consts=8 upvals=1 protos=0
  ;   K[0]='BaseActivityModel'
  ;   K[1]='_DropData'
  ;   K[2]='m_settlementState'
  ;   K[3]=nil
  ;   K[4]='m_userRank'
  ;   K[5]='m_fullRankData'
  ;   K[6]='m_sendingRankRequest'
  ;   K[7]='UpdateConfigByCache'
  ;   upvals: _ENV
  ;   locals: self(0-11)
  0000  GETTABUP  R1 = _ENV[K0('BaseActivityModel')]
  0001  GETTABLE  R1 = R1[K1('_DropData')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  SETTABLE  R0[K2('m_settlementState')] = K3(nil)
  0005  SETTABLE  R0[K4('m_userRank')] = K3(nil)
  0006  SETTABLE  R0[K5('m_fullRankData')] = K3(nil)
  0007  SETTABLE  R0[K6('m_sendingRankRequest')] = K3(nil)
  0008  SELF      R2 = R0[K7('UpdateConfigByCache')] (self)
  0009  CALL      R1 = call(R1, 0 args, 1 rets)
  0010  RETURN    return R0..R-1
; ---------- proto12 [_OnStateChanged] ----------
  ; fn ?  line 215-219 np=1 va=0 ms=3 code=10 consts=6 upvals=1 protos=0
  ;   K[0]='BaseActivityModel'
  ;   K[1]='_OnStateChanged'
  ;   K[2]='EventDispatcher'
  ;   K[3]='DispatchEvent'
  ;   K[4]='m_activityDefinition'
  ;   K[5]='StateChangedEvent'
  ;   upvals: _ENV
  ;   locals: self(0-10)
  0000  GETTABUP  R1 = _ENV[K0('BaseActivityModel')]
  0001  GETTABLE  R1 = R1[K1('_OnStateChanged')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABUP  R1 = _ENV[K2('EventDispatcher')]
  0005  GETTABLE  R1 = R1[K3('DispatchEvent')]
  0006  GETTABLE  R2 = R0[K4('m_activityDefinition')]
  0007  GETTABLE  R2 = R2[K5('StateChangedEvent')]
  0008  CALL      R1 = call(R1, 0 args, 1 rets)
  0009  RETURN    return R0..R-1
; ---------- proto13 [GetResourceLabels] ----------
  ; fn ?  line 221-223 np=1 va=0 ms=2 code=4 consts=2 upvals=0 protos=0
  ;   K[0]='m_activityDefinition'
  ;   K[1]='ResourceLabels'
  ;   locals: self(0-4)
  0000  GETTABLE  R1 = R0[K0('m_activityDefinition')]
  0001  GETTABLE  R1 = R1[K1('ResourceLabels')]
  0002  RETURN    return R1..R0
  0003  RETURN    return R0..R-1
; ---------- proto14 [HasNetwork] ----------
  ; fn ?  line 225-227 np=1 va=0 ms=2 code=5 consts=2 upvals=1 protos=0
  ;   K[0]='PlatformInterface'
  ;   K[1]='HasNetwork'
  ;   upvals: _ENV
  ;   locals: self(0-5)
  0000  GETTABUP  R1 = _ENV[K0('PlatformInterface')]
  0001  GETTABLE  R1 = R1[K1('HasNetwork')]
  0002  TAILCALL  tailcall(R1, 0)
  0003  RETURN    return R1..R0
  0004  RETURN    return R0..R-1
; ---------- proto15 [CanHeartBeat] ----------
  ; fn ?  line 229-231 np=1 va=0 ms=3 code=18 consts=7 upvals=1 protos=0
  ;   K[0]='IsInGroup'
  ;   K[1]='m_state'
  ;   K[2]='ActivityState'
  ;   K[3]='Started'
  ;   K[4]='m_settlementState'
  ;   K[5]='RankSettlementState'
  ;   K[6]='UploadingScore'
  ;   upvals: _ENV
  ;   locals: self(0-18)
  0000  SELF      R2 = R0[K0('IsInGroup')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  TEST      if not R1 then   -> -131068
  0003  JMP       (jump)   -> 16
  0004  GETTABLE  R1 = R0[K1('m_state')]
  0005  GETTABUP  R2 = _ENV[K2('ActivityState')]
  0006  GETTABLE  R2 = R2[K3('Started')]
  0007  EQ        if R1 eq R2   -> -130549
  0008  JMP       (jump)   -> 15
  0009  GETTABLE  R1 = R0[K4('m_settlementState')]
  0010  GETTABUP  R2 = _ENV[K5('RankSettlementState')]
  0011  GETTABLE  R2 = R2[K6('UploadingScore')]
  0012  EQ        if R1 eq R2   -> -130544
  0013  JMP       (jump)   -> 15
  0014  LOADBOOL  R1 = false
  0015  LOADBOOL  R1 = true
  0016  RETURN    return R1..R0
  0017  RETURN    return R0..R-1
; ---------- proto16 [ToHeartBeat] ----------
  ; fn ?  line 233-237 np=2 va=0 ms=5 code=9 consts=3 upvals=0 protos=0
  ;   K[0]='CanHeartBeat'
  ;   K[1]='HeartBeatReqTokenKey'
  ;   K[2]='GetUserScore'
  ;   locals: self(0-9), request(0-9)
  0000  SELF      R3 = R0[K0('CanHeartBeat')] (self)
  0001  CALL      R2 = call(R2, 1 args, 1 rets)
  0002  TEST      if not R2 then   -> -131068
  0003  JMP       (jump)   -> 8
  0004  GETTABLE  R2 = R0[K1('HeartBeatReqTokenKey')]
  0005  SELF      R4 = R0[K2('GetUserScore')] (self)
  0006  CALL      R3 = call(R3, 1 args, 1 rets)
  0007  SETTABLE  R1[R2] = R3
  0008  RETURN    return R0..R-1
; ---------- proto17 [FromHeartBeat] ----------
  ; fn ?  line 239-266 np=3 va=0 ms=8 code=56 consts=20 upvals=3 protos=0
  ;   K[0]='CanHeartBeat'
  ;   K[1]='rcode'
  ;   K[2]=0
  ;   K[3]='GameConfig'
  ;   K[4]='IsTestMode'
  ;   K[5]='nil'
  ;   K[6]='IsString'
  ;   K[7]=nil
  ;   K[8]='tostring'
  ;   K[9]='Log'
  ;   K[10]='Error'
  ;   K[11]='[RankActivityModel 线下报错] heartbeat error, rcode: '
  ;   K[12]='HeartBeatRespRankKey'
  ;   K[13]='_SetUserRank'
  ;   K[14]='HeartBeatReqTokenKey'
  ;   K[15]='GetUserScore'
  ;   K[16]='m_dbTable'
  ;   K[17]='Set'
  ;   K[18]='UserScoreUploadedKey'
  ;   K[19]=1
  ;   upvals: _ENV, DBKey, DBColumnValue
  ;   locals: self(0-56), response(0-56), tbMsgReq(0-56), errorInfo(14-34)
  0000  SELF      R4 = R0[K0('CanHeartBeat')] (self)
  0001  CALL      R3 = call(R3, 1 args, 1 rets)
  0002  TEST      if not R3 then   -> -131067
  0003  JMP       (jump)   -> 5
  0004  RETURN    return R0..R-1
  0005  GETTABLE  R3 = R1[K1('rcode')]
  0006  EQ        if R1 eq K2(0)   -> -129270
  0007  JMP       (jump)   -> 35
  0008  GETTABUP  R3 = _ENV[K3('GameConfig')]
  0009  GETTABLE  R3 = R3[K4('IsTestMode')]
  0010  CALL      R3 = call(R3, 1 args, 0 rets)
  0011  TEST      if not R3 then   -> -131059
  0012  JMP       (jump)   -> 34
  0013  LOADK     R3 = K5 'nil'
  0014  GETTABUP  R4 = _ENV[K6('IsString')]
  0015  MOVE      R5 = R0
  0016  CALL      R4 = call(R4, 1 args, 1 rets)
  0017  TEST      if not R4 then   -> -131053
  0018  JMP       (jump)   -> 21
  0019  MOVE      R3 = R0
  0020  JMP       (jump)   -> 28
  0021  GETTABLE  R4 = R1[K1('rcode')]
  0022  EQ        if R1 eq K7(nil)   -> -128737
  0023  JMP       (jump)   -> 28
  0024  GETTABUP  R4 = _ENV[K8('tostring')]
  0025  GETTABLE  R5 = R1[K1('rcode')]
  0026  CALL      R4 = call(R4, 1 args, 1 rets)
  0027  MOVE      R3 = R0
  0028  GETTABUP  R4 = _ENV[K9('Log')]
  0029  GETTABLE  R4 = R4[K10('Error')]
  0030  LOADK     R5 = K11 '[RankActivityModel 线下报错] heartbeat error, rcode: '
  0031  MOVE      R6 = R0
  0032  CONCAT    R5 = concat(R5..R5)
  0033  CALL      R4 = call(R4, 0 args, 1 rets)
  0034  RETURN    return R0..R-1
  0035  GETTABLE  R3 = R0[K12('HeartBeatRespRankKey')]
  0036  GETTABLE  R3 = R1[R3]
  0037  EQ        if R1 eq K2(0)   -> -129239
  0038  JMP       (jump)   -> 43
  0039  SELF      R4 = R0[K13('_SetUserRank')] (self)
  0040  GETTABLE  R5 = R0[K12('HeartBeatRespRankKey')]
  0041  GETTABLE  R5 = R1[R5]
  0042  CALL      R3 = call(R3, 0 args, 2 rets)
  0043  GETTABLE  R3 = R0[K14('HeartBeatReqTokenKey')]
  0044  GETTABLE  R3 = R2[R3]
  0045  SELF      R5 = R0[K15('GetUserScore')] (self)
  0046  CALL      R4 = call(R4, 1 args, 1 rets)
  0047  EQ        if R0 eq R4   -> -129483
  0048  JMP       (jump)   -> 55
  0049  GETTABLE  R3 = R0[K16('m_dbTable')]
  0050  SELF      R4 = R3[K17('Set')] (self)
  0051  GETTABUP  R5 = DBKey[K18('UserScoreUploadedKey')]
  0052  GETUPVAL  R6 = _ENV
  0053  LOADK     R7 = K19 1
  0054  CALL      R3 = call(R3, 0 args, 4 rets)
  0055  RETURN    return R0..R-1
; ---------- proto18 [IsSendingRankRequest] ----------
  ; fn ?  line 268-270 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_sendingRankRequest'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_sendingRankRequest')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto19 [_UpdateScore] ----------
  ; fn ?  line 272-297 np=2 va=0 ms=8 code=70 consts=27 upvals=3 protos=1
  ;   K[0]='GetUserScore'
  ;   K[1]='m_dbTable'
  ;   K[2]='Set'
  ;   K[3]='UserScoreKey'
  ;   K[4]='LogActivity'
  ;   K[5]='EBIType'
  ;   K[6]='ActivityAddScore'
  ;   K[7]='ActivityScoreChanged'
  ;   K[8]='UserScoreUploadedKey'
  ;   K[9]=0
  ;   K[10]='IsInGroup'
  ;   K[11]='m_config'
  ;   K[12]='GroupMinTokenNumber'
  ;   K[13]='m_sendingRankRequest'
  ;   K[14]='RequestFullRankData'
  ;   K[15]='GameConfig'
  ;   K[16]='IsTestMode'
  ;   K[17]='[Rank]'
  ;   K[18]='m_activityType'
  ;   K[19]=' 尝试发送进组请求'
  ;   K[20]='GM'
  ;   K[21]='UIManager'
  ;   K[22]='ShowPrompt'
  ;   K[23]='Log'
  ;   K[24]='Info'
  ;   K[25]='HeartBeatManager'
  ;   K[26]='HeartBeatOnNextFrame'
  ;   upvals: DBKey, DBColumnValue, _ENV
  ;   locals: self(0-70), newScore(0-70), count(3-70), info(51-60)
  0000  SELF      R3 = R0[K0('GetUserScore')] (self)
  0001  CALL      R2 = call(R2, 1 args, 1 rets)
  0002  SUB       R2 = R2 sub R1
  0003  GETTABLE  R3 = R0[K1('m_dbTable')]
  0004  SELF      R4 = R3[K2('Set')] (self)
  0005  GETTABUP  R5 = DBKey[K3('UserScoreKey')]
  0006  GETUPVAL  R6 = DBKey
  0007  MOVE      R7 = R0
  0008  CALL      R3 = call(R3, 0 args, 4 rets)
  0009  SELF      R4 = R0[K4('LogActivity')] (self)
  0010  GETTABUP  R5 = _ENV[K5('EBIType')]
  0011  GETTABLE  R5 = R5[K6('ActivityAddScore')]
  0012  MOVE      R6 = R0
  0013  CALL      R3 = call(R3, 0 args, 3 rets)
  0014  SELF      R4 = R0[K4('LogActivity')] (self)
  0015  GETTABUP  R5 = _ENV[K5('EBIType')]
  0016  GETTABLE  R5 = R5[K7('ActivityScoreChanged')]
  0017  MOVE      R6 = R0
  0018  CALL      R3 = call(R3, 0 args, 3 rets)
  0019  GETTABLE  R3 = R0[K1('m_dbTable')]
  0020  SELF      R4 = R3[K2('Set')] (self)
  0021  GETTABUP  R5 = DBKey[K8('UserScoreUploadedKey')]
  0022  GETUPVAL  R6 = DBKey
  0023  LOADK     R7 = K9 0
  0024  CALL      R3 = call(R3, 0 args, 4 rets)
  0025  SELF      R4 = R0[K10('IsInGroup')] (self)
  0026  CALL      R3 = call(R3, 1 args, 1 rets)
  0027  TEST      if not R3 then   -> -131042
  0028  JMP       (jump)   -> 60
  0029  SELF      R4 = R0[K0('GetUserScore')] (self)
  0030  CALL      R3 = call(R3, 1 args, 1 rets)
  0031  GETTABLE  R4 = R0[K11('m_config')]
  0032  GETTABLE  R4 = R4[K12('GroupMinTokenNumber')]
  0033  LE        if R0 le R3   -> -128986
  0034  JMP       (jump)   -> 60
  0035  GETTABLE  R3 = R0[K13('m_sendingRankRequest')]
  0036  TEST      if not R3 then   -> -131033
  0037  JMP       (jump)   -> 60
  0038  SELF      R4 = R0[K14('RequestFullRankData')] (self)
  0039  CLOSURE   R5 = closure proto0
  0040  LOADBOOL  R6 = false
  0041  CALL      R3 = call(R3, 0 args, 3 rets)
  0042  GETTABUP  R3 = _ENV[K15('GameConfig')]
  0043  GETTABLE  R3 = R3[K16('IsTestMode')]
  0044  CALL      R3 = call(R3, 1 args, 0 rets)
  0045  TEST      if not R3 then   -> -131025
  0046  JMP       (jump)   -> 60
  0047  LOADK     R3 = K17 '[Rank]'
  0048  GETTABLE  R4 = R0[K18('m_activityType')]
  0049  LOADK     R5 = K19 ' 尝试发送进组请求'
  0050  CONCAT    R3 = concat(R3..R3)
  0051  GETTABUP  R4 = _ENV[K20('GM')]
  0052  GETTABLE  R4 = R4[K21('UIManager')]
  0053  SELF      R5 = R4[K22('ShowPrompt')] (self)
  0054  MOVE      R6 = R0
  0055  CALL      R4 = call(R4, 0 args, 2 rets)
  0056  GETTABUP  R4 = _ENV[K23('Log')]
  0057  GETTABLE  R4 = R4[K24('Info')]
  0058  MOVE      R5 = R0
  0059  CALL      R4 = call(R4, 0 args, 1 rets)
  0060  SELF      R4 = R0[K10('IsInGroup')] (self)
  0061  CALL      R3 = call(R3, 1 args, 1 rets)
  0062  TEST      if not R3 then   -> -131008
  0063  JMP       (jump)   -> 69
  0064  GETTABUP  R3 = _ENV[K20('GM')]
  0065  GETTABLE  R3 = R3[K25('HeartBeatManager')]
  0066  SELF      R4 = R3[K26('HeartBeatOnNextFrame')] (self)
  0067  LOADBOOL  R5 = false
  0068  CALL      R3 = call(R3, 0 args, 2 rets)
  0069  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 284-284 np=1 va=0 ms=4 code=5 consts=1 upvals=1 protos=0
    ;   K[0]='_EnlistGetFullRankRequestCallback'
    ;   upvals: self
    ;   locals: success(0-5)
    0000  GETUPVAL  R1 = self
    0001  SELF      R2 = R1[K0('_EnlistGetFullRankRequestCallback')] (self)
    0002  MOVE      R3 = R0
    0003  CALL      R1 = call(R1, 0 args, 2 rets)
    0004  RETURN    return R0..R-1
; ---------- proto20 [_AddToken] ----------
  ; fn ?  line 299-301 np=2 va=0 ms=6 code=6 consts=2 upvals=0 protos=0
  ;   K[0]='_UpdateScore'
  ;   K[1]='GetUserScore'
  ;   locals: self(0-6), count(0-6)
  0000  SELF      R3 = R0[K0('_UpdateScore')] (self)
  0001  SELF      R5 = R0[K1('GetUserScore')] (self)
  0002  CALL      R4 = call(R4, 1 args, 1 rets)
  0003  ADD       R4 = R4 add R1
  0004  CALL      R2 = call(R2, 0 args, 2 rets)
  0005  RETURN    return R0..R-1
; ---------- proto21 [_SetToken] ----------
  ; fn ?  line 303-305 np=2 va=0 ms=5 code=4 consts=1 upvals=0 protos=0
  ;   K[0]='_UpdateScore'
  ;   locals: self(0-4), count(0-4)
  0000  SELF      R3 = R0[K0('_UpdateScore')] (self)
  0001  MOVE      R4 = R0
  0002  CALL      R2 = call(R2, 0 args, 2 rets)
  0003  RETURN    return R0..R-1
; ---------- proto22 [_UpdateSettlementState] ----------
  ; fn ?  line 307-313 np=1 va=0 ms=4 code=9 consts=3 upvals=0 protos=0
  ;   K[0]='_CalcualateSettlementState'
  ;   K[1]='m_settlementState'
  ;   K[2]='_OnSettlementStateChanged'
  ;   locals: self(0-9), settlementState(2-9)
  0000  SELF      R2 = R0[K0('_CalcualateSettlementState')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  GETTABLE  R2 = R0[K1('m_settlementState')]
  0003  EQ        if R1 eq R1   -> -130042
  0004  JMP       (jump)   -> 8
  0005  SETTABLE  R0[K1('m_settlementState')] = R1
  0006  SELF      R3 = R0[K2('_OnSettlementStateChanged')] (self)
  0007  CALL      R2 = call(R2, 0 args, 1 rets)
  0008  RETURN    return R0..R-1
; ---------- proto23 [_OnSettlementStateChanged] ----------
  ; fn ?  line 315-338 np=1 va=0 ms=5 code=55 consts=23 upvals=3 protos=1
  ;   K[0]='IsInGroup'
  ;   K[1]='m_settlementState'
  ;   K[2]='RankSettlementState'
  ;   K[3]='UploadingScore'
  ;   K[4]='m_dbTable'
  ;   K[5]='GetValue'
  ;   K[6]='UserScoreUploadedKey'
  ;   K[7]=1
  ;   K[8]='GM'
  ;   K[9]='HeartBeatManager'
  ;   K[10]='HeartBeatOnNextFrame'
  ;   K[11]='Finished'
  ;   K[12]='IsFinalRewardsTaken'
  ;   K[13]='GameConfig'
  ;   K[14]='IsTestMode'
  ;   K[15]='[Rank]'
  ;   K[16]='m_activityType'
  ;   K[17]=' 尝试发送结算最终奖励请求'
  ;   K[18]='UIManager'
  ;   K[19]='ShowPrompt'
  ;   K[20]='Log'
  ;   K[21]='Info'
  ;   K[22]='RequestFullRankData'
  ;   upvals: _ENV, DBKey, DBColumnValue
  ;   locals: self(0-55), info(41-50)
  0000  SELF      R2 = R0[K0('IsInGroup')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  TEST      if not R1 then   -> -131067
  0003  JMP       (jump)   -> 5
  0004  RETURN    return R0..R-1
  0005  GETTABLE  R1 = R0[K1('m_settlementState')]
  0006  GETTABUP  R2 = _ENV[K2('RankSettlementState')]
  0007  GETTABLE  R2 = R2[K3('UploadingScore')]
  0008  EQ        if R0 eq R2   -> -130548
  0009  JMP       (jump)   -> 23
  0010  GETTABLE  R1 = R0[K4('m_dbTable')]
  0011  SELF      R2 = R1[K5('GetValue')] (self)
  0012  GETTABUP  R3 = DBKey[K6('UserScoreUploadedKey')]
  0013  GETUPVAL  R4 = _ENV
  0014  CALL      R1 = call(R1, 1 args, 3 rets)
  0015  EQ        if R1 eq K7(1)   -> -130280
  0016  JMP       (jump)   -> 54
  0017  GETTABUP  R1 = _ENV[K8('GM')]
  0018  GETTABLE  R1 = R1[K9('HeartBeatManager')]
  0019  SELF      R2 = R1[K10('HeartBeatOnNextFrame')] (self)
  0020  LOADBOOL  R3 = true
  0021  CALL      R1 = call(R1, 0 args, 2 rets)
  0022  JMP       (jump)   -> 54
  0023  GETTABLE  R1 = R0[K1('m_settlementState')]
  0024  GETTABUP  R2 = _ENV[K2('RankSettlementState')]
  0025  GETTABLE  R2 = R2[K11('Finished')]
  0026  EQ        if R0 eq R2   -> -130530
  0027  JMP       (jump)   -> 54
  0028  SELF      R2 = R0[K12('IsFinalRewardsTaken')] (self)
  0029  CALL      R1 = call(R1, 1 args, 1 rets)
  0030  TEST      if not R1 then   -> -131039
  0031  JMP       (jump)   -> 54
  0032  GETTABUP  R1 = _ENV[K13('GameConfig')]
  0033  GETTABLE  R1 = R1[K14('IsTestMode')]
  0034  CALL      R1 = call(R1, 1 args, 0 rets)
  0035  TEST      if not R1 then   -> -131035
  0036  JMP       (jump)   -> 50
  0037  LOADK     R1 = K15 '[Rank]'
  0038  GETTABLE  R2 = R0[K16('m_activityType')]
  0039  LOADK     R3 = K17 ' 尝试发送结算最终奖励请求'
  0040  CONCAT    R1 = concat(R1..R1)
  0041  GETTABUP  R2 = _ENV[K8('GM')]
  0042  GETTABLE  R2 = R2[K18('UIManager')]
  0043  SELF      R3 = R2[K19('ShowPrompt')] (self)
  0044  MOVE      R4 = R0
  0045  CALL      R2 = call(R2, 0 args, 2 rets)
  0046  GETTABUP  R2 = _ENV[K20('Log')]
  0047  GETTABLE  R2 = R2[K21('Info')]
  0048  MOVE      R3 = R0
  0049  CALL      R2 = call(R2, 0 args, 1 rets)
  0050  SELF      R2 = R0[K22('RequestFullRankData')] (self)
  0051  CLOSURE   R3 = closure proto0
  0052  LOADBOOL  R4 = false
  0053  CALL      R1 = call(R1, 0 args, 3 rets)
  0054  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 335-335 np=1 va=0 ms=4 code=5 consts=1 upvals=1 protos=0
    ;   K[0]='_SettlementGetFullRankRequestCallback'
    ;   upvals: self
    ;   locals: success(0-5)
    0000  GETUPVAL  R1 = self
    0001  SELF      R2 = R1[K0('_SettlementGetFullRankRequestCallback')] (self)
    0002  MOVE      R3 = R0
    0003  CALL      R1 = call(R1, 0 args, 2 rets)
    0004  RETURN    return R0..R-1
; ---------- proto24 [_CalcualateSettlementState] ----------
  ; fn ?  line 341-358 np=1 va=0 ms=4 code=36 consts=16 upvals=1 protos=0
  ;   K[0]='m_state'
  ;   K[1]='ActivityState'
  ;   K[2]='Ended'
  ;   K[3]='RankSettlementState'
  ;   K[4]='Invalid'
  ;   K[5]='GM'
  ;   K[6]='GameModel'
  ;   K[7]='GetServerTime'
  ;   K[8]='m_config'
  ;   K[9]='eTime'
  ;   K[10]='SettlementConfig'
  ;   K[11]='UploadTime'
  ;   K[12]='UploadingScore'
  ;   K[13]='GetSettlementFinishTime'
  ;   K[14]='CalculatingResult'
  ;   K[15]='Finished'
  ;   upvals: _ENV
  ;   locals: self(0-36), serverTime(12-36)
  0000  GETTABLE  R1 = R0[K0('m_state')]
  0001  GETTABUP  R2 = _ENV[K1('ActivityState')]
  0002  GETTABLE  R2 = R2[K2('Ended')]
  0003  EQ        if R1 eq R2   -> -130553
  0004  JMP       (jump)   -> 8
  0005  GETTABUP  R1 = _ENV[K3('RankSettlementState')]
  0006  GETTABLE  R1 = R1[K4('Invalid')]
  0007  RETURN    return R1..R0
  0008  GETTABUP  R1 = _ENV[K5('GM')]
  0009  GETTABLE  R1 = R1[K6('GameModel')]
  0010  SELF      R2 = R1[K7('GetServerTime')] (self)
  0011  CALL      R1 = call(R1, 1 args, 1 rets)
  0012  GETTABLE  R2 = R0[K8('m_config')]
  0013  GETTABLE  R2 = R2[K9('eTime')]
  0014  GETTABLE  R3 = R0[K8('m_config')]
  0015  GETTABLE  R3 = R3[K10('SettlementConfig')]
  0016  GETTABLE  R3 = R3[K11('UploadTime')]
  0017  ADD       R2 = R3 add R2
  0018  LT        if R0 lt R2   -> -130538
  0019  JMP       (jump)   -> 24
  0020  GETTABUP  R2 = _ENV[K3('RankSettlementState')]
  0021  GETTABLE  R2 = R2[K12('UploadingScore')]
  0022  RETURN    return R2..R1
  0023  JMP       (jump)   -> 35
  0024  SELF      R3 = R0[K13('GetSettlementFinishTime')] (self)
  0025  CALL      R2 = call(R2, 1 args, 1 rets)
  0026  LT        if R0 lt R2   -> -130530
  0027  JMP       (jump)   -> 32
  0028  GETTABUP  R2 = _ENV[K3('RankSettlementState')]
  0029  GETTABLE  R2 = R2[K14('CalculatingResult')]
  0030  RETURN    return R2..R1
  0031  JMP       (jump)   -> 35
  0032  GETTABUP  R2 = _ENV[K3('RankSettlementState')]
  0033  GETTABLE  R2 = R2[K15('Finished')]
  0034  RETURN    return R2..R1
  0035  RETURN    return R0..R-1
; ---------- proto25 [GetSettlementState] ----------
  ; fn ?  line 360-362 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_settlementState'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_settlementState')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto26 [GetSettlementFinishTime] ----------
  ; fn ?  line 364-366 np=1 va=0 ms=4 code=15 consts=6 upvals=0 protos=0
  ;   K[0]='m_config'
  ;   K[1]='eTime'
  ;   K[2]='SettlementConfig'
  ;   K[3]='UploadTime'
  ;   K[4]='SettlementTime'
  ;   K[5]='_GetDelayWaitingTime'
  ;   locals: self(0-15)
  0000  GETTABLE  R1 = R0[K0('m_config')]
  0001  GETTABLE  R1 = R1[K1('eTime')]
  0002  GETTABLE  R2 = R0[K0('m_config')]
  0003  GETTABLE  R2 = R2[K2('SettlementConfig')]
  0004  GETTABLE  R2 = R2[K3('UploadTime')]
  0005  ADD       R1 = R2 add R1
  0006  GETTABLE  R2 = R0[K0('m_config')]
  0007  GETTABLE  R2 = R2[K2('SettlementConfig')]
  0008  GETTABLE  R2 = R2[K4('SettlementTime')]
  0009  ADD       R1 = R2 add R1
  0010  SELF      R3 = R0[K5('_GetDelayWaitingTime')] (self)
  0011  CALL      R2 = call(R2, 1 args, 1 rets)
  0012  ADD       R1 = R2 add R1
  0013  RETURN    return R1..R0
  0014  RETURN    return R0..R-1
; ---------- proto27 [_GetUploadWaitingTime] ----------
  ; fn ?  line 369-371 np=1 va=0 ms=5 code=7 consts=3 upvals=2 protos=0
  ;   K[0]='m_dbTable'
  ;   K[1]='GetValue'
  ;   K[2]='UploadWaitingTimeKey'
  ;   upvals: DBKey, DBColumnValue
  ;   locals: self(0-7)
  0000  GETTABLE  R1 = R0[K0('m_dbTable')]
  0001  SELF      R2 = R1[K1('GetValue')] (self)
  0002  GETTABUP  R3 = DBKey[K2('UploadWaitingTimeKey')]
  0003  GETUPVAL  R4 = DBKey
  0004  TAILCALL  tailcall(R1, 0)
  0005  RETURN    return R1..R0
  0006  RETURN    return R0..R-1
; ---------- proto28 [_GetDelayWaitingTime] ----------
  ; fn ?  line 374-376 np=1 va=0 ms=5 code=7 consts=3 upvals=2 protos=0
  ;   K[0]='m_dbTable'
  ;   K[1]='GetValue'
  ;   K[2]='DelayWaitingTimeKey'
  ;   upvals: DBKey, DBColumnValue
  ;   locals: self(0-7)
  0000  GETTABLE  R1 = R0[K0('m_dbTable')]
  0001  SELF      R2 = R1[K1('GetValue')] (self)
  0002  GETTABUP  R3 = DBKey[K2('DelayWaitingTimeKey')]
  0003  GETUPVAL  R4 = DBKey
  0004  TAILCALL  tailcall(R1, 0)
  0005  RETURN    return R1..R0
  0006  RETURN    return R0..R-1
; ---------- proto29 [_GetCacheGroupType] ----------
  ; fn ?  line 378-380 np=1 va=0 ms=5 code=7 consts=3 upvals=2 protos=0
  ;   K[0]='m_dbTable'
  ;   K[1]='GetValue'
  ;   K[2]='GroupTypeKey'
  ;   upvals: DBKey, DBColumnValue
  ;   locals: self(0-7)
  0000  GETTABLE  R1 = R0[K0('m_dbTable')]
  0001  SELF      R2 = R1[K1('GetValue')] (self)
  0002  GETTABUP  R3 = DBKey[K2('GroupTypeKey')]
  0003  GETUPVAL  R4 = DBKey
  0004  TAILCALL  tailcall(R1, 0)
  0005  RETURN    return R1..R0
  0006  RETURN    return R0..R-1
; ---------- proto30 [_SetCacheGroupType] ----------
  ; fn ?  line 382-384 np=2 va=0 ms=7 code=7 consts=3 upvals=2 protos=0
  ;   K[0]='m_dbTable'
  ;   K[1]='Set'
  ;   K[2]='GroupTypeKey'
  ;   upvals: DBKey, DBColumnValue
  ;   locals: self(0-7), groupType(0-7)
  0000  GETTABLE  R2 = R0[K0('m_dbTable')]
  0001  SELF      R3 = R2[K1('Set')] (self)
  0002  GETTABUP  R4 = DBKey[K2('GroupTypeKey')]
  0003  GETUPVAL  R5 = DBKey
  0004  MOVE      R6 = R0
  0005  CALL      R2 = call(R2, 0 args, 4 rets)
  0006  RETURN    return R0..R-1
; ---------- proto31 [_GetCacheGroupRewards] ----------
  ; fn ?  line 386-392 np=1 va=0 ms=6 code=24 consts=10 upvals=3 protos=0
  ;   K[0]='m_dbTable'
  ;   K[1]='GetValue'
  ;   K[2]='GroupRewardsKey'
  ;   K[3]='StringUtil'
  ;   K[4]='IsNilOrEmpty'
  ;   K[5]='Replace'
  ;   K[6]='@'
  ;   K[7]=','
  ;   K[8]='json'
  ;   K[9]='decode'
  ;   upvals: DBKey, DBColumnValue, _ENV
  ;   locals: self(0-24), strData(5-24)
  0000  GETTABLE  R1 = R0[K0('m_dbTable')]
  0001  SELF      R2 = R1[K1('GetValue')] (self)
  0002  GETTABUP  R3 = DBKey[K2('GroupRewardsKey')]
  0003  GETUPVAL  R4 = DBKey
  0004  CALL      R1 = call(R1, 1 args, 3 rets)
  0005  GETTABUP  R2 = _ENV[K3('StringUtil')]
  0006  GETTABLE  R2 = R2[K4('IsNilOrEmpty')]
  0007  MOVE      R3 = R0
  0008  CALL      R2 = call(R2, 1 args, 1 rets)
  0009  TEST      if not R2 then   -> -131060
  0010  JMP       (jump)   -> 23
  0011  GETTABUP  R2 = _ENV[K3('StringUtil')]
  0012  GETTABLE  R2 = R2[K5('Replace')]
  0013  MOVE      R3 = R0
  0014  LOADK     R4 = K6 '@'
  0015  LOADK     R5 = K7 ','
  0016  CALL      R2 = call(R2, 1 args, 3 rets)
  0017  MOVE      R1 = R0
  0018  GETTABUP  R2 = _ENV[K8('json')]
  0019  GETTABLE  R2 = R2[K9('decode')]
  0020  MOVE      R3 = R0
  0021  TAILCALL  tailcall(R2, 0)
  0022  RETURN    return R2..R1
  0023  RETURN    return R0..R-1
; ---------- proto32 [_SetCacheGroupRewards] ----------
  ; fn ?  line 394-398 np=2 va=0 ms=10 code=21 consts=11 upvals=3 protos=0
  ;   K[0]='Table'
  ;   K[1]='IsEmpty'
  ;   K[2]='m_dbTable'
  ;   K[3]='Set'
  ;   K[4]='GroupRewardsKey'
  ;   K[5]='StringUtil'
  ;   K[6]='Replace'
  ;   K[7]='json'
  ;   K[8]='encode'
  ;   K[9]=','
  ;   K[10]='@'
  ;   upvals: _ENV, DBKey, DBColumnValue
  ;   locals: self(0-21), rewardConfig(0-21)
  0000  GETTABUP  R2 = _ENV[K0('Table')]
  0001  GETTABLE  R2 = R2[K1('IsEmpty')]
  0002  MOVE      R3 = R0
  0003  CALL      R2 = call(R2, 1 args, 1 rets)
  0004  TEST      if not R2 then   -> -131065
  0005  JMP       (jump)   -> 20
  0006  GETTABLE  R2 = R0[K2('m_dbTable')]
  0007  SELF      R3 = R2[K3('Set')] (self)
  0008  GETTABUP  R4 = DBKey[K4('GroupRewardsKey')]
  0009  GETUPVAL  R5 = _ENV
  0010  GETTABUP  R6 = _ENV[K5('StringUtil')]
  0011  GETTABLE  R6 = R6[K6('Replace')]
  0012  GETTABUP  R7 = _ENV[K7('json')]
  0013  GETTABLE  R7 = R7[K8('encode')]
  0014  MOVE      R8 = R0
  0015  CALL      R7 = call(R7, 1 args, 1 rets)
  0016  LOADK     R8 = K9 ','
  0017  LOADK     R9 = K10 '@'
  0018  CALL      R6 = call(R6, -1 args, 3 rets)
  0019  CALL      R2 = call(R2, 0 args, -1 rets)
  0020  RETURN    return R0..R-1
; ---------- proto33 [_GetGroupId] ----------
  ; fn ?  line 401-403 np=1 va=0 ms=5 code=7 consts=3 upvals=2 protos=0
  ;   K[0]='m_dbTable'
  ;   K[1]='GetValue'
  ;   K[2]='GroupIdKey'
  ;   upvals: DBKey, DBColumnValue
  ;   locals: self(0-7)
  0000  GETTABLE  R1 = R0[K0('m_dbTable')]
  0001  SELF      R2 = R1[K1('GetValue')] (self)
  0002  GETTABUP  R3 = DBKey[K2('GroupIdKey')]
  0003  GETUPVAL  R4 = DBKey
  0004  TAILCALL  tailcall(R1, 0)
  0005  RETURN    return R1..R0
  0006  RETURN    return R0..R-1
; ---------- proto34 [IsInGroup] ----------
  ; fn ?  line 406-408 np=1 va=0 ms=3 code=8 consts=2 upvals=0 protos=0
  ;   K[0]='_GetGroupId'
  ;   K[1]=nil
  ;   locals: self(0-8)
  0000  SELF      R2 = R0[K0('_GetGroupId')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  EQ        if R0 eq K1(nil)   -> -130299
  0003  JMP       (jump)   -> 5
  0004  LOADBOOL  R1 = false
  0005  LOADBOOL  R1 = true
  0006  RETURN    return R1..R0
  0007  RETURN    return R0..R-1
; ---------- proto35 [GetUserScore] ----------
  ; fn ?  line 410-412 np=1 va=0 ms=5 code=10 consts=4 upvals=2 protos=0
  ;   K[0]='m_dbTable'
  ;   K[1]='GetValue'
  ;   K[2]='UserScoreKey'
  ;   K[3]=0
  ;   upvals: DBKey, DBColumnValue
  ;   locals: self(0-10)
  0000  GETTABLE  R1 = R0[K0('m_dbTable')]
  0001  SELF      R2 = R1[K1('GetValue')] (self)
  0002  GETTABUP  R3 = DBKey[K2('UserScoreKey')]
  0003  GETUPVAL  R4 = DBKey
  0004  CALL      R1 = call(R1, 1 args, 3 rets)
  0005  TEST      if not R1 then   -> -131064
  0006  JMP       (jump)   -> 8
  0007  LOADK     R1 = K3 0
  0008  RETURN    return R1..R0
  0009  RETURN    return R0..R-1
; ---------- proto36 [GetActivityTokenNumber] ----------
  ; fn ?  line 414-416 np=1 va=0 ms=3 code=4 consts=1 upvals=0 protos=0
  ;   K[0]='GetUserScore'
  ;   locals: self(0-4)
  0000  SELF      R2 = R0[K0('GetUserScore')] (self)
  0001  TAILCALL  tailcall(R1, 0)
  0002  RETURN    return R1..R0
  0003  RETURN    return R0..R-1
; ---------- proto37 [GetLastScore] ----------
  ; fn ?  line 418-420 np=1 va=0 ms=5 code=10 consts=5 upvals=1 protos=0
  ;   K[0]='m_dbTable'
  ;   K[1]='GetValue'
  ;   K[2]='LastScore'
  ;   K[3]='value'
  ;   K[4]=0
  ;   upvals: DBKey
  ;   locals: self(0-10)
  0000  GETTABLE  R1 = R0[K0('m_dbTable')]
  0001  SELF      R2 = R1[K1('GetValue')] (self)
  0002  GETTABUP  R3 = DBKey[K2('LastScore')]
  0003  LOADK     R4 = K3 'value'
  0004  CALL      R1 = call(R1, 1 args, 3 rets)
  0005  TEST      if not R1 then   -> -131064
  0006  JMP       (jump)   -> 8
  0007  LOADK     R1 = K4 0
  0008  RETURN    return R1..R0
  0009  RETURN    return R0..R-1
; ---------- proto38 [SetLastScore] ----------
  ; fn ?  line 422-424 np=2 va=0 ms=7 code=7 consts=4 upvals=1 protos=0
  ;   K[0]='m_dbTable'
  ;   K[1]='Set'
  ;   K[2]='LastScore'
  ;   K[3]='value'
  ;   upvals: DBKey
  ;   locals: self(0-7), score(0-7)
  0000  GETTABLE  R2 = R0[K0('m_dbTable')]
  0001  SELF      R3 = R2[K1('Set')] (self)
  0002  GETTABUP  R4 = DBKey[K2('LastScore')]
  0003  LOADK     R5 = K3 'value'
  0004  MOVE      R6 = R0
  0005  CALL      R2 = call(R2, 0 args, 4 rets)
  0006  RETURN    return R0..R-1
; ---------- proto39 [GetUserRank] ----------
  ; fn ?  line 426-428 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_userRank'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_userRank')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto40 [_SetUserRank] ----------
  ; fn ?  line 430-435 np=2 va=0 ms=4 code=10 consts=5 upvals=1 protos=0
  ;   K[0]='m_userRank'
  ;   K[1]='EventDispatcher'
  ;   K[2]='DispatchEvent'
  ;   K[3]='m_activityDefinition'
  ;   K[4]='UserRankChangedEvent'
  ;   upvals: _ENV
  ;   locals: self(0-10), rank(0-10)
  0000  GETTABLE  R2 = R0[K0('m_userRank')]
  0001  EQ        if R1 eq R1   -> -130044
  0002  JMP       (jump)   -> 9
  0003  SETTABLE  R0[K0('m_userRank')] = R1
  0004  GETTABUP  R2 = _ENV[K1('EventDispatcher')]
  0005  GETTABLE  R2 = R2[K2('DispatchEvent')]
  0006  GETTABLE  R3 = R0[K3('m_activityDefinition')]
  0007  GETTABLE  R3 = R3[K4('UserRankChangedEvent')]
  0008  CALL      R2 = call(R2, 0 args, 1 rets)
  0009  RETURN    return R0..R-1
; ---------- proto41 [GetFullRankData] ----------
  ; fn ?  line 437-439 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_fullRankData'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_fullRankData')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto42 [GetGroupMinTokenNumber] ----------
  ; fn ?  line 442-444 np=1 va=0 ms=2 code=4 consts=2 upvals=0 protos=0
  ;   K[0]='m_config'
  ;   K[1]='GroupMinTokenNumber'
  ;   locals: self(0-4)
  0000  GETTABLE  R1 = R0[K0('m_config')]
  0001  GETTABLE  R1 = R1[K1('GroupMinTokenNumber')]
  0002  RETURN    return R1..R0
  0003  RETURN    return R0..R-1
; ---------- proto43 [GetRewards] ----------
  ; fn ?  line 448-460 np=2 va=0 ms=8 code=27 consts=7 upvals=1 protos=0
  ;   K[0]='m_config'
  ;   K[1]=nil
  ;   K[2]='RewardConfigs'
  ;   K[3]='ipairs'
  ;   K[4]='MinRank'
  ;   K[5]='MaxRank'
  ;   K[6]='Rewards'
  ;   upvals: _ENV
  ;   locals: self(0-27), rank(0-27), (for generator)(13-24), (for state)(13-24), (for control)(13-24), _(14-22), rewardConfig(14-22)
  0000  GETTABLE  R2 = R0[K0('m_config')]
  0001  EQ        if R1 eq K1(nil)   -> -129788
  0002  JMP       (jump)   -> 7
  0003  GETTABLE  R2 = R0[K0('m_config')]
  0004  GETTABLE  R2 = R2[K2('RewardConfigs')]
  0005  EQ        if R0 eq K1(nil)   -> -129784
  0006  JMP       (jump)   -> 9
  0007  LOADNIL   R2..R2 = nil
  0008  RETURN    return R2..R1
  0009  GETTABUP  R2 = _ENV[K3('ipairs')]
  0010  GETTABLE  R3 = R0[K0('m_config')]
  0011  GETTABLE  R3 = R3[K2('RewardConfigs')]
  0012  CALL      R2 = call(R2, 3 args, 1 rets)
  0013  JMP       (jump)   -> 22
  0014  GETTABLE  R7 = R6[K4('MinRank')]
  0015  LE        if R0 le R1   -> -127470
  0016  JMP       (jump)   -> 22
  0017  GETTABLE  R7 = R6[K5('MaxRank')]
  0018  LE        if R0 le R7   -> -130533
  0019  JMP       (jump)   -> 22
  0020  GETTABLE  R7 = R6[K6('Rewards')]
  0021  RETURN    return R7..R6
  0022  TFORCALL  tforcall R2
  0023  TFORLOOP  tforloop R4(sBx=-10)   -> 14
  0024  LOADNIL   R2..R2 = nil
  0025  RETURN    return R2..R1
  0026  RETURN    return R0..R-1
; ---------- proto44 [IsFinalRewardsTaken] ----------
  ; fn ?  line 462-464 np=1 va=0 ms=5 code=11 consts=4 upvals=2 protos=0
  ;   K[0]='m_dbTable'
  ;   K[1]='GetValue'
  ;   K[2]='FinalRewardsTakenKey'
  ;   K[3]=1
  ;   upvals: DBKey, DBColumnValue
  ;   locals: self(0-11)
  0000  GETTABLE  R1 = R0[K0('m_dbTable')]
  0001  SELF      R2 = R1[K1('GetValue')] (self)
  0002  GETTABUP  R3 = DBKey[K2('FinalRewardsTakenKey')]
  0003  GETUPVAL  R4 = DBKey
  0004  CALL      R1 = call(R1, 1 args, 3 rets)
  0005  EQ        if R1 eq K3(1)   -> -130294
  0006  JMP       (jump)   -> 8
  0007  LOADBOOL  R1 = false
  0008  LOADBOOL  R1 = true
  0009  RETURN    return R1..R0
  0010  RETURN    return R0..R-1
; ---------- proto45 [TakeFinalRewards] ----------
  ; fn ?  line 467-477 np=4 va=0 ms=13 code=38 consts=24 upvals=3 protos=0
  ;   K[0]=nil
  ;   K[1]='RewardApi'
  ;   K[2]='CryptRewards'
  ;   K[3]='AcquireRewardsLogic'
  ;   K[4]='EPropertySource'
  ;   K[5]='Give'
  ;   K[6]='ERewardScene'
  ;   K[7]='Other'
  ;   K[8]='EGameMode'
  ;   K[9]='Board'
  ;   K[10]='CacheItemType'
  ;   K[11]='Stack'
  ;   K[12]='LogActivity'
  ;   K[13]='EBIType'
  ;   K[14]='ActivityGetRewards'
  ;   K[15]='m_userRank'
  ;   K[16]='m_dbTable'
  ;   K[17]='Set'
  ;   K[18]='FinalRewardsTakenKey'
  ;   K[19]=1
  ;   K[20]='EventDispatcher'
  ;   K[21]='DispatchEvent'
  ;   K[22]='m_activityDefinition'
  ;   K[23]='FinishSettlementEvent'
  ;   upvals: _ENV, DBKey, DBColumnValue
  ;   locals: self(0-38), rewards(0-38), scene(0-38), ext(0-38)
  0000  EQ        if R1 eq K0(nil)   -> -130302
  0001  JMP       (jump)   -> 26
  0002  GETTABUP  R4 = _ENV[K1('RewardApi')]
  0003  GETTABLE  R4 = R4[K2('CryptRewards')]
  0004  MOVE      R5 = R0
  0005  CALL      R4 = call(R4, 0 args, 1 rets)
  0006  GETTABUP  R4 = _ENV[K1('RewardApi')]
  0007  GETTABLE  R4 = R4[K3('AcquireRewardsLogic')]
  0008  MOVE      R5 = R0
  0009  GETTABUP  R6 = _ENV[K4('EPropertySource')]
  0010  GETTABLE  R6 = R6[K5('Give')]
  0011  MOVE      R7 = R0
  0012  GETTABUP  R8 = _ENV[K6('ERewardScene')]
  0013  GETTABLE  R8 = R8[K7('Other')]
  0014  GETTABUP  R9 = _ENV[K8('EGameMode')]
  0015  GETTABLE  R9 = R9[K9('Board')]
  0016  GETTABUP  R10 = _ENV[K10('CacheItemType')]
  0017  GETTABLE  R10 = R10[K11('Stack')]
  0018  LOADNIL   R11..R11 = nil
  0019  MOVE      R12 = R0
  0020  CALL      R4 = call(R4, 0 args, 8 rets)
  0021  SELF      R5 = R0[K12('LogActivity')] (self)
  0022  GETTABUP  R6 = _ENV[K13('EBIType')]
  0023  GETTABLE  R6 = R6[K14('ActivityGetRewards')]
  0024  GETTABLE  R7 = R0[K15('m_userRank')]
  0025  CALL      R4 = call(R4, 0 args, 3 rets)
  0026  GETTABLE  R4 = R0[K16('m_dbTable')]
  0027  SELF      R5 = R4[K17('Set')] (self)
  0028  GETTABUP  R6 = DBKey[K18('FinalRewardsTakenKey')]
  0029  GETUPVAL  R7 = _ENV
  0030  LOADK     R8 = K19 1
  0031  CALL      R4 = call(R4, 0 args, 4 rets)
  0032  GETTABUP  R4 = _ENV[K20('EventDispatcher')]
  0033  GETTABLE  R4 = R4[K21('DispatchEvent')]
  0034  GETTABLE  R5 = R0[K22('m_activityDefinition')]
  0035  GETTABLE  R5 = R5[K23('FinishSettlementEvent')]
  0036  CALL      R4 = call(R4, 0 args, 1 rets)
  0037  RETURN    return R0..R-1
; ---------- proto46 [RequestFullRankData] ----------
  ; fn ?  line 483-582 np=4 va=0 ms=13 code=89 consts=32 upvals=3 protos=1
  ;   K[0]='GetUserScore'
  ;   K[1]='m_config'
  ;   K[2]='GroupMinTokenNumber'
  ;   K[3]='Log'
  ;   K[4]='Assert'
  ;   K[5]='RankActivityModel:current user score is less than min score:'
  ;   K[6]='tostring'
  ;   K[7]=';'
  ;   K[8]='IsInGroup'
  ;   K[9]='GM'
  ;   K[10]='GameModel'
  ;   K[11]='GetServerTime'
  ;   K[12]='eTime'
  ;   K[13]='SettlementConfig'
  ;   K[14]='NoRegisterTime'
  ;   K[15]='m_fullRankData'
  ;   K[16]=nil
  ;   K[17]='IsFinal'
  ;   K[18]='m_settlementState'
  ;   K[19]='RankSettlementState'
  ;   K[20]='Finished'
  ;   K[21]='m_sendingRankRequest'
  ;   K[22]=true
  ;   K[23]='RedisMessage'
  ;   K[24]='QueryFinalRankDataApiFuncName'
  ;   K[25]='_GetGroupId'
  ;   K[26]='RequestFullRankDataApiFuncName'
  ;   K[27]='GetId'
  ;   K[28]='m_type'
  ;   K[29]='m_config'
  ;   K[30]='GroupType'
  ;   K[31]='GetUserScore'
  ;   upvals: _ENV, DBKey, DBColumnValue
  ;   locals: self(0-89), callback(0-89), userTriggered(0-89), bPopup(0-89), serverTime(32-44), bFinal(62-89), wrapper(63-89)
  0000  SELF      R5 = R0[K0('GetUserScore')] (self)
  0001  CALL      R4 = call(R4, 1 args, 1 rets)
  0002  GETTABLE  R5 = R0[K1('m_config')]
  0003  GETTABLE  R5 = R5[K2('GroupMinTokenNumber')]
  0004  LT        if R0 lt R5   -> -129013
  0005  JMP       (jump)   -> 24
  0006  GETTABUP  R4 = _ENV[K3('Log')]
  0007  GETTABLE  R4 = R4[K4('Assert')]
  0008  LOADK     R5 = K5 'RankActivityModel:current user score is less than min score:'
  0009  GETTABUP  R6 = _ENV[K6('tostring')]
  0010  SELF      R8 = R0[K0('GetUserScore')] (self)
  0011  CALL      R7 = call(R7, -1 args, 1 rets)
  0012  CALL      R6 = call(R6, 1 args, -1 rets)
  0013  LOADK     R7 = K7 ';'
  0014  GETTABUP  R8 = _ENV[K6('tostring')]
  0015  GETTABLE  R9 = R0[K1('m_config')]
  0016  GETTABLE  R9 = R9[K2('GroupMinTokenNumber')]
  0017  CALL      R8 = call(R8, 1 args, 1 rets)
  0018  CONCAT    R5 = concat(R5..R5)
  0019  CALL      R4 = call(R4, 0 args, 1 rets)
  0020  MOVE      R4 = R0
  0021  LOADBOOL  R5 = false
  0022  CALL      R4 = call(R4, 0 args, 1 rets)
  0023  RETURN    return R0..R-1
  0024  SELF      R5 = R0[K8('IsInGroup')] (self)
  0025  CALL      R4 = call(R4, 1 args, 1 rets)
  0026  TEST      if not R4 then   -> -131043
  0027  JMP       (jump)   -> 44
  0028  GETTABUP  R4 = _ENV[K9('GM')]
  0029  GETTABLE  R4 = R4[K10('GameModel')]
  0030  SELF      R5 = R4[K11('GetServerTime')] (self)
  0031  CALL      R4 = call(R4, 1 args, 1 rets)
  0032  GETTABLE  R5 = R0[K1('m_config')]
  0033  GETTABLE  R5 = R5[K12('eTime')]
  0034  GETTABLE  R6 = R0[K1('m_config')]
  0035  GETTABLE  R6 = R6[K13('SettlementConfig')]
  0036  GETTABLE  R6 = R6[K14('NoRegisterTime')]
  0037  SUB       R5 = R6 sub R5
  0038  LE        if R0 le R4   -> -128468
  0039  JMP       (jump)   -> 44
  0040  MOVE      R5 = R0
  0041  LOADBOOL  R6 = false
  0042  CALL      R5 = call(R5, 0 args, 1 rets)
  0043  RETURN    return R0..R-1
  0044  GETTABLE  R4 = R0[K15('m_fullRankData')]
  0045  EQ        if R1 eq K16(nil)   -> -128705
  0046  JMP       (jump)   -> 55
  0047  GETTABLE  R4 = R0[K15('m_fullRankData')]
  0048  GETTABLE  R4 = R4[K17('IsFinal')]
  0049  TEST      if not R4 then   -> -131021
  0050  JMP       (jump)   -> 55
  0051  MOVE      R4 = R0
  0052  LOADBOOL  R5 = true
  0053  CALL      R4 = call(R4, 0 args, 1 rets)
  0054  RETURN    return R0..R-1
  0055  GETTABLE  R4 = R0[K18('m_settlementState')]
  0056  GETTABUP  R5 = _ENV[K19('RankSettlementState')]
  0057  GETTABLE  R5 = R5[K20('Finished')]
  0058  EQ        if R1 eq R5   -> -128959
  0059  JMP       (jump)   -> 61
  0060  LOADBOOL  R4 = false
  0061  LOADBOOL  R4 = true
  0062  CLOSURE   R5 = closure proto0
  0063  SETTABLE  R0[K21('m_sendingRankRequest')] = K22(true)
  0064  TEST      if not R4 then   -> -131006
  0065  JMP       (jump)   -> 75
  0066  GETTABUP  R6 = _ENV[K23('RedisMessage')]
  0067  GETTABLE  R7 = R0[K24('QueryFinalRankDataApiFuncName')]
  0068  GETTABLE  R6 = R6[R7]
  0069  SELF      R8 = R0[K25('_GetGroupId')] (self)
  0070  CALL      R7 = call(R7, 1 args, 1 rets)
  0071  MOVE      R8 = R0
  0072  MOVE      R9 = R0
  0073  CALL      R6 = call(R6, 0 args, 3 rets)
  0074  JMP       (jump)   -> 88
  0075  GETTABUP  R6 = _ENV[K23('RedisMessage')]
  0076  GETTABLE  R7 = R0[K26('RequestFullRankDataApiFuncName')]
  0077  GETTABLE  R6 = R6[R7]
  0078  SELF      R8 = R0[K27('GetId')] (self)
  0079  CALL      R7 = call(R7, 1 args, 1 rets)
  0080  GETTABLE  R8 = R0[K28('m_type')]
  0081  GETTABLE  R9 = R0[K29('m_config')]
  0082  GETTABLE  R9 = R9[K30('GroupType')]
  0083  SELF      R11 = R0[K31('GetUserScore')] (self)
  0084  CALL      R10 = call(R10, 1 args, 1 rets)
  0085  MOVE      R11 = R0
  0086  MOVE      R12 = R0
  0087  CALL      R6 = call(R6, 0 args, 6 rets)
  0088  RETURN    return R0..R-1
  ; ---------- proto0 [m_sendingRankRequest] ----------
    ; fn ?  line 506-572 np=2 va=0 ms=10 code=169 consts=54 upvals=8 protos=0
    ;   K[0]='m_sendingRankRequest'
    ;   K[1]=false
    ;   K[2]='rcode'
    ;   K[3]=0
    ;   K[4]='GameConfig'
    ;   K[5]='IsTestMode'
    ;   K[6]='nil'
    ;   K[7]='IsString'
    ;   K[8]=nil
    ;   K[9]='tostring'
    ;   K[10]='Log'
    ;   K[11]='Error'
    ;   K[12]='[RankActivityModel 线下报错] request full rank data error, rcode: '
    ;   K[13]='GetState'
    ;   K[14]='ActivityState'
    ;   K[15]='Released'
    ;   K[16]='IsInGroup'
    ;   K[17]='m_dbTable'
    ;   K[18]='Set'
    ;   K[19]='GroupIdKey'
    ;   K[20]='group_id'
    ;   K[21]='GM'
    ;   K[22]='HeartBeatManager'
    ;   K[23]='TrySchedule'
    ;   K[24]='HeartBeatOnNextFrame'
    ;   K[25]='StringUtil'
    ;   K[26]='IsNilOrEmpty'
    ;   K[27]='m_activityDefinition'
    ;   K[28]='EnterGroupBIType'
    ;   K[29]='groupId'
    ;   K[30]='_GetGroupId'
    ;   K[31]='type'
    ;   K[32]='m_config'
    ;   K[33]='GroupType'
    ;   K[34]='BIManager'
    ;   K[35]='LogAction'
    ;   K[36]='[Rank]'
    ;   K[37]='m_activityType'
    ;   K[38]=' 进组成功'
    ;   K[39]='UIManager'
    ;   K[40]='ShowPrompt'
    ;   K[41]='Info'
    ;   K[42]='_LoadFullRankDatas'
    ;   K[43]='ranks'
    ;   K[44]='_SetUserRank'
    ;   K[45]='GetUserScore'
    ;   K[46]='UserScoreUploadedKey'
    ;   K[47]=1
    ;   K[48]='m_fullRankData'
    ;   K[49]='IsFinal'
    ;   K[50]=' 获取结算奖励成功'
    ;   K[51]='EventDispatcher'
    ;   K[52]='DispatchEvent'
    ;   K[53]='FullRankChangedEvent'
    ;   upvals: self, callback, _ENV, DBKey, DBColumnValue, bFinal, userTriggered, bPopup
    ;   locals: success(0-169), response(0-169), errorInfo(15-35), lastInGroup(48-169), action(80-87), info(96-105), myRank(110-169), myScore(110-169), info(140-149)
    0000  SETTABUP  self[K0('m_sendingRankRequest')] = K1(false)
    0001  TEST      if not R0 then   -> -131069
    0002  JMP       (jump)   -> 6
    0003  GETTABLE  R2 = R1[K2('rcode')]
    0004  EQ        if R1 eq K3(0)   -> -129783
    0005  JMP       (jump)   -> 36
    0006  GETUPVAL  R2 = self
    0007  LOADBOOL  R3 = false
    0008  CALL      R2 = call(R2, 0 args, 1 rets)
    0009  GETTABUP  R2 = _ENV[K4('GameConfig')]
    0010  GETTABLE  R2 = R2[K5('IsTestMode')]
    0011  CALL      R2 = call(R2, 1 args, 0 rets)
    0012  TEST      if not R2 then   -> -131058
    0013  JMP       (jump)   -> 35
    0014  LOADK     R2 = K6 'nil'
    0015  GETTABUP  R3 = _ENV[K7('IsString')]
    0016  MOVE      R4 = R0
    0017  CALL      R3 = call(R3, 1 args, 1 rets)
    0018  TEST      if not R3 then   -> -131052
    0019  JMP       (jump)   -> 22
    0020  MOVE      R2 = R0
    0021  JMP       (jump)   -> 29
    0022  GETTABLE  R3 = R1[K2('rcode')]
    0023  EQ        if R1 eq K8(nil)   -> -129247
    0024  JMP       (jump)   -> 29
    0025  GETTABUP  R3 = _ENV[K9('tostring')]
    0026  GETTABLE  R4 = R1[K2('rcode')]
    0027  CALL      R3 = call(R3, 1 args, 1 rets)
    0028  MOVE      R2 = R0
    0029  GETTABUP  R3 = _ENV[K10('Log')]
    0030  GETTABLE  R3 = R3[K11('Error')]
    0031  LOADK     R4 = K12 '[RankActivityModel 线下报错] request full rank data error, rcode: '
    0032  MOVE      R5 = R0
    0033  CONCAT    R4 = concat(R4..R4)
    0034  CALL      R3 = call(R3, 0 args, 1 rets)
    0035  RETURN    return R0..R-1
    0036  GETUPVAL  R2 = self
    0037  SELF      R3 = R2[K13('GetState')] (self)
    0038  LOADBOOL  R4 = false
    0039  CALL      R2 = call(R2, 1 args, 2 rets)
    0040  GETTABUP  R3 = _ENV[K14('ActivityState')]
    0041  GETTABLE  R3 = R3[K15('Released')]
    0042  EQ        if R0 eq R3   -> -130001
    0043  JMP       (jump)   -> 45
    0044  RETURN    return R0..R-1
    0045  GETUPVAL  R2 = self
    0046  SELF      R3 = R2[K16('IsInGroup')] (self)
    0047  CALL      R2 = call(R2, 1 args, 1 rets)
    0048  TEST      if not R2 then   -> -131021
    0049  JMP       (jump)   -> 105
    0050  GETTABUP  R3 = self[K17('m_dbTable')]
    0051  SELF      R4 = R3[K18('Set')] (self)
    0052  GETTABUP  R5 = DBKey[K19('GroupIdKey')]
    0053  GETUPVAL  R6 = self
    0054  GETTABLE  R7 = R1[K20('group_id')]
    0055  CALL      R3 = call(R3, 0 args, 4 rets)
    0056  GETTABUP  R3 = _ENV[K21('GM')]
    0057  GETTABLE  R3 = R3[K22('HeartBeatManager')]
    0058  SELF      R4 = R3[K23('TrySchedule')] (self)
    0059  CALL      R3 = call(R3, 0 args, 1 rets)
    0060  GETTABUP  R3 = _ENV[K21('GM')]
    0061  GETTABLE  R3 = R3[K22('HeartBeatManager')]
    0062  SELF      R4 = R3[K24('HeartBeatOnNextFrame')] (self)
    0063  LOADBOOL  R5 = false
    0064  CALL      R3 = call(R3, 0 args, 2 rets)
    0065  GETTABUP  R3 = _ENV[K25('StringUtil')]
    0066  GETTABLE  R3 = R3[K26('IsNilOrEmpty')]
    0067  GETTABUP  R4 = self[K27('m_activityDefinition')]
    0068  GETTABLE  R4 = R4[K28('EnterGroupBIType')]
    0069  CALL      R3 = call(R3, 1 args, 1 rets)
    0070  TEST      if not R3 then   -> -130999
    0071  JMP       (jump)   -> 87
    0072  NEWTABLE  R3 = {} (0 items)
    0073  GETUPVAL  R4 = self
    0074  SELF      R5 = R4[K30('_GetGroupId')] (self)
    0075  CALL      R4 = call(R4, 1 args, 1 rets)
    0076  SETTABLE  R3[K29('groupId')] = R4
    0077  GETTABUP  R4 = self[K32('m_config')]
    0078  GETTABLE  R4 = R4[K33('GroupType')]
    0079  SETTABLE  R3[K31('type')] = R4
    0080  GETTABUP  R4 = _ENV[K21('GM')]
    0081  GETTABLE  R4 = R4[K34('BIManager')]
    0082  SELF      R5 = R4[K35('LogAction')] (self)
    0083  GETTABUP  R6 = self[K27('m_activityDefinition')]
    0084  GETTABLE  R6 = R6[K28('EnterGroupBIType')]
    0085  MOVE      R7 = R0
    0086  CALL      R4 = call(R4, 0 args, 3 rets)
    0087  GETTABUP  R3 = _ENV[K4('GameConfig')]
    0088  GETTABLE  R3 = R3[K5('IsTestMode')]
    0089  CALL      R3 = call(R3, 1 args, 0 rets)
    0090  TEST      if not R3 then   -> -130980
    0091  JMP       (jump)   -> 105
    0092  LOADK     R3 = K36 '[Rank]'
    0093  GETTABUP  R4 = self[K37('m_activityType')]
    0094  LOADK     R5 = K38 ' 进组成功'
    0095  CONCAT    R3 = concat(R3..R3)
    0096  GETTABUP  R4 = _ENV[K21('GM')]
    0097  GETTABLE  R4 = R4[K39('UIManager')]
    0098  SELF      R5 = R4[K40('ShowPrompt')] (self)
    0099  MOVE      R6 = R0
    0100  CALL      R4 = call(R4, 0 args, 2 rets)
    0101  GETTABUP  R4 = _ENV[K10('Log')]
    0102  GETTABLE  R4 = R4[K41('Info')]
    0103  MOVE      R5 = R0
    0104  CALL      R4 = call(R4, 0 args, 1 rets)
    0105  GETUPVAL  R3 = self
    0106  SELF      R4 = R3[K42('_LoadFullRankDatas')] (self)
    0107  GETTABLE  R5 = R1[K43('ranks')]
    0108  GETUPVAL  R6 = self
    0109  CALL      R3 = call(R3, 2 args, 3 rets)
    0110  EQ        if R1 eq K8(nil)   -> -129160
    0111  JMP       (jump)   -> 116
    0112  GETUPVAL  R5 = self
    0113  SELF      R6 = R5[K44('_SetUserRank')] (self)
    0114  MOVE      R7 = R0
    0115  CALL      R5 = call(R5, 0 args, 2 rets)
    0116  GETUPVAL  R5 = self
    0117  SELF      R6 = R5[K45('GetUserScore')] (self)
    0118  CALL      R5 = call(R5, 1 args, 1 rets)
    0119  EQ        if R0 eq R5   -> -128898
    0120  JMP       (jump)   -> 127
    0121  GETTABUP  R5 = self[K17('m_dbTable')]
    0122  SELF      R6 = R5[K18('Set')] (self)
    0123  GETTABUP  R7 = DBKey[K46('UserScoreUploadedKey')]
    0124  GETUPVAL  R8 = self
    0125  LOADK     R9 = K47 1
    0126  CALL      R5 = call(R5, 0 args, 4 rets)
    0127  GETTABUP  R5 = _ENV[K4('GameConfig')]
    0128  GETTABLE  R5 = R5[K5('IsTestMode')]
    0129  CALL      R5 = call(R5, 1 args, 0 rets)
    0130  TEST      if not R5 then   -> -130940
    0131  JMP       (jump)   -> 149
    0132  GETTABUP  R5 = self[K48('m_fullRankData')]
    0133  GETTABLE  R5 = R5[K49('IsFinal')]
    0134  TEST      if not R5 then   -> -130936
    0135  JMP       (jump)   -> 149
    0136  LOADK     R5 = K36 '[Rank]'
    0137  GETTABUP  R6 = self[K37('m_activityType')]
    0138  LOADK     R7 = K50 ' 获取结算奖励成功'
    0139  CONCAT    R5 = concat(R5..R5)
    0140  GETTABUP  R6 = _ENV[K21('GM')]
    0141  GETTABLE  R6 = R6[K39('UIManager')]
    0142  SELF      R7 = R6[K40('ShowPrompt')] (self)
    0143  MOVE      R8 = R0
    0144  CALL      R6 = call(R6, 0 args, 2 rets)
    0145  GETTABUP  R6 = _ENV[K10('Log')]
    0146  GETTABLE  R6 = R6[K41('Info')]
    0147  MOVE      R7 = R0
    0148  CALL      R6 = call(R6, 0 args, 1 rets)
    0149  TEST      if not R2 then   -> -130921
    0150  JMP       (jump)   -> 154
    0151  GETUPVAL  R5 = self
    0152  TEST      if not R5 then   -> -130918
    0153  JMP       (jump)   -> 157
    0154  GETUPVAL  R5 = self
    0155  TEST      if not R5 then   -> -130915
    0156  JMP       (jump)   -> 160
    0157  GETUPVAL  R5 = self
    0158  TEST      if not R5 then   -> -130912
    0159  JMP       (jump)   -> 165
    0160  GETTABUP  R5 = _ENV[K51('EventDispatcher')]
    0161  GETTABLE  R5 = R5[K52('DispatchEvent')]
    0162  GETTABUP  R6 = self[K27('m_activityDefinition')]
    0163  GETTABLE  R6 = R6[K53('FullRankChangedEvent')]
    0164  CALL      R5 = call(R5, 0 args, 1 rets)
    0165  GETUPVAL  R5 = self
    0166  LOADBOOL  R6 = true
    0167  CALL      R5 = call(R5, 0 args, 1 rets)
    0168  RETURN    return R0..R-1
; ---------- proto47 [_LoadFullRankDatas] ----------
  ; fn ?  line 587-629 np=3 va=0 ms=13 code=63 consts=27 upvals=1 protos=1
  ;   K[0]='m_fullRankData'
  ;   K[1]='Ranks'
  ;   K[2]='IsFinal'
  ;   K[3]='GM'
  ;   K[4]='UserModel'
  ;   K[5]='GetUserId'
  ;   K[6]='ipairs'
  ;   K[7]='UserId'
  ;   K[8]='userid'
  ;   K[9]='Rank'
  ;   K[10]='rank'
  ;   K[11]='Name'
  ;   K[12]='name'
  ;   K[13]='Icon'
  ;   K[14]='icon'
  ;   K[15]='Badge'
  ;   K[16]='badge'
  ;   K[17]='Frame'
  ;   K[18]='icon_frame'
  ;   K[19]='Score'
  ;   K[20]='score'
  ;   K[21]='table'
  ;   K[22]='insert'
  ;   K[23]='sort'
  ;   K[24]=1
  ;   K[25]='UserId'
  ;   K[26]='Score'
  ;   upvals: _ENV
  ;   locals: self(0-63), rankDatas(0-63), isFinal(0-63), userId(9-63), (for generator)(12-36), (for state)(12-36), (for control)(12-36), _(13-34), data(13-34), rankData(28-34), data(43-63), myRank(43-63), myScore(43-63), (for index)(48-59), (for limit)(48-59), (for step)(48-59), i(49-58)
  0000  NEWTABLE  R3 = {} (0 items)
  0001  NEWTABLE  R4 = {} (0 items)
  0002  SETTABLE  R3[K1('Ranks')] = R4
  0003  SETTABLE  R3[K2('IsFinal')] = R2
  0004  SETTABLE  R0[K0('m_fullRankData')] = R3
  0005  GETTABUP  R3 = _ENV[K3('GM')]
  0006  GETTABLE  R3 = R3[K4('UserModel')]
  0007  SELF      R4 = R3[K5('GetUserId')] (self)
  0008  CALL      R3 = call(R3, 1 args, 1 rets)
  0009  GETTABUP  R4 = _ENV[K6('ipairs')]
  0010  MOVE      R5 = R0
  0011  CALL      R4 = call(R4, 3 args, 1 rets)
  0012  JMP       (jump)   -> 34
  0013  NEWTABLE  R9 = {} (0 items)
  0014  GETTABLE  R10 = R8[K8('userid')]
  0015  SETTABLE  R9[K7('UserId')] = R10
  0016  GETTABLE  R10 = R8[K10('rank')]
  0017  SETTABLE  R9[K9('Rank')] = R10
  0018  GETTABLE  R10 = R8[K12('name')]
  0019  SETTABLE  R9[K11('Name')] = R10
  0020  GETTABLE  R10 = R8[K14('icon')]
  0021  SETTABLE  R9[K13('Icon')] = R10
  0022  GETTABLE  R10 = R8[K16('badge')]
  0023  SETTABLE  R9[K15('Badge')] = R10
  0024  GETTABLE  R10 = R8[K18('icon_frame')]
  0025  SETTABLE  R9[K17('Frame')] = R10
  0026  GETTABLE  R10 = R8[K20('score')]
  0027  SETTABLE  R9[K19('Score')] = R10
  0028  GETTABUP  R10 = _ENV[K21('table')]
  0029  GETTABLE  R10 = R10[K22('insert')]
  0030  GETTABLE  R11 = R0[K0('m_fullRankData')]
  0031  GETTABLE  R11 = R11[K1('Ranks')]
  0032  MOVE      R12 = R0
  0033  CALL      R10 = call(R10, 0 args, 2 rets)
  0034  TFORCALL  tforcall R4
  0035  TFORLOOP  tforloop R6(sBx=-23)   -> 13
  0036  GETTABUP  R4 = _ENV[K21('table')]
  0037  GETTABLE  R4 = R4[K23('sort')]
  0038  GETTABLE  R5 = R0[K0('m_fullRankData')]
  0039  GETTABLE  R5 = R5[K1('Ranks')]
  0040  CLOSURE   R6 = closure proto0
  0041  CALL      R4 = call(R4, 0 args, 2 rets)
  0042  LOADNIL   R4..R4 = nil
  0043  LOADK     R7 = K24 1
  0044  GETTABLE  R8 = R0[K0('m_fullRankData')]
  0045  GETTABLE  R8 = R8[K1('Ranks')]
  0046  LEN       R8 = len R0
  0047  LOADK     R9 = K24 1
  0048  FORPREP   forprep R7(sBx=9)   -> 58
  0049  GETTABLE  R11 = R0[K0('m_fullRankData')]
  0050  GETTABLE  R11 = R11[K1('Ranks')]
  0051  GETTABLE  R4 = R11[R10]
  0052  SETTABLE  R4[K9('Rank')] = R10
  0053  GETTABLE  R11 = R4[K25('UserId')]
  0054  EQ        if R0 eq R3   -> -125381
  0055  JMP       (jump)   -> 58
  0056  GETTABLE  R5 = R4[K9('Rank')]
  0057  GETTABLE  R6 = R4[K26('Score')]
  0058  FORLOOP   forloop R7(sBx=-10)   -> 49
  0059  MOVE      R7 = R0
  0060  MOVE      R8 = R0
  0061  RETURN    return R7..R6
  0062  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 607-616 np=2 va=0 ms=5 code=34 consts=3 upvals=1 protos=0
    ;   K[0]='Score'
    ;   K[1]='UserId'
    ;   K[2]=0
    ;   upvals: userId
    ;   locals: data1(0-34), data2(0-34), uid1(20-33), uid2(28-33)
    0000  GETTABLE  R2 = R0[K0('Score')]
    0001  GETTABLE  R3 = R1[K0('Score')]
    0002  EQ        if R1 eq R3   -> -130041
    0003  JMP       (jump)   -> 12
    0004  GETTABLE  R2 = R0[K0('Score')]
    0005  GETTABLE  R3 = R1[K0('Score')]
    0006  LT        if R1 lt R2   -> -129526
    0007  JMP       (jump)   -> 9
    0008  LOADBOOL  R2 = false
    0009  LOADBOOL  R2 = true
    0010  RETURN    return R2..R1
    0011  JMP       (jump)   -> 33
    0012  GETTABLE  R2 = R0[K1('UserId')]
    0013  GETUPVAL  R3 = userId
    0014  EQ        if R1 eq R3   -> -130029
    0015  JMP       (jump)   -> 19
    0016  GETTABLE  R2 = R0[K1('UserId')]
    0017  TEST      if not R2 then   -> -131052
    0018  JMP       (jump)   -> 20
    0019  LOADK     R2 = K2 0
    0020  GETTABLE  R3 = R1[K1('UserId')]
    0021  GETUPVAL  R4 = userId
    0022  EQ        if R1 eq R4   -> -129508
    0023  JMP       (jump)   -> 27
    0024  GETTABLE  R3 = R1[K1('UserId')]
    0025  TEST      if not R3 then   -> -131044
    0026  JMP       (jump)   -> 28
    0027  LOADK     R3 = K2 0
    0028  LT        if R1 lt R3   -> -130015
    0029  JMP       (jump)   -> 31
    0030  LOADBOOL  R4 = false
    0031  LOADBOOL  R4 = true
    0032  RETURN    return R4..R3
    0033  RETURN    return R0..R-1
; ---------- proto48 [GetDisplayedUserRank] ----------
  ; fn ?  line 632-634 np=1 va=0 ms=5 code=7 consts=3 upvals=2 protos=0
  ;   K[0]='m_dbTable'
  ;   K[1]='GetValue'
  ;   K[2]='DisplayedUserRankKey'
  ;   upvals: DBKey, DBColumnValue
  ;   locals: self(0-7)
  0000  GETTABLE  R1 = R0[K0('m_dbTable')]
  0001  SELF      R2 = R1[K1('GetValue')] (self)
  0002  GETTABUP  R3 = DBKey[K2('DisplayedUserRankKey')]
  0003  GETUPVAL  R4 = DBKey
  0004  TAILCALL  tailcall(R1, 0)
  0005  RETURN    return R1..R0
  0006  RETURN    return R0..R-1
; ---------- proto49 [SetDisplayedUserRank] ----------
  ; fn ?  line 636-638 np=1 va=0 ms=6 code=7 consts=4 upvals=2 protos=0
  ;   K[0]='m_dbTable'
  ;   K[1]='Set'
  ;   K[2]='DisplayedUserRankKey'
  ;   K[3]='m_userRank'
  ;   upvals: DBKey, DBColumnValue
  ;   locals: self(0-7)
  0000  GETTABLE  R1 = R0[K0('m_dbTable')]
  0001  SELF      R2 = R1[K1('Set')] (self)
  0002  GETTABUP  R3 = DBKey[K2('DisplayedUserRankKey')]
  0003  GETUPVAL  R4 = DBKey
  0004  GETTABLE  R5 = R0[K3('m_userRank')]
  0005  CALL      R1 = call(R1, 0 args, 4 rets)
  0006  RETURN    return R0..R-1
; ---------- proto50 [CheckOpen] ----------
  ; fn ?  line 640-651 np=2 va=0 ms=5 code=29 consts=6 upvals=1 protos=0
  ;   K[0]='GetState'
  ;   K[1]='ActivityState'
  ;   K[2]='Started'
  ;   K[3]='Ended'
  ;   K[4]='IsInGroup'
  ;   K[5]='IsFinalRewardsTaken'
  ;   upvals: _ENV
  ;   locals: self(0-29), bCheckResource(0-29)
  0000  SELF      R3 = R0[K0('GetState')] (self)
  0001  MOVE      R4 = R0
  0002  CALL      R2 = call(R2, 1 args, 2 rets)
  0003  GETTABUP  R3 = _ENV[K1('ActivityState')]
  0004  GETTABLE  R3 = R3[K2('Started')]
  0005  EQ        if R0 eq R3   -> -130038
  0006  JMP       (jump)   -> 9
  0007  LOADBOOL  R2 = true
  0008  RETURN    return R2..R1
  0009  SELF      R3 = R0[K0('GetState')] (self)
  0010  MOVE      R4 = R0
  0011  CALL      R2 = call(R2, 1 args, 2 rets)
  0012  GETTABUP  R3 = _ENV[K1('ActivityState')]
  0013  GETTABLE  R3 = R3[K3('Ended')]
  0014  EQ        if R0 eq R3   -> -130029
  0015  JMP       (jump)   -> 26
  0016  SELF      R3 = R0[K4('IsInGroup')] (self)
  0017  CALL      R2 = call(R2, 1 args, 1 rets)
  0018  TEST      if not R2 then   -> -131052
  0019  JMP       (jump)   -> 26
  0020  SELF      R3 = R0[K5('IsFinalRewardsTaken')] (self)
  0021  CALL      R2 = call(R2, 1 args, 1 rets)
  0022  TEST      if not R2 then   -> -131047
  0023  JMP       (jump)   -> 26
  0024  LOADBOOL  R2 = true
  0025  RETURN    return R2..R1
  0026  LOADBOOL  R2 = false
  0027  RETURN    return R2..R1
  0028  RETURN    return R0..R-1
