# UI_Button_UIBoardItemTipButton_295.luac
; fn @UIBoardItemTipButton.lua  line 0-0 np=0 va=1 ms=3 code=18 consts=7 upvals=1 protos=3
;   K[0]='UIBoardItemTipButton'
;   K[1]='setmetatable'
;   K[2]='ItemTipButton'
;   K[3]='__index'
;   K[4]='Init'
;   K[5]='UpdateItem'
;   K[6]='_SetVisibility'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('ItemTipButton')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('UIBoardItemTipButton')] = R0
0005  GETTABUP  R0 = _ENV[K0('UIBoardItemTipButton')]
0006  GETTABUP  R1 = _ENV[K0('UIBoardItemTipButton')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('UIBoardItemTipButton')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Init')] = R1
0011  GETTABUP  R0 = _ENV[K0('UIBoardItemTipButton')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('UpdateItem')] = R1
0014  GETTABUP  R0 = _ENV[K0('UIBoardItemTipButton')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('_SetVisibility')] = R1
0017  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 5-7 np=2 va=0 ms=2 code=2 consts=1 upvals=0 protos=0
  ;   K[0]='m_boardModel'
  ;   locals: self(0-2), boardModel(0-2)
  0000  SETTABLE  R0[K0('m_boardModel')] = R1
  0001  RETURN    return R0..R-1
; ---------- proto1 [UpdateItem] ----------
  ; fn ?  line 9-30 np=2 va=0 ms=11 code=48 consts=11 upvals=1 protos=0
  ;   K[0]=nil
  ;   K[1]='GetComponent'
  ;   K[2]='ItemBubble'
  ;   K[3]='ItemCobweb'
  ;   K[4]='ItemRewardBubble'
  ;   K[5]='GetType'
  ;   K[6]='GetInnerItemCode'
  ;   K[7]='UpdateItemType'
  ;   K[8]='EItemDetailWindowRefer'
  ;   K[9]='UIBoard'
  ;   K[10]='_SetVisibility'
  ;   upvals: _ENV
  ;   locals: self(0-48), itemModel(0-48), itemBubble(1-48), itemCobweb(1-48), itemRewardBubble(1-48), itemCode(17-43)
  0000  LOADNIL   R2..R2 = nil
  0001  EQ        if R1 eq K0(nil)   -> -130301
  0002  JMP       (jump)   -> 44
  0003  SELF      R6 = R1[K1('GetComponent')] (self)
  0004  GETTABUP  R7 = _ENV[K2('ItemBubble')]
  0005  CALL      R5 = call(R5, 1 args, 2 rets)
  0006  MOVE      R2 = R0
  0007  SELF      R6 = R1[K1('GetComponent')] (self)
  0008  GETTABUP  R7 = _ENV[K3('ItemCobweb')]
  0009  CALL      R5 = call(R5, 1 args, 2 rets)
  0010  MOVE      R3 = R0
  0011  SELF      R6 = R1[K1('GetComponent')] (self)
  0012  GETTABUP  R7 = _ENV[K4('ItemRewardBubble')]
  0013  CALL      R5 = call(R5, 1 args, 2 rets)
  0014  MOVE      R4 = R0
  0015  SELF      R6 = R1[K5('GetType')] (self)
  0016  CALL      R5 = call(R5, 1 args, 1 rets)
  0017  EQ        if R1 eq K0(nil)   -> -129773
  0018  JMP       (jump)   -> 23
  0019  SELF      R7 = R2[K6('GetInnerItemCode')] (self)
  0020  CALL      R6 = call(R6, 1 args, 1 rets)
  0021  MOVE      R5 = R0
  0022  JMP       (jump)   -> 34
  0023  EQ        if R1 eq K0(nil)   -> -129255
  0024  JMP       (jump)   -> 29
  0025  SELF      R7 = R3[K6('GetInnerItemCode')] (self)
  0026  CALL      R6 = call(R6, 1 args, 1 rets)
  0027  MOVE      R5 = R0
  0028  JMP       (jump)   -> 34
  0029  EQ        if R1 eq K0(nil)   -> -128737
  0030  JMP       (jump)   -> 34
  0031  SELF      R7 = R4[K6('GetInnerItemCode')] (self)
  0032  CALL      R6 = call(R6, 1 args, 1 rets)
  0033  MOVE      R5 = R0
  0034  SELF      R7 = R0[K7('UpdateItemType')] (self)
  0035  MOVE      R8 = R0
  0036  LOADNIL   R9..R9 = nil
  0037  GETTABUP  R10 = _ENV[K8('EItemDetailWindowRefer')]
  0038  GETTABLE  R10 = R10[K9('UIBoard')]
  0039  CALL      R6 = call(R6, 0 args, 4 rets)
  0040  SELF      R7 = R0[K10('_SetVisibility')] (self)
  0041  LOADBOOL  R8 = true
  0042  CALL      R6 = call(R6, 0 args, 2 rets)
  0043  JMP       (jump)   -> 47
  0044  SELF      R6 = R0[K10('_SetVisibility')] (self)
  0045  LOADBOOL  R7 = false
  0046  CALL      R5 = call(R5, 0 args, 2 rets)
  0047  RETURN    return R0..R-1
; ---------- proto2 [_SetVisibility] ----------
  ; fn ?  line 32-36 np=2 va=0 ms=5 code=14 consts=4 upvals=1 protos=0
  ;   K[0]='gameObject'
  ;   K[1]='IsNull'
  ;   K[2]='UIUtil'
  ;   K[3]='SetActive'
  ;   upvals: _ENV
  ;   locals: self(0-14), bVisible(0-14)
  0000  GETTABLE  R2 = R0[K0('gameObject')]
  0001  TEST      if not R2 then   -> -131069
  0002  JMP       (jump)   -> 13
  0003  GETTABLE  R2 = R0[K0('gameObject')]
  0004  SELF      R3 = R2[K1('IsNull')] (self)
  0005  CALL      R2 = call(R2, 1 args, 1 rets)
  0006  TEST      if not R2 then   -> -131063
  0007  JMP       (jump)   -> 13
  0008  GETTABUP  R2 = _ENV[K2('UIUtil')]
  0009  GETTABLE  R2 = R2[K3('SetActive')]
  0010  GETTABLE  R3 = R0[K0('gameObject')]
  0011  MOVE      R4 = R0
  0012  CALL      R2 = call(R2, 0 args, 2 rets)
  0013  RETURN    return R0..R-1
