# UI_Window_OrderGroup_OrderGroupPopupHelper_723.luac
; fn @OrderGroupPopupHelper.lua  line 0-0 np=0 va=1 ms=4 code=36 consts=18 upvals=1 protos=7
;   K[0]='OrderGroupPopupHelper'
;   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]='OrderGroupPopupHelper'
;   K[12]='Init'
;   K[13]='OnDestroy'
;   K[14]='_OnClaimedOrderGroupReward'
;   K[15]='_UpdateState'
;   K[16]='NeedCheckPopup'
;   K[17]='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('OrderGroupPopupHelper')] = R0
0011  GETTABUP  R0 = _ENV[K0('OrderGroupPopupHelper')]
0012  GETTABUP  R1 = _ENV[K0('OrderGroupPopupHelper')]
0013  SETTABLE  R0[K9('__index')] = R1
0014  GETTABUP  R0 = _ENV[K0('OrderGroupPopupHelper')]
0015  CLOSURE   R1 = closure proto0
0016  SETTABLE  R0[K10('Create')] = R1
0017  GETTABUP  R0 = _ENV[K11('OrderGroupPopupHelper')]
0018  CLOSURE   R1 = closure proto1
0019  SETTABLE  R0[K12('Init')] = R1
0020  GETTABUP  R0 = _ENV[K11('OrderGroupPopupHelper')]
0021  CLOSURE   R1 = closure proto2
0022  SETTABLE  R0[K13('OnDestroy')] = R1
0023  GETTABUP  R0 = _ENV[K11('OrderGroupPopupHelper')]
0024  CLOSURE   R1 = closure proto3
0025  SETTABLE  R0[K14('_OnClaimedOrderGroupReward')] = R1
0026  GETTABUP  R0 = _ENV[K11('OrderGroupPopupHelper')]
0027  CLOSURE   R1 = closure proto4
0028  SETTABLE  R0[K15('_UpdateState')] = R1
0029  GETTABUP  R0 = _ENV[K11('OrderGroupPopupHelper')]
0030  CLOSURE   R1 = closure proto5
0031  SETTABLE  R0[K16('NeedCheckPopup')] = R1
0032  GETTABUP  R0 = _ENV[K11('OrderGroupPopupHelper')]
0033  CLOSURE   R1 = closure proto6
0034  SETTABLE  R0[K17('CheckPopup')] = R1
0035  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]='OrderGroupPopupHelper'
  ;   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('OrderGroupPopupHelper')]
  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-23 np=1 va=0 ms=5 code=26 consts=13 upvals=1 protos=0
  ;   K[0]='BasePopupHelper'
  ;   K[1]='Init'
  ;   K[2]='m_orderModel'
  ;   K[3]='GM'
  ;   K[4]='MainBoardModel'
  ;   K[5]='GetOrderModel'
  ;   K[6]='_UpdateState'
  ;   K[7]='EventDispatcher'
  ;   K[8]='AddListener'
  ;   K[9]='EEventType'
  ;   K[10]='OrderFinished'
  ;   K[11]='OnClaimedOrderGroupReward'
  ;   K[12]='_OnClaimedOrderGroupReward'
  ;   upvals: _ENV
  ;   locals: self(0-26)
  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[K3('GM')]
  0005  GETTABLE  R1 = R1[K4('MainBoardModel')]
  0006  SELF      R2 = R1[K5('GetOrderModel')] (self)
  0007  CALL      R1 = call(R1, 1 args, 1 rets)
  0008  SETTABLE  R0[K2('m_orderModel')] = R1
  0009  SELF      R2 = R0[K6('_UpdateState')] (self)
  0010  CALL      R1 = call(R1, 0 args, 1 rets)
  0011  GETTABUP  R1 = _ENV[K7('EventDispatcher')]
  0012  GETTABLE  R1 = R1[K8('AddListener')]
  0013  GETTABUP  R2 = _ENV[K9('EEventType')]
  0014  GETTABLE  R2 = R2[K10('OrderFinished')]
  0015  MOVE      R3 = R0
  0016  GETTABLE  R4 = R0[K6('_UpdateState')]
  0017  CALL      R1 = call(R1, 0 args, 3 rets)
  0018  GETTABUP  R1 = _ENV[K7('EventDispatcher')]
  0019  GETTABLE  R1 = R1[K8('AddListener')]
  0020  GETTABUP  R2 = _ENV[K9('EEventType')]
  0021  GETTABLE  R2 = R2[K11('OnClaimedOrderGroupReward')]
  0022  MOVE      R3 = R0
  0023  GETTABLE  R4 = R0[K12('_OnClaimedOrderGroupReward')]
  0024  CALL      R1 = call(R1, 0 args, 3 rets)
  0025  RETURN    return R0..R-1
; ---------- proto2 [OnDestroy] ----------
  ; fn ?  line 25-27 np=1 va=0 ms=3 code=5 consts=2 upvals=1 protos=0
  ;   K[0]='EventDispatcher'
  ;   K[1]='RemoveTarget'
  ;   upvals: _ENV
  ;   locals: self(0-5)
  0000  GETTABUP  R1 = _ENV[K0('EventDispatcher')]
  0001  GETTABLE  R1 = R1[K1('RemoveTarget')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  RETURN    return R0..R-1
; ---------- proto3 [_OnClaimedOrderGroupReward] ----------
  ; fn ?  line 29-33 np=1 va=0 ms=3 code=17 consts=8 upvals=1 protos=0
  ;   K[0]='_UpdateState'
  ;   K[1]='m_canPopDayClearWindow'
  ;   K[2]='GM'
  ;   K[3]='MainBoardModel'
  ;   K[4]='GetOrderModel'
  ;   K[5]='IsAllCanUnlockGroupFinished'
  ;   K[6]='TaskManager'
  ;   K[7]='CanFinishOngoingTask'
  ;   upvals: _ENV
  ;   locals: self(0-17)
  0000  SELF      R2 = R0[K0('_UpdateState')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  GETTABUP  R1 = _ENV[K2('GM')]
  0003  GETTABLE  R1 = R1[K3('MainBoardModel')]
  0004  SELF      R2 = R1[K4('GetOrderModel')] (self)
  0005  CALL      R1 = call(R1, 1 args, 1 rets)
  0006  SELF      R2 = R1[K5('IsAllCanUnlockGroupFinished')] (self)
  0007  CALL      R1 = call(R1, 1 args, 1 rets)
  0008  TEST      if not R1 then   -> -131062
  0009  JMP       (jump)   -> 15
  0010  GETTABUP  R1 = _ENV[K2('GM')]
  0011  GETTABLE  R1 = R1[K6('TaskManager')]
  0012  SELF      R2 = R1[K7('CanFinishOngoingTask')] (self)
  0013  CALL      R1 = call(R1, 1 args, 1 rets)
  0014  NOT       R1 = not R0
  0015  SETTABLE  R0[K1('m_canPopDayClearWindow')] = R1
  0016  RETURN    return R0..R-1
; ---------- proto4 [_UpdateState] ----------
  ; fn ?  line 35-37 np=1 va=0 ms=3 code=5 consts=3 upvals=0 protos=0
  ;   K[0]='m_canClaimGroupReward'
  ;   K[1]='m_orderModel'
  ;   K[2]='CanClaimGroupReward'
  ;   locals: self(0-5)
  0000  GETTABLE  R1 = R0[K1('m_orderModel')]
  0001  SELF      R2 = R1[K2('CanClaimGroupReward')] (self)
  0002  CALL      R1 = call(R1, 1 args, 1 rets)
  0003  SETTABLE  R0[K0('m_canClaimGroupReward')] = R1
  0004  RETURN    return R0..R-1
; ---------- proto5 [NeedCheckPopup] ----------
  ; fn ?  line 39-41 np=1 va=0 ms=2 code=6 consts=2 upvals=0 protos=0
  ;   K[0]='m_canClaimGroupReward'
  ;   K[1]='m_canPopDayClearWindow'
  ;   locals: self(0-6)
  0000  GETTABLE  R1 = R0[K0('m_canClaimGroupReward')]
  0001  TEST      if not R1 then   -> -131068
  0002  JMP       (jump)   -> 4
  0003  GETTABLE  R1 = R0[K1('m_canPopDayClearWindow')]
  0004  RETURN    return R1..R0
  0005  RETURN    return R0..R-1
; ---------- proto6 [CheckPopup] ----------
  ; fn ?  line 43-53 np=1 va=0 ms=2 code=15 consts=6 upvals=1 protos=0
  ;   K[0]='m_canClaimGroupReward'
  ;   K[1]=false
  ;   K[2]='UIPrefabConfigName'
  ;   K[3]='OrderGroupFinishWindow'
  ;   K[4]='m_canPopDayClearWindow'
  ;   K[5]='OrderDayClearWindow'
  ;   upvals: _ENV
  ;   locals: self(0-15)
  0000  GETTABLE  R1 = R0[K0('m_canClaimGroupReward')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 7
  0003  SETTABLE  R0[K0('m_canClaimGroupReward')] = K1(false)
  0004  GETTABUP  R1 = _ENV[K2('UIPrefabConfigName')]
  0005  GETTABLE  R1 = R1[K3('OrderGroupFinishWindow')]
  0006  RETURN    return R1..R0
  0007  GETTABLE  R1 = R0[K4('m_canPopDayClearWindow')]
  0008  TEST      if not R1 then   -> -131062
  0009  JMP       (jump)   -> 14
  0010  SETTABLE  R0[K4('m_canPopDayClearWindow')] = K1(false)
  0011  GETTABUP  R1 = _ENV[K2('UIPrefabConfigName')]
  0012  GETTABLE  R1 = R1[K5('OrderDayClearWindow')]
  0013  RETURN    return R1..R0
  0014  RETURN    return R0..R-1
