# BigDayRaceActivity_Model_BigDayRaceModel_1330.luac
; fn @BigDayRaceModel.lua  line 0-0 np=0 va=1 ms=5 code=107 consts=49 upvals=1 protos=28
;   K[0]='DAY_RACE_MAX_PLAYER_COUNT'
;   K[1]=5
;   K[2]='BigDayRaceModel'
;   K[3]='setmetatable'
;   K[4]='EntryOpName'
;   K[5]='BLDayRaceEntry1'
;   K[6]='BIRound'
;   K[7]=false
;   K[8]='ShowEntryMask'
;   K[9]='BaseRaceActivityModel'
;   K[10]='__index'
;   K[11]='ConfigKey'
;   K[12]='big_day_config'
;   K[13]='configIndex'
;   K[14]='startDay'
;   K[15]='Init'
;   K[16]='GetOrderExtraReward'
;   K[17]='GetActivityDefinitionByType'
;   K[18]='_CalculateState'
;   K[19]='CheckRemainDayValid'
;   K[20]='GetActiveModel'
;   K[21]='Destroy'
;   K[22]='_OnOrderDayChanged'
;   K[23]='AcquireActivityToken'
;   K[24]='GetActivityTokenNumber'
;   K[25]='_CreateRobotPlayers'
;   K[26]=3
;   K[27]=1
;   K[28]=2
;   K[29]=4
;   K[30]=5
;   K[31]='_PlayerRankSortFunc'
;   K[32]='_LoadOtherServerConfig'
;   K[33]='BigDayRaceModel'
;   K[34]='CheckConfigValid'
;   K[35]='_CreateMySelfData'
;   K[36]='TryCompetitionEntry'
;   K[37]='GetCurrentConfigIndex'
;   K[38]='GetCurrentRaceConfig'
;   K[39]='GetConfigIndex'
;   K[40]='SetConfigIndex'
;   K[41]='GetCurrentRoundReward'
;   K[42]='GetCurrentRoundFailReward'
;   K[43]='GetTargetScore'
;   K[44]='GetStartDay'
;   K[45]='GetTargetDay'
;   K[46]='CanPlayDayAnim'
;   K[47]='GetOrderDayWindowDecorationShowConfig'
;   K[48]='GetOrderGroupButtonDecorationShowConfig'
;   upvals: _ENV
;   locals: ConfigIndexDBKey(15-107), StartDayDBKey(16-107), arrDefaultRank(55-107)
0000  SETTABUP  _ENV[K0('DAY_RACE_MAX_PLAYER_COUNT')] = K1(5)
0001  GETTABUP  R0 = _ENV[K3('setmetatable')]
0002  NEWTABLE  R1 = {} (0 items)
0003  SETTABLE  R1[K4('EntryOpName')] = K5('BLDayRaceEntry1')
0004  SETTABLE  R1[K6('BIRound')] = K7(false)
0005  SETTABLE  R1[K8('ShowEntryMask')] = K7(false)
0006  GETTABUP  R2 = _ENV[K9('BaseRaceActivityModel')]
0007  CALL      R0 = call(R0, 1 args, 2 rets)
0008  SETTABUP  _ENV[K2('BigDayRaceModel')] = R0
0009  GETTABUP  R0 = _ENV[K2('BigDayRaceModel')]
0010  GETTABUP  R1 = _ENV[K2('BigDayRaceModel')]
0011  SETTABLE  R0[K10('__index')] = R1
0012  GETTABUP  R0 = _ENV[K2('BigDayRaceModel')]
0013  SETTABLE  R0[K11('ConfigKey')] = K12('big_day_config')
0014  LOADK     R0 = K13 'configIndex'
0015  LOADK     R1 = K14 'startDay'
0016  GETTABUP  R2 = _ENV[K2('BigDayRaceModel')]
0017  CLOSURE   R3 = closure proto0
0018  SETTABLE  R2[K15('Init')] = R3
0019  GETTABUP  R2 = _ENV[K2('BigDayRaceModel')]
0020  CLOSURE   R3 = closure proto1
0021  SETTABLE  R2[K16('GetOrderExtraReward')] = R3
0022  GETTABUP  R2 = _ENV[K2('BigDayRaceModel')]
0023  CLOSURE   R3 = closure proto2
0024  SETTABLE  R2[K17('GetActivityDefinitionByType')] = R3
0025  GETTABUP  R2 = _ENV[K2('BigDayRaceModel')]
0026  CLOSURE   R3 = closure proto3
0027  SETTABLE  R2[K18('_CalculateState')] = R3
0028  GETTABUP  R2 = _ENV[K2('BigDayRaceModel')]
0029  CLOSURE   R3 = closure proto4
0030  SETTABLE  R2[K19('CheckRemainDayValid')] = R3
0031  GETTABUP  R2 = _ENV[K2('BigDayRaceModel')]
0032  CLOSURE   R3 = closure proto5
0033  SETTABLE  R2[K20('GetActiveModel')] = R3
0034  GETTABUP  R2 = _ENV[K2('BigDayRaceModel')]
0035  CLOSURE   R3 = closure proto6
0036  SETTABLE  R2[K21('Destroy')] = R3
0037  GETTABUP  R2 = _ENV[K2('BigDayRaceModel')]
0038  CLOSURE   R3 = closure proto7
0039  SETTABLE  R2[K22('_OnOrderDayChanged')] = R3
0040  GETTABUP  R2 = _ENV[K2('BigDayRaceModel')]
0041  CLOSURE   R3 = closure proto8
0042  SETTABLE  R2[K23('AcquireActivityToken')] = R3
0043  GETTABUP  R2 = _ENV[K2('BigDayRaceModel')]
0044  CLOSURE   R3 = closure proto9
0045  SETTABLE  R2[K24('GetActivityTokenNumber')] = R3
0046  GETTABUP  R2 = _ENV[K2('BigDayRaceModel')]
0047  CLOSURE   R3 = closure proto10
0048  SETTABLE  R2[K25('_CreateRobotPlayers')] = R3
0049  NEWTABLE  R2 = {} (0 items)
0050  SETTABLE  R2[K26(3)] = K27(1)
0051  SETTABLE  R2[K28(2)] = K28(2)
0052  SETTABLE  R2[K29(4)] = K26(3)
0053  SETTABLE  R2[K27(1)] = K29(4)
0054  SETTABLE  R2[K30(5)] = K30(5)
0055  GETTABUP  R3 = _ENV[K2('BigDayRaceModel')]
0056  CLOSURE   R4 = closure proto11
0057  SETTABLE  R3[K31('_PlayerRankSortFunc')] = R4
0058  GETTABUP  R3 = _ENV[K2('BigDayRaceModel')]
0059  CLOSURE   R4 = closure proto12
0060  SETTABLE  R3[K32('_LoadOtherServerConfig')] = R4
0061  GETTABUP  R3 = _ENV[K33('BigDayRaceModel')]
0062  CLOSURE   R4 = closure proto13
0063  SETTABLE  R3[K34('CheckConfigValid')] = R4
0064  GETTABUP  R3 = _ENV[K33('BigDayRaceModel')]
0065  CLOSURE   R4 = closure proto14
0066  SETTABLE  R3[K35('_CreateMySelfData')] = R4
0067  GETTABUP  R3 = _ENV[K33('BigDayRaceModel')]
0068  CLOSURE   R4 = closure proto15
0069  SETTABLE  R3[K36('TryCompetitionEntry')] = R4
0070  GETTABUP  R3 = _ENV[K33('BigDayRaceModel')]
0071  CLOSURE   R4 = closure proto16
0072  SETTABLE  R3[K37('GetCurrentConfigIndex')] = R4
0073  GETTABUP  R3 = _ENV[K33('BigDayRaceModel')]
0074  CLOSURE   R4 = closure proto17
0075  SETTABLE  R3[K38('GetCurrentRaceConfig')] = R4
0076  GETTABUP  R3 = _ENV[K33('BigDayRaceModel')]
0077  CLOSURE   R4 = closure proto18
0078  SETTABLE  R3[K39('GetConfigIndex')] = R4
0079  GETTABUP  R3 = _ENV[K33('BigDayRaceModel')]
0080  CLOSURE   R4 = closure proto19
0081  SETTABLE  R3[K40('SetConfigIndex')] = R4
0082  GETTABUP  R3 = _ENV[K33('BigDayRaceModel')]
0083  CLOSURE   R4 = closure proto20
0084  SETTABLE  R3[K41('GetCurrentRoundReward')] = R4
0085  GETTABUP  R3 = _ENV[K33('BigDayRaceModel')]
0086  CLOSURE   R4 = closure proto21
0087  SETTABLE  R3[K42('GetCurrentRoundFailReward')] = R4
0088  GETTABUP  R3 = _ENV[K33('BigDayRaceModel')]
0089  CLOSURE   R4 = closure proto22
0090  SETTABLE  R3[K43('GetTargetScore')] = R4
0091  GETTABUP  R3 = _ENV[K33('BigDayRaceModel')]
0092  CLOSURE   R4 = closure proto23
0093  SETTABLE  R3[K44('GetStartDay')] = R4
0094  GETTABUP  R3 = _ENV[K33('BigDayRaceModel')]
0095  CLOSURE   R4 = closure proto24
0096  SETTABLE  R3[K45('GetTargetDay')] = R4
0097  GETTABUP  R3 = _ENV[K33('BigDayRaceModel')]
0098  CLOSURE   R4 = closure proto25
0099  SETTABLE  R3[K46('CanPlayDayAnim')] = R4
0100  GETTABUP  R3 = _ENV[K33('BigDayRaceModel')]
0101  CLOSURE   R4 = closure proto26
0102  SETTABLE  R3[K47('GetOrderDayWindowDecorationShowConfig')] = R4
0103  GETTABUP  R3 = _ENV[K33('BigDayRaceModel')]
0104  CLOSURE   R4 = closure proto27
0105  SETTABLE  R3[K48('GetOrderGroupButtonDecorationShowConfig')] = R4
0106  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 30-34 np=3 va=0 ms=7 code=14 consts=7 upvals=1 protos=0
  ;   K[0]='BaseRaceActivityModel'
  ;   K[1]='Init'
  ;   K[2]='EventDispatcher'
  ;   K[3]='AddListener'
  ;   K[4]='EEventType'
  ;   K[5]='OrderDayChanged'
  ;   K[6]='_OnOrderDayChanged'
  ;   upvals: _ENV
  ;   locals: self(0-14), activityType(0-14), virtualDBTable(0-14)
  0000  GETTABUP  R3 = _ENV[K0('BaseRaceActivityModel')]
  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  GETTABUP  R3 = _ENV[K2('EventDispatcher')]
  0007  GETTABLE  R3 = R3[K3('AddListener')]
  0008  GETTABUP  R4 = _ENV[K4('EEventType')]
  0009  GETTABLE  R4 = R4[K5('OrderDayChanged')]
  0010  MOVE      R5 = R0
  0011  GETTABLE  R6 = R0[K6('_OnOrderDayChanged')]
  0012  CALL      R3 = call(R3, 0 args, 3 rets)
  0013  RETURN    return R0..R-1
; ---------- proto1 [GetOrderExtraReward] ----------
  ; fn ?  line 36-38 np=1 va=0 ms=2 code=3 consts=0 upvals=0 protos=0
  ;   locals: self(0-3)
  0000  NEWTABLE  R1 = {} (0 items)
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto2 [GetActivityDefinitionByType] ----------
  ; fn ?  line 40-42 np=2 va=0 ms=3 code=4 consts=1 upvals=1 protos=0
  ;   K[0]='BigDayRaceDefinition'
  ;   upvals: _ENV
  ;   locals: self(0-4), activityType(0-4)
  0000  GETTABUP  R2 = _ENV[K0('BigDayRaceDefinition')]
  0001  GETTABLE  R2 = R2[R1]
  0002  RETURN    return R2..R1
  0003  RETURN    return R0..R-1
; ---------- proto3 [_CalculateState] ----------
  ; fn ?  line 44-52 np=1 va=1 ms=5 code=25 consts=6 upvals=1 protos=0
  ;   K[0]='BaseRaceActivityModel'
  ;   K[1]='_CalculateState'
  ;   K[2]='ActivityState'
  ;   K[3]='Released'
  ;   K[4]='IsInRace'
  ;   K[5]='CheckRemainDayValid'
  ;   upvals: _ENV
  ;   locals: self(0-25), state(5-25), nextStateTime(5-25)
  0000  GETTABUP  R1 = _ENV[K0('BaseRaceActivityModel')]
  0001  GETTABLE  R1 = R1[K1('_CalculateState')]
  0002  MOVE      R2 = R0
  0003  VARARG    R3 = vararg(0)
  0004  CALL      R1 = call(R1, 2 args, -1 rets)
  0005  GETTABUP  R3 = _ENV[K2('ActivityState')]
  0006  GETTABLE  R3 = R3[K3('Released')]
  0007  EQ        if R1 eq R3   -> -130548
  0008  JMP       (jump)   -> 21
  0009  SELF      R4 = R0[K4('IsInRace')] (self)
  0010  CALL      R3 = call(R3, 1 args, 1 rets)
  0011  TEST      if not R3 then   -> -131058
  0012  JMP       (jump)   -> 21
  0013  SELF      R4 = R0[K5('CheckRemainDayValid')] (self)
  0014  CALL      R3 = call(R3, 1 args, 1 rets)
  0015  TEST      if not R3 then   -> -131054
  0016  JMP       (jump)   -> 21
  0017  GETTABUP  R3 = _ENV[K2('ActivityState')]
  0018  GETTABLE  R3 = R3[K3('Released')]
  0019  LOADNIL   R4..R4 = nil
  0020  RETURN    return R3..R2
  0021  MOVE      R3 = R0
  0022  MOVE      R4 = R0
  0023  RETURN    return R3..R2
  0024  RETURN    return R0..R-1
; ---------- proto4 [CheckRemainDayValid] ----------
  ; fn ?  line 54-63 np=1 va=0 ms=6 code=21 consts=7 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='MainBoardModel'
  ;   K[2]='GetCurOrderDay'
  ;   K[3]='GetTargetScore'
  ;   K[4]=0
  ;   K[5]='ChapterDataModel'
  ;   K[6]='GetMaxCanUnlockDay'
  ;   upvals: _ENV
  ;   locals: self(0-21), curDay(4-21), targetDay(6-21)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('MainBoardModel')]
  0002  SELF      R2 = R1[K2('GetCurOrderDay')] (self)
  0003  CALL      R1 = call(R1, 1 args, 1 rets)
  0004  SELF      R3 = R0[K3('GetTargetScore')] (self)
  0005  CALL      R2 = call(R2, 1 args, 1 rets)
  0006  LE        if R0 le K4(0)   -> -129780
  0007  JMP       (jump)   -> 10
  0008  LOADBOOL  R3 = false
  0009  RETURN    return R3..R2
  0010  ADD       R3 = R2 add R1
  0011  GETTABUP  R4 = _ENV[K0('GM')]
  0012  GETTABLE  R4 = R4[K5('ChapterDataModel')]
  0013  SELF      R5 = R4[K6('GetMaxCanUnlockDay')] (self)
  0014  CALL      R4 = call(R4, 1 args, 1 rets)
  0015  LE        if R1 le R4   -> -129515
  0016  JMP       (jump)   -> 18
  0017  LOADBOOL  R3 = false
  0018  LOADBOOL  R3 = true
  0019  RETURN    return R3..R2
  0020  RETURN    return R0..R-1
; ---------- proto5 [GetActiveModel] ----------
  ; fn ?  line 66-74 np=0 va=0 ms=9 code=21 consts=8 upvals=1 protos=0
  ;   K[0]='pairs'
  ;   K[1]='BigDayRaceDefinition'
  ;   K[2]='GM'
  ;   K[3]='ActivityManager'
  ;   K[4]='GetModel'
  ;   K[5]='GetState'
  ;   K[6]='ActivityState'
  ;   K[7]='Started'
  ;   upvals: _ENV
  ;   locals: model(1-21), (for generator)(4-20), (for state)(4-20), (for control)(4-20), albumType(5-18), _(5-18)
  0000  LOADNIL   R0..R0 = nil
  0001  GETTABUP  R1 = _ENV[K0('pairs')]
  0002  GETTABUP  R2 = _ENV[K1('BigDayRaceDefinition')]
  0003  CALL      R1 = call(R1, 3 args, 1 rets)
  0004  JMP       (jump)   -> 18
  0005  GETTABUP  R6 = _ENV[K2('GM')]
  0006  GETTABLE  R6 = R6[K3('ActivityManager')]
  0007  SELF      R7 = R6[K4('GetModel')] (self)
  0008  MOVE      R8 = R0
  0009  CALL      R6 = call(R6, 1 args, 2 rets)
  0010  MOVE      R0 = R0
  0011  SELF      R7 = R0[K5('GetState')] (self)
  0012  CALL      R6 = call(R6, 1 args, 1 rets)
  0013  GETTABUP  R7 = _ENV[K6('ActivityState')]
  0014  GETTABLE  R7 = R7[K7('Started')]
  0015  EQ        if R0 eq R7   -> -127976
  0016  JMP       (jump)   -> 18
  0017  RETURN    return R0..R-1
  0018  TFORCALL  tforcall R1
  0019  TFORLOOP  tforloop R3(sBx=-15)   -> 5
  0020  RETURN    return R0..R-1
; ---------- proto6 [Destroy] ----------
  ; fn ?  line 76-78 np=1 va=0 ms=3 code=5 consts=2 upvals=1 protos=0
  ;   K[0]='EventDispatcher'
  ;   K[1]='RemoveTarget'
  ;   upvals: _ENV
  ;   locals: self(0-5)
  0000  GETTABUP  R1 = _ENV[K0('EventDispatcher')]
  0001  GETTABLE  R1 = R1[K1('RemoveTarget')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  RETURN    return R0..R-1
; ---------- proto7 [_OnOrderDayChanged] ----------
  ; fn ?  line 81-83 np=1 va=0 ms=4 code=4 consts=2 upvals=0 protos=0
  ;   K[0]='AcquireActivityToken'
  ;   K[1]=1
  ;   locals: self(0-4)
  0000  SELF      R2 = R0[K0('AcquireActivityToken')] (self)
  0001  LOADK     R3 = K1 1
  0002  CALL      R1 = call(R1, 0 args, 2 rets)
  0003  RETURN    return R0..R-1
; ---------- proto8 [AcquireActivityToken] ----------
  ; fn ?  line 86-91 np=2 va=0 ms=7 code=18 consts=9 upvals=1 protos=0
  ;   K[0]=0
  ;   K[1]='IsInRace'
  ;   K[2]='_AddMyScore'
  ;   K[3]='RaceActivityLogBIType'
  ;   K[4]='Day'
  ;   K[5]='LogActivity'
  ;   K[6]='EBIType'
  ;   K[7]='ActivityRankUp'
  ;   K[8]='GetMyScore'
  ;   upvals: _ENV
  ;   locals: self(0-18), score(0-18)
  0000  LT        if R0 lt R1   -> 3
  0001  JMP       (jump)   -> 17
  0002  SELF      R3 = R0[K1('IsInRace')] (self)
  0003  CALL      R2 = call(R2, 1 args, 1 rets)
  0004  TEST      if not R2 then   -> -131066
  0005  JMP       (jump)   -> 17
  0006  SELF      R3 = R0[K2('_AddMyScore')] (self)
  0007  MOVE      R4 = R0
  0008  GETTABUP  R5 = _ENV[K3('RaceActivityLogBIType')]
  0009  GETTABLE  R5 = R5[K4('Day')]
  0010  CALL      R2 = call(R2, 0 args, 3 rets)
  0011  SELF      R3 = R0[K5('LogActivity')] (self)
  0012  GETTABUP  R4 = _ENV[K6('EBIType')]
  0013  GETTABLE  R4 = R4[K7('ActivityRankUp')]
  0014  SELF      R6 = R0[K8('GetMyScore')] (self)
  0015  CALL      R5 = call(R5, -1 args, 1 rets)
  0016  CALL      R2 = call(R2, 0 args, -1 rets)
  0017  RETURN    return R0..R-1
; ---------- proto9 [GetActivityTokenNumber] ----------
  ; fn ?  line 94-96 np=1 va=0 ms=3 code=4 consts=1 upvals=0 protos=0
  ;   K[0]='GetMyScore'
  ;   locals: self(0-4)
  0000  SELF      R2 = R0[K0('GetMyScore')] (self)
  0001  TAILCALL  tailcall(R1, 0)
  0002  RETURN    return R1..R0
  0003  RETURN    return R0..R-1
; ---------- proto10 [_CreateRobotPlayers] ----------
  ; fn ?  line 99-122 np=2 va=0 ms=17 code=63 consts=21 upvals=1 protos=0
  ;   K[0]='GetTargetScore'
  ;   K[1]=1
  ;   K[2]=2
  ;   K[3]=4
  ;   K[4]=5
  ;   K[5]='Table'
  ;   K[6]='Shuffle'
  ;   K[7]='m_arrPlayerData'
  ;   K[8]='GM'
  ;   K[9]='UserProfileModel'
  ;   K[10]='GetAllAvatarIds'
  ;   K[11]='ListRemove'
  ;   K[12]='GetAvatar'
  ;   K[13]='ListAlwaysRandomSelectN'
  ;   K[14]='ipairs'
  ;   K[15]='icon'
  ;   K[16]='GenerateAllAdornmentForData'
  ;   K[17]='RacePlayerData'
  ;   K[18]='Create'
  ;   K[19]=0
  ;   K[20]='SetTrack'
  ;   upvals: _ENV
  ;   locals: self(0-63), robots(0-63), targetScore(2-63), arrTrack(8-63), arrAvatars(19-63), arrSelectAvatar(32-63), playerData(33-63), (for generator)(36-62), (for state)(36-62), (for control)(36-62), index(37-60), value(37-60)
  0000  SELF      R3 = R0[K0('GetTargetScore')] (self)
  0001  CALL      R2 = call(R2, 1 args, 1 rets)
  0002  NEWTABLE  R3 = {} (4 items)
  0003  LOADK     R4 = K1 1
  0004  LOADK     R5 = K2 2
  0005  LOADK     R6 = K3 4
  0006  LOADK     R7 = K4 5
  0007  SETLIST   setlist R3[B=1,C=4]
  0008  GETTABUP  R4 = _ENV[K5('Table')]
  0009  GETTABLE  R4 = R4[K6('Shuffle')]
  0010  MOVE      R5 = R0
  0011  CALL      R4 = call(R4, 0 args, 1 rets)
  0012  NEWTABLE  R4 = {} (0 items)
  0013  SETTABLE  R0[K7('m_arrPlayerData')] = R4
  0014  GETTABUP  R4 = _ENV[K8('GM')]
  0015  GETTABLE  R4 = R4[K9('UserProfileModel')]
  0016  SELF      R5 = R4[K10('GetAllAvatarIds')] (self)
  0017  LOADBOOL  R6 = true
  0018  CALL      R4 = call(R4, 1 args, 2 rets)
  0019  GETTABUP  R5 = _ENV[K5('Table')]
  0020  GETTABLE  R5 = R5[K11('ListRemove')]
  0021  MOVE      R6 = R0
  0022  GETTABUP  R7 = _ENV[K8('GM')]
  0023  GETTABLE  R7 = R7[K9('UserProfileModel')]
  0024  SELF      R8 = R7[K12('GetAvatar')] (self)
  0025  CALL      R7 = call(R7, -1 args, 1 rets)
  0026  CALL      R5 = call(R5, 0 args, -1 rets)
  0027  GETTABUP  R5 = _ENV[K5('Table')]
  0028  GETTABLE  R5 = R5[K13('ListAlwaysRandomSelectN')]
  0029  MOVE      R6 = R0
  0030  LEN       R7 = len R0
  0031  CALL      R5 = call(R5, 1 args, 2 rets)
  0032  LOADNIL   R6..R6 = nil
  0033  GETTABUP  R7 = _ENV[K14('ipairs')]
  0034  MOVE      R8 = R0
  0035  CALL      R7 = call(R7, 3 args, 1 rets)
  0036  JMP       (jump)   -> 60
  0037  GETTABLE  R12 = R5[R10]
  0038  SETTABLE  R11[K15('icon')] = R12
  0039  GETTABUP  R12 = _ENV[K8('GM')]
  0040  GETTABLE  R12 = R12[K9('UserProfileModel')]
  0041  SELF      R13 = R12[K16('GenerateAllAdornmentForData')] (self)
  0042  MOVE      R14 = R0
  0043  CALL      R12 = call(R12, 0 args, 2 rets)
  0044  GETTABUP  R12 = _ENV[K17('RacePlayerData')]
  0045  GETTABLE  R12 = R12[K18('Create')]
  0046  MOVE      R13 = R0
  0047  MOVE      R14 = R0
  0048  MOVE      R15 = R0
  0049  LOADK     R16 = K19 0
  0050  CALL      R12 = call(R12, 1 args, 4 rets)
  0051  MOVE      R6 = R0
  0052  SELF      R13 = R6[K20('SetTrack')] (self)
  0053  GETTABLE  R14 = R3[R10]
  0054  CALL      R12 = call(R12, 0 args, 2 rets)
  0055  GETTABLE  R12 = R0[K7('m_arrPlayerData')]
  0056  GETTABLE  R13 = R0[K7('m_arrPlayerData')]
  0057  LEN       R13 = len R0
  0058  ADD       R13 = K1(1) add R13
  0059  SETTABLE  R12[R13] = R6
  0060  TFORCALL  tforcall R7
  0061  TFORLOOP  tforloop R9(sBx=-25)   -> 37
  0062  RETURN    return R0..R-1
; ---------- proto11 [_PlayerRankSortFunc] ----------
  ; fn ?  line 133-140 np=3 va=0 ms=7 code=26 consts=5 upvals=2 protos=0
  ;   K[0]='m_curScore'
  ;   K[1]=0
  ;   K[2]='GetTrack'
  ;   K[3]='BaseRaceActivityModel'
  ;   K[4]='_PlayerRankSortFunc'
  ;   upvals: arrDefaultRank, _ENV
  ;   locals: self(0-26), a(0-26), b(0-26)
  0000  GETTABLE  R3 = R1[K0('m_curScore')]
  0001  EQ        if R0 eq K1(0)   -> -129276
  0002  JMP       (jump)   -> 18
  0003  GETTABLE  R3 = R2[K0('m_curScore')]
  0004  EQ        if R0 eq K1(0)   -> -129273
  0005  JMP       (jump)   -> 18
  0006  SELF      R4 = R1[K2('GetTrack')] (self)
  0007  CALL      R3 = call(R3, 1 args, 1 rets)
  0008  GETTABUP  R3 = arrDefaultRank[R3]
  0009  SELF      R5 = R2[K2('GetTrack')] (self)
  0010  CALL      R4 = call(R4, 1 args, 1 rets)
  0011  GETTABUP  R4 = arrDefaultRank[R4]
  0012  LT        if R1 lt R4   -> -129518
  0013  JMP       (jump)   -> 15
  0014  LOADBOOL  R3 = false
  0015  LOADBOOL  R3 = true
  0016  RETURN    return R3..R2
  0017  JMP       (jump)   -> 25
  0018  GETTABUP  R3 = _ENV[K3('BaseRaceActivityModel')]
  0019  GETTABLE  R3 = R3[K4('_PlayerRankSortFunc')]
  0020  MOVE      R4 = R0
  0021  MOVE      R5 = R0
  0022  MOVE      R6 = R0
  0023  TAILCALL  tailcall(R3, 0)
  0024  RETURN    return R3..R2
  0025  RETURN    return R0..R-1
; ---------- proto12 [_LoadOtherServerConfig] ----------
  ; fn ?  line 142-193 np=2 va=0 ms=12 code=112 consts=34 upvals=1 protos=2
  ;   K[0]='BaseRaceActivityModel'
  ;   K[1]='_LoadOtherServerConfig'
  ;   K[2]='Table'
  ;   K[3]='DeepCopy'
  ;   K[4]='BigDayRaceModel'
  ;   K[5]='ConfigKey'
  ;   K[6]='table'
  ;   K[7]='sort'
  ;   K[8]='m_config'
  ;   K[9]='roundConfigs'
  ;   K[10]=1
  ;   K[11]='ipairs'
  ;   K[12]='m_protectTime'
  ;   K[13]=nil
  ;   K[14]='minTime'
  ;   K[15]=0
  ;   K[16]='math'
  ;   K[17]='min'
  ;   K[18]='EntryGapTime'
  ;   K[19]=3600
  ;   K[20]='GameConfig'
  ;   K[21]='IsTestMode'
  ;   K[22]='ShallowCopy'
  ;   K[23]='minTime'
  ;   K[24]='Log'
  ;   K[25]='Error'
  ;   K[26]='[BigDayRaceModel] 区间有重叠，请检查配置'
  ;   K[27]='[BigDayRaceModel] 区间有缝隙未覆盖全'
  ;   K[28]='maxTime'
  ;   K[29]=100000
  ;   K[30]='GetEndTime'
  ;   K[31]='GetStartTime'
  ;   K[32]='[BigDayRaceModel] 区间未覆盖整个活动'
  ;   K[33]='CheckConfigValid'
  ;   upvals: _ENV
  ;   locals: self(0-112), config(0-112), arrConfig(12-112), (for generator)(24-45), (for state)(24-45), (for control)(24-45), _(25-43), config(25-43), tmpArr(60-109), lastMax(66-109), (for generator)(69-95), (for state)(69-95), (for control)(69-95), _(70-93), config(70-93)
  0000  GETTABUP  R2 = _ENV[K0('BaseRaceActivityModel')]
  0001  GETTABLE  R2 = R2[K1('_LoadOtherServerConfig')]
  0002  MOVE      R3 = R0
  0003  MOVE      R4 = R0
  0004  CALL      R2 = call(R2, 0 args, 2 rets)
  0005  GETTABUP  R2 = _ENV[K2('Table')]
  0006  GETTABLE  R2 = R2[K3('DeepCopy')]
  0007  GETTABUP  R3 = _ENV[K4('BigDayRaceModel')]
  0008  GETTABLE  R3 = R3[K5('ConfigKey')]
  0009  GETTABLE  R3 = R1[R3]
  0010  LOADBOOL  R4 = true
  0011  CALL      R2 = call(R2, 1 args, 2 rets)
  0012  GETTABUP  R3 = _ENV[K6('table')]
  0013  GETTABLE  R3 = R3[K7('sort')]
  0014  MOVE      R4 = R0
  0015  CLOSURE   R5 = closure proto0
  0016  CALL      R3 = call(R3, 0 args, 2 rets)
  0017  GETTABLE  R3 = R0[K8('m_config')]
  0018  NEWTABLE  R4 = {} (0 items)
  0019  SETTABLE  R4[K10(1)] = R2
  0020  SETTABLE  R3[K9('roundConfigs')] = R4
  0021  GETTABUP  R3 = _ENV[K11('ipairs')]
  0022  MOVE      R4 = R0
  0023  CALL      R3 = call(R3, 3 args, 1 rets)
  0024  JMP       (jump)   -> 43
  0025  GETTABLE  R8 = R0[K12('m_protectTime')]
  0026  EQ        if R0 eq K13(nil)   -> -126679
  0027  JMP       (jump)   -> 34
  0028  GETTABLE  R8 = R7[K14('minTime')]
  0029  TEST      if not R8 then   -> -131040
  0030  JMP       (jump)   -> 32
  0031  LOADK     R8 = K15 0
  0032  SETTABLE  R0[K12('m_protectTime')] = R8
  0033  JMP       (jump)   -> 43
  0034  GETTABUP  R8 = _ENV[K16('math')]
  0035  GETTABLE  R8 = R8[K17('min')]
  0036  GETTABLE  R9 = R7[K14('minTime')]
  0037  TEST      if not R9 then   -> -131032
  0038  JMP       (jump)   -> 40
  0039  LOADK     R9 = K15 0
  0040  GETTABLE  R10 = R0[K12('m_protectTime')]
  0041  CALL      R8 = call(R8, 1 args, 2 rets)
  0042  SETTABLE  R0[K12('m_protectTime')] = R8
  0043  TFORCALL  tforcall R3
  0044  TFORLOOP  tforloop R5(sBx=-20)   -> 25
  0045  GETTABLE  R3 = R0[K12('m_protectTime')]
  0046  EQ        if R1 eq K13(nil)   -> -129219
  0047  JMP       (jump)   -> 51
  0048  GETTABLE  R3 = R0[K12('m_protectTime')]
  0049  MUL       R3 = K19(3600) mul R3
  0050  SETTABLE  R0[K18('EntryGapTime')] = R3
  0051  GETTABUP  R3 = _ENV[K20('GameConfig')]
  0052  GETTABLE  R3 = R3[K21('IsTestMode')]
  0053  CALL      R3 = call(R3, 1 args, 0 rets)
  0054  TEST      if not R3 then   -> -131016
  0055  JMP       (jump)   -> 109
  0056  GETTABUP  R3 = _ENV[K2('Table')]
  0057  GETTABLE  R3 = R3[K22('ShallowCopy')]
  0058  MOVE      R4 = R0
  0059  CALL      R3 = call(R3, 1 args, 1 rets)
  0060  GETTABUP  R4 = _ENV[K6('table')]
  0061  GETTABLE  R4 = R4[K7('sort')]
  0062  MOVE      R5 = R0
  0063  CLOSURE   R6 = closure proto1
  0064  CALL      R4 = call(R4, 0 args, 2 rets)
  0065  LOADNIL   R4..R4 = nil
  0066  GETTABUP  R5 = _ENV[K11('ipairs')]
  0067  MOVE      R6 = R0
  0068  CALL      R5 = call(R5, 3 args, 1 rets)
  0069  JMP       (jump)   -> 93
  0070  EQ        if R1 eq K13(nil)   -> -128683
  0071  JMP       (jump)   -> 80
  0072  GETTABLE  R10 = R9[K23('minTime')]
  0073  LT        if R0 lt R4   -> -125873
  0074  JMP       (jump)   -> 80
  0075  GETTABUP  R10 = _ENV[K24('Log')]
  0076  GETTABLE  R10 = R10[K25('Error')]
  0077  LOADK     R11 = K26 '[BigDayRaceModel] 区间有重叠，请检查配置'
  0078  CALL      R10 = call(R10, 0 args, 1 rets)
  0079  JMP       (jump)   -> 89
  0080  EQ        if R1 eq K13(nil)   -> -128673
  0081  JMP       (jump)   -> 89
  0082  GETTABLE  R10 = R9[K23('minTime')]
  0083  LT        if R0 lt R10   -> -128929
  0084  JMP       (jump)   -> 89
  0085  GETTABUP  R10 = _ENV[K24('Log')]
  0086  GETTABLE  R10 = R10[K25('Error')]
  0087  LOADK     R11 = K27 '[BigDayRaceModel] 区间有缝隙未覆盖全'
  0088  CALL      R10 = call(R10, 0 args, 1 rets)
  0089  GETTABLE  R10 = R9[K28('maxTime')]
  0090  TESTSET   if R1 then R4   -> -125859
  0091  JMP       (jump)   -> 93
  0092  LOADK     R4 = K29 100000
  0093  TFORCALL  tforcall R5
  0094  TFORLOOP  tforloop R7(sBx=-25)   -> 70
  0095  EQ        if R1 eq K13(nil)   -> -128658
  0096  JMP       (jump)   -> 109
  0097  MUL       R5 = K19(3600) mul R4
  0098  SELF      R7 = R0[K30('GetEndTime')] (self)
  0099  CALL      R6 = call(R6, 1 args, 1 rets)
  0100  SELF      R8 = R0[K31('GetStartTime')] (self)
  0101  CALL      R7 = call(R7, 1 args, 1 rets)
  0102  SUB       R6 = R7 sub R6
  0103  LT        if R0 lt R6   -> -128401
  0104  JMP       (jump)   -> 109
  0105  GETTABUP  R5 = _ENV[K24('Log')]
  0106  GETTABLE  R5 = R5[K25('Error')]
  0107  LOADK     R6 = K32 '[BigDayRaceModel] 区间未覆盖整个活动'
  0108  CALL      R5 = call(R5, 0 args, 1 rets)
  0109  SELF      R4 = R0[K33('CheckConfigValid')] (self)
  0110  CALL      R3 = call(R3, 0 args, 1 rets)
  0111  RETURN    return R0..R-1
  ; ---------- proto0 [roundConfigs] ----------
    ; fn ?  line 148-150 np=2 va=0 ms=4 code=8 consts=1 upvals=0 protos=0
    ;   K[0]='id'
    ;   locals: a(0-8), b(0-8)
    0000  GETTABLE  R2 = R0[K0('id')]
    0001  GETTABLE  R3 = R1[K0('id')]
    0002  LT        if R1 lt R3   -> -130041
    0003  JMP       (jump)   -> 5
    0004  LOADBOOL  R2 = false
    0005  LOADBOOL  R2 = true
    0006  RETURN    return R2..R1
    0007  RETURN    return R0..R-1
  ; ---------- proto1 [] ----------
    ; fn ?  line 171-175 np=2 va=0 ms=5 code=14 consts=2 upvals=0 protos=0
    ;   K[0]='minTime'
    ;   K[1]=-1
    ;   locals: a(0-14), b(0-14), aMin(4-14), bMin(8-14)
    0000  GETTABLE  R2 = R0[K0('minTime')]
    0001  TEST      if not R2 then   -> -131068
    0002  JMP       (jump)   -> 4
    0003  LOADK     R2 = K1 -1
    0004  GETTABLE  R3 = R1[K0('minTime')]
    0005  TEST      if not R3 then   -> -131064
    0006  JMP       (jump)   -> 8
    0007  LOADK     R3 = K1 -1
    0008  LT        if R1 lt 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
; ---------- proto13 [CheckConfigValid] ----------
  ; fn ?  line 195-212 np=1 va=0 ms=18 code=36 consts=12 upvals=1 protos=0
  ;   K[0]='GameConfig'
  ;   K[1]='IsTestMode'
  ;   K[2]='ipairs'
  ;   K[3]='m_config'
  ;   K[4]='roundConfigs'
  ;   K[5]=0
  ;   K[6]='robot'
  ;   K[7]='group_num'
  ;   K[8]='FixedPlayerNumber'
  ;   K[9]='Log'
  ;   K[10]='Error'
  ;   K[11]='robots 假人数量不符要求！'
  ;   upvals: _ENV
  ;   locals: self(0-36), (for generator)(10-35), (for state)(10-35), (for control)(10-35), _(11-33), arrConfig(11-33), (for generator)(14-33), (for state)(14-33), (for control)(14-33), _(15-31), config(15-31), total(16-31), (for generator)(19-24), (for state)(19-24), (for control)(19-24), _(20-22), playerNumConfig(20-22)
  0000  GETTABUP  R1 = _ENV[K0('GameConfig')]
  0001  GETTABLE  R1 = R1[K1('IsTestMode')]
  0002  CALL      R1 = call(R1, 1 args, 0 rets)
  0003  TEST      if not R1 then   -> -131066
  0004  JMP       (jump)   -> 6
  0005  RETURN    return R0..R-1
  0006  GETTABUP  R1 = _ENV[K2('ipairs')]
  0007  GETTABLE  R2 = R0[K3('m_config')]
  0008  GETTABLE  R2 = R2[K4('roundConfigs')]
  0009  CALL      R1 = call(R1, 3 args, 1 rets)
  0010  JMP       (jump)   -> 33
  0011  GETTABUP  R6 = _ENV[K2('ipairs')]
  0012  MOVE      R7 = R0
  0013  CALL      R6 = call(R6, 3 args, 1 rets)
  0014  JMP       (jump)   -> 31
  0015  LOADK     R11 = K5 0
  0016  GETTABUP  R12 = _ENV[K2('ipairs')]
  0017  GETTABLE  R13 = R10[K6('robot')]
  0018  CALL      R12 = call(R12, 3 args, 1 rets)
  0019  JMP       (jump)   -> 22
  0020  GETTABLE  R17 = R16[K7('group_num')]
  0021  ADD       R11 = R17 add R11
  0022  TFORCALL  tforcall R12
  0023  TFORLOOP  tforloop R14(sBx=-4)   -> 20
  0024  GETTABLE  R12 = R0[K8('FixedPlayerNumber')]
  0025  EQ        if R1 eq R12   -> -125401
  0026  JMP       (jump)   -> 31
  0027  GETTABUP  R12 = _ENV[K9('Log')]
  0028  GETTABLE  R12 = R12[K10('Error')]
  0029  LOADK     R13 = K11 'robots 假人数量不符要求！'
  0030  CALL      R12 = call(R12, 0 args, 1 rets)
  0031  TFORCALL  tforcall R6
  0032  TFORLOOP  tforloop R8(sBx=-18)   -> 15
  0033  TFORCALL  tforcall R1
  0034  TFORLOOP  tforloop R3(sBx=-24)   -> 11
  0035  RETURN    return R0..R-1
; ---------- proto14 [_CreateMySelfData] ----------
  ; fn ?  line 214-218 np=1 va=0 ms=5 code=9 consts=4 upvals=1 protos=0
  ;   K[0]='BaseRaceActivityModel'
  ;   K[1]='_CreateMySelfData'
  ;   K[2]='SetTrack'
  ;   K[3]=3
  ;   upvals: _ENV
  ;   locals: self(0-9), data(4-9)
  0000  GETTABUP  R1 = _ENV[K0('BaseRaceActivityModel')]
  0001  GETTABLE  R1 = R1[K1('_CreateMySelfData')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 1 args, 1 rets)
  0004  SELF      R3 = R1[K2('SetTrack')] (self)
  0005  LOADK     R4 = K3 3
  0006  CALL      R2 = call(R2, 0 args, 2 rets)
  0007  RETURN    return R1..R0
  0008  RETURN    return R0..R-1
; ---------- proto15 [TryCompetitionEntry] ----------
  ; fn ?  line 220-269 np=4 va=0 ms=19 code=81 consts=25 upvals=2 protos=1
  ;   K[0]='GetState'
  ;   K[1]='ActivityState'
  ;   K[2]='Started'
  ;   K[3]=nil
  ;   K[4]='GetCurrentRound'
  ;   K[5]='NetTimeStamp'
  ;   K[6]='Create'
  ;   K[7]='EBIType'
  ;   K[8]='NetworkCheckAction'
  ;   K[9]='StartRaceEntry'
  ;   K[10]='GM'
  ;   K[11]='BIManager'
  ;   K[12]='LogNet'
  ;   K[13]='GetId'
  ;   K[14]='m_config'
  ;   K[15]=nil
  ;   K[16]='roundConfigs'
  ;   K[17]=1
  ;   K[18]='robot'
  ;   K[19]=0
  ;   K[20]='ipairs'
  ;   K[21]='group_num'
  ;   K[22]='ApiMessage'
  ;   K[23]='RaceActivityEntry'
  ;   K[24]='EntryOpName'
  ;   upvals: _ENV, StartDayDBKey
  ;   locals: self(0-81), index(0-81), successCallback(0-81), failCallback(0-81), round(13-81), startTime(19-81), id(28-81), callback(29-81), raceConfig(54-81), arrNumConfig(56-81), totalNum(57-81), (for generator)(60-65), (for state)(60-65), (for control)(60-65), _(61-63), numConfig(61-63), groupNum(62-63), bShowMask(71-81)
  0000  SELF      R5 = R0[K0('GetState')] (self)
  0001  CALL      R4 = call(R4, 1 args, 1 rets)
  0002  GETTABUP  R5 = _ENV[K1('ActivityState')]
  0003  GETTABLE  R5 = R5[K2('Started')]
  0004  EQ        if R1 eq R5   -> -129013
  0005  JMP       (jump)   -> 11
  0006  EQ        if R1 eq K3(nil)   -> -129269
  0007  JMP       (jump)   -> 10
  0008  MOVE      R4 = R0
  0009  CALL      R4 = call(R4, 0 args, 0 rets)
  0010  RETURN    return R0..R-1
  0011  SELF      R5 = R0[K4('GetCurrentRound')] (self)
  0012  CALL      R4 = call(R4, 1 args, 1 rets)
  0013  GETTABUP  R5 = _ENV[K5('NetTimeStamp')]
  0014  GETTABLE  R5 = R5[K6('Create')]
  0015  GETTABUP  R6 = _ENV[K7('EBIType')]
  0016  GETTABLE  R6 = R6[K8('NetworkCheckAction')]
  0017  GETTABLE  R6 = R6[K9('StartRaceEntry')]
  0018  CALL      R5 = call(R5, 1 args, 1 rets)
  0019  GETTABUP  R6 = _ENV[K10('GM')]
  0020  GETTABLE  R6 = R6[K11('BIManager')]
  0021  SELF      R7 = R6[K12('LogNet')] (self)
  0022  GETTABUP  R8 = _ENV[K7('EBIType')]
  0023  GETTABLE  R8 = R8[K8('NetworkCheckAction')]
  0024  GETTABLE  R8 = R8[K9('StartRaceEntry')]
  0025  CALL      R6 = call(R6, 0 args, 2 rets)
  0026  SELF      R7 = R0[K13('GetId')] (self)
  0027  CALL      R6 = call(R6, 1 args, 1 rets)
  0028  CLOSURE   R7 = closure proto0
  0029  GETTABLE  R8 = R0[K14('m_config')]
  0030  EQ        if R1 eq K15(nil)   -> -126673
  0031  JMP       (jump)   -> 49
  0032  GETTABLE  R8 = R0[K14('m_config')]
  0033  GETTABLE  R8 = R8[K16('roundConfigs')]
  0034  EQ        if R1 eq K15(nil)   -> -126669
  0035  JMP       (jump)   -> 49
  0036  GETTABLE  R8 = R0[K14('m_config')]
  0037  GETTABLE  R8 = R8[K16('roundConfigs')]
  0038  ADD       R9 = K17(1) add R4
  0039  GETTABLE  R8 = R8[R9]
  0040  EQ        if R1 eq K15(nil)   -> -126663
  0041  JMP       (jump)   -> 49
  0042  GETTABLE  R8 = R0[K14('m_config')]
  0043  GETTABLE  R8 = R8[K16('roundConfigs')]
  0044  ADD       R9 = K17(1) add R4
  0045  GETTABLE  R8 = R8[R9]
  0046  GETTABLE  R8 = R8[R1]
  0047  EQ        if R0 eq K15(nil)   -> -126656
  0048  JMP       (jump)   -> 50
  0049  RETURN    return R0..R-1
  0050  GETTABLE  R8 = R0[K14('m_config')]
  0051  GETTABLE  R8 = R8[K16('roundConfigs')]
  0052  ADD       R9 = K17(1) add R4
  0053  GETTABLE  R8 = R8[R9]
  0054  GETTABLE  R9 = R8[R1]
  0055  GETTABLE  R9 = R9[K18('robot')]
  0056  LOADK     R10 = K19 0
  0057  GETTABUP  R11 = _ENV[K20('ipairs')]
  0058  MOVE      R12 = R0
  0059  CALL      R11 = call(R11, 3 args, 1 rets)
  0060  JMP       (jump)   -> 63
  0061  GETTABLE  R16 = R15[K21('group_num')]
  0062  ADD       R10 = R16 add R10
  0063  TFORCALL  tforcall R11
  0064  TFORLOOP  tforloop R13(sBx=-4)   -> 61
  0065  EQ        if R0 eq K15(nil)   -> -129198
  0066  JMP       (jump)   -> 69
  0067  EQ        if R1 eq K15(nil)   -> -129708
  0068  JMP       (jump)   -> 70
  0069  LOADBOOL  R11 = false
  0070  LOADBOOL  R11 = true
  0071  GETTABUP  R12 = _ENV[K22('ApiMessage')]
  0072  GETTABLE  R12 = R12[K23('RaceActivityEntry')]
  0073  GETTABLE  R13 = R0[K24('EntryOpName')]
  0074  ADD       R14 = K17(1) add R4
  0075  MOVE      R15 = R0
  0076  MOVE      R16 = R0
  0077  MOVE      R17 = R0
  0078  MOVE      R18 = R0
  0079  CALL      R12 = call(R12, 0 args, 6 rets)
  0080  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 235-249 np=3 va=0 ms=14 code=51 consts=15 upvals=9 protos=0
    ;   K[0]='GetState'
    ;   K[1]='ActivityState'
    ;   K[2]='Started'
    ;   K[3]='GetId'
    ;   K[4]=nil
    ;   K[5]='rcode'
    ;   K[6]=0
    ;   K[7]='SetConfigIndex'
    ;   K[8]='m_dbTable'
    ;   K[9]='Set'
    ;   K[10]='value'
    ;   K[11]='GM'
    ;   K[12]='MainBoardModel'
    ;   K[13]='GetCurOrderDay'
    ;   K[14]='_OnCompetitionEntryCallback'
    ;   upvals: self, _ENV, id, failCallback, index, StartDayDBKey, round, startTime, successCallback
    ;   locals: bSuccess(0-51), tbResp(0-51), reqCtx(0-51)
    0000  GETUPVAL  R3 = self
    0001  SELF      R4 = R3[K0('GetState')] (self)
    0002  CALL      R3 = call(R3, 1 args, 1 rets)
    0003  GETTABUP  R4 = _ENV[K1('ActivityState')]
    0004  GETTABLE  R4 = R4[K2('Started')]
    0005  EQ        if R0 eq R4   -> -129525
    0006  JMP       (jump)   -> 13
    0007  GETUPVAL  R3 = self
    0008  GETUPVAL  R4 = self
    0009  SELF      R5 = R4[K3('GetId')] (self)
    0010  CALL      R4 = call(R4, 1 args, 1 rets)
    0011  EQ        if R1 eq R4   -> -129519
    0012  JMP       (jump)   -> 19
    0013  GETUPVAL  R3 = self
    0014  EQ        if R1 eq K4(nil)   -> -129260
    0015  JMP       (jump)   -> 18
    0016  GETUPVAL  R3 = self
    0017  CALL      R3 = call(R3, 0 args, 0 rets)
    0018  RETURN    return R0..R-1
    0019  TEST      if not R0 then   -> -131051
    0020  JMP       (jump)   -> 37
    0021  GETTABLE  R3 = R1[K5('rcode')]
    0022  EQ        if R0 eq K6(0)   -> -129250
    0023  JMP       (jump)   -> 37
    0024  GETUPVAL  R3 = self
    0025  SELF      R4 = R3[K7('SetConfigIndex')] (self)
    0026  GETUPVAL  R5 = self
    0027  CALL      R3 = call(R3, 0 args, 2 rets)
    0028  GETTABUP  R3 = self[K8('m_dbTable')]
    0029  SELF      R4 = R3[K9('Set')] (self)
    0030  GETUPVAL  R5 = self
    0031  LOADK     R6 = K10 'value'
    0032  GETTABUP  R7 = _ENV[K11('GM')]
    0033  GETTABLE  R7 = R7[K12('MainBoardModel')]
    0034  SELF      R8 = R7[K13('GetCurOrderDay')] (self)
    0035  CALL      R7 = call(R7, -1 args, 1 rets)
    0036  CALL      R3 = call(R3, 0 args, -1 rets)
    0037  GETUPVAL  R3 = self
    0038  SELF      R4 = R3[K14('_OnCompetitionEntryCallback')] (self)
    0039  GETUPVAL  R5 = self
    0040  MOVE      R6 = R0
    0041  MOVE      R7 = R0
    0042  MOVE      R8 = R0
    0043  GETUPVAL  R9 = self
    0044  GETUPVAL  R10 = self
    0045  GETUPVAL  R11 = self
    0046  NEWTABLE  R12 = {} (1 items)
    0047  GETUPVAL  R13 = self
    0048  SETLIST   setlist R12[B=1,C=1]
    0049  CALL      R3 = call(R3, 0 args, 9 rets)
    0050  RETURN    return R0..R-1
; ---------- proto16 [GetCurrentConfigIndex] ----------
  ; fn ?  line 272-292 np=1 va=0 ms=11 code=53 consts=19 upvals=1 protos=0
  ;   K[0]='IsInRace'
  ;   K[1]='GetConfigIndex'
  ;   K[2]='GetEndTime'
  ;   K[3]='GM'
  ;   K[4]='GameModel'
  ;   K[5]='GetServerTime'
  ;   K[6]='m_config'
  ;   K[7]='roundConfigs'
  ;   K[8]='GetCurrentRound'
  ;   K[9]=1
  ;   K[10]='Table'
  ;   K[11]='IsEmpty'
  ;   K[12]=0
  ;   K[13]=-1
  ;   K[14]='ipairs'
  ;   K[15]='minTime'
  ;   K[16]='maxTime'
  ;   K[17]=10000
  ;   K[18]=3600
  ;   upvals: _ENV
  ;   locals: self(0-53), remainTime(14-53), arrConfig(20-53), minTime(31-53), maxTime(31-53), (for generator)(34-52), (for state)(34-52), (for control)(34-52), index(35-50), config(35-50)
  0000  SELF      R2 = R0[K0('IsInRace')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  TEST      if not R1 then   -> -131068
  0003  JMP       (jump)   -> 7
  0004  SELF      R2 = R0[K1('GetConfigIndex')] (self)
  0005  TAILCALL  tailcall(R1, 0)
  0006  RETURN    return R1..R0
  0007  SELF      R2 = R0[K2('GetEndTime')] (self)
  0008  CALL      R1 = call(R1, 1 args, 1 rets)
  0009  GETTABUP  R2 = _ENV[K3('GM')]
  0010  GETTABLE  R2 = R2[K4('GameModel')]
  0011  SELF      R3 = R2[K5('GetServerTime')] (self)
  0012  CALL      R2 = call(R2, 1 args, 1 rets)
  0013  SUB       R1 = R2 sub R1
  0014  GETTABLE  R2 = R0[K6('m_config')]
  0015  GETTABLE  R2 = R2[K7('roundConfigs')]
  0016  SELF      R4 = R0[K8('GetCurrentRound')] (self)
  0017  CALL      R3 = call(R3, 1 args, 1 rets)
  0018  ADD       R3 = K9(1) add R3
  0019  GETTABLE  R2 = R2[R3]
  0020  GETTABUP  R3 = _ENV[K10('Table')]
  0021  GETTABLE  R3 = R3[K11('IsEmpty')]
  0022  MOVE      R4 = R0
  0023  CALL      R3 = call(R3, 1 args, 1 rets)
  0024  TEST      if not R3 then   -> -131045
  0025  JMP       (jump)   -> 28
  0026  LE        if R0 le K12(0)   -> -130264
  0027  JMP       (jump)   -> 30
  0028  LOADK     R3 = K13 -1
  0029  RETURN    return R3..R2
  0030  LOADNIL   R3..R3 = nil
  0031  GETTABUP  R5 = _ENV[K14('ipairs')]
  0032  MOVE      R6 = R0
  0033  CALL      R5 = call(R5, 3 args, 1 rets)
  0034  JMP       (jump)   -> 50
  0035  GETTABLE  R10 = R9[K15('minTime')]
  0036  TESTSET   if R1 then R3   -> -125913
  0037  JMP       (jump)   -> 39
  0038  LOADK     R3 = K13 -1
  0039  GETTABLE  R10 = R9[K16('maxTime')]
  0040  TESTSET   if R1 then R4   -> -125909
  0041  JMP       (jump)   -> 43
  0042  LOADK     R4 = K17 10000
  0043  MUL       R10 = K18(3600) mul R3
  0044  LT        if R0 lt R1   -> -125905
  0045  JMP       (jump)   -> 50
  0046  MUL       R10 = K18(3600) mul R4
  0047  LE        if R0 le R10   -> -130501
  0048  JMP       (jump)   -> 50
  0049  RETURN    return R8..R7
  0050  TFORCALL  tforcall R5
  0051  TFORLOOP  tforloop R7(sBx=-17)   -> 35
  0052  RETURN    return R0..R-1
; ---------- proto17 [GetCurrentRaceConfig] ----------
  ; fn ?  line 295-299 np=1 va=0 ms=4 code=28 consts=6 upvals=0 protos=0
  ;   K[0]='IsInRace'
  ;   K[1]='GetCurrentRound'
  ;   K[2]=1
  ;   K[3]='GetCurrentConfigIndex'
  ;   K[4]='m_config'
  ;   K[5]='roundConfigs'
  ;   locals: self(0-28), round(11-28), index(13-28)
  0000  SELF      R2 = R0[K0('IsInRace')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  TEST      if not R1 then   -> -131068
  0003  JMP       (jump)   -> 8
  0004  SELF      R2 = R0[K1('GetCurrentRound')] (self)
  0005  CALL      R1 = call(R1, 1 args, 1 rets)
  0006  TEST      if not R1 then   -> -131063
  0007  JMP       (jump)   -> 11
  0008  SELF      R2 = R0[K1('GetCurrentRound')] (self)
  0009  CALL      R1 = call(R1, 1 args, 1 rets)
  0010  ADD       R1 = K2(1) add R1
  0011  SELF      R3 = R0[K3('GetCurrentConfigIndex')] (self)
  0012  CALL      R2 = call(R2, 1 args, 1 rets)
  0013  GETTABLE  R3 = R0[K4('m_config')]
  0014  GETTABLE  R3 = R3[K5('roundConfigs')]
  0015  TEST      if not R3 then   -> -131055
  0016  JMP       (jump)   -> 26
  0017  GETTABLE  R3 = R0[K4('m_config')]
  0018  GETTABLE  R3 = R3[K5('roundConfigs')]
  0019  GETTABLE  R3 = R3[R1]
  0020  TEST      if not R3 then   -> -131050
  0021  JMP       (jump)   -> 26
  0022  GETTABLE  R3 = R0[K4('m_config')]
  0023  GETTABLE  R3 = R3[K5('roundConfigs')]
  0024  GETTABLE  R3 = R3[R1]
  0025  GETTABLE  R3 = R3[R2]
  0026  RETURN    return R3..R2
  0027  RETURN    return R0..R-1
; ---------- proto18 [GetConfigIndex] ----------
  ; fn ?  line 301-303 np=1 va=0 ms=5 code=7 consts=3 upvals=1 protos=0
  ;   K[0]='m_dbTable'
  ;   K[1]='GetValue'
  ;   K[2]='value'
  ;   upvals: ConfigIndexDBKey
  ;   locals: self(0-7)
  0000  GETTABLE  R1 = R0[K0('m_dbTable')]
  0001  SELF      R2 = R1[K1('GetValue')] (self)
  0002  GETUPVAL  R3 = ConfigIndexDBKey
  0003  LOADK     R4 = K2 'value'
  0004  TAILCALL  tailcall(R1, 0)
  0005  RETURN    return R1..R0
  0006  RETURN    return R0..R-1
; ---------- proto19 [SetConfigIndex] ----------
  ; fn ?  line 305-307 np=2 va=0 ms=7 code=8 consts=3 upvals=1 protos=0
  ;   K[0]='m_dbTable'
  ;   K[1]='Set'
  ;   K[2]='value'
  ;   upvals: ConfigIndexDBKey
  ;   locals: self(0-8), index(0-8)
  0000  GETTABLE  R2 = R0[K0('m_dbTable')]
  0001  SELF      R3 = R2[K1('Set')] (self)
  0002  GETUPVAL  R4 = ConfigIndexDBKey
  0003  LOADK     R5 = K2 'value'
  0004  MOVE      R6 = R0
  0005  TAILCALL  tailcall(R2, 0)
  0006  RETURN    return R2..R1
  0007  RETURN    return R0..R-1
; ---------- proto20 [GetCurrentRoundReward] ----------
  ; fn ?  line 309-326 np=1 va=0 ms=8 code=18 consts=10 upvals=1 protos=0
  ;   K[0]='GetCurrentRaceConfig'
  ;   K[1]=nil
  ;   K[2]='Log'
  ;   K[3]='Error'
  ;   K[4]='[BigDayRaceModel] 配置不存在'
  ;   K[5]='rankReward1'
  ;   K[6]='rankReward2'
  ;   K[7]='rankReward3'
  ;   K[8]='rankReward4'
  ;   K[9]='rankReward5'
  ;   upvals: _ENV
  ;   locals: self(0-18), raceConfig(2-18), rewards(16-18)
  0000  SELF      R2 = R0[K0('GetCurrentRaceConfig')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  EQ        if R0 eq K1(nil)   -> -130299
  0003  JMP       (jump)   -> 9
  0004  GETTABUP  R2 = _ENV[K2('Log')]
  0005  GETTABLE  R2 = R2[K3('Error')]
  0006  LOADK     R3 = K4 '[BigDayRaceModel] 配置不存在'
  0007  CALL      R2 = call(R2, 0 args, 1 rets)
  0008  RETURN    return R0..R-1
  0009  NEWTABLE  R2 = {} (5 items)
  0010  GETTABLE  R3 = R1[K5('rankReward1')]
  0011  GETTABLE  R4 = R1[K6('rankReward2')]
  0012  GETTABLE  R5 = R1[K7('rankReward3')]
  0013  GETTABLE  R6 = R1[K8('rankReward4')]
  0014  GETTABLE  R7 = R1[K9('rankReward5')]
  0015  SETLIST   setlist R2[B=1,C=5]
  0016  RETURN    return R2..R1
  0017  RETURN    return R0..R-1
; ---------- proto21 [GetCurrentRoundFailReward] ----------
  ; fn ?  line 329-338 np=1 va=0 ms=4 code=12 consts=6 upvals=1 protos=0
  ;   K[0]='GetCurrentRaceConfig'
  ;   K[1]=nil
  ;   K[2]='Log'
  ;   K[3]='Error'
  ;   K[4]='[BigDayRaceModel] 配置不存在'
  ;   K[5]='failReward'
  ;   upvals: _ENV
  ;   locals: self(0-12), raceConfig(2-12)
  0000  SELF      R2 = R0[K0('GetCurrentRaceConfig')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  EQ        if R0 eq K1(nil)   -> -130299
  0003  JMP       (jump)   -> 9
  0004  GETTABUP  R2 = _ENV[K2('Log')]
  0005  GETTABLE  R2 = R2[K3('Error')]
  0006  LOADK     R3 = K4 '[BigDayRaceModel] 配置不存在'
  0007  CALL      R2 = call(R2, 0 args, 1 rets)
  0008  RETURN    return R0..R-1
  0009  GETTABLE  R2 = R1[K5('failReward')]
  0010  RETURN    return R2..R1
  0011  RETURN    return R0..R-1
; ---------- proto22 [GetTargetScore] ----------
  ; fn ?  line 340-346 np=1 va=0 ms=3 code=12 consts=4 upvals=0 protos=0
  ;   K[0]='GetCurrentRaceConfig'
  ;   K[1]=nil
  ;   K[2]=0
  ;   K[3]='day'
  ;   locals: self(0-12), raceConfig(2-12)
  0000  SELF      R2 = R0[K0('GetCurrentRaceConfig')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  EQ        if R0 eq K1(nil)   -> -130299
  0003  JMP       (jump)   -> 6
  0004  LOADK     R2 = K2 0
  0005  RETURN    return R2..R1
  0006  GETTABLE  R2 = R1[K3('day')]
  0007  TEST      if not R2 then   -> -131062
  0008  JMP       (jump)   -> 10
  0009  LOADK     R2 = K2 0
  0010  RETURN    return R2..R1
  0011  RETURN    return R0..R-1
; ---------- proto23 [GetStartDay] ----------
  ; fn ?  line 349-355 np=1 va=0 ms=5 code=19 consts=8 upvals=2 protos=0
  ;   K[0]='IsInRace'
  ;   K[1]='m_dbTable'
  ;   K[2]='GetValue'
  ;   K[3]='value'
  ;   K[4]=0
  ;   K[5]='GM'
  ;   K[6]='MainBoardModel'
  ;   K[7]='GetCurOrderDay'
  ;   upvals: StartDayDBKey, _ENV
  ;   locals: self(0-19)
  0000  SELF      R2 = R0[K0('IsInRace')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  TEST      if not R1 then   -> -131068
  0003  JMP       (jump)   -> 13
  0004  GETTABLE  R1 = R0[K1('m_dbTable')]
  0005  SELF      R2 = R1[K2('GetValue')] (self)
  0006  GETUPVAL  R3 = StartDayDBKey
  0007  LOADK     R4 = K3 'value'
  0008  CALL      R1 = call(R1, 1 args, 3 rets)
  0009  TEST      if not R1 then   -> -131060
  0010  JMP       (jump)   -> 12
  0011  LOADK     R1 = K4 0
  0012  RETURN    return R1..R0
  0013  GETTABUP  R1 = _ENV[K5('GM')]
  0014  GETTABLE  R1 = R1[K6('MainBoardModel')]
  0015  SELF      R2 = R1[K7('GetCurOrderDay')] (self)
  0016  TAILCALL  tailcall(R1, 0)
  0017  RETURN    return R1..R0
  0018  RETURN    return R0..R-1
; ---------- proto24 [GetTargetDay] ----------
  ; fn ?  line 357-359 np=1 va=0 ms=4 code=7 consts=2 upvals=0 protos=0
  ;   K[0]='GetStartDay'
  ;   K[1]='GetTargetScore'
  ;   locals: self(0-7)
  0000  SELF      R2 = R0[K0('GetStartDay')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  SELF      R3 = R0[K1('GetTargetScore')] (self)
  0003  CALL      R2 = call(R2, 1 args, 1 rets)
  0004  ADD       R1 = R2 add R1
  0005  RETURN    return R1..R0
  0006  RETURN    return R0..R-1
; ---------- proto25 [CanPlayDayAnim] ----------
  ; fn ?  line 361-368 np=1 va=0 ms=5 code=16 consts=4 upvals=0 protos=0
  ;   K[0]='IsInRace'
  ;   K[1]='GetMyScore'
  ;   K[2]='GetLastScore'
  ;   K[3]=1
  ;   locals: self(0-16), myScore(7-16), lastScore(10-16)
  0000  SELF      R2 = R0[K0('IsInRace')] (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('GetMyScore')] (self)
  0006  CALL      R1 = call(R1, 1 args, 1 rets)
  0007  SELF      R3 = R0[K2('GetLastScore')] (self)
  0008  LOADK     R4 = K3 1
  0009  CALL      R2 = call(R2, 1 args, 2 rets)
  0010  LT        if R1 lt R1   -> -130035
  0011  JMP       (jump)   -> 13
  0012  LOADBOOL  R3 = false
  0013  LOADBOOL  R3 = true
  0014  RETURN    return R3..R2
  0015  RETURN    return R0..R-1
; ---------- proto26 [GetOrderDayWindowDecorationShowConfig] ----------
  ; fn ?  line 372-383 np=1 va=0 ms=4 code=18 consts=13 upvals=1 protos=1
  ;   K[0]='decorationPrefabName'
  ;   K[1]='UIPrefabConfigName'
  ;   K[2]='BigDayRaceEntry'
  ;   K[3]='eDecorationRootKey'
  ;   K[4]='EDecorationRootKey'
  ;   K[5]='BigDay'
  ;   K[6]='checkFun'
  ;   K[7]='events'
  ;   K[8]='m_activityDefinition'
  ;   K[9]='StateChangedEvent'
  ;   K[10]='bDestroyOriginal'
  ;   K[11]=true
  ;   K[12]='bHideDesc'
  ;   upvals: _ENV
  ;   locals: self(0-18)
  0000  NEWTABLE  R1 = {} (0 items)
  0001  GETTABUP  R2 = _ENV[K1('UIPrefabConfigName')]
  0002  GETTABLE  R2 = R2[K2('BigDayRaceEntry')]
  0003  SETTABLE  R1[K0('decorationPrefabName')] = R2
  0004  GETTABUP  R2 = _ENV[K4('EDecorationRootKey')]
  0005  GETTABLE  R2 = R2[K5('BigDay')]
  0006  SETTABLE  R1[K3('eDecorationRootKey')] = R2
  0007  CLOSURE   R2 = closure proto0
  0008  SETTABLE  R1[K6('checkFun')] = R2
  0009  NEWTABLE  R2 = {} (1 items)
  0010  GETTABLE  R3 = R0[K8('m_activityDefinition')]
  0011  GETTABLE  R3 = R3[K9('StateChangedEvent')]
  0012  SETLIST   setlist R2[B=1,C=1]
  0013  SETTABLE  R1[K7('events')] = R2
  0014  SETTABLE  R1[K10('bDestroyOriginal')] = K11(true)
  0015  SETTABLE  R1[K12('bHideDesc')] = K11(true)
  0016  RETURN    return R1..R0
  0017  RETURN    return R0..R-1
  ; ---------- proto0 [checkFun] ----------
    ; fn ?  line 376-378 np=0 va=0 ms=2 code=13 consts=5 upvals=2 protos=0
    ;   K[0]='GetState'
    ;   K[1]='ActivityState'
    ;   K[2]='Started'
    ;   K[3]='EBigDayRaceEntryWindowRefer'
    ;   K[4]='OrderGroup'
    ;   upvals: self, _ENV
    0000  GETUPVAL  R0 = self
    0001  SELF      R1 = R0[K0('GetState')] (self)
    0002  CALL      R0 = call(R0, 1 args, 1 rets)
    0003  GETTABUP  R1 = _ENV[K1('ActivityState')]
    0004  GETTABLE  R1 = R1[K2('Started')]
    0005  EQ        if R1 eq R1   -> -131064
    0006  JMP       (jump)   -> 8
    0007  LOADBOOL  R0 = false
    0008  LOADBOOL  R0 = true
    0009  GETTABUP  R1 = _ENV[K3('EBigDayRaceEntryWindowRefer')]
    0010  GETTABLE  R1 = R1[K4('OrderGroup')]
    0011  RETURN    return R0..R-1
    0012  RETURN    return R0..R-1
; ---------- proto27 [GetOrderGroupButtonDecorationShowConfig] ----------
  ; fn ?  line 387-397 np=1 va=0 ms=4 code=17 consts=11 upvals=1 protos=1
  ;   K[0]='decorationPrefabName'
  ;   K[1]='m_activityDefinition'
  ;   K[2]='DecorationPrefabName'
  ;   K[3]='eDecorationRootKey'
  ;   K[4]='EDecorationRootKey'
  ;   K[5]='BigDay'
  ;   K[6]='checkFun'
  ;   K[7]='events'
  ;   K[8]='StateChangedEvent'
  ;   K[9]='bDestroyOriginal'
  ;   K[10]=true
  ;   upvals: _ENV
  ;   locals: self(0-17)
  0000  NEWTABLE  R1 = {} (0 items)
  0001  GETTABLE  R2 = R0[K1('m_activityDefinition')]
  0002  GETTABLE  R2 = R2[K2('DecorationPrefabName')]
  0003  SETTABLE  R1[K0('decorationPrefabName')] = R2
  0004  GETTABUP  R2 = _ENV[K4('EDecorationRootKey')]
  0005  GETTABLE  R2 = R2[K5('BigDay')]
  0006  SETTABLE  R1[K3('eDecorationRootKey')] = R2
  0007  CLOSURE   R2 = closure proto0
  0008  SETTABLE  R1[K6('checkFun')] = R2
  0009  NEWTABLE  R2 = {} (1 items)
  0010  GETTABLE  R3 = R0[K1('m_activityDefinition')]
  0011  GETTABLE  R3 = R3[K8('StateChangedEvent')]
  0012  SETLIST   setlist R2[B=1,C=1]
  0013  SETTABLE  R1[K7('events')] = R2
  0014  SETTABLE  R1[K9('bDestroyOriginal')] = K10(true)
  0015  RETURN    return R1..R0
  0016  RETURN    return R0..R-1
  ; ---------- proto0 [checkFun] ----------
    ; fn ?  line 391-393 np=0 va=0 ms=2 code=11 consts=3 upvals=2 protos=0
    ;   K[0]='GetState'
    ;   K[1]='ActivityState'
    ;   K[2]='Started'
    ;   upvals: self, _ENV
    0000  GETUPVAL  R0 = self
    0001  SELF      R1 = R0[K0('GetState')] (self)
    0002  CALL      R0 = call(R0, 1 args, 1 rets)
    0003  GETTABUP  R1 = _ENV[K1('ActivityState')]
    0004  GETTABLE  R1 = R1[K2('Started')]
    0005  EQ        if R1 eq R1   -> -131064
    0006  JMP       (jump)   -> 8
    0007  LOADBOOL  R0 = false
    0008  LOADBOOL  R0 = true
    0009  RETURN    return R0..R-1
    0010  RETURN    return R0..R-1
