# UI_Window_Board_ItemRecyclePopupHelper_627.luac
; fn @ItemRecyclePopupHelper.lua  line 0-0 np=0 va=1 ms=4 code=29 consts=17 upvals=1 protos=4
;   K[0]='ItemRecyclePopupHelper'
;   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]=1
;   K[11]=0
;   K[12]='Create'
;   K[13]='ItemRecyclePopupHelper'
;   K[14]='Init'
;   K[15]='_OnOrderGroupRefreshed'
;   K[16]='CheckPopup'
;   upvals: _ENV
;   locals: FLAG_TRUE(15-29), FLAG_FALSE(16-29)
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('ItemRecyclePopupHelper')] = R0
0011  GETTABUP  R0 = _ENV[K0('ItemRecyclePopupHelper')]
0012  GETTABUP  R1 = _ENV[K0('ItemRecyclePopupHelper')]
0013  SETTABLE  R0[K9('__index')] = R1
0014  LOADK     R0 = K10 1
0015  LOADK     R1 = K11 0
0016  GETTABUP  R2 = _ENV[K0('ItemRecyclePopupHelper')]
0017  CLOSURE   R3 = closure proto0
0018  SETTABLE  R2[K12('Create')] = R3
0019  GETTABUP  R2 = _ENV[K13('ItemRecyclePopupHelper')]
0020  CLOSURE   R3 = closure proto1
0021  SETTABLE  R2[K14('Init')] = R3
0022  GETTABUP  R2 = _ENV[K13('ItemRecyclePopupHelper')]
0023  CLOSURE   R3 = closure proto2
0024  SETTABLE  R2[K15('_OnOrderGroupRefreshed')] = R3
0025  GETTABUP  R2 = _ENV[K13('ItemRecyclePopupHelper')]
0026  CLOSURE   R3 = closure proto3
0027  SETTABLE  R2[K16('CheckPopup')] = R3
0028  RETURN    return R0..R-1
; ---------- proto0 [Create] ----------
  ; fn ?  line 13-17 np=0 va=0 ms=3 code=8 consts=3 upvals=1 protos=0
  ;   K[0]='setmetatable'
  ;   K[1]='ItemRecyclePopupHelper'
  ;   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('ItemRecyclePopupHelper')]
  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 [Init] ----------
  ; fn ?  line 19-22 np=1 va=0 ms=5 code=12 consts=7 upvals=1 protos=0
  ;   K[0]='BasePopupHelper'
  ;   K[1]='Init'
  ;   K[2]='EventDispatcher'
  ;   K[3]='AddListener'
  ;   K[4]='EEventType'
  ;   K[5]='OrderGroupRefreshed'
  ;   K[6]='_OnOrderGroupRefreshed'
  ;   upvals: _ENV
  ;   locals: self(0-12)
  0000  GETTABUP  R1 = _ENV[K0('BasePopupHelper')]
  0001  GETTABLE  R1 = R1[K1('Init')]
  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('OrderGroupRefreshed')]
  0008  MOVE      R3 = R0
  0009  GETTABLE  R4 = R0[K6('_OnOrderGroupRefreshed')]
  0010  CALL      R1 = call(R1, 0 args, 3 rets)
  0011  RETURN    return R0..R-1
; ---------- proto2 [_OnOrderGroupRefreshed] ----------
  ; fn ?  line 24-27 np=1 va=0 ms=4 code=9 consts=4 upvals=2 protos=0
  ;   K[0]='GM'
  ;   K[1]='MiscModel'
  ;   K[2]='SetCheckItemRecycle'
  ;   K[3]='SetNeedCheckPopup'
  ;   upvals: _ENV, FLAG_TRUE
  ;   locals: self(0-9)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('MiscModel')]
  0002  SELF      R2 = R1[K2('SetCheckItemRecycle')] (self)
  0003  GETUPVAL  R3 = _ENV
  0004  CALL      R1 = call(R1, 0 args, 2 rets)
  0005  SELF      R2 = R0[K3('SetNeedCheckPopup')] (self)
  0006  LOADBOOL  R3 = true
  0007  CALL      R1 = call(R1, 0 args, 2 rets)
  0008  RETURN    return R0..R-1
; ---------- proto3 [CheckPopup] ----------
  ; fn ?  line 29-37 np=1 va=0 ms=5 code=26 consts=10 upvals=3 protos=0
  ;   K[0]='GM'
  ;   K[1]='MiscModel'
  ;   K[2]='GetCheckItemRecycleInNumber'
  ;   K[3]='SetCheckItemRecycle'
  ;   K[4]='ItemRecycleModel'
  ;   K[5]='ShouldPopRecycleWindow'
  ;   K[6]='MainBoardModel'
  ;   K[7]='GetCurOrderDay'
  ;   K[8]='UIPrefabConfigName'
  ;   K[9]='ItemRecycleWindow'
  ;   upvals: _ENV, FLAG_TRUE, FLAG_FALSE
  ;   locals: self(0-26)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('MiscModel')]
  0002  SELF      R2 = R1[K2('GetCheckItemRecycleInNumber')] (self)
  0003  CALL      R1 = call(R1, 1 args, 1 rets)
  0004  GETUPVAL  R2 = _ENV
  0005  EQ        if R0 eq R2   -> -130551
  0006  JMP       (jump)   -> 25
  0007  GETTABUP  R1 = _ENV[K0('GM')]
  0008  GETTABLE  R1 = R1[K1('MiscModel')]
  0009  SELF      R2 = R1[K3('SetCheckItemRecycle')] (self)
  0010  GETUPVAL  R3 = _ENV
  0011  CALL      R1 = call(R1, 0 args, 2 rets)
  0012  GETTABUP  R1 = _ENV[K0('GM')]
  0013  GETTABLE  R1 = R1[K4('ItemRecycleModel')]
  0014  SELF      R2 = R1[K5('ShouldPopRecycleWindow')] (self)
  0015  GETTABUP  R3 = _ENV[K0('GM')]
  0016  GETTABLE  R3 = R3[K6('MainBoardModel')]
  0017  SELF      R4 = R3[K7('GetCurOrderDay')] (self)
  0018  CALL      R3 = call(R3, -1 args, 1 rets)
  0019  CALL      R1 = call(R1, 1 args, -1 rets)
  0020  TEST      if not R1 then   -> -131050
  0021  JMP       (jump)   -> 25
  0022  GETTABUP  R1 = _ENV[K8('UIPrefabConfigName')]
  0023  GETTABLE  R1 = R1[K9('ItemRecycleWindow')]
  0024  RETURN    return R1..R0
  0025  RETURN    return R0..R-1
