# CrownLevelUp_Model_CrownLevelUpModel_1261.luac
; fn @CrownLevelUpModel.lua  line 0-0 np=0 va=1 ms=3 code=113 consts=43 upvals=1 protos=33
;   K[0]='CrownLevelUpModel'
;   K[1]='setmetatable'
;   K[2]='BaseLimitOrderRewardActivityModel'
;   K[3]='__index'
;   K[4]='ConfigKey'
;   K[5]='crownLevelUpConfig'
;   K[6]='RewardClaimed'
;   K[7]='rc'
;   K[8]='ActivityRound'
;   K[9]='ar'
;   K[10]='_GetDefinition'
;   K[11]='IsActivityOpen'
;   K[12]='GetActiveModel'
;   K[13]='_GetLogPrefix'
;   K[14]='_LoadOtherServerConfig'
;   K[15]='_CheckConfigValid'
;   K[16]='GetAllCrownReward'
;   K[17]='GetConfigDurationInSeconds'
;   K[18]='GetTotalCrownDuration'
;   K[19]='SelectRewardByCrownId'
;   K[20]='GetUICodeByCrownId'
;   K[21]='IsInProtectTime'
;   K[22]='IsRewardClaimed'
;   K[23]='SetRewardClaimed'
;   K[24]='GetActivityRound'
;   K[25]='SetActivityRound'
;   K[26]='GetCurrentCrownId'
;   K[27]='TryTrigger'
;   K[28]='GetMaxOrderNum'
;   K[29]='_OnTriggerSuccess'
;   K[30]='_OnRefreshOrderFinished'
;   K[31]='_OnBakeOutStateChanged'
;   K[32]='_OnCurOrderFinished'
;   K[33]='CanClaimReward'
;   K[34]='ClaimReward'
;   K[35]='GetClaimedRewards'
;   K[36]='SetClaimedRewards'
;   K[37]='_OpenWindow'
;   K[38]='OpenMainWindow'
;   K[39]='GetOrderCellTopLeftEntryShowConfig'
;   K[40]='NeedEntryPlayAnim'
;   K[41]='SetEntryPlayAnimInfo'
;   K[42]='_LogSelectOrder'
;   upvals: _ENV
;   locals: DBKey(13-113)
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('CrownLevelUpModel')] = R0
0005  GETTABUP  R0 = _ENV[K0('CrownLevelUpModel')]
0006  GETTABUP  R1 = _ENV[K0('CrownLevelUpModel')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('CrownLevelUpModel')]
0009  SETTABLE  R0[K4('ConfigKey')] = K5('crownLevelUpConfig')
0010  NEWTABLE  R0 = {} (0 items)
0011  SETTABLE  R0[K6('RewardClaimed')] = K7('rc')
0012  SETTABLE  R0[K8('ActivityRound')] = K9('ar')
0013  GETTABUP  R1 = _ENV[K0('CrownLevelUpModel')]
0014  CLOSURE   R2 = closure proto0
0015  SETTABLE  R1[K10('_GetDefinition')] = R2
0016  GETTABUP  R1 = _ENV[K0('CrownLevelUpModel')]
0017  CLOSURE   R2 = closure proto1
0018  SETTABLE  R1[K11('IsActivityOpen')] = R2
0019  GETTABUP  R1 = _ENV[K0('CrownLevelUpModel')]
0020  CLOSURE   R2 = closure proto2
0021  SETTABLE  R1[K12('GetActiveModel')] = R2
0022  GETTABUP  R1 = _ENV[K0('CrownLevelUpModel')]
0023  CLOSURE   R2 = closure proto3
0024  SETTABLE  R1[K13('_GetLogPrefix')] = R2
0025  GETTABUP  R1 = _ENV[K0('CrownLevelUpModel')]
0026  CLOSURE   R2 = closure proto4
0027  SETTABLE  R1[K14('_LoadOtherServerConfig')] = R2
0028  GETTABUP  R1 = _ENV[K0('CrownLevelUpModel')]
0029  CLOSURE   R2 = closure proto5
0030  SETTABLE  R1[K15('_CheckConfigValid')] = R2
0031  GETTABUP  R1 = _ENV[K0('CrownLevelUpModel')]
0032  CLOSURE   R2 = closure proto6
0033  SETTABLE  R1[K16('GetAllCrownReward')] = R2
0034  GETTABUP  R1 = _ENV[K0('CrownLevelUpModel')]
0035  CLOSURE   R2 = closure proto7
0036  SETTABLE  R1[K17('GetConfigDurationInSeconds')] = R2
0037  GETTABUP  R1 = _ENV[K0('CrownLevelUpModel')]
0038  CLOSURE   R2 = closure proto8
0039  SETTABLE  R1[K18('GetTotalCrownDuration')] = R2
0040  GETTABUP  R1 = _ENV[K0('CrownLevelUpModel')]
0041  CLOSURE   R2 = closure proto9
0042  SETTABLE  R1[K19('SelectRewardByCrownId')] = R2
0043  GETTABUP  R1 = _ENV[K0('CrownLevelUpModel')]
0044  CLOSURE   R2 = closure proto10
0045  SETTABLE  R1[K20('GetUICodeByCrownId')] = R2
0046  GETTABUP  R1 = _ENV[K0('CrownLevelUpModel')]
0047  CLOSURE   R2 = closure proto11
0048  SETTABLE  R1[K21('IsInProtectTime')] = R2
0049  GETTABUP  R1 = _ENV[K0('CrownLevelUpModel')]
0050  CLOSURE   R2 = closure proto12
0051  SETTABLE  R1[K22('IsRewardClaimed')] = R2
0052  GETTABUP  R1 = _ENV[K0('CrownLevelUpModel')]
0053  CLOSURE   R2 = closure proto13
0054  SETTABLE  R1[K23('SetRewardClaimed')] = R2
0055  GETTABUP  R1 = _ENV[K0('CrownLevelUpModel')]
0056  CLOSURE   R2 = closure proto14
0057  SETTABLE  R1[K24('GetActivityRound')] = R2
0058  GETTABUP  R1 = _ENV[K0('CrownLevelUpModel')]
0059  CLOSURE   R2 = closure proto15
0060  SETTABLE  R1[K25('SetActivityRound')] = R2
0061  GETTABUP  R1 = _ENV[K0('CrownLevelUpModel')]
0062  CLOSURE   R2 = closure proto16
0063  SETTABLE  R1[K26('GetCurrentCrownId')] = R2
0064  GETTABUP  R1 = _ENV[K0('CrownLevelUpModel')]
0065  CLOSURE   R2 = closure proto17
0066  SETTABLE  R1[K27('TryTrigger')] = R2
0067  GETTABUP  R1 = _ENV[K0('CrownLevelUpModel')]
0068  CLOSURE   R2 = closure proto18
0069  SETTABLE  R1[K28('GetMaxOrderNum')] = R2
0070  GETTABUP  R1 = _ENV[K0('CrownLevelUpModel')]
0071  CLOSURE   R2 = closure proto19
0072  SETTABLE  R1[K29('_OnTriggerSuccess')] = R2
0073  GETTABUP  R1 = _ENV[K0('CrownLevelUpModel')]
0074  CLOSURE   R2 = closure proto20
0075  SETTABLE  R1[K30('_OnRefreshOrderFinished')] = R2
0076  GETTABUP  R1 = _ENV[K0('CrownLevelUpModel')]
0077  CLOSURE   R2 = closure proto21
0078  SETTABLE  R1[K31('_OnBakeOutStateChanged')] = R2
0079  GETTABUP  R1 = _ENV[K0('CrownLevelUpModel')]
0080  CLOSURE   R2 = closure proto22
0081  SETTABLE  R1[K32('_OnCurOrderFinished')] = R2
0082  GETTABUP  R1 = _ENV[K0('CrownLevelUpModel')]
0083  CLOSURE   R2 = closure proto23
0084  SETTABLE  R1[K33('CanClaimReward')] = R2
0085  GETTABUP  R1 = _ENV[K0('CrownLevelUpModel')]
0086  CLOSURE   R2 = closure proto24
0087  SETTABLE  R1[K34('ClaimReward')] = R2
0088  GETTABUP  R1 = _ENV[K0('CrownLevelUpModel')]
0089  CLOSURE   R2 = closure proto25
0090  SETTABLE  R1[K35('GetClaimedRewards')] = R2
0091  GETTABUP  R1 = _ENV[K0('CrownLevelUpModel')]
0092  CLOSURE   R2 = closure proto26
0093  SETTABLE  R1[K36('SetClaimedRewards')] = R2
0094  GETTABUP  R1 = _ENV[K0('CrownLevelUpModel')]
0095  CLOSURE   R2 = closure proto27
0096  SETTABLE  R1[K37('_OpenWindow')] = R2
0097  GETTABUP  R1 = _ENV[K0('CrownLevelUpModel')]
0098  CLOSURE   R2 = closure proto28
0099  SETTABLE  R1[K38('OpenMainWindow')] = R2
0100  GETTABUP  R1 = _ENV[K0('CrownLevelUpModel')]
0101  CLOSURE   R2 = closure proto29
0102  SETTABLE  R1[K39('GetOrderCellTopLeftEntryShowConfig')] = R2
0103  GETTABUP  R1 = _ENV[K0('CrownLevelUpModel')]
0104  CLOSURE   R2 = closure proto30
0105  SETTABLE  R1[K40('NeedEntryPlayAnim')] = R2
0106  GETTABUP  R1 = _ENV[K0('CrownLevelUpModel')]
0107  CLOSURE   R2 = closure proto31
0108  SETTABLE  R1[K41('SetEntryPlayAnimInfo')] = R2
0109  GETTABUP  R1 = _ENV[K0('CrownLevelUpModel')]
0110  CLOSURE   R2 = closure proto32
0111  SETTABLE  R1[K42('_LogSelectOrder')] = R2
0112  RETURN    return R0..R-1
; ---------- proto0 [_GetDefinition] ----------
  ; fn ?  line 15-17 np=2 va=0 ms=3 code=4 consts=1 upvals=1 protos=0
  ;   K[0]='CrownLevelUpDefinition'
  ;   upvals: _ENV
  ;   locals: self(0-4), activityType(0-4)
  0000  GETTABUP  R2 = _ENV[K0('CrownLevelUpDefinition')]
  0001  GETTABLE  R2 = R2[R1]
  0002  RETURN    return R2..R1
  0003  RETURN    return R0..R-1
; ---------- proto1 [IsActivityOpen] ----------
  ; fn ?  line 20-22 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
; ---------- proto2 [GetActiveModel] ----------
  ; fn ?  line 24-26 np=0 va=0 ms=2 code=6 consts=3 upvals=1 protos=0
  ;   K[0]='ActivityManager'
  ;   K[1]='GetOneActiveModel'
  ;   K[2]='CrownLevelUpDefinition'
  ;   upvals: _ENV
  0000  GETTABUP  R0 = _ENV[K0('ActivityManager')]
  0001  GETTABLE  R0 = R0[K1('GetOneActiveModel')]
  0002  GETTABUP  R1 = _ENV[K2('CrownLevelUpDefinition')]
  0003  TAILCALL  tailcall(R0, 0)
  0004  RETURN    return R0..R-1
  0005  RETURN    return R0..R-1
; ---------- proto3 [_GetLogPrefix] ----------
  ; fn ?  line 32-34 np=2 va=0 ms=6 code=13 consts=5 upvals=1 protos=0
  ;   K[0]='string'
  ;   K[1]='format'
  ;   K[2]='[王冠冲刺] 活动id=<color=#FFA000>%d</color>，'
  ;   K[3]='id'
  ;   K[4]='GetId'
  ;   upvals: _ENV
  ;   locals: self(0-13), config(0-13)
  0000  GETTABUP  R2 = _ENV[K0('string')]
  0001  GETTABLE  R2 = R2[K1('format')]
  0002  LOADK     R3 = K2 '[王冠冲刺] 活动id=<color=#FFA000>%d</color>，'
  0003  TEST      if not R1 then   -> -131067
  0004  JMP       (jump)   -> 8
  0005  GETTABLE  R4 = R1[K3('id')]
  0006  TEST      if not R4 then   -> -131063
  0007  JMP       (jump)   -> 10
  0008  SELF      R5 = R0[K4('GetId')] (self)
  0009  CALL      R4 = call(R4, 1 args, 1 rets)
  0010  TAILCALL  tailcall(R2, 0)
  0011  RETURN    return R2..R1
  0012  RETURN    return R0..R-1
; ---------- proto4 [_LoadOtherServerConfig] ----------
  ; fn ?  line 36-58 np=2 va=0 ms=13 code=57 consts=22 upvals=1 protos=1
  ;   K[0]='CrownLevelUpModel'
  ;   K[1]='ConfigKey'
  ;   K[2]='Table'
  ;   K[3]='IsEmpty'
  ;   K[4]=0
  ;   K[5]='Log'
  ;   K[6]='Error'
  ;   K[7]='string'
  ;   K[8]='format'
  ;   K[9]='%s没有找到配置：<color=#FFA000>%s</color>，配置需要使用include关联表%s！'
  ;   K[10]='_GetLogPrefix'
  ;   K[11]='LogTag'
  ;   K[12]='ConfigCheck'
  ;   K[13]='ipairs'
  ;   K[14]='CrownLevelUpConfig'
  ;   K[15]='Create'
  ;   K[16]='table'
  ;   K[17]='insert'
  ;   K[18]='sort'
  ;   K[19]='m_config'
  ;   K[20]='arrConfig'
  ;   K[21]='_CheckConfigValid'
  ;   upvals: _ENV
  ;   locals: self(0-57), config(0-57), arrConfig(1-57), arrRawConfig(4-57), (for generator)(33-45), (for state)(33-45), (for control)(33-45), _(34-43), rawConfig(34-43), crownConfig(38-43), sortById(46-57)
  0000  NEWTABLE  R2 = {} (0 items)
  0001  GETTABUP  R3 = _ENV[K0('CrownLevelUpModel')]
  0002  GETTABLE  R3 = R3[K1('ConfigKey')]
  0003  GETTABLE  R3 = R1[R3]
  0004  GETTABUP  R4 = _ENV[K2('Table')]
  0005  GETTABLE  R4 = R4[K3('IsEmpty')]
  0006  MOVE      R5 = R0
  0007  CALL      R4 = call(R4, 1 args, 1 rets)
  0008  TEST      if not R4 then   -> -131061
  0009  JMP       (jump)   -> 13
  0010  LEN       R4 = len R0
  0011  LE        if R0 le K4(0)   -> -128751
  0012  JMP       (jump)   -> 30
  0013  GETTABUP  R4 = _ENV[K5('Log')]
  0014  GETTABLE  R4 = R4[K6('Error')]
  0015  GETTABUP  R5 = _ENV[K7('string')]
  0016  GETTABLE  R5 = R5[K8('format')]
  0017  LOADK     R6 = K9 '%s没有找到配置：<color=#FFA000>%s</color>，配置需要使用include关联表%s！'
  0018  SELF      R8 = R0[K10('_GetLogPrefix')] (self)
  0019  MOVE      R9 = R0
  0020  CALL      R7 = call(R7, 1 args, 2 rets)
  0021  GETTABUP  R8 = _ENV[K0('CrownLevelUpModel')]
  0022  GETTABLE  R8 = R8[K1('ConfigKey')]
  0023  GETTABUP  R9 = _ENV[K0('CrownLevelUpModel')]
  0024  GETTABLE  R9 = R9[K1('ConfigKey')]
  0025  CALL      R5 = call(R5, 1 args, 4 rets)
  0026  GETTABUP  R6 = _ENV[K11('LogTag')]
  0027  GETTABLE  R6 = R6[K12('ConfigCheck')]
  0028  CALL      R4 = call(R4, 0 args, 2 rets)
  0029  RETURN    return R0..R-1
  0030  GETTABUP  R4 = _ENV[K13('ipairs')]
  0031  MOVE      R5 = R0
  0032  CALL      R4 = call(R4, 3 args, 1 rets)
  0033  JMP       (jump)   -> 43
  0034  GETTABUP  R9 = _ENV[K14('CrownLevelUpConfig')]
  0035  GETTABLE  R9 = R9[K15('Create')]
  0036  MOVE      R10 = R0
  0037  CALL      R9 = call(R9, 1 args, 1 rets)
  0038  GETTABUP  R10 = _ENV[K16('table')]
  0039  GETTABLE  R10 = R10[K17('insert')]
  0040  MOVE      R11 = R0
  0041  MOVE      R12 = R0
  0042  CALL      R10 = call(R10, 0 args, 2 rets)
  0043  TFORCALL  tforcall R4
  0044  TFORLOOP  tforloop R6(sBx=-11)   -> 34
  0045  CLOSURE   R4 = closure proto0
  0046  GETTABUP  R5 = _ENV[K16('table')]
  0047  GETTABLE  R5 = R5[K18('sort')]
  0048  MOVE      R6 = R0
  0049  MOVE      R7 = R0
  0050  CALL      R5 = call(R5, 0 args, 2 rets)
  0051  GETTABLE  R5 = R0[K19('m_config')]
  0052  SETTABLE  R5[K20('arrConfig')] = R2
  0053  SELF      R6 = R0[K21('_CheckConfigValid')] (self)
  0054  MOVE      R7 = R0
  0055  CALL      R5 = call(R5, 0 args, 2 rets)
  0056  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 51-53 np=2 va=0 ms=5 code=10 consts=1 upvals=0 protos=0
    ;   K[0]='GetId'
    ;   locals: configA(0-10), configB(0-10)
    0000  SELF      R3 = R0[K0('GetId')] (self)
    0001  CALL      R2 = call(R2, 1 args, 1 rets)
    0002  SELF      R4 = R1[K0('GetId')] (self)
    0003  CALL      R3 = call(R3, 1 args, 1 rets)
    0004  LT        if R1 lt R3   -> -130039
    0005  JMP       (jump)   -> 7
    0006  LOADBOOL  R2 = false
    0007  LOADBOOL  R2 = true
    0008  RETURN    return R2..R1
    0009  RETURN    return R0..R-1
; ---------- proto5 [_CheckConfigValid] ----------
  ; fn ?  line 60-90 np=2 va=0 ms=19 code=81 consts=21 upvals=1 protos=0
  ;   K[0]='GameConfig'
  ;   K[1]='IsTestMode'
  ;   K[2]='m_config'
  ;   K[3]='arrConfig'
  ;   K[4]=5
  ;   K[5]='Log'
  ;   K[6]='Error'
  ;   K[7]='string'
  ;   K[8]='format'
  ;   K[9]='%s配置错误：每个tag必须配置严格的5条数据，当前实际配置了 %d 条！'
  ;   K[10]='_GetLogPrefix'
  ;   K[11]='LogTag'
  ;   K[12]='ConfigCheck'
  ;   K[13]='ipairs'
  ;   K[14]='GetId'
  ;   K[15]='GetUICode'
  ;   K[16]='crown_%02d'
  ;   K[17]=''
  ;   K[18]="%s配置错误：id 为 %d 的配置，uiCode 必须是 '%s'，但实际配置的是 '%s'！"
  ;   K[19]='tostring'
  ;   K[20]="%s配置错误：id 为 %d 的配置，uiCode 不能为空，必须填写 '%s'！"
  ;   upvals: _ENV
  ;   locals: self(0-81), config(0-81), arrConfig(8-81), (for generator)(30-80), (for state)(30-80), (for control)(30-80), _(31-78), crownConfig(31-78), id(33-78), uiCode(35-78), expectedUiCode(40-78)
  0000  GETTABUP  R2 = _ENV[K0('GameConfig')]
  0001  GETTABLE  R2 = R2[K1('IsTestMode')]
  0002  CALL      R2 = call(R2, 1 args, 0 rets)
  0003  TEST      if not R2 then   -> -131066
  0004  JMP       (jump)   -> 6
  0005  RETURN    return R0..R-1
  0006  GETTABLE  R2 = R0[K2('m_config')]
  0007  GETTABLE  R2 = R2[K3('arrConfig')]
  0008  TEST      if not R2 then   -> -131061
  0009  JMP       (jump)   -> 11
  0010  RETURN    return R0..R-1
  0011  LEN       R3 = len R0
  0012  EQ        if R1 eq K4(5)   -> -129262
  0013  JMP       (jump)   -> 27
  0014  GETTABUP  R3 = _ENV[K5('Log')]
  0015  GETTABLE  R3 = R3[K6('Error')]
  0016  GETTABUP  R4 = _ENV[K7('string')]
  0017  GETTABLE  R4 = R4[K8('format')]
  0018  LOADK     R5 = K9 '%s配置错误：每个tag必须配置严格的5条数据，当前实际配置了 %d 条！'
  0019  SELF      R7 = R0[K10('_GetLogPrefix')] (self)
  0020  MOVE      R8 = R0
  0021  CALL      R6 = call(R6, 1 args, 2 rets)
  0022  LEN       R7 = len R0
  0023  CALL      R4 = call(R4, 1 args, 3 rets)
  0024  GETTABUP  R5 = _ENV[K11('LogTag')]
  0025  GETTABLE  R5 = R5[K12('ConfigCheck')]
  0026  CALL      R3 = call(R3, 0 args, 2 rets)
  0027  GETTABUP  R3 = _ENV[K13('ipairs')]
  0028  MOVE      R4 = R0
  0029  CALL      R3 = call(R3, 3 args, 1 rets)
  0030  JMP       (jump)   -> 78
  0031  SELF      R9 = R7[K14('GetId')] (self)
  0032  CALL      R8 = call(R8, 1 args, 1 rets)
  0033  SELF      R10 = R7[K15('GetUICode')] (self)
  0034  CALL      R9 = call(R9, 1 args, 1 rets)
  0035  GETTABUP  R10 = _ENV[K7('string')]
  0036  GETTABLE  R10 = R10[K8('format')]
  0037  LOADK     R11 = K16 'crown_%02d'
  0038  MOVE      R12 = R0
  0039  CALL      R10 = call(R10, 1 args, 2 rets)
  0040  TEST      if not R9 then   -> -131030
  0041  JMP       (jump)   -> 64
  0042  EQ        if R1 eq K17('')   -> -126147
  0043  JMP       (jump)   -> 64
  0044  EQ        if R1 eq R10   -> -126408
  0045  JMP       (jump)   -> 78
  0046  GETTABUP  R11 = _ENV[K5('Log')]
  0047  GETTABLE  R11 = R11[K6('Error')]
  0048  GETTABUP  R12 = _ENV[K7('string')]
  0049  GETTABLE  R12 = R12[K8('format')]
  0050  LOADK     R13 = K18 "%s配置错误：id 为 %d 的配置，uiCode 必须是 '%s'，但实际配置的是 '%s'！"
  0051  SELF      R15 = R0[K10('_GetLogPrefix')] (self)
  0052  MOVE      R16 = R0
  0053  CALL      R14 = call(R14, 1 args, 2 rets)
  0054  MOVE      R15 = R0
  0055  MOVE      R16 = R0
  0056  GETTABUP  R17 = _ENV[K19('tostring')]
  0057  MOVE      R18 = R0
  0058  CALL      R17 = call(R17, -1 args, 1 rets)
  0059  CALL      R12 = call(R12, 1 args, -1 rets)
  0060  GETTABUP  R13 = _ENV[K11('LogTag')]
  0061  GETTABLE  R13 = R13[K12('ConfigCheck')]
  0062  CALL      R11 = call(R11, 0 args, 2 rets)
  0063  JMP       (jump)   -> 78
  0064  GETTABUP  R11 = _ENV[K5('Log')]
  0065  GETTABLE  R11 = R11[K6('Error')]
  0066  GETTABUP  R12 = _ENV[K7('string')]
  0067  GETTABLE  R12 = R12[K8('format')]
  0068  LOADK     R13 = K20 "%s配置错误：id 为 %d 的配置，uiCode 不能为空，必须填写 '%s'！"
  0069  SELF      R15 = R0[K10('_GetLogPrefix')] (self)
  0070  MOVE      R16 = R0
  0071  CALL      R14 = call(R14, 1 args, 2 rets)
  0072  MOVE      R15 = R0
  0073  MOVE      R16 = R0
  0074  CALL      R12 = call(R12, 1 args, 4 rets)
  0075  GETTABUP  R13 = _ENV[K11('LogTag')]
  0076  GETTABLE  R13 = R13[K12('ConfigCheck')]
  0077  CALL      R11 = call(R11, 0 args, 2 rets)
  0078  TFORCALL  tforcall R3
  0079  TFORLOOP  tforloop R5(sBx=-49)   -> 31
  0080  RETURN    return R0..R-1
; ---------- proto6 [GetAllCrownReward] ----------
  ; fn ?  line 92-97 np=2 va=0 ms=4 code=21 consts=3 upvals=0 protos=0
  ;   K[0]='m_config'
  ;   K[1]='arrConfig'
  ;   K[2]='GetRewardsWeight'
  ;   locals: self(0-21), id(0-21)
  0000  GETTABLE  R2 = R0[K0('m_config')]
  0001  TEST      if not R2 then   -> -131069
  0002  JMP       (jump)   -> 18
  0003  GETTABLE  R2 = R0[K0('m_config')]
  0004  GETTABLE  R2 = R2[K1('arrConfig')]
  0005  TEST      if not R2 then   -> -131065
  0006  JMP       (jump)   -> 18
  0007  GETTABLE  R2 = R0[K0('m_config')]
  0008  GETTABLE  R2 = R2[K1('arrConfig')]
  0009  GETTABLE  R2 = R2[R1]
  0010  TEST      if not R2 then   -> -131060
  0011  JMP       (jump)   -> 18
  0012  GETTABLE  R2 = R0[K0('m_config')]
  0013  GETTABLE  R2 = R2[K1('arrConfig')]
  0014  GETTABLE  R2 = R2[R1]
  0015  SELF      R3 = R2[K2('GetRewardsWeight')] (self)
  0016  TAILCALL  tailcall(R2, 0)
  0017  RETURN    return R2..R1
  0018  LOADNIL   R2..R2 = nil
  0019  RETURN    return R2..R1
  0020  RETURN    return R0..R-1
; ---------- proto7 [GetConfigDurationInSeconds] ----------
  ; fn ?  line 105-114 np=2 va=0 ms=4 code=33 consts=5 upvals=0 protos=0
  ;   K[0]='m_config'
  ;   K[1]='arrConfig'
  ;   K[2]='GetTime'
  ;   K[3]=1
  ;   K[4]=0
  ;   locals: self(0-33), id(0-33)
  0000  GETTABLE  R2 = R0[K0('m_config')]
  0001  TEST      if not R2 then   -> -131069
  0002  JMP       (jump)   -> 30
  0003  GETTABLE  R2 = R0[K0('m_config')]
  0004  GETTABLE  R2 = R2[K1('arrConfig')]
  0005  TEST      if not R2 then   -> -131065
  0006  JMP       (jump)   -> 30
  0007  GETTABLE  R2 = R0[K0('m_config')]
  0008  GETTABLE  R2 = R2[K1('arrConfig')]
  0009  GETTABLE  R2 = R2[R1]
  0010  TEST      if not R2 then   -> -131060
  0011  JMP       (jump)   -> 19
  0012  GETTABLE  R2 = R0[K0('m_config')]
  0013  GETTABLE  R2 = R2[K1('arrConfig')]
  0014  GETTABLE  R2 = R2[R1]
  0015  SELF      R3 = R2[K2('GetTime')] (self)
  0016  TAILCALL  tailcall(R2, 0)
  0017  RETURN    return R2..R1
  0018  JMP       (jump)   -> 30
  0019  GETTABLE  R2 = R0[K0('m_config')]
  0020  GETTABLE  R2 = R2[K1('arrConfig')]
  0021  GETTABLE  R2 = R2[K3(1)]
  0022  TEST      if not R2 then   -> -131048
  0023  JMP       (jump)   -> 30
  0024  GETTABLE  R2 = R0[K0('m_config')]
  0025  GETTABLE  R2 = R2[K1('arrConfig')]
  0026  GETTABLE  R2 = R2[K3(1)]
  0027  SELF      R3 = R2[K2('GetTime')] (self)
  0028  TAILCALL  tailcall(R2, 0)
  0029  RETURN    return R2..R1
  0030  LOADK     R2 = K4 0
  0031  RETURN    return R2..R1
  0032  RETURN    return R0..R-1
; ---------- proto8 [GetTotalCrownDuration] ----------
  ; fn ?  line 117-123 np=1 va=0 ms=9 code=13 consts=5 upvals=1 protos=0
  ;   K[0]=0
  ;   K[1]='ipairs'
  ;   K[2]='m_config'
  ;   K[3]='arrConfig'
  ;   K[4]='GetTime'
  ;   upvals: _ENV
  ;   locals: self(0-13), totalDuration(1-13), (for generator)(5-11), (for state)(5-11), (for control)(5-11), _(6-9), config(6-9)
  0000  LOADK     R1 = K0 0
  0001  GETTABUP  R2 = _ENV[K1('ipairs')]
  0002  GETTABLE  R3 = R0[K2('m_config')]
  0003  GETTABLE  R3 = R3[K3('arrConfig')]
  0004  CALL      R2 = call(R2, 3 args, 1 rets)
  0005  JMP       (jump)   -> 9
  0006  SELF      R8 = R6[K4('GetTime')] (self)
  0007  CALL      R7 = call(R7, 1 args, 1 rets)
  0008  ADD       R1 = R7 add R1
  0009  TFORCALL  tforcall R2
  0010  TFORLOOP  tforloop R4(sBx=-5)   -> 6
  0011  RETURN    return R1..R0
  0012  RETURN    return R0..R-1
; ---------- proto9 [SelectRewardByCrownId] ----------
  ; fn ?  line 126-131 np=2 va=0 ms=4 code=21 consts=3 upvals=0 protos=0
  ;   K[0]='m_config'
  ;   K[1]='arrConfig'
  ;   K[2]='RandomSelectRewards'
  ;   locals: self(0-21), id(0-21)
  0000  GETTABLE  R2 = R0[K0('m_config')]
  0001  TEST      if not R2 then   -> -131069
  0002  JMP       (jump)   -> 18
  0003  GETTABLE  R2 = R0[K0('m_config')]
  0004  GETTABLE  R2 = R2[K1('arrConfig')]
  0005  TEST      if not R2 then   -> -131065
  0006  JMP       (jump)   -> 18
  0007  GETTABLE  R2 = R0[K0('m_config')]
  0008  GETTABLE  R2 = R2[K1('arrConfig')]
  0009  GETTABLE  R2 = R2[R1]
  0010  TEST      if not R2 then   -> -131060
  0011  JMP       (jump)   -> 18
  0012  GETTABLE  R2 = R0[K0('m_config')]
  0013  GETTABLE  R2 = R2[K1('arrConfig')]
  0014  GETTABLE  R2 = R2[R1]
  0015  SELF      R3 = R2[K2('RandomSelectRewards')] (self)
  0016  TAILCALL  tailcall(R2, 0)
  0017  RETURN    return R2..R1
  0018  LOADNIL   R2..R2 = nil
  0019  RETURN    return R2..R1
  0020  RETURN    return R0..R-1
; ---------- proto10 [GetUICodeByCrownId] ----------
  ; fn ?  line 134-139 np=2 va=0 ms=4 code=21 consts=3 upvals=0 protos=0
  ;   K[0]='m_config'
  ;   K[1]='arrConfig'
  ;   K[2]='GetUICode'
  ;   locals: self(0-21), id(0-21)
  0000  GETTABLE  R2 = R0[K0('m_config')]
  0001  TEST      if not R2 then   -> -131069
  0002  JMP       (jump)   -> 18
  0003  GETTABLE  R2 = R0[K0('m_config')]
  0004  GETTABLE  R2 = R2[K1('arrConfig')]
  0005  TEST      if not R2 then   -> -131065
  0006  JMP       (jump)   -> 18
  0007  GETTABLE  R2 = R0[K0('m_config')]
  0008  GETTABLE  R2 = R2[K1('arrConfig')]
  0009  GETTABLE  R2 = R2[R1]
  0010  TEST      if not R2 then   -> -131060
  0011  JMP       (jump)   -> 18
  0012  GETTABLE  R2 = R0[K0('m_config')]
  0013  GETTABLE  R2 = R2[K1('arrConfig')]
  0014  GETTABLE  R2 = R2[R1]
  0015  SELF      R3 = R2[K2('GetUICode')] (self)
  0016  TAILCALL  tailcall(R2, 0)
  0017  RETURN    return R2..R1
  0018  LOADNIL   R2..R2 = nil
  0019  RETURN    return R2..R1
  0020  RETURN    return R0..R-1
; ---------- proto11 [IsInProtectTime] ----------
  ; fn ?  line 143-145 np=1 va=0 ms=4 code=15 consts=5 upvals=1 protos=0
  ;   K[0]='GetEndTime'
  ;   K[1]='GM'
  ;   K[2]='GameModel'
  ;   K[3]='GetServerTime'
  ;   K[4]='GetTotalCrownDuration'
  ;   upvals: _ENV
  ;   locals: self(0-15)
  0000  SELF      R2 = R0[K0('GetEndTime')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  GETTABUP  R2 = _ENV[K1('GM')]
  0003  GETTABLE  R2 = R2[K2('GameModel')]
  0004  SELF      R3 = R2[K3('GetServerTime')] (self)
  0005  CALL      R2 = call(R2, 1 args, 1 rets)
  0006  SUB       R1 = R2 sub R1
  0007  SELF      R3 = R0[K4('GetTotalCrownDuration')] (self)
  0008  CALL      R2 = call(R2, 1 args, 1 rets)
  0009  LT        if R1 lt R2   -> -130547
  0010  JMP       (jump)   -> 12
  0011  LOADBOOL  R1 = false
  0012  LOADBOOL  R1 = true
  0013  RETURN    return R1..R0
  0014  RETURN    return R0..R-1
; ---------- proto12 [IsRewardClaimed] ----------
  ; fn ?  line 152-154 np=2 va=0 ms=6 code=14 consts=5 upvals=2 protos=0
  ;   K[0]='m_dbTable'
  ;   K[1]='GetInNumber'
  ;   K[2]='RewardClaimed'
  ;   K[3]='DB_VALUE_KEY'
  ;   K[4]=0
  ;   upvals: DBKey, _ENV
  ;   locals: self(0-14), id(0-14)
  0000  GETTABLE  R2 = R0[K0('m_dbTable')]
  0001  SELF      R3 = R2[K1('GetInNumber')] (self)
  0002  GETTABUP  R4 = DBKey[K2('RewardClaimed')]
  0003  GETTABUP  R5 = _ENV[K3('DB_VALUE_KEY')]
  0004  CALL      R2 = call(R2, 1 args, 3 rets)
  0005  TEST      if not R2 then   -> -131064
  0006  JMP       (jump)   -> 8
  0007  LOADK     R2 = K4 0
  0008  LE        if R1 le R2   -> -130548
  0009  JMP       (jump)   -> 11
  0010  LOADBOOL  R2 = false
  0011  LOADBOOL  R2 = true
  0012  RETURN    return R2..R1
  0013  RETURN    return R0..R-1
; ---------- proto13 [SetRewardClaimed] ----------
  ; fn ?  line 157-159 np=2 va=0 ms=7 code=7 consts=4 upvals=2 protos=0
  ;   K[0]='m_dbTable'
  ;   K[1]='Set'
  ;   K[2]='RewardClaimed'
  ;   K[3]='DB_VALUE_KEY'
  ;   upvals: DBKey, _ENV
  ;   locals: self(0-7), id(0-7)
  0000  GETTABLE  R2 = R0[K0('m_dbTable')]
  0001  SELF      R3 = R2[K1('Set')] (self)
  0002  GETTABUP  R4 = DBKey[K2('RewardClaimed')]
  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
; ---------- proto14 [GetActivityRound] ----------
  ; fn ?  line 161-163 np=1 va=0 ms=5 code=10 consts=5 upvals=2 protos=0
  ;   K[0]='m_dbTable'
  ;   K[1]='GetInNumber'
  ;   K[2]='ActivityRound'
  ;   K[3]='DB_VALUE_KEY'
  ;   K[4]=0
  ;   upvals: DBKey, _ENV
  ;   locals: self(0-10)
  0000  GETTABLE  R1 = R0[K0('m_dbTable')]
  0001  SELF      R2 = R1[K1('GetInNumber')] (self)
  0002  GETTABUP  R3 = DBKey[K2('ActivityRound')]
  0003  GETTABUP  R4 = _ENV[K3('DB_VALUE_KEY')]
  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
; ---------- proto15 [SetActivityRound] ----------
  ; fn ?  line 166-168 np=2 va=0 ms=7 code=7 consts=4 upvals=2 protos=0
  ;   K[0]='m_dbTable'
  ;   K[1]='Set'
  ;   K[2]='ActivityRound'
  ;   K[3]='DB_VALUE_KEY'
  ;   upvals: DBKey, _ENV
  ;   locals: self(0-7), activityRound(0-7)
  0000  GETTABLE  R2 = R0[K0('m_dbTable')]
  0001  SELF      R3 = R2[K1('Set')] (self)
  0002  GETTABUP  R4 = DBKey[K2('ActivityRound')]
  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
; ---------- proto16 [GetCurrentCrownId] ----------
  ; fn ?  line 174-176 np=1 va=0 ms=3 code=5 consts=2 upvals=0 protos=0
  ;   K[0]='GetFinishCount'
  ;   K[1]=1
  ;   locals: self(0-5)
  0000  SELF      R2 = R0[K0('GetFinishCount')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  ADD       R1 = K1(1) add R1
  0003  RETURN    return R1..R0
  0004  RETURN    return R0..R-1
; ---------- proto17 [TryTrigger] ----------
  ; fn ?  line 182-189 np=2 va=0 ms=6 code=17 consts=5 upvals=1 protos=0
  ;   K[0]='BaseLimitOrderRewardActivityModel'
  ;   K[1]='TryTrigger'
  ;   K[2]='GetActivityRound'
  ;   K[3]='SetActivityRound'
  ;   K[4]=1
  ;   upvals: _ENV
  ;   locals: self(0-17), successCallback(0-17), curRound(9-14)
  0000  GETTABUP  R2 = _ENV[K0('BaseLimitOrderRewardActivityModel')]
  0001  GETTABLE  R2 = R2[K1('TryTrigger')]
  0002  MOVE      R3 = R0
  0003  MOVE      R4 = R0
  0004  CALL      R2 = call(R2, 1 args, 2 rets)
  0005  TEST      if not R2 then   -> -131065
  0006  JMP       (jump)   -> 14
  0007  SELF      R3 = R0[K2('GetActivityRound')] (self)
  0008  CALL      R2 = call(R2, 1 args, 1 rets)
  0009  SELF      R4 = R0[K3('SetActivityRound')] (self)
  0010  ADD       R5 = K4(1) add R2
  0011  CALL      R3 = call(R3, 0 args, 2 rets)
  0012  LOADBOOL  R3 = true
  0013  RETURN    return R3..R2
  0014  LOADBOOL  R2 = false
  0015  RETURN    return R2..R1
  0016  RETURN    return R0..R-1
; ---------- proto18 [GetMaxOrderNum] ----------
  ; fn ?  line 195-200 np=1 va=0 ms=3 code=17 consts=5 upvals=1 protos=0
  ;   K[0]='m_config'
  ;   K[1]='Table'
  ;   K[2]='IsEmpty'
  ;   K[3]='arrConfig'
  ;   K[4]=0
  ;   upvals: _ENV
  ;   locals: self(0-17)
  0000  GETTABLE  R1 = R0[K0('m_config')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 10
  0003  GETTABUP  R1 = _ENV[K1('Table')]
  0004  GETTABLE  R1 = R1[K2('IsEmpty')]
  0005  GETTABLE  R2 = R0[K0('m_config')]
  0006  GETTABLE  R2 = R2[K3('arrConfig')]
  0007  CALL      R1 = call(R1, 1 args, 1 rets)
  0008  TEST      if not R1 then   -> -131062
  0009  JMP       (jump)   -> 12
  0010  LOADK     R1 = K4 0
  0011  RETURN    return R1..R0
  0012  GETTABLE  R1 = R0[K0('m_config')]
  0013  GETTABLE  R1 = R1[K3('arrConfig')]
  0014  LEN       R1 = len R0
  0015  RETURN    return R1..R0
  0016  RETURN    return R0..R-1
; ---------- proto19 [_OnTriggerSuccess] ----------
  ; fn ?  line 202-204 np=1 va=0 ms=4 code=4 consts=2 upvals=0 protos=0
  ;   K[0]='SetRewardClaimed'
  ;   K[1]=0
  ;   locals: self(0-4)
  0000  SELF      R2 = R0[K0('SetRewardClaimed')] (self)
  0001  LOADK     R3 = K1 0
  0002  CALL      R1 = call(R1, 0 args, 2 rets)
  0003  RETURN    return R0..R-1
; ---------- proto20 [_OnRefreshOrderFinished] ----------
  ; fn ?  line 206-209 np=1 va=0 ms=4 code=6 consts=2 upvals=0 protos=0
  ;   K[0]='_LogSelectOrder'
  ;   K[1]='SetEntryPlayAnimInfo'
  ;   locals: self(0-6)
  0000  SELF      R2 = R0[K0('_LogSelectOrder')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  SELF      R2 = R0[K1('SetEntryPlayAnimInfo')] (self)
  0003  LOADBOOL  R3 = true
  0004  CALL      R1 = call(R1, 0 args, 2 rets)
  0005  RETURN    return R0..R-1
; ---------- proto21 [_OnBakeOutStateChanged] ----------
  ; fn ?  line 211-222 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
; ---------- proto22 [_OnCurOrderFinished] ----------
  ; fn ?  line 224-239 np=1 va=0 ms=8 code=30 consts=11 upvals=1 protos=0
  ;   K[0]='CanClaimReward'
  ;   K[1]='ClaimReward'
  ;   K[2]='GetFinishCount'
  ;   K[3]='GetMaxOrderNum'
  ;   K[4]='SetTriggerEndTime'
  ;   K[5]=0
  ;   K[6]='GetCurrentCrownId'
  ;   K[7]='GM'
  ;   K[8]='GameModel'
  ;   K[9]='GetServerTime'
  ;   K[10]='GetConfigDurationInSeconds'
  ;   upvals: _ENV
  ;   locals: self(0-30), canClaimRewardId(2-30), crownId(19-29), serverTime(23-29), crownTime(26-29)
  0000  SELF      R2 = R0[K0('CanClaimReward')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  TEST      if not R1 then   -> -131068
  0003  JMP       (jump)   -> 7
  0004  SELF      R3 = R0[K1('ClaimReward')] (self)
  0005  MOVE      R4 = R0
  0006  CALL      R2 = call(R2, 0 args, 2 rets)
  0007  SELF      R3 = R0[K2('GetFinishCount')] (self)
  0008  CALL      R2 = call(R2, 1 args, 1 rets)
  0009  SELF      R4 = R0[K3('GetMaxOrderNum')] (self)
  0010  CALL      R3 = call(R3, 1 args, 1 rets)
  0011  LE        if R0 le R2   -> -129521
  0012  JMP       (jump)   -> 17
  0013  SELF      R3 = R0[K4('SetTriggerEndTime')] (self)
  0014  LOADK     R4 = K5 0
  0015  CALL      R2 = call(R2, 0 args, 2 rets)
  0016  JMP       (jump)   -> 29
  0017  SELF      R3 = R0[K6('GetCurrentCrownId')] (self)
  0018  CALL      R2 = call(R2, 1 args, 1 rets)
  0019  GETTABUP  R3 = _ENV[K7('GM')]
  0020  GETTABLE  R3 = R3[K8('GameModel')]
  0021  SELF      R4 = R3[K9('GetServerTime')] (self)
  0022  CALL      R3 = call(R3, 1 args, 1 rets)
  0023  SELF      R5 = R0[K10('GetConfigDurationInSeconds')] (self)
  0024  MOVE      R6 = R0
  0025  CALL      R4 = call(R4, 1 args, 2 rets)
  0026  SELF      R6 = R0[K4('SetTriggerEndTime')] (self)
  0027  ADD       R7 = R4 add R3
  0028  CALL      R5 = call(R5, 0 args, 2 rets)
  0029  RETURN    return R0..R-1
; ---------- proto23 [CanClaimReward] ----------
  ; fn ?  line 245-256 np=1 va=0 ms=5 code=15 consts=3 upvals=0 protos=0
  ;   K[0]='GetFinishCount'
  ;   K[1]=1
  ;   K[2]='IsRewardClaimed'
  ;   locals: self(0-15), finishCount(2-15)
  0000  SELF      R2 = R0[K0('GetFinishCount')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  LT        if R0 lt K1(1)   -> -130299
  0003  JMP       (jump)   -> 6
  0004  LOADBOOL  R2 = false
  0005  RETURN    return R2..R1
  0006  SELF      R3 = R0[K2('IsRewardClaimed')] (self)
  0007  MOVE      R4 = R0
  0008  CALL      R2 = call(R2, 1 args, 2 rets)
  0009  TEST      if not R2 then   -> -131060
  0010  JMP       (jump)   -> 12
  0011  RETURN    return R1..R0
  0012  LOADBOOL  R2 = false
  0013  RETURN    return R2..R1
  0014  RETURN    return R0..R-1
; ---------- proto24 [ClaimReward] ----------
  ; fn ?  line 259-270 np=2 va=0 ms=12 code=29 consts=13 upvals=1 protos=0
  ;   K[0]='IsRewardClaimed'
  ;   K[1]='GetActivityRound'
  ;   K[2]='RewardApi'
  ;   K[3]='AcquireRewardsLogic'
  ;   K[4]='SelectRewardByCrownId'
  ;   K[5]='EPropertySource'
  ;   K[6]='Give'
  ;   K[7]='EBIType'
  ;   K[8]='CrownLevelUpClaimReward'
  ;   K[9]='ERewardScene'
  ;   K[10]='Other'
  ;   K[11]='SetRewardClaimed'
  ;   K[12]='m_rewards'
  ;   upvals: _ENV
  ;   locals: self(0-29), id(0-29), curRound(9-29), rewards(23-29)
  0000  SELF      R3 = R0[K0('IsRewardClaimed')] (self)
  0001  MOVE      R4 = R0
  0002  CALL      R2 = call(R2, 1 args, 2 rets)
  0003  TEST      if not R2 then   -> -131067
  0004  JMP       (jump)   -> 7
  0005  LOADNIL   R2..R2 = nil
  0006  RETURN    return R2..R1
  0007  SELF      R3 = R0[K1('GetActivityRound')] (self)
  0008  CALL      R2 = call(R2, 1 args, 1 rets)
  0009  GETTABUP  R3 = _ENV[K2('RewardApi')]
  0010  GETTABLE  R3 = R3[K3('AcquireRewardsLogic')]
  0011  SELF      R5 = R0[K4('SelectRewardByCrownId')] (self)
  0012  MOVE      R6 = R0
  0013  CALL      R4 = call(R4, 1 args, 2 rets)
  0014  GETTABUP  R5 = _ENV[K5('EPropertySource')]
  0015  GETTABLE  R5 = R5[K6('Give')]
  0016  GETTABUP  R6 = _ENV[K7('EBIType')]
  0017  GETTABLE  R6 = R6[K8('CrownLevelUpClaimReward')]
  0018  GETTABUP  R7 = _ENV[K9('ERewardScene')]
  0019  GETTABLE  R7 = R7[K10('Other')]
  0020  LOADNIL   R8..R8 = nil
  0021  MOVE      R11 = R0
  0022  CALL      R3 = call(R3, 1 args, 8 rets)
  0023  SELF      R5 = R0[K11('SetRewardClaimed')] (self)
  0024  MOVE      R6 = R0
  0025  CALL      R4 = call(R4, 0 args, 2 rets)
  0026  SETTABLE  R0[K12('m_rewards')] = R3
  0027  RETURN    return R3..R2
  0028  RETURN    return R0..R-1
; ---------- proto25 [GetClaimedRewards] ----------
  ; fn ?  line 272-274 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_rewards'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_rewards')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto26 [SetClaimedRewards] ----------
  ; fn ?  line 276-278 np=1 va=0 ms=2 code=2 consts=2 upvals=0 protos=0
  ;   K[0]='m_rewards'
  ;   K[1]=nil
  ;   locals: self(0-2)
  0000  SETTABLE  R0[K0('m_rewards')] = K1(nil)
  0001  RETURN    return R0..R-1
; ---------- proto27 [_OpenWindow] ----------
  ; fn ?  line 285-287 np=2 va=1 ms=8 code=11 consts=5 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='UIManager'
  ;   K[2]='OpenView'
  ;   K[3]='GetType'
  ;   K[4]='GetId'
  ;   upvals: _ENV
  ;   locals: self(0-11), prefabName(0-11)
  0000  GETTABUP  R2 = _ENV[K0('GM')]
  0001  GETTABLE  R2 = R2[K1('UIManager')]
  0002  SELF      R3 = R2[K2('OpenView')] (self)
  0003  MOVE      R4 = R0
  0004  SELF      R6 = R0[K3('GetType')] (self)
  0005  CALL      R5 = call(R5, 1 args, 1 rets)
  0006  SELF      R7 = R0[K4('GetId')] (self)
  0007  CALL      R6 = call(R6, 1 args, 1 rets)
  0008  VARARG    R7 = vararg(0)
  0009  CALL      R2 = call(R2, 0 args, -1 rets)
  0010  RETURN    return R0..R-1
; ---------- proto28 [OpenMainWindow] ----------
  ; fn ?  line 291-293 np=2 va=0 ms=6 code=7 consts=3 upvals=0 protos=0
  ;   K[0]='_OpenWindow'
  ;   K[1]='GetActivityDefinition'
  ;   K[2]='MainWindowPrefabName'
  ;   locals: self(0-7), bAuto(0-7)
  0000  SELF      R3 = R0[K0('_OpenWindow')] (self)
  0001  SELF      R5 = R0[K1('GetActivityDefinition')] (self)
  0002  CALL      R4 = call(R4, 1 args, 1 rets)
  0003  GETTABLE  R4 = R4[K2('MainWindowPrefabName')]
  0004  MOVE      R5 = R0
  0005  CALL      R2 = call(R2, 0 args, 3 rets)
  0006  RETURN    return R0..R-1
; ---------- proto29 [GetOrderCellTopLeftEntryShowConfig] ----------
  ; fn ?  line 301-312 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]='CrownLevelUp'
  ;   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('CrownLevelUp')]
  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 307-309 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
; ---------- proto30 [NeedEntryPlayAnim] ----------
  ; fn ?  line 314-316 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_bEntryPlayAnim'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_bEntryPlayAnim')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto31 [SetEntryPlayAnimInfo] ----------
  ; fn ?  line 318-320 np=2 va=0 ms=2 code=2 consts=1 upvals=0 protos=0
  ;   K[0]='m_bEntryPlayAnim'
  ;   locals: self(0-2), bEntryPlayAnim(0-2)
  0000  SETTABLE  R0[K0('m_bEntryPlayAnim')] = R1
  0001  RETURN    return R0..R-1
; ---------- proto32 [_LogSelectOrder] ----------
  ; fn ?  line 326-333 np=1 va=0 ms=10 code=45 consts=17 upvals=1 protos=0
  ;   K[0]='GetCurrentCrownId'
  ;   K[1]='table'
  ;   K[2]='insert'
  ;   K[3]='string'
  ;   K[4]='format'
  ;   K[5]='orderId:%s'
  ;   K[6]='GetCurrentOrderId'
  ;   K[7]='duration:%d'
  ;   K[8]='GetConfigDurationInSeconds'
  ;   K[9]='crownId:%d'
  ;   K[10]='GM'
  ;   K[11]='BIManager'
  ;   K[12]='LogAction'
  ;   K[13]='EBIType'
  ;   K[14]='CrownLevelUpSelectOrder'
  ;   K[15]='concat'
  ;   K[16]=';'
  ;   upvals: _ENV
  ;   locals: self(0-45), strAction(1-45), crownId(3-45)
  0000  NEWTABLE  R1 = {} (0 items)
  0001  SELF      R3 = R0[K0('GetCurrentCrownId')] (self)
  0002  CALL      R2 = call(R2, 1 args, 1 rets)
  0003  GETTABUP  R3 = _ENV[K1('table')]
  0004  GETTABLE  R3 = R3[K2('insert')]
  0005  MOVE      R4 = R0
  0006  GETTABUP  R5 = _ENV[K3('string')]
  0007  GETTABLE  R5 = R5[K4('format')]
  0008  LOADK     R6 = K5 'orderId:%s'
  0009  SELF      R8 = R0[K6('GetCurrentOrderId')] (self)
  0010  CALL      R7 = call(R7, -1 args, 1 rets)
  0011  CALL      R5 = call(R5, -1 args, -1 rets)
  0012  CALL      R3 = call(R3, 0 args, -1 rets)
  0013  GETTABUP  R3 = _ENV[K1('table')]
  0014  GETTABLE  R3 = R3[K2('insert')]
  0015  MOVE      R4 = R0
  0016  GETTABUP  R5 = _ENV[K3('string')]
  0017  GETTABLE  R5 = R5[K4('format')]
  0018  LOADK     R6 = K7 'duration:%d'
  0019  SELF      R8 = R0[K8('GetConfigDurationInSeconds')] (self)
  0020  MOVE      R9 = R0
  0021  CALL      R7 = call(R7, -1 args, 2 rets)
  0022  CALL      R5 = call(R5, -1 args, -1 rets)
  0023  CALL      R3 = call(R3, 0 args, -1 rets)
  0024  GETTABUP  R3 = _ENV[K1('table')]
  0025  GETTABLE  R3 = R3[K2('insert')]
  0026  MOVE      R4 = R0
  0027  GETTABUP  R5 = _ENV[K3('string')]
  0028  GETTABLE  R5 = R5[K4('format')]
  0029  LOADK     R6 = K9 'crownId:%d'
  0030  MOVE      R7 = R0
  0031  CALL      R5 = call(R5, -1 args, 2 rets)
  0032  CALL      R3 = call(R3, 0 args, -1 rets)
  0033  GETTABUP  R3 = _ENV[K10('GM')]
  0034  GETTABLE  R3 = R3[K11('BIManager')]
  0035  SELF      R4 = R3[K12('LogAction')] (self)
  0036  GETTABUP  R5 = _ENV[K13('EBIType')]
  0037  GETTABLE  R5 = R5[K14('CrownLevelUpSelectOrder')]
  0038  GETTABUP  R6 = _ENV[K1('table')]
  0039  GETTABLE  R6 = R6[K15('concat')]
  0040  MOVE      R7 = R0
  0041  LOADK     R8 = K16 ';'
  0042  CALL      R6 = call(R6, -1 args, 2 rets)
  0043  CALL      R3 = call(R3, 0 args, -1 rets)
  0044  RETURN    return R0..R-1
