# Model_Activity_BaseActivityModel_153.luac
; fn @BaseActivityModel.lua  line 0-0 np=0 va=1 ms=4 code=235 consts=89 upvals=1 protos=73
;   K[0]='BaseActivityModel'
;   K[1]='eModelType'
;   K[2]='ActivityModelType'
;   K[3]='Other'
;   K[4]='bShouldSkipEndWindowOnLongAway'
;   K[5]=false
;   K[6]='__index'
;   K[7]='DB_VALUE_KEY'
;   K[8]='GapStartTime'
;   K[9]='stcTime'
;   K[10]='OrderFinishCount'
;   K[11]='odFiCt'
;   K[12]='ActivityOpened'
;   K[13]='act_ef'
;   K[14]='EndWindowSkippedByAway'
;   K[15]='ew_sba'
;   K[16]='Init'
;   K[17]='LateInit'
;   K[18]='Destroy'
;   K[19]='LoadServerConfig'
;   K[20]='_TryForceMuteDownloadResource'
;   K[21]='_CheckId'
;   K[22]='Update'
;   K[23]='UpdatePerSecond'
;   K[24]='OnCheckResourcesFinished'
;   K[25]='_LoadServerConfig'
;   K[26]='_LoadGeneralConfig'
;   K[27]='GetGeneralConfig'
;   K[28]='_LoadOtherServerConfig'
;   K[29]='_DropData'
;   K[30]='HasConfig'
;   K[31]='OnLongAwayReturn'
;   K[32]='CanSkipEndWindowOnLongAway'
;   K[33]='DoSkipEndWindowOnLongAway'
;   K[34]='SetEndWindowSkippedByAway'
;   K[35]='IsEndWindowSkippedByAway'
;   K[36]='_UpdateState'
;   K[37]='_CheckStateChanged'
;   K[38]='_CalculateState'
;   K[39]='_OnStateChanged'
;   K[40]='_IsStartConditionSatisfied'
;   K[41]='_IsExistConditionSatisfied'
;   K[42]='_SetGapStartTime'
;   K[43]='_GetGapStartTime'
;   K[44]='OnOrderFinished'
;   K[45]='_GetOrderFinishCount'
;   K[46]='_CanStartActivity'
;   K[47]='_GetConditionTime'
;   K[48]='_SetActivityOpened'
;   K[49]='HasActivityOpened'
;   K[50]='GetType'
;   K[51]='GetState'
;   K[52]='GetCalculatedState'
;   K[53]='IsStateReliable'
;   K[54]='IsActivityOpen'
;   K[55]='GetNextStateTime'
;   K[56]='GetEndTime'
;   K[57]='GetStartTime'
;   K[58]='GetLockDurationInSeconds'
;   K[59]='IsInLockTime'
;   K[60]='GetId'
;   K[61]='HasWindowOpenedOnce'
;   K[62]='SetWindowOpened'
;   K[63]='LogStarted'
;   K[64]='SetWindowReopen'
;   K[65]='LogActivity'
;   K[66]='IsSendingRankRequest'
;   K[67]='CanHeartBeat'
;   K[68]='FromHeartBeat'
;   K[69]='ToHeartBeat'
;   K[70]='NeedCheckResource'
;   K[71]='GetResourceLabels'
;   K[72]='GetActivityDefinition'
;   K[73]='RestoreIapRewards'
;   K[74]='AcquireActivityToken'
;   K[75]='GetActivityTokenNumber'
;   K[76]='CanAddScore'
;   K[77]='CanAddOrderReward'
;   K[78]='CanAddCookReward'
;   K[79]='GetOrderExtraReward'
;   K[80]='GetCookExtraReward'
;   K[81]='GetButtonTarget'
;   K[82]='_LoadDBTableValues'
;   K[83]='_DBTableGetValue'
;   K[84]='_DBTableGetNumber'
;   K[85]='_DBTableGetTable'
;   K[86]='_DBTableSet'
;   K[87]='_DBTableSetTable'
;   K[88]='_DBTableRemove'
;   upvals: _ENV
;   locals: DB_VALUE_KEY(10-235), DBKey(15-235)
0000  NEWTABLE  R0 = {} (0 items)
0001  GETTABUP  R1 = _ENV[K2('ActivityModelType')]
0002  GETTABLE  R1 = R1[K3('Other')]
0003  SETTABLE  R0[K1('eModelType')] = R1
0004  SETTABLE  R0[K4('bShouldSkipEndWindowOnLongAway')] = K5(false)
0005  SETTABUP  _ENV[K0('BaseActivityModel')] = R0
0006  GETTABUP  R0 = _ENV[K0('BaseActivityModel')]
0007  GETTABUP  R1 = _ENV[K0('BaseActivityModel')]
0008  SETTABLE  R0[K6('__index')] = R1
0009  GETTABUP  R0 = _ENV[K7('DB_VALUE_KEY')]
0010  NEWTABLE  R1 = {} (0 items)
0011  SETTABLE  R1[K8('GapStartTime')] = K9('stcTime')
0012  SETTABLE  R1[K10('OrderFinishCount')] = K11('odFiCt')
0013  SETTABLE  R1[K12('ActivityOpened')] = K13('act_ef')
0014  SETTABLE  R1[K14('EndWindowSkippedByAway')] = K15('ew_sba')
0015  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0016  CLOSURE   R3 = closure proto0
0017  SETTABLE  R2[K16('Init')] = R3
0018  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0019  CLOSURE   R3 = closure proto1
0020  SETTABLE  R2[K17('LateInit')] = R3
0021  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0022  CLOSURE   R3 = closure proto2
0023  SETTABLE  R2[K18('Destroy')] = R3
0024  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0025  CLOSURE   R3 = closure proto3
0026  SETTABLE  R2[K19('LoadServerConfig')] = R3
0027  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0028  CLOSURE   R3 = closure proto4
0029  SETTABLE  R2[K20('_TryForceMuteDownloadResource')] = R3
0030  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0031  CLOSURE   R3 = closure proto5
0032  SETTABLE  R2[K21('_CheckId')] = R3
0033  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0034  CLOSURE   R3 = closure proto6
0035  SETTABLE  R2[K22('Update')] = R3
0036  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0037  CLOSURE   R3 = closure proto7
0038  SETTABLE  R2[K23('UpdatePerSecond')] = R3
0039  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0040  CLOSURE   R3 = closure proto8
0041  SETTABLE  R2[K24('OnCheckResourcesFinished')] = R3
0042  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0043  CLOSURE   R3 = closure proto9
0044  SETTABLE  R2[K25('_LoadServerConfig')] = R3
0045  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0046  CLOSURE   R3 = closure proto10
0047  SETTABLE  R2[K26('_LoadGeneralConfig')] = R3
0048  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0049  CLOSURE   R3 = closure proto11
0050  SETTABLE  R2[K27('GetGeneralConfig')] = R3
0051  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0052  CLOSURE   R3 = closure proto12
0053  SETTABLE  R2[K28('_LoadOtherServerConfig')] = R3
0054  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0055  CLOSURE   R3 = closure proto13
0056  SETTABLE  R2[K29('_DropData')] = R3
0057  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0058  CLOSURE   R3 = closure proto14
0059  SETTABLE  R2[K30('HasConfig')] = R3
0060  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0061  CLOSURE   R3 = closure proto15
0062  SETTABLE  R2[K31('OnLongAwayReturn')] = R3
0063  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0064  CLOSURE   R3 = closure proto16
0065  SETTABLE  R2[K32('CanSkipEndWindowOnLongAway')] = R3
0066  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0067  CLOSURE   R3 = closure proto17
0068  SETTABLE  R2[K33('DoSkipEndWindowOnLongAway')] = R3
0069  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0070  CLOSURE   R3 = closure proto18
0071  SETTABLE  R2[K34('SetEndWindowSkippedByAway')] = R3
0072  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0073  CLOSURE   R3 = closure proto19
0074  SETTABLE  R2[K35('IsEndWindowSkippedByAway')] = R3
0075  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0076  CLOSURE   R3 = closure proto20
0077  SETTABLE  R2[K36('_UpdateState')] = R3
0078  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0079  CLOSURE   R3 = closure proto21
0080  SETTABLE  R2[K37('_CheckStateChanged')] = R3
0081  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0082  CLOSURE   R3 = closure proto22
0083  SETTABLE  R2[K38('_CalculateState')] = R3
0084  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0085  CLOSURE   R3 = closure proto23
0086  SETTABLE  R2[K39('_OnStateChanged')] = R3
0087  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0088  CLOSURE   R3 = closure proto24
0089  SETTABLE  R2[K40('_IsStartConditionSatisfied')] = R3
0090  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0091  CLOSURE   R3 = closure proto25
0092  SETTABLE  R2[K41('_IsExistConditionSatisfied')] = R3
0093  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0094  CLOSURE   R3 = closure proto26
0095  SETTABLE  R2[K42('_SetGapStartTime')] = R3
0096  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0097  CLOSURE   R3 = closure proto27
0098  SETTABLE  R2[K43('_GetGapStartTime')] = R3
0099  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0100  CLOSURE   R3 = closure proto28
0101  SETTABLE  R2[K44('OnOrderFinished')] = R3
0102  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0103  CLOSURE   R3 = closure proto29
0104  SETTABLE  R2[K45('_GetOrderFinishCount')] = R3
0105  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0106  CLOSURE   R3 = closure proto30
0107  SETTABLE  R2[K46('_CanStartActivity')] = R3
0108  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0109  CLOSURE   R3 = closure proto31
0110  SETTABLE  R2[K47('_GetConditionTime')] = R3
0111  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0112  CLOSURE   R3 = closure proto32
0113  SETTABLE  R2[K48('_SetActivityOpened')] = R3
0114  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0115  CLOSURE   R3 = closure proto33
0116  SETTABLE  R2[K49('HasActivityOpened')] = R3
0117  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0118  CLOSURE   R3 = closure proto34
0119  SETTABLE  R2[K50('GetType')] = R3
0120  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0121  CLOSURE   R3 = closure proto35
0122  SETTABLE  R2[K51('GetState')] = R3
0123  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0124  CLOSURE   R3 = closure proto36
0125  SETTABLE  R2[K52('GetCalculatedState')] = R3
0126  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0127  CLOSURE   R3 = closure proto37
0128  SETTABLE  R2[K53('IsStateReliable')] = R3
0129  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0130  CLOSURE   R3 = closure proto38
0131  SETTABLE  R2[K54('IsActivityOpen')] = R3
0132  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0133  CLOSURE   R3 = closure proto39
0134  SETTABLE  R2[K55('GetNextStateTime')] = R3
0135  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0136  CLOSURE   R3 = closure proto40
0137  SETTABLE  R2[K56('GetEndTime')] = R3
0138  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0139  CLOSURE   R3 = closure proto41
0140  SETTABLE  R2[K57('GetStartTime')] = R3
0141  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0142  CLOSURE   R3 = closure proto42
0143  SETTABLE  R2[K58('GetLockDurationInSeconds')] = R3
0144  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0145  CLOSURE   R3 = closure proto43
0146  SETTABLE  R2[K59('IsInLockTime')] = R3
0147  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0148  CLOSURE   R3 = closure proto44
0149  SETTABLE  R2[K60('GetId')] = R3
0150  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0151  CLOSURE   R3 = closure proto45
0152  SETTABLE  R2[K61('HasWindowOpenedOnce')] = R3
0153  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0154  CLOSURE   R3 = closure proto46
0155  SETTABLE  R2[K62('SetWindowOpened')] = R3
0156  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0157  CLOSURE   R3 = closure proto47
0158  SETTABLE  R2[K63('LogStarted')] = R3
0159  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0160  CLOSURE   R3 = closure proto48
0161  SETTABLE  R2[K64('SetWindowReopen')] = R3
0162  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0163  CLOSURE   R3 = closure proto49
0164  SETTABLE  R2[K65('LogActivity')] = R3
0165  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0166  CLOSURE   R3 = closure proto50
0167  SETTABLE  R2[K66('IsSendingRankRequest')] = R3
0168  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0169  CLOSURE   R3 = closure proto51
0170  SETTABLE  R2[K67('CanHeartBeat')] = R3
0171  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0172  CLOSURE   R3 = closure proto52
0173  SETTABLE  R2[K68('FromHeartBeat')] = R3
0174  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0175  CLOSURE   R3 = closure proto53
0176  SETTABLE  R2[K69('ToHeartBeat')] = R3
0177  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0178  CLOSURE   R3 = closure proto54
0179  SETTABLE  R2[K70('NeedCheckResource')] = R3
0180  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0181  CLOSURE   R3 = closure proto55
0182  SETTABLE  R2[K71('GetResourceLabels')] = R3
0183  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0184  CLOSURE   R3 = closure proto56
0185  SETTABLE  R2[K72('GetActivityDefinition')] = R3
0186  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0187  CLOSURE   R3 = closure proto57
0188  SETTABLE  R2[K73('RestoreIapRewards')] = R3
0189  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0190  CLOSURE   R3 = closure proto58
0191  SETTABLE  R2[K74('AcquireActivityToken')] = R3
0192  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0193  CLOSURE   R3 = closure proto59
0194  SETTABLE  R2[K75('GetActivityTokenNumber')] = R3
0195  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0196  CLOSURE   R3 = closure proto60
0197  SETTABLE  R2[K76('CanAddScore')] = R3
0198  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0199  CLOSURE   R3 = closure proto61
0200  SETTABLE  R2[K77('CanAddOrderReward')] = R3
0201  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0202  CLOSURE   R3 = closure proto62
0203  SETTABLE  R2[K78('CanAddCookReward')] = R3
0204  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0205  CLOSURE   R3 = closure proto63
0206  SETTABLE  R2[K79('GetOrderExtraReward')] = R3
0207  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0208  CLOSURE   R3 = closure proto64
0209  SETTABLE  R2[K80('GetCookExtraReward')] = R3
0210  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0211  CLOSURE   R3 = closure proto65
0212  SETTABLE  R2[K81('GetButtonTarget')] = R3
0213  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0214  CLOSURE   R3 = closure proto66
0215  SETTABLE  R2[K82('_LoadDBTableValues')] = R3
0216  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0217  CLOSURE   R3 = closure proto67
0218  SETTABLE  R2[K83('_DBTableGetValue')] = R3
0219  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0220  CLOSURE   R3 = closure proto68
0221  SETTABLE  R2[K84('_DBTableGetNumber')] = R3
0222  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0223  CLOSURE   R3 = closure proto69
0224  SETTABLE  R2[K85('_DBTableGetTable')] = R3
0225  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0226  CLOSURE   R3 = closure proto70
0227  SETTABLE  R2[K86('_DBTableSet')] = R3
0228  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0229  CLOSURE   R3 = closure proto71
0230  SETTABLE  R2[K87('_DBTableSetTable')] = R3
0231  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
0232  CLOSURE   R3 = closure proto72
0233  SETTABLE  R2[K88('_DBTableRemove')] = R3
0234  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 18-27 np=3 va=0 ms=5 code=14 consts=11 upvals=1 protos=0
  ;   K[0]='event'
  ;   K[1]='PairEvent'
  ;   K[2]='Create'
  ;   K[3]='m_type'
  ;   K[4]='m_dbTable'
  ;   K[5]='_LoadDBTableValues'
  ;   K[6]='m_lockHours'
  ;   K[7]=0
  ;   K[8]='m_bForceStateReleaseWhenResourceNotReady'
  ;   K[9]=false
  ;   K[10]='LoadServerConfig'
  ;   upvals: _ENV
  ;   locals: self(0-14), type(0-14), virtualDBTable(0-14)
  0000  GETTABUP  R3 = _ENV[K1('PairEvent')]
  0001  GETTABLE  R3 = R3[K2('Create')]
  0002  MOVE      R4 = R0
  0003  CALL      R3 = call(R3, 1 args, 1 rets)
  0004  SETTABLE  R0[K0('event')] = R3
  0005  SETTABLE  R0[K3('m_type')] = R1
  0006  SETTABLE  R0[K4('m_dbTable')] = R2
  0007  SELF      R4 = R0[K5('_LoadDBTableValues')] (self)
  0008  CALL      R3 = call(R3, 0 args, 1 rets)
  0009  SETTABLE  R0[K6('m_lockHours')] = K7(0)
  0010  SETTABLE  R0[K8('m_bForceStateReleaseWhenResourceNotReady')] = K9(false)
  0011  SELF      R4 = R0[K10('LoadServerConfig')] (self)
  0012  CALL      R3 = call(R3, 0 args, 1 rets)
  0013  RETURN    return R0..R-1
; ---------- proto1 [LateInit] ----------
  ; fn ?  line 29-30 np=1 va=0 ms=2 code=1 consts=0 upvals=0 protos=0
  ;   locals: self(0-1)
  0000  RETURN    return R0..R-1
; ---------- proto2 [Destroy] ----------
  ; fn ?  line 32-34 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
; ---------- proto3 [LoadServerConfig] ----------
  ; fn ?  line 36-41 np=1 va=0 ms=3 code=9 consts=4 upvals=0 protos=0
  ;   K[0]='_LoadServerConfig'
  ;   K[1]='_CheckId'
  ;   K[2]='_UpdateState'
  ;   K[3]='_TryForceMuteDownloadResource'
  ;   locals: self(0-9)
  0000  SELF      R2 = R0[K0('_LoadServerConfig')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  SELF      R2 = R0[K1('_CheckId')] (self)
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  SELF      R2 = R0[K2('_UpdateState')] (self)
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  SELF      R2 = R0[K3('_TryForceMuteDownloadResource')] (self)
  0007  CALL      R1 = call(R1, 0 args, 1 rets)
  0008  RETURN    return R0..R-1
; ---------- proto4 [_TryForceMuteDownloadResource] ----------
  ; fn ?  line 43-47 np=1 va=0 ms=5 code=15 consts=6 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='isSilentLogin'
  ;   K[2]='NeedCheckResource'
  ;   K[3]='DownloadManager'
  ;   K[4]='TryForceMuteDownloadLabels'
  ;   K[5]='GetResourceLabels'
  ;   upvals: _ENV
  ;   locals: self(0-15)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('isSilentLogin')]
  0002  TEST      if not R1 then   -> -131068
  0003  JMP       (jump)   -> 14
  0004  SELF      R2 = R0[K2('NeedCheckResource')] (self)
  0005  CALL      R1 = call(R1, 1 args, 1 rets)
  0006  TEST      if not R1 then   -> -131064
  0007  JMP       (jump)   -> 14
  0008  GETTABUP  R1 = _ENV[K0('GM')]
  0009  GETTABLE  R1 = R1[K3('DownloadManager')]
  0010  SELF      R2 = R1[K4('TryForceMuteDownloadLabels')] (self)
  0011  SELF      R4 = R0[K5('GetResourceLabels')] (self)
  0012  CALL      R3 = call(R3, -1 args, 1 rets)
  0013  CALL      R1 = call(R1, 0 args, -1 rets)
  0014  RETURN    return R0..R-1
; ---------- proto5 [_CheckId] ----------
  ; fn ?  line 49-68 np=1 va=0 ms=7 code=37 consts=9 upvals=1 protos=0
  ;   K[0]='GetId'
  ;   K[1]=nil
  ;   K[2]='m_config'
  ;   K[3]='m_dbTable'
  ;   K[4]='Set'
  ;   K[5]='id'
  ;   K[6]='_DropData'
  ;   K[7]='m_state'
  ;   K[8]='m_nextStateTime'
  ;   upvals: DB_VALUE_KEY
  ;   locals: self(0-37), dataId(2-37)
  0000  SELF      R2 = R0[K0('GetId')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  EQ        if R0 eq K1(nil)   -> -130299
  0003  JMP       (jump)   -> 15
  0004  GETTABLE  R2 = R0[K2('m_config')]
  0005  EQ        if R1 eq K1(nil)   -> -129784
  0006  JMP       (jump)   -> 36
  0007  GETTABLE  R2 = R0[K3('m_dbTable')]
  0008  SELF      R3 = R2[K4('Set')] (self)
  0009  LOADK     R4 = K5 'id'
  0010  GETUPVAL  R5 = DB_VALUE_KEY
  0011  GETTABLE  R6 = R0[K2('m_config')]
  0012  GETTABLE  R6 = R6[K5('id')]
  0013  CALL      R2 = call(R2, 0 args, 4 rets)
  0014  JMP       (jump)   -> 36
  0015  GETTABLE  R2 = R0[K2('m_config')]
  0016  EQ        if R1 eq K1(nil)   -> -129773
  0017  JMP       (jump)   -> 22
  0018  GETTABLE  R2 = R0[K2('m_config')]
  0019  GETTABLE  R2 = R2[K5('id')]
  0020  EQ        if R1 eq R1   -> -130025
  0021  JMP       (jump)   -> 36
  0022  SELF      R3 = R0[K6('_DropData')] (self)
  0023  CALL      R2 = call(R2, 0 args, 1 rets)
  0024  SETTABLE  R0[K7('m_state')] = K1(nil)
  0025  SETTABLE  R0[K8('m_nextStateTime')] = K1(nil)
  0026  GETTABLE  R2 = R0[K2('m_config')]
  0027  EQ        if R1 eq K1(nil)   -> -129762
  0028  JMP       (jump)   -> 36
  0029  GETTABLE  R2 = R0[K3('m_dbTable')]
  0030  SELF      R3 = R2[K4('Set')] (self)
  0031  LOADK     R4 = K5 'id'
  0032  GETUPVAL  R5 = DB_VALUE_KEY
  0033  GETTABLE  R6 = R0[K2('m_config')]
  0034  GETTABLE  R6 = R6[K5('id')]
  0035  CALL      R2 = call(R2, 0 args, 4 rets)
  0036  RETURN    return R0..R-1
; ---------- proto6 [Update] ----------
  ; fn ?  line 70-71 np=1 va=0 ms=2 code=1 consts=0 upvals=0 protos=0
  ;   locals: self(0-1)
  0000  RETURN    return R0..R-1
; ---------- proto7 [UpdatePerSecond] ----------
  ; fn ?  line 73-77 np=1 va=0 ms=3 code=8 consts=4 upvals=1 protos=0
  ;   K[0]='m_state'
  ;   K[1]='ActivityState'
  ;   K[2]='Released'
  ;   K[3]='_UpdateState'
  ;   upvals: _ENV
  ;   locals: self(0-8)
  0000  GETTABLE  R1 = R0[K0('m_state')]
  0001  GETTABUP  R2 = _ENV[K1('ActivityState')]
  0002  GETTABLE  R2 = R2[K2('Released')]
  0003  EQ        if R1 eq R2   -> -130553
  0004  JMP       (jump)   -> 7
  0005  SELF      R2 = R0[K3('_UpdateState')] (self)
  0006  CALL      R1 = call(R1, 0 args, 1 rets)
  0007  RETURN    return R0..R-1
; ---------- proto8 [OnCheckResourcesFinished] ----------
  ; fn ?  line 79-80 np=1 va=0 ms=2 code=1 consts=0 upvals=0 protos=0
  ;   locals: self(0-1)
  0000  RETURN    return R0..R-1
; ---------- proto9 [_LoadServerConfig] ----------
  ; fn ?  line 82-104 np=1 va=0 ms=6 code=43 consts=15 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='ConfigModel'
  ;   K[2]='GetServerConfigMD5'
  ;   K[3]='m_type'
  ;   K[4]='m_md5'
  ;   K[5]='GetServerConfig'
  ;   K[6]=nil
  ;   K[7]='m_config'
  ;   K[8]='id'
  ;   K[9]='sTime'
  ;   K[10]='eTime'
  ;   K[11]='rTime'
  ;   K[12]='extraCondition'
  ;   K[13]='_LoadGeneralConfig'
  ;   K[14]='_LoadOtherServerConfig'
  ;   upvals: _ENV
  ;   locals: self(0-43), md5(5-43), config(15-43)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('ConfigModel')]
  0002  SELF      R2 = R1[K2('GetServerConfigMD5')] (self)
  0003  GETTABLE  R3 = R0[K3('m_type')]
  0004  CALL      R1 = call(R1, 1 args, 2 rets)
  0005  GETTABLE  R2 = R0[K4('m_md5')]
  0006  EQ        if R0 eq R1   -> -130039
  0007  JMP       (jump)   -> 9
  0008  RETURN    return R0..R-1
  0009  SETTABLE  R0[K4('m_md5')] = R1
  0010  GETTABUP  R2 = _ENV[K0('GM')]
  0011  GETTABLE  R2 = R2[K1('ConfigModel')]
  0012  SELF      R3 = R2[K5('GetServerConfig')] (self)
  0013  GETTABLE  R4 = R0[K3('m_type')]
  0014  CALL      R2 = call(R2, 1 args, 2 rets)
  0015  EQ        if R0 eq K6(nil)   -> -129769
  0016  JMP       (jump)   -> 19
  0017  SETTABLE  R0[K7('m_config')] = K6(nil)
  0018  RETURN    return R0..R-1
  0019  NEWTABLE  R3 = {} (0 items)
  0020  SETTABLE  R0[K7('m_config')] = R3
  0021  GETTABLE  R3 = R0[K7('m_config')]
  0022  GETTABLE  R4 = R2[K8('id')]
  0023  SETTABLE  R3[K8('id')] = R4
  0024  GETTABLE  R3 = R0[K7('m_config')]
  0025  GETTABLE  R4 = R2[K9('sTime')]
  0026  SETTABLE  R3[K9('sTime')] = R4
  0027  GETTABLE  R3 = R0[K7('m_config')]
  0028  GETTABLE  R4 = R2[K10('eTime')]
  0029  SETTABLE  R3[K10('eTime')] = R4
  0030  GETTABLE  R3 = R0[K7('m_config')]
  0031  GETTABLE  R4 = R2[K11('rTime')]
  0032  SETTABLE  R3[K11('rTime')] = R4
  0033  GETTABLE  R3 = R0[K7('m_config')]
  0034  GETTABLE  R4 = R2[K12('extraCondition')]
  0035  SETTABLE  R3[K12('extraCondition')] = R4
  0036  SELF      R4 = R0[K13('_LoadGeneralConfig')] (self)
  0037  MOVE      R5 = R0
  0038  CALL      R3 = call(R3, 0 args, 2 rets)
  0039  SELF      R4 = R0[K14('_LoadOtherServerConfig')] (self)
  0040  MOVE      R5 = R0
  0041  CALL      R3 = call(R3, 0 args, 2 rets)
  0042  RETURN    return R0..R-1
; ---------- proto10 [_LoadGeneralConfig] ----------
  ; fn ?  line 106-119 np=2 va=0 ms=15 code=45 consts=17 upvals=1 protos=0
  ;   K[0]='m_config'
  ;   K[1]='generalActivityConf'
  ;   K[2]='ipairs'
  ;   K[3]='Log'
  ;   K[4]='Assert'
  ;   K[5]='confType'
  ;   K[6]=nil
  ;   K[7]='ActivityId:'
  ;   K[8]='id'
  ;   K[9]=', Same GeneralConf:'
  ;   K[10]='tostring'
  ;   K[11]='m_lockHours'
  ;   K[12]='GetGeneralConfig'
  ;   K[13]='lockHours'
  ;   K[14]='EConfigParamType'
  ;   K[15]='Int'
  ;   K[16]=0
  ;   upvals: _ENV
  ;   locals: self(0-45), config(0-45), arrGeneralActivityConf(4-45), (for generator)(9-35), (for state)(9-35), (for control)(9-35), _(10-33), conf(10-33)
  0000  GETTABLE  R2 = R0[K0('m_config')]
  0001  NEWTABLE  R3 = {} (0 items)
  0002  SETTABLE  R2[K1('generalActivityConf')] = R3
  0003  GETTABLE  R2 = R1[K1('generalActivityConf')]
  0004  TEST      if not R2 then   -> -131066
  0005  JMP       (jump)   -> 35
  0006  GETTABUP  R3 = _ENV[K2('ipairs')]
  0007  MOVE      R4 = R0
  0008  CALL      R3 = call(R3, 3 args, 1 rets)
  0009  JMP       (jump)   -> 33
  0010  GETTABUP  R8 = _ENV[K3('Log')]
  0011  GETTABLE  R8 = R8[K4('Assert')]
  0012  GETTABLE  R9 = R0[K0('m_config')]
  0013  GETTABLE  R9 = R9[K1('generalActivityConf')]
  0014  GETTABLE  R10 = R7[K5('confType')]
  0015  GETTABLE  R9 = R9[R10]
  0016  EQ        if R1 eq K6(nil)   -> -126184
  0017  JMP       (jump)   -> 19
  0018  LOADBOOL  R9 = false
  0019  LOADBOOL  R9 = true
  0020  LOADK     R10 = K7 'ActivityId:'
  0021  GETTABLE  R11 = R0[K0('m_config')]
  0022  GETTABLE  R11 = R11[K8('id')]
  0023  LOADK     R12 = K9 ', Same GeneralConf:'
  0024  GETTABUP  R13 = _ENV[K10('tostring')]
  0025  GETTABLE  R14 = R7[K5('confType')]
  0026  CALL      R13 = call(R13, 1 args, 1 rets)
  0027  CONCAT    R10 = concat(R10..R10)
  0028  CALL      R8 = call(R8, 0 args, 2 rets)
  0029  GETTABLE  R8 = R0[K0('m_config')]
  0030  GETTABLE  R8 = R8[K1('generalActivityConf')]
  0031  GETTABLE  R9 = R7[K5('confType')]
  0032  SETTABLE  R8[R9] = R7
  0033  TFORCALL  tforcall R3
  0034  TFORLOOP  tforloop R5(sBx=-25)   -> 10
  0035  SELF      R4 = R0[K12('GetGeneralConfig')] (self)
  0036  LOADK     R5 = K13 'lockHours'
  0037  GETTABUP  R6 = _ENV[K14('EConfigParamType')]
  0038  GETTABLE  R6 = R6[K15('Int')]
  0039  CALL      R3 = call(R3, 1 args, 3 rets)
  0040  TEST      if not R3 then   -> -131029
  0041  JMP       (jump)   -> 43
  0042  LOADK     R3 = K16 0
  0043  SETTABLE  R0[K11('m_lockHours')] = R3
  0044  RETURN    return R0..R-1
; ---------- proto11 [GetGeneralConfig] ----------
  ; fn ?  line 124-130 np=3 va=0 ms=6 code=26 consts=6 upvals=1 protos=0
  ;   K[0]='Log'
  ;   K[1]='Assert'
  ;   K[2]=nil
  ;   K[3]='BaseActivityModel:GetGeneralConfig() eConfigParam is nil'
  ;   K[4]='m_config'
  ;   K[5]='generalActivityConf'
  ;   upvals: _ENV
  ;   locals: self(0-26), configType(0-26), eConfigParam(0-26)
  0000  GETTABUP  R3 = _ENV[K0('Log')]
  0001  GETTABLE  R3 = R3[K1('Assert')]
  0002  EQ        if R0 eq K2(nil)   -> -129786
  0003  JMP       (jump)   -> 5
  0004  LOADBOOL  R4 = false
  0005  LOADBOOL  R4 = true
  0006  LOADK     R5 = K3 'BaseActivityModel:GetGeneralConfig() eConfigParam is nil'
  0007  CALL      R3 = call(R3, 0 args, 2 rets)
  0008  GETTABLE  R3 = R0[K4('m_config')]
  0009  TEST      if not R3 then   -> -131061
  0010  JMP       (jump)   -> 24
  0011  GETTABLE  R3 = R0[K4('m_config')]
  0012  GETTABLE  R3 = R3[K5('generalActivityConf')]
  0013  TEST      if not R3 then   -> -131057
  0014  JMP       (jump)   -> 24
  0015  GETTABLE  R3 = R0[K4('m_config')]
  0016  GETTABLE  R3 = R3[K5('generalActivityConf')]
  0017  GETTABLE  R3 = R3[R1]
  0018  TEST      if not R3 then   -> -131052
  0019  JMP       (jump)   -> 24
  0020  GETTABLE  R3 = R0[K4('m_config')]
  0021  GETTABLE  R3 = R3[K5('generalActivityConf')]
  0022  GETTABLE  R3 = R3[R1]
  0023  GETTABLE  R3 = R3[R2]
  0024  RETURN    return R3..R2
  0025  RETURN    return R0..R-1
; ---------- proto12 [_LoadOtherServerConfig] ----------
  ; fn ?  line 133-135 np=2 va=0 ms=5 code=6 consts=3 upvals=1 protos=0
  ;   K[0]='Log'
  ;   K[1]='Assert'
  ;   K[2]='_LoadOtherServerConfig()是抽象接口'
  ;   upvals: _ENV
  ;   locals: self(0-6), config(0-6)
  0000  GETTABUP  R2 = _ENV[K0('Log')]
  0001  GETTABLE  R2 = R2[K1('Assert')]
  0002  LOADBOOL  R3 = false
  0003  LOADK     R4 = K2 '_LoadOtherServerConfig()是抽象接口'
  0004  CALL      R2 = call(R2, 0 args, 2 rets)
  0005  RETURN    return R0..R-1
; ---------- proto13 [_DropData] ----------
  ; fn ?  line 138-140 np=1 va=0 ms=3 code=4 consts=2 upvals=0 protos=0
  ;   K[0]='m_dbTable'
  ;   K[1]='Drop'
  ;   locals: self(0-4)
  0000  GETTABLE  R1 = R0[K0('m_dbTable')]
  0001  SELF      R2 = R1[K1('Drop')] (self)
  0002  CALL      R1 = call(R1, 0 args, 1 rets)
  0003  RETURN    return R0..R-1
; ---------- proto14 [HasConfig] ----------
  ; fn ?  line 143-145 np=1 va=0 ms=2 code=7 consts=2 upvals=0 protos=0
  ;   K[0]='m_config'
  ;   K[1]=nil
  ;   locals: self(0-7)
  0000  GETTABLE  R1 = R0[K0('m_config')]
  0001  EQ        if R0 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 4
  0003  LOADBOOL  R1 = false
  0004  LOADBOOL  R1 = true
  0005  RETURN    return R1..R0
  0006  RETURN    return R0..R-1
; ---------- proto15 [OnLongAwayReturn] ----------
  ; fn ?  line 147-154 np=1 va=0 ms=3 code=14 consts=4 upvals=0 protos=0
  ;   K[0]='bShouldSkipEndWindowOnLongAway'
  ;   K[1]='CanSkipEndWindowOnLongAway'
  ;   K[2]='IsEndWindowSkippedByAway'
  ;   K[3]='DoSkipEndWindowOnLongAway'
  ;   locals: self(0-14)
  0000  GETTABLE  R1 = R0[K0('bShouldSkipEndWindowOnLongAway')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 13
  0003  SELF      R2 = R0[K1('CanSkipEndWindowOnLongAway')] (self)
  0004  CALL      R1 = call(R1, 1 args, 1 rets)
  0005  TEST      if not R1 then   -> -131065
  0006  JMP       (jump)   -> 13
  0007  SELF      R2 = R0[K2('IsEndWindowSkippedByAway')] (self)
  0008  CALL      R1 = call(R1, 1 args, 1 rets)
  0009  TEST      if not R1 then   -> -131060
  0010  JMP       (jump)   -> 13
  0011  SELF      R2 = R0[K3('DoSkipEndWindowOnLongAway')] (self)
  0012  CALL      R1 = call(R1, 0 args, 1 rets)
  0013  RETURN    return R0..R-1
; ---------- proto16 [CanSkipEndWindowOnLongAway] ----------
  ; fn ?  line 157-166 np=1 va=0 ms=5 code=23 consts=5 upvals=1 protos=0
  ;   K[0]='GetCalculatedState'
  ;   K[1]='ActivityState'
  ;   K[2]='Ended'
  ;   K[3]='HasWindowOpenedOnce'
  ;   K[4]='Started'
  ;   upvals: _ENV
  ;   locals: self(0-23), state(2-23)
  0000  SELF      R2 = R0[K0('GetCalculatedState')] (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)   -> 20
  0006  SELF      R3 = R0[K3('HasWindowOpenedOnce')] (self)
  0007  GETTABUP  R4 = _ENV[K1('ActivityState')]
  0008  GETTABLE  R4 = R4[K4('Started')]
  0009  CALL      R2 = call(R2, 1 args, 2 rets)
  0010  TEST      if not R2 then   -> -131060
  0011  JMP       (jump)   -> 20
  0012  SELF      R3 = R0[K3('HasWindowOpenedOnce')] (self)
  0013  GETTABUP  R4 = _ENV[K1('ActivityState')]
  0014  GETTABLE  R4 = R4[K2('Ended')]
  0015  CALL      R2 = call(R2, 1 args, 2 rets)
  0016  TEST      if not R2 then   -> -131053
  0017  JMP       (jump)   -> 20
  0018  LOADBOOL  R2 = true
  0019  RETURN    return R2..R1
  0020  LOADBOOL  R2 = false
  0021  RETURN    return R2..R1
  0022  RETURN    return R0..R-1
; ---------- proto17 [DoSkipEndWindowOnLongAway] ----------
  ; fn ?  line 169-173 np=1 va=0 ms=5 code=12 consts=6 upvals=1 protos=0
  ;   K[0]='SetEndWindowSkippedByAway'
  ;   K[1]='Log'
  ;   K[2]='Info'
  ;   K[3]='[跳过结束界面] 生效活动：'
  ;   K[4]='tostring'
  ;   K[5]='m_type'
  ;   upvals: _ENV
  ;   locals: self(0-12)
  0000  SELF      R2 = R0[K0('SetEndWindowSkippedByAway')] (self)
  0001  LOADBOOL  R3 = true
  0002  CALL      R1 = call(R1, 0 args, 2 rets)
  0003  GETTABUP  R1 = _ENV[K1('Log')]
  0004  GETTABLE  R1 = R1[K2('Info')]
  0005  LOADK     R2 = K3 '[跳过结束界面] 生效活动：'
  0006  GETTABUP  R3 = _ENV[K4('tostring')]
  0007  GETTABLE  R4 = R0[K5('m_type')]
  0008  CALL      R3 = call(R3, 1 args, 1 rets)
  0009  CONCAT    R2 = concat(R2..R2)
  0010  CALL      R1 = call(R1, 0 args, 1 rets)
  0011  RETURN    return R0..R-1
; ---------- proto18 [SetEndWindowSkippedByAway] ----------
  ; fn ?  line 176-178 np=2 va=0 ms=7 code=12 consts=5 upvals=2 protos=0
  ;   K[0]='m_dbTable'
  ;   K[1]='Set'
  ;   K[2]='EndWindowSkippedByAway'
  ;   K[3]=1
  ;   K[4]=0
  ;   upvals: DBKey, DB_VALUE_KEY
  ;   locals: self(0-12), bSkipped(0-12)
  0000  GETTABLE  R2 = R0[K0('m_dbTable')]
  0001  SELF      R3 = R2[K1('Set')] (self)
  0002  GETTABUP  R4 = DBKey[K2('EndWindowSkippedByAway')]
  0003  GETUPVAL  R5 = DBKey
  0004  TEST      if not R1 then   -> -131066
  0005  JMP       (jump)   -> 9
  0006  LOADK     R6 = K3 1
  0007  TEST      if not R6 then   -> -131062
  0008  JMP       (jump)   -> 10
  0009  LOADK     R6 = K4 0
  0010  CALL      R2 = call(R2, 0 args, 4 rets)
  0011  RETURN    return R0..R-1
; ---------- proto19 [IsEndWindowSkippedByAway] ----------
  ; fn ?  line 180-182 np=1 va=0 ms=5 code=11 consts=4 upvals=2 protos=0
  ;   K[0]='m_dbTable'
  ;   K[1]='GetInNumber'
  ;   K[2]='EndWindowSkippedByAway'
  ;   K[3]=1
  ;   upvals: DBKey, DB_VALUE_KEY
  ;   locals: self(0-11)
  0000  GETTABLE  R1 = R0[K0('m_dbTable')]
  0001  SELF      R2 = R1[K1('GetInNumber')] (self)
  0002  GETTABUP  R3 = DBKey[K2('EndWindowSkippedByAway')]
  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
; ---------- proto20 [_UpdateState] ----------
  ; fn ?  line 184-248 np=1 va=0 ms=19 code=154 consts=43 upvals=1 protos=0
  ;   K[0]='_CalculateState'
  ;   K[1]='m_state'
  ;   K[2]='m_nextStateTime'
  ;   K[3]='m_bNeedCheckResource'
  ;   K[4]='ActivityState'
  ;   K[5]='Released'
  ;   K[6]='NeedCheckResource'
  ;   K[7]='ipairs'
  ;   K[8]='GetResourceLabels'
  ;   K[9]='GM'
  ;   K[10]='DownloadManager'
  ;   K[11]='IsLabelDownloaded'
  ;   K[12]='isSilentLogin'
  ;   K[13]='m_needRestart'
  ;   K[14]='SceneManager'
  ;   K[15]='GetGameMode'
  ;   K[16]='EGameMode'
  ;   K[17]='Loading'
  ;   K[18]='IsAutoRun'
  ;   K[19]='Log'
  ;   K[20]='Info'
  ;   K[21]='[ResourceDownloadWindow] activity:'
  ;   K[22]='m_type'
  ;   K[23]='; label:'
  ;   K[24]='; bDownload:'
  ;   K[25]='true'
  ;   K[26]='false'
  ;   K[27]='[ResourceDownloadWindow] GM.CheckResourcesStageFinished: '
  ;   K[28]='CheckResourcesStageFinished'
  ;   K[29]='UIManager'
  ;   K[30]='IsViewExisting'
  ;   K[31]='UIPrefabConfigName'
  ;   K[32]='ResourceDownloadWindow'
  ;   K[33]='OpenView'
  ;   K[34]=true
  ;   K[35]='m_bForceStateReleaseWhenResourceNotReady'
  ;   K[36]='_CheckStateChanged'
  ;   K[37]='_OnStateChanged'
  ;   K[38]='Started'
  ;   K[39]='ActivityManager'
  ;   K[40]='OnActivityStarted'
  ;   K[41]='Ended'
  ;   K[42]='OnActivityFinished'
  ;   upvals: _ENV
  ;   locals: self(0-154), state(2-154), nextStateTime(2-154), formerState(3-154), bForceStateReleaseWhenResourceNotReady(16-154), (for generator)(24-36), (for state)(24-36), (for control)(24-36), _(25-34), label(25-34), (for generator)(61-84), (for state)(61-84), (for control)(61-84), _(62-82), label(62-82), stateChanged(119-154)
  0000  SELF      R2 = R0[K0('_CalculateState')] (self)
  0001  CALL      R1 = call(R1, 2 args, 1 rets)
  0002  GETTABLE  R3 = R0[K1('m_state')]
  0003  SETTABLE  R0[K1('m_state')] = R1
  0004  SETTABLE  R0[K2('m_nextStateTime')] = R2
  0005  SELF      R5 = R0[K0('_CalculateState')] (self)
  0006  LOADBOOL  R6 = true
  0007  CALL      R4 = call(R4, 1 args, 2 rets)
  0008  GETTABUP  R5 = _ENV[K4('ActivityState')]
  0009  GETTABLE  R5 = R5[K5('Released')]
  0010  EQ        if R0 eq R5   -> -129007
  0011  JMP       (jump)   -> 13
  0012  LOADBOOL  R4 = false
  0013  LOADBOOL  R4 = true
  0014  SETTABLE  R0[K3('m_bNeedCheckResource')] = R4
  0015  LOADBOOL  R4 = false
  0016  SELF      R6 = R0[K6('NeedCheckResource')] (self)
  0017  CALL      R5 = call(R5, 1 args, 1 rets)
  0018  TEST      if not R5 then   -> -131052
  0019  JMP       (jump)   -> 112
  0020  GETTABUP  R5 = _ENV[K7('ipairs')]
  0021  SELF      R7 = R0[K8('GetResourceLabels')] (self)
  0022  CALL      R6 = call(R6, -1 args, 1 rets)
  0023  CALL      R5 = call(R5, 3 args, -1 rets)
  0024  JMP       (jump)   -> 34
  0025  GETTABUP  R10 = _ENV[K9('GM')]
  0026  GETTABLE  R10 = R10[K10('DownloadManager')]
  0027  SELF      R11 = R10[K11('IsLabelDownloaded')] (self)
  0028  MOVE      R12 = R0
  0029  CALL      R10 = call(R10, 1 args, 2 rets)
  0030  TEST      if not R10 then   -> -131039
  0031  JMP       (jump)   -> 34
  0032  LOADBOOL  R4 = true
  0033  JMP       (jump)   -> 36
  0034  TFORCALL  tforcall R5
  0035  TFORLOOP  tforloop R7(sBx=-11)   -> 25
  0036  TEST      if not R4 then   -> -131034
  0037  JMP       (jump)   -> 112
  0038  GETTABUP  R5 = _ENV[K9('GM')]
  0039  GETTABLE  R5 = R5[K12('isSilentLogin')]
  0040  TEST      if not R5 then   -> -131029
  0041  JMP       (jump)   -> 112
  0042  GETTABLE  R5 = R0[K13('m_needRestart')]
  0043  TEST      if not R5 then   -> -131026
  0044  JMP       (jump)   -> 112
  0045  GETTABUP  R5 = _ENV[K9('GM')]
  0046  GETTABLE  R5 = R5[K14('SceneManager')]
  0047  SELF      R6 = R5[K15('GetGameMode')] (self)
  0048  CALL      R5 = call(R5, 1 args, 1 rets)
  0049  GETTABUP  R6 = _ENV[K16('EGameMode')]
  0050  GETTABLE  R6 = R6[K17('Loading')]
  0051  EQ        if R1 eq R6   -> -128453
  0052  JMP       (jump)   -> 112
  0053  GETTABUP  R5 = _ENV[K18('IsAutoRun')]
  0054  CALL      R5 = call(R5, 1 args, 0 rets)
  0055  TEST      if not R5 then   -> -131014
  0056  JMP       (jump)   -> 112
  0057  GETTABUP  R5 = _ENV[K7('ipairs')]
  0058  SELF      R7 = R0[K8('GetResourceLabels')] (self)
  0059  CALL      R6 = call(R6, -1 args, 1 rets)
  0060  CALL      R5 = call(R5, 3 args, -1 rets)
  0061  JMP       (jump)   -> 82
  0062  GETTABUP  R10 = _ENV[K19('Log')]
  0063  GETTABLE  R10 = R10[K20('Info')]
  0064  LOADK     R11 = K21 '[ResourceDownloadWindow] activity:'
  0065  GETTABLE  R12 = R0[K22('m_type')]
  0066  LOADK     R13 = K23 '; label:'
  0067  MOVE      R14 = R0
  0068  LOADK     R15 = K24 '; bDownload:'
  0069  GETTABUP  R16 = _ENV[K9('GM')]
  0070  GETTABLE  R16 = R16[K10('DownloadManager')]
  0071  SELF      R17 = R16[K11('IsLabelDownloaded')] (self)
  0072  MOVE      R18 = R0
  0073  CALL      R16 = call(R16, 1 args, 2 rets)
  0074  TEST      if not R16 then   -> -130996
  0075  JMP       (jump)   -> 79
  0076  LOADK     R16 = K25 'true'
  0077  TEST      if not R16 then   -> -130992
  0078  JMP       (jump)   -> 80
  0079  LOADK     R16 = K26 'false'
  0080  CONCAT    R11 = concat(R11..R11)
  0081  CALL      R10 = call(R10, 0 args, 1 rets)
  0082  TFORCALL  tforcall R5
  0083  TFORLOOP  tforloop R7(sBx=-22)   -> 62
  0084  GETTABUP  R5 = _ENV[K19('Log')]
  0085  GETTABLE  R5 = R5[K20('Info')]
  0086  LOADK     R6 = K27 '[ResourceDownloadWindow] GM.CheckResourcesStageFinished: '
  0087  GETTABUP  R7 = _ENV[K9('GM')]
  0088  GETTABLE  R7 = R7[K28('CheckResourcesStageFinished')]
  0089  TEST      if not R7 then   -> -130981
  0090  JMP       (jump)   -> 94
  0091  LOADK     R7 = K25 'true'
  0092  TEST      if not R7 then   -> -130977
  0093  JMP       (jump)   -> 95
  0094  LOADK     R7 = K26 'false'
  0095  CONCAT    R6 = concat(R6..R6)
  0096  CALL      R5 = call(R5, 0 args, 1 rets)
  0097  GETTABUP  R5 = _ENV[K9('GM')]
  0098  GETTABLE  R5 = R5[K29('UIManager')]
  0099  SELF      R6 = R5[K30('IsViewExisting')] (self)
  0100  GETTABUP  R7 = _ENV[K31('UIPrefabConfigName')]
  0101  GETTABLE  R7 = R7[K32('ResourceDownloadWindow')]
  0102  CALL      R5 = call(R5, 1 args, 2 rets)
  0103  TEST      if not R5 then   -> -130966
  0104  JMP       (jump)   -> 111
  0105  GETTABUP  R5 = _ENV[K9('GM')]
  0106  GETTABLE  R5 = R5[K29('UIManager')]
  0107  SELF      R6 = R5[K33('OpenView')] (self)
  0108  GETTABUP  R7 = _ENV[K31('UIPrefabConfigName')]
  0109  GETTABLE  R7 = R7[K32('ResourceDownloadWindow')]
  0110  CALL      R5 = call(R5, 0 args, 2 rets)
  0111  SETTABLE  R0[K13('m_needRestart')] = K34(true)
  0112  GETTABLE  R5 = R0[K35('m_bForceStateReleaseWhenResourceNotReady')]
  0113  EQ        if R0 eq R5   -> -128904
  0114  JMP       (jump)   -> 118
  0115  EQ        if R0 eq R1   -> -129418
  0116  JMP       (jump)   -> 118
  0117  LOADBOOL  R5 = false
  0118  LOADBOOL  R5 = true
  0119  SETTABLE  R0[K35('m_bForceStateReleaseWhenResourceNotReady')] = R4
  0120  SELF      R7 = R0[K36('_CheckStateChanged')] (self)
  0121  MOVE      R8 = R0
  0122  CALL      R6 = call(R6, 1 args, 2 rets)
  0123  TEST      if not R6 then   -> -130947
  0124  JMP       (jump)   -> 153
  0125  SELF      R7 = R0[K37('_OnStateChanged')] (self)
  0126  CALL      R6 = call(R6, 0 args, 1 rets)
  0127  GETTABLE  R6 = R0[K1('m_state')]
  0128  GETTABUP  R7 = _ENV[K4('ActivityState')]
  0129  GETTABLE  R7 = R7[K38('Started')]
  0130  EQ        if R0 eq R7   -> -127861
  0131  JMP       (jump)   -> 138
  0132  GETTABUP  R6 = _ENV[K9('GM')]
  0133  GETTABLE  R6 = R6[K39('ActivityManager')]
  0134  SELF      R7 = R6[K40('OnActivityStarted')] (self)
  0135  GETTABLE  R8 = R0[K22('m_type')]
  0136  CALL      R6 = call(R6, 0 args, 2 rets)
  0137  JMP       (jump)   -> 153
  0138  GETTABLE  R6 = R0[K1('m_state')]
  0139  GETTABUP  R7 = _ENV[K4('ActivityState')]
  0140  GETTABLE  R7 = R7[K41('Ended')]
  0141  EQ        if R1 eq R7   -> -127850
  0142  JMP       (jump)   -> 148
  0143  GETTABLE  R6 = R0[K1('m_state')]
  0144  GETTABUP  R7 = _ENV[K4('ActivityState')]
  0145  GETTABLE  R7 = R7[K5('Released')]
  0146  EQ        if R0 eq R7   -> -127845
  0147  JMP       (jump)   -> 153
  0148  GETTABUP  R6 = _ENV[K9('GM')]
  0149  GETTABLE  R6 = R6[K39('ActivityManager')]
  0150  SELF      R7 = R6[K42('OnActivityFinished')] (self)
  0151  GETTABLE  R8 = R0[K22('m_type')]
  0152  CALL      R6 = call(R6, 0 args, 2 rets)
  0153  RETURN    return R0..R-1
; ---------- proto21 [_CheckStateChanged] ----------
  ; fn ?  line 250-275 np=2 va=0 ms=5 code=52 consts=19 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='isSilentLogin'
  ;   K[2]='m_state'
  ;   K[3]='ActivityState'
  ;   K[4]='Started'
  ;   K[5]='m_bForceStateReleaseWhenResourceNotReady'
  ;   K[6]='GameConfig'
  ;   K[7]='IsTestMode'
  ;   K[8]='m_logResource'
  ;   K[9]=true
  ;   K[10]='Log'
  ;   K[11]='Info'
  ;   K[12]='m_type'
  ;   K[13]='资源准备好了'
  ;   K[14]='SceneManager'
  ;   K[15]='GetGameMode'
  ;   K[16]='EGameMode'
  ;   K[17]='Board'
  ;   K[18]='isBoardBusy'
  ;   upvals: _ENV
  ;   locals: self(0-52), stateChanged(0-52)
  0000  TEST      if not R1 then   -> -131069
  0001  JMP       (jump)   -> 4
  0002  LOADBOOL  R2 = false
  0003  RETURN    return R2..R1
  0004  GETTABUP  R2 = _ENV[K0('GM')]
  0005  GETTABLE  R2 = R2[K1('isSilentLogin')]
  0006  TEST      if not R2 then   -> -131064
  0007  JMP       (jump)   -> 49
  0008  GETTABLE  R2 = R0[K2('m_state')]
  0009  GETTABUP  R3 = _ENV[K3('ActivityState')]
  0010  GETTABLE  R3 = R3[K4('Started')]
  0011  EQ        if R0 eq R3   -> -130032
  0012  JMP       (jump)   -> 49
  0013  GETTABLE  R2 = R0[K5('m_bForceStateReleaseWhenResourceNotReady')]
  0014  TEST      if not R2 then   -> -131055
  0015  JMP       (jump)   -> 47
  0016  GETTABUP  R2 = _ENV[K6('GameConfig')]
  0017  GETTABLE  R2 = R2[K7('IsTestMode')]
  0018  CALL      R2 = call(R2, 1 args, 0 rets)
  0019  TEST      if not R2 then   -> -131051
  0020  JMP       (jump)   -> 31
  0021  GETTABLE  R2 = R0[K8('m_logResource')]
  0022  TEST      if not R2 then   -> -131047
  0023  JMP       (jump)   -> 31
  0024  SETTABLE  R0[K8('m_logResource')] = K9(true)
  0025  GETTABUP  R2 = _ENV[K10('Log')]
  0026  GETTABLE  R2 = R2[K11('Info')]
  0027  GETTABLE  R3 = R0[K12('m_type')]
  0028  LOADK     R4 = K13 '资源准备好了'
  0029  CONCAT    R3 = concat(R3..R3)
  0030  CALL      R2 = call(R2, 0 args, 1 rets)
  0031  GETTABUP  R2 = _ENV[K0('GM')]
  0032  GETTABLE  R2 = R2[K14('SceneManager')]
  0033  SELF      R3 = R2[K15('GetGameMode')] (self)
  0034  CALL      R2 = call(R2, 1 args, 1 rets)
  0035  GETTABUP  R3 = _ENV[K16('EGameMode')]
  0036  GETTABLE  R3 = R3[K17('Board')]
  0037  EQ        if R0 eq R3   -> -130006
  0038  JMP       (jump)   -> 49
  0039  GETTABUP  R2 = _ENV[K0('GM')]
  0040  GETTABLE  R2 = R2[K18('isBoardBusy')]
  0041  TEST      if not R2 then   -> -131029
  0042  JMP       (jump)   -> 49
  0043  SETTABLE  R0[K5('m_bForceStateReleaseWhenResourceNotReady')] = K9(true)
  0044  LOADBOOL  R2 = false
  0045  RETURN    return R2..R1
  0046  JMP       (jump)   -> 49
  0047  LOADBOOL  R2 = false
  0048  RETURN    return R2..R1
  0049  LOADBOOL  R2 = true
  0050  RETURN    return R2..R1
  0051  RETURN    return R0..R-1
; ---------- proto22 [_CalculateState] ----------
  ; fn ?  line 278-298 np=2 va=0 ms=7 code=67 consts=15 upvals=1 protos=0
  ;   K[0]='m_config'
  ;   K[1]=nil
  ;   K[2]='_CanStartActivity'
  ;   K[3]='ActivityState'
  ;   K[4]='Released'
  ;   K[5]='GM'
  ;   K[6]='GameModel'
  ;   K[7]='GetServerTime'
  ;   K[8]='GetEndTime'
  ;   K[9]='_IsExistConditionSatisfied'
  ;   K[10]='sTime'
  ;   K[11]='Preparing'
  ;   K[12]='Started'
  ;   K[13]='rTime'
  ;   K[14]='Ended'
  ;   upvals: _ENV
  ;   locals: self(0-67), bIgnoreCondition(0-67), serverTime(17-67), bExistSatisfied(18-67), totalEndTime(21-67)
  0000  GETTABLE  R2 = R0[K0('m_config')]
  0001  EQ        if R1 eq K1(nil)   -> -129788
  0002  JMP       (jump)   -> 9
  0003  TEST      if not R1 then   -> -131066
  0004  JMP       (jump)   -> 13
  0005  SELF      R3 = R0[K2('_CanStartActivity')] (self)
  0006  CALL      R2 = call(R2, 1 args, 1 rets)
  0007  TEST      if not R2 then   -> -131062
  0008  JMP       (jump)   -> 13
  0009  GETTABUP  R2 = _ENV[K3('ActivityState')]
  0010  GETTABLE  R2 = R2[K4('Released')]
  0011  LOADNIL   R3..R3 = nil
  0012  RETURN    return R2..R1
  0013  GETTABUP  R2 = _ENV[K5('GM')]
  0014  GETTABLE  R2 = R2[K6('GameModel')]
  0015  SELF      R3 = R2[K7('GetServerTime')] (self)
  0016  CALL      R2 = call(R2, 1 args, 1 rets)
  0017  LOADBOOL  R3 = true
  0018  SELF      R5 = R0[K8('GetEndTime')] (self)
  0019  LOADBOOL  R6 = true
  0020  CALL      R4 = call(R4, 1 args, 2 rets)
  0021  TEST      if not R1 then   -> -131048
  0022  JMP       (jump)   -> 27
  0023  SELF      R6 = R0[K9('_IsExistConditionSatisfied')] (self)
  0024  CALL      R5 = call(R5, 2 args, 1 rets)
  0025  MOVE      R4 = R0
  0026  MOVE      R3 = R0
  0027  TEST      if not R3 then   -> -131043
  0028  JMP       (jump)   -> 39
  0029  GETTABLE  R5 = R0[K0('m_config')]
  0030  GETTABLE  R5 = R5[K10('sTime')]
  0031  LT        if R0 lt R5   -> -130010
  0032  JMP       (jump)   -> 39
  0033  GETTABUP  R5 = _ENV[K3('ActivityState')]
  0034  GETTABLE  R5 = R5[K11('Preparing')]
  0035  GETTABLE  R6 = R0[K0('m_config')]
  0036  GETTABLE  R6 = R6[K10('sTime')]
  0037  RETURN    return R5..R4
  0038  JMP       (jump)   -> 66
  0039  TEST      if not R3 then   -> -131031
  0040  JMP       (jump)   -> 48
  0041  LT        if R0 lt R4   -> -130001
  0042  JMP       (jump)   -> 48
  0043  GETTABUP  R5 = _ENV[K3('ActivityState')]
  0044  GETTABLE  R5 = R5[K12('Started')]
  0045  MOVE      R6 = R0
  0046  RETURN    return R5..R4
  0047  JMP       (jump)   -> 66
  0048  GETTABLE  R5 = R0[K0('m_config')]
  0049  GETTABLE  R5 = R5[K13('rTime')]
  0050  TEST      if not R5 then   -> -131020
  0051  JMP       (jump)   -> 62
  0052  GETTABLE  R5 = R0[K0('m_config')]
  0053  GETTABLE  R5 = R5[K13('rTime')]
  0054  LT        if R0 lt R5   -> -129987
  0055  JMP       (jump)   -> 62
  0056  GETTABUP  R5 = _ENV[K3('ActivityState')]
  0057  GETTABLE  R5 = R5[K14('Ended')]
  0058  GETTABLE  R6 = R0[K0('m_config')]
  0059  GETTABLE  R6 = R6[K13('rTime')]
  0060  RETURN    return R5..R4
  0061  JMP       (jump)   -> 66
  0062  GETTABUP  R5 = _ENV[K3('ActivityState')]
  0063  GETTABLE  R5 = R5[K4('Released')]
  0064  LOADNIL   R6..R6 = nil
  0065  RETURN    return R5..R4
  0066  RETURN    return R0..R-1
; ---------- proto23 [_OnStateChanged] ----------
  ; fn ?  line 300-312 np=1 va=0 ms=7 code=51 consts=21 upvals=1 protos=0
  ;   K[0]='m_bHasFirstStateChanged'
  ;   K[1]='GetState'
  ;   K[2]='ActivityState'
  ;   K[3]='Released'
  ;   K[4]='m_state'
  ;   K[5]='string'
  ;   K[6]='format'
  ;   K[7]='%s_%s'
  ;   K[8]='tostring'
  ;   K[9]='m_type'
  ;   K[10]='GM'
  ;   K[11]='BIManager'
  ;   K[12]='LogProject'
  ;   K[13]='EBIProjectType'
  ;   K[14]='ActivityStateChanged'
  ;   K[15]='Log'
  ;   K[16]='Info'
  ;   K[17]='[ActivityStateChanged] '
  ;   K[18]=true
  ;   K[19]='IsStateReliable'
  ;   K[20]='_SetActivityOpened'
  ;   upvals: _ENV
  ;   locals: self(0-51), action(25-38)
  0000  GETTABLE  R1 = R0[K0('m_bHasFirstStateChanged')]
  0001  TEST      if not R1 then   -> -131068
  0002  JMP       (jump)   -> 9
  0003  SELF      R2 = R0[K1('GetState')] (self)
  0004  CALL      R1 = call(R1, 1 args, 1 rets)
  0005  GETTABUP  R2 = _ENV[K2('ActivityState')]
  0006  GETTABLE  R2 = R2[K3('Released')]
  0007  EQ        if R1 eq R2   -> -130549
  0008  JMP       (jump)   -> 38
  0009  GETTABLE  R1 = R0[K4('m_state')]
  0010  SELF      R3 = R0[K1('GetState')] (self)
  0011  CALL      R2 = call(R2, 1 args, 1 rets)
  0012  EQ        if R0 eq R2   -> -130544
  0013  JMP       (jump)   -> 38
  0014  GETTABUP  R1 = _ENV[K5('string')]
  0015  GETTABLE  R1 = R1[K6('format')]
  0016  LOADK     R2 = K7 '%s_%s'
  0017  GETTABUP  R3 = _ENV[K8('tostring')]
  0018  GETTABLE  R4 = R0[K9('m_type')]
  0019  CALL      R3 = call(R3, 1 args, 1 rets)
  0020  GETTABUP  R4 = _ENV[K8('tostring')]
  0021  SELF      R6 = R0[K1('GetState')] (self)
  0022  CALL      R5 = call(R5, -1 args, 1 rets)
  0023  CALL      R4 = call(R4, -1 args, -1 rets)
  0024  CALL      R1 = call(R1, 1 args, -1 rets)
  0025  GETTABUP  R2 = _ENV[K10('GM')]
  0026  GETTABLE  R2 = R2[K11('BIManager')]
  0027  SELF      R3 = R2[K12('LogProject')] (self)
  0028  GETTABUP  R4 = _ENV[K13('EBIProjectType')]
  0029  GETTABLE  R4 = R4[K14('ActivityStateChanged')]
  0030  MOVE      R5 = R0
  0031  CALL      R2 = call(R2, 0 args, 3 rets)
  0032  GETTABUP  R2 = _ENV[K15('Log')]
  0033  GETTABLE  R2 = R2[K16('Info')]
  0034  LOADK     R3 = K17 '[ActivityStateChanged] '
  0035  MOVE      R4 = R0
  0036  CONCAT    R3 = concat(R3..R3)
  0037  CALL      R2 = call(R2, 0 args, 1 rets)
  0038  SETTABLE  R0[K0('m_bHasFirstStateChanged')] = K18(true)
  0039  GETTABLE  R1 = R0[K4('m_state')]
  0040  GETTABUP  R2 = _ENV[K2('ActivityState')]
  0041  GETTABLE  R2 = R2[K3('Released')]
  0042  EQ        if R1 eq R2   -> -130514
  0043  JMP       (jump)   -> 50
  0044  SELF      R2 = R0[K19('IsStateReliable')] (self)
  0045  CALL      R1 = call(R1, 1 args, 1 rets)
  0046  TEST      if not R1 then   -> -131024
  0047  JMP       (jump)   -> 50
  0048  SELF      R2 = R0[K20('_SetActivityOpened')] (self)
  0049  CALL      R1 = call(R1, 0 args, 1 rets)
  0050  RETURN    return R0..R-1
; ---------- proto24 [_IsStartConditionSatisfied] ----------
  ; fn ?  line 317-366 np=1 va=0 ms=16 code=122 consts=29 upvals=1 protos=0
  ;   K[0]='m_config'
  ;   K[1]=nil
  ;   K[2]='extraCondition'
  ;   K[3]=-1
  ;   K[4]='GM'
  ;   K[5]='CheckResourcesStageFinished'
  ;   K[6]=0
  ;   K[7]='GameModel'
  ;   K[8]='GetServerTime'
  ;   K[9]='ipairs'
  ;   K[10]='type'
  ;   K[11]='ActivityExtraConditionType'
  ;   K[12]='Finish'
  ;   K[13]='param_string'
  ;   K[14]='ActivityManager'
  ;   K[15]='GetModel'
  ;   K[16]='param_int'
  ;   K[17]='GetId'
  ;   K[18]='GetEndTime'
  ;   K[19]='GetState'
  ;   K[20]='ActivityState'
  ;   K[21]='Released'
  ;   K[22]='HasActivityOpened'
  ;   K[23]='Ended'
  ;   K[24]='math'
  ;   K[25]='max'
  ;   K[26]='min'
  ;   K[27]='Order'
  ;   K[28]='_GetOrderFinishCount'
  ;   upvals: _ENV
  ;   locals: self(0-122), activityModel(17-122), gapStartTime(18-122), serverTime(22-122), state(23-122), (for generator)(27-118), (for state)(27-118), (for control)(27-118), _(28-116), config(28-116), orderFinishedCount(102-116)
  0000  GETTABLE  R1 = R0[K0('m_config')]
  0001  EQ        if R1 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 7
  0003  GETTABLE  R1 = R0[K0('m_config')]
  0004  GETTABLE  R1 = R1[K2('extraCondition')]
  0005  EQ        if R0 eq K1(nil)   -> -130296
  0006  JMP       (jump)   -> 10
  0007  LOADBOOL  R1 = true
  0008  LOADK     R2 = K3 -1
  0009  RETURN    return R1..R0
  0010  GETTABUP  R1 = _ENV[K4('GM')]
  0011  GETTABLE  R1 = R1[K5('CheckResourcesStageFinished')]
  0012  TEST      if not R1 then   -> -131057
  0013  JMP       (jump)   -> 16
  0014  LOADBOOL  R1 = false
  0015  RETURN    return R1..R0
  0016  LOADNIL   R1..R1 = nil
  0017  LOADK     R2 = K6 0
  0018  GETTABUP  R3 = _ENV[K4('GM')]
  0019  GETTABLE  R3 = R3[K7('GameModel')]
  0020  SELF      R4 = R3[K8('GetServerTime')] (self)
  0021  CALL      R3 = call(R3, 1 args, 1 rets)
  0022  LOADNIL   R4..R4 = nil
  0023  GETTABUP  R5 = _ENV[K9('ipairs')]
  0024  GETTABLE  R6 = R0[K0('m_config')]
  0025  GETTABLE  R6 = R6[K2('extraCondition')]
  0026  CALL      R5 = call(R5, 3 args, 1 rets)
  0027  JMP       (jump)   -> 116
  0028  GETTABLE  R10 = R9[K10('type')]
  0029  GETTABUP  R11 = _ENV[K11('ActivityExtraConditionType')]
  0030  GETTABLE  R11 = R11[K12('Finish')]
  0031  EQ        if R0 eq R11   -> -125908
  0032  JMP       (jump)   -> 95
  0033  GETTABLE  R10 = R9[K13('param_string')]
  0034  TEST      if not R10 then   -> -131036
  0035  JMP       (jump)   -> 95
  0036  GETTABUP  R10 = _ENV[K4('GM')]
  0037  GETTABLE  R10 = R10[K14('ActivityManager')]
  0038  SELF      R11 = R10[K15('GetModel')] (self)
  0039  GETTABLE  R12 = R9[K13('param_string')]
  0040  CALL      R10 = call(R10, 1 args, 2 rets)
  0041  MOVE      R1 = R0
  0042  EQ        if R1 eq K1(nil)   -> -130259
  0043  JMP       (jump)   -> 56
  0044  GETTABLE  R10 = R9[K16('param_int')]
  0045  TEST      if not R10 then   -> -131025
  0046  JMP       (jump)   -> 56
  0047  SELF      R11 = R1[K17('GetId')] (self)
  0048  CALL      R10 = call(R10, 1 args, 1 rets)
  0049  GETTABLE  R11 = R9[K16('param_int')]
  0050  EQ        if R0 eq R11   -> -125889
  0051  JMP       (jump)   -> 56
  0052  SELF      R11 = R1[K18('GetEndTime')] (self)
  0053  CALL      R10 = call(R10, 1 args, 1 rets)
  0054  EQ        if R0 eq K1(nil)   -> -125639
  0055  JMP       (jump)   -> 58
  0056  LOADBOOL  R10 = false
  0057  RETURN    return R10..R9
  0058  SELF      R11 = R1[K19('GetState')] (self)
  0059  LOADBOOL  R12 = false
  0060  CALL      R10 = call(R10, 1 args, 2 rets)
  0061  MOVE      R4 = R0
  0062  GETTABUP  R10 = _ENV[K20('ActivityState')]
  0063  GETTABLE  R10 = R10[K21('Released')]
  0064  EQ        if R0 eq R10   -> -128948
  0065  JMP       (jump)   -> 72
  0066  SELF      R11 = R1[K22('HasActivityOpened')] (self)
  0067  CALL      R10 = call(R10, 1 args, 1 rets)
  0068  TEST      if not R10 then   -> -131001
  0069  JMP       (jump)   -> 72
  0070  LOADBOOL  R10 = false
  0071  RETURN    return R10..R9
  0072  GETTABUP  R10 = _ENV[K20('ActivityState')]
  0073  GETTABLE  R10 = R10[K23('Ended')]
  0074  EQ        if R1 eq R10   -> -128938
  0075  JMP       (jump)   -> 80
  0076  GETTABUP  R10 = _ENV[K20('ActivityState')]
  0077  GETTABLE  R10 = R10[K21('Released')]
  0078  EQ        if R0 eq R10   -> -128934
  0079  JMP       (jump)   -> 92
  0080  GETTABUP  R10 = _ENV[K24('math')]
  0081  GETTABLE  R10 = R10[K25('max')]
  0082  MOVE      R11 = R0
  0083  GETTABUP  R12 = _ENV[K24('math')]
  0084  GETTABLE  R12 = R12[K26('min')]
  0085  MOVE      R13 = R0
  0086  SELF      R15 = R1[K18('GetEndTime')] (self)
  0087  CALL      R14 = call(R14, -1 args, 1 rets)
  0088  CALL      R12 = call(R12, -1 args, -1 rets)
  0089  CALL      R10 = call(R10, 1 args, -1 rets)
  0090  MOVE      R2 = R0
  0091  JMP       (jump)   -> 116
  0092  LOADBOOL  R10 = false
  0093  RETURN    return R10..R9
  0094  JMP       (jump)   -> 116
  0095  GETTABLE  R10 = R9[K10('type')]
  0096  GETTABUP  R11 = _ENV[K11('ActivityExtraConditionType')]
  0097  GETTABLE  R11 = R11[K27('Order')]
  0098  EQ        if R0 eq R11   -> -125841
  0099  JMP       (jump)   -> 116
  0100  SELF      R11 = R0[K28('_GetOrderFinishCount')] (self)
  0101  CALL      R10 = call(R10, 1 args, 1 rets)
  0102  GETTABLE  R11 = R9[K16('param_int')]
  0103  TEST      if not R11 then   -> -130967
  0104  JMP       (jump)   -> 108
  0105  GETTABLE  R11 = R9[K16('param_int')]
  0106  LT        if R0 lt R11   -> -125833
  0107  JMP       (jump)   -> 110
  0108  LOADBOOL  R11 = false
  0109  RETURN    return R11..R10
  0110  GETTABUP  R11 = _ENV[K24('math')]
  0111  GETTABLE  R11 = R11[K25('max')]
  0112  MOVE      R12 = R0
  0113  MOVE      R13 = R0
  0114  CALL      R11 = call(R11, 1 args, 2 rets)
  0115  MOVE      R2 = R0
  0116  TFORCALL  tforcall R5
  0117  TFORLOOP  tforloop R7(sBx=-90)   -> 28
  0118  LOADBOOL  R5 = true
  0119  MOVE      R6 = R0
  0120  RETURN    return R5..R4
  0121  RETURN    return R0..R-1
; ---------- proto25 [_IsExistConditionSatisfied] ----------
  ; fn ?  line 371-404 np=1 va=0 ms=15 code=84 consts=22 upvals=1 protos=0
  ;   K[0]='GetEndTime'
  ;   K[1]=0
  ;   K[2]='m_config'
  ;   K[3]=nil
  ;   K[4]='extraCondition'
  ;   K[5]='GM'
  ;   K[6]='GameModel'
  ;   K[7]='GetServerTime'
  ;   K[8]='ipairs'
  ;   K[9]='type'
  ;   K[10]='ActivityExtraConditionType'
  ;   K[11]='Exist'
  ;   K[12]='param_string'
  ;   K[13]='ActivityManager'
  ;   K[14]='GetModel'
  ;   K[15]='param_int'
  ;   K[16]='GetId'
  ;   K[17]='GetState'
  ;   K[18]='ActivityState'
  ;   K[19]='Started'
  ;   K[20]='math'
  ;   K[21]='min'
  ;   upvals: _ENV
  ;   locals: self(0-84), endTime(6-84), activityModel(17-84), serverTime(21-84), state(22-84), (for generator)(26-80), (for state)(26-80), (for control)(26-80), _(27-78), config(27-78)
  0000  SELF      R2 = R0[K0('GetEndTime')] (self)
  0001  LOADBOOL  R3 = true
  0002  CALL      R1 = call(R1, 1 args, 2 rets)
  0003  TEST      if not R1 then   -> -131066
  0004  JMP       (jump)   -> 6
  0005  LOADK     R1 = K1 0
  0006  GETTABLE  R2 = R0[K2('m_config')]
  0007  EQ        if R1 eq K3(nil)   -> -129780
  0008  JMP       (jump)   -> 13
  0009  GETTABLE  R2 = R0[K2('m_config')]
  0010  GETTABLE  R2 = R2[K4('extraCondition')]
  0011  EQ        if R0 eq K3(nil)   -> -129776
  0012  JMP       (jump)   -> 16
  0013  LOADBOOL  R2 = true
  0014  MOVE      R3 = R0
  0015  RETURN    return R2..R1
  0016  LOADNIL   R2..R2 = nil
  0017  GETTABUP  R3 = _ENV[K5('GM')]
  0018  GETTABLE  R3 = R3[K6('GameModel')]
  0019  SELF      R4 = R3[K7('GetServerTime')] (self)
  0020  CALL      R3 = call(R3, 1 args, 1 rets)
  0021  LOADNIL   R4..R4 = nil
  0022  GETTABUP  R5 = _ENV[K8('ipairs')]
  0023  GETTABLE  R6 = R0[K2('m_config')]
  0024  GETTABLE  R6 = R6[K4('extraCondition')]
  0025  CALL      R5 = call(R5, 3 args, 1 rets)
  0026  JMP       (jump)   -> 78
  0027  GETTABLE  R10 = R9[K9('type')]
  0028  GETTABUP  R11 = _ENV[K10('ActivityExtraConditionType')]
  0029  GETTABLE  R11 = R11[K11('Exist')]
  0030  EQ        if R0 eq R11   -> -125909
  0031  JMP       (jump)   -> 78
  0032  GETTABLE  R10 = R9[K12('param_string')]
  0033  TEST      if not R10 then   -> -131037
  0034  JMP       (jump)   -> 78
  0035  GETTABUP  R10 = _ENV[K5('GM')]
  0036  GETTABLE  R10 = R10[K13('ActivityManager')]
  0037  SELF      R11 = R10[K14('GetModel')] (self)
  0038  GETTABLE  R12 = R9[K12('param_string')]
  0039  CALL      R10 = call(R10, 1 args, 2 rets)
  0040  MOVE      R2 = R0
  0041  EQ        if R1 eq K3(nil)   -> -129746
  0042  JMP       (jump)   -> 56
  0043  GETTABLE  R10 = R9[K15('param_int')]
  0044  TEST      if not R10 then   -> -131026
  0045  JMP       (jump)   -> 56
  0046  SELF      R11 = R2[K16('GetId')] (self)
  0047  CALL      R10 = call(R10, 1 args, 1 rets)
  0048  GETTABLE  R11 = R9[K15('param_int')]
  0049  EQ        if R0 eq R11   -> -125890
  0050  JMP       (jump)   -> 56
  0051  SELF      R11 = R2[K0('GetEndTime')] (self)
  0052  LOADBOOL  R12 = true
  0053  CALL      R10 = call(R10, 1 args, 2 rets)
  0054  EQ        if R0 eq K3(nil)   -> -125637
  0055  JMP       (jump)   -> 59
  0056  LOADBOOL  R10 = false
  0057  MOVE      R11 = R0
  0058  RETURN    return R10..R9
  0059  SELF      R11 = R2[K17('GetState')] (self)
  0060  LOADBOOL  R12 = false
  0061  CALL      R10 = call(R10, 1 args, 2 rets)
  0062  MOVE      R4 = R0
  0063  GETTABUP  R10 = _ENV[K18('ActivityState')]
  0064  GETTABLE  R10 = R10[K19('Started')]
  0065  EQ        if R1 eq R10   -> -128947
  0066  JMP       (jump)   -> 70
  0067  LOADBOOL  R10 = false
  0068  MOVE      R11 = R0
  0069  RETURN    return R10..R9
  0070  GETTABUP  R10 = _ENV[K20('math')]
  0071  GETTABLE  R10 = R10[K21('min')]
  0072  MOVE      R11 = R0
  0073  SELF      R13 = R2[K0('GetEndTime')] (self)
  0074  LOADBOOL  R14 = true
  0075  CALL      R12 = call(R12, -1 args, 2 rets)
  0076  CALL      R10 = call(R10, 1 args, -1 rets)
  0077  MOVE      R1 = R0
  0078  TFORCALL  tforcall R5
  0079  TFORLOOP  tforloop R7(sBx=-53)   -> 27
  0080  LOADBOOL  R5 = true
  0081  MOVE      R6 = R0
  0082  RETURN    return R5..R4
  0083  RETURN    return R0..R-1
; ---------- proto26 [_SetGapStartTime] ----------
  ; fn ?  line 406-416 np=2 va=0 ms=10 code=36 consts=18 upvals=3 protos=0
  ;   K[0]=nil
  ;   K[1]='m_dbTable'
  ;   K[2]='Set'
  ;   K[3]='GapStartTime'
  ;   K[4]='tostring'
  ;   K[5]='GameConfig'
  ;   K[6]='IsTestMode'
  ;   K[7]='_GetConditionTime'
  ;   K[8]='UTC:'
  ;   K[9]='TimeUtil'
  ;   K[10]='ToDate'
  ;   K[11]='ETimeFormat'
  ;   K[12]='UTCYMDHMS'
  ;   K[13]='GM'
  ;   K[14]='UIManager'
  ;   K[15]='ShowTestPrompt'
  ;   K[16]='m_type'
  ;   K[17]=' 进入 Gap，结束时间为：'
  ;   upvals: DBKey, DB_VALUE_KEY, _ENV
  ;   locals: self(0-36), gapStartTime(0-36), gapTime(17-35), protectTime(17-35), timeText(25-35)
  0000  EQ        if R1 eq K0(nil)   -> -130302
  0001  JMP       (jump)   -> 35
  0002  GETTABLE  R2 = R0[K1('m_dbTable')]
  0003  SELF      R3 = R2[K2('Set')] (self)
  0004  GETTABUP  R4 = DBKey[K3('GapStartTime')]
  0005  GETUPVAL  R5 = DBKey
  0006  GETTABUP  R6 = _ENV[K4('tostring')]
  0007  MOVE      R7 = R0
  0008  CALL      R6 = call(R6, -1 args, 1 rets)
  0009  CALL      R2 = call(R2, 0 args, -1 rets)
  0010  GETTABUP  R2 = _ENV[K5('GameConfig')]
  0011  GETTABLE  R2 = R2[K6('IsTestMode')]
  0012  CALL      R2 = call(R2, 1 args, 0 rets)
  0013  TEST      if not R2 then   -> -131057
  0014  JMP       (jump)   -> 35
  0015  SELF      R3 = R0[K7('_GetConditionTime')] (self)
  0016  CALL      R2 = call(R2, 2 args, 1 rets)
  0017  LOADK     R4 = K8 'UTC:'
  0018  GETTABUP  R5 = _ENV[K9('TimeUtil')]
  0019  GETTABLE  R5 = R5[K10('ToDate')]
  0020  ADD       R6 = R2 add R1
  0021  GETTABUP  R7 = _ENV[K11('ETimeFormat')]
  0022  GETTABLE  R7 = R7[K12('UTCYMDHMS')]
  0023  CALL      R5 = call(R5, 1 args, 2 rets)
  0024  CONCAT    R4 = concat(R4..R4)
  0025  GETTABUP  R5 = _ENV[K13('GM')]
  0026  GETTABLE  R5 = R5[K14('UIManager')]
  0027  SELF      R6 = R5[K15('ShowTestPrompt')] (self)
  0028  GETTABUP  R7 = _ENV[K4('tostring')]
  0029  GETTABLE  R8 = R0[K16('m_type')]
  0030  CALL      R7 = call(R7, 1 args, 1 rets)
  0031  LOADK     R8 = K17 ' 进入 Gap，结束时间为：'
  0032  MOVE      R9 = R0
  0033  CONCAT    R7 = concat(R7..R7)
  0034  CALL      R5 = call(R5, 0 args, 2 rets)
  0035  RETURN    return R0..R-1
; ---------- proto27 [_GetGapStartTime] ----------
  ; fn ?  line 418-420 np=1 va=0 ms=5 code=7 consts=3 upvals=2 protos=0
  ;   K[0]='m_dbTable'
  ;   K[1]='GetInNumber'
  ;   K[2]='GapStartTime'
  ;   upvals: DBKey, DB_VALUE_KEY
  ;   locals: self(0-7)
  0000  GETTABLE  R1 = R0[K0('m_dbTable')]
  0001  SELF      R2 = R1[K1('GetInNumber')] (self)
  0002  GETTABUP  R3 = DBKey[K2('GapStartTime')]
  0003  GETUPVAL  R4 = DBKey
  0004  TAILCALL  tailcall(R1, 0)
  0005  RETURN    return R1..R0
  0006  RETURN    return R0..R-1
; ---------- proto28 [OnOrderFinished] ----------
  ; fn ?  line 422-444 np=1 va=0 ms=9 code=40 consts=13 upvals=3 protos=0
  ;   K[0]='m_config'
  ;   K[1]=nil
  ;   K[2]='extraCondition'
  ;   K[3]='HasActivityOpened'
  ;   K[4]='ipairs'
  ;   K[5]='type'
  ;   K[6]='ActivityExtraConditionType'
  ;   K[7]='Order'
  ;   K[8]='_GetOrderFinishCount'
  ;   K[9]=1
  ;   K[10]='m_dbTable'
  ;   K[11]='Set'
  ;   K[12]='OrderFinishCount'
  ;   upvals: _ENV, DBKey, DB_VALUE_KEY
  ;   locals: self(0-40), hasOrderCondition(13-40), (for generator)(17-27), (for state)(17-27), (for control)(17-27), _(18-25), config(18-25), orderFinishedCount(33-40)
  0000  GETTABLE  R1 = R0[K0('m_config')]
  0001  EQ        if R1 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 11
  0003  GETTABLE  R1 = R0[K0('m_config')]
  0004  GETTABLE  R1 = R1[K2('extraCondition')]
  0005  EQ        if R1 eq K1(nil)   -> -130296
  0006  JMP       (jump)   -> 11
  0007  SELF      R2 = R0[K3('HasActivityOpened')] (self)
  0008  CALL      R1 = call(R1, 1 args, 1 rets)
  0009  TEST      if not R1 then   -> -131061
  0010  JMP       (jump)   -> 12
  0011  RETURN    return R0..R-1
  0012  LOADBOOL  R1 = false
  0013  GETTABUP  R2 = _ENV[K4('ipairs')]
  0014  GETTABLE  R3 = R0[K0('m_config')]
  0015  GETTABLE  R3 = R3[K2('extraCondition')]
  0016  CALL      R2 = call(R2, 3 args, 1 rets)
  0017  JMP       (jump)   -> 25
  0018  GETTABLE  R7 = R6[K5('type')]
  0019  GETTABUP  R8 = _ENV[K6('ActivityExtraConditionType')]
  0020  GETTABLE  R8 = R8[K7('Order')]
  0021  EQ        if R0 eq R8   -> -127457
  0022  JMP       (jump)   -> 25
  0023  LOADBOOL  R1 = true
  0024  JMP       (jump)   -> 27
  0025  TFORCALL  tforcall R2
  0026  TFORLOOP  tforloop R4(sBx=-9)   -> 18
  0027  TEST      if not R1 then   -> -131042
  0028  JMP       (jump)   -> 30
  0029  RETURN    return R0..R-1
  0030  SELF      R3 = R0[K8('_GetOrderFinishCount')] (self)
  0031  CALL      R2 = call(R2, 1 args, 1 rets)
  0032  ADD       R2 = K9(1) add R2
  0033  GETTABLE  R3 = R0[K10('m_dbTable')]
  0034  SELF      R4 = R3[K11('Set')] (self)
  0035  GETTABUP  R5 = DBKey[K12('OrderFinishCount')]
  0036  GETUPVAL  R6 = _ENV
  0037  MOVE      R7 = R0
  0038  CALL      R3 = call(R3, 0 args, 4 rets)
  0039  RETURN    return R0..R-1
; ---------- proto29 [_GetOrderFinishCount] ----------
  ; fn ?  line 446-448 np=1 va=0 ms=5 code=10 consts=4 upvals=2 protos=0
  ;   K[0]='m_dbTable'
  ;   K[1]='GetInNumber'
  ;   K[2]='OrderFinishCount'
  ;   K[3]=0
  ;   upvals: DBKey, DB_VALUE_KEY
  ;   locals: self(0-10)
  0000  GETTABLE  R1 = R0[K0('m_dbTable')]
  0001  SELF      R2 = R1[K1('GetInNumber')] (self)
  0002  GETTABUP  R3 = DBKey[K2('OrderFinishCount')]
  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
; ---------- proto30 [_CanStartActivity] ----------
  ; fn ?  line 450-482 np=1 va=0 ms=9 code=56 consts=12 upvals=1 protos=0
  ;   K[0]='m_config'
  ;   K[1]=nil
  ;   K[2]='extraCondition'
  ;   K[3]='HasActivityOpened'
  ;   K[4]='_GetGapStartTime'
  ;   K[5]='_IsStartConditionSatisfied'
  ;   K[6]='_SetGapStartTime'
  ;   K[7]='_IsExistConditionSatisfied'
  ;   K[8]='GM'
  ;   K[9]='GameModel'
  ;   K[10]='GetServerTime'
  ;   K[11]='_GetConditionTime'
  ;   upvals: _ENV
  ;   locals: self(0-56), gapStartTime(17-56), bPreSatisfied(18-56), bExistSatisfied(36-56), totalEndTime(36-56), curTime(44-56), gapTime(46-56), protectTime(46-56)
  0000  GETTABLE  R1 = R0[K0('m_config')]
  0001  EQ        if R1 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 7
  0003  GETTABLE  R1 = R0[K0('m_config')]
  0004  GETTABLE  R1 = R1[K2('extraCondition')]
  0005  EQ        if R0 eq K1(nil)   -> -130296
  0006  JMP       (jump)   -> 9
  0007  LOADBOOL  R1 = true
  0008  RETURN    return R1..R0
  0009  SELF      R2 = R0[K3('HasActivityOpened')] (self)
  0010  CALL      R1 = call(R1, 1 args, 1 rets)
  0011  TEST      if not R1 then   -> -131059
  0012  JMP       (jump)   -> 15
  0013  LOADBOOL  R1 = true
  0014  RETURN    return R1..R0
  0015  SELF      R2 = R0[K4('_GetGapStartTime')] (self)
  0016  CALL      R1 = call(R1, 1 args, 1 rets)
  0017  LOADBOOL  R2 = false
  0018  EQ        if R0 eq K1(nil)   -> -130283
  0019  JMP       (jump)   -> 34
  0020  SELF      R4 = R0[K5('_IsStartConditionSatisfied')] (self)
  0021  CALL      R3 = call(R3, 2 args, 1 rets)
  0022  MOVE      R1 = R0
  0023  MOVE      R2 = R0
  0024  TEST      if not R2 then   -> -131045
  0025  JMP       (jump)   -> 29
  0026  LOADBOOL  R3 = false
  0027  RETURN    return R3..R2
  0028  JMP       (jump)   -> 34
  0029  EQ        if R1 eq K1(nil)   -> -130272
  0030  JMP       (jump)   -> 34
  0031  SELF      R4 = R0[K6('_SetGapStartTime')] (self)
  0032  MOVE      R5 = R0
  0033  CALL      R3 = call(R3, 0 args, 2 rets)
  0034  SELF      R4 = R0[K7('_IsExistConditionSatisfied')] (self)
  0035  CALL      R3 = call(R3, 2 args, 1 rets)
  0036  TEST      if not R3 then   -> -131033
  0037  JMP       (jump)   -> 40
  0038  LOADBOOL  R5 = false
  0039  RETURN    return R5..R4
  0040  GETTABUP  R5 = _ENV[K8('GM')]
  0041  GETTABLE  R5 = R5[K9('GameModel')]
  0042  SELF      R6 = R5[K10('GetServerTime')] (self)
  0043  CALL      R5 = call(R5, 1 args, 1 rets)
  0044  SELF      R7 = R0[K11('_GetConditionTime')] (self)
  0045  CALL      R6 = call(R6, 2 args, 1 rets)
  0046  ADD       R8 = R6 add R1
  0047  LE        if R0 le R5   -> -126922
  0048  JMP       (jump)   -> 52
  0049  SUB       R8 = R7 sub R4
  0050  LT        if R1 lt R8   -> -128452
  0051  JMP       (jump)   -> 53
  0052  LOADBOOL  R8 = false
  0053  LOADBOOL  R8 = true
  0054  RETURN    return R8..R7
  0055  RETURN    return R0..R-1
; ---------- proto31 [_GetConditionTime] ----------
  ; fn ?  line 486-498 np=1 va=0 ms=11 code=41 consts=8 upvals=1 protos=0
  ;   K[0]='m_config'
  ;   K[1]='extraCondition'
  ;   K[2]=0
  ;   K[3]='ipairs'
  ;   K[4]='math'
  ;   K[5]='max'
  ;   K[6]='gapTime'
  ;   K[7]='protectTime'
  ;   upvals: _ENV
  ;   locals: self(0-41), gapTime(11-41), protectTime(12-41), (for generator)(16-37), (for state)(16-37), (for control)(16-37), _(17-35), config(17-35)
  0000  GETTABLE  R1 = R0[K0('m_config')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 7
  0003  GETTABLE  R1 = R0[K0('m_config')]
  0004  GETTABLE  R1 = R1[K1('extraCondition')]
  0005  TEST      if not R1 then   -> -131064
  0006  JMP       (jump)   -> 10
  0007  LOADK     R1 = K2 0
  0008  LOADK     R2 = K2 0
  0009  RETURN    return R1..R0
  0010  LOADK     R1 = K2 0
  0011  LOADK     R2 = K2 0
  0012  GETTABUP  R3 = _ENV[K3('ipairs')]
  0013  GETTABLE  R4 = R0[K0('m_config')]
  0014  GETTABLE  R4 = R4[K1('extraCondition')]
  0015  CALL      R3 = call(R3, 3 args, 1 rets)
  0016  JMP       (jump)   -> 35
  0017  GETTABUP  R8 = _ENV[K4('math')]
  0018  GETTABLE  R8 = R8[K5('max')]
  0019  MOVE      R9 = R0
  0020  GETTABLE  R10 = R7[K6('gapTime')]
  0021  TEST      if not R10 then   -> -131048
  0022  JMP       (jump)   -> 24
  0023  LOADK     R10 = K2 0
  0024  CALL      R8 = call(R8, 1 args, 2 rets)
  0025  MOVE      R1 = R0
  0026  GETTABUP  R8 = _ENV[K4('math')]
  0027  GETTABLE  R8 = R8[K5('max')]
  0028  MOVE      R9 = R0
  0029  GETTABLE  R10 = R7[K7('protectTime')]
  0030  TEST      if not R10 then   -> -131039
  0031  JMP       (jump)   -> 33
  0032  LOADK     R10 = K2 0
  0033  CALL      R8 = call(R8, 1 args, 2 rets)
  0034  MOVE      R2 = R0
  0035  TFORCALL  tforcall R3
  0036  TFORLOOP  tforloop R5(sBx=-20)   -> 17
  0037  MOVE      R3 = R0
  0038  MOVE      R4 = R0
  0039  RETURN    return R3..R2
  0040  RETURN    return R0..R-1
; ---------- proto32 [_SetActivityOpened] ----------
  ; fn ?  line 501-505 np=1 va=0 ms=7 code=19 consts=9 upvals=3 protos=0
  ;   K[0]='_CalculateState'
  ;   K[1]='m_dbTable'
  ;   K[2]='Set'
  ;   K[3]='ActivityOpened'
  ;   K[4]='tostring'
  ;   K[5]='Log'
  ;   K[6]='Info'
  ;   K[7]='_SetActivityOpened'
  ;   K[8]='m_type'
  ;   upvals: DBKey, DB_VALUE_KEY, _ENV
  ;   locals: self(0-19)
  0000  SELF      R2 = R0[K0('_CalculateState')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  GETTABLE  R1 = R0[K1('m_dbTable')]
  0003  SELF      R2 = R1[K2('Set')] (self)
  0004  GETTABUP  R3 = DBKey[K3('ActivityOpened')]
  0005  GETUPVAL  R4 = DBKey
  0006  GETTABUP  R5 = _ENV[K4('tostring')]
  0007  LOADBOOL  R6 = true
  0008  CALL      R5 = call(R5, -1 args, 1 rets)
  0009  CALL      R1 = call(R1, 0 args, -1 rets)
  0010  GETTABUP  R1 = _ENV[K5('Log')]
  0011  GETTABLE  R1 = R1[K6('Info')]
  0012  LOADK     R2 = K7 '_SetActivityOpened'
  0013  GETTABUP  R3 = _ENV[K4('tostring')]
  0014  GETTABLE  R4 = R0[K8('m_type')]
  0015  CALL      R3 = call(R3, 1 args, 1 rets)
  0016  CONCAT    R2 = concat(R2..R2)
  0017  CALL      R1 = call(R1, 0 args, 1 rets)
  0018  RETURN    return R0..R-1
; ---------- proto33 [HasActivityOpened] ----------
  ; fn ?  line 508-510 np=1 va=0 ms=5 code=11 consts=4 upvals=2 protos=0
  ;   K[0]='m_dbTable'
  ;   K[1]='GetValue'
  ;   K[2]='ActivityOpened'
  ;   K[3]=nil
  ;   upvals: DBKey, DB_VALUE_KEY
  ;   locals: self(0-11)
  0000  GETTABLE  R1 = R0[K0('m_dbTable')]
  0001  SELF      R2 = R1[K1('GetValue')] (self)
  0002  GETTABUP  R3 = DBKey[K2('ActivityOpened')]
  0003  GETUPVAL  R4 = DBKey
  0004  CALL      R1 = call(R1, 1 args, 3 rets)
  0005  EQ        if R0 eq K3(nil)   -> -130294
  0006  JMP       (jump)   -> 8
  0007  LOADBOOL  R1 = false
  0008  LOADBOOL  R1 = true
  0009  RETURN    return R1..R0
  0010  RETURN    return R0..R-1
; ---------- proto34 [GetType] ----------
  ; fn ?  line 512-514 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_type'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_type')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto35 [GetState] ----------
  ; fn ?  line 526-534 np=2 va=0 ms=3 code=15 consts=5 upvals=1 protos=0
  ;   K[0]=false
  ;   K[1]='m_bForceStateReleaseWhenResourceNotReady'
  ;   K[2]='ActivityState'
  ;   K[3]='Released'
  ;   K[4]='m_state'
  ;   upvals: _ENV
  ;   locals: self(0-15), checkResource(0-15)
  0000  EQ        if R0 eq K0(false)   -> -130302
  0001  JMP       (jump)   -> 3
  0002  LOADBOOL  R1 = false
  0003  LOADBOOL  R1 = true
  0004  GETTABLE  R2 = R0[K1('m_bForceStateReleaseWhenResourceNotReady')]
  0005  TEST      if not R2 then   -> -131065
  0006  JMP       (jump)   -> 12
  0007  TEST      if not R1 then   -> -131063
  0008  JMP       (jump)   -> 12
  0009  GETTABUP  R2 = _ENV[K2('ActivityState')]
  0010  GETTABLE  R2 = R2[K3('Released')]
  0011  RETURN    return R2..R1
  0012  GETTABLE  R2 = R0[K4('m_state')]
  0013  RETURN    return R2..R1
  0014  RETURN    return R0..R-1
; ---------- proto36 [GetCalculatedState] ----------
  ; fn ?  line 537-539 np=1 va=0 ms=3 code=4 consts=1 upvals=0 protos=0
  ;   K[0]='_CalculateState'
  ;   locals: self(0-4)
  0000  SELF      R2 = R0[K0('_CalculateState')] (self)
  0001  TAILCALL  tailcall(R1, 0)
  0002  RETURN    return R1..R0
  0003  RETURN    return R0..R-1
; ---------- proto37 [IsStateReliable] ----------
  ; fn ?  line 541-543 np=1 va=0 ms=3 code=12 consts=4 upvals=1 protos=0
  ;   K[0]='m_state'
  ;   K[1]='ActivityState'
  ;   K[2]='Released'
  ;   K[3]='m_bForceStateReleaseWhenResourceNotReady'
  ;   upvals: _ENV
  ;   locals: self(0-12)
  0000  GETTABLE  R1 = R0[K0('m_state')]
  0001  GETTABUP  R2 = _ENV[K1('ActivityState')]
  0002  GETTABLE  R2 = R2[K2('Released')]
  0003  EQ        if R1 eq R2   -> -130553
  0004  JMP       (jump)   -> 9
  0005  GETTABLE  R1 = R0[K3('m_bForceStateReleaseWhenResourceNotReady')]
  0006  NOT       R1 = not R0
  0007  JMP       (jump)   -> 10
  0008  LOADBOOL  R1 = false
  0009  LOADBOOL  R1 = true
  0010  RETURN    return R1..R0
  0011  RETURN    return R0..R-1
; ---------- proto38 [IsActivityOpen] ----------
  ; fn ?  line 545-547 np=1 va=0 ms=4 code=7 consts=4 upvals=1 protos=0
  ;   K[0]='Log'
  ;   K[1]='Error'
  ;   K[2]='当前model缺少活动开启且未提前完成的实现: type = '
  ;   K[3]='m_type'
  ;   upvals: _ENV
  ;   locals: self(0-7)
  0000  GETTABUP  R1 = _ENV[K0('Log')]
  0001  GETTABLE  R1 = R1[K1('Error')]
  0002  LOADK     R2 = K2 '当前model缺少活动开启且未提前完成的实现: type = '
  0003  GETTABLE  R3 = R0[K3('m_type')]
  0004  CONCAT    R2 = concat(R2..R2)
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  RETURN    return R0..R-1
; ---------- proto39 [GetNextStateTime] ----------
  ; fn ?  line 552-558 np=2 va=0 ms=3 code=14 consts=3 upvals=0 protos=0
  ;   K[0]=false
  ;   K[1]='m_bForceStateReleaseWhenResourceNotReady'
  ;   K[2]='m_nextStateTime'
  ;   locals: self(0-14), checkResource(0-14)
  0000  EQ        if R0 eq K0(false)   -> -130302
  0001  JMP       (jump)   -> 3
  0002  LOADBOOL  R1 = false
  0003  LOADBOOL  R1 = true
  0004  GETTABLE  R2 = R0[K1('m_bForceStateReleaseWhenResourceNotReady')]
  0005  TEST      if not R2 then   -> -131065
  0006  JMP       (jump)   -> 11
  0007  TEST      if not R1 then   -> -131063
  0008  JMP       (jump)   -> 11
  0009  LOADNIL   R2..R2 = nil
  0010  RETURN    return R2..R1
  0011  GETTABLE  R2 = R0[K2('m_nextStateTime')]
  0012  RETURN    return R2..R1
  0013  RETURN    return R0..R-1
; ---------- proto40 [GetEndTime] ----------
  ; fn ?  line 560-567 np=2 va=0 ms=4 code=15 consts=4 upvals=0 protos=0
  ;   K[0]='m_config'
  ;   K[1]='eTime'
  ;   K[2]=0
  ;   K[3]='_IsExistConditionSatisfied'
  ;   locals: self(0-15), bOnlyConfig(0-15), bSatisfied(13-15), totalEndTime(13-15)
  0000  TEST      if not R1 then   -> -131070
  0001  JMP       (jump)   -> 11
  0002  GETTABLE  R2 = R0[K0('m_config')]
  0003  TEST      if not R2 then   -> -131067
  0004  JMP       (jump)   -> 9
  0005  GETTABLE  R2 = R0[K0('m_config')]
  0006  GETTABLE  R2 = R2[K1('eTime')]
  0007  TEST      if not R2 then   -> -131062
  0008  JMP       (jump)   -> 10
  0009  LOADK     R2 = K2 0
  0010  RETURN    return R2..R1
  0011  SELF      R3 = R0[K3('_IsExistConditionSatisfied')] (self)
  0012  CALL      R2 = call(R2, 2 args, 1 rets)
  0013  RETURN    return R3..R2
  0014  RETURN    return R0..R-1
; ---------- proto41 [GetStartTime] ----------
  ; fn ?  line 569-571 np=1 va=0 ms=2 code=10 consts=3 upvals=0 protos=0
  ;   K[0]='m_config'
  ;   K[1]='sTime'
  ;   K[2]=0
  ;   locals: self(0-10)
  0000  GETTABLE  R1 = R0[K0('m_config')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 7
  0003  GETTABLE  R1 = R0[K0('m_config')]
  0004  GETTABLE  R1 = R1[K1('sTime')]
  0005  TEST      if not R1 then   -> -131064
  0006  JMP       (jump)   -> 8
  0007  LOADK     R1 = K2 0
  0008  RETURN    return R1..R0
  0009  RETURN    return R0..R-1
; ---------- proto42 [GetLockDurationInSeconds] ----------
  ; fn ?  line 573-575 np=1 va=0 ms=2 code=4 consts=2 upvals=0 protos=0
  ;   K[0]='m_lockHours'
  ;   K[1]=3600
  ;   locals: self(0-4)
  0000  GETTABLE  R1 = R0[K0('m_lockHours')]
  0001  MUL       R1 = K1(3600) mul R1
  0002  RETURN    return R1..R0
  0003  RETURN    return R0..R-1
; ---------- proto43 [IsInLockTime] ----------
  ; fn ?  line 578-582 np=1 va=0 ms=5 code=18 consts=6 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='GameModel'
  ;   K[2]='GetServerTime'
  ;   K[3]='GetEndTime'
  ;   K[4]=0
  ;   K[5]='GetLockDurationInSeconds'
  ;   upvals: _ENV
  ;   locals: self(0-18), serverTime(4-18), deadline(12-18)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('GameModel')]
  0002  SELF      R2 = R1[K2('GetServerTime')] (self)
  0003  CALL      R1 = call(R1, 1 args, 1 rets)
  0004  SELF      R3 = R0[K3('GetEndTime')] (self)
  0005  CALL      R2 = call(R2, 1 args, 1 rets)
  0006  TEST      if not R2 then   -> -131063
  0007  JMP       (jump)   -> 9
  0008  LOADK     R2 = K4 0
  0009  SELF      R4 = R0[K5('GetLockDurationInSeconds')] (self)
  0010  CALL      R3 = call(R3, 1 args, 1 rets)
  0011  SUB       R2 = R3 sub R2
  0012  LE        if R1 le R1   -> -130033
  0013  JMP       (jump)   -> 15
  0014  LOADBOOL  R3 = false
  0015  LOADBOOL  R3 = true
  0016  RETURN    return R3..R2
  0017  RETURN    return R0..R-1
; ---------- proto44 [GetId] ----------
  ; fn ?  line 584-586 np=1 va=0 ms=5 code=7 consts=3 upvals=1 protos=0
  ;   K[0]='m_dbTable'
  ;   K[1]='GetValue'
  ;   K[2]='id'
  ;   upvals: DB_VALUE_KEY
  ;   locals: self(0-7)
  0000  GETTABLE  R1 = R0[K0('m_dbTable')]
  0001  SELF      R2 = R1[K1('GetValue')] (self)
  0002  LOADK     R3 = K2 'id'
  0003  GETUPVAL  R4 = DB_VALUE_KEY
  0004  TAILCALL  tailcall(R1, 0)
  0005  RETURN    return R1..R0
  0006  RETURN    return R0..R-1
; ---------- proto45 [HasWindowOpenedOnce] ----------
  ; fn ?  line 588-591 np=2 va=0 ms=7 code=14 consts=4 upvals=1 protos=0
  ;   K[0]='windowOpened'
  ;   K[1]='m_dbTable'
  ;   K[2]='GetValue'
  ;   K[3]=nil
  ;   upvals: DB_VALUE_KEY
  ;   locals: self(0-14), state(0-14), key(3-14)
  0000  LOADK     R2 = K0 'windowOpened'
  0001  MOVE      R3 = R0
  0002  CONCAT    R2 = concat(R2..R2)
  0003  GETTABLE  R3 = R0[K1('m_dbTable')]
  0004  SELF      R4 = R3[K2('GetValue')] (self)
  0005  MOVE      R5 = R0
  0006  GETUPVAL  R6 = DB_VALUE_KEY
  0007  CALL      R3 = call(R3, 1 args, 3 rets)
  0008  EQ        if R0 eq K3(nil)   -> -129267
  0009  JMP       (jump)   -> 11
  0010  LOADBOOL  R3 = false
  0011  LOADBOOL  R3 = true
  0012  RETURN    return R3..R2
  0013  RETURN    return R0..R-1
; ---------- proto46 [SetWindowOpened] ----------
  ; fn ?  line 593-604 np=2 va=0 ms=8 code=24 consts=9 upvals=2 protos=0
  ;   K[0]='m_state'
  ;   K[1]='ActivityState'
  ;   K[2]='Started'
  ;   K[3]='HasWindowOpenedOnce'
  ;   K[4]='LogStarted'
  ;   K[5]='windowOpened'
  ;   K[6]='m_dbTable'
  ;   K[7]='Set'
  ;   K[8]=1
  ;   upvals: _ENV, DB_VALUE_KEY
  ;   locals: self(0-24), state(0-24), key(17-24)
  0000  TEST      if not R1 then   -> -131069
  0001  JMP       (jump)   -> 3
  0002  GETTABLE  R1 = R0[K0('m_state')]
  0003  GETTABUP  R2 = _ENV[K1('ActivityState')]
  0004  GETTABLE  R2 = R2[K2('Started')]
  0005  EQ        if R0 eq R2   -> -130551
  0006  JMP       (jump)   -> 14
  0007  SELF      R3 = R0[K3('HasWindowOpenedOnce')] (self)
  0008  MOVE      R4 = R0
  0009  CALL      R2 = call(R2, 1 args, 2 rets)
  0010  TEST      if not R2 then   -> -131059
  0011  JMP       (jump)   -> 14
  0012  SELF      R3 = R0[K4('LogStarted')] (self)
  0013  CALL      R2 = call(R2, 0 args, 1 rets)
  0014  LOADK     R2 = K5 'windowOpened'
  0015  MOVE      R3 = R0
  0016  CONCAT    R2 = concat(R2..R2)
  0017  GETTABLE  R3 = R0[K6('m_dbTable')]
  0018  SELF      R4 = R3[K7('Set')] (self)
  0019  MOVE      R5 = R0
  0020  GETUPVAL  R6 = _ENV
  0021  LOADK     R7 = K8 1
  0022  CALL      R3 = call(R3, 0 args, 4 rets)
  0023  RETURN    return R0..R-1
; ---------- proto47 [LogStarted] ----------
  ; fn ?  line 606-609 np=1 va=0 ms=5 code=11 consts=6 upvals=1 protos=0
  ;   K[0]='LogActivity'
  ;   K[1]='EBIType'
  ;   K[2]='ActivityStarted'
  ;   K[3]=''
  ;   K[4]='ActivityRankUp'
  ;   K[5]=0
  ;   upvals: _ENV
  ;   locals: self(0-11)
  0000  SELF      R2 = R0[K0('LogActivity')] (self)
  0001  GETTABUP  R3 = _ENV[K1('EBIType')]
  0002  GETTABLE  R3 = R3[K2('ActivityStarted')]
  0003  LOADK     R4 = K3 ''
  0004  CALL      R1 = call(R1, 0 args, 3 rets)
  0005  SELF      R2 = R0[K0('LogActivity')] (self)
  0006  GETTABUP  R3 = _ENV[K1('EBIType')]
  0007  GETTABLE  R3 = R3[K4('ActivityRankUp')]
  0008  LOADK     R4 = K5 0
  0009  CALL      R1 = call(R1, 0 args, 3 rets)
  0010  RETURN    return R0..R-1
; ---------- proto48 [SetWindowReopen] ----------
  ; fn ?  line 611-614 np=1 va=0 ms=6 code=9 consts=4 upvals=1 protos=0
  ;   K[0]='windowOpened'
  ;   K[1]='m_state'
  ;   K[2]='m_dbTable'
  ;   K[3]='Remove'
  ;   upvals: DB_VALUE_KEY
  ;   locals: self(0-9), key(3-9)
  0000  LOADK     R1 = K0 'windowOpened'
  0001  GETTABLE  R2 = R0[K1('m_state')]
  0002  CONCAT    R1 = concat(R1..R1)
  0003  GETTABLE  R2 = R0[K2('m_dbTable')]
  0004  SELF      R3 = R2[K3('Remove')] (self)
  0005  MOVE      R4 = R0
  0006  GETUPVAL  R5 = DB_VALUE_KEY
  0007  CALL      R2 = call(R2, 0 args, 3 rets)
  0008  RETURN    return R0..R-1
; ---------- proto49 [LogActivity] ----------
  ; fn ?  line 616-618 np=3 va=0 ms=9 code=10 consts=5 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='BIManager'
  ;   K[2]='LogActivity'
  ;   K[3]='m_type'
  ;   K[4]='GetId'
  ;   upvals: _ENV
  ;   locals: self(0-10), scene(0-10), action(0-10)
  0000  GETTABUP  R3 = _ENV[K0('GM')]
  0001  GETTABLE  R3 = R3[K1('BIManager')]
  0002  SELF      R4 = R3[K2('LogActivity')] (self)
  0003  GETTABLE  R5 = R0[K3('m_type')]
  0004  SELF      R7 = R0[K4('GetId')] (self)
  0005  CALL      R6 = call(R6, 1 args, 1 rets)
  0006  MOVE      R7 = R0
  0007  MOVE      R8 = R0
  0008  CALL      R3 = call(R3, 0 args, 5 rets)
  0009  RETURN    return R0..R-1
; ---------- proto50 [IsSendingRankRequest] ----------
  ; fn ?  line 621-623 np=1 va=0 ms=2 code=3 consts=0 upvals=0 protos=0
  ;   locals: self(0-3)
  0000  LOADBOOL  R1 = false
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto51 [CanHeartBeat] ----------
  ; fn ?  line 625-627 np=1 va=0 ms=2 code=3 consts=0 upvals=0 protos=0
  ;   locals: self(0-3)
  0000  LOADBOOL  R1 = false
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto52 [FromHeartBeat] ----------
  ; fn ?  line 629-630 np=2 va=0 ms=2 code=1 consts=0 upvals=0 protos=0
  ;   locals: self(0-1), data(0-1)
  0000  RETURN    return R0..R-1
; ---------- proto53 [ToHeartBeat] ----------
  ; fn ?  line 632-633 np=2 va=0 ms=2 code=1 consts=0 upvals=0 protos=0
  ;   locals: self(0-1), data(0-1)
  0000  RETURN    return R0..R-1
; ---------- proto54 [NeedCheckResource] ----------
  ; fn ?  line 637-639 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_bNeedCheckResource'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_bNeedCheckResource')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto55 [GetResourceLabels] ----------
  ; fn ?  line 641-643 np=1 va=0 ms=2 code=3 consts=0 upvals=0 protos=0
  ;   locals: self(0-3)
  0000  NEWTABLE  R1 = {} (0 items)
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto56 [GetActivityDefinition] ----------
  ; fn ?  line 646-648 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
; ---------- proto57 [RestoreIapRewards] ----------
  ; fn ?  line 650-652 np=2 va=0 ms=3 code=3 consts=0 upvals=0 protos=0
  ;   locals: self(0-3), iapType(0-3)
  0000  LOADBOOL  R2 = false
  0001  RETURN    return R2..R1
  0002  RETURN    return R0..R-1
; ---------- proto58 [AcquireActivityToken] ----------
  ; fn ?  line 655-657 np=2 va=0 ms=6 code=9 consts=5 upvals=1 protos=0
  ;   K[0]='Log'
  ;   K[1]='Error'
  ;   K[2]='virtual method, override me! '
  ;   K[3]='tostring'
  ;   K[4]='m_type'
  ;   upvals: _ENV
  ;   locals: self(0-9), score(0-9)
  0000  GETTABUP  R2 = _ENV[K0('Log')]
  0001  GETTABLE  R2 = R2[K1('Error')]
  0002  LOADK     R3 = K2 'virtual method, override me! '
  0003  GETTABUP  R4 = _ENV[K3('tostring')]
  0004  GETTABLE  R5 = R0[K4('m_type')]
  0005  CALL      R4 = call(R4, 1 args, 1 rets)
  0006  CONCAT    R3 = concat(R3..R3)
  0007  CALL      R2 = call(R2, 0 args, 1 rets)
  0008  RETURN    return R0..R-1
; ---------- proto59 [GetActivityTokenNumber] ----------
  ; fn ?  line 660-663 np=1 va=0 ms=5 code=11 consts=6 upvals=1 protos=0
  ;   K[0]='Log'
  ;   K[1]='Error'
  ;   K[2]='virtual method, override me! '
  ;   K[3]='tostring'
  ;   K[4]='m_type'
  ;   K[5]=0
  ;   upvals: _ENV
  ;   locals: self(0-11)
  0000  GETTABUP  R1 = _ENV[K0('Log')]
  0001  GETTABLE  R1 = R1[K1('Error')]
  0002  LOADK     R2 = K2 'virtual method, override me! '
  0003  GETTABUP  R3 = _ENV[K3('tostring')]
  0004  GETTABLE  R4 = R0[K4('m_type')]
  0005  CALL      R3 = call(R3, 1 args, 1 rets)
  0006  CONCAT    R2 = concat(R2..R2)
  0007  CALL      R1 = call(R1, 0 args, 1 rets)
  0008  LOADK     R1 = K5 0
  0009  RETURN    return R1..R0
  0010  RETURN    return R0..R-1
; ---------- proto60 [CanAddScore] ----------
  ; fn ?  line 665-667 np=1 va=0 ms=2 code=3 consts=0 upvals=0 protos=0
  ;   locals: self(0-3)
  0000  LOADBOOL  R1 = false
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto61 [CanAddOrderReward] ----------
  ; fn ?  line 669-671 np=2 va=0 ms=4 code=4 consts=1 upvals=0 protos=0
  ;   K[0]='CanAddScore'
  ;   locals: self(0-4), orderType(0-4)
  0000  SELF      R3 = R0[K0('CanAddScore')] (self)
  0001  TAILCALL  tailcall(R2, 0)
  0002  RETURN    return R2..R1
  0003  RETURN    return R0..R-1
; ---------- proto62 [CanAddCookReward] ----------
  ; fn ?  line 673-676 np=1 va=0 ms=2 code=3 consts=0 upvals=0 protos=0
  ;   locals: self(0-3)
  0000  LOADBOOL  R1 = false
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto63 [GetOrderExtraReward] ----------
  ; fn ?  line 679-682 np=4 va=0 ms=8 code=11 consts=5 upvals=1 protos=0
  ;   K[0]='Log'
  ;   K[1]='Error'
  ;   K[2]='virtual method, override me! '
  ;   K[3]='tostring'
  ;   K[4]='m_type'
  ;   upvals: _ENV
  ;   locals: self(0-11), orderScore(0-11), coinNum(0-11), orderId(0-11)
  0000  GETTABUP  R4 = _ENV[K0('Log')]
  0001  GETTABLE  R4 = R4[K1('Error')]
  0002  LOADK     R5 = K2 'virtual method, override me! '
  0003  GETTABUP  R6 = _ENV[K3('tostring')]
  0004  GETTABLE  R7 = R0[K4('m_type')]
  0005  CALL      R6 = call(R6, 1 args, 1 rets)
  0006  CONCAT    R5 = concat(R5..R5)
  0007  CALL      R4 = call(R4, 0 args, 1 rets)
  0008  NEWTABLE  R4 = {} (0 items)
  0009  RETURN    return R4..R3
  0010  RETURN    return R0..R-1
; ---------- proto64 [GetCookExtraReward] ----------
  ; fn ?  line 685-688 np=2 va=0 ms=6 code=11 consts=5 upvals=1 protos=0
  ;   K[0]='Log'
  ;   K[1]='Error'
  ;   K[2]='virtual method, override me! '
  ;   K[3]='tostring'
  ;   K[4]='m_type'
  ;   upvals: _ENV
  ;   locals: self(0-11), recipe(0-11)
  0000  GETTABUP  R2 = _ENV[K0('Log')]
  0001  GETTABLE  R2 = R2[K1('Error')]
  0002  LOADK     R3 = K2 'virtual method, override me! '
  0003  GETTABUP  R4 = _ENV[K3('tostring')]
  0004  GETTABLE  R5 = R0[K4('m_type')]
  0005  CALL      R4 = call(R4, 1 args, 1 rets)
  0006  CONCAT    R3 = concat(R3..R3)
  0007  CALL      R2 = call(R2, 0 args, 1 rets)
  0008  NEWTABLE  R2 = {} (0 items)
  0009  RETURN    return R2..R1
  0010  RETURN    return R0..R-1
; ---------- proto65 [GetButtonTarget] ----------
  ; fn ?  line 690-707 np=2 va=0 ms=12 code=47 consts=16 upvals=1 protos=0
  ;   K[0]='pairs'
  ;   K[1]='ActivityTokenPropertyType'
  ;   K[2]='GM'
  ;   K[3]='SceneManager'
  ;   K[4]='GetGameMode'
  ;   K[5]='EGameMode'
  ;   K[6]='Board'
  ;   K[7]='MainBoardView'
  ;   K[8]='GetInstance'
  ;   K[9]=nil
  ;   K[10]='GetOrderArea'
  ;   K[11]='GetIconAreaByActivityType'
  ;   K[12]='Main'
  ;   K[13]='TutorialHelper'
  ;   K[14]='GetHudButton'
  ;   K[15]='EntryButtonKey'
  ;   upvals: _ENV
  ;   locals: definition(0-47), propertyType(0-47), (for generator)(3-44), (for state)(3-44), (for control)(3-44), activityType(4-42), activityDefinition(4-42), boardView(18-28), orderArea(22-28)
  0000  GETTABUP  R2 = _ENV[K0('pairs')]
  0001  MOVE      R3 = R0
  0002  CALL      R2 = call(R2, 3 args, 1 rets)
  0003  JMP       (jump)   -> 42
  0004  GETTABLE  R7 = R6[K1('ActivityTokenPropertyType')]
  0005  EQ        if R0 eq R7   -> -130546
  0006  JMP       (jump)   -> 42
  0007  GETTABUP  R7 = _ENV[K2('GM')]
  0008  GETTABLE  R7 = R7[K3('SceneManager')]
  0009  SELF      R8 = R7[K4('GetGameMode')] (self)
  0010  CALL      R7 = call(R7, 1 args, 1 rets)
  0011  GETTABUP  R8 = _ENV[K5('EGameMode')]
  0012  GETTABLE  R8 = R8[K6('Board')]
  0013  EQ        if R0 eq R8   -> -127465
  0014  JMP       (jump)   -> 29
  0015  GETTABUP  R7 = _ENV[K7('MainBoardView')]
  0016  GETTABLE  R7 = R7[K8('GetInstance')]
  0017  CALL      R7 = call(R7, 1 args, 0 rets)
  0018  EQ        if R1 eq K9(nil)   -> -127203
  0019  JMP       (jump)   -> 42
  0020  SELF      R9 = R7[K10('GetOrderArea')] (self)
  0021  CALL      R8 = call(R8, 1 args, 1 rets)
  0022  EQ        if R1 eq K9(nil)   -> -126687
  0023  JMP       (jump)   -> 42
  0024  SELF      R10 = R8[K11('GetIconAreaByActivityType')] (self)
  0025  MOVE      R11 = R0
  0026  TAILCALL  tailcall(R9, 0)
  0027  RETURN    return R9..R8
  0028  JMP       (jump)   -> 42
  0029  GETTABUP  R7 = _ENV[K2('GM')]
  0030  GETTABLE  R7 = R7[K3('SceneManager')]
  0031  SELF      R8 = R7[K4('GetGameMode')] (self)
  0032  CALL      R7 = call(R7, 1 args, 1 rets)
  0033  GETTABUP  R8 = _ENV[K5('EGameMode')]
  0034  GETTABLE  R8 = R8[K12('Main')]
  0035  EQ        if R0 eq R8   -> -127443
  0036  JMP       (jump)   -> 42
  0037  GETTABUP  R7 = _ENV[K13('TutorialHelper')]
  0038  GETTABLE  R7 = R7[K14('GetHudButton')]
  0039  GETTABLE  R8 = R6[K15('EntryButtonKey')]
  0040  TAILCALL  tailcall(R7, 0)
  0041  RETURN    return R7..R6
  0042  TFORCALL  tforcall R2
  0043  TFORLOOP  tforloop R4(sBx=-40)   -> 4
  0044  LOADNIL   R2..R2 = nil
  0045  RETURN    return R2..R1
  0046  RETURN    return R0..R-1
; ---------- proto66 [_LoadDBTableValues] ----------
  ; fn ?  line 712-714 np=1 va=0 ms=2 code=1 consts=0 upvals=0 protos=0
  ;   locals: self(0-1)
  0000  RETURN    return R0..R-1
; ---------- proto67 [_DBTableGetValue] ----------
  ; fn ?  line 718-720 np=2 va=0 ms=6 code=7 consts=2 upvals=1 protos=0
  ;   K[0]='m_dbTable'
  ;   K[1]='GetValue'
  ;   upvals: DB_VALUE_KEY
  ;   locals: self(0-7), key(0-7)
  0000  GETTABLE  R2 = R0[K0('m_dbTable')]
  0001  SELF      R3 = R2[K1('GetValue')] (self)
  0002  MOVE      R4 = R0
  0003  GETUPVAL  R5 = DB_VALUE_KEY
  0004  TAILCALL  tailcall(R2, 0)
  0005  RETURN    return R2..R1
  0006  RETURN    return R0..R-1
; ---------- proto68 [_DBTableGetNumber] ----------
  ; fn ?  line 724-727 np=3 va=0 ms=7 code=13 consts=3 upvals=1 protos=0
  ;   K[0]=0
  ;   K[1]='tonumber'
  ;   K[2]='_DBTableGetValue'
  ;   upvals: _ENV
  ;   locals: self(0-13), key(0-13), defaultValue(0-13)
  0000  TEST      if not R2 then   -> -131069
  0001  JMP       (jump)   -> 3
  0002  LOADK     R2 = K0 0
  0003  GETTABUP  R3 = _ENV[K1('tonumber')]
  0004  SELF      R5 = R0[K2('_DBTableGetValue')] (self)
  0005  MOVE      R6 = R0
  0006  CALL      R4 = call(R4, -1 args, 2 rets)
  0007  CALL      R3 = call(R3, 1 args, -1 rets)
  0008  TEST      if not R3 then   -> -131061
  0009  JMP       (jump)   -> 11
  0010  MOVE      R3 = R0
  0011  RETURN    return R3..R2
  0012  RETURN    return R0..R-1
; ---------- proto69 [_DBTableGetTable] ----------
  ; fn ?  line 731-733 np=2 va=0 ms=6 code=14 consts=4 upvals=1 protos=0
  ;   K[0]='json'
  ;   K[1]='decode'
  ;   K[2]='_DBTableGetValue'
  ;   K[3]=''
  ;   upvals: _ENV
  ;   locals: self(0-14), key(0-14)
  0000  GETTABUP  R2 = _ENV[K0('json')]
  0001  GETTABLE  R2 = R2[K1('decode')]
  0002  SELF      R4 = R0[K2('_DBTableGetValue')] (self)
  0003  MOVE      R5 = R0
  0004  CALL      R3 = call(R3, 1 args, 2 rets)
  0005  TEST      if not R3 then   -> -131064
  0006  JMP       (jump)   -> 8
  0007  LOADK     R3 = K3 ''
  0008  CALL      R2 = call(R2, 1 args, 1 rets)
  0009  TEST      if not R2 then   -> -131060
  0010  JMP       (jump)   -> 12
  0011  NEWTABLE  R2 = {} (0 items)
  0012  RETURN    return R2..R1
  0013  RETURN    return R0..R-1
; ---------- proto70 [_DBTableSet] ----------
  ; fn ?  line 737-739 np=3 va=0 ms=8 code=7 consts=2 upvals=1 protos=0
  ;   K[0]='m_dbTable'
  ;   K[1]='Set'
  ;   upvals: DB_VALUE_KEY
  ;   locals: self(0-7), key(0-7), value(0-7)
  0000  GETTABLE  R3 = R0[K0('m_dbTable')]
  0001  SELF      R4 = R3[K1('Set')] (self)
  0002  MOVE      R5 = R0
  0003  GETUPVAL  R6 = DB_VALUE_KEY
  0004  MOVE      R7 = R0
  0005  CALL      R3 = call(R3, 0 args, 4 rets)
  0006  RETURN    return R0..R-1
; ---------- proto71 [_DBTableSetTable] ----------
  ; fn ?  line 743-750 np=3 va=0 ms=8 code=18 consts=6 upvals=1 protos=0
  ;   K[0]='Table'
  ;   K[1]='IsEmpty'
  ;   K[2]='_DBTableRemove'
  ;   K[3]='_DBTableSet'
  ;   K[4]='json'
  ;   K[5]='encode'
  ;   upvals: _ENV
  ;   locals: self(0-18), key(0-18), value(0-18)
  0000  GETTABUP  R3 = _ENV[K0('Table')]
  0001  GETTABLE  R3 = R3[K1('IsEmpty')]
  0002  MOVE      R4 = R0
  0003  CALL      R3 = call(R3, 1 args, 1 rets)
  0004  TEST      if not R3 then   -> -131066
  0005  JMP       (jump)   -> 10
  0006  SELF      R4 = R0[K2('_DBTableRemove')] (self)
  0007  MOVE      R5 = R0
  0008  CALL      R3 = call(R3, 0 args, 2 rets)
  0009  JMP       (jump)   -> 17
  0010  SELF      R4 = R0[K3('_DBTableSet')] (self)
  0011  MOVE      R5 = R0
  0012  GETTABUP  R6 = _ENV[K4('json')]
  0013  GETTABLE  R6 = R6[K5('encode')]
  0014  MOVE      R7 = R0
  0015  CALL      R6 = call(R6, -1 args, 1 rets)
  0016  CALL      R3 = call(R3, 0 args, -1 rets)
  0017  RETURN    return R0..R-1
; ---------- proto72 [_DBTableRemove] ----------
  ; fn ?  line 753-755 np=2 va=0 ms=5 code=5 consts=2 upvals=0 protos=0
  ;   K[0]='m_dbTable'
  ;   K[1]='Remove'
  ;   locals: self(0-5), key(0-5)
  0000  GETTABLE  R2 = R0[K0('m_dbTable')]
  0001  SELF      R3 = R2[K1('Remove')] (self)
  0002  MOVE      R4 = R0
  0003  CALL      R2 = call(R2, 0 args, 2 rets)
  0004  RETURN    return R0..R-1
