# AlbumActivity_View_AlbumActivityWindow_1115.luac
; fn @AlbumActivityWindow.lua  line 0-0 np=0 va=1 ms=3 code=34 consts=17 upvals=1 protos=7
;   K[0]='AlbumActivityBaseWindow'
;   K[1]='setmetatable'
;   K[2]='bCloseByStateChanged'
;   K[3]=true
;   K[4]='disableEffectWhenCloseView'
;   K[5]='bAutoBI'
;   K[6]='bCloseWhenLimitAlbumStateChanged'
;   K[7]=false
;   K[8]='BaseWindow'
;   K[9]='__index'
;   K[10]='Init'
;   K[11]='TryCloseByStateChanged'
;   K[12]='TryCloseByLimitAlbumStateChanged'
;   K[13]='_GetModelBySetId'
;   K[14]='_GetModelByCardId'
;   K[15]='_IsModelIdChanged'
;   K[16]='GetCurrentRoundInRoman'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  SETTABLE  R1[K2('bCloseByStateChanged')] = K3(true)
0003  SETTABLE  R1[K4('disableEffectWhenCloseView')] = K3(true)
0004  SETTABLE  R1[K5('bAutoBI')] = K3(true)
0005  SETTABLE  R1[K6('bCloseWhenLimitAlbumStateChanged')] = K7(false)
0006  GETTABUP  R2 = _ENV[K8('BaseWindow')]
0007  CALL      R0 = call(R0, 1 args, 2 rets)
0008  SETTABUP  _ENV[K0('AlbumActivityBaseWindow')] = R0
0009  GETTABUP  R0 = _ENV[K0('AlbumActivityBaseWindow')]
0010  GETTABUP  R1 = _ENV[K0('AlbumActivityBaseWindow')]
0011  SETTABLE  R0[K9('__index')] = R1
0012  GETTABUP  R0 = _ENV[K0('AlbumActivityBaseWindow')]
0013  CLOSURE   R1 = closure proto0
0014  SETTABLE  R0[K10('Init')] = R1
0015  GETTABUP  R0 = _ENV[K0('AlbumActivityBaseWindow')]
0016  CLOSURE   R1 = closure proto1
0017  SETTABLE  R0[K11('TryCloseByStateChanged')] = R1
0018  GETTABUP  R0 = _ENV[K0('AlbumActivityBaseWindow')]
0019  CLOSURE   R1 = closure proto2
0020  SETTABLE  R0[K12('TryCloseByLimitAlbumStateChanged')] = R1
0021  GETTABUP  R0 = _ENV[K0('AlbumActivityBaseWindow')]
0022  CLOSURE   R1 = closure proto3
0023  SETTABLE  R0[K13('_GetModelBySetId')] = R1
0024  GETTABUP  R0 = _ENV[K0('AlbumActivityBaseWindow')]
0025  CLOSURE   R1 = closure proto4
0026  SETTABLE  R0[K14('_GetModelByCardId')] = R1
0027  GETTABUP  R0 = _ENV[K0('AlbumActivityBaseWindow')]
0028  CLOSURE   R1 = closure proto5
0029  SETTABLE  R0[K15('_IsModelIdChanged')] = R1
0030  GETTABUP  R0 = _ENV[K0('AlbumActivityBaseWindow')]
0031  CLOSURE   R1 = closure proto6
0032  SETTABLE  R0[K16('GetCurrentRoundInRoman')] = R1
0033  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 11-34 np=3 va=0 ms=8 code=58 consts=29 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='GM'
  ;   K[2]='ActivityManager'
  ;   K[3]='GetModel'
  ;   K[4]='m_id'
  ;   K[5]='GetId'
  ;   K[6]='m_activityType'
  ;   K[7]='m_activityDefinition'
  ;   K[8]='GetActivityDefinition'
  ;   K[9]='m_limitAlbumModel'
  ;   K[10]='LimitAlbumModel'
  ;   K[11]='GetActiveModel'
  ;   K[12]='bCloseByStateChanged'
  ;   K[13]='EventDispatcher'
  ;   K[14]='AddListener'
  ;   K[15]='StateChangedEvent'
  ;   K[16]='TryCloseByStateChanged'
  ;   K[17]='bAutoBI'
  ;   K[18]='LogWindowAction'
  ;   K[19]='EBIType'
  ;   K[20]='UIActionType'
  ;   K[21]='Open'
  ;   K[22]='EBIReferType'
  ;   K[23]='UserClick'
  ;   K[24]='AutoPopup'
  ;   K[25]='bCloseWhenLimitAlbumStateChanged'
  ;   K[26]='EEventType'
  ;   K[27]='CommonLimitAlbumStateChanged'
  ;   K[28]='TryCloseByLimitAlbumStateChanged'
  ;   upvals: _ENV
  ;   locals: self(0-58), activityType(0-58), bUserClick(0-58)
  0000  GETTABUP  R3 = _ENV[K1('GM')]
  0001  GETTABLE  R3 = R3[K2('ActivityManager')]
  0002  SELF      R4 = R3[K3('GetModel')] (self)
  0003  MOVE      R5 = R0
  0004  CALL      R3 = call(R3, 1 args, 2 rets)
  0005  SETTABLE  R0[K0('m_model')] = R3
  0006  GETTABLE  R3 = R0[K0('m_model')]
  0007  SELF      R4 = R3[K5('GetId')] (self)
  0008  CALL      R3 = call(R3, 1 args, 1 rets)
  0009  SETTABLE  R0[K4('m_id')] = R3
  0010  SETTABLE  R0[K6('m_activityType')] = R1
  0011  GETTABLE  R3 = R0[K0('m_model')]
  0012  SELF      R4 = R3[K8('GetActivityDefinition')] (self)
  0013  CALL      R3 = call(R3, 1 args, 1 rets)
  0014  SETTABLE  R0[K7('m_activityDefinition')] = R3
  0015  GETTABUP  R3 = _ENV[K10('LimitAlbumModel')]
  0016  GETTABLE  R3 = R3[K11('GetActiveModel')]
  0017  CALL      R3 = call(R3, 1 args, 0 rets)
  0018  SETTABLE  R0[K9('m_limitAlbumModel')] = R3
  0019  GETTABLE  R3 = R0[K12('bCloseByStateChanged')]
  0020  TEST      if not R3 then   -> -131050
  0021  JMP       (jump)   -> 29
  0022  GETTABUP  R3 = _ENV[K13('EventDispatcher')]
  0023  GETTABLE  R3 = R3[K14('AddListener')]
  0024  GETTABLE  R4 = R0[K7('m_activityDefinition')]
  0025  GETTABLE  R4 = R4[K15('StateChangedEvent')]
  0026  MOVE      R5 = R0
  0027  GETTABLE  R6 = R0[K16('TryCloseByStateChanged')]
  0028  CALL      R3 = call(R3, 0 args, 3 rets)
  0029  GETTABLE  R3 = R0[K17('bAutoBI')]
  0030  TEST      if not R3 then   -> -131040
  0031  JMP       (jump)   -> 47
  0032  SELF      R4 = R0[K18('LogWindowAction')] (self)
  0033  GETTABUP  R5 = _ENV[K19('EBIType')]
  0034  GETTABLE  R5 = R5[K20('UIActionType')]
  0035  GETTABLE  R5 = R5[K21('Open')]
  0036  NEWTABLE  R6 = {} (1 items)
  0037  TEST      if not R2 then   -> -131033
  0038  JMP       (jump)   -> 43
  0039  GETTABUP  R7 = _ENV[K22('EBIReferType')]
  0040  GETTABLE  R7 = R7[K23('UserClick')]
  0041  TEST      if not R7 then   -> -131028
  0042  JMP       (jump)   -> 45
  0043  GETTABUP  R7 = _ENV[K22('EBIReferType')]
  0044  GETTABLE  R7 = R7[K24('AutoPopup')]
  0045  SETLIST   setlist R6[B=1,C=1]
  0046  CALL      R3 = call(R3, 0 args, 3 rets)
  0047  GETTABLE  R3 = R0[K25('bCloseWhenLimitAlbumStateChanged')]
  0048  TEST      if not R3 then   -> -131022
  0049  JMP       (jump)   -> 57
  0050  GETTABUP  R3 = _ENV[K13('EventDispatcher')]
  0051  GETTABLE  R3 = R3[K14('AddListener')]
  0052  GETTABUP  R4 = _ENV[K26('EEventType')]
  0053  GETTABLE  R4 = R4[K27('CommonLimitAlbumStateChanged')]
  0054  MOVE      R5 = R0
  0055  GETTABLE  R6 = R0[K28('TryCloseByLimitAlbumStateChanged')]
  0056  CALL      R3 = call(R3, 0 args, 3 rets)
  0057  RETURN    return R0..R-1
; ---------- proto1 [TryCloseByStateChanged] ----------
  ; fn ?  line 36-41 np=1 va=0 ms=4 code=11 consts=5 upvals=1 protos=0
  ;   K[0]='StringUtil'
  ;   K[1]='IsNilOrEmpty'
  ;   K[2]='m_model'
  ;   K[3]='GetNewCardId'
  ;   K[4]='Close'
  ;   upvals: _ENV
  ;   locals: self(0-11)
  0000  GETTABUP  R1 = _ENV[K0('StringUtil')]
  0001  GETTABLE  R1 = R1[K1('IsNilOrEmpty')]
  0002  GETTABLE  R2 = R0[K2('m_model')]
  0003  SELF      R3 = R2[K3('GetNewCardId')] (self)
  0004  CALL      R2 = call(R2, -1 args, 1 rets)
  0005  CALL      R1 = call(R1, 1 args, -1 rets)
  0006  TEST      if not R1 then   -> -131064
  0007  JMP       (jump)   -> 10
  0008  SELF      R2 = R0[K4('Close')] (self)
  0009  CALL      R1 = call(R1, 0 args, 1 rets)
  0010  RETURN    return R0..R-1
; ---------- proto2 [TryCloseByLimitAlbumStateChanged] ----------
  ; fn ?  line 43-45 np=1 va=0 ms=3 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='Close'
  ;   locals: self(0-3)
  0000  SELF      R2 = R0[K0('Close')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  RETURN    return R0..R-1
; ---------- proto3 [_GetModelBySetId] ----------
  ; fn ?  line 47-53 np=2 va=0 ms=5 code=26 consts=6 upvals=1 protos=0
  ;   K[0]='m_limitAlbumModel'
  ;   K[1]=nil
  ;   K[2]='LimitAlbumModel'
  ;   K[3]='GetActiveModel'
  ;   K[4]='IsExistCardSet'
  ;   K[5]='m_model'
  ;   upvals: _ENV
  ;   locals: self(0-26), setId(0-26), bLimit(17-26)
  0000  GETTABLE  R2 = R0[K0('m_limitAlbumModel')]
  0001  EQ        if R0 eq K1(nil)   -> -129788
  0002  JMP       (jump)   -> 7
  0003  GETTABUP  R2 = _ENV[K2('LimitAlbumModel')]
  0004  GETTABLE  R2 = R2[K3('GetActiveModel')]
  0005  CALL      R2 = call(R2, 1 args, 0 rets)
  0006  SETTABLE  R0[K0('m_limitAlbumModel')] = R2
  0007  GETTABLE  R2 = R0[K0('m_limitAlbumModel')]
  0008  EQ        if R1 eq K1(nil)   -> -129781
  0009  JMP       (jump)   -> 15
  0010  GETTABLE  R2 = R0[K0('m_limitAlbumModel')]
  0011  SELF      R3 = R2[K4('IsExistCardSet')] (self)
  0012  MOVE      R4 = R0
  0013  CALL      R2 = call(R2, 1 args, 2 rets)
  0014  JMP       (jump)   -> 17
  0015  LOADBOOL  R2 = false
  0016  LOADBOOL  R2 = true
  0017  TEST      if not R2 then   -> -131053
  0018  JMP       (jump)   -> 22
  0019  GETTABLE  R3 = R0[K0('m_limitAlbumModel')]
  0020  TEST      if not R3 then   -> -131049
  0021  JMP       (jump)   -> 23
  0022  GETTABLE  R3 = R0[K5('m_model')]
  0023  MOVE      R4 = R0
  0024  RETURN    return R3..R2
  0025  RETURN    return R0..R-1
; ---------- proto4 [_GetModelByCardId] ----------
  ; fn ?  line 55-61 np=2 va=0 ms=5 code=26 consts=6 upvals=1 protos=0
  ;   K[0]='m_limitAlbumModel'
  ;   K[1]=nil
  ;   K[2]='LimitAlbumModel'
  ;   K[3]='GetActiveModel'
  ;   K[4]='IsExistCard'
  ;   K[5]='m_model'
  ;   upvals: _ENV
  ;   locals: self(0-26), cardId(0-26), bLimit(17-26)
  0000  GETTABLE  R2 = R0[K0('m_limitAlbumModel')]
  0001  EQ        if R0 eq K1(nil)   -> -129788
  0002  JMP       (jump)   -> 7
  0003  GETTABUP  R2 = _ENV[K2('LimitAlbumModel')]
  0004  GETTABLE  R2 = R2[K3('GetActiveModel')]
  0005  CALL      R2 = call(R2, 1 args, 0 rets)
  0006  SETTABLE  R0[K0('m_limitAlbumModel')] = R2
  0007  GETTABLE  R2 = R0[K0('m_limitAlbumModel')]
  0008  EQ        if R1 eq K1(nil)   -> -129781
  0009  JMP       (jump)   -> 15
  0010  GETTABLE  R2 = R0[K0('m_limitAlbumModel')]
  0011  SELF      R3 = R2[K4('IsExistCard')] (self)
  0012  MOVE      R4 = R0
  0013  CALL      R2 = call(R2, 1 args, 2 rets)
  0014  JMP       (jump)   -> 17
  0015  LOADBOOL  R2 = false
  0016  LOADBOOL  R2 = true
  0017  TEST      if not R2 then   -> -131053
  0018  JMP       (jump)   -> 22
  0019  GETTABLE  R3 = R0[K0('m_limitAlbumModel')]
  0020  TEST      if not R3 then   -> -131049
  0021  JMP       (jump)   -> 23
  0022  GETTABLE  R3 = R0[K5('m_model')]
  0023  MOVE      R4 = R0
  0024  RETURN    return R3..R2
  0025  RETURN    return R0..R-1
; ---------- proto5 [_IsModelIdChanged] ----------
  ; fn ?  line 63-65 np=1 va=0 ms=4 code=10 consts=3 upvals=0 protos=0
  ;   K[0]='m_id'
  ;   K[1]='m_model'
  ;   K[2]='GetId'
  ;   locals: self(0-10)
  0000  GETTABLE  R1 = R0[K0('m_id')]
  0001  GETTABLE  R2 = R0[K1('m_model')]
  0002  SELF      R3 = R2[K2('GetId')] (self)
  0003  CALL      R2 = call(R2, 1 args, 1 rets)
  0004  EQ        if R0 eq R2   -> -130552
  0005  JMP       (jump)   -> 7
  0006  LOADBOOL  R1 = false
  0007  LOADBOOL  R1 = true
  0008  RETURN    return R1..R0
  0009  RETURN    return R0..R-1
; ---------- proto6 [GetCurrentRoundInRoman] ----------
  ; fn ?  line 68-71 np=1 va=0 ms=4 code=8 consts=3 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='GetRound'
  ;   K[2]='GetNumberInRoman'
  ;   upvals: _ENV
  ;   locals: self(0-8), round(3-8)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  SELF      R2 = R1[K1('GetRound')] (self)
  0002  CALL      R1 = call(R1, 1 args, 1 rets)
  0003  GETTABUP  R2 = _ENV[K2('GetNumberInRoman')]
  0004  MOVE      R3 = R0
  0005  TAILCALL  tailcall(R2, 0)
  0006  RETURN    return R2..R1
  0007  RETURN    return R0..R-1
