# UI_Window_OrderGroup_ScrollBackToOrderPopupHelper_743.luac
; fn @ScrollBackToOrderPopupHelper.lua  line 0-0 np=0 va=1 ms=4 code=30 consts=16 upvals=1 protos=5
;   K[0]='ScrollBackToOrderPopupHelper'
;   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]='ScrollBackToOrderPopupHelper'
;   K[12]='Init'
;   K[13]='_OnFlambeTimeStartPopup'
;   K[14]='_OnViewWillClose'
;   K[15]='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('ScrollBackToOrderPopupHelper')] = R0
0011  GETTABUP  R0 = _ENV[K0('ScrollBackToOrderPopupHelper')]
0012  GETTABUP  R1 = _ENV[K0('ScrollBackToOrderPopupHelper')]
0013  SETTABLE  R0[K9('__index')] = R1
0014  GETTABUP  R0 = _ENV[K0('ScrollBackToOrderPopupHelper')]
0015  CLOSURE   R1 = closure proto0
0016  SETTABLE  R0[K10('Create')] = R1
0017  GETTABUP  R0 = _ENV[K11('ScrollBackToOrderPopupHelper')]
0018  CLOSURE   R1 = closure proto1
0019  SETTABLE  R0[K12('Init')] = R1
0020  GETTABUP  R0 = _ENV[K11('ScrollBackToOrderPopupHelper')]
0021  CLOSURE   R1 = closure proto2
0022  SETTABLE  R0[K13('_OnFlambeTimeStartPopup')] = R1
0023  GETTABUP  R0 = _ENV[K11('ScrollBackToOrderPopupHelper')]
0024  CLOSURE   R1 = closure proto3
0025  SETTABLE  R0[K14('_OnViewWillClose')] = R1
0026  GETTABUP  R0 = _ENV[K11('ScrollBackToOrderPopupHelper')]
0027  CLOSURE   R1 = closure proto4
0028  SETTABLE  R0[K15('CheckPopup')] = R1
0029  RETURN    return R0..R-1
; ---------- proto0 [Create] ----------
  ; fn ?  line 9-13 np=0 va=0 ms=3 code=8 consts=3 upvals=1 protos=0
  ;   K[0]='setmetatable'
  ;   K[1]='ScrollBackToOrderPopupHelper'
  ;   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('ScrollBackToOrderPopupHelper')]
  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 15-19 np=1 va=0 ms=5 code=19 consts=9 upvals=1 protos=0
  ;   K[0]='BasePopupHelper'
  ;   K[1]='Init'
  ;   K[2]='EventDispatcher'
  ;   K[3]='AddListener'
  ;   K[4]='EEventType'
  ;   K[5]='OnViewWillClose'
  ;   K[6]='_OnViewWillClose'
  ;   K[7]='FlambeTimeStartPopup'
  ;   K[8]='_OnFlambeTimeStartPopup'
  ;   upvals: _ENV
  ;   locals: self(0-19)
  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('OnViewWillClose')]
  0008  MOVE      R3 = R0
  0009  GETTABLE  R4 = R0[K6('_OnViewWillClose')]
  0010  CALL      R1 = call(R1, 0 args, 3 rets)
  0011  GETTABUP  R1 = _ENV[K2('EventDispatcher')]
  0012  GETTABLE  R1 = R1[K3('AddListener')]
  0013  GETTABUP  R2 = _ENV[K4('EEventType')]
  0014  GETTABLE  R2 = R2[K7('FlambeTimeStartPopup')]
  0015  MOVE      R3 = R0
  0016  GETTABLE  R4 = R0[K8('_OnFlambeTimeStartPopup')]
  0017  CALL      R1 = call(R1, 0 args, 3 rets)
  0018  RETURN    return R0..R-1
; ---------- proto2 [_OnFlambeTimeStartPopup] ----------
  ; fn ?  line 21-23 np=1 va=0 ms=2 code=2 consts=2 upvals=0 protos=0
  ;   K[0]='m_bCanPop'
  ;   K[1]=false
  ;   locals: self(0-2)
  0000  SETTABLE  R0[K0('m_bCanPop')] = K1(false)
  0001  RETURN    return R0..R-1
; ---------- proto3 [_OnViewWillClose] ----------
  ; fn ?  line 25-56 np=2 va=0 ms=6 code=77 consts=27 upvals=1 protos=0
  ;   K[0]='name'
  ;   K[1]='UIPrefabConfigName'
  ;   K[2]='ScrollBackToOrderWindow'
  ;   K[3]='FlambeBaseWindow'
  ;   K[4]='IsFlambeWinName'
  ;   K[5]='m_bCanPop'
  ;   K[6]=false
  ;   K[7]='EventDispatcher'
  ;   K[8]='DispatchEvent'
  ;   K[9]='EEventType'
  ;   K[10]='ScrollBackToOrderFinished'
  ;   K[11]='OrderFinishRewardWindow'
  ;   K[12]='GM'
  ;   K[13]='UIManager'
  ;   K[14]='IsEventLockUntilNextPopup'
  ;   K[15]='FlambeTimeModel'
  ;   K[16]='IsFlambeTimeOrderGroup'
  ;   K[17]='GetFlambeTimeType'
  ;   K[18]='EFlambeTimeType'
  ;   K[19]='link'
  ;   K[20]='IsFlambeWinExisting'
  ;   K[21]='MainBoardModel'
  ;   K[22]='GetOrderModel'
  ;   K[23]='GetOrdersCount'
  ;   K[24]=0
  ;   K[25]='SetNeedCheckPopup'
  ;   K[26]=true
  ;   upvals: _ENV
  ;   locals: self(0-77), msg(0-77), mainOrderModel(61-77)
  0000  GETTABLE  R2 = R1[K0('name')]
  0001  GETTABUP  R3 = _ENV[K1('UIPrefabConfigName')]
  0002  GETTABLE  R3 = R3[K2('ScrollBackToOrderWindow')]
  0003  EQ        if R1 eq R3   -> -130040
  0004  JMP       (jump)   -> 11
  0005  GETTABUP  R2 = _ENV[K3('FlambeBaseWindow')]
  0006  GETTABLE  R2 = R2[K4('IsFlambeWinName')]
  0007  GETTABLE  R3 = R1[K0('name')]
  0008  CALL      R2 = call(R2, 1 args, 1 rets)
  0009  TEST      if not R2 then   -> -131061
  0010  JMP       (jump)   -> 18
  0011  SETTABLE  R0[K5('m_bCanPop')] = K6(false)
  0012  GETTABUP  R2 = _ENV[K7('EventDispatcher')]
  0013  GETTABLE  R2 = R2[K8('DispatchEvent')]
  0014  GETTABUP  R3 = _ENV[K9('EEventType')]
  0015  GETTABLE  R3 = R3[K10('ScrollBackToOrderFinished')]
  0016  CALL      R2 = call(R2, 0 args, 1 rets)
  0017  RETURN    return R0..R-1
  0018  GETTABLE  R2 = R1[K0('name')]
  0019  GETTABUP  R3 = _ENV[K1('UIPrefabConfigName')]
  0020  GETTABLE  R3 = R3[K11('OrderFinishRewardWindow')]
  0021  EQ        if R1 eq R3   -> -130022
  0022  JMP       (jump)   -> 24
  0023  RETURN    return R0..R-1
  0024  GETTABUP  R2 = _ENV[K12('GM')]
  0025  GETTABLE  R2 = R2[K13('UIManager')]
  0026  SELF      R3 = R2[K14('IsEventLockUntilNextPopup')] (self)
  0027  CALL      R2 = call(R2, 1 args, 1 rets)
  0028  TEST      if not R2 then   -> -131042
  0029  JMP       (jump)   -> 45
  0030  GETTABUP  R2 = _ENV[K12('GM')]
  0031  GETTABLE  R2 = R2[K15('FlambeTimeModel')]
  0032  SELF      R3 = R2[K16('IsFlambeTimeOrderGroup')] (self)
  0033  CALL      R2 = call(R2, 1 args, 1 rets)
  0034  TEST      if not R2 then   -> -131036
  0035  JMP       (jump)   -> 45
  0036  GETTABUP  R2 = _ENV[K12('GM')]
  0037  GETTABLE  R2 = R2[K15('FlambeTimeModel')]
  0038  SELF      R3 = R2[K17('GetFlambeTimeType')] (self)
  0039  CALL      R2 = call(R2, 1 args, 1 rets)
  0040  GETTABUP  R3 = _ENV[K18('EFlambeTimeType')]
  0041  GETTABLE  R3 = R3[K19('link')]
  0042  EQ        if R0 eq R3   -> -130001
  0043  JMP       (jump)   -> 45
  0044  RETURN    return R0..R-1
  0045  GETTABUP  R2 = _ENV[K3('FlambeBaseWindow')]
  0046  GETTABLE  R2 = R2[K20('IsFlambeWinExisting')]
  0047  CALL      R2 = call(R2, 1 args, 0 rets)
  0048  TEST      if not R2 then   -> -131022
  0049  JMP       (jump)   -> 57
  0050  SETTABLE  R0[K5('m_bCanPop')] = K6(false)
  0051  GETTABUP  R2 = _ENV[K7('EventDispatcher')]
  0052  GETTABLE  R2 = R2[K8('DispatchEvent')]
  0053  GETTABUP  R3 = _ENV[K9('EEventType')]
  0054  GETTABLE  R3 = R3[K10('ScrollBackToOrderFinished')]
  0055  CALL      R2 = call(R2, 0 args, 1 rets)
  0056  RETURN    return R0..R-1
  0057  GETTABUP  R2 = _ENV[K12('GM')]
  0058  GETTABLE  R2 = R2[K21('MainBoardModel')]
  0059  SELF      R3 = R2[K22('GetOrderModel')] (self)
  0060  CALL      R2 = call(R2, 1 args, 1 rets)
  0061  SELF      R4 = R2[K23('GetOrdersCount')] (self)
  0062  CALL      R3 = call(R3, 1 args, 1 rets)
  0063  LE        if R0 le K24(0)   -> -129191
  0064  JMP       (jump)   -> 72
  0065  SETTABLE  R0[K5('m_bCanPop')] = K6(false)
  0066  GETTABUP  R3 = _ENV[K7('EventDispatcher')]
  0067  GETTABLE  R3 = R3[K8('DispatchEvent')]
  0068  GETTABUP  R4 = _ENV[K9('EEventType')]
  0069  GETTABLE  R4 = R4[K10('ScrollBackToOrderFinished')]
  0070  CALL      R3 = call(R3, 0 args, 1 rets)
  0071  RETURN    return R0..R-1
  0072  SELF      R4 = R0[K25('SetNeedCheckPopup')] (self)
  0073  LOADBOOL  R5 = true
  0074  CALL      R3 = call(R3, 0 args, 2 rets)
  0075  SETTABLE  R0[K5('m_bCanPop')] = K26(true)
  0076  RETURN    return R0..R-1
; ---------- proto4 [CheckPopup] ----------
  ; fn ?  line 58-63 np=1 va=0 ms=2 code=8 consts=4 upvals=1 protos=0
  ;   K[0]='m_bCanPop'
  ;   K[1]=nil
  ;   K[2]='UIPrefabConfigName'
  ;   K[3]='ScrollBackToOrderWindow'
  ;   upvals: _ENV
  ;   locals: self(0-8)
  0000  GETTABLE  R1 = R0[K0('m_bCanPop')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 7
  0003  SETTABLE  R0[K0('m_bCanPop')] = K1(nil)
  0004  GETTABUP  R1 = _ENV[K2('UIPrefabConfigName')]
  0005  GETTABLE  R1 = R1[K3('ScrollBackToOrderWindow')]
  0006  RETURN    return R1..R0
  0007  RETURN    return R0..R-1
