# UI_Window_Board_ItemTypeDeletePopupHelper_632.luac
; fn @ItemTypeDeletePopupHelper.lua  line 0-0 np=0 va=1 ms=4 code=21 consts=13 upvals=1 protos=2
;   K[0]='ItemTypeDeletePopupHelper'
;   K[1]='setmetatable'
;   K[2]='canPopScene'
;   K[3]='EPopupScene'
;   K[4]='Board'
;   K[5]=true
;   K[6]='canIgnorePopup'
;   K[7]=false
;   K[8]='BasePopupHelper'
;   K[9]='__index'
;   K[10]='Create'
;   K[11]='ItemTypeDeletePopupHelper'
;   K[12]='CheckPopup'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  NEWTABLE  R2 = {} (0 items)
0003  GETTABUP  R3 = _ENV[K3('EPopupScene')]
0004  GETTABLE  R3 = R3[K4('Board')]
0005  SETTABLE  R2[R3] = K5(true)
0006  SETTABLE  R1[K2('canPopScene')] = R2
0007  SETTABLE  R1[K6('canIgnorePopup')] = K7(false)
0008  GETTABUP  R2 = _ENV[K8('BasePopupHelper')]
0009  CALL      R0 = call(R0, 1 args, 2 rets)
0010  SETTABUP  _ENV[K0('ItemTypeDeletePopupHelper')] = R0
0011  GETTABUP  R0 = _ENV[K0('ItemTypeDeletePopupHelper')]
0012  GETTABUP  R1 = _ENV[K0('ItemTypeDeletePopupHelper')]
0013  SETTABLE  R0[K9('__index')] = R1
0014  GETTABUP  R0 = _ENV[K0('ItemTypeDeletePopupHelper')]
0015  CLOSURE   R1 = closure proto0
0016  SETTABLE  R0[K10('Create')] = R1
0017  GETTABUP  R0 = _ENV[K11('ItemTypeDeletePopupHelper')]
0018  CLOSURE   R1 = closure proto1
0019  SETTABLE  R0[K12('CheckPopup')] = R1
0020  RETURN    return R0..R-1
; ---------- proto0 [Create] ----------
  ; fn ?  line 10-14 np=0 va=0 ms=3 code=8 consts=3 upvals=1 protos=0
  ;   K[0]='setmetatable'
  ;   K[1]='ItemTypeDeletePopupHelper'
  ;   K[2]='Init'
  ;   upvals: _ENV
  ;   locals: helper(4-8)
  0000  GETTABUP  R0 = _ENV[K0('setmetatable')]
  0001  NEWTABLE  R1 = {} (0 items)
  0002  GETTABUP  R2 = _ENV[K1('ItemTypeDeletePopupHelper')]
  0003  CALL      R0 = call(R0, 1 args, 2 rets)
  0004  SELF      R2 = R0[K2('Init')] (self)
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  RETURN    return R0..R-1
  0007  RETURN    return R0..R-1
; ---------- proto1 [CheckPopup] ----------
  ; fn ?  line 16-23 np=1 va=0 ms=9 code=26 consts=8 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='ItemTypeDeleteModel'
  ;   K[2]='NeedPopupWindow'
  ;   K[3]='OnWindowPoped'
  ;   K[4]=0
  ;   K[5]='UIPrefabConfigName'
  ;   K[6]='ItemTypeDeleteRewardsWindow'
  ;   K[7]='ItemTypeDeleteNoticeWindow'
  ;   upvals: _ENV
  ;   locals: self(0-26), canPop(4-26), rewardCount(4-26), mapItems(4-26), winName(19-25)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('ItemTypeDeleteModel')]
  0002  SELF      R2 = R1[K2('NeedPopupWindow')] (self)
  0003  CALL      R1 = call(R1, 3 args, 1 rets)
  0004  TEST      if not R1 then   -> -131066
  0005  JMP       (jump)   -> 25
  0006  GETTABUP  R4 = _ENV[K0('GM')]
  0007  GETTABLE  R4 = R4[K1('ItemTypeDeleteModel')]
  0008  SELF      R5 = R4[K3('OnWindowPoped')] (self)
  0009  MOVE      R6 = R0
  0010  CALL      R4 = call(R4, 0 args, 2 rets)
  0011  LT        if R0 lt R2   -> 2063
  0012  JMP       (jump)   -> 17
  0013  GETTABUP  R4 = _ENV[K5('UIPrefabConfigName')]
  0014  GETTABLE  R4 = R4[K6('ItemTypeDeleteRewardsWindow')]
  0015  TEST      if not R4 then   -> -131054
  0016  JMP       (jump)   -> 19
  0017  GETTABUP  R4 = _ENV[K5('UIPrefabConfigName')]
  0018  GETTABLE  R4 = R4[K7('ItemTypeDeleteNoticeWindow')]
  0019  MOVE      R5 = R0
  0020  NEWTABLE  R6 = {} (2 items)
  0021  MOVE      R7 = R0
  0022  MOVE      R8 = R0
  0023  SETLIST   setlist R6[B=1,C=2]
  0024  RETURN    return R5..R4
  0025  RETURN    return R0..R-1
