# UI_Window_Board_RemoveBubbleConfirmWindow_613.luac
; fn @RemoveBubbleConfirmWindow.lua  line 0-0 np=0 va=1 ms=3 code=18 consts=7 upvals=1 protos=3
;   K[0]='RemoveBubbleConfirmWindow'
;   K[1]='setmetatable'
;   K[2]='TwoButtonWindow'
;   K[3]='__index'
;   K[4]='BeforeOpenCheck'
;   K[5]='Init'
;   K[6]='OnRedClick'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('TwoButtonWindow')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('RemoveBubbleConfirmWindow')] = R0
0005  GETTABUP  R0 = _ENV[K0('RemoveBubbleConfirmWindow')]
0006  GETTABUP  R1 = _ENV[K0('RemoveBubbleConfirmWindow')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('RemoveBubbleConfirmWindow')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('BeforeOpenCheck')] = R1
0011  GETTABUP  R0 = _ENV[K0('RemoveBubbleConfirmWindow')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('Init')] = R1
0014  GETTABUP  R0 = _ENV[K0('RemoveBubbleConfirmWindow')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('OnRedClick')] = R1
0017  RETURN    return R0..R-1
; ---------- proto0 [BeforeOpenCheck] ----------
  ; fn ?  line 4-12 np=3 va=0 ms=7 code=21 consts=6 upvals=1 protos=0
  ;   K[0]='GetComponent'
  ;   K[1]='ItemBubble'
  ;   K[2]=nil
  ;   K[3]='GetBoardModel'
  ;   K[4]='GetItem'
  ;   K[5]='GetPosition'
  ;   upvals: _ENV
  ;   locals: self(0-21), itemModel(0-21), confirmCallback(0-21)
  0000  SELF      R4 = R1[K0('GetComponent')] (self)
  0001  GETTABUP  R5 = _ENV[K1('ItemBubble')]
  0002  CALL      R3 = call(R3, 1 args, 2 rets)
  0003  EQ        if R0 eq K2(nil)   -> -129273
  0004  JMP       (jump)   -> 7
  0005  LOADBOOL  R3 = false
  0006  RETURN    return R3..R2
  0007  SELF      R4 = R1[K3('GetBoardModel')] (self)
  0008  CALL      R3 = call(R3, 1 args, 1 rets)
  0009  SELF      R4 = R3[K4('GetItem')] (self)
  0010  SELF      R6 = R1[K5('GetPosition')] (self)
  0011  CALL      R5 = call(R5, 1 args, 1 rets)
  0012  LOADBOOL  R6 = false
  0013  CALL      R3 = call(R3, 1 args, 3 rets)
  0014  EQ        if R1 eq R1   -> -129519
  0015  JMP       (jump)   -> 18
  0016  LOADBOOL  R3 = false
  0017  RETURN    return R3..R2
  0018  LOADBOOL  R3 = true
  0019  RETURN    return R3..R2
  0020  RETURN    return R0..R-1
; ---------- proto1 [Init] ----------
  ; fn ?  line 14-23 np=3 va=0 ms=9 code=29 consts=18 upvals=1 protos=0
  ;   K[0]='_AdjustSize'
  ;   K[1]='GM'
  ;   K[2]='ItemDataModel'
  ;   K[3]='GetSpriteName'
  ;   K[4]='GetComponent'
  ;   K[5]='ItemBubble'
  ;   K[6]='GetInnerItemCode'
  ;   K[7]='SpriteUtil'
  ;   K[8]='SetImage'
  ;   K[9]='m_itemImg'
  ;   K[10]='m_itemModel'
  ;   K[11]='m_redButtonCallback'
  ;   K[12]='LogWindowAction'
  ;   K[13]='EBIType'
  ;   K[14]='UIActionType'
  ;   K[15]='Open'
  ;   K[16]='EBIReferType'
  ;   K[17]='UserClick'
  ;   upvals: _ENV
  ;   locals: self(0-29), itemModel(0-29), confirmCallback(0-29), spriteName(11-29)
  0000  SELF      R4 = R0[K0('_AdjustSize')] (self)
  0001  CALL      R3 = call(R3, 0 args, 1 rets)
  0002  GETTABUP  R3 = _ENV[K1('GM')]
  0003  GETTABLE  R3 = R3[K2('ItemDataModel')]
  0004  SELF      R4 = R3[K3('GetSpriteName')] (self)
  0005  SELF      R6 = R1[K4('GetComponent')] (self)
  0006  GETTABUP  R7 = _ENV[K5('ItemBubble')]
  0007  CALL      R5 = call(R5, 1 args, 2 rets)
  0008  SELF      R6 = R5[K6('GetInnerItemCode')] (self)
  0009  CALL      R5 = call(R5, -1 args, 1 rets)
  0010  CALL      R3 = call(R3, 1 args, -1 rets)
  0011  GETTABUP  R4 = _ENV[K7('SpriteUtil')]
  0012  GETTABLE  R4 = R4[K8('SetImage')]
  0013  GETTABLE  R5 = R0[K9('m_itemImg')]
  0014  MOVE      R6 = R0
  0015  LOADBOOL  R7 = true
  0016  CALL      R4 = call(R4, 0 args, 3 rets)
  0017  SETTABLE  R0[K10('m_itemModel')] = R1
  0018  SETTABLE  R0[K11('m_redButtonCallback')] = R2
  0019  SELF      R5 = R0[K12('LogWindowAction')] (self)
  0020  GETTABUP  R6 = _ENV[K13('EBIType')]
  0021  GETTABLE  R6 = R6[K14('UIActionType')]
  0022  GETTABLE  R6 = R6[K15('Open')]
  0023  NEWTABLE  R7 = {} (1 items)
  0024  GETTABUP  R8 = _ENV[K16('EBIReferType')]
  0025  GETTABLE  R8 = R8[K17('UserClick')]
  0026  SETLIST   setlist R7[B=1,C=1]
  0027  CALL      R4 = call(R4, 0 args, 3 rets)
  0028  RETURN    return R0..R-1
; ---------- proto2 [OnRedClick] ----------
  ; fn ?  line 25-30 np=1 va=0 ms=3 code=9 consts=3 upvals=0 protos=0
  ;   K[0]='m_redButtonCallback'
  ;   K[1]='m_itemModel'
  ;   K[2]='OnCloseBtnClick'
  ;   locals: self(0-9)
  0000  GETTABLE  R1 = R0[K0('m_redButtonCallback')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 6
  0003  GETTABLE  R1 = R0[K0('m_redButtonCallback')]
  0004  GETTABLE  R2 = R0[K1('m_itemModel')]
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  SELF      R2 = R0[K2('OnCloseBtnClick')] (self)
  0007  CALL      R1 = call(R1, 0 args, 1 rets)
  0008  RETURN    return R0..R-1
