# RecipeCollectActivity_View_RecipeCollectActivityTrayCell_1904.luac
; fn @RecipeCollectActivityTrayCell.lua  line 0-0 np=0 va=1 ms=2 code=39 consts=13 upvals=1 protos=11
;   K[0]='RecipeCollectActivityTrayCell'
;   K[1]='__index'
;   K[2]='Init'
;   K[3]='_InitModelData'
;   K[4]='_InitView'
;   K[5]='GetStageCell'
;   K[6]='GetModel'
;   K[7]='OnBtnClicked'
;   K[8]='HideContent'
;   K[9]='GetContentRectTransform'
;   K[10]='SetSweepLightVisible'
;   K[11]='OnHit'
;   K[12]='OnHitSpeedUp'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('RecipeCollectActivityTrayCell')] = R0
0002  GETTABUP  R0 = _ENV[K0('RecipeCollectActivityTrayCell')]
0003  GETTABUP  R1 = _ENV[K0('RecipeCollectActivityTrayCell')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('RecipeCollectActivityTrayCell')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Init')] = R1
0008  GETTABUP  R0 = _ENV[K0('RecipeCollectActivityTrayCell')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K3('_InitModelData')] = R1
0011  GETTABUP  R0 = _ENV[K0('RecipeCollectActivityTrayCell')]
0012  CLOSURE   R1 = closure proto2
0013  SETTABLE  R0[K4('_InitView')] = R1
0014  GETTABUP  R0 = _ENV[K0('RecipeCollectActivityTrayCell')]
0015  CLOSURE   R1 = closure proto3
0016  SETTABLE  R0[K5('GetStageCell')] = R1
0017  GETTABUP  R0 = _ENV[K0('RecipeCollectActivityTrayCell')]
0018  CLOSURE   R1 = closure proto4
0019  SETTABLE  R0[K6('GetModel')] = R1
0020  GETTABUP  R0 = _ENV[K0('RecipeCollectActivityTrayCell')]
0021  CLOSURE   R1 = closure proto5
0022  SETTABLE  R0[K7('OnBtnClicked')] = R1
0023  GETTABUP  R0 = _ENV[K0('RecipeCollectActivityTrayCell')]
0024  CLOSURE   R1 = closure proto6
0025  SETTABLE  R0[K8('HideContent')] = R1
0026  GETTABUP  R0 = _ENV[K0('RecipeCollectActivityTrayCell')]
0027  CLOSURE   R1 = closure proto7
0028  SETTABLE  R0[K9('GetContentRectTransform')] = R1
0029  GETTABUP  R0 = _ENV[K0('RecipeCollectActivityTrayCell')]
0030  CLOSURE   R1 = closure proto8
0031  SETTABLE  R0[K10('SetSweepLightVisible')] = R1
0032  GETTABUP  R0 = _ENV[K0('RecipeCollectActivityTrayCell')]
0033  CLOSURE   R1 = closure proto9
0034  SETTABLE  R0[K11('OnHit')] = R1
0035  GETTABUP  R0 = _ENV[K0('RecipeCollectActivityTrayCell')]
0036  CLOSURE   R1 = closure proto10
0037  SETTABLE  R0[K12('OnHitSpeedUp')] = R1
0038  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 27-34 np=4 va=0 ms=6 code=8 consts=5 upvals=0 protos=0
  ;   K[0]='m_stageCell'
  ;   K[1]='m_tray'
  ;   K[2]='m_bRecipeUnlock'
  ;   K[3]='_InitModelData'
  ;   K[4]='_InitView'
  ;   locals: self(0-8), stageCell(0-8), tray(0-8), bRecipeUnlock(0-8)
  0000  SETTABLE  R0[K0('m_stageCell')] = R1
  0001  SETTABLE  R0[K1('m_tray')] = R2
  0002  SETTABLE  R0[K2('m_bRecipeUnlock')] = R3
  0003  SELF      R5 = R0[K3('_InitModelData')] (self)
  0004  CALL      R4 = call(R4, 0 args, 1 rets)
  0005  SELF      R5 = R0[K4('_InitView')] (self)
  0006  CALL      R4 = call(R4, 0 args, 1 rets)
  0007  RETURN    return R0..R-1
; ---------- proto1 [_InitModelData] ----------
  ; fn ?  line 36-42 np=1 va=0 ms=8 code=43 consts=12 upvals=0 protos=0
  ;   K[0]='GetModel'
  ;   K[1]='GetStageCell'
  ;   K[2]='GetStage'
  ;   K[3]='m_tray'
  ;   K[4]='m_bIsOccupied'
  ;   K[5]='IsTrayOccupied'
  ;   K[6]='m_bRecipeUnlock'
  ;   K[7]='IsNewRecipeUnlock'
  ;   K[8]='m_bNewLabel'
  ;   K[9]='IsMainWindowNewRecipe'
  ;   K[10]='m_content'
  ;   K[11]='GetTrayContent'
  ;   locals: self(0-43), model(2-43), stage(7-43), tray(7-43)
  0000  SELF      R2 = R0[K0('GetModel')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  SELF      R3 = R0[K1('GetStageCell')] (self)
  0003  CALL      R2 = call(R2, 1 args, 1 rets)
  0004  SELF      R3 = R2[K2('GetStage')] (self)
  0005  CALL      R2 = call(R2, 1 args, 1 rets)
  0006  GETTABLE  R3 = R0[K3('m_tray')]
  0007  SELF      R5 = R1[K5('IsTrayOccupied')] (self)
  0008  MOVE      R6 = R0
  0009  MOVE      R7 = R0
  0010  CALL      R4 = call(R4, 1 args, 3 rets)
  0011  TEST      if not R4 then   -> -131059
  0012  JMP       (jump)   -> 24
  0013  GETTABLE  R4 = R0[K6('m_bRecipeUnlock')]
  0014  TEST      if not R4 then   -> -131056
  0015  JMP       (jump)   -> 23
  0016  SELF      R5 = R1[K7('IsNewRecipeUnlock')] (self)
  0017  MOVE      R6 = R0
  0018  MOVE      R7 = R0
  0019  CALL      R4 = call(R4, 1 args, 3 rets)
  0020  NOT       R4 = not R0
  0021  JMP       (jump)   -> 24
  0022  LOADBOOL  R4 = false
  0023  LOADBOOL  R4 = true
  0024  SETTABLE  R0[K4('m_bIsOccupied')] = R4
  0025  GETTABLE  R4 = R0[K4('m_bIsOccupied')]
  0026  TEST      if not R4 then   -> -131044
  0027  JMP       (jump)   -> 36
  0028  SELF      R5 = R1[K9('IsMainWindowNewRecipe')] (self)
  0029  MOVE      R6 = R0
  0030  MOVE      R7 = R0
  0031  CALL      R4 = call(R4, 1 args, 3 rets)
  0032  TEST      if not R4 then   -> -131038
  0033  JMP       (jump)   -> 36
  0034  GETTABLE  R4 = R0[K6('m_bRecipeUnlock')]
  0035  NOT       R4 = not R0
  0036  SETTABLE  R0[K8('m_bNewLabel')] = R4
  0037  SELF      R5 = R1[K11('GetTrayContent')] (self)
  0038  MOVE      R6 = R0
  0039  MOVE      R7 = R0
  0040  CALL      R4 = call(R4, 1 args, 3 rets)
  0041  SETTABLE  R0[K10('m_content')] = R4
  0042  RETURN    return R0..R-1
; ---------- proto2 [_InitView] ----------
  ; fn ?  line 44-54 np=1 va=0 ms=6 code=46 consts=17 upvals=1 protos=0
  ;   K[0]='UIUtil'
  ;   K[1]='SetActive'
  ;   K[2]='m_lightGo'
  ;   K[3]='m_bIsOccupied'
  ;   K[4]='m_dishGo'
  ;   K[5]='m_checkGo'
  ;   K[6]='m_trayBottomGo'
  ;   K[7]='m_trayTopGo'
  ;   K[8]='m_newGo'
  ;   K[9]='m_bNewLabel'
  ;   K[10]='SpriteUtil'
  ;   K[11]='SetImage'
  ;   K[12]='m_dishImage'
  ;   K[13]='GM'
  ;   K[14]='ItemDataModel'
  ;   K[15]='GetSpriteName'
  ;   K[16]='m_content'
  ;   upvals: _ENV
  ;   locals: self(0-46)
  0000  GETTABUP  R1 = _ENV[K0('UIUtil')]
  0001  GETTABLE  R1 = R1[K1('SetActive')]
  0002  GETTABLE  R2 = R0[K2('m_lightGo')]
  0003  GETTABLE  R3 = R0[K3('m_bIsOccupied')]
  0004  CALL      R1 = call(R1, 0 args, 2 rets)
  0005  GETTABUP  R1 = _ENV[K0('UIUtil')]
  0006  GETTABLE  R1 = R1[K1('SetActive')]
  0007  GETTABLE  R2 = R0[K4('m_dishGo')]
  0008  GETTABLE  R3 = R0[K3('m_bIsOccupied')]
  0009  CALL      R1 = call(R1, 0 args, 2 rets)
  0010  GETTABUP  R1 = _ENV[K0('UIUtil')]
  0011  GETTABLE  R1 = R1[K1('SetActive')]
  0012  GETTABLE  R2 = R0[K5('m_checkGo')]
  0013  GETTABLE  R3 = R0[K3('m_bIsOccupied')]
  0014  CALL      R1 = call(R1, 0 args, 2 rets)
  0015  GETTABUP  R1 = _ENV[K0('UIUtil')]
  0016  GETTABLE  R1 = R1[K1('SetActive')]
  0017  GETTABLE  R2 = R0[K6('m_trayBottomGo')]
  0018  GETTABLE  R3 = R0[K3('m_bIsOccupied')]
  0019  NOT       R3 = not R0
  0020  CALL      R1 = call(R1, 0 args, 2 rets)
  0021  GETTABUP  R1 = _ENV[K0('UIUtil')]
  0022  GETTABLE  R1 = R1[K1('SetActive')]
  0023  GETTABLE  R2 = R0[K7('m_trayTopGo')]
  0024  GETTABLE  R3 = R0[K3('m_bIsOccupied')]
  0025  NOT       R3 = not R0
  0026  CALL      R1 = call(R1, 0 args, 2 rets)
  0027  GETTABUP  R1 = _ENV[K0('UIUtil')]
  0028  GETTABLE  R1 = R1[K1('SetActive')]
  0029  GETTABLE  R2 = R0[K8('m_newGo')]
  0030  GETTABLE  R3 = R0[K9('m_bNewLabel')]
  0031  CALL      R1 = call(R1, 0 args, 2 rets)
  0032  GETTABLE  R1 = R0[K3('m_bIsOccupied')]
  0033  TEST      if not R1 then   -> -131037
  0034  JMP       (jump)   -> 45
  0035  GETTABUP  R1 = _ENV[K10('SpriteUtil')]
  0036  GETTABLE  R1 = R1[K11('SetImage')]
  0037  GETTABLE  R2 = R0[K12('m_dishImage')]
  0038  GETTABUP  R3 = _ENV[K13('GM')]
  0039  GETTABLE  R3 = R3[K14('ItemDataModel')]
  0040  SELF      R4 = R3[K15('GetSpriteName')] (self)
  0041  GETTABLE  R5 = R0[K16('m_content')]
  0042  CALL      R3 = call(R3, 1 args, 2 rets)
  0043  LOADBOOL  R4 = true
  0044  CALL      R1 = call(R1, 0 args, 3 rets)
  0045  RETURN    return R0..R-1
; ---------- proto3 [GetStageCell] ----------
  ; fn ?  line 56-58 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_stageCell'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_stageCell')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto4 [GetModel] ----------
  ; fn ?  line 60-62 np=1 va=0 ms=3 code=6 consts=2 upvals=0 protos=0
  ;   K[0]='GetStageCell'
  ;   K[1]='GetModel'
  ;   locals: self(0-6)
  0000  SELF      R2 = R0[K0('GetStageCell')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  SELF      R2 = R1[K1('GetModel')] (self)
  0003  TAILCALL  tailcall(R1, 0)
  0004  RETURN    return R1..R0
  0005  RETURN    return R0..R-1
; ---------- proto5 [OnBtnClicked] ----------
  ; fn ?  line 64-72 np=1 va=0 ms=7 code=27 consts=17 upvals=1 protos=0
  ;   K[0]='m_bIsOccupied'
  ;   K[1]='ItemDetailWindow'
  ;   K[2]='Open'
  ;   K[3]='m_content'
  ;   K[4]='ItemDetailWindowMode'
  ;   K[5]='Normal'
  ;   K[6]='EItemDetailWindowRefer'
  ;   K[7]='RecipeColllect'
  ;   K[8]='GetStageCell'
  ;   K[9]='GetWindow'
  ;   K[10]='ShowDescTip'
  ;   K[11]='GM'
  ;   K[12]='GameTextModel'
  ;   K[13]='GetText'
  ;   K[14]='recipecollect_text_4'
  ;   K[15]='m_tipRoot'
  ;   K[16]='position'
  ;   upvals: _ENV
  ;   locals: self(0-27)
  0000  GETTABLE  R1 = R0[K0('m_bIsOccupied')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 12
  0003  GETTABUP  R1 = _ENV[K1('ItemDetailWindow')]
  0004  GETTABLE  R1 = R1[K2('Open')]
  0005  GETTABLE  R2 = R0[K3('m_content')]
  0006  GETTABUP  R3 = _ENV[K4('ItemDetailWindowMode')]
  0007  GETTABLE  R3 = R3[K5('Normal')]
  0008  GETTABUP  R4 = _ENV[K6('EItemDetailWindowRefer')]
  0009  GETTABLE  R4 = R4[K7('RecipeColllect')]
  0010  CALL      R1 = call(R1, 0 args, 3 rets)
  0011  JMP       (jump)   -> 26
  0012  SELF      R2 = R0[K8('GetStageCell')] (self)
  0013  CALL      R1 = call(R1, 1 args, 1 rets)
  0014  SELF      R2 = R1[K9('GetWindow')] (self)
  0015  CALL      R1 = call(R1, 1 args, 1 rets)
  0016  SELF      R2 = R1[K10('ShowDescTip')] (self)
  0017  GETTABUP  R3 = _ENV[K11('GM')]
  0018  GETTABLE  R3 = R3[K12('GameTextModel')]
  0019  SELF      R4 = R3[K13('GetText')] (self)
  0020  LOADK     R5 = K14 'recipecollect_text_4'
  0021  GETTABLE  R6 = R0[K3('m_content')]
  0022  CALL      R3 = call(R3, 1 args, 3 rets)
  0023  GETTABLE  R4 = R0[K15('m_tipRoot')]
  0024  GETTABLE  R4 = R4[K16('position')]
  0025  CALL      R1 = call(R1, 0 args, 3 rets)
  0026  RETURN    return R0..R-1
; ---------- proto6 [HideContent] ----------
  ; fn ?  line 74-77 np=1 va=0 ms=4 code=11 consts=4 upvals=1 protos=0
  ;   K[0]='UIUtil'
  ;   K[1]='SetActive'
  ;   K[2]='m_contentGo'
  ;   K[3]='m_lightGo'
  ;   upvals: _ENV
  ;   locals: self(0-11)
  0000  GETTABUP  R1 = _ENV[K0('UIUtil')]
  0001  GETTABLE  R1 = R1[K1('SetActive')]
  0002  GETTABLE  R2 = R0[K2('m_contentGo')]
  0003  LOADBOOL  R3 = false
  0004  CALL      R1 = call(R1, 0 args, 2 rets)
  0005  GETTABUP  R1 = _ENV[K0('UIUtil')]
  0006  GETTABLE  R1 = R1[K1('SetActive')]
  0007  GETTABLE  R2 = R0[K3('m_lightGo')]
  0008  LOADBOOL  R3 = false
  0009  CALL      R1 = call(R1, 0 args, 2 rets)
  0010  RETURN    return R0..R-1
; ---------- proto7 [GetContentRectTransform] ----------
  ; fn ?  line 79-81 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_contentRectTransform'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_contentRectTransform')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto8 [SetSweepLightVisible] ----------
  ; fn ?  line 84-86 np=2 va=0 ms=5 code=6 consts=3 upvals=1 protos=0
  ;   K[0]='UIUtil'
  ;   K[1]='SetActive'
  ;   K[2]='m_sweepLightGo'
  ;   upvals: _ENV
  ;   locals: self(0-6), bVisible(0-6)
  0000  GETTABUP  R2 = _ENV[K0('UIUtil')]
  0001  GETTABLE  R2 = R2[K1('SetActive')]
  0002  GETTABLE  R3 = R0[K2('m_sweepLightGo')]
  0003  MOVE      R4 = R0
  0004  CALL      R2 = call(R2, 0 args, 2 rets)
  0005  RETURN    return R0..R-1
; ---------- proto9 [OnHit] ----------
  ; fn ?  line 88-90 np=1 va=0 ms=2 code=3 consts=3 upvals=0 protos=0
  ;   K[0]='m_animator'
  ;   K[1]='enabled'
  ;   K[2]=true
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_animator')]
  0001  SETTABLE  R1[K1('enabled')] = K2(true)
  0002  RETURN    return R0..R-1
; ---------- proto10 [OnHitSpeedUp] ----------
  ; fn ?  line 92-94 np=1 va=0 ms=4 code=5 consts=3 upvals=0 protos=0
  ;   K[0]='m_animator'
  ;   K[1]='SetTrigger'
  ;   K[2]='SpeedUp'
  ;   locals: self(0-5)
  0000  GETTABLE  R1 = R0[K0('m_animator')]
  0001  SELF      R2 = R1[K1('SetTrigger')] (self)
  0002  LOADK     R3 = K2 'SpeedUp'
  0003  CALL      R1 = call(R1, 0 args, 2 rets)
  0004  RETURN    return R0..R-1
