# AlbumActivity_View_AlbumPopupHelper_1110.luac
; fn @AlbumPopupHelper.lua  line 0-0 np=0 va=1 ms=4 code=32 consts=15 upvals=1 protos=5
;   K[0]='AlbumPopupHelper'
;   K[1]='setmetatable'
;   K[2]='canPopScene'
;   K[3]='EPopupScene'
;   K[4]='Board'
;   K[5]=true
;   K[6]='Main'
;   K[7]='BasePopupHelper'
;   K[8]='__index'
;   K[9]='Create'
;   K[10]='AlbumPopupHelper'
;   K[11]='Init'
;   K[12]='_OnStateChanged'
;   K[13]='NeedCheckPopup'
;   K[14]='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  GETTABUP  R3 = _ENV[K3('EPopupScene')]
0007  GETTABLE  R3 = R3[K6('Main')]
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('AlbumPopupHelper')] = R0
0013  GETTABUP  R0 = _ENV[K0('AlbumPopupHelper')]
0014  GETTABUP  R1 = _ENV[K0('AlbumPopupHelper')]
0015  SETTABLE  R0[K8('__index')] = R1
0016  GETTABUP  R0 = _ENV[K0('AlbumPopupHelper')]
0017  CLOSURE   R1 = closure proto0
0018  SETTABLE  R0[K9('Create')] = R1
0019  GETTABUP  R0 = _ENV[K10('AlbumPopupHelper')]
0020  CLOSURE   R1 = closure proto1
0021  SETTABLE  R0[K11('Init')] = R1
0022  GETTABUP  R0 = _ENV[K10('AlbumPopupHelper')]
0023  CLOSURE   R1 = closure proto2
0024  SETTABLE  R0[K12('_OnStateChanged')] = R1
0025  GETTABUP  R0 = _ENV[K10('AlbumPopupHelper')]
0026  CLOSURE   R1 = closure proto3
0027  SETTABLE  R0[K13('NeedCheckPopup')] = R1
0028  GETTABUP  R0 = _ENV[K10('AlbumPopupHelper')]
0029  CLOSURE   R1 = closure proto4
0030  SETTABLE  R0[K14('CheckPopup')] = R1
0031  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]='AlbumPopupHelper'
  ;   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('AlbumPopupHelper')]
  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-22 np=1 va=0 ms=10 code=24 consts=10 upvals=1 protos=0
  ;   K[0]='BasePopupHelper'
  ;   K[1]='Init'
  ;   K[2]='pairs'
  ;   K[3]='AlbumActivityDefinition'
  ;   K[4]='EventDispatcher'
  ;   K[5]='AddListener'
  ;   K[6]='StateChangedEvent'
  ;   K[7]='_OnStateChanged'
  ;   K[8]='EEventType'
  ;   K[9]='AlbumPopStateChanged'
  ;   upvals: _ENV
  ;   locals: self(0-24), (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('AlbumActivityDefinition')]
  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  GETTABUP  R1 = _ENV[K4('EventDispatcher')]
  0017  GETTABLE  R1 = R1[K5('AddListener')]
  0018  GETTABUP  R2 = _ENV[K8('EEventType')]
  0019  GETTABLE  R2 = R2[K9('AlbumPopStateChanged')]
  0020  MOVE      R3 = R0
  0021  GETTABLE  R4 = R0[K7('_OnStateChanged')]
  0022  CALL      R1 = call(R1, 0 args, 3 rets)
  0023  RETURN    return R0..R-1
; ---------- proto2 [_OnStateChanged] ----------
  ; fn ?  line 24-27 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 [NeedCheckPopup] ----------
  ; fn ?  line 29-33 np=1 va=0 ms=5 code=19 consts=6 upvals=1 protos=0
  ;   K[0]='AlbumActivityModel'
  ;   K[1]='GetActiveModel'
  ;   K[2]=nil
  ;   K[3]='HasExpiredJokerCard'
  ;   K[4]='BasePopupHelper'
  ;   K[5]='NeedCheckPopup'
  ;   upvals: _ENV
  ;   locals: self(0-19), albumModel(3-19), bCheckPopup(10-19)
  0000  GETTABUP  R1 = _ENV[K0('AlbumActivityModel')]
  0001  GETTABLE  R1 = R1[K1('GetActiveModel')]
  0002  CALL      R1 = call(R1, 1 args, 0 rets)
  0003  EQ        if R1 eq K2(nil)   -> -130297
  0004  JMP       (jump)   -> 8
  0005  SELF      R3 = R1[K3('HasExpiredJokerCard')] (self)
  0006  CALL      R2 = call(R2, 1 args, 1 rets)
  0007  JMP       (jump)   -> 10
  0008  LOADBOOL  R2 = false
  0009  LOADBOOL  R2 = true
  0010  GETTABUP  R3 = _ENV[K4('BasePopupHelper')]
  0011  GETTABLE  R3 = R3[K5('NeedCheckPopup')]
  0012  MOVE      R4 = R0
  0013  CALL      R3 = call(R3, 1 args, 1 rets)
  0014  TEST      if not R3 then   -> -131055
  0015  JMP       (jump)   -> 17
  0016  MOVE      R3 = R0
  0017  RETURN    return R3..R2
  0018  RETURN    return R0..R-1
; ---------- proto4 [CheckPopup] ----------
  ; fn ?  line 35-74 np=1 va=0 ms=15 code=114 consts=29 upvals=1 protos=1
  ;   K[0]='pairs'
  ;   K[1]='AlbumActivityDefinition'
  ;   K[2]=1
  ;   K[3]='table'
  ;   K[4]='sort'
  ;   K[5]='ipairs'
  ;   K[6]='GM'
  ;   K[7]='ActivityManager'
  ;   K[8]='GetModel'
  ;   K[9]='GetState'
  ;   K[10]='ActivityState'
  ;   K[11]='Started'
  ;   K[12]='CanPopBuffWindow'
  ;   K[13]='HasWindowOpenedOnce'
  ;   K[14]='StartWindowPrefabName'
  ;   K[15]='CanPopNewJokerWindow'
  ;   K[16]='GetNewJokerWindowName'
  ;   K[17]='ClearNewJokerState'
  ;   K[18]='HasExpiredJokerCard'
  ;   K[19]='UIPrefabConfigName'
  ;   K[20]='AlbumRemindUseJokerWindow'
  ;   K[21]=nil
  ;   K[22]='SceneManager'
  ;   K[23]='GetGameMode'
  ;   K[24]='EGameMode'
  ;   K[25]='Board'
  ;   K[26]='GetAlbumBuffWindow'
  ;   K[27]='Ended'
  ;   K[28]='EndWindowPrefabName'
  ;   upvals: _ENV
  ;   locals: self(0-114), arrType(1-114), (for generator)(4-10), (for state)(4-10), (for control)(4-10), activityType(5-8), _(5-8), activityDefinition(16-114), (for generator)(19-113), (for state)(19-113), (for control)(19-113), _(20-111), activityType(20-111), model(27-111), state(29-111), buffType(35-89), windowName(53-60)
  0000  NEWTABLE  R1 = {} (0 items)
  0001  GETTABUP  R2 = _ENV[K0('pairs')]
  0002  GETTABUP  R3 = _ENV[K1('AlbumActivityDefinition')]
  0003  CALL      R2 = call(R2, 3 args, 1 rets)
  0004  JMP       (jump)   -> 8
  0005  LEN       R7 = len R0
  0006  ADD       R7 = K2(1) add R7
  0007  SETTABLE  R1[R7] = R5
  0008  TFORCALL  tforcall R2
  0009  TFORLOOP  tforloop R4(sBx=-5)   -> 5
  0010  GETTABUP  R2 = _ENV[K3('table')]
  0011  GETTABLE  R2 = R2[K4('sort')]
  0012  MOVE      R3 = R0
  0013  CLOSURE   R4 = closure proto0
  0014  CALL      R2 = call(R2, 0 args, 2 rets)
  0015  LOADNIL   R2..R2 = nil
  0016  GETTABUP  R3 = _ENV[K5('ipairs')]
  0017  MOVE      R4 = R0
  0018  CALL      R3 = call(R3, 3 args, 1 rets)
  0019  JMP       (jump)   -> 111
  0020  GETTABUP  R8 = _ENV[K1('AlbumActivityDefinition')]
  0021  GETTABLE  R2 = R8[R7]
  0022  GETTABUP  R8 = _ENV[K6('GM')]
  0023  GETTABLE  R8 = R8[K7('ActivityManager')]
  0024  SELF      R9 = R8[K8('GetModel')] (self)
  0025  MOVE      R10 = R0
  0026  CALL      R8 = call(R8, 1 args, 2 rets)
  0027  SELF      R10 = R8[K9('GetState')] (self)
  0028  CALL      R9 = call(R9, 1 args, 1 rets)
  0029  GETTABUP  R10 = _ENV[K10('ActivityState')]
  0030  GETTABLE  R10 = R10[K11('Started')]
  0031  EQ        if R0 eq R10   -> -126421
  0032  JMP       (jump)   -> 90
  0033  SELF      R11 = R8[K12('CanPopBuffWindow')] (self)
  0034  CALL      R10 = call(R10, 1 args, 1 rets)
  0035  SELF      R12 = R8[K13('HasWindowOpenedOnce')] (self)
  0036  GETTABUP  R13 = _ENV[K10('ActivityState')]
  0037  GETTABLE  R13 = R13[K11('Started')]
  0038  CALL      R11 = call(R11, 1 args, 2 rets)
  0039  TEST      if not R11 then   -> -131030
  0040  JMP       (jump)   -> 47
  0041  GETTABLE  R11 = R2[K14('StartWindowPrefabName')]
  0042  NEWTABLE  R12 = {} (1 items)
  0043  MOVE      R13 = R0
  0044  SETLIST   setlist R12[B=1,C=1]
  0045  RETURN    return R11..R10
  0046  JMP       (jump)   -> 111
  0047  SELF      R12 = R8[K15('CanPopNewJokerWindow')] (self)
  0048  CALL      R11 = call(R11, 1 args, 1 rets)
  0049  TEST      if not R11 then   -> -131021
  0050  JMP       (jump)   -> 61
  0051  SELF      R12 = R8[K16('GetNewJokerWindowName')] (self)
  0052  CALL      R11 = call(R11, 1 args, 1 rets)
  0053  SELF      R13 = R8[K17('ClearNewJokerState')] (self)
  0054  CALL      R12 = call(R12, 0 args, 1 rets)
  0055  MOVE      R12 = R0
  0056  NEWTABLE  R13 = {} (1 items)
  0057  MOVE      R14 = R0
  0058  SETLIST   setlist R13[B=1,C=1]
  0059  RETURN    return R12..R11
  0060  JMP       (jump)   -> 111
  0061  SELF      R12 = R8[K18('HasExpiredJokerCard')] (self)
  0062  CALL      R11 = call(R11, 1 args, 1 rets)
  0063  TEST      if not R11 then   -> -131007
  0064  JMP       (jump)   -> 72
  0065  GETTABUP  R11 = _ENV[K19('UIPrefabConfigName')]
  0066  GETTABLE  R11 = R11[K20('AlbumRemindUseJokerWindow')]
  0067  NEWTABLE  R12 = {} (1 items)
  0068  MOVE      R13 = R0
  0069  SETLIST   setlist R12[B=1,C=1]
  0070  RETURN    return R11..R10
  0071  JMP       (jump)   -> 111
  0072  EQ        if R1 eq K21(nil)   -> -125601
  0073  JMP       (jump)   -> 111
  0074  GETTABUP  R11 = _ENV[K6('GM')]
  0075  GETTABLE  R11 = R11[K22('SceneManager')]
  0076  SELF      R12 = R11[K23('GetGameMode')] (self)
  0077  CALL      R11 = call(R11, 1 args, 1 rets)
  0078  GETTABUP  R12 = _ENV[K24('EGameMode')]
  0079  GETTABLE  R12 = R12[K25('Board')]
  0080  EQ        if R0 eq R12   -> -125346
  0081  JMP       (jump)   -> 111
  0082  SELF      R12 = R8[K26('GetAlbumBuffWindow')] (self)
  0083  MOVE      R13 = R0
  0084  CALL      R11 = call(R11, 1 args, 2 rets)
  0085  NEWTABLE  R12 = {} (1 items)
  0086  MOVE      R13 = R0
  0087  SETLIST   setlist R12[B=1,C=1]
  0088  RETURN    return R11..R10
  0089  JMP       (jump)   -> 111
  0090  GETTABUP  R10 = _ENV[K10('ActivityState')]
  0091  GETTABLE  R10 = R10[K27('Ended')]
  0092  EQ        if R0 eq R10   -> -126360
  0093  JMP       (jump)   -> 111
  0094  SELF      R11 = R8[K13('HasWindowOpenedOnce')] (self)
  0095  GETTABUP  R12 = _ENV[K10('ActivityState')]
  0096  GETTABLE  R12 = R12[K11('Started')]
  0097  CALL      R10 = call(R10, 1 args, 2 rets)
  0098  TEST      if not R10 then   -> -130972
  0099  JMP       (jump)   -> 111
  0100  SELF      R11 = R8[K13('HasWindowOpenedOnce')] (self)
  0101  GETTABUP  R12 = _ENV[K10('ActivityState')]
  0102  GETTABLE  R12 = R12[K27('Ended')]
  0103  CALL      R10 = call(R10, 1 args, 2 rets)
  0104  TEST      if not R10 then   -> -130965
  0105  JMP       (jump)   -> 111
  0106  GETTABLE  R10 = R2[K28('EndWindowPrefabName')]
  0107  NEWTABLE  R11 = {} (1 items)
  0108  MOVE      R12 = R0
  0109  SETLIST   setlist R11[B=1,C=1]
  0110  RETURN    return R10..R9
  0111  TFORCALL  tforcall R3
  0112  TFORLOOP  tforloop R5(sBx=-93)   -> 20
  0113  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 40-48 np=2 va=0 ms=7 code=30 consts=5 upvals=1 protos=0
    ;   K[0]='GM'
    ;   K[1]='ActivityManager'
    ;   K[2]='GetModel'
    ;   K[3]='GetState'
    ;   K[4]=nil
    ;   upvals: _ENV
    ;   locals: a(0-30), b(0-30), modelA(9-23), modelB(14-23)
    0000  TEST      if not R0 then   -> -131070
    0001  JMP       (jump)   -> 24
    0002  TEST      if not R1 then   -> -131068
    0003  JMP       (jump)   -> 24
    0004  GETTABUP  R2 = _ENV[K0('GM')]
    0005  GETTABLE  R2 = R2[K1('ActivityManager')]
    0006  SELF      R3 = R2[K2('GetModel')] (self)
    0007  MOVE      R4 = R0
    0008  CALL      R2 = call(R2, 1 args, 2 rets)
    0009  GETTABUP  R3 = _ENV[K0('GM')]
    0010  GETTABLE  R3 = R3[K1('ActivityManager')]
    0011  SELF      R4 = R3[K2('GetModel')] (self)
    0012  MOVE      R5 = R0
    0013  CALL      R3 = call(R3, 1 args, 2 rets)
    0014  SELF      R5 = R2[K3('GetState')] (self)
    0015  CALL      R4 = call(R4, 1 args, 1 rets)
    0016  SELF      R6 = R3[K3('GetState')] (self)
    0017  CALL      R5 = call(R5, 1 args, 1 rets)
    0018  LT        if R1 lt R4   -> -128488
    0019  JMP       (jump)   -> 21
    0020  LOADBOOL  R4 = false
    0021  LOADBOOL  R4 = true
    0022  RETURN    return R4..R3
    0023  JMP       (jump)   -> 29
    0024  EQ        if R0 eq K4(nil)   -> -130786
    0025  JMP       (jump)   -> 27
    0026  LOADBOOL  R2 = false
    0027  LOADBOOL  R2 = true
    0028  RETURN    return R2..R1
    0029  RETURN    return R0..R-1
