# DayExtraRewardActivity_Model_DayExtraRewardActivityModel_1400.luac
; fn @DayExtraRewardActivityModel.lua  line 0-0 np=0 va=1 ms=6 code=176 consts=77 upvals=1 protos=51
;   K[0]='DayExtraRewardActivityModel'
;   K[1]='setmetatable'
;   K[2]='BaseActivityModel'
;   K[3]='__index'
;   K[4]='RewardConfigKey'
;   K[5]='order_token_control'
;   K[6]='DurationInSeconds'
;   K[7]='duration'
;   K[8]='ProtectTimeInSeconds'
;   K[9]='protectTime'
;   K[10]='MaxTriggerCount'
;   K[11]='maxNum'
;   K[12]='TriggeredCount'
;   K[13]='trigger_c'
;   K[14]='TriggerOrderDay'
;   K[15]='day'
;   K[16]='TriggerOrderScore'
;   K[17]='score'
;   K[18]='TriggerEndTime'
;   K[19]='end_time'
;   K[20]='CanClaimReward'
;   K[21]='can_claim'
;   K[22]='Init'
;   K[23]='GetActivityDefinition'
;   K[24]='_CalculateState'
;   K[25]='_OnStateChanged'
;   K[26]='GetResourceLabels'
;   K[27]='_LoadOtherServerConfig'
;   K[28]='DayExtraRewardActivityModel'
;   K[29]='CheckConfigValid'
;   K[30]='DayExtraRewardActivityModel'
;   K[31]='HasConfig'
;   K[32]='GetFilteredRewardsByScore'
;   K[33]='GetDuration'
;   K[34]='GetProtectTime'
;   K[35]='GetMaxTriggerCount'
;   K[36]='DB_VALUE_KEY'
;   K[37]=1
;   K[38]='_DBTableGetValue'
;   K[39]='_DBTableGetNumber'
;   K[40]='_DBTableSet'
;   K[41]='_DBTableRemove'
;   K[42]='GetTriggeredCount'
;   K[43]='SetTriggeredCount'
;   K[44]='GetTriggerOrderDay'
;   K[45]='SetTriggerOrderDay'
;   K[46]='RemoveTriggerOrderDay'
;   K[47]='GetTriggerOrderScore'
;   K[48]='SetTriggerOrderScore'
;   K[49]='GetTriggerEndTime'
;   K[50]='SetTriggerEndTime'
;   K[51]='CanClaimReward'
;   K[52]='SetCanClaimReward'
;   K[53]='RemoveCanClaimReward'
;   K[54]='HasTriggeredOnce'
;   K[55]='IsInDuration'
;   K[56]='IsActivityOpen'
;   K[57]='GetLeftDuration'
;   K[58]='GetMainOrderModel'
;   K[59]='GetCurOrderDay'
;   K[60]='GetRemainOrdersScore'
;   K[61]='IsTriggered'
;   K[62]='CanTrigger'
;   K[63]='TryTrigger'
;   K[64]='OpenStartWindow'
;   K[65]='CanPopup'
;   K[66]='OnCheckPopup'
;   K[67]='_DispatchStateChangedEvent'
;   K[68]='_DispatchRefreshEntryEvent'
;   K[69]='_OnOrderFinished'
;   K[70]='_OnClaimedOrderGroupReward'
;   K[71]='TryClaimReward'
;   K[72]='_IsEntryVisible'
;   K[73]='GetOrderDayWindowDecorationShowConfig'
;   K[74]='GetOrderGroupButtonDecorationShowConfig'
;   K[75]='_GetBIAction'
;   K[76]='_LogAction'
;   upvals: _ENV
;   locals: GeneralActivityConfKey(14-176), DBKey(20-176), DB_VALUE_KEY(57-176), TRUE_VALUE(58-176)
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('BaseActivityModel')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('DayExtraRewardActivityModel')] = R0
0005  GETTABUP  R0 = _ENV[K0('DayExtraRewardActivityModel')]
0006  GETTABUP  R1 = _ENV[K0('DayExtraRewardActivityModel')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('DayExtraRewardActivityModel')]
0009  SETTABLE  R0[K4('RewardConfigKey')] = K5('order_token_control')
0010  NEWTABLE  R0 = {} (0 items)
0011  SETTABLE  R0[K6('DurationInSeconds')] = K7('duration')
0012  SETTABLE  R0[K8('ProtectTimeInSeconds')] = K9('protectTime')
0013  SETTABLE  R0[K10('MaxTriggerCount')] = K11('maxNum')
0014  NEWTABLE  R1 = {} (0 items)
0015  SETTABLE  R1[K12('TriggeredCount')] = K13('trigger_c')
0016  SETTABLE  R1[K14('TriggerOrderDay')] = K15('day')
0017  SETTABLE  R1[K16('TriggerOrderScore')] = K17('score')
0018  SETTABLE  R1[K18('TriggerEndTime')] = K19('end_time')
0019  SETTABLE  R1[K20('CanClaimReward')] = K21('can_claim')
0020  GETTABUP  R2 = _ENV[K0('DayExtraRewardActivityModel')]
0021  CLOSURE   R3 = closure proto0
0022  SETTABLE  R2[K22('Init')] = R3
0023  GETTABUP  R2 = _ENV[K0('DayExtraRewardActivityModel')]
0024  CLOSURE   R3 = closure proto1
0025  SETTABLE  R2[K23('GetActivityDefinition')] = R3
0026  GETTABUP  R2 = _ENV[K0('DayExtraRewardActivityModel')]
0027  CLOSURE   R3 = closure proto2
0028  SETTABLE  R2[K24('_CalculateState')] = R3
0029  GETTABUP  R2 = _ENV[K0('DayExtraRewardActivityModel')]
0030  CLOSURE   R3 = closure proto3
0031  SETTABLE  R2[K25('_OnStateChanged')] = R3
0032  GETTABUP  R2 = _ENV[K0('DayExtraRewardActivityModel')]
0033  CLOSURE   R3 = closure proto4
0034  SETTABLE  R2[K26('GetResourceLabels')] = R3
0035  GETTABUP  R2 = _ENV[K0('DayExtraRewardActivityModel')]
0036  CLOSURE   R3 = closure proto5
0037  SETTABLE  R2[K27('_LoadOtherServerConfig')] = R3
0038  GETTABUP  R2 = _ENV[K28('DayExtraRewardActivityModel')]
0039  CLOSURE   R3 = closure proto6
0040  SETTABLE  R2[K29('CheckConfigValid')] = R3
0041  GETTABUP  R2 = _ENV[K30('DayExtraRewardActivityModel')]
0042  CLOSURE   R3 = closure proto7
0043  SETTABLE  R2[K31('HasConfig')] = R3
0044  GETTABUP  R2 = _ENV[K30('DayExtraRewardActivityModel')]
0045  CLOSURE   R3 = closure proto8
0046  SETTABLE  R2[K32('GetFilteredRewardsByScore')] = R3
0047  GETTABUP  R2 = _ENV[K30('DayExtraRewardActivityModel')]
0048  CLOSURE   R3 = closure proto9
0049  SETTABLE  R2[K33('GetDuration')] = R3
0050  GETTABUP  R2 = _ENV[K30('DayExtraRewardActivityModel')]
0051  CLOSURE   R3 = closure proto10
0052  SETTABLE  R2[K34('GetProtectTime')] = R3
0053  GETTABUP  R2 = _ENV[K30('DayExtraRewardActivityModel')]
0054  CLOSURE   R3 = closure proto11
0055  SETTABLE  R2[K35('GetMaxTriggerCount')] = R3
0056  GETTABUP  R2 = _ENV[K36('DB_VALUE_KEY')]
0057  LOADK     R3 = K37 1
0058  GETTABUP  R4 = _ENV[K30('DayExtraRewardActivityModel')]
0059  CLOSURE   R5 = closure proto12
0060  SETTABLE  R4[K38('_DBTableGetValue')] = R5
0061  GETTABUP  R4 = _ENV[K30('DayExtraRewardActivityModel')]
0062  CLOSURE   R5 = closure proto13
0063  SETTABLE  R4[K39('_DBTableGetNumber')] = R5
0064  GETTABUP  R4 = _ENV[K30('DayExtraRewardActivityModel')]
0065  CLOSURE   R5 = closure proto14
0066  SETTABLE  R4[K40('_DBTableSet')] = R5
0067  GETTABUP  R4 = _ENV[K30('DayExtraRewardActivityModel')]
0068  CLOSURE   R5 = closure proto15
0069  SETTABLE  R4[K41('_DBTableRemove')] = R5
0070  GETTABUP  R4 = _ENV[K30('DayExtraRewardActivityModel')]
0071  CLOSURE   R5 = closure proto16
0072  SETTABLE  R4[K42('GetTriggeredCount')] = R5
0073  GETTABUP  R4 = _ENV[K30('DayExtraRewardActivityModel')]
0074  CLOSURE   R5 = closure proto17
0075  SETTABLE  R4[K43('SetTriggeredCount')] = R5
0076  GETTABUP  R4 = _ENV[K30('DayExtraRewardActivityModel')]
0077  CLOSURE   R5 = closure proto18
0078  SETTABLE  R4[K44('GetTriggerOrderDay')] = R5
0079  GETTABUP  R4 = _ENV[K30('DayExtraRewardActivityModel')]
0080  CLOSURE   R5 = closure proto19
0081  SETTABLE  R4[K45('SetTriggerOrderDay')] = R5
0082  GETTABUP  R4 = _ENV[K30('DayExtraRewardActivityModel')]
0083  CLOSURE   R5 = closure proto20
0084  SETTABLE  R4[K46('RemoveTriggerOrderDay')] = R5
0085  GETTABUP  R4 = _ENV[K30('DayExtraRewardActivityModel')]
0086  CLOSURE   R5 = closure proto21
0087  SETTABLE  R4[K47('GetTriggerOrderScore')] = R5
0088  GETTABUP  R4 = _ENV[K30('DayExtraRewardActivityModel')]
0089  CLOSURE   R5 = closure proto22
0090  SETTABLE  R4[K48('SetTriggerOrderScore')] = R5
0091  GETTABUP  R4 = _ENV[K30('DayExtraRewardActivityModel')]
0092  CLOSURE   R5 = closure proto23
0093  SETTABLE  R4[K49('GetTriggerEndTime')] = R5
0094  GETTABUP  R4 = _ENV[K30('DayExtraRewardActivityModel')]
0095  CLOSURE   R5 = closure proto24
0096  SETTABLE  R4[K50('SetTriggerEndTime')] = R5
0097  GETTABUP  R4 = _ENV[K30('DayExtraRewardActivityModel')]
0098  CLOSURE   R5 = closure proto25
0099  SETTABLE  R4[K51('CanClaimReward')] = R5
0100  GETTABUP  R4 = _ENV[K30('DayExtraRewardActivityModel')]
0101  CLOSURE   R5 = closure proto26
0102  SETTABLE  R4[K52('SetCanClaimReward')] = R5
0103  GETTABUP  R4 = _ENV[K30('DayExtraRewardActivityModel')]
0104  CLOSURE   R5 = closure proto27
0105  SETTABLE  R4[K53('RemoveCanClaimReward')] = R5
0106  GETTABUP  R4 = _ENV[K30('DayExtraRewardActivityModel')]
0107  CLOSURE   R5 = closure proto28
0108  SETTABLE  R4[K54('HasTriggeredOnce')] = R5
0109  GETTABUP  R4 = _ENV[K30('DayExtraRewardActivityModel')]
0110  CLOSURE   R5 = closure proto29
0111  SETTABLE  R4[K55('IsInDuration')] = R5
0112  GETTABUP  R4 = _ENV[K30('DayExtraRewardActivityModel')]
0113  CLOSURE   R5 = closure proto30
0114  SETTABLE  R4[K56('IsActivityOpen')] = R5
0115  GETTABUP  R4 = _ENV[K30('DayExtraRewardActivityModel')]
0116  CLOSURE   R5 = closure proto31
0117  SETTABLE  R4[K57('GetLeftDuration')] = R5
0118  GETTABUP  R4 = _ENV[K30('DayExtraRewardActivityModel')]
0119  CLOSURE   R5 = closure proto32
0120  SETTABLE  R4[K58('GetMainOrderModel')] = R5
0121  GETTABUP  R4 = _ENV[K30('DayExtraRewardActivityModel')]
0122  CLOSURE   R5 = closure proto33
0123  SETTABLE  R4[K59('GetCurOrderDay')] = R5
0124  GETTABUP  R4 = _ENV[K30('DayExtraRewardActivityModel')]
0125  CLOSURE   R5 = closure proto34
0126  SETTABLE  R4[K60('GetRemainOrdersScore')] = R5
0127  GETTABUP  R4 = _ENV[K30('DayExtraRewardActivityModel')]
0128  CLOSURE   R5 = closure proto35
0129  SETTABLE  R4[K61('IsTriggered')] = R5
0130  GETTABUP  R4 = _ENV[K30('DayExtraRewardActivityModel')]
0131  CLOSURE   R5 = closure proto36
0132  SETTABLE  R4[K62('CanTrigger')] = R5
0133  GETTABUP  R4 = _ENV[K30('DayExtraRewardActivityModel')]
0134  CLOSURE   R5 = closure proto37
0135  SETTABLE  R4[K63('TryTrigger')] = R5
0136  GETTABUP  R4 = _ENV[K30('DayExtraRewardActivityModel')]
0137  CLOSURE   R5 = closure proto38
0138  SETTABLE  R4[K64('OpenStartWindow')] = R5
0139  GETTABUP  R4 = _ENV[K30('DayExtraRewardActivityModel')]
0140  CLOSURE   R5 = closure proto39
0141  SETTABLE  R4[K65('CanPopup')] = R5
0142  GETTABUP  R4 = _ENV[K30('DayExtraRewardActivityModel')]
0143  CLOSURE   R5 = closure proto40
0144  SETTABLE  R4[K66('OnCheckPopup')] = R5
0145  GETTABUP  R4 = _ENV[K30('DayExtraRewardActivityModel')]
0146  CLOSURE   R5 = closure proto41
0147  SETTABLE  R4[K67('_DispatchStateChangedEvent')] = R5
0148  GETTABUP  R4 = _ENV[K30('DayExtraRewardActivityModel')]
0149  CLOSURE   R5 = closure proto42
0150  SETTABLE  R4[K68('_DispatchRefreshEntryEvent')] = R5
0151  GETTABUP  R4 = _ENV[K30('DayExtraRewardActivityModel')]
0152  CLOSURE   R5 = closure proto43
0153  SETTABLE  R4[K69('_OnOrderFinished')] = R5
0154  GETTABUP  R4 = _ENV[K30('DayExtraRewardActivityModel')]
0155  CLOSURE   R5 = closure proto44
0156  SETTABLE  R4[K70('_OnClaimedOrderGroupReward')] = R5
0157  GETTABUP  R4 = _ENV[K30('DayExtraRewardActivityModel')]
0158  CLOSURE   R5 = closure proto45
0159  SETTABLE  R4[K71('TryClaimReward')] = R5
0160  GETTABUP  R4 = _ENV[K30('DayExtraRewardActivityModel')]
0161  CLOSURE   R5 = closure proto46
0162  SETTABLE  R4[K72('_IsEntryVisible')] = R5
0163  GETTABUP  R4 = _ENV[K30('DayExtraRewardActivityModel')]
0164  CLOSURE   R5 = closure proto47
0165  SETTABLE  R4[K73('GetOrderDayWindowDecorationShowConfig')] = R5
0166  GETTABUP  R4 = _ENV[K30('DayExtraRewardActivityModel')]
0167  CLOSURE   R5 = closure proto48
0168  SETTABLE  R4[K74('GetOrderGroupButtonDecorationShowConfig')] = R5
0169  GETTABUP  R4 = _ENV[K30('DayExtraRewardActivityModel')]
0170  CLOSURE   R5 = closure proto49
0171  SETTABLE  R4[K75('_GetBIAction')] = R5
0172  GETTABUP  R4 = _ENV[K30('DayExtraRewardActivityModel')]
0173  CLOSURE   R5 = closure proto50
0174  SETTABLE  R4[K76('_LogAction')] = R5
0175  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 27-33 np=3 va=0 ms=7 code=24 consts=11 upvals=1 protos=0
  ;   K[0]='m_activityDefinition'
  ;   K[1]='DayExtraRewardActivityDefinition'
  ;   K[2]='BaseActivityModel'
  ;   K[3]='Init'
  ;   K[4]='EventDispatcher'
  ;   K[5]='AddListener'
  ;   K[6]='EEventType'
  ;   K[7]='OrderFinished'
  ;   K[8]='_OnOrderFinished'
  ;   K[9]='OnClaimedOrderGroupReward'
  ;   K[10]='_OnClaimedOrderGroupReward'
  ;   upvals: _ENV
  ;   locals: self(0-24), activityType(0-24), virtualDBTable(0-24)
  0000  GETTABUP  R3 = _ENV[K1('DayExtraRewardActivityDefinition')]
  0001  GETTABLE  R3 = R3[R1]
  0002  SETTABLE  R0[K0('m_activityDefinition')] = R3
  0003  GETTABUP  R3 = _ENV[K2('BaseActivityModel')]
  0004  GETTABLE  R3 = R3[K3('Init')]
  0005  MOVE      R4 = R0
  0006  MOVE      R5 = R0
  0007  MOVE      R6 = R0
  0008  CALL      R3 = call(R3, 0 args, 3 rets)
  0009  GETTABUP  R3 = _ENV[K4('EventDispatcher')]
  0010  GETTABLE  R3 = R3[K5('AddListener')]
  0011  GETTABUP  R4 = _ENV[K6('EEventType')]
  0012  GETTABLE  R4 = R4[K7('OrderFinished')]
  0013  MOVE      R5 = R0
  0014  GETTABLE  R6 = R0[K8('_OnOrderFinished')]
  0015  CALL      R3 = call(R3, 0 args, 3 rets)
  0016  GETTABUP  R3 = _ENV[K4('EventDispatcher')]
  0017  GETTABLE  R3 = R3[K5('AddListener')]
  0018  GETTABUP  R4 = _ENV[K6('EEventType')]
  0019  GETTABLE  R4 = R4[K9('OnClaimedOrderGroupReward')]
  0020  MOVE      R5 = R0
  0021  GETTABLE  R6 = R0[K10('_OnClaimedOrderGroupReward')]
  0022  CALL      R3 = call(R3, 0 args, 3 rets)
  0023  RETURN    return R0..R-1
; ---------- proto1 [GetActivityDefinition] ----------
  ; fn ?  line 35-37 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
; ---------- proto2 [_CalculateState] ----------
  ; fn ?  line 43-49 np=2 va=0 ms=6 code=30 consts=10 upvals=1 protos=0
  ;   K[0]='BaseActivityModel'
  ;   K[1]='_CalculateState'
  ;   K[2]='ActivityState'
  ;   K[3]='Started'
  ;   K[4]='IsTriggered'
  ;   K[5]='IsInDuration'
  ;   K[6]='CanClaimReward'
  ;   K[7]='Ended'
  ;   K[8]='m_config'
  ;   K[9]='rTime'
  ;   upvals: _ENV
  ;   locals: self(0-30), bIgnoreCondition(0-30), state(5-30), nextStateTime(5-30)
  0000  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
  0001  GETTABLE  R2 = R2[K1('_CalculateState')]
  0002  MOVE      R3 = R0
  0003  MOVE      R4 = R0
  0004  CALL      R2 = call(R2, 2 args, 2 rets)
  0005  GETTABUP  R4 = _ENV[K2('ActivityState')]
  0006  GETTABLE  R4 = R4[K3('Started')]
  0007  EQ        if R0 eq R4   -> -130035
  0008  JMP       (jump)   -> 26
  0009  SELF      R5 = R0[K4('IsTriggered')] (self)
  0010  CALL      R4 = call(R4, 1 args, 1 rets)
  0011  TEST      if not R4 then   -> -131059
  0012  JMP       (jump)   -> 26
  0013  SELF      R5 = R0[K5('IsInDuration')] (self)
  0014  CALL      R4 = call(R4, 1 args, 1 rets)
  0015  TEST      if not R4 then   -> -131054
  0016  JMP       (jump)   -> 26
  0017  SELF      R5 = R0[K6('CanClaimReward')] (self)
  0018  CALL      R4 = call(R4, 1 args, 1 rets)
  0019  TEST      if not R4 then   -> -131050
  0020  JMP       (jump)   -> 26
  0021  GETTABUP  R4 = _ENV[K2('ActivityState')]
  0022  GETTABLE  R4 = R4[K7('Ended')]
  0023  GETTABLE  R5 = R0[K8('m_config')]
  0024  GETTABLE  R5 = R5[K9('rTime')]
  0025  RETURN    return R4..R3
  0026  MOVE      R4 = R0
  0027  MOVE      R5 = R0
  0028  RETURN    return R4..R3
  0029  RETURN    return R0..R-1
; ---------- proto3 [_OnStateChanged] ----------
  ; fn ?  line 52-57 np=1 va=0 ms=3 code=9 consts=4 upvals=1 protos=0
  ;   K[0]='BaseActivityModel'
  ;   K[1]='_OnStateChanged'
  ;   K[2]='_DispatchStateChangedEvent'
  ;   K[3]='_DispatchRefreshEntryEvent'
  ;   upvals: _ENV
  ;   locals: self(0-9)
  0000  GETTABUP  R1 = _ENV[K0('BaseActivityModel')]
  0001  GETTABLE  R1 = R1[K1('_OnStateChanged')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  SELF      R2 = R0[K2('_DispatchStateChangedEvent')] (self)
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  SELF      R2 = R0[K3('_DispatchRefreshEntryEvent')] (self)
  0007  CALL      R1 = call(R1, 0 args, 1 rets)
  0008  RETURN    return R0..R-1
; ---------- proto4 [GetResourceLabels] ----------
  ; fn ?  line 60-62 np=1 va=0 ms=3 code=5 consts=2 upvals=0 protos=0
  ;   K[0]='GetActivityDefinition'
  ;   K[1]='ResourceLabels'
  ;   locals: self(0-5)
  0000  SELF      R2 = R0[K0('GetActivityDefinition')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  GETTABLE  R1 = R1[K1('ResourceLabels')]
  0003  RETURN    return R1..R0
  0004  RETURN    return R0..R-1
; ---------- proto5 [_LoadOtherServerConfig] ----------
  ; fn ?  line 69-84 np=2 va=0 ms=14 code=28 consts=12 upvals=1 protos=0
  ;   K[0]='Table'
  ;   K[1]='DeepCopy'
  ;   K[2]='DayExtraRewardActivityModel'
  ;   K[3]='RewardConfigKey'
  ;   K[4]='m_rewardConfig'
  ;   K[5]='ipairs'
  ;   K[6]='table'
  ;   K[7]='insert'
  ;   K[8]='DayExtraRewardActivityConfig'
  ;   K[9]='Create'
  ;   K[10]='GetActivityDefinition'
  ;   K[11]='CheckConfigValid'
  ;   upvals: _ENV
  ;   locals: self(0-28), config(0-28), arrRewardConfig(7-28), (for generator)(12-25), (for state)(12-25), (for control)(12-25), _(13-23), config(13-23)
  0000  GETTABUP  R2 = _ENV[K0('Table')]
  0001  GETTABLE  R2 = R2[K1('DeepCopy')]
  0002  GETTABUP  R3 = _ENV[K2('DayExtraRewardActivityModel')]
  0003  GETTABLE  R3 = R3[K3('RewardConfigKey')]
  0004  GETTABLE  R3 = R1[R3]
  0005  LOADBOOL  R4 = true
  0006  CALL      R2 = call(R2, 1 args, 2 rets)
  0007  NEWTABLE  R3 = {} (0 items)
  0008  SETTABLE  R0[K4('m_rewardConfig')] = R3
  0009  GETTABUP  R3 = _ENV[K5('ipairs')]
  0010  MOVE      R4 = R0
  0011  CALL      R3 = call(R3, 3 args, 1 rets)
  0012  JMP       (jump)   -> 23
  0013  GETTABUP  R8 = _ENV[K6('table')]
  0014  GETTABLE  R8 = R8[K7('insert')]
  0015  GETTABLE  R9 = R0[K4('m_rewardConfig')]
  0016  GETTABUP  R10 = _ENV[K8('DayExtraRewardActivityConfig')]
  0017  GETTABLE  R10 = R10[K9('Create')]
  0018  MOVE      R11 = R0
  0019  SELF      R13 = R0[K10('GetActivityDefinition')] (self)
  0020  CALL      R12 = call(R12, -1 args, 1 rets)
  0021  CALL      R10 = call(R10, -1 args, -1 rets)
  0022  CALL      R8 = call(R8, 0 args, -1 rets)
  0023  TFORCALL  tforcall R3
  0024  TFORLOOP  tforloop R5(sBx=-12)   -> 13
  0025  SELF      R4 = R0[K11('CheckConfigValid')] (self)
  0026  CALL      R3 = call(R3, 0 args, 1 rets)
  0027  RETURN    return R0..R-1
; ---------- proto6 [CheckConfigValid] ----------
  ; fn ?  line 86-141 np=1 va=0 ms=13 code=111 consts=32 upvals=1 protos=2
  ;   K[0]='GameConfig'
  ;   K[1]='IsTestMode'
  ;   K[2]='GetDuration'
  ;   K[3]=0
  ;   K[4]='Log'
  ;   K[5]='Error'
  ;   K[6]='[限时天数额外奖励] 活动时长没配或小于等于0，请检查！'
  ;   K[7]='GetProtectTime'
  ;   K[8]='[限时天数额外奖励] 活动时长小于等于保护时间，活动不能开启，请检查！活动时长：'
  ;   K[9]='tostring'
  ;   K[10]='，保护时间：'
  ;   K[11]='Table'
  ;   K[12]='ShallowCopy'
  ;   K[13]='m_rewardConfig'
  ;   K[14]='[限时天数额外奖励] 配置出错, 缺少关联表：'
  ;   K[15]='DayExtraRewardActivityModel'
  ;   K[16]='RewardConfigKey'
  ;   K[17]='！'
  ;   K[18]='table'
  ;   K[19]='sort'
  ;   K[20]='ipairs'
  ;   K[21]='[限时天数额外奖励] 配置出错, score_min的值大于score_max的值，请检查！'
  ;   K[22]=nil
  ;   K[23]='math'
  ;   K[24]='abs'
  ;   K[25]=0.001
  ;   K[26]='[限时天数额外奖励] 配置出错, score的总区间不连续请检查！'
  ;   K[27]=1
  ;   K[28]='score_min'
  ;   K[29]='[限时天数额外奖励] 配置出错, 第一个score_min的配置必须是0或空值！'
  ;   K[30]='score_max'
  ;   K[31]='[限时天数额外奖励] 配置出错, 最后一个score_max的配置必须是空值！'
  ;   upvals: _ENV
  ;   locals: self(0-111), tmpConfig(38-111), getMinMaxFunc(58-111), scoreMin(59-111), scoreMax(59-111), lastMax(59-111), (for generator)(62-89), (for state)(62-89), (for control)(62-89), _(63-87), config(63-87)
  0000  GETTABUP  R1 = _ENV[K0('GameConfig')]
  0001  GETTABLE  R1 = R1[K1('IsTestMode')]
  0002  CALL      R1 = call(R1, 1 args, 0 rets)
  0003  TEST      if not R1 then   -> -131066
  0004  JMP       (jump)   -> 6
  0005  RETURN    return R0..R-1
  0006  SELF      R2 = R0[K2('GetDuration')] (self)
  0007  CALL      R1 = call(R1, 1 args, 1 rets)
  0008  LE        if R0 le K3(0)   -> -130291
  0009  JMP       (jump)   -> 14
  0010  GETTABUP  R1 = _ENV[K4('Log')]
  0011  GETTABLE  R1 = R1[K5('Error')]
  0012  LOADK     R2 = K6 '[限时天数额外奖励] 活动时长没配或小于等于0，请检查！'
  0013  CALL      R1 = call(R1, 0 args, 1 rets)
  0014  SELF      R2 = R0[K2('GetDuration')] (self)
  0015  CALL      R1 = call(R1, 1 args, 1 rets)
  0016  SELF      R3 = R0[K7('GetProtectTime')] (self)
  0017  CALL      R2 = call(R2, 1 args, 1 rets)
  0018  LE        if R0 le R2   -> -130538
  0019  JMP       (jump)   -> 34
  0020  GETTABUP  R1 = _ENV[K4('Log')]
  0021  GETTABLE  R1 = R1[K5('Error')]
  0022  LOADK     R2 = K8 '[限时天数额外奖励] 活动时长小于等于保护时间，活动不能开启，请检查！活动时长：'
  0023  GETTABUP  R3 = _ENV[K9('tostring')]
  0024  SELF      R5 = R0[K2('GetDuration')] (self)
  0025  CALL      R4 = call(R4, -1 args, 1 rets)
  0026  CALL      R3 = call(R3, 1 args, -1 rets)
  0027  LOADK     R4 = K10 '，保护时间：'
  0028  GETTABUP  R5 = _ENV[K9('tostring')]
  0029  SELF      R7 = R0[K7('GetProtectTime')] (self)
  0030  CALL      R6 = call(R6, -1 args, 1 rets)
  0031  CALL      R5 = call(R5, 1 args, -1 rets)
  0032  CONCAT    R2 = concat(R2..R2)
  0033  CALL      R1 = call(R1, 0 args, 1 rets)
  0034  GETTABUP  R1 = _ENV[K11('Table')]
  0035  GETTABLE  R1 = R1[K12('ShallowCopy')]
  0036  GETTABLE  R2 = R0[K13('m_rewardConfig')]
  0037  CALL      R1 = call(R1, 1 args, 1 rets)
  0038  LEN       R2 = len R0
  0039  LE        if R0 le K3(0)   -> -129748
  0040  JMP       (jump)   -> 52
  0041  GETTABUP  R2 = _ENV[K4('Log')]
  0042  GETTABLE  R2 = R2[K5('Error')]
  0043  LOADK     R3 = K14 '[限时天数额外奖励] 配置出错, 缺少关联表：'
  0044  GETTABUP  R4 = _ENV[K9('tostring')]
  0045  GETTABUP  R5 = _ENV[K15('DayExtraRewardActivityModel')]
  0046  GETTABLE  R5 = R5[K16('RewardConfigKey')]
  0047  CALL      R4 = call(R4, 1 args, 1 rets)
  0048  LOADK     R5 = K17 '！'
  0049  CONCAT    R3 = concat(R3..R3)
  0050  CALL      R2 = call(R2, 0 args, 1 rets)
  0051  RETURN    return R0..R-1
  0052  GETTABUP  R2 = _ENV[K18('table')]
  0053  GETTABLE  R2 = R2[K19('sort')]
  0054  MOVE      R3 = R0
  0055  CLOSURE   R4 = closure proto0
  0056  CALL      R2 = call(R2, 0 args, 2 rets)
  0057  CLOSURE   R2 = closure proto1
  0058  LOADNIL   R3..R3 = nil
  0059  GETTABUP  R6 = _ENV[K20('ipairs')]
  0060  MOVE      R7 = R0
  0061  CALL      R6 = call(R6, 3 args, 1 rets)
  0062  JMP       (jump)   -> 87
  0063  MOVE      R11 = R0
  0064  MOVE      R12 = R0
  0065  CALL      R11 = call(R11, 2 args, 1 rets)
  0066  MOVE      R4 = R0
  0067  MOVE      R3 = R0
  0068  LT        if R0 lt R3   -> -128951
  0069  JMP       (jump)   -> 74
  0070  GETTABUP  R11 = _ENV[K4('Log')]
  0071  GETTABLE  R11 = R11[K5('Error')]
  0072  LOADK     R12 = K21 '[限时天数额外奖励] 配置出错, score_min的值大于score_max的值，请检查！'
  0073  CALL      R11 = call(R11, 0 args, 1 rets)
  0074  EQ        if R1 eq K22(nil)   -> -128158
  0075  JMP       (jump)   -> 86
  0076  GETTABUP  R11 = _ENV[K23('math')]
  0077  GETTABLE  R11 = R11[K24('abs')]
  0078  SUB       R12 = R3 sub R5
  0079  CALL      R11 = call(R11, 1 args, 1 rets)
  0080  LT        if R0 lt R11   -> 12893
  0081  JMP       (jump)   -> 86
  0082  GETTABUP  R11 = _ENV[K4('Log')]
  0083  GETTABLE  R11 = R11[K5('Error')]
  0084  LOADK     R12 = K26 '[限时天数额外奖励] 配置出错, score的总区间不连续请检查！'
  0085  CALL      R11 = call(R11, 0 args, 1 rets)
  0086  MOVE      R5 = R0
  0087  TFORCALL  tforcall R6
  0088  TFORLOOP  tforloop R8(sBx=-26)   -> 63
  0089  GETTABLE  R6 = R1[K27(1)]
  0090  GETTABLE  R6 = R6[K28('score_min')]
  0091  EQ        if R1 eq K3(0)   -> -127648
  0092  JMP       (jump)   -> 101
  0093  GETTABLE  R6 = R1[K27(1)]
  0094  GETTABLE  R6 = R6[K28('score_min')]
  0095  EQ        if R1 eq K22(nil)   -> -127625
  0096  JMP       (jump)   -> 101
  0097  GETTABUP  R6 = _ENV[K4('Log')]
  0098  GETTABLE  R6 = R6[K5('Error')]
  0099  LOADK     R7 = K29 '[限时天数额外奖励] 配置出错, 第一个score_min的配置必须是0或空值！'
  0100  CALL      R6 = call(R6, 0 args, 1 rets)
  0101  LEN       R6 = len R0
  0102  GETTABLE  R6 = R1[R6]
  0103  GETTABLE  R6 = R6[K30('score_max')]
  0104  EQ        if R1 eq K22(nil)   -> -127616
  0105  JMP       (jump)   -> 110
  0106  GETTABUP  R6 = _ENV[K4('Log')]
  0107  GETTABLE  R6 = R6[K5('Error')]
  0108  LOADK     R7 = K31 '[限时天数额外奖励] 配置出错, 最后一个score_max的配置必须是空值！'
  0109  CALL      R6 = call(R6, 0 args, 1 rets)
  0110  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 107-112 np=2 va=0 ms=5 code=16 consts=3 upvals=1 protos=0
    ;   K[0]='score_min'
    ;   K[1]='math'
    ;   K[2]='mininteger'
    ;   upvals: _ENV
    ;   locals: a(0-16), b(0-16), minA(5-16), minB(10-16)
    0000  GETTABLE  R2 = R0[K0('score_min')]
    0001  TEST      if not R2 then   -> -131068
    0002  JMP       (jump)   -> 5
    0003  GETTABUP  R2 = _ENV[K1('math')]
    0004  GETTABLE  R2 = R2[K2('mininteger')]
    0005  GETTABLE  R3 = R1[K0('score_min')]
    0006  TEST      if not R3 then   -> -131063
    0007  JMP       (jump)   -> 10
    0008  GETTABUP  R3 = _ENV[K1('math')]
    0009  GETTABLE  R3 = R3[K2('mininteger')]
    0010  LT        if R1 lt R3   -> -130033
    0011  JMP       (jump)   -> 13
    0012  LOADBOOL  R4 = false
    0013  LOADBOOL  R4 = true
    0014  RETURN    return R4..R3
    0015  RETURN    return R0..R-1
  ; ---------- proto1 [] ----------
    ; fn ?  line 114-116 np=1 va=0 ms=3 code=12 consts=5 upvals=1 protos=0
    ;   K[0]='score_min'
    ;   K[1]='math'
    ;   K[2]='mininteger'
    ;   K[3]='score_max'
    ;   K[4]='maxinteger'
    ;   upvals: _ENV
    ;   locals: config(0-12)
    0000  GETTABLE  R1 = R0[K0('score_min')]
    0001  TEST      if not R1 then   -> -131068
    0002  JMP       (jump)   -> 5
    0003  GETTABUP  R1 = _ENV[K1('math')]
    0004  GETTABLE  R1 = R1[K2('mininteger')]
    0005  GETTABLE  R2 = R0[K3('score_max')]
    0006  TEST      if not R2 then   -> -131063
    0007  JMP       (jump)   -> 10
    0008  GETTABUP  R2 = _ENV[K1('math')]
    0009  GETTABLE  R2 = R2[K4('maxinteger')]
    0010  RETURN    return R1..R0
    0011  RETURN    return R0..R-1
; ---------- proto7 [HasConfig] ----------
  ; fn ?  line 144-146 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
; ---------- proto8 [GetFilteredRewardsByScore] ----------
  ; fn ?  line 150-158 np=2 va=0 ms=10 code=31 consts=9 upvals=1 protos=0
  ;   K[0]='IsTriggered'
  ;   K[1]='GetTriggerOrderScore'
  ;   K[2]='GetRemainOrdersScore'
  ;   K[3]='ipairs'
  ;   K[4]='m_rewardConfig'
  ;   K[5]='CheckOrderScoreRange'
  ;   K[6]='GetFilteredRewards'
  ;   K[7]='Table'
  ;   K[8]='Empty'
  ;   upvals: _ENV
  ;   locals: self(0-31), orderScore(0-31), (for generator)(16-27), (for state)(16-27), (for control)(16-27), _(17-25), rewardConfig(17-25)
  0000  TEST      if not R1 then   -> -131069
  0001  JMP       (jump)   -> 13
  0002  SELF      R3 = R0[K0('IsTriggered')] (self)
  0003  CALL      R2 = call(R2, 1 args, 1 rets)
  0004  TEST      if not R2 then   -> -131066
  0005  JMP       (jump)   -> 10
  0006  SELF      R3 = R0[K1('GetTriggerOrderScore')] (self)
  0007  CALL      R2 = call(R2, 1 args, 1 rets)
  0008  TESTSET   if R1 then R1   -> -130037
  0009  JMP       (jump)   -> 13
  0010  SELF      R3 = R0[K2('GetRemainOrdersScore')] (self)
  0011  CALL      R2 = call(R2, 1 args, 1 rets)
  0012  MOVE      R1 = R0
  0013  GETTABUP  R2 = _ENV[K3('ipairs')]
  0014  GETTABLE  R3 = R0[K4('m_rewardConfig')]
  0015  CALL      R2 = call(R2, 3 args, 1 rets)
  0016  JMP       (jump)   -> 25
  0017  SELF      R8 = R6[K5('CheckOrderScoreRange')] (self)
  0018  MOVE      R9 = R0
  0019  CALL      R7 = call(R7, 1 args, 2 rets)
  0020  TEST      if not R7 then   -> -131050
  0021  JMP       (jump)   -> 25
  0022  SELF      R8 = R6[K6('GetFilteredRewards')] (self)
  0023  TAILCALL  tailcall(R7, 0)
  0024  RETURN    return R7..R6
  0025  TFORCALL  tforcall R2
  0026  TFORLOOP  tforloop R4(sBx=-10)   -> 17
  0027  GETTABUP  R2 = _ENV[K7('Table')]
  0028  GETTABLE  R2 = R2[K8('Empty')]
  0029  RETURN    return R2..R1
  0030  RETURN    return R0..R-1
; ---------- proto9 [GetDuration] ----------
  ; fn ?  line 161-163 np=1 va=0 ms=5 code=10 consts=5 upvals=2 protos=0
  ;   K[0]='GetGeneralConfig'
  ;   K[1]='DurationInSeconds'
  ;   K[2]='EConfigParamType'
  ;   K[3]='Int'
  ;   K[4]=0
  ;   upvals: GeneralActivityConfKey, _ENV
  ;   locals: self(0-10)
  0000  SELF      R2 = R0[K0('GetGeneralConfig')] (self)
  0001  GETTABUP  R3 = GeneralActivityConfKey[K1('DurationInSeconds')]
  0002  GETTABUP  R4 = _ENV[K2('EConfigParamType')]
  0003  GETTABLE  R4 = R4[K3('Int')]
  0004  CALL      R1 = call(R1, 1 args, 3 rets)
  0005  TEST      if not R1 then   -> -131064
  0006  JMP       (jump)   -> 8
  0007  LOADK     R1 = K4 0
  0008  RETURN    return R1..R0
  0009  RETURN    return R0..R-1
; ---------- proto10 [GetProtectTime] ----------
  ; fn ?  line 166-168 np=1 va=0 ms=5 code=10 consts=5 upvals=2 protos=0
  ;   K[0]='GetGeneralConfig'
  ;   K[1]='ProtectTimeInSeconds'
  ;   K[2]='EConfigParamType'
  ;   K[3]='Int'
  ;   K[4]=0
  ;   upvals: GeneralActivityConfKey, _ENV
  ;   locals: self(0-10)
  0000  SELF      R2 = R0[K0('GetGeneralConfig')] (self)
  0001  GETTABUP  R3 = GeneralActivityConfKey[K1('ProtectTimeInSeconds')]
  0002  GETTABUP  R4 = _ENV[K2('EConfigParamType')]
  0003  GETTABLE  R4 = R4[K3('Int')]
  0004  CALL      R1 = call(R1, 1 args, 3 rets)
  0005  TEST      if not R1 then   -> -131064
  0006  JMP       (jump)   -> 8
  0007  LOADK     R1 = K4 0
  0008  RETURN    return R1..R0
  0009  RETURN    return R0..R-1
; ---------- proto11 [GetMaxTriggerCount] ----------
  ; fn ?  line 171-173 np=1 va=0 ms=5 code=7 consts=4 upvals=2 protos=0
  ;   K[0]='GetGeneralConfig'
  ;   K[1]='MaxTriggerCount'
  ;   K[2]='EConfigParamType'
  ;   K[3]='Int'
  ;   upvals: GeneralActivityConfKey, _ENV
  ;   locals: self(0-7)
  0000  SELF      R2 = R0[K0('GetGeneralConfig')] (self)
  0001  GETTABUP  R3 = GeneralActivityConfKey[K1('MaxTriggerCount')]
  0002  GETTABUP  R4 = _ENV[K2('EConfigParamType')]
  0003  GETTABLE  R4 = R4[K3('Int')]
  0004  TAILCALL  tailcall(R1, 0)
  0005  RETURN    return R1..R0
  0006  RETURN    return R0..R-1
; ---------- proto12 [_DBTableGetValue] ----------
  ; fn ?  line 184-186 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
; ---------- proto13 [_DBTableGetNumber] ----------
  ; fn ?  line 190-193 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
; ---------- proto14 [_DBTableSet] ----------
  ; fn ?  line 197-199 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
; ---------- proto15 [_DBTableRemove] ----------
  ; fn ?  line 202-204 np=2 va=0 ms=6 code=6 consts=2 upvals=1 protos=0
  ;   K[0]='m_dbTable'
  ;   K[1]='Remove'
  ;   upvals: DB_VALUE_KEY
  ;   locals: self(0-6), key(0-6)
  0000  GETTABLE  R2 = R0[K0('m_dbTable')]
  0001  SELF      R3 = R2[K1('Remove')] (self)
  0002  MOVE      R4 = R0
  0003  GETUPVAL  R5 = DB_VALUE_KEY
  0004  CALL      R2 = call(R2, 0 args, 3 rets)
  0005  RETURN    return R0..R-1
; ---------- proto16 [GetTriggeredCount] ----------
  ; fn ?  line 206-208 np=1 va=0 ms=4 code=5 consts=2 upvals=1 protos=0
  ;   K[0]='_DBTableGetNumber'
  ;   K[1]='TriggeredCount'
  ;   upvals: DBKey
  ;   locals: self(0-5)
  0000  SELF      R2 = R0[K0('_DBTableGetNumber')] (self)
  0001  GETTABUP  R3 = DBKey[K1('TriggeredCount')]
  0002  TAILCALL  tailcall(R1, 0)
  0003  RETURN    return R1..R0
  0004  RETURN    return R0..R-1
; ---------- proto17 [SetTriggeredCount] ----------
  ; fn ?  line 211-213 np=2 va=0 ms=6 code=5 consts=2 upvals=1 protos=0
  ;   K[0]='_DBTableSet'
  ;   K[1]='TriggeredCount'
  ;   upvals: DBKey
  ;   locals: self(0-5), triggeredCount(0-5)
  0000  SELF      R3 = R0[K0('_DBTableSet')] (self)
  0001  GETTABUP  R4 = DBKey[K1('TriggeredCount')]
  0002  MOVE      R5 = R0
  0003  CALL      R2 = call(R2, 0 args, 3 rets)
  0004  RETURN    return R0..R-1
; ---------- proto18 [GetTriggerOrderDay] ----------
  ; fn ?  line 215-217 np=1 va=0 ms=4 code=5 consts=2 upvals=1 protos=0
  ;   K[0]='_DBTableGetNumber'
  ;   K[1]='TriggerOrderDay'
  ;   upvals: DBKey
  ;   locals: self(0-5)
  0000  SELF      R2 = R0[K0('_DBTableGetNumber')] (self)
  0001  GETTABUP  R3 = DBKey[K1('TriggerOrderDay')]
  0002  TAILCALL  tailcall(R1, 0)
  0003  RETURN    return R1..R0
  0004  RETURN    return R0..R-1
; ---------- proto19 [SetTriggerOrderDay] ----------
  ; fn ?  line 220-222 np=2 va=0 ms=6 code=5 consts=2 upvals=1 protos=0
  ;   K[0]='_DBTableSet'
  ;   K[1]='TriggerOrderDay'
  ;   upvals: DBKey
  ;   locals: self(0-5), triggerOrderDay(0-5)
  0000  SELF      R3 = R0[K0('_DBTableSet')] (self)
  0001  GETTABUP  R4 = DBKey[K1('TriggerOrderDay')]
  0002  MOVE      R5 = R0
  0003  CALL      R2 = call(R2, 0 args, 3 rets)
  0004  RETURN    return R0..R-1
; ---------- proto20 [RemoveTriggerOrderDay] ----------
  ; fn ?  line 224-226 np=1 va=0 ms=4 code=4 consts=2 upvals=1 protos=0
  ;   K[0]='_DBTableRemove'
  ;   K[1]='TriggerOrderDay'
  ;   upvals: DBKey
  ;   locals: self(0-4)
  0000  SELF      R2 = R0[K0('_DBTableRemove')] (self)
  0001  GETTABUP  R3 = DBKey[K1('TriggerOrderDay')]
  0002  CALL      R1 = call(R1, 0 args, 2 rets)
  0003  RETURN    return R0..R-1
; ---------- proto21 [GetTriggerOrderScore] ----------
  ; fn ?  line 228-230 np=1 va=0 ms=4 code=5 consts=2 upvals=1 protos=0
  ;   K[0]='_DBTableGetNumber'
  ;   K[1]='TriggerOrderScore'
  ;   upvals: DBKey
  ;   locals: self(0-5)
  0000  SELF      R2 = R0[K0('_DBTableGetNumber')] (self)
  0001  GETTABUP  R3 = DBKey[K1('TriggerOrderScore')]
  0002  TAILCALL  tailcall(R1, 0)
  0003  RETURN    return R1..R0
  0004  RETURN    return R0..R-1
; ---------- proto22 [SetTriggerOrderScore] ----------
  ; fn ?  line 233-235 np=2 va=0 ms=6 code=5 consts=2 upvals=1 protos=0
  ;   K[0]='_DBTableSet'
  ;   K[1]='TriggerOrderScore'
  ;   upvals: DBKey
  ;   locals: self(0-5), orderScore(0-5)
  0000  SELF      R3 = R0[K0('_DBTableSet')] (self)
  0001  GETTABUP  R4 = DBKey[K1('TriggerOrderScore')]
  0002  MOVE      R5 = R0
  0003  CALL      R2 = call(R2, 0 args, 3 rets)
  0004  RETURN    return R0..R-1
; ---------- proto23 [GetTriggerEndTime] ----------
  ; fn ?  line 237-240 np=1 va=0 ms=8 code=17 consts=9 upvals=2 protos=0
  ;   K[0]='_DBTableGetNumber'
  ;   K[1]='TriggerEndTime'
  ;   K[2]='math'
  ;   K[3]='min'
  ;   K[4]='GM'
  ;   K[5]='GameModel'
  ;   K[6]='GetServerTime'
  ;   K[7]='GetDuration'
  ;   K[8]='GetEndTime'
  ;   upvals: DBKey, _ENV
  ;   locals: self(0-17)
  0000  SELF      R2 = R0[K0('_DBTableGetNumber')] (self)
  0001  GETTABUP  R3 = DBKey[K1('TriggerEndTime')]
  0002  GETTABUP  R4 = _ENV[K2('math')]
  0003  GETTABLE  R4 = R4[K3('min')]
  0004  GETTABUP  R5 = _ENV[K4('GM')]
  0005  GETTABLE  R5 = R5[K5('GameModel')]
  0006  SELF      R6 = R5[K6('GetServerTime')] (self)
  0007  CALL      R5 = call(R5, 1 args, 1 rets)
  0008  SELF      R7 = R0[K7('GetDuration')] (self)
  0009  CALL      R6 = call(R6, 1 args, 1 rets)
  0010  ADD       R5 = R6 add R5
  0011  SELF      R7 = R0[K8('GetEndTime')] (self)
  0012  CALL      R6 = call(R6, -1 args, 1 rets)
  0013  CALL      R4 = call(R4, -1 args, -1 rets)
  0014  TAILCALL  tailcall(R1, 0)
  0015  RETURN    return R1..R0
  0016  RETURN    return R0..R-1
; ---------- proto24 [SetTriggerEndTime] ----------
  ; fn ?  line 243-245 np=2 va=0 ms=6 code=5 consts=2 upvals=1 protos=0
  ;   K[0]='_DBTableSet'
  ;   K[1]='TriggerEndTime'
  ;   upvals: DBKey
  ;   locals: self(0-5), triggerEndTime(0-5)
  0000  SELF      R3 = R0[K0('_DBTableSet')] (self)
  0001  GETTABUP  R4 = DBKey[K1('TriggerEndTime')]
  0002  MOVE      R5 = R0
  0003  CALL      R2 = call(R2, 0 args, 3 rets)
  0004  RETURN    return R0..R-1
; ---------- proto25 [CanClaimReward] ----------
  ; fn ?  line 247-249 np=1 va=0 ms=4 code=10 consts=2 upvals=2 protos=0
  ;   K[0]='_DBTableGetNumber'
  ;   K[1]='CanClaimReward'
  ;   upvals: DBKey, TRUE_VALUE
  ;   locals: self(0-10)
  0000  SELF      R2 = R0[K0('_DBTableGetNumber')] (self)
  0001  GETTABUP  R3 = DBKey[K1('CanClaimReward')]
  0002  CALL      R1 = call(R1, 1 args, 2 rets)
  0003  GETUPVAL  R2 = DBKey
  0004  EQ        if R1 eq R2   -> -130552
  0005  JMP       (jump)   -> 7
  0006  LOADBOOL  R1 = false
  0007  LOADBOOL  R1 = true
  0008  RETURN    return R1..R0
  0009  RETURN    return R0..R-1
; ---------- proto26 [SetCanClaimReward] ----------
  ; fn ?  line 251-253 np=1 va=0 ms=5 code=5 consts=2 upvals=2 protos=0
  ;   K[0]='_DBTableSet'
  ;   K[1]='CanClaimReward'
  ;   upvals: DBKey, TRUE_VALUE
  ;   locals: self(0-5)
  0000  SELF      R2 = R0[K0('_DBTableSet')] (self)
  0001  GETTABUP  R3 = DBKey[K1('CanClaimReward')]
  0002  GETUPVAL  R4 = DBKey
  0003  CALL      R1 = call(R1, 0 args, 3 rets)
  0004  RETURN    return R0..R-1
; ---------- proto27 [RemoveCanClaimReward] ----------
  ; fn ?  line 255-257 np=1 va=0 ms=4 code=4 consts=2 upvals=1 protos=0
  ;   K[0]='_DBTableRemove'
  ;   K[1]='CanClaimReward'
  ;   upvals: DBKey
  ;   locals: self(0-4)
  0000  SELF      R2 = R0[K0('_DBTableRemove')] (self)
  0001  GETTABUP  R3 = DBKey[K1('CanClaimReward')]
  0002  CALL      R1 = call(R1, 0 args, 2 rets)
  0003  RETURN    return R0..R-1
; ---------- proto28 [HasTriggeredOnce] ----------
  ; fn ?  line 263-265 np=1 va=0 ms=3 code=8 consts=2 upvals=0 protos=0
  ;   K[0]='GetTriggeredCount'
  ;   K[1]=0
  ;   locals: self(0-8)
  0000  SELF      R2 = R0[K0('GetTriggeredCount')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  LT        if R1 lt R1   -> 517
  0003  JMP       (jump)   -> 5
  0004  LOADBOOL  R1 = false
  0005  LOADBOOL  R1 = true
  0006  RETURN    return R1..R0
  0007  RETURN    return R0..R-1
; ---------- proto29 [IsInDuration] ----------
  ; fn ?  line 268-270 np=1 va=0 ms=3 code=8 consts=2 upvals=0 protos=0
  ;   K[0]='GetLeftDuration'
  ;   K[1]=0
  ;   locals: self(0-8)
  0000  SELF      R2 = R0[K0('GetLeftDuration')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  LT        if R1 lt R1   -> 517
  0003  JMP       (jump)   -> 5
  0004  LOADBOOL  R1 = false
  0005  LOADBOOL  R1 = true
  0006  RETURN    return R1..R0
  0007  RETURN    return R0..R-1
; ---------- proto30 [IsActivityOpen] ----------
  ; fn ?  line 272-274 np=1 va=0 ms=3 code=10 consts=3 upvals=1 protos=0
  ;   K[0]='GetState'
  ;   K[1]='ActivityState'
  ;   K[2]='Started'
  ;   upvals: _ENV
  ;   locals: self(0-10)
  0000  SELF      R2 = R0[K0('GetState')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  GETTABUP  R2 = _ENV[K1('ActivityState')]
  0003  GETTABLE  R2 = R2[K2('Started')]
  0004  EQ        if R1 eq R2   -> -130552
  0005  JMP       (jump)   -> 7
  0006  LOADBOOL  R1 = false
  0007  LOADBOOL  R1 = true
  0008  RETURN    return R1..R0
  0009  RETURN    return R0..R-1
; ---------- proto31 [GetLeftDuration] ----------
  ; fn ?  line 277-281 np=1 va=0 ms=6 code=13 consts=7 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='GameModel'
  ;   K[2]='GetServerTime'
  ;   K[3]='GetTriggerEndTime'
  ;   K[4]='math'
  ;   K[5]='max'
  ;   K[6]=0
  ;   upvals: _ENV
  ;   locals: self(0-13), serverTime(4-13), triggerEndTime(6-13)
  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('GetTriggerEndTime')] (self)
  0005  CALL      R2 = call(R2, 1 args, 1 rets)
  0006  GETTABUP  R3 = _ENV[K4('math')]
  0007  GETTABLE  R3 = R3[K5('max')]
  0008  SUB       R4 = R1 sub R2
  0009  LOADK     R5 = K6 0
  0010  TAILCALL  tailcall(R3, 0)
  0011  RETURN    return R3..R2
  0012  RETURN    return R0..R-1
; ---------- proto32 [GetMainOrderModel] ----------
  ; fn ?  line 288-290 np=1 va=0 ms=3 code=6 consts=3 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='MainBoardModel'
  ;   K[2]='GetOrderModel'
  ;   upvals: _ENV
  ;   locals: self(0-6)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('MainBoardModel')]
  0002  SELF      R2 = R1[K2('GetOrderModel')] (self)
  0003  TAILCALL  tailcall(R1, 0)
  0004  RETURN    return R1..R0
  0005  RETURN    return R0..R-1
; ---------- proto33 [GetCurOrderDay] ----------
  ; fn ?  line 293-295 np=1 va=0 ms=3 code=6 consts=2 upvals=0 protos=0
  ;   K[0]='GetMainOrderModel'
  ;   K[1]='GetCurOrderDay'
  ;   locals: self(0-6)
  0000  SELF      R2 = R0[K0('GetMainOrderModel')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  SELF      R2 = R1[K1('GetCurOrderDay')] (self)
  0003  TAILCALL  tailcall(R1, 0)
  0004  RETURN    return R1..R0
  0005  RETURN    return R0..R-1
; ---------- proto34 [GetRemainOrdersScore] ----------
  ; fn ?  line 300-302 np=1 va=0 ms=3 code=6 consts=2 upvals=0 protos=0
  ;   K[0]='GetMainOrderModel'
  ;   K[1]='GetRemainOrdersScore'
  ;   locals: self(0-6)
  0000  SELF      R2 = R0[K0('GetMainOrderModel')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  SELF      R2 = R1[K1('GetRemainOrdersScore')] (self)
  0003  TAILCALL  tailcall(R1, 0)
  0004  RETURN    return R1..R0
  0005  RETURN    return R0..R-1
; ---------- proto35 [IsTriggered] ----------
  ; fn ?  line 309-312 np=1 va=0 ms=4 code=10 consts=2 upvals=0 protos=0
  ;   K[0]='GetTriggerOrderDay'
  ;   K[1]='GetCurOrderDay'
  ;   locals: self(0-10)
  0000  SELF      R2 = R0[K0('GetTriggerOrderDay')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  SELF      R3 = R0[K1('GetCurOrderDay')] (self)
  0003  CALL      R2 = call(R2, 1 args, 1 rets)
  0004  EQ        if R1 eq R2   -> -130552
  0005  JMP       (jump)   -> 7
  0006  LOADBOOL  R1 = false
  0007  LOADBOOL  R1 = true
  0008  RETURN    return R1..R0
  0009  RETURN    return R0..R-1
; ---------- proto36 [CanTrigger] ----------
  ; fn ?  line 315-347 np=1 va=0 ms=4 code=49 consts=11 upvals=1 protos=0
  ;   K[0]='IsActivityOpen'
  ;   K[1]='IsTriggered'
  ;   K[2]='GetLeftDuration'
  ;   K[3]=0
  ;   K[4]='GetMainOrderModel'
  ;   K[5]='HasClaimedGroupReward'
  ;   K[6]='GetMaxTriggerCount'
  ;   K[7]='GetTriggeredCount'
  ;   K[8]='Table'
  ;   K[9]='IsEmpty'
  ;   K[10]='GetFilteredRewardsByScore'
  ;   upvals: _ENV
  ;   locals: self(0-49)
  0000  SELF      R2 = R0[K0('IsActivityOpen')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  TEST      if not R1 then   -> -131067
  0003  JMP       (jump)   -> 5
  0004  RETURN    return R0..R-1
  0005  SELF      R2 = R0[K1('IsTriggered')] (self)
  0006  CALL      R1 = call(R1, 1 args, 1 rets)
  0007  TEST      if not R1 then   -> -131063
  0008  JMP       (jump)   -> 11
  0009  LOADBOOL  R1 = false
  0010  RETURN    return R1..R0
  0011  SELF      R2 = R0[K2('GetLeftDuration')] (self)
  0012  CALL      R1 = call(R1, 1 args, 1 rets)
  0013  LE        if R0 le K3(0)   -> -130286
  0014  JMP       (jump)   -> 17
  0015  LOADBOOL  R1 = false
  0016  RETURN    return R1..R0
  0017  SELF      R2 = R0[K4('GetMainOrderModel')] (self)
  0018  CALL      R1 = call(R1, 1 args, 1 rets)
  0019  SELF      R2 = R1[K5('HasClaimedGroupReward')] (self)
  0020  CALL      R1 = call(R1, 1 args, 1 rets)
  0021  TEST      if not R1 then   -> -131049
  0022  JMP       (jump)   -> 25
  0023  LOADBOOL  R1 = false
  0024  RETURN    return R1..R0
  0025  SELF      R2 = R0[K6('GetMaxTriggerCount')] (self)
  0026  CALL      R1 = call(R1, 1 args, 1 rets)
  0027  TEST      if not R1 then   -> -131043
  0028  JMP       (jump)   -> 37
  0029  SELF      R2 = R0[K7('GetTriggeredCount')] (self)
  0030  CALL      R1 = call(R1, 1 args, 1 rets)
  0031  SELF      R3 = R0[K6('GetMaxTriggerCount')] (self)
  0032  CALL      R2 = call(R2, 1 args, 1 rets)
  0033  LE        if R0 le R1   -> -130012
  0034  JMP       (jump)   -> 37
  0035  LOADBOOL  R1 = false
  0036  RETURN    return R1..R0
  0037  GETTABUP  R1 = _ENV[K8('Table')]
  0038  GETTABLE  R1 = R1[K9('IsEmpty')]
  0039  SELF      R3 = R0[K10('GetFilteredRewardsByScore')] (self)
  0040  CALL      R2 = call(R2, -1 args, 1 rets)
  0041  CALL      R1 = call(R1, 1 args, -1 rets)
  0042  TEST      if not R1 then   -> -131028
  0043  JMP       (jump)   -> 46
  0044  LOADBOOL  R1 = false
  0045  RETURN    return R1..R0
  0046  LOADBOOL  R1 = true
  0047  RETURN    return R1..R0
  0048  RETURN    return R0..R-1
; ---------- proto37 [TryTrigger] ----------
  ; fn ?  line 350-376 np=1 va=0 ms=15 code=59 consts=23 upvals=1 protos=0
  ;   K[0]='CanTrigger'
  ;   K[1]='GetCurOrderDay'
  ;   K[2]='GetRemainOrdersScore'
  ;   K[3]='Log'
  ;   K[4]='Info'
  ;   K[5]='[限时天数额外奖励] 触发活动，天数：'
  ;   K[6]='tostring'
  ;   K[7]='，订单分数：'
  ;   K[8]='（当前 '
  ;   K[9]=' + 未触发 '
  ;   K[10]='）'
  ;   K[11]='SetTriggerOrderDay'
  ;   K[12]='SetTriggerOrderScore'
  ;   K[13]='HasTriggeredOnce'
  ;   K[14]='SetTriggerEndTime'
  ;   K[15]='GetTriggerEndTime'
  ;   K[16]='SetTriggeredCount'
  ;   K[17]='GetTriggeredCount'
  ;   K[18]=1
  ;   K[19]='_DispatchRefreshEntryEvent'
  ;   K[20]='_LogAction'
  ;   K[21]='EBIType'
  ;   K[22]='DayExtraRewardStart'
  ;   upvals: _ENV
  ;   locals: self(0-59), orderDay(8-59), orderScore(10-59), scoreOngoing(10-59), scoreNotStarted(10-59)
  0000  SELF      R2 = R0[K0('CanTrigger')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  TEST      if not R1 then   -> -131067
  0003  JMP       (jump)   -> 6
  0004  LOADBOOL  R1 = false
  0005  RETURN    return R1..R0
  0006  SELF      R2 = R0[K1('GetCurOrderDay')] (self)
  0007  CALL      R1 = call(R1, 1 args, 1 rets)
  0008  SELF      R3 = R0[K2('GetRemainOrdersScore')] (self)
  0009  CALL      R2 = call(R2, 3 args, 1 rets)
  0010  GETTABUP  R5 = _ENV[K3('Log')]
  0011  GETTABLE  R5 = R5[K4('Info')]
  0012  LOADK     R6 = K5 '[限时天数额外奖励] 触发活动，天数：'
  0013  GETTABUP  R7 = _ENV[K6('tostring')]
  0014  MOVE      R8 = R0
  0015  CALL      R7 = call(R7, 1 args, 1 rets)
  0016  LOADK     R8 = K7 '，订单分数：'
  0017  GETTABUP  R9 = _ENV[K6('tostring')]
  0018  MOVE      R10 = R0
  0019  CALL      R9 = call(R9, 1 args, 1 rets)
  0020  LOADK     R10 = K8 '（当前 '
  0021  GETTABUP  R11 = _ENV[K6('tostring')]
  0022  MOVE      R12 = R0
  0023  CALL      R11 = call(R11, 1 args, 1 rets)
  0024  LOADK     R12 = K9 ' + 未触发 '
  0025  GETTABUP  R13 = _ENV[K6('tostring')]
  0026  MOVE      R14 = R0
  0027  CALL      R13 = call(R13, 1 args, 1 rets)
  0028  LOADK     R14 = K10 '）'
  0029  CONCAT    R6 = concat(R6..R6)
  0030  CALL      R5 = call(R5, 0 args, 1 rets)
  0031  SELF      R6 = R0[K11('SetTriggerOrderDay')] (self)
  0032  MOVE      R7 = R0
  0033  CALL      R5 = call(R5, 0 args, 2 rets)
  0034  SELF      R6 = R0[K12('SetTriggerOrderScore')] (self)
  0035  MOVE      R7 = R0
  0036  CALL      R5 = call(R5, 0 args, 2 rets)
  0037  SELF      R6 = R0[K13('HasTriggeredOnce')] (self)
  0038  CALL      R5 = call(R5, 1 args, 1 rets)
  0039  TEST      if not R5 then   -> -131030
  0040  JMP       (jump)   -> 45
  0041  SELF      R6 = R0[K14('SetTriggerEndTime')] (self)
  0042  SELF      R8 = R0[K15('GetTriggerEndTime')] (self)
  0043  CALL      R7 = call(R7, -1 args, 1 rets)
  0044  CALL      R5 = call(R5, 0 args, -1 rets)
  0045  SELF      R6 = R0[K16('SetTriggeredCount')] (self)
  0046  SELF      R8 = R0[K17('GetTriggeredCount')] (self)
  0047  CALL      R7 = call(R7, 1 args, 1 rets)
  0048  ADD       R7 = K18(1) add R7
  0049  CALL      R5 = call(R5, 0 args, 2 rets)
  0050  SELF      R6 = R0[K19('_DispatchRefreshEntryEvent')] (self)
  0051  CALL      R5 = call(R5, 0 args, 1 rets)
  0052  SELF      R6 = R0[K20('_LogAction')] (self)
  0053  GETTABUP  R7 = _ENV[K21('EBIType')]
  0054  GETTABLE  R7 = R7[K22('DayExtraRewardStart')]
  0055  CALL      R5 = call(R5, 0 args, 2 rets)
  0056  LOADBOOL  R5 = true
  0057  RETURN    return R5..R4
  0058  RETURN    return R0..R-1
; ---------- proto38 [OpenStartWindow] ----------
  ; fn ?  line 383-385 np=1 va=0 ms=6 code=10 consts=6 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='UIManager'
  ;   K[2]='OpenView'
  ;   K[3]='GetActivityDefinition'
  ;   K[4]='StartWindowPrefabName'
  ;   K[5]='GetType'
  ;   upvals: _ENV
  ;   locals: self(0-10)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('UIManager')]
  0002  SELF      R2 = R1[K2('OpenView')] (self)
  0003  SELF      R4 = R0[K3('GetActivityDefinition')] (self)
  0004  CALL      R3 = call(R3, 1 args, 1 rets)
  0005  GETTABLE  R3 = R3[K4('StartWindowPrefabName')]
  0006  SELF      R5 = R0[K5('GetType')] (self)
  0007  CALL      R4 = call(R4, -1 args, 1 rets)
  0008  CALL      R1 = call(R1, 0 args, -1 rets)
  0009  RETURN    return R0..R-1
; ---------- proto39 [CanPopup] ----------
  ; fn ?  line 388-398 np=1 va=0 ms=4 code=18 consts=4 upvals=0 protos=0
  ;   K[0]='CanTrigger'
  ;   K[1]='GetLeftDuration'
  ;   K[2]='GetProtectTime'
  ;   K[3]=0
  ;   locals: self(0-18)
  0000  SELF      R2 = R0[K0('CanTrigger')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  TEST      if not R1 then   -> -131067
  0003  JMP       (jump)   -> 6
  0004  LOADBOOL  R1 = false
  0005  RETURN    return R1..R0
  0006  SELF      R2 = R0[K1('GetLeftDuration')] (self)
  0007  CALL      R1 = call(R1, 1 args, 1 rets)
  0008  SELF      R3 = R0[K2('GetProtectTime')] (self)
  0009  CALL      R2 = call(R2, 1 args, 1 rets)
  0010  SUB       R1 = R2 sub R1
  0011  LE        if R0 le K3(0)   -> -130288
  0012  JMP       (jump)   -> 15
  0013  LOADBOOL  R1 = false
  0014  RETURN    return R1..R0
  0015  LOADBOOL  R1 = true
  0016  RETURN    return R1..R0
  0017  RETURN    return R0..R-1
; ---------- proto40 [OnCheckPopup] ----------
  ; fn ?  line 402-408 np=2 va=0 ms=4 code=9 consts=2 upvals=0 protos=0
  ;   K[0]='CanPopup'
  ;   K[1]='OpenStartWindow'
  ;   locals: self(0-9), ePopupScene(0-9)
  0000  SELF      R3 = R0[K0('CanPopup')] (self)
  0001  CALL      R2 = call(R2, 1 args, 1 rets)
  0002  TEST      if not R2 then   -> -131068
  0003  JMP       (jump)   -> 8
  0004  SELF      R3 = R0[K1('OpenStartWindow')] (self)
  0005  CALL      R2 = call(R2, 0 args, 1 rets)
  0006  LOADBOOL  R2 = true
  0007  RETURN    return R2..R1
  0008  RETURN    return R0..R-1
; ---------- proto41 [_DispatchStateChangedEvent] ----------
  ; fn ?  line 414-416 np=1 va=0 ms=4 code=7 consts=4 upvals=1 protos=0
  ;   K[0]='EventDispatcher'
  ;   K[1]='DispatchEvent'
  ;   K[2]='GetActivityDefinition'
  ;   K[3]='StateChangedEvent'
  ;   upvals: _ENV
  ;   locals: self(0-7)
  0000  GETTABUP  R1 = _ENV[K0('EventDispatcher')]
  0001  GETTABLE  R1 = R1[K1('DispatchEvent')]
  0002  SELF      R3 = R0[K2('GetActivityDefinition')] (self)
  0003  CALL      R2 = call(R2, 1 args, 1 rets)
  0004  GETTABLE  R2 = R2[K3('StateChangedEvent')]
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  RETURN    return R0..R-1
; ---------- proto42 [_DispatchRefreshEntryEvent] ----------
  ; fn ?  line 418-420 np=1 va=0 ms=4 code=7 consts=4 upvals=1 protos=0
  ;   K[0]='EventDispatcher'
  ;   K[1]='DispatchEvent'
  ;   K[2]='GetActivityDefinition'
  ;   K[3]='RefreshEntryEvent'
  ;   upvals: _ENV
  ;   locals: self(0-7)
  0000  GETTABUP  R1 = _ENV[K0('EventDispatcher')]
  0001  GETTABLE  R1 = R1[K1('DispatchEvent')]
  0002  SELF      R3 = R0[K2('GetActivityDefinition')] (self)
  0003  CALL      R2 = call(R2, 1 args, 1 rets)
  0004  GETTABLE  R2 = R2[K3('RefreshEntryEvent')]
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  RETURN    return R0..R-1
; ---------- proto43 [_OnOrderFinished] ----------
  ; fn ?  line 427-446 np=1 va=0 ms=5 code=26 consts=8 upvals=1 protos=0
  ;   K[0]='GetState'
  ;   K[1]='ActivityState'
  ;   K[2]='Started'
  ;   K[3]='IsTriggered'
  ;   K[4]='IsInDuration'
  ;   K[5]='GetMainOrderModel'
  ;   K[6]='CanClaimGroupReward'
  ;   K[7]='SetCanClaimReward'
  ;   upvals: _ENV
  ;   locals: self(0-26), state(2-26), orderModel(19-26)
  0000  SELF      R2 = R0[K0('GetState')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  GETTABUP  R2 = _ENV[K1('ActivityState')]
  0003  GETTABLE  R2 = R2[K2('Started')]
  0004  EQ        if R1 eq R2   -> -130552
  0005  JMP       (jump)   -> 7
  0006  RETURN    return R0..R-1
  0007  SELF      R3 = R0[K3('IsTriggered')] (self)
  0008  CALL      R2 = call(R2, 1 args, 1 rets)
  0009  TEST      if not R2 then   -> -131060
  0010  JMP       (jump)   -> 12
  0011  RETURN    return R0..R-1
  0012  SELF      R3 = R0[K4('IsInDuration')] (self)
  0013  CALL      R2 = call(R2, 1 args, 1 rets)
  0014  TEST      if not R2 then   -> -131055
  0015  JMP       (jump)   -> 17
  0016  RETURN    return R0..R-1
  0017  SELF      R3 = R0[K5('GetMainOrderModel')] (self)
  0018  CALL      R2 = call(R2, 1 args, 1 rets)
  0019  SELF      R4 = R2[K6('CanClaimGroupReward')] (self)
  0020  CALL      R3 = call(R3, 1 args, 1 rets)
  0021  TEST      if not R3 then   -> -131049
  0022  JMP       (jump)   -> 25
  0023  SELF      R4 = R0[K7('SetCanClaimReward')] (self)
  0024  CALL      R3 = call(R3, 0 args, 1 rets)
  0025  RETURN    return R0..R-1
; ---------- proto44 [_OnClaimedOrderGroupReward] ----------
  ; fn ?  line 449-452 np=1 va=0 ms=3 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='TryClaimReward'
  ;   locals: self(0-3)
  0000  SELF      R2 = R0[K0('TryClaimReward')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  RETURN    return R0..R-1
; ---------- proto45 [TryClaimReward] ----------
  ; fn ?  line 459-482 np=1 va=0 ms=8 code=39 consts=19 upvals=1 protos=0
  ;   K[0]='GetState'
  ;   K[1]='ActivityState'
  ;   K[2]='Started'
  ;   K[3]='Ended'
  ;   K[4]='CanClaimReward'
  ;   K[5]='GetFilteredRewardsByScore'
  ;   K[6]='RewardApi'
  ;   K[7]='AcquireRewardsLogic'
  ;   K[8]='EPropertySource'
  ;   K[9]='Give'
  ;   K[10]='EBIType'
  ;   K[11]='DayExtraRewardClaimReward'
  ;   K[12]='ERewardScene'
  ;   K[13]='Other'
  ;   K[14]='_LogAction'
  ;   K[15]='DayExtraRewardFinish'
  ;   K[16]='RemoveTriggerOrderDay'
  ;   K[17]='RemoveCanClaimReward'
  ;   K[18]='_DispatchRefreshEntryEvent'
  ;   upvals: _ENV
  ;   locals: self(0-39), state(2-39), arrRewards(18-39)
  0000  SELF      R2 = R0[K0('GetState')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  GETTABUP  R2 = _ENV[K1('ActivityState')]
  0003  GETTABLE  R2 = R2[K2('Started')]
  0004  EQ        if R1 eq R2   -> -130552
  0005  JMP       (jump)   -> 11
  0006  GETTABUP  R2 = _ENV[K1('ActivityState')]
  0007  GETTABLE  R2 = R2[K3('Ended')]
  0008  EQ        if R1 eq R2   -> -130548
  0009  JMP       (jump)   -> 11
  0010  RETURN    return R0..R-1
  0011  SELF      R3 = R0[K4('CanClaimReward')] (self)
  0012  CALL      R2 = call(R2, 1 args, 1 rets)
  0013  TEST      if not R2 then   -> -131056
  0014  JMP       (jump)   -> 16
  0015  RETURN    return R0..R-1
  0016  SELF      R3 = R0[K5('GetFilteredRewardsByScore')] (self)
  0017  CALL      R2 = call(R2, 1 args, 1 rets)
  0018  GETTABUP  R3 = _ENV[K6('RewardApi')]
  0019  GETTABLE  R3 = R3[K7('AcquireRewardsLogic')]
  0020  MOVE      R4 = R0
  0021  GETTABUP  R5 = _ENV[K8('EPropertySource')]
  0022  GETTABLE  R5 = R5[K9('Give')]
  0023  GETTABUP  R6 = _ENV[K10('EBIType')]
  0024  GETTABLE  R6 = R6[K11('DayExtraRewardClaimReward')]
  0025  GETTABUP  R7 = _ENV[K12('ERewardScene')]
  0026  GETTABLE  R7 = R7[K13('Other')]
  0027  CALL      R3 = call(R3, 0 args, 4 rets)
  0028  SELF      R4 = R0[K14('_LogAction')] (self)
  0029  GETTABUP  R5 = _ENV[K10('EBIType')]
  0030  GETTABLE  R5 = R5[K15('DayExtraRewardFinish')]
  0031  CALL      R3 = call(R3, 0 args, 2 rets)
  0032  SELF      R4 = R0[K16('RemoveTriggerOrderDay')] (self)
  0033  CALL      R3 = call(R3, 0 args, 1 rets)
  0034  SELF      R4 = R0[K17('RemoveCanClaimReward')] (self)
  0035  CALL      R3 = call(R3, 0 args, 1 rets)
  0036  SELF      R4 = R0[K18('_DispatchRefreshEntryEvent')] (self)
  0037  CALL      R3 = call(R3, 0 args, 1 rets)
  0038  RETURN    return R0..R-1
; ---------- proto46 [_IsEntryVisible] ----------
  ; fn ?  line 489-497 np=1 va=0 ms=3 code=23 consts=3 upvals=0 protos=0
  ;   K[0]='IsActivityOpen'
  ;   K[1]='CanClaimReward'
  ;   K[2]='IsTriggered'
  ;   locals: self(0-23)
  0000  SELF      R2 = R0[K0('IsActivityOpen')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  TEST      if not R1 then   -> -131067
  0003  JMP       (jump)   -> 10
  0004  SELF      R2 = R0[K1('CanClaimReward')] (self)
  0005  CALL      R1 = call(R1, 1 args, 1 rets)
  0006  TEST      if not R1 then   -> -131063
  0007  JMP       (jump)   -> 10
  0008  LOADBOOL  R1 = false
  0009  RETURN    return R1..R0
  0010  SELF      R2 = R0[K2('IsTriggered')] (self)
  0011  CALL      R1 = call(R1, 1 args, 1 rets)
  0012  TEST      if not R1 then   -> -131057
  0013  JMP       (jump)   -> 20
  0014  SELF      R2 = R0[K1('CanClaimReward')] (self)
  0015  CALL      R1 = call(R1, 1 args, 1 rets)
  0016  TEST      if not R1 then   -> -131053
  0017  JMP       (jump)   -> 20
  0018  LOADBOOL  R1 = false
  0019  RETURN    return R1..R0
  0020  LOADBOOL  R1 = true
  0021  RETURN    return R1..R0
  0022  RETURN    return R0..R-1
; ---------- proto47 [GetOrderDayWindowDecorationShowConfig] ----------
  ; fn ?  line 501-515 np=1 va=0 ms=5 code=25 consts=14 upvals=1 protos=2
  ;   K[0]='decorationPrefabName'
  ;   K[1]='GetActivityDefinition'
  ;   K[2]='OrderDayWindowDecorationPrefabName'
  ;   K[3]='eDecorationRootKey'
  ;   K[4]='EDecorationRootKey'
  ;   K[5]='DayExtraRewardActivity'
  ;   K[6]='checkFun'
  ;   K[7]='events'
  ;   K[8]='RefreshEntryEvent'
  ;   K[9]='bHideDesc'
  ;   K[10]=true
  ;   K[11]='descBottomKey'
  ;   K[12]='DescTextKey'
  ;   K[13]='descBottomParams'
  ;   upvals: _ENV
  ;   locals: self(0-25)
  0000  NEWTABLE  R1 = {} (0 items)
  0001  SELF      R3 = R0[K1('GetActivityDefinition')] (self)
  0002  CALL      R2 = call(R2, 1 args, 1 rets)
  0003  GETTABLE  R2 = R2[K2('OrderDayWindowDecorationPrefabName')]
  0004  SETTABLE  R1[K0('decorationPrefabName')] = R2
  0005  GETTABUP  R2 = _ENV[K4('EDecorationRootKey')]
  0006  GETTABLE  R2 = R2[K5('DayExtraRewardActivity')]
  0007  SETTABLE  R1[K3('eDecorationRootKey')] = R2
  0008  CLOSURE   R2 = closure proto0
  0009  SETTABLE  R1[K6('checkFun')] = R2
  0010  NEWTABLE  R2 = {} (1 items)
  0011  SELF      R4 = R0[K1('GetActivityDefinition')] (self)
  0012  CALL      R3 = call(R3, 1 args, 1 rets)
  0013  GETTABLE  R3 = R3[K8('RefreshEntryEvent')]
  0014  SETLIST   setlist R2[B=1,C=1]
  0015  SETTABLE  R1[K7('events')] = R2
  0016  SETTABLE  R1[K9('bHideDesc')] = K10(true)
  0017  SELF      R3 = R0[K1('GetActivityDefinition')] (self)
  0018  CALL      R2 = call(R2, 1 args, 1 rets)
  0019  GETTABLE  R2 = R2[K12('DescTextKey')]
  0020  SETTABLE  R1[K11('descBottomKey')] = R2
  0021  CLOSURE   R2 = closure proto1
  0022  SETTABLE  R1[K13('descBottomParams')] = R2
  0023  RETURN    return R1..R0
  0024  RETURN    return R0..R-1
  ; ---------- proto0 [checkFun] ----------
    ; fn ?  line 505-507 np=0 va=0 ms=2 code=5 consts=1 upvals=1 protos=0
    ;   K[0]='_IsEntryVisible'
    ;   upvals: self
    0000  GETUPVAL  R0 = self
    0001  SELF      R1 = R0[K0('_IsEntryVisible')] (self)
    0002  TAILCALL  tailcall(R0, 0)
    0003  RETURN    return R0..R-1
    0004  RETURN    return R0..R-1
  ; ---------- proto1 [descBottomParams] ----------
    ; fn ?  line 511-513 np=0 va=0 ms=2 code=5 consts=1 upvals=1 protos=0
    ;   K[0]='GetCurOrderDay'
    ;   upvals: self
    0000  GETUPVAL  R0 = self
    0001  SELF      R1 = R0[K0('GetCurOrderDay')] (self)
    0002  TAILCALL  tailcall(R0, 0)
    0003  RETURN    return R0..R-1
    0004  RETURN    return R0..R-1
; ---------- proto48 [GetOrderGroupButtonDecorationShowConfig] ----------
  ; fn ?  line 519-529 np=1 va=0 ms=5 code=19 consts=11 upvals=1 protos=1
  ;   K[0]='decorationPrefabName'
  ;   K[1]='GetActivityDefinition'
  ;   K[2]='OrderGroupButtonDecorationPrefabName'
  ;   K[3]='eDecorationRootKey'
  ;   K[4]='EDecorationRootKey'
  ;   K[5]='DayExtraRewardActivity'
  ;   K[6]='checkFun'
  ;   K[7]='events'
  ;   K[8]='RefreshEntryEvent'
  ;   K[9]='bHideBox'
  ;   K[10]=true
  ;   upvals: _ENV
  ;   locals: self(0-19)
  0000  NEWTABLE  R1 = {} (0 items)
  0001  SELF      R3 = R0[K1('GetActivityDefinition')] (self)
  0002  CALL      R2 = call(R2, 1 args, 1 rets)
  0003  GETTABLE  R2 = R2[K2('OrderGroupButtonDecorationPrefabName')]
  0004  SETTABLE  R1[K0('decorationPrefabName')] = R2
  0005  GETTABUP  R2 = _ENV[K4('EDecorationRootKey')]
  0006  GETTABLE  R2 = R2[K5('DayExtraRewardActivity')]
  0007  SETTABLE  R1[K3('eDecorationRootKey')] = R2
  0008  CLOSURE   R2 = closure proto0
  0009  SETTABLE  R1[K6('checkFun')] = R2
  0010  NEWTABLE  R2 = {} (1 items)
  0011  SELF      R4 = R0[K1('GetActivityDefinition')] (self)
  0012  CALL      R3 = call(R3, 1 args, 1 rets)
  0013  GETTABLE  R3 = R3[K8('RefreshEntryEvent')]
  0014  SETLIST   setlist R2[B=1,C=1]
  0015  SETTABLE  R1[K7('events')] = R2
  0016  SETTABLE  R1[K9('bHideBox')] = K10(true)
  0017  RETURN    return R1..R0
  0018  RETURN    return R0..R-1
  ; ---------- proto0 [checkFun] ----------
    ; fn ?  line 523-525 np=0 va=0 ms=2 code=6 consts=2 upvals=1 protos=0
    ;   K[0]='_IsEntryVisible'
    ;   K[1]=2
    ;   upvals: self
    0000  GETUPVAL  R0 = self
    0001  SELF      R1 = R0[K0('_IsEntryVisible')] (self)
    0002  CALL      R0 = call(R0, 1 args, 1 rets)
    0003  LOADK     R1 = K1 2
    0004  RETURN    return R0..R-1
    0005  RETURN    return R0..R-1
; ---------- proto49 [_GetBIAction] ----------
  ; fn ?  line 535-544 np=1 va=0 ms=11 code=46 consts=14 upvals=1 protos=0
  ;   K[0]='GetLeftDuration'
  ;   K[1]='GetFilteredRewardsByScore'
  ;   K[2]='GetTriggeredCount'
  ;   K[3]='table'
  ;   K[4]='insert'
  ;   K[5]='time:'
  ;   K[6]='tostring'
  ;   K[7]='reward:'
  ;   K[8]='concat'
  ;   K[9]='ConfigUtil'
  ;   K[10]='GetArrFromCurrency'
  ;   K[11]=','
  ;   K[12]='round:'
  ;   K[13]=';'
  ;   upvals: _ENV
  ;   locals: self(0-46), time(2-46), arrRewards(4-46), round(6-46), arrLogString(7-46)
  0000  SELF      R2 = R0[K0('GetLeftDuration')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  SELF      R3 = R0[K1('GetFilteredRewardsByScore')] (self)
  0003  CALL      R2 = call(R2, 1 args, 1 rets)
  0004  SELF      R4 = R0[K2('GetTriggeredCount')] (self)
  0005  CALL      R3 = call(R3, 1 args, 1 rets)
  0006  NEWTABLE  R4 = {} (0 items)
  0007  GETTABUP  R5 = _ENV[K3('table')]
  0008  GETTABLE  R5 = R5[K4('insert')]
  0009  MOVE      R6 = R0
  0010  LOADK     R7 = K5 'time:'
  0011  GETTABUP  R8 = _ENV[K6('tostring')]
  0012  MOVE      R9 = R0
  0013  CALL      R8 = call(R8, 1 args, 1 rets)
  0014  CONCAT    R7 = concat(R7..R7)
  0015  CALL      R5 = call(R5, 0 args, 2 rets)
  0016  GETTABUP  R5 = _ENV[K3('table')]
  0017  GETTABLE  R5 = R5[K4('insert')]
  0018  MOVE      R6 = R0
  0019  LOADK     R7 = K7 'reward:'
  0020  GETTABUP  R8 = _ENV[K3('table')]
  0021  GETTABLE  R8 = R8[K8('concat')]
  0022  GETTABUP  R9 = _ENV[K9('ConfigUtil')]
  0023  GETTABLE  R9 = R9[K10('GetArrFromCurrency')]
  0024  MOVE      R10 = R0
  0025  CALL      R9 = call(R9, 1 args, 1 rets)
  0026  LOADK     R10 = K11 ','
  0027  CALL      R8 = call(R8, 1 args, 2 rets)
  0028  CONCAT    R7 = concat(R7..R7)
  0029  CALL      R5 = call(R5, 0 args, 2 rets)
  0030  GETTABUP  R5 = _ENV[K3('table')]
  0031  GETTABLE  R5 = R5[K4('insert')]
  0032  MOVE      R6 = R0
  0033  LOADK     R7 = K12 'round:'
  0034  GETTABUP  R8 = _ENV[K6('tostring')]
  0035  MOVE      R9 = R0
  0036  CALL      R8 = call(R8, 1 args, 1 rets)
  0037  CONCAT    R7 = concat(R7..R7)
  0038  CALL      R5 = call(R5, 0 args, 2 rets)
  0039  GETTABUP  R5 = _ENV[K3('table')]
  0040  GETTABLE  R5 = R5[K8('concat')]
  0041  MOVE      R6 = R0
  0042  LOADK     R7 = K13 ';'
  0043  TAILCALL  tailcall(R5, 0)
  0044  RETURN    return R5..R4
  0045  RETURN    return R0..R-1
; ---------- proto50 [_LogAction] ----------
  ; fn ?  line 547-549 np=2 va=0 ms=7 code=8 consts=4 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='BIManager'
  ;   K[2]='LogAction'
  ;   K[3]='_GetBIAction'
  ;   upvals: _ENV
  ;   locals: self(0-8), eScene(0-8)
  0000  GETTABUP  R2 = _ENV[K0('GM')]
  0001  GETTABLE  R2 = R2[K1('BIManager')]
  0002  SELF      R3 = R2[K2('LogAction')] (self)
  0003  MOVE      R4 = R0
  0004  SELF      R6 = R0[K3('_GetBIAction')] (self)
  0005  CALL      R5 = call(R5, -1 args, 1 rets)
  0006  CALL      R2 = call(R2, 0 args, -1 rets)
  0007  RETURN    return R0..R-1
