# UI_Window_Inventory_InventoryCell_594.luac
; fn @InventoryCell.lua  line 0-0 np=0 va=1 ms=4 code=52 consts=21 upvals=1 protos=13
;   K[0]='InventoryCell'
;   K[1]='__index'
;   K[2]='Init'
;   K[3]='Reset'
;   K[4]='OnDestroy'
;   K[5]='_LoadItemView'
;   K[6]='UpdateOrderRequireState'
;   K[7]='typeof'
;   K[8]='CS'
;   K[9]='UnityEngine'
;   K[10]='Canvas'
;   K[11]='SpriteMaskInteraction'
;   K[12]='VisibleInsideMask'
;   K[13]='_OnLoadViewFinish'
;   K[14]='TryUpdateBoardInfoBar'
;   K[15]='_OnViewWillClose'
;   K[16]='_ResetBoardInfoBar'
;   K[17]='OnClick'
;   K[18]='OnRetrieved'
;   K[19]='GetItemTrans'
;   K[20]='HideAll'
;   upvals: _ENV
;   locals: canvasType(25-52), targetMaskInteraction(27-52)
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('InventoryCell')] = R0
0002  GETTABUP  R0 = _ENV[K0('InventoryCell')]
0003  GETTABUP  R1 = _ENV[K0('InventoryCell')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('InventoryCell')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Init')] = R1
0008  GETTABUP  R0 = _ENV[K0('InventoryCell')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K3('Reset')] = R1
0011  GETTABUP  R0 = _ENV[K0('InventoryCell')]
0012  CLOSURE   R1 = closure proto2
0013  SETTABLE  R0[K4('OnDestroy')] = R1
0014  GETTABUP  R0 = _ENV[K0('InventoryCell')]
0015  CLOSURE   R1 = closure proto3
0016  SETTABLE  R0[K5('_LoadItemView')] = R1
0017  GETTABUP  R0 = _ENV[K0('InventoryCell')]
0018  CLOSURE   R1 = closure proto4
0019  SETTABLE  R0[K6('UpdateOrderRequireState')] = R1
0020  GETTABUP  R0 = _ENV[K7('typeof')]
0021  GETTABUP  R1 = _ENV[K8('CS')]
0022  GETTABLE  R1 = R1[K9('UnityEngine')]
0023  GETTABLE  R1 = R1[K10('Canvas')]
0024  CALL      R0 = call(R0, 1 args, 1 rets)
0025  GETTABUP  R1 = _ENV[K11('SpriteMaskInteraction')]
0026  GETTABLE  R1 = R1[K12('VisibleInsideMask')]
0027  GETTABUP  R2 = _ENV[K0('InventoryCell')]
0028  CLOSURE   R3 = closure proto5
0029  SETTABLE  R2[K13('_OnLoadViewFinish')] = R3
0030  GETTABUP  R2 = _ENV[K0('InventoryCell')]
0031  CLOSURE   R3 = closure proto6
0032  SETTABLE  R2[K14('TryUpdateBoardInfoBar')] = R3
0033  GETTABUP  R2 = _ENV[K0('InventoryCell')]
0034  CLOSURE   R3 = closure proto7
0035  SETTABLE  R2[K15('_OnViewWillClose')] = R3
0036  GETTABUP  R2 = _ENV[K0('InventoryCell')]
0037  CLOSURE   R3 = closure proto8
0038  SETTABLE  R2[K16('_ResetBoardInfoBar')] = R3
0039  GETTABUP  R2 = _ENV[K0('InventoryCell')]
0040  CLOSURE   R3 = closure proto9
0041  SETTABLE  R2[K17('OnClick')] = R3
0042  GETTABUP  R2 = _ENV[K0('InventoryCell')]
0043  CLOSURE   R3 = closure proto10
0044  SETTABLE  R2[K18('OnRetrieved')] = R3
0045  GETTABUP  R2 = _ENV[K0('InventoryCell')]
0046  CLOSURE   R3 = closure proto11
0047  SETTABLE  R2[K19('GetItemTrans')] = R3
0048  GETTABUP  R2 = _ENV[K0('InventoryCell')]
0049  CLOSURE   R3 = closure proto12
0050  SETTABLE  R2[K20('HideAll')] = R3
0051  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 6-24 np=5 va=0 ms=11 code=31 consts=20 upvals=1 protos=1
  ;   K[0]='window'
  ;   K[1]='index'
  ;   K[2]='itemModel'
  ;   K[3]='m_bNewAdded'
  ;   K[4]='m_itemCode'
  ;   K[5]='GetCode'
  ;   K[6]='m_maxLevelGo'
  ;   K[7]='SetActive'
  ;   K[8]='CanShowMaxLevelIcon'
  ;   K[9]='Reset'
  ;   K[10]='_LoadItemView'
  ;   K[11]='m_tipButton'
  ;   K[12]='UpdateItemType'
  ;   K[13]='EItemDetailWindowRefer'
  ;   K[14]='Inventory'
  ;   K[15]='m_normalShadowSprite'
  ;   K[16]='sortingOrder'
  ;   K[17]='InventoryWindow'
  ;   K[18]='itemViewSortingOrderNormal'
  ;   K[19]=1
  ;   upvals: _ENV
  ;   locals: self(0-31), window(0-31), itemModel(0-31), index(0-31), bNewAdded(0-31)
  0000  SETTABLE  R0[K0('window')] = R1
  0001  SETTABLE  R0[K1('index')] = R3
  0002  SETTABLE  R0[K2('itemModel')] = R2
  0003  SETTABLE  R0[K3('m_bNewAdded')] = R4
  0004  SELF      R6 = R2[K5('GetCode')] (self)
  0005  CALL      R5 = call(R5, 1 args, 1 rets)
  0006  SETTABLE  R0[K4('m_itemCode')] = R5
  0007  GETTABLE  R5 = R0[K6('m_maxLevelGo')]
  0008  SELF      R6 = R5[K7('SetActive')] (self)
  0009  GETTABLE  R7 = R0[K2('itemModel')]
  0010  SELF      R8 = R7[K8('CanShowMaxLevelIcon')] (self)
  0011  CALL      R7 = call(R7, -1 args, 1 rets)
  0012  CALL      R5 = call(R5, 0 args, -1 rets)
  0013  SELF      R6 = R0[K9('Reset')] (self)
  0014  CALL      R5 = call(R5, 0 args, 1 rets)
  0015  SELF      R6 = R0[K10('_LoadItemView')] (self)
  0016  CALL      R5 = call(R5, 0 args, 1 rets)
  0017  GETTABLE  R5 = R0[K11('m_tipButton')]
  0018  SELF      R6 = R5[K12('UpdateItemType')] (self)
  0019  GETTABLE  R7 = R0[K4('m_itemCode')]
  0020  LOADNIL   R8..R8 = nil
  0021  GETTABUP  R9 = _ENV[K13('EItemDetailWindowRefer')]
  0022  GETTABLE  R9 = R9[K14('Inventory')]
  0023  CLOSURE   R10 = closure proto0
  0024  CALL      R5 = call(R5, 0 args, 5 rets)
  0025  GETTABLE  R5 = R0[K15('m_normalShadowSprite')]
  0026  GETTABUP  R6 = _ENV[K17('InventoryWindow')]
  0027  GETTABLE  R6 = R6[K18('itemViewSortingOrderNormal')]
  0028  SUB       R6 = K19(1) sub R6
  0029  SETTABLE  R5[K16('sortingOrder')] = R6
  0030  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 18-20 np=0 va=0 ms=2 code=4 consts=1 upvals=1 protos=0
    ;   K[0]='TryUpdateBoardInfoBar'
    ;   upvals: self
    0000  GETUPVAL  R0 = self
    0001  SELF      R1 = R0[K0('TryUpdateBoardInfoBar')] (self)
    0002  CALL      R0 = call(R0, 0 args, 1 rets)
    0003  RETURN    return R0..R-1
; ---------- proto1 [Reset] ----------
  ; fn ?  line 26-42 np=1 va=0 ms=6 code=40 consts=17 upvals=1 protos=0
  ;   K[0]='m_itemImage'
  ;   K[1]='enabled'
  ;   K[2]=false
  ;   K[3]='m_itemViewRoot'
  ;   K[4]='DOKill'
  ;   K[5]='UIUtil'
  ;   K[6]='SetActive'
  ;   K[7]='m_rootRect'
  ;   K[8]='gameObject'
  ;   K[9]='SetLocalScale'
  ;   K[10]=1
  ;   K[11]='m_itemView'
  ;   K[12]=nil
  ;   K[13]='GameObject'
  ;   K[14]='Destroy'
  ;   K[15]='m_newAddedEffectGo'
  ;   K[16]='IsNull'
  ;   upvals: _ENV
  ;   locals: self(0-40)
  0000  GETTABLE  R1 = R0[K0('m_itemImage')]
  0001  SETTABLE  R1[K1('enabled')] = K2(false)
  0002  GETTABLE  R1 = R0[K3('m_itemViewRoot')]
  0003  SELF      R2 = R1[K4('DOKill')] (self)
  0004  CALL      R1 = call(R1, 0 args, 1 rets)
  0005  GETTABUP  R1 = _ENV[K5('UIUtil')]
  0006  GETTABLE  R1 = R1[K6('SetActive')]
  0007  GETTABLE  R2 = R0[K7('m_rootRect')]
  0008  GETTABLE  R2 = R2[K8('gameObject')]
  0009  LOADBOOL  R3 = true
  0010  CALL      R1 = call(R1, 0 args, 2 rets)
  0011  GETTABUP  R1 = _ENV[K5('UIUtil')]
  0012  GETTABLE  R1 = R1[K9('SetLocalScale')]
  0013  GETTABLE  R2 = R0[K3('m_itemViewRoot')]
  0014  LOADK     R3 = K10 1
  0015  LOADK     R4 = K10 1
  0016  LOADK     R5 = K10 1
  0017  CALL      R1 = call(R1, 0 args, 4 rets)
  0018  GETTABLE  R1 = R0[K11('m_itemView')]
  0019  EQ        if R1 eq K12(nil)   -> -130271
  0020  JMP       (jump)   -> 27
  0021  GETTABUP  R1 = _ENV[K13('GameObject')]
  0022  GETTABLE  R1 = R1[K14('Destroy')]
  0023  GETTABLE  R2 = R0[K11('m_itemView')]
  0024  GETTABLE  R2 = R2[K8('gameObject')]
  0025  CALL      R1 = call(R1, 0 args, 1 rets)
  0026  SETTABLE  R0[K11('m_itemView')] = K12(nil)
  0027  GETTABLE  R1 = R0[K15('m_newAddedEffectGo')]
  0028  EQ        if R1 eq K12(nil)   -> -130262
  0029  JMP       (jump)   -> 39
  0030  GETTABLE  R1 = R0[K15('m_newAddedEffectGo')]
  0031  SELF      R2 = R1[K16('IsNull')] (self)
  0032  CALL      R1 = call(R1, 1 args, 1 rets)
  0033  TEST      if not R1 then   -> -131036
  0034  JMP       (jump)   -> 39
  0035  GETTABUP  R1 = _ENV[K13('GameObject')]
  0036  GETTABLE  R1 = R1[K14('Destroy')]
  0037  GETTABLE  R2 = R0[K15('m_newAddedEffectGo')]
  0038  CALL      R1 = call(R1, 0 args, 1 rets)
  0039  RETURN    return R0..R-1
; ---------- proto2 [OnDestroy] ----------
  ; fn ?  line 44-55 np=1 va=0 ms=3 code=21 consts=9 upvals=1 protos=0
  ;   K[0]='m_tween'
  ;   K[1]='Kill'
  ;   K[2]=nil
  ;   K[3]='Scheduler'
  ;   K[4]='UnscheduleTarget'
  ;   K[5]='EventDispatcher'
  ;   K[6]='RemoveTarget'
  ;   K[7]='m_highlighted'
  ;   K[8]='_ResetBoardInfoBar'
  ;   upvals: _ENV
  ;   locals: self(0-21)
  0000  GETTABLE  R1 = R0[K0('m_tween')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 7
  0003  GETTABLE  R1 = R0[K0('m_tween')]
  0004  SELF      R2 = R1[K1('Kill')] (self)
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  SETTABLE  R0[K0('m_tween')] = K2(nil)
  0007  GETTABUP  R1 = _ENV[K3('Scheduler')]
  0008  GETTABLE  R1 = R1[K4('UnscheduleTarget')]
  0009  MOVE      R2 = R0
  0010  CALL      R1 = call(R1, 0 args, 1 rets)
  0011  GETTABUP  R1 = _ENV[K5('EventDispatcher')]
  0012  GETTABLE  R1 = R1[K6('RemoveTarget')]
  0013  MOVE      R2 = R0
  0014  CALL      R1 = call(R1, 0 args, 1 rets)
  0015  GETTABLE  R1 = R0[K7('m_highlighted')]
  0016  TEST      if not R1 then   -> -131054
  0017  JMP       (jump)   -> 20
  0018  SELF      R2 = R0[K8('_ResetBoardInfoBar')] (self)
  0019  CALL      R1 = call(R1, 0 args, 1 rets)
  0020  RETURN    return R0..R-1
; ---------- proto3 [_LoadItemView] ----------
  ; fn ?  line 57-92 np=1 va=0 ms=11 code=68 consts=28 upvals=1 protos=1
  ;   K[0]='m_bNewAdded'
  ;   K[1]='Object'
  ;   K[2]='Instantiate'
  ;   K[3]='m_lightEffectPrefab'
  ;   K[4]='m_itemViewRoot'
  ;   K[5]='transform'
  ;   K[6]='SetLocalPosY'
  ;   K[7]=58
  ;   K[8]='m_newAddedEffectGo'
  ;   K[9]='itemModel'
  ;   K[10]='GetComponent'
  ;   K[11]='ItemCook'
  ;   K[12]='MainBoardView'
  ;   K[13]='GetInstance'
  ;   K[14]='m_itemView'
  ;   K[15]='CreateItemView'
  ;   K[16]='_OnLoadViewFinish'
  ;   K[17]='m_itemImage'
  ;   K[18]='GM'
  ;   K[19]='ItemDataModel'
  ;   K[20]='GetSpriteName'
  ;   K[21]='m_itemCode'
  ;   K[22]=nil
  ;   K[23]='BIManager'
  ;   K[24]='LogErrorInfo'
  ;   K[25]='spriteName is nil'
  ;   K[26]='SpriteUtil'
  ;   K[27]='SetImage'
  ;   upvals: _ENV
  ;   locals: self(0-68), go(8-13), isEquipment(17-68), spineLoaded(20-41), bWaitSpineLoaded(21-41), mainBoardView(24-41), spriteName(52-67)
  0000  GETTABLE  R1 = R0[K0('m_bNewAdded')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 13
  0003  GETTABUP  R1 = _ENV[K1('Object')]
  0004  GETTABLE  R1 = R1[K2('Instantiate')]
  0005  GETTABLE  R2 = R0[K3('m_lightEffectPrefab')]
  0006  GETTABLE  R3 = R0[K4('m_itemViewRoot')]
  0007  CALL      R1 = call(R1, 1 args, 2 rets)
  0008  GETTABLE  R2 = R1[K5('transform')]
  0009  SELF      R3 = R2[K6('SetLocalPosY')] (self)
  0010  LOADK     R4 = K7 58
  0011  CALL      R2 = call(R2, 0 args, 2 rets)
  0012  SETTABLE  R0[K8('m_newAddedEffectGo')] = R1
  0013  GETTABLE  R1 = R0[K9('itemModel')]
  0014  SELF      R2 = R1[K10('GetComponent')] (self)
  0015  GETTABUP  R3 = _ENV[K11('ItemCook')]
  0016  CALL      R1 = call(R1, 1 args, 2 rets)
  0017  TEST      if not R1 then   -> -131053
  0018  JMP       (jump)   -> 42
  0019  LOADBOOL  R2 = false
  0020  LOADBOOL  R3 = false
  0021  GETTABUP  R4 = _ENV[K12('MainBoardView')]
  0022  GETTABLE  R4 = R4[K13('GetInstance')]
  0023  CALL      R4 = call(R4, 1 args, 0 rets)
  0024  TEST      if not R4 then   -> -131045
  0025  JMP       (jump)   -> 27
  0026  RETURN    return R0..R-1
  0027  SELF      R6 = R4[K15('CreateItemView')] (self)
  0028  GETTABLE  R7 = R0[K4('m_itemViewRoot')]
  0029  GETTABLE  R8 = R0[K9('itemModel')]
  0030  LOADBOOL  R9 = false
  0031  CLOSURE   R10 = closure proto0
  0032  CALL      R5 = call(R5, 1 args, 5 rets)
  0033  SETTABLE  R0[K14('m_itemView')] = R5
  0034  TEST      if not R2 then   -> -131036
  0035  JMP       (jump)   -> 39
  0036  SELF      R6 = R0[K16('_OnLoadViewFinish')] (self)
  0037  CALL      R5 = call(R5, 0 args, 1 rets)
  0038  JMP       (jump)   -> 67
  0039  LOADBOOL  R3 = true
  0040  JMP       (jump)   -> 67
  0041  JMP       (jump)   -> 67
  0042  GETTABLE  R2 = R0[K17('m_itemImage')]
  0043  TEST      if not R2 then   -> -131027
  0044  JMP       (jump)   -> 67
  0045  GETTABUP  R2 = _ENV[K18('GM')]
  0046  GETTABLE  R2 = R2[K19('ItemDataModel')]
  0047  SELF      R3 = R2[K20('GetSpriteName')] (self)
  0048  GETTABLE  R4 = R0[K21('m_itemCode')]
  0049  LOADNIL   R5..R5 = nil
  0050  GETTABLE  R6 = R0[K9('itemModel')]
  0051  CALL      R2 = call(R2, 1 args, 4 rets)
  0052  EQ        if R0 eq K22(nil)   -> -129716
  0053  JMP       (jump)   -> 59
  0054  GETTABUP  R3 = _ENV[K18('GM')]
  0055  GETTABLE  R3 = R3[K23('BIManager')]
  0056  SELF      R4 = R3[K24('LogErrorInfo')] (self)
  0057  LOADK     R5 = K25 'spriteName is nil'
  0058  CALL      R3 = call(R3, 0 args, 2 rets)
  0059  GETTABUP  R3 = _ENV[K26('SpriteUtil')]
  0060  GETTABLE  R3 = R3[K27('SetImage')]
  0061  GETTABLE  R4 = R0[K17('m_itemImage')]
  0062  MOVE      R5 = R0
  0063  LOADBOOL  R6 = true
  0064  CALL      R3 = call(R3, 0 args, 3 rets)
  0065  SELF      R4 = R0[K16('_OnLoadViewFinish')] (self)
  0066  CALL      R3 = call(R3, 0 args, 1 rets)
  0067  RETURN    return R0..R-1
  ; ---------- proto0 [m_itemView] ----------
    ; fn ?  line 73-78 np=1 va=0 ms=3 code=9 consts=1 upvals=3 protos=0
    ;   K[0]='_OnLoadViewFinish'
    ;   upvals: spineLoaded, bWaitSpineLoaded, self
    ;   locals: itemView(0-9)
    0000  LOADBOOL  R1 = true
    0001  SETUPVAL  bWaitSpineLoaded = R0
    0002  GETUPVAL  R1 = spineLoaded
    0003  TEST      if not R1 then   -> -131067
    0004  JMP       (jump)   -> 8
    0005  GETUPVAL  R1 = spineLoaded
    0006  SELF      R2 = R1[K0('_OnLoadViewFinish')] (self)
    0007  CALL      R1 = call(R1, 0 args, 1 rets)
    0008  RETURN    return R0..R-1
; ---------- proto4 [UpdateOrderRequireState] ----------
  ; fn ?  line 94-129 np=3 va=0 ms=11 code=118 consts=34 upvals=1 protos=0
  ;   K[0]='m_itemCode'
  ;   K[1]='OrderState'
  ;   K[2]='CanDeliver'
  ;   K[3]='PartiallyFinished'
  ;   K[4]='GM'
  ;   K[5]='ItemDataModel'
  ;   K[6]='IsDisposableInstrument'
  ;   K[7]='itemModel'
  ;   K[8]='IsEmptyInstrument'
  ;   K[9]='m_checkGo'
  ;   K[10]='SetActive'
  ;   K[11]=nil
  ;   K[12]='UIUtil'
  ;   K[13]='IsEmptyComponent'
  ;   K[14]='m_greenShadowDownEffectGo'
  ;   K[15]='Object'
  ;   K[16]='Instantiate'
  ;   K[17]='m_greenShadowDownEffectPrefab'
  ;   K[18]='transform'
  ;   K[19]='SetLocalPosY'
  ;   K[20]=-57
  ;   K[21]='UpdateSortingOrder'
  ;   K[22]='InventoryWindow'
  ;   K[23]='itemViewSortingOrderNormal'
  ;   K[24]=1
  ;   K[25]='m_greenShadowOnEffectGo'
  ;   K[26]='m_greenShadowOnEffectPrefab'
  ;   K[27]='m_itemImage'
  ;   K[28]='parent'
  ;   K[29]=-65
  ;   K[30]='SetSiblingIndex'
  ;   K[31]='GetSiblingIndex'
  ;   K[32]='m_normalShadowSprite'
  ;   K[33]='enabled'
  ;   upvals: _ENV
  ;   locals: self(0-118), codeStateMap(0-118), greenBgDishMaterials(0-118), orderState(2-118), showCheck(12-118), showBgGreen(39-118), go(52-64), go(79-92)
  0000  GETTABLE  R3 = R0[K0('m_itemCode')]
  0001  GETTABLE  R3 = R1[R3]
  0002  GETTABUP  R4 = _ENV[K1('OrderState')]
  0003  GETTABLE  R4 = R4[K2('CanDeliver')]
  0004  EQ        if R1 eq R4   -> -129526
  0005  JMP       (jump)   -> 11
  0006  GETTABUP  R4 = _ENV[K1('OrderState')]
  0007  GETTABLE  R4 = R4[K3('PartiallyFinished')]
  0008  EQ        if R1 eq R4   -> -129522
  0009  JMP       (jump)   -> 11
  0010  LOADBOOL  R4 = false
  0011  LOADBOOL  R4 = true
  0012  TEST      if not R4 then   -> -131058
  0013  JMP       (jump)   -> 27
  0014  GETTABUP  R5 = _ENV[K4('GM')]
  0015  GETTABLE  R5 = R5[K5('ItemDataModel')]
  0016  SELF      R6 = R5[K6('IsDisposableInstrument')] (self)
  0017  GETTABLE  R7 = R0[K0('m_itemCode')]
  0018  CALL      R5 = call(R5, 1 args, 2 rets)
  0019  TEST      if not R5 then   -> -131051
  0020  JMP       (jump)   -> 27
  0021  GETTABLE  R5 = R0[K7('itemModel')]
  0022  SELF      R6 = R5[K8('IsEmptyInstrument')] (self)
  0023  CALL      R5 = call(R5, 1 args, 1 rets)
  0024  TEST      if not R5 then   -> -131045
  0025  JMP       (jump)   -> 27
  0026  LOADBOOL  R4 = false
  0027  GETTABLE  R5 = R0[K9('m_checkGo')]
  0028  SELF      R6 = R5[K10('SetActive')] (self)
  0029  MOVE      R7 = R0
  0030  CALL      R5 = call(R5, 0 args, 2 rets)
  0031  EQ        if R1 eq K11(nil)   -> -129748
  0032  JMP       (jump)   -> 37
  0033  GETTABLE  R5 = R0[K0('m_itemCode')]
  0034  GETTABLE  R5 = R2[R5]
  0035  EQ        if R0 eq K11(nil)   -> -128208
  0036  JMP       (jump)   -> 38
  0037  LOADBOOL  R5 = false
  0038  LOADBOOL  R5 = true
  0039  GETTABUP  R6 = _ENV[K12('UIUtil')]
  0040  GETTABLE  R6 = R6[K13('IsEmptyComponent')]
  0041  GETTABLE  R7 = R0[K14('m_greenShadowDownEffectGo')]
  0042  CALL      R6 = call(R6, 1 args, 1 rets)
  0043  TEST      if not R6 then   -> -131027
  0044  JMP       (jump)   -> 64
  0045  TEST      if not R5 then   -> -131025
  0046  JMP       (jump)   -> 64
  0047  GETTABUP  R6 = _ENV[K15('Object')]
  0048  GETTABLE  R6 = R6[K16('Instantiate')]
  0049  GETTABLE  R7 = R0[K17('m_greenShadowDownEffectPrefab')]
  0050  GETTABLE  R8 = R0[K18('transform')]
  0051  CALL      R6 = call(R6, 1 args, 2 rets)
  0052  GETTABLE  R7 = R6[K18('transform')]
  0053  SELF      R8 = R7[K19('SetLocalPosY')] (self)
  0054  LOADK     R9 = K20 -57
  0055  CALL      R7 = call(R7, 0 args, 2 rets)
  0056  SETTABLE  R0[K14('m_greenShadowDownEffectGo')] = R6
  0057  GETTABUP  R7 = _ENV[K12('UIUtil')]
  0058  GETTABLE  R7 = R7[K21('UpdateSortingOrder')]
  0059  GETTABLE  R8 = R0[K14('m_greenShadowDownEffectGo')]
  0060  GETTABUP  R9 = _ENV[K22('InventoryWindow')]
  0061  GETTABLE  R9 = R9[K23('itemViewSortingOrderNormal')]
  0062  SUB       R9 = K24(1) sub R9
  0063  CALL      R7 = call(R7, 0 args, 2 rets)
  0064  GETTABUP  R6 = _ENV[K12('UIUtil')]
  0065  GETTABLE  R6 = R6[K13('IsEmptyComponent')]
  0066  GETTABLE  R7 = R0[K25('m_greenShadowOnEffectGo')]
  0067  CALL      R6 = call(R6, 1 args, 1 rets)
  0068  TEST      if not R6 then   -> -131002
  0069  JMP       (jump)   -> 92
  0070  TEST      if not R5 then   -> -131000
  0071  JMP       (jump)   -> 92
  0072  GETTABUP  R6 = _ENV[K15('Object')]
  0073  GETTABLE  R6 = R6[K16('Instantiate')]
  0074  GETTABLE  R7 = R0[K26('m_greenShadowOnEffectPrefab')]
  0075  GETTABLE  R8 = R0[K27('m_itemImage')]
  0076  GETTABLE  R8 = R8[K18('transform')]
  0077  GETTABLE  R8 = R8[K28('parent')]
  0078  CALL      R6 = call(R6, 1 args, 2 rets)
  0079  GETTABLE  R7 = R6[K18('transform')]
  0080  SELF      R8 = R7[K19('SetLocalPosY')] (self)
  0081  LOADK     R9 = K29 -65
  0082  CALL      R7 = call(R7, 0 args, 2 rets)
  0083  GETTABLE  R7 = R6[K18('transform')]
  0084  SELF      R8 = R7[K30('SetSiblingIndex')] (self)
  0085  GETTABLE  R9 = R0[K27('m_itemImage')]
  0086  GETTABLE  R9 = R9[K18('transform')]
  0087  SELF      R10 = R9[K31('GetSiblingIndex')] (self)
  0088  CALL      R9 = call(R9, 1 args, 1 rets)
  0089  ADD       R9 = K24(1) add R9
  0090  CALL      R7 = call(R7, 0 args, 2 rets)
  0091  SETTABLE  R0[K25('m_greenShadowOnEffectGo')] = R6
  0092  GETTABUP  R6 = _ENV[K12('UIUtil')]
  0093  GETTABLE  R6 = R6[K13('IsEmptyComponent')]
  0094  GETTABLE  R7 = R0[K14('m_greenShadowDownEffectGo')]
  0095  CALL      R6 = call(R6, 1 args, 1 rets)
  0096  TEST      if not R6 then   -> -130973
  0097  JMP       (jump)   -> 103
  0098  GETTABUP  R6 = _ENV[K12('UIUtil')]
  0099  GETTABLE  R6 = R6[K10('SetActive')]
  0100  GETTABLE  R7 = R0[K14('m_greenShadowDownEffectGo')]
  0101  MOVE      R8 = R0
  0102  CALL      R6 = call(R6, 0 args, 2 rets)
  0103  GETTABUP  R6 = _ENV[K12('UIUtil')]
  0104  GETTABLE  R6 = R6[K13('IsEmptyComponent')]
  0105  GETTABLE  R7 = R0[K25('m_greenShadowOnEffectGo')]
  0106  CALL      R6 = call(R6, 1 args, 1 rets)
  0107  TEST      if not R6 then   -> -130962
  0108  JMP       (jump)   -> 114
  0109  GETTABUP  R6 = _ENV[K12('UIUtil')]
  0110  GETTABLE  R6 = R6[K10('SetActive')]
  0111  GETTABLE  R7 = R0[K25('m_greenShadowOnEffectGo')]
  0112  MOVE      R8 = R0
  0113  CALL      R6 = call(R6, 0 args, 2 rets)
  0114  GETTABLE  R6 = R0[K32('m_normalShadowSprite')]
  0115  NOT       R7 = not R0
  0116  SETTABLE  R6[K33('enabled')] = R7
  0117  RETURN    return R0..R-1
; ---------- proto5 [_OnLoadViewFinish] ----------
  ; fn ?  line 133-173 np=1 va=0 ms=12 code=91 consts=36 upvals=2 protos=0
  ;   K[0]='InventoryWindow'
  ;   K[1]='itemViewSortingOrderNormal'
  ;   K[2]='UIUtil'
  ;   K[3]='UpdateSortingOrder'
  ;   K[4]='m_itemViewRoot'
  ;   K[5]='gameObject'
  ;   K[6]='LayerMask'
  ;   K[7]='NameToLayer'
  ;   K[8]='UI'
  ;   K[9]='SetLayerRecursively'
  ;   K[10]='GetComponentsInChildren'
  ;   K[11]='typeof'
  ;   K[12]='Renderer'
  ;   K[13]=0
  ;   K[14]='Length'
  ;   K[15]=1
  ;   K[16]='maskInteraction'
  ;   K[17]=nil
  ;   K[18]='SkeletonRenderer'
  ;   K[19]='enabled'
  ;   K[20]=true
  ;   K[21]='LateUpdate'
  ;   K[22]=false
  ;   K[23]='m_itemView'
  ;   K[24]='GetSpriteRenderer'
  ;   K[25]=130
  ;   K[26]='sprite'
  ;   K[27]='rect'
  ;   K[28]='size'
  ;   K[29]='y'
  ;   K[30]='transform'
  ;   K[31]='SetLocalPosY'
  ;   K[32]=0.5
  ;   K[33]='AddComponent'
  ;   K[34]='SortingGroup'
  ;   K[35]='sortingOrder'
  ;   upvals: _ENV, targetMaskInteraction
  ;   locals: self(0-91), sortingOrder(2-91), uiLayer(12-91), renderers(24-91), (for index)(28-37), (for limit)(28-37), (for step)(28-37), i(29-36), skeletonRenderers(45-91), skeletonRenderer(46-91), (for index)(50-62), (for limit)(50-62), (for step)(50-62), i(51-61), spriteRenderer(68-90), height(69-90), sortingGroup(88-90)
  0000  GETTABUP  R1 = _ENV[K0('InventoryWindow')]
  0001  GETTABLE  R1 = R1[K1('itemViewSortingOrderNormal')]
  0002  GETTABUP  R2 = _ENV[K2('UIUtil')]
  0003  GETTABLE  R2 = R2[K3('UpdateSortingOrder')]
  0004  GETTABLE  R3 = R0[K4('m_itemViewRoot')]
  0005  GETTABLE  R3 = R3[K5('gameObject')]
  0006  MOVE      R4 = R0
  0007  CALL      R2 = call(R2, 0 args, 2 rets)
  0008  GETTABUP  R2 = _ENV[K6('LayerMask')]
  0009  GETTABLE  R2 = R2[K7('NameToLayer')]
  0010  LOADK     R3 = K8 'UI'
  0011  CALL      R2 = call(R2, 1 args, 1 rets)
  0012  GETTABLE  R3 = R0[K4('m_itemViewRoot')]
  0013  SELF      R4 = R3[K9('SetLayerRecursively')] (self)
  0014  MOVE      R5 = R0
  0015  CALL      R3 = call(R3, 0 args, 2 rets)
  0016  GETTABLE  R3 = R0[K4('m_itemViewRoot')]
  0017  GETTABLE  R3 = R3[K5('gameObject')]
  0018  SELF      R4 = R3[K10('GetComponentsInChildren')] (self)
  0019  GETTABUP  R5 = _ENV[K11('typeof')]
  0020  GETTABUP  R6 = _ENV[K12('Renderer')]
  0021  CALL      R5 = call(R5, 1 args, 1 rets)
  0022  LOADBOOL  R6 = true
  0023  CALL      R3 = call(R3, 1 args, 3 rets)
  0024  LOADK     R4 = K13 0
  0025  GETTABLE  R5 = R3[K14('Length')]
  0026  SUB       R5 = K15(1) sub R5
  0027  LOADK     R6 = K15 1
  0028  FORPREP   forprep R4(sBx=7)   -> 36
  0029  GETTABLE  R8 = R3[R7]
  0030  GETTABLE  R8 = R8[K16('maskInteraction')]
  0031  EQ        if R1 eq K17(nil)   -> -126670
  0032  JMP       (jump)   -> 36
  0033  GETTABLE  R8 = R3[R7]
  0034  GETUPVAL  R9 = _ENV
  0035  SETTABLE  R8[K16('maskInteraction')] = R9
  0036  FORLOOP   forloop R4(sBx=-8)   -> 29
  0037  GETTABLE  R4 = R0[K4('m_itemViewRoot')]
  0038  GETTABLE  R4 = R4[K5('gameObject')]
  0039  SELF      R5 = R4[K10('GetComponentsInChildren')] (self)
  0040  GETTABUP  R6 = _ENV[K11('typeof')]
  0041  GETTABUP  R7 = _ENV[K18('SkeletonRenderer')]
  0042  CALL      R6 = call(R6, 1 args, 1 rets)
  0043  LOADBOOL  R7 = true
  0044  CALL      R4 = call(R4, 1 args, 3 rets)
  0045  LOADNIL   R5..R5 = nil
  0046  LOADK     R6 = K13 0
  0047  GETTABLE  R7 = R4[K14('Length')]
  0048  SUB       R7 = K15(1) sub R7
  0049  LOADK     R8 = K15 1
  0050  FORPREP   forprep R6(sBx=10)   -> 61
  0051  GETTABLE  R5 = R4[R9]
  0052  GETUPVAL  R10 = _ENV
  0053  SETTABLE  R5[K16('maskInteraction')] = R10
  0054  GETTABLE  R10 = R5[K19('enabled')]
  0055  TEST      if not R10 then   -> -131014
  0056  JMP       (jump)   -> 61
  0057  SETTABLE  R5[K19('enabled')] = K20(true)
  0058  SELF      R11 = R5[K21('LateUpdate')] (self)
  0059  CALL      R10 = call(R10, 0 args, 1 rets)
  0060  SETTABLE  R5[K19('enabled')] = K22(false)
  0061  FORLOOP   forloop R6(sBx=-11)   -> 51
  0062  GETTABLE  R6 = R0[K23('m_itemView')]
  0063  TEST      if not R6 then   -> -131007
  0064  JMP       (jump)   -> 90
  0065  GETTABLE  R6 = R0[K23('m_itemView')]
  0066  SELF      R7 = R6[K24('GetSpriteRenderer')] (self)
  0067  CALL      R6 = call(R6, 1 args, 1 rets)
  0068  LOADK     R7 = K25 130
  0069  GETTABLE  R8 = R6[K26('sprite')]
  0070  TEST      if not R8 then   -> -131000
  0071  JMP       (jump)   -> 76
  0072  GETTABLE  R8 = R6[K26('sprite')]
  0073  GETTABLE  R8 = R8[K27('rect')]
  0074  GETTABLE  R8 = R8[K28('size')]
  0075  GETTABLE  R7 = R8[K29('y')]
  0076  GETTABLE  R8 = R0[K23('m_itemView')]
  0077  GETTABLE  R8 = R8[K30('transform')]
  0078  SELF      R9 = R8[K31('SetLocalPosY')] (self)
  0079  MUL       R10 = K32(0.5) mul R7
  0080  CALL      R8 = call(R8, 0 args, 2 rets)
  0081  GETTABLE  R8 = R0[K23('m_itemView')]
  0082  GETTABLE  R8 = R8[K5('gameObject')]
  0083  SELF      R9 = R8[K33('AddComponent')] (self)
  0084  GETTABUP  R10 = _ENV[K11('typeof')]
  0085  GETTABUP  R11 = _ENV[K34('SortingGroup')]
  0086  CALL      R10 = call(R10, -1 args, 1 rets)
  0087  CALL      R8 = call(R8, 1 args, -1 rets)
  0088  SETTABLE  R8[K19('enabled')] = K20(true)
  0089  SETTABLE  R8[K35('sortingOrder')] = R1
  0090  RETURN    return R0..R-1
; ---------- proto6 [TryUpdateBoardInfoBar] ----------
  ; fn ?  line 175-190 np=1 va=0 ms=7 code=14 consts=5 upvals=1 protos=1
  ;   K[0]='itemModel'
  ;   K[1]='GetComponent'
  ;   K[2]='ItemCook'
  ;   K[3]='DelayExecuteFuncInView'
  ;   K[4]=0.2
  ;   upvals: _ENV
  ;   locals: self(0-14), isEquipment(4-14)
  0000  GETTABLE  R1 = R0[K0('itemModel')]
  0001  SELF      R2 = R1[K1('GetComponent')] (self)
  0002  GETTABUP  R3 = _ENV[K2('ItemCook')]
  0003  CALL      R1 = call(R1, 1 args, 2 rets)
  0004  TEST      if not R1 then   -> -131065
  0005  JMP       (jump)   -> 7
  0006  RETURN    return R0..R-1
  0007  GETTABUP  R2 = _ENV[K3('DelayExecuteFuncInView')]
  0008  CLOSURE   R3 = closure proto0
  0009  LOADK     R4 = K4 0.2
  0010  MOVE      R5 = R0
  0011  LOADBOOL  R6 = true
  0012  CALL      R2 = call(R2, 0 args, 4 rets)
  0013  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 182-189 np=0 va=0 ms=4 code=27 consts=15 upvals=2 protos=0
    ;   K[0]='TutorialHelper'
    ;   K[1]='HighlightBoardInfoBar'
    ;   K[2]='MainBoardView'
    ;   K[3]='GetInstance'
    ;   K[4]='UpdateBoardInfoBar'
    ;   K[5]='itemModel'
    ;   K[6]='m_highlighted'
    ;   K[7]=true
    ;   K[8]='EventDispatcher'
    ;   K[9]='AddListener'
    ;   K[10]='EEventType'
    ;   K[11]='OnViewWillClose'
    ;   K[12]='_OnViewWillClose'
    ;   K[13]='ItemDetailWindowUpdated'
    ;   K[14]='_ResetBoardInfoBar'
    ;   upvals: _ENV, self
    0000  GETTABUP  R0 = _ENV[K0('TutorialHelper')]
    0001  GETTABLE  R0 = R0[K1('HighlightBoardInfoBar')]
    0002  LOADBOOL  R1 = true
    0003  CALL      R0 = call(R0, 0 args, 1 rets)
    0004  GETTABUP  R0 = _ENV[K2('MainBoardView')]
    0005  GETTABLE  R0 = R0[K3('GetInstance')]
    0006  CALL      R0 = call(R0, 1 args, 0 rets)
    0007  SELF      R1 = R0[K4('UpdateBoardInfoBar')] (self)
    0008  GETTABUP  R2 = self[K5('itemModel')]
    0009  LOADBOOL  R3 = false
    0010  CALL      R0 = call(R0, 0 args, 3 rets)
    0011  SETTABUP  self[K6('m_highlighted')] = K7(true)
    0012  GETTABUP  R0 = _ENV[K8('EventDispatcher')]
    0013  GETTABLE  R0 = R0[K9('AddListener')]
    0014  GETTABUP  R1 = _ENV[K10('EEventType')]
    0015  GETTABLE  R1 = R1[K11('OnViewWillClose')]
    0016  GETUPVAL  R2 = _ENV
    0017  GETTABUP  R3 = self[K12('_OnViewWillClose')]
    0018  CALL      R0 = call(R0, 0 args, 3 rets)
    0019  GETTABUP  R0 = _ENV[K8('EventDispatcher')]
    0020  GETTABLE  R0 = R0[K9('AddListener')]
    0021  GETTABUP  R1 = _ENV[K10('EEventType')]
    0022  GETTABLE  R1 = R1[K13('ItemDetailWindowUpdated')]
    0023  GETUPVAL  R2 = _ENV
    0024  GETTABUP  R3 = self[K14('_ResetBoardInfoBar')]
    0025  CALL      R0 = call(R0, 0 args, 3 rets)
    0026  RETURN    return R0..R-1
; ---------- proto7 [_OnViewWillClose] ----------
  ; fn ?  line 192-196 np=1 va=0 ms=4 code=14 consts=8 upvals=1 protos=0
  ;   K[0]='m_highlighted'
  ;   K[1]='GM'
  ;   K[2]='UIManager'
  ;   K[3]='GetOpenedViewByName'
  ;   K[4]='UIPrefabConfigName'
  ;   K[5]='ItemDetailWindow'
  ;   K[6]=nil
  ;   K[7]='_ResetBoardInfoBar'
  ;   upvals: _ENV
  ;   locals: self(0-14)
  0000  GETTABLE  R1 = R0[K0('m_highlighted')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 13
  0003  GETTABUP  R1 = _ENV[K1('GM')]
  0004  GETTABLE  R1 = R1[K2('UIManager')]
  0005  SELF      R2 = R1[K3('GetOpenedViewByName')] (self)
  0006  GETTABUP  R3 = _ENV[K4('UIPrefabConfigName')]
  0007  GETTABLE  R3 = R3[K5('ItemDetailWindow')]
  0008  CALL      R1 = call(R1, 1 args, 2 rets)
  0009  EQ        if R0 eq K6(nil)   -> -130287
  0010  JMP       (jump)   -> 13
  0011  SELF      R2 = R0[K7('_ResetBoardInfoBar')] (self)
  0012  CALL      R1 = call(R1, 0 args, 1 rets)
  0013  RETURN    return R0..R-1
; ---------- proto8 [_ResetBoardInfoBar] ----------
  ; fn ?  line 198-209 np=1 va=0 ms=6 code=20 consts=10 upvals=1 protos=0
  ;   K[0]='EventDispatcher'
  ;   K[1]='RemoveTarget'
  ;   K[2]='TutorialHelper'
  ;   K[3]='DehighlightBoardInfoBar'
  ;   K[4]='MainBoardView'
  ;   K[5]='GetInstance'
  ;   K[6]='UpdateBoardInfoBar'
  ;   K[7]='GetSelectedItemModel'
  ;   K[8]='m_highlighted'
  ;   K[9]=false
  ;   upvals: _ENV
  ;   locals: self(0-20), mainBoardView(10-20)
  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  GETTABUP  R1 = _ENV[K2('TutorialHelper')]
  0005  GETTABLE  R1 = R1[K3('DehighlightBoardInfoBar')]
  0006  CALL      R1 = call(R1, 0 args, 0 rets)
  0007  GETTABUP  R1 = _ENV[K4('MainBoardView')]
  0008  GETTABLE  R1 = R1[K5('GetInstance')]
  0009  CALL      R1 = call(R1, 1 args, 0 rets)
  0010  TEST      if not R1 then   -> -131059
  0011  JMP       (jump)   -> 13
  0012  RETURN    return R0..R-1
  0013  SELF      R3 = R1[K6('UpdateBoardInfoBar')] (self)
  0014  SELF      R5 = R1[K7('GetSelectedItemModel')] (self)
  0015  CALL      R4 = call(R4, 1 args, 1 rets)
  0016  LOADBOOL  R5 = true
  0017  CALL      R2 = call(R2, 0 args, 3 rets)
  0018  SETTABLE  R0[K8('m_highlighted')] = K9(false)
  0019  RETURN    return R0..R-1
; ---------- proto9 [OnClick] ----------
  ; fn ?  line 211-213 np=1 va=0 ms=4 code=5 consts=2 upvals=0 protos=0
  ;   K[0]='window'
  ;   K[1]='TryRetrieveItem'
  ;   locals: self(0-5)
  0000  GETTABLE  R1 = R0[K0('window')]
  0001  SELF      R2 = R1[K1('TryRetrieveItem')] (self)
  0002  MOVE      R3 = R0
  0003  CALL      R1 = call(R1, 0 args, 2 rets)
  0004  RETURN    return R0..R-1
; ---------- proto10 [OnRetrieved] ----------
  ; fn ?  line 215-218 np=1 va=0 ms=5 code=13 consts=8 upvals=1 protos=0
  ;   K[0]='m_itemViewRoot'
  ;   K[1]='DOScale'
  ;   K[2]=0
  ;   K[3]=0.3
  ;   K[4]='SetEase'
  ;   K[5]='Ease'
  ;   K[6]='InBack'
  ;   K[7]=2
  ;   upvals: _ENV
  ;   locals: self(0-13)
  0000  GETTABLE  R1 = R0[K0('m_itemViewRoot')]
  0001  SELF      R2 = R1[K1('DOScale')] (self)
  0002  LOADK     R3 = K2 0
  0003  LOADK     R4 = K3 0.3
  0004  CALL      R1 = call(R1, 1 args, 3 rets)
  0005  SELF      R2 = R1[K4('SetEase')] (self)
  0006  GETTABUP  R3 = _ENV[K5('Ease')]
  0007  GETTABLE  R3 = R3[K6('InBack')]
  0008  LOADK     R4 = K7 2
  0009  CALL      R1 = call(R1, 0 args, 3 rets)
  0010  LOADK     R1 = K3 0.3
  0011  RETURN    return R1..R0
  0012  RETURN    return R0..R-1
; ---------- proto11 [GetItemTrans] ----------
  ; fn ?  line 220-222 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_itemViewRoot'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_itemViewRoot')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto12 [HideAll] ----------
  ; fn ?  line 224-226 np=1 va=0 ms=4 code=7 consts=4 upvals=1 protos=0
  ;   K[0]='UIUtil'
  ;   K[1]='SetActive'
  ;   K[2]='m_rootRect'
  ;   K[3]='gameObject'
  ;   upvals: _ENV
  ;   locals: self(0-7)
  0000  GETTABUP  R1 = _ENV[K0('UIUtil')]
  0001  GETTABLE  R1 = R1[K1('SetActive')]
  0002  GETTABLE  R2 = R0[K2('m_rootRect')]
  0003  GETTABLE  R2 = R2[K3('gameObject')]
  0004  LOADBOOL  R3 = false
  0005  CALL      R1 = call(R1, 0 args, 2 rets)
  0006  RETURN    return R0..R-1
