# UI_Window_Inventory_InventoryRow_598.luac
; fn @InventoryRow.lua  line 0-0 np=0 va=1 ms=3 code=28 consts=10 upvals=1 protos=7
;   K[0]='InventoryRow'
;   K[1]='__index'
;   K[2]='Init'
;   K[3]='SetCell'
;   K[4]='ResetPos'
;   K[5]=166
;   K[6]='_SetPosition'
;   K[7]='GetCell'
;   K[8]='UpdateOrderRequireState'
;   K[9]='HasInited'
;   upvals: _ENV
;   locals: TILE_SIZE(15-28)
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('InventoryRow')] = R0
0002  GETTABUP  R0 = _ENV[K0('InventoryRow')]
0003  GETTABUP  R1 = _ENV[K0('InventoryRow')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('InventoryRow')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Init')] = R1
0008  GETTABUP  R0 = _ENV[K0('InventoryRow')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K3('SetCell')] = R1
0011  GETTABUP  R0 = _ENV[K0('InventoryRow')]
0012  CLOSURE   R1 = closure proto2
0013  SETTABLE  R0[K4('ResetPos')] = R1
0014  LOADK     R0 = K5 166
0015  GETTABUP  R1 = _ENV[K0('InventoryRow')]
0016  CLOSURE   R2 = closure proto3
0017  SETTABLE  R1[K6('_SetPosition')] = R2
0018  GETTABUP  R1 = _ENV[K0('InventoryRow')]
0019  CLOSURE   R2 = closure proto4
0020  SETTABLE  R1[K7('GetCell')] = R2
0021  GETTABUP  R1 = _ENV[K0('InventoryRow')]
0022  CLOSURE   R2 = closure proto5
0023  SETTABLE  R1[K8('UpdateOrderRequireState')] = R2
0024  GETTABUP  R1 = _ENV[K0('InventoryRow')]
0025  CLOSURE   R2 = closure proto6
0026  SETTABLE  R1[K9('HasInited')] = R2
0027  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 4-23 np=2 va=0 ms=9 code=28 consts=15 upvals=1 protos=0
  ;   K[0]='window'
  ;   K[1]='m_itemCellGos'
  ;   K[2]='m_itemCells'
  ;   K[3]='m_mapItemCellPool'
  ;   K[4]=0
  ;   K[5]='pairs'
  ;   K[6]='EInventoryCellCode'
  ;   K[7]='m_itemCellCodes'
  ;   K[8]='m_boardSprite'
  ;   K[9]='sortingOrder'
  ;   K[10]='InventoryWindow'
  ;   K[11]='itemViewSortingOrderNormal'
  ;   K[12]=2
  ;   K[13]='m_bInited'
  ;   K[14]=true
  ;   upvals: _ENV
  ;   locals: self(0-28), window(0-28), (for generator)(13-19), (for state)(13-19), (for control)(13-19), _(14-17), code(14-17)
  0000  SETTABLE  R0[K0('window')] = R1
  0001  NEWTABLE  R2 = {} (0 items)
  0002  SETTABLE  R0[K1('m_itemCellGos')] = R2
  0003  NEWTABLE  R2 = {} (0 items)
  0004  SETTABLE  R0[K2('m_itemCells')] = R2
  0005  NEWTABLE  R2 = {} (0 items)
  0006  SETTABLE  R0[K3('m_mapItemCellPool')] = R2
  0007  GETTABLE  R2 = R0[K3('m_mapItemCellPool')]
  0008  NEWTABLE  R3 = {} (0 items)
  0009  SETTABLE  R2[K4(0)] = R3
  0010  GETTABUP  R2 = _ENV[K5('pairs')]
  0011  GETTABUP  R3 = _ENV[K6('EInventoryCellCode')]
  0012  CALL      R2 = call(R2, 3 args, 1 rets)
  0013  JMP       (jump)   -> 17
  0014  GETTABLE  R7 = R0[K3('m_mapItemCellPool')]
  0015  NEWTABLE  R8 = {} (0 items)
  0016  SETTABLE  R7[R6] = R8
  0017  TFORCALL  tforcall R2
  0018  TFORLOOP  tforloop R4(sBx=-5)   -> 14
  0019  NEWTABLE  R2 = {} (0 items)
  0020  SETTABLE  R0[K7('m_itemCellCodes')] = R2
  0021  GETTABLE  R2 = R0[K8('m_boardSprite')]
  0022  GETTABUP  R3 = _ENV[K10('InventoryWindow')]
  0023  GETTABLE  R3 = R3[K11('itemViewSortingOrderNormal')]
  0024  SUB       R3 = K12(2) sub R3
  0025  SETTABLE  R2[K9('sortingOrder')] = R3
  0026  SETTABLE  R0[K13('m_bInited')] = K14(true)
  0027  RETURN    return R0..R-1
; ---------- proto1 [SetCell] ----------
  ; fn ?  line 26-75 np=4 va=0 ms=12 code=184 consts=41 upvals=1 protos=0
  ;   K[0]='m_itemCellGos'
  ;   K[1]=nil
  ;   K[2]='m_itemCellCodes'
  ;   K[3]='m_mapItemCellPool'
  ;   K[4]='UIUtil'
  ;   K[5]='SetActive'
  ;   K[6]='table'
  ;   K[7]='insert'
  ;   K[8]='Table'
  ;   K[9]='IsEmpty'
  ;   K[10]=1
  ;   K[11]='remove'
  ;   K[12]='EInventoryCellCode'
  ;   K[13]='Empty'
  ;   K[14]='Object'
  ;   K[15]='Instantiate'
  ;   K[16]='m_emptyCellPrefab'
  ;   K[17]='m_content'
  ;   K[18]='NewSlot'
  ;   K[19]='m_newSlotCellPrefab'
  ;   K[20]='GetLuaTable'
  ;   K[21]='Init'
  ;   K[22]='Locked'
  ;   K[23]='m_lockedSlotCellPrefab'
  ;   K[24]='ProducerEmpty'
  ;   K[25]='m_producerEmptyCellPrefab'
  ;   K[26]='ProducerLocked'
  ;   K[27]='m_producerLockedCellPrefab'
  ;   K[28]='Item'
  ;   K[29]='m_cellPrefab'
  ;   K[30]='window'
  ;   K[31]='itemModel'
  ;   K[32]='index'
  ;   K[33]='bNewAdded'
  ;   K[34]='Log'
  ;   K[35]='Error'
  ;   K[36]='[InventoryRow] 无效的cellCode, 请检查:'
  ;   K[37]='nil'
  ;   K[38]='_SetPosition'
  ;   K[39]='transform'
  ;   K[40]='m_itemCells'
  ;   upvals: _ENV
  ;   locals: self(0-184), column(0-184), cellCode(0-184), param(0-184), itemObject(1-184), cacheGo(1-184)
  0000  LOADNIL   R4..R4 = nil
  0001  GETTABLE  R6 = R0[K0('m_itemCellGos')]
  0002  GETTABLE  R6 = R6[R1]
  0003  EQ        if R1 eq K1(nil)   -> -127738
  0004  JMP       (jump)   -> 33
  0005  GETTABLE  R6 = R0[K2('m_itemCellCodes')]
  0006  GETTABLE  R6 = R6[R1]
  0007  EQ        if R0 eq R2   -> -127989
  0008  JMP       (jump)   -> 12
  0009  GETTABLE  R6 = R0[K0('m_itemCellGos')]
  0010  GETTABLE  R5 = R6[R1]
  0011  JMP       (jump)   -> 33
  0012  GETTABLE  R6 = R0[K3('m_mapItemCellPool')]
  0013  GETTABLE  R7 = R0[K2('m_itemCellCodes')]
  0014  GETTABLE  R7 = R7[R1]
  0015  GETTABLE  R6 = R6[R7]
  0016  EQ        if R1 eq K1(nil)   -> -127725
  0017  JMP       (jump)   -> 33
  0018  GETTABUP  R6 = _ENV[K4('UIUtil')]
  0019  GETTABLE  R6 = R6[K5('SetActive')]
  0020  GETTABLE  R7 = R0[K0('m_itemCellGos')]
  0021  GETTABLE  R7 = R7[R1]
  0022  LOADBOOL  R8 = false
  0023  CALL      R6 = call(R6, 0 args, 2 rets)
  0024  GETTABUP  R6 = _ENV[K6('table')]
  0025  GETTABLE  R6 = R6[K7('insert')]
  0026  GETTABLE  R7 = R0[K3('m_mapItemCellPool')]
  0027  GETTABLE  R8 = R0[K2('m_itemCellCodes')]
  0028  GETTABLE  R8 = R8[R1]
  0029  GETTABLE  R7 = R7[R8]
  0030  GETTABLE  R8 = R0[K0('m_itemCellGos')]
  0031  GETTABLE  R8 = R8[R1]
  0032  CALL      R6 = call(R6, 0 args, 2 rets)
  0033  EQ        if R0 eq K1(nil)   -> -128220
  0034  JMP       (jump)   -> 56
  0035  GETTABUP  R6 = _ENV[K8('Table')]
  0036  GETTABLE  R6 = R6[K9('IsEmpty')]
  0037  GETTABLE  R7 = R0[K3('m_mapItemCellPool')]
  0038  GETTABLE  R7 = R7[R2]
  0039  CALL      R6 = call(R6, 1 args, 1 rets)
  0040  TEST      if not R6 then   -> -131029
  0041  JMP       (jump)   -> 56
  0042  GETTABLE  R6 = R0[K3('m_mapItemCellPool')]
  0043  GETTABLE  R6 = R6[R2]
  0044  GETTABLE  R5 = R6[K10(1)]
  0045  GETTABUP  R6 = _ENV[K6('table')]
  0046  GETTABLE  R6 = R6[K11('remove')]
  0047  GETTABLE  R7 = R0[K3('m_mapItemCellPool')]
  0048  GETTABLE  R7 = R7[R2]
  0049  LOADK     R8 = K10 1
  0050  CALL      R6 = call(R6, 0 args, 2 rets)
  0051  GETTABUP  R6 = _ENV[K4('UIUtil')]
  0052  GETTABLE  R6 = R6[K5('SetActive')]
  0053  MOVE      R7 = R0
  0054  LOADBOOL  R8 = true
  0055  CALL      R6 = call(R6, 0 args, 2 rets)
  0056  GETTABUP  R6 = _ENV[K12('EInventoryCellCode')]
  0057  GETTABLE  R6 = R6[K13('Empty')]
  0058  EQ        if R0 eq R6   -> -129982
  0059  JMP       (jump)   -> 69
  0060  TESTSET   if R1 then R4   -> -128449
  0061  JMP       (jump)   -> 68
  0062  GETTABUP  R6 = _ENV[K14('Object')]
  0063  GETTABLE  R6 = R6[K15('Instantiate')]
  0064  GETTABLE  R7 = R0[K16('m_emptyCellPrefab')]
  0065  GETTABLE  R8 = R0[K17('m_content')]
  0066  CALL      R6 = call(R6, 1 args, 2 rets)
  0067  MOVE      R4 = R0
  0068  JMP       (jump)   -> 164
  0069  GETTABUP  R6 = _ENV[K12('EInventoryCellCode')]
  0070  GETTABLE  R6 = R6[K18('NewSlot')]
  0071  EQ        if R0 eq R6   -> -129969
  0072  JMP       (jump)   -> 86
  0073  TESTSET   if R1 then R4   -> -128436
  0074  JMP       (jump)   -> 81
  0075  GETTABUP  R6 = _ENV[K14('Object')]
  0076  GETTABLE  R6 = R6[K15('Instantiate')]
  0077  GETTABLE  R7 = R0[K19('m_newSlotCellPrefab')]
  0078  GETTABLE  R8 = R0[K17('m_content')]
  0079  CALL      R6 = call(R6, 1 args, 2 rets)
  0080  MOVE      R4 = R0
  0081  SELF      R7 = R4[K20('GetLuaTable')] (self)
  0082  CALL      R6 = call(R6, 1 args, 1 rets)
  0083  SELF      R7 = R6[K21('Init')] (self)
  0084  CALL      R6 = call(R6, 0 args, 1 rets)
  0085  JMP       (jump)   -> 164
  0086  GETTABUP  R6 = _ENV[K12('EInventoryCellCode')]
  0087  GETTABLE  R6 = R6[K22('Locked')]
  0088  EQ        if R0 eq R6   -> -129952
  0089  JMP       (jump)   -> 99
  0090  TESTSET   if R1 then R4   -> -128419
  0091  JMP       (jump)   -> 98
  0092  GETTABUP  R6 = _ENV[K14('Object')]
  0093  GETTABLE  R6 = R6[K15('Instantiate')]
  0094  GETTABLE  R7 = R0[K23('m_lockedSlotCellPrefab')]
  0095  GETTABLE  R8 = R0[K17('m_content')]
  0096  CALL      R6 = call(R6, 1 args, 2 rets)
  0097  MOVE      R4 = R0
  0098  JMP       (jump)   -> 164
  0099  GETTABUP  R6 = _ENV[K12('EInventoryCellCode')]
  0100  GETTABLE  R6 = R6[K24('ProducerEmpty')]
  0101  EQ        if R0 eq R6   -> -129939
  0102  JMP       (jump)   -> 117
  0103  TESTSET   if R1 then R4   -> -128406
  0104  JMP       (jump)   -> 111
  0105  GETTABUP  R6 = _ENV[K14('Object')]
  0106  GETTABLE  R6 = R6[K15('Instantiate')]
  0107  GETTABLE  R7 = R0[K25('m_producerEmptyCellPrefab')]
  0108  GETTABLE  R8 = R0[K17('m_content')]
  0109  CALL      R6 = call(R6, 1 args, 2 rets)
  0110  MOVE      R4 = R0
  0111  SELF      R7 = R4[K20('GetLuaTable')] (self)
  0112  CALL      R6 = call(R6, 1 args, 1 rets)
  0113  SELF      R7 = R6[K21('Init')] (self)
  0114  MOVE      R8 = R0
  0115  CALL      R6 = call(R6, 0 args, 2 rets)
  0116  JMP       (jump)   -> 164
  0117  GETTABUP  R6 = _ENV[K12('EInventoryCellCode')]
  0118  GETTABLE  R6 = R6[K26('ProducerLocked')]
  0119  EQ        if R0 eq R6   -> -129921
  0120  JMP       (jump)   -> 135
  0121  TESTSET   if R1 then R4   -> -128388
  0122  JMP       (jump)   -> 129
  0123  GETTABUP  R6 = _ENV[K14('Object')]
  0124  GETTABLE  R6 = R6[K15('Instantiate')]
  0125  GETTABLE  R7 = R0[K27('m_producerLockedCellPrefab')]
  0126  GETTABLE  R8 = R0[K17('m_content')]
  0127  CALL      R6 = call(R6, 1 args, 2 rets)
  0128  MOVE      R4 = R0
  0129  SELF      R7 = R4[K20('GetLuaTable')] (self)
  0130  CALL      R6 = call(R6, 1 args, 1 rets)
  0131  SELF      R7 = R6[K21('Init')] (self)
  0132  MOVE      R8 = R0
  0133  CALL      R6 = call(R6, 0 args, 2 rets)
  0134  JMP       (jump)   -> 164
  0135  GETTABUP  R6 = _ENV[K12('EInventoryCellCode')]
  0136  GETTABLE  R6 = R6[K28('Item')]
  0137  EQ        if R0 eq R6   -> -129903
  0138  JMP       (jump)   -> 156
  0139  TESTSET   if R1 then R4   -> -128370
  0140  JMP       (jump)   -> 147
  0141  GETTABUP  R6 = _ENV[K14('Object')]
  0142  GETTABLE  R6 = R6[K15('Instantiate')]
  0143  GETTABLE  R7 = R0[K29('m_cellPrefab')]
  0144  GETTABLE  R8 = R0[K17('m_content')]
  0145  CALL      R6 = call(R6, 1 args, 2 rets)
  0146  MOVE      R4 = R0
  0147  SELF      R7 = R4[K20('GetLuaTable')] (self)
  0148  CALL      R6 = call(R6, 1 args, 1 rets)
  0149  SELF      R7 = R6[K21('Init')] (self)
  0150  GETTABLE  R8 = R0[K30('window')]
  0151  GETTABLE  R9 = R3[K31('itemModel')]
  0152  GETTABLE  R10 = R3[K32('index')]
  0153  GETTABLE  R11 = R3[K33('bNewAdded')]
  0154  CALL      R6 = call(R6, 0 args, 5 rets)
  0155  JMP       (jump)   -> 164
  0156  GETTABUP  R6 = _ENV[K34('Log')]
  0157  GETTABLE  R6 = R6[K35('Error')]
  0158  LOADK     R7 = K36 '[InventoryRow] 无效的cellCode, 请检查:'
  0159  TESTSET   if R1 then R8   -> -129886
  0160  JMP       (jump)   -> 162
  0161  LOADK     R8 = K37 'nil'
  0162  CONCAT    R7 = concat(R7..R7)
  0163  CALL      R6 = call(R6, 0 args, 1 rets)
  0164  EQ        if R1 eq K1(nil)   -> -128601
  0165  JMP       (jump)   -> 170
  0166  SELF      R7 = R0[K38('_SetPosition')] (self)
  0167  GETTABLE  R8 = R4[K39('transform')]
  0168  MOVE      R9 = R0
  0169  CALL      R6 = call(R6, 0 args, 3 rets)
  0170  GETTABLE  R6 = R0[K0('m_itemCellGos')]
  0171  SETTABLE  R6[R1] = R4
  0172  GETTABLE  R6 = R0[K40('m_itemCells')]
  0173  TEST      if not R4 then   -> -130897
  0174  JMP       (jump)   -> 179
  0175  SELF      R8 = R4[K20('GetLuaTable')] (self)
  0176  CALL      R7 = call(R7, 1 args, 1 rets)
  0177  TEST      if not R7 then   -> -130892
  0178  JMP       (jump)   -> 180
  0179  LOADNIL   R7..R7 = nil
  0180  SETTABLE  R6[R1] = R7
  0181  GETTABLE  R6 = R0[K2('m_itemCellCodes')]
  0182  SETTABLE  R6[R1] = R2
  0183  RETURN    return R0..R-1
; ---------- proto2 [ResetPos] ----------
  ; fn ?  line 77-81 np=2 va=0 ms=6 code=11 consts=3 upvals=0 protos=0
  ;   K[0]='m_itemCells'
  ;   K[1]='_SetPosition'
  ;   K[2]='transform'
  ;   locals: self(0-11), column(0-11)
  0000  GETTABLE  R2 = R0[K0('m_itemCells')]
  0001  GETTABLE  R2 = R2[R1]
  0002  TEST      if not R2 then   -> -131068
  0003  JMP       (jump)   -> 10
  0004  SELF      R3 = R0[K1('_SetPosition')] (self)
  0005  GETTABLE  R4 = R0[K0('m_itemCells')]
  0006  GETTABLE  R4 = R4[R1]
  0007  GETTABLE  R4 = R4[K2('transform')]
  0008  MOVE      R5 = R0
  0009  CALL      R2 = call(R2, 0 args, 3 rets)
  0010  RETURN    return R0..R-1
; ---------- proto3 [_SetPosition] ----------
  ; fn ?  line 84-86 np=3 va=0 ms=7 code=12 consts=6 upvals=2 protos=0
  ;   K[0]='anchoredPosition'
  ;   K[1]='Vector2'
  ;   K[2]=0.5
  ;   K[3]=25
  ;   K[4]=1
  ;   K[5]=116
  ;   upvals: _ENV, TILE_SIZE
  ;   locals: self(0-12), transform(0-12), column(0-12)
  0000  GETTABUP  R3 = _ENV[K1('Vector2')]
  0001  GETUPVAL  R4 = _ENV
  0002  MUL       R4 = K2(0.5) mul R4
  0003  ADD       R4 = K3(25) add R4
  0004  GETUPVAL  R5 = _ENV
  0005  SUB       R6 = K4(1) sub R2
  0006  MUL       R5 = R6 mul R5
  0007  ADD       R4 = R5 add R4
  0008  LOADK     R5 = K5 116
  0009  CALL      R3 = call(R3, 1 args, 2 rets)
  0010  SETTABLE  R1[K0('anchoredPosition')] = R3
  0011  RETURN    return R0..R-1
; ---------- proto4 [GetCell] ----------
  ; fn ?  line 88-90 np=2 va=0 ms=3 code=4 consts=1 upvals=0 protos=0
  ;   K[0]='m_itemCells'
  ;   locals: self(0-4), column(0-4)
  0000  GETTABLE  R2 = R0[K0('m_itemCells')]
  0001  GETTABLE  R2 = R2[R1]
  0002  RETURN    return R2..R1
  0003  RETURN    return R0..R-1
; ---------- proto5 [UpdateOrderRequireState] ----------
  ; fn ?  line 92-98 np=3 va=0 ms=12 code=14 consts=3 upvals=1 protos=0
  ;   K[0]='pairs'
  ;   K[1]='m_itemCells'
  ;   K[2]='UpdateOrderRequireState'
  ;   upvals: _ENV
  ;   locals: self(0-14), codeStateMap(0-14), greenBgDishMaterials(0-14), (for generator)(3-13), (for state)(3-13), (for control)(3-13), _(4-11), itemCell(4-11)
  0000  GETTABUP  R3 = _ENV[K0('pairs')]
  0001  GETTABLE  R4 = R0[K1('m_itemCells')]
  0002  CALL      R3 = call(R3, 3 args, 1 rets)
  0003  JMP       (jump)   -> 11
  0004  GETTABLE  R8 = R7[K2('UpdateOrderRequireState')]
  0005  TEST      if not R8 then   -> -131065
  0006  JMP       (jump)   -> 11
  0007  SELF      R9 = R7[K2('UpdateOrderRequireState')] (self)
  0008  MOVE      R10 = R0
  0009  MOVE      R11 = R0
  0010  CALL      R8 = call(R8, 0 args, 3 rets)
  0011  TFORCALL  tforcall R3
  0012  TFORLOOP  tforloop R5(sBx=-9)   -> 4
  0013  RETURN    return R0..R-1
; ---------- proto6 [HasInited] ----------
  ; fn ?  line 100-102 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_bInited'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_bInited')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
