# UI_Button_InventoryButton_304.luac
; fn @InventoryButton.lua  line 0-0 np=0 va=1 ms=3 code=54 consts=19 upvals=1 protos=15
;   K[0]='InventoryButton'
;   K[1]='setmetatable'
;   K[2]='HudGeneralButton'
;   K[3]='__index'
;   K[4]='Awake'
;   K[5]='_CheckOpen'
;   K[6]='_UpdateContent'
;   K[7]='OnViewOpened'
;   K[8]='OnViewClosed'
;   K[9]='OnDestroy'
;   K[10]='OnClick'
;   K[11]='PlayItemInEffect'
;   K[12]='PlayDragStartEffect'
;   K[13]='PlayDragEndEffect'
;   K[14]='_UpdateIconState'
;   K[15]='_UpdateInventoryState'
;   K[16]='OnItemSpreadFailed'
;   K[17]='SetClickEnabled'
;   K[18]='SetPlayTutorialAnim'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('HudGeneralButton')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('InventoryButton')] = R0
0005  GETTABUP  R0 = _ENV[K0('InventoryButton')]
0006  GETTABUP  R1 = _ENV[K0('InventoryButton')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('InventoryButton')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Awake')] = R1
0011  GETTABUP  R0 = _ENV[K0('InventoryButton')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('_CheckOpen')] = R1
0014  GETTABUP  R0 = _ENV[K0('InventoryButton')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('_UpdateContent')] = R1
0017  GETTABUP  R0 = _ENV[K0('InventoryButton')]
0018  CLOSURE   R1 = closure proto3
0019  SETTABLE  R0[K7('OnViewOpened')] = R1
0020  GETTABUP  R0 = _ENV[K0('InventoryButton')]
0021  CLOSURE   R1 = closure proto4
0022  SETTABLE  R0[K8('OnViewClosed')] = R1
0023  GETTABUP  R0 = _ENV[K0('InventoryButton')]
0024  CLOSURE   R1 = closure proto5
0025  SETTABLE  R0[K9('OnDestroy')] = R1
0026  GETTABUP  R0 = _ENV[K0('InventoryButton')]
0027  CLOSURE   R1 = closure proto6
0028  SETTABLE  R0[K10('OnClick')] = R1
0029  GETTABUP  R0 = _ENV[K0('InventoryButton')]
0030  CLOSURE   R1 = closure proto7
0031  SETTABLE  R0[K11('PlayItemInEffect')] = R1
0032  GETTABUP  R0 = _ENV[K0('InventoryButton')]
0033  CLOSURE   R1 = closure proto8
0034  SETTABLE  R0[K12('PlayDragStartEffect')] = R1
0035  GETTABUP  R0 = _ENV[K0('InventoryButton')]
0036  CLOSURE   R1 = closure proto9
0037  SETTABLE  R0[K13('PlayDragEndEffect')] = R1
0038  GETTABUP  R0 = _ENV[K0('InventoryButton')]
0039  CLOSURE   R1 = closure proto10
0040  SETTABLE  R0[K14('_UpdateIconState')] = R1
0041  GETTABUP  R0 = _ENV[K0('InventoryButton')]
0042  CLOSURE   R1 = closure proto11
0043  SETTABLE  R0[K15('_UpdateInventoryState')] = R1
0044  GETTABUP  R0 = _ENV[K0('InventoryButton')]
0045  CLOSURE   R1 = closure proto12
0046  SETTABLE  R0[K16('OnItemSpreadFailed')] = R1
0047  GETTABUP  R0 = _ENV[K0('InventoryButton')]
0048  CLOSURE   R1 = closure proto13
0049  SETTABLE  R0[K17('SetClickEnabled')] = R1
0050  GETTABUP  R0 = _ENV[K0('InventoryButton')]
0051  CLOSURE   R1 = closure proto14
0052  SETTABLE  R0[K18('SetPlayTutorialAnim')] = R1
0053  RETURN    return R0..R-1
; ---------- proto0 [Awake] ----------
  ; fn ?  line 10-30 np=1 va=0 ms=5 code=85 consts=24 upvals=1 protos=1
  ;   K[0]='HudGeneralButton'
  ;   K[1]='Awake'
  ;   K[2]='EventDispatcher'
  ;   K[3]='AddListener'
  ;   K[4]='EEventType'
  ;   K[5]='FunctionOpen'
  ;   K[6]='_CheckOpen'
  ;   K[7]='OpenView'
  ;   K[8]='OnViewOpened'
  ;   K[9]='CloseView'
  ;   K[10]='OnViewClosed'
  ;   K[11]='ItemSpreadFailed'
  ;   K[12]='OnItemSpreadFailed'
  ;   K[13]='ItemStored'
  ;   K[14]='_UpdateContent'
  ;   K[15]='ItemRetrieved'
  ;   K[16]='OnInventoryItemSold'
  ;   K[17]='OnInventoryItemUndoSell'
  ;   K[18]='OnInventoryCapacityUpdate'
  ;   K[19]='OnClaimedOrderGroupReward'
  ;   K[20]='_PlayContinueEffect'
  ;   K[21]='m_bEnabled'
  ;   K[22]=true
  ;   K[23]='_UpdateInventoryState'
  ;   upvals: _ENV
  ;   locals: self(0-85)
  0000  GETTABUP  R1 = _ENV[K0('HudGeneralButton')]
  0001  GETTABLE  R1 = R1[K1('Awake')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABUP  R1 = _ENV[K2('EventDispatcher')]
  0005  GETTABLE  R1 = R1[K3('AddListener')]
  0006  GETTABUP  R2 = _ENV[K4('EEventType')]
  0007  GETTABLE  R2 = R2[K5('FunctionOpen')]
  0008  MOVE      R3 = R0
  0009  GETTABLE  R4 = R0[K6('_CheckOpen')]
  0010  CALL      R1 = call(R1, 0 args, 3 rets)
  0011  GETTABUP  R1 = _ENV[K2('EventDispatcher')]
  0012  GETTABLE  R1 = R1[K3('AddListener')]
  0013  GETTABUP  R2 = _ENV[K4('EEventType')]
  0014  GETTABLE  R2 = R2[K7('OpenView')]
  0015  MOVE      R3 = R0
  0016  GETTABLE  R4 = R0[K8('OnViewOpened')]
  0017  CALL      R1 = call(R1, 0 args, 3 rets)
  0018  GETTABUP  R1 = _ENV[K2('EventDispatcher')]
  0019  GETTABLE  R1 = R1[K3('AddListener')]
  0020  GETTABUP  R2 = _ENV[K4('EEventType')]
  0021  GETTABLE  R2 = R2[K9('CloseView')]
  0022  MOVE      R3 = R0
  0023  GETTABLE  R4 = R0[K10('OnViewClosed')]
  0024  CALL      R1 = call(R1, 0 args, 3 rets)
  0025  GETTABUP  R1 = _ENV[K2('EventDispatcher')]
  0026  GETTABLE  R1 = R1[K3('AddListener')]
  0027  GETTABUP  R2 = _ENV[K4('EEventType')]
  0028  GETTABLE  R2 = R2[K11('ItemSpreadFailed')]
  0029  MOVE      R3 = R0
  0030  GETTABLE  R4 = R0[K12('OnItemSpreadFailed')]
  0031  CALL      R1 = call(R1, 0 args, 3 rets)
  0032  GETTABUP  R1 = _ENV[K2('EventDispatcher')]
  0033  GETTABLE  R1 = R1[K3('AddListener')]
  0034  GETTABUP  R2 = _ENV[K4('EEventType')]
  0035  GETTABLE  R2 = R2[K13('ItemStored')]
  0036  MOVE      R3 = R0
  0037  GETTABLE  R4 = R0[K14('_UpdateContent')]
  0038  CALL      R1 = call(R1, 0 args, 3 rets)
  0039  GETTABUP  R1 = _ENV[K2('EventDispatcher')]
  0040  GETTABLE  R1 = R1[K3('AddListener')]
  0041  GETTABUP  R2 = _ENV[K4('EEventType')]
  0042  GETTABLE  R2 = R2[K15('ItemRetrieved')]
  0043  MOVE      R3 = R0
  0044  GETTABLE  R4 = R0[K14('_UpdateContent')]
  0045  CALL      R1 = call(R1, 0 args, 3 rets)
  0046  GETTABUP  R1 = _ENV[K2('EventDispatcher')]
  0047  GETTABLE  R1 = R1[K3('AddListener')]
  0048  GETTABUP  R2 = _ENV[K4('EEventType')]
  0049  GETTABLE  R2 = R2[K16('OnInventoryItemSold')]
  0050  MOVE      R3 = R0
  0051  GETTABLE  R4 = R0[K14('_UpdateContent')]
  0052  CALL      R1 = call(R1, 0 args, 3 rets)
  0053  GETTABUP  R1 = _ENV[K2('EventDispatcher')]
  0054  GETTABLE  R1 = R1[K3('AddListener')]
  0055  GETTABUP  R2 = _ENV[K4('EEventType')]
  0056  GETTABLE  R2 = R2[K17('OnInventoryItemUndoSell')]
  0057  MOVE      R3 = R0
  0058  GETTABLE  R4 = R0[K14('_UpdateContent')]
  0059  CALL      R1 = call(R1, 0 args, 3 rets)
  0060  GETTABUP  R1 = _ENV[K2('EventDispatcher')]
  0061  GETTABLE  R1 = R1[K3('AddListener')]
  0062  GETTABUP  R2 = _ENV[K4('EEventType')]
  0063  GETTABLE  R2 = R2[K18('OnInventoryCapacityUpdate')]
  0064  MOVE      R3 = R0
  0065  GETTABLE  R4 = R0[K14('_UpdateContent')]
  0066  CALL      R1 = call(R1, 0 args, 3 rets)
  0067  GETTABUP  R1 = _ENV[K2('EventDispatcher')]
  0068  GETTABLE  R1 = R1[K3('AddListener')]
  0069  GETTABUP  R2 = _ENV[K4('EEventType')]
  0070  GETTABLE  R2 = R2[K19('OnClaimedOrderGroupReward')]
  0071  MOVE      R3 = R0
  0072  GETTABLE  R4 = R0[K14('_UpdateContent')]
  0073  CALL      R1 = call(R1, 0 args, 3 rets)
  0074  CLOSURE   R1 = closure proto0
  0075  SETTABLE  R0[K20('_PlayContinueEffect')] = R1
  0076  SETTABLE  R0[K21('m_bEnabled')] = K22(true)
  0077  SELF      R2 = R0[K23('_UpdateInventoryState')] (self)
  0078  LOADBOOL  R3 = false
  0079  CALL      R1 = call(R1, 0 args, 2 rets)
  0080  SELF      R2 = R0[K6('_CheckOpen')] (self)
  0081  CALL      R1 = call(R1, 0 args, 1 rets)
  0082  SELF      R2 = R0[K14('_UpdateContent')] (self)
  0083  CALL      R1 = call(R1, 0 args, 1 rets)
  0084  RETURN    return R0..R-1
  ; ---------- proto0 [_PlayContinueEffect] ----------
    ; fn ?  line 24-24 np=0 va=0 ms=3 code=5 consts=2 upvals=1 protos=0
    ;   K[0]='m_conEffect'
    ;   K[1]='SetActive'
    ;   upvals: self
    0000  GETTABUP  R0 = self[K0('m_conEffect')]
    0001  SELF      R1 = R0[K1('SetActive')] (self)
    0002  LOADBOOL  R2 = true
    0003  CALL      R0 = call(R0, 0 args, 2 rets)
    0004  RETURN    return R0..R-1
; ---------- proto1 [_CheckOpen] ----------
  ; fn ?  line 32-34 np=1 va=0 ms=6 code=10 consts=7 upvals=1 protos=0
  ;   K[0]='gameObject'
  ;   K[1]='SetActive'
  ;   K[2]='GM'
  ;   K[3]='OpenFunctionModel'
  ;   K[4]='IsFunctionOpen'
  ;   K[5]='EFunction'
  ;   K[6]='Inventory'
  ;   upvals: _ENV
  ;   locals: self(0-10)
  0000  GETTABLE  R1 = R0[K0('gameObject')]
  0001  SELF      R2 = R1[K1('SetActive')] (self)
  0002  GETTABUP  R3 = _ENV[K2('GM')]
  0003  GETTABLE  R3 = R3[K3('OpenFunctionModel')]
  0004  SELF      R4 = R3[K4('IsFunctionOpen')] (self)
  0005  GETTABUP  R5 = _ENV[K5('EFunction')]
  0006  GETTABLE  R5 = R5[K6('Inventory')]
  0007  CALL      R3 = call(R3, -1 args, 2 rets)
  0008  CALL      R1 = call(R1, 0 args, -1 rets)
  0009  RETURN    return R0..R-1
; ---------- proto2 [_UpdateContent] ----------
  ; fn ?  line 36-41 np=1 va=0 ms=9 code=19 consts=8 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='MainBoardModel'
  ;   K[2]='GetStoreSlotCount'
  ;   K[3]='GetStoredItemCount'
  ;   K[4]='m_capacityText'
  ;   K[5]='text'
  ;   K[6]='tostring'
  ;   K[7]='/'
  ;   upvals: _ENV
  ;   locals: self(0-19), capacity(4-19), producerNum(4-19), inStoreCount(8-19)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('MainBoardModel')]
  0002  SELF      R2 = R1[K2('GetStoreSlotCount')] (self)
  0003  CALL      R1 = call(R1, 2 args, 1 rets)
  0004  GETTABUP  R3 = _ENV[K0('GM')]
  0005  GETTABLE  R3 = R3[K1('MainBoardModel')]
  0006  SELF      R4 = R3[K3('GetStoredItemCount')] (self)
  0007  CALL      R3 = call(R3, 1 args, 1 rets)
  0008  GETTABLE  R4 = R0[K4('m_capacityText')]
  0009  GETTABUP  R5 = _ENV[K6('tostring')]
  0010  SUB       R6 = R2 sub R3
  0011  CALL      R5 = call(R5, 1 args, 1 rets)
  0012  LOADK     R6 = K7 '/'
  0013  GETTABUP  R7 = _ENV[K6('tostring')]
  0014  SUB       R8 = R2 sub R1
  0015  CALL      R7 = call(R7, 1 args, 1 rets)
  0016  CONCAT    R5 = concat(R5..R5)
  0017  SETTABLE  R4[K5('text')] = R5
  0018  RETURN    return R0..R-1
; ---------- proto3 [OnViewOpened] ----------
  ; fn ?  line 43-47 np=2 va=0 ms=5 code=9 consts=4 upvals=1 protos=0
  ;   K[0]='name'
  ;   K[1]='UIPrefabConfigName'
  ;   K[2]='InventoryWindow'
  ;   K[3]='_UpdateInventoryState'
  ;   upvals: _ENV
  ;   locals: self(0-9), msg(0-9)
  0000  GETTABLE  R2 = R1[K0('name')]
  0001  GETTABUP  R3 = _ENV[K1('UIPrefabConfigName')]
  0002  GETTABLE  R3 = R3[K2('InventoryWindow')]
  0003  EQ        if R0 eq R3   -> -130040
  0004  JMP       (jump)   -> 8
  0005  SELF      R3 = R0[K3('_UpdateInventoryState')] (self)
  0006  LOADBOOL  R4 = true
  0007  CALL      R2 = call(R2, 0 args, 2 rets)
  0008  RETURN    return R0..R-1
; ---------- proto4 [OnViewClosed] ----------
  ; fn ?  line 49-53 np=2 va=0 ms=5 code=9 consts=4 upvals=1 protos=0
  ;   K[0]='name'
  ;   K[1]='UIPrefabConfigName'
  ;   K[2]='InventoryWindow'
  ;   K[3]='_UpdateInventoryState'
  ;   upvals: _ENV
  ;   locals: self(0-9), msg(0-9)
  0000  GETTABLE  R2 = R1[K0('name')]
  0001  GETTABUP  R3 = _ENV[K1('UIPrefabConfigName')]
  0002  GETTABLE  R3 = R3[K2('InventoryWindow')]
  0003  EQ        if R0 eq R3   -> -130040
  0004  JMP       (jump)   -> 8
  0005  SELF      R3 = R0[K3('_UpdateInventoryState')] (self)
  0006  LOADBOOL  R4 = false
  0007  CALL      R2 = call(R2, 0 args, 2 rets)
  0008  RETURN    return R0..R-1
; ---------- proto5 [OnDestroy] ----------
  ; fn ?  line 55-58 np=1 va=0 ms=3 code=9 consts=5 upvals=1 protos=0
  ;   K[0]='HudGeneralButton'
  ;   K[1]='OnDestroy'
  ;   K[2]='Scheduler'
  ;   K[3]='Unschedule'
  ;   K[4]='_PlayContinueEffect'
  ;   upvals: _ENV
  ;   locals: self(0-9)
  0000  GETTABUP  R1 = _ENV[K0('HudGeneralButton')]
  0001  GETTABLE  R1 = R1[K1('OnDestroy')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABUP  R1 = _ENV[K2('Scheduler')]
  0005  GETTABLE  R1 = R1[K3('Unschedule')]
  0006  GETTABLE  R2 = R0[K4('_PlayContinueEffect')]
  0007  CALL      R1 = call(R1, 0 args, 1 rets)
  0008  RETURN    return R0..R-1
; ---------- proto6 [OnClick] ----------
  ; fn ?  line 60-79 np=1 va=0 ms=7 code=33 consts=13 upvals=1 protos=0
  ;   K[0]='m_bEnabled'
  ;   K[1]='UIPrefabConfigName'
  ;   K[2]='InventoryWindow'
  ;   K[3]='m_bPlayTutorialAnim'
  ;   K[4]=nil
  ;   K[5]='GM'
  ;   K[6]='UIManager'
  ;   K[7]='IsViewExisting'
  ;   K[8]='GetOpenedTopViewByType'
  ;   K[9]='EViewType'
  ;   K[10]='Window'
  ;   K[11]='Close'
  ;   K[12]='OpenView'
  ;   upvals: _ENV
  ;   locals: self(0-33), windowPrefabName(6-33), param(7-33), topWindow(21-26)
  0000  GETTABLE  R1 = R0[K0('m_bEnabled')]
  0001  TEST      if not R1 then   -> -131068
  0002  JMP       (jump)   -> 4
  0003  RETURN    return R0..R-1
  0004  GETTABUP  R1 = _ENV[K1('UIPrefabConfigName')]
  0005  GETTABLE  R1 = R1[K2('InventoryWindow')]
  0006  GETTABLE  R2 = R0[K3('m_bPlayTutorialAnim')]
  0007  SETTABLE  R0[K3('m_bPlayTutorialAnim')] = K4(nil)
  0008  GETTABUP  R3 = _ENV[K5('GM')]
  0009  GETTABLE  R3 = R3[K6('UIManager')]
  0010  SELF      R4 = R3[K7('IsViewExisting')] (self)
  0011  MOVE      R5 = R0
  0012  CALL      R3 = call(R3, 1 args, 2 rets)
  0013  TEST      if not R3 then   -> -131057
  0014  JMP       (jump)   -> 26
  0015  GETTABUP  R3 = _ENV[K5('GM')]
  0016  GETTABLE  R3 = R3[K6('UIManager')]
  0017  SELF      R4 = R3[K8('GetOpenedTopViewByType')] (self)
  0018  GETTABUP  R5 = _ENV[K9('EViewType')]
  0019  GETTABLE  R5 = R5[K10('Window')]
  0020  CALL      R3 = call(R3, 1 args, 2 rets)
  0021  TEST      if not R3 then   -> -131049
  0022  JMP       (jump)   -> 25
  0023  SELF      R5 = R3[K11('Close')] (self)
  0024  CALL      R4 = call(R4, 0 args, 1 rets)
  0025  RETURN    return R0..R-1
  0026  GETTABUP  R3 = _ENV[K5('GM')]
  0027  GETTABLE  R3 = R3[K6('UIManager')]
  0028  SELF      R4 = R3[K12('OpenView')] (self)
  0029  MOVE      R5 = R0
  0030  MOVE      R6 = R0
  0031  CALL      R3 = call(R3, 0 args, 3 rets)
  0032  RETURN    return R0..R-1
; ---------- proto7 [PlayItemInEffect] ----------
  ; fn ?  line 81-86 np=1 va=0 ms=5 code=22 consts=10 upvals=0 protos=0
  ;   K[0]='m_closeEffect'
  ;   K[1]='SetActive'
  ;   K[2]='transform'
  ;   K[3]='DOScale'
  ;   K[4]=1.2
  ;   K[5]=0.2
  ;   K[6]=1
  ;   K[7]=0.1
  ;   K[8]='SetDelay'
  ;   K[9]='m_inEffect'
  ;   locals: self(0-22)
  0000  GETTABLE  R1 = R0[K0('m_closeEffect')]
  0001  SELF      R2 = R1[K1('SetActive')] (self)
  0002  LOADBOOL  R3 = false
  0003  CALL      R1 = call(R1, 0 args, 2 rets)
  0004  GETTABLE  R1 = R0[K2('transform')]
  0005  SELF      R2 = R1[K3('DOScale')] (self)
  0006  LOADK     R3 = K4 1.2
  0007  LOADK     R4 = K5 0.2
  0008  CALL      R1 = call(R1, 0 args, 3 rets)
  0009  GETTABLE  R1 = R0[K2('transform')]
  0010  SELF      R2 = R1[K3('DOScale')] (self)
  0011  LOADK     R3 = K6 1
  0012  LOADK     R4 = K7 0.1
  0013  CALL      R1 = call(R1, 1 args, 3 rets)
  0014  SELF      R2 = R1[K8('SetDelay')] (self)
  0015  LOADK     R3 = K5 0.2
  0016  CALL      R1 = call(R1, 0 args, 2 rets)
  0017  GETTABLE  R1 = R0[K9('m_inEffect')]
  0018  SELF      R2 = R1[K1('SetActive')] (self)
  0019  LOADBOOL  R3 = true
  0020  CALL      R1 = call(R1, 0 args, 2 rets)
  0021  RETURN    return R0..R-1
; ---------- proto8 [PlayDragStartEffect] ----------
  ; fn ?  line 88-92 np=1 va=0 ms=7 code=16 consts=8 upvals=1 protos=0
  ;   K[0]='_UpdateIconState'
  ;   K[1]='m_openEffect'
  ;   K[2]='SetActive'
  ;   K[3]='Scheduler'
  ;   K[4]='Schedule'
  ;   K[5]='_PlayContinueEffect'
  ;   K[6]=1
  ;   K[7]=0.34
  ;   upvals: _ENV
  ;   locals: self(0-16)
  0000  SELF      R2 = R0[K0('_UpdateIconState')] (self)
  0001  LOADBOOL  R3 = true
  0002  CALL      R1 = call(R1, 0 args, 2 rets)
  0003  GETTABLE  R1 = R0[K1('m_openEffect')]
  0004  SELF      R2 = R1[K2('SetActive')] (self)
  0005  LOADBOOL  R3 = true
  0006  CALL      R1 = call(R1, 0 args, 2 rets)
  0007  GETTABUP  R1 = _ENV[K3('Scheduler')]
  0008  GETTABLE  R1 = R1[K4('Schedule')]
  0009  GETTABLE  R2 = R0[K5('_PlayContinueEffect')]
  0010  MOVE      R3 = R0
  0011  LOADNIL   R4..R4 = nil
  0012  LOADK     R5 = K6 1
  0013  LOADK     R6 = K7 0.34
  0014  CALL      R1 = call(R1, 0 args, 5 rets)
  0015  RETURN    return R0..R-1
; ---------- proto9 [PlayDragEndEffect] ----------
  ; fn ?  line 94-100 np=1 va=0 ms=4 code=20 consts=8 upvals=1 protos=0
  ;   K[0]='Scheduler'
  ;   K[1]='Unschedule'
  ;   K[2]='_PlayContinueEffect'
  ;   K[3]='_UpdateIconState'
  ;   K[4]='m_openEffect'
  ;   K[5]='SetActive'
  ;   K[6]='m_closeEffect'
  ;   K[7]='m_conEffect'
  ;   upvals: _ENV
  ;   locals: self(0-20)
  0000  GETTABUP  R1 = _ENV[K0('Scheduler')]
  0001  GETTABLE  R1 = R1[K1('Unschedule')]
  0002  GETTABLE  R2 = R0[K2('_PlayContinueEffect')]
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  SELF      R2 = R0[K3('_UpdateIconState')] (self)
  0005  LOADBOOL  R3 = false
  0006  CALL      R1 = call(R1, 0 args, 2 rets)
  0007  GETTABLE  R1 = R0[K4('m_openEffect')]
  0008  SELF      R2 = R1[K5('SetActive')] (self)
  0009  LOADBOOL  R3 = false
  0010  CALL      R1 = call(R1, 0 args, 2 rets)
  0011  GETTABLE  R1 = R0[K6('m_closeEffect')]
  0012  SELF      R2 = R1[K5('SetActive')] (self)
  0013  LOADBOOL  R3 = true
  0014  CALL      R1 = call(R1, 0 args, 2 rets)
  0015  GETTABLE  R1 = R0[K7('m_conEffect')]
  0016  SELF      R2 = R1[K5('SetActive')] (self)
  0017  LOADBOOL  R3 = false
  0018  CALL      R1 = call(R1, 0 args, 2 rets)
  0019  RETURN    return R0..R-1
; ---------- proto10 [_UpdateIconState] ----------
  ; fn ?  line 102-106 np=2 va=0 ms=5 code=13 consts=4 upvals=0 protos=0
  ;   K[0]='m_iconNormalGo'
  ;   K[1]='SetActive'
  ;   K[2]='m_iconOpenGo'
  ;   K[3]='m_openEffect2'
  ;   locals: self(0-13), isOpen(0-13)
  0000  GETTABLE  R2 = R0[K0('m_iconNormalGo')]
  0001  SELF      R3 = R2[K1('SetActive')] (self)
  0002  NOT       R4 = not R0
  0003  CALL      R2 = call(R2, 0 args, 2 rets)
  0004  GETTABLE  R2 = R0[K2('m_iconOpenGo')]
  0005  SELF      R3 = R2[K1('SetActive')] (self)
  0006  MOVE      R4 = R0
  0007  CALL      R2 = call(R2, 0 args, 2 rets)
  0008  GETTABLE  R2 = R0[K3('m_openEffect2')]
  0009  SELF      R3 = R2[K1('SetActive')] (self)
  0010  MOVE      R4 = R0
  0011  CALL      R2 = call(R2, 0 args, 2 rets)
  0012  RETURN    return R0..R-1
; ---------- proto11 [_UpdateInventoryState] ----------
  ; fn ?  line 108-112 np=2 va=0 ms=5 code=13 consts=4 upvals=0 protos=0
  ;   K[0]='m_iconRootGo'
  ;   K[1]='SetActive'
  ;   K[2]='m_iconNormalGo'
  ;   K[3]='m_iconOpenGo'
  ;   locals: self(0-13), inInventory(0-13)
  0000  GETTABLE  R2 = R0[K0('m_iconRootGo')]
  0001  SELF      R3 = R2[K1('SetActive')] (self)
  0002  LOADBOOL  R4 = true
  0003  CALL      R2 = call(R2, 0 args, 2 rets)
  0004  GETTABLE  R2 = R0[K2('m_iconNormalGo')]
  0005  SELF      R3 = R2[K1('SetActive')] (self)
  0006  NOT       R4 = not R0
  0007  CALL      R2 = call(R2, 0 args, 2 rets)
  0008  GETTABLE  R2 = R0[K3('m_iconOpenGo')]
  0009  SELF      R3 = R2[K1('SetActive')] (self)
  0010  MOVE      R4 = R0
  0011  CALL      R2 = call(R2, 0 args, 2 rets)
  0012  RETURN    return R0..R-1
; ---------- proto12 [OnItemSpreadFailed] ----------
  ; fn ?  line 114-121 np=2 va=0 ms=5 code=22 consts=11 upvals=1 protos=0
  ;   K[0]='Table'
  ;   K[1]='IsEmpty'
  ;   K[2]='reason'
  ;   K[3]='SpreadFailedReason'
  ;   K[4]='BoardFull'
  ;   K[5]='gameMode'
  ;   K[6]='EGameMode'
  ;   K[7]='ExtraBoard'
  ;   K[8]='m_animator'
  ;   K[9]='SetTrigger'
  ;   K[10]='Shake'
  ;   upvals: _ENV
  ;   locals: self(0-22), msg(0-22)
  0000  GETTABUP  R2 = _ENV[K0('Table')]
  0001  GETTABLE  R2 = R2[K1('IsEmpty')]
  0002  MOVE      R3 = R0
  0003  CALL      R2 = call(R2, 1 args, 1 rets)
  0004  TEST      if not R2 then   -> -131066
  0005  JMP       (jump)   -> 7
  0006  RETURN    return R0..R-1
  0007  GETTABLE  R2 = R1[K2('reason')]
  0008  GETTABUP  R3 = _ENV[K3('SpreadFailedReason')]
  0009  GETTABLE  R3 = R3[K4('BoardFull')]
  0010  EQ        if R0 eq R3   -> -130033
  0011  JMP       (jump)   -> 21
  0012  GETTABLE  R2 = R1[K5('gameMode')]
  0013  GETTABUP  R3 = _ENV[K6('EGameMode')]
  0014  GETTABLE  R3 = R3[K7('ExtraBoard')]
  0015  EQ        if R1 eq R3   -> -130028
  0016  JMP       (jump)   -> 21
  0017  GETTABLE  R2 = R0[K8('m_animator')]
  0018  SELF      R3 = R2[K9('SetTrigger')] (self)
  0019  LOADK     R4 = K10 'Shake'
  0020  CALL      R2 = call(R2, 0 args, 2 rets)
  0021  RETURN    return R0..R-1
; ---------- proto13 [SetClickEnabled] ----------
  ; fn ?  line 123-125 np=2 va=0 ms=2 code=2 consts=1 upvals=0 protos=0
  ;   K[0]='m_bEnabled'
  ;   locals: self(0-2), bEnable(0-2)
  0000  SETTABLE  R0[K0('m_bEnabled')] = R1
  0001  RETURN    return R0..R-1
; ---------- proto14 [SetPlayTutorialAnim] ----------
  ; fn ?  line 127-129 np=2 va=0 ms=2 code=2 consts=1 upvals=0 protos=0
  ;   K[0]='m_bPlayTutorialAnim'
  ;   locals: self(0-2), bPlayTutorialAnim(0-2)
  0000  SETTABLE  R0[K0('m_bPlayTutorialAnim')] = R1
  0001  RETURN    return R0..R-1
