# NewRecipeReward_Model_NewRecipeRewardModel_1424.luac
; fn @NewRecipeRewardModel.lua  line 0-0 np=0 va=1 ms=3 code=36 consts=13 upvals=1 protos=9
;   K[0]='NewRecipeRewardModel'
;   K[1]='setmetatable'
;   K[2]='BaseActivityModel'
;   K[3]='__index'
;   K[4]='Init'
;   K[5]='_LoadOtherServerConfig'
;   K[6]='IsActivityOpen'
;   K[7]='GetResourceLabels'
;   K[8]='_OnStateChanged'
;   K[9]='GetCountdownText'
;   K[10]='GetGemRewardCount'
;   K[11]='GetRewards'
;   K[12]='_OnItemUnlocked'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('BaseActivityModel')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('NewRecipeRewardModel')] = R0
0005  GETTABUP  R0 = _ENV[K0('NewRecipeRewardModel')]
0006  GETTABUP  R1 = _ENV[K0('NewRecipeRewardModel')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('NewRecipeRewardModel')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Init')] = R1
0011  GETTABUP  R0 = _ENV[K0('NewRecipeRewardModel')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('_LoadOtherServerConfig')] = R1
0014  GETTABUP  R0 = _ENV[K0('NewRecipeRewardModel')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('IsActivityOpen')] = R1
0017  GETTABUP  R0 = _ENV[K0('NewRecipeRewardModel')]
0018  CLOSURE   R1 = closure proto3
0019  SETTABLE  R0[K7('GetResourceLabels')] = R1
0020  GETTABUP  R0 = _ENV[K0('NewRecipeRewardModel')]
0021  CLOSURE   R1 = closure proto4
0022  SETTABLE  R0[K8('_OnStateChanged')] = R1
0023  GETTABUP  R0 = _ENV[K0('NewRecipeRewardModel')]
0024  CLOSURE   R1 = closure proto5
0025  SETTABLE  R0[K9('GetCountdownText')] = R1
0026  GETTABUP  R0 = _ENV[K0('NewRecipeRewardModel')]
0027  CLOSURE   R1 = closure proto6
0028  SETTABLE  R0[K10('GetGemRewardCount')] = R1
0029  GETTABUP  R0 = _ENV[K0('NewRecipeRewardModel')]
0030  CLOSURE   R1 = closure proto7
0031  SETTABLE  R0[K11('GetRewards')] = R1
0032  GETTABUP  R0 = _ENV[K0('NewRecipeRewardModel')]
0033  CLOSURE   R1 = closure proto8
0034  SETTABLE  R0[K12('_OnItemUnlocked')] = R1
0035  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 5-11 np=2 va=0 ms=6 code=15 consts=9 upvals=1 protos=0
  ;   K[0]='BaseActivityModel'
  ;   K[1]='Init'
  ;   K[2]='ActivityType'
  ;   K[3]='NewRecipeReward'
  ;   K[4]='EventDispatcher'
  ;   K[5]='AddListener'
  ;   K[6]='EEventType'
  ;   K[7]='ItemUnlocked'
  ;   K[8]='_OnItemUnlocked'
  ;   upvals: _ENV
  ;   locals: self(0-15), virtualDBTable(0-15)
  0000  GETTABUP  R2 = _ENV[K0('BaseActivityModel')]
  0001  GETTABLE  R2 = R2[K1('Init')]
  0002  MOVE      R3 = R0
  0003  GETTABUP  R4 = _ENV[K2('ActivityType')]
  0004  GETTABLE  R4 = R4[K3('NewRecipeReward')]
  0005  MOVE      R5 = R0
  0006  CALL      R2 = call(R2, 0 args, 3 rets)
  0007  GETTABUP  R2 = _ENV[K4('EventDispatcher')]
  0008  GETTABLE  R2 = R2[K5('AddListener')]
  0009  GETTABUP  R3 = _ENV[K6('EEventType')]
  0010  GETTABLE  R3 = R3[K7('ItemUnlocked')]
  0011  MOVE      R4 = R0
  0012  GETTABLE  R5 = R0[K8('_OnItemUnlocked')]
  0013  CALL      R2 = call(R2, 0 args, 3 rets)
  0014  RETURN    return R0..R-1
; ---------- proto1 [_LoadOtherServerConfig] ----------
  ; fn ?  line 13-28 np=1 va=0 ms=6 code=29 consts=18 upvals=1 protos=0
  ;   K[0]='GetGeneralConfig'
  ;   K[1]='newRecipeReward'
  ;   K[2]='EConfigParamType'
  ;   K[3]='Int'
  ;   K[4]=nil
  ;   K[5]='Log'
  ;   K[6]='Error'
  ;   K[7]='NewRecipeRewardModel:_LoadOtherServerConfig() gemRewardCount is nil'
  ;   K[8]=2
  ;   K[9]='m_gemRewardCount'
  ;   K[10]=1
  ;   K[11]='PROPERTY_TYPE'
  ;   K[12]='EPropertyType'
  ;   K[13]='Gem'
  ;   K[14]='PROPERTY_COUNT'
  ;   K[15]='RewardApi'
  ;   K[16]='CryptRewards'
  ;   K[17]='m_rewards'
  ;   upvals: _ENV
  ;   locals: self(0-29), gemRewardCount(5-29), rewards(14-29)
  0000  SELF      R2 = R0[K0('GetGeneralConfig')] (self)
  0001  LOADK     R3 = K1 'newRecipeReward'
  0002  GETTABUP  R4 = _ENV[K2('EConfigParamType')]
  0003  GETTABLE  R4 = R4[K3('Int')]
  0004  CALL      R1 = call(R1, 1 args, 3 rets)
  0005  EQ        if R0 eq K4(nil)   -> -130293
  0006  JMP       (jump)   -> 12
  0007  GETTABUP  R2 = _ENV[K5('Log')]
  0008  GETTABLE  R2 = R2[K6('Error')]
  0009  LOADK     R3 = K7 'NewRecipeRewardModel:_LoadOtherServerConfig() gemRewardCount is nil'
  0010  CALL      R2 = call(R2, 0 args, 1 rets)
  0011  LOADK     R1 = K8 2
  0012  SETTABLE  R0[K9('m_gemRewardCount')] = R1
  0013  NEWTABLE  R2 = {} (0 items)
  0014  NEWTABLE  R3 = {} (0 items)
  0015  GETTABUP  R4 = _ENV[K11('PROPERTY_TYPE')]
  0016  GETTABUP  R5 = _ENV[K12('EPropertyType')]
  0017  GETTABLE  R5 = R5[K13('Gem')]
  0018  SETTABLE  R3[R4] = R5
  0019  GETTABUP  R4 = _ENV[K14('PROPERTY_COUNT')]
  0020  GETTABLE  R5 = R0[K9('m_gemRewardCount')]
  0021  SETTABLE  R3[R4] = R5
  0022  SETTABLE  R2[K10(1)] = R3
  0023  GETTABUP  R3 = _ENV[K15('RewardApi')]
  0024  GETTABLE  R3 = R3[K16('CryptRewards')]
  0025  MOVE      R4 = R0
  0026  CALL      R3 = call(R3, 0 args, 1 rets)
  0027  SETTABLE  R0[K17('m_rewards')] = R2
  0028  RETURN    return R0..R-1
; ---------- proto2 [IsActivityOpen] ----------
  ; fn ?  line 30-32 np=1 va=0 ms=3 code=10 consts=3 upvals=1 protos=0
  ;   K[0]='GetState'
  ;   K[1]='ActivityState'
  ;   K[2]='Started'
  ;   upvals: _ENV
  ;   locals: self(0-10)
  0000  SELF      R2 = R0[K0('GetState')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  GETTABUP  R2 = _ENV[K1('ActivityState')]
  0003  GETTABLE  R2 = R2[K2('Started')]
  0004  EQ        if R1 eq R2   -> -130552
  0005  JMP       (jump)   -> 7
  0006  LOADBOOL  R1 = false
  0007  LOADBOOL  R1 = true
  0008  RETURN    return R1..R0
  0009  RETURN    return R0..R-1
; ---------- proto3 [GetResourceLabels] ----------
  ; fn ?  line 34-36 np=1 va=0 ms=3 code=6 consts=2 upvals=1 protos=0
  ;   K[0]='AddressableLabel'
  ;   K[1]='NewRecipeReward'
  ;   upvals: _ENV
  ;   locals: self(0-6)
  0000  NEWTABLE  R1 = {} (1 items)
  0001  GETTABUP  R2 = _ENV[K0('AddressableLabel')]
  0002  GETTABLE  R2 = R2[K1('NewRecipeReward')]
  0003  SETLIST   setlist R1[B=1,C=1]
  0004  RETURN    return R1..R0
  0005  RETURN    return R0..R-1
; ---------- proto4 [_OnStateChanged] ----------
  ; fn ?  line 38-42 np=1 va=0 ms=3 code=10 consts=6 upvals=1 protos=0
  ;   K[0]='BaseActivityModel'
  ;   K[1]='_OnStateChanged'
  ;   K[2]='EventDispatcher'
  ;   K[3]='DispatchEvent'
  ;   K[4]='EEventType'
  ;   K[5]='NewRecipeRewardStateChanged'
  ;   upvals: _ENV
  ;   locals: self(0-10)
  0000  GETTABUP  R1 = _ENV[K0('BaseActivityModel')]
  0001  GETTABLE  R1 = R1[K1('_OnStateChanged')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABUP  R1 = _ENV[K2('EventDispatcher')]
  0005  GETTABLE  R1 = R1[K3('DispatchEvent')]
  0006  GETTABUP  R2 = _ENV[K4('EEventType')]
  0007  GETTABLE  R2 = R2[K5('NewRecipeRewardStateChanged')]
  0008  CALL      R1 = call(R1, 0 args, 1 rets)
  0009  RETURN    return R0..R-1
; ---------- proto5 [GetCountdownText] ----------
  ; fn ?  line 44-54 np=1 va=0 ms=7 code=25 consts=12 upvals=1 protos=0
  ;   K[0]=0
  ;   K[1]='GetState'
  ;   K[2]='ActivityState'
  ;   K[3]='Started'
  ;   K[4]='GetNextStateTime'
  ;   K[5]=nil
  ;   K[6]='GM'
  ;   K[7]='GameModel'
  ;   K[8]='GetServerTime'
  ;   K[9]='TimeUtil'
  ;   K[10]='ParseTimeDescription'
  ;   K[11]=2
  ;   upvals: _ENV
  ;   locals: self(0-25), delta(1-25), nextTime(9-16)
  0000  LOADK     R1 = K0 0
  0001  SELF      R3 = R0[K1('GetState')] (self)
  0002  CALL      R2 = call(R2, 1 args, 1 rets)
  0003  GETTABUP  R3 = _ENV[K2('ActivityState')]
  0004  GETTABLE  R3 = R3[K3('Started')]
  0005  EQ        if R0 eq R3   -> -130038
  0006  JMP       (jump)   -> 16
  0007  SELF      R3 = R0[K4('GetNextStateTime')] (self)
  0008  CALL      R2 = call(R2, 1 args, 1 rets)
  0009  EQ        if R1 eq K5(nil)   -> -129776
  0010  JMP       (jump)   -> 16
  0011  GETTABUP  R3 = _ENV[K6('GM')]
  0012  GETTABLE  R3 = R3[K7('GameModel')]
  0013  SELF      R4 = R3[K8('GetServerTime')] (self)
  0014  CALL      R3 = call(R3, 1 args, 1 rets)
  0015  SUB       R1 = R3 sub R2
  0016  GETTABUP  R2 = _ENV[K9('TimeUtil')]
  0017  GETTABLE  R2 = R2[K10('ParseTimeDescription')]
  0018  MOVE      R3 = R0
  0019  LOADK     R4 = K11 2
  0020  LOADBOOL  R5 = false
  0021  LOADBOOL  R6 = false
  0022  TAILCALL  tailcall(R2, 0)
  0023  RETURN    return R2..R1
  0024  RETURN    return R0..R-1
; ---------- proto6 [GetGemRewardCount] ----------
  ; fn ?  line 56-58 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_gemRewardCount'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_gemRewardCount')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto7 [GetRewards] ----------
  ; fn ?  line 60-62 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_rewards'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_rewards')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto8 [_OnItemUnlocked] ----------
  ; fn ?  line 64-88 np=2 va=0 ms=8 code=53 consts=28 upvals=1 protos=1
  ;   K[0]='IsActivityOpen'
  ;   K[1]='GM'
  ;   K[2]='ItemDataModel'
  ;   K[3]='IsDishes'
  ;   K[4]='RewardApi'
  ;   K[5]='AcquireRewardsLogic'
  ;   K[6]='m_rewards'
  ;   K[7]='EPropertySource'
  ;   K[8]='Give'
  ;   K[9]='EBIType'
  ;   K[10]='NewRecipeReward'
  ;   K[11]='ERewardScene'
  ;   K[12]='Other'
  ;   K[13]='recipe'
  ;   K[14]='gem'
  ;   K[15]='m_gemRewardCount'
  ;   K[16]='BIManager'
  ;   K[17]='LogAction'
  ;   K[18]='UIManager'
  ;   K[19]='SetEventLock'
  ;   K[20]='DelayExecuteFunc'
  ;   K[21]='EDurationDefine'
  ;   K[22]='ItemSpread'
  ;   K[23]='GM'
  ;   K[24]='UIManager'
  ;   K[25]='OpenViewWhenIdle'
  ;   K[26]='UIPrefabConfigName'
  ;   K[27]='NewRecipeRewardWindow'
  ;   upvals: _ENV
  ;   locals: self(0-53), itemCode(0-53), info(27-53)
  0000  SELF      R3 = R0[K0('IsActivityOpen')] (self)
  0001  CALL      R2 = call(R2, 1 args, 1 rets)
  0002  TEST      if not R2 then   -> -131067
  0003  JMP       (jump)   -> 5
  0004  RETURN    return R0..R-1
  0005  GETTABUP  R2 = _ENV[K1('GM')]
  0006  GETTABLE  R2 = R2[K2('ItemDataModel')]
  0007  SELF      R3 = R2[K3('IsDishes')] (self)
  0008  MOVE      R4 = R0
  0009  CALL      R2 = call(R2, 1 args, 2 rets)
  0010  TEST      if not R2 then   -> -131059
  0011  JMP       (jump)   -> 13
  0012  RETURN    return R0..R-1
  0013  GETTABUP  R2 = _ENV[K4('RewardApi')]
  0014  GETTABLE  R2 = R2[K5('AcquireRewardsLogic')]
  0015  GETTABLE  R3 = R0[K6('m_rewards')]
  0016  GETTABUP  R4 = _ENV[K7('EPropertySource')]
  0017  GETTABLE  R4 = R4[K8('Give')]
  0018  GETTABUP  R5 = _ENV[K9('EBIType')]
  0019  GETTABLE  R5 = R5[K10('NewRecipeReward')]
  0020  GETTABUP  R6 = _ENV[K11('ERewardScene')]
  0021  GETTABLE  R6 = R6[K12('Other')]
  0022  CALL      R2 = call(R2, 0 args, 4 rets)
  0023  NEWTABLE  R2 = {} (0 items)
  0024  SETTABLE  R2[K13('recipe')] = R1
  0025  GETTABLE  R3 = R0[K15('m_gemRewardCount')]
  0026  SETTABLE  R2[K14('gem')] = R3
  0027  GETTABUP  R3 = _ENV[K1('GM')]
  0028  GETTABLE  R3 = R3[K16('BIManager')]
  0029  SELF      R4 = R3[K17('LogAction')] (self)
  0030  GETTABUP  R5 = _ENV[K9('EBIType')]
  0031  GETTABLE  R5 = R5[K10('NewRecipeReward')]
  0032  MOVE      R6 = R0
  0033  CALL      R3 = call(R3, 0 args, 3 rets)
  0034  GETTABUP  R3 = _ENV[K1('GM')]
  0035  GETTABLE  R3 = R3[K18('UIManager')]
  0036  SELF      R4 = R3[K19('SetEventLock')] (self)
  0037  LOADBOOL  R5 = true
  0038  CALL      R3 = call(R3, 0 args, 2 rets)
  0039  GETTABUP  R3 = _ENV[K20('DelayExecuteFunc')]
  0040  CLOSURE   R4 = closure proto0
  0041  GETTABUP  R5 = _ENV[K21('EDurationDefine')]
  0042  GETTABLE  R5 = R5[K22('ItemSpread')]
  0043  CALL      R3 = call(R3, 0 args, 2 rets)
  0044  GETTABUP  R3 = _ENV[K23('GM')]
  0045  GETTABLE  R3 = R3[K24('UIManager')]
  0046  SELF      R4 = R3[K25('OpenViewWhenIdle')] (self)
  0047  GETTABUP  R5 = _ENV[K26('UIPrefabConfigName')]
  0048  GETTABLE  R5 = R5[K27('NewRecipeRewardWindow')]
  0049  MOVE      R6 = R0
  0050  GETTABLE  R7 = R0[K15('m_gemRewardCount')]
  0051  CALL      R3 = call(R3, 0 args, 4 rets)
  0052  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 83-85 np=0 va=0 ms=3 code=6 consts=3 upvals=1 protos=0
    ;   K[0]='GM'
    ;   K[1]='UIManager'
    ;   K[2]='SetEventLock'
    ;   upvals: _ENV
    0000  GETTABUP  R0 = _ENV[K0('GM')]
    0001  GETTABLE  R0 = R0[K1('UIManager')]
    0002  SELF      R1 = R0[K2('SetEventLock')] (self)
    0003  LOADBOOL  R2 = false
    0004  CALL      R0 = call(R0, 0 args, 2 rets)
    0005  RETURN    return R0..R-1
