# UI_Window_Inventory_InventoryProducerCell_602.luac
; fn @InventoryProducerCell.lua  line 0-0 np=0 va=1 ms=2 code=20 consts=5 upvals=1 protos=3
;   K[0]='InventoryProducerEmptyCell'
;   K[1]='__index'
;   K[2]='Init'
;   K[3]='OnClick'
;   K[4]='InventoryProducerLockedCell'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('InventoryProducerEmptyCell')] = R0
0002  GETTABUP  R0 = _ENV[K0('InventoryProducerEmptyCell')]
0003  GETTABUP  R1 = _ENV[K0('InventoryProducerEmptyCell')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('InventoryProducerEmptyCell')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Init')] = R1
0008  GETTABUP  R0 = _ENV[K0('InventoryProducerEmptyCell')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K3('OnClick')] = R1
0011  NEWTABLE  R0 = {} (0 items)
0012  SETTABUP  _ENV[K4('InventoryProducerLockedCell')] = R0
0013  GETTABUP  R0 = _ENV[K4('InventoryProducerLockedCell')]
0014  GETTABUP  R1 = _ENV[K4('InventoryProducerLockedCell')]
0015  SETTABLE  R0[K1('__index')] = R1
0016  GETTABUP  R0 = _ENV[K4('InventoryProducerLockedCell')]
0017  CLOSURE   R1 = closure proto2
0018  SETTABLE  R0[K2('Init')] = R1
0019  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 4-11 np=2 va=0 ms=7 code=23 consts=10 upvals=1 protos=0
  ;   K[0]='m_itemCode'
  ;   K[1]='GM'
  ;   K[2]='ItemDataModel'
  ;   K[3]='GetSpriteName'
  ;   K[4]='m_itemImage'
  ;   K[5]='enabled'
  ;   K[6]=false
  ;   K[7]='m_itemMask'
  ;   K[8]='SpriteUtil'
  ;   K[9]='SetImage'
  ;   upvals: _ENV
  ;   locals: self(0-23), itemCode(0-23), spriteName(6-23)
  0000  SETTABLE  R0[K0('m_itemCode')] = R1
  0001  GETTABUP  R2 = _ENV[K1('GM')]
  0002  GETTABLE  R2 = R2[K2('ItemDataModel')]
  0003  SELF      R3 = R2[K3('GetSpriteName')] (self)
  0004  GETTABLE  R4 = R0[K0('m_itemCode')]
  0005  CALL      R2 = call(R2, 1 args, 2 rets)
  0006  GETTABLE  R3 = R0[K4('m_itemImage')]
  0007  SETTABLE  R3[K5('enabled')] = K6(false)
  0008  GETTABLE  R3 = R0[K7('m_itemMask')]
  0009  SETTABLE  R3[K5('enabled')] = K6(false)
  0010  GETTABUP  R3 = _ENV[K8('SpriteUtil')]
  0011  GETTABLE  R3 = R3[K9('SetImage')]
  0012  GETTABLE  R4 = R0[K4('m_itemImage')]
  0013  MOVE      R5 = R0
  0014  LOADBOOL  R6 = true
  0015  CALL      R3 = call(R3, 0 args, 3 rets)
  0016  GETTABUP  R3 = _ENV[K8('SpriteUtil')]
  0017  GETTABLE  R3 = R3[K9('SetImage')]
  0018  GETTABLE  R4 = R0[K7('m_itemMask')]
  0019  MOVE      R5 = R0
  0020  LOADBOOL  R6 = true
  0021  CALL      R3 = call(R3, 0 args, 3 rets)
  0022  RETURN    return R0..R-1
; ---------- proto1 [OnClick] ----------
  ; fn ?  line 13-19 np=1 va=0 ms=4 code=19 consts=8 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='ItemDataModel'
  ;   K[2]='IsUnlocked'
  ;   K[3]='m_itemCode'
  ;   K[4]='UIManager'
  ;   K[5]='ShowPromptWithKey'
  ;   K[6]='pd_inventory_tip1'
  ;   K[7]='pd_inventory_tip2'
  ;   upvals: _ENV
  ;   locals: self(0-19)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('ItemDataModel')]
  0002  SELF      R2 = R1[K2('IsUnlocked')] (self)
  0003  GETTABLE  R3 = R0[K3('m_itemCode')]
  0004  CALL      R1 = call(R1, 1 args, 2 rets)
  0005  TEST      if not R1 then   -> -131065
  0006  JMP       (jump)   -> 13
  0007  GETTABUP  R1 = _ENV[K0('GM')]
  0008  GETTABLE  R1 = R1[K4('UIManager')]
  0009  SELF      R2 = R1[K5('ShowPromptWithKey')] (self)
  0010  LOADK     R3 = K6 'pd_inventory_tip1'
  0011  CALL      R1 = call(R1, 0 args, 2 rets)
  0012  JMP       (jump)   -> 18
  0013  GETTABUP  R1 = _ENV[K0('GM')]
  0014  GETTABLE  R1 = R1[K4('UIManager')]
  0015  SELF      R2 = R1[K5('ShowPromptWithKey')] (self)
  0016  LOADK     R3 = K7 'pd_inventory_tip2'
  0017  CALL      R1 = call(R1, 0 args, 2 rets)
  0018  RETURN    return R0..R-1
; ---------- proto2 [Init] ----------
  ; fn ?  line 24-26 np=2 va=0 ms=7 code=9 consts=6 upvals=1 protos=0
  ;   K[0]='m_descText'
  ;   K[1]='text'
  ;   K[2]='GM'
  ;   K[3]='GameTextModel'
  ;   K[4]='GetText'
  ;   K[5]='pd_inventory_lock_desc'
  ;   upvals: _ENV
  ;   locals: self(0-9), unlockDay(0-9)
  0000  GETTABLE  R2 = R0[K0('m_descText')]
  0001  GETTABUP  R3 = _ENV[K2('GM')]
  0002  GETTABLE  R3 = R3[K3('GameTextModel')]
  0003  SELF      R4 = R3[K4('GetText')] (self)
  0004  LOADK     R5 = K5 'pd_inventory_lock_desc'
  0005  MOVE      R6 = R0
  0006  CALL      R3 = call(R3, 1 args, 3 rets)
  0007  SETTABLE  R2[K1('text')] = R3
  0008  RETURN    return R0..R-1
