# BlockActivity_View_BlockCubeView_1528.luac
; fn @BlockCubeView.lua  line 0-0 np=0 va=1 ms=2 code=33 consts=18 upvals=1 protos=7
;   K[0]='EBlockCubeViewState'
;   K[1]='Empty'
;   K[2]=0
;   K[3]='Valid'
;   K[4]=1
;   K[5]='Shadow'
;   K[6]=2
;   K[7]='Highlight'
;   K[8]=3
;   K[9]='BlockCubeView'
;   K[10]='__index'
;   K[11]='Init'
;   K[12]='SetViewState'
;   K[13]='ShowBgEffect'
;   K[14]='ResetBgEffect'
;   K[15]='GetBgEffectPrefab'
;   K[16]='ShowDisappearEffect'
;   K[17]='GetDisappearEffectPrefab'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABLE  R0[K1('Empty')] = K2(0)
0002  SETTABLE  R0[K3('Valid')] = K4(1)
0003  SETTABLE  R0[K5('Shadow')] = K6(2)
0004  SETTABLE  R0[K7('Highlight')] = K8(3)
0005  SETTABUP  _ENV[K0('EBlockCubeViewState')] = R0
0006  NEWTABLE  R0 = {} (0 items)
0007  SETTABUP  _ENV[K9('BlockCubeView')] = R0
0008  GETTABUP  R0 = _ENV[K9('BlockCubeView')]
0009  GETTABUP  R1 = _ENV[K9('BlockCubeView')]
0010  SETTABLE  R0[K10('__index')] = R1
0011  GETTABUP  R0 = _ENV[K9('BlockCubeView')]
0012  CLOSURE   R1 = closure proto0
0013  SETTABLE  R0[K11('Init')] = R1
0014  GETTABUP  R0 = _ENV[K9('BlockCubeView')]
0015  CLOSURE   R1 = closure proto1
0016  SETTABLE  R0[K12('SetViewState')] = R1
0017  GETTABUP  R0 = _ENV[K9('BlockCubeView')]
0018  CLOSURE   R1 = closure proto2
0019  SETTABLE  R0[K13('ShowBgEffect')] = R1
0020  GETTABUP  R0 = _ENV[K9('BlockCubeView')]
0021  CLOSURE   R1 = closure proto3
0022  SETTABLE  R0[K14('ResetBgEffect')] = R1
0023  GETTABUP  R0 = _ENV[K9('BlockCubeView')]
0024  CLOSURE   R1 = closure proto4
0025  SETTABLE  R0[K15('GetBgEffectPrefab')] = R1
0026  GETTABUP  R0 = _ENV[K9('BlockCubeView')]
0027  CLOSURE   R1 = closure proto5
0028  SETTABLE  R0[K16('ShowDisappearEffect')] = R1
0029  GETTABUP  R0 = _ENV[K9('BlockCubeView')]
0030  CLOSURE   R1 = closure proto6
0031  SETTABLE  R0[K17('GetDisappearEffectPrefab')] = R1
0032  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 12-17 np=4 va=0 ms=6 code=8 consts=5 upvals=0 protos=0
  ;   K[0]='m_boardView'
  ;   K[1]='m_boardModel'
  ;   K[2]='GetModel'
  ;   K[3]='m_x'
  ;   K[4]='m_y'
  ;   locals: self(0-8), boardView(0-8), x(0-8), y(0-8)
  0000  SETTABLE  R0[K0('m_boardView')] = R1
  0001  GETTABLE  R4 = R0[K0('m_boardView')]
  0002  SELF      R5 = R4[K2('GetModel')] (self)
  0003  CALL      R4 = call(R4, 1 args, 1 rets)
  0004  SETTABLE  R0[K1('m_boardModel')] = R4
  0005  SETTABLE  R0[K3('m_x')] = R2
  0006  SETTABLE  R0[K4('m_y')] = R3
  0007  RETURN    return R0..R-1
; ---------- proto1 [SetViewState] ----------
  ; fn ?  line 19-24 np=2 va=0 ms=5 code=32 consts=10 upvals=1 protos=0
  ;   K[0]='UIUtil'
  ;   K[1]='SetActive'
  ;   K[2]='m_cubeGo'
  ;   K[3]='EBlockCubeViewState'
  ;   K[4]='Valid'
  ;   K[5]='m_cubeShadowGo'
  ;   K[6]='Shadow'
  ;   K[7]='m_cubeHighlightGo'
  ;   K[8]='Highlight'
  ;   K[9]='m_state'
  ;   upvals: _ENV
  ;   locals: self(0-32), viewState(0-32)
  0000  GETTABUP  R2 = _ENV[K0('UIUtil')]
  0001  GETTABLE  R2 = R2[K1('SetActive')]
  0002  GETTABLE  R3 = R0[K2('m_cubeGo')]
  0003  GETTABUP  R4 = _ENV[K3('EBlockCubeViewState')]
  0004  GETTABLE  R4 = R4[K4('Valid')]
  0005  EQ        if R1 eq R4   -> -130549
  0006  JMP       (jump)   -> 8
  0007  LOADBOOL  R4 = false
  0008  LOADBOOL  R4 = true
  0009  CALL      R2 = call(R2, 0 args, 2 rets)
  0010  GETTABUP  R2 = _ENV[K0('UIUtil')]
  0011  GETTABLE  R2 = R2[K1('SetActive')]
  0012  GETTABLE  R3 = R0[K5('m_cubeShadowGo')]
  0013  GETTABUP  R4 = _ENV[K3('EBlockCubeViewState')]
  0014  GETTABLE  R4 = R4[K6('Shadow')]
  0015  EQ        if R1 eq R4   -> -130539
  0016  JMP       (jump)   -> 18
  0017  LOADBOOL  R4 = false
  0018  LOADBOOL  R4 = true
  0019  CALL      R2 = call(R2, 0 args, 2 rets)
  0020  GETTABUP  R2 = _ENV[K0('UIUtil')]
  0021  GETTABLE  R2 = R2[K1('SetActive')]
  0022  GETTABLE  R3 = R0[K7('m_cubeHighlightGo')]
  0023  GETTABUP  R4 = _ENV[K3('EBlockCubeViewState')]
  0024  GETTABLE  R4 = R4[K8('Highlight')]
  0025  EQ        if R1 eq R4   -> -130529
  0026  JMP       (jump)   -> 28
  0027  LOADBOOL  R4 = false
  0028  LOADBOOL  R4 = true
  0029  CALL      R2 = call(R2, 0 args, 2 rets)
  0030  SETTABLE  R0[K9('m_state')] = R1
  0031  RETURN    return R0..R-1
; ---------- proto2 [ShowBgEffect] ----------
  ; fn ?  line 26-49 np=2 va=0 ms=7 code=46 consts=19 upvals=1 protos=0
  ;   K[0]='m_bgIndex'
  ;   K[1]='UIUtil'
  ;   K[2]='IsEmptyComponent'
  ;   K[3]='m_bgEffectGo'
  ;   K[4]='GameObject'
  ;   K[5]='Destroy'
  ;   K[6]=nil
  ;   K[7]='GetBgEffectPrefab'
  ;   K[8]='Instantiate'
  ;   K[9]='m_boardView'
  ;   K[10]='GetBehindEffectContentRect'
  ;   K[11]='transform'
  ;   K[12]='position'
  ;   K[13]='m_state'
  ;   K[14]='EBlockCubeViewState'
  ;   K[15]='Valid'
  ;   K[16]='m_originState'
  ;   K[17]='SetViewState'
  ;   K[18]='Highlight'
  ;   upvals: _ENV
  ;   locals: self(0-46), index(0-46), prefab(18-46)
  0000  GETTABLE  R2 = R0[K0('m_bgIndex')]
  0001  EQ        if R0 eq R1   -> -130044
  0002  JMP       (jump)   -> 4
  0003  RETURN    return R0..R-1
  0004  GETTABUP  R2 = _ENV[K1('UIUtil')]
  0005  GETTABLE  R2 = R2[K2('IsEmptyComponent')]
  0006  GETTABLE  R3 = R0[K3('m_bgEffectGo')]
  0007  CALL      R2 = call(R2, 1 args, 1 rets)
  0008  TEST      if not R2 then   -> -131061
  0009  JMP       (jump)   -> 15
  0010  GETTABUP  R2 = _ENV[K4('GameObject')]
  0011  GETTABLE  R2 = R2[K5('Destroy')]
  0012  GETTABLE  R3 = R0[K3('m_bgEffectGo')]
  0013  CALL      R2 = call(R2, 0 args, 1 rets)
  0014  SETTABLE  R0[K3('m_bgEffectGo')] = K6(nil)
  0015  SELF      R3 = R0[K7('GetBgEffectPrefab')] (self)
  0016  MOVE      R4 = R0
  0017  CALL      R2 = call(R2, 1 args, 2 rets)
  0018  EQ        if R1 eq K6(nil)   -> -129766
  0019  JMP       (jump)   -> 33
  0020  GETTABUP  R3 = _ENV[K4('GameObject')]
  0021  GETTABLE  R3 = R3[K8('Instantiate')]
  0022  MOVE      R4 = R0
  0023  GETTABLE  R5 = R0[K9('m_boardView')]
  0024  SELF      R6 = R5[K10('GetBehindEffectContentRect')] (self)
  0025  CALL      R5 = call(R5, -1 args, 1 rets)
  0026  CALL      R3 = call(R3, 1 args, -1 rets)
  0027  SETTABLE  R0[K3('m_bgEffectGo')] = R3
  0028  GETTABLE  R3 = R0[K3('m_bgEffectGo')]
  0029  GETTABLE  R3 = R3[K11('transform')]
  0030  GETTABLE  R4 = R0[K11('transform')]
  0031  GETTABLE  R4 = R4[K12('position')]
  0032  SETTABLE  R3[K12('position')] = R4
  0033  GETTABLE  R3 = R0[K13('m_state')]
  0034  GETTABUP  R4 = _ENV[K14('EBlockCubeViewState')]
  0035  GETTABLE  R4 = R4[K15('Valid')]
  0036  EQ        if R0 eq R4   -> -129494
  0037  JMP       (jump)   -> 44
  0038  GETTABLE  R3 = R0[K13('m_state')]
  0039  SETTABLE  R0[K16('m_originState')] = R3
  0040  SELF      R4 = R0[K17('SetViewState')] (self)
  0041  GETTABUP  R5 = _ENV[K14('EBlockCubeViewState')]
  0042  GETTABLE  R5 = R5[K18('Highlight')]
  0043  CALL      R3 = call(R3, 0 args, 2 rets)
  0044  SETTABLE  R0[K0('m_bgIndex')] = R1
  0045  RETURN    return R0..R-1
; ---------- proto3 [ResetBgEffect] ----------
  ; fn ?  line 51-62 np=1 va=0 ms=4 code=20 consts=9 upvals=1 protos=0
  ;   K[0]='UIUtil'
  ;   K[1]='IsEmptyComponent'
  ;   K[2]='m_bgEffectGo'
  ;   K[3]='GameObject'
  ;   K[4]='Destroy'
  ;   K[5]=nil
  ;   K[6]='m_bgIndex'
  ;   K[7]='m_originState'
  ;   K[8]='SetViewState'
  ;   upvals: _ENV
  ;   locals: self(0-20)
  0000  GETTABUP  R1 = _ENV[K0('UIUtil')]
  0001  GETTABLE  R1 = R1[K1('IsEmptyComponent')]
  0002  GETTABLE  R2 = R0[K2('m_bgEffectGo')]
  0003  CALL      R1 = call(R1, 1 args, 1 rets)
  0004  TEST      if not R1 then   -> -131065
  0005  JMP       (jump)   -> 11
  0006  GETTABUP  R1 = _ENV[K3('GameObject')]
  0007  GETTABLE  R1 = R1[K4('Destroy')]
  0008  GETTABLE  R2 = R0[K2('m_bgEffectGo')]
  0009  CALL      R1 = call(R1, 0 args, 1 rets)
  0010  SETTABLE  R0[K2('m_bgEffectGo')] = K5(nil)
  0011  SETTABLE  R0[K6('m_bgIndex')] = K5(nil)
  0012  GETTABLE  R1 = R0[K7('m_originState')]
  0013  EQ        if R1 eq K5(nil)   -> -130284
  0014  JMP       (jump)   -> 19
  0015  SELF      R2 = R0[K8('SetViewState')] (self)
  0016  GETTABLE  R3 = R0[K7('m_originState')]
  0017  CALL      R1 = call(R1, 0 args, 2 rets)
  0018  SETTABLE  R0[K7('m_originState')] = K5(nil)
  0019  RETURN    return R0..R-1
; ---------- proto4 [GetBgEffectPrefab] ----------
  ; fn ?  line 64-66 np=2 va=0 ms=4 code=6 consts=1 upvals=0 protos=0
  ;   K[0]='m_bgEffectPrefab'
  ;   locals: self(0-6), index(0-6)
  0000  LOADK     R2 = K0 'm_bgEffectPrefab'
  0001  MOVE      R3 = R0
  0002  CONCAT    R2 = concat(R2..R2)
  0003  GETTABLE  R2 = R0[R2]
  0004  RETURN    return R2..R1
  0005  RETURN    return R0..R-1
; ---------- proto5 [ShowDisappearEffect] ----------
  ; fn ?  line 68-73 np=2 va=0 ms=6 code=11 consts=5 upvals=1 protos=0
  ;   K[0]='GetDisappearEffectPrefab'
  ;   K[1]=nil
  ;   K[2]='GameObject'
  ;   K[3]='Instantiate'
  ;   K[4]='m_frontEffectRect'
  ;   upvals: _ENV
  ;   locals: self(0-11), index(0-11), prefab(3-11)
  0000  SELF      R3 = R0[K0('GetDisappearEffectPrefab')] (self)
  0001  MOVE      R4 = R0
  0002  CALL      R2 = call(R2, 1 args, 2 rets)
  0003  EQ        if R1 eq K1(nil)   -> -129786
  0004  JMP       (jump)   -> 10
  0005  GETTABUP  R3 = _ENV[K2('GameObject')]
  0006  GETTABLE  R3 = R3[K3('Instantiate')]
  0007  MOVE      R4 = R0
  0008  GETTABLE  R5 = R0[K4('m_frontEffectRect')]
  0009  CALL      R3 = call(R3, 0 args, 2 rets)
  0010  RETURN    return R0..R-1
; ---------- proto6 [GetDisappearEffectPrefab] ----------
  ; fn ?  line 75-77 np=2 va=0 ms=4 code=6 consts=1 upvals=0 protos=0
  ;   K[0]='m_disappearPrefab'
  ;   locals: self(0-6), index(0-6)
  0000  LOADK     R2 = K0 'm_disappearPrefab'
  0001  MOVE      R3 = R0
  0002  CONCAT    R2 = concat(R2..R2)
  0003  GETTABLE  R2 = R0[R2]
  0004  RETURN    return R2..R1
  0005  RETURN    return R0..R-1
