# DayExtraRewardActivity_Model_DayExtraRewardActivityConfig_1401.luac
; fn @DayExtraRewardActivityConfig.lua  line 0-0 np=0 va=1 ms=2 code=18 consts=7 upvals=1 protos=4
;   K[0]='DayExtraRewardActivityConfig'
;   K[1]='__index'
;   K[2]='Create'
;   K[3]='DayExtraRewardActivityConfig'
;   K[4]='_Init'
;   K[5]='CheckOrderScoreRange'
;   K[6]='GetFilteredRewards'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('DayExtraRewardActivityConfig')] = R0
0002  GETTABUP  R0 = _ENV[K0('DayExtraRewardActivityConfig')]
0003  GETTABUP  R1 = _ENV[K0('DayExtraRewardActivityConfig')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('DayExtraRewardActivityConfig')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Create')] = R1
0008  GETTABUP  R0 = _ENV[K3('DayExtraRewardActivityConfig')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K4('_Init')] = R1
0011  GETTABUP  R0 = _ENV[K3('DayExtraRewardActivityConfig')]
0012  CLOSURE   R1 = closure proto2
0013  SETTABLE  R0[K5('CheckOrderScoreRange')] = R1
0014  GETTABUP  R0 = _ENV[K3('DayExtraRewardActivityConfig')]
0015  CLOSURE   R1 = closure proto3
0016  SETTABLE  R0[K6('GetFilteredRewards')] = R1
0017  RETURN    return R0..R-1
; ---------- proto0 [Create] ----------
  ; fn ?  line 9-14 np=2 va=0 ms=6 code=9 consts=3 upvals=1 protos=0
  ;   K[0]='setmetatable'
  ;   K[1]='DayExtraRewardActivityConfig'
  ;   K[2]='_Init'
  ;   upvals: _ENV
  ;   locals: config(0-9), activityDefinition(0-9), instance(4-9)
  0000  GETTABUP  R2 = _ENV[K0('setmetatable')]
  0001  MOVE      R3 = R0
  0002  GETTABUP  R4 = _ENV[K1('DayExtraRewardActivityConfig')]
  0003  CALL      R2 = call(R2, 1 args, 2 rets)
  0004  SELF      R4 = R2[K2('_Init')] (self)
  0005  MOVE      R5 = R0
  0006  CALL      R3 = call(R3, 0 args, 2 rets)
  0007  RETURN    return R2..R1
  0008  RETURN    return R0..R-1
; ---------- proto1 [_Init] ----------
  ; fn ?  line 17-22 np=2 va=0 ms=5 code=13 consts=6 upvals=1 protos=0
  ;   K[0]='m_activityDefinition'
  ;   K[1]='Table'
  ;   K[2]='IsEmpty'
  ;   K[3]='rewardsWeight'
  ;   K[4]='RewardApi'
  ;   K[5]='CryptRewards'
  ;   upvals: _ENV
  ;   locals: self(0-13), activityDefinition(0-13)
  0000  SETTABLE  R0[K0('m_activityDefinition')] = R1
  0001  GETTABUP  R2 = _ENV[K1('Table')]
  0002  GETTABLE  R2 = R2[K2('IsEmpty')]
  0003  GETTABLE  R3 = R0[K3('rewardsWeight')]
  0004  CALL      R2 = call(R2, 1 args, 1 rets)
  0005  TEST      if not R2 then   -> -131064
  0006  JMP       (jump)   -> 12
  0007  GETTABUP  R2 = _ENV[K4('RewardApi')]
  0008  GETTABLE  R2 = R2[K5('CryptRewards')]
  0009  GETTABLE  R3 = R0[K3('rewardsWeight')]
  0010  LOADBOOL  R4 = true
  0011  CALL      R2 = call(R2, 0 args, 2 rets)
  0012  RETURN    return R0..R-1
; ---------- proto2 [CheckOrderScoreRange] ----------
  ; fn ?  line 24-28 np=2 va=0 ms=5 code=17 consts=5 upvals=1 protos=0
  ;   K[0]='score_min'
  ;   K[1]=0
  ;   K[2]='score_max'
  ;   K[3]='math'
  ;   K[4]='maxinteger'
  ;   upvals: _ENV
  ;   locals: self(0-17), score(0-17), score_min(4-17), score_max(9-17)
  0000  GETTABLE  R2 = R0[K0('score_min')]
  0001  TEST      if not R2 then   -> -131068
  0002  JMP       (jump)   -> 4
  0003  LOADK     R2 = K1 0
  0004  GETTABLE  R3 = R0[K2('score_max')]
  0005  TEST      if not R3 then   -> -131064
  0006  JMP       (jump)   -> 9
  0007  GETTABUP  R3 = _ENV[K3('math')]
  0008  GETTABLE  R3 = R3[K4('maxinteger')]
  0009  LT        if R0 lt R1   -> -130036
  0010  JMP       (jump)   -> 13
  0011  LE        if R1 le R3   -> -130544
  0012  JMP       (jump)   -> 14
  0013  LOADBOOL  R4 = false
  0014  LOADBOOL  R4 = true
  0015  RETURN    return R4..R3
  0016  RETURN    return R0..R-1
; ---------- proto3 [GetFilteredRewards] ----------
  ; fn ?  line 31-50 np=1 va=0 ms=13 code=50 consts=22 upvals=1 protos=0
  ;   K[0]='RewardApi'
  ;   K[1]='FilterRewards'
  ;   K[2]='rewardsWeight'
  ;   K[3]='ERewardScene'
  ;   K[4]='Other'
  ;   K[5]='m_activityDefinition'
  ;   K[6]='MaxRewardCount'
  ;   K[7]=1
  ;   K[8]=-1
  ;   K[9]='table'
  ;   K[10]='remove'
  ;   K[11]='MultiRankModel'
  ;   K[12]='GetActiveModel'
  ;   K[13]=nil
  ;   K[14]='MultiRankDefinition'
  ;   K[15]='GetType'
  ;   K[16]='ActivityTokenPropertyType'
  ;   K[17]='PROPERTY_TYPE'
  ;   K[18]='Table'
  ;   K[19]='ShallowCopy'
  ;   K[20]='PROPERTY_MULTIPLE'
  ;   K[21]='GetCurrentMultiple'
  ;   upvals: _ENV
  ;   locals: self(0-50), rewards(6-50), maxRewardCount(8-50), (for index)(11-18), (for limit)(11-18), (for step)(11-18), i(12-17), multiRankModel(21-50), propertyType(28-48), (for index)(31-48), (for limit)(31-48), (for step)(31-48), i(32-47)
  0000  GETTABUP  R1 = _ENV[K0('RewardApi')]
  0001  GETTABLE  R1 = R1[K1('FilterRewards')]
  0002  GETTABLE  R2 = R0[K2('rewardsWeight')]
  0003  GETTABUP  R3 = _ENV[K3('ERewardScene')]
  0004  GETTABLE  R3 = R3[K4('Other')]
  0005  CALL      R1 = call(R1, 1 args, 2 rets)
  0006  GETTABLE  R2 = R0[K5('m_activityDefinition')]
  0007  GETTABLE  R2 = R2[K6('MaxRewardCount')]
  0008  LEN       R3 = len R0
  0009  ADD       R4 = K7(1) add R2
  0010  LOADK     R5 = K8 -1
  0011  FORPREP   forprep R3(sBx=5)   -> 17
  0012  GETTABUP  R7 = _ENV[K9('table')]
  0013  GETTABLE  R7 = R7[K10('remove')]
  0014  MOVE      R8 = R0
  0015  MOVE      R9 = R0
  0016  CALL      R7 = call(R7, 0 args, 2 rets)
  0017  FORLOOP   forloop R3(sBx=-6)   -> 12
  0018  GETTABUP  R3 = _ENV[K11('MultiRankModel')]
  0019  GETTABLE  R3 = R3[K12('GetActiveModel')]
  0020  CALL      R3 = call(R3, 1 args, 0 rets)
  0021  EQ        if R1 eq K13(nil)   -> -129244
  0022  JMP       (jump)   -> 48
  0023  GETTABUP  R4 = _ENV[K14('MultiRankDefinition')]
  0024  SELF      R6 = R3[K15('GetType')] (self)
  0025  CALL      R5 = call(R5, 1 args, 1 rets)
  0026  GETTABLE  R4 = R4[R5]
  0027  GETTABLE  R4 = R4[K16('ActivityTokenPropertyType')]
  0028  LOADK     R5 = K7 1
  0029  LEN       R6 = len R0
  0030  LOADK     R7 = K7 1
  0031  FORPREP   forprep R5(sBx=15)   -> 47
  0032  GETTABLE  R9 = R1[R8]
  0033  GETTABUP  R10 = _ENV[K17('PROPERTY_TYPE')]
  0034  GETTABLE  R9 = R9[R10]
  0035  EQ        if R0 eq R4   -> -126423
  0036  JMP       (jump)   -> 47
  0037  GETTABUP  R9 = _ENV[K18('Table')]
  0038  GETTABLE  R9 = R9[K19('ShallowCopy')]
  0039  GETTABLE  R10 = R1[R8]
  0040  CALL      R9 = call(R9, 1 args, 1 rets)
  0041  SETTABLE  R1[R8] = R9
  0042  GETTABLE  R9 = R1[R8]
  0043  GETTABUP  R10 = _ENV[K20('PROPERTY_MULTIPLE')]
  0044  SELF      R12 = R3[K21('GetCurrentMultiple')] (self)
  0045  CALL      R11 = call(R11, 1 args, 1 rets)
  0046  SETTABLE  R9[R10] = R11
  0047  FORLOOP   forloop R5(sBx=-16)   -> 32
  0048  RETURN    return R1..R0
  0049  RETURN    return R0..R-1
