# OrdersNonstop_Model_OrdersNonstopModel_1288.luac
; fn @OrdersNonstopModel.lua  line 0-0 np=0 va=1 ms=3 code=70 consts=29 upvals=1 protos=19
;   K[0]='OrdersNonstopModel'
;   K[1]='setmetatable'
;   K[2]='bShouldSkipEndWindowOnLongAway'
;   K[3]=true
;   K[4]='BaseLimitOrderRewardActivityModel'
;   K[5]='__index'
;   K[6]='SettleOrderRound'
;   K[7]='settle_order_r'
;   K[8]='CanPopEndWindow'
;   K[9]='can_pop_end'
;   K[10]='_GetDefinition'
;   K[11]='_LoadOtherServerConfig'
;   K[12]='GetMaxOrderNum'
;   K[13]='_OnOrderGroupRefreshed'
;   K[14]='_OnBakeOutStateChanged'
;   K[15]='TryTrigger'
;   K[16]='SetSettleOrderRound'
;   K[17]='GetSettleOrderRound'
;   K[18]='SetPopEndWindow'
;   K[19]='CanPopEndWindow'
;   K[20]='HasUnSettlementRound'
;   K[21]='CanSettleFinishedRound'
;   K[22]='TrySettleFinishedRound'
;   K[23]='IsSettleAllRound'
;   K[24]='GetOrderCellTopLeftEntryShowConfig'
;   K[25]='GetRoundConfig'
;   K[26]='ShouldPopWindow'
;   K[27]='ShouldPopEndWindow'
;   K[28]='CanSkipEndWindowOnLongAway'
;   upvals: _ENV
;   locals: DBKey(12-70)
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  SETTABLE  R1[K2('bShouldSkipEndWindowOnLongAway')] = K3(true)
0003  GETTABUP  R2 = _ENV[K4('BaseLimitOrderRewardActivityModel')]
0004  CALL      R0 = call(R0, 1 args, 2 rets)
0005  SETTABUP  _ENV[K0('OrdersNonstopModel')] = R0
0006  GETTABUP  R0 = _ENV[K0('OrdersNonstopModel')]
0007  GETTABUP  R1 = _ENV[K0('OrdersNonstopModel')]
0008  SETTABLE  R0[K5('__index')] = R1
0009  NEWTABLE  R0 = {} (0 items)
0010  SETTABLE  R0[K6('SettleOrderRound')] = K7('settle_order_r')
0011  SETTABLE  R0[K8('CanPopEndWindow')] = K9('can_pop_end')
0012  GETTABUP  R1 = _ENV[K0('OrdersNonstopModel')]
0013  CLOSURE   R2 = closure proto0
0014  SETTABLE  R1[K10('_GetDefinition')] = R2
0015  GETTABUP  R1 = _ENV[K0('OrdersNonstopModel')]
0016  CLOSURE   R2 = closure proto1
0017  SETTABLE  R1[K11('_LoadOtherServerConfig')] = R2
0018  GETTABUP  R1 = _ENV[K0('OrdersNonstopModel')]
0019  CLOSURE   R2 = closure proto2
0020  SETTABLE  R1[K12('GetMaxOrderNum')] = R2
0021  GETTABUP  R1 = _ENV[K0('OrdersNonstopModel')]
0022  CLOSURE   R2 = closure proto3
0023  SETTABLE  R1[K13('_OnOrderGroupRefreshed')] = R2
0024  GETTABUP  R1 = _ENV[K0('OrdersNonstopModel')]
0025  CLOSURE   R2 = closure proto4
0026  SETTABLE  R1[K14('_OnBakeOutStateChanged')] = R2
0027  GETTABUP  R1 = _ENV[K0('OrdersNonstopModel')]
0028  CLOSURE   R2 = closure proto5
0029  SETTABLE  R1[K15('TryTrigger')] = R2
0030  GETTABUP  R1 = _ENV[K0('OrdersNonstopModel')]
0031  CLOSURE   R2 = closure proto6
0032  SETTABLE  R1[K16('SetSettleOrderRound')] = R2
0033  GETTABUP  R1 = _ENV[K0('OrdersNonstopModel')]
0034  CLOSURE   R2 = closure proto7
0035  SETTABLE  R1[K17('GetSettleOrderRound')] = R2
0036  GETTABUP  R1 = _ENV[K0('OrdersNonstopModel')]
0037  CLOSURE   R2 = closure proto8
0038  SETTABLE  R1[K18('SetPopEndWindow')] = R2
0039  GETTABUP  R1 = _ENV[K0('OrdersNonstopModel')]
0040  CLOSURE   R2 = closure proto9
0041  SETTABLE  R1[K19('CanPopEndWindow')] = R2
0042  GETTABUP  R1 = _ENV[K0('OrdersNonstopModel')]
0043  CLOSURE   R2 = closure proto10
0044  SETTABLE  R1[K20('HasUnSettlementRound')] = R2
0045  GETTABUP  R1 = _ENV[K0('OrdersNonstopModel')]
0046  CLOSURE   R2 = closure proto11
0047  SETTABLE  R1[K21('CanSettleFinishedRound')] = R2
0048  GETTABUP  R1 = _ENV[K0('OrdersNonstopModel')]
0049  CLOSURE   R2 = closure proto12
0050  SETTABLE  R1[K22('TrySettleFinishedRound')] = R2
0051  GETTABUP  R1 = _ENV[K0('OrdersNonstopModel')]
0052  CLOSURE   R2 = closure proto13
0053  SETTABLE  R1[K23('IsSettleAllRound')] = R2
0054  GETTABUP  R1 = _ENV[K0('OrdersNonstopModel')]
0055  CLOSURE   R2 = closure proto14
0056  SETTABLE  R1[K24('GetOrderCellTopLeftEntryShowConfig')] = R2
0057  GETTABUP  R1 = _ENV[K0('OrdersNonstopModel')]
0058  CLOSURE   R2 = closure proto15
0059  SETTABLE  R1[K25('GetRoundConfig')] = R2
0060  GETTABUP  R1 = _ENV[K0('OrdersNonstopModel')]
0061  CLOSURE   R2 = closure proto16
0062  SETTABLE  R1[K26('ShouldPopWindow')] = R2
0063  GETTABUP  R1 = _ENV[K0('OrdersNonstopModel')]
0064  CLOSURE   R2 = closure proto17
0065  SETTABLE  R1[K27('ShouldPopEndWindow')] = R2
0066  GETTABUP  R1 = _ENV[K0('OrdersNonstopModel')]
0067  CLOSURE   R2 = closure proto18
0068  SETTABLE  R1[K28('CanSkipEndWindowOnLongAway')] = R2
0069  RETURN    return R0..R-1
; ---------- proto0 [_GetDefinition] ----------
  ; fn ?  line 19-21 np=2 va=0 ms=3 code=4 consts=1 upvals=1 protos=0
  ;   K[0]='OrdersNonstopDefinition'
  ;   upvals: _ENV
  ;   locals: self(0-4), activityType(0-4)
  0000  GETTABUP  R2 = _ENV[K0('OrdersNonstopDefinition')]
  0001  GETTABLE  R2 = R2[R1]
  0002  RETURN    return R2..R1
  0003  RETURN    return R0..R-1
; ---------- proto1 [_LoadOtherServerConfig] ----------
  ; fn ?  line 23-52 np=2 va=0 ms=11 code=78 consts=22 upvals=1 protos=0
  ;   K[0]='BaseLimitOrderRewardActivityModel'
  ;   K[1]='_LoadOtherServerConfig'
  ;   K[2]='OrdersNonstopConfig'
  ;   K[3]='m_arrRoundConfig'
  ;   K[4]='m_maxRound'
  ;   K[5]=0
  ;   K[6]='ipairs'
  ;   K[7]='reward'
  ;   K[8]=nil
  ;   K[9]='RewardApi'
  ;   K[10]='CryptRewards'
  ;   K[11]='round'
  ;   K[12]='Log'
  ;   K[13]='Error'
  ;   K[14]='OrdersNonstopConfig存在重复的round, 请检查 round: '
  ;   K[15]='math'
  ;   K[16]='max'
  ;   K[17]=1
  ;   K[18]='OrdersNonstopConfig round列不连续, 缺失round: '
  ;   K[19]='Table'
  ;   K[20]='IsEmpty'
  ;   K[21]='OrdersNonstopConfig 最后一轮必须配置奖励'
  ;   upvals: _ENV
  ;   locals: self(0-78), config(0-78), arrConfig(9-78), (for generator)(15-47), (for state)(15-47), (for control)(15-47), _(16-45), config(16-45), (for index)(50-62), (for limit)(50-62), (for step)(50-62), i(51-61), lastRoundConfig(65-78)
  0000  GETTABUP  R2 = _ENV[K0('BaseLimitOrderRewardActivityModel')]
  0001  GETTABLE  R2 = R2[K1('_LoadOtherServerConfig')]
  0002  MOVE      R3 = R0
  0003  MOVE      R4 = R0
  0004  CALL      R2 = call(R2, 0 args, 2 rets)
  0005  GETTABLE  R2 = R1[K2('OrdersNonstopConfig')]
  0006  TEST      if not R2 then   -> -131063
  0007  JMP       (jump)   -> 9
  0008  NEWTABLE  R2 = {} (0 items)
  0009  NEWTABLE  R3 = {} (0 items)
  0010  SETTABLE  R0[K3('m_arrRoundConfig')] = R3
  0011  SETTABLE  R0[K4('m_maxRound')] = K5(0)
  0012  GETTABUP  R3 = _ENV[K6('ipairs')]
  0013  MOVE      R4 = R0
  0014  CALL      R3 = call(R3, 3 args, 1 rets)
  0015  JMP       (jump)   -> 45
  0016  GETTABLE  R8 = R7[K7('reward')]
  0017  EQ        if R1 eq K8(nil)   -> -126693
  0018  JMP       (jump)   -> 24
  0019  GETTABUP  R8 = _ENV[K9('RewardApi')]
  0020  GETTABLE  R8 = R8[K10('CryptRewards')]
  0021  GETTABLE  R9 = R7[K7('reward')]
  0022  LOADBOOL  R10 = true
  0023  CALL      R8 = call(R8, 0 args, 2 rets)
  0024  GETTABLE  R8 = R0[K3('m_arrRoundConfig')]
  0025  GETTABLE  R9 = R7[K11('round')]
  0026  GETTABLE  R8 = R8[R9]
  0027  EQ        if R0 eq K8(nil)   -> -126683
  0028  JMP       (jump)   -> 33
  0029  GETTABLE  R8 = R0[K3('m_arrRoundConfig')]
  0030  GETTABLE  R9 = R7[K11('round')]
  0031  SETTABLE  R8[R9] = R7
  0032  JMP       (jump)   -> 39
  0033  GETTABUP  R8 = _ENV[K12('Log')]
  0034  GETTABLE  R8 = R8[K13('Error')]
  0035  LOADK     R9 = K14 'OrdersNonstopConfig存在重复的round, 请检查 round: '
  0036  GETTABLE  R10 = R7[K11('round')]
  0037  CONCAT    R9 = concat(R9..R9)
  0038  CALL      R8 = call(R8, 0 args, 1 rets)
  0039  GETTABUP  R8 = _ENV[K15('math')]
  0040  GETTABLE  R8 = R8[K16('max')]
  0041  GETTABLE  R9 = R0[K4('m_maxRound')]
  0042  GETTABLE  R10 = R7[K11('round')]
  0043  CALL      R8 = call(R8, 1 args, 2 rets)
  0044  SETTABLE  R0[K4('m_maxRound')] = R8
  0045  TFORCALL  tforcall R3
  0046  TFORLOOP  tforloop R5(sBx=-31)   -> 16
  0047  LOADK     R3 = K17 1
  0048  GETTABLE  R4 = R0[K4('m_maxRound')]
  0049  LOADK     R5 = K17 1
  0050  FORPREP   forprep R3(sBx=10)   -> 61
  0051  GETTABLE  R7 = R0[K3('m_arrRoundConfig')]
  0052  GETTABLE  R7 = R7[R6]
  0053  EQ        if R0 eq K8(nil)   -> -127169
  0054  JMP       (jump)   -> 61
  0055  GETTABUP  R7 = _ENV[K12('Log')]
  0056  GETTABLE  R7 = R7[K13('Error')]
  0057  LOADK     R8 = K18 'OrdersNonstopConfig round列不连续, 缺失round: '
  0058  MOVE      R9 = R0
  0059  CONCAT    R8 = concat(R8..R8)
  0060  CALL      R7 = call(R7, 0 args, 1 rets)
  0061  FORLOOP   forloop R3(sBx=-11)   -> 51
  0062  GETTABLE  R3 = R0[K3('m_arrRoundConfig')]
  0063  GETTABLE  R4 = R0[K4('m_maxRound')]
  0064  GETTABLE  R3 = R3[R4]
  0065  EQ        if R1 eq K8(nil)   -> -129205
  0066  JMP       (jump)   -> 77
  0067  GETTABUP  R4 = _ENV[K19('Table')]
  0068  GETTABLE  R4 = R4[K20('IsEmpty')]
  0069  MOVE      R5 = R0
  0070  CALL      R4 = call(R4, 1 args, 1 rets)
  0071  TEST      if not R4 then   -> -130999
  0072  JMP       (jump)   -> 77
  0073  GETTABUP  R4 = _ENV[K12('Log')]
  0074  GETTABLE  R4 = R4[K13('Error')]
  0075  LOADK     R5 = K21 'OrdersNonstopConfig 最后一轮必须配置奖励'
  0076  CALL      R4 = call(R4, 0 args, 1 rets)
  0077  RETURN    return R0..R-1
; ---------- proto2 [GetMaxOrderNum] ----------
  ; fn ?  line 54-56 np=1 va=0 ms=2 code=6 consts=2 upvals=0 protos=0
  ;   K[0]='m_maxRound'
  ;   K[1]=0
  ;   locals: self(0-6)
  0000  GETTABLE  R1 = R0[K0('m_maxRound')]
  0001  TEST      if not R1 then   -> -131068
  0002  JMP       (jump)   -> 4
  0003  LOADK     R1 = K1 0
  0004  RETURN    return R1..R0
  0005  RETURN    return R0..R-1
; ---------- proto3 [_OnOrderGroupRefreshed] ----------
  ; fn ?  line 58-60 np=1 va=0 ms=3 code=6 consts=4 upvals=1 protos=0
  ;   K[0]='EventDispatcher'
  ;   K[1]='DispatchEvent'
  ;   K[2]='EEventType'
  ;   K[3]='OrdersNonstopPopStateChanged'
  ;   upvals: _ENV
  ;   locals: self(0-6)
  0000  GETTABUP  R1 = _ENV[K0('EventDispatcher')]
  0001  GETTABLE  R1 = R1[K1('DispatchEvent')]
  0002  GETTABUP  R2 = _ENV[K2('EEventType')]
  0003  GETTABLE  R2 = R2[K3('OrdersNonstopPopStateChanged')]
  0004  CALL      R1 = call(R1, 0 args, 1 rets)
  0005  RETURN    return R0..R-1
; ---------- proto4 [_OnBakeOutStateChanged] ----------
  ; fn ?  line 62-69 np=1 va=0 ms=3 code=13 consts=6 upvals=1 protos=0
  ;   K[0]='IsInDuration'
  ;   K[1]='TryReplaceInvalidOrder'
  ;   K[2]='EventDispatcher'
  ;   K[3]='DispatchEvent'
  ;   K[4]='EEventType'
  ;   K[5]='OrdersNonstopPopStateChanged'
  ;   upvals: _ENV
  ;   locals: self(0-13)
  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('TryReplaceInvalidOrder')] (self)
  0006  CALL      R1 = call(R1, 0 args, 1 rets)
  0007  GETTABUP  R1 = _ENV[K2('EventDispatcher')]
  0008  GETTABLE  R1 = R1[K3('DispatchEvent')]
  0009  GETTABUP  R2 = _ENV[K4('EEventType')]
  0010  GETTABLE  R2 = R2[K5('OrdersNonstopPopStateChanged')]
  0011  CALL      R1 = call(R1, 0 args, 1 rets)
  0012  RETURN    return R0..R-1
; ---------- proto5 [TryTrigger] ----------
  ; fn ?  line 71-79 np=1 va=0 ms=5 code=17 consts=6 upvals=1 protos=0
  ;   K[0]='BaseLimitOrderRewardActivityModel'
  ;   K[1]='TryTrigger'
  ;   K[2]='SetPopEndWindow'
  ;   K[3]='SetSettleOrderRound'
  ;   K[4]=0
  ;   K[5]='SetEndWindowSkippedByAway'
  ;   upvals: _ENV
  ;   locals: self(0-17), bSuccess(4-17)
  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)   -> 15
  0006  SELF      R3 = R0[K2('SetPopEndWindow')] (self)
  0007  LOADBOOL  R4 = true
  0008  CALL      R2 = call(R2, 0 args, 2 rets)
  0009  SELF      R3 = R0[K3('SetSettleOrderRound')] (self)
  0010  LOADK     R4 = K4 0
  0011  CALL      R2 = call(R2, 0 args, 2 rets)
  0012  SELF      R3 = R0[K5('SetEndWindowSkippedByAway')] (self)
  0013  LOADBOOL  R4 = false
  0014  CALL      R2 = call(R2, 0 args, 2 rets)
  0015  RETURN    return R1..R0
  0016  RETURN    return R0..R-1
; ---------- proto6 [SetSettleOrderRound] ----------
  ; fn ?  line 83-85 np=2 va=0 ms=7 code=8 consts=4 upvals=2 protos=0
  ;   K[0]='m_dbTable'
  ;   K[1]='Set'
  ;   K[2]='SettleOrderRound'
  ;   K[3]='DB_VALUE_KEY'
  ;   upvals: DBKey, _ENV
  ;   locals: self(0-8), round(0-8)
  0000  GETTABLE  R2 = R0[K0('m_dbTable')]
  0001  SELF      R3 = R2[K1('Set')] (self)
  0002  GETTABUP  R4 = DBKey[K2('SettleOrderRound')]
  0003  GETTABUP  R5 = _ENV[K3('DB_VALUE_KEY')]
  0004  MOVE      R6 = R0
  0005  TAILCALL  tailcall(R2, 0)
  0006  RETURN    return R2..R1
  0007  RETURN    return R0..R-1
; ---------- proto7 [GetSettleOrderRound] ----------
  ; fn ?  line 88-90 np=1 va=0 ms=5 code=10 consts=5 upvals=2 protos=0
  ;   K[0]='m_dbTable'
  ;   K[1]='GetValue'
  ;   K[2]='SettleOrderRound'
  ;   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('GetValue')] (self)
  0002  GETTABUP  R3 = DBKey[K2('SettleOrderRound')]
  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
; ---------- proto8 [SetPopEndWindow] ----------
  ; fn ?  line 92-94 np=2 va=0 ms=7 code=12 consts=6 upvals=2 protos=0
  ;   K[0]='m_dbTable'
  ;   K[1]='Set'
  ;   K[2]='CanPopEndWindow'
  ;   K[3]='DB_VALUE_KEY'
  ;   K[4]=1
  ;   K[5]=0
  ;   upvals: DBKey, _ENV
  ;   locals: self(0-12), bPop(0-12)
  0000  GETTABLE  R2 = R0[K0('m_dbTable')]
  0001  SELF      R3 = R2[K1('Set')] (self)
  0002  GETTABUP  R4 = DBKey[K2('CanPopEndWindow')]
  0003  GETTABUP  R5 = _ENV[K3('DB_VALUE_KEY')]
  0004  TEST      if not R1 then   -> -131066
  0005  JMP       (jump)   -> 9
  0006  LOADK     R6 = K4 1
  0007  TEST      if not R6 then   -> -131062
  0008  JMP       (jump)   -> 10
  0009  LOADK     R6 = K5 0
  0010  CALL      R2 = call(R2, 0 args, 4 rets)
  0011  RETURN    return R0..R-1
; ---------- proto9 [CanPopEndWindow] ----------
  ; fn ?  line 96-98 np=1 va=0 ms=5 code=11 consts=5 upvals=2 protos=0
  ;   K[0]='m_dbTable'
  ;   K[1]='GetValue'
  ;   K[2]='CanPopEndWindow'
  ;   K[3]='DB_VALUE_KEY'
  ;   K[4]=1
  ;   upvals: DBKey, _ENV
  ;   locals: self(0-11)
  0000  GETTABLE  R1 = R0[K0('m_dbTable')]
  0001  SELF      R2 = R1[K1('GetValue')] (self)
  0002  GETTABUP  R3 = DBKey[K2('CanPopEndWindow')]
  0003  GETTABUP  R4 = _ENV[K3('DB_VALUE_KEY')]
  0004  CALL      R1 = call(R1, 1 args, 3 rets)
  0005  EQ        if R1 eq K4(1)   -> -130293
  0006  JMP       (jump)   -> 8
  0007  LOADBOOL  R1 = false
  0008  LOADBOOL  R1 = true
  0009  RETURN    return R1..R0
  0010  RETURN    return R0..R-1
; ---------- proto10 [HasUnSettlementRound] ----------
  ; fn ?  line 105-111 np=1 va=0 ms=4 code=10 consts=2 upvals=0 protos=0
  ;   K[0]='GetFinishCount'
  ;   K[1]='GetSettleOrderRound'
  ;   locals: self(0-10), count(2-10), settleCount(4-10)
  0000  SELF      R2 = R0[K0('GetFinishCount')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  SELF      R3 = R0[K1('GetSettleOrderRound')] (self)
  0003  CALL      R2 = call(R2, 1 args, 1 rets)
  0004  LT        if R1 lt R1   -> -130041
  0005  JMP       (jump)   -> 7
  0006  LOADBOOL  R3 = false
  0007  LOADBOOL  R3 = true
  0008  RETURN    return R3..R2
  0009  RETURN    return R0..R-1
; ---------- proto11 [CanSettleFinishedRound] ----------
  ; fn ?  line 114-133 np=1 va=0 ms=5 code=35 consts=8 upvals=1 protos=0
  ;   K[0]='IsInDuration'
  ;   K[1]='HasUnSettlementRound'
  ;   K[2]='GetFinishCount'
  ;   K[3]='m_arrRoundConfig'
  ;   K[4]=nil
  ;   K[5]='Table'
  ;   K[6]='IsEmpty'
  ;   K[7]='reward'
  ;   upvals: _ENV
  ;   locals: self(0-35), finishCount(12-35), roundConfig(14-35)
  0000  SELF      R2 = R0[K0('IsInDuration')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  TEST      if not R1 then   -> -131068
  0003  JMP       (jump)   -> 10
  0004  SELF      R2 = R0[K1('HasUnSettlementRound')] (self)
  0005  CALL      R1 = call(R1, 1 args, 1 rets)
  0006  TEST      if not R1 then   -> -131064
  0007  JMP       (jump)   -> 10
  0008  LOADBOOL  R1 = true
  0009  RETURN    return R1..R0
  0010  SELF      R2 = R0[K2('GetFinishCount')] (self)
  0011  CALL      R1 = call(R1, 1 args, 1 rets)
  0012  GETTABLE  R2 = R0[K3('m_arrRoundConfig')]
  0013  GETTABLE  R2 = R2[R1]
  0014  SELF      R4 = R0[K0('IsInDuration')] (self)
  0015  CALL      R3 = call(R3, 1 args, 1 rets)
  0016  TEST      if not R3 then   -> -131053
  0017  JMP       (jump)   -> 32
  0018  SELF      R4 = R0[K1('HasUnSettlementRound')] (self)
  0019  CALL      R3 = call(R3, 1 args, 1 rets)
  0020  TEST      if not R3 then   -> -131050
  0021  JMP       (jump)   -> 32
  0022  EQ        if R1 eq K4(nil)   -> -129764
  0023  JMP       (jump)   -> 32
  0024  GETTABUP  R3 = _ENV[K5('Table')]
  0025  GETTABLE  R3 = R3[K6('IsEmpty')]
  0026  GETTABLE  R4 = R2[K7('reward')]
  0027  CALL      R3 = call(R3, 1 args, 1 rets)
  0028  TEST      if not R3 then   -> -131041
  0029  JMP       (jump)   -> 32
  0030  LOADBOOL  R3 = true
  0031  RETURN    return R3..R2
  0032  LOADBOOL  R3 = false
  0033  RETURN    return R3..R2
  0034  RETURN    return R0..R-1
; ---------- proto12 [TrySettleFinishedRound] ----------
  ; fn ?  line 137-153 np=1 va=0 ms=11 code=41 consts=20 upvals=1 protos=0
  ;   K[0]='CanSettleFinishedRound'
  ;   K[1]='GetFinishCount'
  ;   K[2]='SetSettleOrderRound'
  ;   K[3]='m_arrRoundConfig'
  ;   K[4]=nil
  ;   K[5]='Table'
  ;   K[6]='IsEmpty'
  ;   K[7]='reward'
  ;   K[8]='RewardApi'
  ;   K[9]='AcquireRewardsLogic'
  ;   K[10]='EPropertySource'
  ;   K[11]='Give'
  ;   K[12]='EBIType'
  ;   K[13]='OrdersNonstopClaimReward'
  ;   K[14]='ERewardScene'
  ;   K[15]='Other'
  ;   K[16]='EGameMode'
  ;   K[17]='Board'
  ;   K[18]='CacheItemType'
  ;   K[19]='Stack'
  ;   upvals: _ENV
  ;   locals: self(0-41), finishCount(8-41), roundConfig(13-41), reward(14-41)
  0000  SELF      R2 = R0[K0('CanSettleFinishedRound')] (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('GetFinishCount')] (self)
  0007  CALL      R1 = call(R1, 1 args, 1 rets)
  0008  SELF      R3 = R0[K2('SetSettleOrderRound')] (self)
  0009  MOVE      R4 = R0
  0010  CALL      R2 = call(R2, 0 args, 2 rets)
  0011  GETTABLE  R2 = R0[K3('m_arrRoundConfig')]
  0012  GETTABLE  R2 = R2[R1]
  0013  LOADNIL   R3..R3 = nil
  0014  EQ        if R1 eq K4(nil)   -> -129772
  0015  JMP       (jump)   -> 37
  0016  GETTABUP  R4 = _ENV[K5('Table')]
  0017  GETTABLE  R4 = R4[K6('IsEmpty')]
  0018  GETTABLE  R5 = R2[K7('reward')]
  0019  CALL      R4 = call(R4, 1 args, 1 rets)
  0020  TEST      if not R4 then   -> -131049
  0021  JMP       (jump)   -> 37
  0022  GETTABUP  R4 = _ENV[K8('RewardApi')]
  0023  GETTABLE  R4 = R4[K9('AcquireRewardsLogic')]
  0024  GETTABLE  R5 = R2[K7('reward')]
  0025  GETTABUP  R6 = _ENV[K10('EPropertySource')]
  0026  GETTABLE  R6 = R6[K11('Give')]
  0027  GETTABUP  R7 = _ENV[K12('EBIType')]
  0028  GETTABLE  R7 = R7[K13('OrdersNonstopClaimReward')]
  0029  GETTABUP  R8 = _ENV[K14('ERewardScene')]
  0030  GETTABLE  R8 = R8[K15('Other')]
  0031  GETTABUP  R9 = _ENV[K16('EGameMode')]
  0032  GETTABLE  R9 = R9[K17('Board')]
  0033  GETTABUP  R10 = _ENV[K18('CacheItemType')]
  0034  GETTABLE  R10 = R10[K19('Stack')]
  0035  CALL      R4 = call(R4, 1 args, 6 rets)
  0036  MOVE      R3 = R0
  0037  LOADBOOL  R4 = true
  0038  MOVE      R5 = R0
  0039  RETURN    return R4..R3
  0040  RETURN    return R0..R-1
; ---------- proto13 [IsSettleAllRound] ----------
  ; fn ?  line 155-157 np=1 va=0 ms=3 code=9 consts=2 upvals=0 protos=0
  ;   K[0]='GetSettleOrderRound'
  ;   K[1]='m_maxRound'
  ;   locals: self(0-9)
  0000  SELF      R2 = R0[K0('GetSettleOrderRound')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  GETTABLE  R2 = R0[K1('m_maxRound')]
  0003  LE        if R1 le R1   -> -130042
  0004  JMP       (jump)   -> 6
  0005  LOADBOOL  R1 = false
  0006  LOADBOOL  R1 = true
  0007  RETURN    return R1..R0
  0008  RETURN    return R0..R-1
; ---------- proto14 [GetOrderCellTopLeftEntryShowConfig] ----------
  ; fn ?  line 164-175 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]='OrdersNonstop'
  ;   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('OrdersNonstop')]
  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 170-172 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
; ---------- proto15 [GetRoundConfig] ----------
  ; fn ?  line 177-179 np=2 va=0 ms=3 code=10 consts=1 upvals=0 protos=0
  ;   K[0]='m_arrRoundConfig'
  ;   locals: self(0-10), index(0-10)
  0000  GETTABLE  R2 = R0[K0('m_arrRoundConfig')]
  0001  TEST      if not R2 then   -> -131069
  0002  JMP       (jump)   -> 7
  0003  GETTABLE  R2 = R0[K0('m_arrRoundConfig')]
  0004  GETTABLE  R2 = R2[R1]
  0005  TEST      if not R2 then   -> -131064
  0006  JMP       (jump)   -> 8
  0007  LOADNIL   R2..R2 = nil
  0008  RETURN    return R2..R1
  0009  RETURN    return R0..R-1
; ---------- proto16 [ShouldPopWindow] ----------
  ; fn ?  line 181-187 np=1 va=0 ms=3 code=21 consts=6 upvals=1 protos=0
  ;   K[0]='GetState'
  ;   K[1]='ActivityState'
  ;   K[2]='Released'
  ;   K[3]='CanTrigger'
  ;   K[4]='CanSettleFinishedRound'
  ;   K[5]='CanRefreshOrder'
  ;   upvals: _ENV
  ;   locals: self(0-21)
  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('Released')]
  0004  EQ        if R1 eq R2   -> -130552
  0005  JMP       (jump)   -> 17
  0006  SELF      R2 = R0[K3('CanTrigger')] (self)
  0007  CALL      R1 = call(R1, 1 args, 1 rets)
  0008  TEST      if not R1 then   -> -131061
  0009  JMP       (jump)   -> 19
  0010  SELF      R2 = R0[K4('CanSettleFinishedRound')] (self)
  0011  CALL      R1 = call(R1, 1 args, 1 rets)
  0012  TEST      if not R1 then   -> -131057
  0013  JMP       (jump)   -> 19
  0014  SELF      R2 = R0[K5('CanRefreshOrder')] (self)
  0015  CALL      R1 = call(R1, 1 args, 1 rets)
  0016  JMP       (jump)   -> 19
  0017  LOADBOOL  R1 = false
  0018  LOADBOOL  R1 = true
  0019  RETURN    return R1..R0
  0020  RETURN    return R0..R-1
; ---------- proto17 [ShouldPopEndWindow] ----------
  ; fn ?  line 190-195 np=2 va=0 ms=5 code=23 consts=6 upvals=1 protos=0
  ;   K[0]='GetState'
  ;   K[1]='ActivityState'
  ;   K[2]='Released'
  ;   K[3]='IsInDuration'
  ;   K[4]='CanPopEndWindow'
  ;   K[5]='CanSettleFinishedRound'
  ;   upvals: _ENV
  ;   locals: self(0-23), checkResource(0-23)
  0000  SELF      R3 = R0[K0('GetState')] (self)
  0001  MOVE      R4 = R0
  0002  CALL      R2 = call(R2, 1 args, 2 rets)
  0003  GETTABUP  R3 = _ENV[K1('ActivityState')]
  0004  GETTABLE  R3 = R3[K2('Released')]
  0005  EQ        if R1 eq R3   -> -130038
  0006  JMP       (jump)   -> 19
  0007  SELF      R3 = R0[K3('IsInDuration')] (self)
  0008  CALL      R2 = call(R2, 1 args, 1 rets)
  0009  TEST      if not R2 then   -> -131060
  0010  JMP       (jump)   -> 19
  0011  SELF      R3 = R0[K4('CanPopEndWindow')] (self)
  0012  CALL      R2 = call(R2, 1 args, 1 rets)
  0013  TEST      if not R2 then   -> -131057
  0014  JMP       (jump)   -> 21
  0015  SELF      R3 = R0[K5('CanSettleFinishedRound')] (self)
  0016  CALL      R2 = call(R2, 1 args, 1 rets)
  0017  NOT       R2 = not R0
  0018  JMP       (jump)   -> 21
  0019  LOADBOOL  R2 = false
  0020  LOADBOOL  R2 = true
  0021  RETURN    return R2..R1
  0022  RETURN    return R0..R-1
; ---------- proto18 [CanSkipEndWindowOnLongAway] ----------
  ; fn ?  line 198-205 np=1 va=0 ms=4 code=18 consts=5 upvals=1 protos=0
  ;   K[0]='GetTriggerEndTime'
  ;   K[1]='GM'
  ;   K[2]='GameModel'
  ;   K[3]='GetServerTime'
  ;   K[4]='ShouldPopEndWindow'
  ;   upvals: _ENV
  ;   locals: self(0-18)
  0000  SELF      R2 = R0[K0('GetTriggerEndTime')] (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  LT        if R0 lt R2   -> -130550
  0007  JMP       (jump)   -> 15
  0008  SELF      R2 = R0[K4('ShouldPopEndWindow')] (self)
  0009  LOADBOOL  R3 = false
  0010  CALL      R1 = call(R1, 1 args, 2 rets)
  0011  TEST      if not R1 then   -> -131059
  0012  JMP       (jump)   -> 15
  0013  LOADBOOL  R1 = true
  0014  RETURN    return R1..R0
  0015  LOADBOOL  R1 = false
  0016  RETURN    return R1..R0
  0017  RETURN    return R0..R-1
