# DashActivity_Common_View_DashActivityPopupHelper_797.luac
; fn @DashActivityPopupHelper.lua  line 0-0 np=0 va=1 ms=4 code=57 consts=20 upvals=1 protos=8
;   K[0]='DashActivityEndedPopupHelper'
;   K[1]='setmetatable'
;   K[2]='canPopScene'
;   K[3]='EPopupScene'
;   K[4]='Main'
;   K[5]=true
;   K[6]='Board'
;   K[7]='BasePopupHelper'
;   K[8]='__index'
;   K[9]='Create'
;   K[10]='DashActivityEndedPopupHelper'
;   K[11]='Init'
;   K[12]='_OnStateChanged'
;   K[13]='CheckPopup'
;   K[14]='DashActivityOtherPopupHelper'
;   K[15]='setmetatable'
;   K[16]='BasePopupHelper'
;   K[17]='DashActivityOtherPopupHelper'
;   K[18]='Init'
;   K[19]='_OnStateChanged'
;   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('Main')]
0005  SETTABLE  R2[R3] = K5(true)
0006  GETTABUP  R3 = _ENV[K3('EPopupScene')]
0007  GETTABLE  R3 = R3[K6('Board')]
0008  SETTABLE  R2[R3] = K5(true)
0009  SETTABLE  R1[K2('canPopScene')] = R2
0010  GETTABUP  R2 = _ENV[K7('BasePopupHelper')]
0011  CALL      R0 = call(R0, 1 args, 2 rets)
0012  SETTABUP  _ENV[K0('DashActivityEndedPopupHelper')] = R0
0013  GETTABUP  R0 = _ENV[K0('DashActivityEndedPopupHelper')]
0014  GETTABUP  R1 = _ENV[K0('DashActivityEndedPopupHelper')]
0015  SETTABLE  R0[K8('__index')] = R1
0016  GETTABUP  R0 = _ENV[K0('DashActivityEndedPopupHelper')]
0017  CLOSURE   R1 = closure proto0
0018  SETTABLE  R0[K9('Create')] = R1
0019  GETTABUP  R0 = _ENV[K10('DashActivityEndedPopupHelper')]
0020  CLOSURE   R1 = closure proto1
0021  SETTABLE  R0[K11('Init')] = R1
0022  GETTABUP  R0 = _ENV[K10('DashActivityEndedPopupHelper')]
0023  CLOSURE   R1 = closure proto2
0024  SETTABLE  R0[K12('_OnStateChanged')] = R1
0025  GETTABUP  R0 = _ENV[K10('DashActivityEndedPopupHelper')]
0026  CLOSURE   R1 = closure proto3
0027  SETTABLE  R0[K13('CheckPopup')] = R1
0028  GETTABUP  R0 = _ENV[K15('setmetatable')]
0029  NEWTABLE  R1 = {} (0 items)
0030  NEWTABLE  R2 = {} (0 items)
0031  GETTABUP  R3 = _ENV[K3('EPopupScene')]
0032  GETTABLE  R3 = R3[K4('Main')]
0033  SETTABLE  R2[R3] = K5(true)
0034  GETTABUP  R3 = _ENV[K3('EPopupScene')]
0035  GETTABLE  R3 = R3[K6('Board')]
0036  SETTABLE  R2[R3] = K5(true)
0037  SETTABLE  R1[K2('canPopScene')] = R2
0038  GETTABUP  R2 = _ENV[K16('BasePopupHelper')]
0039  CALL      R0 = call(R0, 1 args, 2 rets)
0040  SETTABUP  _ENV[K14('DashActivityOtherPopupHelper')] = R0
0041  GETTABUP  R0 = _ENV[K14('DashActivityOtherPopupHelper')]
0042  GETTABUP  R1 = _ENV[K14('DashActivityOtherPopupHelper')]
0043  SETTABLE  R0[K8('__index')] = R1
0044  GETTABUP  R0 = _ENV[K14('DashActivityOtherPopupHelper')]
0045  CLOSURE   R1 = closure proto4
0046  SETTABLE  R0[K9('Create')] = R1
0047  GETTABUP  R0 = _ENV[K17('DashActivityOtherPopupHelper')]
0048  CLOSURE   R1 = closure proto5
0049  SETTABLE  R0[K18('Init')] = R1
0050  GETTABUP  R0 = _ENV[K17('DashActivityOtherPopupHelper')]
0051  CLOSURE   R1 = closure proto6
0052  SETTABLE  R0[K19('_OnStateChanged')] = R1
0053  GETTABUP  R0 = _ENV[K17('DashActivityOtherPopupHelper')]
0054  CLOSURE   R1 = closure proto7
0055  SETTABLE  R0[K13('CheckPopup')] = R1
0056  RETURN    return R0..R-1
; ---------- proto0 [Create] ----------
  ; fn ?  line 11-15 np=0 va=0 ms=3 code=8 consts=3 upvals=1 protos=0
  ;   K[0]='setmetatable'
  ;   K[1]='DashActivityEndedPopupHelper'
  ;   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('DashActivityEndedPopupHelper')]
  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 17-23 np=1 va=0 ms=10 code=17 consts=8 upvals=1 protos=0
  ;   K[0]='BasePopupHelper'
  ;   K[1]='Init'
  ;   K[2]='pairs'
  ;   K[3]='DashActivityDefinition'
  ;   K[4]='EventDispatcher'
  ;   K[5]='AddListener'
  ;   K[6]='StateChangedEvent'
  ;   K[7]='_OnStateChanged'
  ;   upvals: _ENV
  ;   locals: self(0-17), (for generator)(7-16), (for state)(7-16), (for control)(7-16), _(8-14), activityDefinition(8-14)
  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('pairs')]
  0005  GETTABUP  R2 = _ENV[K3('DashActivityDefinition')]
  0006  CALL      R1 = call(R1, 3 args, 1 rets)
  0007  JMP       (jump)   -> 14
  0008  GETTABUP  R6 = _ENV[K4('EventDispatcher')]
  0009  GETTABLE  R6 = R6[K5('AddListener')]
  0010  GETTABLE  R7 = R5[K6('StateChangedEvent')]
  0011  MOVE      R8 = R0
  0012  GETTABLE  R9 = R0[K7('_OnStateChanged')]
  0013  CALL      R6 = call(R6, 0 args, 3 rets)
  0014  TFORCALL  tforcall R1
  0015  TFORLOOP  tforloop R3(sBx=-8)   -> 8
  0016  RETURN    return R0..R-1
; ---------- proto2 [_OnStateChanged] ----------
  ; fn ?  line 25-28 np=1 va=0 ms=4 code=4 consts=1 upvals=0 protos=0
  ;   K[0]='SetNeedCheckPopup'
  ;   locals: self(0-4)
  0000  SELF      R2 = R0[K0('SetNeedCheckPopup')] (self)
  0001  LOADBOOL  R3 = true
  0002  CALL      R1 = call(R1, 0 args, 2 rets)
  0003  RETURN    return R0..R-1
; ---------- proto3 [CheckPopup] ----------
  ; fn ?  line 30-53 np=1 va=0 ms=13 code=52 consts=17 upvals=1 protos=0
  ;   K[0]='pairs'
  ;   K[1]='DashActivityDefinition'
  ;   K[2]='GM'
  ;   K[3]='ActivityManager'
  ;   K[4]='GetModel'
  ;   K[5]='GetState'
  ;   K[6]='ActivityState'
  ;   K[7]='Ended'
  ;   K[8]='HasWindowOpenedOnce'
  ;   K[9]='Started'
  ;   K[10]='GetLevel'
  ;   K[11]='GetLevelConfigs'
  ;   K[12]=nil
  ;   K[13]='GetScore'
  ;   K[14]='score'
  ;   K[15]='RewardRecoverWindowPrefabName'
  ;   K[16]='FailWindowPrefabName'
  ;   upvals: _ENV
  ;   locals: self(0-52), (for generator)(3-51), (for state)(3-51), (for control)(3-51), activityType(4-49), activityDefinition(4-49), args(7-49), model(12-49), level(32-49), levelConfig(35-49), score(39-49)
  0000  GETTABUP  R1 = _ENV[K0('pairs')]
  0001  GETTABUP  R2 = _ENV[K1('DashActivityDefinition')]
  0002  CALL      R1 = call(R1, 3 args, 1 rets)
  0003  JMP       (jump)   -> 49
  0004  NEWTABLE  R6 = {} (1 items)
  0005  MOVE      R7 = R0
  0006  SETLIST   setlist R6[B=1,C=1]
  0007  GETTABUP  R7 = _ENV[K2('GM')]
  0008  GETTABLE  R7 = R7[K3('ActivityManager')]
  0009  SELF      R8 = R7[K4('GetModel')] (self)
  0010  MOVE      R9 = R0
  0011  CALL      R7 = call(R7, 1 args, 2 rets)
  0012  SELF      R9 = R7[K5('GetState')] (self)
  0013  CALL      R8 = call(R8, 1 args, 1 rets)
  0014  GETTABUP  R9 = _ENV[K6('ActivityState')]
  0015  GETTABLE  R9 = R9[K7('Ended')]
  0016  EQ        if R0 eq R9   -> -126949
  0017  JMP       (jump)   -> 49
  0018  SELF      R9 = R7[K8('HasWindowOpenedOnce')] (self)
  0019  GETTABUP  R10 = _ENV[K6('ActivityState')]
  0020  GETTABLE  R10 = R10[K7('Ended')]
  0021  CALL      R8 = call(R8, 1 args, 2 rets)
  0022  TEST      if not R8 then   -> -131047
  0023  JMP       (jump)   -> 49
  0024  SELF      R9 = R7[K8('HasWindowOpenedOnce')] (self)
  0025  GETTABUP  R10 = _ENV[K6('ActivityState')]
  0026  GETTABLE  R10 = R10[K9('Started')]
  0027  CALL      R8 = call(R8, 1 args, 2 rets)
  0028  TEST      if not R8 then   -> -131042
  0029  JMP       (jump)   -> 49
  0030  SELF      R9 = R7[K10('GetLevel')] (self)
  0031  CALL      R8 = call(R8, 1 args, 1 rets)
  0032  SELF      R10 = R7[K11('GetLevelConfigs')] (self)
  0033  CALL      R9 = call(R9, 1 args, 1 rets)
  0034  GETTABLE  R9 = R9[R8]
  0035  EQ        if R1 eq K12(nil)   -> -126159
  0036  JMP       (jump)   -> 49
  0037  SELF      R11 = R7[K13('GetScore')] (self)
  0038  CALL      R10 = call(R10, 1 args, 1 rets)
  0039  GETTABLE  R11 = R9[K14('score')]
  0040  LE        if R0 le R10   -> -125388
  0041  JMP       (jump)   -> 46
  0042  GETTABLE  R11 = R5[K15('RewardRecoverWindowPrefabName')]
  0043  MOVE      R12 = R0
  0044  RETURN    return R11..R10
  0045  JMP       (jump)   -> 49
  0046  GETTABLE  R11 = R5[K16('FailWindowPrefabName')]
  0047  MOVE      R12 = R0
  0048  RETURN    return R11..R10
  0049  TFORCALL  tforcall R1
  0050  TFORLOOP  tforloop R3(sBx=-47)   -> 4
  0051  RETURN    return R0..R-1
; ---------- proto4 [Create] ----------
  ; fn ?  line 64-68 np=0 va=0 ms=3 code=8 consts=3 upvals=1 protos=0
  ;   K[0]='setmetatable'
  ;   K[1]='DashActivityOtherPopupHelper'
  ;   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('DashActivityOtherPopupHelper')]
  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
; ---------- proto5 [Init] ----------
  ; fn ?  line 70-78 np=1 va=0 ms=10 code=23 consts=9 upvals=1 protos=0
  ;   K[0]='BasePopupHelper'
  ;   K[1]='Init'
  ;   K[2]='pairs'
  ;   K[3]='DashActivityDefinition'
  ;   K[4]='EventDispatcher'
  ;   K[5]='AddListener'
  ;   K[6]='StateChangedEvent'
  ;   K[7]='_OnStateChanged'
  ;   K[8]='UpgradedEvent'
  ;   upvals: _ENV
  ;   locals: self(0-23), (for generator)(7-22), (for state)(7-22), (for control)(7-22), _(8-20), activityDefinition(8-20)
  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('pairs')]
  0005  GETTABUP  R2 = _ENV[K3('DashActivityDefinition')]
  0006  CALL      R1 = call(R1, 3 args, 1 rets)
  0007  JMP       (jump)   -> 20
  0008  GETTABUP  R6 = _ENV[K4('EventDispatcher')]
  0009  GETTABLE  R6 = R6[K5('AddListener')]
  0010  GETTABLE  R7 = R5[K6('StateChangedEvent')]
  0011  MOVE      R8 = R0
  0012  GETTABLE  R9 = R0[K7('_OnStateChanged')]
  0013  CALL      R6 = call(R6, 0 args, 3 rets)
  0014  GETTABUP  R6 = _ENV[K4('EventDispatcher')]
  0015  GETTABLE  R6 = R6[K5('AddListener')]
  0016  GETTABLE  R7 = R5[K8('UpgradedEvent')]
  0017  MOVE      R8 = R0
  0018  GETTABLE  R9 = R0[K7('_OnStateChanged')]
  0019  CALL      R6 = call(R6, 0 args, 3 rets)
  0020  TFORCALL  tforcall R1
  0021  TFORLOOP  tforloop R3(sBx=-14)   -> 8
  0022  RETURN    return R0..R-1
; ---------- proto6 [_OnStateChanged] ----------
  ; fn ?  line 80-83 np=1 va=0 ms=4 code=4 consts=1 upvals=0 protos=0
  ;   K[0]='SetNeedCheckPopup'
  ;   locals: self(0-4)
  0000  SELF      R2 = R0[K0('SetNeedCheckPopup')] (self)
  0001  LOADBOOL  R3 = true
  0002  CALL      R1 = call(R1, 0 args, 2 rets)
  0003  RETURN    return R0..R-1
; ---------- proto7 [CheckPopup] ----------
  ; fn ?  line 85-100 np=1 va=0 ms=12 code=46 consts=12 upvals=1 protos=0
  ;   K[0]='pairs'
  ;   K[1]='DashActivityDefinition'
  ;   K[2]='GM'
  ;   K[3]='ActivityManager'
  ;   K[4]='GetModel'
  ;   K[5]='GetState'
  ;   K[6]='ActivityState'
  ;   K[7]='Preparing'
  ;   K[8]='HasWindowOpenedOnce'
  ;   K[9]='NoticeWindowPrefabName'
  ;   K[10]='Started'
  ;   K[11]='ReadyWindowPrefabName'
  ;   upvals: _ENV
  ;   locals: self(0-46), (for generator)(3-45), (for state)(3-45), (for control)(3-45), activityType(4-43), activityDefinition(4-43), model(9-43), state(11-43)
  0000  GETTABUP  R1 = _ENV[K0('pairs')]
  0001  GETTABUP  R2 = _ENV[K1('DashActivityDefinition')]
  0002  CALL      R1 = call(R1, 3 args, 1 rets)
  0003  JMP       (jump)   -> 43
  0004  GETTABUP  R6 = _ENV[K2('GM')]
  0005  GETTABLE  R6 = R6[K3('ActivityManager')]
  0006  SELF      R7 = R6[K4('GetModel')] (self)
  0007  MOVE      R8 = R0
  0008  CALL      R6 = call(R6, 1 args, 2 rets)
  0009  SELF      R8 = R6[K5('GetState')] (self)
  0010  CALL      R7 = call(R7, 1 args, 1 rets)
  0011  GETTABUP  R8 = _ENV[K6('ActivityState')]
  0012  GETTABLE  R8 = R8[K7('Preparing')]
  0013  EQ        if R0 eq R8   -> -127465
  0014  JMP       (jump)   -> 28
  0015  SELF      R9 = R6[K8('HasWindowOpenedOnce')] (self)
  0016  GETTABUP  R10 = _ENV[K6('ActivityState')]
  0017  GETTABLE  R10 = R10[K7('Preparing')]
  0018  CALL      R8 = call(R8, 1 args, 2 rets)
  0019  TEST      if not R8 then   -> -131050
  0020  JMP       (jump)   -> 43
  0021  GETTABLE  R8 = R5[K9('NoticeWindowPrefabName')]
  0022  NEWTABLE  R9 = {} (2 items)
  0023  MOVE      R10 = R0
  0024  LOADBOOL  R11 = true
  0025  SETLIST   setlist R9[B=1,C=2]
  0026  RETURN    return R8..R7
  0027  JMP       (jump)   -> 43
  0028  GETTABUP  R8 = _ENV[K6('ActivityState')]
  0029  GETTABLE  R8 = R8[K10('Started')]
  0030  EQ        if R0 eq R8   -> -127448
  0031  JMP       (jump)   -> 43
  0032  SELF      R9 = R6[K8('HasWindowOpenedOnce')] (self)
  0033  GETTABUP  R10 = _ENV[K6('ActivityState')]
  0034  GETTABLE  R10 = R10[K10('Started')]
  0035  CALL      R8 = call(R8, 1 args, 2 rets)
  0036  TEST      if not R8 then   -> -131033
  0037  JMP       (jump)   -> 43
  0038  GETTABLE  R8 = R5[K11('ReadyWindowPrefabName')]
  0039  NEWTABLE  R9 = {} (1 items)
  0040  MOVE      R10 = R0
  0041  SETLIST   setlist R9[B=1,C=1]
  0042  RETURN    return R8..R7
  0043  TFORCALL  tforcall R1
  0044  TFORLOOP  tforloop R3(sBx=-41)   -> 4
  0045  RETURN    return R0..R-1
