# LuckyDay_Model_LuckyDayModel_1247.luac
; fn @LuckyDayModel.lua  line 0-0 np=0 va=1 ms=5 code=75 consts=31 upvals=1 protos=20
;   K[0]='LuckyDayModel'
;   K[1]='setmetatable'
;   K[2]='BaseLimitOrderRewardActivityModel'
;   K[3]='__index'
;   K[4]=3
;   K[5]='Reward'
;   K[6]='reward'
;   K[7]='ClaimDay'
;   K[8]='claim_day'
;   K[9]='FinishedRoundCount'
;   K[10]='round_c'
;   K[11]='Init'
;   K[12]='_GetDefinition'
;   K[13]='GetMaxOrderNum'
;   K[14]='_LoadOtherServerConfig'
;   K[15]='_DropData'
;   K[16]='_OnOrderGroupRefreshed'
;   K[17]='_OnBakeOutStateChanged'
;   K[18]='GetConfigRewards'
;   K[19]='GetClaimDay'
;   K[20]='SetClaimDay'
;   K[21]='GetFinishedRoundCount'
;   K[22]='SetFinishedRoundCount'
;   K[23]='TryTrigger'
;   K[24]='ShouldPopWindow'
;   K[25]='CanClaimReward'
;   K[26]='HasClaimedReward'
;   K[27]='TryClaimReward'
;   K[28]='SetWindowSkipped'
;   K[29]='IsWindowSkipped'
;   K[30]='GetOrderCellTopLeftEntryShowConfig'
;   upvals: _ENV
;   locals: MAX_ORDER_COUNT(9-75), GeneralActivityKey(11-75), DBKey(14-75)
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('BaseLimitOrderRewardActivityModel')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('LuckyDayModel')] = R0
0005  GETTABUP  R0 = _ENV[K0('LuckyDayModel')]
0006  GETTABUP  R1 = _ENV[K0('LuckyDayModel')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  LOADK     R0 = K4 3
0009  NEWTABLE  R1 = {} (0 items)
0010  SETTABLE  R1[K5('Reward')] = K6('reward')
0011  NEWTABLE  R2 = {} (0 items)
0012  SETTABLE  R2[K7('ClaimDay')] = K8('claim_day')
0013  SETTABLE  R2[K9('FinishedRoundCount')] = K10('round_c')
0014  GETTABUP  R3 = _ENV[K0('LuckyDayModel')]
0015  CLOSURE   R4 = closure proto0
0016  SETTABLE  R3[K11('Init')] = R4
0017  GETTABUP  R3 = _ENV[K0('LuckyDayModel')]
0018  CLOSURE   R4 = closure proto1
0019  SETTABLE  R3[K12('_GetDefinition')] = R4
0020  GETTABUP  R3 = _ENV[K0('LuckyDayModel')]
0021  CLOSURE   R4 = closure proto2
0022  SETTABLE  R3[K13('GetMaxOrderNum')] = R4
0023  GETTABUP  R3 = _ENV[K0('LuckyDayModel')]
0024  CLOSURE   R4 = closure proto3
0025  SETTABLE  R3[K14('_LoadOtherServerConfig')] = R4
0026  GETTABUP  R3 = _ENV[K0('LuckyDayModel')]
0027  CLOSURE   R4 = closure proto4
0028  SETTABLE  R3[K15('_DropData')] = R4
0029  GETTABUP  R3 = _ENV[K0('LuckyDayModel')]
0030  CLOSURE   R4 = closure proto5
0031  SETTABLE  R3[K16('_OnOrderGroupRefreshed')] = R4
0032  GETTABUP  R3 = _ENV[K0('LuckyDayModel')]
0033  CLOSURE   R4 = closure proto6
0034  SETTABLE  R3[K17('_OnBakeOutStateChanged')] = R4
0035  GETTABUP  R3 = _ENV[K0('LuckyDayModel')]
0036  CLOSURE   R4 = closure proto7
0037  SETTABLE  R3[K18('GetConfigRewards')] = R4
0038  GETTABUP  R3 = _ENV[K0('LuckyDayModel')]
0039  CLOSURE   R4 = closure proto8
0040  SETTABLE  R3[K19('GetClaimDay')] = R4
0041  GETTABUP  R3 = _ENV[K0('LuckyDayModel')]
0042  CLOSURE   R4 = closure proto9
0043  SETTABLE  R3[K20('SetClaimDay')] = R4
0044  GETTABUP  R3 = _ENV[K0('LuckyDayModel')]
0045  CLOSURE   R4 = closure proto10
0046  SETTABLE  R3[K21('GetFinishedRoundCount')] = R4
0047  GETTABUP  R3 = _ENV[K0('LuckyDayModel')]
0048  CLOSURE   R4 = closure proto11
0049  SETTABLE  R3[K22('SetFinishedRoundCount')] = R4
0050  GETTABUP  R3 = _ENV[K0('LuckyDayModel')]
0051  CLOSURE   R4 = closure proto12
0052  SETTABLE  R3[K23('TryTrigger')] = R4
0053  GETTABUP  R3 = _ENV[K0('LuckyDayModel')]
0054  CLOSURE   R4 = closure proto13
0055  SETTABLE  R3[K24('ShouldPopWindow')] = R4
0056  GETTABUP  R3 = _ENV[K0('LuckyDayModel')]
0057  CLOSURE   R4 = closure proto14
0058  SETTABLE  R3[K25('CanClaimReward')] = R4
0059  GETTABUP  R3 = _ENV[K0('LuckyDayModel')]
0060  CLOSURE   R4 = closure proto15
0061  SETTABLE  R3[K26('HasClaimedReward')] = R4
0062  GETTABUP  R3 = _ENV[K0('LuckyDayModel')]
0063  CLOSURE   R4 = closure proto16
0064  SETTABLE  R3[K27('TryClaimReward')] = R4
0065  GETTABUP  R3 = _ENV[K0('LuckyDayModel')]
0066  CLOSURE   R4 = closure proto17
0067  SETTABLE  R3[K28('SetWindowSkipped')] = R4
0068  GETTABUP  R3 = _ENV[K0('LuckyDayModel')]
0069  CLOSURE   R4 = closure proto18
0070  SETTABLE  R3[K29('IsWindowSkipped')] = R4
0071  GETTABUP  R3 = _ENV[K0('LuckyDayModel')]
0072  CLOSURE   R4 = closure proto19
0073  SETTABLE  R3[K30('GetOrderCellTopLeftEntryShowConfig')] = R4
0074  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 23-25 np=3 va=0 ms=7 code=7 consts=2 upvals=1 protos=0
  ;   K[0]='BaseLimitOrderRewardActivityModel'
  ;   K[1]='Init'
  ;   upvals: _ENV
  ;   locals: self(0-7), activityType(0-7), virtualDBTable(0-7)
  0000  GETTABUP  R3 = _ENV[K0('BaseLimitOrderRewardActivityModel')]
  0001  GETTABLE  R3 = R3[K1('Init')]
  0002  MOVE      R4 = R0
  0003  MOVE      R5 = R0
  0004  MOVE      R6 = R0
  0005  CALL      R3 = call(R3, 0 args, 3 rets)
  0006  RETURN    return R0..R-1
; ---------- proto1 [_GetDefinition] ----------
  ; fn ?  line 27-29 np=2 va=0 ms=3 code=4 consts=1 upvals=1 protos=0
  ;   K[0]='LuckyDayDefinition'
  ;   upvals: _ENV
  ;   locals: self(0-4), activityType(0-4)
  0000  GETTABUP  R2 = _ENV[K0('LuckyDayDefinition')]
  0001  GETTABLE  R2 = R2[R1]
  0002  RETURN    return R2..R1
  0003  RETURN    return R0..R-1
; ---------- proto2 [GetMaxOrderNum] ----------
  ; fn ?  line 31-33 np=1 va=0 ms=2 code=3 consts=0 upvals=1 protos=0
  ;   upvals: MAX_ORDER_COUNT
  ;   locals: self(0-3)
  0000  GETUPVAL  R1 = MAX_ORDER_COUNT
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto3 [_LoadOtherServerConfig] ----------
  ; fn ?  line 35-38 np=1 va=1 ms=4 code=12 consts=5 upvals=1 protos=0
  ;   K[0]='RewardApi'
  ;   K[1]='CryptRewards'
  ;   K[2]='GetConfigRewards'
  ;   K[3]='BaseLimitOrderRewardActivityModel'
  ;   K[4]='_LoadOtherServerConfig'
  ;   upvals: _ENV
  ;   locals: self(0-12)
  0000  GETTABUP  R1 = _ENV[K0('RewardApi')]
  0001  GETTABLE  R1 = R1[K1('CryptRewards')]
  0002  SELF      R3 = R0[K2('GetConfigRewards')] (self)
  0003  CALL      R2 = call(R2, 1 args, 1 rets)
  0004  LOADBOOL  R3 = true
  0005  CALL      R1 = call(R1, 0 args, 2 rets)
  0006  GETTABUP  R1 = _ENV[K3('BaseLimitOrderRewardActivityModel')]
  0007  GETTABLE  R1 = R1[K4('_LoadOtherServerConfig')]
  0008  MOVE      R2 = R0
  0009  VARARG    R3 = vararg(0)
  0010  CALL      R1 = call(R1, 0 args, -1 rets)
  0011  RETURN    return R0..R-1
; ---------- proto4 [_DropData] ----------
  ; fn ?  line 40-43 np=1 va=0 ms=3 code=6 consts=4 upvals=1 protos=0
  ;   K[0]='BaseActivityModel'
  ;   K[1]='_DropData'
  ;   K[2]='m_lastShowFinishCount'
  ;   K[3]=nil
  ;   upvals: _ENV
  ;   locals: self(0-6)
  0000  GETTABUP  R1 = _ENV[K0('BaseActivityModel')]
  0001  GETTABLE  R1 = R1[K1('_DropData')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  SETTABLE  R0[K2('m_lastShowFinishCount')] = K3(nil)
  0005  RETURN    return R0..R-1
; ---------- proto5 [_OnOrderGroupRefreshed] ----------
  ; fn ?  line 45-53 np=1 va=0 ms=3 code=19 consts=8 upvals=1 protos=0
  ;   K[0]='IsInDuration'
  ;   K[1]='GetCurrentOrderId'
  ;   K[2]=''
  ;   K[3]='RefreshOrder'
  ;   K[4]='EventDispatcher'
  ;   K[5]='DispatchEvent'
  ;   K[6]='m_activityDefinition'
  ;   K[7]='OrderStateChangedEvent'
  ;   upvals: _ENV
  ;   locals: self(0-19)
  0000  SELF      R2 = R0[K0('IsInDuration')] (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('GetCurrentOrderId')] (self)
  0006  CALL      R1 = call(R1, 1 args, 1 rets)
  0007  EQ        if R0 eq K2('')   -> -130293
  0008  JMP       (jump)   -> 18
  0009  SELF      R2 = R0[K3('RefreshOrder')] (self)
  0010  CALL      R1 = call(R1, 1 args, 1 rets)
  0011  TEST      if not R1 then   -> -131059
  0012  JMP       (jump)   -> 18
  0013  GETTABUP  R1 = _ENV[K4('EventDispatcher')]
  0014  GETTABLE  R1 = R1[K5('DispatchEvent')]
  0015  GETTABLE  R2 = R0[K6('m_activityDefinition')]
  0016  GETTABLE  R2 = R2[K7('OrderStateChangedEvent')]
  0017  CALL      R1 = call(R1, 0 args, 1 rets)
  0018  RETURN    return R0..R-1
; ---------- proto6 [_OnBakeOutStateChanged] ----------
  ; fn ?  line 55-70 np=1 va=0 ms=4 code=22 consts=9 upvals=1 protos=0
  ;   K[0]='IsInDuration'
  ;   K[1]='GetCurrentOrderId'
  ;   K[2]=''
  ;   K[3]='RefreshOrder'
  ;   K[4]='EventDispatcher'
  ;   K[5]='DispatchEvent'
  ;   K[6]='m_activityDefinition'
  ;   K[7]='OrderStateChangedEvent'
  ;   K[8]='TryReplaceInvalidOrder'
  ;   upvals: _ENV
  ;   locals: self(0-22), currentOrderId(7-22)
  0000  SELF      R2 = R0[K0('IsInDuration')] (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('GetCurrentOrderId')] (self)
  0006  CALL      R1 = call(R1, 1 args, 1 rets)
  0007  EQ        if R0 eq K2('')   -> -130293
  0008  JMP       (jump)   -> 19
  0009  SELF      R3 = R0[K3('RefreshOrder')] (self)
  0010  CALL      R2 = call(R2, 1 args, 1 rets)
  0011  TEST      if not R2 then   -> -131059
  0012  JMP       (jump)   -> 19
  0013  GETTABUP  R2 = _ENV[K4('EventDispatcher')]
  0014  GETTABLE  R2 = R2[K5('DispatchEvent')]
  0015  GETTABLE  R3 = R0[K6('m_activityDefinition')]
  0016  GETTABLE  R3 = R3[K7('OrderStateChangedEvent')]
  0017  CALL      R2 = call(R2, 0 args, 1 rets)
  0018  JMP       (jump)   -> 21
  0019  SELF      R3 = R0[K8('TryReplaceInvalidOrder')] (self)
  0020  CALL      R2 = call(R2, 0 args, 1 rets)
  0021  RETURN    return R0..R-1
; ---------- proto7 [GetConfigRewards] ----------
  ; fn ?  line 73-79 np=1 va=0 ms=5 code=16 consts=8 upvals=2 protos=0
  ;   K[0]='GetGeneralConfig'
  ;   K[1]='Reward'
  ;   K[2]='EConfigParamType'
  ;   K[3]='RewardArray'
  ;   K[4]=1
  ;   K[5]='Log'
  ;   K[6]='Error'
  ;   K[7]='幸运日配置奖励错误'
  ;   upvals: GeneralActivityKey, _ENV
  ;   locals: self(0-16), arrRewards(5-16)
  0000  SELF      R2 = R0[K0('GetGeneralConfig')] (self)
  0001  GETTABUP  R3 = GeneralActivityKey[K1('Reward')]
  0002  GETTABUP  R4 = _ENV[K2('EConfigParamType')]
  0003  GETTABLE  R4 = R4[K3('RewardArray')]
  0004  CALL      R1 = call(R1, 1 args, 3 rets)
  0005  TEST      if not R1 then   -> -131065
  0006  JMP       (jump)   -> 10
  0007  LEN       R2 = len R0
  0008  LT        if R0 lt R2   -> 2060
  0009  JMP       (jump)   -> 14
  0010  GETTABUP  R2 = _ENV[K5('Log')]
  0011  GETTABLE  R2 = R2[K6('Error')]
  0012  LOADK     R3 = K7 '幸运日配置奖励错误'
  0013  CALL      R2 = call(R2, 0 args, 1 rets)
  0014  RETURN    return R1..R0
  0015  RETURN    return R0..R-1
; ---------- proto8 [GetClaimDay] ----------
  ; fn ?  line 84-86 np=1 va=0 ms=6 code=12 consts=6 upvals=2 protos=0
  ;   K[0]='tonumber'
  ;   K[1]='m_dbTable'
  ;   K[2]='GetValue'
  ;   K[3]='ClaimDay'
  ;   K[4]='DB_VALUE_KEY'
  ;   K[5]=0
  ;   upvals: _ENV, DBKey
  ;   locals: self(0-12)
  0000  GETTABUP  R1 = _ENV[K0('tonumber')]
  0001  GETTABLE  R2 = R0[K1('m_dbTable')]
  0002  SELF      R3 = R2[K2('GetValue')] (self)
  0003  GETTABUP  R4 = DBKey[K3('ClaimDay')]
  0004  GETTABUP  R5 = _ENV[K4('DB_VALUE_KEY')]
  0005  CALL      R2 = call(R2, -1 args, 3 rets)
  0006  CALL      R1 = call(R1, 1 args, -1 rets)
  0007  TEST      if not R1 then   -> -131062
  0008  JMP       (jump)   -> 10
  0009  LOADK     R1 = K5 0
  0010  RETURN    return R1..R0
  0011  RETURN    return R0..R-1
; ---------- proto9 [SetClaimDay] ----------
  ; fn ?  line 88-90 np=2 va=0 ms=7 code=7 consts=4 upvals=2 protos=0
  ;   K[0]='m_dbTable'
  ;   K[1]='Set'
  ;   K[2]='ClaimDay'
  ;   K[3]='DB_VALUE_KEY'
  ;   upvals: DBKey, _ENV
  ;   locals: self(0-7), claimDay(0-7)
  0000  GETTABLE  R2 = R0[K0('m_dbTable')]
  0001  SELF      R3 = R2[K1('Set')] (self)
  0002  GETTABUP  R4 = DBKey[K2('ClaimDay')]
  0003  GETTABUP  R5 = _ENV[K3('DB_VALUE_KEY')]
  0004  MOVE      R6 = R0
  0005  CALL      R2 = call(R2, 0 args, 4 rets)
  0006  RETURN    return R0..R-1
; ---------- proto10 [GetFinishedRoundCount] ----------
  ; fn ?  line 93-95 np=1 va=0 ms=6 code=12 consts=6 upvals=2 protos=0
  ;   K[0]='tonumber'
  ;   K[1]='m_dbTable'
  ;   K[2]='GetValue'
  ;   K[3]='FinishedRoundCount'
  ;   K[4]='DB_VALUE_KEY'
  ;   K[5]=0
  ;   upvals: _ENV, DBKey
  ;   locals: self(0-12)
  0000  GETTABUP  R1 = _ENV[K0('tonumber')]
  0001  GETTABLE  R2 = R0[K1('m_dbTable')]
  0002  SELF      R3 = R2[K2('GetValue')] (self)
  0003  GETTABUP  R4 = DBKey[K3('FinishedRoundCount')]
  0004  GETTABUP  R5 = _ENV[K4('DB_VALUE_KEY')]
  0005  CALL      R2 = call(R2, -1 args, 3 rets)
  0006  CALL      R1 = call(R1, 1 args, -1 rets)
  0007  TEST      if not R1 then   -> -131062
  0008  JMP       (jump)   -> 10
  0009  LOADK     R1 = K5 0
  0010  RETURN    return R1..R0
  0011  RETURN    return R0..R-1
; ---------- proto11 [SetFinishedRoundCount] ----------
  ; fn ?  line 97-99 np=2 va=0 ms=7 code=7 consts=4 upvals=2 protos=0
  ;   K[0]='m_dbTable'
  ;   K[1]='Set'
  ;   K[2]='FinishedRoundCount'
  ;   K[3]='DB_VALUE_KEY'
  ;   upvals: DBKey, _ENV
  ;   locals: self(0-7), finishedRoundCount(0-7)
  0000  GETTABLE  R2 = R0[K0('m_dbTable')]
  0001  SELF      R3 = R2[K1('Set')] (self)
  0002  GETTABUP  R4 = DBKey[K2('FinishedRoundCount')]
  0003  GETTABUP  R5 = _ENV[K3('DB_VALUE_KEY')]
  0004  MOVE      R6 = R0
  0005  CALL      R2 = call(R2, 0 args, 4 rets)
  0006  RETURN    return R0..R-1
; ---------- proto12 [TryTrigger] ----------
  ; fn ?  line 105-111 np=1 va=0 ms=3 code=9 consts=4 upvals=1 protos=0
  ;   K[0]='BaseLimitOrderRewardActivityModel'
  ;   K[1]='TryTrigger'
  ;   K[2]='m_bWindowSkipped'
  ;   K[3]=false
  ;   upvals: _ENV
  ;   locals: self(0-9), bSuccess(4-9)
  0000  GETTABUP  R1 = _ENV[K0('BaseLimitOrderRewardActivityModel')]
  0001  GETTABLE  R1 = R1[K1('TryTrigger')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 1 args, 1 rets)
  0004  TEST      if not R1 then   -> -131066
  0005  JMP       (jump)   -> 7
  0006  SETTABLE  R0[K2('m_bWindowSkipped')] = K3(false)
  0007  RETURN    return R1..R0
  0008  RETURN    return R0..R-1
; ---------- proto13 [ShouldPopWindow] ----------
  ; fn ?  line 115-139 np=1 va=0 ms=4 code=40 consts=10 upvals=0 protos=0
  ;   K[0]='GetFinishCount'
  ;   K[1]=0
  ;   K[2]='CanClaimReward'
  ;   K[3]='IsInDuration'
  ;   K[4]='GetCurrentOrderId'
  ;   K[5]=''
  ;   K[6]='HasClaimedReward'
  ;   K[7]='m_lastShowFinishCount'
  ;   K[8]='GetNextOrderId'
  ;   K[9]=nil
  ;   locals: self(0-40), finishCount(2-40)
  0000  SELF      R2 = R0[K0('GetFinishCount')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  LE        if R0 le K1(0)   -> -130299
  0003  JMP       (jump)   -> 6
  0004  LOADBOOL  R2 = false
  0005  RETURN    return R2..R1
  0006  SELF      R3 = R0[K2('CanClaimReward')] (self)
  0007  CALL      R2 = call(R2, 1 args, 1 rets)
  0008  TEST      if not R2 then   -> -131062
  0009  JMP       (jump)   -> 13
  0010  LOADBOOL  R2 = true
  0011  LOADBOOL  R3 = true
  0012  RETURN    return R2..R1
  0013  SELF      R3 = R0[K3('IsInDuration')] (self)
  0014  CALL      R2 = call(R2, 1 args, 1 rets)
  0015  TEST      if not R2 then   -> -131055
  0016  JMP       (jump)   -> 37
  0017  SELF      R3 = R0[K4('GetCurrentOrderId')] (self)
  0018  CALL      R2 = call(R2, 1 args, 1 rets)
  0019  EQ        if R0 eq K5('')   -> -129766
  0020  JMP       (jump)   -> 37
  0021  SELF      R3 = R0[K6('HasClaimedReward')] (self)
  0022  CALL      R2 = call(R2, 1 args, 1 rets)
  0023  TEST      if not R2 then   -> -131046
  0024  JMP       (jump)   -> 37
  0025  GETTABLE  R2 = R0[K7('m_lastShowFinishCount')]
  0026  EQ        if R0 eq R1   -> -130019
  0027  JMP       (jump)   -> 34
  0028  SELF      R3 = R0[K8('GetNextOrderId')] (self)
  0029  CALL      R2 = call(R2, 1 args, 1 rets)
  0030  EQ        if R0 eq K9(nil)   -> -129751
  0031  JMP       (jump)   -> 34
  0032  LOADBOOL  R2 = false
  0033  RETURN    return R2..R1
  0034  SETTABLE  R0[K7('m_lastShowFinishCount')] = R1
  0035  LOADBOOL  R2 = true
  0036  RETURN    return R2..R1
  0037  LOADBOOL  R2 = false
  0038  RETURN    return R2..R1
  0039  RETURN    return R0..R-1
; ---------- proto14 [CanClaimReward] ----------
  ; fn ?  line 142-170 np=1 va=0 ms=7 code=46 consts=14 upvals=2 protos=0
  ;   K[0]='GetState'
  ;   K[1]='ActivityState'
  ;   K[2]='Started'
  ;   K[3]='Ended'
  ;   K[4]='GM'
  ;   K[5]='GameModel'
  ;   K[6]='GetServerDay'
  ;   K[7]='GetTriggerDay'
  ;   K[8]='GetClaimDay'
  ;   K[9]='GetFinishCount'
  ;   K[10]='Log'
  ;   K[11]='Error'
  ;   K[12]='幸运日已领奖日期大于服务器日期'
  ;   K[13]='幸运日触发日期大于服务器日期'
  ;   upvals: _ENV, MAX_ORDER_COUNT
  ;   locals: self(0-46), state(2-46), serverDay(16-46), triggerDay(18-46), claimDay(20-46)
  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)   -> 12
  0006  GETTABUP  R2 = _ENV[K1('ActivityState')]
  0007  GETTABLE  R2 = R2[K3('Ended')]
  0008  EQ        if R1 eq R2   -> -130548
  0009  JMP       (jump)   -> 12
  0010  LOADBOOL  R2 = false
  0011  RETURN    return R2..R1
  0012  GETTABUP  R2 = _ENV[K4('GM')]
  0013  GETTABLE  R2 = R2[K5('GameModel')]
  0014  SELF      R3 = R2[K6('GetServerDay')] (self)
  0015  CALL      R2 = call(R2, 1 args, 1 rets)
  0016  SELF      R4 = R0[K7('GetTriggerDay')] (self)
  0017  CALL      R3 = call(R3, 1 args, 1 rets)
  0018  SELF      R5 = R0[K8('GetClaimDay')] (self)
  0019  CALL      R4 = call(R4, 1 args, 1 rets)
  0020  LE        if R0 le R4   -> -129510
  0021  JMP       (jump)   -> 24
  0022  LOADBOOL  R5 = false
  0023  RETURN    return R5..R4
  0024  SELF      R6 = R0[K9('GetFinishCount')] (self)
  0025  CALL      R5 = call(R5, 1 args, 1 rets)
  0026  GETUPVAL  R6 = _ENV
  0027  LT        if R0 lt R6   -> -128477
  0028  JMP       (jump)   -> 31
  0029  LOADBOOL  R5 = false
  0030  RETURN    return R5..R4
  0031  LT        if R0 lt R4   -> -130011
  0032  JMP       (jump)   -> 37
  0033  GETTABUP  R5 = _ENV[K10('Log')]
  0034  GETTABLE  R5 = R5[K11('Error')]
  0035  LOADK     R6 = K12 '幸运日已领奖日期大于服务器日期'
  0036  CALL      R5 = call(R5, 0 args, 1 rets)
  0037  LT        if R0 lt R3   -> -130006
  0038  JMP       (jump)   -> 43
  0039  GETTABUP  R5 = _ENV[K10('Log')]
  0040  GETTABLE  R5 = R5[K11('Error')]
  0041  LOADK     R6 = K13 '幸运日触发日期大于服务器日期'
  0042  CALL      R5 = call(R5, 0 args, 1 rets)
  0043  LOADBOOL  R5 = true
  0044  RETURN    return R5..R4
  0045  RETURN    return R0..R-1
; ---------- proto15 [HasClaimedReward] ----------
  ; fn ?  line 173-179 np=1 va=0 ms=5 code=14 consts=5 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='GameModel'
  ;   K[2]='GetServerDay'
  ;   K[3]='GetTriggerDay'
  ;   K[4]='GetClaimDay'
  ;   upvals: _ENV
  ;   locals: self(0-14), serverDay(4-14), triggerDay(6-14), claimDay(8-14)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('GameModel')]
  0002  SELF      R2 = R1[K2('GetServerDay')] (self)
  0003  CALL      R1 = call(R1, 1 args, 1 rets)
  0004  SELF      R3 = R0[K3('GetTriggerDay')] (self)
  0005  CALL      R2 = call(R2, 1 args, 1 rets)
  0006  SELF      R4 = R0[K4('GetClaimDay')] (self)
  0007  CALL      R3 = call(R3, 1 args, 1 rets)
  0008  LE        if R1 le R3   -> -130035
  0009  JMP       (jump)   -> 11
  0010  LOADBOOL  R4 = false
  0011  LOADBOOL  R4 = true
  0012  RETURN    return R4..R3
  0013  RETURN    return R0..R-1
; ---------- proto16 [TryClaimReward] ----------
  ; fn ?  line 182-195 np=1 va=0 ms=9 code=32 consts=15 upvals=1 protos=0
  ;   K[0]='CanClaimReward'
  ;   K[1]='GetTriggerDay'
  ;   K[2]='SetClaimDay'
  ;   K[3]='GetFinishedRoundCount'
  ;   K[4]=1
  ;   K[5]='SetFinishedRoundCount'
  ;   K[6]='GetConfigRewards'
  ;   K[7]='RewardApi'
  ;   K[8]='AcquireRewardsLogic'
  ;   K[9]='EPropertySource'
  ;   K[10]='Give'
  ;   K[11]='EBIType'
  ;   K[12]='LuckyDayClaimReward'
  ;   K[13]='ERewardScene'
  ;   K[14]='Other'
  ;   upvals: _ENV
  ;   locals: self(0-32), triggerDay(8-32), finishedRoundCount(14-32), arrRewards(19-32)
  0000  SELF      R2 = R0[K0('CanClaimReward')] (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('GetTriggerDay')] (self)
  0007  CALL      R1 = call(R1, 1 args, 1 rets)
  0008  SELF      R3 = R0[K2('SetClaimDay')] (self)
  0009  MOVE      R4 = R0
  0010  CALL      R2 = call(R2, 0 args, 2 rets)
  0011  SELF      R3 = R0[K3('GetFinishedRoundCount')] (self)
  0012  CALL      R2 = call(R2, 1 args, 1 rets)
  0013  ADD       R2 = K4(1) add R2
  0014  SELF      R4 = R0[K5('SetFinishedRoundCount')] (self)
  0015  MOVE      R5 = R0
  0016  CALL      R3 = call(R3, 0 args, 2 rets)
  0017  SELF      R4 = R0[K6('GetConfigRewards')] (self)
  0018  CALL      R3 = call(R3, 1 args, 1 rets)
  0019  GETTABUP  R4 = _ENV[K7('RewardApi')]
  0020  GETTABLE  R4 = R4[K8('AcquireRewardsLogic')]
  0021  MOVE      R5 = R0
  0022  GETTABUP  R6 = _ENV[K9('EPropertySource')]
  0023  GETTABLE  R6 = R6[K10('Give')]
  0024  GETTABUP  R7 = _ENV[K11('EBIType')]
  0025  GETTABLE  R7 = R7[K12('LuckyDayClaimReward')]
  0026  GETTABUP  R8 = _ENV[K13('ERewardScene')]
  0027  GETTABLE  R8 = R8[K14('Other')]
  0028  CALL      R4 = call(R4, 0 args, 4 rets)
  0029  LOADBOOL  R4 = true
  0030  RETURN    return R4..R3
  0031  RETURN    return R0..R-1
; ---------- proto17 [SetWindowSkipped] ----------
  ; fn ?  line 197-199 np=2 va=0 ms=2 code=2 consts=1 upvals=0 protos=0
  ;   K[0]='m_bWindowSkipped'
  ;   locals: self(0-2), bSkipped(0-2)
  0000  SETTABLE  R0[K0('m_bWindowSkipped')] = R1
  0001  RETURN    return R0..R-1
; ---------- proto18 [IsWindowSkipped] ----------
  ; fn ?  line 201-203 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_bWindowSkipped'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_bWindowSkipped')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto19 [GetOrderCellTopLeftEntryShowConfig] ----------
  ; fn ?  line 206-217 np=1 va=0 ms=5 code=18 consts=10 upvals=1 protos=1
  ;   K[0]='entryPrefabName'
  ;   K[1]='m_activityDefinition'
  ;   K[2]='EntryPrefabName'
  ;   K[3]='eEntryRootKey'
  ;   K[4]='EEntryRootKey'
  ;   K[5]='LuckyDay'
  ;   K[6]='checkFun'
  ;   K[7]='events'
  ;   K[8]='StateChangedEvent'
  ;   K[9]='OrderStateChangedEvent'
  ;   upvals: _ENV
  ;   locals: self(0-18)
  0000  NEWTABLE  R1 = {} (0 items)
  0001  GETTABLE  R2 = R0[K1('m_activityDefinition')]
  0002  GETTABLE  R2 = R2[K2('EntryPrefabName')]
  0003  SETTABLE  R1[K0('entryPrefabName')] = R2
  0004  GETTABUP  R2 = _ENV[K4('EEntryRootKey')]
  0005  GETTABLE  R2 = R2[K5('LuckyDay')]
  0006  SETTABLE  R1[K3('eEntryRootKey')] = R2
  0007  CLOSURE   R2 = closure proto0
  0008  SETTABLE  R1[K6('checkFun')] = R2
  0009  NEWTABLE  R2 = {} (2 items)
  0010  GETTABLE  R3 = R0[K1('m_activityDefinition')]
  0011  GETTABLE  R3 = R3[K8('StateChangedEvent')]
  0012  GETTABLE  R4 = R0[K1('m_activityDefinition')]
  0013  GETTABLE  R4 = R4[K9('OrderStateChangedEvent')]
  0014  SETLIST   setlist R2[B=1,C=2]
  0015  SETTABLE  R1[K7('events')] = R2
  0016  RETURN    return R1..R0
  0017  RETURN    return R0..R-1
  ; ---------- proto0 [checkFun] ----------
    ; fn ?  line 212-214 np=1 va=0 ms=4 code=16 consts=3 upvals=1 protos=0
    ;   K[0]='IsInDuration'
    ;   K[1]='GetCurrentOrderId'
    ;   K[2]='GetId'
    ;   upvals: self
    ;   locals: order(0-16)
    0000  GETUPVAL  R1 = self
    0001  SELF      R2 = R1[K0('IsInDuration')] (self)
    0002  CALL      R1 = call(R1, 1 args, 1 rets)
    0003  TEST      if not R1 then   -> -131067
    0004  JMP       (jump)   -> 14
    0005  GETUPVAL  R1 = self
    0006  SELF      R2 = R1[K1('GetCurrentOrderId')] (self)
    0007  CALL      R1 = call(R1, 1 args, 1 rets)
    0008  SELF      R3 = R0[K2('GetId')] (self)
    0009  CALL      R2 = call(R2, 1 args, 1 rets)
    0010  EQ        if R1 eq R2   -> -130546
    0011  JMP       (jump)   -> 13
    0012  LOADBOOL  R1 = false
    0013  LOADBOOL  R1 = true
    0014  RETURN    return R1..R0
    0015  RETURN    return R0..R-1
