# NewRecipeReward_View_NewRecipeRewardView_1430.luac
; fn @NewRecipeRewardView.lua  line 0-0 np=0 va=1 ms=2 code=27 consts=9 upvals=1 protos=7
;   K[0]='NewRecipeRewardView'
;   K[1]='__index'
;   K[2]='Init'
;   K[3]='OnDestroy'
;   K[4]='UpdatePerSecond'
;   K[5]='_CanShow'
;   K[6]='_UpdateContent'
;   K[7]='ToggleInfoContent'
;   K[8]='OnClickInfo'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('NewRecipeRewardView')] = R0
0002  GETTABUP  R0 = _ENV[K0('NewRecipeRewardView')]
0003  GETTABUP  R1 = _ENV[K0('NewRecipeRewardView')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('NewRecipeRewardView')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Init')] = R1
0008  GETTABUP  R0 = _ENV[K0('NewRecipeRewardView')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K3('OnDestroy')] = R1
0011  GETTABUP  R0 = _ENV[K0('NewRecipeRewardView')]
0012  CLOSURE   R1 = closure proto2
0013  SETTABLE  R0[K4('UpdatePerSecond')] = R1
0014  GETTABUP  R0 = _ENV[K0('NewRecipeRewardView')]
0015  CLOSURE   R1 = closure proto3
0016  SETTABLE  R0[K5('_CanShow')] = R1
0017  GETTABUP  R0 = _ENV[K0('NewRecipeRewardView')]
0018  CLOSURE   R1 = closure proto4
0019  SETTABLE  R0[K6('_UpdateContent')] = R1
0020  GETTABUP  R0 = _ENV[K0('NewRecipeRewardView')]
0021  CLOSURE   R1 = closure proto5
0022  SETTABLE  R0[K7('ToggleInfoContent')] = R1
0023  GETTABUP  R0 = _ENV[K0('NewRecipeRewardView')]
0024  CLOSURE   R1 = closure proto6
0025  SETTABLE  R0[K8('OnClickInfo')] = R1
0026  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 6-14 np=4 va=0 ms=8 code=20 consts=14 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='GM'
  ;   K[2]='ActivityManager'
  ;   K[3]='GetModel'
  ;   K[4]='ActivityType'
  ;   K[5]='NewRecipeReward'
  ;   K[6]='recipeName'
  ;   K[7]='m_dishDescGo'
  ;   K[8]='m_window'
  ;   K[9]='_UpdateContent'
  ;   K[10]='EventDispatcher'
  ;   K[11]='AddListener'
  ;   K[12]='EEventType'
  ;   K[13]='NewRecipeRewardStateChanged'
  ;   upvals: _ENV
  ;   locals: self(0-20), recipeName(0-20), dishDescGo(0-20), window(0-20)
  0000  GETTABUP  R4 = _ENV[K1('GM')]
  0001  GETTABLE  R4 = R4[K2('ActivityManager')]
  0002  SELF      R5 = R4[K3('GetModel')] (self)
  0003  GETTABUP  R6 = _ENV[K4('ActivityType')]
  0004  GETTABLE  R6 = R6[K5('NewRecipeReward')]
  0005  CALL      R4 = call(R4, 1 args, 2 rets)
  0006  SETTABLE  R0[K0('m_model')] = R4
  0007  SETTABLE  R0[K6('recipeName')] = R1
  0008  SETTABLE  R0[K7('m_dishDescGo')] = R2
  0009  SETTABLE  R0[K8('m_window')] = R3
  0010  SELF      R5 = R0[K9('_UpdateContent')] (self)
  0011  CALL      R4 = call(R4, 0 args, 1 rets)
  0012  GETTABUP  R4 = _ENV[K10('EventDispatcher')]
  0013  GETTABLE  R4 = R4[K11('AddListener')]
  0014  GETTABUP  R5 = _ENV[K12('EEventType')]
  0015  GETTABLE  R5 = R5[K13('NewRecipeRewardStateChanged')]
  0016  MOVE      R6 = R0
  0017  GETTABLE  R7 = R0[K9('_UpdateContent')]
  0018  CALL      R4 = call(R4, 0 args, 3 rets)
  0019  RETURN    return R0..R-1
; ---------- proto1 [OnDestroy] ----------
  ; fn ?  line 16-18 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
; ---------- proto2 [UpdatePerSecond] ----------
  ; fn ?  line 20-26 np=1 va=0 ms=4 code=10 consts=4 upvals=0 protos=0
  ;   K[0]='m_model'
  ;   K[1]='m_countdownText'
  ;   K[2]='text'
  ;   K[3]='GetCountdownText'
  ;   locals: self(0-10)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  TEST      if not R1 then   -> -131068
  0002  JMP       (jump)   -> 4
  0003  RETURN    return R0..R-1
  0004  GETTABLE  R1 = R0[K1('m_countdownText')]
  0005  GETTABLE  R2 = R0[K0('m_model')]
  0006  SELF      R3 = R2[K3('GetCountdownText')] (self)
  0007  CALL      R2 = call(R2, 1 args, 1 rets)
  0008  SETTABLE  R1[K2('text')] = R2
  0009  RETURN    return R0..R-1
; ---------- proto3 [_CanShow] ----------
  ; fn ?  line 28-32 np=1 va=0 ms=4 code=16 consts=6 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='ItemDataModel'
  ;   K[2]='IsUnlocked'
  ;   K[3]='recipeName'
  ;   K[4]='m_model'
  ;   K[5]='IsActivityOpen'
  ;   upvals: _ENV
  ;   locals: self(0-16), bUnlocked(5-16), bOpen(8-16)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('ItemDataModel')]
  0002  SELF      R2 = R1[K2('IsUnlocked')] (self)
  0003  GETTABLE  R3 = R0[K3('recipeName')]
  0004  CALL      R1 = call(R1, 1 args, 2 rets)
  0005  GETTABLE  R2 = R0[K4('m_model')]
  0006  SELF      R3 = R2[K5('IsActivityOpen')] (self)
  0007  CALL      R2 = call(R2, 1 args, 1 rets)
  0008  TEST      if not R1 then   -> -131061
  0009  JMP       (jump)   -> 12
  0010  MOVE      R3 = R0
  0011  JMP       (jump)   -> 14
  0012  LOADBOOL  R3 = false
  0013  LOADBOOL  R3 = true
  0014  RETURN    return R3..R2
  0015  RETURN    return R0..R-1
; ---------- proto4 [_UpdateContent] ----------
  ; fn ?  line 34-43 np=1 va=0 ms=6 code=24 consts=13 upvals=1 protos=0
  ;   K[0]='_CanShow'
  ;   K[1]='UIUtil'
  ;   K[2]='SetActive'
  ;   K[3]='gameObject'
  ;   K[4]='m_gemCountText'
  ;   K[5]='text'
  ;   K[6]='x'
  ;   K[7]='m_model'
  ;   K[8]='GetGemRewardCount'
  ;   K[9]='UpdatePerSecond'
  ;   K[10]='ToggleInfoContent'
  ;   K[11]='m_window'
  ;   K[12]='bShowingSkip'
  ;   upvals: _ENV
  ;   locals: self(0-24), bShow(2-24)
  0000  SELF      R2 = R0[K0('_CanShow')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  GETTABUP  R2 = _ENV[K1('UIUtil')]
  0003  GETTABLE  R2 = R2[K2('SetActive')]
  0004  GETTABLE  R3 = R0[K3('gameObject')]
  0005  MOVE      R4 = R0
  0006  CALL      R2 = call(R2, 0 args, 2 rets)
  0007  TEST      if not R1 then   -> -131063
  0008  JMP       (jump)   -> 18
  0009  GETTABLE  R2 = R0[K4('m_gemCountText')]
  0010  LOADK     R3 = K6 'x'
  0011  GETTABLE  R4 = R0[K7('m_model')]
  0012  SELF      R5 = R4[K8('GetGemRewardCount')] (self)
  0013  CALL      R4 = call(R4, 1 args, 1 rets)
  0014  CONCAT    R3 = concat(R3..R3)
  0015  SETTABLE  R2[K5('text')] = R3
  0016  SELF      R3 = R0[K9('UpdatePerSecond')] (self)
  0017  CALL      R2 = call(R2, 0 args, 1 rets)
  0018  SELF      R3 = R0[K10('ToggleInfoContent')] (self)
  0019  GETTABLE  R4 = R0[K11('m_window')]
  0020  GETTABLE  R4 = R4[K12('bShowingSkip')]
  0021  NOT       R4 = not R0
  0022  CALL      R2 = call(R2, 0 args, 2 rets)
  0023  RETURN    return R0..R-1
; ---------- proto5 [ToggleInfoContent] ----------
  ; fn ?  line 45-49 np=2 va=0 ms=6 code=17 consts=5 upvals=1 protos=0
  ;   K[0]='_CanShow'
  ;   K[1]='UIUtil'
  ;   K[2]='SetActive'
  ;   K[3]='m_infoGo'
  ;   K[4]='m_dishDescGo'
  ;   upvals: _ENV
  ;   locals: self(0-17), bVisible(0-17), bShow(2-17)
  0000  SELF      R3 = R0[K0('_CanShow')] (self)
  0001  CALL      R2 = call(R2, 1 args, 1 rets)
  0002  GETTABUP  R3 = _ENV[K1('UIUtil')]
  0003  GETTABLE  R3 = R3[K2('SetActive')]
  0004  GETTABLE  R4 = R0[K3('m_infoGo')]
  0005  TESTSET   if R0 then R5   -> -130553
  0006  JMP       (jump)   -> 8
  0007  MOVE      R5 = R0
  0008  CALL      R3 = call(R3, 0 args, 2 rets)
  0009  GETTABUP  R3 = _ENV[K1('UIUtil')]
  0010  GETTABLE  R3 = R3[K2('SetActive')]
  0011  GETTABLE  R4 = R0[K4('m_dishDescGo')]
  0012  TESTSET   if R0 then R5   -> -130546
  0013  JMP       (jump)   -> 15
  0014  NOT       R5 = not R0
  0015  CALL      R3 = call(R3, 0 args, 2 rets)
  0016  RETURN    return R0..R-1
; ---------- proto6 [OnClickInfo] ----------
  ; fn ?  line 51-53 np=1 va=0 ms=4 code=7 consts=5 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='UIManager'
  ;   K[2]='OpenView'
  ;   K[3]='UIPrefabConfigName'
  ;   K[4]='NewRecipeRewardHelpWindow'
  ;   upvals: _ENV
  ;   locals: self(0-7)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('UIManager')]
  0002  SELF      R2 = R1[K2('OpenView')] (self)
  0003  GETTABUP  R3 = _ENV[K3('UIPrefabConfigName')]
  0004  GETTABLE  R3 = R3[K4('NewRecipeRewardHelpWindow')]
  0005  CALL      R1 = call(R1, 0 args, 2 rets)
  0006  RETURN    return R0..R-1
