# UI_UIFramework_ActivitySimpleStartPopupHelper_272.luac
; fn @ActivitySimpleStartPopupHelper.lua  line 0-0 np=0 va=1 ms=4 code=30 consts=15 upvals=1 protos=5
;   K[0]='ActivitySimpleStartPopupHelper'
;   K[1]='setmetatable'
;   K[2]='canPopScene'
;   K[3]='EPopupScene'
;   K[4]='Board'
;   K[5]=true
;   K[6]='BasePopupHelper'
;   K[7]='__index'
;   K[8]='GetArrActivityDefinition'
;   K[9]='Create'
;   K[10]='ActivitySimpleStartPopupHelper'
;   K[11]='Init'
;   K[12]='ActivitySimpleStartPopupHelper'
;   K[13]='_SetNeedCheckPopup'
;   K[14]='CheckPopup'
;   upvals: _ENV
;   locals: arrActivityDefinition(14-30)
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  GETTABUP  R2 = _ENV[K6('BasePopupHelper')]
0008  CALL      R0 = call(R0, 1 args, 2 rets)
0009  SETTABUP  _ENV[K0('ActivitySimpleStartPopupHelper')] = R0
0010  GETTABUP  R0 = _ENV[K0('ActivitySimpleStartPopupHelper')]
0011  GETTABUP  R1 = _ENV[K0('ActivitySimpleStartPopupHelper')]
0012  SETTABLE  R0[K7('__index')] = R1
0013  LOADNIL   R0..R0 = nil
0014  GETTABUP  R1 = _ENV[K0('ActivitySimpleStartPopupHelper')]
0015  CLOSURE   R2 = closure proto0
0016  SETTABLE  R1[K8('GetArrActivityDefinition')] = R2
0017  GETTABUP  R1 = _ENV[K0('ActivitySimpleStartPopupHelper')]
0018  CLOSURE   R2 = closure proto1
0019  SETTABLE  R1[K9('Create')] = R2
0020  GETTABUP  R1 = _ENV[K10('ActivitySimpleStartPopupHelper')]
0021  CLOSURE   R2 = closure proto2
0022  SETTABLE  R1[K11('Init')] = R2
0023  GETTABUP  R1 = _ENV[K12('ActivitySimpleStartPopupHelper')]
0024  CLOSURE   R2 = closure proto3
0025  SETTABLE  R1[K13('_SetNeedCheckPopup')] = R2
0026  GETTABUP  R1 = _ENV[K12('ActivitySimpleStartPopupHelper')]
0027  CLOSURE   R2 = closure proto4
0028  SETTABLE  R1[K14('CheckPopup')] = R2
0029  RETURN    return R0..R-1
; ---------- proto0 [GetArrActivityDefinition] ----------
  ; fn ?  line 18-27 np=0 va=0 ms=3 code=11 consts=3 upvals=2 protos=0
  ;   K[0]=nil
  ;   K[1]='LuckyBlastActivityDefinition'
  ;   K[2]='ChestNonstopActivityDefinition'
  ;   upvals: arrActivityDefinition, _ENV
  0000  GETUPVAL  R0 = arrActivityDefinition
  0001  EQ        if R0 eq K0(nil)   -> -130813
  0002  JMP       (jump)   -> 8
  0003  NEWTABLE  R0 = {} (2 items)
  0004  GETTABUP  R1 = _ENV[K1('LuckyBlastActivityDefinition')]
  0005  GETTABUP  R2 = _ENV[K2('ChestNonstopActivityDefinition')]
  0006  SETLIST   setlist R0[B=1,C=2]
  0007  SETUPVAL  arrActivityDefinition = R0
  0008  GETUPVAL  R0 = arrActivityDefinition
  0009  RETURN    return R0..R-1
  0010  RETURN    return R0..R-1
; ---------- proto1 [Create] ----------
  ; fn ?  line 29-34 np=0 va=0 ms=3 code=8 consts=3 upvals=1 protos=0
  ;   K[0]='setmetatable'
  ;   K[1]='ActivitySimpleStartPopupHelper'
  ;   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('ActivitySimpleStartPopupHelper')]
  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
; ---------- proto2 [Init] ----------
  ; fn ?  line 36-46 np=1 va=0 ms=15 code=34 consts=11 upvals=1 protos=0
  ;   K[0]='BasePopupHelper'
  ;   K[1]='Init'
  ;   K[2]='ipairs'
  ;   K[3]='ActivitySimpleStartPopupHelper'
  ;   K[4]='GetArrActivityDefinition'
  ;   K[5]='pairs'
  ;   K[6]='EventDispatcher'
  ;   K[7]='AddListener'
  ;   K[8]='StateChangedEvent'
  ;   K[9]='_SetNeedCheckPopup'
  ;   K[10]='SimpleStartEvent'
  ;   upvals: _ENV
  ;   locals: self(0-34), (for generator)(9-33), (for state)(9-33), (for control)(9-33), _(10-31), activityDefinition(10-31), (for generator)(13-31), (for state)(13-31), (for control)(13-31), _(14-29), definition(14-29)
  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('ipairs')]
  0005  GETTABUP  R2 = _ENV[K3('ActivitySimpleStartPopupHelper')]
  0006  GETTABLE  R2 = R2[K4('GetArrActivityDefinition')]
  0007  CALL      R2 = call(R2, -1 args, 0 rets)
  0008  CALL      R1 = call(R1, 3 args, -1 rets)
  0009  JMP       (jump)   -> 31
  0010  GETTABUP  R6 = _ENV[K5('pairs')]
  0011  MOVE      R7 = R0
  0012  CALL      R6 = call(R6, 3 args, 1 rets)
  0013  JMP       (jump)   -> 29
  0014  GETTABUP  R11 = _ENV[K6('EventDispatcher')]
  0015  GETTABLE  R11 = R11[K7('AddListener')]
  0016  GETTABLE  R12 = R10[K8('StateChangedEvent')]
  0017  MOVE      R13 = R0
  0018  GETTABLE  R14 = R0[K9('_SetNeedCheckPopup')]
  0019  CALL      R11 = call(R11, 0 args, 3 rets)
  0020  GETTABLE  R11 = R10[K10('SimpleStartEvent')]
  0021  TEST      if not R11 then   -> -131049
  0022  JMP       (jump)   -> 29
  0023  GETTABUP  R11 = _ENV[K6('EventDispatcher')]
  0024  GETTABLE  R11 = R11[K7('AddListener')]
  0025  GETTABLE  R12 = R10[K10('SimpleStartEvent')]
  0026  MOVE      R13 = R0
  0027  GETTABLE  R14 = R0[K9('_SetNeedCheckPopup')]
  0028  CALL      R11 = call(R11, 0 args, 3 rets)
  0029  TFORCALL  tforcall R6
  0030  TFORLOOP  tforloop R8(sBx=-17)   -> 14
  0031  TFORCALL  tforcall R1
  0032  TFORLOOP  tforloop R3(sBx=-23)   -> 10
  0033  RETURN    return R0..R-1
; ---------- proto3 [_SetNeedCheckPopup] ----------
  ; fn ?  line 48-50 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
; ---------- proto4 [CheckPopup] ----------
  ; fn ?  line 52-82 np=1 va=0 ms=19 code=81 consts=22 upvals=1 protos=0
  ;   K[0]='ipairs'
  ;   K[1]='ActivitySimpleStartPopupHelper'
  ;   K[2]='GetArrActivityDefinition'
  ;   K[3]='pairs'
  ;   K[4]='SimpleStartViewPrefabName'
  ;   K[5]=nil
  ;   K[6]='GM'
  ;   K[7]='ActivityManager'
  ;   K[8]='GetModel'
  ;   K[9]='GetState'
  ;   K[10]='ActivityState'
  ;   K[11]='Started'
  ;   K[12]='IsFunction'
  ;   K[13]='CanPopSimpleStart'
  ;   K[14]='HasWindowOpenedOnce'
  ;   K[15]='table'
  ;   K[16]='insert'
  ;   K[17]='GetId'
  ;   K[18]='Table'
  ;   K[19]='IsEmpty'
  ;   K[20]='UIPrefabConfigName'
  ;   K[21]='ActivitySimpleStartWindow'
  ;   upvals: _ENV
  ;   locals: self(0-81), arrModel(1-81), mapModelId(2-81), mapPrefabName(3-81), model(4-81), state(4-81), (for generator)(9-64), (for state)(9-64), (for control)(9-64), _(10-62), activityDefinition(10-62), (for generator)(13-62), (for state)(13-62), (for control)(13-62), activityType(14-60), definition(14-60)
  0000  NEWTABLE  R1 = {} (0 items)
  0001  NEWTABLE  R2 = {} (0 items)
  0002  NEWTABLE  R3 = {} (0 items)
  0003  LOADNIL   R4..R4 = nil
  0004  GETTABUP  R6 = _ENV[K0('ipairs')]
  0005  GETTABUP  R7 = _ENV[K1('ActivitySimpleStartPopupHelper')]
  0006  GETTABLE  R7 = R7[K2('GetArrActivityDefinition')]
  0007  CALL      R7 = call(R7, -1 args, 0 rets)
  0008  CALL      R6 = call(R6, 3 args, -1 rets)
  0009  JMP       (jump)   -> 62
  0010  GETTABUP  R11 = _ENV[K3('pairs')]
  0011  MOVE      R12 = R0
  0012  CALL      R11 = call(R11, 3 args, 1 rets)
  0013  JMP       (jump)   -> 60
  0014  GETTABLE  R16 = R15[K4('SimpleStartViewPrefabName')]
  0015  EQ        if R1 eq K5(nil)   -> -122602
  0016  JMP       (jump)   -> 60
  0017  GETTABUP  R16 = _ENV[K6('GM')]
  0018  GETTABLE  R16 = R16[K7('ActivityManager')]
  0019  SELF      R17 = R16[K8('GetModel')] (self)
  0020  MOVE      R18 = R0
  0021  CALL      R16 = call(R16, 1 args, 2 rets)
  0022  MOVE      R4 = R0
  0023  SELF      R17 = R4[K9('GetState')] (self)
  0024  CALL      R16 = call(R16, 1 args, 1 rets)
  0025  MOVE      R5 = R0
  0026  GETTABUP  R16 = _ENV[K10('ActivityState')]
  0027  GETTABLE  R16 = R16[K11('Started')]
  0028  EQ        if R0 eq R16   -> -128466
  0029  JMP       (jump)   -> 60
  0030  GETTABUP  R16 = _ENV[K12('IsFunction')]
  0031  GETTABLE  R17 = R4[K13('CanPopSimpleStart')]
  0032  CALL      R16 = call(R16, 1 args, 1 rets)
  0033  TEST      if not R16 then   -> -131036
  0034  JMP       (jump)   -> 41
  0035  SELF      R17 = R4[K14('HasWindowOpenedOnce')] (self)
  0036  GETTABUP  R18 = _ENV[K10('ActivityState')]
  0037  GETTABLE  R18 = R18[K11('Started')]
  0038  CALL      R16 = call(R16, 1 args, 2 rets)
  0039  TEST      if not R16 then   -> -131031
  0040  JMP       (jump)   -> 50
  0041  GETTABUP  R16 = _ENV[K12('IsFunction')]
  0042  GETTABLE  R17 = R4[K13('CanPopSimpleStart')]
  0043  CALL      R16 = call(R16, 1 args, 1 rets)
  0044  TEST      if not R16 then   -> -131026
  0045  JMP       (jump)   -> 60
  0046  SELF      R17 = R4[K13('CanPopSimpleStart')] (self)
  0047  CALL      R16 = call(R16, 1 args, 1 rets)
  0048  TEST      if not R16 then   -> -131022
  0049  JMP       (jump)   -> 60
  0050  GETTABUP  R16 = _ENV[K15('table')]
  0051  GETTABLE  R16 = R16[K16('insert')]
  0052  MOVE      R17 = R0
  0053  MOVE      R18 = R0
  0054  CALL      R16 = call(R16, 0 args, 2 rets)
  0055  SELF      R17 = R4[K17('GetId')] (self)
  0056  CALL      R16 = call(R16, 1 args, 1 rets)
  0057  SETTABLE  R2[R4] = R16
  0058  GETTABLE  R16 = R15[K4('SimpleStartViewPrefabName')]
  0059  SETTABLE  R3[R4] = R16
  0060  TFORCALL  tforcall R11
  0061  TFORLOOP  tforloop R13(sBx=-48)   -> 14
  0062  TFORCALL  tforcall R6
  0063  TFORLOOP  tforloop R8(sBx=-54)   -> 10
  0064  GETTABUP  R6 = _ENV[K18('Table')]
  0065  GETTABLE  R6 = R6[K19('IsEmpty')]
  0066  MOVE      R7 = R0
  0067  CALL      R6 = call(R6, 1 args, 1 rets)
  0068  TEST      if not R6 then   -> -131001
  0069  JMP       (jump)   -> 78
  0070  GETTABUP  R6 = _ENV[K20('UIPrefabConfigName')]
  0071  GETTABLE  R6 = R6[K21('ActivitySimpleStartWindow')]
  0072  NEWTABLE  R7 = {} (3 items)
  0073  MOVE      R8 = R0
  0074  MOVE      R9 = R0
  0075  MOVE      R10 = R0
  0076  SETLIST   setlist R7[B=1,C=3]
  0077  RETURN    return R6..R5
  0078  LOADNIL   R6..R6 = nil
  0079  RETURN    return R6..R5
  0080  RETURN    return R0..R-1
