# Model_Activity_ActivityRequirementHelper_171.luac
; fn @ActivityRequirementHelper.lua  line 0-0 np=0 va=1 ms=6 code=141 consts=56 upvals=1 protos=42
;   K[0]='ActivityRequirementHelper'
;   K[1]='__index'
;   K[2]='CurrentOrderRequirement'
;   K[3]='arh_cur'
;   K[4]='CheckedOrderIdForRequirement'
;   K[5]='arh_checked'
;   K[6]='AcquiredOrderRequirement'
;   K[7]='arh_acq'
;   K[8]='Create'
;   K[9]='ActivityRequirementHelper'
;   K[10]='_Init'
;   K[11]='_CheckModelFunction'
;   K[12]='_AddEventListener'
;   K[13]='Destroy'
;   K[14]='GetModel'
;   K[15]='_LoadDBTableData'
;   K[16]='DropData'
;   K[17]='DB_VALUE_KEY'
;   K[18]=1
;   K[19]='_DBTableGetValue'
;   K[20]='_DBTableGetNumber'
;   K[21]='_DBTableGetTable'
;   K[22]='_DBTableSet'
;   K[23]='_DBTableSetTable'
;   K[24]='_DBTableRemove'
;   K[25]='_LoadCurrentOrderRequirement'
;   K[26]='_SaveCurrentOrderRequirement'
;   K[27]='IsCurrentOrderRequirement'
;   K[28]='GetCurrentOrderRequirement'
;   K[29]='_AddCurrentOrderRequirement'
;   K[30]='_RemoveCurrentOrderRequirement'
;   K[31]='ClearCurrentOrderRequirement'
;   K[32]='_LoadCheckedOrderIdForRequirement'
;   K[33]='_SaveCheckedOrderIdForRequirement'
;   K[34]='HasCheckedOrderIdForRequirement'
;   K[35]='_AddCheckedOrderIdForRequirement'
;   K[36]='ClearCheckedOrderIdForRequirement'
;   K[37]='_LoadAcquiredOrderRequirement'
;   K[38]='Add'
;   K[39]='Remove'
;   K[40]=2
;   K[41]='_SaveAcquiredOrderRequirement'
;   K[42]='IsAcquiredOrderRequirement'
;   K[43]='_AddAcquiredOrderRequirement'
;   K[44]='_RemoveAcquiredOrderRequirementByOrderId'
;   K[45]='_GetLogAcquiredOrderRequirement'
;   K[46]='GetBoardModel'
;   K[47]='_OnOrderStateChanged'
;   K[48]='_OnOrderFinished'
;   K[49]='_OnChangeGameMode'
;   K[50]='_OnOrderGroupRefreshed'
;   K[51]='_RefreshOrderRequirementOnNewOrders'
;   K[52]='_OnBakeOutStateChanged'
;   K[53]='_TryRemoveEmptyOrderRequirement'
;   K[54]='RefreshOrderRequirement'
;   K[55]='FindOneRequirementSatisfiedItem'
;   upvals: _ENV
;   locals: DBKey(9-141), DB_VALUE_KEY(34-141), TRUE_VALUE(35-141), EAcquiredOrderRequirementSaveScene(95-141)
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('ActivityRequirementHelper')] = R0
0002  GETTABUP  R0 = _ENV[K0('ActivityRequirementHelper')]
0003  GETTABUP  R1 = _ENV[K0('ActivityRequirementHelper')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  NEWTABLE  R0 = {} (0 items)
0006  SETTABLE  R0[K2('CurrentOrderRequirement')] = K3('arh_cur')
0007  SETTABLE  R0[K4('CheckedOrderIdForRequirement')] = K5('arh_checked')
0008  SETTABLE  R0[K6('AcquiredOrderRequirement')] = K7('arh_acq')
0009  GETTABUP  R1 = _ENV[K0('ActivityRequirementHelper')]
0010  CLOSURE   R2 = closure proto0
0011  SETTABLE  R1[K8('Create')] = R2
0012  GETTABUP  R1 = _ENV[K9('ActivityRequirementHelper')]
0013  CLOSURE   R2 = closure proto1
0014  SETTABLE  R1[K10('_Init')] = R2
0015  GETTABUP  R1 = _ENV[K9('ActivityRequirementHelper')]
0016  CLOSURE   R2 = closure proto2
0017  SETTABLE  R1[K11('_CheckModelFunction')] = R2
0018  GETTABUP  R1 = _ENV[K9('ActivityRequirementHelper')]
0019  CLOSURE   R2 = closure proto3
0020  SETTABLE  R1[K12('_AddEventListener')] = R2
0021  GETTABUP  R1 = _ENV[K9('ActivityRequirementHelper')]
0022  CLOSURE   R2 = closure proto4
0023  SETTABLE  R1[K13('Destroy')] = R2
0024  GETTABUP  R1 = _ENV[K9('ActivityRequirementHelper')]
0025  CLOSURE   R2 = closure proto5
0026  SETTABLE  R1[K14('GetModel')] = R2
0027  GETTABUP  R1 = _ENV[K9('ActivityRequirementHelper')]
0028  CLOSURE   R2 = closure proto6
0029  SETTABLE  R1[K15('_LoadDBTableData')] = R2
0030  GETTABUP  R1 = _ENV[K9('ActivityRequirementHelper')]
0031  CLOSURE   R2 = closure proto7
0032  SETTABLE  R1[K16('DropData')] = R2
0033  GETTABUP  R1 = _ENV[K17('DB_VALUE_KEY')]
0034  LOADK     R2 = K18 1
0035  GETTABUP  R3 = _ENV[K9('ActivityRequirementHelper')]
0036  CLOSURE   R4 = closure proto8
0037  SETTABLE  R3[K19('_DBTableGetValue')] = R4
0038  GETTABUP  R3 = _ENV[K9('ActivityRequirementHelper')]
0039  CLOSURE   R4 = closure proto9
0040  SETTABLE  R3[K20('_DBTableGetNumber')] = R4
0041  GETTABUP  R3 = _ENV[K9('ActivityRequirementHelper')]
0042  CLOSURE   R4 = closure proto10
0043  SETTABLE  R3[K21('_DBTableGetTable')] = R4
0044  GETTABUP  R3 = _ENV[K9('ActivityRequirementHelper')]
0045  CLOSURE   R4 = closure proto11
0046  SETTABLE  R3[K22('_DBTableSet')] = R4
0047  GETTABUP  R3 = _ENV[K9('ActivityRequirementHelper')]
0048  CLOSURE   R4 = closure proto12
0049  SETTABLE  R3[K23('_DBTableSetTable')] = R4
0050  GETTABUP  R3 = _ENV[K9('ActivityRequirementHelper')]
0051  CLOSURE   R4 = closure proto13
0052  SETTABLE  R3[K24('_DBTableRemove')] = R4
0053  GETTABUP  R3 = _ENV[K9('ActivityRequirementHelper')]
0054  CLOSURE   R4 = closure proto14
0055  SETTABLE  R3[K25('_LoadCurrentOrderRequirement')] = R4
0056  GETTABUP  R3 = _ENV[K9('ActivityRequirementHelper')]
0057  CLOSURE   R4 = closure proto15
0058  SETTABLE  R3[K26('_SaveCurrentOrderRequirement')] = R4
0059  GETTABUP  R3 = _ENV[K9('ActivityRequirementHelper')]
0060  CLOSURE   R4 = closure proto16
0061  SETTABLE  R3[K27('IsCurrentOrderRequirement')] = R4
0062  GETTABUP  R3 = _ENV[K9('ActivityRequirementHelper')]
0063  CLOSURE   R4 = closure proto17
0064  SETTABLE  R3[K28('GetCurrentOrderRequirement')] = R4
0065  GETTABUP  R3 = _ENV[K9('ActivityRequirementHelper')]
0066  CLOSURE   R4 = closure proto18
0067  SETTABLE  R3[K29('_AddCurrentOrderRequirement')] = R4
0068  GETTABUP  R3 = _ENV[K9('ActivityRequirementHelper')]
0069  CLOSURE   R4 = closure proto19
0070  SETTABLE  R3[K30('_RemoveCurrentOrderRequirement')] = R4
0071  GETTABUP  R3 = _ENV[K9('ActivityRequirementHelper')]
0072  CLOSURE   R4 = closure proto20
0073  SETTABLE  R3[K31('ClearCurrentOrderRequirement')] = R4
0074  GETTABUP  R3 = _ENV[K9('ActivityRequirementHelper')]
0075  CLOSURE   R4 = closure proto21
0076  SETTABLE  R3[K32('_LoadCheckedOrderIdForRequirement')] = R4
0077  GETTABUP  R3 = _ENV[K9('ActivityRequirementHelper')]
0078  CLOSURE   R4 = closure proto22
0079  SETTABLE  R3[K33('_SaveCheckedOrderIdForRequirement')] = R4
0080  GETTABUP  R3 = _ENV[K9('ActivityRequirementHelper')]
0081  CLOSURE   R4 = closure proto23
0082  SETTABLE  R3[K34('HasCheckedOrderIdForRequirement')] = R4
0083  GETTABUP  R3 = _ENV[K9('ActivityRequirementHelper')]
0084  CLOSURE   R4 = closure proto24
0085  SETTABLE  R3[K35('_AddCheckedOrderIdForRequirement')] = R4
0086  GETTABUP  R3 = _ENV[K9('ActivityRequirementHelper')]
0087  CLOSURE   R4 = closure proto25
0088  SETTABLE  R3[K36('ClearCheckedOrderIdForRequirement')] = R4
0089  GETTABUP  R3 = _ENV[K9('ActivityRequirementHelper')]
0090  CLOSURE   R4 = closure proto26
0091  SETTABLE  R3[K37('_LoadAcquiredOrderRequirement')] = R4
0092  NEWTABLE  R3 = {} (0 items)
0093  SETTABLE  R3[K38('Add')] = K18(1)
0094  SETTABLE  R3[K39('Remove')] = K40(2)
0095  GETTABUP  R4 = _ENV[K9('ActivityRequirementHelper')]
0096  CLOSURE   R5 = closure proto27
0097  SETTABLE  R4[K41('_SaveAcquiredOrderRequirement')] = R5
0098  GETTABUP  R4 = _ENV[K9('ActivityRequirementHelper')]
0099  CLOSURE   R5 = closure proto28
0100  SETTABLE  R4[K42('IsAcquiredOrderRequirement')] = R5
0101  GETTABUP  R4 = _ENV[K9('ActivityRequirementHelper')]
0102  CLOSURE   R5 = closure proto29
0103  SETTABLE  R4[K43('_AddAcquiredOrderRequirement')] = R5
0104  GETTABUP  R4 = _ENV[K9('ActivityRequirementHelper')]
0105  CLOSURE   R5 = closure proto30
0106  SETTABLE  R4[K44('_RemoveAcquiredOrderRequirementByOrderId')] = R5
0107  GETTABUP  R4 = _ENV[K9('ActivityRequirementHelper')]
0108  CLOSURE   R5 = closure proto31
0109  SETTABLE  R4[K45('_GetLogAcquiredOrderRequirement')] = R5
0110  GETTABUP  R4 = _ENV[K9('ActivityRequirementHelper')]
0111  CLOSURE   R5 = closure proto32
0112  SETTABLE  R4[K46('GetBoardModel')] = R5
0113  GETTABUP  R4 = _ENV[K9('ActivityRequirementHelper')]
0114  CLOSURE   R5 = closure proto33
0115  SETTABLE  R4[K47('_OnOrderStateChanged')] = R5
0116  GETTABUP  R4 = _ENV[K9('ActivityRequirementHelper')]
0117  CLOSURE   R5 = closure proto34
0118  SETTABLE  R4[K48('_OnOrderFinished')] = R5
0119  GETTABUP  R4 = _ENV[K9('ActivityRequirementHelper')]
0120  CLOSURE   R5 = closure proto35
0121  SETTABLE  R4[K49('_OnChangeGameMode')] = R5
0122  GETTABUP  R4 = _ENV[K9('ActivityRequirementHelper')]
0123  CLOSURE   R5 = closure proto36
0124  SETTABLE  R4[K50('_OnOrderGroupRefreshed')] = R5
0125  GETTABUP  R4 = _ENV[K9('ActivityRequirementHelper')]
0126  CLOSURE   R5 = closure proto37
0127  SETTABLE  R4[K51('_RefreshOrderRequirementOnNewOrders')] = R5
0128  GETTABUP  R4 = _ENV[K9('ActivityRequirementHelper')]
0129  CLOSURE   R5 = closure proto38
0130  SETTABLE  R4[K52('_OnBakeOutStateChanged')] = R5
0131  GETTABUP  R4 = _ENV[K9('ActivityRequirementHelper')]
0132  CLOSURE   R5 = closure proto39
0133  SETTABLE  R4[K53('_TryRemoveEmptyOrderRequirement')] = R5
0134  GETTABUP  R4 = _ENV[K9('ActivityRequirementHelper')]
0135  CLOSURE   R5 = closure proto40
0136  SETTABLE  R4[K54('RefreshOrderRequirement')] = R5
0137  GETTABUP  R4 = _ENV[K9('ActivityRequirementHelper')]
0138  CLOSURE   R5 = closure proto41
0139  SETTABLE  R4[K55('FindOneRequirementSatisfiedItem')] = R5
0140  RETURN    return R0..R-1
; ---------- proto0 [Create] ----------
  ; fn ?  line 32-37 np=2 va=0 ms=7 code=10 consts=3 upvals=1 protos=0
  ;   K[0]='setmetatable'
  ;   K[1]='ActivityRequirementHelper'
  ;   K[2]='_Init'
  ;   upvals: _ENV
  ;   locals: model(0-10), virtualDBTable(0-10), instance(4-10)
  0000  GETTABUP  R2 = _ENV[K0('setmetatable')]
  0001  NEWTABLE  R3 = {} (0 items)
  0002  GETTABUP  R4 = _ENV[K1('ActivityRequirementHelper')]
  0003  CALL      R2 = call(R2, 1 args, 2 rets)
  0004  SELF      R4 = R2[K2('_Init')] (self)
  0005  MOVE      R5 = R0
  0006  MOVE      R6 = R0
  0007  CALL      R3 = call(R3, 0 args, 3 rets)
  0008  RETURN    return R2..R1
  0009  RETURN    return R0..R-1
; ---------- proto1 [_Init] ----------
  ; fn ?  line 41-49 np=3 va=0 ms=5 code=9 consts=5 upvals=0 protos=0
  ;   K[0]='m_model'
  ;   K[1]='m_dbTable'
  ;   K[2]='_LoadDBTableData'
  ;   K[3]='_CheckModelFunction'
  ;   K[4]='_AddEventListener'
  ;   locals: self(0-9), model(0-9), virtualDBTable(0-9)
  0000  SETTABLE  R0[K0('m_model')] = R1
  0001  SETTABLE  R0[K1('m_dbTable')] = R2
  0002  SELF      R4 = R0[K2('_LoadDBTableData')] (self)
  0003  CALL      R3 = call(R3, 0 args, 1 rets)
  0004  SELF      R4 = R0[K3('_CheckModelFunction')] (self)
  0005  CALL      R3 = call(R3, 0 args, 1 rets)
  0006  SELF      R4 = R0[K4('_AddEventListener')] (self)
  0007  CALL      R3 = call(R3, 0 args, 1 rets)
  0008  RETURN    return R0..R-1
; ---------- proto2 [_CheckModelFunction] ----------
  ; fn ?  line 51-56 np=1 va=0 ms=4 code=12 consts=6 upvals=1 protos=0
  ;   K[0]='GetModel'
  ;   K[1]='IsFunction'
  ;   K[2]='IsActivityOpenAndOngoing'
  ;   K[3]='Log'
  ;   K[4]='Error'
  ;   K[5]='[活动订单材料/菜品] 活动model未实现IsActivityOpenAndOngoing，请检查！'
  ;   upvals: _ENV
  ;   locals: self(0-12), model(2-12)
  0000  SELF      R2 = R0[K0('GetModel')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  GETTABUP  R2 = _ENV[K1('IsFunction')]
  0003  GETTABLE  R3 = R1[K2('IsActivityOpenAndOngoing')]
  0004  CALL      R2 = call(R2, 1 args, 1 rets)
  0005  TEST      if not R2 then   -> -131064
  0006  JMP       (jump)   -> 11
  0007  GETTABUP  R2 = _ENV[K3('Log')]
  0008  GETTABLE  R2 = R2[K4('Error')]
  0009  LOADK     R3 = K5 '[活动订单材料/菜品] 活动model未实现IsActivityOpenAndOngoing，请检查！'
  0010  CALL      R2 = call(R2, 0 args, 1 rets)
  0011  RETURN    return R0..R-1
; ---------- proto3 [_AddEventListener] ----------
  ; fn ?  line 59-74 np=1 va=0 ms=5 code=64 consts=18 upvals=1 protos=0
  ;   K[0]='EventDispatcher'
  ;   K[1]='AddListener'
  ;   K[2]='EEventType'
  ;   K[3]='OrderStateChanged'
  ;   K[4]='_OnOrderStateChanged'
  ;   K[5]='OrderFinished'
  ;   K[6]='_OnOrderFinished'
  ;   K[7]='ChangeGameMode'
  ;   K[8]='_OnChangeGameMode'
  ;   K[9]='OrderGroupRefreshed'
  ;   K[10]='_OnOrderGroupRefreshed'
  ;   K[11]='ShowNewOrders'
  ;   K[12]='_RefreshOrderRequirementOnNewOrders'
  ;   K[13]='NewReleasedOrderGroupUnlocked'
  ;   K[14]='OnMainOrderCreated'
  ;   K[15]='BakeOutStateChanged'
  ;   K[16]='_OnBakeOutStateChanged'
  ;   K[17]='BakeOutModeChanged'
  ;   upvals: _ENV
  ;   locals: self(0-64)
  0000  GETTABUP  R1 = _ENV[K0('EventDispatcher')]
  0001  GETTABLE  R1 = R1[K1('AddListener')]
  0002  GETTABUP  R2 = _ENV[K2('EEventType')]
  0003  GETTABLE  R2 = R2[K3('OrderStateChanged')]
  0004  MOVE      R3 = R0
  0005  GETTABLE  R4 = R0[K4('_OnOrderStateChanged')]
  0006  CALL      R1 = call(R1, 0 args, 3 rets)
  0007  GETTABUP  R1 = _ENV[K0('EventDispatcher')]
  0008  GETTABLE  R1 = R1[K1('AddListener')]
  0009  GETTABUP  R2 = _ENV[K2('EEventType')]
  0010  GETTABLE  R2 = R2[K5('OrderFinished')]
  0011  MOVE      R3 = R0
  0012  GETTABLE  R4 = R0[K6('_OnOrderFinished')]
  0013  CALL      R1 = call(R1, 0 args, 3 rets)
  0014  GETTABUP  R1 = _ENV[K0('EventDispatcher')]
  0015  GETTABLE  R1 = R1[K1('AddListener')]
  0016  GETTABUP  R2 = _ENV[K2('EEventType')]
  0017  GETTABLE  R2 = R2[K7('ChangeGameMode')]
  0018  MOVE      R3 = R0
  0019  GETTABLE  R4 = R0[K8('_OnChangeGameMode')]
  0020  CALL      R1 = call(R1, 0 args, 3 rets)
  0021  GETTABUP  R1 = _ENV[K0('EventDispatcher')]
  0022  GETTABLE  R1 = R1[K1('AddListener')]
  0023  GETTABUP  R2 = _ENV[K2('EEventType')]
  0024  GETTABLE  R2 = R2[K9('OrderGroupRefreshed')]
  0025  MOVE      R3 = R0
  0026  GETTABLE  R4 = R0[K10('_OnOrderGroupRefreshed')]
  0027  CALL      R1 = call(R1, 0 args, 3 rets)
  0028  GETTABUP  R1 = _ENV[K0('EventDispatcher')]
  0029  GETTABLE  R1 = R1[K1('AddListener')]
  0030  GETTABUP  R2 = _ENV[K2('EEventType')]
  0031  GETTABLE  R2 = R2[K11('ShowNewOrders')]
  0032  MOVE      R3 = R0
  0033  GETTABLE  R4 = R0[K12('_RefreshOrderRequirementOnNewOrders')]
  0034  CALL      R1 = call(R1, 0 args, 3 rets)
  0035  GETTABUP  R1 = _ENV[K0('EventDispatcher')]
  0036  GETTABLE  R1 = R1[K1('AddListener')]
  0037  GETTABUP  R2 = _ENV[K2('EEventType')]
  0038  GETTABLE  R2 = R2[K13('NewReleasedOrderGroupUnlocked')]
  0039  MOVE      R3 = R0
  0040  GETTABLE  R4 = R0[K12('_RefreshOrderRequirementOnNewOrders')]
  0041  CALL      R1 = call(R1, 0 args, 3 rets)
  0042  GETTABUP  R1 = _ENV[K0('EventDispatcher')]
  0043  GETTABLE  R1 = R1[K1('AddListener')]
  0044  GETTABUP  R2 = _ENV[K2('EEventType')]
  0045  GETTABLE  R2 = R2[K14('OnMainOrderCreated')]
  0046  MOVE      R3 = R0
  0047  GETTABLE  R4 = R0[K12('_RefreshOrderRequirementOnNewOrders')]
  0048  CALL      R1 = call(R1, 0 args, 3 rets)
  0049  GETTABUP  R1 = _ENV[K0('EventDispatcher')]
  0050  GETTABLE  R1 = R1[K1('AddListener')]
  0051  GETTABUP  R2 = _ENV[K2('EEventType')]
  0052  GETTABLE  R2 = R2[K15('BakeOutStateChanged')]
  0053  MOVE      R3 = R0
  0054  GETTABLE  R4 = R0[K16('_OnBakeOutStateChanged')]
  0055  CALL      R1 = call(R1, 0 args, 3 rets)
  0056  GETTABUP  R1 = _ENV[K0('EventDispatcher')]
  0057  GETTABLE  R1 = R1[K1('AddListener')]
  0058  GETTABUP  R2 = _ENV[K2('EEventType')]
  0059  GETTABLE  R2 = R2[K17('BakeOutModeChanged')]
  0060  MOVE      R3 = R0
  0061  GETTABLE  R4 = R0[K16('_OnBakeOutStateChanged')]
  0062  CALL      R1 = call(R1, 0 args, 3 rets)
  0063  RETURN    return R0..R-1
; ---------- proto4 [Destroy] ----------
  ; fn ?  line 77-79 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
; ---------- proto5 [GetModel] ----------
  ; fn ?  line 81-83 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_model'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto6 [_LoadDBTableData] ----------
  ; fn ?  line 86-90 np=1 va=0 ms=3 code=7 consts=3 upvals=0 protos=0
  ;   K[0]='_LoadCurrentOrderRequirement'
  ;   K[1]='_LoadCheckedOrderIdForRequirement'
  ;   K[2]='_LoadAcquiredOrderRequirement'
  ;   locals: self(0-7)
  0000  SELF      R2 = R0[K0('_LoadCurrentOrderRequirement')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  SELF      R2 = R0[K1('_LoadCheckedOrderIdForRequirement')] (self)
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  SELF      R2 = R0[K2('_LoadAcquiredOrderRequirement')] (self)
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  RETURN    return R0..R-1
; ---------- proto7 [DropData] ----------
  ; fn ?  line 92-96 np=1 va=0 ms=2 code=7 consts=3 upvals=0 protos=0
  ;   K[0]='m_mapCurrentOrderRequirement'
  ;   K[1]='m_mapCheckedOrderIdForRequirement'
  ;   K[2]='m_mapAcquiredOrderRequirement'
  ;   locals: self(0-7)
  0000  NEWTABLE  R1 = {} (0 items)
  0001  SETTABLE  R0[K0('m_mapCurrentOrderRequirement')] = R1
  0002  NEWTABLE  R1 = {} (0 items)
  0003  SETTABLE  R0[K1('m_mapCheckedOrderIdForRequirement')] = R1
  0004  NEWTABLE  R1 = {} (0 items)
  0005  SETTABLE  R0[K2('m_mapAcquiredOrderRequirement')] = R1
  0006  RETURN    return R0..R-1
; ---------- proto8 [_DBTableGetValue] ----------
  ; fn ?  line 105-107 np=2 va=0 ms=6 code=7 consts=2 upvals=1 protos=0
  ;   K[0]='m_dbTable'
  ;   K[1]='GetValue'
  ;   upvals: DB_VALUE_KEY
  ;   locals: self(0-7), key(0-7)
  0000  GETTABLE  R2 = R0[K0('m_dbTable')]
  0001  SELF      R3 = R2[K1('GetValue')] (self)
  0002  MOVE      R4 = R0
  0003  GETUPVAL  R5 = DB_VALUE_KEY
  0004  TAILCALL  tailcall(R2, 0)
  0005  RETURN    return R2..R1
  0006  RETURN    return R0..R-1
; ---------- proto9 [_DBTableGetNumber] ----------
  ; fn ?  line 111-114 np=3 va=0 ms=7 code=13 consts=3 upvals=1 protos=0
  ;   K[0]=0
  ;   K[1]='tonumber'
  ;   K[2]='_DBTableGetValue'
  ;   upvals: _ENV
  ;   locals: self(0-13), key(0-13), defaultValue(0-13)
  0000  TEST      if not R2 then   -> -131069
  0001  JMP       (jump)   -> 3
  0002  LOADK     R2 = K0 0
  0003  GETTABUP  R3 = _ENV[K1('tonumber')]
  0004  SELF      R5 = R0[K2('_DBTableGetValue')] (self)
  0005  MOVE      R6 = R0
  0006  CALL      R4 = call(R4, -1 args, 2 rets)
  0007  CALL      R3 = call(R3, 1 args, -1 rets)
  0008  TEST      if not R3 then   -> -131061
  0009  JMP       (jump)   -> 11
  0010  MOVE      R3 = R0
  0011  RETURN    return R3..R2
  0012  RETURN    return R0..R-1
; ---------- proto10 [_DBTableGetTable] ----------
  ; fn ?  line 118-120 np=2 va=0 ms=6 code=14 consts=4 upvals=1 protos=0
  ;   K[0]='json'
  ;   K[1]='decode'
  ;   K[2]='_DBTableGetValue'
  ;   K[3]=''
  ;   upvals: _ENV
  ;   locals: self(0-14), key(0-14)
  0000  GETTABUP  R2 = _ENV[K0('json')]
  0001  GETTABLE  R2 = R2[K1('decode')]
  0002  SELF      R4 = R0[K2('_DBTableGetValue')] (self)
  0003  MOVE      R5 = R0
  0004  CALL      R3 = call(R3, 1 args, 2 rets)
  0005  TEST      if not R3 then   -> -131064
  0006  JMP       (jump)   -> 8
  0007  LOADK     R3 = K3 ''
  0008  CALL      R2 = call(R2, 1 args, 1 rets)
  0009  TEST      if not R2 then   -> -131060
  0010  JMP       (jump)   -> 12
  0011  NEWTABLE  R2 = {} (0 items)
  0012  RETURN    return R2..R1
  0013  RETURN    return R0..R-1
; ---------- proto11 [_DBTableSet] ----------
  ; fn ?  line 124-126 np=3 va=0 ms=8 code=7 consts=2 upvals=1 protos=0
  ;   K[0]='m_dbTable'
  ;   K[1]='Set'
  ;   upvals: DB_VALUE_KEY
  ;   locals: self(0-7), key(0-7), value(0-7)
  0000  GETTABLE  R3 = R0[K0('m_dbTable')]
  0001  SELF      R4 = R3[K1('Set')] (self)
  0002  MOVE      R5 = R0
  0003  GETUPVAL  R6 = DB_VALUE_KEY
  0004  MOVE      R7 = R0
  0005  CALL      R3 = call(R3, 0 args, 4 rets)
  0006  RETURN    return R0..R-1
; ---------- proto12 [_DBTableSetTable] ----------
  ; fn ?  line 130-132 np=3 va=0 ms=8 code=8 consts=3 upvals=1 protos=0
  ;   K[0]='_DBTableSet'
  ;   K[1]='json'
  ;   K[2]='encode'
  ;   upvals: _ENV
  ;   locals: self(0-8), key(0-8), value(0-8)
  0000  SELF      R4 = R0[K0('_DBTableSet')] (self)
  0001  MOVE      R5 = R0
  0002  GETTABUP  R6 = _ENV[K1('json')]
  0003  GETTABLE  R6 = R6[K2('encode')]
  0004  MOVE      R7 = R0
  0005  CALL      R6 = call(R6, -1 args, 1 rets)
  0006  CALL      R3 = call(R3, 0 args, -1 rets)
  0007  RETURN    return R0..R-1
; ---------- proto13 [_DBTableRemove] ----------
  ; fn ?  line 135-137 np=2 va=0 ms=5 code=5 consts=2 upvals=0 protos=0
  ;   K[0]='m_dbTable'
  ;   K[1]='Remove'
  ;   locals: self(0-5), key(0-5)
  0000  GETTABLE  R2 = R0[K0('m_dbTable')]
  0001  SELF      R3 = R2[K1('Remove')] (self)
  0002  MOVE      R4 = R0
  0003  CALL      R2 = call(R2, 0 args, 2 rets)
  0004  RETURN    return R0..R-1
; ---------- proto14 [_LoadCurrentOrderRequirement] ----------
  ; fn ?  line 139-152 np=1 va=0 ms=14 code=42 consts=13 upvals=2 protos=0
  ;   K[0]='m_mapCurrentOrderRequirement'
  ;   K[1]='_DBTableGetValue'
  ;   K[2]='CurrentOrderRequirement'
  ;   K[3]='StringUtil'
  ;   K[4]='IsNilOrEmpty'
  ;   K[5]='json'
  ;   K[6]='decode'
  ;   K[7]='Replace'
  ;   K[8]='@'
  ;   K[9]=','
  ;   K[10]='pairs'
  ;   K[11]='ipairs'
  ;   K[12]=true
  ;   upvals: DBKey, _ENV
  ;   locals: self(0-42), strData(5-42), cacheTb(23-41), (for generator)(26-41), (for state)(26-41), (for control)(26-41), orderId(27-39), content(27-39), (for generator)(33-39), (for state)(33-39), (for control)(33-39), _(34-37), itemCode(34-37)
  0000  NEWTABLE  R1 = {} (0 items)
  0001  SETTABLE  R0[K0('m_mapCurrentOrderRequirement')] = R1
  0002  SELF      R2 = R0[K1('_DBTableGetValue')] (self)
  0003  GETTABUP  R3 = DBKey[K2('CurrentOrderRequirement')]
  0004  CALL      R1 = call(R1, 1 args, 2 rets)
  0005  GETTABUP  R2 = _ENV[K3('StringUtil')]
  0006  GETTABLE  R2 = R2[K4('IsNilOrEmpty')]
  0007  MOVE      R3 = R0
  0008  CALL      R2 = call(R2, 1 args, 1 rets)
  0009  TEST      if not R2 then   -> -131060
  0010  JMP       (jump)   -> 41
  0011  GETTABUP  R2 = _ENV[K5('json')]
  0012  GETTABLE  R2 = R2[K6('decode')]
  0013  GETTABUP  R3 = _ENV[K3('StringUtil')]
  0014  GETTABLE  R3 = R3[K7('Replace')]
  0015  MOVE      R4 = R0
  0016  LOADK     R5 = K8 '@'
  0017  LOADK     R6 = K9 ','
  0018  CALL      R3 = call(R3, -1 args, 3 rets)
  0019  CALL      R2 = call(R2, 1 args, -1 rets)
  0020  TEST      if not R2 then   -> -131049
  0021  JMP       (jump)   -> 23
  0022  NEWTABLE  R2 = {} (0 items)
  0023  GETTABUP  R3 = _ENV[K10('pairs')]
  0024  MOVE      R4 = R0
  0025  CALL      R3 = call(R3, 3 args, 1 rets)
  0026  JMP       (jump)   -> 39
  0027  GETTABLE  R8 = R0[K0('m_mapCurrentOrderRequirement')]
  0028  NEWTABLE  R9 = {} (0 items)
  0029  SETTABLE  R8[R6] = R9
  0030  GETTABUP  R8 = _ENV[K11('ipairs')]
  0031  MOVE      R9 = R0
  0032  CALL      R8 = call(R8, 3 args, 1 rets)
  0033  JMP       (jump)   -> 37
  0034  GETTABLE  R13 = R0[K0('m_mapCurrentOrderRequirement')]
  0035  GETTABLE  R13 = R13[R6]
  0036  SETTABLE  R13[R12] = K12(true)
  0037  TFORCALL  tforcall R8
  0038  TFORLOOP  tforloop R10(sBx=-5)   -> 34
  0039  TFORCALL  tforcall R3
  0040  TFORLOOP  tforloop R5(sBx=-14)   -> 27
  0041  RETURN    return R0..R-1
; ---------- proto15 [_SaveCurrentOrderRequirement] ----------
  ; fn ?  line 154-167 np=1 va=0 ms=14 code=44 consts=16 upvals=2 protos=0
  ;   K[0]='Table'
  ;   K[1]='IsEmpty'
  ;   K[2]='m_mapCurrentOrderRequirement'
  ;   K[3]='m_dbTable'
  ;   K[4]='Remove'
  ;   K[5]='CurrentOrderRequirement'
  ;   K[6]='pairs'
  ;   K[7]='table'
  ;   K[8]='insert'
  ;   K[9]='_DBTableSet'
  ;   K[10]='StringUtil'
  ;   K[11]='Replace'
  ;   K[12]='json'
  ;   K[13]='encode'
  ;   K[14]=','
  ;   K[15]='@'
  ;   upvals: _ENV, DBKey
  ;   locals: self(0-44), cacheTb(12-43), (for generator)(15-31), (for state)(15-31), (for control)(15-31), orderId(16-29), mapRequirement(16-29), (for generator)(21-29), (for state)(21-29), (for control)(21-29), itemCode(22-27)
  0000  GETTABUP  R1 = _ENV[K0('Table')]
  0001  GETTABLE  R1 = R1[K1('IsEmpty')]
  0002  GETTABLE  R2 = R0[K2('m_mapCurrentOrderRequirement')]
  0003  CALL      R1 = call(R1, 1 args, 1 rets)
  0004  TEST      if not R1 then   -> -131066
  0005  JMP       (jump)   -> 11
  0006  GETTABLE  R1 = R0[K3('m_dbTable')]
  0007  SELF      R2 = R1[K4('Remove')] (self)
  0008  GETTABUP  R3 = DBKey[K5('CurrentOrderRequirement')]
  0009  CALL      R1 = call(R1, 0 args, 2 rets)
  0010  JMP       (jump)   -> 43
  0011  NEWTABLE  R1 = {} (0 items)
  0012  GETTABUP  R2 = _ENV[K6('pairs')]
  0013  GETTABLE  R3 = R0[K2('m_mapCurrentOrderRequirement')]
  0014  CALL      R2 = call(R2, 3 args, 1 rets)
  0015  JMP       (jump)   -> 29
  0016  NEWTABLE  R7 = {} (0 items)
  0017  SETTABLE  R1[R5] = R7
  0018  GETTABUP  R7 = _ENV[K6('pairs')]
  0019  MOVE      R8 = R0
  0020  CALL      R7 = call(R7, 3 args, 1 rets)
  0021  JMP       (jump)   -> 27
  0022  GETTABUP  R11 = _ENV[K7('table')]
  0023  GETTABLE  R11 = R11[K8('insert')]
  0024  GETTABLE  R12 = R1[R5]
  0025  MOVE      R13 = R0
  0026  CALL      R11 = call(R11, 0 args, 2 rets)
  0027  TFORCALL  tforcall R7
  0028  TFORLOOP  tforloop R9(sBx=-7)   -> 22
  0029  TFORCALL  tforcall R2
  0030  TFORLOOP  tforloop R4(sBx=-15)   -> 16
  0031  SELF      R3 = R0[K9('_DBTableSet')] (self)
  0032  GETTABUP  R4 = DBKey[K5('CurrentOrderRequirement')]
  0033  GETTABUP  R5 = _ENV[K10('StringUtil')]
  0034  GETTABLE  R5 = R5[K11('Replace')]
  0035  GETTABUP  R6 = _ENV[K12('json')]
  0036  GETTABLE  R6 = R6[K13('encode')]
  0037  MOVE      R7 = R0
  0038  CALL      R6 = call(R6, 1 args, 1 rets)
  0039  LOADK     R7 = K14 ','
  0040  LOADK     R8 = K15 '@'
  0041  CALL      R5 = call(R5, -1 args, 3 rets)
  0042  CALL      R2 = call(R2, 0 args, -1 rets)
  0043  RETURN    return R0..R-1
; ---------- proto16 [IsCurrentOrderRequirement] ----------
  ; fn ?  line 172-174 np=3 va=0 ms=4 code=8 consts=1 upvals=0 protos=0
  ;   K[0]='m_mapCurrentOrderRequirement'
  ;   locals: self(0-8), orderId(0-8), itemCode(0-8)
  0000  GETTABLE  R3 = R0[K0('m_mapCurrentOrderRequirement')]
  0001  GETTABLE  R3 = R3[R1]
  0002  TEST      if not R3 then   -> -131067
  0003  JMP       (jump)   -> 5
  0004  NEWTABLE  R3 = {} (0 items)
  0005  GETTABLE  R3 = R3[R2]
  0006  RETURN    return R3..R2
  0007  RETURN    return R0..R-1
; ---------- proto17 [GetCurrentOrderRequirement] ----------
  ; fn ?  line 177-179 np=1 va=0 ms=3 code=6 consts=3 upvals=1 protos=0
  ;   K[0]='ReadOnly'
  ;   K[1]='Create'
  ;   K[2]='m_mapCurrentOrderRequirement'
  ;   upvals: _ENV
  ;   locals: self(0-6)
  0000  GETTABUP  R1 = _ENV[K0('ReadOnly')]
  0001  GETTABLE  R1 = R1[K1('Create')]
  0002  GETTABLE  R2 = R0[K2('m_mapCurrentOrderRequirement')]
  0003  TAILCALL  tailcall(R1, 0)
  0004  RETURN    return R1..R0
  0005  RETURN    return R0..R-1
; ---------- proto18 [_AddCurrentOrderRequirement] ----------
  ; fn ?  line 183-187 np=3 va=0 ms=5 code=13 consts=3 upvals=0 protos=0
  ;   K[0]='m_mapCurrentOrderRequirement'
  ;   K[1]=true
  ;   K[2]='_SaveCurrentOrderRequirement'
  ;   locals: self(0-13), orderId(0-13), itemCode(0-13)
  0000  GETTABLE  R3 = R0[K0('m_mapCurrentOrderRequirement')]
  0001  GETTABLE  R4 = R0[K0('m_mapCurrentOrderRequirement')]
  0002  GETTABLE  R4 = R4[R1]
  0003  TEST      if not R4 then   -> -131066
  0004  JMP       (jump)   -> 6
  0005  NEWTABLE  R4 = {} (0 items)
  0006  SETTABLE  R3[R1] = R4
  0007  GETTABLE  R3 = R0[K0('m_mapCurrentOrderRequirement')]
  0008  GETTABLE  R3 = R3[R1]
  0009  SETTABLE  R3[R2] = K1(true)
  0010  SELF      R4 = R0[K2('_SaveCurrentOrderRequirement')] (self)
  0011  CALL      R3 = call(R3, 0 args, 1 rets)
  0012  RETURN    return R0..R-1
; ---------- proto19 [_RemoveCurrentOrderRequirement] ----------
  ; fn ?  line 191-197 np=3 va=0 ms=5 code=15 consts=5 upvals=1 protos=0
  ;   K[0]='m_mapCurrentOrderRequirement'
  ;   K[1]=nil
  ;   K[2]='Table'
  ;   K[3]='IsEmpty'
  ;   K[4]='_SaveCurrentOrderRequirement'
  ;   upvals: _ENV
  ;   locals: self(0-15), orderId(0-15), itemCode(0-15)
  0000  GETTABLE  R3 = R0[K0('m_mapCurrentOrderRequirement')]
  0001  GETTABLE  R3 = R3[R1]
  0002  SETTABLE  R3[R2] = K1(nil)
  0003  GETTABUP  R3 = _ENV[K2('Table')]
  0004  GETTABLE  R3 = R3[K3('IsEmpty')]
  0005  GETTABLE  R4 = R0[K0('m_mapCurrentOrderRequirement')]
  0006  GETTABLE  R4 = R4[R1]
  0007  CALL      R3 = call(R3, 1 args, 1 rets)
  0008  TEST      if not R3 then   -> -131062
  0009  JMP       (jump)   -> 12
  0010  GETTABLE  R3 = R0[K0('m_mapCurrentOrderRequirement')]
  0011  SETTABLE  R3[R1] = K1(nil)
  0012  SELF      R4 = R0[K4('_SaveCurrentOrderRequirement')] (self)
  0013  CALL      R3 = call(R3, 0 args, 1 rets)
  0014  RETURN    return R0..R-1
; ---------- proto20 [ClearCurrentOrderRequirement] ----------
  ; fn ?  line 199-204 np=1 va=0 ms=3 code=9 consts=4 upvals=0 protos=0
  ;   K[0]='m_mapCurrentOrderRequirement'
  ;   K[1]='_SaveCurrentOrderRequirement'
  ;   K[2]='GetModel'
  ;   K[3]='OnRequirementChanged'
  ;   locals: self(0-9)
  0000  NEWTABLE  R1 = {} (0 items)
  0001  SETTABLE  R0[K0('m_mapCurrentOrderRequirement')] = R1
  0002  SELF      R2 = R0[K1('_SaveCurrentOrderRequirement')] (self)
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  SELF      R2 = R0[K2('GetModel')] (self)
  0005  CALL      R1 = call(R1, 1 args, 1 rets)
  0006  SELF      R2 = R1[K3('OnRequirementChanged')] (self)
  0007  CALL      R1 = call(R1, 0 args, 1 rets)
  0008  RETURN    return R0..R-1
; ---------- proto21 [_LoadCheckedOrderIdForRequirement] ----------
  ; fn ?  line 206-216 np=1 va=0 ms=9 code=32 consts=12 upvals=2 protos=0
  ;   K[0]='m_mapCheckedOrderIdForRequirement'
  ;   K[1]='_DBTableGetValue'
  ;   K[2]='CheckedOrderIdForRequirement'
  ;   K[3]='StringUtil'
  ;   K[4]='IsNilOrEmpty'
  ;   K[5]='json'
  ;   K[6]='decode'
  ;   K[7]='Replace'
  ;   K[8]='@'
  ;   K[9]=','
  ;   K[10]='ipairs'
  ;   K[11]=true
  ;   upvals: DBKey, _ENV
  ;   locals: self(0-32), strData(5-32), cacheTb(23-31), (for generator)(26-31), (for state)(26-31), (for control)(26-31), _(27-29), orderId(27-29)
  0000  NEWTABLE  R1 = {} (0 items)
  0001  SETTABLE  R0[K0('m_mapCheckedOrderIdForRequirement')] = R1
  0002  SELF      R2 = R0[K1('_DBTableGetValue')] (self)
  0003  GETTABUP  R3 = DBKey[K2('CheckedOrderIdForRequirement')]
  0004  CALL      R1 = call(R1, 1 args, 2 rets)
  0005  GETTABUP  R2 = _ENV[K3('StringUtil')]
  0006  GETTABLE  R2 = R2[K4('IsNilOrEmpty')]
  0007  MOVE      R3 = R0
  0008  CALL      R2 = call(R2, 1 args, 1 rets)
  0009  TEST      if not R2 then   -> -131060
  0010  JMP       (jump)   -> 31
  0011  GETTABUP  R2 = _ENV[K5('json')]
  0012  GETTABLE  R2 = R2[K6('decode')]
  0013  GETTABUP  R3 = _ENV[K3('StringUtil')]
  0014  GETTABLE  R3 = R3[K7('Replace')]
  0015  MOVE      R4 = R0
  0016  LOADK     R5 = K8 '@'
  0017  LOADK     R6 = K9 ','
  0018  CALL      R3 = call(R3, -1 args, 3 rets)
  0019  CALL      R2 = call(R2, 1 args, -1 rets)
  0020  TEST      if not R2 then   -> -131049
  0021  JMP       (jump)   -> 23
  0022  NEWTABLE  R2 = {} (0 items)
  0023  GETTABUP  R3 = _ENV[K10('ipairs')]
  0024  MOVE      R4 = R0
  0025  CALL      R3 = call(R3, 3 args, 1 rets)
  0026  JMP       (jump)   -> 29
  0027  GETTABLE  R8 = R0[K0('m_mapCheckedOrderIdForRequirement')]
  0028  SETTABLE  R8[R7] = K11(true)
  0029  TFORCALL  tforcall R3
  0030  TFORLOOP  tforloop R5(sBx=-4)   -> 27
  0031  RETURN    return R0..R-1
; ---------- proto22 [_SaveCheckedOrderIdForRequirement] ----------
  ; fn ?  line 218-228 np=1 va=0 ms=9 code=36 consts=16 upvals=2 protos=0
  ;   K[0]='Table'
  ;   K[1]='IsEmpty'
  ;   K[2]='m_mapCheckedOrderIdForRequirement'
  ;   K[3]='m_dbTable'
  ;   K[4]='Remove'
  ;   K[5]='CheckedOrderIdForRequirement'
  ;   K[6]='pairs'
  ;   K[7]='table'
  ;   K[8]='insert'
  ;   K[9]='_DBTableSet'
  ;   K[10]='StringUtil'
  ;   K[11]='Replace'
  ;   K[12]='json'
  ;   K[13]='encode'
  ;   K[14]=','
  ;   K[15]='@'
  ;   upvals: _ENV, DBKey
  ;   locals: self(0-36), cacheTb(12-35), (for generator)(15-23), (for state)(15-23), (for control)(15-23), orderId(16-21)
  0000  GETTABUP  R1 = _ENV[K0('Table')]
  0001  GETTABLE  R1 = R1[K1('IsEmpty')]
  0002  GETTABLE  R2 = R0[K2('m_mapCheckedOrderIdForRequirement')]
  0003  CALL      R1 = call(R1, 1 args, 1 rets)
  0004  TEST      if not R1 then   -> -131066
  0005  JMP       (jump)   -> 11
  0006  GETTABLE  R1 = R0[K3('m_dbTable')]
  0007  SELF      R2 = R1[K4('Remove')] (self)
  0008  GETTABUP  R3 = DBKey[K5('CheckedOrderIdForRequirement')]
  0009  CALL      R1 = call(R1, 0 args, 2 rets)
  0010  JMP       (jump)   -> 35
  0011  NEWTABLE  R1 = {} (0 items)
  0012  GETTABUP  R2 = _ENV[K6('pairs')]
  0013  GETTABLE  R3 = R0[K2('m_mapCheckedOrderIdForRequirement')]
  0014  CALL      R2 = call(R2, 3 args, 1 rets)
  0015  JMP       (jump)   -> 21
  0016  GETTABUP  R6 = _ENV[K7('table')]
  0017  GETTABLE  R6 = R6[K8('insert')]
  0018  MOVE      R7 = R0
  0019  MOVE      R8 = R0
  0020  CALL      R6 = call(R6, 0 args, 2 rets)
  0021  TFORCALL  tforcall R2
  0022  TFORLOOP  tforloop R4(sBx=-7)   -> 16
  0023  SELF      R3 = R0[K9('_DBTableSet')] (self)
  0024  GETTABUP  R4 = DBKey[K5('CheckedOrderIdForRequirement')]
  0025  GETTABUP  R5 = _ENV[K10('StringUtil')]
  0026  GETTABLE  R5 = R5[K11('Replace')]
  0027  GETTABUP  R6 = _ENV[K12('json')]
  0028  GETTABLE  R6 = R6[K13('encode')]
  0029  MOVE      R7 = R0
  0030  CALL      R6 = call(R6, 1 args, 1 rets)
  0031  LOADK     R7 = K14 ','
  0032  LOADK     R8 = K15 '@'
  0033  CALL      R5 = call(R5, -1 args, 3 rets)
  0034  CALL      R2 = call(R2, 0 args, -1 rets)
  0035  RETURN    return R0..R-1
; ---------- proto23 [HasCheckedOrderIdForRequirement] ----------
  ; fn ?  line 232-234 np=2 va=0 ms=3 code=4 consts=1 upvals=0 protos=0
  ;   K[0]='m_mapCheckedOrderIdForRequirement'
  ;   locals: self(0-4), orderId(0-4)
  0000  GETTABLE  R2 = R0[K0('m_mapCheckedOrderIdForRequirement')]
  0001  GETTABLE  R2 = R2[R1]
  0002  RETURN    return R2..R1
  0003  RETURN    return R0..R-1
; ---------- proto24 [_AddCheckedOrderIdForRequirement] ----------
  ; fn ?  line 237-240 np=2 va=0 ms=4 code=5 consts=3 upvals=0 protos=0
  ;   K[0]='m_mapCheckedOrderIdForRequirement'
  ;   K[1]=true
  ;   K[2]='_SaveCheckedOrderIdForRequirement'
  ;   locals: self(0-5), orderId(0-5)
  0000  GETTABLE  R2 = R0[K0('m_mapCheckedOrderIdForRequirement')]
  0001  SETTABLE  R2[R1] = K1(true)
  0002  SELF      R3 = R0[K2('_SaveCheckedOrderIdForRequirement')] (self)
  0003  CALL      R2 = call(R2, 0 args, 1 rets)
  0004  RETURN    return R0..R-1
; ---------- proto25 [ClearCheckedOrderIdForRequirement] ----------
  ; fn ?  line 242-245 np=1 va=0 ms=3 code=5 consts=2 upvals=0 protos=0
  ;   K[0]='m_mapCheckedOrderIdForRequirement'
  ;   K[1]='_SaveCheckedOrderIdForRequirement'
  ;   locals: self(0-5)
  0000  NEWTABLE  R1 = {} (0 items)
  0001  SETTABLE  R0[K0('m_mapCheckedOrderIdForRequirement')] = R1
  0002  SELF      R2 = R0[K1('_SaveCheckedOrderIdForRequirement')] (self)
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  RETURN    return R0..R-1
; ---------- proto26 [_LoadAcquiredOrderRequirement] ----------
  ; fn ?  line 247-260 np=1 va=0 ms=14 code=42 consts=13 upvals=2 protos=0
  ;   K[0]='m_mapAcquiredOrderRequirement'
  ;   K[1]='_DBTableGetValue'
  ;   K[2]='AcquiredOrderRequirement'
  ;   K[3]='StringUtil'
  ;   K[4]='IsNilOrEmpty'
  ;   K[5]='json'
  ;   K[6]='decode'
  ;   K[7]='Replace'
  ;   K[8]='@'
  ;   K[9]=','
  ;   K[10]='pairs'
  ;   K[11]='ipairs'
  ;   K[12]=true
  ;   upvals: DBKey, _ENV
  ;   locals: self(0-42), strData(5-42), cacheTb(23-41), (for generator)(26-41), (for state)(26-41), (for control)(26-41), orderId(27-39), content(27-39), (for generator)(33-39), (for state)(33-39), (for control)(33-39), _(34-37), itemCode(34-37)
  0000  NEWTABLE  R1 = {} (0 items)
  0001  SETTABLE  R0[K0('m_mapAcquiredOrderRequirement')] = R1
  0002  SELF      R2 = R0[K1('_DBTableGetValue')] (self)
  0003  GETTABUP  R3 = DBKey[K2('AcquiredOrderRequirement')]
  0004  CALL      R1 = call(R1, 1 args, 2 rets)
  0005  GETTABUP  R2 = _ENV[K3('StringUtil')]
  0006  GETTABLE  R2 = R2[K4('IsNilOrEmpty')]
  0007  MOVE      R3 = R0
  0008  CALL      R2 = call(R2, 1 args, 1 rets)
  0009  TEST      if not R2 then   -> -131060
  0010  JMP       (jump)   -> 41
  0011  GETTABUP  R2 = _ENV[K5('json')]
  0012  GETTABLE  R2 = R2[K6('decode')]
  0013  GETTABUP  R3 = _ENV[K3('StringUtil')]
  0014  GETTABLE  R3 = R3[K7('Replace')]
  0015  MOVE      R4 = R0
  0016  LOADK     R5 = K8 '@'
  0017  LOADK     R6 = K9 ','
  0018  CALL      R3 = call(R3, -1 args, 3 rets)
  0019  CALL      R2 = call(R2, 1 args, -1 rets)
  0020  TEST      if not R2 then   -> -131049
  0021  JMP       (jump)   -> 23
  0022  NEWTABLE  R2 = {} (0 items)
  0023  GETTABUP  R3 = _ENV[K10('pairs')]
  0024  MOVE      R4 = R0
  0025  CALL      R3 = call(R3, 3 args, 1 rets)
  0026  JMP       (jump)   -> 39
  0027  GETTABLE  R8 = R0[K0('m_mapAcquiredOrderRequirement')]
  0028  NEWTABLE  R9 = {} (0 items)
  0029  SETTABLE  R8[R6] = R9
  0030  GETTABUP  R8 = _ENV[K11('ipairs')]
  0031  MOVE      R9 = R0
  0032  CALL      R8 = call(R8, 3 args, 1 rets)
  0033  JMP       (jump)   -> 37
  0034  GETTABLE  R13 = R0[K0('m_mapAcquiredOrderRequirement')]
  0035  GETTABLE  R13 = R13[R6]
  0036  SETTABLE  R13[R12] = K12(true)
  0037  TFORCALL  tforcall R8
  0038  TFORLOOP  tforloop R10(sBx=-5)   -> 34
  0039  TFORCALL  tforcall R3
  0040  TFORLOOP  tforloop R5(sBx=-14)   -> 27
  0041  RETURN    return R0..R-1
; ---------- proto27 [_SaveAcquiredOrderRequirement] ----------
  ; fn ?  line 267-283 np=2 va=0 ms=15 code=65 consts=27 upvals=3 protos=0
  ;   K[0]='Table'
  ;   K[1]='IsEmpty'
  ;   K[2]='m_mapAcquiredOrderRequirement'
  ;   K[3]='m_dbTable'
  ;   K[4]='Remove'
  ;   K[5]='AcquiredOrderRequirement'
  ;   K[6]='pairs'
  ;   K[7]='table'
  ;   K[8]='insert'
  ;   K[9]='_DBTableSet'
  ;   K[10]='StringUtil'
  ;   K[11]='Replace'
  ;   K[12]='json'
  ;   K[13]='encode'
  ;   K[14]=','
  ;   K[15]='@'
  ;   K[16]='Add'
  ;   K[17]='获得附着'
  ;   K[18]='提交订单'
  ;   K[19]='Log'
  ;   K[20]='Info'
  ;   K[21]='string'
  ;   K[22]='format'
  ;   K[23]='[活动订单材料/菜品] 活动名称=<color=#FFA000>%s</color>，获取记录，场景：<color=#FFA000>%s</color>；当前已获取记录为：%s'
  ;   K[24]='GetModel'
  ;   K[25]='GetType'
  ;   K[26]='_GetLogAcquiredOrderRequirement'
  ;   upvals: _ENV, DBKey, EAcquiredOrderRequirementSaveScene
  ;   locals: self(0-65), scene(0-65), cacheTb(12-43), (for generator)(15-31), (for state)(15-31), (for control)(15-31), orderId(16-29), mapRequirement(16-29), (for generator)(21-29), (for state)(21-29), (for control)(21-29), itemCode(22-27), strScene(50-65)
  0000  GETTABUP  R2 = _ENV[K0('Table')]
  0001  GETTABLE  R2 = R2[K1('IsEmpty')]
  0002  GETTABLE  R3 = R0[K2('m_mapAcquiredOrderRequirement')]
  0003  CALL      R2 = call(R2, 1 args, 1 rets)
  0004  TEST      if not R2 then   -> -131066
  0005  JMP       (jump)   -> 11
  0006  GETTABLE  R2 = R0[K3('m_dbTable')]
  0007  SELF      R3 = R2[K4('Remove')] (self)
  0008  GETTABUP  R4 = DBKey[K5('AcquiredOrderRequirement')]
  0009  CALL      R2 = call(R2, 0 args, 2 rets)
  0010  JMP       (jump)   -> 43
  0011  NEWTABLE  R2 = {} (0 items)
  0012  GETTABUP  R3 = _ENV[K6('pairs')]
  0013  GETTABLE  R4 = R0[K2('m_mapAcquiredOrderRequirement')]
  0014  CALL      R3 = call(R3, 3 args, 1 rets)
  0015  JMP       (jump)   -> 29
  0016  NEWTABLE  R8 = {} (0 items)
  0017  SETTABLE  R2[R6] = R8
  0018  GETTABUP  R8 = _ENV[K6('pairs')]
  0019  MOVE      R9 = R0
  0020  CALL      R8 = call(R8, 3 args, 1 rets)
  0021  JMP       (jump)   -> 27
  0022  GETTABUP  R12 = _ENV[K7('table')]
  0023  GETTABLE  R12 = R12[K8('insert')]
  0024  GETTABLE  R13 = R2[R6]
  0025  MOVE      R14 = R0
  0026  CALL      R12 = call(R12, 0 args, 2 rets)
  0027  TFORCALL  tforcall R8
  0028  TFORLOOP  tforloop R10(sBx=-7)   -> 22
  0029  TFORCALL  tforcall R3
  0030  TFORLOOP  tforloop R5(sBx=-15)   -> 16
  0031  SELF      R4 = R0[K9('_DBTableSet')] (self)
  0032  GETTABUP  R5 = DBKey[K5('AcquiredOrderRequirement')]
  0033  GETTABUP  R6 = _ENV[K10('StringUtil')]
  0034  GETTABLE  R6 = R6[K11('Replace')]
  0035  GETTABUP  R7 = _ENV[K12('json')]
  0036  GETTABLE  R7 = R7[K13('encode')]
  0037  MOVE      R8 = R0
  0038  CALL      R7 = call(R7, 1 args, 1 rets)
  0039  LOADK     R8 = K14 ','
  0040  LOADK     R9 = K15 '@'
  0041  CALL      R6 = call(R6, -1 args, 3 rets)
  0042  CALL      R3 = call(R3, 0 args, -1 rets)
  0043  GETTABUP  R2 = EAcquiredOrderRequirementSaveScene[K16('Add')]
  0044  EQ        if R0 eq R2   -> -130512
  0045  JMP       (jump)   -> 49
  0046  LOADK     R2 = K17 '获得附着'
  0047  TEST      if not R2 then   -> -131022
  0048  JMP       (jump)   -> 50
  0049  LOADK     R2 = K18 '提交订单'
  0050  GETTABUP  R3 = _ENV[K19('Log')]
  0051  GETTABLE  R3 = R3[K20('Info')]
  0052  GETTABUP  R4 = _ENV[K21('string')]
  0053  GETTABLE  R4 = R4[K22('format')]
  0054  LOADK     R5 = K23 '[活动订单材料/菜品] 活动名称=<color=#FFA000>%s</color>，获取记录，场景：<color=#FFA000>%s</color>；当前已获取记录为：%s'
  0055  SELF      R7 = R0[K24('GetModel')] (self)
  0056  CALL      R6 = call(R6, 1 args, 1 rets)
  0057  SELF      R7 = R6[K25('GetType')] (self)
  0058  CALL      R6 = call(R6, 1 args, 1 rets)
  0059  MOVE      R7 = R0
  0060  SELF      R9 = R0[K26('_GetLogAcquiredOrderRequirement')] (self)
  0061  CALL      R8 = call(R8, -1 args, 1 rets)
  0062  CALL      R4 = call(R4, -1 args, -1 rets)
  0063  CALL      R3 = call(R3, 0 args, -1 rets)
  0064  RETURN    return R0..R-1
; ---------- proto28 [IsAcquiredOrderRequirement] ----------
  ; fn ?  line 288-290 np=3 va=0 ms=4 code=8 consts=1 upvals=0 protos=0
  ;   K[0]='m_mapAcquiredOrderRequirement'
  ;   locals: self(0-8), orderId(0-8), itemCode(0-8)
  0000  GETTABLE  R3 = R0[K0('m_mapAcquiredOrderRequirement')]
  0001  GETTABLE  R3 = R3[R1]
  0002  TEST      if not R3 then   -> -131067
  0003  JMP       (jump)   -> 5
  0004  NEWTABLE  R3 = {} (0 items)
  0005  GETTABLE  R3 = R3[R2]
  0006  RETURN    return R3..R2
  0007  RETURN    return R0..R-1
; ---------- proto29 [_AddAcquiredOrderRequirement] ----------
  ; fn ?  line 294-298 np=3 va=0 ms=6 code=14 consts=4 upvals=1 protos=0
  ;   K[0]='m_mapAcquiredOrderRequirement'
  ;   K[1]=true
  ;   K[2]='_SaveAcquiredOrderRequirement'
  ;   K[3]='Add'
  ;   upvals: EAcquiredOrderRequirementSaveScene
  ;   locals: self(0-14), orderId(0-14), itemCode(0-14)
  0000  GETTABLE  R3 = R0[K0('m_mapAcquiredOrderRequirement')]
  0001  GETTABLE  R4 = R0[K0('m_mapAcquiredOrderRequirement')]
  0002  GETTABLE  R4 = R4[R1]
  0003  TEST      if not R4 then   -> -131066
  0004  JMP       (jump)   -> 6
  0005  NEWTABLE  R4 = {} (0 items)
  0006  SETTABLE  R3[R1] = R4
  0007  GETTABLE  R3 = R0[K0('m_mapAcquiredOrderRequirement')]
  0008  GETTABLE  R3 = R3[R1]
  0009  SETTABLE  R3[R2] = K1(true)
  0010  SELF      R4 = R0[K2('_SaveAcquiredOrderRequirement')] (self)
  0011  GETTABUP  R5 = EAcquiredOrderRequirementSaveScene[K3('Add')]
  0012  CALL      R3 = call(R3, 0 args, 2 rets)
  0013  RETURN    return R0..R-1
; ---------- proto30 [_RemoveAcquiredOrderRequirementByOrderId] ----------
  ; fn ?  line 301-305 np=2 va=0 ms=5 code=6 consts=4 upvals=1 protos=0
  ;   K[0]='m_mapAcquiredOrderRequirement'
  ;   K[1]=nil
  ;   K[2]='_SaveAcquiredOrderRequirement'
  ;   K[3]='Remove'
  ;   upvals: EAcquiredOrderRequirementSaveScene
  ;   locals: self(0-6), orderId(0-6)
  0000  GETTABLE  R2 = R0[K0('m_mapAcquiredOrderRequirement')]
  0001  SETTABLE  R2[R1] = K1(nil)
  0002  SELF      R3 = R0[K2('_SaveAcquiredOrderRequirement')] (self)
  0003  GETTABUP  R4 = EAcquiredOrderRequirementSaveScene[K3('Remove')]
  0004  CALL      R2 = call(R2, 0 args, 2 rets)
  0005  RETURN    return R0..R-1
; ---------- proto31 [_GetLogAcquiredOrderRequirement] ----------
  ; fn ?  line 307-318 np=1 va=0 ms=16 code=45 consts=10 upvals=1 protos=0
  ;   K[0]='pairs'
  ;   K[1]='m_mapAcquiredOrderRequirement'
  ;   K[2]='table'
  ;   K[3]='insert'
  ;   K[4]='string'
  ;   K[5]='format'
  ;   K[6]='<color=#FFA000>%s</color>:%s'
  ;   K[7]='concat'
  ;   K[8]=','
  ;   K[9]=';'
  ;   upvals: _ENV
  ;   locals: self(0-45), logStr(1-45), logOrder(2-45), (for generator)(8-38), (for state)(8-38), (for control)(8-38), orderId(9-36), mapRequirement(9-36), (for generator)(14-22), (for state)(14-22), (for control)(14-22), itemCode(15-20)
  0000  NEWTABLE  R1 = {} (0 items)
  0001  LOADNIL   R2..R2 = nil
  0002  GETTABUP  R3 = _ENV[K0('pairs')]
  0003  GETTABLE  R4 = R0[K1('m_mapAcquiredOrderRequirement')]
  0004  TEST      if not R4 then   -> -131065
  0005  JMP       (jump)   -> 7
  0006  NEWTABLE  R4 = {} (0 items)
  0007  CALL      R3 = call(R3, 3 args, 1 rets)
  0008  JMP       (jump)   -> 36
  0009  NEWTABLE  R8 = {} (0 items)
  0010  MOVE      R2 = R0
  0011  GETTABUP  R8 = _ENV[K0('pairs')]
  0012  MOVE      R9 = R0
  0013  CALL      R8 = call(R8, 3 args, 1 rets)
  0014  JMP       (jump)   -> 20
  0015  GETTABUP  R12 = _ENV[K2('table')]
  0016  GETTABLE  R12 = R12[K3('insert')]
  0017  MOVE      R13 = R0
  0018  MOVE      R14 = R0
  0019  CALL      R12 = call(R12, 0 args, 2 rets)
  0020  TFORCALL  tforcall R8
  0021  TFORLOOP  tforloop R10(sBx=-7)   -> 15
  0022  GETTABUP  R8 = _ENV[K2('table')]
  0023  GETTABLE  R8 = R8[K3('insert')]
  0024  MOVE      R9 = R0
  0025  GETTABUP  R10 = _ENV[K4('string')]
  0026  GETTABLE  R10 = R10[K5('format')]
  0027  LOADK     R11 = K6 '<color=#FFA000>%s</color>:%s'
  0028  MOVE      R12 = R0
  0029  GETTABUP  R13 = _ENV[K2('table')]
  0030  GETTABLE  R13 = R13[K7('concat')]
  0031  MOVE      R14 = R0
  0032  LOADK     R15 = K8 ','
  0033  CALL      R13 = call(R13, -1 args, 2 rets)
  0034  CALL      R10 = call(R10, -1 args, -1 rets)
  0035  CALL      R8 = call(R8, 0 args, -1 rets)
  0036  TFORCALL  tforcall R3
  0037  TFORLOOP  tforloop R5(sBx=-29)   -> 9
  0038  GETTABUP  R3 = _ENV[K2('table')]
  0039  GETTABLE  R3 = R3[K7('concat')]
  0040  MOVE      R4 = R0
  0041  LOADK     R5 = K9 ';'
  0042  TAILCALL  tailcall(R3, 0)
  0043  RETURN    return R3..R2
  0044  RETURN    return R0..R-1
; ---------- proto32 [GetBoardModel] ----------
  ; fn ?  line 321-323 np=1 va=0 ms=2 code=4 consts=2 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='MainBoardModel'
  ;   upvals: _ENV
  ;   locals: self(0-4)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('MainBoardModel')]
  0002  RETURN    return R1..R0
  0003  RETURN    return R0..R-1
; ---------- proto33 [_OnOrderStateChanged] ----------
  ; fn ?  line 327-365 np=1 va=0 ms=21 code=65 consts=14 upvals=1 protos=0
  ;   K[0]='GetModel'
  ;   K[1]='GetBoardModel'
  ;   K[2]='IsActivityOpenAndOngoing'
  ;   K[3]='_TryRemoveEmptyOrderRequirement'
  ;   K[4]='GetOrders'
  ;   K[5]='pairs'
  ;   K[6]='m_mapCurrentOrderRequirement'
  ;   K[7]=nil
  ;   K[8]='OrderStateHelper'
  ;   K[9]='GetMapRequirementSatisfied'
  ;   K[10]='_RemoveCurrentOrderRequirement'
  ;   K[11]='_AddAcquiredOrderRequirement'
  ;   K[12]='OnRequirementSatisfied'
  ;   K[13]='OnRequirementChanged'
  ;   upvals: _ENV
  ;   locals: self(0-65), model(2-65), boardModel(4-65), orders(13-65), order(14-65), mapRequirementSatisfied(14-65), bAnyRequirementSatisfied(15-65), (for generator)(18-60), (for state)(18-60), (for control)(18-60), orderId(19-58), mapItemCode(19-58), (for generator)(31-58), (for state)(31-58), (for control)(31-58), itemCode(32-56), bRequirementSatisfied(32-56)
  0000  SELF      R2 = R0[K0('GetModel')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  SELF      R3 = R0[K1('GetBoardModel')] (self)
  0003  CALL      R2 = call(R2, 1 args, 1 rets)
  0004  SELF      R4 = R1[K2('IsActivityOpenAndOngoing')] (self)
  0005  CALL      R3 = call(R3, 1 args, 1 rets)
  0006  TEST      if not R3 then   -> -131063
  0007  JMP       (jump)   -> 9
  0008  RETURN    return R0..R-1
  0009  SELF      R4 = R0[K3('_TryRemoveEmptyOrderRequirement')] (self)
  0010  CALL      R3 = call(R3, 0 args, 1 rets)
  0011  SELF      R4 = R2[K4('GetOrders')] (self)
  0012  CALL      R3 = call(R3, 1 args, 1 rets)
  0013  LOADNIL   R4..R4 = nil
  0014  LOADBOOL  R6 = false
  0015  GETTABUP  R7 = _ENV[K5('pairs')]
  0016  GETTABLE  R8 = R0[K6('m_mapCurrentOrderRequirement')]
  0017  CALL      R7 = call(R7, 3 args, 1 rets)
  0018  JMP       (jump)   -> 58
  0019  GETTABLE  R4 = R3[R10]
  0020  EQ        if R1 eq K7(nil)   -> -128739
  0021  JMP       (jump)   -> 58
  0022  GETTABUP  R12 = _ENV[K8('OrderStateHelper')]
  0023  GETTABLE  R12 = R12[K9('GetMapRequirementSatisfied')]
  0024  MOVE      R13 = R0
  0025  GETTABLE  R14 = R3[R10]
  0026  CALL      R12 = call(R12, 1 args, 2 rets)
  0027  MOVE      R5 = R0
  0028  GETTABUP  R12 = _ENV[K5('pairs')]
  0029  MOVE      R13 = R0
  0030  CALL      R12 = call(R12, 3 args, 1 rets)
  0031  JMP       (jump)   -> 56
  0032  GETTABLE  R17 = R0[K6('m_mapCurrentOrderRequirement')]
  0033  GETTABLE  R17 = R17[R10]
  0034  EQ        if R1 eq K7(nil)   -> -122069
  0035  JMP       (jump)   -> 56
  0036  GETTABLE  R17 = R0[K6('m_mapCurrentOrderRequirement')]
  0037  GETTABLE  R17 = R17[R10]
  0038  GETTABLE  R17 = R17[R15]
  0039  TEST      if not R17 then   -> -131031
  0040  JMP       (jump)   -> 56
  0041  TEST      if not R16 then   -> -131029
  0042  JMP       (jump)   -> 56
  0043  SELF      R18 = R0[K10('_RemoveCurrentOrderRequirement')] (self)
  0044  MOVE      R19 = R0
  0045  MOVE      R20 = R0
  0046  CALL      R17 = call(R17, 0 args, 3 rets)
  0047  SELF      R18 = R0[K11('_AddAcquiredOrderRequirement')] (self)
  0048  MOVE      R19 = R0
  0049  MOVE      R20 = R0
  0050  CALL      R17 = call(R17, 0 args, 3 rets)
  0051  SELF      R18 = R1[K12('OnRequirementSatisfied')] (self)
  0052  MOVE      R19 = R0
  0053  MOVE      R20 = R0
  0054  CALL      R17 = call(R17, 0 args, 3 rets)
  0055  LOADBOOL  R6 = true
  0056  TFORCALL  tforcall R12
  0057  TFORLOOP  tforloop R14(sBx=-26)   -> 32
  0058  TFORCALL  tforcall R7
  0059  TFORLOOP  tforloop R9(sBx=-41)   -> 19
  0060  TEST      if not R6 then   -> -131010
  0061  JMP       (jump)   -> 64
  0062  SELF      R8 = R1[K13('OnRequirementChanged')] (self)
  0063  CALL      R7 = call(R7, 0 args, 1 rets)
  0064  RETURN    return R0..R-1
; ---------- proto34 [_OnOrderFinished] ----------
  ; fn ?  line 371-384 np=2 va=0 ms=8 code=19 consts=5 upvals=0 protos=0
  ;   K[0]='order'
  ;   K[1]='GetModel'
  ;   K[2]='IsActivityOpen'
  ;   K[3]='_RemoveAcquiredOrderRequirementByOrderId'
  ;   K[4]='GetId'
  ;   locals: self(0-19), msg(0-19), model(8-19), order(14-19)
  0000  TEST      if not R1 then   -> -131070
  0001  JMP       (jump)   -> 5
  0002  GETTABLE  R2 = R1[K0('order')]
  0003  TEST      if not R2 then   -> -131066
  0004  JMP       (jump)   -> 6
  0005  RETURN    return R0..R-1
  0006  SELF      R3 = R0[K1('GetModel')] (self)
  0007  CALL      R2 = call(R2, 1 args, 1 rets)
  0008  SELF      R4 = R2[K2('IsActivityOpen')] (self)
  0009  CALL      R3 = call(R3, 1 args, 1 rets)
  0010  TEST      if not R3 then   -> -131059
  0011  JMP       (jump)   -> 13
  0012  RETURN    return R0..R-1
  0013  GETTABLE  R3 = R1[K0('order')]
  0014  SELF      R5 = R0[K3('_RemoveAcquiredOrderRequirementByOrderId')] (self)
  0015  SELF      R7 = R3[K4('GetId')] (self)
  0016  CALL      R6 = call(R6, -1 args, 1 rets)
  0017  CALL      R4 = call(R4, 0 args, -1 rets)
  0018  RETURN    return R0..R-1
; ---------- proto35 [_OnChangeGameMode] ----------
  ; fn ?  line 386-399 np=1 va=0 ms=4 code=22 consts=9 upvals=1 protos=0
  ;   K[0]='GetModel'
  ;   K[1]='IsActivityOpenAndOngoing'
  ;   K[2]='GM'
  ;   K[3]='SceneManager'
  ;   K[4]='GetGameMode'
  ;   K[5]='EGameMode'
  ;   K[6]='Board'
  ;   K[7]='RefreshOrderRequirement'
  ;   K[8]='OnNewOrderIconChosen'
  ;   upvals: _ENV
  ;   locals: self(0-22), model(2-22)
  0000  SELF      R2 = R0[K0('GetModel')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  SELF      R3 = R1[K1('IsActivityOpenAndOngoing')] (self)
  0003  CALL      R2 = call(R2, 1 args, 1 rets)
  0004  TEST      if not R2 then   -> -131065
  0005  JMP       (jump)   -> 7
  0006  RETURN    return R0..R-1
  0007  GETTABUP  R2 = _ENV[K2('GM')]
  0008  GETTABLE  R2 = R2[K3('SceneManager')]
  0009  SELF      R3 = R2[K4('GetGameMode')] (self)
  0010  CALL      R2 = call(R2, 1 args, 1 rets)
  0011  GETTABUP  R3 = _ENV[K5('EGameMode')]
  0012  GETTABLE  R3 = R3[K6('Board')]
  0013  EQ        if R0 eq R3   -> -130030
  0014  JMP       (jump)   -> 21
  0015  SELF      R3 = R0[K7('RefreshOrderRequirement')] (self)
  0016  CALL      R2 = call(R2, 1 args, 1 rets)
  0017  TEST      if not R2 then   -> -131053
  0018  JMP       (jump)   -> 21
  0019  SELF      R3 = R1[K8('OnNewOrderIconChosen')] (self)
  0020  CALL      R2 = call(R2, 0 args, 1 rets)
  0021  RETURN    return R0..R-1
; ---------- proto36 [_OnOrderGroupRefreshed] ----------
  ; fn ?  line 401-410 np=1 va=0 ms=4 code=12 consts=4 upvals=0 protos=0
  ;   K[0]='GetModel'
  ;   K[1]='IsActivityOpenAndOngoing'
  ;   K[2]='ClearCheckedOrderIdForRequirement'
  ;   K[3]='_RefreshOrderRequirementOnNewOrders'
  ;   locals: self(0-12), model(2-12)
  0000  SELF      R2 = R0[K0('GetModel')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  SELF      R3 = R1[K1('IsActivityOpenAndOngoing')] (self)
  0003  CALL      R2 = call(R2, 1 args, 1 rets)
  0004  TEST      if not R2 then   -> -131065
  0005  JMP       (jump)   -> 7
  0006  RETURN    return R0..R-1
  0007  SELF      R3 = R0[K2('ClearCheckedOrderIdForRequirement')] (self)
  0008  CALL      R2 = call(R2, 0 args, 1 rets)
  0009  SELF      R3 = R0[K3('_RefreshOrderRequirementOnNewOrders')] (self)
  0010  CALL      R2 = call(R2, 0 args, 1 rets)
  0011  RETURN    return R0..R-1
; ---------- proto37 [_RefreshOrderRequirementOnNewOrders] ----------
  ; fn ?  line 412-419 np=1 va=0 ms=4 code=10 consts=3 upvals=0 protos=0
  ;   K[0]='GetModel'
  ;   K[1]='IsActivityOpenAndOngoing'
  ;   K[2]='RefreshOrderRequirement'
  ;   locals: self(0-10), model(2-10)
  0000  SELF      R2 = R0[K0('GetModel')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  SELF      R3 = R1[K1('IsActivityOpenAndOngoing')] (self)
  0003  CALL      R2 = call(R2, 1 args, 1 rets)
  0004  TEST      if not R2 then   -> -131065
  0005  JMP       (jump)   -> 7
  0006  RETURN    return R0..R-1
  0007  SELF      R3 = R0[K2('RefreshOrderRequirement')] (self)
  0008  CALL      R2 = call(R2, 0 args, 1 rets)
  0009  RETURN    return R0..R-1
; ---------- proto38 [_OnBakeOutStateChanged] ----------
  ; fn ?  line 421-428 np=1 va=0 ms=4 code=10 consts=3 upvals=0 protos=0
  ;   K[0]='GetModel'
  ;   K[1]='IsActivityOpenAndOngoing'
  ;   K[2]='RefreshOrderRequirement'
  ;   locals: self(0-10), model(2-10)
  0000  SELF      R2 = R0[K0('GetModel')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  SELF      R3 = R1[K1('IsActivityOpenAndOngoing')] (self)
  0003  CALL      R2 = call(R2, 1 args, 1 rets)
  0004  TEST      if not R2 then   -> -131065
  0005  JMP       (jump)   -> 7
  0006  RETURN    return R0..R-1
  0007  SELF      R3 = R0[K2('RefreshOrderRequirement')] (self)
  0008  CALL      R2 = call(R2, 0 args, 1 rets)
  0009  RETURN    return R0..R-1
; ---------- proto39 [_TryRemoveEmptyOrderRequirement] ----------
  ; fn ?  line 435-450 np=1 va=0 ms=17 code=40 consts=10 upvals=1 protos=0
  ;   K[0]='GetModel'
  ;   K[1]='GM'
  ;   K[2]='MainBoardModel'
  ;   K[3]='GetOrders'
  ;   K[4]='pairs'
  ;   K[5]='m_mapCurrentOrderRequirement'
  ;   K[6]='GetUniqueRequirements'
  ;   K[7]=nil
  ;   K[8]='_RemoveCurrentOrderRequirement'
  ;   K[9]='OnRequirementRemoved'
  ;   upvals: _ENV
  ;   locals: self(0-40), model(2-40), orders(6-40), countMap(7-40), (for generator)(10-39), (for state)(10-39), (for control)(10-39), orderId(11-37), mapRequirement(11-37), (for generator)(21-37), (for state)(21-37), (for control)(21-37), itemCode(22-35)
  0000  SELF      R2 = R0[K0('GetModel')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  GETTABUP  R2 = _ENV[K1('GM')]
  0003  GETTABLE  R2 = R2[K2('MainBoardModel')]
  0004  SELF      R3 = R2[K3('GetOrders')] (self)
  0005  CALL      R2 = call(R2, 1 args, 1 rets)
  0006  LOADNIL   R3..R3 = nil
  0007  GETTABUP  R4 = _ENV[K4('pairs')]
  0008  GETTABLE  R5 = R0[K5('m_mapCurrentOrderRequirement')]
  0009  CALL      R4 = call(R4, 3 args, 1 rets)
  0010  JMP       (jump)   -> 37
  0011  GETTABLE  R9 = R2[R7]
  0012  TESTSET   if R0 then R3   -> -126450
  0013  JMP       (jump)   -> 18
  0014  GETTABLE  R9 = R2[R7]
  0015  SELF      R10 = R9[K6('GetUniqueRequirements')] (self)
  0016  CALL      R9 = call(R9, 1 args, 1 rets)
  0017  MOVE      R3 = R0
  0018  GETTABUP  R9 = _ENV[K4('pairs')]
  0019  MOVE      R10 = R0
  0020  CALL      R9 = call(R9, 3 args, 1 rets)
  0021  JMP       (jump)   -> 35
  0022  EQ        if R1 eq K7(nil)   -> -129249
  0023  JMP       (jump)   -> 27
  0024  GETTABLE  R13 = R3[R12]
  0025  TEST      if not R13 then   -> -131044
  0026  JMP       (jump)   -> 35
  0027  SELF      R14 = R0[K8('_RemoveCurrentOrderRequirement')] (self)
  0028  MOVE      R15 = R0
  0029  MOVE      R16 = R0
  0030  CALL      R13 = call(R13, 0 args, 3 rets)
  0031  SELF      R14 = R1[K9('OnRequirementRemoved')] (self)
  0032  MOVE      R15 = R0
  0033  MOVE      R16 = R0
  0034  CALL      R13 = call(R13, 0 args, 3 rets)
  0035  TFORCALL  tforcall R9
  0036  TFORLOOP  tforloop R11(sBx=-15)   -> 22
  0037  TFORCALL  tforcall R4
  0038  TFORLOOP  tforloop R6(sBx=-28)   -> 11
  0039  RETURN    return R0..R-1
; ---------- proto40 [RefreshOrderRequirement] ----------
  ; fn ?  line 452-492 np=1 va=0 ms=20 code=109 consts=32 upvals=1 protos=0
  ;   K[0]='GetModel'
  ;   K[1]='GetBoardModel'
  ;   K[2]='IsActivityOpenAndOngoing'
  ;   K[3]='_TryRemoveEmptyOrderRequirement'
  ;   K[4]='GM'
  ;   K[5]='MainBoardModel'
  ;   K[6]='GetOrders'
  ;   K[7]='pairs'
  ;   K[8]='HasCheckedOrderIdForRequirement'
  ;   K[9]='_AddCheckedOrderIdForRequirement'
  ;   K[10]='OrderStateHelper'
  ;   K[11]='GetMapRequirementSatisfied'
  ;   K[12]='IsCurrentOrderRequirement'
  ;   K[13]='IsAcquiredOrderRequirement'
  ;   K[14]='table'
  ;   K[15]='insert'
  ;   K[16]='order'
  ;   K[17]='itemCode'
  ;   K[18]='Table'
  ;   K[19]='IsEmpty'
  ;   K[20]='Log'
  ;   K[21]='Info'
  ;   K[22]='string'
  ;   K[23]='format'
  ;   K[24]='[活动订单材料/菜品] 活动名称=<color=#FFA000>%s</color>，获取记录，场景：<color=#FFA000>新增附着</color>；当前已获取记录为：%s'
  ;   K[25]='GetType'
  ;   K[26]='_GetLogAcquiredOrderRequirement'
  ;   K[27]='FilterNewOrderRequirement'
  ;   K[28]='ipairs'
  ;   K[29]='_AddCurrentOrderRequirement'
  ;   K[30]='GetId'
  ;   K[31]='OnRequirementChanged'
  ;   upvals: _ENV
  ;   locals: self(0-109), model(2-109), boardModel(4-109), orders(15-109), mapRequirementSatisfied(16-109), arrOrderItemCode(17-109), (for generator)(20-64), (for state)(20-64), (for control)(20-64), orderId(21-62), order(21-62), (for generator)(38-62), (for state)(38-62), (for control)(38-62), itemCode(39-60), bRequirementSatisfied(39-60), (for generator)(91-100), (for state)(91-100), (for control)(91-100), _(92-98), orderItemCode(92-98)
  0000  SELF      R2 = R0[K0('GetModel')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  SELF      R3 = R0[K1('GetBoardModel')] (self)
  0003  CALL      R2 = call(R2, 1 args, 1 rets)
  0004  SELF      R4 = R1[K2('IsActivityOpenAndOngoing')] (self)
  0005  CALL      R3 = call(R3, 1 args, 1 rets)
  0006  TEST      if not R3 then   -> -131063
  0007  JMP       (jump)   -> 9
  0008  RETURN    return R0..R-1
  0009  SELF      R4 = R0[K3('_TryRemoveEmptyOrderRequirement')] (self)
  0010  CALL      R3 = call(R3, 0 args, 1 rets)
  0011  GETTABUP  R3 = _ENV[K4('GM')]
  0012  GETTABLE  R3 = R3[K5('MainBoardModel')]
  0013  SELF      R4 = R3[K6('GetOrders')] (self)
  0014  CALL      R3 = call(R3, 1 args, 1 rets)
  0015  LOADNIL   R4..R4 = nil
  0016  NEWTABLE  R5 = {} (0 items)
  0017  GETTABUP  R6 = _ENV[K7('pairs')]
  0018  MOVE      R7 = R0
  0019  CALL      R6 = call(R6, 3 args, 1 rets)
  0020  JMP       (jump)   -> 62
  0021  SELF      R12 = R0[K8('HasCheckedOrderIdForRequirement')] (self)
  0022  MOVE      R13 = R0
  0023  CALL      R11 = call(R11, 1 args, 2 rets)
  0024  TEST      if not R11 then   -> -131045
  0025  JMP       (jump)   -> 62
  0026  SELF      R12 = R0[K9('_AddCheckedOrderIdForRequirement')] (self)
  0027  MOVE      R13 = R0
  0028  CALL      R11 = call(R11, 0 args, 2 rets)
  0029  GETTABUP  R11 = _ENV[K10('OrderStateHelper')]
  0030  GETTABLE  R11 = R11[K11('GetMapRequirementSatisfied')]
  0031  MOVE      R12 = R0
  0032  MOVE      R13 = R0
  0033  CALL      R11 = call(R11, 1 args, 2 rets)
  0034  MOVE      R4 = R0
  0035  GETTABUP  R11 = _ENV[K7('pairs')]
  0036  MOVE      R12 = R0
  0037  CALL      R11 = call(R11, 3 args, 1 rets)
  0038  JMP       (jump)   -> 60
  0039  TEST      if not R15 then   -> -131030
  0040  JMP       (jump)   -> 60
  0041  SELF      R17 = R0[K12('IsCurrentOrderRequirement')] (self)
  0042  MOVE      R18 = R0
  0043  MOVE      R19 = R0
  0044  CALL      R16 = call(R16, 1 args, 3 rets)
  0045  TEST      if not R16 then   -> -131024
  0046  JMP       (jump)   -> 60
  0047  SELF      R17 = R0[K13('IsAcquiredOrderRequirement')] (self)
  0048  MOVE      R18 = R0
  0049  MOVE      R19 = R0
  0050  CALL      R16 = call(R16, 1 args, 3 rets)
  0051  TEST      if not R16 then   -> -131018
  0052  JMP       (jump)   -> 60
  0053  GETTABUP  R16 = _ENV[K14('table')]
  0054  GETTABLE  R16 = R16[K15('insert')]
  0055  MOVE      R17 = R0
  0056  NEWTABLE  R18 = {} (0 items)
  0057  SETTABLE  R18[K16('order')] = R10
  0058  SETTABLE  R18[K17('itemCode')] = R14
  0059  CALL      R16 = call(R16, 0 args, 2 rets)
  0060  TFORCALL  tforcall R11
  0061  TFORLOOP  tforloop R13(sBx=-23)   -> 39
  0062  TFORCALL  tforcall R6
  0063  TFORLOOP  tforloop R8(sBx=-43)   -> 21
  0064  GETTABUP  R6 = _ENV[K18('Table')]
  0065  GETTABLE  R6 = R6[K19('IsEmpty')]
  0066  MOVE      R7 = R0
  0067  CALL      R6 = call(R6, 1 args, 1 rets)
  0068  TEST      if not R6 then   -> -131002
  0069  JMP       (jump)   -> 71
  0070  RETURN    return R0..R-1
  0071  GETTABUP  R6 = _ENV[K20('Log')]
  0072  GETTABLE  R6 = R6[K21('Info')]
  0073  GETTABUP  R7 = _ENV[K22('string')]
  0074  GETTABLE  R7 = R7[K23('format')]
  0075  LOADK     R8 = K24 '[活动订单材料/菜品] 活动名称=<color=#FFA000>%s</color>，获取记录，场景：<color=#FFA000>新增附着</color>；当前已获取记录为：%s'
  0076  SELF      R10 = R0[K0('GetModel')] (self)
  0077  CALL      R9 = call(R9, 1 args, 1 rets)
  0078  SELF      R10 = R9[K25('GetType')] (self)
  0079  CALL      R9 = call(R9, 1 args, 1 rets)
  0080  SELF      R11 = R0[K26('_GetLogAcquiredOrderRequirement')] (self)
  0081  CALL      R10 = call(R10, -1 args, 1 rets)
  0082  CALL      R7 = call(R7, -1 args, -1 rets)
  0083  CALL      R6 = call(R6, 0 args, -1 rets)
  0084  SELF      R7 = R1[K27('FilterNewOrderRequirement')] (self)
  0085  MOVE      R8 = R0
  0086  CALL      R6 = call(R6, 1 args, 2 rets)
  0087  MOVE      R5 = R0
  0088  GETTABUP  R6 = _ENV[K28('ipairs')]
  0089  MOVE      R7 = R0
  0090  CALL      R6 = call(R6, 3 args, 1 rets)
  0091  JMP       (jump)   -> 98
  0092  SELF      R12 = R0[K29('_AddCurrentOrderRequirement')] (self)
  0093  GETTABLE  R13 = R10[K16('order')]
  0094  SELF      R14 = R13[K30('GetId')] (self)
  0095  CALL      R13 = call(R13, 1 args, 1 rets)
  0096  GETTABLE  R14 = R10[K17('itemCode')]
  0097  CALL      R11 = call(R11, 0 args, 3 rets)
  0098  TFORCALL  tforcall R6
  0099  TFORLOOP  tforloop R8(sBx=-8)   -> 92
  0100  SELF      R7 = R1[K31('OnRequirementChanged')] (self)
  0101  CALL      R6 = call(R6, 0 args, 1 rets)
  0102  GETTABUP  R6 = _ENV[K18('Table')]
  0103  GETTABLE  R6 = R6[K19('IsEmpty')]
  0104  MOVE      R7 = R0
  0105  CALL      R6 = call(R6, 1 args, 1 rets)
  0106  NOT       R6 = not R0
  0107  RETURN    return R6..R5
  0108  RETURN    return R0..R-1
; ---------- proto41 [FindOneRequirementSatisfiedItem] ----------
  ; fn ?  line 497-525 np=2 va=0 ms=9 code=28 consts=9 upvals=1 protos=2
  ;   K[0]='GetBoardModel'
  ;   K[1]='GetOneBoardItemByType'
  ;   K[2]=nil
  ;   K[3]='GM'
  ;   K[4]='ItemDataModel'
  ;   K[5]='IsDishes'
  ;   K[6]='FilterItems'
  ;   K[7]=0
  ;   K[8]=1
  ;   upvals: _ENV
  ;   locals: self(0-28), itemCode(0-28), filterRequirement(1-28), boardModel(3-28), targetItemModel(6-28), filterItemCook(17-25), arrItems(20-25)
  0000  CLOSURE   R2 = closure proto0
  0001  SELF      R4 = R0[K0('GetBoardModel')] (self)
  0002  CALL      R3 = call(R3, 1 args, 1 rets)
  0003  SELF      R5 = R3[K1('GetOneBoardItemByType')] (self)
  0004  MOVE      R6 = R0
  0005  CALL      R4 = call(R4, 1 args, 2 rets)
  0006  EQ        if R1 eq K2(nil)   -> -128758
  0007  JMP       (jump)   -> 9
  0008  RETURN    return R4..R3
  0009  GETTABUP  R5 = _ENV[K3('GM')]
  0010  GETTABLE  R5 = R5[K4('ItemDataModel')]
  0011  SELF      R6 = R5[K5('IsDishes')] (self)
  0012  MOVE      R7 = R0
  0013  CALL      R5 = call(R5, 1 args, 2 rets)
  0014  TEST      if not R5 then   -> -131056
  0015  JMP       (jump)   -> 25
  0016  CLOSURE   R5 = closure proto1
  0017  SELF      R7 = R3[K6('FilterItems')] (self)
  0018  MOVE      R8 = R0
  0019  CALL      R6 = call(R6, 1 args, 2 rets)
  0020  LEN       R7 = len R0
  0021  LT        if R0 lt R7   -> 3614
  0022  JMP       (jump)   -> 25
  0023  GETTABLE  R7 = R6[K8(1)]
  0024  RETURN    return R7..R6
  0025  LOADNIL   R5..R5 = nil
  0026  RETURN    return R5..R4
  0027  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 500-502 np=1 va=0 ms=3 code=9 consts=1 upvals=1 protos=0
    ;   K[0]='GetType'
    ;   upvals: itemCode
    ;   locals: itemModel(0-9)
    0000  SELF      R2 = R0[K0('GetType')] (self)
    0001  CALL      R1 = call(R1, 1 args, 1 rets)
    0002  GETUPVAL  R2 = itemCode
    0003  EQ        if R1 eq R2   -> -130553
    0004  JMP       (jump)   -> 6
    0005  LOADBOOL  R1 = false
    0006  LOADBOOL  R1 = true
    0007  RETURN    return R1..R0
    0008  RETURN    return R0..R-1
  ; ---------- proto1 [] ----------
    ; fn ?  line 511-518 np=1 va=0 ms=4 code=27 consts=8 upvals=2 protos=0
    ;   K[0]='GetComponent'
    ;   K[1]='ItemCook'
    ;   K[2]=nil
    ;   K[3]='GetRecipe'
    ;   K[4]='GetState'
    ;   K[5]='EItemCookState'
    ;   K[6]='Cooking'
    ;   K[7]='Cooked'
    ;   upvals: _ENV, itemCode
    ;   locals: itemModel(0-27), itemCook(3-27)
    0000  SELF      R2 = R0[K0('GetComponent')] (self)
    0001  GETTABUP  R3 = _ENV[K1('ItemCook')]
    0002  CALL      R1 = call(R1, 1 args, 2 rets)
    0003  EQ        if R1 eq K2(nil)   -> -130297
    0004  JMP       (jump)   -> 24
    0005  SELF      R3 = R1[K3('GetRecipe')] (self)
    0006  CALL      R2 = call(R2, 1 args, 1 rets)
    0007  GETUPVAL  R3 = _ENV
    0008  EQ        if R0 eq R3   -> -130035
    0009  JMP       (jump)   -> 24
    0010  SELF      R3 = R1[K4('GetState')] (self)
    0011  CALL      R2 = call(R2, 1 args, 1 rets)
    0012  GETTABUP  R3 = _ENV[K5('EItemCookState')]
    0013  GETTABLE  R3 = R3[K6('Cooking')]
    0014  EQ        if R1 eq R3   -> -130029
    0015  JMP       (jump)   -> 22
    0016  SELF      R3 = R1[K4('GetState')] (self)
    0017  CALL      R2 = call(R2, 1 args, 1 rets)
    0018  GETTABUP  R3 = _ENV[K5('EItemCookState')]
    0019  GETTABLE  R3 = R3[K7('Cooked')]
    0020  EQ        if R0 eq R3   -> -130023
    0021  JMP       (jump)   -> 24
    0022  LOADBOOL  R2 = true
    0023  RETURN    return R2..R1
    0024  LOADBOOL  R2 = false
    0025  RETURN    return R2..R1
    0026  RETURN    return R0..R-1
